The ramblings of Chad Humphries

Archive for the ‘programming’ Category

Installing Merb 1.0

with 4 comments

I saw that merb 1.0 came out and decided to install it. I jumped, nay leaped to the terminal and ran:

sudo gem install merb

I saw the following:

Successfully installed extlib-0.9.8
Successfully installed abstract-1.0.0
Successfully installed erubis-2.6.2
Successfully installed json_pure-1.1.3
Successfully installed mime-types-1.15
Successfully installed thor-0.9.8
Successfully installed merb-core-1.0
Successfully installed merb-action-args-1.0
Successfully installed merb-assets-1.0
Successfully installed merb-slices-1.0
Successfully installed merb-auth-core-1.0
Successfully installed merb-auth-more-1.0
Successfully installed merb-auth-slice-password-1.0
Successfully installed merb-auth-1.0
Successfully installed merb-cache-1.0
Successfully installed merb-exceptions-1.0
Successfully installed diff-lcs-1.1.2
Successfully installed templater-0.3.5
Successfully installed merb-gen-1.0
Successfully installed haml-2.0.4
Successfully installed merb-haml-1.0
Successfully installed merb-helpers-1.0
Successfully installed mailfactory-1.4.0
Successfully installed merb-mailer-1.0
Successfully installed merb-param-protection-1.0
Successfully installed addressable-1.0.4
Successfully installed data_objects-0.9.6
Successfully installed dm-core-0.9.6
Successfully installed dm-migrations-0.9.6
Successfully installed merb_datamapper-1.0
Successfully installed merb-more-1.0
Successfully installed do_sqlite3-0.9.6
Successfully installed dm-timestamps-0.9.6
Successfully installed uuidtools-1.0.4
Successfully installed dm-types-0.9.6
Successfully installed dm-aggregates-0.9.6
Successfully installed dm-validations-0.9.6
Successfully installed randexp-0.1.4
Successfully installed dm-sweatshop-0.9.6
Successfully installed merb-1.0

I’m all for modular, but ouch. 40 gems is quite a lot.


Written by spicycode

November 10, 2008 at 5:57 pm

Posted in programming

Tagged with ,

Using MacVim and want the same ruby bindings in console VIM?

leave a comment »

Just alias vim to the following.

alias vim='/Applications/MacVim.app/Contents/MacOS/Vim -p'

Written by spicycode

November 7, 2008 at 2:49 pm

Posted in osx, programming

Tagged with ,

Bringing VIM to the People

leave a comment »

What’s included?

  • IRB
  • Shell Mode with Syntax Highlighting for running test results
  • GUI+Terminal theme (spicycode) with nearest match color palletes
  • FuzzyFinder built-in and setup with reasonable defaults
  • User Settings file for user specific bits

How do I use it?

  • Clone the repo, or fork it if you want, then symlink .vimrc, .gvimrc, and .vim to your $HOME directory.
  • Copy the ~/.vim/example_user_settings.vim to ~/.vim/user_settings.vim and customize as necessary.

Where is it?

git clone git://github.com/spicycode/bringing-vim-to-the-people.git

Written by spicycode

November 7, 2008 at 2:25 pm

Posted in programming

Tagged with

Getting your keys tied and bound in ZSH

leave a comment »

Let’s take a little trip down to shell-ville. It’s a small town down on the coast where the locals still like to know the nitty gritty details of how their operating systems work.

Today we are going to visit Bind Key park. It’s said you can make almost anything happen there with just a keystroke or two. Why what’s this? It seems a local orator is giving a speech on the parks heritage.

To clear the line you must press Control-K.

bindkey '^K'

Lost at the end of the line? Go to the beginning with Control-A

bindkey "^A"

Having the opposite issue? Go to the end of the line with Control-E

bindkey "^E"

What’s more, you can search through your history backwards using Control-R!

bindkey "^R"

Not enough for you, how about just pressing Down?

bindkey "[B": history-search-forward

Fine, not easily impressed eh? Up will search your history back in time?

bindkey "[A": history-search-backward

Hmm, he does seem convincing. I’ve recorded the most informative bits in this post for all to see. If you wish to use this knowledge carefully inscribe it into your .zshrc file.

Written by spicycode

October 21, 2008 at 7:56 pm

Posted in programming

Tagged with

Type the project name to change to it’s directory in ZSH

Inspired by Muness I decided to implemented lazy project aliases in ZSH.  It’s a two step process.

1) Set your cd path

export CDPATH=~/programming/mine:~/programming/work:~/

2) Enable auto cd for directory names

setopt auto_cd

3) Profit?

Written by spicycode

August 7, 2008 at 6:43 pm

Posted in programming

Tagged with

Languages of Interest

I’ve been tinkering with a lot of other languages recently, here are a few of them.  What languages are you looking at?

ROCamlLisp, and IO

Written by spicycode

April 28, 2008 at 6:48 pm

Posted in programming

Revisiting the documentation project

I was up late last night and I ended up at the caboo.se rdoc project again. In case you haven’t heard caboo.se is running a documentation drive for rails.

They have a site up at rdoc.caboo.se that allows you to view the rails docs and submit documentation changes inline.

Take 20 minutes one day and see if there is something you can help improve the documentation for. It’s one easy way we can all give back to the community.

Written by spicycode

February 17, 2008 at 6:01 pm

Posted in programming

Tagged with ,