<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>Too-biased - Home</title>
  <id>tag:blog.leetsoft.com,2009:mephisto/</id>
  <generator version="0.7.3" uri="http://mephistoblog.com">Mephisto Noh-Varr</generator>
  <link href="http://blog.leetsoft.com/feed/atom.xml" rel="self" type="application/atom+xml"/>
  <link href="http://blog.leetsoft.com/" rel="alternate" type="text/html"/>
  <updated>2008-12-20T18:07:28Z</updated>
  <entry xml:base="http://blog.leetsoft.com/">
    <author>
      <name>tobi</name>
    </author>
    <id>tag:blog.leetsoft.com,2008-12-20:4667</id>
    <published>2008-12-20T18:07:00Z</published>
    <updated>2008-12-20T18:07:28Z</updated>
    <category term="Talks"/>
    <link href="http://blog.leetsoft.com/2008/12/20/benjamin-zander" rel="alternate" type="text/html"/>
    <title>Benjamin Zander</title>
<content type="html">
            &lt;p&gt;Thanks to &lt;a href=&quot;http://twitter.com/igrigorik/status/1066344417&quot;&gt;@igrigorik&lt;/a&gt;&amp;nbsp;for the link to this wonderful &lt;a href=&quot;http://en.wikipedia.org/wiki/Benjamin_Zander&quot;&gt;Benjamin Zander&lt;/a&gt; talk&lt;/p&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;object height=&quot;322&quot; width=&quot;512&quot;&gt;
&amp;lt;param /&gt;
&amp;lt;param /&gt;
&amp;lt;param /&gt;
&amp;lt;param /&gt;
&amp;lt;param /&gt;&amp;lt;embed src=&quot;http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.30&quot; height=&quot;322&quot; width=&quot;512&quot;&gt;&amp;lt;/embed&gt;&amp;lt;/object&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;a href=&#8221;&lt;a href=&quot;http://video.yahoo.com/watch/10444215/10444215&quot;&gt;http://video.yahoo.com/watch/10444215/10444215&lt;/a&gt;&#8221;&amp;gt;&amp;lt;/a&amp;gt; @ &amp;lt;a href=&#8221;&lt;a href=&quot;http://video.yahoo.com&quot;&gt;http://video.yahoo.com&lt;/a&gt;&#8221; &amp;gt;Yahoo! Video&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/object&gt;
&lt;/div&gt;
          </content>  </entry>
  <entry xml:base="http://blog.leetsoft.com/">
    <author>
      <name>tobi</name>
    </author>
    <id>tag:blog.leetsoft.com,2008-12-13:4664</id>
    <published>2008-12-13T03:51:00Z</published>
    <updated>2008-12-18T03:46:34Z</updated>
    <link href="http://blog.leetsoft.com/2008/12/13/facebook-s-memcahed" rel="alternate" type="text/html"/>
    <title>Facebook's memcached</title>
<content type="html">
            &lt;p&gt;Facebook&#8217;s server installation has been a point of interest for a long time. When an engineer on the memcached mailing list casually mentioned that they are running 4TB  worth of caches, a lot of people got their panties in a knot.&lt;/p&gt;


	&lt;p&gt;Since then Facebook has been more forthcoming with details about their exciting architecture. For example they &lt;a href=&quot;http://www.facebook.com/note.php?note_id=23844338919&quot;&gt;explained how they created a custom Mysql&lt;/a&gt; to solve problems with cross-datacenter cache expiry and replication lag which is a great read for anyone looking into multi location hosting.&lt;/p&gt;


	&lt;p&gt;&lt;a href=&quot;http://www.facebook.com/note.php?note_id=39391378919&amp;amp;#38;id=9445547199&amp;amp;#38;index=0&quot;&gt;Today there was another memcached centric post&lt;/a&gt; that talks about their fork of the memcached codebase which they also made &lt;a href=&quot;http://github.com/fbmarc/facebook-memcached/tree/master&quot;&gt;available on github&lt;/a&gt;.&lt;/p&gt;


	&lt;blockquote&gt;
		&lt;p&gt; We use more than 800 servers supplying over 28 terabytes of memory to our users. Over the past year as Facebook&#8217;s popularity has skyrocketed, we&#8217;ve run into a number of scaling issues. This ever increasing demand has required us to make modifications to both our operating system and memcached to achieve the performance that provides the best possible experience for our users. [...]&lt;/p&gt;
	&lt;/blockquote&gt;


	&lt;p&gt;Fascinating read.&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://blog.leetsoft.com/">
    <author>
      <name>tobi</name>
    </author>
    <id>tag:blog.leetsoft.com,2008-11-15:4625</id>
    <published>2008-11-15T18:14:00Z</published>
    <updated>2008-11-15T19:13:45Z</updated>
    <category term="Code"/>
    <category term="Rails"/>
    <link href="http://blog.leetsoft.com/2008/11/15/passenger" rel="alternate" type="text/html"/>
    <title>Passenger</title>
