fousa tag

Current tag: tag

2010

8 APR

My Rails templates

Ruby on Rails has a nice feature where you can generate a new rails project with a template. My templates are based on the newest version of Rails at the moment: Rails 3.0.0beta At the moment my templates handle: jQuery integration git git push to Github HAML integration HTTP basic authentication single password authentication ...

1 MAR

Staging environment on Heroku

Sometimes you want to test your application on one of your production servers so you can let your clients test your application in real life! What I wanted to do is point the master branch to dev.testapp.com and the production branch to testapp.com. The subdomain dev.testapp.com is my staging environment where the clients can play with the ap...

24 FEB

My Git integration with Terminal

The following scripts are added to my ~/.bash_profile for some Git integration. BRANCH AUTOCOMPLETION This piece of code autocompletes the branches when you press TAB. So "git checkout ma" and press TAB, will result in "git checkout master". _complete_git() { if [ -d .git ]; then branches=`git branch -a | cut -c 3-` tags=`git ta...

16 FEB

Heroku and Github for the same project

WHAT'S THE PROBLEM? I have a local branch called master. And I'm currently pushing this branch to my remote Github branch. Now I also want this branch to be used as my Heroku master branch. So I can deploy my code to the Heroku servers. What is my problem? I have a config.yml file with sensitive information inside. And I want it to be push...

8 FEB

Convert MySQL DB to PostgreSQL DB

When I was converting my blog to the heroku, I decided to convert my local database from MySQL to PostgreSQL. This for developing purposes because it's a bad practice to have 2 different systems in development and production. This is my current setup: 1 local MySQL database with my production dump in it. A new PostgreSQL database that is up a...

15 JAN

Reinitialize your Git repo // 1 comment

This came in very handy when you want to reinitialize your Git repository from scratch without losing the current folder structure. WHY? I started developing an iPhone application and for API testing purposes I manually added my username and password in the code. And by accident I committed the change... So now my password was in the Gi...

2009

10 NOV

RuPy, a Ruby/Python Conference (day 2)

And we're back attending RuPy on the second day. For those of you who missed DAY 1, just check out the linked post. I had to split up, because I didn't want to overkill the post. I also attended the very interesting "Mastering GIT" talk, but I will make a short post on it for your convenience! Let's start! RABBITMQ This is a handy li...

20 JAN

Uploading a rails plugin to Github // 1 comment

I recently looked for a nice SVN repository to store my rails plugins for public use. But I searched the web and found that the most common way was to put the rails code on a github repository. So I created my github account, and then an open source repostiory (named 'plugin-test'). Before you continue with this tutorial, you should check thi...

2008

19 NOV

Using the simplify_time_calculations plug-in // 3 comments

I'm currently busy with creating a administrative website to keep a flight log of all the flights made by a member of my soaring club. Just in case you wonder what I'm talking about, I'm a passionate glider pilot at http://www.dewouw.be. And we always have a start time (format HH:MM) and a landing time in the database. But because it was to hard...

go to the top ↑ ← back to the blog