Sunday, April 23, 2017

'kodi' fix for 'exodus' crashes on Linux Mint 18

I am using Linux Mint 18 and I was using 'kodi' and 'exodus' for a while. Then after an update 'exodus' stopped working and would crash with a core dump.

Well it was time to look on Google for a fix. It was quite a search but I finally found the fix.

search for 'wget'
The click on each of the 'wget' links, this will download those file to your selected directory.

The don't do what the author says next instead go to the directory where you downloaded the files and type:

sudo dpkg --install python-openssl_16.2.0-1_all.deb

and then do

sudo dpkg --install python-cryptography_1.7.1-2_amd64.deb

​Then start 'kodi' it should work now.​

The downloads and installs two python library file for 'crypto' and the 'openssl' update.

This was a long hard trek but I finally got 'kodi' to work again. I hope this help someone.

Friday, April 14, 2017

We moved from New Bury Park in Southern California to New Bern, North Carolina the beginning of April. It was quite a move, all the way across the US. We flew and shipped our furniture and car. We are in a nice cottage (or Villa) as they call it here in the Courtyard at Berne Village at 2701 Amhurst Blvd.

This is a retirement community and so far is pretty nice. More information as we get acclimated.

Wednesday, December 21, 2016

Last Modified Messages

I think every website should have a 'Last Modified' date. One needs to know how old the data is. I have seen sites that are several years old with very dated information. Without a 'Last Modified' date you can only guess at the validity of the data. If you have a webpage make sure it has a 'Last Modified' date. Try to keep it up to date.

Saturday, December 3, 2016


I have several GitHub repositories. The project are:

Please feel free to visit these projects. There is plenty of documentation on all of the projects.

Tuesday, July 26, 2016

All Natural Cleaning Company of Albuquerque

The All Natural Cleaning Company of Albuquerque New Mexico has only recently started business. They have a unique idea: do not clean you home or business with toxic chemical. The owner of this business has personal experience that using the normal cleaning products can be a real bad experience. In fact he claims his father died of Parkinson's as a result of exposure to harmful chemical products.

The All Natural Cleaning Company does much more than just clean your place. Their mantra is both service and education. They will teach you how to protect your family and employees from the dangers of toxic cleaning products. They have a number of recipes on their web site for safe, non-toxic, and in almost all cases edible, cleaning products. Their claim is that these recipes produce the same level of cleaning as products like "Mr Clean" or other chemical company products.

If this has peeked you interest and you live in the Albuquerque area you should take a look at their website at; they have a pretty unique idea.

Sunday, April 19, 2015

Some Security Tips

Some Security Tips

The "robots.txt" file has its legitimate uses but not everyone who reads it is legitimate. In many cases the file will give nefarious individuals a glimpse into your directory structure and files you didn't intend anyone to look at. 

For example, if you list a directory like 'admin' and have not made it unreadable either via a password or by having an 'index.html' file in the directory or use the 'Options -Indexes' server directive, then even if there are no links anywhere to 'admin' the person reading your robots.txt file knows you have that directory and may therefore be able to look at it and all the files therein.

Another thing to keep in mind when writing a web page is that anything you get via the web may be evil. For example, if you have a form with an 'input' box you should make sure that the input data does not contain nefarious markup. You may be asking for someone's name which you intend on displaying on the form action page. What if the person entered the following markup: 

<script>windows.location =</script>

If the browser rendering your site has JavaScripts enabled that little snippet would redirect from your site to another site with a big advertisement. The result could be worse depending on where the redirection goes.

This type of devilishness is not restricted to 'input' boxes. Say your site gets the 'HTTP_USER_AGENT' and displays it. Many browsers have html markup in the User Agent Strings. I have seen <script> tags as well as anchor tags (<a). 

What to do? Well it is good practice to escape all tag markers, that is less than (<) and greater than (>) symbols, as &lt; and &gt;. Using PHP you could make a function:
function escapeltgt($value) {
  $value = preg_replace(
           array("/</", "/>/"),
           array("&lt;", "&gt;"), 
  return $value;
Use the function on anything that could be dangerous.



I installed the APC ES 550G UPS to my Linux Mint 13 desktop. I got the 'apcupsd' package via the repository and had it all up and running within a half hour. Get the 'apcupsd', 'apcupsd-cgi' and the 'apcupsd-doc' packages via apt-get or synaptic. 

Then edit the '/etc/apcupsd/apcupsd.conf' file. Change 'UPSCABLE' to 'usb' and 'UPSTYPE' to 'usb'. You can change times etc. if you want but it is not necessary to get things going. Look at the rest of the stuff in '/etc/apcupsd' just to get an idea how everything works. You might want to comment out the 'FIELD UPSTEMP' 'UPS Temp' in 'multimon.conf' as this device does not seem to support temperature. 

You will also need to edit the '/etc/default/apcupsd' and change 'ISCONFIGURED=no' to 'yes'. Then you can start the daemon by 'sudo invoke-rc.d apcupsd start' (or 'sudo /etc/init.d/apcupsd start'). You can use your browser to check the status by going to 'http://localhost/cgi-bin/apcusbd/multimon.cgi'.

I have my computer and my wireless router plugged into the UPS. I tested it out by pulling the UPS plug and sure enough the power stayed up and the power outage was logged in my 'syslog', an email was sent to 'root' and the 'multimon.cgi' reported the outage. I plugged the UPS back in and the event was logged on all three: 'email', 'syslog' and 'multimon.cgi'.

All in all the APC UPS seems to work just fine. The status log, '/var/log/apcupsd.status', shows an UPS load of only 26% and predicts 27 minutes of UPS power. With only 26% load I may plug my phone answering machine in to the UPS also so I don't have to reset the clock every time we have a brown-out.

For $59.99 from this seems like a perfect fit for my home system. I understand that APC has software for Window$ if you really want to punish yourself. As always APC like most vendors could mention that the UPS works just fine on Linux and point people to the 'apcupsd' packages. But maybe APC is afraid of alienating Microsoft or maybe they just figure if someone is smart enough to use Linux they are probably smart enough to figure everything out for themselves.