MKV file doesn't Play on Ubuntu

22:47
Posted by Unknownin 0 comments

I have downloaded movie in a .mkv file format, and when I try to play it on my Ubuntu, I just can heard the sound but the movie didn't played. After a couple of minutes google it, I found a way to make it clear.
First, add this repo,

sudo apt-add-repository ppa:strukturag/libde265
sudo apt-get update 
Install the corresponding GStreamer plugin directly,
sudo apt-get install gstreamer0.10-libde265  For GStreamer 1.0 applications,
sudo apt-get install gstreamer1.0-libde265  There is also a VLC plugin available,
sudo apt-get install vlc-plugin-libde265  Try it and enjoy your .mkv file. If you have any problem don't hestitate to let me know and help you.

Read More

Integrate Android SDK and Eclipse IDE in Ubuntu

23:14
Posted by Unknownin 0 comments

Hi guys, at this time I will share how to integrate Android SDK and Eclipse IDE in Ubuntu. First thing first, you must have Oracle Java JDK or OpenJDK (free and open source :D) installed on your system before installing Android SDK. Don't forget to connect your PC or Notebook to Internet to download and install what we need, prepare your coffee and let's start :D 1. Prepare your Development Environment If you don't have installed OpenJDK and JRE on your system yet, you must install it first, you can download the binary from here or you can install it using apt like this:  sudo apt-get install openjdk-7-jdk && openjdk-7-jre If you are running a 64-bit distribution of Android SDK on

Read More

How to Extract .tar.gz in Linux

23:13
Posted by Unknownin 0 comments

If you are newbie in Linux, you will confuse when you want to install Linux application and it's format file is .tar.gz or .tar.bz2 (tarball). But now you don't need to worry because this post will give you the answer :).

Standard format to extract this tarball file is:

tar xvf filename.tar

If the tarball has also been gzipped (compressed), you can use the following command:

tar xvfz filename.tar.gz

If you only want certain directories from the tarball, do this:

tar xvzf filename.tar.gz */dir.you.want/*

If you have a .tar.bz2 file, then you need bzip2 installed (/usr/ports/archivers/bzip2), and you issue this command:

tar yxf filename.tar.bz2

Read More

Netbeans IDE Look and Feel (Ubuntu 13.04)

23:13
Posted by Unknownin 0 comments

If you are using Netbeans IDE under Ubuntu 13.04, you will dissapointed with it's look and fell. The fonts are big and it looks weird, especially for me :). But don't worry, you will get your Netbeans looks more eye catchy :).

Let's start, open your terminal, then type in:

nano /home/user/netbeans-7.3/etc/netbeans.conf

Then add the following line into netbeans option:

-J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd --laf Metal

Or you can change --laf Metal to --laf GTK

Enjoy your new look of Netbeans IDE and HAPPY CODING :)

Read More

PHPExcel Function

23:12
Posted by Unknownin 0 comments

Sometime as a PHP Developer, I usually get task to create report in excel. Of course I use PHPExcel to generate excel document. To use PHPExcel library, I must do this step below:

   1. Include PHPExcel library
   2. Create Object of PHPExcel
   3. Set Active Sheet
   4. Set style of column and row
   5. Set value by column and row
   6. Set filename and save

If we just need 1 column and 1 row with a less data we can do it fast and simple. For example we need to create 1 excel file with 5 rows data, result from mysql query, there are:
No    Name        City
1    Dono  

Read More

Create Your Own Bash Script

23:11
Posted by Unknownin 0 comments

Bash scripting is one of the easiest types of scripting to learn. It run under Linux and its very usefull. Bash is the language that you will learn to love as much of everyday Ubuntu life is done/can be done using terminal. You can make your own custom bash script through both GUI (Graphical User Interface) and CLI (Command Line Interface), but I prefer using CLI than GUI because using CLI you can changing file permissions of a folder and all its sub folders is more easily.
To make your own custom bash script, define where you wanna put the custom bash script directory (I use /home/user/bash_custom).
Then run terminal by type ctrl + T and type, 

Read More

Bundling PHP Application, XAMPPLite 1.7.3 Using Winrar

23:10
Posted by Unknownin 0 comments

Begin from a task given by my boss to create a standalone application using PHP running on windows operating system. Got confused thinking about how to bundling web server + PHP + MySQL into an .exe file (Windows Executable File). Finally, I can do this, helped by my coworker and I will share to you all.

First thing first, you need to collect the tools:
PHP Application that you want to bundle Portable Web Server, I use xampplite 1.7.3 as my web server because my PHP Application

Read More

How to solve NS_ERROR_UNEXPECTED TinyMCE

23:08
Posted by Unknownin 0 comments

If you are using tinyMCE on your website, and you found NS_ERROR_UNEXPECTED (if you are using firebug, it shown at console) when you try to submit a form that contain tinyMCE or you can submit a form but the content of tinyMCE won't be posted, don't worry I will share how to solve this error.

This error happen because tinyMCE input box is not textarea but a div and it will not post when you submit a form where textarea placed. What you need to do are add theses following code on submit event,
tinyMCE.triggerSave(); So the complete code be like this,
$("#btnSave").click(function() {
      tinyMCE.triggerSave();
     $("#frmPost").submit();
     return false;
})
That command is used

Read More
Page 1 of 212