Howto

Migrating WordPress to another domain

There are a lot of guides and howtos on how to migrate WordPress to another site when you keep the same domain name. That is easy. When you are doing a lot of development on WordPress for other people and you don’t have shell access to their servers it is much easier to develop locally and when you are finished you transfer everything to the production server.

Production server is usually on another domain and you might also end up with WordPress in a non-root directory. For example, your development instance of WordPress is on http://dev.uberdevs.com/important_client/ and production server will be http://www.importantclient.com/. We’ll migrate thist in four easy steps.

AMD HD6850 graphics card and Linux

Image representing AMD as depicted in CrunchBase
Image via CrunchBase

Just recently I got a brand new AMD HD6850 graphics card. My old Nvidia 8800 GTS started showing its age, so a replacement was in order. AMD’s HD68xx series presented an excellent price/performance ratio, so I got me one. I was sailing into the unknown seas here, it has been a while since I had ATI/AMD graphics card. I heard that fglrx drives got better and that support is decent. Oh boy, I was wrong …

Warning: This article is now obsolete. Catalyst 11.4 drivers that are now available, and also shipped with Ubuntu 11.04, support 68xx series out of the box.

Installing sun-java6 in Ubuntu Maverick Meerkat

Ubuntu 10.10 Maverick Meerkat comes with open-java6. Sometimes you will also need Oracle Java which is now available in Ubuntu partner repositories. This can be done in few simple steps:

  • open Ubuntu Software Center
  • select Edit | Software Sources
  • select Other Software tab
  • select Canonical Partners and click on Close

If there is no Canonical Partners to select, then you might upgraded from Lucid to Maverick and this line got lost from the source.list. Make sure that you have these two lines in the /etc/apt/sources.list:

deb http://archive.canonical.com/ubuntu maverick partner
deb-src http://archive.canonical.com/ubuntu maverick partner

Now, you need to install java.

$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk

If you only need the run-time environment, then you can use sun-java6-jre instead. There, you are all set now. You will probably want to export your JDK_HOME first.
Like this:

$ export JDK_HOME=/usr/lib/jvm/java-6-sun

Generating sample XML from XSD or DTD in Eclipse

XMarks XML schema diagram v1.1
Image by carol shergold via Flickr

Feature is useful if you are writing your XSD schema files or you have XSD schema files and want to create sample XML files for schema elements. Process is the same for generating sample XML files from DTD files.

How to do it. Simple.

  1. Create a project and add, import or somehow see created, generated XSD files in Project Explorer.
  2. Select your desired XSD file.
  3. Right-click and choose Generate->XML File
  4. New XML File wizard will pop-up where you define where generated file should be saved and what should be it’s name. When desired information is input-ed press Next.
  5. In Select Root Element window choose root element of your sample XML file. Root element can be any element defined in XSD file you choose to use for generation of the sample XML.
  6. Set content options and pay special attention to optional attributes & optional elements. Check those if you would like a complete XML sample.
  7. Name-space information is populated with name-spaces defined in chosen XSD file. You can manipulate the existing name-space information by changing prefix, adding additional name-space or create new name-space.
  8. Once you are satisfied click Finish.

And presto you have your blank sample XML. Edit it with the information you wish to present and your sample XML is ready. No XMLSpy or any other commercial tools required.

Installing KDE 4.4 in Ubuntu 9.10 Karmic Koala

K Desktop Environment
Image via Wikipedia

In a little bit more than a month before the release of Ubuntu 10.04 Lucid Lynx I decided that I want to try how KDE 4.4 behaves and if I am ready to switch from Gnome to KDE again. My heart was always with KDE and Qt but after KDE 3.5 everything went downhill and I switched to Gnome. I really want to try the new KDE, but going to Beta software on my primary workstation is not an option and I will stick with Karmic Koala for a while after the release of Lucid Lynx which will be shipping with KDE 4.4. The only option for me and others like me is to install KDE desktop on top of existing Ubuntu taking it from the backports repository. Here are simple step by step instructions on how to do this.