September 2010
WebSequenceDiagrams.com - Create Sequence Diagrams... →
Create UML sequence diagrams on a napkin online!
3 tags
RVM in MacVim
I’ve wanted to be able to use an RVM version of ruby in MacVIm for a very long time now but nothing’s happened. So I decided to put together my first vim plugin.
RVM Ruby gives you a Ruby ex command that will let you all ruby from inside MacVim.
Some changes and improvements that I can foresee implementing in the near future are:
Using RVM internals to deduce the ruby path in...
2 tags
Custom RESTful updates
I recently decided it was time to refactor some messy controllers and ended up coming up with a way of quickly breaking up some of the logic in our update actions. By supplying a parameter as part of the PUT request a custom update method can be used.
That way a basic update, which probably just calls update_attributes will always be the default. But you can use custom redirects, render different...
3 tags
Reek after Autotest
I added a hook to autotest this week that runs Reek after all of your tests. It’s not perfect because it can only run reek on every Ruby file in app/models, app/controllers and lib.
If you want to use it just paste the code in to your .autotest file in either your home directory or your project directory.
2 tags
Bundler and ZSH completion scripts
I’ve found myself furiously hacking ZSH completion scripts this afternoon. I wrote a pretty clean Bundler completion script a month or two ago but today managed to get `bundle exec` completion working properly as well!
The completion script is included in my dotfiles which I keep on Github.
3 tags
MacVim, Ruby and RVM
MacVim doesn’t support RVM. Not as far as I can tell having just built it from head using Homebrew.
jgarciam:
As you know rvm is great for keeping different versions of ruby on your system, and also is a great help with organizing your gems.
Today maybe this is of public knowledge but I have found out that macvim will use the correct gemset and ruby version if you set the ruby version...
June 2010
Really cool site with loads of iPhone walls… http://j.mp/cxK2TH
Dry up your use of Factories in RSpecs with a little meta programming… http://j.mp/916Gr9
coder.io: a link aggregator for developers →
May 2010
Rails: Convert a Ruby object (typically a Hash) in to a suitable string for use as GET params… http://j.mp/cWZPCt
Rails: Using path_prefix within a route namespace removes the namespace from the URL. Unexpected but logical.
Rails.vim: just discoved :AV, finally I can open a spec file in a vertical split without using :vsp, then :Rspec [some-path].
Fancy making your own Growl style? I had a play and pushed it today… http://j.mp/b4rs5m
Monitor file size in Ruby with some Rails internals, benchmark, trap and unnecessary colour… http://j.mp/abbs99
April 2010
Rain?! No thank you London.
I love contributing to awesome open source projects! Even when it’s something small like this… http://j.mp/aUxR0o
If you haven’t read it already take a look at Steve Jobs’ “Thoughts on Flash”… http://j.mp/buPkA6
How to configure git to use MacVim as your mergetool… http://j.mp/agmf55
Bored of having to bundle exec rake tasks to avoid reinitialisation of constants and stack level too deep failure. v0.9.24.
Almost home and tucked up in bed. — at Stratford Rail Station http://gowal.la/c/EN5M
RT @rachael2050: @jamesconroyfinn all the best for the wedding today. Try not to cry!
RT @qrush: For some people, email just a way to share word documents as images. I don’t want to get emails from those people.
Not far from — at Canary Wharf http://gowal.la/c/Equk
I liked a YouTube video — Wait Till She Takes Her Shirt Off! http://youtu.be/8QxrTTgW5lY?a
Sipping wine before tomorrows wedding — at Bedford Hotel http://gowal.la/s/66b5
RT @ginatrapani: Steve Jobs told Nike CEO: “Nike makes some beautiful products and some crap. Get rid of the crap.” #FastCo10
I love Bundler. I finally have a clean way to manage my commonly used gems across all of my Macs! http://j.mp/cFNeTd
Webkit desktop notifications… http://j.mp/c53qCi
Just had a lovely meal with some of the family. — at Barbican Kitchen http://gowal.la/s/5NMs
Missed my train becuase I couldn’t top up the oyster at my station and have to buy a YP railca — at Paddington Station http://gowal.la/s/6J9
Stressful and expensive day of travelling. If it wasn’t for my brother’s wedding I’d just stay in London!
Press Ctrl-Alt-Del to top up your oyster card. Seek assistance?! WTF?!! — at Devons Road http://gowal.la/s/2Epz
Not far from home! — at Stratford Rail Station http://gowal.la/s/7M3
I’m at Bow Church DLR in London http://gowal.la/s/2L7s
October 2009
Cassetteboy vs Nick Griffin vs Question Time http://ff.im/-aqgDJ
Cassetteboy remixes Nick Griffin. Great video. Some of the comments are horrifically ignorant and disturbing though. http://j.mp/3NF4Dt
RT @feather: Looks like the BlackBerry is going to get a WebKit based browser: http://bit.ly/AKfQb
» “foo bar man choo”.words
=> [“foo”, “bar”, “man”, “choo”]
RT @Hicksdesign: Britain does not have an indigenous people Griffin, we’re a mongrel nation
Am I worth the pain? Possibly. http://j.mp/2kMTe7
Break a leg @jamierumbelow.
Patching pg gem http://j.mp/6i3jL
Windows 7 is gonna suck as bad as Vista. Try innovating Microsoft.
#win7 is overpriced!
Layouts [pic] http://ff.im/-aeUAq
Ruby love… ZippyHash http://bit.ly/48dPUp
Love this song… John Mayer – The Heart of Life (Spotify: http://j.mp/4qpsCY)