Archive for July, 2010

Bookmark with Delicious

Have you ever heard about delicious ? no no, it’s not foods that are delicious but this Delicious.

Delicious is a web application that allows to do the online bookmarking. If you say online that’s mean it’s not saved in your computer / laptop / server maybe. So if sometime you need to access your bookmark, you don’t have to open your computer or digging your old harddisk, just grab your friend’s computer, login to your Delicious and open the bookmark.

And what I like is it has the plugin for Firefox. It works just like the normal bookmark in Firefox ( using the same shortcut ctrl+D ) and it will automatically synchronize with the server. With that feature, if you bookmarked a website in your home computer, when you go to the office in the next morning and running Firefox at your office’s computer, the Delicious plugin will update all the bookmarks in your office’s computer. Surely it will happen vice versa.

The concept itself is simple, but the effect is so great. This online bookmark makes me don’t have to worry losing my bookmark in the future.

But just one thing that I think is missing. It doesn’t provides you with the capability to grouping the bookmarks. Actually it has, through tagging. But I want something more like a folder, so I can put something that are important to some special folder. But overall the current features already fulfill my needs at the moment. ( I don’t know if I have 1000 bookmark ) :D

Installing OpenVZ and WebVZ in Centos 5.5

OpenVZ is an operating system-level virtualization technology based on the Linux kernel and operating system. OpenVZ allows a physical server to run multiple isolated operating system instances, known as containers, Virtual Private Servers (VPSs), or Virtual Environments (VEs).

Now we’ll trying to install OpenVZ in Centos , because it’s an operating system-level so you need to install it on top of Operating System ( if you are using hardware virtualization like Xen or VMware then you don’t have to install an Operating System ).

The first step is that you must install the Centos ( I am using Centos 5.5 ). I won’t explain about how to install it so you must find the tutorial yourself :P

Let’s say you already installed the Centos, next step is updating your yum package manager. Here are the steps :

  • Download the OpenVZ repo from http://download.openvz.org/openvz.repo
  • Put it in /etc/yum.repos.d directory
  • Run the yum update command

Wait until the process is complete, it will downloading all the necessary update package. ( you can find the complete tutorial in OpenVZ Wiki ).

Now we will install the OpenVZ, type this to install the OpenVZ :

yum install ovzkernel vzctl

If the installation running smooth you will have OpenVZ installed, reboot your machine :

reboot

