Slashdot Mirror


User: AlgorithMan

AlgorithMan's activity in the archive.

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

Comments · 949

  1. Re:Yes, AutoHotkey. Change any key to anything els on Microsoft Says, Don't Press the F1 Key In XP · · Score: 1

    just a second.... *hack*hack*haaaaaaack*... there, I changed it to the space bar for you...

  2. maybe writing directly to the device files? on Write Bits Directly Onto a Hard Drive Platter? · · Score: 0
    I think you might want to read and write directly from or to /dev/sdX for the whole disk number X or to /dev/sdXi for the i-th partition on disk X. I'm not 100% shure though, what happens with boot sectors, boot loaders, partition tables and such...

    of course this way you can only work with bytes instead of bits, but that's just a mathematical problem, you can solve this with some bit-shifting.

    int base2[] = {128, 64, 32, 16, 8, 4, 2, 1};

    bool getbit(FILE* device, int num) {
    fseek(device, num/8, SEEK_SET);
    return (fgetc(device) / base2[num%8]) % 2;
    }

    void setbit(FILE* device, int num, bool bit) {
    fseek(device, num/8, SEEK_SET);
    char tmp = fgetc(device);
    fseek(device, num/8, SEEK_SET);

    int basenm8 = base2[num % 8];
    fputc(device, (((tmp/(2*basenm8))*2 + bit)*basenm8) + tmp%basenm8 );
    }

    or something like that...

  3. Re:Advisory is not quite right on Microsoft Says, Don't Press the F1 Key In XP · · Score: 1

    or windows... (yes, that logically means not using your computer, but that is what I wanted to express...)

  4. Re:Sony timer on Calendar Bug Disables Older PlayStation 3 Models · · Score: 1

    well, then why did the image go b/w every time I set the clock to the actual date and back to color when I set the clock back (went through 3 iterations of this iirc)

  5. Re:Sony timer on Calendar Bug Disables Older PlayStation 3 Models · · Score: 1

    I actually found such a timer once in a philips (iirc) video recorder... The thing would only play black and white after a certain date. resetting the clock solved the problem...

  6. god damn, how f*cking hard is this!? on Calendar Bug Disables Older PlayStation 3 Models · · Score: 1
    god damn, how f*cking hard is this!?

    bool leap_year(int year) {
    return (year%4==0 && year %100!=0) || year%400==0;
    }

    There, I just pulled the above code out of my ass, and it's so damn simple! I don't claim any copyrights to this! Go ahead, copy 'n paste it into any of your products as you like (also commercial and closed source, I don't even want a mention!), if that is really to hard for you, you lame ass tinkerers!

  7. highschool students can get this right! on Schooling Microsoft On Random Browser Selection · · Score: 0, Troll

    I developed one of the good implementations in school... god, Microsoft is such a pile of tinkerers! Is there anything they can get right, that a highschool student could not? No, I don't mean marketing, bribing politicians and blocking competition! They exist for 35 years and - heck - they still have problems with leap years!

    sometimes I get the impression that they are trying the "a thousand monkeys on a thousand typewriters" approach...

  8. Re:Why not do this for desktop OSs? on The 1-Second Linux Boot · · Score: 1
  9. That will probably work... on The Awful Anti-Pirate System That Will Probably Work · · Score: 1

    yeah - right - you might not be able to fool this DRM system, but you might be able to kick it out completely, using a disassembler and assembler skill...

  10. That's so oldnews! on US Lawmakers Set Sights On P2P Programs · · Score: 1

    US Lawmakers Set Sights On P2P Programs

    That's so oldnews! The Lobbies have long set sights on P2P Programs!

  11. Techniques from parameterized algorithms? on IBM Claims Breakthrough Energy-Efficient Algorithm · · Score: 2, Insightful
    ZOMFG!!!! PNOIES!!!!
    • Kernelzation + Memoization
    • Branching-Vector minimization

    regularly produce this magnitude of algorithm speedup...

  12. Nostalgia on When PC Ports of Console Games Go Wrong · · Score: 1

    Do you remember the "insert coin" messages in console games, back in the days?

  13. Re:Entropy on Newspaper "Hacks Into" Aussie Gov't Website By Guessing URL · · Score: 1

    if 3,727 attemts took them 2 days, you bet it was manual... a little BASH oneliner would make 3,727 attempts in 1 hour

    no automated program would need 46 seconds per request...

  14. Re:Window analogy on Newspaper "Hacks Into" Aussie Gov't Website By Guessing URL · · Score: 1

    then why do insurances deny payment, when something is stolen from your unlocked home?

  15. FINALLY!!!one on Real-Time, Movie-Quality CGI For Games · · Score: 4, Funny

    FINALLY we can have CGI-quality in computer games!
    It was such a pain, when computers couldn't achieve the quality of COMPUTER GENERATED IMAGES

  16. what's with on Real-Life Equivalents of Video Game Weapons · · Score: 1

    what's with real-life shrink-ray, freeze-gun and devastator? or at least jetpack or holoduke!? what are they waiting for to develop these? christmas?

  17. DAoC? on Why Are There No Popular Ultima Online-Like MMOs? · · Score: 1

    Some UO fans, that I know, went to "dark ages of camelot" after UO servers became to empty...

  18. Re:If you want to learn some compuational theory.. on What Knowledge Gaps Do Self-Taught Programmers Generally Have? · · Score: 1

    "Computers and Intractability" is more like a list of problem-reductions among NP-complete problems + references.
    If you want to write "Problem XYZ is NP-complete", it is a good book to quote, but it's not at all a book, that teaches you anything...

  19. Re:Email is largely useless anyway on Outlook 2010 Bug Creates Monster Email Files · · Score: 1
    While I agree with you in most points, but

    most of the protocols have no way to validate either the content or the author and as a result will just be toys in the business world.

    Read RFC 821 (SMTP)! E-Mail has no validation of the source either...
    Your E-Mail Program just has to pretend to be an SMTP server itself

  20. Thats exactly what Microsoft did wrong on "Logan's Run" Syndrome In Programming · · Score: 1

    nontechnical hiring managers tend to look at resumes with an eye for youth, under the "more bang for the buck" theory. Cheaper young 'uns will work longer hours and produce more code.

    I saw an interview once with an ex-MS employee who said that MS (at least back in the days) preferred to hire kids directly coming from school... you remember that myth of "whiz kids"? That's what they were looking for...

    Well I would have been considered a whiz kid and now that I finished my computer science major I can tell you: without a university degree in computer science - even as a whiz kid - you are a tinkerer and you know nothing about what you're doing.
    Today I am embarrassed by the source codes I wrote in school, that got me straight A's!

    I even may have produced more code - because back then I didn't know enough and hence didn't think enough about what I did and wasted hours of programming things, that could have been done with far less code... and better performance... and less memory consumption... and more reliability... and more portability...

  21. Oblig Zero Punctuation on New Riddick Movie Made Possible By Games? · · Score: 1
  22. yro on Operation Titstorm Hits the Streets · · Score: 1

    your rights online: none

  23. This is how I hunted copycats... on How Easy Is It To Cheat In CS? · · Score: 1

    This is how I hunted copycats in my tutorial groups:

    I wrote a little program that removes comments. If you are serious, you might also rename variables and functions so they are uniformly (that's not SO bad, if you use lex & yacc)... then run a diff on all pairs of codes (no, use a BASH script!), that ignores whitespace differences (-b -B) and pipe the result through wc -l to count how many lines diff wrote.

    pairs that have a small number are suspicious and should be compared manually.
    pairs that have a 0 are pretty much guaranteed to be copies...

  24. Re:Sigh! Go ahead, on European Credit and Debit Card Security Broken · · Score: 1

    IT'S MONTY'S FAULT!

  25. Re:Duh... on Australian Senate Hears Open Source Is Too Expensive · · Score: 1
    well, you just left the comparable parts of the analogy... to get back into the comparable parts: say feed, vaccine etc. costs less than 1 egg a day AND the difference is more than

    price of a chicken / days it has left to live

    I've read from several hundred big companies, governments and governmental institutions who reported that the savings of switching to FOSS quickly exceeded the initial costs...