Full Width [alt+shift+f] Shortcuts [alt+shift+k]
Sign Up [alt+shift+s] Log In [alt+shift+l]
1

Sabbatical #18: Great Ocean Road

from Darek Kay [alt+shift+b] in programming

I enjoyed the busy city life in Melbourne for a few days, but soon the adventurer and nature seeker in me took over again. It so happens that one of the best road trips in the world is around the corner: The Great Ocean Road. It is also the world's largest war memorial, dedicated to soldiers killed during World War I. After a wonderful group trip in Rotorua, I was again looking to share the experience with other people. It didn't take long to gather a group, which coincidentally consisted only of Germans. We roughly followed the guide from Lauren. In a time of popularity-oriented LLMs and influencers sharing "must-do's" after spending one day in a foreign place, I highly appreciate the valuable knowledge of a local person. In theory, one can do the Great Ocean Road in a single day, but I can't imagine that being a good experience. Instead, we decided to stay a night in Port Campbell. It was also nice to have another driver on board, so we could split the driving time. Bell's Beach The first highlight was Bells Beach, the home of the world's longest continuously running pro-surfing competition (since 1962). Despite the rain, we spotted multiple people surfing the waves. Anglesea Golf Club "There are no kangaroos in Austria…", but there are in Australia! We spotted a couple of them along the way, but they quickly disappeared into the bush. We decided to go to the Anglesea Golf Club, known for its wild kangaroos. You can buy an overpriced tour on the golf course, but there were lots of kangaroos outside as well. As responsible tourists, we kept our distance, but they seemed to be only mildly interested in us. Aireys Inlet Our next short stop was at Aireys Inlet and the famous (among Australians) Split Point Lighthouse. Memorial Arch Half an hour after the official beginning of the Great Ocean Road in Torquay, we reached the Memorial Arch. The traffic was low, so we took the opportunity to get the iconic...
14th Jul 2026

Stay updated

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

More from Darek Kay

Sabbatical #16: Kaikōura

“I will not say "Do not weep", for not all tears are an evil.” ― The Lord of the Rings On my way to the last stop in New Zealand, I spent a good amount of time at the Ōhau Point Lookout, which is known for a nearby fur seal colony. At one point, another photographer pointed out dolphins in the ocean. While they were far away, it was interesting to see their acrobatic talents in action. My trip ended in Kaikōura, with a rocky beach right next to my hostel. I also visited the Kaikōura Seal Colony. There is a (rather symbolic) barrier to prevent people from coming too close to the fur seals, but the animals don't care. Some relaxed next to the main pathway. Giving up the kayak-and-hike tour was a hard yet correct decision. My body appreciated a little rest, and I've been recovering quickly. Passing on what I imagined to be the highlight of the South Island was even more difficult, and I decided to YOLO accept the potential health consequences. I felt well enough for the Dolphin Encounter, a tour where you get to snorkel with wild dolphins in the ocean. Before the tour, we were warned about high waves, low visibility and no 100% guarantee of actually spotting dolphins. However, I wasn't going to bail at this point. After putting on the gear and watching a short introduction video, it was time for a boat trip. Our experienced spotters quickly found the first dolphins. I had only snorkeled once before, and it was a struggle back then. With the high waves and being far from shore, I was slightly anxious about the upcoming adventure. It went better this time, even though I was still getting water in my mask. Now it was up to the dolphins to decide if we were interesting enough. They were somewhat curious but didn't stay in the same spot for long. I had some close encounters, which was a fascinating experience! After four or five dives, it was time to go back. However, after spotting some whales jumping out of the water, the trip turned into a small whale-watching excursion! I only wish I had brought my camera with me. This marks the end of my five-week New Zealand trip 🥲. I could have spent more time in this beautiful, diverse country, but I also wanted to see other interesting places. Stay tuned!

3rd Jun 2026 • 1 votes
Sabbatical #13: Wānaka

