Setting up OwnCloud on Windows: Your personal Dropbox

What is this? OwnCloud is a free personal alternative to Dropbox. You run your own server so storage is limited to whatever storage your server has. It has much of the same features (and some more) that Dropbox has, and after a few days use it seems “so far so good”. About this guide This […]

Converting hex string into Color (Windows Phone)

In Windows Phone (Silverlight) there is no System.Drawing.ColorTranslator.FromHtml(“#cccccc”); or similar that can help you convert a hex string into a color object. To do this you’ll have to parse the string yourself. So is a simple method that will do so, it supports both “argb” and “rgb” with or without “#” in front of it. […]

Async callback to awaitable Task<>

The Async-Await feature in .Net is really super. At least until it comes to debugging, exception handling and race conditions. In short it cuts down on code, bugs, complexity and allows for linear programming. Traditional async programming uses callbacks (events) that adds to code complexity, it also forces an unnatural break in your code. Luckily […]

Battlefield Heroes Rcon .Net library

What is BFH? Battlefield Heroes is a free-to-play first person cartoon shooter. 8×8 players battle it out on different maps using traditional weapons and special abilities. My server http://www.battlefieldheroes.com/en/bookmark/server:0104ea2f-1c0f-42a1-b05e-e19e33a6f4ba You need to bookmark, start the game, select “Game finder”, select “Bookmarked” and locate the server to join it. Background For the past few years I […]

Apache WebDAV setup compatible with Windows

Windows supports mounting WebDAV shares as drives. WebDAV is a HTTP protocol for file access used by for example SharePoint. net use Z: http://server/webdav /PERSISTENT:yes /USER:USER PASS It does however not support basic auth by default (basic auth sends password in cleartext, which is bad). It took me some troubleshooting to figure it out so […]

Apps4Norway & GeoKulTur

I’ve had the fortune of developing not just one, but two BSD-licensed open source augmented reality-based culture exploration tools lately. My main accomplice in this adventure has been Ingrid Elisabeth Moen (friend/coworker) which is also of the species that thinks coding is fun and should be practiced whenever possible. For posterity I thought I’d write […]

Async/await HTTP server in C#

Since there has been a bit of interest for the code below I mocked together another version: Kernel.HttpServer.zip Background Ok, so there are already alternatives for web servers in C#. Some of them are very feature rich. http://cassinidev.codeplex.com/ http://webserver.codeplex.com/ http://www.codeproject.com/Articles/137979/Simple-HTTP-Server-in-C http://www.codeproject.com/Articles/1505/Create-your-own-Web-Server-using-C http://kayakhttp.com/ http://mikehadlow.blogspot.no/2006/07/playing-with-httpsys.html http://ultidev.com/products/cassini/ http://lmgtfy.com/?q=c%23+webserver But I wanted to play around with TPL and async/await a […]

Internal time perception (aging)

It is a well known fact that as you grow older time seems to pass by more quickly. You may have memories from when you were younger and days seemed very long and holidays seemed to last forever. As you grow older time fly by and you barely have time to get home from work […]

.Net Dictionary<> speed and memory

I love writing and optimizing stuff that puts strain on memory and CPU. Lately I’ve been wondering how well the .Net Dictionary object performs, and after looking at the source code for it, Googling and SO’ing I thought it would be good to complete the project with some real-world data that could be shared. So […]

Nordic Domain Hosting AB is pure fraud (svindel)

A few months ago I got a phone call from a Swedish company claiming to be a domain registry named “Nordisk domenhandtering” (as it turned out later “Nordic Domain Hosting AB”). They said someone was trying to register my (Norwegian) company name as .eu and .se domains, and offered me to “protect” my name by […]