Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rcfox
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
30 ms
·
391.
▲
by
rcfox
11y ago
One application comes to mind for this: watch for new screenshots (assuming they automatically get put into a directory for Fallout 4 screenshots) and add the in-world coordinates to the EXIF data.
392.
▲
by
rcfox
11y ago
Kinda sounds like you've got a race. Are you using threads at all?
393.
▲
by
rcfox
11y ago
> Why do we need a 'scientific study' for everything? There's value in knowing that we do something because it's actually a good thing to do, and not just a quirk some ancient monarch had that was adopted by the peasa
394.
▲
by
rcfox
11y ago
That sounds more like extortion.
395.
▲
by
rcfox
11y ago
At $2 - $5 per magnet, (as listed on that website, you could probably get them cheaper if you're outfitting a herd of 2000+) you'd have to cut a lot of corners to build something that can traverse a populated pasture and pick up t
396.
▲
by
rcfox
11y ago
Rounding from 38 to 40 is a difference greater than 5%. Some applications might support that, but I'm sure there are plenty that won't. For example, wood joints have very small tolerances.
397.
▲
by
rcfox
11y ago
You might be better-served by ImageMagick's `compare` tool to do per-pixel diffs. Gerbers are something you don't want to just guess about.
398.
▲
by
rcfox
11y ago
Ah, but then you're not writing C anymore, you're writing GCC-flavoured C. If it helps: The author of that article, John Regehr, is a professor of computer science who spends a great deal of time studying undefined behaviour.
399.
▲
by
rcfox
11y ago
I guess it helps to give some context: unsigned integer overflow is defined. Some algorithms even exploit this behaviour to allow for simpler code. But even making sure that you stay within the valid range of your integer isn't neces
400.
▲
by
rcfox
11y ago
It's not always cut-and-dried: http://blog.regehr.org/archives/1139
401.
▲
by
rcfox
11y ago
Sure, but then we'd just be discussing undefined behaviour in the language that sprung up out of the desire to take advantage of the optimizations that the neutered C leaves on the table.
402.
▲
by
rcfox
11y ago
Someone says this every time the topic of undefined behaviour comes up. Ignoring the original portability concerns, there's a large of set of optimizations that are only possible if you can assume that no undefined behaviour occurs. Ac
403.
▲
by
rcfox
11y ago
It's not hard to get into undefined behaviour territory with seemingly correct code. For example: signed integer overflow is undefined in C.
404.
▲
by
rcfox
11y ago
Many people use the words "depressed" and "sad" synonymously. If you're bummed because you didn't get that big client, does that qualify as "feeling depressed"? If you want to study depression in the
405.
▲
by
rcfox
11y ago
I don't know off hand if this handles dependencies, but I've used this in the past to create deb files: python setup.py --command-packages=stdeb.command bdist_deb I'm pretty sure this works without requiring some spe
406.
▲
by
rcfox
11y ago
Arrow functions and `let` are what is generally considered to be the "correct" way of doing things. They behave more closely to how other languages behave, and should reduce overall confusion in the long term. The arrow operator i
407.
▲
by
rcfox
11y ago
I don't work with NN at all, but it kind of seems like the author set up their CNN with a large enough filter to see a whole spot at once, but not large enough to see a whole cat at once. Then he complains that it doesn't know wha
408.
▲
by
rcfox
11y ago
It's moderation. "Censorship" implies suppressing free speech, which this is not. It's simply removing undesirable content from a privately-owned website.
409.
▲
by
rcfox
11y ago
Nice, I didn't notice that. Waaay better.
410.
▲
by
rcfox
11y ago
Something like this performs pretty poorly for all of the algorithms: =========== ================ s= =e =========== ================ I think if you searched from both ends, it would perf
411.
▲
by
rcfox
11y ago
I'm sure you're right, but it seems like traffic would be easy enough to consider by simply increasing specific edges' costs. As for the scale issue: most of these nodes and edges will never change, so it might be possible to
412.
▲
by
rcfox
11y ago
Could anyone recommend a Javascript pathfinding library that doesn't assume a grid-based graph?
413.
▲
by
rcfox
11y ago
Two corrections: 1) "Engineer" isn't protected; "professional engineer" is. 2) This applies to all of Canada. Each province has its own regulating organization.
414.
▲
by
rcfox
11y ago
A few years ago, there was an article posted to Hacker News about some site that sold DRMed anime shutting down and how people who bought anime from the site would no longer have access to the things they bought. As it turned out, the speci
415.
▲
Memory Layouts for Binary Search
(cglab.ca)
113 points
by
rcfox
11y ago
|
24 comments
416.
▲
by
rcfox
11y ago
Though, I wonder if that might signal that you're willing to put up with silly employment requirements.
417.
▲
by
rcfox
11y ago
While C is not an "object-oriented" language, it does have a concept of an object: http://port70.net/~nsz/c/c99/n1256.html#3.14p1
418.
▲
by
rcfox
12y ago
Off topic, but this code blob broke the formatting of the HN comment page, causing text to extend horizontally off the screen. It'd be great if you (or a mod) could add some (4, I think?) spaces in front of your code to make it appear
419.
▲
by
rcfox
12y ago
I don't know anything about the libraries mentioned, but it sounds like you've decided that the Rails way is the correct way to do things, and then try to shoehorn that into the others.
420.
▲
by
rcfox
12y ago
In a pinch, you can always pull from a coworker's local repository.
More ›