Sorting in Java – Letters First

In my last post there was some Java code for bundling up PDF files. In this post, it’s back!

This time with the focus being on the comparison method of the filenames. The problem with the default sort is that a number will always be ranked higher than a letter.

The files I’m trying to . . .

→ Continue reading Sorting in Java – Letters First

SVGs, PDFs and Java

The need to create a variety of similar pages in a PDF file recently came about. Once again unique, once again related to d-touch. When such pages require rotated text, it becomes a whole new level of fun sorting out the co-ordinates and bounds.

A different approach seemed necessary and I found myself thinking how . . .

→ Continue reading SVGs, PDFs and Java

Temporal Averaging

Otherwise known as a way of combining a ton of photos of the same area to pull out only the static content. It's one of the least time consuming ways to get impossible photos of empty streets.

Basically you take 40 or so photos of a busy section of road without moving the camera even . . .

→ Continue reading Temporal Averaging

d-touch Markers

I’ve been using something called d-touch recently, which could be described roughly as “barcodes that can look interesting”, and it doesn’t require expensive or specialist equipment, just a webcam and a capable CPU.

A program running on the computer monitors the feed from the webcam, and when it sees one or more of the “markers”, . . .

→ Continue reading d-touch Markers