Satya's blog - 2007/05/
I've been watching Star Trek: The Next Generation and I realised that Dr. Crusher often uses something called "inaprovaline". Apparently it's a stimulant because she's always using it on unconscious people. I was wondering if it can be used to treat mesothelioma -- which tells you how much I know about pharmacy, as mesothelioma is some kind of asbestos-related lung disease. Hmm, Wikipedia has an article on inaprovaline, too. Seems there are whole web sites devoted to a database (oy, ask me sometime about the confusion at work!) of Star Trek medications.
Instructions on how to quickly get a rails project into subversion, based on http://wiki.rubyonrails.org/rails/pages/HowtoUseRailsWithSubversion. (Actually, almost verbatim but tailored for my work habits. Your mileage may vary.) These are geared towards use at work and with butterfat, especially the first bit about the server.
On the SVN server:
In your_rails_app (created by the command `rails your_rails_app`): # svn import . repository_url -m "Import" --username user # cd .. # mv your_rails_app your_rails_app-backup # svn checkout svn_url_to_your_repository your_rails_app # cd your_rails_app Then do these (you should be able to copy paste): # Remove the log files. svn remove log/* svn commit -m "removing all log files from subversion" # Ignore the log files when they are re-created svn propset svn:ignore "*.log" log/ svn update log/ svn commit -m "Ignoring all files in /log/ ending in .log" # Ignore the tmp directory with all its content (cache, sessions, sockets) svn remove tmp/* svn propset svn:ignore "*" tmp/ svn update tmp/ svn commit -m "Ignoring all files in /tmp/" Note: this post is mainly as a note to myself. Your situation may be different. Among other things, I use mongrel, not Capistrano or Switchtower.
Okay, you have a Ruby on Rails project, and Mongrel. Suppose your project is 'spiffy' and can be found at http://yourspiffyserver.com/spiffy
In config/routes.rb, add:
Somewhere in your default routes, in the same routes.rb file, add the route to
your default controller and method, the things you want to hit when someone
goes to http://yourspiffyserver.com/spiffy
Symlink your public directory to your project name: Be sure to give your web server write access to log/ and tmp/ with a chown -R.
Add something like the following in your Apache config (remember, this is for Mongrel):
Add to /etc/mongrel/sites-available/ a file called spiffy or spiffy.conf containing:
As usual, these instructions may or may not work for you.
This morning I woke up and felt very off-balance. I had trouble focussing on
stuff. I assumed it was due to less sleep and general morning bleariness.But
during my shower I discovered that one of the lenses in my glasses had come off
when I placed them on the nightstand last night. Yeah, that'll mess with stereo
vision.
|
|