Creating a PDF from a list of JPG image files

Here is a Perl script that creates a PDF from list of JPG images. This script uses the PDF::FromImage CPAN module.

#!/usr/bin/env perl
# Perl Script to create a PDF file from a sorted list of JPG images
# This script uses the PDF::FromImage module.
#
# To install PDF::FromImage module on Windows with Strawberry Perl
# execute the following commands in a Command Shell
# The following command assumes Strawberry Perl in PATH
# c:\> perl -MCPAN -e shell
# c:\> install PDF::FromImage;
#
# This script assumes there is a list of 300 JPG images with names 
# in the CURRENT_DIRECTORY in acsending order.
# E.g. fileprefix_1.jpg, fileprefix_2.jpg, fileprefix_3.jpg ...
#
#
# Steps to use the script:
# 1. Save this script as make_pdf.pl in the directory where you have
# the JPG images
# 2. Install the Perl Module
# 3. Edit the script modify as per requirement
# 4. run the script from commandline.
#
use strict;
use PDF::FromImage;
my ($prefix, $pdfname, @files)
# Enter a prefix for your image files
$prefix = 'file_prefix';

# Enter the PDF name without the ".pdf" extension
$pdfname = 'my_pdf_name';

for (my $i=1; $i load_images(@files);
$p->write_file($pdfname . '.pdf');

Perl Script to create a PDF file from a sorted list of JPG images. This script uses the PDF::FromImage module.

To install PDF::FromImage module on Windows with Strawberry Perl
execute the following commands in a Command Shell. The following command assumes Strawberry Perl in PATH

c:\> perl -MCPAN -e shell
c:\> install PDF::FromImage;

This script assumes there is a list of 300 JPG images with names in the CURRENT_DIRECTORY in ascending order.

E.g. fileprefix_1.jpg, fileprefix_2.jpg, fileprefix_3.jpg …

Steps to use the script:

  1. Save this script as make_pdf.pl in the directory where you have
    the JPG images.
  2. Install the Perl Module.
  3. Edit the script modify as per requirement.
  4. Run the script from the command line.
Advertisements

Nectar Solutions And Consultancy

Recently I happened to conduct a VMware training at Nectar Solutions and Consultancy. They have a great training facility with an awesome lab and I can surely vouch for it. They conduct many trainings for leading IT vendors including VMware, Cisco & EMC. I also understand from the owner of the training facility that they provide online practice labs (VDC Kits) for VMware vSphere on rent.

So if you want to conduct any training feel free to contact them. The contact details are available on www.nectar-consultancy.net. Speak with Mr.Amit Shirolkar.

My Home Lab

Recently I built 2 whitebox ESX servers and I selected this Chieftec cabinet. The cabinet is a Rockstar. The cabinet supports upto 6 internal disks. The configuration of the cabinet is such that the disks are very easy to access and change.

Each server’s configuration is:

Cabinet: Chieftec BH-02B-B-B
PSU: Amacrox 450 watts silent SMPS
Processor: Intel Xeon X3430
Motherboard: S3420GPLX
RAM: 24GB ECC registered (6 x 4GB DIMMs Transcend)
HDD: 4 x 500GB Western Digital (Stripe)
USB: Sandisk 2GB USB sticks for ESXi installs

PS: the board has a internal onboard USB slot, so no more dangling USB sticks

External Switch: TP-Link SG3109. This is a layer 2 gigabit managed switch.

Thanks Wikipedia

Support Wikipedia

It was around 2004 (probably 2002) that I heard about Wikipedia. I cannot say how much since then it has helped me in improving my knowledge and understanding about a lot of things around us.

Wikipedia facilitates our right to access the right information. I don’t think any other means of information sharing has been so successful.

Together, we can keep it free of charge and free of advertising.

Nook is cool, A platform with many uses!

Yesterday I got my nook. It came with the latest firmware update 1.4.1 with a serial number starting in the series #1003.
Overall I am very happy with my nook. Although I was pondering buying an iPAD instead of a nook, however I didn’t need many of the additional features of an iPAD. Also the price points and eInk display sealed the issue in favor of nook. I bought mine with a Sinclair leather cover at a total cost of US $180. 🙂

The nook’s eInk display size is about 3.5″ x 4.7″. I bought the WiFi version without 3g. Other than the ebook reader, the nook comes installed with games, a web browser and a music player.  Based on the earlier nook reviews that I read/watched, its seems the touch pad responsiveness has improved.

Although I am not complaining, some of my requests for enhancements would be:

  • A notes application, something similar to a notepad to create and read plain old text files.
  • The nook while reading ebooks allows you to do word look-ups. However a dedicated word dictionary which can be accessed and updated independently would have been great.
  • A built in RSS reader, makes it so much easy to read my news feeds
  • I want my my mail – a lite imap mail client
  • The present contacts application sucks needs to be enhanced
  • A word game such as scrabble, while traveling its easy for 2 people to have some fun together
  • Needs better security such as password based lock or something, to protect my data from prying eyes

I would love my nook to be beyond just an ebook reader and also satisfy some of my digital diary requirements. Yeah I know I am expecting too much from my plain ereader, but hye, the nook comes with some decent amount of juice. It has ~256MB of RAM & a 600Mhz Samsung processor, and comes with Android 1.5. You can find the exact hardware specs here.

Barnes & Noble have been releasing regular updates for the nook and its to there credit that they have added a few new features since the first release. Even if BN decides to charge for newer updates with additional features, I am sure a lot of people would like to upgrade.

Cheers. Thats all for now.

Infected with Scrum

Last week one of my colleagues at office started a discussion on the Scrum methodology. I have been part of teams which practiced Agile to an extent. I was also aware of Scrum but had never practiced it. However this discussion and a subsequent overview session on Scrum started me thinking and I decided to explore more on the subject. I can surely say I am a much learned person on Scrum than where I started with. I would also say if practiced well and strictly, Scrum can lead to substantial benefits.

I won’t go into details as to what did I learn. What I am posting here are various references on the web that I found useful.

Happy sprinting!

——

A good introduction to Scrum: Scrum in 10 Minutes
Another introduction to Scrum: Scrum Basics

Although dated (Sep 5, 2006), an excellent overview of Scrum from the Guru (Scrum Et Al – Ken Schwaber)

More in depth article on Scrum at Wikipedia

Nokia uses Scrum and they have devised a simple test to check if a team is really using Scrum. Read more about it at “The Nokia Test

You can find a re-incarnation of the Nokia Scrum test at jeffsutherland.com. This tests essentially explains the kind of ROI companies (can) get by having their employees go through the CSM (Certified Scrum Master) course.

Some more resources on Scrum.