How to write a simple web spider in Python

2019-11-07

How to write a simple web spider in Python to use as a link checker.

Filed in: Code

Python and Unicode

2019-11-05

This article takes a look at using Unicode in Python.

Filed in: Code

What are Character Encodings?

2019-11-02

This article takes a look at what character encodings are.

Filed in: Code

What are Character Sets?

2019-10-29

This article takes a look at what character sets are.

Filed in: Code

Introduction to JSON

2019-10-24

A quick look at JSON, why it's important and how to deal with it in Python and JavaScript.

Filed in: Code

Introducing Python lambda

2019-10-20

A first look at Python lambda

Filed in: Code

Python non-greedy regexes

2019-10-19

How to make Python regexes a little less greedy using the `?` modifier.

Filed in: Code

Python keyword parameters

2018-11-02

In this article I take a quick look at Python keyword (named) parameters.

Filed in: Code

Understanding JWTs

2018-11-01

This article takes a look at JSON Web Tokens or JWTs. The article looks at their basic format, and how they are created and used.

Filed in: Code

Understanding Unix time

2018-10-30

This article takes a look at the idea behind Unix time. It also shows you how to get the current Unix time from the shell and from Python. The concept of the Unix timestamp will be used again in subsequent articles.

Filed in: Code

Learning JavaScript with HTML5 Canvas

2018-07-05

In this article I decide to learn JavaScript and write a couple of simple JavaScript programs.

Filed in: Code

Really simple encryption

2018-05-08

In this article I take a look at a really simple encryption system. Applications could include sending ever-so-slightly more secure text messages via APIs such as Nexmo or Clockwork.

Filed in: Code

How to generate an Atom feed

2017-11-20

This article explains how an Atom feed was added to this site using Python code. The article also describes adding automatic feed discovery to the site.

Filed in: Code

Dealing with dates

2017-11-14

In this article I describe dates, how they are used on this site, and how you can generate ISO-8601 format dates on the Mac OS X command line.

Filed in: Code

How long to transfer a 1TB file?

2017-10-31

How long does it take to transfer a 1TB file? Python can help.

Filed in: Code

Cracking the Fog Creek coding problem

2017-10-29

In this article I take a look at how to crack the Fog Creek content developer coding puzzle.

Filed in: Code

Tracing version of malloc

2017-10-25

I managed to create some useful macros for debugging C programs.

Filed in: Code

'Stdout was a bad, bad boy'

2017-10-19

Sometimes an application may open `stdout` with ASCII encoding, rather than UTF-8.

Filed in: Code

Calculating entropy

2017-10-11

This article looks into how to calculate entropy. The article includes example C code.

Filed in: Code

Can Rust help?

2017-10-10

In this article I look into some problems with C pointers and wonder if Rust can help.

Filed in: Code

Tales from the Bcrypt

2017-10-09

Bcrypt proves to be a very convenient library for encrypting passwords.

Filed in: Code

Tracing memory allocations

2017-10-05

On various attempts to try and trace memory allocations.

Filed in: Code