Blog

Thoughts on data science, software engineering, and technology


Vibe Coding 6 -- pymgflip

As my next project, I thought it would be fun to use AI to generate memes. For many years I have used imgflip to generate memes. And they have an API! Unfortunately, they don't have an official Python library (that I could find, I found a bunch of one-GitHub-star unofficial …

Read More →

Vibe Coding 5 -- WoDRAG

"How do you know if someone does Crossfit?"

"They build a RAG system about Crossfit!"


As my next project, I wanted to build a non-trivial RAG system. To do that, I needed a non-trivial dataset.

Every day for 20+ years, Crossfit.com has published a Workout of the Day ("WoD …

Read More →

Vibe Coding 4 -- Speed Scrabble

A few years ago we went on an Alaska cruise, and we sprung for a cabin in the private/exclusive part of the ship (which is the way to go!) which had its own restaurant, its own lounge, and so on. The lounge had board games, one of which was …

Read More →



Vibe Coding 1 -- Website Redesign

The world is getting into Vibe Coding, so I will too. As a first attempt, I asked Claude Code to redesign my website, which had grown a bit stale. (OK, a lot stale.)

I think it's an improvement.

Before

After

Next time: some actual code.

Read More →

Creating Games in Streamlit

A while back I had the idea that 9yo and I would program a bunch of simple games together and she'd get interested in coding. Well, we did program a bunch of simple games together:

  • Guessing Game - the computer picks a random number, you guess, it tells you "too high …
Read More →

Ten Essays on Fizz Buzz

I've been quarantined for the last several months for reasons that are too boring to go into, which somehow gave me a lot more time to write. And so I am delighted to …

Read More →

Data Science From Scratch: Second Edition

I am thrilled to announce that the second edition of Data Science from Scratch is now available! (buy from Amazon or your other favorite bookstore, or read on Safari, or get a PDF from ebooks.com it looks like.)

It's been almost exactly four years since the first edition came …

Read More →


Fizz Buzz in Tensorflow

interviewer: Welcome, can I get you coffee or anything? Do you need a break?

me: No, I've probably had too much coffee already!

interviewer: Great, great. And are you OK with writing code on the whiteboard?

me: It's the only way I code!

interviewer: ...

me: That was a joke.

interviewer …

Read More →






Creating a Function Index Using Cycle.js

The readers of my book have been clamoring for an index of functions, so that -- for example -- when someone sees me use vector_mean on page 200 they can easily figure out where to find its definition.

It was easy enough (if tedious) to go through the book and create a …

Read More →



Polyglot Twitter Bot, Part 2: Node.js + AWS Lambda

[The second in an (at least) 6-part series, all code on GitHub as always.]

  1. Node.js
  2. Node.js + AWS Lambda
  3. Python 2.7 + AWS Lambda
  4. Purescript
  5. Purescript + AWS Lambda
  6. Bonus: Purescript + Twitter Streaming

AWS has a recent-ish Lambda product, which lets you upload functions and then have them run on …

Read More →

Polyglot Twitter Bot, Part 1: Node.js

[The first in an (at least) 6-part series, all code on GitHub as always.]

  1. Node.js
  2. Node.js + AWS Lambda
  3. Python 2.7 + AWS Lambda
  4. Purescript
  5. Purescript + AWS Lambda
  6. Bonus: Purescript + Twitter Streaming

Like most of you, I've long dreamed of making a Twitter bot. And also like most of …

Read More →


Haskell-Style Fibonacci in Python

If you've ever done a tech interview, you're probably familiar with the Fibonacci sequence:

1, 1, 2, 3, 5, 8, 13, ....

where each number is the sum of the previous two. A relatively simple (and relatively overused) interview problem is to write a function that returns the n-th Fibonacci number …

Read More →

On The Mathematics of Spot It!

Last weekend we went to a party where one of the other attendees brought Spot It! Frozen for her kids. It's a simple game with circular cards, each of which has 8 pictures in it, most of them Frozen-themed.

frozen

The setup is that any two cards in the deck …

Read More →

Data Science From Scratch: First Principles with Python

I am super-excited to announce that the book I've been working on for more than the last year, Data Science from Scratch: First Principles with Python is finally available! (buy from O'Reilly, use discount code AUTHD to save some money) (buy from Amazon).

My experience learning and teaching data science …

Read More →

2014 Year in Review

2014 was a crazy year, mostly because I took on two very large projects either of which would have made for a pretty crazy year.

1. The Book

I am writing a book. (Yes, another one.) Actually, the first draft is done, and I am right now revising it based …

Read More →