Search results

  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?
  16. D

    Without the Moon

    Here's a short letter to Nature by Laskar explaining a simulation of the Earth without the Moon: http://www.nature.com/nature/journal/v361/n6413/abs/361615a0.html Laskar also did some great work on Solar System simulations regarding long-term stability, if you are interested in that sort of thing.
  17. D

    Piping in C

    I think you should work on having a proper parser that translates concrete syntax (a stream of characters) into abstract syntax (normally a tree data-structure) before anything else. Your shell semantics should be implemented in terms of abstract syntax, not concrete syntax. This will help a...
  18. D

    Piping in C

    Sounds like good ideas. Remember file descriptors are global to a process, so it doesn't matter what function does what, so long as it's the same process. Of course when you fork the child is working with a copy of the file descriptor table, so any changes to that made in the child will not...
  19. D

    Piping in C

    I don't think it is necessary for this particular case. Something to keep in mind for nested commands, perhaps.
  20. D

    Piping in C

    All this talk of parent and child I think is causing confusion because you are using it in two different senses: one for pipes, and one for forks. Let's keep parent/child process terminology usage where it belongs: fork. I am referring to the two commands to be piped as "program1" and...
  21. D

    Piping in C

    When you create a pipe you get two file descriptors: input fd and output fd. When you fork a child process, it inherits all the file descriptors of the parent. And when you use dup2, you make a copy of a file descriptor onto a given number. Using exec*() functions won't wipe it out either...
  22. D

    Cities in Motion - A new transport game on the horizon!

    And today apparently they announced a new website: http://www.citiesinmotion.com/
  23. D

    C++ code not calculating correctly

    It's cute that you described area declaratively to be "length * width" ahead of time. In some programming languages, it wouldn't matter what order you declared things in. But in C++ it does. You are not supposed to use a variable before giving it the value that you want it to have. If you...
  24. D

    Scala Syntax Help

    This looks like a type error, not a syntax error. I don't really know anything about Scala, but I'm pretty familiar with parametric polymorphism and the consequences of mixing that with subtyping. It appears that the compiler is generalizing "None" and not unifying it with Option[A]. I made...
  25. D

    Cities in Motion - A new transport game on the horizon!

    I've been playing the beta. There's a lot of really nice touches to the graphics, like how they change over time, and lots of little objects (city clutter, etc) are represented. The game is not anywhere near as complex a transportation tycoon as OpenTTD or Simutrans. There's no concept of...
  26. D

    Help with Basic "C" please

    http://forums.anandtech.com/showthread.php?t=247602
  27. D

    Piping in C

    That's how MS-DOS used to do it. However, Unix-based systems with real multiprocessing (and presumably newer Windows) can setup a direct pipe stdout to stdin where the OS handles buffering and concurrency. The linked list is a good start, though minor parsing quibble: in general you parse...
  28. D

    Whiteboard Interviews...

    I went to an interview where the guy asked me first thing: write the code to produce the powerset of a given set. I asked him if I could use any language I wanted, and he said yes. So I took the opportunity to write for him my favorite one-liner in Haskell: powerset = filterM (const...
  29. D

    Who's going to Miro Center 1/9/2011?

    Still waiting on mine. Called them up earlier this week and the guy said he has no idea when the i5-2500K will be back in stock.
  30. D

    Win7 sleep defaulting and SB OCing

    I've observed this on my current gaming machine as well (E6600, Vista). Does sleep mode ever play well with OCing?
  31. D

    Who's going to Miro Center 1/9/2011?

    I think I finally found a link on their site to the Core i5 2500k and it is out-of-stock already at this location. So yes, I suppose they are busy.
  32. D

    Who's going to Miro Center 1/9/2011?

    I would but they're only listing Core i5 2400. And they don't pick up the phone.
  33. D

    Scheme master please help

    Please don't tell me you wrote code in Notepad. Any reasonably decent programmer's editor will do the matching for you.
  34. D

    12 year old son wants to start learning game programming...

    Java and C# are the bureaucratic nightmares of programming languages. Programming in them feels like filling out papers in triplicate at the DMV. Don't forget to stamp your forms five times!
  35. D

    12 year old son wants to start learning game programming...

    I picked up C and assembly when I was about that age. I don't recommend it as the way to go necessarily, though, as I was interested in the system itself. And it turns out I wasn't able to comprehend the manuals well enough to do anything significant until many years later. Game programming...
  36. D

    Run 16 bit apps in 64bit Windows 7?

    Intel and AMD x86-64 processors don't support VM8086 mode when running in 64-bit (long) mode. That is why there is no support for 16-bit applications in 64-bit Windows. VM8086 is a legacy virtual-machine-like mode that was created a long time ago for the x86 protected mode by Intel. It allows...
  37. D

    Run 16 bit apps in 64bit Windows 7?

    This is actually the bad thing about Windows, as it leads to "DLL Hell". First of all, it defeats the point of shared libraries. Now in this era of limitless memory and storage, that seems a bit quaint, but once upon a time, shared libraries were built to be linked by many different programs...
  38. D

    3GB memory 32 or 64 bit??

    Thanks for the clarifications. I was just addressing Zaitsev statement about 32-bit OSes in general. I should have mentioned that I have been using 64-bit OSes (Windows and Linux) for many years now, and there is simply no reason for a consumer not to get one. I do my hacking in a 32-bit...
  39. D

    3GB memory 32 or 64 bit??

    Not quite right, a PAE-enabled 32-bit OS can address 36-bits of physical memory. However, pointers are 32-bits, to virtual address space. This limits you to a per-process 4GB space. The customary technique of kernel implementors is to use the upper 1GB to map the kernel into every virtual...
  40. D

    Help me find good games that justify better GPUs

    That GTX 280 isn't doing too well either.
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |