Terence Eden. He has a beard and is smiling.

Terence Eden’s Blog

Theme Switcher:

Long Exposures - Creating Average Frames From Movies

· 3 comments · 750 words · Viewed ~8,236 times


I read a Guardian article about an artist who set up an analogue camera in front of their TV, set it to long exposure, and set a movie playing. The result was a rather wonderful collection of images. You can see more of Jason Shulman's works Is there a way to automate this process? Yes! Here's my attempt at a "Long Exposure" of "Taxi Driver". It's not the same as Shulmans's process, but I …

Fixing Broken Zip Files from Bandcamp - File name too long

· 300 words · Viewed ~570 times


I recently downloaded an album from Bandcamp. On trying to extract the zip file using Ubuntu, I got the error "File name too long." This is a known problem with Bandcamp. If you have a problem with long filenames in zip files, here's how to fix it. Quick Solution unzip -p -c whatever.zip "filename.ogg" > shortname.ogg That will extract a specific file from the zip and then rename it before …

Converting filenames to Title Case in Linux

· 12 comments · 150 words · Viewed ~2,834 times


Linux bash terminal icon.

Here's a simple bash one-liner to convert mixed-case filenames into Title Case: rename 's/(\S+)/\u\L$1/g' * This forces the file extension to lower-case as well. Use rename -n to test the command without changing anything on the filesystem. (Adapted from this PerlMonks FAQ.) Background I have a bunch of inconsistently named files like: HERE COMES THE SUN.mp3 hey jude.mp3 The lOng and…

Sort Folders Into Alphabetic Sub-Folders

· 1 comment · 300 words · Viewed ~1,077 times


Linux bash terminal icon.

Scratching my own itch. I have a bunch of directories which I want moved into alphabetic sub-directories. This is handy is you have a bunch of MP3s, books, or other catalogued files. This bash script moves a top level directory (and all the files and subdirectories under it), to a folder based on the (upper-case) version of the first character of the directory name. #!/bin/bash for dir in */…

Add date metadata to MP4 videos

· 2 comments · 150 words · Viewed ~3,717 times


Linux bash terminal icon.

As ever, notes to myself. I hope you appreciate this future me! Photographs often contain EXIF metadata - really useful for finding out when a photo was taken. It turns out that you can add similar metadata to MP4 format videos. Here's how to do it with ffmpeg on Ubuntu Linux. The magic option is -metadata creation_time="2015-12-25T12:34:56" Stick that in when you're encoding your video and it …

Converting RAR to ZIP in Linux

· 6 comments · 400 words · Viewed ~13,299 times


Linux bash terminal icon.

As ever, mostly notes to myself. RAR is a silly and proprietary format. I prefer free software and I find that ZIP files are smaller and decompress faster. Not everyone agrees, and that's fine. Assuming you've downloaded a RAR file and want to convert it to ZIP, what's the easiest way? Install P7Zip sudo apt-get install p7zip-full p7zip-rar Script This basic bash script will Extract a…

Easy ways to add watermarks to images and videos in Linux

· 1 comment · 450 words · Viewed ~8,678 times


Mostly notes to myself :-) Here is a quick way to add watermarks to photos and videos. All Linux command line based - so perfect if you've got a lot of images you want to manipulate. Here is a delightful photo I've taken of a bee covered in pollen. I want to add a little copyright notice to it in order to discourage people using it without permission. This command uses imagemagick's…

Reducing the filesize of complex 3D .OBJ models

· 500 words · Viewed ~11,228 times


Loading large 3D Models in the browser is extremely resource intensive. 2D images are trivial to resize and resample with negligible loss of perceived quality. 3D resizing is complex. As part of my "Pirate Museum" I wanted to display 3D scans of statues using WebVR. The only problem is, these files are huge. Take The Dancing Faun - at full resolution, that's around 230MB. Even on fast…

BMW *are* complying with the GPL

· 2 comments · 2,500 words · Viewed ~35,074 times


The good news follow-up rarely gets as much attention as the original bad-news story. Earlier this month I accidentally kicked off a minor kerfuffle over whether BMW was respecting the GPL. Their i3 car contains a huge amount of Open Source Software and there was some confusion as to BMW's compliance with the licence terms. I took a look through the car's user interface and, hidden away, was…

Cheap BlueTooth Buttons and Linux

· 44 comments · 750 words · Viewed ~45,137 times


Selfie sticks - like most modern inventions - are utter tosh. But they've rapidly brought down the price of Bluetooth buttons. So who am I to complain? Let's take the venerable AB Shutter 3 - You can find it on Amazon for around £2 including postage - or around $2 on AliExpress. Frankly, that's stupidly cheap. OK, let's put this to work as something other than a vanity clicker! There are no …

Help! How do I extract 3D objects from PDFs?

· 23 comments · 350 words · Viewed ~16,163 times


The PDF file icon with a big red line through it.

You know how the Democratic People's Republic of Korea is neither democratic, nor particularly for the people, nor a republic? Yeah, so it turns out the "Universal 3D" format is pretty far from Universal! A little backstory... The Europeana Carare Project has some gorgeous 3D scans of ancient monuments and heritage sites. The only problem is that the 3D files are trapped inside PDFs. Yup -…

How to type Emoji in Ubuntu

· 6 comments · 150 words · Viewed ~4,761 times


New tech site Gadgette has a great article on how to type Emoji on Mac and Windows - but they (understandably) didn't cover Ubuntu. So here I am to show you how. Get The Fonts If your computer doesn't have the requite font, install the latest version of Symbola. Simply open up the .zip file, double click on the .ttf font, then choose "Install". Find The Character You almost certainly have…