Howdy, fellow geekster. I'm Robin Curry, and I mostly blog about Ruby, Rails, jQuery, css, development, and web design.


Follow me on twitter or grab my feed.

Chain Links #023

Posted: August 21st, 2009 | Author: robincurry | Filed under: Uncategorized | Tags: , , | Comments Off

Popularity: 11% [?]


Chain Links #022

Posted: August 18th, 2009 | Author: robincurry | Filed under: Uncategorized | Tags: , , , , | Comments Off

Popularity: 8% [?]


Chain Links #021

Posted: August 17th, 2009 | Author: robincurry | Filed under: Uncategorized | Tags: , , , , , , | Comments Off

Popularity: 9% [?]


Chain Links #020

Posted: August 13th, 2009 | Author: robincurry | Filed under: Uncategorized | Tags: , , , , | Comments Off

Popularity: 10% [?]


A better script/server alias for Rails

Posted: August 13th, 2009 | Author: robincurry | Filed under: Uncategorized | Tags: , | 1 Comment »

I’ve long had a bash alias for starting up script/server for a rails process that looked something like:

alias ss="./script/server"

This has worked all well and good, but I’ve been wanting more. I often find myself switching between projects and the time and effort it takes is just exhausting. I mean, think of all those keystrokes!

Inspired by @MikeG1′s tweet pining for a script/server to kill any other process running on same port, and a desire to make the switching process easier for myself, I came up with the following function that I added to my bash profile.

Now switching between rails apps is effortless. I can start the rails app from anywhere with no worries about conflicting processes (bye bye, you’ve been terminated) or even changing to the proper directory. Ahhh, my hands feel lighter already.

Enjoy!


# ss – A better script/server alias.
# Usage:
# ss <my_rails_app>
# Will
# – cd to the project directory (if argument provided, otherwise will use current directory)
# – kill any existing rails server instances
# – start the rails server

function ss {
  if [ "$1" ]; then
    # cd to the rails app directory.
    cd ~/proj/repos;  # (update the repository root location to suit your needs)
    if [ "$1" ]; then
      cd `ls|grep $1|sort|tail -1`
    fi
    echo $(pwd)
  fi
  # kill any existing rails server processes.
  ps -a|grep "ruby ./script/server"|grep -v "grep"|cut -d " " -f1|xargs -n 1 kill -TERM

  # start the server.
  ruby ./script/server
}

Popularity: 15% [?]


Chain Links #019

Posted: August 12th, 2009 | Author: robincurry | Filed under: Uncategorized | Tags: , , , , | Comments Off

Popularity: 9% [?]


Designs I Like: FeverĀ°

Posted: August 11th, 2009 | Author: robincurry | Filed under: Uncategorized | Tags: | Comments Off


FeverĀ°, originally uploaded by robin.curry.

feedafever.com

The UI for this thing is what’s HOT! I’m a sucker for flawless use of contrasting greyscale with minimal use of color.

The nav for this app is especially sexy. Lots of bells and whistles, but without giving up its minimalist feel. The A-Z vertical nav particularly caught my eye.

Popularity: 4% [?]


Chain Links #018

Posted: August 11th, 2009 | Author: robincurry | Filed under: Uncategorized | Tags: , , , , | Comments Off

Popularity: 6% [?]


Designs I Like: Household – Design Gallery

Posted: August 10th, 2009 | Author: robincurry | Filed under: Uncategorized | Tags: | Comments Off


Household – Design Gallery, originally uploaded by robin.curry.

www.household-design.com/our-clients/gallery

Great spacing. Love the large eye-catching images and the nice slider carousel effect. (and it doesn’t hurt that they are advertising my personal brand *wink*)

Popularity: 4% [?]


Chain Links #017

Posted: August 10th, 2009 | Author: robincurry | Filed under: Uncategorized | Tags: , , | Comments Off

Popularity: 7% [?]