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… Read More »

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… Read More »

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… Read More »

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… Read More »

Locating config file from .dll in both Desktop and Web applications

I’m using Nini for most my config needs. Nini is a .Net library for reading/writing/merging all kinds of config files. It provides a good API with type conversion, default values, etc. To be able to access both app.config and web.config using Nini in .dll files included in test projects, desktop applications, services, web applications, webservices,… Read More »

Unsafe kernel32-mapped memory Bitmap WPF

Okay, its vacation time so I thought I’d take time from vacation (and from reading news about the terror attacks in Oslo that happened a few miles from here) to do a little post. This time is an unsafe kernel32 memory mapped bitmap image I’m constantly improving upon. I do a lot of DSP-related stuff… Read More »

ArrayBuilderQueue

… is that the right name? It basically works like a combination of the StringBuilder and Queue objects. You enqueue arrays of T, and you dequeue custom sized chunks of the array. What makes it nice is that I’ve optimized memory usage so it never creates any temp arrays internally except the one returned to… Read More »