What is integer division? In integer division, the remainder is discarded. For example, while "normal," or floating-point division of 1 / 4 results in 0.25, integer division of that same expression results in zero. Likewise, 26 / 5 will result in 5 in integer division, but 5.2 in floating-point division. What are the rules of integer division... In C#? In C#, the operator will result in an…
Keep Reading →
Rolling back the database is very easy, much easier than I'd feared when I originally realized I needed to do this. To help out you and my future self, here's how: Simply add the full name of the migration you want to roll back to after "update" in your database update script, which (if you're using the command line) will end up looking like this: The project I'm working with had multiple…
Keep Reading →
Last weekend, I played around with putting ends on some network cables, in preparation for fixing one in my house (which runs through the walls, so I'll only have a few chances to get that one right before I run out of cable). I used a kit with a specialized tool, though most, if not all, of the steps can be completed with common household tools; the only specialized tool necessary is a crimping…
Keep Reading →
Rather than using a JavaScript framework like Angular or React to write the UI portion of the code, programmers can use Blazor to write the client-side code in C#. How it works Blazor runs on top of WebAssembly, which is a low-level language designed to allow languages like C# to be run alongside JavaScript on the web without requiring a plugin. Essentially, the .NET DLLs making up your…
Keep Reading →
I recently read a blog post from Julie Lerman on how to do this, and I wanted to share the process that worked for me. For this article, I'll assume that you already have a Stream Deck set up on your computer. Download 12Noon Display Changer Your first step is to download 12Noon Display Changer, a command line program whih allows you to change your monitor's resolution from the command line. To do…
Keep Reading →
I'm currently working on a project to add a checkout interface to a web app, but due to some quirks of the payment provider we are using, there need to be two checkout pages: one for a monthly subscription, and one for an annual subscription. Since the only real difference between these two is the name and price of the plan at the top of the page and the information being passed to the payment…
Keep Reading →
Another year is behind us, and what a year 2020 was! If you're anything like me, the pandemic dominated your life this year. Blog If not for the pandemic, I never would have started this blog, so that's one silver lining for me out of that situation. My first post ever, Setting up a work Gmail, was published on June 1st, 2020. In 2020, I published a total of 94 blog posts, at a (completely…
Keep Reading →
Some pretty common examples of this include a "Bio" component in a blog starter or perhaps a theme color you'd like to customize. To implement shadowing, you'll first need to locate the file you need to override. This file will be located in the node-modules folder, which is added when you install Gatsby. The file will generally be located in a subfolder of the node-modules named for the theme you…
Keep Reading →
So what is a GUID? Well, it's a 128-bit number generated in such a way as to make the probability of duplication negligible. Typically, this number is represented by 32 hexadecimal digits. The method of generation can vary depending on the situation. Common methods include random generation and time-based generation. GUIDs can be assigned to objects in your code in order to establish object…
Keep Reading →
If you've used JMeter or read my blog post about it, you know that it's a powerful tool. You also know that it can be a pain to input every little request, especially if you're trying to test something more interactive or requiring tokens, like a login, for example. This is where recording your tests can be extremely helpful. JMeter has its own built-in recording capability, but from what I've…
Keep Reading →