Install Munin 2.0.x on Ubuntu 12.04

Ubuntu 12.04 is still one of the most popular linux distros with LTS term, yet it is packaged with a very outdated munin 1.4.6 binary distribution. Munin is a networked resource monitoring tool that can help analyze resource trends and “what just happened to kill our performance?” problems. It is designed to be very plug … More Install Munin 2.0.x on Ubuntu 12.04

Virtualbox 4.0 USB devices grayed out

USB devices grayed out due to permission Here, I assume that you already installed VirtualBox Extension Packs 1. Usually VirtualBox will add “vboxusers” group for you, but if not 2. Change /dev/vboxdrv group to vboxusers 3. Add read/write permission for group to /dev/vboxdrv 4. Add your user to vboxusers group 5. Logout and login again … More Virtualbox 4.0 USB devices grayed out

Use Helper module within controller (Rails)

ជា​ទូទៅ​ Helper ក្នុង Rails ត្រូវ​បាន​ប្រើ​ប្រាស់​ដើម្បី​សម្រួស​ដល់​ View rendering ដូច្នេះ​ហើយ​ method ដែល​នៅ​ក្នុង Helper មិន​ដំណើរការ​ទេ​បើ​អ្នក​យក​វា​ទៅ​ប្រើ​នៅ​ក្នុង Controller។ /app/helpers/formating_helper.rb module FormatingHelper def to_yes_no(value) value == true ? "yes" : "no" end end   It will raise unitialized method exception when you trying to access the helper method in controller. In order for this to work you can fake the helper … More Use Helper module within controller (Rails)

Install Ruby on Rails on Ubuntu

1. Update server and install related packages:   2. Manually Install rubygems (Packaging system) Manually install rubygems so you can get the version we are going to install. wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz tar xvfz rubygems-1.3.5.tgz ruby rubygems-1.3.5/setup.rb ln -s /usr/bin/gem1.8 /usr/bin/gem gem update –system #Tidy Up rm -rf rubygems-1.3.5.tgz rubygems-1.3.5   3. Install rails and require packages: … More Install Ruby on Rails on Ubuntu