💾 Archived View for gemini.ctrl-c.club › ~phoebos › logs › freenode-kisslinux-2020-08-06.txt captured on 2024-05-12 at 16:07:54.

View Raw

More Information

⬅️ Previous capture (2021-12-17)

-=-=-=-=-=-=-

2020-08-06T02:09:45 #kisslinux <xzcvczx> haha
2020-08-06T02:10:24 #kisslinux <xzcvczx> that might have been dylans conclusion as well
2020-08-06T07:28:56 #kisslinux <adamantium> yo
2020-08-06T07:29:10 #kisslinux <adamantium> somebody tell the depsterr guy (gkiss) to maintain my packages!
2020-08-06T07:29:19 #kisslinux <adamantium> I could use the help :)
2020-08-06T07:29:30 #kisslinux <adamantium> Life getting hard over here.
2020-08-06T08:02:36 #kisslinux <dylanaraps> Added '?' keybind to shfm to show keybinds. https://u.teknik.io/cdcFg.png
2020-08-06T09:46:31 #kisslinux <dylanaraps> ooo
2020-08-06T09:46:37 #kisslinux <dylanaraps> New musl release with new malloc implementation
2020-08-06T09:46:53 #kisslinux <j`ey> wasnt that a few days ago?
2020-08-06T09:47:08 #kisslinux <dylanaraps> 2 days ago
2020-08-06T09:47:18 #kisslinux <dylanaraps> I didn't look at my computer yesterday
2020-08-06T09:47:31 #kisslinux <dylanaraps> I'd call 2 days old new though... lol
2020-08-06T09:48:05 #kisslinux <j`ey> oh, it wasnt you:
2020-08-06T09:48:06 #kisslinux <j`ey> 16:56:40 < dilynm> New musl release featuring the debut of mallocng. How exciting!
2020-08-06T09:48:22 #kisslinux <j`ey> I thought it was you that said that :D
2020-08-06T09:48:43 #kisslinux <dylanaraps> lol
2020-08-06T09:48:49 #kisslinux <dylanaraps> New mesa as well
2020-08-06T11:04:23 #kisslinux <dylanaraps> shfm can now be run inside subshells.
2020-08-06T11:04:28 #kisslinux <dylanaraps> cd "$(shfm)"
2020-08-06T11:04:32 #kisslinux <dylanaraps> This now works :D
2020-08-06T11:21:58 #kisslinux <aosync> Do you guys make a package for your kernel or do you manage it by hand?
2020-08-06T11:30:48 #kisslinux <dylanaraps> I manage mine by hand
2020-08-06T11:31:03 #kisslinux <dylanaraps> cd kernel-ver; cp config; make; make install
2020-08-06T11:31:17 #kisslinux <mcpcpc[m]> same
2020-08-06T11:31:22 #kisslinux <dylanaraps> I use an EFISTUB so there's no need to anything else.
2020-08-06T11:31:31 #kisslinux <dylanaraps> (It always boots 'vmlinuz')
2020-08-06T11:32:32 #kisslinux <aosync> I see
2020-08-06T11:41:29 #kisslinux <aosync> Do you guys use swap?
2020-08-06T11:41:49 #kisslinux <aosync> I'm tempted to reformat my swap partition into an efi one. (if that's even possible)
2020-08-06T11:42:03 #kisslinux <mcpcpc[m]> nope.  no swap for me.
2020-08-06T11:44:58 #kisslinux <dylanaraps> I use swap
2020-08-06T11:45:04 #kisslinux <dylanaraps> My laptop has 7GB of memory
2020-08-06T11:45:16 #kisslinux <dylanaraps> 1GB system ram is reserved for the GPU...
2020-08-06T11:45:30 #kisslinux <dylanaraps> A swapfile specifically. Very flexible.
2020-08-06T11:50:09 #kisslinux <aosync> Using a swap file prevents the need for a swap partition, right ?
2020-08-06T11:51:21 #kisslinux <aosync> Because i'd want to reformat my current swap *partition* into an EFI one to use EFISTUB for fast booting. But if swap is useful, I can still use a swap *file* after such operation, right?
2020-08-06T11:53:26 #kisslinux <dylanaraps> Yes
2020-08-06T11:53:36 #kisslinux <dylanaraps> It's merely a file
2020-08-06T11:53:45 #kisslinux <aosync> Ok nice
2020-08-06T11:53:47 #kisslinux <dylanaraps> See: https://wiki.archlinux.org/index.php/Swap#Swap_file
2020-08-06T11:54:18 #kisslinux <aosync> Is it possible to uninstall grub ?
2020-08-06T12:03:07 #kisslinux <motorto> Of course
2020-08-06T12:38:05 #kisslinux <aosync> Mhm
2020-08-06T12:38:07 #kisslinux <dylanaraps> You can use whatever bootloader you like.
2020-08-06T12:38:10 #kisslinux <dylanaraps> Or none at all.
2020-08-06T12:38:19 #kisslinux <aosync> I can't find /sys/firmware/efi/efivars
2020-08-06T12:38:24 #kisslinux <dylanaraps> You need to mount it
2020-08-06T12:38:51 #kisslinux <dylanaraps> mount -t efivarfs efivarfs /sys/firmware/efi/efivars
2020-08-06T12:38:54 #kisslinux <dylanaraps> Something like this
2020-08-06T12:39:05 #kisslinux <aosync> -> doas mount -t efivarsfs none /sys/firmware/efi/efivars
2020-08-06T12:39:06 #kisslinux <aosync> mount: mounting none on /sys/firmware/efi/efivars failed: No such file or directory
2020-08-06T12:39:28 #kisslinux <dylanaraps> Do you have CONFIG_EFIVAR_FS=y?
2020-08-06T12:39:53 #kisslinux <aosync> Oh, it is in m
2020-08-06T12:39:58 #kisslinux <aosync> brb recompiling it in y
2020-08-06T12:40:12 #kisslinux <dylanaraps> You could also just load the module if you like
2020-08-06T12:40:20 #kisslinux <aosync> -> doas modprobe efivarfs
2020-08-06T12:40:21 #kisslinux <aosync> modprobe: can't load module efivarfs (kernel/fs/efivarfs/efivarfs.ko): No such device
2020-08-06T12:40:23 #kisslinux <aosync> ->
2020-08-06T12:40:24 #kisslinux <aosync> Doesn't work.
2020-08-06T12:40:36 #kisslinux <dylanaraps> Depends again on how you've built the kernel
2020-08-06T12:40:48 #kisslinux <dylanaraps> Did you do 'make modules_install'?
2020-08-06T12:40:55 #kisslinux <aosync> Yes
2020-08-06T12:41:05 #kisslinux <dylanaraps> Hm
2020-08-06T12:41:08 #kisslinux <dylanaraps> Just make it =y
2020-08-06T12:41:12 #kisslinux <dylanaraps> That'll work 100%
2020-08-06T12:46:05 #kisslinux <aosync_> Same issue.
2020-08-06T12:46:16 #kisslinux <aosync_> /sys/firmware/efi(/efivars) doesn't exist
2020-08-06T12:46:25 #kisslinux <j`ey> did you mount it?
2020-08-06T12:46:59 #kisslinux <aosync_> I can't mount it since /sys/firmware/efi doesn't exist even
2020-08-06T12:50:17 #kisslinux <aosync_> Again
2020-08-06T12:50:18 #kisslinux <aosync_> -> mount -t efivarfs none /sys/firmware/efi/efivars
2020-08-06T12:50:21 #kisslinux <aosync_> mount: mounting none on /sys/firmware/efi/efivars failed: No such file or directory
2020-08-06T12:51:00 #kisslinux <j`ey> what about mount -t efivarfs efivarfs /sys/firmware/efi/efivars ?
2020-08-06T12:52:17 #kisslinux <aosync_> -> mount -t efivarfs efivarfs /sys/firmware/efi/efivars
2020-08-06T12:52:17 #kisslinux <aosync_> mount: mounting efivarfs on /sys/firmware/efi/efivars failed: No such file or directory
2020-08-06T12:57:40 #kisslinux <dylanaraps> Are you booting via EFI?
2020-08-06T12:57:44 #kisslinux <dylanaraps> Or with BIOS?
2020-08-06T12:58:15 #kisslinux <aosync_> I said Both, with BIOS first. But that's because It doesn't boot when I select UEFI
2020-08-06T12:59:22 #kisslinux <aosync_> Should I select Both, UEFI first ?
2020-08-06T13:01:28 #kisslinux <dylanaraps> You need to boot with EFI to mount the fs iirc.
2020-08-06T13:01:49 #kisslinux <aosync_> How to boot with EFI, then?
2020-08-06T13:07:27 #kisslinux <aosync> I'm back.
2020-08-06T13:08:04 #kisslinux <aosync> I can't boot in UEFI mode.
2020-08-06T13:09:11 #kisslinux <aosync> Should I use an arch live usb to boot in EFI to install EFI or ?
2020-08-06T13:09:13 #kisslinux <dylanaraps> What's the error?
2020-08-06T13:09:30 #kisslinux <aosync> Nothing, when I boot UEFI, it just boots nothing.
2020-08-06T13:09:32 #kisslinux <dylanaraps> Have you setup/installed grub for EFI boot?
2020-08-06T13:09:52 #kisslinux <dylanaraps> Do you have the write partition size/fs for EFI?
2020-08-06T13:09:56 #kisslinux <dylanaraps> right*
2020-08-06T13:10:02 #kisslinux <aosync> 2gb is enough?
2020-08-06T13:10:10 #kisslinux <dylanaraps> See: https://k1ss.org/install#8.2
2020-08-06T13:10:25 #kisslinux <dylanaraps> aosync: Depends on how many kernels you want to store there.
2020-08-06T13:10:28 #kisslinux <dylanaraps> I set 512MiB
2020-08-06T13:10:49 #kisslinux <konimex> so 2gigs is definitely too many
2020-08-06T13:11:01 #kisslinux <konimex> s/many/much
2020-08-06T13:11:03 #kisslinux <dylanaraps> 512 is typically what you set
2020-08-06T13:11:19 #kisslinux <aosync> It's just my reformated swap partition
2020-08-06T13:11:24 #kisslinux <dylanaraps> I see
2020-08-06T13:11:28 #kisslinux <dylanaraps> Keep that size then
2020-08-06T13:11:41 #kisslinux <dylanaraps> Must be FAT32
2020-08-06T13:11:58 #kisslinux <dylanaraps> Remember to mount it before you write to /boot as well.
2020-08-06T13:12:39 #kisslinux <aosync> -> mount /dev/sda1 /boot
2020-08-06T13:12:39 #kisslinux <aosync> -> grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=kiss
2020-08-06T13:12:42 #kisslinux <aosync> Installing for x86_64-efi platform.
2020-08-06T13:12:43 #kisslinux <aosync> grub-install: error: efibootmgr failed to register the boot entry: No such file or directory.
2020-08-06T13:12:46 #kisslinux <aosync> EFI variables are not supported on this system.
2020-08-06T13:12:49 #kisslinux <aosync> EFI variables are not supported on this system.
2020-08-06T13:13:59 #kisslinux <dylanaraps> You may need to boot a live iso (booted with EFI, supporting EFI) to do this.
2020-08-06T13:14:08 #kisslinux <aosync> Ok
2020-08-06T13:14:15 #kisslinux <aosync> Downloading arch real quick
2020-08-06T13:14:17 #kisslinux <dylanaraps> I always keep one handy
2020-08-06T13:17:33 #kisslinux <aosync> Usually same, but I lost mine in Romania it seems.
2020-08-06T13:26:29 #kisslinux <dylanaraps> lol
2020-08-06T13:45:13 #kisslinux <aosync> Yay, I have made some progress
2020-08-06T13:45:42 #kisslinux <aosync> The kernel boots with efi thing it seems
2020-08-06T13:45:49 #kisslinux <aosync> But i get
2020-08-06T13:46:20 #kisslinux <aosync> VFS: cannot open root device "(null)" or unknown block [.....]
2020-08-06T13:46:32 #kisslinux <aosync> Please append a correct "root=" boot option
2020-08-06T13:47:23 #kisslinux <aosync> I set root=/dev/sda2. shouldn't it work?
2020-08-06T13:47:36 #kisslinux <aosync> or is it root=sda2
2020-08-06T13:47:57 #kisslinux <aosync> Imma try root=sda2
2020-08-06T13:50:44 #kisslinux <aosync> It doesn't work.
2020-08-06T13:55:27 #kisslinux <lowerothello> iirc you should use the uuid
2020-08-06T13:57:02 #kisslinux <aosync> I'll try the uuid
2020-08-06T13:57:19 #kisslinux <aosync> but grub uses the path and it works
2020-08-06T14:04:48 #kisslinux <aosync> lowerothello: Nope, it still doesn't work with the uuid.
2020-08-06T14:05:56 #kisslinux <dilynm> It should be /dev/sda2 if sda2 is where / is
2020-08-06T14:06:09 #kisslinux <dilynm> What's the whole boot line that's being used?
2020-08-06T14:07:17 #kisslinux <aosync> dilynm: I am attempting to set up the efistub. I run efibootmgr with --unicode 'root=/dev/sda2'
2020-08-06T14:09:55 #kisslinux <dilynm> Try --unicode 'root=/dev/sda2 rw'?
2020-08-06T14:10:22 #kisslinux <dilynm> Wait do you only run efibootmgr --unicode 'foo'?
2020-08-06T14:10:49 #kisslinux <aosync> No,
2020-08-06T14:11:22 #kisslinux <aosync> I run with --disk --part --create --loader --unicode --verbose and their respective arguments
2020-08-06T14:19:55 #kisslinux <dilynm> Gotcha gotcha just want to make sure :)
2020-08-06T14:20:59 #kisslinux <dilynm> I run this command ix.io/2tqh idr if it's different from the install guide
2020-08-06T14:25:56 #kisslinux <aosync> dilynm: Adding RW worked, thanks a lot !
2020-08-06T14:29:38 #kisslinux <dilynm> Woohoo!
2020-08-06T14:31:11 #kisslinux <aosync> Now the last step, removing grub.
2020-08-06T14:37:57 #kisslinux <aosync> I'm not sure how to properly do it.
2020-08-06T14:46:41 #kisslinux <aosync> I think I did it
2020-08-06T14:48:52 #kisslinux <dilynm> Shouldnt it just be as easy as kiss r grub?
2020-08-06T14:49:10 #kisslinux <dilynm> And then delete anything in /{boot,etc}/grub
2020-08-06T15:30:55 #kisslinux <motorto> Does anyone here have an optimus laptop(intel + nvidia) ?
2020-08-06T17:44:36 #kisslinux <smoke790> Hello, what packages do I need to install to get basic audio (alsa) working?
2020-08-06T17:52:26 #kisslinux <dilynm> alsa-lib, alsa-utils if you want alsamixer
2020-08-06T17:53:06 #kisslinux <smoke790> Alrighty, thanks
2020-08-06T18:02:03 #kisslinux <smoke790> Oh and also, how do I keep these environment variables like "CFLAGS="-O3 -pipe -march=native" and so on, so they stay? Is putting these in ".profile" in my home directory the right choice??
2020-08-06T18:02:32 #kisslinux <dilynm> If you want them available on login and only for your user, then yes
2020-08-06T18:03:02 #kisslinux <admicos> I'd prefer /etc/profile but .profile should work nicely as well
2020-08-06T18:03:32 #kisslinux <admicos> wait, i think it was /etc/profile.d
2020-08-06T18:03:42 #kisslinux <dilynm> You can also put it in /etc/profile
2020-08-06T18:03:56 #kisslinux <admicos> yeah, but separating everything works better for organization imo
2020-08-06T18:04:03 #kisslinux <dilynm> etc/profile just executes files in /etc/profile.d anyways
2020-08-06T18:04:07 #kisslinux <dilynm> Yes v true
2020-08-06T18:09:37 #kisslinux <smoke790> I see
2020-08-06T18:22:22 #kisslinux <aosync> smoke790: There shouldn't be a need for additionnal packages to install for audio (except if you go with pulse or sndio stuff). But you might need to enable some kernel options to get it working.
2020-08-06T18:22:54 #kisslinux <aosync> Oops, nevermind, ye there are those.
2020-08-06T18:23:30 #kisslinux <aosync> But the kernel options to enable still stand.
2020-08-06T18:23:42 #kisslinux <aosync> Depending on your hardware.
2020-08-06T18:25:19 #kisslinux <dilynm> And the fastest solution there is to just enable basically everything xD
2020-08-06T18:31:05 #kisslinux <admicos> for most current systems i know of, enabling the HDA driver should be enough
2020-08-06T18:31:11 #kisslinux <aosync> Lmao yes.
2020-08-06T18:31:15 #kisslinux <admicos> (well, also the codecs but I have no idea about those)
2020-08-06T18:31:22 #kisslinux <aosync> I just looked at the gentoo wiki for my machine.
2020-08-06T18:34:25 #kisslinux <dilynm> The codecs are best determined by I think lspci -kkk or lsmod on a system running with the right module enabled (like an arch live system)
2020-08-06T18:35:14 #kisslinux <dilynm> But yeah odds are if you don't know what sound driver you need it's probably snd_hda_intel
2020-08-06T18:50:00 #kisslinux <dilynm> Is there a way to get kiss to not pull in every single submodule, and just grab a specific one?
2020-08-06T19:02:47 #kisslinux <dilynm> http://ix.io/2trD; if I build x264 with -disable-opencl this error doesn't occur
2020-08-06T19:03:02 #kisslinux <dilynm> Presumably, this is an option I wouldn't want to disable. But now I know why it happens
2020-08-06T21:07:04 #kisslinux <himmalerin> anyone else get a seg fault with alacritty when they try to launch it?
2020-08-06T21:12:56 #kisslinux <claudia02> olasdasdassdasdas
2020-08-06T21:13:06 #kisslinux <claudia02> oha ^
2020-08-06T21:17:04 #kisslinux <dilynm> o/
2020-08-06T21:17:36 #kisslinux <claudia02> o/
2020-08-06T21:17:56 #kisslinux <claudia02> since newst musl, falkon/qutebrowser does not want to play videos
2020-08-06T21:18:18 #kisslinux <claudia02> I have just tested with the old version, that works
2020-08-06T21:18:40 #kisslinux <claudia02> also my c irc client doesnt want to work anymore..:2020-08-06T21:19:06 #kisslinux <claudia02> anyone observed similarĂź
2020-08-06T21:19:09 #kisslinux <claudia02> ?
2020-08-06T21:21:52 #kisslinux <claudia02> oh I see, himmalerin:  also has probs.
2020-08-06T21:28:52 #kisslinux <himmalerin> You doing ok over there claudia02? I see keyboard issues :p
2020-08-06T21:29:44 #kisslinux <claudia02> :D
2020-08-06T21:29:54 #kisslinux <claudia02> birch is not showing what I type,lol
2020-08-06T21:34:49 #kisslinux <claudia02> just for the record: qt browser cannot play videos because 'render process crashed'
2020-08-06T21:54:03 #kisslinux <himmalerin> claudia02: How is birch working out anyway? I tried it a couple months ago but I recall it being a bit wacky in behavior
2020-08-06T21:56:16 #kisslinux <himmalerin> magenbluten: I saw your message about foot in the logs btw, its working fine here. Better than alacritty :p (which is currently seg faulting)
2020-08-06T21:59:41 #kisslinux <claudia02> Birch normaly works quiet good for small needs. Only downside is, that it does not reconnect. Especially bad and bad connections. Thats why I was using rirc.
2020-08-06T21:59:58 #kisslinux <claudia02> *bad on bad connections.
2020-08-06T22:03:36 #kisslinux <mcpcpc[m]> himmalerin: a shameless plug for my own IRC client project: https://github.com/mcpcpc/kirc
2020-08-06T22:04:40 #kisslinux <mcpcpc[m]> but realistically, probably not as functional or useable as birch or other options :(
2020-08-06T22:10:52 #kisslinux <claudia02> himmalerin: Is foot a viable alternative to alacritty? Especially when one needs only rust for a terminal :D
2020-08-06T22:31:33 #kisslinux <himmalerin> claudia02: So far so good! It's got a config file where you can set fonts and colors which is all I need, but it's also got key-bindings. base config file: https://codeberg.org/dnkl/foot/src/branch/master/footrc
2020-08-06T22:31:35 #kisslinux <himmalerin>  Seems fast enough but when you're using a tiling wm and close a window theres a super brief flash of reflowing text which a little ugly. Doubt you'll notice it on a floating wm.
2020-08-06T22:32:05 #kisslinux <himmalerin> mcpcpc[m]: I'll take a look, thanks for the suggestion! All I really need is something to connect, I never do anything fancy
2020-08-06T22:33:04 #kisslinux <himmalerin> mcpcpc[m]: I don't see a passwd flag, how do you set up nickserv? Each time you launch it?
2020-08-06T22:36:49 #kisslinux <mcpcpc[m]> himmalerin: removed the pass flag for now (bc i didnt want to accidentally forget to remove my actual pass from the global default >.<) you can still identify/ provide pass info once connected.
2020-08-06T22:38:28 #kisslinux <mcpcpc[m]> correct... nickserv info is provided each time you connect. at least for now.
2020-08-06T22:39:49 #kisslinux <mcpcpc[m]> i just pushed the initial release like 2hrs ago. lol. so still lots of work to be done.  but it works and fills my needs.
2020-08-06T22:40:35 #kisslinux <himmalerin> fair enough, I'll give it a shot
2020-08-06T22:44:13 #kisslinux <himmalerin_> Can't seem to send any messages
2020-08-06T22:45:02 #kisslinux <himmalerin_> ':m message text' just prints out "card.freen No such nick/channel"
2020-08-06T22:47:06 #kisslinux <mcpcpc[m]> himmalerin_: hm. one sec
2020-08-06T22:49:12 #kisslinux <mcpcpc[m]> himmalerin_: ah.  need to push a minor fix to the git.  2 more secs
2020-08-06T22:49:34 #kisslinux <himmalerin_> gotcha
2020-08-06T22:49:49 #kisslinux <himmalerin_> At least it compiles basically instantly :p
2020-08-06T22:52:29 #kisslinux <mcpcpc> test
2020-08-06T22:52:54 #kisslinux <mcpcpc[m]> himmalerin_: should work now >.<
2020-08-06T22:53:13 #kisslinux <himmalerin_kirc> testing
2020-08-06T22:53:29 #kisslinux <himmalerin_kirc> seems
2020-08-06T22:53:54 #kisslinux <himmalerin> Seems to be working now, except it drops all but the first word
2020-08-06T22:54:04 #kisslinux <claudia02> testing
2020-08-06T22:54:33 #kisslinux <himmalerin> Wish I actually knew C so I could help
2020-08-06T22:54:37 #kisslinux <claudia02> "testing
2020-08-06T22:55:07 #kisslinux <mcpcpc[m]> <himmalerin "Seems to be working now, except "> ?  maybe a screenshot?
2020-08-06T22:55:29 #kisslinux <himmalerin> Of the terminal running kirc?
2020-08-06T22:55:49 #kisslinux <mcpcpc[m]> himmalerin: word dropping issue
2020-08-06T22:56:32 #kisslinux <dylanaraps> ello
2020-08-06T22:56:40 #kisslinux <himmalerin> Not really sure how I'd do that. Basically I sent ":m seems to be!" from kirc and then from this client I only see "seems"
2020-08-06T22:56:41 #kisslinux <claudia02> ola
2020-08-06T22:56:44 #kisslinux <himmalerin> hello!
2020-08-06T22:56:50 #kisslinux <motorto> Hey !
2020-08-06T22:57:22 #kisslinux <mcpcpc[m]> himmalerin: hm.  will try that.  one sec.  i will spam another channel. lol!
2020-08-06T22:58:22 #kisslinux <dylanaraps> I am also looking for a new IRC client
2020-08-06T22:58:26 #kisslinux <dylanaraps> :(
2020-08-06T22:58:54 #kisslinux <E5ten> I'm not too familiar with scanf, but I'd guess the issue is the sscanf(usrin line is only grabbing the first word to put in cmd_val
2020-08-06T22:59:10 #kisslinux <himmalerin> dylanaraps: what're you using right now?
2020-08-06T22:59:16 #kisslinux <dylanaraps> himmalerin: birch
2020-08-06T22:59:29 #kisslinux <dylanaraps> irssi requires glib and weechar requires libgpg-stuff
2020-08-06T22:59:29 #kisslinux <E5ten> mcpcpc: also, for the malloc for cmd_val you shouldn't multiply sizeof(char), because the size of a byte is inherently the size of a char
2020-08-06T22:59:45 #kisslinux <E5ten> so if you're malloc'ing for a char *, you just do the size, * sizeof(char) is implicit
2020-08-06T23:00:00 #kisslinux <mcpcpc[m]> <himmalerin "Wish I actually knew C so I coul"> actually decided to learn C after i saw how Dylan writes his own tools. thought it was a cool idea.  then i saw i read somewhere that “everyone should try to write an IRC client at some point”. :P
2020-08-06T23:00:12 #kisslinux <claudia02> I was quite happy with this client. https://github.com/rcr/rirc
2020-08-06T23:00:12 #kisslinux <dylanaraps> ooo
2020-08-06T23:00:17 #kisslinux <dylanaraps> You're writing a client?
2020-08-06T23:01:06 #kisslinux <mcpcpc[m]> E5ten: nooo!  i am not ready for the QA.  lol. i just pushed it git like 2hrs ago.  >.<
2020-08-06T23:01:13 #kisslinux <mcpcpc[m]> dylanaraps: yup!
2020-08-06T23:01:23 #kisslinux <E5ten> that was just a single thing I noticed while looking for the cause of the word dropping issue lol
2020-08-06T23:01:38 #kisslinux <E5ten> and yeah, like I said, it seems to be the scanf
2020-08-06T23:01:48 #kisslinux <E5ten> cuz scanf %s matches a string of non-whitespace characters
2020-08-06T23:01:49 #kisslinux <mcpcpc[m]> oh. lol.  thank you!  now look away!
2020-08-06T23:01:57 #kisslinux <E5ten> so it's only putting the first word in cmd_val
2020-08-06T23:02:38 #kisslinux <mcpcpc[m]> <E5ten "so it's only putting the first w"> ah. kk will fix it shortly!
2020-08-06T23:03:46 #kisslinux <dylanaraps> > features
2020-08-06T23:03:48 #kisslinux <dylanaraps> > [200~automatic host PING response.~
2020-08-06T23:03:50 #kisslinux <dylanaraps> lol
2020-08-06T23:04:03 #kisslinux <dylanaraps> I like it already
2020-08-06T23:04:47 #kisslinux <E5ten> uhhh completely untested but try this lol http://ix.io/2tsQ
2020-08-06T23:05:30 #kisslinux <E5ten> oh wait that's broken sorry
2020-08-06T23:05:48 #kisslinux <E5ten> cuz the snprintf is writing part of usrin back into usrin
2020-08-06T23:05:50 #kisslinux <dylanaraps> > +#include <ctype.h>
2020-08-06T23:05:51 #kisslinux <E5ten> which is undefined
2020-08-06T23:05:54 #kisslinux <dylanaraps> What's this include?
2020-08-06T23:05:59 #kisslinux <E5ten> for the isspace
2020-08-06T23:06:05 #kisslinux <dylanaraps> Gotcha
2020-08-06T23:06:25 #kisslinux <dylanaraps> There's a lot of handy functions in there huh?
2020-08-06T23:06:40 #kisslinux <E5ten> it's pretty much the is* and to* functions
2020-08-06T23:06:49 #kisslinux <dylanaraps> Yup
2020-08-06T23:08:21 #kisslinux <E5ten> mcpcpc: http://ix.io/2tsR try this, it's the same as my last patch, but I duplicated what cmd_val is pointing to, so the snprintf won't be dealing with overlapping memory
2020-08-06T23:12:06 #kisslinux <mcpcpc> seems
2020-08-06T23:12:34 #kisslinux <mcpcpc[m]> hm.  same issue issue i think.
2020-08-06T23:12:55 #kisslinux <E5ten> still drops everything after the first word?
2020-08-06T23:13:00 #kisslinux <mcpcpc[m]> yeah
2020-08-06T23:14:52 #kisslinux <E5ten> can you add this line after the strdup just so I can see if cmd_val has dropped the first word at that point? fprintf(stderr, "%sn", cmd_val);
2020-08-06T23:15:09 #kisslinux <dylman2> yes[D[D[D[D[D[D[D[D[C[C[C[C[C[C[C[C[C[C[C[C[C[C
2020-08-06T23:15:12 #kisslinux <E5ten> and then check if what gets printed to stderr is the whole string or just the first word
2020-08-06T23:15:13 #kisslinux <dylanaraps> lol
2020-08-06T23:15:14 #kisslinux <dylanaraps> oops
2020-08-06T23:15:18 #kisslinux <dylanaraps> I can't backspace
2020-08-06T23:15:25 #kisslinux <dylanaraps> Arrow keys caused that to send(?)
2020-08-06T23:16:17 #kisslinux <dylanaraps> (Ctrl + C doesn't send QUIT though this isn't that important really)
2020-08-06T23:16:18 #kisslinux <mcpcpc[m]> <dylanaraps "Arrow keys caused that to send(?"> yeah. it’s a *minor* issue. lol.
2020-08-06T23:16:38 #kisslinux <dylanaraps> If you join with a registered nick, no messages from nickserv are displayed
2020-08-06T23:16:43 #kisslinux <dylanaraps> Just sits with server messages
2020-08-06T23:16:49 #kisslinux <mcpcpc[m]> crtl+c works for me.  hm
2020-08-06T23:17:15 #kisslinux <dylanaraps> I did ctrl+c as dylman2 and no QUIT was sent (unless birch didn't display it?)
2020-08-06T23:17:17 #kisslinux <mcpcpc[m]> oh. wait. misread.  yeah. it just kills it.
2020-08-06T23:17:36 #kisslinux <mcpcpc[m]> need to type :q or quit
2020-08-06T23:17:40 #kisslinux <dylanaraps> Yeah
2020-08-06T23:17:55 #kisslinux <E5ten> I gtg for now, lmk if that fprintf after the strdup prints the whole string or just the first word
2020-08-06T23:17:55 #kisslinux <dylanaraps> Catching Ctrl+c is something you /might/ want to do later. Up to you
2020-08-06T23:18:39 #kisslinux <mcpcpc[m]> dylanaraps: sure.  its on my errata
2020-08-06T23:18:45 #kisslinux <mcpcpc[m]> =P
2020-08-06T23:19:00 #kisslinux <mcpcpc[m]> E5ten: will do. thanks again!
2020-08-06T23:20:27 #kisslinux <dylan02> You might want to check the return value of malloc as well
2020-08-06T23:20:46 #kisslinux <dylan02> if (!var) { die }
2020-08-06T23:20:50 #kisslinux <dylan02> Basically
2020-08-06T23:21:20 #kisslinux <dylan02> Though this is probably on your TODO list already
2020-08-06T23:21:46 #kisslinux <dylan02> Not sure if you're trying to get it working first or not. Depends on how you develop things :P
2020-08-06T23:22:08 #kisslinux <himmalerin> dylan02: What would you say the best way is to indicate packages I've forked from repo/xorg are under the MIT license and (c) you?
2020-08-06T23:22:36 #kisslinux <dylan02> Eh
2020-08-06T23:22:40 #kisslinux <dylan02> Don't include the license
2020-08-06T23:23:20 #kisslinux <dylan02> Packages are weird
2020-08-06T23:23:27 #kisslinux <dylan02> Everyone copies from everyone
2020-08-06T23:23:34 #kisslinux <dylan02> No one credits
2020-08-06T23:23:46 #kisslinux <dylan02> They're basically just build instructions
2020-08-06T23:23:56 #kisslinux <E5ten> Yeah package scripts seem pretty uncopyrightable
2020-08-06T23:24:14 #kisslinux <dylan02> Good luck lol
2020-08-06T23:24:28 #kisslinux <dylan02> Patches tend to include some kind of author information however
2020-08-06T23:24:42 #kisslinux <dylan02> Again... /tend/ to include
2020-08-06T23:25:09 #kisslinux <mcpcpc_test> testing
2020-08-06T23:25:40 #kisslinux <himmalerin> hmm, ok
2020-08-06T23:25:41 #kisslinux <mcpcpc[m]> E5ten: yeah. fprintf prints all words past the first
2020-08-06T23:26:09 #kisslinux <E5ten> Including the first?
2020-08-06T23:26:17 #kisslinux <mcpcpc[m]> yup
2020-08-06T23:26:38 #kisslinux <E5ten> But then it still doesn't send them all?
2020-08-06T23:28:01 #kisslinux <mcpcpc[m]> yeah.  one sec
2020-08-06T23:28:56 #kisslinux <mcpcpc[m]> https://clibin.com/uJd8j
2020-08-06T23:28:59 #kisslinux <E5ten> When I'm back on my computer I'll check out why if you haven't figured it out by then, but it does seem like my patch fixes the issue partway, as in the same issue is caused in more than one place and the patch solves the first one I think
2020-08-06T23:29:40 #kisslinux <mcpcpc[m]> E5ten: yeah. seems so.  will let you know if i make any progress
2020-08-06T23:30:04 #kisslinux <E5ten> Actually I guess add the same printf to the source without my patch, and see if it still prints the whole string, cuz if so then my patch isn't fixing anything
2020-08-06T23:31:18 #kisslinux <mcf> dylanaraps: you should also check out https://git.causal.agency/catgirl/about/
2020-08-06T23:32:55 #kisslinux <dylan02> That's some domain
2020-08-06T23:33:11 #kisslinux <dylan02> Will check it out, thanks
2020-08-06T23:45:52 #kisslinux <E5ten> I'm having a hard time seeing why only the first word would be sent if that printf is printing the whole string
2020-08-06T23:47:14 #kisslinux <E5ten> mcpcpc: also the switch for getopt should have an error on value '?' so it doesn't continue if someone passes incorrect flags
2020-08-06T23:48:04 #kisslinux <e5ten_test> test
2020-08-06T23:48:13 #kisslinux <E5ten> and yet it is
2020-08-06T23:48:16 #kisslinux <E5ten> confusing
2020-08-06T23:49:37 #kisslinux <mcpcpc[m]> ah. sorry. on the phone with gf. =S will be back in a few. to take a look...
2020-08-06T23:49:48 #kisslinux <e5ten_test> test one two
2020-08-06T23:50:41 #kisslinux <e5ten_test> test
2020-08-06T23:51:31 #kisslinux <E5ten> mcpcpc: ok I've got it, I was right about it being 2 issues, my first patch is needed, and also, in the printf with privmsg, put a ":" before the second %s
2020-08-06T23:51:58 #kisslinux <mcpcpc[m]> <E5ten "mcpcpc: ok I've got it, I was ri"> sweet.  one sec
2020-08-06T23:51:59 #kisslinux <E5ten> I guess that's just how IRC works, you gotta do : before a multi-word message?
2020-08-06T23:52:05 #kisslinux <mcpcpc[m]> yup.
2020-08-06T23:58:48 #kisslinux <mcpcpc_test> testing multi word messagfe
2020-08-06T23:58:56 #kisslinux <mcpcpc[m]> nice
2020-08-06T23:59:06 #kisslinux <mcpcpc[m]> E5ten: ty!
2020-08-06T23:59:13 #kisslinux <E5ten> np
2020-08-06T23:59:24 #kisslinux <mcpcpc[m]> saved me a bit of troubleshooting for sure :P