<?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>GrinGod [dot] Com &#187; source code</title>
	<atom:link href="http://www.gringod.com/tag/source-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gringod.com</link>
	<description>Randomised nonsense.</description>
	<lastBuildDate>Tue, 10 Feb 2015 23:15:47 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.40</generator>
	<item>
		<title>HTTP Proxy Per Git Repository</title>
		<link>http://www.gringod.com/2014/01/29/http-proxy-per-git-repository/</link>
		<comments>http://www.gringod.com/2014/01/29/http-proxy-per-git-repository/#comments</comments>
		<pubDate>Wed, 29 Jan 2014 12:38:06 +0000</pubDate>
		<dc:creator><![CDATA[gringod]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[source code]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.gringod.com/?p=908</guid>
		<description><![CDATA[I’ve finally made the switch to using Git instead of Subversion as the source control system at work.&#160; I’ve been using it for a while with a couple of personal projects that I’ve got hosted on BitBucket using the wonderful SourceTree, created by my friend Steve Streeting, and I’ve come to prefer it to Subversion. [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>I’ve finally made the switch to using Git instead of Subversion as the source control system at work.&#160; I’ve been using it for a while with a couple of personal projects that I’ve got hosted on <a href="http://www.gringod.com/?feed-stats-url=aHR0cHM6Ly9iaXRidWNrZXQub3JnLw%3D%3D&#038;feed-stats-url-post-id=908" target=\"_blank\">BitBucket</a> using the wonderful <a href="http://www.gringod.com/?feed-stats-url=aHR0cDovL3d3dy5zb3VyY2V0cmVlYXBwLmNvbS8%3D&#038;feed-stats-url-post-id=908" target=\"_blank\">SourceTree</a>, created by my friend Steve Streeting, and I’ve come to prefer it to Subversion. At work, I set up a <a href="http://www.gringod.com/?feed-stats-url=aHR0cHM6Ly93d3cuYXRsYXNzaWFuLmNvbS9zb2Z0d2FyZS9zdGFzaC8%3D&#038;feed-stats-url-post-id=908" target=\"_blank\">Stash</a> server and have been syncing our Subversion repository into it for a while but never quite made the jump to Git until now.</p>
<p>The first hurdle I’ve hit is with proxy settings.&#160; On my development machine I’ve got cloned BitBucket repositories and to be able to use those I need to connect through a proxy.&#160; Thankfully SourceTree makes it easy to configure Proxy settings for Git.&#160; However, these are system wide settings.&#160; Now that I want to work with our internal Stash server I need Git to use the proxy for some repositories but not for the internal one.</p>
<p>Given that I’ve got lots of external repositories but only one internal repository I’ve left the Git default settings to use the Proxy server.&#160; Unfortunately SourceTree doesn’t help with specifying a proxy for a single repository but it’s not hard.</p>
<ul>
<li>Open the local repository in Explorer and head into the .git directory (you may need to show hidden files &amp; folders)</li>
<li>Open up the config file in your favourite text editor</li>
<li>At the bottom of the [core] section of settings add the following:
<pre class="brush: plain; title: ; notranslate" title="">
[http]
    proxy =</pre>
</li>
<li>Save the config file.</li>
</ul>
<p>That’s all there is to it.&#160; You don’t even need to restart SourceTree for it to pick up the change.&#160; This change is basically telling Git not to use a Proxy for this repository.&#160; Alternatively, on the “proxy =” line you could specify a proxy to use, e.g. if you have lots of internal repositories and only one external then it would be easier to default the global settings to no proxy and only specify a proxy for just one repository.</p>
<p>Hope this helps!</p>
 <img src="http://www.gringod.com/?feed-stats-post-id=908" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.gringod.com/2014/01/29/http-proxy-per-git-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Character Counter</title>
		<link>http://www.gringod.com/2008/02/08/character-counter/</link>
		<comments>http://www.gringod.com/2008/02/08/character-counter/#comments</comments>
		<pubDate>Fri, 08 Feb 2008 15:13:43 +0000</pubDate>
		<dc:creator><![CDATA[gringod]]></dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[.net2]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[bsd license]]></category>
		<category><![CDATA[character counter]]></category>
		<category><![CDATA[csharp]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[source code]]></category>

		<guid isPermaLink="false">http://www.gringod.com/2008/02/08/character-counter/</guid>
		<description><![CDATA[Whilst reading an article I was curious about the number of commas and full-stops that the author used &#8211; when you become an editor of a newsletter you start to think about things like this.&#160; After hunting around the various utilities on my system I discovered that I didn&#8217;t have anything that could easily do [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Whilst reading an article I was curious about the number of commas and full-stops that the author used &#8211; when you become an editor of a newsletter you start to think about things like this.&nbsp; After hunting around the various utilities on my system I discovered that I didn&#8217;t have anything that could easily do this.&nbsp; So, I did what any self-respecting programmer would do and threw together a quick app to do it for me.</p>
<p>I have made both the <a href="http://www.gringod.com/?feed-stats-url=aHR0cDovL3d3dy5ncmluZ29kLmNvbS93cC11cGxvYWRzL3NvZnR3YXJlL0NoYXJhY3RlckNvdW50ZXJfc3JjLnppcA%3D%3D&#038;feed-stats-url-post-id=615">source code</a> and <a href="http://www.gringod.com/?feed-stats-url=aHR0cDovL3d3dy5ncmluZ29kLmNvbS93cC11cGxvYWQvc29mdHdhcmUvQ2hhcmFjdGVyQ291bnRlcl9iaW4uemlw&#038;feed-stats-url-post-id=615">pre-compiled binary</a> available for download under a <a href="http://www.gringod.com/?feed-stats-url=aHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbGljZW5zZXMvQlNELw%3D%3D&#038;feed-stats-url-post-id=615">BSD license</a> (<font color="#008000">share</font>, <font color="#008000">remix</font>, <font color="#800000">no endorsement</font>).&nbsp; It is written in C# and requires the .Net 2.0 framework, if you want to compile the source you will probably require MS Visual Studio (Express should be ok), although it may work with <a href="http://www.gringod.com/?feed-stats-url=aHR0cDovL3d3dy5pY3NoYXJwY29kZS5uZXQvT3BlblNvdXJjZS9TRC8%3D&#038;feed-stats-url-post-id=615">SharpDevelop</a> or <a href="http://www.gringod.com/?feed-stats-url=aHR0cDovL3d3dy5tb25vLXByb2plY3QuY29tL01haW5fUGFnZQ%3D%3D&#038;feed-stats-url-post-id=615">Mono</a>.</p>
<p>It is a console application (sorry, no pretty GUI this time) that reads the contents of input.txt (in the same directory as the app), it then counts the occurrences of each character and outputs the results to the console. Simple!</p>
<p>If you make any improvements to the code please leave a comment and/or email the changes to me: gringod [at] gmail [dot] com.</p>
<p>
<div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:39c46d67-44ab-4f86-8e8d-f0aba1be91e8" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://www.gringod.com/?feed-stats-url=aHR0cDovL3RlY2hub3JhdGkuY29tL3RhZ3MvY3NoYXJw&#038;feed-stats-url-post-id=615" rel=\"tag\">csharp</a>,<a href="http://www.gringod.com/?feed-stats-url=aHR0cDovL3RlY2hub3JhdGkuY29tL3RhZ3MvcHJvZ3JhbW1pbmc%3D&#038;feed-stats-url-post-id=615" rel=\"tag\">programming</a>,<a href="http://www.gringod.com/?feed-stats-url=aHR0cDovL3RlY2hub3JhdGkuY29tL3RhZ3MvY2hhcmFjdGVyJTIwY291bnRlcg%3D%3D&#038;feed-stats-url-post-id=615" rel=\"tag\">character counter</a>,<a href="http://www.gringod.com/?feed-stats-url=aHR0cDovL3RlY2hub3JhdGkuY29tL3RhZ3Mvc291cmNlJTIwY29kZQ%3D%3D&#038;feed-stats-url-post-id=615" rel=\"tag\">source code</a>,<a href="http://www.gringod.com/?feed-stats-url=aHR0cDovL3RlY2hub3JhdGkuY29tL3RhZ3MvYXBwbGljYXRpb24%3D&#038;feed-stats-url-post-id=615" rel=\"tag\">application</a>,<a href="http://www.gringod.com/?feed-stats-url=aHR0cDovL3RlY2hub3JhdGkuY29tL3RhZ3MvLm5ldDI%3D&#038;feed-stats-url-post-id=615" rel=\"tag\">.net2</a>,<a href="http://www.gringod.com/?feed-stats-url=aHR0cDovL3RlY2hub3JhdGkuY29tL3RhZ3MvYnNkJTIwbGljZW5zZQ%3D%3D&#038;feed-stats-url-post-id=615" rel=\"tag\">bsd license</a></div></p>
 <img src="http://www.gringod.com/?feed-stats-post-id=615" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.gringod.com/2008/02/08/character-counter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
