Tweaking IntelliJ appearance to look cool in Ubuntu

posted under , , by prasanna
When i initially installed IntelliJ in Ubuntu the font of the IDE really sucked. I couldn't able to concentrate on my work because of the freaking font style. After looking out various forums and blogs i finally did a revamp to my Intellij that looked perfect to me. Here is a screenshot of my IDEA after modification.

If you are facing same issues try out these steps and your life with IDEA will be much better.
  • Open the file idea.vmoptions.
    cd {IDEA directory}/bin
    sudo vim idea.vmoptions
    Add '-Dawt.useSystemAAFontSettings=on' (without quotes) to the end of file.
    Save and exit the editor.
  • Install Inconsolata.ttf to Ubuntu.
  • Goto System -> Preferences -> Appearance
  • Goto the Fonts tab and click on Details and set your Resolution to 120 DPI.
  • Open IntellijIDEA. Goto Project Settings -> Colors & Fonts Select General tab and Click on the button near the Name textbox.
  • Uncheck the 'Show Only Monospaced Fonts' . Now you will find Inconsolata in the list . Select Inconsolata as font , Set Size to 16 and Line Spacing to 1.0 then click on Apply.
  • Back in the Settings menu choose Appearance and Select 'Use Anti-Aliased Font in Editor' option.
Thats it. You are done.

Install Inconsolata.ttf in Ubuntu(Jaunty).

posted under , , by prasanna
As developers tend to spend most of the time in front of IDEs it makes sense to pick up the best suited font for development. And i have seen most of the developers prefer to use monochrome fonts as it yields better feel while looking at the code. It is been now widely accepted by many developers to use Inconsolata as their development font. So better start using it and prove yourself geeky ;)
When i tried to use Inconsolata with my IntellijIDEA i couldn't find the ttf type inconsolata. And Intellij supports only ttf types. After a long search i downloaded thr ODf type and converted it to ttf using a converter and then i had the issue of installing it to my Jaunty. And i took help of my dev friends out here to resolve stuffs. So thought of consolidating the steps together as it may reduce someone else's pain.

Steps to install Inconsolata.ttf in Ubuntu(Jaunty).

Step 1: Start with downloading inconsolata font. Inconsolata.ttf

Step 2: Create a directory in /usr/share/fonts/truetype.
cd /usr/share/fonts/truetype

sudo mkdir ttf-inconsolata

Step 3: Copy the Inconsolata.ttf into the directory.
sudo cp ~/Desktop/Inconsolata.ttf ttf-inconsolata

Step 4: Now modify the permissions to allow it to be accessed by IDE's
cd ttf-inconsolata
sudo chmod 777 Inconsolata.ttf

Step 5:Its not over yet. Finally before going to the IDE you need to cache the font to make it accessible.
sudo fc-cache -f -v
This will show a list of fonts cached recently. Check whether Inconsolata.ttf is been cached.

Now you can keep staring at your code for a long time as it feels a lot better :)

Enabling Yahoo Accounts On Ubuntu

posted under , , by prasanna
Only after started using Ubuntu i came to know about the existence of Pidgin Internet Messenger(:P). I was pretty much happy as i it allowed to consolidate all my google and yahoo accounts together as a single IM. But I have to make some small hacks to enable my Yahoo account on Pidgin Internet Messenger (2.6.3)

  • Goto Pidgin Messenger -> Accounts
  • Manage Accounts -> Add
  • In the Basic tab enter Protocol As Yahoo
  • Enter your User name and Password
  • In the Advanced Tab enter the details as shown in the screenshot.



Now you can access your Yahoo account through Pidgin.

Test SMTP server

posted under , by prasanna

I came across testing a feature that ends up sending a mail. And to my misfortune i do not have access to the smtp server from my test environment. So i was looking out for a mock smtp server kind of stuff and ended up happily with test smtp server.

Devnull SMTP server is a dummy SMTP server that can be used for testing purposes. It helps you see all communication between a client and the server and is very useful if you are trying to find problems with your email server or a client that you wrote. And the best part is it is very simple to use and it is free of cost too. So if you have any such necessity do try this out.

First Post

posted under by prasanna
So after writing lots of shits and craps in various blogs now I have decided to have my own blog (another one :P) to continue writing those same shits and craps.

Disclaimer: All the writings made in this blog are my own thoughts, opinions, views, suggestions, impressions, feelings, beliefs, faiths, sentiments, notions, thinking and ideas. In short this blog is written by me considering myself as its only reader. If you accidently landed on any of the posts here I’m not responsible for its consequences.

top