christopher

joined 1 year ago
[–] christopher 1 points 1 month ago

No error for me.

[–] christopher 2 points 2 months ago

$ info {command} although not available for all commands will often give texts that are more tutorial in nature. If you don't like the interface of info, you can use tkinfo instead.

[–] christopher 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 2 points 2 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 1 points 4 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 1 points 4 months ago

No toca los PopOS!

[–] christopher 3 points 5 months ago
[–] christopher 2 points 5 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 1 points 6 months ago

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

[–] christopher 1 points 8 months ago

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

[–] christopher 1 points 8 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 5 points 10 months ago

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

view more: next ›