Category Archives: Programming

Raw sockets with Python

What do you do if you want to see if you are receiving any packets on specific network port, well you could use a tool like TCPDump – or you could do something using a short python script.

Posted in Networking, Programming, Uncategorized | Tagged | Leave a comment

Generating Checksums using Python

I decided to put together a short python script to generate (and eventually check) a checksum for one or more files.

Posted in Programming | Tagged | Leave a comment

Integer Mandlebrot Set in BASIC-80

As I was looking through my old CP/M files earlier when I found this I couldn’t resist converting it to something a little more old fashioned.

Posted in CP/M, Programming | Tagged , | Leave a comment

Maze drawing in FORTRAN-80

I was looking through some of my old CP/M files (running on a virtual ALTAIR Z80 using simh) when I can across this old FORTRAN IV program.

Posted in CP/M, Programming | Tagged , | Leave a comment

Including optional debugging code in ‘C’

A short post showing my preferred way of including optional debugging code in ‘C’ in a way that is compatible with ANSI ‘C’ compilers.

Posted in Programming | Tagged | Leave a comment

Dates and Locale settings in Python

Just a few notes on how date and time formats can be affected by the locale setting in python.

Posted in Linux, Programming | Tagged | Leave a comment

Specifying file format when compiling with gcc

I don’t normally bother checking my code into a version control system for a minor little project, but I still like to keep older versions of the source code around.

Posted in Programming | Tagged | Leave a comment

A (not so) minimal implementation of ‘cat’ in C

No particular reason but I needed something a little more complicated than the ubiquitous Hello World, so I opted for a minimal implementation of cat.

Posted in Programming | Tagged | Leave a comment

Python Dates Times and Timezones

Dealing with time zones is hard, you may know what time zone you are in but what happens when you want to convert your local time to that in another timezone?

Posted in Debian, Linux, Programming, Raspbian, Ubuntu | Tagged | Leave a comment

Displaying a list of the named colours available in Pygame

When using pygame it seems a good idea to use named colours as this makes it a little more obvious what is going on.

Posted in Programming | Tagged , | Leave a comment