[-] [email protected] 2 points 1 month ago
# 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] 5 points 9 months ago

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

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

[-] [email protected] 1 points 10 months ago

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.

[-] [email protected] 3 points 10 months ago

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.

[-] [email protected] 7 points 10 months ago

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.

[-] [email protected] 1 points 1 year ago

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

[-] [email protected] 2 points 1 year ago

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.

[-] [email protected] 2 points 1 year ago

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.

[-] [email protected] 2 points 1 year ago

I have these in my RSS feeds. The one from golangweekly puts its full articles in the feed (but thier articles are links with short summaries. The other two only have summaries or maybe just links in thier feeds (I'm not sure which, as I have liferea configured to automatically follow the links.)

view more: next ›

christopher

joined 1 year ago