“Well, I’ve made up my mind, anyway. I want to see mountains again, Gandalf.” ― The Lord of the Rings Wānaka is a smaller, less commercialized resort town compared to Queenstown, with a population of around 13 000, but it's as exciting. On my way to Wānaka, I made a quick stop at the Crown Range Lookout, which offers an amazing view over the Queenstown area — especially during the golden hour. Once reaching a cozy hostel in Wānaka, I was greeted by a fitting name tag that has been selected for me. The main "hub" of the town is scattered around Lake Wānaka, where you chill or do some water-based activities. Probably the most popular spot in Wānaka is That Wānaka Tree, a willow tree surrounded by water from the lake. Yes, that's the official name coming from the #ThatWanakaTree social media hashtag. During the day, the place is too crowded to take a good photo of "New Zealand's most famous tree", but after the sun goes down, you have this place all to yourself. Put your camera on a tripod, hope for a clear sky, and you can get some magical shots. Lord of the Rungs The activity I was looking for the most was Lord of the Rungs by Wildwire, a via ferrata next to a waterfall. With 450 meters, it is the highest waterfall via ferrata in the world. You can choose from three levels, differing in length and price. It's a single track with early exits, so level 3 continues after completing the first two levels. I was concerned about the difficulty of level 3, but I went all-in. Surprisingly, hanging on the side of a cliff and looking down didn't scare me as much as I thought. On the contrary: it enforced my wish to transition from bouldering to rock climbing in the future. I've once had a fear of heights, but over the years, I seem to have mostly cured it. Now I enjoy the thrill. During the tour, we've crossed seven suspension bridges. On some, we've suspended ourselves by the rope and let go for the extra thrill. The first two levels are fun, but I didn't find them physically challenging. The third level is what makes this activity one of my highlights in New Zealand. It included steeper sections and one overhang. With my bouldering experience, the track was fun but rather cozy. Others were visibly struggling, but still managed to complete the climb. At one point, we walked behind a 60m waterfall — a truly memorable experience. Once we've reached the top, a helicopter picked us up. It wasn't my first time flying in a helicopter, but I've never been on board during landing 😄. The descent was quick but exciting. In total, it took us around five hours to complete the via ferrata (including the preparations). Roys Peak Wānaka is also a great base for hikers. One destination that has been mentioned over and over was Roys Peak, along with its less famous sibling Isthmus Peak. I wanted to see the mountains again and decided to go with the more popular option. Both hiking tracks are described as somewhat demanding, but after the Tongariro Crossing, I was up for the challenge. Many backpackers went for the sunrise, but this meant waking up around 3:30 am. Due to my planned night activity (see next section), I wasn't willing to do that. However, I did like the idea of starting a hike before the sunrise, and I also had to justify buying a head torch in Queenstown 😄. I decided to start around 6 am. What seemed like a lose-lose scenario (waking up early but not seeing the sunrise at the peak) was actually a great decision. I still experienced the sunrise during the hike, which was maybe even more beautiful. More importantly, the otherwise crowded peak was mostly empty: the early birds were hiking down, while regular hikers haven't arrived yet. I was aware of the demanding hike, but the first challenges came before even reaching the starting point. First, I was greeted with a frozen windshield. With no ice scraper in the car, I had to improvise one with a credit card, which worked pretty well. Another problem was finding a parking spot. I arrived at 6:30 am, and the official parking lot was already full, even at the end of peak season (pun intended). I found a somewhat sketchy spot and was once again glad I rented a compact SUV car. Later I discovered a paid parking lot that I could have used. The hike is straightforward yet steep. I only needed my head torch for the first half an hour. After an hour, I could enjoy the sunrise with a beautiful view. A few curious sheep completed the scenery. After 2 hours and 20 minutes, I've reached the famous lookout. I already briefly mentioned Instagram factories, and this one is no exception. You can observe one person after another walking or running to the end of a short path. I didn't intend to take the famous shot, but as mentioned, the spot was almost empty (compared to midday). We were maybe 10–15 people in total. I took my telephoto lens with me just in case, and I was glad I did. I offered a group of people an offer they couldn't reject. After taking turns, each of us got a "unique" photo (as unique as taking the same photo hundreds of times a day can be). Luckily, a cloud has formed out of nothing right behind the spot, adding a little bit of mystery. While I did make a few poses, the best part was the actual view. It's a little bit cliché, but this spot feels like standing at the top of the world. Now, when people talk about Roys Peak, they often think about the Instagram spot. In fact, from all the people I've met and talked to, only one person reached the actual top. I had to do it. After all, it's called Roys Peak and not Roys Instagram Lookout 🤷 It took me another 30 minutes to reach the top, and it was definitely worth it. I think this section offers equally great (and unique) photo opportunities. On my way down, I saw a few paragliders launching from the mountain. It took me 2 hours and 10 minutes to walk straight from the top to my car. I've met lots of hikers going in the opposite direction again, especially from France. 💡 I was curious about the missing apostrophe in names like "Roys Peak". It's probably following the U.S. Board on Geographic Names policy dating back to 1890 to discourage the use of possessive forms and apostrophes. Total lunar eclipse This year's total lunar eclipse was mainly visible in New Zealand and Australia. Even after my long hike, I was definitely not missing that, especially as the sky was almost clear. I was fortunate to experience this spectacle in real time. Once the earth shadow fully covers the moon, we get what is called the Blood Moon, due to its red color. This is not to be confused with the honey moon in June, which has only a slight yellow/red tint.

