Paul Sutton

Personal Blog

FreeBSD 5

Carrying on directly from my previous post I have found a nice video tutorial to explain how to edit the .twmrc file. This can be found at:

While this is a short video, it is easy to follow and comprehensive.

#bsd, #config, #desktop, #settings, #configuration, #tool, #freebsd, #twm, #window, #icoms.

You can find me on Friendica at zleap@social.isurf.ca


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)


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

Torbay Timebank meeting 3/3/2020

I attended the Torbay Timebank meeting, held at Our Katie's Tea and Coffee house, in Paignton, this morning. I went along mostly to see what was going on, however, I got chatting to people and the need for basic computer skills became clear.

I informed people about Learn My Way and the sessions due to be held in May at Paignton Library. However I then took the initiative to visit the Paignton Library and get some copies of the flyer, to give out at the meeting(s).

Poster (download)

I need to get more copies for future meetings as it is clear that there is a need for basic computer courses and r help. Not everyone needs a full course. Not everyone actually wants a computer / tablet, but feels the are going to need one, to use essential services, especially as more and more services are going digital.

Torbay Together is a website that facilitates sharing and collaboration between residents of Torbay, Devon

” Torbay Together the sharing website. Helping you find and share activities, information and skills in Torbay.”

I have set up a forum on Torbay Togeher to so anyone undertaking or interested in, self learning or e-learning, can share information. This can be accessed from here

You will need to sign up to Torbay Together.


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

Peat Bogs under threat

Plan to drain Congo peat bog for oil could release vast amount of carbon

The guardian newspaper had an article on this. This could make another STEM topic discussion point. Protecting the environment is important and we can't neglect issues such as this by concentrating on our carbon footprint.

If we drive a car, we can work out the Carbon footprint from how much fuel we burn, but does this calculation include how much Carbon is released if it is released during the extraction process, such as what is mentioned in the article.

With all the talk on Carbon footprints, why don't we also focus on how much Nitrogen Oxides and other particulates. are released by cars?

#environment, #peat, #carbon, #storage, #oil, #extraction, #threat, #carbonrelease, #uk, #guardian, #newspaper, #climate, #environment, #ecosystem

You can find me on Friendica at zleap@social.isurf.ca


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)


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

Script for $\LaTeX$ Tables

I was asked in irc ( ##chemistry on frenode) about a project to create a table for periodic table data in $\LaTeX$.

This post, is meant to be a rough guide. You are expected to do your own research in to any specific features you need.

As there are now about 120 elements, doing this manually could be rather long winded. So I am trying to develop a small shell script to help with this process.

Firstly Looking at loops in Bash

now how to generate a basic table in $\LaTeX$

\begin{table}[]
\begin{tabular}{llllll}
 &  &  &  &  & 
\end{tabular}
\caption{}
\label{tab:my-table}
\end{table}

This is for a 1 row table, to add multiple rows, you need to add \ at the end of the row as in:-

\begin{table}[]
\begin{tabular}{llllll}
 
 &  &  &  &  &  \\
 &  &  &  &  &  \\
 &  &  &  &  & 
\end{tabular}
\caption{}
\label{tab:my-table}
\end{table}

The following shell script should help us with this.

Please note that the \, should be removed from the very last row.

I have added a script for 10 rows. This can be changed via the shell script.

 1 #!/bin/bash
  2 
  3 echo " " > data.txt
  4 echo "\begin{table}[]" > data.txt
  5 echo "\begin{tabular}{llllll}" >> data.txt
  6 #wc -l data.txt
  7 
  8 for i in {1..10..1}
  9   do 
 10 
 11      #echo "hello"
 12      echo  "&  &  &  &  & \\" >> data.txt
 13  done
 14 #wc -l data.txt
 15  echo  "\end{tabular}" >> data.txt
 16  echo  "\caption{}" >> data.txt
 17  echo  "\label{tab:my-table}" >> data.txt
 18  echo  "\end{table}" >> data.txt

Required table headings were : atom ; r atomic ; density ; Tf ; Tg ;... ?

Table headings are obviously at the top, therefore, once you have run the script and generated the right number of rows amending the first row to

& atom & r atomic & density & Tf & Tg \

Should give the required headings

I have added some word count (wc) to help with diagnostics.

You will need to change the output file extension to .tex for a $\LaTeX$ file. I'll leave it as data.txt as you need to add the other components of a $\LaTeX$ document anyway.

If the table spans more than 1 page then the table should use

\begin{longtable}{llllll}
\end{longtable}

#chemistry, #typesetting, #bash, #LaTeX, #tables, #scripting

You can find me on Friendica at zleap@social.isurf.ca


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

Terminator: Dark Fate DVD

Terminator: Dark Fate is released on DVD and Blue Ray today. This is the latest episode in the long running Terminator Saga.

IMDB entry can be found here.

#dvd, #blueray, #terminator, #darkfate, #release

You can find me on Friendica at zleap@social.isurf.ca


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)


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

