Paul Sutton

Personal Blog

Bash scripting 11 – ExifTool menu

I have created a very rough and basic script to :-

  • Display a directory listing (currently this will display only .png and .JPG files.
  • As for a filename
  • Display a menu, so that users can choose which Meta data information to display.
# https://www.baeldung.com/linux/shell-script-simple-select-menu
#!/bin/bash
clear # clear display - lets keep things tidy
ls *.png *.JPG #display directory listing png files
echo
echo "Please enter a filename"
echo
read filename
echo "File: " $filename
echo
echo "Menu"
echo
PS3="Select your Option: "

while true; do
    select lng in All ImageSize FileSize PixelSize ClearScreen Quit
    do
        case $lng in
            
            "All")
                exiftool $filename; break;;
            "ImageSize")
               exiftool -s -ImageSize $filename; break;;
            "FileSize")
              exiftool -s -FileSize $filename;break;;
            "PixelSize")
                exiftool -s -Megapixels $filename;break;;
            "ClearScreen")
                clear;break;;
            "Quit")
               echo "We're done"; break 2;;
            *)
               echo "Ooops"; break ;;
        esac
    done
done

It is a little rough around the edges, but it works, and there is, of course, room for improvement.

Tags

#Bash,#Bashscripting,#ExifToolMenu,#MetaData


MastodonPeertubeJoin Mastodon

Donate using Liberapay

Super Bowl LIX

Super Bowl LIX

Date: Sunday, February 9, 2025

Kick Off: 23:30 GMT

Location:  1500 Sugar Bowl Drive, New Orleans LA

Teams: Kansas City Chiefs vs Philadelphia Eagles

Halftime Performer: Kendrick Lamar

BBC Article

How to watch in the UK


MastodonPeertubeJoin Mastodon

Donate using Liberapay

Blacks in Cyber Security CFP

Call for Papers is NOW OPEN!

TAGS

#BlacksInCyber #BICVillage #BICV #DEFCON #DEFCON33 #CyberSecurity


MastodonPeertubeJoin Mastodon

Donate using Liberapay

Possible Gravitational wave detected by LIGO

This is quoted from a Mastodon post from the MPI for Gravitational Physics

Last night, the two @LIGO detectors observed the second gravitational-wave candidate of the day.

The possible signal with the preliminary designation S250205ee most likely originates – if it is real – from the merger of two black holes.

It occurred at a (luminosity) distance of 9.4 billion light-years.

This brings the total number of significant signal candidates identified in the fourth joint observation run of the international detector network to 190. One (GW230529) has already been fully analyzed and published. The others will also be carefully examined and then published if confirmed.

#GravitationalWaves #S250205ee #O4IsHere #astronomy #astrophysics #BlackHoles #physics


MastodonPeertubeJoin Mastodon

Donate using Liberapay

How is this NOT ethnic Cleansing

Donald Trump wants to remove the people of Gaza and relocate them elsewhere, Trump wants US to 'take over' Gaza and own it 'long term', with Palestinians resettled

Perhaps someone can explain how this is NOT ethnic cleansing

  1. Wikipedia – Ethnic Cleansing
  2. Britannica – Ethnic Cleansing
  3. History.com

I will leave this with people.


MastodonPeertubeJoin Mastodon

Donate using Liberapay

Hydrogen Balloon 3

I am working on a follow-up to the Hydrogen Balloon.

I have so far taken a conical flask, glass tube, rubber tube and a beaker which is half full of water. The idea being the reaction takes place in the flask, and the Hydrogen is passed in to the beaker to show the gas has been transferred.

As with most things, it is a case of trial and error, when developing what you are doing.

The set-up is similar to below

hydrogen3

Tags

#Chemistry,#Gas,#Hydrogen,#Experiment


MastodonPeertubeJoin Mastodon

Donate using Liberapay

Tinkerers Meeting – Feb 2025

The next meeting of the Tor bay Tinkerers group will be on Saturday 22nd February 2025. Please see their website for more details and a write-up of the May Meeting.

We meet at:-

STEAM Cafe, 13 Torbay Road 11am to 13:00

Possible topics

TBA

Poster

Tinkerers poster 2025

Tags

#Torbay,#Tinkerers


MastodonPeertubeJoin Mastodon

Donate using Liberapay

Trudeau response to Trump tariffs

This is excellent and speaks for itself.


MastodonPeertubeJoin Mastodon

Donate using Liberapay

Safer Internet Day 2025

This year, Safer Internet Day 2025 takes place on the 11th February 2025

The theme for this year is ‘Too good to be true? Protecting yourself and others from scams online‘

Tags

#Online,#Safety.#SaferInternetDay,#Internet


MastodonPeertubeJoin Mastodon

Donate using Liberapay