<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10titles.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemtitles.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">
 
 <title>MindJunk</title>
 
 <link href="http://mindjunk.org" />
 <updated>2013-01-28T14:17:47-05:00</updated>
 <id>http://mindjunk.org</id>
 <author>
   <name>Stephen Solka</name>
   <email>stephen@mindjunk.org</email>
 </author>

 
 <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/Mindjunk" /><feedburner:info uri="mindjunk" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><link rel="license" type="text/html" href="http://creativecommons.org/licenses/by-nc-sa/2.0/" /><feedburner:emailServiceId>Mindjunk</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2FMindjunk" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FMindjunk" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2FMindjunk" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/Mindjunk" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2FMindjunk" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FMindjunk" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2FMindjunk" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Ffeeds.feedburner.com%2FMindjunk" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:browserFriendly>Thank you for subscribing. You rock!</feedburner:browserFriendly><entry>
   <title>7zip on mac</title>
   <link href="http://feedproxy.google.com/~r/Mindjunk/~3/hxLM1Itv9Fo/7zip-mac" />
   <updated>2013-01-28T10:59:00-05:00</updated>
   <id>http://mindjunk.org/blog/2013/01/28/7zip-mac</id>
   <content type="html">&lt;p&gt;PSA: It is easy to extract 7zip files on a mac if you have &lt;a href="http://mxcl.github.com/homebrew/"&gt;brew&lt;/a&gt;.&lt;/p&gt;

&lt;div&gt;&lt;script src='https://gist.github.com/4657814.js'&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;pre&gt;&lt;code&gt;brew install p7zip
7z x file.7z&lt;/code&gt;&lt;/pre&gt;&lt;/noscript&gt;&lt;/div&gt;

&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Mindjunk?a=hxLM1Itv9Fo:RUUVC1j75zI:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Mindjunk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Mindjunk?a=hxLM1Itv9Fo:RUUVC1j75zI:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Mindjunk?i=hxLM1Itv9Fo:RUUVC1j75zI:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Mindjunk/~4/hxLM1Itv9Fo" height="1" width="1"/&gt;</content>
 <feedburner:origLink>http://mindjunk.org/blog/2013/01/28/7zip-mac</feedburner:origLink></entry>
 
 <entry>
   <title>Moved to amazon s3</title>
   <link href="http://feedproxy.google.com/~r/Mindjunk/~3/Z7AHyoe301A/moved-to-s3" />
   <updated>2013-01-27T17:06:00-05:00</updated>
   <id>http://mindjunk.org/blog/2013/01/27/moved-to-s3</id>
   <content type="html">&lt;p&gt;&lt;img class="left img-polaroid" src="http://i.imgur.com/5uaUFBG.png"&gt;&lt;/p&gt;

&lt;p&gt;I feel like this blog is about the constant changing back-end that powers this blog. Recent changes include&lt;/p&gt;

&lt;h3&gt;Namecheap&lt;/h3&gt;

&lt;p&gt;When I went to move my blog from github to s3 I ran into a major roadblock with Namecheap. Somehow my account had got into a state where I couldn't edit my dns host settings. Live support says that the only way to fix it is to convert my dns to another platform and risk downtime. I have to renew this domain in about a week. I moved dns settings to amazon route 53 and in about a week I am up for renewal so I may switch from namecheap to &lt;a href="https://www.hover.com/"&gt;hover&lt;/a&gt;. I don't interact with my domain settings very often but when I do I want them to work!&lt;/p&gt;

&lt;h3&gt;Jekyll&lt;/h3&gt;

&lt;p&gt;Its been several years since the Octopress 2.0 release and there hasn't been much traction. At the end of the day octopress is just a pretty wrapper around jekyll. So I got rid of the wrapper and I am using straight jekyll. Most of effort to convert it was finding the few built in octopress plugins I was using.&lt;/p&gt;

&lt;h3&gt;Amazon S3&lt;/h3&gt;

