Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
LukeShu
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
81 ms
·
871.
▲
by
LukeShu
8y ago
24 is the minimum number, 33 is the target number, there are currently 31 active, and 9 in testing/reserve some of which could be activated if need be. (according to Wikipedia, this discussion got me to read more about it)
872.
▲
by
LukeShu
8y ago
The stdbuf command exists on FreeBSD. On NetBSD, this functionality is achieved by setting the STDBUF environment variable.
873.
▲
by
LukeShu
8y ago
Bash has had real arrays since 2.0 (1996). Though, the `+=` operator to append to an array wasn't added until 3.1 (2005); before that you had to do `array[${#array[*]}]=word` to append. Since 4.0 (2009) it's also had associative a
874.
▲
by
LukeShu
8y ago
That's still going to be way "less perfect" than diffing the output of `javap` or `godoc` or probably even the `help(module)` for a Python module. The ability to diff APIs objectively gets better when we switch away from C
875.
▲
by
LukeShu
8y ago
Diffing C header files has way more false negatives than just "adding a function".
876.
▲
by
LukeShu
8y ago
Yes, that's why people found GNU awk <4.0 troublesome. Fortunately modern versions POSIX make regex range expressions ("[a-z]") unspecified behavior on locales other than "C", so modern versions of GNU awk and ot
877.
▲
by
LukeShu
8y ago
The numeric value of Unicode codepoints does match ASCII for codepoints < 127. However, Unicode codepoint numeric order is not collation order . Collation order isn't encoding-specific, it's locale (language)-specific. My cu
878.
▲
by
LukeShu
8y ago
I know that SunOS 5.10 could read(2) a directory (that's what lore.cs.purdue.edu was running).
879.
▲
by
LukeShu
8y ago
The paper mentions that the source code is available at netstreamline.net, which is now a spam domain. Here's the most recent IA link: https://web.archive.org/web/20130624173559/http://netstreaml...
880.
▲
by
LukeShu
8y ago
No, you can't say the same thing. You open it from a shell script, you literally do get something from it. In the email you quote, Linus gives two reasons why futex and sockets should not be files: > there's absolutely no poi
881.
▲
by
LukeShu
8y ago
Using "page up" or "page down" to scroll causes it to jump to the very bottom of the page. Very cool though!
882.
▲
by
LukeShu
8y ago
No. Whatever you stick in the install= file will run as root at install time. If you're using an AUR helper/running `makepkg -i`, the PKGBUILD absolutely can run code as root, without waiting for you to interact with the install
883.
▲
by
LukeShu
8y ago
> yes, this is a fundamental problem with the security model of Arch Linux No, it's not. AUR is not Arch, and is not "supported" by Arch. It's a fundamental problem with the security model running code from randos
884.
▲
by
LukeShu
8y ago
I wouldn't be surprised at all if there's a drawing command that's having a negative number passed to it in a place where it doesn't expect negatives. I wouldn't be too surprised if different backends handled this
885.
▲
by
LukeShu
8y ago
Fiddling with it: Firefox's mistake is definitely that it isn't handling having outline-offset less than "-min(width, height)/2" in a sane way. (In the demo, width and height are both 100px; it starts do do funny t
886.
▲
by
LukeShu
8y ago
It is my understanding that 38 of the states are one-party consent states. That is: in most states, it is perfectly legal to record your own phone calls. (It certainly is in my state; I'm taking Wikipedia's word for it for the o
887.
▲
by
LukeShu
8y ago
Besides stylistic (dang, that code is hard to read), efficiency (it scans through s twice), and safety (it will do bad things if the combined length is > 100) concerns, it's also just plain wrong: It returns a pointer to memory on t
888.
▲
by
LukeShu
8y ago
(The Gherkin is a 30%, not a 40%!) I mean people actually use and enjoy for day-to-day use 40% keyboards like the Planck. I don't think they Pain27 is to be used by anyone for anything other than WPM tests.
889.
▲
by
LukeShu
8y ago
Good mention! I knew that realpath is a relatively new addition to GNU coreutils, but I didn't realize that older Debians had an incompatible implementation of it. With a single $(realpath ...), chomping the trailing newline is fine,
890.
▲
by
LukeShu
8y ago
> That second example is write-only code, Tacking on the `-d ''` flag to `read` makes it write-only!? > In bash, that's a 50-line monstrosity. In Ruby (or Python, or even Perl), it's ~5 clean, readable lines. As
891.
▲
by
LukeShu
8y ago
> A script that processes N files passed as arguments? for filename in "$@"; do ... done > Or that processes a listing of files piped in from stdin? That has the tricky bit of "what about filena
892.
▲
by
LukeShu
8y ago
The first word of each paragraph reads: Welcome The Sessions Is A Nazi Abolish Ice In Despite In His From The Welzer The It It That Similarly Hence
893.
▲
by
LukeShu
8y ago
scp performs very slowly with directories containing many small files; "tar|ssh tar" does fine with that.
894.
▲
by
LukeShu
8y ago
After all these years, I still can't keep straight when I need a trailing slash in rsync, and when I need to not have it.
895.
▲
by
LukeShu
8y ago
That chart is pretty suspect: - It doesn't go a good job of presenting the data that it is. - The data it's presenting isn't clearly related to the data discussed in the article. - It cites the SIPP as the source of the data,
896.
▲
by
LukeShu
8y ago
The cases: - HDMI-over-IP-over-Ethernet-over-cat5 (best case) - HDMI-over-Ethernet-over-cat5 - HDMI-over-cat5 (worst case) If Ethernet (layer 2) isn't somewhere in there, you're not going to be able to set up a layer 2 network for
897.
▲
by
LukeShu
8y ago
I hadn't heard the postulate "one being that the more one writes, the less remarkable one’s work is apt to be" before. I suppose that outside the world of the literary criticism, there's a bit of an opposite feeling: If
898.
▲
by
LukeShu
8y ago
As I wrote the last time this came up: ---- Those who only know Linus from his rants might be surprised that here "his usual fashion" means: - Acknowledging that the root cause was Github's documentation being misleading. - N
899.
▲
by
LukeShu
8y ago
As a GPL/FSF/Stallman person: That's exactly it. That said, I'll still usually try to contribute it back upstream under the original license; especially if I expect to be continuing to pull code from them. I think it&#x
900.
▲
by
LukeShu
8y ago
> Vim also has an undo tree There is an undo-tree implementation for Emacs (based off of Vim), but the default undo described above isn't an undo-tree.
More ›