Recent content by dinkumthinkum

  1. D

    How much will future games support Hyper-Threading?

    Most modern operating systems are smart enough to distribute threads among the different cores in a system before doubling up on Hyper Threads. But that's about as smart as they get, unless you have installed a custom scheduling engine of some sort. Frankly, the benefit from Hyper Threading is...
  2. D

    A question about creating macro (preprocessor) voor GNU C

    Two notes: the #else case isn't empty, it's a semi-colon. The ,##__VA_ARGS__ construct is only needed when there is a comma coming before the __VA_ARGS__. Its sole purpose is to workaround this case: #define DEBUGPRINT(fmt, ...) printf(fmt,__VA_ARGS__) /* broken */ DEBUGPRINT("Hello World")...
  3. D

    A question about creating macro (preprocessor) voor GNU C

    degibson is correct. I would go further and say that you should absolutely never put side-effects in your debug print statements. It will only lead to woes down the line. ZLP is what it sounds like.
  4. D

    A question about creating macro (preprocessor) voor GNU C

    You don't need nested preprocessor statements. There's a couple of options. #ifdef ENABLE_DEBUG #define DEBUGPRINT(fmt,...) printf(fmt, ##__VA_ARGS__) #else #define DEBUGPRINT(fmt,...) ; #endif Notice the ##__VA_ARGS__ usage: it prevents it from breaking when the list is empty...
  5. D

    Did I damage my CPU?

    I did recently update the kernel, 2.6.38-2-amd64 (Debian). However since the freezes occurred in the BIOS I assumed that it had nothing to do with the OS. The freezes did only occur with the case side off, so I started wondering if it had something to do with inadequate case cooling. I did...
  6. D

    Did I damage my CPU?

    Status update: I went back to reseat everything and noticed that even after 5 minutes of being shut off, the chipset heatsink was pretty hot to the touch. Anyway, I made sure to re-assemble the full case so the airflow was properly restored. So far, it has not crashed. Tomorrow I will run...
  7. D

    Did I damage my CPU?

    Well, the fun continues. The heatsink fan isn't in the greatest shape, so I may have to replace it whatever may come. However the temps are back down to normal: 45 idle, 65 load. The problem now is that suddenly, without any warning, the machine freezes after a few minutes of use. I tried a...
  8. D

    Did I damage my CPU?

    I am examining and cleaning the CPU right now. No external signs of damage. The HSF seemed to be slightly loose when I first looked at it, that may be the culprit. I am about to reset it with a fresh coat of thermal compound. But having hit temps of 112C, do you think that the CPU is likely...
  9. D

    Did I damage my CPU?

    I have a server (no overclocking), a few years old, with an E8400. I just had to move it from one place to another and now for the past day and a half I find it shutting itself down randomly. I do some diagnostics, there's machine check exceptions regarding thermal events, so I install...
  10. D

    Functional Programming

    A functional programming language is a language which focuses on the idea of using and composing "functions" as the fundamental tool of abstraction. A function is a piece of code with parameters and produces a result based solely on those parameters. A function is also a first-class value in...
  11. D

    Help with UNIX scripting (mailx and for loops)

    Two ways, not using xargs: Using "logical AND" operator to find (-a): find *.sas -exec grep -l "garmstrong" \{\} \; -a -exec cp \{\} ~ \; Using a sh-style for loop: for f in `grep -l "garmstring" *.sas`; do cp "$f" ~; done
  12. D

    Workstation in a virtual environment?

    You're conflating several things here. You don't need virtualization to do remote server time-sharing, and you don't need time-sharing to do virtualization. I've been working on programming projects remotely via SSH for ages. Sharing a hefty server with other users is fairly standard, either...
  13. D

    SocialEngine...

    First I thought it said "nowhining.at" then I wondered what "No Whiring" was.
  14. D

    Raytracing discussion

    Funny, I was just talking about this yesterday. There is already efforts at real-time raytracing, just google up nvidia's efforts. As for "plastic-y" that's really just a function of how good a job you do. You can find plenty of examples of ray-traced scenes that you simply would not believe...
  15. D

    Would you still buy a Symbian phone? Or, suggest an alternative

    I got an E71 two years ago, still going. My brother just bought an E71 in december for $170 unlocked (I think). I am thinking that I will just buy another E71 if I have to replace this one anytime soon. I guess the charging cable is the issue there. The E72 charges through microUSB?