Paul Sutton

Personal Blog

Open Street map 5

OSM

So, further to my previous post, I have now made further edits to the map. STEAM Café and Music shop next door are now added, I am trying to change Peacocks, which is listed as a vacant building to the map. I need to add it as a clothes shop or shop, but can't find in the list, so have asked on Matrix for help.

I have also suggested on the UK community forum that we can perhaps use the Tinkerers meetings to meet up with other OSM hackers. It just needs something to start this off, then a group can be formed, and a more formal schedule can be agreed upon.

There are now some OSM flyers in the STEAM Café,
You should be able to tag me on OSM/Forum and Matrix with @zleap

If you are a local business, then it is in your interest to be on the map accurately, as the OSM data can be used as part of Apps that point to local information, keeping the map updated is really vital.

Links

Tags

#Community,#Open,#StreetMap,#Cartograpy,#CrowdScource, #OpenStreetMap


MastodonPeertubeJoin Mastodon

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.

Donate using Liberapay

Bash scripting 16 – Using data files 2

So, carrying on from the previous article(s). I am going to be using gnuplot and awk, and see what I can do with the data generated by my script.

It would be useful to be able to remove content in the file we are using with awk, so new data is not added to existing data.

We can do this by running:-

echo " " > log.csv

This should ensure the file is empty

we can then rerun

./gencsv1.sh 

And check contents with

echo csv.log

So according to the article, we can list the data in the 2nd column

awk -F, '{ print $2}' log.csv

 2
 7
 14
 4
 5
 7
 17
 19
 0
 19

and on a similar note, to list what is in the first column

awk -F, '{ print $1}' log.csv

and we can calculate the sum using

awk -F, '{ sum +=$2} END { print sum }' log.csv
94

and the average

awk -F, '{ sum +=$2} END { print sum/NR }' log.csv
8.54545

Chat

I am on the Devon and Cornwall Linux user group mailing list and also their matrix channel as zleap, it is better to ask there, that way others can answer too.

Tags

#Bash,#Bashscripting,#Files,#UsingDataFiles,#Data,#BashScripting


MastodonPeertubeJoin Mastodon

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.

Donate using Liberapay

Bash scripting 15 – Using data files 1

So, carrying on from the previous article. I am going to be using gnuplot and awk, and see what I can do with the data generated by my script.

So the first task, if of course to install gnu plot

sudo apt install gnuplot

It is also a good idea at this stage to determine version numbers of the tools we are using

gnuplot -V
gnuplot 6.0 patchlevel 0

and

awk -V
GNU Awk 5.2.1, API 3.2, PMA Avon 8-g1, (GNU MPFR 4.2.1, GNU MP 6.3.0)
Copyright (C) 1989, 1991-2022 Free Software Foundation.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see http://www.gnu.org/licenses/.

Tags

#Bash,#Bashscripting,#Files,#UsingDataFiles,#Data


MastodonPeertubeJoin Mastodon

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.

Donate using Liberapay

Windows Recall

There are serious security and privacy concerns about this feature, and even if you opt out of it, it does not mean your data is safe.

Time to switch to replacement operating systems and start to learn them. Don't forget also that Windows 10 support ends in August. You may be forced to upgrade to Windows 11 on your hardware, or depending on when you bought the computer, upgrade the whole computer with a new one just so you can run Windows 11.

Links

Tags

#Microsoft,#Windows,#Recall,#Privacy,#Security


MastodonPeertubeJoin Mastodon

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.

Donate using Liberapay

Bash scripting 14 – Generating data files

Issue 249, May 2025 of Linux Magazine, p52-55, had an article on using awk, and gnu plot to manipulate data. In order to try and make use of this, and learn more, I am trying to figure out how to write a csv file.

Write 10 lines to the first column should be in sequence e.g. 1-10 and the 2nd column should be random numbers. This should be written to a file.

So after some digging I managed to come up with this, by modifying some existing solutions

write_csv(){
    echo \"$1\",\"$2\" > log.csv # write to file, use >> to append
}

#sources of help
echo "number" "data" # for reference, not written to file 
for ((i = 0 ; i < 10 ; i++)); do
    echo $i, $RANDOM # echo to screen (stdout)
	echo $i, $RANDOM >> log.csv # write to file
    #write_csv $(($i, $RANDOM % 10))
done

The screen output for me was

number data
0, 17109
1, 2872
2, 22572
3, 7228
4, 27923
5, 6335
6, 20004
7, 32343
8, 10005
9, 21905

While the file output (log.csv) was similar but without the headings, which I just put in for my own reference, the file does work as a csv as I can open in LibreOffice Calc.

0, 17109
1, 2872
2, 22572
3, 7228
4, 27923
5, 6335
6, 20004
7, 32343
8, 10005
9, 21905

