<?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>Conor's Blog &#187; php</title>
	<atom:link href="http://blog.macaoidh.name/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.macaoidh.name</link>
	<description>PHP, Music, Linux</description>
	<lastBuildDate>Mon, 05 Jul 2010 13:25:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>PHP &#8211; Saving Database Queries</title>
		<link>http://blog.macaoidh.name/2009/05/18/php-saving-database-queries/</link>
		<comments>http://blog.macaoidh.name/2009/05/18/php-saving-database-queries/#comments</comments>
		<pubDate>Mon, 18 May 2009 21:42:38 +0000</pubDate>
		<dc:creator>Conor</dc:creator>
				<category><![CDATA[Languages]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[databade]]></category>
		<category><![CDATA[large project]]></category>
		<category><![CDATA[oop]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[save database queries]]></category>

		<guid isPermaLink="false">http://blog.macaoidh.name/?p=215</guid>
		<description><![CDATA[This is something I wrote today while building botb SNS &#8211; a project that I will have to start blogging about soon! It should be used on large scale projects that have multiple database queries. It will be very useful if you have so many queries that you can&#8217;t keep track of them and are [...]]]></description>
			<content:encoded><![CDATA[<p>This is something I wrote today while building botb SNS &#8211; a project that I will have to start blogging about soon! It should be used on large scale projects that have multiple database queries. It will be very useful if you have so many queries that you can&#8217;t keep track of them and are afraid of re-querying incidentally. Enough said &#8211; down to the code:</p>
<p><code>&lt;?php<br />
class user{<br />
var $id;<br />
var $name='';<br />
var $username='';<br />
var $email='';</code></p>
<p>function __construct($id){<br />
$this-&gt;id=$id;<br />
}<br />
function about($t){<br />
if($this-&gt;$t!=&#8221;) return $this-&gt;$t;<br />
$q=dbRow(&#8216;select &#8216;.$t.&#8217; from users where id=&#8221;&#8216;.$this-&gt;id.&#8217;&#8221;&#8216;);<br />
$this-&gt;$t=$q[$t];<br />
return $this-&gt;$t;<br />
}<br />
}<br />
?&gt;</p>
<p>You will obviously have to adjust this to suit your database setup. It also requires the following function:</p>
<p><code>function dbRow($q){<br />
$s=mysql_query($q);<br />
$r=mysql_fetch_assoc($s);<br />
return $r;<br />
}</code></p>
<p>As you can probably see this example simply echos database information. The main benefit of the class is it will never make the same query twice. Once you ask for the username it is stored within the class so if you ask for it again in the same page it doesn&#8217;t have to query the database again. You could look at it as a type of internal page caching. Also it is incredibly easy to use. All you need to do is:</p>
<p><code>$u=new user($id);<br />
echo 'Query Database: '.$u-&gt;about('name');<br />
echo '&lt;br/&gt; From Memory: '.$u-&gt;about('name');<br />
</code><br />
Easy as that!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.macaoidh.name/2009/05/18/php-saving-database-queries/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Furasta Reconstruction</title>
		<link>http://blog.macaoidh.name/2009/05/04/furasta-reconstruction/</link>
		<comments>http://blog.macaoidh.name/2009/05/04/furasta-reconstruction/#comments</comments>
		<pubDate>Mon, 04 May 2009 20:31:21 +0000</pubDate>
		<dc:creator>Conor</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Web Projects]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[content management system]]></category>
		<category><![CDATA[furasta]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[webme]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.macaoidh.name/?p=211</guid>
		<description><![CDATA[After a long pause in development I have begun writing the first stable version of Furasta &#8211; 0.2. I haven&#8217;t really done anything with the project since I set up the website a few months ago. But since then I have been building up experience by examining other open source projects, such as Webme, WordPress [...]]]></description>
			<content:encoded><![CDATA[<p>After a long pause in development I have begun writing the first stable version of Furasta &#8211; 0.2. I haven&#8217;t really done anything with the project since I set up the <a href="http://furasta.org">website</a> a few months ago. But since then I have been building up experience by examining other open source projects, such as <a href="http://webme.eu">Webme</a>, <a href="http://wordpress.org">WordPress</a> and <a href="http://joomla.org">Joomla</a>. I learnt a lot from those projects and they have contributed a lot of ideas for Furasta!</p>
<p>I have abandoned all of the old code and opted to write the whole thing again from scratch. Considering how long it took me to write v0.1.5, about a month of flat out coding every night, I expect v0.2 to be completed in the same sort of timescale. One thing is for sure &#8211; there will be no micro-optimisation this time! After all the effort I put into that last time the damn program was still slow. This time I will invest my executable time in more important tasks, ones that only directly affect what&#8217;s going on as you load the page, and perform tasks such as server side caching through AJAX so the user doesn&#8217;t notice it.</p>
<p>The project is also going to be available from svn from now on. Since I am writing it from scratch there are only a few files in the svn at the moment and there&#8217;s also no installation script. But that will come in time!</p>
<p>http://code.google.com/p/furasta-cms/source/checkout</p>
<p>I am taking a completely different approach to writing the CMS this time. In fact I would go as far as calling it an engine rather than a CMS. Basically what I plan to do is build a solid framework that on it&#8217;s own does nothing, but has the ability to do everything. There will be no pages except the essential homepage. Everything, I mean everything that will give this program the characteristics of a CMS will be achieved by the plugin architecture. So for example to edit and display pages, I will create a plugin. Obviously the CMS will have to be shipped with a few default plugins, which it will be possible to disable through a plugin manager plugin! I might be going a bit overboard with this idea but in theory it seems like a good one!</p>
<p>So enough talking, time to start writing!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.macaoidh.name/2009/05/04/furasta-reconstruction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Kember Identity</title>
		<link>http://blog.macaoidh.name/2009/05/02/the-kember-identity/</link>
		<comments>http://blog.macaoidh.name/2009/05/02/the-kember-identity/#comments</comments>
		<pubDate>Sat, 02 May 2009 22:17:11 +0000</pubDate>
		<dc:creator>Conor</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Languages]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[32]]></category>
		<category><![CDATA[characters]]></category>
		<category><![CDATA[equal hash]]></category>
		<category><![CDATA[hash]]></category>
		<category><![CDATA[itself]]></category>
		<category><![CDATA[kid]]></category>
		<category><![CDATA[md5]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[return]]></category>
		<category><![CDATA[the kember identity]]></category>

		<guid isPermaLink="false">http://blog.macaoidh.name/?p=205</guid>
		<description><![CDATA[This morning on twitter I came across something called The Kember Identity. Elliott Kember seems to have thought of something that simply hasn&#8217;t occured to the rest of the world. That thing has been aptly named &#8220;The Kember Identity&#8221;. It&#8217;s homepage is located here. Anyway the Kember Identity is an md5 hash. Each md5 hash [...]]]></description>
			<content:encoded><![CDATA[<p>This morning on twitter I came across something called The Kember Identity.<a href="http://www.elliottkember.com"> Elliott Kember </a>seems to have thought of something that simply hasn&#8217;t occured to the rest of the world. That thing has been aptly named &#8220;The Kember Identity&#8221;. It&#8217;s homepage is located <a href="http://www.elliottkember.com/kember_identity.html">here</a>.</p>
<p>Anyway the Kember Identity is an md5 hash. Each md5 hash contains 32 characters so the KID is the theoretical hash that when it is encrypted it returns itself. At the moment this is a theory as it has not been proven. So Elliott has started a competition to see if anyone can figure out if the KID actually exists and if so what it is.</p>
<p>I have chosen to enter this competition with a PHP script that I wrote just a few minutes ago. It&#8217;s fairly simple and I have added a html table in there to clean it up a bit. Instead of computing endlessly this script displays all failed equations as it goes. When it finds the KID it will stop and show it in bright green. I ran the script for a few minutes and got to 200,000 hashes with no luck. Also FireFox froze a few times while running it. The best thing to do is just leave it to do it&#8217;s job and don&#8217;t do anything else while it is working!</p>
<p>You can view it here: <a href="http://files.macaoidh.name/php/the-kember-identity/md5.php">http://files.macaoidh.name/php/the-kember-identity/md5.php</a></p>
<p><code><br />
&lt;?php</p>
<p>function encript($str){ return md5($str); }</p>
<p>function generateSum(){ return md5(mt_rand()); }</p>
<p>function loKIDe(){<br />
&nbsp;&nbsp;$s=generateSum();<br />
&nbsp;&nbsp;$md5=encript($s);</p>
<p>&nbsp;&nbsp;echo '&lt;tr&gt;&lt;td&gt;'.$s.'&lt;/td&gt;&lt;td&gt;'.$md5.'&lt;/td&gt;';</p>
<p>&nbsp;&nbsp;if($s!=$md5) return false;<br />
&nbsp;&nbsp;else{<br />
&nbsp;&nbsp;&nbsp;&nbsp;echo '&lt;tr style="color:green"&gt;&lt;td&gt;'.$s.'&lt;/td&gt;&lt;td&gt;'.$md5.'&lt;/td&gt;&lt;/tr&gt;';<br />
&nbsp;&nbsp;&nbsp;&nbsp;return true;<br />
&nbsp;&nbsp;}<br />
}</p>
<p>echo '<br />
&lt;h1&gt;Finding the Kember Identity...&lt;/h1&gt;<br />
&lt;table&gt;<br />
&nbsp;&nbsp;&lt;tr&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;th&gt;32 Digit Number&lt;/th&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;th&gt;Md5 Of Num&lt;/th&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;th&gt;Count&lt;/th&gt;<br />
&nbsp;&nbsp;&lt;/tr&gt;<br />
';</p>
<p>$num='';</p>
<p>while(loKIDe()==false){<br />
&nbsp;&nbsp;$num++;<br />
&nbsp;&nbsp;echo '&lt;td&gt;'.$num.'&lt;/td&gt;&lt;/tr&gt;';<br />
}</p>
<p>echo '&lt;/table&gt;&lt;br/&gt;&lt;br/&gt;  If you are seeing this then the line above is equal';</p>
<p>?&gt;</code></p>
<p>This script should, in theory, find the KID. But it is really a matter of time. I am going to keep it running all night tonight and see if I have any luck. <a href="http://verens.com">Kae</a> is thinking of writing a JavaScript version that will spread the load between multiple computers thus reducing calculation time. So the race is on! I hope that I am the first to find this magical, mysterious number!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.macaoidh.name/2009/05/02/the-kember-identity/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Collecting Data From Forms &#8211; PHP / MySQL</title>
		<link>http://blog.macaoidh.name/2009/03/20/collecting-data-from-forms-php-mysql/</link>
		<comments>http://blog.macaoidh.name/2009/03/20/collecting-data-from-forms-php-mysql/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 20:45:16 +0000</pubDate>
		<dc:creator>Conor</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[Languages]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[collecting]]></category>
		<category><![CDATA[collecting information from a form]]></category>
		<category><![CDATA[creating forms]]></category>
		<category><![CDATA[dynamic website]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[storing]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[web design forum]]></category>
		<category><![CDATA[writing forms]]></category>

		<guid isPermaLink="false">http://macaoidh.name/?p=160</guid>
		<description><![CDATA[Today i had quite a few requests for the same thing on the Web Design Forum. So instead of writing a different answer to all of the threads I decided to summarise it all in a blog post on Collecting Data From Forms Using PHP and MySQL. Hopefully I will just be able to link [...]]]></description>
			<content:encoded><![CDATA[<p>Today i had quite a few requests for the same thing on the <a title="Web Design Forum" href="http://www.webdesignforum.com">Web Design Forum</a>. So instead of writing a different answer to all of the threads I decided to summarise it all in a blog post on Collecting Data From Forms Using PHP and MySQL. Hopefully I will just be able to link back to this post when I get this question again!</p>
<p><strong>What is PHP?</strong> PHP is a programing language with an easy to use syntax. It resembles C and Java. PHP is excecuted server side which means that if you want to do something with the language then you will have to send a request to the server. This is usually done by pointing to a PHP file to proccess information. It can also be done using <a title="Wikipedia Definition of AJAX" href="http://en.wikipedia.org/wiki/Ajax_(programming)">AJAX</a> without requiring a reload &#8211; but that&#8217;s a whole other ball game!</p>
<p><strong>What is </strong><strong>MySQL? </strong>MySQL is one of many Structured Query Languages. It is basically a language used to store and manipulate data through the use of databases. I have often compared it to Microsoft&#8217;s Excel &#8211; many people tell me that I&#8217;m wrong with that comparison but I think that it is valid!</p>
<p><strong>PHP + MySQL = Dynamic Webpage.</strong> In my opinion MySQL and PHP have one common characteristic; they both have a user friendly syntax which is easy to learn and yet they both have the ability to unleash massive amounts of power once you delve into them! The combination of the two languages produces a constantly changing, dynamic website. For example you could have page content being called from the database and then to update that content all you need to do is update the database &#8211; rather than trawling through code.</p>
<p>If you are finding this all hard to follow don&#8217;t worry, I&#8217;m sure it will be a bit more self-explanatory when we look at some code. I am not going to go into the detail of downloading and installing PHP and MySQL. The following assumes that you have done so yourself &#8211; or that you are working on an online server with these packages pre-installed.</p>
<p><strong>Setting Up MySQL</strong></p>
<p>First you will need to create a new database and a new table for all of the information to be stored in. Enter this command to create the database:</p>
<p><code>create database form;<br />
</code></p>
<p>Quickly select that database &#8211; tell MySQL that you want to use it.</p>
<p><code>use form;</code></p>
<p>Then you will need to create a table which will store our information.</p>
<p><code>create table users (<br />
user_id int not null auto_increment primary key,<br />
username text,<br />
email text,<br />
password char(40) default null<br />
);</code></p>
<p>Now that you have the MySQL side of things running you will need to connect to MySQL with PHP. The file below should be named &#8216;connect.php&#8217;.  /*These things are comments */</p>
<p><code>&lt;?php</code></p>
<p><code>/* The name of the database that we have just created */<br />
</code></p>
<p><code>$dbname = 'form';<br />
</code></p>
<p><code>/* The hostname which will usually be localhost but change if appropriate */<br />
</code></p>
<p><code>$hostname = 'localhost';<br />
</code></p>
<p><code>/* Database Username and Password - you must change these to your own values*/<br />
</code></p>
<p><code>$dbuser = 'root';<br />
</code></p>
<p><code>$dbpass = '';<br />
</code></p>
<p><code>$connect = mysql_connect($hostname,$dbuser,$dbpass) or die('Could not connect to MySQL please insure that the connection information is correct');<br />
</code></p>
<p><code>mysql_select_db($dbname,$connect) or die('Could not select the database');<br />
</code></p>
<p><code>?&gt;</code></p>
<p><strong>Writing The Form</strong></p>
<p>Now that we have written our connection information with PHP we must include that file in our main PHP file and write a form. This is a normal HTML form which collects information from users wishing to register to whatever.</p>
<p><code>&lt;form method="post"&gt;<br />
Username: &lt;input type="text" name="username"/&gt;&lt;br/&gt;<br />
Email: &lt;input type="text" name="email"/&gt;&lt;br/&gt;<br />
Password: &lt;input type="password" name="password"/&gt;&lt;br/&gt;<br />
Confirm: &lt;input type="password" name="confirmpass"/&gt;&lt;br/&gt;<br />
&lt;input type="submit" name="save" value="Register"/&gt;<br />
&lt;/form&gt;<br />
</code><br />
That is alright as it is but it doesn&#8217;t really do anything. If we want to collect that information then we must work our PHP magic! This file contains the same HTML form but it is written in PHP and is named &#8216;form.php&#8217;.</p>
<p><code>&lt;?php</code></p>
<p><code> /* Include the connection file that we created earlier */<br />
</code></p>
<p><code> require_once 'connect.php';</code></p>
<p><code>/* If the user presses the submit save the information to the database and display a thank you message */<br />
</code></p>
<p><code>if(isset($_POST['save'])){<br />
</code></p>
<p><code>/* Get the values submitted from the form */<br />
</code></p>
<p><code>$username = addslashes($_POST['username']);<br />
</code></p>
<p><code>$email = addslashes($_POST['email']);<br />
</code></p>
<p><code>$pass = $_POST['password'];<br />
</code></p>
<p><code>$password =  sha1(strip_tags($pass));<br />
</code></p>
<p><code>/* Check to see if the two password values are correct */<br />
</code></p>
<p><code>if($pass!=$_POST['confirmpass'] || $pass=='') die('Passwords do not match. &lt;a href="form.php"&gt;Return to form.&lt;/a&gt;');<br />
</code></p>
<p><code>/* Update the database with the new information  or die with the mysql error */<br />
</code></p>
<p><code>mysql_query("insert into users values ('','$username','$email','$password')") or die(mysql_error());<br />
</code></p>
<p><code>/* Display thank you message and exit */<br />
</code></p>
<p><code>echo '<br />
</code></p>
<p><code>&lt;h1&gt;',$username,' Thank You For Registering!&lt;/h1&gt;<br />
</code></p>
<p><code>';<br />
</code></p>
<p><code>exit;<br />
</code></p>
<p><code>}<br />
</code></p>
<p><code>/* Else display the form so the user can register */<br />
</code></p>
<p><code>echo '<br />
</code></p>
<p><code>&lt;form method="post"&gt;<br />
</code></p>
<p><code> Username: &lt;input type="text" name="username"/&gt;&lt;br/&gt;<br />
</code></p>
<p><code> Email: &lt;input type="text" name="email"/&gt;&lt;br/&gt;<br />
</code></p>
<p><code> Password: &lt;input type="password" name="password"/&gt;&lt;br/&gt;<br />
</code></p>
<p><code> Confirm: &lt;input type="password" name="confirmpass"/&gt;&lt;br/&gt;<br />
</code></p>
<p><code> &lt;input type="submit" name="save" value="Register"/&gt;<br />
</code></p>
<p><code>&lt;/form&gt;<br />
</code></p>
<p><code>';<br />
</code></p>
<p><code>/* Close MySQL, exit and close PHP */<br />
</code></p>
<p><code>mysql_close();<br />
</code></p>
<p><code>exit;<br />
</code></p>
<p><code>?&gt;<br />
</code></p>
<p>Woah! Thank god that&#8217;s over. If all goes well you will not have any errors running that script. Anyway that&#8217;s all the advice I can give you for one day. Good luck!</p>
<p>Please feel free to use or adapt this code as you will. I understand that this isn&#8217;t a prime example but it sets the foundation of what you can customise in order to create a brilliant user freindly form! You could also try adding more verification to the form or even using some unobstructive JavaScript to make it look nice. These are all things that I might write a tutorial about in the future but that&#8217;s it for now!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.macaoidh.name/2009/03/20/collecting-data-from-forms-php-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tagged!</title>
		<link>http://blog.macaoidh.name/2009/01/16/tagged/</link>
		<comments>http://blog.macaoidh.name/2009/01/16/tagged/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 00:23:17 +0000</pubDate>
		<dc:creator>Conor</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Languages]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mandriva]]></category>
		<category><![CDATA[Me]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[My Blog]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[School]]></category>
		<category><![CDATA[The Dominican Affair]]></category>
		<category><![CDATA[Web Projects]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[bodhran]]></category>
		<category><![CDATA[conor mac aoidh]]></category>
		<category><![CDATA[drums]]></category>
		<category><![CDATA[furasta cms]]></category>
		<category><![CDATA[mac aoidh]]></category>
		<category><![CDATA[ogra sinn fein]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[sword fighting]]></category>
		<category><![CDATA[tagged]]></category>
		<category><![CDATA[the pot smoking pirates]]></category>
		<category><![CDATA[warhammer]]></category>
		<category><![CDATA[webworks]]></category>

		<guid isPermaLink="false">http://macaoidh.name/?p=90</guid>
		<description><![CDATA[I got tagged by Kae today. I had actually never herd of the thing before, I just don&#8217;t do enough blog reading I guess! Anyway it&#8217;s tough to list seven things that people don&#8217;t already know. I don&#8217;t have much to talk about so don&#8217;t be surprised if you know half of these things already!:-) [...]]]></description>
			<content:encoded><![CDATA[<p>I got tagged by <a href="http://verens.com">Kae</a> today. I had actually never herd of the thing before, I just don&#8217;t do enough blog reading I guess! Anyway it&#8217;s tough to list seven things that people don&#8217;t already know. I don&#8217;t have much to talk about so don&#8217;t be surprised if you know half of these things already!:-)</p>
<p>1. I was sixteen on 19th September &gt; Virgo (What a sign &#8211; a fucking  mermaid!). I am still in fifth year at school which i absolutely detest. In fact the only thing that is keeping me in there is the promise of College. From my perspective that is heaven! Parties all the time &#8211; and when there are no parties I will be studying for tests by Programming! What more could you want? I should probably mention that I have been in an all Irish school for my whole life and that I talk Irish at home. Native language gotta be done. Oh and just for the record my name, Conor Mac Aoidh is pronounced &#8220;Mac í&#8221; or &#8220;Mac e&#8221;.</p>
<p>2. I play the Drums in two bands &gt; The Pot Smokin&#8217; Pirates and The Dominican Affair. Guess which one I enjoy more? I started the drums when I was 13. Before that I played the bodhran (What a load of shite). I went to drum lessons for about a year then I tought myself. When I finished teaching myself I moved on to teaching other people. At the moment I am practicing for the local Panto. I have done it three times before, it is good crac on the night. Gotta hate the music though! The Pot Smokin&#8217; Pirates where the first band I joined, or should I say formed! They were a school band but soon enough I discovered that school and rock music don&#8217;t go so well together! We used to practice in the lead singers garage. One day his older brother asked me to join his band &#8216;The Kamikaze Potato Men&#8217;. Thats when I really got to grips with the drums &#8211; I was playing with a band three years older than me! Eventually &#8216;The Kamikaze Potato Men&#8217; got rid of the lead singer, found a new one and formed <a href="http://thedominicanaffair.com">The Dominican Affair</a>!</p>
<p>3. I am Oifigeach na hAirgeadais for Ógra Shinn Féin Muineacháin. I don&#8217;t want to delve to deeply into this because once you start me I can&#8217;t stop! Basically I support and am a member of Sinn Féin. I am in favor of a democratic-socialist, anti-neo-libiralist, egalitarian 32 county united Ireland. Make Partition History! 26 + 6 = 1.</p>
<p>4. Oh what else&#8230; I am half Scotish, half Irish and was born in England. I used to collect Warhammer! God I have to include that because it was not a minor thing in my life. For those of you who are familiar with the way it works, I had a 3,000 point Empire Army! That is pretty massive for a ten year old in fairness. The strange thing is that I used them for display. I only ever played a couple of times and found the games to complicated. My main concentration was actually painting the things. I used to paint them like a machine. I also had millions of nobles and all that I couldn&#8217;t use because I didn&#8217;t have enough points to incorporate them! Come to think of it my first army was High Elves. By the end of my Empire collection I had gotten pretty good at painting the models. Then I started with Bretonians. I had just enough of them to play &#8211; two core units and a general. I recently got rid of almost everything in my collection. I kept only a few things. My two best painted pieces &#8211; &#8216;The Green Night&#8217; and a Celtos model which I made a cool base for. Also I have an old White Dwarf from the 80&#8242;s signed by the Eavy Metal Team. I might Ebay it! I think that I have enough to make a core unit and general army at the moment!</p>
<p>5. PHP. This tagged thing is directed towards the language users so I had better talk about it. I started learning HTML at the end of 2007 as part of a school transition year course. I didn&#8217;t pay much attention to it at first. Then by chance I got work expierence with the local web design company, <a href="http://webworks.ie">webworks</a> last summer. That is were i learned CSS and began on PHP. Not to soon after that I got hooked on the language and I love it! I am currently writing Furasta CMS, which will be in beta of it&#8217;s first &#8220;stable&#8221; version by the end of next week, hopefully! I am a linux user and have been since November! I started out with Mandriva One 2009 and then recently moved on to Fedora 10. I think that Linux bears a big role in the future of computers in general.</p>
<p>6. I can fight. With a sword I mean! I trained for Medieval Historical Re-enacting for too many years. I did all the shows where you dress up and people stare at you and ask you if they can look at your sword. It&#8217;s not all it&#8217;s cracked up to be really. It&#8217;s like any other physical sport. You do the same thing over and over and over untill you can do it in your sleep! Then finally once you have done it for a few years you dump the wooden swords and go on to metal! I have to say the proper equipment is pretty cool. It&#8217;s quite tough to fight with armour actually because it weighs a ton. I learned how to fight with a sword. shield, staff, pike, bow and arrow and claymore. I haven&#8217;t really done anything with it in the last year but there is talk of it starting again so you never know!</p>
<p>7. This is tough&#8230; Em&#8230; I am an atheist. I believe that believing in God is a completely personal thing and that it should have nothing what-so-ever to do with the state and especially the schools! I don&#8217;t have a problem with anyone else that believes in god I just hate the fact that so much trouble has been caused in this world because of religion. I was not baptised and brought up to make my own decision &#8211; and I have! <img src='http://blog.macaoidh.name/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  It annoys me that my school gets massive &#8220;grants&#8221; from Catholic Associations and therefore it is a Catholic School. Not only that but the fact that I have to take time out of classes to go to mass four times a year. Basically I think that religion in schools should be eradicated, but the religion class should be kept. I think it is a good idea to discuss religions and to make people aware that there are much more religions out there than Catholicism and that they should make their own decision rather than blindly following the crowd.</p>
<p>Now onto the tagging. I am bound by the rules to tag seven other people. The problem is that I only know one PHP developer and that is the person who tagged me! So for now I will leave this part. <strong>But I will update it once I meet other enthusiasts, </strong>so I&#8217;m not breaking the rules!</p>
<p><strong></strong><strong>Rules</strong></p>
<ul>
<li>Link your original tagger(s), and list these rules on your blog.</li>
<li>Share seven facts about yourself in the post &#8211; some random, some weird.</li>
<li>Tag seven people at the end of your post by leaving their names and the links to their blogs.</li>
<li>Let them know they’ve been tagged by leaving a comment on their blogs and/or Twitter</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.macaoidh.name/2009/01/16/tagged/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Conor&#8217;s Management System</title>
		<link>http://blog.macaoidh.name/2008/12/03/conors-management-system/</link>
		<comments>http://blog.macaoidh.name/2008/12/03/conors-management-system/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 14:52:23 +0000</pubDate>
		<dc:creator>Conor</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[Web Projects]]></category>
		<category><![CDATA[conor's management system]]></category>
		<category><![CDATA[fck editor]]></category>
		<category><![CDATA[first cms]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://macaoidh.name/?p=56</guid>
		<description><![CDATA[I started work on my first CMS last weekend. I came up with the idea of editing pages from the front end. Instead of having a big back end to the CMS i thought that it would be better to edit page content while looking at the page. This is useful when you want to [...]]]></description>
			<content:encoded><![CDATA[<p>I started work on my first CMS last weekend. I came up with the idea of editing pages from the front end. Instead of having a big back end to the CMS i thought that it would be better to edit page content while looking at the page. This is useful when you want to see what you are editing. There is something similar available called the FCK Editor. Mine is different to it in a number of ways.</p>
<p>The easiest way for me to explain the functions is to show it to you. I have supplied a URL below and a username/password combination.<br />
URL: http://macaoidh.name/work/cms<br />
username: guest<br />
password: guestpass</p>
<p>Take a look at the pages. Notice the difference between them when you are logged in and logged out. It is very simple at the moment, but I have created a model that I can expand on. Here is a list of current functions:</p>
<ul>
<li>When you are logged in you can see the editing panel at the bottom of the page, which displays the log out link.</li>
<li>When you are logged in you can edit the text on the page. This is currently only a temporary fix because I haven&#8217;t set it to update the database yet!</li>
<li>The page content is currently being called from the database.</li>
</ul>
<p>By the time my CMS reaches version 1 I intend for it to be a fully functional Content Management System. These are the functions that I intend to implement in the future:</p>
<ul>
<li>Make the changes while logged in update to the database. I am finding this quite difficult. It&#8217;s easy to create a form and update but when you include all of the JavaScript that I have in order to make the changes editable and viewable in the same page, it becomes more difficult.</li>
<li>Create more functions for the logged in person, such as add users and more complicated editing options.</li>
<li>Add the possibility of creating new pages from the front end. This should be easy enough &#8211; I just haven&#8217;t had enough time to add it!</li>
</ul>
<p>I&#8217;ll keep posting weekly updates on the status of the CMS. Hopefully I can get it up to a state where it is sellable in a couple of months. If it becomes successful i might open source it! At the moment there is no point because most people would be able to create something similar by just looking at it!</p>
<p>Suggestions and some criticism welcome! <img src='http://blog.macaoidh.name/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.macaoidh.name/2008/12/03/conors-management-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
