Search:

Type: Posts; User: Spark

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Thread: Ai

    by Spark
    Replies
    35
    Views
    3,228

    Poll: Hehe... humans are fooling themself on this...

    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...
  2. Thread: Kernel hacking

    by Spark
    Replies
    7
    Views
    2,231

    Darn, almost forget to check this thread 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...
  3. Thread: Kernel hacking

    by Spark
    Replies
    7
    Views
    2,231

    Kernel hacking

    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...
  4. Thread: Ai

    by Spark
    Replies
    35
    Views
    3,228

    Poll: Maybe becaue the thought of god is a very...

    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...
  5. Thread: C And MySQL

    by Spark
    Replies
    1
    Views
    1,376

    No, for database driven web development PHP is...

    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...
  6. Thread: C vs others

    by Spark
    Replies
    7
    Views
    1,166

    There is not one tool to rule them all. I use...

    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...
  7. Thread: CGI ect..

    by Spark
    Replies
    2
    Views
    1,164

    CGI is just the name of the gateway between your...

    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...
  8. Replies
    3
    Views
    870

    I think long integer is %ld.

    I think long integer is %ld.
  9. Replies
    3
    Views
    1,936

    Last bump. If you have any idea please tell me....

    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...
  10. Replies
    4
    Views
    1,156

    Then read in a string. =)

    Then read in a string. =)
  11. Replies
    4
    Views
    1,156

    You could just always read in a char and when...

    You could just always read in a char and when it's not a Q, then convert it to an integer (atoi()).
  12. Replies
    3
    Views
    1,936

    It doesn't. :( The thread is closed, another is...

    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...
  13. Replies
    3
    Views
    1,936

    threads not releasing memory?

    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...
  14. Thread: amd vs. pentium

    by Spark
    Replies
    33
    Views
    7,167

    Poll: My Athlon started crashing after a few weeks......

    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...
  15. Replies
    9
    Views
    15,812

    *bump* Still looking for a better solution. I'm...

    *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,...
  16. Replies
    3
    Views
    949

    Huh? What do you mean by "all done by string...

    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....
  17. Thread: Linked lists

    by Spark
    Replies
    4
    Views
    1,250

    Well, I'm a complete newbie to linked lists but...

    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...
  18. Replies
    9
    Views
    15,812

    But wouldn't take up such a while(message ==...

    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...
  19. Replies
    9
    Views
    15,812

    Hmm no, it's Linux.

    Hmm no, it's Linux.
  20. Replies
    9
    Views
    15,812

    I searched (almost) the whole web for it and...

    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...
  21. Thread: typedef

    by Spark
    Replies
    3
    Views
    1,802

    I would say that PWCHAR, LPWCH, PWCH, NEPSTR,...

    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,...
  22. Replies
    9
    Views
    15,812

    Yep, that's somehow what I thought. My big...

    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...
  23. Replies
    9
    Views
    15,812

    Block and wake up certain threads

    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...
  24. Replies
    4
    Views
    929

    Ok, so let's use Mod for finding the poor guy who...

    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...
  25. Replies
    4
    Views
    929

    I thought the same first, but I think the reason...

    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...
Results 1 to 25 of 41
Page 1 of 2 1 2