Terraced fields above Kathmandu, Nepal

Verify Their Identity Before Sending Money

by John McGehee on January 22, 2012

A friend recently fended off the Emergency Scam, where a hacker hijacks an email or IM account and poses as the account owner.  The hacker asks the account’s contacts for money, claiming to be in trouble in a foreign country.

A variant is the Grandparent Scam, in which the con artists calls the elderly, claiming to be a grandchild in distress. The Grandparent Scam is huge in in Japan, with its wealthy elderly population.

These scams depend on the victim believing that a total stranger is actually a close friend or relative worthy of financial assistance.  This enormous lie can be unveiled by just thinking up and asking a few simple trivia questions. [click to continue…]

{ 0 comments }

If this software development gig doesn't work out, I can always go back to the 70s and be a bartender

Test XML Output Using Python doctest

by John McGehee on November 5, 2011

Python doctest combines unit testing with documentation.  With doctest, you put your unit tests in the Python docstring, and they appear in your documentation as usage examples.  However, it is tricky to test pretty printed XML that will look good in your documentation. [click to continue…]

{ 0 comments }

My Encounter with Libyan Agents

October 16, 2011
Thumbnail image for My Encounter with Libyan Agents

My rendezvous with Libyan agents in my apartment when tensions between Libya and the US were at their peak.

Read the full article →

Test PyQt GUIs with QTest and unittest

July 31, 2011
Thumbnail image for Test PyQt GUIs with QTest and unittest

Here’s a complete example of how to write unit tests for PyQt. Only the open source modules included in PyQt and Python are used.

Read the full article →

Repair Fencing with Hog Rings

July 23, 2011
Thumbnail image for Repair Fencing with Hog Rings

As a boy I learned how to use hog rings for wire fences. I at last had the opportunity to apply this knowledge from long ago.

Read the full article →

First Check Power, Then Check Clocks

July 14, 2011
Thumbnail image for First Check Power, Then Check Clocks

When a machine doesn’t work, first check power. Next check the clock that synchronizes the machine, because only the power supply will work without a clock.

Read the full article →

FogBugz Bug Tracker Review

July 1, 2011
Thumbnail image for FogBugz Bug Tracker Review

Wow. This software does everything. FogBugz combines bug tracking, project management, schedule estimation, customer support, and source code management into an integrated web-based application.

Read the full article →

The Underwater Theater

June 16, 2011
Thumbnail image for The Underwater Theater

During my recent trip to the Design Automation Conference in San Diego, I verified that my most outlandish childhood memory really was true.

Read the full article →

OpenAccess Scripting Language Interfaces Architecture

June 14, 2011
Thumbnail image for OpenAccess Scripting Language Interfaces Architecture

Read my presentation on the architecture of the oaScript scripting language bindings for OpenAccess.

Read the full article →

Generate Polymorphic C# and Java Using SWIG

April 10, 2011
Thumbnail image for Generate Polymorphic C# and Java Using SWIG

By default SWIG generates C# and Java code that does not support downcast for polymorphic return types. Here’s a straightforward way to implement it.

Read the full article →