Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×

Comment Re:Really? (Score 1) 513

I was in Chennai several years ago and noticed no one was in the water other than wading. My friend told me most Indians don't know how to swim. I figured it was probably because they don't have the same infrastructure in place as the US in teaching swimming. Maybe someone from India can shed some additional light on that and solve that mystery.

It's because the water's polluted with industrial waste producing PCBs for our motherboards, etc. drink it accidentally and you die, it's the same with the river Ganges in North India

Comment Re:My thoughts (Score 1) 829

I see soldiers every single day, and I try to thank every one I meet for their service in support of their country.

A cousin of mine used to be in the Army, thanks that's great! Now he's a civilian and has a huge Mercedes which he loves.

As for the Stargate Universe soldier having sex - you should show that to your son, because it's an obvious plot line that he could be discovered and disciplined and/or blackmailed in later episodes, he should not absorb every act that an actor makes on TV, otherwise he just has to watch Arnold Schwarzenegger in Commando to work out it's ok to procure Army equipment and fight a private war by invading another country without orders to do so. If I was writing Stargate Universe I would have that crazy marine who was locked up going and discovering him having sex with the female soldier, taking a picture, and saying "Yeah now I got you" then he goes on some sort of rampage, going to other worlds and killing aliens for their technology, all the while blackmailing the soldier that had sex saying "I have a picture of you having sex while on duty - I'm going to show it to the Colonel unless you cover up my crimes". And then all 3 get discovered and then bam you have one hell of an intergalactic Court martial yes yes yes! And your son won't be able to understand any of that if/when it happens because you pressed the skip button.

and have happily kicked the ass of several people who have tried to "whip my ass after 8 beers." I personally find drunk people amusing, especially since they so overestimate their physical prowess

I know a few people that can't control their violent urges when drunk, it's funny sometimes but they've come close to hurting themselves badly which is a shame cos when sober they're very nice people. I just tend to hug people when I get drunk so yeah I'm a bit of a wus unfortunately.

My son has training in martial arts, and participates in several sports. The difference between him, and any progeny that might be sorrowfully produced by your loins, is that after winning, or losing, my son will walk up to your son, and shake his hand, and say, "Good Game" and mean it. While your offspring will be the one who shouts back at him, "F*** YOU A**HOLE!" And I can say with some assurance, that this most often happens when the opposing team is from "Christian" schools, so don't try to tar and feather me with some religious brush either, because you can't. I've studied and read and possess every major holy book from every major religion, Torah, Bible, Koran, Nag Hamadi, Veda, Five Pillars, Tibetan Book of the Dead, etc, etc. Religion is a wonderful thing, but the people who practice it are flawed, and the institutions they build tend to reflect the people rather than the religion

I know a guy that used to change the rules of the game whenever he lost a point, like "You have to double-check the ball, it's the rules" and I'm like "Dude, we've been playing basketball for the last hour, that's a new rule dumbass!". Honestly, I don't know how my kids are gonna turn out cos I don't have any yet.

Number four, in spite of your criticisms of me, you apparently can't understand the simple basis of this nation, and if you can't understand the freedom that I have to raise my children with critical thought and a moral basis behind decisions, in any manner I desire, then you, sir, are part of the problem.

Ah ha! Got ya there! Suppose it was just the military that ended up on that spaceship, then if the spaceship takes more than 100 years to return to Earth, then everybody on the spaceship would be dead, and unmanned perhaps the spaceship would crash into Earth killing millions of Americans. If the orders were relaxed and the chain of command was relaxed, then the soldiers could take procreative actions amongst themselves and some actual real living people would arrive back with the ship when it returns to Earth, and these grandsons and grandaughters of the military personnel can do a controlled re-entry saving millions of American civilian lives. It wasn't just the United States that broke of from Britain, it was almost all Empire states such as Singapore, Thailand, Malaysia, China, and from France Quebec Montreal and various African states, and from Spain various South American states. All these empires recalled almost all troops to the originating country after the countries declared independence. One thing that all these colonised countries had in common was that as troops and people became more physically distant from the Empire-homeland that ruled them, they became resentful at the pointless rules being imposed by a distant command structure. This is immediately relevant - for the upcoming US space mission to Mars the astronauts might be placed into a different tweaked NASA-Martian command structure, which may be a blend of military command structure, and civilian corporate structure for example; cos it's easy to tell Big Brother to shove it and declare independence when you're 2 million miles away. You said you wanted to teach your children critical thought - but obviously not critical of the orders they receive, which is dangerous because rarely incorrect orders and/or information may be relayed. For example incorrect information, soldiers over-eager for a fight, and incorrect IFF Identification friend-or-foe codes and bad radar operation on USS Vincennes resulted in a civilian aircraft being shot down

