Monday, April 8, 2013

Enable Backspace Feature in Firefox on Ubuntu

In order to enable backspace keypress to make Firefox go back one page on Ubuntu:

  1. Launch Firefox browser.
  2. Type about:config in the address bar.
  3. Search for browser.backspace_action and set its value to 0 instead of 2.

Sunday, April 7, 2013

How To Install OpenCV on Ubuntu

I followed the instruction on this blog to install OpenCV on Ubuntu 13.04.

http://karytech.blogspot.com/2012/05/opencv-24-on-ubuntu-1204.html

My First OpenCV Sample Program

This is my first OpenCV code that was compiled and run on my Ubuntu 13.04 machine.

#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
int main() {
    // read an image
    cv::Mat image = cv::imread("my_photo.jpg");
    // create image window named "My Image"
    cv::namedWindow("My Photo");
    // show the image on window
    cv::imshow("My Photo", image);
    // wait key for 5000 ms
    cv::waitKey(5000);
    return 1;
}
g++ -o hello hello.cpp `pkg-config opencv --cflags --libs`
./hello

Saturday, April 6, 2013

Sunday, March 17, 2013

Ubuntu: How to Convert FLV file to MP3 Using ffmpeg

We can download video in FLV format from YouTube using Flashgot Add-On on Firefox web browser.

In order to extract the MP3 from the FLV video file, please follow the following procedure.

First, install ffmpeg software:

sudo apt-get install ffmpeg

Once ffmpeg is installed, convert FLV file to MP3 using the following command:

ffmpeg -i flv_file.flv output_file.mp3