Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
fratajcz
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
fratajcz
4y ago
That bothered me too, the default function for Ctrl-W in ipython is unix-word-rubout from python-prompt-toolkit [1], which uses spaces for word boundaries. You can rebind it to backward-kill-word so it uses "not a letter nor a digit&qu
2.
▲
by
fratajcz
5y ago
In this case, most people will write the variable x with curved ends (𝑥) and the operator with straight ends.
3.
▲
by
fratajcz
6y ago
The japanese layout HHKB does have arrow keys, but the original (QWERTY) design never had them. https://www.reddit.com/r/MechanicalKeyboards/comments/36n5cl...
4.
▲
by
fratajcz
6y ago
When you add the next sentence in the original text, it's even more blatant: "And it induces regular effects of power. Each society has its régime of truth, its ‘general politics’ of truth: that is, the types of discourses which
5.
▲
by
fratajcz
6y ago
You can check if stdout is a tty: if it's not, you output raw text. GNU ls does this: by default it outputs in a multiple column layout, but when piped, it outputs one file per line.
6.
▲
by
fratajcz
6y ago
I don't think it's actually specified by POSIX, it only mentions arithmetic expansion with $(()) and there is no mention of (()) for arithmetic operations in the grammar: https://pubs.opengroup.org/onlinepubs/
7.
▲
by
fratajcz
6y ago
Most of them are ripped from Guitar Hero/Rock Band, because the games needed to mute individual instruments when you were not playing the correct notes. (With 10+ games and lots of DLC, there's actually a lot of songs that were in
8.
▲
by
fratajcz
6y ago
Not sure if it was actually relevant at the time of Unix v6, but Brian Kernighan writes in his memoir that "Arguably, one reason why many commands on Unix are short is that it took considerable physical force to type on a Model 33, and
9.
▲
by
fratajcz
6y ago
I think that was just a way of the manual showing you how to have a sound "inspired by" Van Halen, since he famously got his distortion sound not from a pedal, but from a Marshall amp that he ran at a low voltage using a variac (a
10.
▲
by
fratajcz
6y ago
ASAN is great for development, but a less cynical reason for not enabling it at an OS level is that it would add quite a bit of overhead: "Typical slowdown introduced by AddressSanitizer is 2x." (clang docs) There is also some mem
11.
▲
by
fratajcz
6y ago
You should look into kinto, it completely remaps the modifier keys system-wide and worked pretty well when I tried it (I switched to i3wm so I use super for i3 shortcuts now) https://github.com/rbreaves/kinto
12.
▲
by
fratajcz
6y ago
Multiple plugins are available to add LSP support in vim, such as coc.nvim (uses node.js, more features) or vim-lsp (lighter, written in vimscript). Neovim is also going to add native LSP support as well as tree-sitter in their 5.0 release,
13.
▲
by
fratajcz
6y ago
There's also https://danstonchat.com/ in France (formerly known as bashfr)
14.
▲
by
fratajcz
6y ago
They have only confirmed ordering some in case it is proven to be useful. (this was 1 month ago) https://factuel.afp.com/oui-larmee-francaise-sest-procure-de...
15.
▲
by
fratajcz
6y ago
fish abbreviations kinda do this, for example if you define your alias above as an abbrev and you type hello<space>, it replaces hello by ~/Documents in your command line. You still have to press backspace to remove the space you