2,878 reputation
11121
bio website
location
age
visits member for 3 years, 6 months
seen Jul 24 at 9:53

Feb
3
comment Selecting a point inside a non-convex polygon
That's why "triangulate" is the first step.
Feb
3
comment Selecting a point inside a non-convex polygon
When you ask for a "better" approach, how are you weighting computational complexity vs distance from boundary?
Jan
13
comment Questions about God's algorithm and Rubik's cube
Nonsense. There's already a standard method which improves on breadth-first search in a permutation space: it's variously called meet-in-the-middle, bidirectional search, and probably one or two other names.
Sep
27
comment How to solve binary labeling with graph cut?
@RifatRousseau, sum them. That's the sum in my "Putting it all together".
Sep
26
comment How to solve binary labeling with graph cut?
I've done some looking around, but no-one seems to have written a paper on this yet which actually defines their notation clearly. I believe that my edit correctly describes the energy function. I think I understand the graph reduction given in the presentation, but it seems to build a graph for which you need the min flow, not the max flow.
Aug
26
comment Why is the Scala Option type not called Maybe, just as in Haskell?
Ocaml gets the name from SML. In a quick glance through Landin's The Next 700 Programming Languages I didn't notice an option type, so SML might be the origin of the name.
Jul
17
comment Is there real value in a portable language targeting very different runtimes?
Kevin Glass did have e game running on both iOS and Android using XMLVM, but an iOS update broke it. Shows the risks of targetting iOS in particular and multiple VMs in general.
Jul
11
comment Should a surrogate key ever be exposed to a user?
@RobertHarvey, clarified.
Jul
9
comment Can compilers and interpreters have bugs, and what can we (as users) do to deal with them?
I've made compilers repeatably crash before.
Jul
8
comment Why it is not recommended to post several defects in the same issue / ticket?
@MainMa, I see it happen with certain clients in a bug tracker which really only requires three clicks. I think it's a conceptual thing: the client sees a discussion about what needs to be fixed with the project, where the developer sees a status progress tracker for a specific issue. It's a matter of training the client.
Jul
8
comment Why it is not recommended to post several defects in the same issue / ticket?
All four options are bad, but I would favour d (which implies b). If it were a free-text answer with a limit of 15 words, I would say something like "Tracking the status of multiple bugs is much clearer with multiple tickets".
Jul
7
comment Why is the game industry, specifically , so harsh on programmers?
How many of the reports were first hand? EA isn't the entire industry, but whenever I hear this kind of thing they're the only company that's mentioned.
Jul
2
comment Unit test SHA256 wrapper queries
In addition to comparing the result of hashing "Hello World!" with another language, there are test vectors defined in the standard (as, I believe, there are in any cryptographic primitive standard published by NIST).
Jul
2
comment What technical details should a programmer of a web application consider before making the site public?
@Aufziehvogel, it's on archive.org, and I've edited in the relevant part.
Jun
21
comment How to compute a signature of a matrix
MD5 and SHA aren't defined over text but over byte streams.
Jun
13
comment Does the ray tracing algorithm involves rasterization of image?
What image do you have available to rasterise?
Jun
6
comment How to generate random numbers with a (negative) sloping distribution?
@JanDoggen, that follow-up question is more suited for math.stackexchange.com
Jun
3
comment Where to learn graph theory applications
Not quite an answer, but the graphs tag on the codegolf stack will give you a few problems which you could treat as exercises (and you could also search for graph to see where people describe their solutions as using graphs). (Just don't post your answers to the questions tagged codegolf unless you've made an effort to write the shortest solution you can rather than the clearest, which is what you'd probably want to do when studying graph algorithms).
May
16
comment Why is 0 false?
This argument just about works for abusing bitwise | as a Boolean operator but it breaks down for & and ^ because of the existence of distinct non-zero values.
May
14
comment Single codebase for client and server with Node.js
@hippietrail, en.wikipedia.org/wiki/WAR_file_format_(Sun)