Reputation
10,554
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
4 38 51
Newest
 Nice Answer
Impact
~310k people reached

Feb
1
comment Web browser resetting connection
browserscope.org/?category=network
Feb
1
comment Web browser resetting connection
As far as I know there is a hard limit of concurrent connections at any time (6 for most browsers last time I checked). Did you try to queue the requests and handle the next one only if the last one has finished? A brutal and bad way to do this would be to use async: false, this would block the browser and totally fail if there is any server side problem. But for testing it may give you some idea what's going on.
Jan
30
comment Help in understanding computer science, programming and abstraction
Read. Understand.
Jan
29
comment Advice on program performance after changes
@Ange1 it's a search engine (basically a type of NoSQL document storage based on Apache Lucene indexer) so there is not exactly a question of being compatible. You would have to export your data into it and then use it for queries. It's main purpose at some time was full text search but aggregations made it into a great tool to filter by attributes, tags and similar. Communication with it is via RESTful JSON API, so rather easy, especially if your language supports easy conversion from Hash/Dictionary structures to JSON.
Jan
29
comment Advice on program performance after changes
I have done similar queries to filter over large lists of 'attribute' like data with ElasticSearch aggregation. Which is not only more performant but also led to far simpler code. Maybe worth a look if exporting the data would be an option.
Jan
25
comment Why are semantics and type systems are so important?
One example of such a pitfall may be be PHP's left associative handling of the ternary operator: stackoverflow.com/questions/20559150/…
Jan
25
comment Why are semantics and type systems are so important?
For semantics IMHO they are more relevant on a level of language design and implementation (not that other programmers would not profit from knowing about it since it will help understand what actually happens and how to avoid certain pitfalls in some languages). For type systems this is quite different since you will make decisions based on how a language handles types (one of the most important if a language with a certain type system can even be used for some projects). It will have a very strong effect on how your code looks and how complex it may become for certain tasks.
Jan
21
awarded  Yearling
Dec
12
comment All methods in one file/class versus multiple files/classes
Ever considered using a text editor or IDE that allows to search over multiple files?
Dec
7
reviewed Leave Closed Can we replace XML with JSON entirely?
Dec
7
reviewed Leave Closed Almost every reported bug is a high-priority bug
Dec
1
comment Why do we need both Priority and Severity?
Hmm, I think a bug that would damage data is more severe than something that is just annoying like say some functionality taking too long to load. Both should be fixed but those with higher negative impact should be fixed first.
Nov
20
comment Is there any danger in rendering user-entered HTML and can it be mitigated?
What was already said, script and iframe would be dangerous. Beyond that a malicious user could use any amount of invalid html, opening tags and not closing them, inserting CSS that changes the display of your sites html, linking to malicious sites (and to some degree hiding the link). Just what comes to mind immediately. Putting it inside an iframe as @Karan says could possibly avoid some such problems.
Nov
12
comment shopping system cart problem with stock
There was a similar question here: programmers.stackexchange.com/questions/133925/… In short there is no 'best way'. You can implement 'reservations' but run the risk to block items (for some time at least) or have to make a final check at sell out and run the risk that you have to tell the customer that the item is gone.
Nov
7
awarded  Generalist
Nov
5
comment Elasticsearch and relational database combination
Elasticsearch facetted search will be the best fit for that type of query. It is super fast and once you start to search over multiple facets it will beat most RDBMS solutions. Not only will it give you the products you are looking for but also the number of items for each facet. So say you have a search for text like 'tshirt' and a faceted search for a brand it will tell you how many products there are for each color, sie, price etc. Not only that but for prices you can define 'buckets' of a certain size.
Nov
5
comment What is NOT MVC? (in a web app)
In Rails beyond the common MVC folders you have things like Mailers (act like a spercial kind of controller + view), libraries, helpers, scripts etc. For example I have several scripts that import/export data from SOAP or REST interfaces. There are the classes that do the import (kind of models) and the classes which control when and what to import (run by cron jobs) which are kind of controllers. But since they don't fit in the Rails MVC structure (which only handles the browser part) I just put them in libraries. But from a technical view they are controllers and models (business logic)
Nov
3
comment must all urls for a resource be same
@ghanbari updated my answer
Nov
3
revised must all urls for a resource be same
added 800 characters in body
Nov
3
answered must all urls for a resource be same