Did You Read the Whole Error?

You read the whole thing front to back? Every word? Stop and think about it. What is the computer trying to tell you? Sometimes something is obvious but needs to be reminded. I found myself thinking this yet again today. Often there are times where I would have saved some time and grief by carefully […]

Aggregating A Python Error Summary from Log Files

Follow these steps to maintain more reliable scripts and catch more of your traceback errors: automate your scripts to run daily, weekly, monthly, etc. Log all your traceback errors with the logging module. I like dumping all of my logs into a single folder. automate aggregating the logs and parsing tracebacks start a feedback loop […]

The Joy of Logging With Python

In painting and coding, there are no mistakes, only happy accidents.  Fortunately when errors happen, Python affords us its stock ‘logging‘ module, which sometimes catches flak in the community for its syntax and documentation. After poking around this module, I’ve found it quite suitable to my needs. Thanks to the logging module, I’m catching my […]

Findstr, RegEx File Searches for Windows

Findstr is the Windows alternative to GREP, which runs on the Unix operating system. Findstr searches files with regular expressions and seems useful for string matching within files and directories.  It is one of over 280 command prompt commands. Here’s the official Windows Documentation and some Linux vs. Windows Examples. Update: Windows announced that Grep and several other […]