christopher

joined 1 year ago
[–] christopher@programming.dev 10 points 2 months ago (2 children)

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.

[–] christopher@programming.dev 2 points 3 months ago (1 children)
# 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.

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

I drop files I want to share in ~/public_html/files/ as I have a webserver running on my desktop with the firewall open to the local network. Might be tough for a noob to setup though. But on my phone the file shows up in /~christopher/files/ and I have trouble remembering how to type the tilde.

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

No toca los PopOS!

[–] christopher@programming.dev 2 points 6 months ago (1 children)

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.

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

I'm pretty sure Android Studio has a search function for its menus.

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

In case you're on Archlinux, the thonny 4.1.4-1 package in chaotic-aur unofficial repo works for me.

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

For the ebook, install pandoc, then run this:

pandoc -f rst -t epub2 -o pkgsample.epub --metadata title="nedbat/pkgsample: A simple example of how to structure a Python project" --metadata author="Ned Batchelder" https://github.com/nedbat/pkgsample/raw/main/README.rst

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

Can you follow Dave Touretzky's book? The 1990 PDF version is free.

[–] christopher@programming.dev 3 points 11 months 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.

view more: next ›