<?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>Jon Fox &#187; short url</title>
	<atom:link href="http://www.jonefox.com/blog/tag/short-url/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jonefox.com/blog</link>
	<description>My rants, ramblings, and random thoughts</description>
	<lastBuildDate>Mon, 16 Jan 2012 14:48:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<cloud domain='www.jonefox.com' port='80' path='/blog/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>Add a custom url shortener to Firefox</title>
		<link>http://www.jonefox.com/blog/2009/11/30/add-a-custom-url-shortener-to-firefox/</link>
		<comments>http://www.jonefox.com/blog/2009/11/30/add-a-custom-url-shortener-to-firefox/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 19:52:12 +0000</pubDate>
		<dc:creator>jon</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[jfox.in]]></category>
		<category><![CDATA[short url]]></category>

		<guid isPermaLink="false">http://jonefox.com/blog/?p=271</guid>
		<description><![CDATA[I recently wrote a post about why I made my own url shortener. I&#8217;m now porting some of my common uses over to use this new shortener (keep life simple, right?). The first thing I wanted to address was adding &#8230; <a href="http://www.jonefox.com/blog/2009/11/30/add-a-custom-url-shortener-to-firefox/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I recently wrote a <a href="http://jonefox.com/blog/2009/11/01/my-own-short-urls/">post</a> about why I made my own url shortener.  I&#8217;m now porting some of my common uses over to use this new shortener (keep life simple, right?). The first thing I wanted to address was adding an option to the right-click menu to shorten whatever page I was currently viewing and copy it to the clipboard.  The easiest way I found to do this was to modify an existing Firefox addon called <a href="https://addons.mozilla.org/en-US/firefox/addon/11423">Shorten URL</a>.  It works particularly well because it already supports a TON of shortening services and adding new ones is a breeze.  So how do you do it?</p>
<ol>
<li>First, download <a href="https://addons.mozilla.org/en-US/firefox/addon/11423">the extension</a>.</li>
<li>Next, find your <a href="http://kb.mozillazine.org/Profile_folder_-_Firefox">Firefox profile folder</a>.</li>
<li>In your profile folder, find and open the &#8220;extensions/ShortenURL@loucypher/defaults/preferences&#8221; folder.</li>
<li>You should then find a file named shortenURL_prefs.js &#8211; open it in any text editor.</li>
<li>You should see two large blocks of similar lines repeating &#8211; find the last one in the first block (as of writing this it is <code>pref("extensions.shortenURL.name.145", "w3t.org");</code> and add a new line below it (incrementing the number) and swap out the name w/ whatever you want to reference your url shortener as. (in my case <code>pref("extensions.shortenURL.name.146", "jfox.in");</code></li>
<li>Continue to the end of the file and you should find a matching url line <code>pref("extensions.shortenURL.145", "http://w3t.org/?module=ShortURL&#038;file=Add&#038;mode=API&#038;url=");</code>.  Add a new line below this one incrementing the number again (to match the one in the last step) and adding the url of the page to submit a url to shorten (the url will be appended to the end).  For example: <code>pref("extensions.shortenURL.146", "http://jfox.in/make-tiny.php?url=");</code> (note the example here won&#8217;t actually work because my shortener is private).</li>
<li>Save the file and restart Firefox.  Now go to Tools->Add-ons, find ShortenURL in the list and select &#8220;preferences&#8221;.  You should now be able to find your custom shortener in the list using the name you provided above (in my case jfox.in).  Select your preference and enjoy!</li>
</ol>
<p>A quick trailing note:  This all assumes that your shortener has an interface that allows a url to be passed as a GET parameter and returns the shortened url in plain text as a result of that request.  This is straight forward to implement, but worth mentioning.  You should now be able to shorten simply by right-clicking and selecting the &#8220;Shorten this page URL&#8221; option (which will also copy the short url to your clipboard and put it in the location bar).  Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonefox.com/blog/2009/11/30/add-a-custom-url-shortener-to-firefox/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>My own short URLs</title>
		<link>http://www.jonefox.com/blog/2009/11/01/my-own-short-urls/</link>
		<comments>http://www.jonefox.com/blog/2009/11/01/my-own-short-urls/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 16:32:19 +0000</pubDate>
		<dc:creator>jon</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[jfox.in]]></category>
		<category><![CDATA[short url]]></category>

		<guid isPermaLink="false">http://jonefox.com/blog/?p=249</guid>
		<description><![CDATA[A little while ago I setup my own short URL service on http://jfox.in. I already know there are tons of free services that already do this and there are even a few open source alternatives of projects aimed at this &#8230; <a href="http://www.jonefox.com/blog/2009/11/01/my-own-short-urls/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A little while ago I setup my own short URL service on http://jfox.in.  I already know there are tons of free services that already do this and there are even a few open source alternatives of projects aimed at this kind of thing&#8230;so why then did I decide to write my own?  There are actually a couple reasons:</p>
<ul>
<li>Full control of the data &#8211; I can get at it wherever, however, and whenever I want to.  I can also move it into different formats and systems at will.</li>
<li>Full control over the service &#8211; I can add whatever features I want in whatever interface I want and not have to worry about the 15 other features I&#8217;ll never use that clutter up my UI.</li>
<li>Full control over the URLs themselves &#8211; I don&#8217;t have to worry about the domain shutting down, remapping my short URLs some time in the future, or what type of header redirect they&#8217;re using to make sure I get my Google juice.</li>
<li>It was fun &#8211; Perhaps the biggest reason I wanted to do this was because it&#8217;s such a simple project and it was kind of a fun exercise for me.</li>
</ul>
<p>Anyone that is code savvy and is considering doing this &#8211; whatever your reasons &#8211; I definitely recommend doing it.  It was simple and something I enjoyed, and it gives me the control I want in such a simple application.  Not every problem makes sense to roll your own solution for, but this is one that does in my mind since it&#8217;s so simple.</p>
<p>I honestly wouldn&#8217;t be surprised if we see more web services offering their own custom URLs.  It allows a bit more brand recognition and all the control issues I mention above.  It also seems that short URL services aren&#8217;t going away anytime soon.</p>
<p>Do you have any thoughts on the merits of short URL services?  Have you written your own or considered doing so?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jonefox.com/blog/2009/11/01/my-own-short-urls/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

