Python

Rewriting SharpCooking from Xamarin to PWA - Part 3

This is the third post in the series. If you haven’t seen the first two posts yet, I recommend you read them for added context. The why and high level how The tech stack The problem Sharp Cooking allows for recipe extraction from many websites. The original app makes a web request that loads the HTML page and parses the content to identify a recipe. The parsing is done using XPath and a configuration file determining the XPATH queries to be used....

January 29, 2023 · 8 min · LPains
Vue + Typescript = Sharp Cooking

Rewriting SharpCooking from Xamarin to PWA - Part 2

This is the second post on the series, if you haven’t seen the first post yet, I recommend you read it for some more context. The why and high level how This post is about the tools and frameworks I chose for Sharp Cooking Web. Frontend framework I wanted the new Sharp Cooking to be as close to a real mobile app as possible. Once it is installed, it should be able to run completely offline....

January 8, 2023 · 8 min · LPains
Sharp Cooking

Rewriting SharpCooking from Xamarin to PWA - Part 1

This is going to be a series of posts about Sharp Cooking’s rewrite journey. I’m not sure yet how many parts it will take. In any case, part 1 is about the why and the high-level how. A bit of history When I’m not coding I spend a lot of time in the kitchen. Cooking and baking have been a long-time passion of mine and I have dozens of recipes I’ve tweaked over the years....

January 1, 2023 · 4 min · LPains
Developer on top of clock

Ephemeral environments with GitHub Codespaces

Back in August 2022, I posted about Ephemeral environments and compared GitPod and Replit. While Codespaces was first made GA in August 2021, making it fairly mature then, there were no free plans yet so I didn’t spend any time in it. Fast forward to November 2022, and GitHub has released free offerings for Codespaces. As of writing, a free GitHub account can use up to 60 hours for free. It is time to revisit Ephemeral Environments and play with GitHub Codespaces....

December 2, 2022 · 3 min · LPains
Photo by Pixabay

How to copy certificates between Azure Key Vaults

I recently had to copy a few certificates between Azure key vaults. These certificates were issued in one key vault but given access restrictions, they were consumed from another key vault. Note 1: copying certificates between key vaults is generally a bad idea as the copied certificate will not follow any automatic renewal setup for the original. The powershell script below was imported mostly from this StackOverflow answer. The primary change done was to use the X509Certificate2 class constructor instead of the Import method which is not recommended....

November 23, 2022 · 1 min · LPains