Showing posts from 2013

Recovering truncated OpenNI ONI files

The open source OpenNI library for RGB-D cameras, like Microsoft Kinect, allows to record and playback streams of color and depth content. These streams are stored into a structured file with ONI extension.

If the recording application (such as NiViewer or your own) crashes the resulting ONI file results invalid and it is not readable by OpenNI.

Starting from the source code of the OpenNI2 I have prepared a minimal Python script that tries to fix the ONI file:
Truncate the file if the last Record is incompleteAppend a RECORD_END if it is missingFix the starting header with the maximum node identifier  The Python script is available here.

Update: the tool eventually evolved in a more general tool for manipulating ONI files. Github repo.

Surviving OSX crash on Linux

The aim of this post is to provide some ideas for recovering work from a crashed Mac machine, at least when the hard disk has not been damaged.

mount the Time Machine backupmount the original disk as R/W with permissionsmount the disk as Copy on Write clone the original disk as VDI and mount itrun OSX from Virtual Box

Hiking Sassolungo, Sassopiato and Val Duron in Dolomiti

During a recent vacation in Trentino we have hiked a bit on the great Dolomiti mountains. In particular in the zone around Canazei.
The first is a trip on the south side of the Sassolungo group, then walking down along the Val Duron. The starting point of this trip is Col Rodella from Campitello di Fassa. Then it walks up and down along the path 557 (Federico Augusto) passing Rifugio Pertini and Rifugio Sassopiatto. From the last Rifugio it descends along the path 533 in the Val Duron, passing by Rifugio Micheluzzi. Finally it ends in Campitello.
The map shows the path from Col Rodella and ends in Canazei after taking the walking path from Campitello. There is also a detour from Col Rodella to the Forcella Sassolungo top by means of cable car.
You can review this trip on Google Earth using the following KML or GPX link. 
A description of this path can be found in other blogs, like this.

Trip over Prana Mountain

This is a trip over the Prana mountain around Camaiore (Lucca Province). The starting point is the small village of Metato (Lucca Province). The trip is described in italian at this page.

The beginning part is quite steep but then the view is quite good.

The following image is the track as recorded with the GPS in the smartphone. You can also browse and download it using the KML file.