Hehe... humans are fooling themself on this issue. If you are really honest, you would see that there can't be an answer to this question and that makes the whole theory questionable. You can go back...
Type: Posts; User: Spark
Hehe... humans are fooling themself on this issue. If you are really honest, you would see that there can't be an answer to this question and that makes the whole theory questionable. You can go back...
Darn, almost forget to check this thread back. :)
Thanks for your answers. Does anyone know a good source for learning assembly programming (the concepts)? Preferably an online source because I...
Hello,
where should I go to learn about advanced topics like driver development, memory mapping, etc? I do find some information in the net, but they are usually more theoretic and require that I...
Maybe becaue the thought of god is a very limiting and unpleasant idea of the world. It's also illogical. ;)
Limiting because if it would be true, we wouldn't have the complete control about our...
No, for database driven web development PHP is usually the best choice (because the language is designed for exactly this task) or at least another scripting language like Perl or Phyton. But if you...
There is not one tool to rule them all.
I use perl for all kind of small or large scripts with a lot of text manipulation. PHP is awesome for dynamic webpages. I would prefer C++ for GUI...
CGI is just the name of the gateway between your program/script and the webserver. The webserver calls your program (weither it is a compiled C application or a perl script or something else doesn't...
I think long integer is %ld.
Last bump. If you have any idea please tell me. Otherwise I will just leave it like that and whenever I think it takes too much memory, just restart the server or something like that (fortunatly the...
Then read in a string. =)
You could just always read in a char and when it's not a Q, then convert it to an integer (atoi()).
It doesn't. :( The thread is closed, another is opened and it takes 4k more memory. This is really weird because the code I quoted above is everything I left in and it still does that. How can there...
I'm not sure if this is usual or not...
I spawn a new thread like this:
if(pthread_create(&unused_id, NULL, chat_stream, NULL) <0)
die("pthread_create() failed for stream");
After...
My Athlon started crashing after a few weeks... Always when it was hot temperature. After a while I couldn't take it anymore so I had to backup to my old P133, running since years even without any...
*bump*
Still looking for a better solution. I'm worried that maintaining 600 condition vars might be overkill especially because settings all those signals is extremely time critical. Please,...
Huh? What do you mean by "all done by string manipulation"? Of course you need string manipulation to parse the code but that's not everything of course.
Look at perl, I assume perl is written in C....
Well, I'm a complete newbie to linked lists but just yesterday I wrote something like this. I needed a linked list where I can remove any element at any time without breaking the chain. I didn't find...
But wouldn't take up such a while(message == FALSE) loop eat up all CPU resources? That would be the easiest way to do it otherwise... The method with condition vars works very good though. I'm just...
Hmm no, it's Linux.
I searched (almost) the whole web for it and still couldn't find any information on how to do a passive wait... It has to be possible somehow, especially with threads. Please help me if you have any...
I would say that PWCHAR, LPWCH, PWCH, NEPSTR, LPWSTR and PWSTR are all of type pointer to wchar_t.
So it shouldn't matter if you type
PWCHAR test;
NEPSTR test;
or
LPWSTR test;
But as always,...
Yep, that's somehow what I thought. My big problem though is, that I have no idea how to wait for those messages to arrive (I'm still a bloody newb in most areas :().
So what do you mean with...
This is my next challenge.
I have several threads waiting there. Another thread is polling a database and when it finds something, it puts something in a datastructure that is owned by a thread...
Ok, so let's use Mod for finding the poor guy who gets killed and simplify this a little bit to a final program:
int guy[100], exec_order[100];
int i, guys_num, order, execute_step;
int...
I thought the same first, but I think the reason is that every executed guy is out of the circle. This makes everything considerably more complicated. =)
It's like this:
You start with
12345678...