Slashdot Mirror


User: dronkert

dronkert's activity in the archive.

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

Comments · 43

  1. Reminds me of a certain German saying: on Google Releases FCC Report On Street View Probe · · Score: 1

    "Wir haben es nicht gewusst!" (orig.: after 1945)

  2. Jean-Louis Gassée? on iTunes' Windows Problem · · Score: 1

    Ah, BeOS. *sniff*

  3. Re:Oblig on Student Expelled From Indiana High School For Tweeting Profanity · · Score: 1
  4. Cisco Ironport spam numbers on China Cleans Up Spam Problem · · Score: 1
  5. Re:And how much costee? on Dropbox 1.0 Finally Released · · Score: 1

    50 GB for $9.99/month or $99.00/year, 100 GB for $19.99/month or $199.00/year. Get an extra 250 MB for every friend referral (also on free accounts and friend gets it, too).

  6. The Big Picture on Advent Calendar For Geeks · · Score: 1

    has its Hubble Space Telescope advent calendar for the third year, with RSS feed.

  7. DARPA seems interested in THz lasers on Highly Directional Terahertz Laser Demonstrated · · Score: 1
  8. Simulation gives around 0.4615 on The Tuesday Birthday Problem · · Score: 1

    #include <stdlib.h>  /* random() */
    #include <stdio.h>   /* printf() */
    #include <time.h>    /* time()   */
    #include <math.h>    /* floor()  */

    #define RANDMAX1 2147483648  /* 2**31 = RAND_MAX + 1 for random() */
    #define SIMS 1000000000      /* number of simulations */
    #define SEXS 2
    #define DAYS 7
    enum Sex {GIRL, BOY};
    enum Day {MON, TUE, WED, THU, FRI, SAT, SUN};

    double drand(void);          /* generate random number 0 <= x < 1  */

    int main (int argc, const char * argv[]) {
        int sim, i, n, k, boy, hit, sex, day;

        /* system init */
        srandom((unsigned)time(NULL));
        n = 0;
        k = 0;

        /* simulations loop */
        for (sim = 1; sim <= SIMS; ++sim) {

            boy = 0;
            hit = 0;
            for (i = 0; i < 2; ++i) {
                sex = (int)floor(drand() * SEXS);
                day = (int)floor(drand() * DAYS);
                boy += sex;
                if (sex == BOY && day == TUE)
                    ++hit;
            }

            if (hit == 1) {    /* Not both boys born on a Tue */
                ++n;
                if (boy == 2)  /* Is the other one a boy as well? */
                    ++k;
            }

            /* output */
            if (!(sim % 100000000))
                printf("%i: %i / %i = %lf\n", sim, k, n, (double)k/(double)n);
        }

        return 0;
    }

    double drand(void) {
        return ((double)random() / ((double)RANDMAX1));
    }

  9. Re:Avira on What Free Antivirus Do You Install On Windows? · · Score: 1

    Me, too.

  10. Re:Metric Everywhere on Astronauts Having Trouble With Tranquility Module · · Score: 2, Insightful

    Funny as always. Still, 3 l in a two-liter bottle?

  11. Re:well god dammit on Ireland's Blasphemy Law Goes Into Effect · · Score: 5, Funny

    Yes. Also, a google image search for "jesus fucking christ" is instructive.

  12. Re:Prof says: paper and pencil on How To Enter Equations Quickly In Class? · · Score: 1

    Ah well, not very nice. Please disregard.

  13. Re:Prof says: paper and pencil on How To Enter Equations Quickly In Class? · · Score: 1

    Somehow you come over as not (quite) a university student.

  14. Different titles in USA and UK? on Artificial Ethics · · Score: 1

    USA: "Artificial Ethics: Moral Conscience, Awareness and Consciencousness" (amazon.com)
    UK: "Artificial Beings: The Conscience of a Conscious Machine" (amazon.co.uk)

    Same ISBN-10 and ISBN-13 number.

  15. Re:Perl script is unnecessary on February 13th, UNIX Time Will Reach 1234567890 · · Score: 1

    date -r 1234567890 does it for me.

  16. Re:Who has a Wikipedia account with editing rights on Man Robs Convenience Stores With Klingon "Batleth" · · Score: 1

    Dudes, I know. I thought the over-the-top part "with editing rights" gave it away. Next time I'll use smilies again.

  17. Who has a Wikipedia account with editing rights? on Man Robs Convenience Stores With Klingon "Batleth" · · Score: 2, Funny
  18. Re:Languages other than English? on OpenSUSE 11.1 License Changes Examined · · Score: 0

    Har har.

  19. Re:Languages other than English? on OpenSUSE 11.1 License Changes Examined · · Score: 1
    You forgot:
    • English (Netherlands, The)
  20. Re:Dumbest ask slashdot answer ever.. on Best Paradigm For a First Programming Course? · · Score: 2, Interesting

    How about: it's like learning to ride a bike by descending Alpe d'Huez. Talk about a crash course!

  21. Re:Longest hex word on Unix Dict/grep Solves Left-Side-of-Keyboard Puzzle · · Score: 1

    Eight: Fabaceae, a plant family (legumes).

  22. Re:Misleading summary on Unix Dict/grep Solves Left-Side-of-Keyboard Puzzle · · Score: 1

    Darwin 9.5.1

    New MB(P)? Because with all updates I'm still on 9.5.0.

  23. Mac too on ITunes 8 a Real Killer App; Taking Down Vista · · Score: 1

    It crashed my iMac twice, also with iPod attached. Not sure about the exact steps to replicate, both crashes happened not immediately but after a while.

  24. Here's a reason to switch on Level of IPv6 Usage Is Vanishingly Small · · Score: 2

    Some enlightened parties are providing free porn, music and warez over ipv6. That should draw the crowds! Binary news servers newszilla6.xs4all.nl and news.ipv6.eweka.nl are both freely accessible over ipv6.

  25. Re:Astronomy and theoretical physics on Book Recommendations For Maths To Astrophysics? · · Score: 1

    Prof. 't Hooft

    Ah yes! In a distant past I got a perfect score for his Lie Groups course. Alas, it was a once in a student-lifetime experience for me.

    Sorry, carry on.