Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
palish
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
48 ms
·
421.
▲
by
palish
15y ago
It's not more clear when you're trying to examine the codebase as a whole.
422.
▲
by
palish
15y ago
First time I saw it. Thanks for linking to the previous comments though.
423.
▲
by
palish
15y ago
This isn't the attitude you should have. It's not that bad. It's like school. Work on your own stuff on the downtime.
424.
▲
by
palish
15y ago
Sorry, to be clear, I was asking whether Linux or OS X also have the same silly idea of "Let's execute an arbitrary program on the USB stick whenever it's plugged in!" I don't know the answer because I don't use Linux for day-to-day work (I
425.
▲
by
palish
15y ago
About fifteen seconds. Skimmed it, realized it was "another instance of someone attempting to do yet-another-bad-thing-in-C++", then closed it. I went through the same phase in my C++ career. (Mine was attempting to add FOREACH to my proj
426.
▲
by
palish
15y ago
Is this unsafe even on OS X or Linux?
427.
▲
by
palish
15y ago
On the other hand, that just means you're statistically more likely to succeed on your next attempt.
428.
▲
by
palish
15y ago
The two-slit experiment. 1. Single photon still produces interference pattern! 2. Ask which slit photon passes - pattern disappears This kind of explanation is common, and it has always bothered me, because it's the wrong sort
429.
▲
by
palish
15y ago
Because, read Feynman's paper. No really, read it. His writing style is very accessible. Ignore the formulas; read the words. http://www.phy.mtu.edu/~sgowtham/PH4390/Week_02/IJTP_v21_p46...
430.
▲
by
palish
15y ago
Color should just cut their losses and build something completely different.
431.
▲
by
palish
15y ago
But... that would take work ! And he only works four hours a week. </tonguecheek>
432.
▲
by
palish
15y ago
Interesting. Good point.
433.
▲
by
palish
15y ago
So the moral of the story is, conduct your criminal activity via software running on an external server on a TrueCrypt partiton, and always interface with it via Tor? Then they can't prove it's "your server" and thus order you to reveal the
434.
▲
by
palish
15y ago
Slides: http://ecn.channel9.msdn.com/content/DanielMoth_CppAMP_Intro... === Code example === Original, CPU-only code: void AddArrays(int n, int * pA, int * pB, int * pC) { for (int i=0; i<n; i++) { pC
435.
▲
by
palish
15y ago
We're not in a recession. Or if we are, we're not in a bad one.
436.
▲
by
palish
15y ago
Personally, I'm all for it. Let the system fail. We'll survive. And when the resulting recession / depression ends, we'll be out of debt. How long can we keep sweeping our multi-trillidon debt off our shoulders like a bad case of dandruff
437.
▲
by
palish
15y ago
Oh, good riddance. It always seemed like such an obvious patent.
438.
▲
by
palish
15y ago
No, the marching cubes algorithm has a very specific meaning, because it's patented. It builds a 3D surface from a 3D grid (each grid cell is either 'filled' or 'empty').
439.
▲
by
palish
15y ago
I don't understand. They know how to do things, yet they can't do things?
440.
▲
by
palish
15y ago
R.I.P. marshray's free time.
441.
▲
by
palish
15y ago
It seems reasonable to you that you need to be 13 or older to use email ? To talk to his grandparents?
442.
▲
by
palish
15y ago
The point is, the crash you describe will only occur on 32-bit operating systems, and only after you've allocated more than 1.5GB of memory. For most projects, that is extremely unlikely. Your solution would work. But the extra code compl
443.
▲
by
palish
15y ago
Oho. Followed by a capital letter ? Interesting. I always thought that "all identifiers with a leading underscore were reserved". I just consciously ignored it, and have never had a problem in years. But I was also always using member
444.
▲
by
palish
15y ago
You're very wise. Thank you for sharing. It's satisfying that you were able to say "There's a good chance you're wrong, here's why" and then be confirmed by testing. You obviously have a great deal of experience with low-level programming
445.
▲
by
palish
15y ago
Really? How would dereferencing a NULL pointer cause "some really nasty crashes"? Yes, it will crash. That is a Good Thing(tm). 1) It is extremely unlikely that malloc() will ever return NULL (on a PC). This is due to virtual memory. If
446.
▲
by
palish
15y ago
They are numbers (either 32-bit or 64-bit). Nothing more, nothing less. I don't understand why you wouldn't want to think of them that way. For example... const char* current = "ohai thar"; const char* end = current + strlen(
447.
▲
by
palish
15y ago
Strings, and why strlen(s) != the number of letters in a string (UTF-8). Why a string must end with a 0 byte. Binary shifting numbers, especially signed numbers. Memory management; it's fun for the whole family, and more than just knowing h
448.
▲
by
palish
15y ago
You mean %.2f ? %d is for integers, %f is for reals (yo).
449.
▲
by
palish
15y ago
Identifiers with leading underscores? I use those for member variables... (this makes more sense in C++ without the arrow notation.)
450.
▲
by
palish
15y ago
While this is important, it probably shouldn't be in beginner C book. I understand all of it now , but had no idea about the stack or the x86 instructions, etc for years. I was still productive, and wasn't hindered. The details can come l
More ›