Paul Sutton

Paul Sutton – personal blog

Kernel Hacking

If anyone is interested in contributing to the Linux Kernel. This was posted to Twitter by @howtopam. Looks like a very useful guide.

https://kernelnewbies.org/KernelHacking

This may also be of interest

https://mindmajix.com/linux-kernel-tutorial#disqus_thread

#linux, #kernel, #development,newbies,#hacking

covid19

Why social distancing matters

Found this on Twitter so sharing

social distancing

#uk,#isolation, #covid19, #mental, #health, #wellbeing

Isolation and Mental Health

Found this on Twitter so sharing

covid19

#uk,#isolation, #covid19, #mental, #health, #wellbeing

STAY AT HOME

UK Government graphic to help avoid the spread of CoronaVirus (Covid-19)

covid19

#uk,#government,#nhs,#covid19,#pandemic,#stayathome,#protectthenhs,#savelives

Torbay Community Coronavirus Helpline

Helpline for those isolated by the Coronavirus in Torbay, open to the community to volunteer their assistance.

In order to provide you with the best level of support, sometimes it may be appropriate to refer you to an outside organisation.

TCDT : 01803 44 60 22 BDC DIRECT : 01803 85 77 27

https://www.torbaycdt.org.uk/

In an effort to help people keep kids occupied over the CoronaVirus (Covid-19) crisis.

A few months ago I made a few scratch 3 activities, these have been shared on ScratchEd but given the current circumstances, I am going to share here.

Instructions for each are below

#scratch, #education, #school, #homeschool, #activities, #covid19


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)

In an effort to help people keep kids occupied over the CoronaVirus (Covid-19) crisis.

Now that I have fixed my browser issue. See earlier post. I am going to share some Scratch projects.

Firstly another spiral / pattern making project.

scratch project

scratch project

It isn't perfect, but it doesn't need to be. What people can hopefully do, is make it better, which is how we learn.

This project can be found on the Scratch website here.

#scratch, #education, #school, #homeschool, #activities, #covid19


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)

As I am no longer able to run code club at the library. The frustration with the poor performance of Chromium browser on Debian has prompted me to install Chrome browser.

After a quick search I found a how_to which is easy to follow and Chrome is now fully installed and working.

Chrome browser

Performance is now vastly better. I am not sure what is causing the issue on Debian. It needs investigating properly.

#browser, #chrome, #google, #performance, #install, #debian10,#buster.


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)

https://personaljournal.ca/paulsutton/e-learning-network e-learning

UK Corona Virus Lockdown

PM Boris Johnson made an announcement this evening essentially putting the UK on lockdown. Can only go out for work, or shopping for essentials.

From the bbc website.

Here are the major points of his speech:

    From tonight, people in Britain will be allowed to leave their homes for only “very limited purposes” - shopping for basic necessities; for one form of exercise a day; for any medical need; and to travel to and from work when “absolutely necessary”
    People are warned not to meet friends or family members who they do not live with
    Shopping is only permitted for essentials like food and medicine, and people are advised to do it “as little as you can”
    Police have powers to enforce the rules, including through fines and dispersing gatherings
    All shops selling non-essential goods, such as clothing and electronic stores, are ordered to close
    Libraries, playgrounds, outdoor gyms and places of worship are to close
    All gatherings of more than two people in public - excluding people you live with - are banned
    All social events, including weddings and baptisms are banned
    Funerals are not included in the new restrictions
    Parks will remain open for exercise but gatherings will be dispersed
    Restrictions “under constant review” and will be checked again in three weeks. They will be relaxed “if the evidence shows we are able to” 

Determine graphics file resolution.

Just making a quick post to cover something I found earlier. Chatting to a user in #latex on Freenode about inserting pictures in to $\LaTeX$ documents. It seems scaling the image isn't an issue as long as you know the actual picture resolution.

gives the following example on how to insert a picture in to a $\LaTeX$ document

\documentclass{article}
\usepackage{graphicx}
\begin{document}
\includegraphics[width=\textwidth]{YOUR-FILE-NAME-HERE}
\end{document}

We can reduce this slightly by removing the \textwidth element

\documentclass{article}
\usepackage{graphicx}
\begin{document}
\includegraphics[width=0.5]{YOUR-FILE-NAME-HERE}
\end{document}

Which will scale the image and insert at ½ the width.

In overleaf and on a GUI it is easy to obtain the image properties.

If you're at the cli, and therefore not able to do this, what do you do then.

There are several solutions

  1. Graphics Magic

gm identify file.png will return some information including the file resolution:

gm identify hexchatSASL.png 
hexchatSASL.png PNG 432x549+0+0 DirectClass 8-bit 45.2Ki 0.000u 0m:0.000003s

So on a similar note the file command does something similar

file hexchatSASL.png 
hexchatSASL.png: PNG image data, 432 x 549, 8-bit/color RGB, non-interlaced

You can also use the view command, which is part of midnightcommander, so opens up a graphical application to display image data.

Once you have determined the file resolution you can calculate how much you need to scale the image.

If you had an image at say 640x480 (w x h) then and you want to display this at ½ the width. Then you can insert

\includegraphics[width=0.5]{YOUR-FILE-NAME-HERE}

To calculate the displayed size you can use

$0.5 \times 640 = 320$

So in this example your image will display, with a width of 320 pixels in your document.

If you use 0.75 then the width is going to be 480

$0.75 \times 640 = 480$

Hopefully this will help someone out there. I did something useful while helping with this.