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.
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.
# 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.
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.
I’m using this preset with pulseeffects.
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.
I’m pretty sure Android Studio has a search function for its menus.
In case you’re on Archlinux, the thonny 4.1.4-1 package in chaotic-aur unofficial repo works for me.
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
Can you follow Dave Touretzky’s book? The 1990 PDF version is free.
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.
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.
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.
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.
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.
On my computer,
ps -ef | grep Xorg
gives
root 642 632 0 06:09 tty7 00:03:26 /usr/lib/Xorg :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
showing that the X server is running. I suspect that when you run the above ps command, that you will get no output, which shows that the X server is not running on your computer. In that case, you need to remove the lock that is preventing it from starting:
rm /tmp/.X0-lock
A TUI, ytfzf.