There's now a union operator for dictionaries! You can now just do
a |= b to merge
a. You do have to be careful with the
fact that the dict union operation is not commutative;
a |= b != b |= a. This mostly applies when you have the same keys
with different values in both dicts.
unix.stackexchange.com -- What do the numbers in a man page mean?
man a lot, but in all honesty: getting the man page for the right
version of, say,
printf, was a bit of a hit-or-miss. How do you get the
documentation for the
C library function when
man printf shows you the
bash command? I never looked it up until now. The answer can be found in
the man page for man itself (
man man). The numbers correspond to
sections; section 1 is for shell commands and 3 is for library functions.
You provide the section you want to search in as a second argument. From
now on I can write
man 3 printf like a normal person :-). Bonus: use
apropos to search the manpage titles with a regex.
Ryan Moultan -- Why Deep Learning Works Even Thought It Shouldn't
What I find however is that there are a base of unspoken intuitions that underlie expert understanding of a field, that are never directly stated in the literature, because they can't be easily proved with the rigor that the literature demands. And as a result, the insights exist only in conversation and subtext, which make them inaccessible to the casual reader.
Cuphead is super popular game now, and they have an original soundtrack which is not only entirely original music, but also recorded with a real 13-piece big band, a 10-piece ragtime band, and even a tap dancer. It's nice to see this genre work so well for a popular game.
I used to type on an Apple Pro Keyboard (M7803) (pic on Wikipedia),
which was great. But then I recently switched to a laptop with a
different layout on which the mod key just didn't feel like it was
in the right place. It's very straightforward to remap the mod key
in i3, but then some other stuff doesn't quite work and the whole
experience just gets a bit messy. So why not modify the keymap in
Xorg? Here's my
clear mod1 clear mod4 keycode 64 = Super_L NoSymbol Super_L keycode 133 = Alt_L NoSymbol Alt_L add mod4 = Super_L Super_R Super_L Hyper_L add mod1 = Alt_L Alt_R Meta_L
This is truly next level! Factorio is a great game that allows for so much creativity that someone built a raycasting engine in it by dropping the right items onto a bunch of transport belts in just the right order.