<?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>Paul Brunt &#187; Programing</title>
	<atom:link href="http://www.paulbrunt.co.uk/tag/programing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.paulbrunt.co.uk</link>
	<description>faster, better; faster, better!</description>
	<lastBuildDate>Sun, 24 Jan 2010 13:57:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SSH Key Exchange (SSH no password)</title>
		<link>http://www.paulbrunt.co.uk/2008/10/30/ssh-key-exchange-ssh-login-with-no-password/</link>
		<comments>http://www.paulbrunt.co.uk/2008/10/30/ssh-key-exchange-ssh-login-with-no-password/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 15:12:07 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[Out and About]]></category>
		<category><![CDATA[Programing]]></category>
		<category><![CDATA[Shell Script]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ssh linux shell]]></category>

		<guid isPermaLink="false">http://www.paulbrunt.co.uk/?p=104</guid>
		<description><![CDATA[I&#8217;m not sure if it was just me being a bit dense or the fact that tutorials on the subject where really confusing, but I&#8217;d always struggled to get this working. So, I thought that now I&#8217;ve cracked it I&#8217;ll do my own little tutorial for others out there that may still be a little [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not sure if it was just me being a bit dense or the fact that tutorials on the subject where really confusing, but I&#8217;d always struggled to get this working. So, I thought that now I&#8217;ve cracked it I&#8217;ll do my own little tutorial for others out there that may still be a little bit stuck.<span id="more-104"></span></p>
<ol>
<li>The first thing you have to do is generate the keys, this is done on the machine that will be connecting from:<br />
ssh-keygen -t rsa<br />
This will generate the private and public keys need, they will be put in &#8220;~/.ssh/&#8221; by default called &#8220;id_rsa.pub&#8221;(the public key) and &#8220;id_rsa&#8221; the private key.</li>
<li>Now you need to copy this public key, &#8220;id_rsa.pub&#8221;, to the machine you will be connecting to, choose what ever method your comfortable with, ssh, ftp, smb &#8211; what ever <img src='http://www.paulbrunt.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </li>
<li>Now all you need to do is add this key to the file &#8220;~/.ssh/authorized_keys2&#8243;, the easist way is:<br />
cat id_rsa.pub &gt;&gt; ~/.ssh/authorized_keys2<br />
Then your done, you should no longer be prompted for a password when connecting.</li>
</ol>
<p>Note: if this is the first time you are connecting it will still prompt you to add the machine to known hosts.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.paulbrunt.co.uk/2008/10/30/ssh-key-exchange-ssh-login-with-no-password/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Essential AJAX Functions</title>
		<link>http://www.paulbrunt.co.uk/2008/09/17/essential-ajax-functions/</link>
		<comments>http://www.paulbrunt.co.uk/2008/09/17/essential-ajax-functions/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 14:14:52 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[Programing]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.paulbrunt.co.uk/?p=97</guid>
		<description><![CDATA[Okay here are a couple of really usefull javascript functions when it come to ajax. Though having recently decoverd jquery I may use a little less now:
This one is cross browser and will retrive and xmldoc from a given url:

function loadXMLDoc(url) {
req = false;
// branch for native XMLHttpRequest object
if(window.XMLHttpRequest) {
try {
req = new XMLHttpRequest();
} catch(e) [...]]]></description>
			<content:encoded><![CDATA[<p>Okay here are a couple of really usefull javascript functions when it come to ajax. Though having recently decoverd jquery I may use a little less now:<span id="more-97"></span></p>
<p>This one is cross browser and will retrive and xmldoc from a given url:</p>
<p><code><br />
function loadXMLDoc(url) {<br />
req = false;<br />
// branch for native XMLHttpRequest object<br />
if(window.XMLHttpRequest) {<br />
try {<br />
req = new XMLHttpRequest();<br />
} catch(e) {<br />
req = false;<br />
}<br />
// branch for IE/Windows ActiveX version<br />
} else if(window.ActiveXObject) {<br />
try {<br />
req = new ActiveXObject("Msxml2.XMLHTTP");<br />
} catch(e) {<br />
try {<br />
req = new ActiveXObject("Microsoft.XMLHTTP");<br />
} catch(e) {<br />
req = false;<br />
}<br />
}<br />
}<br />
if(req) {<br />
req.open("GET", url, false);<br />
req.send("");<br />
}<br />
return req.responseXML<br />
}<br />
</code></p>
<p>This will send a doucment to a url and return a textstring responce:</p>
<p><code><br />
function sendXMLDoc(url,doc) {<br />
req = false;<br />
// branch for native XMLHttpRequest object<br />
if(window.XMLHttpRequest) {<br />
try {<br />
req = new XMLHttpRequest();<br />
} catch(e) {<br />
req = false;<br />
}<br />
// branch for IE/Windows ActiveX version<br />
} else if(window.ActiveXObject) {<br />
try {<br />
req = new ActiveXObject("Msxml2.XMLHTTP");<br />
} catch(e) {<br />
try {<br />
req = new ActiveXObject("Microsoft.XMLHTTP");<br />
} catch(e) {<br />
req = false;<br />
}<br />
}<br />
}<br />
if(req) {<br />
req.open("POST", url, false);<br />
req.send(doc);<br />
}<br />
return req.responseText<br />
}<br />
</code></p>
<p>Note: I can&#8217;t remember where these came from I don&#8217;t remember writing them.<br />
So, if you think you did and you would like me to credit or remove please let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.paulbrunt.co.uk/2008/09/17/essential-ajax-functions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Hints and Tips</title>
		<link>http://www.paulbrunt.co.uk/2008/09/13/mysql-hints-and-tips/</link>
		<comments>http://www.paulbrunt.co.uk/2008/09/13/mysql-hints-and-tips/#comments</comments>
		<pubDate>Sat, 13 Sep 2008 12:15:05 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[Programing]]></category>
		<category><![CDATA[databases]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.paulbrunt.co.uk/?p=74</guid>
		<description><![CDATA[MySQL linking a table to itself.
To link a table to itself you simply have to use alias names on the tables, ie:
select * from table as a left join table as b on a.field=b.otherfield;
et viola you have a table linking to itself.
Retrieve the query to recreate a table
This query is very useful when you just [...]]]></description>
			<content:encoded><![CDATA[<p><strong>MySQL linking a table to itself.</strong><br />
To link a table to itself you simply have to use alias names on the tables, ie:<br />
<em>select * from table as a left join table as b on a.field=b.otherfield;</em><br />
et viola you have a table linking to itself.<span id="more-74"></span></p>
<p><strong>Retrieve the query to recreate a table</strong><br />
This query is very useful when you just want to quickly copy a table structure from one place to another.<br />
<em>SHOW CREATE TABLE {tablename}</em></p>
<p><strong>Get the list of tables in a database</strong><br />
I personally don&#8217;t use this one very often but when your stuck with the command line to access your database it proves very useful:<br />
<em>SHOW TABLES</em></p>
<p><strong>Get back wasted space</strong><br />
If like me your host only offers a limited amount of space for you DB this is very useful.  When you delete rows from MySQL it doesn&#8217;t automatically reclaim the space and instead just marks the row as deleted. Do clean out your tables and reclaim that space simply use this query:<br />
<em>OPTIMIZE TABLE</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.paulbrunt.co.uk/2008/09/13/mysql-hints-and-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GNU Octave ROCKS!!!</title>
		<link>http://www.paulbrunt.co.uk/2008/09/12/gnu-octave-rocks/</link>
		<comments>http://www.paulbrunt.co.uk/2008/09/12/gnu-octave-rocks/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 17:26:34 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[Programing]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[octave]]></category>

		<guid isPermaLink="false">http://www.paulbrunt.co.uk/?p=29</guid>
		<description><![CDATA[I&#8217;ve just discovered Octave, and I have to say it ROCKS!!! How many times have you decided not to write a program to do something just because it&#8217;ll just take to long to make it worthwhile? Not anymore! I&#8217;m still learning but I&#8217;ve gone though the manual, and I had the basics down in less [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just discovered <a href="http://www.gnu.org/software/octave/">Octave</a>, and I have to say it ROCKS!!! How many times have you decided not to write a program to do something just because it&#8217;ll just take to long to make it worthwhile? Not anymore! I&#8217;m still learning but I&#8217;ve gone though the manual, and I had the basics down in less then an hour (yes, it really is that quick to pick up if your not new to programing).<span id="more-29"></span></p>
<p>You can do in a few lines of code what it take pages to do in C or any of the scripting languages I&#8217;ve used in the past.  Don&#8217;t get me wrong though it&#8217;s no replacement for C but if you want to manipulate data quickly and easily for one time use it&#8217;s the way to go.  One more tool in the belt to up that productivity <img src='http://www.paulbrunt.co.uk/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.paulbrunt.co.uk/2008/09/12/gnu-octave-rocks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stanford and MIT &#8211; lectures on YouTube</title>
		<link>http://www.paulbrunt.co.uk/2008/09/06/stanford-and-mit-have-lecture-courses-on-youtube/</link>
		<comments>http://www.paulbrunt.co.uk/2008/09/06/stanford-and-mit-have-lecture-courses-on-youtube/#comments</comments>
		<pubDate>Sat, 06 Sep 2008 10:28:48 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[Rants]]></category>
		<category><![CDATA[math]]></category>
		<category><![CDATA[Programing]]></category>
		<category><![CDATA[YouTube]]></category>

		<guid isPermaLink="false">http://www.paulbrunt.co.uk/?p=32</guid>
		<description><![CDATA[I have just discovered that both Stanford and MIT have lecture courses on youtube.  I&#8217;m still a little shocked, all that learning for free(pinches self). It&#8217;s a little difficult knowing where to start, so many great courses and only a limited amount of time. Danger here, I think, is I&#8217;ll try and start too [...]]]></description>
			<content:encoded><![CDATA[<p>I have just discovered that both Stanford and MIT have lecture courses on youtube.  I&#8217;m still a little shocked, all that learning for free(pinches self). It&#8217;s a little difficult knowing where to start, so many great courses and only a limited amount of time. Danger here, I think, is I&#8217;ll try and start too much and simply never finish anything.<span id="more-32"></span></p>
<p>From the brief look at the courses lists though, they do seem to be quite skewed in favour of the technical (with is understandable I guess given the medium). Lets hope that the balance gets restored as soon as possible&#8230;&#8230;.then again thinking back I seem to remember spending far more time in lectures (Physics) then my arty brethren anyway.</p>
<p>Lets hope this trend continues with other universities and cources.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.paulbrunt.co.uk/2008/09/06/stanford-and-mit-have-lecture-courses-on-youtube/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
