Archive for the 'Programming' Category

Destroying An Object After Touching Its Relatives

Friday, November 2nd, 2007

Just a little thought I thought I should be sure to share, as it’s something I wasn’t aware of until this morning.
If you load an object in Rails and load any of it’s relatives through acts_as_tree, and then destroy the object, it will take the relatives with it.

@person = Person.find :first

@person.children.each do |child|
[…]

Heading to PDX and RailsConf

Tuesday, May 15th, 2007

I’m heading to RailsConf 2007 tomorrow evening, and I’m really excited to continue getting involved in Ruby on Rails. We’re going to be using it at work now, and I expect Ruby to become a pretty significant part of everything I do in the coming years. It’s a great feeling to be excited about this, […]

Rails on Windows

Monday, May 14th, 2007

Brian’s e-book for O’Reilly, Rails on Windows, came out today and it looks to be a pretty good read. If you’re working in Rails and want to stick with Windows, definitely check this out. Brian’s presenting on working with Rails and Windows at RailsConf 2007 this weekend, and he’s been responsible for helping me with […]

RailsConf 2007

Friday, April 20th, 2007

I’m attending RailsConf in a few weeks, and I went through the panels earlier to figure out what I’m going to attend. Here is my tentative plan…
Thursday, May 17

0830 - Intro to Test-Driven Development for Rails
0830 - When V is for Vexing; Patterns to DRY Up Your Views

Friday, May 18

0915 - DHH Keynote
1045 - Building […]

evalScripts in Prototype

Tuesday, April 17th, 2007

I have no amazing insight to offer onthis post, but hopefully it’ll make life easier for anyone looking in to the same issues that I just had with Prototype.
We’re making a dashboard where users are dynamically adding widgets, many of which need their own javascript functions to work properly. We really don’t want to have […]

We Need That Tomorrow

Friday, March 30th, 2007

I was reading Brandon Schauer’s post "And um, can we get that tomorrow?" over the course of the last few days and thinking about it. I save posts in Google Reader that I know I want to go back to soon, and this one has been sitting at the top of one folder for a […]

Cleaning Up

Sunday, March 18th, 2007

Just did some clean up of the blog - I ran it through XHTML validation, and there was a big mess, mostly from a few of the recent posts. WordPress, for whatever reason, was inserting double paragraph tags on all the posts. After a while I found an explanation saying to change a line in […]

Let’s Learn About Microformats

Sunday, March 18th, 2007

Today’s been a learning day; I’ve been getting an hCard set up on the site, or at least trying to do so. I’m struggling with it a bit - Tails doesn’t recognize my hCards as being present, and when I use Operator my Address Book doesn’t want to import the contact, but Yahoo! has no […]

ActiveMailer Headaches

Thursday, December 7th, 2006

I’ve been working on a site in Rails for the past few weeks for my Dad’s company. It had been going really well, I was playing with some new approaches that I hadn’t tried before, I used RJS for the first time, and I was finally going to move him over to Rails from the […]

Debugging Practices

Friday, September 8th, 2006

There are some days at work where I’ll spend half of my day working with some of the newer developers, helping them debug their code. Sometimes I’m as stumped as they are, but sometimes I’m amazed at how little they seem to have tried before seeking help. In an effort to help them out I’ve […]