Paul Sutton

Personal Blog

Code Club – Trinket and python Modules

Trinket allows you to use a number of different modules to add functionality to your programs.

Code Club have added a py5 module for their own projects. So this post will examine how to add one of the available libraries to your program.

Firstly a list of the modules that Trinket.io provides can be found here. along with some documentation for each.

So to add a module we need to use the import command.

Start with a blank new Python 3 project and enter the following

#!/usr/bin/env python3 #use python 3

Then the instruction to import the required module.

import numpy

Now test if you don't get errors proceed to add

from numpy import *

And test again.

Should give no errors, in which case you can now start to use module numpy

Other info

You can use modules such as Numpy and matplotlib in software such as Jupyter Notebook

Tags

#Python,#Trinket,#Modules,#HowTo,#CodeClub


Mastodon ShellLabs Join 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

American football – Torbay Trojans vs Cornwall Reminder

Next game is Sunday 4th June 2023. We are playing Cornwall Monarchs at home, kick off 14:00 at Foxhole field, Bellfield Road, Paignton.

pitch

Links

Fixtures

23rd April Wyverns vs Trojans 2pm Kick off 30th April Trojans vs Storm 2pm Kick off 21 May Dreadnoughts vs Trojans 2pm Kick off 28th May Trojans vs Dreadnoughts 2pm Kick off 4th June Trojans vs Monarchs 2pm Kick off 16th July Trojans vs Wyverns 30th July Storm vs Trojans 6th August Monarchs vs Trojans

Tags

#Trojans,#Football,#Training,#TorbayTrojans, #AlwaysTrojan,#Fixture,#CornwallMonarchs


Mastodon ShellLabs Join 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

International Days June 2023

There are a few international days of ... coming up during June. Some of the STEM related days are listed below.

  • World Environment Day 5 June
  • World Ocean Day 8 June
  • Clean Air Day 15 June
  • International Women in Engineering Day 23 June
  • A full list for the whole of 2023 can be found here

Mastodon ShellLabs Join 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

Free Software Foundation workshop – 5th June 2023

WorldVistA EHR version of the Department of Veterans Affairs Electronic Health Record

WorldVistA EHR version of the Department of Veterans Affairs Electronic Health Record

Monday, June 5, 16:00-16:45 EDT (20:00-20:45 UTC)

Links

Tags

#FSF,#FreeSoftware,#Workshops


Mastodon ShellLabs Join 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

AI-Controlled Drone Goes Rogue part 2

It seems that yesterdays post AI-Controlled Drone Goes Rogue pointed to a story has since been revealed as a mis-quote.

The BBC have a report on what seems to have happened, US Air Force denies AI drone attacked operator in test

Sorry for any confusion.


Mastodon ShellLabs Join 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

Amazon's Ring used to spy on customers, FTC says in privacy settlement

Posted to the Fediverse yesterday. This is a stark warning about how technology can do what it wants, and how when we don't have access to the code that makes it work, we don't know what it is doing.

A good reason to support software freedom

You are better off with a RaspberryPi and a Camera Module along with a suitable programming language such as Python and hacking your own.

We can perhaps discuss at a future STEM Group.

Tags

#Amazon#Ring,#Privacy,#Spying.#Alternative,#FreeSoftware,#Python,#RaspberryPi,#CameraModule,#Hardware,#Hacking


Mastodon ShellLabs Join 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

Mass Extinction warning

As Twitter descends further down the road of becoming a Toxic, far right platform, more and more scientists are heading over to the Fediverse, and especially Mastodon.

A recent post to a paper, ( which by the time this gets published on here, I may have actually and a look at. ) gives a stark warning as to the next mass extinction, caused by our constant consumption of our planets precious resources. The consequences are grave.

This was posted to the fediverse by


Mastodon ShellLabs Join 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

AI-Controlled Drone Goes Rogue

AI-Controlled Drone Goes Rogue, Kills Human Operator in USAF Simulated Test

The Air Force's Chief of AI Test and Operations said "it killed the operator because that person was keeping it from accomplishing its objective."
An AI-enabled drone killed its human operator in a simulated test conducted by the U.S. Air Force in order to override a possible "no" order stopping it from completing its mission, the USAF's Chief of AI Test and Operations revealed at a recent conference. 

Read Full article here

Original article Vice


Mastodon ShellLabs Join 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

LibreOffice Documentation 01/06/2023

Documentation update(s)

LibreOffice 7.5 guides (Published)

  • Writer 7.5
  • Calc 7.5
  • Math 7.5
  • Designing with LibreOffice

LibreOffice 7.4 guides (Published)

  • Draw 7.4
  • Getting Started 7.4
  • Calc 7.4
  • Impress 7.4
  • Designing with LibreOffice

REFERENCES

1 LibreOffice 2 LibreOffice Bookshelf 2a LibreOffice Documentation * LibreOffice shortcut keys 3 Free Software Foundation 4 Free Software Foundation Europe 5 LibreOffice Conference 7. Udemy LibreOffice Training

TAGS

#LibreOffice,#Office,#Writer,#Calc,#Base,#Impress #Draw,#GettingStarted,#Documentation,#Libreoffice

Donate using Liberapay

Creative Commons Licence
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License


Mastodon ShellLabs Join 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

Reality of DeSantis and Book bans

With Ron DeSantis announcing he is running for the Whitehouse in 2024,. this was shared on Mastodon. Illustrates the consequences of banning books.

I don't think this needs further comment, it speaks volumes on its own.


Mastodon ShellLabs Join 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