PyImageSearch Review

If you have been doing OpenCV or Python machine learning, you have most likely come across PyImageSearch. If you come across a sale for this service I would recommend trying it out if you are learning some machine learning. This past week they have run a free promo 7 day trial, which gave me an opportunity to browse these.

Continue reading “PyImageSearch Review”

Keeping a process running with a 3 line Bash script

While you are running a long running process, you may want to run it again if it stops or is watching some process that should be running all the time. At first look at this might seem best to…

  • Create some cron running a script that checks output of “ps aux | grep myprogram”, run it if it is not running.
  • Wrap some other Python script calling it and at the end wait and try running again.
  • Check in on the process and see what might be wrong. (Not great, if it is a process you want to be checking errors in you should be using Sentry anyway)
Continue reading “Keeping a process running with a 3 line Bash script”

Government publication shows practical ways you can prep for an EMP

Chances are you have seen a movie or book recently covering the topic of an EMP – an Electro-magnetic pulse from a faraway nuke that could cause outages and damage. While most of what you hear will either be dismissive of the possibility, or a horror story of years of electronic wasteland, the reality could be more in the middle and is something folks can prepare for, according to a US government publication linked in the documents section of the SHARES site.

The SHARES system is a HF long range ham radio service but there are several recommendations in the document that just about any civilian should be considering, not just radio maintainers and organizations:

Continue reading “Government publication shows practical ways you can prep for an EMP”

Severe weather alerts with a simple Python script

If like many you have been starting gardens and planting rather than traveling and visiting in recent months, there is one important thing to consider lately – severe weather reports including frost on your crops. I noted there was a little red (!) alert icon on an Android weather widget, but there seems to be no such alert for desktop computer or Linux computer or phone. It is a fairly simple to make this alert though with a simple script:

Continue reading “Severe weather alerts with a simple Python script”

Listening for a callsign on DMR with Hearham.live

These past few weeks have certainly been trying for some communities with power outages, winter weather and utility failures. Ham radio is a very good way to communicate in your local community, but what if lots of other people are on the local repeater? What if you want a notification if your child or buddy is calling you, but not every other kerchunk or distracting story on the local repeater? If you have a DMR digital radio and id and digital repeater nearby, the tools on Hearham.live may help – and help save your battery leaving a radio on all day 🙂

Continue reading “Listening for a callsign on DMR with Hearham.live”

Upgrading PHP Nginx on Ubuntu 18.04

If you have ever installed WordPress on Ubuntu 18.04 or similar you may have noticed the WordPress warning in site health dashboard for the included default of old PHP 7.2. – “PHP is the programming language used to build and maintain WordPress. Newer versions of PHP are created with increased performance in mind, so you may see a positive effect on your site’s performance. The minimum recommended version of PHP is 7.4.” Furthermore if you do any experimenting with Laravel you may have issues because the latest Laravel 8 is only compatible with PHP7.3 and newer, among other changes.

Continue reading “Upgrading PHP Nginx on Ubuntu 18.04”