18th May 2026 • 1 votes
Sabbatical #09: Dunedin

“All we have to decide is what to do with the time that is given us.” ― The Lord of the Rings Dunedin is a former Scottish settlement, which becomes apparent after a quick walk through the city. The name is an anglicization of the Gaelic name for Edinburgh. It is counterintuitively pronounced /dɐˈniːdɘn/ (duh-nee-din). I arrived on a Saturday during the Chinese New Year Festival, so the city was full. In fact, there was not a single accommodation available in the entire city, as a person I drove with had to find out the hard way. The first thing I noticed is how hilly the city is. Driving here was an interesting experience. I should have seen that coming, knowing about the Baldwin Street in Dunedin: the steepest street in the world. The slope is 35%, which means the ground rises 1m for every 2.86m you cover horizontally. It's famous enough to have tourist buses stop here. I also liked the botanical garden, as it was a mix of a park and a forest. Otago Peninsula Next to Dunedin, there is the Otago Peninsula, a nature and wildlife paradise. The main road mostly follows the coastline. While it is scenic, it also contains countless curves, but I got used to that by now. I like to check Google Maps for points of interest along the route I take, which helps me find less known spots like the Pineapple Rock. My main destination was OPERA: The Otago Peninsula Eco Restoration Alliance. It is a private eco-reserve dedicated to conservation, rehabilitation, restoration and education. The former working farm is being transitioned back to a native forest, offering a safe habitat to many species. I booked the Canopy to Coast Tour, which is an educational hike through the reserve. The yellow-eyed penguin (hoiho) is one of the rarest penguins in the world and is classified as endangered. In the past two decades, its population decreased by 75%. Saving those birds is one of the main goals of OPERA. The smallest penguin species, the little blue penguin (kororā), is also living in the reserve. We've spotted a few in their small shelters. The reserve is also a great place for other birds. While still sitting in my car, I've already spotted the first one, a tūī. Similar to parrots, they can replicate human speech, but also other sounds, like glass shattering. The endemic New Zealand fantail (pīwakawaka) became one of my favorite birds. They like to follow people during a hike, as our steps might reveal bugs below the earth. In Māori mythology, the fantail was responsible for the presence of death in the world. To this day, the bird is considered either a good or bad omen, depending on the region. The swamp harrier (kāhu) is one of only three birds of prey in New Zealand. Around the beach, there were many sea lions and fur seals. Fur seals are more closely related to sea lions than seals, making the distinction between those two species tricky. We've also learned much about the regional flora. The endemic tree nettle (ongaonga) is one of the most poisonous plants in New Zealand. The sting reactions can last for weeks and the reaction can be fatal. As it's a native species, OPERA doesn't remove those plants. Driving in New Zealand: Part II For the south island, I have booked the same small economy car model, as I got used to it. After talking about my plans with the lady from the rental company, she highly suggested to get a compact SUV instead for just a few more dollars. I haven't driven a car of that size before, but I've been warned about the curvy, hilly and narrow roads on the south island. I didn't have the feeling that she was trying to squeeze more money out of me (she argued against a proper SUV). But I also remembered my friend telling me a similar story, so I decided to do it. Spoiler alert: it was a great decision. Do you remember how proud I was to not have confused the windshield wipers and turn signals in New Zealand? Well, that's because my Suzuki Swift didn't have them switched as I had assumed 🤦 This time, the controls were actually inversed. It only took me until the parking exit to notice that 😆 The mistake happened three or four times after that, so it was still fine.

