Paul Sutton

Personal Blog

Beginning rust programming

I am going to learn some rudimentary rust, so that I can hopefully write some simple programs.

I have installed the rust programming language compiler, according to the man page, to compile a program source to an executable on a GNU/Linux system I need.

rustc -o hello hello.rs

However, for really simple programs

rustc hello.rs

works fine.

Which is very similar to how you would compile in c.

So following the age-old tradition of creating a program to display hello world.

:~/Development/rust/helloworld$ ls
hello.rs
:~/Development/rust/helloworld$ rustc hello.rs
:~/Development/rust/helloworld$ ls
hello  hello.rs
:~/Development/rust/helloworld$ ./hello 
Hello, world!
:~/Development/rust/helloworld$ 

The manual then jumps in to using cargo, as this is better for managing larger projects, so this also needs to be installed

sudo apt install cargo

We can also check what versions we are running

rustc --version
rustc 1.75.0 (82e1608df 2023-12-21) (built from a source tarball)
cargo --version
cargo 1.75.0
$ 

References

Tags

#Programming,#Language,#Rust


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

Ditch summit session 2

So attended my first session at the 2024 Ditch summit, video discussion on How to ACE Student AI Literacy in Schools with Holly Clark.

The videos of the sessions will be up until the 10th January.

Once you register you have access to the pre recoded sessions, This session was a discussion between Matt Miller (host) and Holly Clark

Some excellent points raised, including how to critique information generated, ideas on how to differentiate if an image is AI generated, The signs an article may be AI generated. Being able to evaluate if an article is Ai generated is also important when undertaking research for essays or reading the news for example.

The above skills are taught by school anyway when it comes to research skills, so we are applying and adapting critical thinking skills to evaluating AI.

As this is evolving technology, it was also suggested the learning journey is shared by the teachers and students ( I would guess teaching assistants should really be part of this process too ). However, teachers need to understand AI so that they can provide students with a safe environment to explore AI, the possibilities and risks associated with AI.

I found the discussion very useful and will try and share some of my notes with teachers if I can.

Tags

#Education,#Summit,#Conference,#Digital,#Virtiual.#DitchSummit


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

Ditch summit session 1

So attended my first session at the 2024 Ditch summit, video discussion on Inquiry based learning with Trevor Mackenzie. This was fascinating and looked at how we can get students to ask questions and develop curiosity as part of their learning, and how this approach can be adapted across different age groups. The videos of the sessions will be up until the 10th January.

Once you register you have access to the pre recoded sessions, This session was a discussion between Matt Miller (host) and Trevor Mackenzie.

This format is great, as it seems to avoid many of the issues with live sessions which can be hampered with technical issues, that have a real knock effect post conferences if there is no access to the material presented.

Tags

#Education,#Summit,#Conference,#Digital,#Virtiual.#DitchSummit


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

Carbon 14 diamond battery

This is interesting, another post to the Fediverse, this is about a UK research in to Carbon 14 diamond batteries.

Emil Jacobs – Collectifission @collectifission@greennuclear.online

Tags

#Nuclear #News #UK


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

0ad on Linuxmint 22

The free software ancient warfare strategy game, 0ad [1], is no longer included as a package on Linuxmint22 [2]. It can now be installed via snap. You can find instructions on Snapcraft [3]

0ad screenshot

Screenshot embedded from website, for illustration, see website for copyright information.

Alpha 26 Zhuangzi Trailer

References

1 0ad 2 Linuxmint 3 Snapcraft 0ad


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

Restart project

The Restart Project aims to tackle the climate emergency by making electronics work for people, for the planet, and for longer.

It looks like there is not much happening in South Devon, which is typical, there was Torbay Climate action, who were running repair events for clothes etc, but could not find the expertise for electronics items.

This is a worldwide movement, you can find a list of meetups here

In Torbay, there is a potential venue at either the STEAM café or the community shed (what was Hyperspace).

Related links


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

Microsoft closes the door on Windows 11

This article came through on Mastodon,

Microsoft closes the door on Windows 11 supporting older hardware

There are alternative solutions, if you have a computer older than 2018 then you don't need to buy new hardware, and have options such as installing LinuxMint, Ubuntu or something similar.

Working hardware can still help you carry out the tasks you need to, depending on your use needs, which will determine which operating system you install.

I will write more later, in the meantime there is a restart project post tomorrow that could be useful too.


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

Kinetic Sand

At the STEAM Café and discovery centre in Paignton, they have a unit that can use an Xbox Kinect unit to scan a surface and map this on a screen. To use this, the café wants to use Kinetic sand rather than play sand.

The idea is that the sand is in the try at the bottom and users can contour the sand, building, hills, valleys, mountains etc, which can be scanned and displayed on the built-in screen. The Unit also has some other games and activities built in that are designed to be interactive.

As we need something like 200kg of this sand, it works out expensive. As with most things, it can be made, so I have been looking at one solution to this.

However, this recipe uses material that is based on food, so could go mouldy over time, there is a silicone oil based version of this which we are looking in to.

I undertook another ddg search for kinetic sand and silicone oil and found this which appears to be using olive oil, which I don't think is silicone based anyway.

I will ask about this on Science forums once I have some ideas and or links to evidence prior research to asking.


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

Ditch Summit 2024

Ditch Summit 2024: A free online conference for educators

Dec. 16 to Jan. 10. * 100 on-demand video presentations * Great, interesting, inspiring sessions * Engaging, relatable presenters * Certificates of completion for PD credit * Downloadable PDF notes


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

What is Space-Time?

So back to some Physics videos, what is space-time?: This video does a really nice job of explaining this in a way that is understandable, but not so simple it loses any meaning.

I have included links to wondorium below, as well as links to the usual discussion forums.

Tags

#Physics,#Space,#SpaceTime


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