fleshyorgans

tryin’ not to be a linux fanboy

fleshyorgans Two Cats

Coding: Rails Issues with :include

February 23rd, 2008 · No Comments

This is a sort of code analysis and something I discovered with :include usage in Rails. (This is in rails 1.1.6, so YMMV. I believe the latest Rails opts to use inner SELECTs rather than JOIN statements.
Also, this is kind of long.)

[Read more →]

Tags: stuff

Operator Precedence (ruby et al.)

February 1st, 2008 · No Comments

Thought this was a little silly, but it generated a lot of discussion about precedence, short-circuiting of conditionals, and the value of syntactic sugar.
http://pastie.caboo.se/146194

[Read more →]

Tags: stuff

Quick and dirty hack for acts_as_attachment file movement

December 10th, 2007 · No Comments

Say you’re working on something that uses acts_as_attachment. Also say that the person who wrote it decided that all the different models’ attachments would save in the same place. Also suppose that you want to change the file location of all those uploads.
Well, here’s a quick and dirty migration that’ll save you from moving files […]

[Read more →]

Tags: programming · stuff

PHP and Payflow Pro FOR THE LOSE

October 29th, 2007 · No Comments

Posting this cause I wan’t aware and the only other post I found was dated January.
Since Paypal purchased Verisign they are discontinuing the pfpro extension to PHP. And in fact, what I’m reading is that Sept 2009 is the end of life for that functionality, meaning requests will not work beyond that point.
For sites using […]

[Read more →]

Tags: programming · stuff

My tools for development under Ubuntu

August 29th, 2007 · No Comments

My work machine recently developed the click of death, so I had to get a new hard drive and reinstall everything. Just in case this happens again, and in case anyone else is interested, below is the list of things I install in addition to the standard Ubuntu installation:

[Read more →]

Tags: stuff