christopher

joined 1 year ago
[–] [email protected] 9 points 1 month 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.

[–] [email protected] 2 points 1 month 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.

[–] [email protected] 1 points 3 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.

[–] [email protected] 1 points 3 months ago

No toca los PopOS!

[–] [email protected] 2 points 4 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.

[–] [email protected] 1 points 5 months ago

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

[–] [email protected] 1 points 7 months ago

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

[–] [email protected] 1 points 7 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

[–] [email protected] 4 points 9 months ago

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

[–] [email protected] 2 points 10 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 ›