Sunday, January 20, 2008

How To Install Xdebug (PHP Web Server Debugger) In Ubuntu Linux

As I mentioned from my previous blog, a how to in web development in Linux (September 2007), you just download the Eclipse IDE package in Zend. This package contains the zend debugger for debugging PHP scripts, but for a web server, you may use zend or xdebug.

Here is how to install xdebug:
1.In Synaptic: Install php-pear and php5-dev
2.In terminal: #sudo pecl install xdebug
3.Add these 2 lines to php.ini:

zend_extension="(path to xdebug.so)"
xdebug.remote_enable=1

4.In Eclipse, click “debug” icon->Open Debug Dialog->PHP Web Page->New->choose Xdebug in Server Debugger.

That's it!

Saturday, December 29, 2007

How to Convert Standard MIDI files to WAV Audio Format

Applications->Add/Remove Programs->and Install Timidity
from prompt: $timidity [midi_filename].mid -Ow -o [wav_filename].wav

You can also check out the manual: $man timidity
if you want to output to a different format.

Reference: Thanks to Ubuntu Philippine Team especially to Samhain13! :)

Monday, December 17, 2007

How to Install Ubuntu on a USB Flash Drive

Read this link: Live USB Drive,
this: Bootable USB,
and this: Making the USB Persistent

Note: Even it is stated to use ext2 filesystem for casper-rw, I partitioned the disk with ext3 for filesystem use.

Now you have Ubuntu-On-A-Stick! :)

Friday, December 7, 2007

Mplayer: Cannot find codec for audio format 0x56444152

I experienced this problem when playing VCD using command line: $mplayer -zoom -vo x11 -framedrop vcd://1 and it will output this:
--------------------------------------------------------------------
Opening audio decoder: [libdv] Raw DV Audio Decoder
Unknown/missing audio format -> no sound
ADecoder init failed :(
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
Cannot find codec 'dvaudio' in libavcodec...
ADecoder init failed :(
ADecoder init failed :(
Cannot find codec for audio format 0x56444152.
Read DOCS/HTML/en/codecs.html!
Audio: no sound
Starting playback...
V: 0.0 0/ 0 ??% ??% ??,?% 0 0
gnome_screensaver_control()
Exiting... (End of file)
--------------------------------------------------------------------
This could be resolved in two ways:

1. $mplayer -vo x11 -zoom -framedrop vcd://n
where 'n' is the track or chapter (it should be 2 or greater).
-vo x11 is the video output since I'm using vesa driver
-zoom is the scaling of video so I could watch in fullscreen
-framedrop so the video and audio syncs.

2. $mplayer -gui -zoom -vo x11 vcd://n
where 'n' is the track or chapter
-gui the mplayer playback controls will show

This will play the VCD and an gnome-screensaver-control error will show. Ignore the error by clicking ok then right-click on mplayer screen select Open->Play VCD. enjoy! :)

Saturday, December 1, 2007

Adjusting Amarok's Buffer

edit /home/(username)/.kde/share/apps/amarok/xine-config and find the line: #engine buffers_audio_num_buffers:230. Instead of 230, put 10000 then uncomment the line by removing '#'. That's it!

Saturday, October 27, 2007

Just the Other Day...

           Just the other day I was searching every posts in forums on how I could get my blender running since it keeps on crashing on my new laptop. Yeah, I am using Ubuntu GNU/Linux version 7.10- the latest. My first thought was blender uses OpenGL and that is connected to the video card. And since this is the newest laptop around, I guess Ubuntu's latest version didn't have the capability to render correctly on my laptop, but I got graphics though and with a few tweaks, I have desktop effects, which is cool. I can see the driver I am using is Intel's experimental driver. So, I got connected and browsed the forums. Fortunately, I read this post saying that he tried to use the vesa driver instead of intel's. I typed in my console $dpkg -reconfigure xserver-xorg, and chose vesa as my default and restarted my desktop manager. Behold, blender is working perfectly! Sure, 3D acceleration is not available maybe in a month or so still, it's ok.

Monday, October 15, 2007

Firebug Javascript Debugger

This is a firefox extension that helps you debug javascript code.

Link here