christopher

joined 2 years ago
[–] christopher@programming.dev 0 points 3 months ago* (last edited 3 months ago)

A free book is Modern C, Third Edition, which covers C23. You will want to use section 3 only as a reference. Because that last section covers advanced topics such as threading where you will probably choose another language rather than implement your program in C. But this book covers some essentials not in K&R, such as unicode.

[–] christopher@programming.dev 1 points 5 months ago

I think pacman should at least warn you if the problem is enough to warrant a post on the arch website.

It will, if you install the informant package from the aur or the chaotic-aur unofficial repo.

Otherwise you can follow the advice in the wiki System maintenance page, which says to read the home page, or news RSS feed, or arch-announce mailing list before upgrading.

[–] christopher@programming.dev 1 points 7 months ago
  1. Can't help you there as I learned on a manual typewriter years before I saw a computer.
  2. Editing on Vim/Neovim is really only good on US qwerty layout. It doesn't matter too much on Emacs unless the layout you chose is missing the symbols for your programming language or you're using evil mode. I had a hard time on a Latin American layout and switched to a "US international, no dead keys" layout. I can type in Spanish quite easily with this layout, it is Right-Alt pressed with e to get é for example. And I use the same layout for programming. The Latam layout I typed 'e to get é but the dead key single quote meant I had to type quote followed by a space to get a quote while programming. I had to change the physical keyboard to a US layout one to get everything right. Without doing that [ and ctrl-[ were on different keys, for example. It took some searching in the shops to find one but it was very much worth it.
[–] christopher@programming.dev 1 points 9 months ago

I still have an EeePC 900A that came with Xandros. I kept Xandros on it until Ubuntu 10.04 Network Edition came out.

[–] christopher@programming.dev 2 points 9 months ago

I still have a 9" netbook with Debian 12 Bookworm on it. Sadly, it's 32 bit so won't be getting Debian 13 Trixie. Maybe Void?

[–] christopher@programming.dev 2 points 9 months ago

I had a machine with multiple OSes chosen at startup with OS/2 Boot Manager, including OS/2 Warp, Windows NT Workstation 4, and Redhat 5.0 which came on a CDROM labeled Pink Tie 5.0. (It was late '90s I guess. I used MSDOS before that. And a Commodore 64 before that) I believe I put a mail server on it (the Redhat partition) while I was still on dial-up (128K ISDN). The mails waited somewhere until I got online and signalled to send them to me. But then upgraded it to DSL. I was still running Redhat 7.3 with my mail server until 2006, even though Redhat 9 and Fedora were out by then. In 2006, I shut it down and bought a Windows 98 laptop to travel around Central America for a year. The Guatemalans laughed at my Windows 98 laptop--they were running Vista. When I got back to the US in 2007, and broke the laptop screen, oops, I bought a $300 desktop PC that had Lindows installed.

[–] christopher@programming.dev 1 points 11 months ago

Isn't MX based on Debian? So I guess MX is only going to support i386 until about a year from now, as Debian 13 is dropping i386 support.

[–] christopher@programming.dev 2 points 11 months ago

I am using Music Player Daemon, and I use the following script to turn gPodder into a client. My music is in ~/Music and I put the podcasts in ~/Music/Podcasts. The script works for both streaming or downloaded podcasts.

[~]$ cat bin/mpcut.sh
#!/bin/bash
if [ "$(echo "$1" | cut -b-4)" = "http" ]; then
    /usr/bin/mpc pause
    /usr/bin/mpc insert "$1"
    /usr/bin/mpc toggle
    /usr/bin/notify-send -i gpodder "$1 inserted to next spot in playlist."
else
    /usr/bin/mpc pause
    /usr/bin/mpc add "Podcasts/$(echo "$1" | cut -d"/" -f6-)"
    /usr/bin/mpc toggle
    /usr/bin/notify-send -i gpodder "$(echo "$1" | cut -d"/" -f7-)" "added to end of playlist."
fi

Audio Player in gPodder preferences is set to this: /home/christopher/bin/mpcut.sh %F

I have an application shortcut Super-G set to this in xfce4-keyboard-settings: env GTK_THEME=Adwaita-dark GPODDER_HOME=/home/christopher/.config/gPodder/ GPODDER_DOWNLOAD_DIR=/home/christopher/Music/Podcasts/ /usr/bin/gpodder

or you could use an alias: alias gpodder='GTK_THEME=Adwaita-dark GPODDER_HOME=/home/christopher/.config/gPodder/ GPODDER_DOWNLOAD_DIR=/home/christopher/Music/Podcasts/ /usr/bin/gpodder --verbose'