Full Width [alt+shift+f] Shortcuts [alt+shift+k]
Sign Up [alt+shift+s] Log In [alt+shift+l]
SplitDuck.com Use A/B testing to increase revenue
46

Finding a tricky bug in Elasticsearch 8.4.2

from alexwlchan [alt+shift+b] in programming

A few weeks ago, I helped to find a bug in Elasticsearch 8.4.2. We’d started seeing issues in our Elastic cluster at work, and I was able to isolate the issue in a small, reproducible test case. I shared my code with Elastic engineers, and that helped them identify and fix the problem. I was pretty pleased with my bug report – it was a simple, self-contained example with an obvious smoking gun. A previously elusive bug became reproducible, which led straight to the faulty code. I got there with a classic debugging cycle: find a reproducible error, delete something, see if the error reproduces. Repeat until there’s nothing left to delete. I thought it might be interesting to walk through the process; to explain my steps and my thinking. Every bug is different, but the same techniques appear again and again. Even if you don’t use Elasticsearch, I hope this will give you some ideas for debugging your next error. Uh oh, something’s up On the Thursday in question, we started getting alerts from our website monitoring – some people searching our collections were getting error pages: As a proportion of overall traffic, it was pretty small – but alerts like this started to pile up in Slack. Even if it wasn’t completely down, the website was having issues. These alerts come from CloudFront. We run CloudFront in front of the website, and we upload our access logs to an S3 bucket. There’s a Lambda that gets notified of uploads in that bucket, and it scans every new log file. If it sees any 5xx server errors, it posts an alert to Slack. CloudFront uploads logs every few minutes, so we find out about issues pretty quickly. Before this setup, we only found out about outages from our automated uptime monitoring (which only checks a sample of pages) or when a user reported an error (which are much slower to arrive). Getting near-realtime alerts of unexpected errors means we can fix them much faster. As the errors stacked up in Slack, the meaning was obvious:...
5th Oct 2022

Stay updated

Get a weekly newsletter with the top 5 articles worth reading every week.

More from alexwlchan

Verifying my web archives with Playwright

To protect against link rot and disappearing content, I save local copies of web pages I like into my web archive. Ideally, this archive is completely self-contained. I want a local copy of each page’s HTML and all the assets it depends on (CSS, images, scripts, and so on). I don’t want my archived pages fetching resources from the original website, which could disappear at any time. Initially, I was verifying self-containedness by hand. I’d open each saved page in a web browser, and check the browser dev tools. I’d check the Console tab for errors and failed requests, and watch the Network tab for requests going out to the internet. That approach was tedious and error-prone, and I wanted something better. I now automate the process using Playwright, a testing framework that allows you to control web browsers. I open each page using Playwright, and check if it’s making external requests. Detecting external requests in Playwright When you open a page in Playwright, you can subscribe to request events which tell you when the page issues a request. In this Python snippet, we start Playwright, start a WebKit browser, and open a new page. We tell the page to append external requests to a list, and then load example.com. We see that example.com makes two requests on page load: one for https://example.com, and one for a JavaScript file. from contextlib import closing from playwright.sync_api import sync_playwright with ( sync_playwright() as p, closing(p.webkit.launch()) as browser, closing(browser.new_page()) as page, ): requests = [] page.on("request", lambda msg: requests.append(msg)) page.goto("https://example.com") print("requests:", requests) # requests: [<Request url='https://example.com/' method='GET'>, # <Request url='https://example.com/s.js' method='GET'>] In a more complex scenario, we might use Playwright to interact with the page after loading – for example, clicking a button or filling in a form, and then we could see the requests triggered by each action. Once we have a list of requests made by the page, we can inspect the url property to check if any of them were fetching from an external website. I wrote a function is_external_request to carry out this check: from playwright.sync_api import Request import urllib.parse def is_external_request(req: Request, original_url: str) -> bool: """ Check if a request has a different origin than the original URL. A request is considered internal if: - it matches the original URL exactly - it has the same scheme, host, and port as the original URL - it uses a `blob:` scheme (for example, in-memory media representations) """ if req.url == original_url: return False # Compare the scheme/host of the request to that of the original URL. org_url = urllib.parse.urlsplit(original_url) req_url = urllib.parse.urlsplit(req.url) if org_url.scheme == req_url.scheme and org_url.netloc == req_url.netloc: return False # Ignore blob: URLs, which are in-memory representation of some data, # and not an external request. # # Playwright detects blob: URLs when loading media files; for example # using the <audio> or <video> tag. if req_url.scheme == "blob": return False # Fail open: if we can't decide if a request was internal or external, # assume it was external. return True assert_page_is_self_contained(ctx, url) I’ve wrapped these two steps in a function assert_page_is_self_contained(ctx, url), which is part of my chives utility library. The function takes a Playwright Browser (or BrowserContext) and a URL, then: Opens a new page in the browser Loads the URL in the page Checks what happened when the page completes loading It throws an exception if there are any: Uncaught page exceptions or errors Console warnings or errors Non-GET requests Requests targeting external resources The function tries to trigger important network requests that might be skipped on the initial page load. For example, it evaluates the body’s offsetHeight to force a synchronous reflow, which causes the browser to request any lazily loaded images or fonts that might otherwise be missed. Here’s an example which verifies a file example.html from the working directory: from chives.browser_fixtures import assert_page_is_self_contained, file_uri from contextlib import closing from playwright.sync_api import sync_playwright with ( sync_playwright() as p, closing(p.webkit.launch()) as browser, ): assert_page_is_self_contained(browser, url=file_uri("example.html")) I originally passed a Page as the first argument, but changing the function to take a Browser or BrowserContext lets it manage its own pages. It gets a fresh page for every verification, and closes it when it’s done. (The first time I ran this, I created a new page for every verification, and never closed them – my computer ground to a crawl as my script opened hundreds of browser tabs.) If you create a new context, you can emulate different browser settings, like location, locale, and window size. Here’s an example where we use contexts to test the same page in light/dark mode: with ( sync_playwright() as p, closing(p.webkit.launch()) as browser, ): with closing(browser.new_context(color_scheme="light")) as light_ctx: assert_page_is_self_contained(light_ctx, url=file_uri("example.html")) with closing(browser.new_context(color_scheme="dark")) as dark_ctx: assert_page_is_self_contained(dark_ctx, url=file_uri("example.html")) In my web archive, I check every page in light/dark mode, and at 1×/2× pixel densities. It takes at least a second to run each verification, so I cache the results. As I save new pages, they’re added to a verification queue, and I’m warned of any missing assets. Unsurprisingly, the first run flagged many missing fonts and images, which I added to my local archive. Every saved page now passes cleanly. Browser is best-effort, but may still miss things Even with automated testing, it’s difficult to guarantee a completely self-contained archive. Different instances of a browser might load different assets, and a single page load might miss different variations: Responsive images – web pages can offer different sizes of an image, and the browser chooses a specific size based on the current window dimensions Appearance settings – a browser might load different fonts or images depending on light/dark mode Interaction-dependent assets – a web page might have assets that are only required on hover or user action You can mitigate some of this by testing with multiple contexts or adding post-load interactions, but every step makes the process take longer. Fortunately, most of the pages I save are simple, blog-style pages where I’ve stripped out the JavaScript. For my specific use case, initial load verification is more than good enough. Other uses for this code There are other projects where it could be useful to intercept and audit the requests made by a web page: Verifying your Content Security Policy (CSP). The CSP header restricts what resources can be loaded by a web page, and you could check that your configuration has the correct effect. Auditing login screens. You could check that sensitive pages don’t load any external scripts, which mitigates the risk of credential theft via a compromised third-party. Testing analytics and tracking. You could script user flows, like a shopping cart checkout, and confirm that tracking events fire correctly. I don’t do much front-end web development, but Playwright has become a key tool in my toolbox. I read a lot about people using AI agents and MCPs to interact with websites, but I prefer Playwright. It’s more fiddly and requires explicit instructions, but it’s constrained, deterministic, and I never have to worry about it doing something unexpected. [If the formatting of this post looks odd in your feed reader, visit the original article]

