Simon Willison’s Weblog

Subscribe

Tuesday, 5th May 2020

A hands-on introduction to static code analysis. Useful tutorial on using the Python standard library tokenize and ast modules to find specific patterns in Python source code, using the visitor pattern.

# 12:15 am / compilers, python, static-analysis

TIL Search across all loaded resources in Firefox — You can search for a string in any resource loaded by a page (including across HTML, JavaScript and CSS) in the Debugger pane by hitting Command+Shift+F.
Release dogsheep-photos 0.3a — Upload your photos to S3 and import metadata about them into a SQLite database
TIL Use setup.py to install platform-specific dependencies — For [photos-to-sqlite](https://github.com/dogsheep/photos-to-sqlite) I needed to install `osxphotos` as a dependency, but only if the platform is macOS - it's not available for Linux.
Monday, 4th May 2020
Wednesday, 6th May 2020

2020 » May

MTWTFSS
    123
45678910
11121314151617
18192021222324
25262728293031