Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
drv
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
31.
▲
by
drv
12y ago
Ctrl-Tab/Ctrl-Shift-Tab (along with other tab management keys like Ctrl-T and Ctrl-W) are nice because you can hit them using only the left hand, with the right hand remaining on the mouse.
32.
▲
by
drv
12y ago
How is XWayland doing these days? Last time I heard anything about it, it sounded like GLX programs didn't work yet, which would be a major impediment to switching fully to Wayland. Lots of older programs (especially games) won't
33.
▲
by
drv
12y ago
It's certainly a neat hack, but legally I would avoid this approach unless the original creator is cooperative or at least no longer around. Distributing code derived in this manner is pretty clearly copyright infringement unless the
34.
▲
by
drv
12y ago
Another resource in the same vein (it links to this page, among others): http://aggregate.org/MAGIC/
35.
▲
by
drv
12y ago
Agreed, and even if the software was great (it currently isn't), I don't want a touchscreen taking up valuable space that could have been used for physical buttons. No matter how good a touchscreen interface is, it can't be
36.
▲
by
drv
12y ago
If anything, if we're serious about teaching how practical computers actually work today, I think that an assembly language should be the first language taught to computer science students. C still hides too many details and imposes de
37.
▲
by
drv
12y ago
The "Sloot Digital Coding System" is clearly hokum, but the "alien's stick" story is more or less the same as arithmetic coding - except instead of a notch on a stick, the fraction is stored as a sequence of bits, s
38.
▲
by
drv
12y ago
I am befuddled by the idea of saving the return address explicitly (mov rdi, $ + 15) while also using call/ret. Maybe there is something clever going on here, but I don't understand the purpose. calculateStrLength is not only cal
39.
▲
by
drv
12y ago
If this is the general quality of new code in the Neovim code base, I would be fairly worried. In the first piece of code, which is apparently new to Neovim, there's a bug waiting to happen: casting size_t pointers to int pointers will
40.
▲
by
drv
12y ago
Windows Explorer (the one in Win8.1, at least) won't allow creation of files with a space at the beginning or end of a name, but it's definitely allowed in the filesystem. For example, from a command prompt, this works: echo h
41.
▲
by
drv
12y ago
Programmers just use the wrong tool for the job - arguably because strncpy is poorly named. strncpy is intended for filling zero-padded fixed-size strings, not copying normal single-zero-terminated strings. I think the main benefit of addi
42.
▲
by
drv
12y ago
Going down the size optimization rabbit hole a little bit (not criticism, I just enjoy this sort of puzzle). Two bytes shorter: call print_str ret => jmp print_str Three bytes shorter; this one may be a little too clever, si
43.
▲
by
drv
12y ago
This article has a pretty nice overview: http://msdn.microsoft.com/en-us/library/windows/desktop/aa36... The MAX_PATH limitation can be avoided by using the \\?\ prefix (which also disables some kinds of
44.
▲
by
drv
12y ago
The corrected version is more recognizable to me as "round"; I believe this is a fairly common pattern in code that needs to round or align to powers of two. However, I'll agree that it is perhaps overly clever. I recently w
45.
▲
by
drv
12y ago
I prefer NASM-flavored Intel syntax over AT&T; this is mostly a matter of taste, and AT&T is certainly more regular, but the NASM syntax for addressing looks more natural to me: lea edi, [eax + myarray + ebx * 4] Versus AT&am
46.
▲
by
drv
12y ago
Indeed, looking at the logo again, it appears to be a pour-over brewer - clever. (I am a coffee neophyte and wasn't aware of this brewing method.)
47.
▲
by
drv
12y ago
I wonder if the misspelling is intentional. (The idiom is "pore over".)
48.
▲
by
drv
13y ago
From a quick reading of the TLS heartbeat RFC and the patched code, here's my understanding of the cause of the bug. TLS heartbeat consists of a request packet including a payload; the other side reads and sends a response containing t
49.
▲
by
drv
13y ago
German uses it that way too (ja, Jürgen, etc.).
50.
▲
by
drv
13y ago
The one that started it for me was HTML 4 for the World Wide Web ; the book's website is a quaint look back at an era of frames and tables for layout: http://www.elizabethcastro.com/html4_4e/ My pages from back t
51.
▲
by
drv
13y ago
You were probably being facetious, but Poppler is already used too (PDF rendering library).
52.
▲
by
drv
13y ago
There was actually a PC port too: http://www.amazon.com/The-Typing-Dead-PC/dp/B00005RV5M Amusingly, the in-game characters still walk around with Dreamcasts strapped to their backs.
53.
▲
by
drv
13y ago
I don't want to be too harsh - this is a fun idea, and I'm prone to silly fantasies about rewriting slow code in assembly myself - but this particular assembly doesn't take advantage of many of the "dirty tricks" th
54.
▲
by
drv
13y ago
You can cheat a little bit and use RET rather than INT 21h to save a few bytes. The way this works is pretty clever - the COM loader places an INT 20h instruction (the old-style terminate function) at offset 0 in the PSP (the 100h-byte-long
55.
▲
by
drv
13y ago
That first documentary has an amusing title screen... in Chicago. http://www.youtube.com/watch?v=CIZGDT7ZqdM#t=119
56.
▲
Steam Dev Days - Getting Started with Linux Game Development
(icculus.org)
2 points
by
drv
13y ago
|
0 comments
57.
▲
by
drv
13y ago
I am surprised at the number of people using the scrollbar arrows. The new scrollbars are annoyingly thin and hard to see, though.
58.
▲
by
drv
13y ago
http://www.youtube.com/watch?v=h04CH9YZcpI (John Mellencamp - Jack and Diane) http://www.youtube.com/watch?v=iDpYBT0XyvA (Warren Zevon - Werewolves of London) + http://www.youtube.com/watch?
59.
▲
by
drv
13y ago
This is a pretty neat hack and I can certainly see the fun in setting up something like this. However, I am amused that the load balancer is a fairly powerful PC[1] that could probably serve the web site just as effectively as the whole clu
60.
▲
Coast to Coast in under 29 hours: new fastest drive record
(dailymail.co.uk)
3 points
by
drv
13y ago
|
0 comments
More ›