1st Nov 2026 • 1 votes
Organising my cross-stitch patterns

I have a lot of digital cross-stitch patterns and until recently they were a mess. My “collection” was a series of several hundred PDFs, disorganised and spread across my disk. Recently, I was looking for a pattern and it took me several minutes to find it. I had a brief moment of panic, thinking that I’d lost it, and the website this pattern came from is long since gone. Fortunately it did turn up, but it was clear I had to organise my pattern collection. Some people would use apps like Pattern Keeper or Flosshaven, but I just created another static website on my media drive. This is what it looks like: The patterns are arranged in a masonry layout with a preview thumbnail for each pattern, which is normally the first page of the PDF. If a pattern has multiple files – for example, different files for colour and black-and-white printing – there’s a list of links below the thumbnail. I can also add a source link to where I bought the pattern, if I want to find more patterns by the same author. Internally, it’s structured like my other static websites. The metadata for the patterns is stored in a JavaScript file, and then I have an HTML page which renders that metadata in this visual design. My pattern collection doesn’t change very often, so I’m adding new files by hand. There are no sorting or filtering options, because my collection is small enough that they’re unnecessary. I can scroll through the entire list in less than a minute and find whatever I need. I’d like to start making my own clothes soon, and I expect to copy this design to store clothing patterns. This collection now sits alongside my saved bookmarks, podcasts, TV shows, and more. I can keep all my patterns organised, and I won’t lose them in the depths of my hard drive. Technical tricks There are a couple of technical pieces I’m quite pleased with in this process: Masonry layout. I love the cascading grid style of a masonry layout, and I think they’re great when you have variable-sized content – like my pattern cards. I’ve been using them for over a decade; screenshots of my early web apps show my experiments with David Desandro’s Masonry.js library. Masonry layouts are now a native feature of CSS called “Grid Lanes”, which is simpler and more performant than the JavaScript approach. I’m excited to use these layouts in even more places. Thumbnails of PDFs. Most digital postage patterns are shipped as PDFs, and I’m creating the thumbnail images with my create_thumbnail tool. I had to extend my tool to support PDFs, which turned out to be straightforward with the pdf_oxide crate. I’d not come across Oxide before, but it’s a cross-language library for working with PDFs, and I can imagine using it in future. A coloured stripe for the palette. In the metadata for each project, I have the complete list of DMC thread colours and the pattern dimensions. I have a lookup table that converts DMC thread colours to hex codes, and then I’m able to create a linear gradient in CSS to render a coloured stripe of the pattern colours. Here’s an example from a pattern with four colours: border-bottom: 12px solid transparent; border-image: linear-gradient( to right, #7a451f 0%, #7a451f 25%, #985e33 25%, #985e33 50%, #e4bb8e 50%, #e4bb8e 75%, #361f0e 75%, #361f0e 100% ) 1; Building the HTML, CSS, and JavaScript was very quick – I have notes on how I build my media sites, and I’ve done it plenty of times before. I threw together the initial prototype in less than 15 minutes. The longer part was finding all the PDFs scattered across my disk – but now that’s done, and I know exactly where to find my patterns. [If the formatting of this post looks odd in your feed reader, visit the original article]

13th Oct 2026 • 1 votes
Abusing ID3 chapters to turn videos into glanceable podcasts

I listen to a lot of podcasts, and I like how they fit around other tasks. I press play, lock my phone, and put it down. I’m free to wash the dishes, fold the laundry, or shop for groceries. Unfortunately, more and more information is only published as a video. Technical talks, conference sessions, video essays – they don’t work in an audio-only podcast app. I could convert these videos to MP3 files, but that breaks down the moment a video isn’t pure spoken word. If a speaker says, “Look at this slide” or holds up a diagram, an audio-only file leaves me stranded. I don’t want to give up the podcast player I like, nor stare at a screen for an hour – but I do want the information in these videos. To solve this, I’m abusing my podcast player’s chapter support. This gives me the best of both worlds: I can listen to a video as audio-first, and glance at my lock screen if I need a moment of visual context. The idea: Chapters every few seconds MP3 files can have ID3 metadata, and ID3 metadata can include chapters. A chapter covers a particular time range, and it can have an associated title, description, and cover art. My podcast app of choice is Overcast, which can’t play videos, but it does have robust chapter support. I can jump between chapters, navigate a table of contents, and see per-chapter cover art. To get videos into Overcast, I’m creating MP3 files with a new chapter every few seconds, and the per-chapter cover art is a corresponding frame from the video. As I play the file, I get a slow, stop-motion-like rendition of the original video. If my phone is locked, I can glance at my lock screen and see the current frame in the Now Playing screen. Overcast is developed by Marco Arment, and I got this idea from Forecast, his app for adding chapters to podcasts. In particular, I was struck by its ability to create chapters that don’t display in the chapter list – ideal if I don’t want a table of contents with hundreds of entries. As I was developing my script, I compared my output to the output from Forecast to ensure I was creating the chapters correctly. The code: FFmpeg and Mutagen There are three steps in this process: Convert a video file to an MP3 Extract images from the video at a fixed interval Insert the images as hidden chapters in the MP3 file Let’s go through each in turn. 1. Convert a video file to an MP3 Converting a video file to an MP3 is a single FFmpeg command: ffmpeg -i video.mp4 audio.mp3 This is consistently the slowest step of the process, and I do wonder if I could use different settings or an alternative encoder to make it go faster – but it’s not slow enough to be worth further investigation. 2. Extract images from the video at a fixed interval Extracting images from a video needs a more complicated FFmpeg command: ffmpeg -i video.mp4 \ -vf 'fps=1/5,scale=iw*sar:ih,scale=min(iw\,945):min(ih\,945):force_original_aspect_ratio=decrease' \ thumbnail_%04d.jpg This extracts an image every 5 seconds, downscales any image larger than 945 pixels square (while preserving the original aspect ratio), and saves the results as sequentially numbered JPEG images (thumbnail_0001.png, thumbnail_0002.png, and so on). The key is the -vf flag, which defines two FFmpeg filters: The fps filter selects one frame every 5 seconds (fps=1/5). The first scale filter scales the width based on the sample aspect ratio (scale=iw*sar:ih). Without this filter, frames can be stretched and distorted. The second scale filter scales the input video, preserving the original aspect ratio (force_original_aspect_ratio=decrease), and ensuring the output images fit within 945×945px or the size of the input video, whichever is smaller. My limit is 945 pixels because that’s the largest size that cover art is shown on my iPhone. This filter still isn’t completely correct – it sometimes creates images from portrait videos that are smaller than I’m expecting – but it’s good enough. These are only thumbnails for glancing at, and if I want to change it later, I can always do the image resizing outside FFmpeg. 3. Insert the images as hidden chapters in the MP3 file Inserting the chapters into the MP3 file is more complicated. Although FFmpeg has basic support for ID3 metadata, as far as I know, it can’t insert chapters with per-chapter artwork. Instead, I’m going to reach for Python and the Mutagen library. Here’s the code to add a chapter to an MP3 file: from mutagen.id3 import APIC, CHAP, ID3, PictureType audio = ID3("audio.mp3") with open("thumbnail_0001.jpg", "rb") as f: img_data = f.read() image_frame = APIC(mime="image/jpeg", type=PictureType.OTHER, data=img_data) chapter_frame = CHAP( element_id="chp1", start_time=0, end_time=5 * 1000, sub_frames=[image_frame] ) audio.add(chapter_frame) audio.save() This creates a single chapter that lasts the first 5 seconds (0 to 5000 milliseconds), and the per-chapter cover art is thumbnail_0001.jpg. If we ran this in a loop, we could add images for every 5 second slice of the original video. This code is inserting two frames into the ID3 metadata: The CHAP (chapter) frame contains the timing information, and it can have subframes for metadata like title, chapter art, or associated URL. The APIC (attached picture) subframe contains information about a picture, which can either be a blob of image data or a URL to an image on the web. Normally, you’d also insert a CTOC frame which defines a table of contents, but I don’t want a TOC with hundreds of 5-second chapters, so I’m deliberately not doing this here. This is allowed by the ID3 spec – you’re not required to insert a CTOC frame if you’re using chapters, and you can have chapters that aren’t listed in your table of contents. To work out which frames I needed, I used Forecast to create some chapters by hand, and I inspected their frames. In particular, loading an MP3 and calling Mutagen’s pprint() method shows a human-readable list of frames, and then I could drill into the individual fields: from mutagen.id3 import ID3 audio = ID3("audio.mp3") print(audio.pprint()) I wrapped all this code in a project called glancecast, which allows you to convert a video file with a single command, with optional flags to set the frame length and chapter art size: $ python3 glancecast.py interesting_talk.mp4 interesting_talk.mp3 The process takes a minute or so to complete, most of which is spent transcoding the video file to MP3. The resulting MP3s are usually 40 to 50 MB in size, which is very reasonable. The outcome: How it looks in practice Here’s what one of these “glanceable” podcasts looks like in Overcast and on my lock screen: Maggie Appleton presented this talk over two years ago and it’s been on my “talks to watch” list ever since. Once I put it in Overcast? I listened to it in less than a day. It’s not a lot of extra information, but enough that I can quickly glance down and get the gist of what a speaker is saying. Both views update with a new frame every few seconds, or I can put my phone in my pocket and ignore the screen. I’ve used this approach for half a dozen videos so far, and I’m happy with the results. I expect to keep using it, because I have a long queue of videos I’ve been meaning to watch. If you’d like to try this, check out glancecast for the full code and instructions. [If the formatting of this post looks odd in your feed reader, visit the original article]

15th Sep 2026
How Tailscale tracked down a 16-year-old SQLite bug &rarr;

I wrote a post for the Tailscale blog about a long-running series of corruption incidents, and how they eventually led us to find an SQLite bug that predates my entire programming career. I’m incredibly proud of this, both the work and the blog post. Before Tailscale, I was coming from smaller teams where I didn’t get to tackle problems of this scale or complexity. This was exactly the sort of tricky, deep technical challenge I wanted to be part of (though I’d rather it hadn’t been quite so stressful)! I’m glad I got to play a small part in these incidents, and I learnt so much from the more experienced engineers I worked with. I never want to hear the words “SQLite corruption” again, but if I do, I’d want to have Tailscalars at my side. Writing the blog post has a blast, too. The piece transformed from a rough draft into a solid, engaging piece of writing, thanks to thoughtful feedback from many people at Tailscale. Most of my writing is self-edited, and it’s always a pleasure to work with a dedicated editor. Please check out the blog post if you haven’t read it already – I think it’s a fascinating technical story, and one readers of this site are bound to enjoy. [If the formatting of this post looks odd in your feed reader, visit the original article]

13th Aug 2026 • 2 votes
I don’t want to repeat repeat myself

Yesterday at work, a customer spotted a typo in our UI: “you can use the use the Tailscale CLI”. After the typo was fixed, I wanted to find other cases of accidentally repeated words or phrases. I used two regular expressions to search every codebase for unnecessary repetition. The first regex finds repeated words: \b([A-Za-z]+) \1\b Backfill product data from from Stripe Learn more about about inviting users Argument must be be one of host name, IP set name, IP prefix, or IP There’s a capturing group for a single word made up of letters ([A-Za-z]+), a space, then a backreference to the group. That expression is surrounded by word boundary assertions \b, which check that I’m at the start/end of a word – this avoids finding repeated character sequyences that within longer words, like “with the reason”. The second regex finds repeated phrases: \b([A-Za-z]+ [A-Za-z]+) \1\b Follow the steps in the in the "How to" section Log in to in to your account To configure federated identities federated identities using the Go SDK I’ve changed the capturing group, so now it looks for two words separated by a space. Sometimes repetition is useful, like when I really really went to emphasise a point, but often it’s just a typo. Cleaning up these mistakes has been a fun Friday cleanup task. [If the formatting of this post looks odd in your feed reader, visit the original article]

3rd Jul 2026 • 1 votes

More in programming

Atria Snowflakes

In honor of the upcoming winter season, I designed a set of five crochet snowflakes that hold their shape fairly well without stiffening, as I don't like to stiffen my crochet objects.1 I originally designed these five snowflakes for fingering weight linen yarn, but I decided later to also ensure they worked well with lace weight yarn and size 10 crochet thread. Please do not claim this pattern as your own or sell, copy, or distribute it outside of linking to the pattern on my site or its Ravelry pattern page. You may sell items made from this pattern if you name the pattern and credit me as the designer: Atria Snowflakes by Liz Denys. Thank you so much for respecting my work! This pattern is also available as a pdf. Materials & tools *Note that estimates for the amount of yarn needed are included later in the pattern for each of the snowflakes. Lace weight snowflakes: Lace weight linen yarn or size 10 cotton crochet thread, some suggestions, including twist direction2 information: Ecobutterfly Entwined: GOTS Organic Linen Yarn in 7/2 (lace)3 (s-twist) Maiwa Honest Yarn Organic Linen in lace weight (s-twist) Euroflax linen lace weight (s-twist) Aunt Lydia's Classic 10 crochet thread4 (z-twist) Scheepjes Maxi Sweet Treat/Maxi Sugar Rush/Maxi5 (z-twist) Laughing Hens Daisy Crochet Cotton, (s-twist) 1.75 mm hook Fingering weight snowflakes: Fingering weight linen yarn, some linen yarn suggestions: Quince Sparrow (s-twist) Flax and Twine Daytime Linen in fingering weight (s-twist) Ecobutterfly Entwined: GOTS Organic Linen Yarn in 7/4 fingering weight (s-twist) Maiwa Honest Yarn Organic Linen in fingering weight (s-twist) 2.5 mm hook Other materials & tools: scissors yarn needle for weaving in ends blocking mats and pins a bit of metallic embroidery or sewing thread for adding a hanging loop, optional Stitches & abbreviations I use US crochet terminology. ch - chain: yarn over and pull through the loop on the hook slst - slip stitch: place hook in stitch and pull through both stitch and the loop on the hook sc - single crochet: place hook in stitch and pull through (2 loops on the hook), yarn over and pull through the loops inc - single crochet increase: 2 sc in the same stitch hdc - half double crochet: yarn over, place hook in stitch and pull through (3 loops on the hook), yarn over and pull through all 3 loops dc - double crochet: yarn over, place hook in stitch and pull through (3 loops on the hook), yarn over and pull through 2 loops (2 loops left on the hook), yarn over and draw through the last 2 loops tr - treble crochet: yarn over twice, place hook in stitch and pull through (4 loops on the hook), yarn over and pull through 2 loops (3 loops left on the hook), yarn over and pull through 2 loops (2 loops left on the hook), yarn over and draw through the last 2 loops ch-2-sc-cluster - ch 2, sc in the front of the 2nd chain from your hook. Note: this stitch will twist the hook around the front of the work as the yarn is pulled through the 2nd chain from the hook during the sc. This is intentional! I've also seen this "cluster" type stitch called a "group" stitch sometimes.6 (...) x $num and * (...) * x $num - repeat instructions in the parenthesis $num times (the asterisks are included in long/split lines for increased legibility) {...} - enclosed stitches are all done in the same stitch in the chain space - work stitches around the entire chain instead of in the loops of the chain; this may involve more or fewer stitches than the number of stitches in the chain in the single-chain space - work stitches around the entire chain stitch instead of inside the loops of the chain (yes, even though it's just a single chain stitch) Atria Snowflake I Lace weight Atria Snowflake I: Roughly 4 yards/3.7 meters of lace weight yarn or size 10 crochet thread 1.75 mm hook Approximate completed size: 1 ⅝ inches by 1 ½ inches/4.1 cm by 3.8 cm7 Fingering weight Atria Snowflake I: Roughly 4.3 yards/4 meters of fingering weight yarn 2.5 mm hook Approximate completed size: 2 ⅛ inches by 1 ⅞ inches/5.4 cm by 4.8 cm Instructions for Atria Snowflake I Foundation & round 1: In magic ring8, ch 8 (first 3 chains count as the 1st dc9), dc, (dc, ch 5, dc) x 5. slst into the 3rd chain of 1st dc to join the round10. (12 dc + 6 chain spaces) Round 2: sk the stitch you slipped into to join the last round, {slst, sc, hdc, ch-2-sc-cluster, dc, ch-2-sc-cluster, dc, ch-2-sc-cluster, hdc, sc, slst} in the chain space, ch-2-sc-cluster, sk, * ( sk, {slst, sc, hdc, ch-2-sc-cluster, dc, ch-2-sc-cluster, dc, ch-2-sc-cluster, hdc, sc, slst} in the chain space, ch-2-sc-cluster, sk ) * x 5. slst into the 1st slst in the first chain space to join the round. (48 stitches + 24 ch-2-sc-clusters) Finishing: Cut yarn and pull through the loop. Weave in ends. Gently slide stitches made in chain spaces to even them out in their chain spaces if needed. Block if desired. Atria Snowflake II Lace weight Atria Snowflake II: Roughly 4.7 yards/4.3 meters of lace weight yarn or size 10 crochet thread 1.75 mm hook Approximate completed size: 1 ¾ inches by 1 ½ inches/4.5 cm by 3.8 cm Fingering weight Atria Snowflake II: Roughly 5.5 yards/4.8 meters of fingering weight yarn 2.5 mm hook Approximate completed size: 2 ⅝ inches by 2 ¼ inches/6.7 cm by 5.7 cm Instructions for Atria Snowflake II Foundation & round 1: In a magic ring, ch 2 (this counts as the 1st dc11), 11 dc. slst into the second ch of 1st dc. (12 dc) Round 2: ch 8 (first 3 chains count as the 1st dc), dc into the same stitch as joined in last round, sk, ({dc, ch 5, dc}, sk) x 5. slst into the 3rd chain of 1st dc to join the round. (12 dc + 6 chain spaces) Round 3: sc into the same stitch as you slipped into to join the last round, {hdc, dc, tr, ch-2-sc-cluster, tr, dc, hdc} in the chain space, sc in the next dc, ch-2-sc-cluster, * ( sc in the next dc, {hdc, dc, tr, ch-2-sc-cluster, tr, dc, hdc} in the chain space, sc in the next dc, ch-2-sc-cluster ) * x 5. slst into the 1st sc to join the round. (48 stitches + 12 ch-2-sc-clusters) Finishing: Cut yarn and pull through the loop. Weave in ends. Gently slide stitches made in chain spaces to even them out in their chain spaces if needed. Block if desired. Atria Snowflake III Lace weight Atria Snowflake III: Roughly 6 yards/5.5 meters of lace weight yarn or size 10 crochet thread 1.75 mm hook Approximate completed size: 2 ¼ inches by 2 inches/5.7 cm by 5.1 cm Fingering weight Atria Snowflake III: Roughly 6.9 yards/6.3 meters of fingering weight yarn 2.5 mm hook Approximate completed size: 2 ¾ inches by 2 ⅜ inches/7.0 cm by 6.0 cm Instructions for Atria Snowflake III Foundation & round 1: In a magic ring, 6 sc. slst into the 1st sc. (6 sc) Round 2: ch 8 (first 3 chains count as the 1st dc), dc into the same stitch as joined in last round, ({dc, ch 5, dc}) x 5. slst into the 3rd chain of 1st dc to join the round. (12 dc + 6 chain spaces) Round 3: sc into the same stitch as you slipped into to join the last round, {hdc, dc, tr, ch 1, tr, dc, hdc} in the chain space, sc in the next dc, * ( sc in the next dc, {hdc, dc, tr, ch 1, tr, dc, hdc} in the chain space, sc in the next dc ) * x 5. slst into the 1st sc to join the round. (48 stitches + 6 single-chain spaces) Round 4: sk the stitch you slipped into to join the last round, slst into the next stitch (this is an hdc), 2 slst, {slst, ch-2-sc-cluster, dc, ch-2-sc-cluster, dc, ch-2-sc-cluster, slst} in the single-chain space12, 3 slst, ch-2-sc-cluster, sk, * ( sk, 3 slst, {slst, ch-2-sc-cluster, dc, ch-2-sc-cluster, dc, ch-2-sc-cluster, slst} in the single-chain space13, 3 slst, ch-2-sc-cluster, sk ) * x 5. slst into the slst14 you made to join the past round (the first stitch that was skipped this round). (60 stitches + 24 ch-2-sc-clusters) Finishing: Cut yarn and pull through the loop. Weave in ends. Gently slide stitches made in chain spaces to even them out in their chain spaces if needed. Block if desired. Atria Snowflake IV Lace weight Atria Snowflake IV: Roughly 9.3 yards/8.5 meters of lace weight yarn or size 10 crochet thread 1.75 mm hook Approximate completed size: 3 inches by 2 ½ inches/7.6 cm by 6.4 cm Fingering weight Atria Snowflake IV: Roughly 11.5 yards/10.5 meters of fingering weight yarn 2.5 mm hook Approximate completed size: 3 ¾ inches by 3 ⅛ inches/9.5 cm by 7.9 cm Instructions for Atria Snowflake IV Foundation & round 1: In a magic ring, 6 sc. slst into the 1st sc. (6 sc) Round 2: ch 2 (this counts as the 1st sc), sc into the same stitch joined in last round, 5 inc. slst into the 2nd chain of 1st sc to join the round. (12 sc) Round 3: ch 6 (first 3 chains count as the 1st dc), dc into the same stitch as joined in last round, sk, ({dc, ch 3, dc}, sk) x 5. slst into the 3rd chain of 1st dc to join the round. (12 dc + 6 chain spaces) Round 4: sc into the same stitch as you slipped into to join the last round, {hdc, dc, ch 3, dc, hdc} in the chain space, sc in the next dc, ch 3, * ( sc in the next dc, {hdc, dc, ch 3, dc, hdc} in the chain space, sc in the next dc, ch 3 ) * x 5. slst into the 1st sc to join the round. (36 stitches + 12 chain spaces) Round 5: sk the stitch as you slipped into to join the last round, sc, hdc, {hdc, dc, tr, ch 1, tr, dc, hdc} in the chain space, hdc, sc, sk, {hdc, ch 1, hdc} in the chain space, * ( sk, sc, hdc, {hdc, dc, tr, ch 1, tr, dc, hdc} in the chain space, hdc, sc, sk, {hdc, ch 1, hdc} in the chain space ) * x 5. slst into the 1st sc of this round (second stitch) to join the round. (72 stitches + 12 single-chain spaces) Round 6: sk the stitch you slipped into to join the last round15, slst into the next stitch (this was the 1st hdc in the previous round), slst, ch-2-sc-cluster, sk, slst, {slst, ch-2-sc-cluster, dc, ch-2-sc-cluster, dc, ch-2-sc-cluster, slst} in the single-chain space16, slst, ch-2-sc-cluster, sk, 4 slst, {slst, ch-2-sc-cluster, slst} the single-chain space17, slst, * ( 3 slst, ch-2-sc-cluster, sk, slst, {slst, ch-2-sc-cluster, dc, ch-2-sc-cluster, dc, ch-2-sc-cluster, slst} in the single-chain space18, slst, ch-2-sc-cluster, sk, 4 slst, {slst, ch-2-sc-cluster, slst} in the single-chain space19, slst ) * x 5. slst into the slst20 you made to join the past round (the first stitch that was skipped this round). (96 stitches + 36 ch-2-sc-clusters) Finishing: Cut yarn and pull through the loop. Weave in ends. Gently slide stitches made in chain spaces to even them out in their chain spaces if needed. Block. Atria Snowflake V Lace weight Atria Snowflake V: Roughly 13.9 yards/12.7 meters of lace weight yarn or size 10 crochet thread 1.75 mm hook Approximate completed size: 3 ¾ inches by 3 ⅛ inches/9.5 cm by 7.9 cm Fingering weight Atria Snowflake V: Roughly 16.8 yards/15.4 meters of fingering weight yarn 2.5 mm hook Approximate completed size: 4 ½ inches by 3 ⅞ inches/11.4 cm by 9.8 cm Instructions for Atria Snowflake V Foundation & round 1: In a magic ring, ch 2 (this counts as the 1st dc21), 11 dc. slst into the second ch of 1st dc. (12 dc) Round 2: ch 8 (first 3 chains count as the 1st dc), dc, (dc, ch 5, dc) x 5. slst into the 3rd chain of 1st dc to join the round. (12 dc + 6 chain spaces) Round 3: sc into the same stitch as you slipped into to join the last round, {hdc, dc, tr, ch 3, tr, dc, hdc} in the chain space, sc in the next dc, * ( sc in the next dc, {hdc, dc, tr, ch 3, tr, dc, hdc} in the chain space, sc in the next dc ) * x 5. slst into the 1st sc to join the round. (48 stitches + 6 chain spaces) Round 4: sc into the same stitch as you slipped into to join the last round, 3 sc, {sc, ch 3, 3 tr, ch 1, 3 tr, ch 3, sc} in the chain space, 4 sc, ch 3, * ( 4 sc, {sc, ch 3, 3 tr, ch 1, 3 tr, ch 3, sc} in the chain space, 4 sc, ch 3 ) * x 5. slst into the 1st sc to join the round. (96 stitches + 18 chain spaces + 6 single-chain spaces) Round 5: sk the stitch you slipped into to join the last round22, slst into the next stitch (this was an sc last round and an hdc the round before that), 3 slst, {slst, ch-2-sc-cluster, slst} in the chain space, ch-2-sc-cluster, sk, 2 slst, {slst, ch-2-sc-cluster, dc, ch-2-sc-cluster, dc, ch-2-sc-cluster, slst} in the single-chain space23, 2 slst, ch-2-sc-cluster, sk, {slst, ch-2-sc-cluster, slst} in the chain space, 5 slst, {slst, ch-2-sc-cluster, dc, ch-2-sc-cluster, dc, ch-2-sc-cluster, slst} in the chain space, * ( 5 slst, {slst, ch-2-sc-cluster, slst} in the chain space, ch-2-sc-cluster, sk, 2 slst, {slst, ch-2-sc-cluster, dc, ch-2-sc-cluster, dc, ch-2-sc-cluster, slst} in the single-chain space24, 2 slst, ch-2-sc-cluster, sk, {slst, ch-2-sc-cluster, slst} in the chain space, 5 slst, {slst, ch-2-sc-cluster, dc, ch-2-sc-cluster, dc, ch-2-sc-cluster, slst} in the chain space ) * x 5. slst into the slst25 you made to join the past round (the first stitch that was skipped this round). (156 stitches + 60 ch-2-sc-clusters) Finishing: Cut yarn and pull through the loop. Weave in ends. Gently slide stitches made in chain spaces to even them out in their chain spaces if needed. Block. Blocking In my experiences, Atria Snowflakes I, II, and III don't necessarily need traditional blocking - you may be able to just pull on opposite corners of the snowflakes to pop the stitches into place. Atria Snowflakes IV and V will need to be blocked to pop into the right shape. To block, run snowflakes under cold water and lightly shake off excess water. With pins at the points, stretch snowflakes into shape and affix to blocking mats. Linen and cotton are both cellulose fibers and become stronger when wet, so it's hard to block too aggressively! Let the snowflakes dry completely before removing them from the mats and pins. Adding a hanging loop (optional) To add a loop for hanging, cut a piece of metallic embroidery thread or a yarn you like that's about 7 inches/17.8 cm. Thread it onto a yarn needle, and pull it through the loop atop any of the ch-2-sc-clusters at the end of one of the 6 main points of the snowflake. Hold both ends of the thread and tie a simple overhand knot. To be clear, there's nothing wrong with stiffening crochet designs - it opens up many additional design possibilities! Unfortunately, the downsides of stiffening are too great for me. Starching or sugaring attracts the kinds of unwanted critters that are already all too common in Brooklyn. Stiffening with diluted PVA or wood glue yellows over time, and yellow snowflakes remind me of the kind of snow I'm not nostalgic for. ↩ s-twist yarn will untwist if you are a right-handed crocheter and stay twisted (actually twist a bit more) if you're left-handed; z-twist will untwist if you are a left-handed crocheter and stay twisted (actually twist a bit more) if you're right-handed. Yarn that untwists as you crochet may be harder to hook due to splitting and results in decreased stitch definition like the linen snowflakes in my examples; yarn that stays twisted is easier to hook and results in increased stitch definition. I love linen yarn for its sheen, durability, and stiffness, and I learned to knit over a decade before I learned to crochet, so I am biased towards using linen yarn - even though I am right-handed and almost all linen yarn is s-twist. It's much more common for crochet thread to be z-twist than plant-based yarns, but not all crochet thread is z-twist. ↩ If you get this in a quantity that doesn't come on a cone, I highly recommend rewinding this yarn onto a cone or, at the very least, inserting a cone-like core like the tube from an empty paper towel or toilet paper roll into the center of the ball. Otherwise, you likely will suffer the same frustrating fate I did until I rewound it onto a toilet paper tube - yarn constantly unraveling from both ends while working. ↩ I use Aunt Lydia's primarily because it's very easy for me to find and because it makes sense for me to pick a z-twist crochet thread as a right-handed crocheter. ↩ From Scheepjes: "Did you know that Scheepjes Maxi, Maxi Sweet Treat and Maxi Sugar Rush are identical yarns? The only difference is the meterage supplied per ball." ↩ In my head, I've come to refer to this particular "cluster" stitch as a "triangle" stitch, since it takes up the same space as a ch 3 picot but in a flatter, more defined triangle shape. My mentally calling it a "triangle" stitch inspired the name of this snowflake since one of the design decisions I kept constant across this set was choosing this stitch for all the points. I briefly considered calling this stitch "triangle" in this pattern, but I figured I'd rather keep the name more descriptive of how it's made to be consistent with my larger internal library of stitches that may or may not appear in future patterns. :) ↩ Aunt Lydia's Classic 10 crochet thread is a little thicker than Ecobutterfly Entwined: GOTS Organic Linen Yarn in 7/2, so my crochet thread snowflakes were a little larger than these sizes, and my lace weight linen yarn snowflakes were a little smaller than these sizes. ↩ I actually do a double magic ring every time because it pre-weaves in more of this end (the tradeoff is that it wastes more yarn to do so). Once Upon a Cheerio's tutorial explains double magic ring fairly well, especially how to tighten it, but I start my double magic rings more similarly to how Sarah Stearns's tutorial depicts it. If you really hate magic ring, you could instead ch 4 then slst in 1st ch to create a ring, but I promise that magic ring is not as hard as some people make it out to be. I am not usually a video person, but I learned how to make a magic ring from MJ Carlos's video tutorial. ↩ You could do standing double crochet for first double crochets instead of chains if you really want, but I don't think the difference between chains and double crochets is noticeable enough to bother. While I usually do ch 2 as the 1st dc in magic ring, I prefer the look of ch 3 next to the chain spaces. ↩ You could do an invisible join instead of slip stitches to join rounds if you really wanted to, but while I think it's worth the effort in a simpler fabric, making slightly subtler joins isn't worth the hassle in designs with varied stitches and shaping like these snowflakes. ↩ While I usually do ch 3 for the 1st dc in a round, I find ch 2 works better for me when it's the first stitch in a magic ring of just double crochets. ↩ This is tight for a single-chain space, but creates the desired shaping for the snowflake - more chains would create a larger hole. If you are really struggling to fit all the stitches, it's ok to drop the last slst as the next slst in the treble crochet from the previous round will ensure the point is secured in place. ↩ See footnote 12. ↩ If you're struggling to get your hook into the slst to create a slst to join, you may have a better time making it with a yarn needle instead. Since it's the last stitch in this snowflake, you won't have to join any yarn. To do make this slst in the target slst, cut the yarn, pull it through the loop at the end of the last stitch, thread the end on a small yarn needle, thread it under under the front loop of the target slst from the front of the piece, continue to thread it through the back loop of the target slst then thread it through the back of the last loop at the end of the last stitch you made. ↩ In this round, this would be a slst if it weren't already slipped into to join the round, and here, the slip to join counts as a stitch. ↩ This is tight for a single-chain space, but creates the desired shaping for the snowflake - more chains would create a larger hole. If you are really struggling to fit all the stitches, it's ok to drop the last slst as the next slst in the treble crochet from the previous round will ensure the point is secured in place. ↩ This is tight for a single-chain space, but creates the desired shaping for the snowflake - more chains would create a larger hole. If you are really struggling to fit all the stitches, it's ok to drop the last slst as the next slst in the half double crochet from the previous round will ensure the point is secured in place. ↩ See footnote 16. ↩ See footnote 17. ↩ If you're struggling to get your hook into the slst to create a slst to join, you may have a better time making it with a yarn needle instead. Since it's the last stitch in this snowflake, you won't have to join any yarn. To do make this slst in the target slst, cut the yarn, pull it through the loop at the end of the last stitch, thread the end on a small yarn needle, thread it under under the front loop of the target slst from the front of the piece, continue to thread it through the back loop of the target slst then thread it through the back of the last loop at the end of the last stitch you made. ↩ While I usually do ch 3 for the 1st dc in a round, I find ch 2 works better for me when it's the first stitch in a magic ring of just double crochets. ↩ In this round, this would be a slst if it weren't already slipped into to join the round, and here, the slip to join counts as a stitch. ↩ This is tight for a single-chain space, but creates the desired shaping for the snowflake - more chains would create a larger hole. If you are really struggling to fit all the stitches, it's ok to drop the last slst as the next slst in the treble crochet from the previous round will ensure the point is secured in place. ↩ See footnote 23. ↩ If you're struggling to get your hook into the slst to create a slst to join, you may have a better time making it with a yarn needle instead. Since it's the last stitch in this snowflake, you won't have to join any yarn. To do make this slst in the target slst, cut the yarn, pull it through the loop at the end of the last stitch, thread the end on a small yarn needle, thread it under under the front loop of the target slst from the front of the piece, continue to thread it through the back loop of the target slst then thread it through the back of the last loop at the end of the last stitch you made. ↩

