Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
Cooking for Software Engineers
The title is a reference to “Cooking for Engineers”, originally a blog post which spun off into a whole site.
-
Pokemon TCG Pocket, Part 2 - How long it takes
Champion In a previous post, I used a simulation to predict how long it would take to complete the Champion of the Sinnoh Region secret mission.
-
Questions Nobody Asked
15 years ago, I was unemployed.
-
When will I get the cards I want in Pokemon TCG Pocket
When Pokemon first took the world by storm, I was 8 years old.
-
Any Probability with a Dice or Coin
I woke up from a dream with a question in my head – can we generate any probability with a coin and a six-sided dice?
-
Every film I ever saw - data mining myself
I signed up for Letterboxd. trakt One of the first options, on creating a letterboxd account, is importing data from other services - one of them being trakt.
-
My hat contains a hidden message
I shaved my head.
-
Hidden messages and an optimal ternary scarf
A while ago, I found a pattern for a tunisian crochet scarf that I kinda liked.
-
Temperature Blanket - Completed
A temperature blanket is a crochet or knitting project where one makes a blanket over the course of a year, doing a piece a day with the colours based on each day’s temperature.
-
Advent of Code 2023 | jq
Advent of Code 2022 was a bit of a miss for me.
-
Temperature Blanket
Background A temperature blanket is a sort of physical infographic.
-
When a Random Sample is as Good as the Whole Thing
Background At a high level, what we have is a Django-based server, with celery for running tasks.
-
A Data Structure for Pokemon Cards
Spring cleaning Around this time of year, I get an urge to clean out my room, get rid of junk, old books and DVDs.
-
Advent of Code 2021, Day 1 in 52 Chars of AWK
Here is a solution to day 1 (both parts) in 52 characters of AWK {a+=($0>x);b+=($0>z);z=y;y=x;x=$0}END{print a-1,b-3} Okay, this is going to take some unpacking… Background This is my 4th year doing Advent of Code.
-
How I Approach Software Design
What I wanted to talk about today is my approach to designing a piece of software, by looking at three projects I’ve worked on 1 But before we get to the example, lets lay out the approach find the ‘core concept’ that is, when you strip it down to the most
-
Persistent dict with SQLite
SQLite This is a pattern I’ve used a couple of times now.
-
Valid User Names, and Making Problems for Co-workers
A wild PR appeared!
-
Modularity vs Inheritance
This is a direct follow on to the Modularity Madness blog.
-
The Worse Code I Ever Got Paid For
Or, the not-so-fast Fourier transform, and what we take for granted in Python.
-
Fungus Simulation
The Motivation Since I learned rust, I always want to use it more.
-
Life by Numbers: 10 Years Later
Are you ten years ago Ten years ago, I did a pair of blogs called Life by Numbers, and Life by Numbers: End of Year Review, in which I reviewed a load of stats that I had collected (or that had been collected) about myself.
-
Advent of Code 2020 (Week 2+) - Python One-Liners
As expected, as the puzzles get harder, it’s not so easy to solve them with one-liners.
-
Advent of Code 2020 (Week 1) - Python One-Liners
This is my third year doing Advent of Code.
-
The First Program I Ever Wrote
When people ask how I got into programming, I usually tell them “mostly for maths stuff”.
-
Python Written like Bash
The other day a coworker asked me to look at a python script he’d written - make sure there weren’t any major issues (“little ones are ok” - his words).
-
Modularity Madness
As mentioned in an earlier blog, I’ve recently been working on a new project at work.
-
An Encounter with Rust Safety
A little while back, I decided to rewrite an old python tools of mine in rust.
-
Writing Python like Rust
Or, how I learned to stop worrying and love the type annotations.
-
Writing Bash Scripts like Python
In the previous post, I talked about implementing python-like logging in bash.
-
Python-style Logging in Bash
One of the great sins in programming is trying to write code in one language like code from another language.
-
Quicksort in One Line of Python
qs = lambda l: l and qs([x for x in l[:1] if x <= l[0]]) + [l[0]] + qs([x for x in l[:1] if x > l[0]]) Quick Sort This is based off an implementation I saw in haskell, it went something like qsort :: (Ord a) => [a] -> [a] qsort [] = [] qsort (x:xs) =…
-
Put the following in order
YouTube channel, College Humor, has a game show series called 'Um, Actually' - a game of nerdy corrections, and general nerd trivia.
-
Testing Python Unicode Handling the Lazy Way
Background At work, we've been working on a Python API for IBM's Spectrum Scale (GPFS) filesystem.
-
Barber Queue
Time was when I needed a hair cut, I'd go at noon on a weekday, when the barber's is typically empty.
-
The Pirate Game
A few months ago, my friend was telling me about this mobile game he wanted to make.
-
Watch Face Designs for Android Wear (and How to Make Them)
In a previous pair of blogs, I designed some clock widgets for Android, using Zooper.
-
Designing a General Relativity Based Casual Game
Let's suppose, for the sake of arguing, that I'm unemployed.
-
Follow Up: A Binary Proof and a Trinary Clock
In the last blog I talked about making a binary clock widget (for Android) using Zooper, and I made a claim about how individual binary digits can be extracted from a decimal number - what follows is an explanation/proof of why it works.
-
Metric and Binary Clocks (for Android)
A long while back I wrote a couple of blogs about clocks.
-
Lights Out (Game)
I was watching this year's RI Christmas Lectures, and it reminded me of this game I had when I was much younger.
-
Dark Matter and Machine Learning
If you're a long time follower of this blog you'll probably have noticed I haven't posted much in the last two/three years.
-
#IceBucketChallenge - A Viral Campaign
I know this blog is a little late to the game.
-
How Long Will a Prime Number Be?
File this under things I think about when I'm trying to get to sleep.
-
Modelling the Survival of Chocolates
So it's been about a year since I last blogged.
-
Is There a Formula for The 'Perfect' Christmas Tree?
The other week I was waiting for my tram, reading Metro, and I see this article - Treegonometry: Formula for perfect Christmas tree discovered In other word, a set of equations that will tell you, for example, how much tinsel, or how many baubles are 'req…
-
Picking a Seat on the Tram
When I'm at university, I have to get the tram twice a day.
-
Sharing a Burger Between Three
There are several ways to divide a burger evenly between three people.
-
Too Many Lotteries
So recently I'd gotten really into this TV show - it's called 'Life', and it's a 'murder of the week' crime drama starring Damian Lewis.
-
Sexuality and Population Dynamics
So I was reading this response to a Daily Mail opinion piece about those 'gay cure' bus adverts, and I see this quote (from the Mail article) “Since only about one percent of us are [gay], homosexuality is obviously a departure from the norm...
-
Some Twitter Infographics
I did some stuff like this before.