Feed

March 21, 2011
book

Gödel's Proof

Ernest Nagel · ★★★★
July 12, 2010
log · coded_options

coded_options: A new Ruby gem for coded fields

I recently started a couple new projects (Rails 3 + mongoid) and I've noticed a pattern in the way I handle coded fields.  My key example is something like the following: you have a field, say status, that can have…

ruby · opensource
July 10, 2010
essay

The importance of a good algorithm

I'm studying for the computer science Ph.D. qualifying exam and so I've started going back through my algorithms book (Intro to Algorithms by Cormen, Leiserson, Rivest, and Stein).  The first chapter was, of course, about motivating the study of algorithms.…

dev
October 8, 2009
essay

Named instances for ActiveRecord

For a project that I'm working on at my day job, we have a governmental client for which we are building a pretty large and complicated online/offline Ruby on Rails application. As part of this app there are tons of…

rails · ruby · opensource
September 17, 2009
essay

Weirdest test failure ever...

So based on some customer feedback on a project I'm currently working on, I added a validation requiring that one of the dates be in the past. The validation is pretty straightforward: gist 188474 After re-running the test suite though,…

rails · ruby · testing
February 13, 2009
essay

Profiling Darwin, Functionality added to Haskell GD bindings

So I've been working on the Darwin hobby project again recently and decided to find out where the program is spending all of its time. It turns out that there are some really nice profiling tools in Haskell (GHC to…

haskell
February 1, 2009
essay

Pseudo Genetic Programming in Haskell

Had some fun this weekend writing Haskell in response to this blog post. Code is on GitHub. It has some performance issues and it's really my first real program in Haskell, so it's a little rough around the edges, I'm…

haskell
August 8, 2008
essay

August AITP Presentation

AITP Ruby And Rails Talk Here are the slides from the talk I gave on Wednesday. Enjoy!

rails · ruby · speaking
July 31, 2008
essay

POSScon Talk

Awesome conference. Met lots of great people and the roundtable and ensuing conversation at the end were the best part. We need more of these kinds of conferences. Here are the slides from my talk: POSSCON - Enterprise Open Source…

rails · ruby · opensource · speaking
July 11, 2008
essay

POSScon: Palmetto Open Source Software Conference

I'll be speaking at the new South Carolina OSS conference in Columbia, SC on July 30th -- more details at their website. I plan to talk about the open-source technologies that we use at the SC Budget and Control Board…

opensource · speaking
May 20, 2008
essay

ActiveRecord Bug Squashed

So we decided to use the new dirty record feature of Edge Rails to record the history of records in our new app at work. Turns out that nullable integer fields are always dirty if their current value is NULL.…

rails · ruby · opensource
March 15, 2008
log · learnSTAT

learnSTAT is now open source

I've been teaching a Statistics course at USC for a few years now and so, being the geek that I am, I decided a couple of semesters ago to write some course management software in Rails. I've worked on it…

rails · ruby · opensource · statistics
February 11, 2008
essay

Calculating IRR

So I decided to give the latest Ruby Quiz a shot. I created an Algebra module to deal with finding the root of a function -- using Newton's method. gist 470188 and here is the more specific code to calculate…

ruby
November 7, 2007
essay

My new favorite website

I know it's geeky, but I love it.  It's great practice -- http://refactormycode.com/.  The general idea is: people post code that they think could be written better and then other people refactor it and get rated on it.  How cool!

dev
November 4, 2007
essay

Cowboys and Farmers

I can't take credit for this idea and I can't remember the blog post where I read it... but the idea goes something like this: most development groups have cowboys and farmers. Cowboys live on the bleeding edge of technology…

personal · dev
November 2, 2007
essay

Common Beginnings

It's funny what a hobby can turn into. Listening to Matz at RubyConf 07 made me reminisce about how I got started programming. He was asked "do you consider yourself to be a scientist or an artist?" to which Matz…

ruby · personal