Monthly Archives: June 2008


As a computer scientist, I’ve recently been fascinated by EVE Online. It is what I’ve always wanted an MMO to be. EVE Online is an open-ended Massively Multiplayer Online Game (MMOG). Most other MMORPGs focus on a structured playing style with predictable outcomes and monotonous leveling. This seemingly innocent fact is why EVE is so […]

Changing a SAS Dataset’s Encoding

In SAS9, every dataset should have an “encoding” property that specifies the charset of the bytes in its character variables. You can manually set this without having SAS try to transcode it into a new encoding by using a proc datasets modify. data work.src(encoding=’any’); length s $20; s = ‘6E756C6C’x; output; s = ‘C3B1C3BC6C6C’x; output; […]

Turning HTTP Chunking off with PHP

When I set the Content-Length HTTP header, the response from the server does not include any HTTP chunking. This may be useful. I am using PHP/4.4.7.

Content-type for XML files

When reporting the Content-Type of an XML document (such as in the HTTP response headers) use “application/xml”, rather than “text/xml”. The reason for this is because the first line of your XML document should tell the client what the encoding of the document is anyway. <?xml version=”1.0″ encoding=”charset”?> If you were to use text/xml, you’d […]