7th Apr 2026 • 1 votes
Sabbatical #07: Waitomo

“I know we are going to take a very long road, into darkness; but I know I can't turn back.” ― The Lord of the Rings Black Abyss Waitomo is mostly known for their glowworm caves. Most people book a short boat ride to view the countless New Zealand glowworms (Arachnocampa luminosa). I probably wouldn't include this activity in my trip if there wasn't a much more adventurous alternative: the Black Abyss, a caving tour. After putting on a wetsuit, you start with a 35 m abseil into a pitch dark cave. While you're waiting for the others, you can already admire the first glowworms. Next, you do a short zipline inside the cave, with more glowworms above you. After a short break with hot chocolate and a cookie, you jump with a big tube into the dark, refreshing water. What follows is a short light painting photo session. For the next hour or so, you are swimming and/or floating on your tube through the big cave. Despite the wetsuit and the hot chocolate, it was freezing cold, getting worse over time. My teeth were chattering, slightly distracting from the otherwise awesome experience. Once you reach a dead end, you form a "tube train" with your group, and the guide slowly pulls you all back to the starting point. You can now once again enjoy thousands of glowworms in what feels like a star-spangled sky. You also learn a few interesting facts about those creatures. Glowworms are not related to fireflies in any way. It's mostly the larvae that exhibit the largest bioluminescence. They use this technique to attract prey, and the hungriest individuals will glow the strongest. There's also a small waterfall, which makes for another great photo opportunity. After you give back your tube, you'll continue the caving tour by foot, following more narrow passages. Finally, you are given a decision to leave the cave the easy way or climb your way out on cascading underground waterfalls. I probably don't have to mention the option I've chosen 🧗 I expected this to be the highlight of the north island, and I wasn't disappointed! While I've had many "first time" experiences in New Zealand, this tour combined a couple of those in a 4–5 hour time span. Omaru Falls On my way to Waitomo, I did a short walk to the Omaru Falls. I can imagine the waterfall looking nice during sunshine, but after rain it's just a brown soup falling down. With long exposure, it still looks interesting, though. Fauna There are no (new) birds this time, but I've made some other encounters. Another cicada A single goat chilling at a river. A captivated T-Rex in Te Kuiti

12th Mar 2026 • 1 votes

More in programming

My new digital home

