Recent posts

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

A new look using the Droid Sans font

If my blog looks slightly different today, that’s because I’ve changed the main font to Google’s Droid Sans. The font has actually been there all the time as part of the theme I’m using; it’s just never gotten a chance to show itself due to a funny bug in BlogEngine.NET. Sounds weird? Well… here’s what happened:  read full post

A class for working with base-n numbers in C#

When talking about numbers, the base (also called the radix) represents the number of unique symbols that a particular number system uses. Everyone knows of at least one base: base-10, which is used by the decimal system. Other well known bases are base-2 (binary) and base-16 (hexadecimal).  read full post

Project Euler: Problem 12

Here’s the next Euler problem:  read full post

Bug: Firefox refuses to load linkedin.png

A few days ago, I’ve changed the default bartwolff.com homepage from a redirect to my blog to a very basic business card type deal. It seemed nicer. Anyway, that’s not the point. The point is that while developing this simple little webpage, I’ve encountered a strange bug in Firefox: it simply would not load an image when that image is called linkedin.png.  read full post