Skip to main content

Posts

Showing posts from January, 2014

Setup Sinatra Application on Hostmonster.

Step 1 - Environment SetupMake sure that you have ruby installed on environment, and have SSH access. To your account.Step 2 - Create Ruby on Rails EnvironmentLogin to your Hostmonster C-Panel.Click Ruby on Rails icon.Fill out form with your informationStep 3 - Setup Directory LinkSSH into your account and goto where you would like the base of your app to be in. For example if you have website www.example.com and you want it hosted at www.example.com/myAppln -s ~/rails_apps/myApp ~/public_html/myApp
Step 4 - Clean up automatic Rails files.rm -Rf ~/rails_apps/myApp/* Once you have cleaned up the directory copy your sinatra files to ~/rails_apps/myAppIf you have a Gemfile this would also be a good time to run a "bundle install" while you are in the directory. If you don't get your gems loaded you will experience problems.Step 5 - Setup your .htaccess fileOpen up your .htaccess file for the myApp directory and make it look like this. Make sure that you replace the sections …

Set Git to stop tracking file

I have found the need to ignore a file with out using the .gitignore. In my case its because of a chrome driver that we using for Cucumber and Watir. The office has a standard setup with a certain repository, however on my Mac chrome likes to update. This causes an issue with versioning of the driver. So I wanted to put a new chromedriver in my repository folder but not ignore it from the repository. To do this little trick I can update the index and tell it to assume the file is unchanged.git update-index --assume-unchanged <file> If you have the need to reverse the tracking of the file.git update-index --no-assume-unchanged <file>

Git Autocomplete

Step 1Run this command to get the .git-completion.bash file downloaded to your home directory.curl https://raw.github.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash
Step 2Add the following code to your .bash_profile which is located in the root of your home directory.if[ -f ~/.git-completion.bash ]; then . ~/.git-completion.bash fi Now when you open up your shell you will be able to use the TAB key for your Git commands.

What Isaiah might say.

During my daily bible study I came upon Isaiah 1:1-20 and thought wow this sounds really familiar. I thought to myself... I wonder what it would sound like if Isaiah the prophet lived in the United States and saw all the things that are happening today. What would he say. This is my take. Maybe this could inspire you to take a crack at it on your own.
Ladies and Gentlemen of the United States of America please take this to your heart. The sons and daughters of current and future generations are revolting against the Lord God Most High. We have lost the common knowledge of whom we serve, and placed and idol of money, and property in His glorious place. We are the richest sinful nation in the world, and are weighed down by the luxurious appeal of corruption and iniquity of others. We have abandoned the Lord, have no regret for the sin in our hearts and have completely turned away from him. When will this rebellion end? When will we see that the pain and suffering of bad health, depr…