Blog Archives

Accessing Resources from java, and in particular from a jar

Using a resources bundle is a way to externalize code dependencies from text, images or other type of resources. As far as I know, it was pioneered by the Mac OS design, back in 1984. It allows changing elements in

Posted in Java, Programming, Utilities

Decompiling an Android App

If you have an apk, there are several tools for reverse engineering it. A first options is apktool, which transforms the apk in a directory structure. The resources are there, so one can examine them, and also change some and recompile.

Tagged with: , ,
Posted in Android, Java, Programming

meld: comparing files and directories

I was looking for a tool to compare the source files of two java projecs (actually, two versions of the same project) to find out the differences. I read about meld, which looked promising. It’s an open source tool which

Posted in Programming, Utilities

Add a timestamp to a Java application

Often in the “about” section of an application, the version number is reported. It is a good idea to add to the version number also a timestamp that states when the app was built. There is an easy automatic way

Posted in Java, Programming

Accessing EJBs on a remote JBoss AS 7.1 from a web application

Application servers are used (among other things) to ensure scalability of a web site. Although they typically offer a all-in-one solution (with embedded servlet-enabled web engine, embedded JNDI registry and other services), at deployment they should be used on different tiers: one machine

Posted in Admin, Java, Programming

Automator: generating a set of JPGs from a PDF file

And finally  I made it… Here is a workflow that takes a filename and a directory, and assuming the file is a PDF, it extracts a set of jpgs, renames them sequentially (1.jpg, 2.jpg….) and stores the generated images in

Tagged with:
Posted in Programming

Automator tricks: setting automator variables at workflow launch – part 2

Let’s now see another way to get multiple values as input, and save them as automator workflow variables. The code is self-explaining on run {input, parameters}     #convert the input in a string     set inputText to input as string

Tagged with:
Posted in Programming