Reputation
8,901
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
5 25 42
Impact
~190k people reached

Feb
4
comment When to use DAG (Directed Acyclic Graph) in programming?
Links have a nasty habit of going stale or failing. If that happens, you're right back where you started - a short one-line answer that doesn't help much. Can you summarize the contents of the link so this answer can stand on its own? (Keep the link, just make sure the answer is a good one even without the link).
Feb
4
comment Java constructor: I can't understand
While your statement is technically correct, it does not appear to answer the question - why is the constructor apparently failing to initialize a member variable. It would help if you could edit your question and add some more detail.
Feb
2
comment Unit Testing Module-Internal Functions
I would argue that you shouldn't unit test internal functions - see also Unit testing internal components. In theory, internal functions can be added, removed, or rewritten at will without out harming anything, provided the external functions continue to pass their unit tests.
Jan
28
comment Building a mini programming language for the end user
Good luck with the security issues. Sandboxing isn't easy.
Jan
14
comment Improving sampling algorithm
Related? Nurse Scheduling Problem
Jan
14
comment How is rendering a Word document different from rendering a website?
@bakoyaro - with a couple more sentences, your comment would make a good answer
Jan
13
comment Is it effective to review code in language I don't know?
Sounds like an excellent way to learn more about Python. Question anything that looks funny - some of it will be you not understanding the language, and some will be legitimate code review items.
Jan
13
comment Strategy for Public / Private API, Encrypted (or Hashed) Data, and Server Compromise
In that case, why does (A) need any knowledge of encryption at all? Just have (B) pass in the data already encrypted.
Jan
12
comment Strategy for Public / Private API, Encrypted (or Hashed) Data, and Server Compromise
Does (A) need to be able to access this secret identity information, or is it just holding it for (B)?
Jan
12
comment Designing Pricing table in MYSQL
What's wrong with what you're doing? You just add a new record and adjust the end date of the "previous" record.
Jan
4
comment Which database could quickly query on different columns of a billion records database ? (See the scenario)
2 billion new records written per day?
Dec
31
comment Generating dual .xlsx files and .htm pages of the same data
Yes. Be warned though - SSRS isn't free & there's a learning curve. If you can get past that, it pretty much solves the "I need to generate reports for my users" problem.
Dec
31
comment Generating dual .xlsx files and .htm pages of the same data
P.SE doesn't do tool or resource recommendations, but Microsoft Sql Server Reporting Services (SSRS) might prove helpful. It has "generate report in HTML/Excel/whatever" built in.
Dec
31
comment Program to select N integers with constraints
You might ask Math.SE if there is any way to satisfy your linearity condition without primes.
Dec
30
comment Implementing a method that never returns the same data twice
1 million records isn't that big anymore :-) Besides, you can always cull the database - remove entries once everyone has seen them.
Dec
24
comment Compute the permutations for a set of numbers and then run each to find every possible schedule that fits a client constraints
Would something like Depth First Search help? The idea is to eliminate large sets of permutations as soon as possible. To use a bad example, if you're working out the schedule for 40 teams and you determine there's a problem with the current schedule for 2 teams, there's no reason to continue calculating the other 38 - they'd be thrown out anyway.
Dec
24
comment Compute the permutations for a set of numbers and then run each to find every possible schedule that fits a client constraints
You have an algorithm that works quite well for up to 11 or 12 teams. If you want to support more (40 teams?) you may need a different algorithm. Is there any way you can filter your set of potential schedules to remove obvious duds?
Dec
11
comment How to scramble a word, keeping first and last characters the same?
Rather than editing what you did back into your question, it would be appropriate to answer your own question. See Can I answer my own question? for more information.
Dec
10
comment Is there a pattern to map a range of numbers to a string?
Could this possibly be an XY problem? Why do you need these min and max values for cities? Do the actual values matter?
Dec
10
comment Is there a limit to how often I should access a website programically to avoid DDOS?
Think also about how often the data changes. If you're collecting weather information, polling every 5 to 10 minutes is probably sufficient.