The most easy way is to start keys with colon ':'
:db:
- :host: db.host.com
:port: 5210
Now when you load this
db_config = YAML::load(File.open(File.expand_path('../config/database.yml', File.dirname(__FILE__))))
it will be "symbolized"
Monday, April 22, 2013
Thursday, April 11, 2013
Ubuntu crash after kernel or Nvidia proprietary drivers updates
How to restore Ubuntu if it crashes after kernel or Nvidia drivers updates
- Press Ctrl+Alt+T (or Ctrl+Alt+F1) to run terminal
- Install linux kernel source and headers
sudo apt-get install linux-source
sudo apt-get install linux-headers-<kernel version>-generic - Remove Nvidia drivers
sudo apt-get remove nvidia-current
or
sudo apt-get remove nvidia-current-updates
or
sudo apt-get remove nvidia-experimental-<version> - Reinstall Nvidia drivers
sudo apt-get install nvidia-current-updates - Reboot
sudo -r now
Subscribe to:
Posts (Atom)