<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: How I built the NOW_USEC() UDF for MySQL</title>
	<link>http://www.xaprb.com/blog/2007/10/30/how-i-built-the-now_usec-udf-for-mysql/</link>
	<description>Stay curious!</description>
	<pubDate>Sun, 20 Jul 2008 22:55:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>

	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2007/10/30/how-i-built-the-now_usec-udf-for-mysql/#comment-14864</link>
		<author>Xaprb</author>
		<pubDate>Wed, 09 Jul 2008 12:53:03 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2007/10/30/how-i-built-the-now_usec-udf-for-mysql/#comment-14864</guid>
		<description>Yeah, sorry about that -- WP has a bug with plus signs.  I think it urldecodes them into spaces or something.  No time to upgrade....</description>
		<content:encoded><![CDATA[<p>Yeah, sorry about that &#8212; WP has a bug with plus signs.  I think it urldecodes them into spaces or something.  No time to upgrade&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marian Neubert</title>
		<link>http://www.xaprb.com/blog/2007/10/30/how-i-built-the-now_usec-udf-for-mysql/#comment-14862</link>
		<author>Marian Neubert</author>
		<pubDate>Wed, 09 Jul 2008 12:00:21 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2007/10/30/how-i-built-the-now_usec-udf-for-mysql/#comment-14862</guid>
		<description>Note: Since this is C++  i had to compile this with g++  . gcc also builds the library successful but when creating the function mysql returns an error like "undefined symbol: __gxx_personality_v0"</description>
		<content:encoded><![CDATA[<p>Note: Since this is C++  i had to compile this with g++  . gcc also builds the library successful but when creating the function mysql returns an error like &#8220;undefined symbol: __gxx_personality_v0&#8243;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2007/10/30/how-i-built-the-now_usec-udf-for-mysql/#comment-14249</link>
		<author>Xaprb</author>
		<pubDate>Tue, 26 Feb 2008 02:37:21 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2007/10/30/how-i-built-the-now_usec-udf-for-mysql/#comment-14249</guid>
		<description>For readers' edification: Justin wrote about how to compile this UDF on Mac OS 10.4 here: http://swanhart.livejournal.com/116981.html</description>
		<content:encoded><![CDATA[<p>For readers&#8217; edification: Justin wrote about how to compile this UDF on Mac OS 10.4 here: <a href="http://swanhart.livejournal.com/116981.html" rel="nofollow">http://swanhart.livejournal.com/116981.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Swanhart</title>
		<link>http://www.xaprb.com/blog/2007/10/30/how-i-built-the-now_usec-udf-for-mysql/#comment-14245</link>
		<author>Justin Swanhart</author>
		<pubDate>Mon, 25 Feb 2008 07:08:54 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2007/10/30/how-i-built-the-now_usec-udf-for-mysql/#comment-14245</guid>
		<description>Thanks for this great UDF.  I need to profile some stored procedures, and this will do just the trick.</description>
		<content:encoded><![CDATA[<p>Thanks for this great UDF.  I need to profile some stored procedures, and this will do just the trick.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2007/10/30/how-i-built-the-now_usec-udf-for-mysql/#comment-13604</link>
		<author>Xaprb</author>
		<pubDate>Fri, 02 Nov 2007 00:33:44 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2007/10/30/how-i-built-the-now_usec-udf-for-mysql/#comment-13604</guid>
		<description>Right, what I meant was I thought I had Wordpress configured to automatically entity-ify inside pre.</description>
		<content:encoded><![CDATA[<p>Right, what I meant was I thought I had Wordpress configured to automatically entity-ify inside pre.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roland Bouman</title>
		<link>http://www.xaprb.com/blog/2007/10/30/how-i-built-the-now_usec-udf-for-mysql/#comment-13602</link>
		<author>Roland Bouman</author>
		<pubDate>Thu, 01 Nov 2007 07:42:37 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2007/10/30/how-i-built-the-now_usec-udf-for-mysql/#comment-13602</guid>
		<description>Hi Baron, 

"I thought it usually handled that inside ‘pre’ tags"

The best thing of pre is that it treats all white space as significant white space:

http://www.w3.org/TR/REC-html40/struct/text.html#h-9.3.4

However, the contents are still parsed as HTML. The greater than sign is usually printed literally but most parsers assume that the less than sign is the start of a new tag.

A trick that sometimes work is to put everything inside pre inside a CDATA section:

&#60;pre&#62;&#38;lt![CDATA[

#include &#60;stdio.h&#62;

...

]]&#62;&#60;/pre&#62;</description>
		<content:encoded><![CDATA[<p>Hi Baron, </p>
<p>&#8220;I thought it usually handled that inside ‘pre’ tags&#8221;</p>
<p>The best thing of pre is that it treats all white space as significant white space:</p>
<p><a href="http://www.w3.org/TR/REC-html40/struct/text.html#h-9.3.4" rel="nofollow">http://www.w3.org/TR/REC-html40/struct/text.html#h-9.3.4</a></p>
<p>However, the contents are still parsed as HTML. The greater than sign is usually printed literally but most parsers assume that the less than sign is the start of a new tag.</p>
<p>A trick that sometimes work is to put everything inside pre inside a CDATA section:</p>
<p>&lt;pre&gt;&amp;lt![CDATA[</p>
<p>#include &lt;stdio.h&gt;</p>
<p>&#8230;</p>
<p>]]&gt;&lt;/pre&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2007/10/30/how-i-built-the-now_usec-udf-for-mysql/#comment-13600</link>
		<author>Xaprb</author>
		<pubDate>Thu, 01 Nov 2007 01:21:37 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2007/10/30/how-i-built-the-now_usec-udf-for-mysql/#comment-13600</guid>
		<description>Ooh, good catch.  Weird, I thought it usually handled that inside 'pre' tags.  Thanks.</description>
		<content:encoded><![CDATA[<p>Ooh, good catch.  Weird, I thought it usually handled that inside &#8216;pre&#8217; tags.  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roland Bouman</title>
		<link>http://www.xaprb.com/blog/2007/10/30/how-i-built-the-now_usec-udf-for-mysql/#comment-13599</link>
		<author>Roland Bouman</author>
		<pubDate>Thu, 01 Nov 2007 00:45:33 +0000</pubDate>
		<guid>http://www.xaprb.com/blog/2007/10/30/how-i-built-the-now_usec-udf-for-mysql/#comment-13599</guid>
		<description>Hi Baron, 

thanks for sharing this code! And, thanks for the link to the UDF repository page ;-)

I just wanted to let you know that the code sample does not render the #include lines properly - you probably should escape the angle brackets

#include &#38;lt;stdio.h&#38;gt;</description>
		<content:encoded><![CDATA[<p>Hi Baron, </p>
<p>thanks for sharing this code! And, thanks for the link to the UDF repository page ;-)</p>
<p>I just wanted to let you know that the code sample does not render the #include lines properly - you probably should escape the angle brackets</p>
<p>#include &amp;lt;stdio.h&amp;gt;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
