Slashdot Mirror


User: slackito

slackito's activity in the archive.

Stories
0
Comments
9
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 9

  1. Thanks CmdrTaco on Rob "CmdrTaco" Malda Resigns From Slashdot · · Score: 1

    I'm not an old-timer like all of these people with low IDs posting here, but I've been coming here for 11 years (some of them as a lurker, some of them as a registered user) and it's sad to see you go. Thank you very much, and good luck with your future projects! :)

  2. Re:Sounds like my AV receiver on Hacking a Car With Music · · Score: 1

    CD quality audio is 44.1 KHz, not kbps. As each audio sample is 16 bit wide, the total bit rate in a CD audio stream is 1411.2kbps (44.1 * 2 channels * 16).

  3. Re:Meh on Hacking Hi-Def Graphics and Camerawork Into 4Kb · · Score: 2, Interesting

    Ouch, i thought the formatting would be preserved with tags. Posting as plain old text now :P

    ----- test.c

    const char msg[]="Hello World\n";

    void _start(){
            asm("int $0x80;"::"a"(4),"b"(1),"c"(msg),"d"(12)); // write (1, msg, 12);
            asm("int $0x80;"::"a"(1),"b"(0)); // exit(0);
    }
    ---------
    $ gcc -m32 -Os -nostdlib -nostartfiles -s -o test test.c
    $ wc -c test 436 test
    $ ./test
    Hello World

    And this is just scratching the surface. Of course, in a real 4K you would want to use some compression, too, as pointed by another replies.

  4. Re:Meh on Hacking Hi-Def Graphics and Camerawork Into 4Kb · · Score: 1

    /* Look ma! No libc */ const char msg[]="Hello World\n"; void _start(){ // write (1, msg, 12); asm("int $0x80;"::"a"(4),"b"(1),"c"(msg),"d"(12)); // exit(0); asm("int $0x80;"::"a"(1),"b"(0)); } $ gcc -m32 -Os -nostdlib -nostartfiles -s -o test test.c $ wc -c test 436 test $ ./test Hello World And this is just scratching the surface. Of course, in a real 4K you would want to use some compression, too, as pointed by another replies.

  5. Re:finally! on Hacking Hi-Def Graphics and Camerawork Into 4Kb · · Score: 1

    So tell us, how'd they pull it off? Specifics, please.

    Well, a full-fledged engine is obviously overkill for a 4K intro. Usually you code the specific effects you want to show directly into the intro, and generate on the fly all the data you can, so you don't store triangles or sound waves, but the parameters for some formula you have coded. And you do this in the most compressor-friendly way you can :D. In4K is a wiki with useful tips and discussions for 4K intro coders.

    You can find lots of information at Iñigo Quilez's (the main coder of Elevated) home page, too.

    His NVscene08 presentation "Rendering worlds with two triangles" is specially relevant here :)

    I'm not a top intro coder, but I've made a few ones myself, so ask if you want more details ;)

  6. Re:"Required"? on Sony Rumored To Be Debuting Wiimote-Like Controller At E3 · · Score: 3, Interesting

    Sure it's one setup, but it's hardly "required" otherwise it wouldn't have been possible to do the same trick with the wii-mote.

    The wiimote acts as an infra-red camera (the "sensor bar" is a misnomer, it only has some leds), and IIRC the head-tracking trick involves a wiimote pointing at the user and some leds in the user's head.

  7. Re:Couple off-hand on (Useful) Stupid Vim Tricks? · · Score: 1

    Don't forget:

    ci" - change all the text between quotes, from anywhere in the text

    It also works with parenthesis and brackets :D

  8. Re:moderate contrast and sparing color on Best Color Scheme For Coding, Easiest On the Eyes? · · Score: 1

    after using a language for more than a couple weeks, you shouldn't need the editor to highlight keywords or function names or braces any differently.

    But after using a language for more than a couple years, keyword highlighting still makes really easy to spot typing mistakes (like 'whlie' instead of 'while') on the fly.

  9. Re:Problem solved.. on Blu-ray In Laptops Could Be Hard On Batteries · · Score: 2, Informative

    I would a million times rather have the 1366x768 of 720i/p. The "720" in "720p" stands for the number of lines, and 1280x720 is exactly 720p. At least, that's what wikipedia says.