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

Potatoes musaka

Potatoes musaka (musaca de cartofi) is a greek inspired recipe, with arabic roots. I was thinking about the recipe a few days ago so finding it on Amalia’s site decided me to do it. Here is the english version with some small differences, I only take credit for the photos :) Musaca de cartofi Ingredients potatoes about 1 kg so that they are enough for 2 layers 1/2 kg minced meat....

January 26, 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

Cod in sos picant

Iata inca o reteta cu cod in care am incercat sa inviorez si mai tare codul cel plictisitor cu un sos picant. Update 20090127: am incercat reteta si cu merlucius si pangasius. Merlucius-ul a fost cel mai gustos si pangasius-ul cel mai peste si mai putin plictisitor. Cod in sos picant Ingrediente 1/2 kg file de cod inghetat 1 ceapa, 1 morcov condimente: 1/2 ardei rosu uscat, coriandru, piper, patrunjel....

January 19, 2009 · len

Cod cu cartofi

M-am hotarat anul asta sa mananc mai mult peste asa ca am cumparat peste congelat de peste mari si tari. Prima incercare a fost cod, un peste destul de plicticos as putea zice asa ca m-am decis sa-l inviorez putin. Cod cu cartofi Ingrediente 1/2 kg file de cod inghetat cartofi mirodenii: piper, coriandru, ulei de masline, otet de ginger 1 ou si faina Metoda am fiert cartofii taiati cubulete am facut un fel de vinegreta din ulei de masline, otet de ginger, piper, lamaie, coriandru am dezghetat bine codul pe cea mai mica setare cam 20 minute pe urma l-am uscat cu un servet si l-am facut pane: prin ou si faine si apoi prajit in tigaie cu putin ulei pe fiecare farfurie am pus cod si cartofi, am stropit bine cu sos si am lasat un pic sa se imbibe inainte de a servi pofta buna Comments: James Crissilv - Jan 1, 2009 Sa incerci cotlet de rechin sa vezi ce bun este....

January 18, 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