JFreeCharts – Add subtitle with different fonts
Jun 17th
This little snippet adds subtitle to jfreechart.
JfreeChart chart = ChartFactory.createBarChart("Title Goes Here",....); chart.getTitle().setFont(new Font("Tahoma", Font.BOLD, 20)); TextTitle dataTitle= new TextTitle("This is subtitle"); dataTitle.setHorizontalAlignment(HorizontalAlignment.CENTER); dataTitle.setFont(new Font("Verdana", Font.ITALIC, 18)); chart.addSubtitle(dataTitle);
Install Perl modules without root access
Jun 17th
Sometimes we need to install perl modules on a machine where you dont have root (sudo) access. Here are the steps to install perl modules as a normal user
- Get Source package from search.cpan.org ( Example -> http://search.cpan.org/~pythian/DBD-Oracle-1.24b/Oracle.pm)
- Extract the content into your local directory.
- Navigate to the extracted directory ( Ex- cd /home/ukanth/oracle )
- Now compile the source using the following command
perl Makefile.PL PREFIX=/home/ukanth/oracle-perl-module
This will override the default installation directory.
Then,
makeand
make install
If you don’t find any error in the installation, you are now ready to use it in your perl program.
use lib '/home/ukanth/oracle-perl-module/lib/site_perl/5.8.3/i686-linux-thread-multi'
This is very simple way to install perl modules to custom directory( where you have read/write access ) .
Released MonitorES 1.0b
May 27th
Hello All,
I am pleased to announce that new version of MonitorES ( Monitor Energy Saver) 1.0b is released with lot of cool features. Please download the latest from http://code.google.com/p/monitores
Features:
- Support for Windows 7 ( including mute)
- Custom Hotkey’s
- Disable Screensaver.
- and more…
Cheers,
Umakanth