JBoss migration 4.2.2-GA to 5.1.0-GA

In my stupidity innocence I just hoped that deploying the application on the new JBoss (from 4.2.2-GA to 5.1.0-GA) should be just a simple matter of changing paths in ant. Here are some problems I encountered and was able to fix. application.xml The format of this file has changed from: <?xml version="1.0" encoding="UTF-8"?> <application xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com /xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd"> <display-name>My application</display-name> <description>My server interface</description> ... to <?xml version="1.0" encoding="UTF-8"?> <application xmlns="http://java....

<span title='2010-02-03 12:19:15 +0000 UTC'>February 3, 2010</span>&nbsp;·&nbsp;len

Karmic various tricks

Logout messages If you are opening a terminal to a different server or do a su in a terminal then on logout you will be required to enter your password in order to confirm the logout action. Since the polkit-gnome-authorization does not work with the new polkit version which ships with ubuntu and the polkit-auth command does not seems to work either I’ve found after some research that the solution resides in editing the /usr/share/polkit-1/actions/org....

<span title='2009-11-25 14:30:51 +0000 UTC'>November 25, 2009</span>&nbsp;·&nbsp;len

Changing dates format in Thunderbird

Since my migration to thunderbird I did not had many things to complain but one of the remaining things was the date format. I am expecting to have something like DD/MM/YY or at least DD MMM YYYY. I did not imagined this could be something else than configuration somewhere. Or not… After some digging I found out there is no way to configure the date string but the only way to change the date is to change the locale the application is using....

<span title='2009-11-16 22:30:28 +0000 UTC'>November 16, 2009</span>&nbsp;·&nbsp;len

Ubuntu 9.10 Karmic Koala

This ubuntu installation was the bit of fun expected after a few tiresome weeks so I grabbed the cd while still hot and started the installation. As usual the install went smoothly except the fact that I probably mistyped my usual password so I had to modify the /etc/shadow afterward to log in. I was not expecting many changes but there are some graphical changes, the gdm seemed changed and after login I was greeted with a “DISK HAS MANY BAD BLOCKS” message since now there is a tool (palimpsest) which reads the S....

<span title='2009-10-30 19:43:33 +0000 UTC'>October 30, 2009</span>&nbsp;·&nbsp;len

Python uno openoffice automatization

This is a very short example I managed to do in not a very long time which does the following things: opens an openoffice draw document modifies a field exports it as ps (using print to file) Ah, and it does that from an external python program. The setup In order to run a python script you need: to set the python path to include the uno lib and start a ooffice server...

<span title='2009-09-21 21:07:27 +0000 UTC'>September 21, 2009</span>&nbsp;·&nbsp;len

The geek’s alphabet

The geek’s alphabet: a, b, c ls –a gpsd –b -N -D2 /dev/ttyUSB0 ping –c 10 psql –d test ps –e ps –f ssh len@niobe –g -L 5432:localhost:5432 psql –h localhost test tcpdump –i eth0 iptables -A LOG_DROP –j DROP cvs add –kb *.odt ls –l cvs ci –m ‘test’ netstat -an gpsbabel -t -w -i garmin -f usb:0 –o gpx -F 20090912.gpx ssh –p 5567 len@prophet grep -riq digest *...

<span title='2009-09-18 10:32:00 +0000 UTC'>September 18, 2009</span>&nbsp;·&nbsp;len

Blogosfera: bloguri si biciclete

Facand de curand ordine pe aici am dat peste harta blogosferei si am incercat sa-mi confirm raspunsurile la 2 intrebari: cum a evoluat numarul de posturi? cat de mult se vorbeste in ele despre biciclete? Rezultatul: Bloguri si biciclete 2008 - 2009 Explicatii Primul grafic reprezinta numarul de posturi pe saptamana pentru toate blogurile cuprinse in harta pe perioada oct. 2008 – aug. 2009 Al doilea grafic reprezinta precentual in cate din aceste posturi s-a vorbit despre biciclete....

<span title='2009-09-16 07:47:36 +0000 UTC'>September 16, 2009</span>&nbsp;·&nbsp;len

Quick: ttf fonts and cisco vpn

2 short tricks on ubuntu linux (9.04 Jaunty): Install a .ttf font #create a fonts dir sudo mkdir -p /usr/share/fonts/truetype/myfonts #copy the font sudo cp myFont.ttf /usr/share/fonts/truetype/myfonts #update fonts cache fc-cache -fv Note: if you are using an application don’t expect the fonts to be refreshed dynamically, just restart it. Create a cisco vpn connection apt-get install vpnc Create a /etc/vpnc/myvpn.conf. If you want to convert an existing .pcf file check this article....

<span title='2009-09-15 09:24:14 +0000 UTC'>September 15, 2009</span>&nbsp;·&nbsp;len

Flex applications size optimization

After quite some time of development we realised that our application flex has grown quite large, both in functionality and size. I should have chosed to develop it in GWT since I think we could not have done even 30% of the functionality and it would have been simpler :). Joke aside the size of all the modules has grown over 50M. These are some steps I have found in order to reduce the size....

<span title='2009-09-14 11:49:37 +0000 UTC'>September 14, 2009</span>&nbsp;·&nbsp;len

Radio button renderer in a datagrid

Using a radio button as a data grid cell renderer is an example of a more complex usage of data grid cell renderers. This is one way to achive this in a not very complicated way: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ public var dp:XML = <users> <user> <name>one</name> <main>true</main> </user> <user> <name>two</name> <main>false</main> </user> <user> <name>tre</name> <main>false</main> </user> </users>; ]]> </mx:Script> <mx:VBox> <mx:DataGrid dataProvider="{dp.user}" width="400"> <mx:columns> <mx:DataGridColumn headerText="Name" dataField="name"/> <mx:DataGridColumn headerText="Main"> <mx:itemRenderer> <mx:Component> <mx:HBox horizontalAlign="center"> <mx:Script> <!...

<span title='2009-08-29 12:08:04 +0000 UTC'>August 29, 2009</span>&nbsp;·&nbsp;len