Archive for the ‘Operating Systems’ Category
Friday, August 22nd, 2008
Eclipse 3.4 (Ganymede) was released a few months ago.
I have been working on the studio project on my laptop, using Eclipse (3.3 Europa) along with the Aptana plugin, RadRails plugin and Subclipse plugin.
The version of Eclipse that is in Hardy Heron’s repository is 3.2.2 or so, which is a few versions behind. So I decided, instead of installing from the repository, I should really install the latest available version.
Eclipse Ganymede comes in many different packages, and each package has downloads for different operating systems (namely Windows, Mac OS X, Linux 32bit, Linux 64bit). Since I am installing on my desktop (Ubuntu), I chose Eclipse Classic 3.4 (151 MB) (Linux 32bit).
After the download completed, I extracted it to /home/hantu/development/:
mv eclipse-SDK-3.4-linux-gtk.tar.gz ~/development
tar xvf eclipse-SDK-3.4-linux-gtk.tar.gz
Note: Initially, I wanted to install it under /opt/, but there is an issue regarding the file permission which I am not able to figure out. Something along the lines of .filetablelock Permission Denied. I’ll figure this out eventually, someday..
Surprisingly, Eclipse just works!
Next, without repeating what others have already documented, install Aptana Studio as a plugin of Eclipse. Don’t forget to install the Ruby on Rails support from Aptana’s Start Page (Help -> Aptana Studio Start Page…).
Subclipse is a plugin to work with SVN, instead of the default CVS support of Eclipse. Subclipse might not work with Eclipse 3.4, but I followed the instructions offered by a good man, so far, things are working perfectly.
More notes: I said ‘on Linux’ because I assume it is the same, for different distros, since downloading from Eclipse’s website does not require you to compile from source. Correct me if I am wrong.
Posted in Monash, Ruby on Rails, Technology, Ubuntu | No Comments »
Friday, August 8th, 2008
Remember my previous posts about installing VirtualBox on Ubuntu Hardy Heron?
It has been a while since I last played with it, due to other commitments. So, I wanted to install Windows XP on VirtualBox, and I stumbled across this error: VirtualBox kernel driver not installed.
Not sure what went wrong, could be some updates in between broke it, if anyone know the exact reason for this, let me know.
To fix, follow the instruction:
sudo /etc/init.d/vboxdrv setup
* Stopping VirtualBox kernel module
* done.
* Recompiling VirtualBox kernel module
* done.
* Starting VirtualBox kernel module
* done.
And I tried to start my VM again, it works.
Posted in Ubuntu, Virtualisation | No Comments »
Thursday, June 26th, 2008
I have been using Quicksilver on my MacBook for a couple of months now, kinda used to it now since I can launch applications and do most of the daily tasks without having to point-and-click too much.
What if you want something similar that runs on your Linux system? Ladies and gentlemen, say hello to Gnome Do.
To install it, add the following PPA repositories into your sources list:
deb http://ppa.launchpad.net/do-core/ubuntu hardy main
deb-src http://ppa.launchpad.net/do-core/ubuntu hardy main
Reload Synaptic, then search for Gnome-Do. If you are a CLI guy, do this:
sudo apt-get update
sudo apt-get install gnome-do
When installed, you can Gnome-Do from Applications > Accessories > Gnome Do.
The default hotkey is <Super>-Space, you can easily edit this from Gnome-Do’s Preferences. There’s also easy access to all the official/third-party plugins from the Preferences dialog.
A few plugins that I find useful:
- Files and Folders: indexes files in your specified directories.
- Flickr: upload photos to Flickr
- GNOME Dictionary: add ‘define’ function to Do
- GNOME Screenshot: take screenshots of whole screen or current window, with delay
- Twitter: tweet from Do!
Posted in Ubuntu | No Comments »
Friday, June 13th, 2008
When I tried to connect to MySQL from PHP, using mysql_connect, it gives me the “Can’t connect to MySQL through socket” error. And I am definitely sure, I added the user into MySQL, and had the correct password.
mysql_connect('localhost', 'username', 'very_encrypted_password');
The thing is, it works if I use 127.0.0.1 instead of localhost, strange..
MySQL:
$ mysql --version
mysql Ver 14.12 Distrib 5.0.51a, for apple-darwin9.2.2 (i686) using EditLine wrapper
PHP:
$ php --version
PHP 5.2.5 (cli) (built: Mar 4 2008 22:57:15)
After asking for help from Colin, who gave me a head start and some google’ing, I found a solution.
Quoted from the site [1]:
One problem that has come about with MySQL and Leopard is the location of the mysql.sock file. Previously, the default location for this file was in the /tmp directory. That location has now moved to the /var/mysql directory. PHP will look for it there. Unfortunately, the default location from the MySQL will still place it in the old location.
First of all, stop MySQL. Then open up /etc/my.cnf:
sudo vim /etc/my.cnf
In my case, I only had a couple of lines there:
[mysqld]
binding = 127.0.0.1
Add these line, to the appropiate headings:
[mysqld]
socket = /var/mysql/mysql.sock
[client]
socket = /var/mysql/mysql.sock
Then, create the directories and set the proper permission:
sudo mkdir /var/mysql
sudo chown _mysql /var/mysql
Finally, restart MySQL, and try it out!
ref:
- Working with PHP 5 in Mac OS X 10.5 (Leopard)
Posted in Mac OS X, MySQL | No Comments »
Wednesday, June 11th, 2008
I stayed up all night yesterday, just to follow the Apple WWDC Keynote by Steve Jobs.
Summarising some important points from the Keynote:
The Keynote can be found on Apple’s website, or iTunes. There is also a new iPhone 3G ads.
Posted in Mac OS X, Technology | No Comments »