Nutrition Label

Sharp Cooking now displays nutrition labels

Sharp Cooking has reached its fourth anniversary! To mark this significant milestone, we’re thrilled to introduce a highly anticipated feature: Nutrition Labels. Now, not only can you input nutrition values manually, but recipes imported from websites supporting nutrition values will also display them in the recipe view. To generate these labels, we first need to gather the nutritional data for each recipe. Fortunately, many websites offer this information, and recipe-scrapers, the python package utilized by Sharp Cooking to extract recipes from the web, already supports it too....

March 26, 2024 · 2 min · LPains
Stopwatch

How to benchmark javascript coding options

There are multiple ways to accomplish the same task in any programming language. Sometimes, it can be challenging to determine the most efficient approach, especially when you’ve performed the task countless times. This is where benchmarking comes in handy. Benchmarking involves comparing different implementations of the same functionality to determine the most efficient one. In this post, I will demonstrate how to benchmark JavaScript code using several popular online tools....

January 27, 2024 · 2 min · LPains
JavaScript code

Converting sharp-recipe-parser from typescript to javascript + jsdoc

Introduction I should start by saying that I am a big proponent of TypeScript. I have been using it since version 1.5 back in 2015. Coming from a backend background with typed languages, not having types in JavaScript was an interesting experience for me. As a developer, the two aspects of typed languages that help me the most are intellisense and the compiler. Intellisense helps me write code faster, and the compiler helps me catch errors before runtime....

January 1, 2024 · 6 min · LPains
azdiff

Introducing azdiff: Simplifying Azure Environment Comparison

In the realm of cloud infrastructure, Azure offers a robust framework for managing resources through Infrastructure as Code (IaC) methodologies. However, even with the best IaC practices in place, managing and understanding changes across Azure app environments can be a daunting task. This is where the azdiff tool steps in to simplify the comparison process. azdiff is a dotnet global tool, thus, you will need .NET 8 or higher installed. To install azdiff, run the following command:...

December 10, 2023 · 2 min · LPains
Encrypted

Renewing an Azure Key Vault certificate with same key

Renewing certificates in Azure Key Vault, especially when using providers like Go Daddy that offer only .pem or .crt files, might seem complex. However, with the right steps, it becomes straightforward. Below, I’ll guide you through the process assuming you have a new certificate and CA certificate as .crt files and access to the current certificate as a .pfx in Azure Key Vault. Before you begin, ensure you have Azure CLI and OpenSSL installed....

November 28, 2023 · 2 min · LPains