Real Python

Just purchased a new book on Python to get me through the CO-VID-19 situation.

Python Basics Book

At USD $39 it is a reasonable price, but with the drop in the Australian dollar this comes to AUD $63 …. for a PDF ๐Ÿ™

So why buy it?
– I don’t want to wait for the physical book which is months away.
– I am no longer twenty, the font in some books is too small making it hard to read.
But with a PDF I can read it on a 24″ monitor next to my main 29″ monitor so no problems with font size.
– The content is really good. The Real Python site has many excellent articles on python that have helped me. So this is my way of supporting their free content.

The book uses Python 3.8
I use Anaconda Python which is currently at version 3.7 So I have to install a 3.8 environment.
In Conda you can do this by:

$ conda create -n py38 python=3.8

Useful links for my purchase:




Convert PDF pages to JPEGs using R

I often get PDFs which have interesting images in them, but the problem is how to extract them?
This R Code will find every PDF in the current folder and covert each page to a 200 dpi JPEG


# Uses the fs library to list all files ending in PDF in the current directory and store them in file_list

file_list <- dir_ls(glob = "*.pdf")

# The eqivualent of a FOR loop, it iterates through each element of file_list and converts each PDF page to a 200dpi jpg using the pdftools library
lapply(file_list, FUN = function(files) {
  pdf_convert(files, format = "jpeg",dpi = 200)



Get Lucky – Russian Style

The Red Army (Police?) Choir version of Daft Punk’s Get Lucky.
A real hoot … I couldn’t stop laughing for the first few times I watched it.


The Handmaiden (2016)

Just finished watching the 2016 Korean film The Handmaiden.
It is a beautiful film to watch and the soundtrack is very well done, particularly: IMI ONEUN SORI (์ž„์ด ์˜ค๋Š” ์†Œ๋ฆฌ) The Sound Of You Coming

The Sound Of You Coming from The Handmaiden (2016) film

IMI ONEUN SORI (์ž„์ด ์˜ค๋Š” ์†Œ๋ฆฌ) The Sound Of You Coming

Like the sound of you coming
I hear something from somewhere
A sound that pinches my heart
์ž„์ด ์˜ค๋Š” ์†Œ๋ฆฌ ๊ฐ™์ด
์–ด๋””์„œ ๋“ค๋ฆฌ๋Š” ์†Œ๋ฆฌ
๋‚ด ๊ฐ€์Šด์„ ์กฐ์ด๋Š” ๊ทธ ์†Œ๋ฆฌ
(Minseo & Gain)
But youโ€™re not coming, even when the night passes
My sad heart doesnโ€™t know how to stop
Just waiting for the sound of you to come
Just waiting for the sound of you to come
(Minseo & Gain)
๊ทธ๋Ÿฌ๋‚˜ ์˜ค์ง€ ์•Š๋„ค ์ด ๋ฐค์ด ์ง€๋‚˜๋„๋ก
์•ˆํƒ€๊นŒ์šด ๋‚ด ๋งˆ์Œ์€ ๊ทธ์น  ์ค„ ๋ชจ๋ฅด๊ณ 
์ž„์ด ์˜ค๋Š” ์†Œ๋ฆฌ๋งŒ ๊ธฐ๋‹ค๋ ค์ ธ
์ž„์ด ์˜ค๋Š” ์†Œ๋ฆฌ๋งŒ ๊ธฐ๋‹ค๋ ค์ ธ
In my waiting heart
Joy overflows
You have found me, youโ€™re coming over there
๊ธฐ๋‹ค๋ฆฌ๋Š” ๋‚ด ๋งˆ์Œ์—
๊ธฐ์จ์ด ๋„˜์ณ ํ˜๋Ÿฌ๋ผ
๊ทธ๋Œ€ ๋‚˜๋ฅผ ์ฐพ์•„์„œ ์ €๊ธฐ ์˜ค๋„ค
(Minseo & Gain)
Holding onto blue dreams, holding onto happiness
My heart that is waiting is blooming
Hurry and come, Iโ€™ve been waiting
Letโ€™s dream a happy dream, just like long ago
(Minseo & Gain)
ํ‘ธ๋ฅธ ๊ฟˆ ๊ฐ€๋“ ์•ˆ๊ณ  ํ–‰๋ณต์„ ๊ฐ€๋“ ์•ˆ๊ณ 
๊ธฐ๋‹ค๋ฆฌ๋Š” ๋‚ด ๋งˆ์Œ์— ๊ฝƒ์„ ํ”ผ์šฐ๋„ค
์–ด์„œ ์™€์š” ๊ทธ๋Œ€์—ฌ ๊ธฐ๋‹ค๋ ธ์–ด์š”
ํ–‰๋ณตํ•œ ๊ฟˆ์„ ๊ฟ”์š” ์˜›๋‚  ๊ฐ™์ด
Holding onto blue dreams, holding onto happiness
My heart that is waiting is blooming
ํ‘ธ๋ฅธ ๊ฟˆ ๊ฐ€๋“ ์•ˆ๊ณ  ํ–‰๋ณต์„ ๊ฐ€๋“ ์•ˆ๊ณ 
๊ธฐ๋‹ค๋ฆฌ๋Š” ๋‚ด ๋งˆ์Œ์— ๊ฝƒ์„ ํ”ผ์šฐ๋„ค
Just waiting for the sound of you to come
Just waiting for the sound of you to come
์ž„์ด ์˜ค๋Š” ์†Œ๋ฆฌ๋งŒ ๊ธฐ๋‹ค๋ ค์ ธ
์ž„์ด ์˜ค๋Š” ์†Œ๋ฆฌ๋งŒ ๊ธฐ๋‹ค๋ ค์ ธ์ž„์ด-์˜ค๋Š”-์†Œ๋ฆฌ-sound-you-coming-์ž„์ด-์˜ค๋Š”-์†Œ๋ฆฌ.html


Web Links for March 2020



Visual Studio Code

Raspberry Pi

Compile/install Python 3.8 on Raspberry Pi | Michael Hirsch, Ph.D.
Raspberry Pi 4 Bootloader Firmware Updating / Recovery Guide – Home Assistant
Turns your Raspberry Pi (or another device) into the ultimate home automation hub powered by Home Assistant
Dual Fan Aluminium Heatsink Case for Raspberry Pi 4 Black Australia
Raspberry Pi 4 USB Boot Config Guide for SSD / Flash Drives
GitHub – log2ram: ramlog like for systemd (Put log into a ram folder)
Log2Ram: Extending SD Card Lifetime for Raspberry Pi


JaYoe World Tour Homepage | Follow Matt Cycling Around The World!

Purchased โ€œThe Art of Statisticsโ€ from Amazon for $30

Statistics has played a leading role in our scientific understanding of the world for centuries, yet we are all familiar with the way statistical claims can be sensationalised, particularly in the media. In the age of big data, as data science becomes established as a discipline, a basic grasp of statistical literacy is more important than ever.

In The Art of Statistics, David Spiegelhalter guides the reader through the essential principles we need in order to derive knowledge from data. Drawing on real world problems to introduce conceptual issues, he shows us how statistics can help us determine the luckiest passenger on the Titanic, whether serial killer Harold Shipman could have been caught earlier, and if screening for ovarian cancer is beneficial.

How many trees are there on the planet? Do busier hospitals have higher survival rates? Why do old men have big ears? Spiegelhalter reveals the answers to these and many other questions – questions that can only be addressed using statistical science.
The Art of Statistics: Code, Data, Errata and Additions | ArtofStatistics


Korean Drama

Netflix and Amazon Prime are serious impediments to productivity.

I watched Parasite a month or so ago. I really enjoyed it. One of the themes of the movie is social inequality and the lack of ability to move up in status / income.
It’s interesting that Korea’s income distribution is not too different to America’s.
But you always hear Americans talk about “pulling yourself up by your bootstraps” whereas in Korean films this is not that common.

It does have Song Kang-ho in it as did 2017’s A Taxi Driver which I also liked. I will watch anything with Song Kang-Ho in it.

The Fiery Priest

It consisted of twenty 50 minute episodes. It is a typical Korean drama involving the heroes fighting corruption, but it is very slapstick.

They should have cut back on some of the slapstick because at times it became very annoying, but overall a Solid B, but not worth a repeat watch.

Ssongsak and Yo Han, two of my favourite characters

Priest Kim and Detective Goo


Season two of Kingdom just popped up on my Netflix viewing list.

Love the show, what’s not to like

– Korean period drama
– Zombies (nearly as good as Train to Busan)
– A great cast including Bae Doona, one of my favourite Korean actors.


website is back up and running

I let the site lapse for a while because I couldn’t be bothered setting up a linux VM and making the effort to secure it properly.

So I was waiting for another special like I had with and my prayers were answered.

$1 for 12 Months of Australian Web Hosting @ VentraIP Australia

I am quite impressed with their user interface, I might actually stick with them at the end of the year.

I had to import all the old blog posts from a WordPress XML file. That was a quick process, until I realised:

  • a lot of the links were to instead of
  • A few hundred URLs were pointing to
    • ย  So had to changed toย
  • So I had to manually search and replace the WordPress XML file (~36,800 lines), upload the file, notice another error and repeated the process until I was satisfied.

Total time: about 90 minutes.

Which is pretty good I think.

<pubDate>Thu, 08 Nov 2018 03:10:40 +0000</pubDate>
<guid isPermaLink="false"></guid>


APA welcomes singular โ€œtheyโ€

from Twitter


It’s never too late

from Twitter