Spotify Codes - Part 2

In part 1 I dove into Spotify Codes and explained the general technical concepts of how they work. If you haven’t read that post you should check it out. I shared it on reddit where it generated a lot of interesting discussion. Ludvig Strigeus, a key early developer at Spotify and the person who invented Spotify Codes, even stopped by and shared some more information on their creation and the rationale behind them!...

November 11, 2021 · 11 min · Peter Boone  · Source

Sequencing my genome

We’ve come a long way since the Human Genome Project. This effort to sequence the human genome for the first time was a tremendous achievement that lasted 13 (ish) years and cost $3 billion dollars. Thanks to this pioneering work and major advancements over the years it’s now possible to get your own genome sequenced for $300 in a few months. That’s a 10,000x decrease in cost! If the price of homes decreased at a similar rate since 1990, the median home would cost $7....

October 8, 2021 · 4 min · Peter Boone  · Source

NULL in BigQuery

When in doubt, NULL means “we don’t know the state of this thing so we can’t perform an operation on it.” Keeping track of how NULL values are handled in different SQL dialects can be tricky. This post will serve as a living document where I keep track of how BigQuery does this. NULL and STRING comparison Comparison always returns NULL. SELECT CAST(NULL AS STRING) = '', -- null CAST(NULL AS STRING) = 'value', -- null CAST(NULL AS STRING) = CAST(NULL AS STRING) -- null NULL and BOOL comparison NULL is not TRUE or FALSE....

September 14, 2021 · 7 min · Peter Boone  · Source

The practical use of repetition and definition levels in BigQuery

Google’s Dremel paper is an interesting read that explains some of the concepts that underlie BigQuery. I am still processing the paper and have noticed a few things about repetition and definition levels that are relevant to the every day use of BigQuery. Columnar Data and Records The underlying storage format for BigQuery is columnar. One of the first pieces of advice given to people using BigQuery is to only select the rows that you need....

September 12, 2021 · 2 min · Peter Boone  · Source

Unnecessary BigQuery Optimization

I was reading a post about BigQuery cost optimization which stated this: Also remember you are charged for bytes processed in the first stage of query execution. Avoid creating a complex multistage query just to optimize for bytes processed in the intermediate stages, since there are no cost implications anyway (though you may achieve performance gains). I was curious about this, because I have written some queries to minimize reading data multiple times....

September 12, 2021 · 4 min · Peter Boone  · Source

Vitamins for Choroideremia

Disclaimer: None of this should be taken as medical advice. Consult with your doctor. A question was posted in the Choroideremia (CHM) Facebook group about supplements: Hello to all my fellow group mates. Just wanted some input as to what vitamins or supplements you are taking to help with CHM. I have been taking the Bausch and Lomb preservision and would like to know if there is something better or something additional you would recommend....

June 26, 2021 · 2 min · Peter Boone  · Source

Building some-recipes.com

Background Earlier this year I made my way through Fullstack Open, a course designed to teach modern Javascript-based web development. In their words: The main focus is on building single page applications with ReactJS that use REST APIs built with Node.js. The course also contains a section on GraphQL, a modern alternative to REST APIs. The course covers testing, configuration and environment management, and the use of MongoDB for storing the application’s data....

November 16, 2020 · 6 min · Peter Boone  · Source

How do Spotify Codes work?

Spotify Codes are QR-like codes that can be generated to easily share Spotify songs, artists, playlists, and users. I set out to figure out how they worked, which led me on a winding journey through barcode history, patents, packet sniffing, error correction, and Gray tables. Spotify URIs Let’s start with Spotify URIs (Uniform Resource Identifiers). Different pieces of media (artists, albums, songs, playlists, users) all have a URI. The ABBA song “Take a Chance on Me” has this URI:...

November 13, 2020 · 10 min · Peter Boone  · Source