Archive for June, 2007

Counterize II - missing backticks in install file (fix)

If you want to install V2.09 of Counterize II , you may get sql-errors when the plugin gets activated in the backend of Wordpress.
This is caused by missing backticks ( ` ) in the file counterize_install.php. Take a close look at the sql-INSERT statements. The erroneous line numbers are:

80
87
94

Add the missing backticks at the end of […]


svndiff / deltav algorithm

The article at http://svn.collab.net/repos/svn/trunk/notes/svndiff explains how the svndiff algorithm works. This post tries to give a more concrete idea of what happens, refering to the example that can be found at the end of the above linked article.

SVN delivers the text deltas base64 encoded, so you first have to decode the string to work with it. Next step ist to check the string for it’s first four bytes, which must represent the following four characters: ‘S’, ‘V’, ‘N’, followed by the byte that indicates the format’s version number (for example, the SVN servers over at tigris.org use still Version 0, so the last byte would represent a 0 in this case)…


introducing cudgets.widget.ListSelectionModel

A ListSelectionModel represents an interval of selections. A selection itself has two properties: index and selected. The index  is a numeric value that points to a position in the interval and selected provides  information about the state of the index in the selection-interval: true for selected,  otherwise false.
Speaking of GUI, ListSelectionModels are needed when a […]