Quick photo tidy up

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

Published
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

Published
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]

Published
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]

Published
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 – https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add – sudo sh -c ‘echo “deb http://dl.google.com/linux/chrome/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.

Published
Categorized as geek Tagged ,

Installing JDK 6, 7, 8 on Windows XP (without admin) [SOLVED]

7zip extract the .exe unzip the tools.zip Create a install.bat in the top level directory FOR /R %%f IN (*.pack) DO .\bin\unpack200.exe -r -v “%%f” “%%~pf%%~nf.jar Extract the src.zip from an equivalent linux tar.gz distribution as 7zip doesn’t manage to extract this – it’s the same file

Published
Categorized as geek

Mythtv transcode for Android

After a number of issues with avconv I switched to ffmpeg. Out of memory (OOM) errors. Non-monotonic timestamp issues, and audio/video sync problems Sometimes mythtranscode can fail. If it does, the recommended way to fix it is to stream copy the .mpg using ffmpeg, replace the original file and try again. Android only supports H264… Continue reading Mythtv transcode for Android

Published
Categorized as geek

non monotonically increasing dts error with mythtranscode [solved]

I found the error when processing the output from mythtranscode with avconv. invalid non monotonically increasing dts to muxer in stream 1 I fixed it with a stream copy using mencoder mencoder “input.mpg” -oac copy -ovc copy -o output.mp4 The same technique with avconv did not work, it crashed with the same non monotonic error.… Continue reading non monotonically increasing dts error with mythtranscode [solved]

Published
Categorized as geek