<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Simple HTML Grid widget &#8211; part 2</title>
	<atom:link href="http://curiousprogrammer.wordpress.com/2007/07/04/simple-html-grid-widget-part-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://curiousprogrammer.wordpress.com/2007/07/04/simple-html-grid-widget-part-2/</link>
	<description>Leveraging Perl and Emacs</description>
	<lastBuildDate>Tue, 07 May 2013 11:25:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Danny Yoo</title>
		<link>http://curiousprogrammer.wordpress.com/2007/07/04/simple-html-grid-widget-part-2/#comment-1706</link>
		<dc:creator><![CDATA[Danny Yoo]]></dc:creator>
		<pubDate>Mon, 09 Jul 2007 20:02:49 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/2007/07/04/simple-html-grid-widget-part-2/#comment-1706</guid>
		<description><![CDATA[There are a few more libraries in mzscheme that you can use to dissolve a bit of the code you have there.  In particular, the uri-codec.ss library in the net collection handles URI encoding stuff:
&lt;code&gt;

  (require (lib &quot;uri-codec.ss&quot; &quot;net&quot;))
  
  (parameterize ([current-alist-separator-mode &#039;amp])
    (display (alist-&gt;form-urlencoded
              &#039;((name . &quot;Danny&quot;)
                (email . &quot;dyoo@cs.wpi.edu&quot;)))))
&lt;/code&gt;
For the HTML generation, you may want to look at the xml.ss library in the xml package.  I wrote a small example using it &lt;a href=&quot;http://hashcollision.blogspot.com/2006/11/how-not-to-write-xml.html&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.]]></description>
		<content:encoded><![CDATA[<p>There are a few more libraries in mzscheme that you can use to dissolve a bit of the code you have there.  In particular, the uri-codec.ss library in the net collection handles URI encoding stuff:<br />
<code></p>
<p>  (require (lib "uri-codec.ss" "net"))</p>
<p>  (parameterize ([current-alist-separator-mode 'amp])<br />
    (display (alist-&gt;form-urlencoded<br />
              '((name . "Danny")<br />
                (email . "dyoo@cs.wpi.edu")))))<br />
</code><br />
For the HTML generation, you may want to look at the xml.ss library in the xml package.  I wrote a small example using it <a href="http://hashcollision.blogspot.com/2006/11/how-not-to-write-xml.html" rel="nofollow">here</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: IanO</title>
		<link>http://curiousprogrammer.wordpress.com/2007/07/04/simple-html-grid-widget-part-2/#comment-1629</link>
		<dc:creator><![CDATA[IanO]]></dc:creator>
		<pubDate>Thu, 05 Jul 2007 19:36:39 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/2007/07/04/simple-html-grid-widget-part-2/#comment-1629</guid>
		<description><![CDATA[Hi Kyle,

Thanks for the comment.  When I entered the article, I had escaped the + symbol with backslashes but Wordpress seems to have selectively eaten my backslashes (it hasn&#039;t got them all!).  It also broke the carriage return encoding.  Let me try updating the article to see if that fixes it.

Cheers,

Ian]]></description>
		<content:encoded><![CDATA[<p>Hi Kyle,</p>
<p>Thanks for the comment.  When I entered the article, I had escaped the + symbol with backslashes but WordPress seems to have selectively eaten my backslashes (it hasn&#8217;t got them all!).  It also broke the carriage return encoding.  Let me try updating the article to see if that fixes it.</p>
<p>Cheers,</p>
<p>Ian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle Smith</title>
		<link>http://curiousprogrammer.wordpress.com/2007/07/04/simple-html-grid-widget-part-2/#comment-1625</link>
		<dc:creator><![CDATA[Kyle Smith]]></dc:creator>
		<pubDate>Thu, 05 Jul 2007 13:08:55 +0000</pubDate>
		<guid isPermaLink="false">http://curiousprogrammer.wordpress.com/2007/07/04/simple-html-grid-widget-part-2/#comment-1625</guid>
		<description><![CDATA[Hi IanO,

Excellent post.  I found a small problem with the regexp in data-decode, nothing big.

Here is my corrected version:

&lt;code&gt;
(define (data-decode data)
  (let ((i (open-input-bytes
            (base64-decode
             (string-&gt;bytes/utf-8
              (encode-chars &quot;[+].&quot; data)))))
        (o (open-output-string)))
    (inflate i o)
    (get-output-string o)))
&lt;/code&gt;

Here is the output:

&lt;code&gt;
Welcome to DrScheme, version 370.3-svn9jun2007 [3m].
Language: SchemeKeys.
Content-type: text/html; charset=iso-8859-1

&lt;a href=&quot;ser.scm?data=BcExCsAgDEDRq4Q/mdFeoXM3oXMgUougYOjg7fteShSLjnDN4bYRylfDbSPc1UcNt41K4pyz

v+pNByG0h5LYQjrYC1R8+e&quot;&gt;next page&lt;/a&gt;
&lt;a href=&quot;ser.scm&quot; rel=&quot;nofollow&quot;&gt;Restart&lt;/a&gt;
((&quot;Task&quot; &quot;Monday&quot; &quot;Tuesday&quot; &quot;Wednesday&quot;) (&quot;Cooking&quot; &quot;1hr&quot; &quot;1hr&quot; &quot;2hrs&quot;))
&lt;/code&gt;

Is this what you had in mind?

Take care,

--kyle]]></description>
		<content:encoded><![CDATA[<p>Hi IanO,</p>
<p>Excellent post.  I found a small problem with the regexp in data-decode, nothing big.</p>
<p>Here is my corrected version:</p>
<p><code><br />
(define (data-decode data)<br />
  (let ((i (open-input-bytes<br />
            (base64-decode<br />
             (string-&gt;bytes/utf-8<br />
              (encode-chars "[+]." data)))))<br />
        (o (open-output-string)))<br />
    (inflate i o)<br />
    (get-output-string o)))<br />
</code></p>
<p>Here is the output:</p>
<p><code><br />
Welcome to DrScheme, version 370.3-svn9jun2007 [3m].<br />
Language: SchemeKeys.<br />
Content-type: text/html; charset=iso-8859-1</p>
<p><a href="ser.scm?data=BcExCsAgDEDRq4Q/mdFeoXM3oXMgUougYOjg7fteShSLjnDN4bYRylfDbSPc1UcNt41K4pyz</p>
<p>v+pNByG0h5LYQjrYC1R8+e">next page</a><br />
<a href="ser.scm" rel="nofollow">Restart</a><br />
(("Task" "Monday" "Tuesday" "Wednesday") ("Cooking" "1hr" "1hr" "2hrs"))<br />
</code></p>
<p>Is this what you had in mind?</p>
<p>Take care,</p>
<p>&#8211;kyle</p>
]]></content:encoded>
	</item>
</channel>
</rss>
