<?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>There and Back Again</title>
	<atom:link href="http://blog.joshuaeichorn.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.joshuaeichorn.com</link>
	<description>The weblog of Joshua Eichorn, AJAX, PHP and Open Source</description>
	<lastBuildDate>Fri, 16 Apr 2010 00:26:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4-alpha</generator>
		<item>
		<title>Webthumb server move</title>
		<link>http://blog.joshuaeichorn.com/archives/2010/04/15/webthumb-server-move/</link>
		<comments>http://blog.joshuaeichorn.com/archives/2010/04/15/webthumb-server-move/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 00:26:14 +0000</pubDate>
		<dc:creator>Joshua Eichorn</dc:creator>
				<category><![CDATA[Webthumb]]></category>

		<guid isPermaLink="false">http://blog.joshuaeichorn.com/?p=391</guid>
		<description><![CDATA[Webthumb.bluga.net has completed its move to a new server. Everything should be running smoothly at this point, but if you run into any problems let me know. If your dns is slow to update, you can use new.bluga.net.]]></description>
			<content:encoded><![CDATA[<p>Webthumb.bluga.net has completed its move to a new server.  Everything should be running smoothly at this point, but if you run into any problems let me know.</p>
<p>If your dns is slow to update, you can use new.bluga.net.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.joshuaeichorn.com/archives/2010/04/15/webthumb-server-move/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Adding Supr urls to your site</title>
		<link>http://blog.joshuaeichorn.com/archives/2009/06/30/adding-supr-urls/</link>
		<comments>http://blog.joshuaeichorn.com/archives/2009/06/30/adding-supr-urls/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 17:19:53 +0000</pubDate>
		<dc:creator>Joshua Eichorn</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Stumbleupon]]></category>
		<category><![CDATA[su.pr]]></category>

		<guid isPermaLink="false">http://blog.joshuaeichorn.com/?p=383</guid>
		<description><![CDATA[Over the last couple months I had a chance to help create a great new product for Stumbleupon. Su.pr lets create short urls, publish directly to Facebook and Twitter and gives you great tracking and statistics around them. Su.pr also helps you get more traffic by making it easy to get your content in front [...]]]></description>
			<content:encoded><![CDATA[<p>Over the last couple months I had a chance to help create a great new product for <a href="http://www.stumbleupon.com/">Stumbleupon</a>.  <a href="http://su.pr/">Su.pr</a> lets create short urls, publish directly to Facebook and Twitter and gives you great tracking and statistics around them.  Su.pr also helps you get more traffic by making it easy to get your content in front of the Stumbleupon community.</p>
<p>Last week we launched our <a href="http://stumbleupon.com/devblog/stumbleupon_developer_blog_and_supr_api/">API</a> which lets you integrate shorten and post functionality into any site or application.  Today we are adding the ability to use your own domain for shortening.  This lets you have urls like <a href="http://joshuaeichorn.com/9OPL">http://joshuaeichorn.com/9OPL</a> so your readers can know what domain they are going too before they click on the link.</p>
<p>Now down to the fun part installation.</p>
<h2>Step 1, Sign up for Su.pr</h2>
<p>Just go to the su.pr homepage and sign up using <code>suprjosh</code> for the invite code (The code is good for 500 sign ups).</p>
<h2>Step 2, install and configure the PHP re-director</h2>
<p>I&#8217;m not going go over this in detail since <a href="http://www.stumbleupon.com/developers/Supr:Short_URLs_on_your_own_domain/">instructions</a> are already available from su.pr.</p>
<p><b>Note:</b> when installing the rewrite rule you&#8217;ll want to make sure its not catching any of your other pages, I put mine after all my custom rules and added a condition to check the given url wasn&#8217;t the name of a file or directory.</p>
<pre>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^[a-zA-Z0-9]{4}$ supr.php?supr=$0
RewriteRule ^supr_settings.json$ supr.php?check_install=$0
</pre>
<p>If your doing your URL rewriting in PHP you might want to handle the link detection there instead, but 4 character words with no extension aren&#8217;t too common.</p>
<h2>Step 3, Test is out</h2>
<p>Now that you are up and running any short url created on Su.pr for your domain will be use your domain instead of su.pr for the shortening.  If you ran into any problems let me know, I will see what I can do to help.</p>
<h2>Details on how things work</h2>
<ul>
<li>The settings on your server tell Su.pr if it has a redirector</li>
<li>If the redirector is enable all new Su.pr urls for the matching domain are made with your domain</li>
<li>Requests go to your server and are picked up by the rewrite rule</li>
<li>The redirector on your server makes a call to the Su.pr API which returns a domain redirection url, something like http://su.pr/d/joshuaeichorn.com/abcd</li>
<li>The user is redirected back to su.pr and then forwarded to the correct page on your server</li>
</ul>
<p>The double redirection at the end lets us collect stats and do the required setup for showing the Javascript version of the Stumbleupon toolbar.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.joshuaeichorn.com/archives/2009/06/30/adding-supr-urls/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Hbase fun</title>
		<link>http://blog.joshuaeichorn.com/archives/2009/05/12/hbase-fun/</link>
		<comments>http://blog.joshuaeichorn.com/archives/2009/05/12/hbase-fun/#comments</comments>
		<pubDate>Tue, 12 May 2009 21:04:25 +0000</pubDate>
		<dc:creator>Joshua Eichorn</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Stumbleupon]]></category>

		<guid isPermaLink="false">http://blog.joshuaeichorn.com/?p=381</guid>
		<description><![CDATA[For the last couple weeks I&#8217;ve been working pretty heavily with Hbase. It decidedly has different usage patterns then Mysql, but since I don&#8217;t often get to use anything relational in Mysql because of performance reasons it hasn&#8217;t been to hard to wrap my head around. Of course having an Hbase committer a couple desks [...]]]></description>
			<content:encoded><![CDATA[<p>For the last couple weeks I&#8217;ve been working pretty heavily with <a href="http://wiki.apache.org/hadoop/Hbase">Hbase</a>.  It decidedly has different usage patterns then Mysql, but since I don&#8217;t often get to use anything relational in Mysql because of performance reasons it hasn&#8217;t been to hard to wrap my head around.  Of course having an <a href="http://ryantwopointoh.blogspot.com/2009/05/hbase-update-and-020.html">Hbase committer</a> a couple desks over has helped the process a lot.</p>
<p>So far the biggest issue has been getting access in PHP, we use thrift for that but the raw API leaves a lot to be desired.  Luckily it wasn&#8217;t too big of a job to wrap things.  Now I get joys of schema-less tables, atomic counters, great performance, and reliability.  Now i just need to figure out how to get a small cluster for <a href="http://webthumb.bluga.net">my own projects</a> in a cost effective way.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.joshuaeichorn.com/archives/2009/05/12/hbase-fun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blog fixing</title>
		<link>http://blog.joshuaeichorn.com/archives/2009/05/08/blog-fixing/</link>
		<comments>http://blog.joshuaeichorn.com/archives/2009/05/08/blog-fixing/#comments</comments>
		<pubDate>Fri, 08 May 2009 22:41:55 +0000</pubDate>
		<dc:creator>Joshua Eichorn</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2009/05/08/blog-fixing/</guid>
		<description><![CDATA[Just realized enscript isn&#8217;t installed on my server anymore so all my posts with highlighted code examples were broken. Sorry about that, fixed now.]]></description>
			<content:encoded><![CDATA[<p>Just realized enscript isn&#8217;t installed on my server anymore so all my posts with highlighted code examples were broken.  Sorry about that, fixed now.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.joshuaeichorn.com/archives/2009/05/08/blog-fixing/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Webthumb Status Update</title>
		<link>http://blog.joshuaeichorn.com/archives/2009/02/11/webthumb-status-update/</link>
		<comments>http://blog.joshuaeichorn.com/archives/2009/02/11/webthumb-status-update/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 23:27:02 +0000</pubDate>
		<dc:creator>Joshua Eichorn</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[outage]]></category>
		<category><![CDATA[Webthumb]]></category>

		<guid isPermaLink="false">http://blog.joshuaeichorn.com/archives/2009/02/11/webthumb-status-update/</guid>
		<description><![CDATA[There was an Webthumb outage yesterday, the main server Kernel Panic&#8217;d and didn&#8217;t reboot properly. DNS was switched to the backup server, and for most users there was no noticable change. However there was a bit of database skew between the 2 servers so some accounts weren&#8217;t available on the backup. Because of this all [...]]]></description>
			<content:encoded><![CDATA[<p>There was an Webthumb outage yesterday, the main server Kernel Panic&#8217;d and didn&#8217;t reboot properly.  DNS was switched to the backup server, and for most users there was no noticable change.</p>
<p>However there was a bit of database skew between the 2 servers so some accounts weren&#8217;t available on the backup.<br />
Because of this all webthumb usage on the backup server won&#8217;t be charge to your accounts.  It also won&#8217;t show up in your history so if you need a thumbnail after the cut back please <a href="http://bluga.mojohelpdesk.com/">open a ticket</a> and I will grab the files for you.</p>
<p>(You can also grab them directly by replacing http://webthumb.bluga.net with http://api1.bluga.net).</p>
<p>The DNS switch back to the primary server is happening within the hour, let me know if you have any problems.</p>
<p>On an un-related note Bluga.net now has a <a href="http://bluga.mojohelpdesk.com/">helpdesk</a>, feel free to use it too notify me of any problems your having.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.joshuaeichorn.com/archives/2009/02/11/webthumb-status-update/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Webthumb Updates</title>
		<link>http://blog.joshuaeichorn.com/archives/2009/01/21/webthumb-updates-2/</link>
		<comments>http://blog.joshuaeichorn.com/archives/2009/01/21/webthumb-updates-2/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 17:17:32 +0000</pubDate>
		<dc:creator>Joshua Eichorn</dc:creator>
				<category><![CDATA[Webthumb]]></category>

		<guid isPermaLink="false">http://blog.joshuaeichorn.com/?p=361</guid>
		<description><![CDATA[I haven&#8217;t been actively blogging as of late, this is not likely to change, but here is some quick Webthumb news. The PHP apiwrapper has been updated, there have been some API updates but nothing recently. One important item is that is uses version switching in the request to improve error handling. You can grab [...]]]></description>
			<content:encoded><![CDATA[<p>I haven&#8217;t been actively blogging as of late, this is not likely to change, but here is some quick <a href="http://webthumb.bluga.net/">Webthumb</a> news.</p>
<p>The PHP apiwrapper has been updated, there have been some API updates but nothing recently.  One important item is that is uses version switching in the request to improve error handling.</p>
<p>You can grab it from <a href="http://svn.bluga.net/Bluga/trunk/">svn</a> or from the <a href="http://webthumb.bluga.net/wrapper-php-">download page</a>.</p>
<p>Since webthumb is now running on 2 physical servers pricing, I&#8217;m spending less on Amazon aws services this has allowed me to <a href="http://webthumb.bluga.net/purchase">reduce prices</a>.  For volume purchases you can get credits at $1.25 per 1000.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.joshuaeichorn.com/archives/2009/01/21/webthumb-updates-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WebThumb is back up</title>
		<link>http://blog.joshuaeichorn.com/archives/2008/11/04/webthumb-is-back-up/</link>
		<comments>http://blog.joshuaeichorn.com/archives/2008/11/04/webthumb-is-back-up/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 04:21:24 +0000</pubDate>
		<dc:creator>Joshua Eichorn</dc:creator>
				<category><![CDATA[Webthumb]]></category>

		<guid isPermaLink="false">http://blog.joshuaeichorn.com/?p=359</guid>
		<description><![CDATA[Once the dns change fully propagates Webthumb will be back up and fully running. If you had a different apikey on the backup instance you will want to switch back to your normal apikey. Your apikey is viewable on your user home page. More news and a we&#8217;re sorry gift of credits will be coming [...]]]></description>
			<content:encoded><![CDATA[<p>Once the dns change fully propagates Webthumb will be back up and fully running.  If you had a different apikey on the backup instance you will want to switch back to your normal apikey.  Your apikey is viewable on your user home page.</p>
<p>More news and a we&#8217;re sorry gift of credits will be coming soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.joshuaeichorn.com/archives/2008/11/04/webthumb-is-back-up/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Its Alive</title>
		<link>http://blog.joshuaeichorn.com/archives/2008/11/04/its-alive/</link>
		<comments>http://blog.joshuaeichorn.com/archives/2008/11/04/its-alive/#comments</comments>
		<pubDate>Wed, 05 Nov 2008 03:09:34 +0000</pubDate>
		<dc:creator>Joshua Eichorn</dc:creator>
				<category><![CDATA[pear]]></category>
		<category><![CDATA[phpDocumentor]]></category>
		<category><![CDATA[Webthumb]]></category>

		<guid isPermaLink="false">http://blog.joshuaeichorn.com/?p=356</guid>
		<description><![CDATA[My blog and the rest of my sites are back up again, running on new hardware. The 2nd backup server/thumbnail processor is still waiting on some heat sinks before it can get installed but now were running on a server with next day dell support. I&#8217;ll have more details on webthumb changes once the dns [...]]]></description>
			<content:encoded><![CDATA[<p>My blog and the rest of my sites are back up again, running on new hardware.</p>
<p>The 2nd backup server/thumbnail processor is still waiting on some heat sinks before it can get installed but now were running on a server with next day dell support.</p>
<p>I&#8217;ll have more details on <a href="http://webthumb.bluga.net">webthumb</a> changes once the dns has been updated.  But the biggest difference will be a full time backup API which will be available all the time and support transparent fail over.</p>
<p>The pear wiki, and phpdoc.org should be back as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.joshuaeichorn.com/archives/2008/11/04/its-alive/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>5 Million thumbnails</title>
		<link>http://blog.joshuaeichorn.com/archives/2008/09/15/5-million-thumbnails/</link>
		<comments>http://blog.joshuaeichorn.com/archives/2008/09/15/5-million-thumbnails/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 15:54:30 +0000</pubDate>
		<dc:creator>Joshua Eichorn</dc:creator>
				<category><![CDATA[Webthumb]]></category>

		<guid isPermaLink="false">http://blog.joshuaeichorn.com/?p=354</guid>
		<description><![CDATA[Webthumb hit 5 million thumbnails some time last night. This blows away the last million time, taking just 34 days for this million. On that note contact me if you are interested in bulk purchases of credits. For purchases of 250k credits or more the rate is $1.25 per 1000. If you will be using [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://webthumb.bluga.net">Webthumb</a> hit 5 million thumbnails some time last night.  This blows away the last million time, taking just 34 days for this million.</p>
<p>On that note <a href="mailto:josh@bluga.net">contact me</a> if you are interested in bulk purchases of credits.  For purchases of 250k credits or more the rate is $1.25 per 1000.  If you will be using more then 250k credits a month additional discounts are available, depending on your usage patterns.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.joshuaeichorn.com/archives/2008/09/15/5-million-thumbnails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Webthumb API Change</title>
		<link>http://blog.joshuaeichorn.com/archives/2008/08/24/webthumb-api-change/</link>
		<comments>http://blog.joshuaeichorn.com/archives/2008/08/24/webthumb-api-change/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 05:15:33 +0000</pubDate>
		<dc:creator>Joshua Eichorn</dc:creator>
				<category><![CDATA[Webthumb]]></category>

		<guid isPermaLink="false">http://blog.joshuaeichorn.com/?p=352</guid>
		<description><![CDATA[Error handling for Webthumb job requests has changed. Requests with bad urls are now silently ignored instead of dropping the entire request at the first error. This will fix problems with bad urls in multi-request submissions. Let me know if you have any concerns.]]></description>
			<content:encoded><![CDATA[<p>Error handling for Webthumb job requests has changed.  Requests with bad urls are now silently ignored instead of dropping the entire request at the first error.</p>
<p>This will fix problems with bad urls in multi-request submissions.  Let me know if you have any concerns.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.joshuaeichorn.com/archives/2008/08/24/webthumb-api-change/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

