PragDave

Importing RSS Feeds into Mail.app


over 10 years ago by PragDave on PragDave.
As an experiment, I wanted to try using Mail.app instead of NetNewswire to read RSS feeds (I know, I know...). To get my existing feeds across, I did the...

Fun with Ruby 1.9 File Encodings


over 10 years ago by PragDave on PragDave.
Ruby 1.9 allows you to specify the character encodings of I/O streams, strings, regexps, symbols, and so on. It also lets you specify the encoding of individual...

BabyDoc


over 10 years ago by PragDave on PragDave.
One of the fun things about updating the PickAxe is getting to come up with examples to show the various APIs in action. Here's a very silly example of...

Ruby 1.9 Standard Library Changes


over 10 years ago by PragDave on PragDave.
Here's a top-level overview of some of the changes to date in the standard library that comes with Ruby 1.9. (These are the libraries that you get preinstalled...

Shoulda used this earlier


over 10 years ago by PragDave on PragDave.
In many ways, testing software is like going out and getting exercise. You know you should do it, and you know it does you good, but it's also pretty easy...

Just shipped tons of books (literally)


over 10 years ago by PragDave on PragDave.
In the last week we shipped out two much anticipated books: Advanced Rails Recipes and Deploying Rails Applications: A Step-by-Step Guide. We've finally...

Ruby Symbols in 1.9—End of an Era (and a good thing, too)


over 10 years ago by PragDave on PragDave.
:rip.to_i Ruby symbols have always been immediate objects. That means that, inside the interpreter, they were represented as small integers which reference...

Test-Driven Rails Studio


over 10 years ago by PragDave on PragDave.
I have a blast teaching at the Pragmatic Studios.. Mike and Nicole run excellent courses, the format is incredible, and the students enthusiastic. I love...

Silly shoulda trick


over 10 years ago by PragDave on PragDave.
Playing with the shoulda testing framework, I came across a small but useful trick. Because the tests are written inside closures, local class variables...

Our take on presenting code


over 10 years ago by PragDave on PragDave.
Back in March, Jim Weirich posted some notes on a clever technique for getting code into Keynote presentations. It struck a chord with me, because I've...