Skip Navigation
Jump
Is there a good, modern, widely accepted, learning Linux resource?
  • $ 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.

    2
  • Jump
    Recommendations for private tracker for keys?
  • 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.

    10
  • Jump
    How to go from writing code that works to writing efficient, clean code and following good practices?
  • # 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.

    2
  • Jump
    How can I easily and conveniently transfer files wirelessly between my linux computer and android phone?
  • 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.

    1
  • Jump
    Wrote minimal minibuffer-centric MPD client
  • 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.

    2
  • Jump
    One way to package Python code right now
  • 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

    1
  • Jump
    what caused you to get into Linux?
  • 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.

    3
  • Jump
    Browse and Discover Manpages
  • On Debian, there is a package that displays system documentation including, if I remember correctly, man pages. I think I had to set up a local web server first.

    1
  • Jump
    Browse and Discover Manpages
  • On Archlinux at least, the glibc package includes info pages for C functions. Just type info libc at the command line, or use info inside emacs. There are hyperlinks in info pages, it's a nicer interface than man pages.

    1
  • Jump
    *Permanently Deleted*
  • 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.

    1
  • Jump
    What got you into coding ? (aside from money)
  • 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.

    7
  • Jump
    ...
  • 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.

    2
  • Jump
    How to create a menu entry for booting into the command line from GRUB.
  • 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.

    2