Convert your Blogger Bolg into WordPress or WordPress Blog into Blogger…

24 06 2011

Hi, today my blog post will be a little one. Because today I’m not going to give you clues about software or any other thing. I thing this will also help you sometime or some day. Sometimes you may wondering How to bring your WordPress blog to Blogger or  Blogger blog into WordPress Blog. But the problem is WordPress still do not facilitate to export it to Blogger .

OK this is the simplest way to do it. I found a Open source project that facilitate us to convert Blog. And it contains a number of converters  for different Blog services. The source code is written in Python. And if you want to, you can download the source code too.

Link for Blog Converter Open Source Project:

Convert your WordPress Blog into Blogger Blog…!

First go to your WordPress Blog,

then under the Tools click export

Then clicking the export get the xml file.

then goto this link

Then get the converted xml file from that site.

Then go to your Blogger  blog.

under the settings click import blog

😀 Now your WordPress blog live in Blogger.

Convert your Blogger Blog into WordPress Blog…!

This is much easy than the other thing, because already this feature is facilitated by WordPress. 🙂



First go to Your Blogger blog

under the settings click export blog

By clicking Export blog Download the xml file

Then go to the WordPress Blog.Then click import

After that you will see a page like this..

Because WordPress allows to import Blogger Blogs.. 😀

So, import your blogger xml file, then you will see your blogger bog on WordPress. 😀

Thank you

Gihan Malan De Silva.



How to install and configure Joomla 1.6 with XAMPP on Ubuntu 11.04

23 06 2011

Hi, today I’m going to show you how to install Joomla 1.6 and configure it with XAMPP. Joomla is a nice open source software that allows you to create web pages easily. To getting start with Joomla first you need to install XAMPP on your computer. If you haven’t install it yet, read my post about “How to install XAMPP on ubuntu 11.04” and install it first.

If you have already installed XAMPP, then download the newest version of Joomla or any Joomla version.

Download Joomla 1.6 from here!

After downloading the file , copy it to the location File System–>opt–>lampp–>htdocs (/opt/lampp/htdocs).

Then extract it and remove

Then rename the folder Joomla_1.6.3-Stable-Full_Package as joomla

Then start XAMPP using command: sudo /opt/lampp/lampp start on terminal(clrt+T).

Now go to firefox and type http://localhost/joomla and enter. If everything works fine. The displaying page will look like this.

This is the first page of installation process, select your language that you want to be installed from the list an click OK. Then it will move to the Pre-installation check page.

In here if something mark as No in the upper table, you should take action to solve it. if every thing says YES, click Next. Then it will move to the Licence page.

It says about GNU GENERAL PUBLIC LICENSE. Read the licence 😉 and click Next. Then it will move to the Database page.

Fill these fields like this:

Database type: MySQL

Host name: localhost

User name: root

Password: ***** (This is the password which you configured XAMPP security for the mysql. if you didn’t set password, just leave it)

Database name: install or somename

Table prifix: jos_ (by default)

Old database process: Backup

Then click Next. Then it will move to the FTP configuration page.

Leave it!, because the settings for the FTP Configuration can be entered, or edited after installation.It’s easy for us.So click Next.It will be move to the Configuration page.

Fill these field like this and keep details in a safe place.

Site Name: myJoomlaSite or somename

Your E-mail: give a email address

Admin username: admin  (by default)

Admin password: ***** (give a password)

Confirm Admin password: ***** (retype Admin password)

Then Click Install Sample Data, after clicking it will be shown Sample Data installed successfully.

Then click Next. It will move to the Finish page. In here remove installation folder button.

Without doing this the installation process will not be completed. In earlier versions of Joomla, this step must be taken in manually. But in Joomla1.6 it’s much easy to do with a button 🙂 . After clicking the remove installation folder button, you should see the message Installation folder successfully removed.

Then click the button Administrator and you should be able to login with the username: admin and the password you gave.

If you did everything correctly, it will look like this… 😀

And the site login look like this… 😀

Ok Now you can go on with Joomla 1.6    Any time you can start Joomla just typing this on your browser’s Address bar : http://localhost/joomla  (XAMPP should have started before..) 😀 😀

