Slovenské denníky a Kindle / čítačky elektronických kníh

lacike/ February 22, 2013/ Hints

Čítačky elektronických kníh sa sa rozmáhajú aj na Slovensku. Nie každý však vie, že nie sú určené len na čítanie kníh. Veľmi pohodlne sa v nich dá čítať napr.denná tlač a to aj napriek tomu, že nemajú aktívny prístup na internet (pod aktívnym prístupom rozumej možnosť prehliadať web stránky a podobne). Prednedávnom som sa stal šťastným majiteľom Kindle 4. generácie a

Read More

JAXB xjc expected element of type …

lacike/ November 21, 2012/ Hints

If you have trouble loading Xml using classes generated by xjc tool (included in JAXB distribution), be carefull and do not define XSD main element like this: <!– MAIN element –> <xs:element name=”main” type=”Main”> <xs:complexType name=”Main”> … The problem here is that the main element and main element type names are identical (except the first letter that is uppercased). Xjc

Read More

Java String.isEmpty interrupts method call or thread

lacike/ November 15, 2012/ Hints

Does your call of String.isEmpty in your code cause strange behaviour such as: – sudden interruption of method call (as if return was called) – thread interruption ? The problem is quite simple – you had build your code using JDK 1.6 with language compatibility set to previous version (1.4, 1.5) hoping the compiler would use the correct classes. This

Read More

JWChat and Google Talk setup

lacike/ October 2, 2012/ Hints

Recently, I needed to access gtalk from behind a firewall that blocked access to sites like gmail, google talk, facebook etc. So, I decided to prepare a workaround – jabber web client with its own http bind. Roughly said, it’s tunneling via http (port 80) to allowed host. The stupid firewall sees only http connection to unknown server (my own

Read More