Reputation
19,009
Top tag
Next privilege 20,000 Rep.
Access 'trusted user' tools
Badges
2 37 75
Newest
 Good Answer
Impact
~668k people reached

1d
comment Encrypted content in games
A decryption key needs to be bit correct. game state will often use floating point or state that will not be bit exact (order of entities in pools not matching for example). So you'll need to compact the game state before doing any kind of keygen on it.
Jan
30
comment Polygon simplification that encloses original set of points
in other words get a convex hull (possible add some holes to it) and then triangulate it.
Jan
25
comment Can the “level 256 bug” in the game of Pacman be considered an unhandled segfault?
@B1KMusic not all buffer overruns result in a segfault. It depends on how the memory was allocated. If the memory is statically allocated (one big buffer manually split up in different zones) and the area immediately behind the last level was used for something (like sprite graphics) then it wouldn't segfault.
Jan
15
comment Retrieving an incorrectly stored tree data structure
Do you have an index on the parent_id?
Jan
12
answered Is this example implementation of the Observer pattern well-written?
Jan
8
comment How to properly reverse the if statement when you have two conditions in it?
@black-room-boy those mean different things, if you started from if (!($first && $second) ) then you have to use if (!($first) || !($second) )
Jan
8
revised How to properly reverse the if statement when you have two conditions in it?
added 156 characters in body
Jan
8
answered How to properly reverse the if statement when you have two conditions in it?
Jan
4
answered How to prevent user from requesting API method multiple times in parallel?
Dec
18
answered Best strategy for reporting progress to the UI - how should the callback happen?
Dec
15
comment Factories, vectors and smart pointers - Design Question
auto_ptr is not the right pointer in nearly all cases. unique_ptr is its replacement.
Dec
11
comment What is meant by reuse of inheritance?
@q126y did you read the pdf the quote is from, cs.auckland.ac.nz/~ewan/qualitas/studies/inheritance/…
Dec
11
comment What is meant by reuse of inheritance?
Every case of inheritance can be replaced with composition by use of a Pimpl (pointer to implementation) style delegation instead of overridden methods.
Dec
5
comment Number of parallel lines in a given set of lines
why not sort them by a/b (or atan2(b,a) )and check how long the longest run of equal slopes is
Dec
1
awarded  Good Answer
Dec
1
answered If the size of a set exceeds the period of a PRNG, is it true that some combinations may be unable to be generated?
Dec
1
awarded  Nice Answer
Dec
1
comment How to deal with a bug which seems to have fixed itself?
Depends on how serious the bug is. If it's just a layout goof then indeed a couldn't repro stamp and be done, but if it could be more sinister then a few hours to end up with a regression test can be worth it.
Dec
1
revised How to deal with a bug which seems to have fixed itself?
added 3 characters in body
Dec
1
answered How to deal with a bug which seems to have fixed itself?