June 2007
2 posts
4 tags
Simple Rails Refactoring
I needed to attach articles to our default template when running migrations. This was currently executed like so: type = Type.find(1) Template.find(:all).each { |t| t.types Pretty simple. Find the first type, which is supposed to be Pages. Iterate through all templates and assign Pages to them. I needed to do the same for Articles too, so to get it done quickly, I just repeated what I did...
Jun 27th
1 tag
Automatically Set iTunes Track to Skype Mood...
navigate to: ~/Library/Preferences/ open file: com.skype.skype.plist add new sibling to root named “SKShowITunesSongAsMoodMessage” set class to Number set value to 1 restart skype
Jun 6th