Archive

Author Archive

Useful little helpers making java developers live easier!

October 10th, 2009 Comments off

You may have some recurring development tasks while your daily work with java in different projects. For example you again and again write some small code that capitalizes a given String. Or you write an application with a command line interface and write code that defines and parses your command line options. Or you need some little helpers for your database handling. Or …
These are only some examples and if you don’t have already written and built your own little libraries for those tasks, you may want to have a look at Apache Commons, formerly known as Jakarta Commons. There are libraries for everyday use in different packages.
I will provide you a short overview over Apache Commons here and write some more articles about some of their libraries in the next weeks.
So, Apache Commons assign their libraries to three repositories depending on their development stage and usage (list taken from their site):

  • The Commons Proper – A repository of reusable Java components.
  • The Commons Sandbox – A workspace for Java component development.
  • The Commons Dormant – A repository of Sandbox components that are currently inactive.

I will focus on Commons Proper in this and my following articles since the contained components are ready to use and stable.

Currently, Commons Proper contains 39 components. You can categorize them into web, xml, utilities, converters and Java API extension.
The following table is taken and translated from german Wikipedia:

Category Components
Web FileUpload, Net, EL, Email, Jexl
XML Betwixt, Digester, Jelly, JXPath
Utilities BeanUtils, Pool, Validator, Daemon, Discovery, Exec, Launcher, JCI, Jelly, Modeler, SCXML, Chain
Converters Codec, Compress
Java API Extensions Lang, Collections, IO, Logging, Configuration, DBCP, DbUtils, Math, Primitives, Proxy, Validator, VFS, Attributes, CLI, Discovery, Transaction

 

Categories: Development, Java Tags: , , , ,

Preventing Eclipse from opening MS Office documents in OLE editor component

October 10th, 2009 1 comment

I’m working with Excel and Word documents in my latest java project. On Windows plattforms Eclipse opens those documents with its own OLE editor by default. But I feel much more comfortable in using the Office apps to edit them. This can be done by right clicking on the file icon and choose “open with -> system editor” for example. But you will have to do this for each new or moved file in your workspace the first time you open it.
Thus Eclipse opens these files with Excel or Word by default you need to navigate to “Window -> Preferences -> General -> Editors -> File Associations”. You will notice, that there are no file associations for Excel nor Word. You have to explicitly add the file types (*.xls and *.doc for example) and add the desired applications as associated (external) editors.

Categories: General Tags: , , , ,

Nützliche Tools und Plugins für WordPress

July 4th, 2009 1 comment

Es gibt einige schöne Tools und Plugins um sich das Leben mit WordPress etwas leichter zu machen.

So ist es zwar schön, dass WordPress Code-Schnipsel etwas absetzt, aber noch schöner wäre doch, wenn es auch Syntax-Highlighting bieten würde.
Genau dafür gibt es unter anderem das Plugin WP-Syntax, das unter http://www.blog-experiment.de/2009-05/syntax-highlighting-in-wordpress-wp-syntax/ beschrieben wird.

Ein weiteres “nice-to-have” wäre doch, wenn man sein in (Open-) Office erstelltes Word-/Writer-Dokument direkt aus der Applikation im Blog veröffentlichen könnte.
Auch das ist möglich. Dazu muss in WordPress lediglich XML-RPC aktiviert werden und in OpenOffice die Sun-Weblog-Publisher-Erweiterung installiert und konfiguriert werden.