Free Software Directory meeting
Join the FSF and friends on
Date : Friday, December 27
Time : 12:00 to 15:00 EST (17:00 to 20:00 UTC)
Subject : Help improve the Free Software Directory.
Link ; Free Software Foundation
AI statement :
Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity. Consent CANNOT be assumed, it has to be granted.

Small Modular Reactors explained
Just making a post on this, as it may also be of interest to others looking at related careers. Sounds a good opportunity to get some great training in this field.

SMRs are defined as small nuclear reactors with a maximum output of 300 Megawatt electric (MWe) and can produce 7.2 million kWh per day. By comparison, large-size nuclear power plants have an output of over 1,000 MWe and can produce 24 million kWh per day. SMRs can vary in size from around 20 megawatts electric (MWe) up to 300 MWe and can use a range of possible coolants including light water, liquid metal or molten salt, depending on the technology.
A post on Fedi, highlights the EU support for Small Module reactors @Energy4Europe
The EU is supporting research and development of Small Modular Reactors via the Euratom Research and Training Programme,
Tags
#SMB,#EU,#Energy,#Education.#Training
AI statement :
Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity. Consent CANNOT be assumed, it has to be granted.

Bash scripting 4 – Goals
One of my goals with this, is now to create a script to take the following
ffmpeg -i 20OCT5.mp4 -c copy -an 20OCT5-ns.mp4
Which only works on 1 file, so I need to run and modify the above for each fine in a directory. As I take more video, then the need to have better automation would be useful.
So, the above line of code :
- Takes a single .mp4 file
- Removes the sound content
- Saves the output to a new file that appends the filename with -ns
So a script need to do this with each file of that type in the directory or folder.
Again looking on stack overflow This may point to a solution
for f in *.shp; do printf '%s\n' "${f%.shp}_poly.shp"; done
You will, of course, need to set execute permissions
chmod +x script.sh
Tags
#Bash,#Bashscripting,#BatchProcessing
AI statement :
Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity. Consent CANNOT be assumed, it has to be granted.

Bash scripting 3 – array
I have now figured out how to take a directory listing and put the contents in to an array. I had some help from a Stack Overflow post
#take a directory listing and store files in an array
#! /bin/bash
var=(*)
printf '[%q]\n' "${var[@]}" # store all files in directory in array var
echo $var[png];
You will, of course, need to set execute permissions
chmod +x script.sh
Tags
#Bash,#BashScripting,#BatchProcessing
AI statement :
Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity. Consent CANNOT be assumed, it has to be granted.

Wikipedia needs donations
Elon Musk has ordered everyone to stop donating to Wikipedia.
I never started, until this morning.
https://donate.wikimedia.org is the link, if anyone feels like disobeying a direct order from a billionaire jerkwad.
Make your donation now – Wikimedia Foundation
donate.wikimedia.org
AI statement :
Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity. Consent CANNOT be assumed, it has to be granted.

Bash scripting 2 – files
In between getting my head around rust, I am doing more with bash.
The following script is based on the iso download script, but creates 3 empty text files
#!/bin/bash
echo Create files listed in an array with the touch command
files=(
# list of files to create
"file1.txt"
"file2.txt"
"file3.txt"
)
# Loop to create each file
for filelist in "${files[@]}"; do
touch "$filelist"
done
#list files
ls -l
Which is good for creating lots of files of the same type. Now letgs say we would like to add some text to each of the files
we can amend the script as follows
# Loop to append each file
for filelist in "${files[@]}"; do
touch "$filelist" # create the files
lorem > "$filelist" # add lorem text to each file
#lorem >> "$filelist" # append lorem text to each file
done
#list files
ls -l
You will need access to the lorem command, which can be installed on a Debian based system using
sudo apt install libtext-lorem-perl
Please see the stackoverflow post
Also see the man page for lorem
man lorem
You will, of course need to set the execute permissions
chmod +x script.sh
Tags
#Bash,#Bashscripting,#FileCreation
AI statement :
Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity. Consent CANNOT be assumed, it has to be granted.

NASA Spacecraft ‘Touches Sun’
NASA Spacecraft ‘Touches Sun’ In Defining Moment For Humankind
It may be Christmas Day, this does not mean science has stopped, Just spotted this update to the Parker Probe mission.
An update from Forbes on the Parker Probe mission
Not sure if / when the communication black out is going to be, but it seems so far so good for the mission.
Tags
#NASA,#Mission,#TheSun,#Parker
AI statement :
Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity. Consent CANNOT be assumed, it has to be granted.

ISO download script
This is a very basic bash script designed to download and check an iso file.
echo Download iso and sha256sum file
echo from https://www.linuxmint.com/edition.php?id=316
echo You should perform the gpg sign check manually as per instructions.
echo
echo Please ensure that sha256sum is installed.
echo
echo You should be able to use ctrl-c to abort download
echo wget -c is designed carry on where it left off if interupted but may take
echo some time to complete.
echo
echo start
urls=(
# Download Linuxmint 22 and sha5sum.txt
"https://mirror.bytemark.co.uk/linuxmint/stable/22/linuxmint-22-cinnamon-64bit.iso"
"https://mirrors.kernel.org/linuxmint/stable/22/sha256sum.txt"
)
# Loop to download each file
for url in "${urls[@]}"; do
wget "$url"
done
#Perform basic checksum check
sha256sum -c sha256sum.txt
You will, of course need to set the execute permissions
chmod +x script.sh
Links
Tags
#Bash,#Script,#ISO,#Downoad.#Check
AI statement :
Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity. Consent CANNOT be assumed, it has to be granted.

NASA Solar probe
I guess it would not be Christmas without a big space event taking place. 2024 is no exception, this year is the turn of the NASA Parker solar probe attempting the closest flyby.
I was reminded about this after seeing the BBC headlines today, mission details are below.
Discussion
Should be able to discuss further on Mastodon or on Science Forums.
Tags
#NASA,#Space,#Science,#SolarProbe
AI statement :
Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity. Consent CANNOT be assumed, it has to be granted.

Beginning rust programming 2
A quick summary of what we can do with Cargo.
We can create a project using cargo new.
We can build a project using cargo build.
We can build and run a project in one step using cargo run.
We can build a project without producing a binary to check for errors using cargo check.
Instead of saving the result of the build in the same directory as our code, Cargo stores it in the target/debug directory.
References
Tags
#Programming,#Language,#Rust
AI statement :
Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity. Consent CANNOT be assumed, it has to be granted.
