Slashdot Mirror


User: scorp1us

scorp1us's activity in the archive.

Stories
0
Comments
2,113
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 2,113

  1. Oh, the low-down on New Satellite Data Confirms Global Warming · · Score: 1

    1) We are STILL exiting an ice age. Of course things are going to get warmer.
    2) #1 aside, the average surface temperature of earth over a year and over the entire earth is not static. See, we are not in a perfect circle of an orbit. As the planets tug at us, we vary our position from the sun year to year. Charting this for the last nexeral million years and looking at the trend for the past few thousand, we see that we are in the middle of a period of being pulled to the sun.
    3) It is mearly impossible to understand how much of the raise in temperature is attributible to nature and to us.

    I think it would be good to minmize our destructive emitions. What woried me more than global warming is:
    1) the whole in the Ozone layer
    2) Light diminishing (from deseils)
    3) Chemical imbalances (acid rain)

    Temperature is a rather futile thing to control because it is so wild. Ice ages are normal. They come to an end, and they come back.

    Few people know that Earth was an iceball for a long time. Then the water melted. They don't know if life formed before, after or during this period. But there was a period where we were all ice.

    So to sum it up, forget temperatire, worry about Sulphur, Ozone and Carbon.

  2. All your optimizations are wrong. on Programming As If Performance Mattered · · Score: 4, Interesting
    If you spend hours tweaking code to eliminate a few instructions, even instructions in a loop, then you are just wasting your time.


    Real opimizations come before you right your program. Take for example that loop that you removed an instruction or two from. Say it is a searching an array. and looks like:

    for (i=0; i<strlen(x); i++){
    if (x[i]=='&') ;
    }


    There are two things wrong. One you cal strlen repetitively. Strlen() is theta(n) So you have a loop that executes n times at a cost of n . n*n=n^2. That's one of the slowest algorithms around. Maybe your compiler is smart enough to see that x is not being modified and will to a s=strlen(x); then compare against X for you, but probably not.


    The other thing is when searching an array, try to give it structure. If your array contains sorted characters, then you can find it in log _2 (n). Of course, of you sort by frequency (most commonly accessed at the top) then your n^2 loop *might* do better.


    The article is right: constant-time operations (type checking, etc) are asymtotically infitessimal in algorithms. The article's real problem is that it is n, but on a 2d image (x*y)=n you can't do any better. Note that it is not n^2, (though it makes a square picture) because you're operating on pixels. So that will be your unit of measure - NOT time.


    Which is my 2nd point. Don't measure in time or instructions. Measure in OPERATIONS. Operations are not instructions or lines of code. An Operation is everytime you have to look at a unit. It is a logical unit of cost. Hardware can be changed out. We know that hardware (performance) doubles every 18 months. The constant-time instructions will get smaller. (Also clocks per cycle are irrelevant as well). But your loops will remain the biggest part of your program.


    With that, here's a crash course in CS:

    1. Loops are most of (time, operations) the program. Try not to use them.
    2. To avoid loops, structure your data. Giving structure means assumptions, and assumptions means you can skip irrelevant sections of data.
    3. Determine your dataset, minimize worst-case occurences. Find out what order of data or instructions will make your n*log2(n) algorithm become n^2. Then find away around it.
    4. and optimize for average case. That is, if you never sort more than 6 numbers at a time, an n^2 will beat a n*log_2 (n) algorithm.
    5. If your data structure introduces overhead (most will) find yuor most common or costly operation. Optimize your datastructure for that (searching, sorting, etc) If you do a combination determine the ratio and optimize for that. The cost of overhead is usually small compared to the reason why your using a datastructure to speed up your common operation.
    6. The most obvious and easiest to code algorithm is the slowest. (Bubble sort vs. Radix or quick-sort)
    7. Mastery of the above is the difference between a $50k programmer and a $90K programmer.


      To learn more, take a datastructures class at your local university. Please review Calculus II before doing that though.

  3. Re:Why? on Microsoft Assembles Patent Arsenal for Longhorn · · Score: 3, Insightful

    Some of your resonses are good. You are right, it is not illegal to have a monopoly. THough your monopoly must be obtained legally. If you are the best at what you do, you get reqwarded for it.

    But Microsoft didn't do that. They created false error messages when you tried to run MSware on DR-DOS. They made vendors pay more if they didn't bundle 100% MSware if it competed against their products. They Made Compaq include IE though IE resulted in 10-15% more support calls than Netscape.

    They didn't become a monopoly because their products are great. They got to be a monopoly by working over the suppliers to that MSware became ubiquious. It's smart, but illegal when you start penalizing them for putting Netscape icons on the desktop.

    The government has a responsibilty to restore competition. Ways to do this are:
    Force MS to have Linux Products. (Office)
    Deny all patents

    And those of you that believe in defensicve patents, here's a joke for you:
    What's the difference between an offensive patent and a defensive patent? Give up? The difference is that a defensive patent doesn't name you in a a lawsuit over it. Really. There's no such thing as a defensive patent because you have to "protect" your patent.

    A real "defensive patent" is an open standard. Or just publish it, so that prior art is documented.

  4. Why? on Microsoft Assembles Patent Arsenal for Longhorn · · Score: 5, Interesting

    Why do we let a convicted monopolist obtain patents?

    It seems a no brainter that they should not be allowed to protect any IP until a nonmonopolistic market restored.

    "Right to innovate" be damned. You illegally got in top, now you can be made to share the top spot, a la the Sherman Act.

  5. Overstock.com on Websites For The Frugal? · · Score: 1

    Overstock.com does advertise on TV, but rarely. Take the %savings with a grain of salt, it is not from FMV, but off of MSRP. For computer products, MSRP is never updated.

    Still, things are cheap there, and they always beat Amazon on books and such, as long as they have it.

    It's really miss-named. It may have started as overstock stuff, but they maintain a comprehensive inventory.

  6. Which tooth? on Growing Teeth with Stem Cell Technology · · Score: 1

    How would you tell the tooth what kind to be? A molar? incisors? bicuspid?

  7. Re:The real issue is accessiblity on World's First 1GB Web Mail May Not Be From Google · · Score: 1

    Exactly. But there is no way (that I know of) to keep mozilla in sync with the data store when used for remote mail. (Web-mail that is sent should appear i mozilla's sent-mail folder)

    I don't know how to keep the two consistant.

    Then there's the firewall issue... But I might get around that. via port forwarding. If my provider lets me.

  8. The real issue is accessiblity on World's First 1GB Web Mail May Not Be From Google · · Score: 2, Interesting

    I have about 7 email accounts. 3 are personal. One .edu, one hotmail and 1 yahoo.The problem is, I use yahoo and hotmail because I can;t get to my mail once netscape pulls it down off the server. On top of that I'm behind a firewall. So anything I need to act on during a work day ends up at a web account.

    Sure I could use IMAP, but I get about 200 spam a day, and a 30 meg limit. It's not practical. I need globally accesible email respitory. That's what it is about - access anywhere to your email, in a manner that won't fill up your account. My mozilla mail file is several hundred megs, dating back years. I save it all, JIC. And it helps. Even one old email can make thouse 100s of megs worth it.

    If we had a way to store the data on our PCs, then retrive it anywhere, in a consisant manner (meaning Mozilla would place nice with it - and it would play nice with Mozilla (like a shared sent folder)) then I think we'd be 99% happy and not need 1gig of email hosting. It's cheapest on my drive. It's a fixed cost, and I've already paid ot off. 1gig is cheap. ($0.50-$1) (Though it may not be safest, I never back that bitch up)

  9. Re:Forget Ogg, I want FLAC on Fourteen Digital Music Players Reviewed · · Score: 1

    I'll have to try those.

    But remember cutting out sounds (the crux of lossy compression) does very much how the song is expericend when you have any kind of serious wattage. In theory, lossy compression should take into account the "experience" (Which ogg does better at at lower bit rates) This is easy to do on cheap small speakers, but becomes more of a problem with accuate mid and low range equipment.

    I'd also venture to say that those settings you asked about approach a size that is comperable to FLAC, but FLAC is 100% intact.

  10. Re:GUI is where it is at... for graphical apps. on Text Based User Interfaces in the 21st Century? · · Score: 1

    I think a bar graph, a la the intantenous CPU usage meter in win2k is appropriate there. One color for instock, a shaded box of the same color for ordered.

    Some things will be faster in text, undoubtedly. I remember explaining windows to a DOS user. It flat out take longer to copy files graphically than it does via command line, ignoring really long paths and typos.

    The funamental proglem you face though is lack of proper GUI tools. Obviously what you want to perform cannot be done [efficiently] in a graphical context (yet). You say web use has to be graphical, but you're talking to someone who used gopher for the first couple years of college. Obviously the paradigm has changed. And it will change on you too. Eventually someone will automate what you do, and they'll do it graphically.

  11. Re:Forget Ogg, I want FLAC on Fourteen Digital Music Players Reviewed · · Score: 1

    Rio Karma and Rio Empeg are off the same code base.

    Yes, if I load alpha empeg code in, it will play FLAC. But there are a whole host of other issues since the empeg is no longer officially supported.

    The rio developers are kind enough to work on it in theor spare time since they all have empegs too.

  12. Forget Ogg, I want FLAC on Fourteen Digital Music Players Reviewed · · Score: 2, Interesting

    The technological snooty should not be complaining about lack of OGG, while free and good, there is little reason for it to superceede MP3. Sotage capacites go up, which means the rational behind Ogg goes down, since they perform compartively at medium and even more so at higher bit rates.

    The only real format is FLAC. Lossless compression. Anyone with a good ear (or a good system) can hear how much lossy compression sucks. Moving the industry to flac (50-30% WAV size, no loss) will do more for demand of players - they'll want more storage because the songs are bigger, that will drive the need for higher and higher capacities.

    Of course, this all comes down to what is the speaker? Most of these are cheap ear-bud kinds of things that suck.

    But my empeg (0 or days of battery life (car battery), 10-60 gigs, FLAC, OGG, WMA, MP3 by Rio Corp.) still takes the cake. And it gets hooked up to a decent system. It can stram MP3s across the net, via a built-in webserver. It is truely sweet.
    But it took playing MP3s in my car (witha complete aftermarket sound system) to hear the difference. I'm actually ashamed to blast MP3s while driving. I'll throw in a CD. The bass is punchier, the treble is clearer.

  13. GUI is where it is at. on Text Based User Interfaces in the 21st Century? · · Score: 2, Insightful

    Think about it. We are visual creatures. we see things in terms of shapes and colors. Not words and lines. The first writings were cave drawings. Then we got up to hyroglyphs, then to sandscript and the like. We were born with the idea of an image. It took thousands of years to coalesce it into witten words.

    When we have a vocabulary. A set of established words. You do not need any vocabulary when it comes to images, though you do need to anticipate what images the user is familiar with. Like VCR controls.

    Text-UIs require language:words, grammar and syntax. GUIs don't. You cam make a multi-lingual application easily if you never need a word. Though, you may need to make a application multicultural by changin out the icons. Still you don't need a right-to-left reading order, verb tenses and plurality.

    Animation (eek) can help to avoid words, when statuc icons are not enough. but the way the mind works, the mind will learn the icon and the action quicker, so the icon need not always be animated- just animated during training. it is alto easier to share artwork between applications for a consistant experience.

    Whatmore, a picture is worth a thousand words. You can convey or influence mood (cool blues, hot reds)

  14. Re:It is a balance, privacy should not be used to on Automobile Black Box Sends Driver to Jail · · Score: 1

    Maybe I wasn't clear... My example was to show that the computers that monitor and control cars are acccurate enough to be able to determine speed through a variety of ways and very accurately too.
    So not only can you determine through a sime read of the speedometer, but the MAF, fuel trim, RPM, current gear (which can be found from RPM vs Speed even in manual transmissions) all form several ways to verify the speed reading.

    Yes, you are right there can be lag in a MAF setup. Speed-density (aka. MAP (MAnifold Pressure)) won't have this problem so when your BOV actuates, you won't run rich. I forgot to mention manifold pressure in the speed-density.

  15. Re:It's not freedom to be allowed to agree. on Automobile Black Box Sends Driver to Jail · · Score: 1

    I'm walking a line line here...
    But I don't think you are doing anything wrong to try and overthrow the governement. Revolution is not the same as murdering a person, you do not murder a governement. But that's what they would like you to believe. Overthrowing governments is a completely natural thing that should be encouraged. Only the best will survive, provided that that people being ruled act. If the majority of the populace doesn't like the government, then it is time for change. I think it is wrong of the government to make it illegal to over throw it - particularly in a democracy. Any democratic government is stupposed to be of the poeople, for the people. And if that ceases to be the case, the democratic governement has violated its own charter.

    Revolution need not be bloody. If it is, that is its own problem. You can have revolutions without people dying.

    So in conclusion, my point is that you have listed an example of something that is wrong on part of the government, not something with you. You should be able to overthrow the government, though by non-violent means. Violence brings on other issues... It could be said that the democrats and republicans every 4 years try to over throw the government if they are not in power. The difference is they do it non-violently. Your methods are limited: you go at it financially: bankrupt or buy the country (are you listening Microsoft?) or through free speech.

    Both of these should not leave you in jail.

  16. It is a balance, privacy should not be used to lie on Automobile Black Box Sends Driver to Jail · · Score: 5, Interesting

    I hold the notion that privacy does not exist when you are on a motor way. It is only a matter of witnesses vs black box. The black box is more stustworthy. If you disagree and think that this data should not be availible, then I ask you how many other ways do you think the cops have to estimate his speed? From the damage to the car, pedestrian, and eye witnesses (if any) they can estimate his speed at impact. Its simple forensics. The black box just makes it more certain.

    How acturate are they? Very. There are two ways to control the fuel injector pulse in cars. ine is Mass Air Flow (MAF) and the ither is speed-density. Either way, the computer is accurate enought to mix fuel to milliseconds on the injector pulse. (And we know milliseconds are forever to a MHZ computer)

    The if MAF, the fuel is calcualted by the reading from the MAF sensor which gives the amount of air flow into the engine (take sint oaccount temperature of air too). Add 1/14.7 of that, and you have proper mixture. The other way is speed density. You measure the temperature of the air, the volume (displacement) of the engine, and the RPM, and it knows how much fuel to use as well.

    Now that engine is connected to a transmision of fixed ratios. Here, we need to make an assumption, 1) the clutch is not in or failing (slipping) and 2) his wheels aren;t spinning against the pavement. Then from the RPM alone (which we know is tracked) you can accurately calculate the speed.

    I think these boxes are a good thing. They will expose negligence and fraud. Also I think they have a tendancy to coroberate your story in an accident and actually come to your defense - that you actively tried to aviod it. All this helps place the blame on the correct person so justice can be served fairly.

    I myself have been in 2 accidents where my guilt was questionable, had these been availible I am sure I would not have been at fault.

    If you're using privacy to hide the truth, then there's something wrong with what you are doing, and you know that.

  17. This is good. on Developing Applications with KJSEmbed · · Score: 1

    I'm using the less extravagant version, Qt+QSA which is the core of this framework. We're using it because we're embedded and need the space so we can't have KDE on there. We get crossplatform architecture independence. We don't need to know or care about what the target processor is. And we can link it into our existing MFC app.

    I can say that it is quite impressive. It can replace wxPython, and even Mozilla and Java for application development.

    In the future my home projects will be done in KJSEmbed just because the Qt/KDE stuff is so easy to work with.

  18. Only when witnessed? on Technology Spontaneously Combusts In Sicily · · Score: 1

    Nothing seems to have burst into flame except where there is someone present to witness it, but the police no longer suspect a prankster -- after witnessing wires catch fire without cause.

    Humans are the problem. Get rid of them.

    Seriously though. That is odd. You'd expect that it would happen with or without people there. Evacuating the town then did nothing. If people were the cause, the town would still be there. It is. If it wasn't the people, then the fires would have eventually set the town ablase, and with no one there to put it out, it would have decimated the town.

    An intersting test would to be let animals of similar body mass roam the town to see if there is a biological factor involved.

    Or people could be evoling psi abilities. A la "Firestarter" the movie. It would only take one person to report a fictitious event to get people's subconscience to think about it, then cause it. I'm not much for attributing unexplanied phenonmena on things we don't understand (unless we know we don't understand it yet, like much physics. (i.e. quantum entanglement)) but this seams the most likely cause.

    If the fires started few and far between, then grew in number, then it could correlate with public awareness.

    I'd say let people through the town that know nothing of what is going on, if the large animals don't provide more info.

  19. Interesting way to prevent bike theft... on Bicycle Riding on Square Wheels · · Score: 1

    From theme parks: vary the road with the wheel and have a "bike" path. This path is specially designed for wheel shape and diameter. Off the track, the bike is useless.

    of course, it does make unplanned turns rather difficult... Hey is documented now, so its a feature!

  20. You do need to leave the house... on Why Do Other Geeks Leave the House? · · Score: 1

    Beacuse buying tangible products for your tangible body is tricky business. Unless you want to lose your ass on shipping charges.

    I've bought stuff from Old Navy once or twice. Sometimes I'm a M, others a S, and once I was an XS. And that was in the same visit. Other times, you may like it online, only to find out its junk. The camera does hide a lot.

    Then there are things where you care more than a store staff would. Think fruits and vegitables. You pick the best ones, and you expend your measure of "decent" effort doing so. Store staff will just move whatever product they have. It's all got to be sold to them.

    In some states, wine can not be mailed in. It has to come froma distributor. So your options there are limited.

    Car shopping: yu gotta test drive it, and you definately have to do that if it is used. It might have an odor, or the suspension is too stiff.

    I guess it all comes down to you want to experience first hand the things you put in and around you. It's a comfort thing.

  21. Re:Several things: on Sun and Microsoft Settle Litigation · · Score: 1

    But you aren't running a tech company now are you?
    You'd be smart enough not to I bet.

  22. Re:Several things: on Sun and Microsoft Settle Litigation · · Score: 1

    Whoops. YACS (You are correct sir)

    They still belong in engineering, not in command. ;-)

  23. Several things: on Sun and Microsoft Settle Litigation · · Score: 1, Interesting

    1) $2B to one company vs 600M to all of Europe.

    2) Collaboration on .Net and Java - Here it is people, the reason why there will be no open source Java. MS already got their hands in it.

    3) Incedentally, MS will use this to kill off Java.

    McNealy is a moron. He screwes up time and time again and still maintains a company. This man is truly a ledgend. I think McBride idolizes him, but McBride won't survive. He's just not that good.

    And what is it with Irish dumbasses (Mc*) running tech-biz?

  24. This is a bad one on The Worst Development Job You've Ever Had? · · Score: 1
    It's 2003, and I am writing 16-bit dos apps for a company. First of all I've never used abything 16bit ecept BASIC. But since college it's all been 32 bit.

    Everything was a program and it all had to fit into 640k. The C code was horridly formatted like:
    if (condition)
    {
    //code
    }
    Suffice to say it sucked.

    We were also using a non-relational database which is a network-model database. (Rather than store key info it is stored as a child item, it eliminates key duplication). You had to do all the locking yourself. No schema changes on the fly either. You had to write a program to copy out of the old and into the new. Set manipulation (like fetch_row(), but worse because you had to manually connect parents and children) was your responisbility.

    As if that wasn't bad enough, we were using a new MFC on top of this arcane database format. This MFC app had been sent to China to be done by the lowest bidder. Suffice to say the code was not built for cleanlyness, it was written to fit a requirement.

    Sensitive confidential information was stored in this database, which was more or less an ASCII file, with no security. Puruseing through you could see passswords and information. Fortunately, the format itself was rather jumbled, so you'd get a block that made sense and the next one wouldn't.

    I worked hard to fix it, and we made significant strides while I was there, replacing it with PostgreSQL. Everything improved. Seciruty, speed, and it was easier to write software against. But I left before the project hit production. Most of my day was devoted to fixing these 16 bit programs.

    A lot of states change there forms by a miniscule amount each year. I had to update our reports. That is called Tax compliance. Rather than have an easy way to di it, I'd change a margin and recompile.

    Our testing department was me and my boss. Later we added a third to the mix. But as long as we got "works for me" on our desktops, we shipped it. It usually worked out ok though.

  25. Re:Yeah, but are they "toothing"? on Bluesnarfing At CeBIT 2004 · · Score: 0, Troll

    it's europe. They have differnet standards over there.