Comfortably using scripts in PowerShell
Over the years, I’ve found myself writing many small programs to help with my work. Most of these are in either C# or Python, depending on the task at hand. Because Windows doesn’t natively support shebangs …
Notes on software, systems, mathematics, and getting things done.
Over the years, I’ve found myself writing many small programs to help with my work. Most of these are in either C# or Python, depending on the task at hand. Because Windows doesn’t natively support shebangs …
The problem Imagine there’s some number of servers $N$ in a fully-connected P2P network. These servers can copy files from each other. In this imaginary system, we have a single machine that every $\delta$ minutes …
Introduction I’ve been meaning to get started on a series talking about the kind of bugs we find in production on the CloudBuild Cache. For a little bit of context, our team runs over 40k machines across the US, …
Trying to use emacs natively on Windows is honestly extremely bothersome, even if you use distributions that try to make it easy, like spacemacs. In my experience, running from MSYS2 “works”, but some random …
A lot has changed in the last couple of years for me. I did my first internship at Microsoft in 2016, which led to two more internships at Microsoft and one at Google. After that, roughly in mid 2018, I received my full …
Introduction Following up with my last post on NCH being roto-translation invariant, the idea of this one is to cover what I consider the most important gaps left by the original brief paper. My expectation is that …
Introduction I have recently started my thesis on 3D surface reconstruction. One way to do so is to define a surface as the zero level set of a function $f : \mathbb{R}^3 \to \mathbb{R}$, and then find some way to build …
A long time ago, I was in touch with a production system whose purpose was to run a piece of data through a decision tree. At every step, the output could be Good, Bad, Move Left, or Move Right; there were no leaves, …
Introduction It is often said that this code: unsigned int randomNumber = rand() % k; is a bad idea, at least if you are expecting a uniform distribution. I’m going to try and explore this topic in a more formal …
A classical result from Graph theory is that given \(G\) an undirected graph: Where \(\chi(G)\) is the minimum number of colors required to paint the nodes of \(G\) with the usual restriction that no node has the same …
I have been studying for my finals lately, and so I decided to put together a proof of a nice exercise I found in some book. The trace function, given by \(tr : \mathbb{K}^{n \times n} \to \mathbb{K}\), is defined as …