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”