Monday, April 28, 2014

Cxf wsdl2Java: using binding file to rename a complextype

Sometimes there is need to rename a complextype from the wsdl when you use wsdl2java. For example if you want the generated code to be put in a specific package (-p option) and you do not want to use the '-autoNameResolution' option. Then the external bindings file comes to the rescue! Here is the file I have used to rename "VatNumber_Exception" into "VatNumException" Happy copying!

Sunday, February 16, 2014

Setting up a moving background with Corona SDK

I just created a simple moving background written in lua for Corona SDK. The source is as follows: Use it as you wish!

Monday, December 23, 2013

Using the executorservice to create new Threads on google appengine

Appengine actually allows you to spawn new threads, as long as you follow the rules defined in the docs. Here is how I did it, copy, paste and use it as you wish.

Tuesday, June 4, 2013

Using gae plugin with gradle (gradle + appengine)

Looking for an example project using gradle and appengine? I have used the gae plugin for gradle in this simple webapp and made the sourcecode available for you. Follow this link and build with gradle 1.6 .

Saturday, May 11, 2013

git store password

To make git store your password, simply type

"git config credential.helper store"

to store it locally (for just the current repo), type

"git config --local credential.helper store"

Next time you push to the repo, git will store your password permanently.

Friday, May 3, 2013

Speeding up my build with gradle and some paralell magic

Just posting the results here, will get back to the details and some explanation in a later post.

Multi-module java project, 10 sub-modules, about 10k(?) unit-tests.

mvn clean install:  Total time: 3:52.082s ~ 232 secs
gradle clean build: Total time: 3 mins 20.987 secs
gradle clean build: Total time: 2 mins 17.648 secs (module parallel)
gradle clean build: Total time: 2 mins 0.58 secs ~ 120 secs ( module parallell, 2 threads)
gradle clean build: Total time: 2 mins 26.935 secs ( module parallell, 3 threads)



Sunday, April 28, 2013

Raspberry pi WiFi : dongle and config


  • Buy this dongle from dealextreme. This dongle works out of the box with Raspbian “wheezy” and needs no additional drivers. The chip is the realtek 8188 chip and works perfectly with linux.
  • Edit /etc/networking/interfaces according to the gist below. Replace network name and password with your own:

Halt yor pi, remove any networking cables and restart. Congrats, your pi is wireless online!