Thursday, October 25, 2007

GMAIL over IMAP! The battle is over!

     Finally GMAIL will have IMAP support
I'm so tired of this battle with the POP3 access. And the best is that all win :)

     I started using GMAIL some years ago but lately the need to check all my three accounts through the web interface with the enormous loading time almost made me give up these mails.
I tried the POP forwarding to another mail account with IMAP support but could not find such proper mail service. 
     The winner was AOL mail  with unlimited space but after some doubt I found that the mails are kept for 28 days only before complete deletion. At second place was www.bluebottle.com with 250MB space but I couldn't register receiving some error with wrong message:There have been too many signups from your IP address in the last 24 hours. All other mail servers offered for free only no more than 20-30MB of space ~= 5-6 mails with attachments and I returned to the old painful POP3 access.

Tuesday, October 09, 2007

Tools for every day from JDK 6

JDK 6 introduced some usefull tools:

1. JPS - (Also incuded in JDK 5) lists all running JVMs (also those loaded from JNI !!!) with information for them as passed arguments and the  name of the application's main class with its arguments:
$jps -mlvV
3370 sun.tools.jps.Jps -mlvV -Dapplication.home=/usr/lib/jvm/java-6-sun-1.6.0.00 -Xms8m
30707 -Xms512m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=128m
3327 tcpmon.MainWindow

2. JINFO - prints Java configuration information for a given Java process. The most usefull info as sun.boot.library.pathjava.library.path and java.class.path can be filtered:
$jinfo 30707| grep -E "(java.class.path|library.path)"

Those tools can be combined to expract the most usefull information for all JDK6 in a BASH script ( jpall.sh)  skipping the JPS process itself :
#!/bin/bash
for i in $( jps | grep -v Jps | awk -F " " '{print $1}' ) ; 
do
   echo
   jinfo $i | grep -E "(java.class.path|library.path)"
   jps -mlvV | grep $i
done