Monday, August 31, 2009

Remove sql statement at the bottom of the page (CakePHP)

By default, CakePHP display a list of sql statements at the bottom of the page.
This is the result of CakePHP debug level.

To remove the sql statements, we need to change the debug level to 0.

Open the app/config/core.php, search for this line
Configure::write('debug', 2);

Then change it to 0
Configure::write('debug', 0);

Done.

Wednesday, August 19, 2009

Activate Backspace to go to previous page in Firefox

I often use Backspace to go to the previous page. However, it didn't work in my newly installed Ubuntu machine (Ubuntu 9.04, Firefox 3.0.8).

To fix this, type 'about:config' in the address bar, then type 'browser.backspace_action' in the filter box. The value was 2, so I need to change it to 0. Done!

Monday, August 17, 2009

Watching TPG IPTV on Firefox (Ubuntu 9.04)

By default, we can't watch TPG IPTV on firefox. We'll get error saying that your VLC player is too old.

To fix this problem, we have to install vlc,vlc-plugin-esd, mozilla-plugin-vlc. Use Synaptic to install those packages.

Source: http://www.videolan.org/vlc/download-ubuntu.html

Playing DVD on Ubuntu 9.04

By default, DVD can't be played on Ubuntu.
We have to add some libraries.

The installation details can be found here:
http://ubuntuforums.org/showthread.php?t=766683

These are the steps that I did based on information from that forum.
Run below command to add medibuntu to the repository.
sudo wget http://www.medibuntu.org/sources.list.d/`lsb_release -cs`.list --output-document=/etc/apt/sources.list.d/medibuntu.list; sudo apt-get -q update; sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring; sudo apt-get -q update

Then run:
sudo apt-get install libdvdcss2 libdvdread4 libdvdnav4 vlc

Until this point, I still can't play DVD.
Well, it seems I have to run this command:
sudo apt-get remove gnash gnash-common libflashsupport mozilla-plugin-gnash swfdec-mozilla && sudo apt-get install alsa-oss faac faad flashplugin-nonfree gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-pitfdll libmp3lame0 non-free-codecs sun-java6-fonts sun-java6-jre sun-java6-plugin unrar

Perfect..I can play DVD now.

Install Flash Player

By default, Flash Player is not installed on Ubuntu 9.04. An easy way to install it is to use Firefox to open a website with flash content, then click the 'Install Missing Plugins' button, choose the Adobe's one, and just follow the instructions.

Thursday, July 9, 2009

Menampilkan EasyBook di Front-End Joomla

1. Klik Menus, dan pilih salah satu menu (misalkan: main menu).




2. Klik tombol New di kanan atas.




3. Klik EasyBook, kemudian klik Guestbook Entryform




4. Isi Title (misalkan: 'Buku Tamu').


5. Di sebelah kanan, klik Parameters (Component). Kemudian, cari bagian 'Group for adding an entry' (agak bawah), dan ganti isinya ke 'Everybody'.



6. Klik tombol Save. Setelah ini, EasyBook bisa terlihat di Front-End.

Instalasi EasyBook di Joomla

1. Download file EasyBook dari http://joomlacode.org/gf/project/easyjoomla/frs/?action=FrsReleaseBrowse&frs_package_id=225. Pilih file yang terbaru, dan berawal dengan kata 'com', contoh: com_easybook_2.0_rc4_valid.zip

2. Di bagian Administrasi Joomla, pilih menu Extensions > Install/Uninstall.

3. Klik tombol Browse, pilih file EasyBook, kemudian klik Upload File & Install.


4. Jika instalasi berhasil, akan ada tulisan 'Install Component Success', dan EasyBook akan keluar dibawah menu Components.