<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">
  <title>mkchandler.com</title>
  <id>http://mkchandler.com</id>
  <updated>2010-10-18</updated>
  <author>
    <name>Matt Chandler</name>
  </author>
  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/mkchandler" /><feedburner:info uri="mkchandler" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry>
    <title>Creating My New Site</title>
    <link rel="alternate" href="http://feedproxy.google.com/~r/mkchandler/~3/UscZFCQPOqo/" />
    <id>http://mkchandler.com/2010/11/19/creating-my-new-site/</id>
    <published>2010-11-19</published>
    <updated>2010-11-19</updated>
    <author>
      <name>Matt Chandler</name>
    </author>
    <summary type="html">&lt;p&gt;A couple months back I set out to create a new web site for myself.  All I really wanted was a place to post my writings about programming and other interests, as well as somewhere that connects all of the online communities I&amp;rsquo;m involved in.  I went through a few iterations of prototypes before I finally decided to build it using [Ruby][ruby].  I&amp;rsquo;m very new to Ruby, and thought that building my personal site would be a great way to jump in to the language&amp;hellip;&lt;/p&gt;
</summary>
    <content type="html">&lt;p&gt;A couple months back I set out to create a new web site for myself.  All I really wanted was a place to post my writings about programming and other interests, as well as somewhere that connects all of the online communities I&amp;rsquo;m involved in.  I went through a few iterations of prototypes before I finally decided to build it using &lt;a href="http://ruby-lang.org/"&gt;Ruby&lt;/a&gt;.  I&amp;rsquo;m very new to Ruby, and thought that building my personal site would be a great way to jump in to the language.&lt;/p&gt;

&lt;p&gt;I knew from the start that I wanted the design to by very minimalistic.  I envisioned something simple, mostly text based, that would be easy to read.  Along with the design of the site being simple, there is no reason the back-end of the site should not be the same.  I started out writing the site in C# using the &lt;a href="http://asp.net/mvc/"&gt;ASP.NET MVC 2&lt;/a&gt; framework and a SQL database for storage.  This is what I use in my day job, so I was very familiar with it.  But I found out after a week or so of building it that it was becoming too large and complicated for my little site.  This was probably my own fault for &amp;ldquo;over-engineering&amp;rdquo; it, but I&amp;rsquo;m used to building large scale sites with that technology stack.  So after a couple weeks of tweaking and re-tweaking, I decided to look for something simpler, quicker, smaller, etc.  That&amp;rsquo;s when I found &lt;a href="http://cloudhead.io/toto/"&gt;toto&lt;/a&gt;; and it was love at first sight.&lt;/p&gt;

&lt;h2&gt;The toto Engine&lt;/h2&gt;

&lt;p&gt;I was flipping through some of my favorite blogs, getting ideas, when I came across a blog that was powered by toto.  I was not familiar with toto, so I decided to see what it was all about.  After reading the short description and the &amp;ldquo;getting started&amp;rdquo; guide, I knew that this was the perfect engine for my site.  There&amp;rsquo;s no huge framework, no SQL database, and is only around 300 lines of code.&lt;/p&gt;

&lt;p&gt;Toto is written in Ruby runs directly on top of &lt;a href="http://rack.rubyforge.org/"&gt;Rack&lt;/a&gt;.  All articles are stored as individual txt files, and it uses the &lt;a href="http://yaml.org/"&gt;YAML&lt;/a&gt; format to get the title, author, post, etc. out of the file.  All this simplicity was exactly what I was looking for, and will allow me to put my focus on writing great articles and not worrying about an admin interface and all that jazz.&lt;/p&gt;

&lt;h2&gt;Designing the Interface&lt;/h2&gt;

&lt;p&gt;The default template for toto is called &lt;a href="https://github.com/cloudhead/dorothy"&gt;dorothy&lt;/a&gt;, which is a very minimalistic design.  This is what I started with, and for now have just made some very minor adjustments.  Most of my influence for the design is coming from the following blogs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="http://8164.org/"&gt;http://8164.org/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://stevelosh.com/blog/"&gt;http://stevelosh.com/blog/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://journal.uggedal.com/"&gt;http://journal.uggedal.com/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://sirupsen.com/"&gt;http://sirupsen.com/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I believe these sites excel in their designs because of how easy it is to read the posts.  The site uses HTML5 elements for layout, but nothing too complex.  I will dive further into the design in a future post.&lt;/p&gt;

&lt;h2&gt;Hosting the Site on Heroku&lt;/h2&gt;