Thank you

Enjoy it

Gihan Malan De Silva

How to install and configure Android SDK with Eclipse on Ubuntu 11.04

22 06 2011

Hi, today I’m going to tell you how to install and configure Android Software Development Kit with Eclipse on ubuntu 11.04 environment. These days Android application developing has became major trend. So as application developers we should also consider about new trends. To set up a computer in order to develop Android applications we need 4 things.

  1. Java Development tool Kit (JDK)
  2. Eclipse IDE
  3. Android SDK for Linux(i386)
  4. Android plug-in for Eclipse

Ok now I assume you have downloaded and installed JDK and Eclipse or already have both of them.

Now extract the Android SDK into a safe location, (keep this on your mind, that downloaded Android SDK is not a full development environment. It only contains the core libraries. When configuring it with Eclipse you need to download at least one of the android developing environments.)

Then start Eclipse ,to install the android plug-in for eclipse.

Then go to Help –> Install New Software

Click Available Software Sites as shown on above image.

At the preferences window, click add

At the NAME field give Galileo or some-name , and   at the LOCATION field give this URL if you use Eclipse Galileo version :

If you are using Eclipse Helios, use this URL instead of that.

then click OK.

Now move back to the install window

then click Add, in the top-right corner.

Enter ADT_Plugin for the Name and the following URL for the Location field:

OR you can point downloaded file as Archive (you shouldn’t extract it)

then, Click OK.

In the Available Software window , check the check-box

In the Available Software dialog, select the checkbox next to Developer Tools and click Next.

In the next window, there will be some tools to be downloaded. Click Next.

Read and accept the license agreements, then click Finish.

Sometimes you may get a security warning like this, click OK

When the installation completes, restart Eclipse.

Now you should add android platforms..

Start Eclipse Window –> Android SDK and AVD Manager.

This process may take some time…!

Then under the Available packages select at least one or all, then click Install Selected.

Then go to windows –> preferences, under it click Android tab and click OK.

Now you are ready to go with Android+Eclipse.


Gihan Malan De Silva.

How to change the theme of a java GUI Application (Java look and feel)

18 06 2011

Hi, today I’m going to show you how to change the appearance of a Java GUI application. In technically we call it as changing the look and feel of a Java GUI application. Swing components are responsible for changing the look and feel. In here “Look” refers to appearance of the GUI component and “Feel” refers to behave of the GUI component.


Sun’s (now it’s Oracle) default JDK has provided these basic  LookAndFeel types..

  1. javax.swing.plaf.metal.MetalLookAndFeel

When we developing  an GUI application using Java , it normally gives normal look and feel smiler to Linux OS (especially Knoppix-Linux  look and feel). Because by default it sets to Sun’s CrossPlatformLookAndFeel and also called “Metal look and feel“.And it’s part of the Java API (javax.swing.plaf.metal).

This code should be included in main method..