Press any key when the Grub screen is popping out. If it’s installed then you must have 3 kernels. Choose the top kernel ( it’s the OpenVZ kernel, in my machine it’s name is CentOS ( 2.6.18-194.3.1.el5.028stab069.6 ).

Log in to your machine as usual, now you are running on OpenVZ kernel. The next step is we will install WebVZ ( the OpenVZ management GUI ). The WebVZ, like it’s name, is a web application that runs on Ruby on Rails. So you must have Ruby on Rails in your machine to use the WebVZ.

To help us installing the Ruby on Rails we will use Ruby Works . Ruby Works is one of the CentOS repository that provides with the newest installer of Ruby, Gem and Rails.

Here are the steps :
1.Download the repo file

wget http://rubyworks.rubyforge.org/RubyWorks.repo

2.Put it the file in the /etc/yum.repos.d
3.yum update

yum update

4.Installing the ruby packages

yum install ruby ruby-devel ruby-irb ruby-rdoc ruby-ri

5.Check the installed Ruby using this command ( it should print out the ruby version eg: ruby 1.8.6 )

ruby -v

6.Then download the latest gem at Rubyforge
7.After download the latest gem, extract it, go the folder and run the installer

ruby setup.rb

8.Check if the gem is installed successfully ( it should return the version too )

gem -v

9.Run the gem update to make sure the gem is up to date.

gem update

10.Install the rails

gem install rails -v=2.3.2

11.The WebVZ need sqlite to run, so you must install the sqlite and the gcc compiler

yum install sqlite-devel
yum install gcc make

12.And the last is installing the sqlite for ruby

gem install sqlite3-ruby -v=1.2.5

13.Download the WebVZ installer from it’s website. Extract it and run the application.

cd webvz
ruby script/server

That’s all, then you can access it via web browser http://your-ip:3000. the username is admin and the password is admin123.

Update : ( run the WebVZ as daemon )
to run WebVZ as daemon just go to it’s directory run this command instead of plain “ruby script/server”

ruby script/server &>/dev/null &

and to make it’s run everytime you boot the machine ( put it in rc.local )

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
 
cd /usr/local/webvz/ && /usr/bin/ruby script/server &>/dev/null &
 
exit 0

Eclipse Democamps 2010

Kemarin tanggal 10 Juli 2010 gwa baru saja ikut Eclipse Democamps 2010. Yah sebenarnya gwa ga tau ini termasuk seminar, meet up atau promosi eclipse tapi berhubung gwa adalah pengguna Eclipse semenjak beberapa bulan lalu maka gwa iseng-iseng datang ke acara ini.

Perjalanan dimulai dari kosan gwa dengan ditemani sang kekasih yaitu adinda Riani yang imut dan bulat seperti bola ping pong ( nyungsep dolo sebelum kena granat ). Sebenarnya kami rada telat berangkatnya ( kira-kira jam 9:30 ) sementara acaranya jam 10:00 dan ditambah lagi gwa dan riani ga tau jalan sekali kesana.

Dibekali dengan insting hewani maka kami nekat berangkat dan ternyata berakhir dengan muter-muter di sudirman. Sebenarnya gwa tau persis itu posisi gedung stock exchange ( setelah dikasih tau riani ) tapi emang jalan sudirman kalau mau muter balik rada ribet jadi berakhir lah kami jalan-jalan hampir setengah jalan sudirman. ( bagi yang sudah lama malang melintang di jalan sudirman pasti sudah tau la )

Setelah sampai tempat parkir motor adinda Riani sempat merasa kesal gara-gara kami rada telat sampenya ( kira-kira jam 10:18 ) dan sepertinya kami salah markir motor. Tapi ternyata setelah kami tanya ke satpam yang bertugas ternyata kami tidak salah parkir motor dan gedung stock exchangenya berada di sebelah tempat kami parkir motor ( dan riani yang tadi kesel seperti mesin diesel berubah menjadi senang seperti mesin benang ).

Gambar Riani Cemberut

Gambar Riani Cemberut

Cukup cerita tentang masalah dalam negeri, kita lanjut dengan cerita tentang acaranya. Ketika kami datang ternyata acaranya belum dimulai dan yang datang kok lebih sedikit dari yang diperkirakan ( kira-kira ada 30 orang saja ). Saat itu ada seorang bapak dari microsoft tengah berbincang-bincang dengan para peserta ( maaf ya pak saya lupa nama bapak ) –> setelah dikasih tau ternyata nama bapaknya Risman Adnan.

Dari perbincangan singkat bapak itu, gwa dapat menarik kesimpulan bahwa ternyata sang bapak kerja di microsoft ( ya iyalah ) dan dalam perbincangan singkat, bapak tersebut meng-encourage para peserta agar bisa buka bisnis sendiri serta tidak mempunyai mental karyawan. ( si bapak banyak menceritakan keluh kesahnya jika umur sudah tua, punya anak dan “gampang”nya buka bisnis )

Selesai dengan seminar motivasinya ( arigatou bapak microsoft ) kemudian dilanjutkan dengan acara intinya. Acara pertama dimulai dengan presentasi cara mengintegrasikan Eclipse Helios dengan Team Foundation Server ( version control punya microsoft ) yang dibawakan oleh pak Ronald Rajagukguk. Namun dikarenakan gwa sudah jatuh cinta dengan Git maka gwa ga gitu tertarik untuk mencobanya, tapi lumayan buat tambah ilmunya ( terima kasih pak Ronald Rajagukguk dari microsoft atas ilmunya).

Selesai makan siang baru dilanjutkan lagi dengan presentasi tentang Eclipse Helios yang dibawakan oleh pak Frans Thamura dari Meruvian Foundation. Presentasi yang dibawakan oleh pak Frans termasuk singkat dan lebih banyak “belajar sendirinya”. Dan dari presentasi “belajar sendiri” ala pak Frans maka yang bisa gwa simpulkan adalah :

Eclipse Helios ga berbeda jauh dengan Galileo tapi ada tambahan fitur market placenya ( udah kek main age of empire aja pake market ) dan fitur-fitur lainnya yang tidak sempat dijelaskan.

Setelah presentasi “belajar sendiri”, acara dilanjutkan dengan presentasi tentang Android dengan menggunakan Eclipse dan ditutup dengan presentasi tentang BlueOxygen yang ‘kayaknya’ merupakan sebuah IDE yang memungkinkan kita membuat design UI Java seperti di VB ( wah cocok buat gwa yang baru mo pegang Java).

Overall menurut gwa acaranya cukup asik karena tempatnya enak ( microsoft gitu loh ), dapat makan ( padahal gwa ampir desperate mo cari makan dimana ), dapat ceramah tentang pandangan orang-orang yang lebih berpengalaman di dunia IT terutama bertemu dengan pak Frans Thamura.

Secara pribadi gwa belum pernah ikut seminar, meet up atau acara-acara open source lainnya. Salah satu acara open source yang selama ini ingin gwa ikutin adalah CakeFest ( semacam seminar tentang CakePHP Framework). Tapi apa daya, uang ga punya, acaranya jauh di chicago jadi terpaksa mencari-cari konferensi PHP yang dekat.

Cake Festival

Cake Festival

Tetapi sejauh mata memandang gwa belum pernah menemukan konferensi PHP atau meet up PHP di Jakarta khususnya yang membahas tentang advance teknologi PHP ( yah kalau basic PHP, Joomla, Drupal, WordPress mungkin banyak ya ). Gwa sih pengennya ngumpul-ngumpul dan omongin tentang teknologi PHP yang terbaru seperti PHP 5.3, fitur namespacenya, Unit Test, Test Driven Development, NoSQL database seperti Mongo dan Couch, framework-framework lainnya.

Jadi gwa cukup salut dengan pak frans yang mungkin dapat dikatakan “gila” dengan Open Sourcenya dan berusaha menebarkan kegilaan tersebut melalui komunitas-komunitas yang dia buat. Sementara gwa disini hanya menunggu orang-orang untuk membuat sebuah komunitas dan mempertanyakan kenapa tidak ada komunitas seperti itu, tapi di sisi lain pak Frans malah giat membuat komunitas-komunitas ( bagus pak, tingkatkan terus perjuangan bapak. saya ikutin saja dari belakang :P ). Jadi sekarang saatnya mencari-cari PHP conference di Jakarta :)