<content type="html">
            &lt;p&gt;So there is a lot of talk about &lt;a href=&quot;http://www.modrails.com/&quot;&gt;Phusion Passenger&lt;/a&gt; lately and I feel the need to chime in here. David pointed out that &lt;a href=&quot;http://loudthinking.com/posts/30-myth-1-rails-is-hard-to-deploy&quot;&gt;Shopify is running on passenger&lt;/a&gt; which is something I &lt;a href=&quot;http://twitter.com/tobi/statuses/922799148&quot;&gt;announced on Twitter&lt;/a&gt; a few months ago.&lt;/p&gt;


	&lt;p&gt;Some context on Shopify&#8217;s installation: We launched Shopify originally on Lighttpd with FastCGI and later migrated to nginx with mongrels. Obviously we had to use HAProxy between Nginx and mongrels to avoid the dreaded &#8220;queue behind long running process&#8221; problem. We also added Monit to the mix which observed all mongrels to make sure that everything  is running according to plan. After a process reaches 260 mb of memory we signal it to shut down after the next request so that a new one can start out with less memory. For this we added runit to the mix which supervises the mongrels and starts them up quickly once they hit the ground.&lt;/p&gt;


	&lt;p&gt;It&#8217;s important to note that we are not talking about a memory leak here. The reason for the 260mb ceiling comes from two issues with Ruby&#8217;s garbage collector:&lt;/p&gt;


	&lt;ol&gt;
	&lt;li&gt;It allocates memory in very large chunks once the available memory gets low. This means a 140mb process increases to 260mb in a single go. It also never gives memory back to the operating system because Ruby&#8217;s GC is not able to move objects. Once it adds an object into the newly allocated space and that object remains alive, it cannot yield memory back to the OS. &lt;/li&gt;
		&lt;li&gt;Because Ruby&#8217;s garbage collector uses mark and sweep it has to traverse the entire memory space in search of pointers. There are no generations that help with that. It means that GC cycles become longer and longer the more memory is available. &lt;del&gt;-Rails mitigates these issues by moving a full GC run behind a &lt;span class=&quot;caps&quot;&gt;HTTP&lt;/span&gt; response, into the time period when the process is waiting for a new request&lt;/del&gt; (&lt;strong&gt;Update:&lt;/strong&gt; Rails doesn&#8217;t do this anymore) but performance monitoring tools such as &lt;a href=&quot;https://rpm.newrelic.com/&quot;&gt;NewRelic&lt;/a&gt; clearly show that average response times is directly correlated with the amount of memory used across the server farm.&lt;/li&gt;
	&lt;/ol&gt;


	&lt;p&gt;Now why did we switch to Passenger? Simple: the keyword is &lt;strong&gt;remove moving parts&lt;/strong&gt;.&lt;/p&gt;


	&lt;p&gt;Every additional tool you add will come with it&#8217;s own bugs. Many people I talked to over the past years considered haproxy to be the most solid piece of infrastructure in their stack but even there was a really &lt;a href=&quot;http://haproxy.1wt.eu/news.html&quot;&gt;nasty bug&lt;/a&gt; recently (search for request queue handling).&lt;/p&gt;


	&lt;p&gt;We treat our server farm very similar to Shopify&#8217;s codebase. We are in this for the long haul and we cannot accept complex solutions when simple ones present themselves. Maintainability of our code and servers is paramount to the long term success of our product. Yes the Mongrel setup worked very well but Passenger allowed us to remove: Nginx, Haproxy, Runit and Monit. That&#8217;s a nice refactoring!&lt;/p&gt;


	&lt;p&gt;At the same time Passenger introduced some tangible improvements. We switched to enterprise ruby to get the full benefit of the &lt;acronym title=&quot;Copy on Write&quot;&gt;COW&lt;/acronym&gt; memory characteristics and we can absolutely confirm the memory savings of 30%  some others have reported. This is many thousand dollars of savings even at today&#8217;s hardware prices. We allow Passenger to adaptively spawn more processes with demand but most of the time our application servers are running about 40 processes to handle more than a million dynamic requests a day. However, because passenger constantly despawns and respawns rails processes they always stay fresh, run short GC cycles and are generally a lot more responsive. All this means that the total amount of memory that is used by Shopify during normal operations went from average of 9GB to an average of 5GB. We evenly distributed the savings amongst more Shopify processes and more memcached space which moved our average response time from 210ms to 130ms while traffic grew 30% in the last few months.&lt;/p&gt;


	&lt;p&gt;In conclusion: I cannot see any reason to choose a different deployment strategy at this point. Its simple, complete, fast and well documented.&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://blog.leetsoft.com/">
    <author>
      <name>tobi</name>
    </author>
    <id>tag:blog.leetsoft.com,2008-11-07:4620</id>
    <published>2008-11-07T17:30:00Z</published>
    <updated>2008-11-07T17:34:46Z</updated>
    <link href="http://blog.leetsoft.com/2008/11/7/interview" rel="alternate" type="text/html"/>
    <title>Interview</title>
