Reading Aranet4 sensor data from Python
How to get current readings from your Aranet4 CO2 monitor
How to get current readings from your Aranet4 CO2 monitor
Learn how to handle interrupts and other signals in Python.
Currently, there’s a lot of hype around the behavior of Python’s tarfile module for extracting archives. In short: tarfile will not sanitize filenames in arc...
Regular expressions are often used to check if a user input should be allowed for a specific action or lead to an error as it might be malicious.
How unpickling untrusted data can lead to remote code execution.
If you are getting UnicodeErrors when reading/manipulating files using a Python script launched by a LaunchAgent or crontab, the problem might lie in the “cu...
Recently, I wanted to watch a couple of log files for new entries and have them sent to an http endpoint for collection and later analysis. I did a quick res...
A few hours ago FileMaker 17 was released, and with it an updated Data API, which is now finally out of trial phase.
Even though launchd has been around for quite some time now, I was still using crontab for scheduling some of my scripts until recently. Since launchd Launch...
When trying to read an Excel file into a Pandas DataFrame gives you the following error, the issue might be that you are dealing with a password protected Ex...
Tutorial on creating Bokeh plots with an AJAX data source, served from an existing Flask app.
Logarithms are widely used in computer science (e.g. for algorithm analyses, floating point number limitations, scaling data, feature transformations). Not c...
Let’s say we have two integer NumPy arrays and want to count the number of elementwise matches.
Tutorial on setting up your Flask application to run on macOS with WSGI
Micro tutorial: select rows of a Pandas DataFrame that match a (partial) string.
Having been asked multiple times if I can quickly compare two numeric columns from an excel file, I set up a small Jupyter notebook (and an R script) to show...
Today I was working with the MNIST handwritten digits data and wanted to display a few images in a Jupyter notebook. After looking at PIL, then Pillow, I fou...
While searching for ways to debug code in a Jupyter notebook, I found a lot of outdated posts. So I decided to quickly write up my findings.
AWS Lambda is Amazon’s “serverless” compute platform that basically lets you run code without thinking (too much) of servers. I used Lambda in the past, thou...
The following code snippets should serve as an (incomplete) cheat sheet for accessing NumPy arrays. All examples expect an import numpy as np.
This is an old post. You may also be interested in accessing your FileMaker database via the new Data API. I wrote a Python wrapper to make it easier: python...