8 hours ago • 1 votes
SumatraPDF new features: July 10, 2026

SumatraPDF is a PDF reader for Windows and Mac. New in the pre-release builds: Floating selection toolbar After you select text, a small toolbar appears next to the selection with Copy, Read Aloud, Highlight, Underline, Squiggly and Strike Out. The annotation buttons only appear for documents that support annotations. Turn it off with the SelectionToolbar advanced setting. It was ported from the SumatraPDF Plus fork. Clearer CAD / engineering drawings PDFs of CAD and engineering drawings are easier to read, especially when zoomed out. Very thin lines get a minimum width that depends on zoom, and pale gray lines are darkened. Turn it on with the EngineeringDrawingEnhance advanced setting: auto enhances drawings it detects, on enhances every PDF and off is the default. You can also turn it on or off per document with Toggle Engineering Drawing Enhancement (CmdToggleEngineeringDrawingEnhance) in the command palette. More: changes from July 10, 2026 and the full changelog.

16 hours ago • 1 votes
AI is making capital & labor interchangeable

For the first time in human history, capital and labor are becoming directly fungible for more tasks

2 days ago • 1 votes
What’s fixed in RestAssured.Net 5.2.0

Last week, I released version 5.2.0 of RestAssured.Net. It contains fixes for no less than 23 issues, the largest number of bug fixes in a single release by a long margin. All 23 bugs were found and fixed by Claude, under my strict supervision. I will describe the process I used to find and fix the issues in more detail in an upcoming newsletter issue, but I think it could be useful to give a short overview of all the fixes in 5.2.0 beyond what’s in the CHANGELOG, so here goes. Sending requests Requests without a body no longer send a JSON content type (#161) GET, DELETE and HEAD requests (and any other request without a body) used to be sent with Content-Type: application/json and an empty body, which some servers, gateways and firewalls reject. Requests without a body are now sent without one, so what goes over the wire is what you wrote in your test. Values in the request now take precedence over the request specification (#153, #179) When a header, content type or other setting was set both in a RequestSpecification and in the request itself, the specification won. It’s now the other way around: a specification provides defaults, and the request can always override them. The path in a base URI is no longer dropped (#160) WithBaseUri("http://host/api") silently ignored the /api part, so requests went to the wrong path. The path is now included, and the BaseUri property of the specification shows the URI you configured. Relative endpoints with a query string are sent to the right path (#159) With a request specification, Get("/users?id=1") was sent to /users%3Fid=1, because the question mark was encoded as part of the path. The query string is now sent as a query string. Trailing slashes in endpoints are kept (#172) With a request specification, Get("/users/") was sent to /users. Some APIs treat these as different resources, so the slash is now kept. Collections in query parameters send their values (#167) Passing a list as a query parameter value sent the name of the collection type (System.Collections.Generic.List...) instead of its contents. Each value is now sent as a separate parameter, for example ?id=1&id=2. Square brackets that aren’t path parameters are left alone (#154) Any text between square brackets in an endpoint, such as filter[name]=x, was treated as a path parameter placeholder. Only placeholders for path parameters you actually supplied are replaced now, and their values are no longer HTML-encoded. Basic authentication supports non-ASCII characters (#168) Credentials were encoded as ASCII, so characters like ü or € were sent as ? and authentication failed. Credentials are now encoded as UTF-8. Your own cookies are no longer modified (#175, #183) A Cookie object passed to a request was changed while the request was sent: its domain was set to the request host. A cookie reused for another host then silently wasn’t sent. RestAssured.Net now works on a copy, and request cookies are logged with the domain they’re actually sent for. Using your own HttpClient Timeouts, cookies and other settings now work with your own HttpClient (#156) When you passed your own HttpClient, timeouts and cookies were silently ignored, and setting a timeout could even crash on a client that had already been used. Timeouts and cookies now work without changing your client. Proxy, SSL and NTLM settings can’t be applied to a client you created yourself, so setting them on the request now throws a clear exception instead of being ignored; settings from a specification or the global configuration log a warning. Verifying and extracting responses Cookie checks only pass for cookies the server actually set (#155) The cookies you sent with the request were mixed with the cookies in the response, so verifying or extracting a cookie could pass even when the server never set it. Only cookies set by the server are seen as response cookies now. All response headers can be verified and extracted (#162) Headers that describe the body, such as Content-Disposition, Content-Type and Last-Modified, couldn’t be found with Header(), because .NET stores them separately. Header() now finds every header in the response. XML and HTML assertions work the same on every machine (#163) A value like 1.5 in an XML or HTML body was read using the language settings of the machine, so on a Dutch or German machine it became 15 and assertions failed. Values are now always read the same way, regardless of the machine’s culture. Response body length is measured in bytes (#169) ResponseBodyLength() was documented as counting bytes, but counted characters, which differs for bodies with non-ASCII characters. It now counts bytes, so the value matches the Content-Length header. Square brackets in custom error messages are kept (#170) Custom error messages treated any text in square brackets as a template tag, so a message like [TICKET-123] status was [actual] lost its ticket reference. Only [expected] and [actual] are replaced now; all other text stays as you wrote it. Errors keep their original cause (#165) When a request failed, for example because the connection was refused or the certificate was invalid, the original exception was thrown away and every error was reported as “Unhandled exception”. The original exception is now kept as the inner exception, which makes failures in CI much easier to diagnose. Logging Masking sensitive data can no longer be bypassed (#158) Headers and cookies configured as sensitive could still end up in the logs, for example when the casing of the header name differed, or as part of a Cookie or Set-Cookie header. Sensitive values are now masked in all of these cases. Logging no longer crashes on invalid JSON or XML (#157) With body logging enabled, a response labeled as JSON or XML that wasn’t valid (an HTML error page from a gateway, for example) made the request fail. Bodies that can’t be parsed are now logged as they are. All content headers are logged (#185) Only Content-Type and Content-Length were logged from the headers that describe the body, so headers like Content-Disposition and Content-Encoding were missing from the log. All of them are logged now, and they can be masked like any other header. Response times are logged the same way everywhere (#182) The response time in the log used the decimal separator of the machine’s culture, for example 3,75 ms on a Dutch machine. It’s now always logged with a period, so logs look the same on every machine. The logger is only called when there’s something to log (#174) With logging switched off, a custom logger was still called twice per request, with empty messages. It’s now only called when there is actually something to log. As you can see from the list above, RestAssured.Net just got a lot better and/or more consistent and/or more compliant with documented HTTP behaviour with version 5.2.0. There are still quite a few open issues, but I decided to leave those for the next release, which hopefully sees the light of day in the next few weeks.

2 days ago • 1 votes
Jenni joins Digital Science: a four-year retrospective

In October 2026 Jenni was acquired by Digital Science. A personal reflection on four years as founding designer, from $4k to $730k in monthly revenue.

3 days ago • 1 votes
📚 BoredReading

You seem to be enjoying this.

Join free to unlock everything.

Create free account

Already have an account? Sign in