9,979 reputation
43449
bio website programmers.stackexchange.com/…
location Bad Rappenau, Germany
age 44
visits member for 3 years, 11 months
seen 5 mins ago

writes code

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

find me on Google+


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.
Jul
7
comment Is reading+modifying existing code better than making your own?
Will most likely be closed as either "opinion based" or "education advice". Anyway: this is totally ok. There is so much to learn that you simply can't do any different. Also reading code from good programmers is a great way to improve your own skills. Just avoid Cargo Culting where you just plug together stuff you do not understand at all and hope that it will work 'somehow'.
Jul
4
comment Why shouldn't an object reference have access to a static member in C#
Your example is not very good, since the area of a house is obviously relevant to the instance, nor shared by all instances (each house will have a different area). A better, though simple example would be just a counter variable for instances. Each time you create an instance its constructor would increase this static counter, the destructor decrease it.
Jul
4
comment Large csv's to html report
What do you need to test to see if it's a duplicate? You should use an indexed data structure for this, not an array. Use a dictionary and if there isn't a single value that decides uniqueness, then hash all relevant values into a single key. That way the dictionary can tell you if the key already exists. Alternately write it into a database with a unique key defined on the relevant fields (there are databases that run in memory only, so no need to persist anything if only needed once)
Jul
3
comment Is there a real advantage to dynamic languages?
People often talk about very different types of projects (especially regarding size). The business logic for a web site will be very simple compared to say a full ERP system. There is less risk that you get things wrong and the advantage of being able to very simply reuse some code is more relevant. Say I have some code that generates a Pdf (or some HTML) from a data structure. Now I have a different data source (first was JSON from some REST API, now it's Excel importer). In a language like Ruby it can be super easy to 'simulate' the first structure, 'make it bark' and reuse the Pdf code.
Jun
25
answered How to execute batch jobs via webservices or rest api
Jun
18
comment Do Rails Join Models Get Controllers?
That's totally ok. Quite typical actually and the only way to stay RESTful, otherwise you would have to add some non-REST actions to the UsersController.
Jun
17
answered What is the argument for singular nouns in RESTful API resource naming?
Jun
5
comment Any patent issue if I want to call my classes “signal/slot” as in Qt?
Others have used the signal/slot terms in various libraries (some as alternative options to Qt that are more lightweight). Si it seems that they are nor suing anybody about it.
May
15
reviewed Approve How other thread can show the incremented value unless the 1st thread reaches the return statement?
May
15
reviewed Reject What is language-agnosticism and why is it called that way?
May
6
reviewed Leave Open Responding to app feature requests I'm not going to implement