Monday, March 22, 2010

Import your Delicious Bookmarks to Firefox OR get a XML backup

Have you ever had the need of having your Bookmarks in Delicious.com imported to Firefox so that you can browse through them easily from your address bar? Or do you ever needed an XML backup of all the Bookmarks you saved in Delicious? Safety first! You don't like to lose whole bunch of bookmarks collected for years get lost just because you forgot the password or the site is broken down, right?

The main reason I wanted this is to import the bookmarks into my browser, Mozilla Firefox. So that I can pretty easily search through them by the enhanced address/location bar.

To get a XML backup, use the following command,  

curl --user deliciousName:password -o DeliciousBookmarks.xml -O 'https://api.del.icio.us/v1/posts/all'

(The downloading location is  https://api.del.icio.us/v1/posts/all )
Give your Delicious user name and password at necessary places. ("curl" is the command that is used to download content from a given URL.)

Importing into Firefox is pretty much simple. You don't have to go through command line options. Here's how it is done.
1. Log in to Delicious and go to settings.

2. In it under Bookmarks section you can find Export/Backup Bookmarks. Click on it.
3. On the opened page, make sure you have checked "Include my tags" checkbox. Then Click on "Export".

4. Save the file in a suitable location. (If not prompted to save it, it'll be at your Downloads folder.)
5. Backing up is done. Now to import them to Firefox, go to Bookmarks -> Organize Bookmarks

6. Go to Import and Backup -> Import HTML on the opened dialogue box.
7. Then the Instructions are easy. Just follow the steps and give the file when asked to.

All done. Good Luck with that! :)

Wednesday, March 10, 2010

Install IntelliJ IDEA on Linux

Here's a simple way to install IntelliJ IDEA on Ubuntu. I've done this on all Ubuntu Karmic Koala, Lucid Lynx and Maverick Meerkat. This worked just fine on Gentoo Linux too.

1). Install Java (Use Sun JDK. OpenJDK is NOT recommended as the JDK.)
sudo apt-get install sun-java5-jdk
It seems sun-java5-jdk is no longer available now. Refer Oracle Java SE Downloads for Linux and it's installation instructions. Keep the path in your memory; you'll need it when setting up $JDK_HOME path variable.

Then, to make sure that it is installed properly, type
java -version
if the version shows, then it is installed successfully.

2) Now, install IDEA
Download IntelliJ IDEA from the below link
 http://www.jetbrains.com/idea/download/index.html#linux
 Unpack the downloaded archive (ideaIU-9.0.3.tar.gz) by,
     tar xfz ideaIU-9.0.3.tar.gz
(match the file name to your version!)

 Move the extracted archive to /usr/lib
     sudo mv idea-IU-95.429 /usr/lib

3) Configure PATH variables for JDK_HOME and IDEA
     sudo gedit ~/.bashrc
Add following for JDK_HOME to the file, make sure to change the path to reflect your java installation directory.
export JDK_HOME=/usr/lib/jvm/java-6-sun
Append the line for PATH variable with this, /usr/lib/idea-IU-95.429/bin . Finally, it should look like this.
export PATH=$PATH:/usr/lib/idea-IU-95.429/bin
Now, run `source ~/.bashrc` to take effect the changes.

4) Run IDEA  by entering following in the terminal
   idea.sh (or sh idea.sh)

NOTE: If you get permission denied error, then you will have to set the correct permissions to idea.sh file by `sudo chmod 755 /usr/lib/idea-IU-95.429/bin/idea.sh

For easier execution, create a "Custom Application Launcher" at top panel. Access it via; right-click the top Panel -> "Add  to Panel" -> double click "Custom Application Launcher". Browse and give an icon if you like. Then, use a command similar to,
sh /usr/share/idea-IU-95.66/bin/idea.sh


Custom Application Launcher Properties




If you have any problem in setting up this, drop a comment below. Well, even if you got right, just tell me so. Love to hear that too! :). Good Luck!
 

Wednesday, March 3, 2010

Configure Google Talk in Kopete

If you are a Google Apps user, and love to use Kopete than any other package, here's the settings you need to configure Kopete. Default settings do not work for domains other than gmail.com. Google Apps such as xxx@wso2.com need to have following configurations.

   1. Go to Settings -> Configure
   2. New (or Add Account)
   3. Next
   4. Select Jabber
   5. On the first tab enter your account information
      Basic Setup
           Jabber Id: [xxxx@xxx.com]
       [ ] Remember Password whatever you prefer
           Password: [xxxx]
   6. On the second tab, enter
      Connection
       [x] Use protocol encryption (SSL)
       [x] Allow plain-text password authentication
       [x] Override default server information
           Server: [talk.google.com]         Port: [5223]


     Good Luck!!!