Archive for the ‘Uncategorized’ Category
mysql statistics
Saturday, January 27th, 2007Found an useful command: “SHOW STATUS” or, depending on the mysql version, “SHOW GLOBAL STATUS“. Of some interest also “SHOW VARIABLES” (or, correspondingly, “SHOW GLOBAL VARIABLES“).
the essence of functional programming
Wednesday, January 24th, 2007I’ve transcripted the code examples from the paper “The essence of functional programming” by Philip Wadler.
Learning Haskell
Wednesday, January 17th, 2007The main problem of learning Haskell is the very beginning, the first step: to write a working program, which
* as small as possible, and
* more than just print “Hello, World!”
(more…)
Lexmark isn’t printing
Tuesday, January 16th, 2007After returning from holidays, I found that printer doesn’t print anymore. After some investigation, I found that dmesg contains:
usb 2-1: new full speed USB device using uhci_hcd and address 7 usb 2-1: device not accepting address 7, error -71 usb 2-1: new full speed USB device using uhci_hcd and address 8 usb 2-1: device descriptor read/64, error -71
Saint-Peterburg. No bears, just beauties
Wednesday, December 27th, 2006xslt 1.0 code isn’t reusable
Wednesday, December 13th, 2006I’m building an XML site. One of the common tasks is to get a book by isbn. I needed 4(!) attempts to get it working!
terminology
Saturday, December 9th, 2006Word to HTML
Friday, November 24th, 2006Consodoc is released!
Wednesday, November 8th, 2006Google Co-op and windows-1251
Friday, November 3rd, 2006Google Co-op is a service that allows to create custom search engines. At the moment, it officially supports only English, but it seems other languages work as well.
messy Perl code
Tuesday, October 17th, 2006I download my mail using fetchmail. During the process, “tail -f” shows the subjects of the incoming letters. Unfortunately, most of them are unreadable, something like “=?windows-1251?B?0e/g7CDt4CBwaHBCQg==?=“. Finally, I tired of it and decided to make life better.
use “perl -w”!
Saturday, October 14th, 2006I thought “use strict” is enough and didn’t try to run an application with the “-w” flag. (Don’t blame me, it was under Windows.) As result, I played ping-pong with an user trying to identify an error instead of preventing the error.
joining entities
Wednesday, October 11th, 2006XML tools are good when the input data is XML. And they are awful when the data is XML-like. As result, instead of using “xmllint –noent“, I had to write my own entity substitutor “entity.py”.
XString: XML as String
Sunday, October 8th, 2006In xml-dev mailing list, William Gilreath posted an preview announce of XString, an XML technology “XML as a String”. I found time to look at the paper and write comments.
RentACoder conditions
Thursday, September 28th, 2006A copy of RentACoder terms of work between the buyer and the coder.
printing batch of source code
Sunday, September 17th, 2006I want to analyze an open source application by reading its source code. I don’t like reading from the screen. Instead, I’d like to print the code and read offline.
recursive sync of only html files
Sunday, September 17th, 2006I’ve figured out how to combine include/exclude options of rsync to upload only HTML files:
rsync -n -a -v --exclude '.svn/' --include '*/' \
--include '*.html' --exclude '*' src_path dest_path
scons bug
Wednesday, September 13th, 2006After the libxml/libxslt bug session, now it’s time of SCons: dots in file name, then suffix rules failure.
libxml/libxslt bug session
Monday, September 11th, 2006When I use programs, I get errors. This time I used xmllint and xsltproc. New bugs:
* text copy failed with XInclude
* XInclude rangeto() loses nodes
Fixed from the time of the last bug submit session:
* indent=”yes” doesn’t indent
* namespace collision with xsl:element and xsl:attribute
* namespaced parameters become unregistered
* namespace collision with namespace-alias
Not fixed:
* nodeset sort fails on a namespace node
* LIBXSLT_PLUGINS_PATH doesn’t support separation by “:”