Slashdot Mirror


User: sir99

sir99's activity in the archive.

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

Comments · 277

  1. Re:Writing code (not typing it) is *hard* on Are Written Computer Science Exams a Fair Measure? · · Score: 1
    I have never ONCE had to write a linked list ...mainly because I have a set of reliable containers available via the STL.
    I recently had reason to write my own linked list in place of the STL list. Why? Because profiling my program showed me that about 80 percent of the cpu time was being used allocating and deallocating list nodes, one at a time.

    Now, I could have written an allocator to use pooled memory, which would have improved things a lot. But I figured if I was going to do all that work, I might as well do one better, and write my own list with special memory management. I made it preallocate and create a bunch of lists, so that whenever a list was needed, it just grabbed a complete list from the pool, and when a list was freed it was put back into the pool. The best thing about this was that the pool was a stack, so the list that was grabbed from the pool had probably already been used, and thus was already an appropriate size. Furthermore, no extra linking needed to be done, just a couple twiddled pointers per list.

    It was a pain in the ass, but well worth it; the program had a speedup of about 2.5x.

  2. Re:Not quite on A Web Browser in Your BIOS? · · Score: 1

    Yeah, PCI modems work fine under Linux too. My USR something or other is detected and runs on /dev/ttyS4, which would be com5 in winders. As far as Linux is concerned, it's just another serial port.

  3. Re:Give it a rest on Visual Studio .Net: Now with more Viruses · · Score: 1

    Yes. Absolutely. They would get hundreds (thousands?) of submissions and post it without a second thought.

  4. Re:I think it's great. on First Reviews of Mozilla 1.0 Roll In · · Score: 1
    I've come within inches of writing a wrapper shell script that checks for an instance of Mozilla already running so it doesn't start a second.


    Mozilla comes with a shell script that does just this. Just make sure to run "mozilla" instead of "mozilla-bin." Or use the -remote option, looking at the script.
  5. Re:Noise can be good sometimes. on Noise Control Stealth Tower · · Score: 1

    "I've found the noise from the Athlon 1800+ in my bedroom to be quite soothing.... It turned out after 1 week of shutting it down...that I actually had a harder time getting to sleep, and often woke up in the middle of the night."

    Are you sure your room wasn't just getting too cold with the computer turned off?

  6. Re:I love firewalls. on Pardon, Is This Your File? · · Score: 1
    The reason? Because many of us don't have static IP addresses. [I'm on Comcast]. I can't reverse-lookup or even ping my pc.


    Morpheus/GNutella/etc neatly eliminate that problem.


    So does dyndns.org.
  7. Re:God Forbid... on MSIE Uber-patch Of The Month · · Score: 1

    An often neglected concept in slashdot (besides spelling or grammar): there are many people here, with many different opinions, making it appear that the "community" is hypocritical. Or else the people he thinks are hypocrits are just trolling.

  8. Re:yet another ROOT hole in MS Code? on Microsoft's Goal, Security Through Obscurity? · · Score: 1
    Processes on Windows NT run in "Rings".

    That has nothing to do with what account it's running under though. x86 has 4 rings: 0 through 3. The Core OS runs in ring 0, drivers might run in ring 1 or 2, regular programs run in ring 3, no matter who's running them. Linux uses the rings on x86 too. Everything runs in either ring 0 or 3 IIRC. Even root's processes still run in ring 3.
  9. Re:that extra second. on Attack of the Clones Cut in UK · · Score: 1

    I thought that addition was rather lame, actually. How the hell could he miss when he was only two feet away? Although I agree it could change "the whole dynamic of Han Solo's personality," if I cared enough to consider it.

  10. Re:Boucher has it right on Wrangling Over Proposed Privacy Laws Continues · · Score: 1

    Why even bother passing the law then? It doesn't seem to change the situation any.

  11. Re:First amendment right on Elcomsoft Case Will Proceed · · Score: -1, Offtopic

    You write an inflammatory and incorrect response to a comment, and consider that a good troll? Just because a couple people responded doesn't make it a good troll; take some pride in your work! At least be a little more creative next time.

  12. Re:you can't do this, it won't work on Virus Piggybacks Microsoft Mail Worm · · Score: 1

    Outbleak Express? If you're gonna change the lettering that much, why not just write Outbreak Express and say what you mean?

  13. Re:This really sucks on Font Company Wielding DMCA Against Bit-Flipping · · Score: 1

    Why are you talking about making an entire PDF into a bitmapped image when you can just use bitmapped fonts? As far as I can tell, that satisfies the requirements you laid out just as well. In addition, bitmapped fonts aren't that bad as far as size, not really much bigger than type1 fonts. They don't really look bad either, except that Acrobat Reader makes them look like shit, but they print out fine. Bitmapped fonts aren't too ornery an alternative to outline fonts.

  14. Re:Scripts on Klez, The Virus that Keeps on Giving · · Score: 2, Insightful
    Notice that the last article I linked to sounds like a pretty solid fix: Users will be suposedly prompted before any emailed scripts do anything, and given a yes/no dialog to stop them from doing anything bad.


    I'm not so sure about that. Some people I know blindly click "OK" on any dialog box that pops up without so much as glancing at it. That's also the reason Gator manages to get installed on computers.

  15. Re:the STL is imporperly named on Downsides to the C++ STL? · · Score: 1
    Just to nitpick ;)

    OK. To explain the differences of "programming-styles", I often analogize to linear algebra, with programming-styles (imperative, OO, GP, functional, ...) as vectors in the space of programming-styles. which makes OO and GP "perpendicular".

    "Orthogonal" is the multi-dimensional extension of perpendicular. A set of vectors is orthogonal if and only if the dot-product between each pair of vectors is zero. (/me wonders what set of programming languages (vectors) would form a basis for the vector space containing all programming languages)

  16. Re:Not many on Downsides to the C++ STL? · · Score: 2
    Pay attention to which operations are expensive for the various data structures (map vs. list vs. vector, etc.).
    How very true. I had a class which contained a std::map of shared variables which are iterated over a rediculous number of times, for use in Affine Arithmetic. After profiling, I saw that the program spent most of its time iterating over the map, and the rest of the time deleting elements from it!

    After I changed the map to a wrapper for std::list, performance increased by about 130%. Once I thought about it, a list made much more sense, since I was iterating over it, never doing random access.

  17. Re:Hey Taco on Venter's DNA Major Source of Celera's Database · · Score: 1

    I think there should be a copyright infringement selection. The moderator would then choose whether it should be a +1 or a -1 however. =P

  18. Re:Be VERY wary on Spyware Makers Resent Cleaned-Up Versions · · Score: 1

    It's not script kiddies who release cracks. They don't have the experience, or likely the intelligence for that. I agree though, it wouldn't pay to trust those people too much

  19. Re:Are you kidding? on Debian 3.0 (Woody) May 1? · · Score: 1

    Ludicrous, no. Pretty obvious, yes. Really the reason I used the words idiot and jack-ass was because of your inflammatory wording, since he was complaining about elitism. I sincerely apologize if you are not a jackass or an idiot.

  20. jpeg2000 vs.jpeg on JPEG2000 Coming Soon · · Score: 1

    I found this site interesting a few months ago. The jpeg2k standard may have changed since then, but I doubt it. It concludes that jpeg2k doesn't have a better size/quality tradeoff than jpeg.

  21. Re:Are you kidding? on Debian 3.0 (Woody) May 1? · · Score: 1
    Your message is loud and clear.

    The idiots are always the loudest ones. Please ignore them, listen to people on #debian and debian-devel@lists.d.o, and judge for yourself. I think you'll find that the jack-asses are not in the majority.
  22. Re:not for me! on Could a Pen Replace the Keyboard? · · Score: 1

    How about "back 5 back 5 back 4?" Humans are supposed to be able to count groups of up to five just by seeing them, without actually having to think about it.

  23. Re:Bubble Sort? on Deep Algorithms? · · Score: 1

    Thanks for the explanation of my rather quick comment. I should clarify that I meant using sort() will bloat your code more than qsort() would, not necessarily that sort() would bloat the code unacceptably. I actually haven't had the opportunity to use either, since as one other poster said, it's not often necessary to sort anything in most programs.

  24. Re: MAXIMA on Open Source Computer Algebra Systems · · Score: 1

    Maxima is quite nice. TeXmacs maxima sessions are also quite pretty, but they break easily. Hell, maxima gets confused easily too. Xmaxima has its problems also. However, if maxima used libreadline and TeXmacs worked perfectly with it, I couldn't be much happier.

  25. Re:nonsense on One-Time Pad Encryption With No Pad? · · Score: 1

    You can't send the pad across an observable network in any way, public key encryption or no. It would only be as secure as the encryption then, since if you broke it, you'd have the pad. One-time pads have to be transferred in an utterly secure manner to be useful. They're only as secure as the weakest link.