Radiohead fan artwork
Posted by Cliff
This is great.. A bunch of Radiohead fans have been busy creating their own custom artwork for the In Rainbows album (which is awesome incidentally). Some of the submissions are brilliant.. See them here.
TextMate Rails Cheat Sheet
Posted by Cliff
This is actually a duplication of this, but when I already have a million tabs open during the course of development, I’d rather not open another with a big fat Flash applet in it. So I created myself the following text only version. The characters I’ve used aren’t perfect, I’ll fix them when I get a chance..
Legend:
| Apple / Command | ⌘ |
| Shift | ⇑ |
| Option | ⌥ |
| Control | ∧ |
| Tab | ➾ |
| Enter | ↵ |
File navigation
| Go to file | ⌘T |
| Go to line | ⌘L |
| Go to method | ⇑⌘T |
| Go to file | ⇑⌘F |
| Go to file | ∧⌘R |
Editing
| Code completion | Escape |
| Fold / Unfold | F1 |
| Comment selection | ⌘/ |
| Indent / Unindent selection | ⌘[ and ⌘] |
| Move selection | ∧⌘(arrow) |
| Edit selection | ⌥⌘A |
| Column selection | ⌥(drag) |
| Insert tag | ∧⇑< |
| Wrap selection in tag | ∧⇑W |
| Close tag | ⌥⌘. |
| Wrap selection as link | ∧⇑L |
| Subversion menu | ∧⇑A |
| New method | name∧↵ |
Commands (⇑⌥⌘C)
| Run file as Ruby | ⌘R |
| Start IRB | ∧⇑I |
Snippets (⇑⌥⌘S)
| class class_name | class➾ |
| def method_name | def➾ |
| each { |method_name| } | each➾ |
| for element in collection | forin➾ |
| if condition | if➾ or elsif➾ |
| unless condition | unless➾ |
| :key => :value | :➾ |
| flash[:notice] = "…" | flash➾ |
| logger.info "…" | logi➾ |
| assert_equal value, @o.attr | ac➾ |
| redirect_to options | rec[ai]➾ |
| render :action => "action" | ra➾ |
| render :partial => "item" | rp[loc]➾ |
| create_table "table" | mct➾ |
| table.column :,: | mcc➾ |
| <%= link_to options … | lic[ai]➾ |
| <% for item in @items … | eforin➾ |
| <%= form_tag options … | ft➾ |
| has_many :objects … | hm➾ |
| belongs_to :object … | bt➾ |
| validates_presence_of :attr … | vpif➾ |
| => | ∧L |
| params[:id] | ∧P |
| session[:user] | ∧J |
| <% %> | ∧X |
| <%= %> | ∧Z |
Removing plugins installed as svn:externals
Posted by Cliff
I just had a problem with my svn repository after a couple of plugins I had installed as svn:externals (./script/plugin install -x http://blahblah) were no longer required and I wanted to remove them. Not something I’ve done before, but I found a handy article
here, and all you have to do is this:
cd vendor/plugins svn propedit svn:externals . --editor-cmd vi
Remove the lines that reference the plugins you wish to remove, then save and quit vi (shift-ZZ if you didn’t already know).
Then svn commit and you’re done :)
Bring back the flat dock in Leopard
Posted by Cliff
Ok. Leopard is nice enough, but there are still a few niggles I have with it. One of those is the new dock.. shiny and cute as it is, I still prefer the old one. Fortunately the old (almost) one can be resurrected with these simple steps:
Edit: I’ve updated this article a little after some feedback from a friend of mine. Thanks Calum :-)
First run Terminal and type the following to make the switch:
defaults write com.apple.dock no-glass -boolean YES
Note: if you want to switch back to the shiny 3D dock, change that YES to a NO
Then restart the dock:
killall Dock
Tada!





