Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jwilk
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
53 ms
·
811.
▲
by
jwilk
4y ago
https://quoteinvestigator.com/2010/05/04/universe-einstein/
812.
▲
Living with the Rust Trademark
(lwn.net)
2 points
by
jwilk
4y ago
|
1 comments
813.
▲
by
jwilk
4y ago
https://news.ycombinator.com/item?id=32190032 got more traction.
814.
▲
The trouble with symbolic links
(lwn.net)
227 points
by
jwilk
4y ago
|
122 comments
815.
▲
by
jwilk
4y ago
> It can be any single byte, except probably not 0x00. At least on Linux, indeed you can't use 0x00 (aka ^@), because _POSIX_VDISABLE (the thing you use for disabling special characters) is 0.
816.
▲
by
jwilk
4y ago
Yes.
817.
▲
by
jwilk
4y ago
^? = 0x7F
818.
▲
by
jwilk
4y ago
Archived copy that works with JS disabled: https://archive.today/LPKKV
819.
▲
by
jwilk
4y ago
Fun fact: it doesn't have to be Ctrl+something. If you feel paricularly evil today, you might try this: stty intr y
820.
▲
by
jwilk
4y ago
Part I: https://news.ycombinator.com/item?id=31923429 (191 comments)
821.
▲
by
jwilk
4y ago
If you run a script, such as "pip", sys.path[0] is the script's directory, not cwd: https://docs.python.org/3/using/cmdline.html > If the script name refers directly to a Python file, the direct
822.
▲
by
jwilk
4y ago
Beware that "python -m" is insecure in untrusted cwd: https://bugs.python.org/issue33053 E.g.: $ echo 'import os; os.execvp("cowsay", ["-", "pwned"])' > pip.py $ py
823.
▲
by
jwilk
4y ago
> If there is a finite number of primes then there is a largest prime N>2. Construct N!+1. That is not divisible by 2..N, so it is prime. 5! + 1 = 121, which is not prime.
824.
▲
by
jwilk
4y ago
They write only random data and discard any data they read, so FDE should not have any effect.
825.
▲
by
jwilk
4y ago
I heard only about this one: https://github.com/uutils/coreutils ("Cross-platform Rust rewrite of the GNU coreutils")
826.
▲
by
jwilk
4y ago
To be honest, GNU coreutils is not a good alternative to GNU coreutils. :-P
827.
▲
by
jwilk
4y ago
Also: https://man7.org/linux/man-pages/man2/copy_file_range.2.html
828.
▲
by
jwilk
4y ago
Related: https://news.ycombinator.com/item?id=32026624 "Atomicwrites' old versions have been purged from PyPI" https://news.ycombinator.com/item?id=32037562 "Congratulations: We now have
829.
▲
by
jwilk
4y ago
https://news.ycombinator.com/item?id=32111738 got more traction.
830.
▲
by
jwilk
4y ago
For me the second hit is: https://docs.python.org/3/howto/clinic.html So at least some official Python docs are indexed.
831.
▲
by
jwilk
4y ago
> Afaik Python does not have a str type It does have it: $ python3 -c 'print(type(""))' <class 'str'>
832.
▲
by
jwilk
4y ago
For me, https://docs.python.org/3/library/stdtypes.html is the top result.
833.
▲
by
jwilk
4y ago
> Cron has a bunch of this kind of thing built in At least Vixie Cron doesn't support anything like this. Each cron job that needs it has to implement it on its own, e.g.: https://github.com/Debian/apt/blob
834.
▲
by
jwilk
4y ago
https://leakuidatorplusteam.github.io/ has more details.
835.
▲
by
jwilk
4y ago
Disussed on HN in 2008: https://news.ycombinator.com/item?id=226853 (18 comments)
836.
▲
by
jwilk
4y ago
Related: https://news.ycombinator.com/item?id=32026624 "Atomicwrites' old versions have been purged from PyPI" https://news.ycombinator.com/item?id=32037562 "Congratulations: We now have
837.
▲
by
jwilk
4y ago
Indeed. The only signals that cannot be caught (or blocked, or ignored) are SIGKILL and SIGSTOP.
838.
▲
Native Python Support for Units?
(lwn.net)
2 points
by
jwilk
4y ago
|
0 comments
839.
▲
by
jwilk
4y ago
There's also gti: https://r-wos.org/hacks/gti
840.
▲
by
jwilk
4y ago
It kinda is emoji… https://unicode.org/reports/tr51/#Emoji_Characters says emoji character is "a character that has the Emoji property". Let's check: $ perl -MUnicode::UCD=charprop -E "say
More ›