Plotting a time series heat map with Pandas

Heat maps communicate succinctly how the distribution of a value evolves over time. Performance metrics like latency or API response time often have a complicated multimodal distributions, and summarizing them in single values like mean or 90th percentile for a visualization makes many interesting events invisible. You need to look at histograms to see the …

The Number With Negative Absolute Value

As you know, computers internally work only with ones and zeros, and everything is represented in some way using these “bits.” Using M bits you can encode 2M different values. Let’s say you’re interested in encoding the signed integers …, -1, 0, 1, 2, …. To make things simple, let’s use a fixed number of …

Verify and generate IBAN in PHP and MySQL

With the introduction of SEPA, the use of IBAN is now mandatory for all bank transactions in the Euro zone. This forces almost everyone to migrate their data, replacing national bank account numbers with IBANs. Fortunately this is a fairly simple task: to get the IBAN for an existing account, take the two-character country code, …