Vim Commands You Need to Know: Episode 1October 08, 2013 |
Most people who have spent any time using the command line have learned to use vim well enough to edit conf files: moving the cursor, entering insert mode, and saving and quitting the file :wq
. I know because I was one of those people for years. It wasn't until I found a few magical commands that I truly understood why vim was a true competitor in a world of IDE's and Textmate clones.
Vim Find and Replace in Project: Episode 2October 06, 2013 |
A while I ago I posted about an efficient way to do find and replace in files.
:args `ack -l keywords`
:argdo %s/keywords/replacement/ge | update
Installing Ruby 2.0.0 on OSX 10.8 Mountain LionMay 26, 2013 |
ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)
brew doctor
brew update
brew install apple-gcc42
brew install rbenv ruby-build openssl
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
source ~/.bash_profile
rbenv install 2.0.0-p0
rbenv rehash
rbenv global 2.0.0-p0
rbenv shell 2.0.0-p0
Modern Gem Crafting in RubyMay 25, 2013 |
Here is the most modern approach to gem crafting with Bundler:
bundle gem your_gem
cd your_gem
edit your_gem.gemspec and add description, summary and optional website. Add required gems such as rspec to the Gemfile.
rspec --init
touch spec/your_gem_spec.rb
Write good tests. Add your code to lib/your_gem.rb. When you're finished its time to build and push to rubygems.org:
Taylor-RealtorsJanuary 29, 2013 |
Taylor-Realtors is a Montana Real Estate Firm. The site features fast keyword and advanced searching using the Sphinx Engine with Thinking-Sphinx and multiple MLS feeds. One of challenges I faced during development was parsing the many types of files given to us through MLS providers because they don't all use the same format and they only provide images for the last couple days of listings so all the rest