<?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>2009-11-02T22:18:38Z</updated>
  <entry xml:base="http://blog.leetsoft.com/">
    <author>
      <name>tobi</name>
    </author>
    <id>tag:blog.leetsoft.com,2009-06-13:4683</id>
    <published>2009-06-13T23:48:00Z</published>
    <updated>2009-11-02T22:18:38Z</updated>
    <link href="http://blog.leetsoft.com/2009/6/13/build-and-deploy-a-shopify-app-in-8-minutes" rel="alternate" type="text/html"/>
    <title>Build and deploy a Shopify app in 8 minutes</title>
<content type="html">
            &lt;p&gt;Enjoy the screencast:&lt;/p&gt;


&amp;lt;object height=&quot;385&quot; width=&quot;480&quot;&gt;&amp;lt;param&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://www.youtube.com/v/OvzmAi3VhDQ&amp;amp;#38;hl=en&amp;amp;#38;fs=1&amp;amp;#38;hd=1&quot; height=&quot;385&quot; width=&quot;480&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,2009-06-02:4676</id>
    <published>2009-06-02T16:51:00Z</published>
    <updated>2009-06-02T21:46:43Z</updated>
    <link href="http://blog.leetsoft.com/2009/6/2/so-about-this-shopify-platform" rel="alternate" type="text/html"/>
    <title>So, about this Shopify Platform</title>
<content type="html">
            &lt;p&gt;Today marks two events.&lt;/p&gt;


	&lt;p&gt;&lt;a href=&quot;http://apps.shopify.com&quot;&gt;&lt;img src=&quot;http://blog.leetsoft.com/assets/2009/6/2/THUMB-dimitri3.jpg.jpeg&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;First, Shopify was launched exactly 3 years ago. I started hacking on it more than 5 years ago, originally just for myself so that I could sell snowboards online, free from the tyranny of horrible online store software such as Yahoo Stores, but it quickly grew into something much larger. Now we are a profitable multi-million dollar company with one of the best teams in the industry. It&#8217;s been an amazing ride, at times a bumpy road but never less than exhilarating.&lt;/p&gt;


	&lt;p&gt;The other event is the launch of something I&#8217;m infinitely excited about: the &lt;a href=&quot;http://www.shopify.com/developers/&quot;&gt;Shopify Platform&lt;/a&gt;. Let me explain. E-commerce is one of those software areas where individualization matters. This has been clear from day one of running Snowdevil and selling our first snowboard. If you build a store on the Internet you are providing a customer experience that is not unlike walking into any physical store in the downtown area of the town you live in. If the floorboards squeak, the wall colors don&#8217;t match, if the service is slow or the lighting is off, you will not like the experience. You won&#8217;t be back. There will probably be no sale. This goes for online stores as well. An online store must look good because you are building a brand of trust with your client. Poor design begets poor customers and poor customers lead to unsustainable margins. This is the reason I wrote liquid, which allows you to build &lt;a href=&quot;http://www.shopify.com/screenshots/&quot;&gt;awesome looking stores on Shopify&lt;/a&gt;.&lt;/p&gt;


	&lt;p&gt;However, there are a lot of common elements to every e-commerce store. There is this small nucleus of core functionality that all software has to provide (and most do). These are things like inventory management, order processing, payment processing, shipping support and so on. Shopify excels at all these things—our customer satisfaction rate is north of 90%. However after you are done with all those features something funny happens. The next feature everyone wants is different for each store. Some people want live auctions, some people want a wholesale area, some people want community forums, license key generation, digital delivery, integrations with MS Commerce Server, Oracle Inventory, international tax form printers, etc.&lt;/p&gt;


	&lt;p&gt;None of these features is particularly hard to implement. The problem is that they fail our basic test which we use to determine whether we should implement a feature or not: Implement &lt;strong&gt;what most people need most of the time&lt;/strong&gt;.&lt;/p&gt;


	&lt;p&gt;There is no cheating. Digital delivery is only needed by some people most of the time and international tax form printing is only needed by some people some of the time.&lt;/p&gt;


	&lt;p&gt;&lt;img src=&quot;http://blog.leetsoft.com/assets/2009/6/2/THUMB-dimitri1.jpg.jpeg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;


	&lt;p&gt;The trouble is, if we were to add all these features to Shopify, we would simply end up with software like the others on the market; filled to the brim with features that only some people need some of the time. I&#8217;m a firm believer that every time you add a feature to you are diminishing all other features. Adding features and especially adding elements to a user interface is not something to take lightly.&lt;/p&gt;


	&lt;p&gt;So that is the solution. Facebook and Salesforce showed us the way and this is what we are bringing to e-commerce: We are turning Shopify into a development platform and our merchants can supplement the pristine Shopify core with only the additional features they need. E-commerce à la carte.&lt;/p&gt;


	&lt;p&gt;The Shopify platform allows any programmer to create applications that integrate natively with the administration interface or storefront. These applications can be written in any language and communicate with Shopify using our &lt;a href=&quot;http://api.shopify.com/product.html&quot;&gt;handcrafted &lt;span class=&quot;caps&quot;&gt;REST API&lt;/span&gt;&lt;/a&gt;. We even provide some amazing &lt;a href=&quot;http://github.com/Shopify/shopify_app/tree/master&quot;&gt;rails generators&lt;/a&gt; to get started quickly.&lt;/p&gt;


	&lt;p&gt;Obviously we need developers to make this happen. Reasons why you should develop for the Shopify Platform:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;Super fast start with the Shopify App rails generator&lt;/li&gt;
		&lt;li&gt;Automatic marketing through the &lt;a href=&quot;http://apps.shopify.com&quot;&gt;Shopify Application Store&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;Soon we will launch the monetization system that allows you to bill merchants for using your applications directly through Shopify&#8217;s monthly billing system. We will deposit the money to you via Paypal.&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;The sum total is that Shopify is now as extensible as any self hosted Wordpress system but still hosted on a world-class server farm. It&#8217;s the best of both worlds and surely will be the way a lot of hosted apps will develop in the coming years.&lt;/p&gt;


	&lt;p&gt;Exciting times.&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://blog.leetsoft.com/">
    <author>
      <name>tobi</name>
    </author>
    <id>tag:blog.leetsoft.com,2009-05-27:4674</id>
    <published>2009-05-27T14:28:00Z</published>
    <updated>2009-05-27T14:43:31Z</updated>
    <link href="http://blog.leetsoft.com/2009/5/27/future-ruby" rel="alternate" type="text/html"/>
    <title>Future Ruby</title>