<content type="html">
            &lt;p&gt;&lt;a href=&quot;www.openvista.com&quot;&gt;openvista&lt;/a&gt; posted their &lt;a href=&quot;http://www.openvista.com/index.ov#p14_November_06_2008&quot;&gt;interview with me&lt;/a&gt; in which I talk about entrepreneurship and the early days of Shopify.&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://blog.leetsoft.com/">
    <author>
      <name>tobi</name>
    </author>
    <id>tag:blog.leetsoft.com,2008-10-28:4615</id>
    <published>2008-10-28T18:02:00Z</published>
    <updated>2008-10-28T18:04:53Z</updated>
    <link href="http://blog.leetsoft.com/2008/10/28/rockstar-memcaching-video" rel="alternate" type="text/html"/>
    <title>Rockstar Memcaching (video)</title>
<content type="html">
            &lt;p&gt;InfoQ posted the video to my &lt;a href=&quot;http://blog.leetsoft.com/2008/7/21/rockstar-memcaching&quot;&gt;rockstar memcaching&lt;/a&gt; presentation from ruby fringe.&lt;/p&gt;


	&lt;p&gt;&lt;a href=&quot;http://www.infoq.com/presentations/lutke-rockstar-memcaching&quot;&gt;Rockstar Memcaching Video&lt;/a&gt;&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://blog.leetsoft.com/">
    <author>
      <name>tobi</name>
    </author>
    <id>tag:blog.leetsoft.com,2008-10-23:4613</id>
    <published>2008-10-23T22:08:00Z</published>
    <updated>2008-10-23T22:09:38Z</updated>
    <link href="http://blog.leetsoft.com/2008/10/23/mobile-development" rel="alternate" type="text/html"/>
    <title>Mobile Development</title>
