<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
 
 <title>Mark Watson</title>
 <updated>2010-04-29T08:40:18-07:00</updated>
 <id>http://markwatson.github.com/</id>
 <author>
   <name>Mark Watson</name>
   <email>mw5300@gmail.com</email>
 </author>
 
 
 <entry>
   <title>Overkill?</title>
   <link href="http://markwatson.github.com/2010/04/27/overkill.html"/>
   <updated>2010-04-27T00:00:00-07:00</updated>
   <id>http://tom.preston-werner.com/2010/04/27/overkill</id>
   <content type="html">&lt;h3&gt;Overkill?&lt;/h3&gt;
&lt;p class=&quot;meta&quot;&gt;27 Apr 2010 &amp;#8211; Colorado Springs&lt;/p&gt;
&lt;p&gt;I recently built a new computer (and by recently I mean sept. of last year). I&lt;br /&gt;
built it because my laptop was getting old. It was a first generation MacBook,&lt;br /&gt;
upgraded slightly to have 2GB ram and a 500GB hard drive. It&amp;#8217;s decent for the&lt;br /&gt;
vast majority of stuff I do, and I still use it every Saturday to code python or&lt;br /&gt;
&lt;span class=&quot;caps&quot;&gt;PHP&lt;/span&gt; on, but I wanted something little more powerful for my day to day work.&lt;br /&gt;
And I must say &amp;#8211; it&amp;#8217;s nice to have a powerful computer.&lt;/p&gt;
&lt;h4&gt;Needed?&lt;/h4&gt;
&lt;p&gt;I think most people really don&amp;#8217;t need a super powerful computer. For doing&lt;br /&gt;
simple tasks an massive desktop is overkill. However, for  coding, I think it&amp;#8217;s&lt;br /&gt;
really needed.&lt;/p&gt;
&lt;h4&gt;IDEs and Virtulization&lt;/h4&gt;
&lt;p&gt;I think the biggest reason it&amp;#8217;s needed is for IDEs and virtulization. Having&lt;br /&gt;
plenty of juice to run Microsoft&amp;#8217;s latest power hogging visual studio, or run&lt;br /&gt;
several operating systems at once is really something that&amp;#8217;s not just nice, but&lt;br /&gt;
almost needed.&lt;/p&gt;
&lt;h4&gt;It&amp;#8217;s Cheap&lt;/h4&gt;
&lt;p&gt;All this power didn&amp;#8217;t really cost me that much money. for a little over a grand,&lt;br /&gt;
the same price as a nice laptop, it&amp;#8217;s easy to build a custom computer with&lt;br /&gt;
crazily overclocked 6gb triple channel kits, i7 processors, etc. Then just drop&lt;br /&gt;
some Linux on there and you&amp;#8217;re all set ;)&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>CRUD in Codeigniter</title>
   <link href="http://markwatson.github.com/2008/01/14/crud-in-codeigniter.html"/>
   <updated>2008-01-14T00:00:00-08:00</updated>
   <id>http://tom.preston-werner.com/2008/01/14/crud-in-codeigniter</id>
   <content type="html">&lt;h3&gt;&lt;span class=&quot;caps&quot;&gt;CRUD&lt;/span&gt; in Codeigniter&lt;/h3&gt;
&lt;p class=&quot;meta&quot;&gt;14 Jan 2008 &amp;#8211; Denver&lt;/p&gt;
&lt;p&gt;So a while back I started using &lt;span class=&quot;caps&quot;&gt;MVC&lt;/span&gt; &lt;span class=&quot;caps&quot;&gt;PHP&lt;/span&gt; framework called &lt;a href=&quot;http://codeigniter.com/&quot;&gt;Code Igniter&lt;/a&gt;. The framework is really pretty basic, and unlike &lt;a href=&quot;http://cakephp.org/&quot;&gt;cake&lt;/a&gt; or &lt;a href=&quot;http://rubyonrails.org&quot;&gt;rails&lt;/a&gt;, it doesn&amp;#8217;t automatically do much for you in the models. So to make &lt;span class=&quot;caps&quot;&gt;CRUD&lt;/span&gt; stuff easier, I created a basic parent model that does all the work. You can get it from &lt;a href=&quot;http://gist.github.com/47168&quot;&gt;gist&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To use it all you have to do is put the file in your libraries folder and then do something like this in your model:&lt;br /&gt;
&lt;pre&gt;&lt;br /&gt;
&lt;code&gt;
  &amp;lt;?php
  class Something_model extends MY_Model {
  	function __construct()
  	{
  		parent::MY_Model();
  		$this-&amp;gt;default_table = 'some_table';
  	}
  }
