Custom refactoring with Eclipse JDT library

Eclipse source code clean-up wizard and other refactoring tools are great, but sometimes they are just not quite powerful enough. For example a large legacy application with 100s of instances of non-standard Java package and class names. These could be cleaned by refactoring each in turn. Additionally Eclipse “update fully qualified names in non-Java text… Continue reading Custom refactoring with Eclipse JDT library

JOGL with Java 17

JOGL 2.3.2 fails on Java 17 with errors such as Exception in thread “main” java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 1 at There is limited info on this, traced to this nasty chosenGC = Win32SunJDKReflection.graphicsConfigurationGet(device, winConfig.getPixelFormatID()); This relies on reflection on core JDK classes, obviously a no-no from Java 9 onwards, but… Continue reading JOGL with Java 17

Simple minimal install

Refreshing some very old hardware for use with iPlayer etc. Only 2GB RAM and latest Ubuntu is very bloated. Did minimal install from standard desktop ISO which I happened to have on USB key # old school – no display manager, just openbox sudo apt remove gdm3 gvfs cups kerneloops whoopsie modemmanager sudo apt install… Continue reading Simple minimal install

Quick photo tidy up

convert from DCIM conventions to date based… brew install exiftool exiftool ‘-FileName

Categorized as geek

Cesium 3D model translation

If you’re using the primitive API rather than the entity API then you do not have easy access to the orientation parameters. It’s possible to do all this from scratch, but it’s hard work…. var getModelMatrix = function(lon, lat, rotationZ) { // 1) create a translation position matrix var posMat = Cesium.Transforms.eastNorthUpToFixedFrame(Cesium.Cartesian3.fromDegrees(lon, lat)); // 2)… Continue reading Cesium 3D model translation

Install JavaFX Scene Builder 2.0 without local administrator on Windows

Yes, this is possible, by default the javafx_scenebuilder-2_0-windows.msi installs to all users and tries to registry some fonts etc. This can be avoided by running the following command. This will install a link to the Desktop, when it is run Scene Builder will install, just click Ignore on all the warnings about failed font installation.… Continue reading Install JavaFX Scene Builder 2.0 without local administrator on Windows

Categorized as geek

Corrupted mythtv database table [SOLVED]

Started seeing “No seektable” when trying to edit recordings – to set cut points…After investigation turned out the table recordedseek in mythconverg was corrupt. Tried to fix with this but didn’t work. mysqlcheck –databases mythconverg –auto-repair Ended up with this solution. Export database excluding bad table, purge database, rebuild and then replay export file on… Continue reading Corrupted mythtv database table [SOLVED]

Categorized as geek Tagged

Mounting OS X 10.7.5 anonymous share with Ubuntu 14.04 [SOLVED]

This is the final solution. See failed attempts below and error outputs. # as line in /etc/fstab //horse.lan/Movies /data/Movies cifs username=guest,password=none,sec=ntlmssp,nounix 0 0 # using mount sudo mount -t cifs //horse.lan/Movies -o username=guest,password=none,sec=ntlmssp,nounix /data/Movies Attempt 1. Fail. Why. mount.cifs not installed by default. sudo mount -t cifs //horse.lan/Movies -o guest /data/Movies mount: wrong fs type,… Continue reading Mounting OS X 10.7.5 anonymous share with Ubuntu 14.04 [SOLVED]

Categorized as geek Tagged

Ubuntu 14.04 Mythtv box setup notes

# extra repos sudo apt-add-repository ppa:ehoover/compholio sudo add-apt-repository ppa:jon-hedgerows/get-iplayer wget -q -O – | sudo apt-key add – sudo sh -c ‘echo “deb stable main” >> /etc/apt/sources.list.d/google.list’ # update sudo apt-get update sudo apt-get dist-upgrade # essentials apt-get install openssh-server emacs # static IP address sudo emacs /etc/network/interfaces auto eth0 iface eth0 inet… Continue reading Ubuntu 14.04 Mythtv box setup notes

iperf bandwidth testing woes – killing cleanly etc.

When running iperf on Windows platforms it is difficult to shut it down cleanly, without leaving stray child processes – especially if using within Java using ProcessBuilder. The solution I’ve discovered takes two approaches. Firstly run iperf server using the lesser known -P 1 switch, this causes it to shutdown after the client has connected.… Continue reading iperf bandwidth testing woes – killing cleanly etc.

Categorized as geek Tagged ,