Category: Books


Wicked Cool Ruby Scripts

Having fun and solving problems can be mutually exclusive. Even for professional programmers and system administrators who chose their career because they enjoy problem solving, there can be times when finding a solution is an exercise in the mundane. Luckily, there are tools designed to ease the pain and frustration faced by programmers and admins. Ruby is a programming language that was designed from the start to not only provide a means of solving problems, but also to be inherently intuitive and fun to use. Wicked Cool Ruby Scripts, by Steve Pugh, is a book aimed to bring to light the fact that you can use Ruby to write concise yet useful scripts that solve difficult problems.

If you’re a fan of the “Wicked Cool” books from No Starch Press, you’ll find the format of this book familiar. It’s not a hefty tome complete with syntax and “hello world” introductory lessons, rather it’s almost a recipe book of sorts, divided into sections of problems and chock full of immediately useful Ruby code. This is the “Wicked Cool” book I’ve been waiting for, because although I write PHP and shell scripts (not so much Java and Perl, other topics covered in the series), I’ve always thought Ruby was the coolest of all. Right from the start, you can tell that Steve Pugh agrees with me. His tone throughout the book is that of a friend who has something fun to share, never browbeating or lecturing. He’s not simply writing to show us that he knows how to write Ruby well, he’s really trying to help us out.

Honestly, some of the examples in Wicked Cool Ruby Scripts might leave you wondering why you’d use such a powerful language like Ruby for such seemingly simple things. What Steve Pugh tries (and succeeds!) to show us is that Ruby isn’t just for writing massive web applications, but it can also handle tasks often relegated to the ubiquitous, but cryptic Awk or shell languages. Perhaps you still wonder why you’d want to? “Just because you can doesn’t mean you should”, right? So why bother? Because Ruby is “Wicked Cool”, that’s why.

So what’s cool? How about a simple file alteration monitor to help you see what’s changed on your system? Not cool enough? How about a web based photo gallery in about 50 lines of code? Still not impressed? How about writing a Metasploit module to attack one Windows machine from another? From general purpose utilities to system security and yes, even some games, Wicked Cool Ruby Scripts has enough in it to pique the interest of just about any programmer or sysadmin. I for one am finding it hard to concentrate on this review because I want to get back to writing Ruby. If you’re a programmer waiting for a good excuse to try Ruby, or a Windows sysadmin wondering what an open source programming language can do for you, you’ll find Wicked Cool Ruby Scripts enlightening, inspiring, and of course… cool.

I forgot to mention that I wrote a review for a book about designing BSD rootkits. You can find the review over at Daemon News

This book is based in the future (of course) and deals with some serious issues. You see during the mass migration to Mars, certain people were left behind. These people were exposed to radiation, and thus deemed dangerous. The story takes place on Earth, and the main character is a chickenhead. A chickenhead is someone who’s mind was affected by the radiation and is mentally retarded.

I’m not going to tell you more, you’ll have to read it yourself. But if you like books set in a dystopia, you’ll probably enjoy this one :)

Oh, on a scale of “eeew” to “oh yeah!”, this book gets a “yeah, it’s pretty hot”.

S Is For Space

I’ve enjoyed Bradbury ever since I was assigned to read Fahrenheit 451 in school. I happened to find this particular collection of stories at a local book table, for 50 cents. It stayed on my shelf for about a year or two but a stint of jury duty had me looking for something fun, interesting, and short. S Is For Space was the perfect choice.

This collection of stories was first published in 1966. It contains 16 tales dealing with – you guessed it – space. As with most of my reviews, I won’t tell you much about the content, because that would spoil the fun for most people =) I will, however, give you a bit from the book’s introduction:

“Jules Verne was my father.

H.G. Wells was my wise Uncle

Edgar Allan Poe was the batwinged cousin we kept high in the back attic room.

Flash Gordon and Buck Rogers were my brothers and friends.

There you have my ancestry.

Adding, of course, the fact that in all probability Mary Wollstonecraft Shelley, author of Frankenstein, was my mother.”

This guy rocks. If you haven’t read any Bradbury, then please do yourself the favor!

Zsh Book Review On Slashdot

Slashdot has a review of From Bash To Z Shell. I haven’t had a chance to read the book myself, yet I can still tell you that zsh is nice! I have my (simple) .zshenv and .zshrc uploaded here, in case you want a little something to get started with. You can get the latest zsh (4.2.5 currently) at ftp.zsh.org

Z4CK

The first paragraph of the foreward says it all: “It has been more than a year since I sat on a train, playing computer games on my Zaurus. Now, I am not saying that there is anything wrong with that, but I felt there must be something else I could do, that was more productive. So, I thought I would write a book.”

What a cool idea! I bought this book because I think Kevin deserves some credit for putting his Zaurus to good use. Basically I had no preconceptions about his writing skills or story telling abilities. I had no idea what the book was about except that it was written on a Zaurus and was about a guy who had a Zaurus. That was enough for me;)

As it turns out, the story is actually quite good. There is a lot of real technology being used throughout (aside from the Zaurus), which keeps it interesting for those of use who know what things like nmap and nessus are. There is also a pinch of love story, and a healthy helping of “oh my god everything I thought I knew is a lie.”

Kevin is from Scotland and you can tell somewhat based on his spelling and grammar. No this is not a critical remark, but if you are American you might find it odd to see words like Kerb and Faeces [which would be curb and feces the way I was taught to spell]. For all I know Kevin might just be a horrible speller, but I don’t really care because the story is good. Honestly though, there were a lot of typos, which was somewhat annoying.

But with that aside, I love this book because Kevin inspired me to write my own on my Zaurus. So thanks a lot Kev! If I ever finish my book I’ll be sure to send you a copy!

I don’t have a rating scale yet, but on a scale of This book sucks ass to yeah it’s worth the few bucks I say this book is totally worth the few bucks! =)