• Home
  • About
Blue Orange Green Pink Purple

Archive for the ‘Tutorial’ Category

You can use the search form below to go through the content and find a specific post or page:

Aug 02

Updating Your Ruby on Rails Application Custom Environment via Passenger Pane

If you are working with a relatively up-to-date Ruby on Rails stack, chances are you would be using Phusion Passenger to deploy your application. Although passenger makes it extremely easy to deploy and restart your app, it also added a bit more complication when managing the Apache configuration files. The Passenger Pane (for Mac only) helped alleviate this problem by providing a nice little visual panel in your Mac’s Preference Pane:

Jul 14

Enhanced Open Terminal Here, for Leopard at Maururu

Ever find it annoying that you can’t go from the terminal to the same directory in the finder or vice versa on the Mac? So am I! It just seems terribly inefficient for power users who are proficient with the terminal to have to open up the terminal app and then manually cd into the current directory. Aside from just a waste of time and extra keystrokes (yes, tab to auto-complete does help a lot), it’s not easy to remember the exact path to the current directory. On top of that, OS X likes to make it harder for regular users to access root folders and it becomes a pain to use. I finally gave up and googled for solutions to go from finder to terminal today and found a great time-saver: Enhanced Open Terminal Here.

Jul 09

Inserting new line in echo command

Out of curiosity and the perfectionist in me, I “had” to print a line of text in the output inside a BASH shell script. I didn’t really want to split them into multiple echo statements since it’s a waste of space and actually harder to read for me. The first thing I tried was:

> echo “Line1\nLine2″ # Line1\nLine2

That clearly didn’t work out so well… so I thought maybe my Mac (OS X 10.5.7) likes ‘\r\n’ more:

One Giant Robot After Another

  • Recent Ramblings
    • Improving VLC Player load times of .MKV files on Snow Leopard
    • Updating Your Ruby on Rails Application Custom Environment via Passenger Pane
    • Enhanced Open Terminal Here, for Leopard at Maururu
    • Inserting new line in echo command
    • One Giant Robot After Another
  • What I'm Doing...
    • Not looking forward to weeks where I can see most of the time will be in meetings and it's only Monday 2010-08-16
    • finally broke the strings on my game racquet http://yfrog.com/0p8fxnj 2010-08-14
    • bart stopped again due to "unauthorized person on the trackway"... I am really not having much luck with bart every time I come to downtown 2010-08-14
    • More updates...
  • Calendar
    February 2012
    M T W T F S S
    « Nov    
     12345
    6789101112
    13141516171819
    20212223242526
    272829  
  • Tags
    apple applications featured hosting iPhone Mac OS X Passenger performance productivity review Ruby on Rails shell scripting Snow Leopard technical tips Tutorial
  • Archives
    • November 2009
    • August 2009
    • July 2009
    • June 2009
  • Search






  • Home
  • About

© Copyright One Giant Robot After Another. All rights reserved.
Designed by FTL Wordpress Themes brought to you by Smashing Magazine

Back to Top