<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
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:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>Paxton Hare</title> <atom:link href="http://www.paxtonhare.com/feed/" rel="self" type="application/rss+xml" /><link>http://www.paxtonhare.com</link> <description></description> <lastBuildDate>Fri, 06 Apr 2012 03:12:17 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Adding gzip compression to your MarkLogic application</title><link>http://www.paxtonhare.com/adding-gzip-compression-to-your-marklogic-application/</link> <comments>http://www.paxtonhare.com/adding-gzip-compression-to-your-marklogic-application/#comments</comments> <pubDate>Fri, 06 Apr 2012 02:38:40 +0000</pubDate> <dc:creator>paxton</dc:creator> <category><![CDATA[blog]]></category> <category><![CDATA[MarkLogic]]></category> <category><![CDATA[featured]]></category> <category><![CDATA[xquery]]></category> <guid
isPermaLink="false">http://www.paxtonhare.com/?p=283</guid> <description><![CDATA[Compression, please. A commonly used practice in optimizing websites is to compress the payload using gzip. Compressing the content makes better use of available bandwidth which tends to be a big bottleneck in serving up websites. MarkLogic Server doesn&#8217;t support gzip compression at the application server level, but a newly added function in MarkLogic 5.0-3 [...]]]></description> <content:encoded><![CDATA[<p
style="float:right; margin:0 0 10px 15px; width:240px;"> <img
src="http://www.paxtonhare.com/wp-content/uploads/2012/04/compression.jpg" width="240" /></p><h2>Compression, please.</h2><p><img
src="http://www.paxtonhare.com/wp-content/uploads/2012/04/compression-300x200.jpg" alt="" title="gzip compression" width="300" height="200" class="alignnone size-medium wp-image-308" /><br
/> A commonly used practice in optimizing websites is to compress the payload using gzip. Compressing the content makes better use of available bandwidth which tends to be a big bottleneck in serving up websites.<span
id="more-283"></span> MarkLogic Server doesn&#8217;t support gzip compression at the application server level, but a newly added function in MarkLogic 5.0-3 makes it possible to roll it yourself, <a
title="xdmp:gzip()" href="http://developer.marklogic.com/pubs/5.0/apidocs/Document-Conversion.html#xdmp:gzip" target="_blank">xdmp:gzip()</a>.</p><p>Let&#8217;s write some XQuery code to gzip compress our web pages!</p><h2>Support for GZip</h2><p>Browsers that support gzip compressed content will send an HTTP header <em>Accept-Encoding</em> with gzip among the values. In MarkLogic you can check for this value using the <a
title="xdmp:get-request-header()" href="http://developer.marklogic.com/pubs/5.0/apidocs/AppServerBuiltins.html#xdmp:get-request-header" target="_blank">xdmp:get-request-header()</a> function:</p> <script src="https://gist.github.com/2313109.js?file=check-for-gzip.xqy"></script> <h2>Stating our intentions</h2><p>Now that we know if the browser supports gzip compression we need to tell tell the browser that we are sending gzipped content. We accomplish this with the <a
title="xdmp:add-response-header()" href="http://developer.marklogic.com/pubs/5.0/apidocs/AppServerBuiltins.html#xdmp:add-response-header" target="_blank">xdmp:add-response-header()</a> function.</p> <script src="https://gist.github.com/2313109.js?file=response-header.xqy"></script> <h2>Putting it all together</h2><p>Let&#8217;s throw together a full, working example.</p> <script src="https://gist.github.com/2313109.js?file=total-package.xqy"></script> <h2>Caveat emptor</h2><p>Before you rush out and add this code to all your MarkLogic applications you will want to do your own testing to determine if the bandwidth savings outweigh the cost of gzipping your content.</p><p>&mdash;Paxton</p> ]]></content:encoded> <wfw:commentRss>http://www.paxtonhare.com/adding-gzip-compression-to-your-marklogic-application/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Happy Halloween</title><link>http://www.paxtonhare.com/happy-halloween/</link> <comments>http://www.paxtonhare.com/happy-halloween/#comments</comments> <pubDate>Mon, 31 Oct 2011 02:36:43 +0000</pubDate> <dc:creator>paxton</dc:creator> <category><![CDATA[blog]]></category> <category><![CDATA[photoblog]]></category> <category><![CDATA[featured]]></category> <category><![CDATA[photography]]></category> <guid
isPermaLink="false">http://www.paxtonhare.com/?p=276</guid> <description><![CDATA[Happy Halloween! &#8212;Paxton]]></description> <content:encoded><![CDATA[<p
style="float:right; margin:0 0 10px 15px; width:240px;"> <img
src="http://www.paxtonhare.com/wp-content/uploads/2011/11/halloween-pumpkin.jpg" width="240" /></p><p><img
class="alignnone size-full wp-image-277" title="halloween-pumpkin" src="http://www.paxtonhare.com/wp-content/uploads/2011/11/halloween-pumpkin.jpg" alt="" width="800" height="533" /></p><p>Happy Halloween!</p><p>&mdash;Paxton</p> ]]></content:encoded> <wfw:commentRss>http://www.paxtonhare.com/happy-halloween/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Used Tractor Tires</title><link>http://www.paxtonhare.com/used-tractor-tires/</link> <comments>http://www.paxtonhare.com/used-tractor-tires/#comments</comments> <pubDate>Sun, 09 Oct 2011 17:23:58 +0000</pubDate> <dc:creator>paxton</dc:creator> <category><![CDATA[blog]]></category> <category><![CDATA[photoblog]]></category> <category><![CDATA[featured]]></category> <category><![CDATA[photography]]></category> <guid
isPermaLink="false">http://www.paxtonhare.com/?p=184</guid> <description><![CDATA[It&#8217;s been over 2 years since my last blog update. In those 2 years I got married and we had a daughter. This picture reminds me of what this blog has become to me. I have finally decided to get back into this. I applied a hefty facelift to the site and will try like [...]]]></description> <content:encoded><![CDATA[<p
style="float:right; margin:0 0 10px 15px; width:240px;"> <img
src="http://www.paxtonhare.com/wp-content/uploads/2011/10/used-tractor-tires.jpg" width="240" /></p><p><img
src="http://www.paxtonhare.com/wp-content/uploads/2011/10/used-tractor-tires.jpg" alt="Used Tractor Tires" title="used-tractor-tires" width="800" height="533" class="alignnone size-full wp-image-185" /></p><p> It&#8217;s been over 2 years since my last blog update. In those 2 years I got married and we had a daughter. This picture reminds me of what this blog has become to me.</p><p>I have finally decided to get back into this. I applied a hefty facelift to the site and will try like hell to keep updates coming. Stay tuned&#8230;</p><p>&mdash;Paxton</p> ]]></content:encoded> <wfw:commentRss>http://www.paxtonhare.com/used-tractor-tires/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Foragers Market</title><link>http://www.paxtonhare.com/foragers-market/</link> <comments>http://www.paxtonhare.com/foragers-market/#comments</comments> <pubDate>Thu, 19 Mar 2009 23:28:21 +0000</pubDate> <dc:creator>paxton</dc:creator> <category><![CDATA[blog]]></category> <category><![CDATA[photoblog]]></category> <category><![CDATA[featured]]></category> <category><![CDATA[photography]]></category> <guid
isPermaLink="false">http://www.paxtonhare.com/?p=155</guid> <description><![CDATA[I snapped this photo in front of the Forager&#8217;s market in DUMBO, Brooklyn. I have no clue what these people are looking for. It was only later that my wife pointed out the sign in the background for the Forager&#8217;s Market. &#8212;Paxton]]></description> <content:encoded><![CDATA[<p
style="float:right; margin:0 0 10px 15px; width:240px;"> <img
src="http://www.paxtonhare.com/wp-content/uploads/2010/05/foragers-market3.jpg" width="240" /></p><p><img
src="http://www.paxtonhare.com/wp-content/uploads/2010/05/foragers-market3.jpg" title="Foragers Market" alt="Foragers Market" /><p>I snapped this photo in front of the Forager&#8217;s market in DUMBO, Brooklyn. I have no clue what these people are looking for. It was only later that my wife pointed out the sign in the background for the Forager&#8217;s Market.</p><p>&mdash;Paxton</p> ]]></content:encoded> <wfw:commentRss>http://www.paxtonhare.com/foragers-market/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Snowy Hippo</title><link>http://www.paxtonhare.com/snowy-hippo/</link> <comments>http://www.paxtonhare.com/snowy-hippo/#comments</comments> <pubDate>Thu, 15 Jan 2009 22:52:35 +0000</pubDate> <dc:creator>paxton</dc:creator> <category><![CDATA[Animals]]></category> <category><![CDATA[Night]]></category> <category><![CDATA[photoblog]]></category> <category><![CDATA[featured]]></category> <category><![CDATA[photography]]></category> <guid
isPermaLink="false">http://www.paxtonhare.com/?p=153</guid> <description><![CDATA[This stone hippo lives in the park behind my apartment. The snow from this morning made him more photogenic. &#8212;Paxton]]></description> <content:encoded><![CDATA[<p
style="float:right; margin:0 0 10px 15px; width:240px;"> <img
src="http://www.paxtonhare.com/wp-content/uploads/2010/05/snowy_hippo3.jpg" width="240" /></p><p><img
src="http://www.paxtonhare.com/wp-content/uploads/2010/05/snowy_hippo3.jpg" title="Snowy Hippo" alt="Snowy Hippo" /><p>This stone hippo lives in the park behind my apartment. The snow from this morning made him more photogenic.</p><p>&mdash;Paxton</p> ]]></content:encoded> <wfw:commentRss>http://www.paxtonhare.com/snowy-hippo/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Scary Doll Heads</title><link>http://www.paxtonhare.com/scary-doll-heads/</link> <comments>http://www.paxtonhare.com/scary-doll-heads/#comments</comments> <pubDate>Sun, 04 Jan 2009 20:50:43 +0000</pubDate> <dc:creator>paxton</dc:creator> <category><![CDATA[photoblog]]></category> <category><![CDATA[featured]]></category> <category><![CDATA[photography]]></category> <guid
isPermaLink="false">http://www.paxtonhare.com/?p=151</guid> <description><![CDATA[While in downtown Louisville, KY for my sister&#8217;s wedding I came across this crazy car on Main street. It was covered in grotesque doll heads. &#8212;Paxton]]></description> <content:encoded><![CDATA[<p
style="float:right; margin:0 0 10px 15px; width:240px;"> <img
src="http://www.paxtonhare.com/wp-content/uploads/2010/05/doll_heads3.jpg" width="240" /></p><p><img
src="http://www.paxtonhare.com/wp-content/uploads/2010/05/doll_heads3.jpg" title="Scary Doll Heads" alt="Scary Doll Heads" /><p>While in downtown Louisville, KY for my sister&#8217;s wedding I came across this crazy car on Main street. It was covered in grotesque doll heads.</p><p>&mdash;Paxton</p> ]]></content:encoded> <wfw:commentRss>http://www.paxtonhare.com/scary-doll-heads/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Flat Stanley</title><link>http://www.paxtonhare.com/flat-stanley/</link> <comments>http://www.paxtonhare.com/flat-stanley/#comments</comments> <pubDate>Sun, 28 Dec 2008 22:52:52 +0000</pubDate> <dc:creator>paxton</dc:creator> <category><![CDATA[People]]></category> <category><![CDATA[photoblog]]></category> <category><![CDATA[featured]]></category> <category><![CDATA[photography]]></category> <guid
isPermaLink="false">http://www.paxtonhare.com/?p=149</guid> <description><![CDATA[Flat Stanley has been visiting me in Manhattan. We attended the inflating of the Macy&#8217;s floats the day before Thanksgiving. This photo was taken on the subway ride back home. &#8212;Paxton]]></description> <content:encoded><![CDATA[<p
style="float:right; margin:0 0 10px 15px; width:240px;"> <img
src="http://www.paxtonhare.com/wp-content/uploads/2010/05/flat_stanley3.jpg" width="240" /></p><p><img
src="http://www.paxtonhare.com/wp-content/uploads/2010/05/flat_stanley3.jpg" title="Flat Stanley" alt="Flat Stanley" /></p><p> <a
href="http://www.flatstanley.com">Flat Stanley</a> has been visiting me in Manhattan. We attended the inflating of the Macy&#8217;s floats the day before Thanksgiving. This photo was taken on the subway ride back home.</p><p>&mdash;Paxton</p> ]]></content:encoded> <wfw:commentRss>http://www.paxtonhare.com/flat-stanley/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Old Glory</title><link>http://www.paxtonhare.com/old-glory/</link> <comments>http://www.paxtonhare.com/old-glory/#comments</comments> <pubDate>Wed, 30 Apr 2008 23:14:42 +0000</pubDate> <dc:creator>paxton</dc:creator> <category><![CDATA[photoblog]]></category> <category><![CDATA[featured]]></category> <category><![CDATA[photography]]></category> <guid
isPermaLink="false">http://www.paxtonhare.com/?p=147</guid> <description><![CDATA[I was at Great Falls in Maryland recently and stumbled upon a group of Civil War re-enactors. This tattered American Flag was at their camp. &#8212;Paxton]]></description> <content:encoded><![CDATA[<p
style="float:right; margin:0 0 10px 15px; width:240px;"> <img
src="http://www.paxtonhare.com/wp-content/uploads/2010/05/old_glory3.jpg" width="240" /></p><p><img
src="http://www.paxtonhare.com/wp-content/uploads/2010/05/old_glory3.jpg" title="Old Glory" alt="Old Glory" /><p>I was at <a
href="http://www.nps.gov/archive/choh/Visitor/Centers/GreatFalls.html">Great Falls</a> in Maryland recently and stumbled upon a group of Civil War re-enactors. This tattered American Flag was at their camp.</p><p>&mdash;Paxton</p> ]]></content:encoded> <wfw:commentRss>http://www.paxtonhare.com/old-glory/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Machine Head</title><link>http://www.paxtonhare.com/machine-head/</link> <comments>http://www.paxtonhare.com/machine-head/#comments</comments> <pubDate>Fri, 18 Apr 2008 15:39:24 +0000</pubDate> <dc:creator>paxton</dc:creator> <category><![CDATA[photoblog]]></category> <category><![CDATA[photography]]></category> <guid
isPermaLink="false">http://www.paxtonhare.com/?p=145</guid> <description><![CDATA[I decided to photograph my guitar in the intense light I get at sunset in my apartment. I used my macro lens to get in close on the guitar&#8217;s tuning machine head. &#8212;Paxton]]></description> <content:encoded><![CDATA[<p
style="float:right; margin:0 0 10px 15px; width:240px;"> <img
src="http://www.paxtonhare.com/wp-content/uploads/2010/05/guitar_machine_head3.jpg" width="240" /></p><p><img
src="http://www.paxtonhare.com/wp-content/uploads/2010/05/guitar_machine_head3.jpg" title="Machine Head" alt="Machine Head" /><p>I decided to photograph my guitar in the intense light I get at sunset in my apartment. I used my macro lens to get in close on the guitar&#8217;s tuning machine head.</p><p>&mdash;Paxton</p> ]]></content:encoded> <wfw:commentRss>http://www.paxtonhare.com/machine-head/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Mountain Bike against a Fence</title><link>http://www.paxtonhare.com/mountain-bike-against-a-fence/</link> <comments>http://www.paxtonhare.com/mountain-bike-against-a-fence/#comments</comments> <pubDate>Sun, 06 Apr 2008 23:52:01 +0000</pubDate> <dc:creator>paxton</dc:creator> <category><![CDATA[photoblog]]></category> <category><![CDATA[photography]]></category> <guid
isPermaLink="false">http://www.paxtonhare.com/?p=143</guid> <description><![CDATA[I was at the Cherry Blossom festival this weekend in Washington, DC. I didn&#8217;t get very good photos of the blossoms, but I did snap this photo of a mountain bike leaning against a chain link fence. &#8212;Paxton]]></description> <content:encoded><![CDATA[<p
style="float:right; margin:0 0 10px 15px; width:240px;"> <img
src="http://www.paxtonhare.com/wp-content/uploads/2010/05/mountain_bike3.jpg" width="240" /></p><p><img
src="http://www.paxtonhare.com/wp-content/uploads/2010/05/mountain_bike3.jpg" title="Mountain Bike against a Fence" alt="Mountain Bike against a Fence" /><p>I was at the Cherry Blossom festival this weekend in Washington, DC. I didn&#8217;t get very good photos of the blossoms, but I did snap this photo of a mountain bike leaning against a chain link fence.</p><p>&mdash;Paxton</p> ]]></content:encoded> <wfw:commentRss>http://www.paxtonhare.com/mountain-bike-against-a-fence/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> </channel> </rss>