<content type="html">
            &lt;p&gt;I&#8217;ve been playing around with mobile development lately which is a nice change of pace. Before Shopify and Rails I used to count myself amongst the ranks of the C++ desktop developers ( go &lt;span class=&quot;caps&quot;&gt;WTL&lt;/span&gt;!! ) so in many ways the concepts of mobile development feel like the good&#8217; old times&#8212;without all the things that drive you up the walls.&lt;/p&gt;


	&lt;p&gt;What&#8217;s so fun about it is the innocence of it all. It&#8217;s the gold rush all over again. For example that bastard Hampton managed to sell his Wikipedia browser iPedia 50k times. Check out &lt;a href=&quot;http://www.mobileorchard.com&quot;&gt;www.mobileorchard.com&lt;/a&gt; which just published an &lt;a href=&quot;http://www.mobileorchard.com/podcast-interview-with-hampton-catlin/&quot;&gt;interview with him&lt;/a&gt;.&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://blog.leetsoft.com/">
    <author>
      <name>tobi</name>
    </author>
    <id>tag:blog.leetsoft.com,2008-10-11:4607</id>
    <published>2008-10-11T17:28:00Z</published>
    <updated>2008-10-11T17:28:32Z</updated>
    <link href="http://blog.leetsoft.com/2008/10/11/lhc-rap" rel="alternate" type="text/html"/>
    <title>LHC Rap</title>
<content type="html">
            &lt;p&gt;via &lt;a href=&quot;http://www.youtube.com/watch?v=j50ZssEojtM&quot;&gt;youtube&lt;/a&gt;&lt;/p&gt;


&amp;lt;object height=&quot;344&quot; width=&quot;425&quot;&gt;&amp;lt;param&gt;&amp;lt;/param&gt;&amp;lt;param&gt;&amp;lt;/param&gt;&amp;lt;embed src=&quot;http://www.youtube.com/v/j50ZssEojtM&amp;amp;#38;hl=en&amp;amp;#38;fs=1&quot; height=&quot;344&quot; width=&quot;425&quot;&gt;&amp;lt;/embed&gt;&amp;lt;/object&gt;
          </content>  </entry>
  <entry xml:base="http://blog.leetsoft.com/">
    <author>
      <name>tobi</name>
    </author>
    <id>tag:blog.leetsoft.com,2008-10-06:4606</id>
    <published>2008-10-06T18:41:00Z</published>
    <updated>2008-10-06T18:44:42Z</updated>
    <link href="http://blog.leetsoft.com/2008/10/6/shopify-blogging" rel="alternate" type="text/html"/>
    <title>Shopify Blogging</title>
<content type="html">
            &lt;p&gt;Brand and community development where always the guiding principles behind &lt;a href=&quot;http://www.shopify.com&quot;&gt;Shopify&lt;/a&gt; and today we launched an important aspect of this: Your visitors can now comment on blog posts.&lt;/p&gt;


	&lt;p&gt;&lt;a href=&quot;http://blog.shopify.com/2008/10/6/new-feature-comments-for-blogs&quot;&gt;Read more about it on the shopify blog&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;We will provide an import tool for wordpress and other blogging systems soon (implemented as an open source shopify api app. )&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://blog.leetsoft.com/">
    <author>
      <name>tobi</name>
    </author>
    <id>tag:blog.leetsoft.com,2008-08-31:4590</id>
    <published>2008-08-31T01:54:00Z</published>
    <updated>2008-08-31T01:58:16Z</updated>
    <link href="http://blog.leetsoft.com/2008/8/31/liquid-js" rel="alternate" type="text/html"/>
    <title>Liquid JS</title>
<content type="html">
            &lt;p&gt;Color me impressed.&lt;/p&gt;


	&lt;p&gt;&lt;a href=&quot;http://www.mattmccray.com&quot;&gt;Matt Mccray&lt;/a&gt; ported Liquid to javascript. &lt;a href=&quot;http://gist.github.com/8150&quot;&gt;Go here&lt;/a&gt; to get the gist of it (yea, bad pun)&lt;/p&gt;


	&lt;p&gt;Pretty awesome work Matt :-)&lt;/p&gt;


&lt;pre&gt;&lt;code&gt;
&amp;lt;script&amp;gt;
 Liquid.readTemplateFile = function(path) {
  var elem = $(path);
  if(elem) {
    return elem.innerHTML;
  } else {
    path +&quot; can't be found.&quot;; // Or throw and error, or whatever you want...
  }
 }

 var tmpl = Liquid.parse(&quot;{% include 'myOtherTemplate' with current_user %}&quot;); 
 alert( tmpl.render({ current_user:'M@' }));
&amp;lt;/script&amp;gt;

