Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×

Comment Re:Okay, let me make sure I'm up to speed here... (Score 1) 438

The / and \ used on the C64 are much more 45* angles than the console / and \, making it look pretty.

Oh, and since they're adjacent in PETSCII, you can print out either one randomly with a neat little line of code. That's it.

Could do the same in C with
putchar((random(2)-1) ? 47 : 92);
if int random(int max) were defined to return a random integer from 0 to max.

Comment As a great American author once wrote: (Score 1) 468

I did not think I could placidly endure another gleaming salesman tell me that I had to have quadraphony sound, coming at me from all directions. I have never felt any urge to stand in the middle of a group of musicians. They belong over there, damn it, and I belong over here, listening to what they are doing over there. Music that enfolds you, coming from some undetectable set of sources, is gimmicky, unreal, and eminently forgettable.

-- John D MacDonald, _The Dreadful Lemon Sky_

Comment Re:Ironically... (Score 1) 159

If I see an indie game I wish to buy, and it just came out, I'll buy it. (Assuming no Steam.)

But from now on, if I want to buy it but it's a year or two old, I'll figure it'll be in Humble Bundle soon enough, with no DRM and possibly a Linux version, and thus won't buy it from the developers.

That's what I meant.

Comment Ah, hello world. (Score 1) 582

Wow. When I got bored with having to write it for the 12th damn time, all I did was this:

#include<stdio.h>
#include<stdlib.h>
 
int main(int argc, char *argv[])
{
    srand((unsigned)time(0));
    char* target = "Hello, world!";
    char work = (char)(rand()%97)+32;
    int cycle = 0;
    while (cycle != strlen(target)){
        while ((work = (char)(rand()%97)+32) != target[cycle]) {}
          putchar(work);
        ++cycle;
    }
    return 0;
}

Comment Trinity (Score 1) 344

As far as cleaning up after this crap, I've been relying on Trinity a lot. LiveCD, boots, mounts and scans. http://trinityhome.org/Home/index.php?wpid=1&front_id=12

The only problem is, you need some Linux skills to use it. Last time I applied it, it missed the Windows partition and I had to go in and manually mount it.

If I were better with rolling Linux LiveCDs, I would add more scanners and set it up to run out of X

Slashdot Top Deals

Real Programmers don't eat quiche. They eat Twinkies and Szechwan food.

Working...