Feb/100
How to define a jQuery autocompleter callback function
I have spent a lot of time on creating a working callback function for the jQuery autocomplete plugin (http://docs.jquery.com/Plugins/Autocomplete).
Here is a working example:
Sep/090
The strange behaviour of php function basename()
On my local Windows machine with PHP5 the value of basename(’названиe.php’) is “названиe”, where “названиe” is any cyrillic string.
However, on my remote Unix server the same function with the same argument returns null.
Not only could I find no explanation – there isn’t even any mention of it anywhere on the Internet.
Sep/090
XML selectNodes() ordered
Here is a helper function to select nodes from an XML document order by certain child node value of these nodes.
If selectNodes() is a pendant of MySQL SELECT command, this helper function would be a pendant of SELECT… ORDER BY…
As far I know there is no standart XML or XPath function to perform it.
Written in [...]
Jul/090
SQL Select query with a predefined last entry
The task was to create a SELECT query on a table with titles grouped alphabetically by name, but a certain name must (if found) always stay at the end.
This is like the selecting of categories on ebay.com where the categories are arranged by name but the category “Other” must have the last place.
The solution [...]
