I have a model that works something like this. I have a User object. Each User has a Profile. Each Profile has a Picture. Well not always. At creation there is no Picture and the user could choose to never set one. Prior to my latest upgrade of RoR I would use a line like…
Category: Scripting
PHP and AppleScripting.
Java vs. Rails
Joey over at Tucows has an article about where all the cool stuff is happening and how it isn’t happening at Microsoft. For an example he shows a big chunk of XML and big chunk of Java and these three lines of Ruby: 01 class Order < ActiveRecord::Base 02 has_many :items 03 end The jist...
Experienced Coders
I was reading some of the links off Particle Tree’s article on Improving Your Coding Lifestyle and found this article on The Value of Experienced Coders. A couple of things struck me as someone who has done this programming thing for 13 years now. One was remembering one of the best companies I ever worked…
WordPress Archive Popup Menu
I’m trying to my the Mrs. blog have the theme she wants with the features she wants. She was using a really ugly one because it let her collapse the things in the side bar. The first thing I wanted to do and I wanted it for my blog too, was to make the archive…
Zero is not nil
I’m learning the Ruby scripting language while learning Ruby on Rails. One of the constants of Ruby is that everything is an object. I was just coding in Objective C and one of the cool things you can do is call a method on a nil object and it just returns nil. This is nice…
Teach You Kid to Program
Found a great two part blog entry on teaching a 6 year old to program. I liked part two the best because it contained all kinds of funny nuggets. Firstly, after being a Mac Programmer for 12 years, I was surprised and glad to see this comment:”But the Mac is Unix. It is a hacker’s…
Referrer Spam
I’ve been getting spam referrers in my referrer list for the past few days. I already have a list of domains/URLs that don’t make it onto my page of referrers. They are in my log file, but don’t show up on the page when you look at the list. This list was originally to keep…
Scripting Test
Using the new WebDav features of DreamHost I uploaded the picture at via AppleScript. The script is a droplet that looks to see if the media directory is there. If it is then it scales the picture using Graphic Converter, and copies the thumbnail and big picture to the folder for the month. New in…