perl: XML::LibXML::XPathContext – registerNs

https://metacpan.org/module/XML::LibXML::XPathContext If your XML has a namespace without prefix (xmlns=”…” instead of xmlns:aaa=”…”, where ‘aaa’ would be called the prefix), you still have to provide registerNs with a proper prefix and use that prefix from then on; no undef or zero-length string allowed as prefix. Learning this lesson cost me some sleep last night.

syndication feeds for blogs on Blogger.com take CGI parameters

You can find the URL-s of the Atom and the RSS feeds for such a blog in its HTML: /html/head/link[@rel=”alternate” and @type=”application/atom+xml”]/html/head/link[@rel=”alternate” and @type=”application/rss+xml”] Within the XML of an Atom feed you can find a node like this: /feed/link[@rel=”next”]   /feed/link[@rel=”next” and type=”application/atom+xml”]  Found 1 nodes: — NODE — The href attribute looks rather interesting, it uses these… Continue reading syndication feeds for blogs on Blogger.com take CGI parameters

O’Reilly Media book: MySQL Troubleshooting

MySQL Troubleshooting: Sometimes applications can go mad: tables contain wrong data, users get random replies, server stop working, and so on. Several easy methods allow users to often find the problems quickly. This book, based on successful conference presentations by the author, cover SQL problems, memory and other server problems, replication, and problems related to… Continue reading O’Reilly Media book: MySQL Troubleshooting