try {

                    } catch (Exception e) {
                      System.err.println(“Look and feel not set.”);

for example..

import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

public class gui {

    public static void main(String args[]){

                //———–Look and Feel————-
                try {

                    } catch (Exception e) {
                      System.err.println(“Look and feel not set.”);
                //———–Look and Feel————-
         gui myGui = new gui();
    }//end main()

But if you choose SystemLookAndFeel the application gives a look and feel like the running Operating system. Simply I say if you cshoose this, the look and feel will be depended on the Operating system.. To do that add following codes into your GUI application’s main method of the main class.

try {

                    } catch (Exception e) {
                      System.err.println(“Look and feel not set.”);
But if you choose WindowsLookAndFeel, the application gives a look and feel like the Windows Operating system.(But this will work only on Windows)

try {

                    } catch (Exception e) {
                      System.err.println(“Look and feel not set.”);

If you want to get Sun’s Motif Look and feel use this….

try {

                    } catch (Exception e) {
                      System.err.println(“Look and feel not set.”);

But in addition to that you may need an advanced look and feel.. for that you can use any commercial look and feels like Synthetica look and feel or Jtatoo.

with Syanthatica look and feel it look like this…

import de.javasoft.plaf.synthetica.SyntheticaBlackEyeLookAndFeel;

try {
UIManager.setLookAndFeel(new SyntheticaBlackEyeLookAndFeel());

} catch (Exception e) {
System.err.println(“Look and feel not set.”);

here I used sysnthatica’s Black eye look and feel. Other than the default look feela of Java, here you need to download and set the build path for some .jar file they provide.

To do that first you need to download Syanthatica’s synthatica.jar from this URL :

then, you need to download a theme for that :

If you are using  Netbeans for java application developing put that both two .jar file into Libraries folder. If you are using Eclipse, put that two .jar files into JRE system libraries by right clicking and selecting “build path”–> “configure build path”.

Then Jtatoo is also a good commercial look and feel set. If you want to to try that, you need to download Jtatoo look and feel at:

There will be a file call Jtatoo.jar , so as mentioned above you need to put that into appropriate folder, then you can use it like this..

try {

                    } catch (Exception e) {
                      System.err.println(“Look and feel not set.”);

In addition if you need an GUI application to test this you can use mine.

My java

My Eclipse project:My

If you have any doubt, feel free to comment them.


Gihan Malan De Silva

Some Useful important things about XAMMP for Linux

14 06 2011

Hi, today I’ll mention some important things on XAMPP.

How to set XAMPP to start up programs

(XAMPP will automatically starts with the computer starts)

First login as root user

Now press (Clrt+Alt+T) to open Terminal window
then type sudo -s -H
then enter this command,
command: sudo ln -s /opt/lampp/lampp /etc/init.d/lampp

                    sudo update-rc.d -f lampp defaults

Uninstall XAMPP

First login as root user. then use this on terminal,

command: rm -rf /opt/lampp



command: /opt/lampp/lampp start


command: /opt/lampp/lampp stop

Stop and start XAMPP

command: /opt/lampp/lampp restart

Start only the Apache

command: /opt/lampp/lampp startapache

Start the Apache SSL support

command: /opt/lampp/lampp startssl

Start only the MySQL database

command: /opt/lampp/lampp startmysql

Start the ProFTPD server

command: /opt/lampp/lampp startftp

Stop the Apache

command: /opt/lampp/lampp stopapache

Stop the Apache SSL support

command: /opt/lampp/lampp stopssl

Stop the MySQL database

command: /opt/lampp/lampp stopmysql

Stop the ProFTPD server

command: /opt/lampp/lampp stopftp

Start a small security check programm

command: /opt/lampp/lampp security


Important Files and Directories

The XAMPP commands home—>                 /opt/lampp/bin/
The Apache Document Root directory—>   /opt/lampp/htdocs/
The Apache configuration file—>                 /opt/lampp/etc/httpd.conf
The MySQL configuration file—>                /opt/lampp/etc/my.cnf
The PHP configuration file—>                       /opt/lampp/etc/php.ini
The ProFTPD configuration file—>              /opt/lampp/etc/proftpd.conf
The phpMyAdmin configuration file—>     /opt/lampp/phpmyadmin/

If you have any doubt about any post feel free to comment and get solved tham.


Gihan Malan De Silva.

How to install XAMPP on Linux (Ubuntu 11.04) Part #2

13 06 2011

Ok this is the second part of the previous post.If you haven’t read the first part “How to install XAMPP on Linux (Ubuntu 11.04)” please read it before come to this 😀 . Today I’ll tell you how to configure MySQL databases (phpMyAdmin). Because is not set to your Linux username so,you are not still allowed to goto the phpMyadmin page.

First you should get open the terminal and login as root user.

Now press (Clrt+Alt+T) to open Terminal window
then type sudo -s -H

command: cd /opt/lampp/phpmyadmin

Now you are in the phpmyadmin directory, you need to change the ownership of the file to your own Linux username.

command:chown your_user_name:your_user_name

Ok now there is one thing to do.That’s Configure Linux XAMPP Security

In this case too you need to login as root user(only if already logout).Now lets set up the security.

command: /opt/lampp/lampp security

Then the terminal will be ask some questions , type “YES” to all and set password to all. Important thing is write them down in a safe place.

After configuring security the database configuration file alteration automatically happened ,so  you need to change the ownership back to your username as did earlier.

command: cd /opt/lampp/phpmyadmin

command:chown your_user_name:your_user_name

Now you are done with configuring XAMPP 😀 . Restart the XAMPP with this command

command: /opt/lampp/lampp restart

Now check out your overall installation process. First you need to clear your entire browsing history and cache.

Type this on your browser : http://localhost/ then click on “Status” link. If all the things are done correctly, you will see a message like this.

XAMPP Status

XAMPP Status

Now you should be able to login to phpMyAdmin without any trouble. Login with your MySQL username and password that you gave at security configuration.

Important! :

  • phpMyAdmin has to accounts for MySQL as user names root and pma, but both have one password, that you gave. If login as root user, you will be able to have all privileges. But if you log in as pma user privileges will be limited and you are not allowed to create databases (only create tables and access the database).
  • Do not overwrite or delete default files inside your htdocs, becasue they are very important.If you do s XAMPP may be crashed.


If you have any doubt about any post feel free to comment and get solved tham.


Gihan Malan De Silva.


How to install XAMPP on Linux (Ubuntu 11.04)

9 06 2011

Hi, this is my second post.In first post I mentioned about how to run & configure XAMPP on windows computer. XAMPP may be the best server to PHP. Now its time to move into Linux. Currently I’m using Ubuntu 11.04 Natty Narwhal edition. Based on that I’ll show you how to install XAMPP on Linux OS.

Earlier day the Linux version of XAMPP called as LAMPP. But it comes as XAMPP with more improvements.

Ok, First of all you need to download the XAMPP for Linux form Apachi Friends.
here is the link for it :

Before installation , its better to have a MD5 check.To do that you need to login as root user.
1) Now press (Clrt+Alt+T) to open Terminal window
then type sudo -s -H
it will ask your password after that
2) type md5sum xampp-linux-1.7.4.tar.gz
the displaying MD5 should be 7d83c9829d8c79d43ea607e5b009dc58

3) Now you should extract the downloaded archive file to /pot directory

command: tar xvfz xampp-linux-1.7.4.tar.gz -C /opt

You shouldn’t use any extracting tool to extract the archive, it won’t work.And if you already installed a XAMPP version, it will overwritten by this command.Now XAMPP is installed below the /opt/lampp directory.

Now you can check whether XAMPP is working.

command: sudo /opt/lampp/lampp start
you will see a message like this

Ok now XAMPP is working 😀 .But still there is a problem. Your php testing folder is “htdocs”. You can simply move into it  File System–>opt–>lampp–>htdocs

You will noticed that it won’t allow you to put .php file or any thing. Because you haven’t owe the permission yet. Because it belongs to root user.

Change the ownership XAMPP to your user account!

In this case also you need to login as root user.
Now press (Clrt+Alt+T) to open Terminal window
command: sudo -s -H

Now move to lampp folder
command: cd /opt/lampp/

command: chown -R yourUserName:yourUserName htdocs

Important: Here yourUserName is just your user account name of Linux

Also you need to associate ownership of your Linux username with the Apache configuration. In this case move to “etc” folder:

command: cd /opt/lampp/etc/
Now you are in the etc directory. Type gedit httpd.conf. This will show the Linux text editor.

command: gedit httpd.conf

But be careful when editing; a single mistake can make the Apache web server inoperable.
Then find (press Ctrl+F) the following line in that text file..

The text file look like this…

User nobody

Group nogroup


Change this to:

User yourUserName

Group nogroup



A picture of the text file on my computer…

Now you can reboot the computer..
After that open the terminal (Ctrl+Alt+T)

then start XAMPP
command: sudo /opt/lampp/lampp start

Then go to firefox type this on address bar http://localhost/
It will take you to the XAMPP welcome page..
Now you can start programming php scripts.. put your PHP script files into “htdocs” folder as I mentioned earlier.
If your php script name is test.PHP ,type this on address bar of firefox.

If you are a beginner and want an test php script.Here it is…

See you in post with How to configure MySQL database (phpMyAdmin) in XAMPP

Enjoy it