The conflicting ssleay32 and libeay32

Since everybody seemed to be stuck with using the library on windows and yet on linux it worked from the start I’ve decided to dive into the wonderful world of windoze. The problem: while trying to use a java, jni-based library the error was unavoidable: java.lang.UnsatisfiedLinkError: C:\sw_api\sw_api\windows\sw_api.dll: The operating system cannot run %1 at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Unknown Source) at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) As such I decided to wrote this simple program:...

February 3, 2009 · len

Fixing dateChooser position and size

As described here, the dateChooser positioning algorithm does not account for the overall size of the window and this results in some clipping of the dateChooser window for the DateField. Take a look at frameworks/projects/framework/src/mx/controls/DateField.as displayDropdown function. I’m trying here to provide a partial fix. The ideea: trap the open event and reposition/resize the dateChooser. This can be done just by adding an event listener to the DropdownEven.OPEN event. to avoid problems if the dropdown appears on top of the dropdown button I had to move the code inside a derived class to access the textInput object....

January 29, 2009 · len

A few notes on flex objects

For a java developer starting to work with flex seems quite easy. However since most people will never read the hole manuals, probably also because of this easiness I’ve decided to write some things about flex objects which are not immediately obvious from a java developer point of view. The flex objects are hashes This is the most interesting aspect of a flex Object from my point of view and if you see things in this way then the following might seem a bit more clear:...

January 26, 2009 · len

Remove duplicate mails

The problem Sometimes my evolution email client does the nasty thing that it duplicates some of the mails in my folders. I can think of 2 causes of this problem. Either it loses the track of mails downloaded from pop accounts on which the messages are not deleted imediately so it fetches them again or there is a problem with the filters that it forgets to delete the message from the original folder....

January 23, 2009 · len

Propagating model changes to a DataGrid

Flex offers a nice way to represent data in a model and configure this model as a data source for a DataGrid or other visual components (ComboBox, AdvancedDataGrid, etc.). This allows for a quick start but sometimes deadends when a change to the model is not propagated to the view. I am trying here to explain a few aspects related to this. The first model [Bindable] private var dataSource1:ArrayCollection = new ArrayCollection([ {col1:'1A', col2: '1B'}, {col1:'2A', col2: '2B'} ]); The DataGrid...

January 16, 2009 · len

Automatic updates

I have given some thought this weekend to the following problem: automate the update process for an application installed on several servers. I am considering the following elements: an update has 2 parts: database update (via sql scripts) and application binaries updates all servers are accessible via ssh I’ve decided to write some thoughts regarding the process. Database update There are a few elements which have to be considered:...

January 11, 2009 · len

Remote java debug

This is something which should be know be every java developer: how to enable remote debugging of your java application. The solution is remarcable simple: export JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n" and the start your application normally. You can use your IDE of choice for the debugging. Here is a screenshot of the eclipse configuration: Remote java debug

January 10, 2009 · len

Easy sync/backup

When my laptop display died I had to find a way to continue my life work using an old laptop so I started searching for a way to create an image of my broken laptop on the old one, work on it and then transfer it back to the new laptop when it will be repaired (still not until a few weeks). My initial though was to use the backup mechanism to an external disk which I am using to backup data regulary but the restore process assumed an empty destination....

January 9, 2009 · len

Remastering ubuntu

Saturday I was faced with the following question: how to install 10 identical ubuntu stations with the same configuration and a set of custom packages. Here is the solution finally used: 1. install the basic ubuntu system, install all the extra packages (this included notably the edubuntu package add-on which is no longer a separate distribution). This should result into a complete station. 2. install remastersys 3. create the cd/dvd iso image with the backup option....

December 24, 2008 · len

MDB to Postgresql

One of the more daunting tasks of installing new solutions is data migration from old systems. Years of work and data colection cannot be wasted. And since I’ve always found fun in doing this kind of exploration of old application databases this article describes something which should not even be considered legacy migration: migrating data from access (mdb files) to postgresql. The solution I thought this will be a very simple task using the mdb-tools package also available as a ubuntu package:...

December 21, 2008 · len