Monthly Archives: July 2009

Using a ResourceBundle for localization

      No Comments on Using a ResourceBundle for localization

There is a nice java tutorial from Sun how to use ReseouceBundle for localization: http://java.sun.com/docs/books/tutorial/i18n/resbundle/propfile.html. It’s actually rather simple: Just create a new ResourceBundle object by invoking the getBundle method, specifying the base name and Locale: The getBundle method first looks for a class file that matches the base name and the Locale. If it can’t find a class file,… Read more »

Automating GnuPG

      No Comments on Automating GnuPG

If you want to use GnuPG in a script and don’t want to be prompted for the passphrase, put the passphrase in a file called passphrase.txt and use this to encrypt: Of course, you can also use echo to specify your passphrase or you can pipe a tarball into gpg or even send a gpg encrypted tarball via e-mail Note… Read more »