Recent posts
Writing a decimal number as a fraction
The decimal number 2.5 can also be written as the fraction 5 / 2. 19.2 becomes 96 / 5. 0.24 becomes 6 / 25. Etcetera. So how can you do this programmatically? Well, it turns out a naive solution can be obtained pretty quickly. read full post
Project Euler: Problem 15
The next Euler problem is here: read full post
Project Euler: Problem 14
Here’s problem 14 of Project Euler: read full post
Project Euler: Problem 13
It’s been over a month since I did any Euler problems, so I’ll be posting some of those the coming week. Here’s problem 13: read full post
Running with elevated privileges from C#
Sometimes, for some reason, you may require your C# program to run with elevated (Administrator) privileges, or you may need to run some other program with elevated privileges. So how do you do it? Well, there are multiple ways. Here, I will focus on elevating privileges from code. There is also the possibility of starting your app with elevated privileges by configuring the application manifest, but I won’t go into that now. read full post
Enabling HTTPS support on bartwolff.com
This website, bartwolff.com, is served by Sloeber, a less than impressive “server” located in my house which actually does an excellent job with the virtually non-existent traffic I get. There are two reasons why I host my site this way: because I like having full control over my server and because decent ASP.NET hosting is a pain to get around here. read full post
Console2 does command prompt right on Windows
I’m not a huge fan of the command prompt style of working on a PC. It just feels clumsy and unintuitive. That said, I have been warming up to PowerShell recently. This post is not about that, though. It’s about Console2. read full post