It's time for a dev blogger's favorite topic: blogging about my new blogging setup. After migrating my blog from Hexo to Eleventy, building a photography website and creating a personal one-pager, it was time to find a new digital home for all my projects. If you notice any issue after the migration, please let me know. I redirect the RSS feed to the new domain, but you might want to update the feed URL in your reader. Motivation I've been maintaining three different websites under two different names: a mostly developer-oriented blog, a photography portfolio and a one-pager gluing everything together. When I started blogging about my sabbatical journey, I was thinking about making yet another page to create a clear separation. I've decided to do the opposite and merge all my websites into one instead. As I further reduce my dependency on social media and third-party services, it has become even more important to have my own space and practice POSSE. Every decision I've made was driven by two main goals: simplicity and personality. Setup I've stopped chasing the latest and greatest. I want to keep the setup as clean as possible, which means pulling fewer dependencies. Every package adds complexity and maintainability costs, so I've only added what was necessary — no more Gulp, Sass or Tailwind. Instead of taking one of my existing websites as a starting point, I created this project from scratch. I reused some of my previous code, but I didn't want to take over any technical debt (especially with the advancements in CSS). The foundation of this website hasn't changed: Eleventy (Build Awesome). It covers the fundamentals of a static site and offers a great level of customization. I've made my project more and less dependent on Eleventy at the same time: I replaced Gulp as my build pipeline with pure Eleventy processing. I replaced most shortcodes with Markdown alternatives (and markdown-it plugins), which are better supported by editors like Obsidian. I've also replaced the Nunjucks template engine with Liquid, which comes with a few trade-offs. The main reason was to avoid creating a new collection for every set of posts I render. With Liquid, you can apply array functions like filtering or sorting in the template itself: {% assign drafts = collections.all | where: "data.isDraft" | reverse %} {% for draft in drafts %} … {% endfor %} Another advantage is having date formatting included, so I don't need another library or custom code. You can even set a default date format, so you don't have to provide it each time. What I don't like is the verbosity of the template language, although I've gotten used to it by now. Nunjucks: {{ "/tags/" + tag + "/" }} {{ modified or created or date }} {% set perspectives = ["dev", "photography", "life"] %} Liquid: {{ "/tags/" | append: tag | append: "/" }} {{ modified | default: created | default: date }} {% assign perspectives = "dev, photography, life" | split: ", " %} After migrating my existing content, I've noticed the build taking way too long, both in the dev server and the production build. I've found out that the Eleventy template cache is turned off for Liquid by default. This was useful during development, but when updating actual content, it caused every template and partial to be constantly recalculated. After turning the cache on, this issue was resolved: eleventyConfig.setLiquidOptions({ cache: true }); Check the colophon for the full tech stack overview. Perspectives The main challenge was finding a way to separate and present my main personas. The Venn diagram intersection of people interested in software development, photography and my personal life is probably small. I could use tags, but they don't offer the level of personalization I was looking for. Most personal blogs separate the content by post type (blog post, note, photo), but this doesn't fit my use case. Instead, I've decided to structure my website around three perspectives, a term I have borrowed from the Eclipse IDE. Each perspective comes with its own avatar, tagline and bio. If someone is interested in everything I share (hi Mom!), they can still view all my posts. Design Since building my photography website, I've made many changes, but I never got around to share an update. The biggest change was the design, which I have used as a blueprint for the new website. I've decided to mimic a social timeline/feed, which most people are familiar with. At the same time, it should be clear that it's a personal website and not yet another walled garden. Typography is an important part of every design. The first step is to choose between a system font stack and a custom font, which comes with the usual performance vs. personality trade-offs. I've decided to go with a uniform look across all devices. I've settled on Source Sans 3 for copy text and Hack for code. Another big change was introducing a sidebar. I always felt like the empty horizontal space was "wasted" on a desktop device, but getting the sidebar UX right is challenging. I'm happy with the result, especially with the last two panels adding a personal touch to the design. Images I've made several changes to the handling of image files. To make them compatible with Markdown editors, I had to replace my custom picture shortcode. The official Eleventy image plugin is a popular choice, but it violates my simplicity goal and doesn't support everything I needed. I've decided to go with a plain Markdown image markup and a single image file (no format fallback or 2x version for retina displays). Additionally, I wrote a markdown-it plugin to turn the optional title parameter into a caption. As for the file format, both WebP and AVIF have excellent browser support. For each image, I select the format based on the quality and file size. For my photos, I'm using WebP for the timeline thumbnails and JPG for the full-size version. Theme picker There have been some recent discussions about dark mode toggles, and I considered going for a light/dark solution based on the user's OS preference. Driven by the personality goal, I knew I had to add at least one more theme, so a proper theme picker was necessary. Similar to navigation, people like to hide the theme selection on mobile devices behind a burger menu or a dropdown. I prefer the solution by Sarah L. Fossheim, where all available themes are displayed above the page footer. A friend was scrolling through my new website, and their first question was "Why is the theme picker in the footer?". This tells me the solution was a good idea — I don't think he would have noticed a typical theme button in the header. The implementation follows standard practices: Use the light or dark theme as default based on the user's OS or browser preference. Store a selected theme in the local storage and use it as the single source of truth. Prevent a flash of inaccurate color theme. Make the theme play nicely with bfcache. I might have slightly gone overboard with my third theme, but the nostalgia kept me adding more and more features. Enjoy going back to the 90s: Feeds As browser vendors decided to remove XSLT support, I didn't bother to style my feed. Instead, I've created a new web feeds page, listing all available feeds and a short explanation. I provide one feed for every perspective and one with all my posts combined. I once offered tag-based RSS feeds. This was useful for my sabbatical, but even there I had only a single subscriber. Now, all tag feeds redirect to their main perspective feed. I've also dropped the JSON feed, despite having at least 16 subscribers. Given that every web feed reader supports Atom feeds, I don't see the value of providing a JSON alternative. A JSON feed doesn't add much complexity, but handling different media types (post, photo) and properly escaping the content is one more thing to implement and maintain. Quality assurance I've put a lot of effort into my new digital home, and I want to make sure it stays in good shape. I've included several tools, most running automatically as part of the CI pipeline: eleventyDataSchema — lint Eleventy data values like titles or dates markdownlint — format/lint Markdown files Vale — lint content (grammar, writing style, formatting) Lychee — find broken links (internal and external) Evaluatory — check accessibility and validate HTML Oxlint — lint JavaScript files Eleventy linters are another option to analyze a template's output, but I haven't found a use case for it yet. Not everything can be automated, so I also did the following manually: Test with Chrome, Firefox and Safari Test with Polypane Test with Google Lighthouse Test with a screen reader Test with JavaScript disabled Test with CSS disabled Test at 200% zoom Test with a bigger browser font size Test with custom fonts disabled Test with delayed assets Performance It's difficult to compare the performance of two separate websites with that of a combined one. Some parts got worse, e.g. bigger font files and more CSS. At the same time, I've noticed that gzip compression was turned off for anything but HTML for a few years now (I must have missed it when upgrading nginx) 🙈. One improvement was to implement on-demand assets. For example, the lite-youtube-embed CSS and JavaScript is only loaded if a <lite-youtube> element is present on the page. As before, JavaScript is fully optional (except for interactive demos in individual posts). I've been using a mix of <noscript> and CSS to hide elements that require JS (like the theme picker). I don't like the user experience of pagination, so I avoided it for years. But now that I have almost 300 posts, I've decided to finally add it. I display 30 posts per page, with images further down still being lazy-loaded for better performance. I haven't applied pagination to tag pages, as that's more complex with Eleventy. Bits and pieces Here are some other noteworthy changes: I've removed post-specific social share images and use a single WebP Open Graph image instead. I've dropped JSON-LD. Open Graph and microformats are sufficient. "Naming is hard" is a common expression in software development, but it also applies to photograph titles. I've decided to use a counter as the title, e.g. #0100. Sometimes I do come up with a title that I love, like the Castle in the Sky, so I might mention it in the description. On a photo page, you can now open the previous/next photo using the left/right arrow keys (in addition to the existing navigation buttons). It's now possible to filter photos by date, gear, or location. Check the explore page for an overview. I've learned about and used some experimental CSS features (with progressive enhancement), like scroll-triggered animations or squircle corners. I've added an AI statement on my LLM usage. I finally have a proper about page. Cool URIs don't change, but it's inevitable when moving to a new domain. All my previous URLs are redirected, except for some assets that are no longer used. I will keep the old domain, so the redirects will continue to work for a foreseeable future. I've kept my previous Easter egg and added a few more. Have a happy hunt! 🕵️‍♂️ Inspiration I visited hundreds of personal websites looking for inspiration. Here are a few that I kept coming back to: Emma Goto. I love Emma's approach to presenting the variety of her interests, even though I went a different route. Brennan Kenneth Brown. This website has so much to offer. It's a great example of what the open web looks like. Rex Barrett. The sentence "Collecting hobbies is my hobby." hit home — so much that I had to steal borrow it for my short life bio. Conclusion This project was mostly about merging the content of two websites into one. I knew this would take a considerable amount of time, but I still greatly underestimated the effort. In the end, it was all about the journey, not the destination. I loved fine-tuning the design and tweaking little details that probably no one will ever notice. I still have many more ideas left in my backlog. How do you like my new digital home? If you have an opinion, let me know! Reply via email

