Wouldn’t it be nice to be able to save nice clean HTML from Microsoft Word? Here’s a way that is only slightly convoluted.
I’ve been doing some work with Linux lately, a new thing for me, and feel a bit like I’ve been thrown into the deep end and told to swim. Today I updated Python to version 2.7 on an EC2 instance.
I’ve always considered batch files as kind of ghetto. Anything too complex devolves into a morass of gotos and labels. But I recently put together some install batch scripts that I was actually pleased with, including a clean mechanism for sharing common code.
I think Visual Studio’s static analysis warning for checking parameters for null before they are used is generally a good idea, but the code to check the parameters can get really tedious.
My son turns 14 this month, but we still have bedtime stories. Currently, the bedtime story is Simon Singh’s The Code Book. While reading the description of the Vigenére cipher, I started to think about how I’d code up an implementation, and that led to my first webOS application. Cipher Suite is a small collection of classic ciphers, and is currently in the Palm beta feed. Hopefully a few people will give it a try and let me know if it sets their phone on fire or drowns some kittens or anything. Having gotten it that far, I thought I’d share a little bit about how the app was developed.
Easy control transparency isn’t exactly a hallmark of Windows Forms. If you have a form with a background image or a gradient, the stock controls paint with a solid background to give a criminally egregious aesthetic.
There are lots of examples that demonstrate how to draw a rectangle with rounded corners using GDI+ in .NET. Converting such a rectangle to a Region so that it can be filled or be used for the geometry of a window can have less than perfect results, though.
The official Silverlight documentation about localization gives lots of information about working with resource files, but it is kind of scant on how to actually get localized strings to show up in the UI in a reasonable way. For example, an unreasonable way would be to set the text/content properties of all the controls in a page’s code-behind file. A reasonable way is to use data binding.
As I mentioned the other day, I’m reading Jeffrey Richter’s book CLR via C# right now. I was kind of surprised to read this statement by the author: “If I had been involved in the design of the .NET Framework and compilers, I would not have offered properties at all…” (p. 218) Continue reading