Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
_kst_
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
59 ms
·
631.
▲
by
_kst_
12y ago
If you name it "git-jk" rather than "gitjk", you can invoke it as git jk
632.
▲
by
_kst_
12y ago
Would it be fair to say that cancer is a symptom rather than a disease, or is that completely off the mark?
633.
▲
by
_kst_
12y ago
How does Perl CGI code make it possible to "shell out" to the OS? I'm sure it can do so if the application isn't coded carefully, but how difficult is it to avoid doing the equivalent of passing user input to eval()?
634.
▲
by
_kst_
13y ago
Why does it delete the blanks between the words?
635.
▲
by
_kst_
13y ago
Hypothetically, C could use the first `sizeof (size_t)` bytes to store the length. Endianness shouldn't be much of an issue; just use the endianness of the current machine. You don't typically write the NUL terminator when writing
636.
▲
by
_kst_
13y ago
Was "128 GB" a typo for "128 TB"? Incidentally, the mechanism for sharing the pad doesn't have to be 100% secure, as long as you can reliably detect any compromises. If someone opens the briefcase while it's
637.
▲
by
_kst_
13y ago
It depends on your recovery strategy. If your response to a `realloc()` failure is going to be to terminate the program, then you might as well assign the result back to the original pointer. If you're going to continue executing witho
638.
▲
by
_kst_
13y ago
How would that differ from duplicating any other album without permission? (Unless the buyer also buys the right to distribute copies.)
639.
▲
by
_kst_
13y ago
Do you mean 15 down 1 up?
640.
▲
by
_kst_
13y ago
Dead link. I get: 403 Forbidden Request forbidden by administrative rules.
641.
▲
by
_kst_
13y ago
A very minor point: The illustrative code snippet on the home page has a spurious semicolon on the first line: #include <assert>;
642.
▲
by
_kst_
13y ago
Ding! (No relation to Ken Thompson, if that's what you were thinking.)
643.
▲
by
_kst_
13y ago
You should divide by (linux - unix).
644.
▲
by
_kst_
13y ago
Which makes it amazing news to people who weren't programming back in 1992.
645.
▲
by
_kst_
13y ago
In most other VCSs, revision numbers apply to the entire repository. In RCS and CVS, they apply to single files, which can be more convenient if you're maintaining a collection of files that are largely independent of each other.
646.
▲
by
_kst_
13y ago
Just a silly mistake on my part.
647.
▲
by
_kst_
13y ago
Yeah, good point. I'm not familiar with the OpenBSD kernel. Is there any good reason (for OpenBSD or any other kernel) why <stdint.h> shouldn't be available -- or at least why int64_t shouldn't be available in some head
648.
▲
by
_kst_
13y ago
stdint.h may not be available, but int64_t is; it's defined in include/linux/types.h.
649.
▲
by
_kst_
13y ago
<time.h> is userspace. It's at least theoretically possible for long long to be more than 64 bits. Why use long long (potentially, say, 128 bits) rather than int64_t for time_t? And why wouldn't int64_t be available in kerne
650.
▲
by
_kst_
13y ago
So the first FORTRAN program was run 3 years before the first FORTRAN compiler was delivered. Was the program manually translated to assembly/machine code?
651.
▲
by
_kst_
13y ago
It's on Wikipedia; you can add it yourself.
652.
▲
by
_kst_
13y ago
"Stay thirsty, my friends."
653.
▲
by
_kst_
13y ago
"if your company uses SSH, chances are you have one Unix Login that all your admins/employees share" Is that really common? I've never seen it.
654.
▲
by
_kst_
13y ago
A commenter on the article pointed out the "Useless use of cat". What most users probably don't realize is that the redirection can be anywhere on the line, not just at the beginning. Putting an input redirection at the begin
655.
▲
by
_kst_
13y ago
It congratulated me for sleeping 23.999 hours/day.
656.
▲
by
_kst_
13y ago
The 1999 ISO C standard dropped the "implicit int" rule, so this: main(argc, argv) char *argv[]; { /* ... */ } is illegal (strictly speaking, it's a "constraint violation"). Note that it's char *argv[]
657.
▲
by
_kst_
13y ago
ANSI C didn't drop old-style (non-prototype) function declarations and definitions -- nor did C99 or C11. They've been officially obsolescent since 1989, but they're still fully supported by any conforming compiler.
658.
▲
by
_kst_
13y ago
Apparently the password "significance" would take 317 years to crack, but "interpolated" would only take about 6 hours. Both are randomly selected 12-letter dictionary words (from /usr/share/dict/words on Ubuntu, excluding words with upperc
659.
▲
by
_kst_
14y ago
"A data type is a number of bytes to the compiler." The size of a type is just one of its many attributes. Even if, for example, "long", "float", and "void* " happen to have the same size, they're still very distinct types. "Integer data ty
660.
▲
by
_kst_
14y ago
"Not every variable has a data type, e.g. void or function pointers." A void pointer has type "void* "; a function pointer also has some appropriate type. Not every object has a type (e.g., a chunk of memory allocated by `malloc()`), but
More ›