<?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>gpeopl.es</title>
	<atom:link href="http://www.gpeopl.es/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.gpeopl.es</link>
	<description>Numerous ramblings on current affairs, philosophy, technology and religion</description>
	<lastBuildDate>Mon, 06 Sep 2010 17:12:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>C# IRC Bot</title>
		<link>http://www.gpeopl.es/?p=244</link>
		<comments>http://www.gpeopl.es/?p=244#comments</comments>
		<pubDate>Mon, 06 Sep 2010 10:18:12 +0000</pubDate>
		<dc:creator>Gareth Peoples</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[Computers]]></category>
		<category><![CDATA[IRC]]></category>
		<category><![CDATA[PHP / MYSQL]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[applications]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[computers]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[CSharp]]></category>
		<category><![CDATA[frontend]]></category>
		<category><![CDATA[Internet Relay Chat]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[MYSQL]]></category>
		<category><![CDATA[networks]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Quakenet]]></category>
		<category><![CDATA[sockets]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.gpeopl.es/?p=244</guid>
		<description><![CDATA[I haven&#8217;t written on this blog in quite a while, so I thought I would share with you all some code that I have been writing in C#. I only started coding in C# about a week and a half ago, so I guess one could call this my first robust fully working application in [...]]]></description>
			<content:encoded><![CDATA[<p>I haven&#8217;t written on this blog in quite a while, so I thought I would share with you all some code that I have been writing in C#. I only started coding in C# about a week and a half ago, so I guess one could call this my first robust fully working application in C#.</p>
<p>For those of you who aren&#8217;t aware IRC is an acronym for Internet Relay Chat, a text based chat protocol that started in the 1980&#8242;s and is still pretty much used to the present day on networks such as Quakenet. The program that I have written, joins a channel on the IRC server, and updates via a MYSQL database who is currently online. I&#8217;ve also written a very basic PHP frontend so that people can see on a web page who is online and who is offline. It&#8217;s a very basic application, but it is one that I am going to develop further on a fuller basis.</p>
<p>The program consists of 4 files:</p>
<p><strong>ircbot.cs </strong>- Main class of the program.</p>
<p><strong>mysqldatabase.cs </strong>- MYSQL connection class.</p>
<p><strong>ircstats.php</strong> &#8211; PHP frontend</p>
<p><strong>config.cfg </strong>- Configuration file with key settings</p>
<p>IRC Bot main class code:</p>
<div class="codecolorer-container csharp twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="csharp codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #008080; font-style: italic;">/* IRC Bot in C# Mono with MYSQL functionality<br />
&nbsp;* @author: Gareth Peoples<br />
&nbsp;* @email: mail[at]gpeopl.es / gareth.peoples.2009[at]nuim.ie<br />
&nbsp;* */</span><br />
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span> <br />
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Net</span><span style="color: #008000;">;</span><br />
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.IO</span><span style="color: #008000;">;</span><br />
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Text</span><span style="color: #008000;">;</span><br />
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Net.Sockets</span><span style="color: #008000;">;</span><br />
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Threading</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">class</span> ircbot <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Setting up configuration parameters</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">String</span> username, hostname, description, channel<span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">String</span> mysqlhostname, mysqlusername, mysqlpassword, database<span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">int</span> port, mysqlport<span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Storing of nicklist</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">String</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&#93;</span> nicks<span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Setting up socket, reader &amp; writer &nbsp; </span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> TcpClient socket<span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> StreamReader reader<span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">static</span> StreamWriter writer<span style="color: #008000;">;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">void</span> Main<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/* Attempt to connect to IRC server */</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">try</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; loadConfig<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; socket <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> TcpClient<span style="color: #008000;">&#40;</span>hostname, port<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; socket<span style="color: #008000;">.</span><span style="color: #0000FF;">ReceiveBufferSize</span> <span style="color: #008000;">=</span> <span style="color: #FF0000;">1024</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Connected&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; NetworkStream stream <span style="color: #008000;">=</span> socket<span style="color: #008000;">.</span><span style="color: #0000FF;">GetStream</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; reader <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> StreamReader<span style="color: #008000;">&#40;</span>stream<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; writer <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> StreamWriter<span style="color: #008000;">&#40;</span>stream<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; write<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;USER &quot;</span> <span style="color: #008000;">+</span> username <span style="color: #008000;">+</span> <span style="color: #666666;">&quot; 3 * :&quot;</span> <span style="color: #008000;">+</span> description, writer<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; write<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;NICK &quot;</span> <span style="color: #008000;">+</span> username, writer<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; read<span style="color: #008000;">&#40;</span>reader<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; reader<span style="color: #008000;">.</span><span style="color: #0000FF;">Close</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; writer<span style="color: #008000;">.</span><span style="color: #0000FF;">Close</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stream<span style="color: #008000;">.</span><span style="color: #0000FF;">Close</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">catch</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Failed to connect&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/* Reading data from the IRC server */</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">void</span> read<span style="color: #008000;">&#40;</span>StreamReader reader<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span> &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">try</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">while</span><span style="color: #008000;">&#40;</span><span style="color: #0600FF; font-weight: bold;">true</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; interpret<span style="color: #008000;">&#40;</span>reader<span style="color: #008000;">.</span><span style="color: #0000FF;">ReadLine</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span> &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span> &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">catch</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Unable to read from server&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span> <br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/* Interpreting data from the IRC server */</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">void</span> interpret<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">String</span> data<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span>data<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&#93;</span> interpretData <span style="color: #008000;">=</span> data<span style="color: #008000;">.</span><span style="color: #0000FF;">Split</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">' '</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">if</span><span style="color: #008000;">&#40;</span>interpretData<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">0</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Equals</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;PING&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> onPing<span style="color: #008000;">&#40;</span>interpretData<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">1</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// If someone joins channel trigger join event</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">else</span> <span style="color: #0600FF; font-weight: bold;">if</span><span style="color: #008000;">&#40;</span>interpretData<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">1</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Equals</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;JOIN&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> onJoin<span style="color: #008000;">&#40;</span>interpretData<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">0</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// If someone leaves channel trigger part event</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">else</span> <span style="color: #0600FF; font-weight: bold;">if</span><span style="color: #008000;">&#40;</span>interpretData<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">1</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Equals</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;PART&quot;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">||</span> interpretData<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">1</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Equals</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;QUIT&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> onPart<span style="color: #008000;">&#40;</span>interpretData<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">0</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// If someone sends a message</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">else</span> <span style="color: #0600FF; font-weight: bold;">if</span><span style="color: #008000;">&#40;</span>interpretData<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">1</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Equals</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;PRIVMSG&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Public message in channel</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>interpretData<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">2</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Equals</span><span style="color: #008000;">&#40;</span>channel<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; onPublicMessage<span style="color: #008000;">&#40;</span>interpretData<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">3</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Private message</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">else</span> <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>interpretData<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">2</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Equals</span><span style="color: #008000;">&#40;</span>username<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; onPrivateMessage<span style="color: #008000;">&#40;</span>interpretData<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">0</span><span style="color: #008000;">&#93;</span>, interpretData<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">3</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// When the server is ready to let you join a channel, join a channel</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">else</span> <span style="color: #0600FF; font-weight: bold;">if</span><span style="color: #008000;">&#40;</span>interpretData<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">1</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Equals</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;221&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> write<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;JOIN &quot;</span> <span style="color: #008000;">+</span> channel, writer<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// If the server is sending the nicklist across add them to database</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">else</span> <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>interpretData<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">1</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Equals</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;353&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> nicks <span style="color: #008000;">=</span> interpretData<span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">// Write nicklist to MYSQL database</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">else</span> <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>interpretData<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">1</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Equals</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;366&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Thread thread <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> Thread<span style="color: #008000;">&#40;</span>onNickList<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; thread<span style="color: #008000;">.</span><span style="color: #0000FF;">Start</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span> &nbsp; <br />
&nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/* Load configuration file */</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">void</span> loadConfig<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">try</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&#93;</span> lines <span style="color: #008000;">=</span> File<span style="color: #008000;">.</span><span style="color: #0000FF;">ReadAllLines</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;config.cfg&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">foreach</span> <span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span> line <span style="color: #0600FF; font-weight: bold;">in</span> lines<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&#93;</span> data <span style="color: #008000;">=</span> line<span style="color: #008000;">.</span><span style="color: #0000FF;">Split</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">':'</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>data<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">0</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Equals</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;username&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> username <span style="color: #008000;">=</span> data<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">1</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">else</span> <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>data<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">0</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Equals</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;hostname&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> hostname <span style="color: #008000;">=</span> data<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">1</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">else</span> <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>data<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">0</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Equals</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;mysqlusername&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> mysqlusername <span style="color: #008000;">=</span> data<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">1</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">else</span> <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>data<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">0</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Equals</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;database&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> database <span style="color: #008000;">=</span> data<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">1</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">else</span> <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>data<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">0</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Equals</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;mysqlpassword&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> mysqlpassword <span style="color: #008000;">=</span> data<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">1</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">else</span> <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>data<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">0</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Equals</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;mysqlhostname&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> mysqlhostname <span style="color: #008000;">=</span> data<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">1</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">else</span> <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>data<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">0</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Equals</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;description&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> description <span style="color: #008000;">=</span> data<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">1</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">else</span> <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>data<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">0</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Equals</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;channel&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> channel <span style="color: #008000;">=</span> data<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">1</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">else</span> <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>data<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">0</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Equals</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;port&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> port <span style="color: #008000;">=</span> Int32<span style="color: #008000;">.</span><span style="color: #0000FF;">Parse</span><span style="color: #008000;">&#40;</span>data<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">1</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">else</span> <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>data<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">0</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Equals</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;mysqlport&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> mysqlport <span style="color: #008000;">=</span> Int32<span style="color: #008000;">.</span><span style="color: #0000FF;">Parse</span><span style="color: #008000;">&#40;</span>data<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">1</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">catch</span> <span style="color: #008000;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Cannot read configuration file, are you sure it is there?&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/* Writing data to the IRC server */</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">void</span> write<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span> data, StreamWriter writer<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">try</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; writer<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span>data<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;&gt;&gt;&gt; &quot;</span> <span style="color: #008000;">+</span> data<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; writer<span style="color: #008000;">.</span><span style="color: #0000FF;">Flush</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">catch</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Error!&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/* On ping request write pong back to the server */</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">void</span> onPing<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span> pong<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pong <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;PONG &quot;</span> <span style="color: #008000;">+</span> pong<span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; write<span style="color: #008000;">&#40;</span>pong, writer<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/* On join to channel */</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">void</span> onJoin<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span> data<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6666cc; font-weight: bold;">String</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&#93;</span> working <span style="color: #008000;">=</span> data<span style="color: #008000;">.</span><span style="color: #0000FF;">Split</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">'!'</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6666cc; font-weight: bold;">String</span> user <span style="color: #008000;">=</span> working<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">0</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Substring</span><span style="color: #008000;">&#40;</span><span style="color: #FF0000;">1</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span><span style="color: #008000;">!</span>user<span style="color: #008000;">.</span><span style="color: #0000FF;">Equals</span><span style="color: #008000;">&#40;</span>username<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; write<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;PRIVMSG &quot;</span> <span style="color: #008000;">+</span> channel <span style="color: #008000;">+</span> <span style="color: #666666;">&quot; : Welcome to &quot;</span> <span style="color: #008000;">+</span> channel <span style="color: #008000;">+</span> <span style="color: #666666;">&quot;, &quot;</span> <span style="color: #008000;">+</span> user, writer<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; databaseMYSQL dbconnect <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> databaseMYSQL<span style="color: #008000;">&#40;</span>mysqlhostname, mysqlport, mysqlusername, mysqlpassword, database<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dbconnect<span style="color: #008000;">.</span><span style="color: #0000FF;">adduser</span><span style="color: #008000;">&#40;</span>user<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/* On message to the channel */</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">void</span> onPublicMessage<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">string</span> data<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; data <span style="color: #008000;">=</span> data<span style="color: #008000;">.</span><span style="color: #0000FF;">Substring</span><span style="color: #008000;">&#40;</span><span style="color: #FF0000;">1</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>data<span style="color: #008000;">.</span><span style="color: #0000FF;">Equals</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;!info&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> write<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;PRIVMSG #test :C# IRC bot - mail@gpeopl.es for more info&quot;</span>, writer<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">else</span> <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>data<span style="color: #008000;">.</span><span style="color: #0000FF;">Equals</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;!time&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DateTime time <span style="color: #008000;">=</span> DateTime<span style="color: #008000;">.</span><span style="color: #0000FF;">Now</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6666cc; font-weight: bold;">String</span> now <span style="color: #008000;">=</span> <span style="color: #6666cc; font-weight: bold;">String</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Format</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;{0:F}&quot;</span>, time<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; write<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;PRIVMSG &quot;</span> <span style="color: #008000;">+</span> channel <span style="color: #008000;">+</span> <span style="color: #666666;">&quot; : &quot;</span> <span style="color: #008000;">+</span> now, writer<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/* On receiving a private message */</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">void</span> onPrivateMessage<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">String</span> user, <span style="color: #6666cc; font-weight: bold;">String</span> data<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6666cc; font-weight: bold;">String</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&#93;</span> sender <span style="color: #008000;">=</span> user<span style="color: #008000;">.</span><span style="color: #0000FF;">Split</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">'!'</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; user <span style="color: #008000;">=</span> sender<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">0</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Substring</span><span style="color: #008000;">&#40;</span><span style="color: #FF0000;">1</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; write<span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;PRIVMSG &quot;</span> <span style="color: #008000;">+</span> user <span style="color: #008000;">+</span> <span style="color: #666666;">&quot; :&quot;</span> <span style="color: #008000;">+</span> username <span style="color: #008000;">+</span> <span style="color: #666666;">&quot; C# IRC bot: please use commands in &quot;</span> <span style="color: #008000;">+</span> channel, writer<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/* On part from channel */</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">void</span> onPart<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">String</span> data<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6666cc; font-weight: bold;">String</span><span style="color: #008000;">&#91;</span><span style="color: #008000;">&#93;</span> working <span style="color: #008000;">=</span> data<span style="color: #008000;">.</span><span style="color: #0000FF;">Split</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">'!'</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #6666cc; font-weight: bold;">String</span> user <span style="color: #008000;">=</span> working<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">0</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Substring</span><span style="color: #008000;">&#40;</span><span style="color: #FF0000;">1</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span><span style="color: #008000;">!</span>user<span style="color: #008000;">.</span><span style="color: #0000FF;">Equals</span><span style="color: #008000;">&#40;</span>username<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; databaseMYSQL dbconnect <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> databaseMYSQL<span style="color: #008000;">&#40;</span>mysqlhostname, mysqlport, mysqlusername, mysqlpassword, database<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dbconnect<span style="color: #008000;">.</span><span style="color: #0000FF;">removeuser</span><span style="color: #008000;">&#40;</span>user<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/* On receiving nicklist */</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">void</span> onNickList<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nicks<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">5</span><span style="color: #008000;">&#93;</span> <span style="color: #008000;">=</span> nicks<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">5</span><span style="color: #008000;">&#93;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Substring</span><span style="color: #008000;">&#40;</span><span style="color: #FF0000;">1</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console<span style="color: #008000;">.</span><span style="color: #0000FF;">Write</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;length&quot;</span> <span style="color: #008000;">+</span> nicks<span style="color: #008000;">.</span><span style="color: #0000FF;">Length</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">for</span> <span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">int</span> i <span style="color: #008000;">=</span> <span style="color: #FF0000;">1</span><span style="color: #008000;">;</span> i <span style="color: #008000;">&lt;</span> <span style="color: #008000;">&#40;</span>nicks<span style="color: #008000;">.</span><span style="color: #0000FF;">Length</span> <span style="color: #008000;">-</span> <span style="color: #FF0000;">4</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span> i<span style="color: #008000;">++</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; databaseMYSQL dbconnect <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> databaseMYSQL<span style="color: #008000;">&#40;</span>mysqlhostname, mysqlport, mysqlusername, mysqlpassword, database<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span><span style="color: #008000;">!</span>nicks<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">4</span><span style="color: #008000;">+</span>i<span style="color: #008000;">&#93;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Equals</span><span style="color: #008000;">&#40;</span>username<span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span> dbconnect<span style="color: #008000;">.</span><span style="color: #0000FF;">adduser</span><span style="color: #008000;">&#40;</span>nicks<span style="color: #008000;">&#91;</span><span style="color: #FF0000;">4</span><span style="color: #008000;">+</span>i<span style="color: #008000;">&#93;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #008000;">&#125;</span></div></div>
<p>MYSQL interaction class<br />
</code></p>
<div class="codecolorer-container csharp twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="csharp codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #008080; font-style: italic;">/* MYSQL database connection class for C# IRC bot <br />
&nbsp;* @author: Gareth Peoples<br />
&nbsp;* @email: mail[at]gpeopl.es / gareth.peoples.2009[at]nuim.ie<br />
&nbsp;*/</span><br />
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span><br />
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">MySql.Data.MySqlClient</span><span style="color: #008000;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">class</span> databaseMYSQL &nbsp;<span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> MySqlConnection connection <span style="color: #008000;">=</span> <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> MySqlConnection<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/* Establish connection to MYSQL server */</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> databaseMYSQL <span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">String</span> hostname, <span style="color: #6666cc; font-weight: bold;">int</span> port, <span style="color: #6666cc; font-weight: bold;">String</span> username, <span style="color: #6666cc; font-weight: bold;">String</span> password, <span style="color: #6666cc; font-weight: bold;">String</span> database<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">try</span> <span style="color: #008000;">&#123;</span> &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;connection<span style="color: #008000;">.</span><span style="color: #0000FF;">ConnectionString</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;server=&quot;</span> <span style="color: #008000;">+</span> hostname <span style="color: #008000;">+</span> <span style="color: #666666;">&quot;;&quot;</span> <span style="color: #008000;">+</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666;">&quot;database=&quot;</span> <span style="color: #008000;">+</span> database <span style="color: #008000;">+</span> <span style="color: #666666;">&quot;;&quot;</span> <span style="color: #008000;">+</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666;">&quot;uid=&quot;</span> <span style="color: #008000;">+</span> username <span style="color: #008000;">+</span> <span style="color: #666666;">&quot;;&quot;</span> <span style="color: #008000;">+</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666;">&quot;password=&quot;</span> <span style="color: #008000;">+</span> password <span style="color: #008000;">+</span> <span style="color: #666666;">&quot;;&quot;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; connection<span style="color: #008000;">.</span><span style="color: #0000FF;">Open</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0600FF; font-weight: bold;">catch</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;Unable to connect to MYSQL server&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/* Add new user to MYSQL database &amp; disconnect */</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">void</span> adduser<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">String</span> user<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; MySqlCommand query <span style="color: #008000;">=</span> connection<span style="color: #008000;">.</span><span style="color: #0000FF;">CreateCommand</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; query<span style="color: #008000;">.</span><span style="color: #0000FF;">CommandText</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;INSERT INTO irc (user) VALUES ('&quot;</span> <span style="color: #008000;">+</span> user <span style="color: #008000;">+</span> <span style="color: #666666;">&quot;')&quot;</span><span style="color: #008000;">;</span> &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">try</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MySqlDataReader result <span style="color: #008000;">=</span> query<span style="color: #008000;">.</span><span style="color: #0000FF;">ExecuteReader</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; result<span style="color: #008000;">.</span><span style="color: #0000FF;">Close</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; connection<span style="color: #008000;">.</span><span style="color: #0000FF;">Close</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">catch</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;ERROR: Unable to query database&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008080; font-style: italic;">/* Remove user from MYSQL database &amp; disconnect */</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #6666cc; font-weight: bold;">void</span> removeuser<span style="color: #008000;">&#40;</span><span style="color: #6666cc; font-weight: bold;">String</span> user<span style="color: #008000;">&#41;</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; MySqlCommand query <span style="color: #008000;">=</span> connection<span style="color: #008000;">.</span><span style="color: #0000FF;">CreateCommand</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; query<span style="color: #008000;">.</span><span style="color: #0000FF;">CommandText</span> <span style="color: #008000;">=</span> <span style="color: #666666;">&quot;DELETE from irc where user = '&quot;</span><span style="color: #008000;">+</span> user <span style="color: #008000;">+</span> <span style="color: #666666;">&quot;';&quot;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">try</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MySqlDataReader result <span style="color: #008000;">=</span> query<span style="color: #008000;">.</span><span style="color: #0000FF;">ExecuteReader</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; result<span style="color: #008000;">.</span><span style="color: #0000FF;">Close</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; connection<span style="color: #008000;">.</span><span style="color: #0000FF;">Close</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0600FF; font-weight: bold;">catch</span> <span style="color: #008000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Console<span style="color: #008000;">.</span><span style="color: #0000FF;">WriteLine</span><span style="color: #008000;">&#40;</span><span style="color: #666666;">&quot;ERROR: Unable to query database&quot;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #008000;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #008000;">&#125;</span></div></div>
<p>PHP frontend:</p>
<div class="codecolorer-container php twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><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;?php</span><br />
&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">/* Web interface for C# IRC bot <br />
&nbsp; &nbsp; * &nbsp; @author: Gareth Peoples<br />
&nbsp; &nbsp; * &nbsp; @email: mail[at]gpeopl.es / gareth.peoples.2009[at]nuim.ie<br />
&nbsp; &nbsp; */</span><br />
<span style="color: #000088;">$connection</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_connect"><span style="color: #990000;">mysql_connect</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'host'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'username'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'password'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">// Check MYSQL connection</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$connection</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$select</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_select_db"><span style="color: #990000;">mysql_select_db</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;irc&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$connection</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$select</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;b&gt;Currently connected users on IRC&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$query</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;select user from irc&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_query"><span style="color: #990000;">mysql_query</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$query</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$numrows</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_num_rows"><span style="color: #990000;">mysql_num_rows</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span> <span style="color: #339933;">&lt;</span> <span style="color: #000088;">$numrows</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;br /&gt; &quot;</span> <span style="color: #339933;">.</span> <a href="http://www.php.net/mysql_result"><span style="color: #990000;">mysql_result</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #339933;">,</span> <span style="color: #000088;">$i</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$i</span><span style="color: #339933;">++;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;No connection to MYSQL server!&quot;</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></div></div>
<p>Configuration file:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">username: testbot<br />
hostname: irc.server.org<br />
description:insert description here<br />
channel:#test<br />
mysqlhostname:hostname<br />
mysqlusername:username<br />
mysqlpassword:password<br />
database:irc<br />
port:6667<br />
mysqlport:3306</div></div>
<p>This code was written using MonoDevelop on Ubuntu, but it should be cross platform on Windows and Mac OS X when compiled.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gpeopl.es/?feed=rss2&amp;p=244</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;Faith Schools Menace&#8221; (Richard Dawkins) thoughts&#8230;</title>
		<link>http://www.gpeopl.es/?p=229</link>
		<comments>http://www.gpeopl.es/?p=229#comments</comments>
		<pubDate>Thu, 19 Aug 2010 10:44:59 +0000</pubDate>
		<dc:creator>Gareth Peoples</dc:creator>
				<category><![CDATA[Agnosticism]]></category>
		<category><![CDATA[Atheism]]></category>
		<category><![CDATA[Christianity]]></category>
		<category><![CDATA[Civil Liberties]]></category>
		<category><![CDATA[Conflict]]></category>
		<category><![CDATA[Equality]]></category>
		<category><![CDATA[Ireland]]></category>
		<category><![CDATA[Irreligion]]></category>
		<category><![CDATA[Islam]]></category>
		<category><![CDATA[Judaism]]></category>
		<category><![CDATA[Morality]]></category>
		<category><![CDATA[Northern Ireland]]></category>
		<category><![CDATA[Politics]]></category>
		<category><![CDATA[Religion]]></category>
		<category><![CDATA[Science]]></category>
		<category><![CDATA[Scripture]]></category>
		<category><![CDATA[Secular humanism]]></category>
		<category><![CDATA[Society]]></category>
		<category><![CDATA[Theistic evolution]]></category>
		<category><![CDATA[UK]]></category>
		<category><![CDATA[Young Earth Creationism]]></category>

		<guid isPermaLink="false">http://www.gpeopl.es/?p=229</guid>
		<description><![CDATA[For those of you who haven&#8217;t yet seen the documentary, please do watch it before reading this blog post because it does contain a lot of spoilers. As far as I know the link only works in the UK &#38; Republic of Ireland (unless you have a proxy). &#8220;Faith Schools Menace&#8221; was an interesting take [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" title="Richard Dawkins - Faith Schools Menace" src="http://c0508042.cdn.cloudfiles.rackspacecloud.com/faithschool.jpg" alt="" width="234" height="156" />For those of you who haven&#8217;t yet seen the documentary, please <a href="http://www.channel4.com/programmes/faith-school-menace/4od#3112619">do watch it</a> before reading this blog post because it does contain a lot of spoilers. As far as I know the link only works in the UK &amp; Republic of Ireland <em>(unless you have a proxy)</em>.</p>
<p><em>&#8220;Faith Schools Menace&#8221;</em> was an interesting take on the faith schools issue. As I suspected it took the &#8220;one size fits all&#8221; approach to faith schooling. I.E &#8211; That all schools should be secular, and that parents shouldn&#8217;t be at liberty to decide how best to educate their child, which also would include teaching on morality and religion. There were a number of surprises throughout however. The documentary did leave much to tweet, and did generate <a href="http://search.twitter.com/search?q=%23faithschoolsmenace">much discussion</a> on Twitter.</p>
<p><strong>Lack of secular alternatives</strong> &#8211; In one section of the documentary, Richard Dawkins looks at a map of Oxford, and looks at the number of faith schools that exist in and around the city. He notes that non-believers would have to take miles to find a secular school. This is a fair criticism and one that I sympathise with, but I don&#8217;t think it is an argument against faith schools themselves. It is an argument against the Governments provision of schools according to the demographics. If one was to scrap faith schools entirely, one would leave parents who wish for their child to learn about their faith in exactly the same situation. This is an argument more for the equality of choice for non-believers, rather than limiting the choice of believers when it comes to finding a faith school.</p>
<p><strong>Northern Ireland </strong>- He then takes a trip up to Northern Ireland, both interviewing the Grand Chaplain of the Orange Order, and a principal at a Roman Catholic faith school. His argument being that denominational splits in education exacerbated the Troubles in Northern Ireland. Of course, this is true. I don&#8217;t think anyone would disagree with this. However, on the same note, he neglects to note that the conflict was much more based on politics and culture than it ever was on whether or not people believed in Transubstantiation, or whether one took a Reformed view of theology. He also fails to note that faith schools in other areas of the world can operate without creating such entrenched views. Indeed, in the vast majority of situations they operate in such a context.</p>
<p><strong>Islam and Young Earth Creationism</strong> &#8211; This was one part of the documentary where one found it hard to disagree with Dawkins. He goes into an Islamic faith school, and it is evident that the science teacher is teaching Creationism <em>(YEC)</em> alongside biological evolution in the classroom, and encouraging students to be skeptical in relation to such science. The problem with such an approach is that the science teacher clearly demonstrated a misunderstanding in terms of the relationship between primates and human beings. When Dawkins asked the head teacher of his opinions, he used the &#8220;evolution is just a theory&#8221; line and is more a subject of belief rather than science. By this point you can see the frustration in Dawkins&#8217; face. He informs him that fighting against evolution is a losing battle, and they should take up the approach of the Christians <em>(obviously forgetting his dialogue with Ted Haggard in the US in his last series of documentaries)</em> and interpret the Qur&#8217;anic scriptures to be compatible with modern science.</p>
<p>Again, as I said earlier this is a point where I agree with Dawkins, but again it is an argument only that certain practices in faith schools aren&#8217;t acceptable, rather that faith schools themselves should be scrapped. For example, when I was at secondary school during senior cycle studying RE when the teacher <em>(also the chaplain of the school)</em> was referring to Christian views on Creationism, he listed out the main three. Namely Young Earth Creationism, Theistic Evolution, and effective uncertainty in respect to how all came to be. Curriculum in the RE course, and curriculum in the science course was effectively separate. My point being that it is very possible to 1) believe in evolution and retain ones faith, and 2) teach all perspectives about Creationism <em>(Broad sense, referring to the creation, rather than Young Earth Creationism)</em>.</p>
<p><strong>Appreciation of the Bible as a key part of British culture</strong>- In another area of the documentary he looks over Britain, and describes Britain&#8217;s Christian heritage, and reads passages from the King James Bible. Indeed this bit did surprise me, and indeed it surprised many people who were tweeting as the documentary was on.<br />
Blogger <em><a href="http://churchmousepublishing.blogspot.com/">The Church Mouse</a></em> tweeted the following:</p>
<blockquote><p>Did Dawkins just say he loves reading the Bible!?</p></blockquote>
<p>And indeed, it was a notable thing to say that even from his current perspective on faith that he would be happy to teach about Christianity and other faiths in the classroom. Albeit teaching them as relics of past culture, rather than texts which are indeed alive through their adherents.</p>
<p><strong>The purpose of faith schooling </strong>- In another part of the documentary Dawkins interviews the Church of England Education Secretary and asks her what she thinks of education. And in paraphrase she says something along the lines of &#8220;If there is anything we do indoctrinate, it is that faith is important&#8221;. She continues to say that one cannot make an informed choice about faith if one hasn&#8217;t experienced what it is like first. People in their school years, get a chance to experience Christianity should their parents bring them to a faith school, and ultimately in their later years they will make a decision for themselves whether or not they wish to keep that faith, or abandon it. This is a reasonable point, and it is perhaps the purpose of faith schools for believing parents. They offer an opportunity to share the values they find so important with their children. Indeed, not even Dawkins is immune to this, given that he shared his values of skepticism and enquiry through a letter he wrote to his daughter on her tenth birthday.</p>
<p><strong>Children are more inclined to purpose based answers</strong> &#8211; I found this part of the documentary interesting, but ultimately that I believe that the reasoning is flawed. Dawkins interviews a child psychologist, who then says that children are more inclined to look for purpose based answers to naturally occurring phenomena, such as why rocks are pointy. Dawkins then uses this to explain why children might be especially vulnerable to religion at a young age. Indeed, at a first glance this reasoning does seem quite sound. However, it makes two assumptions:<br />
1. That children will keep this faith forever &#8211; surely if children grow out of such purpose based explanations they should be more inclined to reject the faith of their childhood.<br />
2. All purpose based explanations are wrong &#8211; This is a logical leap. Just because some purpose based explanations such as that pointy rocks exist for animals to scratch themselves on when they are itchy are clearly inaccurate, doesn&#8217;t mean that all purpose based explanations are wrong. Indeed, it ignores that the argument for why people believe in God is also based on a necessity for a first cause <em>(cosmological)</em> rather than that everything that exists must of necessity have a purpose <em>(or that it all has a telos)</em>.</p>
<p>Over all though, I found it to be quite an interesting take. If you wish to leave a comment please do, and if you are following this from Facebook, my blog is at <strong><a href="http://www.gpeopl.es">www.gpeopl.es</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.gpeopl.es/?feed=rss2&amp;p=229</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Why believe? &#8211; The Resurrection</title>
		<link>http://www.gpeopl.es/?p=157</link>
		<comments>http://www.gpeopl.es/?p=157#comments</comments>
		<pubDate>Tue, 10 Aug 2010 21:29:44 +0000</pubDate>
		<dc:creator>Gareth Peoples</dc:creator>
				<category><![CDATA[Christianity]]></category>
		<category><![CDATA[Irreligion]]></category>
		<category><![CDATA[Religion]]></category>
		<category><![CDATA[Scripture]]></category>

		<guid isPermaLink="false">http://www.gpeopl.es/?p=157</guid>
		<description><![CDATA[I&#8217;m hoping that this will be the first of a series of posts explaining the reasoning behind my current belief in Christianity. Over the last few years I&#8217;ve had a lot of people ask me for solid basis in what I believe, and I think that this blog gives me the opportunity to adequately show [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m hoping that this will be the first of a series of posts explaining the reasoning behind my current belief in Christianity. Over the last few years I&#8217;ve had a lot of people ask me for solid basis in what I believe, and I think that this blog gives me the opportunity to adequately show you my reasoning, and that this blog also offers an easy enough place to be able to access it. I&#8217;m going to split this post up into two sections, the first being why the Resurrection is so important for Christians, and the second being how is it reasonable to believe that Jesus rose from the dead.</p>
<p><strong>1. Why is the Resurrection important to Christians?</strong><br />
In 1st Corinthians, Paul writes the following about the Resurrection of Christ:</p>
<blockquote><p>&#8220;If there is no resurrection of the dead, then not even Christ has been raised. And if Christ has not been raised, <strong><em>our preaching is useless and so is your faith</em></strong>&#8221; -1 Corinthians 15:13-14</p></blockquote>
<p>The Resurrection of Jesus is essential, it is the hinging point on which the early church began it&#8217;s mission. After all, how could one in all earnest call the Gospel the good news, unless it actually was good news. Part of the importance of the Resurrection, not only is that Jesus conquered death by the Resurrection, but also that through Him we can conquer death also. We as Christians are an intrinsic part of the Resurrection in Christian belief.</p>
<p>In Romans the following is written:</p>
<blockquote><p>What shall we say, then? Shall we go on sinning, so that grace may increase? By no means! We died to sin; how can we live in it any longer? Or don&#8217;t you know that all of us who were baptized in Christ Jesus was baptised into His death? <strong>We are therefore buried with Him through baptism into death in order just as Christ was raised from the dead through the glory of the Father, we too may live a new life</strong> &#8211; Romans 6:1-4</p></blockquote>
<p>It is through the belief that Jesus died for our sins, that we believe that we cannot live in attachment to our sin, because we have died to our old former lives, and have risen to new life in Him. This is a key reason why Christians use the clichéd term <strong>&#8220;born again&#8221;</strong> <em>(used in John 3:7)</em> because we have been raise to new life in Jesus Christ <em>(2 Corinthians 5:17, 1 Peter 1:3)</em>.</p>
<p>By knowing that Jesus has died for our sins, and that He has risen again, we must come to the realisation that we are called to live new lives independent from our former lives that were lived in sin.</p>
<p><strong>2. How is it reasonable to believe that Jesus rose from the dead?</strong></p>
<p>Now that I&#8217;ve gone through the reasoning as to why Christians believe the Resurrection is crucially important to their faith, we should discuss why we would be led to think that the Resurrection happened in reality:</p>
<p><strong>A. Church history does not make sense without a critical event following the death of Jesus.</strong><br />
Think about the series of events that occurred both before Jesus was crucified, and the immediate future afterwards:</p>
<blockquote><p>1. You&#8217;ve been with a charismatic preacher for three years in Israel.<br />
2. You have come to know this man, you have listened to what he has preached, you have seen him endure trials from those around him, and have come to know much about who he is.<br />
3. You see this man die in a brutal fashion.<br />
<b>X.</b><br />
4. You amongst a dozen others who had some form of contact with this preacher go out into the Gentile world preaching that he risen from the dead, and that we can become a new Creation in Him <em>(2 Corinthians 5:17, 1 Peter 1:13)</em> at the risk of death by the civil authorities.<br />
5. You and others are indeed killed for preaching the good news that had come out of this.</p></blockquote>
<p>It seems very difficult to make sense of the progression between point 3 and point 4 without considering an interim event X.</p>
<p><strong>What merit would there be in risking your life for a lie? -</strong> The lives that these people would live, weren&#8217;t lives of privilege but lives of poverty in the name of spreading the good news of Jesus Christ. The authorities regarded this faith as a cult, and would put anyone to death who was preaching it in the nearby region. Not only do the stakes seem a little bit high for preaching a lie, but there are no benefits in it, and indeed you would have to convince 12 other people that this was indeed what one should do. Indeed, more than 12 people if one thinks about how the Christian movement would spread further around the Gentile world. What reasoning would be behind this?</p>
<p><strong>What is the probability that all the disciples plus the women at the tomb were deceived?</strong> &#8211; Again this seems limited if we are both to consider that there were a lot more than 1 person involved even if we only consider the followers that Jesus had with Him. <em>(1 Corinthians 15:6 mentions that over 500 people witnessed the risen Jesus)</em>, and if we are to consider that the other disciples, and the other followers that Jesus had had been following Him for roughly three years of His life, the chance of confusion based on either appearance or character seems unlikely.</p>
<p><strong>B. The New Testament documents indicate honesty in respect to the Resurrection account.</strong>All of the Gospels, mention that women were the first to have seen the risen Jesus at the tomb:</p>
<blockquote><p>After the Sabbath, at dawn on the first day of the week, Mary Magdalene and the other Mary went to look at the tomb &#8211; Matthew 28:1</p></blockquote>
<blockquote><p>When Jesus rose early on the first day of the week, He appeared first to Mary Magdalene, out of whom He had driven seven demons. &#8211; Mark 16:9</p></blockquote>
<blockquote><p>On the first day of the week, very early in the morning, the women took the spices they had prepared and went to the tomb. &#8211; Luke 24:1</p></blockquote>
<blockquote><p>Early on the first day of the week, while it was still dark, Mary Magdalene went to the tomb and saw that the stone had been removed from the entrance. &#8211; John 20:1</p></blockquote>
<p><strong>Why is this important you ask? -</strong> In Middle Eastern cultures at the time of Jesus, and some even to this day, the testimony of a woman was only worth half that of a man. If one were conjuring up a myth to pass on to people, one definitely wouldn&#8217;t begin at the conclusion that the first main witnesses were women. This would have been seen as humiliating, and simply wouldn&#8217;t have been done if one wished to make the Christian message look good, rather than profess the mere blunt truth.</p>
<p><strong>What case is there that the Gospel accounts were merely contrived?</strong> &#8211; Leaving aside the previous point that I made concerning why it would be unlikely that the Gospel accounts were merely contrived based on the fact that women were the first to the tomb. The timing of constructing a consistent narrative, also seems improbable given the time space that was involved. </p>
<p>If one considers firstly that Jesus was crucified in the year 33AD under Pontius Pilate and Emperor Caesar Tiberius, and if one considers that 1 Corinthians, the letter that Paul wrote to Corinth in 54AD preaches about the Resurrection, the Last Supper, and the Crucifixion of Jesus. If one does the math on this difference, one will see that there is 21 years between the crucifixion and the writing of this letter. This is also taking into account that there must have been some means of transmission between the Apostles and Paul as to the teaching of Christianity. Paul did not meet any of the other Apostles until he was in his ministry according to his letter to the Galatians:</p>
<blockquote><p>nor did I go up to Jerusalem to see those who were apostles before I was, but I went immediately into Arabia and later returned to Damascus. Then <strong>after three years</strong>, I went up to Jerusalem to get acquainted with Peter and stayed with him for fifteen days. I saw none of the other apostles &#8211; only James, the Lord&#8217;s brother. &#8211; Galatians 1:17-19</p></blockquote>
<p>So not only are we talking about a short period of time for direct communication between the Apostles, and Paul, but we are talking about a short time between the communication that Paul received indirectly from them. <em>(Acts 9:1-19)</em></p>
<p>Most estimates based on the dates that Paul provide in the letter to the Galatians, and the dates provided in the book of Acts put Paul&#8217;s conversion itself between 33 and 37AD. </p>
<p>Given how widely the Apostles had dispersed in the general region, and taking into account the length of time involved in transportation, it seems highly unlikely that all the Apostles would have contrived a consistent account of the events that took place in Jesus&#8217; life.</p>
<p>From my current position, I can believe in the Resurrection, because the evidence that we have seems to rule in its favour in terms of the Gospel accounts, in terms of the historical dating of the documents, and in terms of how this fits into the overall history of the early church. I would encourage you to think about this seriously for yourselves and if you see any difficulties involved in my thinking on this please comment on this. If you are reading on Facebook, please read my blog at <strong><a href="http://www.gpeopl.es">www.gpeopl.es</a></strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gpeopl.es/?feed=rss2&amp;p=157</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Women and Quotas in Politics</title>
		<link>http://www.gpeopl.es/?p=137</link>
		<comments>http://www.gpeopl.es/?p=137#comments</comments>
		<pubDate>Mon, 09 Aug 2010 22:48:31 +0000</pubDate>
		<dc:creator>Gareth Peoples</dc:creator>
				<category><![CDATA[Civil Liberties]]></category>
		<category><![CDATA[Equality]]></category>
		<category><![CDATA[Gender]]></category>
		<category><![CDATA[Ireland]]></category>
		<category><![CDATA[Philosophy]]></category>
		<category><![CDATA[Politics]]></category>

		<guid isPermaLink="false">http://www.gpeopl.es/?p=137</guid>
		<description><![CDATA[Is it right to take affirmative action and to place a % quota on the amount of women that must run in an election, or is such an idea patronising to women suggesting that they cannot run for election on their own merit? This subject has been debated to and fro over the last few [...]]]></description>
			<content:encoded><![CDATA[<p>Is it right to take affirmative action and to place a % quota on the amount of women that must run in an election, or is such an idea patronising to women suggesting that they cannot run for election on their own merit?</p>
<p>This subject has been debated to and fro over the last few days in the Irish Times, which noted that the vast majority of women TD&#8217;s opposed it on the basis that it was patronising. In response Labour Senator Ivana Bacik <a href="http://www.irishtimes.com/newspaper/opinion/2010/0805/1224276242523.html">has responded in the Irish Times</a> suggesting that quotas are indeed a positive thing. </p>
<p>Admittedly, I&#8217;m a little bit torn myself on the issue, as I can see merits on both sides. It is incredibly patronising to women to suggest that they cannot be elected on their own merit, but at the same time, are more women going to really take an interest in politics if they continue to see that it is as male-dominated as it is? </p>
<p>As I&#8217;m seeing it, political parties are going to have to take a greater interest in putting across women candidates in constituencies as a whole in order to give women a bigger role in politics on their own accord, or the State will have to place an arbitrary limit on the gender of candidates, or that the situation will remain as it is. </p>
<p>Quotas have already occurred in a number of European countries for elections, one of the most notable being Denmark which only had a temporary gender quota in politics until the situation became more balanced, after this point it was removed. This is an option for the Irish context.</p>
<p>Ivana Bacik&#8217;s article does bring up an interesting point, for further thought:</p>
<blockquote><p><strong>First, without more women TDs, our democracy is not truly representative. This means that voter choice in Ireland is severely restricted.</strong> In the 2007 general election, women constituted only 17 per cent of candidates overall. At least 60 per cent of constituencies had no women candidates from either of the two largest political parties; Fianna Fáil fielded no women candidates in 28 constituencies and Fine Gael had no women standing in 30 constituencies. In five constituencies out of 43, no women candidates stood, even as Independents.</p></blockquote>
<p>She claims that since women candidates are not being selected by parliamentary parties, that our choice of candidate to vote for is limited, and that we are in a sense almost forced to vote for a male. Thus it is stifling democratic choice in the market place. However, on the other hand, if such a quota was imposed on a party level, would it mean that the choice mightn&#8217;t be based on merit any more but on the compulsion for female candidates to be drawn.</p>
<p>This of course also leads into a &#8220;slippery slope&#8221; argument, that if we are to make quotas for women in politics, that we should also make similar quotas for demographic minorities such as travellers, LGBT, Jews, Muslims, atheists, and so on. </p>
<p>The main question really lies in should we engineer our political system, or not. As for my verdict, I remain undecided.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gpeopl.es/?feed=rss2&amp;p=137</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to: Facebook Chat without a web browser</title>
		<link>http://www.gpeopl.es/?p=113</link>
		<comments>http://www.gpeopl.es/?p=113#comments</comments>
		<pubDate>Mon, 09 Aug 2010 19:07:01 +0000</pubDate>
		<dc:creator>Gareth Peoples</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[How-tos]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[cross platform]]></category>
		<category><![CDATA[Facebook Chat]]></category>
		<category><![CDATA[jabber]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[notepad]]></category>
		<category><![CDATA[philosophy]]></category>
		<category><![CDATA[politics]]></category>
		<category><![CDATA[Psi]]></category>
		<category><![CDATA[Religion]]></category>
		<category><![CDATA[technical]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://gpeoples.net/?p=113</guid>
		<description><![CDATA[Apologies to all for not posting for a while, I&#8217;ve been up to numerous things that I hope to update you all on over the next while! Today&#8217;s post is going to be more technical, rather than to do with philosophy, politics, or religion. Many of you will no doubt see this blog via my [...]]]></description>
			<content:encoded><![CDATA[<p><em>Apologies to all for not posting for a while, I&#8217;ve been up to numerous things that I hope to update you all on over the next while! </em></p>
<p>Today&#8217;s post is going to be more technical, rather than to do with philosophy, politics, or religion. Many of you will no doubt see this blog via my Facebook page. This blog is about how can get the most out of what <a href="http://www.facebook.com"><em>Facebook</em></a> offers while not using a web browser. Personally, I&#8217;ve found that <a href="http://www.facebook.com"><em>Facebook</em></a> chat can get quite annoying when it is tucked over to one side of the screen, and I always wondered if there was a way of chatting via <em><a href="http://www.facebook.com">Facebook</a></em> without including it on your browser. </p>
<p>The good news was that yes you can do this. <em><a href="http://www.facebook.com">Facebook</a></em> have <a href="http://www.facebook.com/sitetour/chat.php">allowed access to the chat via the Jabber protocol</a> <em>(XML based chat)</em> outside of web browsers and in regular applications, and Jabber clients. For the purposes of this demonstration I will be showing you how to set up Facebook Chat on <a href="http://www.psi-im.org">Psi</a> a Jabber chat client that works cross platform on Windows, OSX and Linux.</p>
<p><em>Instructions: (Step by step diagrams soon!)</em></p>
<blockquote><p>
1. <strong>First of all <a href="http://psi-im.org/download/">download Psi</a></strong> and install for which ever operating system you happen to have.</p>
<p>2. After installation, run Psi for the first time. Click <strong>General -> Account Setup</strong>, then click Add.</p>
<p>3. Name the account &#8220;Facebook Chat&#8221; and <strong>leave &#8220;Register New Account&#8221; unticked.</strong></p>
<p>4. While logged in on Facebook, <a href="http://www.facebook.com/sitetour/chat.php">click here</a> and then <strong>click Other (Windows / Mac / Linux) and copy the details into notepad</strong>.</p>
<p>5. On the Psi window that popped up <em>(on the account tab)</em> where it says Jabber ID, copy and paste the Jabber ID from notepad.</p>
<p>6. In password, enter your Facebook password.</p>
<p>7. Under settings tick all of the boxes.</p>
<p>8. Click the Connection tab, and click Manually Specify Server Host / Port. <strong>Leave port 5222 as is, but add chat.facebook.com</strong>.</p>
<p>9. Click Save on the bottom. Right click on Facebook Chat, and tick Status -> Online in the main Psi window. Your Facebook chat list should be brought up within no time, and you should be able to chat direct from Psi rather than your browser.
</p></blockquote>
<p>If you are reading from Facebook, please click <strong><a href="http://www.gpeopl.es">www.gpeopl.es</a></strong> to check out my blog! </p>
]]></content:encoded>
			<wfw:commentRss>http://www.gpeopl.es/?feed=rss2&amp;p=113</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jesus the raging ruler of Revelation?</title>
		<link>http://www.gpeopl.es/?p=88</link>
		<comments>http://www.gpeopl.es/?p=88#comments</comments>
		<pubDate>Tue, 08 Jun 2010 18:47:35 +0000</pubDate>
		<dc:creator>Gareth Peoples</dc:creator>
				<category><![CDATA[Atheism]]></category>
		<category><![CDATA[Christianity]]></category>
		<category><![CDATA[Irreligion]]></category>
		<category><![CDATA[Judaism]]></category>
		<category><![CDATA[Religion]]></category>
		<category><![CDATA[Scripture]]></category>
		<category><![CDATA[2 Corinthians]]></category>
		<category><![CDATA[Adam Clarke]]></category>
		<category><![CDATA[Atheist Ireland]]></category>
		<category><![CDATA[Christian]]></category>
		<category><![CDATA[churches]]></category>
		<category><![CDATA[commentary]]></category>
		<category><![CDATA[cryptic]]></category>
		<category><![CDATA[debate]]></category>
		<category><![CDATA[Isaiah]]></category>
		<category><![CDATA[Jesus]]></category>
		<category><![CDATA[Jezebel]]></category>
		<category><![CDATA[Law of Moses]]></category>
		<category><![CDATA[literalism]]></category>
		<category><![CDATA[Matthew Henry]]></category>
		<category><![CDATA[Michael Nugent]]></category>
		<category><![CDATA[NUI Maynooth]]></category>
		<category><![CDATA[Revelation]]></category>
		<category><![CDATA[sexual immorality]]></category>
		<category><![CDATA[theology]]></category>
		<category><![CDATA[Thyatira]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://gpeoples.net/?p=88</guid>
		<description><![CDATA[Over a week ago, Michael Nugent (chairperson of Atheist Ireland) tweeted about his recent blog post on Jesus, and the alleged role that Jesus happens to take from the Jesus (presumably meek and mild) of the Gospels which differs from the Jesus of the book of Revelation (presumably cruel and callous). A prophetic book, and [...]]]></description>
			<content:encoded><![CDATA[<p>Over a week ago, Michael Nugent <em>(chairperson of Atheist Ireland)</em> tweeted about <a href="http://www.michaelnugent.com/2010/05/30/jesus-the-raging-ruler-of-revelation/">his recent blog post</a> on Jesus, and the alleged role that Jesus happens to take from the Jesus <em>(presumably meek and mild)</em> of the Gospels which differs from the Jesus of the book of Revelation <em>(presumably cruel and callous)</em>. A prophetic book, and the closing book of the Biblical canon in all Christian traditions. He claimed that moderate Christians didn&#8217;t really have a real case for arguing that Jesus overturned the Law of Moses, since He Himself was quite capable of exercising judgement on His own. I&#8217;ve been meaning to follow up on this for quite a while. </p>
<p>As <a href="http://www.michaelnugent.com/2010/05/30/jesus-the-raging-ruler-of-revelation/">the blog</a> went on, I began to notice that the assumption behind his reading of Revelation was that it should be taken literally. There can be no middle ground, either you read it this way, or you don&#8217;t read it at all, effectively being the reasoning that is being used. The book itself however, is written in a cryptic fashion in a way that the early Christian communities would have understood, but in a way that others outside these communities wouldn&#8217;t have been able to understand easily. This is what can make the book complex to a modern reader, and indeed Revelation is arguably the most complicated book in the entire Bible.</p>
<p>One example seemed to be familiar, and indeed, I had a back and forth with him on <em>Twitter</em> about this <em>(Hopefully this will open up a broader discussion)</em>. That is the reference concerning Jezebel <em>(quoted below)</em> in Jesus&#8217; description of the 7 churches at the beginning of John&#8217;s vision:</p>
<blockquote><p>He told the angel of oAne church that a woman called Jezebel had seduced his servants to fornicate, so he was going to kill her children with death.</p></blockquote>
<p>This is referring to Revelations chapter 2, particularly the quoted section below:</p>
<blockquote><p>‘I know your works, your love and faith and service and patient endurance, and that your latter works exceed the first. <strong>But I have this against you, that you tolerate that woman Jezebel</strong>, who calls herself a prophetess and is teaching and seducing my servants to practice sexual immorality and to eat food sacrificed to idols. I gave her time to repent, but she refuses to repent of her sexual immorality. Behold, I will throw her onto a sickbed, and those who commit adultery with her I will throw into great tribulation, unless they repent of her works, and <strong>I will strike her children dead</strong>. And all the churches will know that I am he who searches mind and heart, and I will give to each of you according to your works.<br />
<em>Revelation 2:19-23 (ESV)</em></p></blockquote>
<p>He had brought up the concept of the two Jesus&#8217; at <a href="http://gpeoples.net/?p=48">the debate that occurred at NUI Maynooth</a> at the end of March concerning God&#8217;s role in moral action, and it is clear that this is something that he has been researching for the last while. He quotes this passage, as if it is referring to a literal woman Jezebel, whose children are about to be killed for their mothers actions.</p>
<p>I pointed out on <em>Twitter</em> that Jezebel was in reference to the Biblical figure described in <em>1 Kings </em>of the Hebrew Scriptures, to which I received a response that indeed this was in reference to Jezebel, but that this was also a literal person, and that no Christian commentaries he had come across offered an alternative interpretation. My interpretation being that the reference is referring to those who had lived lives in a similar fashion to Jezebel the woman referred to in <em>1 Kings.</em></p>
<p>Indeed, verse 23 which refers to the children, Jesus refers to Himself as the one who <em><strong>&#8220;searches mind and heart&#8221;</strong></em>. If these children were merely the innocent who were punished due to the actions of their mother, why would it be important that Jesus searches mind and heart. If their consciences were clean, then surely Jesus would know whether or not these people were deserving of such judgement. It makes little or no sense that the emphasis on Jesus as the knower of conscience would even be emphasised if we are to accept the reading that Jezebel is referring to a literal person within the church of Thyatira. Not only this Jesus goes on before the verse ends <strong><em>&#8220;I will give to all according to their works&#8221;</em>.</strong> If the &#8220;children&#8221; being referred to were innocent, and that Jesus was going to give to all &#8220;according to their works&#8221; surely there would be nothing to give?</p>
<p>In the Matthew Henry Bible Commentary from verses 19  &#8211; 23 of chapter 2 in Revelation says the following concerning the Jezebel reference. What was lacking was:</p>
<blockquote><p>A faithful reproof for what was amiss. This is not so directly charged upon the church itself as upon some <strong>wicked seducers</strong> who were among them; the church’s fault was that she connived too much at them.<br />
<em>Henry, M. (1996). Matthew Henry&#8217;s commentary on the whole Bible : Complete and unabridged in one volume (Re 2:18–29). Peabody: Hendrickson.</em></p></blockquote>
<p>These seducers were plural if anything. The commentary goes on to describe these &#8220;wicked seducers&#8221; who were in the church of Thyatria:</p>
<blockquote><p>These wicked seducers <em><strong>were compared to Jezebel, and called by her name</strong></em>. Jezebel was a persecutor of the prophets of the Lord, and a great patroness of idolaters and false prophets. The sin of these seducers was that they attempted to draw the servants of God into fornication, and to offer sacrifices to idols; they called themselves prophets, and so would claim a superior authority and regard to the ministers of the church.<br />
<em>Henry, M. (1996). Matthew Henry&#8217;s commentary on the whole Bible : Complete and unabridged in one volume (Re 2:18–29). Peabody: Hendrickson.</em></p></blockquote>
<p>There was a comparison involved, between these evil seducers and the Biblical Jezebel of <em>1 Kings</em> in the Hebrew Scriptures. </p>
<p>It is also true, that other commentaries including the <em><a href="http://www.godrules.net/library/clarke/clarkerev2.htm">Adam Clarke commentary</a></em> do refer to the Jezebel figure, as an allusion to a particular woman in the Thyatria Christian community, but if this is the case, this does make verse 23 where Jesus makes clear that he will punish those based on their own actions, and their own hearts more questionable. This part of 23 is not referred to at all in Adam Clarke&#8217;s commentary. </p>
<p>Touching on the broader view of the blog post. When Jesus was on earth, in the Gospel text Jesus Himself made clear that He Himself had received all authority from the Father <em>(<a href="http://ref.ly/Mt28.18">Matthew 28:18</a>)</em>. The Jewish prophet Isaiah had written concerning the Messiah that:</p>
<blockquote><p>For to us a child is born,<br />
to us a son is given;<br />
  and <strong>the government shall be upon his shoulder</strong>,<br />
and his name shall be called<br />
  Wonderful Counselor, Mighty God,<br />
Everlasting Father, Prince of Peace.<br />
<em>Isaiah 9:6 (ESV)</em>
</p></blockquote>
<p>Jesus had always made clear that for this time that God has bestowed mercy upon those who were looking to be forgiven their sins. He had said to the woman in adultery, <em>&#8220;Neither do I condemn you, go and sin no more&#8221;</em> <em>(<a href="http://ref.ly/Jn8.10">John 8:10</a>)</em>. Concerning his purposes while He was serving on this earth, Jesus says:</p>
<blockquote><p> If anyone hears my words and does not keep them, I do not judge him; for I did not come to judge the world but to save the world. The one who rejects me and does not receive my words has a judge; the word that I have spoken will judge him on the last day.<br />
<em>John 12:47-48 (ESV)</em></p></blockquote>
<p>Jesus didn&#8217;t come to condemn, but on His return He will. This is the reason why I can believe that the Jesus of the Gospels, is the same Jesus of the Revelation. Jesus came to offer us a chance of forgiveness so that we can be restored to God the Father, and at the end of all time, Jesus will return to bring all in the world back to the Father. This is what Revelations is describing. His judgement is expected. </p>
<p>Paul writes concerning it: </p>
<blockquote><p>For we must all appear before the judgement seat of Christ, so that each one may receive what is due for what he has done in the body, whether good or evil.<br />
<em>2 Corinthians 5:10 (ESV)</em></p></blockquote>
<p>If you are reading this from Facebook, my blog is at <strong><a href="http://www.gpeoples.net">http://www.gpeoples.net</a></strong>, and I would welcome any criticism or comment on the Jezebel reference in Revelations chapter 2. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.gpeopl.es/?feed=rss2&amp;p=88</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thoughts on the Gaza aid flotilla incidents</title>
		<link>http://www.gpeopl.es/?p=82</link>
		<comments>http://www.gpeopl.es/?p=82#comments</comments>
		<pubDate>Tue, 08 Jun 2010 14:59:00 +0000</pubDate>
		<dc:creator>Gareth Peoples</dc:creator>
				<category><![CDATA[Civil Liberties]]></category>
		<category><![CDATA[Conflict]]></category>
		<category><![CDATA[Israel - Palestine]]></category>
		<category><![CDATA[Morality]]></category>
		<category><![CDATA[Politics]]></category>
		<category><![CDATA[Society]]></category>
		<category><![CDATA[Ashdod]]></category>
		<category><![CDATA[Binyamin Netanyahu]]></category>
		<category><![CDATA[FOX News]]></category>
		<category><![CDATA[How The World Works]]></category>
		<category><![CDATA[IDF]]></category>
		<category><![CDATA[international law]]></category>
		<category><![CDATA[Israel]]></category>
		<category><![CDATA[Israel - Palestine conflict]]></category>
		<category><![CDATA[Israeli]]></category>
		<category><![CDATA[Lee Doren]]></category>
		<category><![CDATA[legality]]></category>
		<category><![CDATA[Mavi Marmara]]></category>
		<category><![CDATA[Netanyahu]]></category>
		<category><![CDATA[Operation Cast Lead]]></category>
		<category><![CDATA[Palestine]]></category>
		<category><![CDATA[Palestinians]]></category>
		<category><![CDATA[peaceful]]></category>
		<category><![CDATA[Rachel Corrie]]></category>
		<category><![CDATA[Turkey]]></category>
		<category><![CDATA[Turkish]]></category>

		<guid isPermaLink="false">http://gpeoples.net/?p=82</guid>
		<description><![CDATA[As a user who recently commented on my blog noted, it has been well over a month since I have posted on it. Naturally during that time numerous things have happened, that I thought could be weighed in on. One of these incidents is the Gaza flotilla incidents which occurred recently, in which 9 Turkish [...]]]></description>
			<content:encoded><![CDATA[<p>As a user who recently commented on my blog noted, it has been well over a month since I have posted on it. Naturally during that time numerous things have happened, that I thought could be weighed in on.</p>
<p>One of these incidents is the Gaza flotilla incidents which occurred recently, in which 9 Turkish nationals regrettably lost their lives. As the news began to circulate based on <em>Twitter</em>, and <em>Facebook</em>, I noted that most of the posts seemed to condemn Israel very strongly. Indeed, I would agree to a certain degree that Israel is responsible for the unfortunate loss of life on board, as they had not planned for such an incident adequately. However, what I found was increasingly neglected was that there were certain activities on the <em>Mavi Marmara</em> the largest vessel which could have hindered a peaceful resolution to the Israeli boarding.</p>
<p>The issue became one of two polarised positions. One in which Israel was entirely correct in what it did, and another in which the passengers of the Mavi Marmara were entirely justified in exercising resistance against the Israeli commandos that happened to come down. One of the main arguers on the side of the Israeli&#8217;s was FOX News, which asserted that Israel&#8217;s right to defend itself and search the ships was unquestionable, and that there was more the mere aid on-board. Indeed, many Youtubers took up the cause also, with Lee Doren whose channel is called How The World Works arguing for this position <em>(Commentary on the Gaza flotilla starts 2 minutes into the video)</em>:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="288" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/ks2Jk0oViFU&amp;hl=en_GB&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="288" src="http://www.youtube.com/v/ks2Jk0oViFU&amp;hl=en_GB&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>Similar claims that those onboard were terrorist sympathisers were soon circulated, and claims that Gaza doesn&#8217;t even require aid were similarly circulated. This claim fails to take into consideration that goods in Gaza cost beyond what many people can afford, and that a lot of people still rely on UN food aid. Similarly concrete is one of the goods banned by the IDF to enter Gaza an area that still needs to reconstruct following <em>Operation Cast Lead </em>in late 2008.</p>
<p>Similarly, the details were not as forthcoming on the pro-Palestinian side as they should have been. People presented this as an unprovoked attack by the Israeli government on the flotilla, when this couldn&#8217;t have been further from the reality of the situation. Prior to the interception of 6 of the ships on the flotilla, the IDF had warned them, and even offered them to dock in Ashdod, witness their goods come across the border crossing with Gaza, and return on their own vessels. There is video coverage of this warning:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="385" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/P6jDIQr59Sk&amp;hl=en_GB&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="385" src="http://www.youtube.com/v/P6jDIQr59Sk&amp;hl=en_GB&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>So the events seem to be from what we know as follows:</p>
<p>In international waters <em>(an issue of contention in terms of legality of the IDF action)</em> about 30km from the Sea of Gaza exclusion zone the Israelis warned the ships that they are about to enter a blockaded area, and that there would be alternative docking arrangements in Ashdod (as in the video above).</p>
<p>Having said this those on the flotilla chose to ignore these orders, and IDF commandos were dropped onto all 6 of the ships while still being in international waters.</p>
<p>On arriving on 5 of the 6 ships they were met with peaceful resistance, and those who were on board at most received minor injuries. On the Mavi Marmara, the IDF troops were met with attack from passengers onboard who in some cases wielded iron bars, and knives. Binyamin Netanyahu also noted that guns were used on IDF troops, while claiming that <em>&#8220;this wasn&#8217;t a love boat, it was a hate boat&#8221;</em> (video below):</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="288" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/8aBjlMWRuoY&amp;hl=en_GB&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="288" src="http://www.youtube.com/v/8aBjlMWRuoY&amp;hl=en_GB&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>The IDF only dropped 8 commandos on the Mavi Marmara, where in similar operations <em>(according to BBC Newsnight &#8211; 1st of June)</em> in the US military up to 40 people would be dropped at once. The high resistance on board coupled with the small amount of commandos on board may have resulted in panic and in turn the deaths of those who were killed.</p>
<p>As far as I am concerned, there are two parties involved in this and had the ships heeded the IDF orders, no lives would have been lost. Indeed, if there wasn&#8217;t violent resistance on board there would have been no need for the IDF to react as they did, as we have seen if we compare this incident with that of the Rachel Corrie which arrived in Ashdod on Saturday after IDF interception. It was highly unreasonable that those on board would genuinely suspect while Israel has an at-war status with Hamas that they would not search the ships so as to adequately make sure that there weren&#8217;t materials to construct rockets.</p>
<p>On the other hand, I believe that the Israelis need to review what goods can and cannot enter Gaza through the border crossings. Indeed, it is not good enough to determine this on a case-by-case basis, but there should be clear standards as to what is permissible. Likewise, the interception was poorly thought out, particularly in respect to how many IDF troops were dropped down, and in respect to where this interception occurred <em>(despite its legality or illegality as that isn&#8217;t all that clear)</em>. The seizure of video equipment from the other side is also problematic in determining an outcome. Israel does have the right to inspect all goods entering Gaza, but how it does so is perhaps the most difficult question of all.</p>
<p>This, followed by <a href="http://bit.ly/9vk6Xh">an Iranian offer</a> to escort any aid flotilla coming into Gaza is something that should concern us. Israel has the right to ensure that its citizens will not be attacked by the Hamas government, but at the same time it needs to ensure that humanitarian aid passes in more freely. </p>
<p>As always in the Israel &#8211; Palestine conflict, the truth always falls in the middle. If anyone has any comment, I&#8217;d love to hear it, and for those reading from Facebook, this blog is at <strong><a href="http://www.gpeoples.net">http://www.gpeoples.net</a></strong>  <em>(to see the videos you need to click this link)</em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gpeopl.es/?feed=rss2&amp;p=82</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Letter on atheism in the Irish Independent</title>
		<link>http://www.gpeopl.es/?p=78</link>
		<comments>http://www.gpeopl.es/?p=78#comments</comments>
		<pubDate>Fri, 23 Apr 2010 11:33:00 +0000</pubDate>
		<dc:creator>Gareth Peoples</dc:creator>
				<category><![CDATA[Atheism]]></category>
		<category><![CDATA[Christianity]]></category>
		<category><![CDATA[Irreligion]]></category>
		<category><![CDATA[Politics]]></category>
		<category><![CDATA[Religion]]></category>
		<category><![CDATA[Society]]></category>
		<category><![CDATA[agenda]]></category>
		<category><![CDATA[agendas]]></category>
		<category><![CDATA[agnosticism]]></category>
		<category><![CDATA[atheism]]></category>
		<category><![CDATA[China]]></category>
		<category><![CDATA[communist regimes]]></category>
		<category><![CDATA[Crusades]]></category>
		<category><![CDATA[gospel]]></category>
		<category><![CDATA[ideologies]]></category>
		<category><![CDATA[ideology]]></category>
		<category><![CDATA[Irish Independent]]></category>
		<category><![CDATA[middle ground]]></category>
		<category><![CDATA[North Korea]]></category>
		<category><![CDATA[religious warfare]]></category>
		<category><![CDATA[secularism]]></category>
		<category><![CDATA[state atheism]]></category>

		<guid isPermaLink="false">http://gpeoples.net/?p=78</guid>
		<description><![CDATA[This is the letter I wrote that got published in the Irish Independent about what atheism is, and its relation to Communist regimes: In response both to Eric Conway (Letters, April 22) and Sean Conroy (Letters, April 21) may I suggest a middle ground? People, in general, have a capability of doing terrible things on [...]]]></description>
			<content:encoded><![CDATA[<p>This is the letter I wrote that got published in the <a href="http://www.independent.ie/opinion/letters/beliefs-twisted-to-suit-an-agenda-2149401.html"><em>Irish Independent</em></a> about what atheism is, and its relation to Communist regimes:</p>
<blockquote><p>In response both to Eric Conway <em>(Letters, April 22)</em> and Sean Conroy <em>(Letters, April 21)</em> may I suggest a middle ground?</p>
<p>People, in general, have a capability of doing terrible things on the basis of beliefs or lack thereof.</p>
<p>Our history has been, and continues to be, a testament to that.</p>
<p>I believe Mr Conroy is correct to suggest that atheism in and of itself is not an ideology, but rather a lack of belief.</p>
<p>I also believe that Mr Conway is correct to say that under communist regimes during the 20th century <em>(Stalin, Hoxha, Pol Pot to name a few)</em>, Christianity, Judaism and Islam, among other forms of religious thought, were suppressed and many severely persecuted using atheism as its justification.</p>
<p>Its legacy continues in the treatment of religion in North Korea and China. As a Christian, however, I cringe while reading accounts of the Crusades, to think that people could represent our gospel in such a manner.</p>
<p>People, in general, have a great ability to twist beliefs, or even lack of belief to suit their own agenda.</p>
<p>This is true both in the case of religious warfare, and in the state atheism that occurred under communist regimes. </p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.gpeopl.es/?feed=rss2&amp;p=78</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Thoughts on the first UK leaders debate</title>
		<link>http://www.gpeopl.es/?p=64</link>
		<comments>http://www.gpeopl.es/?p=64#comments</comments>
		<pubDate>Sun, 18 Apr 2010 08:14:10 +0000</pubDate>
		<dc:creator>Gareth Peoples</dc:creator>
				<category><![CDATA[Civil Liberties]]></category>
		<category><![CDATA[Politics]]></category>
		<category><![CDATA[Society]]></category>
		<category><![CDATA[Terrorism]]></category>
		<category><![CDATA[UK]]></category>
		<category><![CDATA[Afghanistan]]></category>
		<category><![CDATA[Britain]]></category>
		<category><![CDATA[bureaucracy]]></category>
		<category><![CDATA[crime]]></category>
		<category><![CDATA[curriculum]]></category>
		<category><![CDATA[David Cameron]]></category>
		<category><![CDATA[Education]]></category>
		<category><![CDATA[educational quangos]]></category>
		<category><![CDATA[Electoral Reform]]></category>
		<category><![CDATA[European Union]]></category>
		<category><![CDATA[failure]]></category>
		<category><![CDATA[freedom]]></category>
		<category><![CDATA[Gordon Brown]]></category>
		<category><![CDATA[House of Lords]]></category>
		<category><![CDATA[ID cards]]></category>
		<category><![CDATA[immigration]]></category>
		<category><![CDATA[ITV]]></category>
		<category><![CDATA[Labour]]></category>
		<category><![CDATA[Liberal Democrats]]></category>
		<category><![CDATA[Nato]]></category>
		<category><![CDATA[Nick Clegg]]></category>
		<category><![CDATA[police officers]]></category>
		<category><![CDATA[PR]]></category>
		<category><![CDATA[Proportional Representation]]></category>
		<category><![CDATA[sentencing]]></category>
		<category><![CDATA[students]]></category>
		<category><![CDATA[teachers]]></category>
		<category><![CDATA[Territorial Army]]></category>
		<category><![CDATA[Tories]]></category>
		<category><![CDATA[Trident]]></category>
		<category><![CDATA[UK election]]></category>
		<category><![CDATA[Westminster 2010]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://gpeoples.net/?p=64</guid>
		<description><![CDATA[Note &#8211; If you have not watched the debate, there are spoilers in this blog post, if you do not wish to have this spoiled for you, please watch the debate first and then read my blog post on it. I had just got around to watching the first televised debate between Nick Clegg (Liberal [...]]]></description>
			<content:encoded><![CDATA[<p><center><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="288" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/rk5HvJmy_yg&amp;hl=en_US&amp;fs=1&amp;rel=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="288" src="http://www.youtube.com/v/rk5HvJmy_yg&amp;hl=en_US&amp;fs=1&amp;rel=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></center></p>
<p><strong>Note &#8211; If you have not watched the debate, there are spoilers in this blog post, if you do not wish to have this spoiled for you, please watch the debate first and then read my blog post on it. </strong></p>
<p>I had just got around to watching the first televised debate between Nick Clegg <em>(Liberal Democrats)</em>, David Cameron <em>(Conservatives) </em>and Gordon Brown <em>(Labour)</em> this morning, and I found it interesting how each candidate came around to discuss different subjects. I will only briefly summarise them here. If you haven&#8217;t seen the debate already, if you are reading this from <strong><a href="http://www.gpeoples.net">www.gpeoples.net </a></strong>you will notice that I have provided the Youtube video above.</p>
<p>Before starting off into what I thought of the different candidates as they dealt with different points, perhaps it would be best to deal with the question of whether or not such a debate should have been held as it was a UK first. I personally think it is a victory of democracy and of freedom to be able to have each side presented in a clear fashion where the electorate can see exactly what is happening, and see what exactly each candidate and party are putting forward for the election. It is also particularly positive that the debate was put up on youtube as well as on television, so that bloggers and youtubers could easily have their comment on each leader. It also means that each party can have a fair exposure coming up to an election allowing for voters to have a more informed choice. Overall, a great idea, and perhaps taking a good leaf from the US process of presidential elections.</p>
<p>Following the debate numerous polls have made clear that Nick Clegg <em>(Liberal Democrats)</em> was the clear winner of the debate. I personally have to agree. The main reason for this, not only was that he had clear backed up examples of how things operate, and work in other countries, and how these could be viable solutions for Britain to work with in the future, but that most of the contention actually remained between Cameron and Brown allowing for Clegg to often get his opinion across relatively unchallenged. So easily in fact that Brown was trying to claim that Clegg an he had agreements on electoral reform to boost his own opinion. Let me deal with a few issues that came up:</p>
<p><strong>Immigration </strong>- This was perhaps the strongest point for Gordon Brown over David Cameron. David Cameron claimed that immigration was a huge problem for the UK, and that it was essentially out of control. Brown refuted this claim, showing clearly from the figures that immigration has actually declined in Britain over the past three years, and that Labour&#8217;s proposals on security were actually working. He also said that Labour had brought in a points system to ensure that all immigrants from outside the European Union now had to fulfil a points system before they would be allowed to live and work in Britain, and this was the reason why the decline had taken place. Cameron insisted that there had to be a blanket limit on immigration from outside of Europe, and that new members of the European Union should agree to a throttled immigration arrangement to entering Britain. To this both Brown and Clegg disagreed. Nick Clegg argued that a blanket ban on immigration is unreasonable, and perhaps that Britain should learn from how Canada, and Australia have dealt with immigration, taking in workers as there is need as opposed to taking in people for the sake of taking them in. There should be assurances that people from outside of the EU have a job, and have a sponsor before they can enter the country to work. This is favourable as it allows a reasonable and fair immigration platform, but it doesn&#8217;t allow for excess migration.</p>
<p><strong>Crime </strong>- A question in the audience raised the point that burglary was a huge problem in a number of towns in the UK, and asked how each respective party would deal with it. David Cameron said harsher sentencing was needed, and that this was a key failure of the Labour government. Nick Clegg then went to argue that we have to do more than just sentencing, and that it isn&#8217;t a solution. The young offenders of today, in his opinion become the hardened criminals tomorrow, and it is our responsibility as a society. Brown attacks the Conservatives on their funding of police officers, and that if Labour continue in government they will maintain the funding to police officers, and that this won&#8217;t be at risk. Nick Clegg attacks Labour on wasting money on ID cards to limit crime. He argues that if the Liberal Democrats are in power that this money will be used to bring 3,000 more police officers to the streets of Britain, this being a much more effective solution to the crime situation on Britain&#8217;s streets.</p>
<p><strong>Defence</strong> &#8211; David Cameron criticised Gordon Brown on his failure to provide correct equipment and helicopters to the people on the ground in Afghanistan, and this actually had cost lives on the ground. He also mentioned that Labour had attempted to cut the cost of funding training the Territorial Army, this Cameron deemed to be unacceptable to not fund the most crucial defence forces during a conflict in Afghanistan. To this Gordon Brown responded that this was a reaction to increased tension on the ground and that all the NATO allied nations who were on the ground had to readjust their strategies on the ground. To this Cameron accuses Brown of being disingenuous with the facts. It was in the defence section where Nick Clegg perhaps came off the weakest, particularly to a British public which supports Britain being and remaining a key player in world diplomacy. Clegg argued that the £100bn nuclear weapons deterrent was too much for Britain to feasibly maintain in an economic crisis. Both Cameron and Brown argued that this was unrealistic due to real threats posed to Britain in the event that terrorists acquire nuclear weapons, and from rogue states such as Iran, and North Korea. To leave Britain unequipped would be a terrible mistake.</p>
<p><strong>Education</strong> &#8211; Education was another point which Liberal Democrat leader Nick Clegg drove home, that the Government curriculum involved too much bureaucracy and that this needed to change. Drawing on the example of Sweden, he noted that the British curriculum didn&#8217;t allow for a lot of freedom for teachers to actually do their job more independently and to encourage their students to work to the best of their ability. He noted that the UK curriculum was 600 pages long, and that via e-mail teachers were given 4,000 pages of extra instruction. Such bureaucracy makes it difficult for teachers to actually do their jobs he argued. The Swedish curriculum is 16 pages long.  Class sizes under the Labour Government according to Clegg were simply far too big and that realistically these could be brought down to 20 for primary school, and 16 for secondary school. Much of the other discussion involved Gordon Brown criticising Cameron for the Conservative cuts in education that they were considering. Likewise, the Conservatives argued that Labour in Government have spent £300mn on educational quangos that would be better used elsewhere.</p>
<p><strong>Electoral Reform</strong> &#8211; The question of electoral reform was brought up eventually. Cameron accused Labour of trying to pass electoral reform legislation too soon before a General Election to improve Labour&#8217;s chances, and that the number of MP&#8217;s should be cut by 10% to save taxpayers money. Gordon Brown argues that this isn&#8217;t necessary if the amount of peers in the House of Lords was halved, and if it was made a democratic chamber. Brown also argued that the UK should change to a Proportional Representation List system. In this section he tried to suggest that Nick Clegg agreed with him, to which he responded that he did, but that it was coming far too late. He questioned why Labour hadn&#8217;t considered to do this in the last 13 years that they were in power.</p>
<p>To me it seemed as if Brown and Cameron were more interested on arguing between each other that Nick Clegg got a real opportunity to show that the Liberal Democrats offered something different. Indeed, he also clearly proved that he had done his homework, and had a real plan to show that this was financially possible, and that it was really possible. This debate, perhaps made it easier for the Liberal Democrats, effectively a third wheel party in a First Past the Post electoral system to get their position across. In a polar political system, such as that which is generated by a First Past the Post system, it was simply deemed more crucial for much of the criticism to be shared between the Conservatives and Labour, which in a sense allowed for Clegg to gain an advantage, but in other respects was simply disappointing to watch. The win was well deserved by the Liberal Democrats, as their case was simply better presented, and stronger. The idea was communicated, that the Conservatives, and Labour will be arguing forever, but there is a real alternative that shouldn&#8217;t be ignored by the British public.</p>
<p>I&#8217;m looking forward to watching the Northern Ireland debate, and the successive UK leaders debates prior to the May 6th election.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gpeopl.es/?feed=rss2&amp;p=64</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My debate speech on morality</title>
		<link>http://www.gpeopl.es/?p=60</link>
		<comments>http://www.gpeopl.es/?p=60#comments</comments>
		<pubDate>Sat, 17 Apr 2010 22:13:19 +0000</pubDate>
		<dc:creator>Gareth Peoples</dc:creator>
				<category><![CDATA[Atheism]]></category>
		<category><![CDATA[Christianity]]></category>
		<category><![CDATA[Ireland]]></category>
		<category><![CDATA[Irreligion]]></category>
		<category><![CDATA[Morality]]></category>
		<category><![CDATA[Philosophy]]></category>
		<category><![CDATA[Religion]]></category>
		<category><![CDATA[Secular humanism]]></category>

		<guid isPermaLink="false">http://gpeoples.net/?p=60</guid>
		<description><![CDATA[This is the debate speech that I put forward at the debate on the motion &#8220;This house believes that one cannot be truly moral without God&#8221; on behalf of Maynooth Christian Union along with my co-partner.  The video was uploaded on the Atheist Ireland youtube channel, but unfortunately it doesn&#8217;t contain the full speech so [...]]]></description>
			<content:encoded><![CDATA[<p>This is the debate speech that I put forward at the debate on the motion <em>&#8220;This house believes that one cannot be truly moral without God&#8221;</em> on behalf of <a href="http://www.maynoothcu.org">Maynooth Christian Union</a> along with my co-partner.  The video was uploaded on the <a href="http://www.atheist.ie">Atheist Ireland</a> youtube channel, but unfortunately it doesn&#8217;t contain the full speech so I thought I might as well embed the video and provide the full speech:</p>
<p style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="288" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/eXmgX779jTk&amp;hl=en_US&amp;fs=1&amp;rel=0" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="288" src="http://www.youtube.com/v/eXmgX779jTk&amp;hl=en_US&amp;fs=1&amp;rel=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>Good evening all, I&#8217;m Gareth Peoples, and I&#8217;m the current Christian Union president on campus. I&#8217;d like to thank you all for being with us this evening, especially Dr. John Murray and Michael Nugent, and I would like to thank the Literary and Debating Society for being so open to the Christian Union proposal to debate this subject. Before I begin, I&#8217;d like to remind everyone this is the first event of our Christianity Week. Tomorrow <em>(March 31st)</em> at 7pm in the Student Common Room behind the Arts Block, Dr. Bryan Follis minister of All Saints Church Belfast will be speaking on &#8220;What is truth and where can I find it?&#8221; and on Thursday at 7pm, in Hall F in the Arts Block, James Crookes chaplain at Queens University Belfast will be speaking on &#8220;Life in the Emergency Room &#8211; Finding Hope in the Midst of Suffering&#8221;.</p>
<p><strong>What is morality? </strong>- Morality is a framework based on empathy by which we understand, behave and operate in relation to ourselves and to one another so that we might better fulfil our purpose as human beings.</p>
<p><strong>What is true morality?</strong> &#8211; True morality involves a framework as I&#8217;ve just described that reflects the reality and fullness of relationships in this world.</p>
<p>When the question of whether or not one can be truly moral without God is posed, many assume that one is saying that people who do not believe in God cannot be moral. However I recognize that it would be highly inaccurate to say this considering many non-believers put the lives of many Christians to shame.</p>
<p><strong>What am I going to argue tonight then?</strong> &#8211; I will be arguing that God and God alone can provide the true empathy and true understanding that we use in every day moral dilemmas. The case I&#8217;ll be making is that God underpins all moral action and how we do morality, and that no act can be truly considered moral in His absence. Therefore no person can be considered truly moral in His absence.</p>
<p>This view of morality is referred to by Paul in Romans chapter 2 when he writes:</p>
<blockquote><p>For when Gentiles who do not have the law, by nature do what the law requires, they are a law to themselves even though they do not have the law. They show that the word of the law is written on their hearts, while their conscience also bears witness and their conflicting thoughts accuse or even excuse them on the day when according to my Gospel, God judges the secrets of men by Christ Jesus.</p>
<p><em>Romans 2:14-16 (ESV)</em></p></blockquote>
<p>I.E &#8211; God created all irrespective of beliefs with a conscience, by which we can better understand His moral standard, and if used correctly can facilitate moral behaviour. But how is this view justifiable?</p>
<p><strong>Why can&#8217;t morality be relative? </strong>- C.S Lewis in his <em>Mere Christianity</em> develops and understanding of morality that demonstrates that although people may claim that morality is constructed or relative, people from the smallest of all disputes to the biggest behave as if there is a Moral Law between them and others. Lewis notes that when we quarrel we rebuke one another for wronging us saying &#8220;You should know better&#8221;.</p>
<p><strong>We say these things but why do we say them? </strong>-  Lewis goes on to argue that one says one should know better because there is a common Law or standard between them. Otherwise what sense would it make that one would expect better of them? If this standard could not exist, how could we hold another to account? If we are basing it on our own subjective standard, how can we expect others to share it, and how can we expect others to understand when they do wrong by us? If we genuinely believed that moral standards were equally acceptable why would we do this?</p>
<p>This becomes even more apparent in international issues. In conflicts were recognize that certain acts are unacceptable. We condemn mass murder in Darfur in the same way we condemned Soviet Russia, Rwanda, Cambodia and other nightmare scenes of the 20th century. Here in Ireland, we condemn the clerical child abuse that took place. We condemn these things because they aren&#8217;t to be tolerated. They violate our common standard as human beings, and the Moral Law we use to hold people to account. Deep down we know these things are universally wrong because of the moral law that runs through our conscience. We can either ignore the Moral Law and its Law Giver or we can affirm them.</p>
<p>However in all reality we certainly do not regard morality as relative, and as such this is inconsistent with true morality. If morals aren&#8217;t external to us they are our mere construction and they are at our whim. Either morality is invented, or it is a standard independent from your or I. The US Declaration of Independence has on its second line:</p>
<blockquote><p>We hold these truths to be self-evident, that all men are created equal, that they are endowed <strong>by their Creator</strong> with certain <strong>unalienable rights</strong>, that among  these are life, liberty and the pursuit of happiness.</p>
<p><em>US Declaration of Independence</em></p></blockquote>
<p>In addition we have the <strong><em>Universal</em></strong> Declaration of Human Rights. Both of these demonstrate that the reason these rights are unalienable is firstly because they are not subject to human opinion; if they were they would hardly be unalienable or undeniable. The second reason that rights and morals aren&#8217;t ours to give or define in the first place. The US Declaration of Independence ultimately rests on the conclusion that we are under a loving God who cares for our welfare.</p>
<p><strong>If morals are universal, and if a moral law exists, why do people still do bad things?</strong> &#8211; Let me first make clear that in my case and in Lewis&#8217; case the Moral Law isn&#8217;t deterministic like the Laws of Physics. Indeed all humans by their very nature fail to act coherently by the Moral Law, yet expect it of others. This is the reason why we rebuke one another in the first place. This puts us into a strange paradox. We in a sense can&#8217;t live with it <em>(the Moral Law)</em> due to the weight of the Moral Law in guilt, and we can&#8217;t live without it due to its necessity in moral judgement. We seek to justify ourselves, yet we also fall guilty of the Moral Law.</p>
<p>This closely follows the Biblical narrative. We were all created in God&#8217;s image<em> (our true empathy)</em> and called to reflect His will in this world. We fell short of His standard by disobedience and sin which separates us from God. We cannot ever hope to be justified by our standard because we rejected His.</p>
<p><strong>What is the solution?</strong> &#8211; The solution is that someone who is blameless takes this burden away, and allows us to grow gradually as moral beings re-finding our connection with God. That person is Jesus Christ, who took our sin away allowing us to be justified on His behalf by free grace rather than our own so that we might gain a relationship with the Father, and live more closely each day by His path, allowing us to reflect His will <em>(our true purpose)</em> and to expect this of others.</p>
<p><strong>In conclusion</strong>, there is a universal Moral Law and by extension a Moral Law giver. This is clear in our personal disputes. Human rights operate so that they depend on a loving God who cares for our welfare. Finally our inability to follow the Moral Law yet expecting it of others closely matches the Biblical standard of salvation. If this is indeed the case and it seems to be any moral consideration which rejects God isn&#8217;t coherent with reality.</p>
<p>Thank you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.gpeopl.es/?feed=rss2&amp;p=60</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
