Slashdot Mirror


User: Jeremy+Erwin

Jeremy+Erwin's activity in the archive.

Stories
0
Comments
5,006
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 5,006

  1. Re:Books: on Best Computer Books For The Smart · · Score: 2

    Secondly, I've never heard about a case where "using namespace std;" has really created more problems than it "solved". I guess I agree in principle, but in practice, it just makes life too fucking difficult, we have some real problems to solve as well, and can't constantly keep bickering with the everchanging C++ recommendations.


    vector means one thing in math and 3d graphics, and another thing in standard C++.

    I've recently run into (on a mailing list) a collision related to "dec". I'm not exactly sure, but I think both functions were used to format numerics for use in io. The old dec seems to have a different syntax.

    Possibly, "using namespace std" is "dangerous" because it promotes laziness.

  2. Re:http://www.oreilly.com/ on Best Computer Books For The Smart · · Score: 2

    Many O'Reilly are good, but some seem slapped together. That imprint is not the end all of computer publishing.

    For example,Addison Wesley publishes

    OpenGL Programming Guide
    C++ Primer (Lippman/Lajoie)
    C++ (Stroustrup)
    The C++ Standard Library (Josutis)
    AOCP (Knuth)
    LateX (Lamport)
    LaTeX Companion (Goossens/Mittelbach/Samarin)

    I'd say that both AW and O'Rielly have good editorial staffs-- but a book should be judged by its contents, not its imprint.

    (On the other hand, certain imprints are acquiring a bad rep. Usually they are distinguished by loud, slogan strewn covers-- and a bias towards Windows.
    see, for instance, Donald Knuth's Big Dummies Guide to Visual Basic)

  3. Re:Books: on Best Computer Books For The Smart · · Score: 2

    I found "C++ Primer" by Lippman and Lajoie to be far more readable than Stroustrup-- although I use both.

    C++ textbooks are notorious for inculcating bad habits in beginning programmers. Of course, some of that stems from lack of exposure to the standard C++ libraries.

    My biggest pet peeve: "using namespace std;" is not a magical incantation to be placed in every C++ file. Fine grain control of namespaces is something that C++ students should learn-- collisions are the cause of many a bug.

  4. Re:Coding books? why? on Best Computer Books For The Smart · · Score: 2

    This can be helpful, although I've found that 90 copies of the same linux howto don't neccesarily answer my questions. Mailing list archives, though, are often extremely helpful.

    People also tend to mirror the incomplete, and often not especially helpful Cocoa/NextStep documentation. I've found that even the (slapped together) book "Learning Cocoa" has more structure.

    Old books are useful for debugging and porting old code-- newer books often (and with good reason) give short shrift to deprecated/nonstandard/obsolete functions.

  5. Re:Has anyone tried to mirror the content yet? on How Italian Police Shut Down U.S. Web Servers · · Score: 2

    Alas, if you want to see pictures of "fucking the Virgin Mary" (as a literal translation of porcomadonna might have it, you're out of luck

  6. Re:Ar alternatively on Serious Home Observatories · · Score: 2

    Many amateur astronomers dream of discovering a new comet-- something that is impossible with a computer astronomy simulator.

  7. Re:Recipe on I'm Just Here for the Food · · Score: 2


    5. 177.45 cm3 crystalline C12H22O11
    6. 177.45 cm3 unrefined C12H22O11

    This is insufficiently precise. Which Disaccharide should I use?
    I don't have any sucrose, guess I'll try lactose. Maltose might also work....

  8. Re:Encryption protection prior art? on Liquid Audio Sues In Pitiful Attempt to Appear Relevant · · Score: 1, Offtopic

    Many years ago, I wanted to use a swiss ftp server to download something (Oberon, IIRC). My initial attempts to login with my email address were rebuffed with a statement that this server was intended for swiss residents. By appending .ch to my email address, however, I was able to secure entry.

  9. Re:Seems like a bad idea on Cameras in UK for Toll Enforcement · · Score: 2
    think about the holy hell that would get raised if you decided to charge a fee of $2500 a year to drive to Manhattan Island!

    Guess What? The Port Authority of New York And New Jersey charges, get this-- Tolls!. I know, I couldn't believe it either, but apparently, if you want to enter Manhattan, you'll have to pay a toll of $5. What the bridge trolls charge That's $1300 a year. BTW, at the current exchange rate of £1=1.56, £1300 is only worth $2024. Foreign Exchange Rates

  10. Re:Not ready for Server use on Seeking Power Mac Recommendations? · · Score: 2

    The xServe does not have a DVD recorder. It does not have CDR. It does not have external SCSI (although this could be added). Oops...

    On the other hand, you could use a firewire tape drive, or a backup server.

  11. MIB is a governemt agency on Review: Men In Black II · · Score: 2

    The Men in Black work for the Immigration and Naturalization Service. (INS, Division 6, if I recall correctly).

  12. Re:Oh yeah, like that's going to work on Isn't it Time for Metric Time? · · Score: 2

    3.12120...?? When did that happen?

    3.14159265358979323846264....

    This is also wrong
    I'll spell it out for you...

    Using the archaic base 0xA system, pi=3.14159265...

    Using the new improved base (b=pi)-- pi=10, and 0xA=2.0090464.

    It's saner to use base e. where 0xA is 2.30285.., pi=1.1461084... and there are 4.0943446 minutes in an hour.

    In the bible, it is written that pi=30/10. Since God is infallible, it follows that humans must learn to use an irrational base where b=(pi/3)...

    Together, we must learn to transcend the limitations of integer bases.

  13. Re:"beige box" job or a major brand AMD server? on Xserve Outperforms Sun, SGI, Windows · · Score: 2

    The warranty is $950 for three years. The default is 90 days support/1 year hardware. I did not include such things in my back of the envelope calculations.

  14. Re:"beige box" job or a major brand AMD server? on Xserve Outperforms Sun, SGI, Windows · · Score: 3

    Also, note that the Dell 1650 that performed so poorly had lots of expensive options

    2x 1.4 Ghz Pentium III
    1 GB Ram
    Windows 2000 Server
    3x36 GB Internal Raid (SCSI)
    Dell Perc 3/Di Disc Controller

    4638 dollars... (with no fancy options selected such as monitoring, rack rails, etc. No operating system: add 799 if you really want Windows 2000).
    The XServe was configured with
    2x 1GHz PowerPC G4
    1 GB Ram
    480 GB RAID (ATA drives, though)
    Total: 6049 dollars

    I'm not going to play the "you get so much more with the apple" game, though. If you reduce the drive complement to 3x60GB drives, though. (I'm assuming that the 480 GB complement was overkill, and did not affect the benchmark score)

    Total: 5099.

    Without an OS, the Dell Machine still beats the XServe (in price) while barely losing in performance. Add Windows 2000, and the Dell becomes more expensive ($5437). Add sufficient client licenses to fully replicate the benchmark situation, and the price climbs ever higher.

  15. A perl script on All Sourceforge.net Being Blocked by SmartFilter · · Score: 2

    #!/usr/bin/perl -w
    use LWP;
    $url= "http://www.securecomputing.com/cgi-bin/filter_whe reV301.cgi?new1=1&url_string1=sourceforge.net& amp;results_string1=MP3&category_request1=rm&a mp;url_request=Send+
    Request";
    $browser = LWP::UserAgent->new();
    $browser->agent("Mozilla/4 .5");
    for($i=0; $i<500; $i++){
    $webdoc = $browser->request(HTTP::Request->new(GET => $url));
    if($webdoc->is_success){
    print STDOUT $webdoc->title, "\n";
    }else{
    print STDERR "$0: couldn't fetch $url";
    }
    }

  16. Re:REQUEST REMOVAL!! on All Sourceforge.net Being Blocked by SmartFilter · · Score: 2

    All subdomains of sourceforge.net are also being filtered, so fink, expat, etc... are all listed as "MP3".

    So, a perl script might be needed to change all of these.

  17. Re:Oh, come on... on Moon Rock Winds Up In Court · · Score: 2
    To claim now, many years after the fact, that it's suddenly theft, is ludicrous.


    The National Gallery of Art is funded and controlled by the US Governments. Suppose that the current president decided to reward the political loyalty of a peon (say, Karl Rove), by expropriating a minor, but still valuable work to give to him as a present. Suppose that Karl Rove subsequently kept that artwork for twenty-five years, and sold it in a financially shady deal to someone in Honduras. A subsequent US government, upon learning that a missing artwork had turned up on the market in Honduras, might very well want it back...

  18. Re:Oh, come on... on Moon Rock Winds Up In Court · · Score: 5, Informative

    Furthermore, the rock, if stolen, should be returned. The United States can do a lot more with it (scientific research, etc) than some Honduras collector.

    Actually, the US wants it returned to Honduras. The US government presented it as "a goodwill gift", but the moon rock was somehow misappropriated. Even if the then reigning dictator gave it to the "colonel" who sold it to Alan Rosen, that initial transfer was illicit-- since it belongs to the "Honduran people".

    The fact that it was used as a diplomatic gift might be an indication of samples's lack of diplomatic value. Or it might be an indication of NASA's subordination of science to politics...

  19. Is this new on Microsoft Media Player "Security Patch" Changes EULA Big Time · · Score: 2

    I'm not that familiar with Windows Media Player licenses, but the line about security upgrades might well be present in previous versions. It doesn't seem to be in the license for the mac client (7.3)

  20. Re:Bring your MP3's to work on CD-Rom... on Cracking Down on MP3s at the Office · · Score: 2

    I think it was Bush II. I don't remember the details, and don't wish to pay the USNR archive fee.

  21. Re:Bring your MP3's to work on CD-Rom... on Cracking Down on MP3s at the Office · · Score: 3, Interesting

    US New & World Report recently reported (17 June 2002) that the Secret Service used to show Porn movies in their break room at the White House during the night shift. They even posted a lookout to watch if a female agent was passing by.

    And, of course, security camera operators may indulge certain voyeuristic pastimes.

  22. Register "Fry an egg" reference on Two Directions for the Future of Supercomputing · · Score: 2
  23. Re:visit interesting places then blow them up. on Two Directions for the Future of Supercomputing · · Score: 2

    The ASCI supercomputers simulate nuclear explosions because testing a real nuclear weapon are forbidden by the Comprehensive Test Ban Treaty. For various reasons, maintaining a nuclear stockpile requires a certain amount of testing-- either for safety or to ensure that such weapons actually work-- duds apparently reduce deterrent value. Thus the ASCI project.

    If there was no nuclear stockpile to maintain, Los Alamos probably would not be host to the "world's fastest supercomputers." Not exactly a fair trade...

  24. Re:I found... on 200-Gigaflop Mac Cluster · · Score: 4, Informative

    If you shine light through a crystal, it is diffracted in a specific manner that can be corollated with the internal structure of that crystal. Shining X-Rays through crystallized protein will similarly produce a diffraction pattern that can be used to determine the three dimensional structure of that protein.

    A stereo video card is a system that can present different video images to the left and right eye of the user, producing an illusion of depth. I would imagine that this would be very helpful in visualizing three dimensional protein structure.

  25. Re:Apples and Oranges on Inside The World's Most Advanced Computer · · Score: 3, Interesting

    Specialization? What specialization? The Top500 rankings are based on LinPack-- a software package for solving dense systems of linear equations-- which seems applicable to a fairly general set of scientific problems.

    Do supercomputing manufacturers cheat on benchmarks? I don't know. Presumably it would be a rather expensive proposition-- and since supercomputing sites will benchmark with a variety of specialized and general purpose libraries, it seems unlikely to work.

    There, are, of course, differences between weather simulations and galactic evolution simulations. But field specific benchmarks are inappropriate for a site like Top500--the whole point of the site is to allow someone to analyse gross trends. "This memory architecture once dominated the rankings--now its used by only a few entries. Perhaps our next computer platform shouldn't be based on that architecture." (and possibly writing journal articles about it.)

    In addition, general purpose supercomputing sites are relatively common.