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

writes code

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

find me on Google+


Dec
17
comment In a REST based system should a request for a sub-resource include the parent
Only the orders.
Dec
17
comment How does Yahoo's Smush.It work and why doesn't everyone use it?
Because we have about 20.000 images for our website and need to use automated tools. Also they only use rather common tools for compression. If your images were reduced by 90% you did something wrong to begin with. It's a nice tool for people who only need to process small amounts of images and don't want to learn how to use professional tools. So it is quite popular to do compression, just not every website is built professionally.
Dec
7
comment PHP MVC as backend for iOS app
If you only need JSON and nothing else I guess you can mostly skip the view part. You would still have models and controllers. The models obviously for database interaction and business logic (if needed) and the controller to handle the requests. This assuming that (like with Rails) there is an easy way in PHP to generate JSON directly from the data structures, if not you may want a simple view layer to generate JSON.
Dec
5
comment What is the best way to approach building search functionality for a large website using PHP, MySQL and JQuery
You won't get very far with SQL. It's just too cumbersome. As Yannis says, look for Apache Solr or ElasticSearch (both based on Lucene). Maybe have a look at Sphinx too. To me at the moment Elastic makes the best impression, since it has a really nice interface to work with and is easy to setup.
Dec
5
comment Haskell, Rust, or D for POSIX shell implementation?
@JörgWMittag would this still be a question? Since there is xmonad for a windows manager which should be side effects in its purest form all over the place?
Nov
30
comment I have two applications… use NoSQL or RDBMS?
Your assumptions are basically right. You could do all of this with a RDMBS (both projects) and at least for project 1 the RDBMS would likely be the better option. Also it is very common to use several database systems for several tasks, so merging the travel data into a document oriented system for some optimized search (like Solr or Elasticsearch). Though you see pure NoSQL projects more and more. Go with combinations until you gain some experience with some of those newer options.
Nov
26
comment How do big companies maintain their products' source code without it falling into wrong hands?
They make contracts and sue if those contracts are broken. Also they make contracts only with people/companies they think they can trust (have a good reputation, can show they have done similar projects in the past, are recommended by other people with good standing...). And no, not everybody at facebook has full access to all the code.
Nov
9
comment Creating a user-customizable web api
Possible duplicate: stackoverflow.com/questions/22907/…
Nov
8
comment Given a number which is power of 2, check if it is even power or odd power
Is there a size limit for the numbers? It would be easy if it's bounded with say 32 or 64 bit, but if the size could be arbitrarily large bitwise operations would maybe become more difficult to use.
Oct
29
comment Will there be a memory or processing time difference between a class member function and a global function
Also this may help: stackoverflow.com/questions/422830/… (tl;dr: The C++ standard guarantees that memory layouts of a C struct and a C++ class will be identical as long as the C++ class/struct fits the criteria of being POD ("Plain Old Data"))
Oct
29
comment How was the system clock first used in early computers?
Time sharing systems maybe. It seems that the CTSS used a modified IBM 7094 mainframe that implemented a "clock interrupt" (not sure if this would have allowed full featured date/time functionality). For PCs the IBM AT was the first model to come with date/time hardware implementation (used to set file creation/modification timestamps and showing the time).
Oct
13
comment How to handle textual interactivity
What you are looking for is natural language processing, your specific example would be parsing to build a parse tree. There are many more details to be found about this rather complex area.
Oct
6
comment Algorithm for figuring out the enemy flag's location in Stratego
Yes, problem here is that this would not help you, since your question would get closed. Also with the focus on the actual game and less on algorithms this is more like a discussion on possible approaches or a collection of ideas (as issac9A's answer). Also there was this GameDev StackExchange where this may better fit. Also the fact that an off topic reason applies to a large group of questions (like realistic AI) never kept anybody from closing those questions. That's mostly true for all off topic reasons.
Oct
6
comment Algorithm for figuring out the enemy flag's location in Stratego
This is really about Stratego strategies and may get closed as off topic (maybe you could focus the question more on general AI algorithms). That said my strategy for this game was always to take very close count for what pieces are taken. In certain combinations once you are ahead a single captain doing 1:1 exchanges of the higher pieces and your extra captain is the next general (and fears no spy). Also trying bombs with cheaper pieces (scout) or miners was standard.
Oct
4
comment Logging and analytics from multiople processes
LogStash maybe, together with Elasticsearch or Redis.
Sep
30
comment Why should i use a framwork to make a website if i can make it using a CMS?
In such cases your site will have an admin section, those are pages that are not visible to the public. There you can create any kind of forms that are needed to get such features like managing users, managing products or managing content for pages like "about", "contacts" etc. It's just like a second site where the logged in user has more rights and can see things a normal user can't (mostly Wordpress works like that too). (Also there are many plugins for frameworks to help with this kind of features)
Sep
30
comment Why should i use a framwork to make a website if i can make it using a CMS?
Yes, this could be a solution for such a case. Also don't forget that for CodeIgniter exist many plugins too that may make the task to add CMS features easier. The problem spaces overlap a lot. After all you can add your own code to Wordpress sites too. But at some point it will be just more work and you will prefer something more geared to write your own code. And for even more complex cases you may abandon the framework to and write everything on your own (assuming you have very good devs and a large enough team). Twitter may be a good example that had to move away from Ruby on Rails.
Sep
30
comment Why should i use a framwork to make a website if i can make it using a CMS?
Stack Exchange would be a good example. You won't find this functionality in any plugin. Especially if you add all the small features it has. But also larger shops like Amazon (though not necessarily that big), their product selection is far to complex, most plugin solutions you would find are just too limited to say a single category for a product and can't handle tags and complex search features very well. Other sites that are just not typical enough for plugins, say Twitter has very specific feature sets. Sites that sell Stock Photos, sites that need very complex processing on the server.
Sep
30
comment Why should i use a framwork to make a website if i can make it using a CMS?
@babu they may use both. For simple sites or sites that work well with common plugins (some shops and similar) they use Wordpress, for more complex sites they use a framework. Just as I said, it depends on the project and some companies use a wide range of tools.
Sep
30
comment Why should i use a framwork to make a website if i can make it using a CMS?
There is no standard procedure. From the tools that offer the features you need choose the best one in terms of reliability, ease of use and whatever else is relevant to your project now and in the foreseeable future. There is no golden bullet, some companies use Wordpress for nearly everything, others will never touch a CMS. Depends on company culture, technological knowledge of developers and the projects they actually do.