Comment Re:My thoughts (Score 1) 829

I have spent time teaching my son that having sex is a major, life-changing decision. The repercussions of being sexually active are large and important. Were they to have shown a loving, caring, relationship, culminating in a physical relationship, I'd have had far less issue with it. What they chose to do, however, was to show, as acceptable and correct, what used to be called a "back-alley stand-up".

So you're teaching your children to be exactly like you, you are imposing a patriarchal system on them. You're also teaching your children to follow morality and rules to the letter, that's Communism - not US democracy and that is out of line with the spirit of the Constitution of the United States. Let me tell you after your kid leaves home and has a 8 beers he's gonna get his ass whooped. Even heroes have dark sides - just look at the atrocities committed by United States troops in torchering prisoners at Abu Gheraib prison in Iraq. Those soldiers that committed the torcher could just say "Heck I was just following orders", do you want your kid to end up like that?

Comment Re:Teenagers? (Score 1) 380

Extremely interesting. You can be a historian yourself - just take the GPS locations of the tunnel entrances, use a compass to see their direction underground, and that should do it. It's really easy to build a tunnel, it's working out whether it goes to interesting places that's the thing. There are tunnels underneath London that people can wander around in - some contain steam and heating ducts, some for telecoms and power. In Russia there should be loads of tunnels for transmission of steam heating from CHP plants.

Education

Best Paradigm For a First Programming Course? 592

Keyper7 writes "The first programming course I had during my computer science schooling, aptly named 'Introduction to Programming,' was given in C because its emphasis was on imperative programming. A little before I graduated, though, it was decided that the focus would change to object-oriented programming with Java. (I must emphasize that the change was not made because of any hype about Java or to dumb down the course; back then and still, it's presented by good Java programmers who try to teach good practices and do not encourage excessive reliance on libraries.) But the practices taught are not paradigm-independent, and this sparked a discussion that continues to this day: which paradigm is most appropriate to introduce programming? Besides imperative and object-oriented, I know teachers who firmly believe that functional programming is the best choice. I'm interested in language-independent opinions that Slashdotters might have on this matter. Which paradigm is good to introduce programming while keeping a freshman's mind free enough for him/her to learn other paradigms afterwards?"

Comment Re:BMW on fuel efficient driving (Score 1) 1114

Gasoline engines have maximum efficiency in terms of power produced per drop of gasoline injected at about 75% throttle and between 1700rpm to 4000rpm. A bmep/bar chart (throttle opening on y axis versus rpm on x axis with a contour map of efficiency zones) will show you this, available at my local library. Accelerating hard is more fuel efficient. Accelerating harder than 75% results in fuel enrichment in modern cars (more gasoline in the fuel air mix) which decreases efficiency.

Networking

IPv4 Address Crunch In 2 Years, IPv6 Not Ready 539

An anonymous reader writes "We've known for ages that IPv4 was going to run out of addresses — now, it's happening. IPv6 was going to save us — it isn't. The upcoming crisis will hit, perhaps as soon as 2010, but nobody can agree on what to do. The three options are all pretty scary. This article covers the background, and links to a presentation by Randy Bush (PDF) that shows the reality of the problem in stark detail."
The Courts

Comcast Sued Again over P2P Throttling 73

