Labels

css (1) jQuery (7) linux (38) mac (70) php (29) python (1) svn/git (9) trac (4) ubuntu (1) virtualbox (6) vista (2) windows (14)

Monday, 26 July 2010

Avahi publish multiple domains on one host

If you want to publish multiple domains on one host avahi doesn't have a built in mechanism however there is a python script that will do what you need.

http://www.avahi.org/wiki/Examples/PythonPublishAlias

Friday, 23 July 2010

Highlight table column


For a site I've been requested to highlight a table column when it's selected. To do this use the following CSS (note this is CSS3 so won't work in older browsers).

Note the 1 inside nth-child is the column number in this case the first one

table tr td:nth-child(1)
{
background-color:#CCC;
}

Thursday, 15 July 2010

Komodo Edit about:config

Komodo edit is based on mozilla hence has an about:config file, to access it open a file, press ctrl-k then ctrl-v and type about:config in the box.

Sunday, 11 July 2010

XML Entities

When using DOMDocument in PHP with HTML entities you must use the unicode format, i.e. instead of £ use £ XHTML only supports the entities < > and &

Friday, 2 July 2010

CSS border-radius and border-collapse

The border-raidus (tested in safari 5 and ff 3.6) doesn't work in a table's border-collapse has been set to "collapse"