Meditations, Musings and Memorial Stones

AVANIM :: TecHarmony

TecHarmony • Artful Technique and Beautiful Code

My git config

August 09, 2010 | Comments: 0
[user]
  email = avonderluft at avlux dot net
  name = Andrew vonderLuft
[alias]
  a = add
  ai = add -i
  b = branch
  br = branch
  co = checkout
  c = commit
  ca = commit -a
  cp = cherry-pick
  count = count-objects
  f = fetch
  h = help
  lf = ls-files
  l = log
  logs = log --oneline --graph --decorate --all
  ls = log --oneline --graph --decorate --all
  m = merge
  plam = pull avonderluft master
  psam = push avonderluft master
  plom = pull origin master
  psom = push origin master
  rem = remote
  rh = reset --hard
  shbr = show-branch
  s = status
  st = status
# Just for fun
  down = pull origin master # so I can type: 'git down' now and then
  back = reset --hard # 'to where you once belonged...'  
[apply]
  whitespace = nowarn
[github]
  user = avonderluft
  token = xxxxxxxxxxxxxxxxxxxxxxxxxxxx
[color]
  status = auto
  branch = auto
  ui = true

Radiant and conflicting versions of Rspec

July 02, 2010 | Comments: 0

If you are developing sites for more than one version of Radiant, you may run into version incompatibility issues with Rspec. For example, Radiant 0.7.1 requires Rspec 1.1.12, and Radiant 0.9 requires later versions. In order to use the appropriate version for each of your projects, you need to unpack the gems into the proper location of your project.

The following example assumes that your project is Radiant 0.7.1; that you have frozen radiant into your project; and that you have installed the 1.1.12 versions of rspec and rspec-rails.

cd RAILS_ROOT/vendor/radiant/vendor/plugins
gem unpack rspec -v 1.1.12
mv rspec-1.1.12 rspec
gem unpack rspec-rails -v 1.1.12
mv rspec-rails-1.1.12 rspec-rails

Now your specs will run in your 0.7.1 project, and your projects with later versions of Radiant will use the most recent version of the rspec and rspec-rails gems which you have installed.

Q.E.D.

Notes for other Rails apps

Notes for TextMate users

If you want to use the TextMate RSpec Bundle to run your specs:

Installing mysql gem on OSX Snow Leopard

May 13, 2010 | Comments: 2
With Rails 2.2, the bundled mysql.rb driver has been removed, so if you haven't installed the mysql gem before, you will have to do so now. To save yourself a lot of trial and error, try this first:
sudo env ARCHFLAGS="-arch x86_64" gem install --no-rdoc --no-ri mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config

Set TextMate's default file type

April 06, 2010 | Comments: 0

MySQL backups on your Mac

December 17, 2009 | Comments: 0

View Rails log in script/console

October 08, 2009 | Comments: 0

Watch on OSX

February 16, 2009 | Comments: 1

AVLUX is now hosting Radiant

February 28, 2008 | Comments: 0

Lithp Thycles

August 02, 2007 | Comments: 0

Hi, I'm Ruby on Rails...

May 14, 2007 | Comments: 0

MS interested in Ruby?

March 12, 2007 | Comments: 0

Beginnings of the Web

February 28, 2007 | Comments: 0

The Wow of Vista

January 30, 2007 | Comments: 0

Instiki and Ruby 1.8.4

July 25, 2006 | Comments: 0

Blogging from TextMate!

June 28, 2006 | Comments: 0

Cheat sheets for Rails

May 17, 2006 | Comments: 0

OSX Security Software?

May 08, 2006 | Comments: 2

Core Values: Integrity

April 18, 2006 | Comments: 1

New Ruby for Rails book

April 18, 2006 | Comments: 0

Backing up MySQL

April 15, 2006 | Comments: 0

Hail Rails 1.1, Hinchcliffe and DHH

March 30, 2006 | Comments: 0

You don't have to be big...

March 07, 2006 | Comments: 0

An insomniac's history of programming languages

March 07, 2006 | Comments: 0

Where to begin in learning Ruby on Rails

March 06, 2006 | Comments: 0

ADC on Rails

March 01, 2006 | Comments: 0

MacBook on Rails

February 24, 2006 | Comments: 0

Running Instiki - Best practices

February 15, 2006 | Comments: 0

How to connect a live site to Subversion

February 08, 2006 | Comments: 1

The Subversion Book

February 08, 2006 | Comments: 0

Optimizing Rails

January 31, 2006 | Comments: 1