Dr. Eggman writes "Ars Technica brings us news of a disgruntled Washington D.C. Comcast customer who has filed a lawsuit against Comcast over claims of false advertising. The complaint seeks punitive damages, class-action status, and attorneys' fees. The customer claims Comcast advertised 'unfettered access to all the content, services, and applications that the Internet has to offer.' We discussed a similar lawsuit brought against Comcast by a Californian customer back in November, as well as the FCC investigation into Comcast's practices. While Comcast confirmed reception of the new lawsuit, they declined to comment on it directly. Spokesman Charlie Douglas was quoted saying, 'To be clear, Comcast does not, has not, and will not block any Web sites or online applications, including peer-to-peer services, and no one has demonstrated otherwise.'"
PC Games (Games)

2007 Mod of the Year Winners 34

intenscia writes "The 2007 Mod of the Year Awards players choice winners have been announced, capping off a great year in gaming. This year titles which were influenced by the War in Iraq fared well, with Half-Life 2, Battlefield 2 and the GPL'd ID Tech 3 engine polling strongly in the indie games and released mods categories. Crysis mods, though still in the early stages of development, did well in the best upcoming category as indie developers attention shifts to some of the next-gen engines."
XBox (Games)

Submission + - Three flashing red lights cost Microsoft $1bn (ft.com)

An anonymous reader writes: The Financial Times reports that Microsoft will take a charge against profits of more than $1bn as it tries to limit the potential damage to its videogames business from a design flaw in the Xbox 360 games console leading to units to fail. This is the "three flashing red lights" problem.

"Mr Bach denied that the product failures showed Microsoft had launched the console before it was ready, or that they resulted from the company's relative weakness in hardware design."

Sci-Fi

Submission + - Klingon in Libraries 1

An anonymous reader writes: Finally "some nerds" at a famous Danish cultural institution pulled themself together and took notice of the growing klingon-speaking community (eh, right): Now klingon scholars can access astronomical resources — say if they wanna find a way home to Qo'noS — at Copenhagen University Library, belonging to the Dainsh Royal Library. Just follow the logical URL (Vulcans are invited too) to astro.kb.dk and click "Klingon".
Books

Submission + - Solid Javascript for beginner and advanced (nateklaiber.com)

nateklaiber writes: "Simply Javascript by Kevin Yank and Cameron Adams lives up to the subtitle of Everything you need to learn Javascript from scratch. Javascript is a tricky subject to tackle. The Internet is full of Javascript snippets and code samples everywhere you look. Often times these code samples are less than satisfactory when you are addressing accessibility within your website. Many of the code samples contain outdated and proprietary code samples, making it a task to work out kinks and debug. The good news with this book is that they stick to a standard. All code used in this book uses object literal notation. Sticking to a coding style and format helps make this book an incredible read. Throughout this book you will learn the underpinnings of Javascript and how you can achieve different tasks.

