Slashdot Mirror


User: MenTaLguY

MenTaLguY's activity in the archive.

Stories
0
Comments
1,497
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 1,497

  1. crud, #5 fails for x == 0 on LinuxDVD CSS Decrypt - Source Available · · Score: 2

    I tried to cut too many corners. :/

    It should be:

    static int _sxp1(int x, int r) {
    return ( r > 0 ) ? ( x + _sxp1(x, r - 1) ) : 1;
    }

    Berlin-- http://www.berlin-consortium.org

  2. better example on LinuxDVD CSS Decrypt - Source Available · · Score: 2

    Here are several different implementations of the squarexplusone() function (sxp1, for brevity) -- note that I assume x >= 0:

    implementation 1 (duh):

    int sxp1(int x) {
    return x * x + 1;
    }

    implementation 2 (obvious, if inefficient):

    #include "math.h"

    int sxp1(int x) {
    return (int)rint(pow(x, 2)) + 1;
    }

    implementation 3 (the same, but more evil):

    #include "math.h"

    int sxp1(int x) {
    return (int)rint(exp(2*log(x))) + 1;
    }

    implementation 4 (eschew multiplication):

    int sxp1(int x) {
    int r, sum;
    for ( sum = r = x ; r > 1 ; r-- ) {
    sum += x;
    }
    return sum + 1;
    }

    implementation 5 (same thing ... scheme, anyone?):

    static int _sxp1(int x, int r) {
    return r ? ( x + _sxp1(x, r - 1) ) : 1;
    }

    int sxp1(int x) {
    return x + _sxp1(x, x - 1);
    }

    I could go on, but I think I'm having more fun than is good for me...

    Berlin-- http://www.berlin-consortium.org

  3. Viability of elliptic curves on Interrogate Crypto Luminary Bruce Schneier · · Score: 2

    Unfortunately, they won't be practical for widespread use for another 10-20 years, when the patents encumbering them expire.
    Berlin-- http://www.berlin-consortium.org

  4. oh? on Glow-in-the-dark Christmas Trees · · Score: 1

    On the other hand, a grove of carniverous christmas trees just doesn't have a big scare factor.

    Oh really? Maybe that's just because you've never been CHRISTMAS TREE HUNTING at NIGHT when it's DARK and COLD, surrounded by HORDES of FLESH-EATING needley CONIFERS!?!

    * Something brushes your shoulder.

    * You turn around. There's nothing there. Just you and the trees.

    * Just you and the trees.

    * Odd, the forest is becoming strangely dense ahead.

    * You try to push through. Not much luck. Your efforts are rewarded by a frosty slap in the face from a protruding branch.

    * Hrm. Better try backing out and going around.

    * ... huh... it wasn't this tight a squeeze going in...

    * Gah! Blocked this way too...

    * You feel pine needles against your back as you start to back up.

    * You look up. The lofty pines arch overhead, completely hiding the sky from view. You see nothing but trees.

    * They seem to be closing in around you.

    * You see nothing but trees.




    * Just you and the trees.




    BWAHAHAHAHAHAHAHAHAHAHAHH*?^#@(*&$^(*#@&^$#@

    *twitch*


    Berlin-- http://www.berlin-consortium.org
  5. I don't really get it either. on Onward, Christian Geeks · · Score: 1

    If I didn't know better, I'd just say this was Katz displaying a pathological hatred of Christianity. Christophobia, anyone?

    OTOH, this may just be me displaying a pathological distrust of Katz's motives ... Katzophobia?
    Berlin-- http://www.berlin-consortium.org

  6. Re:Will Mozilla have... on Two Interesting Mozilla Articles · · Score: 2

    Will Mozilla have the ability to use the "View Source" command and edit, copy, paste, etc. the source which is being viewed? Yes, this functionality is already present in M10.
    Berlin-- http://www.berlin-consortium.org

  7. Re:Monsanto has this right. on Monsanto Agrees Not to Sell "Terminator" Seeds · · Score: 2

    I agree with Monsanto in this. Since they have spent millions creating a seed variation, they now "own" that variation. If the farmer doesn't like it, then don't use the variation. Don't believe the hype that the farmer is some starving hick. Most farmers are large conglomerates earning millions every year.

    Replace "seed" with "software", and "farmer" with "customer". Do you still feel the same way?

    (Incedentally, most farmers are not large conglomerates; the world is a lot bigger than just your United States, you know ... yes, Virginia, there really IS a "third world"... and note that it was at the poor individual farmers that Monsanto was explicitly targeting these products)


    Berlin-- http://www.berlin-consortium.org
  8. Changing your MAC address under Linux on Where's All The Outrage About The IPv6 Privacy? · · Score: 2

    You can give a MAC address as a parameter to ifconfig(8).

    Linux should allow you to change your MAC address even if your NIC was not designed to allow it.

    On cards that don't support changing the address, Linux puts the card in promiscuous mode, drops incoming frames not addressed to the particular MAC, and spoofs the MAC on outgoing frames. Quite a neat solution.


    Berlin-- http://www.berlin-consortium.org
  9. Uh, I suppose. on QNX OS on a floppy · · Score: 2

    WHERE'S THE RECIPE FOR THIS BURGER ??? AND THESE FRIES !??? WHICH CANOLA OIL DID YOU USE TO FRY THEM !??? WHERE'S THE SOURCE TO THE CASH REGISTER APP !?? I WANT TO CHECK THE SOURCE TO MAKE SURE I GOT MY BILL RIGHT ??!??? DAAAAAAAAAAAMN YOU AAAAAAAAAAALLLLLLL !!!!!!!!

    Having worked at Burger King one summer[1], I can tell you that we actually are supposed to let people know these things if they ask. Well, except for the cash register system; that isn't really our problem[2] (although your bill is).

    We did get asked occasionally (twice, I think), too. Some people have food allergies, and these folks were probably saved a potentially fatal reaction.

    Maybe you could have picked a better example for something that would be stupid to open source?

    [1] Lest you be left with the impression us open-source zealots are unemployable losers flipping burgers, I now work as a programmer for a major defense contractor, making a lot more money. Oh yes, we've contributed at times to some of the Free Software we use, too.

    [2] When I worked there, most locations ran a proprietary POS app on MSDOS 6.2. The registers were 386s on a 10Mbit LAN, and a desktop machine in the manager's office with a modem link to the "home office".


    Berlin-- http://www.berlin-consortium.org
  10. tsk, tsk... on QNX OS on a floppy · · Score: 1

    Academia wants to justify the research time they've spent on these things, so they've come up with various ways of speeding them up. However, all the methods they suggest could equally well apply to monolithic kernels, still making them the faster choice.

    ... quoting Linus almost verbatim without citing him?


    Berlin-- http://www.berlin-consortium.org
  11. D-A-L-E-K-S on K8 Details · · Score: 1

    No H. "Dalek" is an anagram of "Kaled", remember.

    I liked the fourth doctor (Baker #1) best, myself. Most of the time. Pertwee was cool in his own way, though, if maybe a bit... dunno.
    Berlin-- http://www.berlin-consortium.org

  12. Output of GPLed programs on Toward a Better Open Source License · · Score: 2

    The output of GPLed programs does not fall under the GPL, unless that output contains parts of the program itself (in translated or untranslated from; in other words, only those things that would constitute a "derived work").

    In any case, this bit is only an issue for parser generators like bison and so forth, and IIRC, bison's license makes specific exceptions for this case.


    Berlin-- http://www.berlin-consortium.org
  13. X on NeXT on Overview of Linux on Macintosh Hardware · · Score: 2

    I've been told that there's an old DPS wrapper library floating around that should function as a drop-in replacement for Xlib.

    Berlin-- http://www.berlin-consortium.org

  14. yes, they have. on Red Hat Releases 2nd Quarter Financials · · Score: 2

    has the RedHat corp. EVER had even one single profitable quarter?

    If you look at their SEC filing, two of the five quarters listed therein were profitable. In fact, right now revenues have been going up considerably too. "So, where's all that money going, then?" you ask...

    Expansion. They're sinking a lot of it in expansion right now. Go read some of the news items regarding them in the past few months. Think of it as them taking out a loan from themselves to make an investment in their own future.

    I think you may also find this comment educational: Re:Economics question.


    Berlin-- http://www.berlin-consortium.org
  15. Ennnhh... on WinLinux 2000 · · Score: 2

    Anyone that has half a brain and has used any "real" Unix OSs knows where Linux stands. Come on people, we've all used it and seen what it can do. It's not a religion and it's not even that good.

    Granted, the hype isn't that cool, and it's certainly not worthy of being a religion, but don't sell GNU/Linux short, either. As someone with at least half a brain (as evidenced by the existence of this post) who works daily with the real Unix OSes, I'd have to say that in general the GNU tools are significantly better than their "native" counterparts. Things like chmod -R a+X somedir/ (a+X, not a+x) and cp -Rdp foo/ bar/ come to mind. The main shortcoming has been lack of ACL support, and some features of sort(1) and uniq(1).

    With regard to the Linux kernel itself, the only shortcomings I've found there have been some low-level aspects of the SCSI subsystem and lack of proper LVM (although you can still do LVMy things in a pinch). (Most of the rest of my complaints have been addressed in 2.2 and 2.3) Otherwise, in most ways it seems to be superior to the proprietary Unix kernels from a functionality standpoint. I still can't mount Joilet CDs under HP-UX, dammit...

    Documentation and many of the third-party tools are a real mixed bag, though. Documentation in most areas is unquestionably worse in Linux, while XFree86 (the S3 server) is considerably more stable and featureful than the X server on the HP-UX 10.20 box sitting on my desk. Most Linux distros also come with loads of very useful little tools that don't ship with most real Unix systems, except the *BSDs.


    Berlin-- http://www.berlin-consortium.org
  16. hmm... on GNUstep 0.6.0 · · Score: 1

    > yeah but, what is the velocity of a south bound swallow ??!! European or African?
    Berlin-- http://www.berlin-consortium.org

  17. heh. on Human Brain seems to procceses image data serially · · Score: 1

    For example (assuming a guy audience), can you talk with someone while you're watching the TV? I can't. Most women can.

    I know, and it drives me bloody insane!


    Berlin-- http://www.berlin-consortium.org
  18. "Taking over"? on Interview with Gimp Maintainer · · Score: 2

    I really don't see that in terms of the project being "taken over". It's just another set of users who need specific features in a free software project and are helping to implement them.

    It's not as if they're taking away from other areas, because if they weren't doing these things they likely wouldn't be contributing at all.

    Again, I can't see how it's anything but a win/win situation. Free Software development is not a zero-sum game.
    Berlin-- http://www.berlin-consortium.org

  19. Maybe you should actually try paying attention? on Mozilla Picks Up Third Party IRC and RT Messaging · · Score: 2

    Does this mean they'll have to rm -rf their entire existing code? Yes.

    Uh, no. They've already done just that a long time ago -- that's where we got Gecko. The current Mozilla is pretty much just a bunch of shared library files, so you can add and remove the modules you want by adding and deleting files to the directory. It is HEAVILY componentized. XPCOM/CORBA and all that. No mucking with source at all to add and remove features. If you don't want the editor, delete the editor files. I'm certain when Mozilla reaches beta someone will make a "distribution" of it with everything but the browser stuff stripped out. If not, you can just delete the files yourself.

    For a more complete explanation, see the indicated Anonymous Comment. (not by me)

    Oh, and by the way... the current footprint is ~2.5MB with the editor and browser and everything; memory usage is also decreasing nicely now that they've started paying attention to optimisation.

    Grrr... I'm tired of people spreading FUD about Mozilla when all of their information is plainly hearsay. Try reading the status page regularly. Or maybe you'd find MozillaZine more palatable.


    Berlin-- http://www.berlin-consortium.org
  20. AAUGH! on Mozilla Picks Up Third Party IRC and RT Messaging · · Score: 2

    It's NOT one huge binary!
    Berlin-- http://www.berlin-consortium.org

  21. ...absolutely not! on SuSE and Siemens Release Linux Memory Extension · · Score: 2

    Part of the FreeBSD kernel are actually under GNU...

    Most certainly not!


    Berlin-- http://www.berlin-consortium.org
  22. Um, not that hard at all... on Mozilla Picks Up Third Party IRC and RT Messaging · · Score: 3

    There's a directory with all the .sos for the various modules; just add and delete them at your leisure. I believe they're demand-loaded, too.

    Berlin-- http://www.berlin-consortium.org

  23. yes. on Mozilla Picks Up Third Party IRC and RT Messaging · · Score: 2

    The entire thing is basically modular. There's a directory with all the .sos for the different components.
    Berlin-- http://www.berlin-consortium.org

  24. ... they ARE plugins on Mozilla Picks Up Third Party IRC and RT Messaging · · Score: 2

    ALL of the Mozilla components are optional and replacable, dependencies aside.
    Berlin-- http://www.berlin-consortium.org

  25. "true Xians" on 'Citizenship' not Censorship · · Score: 3

    Stalin was a priest. You forgot Hitler -- Hitler and the Nazis followed an Aryan-Christian-Mythology; not atheists. Of course, people like you will say "they weren't true Christians" or some shit like that

    I dunno, that might make sense, considering that faithful Christians were among the people they explicitly targeted for extermination, as they wouldn't cooperate with the regime.

    As for the crusades, yes, those were just an unmitigated mess. Those and the Inquisition are very good examples of why Theocracy is bad -- not just from a political standpoint, but also from a religious standpoint. It corrupts both the state and the religion.

    We can argue about whether or not the people involved were "true christians" without any sort of satisfactory resolution, but if you can call them Christians, they certainly were ignoring some rather important moral principles of their faith.


    Berlin-- http://www.berlin-consortium.org