home · about · resume · software
 
09.27.07

Horizontally center the frontmost window with applescript

Here is a neat little apple script to center the frontmost window with an applescript. Just paste the script into Script Editor, save the script somewhere and then hook it up to a Quicksilver trigger... keep reading

09.22.07

JTree Row Selection and PGnJ 0.8 Preview

I have been working on PGnJ 0.8 since the day I released 0.7. With this release I really wanted to concentrate on further refining the application rather than adding new SQL related features. By adding an About box, a Preference System, Software Update and refining the row selection behavior of the main JTree in PGnJ, I think I succeed in my goal... keep reading

08.29.07

Ruby date range to SQL

While working on a scheduling application tonight, I found a neat Ruby code snippet that lets you easily convert a Ruby date range to SQL... keep reading

06.14.07

Rails, Foreign Keys, NULL values and CSV Fixtures

Ran into this issue today where basically Rails was trying to push an empty string in for a foreign key field with no value rather than a null while using CSV fixtures... keep reading

06.01.07

Designing a More Powerful Permission System in Rails

Most of the demos or plugins for rails that I've seen, talk about authorization like it's dead simple. You're logged in or you're not. That may work in a lot of cases, but in a system with a larger overall breadth, where users fill specific roles rather than all using the system in the same way, tha.. keep reading

04.20.07

Properly Close Those Tags In TextMate

In TextMate, I always use ctrl shift . to auto-complete html tags. For example, you can type div then hit ctrl shift . and it will generate <div></div> with your cursor in the middle of the start-end tags. It's an incredible time savor. It also handles things like br turning into <b.. keep reading

04.14.07

Recursively Find and Remove Files

A friend of mine taught me a neat trick when I wanted to remove .DS_Store files from a bunch of directories that I uploaded to a web sever... keep reading

04.13.07

has_many :through

Apparently has_many :X, :through = :Y depends on you having an existing has_many :Y defined in the model. You get this error when you call find if you haven't declared that the model has_many :Y. Who knew? source.. keep reading

09.09.06

Hide That Pesky Gmail Invite Box

I found this neat css you can add to your `userContent.css` file in Camino or Firefox to hide that annoying invite box in Gmail... keep reading

07.06.06

Copy & Paste on a Nokia E61

Copy & paste on a Nokia E61 is so intuitive, that it's sort of odd to figure out. How do you do it?.. keep reading

07.03.06

Symbian Auto-Receive and Gmail’s POP3 Implementation

Symbian's auto-receive feature on the Nokia E61 is pretty great way to avoid getting a Push email service like blackberry connect. Unfortunately, when trying to use Gmail's POP3 with Symbian's auto-receive, you run into a few issues... keep reading

 
Rss - Subscribe to the Feed
© Copyright 2005-2007 Sliced Software, Inc.