&lt;/code&gt;&lt;br /&gt;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And then you&amp;#8217;ll have access to things like &amp;#8220;$this&amp;#8594;Something_model&amp;#8594;get_all()&amp;#8221; all for free right in your controller. :)&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>First Post</title>
   <link href="http://markwatson.github.com/2008/01/11/first-post.html"/>
   <updated>2008-01-11T00:00:00-08:00</updated>
   <id>http://tom.preston-werner.com/2008/01/11/first-post</id>
   <content type="html">&lt;h3&gt;First Post&lt;/h3&gt;
&lt;p class=&quot;meta&quot;&gt;11 Jan 2008 &amp;#8211; Denver&lt;/p&gt;
&lt;p&gt;Hey everyone this is my very first post to my new blog. If anyone cares, I blatantly ripped off all the code and blog engine from &lt;a href=&quot;http://tom.preston-werner.com/&quot;&gt;Tom Preston-Werner&lt;/a&gt;. The site is basically a &lt;a href=&quot;http://git-scm.com/&quot;&gt;&lt;span class=&quot;caps&quot;&gt;GIT&lt;/span&gt;&lt;/a&gt; repository (they just got a new site that&amp;#8217;s so pretty, you really should look if you haven&amp;#8217;t already&amp;#8230;) and uses the &lt;a href=&quot;http://github.com/mojombo/jekyll/tree/master&quot;&gt;Jekyll&lt;/a&gt; blog engine.&lt;/p&gt;
&lt;p&gt;&amp;#8230;&lt;/p&gt;
&lt;p&gt;Oh, and the layout uses some the oh-so-cool &lt;a href=&quot;http://code.google.com/p/css-boilerplate/&quot;&gt;boilerplate&lt;/a&gt; css engine. Awesomeness!&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>Disqus Comments with Jekyll</title>
   <link href="http://markwatson.github.com/2008/01/11/disqus-comments-with-jekyll.html"/>
   <updated>2008-01-11T00:00:00-08:00</updated>
   <id>http://tom.preston-werner.com/2008/01/11/disqus-comments-with-jekyll</id>
   <content type="html">&lt;h3&gt;Disqus Comments with Jekyll&lt;/h3&gt;
&lt;p class=&quot;meta&quot;&gt;11 Jan 2008 &amp;#8211; Denver&lt;/p&gt;
&lt;p&gt;So I just started this blog using the &lt;a href=&quot;http://github.com/mojombo/jekyll/tree/master&quot;&gt;jekyll&lt;/a&gt; blog engine hosted over &lt;a href=&quot;http://github.com/&quot;&gt;github&lt;/a&gt;. It worked out very nice, and I loved the flexibility. After setting it up tho, I realized it&amp;#8217;d be nice to have comments on my blog. So here is a short little tutorial on how I set up my blog to use &lt;a href=&quot;http://disqus.com/&quot;&gt;disqus&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;It&amp;#8217;s actually really simple to do, and I wouldn&amp;#8217;t even bother writing a post about it except that I want to  try out my shiny new blog engine&amp;#8230; All you have to do is go and sign up for a disqus account. Then follow the tutorial for adding it, but just use the generic code. Paste snippet #1 in your post template file (&lt;em&gt;layouts/post.html) so people will be able to see your comments. Then just add in snippet #2 right before the main layout (&lt;/em&gt;layouts/default.html), and you should be in business.&lt;/p&gt;
&lt;p&gt;I haven&amp;#8217;t really got into using the disqus api or ruby gems that are provided, but I&amp;#8217;ll update if I get around to it. For now enjoy some sick comment awesomeness. ;)&lt;/p&gt;</content>
 </entry>
 
 
</feed>