Slashdot Mirror


User: richdun

richdun's activity in the archive.

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

Comments · 524

  1. Re:Nobody calls XmlHttpRequest() directly anymore on So How Do You Code an AJAX Web Page? · · Score: 3, Informative

    The other nice thing you can do with Prototype is to avoid XML parsing altogether by saying "ok, here's the URL I want you to call; it's going to return pre-rendered HTML, and when it does, I want you to stick it in this DIV over here; don't bother me about it" and you can do things like automatically update portions of your page without reloading.

    What does that do that this doesn't (other than use a pretty wrapped package)? This is the general form I use for my AJAX requests. If needed, I add some checking to cancel previous requests to the same method or queue successive calls so that the race for responses doesn't screw me up. It seems to work in all browsers I test for (IE6, FF 1.5+, Opera 9+, Safari 2+...and yes, I force my users to use modern browsers).

    if (window.XMLHttpRequest) {
            var oHttpRequest= new XMLHttpRequest();
    }
    else if (window.ActiveXObject) {
                    var oHttpRequest = new ActiveXObject("Microsoft.XMLHTTP");
    }

    function ajaxCall (page,params,responseHolder) {
            oHttpRequest.onreadystatechange=function()
                    if(oHttpRequest.readyState==4) {
                            document.getElementById(responseHolder).innerHTML = oHttpRequest.responseText;
                    }
            }

            oHttpRequest.open("POST",page,true);
            oHttpRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
            oHttpRequest.send(params);
    }

  2. Re:HTTP, time to update? on So How Do You Code an AJAX Web Page? · · Score: 4, Insightful

    Bandwidth ain't _that_ cheap. A constant connection would be annoying to maintain in spotting wifi, electrical storms, etc.

    I personally prefer web development because of the forced finite life of each state. That sort of back and forth makes data validation, cross-process security, and other things that many web developers ignore very easy to implement. You just have to quit thinking continuously (rimshot please!) and start thinking discretely.

  3. Re:Can We fire Rick Berman? on Matt Damon as Kirk in Star Trek XI? · · Score: 1

    Star Trek needs to go back a few thousand years like KOTOR did to have some room to be creative. =)

    I believe Mel Gibson beat you to that one.

    But while that has potential (the beginning of the Borg, but it's pseudo-canon that V'ger went there. It was an off-screen reference, but it was Roddenberry who said it, and that carries more weight than other random off-screen references), it can't be Trek. Trek is about the human spirit, and the ability for humanity to continually better itself. We already know our history, and the history of the other races (Klingons, Romulans/Vulcans, etc.) wouldn't work.

  4. Re:No PC games? on The Top 100 Games of the 21st Century · · Score: 2, Informative

    This is why I don't do 'awards'. They never explain why one thing is better than another

    Top is a relative term, and the 21st Century is the last five years...and when in doubt, RTFA.

    Here are some notes on how this list works.
    • Stats, ordering and research: thanks to game publishers, retail analysis sources and NPD data.
    • Games are ranked by units sold; then by revenue generated. This tends to favor games released earlier, rather than later, and games which have spent a long time at a lower price point have also done well, but we wanted to reward longevity and popularity across all audiences, not just hardcore.
    • In the event of a tie, games are then ranked by 'most recently released' and then by Gameranking average review scores. Special thanks to gameranking, just for being an exceptionally well produced resource.
    • Games are ranked according to the highest selling SKU only. Otherwise the list would be full of sports iterations and big brand spin-offs and sequels.
    • Other platform versions of that game, and 21st century precursors or sequels are included under the 'franchise sales' but do not affect overall placing.
    • This list is for the U.S market only.
    • This list only features games released since the introduction of PlayStation 2, Xbox and GameCube. It does not include handheld games or PC games which will be featured in a separate list.
    • Other Franchise Hits qualify if they use the same IP or character in broadly the same genre, and if they managed respectable sales of (roughly speaking) above 200,000 units.
    • Franchise sales includes sales of top selling spin-offs, sequels and predecessors as well as other console versions of the same game.
  5. Re:Um, military sattelites on Cyberwar on NASA Websites · · Score: 1

    And President Reagan cancelled this part of the program shortly after Challenger. NASA does not launch or repair military satellites, at least not any more.

  6. Re:more proof of a troll's idiocy on Cyberwar on NASA Websites · · Score: 1

    What, you mean the American Idol contestants visiting the White House doesn't constitute a front page story?! Blasphemy! Why should we need to hear other things?

  7. Re:more proof of a troll's idiocy on Cyberwar on NASA Websites · · Score: 1

    Well-oiled political machines only work as long as the voting population permits them to.

    Rousseau would be proud. Every once in a while, people get fed up enough with their government and realize that only if they allow it to can the government exist. That's why free speech, press, etc., is so important, because without them, it would be almost insurmountable to get enough free thinkers together to make a charge against the status quo (a la 1984) without violence.

    We haven't had a good change of thought in a while (communism, but that got corrupt/didn't work in a hurry). And movements like these usually follow some great invention or technological leap (the printing press, the colony, the factory, the assembly line, etc.). The Internet hasn't yet spawned a revolution (politically, or at least not wholly), but it will. Bloggers might be 90% ignorant drivel, MySpace one of the worst saps of youthful intelligence in decades, etc., but as long as there's always hope for something to come, we might got out of this.

    Wait, never mind. Now that I think about it, we're screwed. :)

  8. Re:Um, military sattelites on Cyberwar on NASA Websites · · Score: 2, Informative

    Even more than that, NASA has put up every single US military sattelite

    Wrong. Military satelites are launched by the Air Force, not NASA, at Vandenburg AFB or Cape Canaveral AFB. NASA is strictly civilian launches, even if many astronauts (especially commanders and pilots) are former Navy or Air Force.

  9. more proof of a troll's idiocy on Cyberwar on NASA Websites · · Score: 5, Insightful

    what with the shooting of Jews in chicago yesterday

    Do you actually read the news, or just go with what you're told? The shooting was in Seattle - a very different place from Chicago. And Jews have been at the bottom of some people's "favorite peoples" list for centuries - I doubt our foreign policy could really ever change that in just a few years.

    The world is not nearly as petty a place as some would like to think it is. Bush hasn't helped, sure, but anti-US sentiment has been building for years. We rule the world, but spend outlandish amounts on shopping trips and vacations to countries whose people can barely afford basic food and shelter. Then, when something happens to our own, we can't take care of them either.

    We'd be a whole lot better off is more Americans would stop using Bush as a scapegoat (again, he might be a good one, but that's not the point) and started changing the way they actually lived - cut back on energy consumption, buy a hybrid or use public transit, demand true equality in civil services and protection in poor neighborhoods/regions, and quit mouthing off on the Internet complaining about your government when the House has something ridiculous like a 98% re-election rate.

    We don't take responsibility for our own actions - and when something goes right, take responsibility whether it was our doing or not. That's why people hate us.

  10. AT&T on Visualizing Ethernet Speed · · Score: 2, Funny

    Oh great, now AT&T is going to charge me more to see certain things than others. Stupid eye neutrality.

    (let's see how many pick up on the joke here...)

  11. Re:Braindead marketing practices on Zango Caught in Lies About MySpace? · · Score: 1

    WHY HASN'T IT BEEN DESTROYED YET?

    Really makes you wish for the good ole days. I remember when all you had to do was say "press f10 for secret hax" and all the newbies would magically disappear.

    Now you have to figure out some way of making all their pictures blurry or keeping those pesky rebels away from your auxiliary exhaust port.

  12. Re:W3C on Google Lauded for Accessible Search · · Score: 1

    Good point...

  13. Re:W3C on Google Lauded for Accessible Search · · Score: 2, Interesting

    Wow, I never ran Google.com through the validator. That's pretty small stuff they're tripping on too - no DTD, no quotes around most attributes, etc. I love that in the Maps API (and other places) they recommend strongly that you use XHTML Strict 1.0 (which I do anyway), but they don't even put a DTD in their main page.

  14. Re:Playing The Freedom Angle on Indian Government Lifts Ban on Blogs · · Score: 1

    India gained its freedom from the british in 1947, when neither USA or China, were the world powers that they are today

    You mean the same 1947 in which the USA was the ONLY nation in the world with a nuclear weapon, and the only major nation not to have lost a significant part of its population and industrial power to war? (Pearl Harbor didn't exactly contribute much in the way of industrial production) I'll give you China, but the US has been a bona fide world power since shortly after we joined WWII.

  15. Re:You sure this isn't April 1? on Integrate iPod with Car or Risk Death · · Score: 1

    Nobody in the developed world is moronic enough to believe that...

    I've learned never to say those words, no matter how absurd things may seem.

  16. Re:Get dull? on The Sharpest Object Ever Made · · Score: 1

    That's my biggest quesetion. Sharp is nice, but sharp and hard is what you need. Dislocating a single atom should be easy, unless these are some sort of super-close-packed. But, it sounds like the nitrogen coating is on the outside, so I'm wondering how tight the structure could be.

  17. Without being blatantly scientific... on Genetic Reason for Your Gadget Habit · · Score: 1

    Yes, absolutely.

  18. Re:Obvious! on MySpace #1 US Destination Last Week · · Score: 1

    "It was the best of times, it was the worst of times..."

    Actually you didn't paraphrase, that was exact. It's by Charles Dickens, and opens "A Tale of Two Cities."

    Someone else draw the clever parallels to MySpace. It's late, so I can come up with is that at some point there's I hope there's a revolution that knocks MySpace off the 'net.

  19. Re:In other news... on Shuttle Cameras Yield Excellent Footage · · Score: 1

    Ah, talk radio. Yeah didn't realize you were under the influence. :) You should something that makes fun of both sides, like "The Daily Show" or "The Onion" It's sad, but there's often more (true) facts in those two than in many other media.

  20. Re:In other news... on Shuttle Cameras Yield Excellent Footage · · Score: 0, Offtopic

    Whoa, calm down. I was simply saying that SRB seperation happens over the ocean so they'll splash down and not come to an explosive thud in Morocco (about where they would go if they were released later). Spain is the trans-Atlantic landing site, so if we needed to abort and land there, the SRBs would be ejected so that they would still splash down and NOT hit Morocco or something.

    Go easy on the "all Americans are racist idiots who think any country with sand is an enemy" juice.

    And yes, I knew of the long history between the US and Morocco. It's one of the more interesting parts of American history that one of our first military acts (post-independence) was in the Mediterranean (we've never been able to leave the area alone for long), with, among others, the newly completed USS Constitution ("Old Ironsides") fighting pirates of Tripoli (thus "...to the shores of Tripoli..."), Algiers, Tunis, and, yes, Morocco. Morocco wasn't really involved in the war, it seems, and is just mentioned because of some alleged support of the pirates and the three other city-states. Much (if not all) of the action was against Tripoli. Morocco remained friendly to the US, albeit strained, through the conflict.

  21. Re:What happened to the camera in the water? on Shuttle Cameras Yield Excellent Footage · · Score: 1

    A lot of the cameras are transmitting images during launch, so it's possible this was picked up in near real-time during the launch (that's how CNN got such cool video of the bits of foam flying off at T+3m or so.

  22. Re:In other news... on Shuttle Cameras Yield Excellent Footage · · Score: 1

    Yep, SRB seperation generally happens over the Atlantic, somewhere within range of the launch site so the ships can sail out and recover them (and so that in the event of an emergency landing at KSC or Spain, we don't send some very powerful rockets at Morocco). Now, those living in the Indian Ocean may see ET debris, but it re-enters at a very high altitude and disintegrates fairly quickly (the foam tends to shed fairly quickly before re-entry, so imagine during).

  23. Re:Einstine = believer of God on Einstein- Husband, Lover and Father · · Score: 3, Interesting

    For those not simply trolling, another who thinks religion and science and well connected is Gerald Schroeder, who wrote an excellent couple of books on the subject. My favorite is The Science of God. Schroeder is an Israeli physicist (MIT educated if memory serves), and Genesis scholar.

    His main assertions are that neither top scientists nor top theologians often understand the other, and that much of the debate stems from dogged stubornness in current beliefs - think of how the Catholic Church once thought it heresy to teach the heliocentric instead of the geocentric universe, when today we know that it's really all just a matter of perspective, but that centering the universe on Earth or the Sun is not such a great idea. He really knows his science (leaves you behind very quickly if you don't grasp relativity and cosmology well, but kindly gives you a warning before diving into the particulars) and Genesis, and tries not to take a stand on one explanation or another - simply says the two aren't incompatible, especially if you acknowledge that the point of both is to seek the truth (or Truth, your choice).

  24. Re:Word of the Day: Switcher on Lawsuits Fly Over Google Founders' Party Plane · · Score: 1

    Yeah, if you read the fine print, Apple does require an Apple iHumor replacement module for "real" Mac users. Us fakes get by without having to get one, but we miss out on special advance access to the Reality Distortion Field (tm) and other iPerks.

    And I agree on the white plastic stuff - just feels like a glossy version of Dell/HP/Compaq plastic glory. The biggest difference - if I had a MacBook, I'd feel I paid way too much to mess up my shiny plastic, while if it were a Dell, I'd realize it was going to not look good all its life, so I don't care what happens to it as long as the thing boots, doesn't have an exploding battery, and doesn't make weird HDD death noises.

    I like metal cases - alumninum PowerBooks, aluminum LCDs, and, my favorite, the Antec Sonata case for my PC with like 3-4mm thick steel. Sure, it's a beast, but I can beat the hell out the thing and it never breaks (and the anti-noise mountings do a fair amount of shock absorption too...not a lot, but good enough).

  25. Re:Word of the Day: Switcher on Lawsuits Fly Over Google Founders' Party Plane · · Score: 1

    Word of the day? How come I've seen this about a thousand times, every time someone mentions they now use OS X after using something else previously? New word of the day: coward (n) - someone who feels so insecure in their own position in life that they cannot bear to launch a fanboy attack under a real name.