Quantcast
Channel: Michael Vorburger's Old Blog
Browsing latest articles
Browse All 25 View Live

Number of days between two dates? (Java)

Recently a needed to get the number of days between two dates in Java.Easy, right? Quite a few pages & articles suggest, and I admit my first iteration too, was: Calendar firstDay = new...

View Article



Simple HTTP Server in Java

Just for fun (well, almost), I wrote my very own simple HTTP server in Java (download 100 KB ZIP) the other night. It uses Java5 features, and requires no external libraries. While it certainly does...

View Article

Making Movies

The other week-end Dév and I made an animated movie of his current favourite toys, including soundtrack. He loved it - almost as much as "real" Thomas the Engine episodes.PS: Thanks Google Video for...

View Article

WSDL Validation with wsdl4j

Imagine a set up where a team A provides Web Services to Team B. The service team A uses a "contract first" SOA approach, so they hand-write WSDL (more on that another time) and generate Java from it...

View Article

Lego

Posted snaps of some LEGO constructions I made with Dév...

View Article


Setting up two-way (mutual) SSL with Tomcat on Java5 is easy!

I recently wanted to set up Tomcat for two-way (mutual) SSL. It turns out this is fairly easy, particularly with Java5 since it now provides writes, and not just reads, of PKCS#12 keystores directly,...

View Article

Electronic Passports - done all wrong?

Yesterday the morning newspaper carried a (very short) article about new Electronic Passports being hacked or something like that. I wanted to know what that was about, and some Googling revealed that...

View Article

XFire Example: Contract First & Spring

From: Michael VorburgerSubject: Proposed new XFire example: Use of wsgen/xfire (contract first), and SpringTo: user@xfire.codehaus.orgHello,The XFire distribution includes only one simple example of a...

View Article


GMail offline - via Google Desktop

I just realized that you CAN read Gmail offline... via Google Desktop! (You have to enable that "Search Gmail [X] Index and search email in my Gmail account" thingie; if you do, full copies of all...

View Article


Machine translation progress

Machine translation seems to have made impressive progress in the last few years. Running e.g. a Wikipedia Article article through Google Language Tools or Systranbox.com (which produces the almost...

View Article

soapUI

If you develop SOAP-based Web Services, there is a tool that you will not want to miss once you have tried it. It's soapUI, an open-source GUI for easily and very quickly creating and firing off SOAP...

View Article

SWSDL - Simple WSDL format, and my swsdl2wsdl

Hand writing WSDL (Web Service Description Language, stop reading here if that doesn't mean much to you?) is a pain. The GUIs I have seen (whether XML Spy or Eclipse WTP or...) don't really change the...

View Article

Propagating Acegi's Security Context in a WSS UsernameToken SOAP Header via...

XFire includes a ws-security example, which demonstrates how a SOAP Header with a Web Service Security (WSS) UsernameToken can be inserted into an outgoing request message, using Apache's wss4j...

View Article


JUnit in Ant Classpath Hell

Running JUnit tests from an Ant build script - piece of cake? Welcome to Classpath Hell. Read the Ant FAQ for a taste of what to expect... (NOTE: Ant 1.7, which just came up, finally "solves" this, but...

View Article

Google Maps Street View

I had heard about the new "Street View" in Google Maps earlier but just tried it for real tonight...To "walk" from my previous life office on 11 John Street over to Ground Zero and Battery Park, then...

View Article


liftConference Venture Night

I am at the Venture Night of the lift conference in Geneva this evening. It's an interesting change from the sort of things I think about in my current day job. Some thoughts about the companies that...

View Article

Testing OpenJPA SQL statements using a JDBCListener

I am currently designing something around FetchGroups in OpenJPA, and being a good Agile / Test Driven architect, I wanted to write a JUnit which asserts the actual SQL statement generated by this ORM...

View Article


GetterMethodsReflectionToStringBuilder

Apache Commons Langhas a ToStringBuilderwhichissometimeshandy.The other day I needed something like this which "reflects" on public getters() instead of on private fields, so I hacked one; I call it...

View Article

xText Standalone Setup Parsing a DSL from a String without EMF Resource

I have been playing with xText, a very interesting framework for development of textual domain specific languages (DSLs).My interest is around an (existing, legacy) expression language, and twofold: a)...

View Article

Links for kids, learning websites & software

Here is a list of some links to learning websites & software for kids which others may find useful, from my delicious.com bookmarks. Most I've them I have myself used with my son...

View Article

Privacy, Firefox Geolocation, Google Location Service

I vaguely knew there was something like a W3C Geolocation API, had earlier read about the Google Gears Geolocation API, figured Yahoo had some Geo Technologies.I had heard this works on recent mobile...

View Article


Customer Loyalty (KISSfp)

Recently I received one of the more fascinating emails in quite a while. Quite an experience, really. With Bill's permission, here it is:Hi, Mike,Sorry to bother you at this email, but I keep getting...

View Article


JPA Id/Object References always, with Null Objects, a Pattern?

An object has references to other objects. A row in a relational database table has foreign keys (FK) to rows in other tables.While this basic "impedence mismatch" between the model used in the...

View Article

Pranav Mistry's SixthSense - on an Android-based wearable projector+webcam...

A visiting family friend of ours pointed me to Pranav Mistry's SixthSense. If you haven't seen this already, do watch the Videos - it's really Pretty Cool Stuff.A few days later I still can't stop...

View Article

This blog has moved

An archive of this blog, which you can still comment on, is now located at http://blog1.vorburger.ch. You will be automatically redirected in 30 seconds or you may click here.My New Blog (as of July...

View Article

Browsing latest articles
Browse All 25 View Live




Latest Images