💾 Archived View for gemini.ctrl-c.club › ~phoebos › logs › freenode-kisslinux-2020-08-14.txt captured on 2024-05-26 at 16:23:01.
⬅️ Previous capture (2021-12-17)
-=-=-=-=-=-=-
2020-08-14T00:01:39 #kisslinux <E5ten> dylanaraps: if I "exec >file" at the beginning of the script, and at the end I wanna stop redirecting stdout to that file and just have it print to like normal stdout, is there a way to do that or do I just need to put braces around the entire script up to that point and redirect the block to "file"? 2020-08-14T00:05:39 #kisslinux <mcf> you can think of `exec >file` as `fd = open(file, O_WRONLY); dup2(fd, 1);`, which closes the previous stdout. if you want to retain the old stdout fd, you can move it to some temporary fd (like 3), and then restore it later 2020-08-14T00:07:38 #kisslinux <E5ten> would I do that with `exec 3<&1`? 2020-08-14T00:10:04 #kisslinux <mcf> i can never keep those straight, but i think 3>&1 2020-08-14T00:10:27 #kisslinux <mcf> just like 2>&1 makes stderr a copy of stdout 2020-08-14T00:11:20 #kisslinux <mcf> and then to restore, i think >&3 should work (or equivalently 1>&3) 2020-08-14T07:17:37 #kisslinux <icyphox> have you guys seen this: https://github.com/dudik/herbe 2020-08-14T09:58:09 #kisslinux <dan[m]1> <icyphox "have you guys seen this: https:/"> wont this have no compatibility with preexisting programs that use notifications? 2020-08-14T12:59:06 #kisslinux <muevoid> Can I make it so the kiss package manager rebuild a package after compiling a certain package? 2020-08-14T12:59:21 #kisslinux <muevoid> Im not sure the best way to do this though to be honest 2020-08-14T13:00:13 #kisslinux <spageen> you could write a post-install script directly into the repo 2020-08-14T13:00:57 #kisslinux <muevoid> Oh yeah! I forgot about those for some reason 2020-08-14T13:01:11 #kisslinux <muevoid> I have to think about the best way to do this though 2020-08-14T13:01:17 #kisslinux <spageen> you're welcome ;) 2020-08-14T13:01:27 #kisslinux <muevoid> Yes thank you! 2020-08-14T13:03:51 #kisslinux <spageen> is modifying files directly in /var/db/kiss good practice? 2020-08-14T13:04:07 #kisslinux <spageen> can they get clashed with updates? 2020-08-14T13:16:24 #kisslinux <muevoid> I dont know if it is bad practice. But I have a repo locally on my machine called modified that I kiss-fork too 2020-08-14T13:16:27 #kisslinux <muevoid> to* 2020-08-14T13:27:28 #kisslinux <muevoid> Ive never had this before. Python is saying no module pydoc found? Is that due to how kiss packages python? 2020-08-14T13:28:59 #kisslinux <muevoid> nvm yep it is 2020-08-14T13:55:34 #kisslinux <dilynm> spageen: it isn't bad practice but you might issues pulling updates with kiss u 2020-08-14T13:55:58 #kisslinux <dilynm> To avoid this you can fork the package and symlink all the files and then add a post-install to do what you want 2020-08-14T13:56:12 #kisslinux <dilynm> Could you also maybe accomplish this with a kiss hook? 2020-08-14T14:35:50 #kisslinux <dan[m]1> does anyone use icecat on kiss? i cant really build it due to the time of building all of the makedeps 2020-08-14T17:58:53 #kisslinux <jedavies> claudia02: regarding your q on heat dissipation on the pinebook pro, yes it is a problem. Building large packages when running at full cpu speed can cause it to overheat and auto power off. 2020-08-14T17:59:47 #kisslinux <jedavies> So I normally build rust/firefox etc on another machine (rockpro64), or place it on a metal surface while building. 2020-08-14T18:02:01 #kisslinux <claudia02> Yes, I assumed that some cooling assistance might be needed. I had a an passive atom powered notebook once, which got pretty hot while decoding stuff. 2020-08-14T19:13:52 #kisslinux <micr0> i miiiiight go down the rabbit hole of http://www.turemetal.com/product_en.html one day 2020-08-14T19:14:37 #kisslinux <micr0> the up10 is massive, but can supposedly dissapate 140w cpu and 160w gpu! 2020-08-14T19:26:17 #kisslinux <himmalerin> /msg NickServ identify test 2020-08-14T19:27:48 #kisslinux <j`ey> lol 2020-08-14T19:28:34 #kisslinux <j`ey> jedavies: I was thinking to try compile kiss for my rpi zero, but not sure if I can be bothered 2020-08-14T19:41:20 #kisslinux <micr0> j`ey too lazy to find a monitor and hdmi cable? 2020-08-14T19:42:35 #kisslinux <j`ey> I think compiling it is the hard part :P 2020-08-14T19:44:14 #kisslinux <micr0> j`ey lemme look around, i had a docker/qemu script that let me build images on my laptop pretty easily 2020-08-14T19:44:49 #kisslinux <j`ey> cool! 2020-08-14T19:45:56 #kisslinux <micr0> https://github.com/jedahan/pi-maker 2020-08-14T19:46:02 #kisslinux <micr0> though i might look at whats start of the art these days 2020-08-14T19:46:09 #kisslinux <j`ey> ta, will check it out soon 2020-08-14T19:48:32 #kisslinux <j`ey> oh its for zero w too, nice 2020-08-14T19:54:36 #kisslinux <micr0> yeah i think the main thing (besides the merge conflicts lol) is looking at how qemu and binfmt_misc are setup 2020-08-14T20:00:09 #kisslinux <micr0> ideally, if you just pass in OS_IMAGE=kiss-2010.07.tar.xz and OS_URI="k1ss.org/download/", (see https://github.com/jedahan/pi-maker/blob/master/bin/load-os) you can just chroot in, cd /var/db/kiss/installed && kiss build *, and you will get a kiss-2080.07-arm.tar.xz 2020-08-14T20:00:11 #kisslinux <micr0> something like that 2020-08-14T20:02:39 #kisslinux <j`ey> you need to change gcc etc to be for arm 2020-08-14T20:03:07 #kisslinux <micr0> i need to draw out all the layers to not be confused tbh 2020-08-14T20:03:37 #kisslinux <micr0> https://dbhi.github.io/qus/ might be a less hacky version 2020-08-14T20:06:42 #kisslinux <j`ey> could also jsut run a full qemu vm and build in that 2020-08-14T20:08:07 #kisslinux <himmalerin> mcpcpc[m]: What's the way to msg NickServ from kirc? As you can tell from the logs I tried `:m /msg NickServ identify test` but that didn't work 2020-08-14T20:09:34 #kisslinux <j`ey> does it support more than one thing to talk to? 2020-08-14T20:10:19 #kisslinux <j`ey> because it seems to hardcode the channel 2020-08-14T20:10:27 #kisslinux <j`ey> https://github.com/mcpcpc/kirc/blob/master/kirc.c#L229 2020-08-14T20:11:04 #kisslinux <mcpcpc[m]> himmalerin: will take a look in a few! just leaving work, so it will be ~1hr. 2020-08-14T20:13:49 #kisslinux <mcpcpc[m]> j`ey: correct. actually was planning on pushing additional cmd shortcuts later today. should be able to do it in the next few hrs. 2020-08-14T20:14:43 #kisslinux <mcpcpc[m]> would have pushed them sooner, but was busy optimizing and squashing bugs. lol 2020-08-14T20:17:32 #kisslinux <mcpcpc[m]> pm syntax for nicks/channels will be `:M <channel|nick> <message>` 2020-08-14T20:36:40 #kisslinux <mcpcpc[m]> pushed just the :M command for now. will add one specific for messaging NickServ and a shortcut for joining/leaving channels as well later tonight. 2020-08-14T20:37:45 #kisslinux <himmalerin> awesome, thanks! 2020-08-14T20:39:05 #kisslinux <himmalerin> admicos: Back on July 1st you mentioned you patched mako to run without elogind (https://freenode.logbot.info/kisslinux/20200701#c4267575), do you still have the patch handy? looking to get wayland notifications set up and I ran into the elogind dep 2020-08-14T20:39:26 #kisslinux <admicos> should be on github.com/admicos/kiss-repo under custom 2020-08-14T20:42:27 #kisslinux <jedavies> j`ey: the rpi zero is armv6? 2020-08-14T20:43:42 #kisslinux <j`ey> jedavies: ye 2020-08-14T20:44:20 #kisslinux <himmalerin> admicos: Found it, ty! Do you mind if I include it in github.com/Himmalerin/kiss-wayland? I can link back to your repo somewhere if you want (commit message and/or build file?) 2020-08-14T20:45:31 #kisslinux <admicos> most of the work on that patch isn't mine, i got it from a mako PR (or someone else's branch, not exactly sure) and just hacked it to work, 2020-08-14T20:46:02 #kisslinux <admicos> the patch also has the full git log inside, that seems like enough credit to me :pü