Functional shared Google calendars for your website
The Google Embeddable Calendar Helper rocks. You can create multiple Google calenders under your account and create one merged calender view showing all of them. We used to to create a shared calendar for Church of the Resurrection, Hosanna Assemblea de Dios, and Holy Apostles church here:
http://resurrectionbellevue.org/happening/calendar
You can color code the various calenders. The view provides a drop-down selector where users can pick which calenders to display – and a “save as” feature off the print button that creates a PDF. Nice.
I did find that the Google API is sensitive to the URL format. Joomla kept replacing the & codes in the generated URL with ampersands; that seemed to not work. I had to poke the snippet directly into PhpMySQL to get it to work.
Deploying a Rails app to Dreamhost
This has been said before elsewhere. I’m putting it up for my own reference. If these notes are too terse, reference:
- http://gabrito.com/post/keeping-rails-running-at-dreamhost-part-2
- http://wiki.dreamhost.com/index.php/Ruby_on_Rails
Domain and DB setup
- Specify fastcgi
- Create a new user specifically for the domain you’re adding.
- Create the MYSQL database
Set up SSH keys
ssh username@yourdomain.com 'test -d .ssh || mkdir -m 0700 .ssh ; cat >> .ssh/authorized_keys && chmod 0600 .ssh/*' < ~/.ssh/id_dsa.pub
Set up a local set of gems
mkdir .gems echo 'export GEM_HOME="$HOME/.gems"' >> .bash_profile echo 'export GEM_PATH="$GEM_HOME:/usr/lib/ruby/gems/1.8"' >> .bash_profile echo 'export PATH="$HOME/.gems/bin:$PATH"' >> .bash_profile source .bash_profile
Verify your gem setup with
gem env
Note the gem path from the above command and reference it in the next command:
rm -f /PATH/TO/GEM/PATH/FROM/ABOVE/source_cache
Then,
gem update
This one will take a while.
gem list
Site Config
- database.yml
- environment.rb : comment in RAILS_ENV statement
- dispatch.rb: http://gabrito.com/post/keeping-rails-running-at-dreamhost-part-2
Hello World!
Welcome to Typo. This is your first article. Edit or delete it, then start blogging!