&lt;p&gt;&lt;a href="http://heroku.com/"&gt;Heroku&lt;/a&gt; is a Ruby hosting platform that offers many levels of scalability.  I&amp;rsquo;m running this site on a free account, but I could easily boost it if I started getting 10,000 hits a day (not expecting that to happen though, haha.)  Deployment to Heroku is done purely though Git, which means along with your hosting, all of your code and content (because your posts are just txt files) are source controlled!  Heroku has a very clean and easy API for managing your site, and makes deployment a breeze.&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;Note: I&amp;rsquo;m also hosting the source code on &lt;a href="https://github.com/mkchandler/mkchandler.com"&gt;github&lt;/a&gt;.  I will do a future post on the workflow that I use to push the source to both github and Heroku.&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;There are also a ton of add-ons for your Heroku account.  Everything ranging from &lt;a href="http://zerigo.com/"&gt;Zerigo&lt;/a&gt; DNS management to &lt;a href="http://couchdb.apache.org/"&gt;CouchDB&lt;/a&gt; hosting to &lt;a href="http://memcached.org/"&gt;Memcached&lt;/a&gt; distributed caching.  And of course there are a lot more, check them all out &lt;a href="http://addons.heroku.com/"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;Setting up my Domain Name&lt;/h2&gt;

&lt;p&gt;Now I had a back-end up and running, a front started (though not yet completed), and all I needed to do was get my domain name pointed to my Heroku account.  Heroku makes this very simple by using their Custom Domains add-on.  I set up the Zerigo DNS add-on for DNS management.  All I had to do then was point my nameservers to the Zerigo nameservers.  I also wanted to make sure that you don&amp;rsquo;t have to type the (obsolete) www (&lt;a href="http://no-www.org"&gt;http://no-www.org&lt;/a&gt;), and if you do type the www subdomain, it redirects to my domain without the www.  This was very easy with Zerigo; all I had to do was set up a Redirect in their admin interface from www.mkchandler.com to mkchandler.com.&lt;/p&gt;

&lt;h2&gt;Conslusion&lt;/h2&gt;

&lt;p&gt;So with all of that said, I still have a lot of work to do.  There are a couple changes to toto I would like to make, and I will continue to update the design over the next month or so.  Send your questions and comments to me on &lt;a href="http://twitter.com/mkchandler/"&gt;twitter&lt;/a&gt;!&lt;/p&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/mkchandler?a=UscZFCQPOqo:f1kttkGl140:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mkchandler?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mkchandler?a=UscZFCQPOqo:f1kttkGl140:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mkchandler?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mkchandler?a=UscZFCQPOqo:f1kttkGl140:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mkchandler?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/mkchandler/~4/UscZFCQPOqo" height="1" width="1"/&gt;</content>
  <feedburner:origLink>http://mkchandler.com/2010/11/19/creating-my-new-site/</feedburner:origLink></entry>
  <entry>
    <title>New Blog</title>
    <link rel="alternate" href="http://feedproxy.google.com/~r/mkchandler/~3/sx6iR--8NEY/" />
    <id>http://mkchandler.com/2010/10/18/new-blog/</id>
    <published>2010-10-18</published>
    <updated>2010-10-18</updated>
    <author>
      <name>Matt Chandler</name>
    </author>
    <summary type="html">&lt;p&gt;&lt;em&gt;&lt;strong&gt;Update:&lt;/strong&gt; I&amp;rsquo;ve posted a [new entry][newentry] covering the creation of my new site!&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I finally have a new blog!  I&amp;rsquo;m working on new posts right now, and will have lots of content up soon.  I
am also still tweaking the design (this is currently the default template).  In the first few posts&lt;/p&gt;
</summary>
    <content type="html">&lt;p&gt;&lt;em&gt;&lt;strong&gt;Update:&lt;/strong&gt; I&amp;rsquo;ve posted a &lt;a href="http://mkchandler.com/2010/11/19/creating-my-new-site/"&gt;new entry&lt;/a&gt; covering the creation of my new site!&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I finally have a new blog!  I&amp;rsquo;m working on new posts right now, and will have lots of content up soon.  I
am also still tweaking the design (this is currently the default template).  In the first few posts
I will cover the &lt;a href="http://cloudhead.io/toto" title="toto"&gt;toto&lt;/a&gt; engine that this is running on and the whole process of setting up Ruby on my
Windows machine (which was a &lt;del&gt;nightmare&lt;/del&gt; fun experience).&lt;/p&gt;

&lt;p&gt;Stay tuned!&lt;/p&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/mkchandler?a=sx6iR--8NEY:CGzjryPskNM:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mkchandler?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mkchandler?a=sx6iR--8NEY:CGzjryPskNM:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mkchandler?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/mkchandler?a=sx6iR--8NEY:CGzjryPskNM:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/mkchandler?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/mkchandler/~4/sx6iR--8NEY" height="1" width="1"/&gt;</content>
  <feedburner:origLink>http://mkchandler.com/2010/10/18/new-blog/</feedburner:origLink></entry>
</feed>