&amp;lt;script type=&quot;text/liquid&quot; id=&quot;myOtherTemplate&quot;&amp;gt;
  Hello, {{ current_user }}!
&amp;lt;/script&amp;gt;

&lt;/code&gt;&lt;/pre&gt;
          </content>  </entry>
  <entry xml:base="http://blog.leetsoft.com/">
    <author>
      <name>tobi</name>
    </author>
    <id>tag:blog.leetsoft.com,2008-08-22:4585</id>
    <published>2008-08-22T19:14:00Z</published>
    <updated>2008-08-22T20:06:56Z</updated>
    <link href="http://blog.leetsoft.com/2008/8/22/competitor-comedy" rel="alternate" type="text/html"/>
    <title>Competitor Comedy</title>
<content type="html">
            &lt;p&gt;&lt;a href=&quot;http://www.shopify.com&quot;&gt;Shopify&lt;/a&gt; got profiled last week in Practical E-Commerce as &lt;a href=&quot;http://www.practicalecommerce.com/articles/800-Cart-Of-The-Week-Shopify&quot;&gt;cart of the week&lt;/a&gt; . According to them they found 300 different Shopping cart packages, I know our market was big but that&#8217;s pretty insane.&lt;/p&gt;


	&lt;p&gt;Anyways, their Cart of the Week feature pits one Cart against another by asking a competitor to comment on the software, &lt;span class=&quot;caps&quot;&gt;CNN&lt;/span&gt; style. In our case they asked Rick Wilson of Miva Merchant to comment on Shopify. Here is what he dislikes:&lt;/p&gt;


	&lt;blockquote&gt;
		&lt;p&gt;The obvious weaknesses I saw were the limits on what they called ‘enterprise’ level offering of only 10,000 SKUs. The other major weakness is the product is built using Ruby On Rails. Ruby On Rails seems to be a development environment with a lot of future possibilities, &lt;strong&gt;but as a general rule you don’t want your revenue-generating product to be based on cutting edge technology. There’s a lot of unforeseeable pitfalls in that area.&lt;/strong&gt;&lt;/p&gt;
	&lt;/blockquote&gt;


	&lt;p&gt;(emphasis mine).&lt;/p&gt;


	&lt;p&gt;So to deconstruct the first part of this argument let me just say that we have millions of products in Shopify right now and it&#8217;s a pure business decision to limit SKUs to 10k and has nothing to do with the software. There are millions of products in the database. In fact i&#8217;d buy Rick lunch if Shopify isn&#8217;t right now handling twice the traffic any given Miva Merchant store has ever sustained.&lt;/p&gt;


	&lt;p&gt;What&#8217;s left is the advice that you shouldn&#8217;t run a revenue-generating web site based on cutting edge technology. I don&#8217;t think I have to point out how ridiculous that statement is. First of all I presume that perl was pretty cutting edge ( definitely more than ruby is today ) in 1998 when Miva was written and also we are talking about bloody Miva Merchant here, the e-commerce system that runs on a proprietary closed source database that is known for corruption issues after several hundred products. Not only that, it seems to be one of their main sources of revenue: For &lt;a href=&quot;http://www.mivamerchant.com/services/serviceclub/&quot;&gt;129$ setup + 20$ a month&lt;/a&gt; you can get some support and basic database recovery. Unfortunately:&lt;/p&gt;


	&lt;blockquote&gt;
		&lt;p&gt;** Due to the nature of database problems not all database corruption can be covered under this package&lt;/p&gt;
	&lt;/blockquote&gt;


	&lt;p&gt;Isn&#8217;t it nice that you never have to worry about such tactics with hosted systems and SaaS packages like Shopify?&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://blog.leetsoft.com/">
    <author>
      <name>tobi</name>
    </author>
    <id>tag:blog.leetsoft.com,2008-07-21:4571</id>
    <published>2008-07-21T09:37:00Z</published>
    <updated>2008-10-28T18:03:32Z</updated>
    <link href="http://blog.leetsoft.com/2008/7/21/rockstar-memcaching" rel="alternate" type="text/html"/>
    <title>Rockstar Memcaching</title>
