Slashdot Mirror


User: maxwell+demon

maxwell+demon's activity in the archive.

Stories
0
Comments
12,279
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 12,279

  1. Re:Yes on Can an Open Source Project Be Acquired? · · Score: 2, Insightful

    And if you are a developer using other OSS for your development, you're also secure because OSS licenses cannot be terminated, except by violating them.

  2. Re:_Doh_! RMS wrote emacs on RMS Weighs in on BitKeeper Debacle · · Score: 2, Funny

    Nah, EMACS = Escape Meta Alt Control Shift

  3. Re:A question for RMS on RMS Weighs in on BitKeeper Debacle · · Score: 1

    GNU/t, of course!

  4. Re:OS/2 Ahh the memories on Petition To Get OS/2 Open Source · · Score: 1
    It's called arbeitsordner in the English version, too.

    The same German word? Interesting.

    We could never figure out what the hell it was supposed to be.

    "Arbeitsordner" literally translates to "work folder". It was basically a folder with session management. If you closed it, it automatically closed all files/programs you opened from it (but only those), and re-opened them the next time you opened the folder. Actually the desktop itself was an Arbeitsordner as well. I guess the app had to implement some API for this, because it didn't always work perfectly. But I still consider it a great idea, much better than the usual session management which always has to cover the complete desktop (and in my experience usually doesn't work perfectly either).
  5. Re:RMS effect...? on Petition To Get OS/2 Open Source · · Score: 1

    Of course it will have to be named GNU/2 (remember, the GNU comes first!)

  6. Re:OS/2 Ahh the memories on Petition To Get OS/2 Open Source · · Score: 4, Informative

    Well, according to their web page, the ReactOS people actually plan an OS/2 subsystem. Therefore if IBM released the part of the OS/2 code which they can, it would probably be a big help.

    BTW, if the OS/2 kernel code is too encumbered, even releasing the WPS alone could be a great thing. While it certainly lacked some features which modern desktops have, it had some other features which AFAIK are still not available on other systems (e.g. what was called "Arbeitsordner" in the German version; essentially a folder which managed its own "sub-session").

  7. Re:finally some sense. on French Courts Ban DRM on DVDs · · Score: 4, Funny

    Now would be a good time to rename Freedom Fries back to French Fries ;-)

  8. Re:Man, I hope they don't patent... on BountyQuest CEO Patenting Lighting Toilet Water · · Score: 1

    I guess Slashdot would provide heaps of prior art for that!

  9. Re:Good idea, it will make them less fat on Will America's Favorite Technology Go Dark? · · Score: 1

    Or maybe they'll compensate their frustration with more eating ...

  10. Re:Force users to remember? on Enforcing Crytographically Strong Passwords · · Score: 1
    Today, cryptographically strong means : with lower and upper case letters, with numbers and special characters, and long enough (at least 16 characters).

    How the f*** do you want someone to remember that kind of password


    Well, the following password is cryptographically strong, according to the above definition, but nevertheless easy to remember:

    AAAAaaaa1111....

    SCNR ;-)
  11. Re:Passwords are so out of date! on Enforcing Crytographically Strong Passwords · · Score: 1

    Computer: "What is the airspeed velocity of an unloaden swallow?"
    Intruder: "African or European?"
    Computer: "I don't know! Argh!"
    (Computer crashes)

  12. Re:10 GOTO 10 on Aspect-Oriented Programming Considered Harmful · · Score: 1

    Well, real fun is if GOTO can go to a computed line number. And when I say "computed" I don't mean selecting from a list of line numbers given as an explicit list in the source code. The ZX Spectrum for example IIRC allowed code like the following:

    10 PRINT "Please enter line number to continue at."
    20 INPUT a
    30 GO TO a

  13. Re:I like GOTO! on Aspect-Oriented Programming Considered Harmful · · Score: 3, Informative
    Callbacks are everywhere in C++ although these days they are often function objects instead of function pointers

    Great! I am looking for an example.

    Ok, here you go:
    #include <vector>
    #include <iterator>
    #include <algorithm>
    #include <iostream>
    #include <cmath>

    bool is_negative(double x) { return x < 0; }

    int main()
    {
    std::vector<double> v;

    // read numbers from standard input
    std::copy(std::istream_iterator<double>(std::cin),
    std::istream_iterator<double>(),
    std::back_inserter(v));
    // those iterators are actually callbacks packed into an iterator interface:
    // istream_iterator encapsulates the input operator on streams,
    // back_insert_iterator (the iterator which the function back_inserter
    // returns) encapsulates a callback to a container's push_back member function

    // replace all negative numbers with zero
    std::replace_if(v.begin(), v.end(), is_negative, 0.0);
    // is_negative is of course a classic callback (alternatively,
    // a function object obtained by binding the second argument
    // of std::less<double> to 0.0 could have been used)

    // calculate square_roots
    std::transform(v.begin(), v.end(), std::sqrt);
    // and here we have a classic callback to std::sqrt

    // sort from largest to smallest
    std::sort(v.begin(), v.end(), std::greater<double>);
    // std::greater<T> is a function object which just encapsulates
    // the greater than operator

    // output the results
    std::copy(v.begin(), v.end(),
    std::ostream_iterator<double>(std::cout);
    // the ostream_iterator again is just a callback to stream output,
    // encapsulated in an iterator interface
    }
    All standard C++, using the C++ standard library. And also it's all genuine C++ code, not just C code moved to C++.

    Show me code how to assign callbacks.

    I don't know what it gives you, but here you are:
    callback = f;
    I'm of course assuming that callback and f are of compatible types.

    These example should be pure OO.

    Why? If you haven't yet found out, C++ is not a pure object-oriented language, but a multi-paradigm language. The code I've shown actually uses generic programming (ok, it just scratches at the surface of GP, since it only uses the STL algorithms, but doesn't define one on it's own).

    But then, if you want a typical OO version of callback, just look up the observer pattern. (And no, I'm not going to show that here as well, it's already hard enough to get the above code through Slashdot's lame[ness] filter!)

    NO C global functions. (Every function is part of some object.)

    Well, in the example above, I've had only 3 C global functions: is_negative (but this would probably be better done with standard function objects and binding anyway), std::sqrt (the standard library just has this as function, but it could be encapsulated as object as well), and main (whiuch you just cannot avoid in C++ anyway). The rest are either function templates or objects (which is typical for generic programming).
  14. Re:Unbelievable on Microsoft's New Mantra - It Just Works · · Score: 2, Funny

    Ok, so they did not only steal from Xerox, but they also bribed Xerox to not complain about it. Shame on them! :-)

  15. Re:Believable on Microsoft's New Mantra - It Just Works · · Score: 1
    Apple: Proudly going out of business since 1984

    See, they don't even manage to do that! :-)
  16. Re:I'm forwarding this story... on Moore's Law Original Issue Found · · Score: 1
    tell her to idle down, your stuff is your stuff.

    Well, I guess his problem is that he'd like her to stay his fiancee ...
  17. Re:Why, exactly... on Opera's CEO to Swim From Norway to the USA · · Score: 5, Insightful
    Can anyone tell me why, exactly, the "direct link" to download Opera from Slashdot points to the Windows version ?

    Because this gives a lot of posters getting positive moderation by pointing out this fact, giving a link to the general download page (the latter is almost guaranteed to get +5 Informative) or maybe even by making fun of it.
  18. Re:Double standards on Librarians Fighting to Save Moore's Law Issue · · Score: 1

    It's OK to go into the library and copy the article. Hey, most libraries even put machines there exactly for that purpose!

    Of course removing the original is bad. It's bad because it removes from others the possibility to access the information.

    Think about it: Would you say going into a museum and making photos of the painting is morally the same as going into a museum and taking the paintings themselves?

  19. Re:Ebay Copy For Sale on Librarians Fighting to Save Moore's Law Issue · · Score: 1
    what good would a PDF file be then huh ?

    Well, it's easier to make printed copies of a pdf file (just send it to the printer) than it is to make copies of the actual magazine articles (moreover, unlike the magazine, the pdfs don't get worse by the procedure). So if it were just the preserving of information, making several printouts from a pdf file and keeping them at different places (in addition to decentralized backups of the file itself) would be the more effective strategy.

    But of course the point here is not the information, it's the original magazine. For which of course the pdf cannot be a replacement because it's just not the real thing.
  20. Re:What about aging? on Human Hibernation on the Horizon? · · Score: 2, Interesting

    Even if it's of no use for long-distance space travel, I think this would be still useful for shorter-distance space travel (say, to Mars). After all, it means you have to transport less food and water, and I think a slower metabolic rate also means that the effects of microgravity (like weakening of the bones) are slowed down.

  21. Re:Don't bring your towel on BBC Reviews Hitchhiker's Guide to the Galaxy · · Score: 1

    Quite the reveerse. Besides the fact that you should always have your towel with you, the usefulness of a towel is especially demonstrated in the cinema. If the film is so bad that you cannot bear to see it, you can bind the towel over your eyes. OTOH should you find out that the film is so funny that you laugh tears ... well, I guess you know what the towel is good for in that situation.

  22. Re:Fun Game! on BBC Reviews Hitchhiker's Guide to the Galaxy · · Score: 2, Funny
    On the other hand, I'd really like to go see "Oracle 8.5 The Complete Reference", especially if it was in Mandarin with subs.

    Well, that's nothing like the upcoming Slashdot movie.

    *** SPOILER WARNING ***

    The Slashdot movie begins with citing Star Trek, of course with some errors both in pronounciation (to mimic spelling errors) and in content. That is, it begins with:

    "Whitespace, the final frontier. This are the voyages oof the start script Enterprise. It's five-year emission: to explode strange new words, to peek out new livestreams and new customizations, to boldly click where no man has clicked before!"

    Next will be a short scene, where a troll calls "First Post!", and someone else answers "Sorry, you missed it!" A voice from the off: "-1 Offtopic!"

    Then there's a cut to some person you cannot see clearly. There's a text shown on the lower part of the screen: "Anonymous Coward. Score: +3, Insightful." He tells you "The last frontier? Are people really having so many problems with their space bar?"

    Ok, I think I'll spare you the rest of the film.
  23. Re:If you can't beat them... on Microsoft to Support Linux in Virtual Server · · Score: 2, Informative

    Imagine a beowulf cluster of virtual Linux servers ... all running on the same physical Windows server! ;-)

  24. Re:im confused on EU Rapporteur Publishes Software Patent · · Score: 3, Funny

    How tightly is "controlling the forces of nature" defined? After all, one could argue that controlling the flow of electrons in a microchip (which software obviously does when you run it on a normal computer) would also be controlling the (electromagnetic) forces of nature.

  25. Re:Why JavaScript? on Google Adds Search History Feature · · Score: 1

    Ok, so when I press the mouse button (should give an onMouseDown event, right?), but then move the mouse away before releasing it (which causes the link not to be clicked), Google will assume I've gone to the page?