<?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:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: Create Short URLs Using&#160;U.Nu</title> <atom:link href="http://davidwalsh.name/create-short-urls-unu/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/create-short-urls-unu</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Tue, 22 May 2012 05:31:04 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>By: Mahmud Ahsan</title><link>http://davidwalsh.name/create-short-urls-unu#comment-9166</link> <dc:creator>Mahmud Ahsan</dc:creator> <pubDate>Fri, 08 May 2009 19:36:13 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2218#comment-9166</guid> <description>awesome post.</description> <content:encoded><![CDATA[<p>awesome post.</p> ]]></content:encoded> </item> <item><title>By: Drew Douglass</title><link>http://davidwalsh.name/create-short-urls-unu#comment-8972</link> <dc:creator>Drew Douglass</dc:creator> <pubDate>Tue, 28 Apr 2009 19:56:26 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2218#comment-8972</guid> <description>Thanks for the link David, that is very helpful. </description> <content:encoded><![CDATA[<p>Thanks for the link David, that is very helpful.</p> ]]></content:encoded> </item> <item><title>By: David Walsh</title><link>http://davidwalsh.name/create-short-urls-unu#comment-8900</link> <dc:creator>David Walsh</dc:creator> <pubDate>Tue, 28 Apr 2009 11:38:55 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2218#comment-8900</guid> <description>&lt;p&gt;@Drew Douglass: You can definitely use file&#095;get&#095;contents().  cURL is simply PHP best practice.  Here&#039;s a good resource:&lt;/p&gt;&lt;p&gt;http://stackoverflow.com/questions/555523/filegetcontents-vs-curl-what-has-better-performance&lt;/p&gt;</description> <content:encoded><![CDATA[<p>@Drew Douglass: You can definitely use file&#95;get&#95;contents().  cURL is simply PHP best practice.  Here&#8217;s a good resource:</p><p><a
href="http://stackoverflow.com/questions/555523/filegetcontents-vs-curl-what-has-better-performance" rel="nofollow">http://stackoverflow.com/questions/555523/filegetcontents-vs-curl-what-has-better-performance</a></p> ]]></content:encoded> </item> <item><title>By: Drew Douglass</title><link>http://davidwalsh.name/create-short-urls-unu#comment-8892</link> <dc:creator>Drew Douglass</dc:creator> <pubDate>Tue, 28 Apr 2009 05:19:42 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2218#comment-8892</guid> <description>Hey David,Nice work here, I had never heard of that particular url service,  thanks for that. I was going to ask though, couldn&#039;t you shorten it down to something like this?&lt;code&gt;
function get&#095;unu&#095;url($url)
{
$url = file&#095;get&#095;contents(&#039;http://u.nu/unu-api-simple?url=&#039;.urlencode($url));
return $url;
}
echo get&#095;unu&#095;url(&#039;http://davidwalsh.name&#039;);
?&gt;
&lt;/code&gt;Or was the reason because file&#095;get&#095;contents may not be available to everyone? I ask simply out of curiosity :)Thanks again!</description> <content:encoded><![CDATA[<p>Hey David,</p><p>Nice work here, I had never heard of that particular url service,  thanks for that. I was going to ask though, couldn&#8217;t you shorten it down to something like this?</p><p> <code><br
/> function get&#95;unu&#95;url($url)<br
/> {<br
/> $url = file&#95;get&#95;contents('http://u.nu/unu-api-simple?url='.urlencode($url));<br
/> return $url;<br
/> }<br
/> echo get&#95;unu&#95;url('http://davidwalsh.name');<br
/> ?&gt;<br
/> </code></p><p>Or was the reason because file&#95;get&#95;contents may not be available to everyone? I ask simply out of curiosity :)</p><p>Thanks again!</p> ]]></content:encoded> </item> <item><title>By: Cerium</title><link>http://davidwalsh.name/create-short-urls-unu#comment-8885</link> <dc:creator>Cerium</dc:creator> <pubDate>Mon, 27 Apr 2009 19:32:49 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2218#comment-8885</guid> <description>@Alex : thanks, it seems to be specific to dot nu :)</description> <content:encoded><![CDATA[<p>@Alex : thanks, it seems to be specific to dot nu :)</p> ]]></content:encoded> </item> <item><title>By: David Walsh</title><link>http://davidwalsh.name/create-short-urls-unu#comment-8884</link> <dc:creator>David Walsh</dc:creator> <pubDate>Mon, 27 Apr 2009 18:00:08 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2218#comment-8884</guid> <description>&lt;p&gt;Thank you for reporting that Guillermo!  Updated.&lt;/p&gt;</description> <content:encoded><![CDATA[<p>Thank you for reporting that Guillermo!  Updated.</p> ]]></content:encoded> </item> <item><title>By: Guillermo Rauch</title><link>http://davidwalsh.name/create-short-urls-unu#comment-8883</link> <dc:creator>Guillermo Rauch</dc:creator> <pubDate>Mon, 27 Apr 2009 17:55:13 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2218#comment-8883</guid> <description>Wow! It seems the create API adds additional whitespace / carriage return though. Might want to additionally trim() the result.
I integrated it into &lt;a href=&quot;http://devthought.com/projects/php/phpshortener/&quot; rel=&quot;nofollow&quot;&gt;PHPShortener&lt;/a&gt;</description> <content:encoded><![CDATA[<p>Wow! It seems the create API adds additional whitespace / carriage return though. Might want to additionally trim() the result.<br
/> I integrated it into <a
href="http://devthought.com/projects/php/phpshortener/" rel="nofollow">PHPShortener</a></p> ]]></content:encoded> </item> <item><title>By: Alex</title><link>http://davidwalsh.name/create-short-urls-unu#comment-8882</link> <dc:creator>Alex</dc:creator> <pubDate>Mon, 27 Apr 2009 17:33:24 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2218#comment-8882</guid> <description>&quot;Domain names can be as short as one character. A premium of €500/yr applies to name registrations of one character in length, €250 for domain names of two-character length, and €30 per year for domain names of any other length. In June, 2008, .NU Domain began permitting registration of all-numeric domain names.&quot;from http://en.wikipedia.org/wiki/.nuUnfortunately all one character domains are already bought :(</description> <content:encoded><![CDATA[<p>&#8220;Domain names can be as short as one character. A premium of €500/yr applies to name registrations of one character in length, €250 for domain names of two-character length, and €30 per year for domain names of any other length. In June, 2008, .NU Domain began permitting registration of all-numeric domain names.&#8221;</p><p>from <a
href="http://en.wikipedia.org/wiki/.nu" rel="nofollow">http://en.wikipedia.org/wiki/.nu</a></p><p>Unfortunately all one character domains are already bought :(</p> ]]></content:encoded> </item> <item><title>By: Mark Sanborn</title><link>http://davidwalsh.name/create-short-urls-unu#comment-8881</link> <dc:creator>Mark Sanborn</dc:creator> <pubDate>Mon, 27 Apr 2009 16:24:18 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2218#comment-8881</guid> <description>Now if only they had analytics tracking...</description> <content:encoded><![CDATA[<p>Now if only they had analytics tracking&#8230;</p> ]]></content:encoded> </item> <item><title>By: Cerium</title><link>http://davidwalsh.name/create-short-urls-unu#comment-8880</link> <dc:creator>Cerium</dc:creator> <pubDate>Mon, 27 Apr 2009 15:49:06 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=2218#comment-8880</guid> <description>Nice snippet &lt;strong&gt;David&lt;/strong&gt; ! Thanks.But it&#039;s strange, a domain name can have just one letter, &quot;u&quot; in this case ? I always think the minimum was two.</description> <content:encoded><![CDATA[<p>Nice snippet <strong>David</strong> ! Thanks.</p><p>But it&#8217;s strange, a domain name can have just one letter, &#8220;u&#8221; in this case ? I always think the minimum was two.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 3/7 queries in 0.008 seconds using disk: basic
Object Caching 805/805 objects using disk: basic

Served from: davidwalsh.name @ 2012-05-22 03:23:24 -->