2 hours ago • 1 votes
Industrial Growth

New electronica album by Warrington-Runcorn New Town Development Plan

3 hours ago • 1 votes
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]

4 hours ago • 1 votes
Print Sales, Costs, And Profit: 2026

It’s four years since I bought a printer. I thought I would provide an update on running costs, print sales, and profit. I’m happy to be completely transparent about all this as I know it can be difficult to figure this out if you are thinking of creating your own printing business. January 11th 2026, 11:30am All the photos here are work shot in the last twelve months. Year Four Investment? Nothing other than consumables this year. I did purchase a high-spec film scanner last year, detailed here, but don’t consider that as part of this. The scanner has paid for itself several times over, and it may become a factor in future years (see below). Income Income is made up of sales through a local gallery that I am part of, along with web sales: 5,940.- CHF - sales through the gallery 80.- CHF - sales through web shop = 6,020.- CHF total income Total income is down about 50% compared to 2025. Costs I had to purchase consumables (paper and ink), at a total of 957.- CHF. That cost is included in the total here under the “print consumables” category. January 11th 2026, 3:30pm Rental cost of space in the gallery was reduced due to having overpayments of rent and my loan to the gallery, from the previous year(s), paid back to me. -1,500.- CHF - rental cost of space in the gallery -957.- CHF - print consumables (paper, ink) -1,138.- CHF - framing/mounting/postage -1,135.- CHF - commission to the gallery -300.- CHF - web shop subscription 0.- CHF - stripe / paypal fees 0.- CHF - advertising (none this year) = -5,030.- CHF total costs Total costs are down by about 60% compared to 2025. Total Profit 6,020.- CHF total income -5,030.- CHF total costs = 990.- CHF total profit A Quiet Year? Actually an average year. The previous couple of years were outliers, due to large orders, so really I’m back to normal in terms of sales. The key factors in managing to generate a [small] profit this year were: 1) no longer having to pay back the loan used to finance the printer, and 2) reduced rental cost of space in the gallery due to a previous loan to it being repaid. Also having to spend almost 1,000.- CHF on ink this year ate into profit. This is probably a “once every three years” cost given the rate I print at. The principal cost is rental of space in the gallery - in a normal year this would be 3,000.- CHF. Essentially this means, given the material cost of printing and framing/mounting and commission to the gallery, I need to make about 5,500.- CHF of sales to break even. Solar Eclipse, August 12th 2026 That’s a grind. However I did receive two substantial orders at the end of October, which haven’t made it in to this year’s figures and should boost next year’s. Maybe even a good sign for the year to come? At least now the original investment loan is repaid, the printing costs cover themselves in most years. I may look at offering scanning services now that I have a high-spec film scanner, which could become a scan + print service. More thoughts about that next time.

18 hours ago • 1 votes
F1

George Russell driving down the main straight during FP2.

18 hours ago • 1 votes
📚 BoredReading

You seem to be enjoying this.

Join free to unlock everything.

Create free account

Already have an account? Sign in