An intuition for the Fourier Transform
I’ve come across the Fourier Transform a number of times, but I don’t think I ever developed a good intuition for what was going on. The following 3Blue1Brown video does a great job of providing that...
View ArticleLet's Encrypt
I recently converted a number of websites over to using Let’s Encrypt for SSL certificates, and the process was much easier than I expected.More…
View ArticleComprehensions in Python
One of Haskell’s features I really liked was list comprehensions. I created a comparison between Haskell and Julia list comprehensions almost exactly a year ago. It appears that Python list...
View ArticleAdvent of Code 2022
Advent of Code 2022 will start on December 1. This will be my third year, after participating in 2021 and 2020.I hope to have time to code all of the solutions in Racket, my favorite programming...
View ArticleAdvent of Code 2022 - Day 0 - Preparation
Table of ContentsNow that I have a couple years experience with Advent of Code, I’d like to get a little more organized prior to the contest. I’m hoping to create a blog post for most of the days, and...
View ArticlePlotting in a Racket Notebook
I recently started experimenting with the Racket notebook package, IRacket. Notebooks are handy for experimentation and visualization, so I wanted to be able to display a plot. I discovered that...
View ArticleAdvent of Code 2022 - Day 1: Calorie Counting
Table of ContentsGithubEach day will have some preliminary setup code:123#lang iracket/lang#:requireracket(require"../advent.rkt")(requirethreading)Day 1 - Part 1We’re given the following sample...
View ArticleAdvent of Code 2022 - Day 2: Rock Paper Scissors
Table of ContentsGithub12#lang iracket/lang#:requireracket(require"../advent.rkt")Day 2 - Part 1Rock, Paper, ScissorsFor example, suppose you were given the following strategy guide:A Y B X C ZWe’re...
View ArticleAdvent of Code 2022 - Day 3: Rucksack Reorganization
Table of ContentsGithub12#lang iracket/lang#:requireracket(require"../advent.rkt"threading)Day 3 - Part 1Rucksack ReorganizationWe’re given some sample input:vJrwpWtwJgWrhcsFMMfFFhFp...
View ArticleAdvent of Code 2022 - Day 4: Camp Cleanup
Table of ContentsGithub12#lang iracket/lang#:requireracket(require"../advent.rkt")Day 4 - Part 1Camp CleanupBefore we get started with today’s puzzle, I have some cleanup of my own to do!1....
View ArticleAdvent of Code 2022 - Day 5: Supply Stacks
Table of ContentsGithub12#lang iracket/lang#:requireracket(require"../advent.rkt")Day 5 - Part 1Supply Stacks We’re given the following sample input: [D] [N] [C] [Z] [M] [P] 1 2 3 move 1 from 2 to 1...
View ArticleAdvent of Code 2022 - Day 6: Tuning Trouble
Table of ContentsGithub12#lang iracket/lang#:requireracket(require"../advent.rkt")Day 6Tuning TroubleToday’s puzzle has very similar parts! For both parts, our input is a single string, and the task is...
View ArticleUpgrading to Emacs 28.2
I upgraded to Emacs 28.2 (MacOS Ventura), and it required a few tweaks, so I’m documenting that here for future reference.More…
View ArticleAdvent of Code 2023
Advent of Code 2023 is starting on December 1. This will be my fourth year, after participating in 2022, 2021 and 2020.My primary programming language is Racket, so I expect to code most of the...
View ArticleAdvent of Code 2023 - Day 0 - Preparation
Table of ContentsMy support code is unchanged, as of now, so last year’s blog post still does a good job of explaining it.More…
View ArticleUpgrading to Emacs 29.1
It appears upgrading my Anaconda Python distribution killed my Emacs, so I figured I’d try upgrading to the latest version to see if that fixed things. It did :)Since upgrading Emacs to 29.1 no longer...
View ArticleAdvent of Code 2023 - Day 1: Trebuchet
Table of ContentsGithubDay 1For part 1, we’re given data as follows (Note: in both data examples, intraline spaces are only for emphasis):1 abc 2 pqr 3 stu 8 vwx a 1 b2c3d4e 5 f treb 7 uchet The task...
View ArticleAdvent of Code 2023 - Day 2: Cube Conundrum
Table of ContentsGithub12#lang iracket/lang#:requireracket(require"../advent.rkt"threading)Our data today is as follows:Game 1: 3 blue, 4 red; 1 red, 2 green, 6 blue; 2 green Game 2: 1 blue, 2 green; 3...
View ArticleAdvent of Code 2023 - Day 3: Gear Ratios
Table of ContentsGithub12#lang iracket/lang#:requireracket(require"../advent.rkt"threading)Day 3 involves some two dimensional analysis, so we’ll use complex numbers as a convenient two dimensional...
View Article