&lt;p&gt;The blog content was previously held on github pages. I moved it over to S3. It is very impressive how fast S3 is at rendering static content. The blog loads almost instantly. On github it could still take a second or two to load the static content. I am pushing the site content with &lt;a href="https://github.com/laurilehmijoki/jekyll-s3"&gt;jekyll-s3&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;Twitter Boostrap&lt;/h3&gt;

&lt;p&gt;A good chunk of the work I am doing at work right now involves the &lt;a href="http://twitter.github.com/bootstrap/"&gt;Bootstrap&lt;/a&gt; library. To continue to build out my knowledge base I am using a boostrap based theme that I will be customizing.&lt;/p&gt;
&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Mindjunk?a=Z7AHyoe301A:2LFFyUL72j8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Mindjunk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Mindjunk?a=Z7AHyoe301A:2LFFyUL72j8:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Mindjunk?i=Z7AHyoe301A:2LFFyUL72j8:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Mindjunk/~4/Z7AHyoe301A" height="1" width="1"/&gt;</content>
 <feedburner:origLink>http://mindjunk.org/blog/2013/01/27/moved-to-s3</feedburner:origLink></entry>
 
 <entry>
   <title>Why Git</title>
   <link href="http://feedproxy.google.com/~r/Mindjunk/~3/bMslGv1KUHY/why-git" />
   <updated>2011-09-10T08:57:00-04:00</updated>
   <id>http://mindjunk.org/blog/2011/09/10/why-git</id>
   <content type="html">&lt;p&gt;This post is meant to capture why we transitioned to Git from Subversion and what we learned along the way.&lt;/p&gt;

&lt;h2&gt;Code Reviews&lt;/h2&gt;

&lt;p&gt;The main reason I started to consider switching version control systems was we had a work flow issue that was causing members of our team to be non productive for days at a time. As a team we had instituted mandatory code reviews to try to maintain a high level of code quality. Our software was deployed into the pentagon network so it was important to know what was being built and how it was being built.&lt;/p&gt;

&lt;p&gt;The work flow with subversion was:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Tasking came into a senior developer.&lt;/li&gt;
&lt;li&gt;The senior developer assigns the task to a team member.&lt;/li&gt;
&lt;li&gt;Team member emails a patch with the requested changes.&lt;/li&gt;
&lt;li&gt;A senior developer reviews the patch.&lt;/li&gt;
&lt;li&gt;If accepted the team member commits his changes to Subversion.&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;The sticking point was step 4 "A senior developer reviews the patch." If the senior developer was busy with her own tasking or not in the office the team member could not continue to make changes for other tasks. This waiting period could last for hours to days. We tried to allow commits prior to review but we were finding that changes were slipping through the cracks unreviewed.&lt;/p&gt;

&lt;h2&gt;Distributed Version Control&lt;/h2&gt;

&lt;p&gt;Git separates the concept of committing changes and sharing those changes with a remote repository. Committing is a local action that adds your changeset to your complete clone of the remote repository. When you are ready to share one or more commits you execute a push.&lt;/p&gt;

&lt;p&gt;Because commits were local actions it allowed team members to commit changes prior to a code review and to continue there work even in the absence of a senior developer. As time permitted, patches would be reviewed and the team members would then be permitted to push changes to the remote repository.&lt;/p&gt;

&lt;p&gt;Local commits fixed a very specific work flow issue we were having with code reviews and improved the productivity of our team.&lt;/p&gt;

&lt;h2&gt;Initial Commit&lt;/h2&gt;

&lt;p&gt;When a new project was created a developer would would work on that project till it got to a point where it was ready to be put in Subversion. At that point she would create a new folder in Subversion, checkout that folder, add all her local files to the fresh checkout and commit her changes to the remote repository.&lt;/p&gt;

&lt;p&gt;The result of this was every project had this mystery commit with the message of "initial commit." There would be no information how it got to that state, it just was.&lt;/p&gt;

&lt;p&gt;By executing a git init command, you can turn any folder in your filesystem into a Git repository. This project will be unattached from any remote repository ready for  you to begin making local commits. At the time you are ready to share your project with the team you can create a remote git repository, attach your local git repository to the remote repository and push all your commits to the remote repository.&lt;/p&gt;

