A HTTP file server in 130 lines of code

17 Apr 2010 …of which 20 deal with mapping file extensions to MIME types. For an integration test I want to be able to set up an HTTP server that serves files from a directory. While I was at it I ensured that a proper directory listing and links are provided by the...

Some PowerShell Foo...playin' with da Task Scheduler

23 Mar 2010 When adopting something new it can take quite a while until you really get into it. PowerShell is such a thing. When it came out I played around with it, not more. Now, with us having to provide some maintenance tools for our last project and me working on connecting...

rfb: Getting several values out of a PowerShell script

19 Mar 2010 The whole “MSBuild without XML“ started with the FubuMVC project using ruby for building. It quickly became apparent that one major omission of MSBuild is the lack of ability of adding “ad-hoc” code to it. Which is why MSBuild was married to PowerShell. gittag = `git describe --long`.chomp gitnumberpart =...

rfb: Marrying MSBuild and PowerShell

14 Mar 2010 I have previously written about rfb, MsBuild without XML. It took me longer than expected to support this script, but it’s available in the current source now: Project "Default" Target "Default" @files <= smallPNGs -Capture:FullName, Extension Message "%(files.Identity) and extension %(files.Extension)" PS:smallPNGs <<END echo "Returning small pngs" cd C:\users\xyz\Documents Get-ChildItem...

Das neue Ministerkabinett

10 Mar 2010 Verehrte Damen, geschätzte Herren, nach nunmehr 132 Tagen Trauerspiel lässt sich feststellen: Unsere deutsche Regierung ist unfähig zu regieren. Sie ist noch nicht einmal in der Lage, sich untereinander einig zu werden. Nicht nur das, sie treiben uns auch noch Schmerzens- und Trauertränen in unsere schon nahezu ausgetrockneten Sehorgane. Da...