Randall Cook

San Francisco Bay Area

Follow me on Twitter @randallecook!

1d
comment Undefined reference to 'boost::system::generic_category()'?
Super helpful. Thanks. +1. In my case, all I had to write was find_package(Boost REQUIRED system). I do not (yet) need filesystem.
2d
answered Approach to designing a workflow web app that contains some automation
2d
answered Structure project based on platform or design?
Mar
26
comment Is it possible to layer filesystems on top of each other?
That never hurts. ;) Still, I thought it was an interesting question. +1
Mar
26
comment Is it possible to layer filesystems on top of each other?
No, I understood that from your question, but I thought that the layering aspect of UnionFS and the explicit specification of which fs is "above" another would provide that verticality you are looking for. But this only works if actions on the upper layers are replicated down the stack.
Mar
25
answered What is a simple, correct and secure way of executing code stored in database?, that is also sandboxed
Mar
25
answered Is it possible to layer filesystems on top of each other?
Mar
24
comment How to draw rectangles for 2D arrays
Interesting question. Do you have any criteria around the rectangles you are looking to build? In other words, should they maximize area? Should the algorithm minimize the number of rectangles generated?
Mar
24
answered Communication between Python<->Cython<->C in multithreaded environment
Mar
24
comment Generate random number belonging to exponential distribution
The output of rand() is never actually used in the example code. It is clobbered a few lines down. Thus the fact that the random seed is not initialized is not where the problem lies, and makes this question not exactly a duplicate of questions relating to the use of rand().
Mar
24
answered Generate random number belonging to exponential distribution
Mar
24
revised Query to count distict on a field on multiple tables not working
put sql on multiple lines for readability
Feb
26
revised How to use code blocks in HTML
expanded answer to mention libraries
Feb
12
comment number of strings, when each character must occur even times
I recommend breaking up the problem into smaller pieces. For a given n (which I am guessing must be itself even for the answer to be nontrivial), compute all the different combinations of the 4 symbols that can comprise a set of n, where each symbol appears an even number of times. For each combination, compute the number of permutations of those symbols, omitting duplicates, presumably. I may be overly optimistic, but neither of these problems seems excessively difficult. Unfortunately I don't have time to work out the algorithms right now. I'm sure someone will before I return to this. :)
Feb
12
answered Does this python program obey functional paradigm?
Feb
12
comment Does this python program obey functional paradigm?
I totally agree. And I was going to suggest returning multiple values (a tuple). +1
Feb
12
revised Making sure loaden (non default) config is valid
added web links
Feb
12
answered Making sure loaden (non default) config is valid
Feb
11
revised Fastest way to store tiny data on the server
added alternative solutions
Feb
11
answered How to implement a function like invokeOnMainThread() in C/C++ linux?
1 2 3 4 5