Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Discussions

TimP TimP
  • so..uh... Nikon wins.. hands down.

    Hope this isn't a thread hijack, but since DigitalDud mentioned it, is there any consensus on a good low to mid end point and shoot camera? I'll be travelling this summer and would like to take some pictures. Preferably under $250 or so.

  • Methods of protecting .net exe's from ​decompilati​on?

    If you're really that concerned, make it a web app or something and run it on a box you own. If you think your competitors will go to any length to reverse engineer your work, then don't give it out the EXE at all.

    I don't think many customers would be keen on this, though. Eventually if you make it too cumbersome to even use they'll go elsewhere regardless.

  • "​virtual&quo​t; printer

    Couldn't you use generic PCL6 drivers on Vista? Unless this printer has fancy features you need to exploit, any old PCL6 driver should do it.

  • Rootkits on x64 Vista: Are they feasible?

    I've noticed my desktop icons seem to be refreshing a lot more than I remember in the past and any suspicious behavior always triggers paranoid malware fears in my mind, but that's beside the point. I was thinking about the rootkit "epidemic" and was wondering if they're still a legitimate risk on x64 Vista.

    As far as I understand, rootkits that effectively hide their presence (i.e. not showing up in the process list, registry, file system, etc.) require a kernel mode component to intercept queries for information that could reveal them and return a modified result with themselves omitted.

    With x64 Vista closing the door on unsigned kernel drivers, is it still possible to have a truly stealthy rootkit (obviously moot if the rootkit is a signed)?

    Have there been any stories of Vista rootkits in the wild?

  • C Standard Library string.h question involving strtok()

    strtok uses a static pointer to keep track of where it is, that's why it's not thread safe. I took a look at the source code (strtok is only a handful of lines long, /glibc-2.7/string/strtok.c in the tarball) and it seems to only manipulate pointers pointing to your original string, so there's no need to free anything it returns. Just free the buffer the string was in at the end if it was dynamically allocated.

  • Windows 7

    It's always interesting to speculate about these things, but the NT kernel is inseparably tied to the rest of the operating system. If you swapped the kernels, you would probably spend the bulk of your time writing compatibility layers in Linux/Unix to mimic NT kernel features.

    Besides, I can't think of any value added by using a Linux kernel.

    (and I'm a Linux user too, so this isn't a MS shill post)

  • Re-​installing Windows XP onto a second hard drive

    Lloyd_Humph wrote:
    
    What does RAM have to do with it? I think you're confusing yourself here. As for expensive RAM, it probably was expensive at first. You can probably get 1GB for the same price you paid.


    I'm guessing it's Rambus RD-RAM. Last time I checked (a few years ago), you could get 1GB of DDR RAM for around $130 and 512MB of RD-RAM was around $200. I don't know if they even sell Rambus RAM anymore (I don't see any one Newegg). I remember doing an estimate and finding that it would be cheaper to buy a new motherboard and 1GB of DDR RAM than buying an additional 512MB of RD-RAM.

  • Why does my C program run faster on Linux than on Windows?

    Shining Arcanine wrote:
    
    I am not quite sure what you mean by "Try running test on native OS in both cases w/o VM."


    Run it without a virtual machine. The Ubuntu 6.10 disc can be used as a LiveCD. In this case though, the performance issues seem to be with the host operating system, so if anything running Linux on bare metal would only skew the numbers more.

    If you were having problems with the Linux side I would offer my help, but unfortunately I don't have much experience debugging or tuning unmanaged applications on Windows. Sad

  • Why does my C program run faster on Linux than on Windows?

    Shining Arcanine wrote:
    
    TimP wrote:
    

    So it is indeed doing dynamic linking. Maybe passing shared objects to gcc implicitly tells it to link them dynamically, but I've never seen it done before (I usually see -l<lib>).

    Since the running time seems to grow with the size of the input, my only guess is that threading is being (ab)used in a way that pthreads handle more gracefully than Windows threading (assuming pthreads-win32 is a wrapper for Windows threads). I would attempt to run to core calculations of the algorithm without any threading involved and compare the numbers.



    Those numbers are without any threading involved. The original ones for WIndows were with threading involved.


    Is the processor multicore? (I didn't see it mentioned in the OP) If it isn't, threading code is just overhead and performance will be degraded on your Windows test.

  • Why does my C program run faster on Linux than on Windows?

    So it is indeed doing dynamic linking. Maybe passing shared objects to gcc implicitly tells it to link them dynamically, but I've never seen it done before (I usually see -l<lib>).

    Since the running time seems to grow with the size of the input, my only guess is that threading is being (ab)used in a way that pthreads handle more gracefully than Windows threading (assuming pthreads-win32 is a wrapper for Windows threads). I would attempt to run to core calculations of the algorithm without any threading involved and compare the numbers. I'm not sure what you're using to do your timing, but there is a time program standard on Linux that you can use that will give you a more detailed breakdown.

    time ./a.out