9,969 reputation
43449
bio website programmers.stackexchange.com/…
location Bad Rappenau, Germany
age 44
visits member for 3 years, 10 months
seen 2 hours ago

writes code

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

find me on Google+


1d
comment Learning C as my first Programming Language
I think it's ok to learn from books. For a start anyway. Later you can look at other peoples projects or maybe get involved with some open source project so you have some contact with experienced developers. That is if you want to go on with C, otherwise do as your friends say and learn some other language.
Nov
21
comment What do you think about GUI-programming in Qt and all other frameworks usefullnesses
You should get your job done. If you write ten lines of code just to get a button at the right place and could get the same result with two mouse clicks (and make future changes easier) you waist time. You don't hardcode images in hex digits, so why would you make other tasks more difficult than you have to? There are advantages and disadvantages to using something like Qt designer and it's a question about how your project works (and mabe your team, what if there is a designer who can't code?) which solution you choose.
Nov
18
comment Git server and developers access
That's basic Git functionality. Read a Git tutorial. If you prefer a GUI tool instead of command line there are several available for all operating systems.
Nov
18
comment Git Server hardware resources required for windows
Not sure if this is on topic there, but you may get better answers on Server Fault
Nov
18
comment Git Server hardware resources required for windows
A Git server is mostly a file server. It doesn't need very special hardware, unless maybe you want to store thousands of projects by hundreds of developers on it or have other very special things like lots of very huge binary files. I would most likely start with a VM or LXC on an existing server and only update when this runs into any problems.
Nov
15
comment How to create the server-side of a web app
Yes, something like that. A REST API is in many cases just an additional set of controllers that "renders" JSON or XML instead of HTML. Theoretically in some cases you can even reuse existing controllers. In Rails for example a controller can easily return HTML for one request and XML for another. But i most cases the REST API would be slightly different from the normal website, maybe have additional functionality and routes, so it's not really worth the time to try and put everything in the same set of controllers, but reusing the model should always be possible and easy.
Nov
15
comment How to create the server-side of a web app
Keeping it in one project would make it much easier to share all the important business logic. Copy pasting code between projects is error prone. So if Laravel allows to add another layer for an API I would go that way.
Nov
12
comment Issues while dealing with an array in C
Your inner loop starts with counter = 0 again, also you use j which should not be defined. counter should start at the current value of i. Say in your example the first 1 is at position 2, so you want to start copying from there.
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.
Nov
7
answered Simultaneous purchase in online shop bypassing limited offer
Nov
7
comment i am trying to sent sms through serial port event listener but i am grtting this error NoSuchPortException
Did you try to undo those changes and then imlment them in smaller steps? Also this question is off topic and would belong on Stack Overflow. Though not sure if they would accept it there, maybe you could reduce the amount of code to the amount that is related to the actual problem you have.
Nov
7
comment Returning the contents of a byte Array Function C#
Questions about implementation issues should be asked on Stack Overflow, not Programmers. I flagged the question for migration, so please do not double post it there. Mods will move this question over.
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
24
answered How to deal with multiple “entry points” for an action in a REST API?
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.