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

 



Forgot your password?
typodupeerror
×
Hardware Hacking

Submission + - Thief hackers use new device to steal gasoline (local6.com)

FingerDemon writes: It looks like some thieves in Orlando, Florida are using a "never before seen" device to bypass gas pump controls and pump unlimited amounts of free gas into their cars and drive away. With gas prices as high as they are and getting higher, it seems like they came up with a pretty foolish plan for using this thing. Their getaway plan in particular could have been better.
Gas Gang Uses 'Never-Before-Seen' Device To Hack, Steal From Pumps

Java

Submission + - Groovy in Action

Simon P. Chappell writes: "I missed the partying in the 70's and so was not exposed to the full groovy experience that was available. You could say that I was a late developer (pun intended). Thankfully, I am now able to make up for lost time by learning the Groovy scripting language. For those of you not familiar with Groovy, it is a dynamic language designed to run on a Java Virtual Machine and be easy for Java programmers to work with; it looks very similar to Java and will freely interoperate with Java objects and libraries. I've been tinkering with Groovy on and off for about two years now; learning Groovy in the old days, prior to this year, was a challenge with all of the design changes that were taking place. Groovy in Action (GinA) is the book that I'd wished was available back then. Dierk König, a committer for the Groovy project, has written this definitive guide to Groovy and after what has seemed an eternity to those of us on the Groovy mailing list, it is finally available.

The obvious candidate for this book is the programmer that wants to learn Groovy. What is less obvious, is just who those people are, because programmers who would find Groovy useful are likely to come from quite a wide selection of backgrounds. If you thought that Groovy wasn't for you, read on and consider whether you may have judged in haste.

Current, or former, Java programmers will love Groovy and they will likely make up the greatest proportion of the readership. They will especially appreciate the interoperability of Groovy with Java: your Groovy objects are Java objects, right down to the bytecode level.

As a dynamic language, Groovy attracts a good quantity of the traditional users of scripting languages. Expect to see more than a few system administrators and build managers pick up on Groovy as they realise the benefits it brings. Further sweetening the pot, for build managers, is the ability to use Groovy as a scripting language within Ant. Another group of readers may well come from the dynamic language communities. I think that Ruby and Python programmers may well find this an interesting book to help them understand this new arrival on the scene. With the steady maturing of the Grails project, that uses Groovy as it's implementation and development language, even the Ruby on Rails folks might be curious.

For a book that's setting out to teach you a programming language, the structure is fairly standard. The contents are divided between three parts that theme the Groovy Language, the Groovy Libraries and then wrap up with Everyday Groovy. I like the approach of including guidance for using the language after you've learned it, because it acknowledges that the purpose of learning a programming language is to then use it. This is a very welcome development in programming language books; other publishers and authors please take note!

And now, for the purpose of full disclosure: Of course this is such a good idea that it blew my book idea out of the water; I had been talking to Manning about writing more of a practical how-to book for Groovy, but with GinA being so good, those conversations stopped almost as soon as they got started.

The first chapter is the standard fare of what Groovy is and why you want to use it. This is important material for those who may be new to the language and it's covered very well. Some book's initial chapters can be a little dry, as if the author was in a hurry to get to the good stuff, but here, Mr. König has recognised that the language is in an early enough phase that explaining why you would want to use it is the good stuff.

I'll save you from a big list of chapter headings and just relate that part one covers the basics, including how to compile and run code and how to run it as an interpreted script. The fundamental Groovy datatypes are introduced and we learn about the joys of optional typing, for those occasions when it's not obvious that the object is a duck. Groovy has all the things you'd expect from a dynamic language: strings, regular expressions, ranges, lists, maps, closures, control structures and finally, to make it in the corporate programming world these days, it has objects.

As we skipped chapter headings for part one, I'll follow precedence and skip them for part two as well. Part one taught us the basics of the language, part two looks to help us now integrate with the Java environment and existing Java code and systems. Builders are an important part of using Groovy to it's full dynamic extent and these are covered extensively. Groovy also brings it's own library extensions for the standard Java libraries, and they are known as the GDK, even though they're technically not a development kit. Groovy works nicely with databases and is able to use any existing JDBC drivers you may have. XML, whether you love it or hate it, is a big part of the life of a corporate programmer these days. Groovy has built in smarts for working with XML and you'll learn about those in this part. There are many useful Java tools, libraries and frameworks available today and Groovy can work with almost all of them. Much good information on integrating with everything from Spring to the new scripting interface defined by JSR-223 is covered.

Part three is the Everyday Groovy part. It starts with Tips and Tricks. Things to remember, useful snippets of code, advice on calling Groovy from a command-line, and writing automation scripts. There's also a full chapter on Unit Testing with Groovy, covering testing of both Groovy and Java code. The last two chapters cover optional stuff for Groovy. Groovy on Windows looks at the use of the Scriptom tool for those who use Windows. (As a Mac user, I admit that I skipped this one.) The last chapter is an introduction to Grails, the web application framework written in Groovy and which can run in any standard J2EE environment.

There are a couple of slim appendixes at the back with installation information, language information and an API Quick Reference for the GDK.

There is much to like about GinA. Mr. König and his co-authors writing is clear and engaging and Manning's layout and typography are up to their usual excellent standards. On it's own, these are good reasons to consider this book if Groovy interests you, but when you mix in the fact that Mr. König is a committer on the Groovy project and has taken an active role in the creation of the language itself, then you have a very compelling reason to choose it.

Groovy in Action is an excellent book, written by one of the designers of the Groovy language. If you have any interest in modern scripting languages at all, I would recommend that you check out this book."
Real Time Strategy (Games)

Submission + - Second life terrorist attacks?

An anonymous reader writes: Yahoo online news reports about a virtual terrorist group called the Second Life Liberation Army which has ignited a few bombs near online shopping districts in a protest against the way Second Life is currently going. It seems that many players from the first hour do not like the way things are heading in the virtual world now that bigger companies also show an interest in the virtual world.

Fanless Nano-ITX Motherboard Reviewed 36

TheEagleCD writes "The first look at the fanless EPIA-N8000E Nano-ITX motherboard has just hit the internet. While some skeptics commented that this board is only 'for those who like VIA or want an even smaller footprint than a nano-notebook,' others say that 'the size, heat output and noise levels alone will recommend it to many projects.' It will be interesting to see how the market really receives this first Nano-ITX motherboard which is the de-facto successor of the Mini-ITX form-factor which made a strong statement by being seen on many company booths at this year's CeBIT."
User Journal

Journal Journal: Another joke...

Before the jokes, I want to thank zedmelon for being my first (and so far, only) Slashdot friend. sniff. Thanks, man. It took me a while to realize what to click to return the favor, but I have.
I also wanted to mention if anyone is into HalfLife mod online gameplay, that I like to play DoD and have found two really great gaming communities with servers and forums to hang with. The one is a little strange its BuxomBombshells.com. These are guys i
User Journal

Journal Journal: Just Jokes...

I don't like spilling my guts out in these types of forums and my technical expertise isn't great enough for me to hold court in my own /. space. So, I guess instead of either whining about the job market for developers or critiqueing some Sci-Fi, I'll just post some jokes in my journal.

Slashdot Top Deals

As long as we're going to reinvent the wheel again, we might as well try making it round this time. - Mike Dennison

Working...