<content type="html">
            &lt;p&gt;I&#8217;m back from &lt;a href=&quot;http://rethink.unspace.ca/2008/7/20/we-are-rubyfringe&quot;&gt;Rubyfringe&lt;/a&gt; which was hands down the best conference i&#8217;ve been to.&lt;/p&gt;


	&lt;p&gt;Pete Forde asked me to present on memcached (mem-cache-dee) after my popular blog article &lt;a href=&quot;http://blog.leetsoft.com/2007/5/22/the-secret-to-memcached&quot;&gt;Secret to memcached&lt;/a&gt;. The talk covers different use cases such as simple html snippet stores to advanced expiry systems such as generational cache keys.&lt;/p&gt;


	&lt;p&gt;Every talk at rubyfringe was taped so I&#8217;ll update this space with the video once its online. In the meantime enjoy the slides which probably make zero sense on their own.&lt;/p&gt;


	&lt;p&gt;&lt;a href=&quot;http://blog.leetsoft.com/assets/2008/7/21/Rubyfringe.pdf&quot;&gt;Download the &lt;span class=&quot;caps&quot;&gt;PDF&lt;/span&gt;&lt;/a&gt; or watch it on slideshare:&lt;/p&gt;


&lt;div&gt;&lt;a href=&quot;http://www.slideshare.net/guest807bb2/rubyfringe?src=embed&quot; title=&quot;Rubyfringe&quot;&gt;Rubyfringe&lt;/a&gt;&amp;lt;object height=&quot;355&quot; width=&quot;425&quot;&gt;&amp;lt;param /&gt;&amp;lt;param /&gt;&amp;lt;param /&gt;&amp;lt;embed src=&quot;http://static.slideshare.net/swf/ssplayer2.swf?doc=rubyfringe-1216650794678661-8&quot; height=&quot;355&quot; width=&quot;425&quot;&gt;&amp;lt;/embed&gt;&amp;lt;/object&gt;&lt;div&gt;view &lt;a href=&quot;http://www.slideshare.net/guest807bb2/rubyfringe?src=embed&quot; title=&quot;View Rubyfringe on SlideShare&quot;&gt;presentation&lt;/a&gt; (tags: &lt;a href=&quot;http://slideshare.net/tag/memcached&quot;&gt;memcached&lt;/a&gt; &lt;a href=&quot;http://slideshare.net/tag/ruby&quot;&gt;ruby&lt;/a&gt; &lt;a href=&quot;http://slideshare.net/tag/code&quot;&gt;code&lt;/a&gt; &lt;a href=&quot;http://slideshare.net/tag/talk&quot;&gt;talk&lt;/a&gt;)&lt;/div&gt;&lt;/div&gt;

	&lt;p&gt;P.S: 30 minute is the ideal length for talks at a Tech Conference.&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; The video was &lt;a href=&quot;http://www.infoq.com/presentations/lutke-rockstar-memcaching&quot;&gt;posted here&lt;/a&gt;&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://blog.leetsoft.com/">
    <author>
      <name>tobi</name>
    </author>
    <id>tag:blog.leetsoft.com,2008-07-07:4568</id>
    <published>2008-07-07T19:41:00Z</published>
    <updated>2008-07-07T19:46:42Z</updated>
    <link href="http://blog.leetsoft.com/2008/7/7/shopify-sys-admin" rel="alternate" type="text/html"/>
    <title>Shopify Sys Admin</title>
<content type="html">
            &lt;p&gt;If you love servers you should consider applying for our &lt;a href=&quot;http://jobs.37signals.com/jobs/4002&quot;&gt;system administrator position&lt;/a&gt; . Flexible work hours and you get to work with all the coolest and latest technologies and a fantastic team.&lt;/p&gt;


	&lt;p&gt;&lt;a href=&quot;http://jobs.37signals.com/jobs/4002&quot;&gt;&lt;img src=&quot;http://blog.leetsoft.com/assets/2008/7/7/job.png&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://blog.leetsoft.com/">
    <author>
      <name>tobi</name>
    </author>
    <id>tag:blog.leetsoft.com,2008-07-07:4566</id>
    <published>2008-07-07T03:09:00Z</published>
    <updated>2008-07-07T03:10:00Z</updated>
    <link href="http://blog.leetsoft.com/2008/7/7/one-million-integers" rel="alternate" type="text/html"/>
    <title>One million integers?!</title>
