Blog Archives

Heartbleed Relief: Replace the Default SSL Certificate in Parallels Plesk Panel

If you have a web site with an SSL certificate then you are probably affected by the Heartbleed vulnerability which popped into general visibility. If your server is vulnerable, you need to do two things: Update openssl Replace your SSL

Posted in Internet, Safety, Software

MySQL + UTF-8 + PHP 5.3.10 + JSON = Trouble

Yesterday, I spent longer than I care to admit debugging an update to an old PHP script. It fetched a string from a MySQL database and (here’s the new part) passed the string to json_encode(). That call failed when the

Posted in Software

Python Singleton

I needed a singleton database class in a Python 2.7 program and wrote it this way.

I like this pattern but I realized that this is even more elegant:

It works because I do not really need the

Posted in Software

Read-Only Python Properties

Following onto yesterday’s post about¬†Python Properties and @property, there is a neat little trick to create a read-only property of a Python class. All you have to do is omit the setter. This Hero class has a read-write property “name”

Posted in Software

Python Properties and @property

My son pointed me at PyCharm and, while poking through it’s built-in “intentions,” I discovered Python’s @property decorator, which led me to learn more about the Pythonic way to handle class properties. Unlike Java and C++, Python encourages you to

Posted in Software

Just Ordered My WordPress 10th Anniversary T-Shirt

WordPress t-shirts

It’s hard to believe that I have been writing this blog for almost eight years and that WordPress (the software which drives this web site) is going on ten years old. To celebrate both, I just ordered my WordPress 10th

Posted in Internet, Rants & Raves, Software

$76 Media Center

Raspberry Pi top

Several years ago, we got a Sony PlayStation 3 as a home theater PC and it has been a fantastic way to watch Blu-ray discs, Netflix, etc. It has not been a good way to listen to music for two reasons.

Posted in Fun, Rants & Raves, Software, Technology

Software Jobs

By day, I own a software company and occasionally write software. Wally, Dilbert’s friend, reveals all about my job in today’s strip. Click the image to read the whole comic. The disturbing question is: Which job do I hold???

Posted in Business, Fun, Software

Real Virtual Alchemy

I have learned to change lead into gold, and back again, for real! Well, sort of. Thus far, it only works within the virtual world of programming languages like Python. Here is the recipe. (If you are not into geek-speak,

Posted in eBooks, Software, Technology

Python Generators Neatly Untangle Loops

The Python programming language has become my first choice for most tasks over the last year or so. The more I use it, the more I find to like about it. I just stumbled across generators in a way that

Posted in Software