Tag: Code
-
Historical Timezones and Computing
Many moons ago, my colleague B and I worked on and supported a patient registration form management system for a health-care group. There was one tech-support case that had us stumped. An older gent in his 70s was admitted on his birthday, and his calculated age was off by one. We were stumped. Until I…
-
Npgsql 8.0, Entity Framework Core and JSON POCOs
Npgsql 8.0 introduced NativeAOT and trimming support (hooray!), which necessitated explicit opt-ins to some dynamic coding practices that are incompatible with NativeAOT/trimming. One of these is JSON POCO mapping which I use quite heavily in some of my projects (boo! hiss!) As mentioned, though, it is opt-in via NpgsqlDataSourceBuilder introduced in Npgsql 7.0 or the…
-
Email in Castle Monorail 2.0
Castle Monorail has been my web framework of choice for some years now. I’ve been using the obsolete RenderEmailAndSend method as that was how it is done in the sample code. Monorail 2.0 uses Core 1.2 which features an integrated email sender component, and the old sample code does not work any more since Castle.Components.Common.EmailSender.Message…
-
Database Drivers not provided by Microsoft
Good post by Joseph Guadagno about database drivers not provided by Microsoft. He missed a few, though, so here they are: PostgreSQL PostgreSQL needs no introductions. Probably my favourite open source DBMS. Npgsql is de facto the ADO.NET provider. Performance and stability seems alright. PostgreSQLDirect .NET is a commercial provider, and is supposed to out-perform…
-
Classic ASP High Jinks: Windows Script 5.7
It has been a long time since I touched any classic ASP, apart from the odd quick fix to legacy projects. Anyway, I recently helped a friend out with a project and was surprised to learn that there was an update to Windows Script, from 5.6 to 5.7. Wow! 5.6 shipped with XP, so it’s…
-
SubSonic 2.0 Beta 3
Made another attempt to update the current project I am working on from SubSonic 1.0.6 to the newly released 2.0 Beta 3. The issue I had with Beta 1 is gone. Great job. As a public service, these were the things I needed to do for the update. Simple.
-
SubSonic 2.0 Beta 1
SubSonic has shipped 2.0 Beta 1. I have used SubSonic (formerly ActionPack) in a few projects now and I have been waiting for this release. Very exciting. So I downloaded the zip file, updated the DLLs, web.config, compiled successfully. Went to the home page of the web application, so far so good. Datagrid, OK. Clicked…
-
Brainfuck
Just found out about Brainfuck from Peter Schneider’s blog post about his Powershell brainfuck interpreter and compiler. Classed as an “esoteric programming language“. So subversive. And such an appropriate name. Created by Urban Müller in 1993, it has only eight commands. Wow! “Hello World!” looks like this: Needless to say, I will not be using it in…
-
Enterprise Library 3.0 Released
Most excellent. I have looked at Enterprise Library in the past, but never quite found a suitable project for it. 3.0 has just been released and the highlights (as covered by Tom Hollander) are I particularly like the Validation block and the Software Factory. I should think up a project where it makes sense to…
-
Community Server 2.1 Optimised CSS
I decided to hand optimise the default CSS that came with the CS 2.1 package, both for the mental exercise and to derive a less verbose set for me to customise any future CS projects from. The total file size is reduced from 179 KB to 140 KB, not too impressive, but I’m sharing it…