<content type="html">
            &lt;p&gt;My friends from unspace are putting together &lt;strong&gt;&lt;a href=&quot;http://futureruby.com/&quot;&gt;FutureRuby&lt;/a&gt;&lt;/strong&gt;, the spiritual successor to Rubyfringe which turned out to be one of the best conferences of last year.&lt;/p&gt;


	&lt;p&gt;The theme of the conference is obviously the future of ruby but one thing that is clear from the lineup is that the event doesn&#8217;t forget that ruby is part of a greater ecosystem and that ruby is as much a language as a mindset.&lt;/p&gt;


	&lt;p&gt;One great example of this is this &lt;a href=&quot;http://mobileorchard.com/future&quot;&gt;workshop&lt;/a&gt; which Dan Grigsby is putting together which teaches iPhone development specifically to Ruby developers.&lt;/p&gt;


	&lt;p&gt;Shopify is shipping 8 people to the conference. Hope to see you there :-)&lt;/p&gt;
          </content>  </entry>
  <entry xml:base="http://blog.leetsoft.com/">
    <author>
      <name>tobi</name>
    </author>
    <id>tag:blog.leetsoft.com,2009-03-19:4672</id>
    <published>2009-03-19T01:16:00Z</published>
    <updated>2009-03-19T01:34:16Z</updated>
    <link href="http://blog.leetsoft.com/2009/3/19/gazaro-launches" rel="alternate" type="text/html"/>
    <title>Gazaro launches</title>
<content type="html">
            &lt;p&gt;&lt;a href=&quot;http://gazaro.com/&quot;&gt;&lt;img src=&quot;http://blog.leetsoft.com/assets/2009/3/19/gazaro.jpg&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;Ottawa friends of mine launched &lt;a href=&quot;http://gazaro.com/&quot;&gt;Gazaro&lt;/a&gt;, a really remarkable comparison shopping engine that transcribes a full history of price fluctuations and allows you to see how good of a deal a deal really is.&lt;/p&gt;


	&lt;p&gt;I&#8217;ve been using it for the last few weeks and it really works great, give it a try.&lt;/p&gt;


	&lt;p&gt;Now to get Shopify&#8217;s product base on there&#8230;&lt;/p&gt;


&lt;div&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-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>
</feed>
