Recently I had to convert ISO-8859-1 data to UTF-8. The quick and easy way to do this is to use iconv from the command line. Unfortunately this had to be done from within a Visual C++/MFC application on Windows (so Cygwin wasn’t really an option). Fortunately, I found libiconv-win32. I installed the source and built [...]
An Interview Question
Here’s some code stolen from The Daily WTF: ushort GetAsciiValue (uchar ch) { ushort i; for (i=0; i<=255; i++) { if(ch == i) return i; } return 0; } It might be interesting to show this code to a candidate for a C/C++ position. Ask him/her if there is anything wrong with this code, and [...]
Matrix Template Library
While rewriting some data analysis software I developed many years ago (the original was written in K & R C, the new version will be written in C++), I stumbled upon The Matrix Template Library (MTL). MTL is a library that provides comprehensive linear algebra functionality for a wide variety of matrix formats. I was [...]
Two Free Computer Algebra Systems
A few months ago I was looking for a free computer algebra system (CAS). For some reason (probably I wasn’t really looking hard enough), I didn’t find anything that the bill. Yesterday, while updating Cygwin on my Windows box at work, I saw a link to something called Mathomatic. I turns out that Mathomatic is [...]