&lt;p&gt;Being able to instantly create a repository in any folder greatly minimized the amount of history lost from the "initial commit."&lt;/p&gt;

&lt;h2&gt;Missing Files&lt;/h2&gt;

&lt;p&gt;Ever forget to commit a file that is part of a change? This leads to those awkward commits in Subversion with a message like "Oops forgot to commit Xyz.java." In Git local commits that have not been pushed to a remote repository can be modified without consequences. If you forgot a file amend your previous commit prior to pushing your changes to a remote repository.&lt;/p&gt;

&lt;h2&gt;Pitfalls&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Most developers do not know Git; staff will require training. I highly recommend the book &lt;a href="http://progit.org/book/"&gt;Pro Git&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Window's support is not as strong as Subversion but it is improving every day. &lt;a href="https://code.google.com/p/msysgit/"&gt;Msysgit&lt;/a&gt; and &lt;a href="https://code.google.com/p/tortoisegit/"&gt;TortoiseGit&lt;/a&gt; are the definitive windows clients.&lt;/li&gt;
&lt;li&gt;It is overly complex to get a Windows git server running. I recommend sticking with Linux for the server. Its a difference between minutes to setup to hours or days.&lt;/li&gt;
&lt;li&gt;Sometimes a developer will forget to push changes prior to deployment day; this is a training issue. Check the logs prior to deployment to verify expected changes.&lt;/li&gt;
&lt;li&gt;By default git allows developers to rewrite history and modify changes on the server if they execute push with a force option. This can be turned off with a &lt;a href="http://stackoverflow.com/questions/1754491/is-there-a-way-to-configure-git-repository-to-reject-git-push-force"&gt;configuration change&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;There are sometimes more than one way to do things in Git. If this is the case then there isn't a universally agreed upon way. I recommend picking a work flow and sticking with it. This is especially bad with rebase vs merge.&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Mindjunk?a=bMslGv1KUHY:yQm5UVezt6M:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Mindjunk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Mindjunk?a=bMslGv1KUHY:yQm5UVezt6M:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Mindjunk?i=bMslGv1KUHY:yQm5UVezt6M:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Mindjunk/~4/bMslGv1KUHY" height="1" width="1"/&gt;</content>
 <feedburner:origLink>http://mindjunk.org/blog/2011/09/10/why-git</feedburner:origLink></entry>
 
 <entry>
   <title>Markdown to PDF</title>
   <link href="http://feedproxy.google.com/~r/Mindjunk/~3/zlSRuwgTCVE/markdown-to-pdf" />
   <updated>2011-08-13T19:46:00-04:00</updated>
   <id>http://mindjunk.org/blog/2011/08/13/markdown-to-pdf</id>
   <content type="html">&lt;p&gt;I wrote a Gradle script to convert a markdown file to a PDF. Despite being 38
lines it was quite a little challenge to discover which libraries needed to be
strung together and how to use them. Hopefully this can help someone in the
future.&lt;/p&gt;

&lt;div&gt;&lt;script src='https://gist.github.com/1144384.js'&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;pre&gt;&lt;code&gt;import com.petebevin.markdown.MarkdownProcessor
import org.xhtmlrenderer.pdf.ITextRenderer
import org.ccil.cowan.tagsoup.Parser
import org.apache.xalan.xsltc.trax.SAX2DOM
import org.xml.sax.InputSource

buildscript{
  repositories {
    mavenCentral()
    mavenRepo urls: &amp;quot;http://scala-tools.org/repo-releases&amp;quot; 
    mavenRepo urls: &amp;quot;http://download.java.net/maven/2/&amp;quot;
  }

  dependencies {
    classpath &amp;quot;org.markdownj:markdownj:0.3.0-1.0.2b4&amp;quot;
    classpath &amp;quot;org.ccil.cowan.tagsoup:tagsoup:1.2&amp;quot;
    classpath &amp;quot;org.xhtmlrenderer:core-renderer:R8&amp;quot;
  }
}

task build &amp;lt;&amp;lt;{
  def source = &amp;quot;resume.markdown&amp;quot;
  def target = &amp;quot;resume.pdf&amp;quot;

  //Convert from markdown to html
  def mp = new MarkdownProcessor()
  def html = &amp;quot;&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;${mp.markdown((new File(source).text))}&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&amp;quot;
  
  //Convert from html to w3c document
  def parser = new Parser()
  def sax2dom = new SAX2DOM()
  parser.setContentHandler(sax2dom);
  parser.setFeature(Parser.namespacesFeature, false);
  parser.parse(new InputSource(new ByteArrayInputStream(html.getBytes())));
  
  //Use Document to create pdf
  ITextRenderer renderer = new ITextRenderer();
  renderer.setDocument(sax2dom.getDOM(), null);
  renderer.layout();
  renderer.createPDF((new File(target).newOutputStream()))
}
&lt;/code&gt;&lt;/pre&gt;&lt;/noscript&gt;&lt;/div&gt;



&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Mindjunk?a=zlSRuwgTCVE:B95qhNPdA6M:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Mindjunk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Mindjunk?a=zlSRuwgTCVE:B95qhNPdA6M:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Mindjunk?i=zlSRuwgTCVE:B95qhNPdA6M:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Mindjunk/~4/zlSRuwgTCVE" height="1" width="1"/&gt;</content>
 <feedburner:origLink>http://mindjunk.org/blog/2011/08/13/markdown-to-pdf</feedburner:origLink></entry>
 
 <entry>
   <title>Kinect Is Amazing</title>
   <link href="http://feedproxy.google.com/~r/Mindjunk/~3/JXpdpQWjjKE/kinect-is-amazing" />
   <updated>2011-08-12T10:59:00-04:00</updated>
   <id>http://mindjunk.org/blog/2011/08/12/kinect-is-amazing</id>
   <content type="html">&lt;p&gt;This demo out of siggraph is stunning. They use the kinect to create 3D models of entire rooms.&lt;/p&gt;

&lt;div class="embed video youtube"&gt;&lt;iframe width="640" height="360" src="http://www.youtube.com/embed/RSh8Voanp3c?feature=oembed" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;/div&gt;

&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Mindjunk?a=JXpdpQWjjKE:UHcIQaWZSHo:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Mindjunk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Mindjunk?a=JXpdpQWjjKE:UHcIQaWZSHo:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Mindjunk?i=JXpdpQWjjKE:UHcIQaWZSHo:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Mindjunk/~4/JXpdpQWjjKE" height="1" width="1"/&gt;</content>
 <feedburner:origLink>http://mindjunk.org/blog/2011/08/12/kinect-is-amazing</feedburner:origLink></entry>
 
 <entry>
   <title>Domain Moved</title>
   <link href="http://feedproxy.google.com/~r/Mindjunk/~3/Jj0L-1rYWUU/domain-moved" />
   <updated>2011-08-11T13:17:00-04:00</updated>
   <id>http://mindjunk.org/blog/2011/08/11/domain-moved</id>
   <content type="html">&lt;p&gt;&lt;img class="right img-polaroid" src="http://i.imgur.com/2Pagc.png"&gt;
I love new toys. I decided to move my domain from pointing at blogger to pointing at github pages.
So, that means mindjunk.org has gone from wordpress on dreamhost to vpslink to blogger to
&lt;a href="http://pages.github.com/"&gt;github pages&lt;/a&gt; powered by &lt;a href="http://octopress.org"&gt;octopress&lt;/a&gt;. I decided not to try to bring over my old content
from blogger.&lt;/p&gt;

&lt;p&gt;I am playing alot with Amazon EC2. I spawned up a micro instance thats operating out of the free tier
to act as my private git server. Took about 20 minutes from account creation to cloning a project.
I work with git servers alot at work so it may take you longer to get going. The basic steps are:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;sign up for a amazon web services account&lt;/li&gt;
&lt;li&gt;create a new micro instance. Defaults are fine. (Make sure its the one with the star)&lt;/li&gt;
&lt;li&gt;login using your new ssh key&lt;/li&gt;
&lt;li&gt;sudo yum update&lt;/li&gt;
&lt;li&gt;sudo yum install git&lt;/li&gt;
&lt;li&gt;sudo adduser git&lt;/li&gt;
&lt;li&gt;sudo su -l git&lt;/li&gt;
&lt;li&gt;mkdir ~/.ssh&lt;/li&gt;
&lt;li&gt;touch ~/.ssh/authorized_keys&lt;/li&gt;
&lt;li&gt;chmod 500 ~/.ssh&lt;/li&gt;
&lt;li&gt;chmod 500 ~/.ssh/authorized_keys&lt;/li&gt;
&lt;li&gt;add your public key to authorized_keys&lt;/li&gt;
&lt;li&gt;mkdir ~/repos&lt;/li&gt;
&lt;li&gt;git init --bare ~/repos/test.git&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Mindjunk?a=Jj0L-1rYWUU:1mhirkQHJP4:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Mindjunk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Mindjunk?a=Jj0L-1rYWUU:1mhirkQHJP4:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Mindjunk?i=Jj0L-1rYWUU:1mhirkQHJP4:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Mindjunk/~4/Jj0L-1rYWUU" height="1" width="1"/&gt;</content>
 <feedburner:origLink>http://mindjunk.org/blog/2011/08/11/domain-moved</feedburner:origLink></entry>
 
 <entry>
   <title>Octopress Setup</title>
   <link href="http://feedproxy.google.com/~r/Mindjunk/~3/dyoGee05t_Y/octopress-setup" />
   <updated>2011-08-02T11:40:00-04:00</updated>
   <id>http://mindjunk.org/blog/2011/08/02/octopress-setup</id>
   <content type="html">&lt;p&gt;As you can see I got &lt;a href="http://octopress.org/"&gt;Octopress&lt;/a&gt; working! Tried to do it twice so I could capture the steps.
This is by no means a definitive guide but this is exactly the order of commands I ran. I am
sure some steps could be removed or reordered. Enjoy!&lt;/p&gt;

&lt;div&gt;&lt;script src='https://gist.github.com/1120457.js'&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;pre&gt;&lt;code&gt;#Created a github repository called trashhalo.github.com
mkdir trashhalo.github.com
cd trashhalo.github.com
git init
git remote add octopress git://github.com/imathis/octopress.git
git symbolic-ref HEAD refs/heads/source
#Pulling all of octopress into source branch
git pull octopress
git merge octopress/master
git remote add origin git@github.com:trashhalo/trashhalo.github.com.git
git push origin source
#Creating an empty branch that has no connection to octopress
#Master will hold the octopress output
git symbolic-ref HEAD refs/heads/master
rm .git/index
git clean -fdx
touch index.html
git add index.html
git commit -m &amp;quot;initial master&amp;quot;
git push origin master
git checkout source
#Octopress setup guide says to do this
rvm rvmrc trust
rvm reload
#Warning: On Mac OS X lion I had no bundle command. Google will help
bundle install
rake install
git add .
git commit -m &amp;quot;Installed Octopress theme&amp;quot;
git push
git clone git@github.com:trashhalo/trashhalo.github.com.git _deploy
cd _deploy
git checkout -b master remotes/origin/master
cd ..
rake config_deploy[master]
rake deploy
#Update primary branch in github repository admin to &amp;quot;master&amp;quot;
rake generate
rake deploy
git add .
git commit -m &amp;quot;Rake file modified&amp;quot;
git push origin source&lt;/code&gt;&lt;/pre&gt;&lt;/noscript&gt;&lt;/div&gt;



&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Mindjunk?a=dyoGee05t_Y:dreWtnWtgL0:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Mindjunk?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Mindjunk?a=dyoGee05t_Y:dreWtnWtgL0:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Mindjunk?i=dyoGee05t_Y:dreWtnWtgL0:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Mindjunk/~4/dyoGee05t_Y" height="1" width="1"/&gt;</content>
 <feedburner:origLink>http://mindjunk.org/blog/2011/08/02/octopress-setup</feedburner:origLink></entry>
 
 
</feed>
