rbonvall
rbonvall on Hacker News
Yes, that's the smoking gun!
Socks are not getting lost; they are getting compacted to keep the context window small.
In the soccer world, there is the International Federation of Football History and Statistics (IFFHS), that decides several rankings and awards that are regularly cited in traditional media. For example, if a player from my not-quite-football-powerhouse country makes the "best 100 goalkeepers" list or whatever, it'll be on the news.
Turns out the IFFHS was just one guy in Germany during the 80s that leveraged his contacts in news agencies to establish his brand as a reputable source.
Note that it's not a European thing. It's how most football leagues around the world work.
Of course. It's distributed.
Just like that place that's so crowded nobody goes there anymore.
That doesn't explain the "punctuating with multiple cryface emojis".
Lies, Damned lies, and Unreasonable Effectiveness For Fun and Profit
Example of replacing grep+cut with a single awk invokation:
$ echo token:abc:def | grep -E ^token | cut -d: -f2
abc
$ echo token:abc:def | awk -F: '/^token/ { print $2 }'
abc
Conditions don't have to be regular expressions. For example:
$ echo $CSV
foo:24
bar:15
baz:49
$ echo $CSV | awk -F: '$2 > 20 { print $1 }'
foo
baz
I use dtrx, which also ensures that all files are extracted into a folder.
Python also pretty-prints out of the box:
$ echo '{ "hello": "world" }' | python3 -m json.tool
{
"hello": "world"
}
>
I have always wondered what would happen if someone had to invent spreadsheets from scratch, today.This is exactly what Joel Spolsky did:
> What was I talking about? Oh yeah… most people just used Excel to make lists. Suddenly we understood why Lotus Improv, which was this fancy futuristic spreadsheet that was going to make Excel obsolete, had failed completely: because it was great at calculations, but terrible at creating tables, and everyone was using Excel for tables, not calculations.
... so he went on and created Trello.
https://www.joelonsoftware.com/2012/01/06/how-trello-is-diff...
Since no other pedants have chimed in yet, I'm required to point out that 20 years is five olympiads, which is the timespan in between six Olympic games.
Just like Niklaus Wirth's quote about how people used to call him, or the joke about there being 10 kinds of people.
Those are the ones that make me wish people knew just enough Computer Science to get them :)
In my opinion, shell scripting is the right tool when you need to do a lot of calling programs, piping, and redirecting. Such programs end up being cumbersome in "proper" languages.
The most important benefit is not that you CAN unwrap a value, but rather that you CANNOT NOT do it.
Sbt is too complex and powerful for its own good. I had a love-hate relationship with it, and now I try to avoid it if I can.
I like scala-cli a lot. It's very promising, but I think it's too new to be proclaimed best-in-class yet. Time will tell, and I'm rooting for it.
If I was you I wouldn't bother. The cool thing is not the game itself, it's the fact that we "old folks" just know what to do right away :) If you need to read instructions, probably you'll find the game dull anyway.
This document was made by a specific globe manufacturer, so it probably isn't meant to be used to date arbitrary globes, but only theirs.
Awk doesn't have a way to define function-local variables. All variables are global, except for function parameters.
This spacing convention is meant to clearly separate mandatory parameters and optional parameters that are sometimes only introduced to "declare" a local variable.
It's because the characters in the result can be one of 10 digits or one of 26 letters.
Commenting on the internet is note-taking for jerks.
I think that's precisely the problem with YAML. By being so unpredictable, it turns from "format I use without thinking much about" into "format that makes me spend a lot of time finding out what's wrong this time".
Maybe you and I haven't been bitten personally by YAML idiosincracies yet, but just learning about examples like the "Norway problem" and the "negative GPS coordinates bug"—and thinking how frustrating must have been to figure those out in the first place—makes me shudder.
Side note: you can simplify the first line like this:
DOMAINS=(login controlplane log derp{1..24}-all)
People seem to do fine dealing with iterators—which are defined by their operations (hasNext, next) and are convenient because they have a dedicated syntax (foreach)—without the need for enlightenment from esoteric "iterator tutorials".
Monads are defined by their operations (flatMap/bind, unit) and have a dedicated syntax (do). I agree with you: just get used to flatmapping stuff and the concept will sink in.
He doesn't. That's the point.
"Each cell is a monad" makes as much sense as "41 is a commutativity".