-
-
Archives
[Linux] Completely uninstall MySQL
Open up your Terminal and login as root by entering the following command:
sudo -s
Remove MySQL:
apt-get –purge remove mysql-server apt-get –purge remove mysql-client apt-get –purge remove mysql-common apt-get autoremove apt-get autoclean
Check if there are any MySQL dependencies installed:
apt-cache rdepends mysql-server apt-cache rdepends mysql-client
Delete the preference files:
rm -rf /etc/mysql
Find all files with “mysql” and delete it:
find / -iname ‘mysql*’ -exec rm -rf {} \;Reference : http://stuffthatspins.com/2011/01/08/ubuntu-10-x-completely-remove-and-clean-mysql-installation/
[Linux] Enable NO Password login in phpMyAdmin
phpMyAdmin in Linux by default does not allow NO Password login.

To fix this issue, sudo open the file in /etc/phpmyadmin/config.inc.php
Uncomment the following line:
$cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
[WordPress] Version 3.3 Admin Toolbar
After updating to WordPress Version 3.3, the admin toolbar is now different from version 3.2.x
Left side of the admin toolbar:

Right side of the admin toolbar:

The admin toolbar is now neater and nicer looking.
KBC Race Mechanical Keyboard backlit demonstration
Brand: KBC
Model: Race
Switch Type: Blue
LED Color: Green
If you are interested in getting this keyboard, do drop an email to info@rabbitwebfactory.com
Installing Rails Node.js in Ubuntu
I faced with the following error when bundling install a Ruby on Rails application:

I already had mysql2 installed and the error turned out that my development environment is lacking of Node.js
To install Node.js in Ubuntu, open up your Terminal and enter the following command:
sudo apt-get install python-software-properties sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs
For other Linux distro installation, refer to Node.js @ GitHub.
[Linux] Completely remove apache2 in Ubuntu
Open up your terminal and login with root access:
sudo -s
Enter the following command to list all the installs of apache2:
dpkg --get-selections | grep apache2
Remove all the installs of apache2:
apt-get remove --purge apache2 XXXXXX XXXXXX
where XXXX are the installs generated from the previous command.
To install apache2 again, you can execute the following command:
apt-get install apache2
[Linux] Gedit highlights for Ruby on Rails
By default, Gedit in Linux only supports Ruby or Ruby on Rails (RoR) syntax highlighting. You will find that RoR tags are not being highlighted even if the highlight mode is set to RubyOnRails.
To support highlighting of RoR tags in .rhtml or .html.erb files, install Gedit plugin called gmate.
Firstly, open up your Terminal and add Ubuntu on Rails PPA:
sudo apt-add-repository ppa:ubuntu-on-rails/ppa sudo apt-get update
Next, install gedit-gmate package:
sudo apt-get install gedit-gmate
Open a RoR file with Gedit. Go to View -> Highlight Mode -> Markup.
Check RHTML/ERB as the highlight mode.

gmate plugin also shipped with various theme files for Gedit. For more information, do refer to gmate @ Github
[Linux] Check Ruby and Rubygems version
To check Ruby version installed on a Linux, enter the following command in Terminal:
ruby -v
To check for Rubygems version, the command is:
gem -v













