How I hunt down (and fix) errors in production My approach to finding and fixing bugs with an example
Coding Shorts: Speeding Up the Editor in Visual Studio 2022 Visual Studio 2022 is frustrating me. Not only does debugging sometimes take way too long, but, for me, the real problem is that the editor is trying to do too much to help me. I just want to be able to type code.
n+7 writing — Brady Haran In the latest Numberphile video , Marcus du Sautoy introduced me to the notion of n+7 writing/poetry. Take an existing text, and replace the nouns with words seven places advanced in the dictionary . I decided to apply this treatment to the most fam...
Implementing a ZK-focused authenticated-encryption scheme In the last few years, several practitioners have proposed zk-focused cryptographic constructions such as hashing and encryption primitives that operate on binary and prime fields and that have a l…
Sync time in MicroPython using NTP What if we want to blink an LED to remind us on the day of a friend's birthday? Or what if we want a lamp to automatically turn on, like an alarm, every morning? Learn how to sync your ESP32 with network time!
The Pareto PM - Jon Douglas As I reflect upon the last 5 years, one of the biggest themes that sticks out is whether a PM is thinking in outputs or outcomes.An early in career PM may be thinking purely in outputs. How many features can we build? How many bugs can we fix in this rele...
Setup mypy for fun and profit Have you ever written Python code and had to dig deep into callstacks to understand what the return type of a function is? I know I did and unfortunately, it makes me slower overall because I always have to dig through the callstack to understand what I’m...
making friends on the internet There are almost eight billion of us on this planet, ten thousand likely very similar to yourself. The Internet is a typical person’s best hope for finding and connecting with them. Mount Sanitas Summit west, Boulder, CO I enjoy life in large part thanks...
Simple declarative schema migration for SQLite At my company we use a small SQLite database. We define the schema in a single file with SQL CREATE TABLE statements. If we add tables, columns, or indexes, our application will create them automatically the next time it starts up.
How (and why) to do Side-Projects With A Full-Time Job Today, I wanted to share my opinion on why engineers (& managers) should have side-projects, and the best way to keep some forward momentum on them.
Porting Zelda Classic to the Web I ported Zelda Classic (a game engine based on the original Zelda) to the web. You can play it here–grab a gamepad if you have one!
Your computer has two clocks You cannot realise that, but your computer has a battery inside it only to get your computer clock running. Back in the 90s, when the rechargeable (lithium-ion) battery was not cheap, we used to disassemble our computers to replace their clock battery whe...
BinaryData Class (System) A lightweight abstraction for a payload of bytes that supports converting between string, stream, JSON, and bytes.
What's two-adicity? Some elliptic curves (related to zero-knowledge proofs I believe) have been claiming high 2-adicity. But for some reason, it seems a bit hard to find a definition of what this term means. And oddly, it's not a complicated thing to explain. So here's a sho...
[Video] Quick shout-out to DevToys Wanted to very briefly share a tool I’ve come across a couple of months ago: DevToys.
Considered “18+” | daniel.haxx.se Vodafone UK has taken it on themselves to make the world better by marking this website (daniel.haxx.se) “adult content”. I suppose in order to protect the children.
Entity Framework Core for Beginners Entity Framework Core is a modern object-database mapper for .NET. It simplifies working with various databases (including Azure Cosmos DB, MySQL, PostgreSQL, SQL Server, and SQLite) using strongly-typed .NET objects and support for LINQ. This intro video...
Reviving httpstatuses After learning what happened to the site, I revived httpstatuses on a new domain.
The Demise of the Mildly Dynamic Website Early websites. In the beginning, website HTML was crafted by hand. Your average personal — or corporate — website might consist of hand-edited HTML subsequently uploaded, probably via FTP, to a web server which knew only how to serve static files.
When I Made Another Monkey Island Ron Gilbert's often incoherent and bitter ramblings about the Game Industry
Wildcard proxy for everyone Today we’re announcing the availability of proxied wildcard DNS records on all plan levels
Generating sortable Guids using NewId In this post I discuss the pros-and-cons of using integer vs Guids for IDs, and introduce NewId as an alternative to Guid with some nice properties
From idea to publishing, and beyond: how I automated my blogging workflow with GitHub, PowerShell and Azure - Code4IT After 100 articles, I've found some neat ways to automate my blogging workflow. I will share my experience and the tools I use from the very beginning to the very end.
Blazor Workshop | NDC London 2022 Blazor is arguably the hottest technology in the .NET world right now, and for good reason. It brings the missing piece of the puzzle to ASP.NET—A true client-side UI framework which allows developers to author applications with C# instead of JavaScript. ...
Ensuring Integrity on PayHere Cybersecurity Incident – Payhere Blog [Notice: Cyber Crime Investigation Division (CCID) of Sri Lanka Police is currently investigating this cyber crime incident to identify the criminal & the updates on the investigation will also be amended to this blog post continuously.]
Case Study 4: The $440 Million Software Error at Knight Capital Knight Capital Group was an American global financial services firm engaging in market making, electronic execution, and institutional sal...
Techniques and tools to update your C# project - Migrating to nullable reference types - Part 4 Previously, we saw how you can help the compiler’s flow analysis understand your code, by annotating your code for nullability.
Solving Transport Tycoon 2 Episode 2.1 With F# — Trustbit This post describes how I wrote my submission to the Transport Tycoon 2 Episode 2.1 problem. The task is to find the shortest route between two stations given a dataset of connections.
OPT: Open Pre-trained Transformer Language Models Large language models, which are often trained for hundreds of thousands of compute days, have shown remarkable capabilities for zero- and few-shot learning. Given their computational cost, these models are difficult to replicate without significant capit...
Accessing AWS Secrets Manager from .NET Lambda Functions, Part 1 - The Simple Way | no dogma blog .NET Lambda functions can get secrets from AWS Secrets Manager, but you need to grant the Lambda function permission to access the secret. Read on to find out how.
.NET 6 on AWS Lambda, Quick Demos | no dogma blog Here are three very quick demos of using .NET 6 on AWS Lambda that you can have up and running in minutes.
Use the Query String to pass an array of selected values between Blazor Pages Make your Blazor app support deep linking by passing state in the Query String
Using HTTPListener to build a HTTP Server in C# I needed an HTTP server to test out a software integration on Windows. Nothing was quite basic enough to just echo out the responses, so I wrote one.
Semantic Versioning for TypeScript Types A specification for managing changes to TypeScript types, including when the TypeScript compiler makes breaking changes in its type-checking and type emit across a “minor” release.
C#: Add event handlers dynamically using reflection Recently I had a situation where I needed to test a class with dozens of event handlers. Rather than manually write the repetitive code to attach the handlers I decided to cheat and use reflection. Since there wasn’t anything immediately available online ...
Naive Bayes Classification Using C# -- Visual Studio Magazine Dr. James McCaffrey of Microsoft Research presents a full step-by-step example with all code to predict a person's optimism score from their occupation, eye color and country.
Alexandre Nédélec - Why will I choose Pulumi over Terraform for my next project? In today's world of cloud-first applications, multi-cloud/hybrid cloud companies, and complex infrastructures, using infrastructure as code is essential. In recent years, Terraform has become one of the most popular IaC solutions, but its challenger Pulum...
Case Study: Double performance in under 30 minutes Summary Recently I was converting some decompression code to C# so that we could use it cross platform and to aid in our team’s effort to migrate our new analysis process to .NET 6. After I got the initial implementation done with the simplest,