Skip to content

John Plummer . com

Stuff I want to remember

  • About
  • Contact

Installing Postgresql and pgAdmin

  The default database for Heroku is PostgreSQL and, while you could use SQLite for development and Postgres for production, there are some inconsistencies between the two. Ideally you would use the same version of the database server but currently Heroku uses version 9 for dedicated databases and 8.3 for shared databases and seem to […]

Read More…

December 6, 2011December 6, 2011 John1 Comment

Setting up Rails on a Clean Install of Mac OS X Lion

I realise that OSX does not have a registry to clog up but I have just reinstalled Lion on my Macbook Air; probably a hang up from Windows. This is a checklist for installing Homebrew >> Rails. Install XCode 4.1 (There are issues with the 4.2 compiler and certain rubies and gems) Install Homebrew https://github.com/mxcl/homebrew/wiki/installation […]

Read More…

October 25, 2011December 2, 2011 John4 Comments

Changing Three Finger Swipe to Back in Lion

Lion introduces some new gestures which unfortunately breaks some gestures I am used to such as a three finger swipe to move back in Chrome. Easily fixed by opening System Preferences > Trackpad > More Gestures and changing swipe between full screen apps to use four fingers and swipe between pages to use three.

Read More…

October 18, 2011December 6, 2011 JohnNo Comments

Rails default scripts and jquery-rails

I recently had an issue in a (3.0.7) rails app where link_to some_path, :method => :post was calling the action associated with GET, this was caused by not having a link to jquery_ujs.js (I’m using jquery so don’t want rails.js) in my html output. Googling turns up a number of suggestions to add jquery_ujs.js and […]

Read More…

June 9, 2011June 9, 2011 JohnNo Comments

Rails Autoload and Ruby Require

Rails methods of locating and loading files is mostly based on convention but is built on top of Ruby’s methods. Ruby The basic way to tell a ruby to load a file is to require it, e.g. require some_file will load some_file.rb if the file has not already been loaded. load some_file.rb will load the […]

Read More…

June 7, 2011June 7, 2011 JohnNo Comments

Launching irb from vim

You can run irb from vim with the command !irb. Running !irb -r % should run the current file in irb then leave irb open. Unfortunately ruby 1.9.2 removed the current directory from the load path which causes this to fail. You could construct a path but it is easier to add the current directory […]

Read More…

May 19, 2011December 6, 2011 John1 Comment

Recovering from ‘the application finder can’t be opened’

Every now and again I get an error when opening finder: ‘the application finder can’t be opened’ Whilst I am sure a restart would fix it, I normally don’t want to restart as I am in the middle of something. The solution is to run the following in terminal: /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder & (don’t forget the &) […]

Read More…

May 19, 2011November 3, 2011 John10 Comments

MacVim, NerdTree, Janus Annoyances

I’ve decided to use Vim for a few weeks at least and am enjoying it. There are plenty of posts on using Vim as a Ruby IDE and switching from your IDE of choice. Most of the TextMate to Vim posts seem to recommend Janus and for good reason. Janus adds a number of plugins […]

Read More…

May 16, 2011December 6, 2011 JohnNo Comments

HTML5 Creating the Header and Testing

This post is following on from a previous post on Creating the footer. Creating the header was a lot simpler than I thought it would be. The original header in the Roots template is pretty sparse and I want to end up with this:(I’m still unsure about the tag line but it’s not something I […]

Read More…

May 13, 2011May 12, 2011 JohnNo Comments

HTML5 Creating the Footer

This is the third post in what is turning out to be a series on my ‘adventures’ with WordPress and HTML5. Previously I set up a development environment and installed a barebones HTML5 theme. Now I want to style the footer (start with the easiest part) to go from this: To this: I want the […]

Read More…

May 11, 2011May 12, 2011 JohnNo Comments

Posts navigation

Older posts
Newer posts

Recent Posts

  • Moving Plists Between Macs
  • Javascript imports and exports
  • What is Lambda Calculus
  • VS Code as a markdown editor
  • Why Measure Dev Team Productivity?

Tags

.Net Ajax Bdd Blueprint Config Current Version Databases Default View Dependencies Feature View Footer Bar Gems Heroku Honest Description Implementation Instance Methods Interface irb Lt Mac Mvc3 Namespaces Nunit Os X Preference Product Controller Project Root Rake Razor Repository Rerun Roots Ruby Ruby and Rails Ruby On Rails Running Scripts Sql Databases Sql Server Stack Using Visual Studio Vim Visual Studio Vm Wordpress

Archives

  • May 2022
  • June 2018
  • May 2018
  • October 2015
  • September 2015
  • October 2014
  • September 2014
  • May 2014
  • March 2012
  • February 2012
  • January 2012
  • December 2011
  • October 2011
  • June 2011
  • May 2011
  • April 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • April 2010
  • January 2010
  • July 2008
  • July 2007
  • June 2007