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: http://code.google.com/p/google-blog-converters-appengine/

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 Joomla_1.6.3-Stable-Full_Package.zip file , copy it to the location File System–>opt–>lampp–>htdocs (/opt/lampp/htdocs).

Then extract it and remove Joomla_1.6.3-Stable-Full_Package.zip

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 :

http://download.eclipse.org/releases/galileo

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

http://download.eclipse.org/releases/helios

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:

http://dl-ssl.google.com/android/eclipse/

OR you can point downloaded ADT-11.0.0.zip 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.

Thanks

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.

Java

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

  1. javax.swing.plaf.metal.MetalLookAndFeel
  2. com.sun.java.swing.plaf.windows.WindowsLookAndFeel
  3. com.sun.java.swing.plaf.motif.MotifLookAndFeel
  4. com.sun.java.swing.plaf.gtk.GTKLookAndFeel

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 {
                    UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());                

                    } 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 {
                    UIManager.setLookAndFeel(“com.sun.java.swing.plaf.motif.MotifLookAndFeel”);             

                    } catch (Exception e) {
                      System.err.println(“Look and feel not set.”);
                    }
                //———–Look and Feel————-
         gui myGui = new gui();
            myGui.launchFrame();
    }//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 {
                      UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

                    } 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 {
                     UIManager.setLookAndFeel(“com.sun.java.swing.plaf.windows.WindowsLookAndFeel”);

                    } 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 {
                      UIManager.setLookAndFeel(“com.sun.java.swing.plaf.motif.MotifLookAndFeel”);

                    } 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 :http://www.jyloo.com/synthetica/download/

then, you need to download a theme for that :http://www.jyloo.com/synthetica/themes/

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:http://www.jtattoo.net/Download.html

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 {
                     UIManager.setLookAndFeel(“com.jtattoo.plaf.smart.SmartLookAndFeel”);

                    } 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 file:gui.java

My Eclipse project:My Code.zip

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

Thanks

Gihan Malan De Silva