Learning Javascript from scratch can be a daunting task. After all, there are several libraries and free scripts that you can essentially download and plugin to your website. But what happens when things go wrong? What happens when you need to modify the script to fit your needs? Having a solid foundation and understanding of Javascript will help you as you begin to develop for your own needs. This book gently walks you through the steps you need to take to achieve that solid foundation.


  • Chapter 1 starts off with a brief primer of unobtrusive Javascript and its role in the three layers of the web. HTML is your content. CSS is your presentation. Javascript is your behavior. These three aspects need to be separate from one another and also co-exist at the same time. Gone are the days of inline event handlers and functions. Using the power of the DOM you can rest assured your HTML will be pure and your applications will work flawlessly without Javascript enabled.


  • Chapter 2 spends some time setting up the foundation for beginners. This chapter walks you through statements, comments, variables and different variable types, conditions and loops, functions, and objects. Whew, that was a mouthful. This is where the standard of coding is introduced that will be used throughout the rest of the book. Things such as code indenting and formatting are touched on as well. This allows you to write clean code that is readable by you and other developers who may be working with your code. As stated earlier, all code uses object literal notation, and therefore this is explained in this chapter. A few examples are given and we are off to building some handy tools.


  • Chapter 3 gives you the necessary road map. This chapter is devoted to traversing the Document Object Model. A few helper classes are shown here that will allow us to retrieve elements by class name, add class names to an element, remove class names from an element, and check for the existence of class names within in an element. These will be used extensively throughout the book and are placed in their Core object. In addition to being able to traverse by class names, there is also the list of standard elements such as getElementById and getElementsByTagName. With these powerful tools at our finger tips we can now begin altering our pages as deemed necessary. The example given here is one of striping table rows. For those who dont do this on the server side, this simple task allows you to stripe your rows via the DOM.


  • Sure its cool to add stripes to a table, but how can we do more? Chapter 4 is all about Events and the power they add to interacting with the DOM. The brief history lesson in this chapter helps us understand the different interpretations of different browsers and how we can use object detection to abstract these tasks into the Core object. Event Listeners and Event Handlers are both discussed in great detail. We move on to two working examples: Rich tooltips and Accordion. Rich tooltips are used to extract information from our title attribute and then apply them to a more stylish hover tooltip effect. Accordion allows us to save space on our pages by gradually showing the content as it is requested by either a click or keyboard event.


  • Chapter 5 gets us moving even more. This chapter is devoted to Animation and is probably one of the more complex chapters of the book. We are introduced to two methods, setTimeout and setInterval. Working mainly with setTimeout we are able to achieve our animation effects. This chapter looks at the principles of animation and an example of path-based motion with a soccer ball. We then use our new-found knowledge to extend our tooltip to show after a specified time, and our accordion is given a nice slide effect. We simply extend the code from our previous chapter to make these things happen. This is a good example of the benefits of working with objects and decoupling inside of your Javascript.


  • Chapter 6 gives use a few more tools to work with Forms. Forms are never easy to manipulate. Whether it be the style or the behavior. The beginning of the chapter starts with smaller scripts and examples of manipulating forms. This is done by specifying dependent fields and only showing them when necessary, and creating cascading menus from a select and its optgroup. We then move on to some more advanced features for validation and creating a custom slider. These have been presented before in other areas, so nothing is really new in this area. However, this is all a part of understanding the bigger picture and the possibilities. It is about getting the creative juices flowing.


  • Chapter 7 discusses the inevitable testing for errors and debugging your application. We walk through the different types of erros: syntax, runtime, and logic. With each of these code samples are given with errors. We then use the tools of the browsers to make sense of their often cryptic error messages. In order to debug Javascript there is an invaluable tool in Firebug, a plugin for the popular Firefox web browser.


  • More interaction is still left as chapter 8 moves us to AJAX. Some very strong disclaimers are made as to when and where to use the right tool for the right job. Caution is also given in regards to assistive devices such as screen readers. With the warnings out of the way, we move to a some practical examples. The first is a small weather widget and the second is an extension to form validation.


  • The book finishes off by looking too the future of Javascript. Discussions of Rich Internet Applications and their place inside of the web help to stimulate your mind as you think about the possibilities. Not only about building applications on the web, but also using Javascript for such things as Dashboard Widgets and even browser development. In the hands of responsible developers, the future looks exciting for Javascript.


  • The Appendix is a very important part to this book, and I like its placement. The appendix goes through the Core methods used throughout the entire book. But why wait until the end of the book? Had this chapter shown up earlier it would have caused more confusion than necessary, and more explanation that necessary. As a reader you have the option to read this appendix first, but I felt it was well placed and covered thoroughly at the end of the book. By this point in the book you will have gained enough knowledge to dive in, whereas the beginning might have left you asking all the wrong questions.


If you have been developing Javascript for any amount of time, then you are most likely aware of the array of libraries available to us. These include Prototype, Scriptaculous, jQuery, Dojo, MooTools, and YUI to name a few. Each chapter of this book ends with a discussion of the libraries and how they can be used to help achieve the different tasks. Some libraries can achieve some tasks, while others still take a little work. The authors give a fair coverage to the libraries but do not dwell on them as the end-all-be-all of Javascript. If anything, the authors stress that you understand your Javascript at the core and know why you are doing what you are doing. This book sticks to unobtrusive principles and doesnt take shortcuts. The authors strive to make sure the code is of high quality and compatible cross-browser, but they never take the easy way out. Things such as innerHTML are put away in favor of building the DOM on the fly. This adds to the overall excellent quality of this book. The excellent code coupled with beautiful illustrations make this book easy to take small chunks at a time."

Slashdot Top Deals

I think there's a world market for about five computers. -- attr. Thomas J. Watson (Chairman of the Board, IBM), 1943

Working...