Tuesday, February 3, 2009

Thunderbird wrap text problem [sloved]

Well, I saw many people having problem with Thunderbird not wrapping text at the default set 72 chars. Huh, I figured out the solution. The edit/options >preferences > composition > general tab has an entry box saying
"wrap plain text messages at __ characters"

the default set is 72 characters. Now what happens is that most of the mails that we send are HTML or 'unknown' by default. And the entry box says "plain text" not HTML. So, go to the most frequently mailed addresses in your addressbook in thunderbird and select 'plain' text message as the default in the contact details for each. :) it was not a problem, it was just obvious !!

Sunday, February 1, 2009

How to write html tags in blog posts:

In the course of writing my previous post, I also learnt how to write html tags like <hello> in blog posts. All you have to do is substitute the < and > tags by writing

and


respectively

Disabling remote access to phpmyadmin

I installed the LAMP + phpmyadmin combo yesterday on my Ubuntu Intrepid machine for hosting a local website.
But later I realized that the phpmyadmin page, though password protected, was visible throughout my local network! So, to disable remote access to phpmyadmin , add the following code to the end of your /etc/apache2/apache2.conf file ..


# Disabling phpmyadmin for remote access
<directory>
Order Deny,Allow
Deny from all
Allow from localhost
</directory>

Saturday, January 17, 2009

Project download manager

Ohk guys .. I am starting off with building a GUI based download manager for Linux. I found this excellent tutorial on building a GUI using Glade 2 (with Gnome support). Pretty neat with ample description of the components.

glade2_introduction.html

Saturday, November 8, 2008

JAVA Swing and AWT applications freezing in Ubuntu

Now I had been facing this problem from quite some time, but recently found a quick solution. Well, by default, the system uses GIJ as the Java byte interpretor and possibly, it causes the applications to freeze. I had installed the sun-java-6 jdk package but it was not functional because gij was the default one.

Steps:

1. Install the sun-java6-sdk package.
2. Find the default jvm being used by your machine by typing: java -version
3. In case it shows 'gij', then type: sudo update-alternatives --config java
It would list all the possible options with a number corresponding to each. For me it shows:

There are 5 alternatives which provide `java'.

Selection Alternative
-----------------------------------------------
1 /usr/bin/cacao
* 2 /usr/lib/jvm/java-6-sun/jre/bin/java
3 /usr/lib/jvm/java-1.5.0-sun/jre/bin/java
4 /usr/bin/gij-4.3
+ 5 /usr/lib/jvm/java-gcj/jre/bin/java

Press enter to keep the default[*], or type selection number:

4. Type in the corresponding number to java-6-sun/jre/bin/java, and press return.


That's all... unsure the version of java again by typing th command in step 2, hopefully you will see something different :)