Wednesday, December 17, 2008

Tuesday, December 16, 2008

aiyak!

so many time wasted la installing this thing...
need to bare in mind, if ure running in something new...always get the latest version...ts

so now im uninstalling rubygems 1.2.0 te outdated one with the latest version which is 1.3.
how do you get the latest version...?
im a ubuntu/linux newbie myself, so im sure there r a lot of other ways to get this rubygems installed on your system.

as for me, i went direct to its download homepage and copy the link of its latest release.

then, paste it on your terminal, using the wget command.and Alhamdulilllah, rubygems is finally updated.

Monday, December 15, 2008

MYSQL server

to install mysql on ubuntu, all u need is , type this command onto your terminal

sudo apt-get install mysql-server

when it is done, u can either create and manage your database thru command line as MY SQL is a command line based application. OR...jeng jeng jeng... use can install an GUI application that can manage your MySQL.
For windows : Mysqlyog, MYSqlControl center,..,...
for ubuntu : mysql-admin,mysql-navigator, mysql-query-browser


Currently im using mysql-admin.
u can get this by command line

sudo apt-get install mysql-admin

or open your System > Administration > Synaptoc Package Manager
Search for mysql-admin and click apply. it will install it for you.
so i wanna code in ruby.
when i first tried to installed ruby & RoR, i installed on windows.
macam2 hal.altho it says ruby is cross platform, still it doesnt support everything.
like for example mysql dont go well with rubygems and so on.
a sifu told me that if u wanna stick with windows, it is better to use sqlite3. but sqlite3 is not good for live production. mysql is. so what u need to do is, continue use sqlite3. but on the server, install mysql and use an adapter and set it as sqlite3.

but then i converted to ubuntu as vista drove me nuts with all the credentials and slowness and so on.
so heres how i install ruby and ruby on rails on ubuntu.

first and foremost, open a terminal...and start installing...

wget http://rubyforge.org/frs/download.php/38646/rubygems-1.2.0.tgz
tar xzvf rubygems-1.2.0.tgz
cd rubygems-1.2.0
sudo ruby setup.rb
sudo ln -s /usr/bin/gem1.8 /usr/bin/gem
sudo gem update --system


refer link

Wednesday, December 10, 2008

reinstalling rubygemssssss

my rubygems went wrong somehow. i kept getting this error..

/usr/bin/gem:10:Warning: Gem::manage_gems is deprecated and will be removed on or after March 2009.

then , i found this article disscussing the same error , i followed.but still to no avail.everything went upside down inside out..so i decided to reinstall the whole thing...

buang masa je la beb...

sudo rm -f /usr/bin/gem1.8 /usr/bin/gem
sudo rm -rf /usr/lib/ruby/gems

Wednesday, June 4, 2008

VMware did not recognize usb device

Some of the Linux distributions that are known not to mount USBFS by default including mine ubuntu.
thanks to 1 of my teamates,Ali, bukan nama sebenar, he found a website that resolve the problem.

To configure the host to mount USBFS automatically on bootup, all u need to do is add the following line in the /etc/fstab file:

usbfs /proc/bus/usb usbfs auto 0 0


ref :http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=3862823