Happy Pi Day 2022

Once again it is Pi day, a great time to make pie – or order a Pizza or Pie (check if your local restaurants have a special Pi day deal 🙂 )

This year Pi day comes on a Monday, which hasn’t happened since 2016! There are some interesting tricks to calculating what any given day of the week was, and I’ll leave you with a video that James Grime published with some math tricks for the day of the week for any given date:

Continue reading “Happy Pi Day 2022”

Re-flashing the Librem Phone with Byzantium

If you just received a Librem 5 you probably have the latest software – including the new software that has a (mostly) working photos app, gps and a basic maps app! Development has continued on these devices but if you have one of the previous preorders you probably have been waiting on new updates and only getting a few standard package updates and no new apps 🙁

If you want to upgrade the phone in this case you need to re-flash it and wipe it with the newer version. Note this deletes everything and starts anew!

Their instructions here should be fine for some, but only if you have a very very new Ubuntu based system. If you have an older one such as Ubuntu 20.04 then you can get set up as shown below.

Continue reading “Re-flashing the Librem Phone with Byzantium”

Happy Twosday! and a Surprising Pi trick

In Ben Sparks’ video he shows a very interesting trick. On a decimal angle calculator run:

sin(1/5555)

If your calculator has more than the standard Ubuntu calculator’s digits of accuracy you could add even more repeating 5’s. The answer is approximately PI with extra zeros…

0.000003142

Since today is Twosday (2-22-2022 in any date format), here is a similar Tuesday math trick for the Python console:

from math import sin
sin(22/700000.0)

It is also .0003142… or approximately Pi!

Continue reading “Happy Twosday! and a Surprising Pi trick”

GTK Choice box with Glade and Python

There may be times you have a simple choice or listing in a GTK list box – for this example, in choosing a serial connection or other device. Glade is a good way to build an application window easily with an interface to build in to your app on Linux desktop, Ubuntu or Librem phone or other Linux based phones. I was able to use this to create a Winlink user interface for the previous tutorial to call up the Pat interface.

Continue reading “GTK Choice box with Glade and Python”