As the numbers are quite big, a closer examination, promoted me to make the following modification

echo $i, $((RANDOM % 20)) # echo to screen (stdout)
echo $i, $((RANDOM % 20)) >> log.csv # write to file

This fixes the 2nd column to produce a number between 1 and 20.

number data
0, 17
1, 12
2, 12
3, 16
4, 2
5, 13
6, 10
7, 6
8, 16
9, 16
cat log.csv
0, 3
1, 17
2, 8
3, 16
4, 10
5, 18
6, 5
7, 14
8, 11
9, 11

The script was called gencsv1.sh, which as expected needed execute permissions

chmod +x gencsv.sh

References

In order to help me I used the following, so giving credit to these sources as would be expected.

Tags

#Bash,#Bashscripting,#Files,#Random,#Data,#CSV,


MastodonPeertubeJoin Mastodon

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.

Donate using Liberapay

Humble Bundle 15/4/2025

Cert Preparation

31 Days Before your CCNA Exam CompTIA Security+ SY0-701 Exam Cram CompTIA Network+ N10-009 Exam Cram CISSP Cert Guide Cisco Certified Support Technician (CCST) Cybersecurity 100-160 Official Cert Guide AWS Certified Solutions Architect – Associate (SAA-C03) Cert Guide CompTIA Linux+ XK0-005 Exam Cram CompTIA PenTest+ PT0-002 Cert Guide Cisco Certified Support Technician (CCST) IT Support – 100-140 Official Cert Guide AWS Certified Cloud Practitioner CLF-C02 Cert Guide CCNP and CCIE Security Core SCOR 350-701 Exam Cram RHCSA 9 Cert Guide CompTIA Advanced Security Practitioner (CASP+) CAS-004 Cert Guide CCNP and CCIE Enterprise Core ENCOR 350-401 Exam Cram 31 Days Before your Cisco Certified Support Technician (CCST) Networking 100-150 Exam: Cisco Certified Support Technician CCST Networking 100-150 Official Cert Guide

Tags

#Books,#Certification,#Preparation,#HumbleBundle


MastodonPeertubeJoin Mastodon

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.

Donate using Liberapay

Top 10 skills in demand 2025

There are numerous sites with this or similar information on what are the most in demand skills of 2025.

Some of my recent posts point to courses or information on these areas. Others will require your own research [2]. This list is from True Digital Academy [1].

  1. Data Science & Cloud Computing
  2. Artificial Intelligence (AI) & Machine learning (ML)
  3. Big Data
  4. Digital Marketing and strategy
  5. Process Automation
  6. Business Development
  7. Digital Transformation
  8. Information Security and Cybersecurity
  9. Software and Application development
  10. Internet of things

I made a post a few years ago, with a link to training courses from the Linux Foundation and others [3]. So there are some links that are related to the above list.

References

  1. true digital academy
  2. DuckDuckGo
  3. Linux Foundation Training post

Tags

#Skills,#Year2025,#Demand,#Work,#Employment.#Training


MastodonPeertubeJoin Mastodon

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.

Donate using Liberapay

YouTube removes 'gender identity' from hate speech policy

Why are you using platforms such as Youtube? By using Youtube you are using a platform that clearly does not support equality, diversity and inclusion in order to please the US government.

SCOOP: YouTube removes 'gender identity' from hate speech policy. “YouTube quietly removing ‘gender identity and expression’ from its list of protected groups is a major radical shift away from best practices in the field of trust and safety.”

Time to switch to peertube

Tags

#Youtube,#Policy,#DEI,#Peertube


MastodonPeertubeJoin Mastodon

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.

Donate using Liberapay

Humble Bundle 14/4/2025

Network Mastery

Segment Routing in MPLS Networks Zabbix 7 IT Infrastructure Monitoring Cookbook, Third Edition Network Automation with Nautobot Network Architect's Handbook Designing and Implementing Microsoft Azure Networking Solutions Mastering 5G Network Design, Implementation, and Operations Mastering Python Networking, Fourth Edition Fourth Edition CompTIA Network+ N10-008 Certification Guide – Second Edition 2nd Edition Google Cloud Certified Professional Cloud Network Engineer Guide. Advanced Network Simulations Simplified CompTIA A+ Practice Tests Core 1 (220-1101) and Core 2 (220-1102) AWS Certified Advanced Networking – Specialty (ANS-C01) Certification Guide Modern Network Observability Implementing and Administering Cisco Solutions: 200-301 CCNA Exam Guide Python for Security and Networking, Third Edition 3rd Edition Hands-On Network Programming with C Network Automation with Go Linux for Networking Professionals Python Network Programming Techniques Networking Fundamentals

Tags

#Books,#HumbleBundle,#Python,#Networking,#CyberSecurity


MastodonPeertubeJoin Mastodon

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.

Donate using Liberapay