gamma

joined 2 years ago
MODERATOR OF
[–] [email protected] 5 points 1 month ago (1 children)

I think each of 3.8 through 3.11 were substantial, just in different ways.

[–] [email protected] 8 points 2 months ago* (last edited 2 months ago)

Forcing stalemate if you're super down in material

[–] [email protected] 6 points 3 months ago (1 children)

The "$@" doesn't do that you think it does in an alias. It gets expanded on alias creation.

[–] [email protected] 8 points 3 months ago (2 children)

I've got optimizer tendencies, but we've also got another member who is 100% "What would my character do in this high stress situation with the knowledge they have" and I've found myself leaning that way during combat more and more.

I will still scrutinize everything outside of combat though, and I'm thankful for the IRL time pressure to get me out of that.

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

Love the Towerfall OST myself, it was such a shock to hear about him.

[–] [email protected] 1 points 5 months ago* (last edited 5 months ago)

Rivals of Aether 2, its so good to have an indie platfighter that has Smas'hs level of polish.

The first one is still a better casual experience because of workshop and single player modes, but I'm here to shmoove in ranked.

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

Basically the Matrix Spec Change Proposal system, I like it. Opens the floor to more players, gives tool authors a list of protocols they could choose to build on, and hopefully compositors will choose to adopt or adapt one of these protocols before writing their own.

[–] [email protected] 8 points 6 months ago (1 children)

I know that "Vanity Addresses" are a common thing for onion sites, and there are tools which generate tons of keys looking for prefixes. I haven't seen such a tool for ssh host keys though.

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

I put newlines in my filenames to break both CLI tools and Windows filesystems

[–] [email protected] 7 points 7 months ago* (last edited 7 months ago)

Taking courses which involve subjects that you will likely never encounter in the workforce is a thing in every discipline. Most engineers don't need to manually solve differential equations in their day jobs, they just need to know that they exist and will often require numerical solutions.

Getting your hands dirty with the content provides a better understanding when dealing with higher level concepts.

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

zsh-syntax-highlighting

There's also a fork called fast-syntax-highlighting, I use it.

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

IMO the NUL-delimited options are by far the biggest win for shell scripting. $' ' will be the most commonly used addition, but "$(printf '...')" was always an option before. You don't really have an alternative read -d ''.

 

The document itself is paywalled like all the POSIX specifications, so here are some highlights courtesy of some comments at HackerNews, especially from a-french-anon.

 

A huge part of programming in general is learning how to troubleshoot something, not just having someone else fix it for you. One of the basic ways to do that is by tracing. Not only can this help you figure out what your script is doing and how it's doing it, but in the event that you need help from another person, posting the output can be beneficial to the person attempting to help.

(If your shell isn't listed and you know how to enable tracing, comment below and I'll add it to the table!)

Shell How to enable tracing
Bash set -x or set -o xtrace
Fish set fish_trace on
sh set -x
Zsh set -x or setopt xtrace

Also, writing scripts in an IDE that supports your language. syntax highlighting can immediately tell you that you're doing something wrong.

If an IDE isn't an option and you're using Bash or Sh, you can paste your script into https://www.shellcheck.net/

(Inspired by this post on /r/bash)

view more: next ›