Clock

Life

Prettify

A Javascript module and CSS file that allows syntax highlighting of source code snippets in an html page: prettify

Picture of the day

National Geographic picture of the day

National geographic picture of the day

IE Conditional comments in XSLT

Conditional comments are a useful way to avoid risky CSS hacks. Generating them in XSLT is a bit tricky, but possible. Tested with libxsl and Xalan.

XSLT:

<xsl:comment><![CDATA[[if !IE]><!]]></xsl:comment> <style type="text/css" media="screen"> <xsl:comment> @import url("style/Moz.main.css"); /* level 1 */ @import url("style/Moz.window.css"); /* level 2 */ @import url("style/Moz.document.css"); /* level 3 */ </xsl:comment> </style> <xsl:comment><![CDATA[<![endif]]]></xsl:comment> <xsl:comment>[if IE]> <![CDATA[ <style type="text/css" media="screen"> @import url('style/IE.main.css'); /* level 1 */ @import url('style/IE.window.css'); /* level 2 */ @import url('style/IE.document.css'); /* level 3 */ </style> ]]> &lt;![endif]</xsl:comment>

Output:

<!--[if !IE]><!--> <style type="text/css" media="screen"> <!-- @import url("style/Moz.main.css"); /* level 1 */ @import url("style/Moz.window.css"); /* level 2 */ @import url("style/Moz.document.css"); /* level 3 */ --> </style> <!--<![endif]--> <!--[if IE]> <style type="text/css" media="screen"> @import url('style/IE.main.css'); /* level 1 */ @import url('style/IE.window.css'); /* level 2 */ @import url('style/IE.document.css'); /* level 3 */ </style> <![endif]-->

Configuring PHP + SSI for Apache

Naturally you need to be careful

AddType application/x-httpd-php .php AddOutputFilter INCLUDES .php .htm .html

Quotes

Quoted for truthiness.

It is said that papers in string theory are published at a rate greater than the speed of light. This, however, is not problematic since no information is being transmitted. - H. Kleinert

You can't just ask customers what they want and then try to give that to them. By the time you get it built, they'll want something new. - Steve Jobs

If web-based functionality does keep increasing, in a few years we'll end up right where we were 10 years ago: applets :) - Andy Tripp

Collosal squid

When mythical sea creatures come to visit the above.

Colossal squid Colossal squid Colossal squid

How about some Mandelbrot?