Link: A Brief, Incomplete, and Mostly Wrong History of Programming Languages
One Div Zero: A Brief, Incomplete, and Mostly Wrong History of Programming Languages
Coding: Rails Issues with :include
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.)
Quick and dirty hack for acts_as_attachment file movement
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 [...]
Seriously Word Press, WTH?
While trying to figure out how to remove formatting from ‘wp_list_cats’ in Word Press, I discovered this awesome bit. Click the thumbnail for the full glory of the code. You will notice that in my screenshot, the final function call to ‘list_cats’ at the end is truncated. This is because there are eighteen parameters. Again [...]
PHP and Payflow Pro FOR THE LOSE
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 [...]
Vim tip: keyboard shortcuts
Finally got around to learning how to define keyboard shortucts in vim. It’s easy! map <desiredkey> <targetaction> So, for example, I split windows vertically and want to navigate via ctrl+pagedown or pageup. Here’s what I did (include < and > when defining) map <c-pageup> <c-w>h map <c-pagedown> <c-w>l Found via a vim wiki search
Vim awesomeness.
If you use Vim as your text editor, try this :TOhtml This will generate an HTML version of your source code, complete with color scheme. It’s pretty sweet. Example here (opens a new window) This just tickles me.
keep looking »