10,119 reputation
43549
bio website programmers.stackexchange.com/…
location Bad Rappenau, Germany
age 44
visits member for 4 years
seen 11 hours ago

writes code

ruby (on rails), c++, python, pascal, vb, ti-basic, sql, js, jquery, html, xml, qt

find me on Google+


Jul
31
revised elasticsearch wiki excerpt
added 103 characters in body
Jul
31
revised elasticsearch wiki description
added 948 characters in body
Jul
31
comment How does Elastic Search approach the problem of distributed membership and consensus?
I would strongly recommend to setup a small cluster on at least three VMs and try it out. Not only is the API great, but Elasticsearch comes with monitoring features that allow you to see what exactly happens on each node and where data is stored and replicated.
Jul
31
comment How does Elastic Search approach the problem of distributed membership and consensus?
I have not that much experience with Elasticsearch yet, but for the first question: Each node gets configured and told what cluster it belongs to. It will then search for that clusters master node and connect to it (or take the role of master if it is allowed to and no present master available). Each index gets configured with the amount of replications it should have within its cluster and the nodes (or node masters) will decide on which node(s) it will be replicated. The nodes handle this by themselves (though you can influence this behaviour a lot when creating an index)
Jul
31
wiki created elasticsearch description
Jul
31
wiki created elasticsearch excerpt
Jul
31
suggested approved edit on elasticsearch tag wiki
Jul
31
suggested approved edit on elasticsearch tag wiki excerpt
Jul
31
revised How does Elastic Search approach the problem of distributed membership and consensus?
edited tags
Jul
30
comment Client-side coding: How to prevent malicious use?
Any reason you don't have this App communicate with your own server and then your server forwards those requests to whatever external service you need to use? (Many such services would prohibit to use them in this way anyway)
Jul
26
revised Need help understanding a recursion example in Python
formatted code
Jul
23
comment Observing progress of a distributed system
Maybe something like syslog in combination with logstash or the whole elk stack (elasticsearch, logstash, kibana). You won't get around the extra traffic as such but most of those modules can be installed relative leightweight on the client with a very responsive logserver running Redis, logstash and elastic.
Jul
20
comment Managing unique data correctly in SQL
I solved a similar problem by just changing the value of the field to something like DELETED-#numeric_id-#old_value where #numeric_id is the autoincrement unique key the record had anyway, so even if several records where using the same value over and over again it would stay unique. That way I can keep the value in this field, have still the old value and be sure it is unique under any circumstances. Not sure if best way though.
Jul
19
comment Frequent file system writes in PHP when serializing objects
Sounds weird to do this with files. I would look at a different solution, preferrably something that's is good at handling data without the need to fully define a table structure. Some NoSQL database that acceppts key/value storage. Maybe redis would work for you.
Jul
18
comment Why is first column of list called 0th in so many languages?
Already answered here I think. Not sure if duplicate, but at least a lomg discussion of the reasoning behind the 0 index. Also here the same thing.
Jul
18
comment Relevance of search results
With Elasticsearch you would most likely have this setup done faster than with anything you are working right now. There are a lot of resources on scoring like this one. In short: More hits are better, hits for less frequent words score higher and scores in more relevant fields (maybe title) score higher than some others (long text description).
Jul
17
comment Using home server to develop, moving everything out of local machine
Maybe asking about this specific issue (performant file sharing between server & client) would be a more valid question (more likely on ServerFault). But I would most likely prefer the virtual machine for this kind of setup. You keep configurations separated and most of them can easily share files between host & client.
Jul
17
comment Using home server to develop, moving everything out of local machine
Try on a virtual machine. Some PHP guys I know use Vagrant for everything. There are a lot of options I think. That said this question will most likely be closed, because it's not really clear what you are asking. How to setup this thing? (Would be better at SuperUser). If it will work? well if you do this right, that's how many of us work one way or another. It may slow you down a bit first but you will learn a lot of useful things soon.
Jul
17
comment Loading dynamic css based on user
Without detailed information difficult to say. But in general option two would be the better way. Maybe have a look at other themed solutions like jQuery UI ThemeRoller.
Jul
10
comment How to update a row in database without ID?
Totally depends on context. Either create an unique ID in the table that can't change (you don't want this, though it would be the cleanest option). Otherwise just store the old value set and use this together with the updated data to find the record.