1,701 reputation
513
bio website
location
age
visits member for 4 years, 8 months
seen 2 days ago

May
21
comment Can one edit a built-in Python module?
There is an answer below by Michael0x2a that covers the fine points, but the simple version is: don't do that. If I am reading your code and see a call to math.polynomial_roots() me and my interpreter will become confused. That's a Bad Thing.
Apr
24
awarded  Informed
Feb
28
comment Am I designing software or architecting software?
In English, any noun (Architect) can be verbed (Architecting) but, to my ear, "architecting" is an ear-grating business neologism. I tend to assume that an engineer who claims he is "architecting" to either be presumptuous or enjoys long words that have a more concise synonym.
Feb
28
comment Java write to text file from multiple threads
I suggest you read about synchronization and perhaps thread synchronization questions on StackOverflow
Feb
28
comment Bad sign if nobody can comprehend one's code?
Programmers who don't understand that communicating with other people is the main purpose of source-code probably don't deserve their title.
Feb
25
comment Write a (good) code convention for c#
Yes, do steal one. A quick search turned up a dozen wheels that you don't have to re-invent.
Feb
25
awarded  Nice Answer
Feb
24
answered Is it reasonable to assume that any physical quantity can be represented by a 64-bit integer without overflow or underflow?
Feb
11
comment How to handle initial state in an event-driven architecture?
The first thing that comes to mind is to generate a "synthetic" event (call it initialize) which contains the needed sensor data.
Feb
6
comment Find sequences in a big data set of integers
As another commentor noted, you are trying to solve a mathematical puzzle of the ages with only rudimentary maths. There are tons of research in this field and I cannot grasp almost all of it. Even if you were really on to something here, you'd need CPU-millenia of computing power at hand to prove it works. Until such a time as you can articulate your approach to a mathematician who is well-read on the subject, I would assume it to be mistaken.
Feb
5
comment Most efficient way of searching very large strings of text in java
The Boyer-Moore string seaarch algorithm and its variants and "See Also" wouldn't be a bad starting place
Feb
5
answered Real life scenario of why we would use loops
Feb
4
comment Execute python code without showing the code
To amplify this answer, there is no language nor executable which will prevent other sufficiently motivated opponents from gleaning your algorithm. As a corollary, you're not as clever nor unique as you assume. If I am incorrect, file a patent and don't participate in the competition.
Feb
4
comment Best practice for uploading large file, previewing, and editing before saving to database?
Implement them both and measure the differences; you are asking a system performance question which cannot be predicted, only measured. If you find implementing two methods too onerous, then pick the simplest one and implement that. You are wishing to buy yourself a headache for purposes of premature optimization. This question cannot be answered.
Feb
4
comment Best practice for uploading large file, previewing, and editing before saving to database?
"I would prefer to not use "staging" tables in my database." you make no case for this design choice and as others have noted, you gotta store it somewhere, why not the db? Any other approach doubles the code paths and thus makes it twice as error-prone.
Feb
4
answered Python: Faster to use global variable or pass as arguments to a function?
Jan
31
comment How to organize remote Git branches when team does single change releases?
It seems if you were to name your "shared remote branch" as "integration branch" all would be well. With the integration branch assumed to never be functional, you allow continuous integration while not releasing the trunk without gatekeeper approval.
Jan
29
comment Any advice on how much browser memory to use?
"the 2nd dropdown would be around 2000-3000 items" why do you hate your users?
Jan
28
answered Empty except block vs. huge except block
Jan
27
comment Pattern for checking online service availability
If you keep the server idle-polling, the reverse of exponential back-off applies. For example the Network Time Protocol considers "it was up last time I queried it" as a predictor of what its state will be in the future and increases the polling interval to accommodate.