Înapoi la articole →

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 139
  1. Cooking for Software Engineers

    The title is a reference to “Cooking for Engineers”, originally a blog post which spun off into a whole site.

  2. 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.

  3. Questions Nobody Asked

    15 years ago, I was unemployed.

  4. 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.

  5. 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?

  6. 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.

  7. My hat contains a hidden message

    I shaved my head.

  8. Hidden messages and an optimal ternary scarf

    A while ago, I found a pattern for a tunisian crochet scarf that I kinda liked.

  9. 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.

  10. Advent of Code 2023 | jq

    Advent of Code 2022 was a bit of a miss for me.

  11. Temperature Blanket

    Background A temperature blanket is a sort of physical infographic.

  12. 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.

  13. 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.

  14. 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.

  15. 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

  16. Persistent dict with SQLite

    SQLite This is a pattern I’ve used a couple of times now.

  17. Valid User Names, and Making Problems for Co-workers

    A wild PR appeared!

  18. Modularity vs Inheritance

    This is a direct follow on to the Modularity Madness blog.

  19. The Worse Code I Ever Got Paid For

    Or, the not-so-fast Fourier transform, and what we take for granted in Python.

  20. Fungus Simulation

    The Motivation Since I learned rust, I always want to use it more.

  21. 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.

  22. 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.

  23. Advent of Code 2020 (Week 1) - Python One-Liners

    This is my third year doing Advent of Code.

  24. The First Program I Ever Wrote

    When people ask how I got into programming, I usually tell them “mostly for maths stuff”.

  25. 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).

  26. Modularity Madness

    As mentioned in an earlier blog, I’ve recently been working on a new project at work.

  27. An Encounter with Rust Safety

    A little while back, I decided to rewrite an old python tools of mine in rust.

  28. Writing Python like Rust

    Or, how I learned to stop worrying and love the type annotations.

  29. Writing Bash Scripts like Python

    In the previous post, I talked about implementing python-like logging in bash.

  30. 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.

  31. 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) =…

  32. 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.

  33. 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.

  34. 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.

  35. The Pirate Game

    A few months ago, my friend was telling me about this mobile game he wanted to make.

  36. 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.

  37. Designing a General Relativity Based Casual Game

    Let's suppose, for the sake of arguing, that I'm unemployed.

  38. 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.

  39. Metric and Binary Clocks (for Android)

    A long while back I wrote a couple of blogs about clocks.

  40. 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.

  41. 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.

  42. #IceBucketChallenge - A Viral Campaign

    I know this blog is a little late to the game.

  43. How Long Will a Prime Number Be?

    File this under things I think about when I'm trying to get to sleep.

  44. Modelling the Survival of Chocolates

    So it's been about a year since I last blogged.

  45. 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…

  46. Picking a Seat on the Tram

    When I'm at university, I have to get the tram twice a day.

  47. Sharing a Burger Between Three

    There are several ways to divide a burger evenly between three people.

  48. 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.

  49. 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...

  50. Some Twitter Infographics

    I did some stuff like this before.