Slashdot Mirror


User: SamBeckett

SamBeckett's activity in the archive.

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

Comments · 381

  1. my submission on Obfuscated Vote Counting Contest · · Score: 4, Funny
    /* Current population proportion polls show: */
    #define BUSH 0.512
    #define KERRY 0.481
    #define UNDECIDED (1.0 - BUSH - KERRY)

    #define NBC 0
    #define ABC 1
    #define CBS 2
    #define FOX 3

    int main() {

    int bush = 0;
    int kerry = 0;
    int nader = 0;
    int i;
    int vote;
    int broadcast_network = rand() % 4;

    for ( i = 0; i < 260000000; ++i) {
    vote = rand() % 10000;

    if ( vote < 10000.0*BUSH ) ++bush;
    else if ( vote < 10000.0*(BUSH+KERRY) ) ++kerry;
    else {
    if ( broadcast_network == NBC || broadcast_network == ABC ||
    broadcast_network == CBS )
    ++kerry;
    else if ( broadcast_network == FOX )
    ++bush;
    else
    ++nader;
    }
    }

    printf("Bush :%9d\nKerry:%9d\nNader:%9d\n", bush, kerry, nader);
    return 0;
    }
  2. Re:They should have known! on Probe Crash Due to Misdesigned Deceleration Sensor · · Score: 1
    But I suspect you may have just been trying to be funny?

    Wow, I bet you didn't ride the short bus to school!

  3. Re:only thing I can say is... on 'Tit for Tat' Defeated In Prisoner's Dilemma Challenge · · Score: 1

    is that the lesbian form of algorithm ??

  4. Re:Priceless on Paypal Grinds To A Halt · · Score: 4, Interesting

    I've had this happen to an ATM card with a real bank.. The machine spits out an error receipt and no money. You try again, it still doesn't work. Oh, damn. What the hell, I'll come back in the morning.

    Come back in the morning, works fine. Two weeks later, have a negative balance because the 1st two transactions actually went through on their end.

    It's a royal PITA to find the right people to talk to, the right forms to fill out

  5. Re:Some comments on Printf Debugging Revisited · · Score: 3, Funny

    Can you please point me to a good C+ compiler... gcc keeps complaining about my .cp files.

  6. Re:Answer to #17 on Another Google Recruiting Technique · · Score: 1

    It's not base 2, it's base 10.. "The number of 1s required when writing out every number 0...n"

  7. Re:Don't mod this insightful! on Windows Fails 8% of the Time · · Score: 1

    Hmmm...I usually only have to reboot when an application heaves its lunch - usually autocad. There are cetain things it will screw up, and only a reboot will fix it. I'd say I run into that once every couple of months. I've never had XP bluescreen on me on three machines running 24/7 for a year and a half (2 XP-H, 1 XP-P, all SP1).

    If you are defending XP here, you are sorely mistaken. Why does a userland app have the power to corrupt the state of the OS?

  8. Re:Robot Cities on Self-assembling 3D Nanostructures · · Score: 1

    I am not familiar with Asimov's "Alien" series of books, but the only robot city I am familiar with was actually an entire robot world, but everyone was "one" with nature and all that hippie crap. They were probably running a GPL operating system.

  9. Re:"this mouse introduces laser technology." on Logitech Gives A Mouse A Laser · · Score: 1

    umm.. what?

  10. Re:Good, but... on Examining the Treo 650 Smartphone · · Score: 1

    Are digital images even admissible in court?
    Are not the 2 other cars involved in collision witnesses thereby making the camera's worth nil?
    I do not understand.

    Are you ok? Collisions on interstates are scary things.

  11. Re:Not the first time... on How 8 Pixels Cost Microsoft Millions · · Score: 1

    Actually "to go" is "ir". "Va" is just a umm... conjugation of "ir" or something. I think.

  12. Gravity Probe B on Gravitation Anomaly Measured · · Score: 5, Informative

    I wonder if Gravity Probe B will be able to measure this effect if it is still in working order next time an eclipse rolls around.

    (Side note-- I never heard of this probe until I saw it in a magazine. Why not?)

  13. Re:Spellcheck anyone? on The PHP Anthology - Volume I, 'Foundations' · · Score: 1

    You guys are all fucking wrong.

    The problem here is that spell check would not have caught their error.

    You're right, though, it's annoying. As annoying as fucktards like myself not getting the joke before hitting submit.

  14. Re:Fractals are where its at... on Build Your Own Electric Etch-A-Sketch · · Score: 1

    RTFA - original design was based on a computer controlled Etch a Sketch. They modified the design to eliminate the computer.

  15. Ha! on Microsoft Offers A Peek At New Search Engine · · Score: 0, Redundant

    What do we have under the hood? A brand new algorithmic search engine -- built from the ground up -- on Microsoft technology. Give it a spin and tell us what you think.

    But they repeat themselves...

    Search Error

    MSN Search is temporarily unable to process your request.

    Please try again in a few minutes.

    EID: f:2114719238 - 1041:1041:10004:1059

  16. Re:This Is Cool! on Indiana Launches Statewide Productivity System · · Score: 1

    This is really cool. This is the first attempt that I've seen by any state government to deliver some really useful technology to their citizens. Heck, I'm happy just being able to pay parking tickets online, this SimIndiana has online productivity apps for gosh sakes!

    Why, exactly, is it the state's business to provide this? It is just pork-- no one needs this, no one wants this, it is just wasteful. And not only that, it makes zero sense for a friggin state government (or any government for that matter) to offer friggin' productivity applications! Would you feel the same way if they started offering everyone a free weed wacker? Don't have a lawn? Oh, well... Buy one.

  17. No subject worthy on Hotel Tycoon Pushes Inflatable Space Stations · · Score: 2, Funny

    Reclusive millionaire and motel tycoon Robert Bigelow.....

    Male jigalo?

    Sue me, it rhymes.

  18. Re:What level math... on Metamath! The Quest for Omega · · Score: 1

    Algebra 3? WTF /slap

    This country's education system is in the crapper. Algebra 3! WTF! As a Junior!? No offense to the parent poster, but there is no reason why algebra can't be mastered in the 7th and 8th grades.

  19. Re:The future of RPN calculators... on The Future of RPN Calculators · · Score: 1

    LMAO.

    Anywhooo, my "abuse" of notations aside; I believe the "dx" refers to the width of the rectangles you are summing; i.e., a Reimann sum with "limit deltax -> 0".

    If that is wrong, so be it. Using Calculus does not require me to know the real reason.

  20. Re:This is not a computer.... on Was Zuse's Z3 the First Programmable Computer? · · Score: 1

    I don't understand your point or the parents'--- And I also don't have any idea what self-modifiable instructions have to do with compilers....

  21. Re:The future of RPN calculators... on The Future of RPN Calculators · · Score: 2, Informative

    WTF that isnt the chain rule.

    d/dx f(g(x)) = f'(g(x)) * g'(x)

  22. Re:Beta Stuff on Mo' Beta Testing Blues · · Score: 5, Funny
    As for my site, as long as there's no true commercial interest within my work, it will most likely stay as "alpha." Not to say that people shouldn't expect support, but rather that they shouldn't expect things to necessarily work either ;)

    Maybe not "commerical interest", but nonetheless you are trying to get some. I haxxored your site and found the following psuedo-SQL code:

    SELECT phone_number FROM users WHERE sex='F';

    FOR EACH phone_number DIAL phone_number AND BREATHE HEAVILY;
  23. Re:Other Number Theory Tricks? on There Are Infinitely Many Prime Twins · · Score: 1

    (2n+1) + (2n+3) = 4n+4 = 4(n+1)

    Yep, genius alright. My IQ is 75 btw.

  24. Re:An Excellent Idea on Guild Wars Ramps Up To E3, Previewed Effusively · · Score: 3, Insightful

    Nitpick:

    Paying $10/month for 3 months is VERY different then paying $30/3 months. Proof:

    Let i = prevailing market interest rate (per month); let v = 1/(1+i), the amount you must invest now to get "1" back at the end of the month. Then the present value of each option:

    ($10/month for 3 months) = 10 + 10v + 10v^2
    ($30/3 months) = 30

    The only times these are equal is when

    10 + 10v + 10v^2 = 30

    v = -2, or v = 1. The only root that makes sense is "v=1", and solving for i, we get i = 0. Therefore the two options are only equivalent if there is no interest rate.

    To further illustrate, let's say you can get 2% interest per year in your savings account. This equates to (1+i)^12 = 1.02 -> i = 0.00165 (0.165% per month). Then, v = 0.998351, the PV of option#1($10/month) is PV = $29.9506 and the PV of option#2 is ($30/3 months) is PV=$30. The accumulated value at the end of 3 months for option#1 is $30.0992, and for option#2 is $30.1489.

    These numbers may seem small and insignifigant to you, but to the companies, $0.05 x 1 million customers = $50,000.

  25. Re:Wow! on Microsoft Releases Allegiance Game Source · · Score: 0, Funny

    Microsoft has not released the source code to Windows 2000.
    Microsoft has not released the source code to Microsoft Office 95, 97, 2000, XP.
    Microsoft has not released the source code to sol.exe.