News

Simple ToDo v1.2

Version 1.2 has been released. Updates to the "long press" menu with move todo up and down. Also added a title (name of the todo). Enjoy!

Linux: debugging Android USB

When developing for Android under Linux you often run into the task of debugging. This can easily be achived from Eclipse (which I use, but should (in theory) be easy under Netbeans) or whatever IDE you prefer.

For some reason Linux doesn't catch you device (at least not my version). When listing devices I get something like:

./adb devices
List of devices attached
???????????? no permissions

This can be fixed with a simple command:

./adb kill-server
sudo ./adb start-server

Now your device should be listed and is thus ready for debugging:

./adb devices
HT13HTJ18284 device

If not, check your settings on your phone. Debugging should be enabled for this to work!

Fixing touch pad (right click) on Ubuntu 12.04

For some reason my HP Envy with its touchpad is (once again) f*cked. On simple fix is as follows:

  1. create the file /etc/X11/xorg.conf.d/51-clickpad.conf (notice that the xorg.conf.d probably doesn't exists, so this must be created)-
  2. Add the following to the configuration file:
    • Section "InputClass"
      Identifier "Default clickpad buttons"
      MatchDriver "synaptics"
      Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"

      #Next 3 items added just for the HP Mini to better control the clickpad
      Option "LockedDrags" "1"
      Option "BottomEdge" "4000"
      Option "AreaBottomEdge" "4445"

      EndSection

  3. Do a login again for the changes to take effect.

Hopefully this will be fixed in 12.10.

Simple ToDo 1.1

Version 1.1 has been released. Contains "contextual menu" or "long press" menu with edit and delete elements. Enjoy!

Simple ToDo release

Simple ToDo v1.0 has been release on Android Play - a free version and a full version.

It features a simple list of to do tasks. Each task consists of a title and a optional description. The free version is also subject for advertisements and can only contain 5 to do tasks. The full version is ad free and you can add all the to dos you want, no restriction at all. So please show your support and purchase the full ad free version :)

Spring-WS, getting started

I could spend a long time writing a tutorial on how to use Spring-WS. Instead, I'll asume that you use maven:

mvn archetype:create -DarchetypeGroupId=org.springframework.ws -DarchetypeArtifactId=spring-ws-archetype -DarchetypeVersion=2.0.4.RELEASE -DgroupId=com.mycompany.holiday -DartifactId=holidayService

This will generate all you need, a pom.xml, a Springified web.xml and a spring-ws-servlet. The rest should be straight forward. If not, have a look at the documentation.  


Painful upgrade of Spring framework

Hell no, I just upgraded fra Spring 2.5.6 to Spring 3.1.1 and Spring-WS 1.5.9 to 2.0.4 - with no fuss. Simply changed the version number in my top pom and ta-da.

Thanks to all the Spring developers, pure power!

Eclipse classic missing Marketplace

When using Eclipse classic you probably noticed that there isn't any Marketplace installed - below is a few steps for installing this (and if you have never seen the Marketplace, your missing out on a lot of "fun"):

  1. Help->Install New Software...
  2. Point to Eclipse Indigo Site. If not available add the site "Indigo - http://download.eclipse.org/releases/indigo"
  3. Look at "General Purpose Tools"->"Marketplace Client"
  4. After installing, restart Eclipse and you can find Marketplace in "Help->Eclipse Marketplace..."

Tada, simple yet powerful!

Enable svn auto properties for Eclipse

Once you create a new Java (or any other file for that matter) under Eclipse it is quite convenient to add SVN header info upon comit automatically. This is done by adding a new file named "config" - e.g. in ~/.svn/settings/conf/. Then add the following information to the file:

[miscellany]
enable-auto-props = yes

[auto-props]
* = svn:keywords=Author Date Id Revision

Next, in Eclipse go to Windows > Preferences > Team > SVN and set the "Configuration location" to "Use directory", and simply browser to the configuration directory you just created (you select a dir, not a file!).

Lotus Notes 8.5.3 and Java web services consumer

My initial plan was to use axis and to use the version provided by in jvm in Notes (/Domino? I cannot seem to figure out when to use Notes and when to use Domino, so I'll simply use Notes)... After exhausting trail'n' error I simply gave up and re-wrote everything in Spring.

This gave me the advantage of working without any Notes specific some-what-crappy-and-buggy-versions of axis - a framework which I haven't used for like 5 or 6 years... I use Spring on a daily basis, so this is just top dollah!

Anywho, this also gave me the advantage of being able to do my Java development in a plain Eclipse rather than some really horrible (imho) IDE provided by Notes (also known as the Designer). Again, being free of any specific Notes stuff I started by creating my Jaxb classes. Simply by using the maven-jaxb2-plugin for maven (for architectural reasons I'm stuck on 2.0.9). The power of the plugin is that you add the path to your xsds to the pom.xml and simply do a "mvn install" (read the documentation or catch me on twitter@sunlock). Then you have the model (e.g. xsd types), request, and response classes. Quite neat if I may say so.

Next up is the Spring part. If you have ever done any Spring development this is straight forward. Use Spring-WS and with a simply configuration your done! If you haven't your f*cked! :) Naaa, I have a breif tour on this page - and then your done.

Again, for architectural reasons I'm stuck on a old version of Spring, but that shouldn't stop you for doing some development in the newer versions.

My dependencies (thus being the files added to WEB-INF/lib on the Notes side) are:

  • commons-logging-1.1.1.jar (used by Spring)
  • spring-2.5.6.jar (older version, newest is currently 3.1)
  • spring-ws-1.5.9.jar (older version, newest is currently 2.0.2)
  • my-autogen-jaxb-classes.jar (my classes compiled by Jaxb - added to a jar)
  • my-webservice-consumer.jar (the actual implementation)

Please do notice this bug - currently we haven't had time to figure out what to do as it seems that this bug also exists in 8.5.3, but we're also looking into this.

As always, feel free to catch me on twitter@sunlock.

Lotus Notes 8.5.3, web services, jar dependency, and more...

I'm currently working with Lotus Notes 8.5.3 and web services. This seems to be a brand new area, google doesn't find much (sometimes nothing), so not much help there. Also, I'd like to build my Java code as I normally do - that is, use maven etc. Spring-Ws would be nice, but I'm having a hard time trying to figure out how Notes handles dependencies (I'm guessing... it ain't!).

Guess I'll have to write an article about this some day, but for now... Help? Find me on twitter@sunlock. If you have any experince in this area, please give me a wink.