Mindview

MinimizeClose

Clock

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

Collosal squid

When mythical sea creatures come to visit the above.

Colossal squid Colossal squid Colossal squid

How about some Mandelbrot?

Sticky
MarcoSlot.Net now runs entirely in the Cloud! Using S3 as a storage back-end and Google App Engine & CloudFront as delivery front-ends it is fast, cheap, scalable, monitored 24/7 and I have no idea how it works anymore.