0
35
christopher

@programming.dev

christopher 9 points 2 years ago

Just get in the habit of checking for your keys before you go through any door. It takes no mental effort once it's a habit. If they aren't in your pocket (or in my case a lanyard) then they are in that room or vehicle, so you should recover them before going out. This method worked for me 100% for decades. It only failed after I got married and my wife started stealing them. But it's usually not too hard to find her.

path: 0 12064007, hotness: undefined, score: 9, children: 2
christopher 6 points 3 years ago

My middle school algebra teacher sparked my interest in coding.

Due to moving around a lot, I never learned any mathematics, not even basic arithmetic before middle school. In the seventh grade, I was put in a class where the teacher just handed out worksheets with arithmetic problems, and then usually left the classroom until the end of the hour. On the rare occasions when she stayed, I asked her to teach me arithmetic, but she didn't believe I couldn't do it, so she never taught me and I failed the class.

But in the eighth or ninth grade, they allowed me to sign up for the Algebra for dummies class, which taught in two semesters what the normal class taught in one. My new teacher taught me arithmetic the first day, and I was his star pupil from that point.

He invited me and some other students to stay after school to learn FORTRAN. We did not have a computer at the middle school--it was at the university. We didn't even have a card punching machine. So we had cards that looked like punch cards, but instead of punching holes in them, we coded the Hollerith code in them by filling bubbles with a number 2 pencil. Then we sent the cards on a mail truck to the university and got back a printout a week later.

path: 0 4981518, hotness: undefined, score: 6, children: 0
christopher 6 points 2 years ago path: 0 13881447, hotness: undefined, score: 6, children: 0
christopher 4 points 3 years ago path: 0 6188202, hotness: undefined, score: 4, children: 0
christopher 3 points 8 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.

path: 0 22110804, hotness: undefined, score: 3, children: 1
christopher 3 points 2 years ago

I like to read info files when there is one (there are only hundreds of info files vs. thousands of man pages). Many are on your computer already in /usr/share/info folder. To read them, either use M-x info inside emacs, or console app info which is part of the texinfo package, or tkinfo from the AUR. The console app will show you the man page if there is no info file.

Info files tend to be organized hierarchically and be more extensive and tutorial in nature than man pages.

path: 0 15236352, hotness: undefined, score: 3, children: 0
christopher 3 points 2 years ago

There are some memory techniques where you tell yourself a story about the word where you can use some particular person, action, or object to represent the gender. Though these techniques work better if you have the ability to visualize. So for words that are female gender, you could always put your sister in the story, and for the male gendered words your uncle always appears.

path: 0 15100953, hotness: undefined, score: 3, children: 1
christopher 3 points 2 years ago path: 0 10172492, hotness: undefined, score: 3, children: 0
christopher 3 points 2 years ago

Belize is an English-speaking country, but many of the innkeepers, shopkeepers, and waiters are Chinese. I asked a shopkeeper, in Chinese, where I could find a particular item, and got quite a surprised look, but was understood, and I understood his answer.

Though later on, in another shop, when I didn't know the Chinese name of the item I was looking for, I of course came upon the person stocking shelves who spoke only Chinese.

In the same country, I was a house guest, when two men came looking for my host, who was out. They spoke at me really fast, and I had no clue what they said. Then more slowly, “Do you speak English?”

“Yes,” I answered. “But please speak slowly.” They were English speakers, but I did not understand them with their Belizean accent.

Somehow I have a problem understanding most people speaking English, except my fellow Americans (and I even have difficulty understanding some southerners there) but I can understand any accent in Spanish except the Cubans.

Though it turns out about half the people in Punta Gorda can speak Spanish as well as English, which helped me immensely.

Later, in Guatemala, I was at the grocery store asking where to find raisins. And saying not just raisins, but describing them as little black dried-up grapes. Most Guatemalans understand me, and I them (in Spanish). But now I know that is because they are accommodating me by slowing their speech. Every once in a while, I run into someone who is like me with the Belizeans and foreigners speaking English. And then there is a failure to communicate.