<content type="html">
            &lt;p&gt;This is a great general purpose interview tip:&lt;/p&gt;


	&lt;p&gt;If you don&#8217;t know how to answer a question because it&#8217;s way outside of your 
expertise simply give it your best guess and negate the question.&lt;/p&gt;


	&lt;p&gt;&lt;a href=&quot;http://www.youtube.com/watch?v=k4RRi_ntQc8&quot;&gt;via youtube&lt;/a&gt;:&lt;/p&gt;


&amp;lt;object height=&quot;344&quot; width=&quot;425&quot;&gt;&amp;lt;param&gt;&amp;lt;/param&gt;&amp;lt;param&gt;&amp;lt;/param&gt;&amp;lt;embed src=&quot;http://www.youtube.com/v/k4RRi_ntQc8&amp;amp;#38;hl=en&amp;amp;#38;fs=1&quot; height=&quot;344&quot; width=&quot;425&quot;&gt;&amp;lt;/embed&gt;&amp;lt;/object&gt;

	&lt;p&gt;This can sometimes have pretty impressive results.&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://blog.leetsoft.com/">
    <author>
      <name>tobi</name>
    </author>
    <id>tag:blog.leetsoft.com,2008-05-17:4548</id>
    <published>2008-05-17T16:07:00Z</published>
    <updated>2008-05-17T16:22:01Z</updated>
    <link href="http://blog.leetsoft.com/2008/5/17/gecko-webkit-screenshots" rel="alternate" type="text/html"/>
    <title>Gecko/Webkit Screenshots</title>
<content type="html">
            &lt;p&gt;For our &lt;a href=&quot;http://search.shopify.com/search?q=Surfing&amp;amp;#38;min=&amp;amp;#38;max=&amp;amp;#38;limit=16&quot;&gt;Shopify Product Search&lt;/a&gt; we needed a good way to Screenshot web pages. There are some services on the web for this but we ended up building it but none of them fit our needs. They were either way to expensive, they didn&#8217;t produce nearly the quality we needed or they didn&#8217;t offer an &lt;span class=&quot;caps&quot;&gt;API&lt;/span&gt; at all.&lt;/p&gt;


	&lt;p&gt;Our solution was to install a headless X server in our server farm which runs firefox 2.0. We used a python &lt;span class=&quot;caps&quot;&gt;GTK&lt;/span&gt; automation script which navigates the Firefox instance to the page and then dumps the framebuffer into a png file when done. This works well enough but i&#8217;d like something more robust for a different project.&lt;/p&gt;


	&lt;p&gt;Ideally I&#8217;d like someone to build a screenshot tool based on Gecko or Webkit which can simply take an url and spit out an png. A dependency on an running X server is acceptable but I&#8217;d rather not have it running all the time because it complicates deployment a lot. It has to run on Linux and must not depend on a shared global resource, i.e. you should be able to take two screenshots at the same time.&lt;/p&gt;


	&lt;p&gt;If you know of a tool like the one I describe or if you think you could build something like this for me please &lt;a href=&quot;mailto:tobi@leetsoft.com&quot;&gt;contact me&lt;/a&gt;. This may be paid open source work.&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://blog.leetsoft.com/">
    <author>
      <name>tobi</name>
    </author>
    <id>tag:blog.leetsoft.com,2008-05-09:4536</id>
    <published>2008-05-09T01:13:00Z</published>
    <updated>2008-05-09T01:13:50Z</updated>
    <link href="http://blog.leetsoft.com/2008/5/9/twitter" rel="alternate" type="text/html"/>
    <title>Twitter</title>
<content type="html">
            &lt;p&gt;I need more &lt;a href=&quot;http://twitter.com/tobi&quot;&gt;followers on twitter&lt;/a&gt; :-)&lt;/p&gt;
          </content>  </entry>
</feed>
