Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
js2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
748 ms
·
6781.
▲
by
js2
16y ago
Indeed. I wasn't sure you could realloc to a smaller block. Good to know.
6782.
▲
by
js2
16y ago
Bah, I learned my C from K&R 2nd ed. I guess that's not K&R C, is it? :-)
6783.
▲
by
js2
16y ago
Yes, C strings are \0 terminated and that is what you'd end up with. Memory management is between you, malloc() and free(). Assuming this were malloc()d memory, if you wanted to free up the unused bytes, you'd probably: char *condensed
6784.
▲
by
js2
16y ago
1) In TFA, s/cersion/version/, but that's an amusing typo. :-) 2) Initializing inside the for loop requires C99; is that to be considered idiomatic? I didn't think so. I'll be curious how many submissions were either identical to your sugge
6785.
▲
Diet and the evolution of the brain
(economist.com)
1 points
by
js2
16y ago
|
0 comments
6786.
▲
by
js2
16y ago
> I blame the web for understanding (writing?) English as good as I do. s/good/well/ http://www.wsu.edu/~brians/errors/good.html http://grammar.quickanddirtytips.com/good-versus-well.aspx :)
6787.
▲
by
js2
16y ago
5.0.375.55
6788.
▲
by
js2
17y ago
I like “failure of imagination” myself: The phrase failure of imagination has been used to describe the cause of the Apollo 1 fire in 1967. The term was attributed to astronaut Frank Borman, speaking at the Apollo 1 investigation hearings (
6789.
▲
by
js2
17y ago
Click on the iPod in iTunes. Under options, deselect "Open iTunes when this iPod is connected" and (possibly) select "Manually manage music". You'll still have to eject the iPod before you can resume listening but at least this will prevent
6790.
▲
by
js2
17y ago
"git pull" -> git fetch + git merge "git pull --rebase" -> git fetch + git rebase git fetch is what syncs the remote changes to your local repo. . If you want to see these changes, they are referenced by so-called remote-
6791.
▲
by
js2
17y ago
Direct link to video http://www.youtube.com/watch?v=QJ6z3IArINI
6792.
▲
by
js2
17y ago
Any scheme based on a pool of names does not scale. If you have big plans, a sequence is the way to go.
6793.
▲
by
js2
17y ago
> But I work at a large company where all the source code is in a single repostory. Sure, Google does this with perforce. You are correct, that if you desire a single truly massive repository, you will eventually have trouble with git.
6794.
▲
by
js2
17y ago
The post doesn't mention the environment in which you're running Cassandra. Any chance you're running it in the cloud (EC2?), or are you running it on real h/w?