pogodan

Piston 2.0 Finally Released: With Git, Subversion and Ruby 1.9


over 6 years ago by pogodan on A Single Programmer's Blog.
It’s been a long time coming, I know. Believe me when I say so. But the good news first: Piston 2.0 supports Git repositories and working copies...

ArgumentError on #Sum When Using Classifier::Bayes


over 6 years ago by pogodan on A Single Programmer's Blog.
If you want to use the Classifier gem within a Rails project, you’re in for a surprise: 1 /Library/Ruby/Gems/1.8/gems/activerecord-2.3.2/lib/active_record...

Know How to Use Your Tools: ResourceController


over 6 years ago by pogodan on A Single Programmer's Blog.
Today, I was building a controller action that was polymorphically finding and associating an object. I could have used a simple dumb solution, such as...

What if You Didn't Have Access to If/Then/Else?


over 6 years ago by pogodan on A Single Programmer's Blog.
Image a Ruby where if/then/else isn’t available: 1 class Account 2 # This method returns the balance in words, negative or positive, ready for...

Beware of Git's Content Tracking


over 6 years ago by pogodan on A Single Programmer's Blog.
A while ago, I was wondering how rename tracking in Git worked. I was told that renames didn’t really exist in Git, as Git tracked content, not files...

Returning CSV data to the browser - revisited


over 6 years ago by pogodan on A Single Programmer's Blog.
Back in 2006, I wrote Returning CSV data to the browser. The method I was using back then is way obsolete. Let’s use the correct way to do it. ...

Cliaws 1.5.0: cliec2 commands implemented


over 6 years ago by pogodan on A Single Programmer's Blog.
Please grab cliaws from Rubyforge: 1 $ gem install cliaws What is Cliaws? Cliaws is a replacement for the Amazon EC2 API tools, but uses Ruby, and...

We've Been Doing TDD for Centuries, You Know..


over 6 years ago by pogodan on A Single Programmer's Blog.
Today, I was working on my lawn. Spreading new soil to sow new grass. I was looking at the ground, and I was pretty sure drainage wasn’t going to...

Piston on Windows: Some Pointers


over 6 years ago by pogodan on A Single Programmer's Blog.
If you need to run Piston on Windows, BoxCycle wrote some information about it at: Rails Plugin Updates, SVN, and Piston 2.0.2 on Windows...

How to Parse HTML Documents Under JRuby Using XOM, TagSoup and Nux


over 6 years ago by pogodan on A Single Programmer's Blog.
It’s not that hard, but it still took me 2 hours to do it. I had a couple of false starts, and I pored over documentation for a while until I hit...