Reputation
19,702
Top tag
Next privilege 20,000 Rep.
Access 'trusted user' tools
Badges
2 38 77
Impact
~707k people reached

Apr
22
answered What is the correct OOP relation between complex and real numbers?
Apr
21
comment Is there any simpler way to check the strong level of password?
require at least 10 characters and ... That's it. Just require a long password.
Apr
16
awarded  multithreading
Apr
15
comment Do I have to fork a server program as an “C” child process in order for correct interprocess communication to take place?
@Frank when you do "sem_open" the OS will look for other semaphores with the same name and return a handle to an existing semaphore if there is already one (creating one otherwise if the flag was set). Waiting and signaling semaphores are system calls and the kernel will deal with the exclusive access.
Apr
15
answered Do I have to fork a server program as an “C” child process in order for correct interprocess communication to take place?
Apr
15
comment Do I have to fork a server program as an “C” child process in order for correct interprocess communication to take place?
Can you be sure the pthread_mutex_t doesn't have a pointer to some allocated structure that it needs to change during lock and unlock? If not then this method won't work.
Apr
15
comment Does having so many macros (#define) increase compilation time due to prolonged pre-processing?
You can do preprocessing independently from other compilation steps, so why not do some profiling on it.
Apr
14
answered BST to AVL in O(n)
Apr
12
answered What are the drawbacks of making a multi-threaded JavaScript runtime implementation?
Apr
5
comment Should temporary files be saved to /tmp or the current working directory?
check if the program has access and if not find another temp dir
Apr
1
comment How does cuckoo hashing guarantee O(1) lookups in presence of persistent hash collisions
@Jules it can't. The best way to guarantee the diversity is to let the salt affect the hash in a non linear way like hash(salt) { return salt*(c[0] +salt*(c[1] + *salt*c[2])); }
Apr
1
revised How does cuckoo hashing guarantee O(1) lookups in presence of persistent hash collisions
added 233 characters in body
Apr
1
answered How does cuckoo hashing guarantee O(1) lookups in presence of persistent hash collisions
Mar
30
comment Writing clean and efficient recursive function
Readable and minimal code are often opposites. Go for readable first.
Mar
30
reviewed Approve Loading The Android SDK VDM as a plugin to Eclipse
Mar
18
revised Should <= and >= be avoided when using integers, such as in a For loop?
added 405 characters in body
Mar
18
comment Should <= and >= be avoided when using integers, such as in a For loop?
@nocomprende you wouldn't, if the boundary values from your problem description are 5 and 10 then it's better to have them explicitly in the code rather than a slightly changed value.
Mar
18
answered Should <= and >= be avoided when using integers, such as in a For loop?
Mar
15
awarded  Enlightened
Mar
11
revised Why does expressing calculations as matrix multiplications make them faster?
added 115 characters in body