FreeBSD 4

Carrying on from my previous post. I am now turning my attention to configuring the twm desktop [1]

twm is set as the default window manager in:-

/usr/local/etc/X11/xinit/ file : xinitrc

After finding some information on how to configure the twm desktop [2]. This document seems to be from around 1989.

I tried to find the configuration files in my local home directory structure on bsd but was unable to. However there is one

/usr/local/share/X11/twm/system.twmrc

Which, I think is more of a global configuration. Given the only two users are myself and root is fine.

I used this to add a second icon manager to the desktop.

I have also found some other documentation [3] which explains how add items to the menu.

So to add menu entry to menu for vulture-nethack

edit /usr/local/share/X11/twm/system.twmrc

“Nethack” f.exec “exec vulture-nethack &”

the & is important

If you need more help you may want to ask on IRC: * #freebsd which is hosted freenode. [4] I am on IRC as zleap but also frequent a few other channels.

References

  1. twm Desktop
  2. An Overview of twm (Tom’s Window Manager)
  3. Customizing twm
  4. Freenode IRC

#bsd, #config, #desktop, #settings, #configuration, #tool, #freebsd, #twm, #window, #icoms.

You can find me on Friendica at zleap@social.isurf.ca


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)


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

Rocks and Diamonds – Level Creation 3

Placing the same element, multiple times, in the playing area, in random positions.

As mentioned my previous post I am going to briefly discuss random placement of elements on the playing area.

It is important this point to stress that the game editor will randomly place the selected element multiple times, and NOT just place random elements on the playing area.

On the game editor find the following block.

random placement 1

Within this there is a random placement button, depicted by a dice. Select this:

random placement 2

If you now click on one of the game elements for example a green emerald, and press the dice the editor will place several on the playing area.

random placement 3

You don't need to keep everything where the editor puts it, feel free to delete and add others manually elsewhere, but where you need lots of one thing it may help.

This is one of the features you end up wishing you had known about, especially when you have spent weeks, creating levels by manually placing the items multiple times.

Don't for get to add your exit block manually.

Placing lines of blocks.

The third button in, is a line drawing tool. As this sort of relates to the above, I will cover this too. Pressing the line button and then selecting, for example a wall element, you can draw straight lines. This makes it quicker and easier to draw longer walls or even mazes for example.

#games, #levels, #rocksndiamonds, #level,#creation,#codeclub, #random


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)


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

Lego WeDO Session Write up

Today I was involved in a Lego WeDo [2] session at Paignton Library,

I wrote a session plan [1] a while back and submitted this to the library.

The session went quite well, despite a few teething problems with wifi and sotware. We started off using the models I had previously built to experiment with the WeDo kit.

wedo prep

However the kit did seem to prove popular, we had one person drop in and have ago who was already at Lego Club. So the idea that this being within the Lego club area, was good as it attracted further interest.

What we need is a set of our own tablets + software installed and working so that we can just get on and build projects at future sessions.

  1. Session Plan – pdf
  2. Session Plan – LaTeX Source
  3. Lego WeDO
  4. Lego Software

#Library, #stem, #Lego, #WeDo, #session, #Plan

You can find me on Friendica at zleap@social.isurf.ca


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)


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

Rocks and Diamonds – Level Creation 2

Further to previous post you can see that creating levels for Rocksndiamonds is fairly simple.

I would like to share the following tips for any budding level designers:

  • Start simple
    • Experiment with different game elements
    • Add new elements as you create new levels
    • Don't overwhelm users or players
  • Testing levels
    • Self test levels
    • Get others to test
    • Get feedback
    • Consider any feedback
    • Act on feedback
  • Set the time so that there is :
    • Enough time to complete the level
    • Have a few seconds left over
    • Set time once level is completed
  • Mix it up
    • Start simple and work up to more complex levels
    • As you create more complex levels throw in a simple level
  • Make use of the game editor features to save time such as:

    • Random element placement (discussed in next post)
    • You can draw lines
    • Shapes
    • Fill feature, don't add 25+ blocks manually
  • Have fun

  • Take regular break

  • Stop and comeback later, this gives a fresh view

  • Submit and share levels with the game developers, they can be part of the game level archive

    • If doing this, remember to follow online safety rules
      • Ask permission from an adult
      • Make sure you have not included your name or contact info in any levels
      • Follow any guidelines for submitting levels

#games, #levels, #rocksndiamonds, #level,#creation,#codeclub

You can find me on Friendica at zleap@social.isurf.ca


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)


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

Raspberry Pi update

Raspberry Pi 4 2gb model price drop


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