Articles I recently found useful or interesting #0003

Articles I recently found useful or interesting #0003

HttpRequest.Item[String] Property

In .NET Framework 4.8 this convenient property combines the QueryString, Form, Cookies and ServerVariables collections. It is not available in .NET 6. Inconvenient when trying to quickly try something out, but perhaps isn’t a good idea to have several rather distinct collections combined into one easy indexer.

How to enable azure function https easily when do local test

It’s a bit more involved than just using the --useHttps option.

The Azure Function Core Tools reference states that by default, the –useHttps option creates a trusted certificate, but it doesn’t. Instead the command outputs Auto cert generation is currently not working on the .NET Core build. It does also output steps to create your own certificate, but perhaps the Stack Overflow answer explains it a bit more clearly.

Warn on malformed local.settings.json

This turned out to not actually by relevant to the problem I was having with Azure Functions Core Tools (my problem went away after a re-install), but it is interesting to know that it will silently ignore a malformed local.settings.json file.

Agile Q&A: What is a Self-Organizing, Cross-Functional Team?

The principles behind the Agile Manifesto state

The best architectures, requirements, and designs emerge from self-organizing teams

But it leaves it up to the reader to decide what self-organizing teams actually means.

Recently at my work there has been some discussion about whether teams should be fixed or flexible. The quote from the principles was used as an argument for allowing more movement between teams. Others might argue that Tuckman’s stages of group development imply that too frequent restructuring of teams makes it hard to achieve the cohesion and coorperation necessary for a self-organizing team.

How to cook wholegrain basmati rice

Instructions from Tilda on how to cook their brand of wholegrain basmati rice. Other brands and varieties of rice are available.

Google Chrome redirecting localhost to https

This problem with Google Chrome has been annoying me for a long time. Rather than keep trying to fix it I just use Mozilla Firefox instead.

Gracefully stopping in Powershell

A finally block will always be called when script is aborted using CTRL+C.

How to create a dependency – Azure DevOps

It is a small thing, but it was not immediately obvious to me what the link types Predecessor and Successor mean on an Azure DevOps work item.

I initially thought it was for work items that supersede (as in replace) other work items. Turns out it was actually for the thing I was looking for, that is: “A is a predecessor of B” means “A is a dependency of B”, and “A is a successor of B” means “A depends on B”.

After thinking on it some more, I think predecessor and successor are clearer than depends and dependency, which can more easily be confused.

git-bisect

The other day we had to track down a bug in some code that was introduced some time in the last 6 months. As it happened, it was obvious which commit had introduced the bug, but it reminded me of the useful git bisect command.

Markdown Editor (64-bit)

Not an article but a useful extension for Visual Studio. I prefer using Visual Studio Code for editing markdown, but sometimes I don’t want to have to drop out of Visual Studio just to edit a few lines.

Cannot overwrite Published Artifact from azure devops yaml pipline

This not-a-bug bit me a few days ago. Tried to re-run a failed job which then failed elsewhere due to the pipeline artifact. So either one can never re-run failed jobs, or has to figure out how to set a unique name on retry.

Troubleshoot query performance difference between database application and SSMS

This seems like something I probably should already have known, but I recently found out that applications calling SQL Server have different default settings to SQL Server Management Studio (SSMS). Most relevantly, SSMS has ARITHABORT set to ON by default, but most client applications have it set to OFF. SSMS and the application may be using different execution plans. A query might perform well in SSMS but perform badly in the application.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.