I don’t know what got into the head of the designers of XML, that CDATA escape sections have their own escaping syntax. Lshift has a low down on the details: Escaping XML and CDATA. Good to know that xml.dom.minidom gets this right.
Archives for the Month of October, 2007
VB6 Line Numbering Utility
Wednesday, 24 October 2007
Someone asked me for the old VB6 line numbering utility that I had written, and I had put it up here. Apparently there are some free ones around but they clobber the version compatibility.
VB6 Line Numbering Utility
F# to be productized
Sunday, 21 October 2007
(Via Secret Geek)
Now, I don’t really know what this means. Does it mean that MS is going to guarantee some kind of backwards compatibility and offer official stable/supported releases?
Somasegar offers scant details on the productization of F# itself, but indicates
We will be partnering with Don Syme and others in Microsoft Research to fully [...]
Code Folding That Works
Saturday, 20 October 2007
A user comments on VIM simplefold (a folding plugin that works better than the vim defaults):
First code folding that is worth the bother
I’ve just tried it and I have nothing more to add. It works well, and I look forward to using it as one of my default tools.
PageRank, Citations and how big pharma has blackhatted the drug industry
Tuesday, 16 October 2007
I’m sorry, I don’t have much time, but here are some quick notes. Source: Lessig’s lecture on corruption.
http://lessig.org/blog/2007/10/corruption_lecture_alpha_versi.html
Google’s seminal idea of pagerank follows directly from the model of scientific journals cross referencing and citing one another for authority. It didn’t take long for spammers to recognize that an easy way to game the system is [...]
Python, XmlrpcLib, ExpatParser and Encodings
Thursday, 4 October 2007
I had to deal with an XMLRPC server that returned data in ‘iso-8859-1′ encoded, but didn’t have the encoding wired into the XML declaration. After some digging around, this hardcoded changes fixed the problem.
class ExpatParser:
# fast expat parser for Python 2.0 and later. [...]