A new Litter Survey
In a culmination of litter surveys and litter picks, linked data() and data exploration, and remoteStorage and ActivityPub, I have created a web-based litter pick/survey app that I hope will allow federated citizen science.
In a culmination of litter surveys and litter picks, linked data() and data exploration, and remoteStorage and ActivityPub, I have created a web-based litter pick/survey app that I hope will allow federated citizen science.
My latest litter pick target was Hoe Stream and the White Rose Lane Local Nature Reserve. Here's how it went.
I just created a Gitlab CI job to create a release with information from a CHANGELOG.md file for some of my projects. Here's how I did it.
I noticed something strange happening during build process during a multi-tasking bug fix. Turns out I was using Gitlab CI's caching incorrectly. I should have been using artifacts. Here's what I saw.
As a birthday treat, I took the day off work to try out my electronerised litter picker. Here's how it went.
In preparation for a day of litter picking, I finally got round to a project idea - attaching a camera to a litter picker to record it all. Here's what I did.
I finally started implementing UI testing on first-draft using WebdriverIO. While writing tests was easy, getting the tests running was a little more difficult. Here is how I did it.
Hooray! My new blog is live! Based on Sapper, using MongoDB and eventually ActivityPub and ActivityStreams, it will be my federated posting hub to the world.
Creating this new blog, I wanted to make sure there was no metadata data leaking personal information. Here's how I removed all the metadata tags except the ones I wanted from my photos.
Photos taken on smart phones and newer cameras can have a lot of metadata in them. This metadata can include your GPS location, software you have used to edit the photo and the device they were taken on. While this metadata can be handy in remembering where you took the photo or what the photo is of, sharing this data can pose a security risk.
In preparing photos for this site, I wanted to remove all but the important metadata from each image.
A great command line tool to do this with is `exiftool. It is capable of viewing and editing image metadata on many different file types and metadata formats.
To view the metadata of a file, you simply call exiftool giving it the name of the photo.
$ exiftool photo.jpg
ExifTool Version Number : 11.88
File Name : test.jpg
Directory : .
File Size : 118 kB
File Modification Date/Time : 2020:08:09 18:10:45+01:00
File Access Date/Time : 2020:08:09 18:10:46+01:00
File Inode Change Date/Time : 2020:08:09 18:10:45+01:00
File Permissions : rw-rw-r--
File Type : JPEG
File Type Extension : jpg
MIME Type : image/jpeg
JFIF Version : 1.01
Exif Byte Order : Little-endian (Intel, II)
ISO : 50
Exif Version : 0220
Date/Time Original : 2019:01:14 13:33:19
... The basic command to remove all metadata from an image is using -all=
$ exiftool -all= photo.jpg
1 image files updated
$ exiftool -all= folder/*.JPG
73 image files updated To remove all but a set list of metadata, you can use -all= along with a set argument for each tag you want to keep. The set argument is in the format -TAG<TAG, which tell exifdata to set the value of TAG from the current value of TAG.
Here is the command I used to remove all metadata except the date, tags, title and description.
$ exiftool -all= "-DateTimeOriginal<DateTimeOriginal" "-TagsList<TagsList" "-Title<Title" *.jpgDetermining the name of your tag you want to keep is as simple as finding the metadata in the output of exiftool and then removing the spaces and slashes from the name. For example Date/Time Original (as shown above) would become DateTimeOriginal.
I have noticed that running the command above will add a value for XMP Toolkit to the image. If you want to get rid of this, you can add -XMPToolkit= to the command
$ exiftool -all= "-DateTimeOriginal<DateTimeOriginal" "-TagsList<TagsList" "-Title<Title" -XMPToolkit= *.jpgUsing tmux for your terminal multiplexer but want an easy to reattach to a session? Here's a small bash script to do it.
Here's how to help your readers save time by making your post's shell commands easy to select and copy - with a simple CSS property.
Making my new blog, I didn't initially set the published dates to be native dates in the database. Here what I did to change them ...and do all the upgrades I needed.
I recently needed to test that some Vue components were creating the correct HTML. To do this, I decided to create snapshots of Object representations of the rendered HTML.
HTML5 number inputs aren't useful, but tel inputs, have all the power
I decided to look into the extortion emails I have been getting and wrote a small script to extract the bitcoin addresses that have been used.
As part of my pledge not to upgrade, I decided to repair two of my failing mice instead of replacing them with a brand new model (as tempting as it was). Here's what I did.