path: 0 15238168, hotness: undefined, score: 3, children: 1
christopher 2 points 3 years ago path: 0 1799314, hotness: undefined, score: 2, children: 0
christopher 2 points 3 years ago

It might be possible to boot into a bootable image from grub so you don't need to set up another bootable partition.

Or you could disable your display manager in systemd. This will start in console, then if you want X just run startx.

Or you could change your display manager to Lemur, which supports X, Wayland, and TTY sessions.

Or you could just press control-alt-F2 at the login screen to switch to a console.

path: 0 2533772, hotness: undefined, score: 2, children: 0
christopher 2 points 3 years ago

I don't have any need to edit markdown, but I sometimes use Marker: “Simple yet robust Markdown editor made with GTK” as a viewer.

path: 0 3108727, hotness: undefined, score: 2, children: 0
christopher 2 points 3 years ago

PulseEffects can moderate the high-volumed sounds too. It has a complex set of controls and filters, and I'm not a sound engineer, so I just followed someone else's recipe.

path: 0 4984504, hotness: undefined, score: 2, children: 2
christopher 2 points 3 years ago path: 0 4984504 4994039 5214540, hotness: undefined, score: 2, children: 0
christopher 2 points 3 years ago

My neighbor at the trailer park was a janitor at the university. I built my computer from parts he salvaged from the recycle bin, and put Redhat 5 on it.

path: 0 5624697 5652623, hotness: undefined, score: 2, children: 0
christopher 2 points 2 years ago

To install it on emacs 29 paste this into a scratch buffer and evaluate it:

(package-vc-install
  '(minimpc :url "https://codeberg.org/nmtake/minimpc.el.git"))

And put this in your init.el: (require 'minimpc)

You don't need Vertico or Orderless. I'm using emacs' built-in completion--it works fine.

path: 0 10052873, hotness: undefined, score: 2, children: 1
christopher 2 points 2 years ago
# No else statement, shorter.
def foo(x: int) -> str:
    if x%2:
        return "first"
    return "last"

This is easier to think about for me: am I weird? Numbers can be interpreted as boolean in C but not in Go, which came later and is presumably an improvement.

path: 0 11608552 11609930 11610621 11754148, hotness: undefined, score: 2, children: 1
christopher 2 points 2 years ago

On my machine, neovim is visibly faster on uxterm over alacritty, another gpu-accelerated terminal emulator, so I'm not going to bother trying ghostty. Also, I don't have gtk4 on my computer now. I don't see the need to install it just for a terminal emulator. In addition to xterm, I also have xfce4-terminal (included with the Xfce desktop environment I've been using since Gnome 2 went away) for when I want font-fallback support or a drop-down terminal.

path: 0 14304532, hotness: undefined, score: 2, children: 0
christopher 2 points 2 years ago

Callcentric has Canada numbers. For their Pay Per Minute plan, there is a US$3.95 setup fee. Monthly charge of $3 for the number, plus $0.015 per minute incoming voice (outgoing charge varies by location called) and $0.01 per SMS. Probably an additional charge for 911 emergency number access if you tell them you are going to use the number from inside the USA or Canada.

You can read your text messages on their website and/or have them sent to your email address.

I got a California number from them when I was living there in 2009 or so, and added the SMS more recently (which added $1 to my previous monthly charge of $2). It has never failed me for SMS verification for banks, etc. I have not tried WhatsApp or Telegram.

path: 0 15398361, hotness: undefined, score: 2, children: 0
christopher 2 points 2 years ago

I'm using the Gnome Keyring on my Arch Linux system with Xfce desktop environment, and access its secrets from the command line with secret-tool, but I believe KeepassXC also supports the DBus Secret Service API, so that you can use secret-tool with it also.

path: 0 15398791, hotness: undefined, score: 2, children: 0

thanks for using Leebra!

go to feed...