Archive for January, 2011

Batch processing of images using Photoshop

Sometimes you have a bunch of images or photos and you want to apply the same filters or changes to all of them. Changes or filters like resizing, rotating, cropping or increasing the contrast of the image. So why waste time doing this manually with each image if you can automatize all the work with a batch process and tell photoshop to apply this changes to all the files in a folder with just one click.

Photoshop’s batch processes are defined in a similar fashion as Microsoft Office’s macros. You tell Photoshop to start recording your actions so that the application knows which steps to follow, and when you’re done you just push stop to end the thing.

Let’s say I want a batch process to resize the photos of last night’s party because my friend’s brand new camera takes pictures of 14Mpx and I’m happier with a 5Mpx size.

Open one of the aforementioned photos using photoshop. Go to the Window menu and select Actions. A small window should appear.

In that window click on the Create new action button (the one beside the trash can) give a meaningful name to your custom batch process (Photo resizing) and store it under the Custom category. From this point on until you click the stop button in the actions window, all the actions you perform to the image will be recorded.

We want to resize the image so we choose Image and then Image size… There we enter the desired size and tick the Restrict proportions option. Finally, we choose File and Save as… (in this step you can choose to save the file in a different format from the original or even change the compression ratio applied to your jpg images) and we’re done.

Once you’ve recorded all the actions of your batch process click on the stop button. If you click in your custom batch process you can review the sequence of actions that’s recorded in the process and modify them if you want so.

Now that we have our custom batch process how do we apply it?

Go to File and then choose Automatize > Batch… a new window should appear. There you must select the action set you will be using and the batch process you want to repeat. Choose the folder in which you left those weighty party photos and another folder to leave the resized results. Click OK and relax while Photoshop saves you lot’s of time in resizing tasks.


mod_jk: Simple and easy

If you have ever used Tomcat, you’ll know that to access your webapp through the browser, you have to write something like That’s OK in a development environment but it is not very user friendly for commercial application. We can solve this using mod_jk. This Apache module allows us to connect Tomcat with the Apache web server so that we can omit the Tomcat port number (:8080) from the URL.

There are many ways to use and configure mod_jk depending on what you want to achieve. But if you just want to access to your Tomcat applications using a URL like, you don’t need to create workers or config ¬†files. I think this is the easiest way to do it.

First of all, make sure you have mod_jk module installed and Apache loads it correctly. You may have to write this line in your httpd.conf file (usually placed in /etc/httpd/conf/httpd.conf):

LoadModule jk_module modules/

Then, in your httpd.conf file locate the VirtualHost tag you want to redirect and add this two lines inside:

JkMount /myapp ajp13
JkMount /myapp/* ajp13

If you don’t know which VirtualHost tag is the one you need to change, just look for the one that contains a line like:

ServerAlias ""

Save the changes and restart your Tomcat and apache servers.

Now if someone types in his browser, the myapp Tomcat application will be loaded.

Note that if you have an SSL certificate for this domain, the app can be access through HTTPS without any extra configuration. Just go to and you’ll get it.

Categories: Tomcat Tags: , ,

Initial commit

Hello world!

Here starts:


We hope this tag remains open for long.

Categories: ensourced Tags: