<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>A Little Off &#187; github</title>
	<atom:link href="http://www.bemasher.net/archives/tag/github/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bemasher.net</link>
	<description>Code, Computers, Photography and Guns</description>
	<lastBuildDate>Mon, 21 Nov 2011 06:38:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>GitHub Repositories Feed</title>
		<link>http://www.bemasher.net/archives/340?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=github-repositories-feed</link>
		<comments>http://www.bemasher.net/archives/340#comments</comments>
		<pubDate>Tue, 05 May 2009 03:09:02 +0000</pubDate>
		<dc:creator>bemasher</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[rss]]></category>

		<guid isPermaLink="false">http://www.bemasher.net/?p=340</guid>
		<description><![CDATA[I noticed at the bottom of the page on GitHub that there was an API link. I took a look at it and found it to be pretty interesting, it's actually really simple to use. You can export in xml, json and yaml. I thought to myself: "Hey it'd be great if I could put [...]]]></description>
			<content:encoded><![CDATA[<p>I noticed at the bottom of the page on GitHub that there was an API link. I took a look at it and found it to be pretty interesting, it's actually really simple to use. You can export in xml, json and yaml. I thought to myself: "Hey it'd be great if I could put a repositories feed in the sidebar of my blog here!".</p>
<p>So I took a look at the JSON output since it's small and really easy to deserialize in php, so I wrote up a quick little php script on the server I'm hosting my blog at that will spit out an RSS feed of the repositories I've created on GitHub. The code is as follows:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?=</span><span style="color: #0000ff;">&quot;&lt;?xml version=<span style="color: #000099; font-weight: bold;">\&quot;</span>1.0<span style="color: #000099; font-weight: bold;">\&quot;</span>?&gt;&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span><br />
&lt;rss version=&quot;2.0&quot;&gt;<br />
&nbsp; &lt;channel&gt;<br />
&nbsp; &nbsp; &lt;title&gt;BeMasher's GitHub Repositories&lt;/title&gt;<br />
&nbsp; &nbsp; &lt;link&gt;http://github.com/bemasher&lt;/link&gt;<br />
&nbsp; &nbsp; &lt;description&gt;BeMasher's GitHub Repositories&lt;/description&gt;<br />
&nbsp; &nbsp; &lt;language&gt;en-us&lt;/language&gt;<br />
&nbsp; &nbsp; &lt;pubDate&gt;<span style="color: #000000; font-weight: bold;">&lt;?=</span><a href="http://www.php.net/date"><span style="color: #990000;">date</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;D, d M Y G:i:s e&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/pubDate&gt;<br />
&nbsp; &nbsp; &lt;lastBuildDate&gt;<span style="color: #000000; font-weight: bold;">&lt;?=</span><a href="http://www.php.net/date"><span style="color: #990000;">date</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;D, d M Y G:i:s e&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/lastBuildDate&gt;<br />
&nbsp; &nbsp; &lt;webMaster&gt;bemasher@bemasher.net&lt;/webMaster&gt;<br />
&nbsp; &nbsp; &lt;ttl&gt;5&lt;/ttl&gt;<br />
<br />
<span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/file_get_contents"><span style="color: #990000;">file_get_contents</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;http://github.com/api/v2/json/repos/show/bemasher&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/json_decode"><span style="color: #990000;">json_decode</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #000088;">$today</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/date"><span style="color: #990000;">date</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;D, d M Y G:i:s e&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;repositories&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$repository</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #0000cc; font-style: italic;">&lt;&lt;&lt;ITEM<br />
&nbsp; &nbsp; &lt;item&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;title&gt;{$repository[&quot;name&quot;]}&lt;/title&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;link&gt;{$repository[&quot;url&quot;]}&lt;/link&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;description&gt;{$repository[&quot;description&quot;]}&lt;/description&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;pubDate&gt;$today&lt;/pubDate&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;guid&gt;{$repository[&quot;url&quot;]}&lt;/guid&gt;<br />
&nbsp; &nbsp; &lt;/item&gt;<br />
<br />
ITEM</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span><br />
&nbsp; &nbsp; &lt;/channel&gt;<br />
&lt;/rss&gt;</div></td></tr></tbody></table></div>
<p>And if you look to the right you can see the RSS Widget in action displaying the output of the script. Cool huh?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bemasher.net/archives/340/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GitHub Won</title>
		<link>http://www.bemasher.net/archives/330?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=freenaspodder-followup</link>
		<comments>http://www.bemasher.net/archives/330#comments</comments>
		<pubDate>Sat, 02 May 2009 11:01:52 +0000</pubDate>
		<dc:creator>bemasher</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[freenaspodder]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[github]]></category>

		<guid isPermaLink="false">http://www.bemasher.net/?p=330</guid>
		<description><![CDATA[In lieu of my Git vs. Mercurial post I've pretty much decided to stick with GitHub due to it's extreme ease of migrating subversion repositories to it. While I'm sure it's going to take me a little while to get used to the GUI for MSysGit (or find a better client) I've decided to move [...]]]></description>
			<content:encoded><![CDATA[<p>In lieu of my Git vs. Mercurial post I've pretty much decided to stick with GitHub due to it's extreme ease of migrating subversion repositories to it. While I'm sure it's going to take me a little while to get used to the GUI for MSysGit (or find a better client) I've decided to move all of my current version control to GitHub.</p>
<p>You can find all my repositories here: <a href="http://github.com/bemasher/">http://github.com/bemasher/</a>. Feel free to follow me on there, I'm always looking to meet other tech-friendly people.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bemasher.net/archives/330/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Free Hosting for Git vs. Mercurial</title>
		<link>http://www.bemasher.net/archives/328?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=free-hosting-for-git-vs-mercurial</link>
		<comments>http://www.bemasher.net/archives/328#comments</comments>
		<pubDate>Fri, 01 May 2009 23:39:30 +0000</pubDate>
		<dc:creator>bemasher</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[bitbucket]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[mercurial]]></category>
		<category><![CDATA[tortoisegit]]></category>
		<category><![CDATA[tortoisehg]]></category>
		<category><![CDATA[tortoisesvn]]></category>
		<category><![CDATA[xp-dev]]></category>

		<guid isPermaLink="false">http://www.bemasher.net/?p=328</guid>
		<description><![CDATA[A co-worker and I were talking about version control software and he made an interesting comparison: Git is like MacGuyver and Mercurial is like James Bond. He then proceeded to point me in the direction of GitHub and Bitbucket. From first impression both seem to have the same basic set of tools and features. Both [...]]]></description>
			<content:encoded><![CDATA[<p>A co-worker and I were talking about version control software and he made an interesting comparison: Git is like MacGuyver and Mercurial is like James Bond. He then proceeded to point me in the direction of <a href="http://www.github.com/">GitHub</a> and <a href="http://bitbucket.org/">Bitbucket</a>.</p>
<p>From first impression both seem to have the same basic set of tools and features. Both have built in simple wiki's and issue trackers. Both allow unlimited public repositories limited only by disk space, 150MB for Mercurial and 300MB for GitHub. Mercurial allows one private repository while GitHub allows no private repositories without a paid plan.</p>
<p>Both of them have fatal flaws for Windows users. First off, GitHub is the most enticing because they offer an integrated subversion repository importing, just give it the URL to a SVN repository and you can import all the authors and history of it. Bitbucket however doesn't seem to have this feature, I'll continue looking for a simple way to do this but right now that's a major flaw in Bitbucket because all of my repositories until this point have been on <a href="http://www.xp-dev.com/">xp-dev</a> a free SVN hosting service I talked about in my <a href="http://www.bemasher.net/archives/250">Free Subversion Hosting</a> post.</p>
<p>The major fatal flaw in GitHub for Windows users is that there's not really any solid Git clients to use with it at the moment. There's <a href="http://code.google.com/p/msysgit/">MSysGit</a> which provides a very basic GUI and command line tools which is great but not very integrated or simple to pick up and use. There's a project for porting TortoiseSVN to TortoiseGit, though at the moment it heavily relies on MSysGit except it uses it's own ssh client plink instead of the OpenSSH library that MSysGit uses which means running pageant to manage your keys and importing and creaking a ppk of your private keys for use with GitHub.</p>
<p>Mercurial seems to have a major fix for the main problem with Git's poor selection of Windows clients is a major issue for usefulness in Windows. Mercurial wins this particular aspect of the competition. Mercurial has <a href="http://bitbucket.org/tortoisehg/stable/wiki/Home">TortoiseHg</a> which is pretty stable so far.</p>
<p>When it's all said and done Bitbucket and GitHub are more or less equivalent services built on top of two different version control projects.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bemasher.net/archives/328/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

