<?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"
	>

<channel>
	<title>gregs</title>
	<atom:link href="http://gregs.tcias.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://gregs.tcias.co.uk</link>
	<description>helping me remember what I figure out</description>
	<pubDate>Tue, 09 Mar 2010 06:52:56 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Upgrading to Lenny</title>
		<link>http://gregs.tcias.co.uk/2010/03/09/upgrading-to-lenny/</link>
		<comments>http://gregs.tcias.co.uk/2010/03/09/upgrading-to-lenny/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 06:52:56 +0000</pubDate>
		<dc:creator>gregs</dc:creator>
		
		<category><![CDATA[*nix]]></category>

		<category><![CDATA[MySQL]]></category>

		<category><![CDATA[apache]]></category>

		<category><![CDATA[debian]]></category>

		<category><![CDATA[linode]]></category>

		<guid isPermaLink="false">http://gregs.tcias.co.uk/?p=481</guid>
		<description><![CDATA[It's been  while since I attended to my VPS, I decided to spend some time last night upgrading my distribution from Etch to Lenny. This is normally a moment where your heart sinks as quite a few things do tend to go belly up, but I am happy to report that I only came [...]]]></description>
			<content:encoded><![CDATA[<p>It's been  while since I attended to my VPS, I decided to spend some time last night upgrading my distribution from Etch to Lenny. This is normally a moment where your heart sinks as quite a few things do tend to go belly up, but I am happy to report that I only came across some minor issues and these were resolved in minutes as opposed to hours.</p>
<ol>
<li>MySQL : failed to start, complaining about:
<div class="igBar"><span id="lcode-4"><a href="#" onclick="javascript:showPlainTxt('code-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-4">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">/etc/init.<span style="">d</span>/mysql: ERROR: Using expire_logs_days without log_bin crashes</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">the server. <span style="">See</span> README.<span style="">Debian</span>.<span style="">gz</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Commenting out the expire_logs_days in the my.cnf file allowed me to restart MySQL.</li>
<li>After the upgrade of Apache, my virtual hosts weren't working. A quick search via Google <a href="http://www.pc-freak.net/blog/solution-to-a-problem-with-virtualhosts-on-debian-lenny-default-virtualhost-opening-by-default-overwritting-the-rest-of-the-configured-virtualhosts/">pointed me to this post</a> - a quick edit of all of my host files and it was all working again.</li>
<li>the php-mysql connector somehow hadn't been upgraded/installed so a quick
<div class="igBar"><span id="lcode-5"><a href="#" onclick="javascript:showPlainTxt('code-5'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-5">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">apt-get install php5-mysql </div>
</li>
</ol>
</div>
</div>
</div>
<p>fixed that problem.</li>
<li>OpenBD : the only thing that remains broken was my tomcat5.5 Open BD install. Tomcat was working fine but Open BD refused to start up complaining about :
<div class="igBar"><span id="lcode-6"><a href="#" onclick="javascript:showPlainTxt('code-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-6">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">javax.<span style="">servlet</span>.<span style="">ServletException</span>: Open BlueDragon Engine Failed to initialise tags: java.<span style="">awt</span>.<span style="">Color</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>Since I am not really using it, it's not that important, but at some stage I'd like to get it working again. If you have any suggestions, please leave a comment.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://gregs.tcias.co.uk/2010/03/09/upgrading-to-lenny/feed/</wfw:commentRss>
		</item>
		<item>
		<title>SVN : authentication with a windows domain</title>
		<link>http://gregs.tcias.co.uk/2010/03/08/svn-authentication-with-a-windows-domain/</link>
		<comments>http://gregs.tcias.co.uk/2010/03/08/svn-authentication-with-a-windows-domain/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 03:58:13 +0000</pubDate>
		<dc:creator>gregs</dc:creator>
		
		<category><![CDATA[apache]]></category>

		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://gregs.tcias.co.uk/?p=480</guid>
		<description><![CDATA[Finally got round to implementing this for work. As a starting point I followed the instructions found here.
The config looked fine, but after restarting the service, I still wasn't getting prompted for a log in. After re-jigging the order to what you see below and restarting the apache service (we are using 2.0.59), it all [...]]]></description>
			<content:encoded><![CDATA[<p>Finally got round to implementing this for work. As a starting point I followed <a title="Apache Based Server" href="http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-serversetup-apache.html#tsvn-serversetup-apache-5">the instructions found here</a>.</p>
<p>The config looked fine, but after restarting the service, I still wasn't getting prompted for a log in. After re-jigging the order to what you see below and restarting the apache service (we are using 2.0.59), it all worked. Maybe this will help someone else along the way.</p>
<div class="igBar"><span id="lcode-8"><a href="#" onclick="javascript:showPlainTxt('code-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-8">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;Location /svn&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">DAV svn</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"># any <span style="color:#CC0000;">"/svn/foo"</span> URL will map to a repository /usr/local/svn/foo</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">SVNParentPath <span style="color:#006600; font-weight:bold;">&#123;</span>drive letter<span style="color:#006600; font-weight:bold;">&#125;</span>:/path/to/SVN/epositories/</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">AuthName <span style="color:#CC0000;">"SVN"</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">AuthType SSPI</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">SSPIAuth On</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">SSPIAuthoritative On</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">SSPIOfferBasic On</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">SSPIOmitDomain on</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">SSPIDomain &amp;lt;domain controller&amp;gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">SSPIBasicPreferred On</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Require valid-user</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/Location&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://gregs.tcias.co.uk/2010/03/08/svn-authentication-with-a-windows-domain/feed/</wfw:commentRss>
		</item>
		<item>
		<title>gnumake: *** No rule to make target `all&#8217;</title>
		<link>http://gregs.tcias.co.uk/2009/04/06/gnumake-no-rule-to-make-target-all/</link>
		<comments>http://gregs.tcias.co.uk/2009/04/06/gnumake-no-rule-to-make-target-all/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 01:29:58 +0000</pubDate>
		<dc:creator>gregs</dc:creator>
		
		<category><![CDATA[*nix]]></category>

		<category><![CDATA[mac]]></category>

		<category><![CDATA[os x]]></category>

		<guid isPermaLink="false">http://gregs.tcias.co.uk/?p=479</guid>
		<description><![CDATA[I was using MacPorts to install ICU and Jam. After running the installer for the first time I got the following error message:
PLAIN TEXT
CODE:




sudo port install icu jam


Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_icu/work/icu/source" &#38;&#38; gnumake all " returned error 127


Command output: sh: gnumake: command not found 






Oops forgot to install XCode (you [...]]]></description>
			<content:encoded><![CDATA[<p>I was using <a href="http://www.macports.org/install.php">MacPorts</a> to install ICU and Jam. After running the installer for the first time I got the following error message:</p>
<div class="igBar"><span id="lcode-12"><a href="#" onclick="javascript:showPlainTxt('code-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-12">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo port install icu jam</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Error: Target org.<span style="">macports</span>.<span style="">build</span> returned: shell command <span style="color:#CC0000;">" cd "</span>/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.<span style="">macports</span>.<span style="">org_release_ports_devel_icu</span>/work/icu/source<span style="color:#CC0000;">" &amp;&amp; gnumake all "</span> returned error <span style="color:#800000;color:#800000;">127</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Command output: sh: gnumake: command not found </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Oops forgot to install XCode (you always forget to install something on a new machine :)). Quickly ran the XCode installer, however when I ran the command again I got a new error:</p>
<div class="igBar"><span id="lcode-13"><a href="#" onclick="javascript:showPlainTxt('code-13'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-13">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo port install icu jam</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">---&gt;&nbsp; <span style="">Building</span> icu</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Error: Target org.<span style="">macports</span>.<span style="">build</span> returned: shell command <span style="color:#CC0000;">" cd "</span>/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.<span style="">macports</span>.<span style="">org_release_ports_devel_icu</span>/work/icu/source<span style="color:#CC0000;">" &amp;&amp; gnumake all "</span> returned error <span style="color:#800000;color:#800000;">2</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Command output: gnumake: *** No rule to make target `all<span style="color:#CC0000;">'.&nbsp; Stop. </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><a href="https://trac.macports.org/ticket/17384">Turns out you need to do a cleanup</a> before attempting to run the command again:</p>
<div class="igBar"><span id="lcode-14"><a href="#" onclick="javascript:showPlainTxt('code-14'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-14">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo port clean --work icu</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">---&gt;&nbsp; <span style="">Cleaning</span> icu</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo port clean --work jam</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">---&gt;&nbsp; <span style="">Cleaning</span> jam</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sudo port install icu jam</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">---&gt;&nbsp; <span style="">Fetching</span> icu</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">---&gt;&nbsp; <span style="">Verifying</span> checksum<span style="color:#006600; font-weight:bold;">&#40;</span>s<span style="color:#006600; font-weight:bold;">&#41;</span> for icu</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">---&gt;&nbsp; <span style="">Extracting</span> icu</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">---&gt;&nbsp; <span style="">Configuring</span> icu</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">---&gt;&nbsp; <span style="">Building</span> icu</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">---&gt;&nbsp; <span style="">Staging</span> icu into destroot</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">---&gt;&nbsp; <span style="">Installing</span> icu @<span style="color:#800000;color:#800000;">4</span>.<span style="color:#800000;color:#800000;">0</span>_0</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">---&gt;&nbsp; <span style="">Activating</span> icu @<span style="color:#800000;color:#800000;">4</span>.<span style="color:#800000;color:#800000;">0</span>_0</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">---&gt;&nbsp; <span style="">Cleaning</span> icu</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">---&gt;&nbsp; <span style="">Fetching</span> jam</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">---&gt;&nbsp; <span style="">Attempting</span> to fetch jam-<span style="color:#800000;color:#800000;">2</span>.<span style="color:#800000;color:#800000;">5</span>.<span style="">tar</span> from http:<span style="color:#FF9933; font-style:italic;">//distfiles.macports.org/jam/2.5</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">---&gt;&nbsp; <span style="">Verifying</span> checksum<span style="color:#006600; font-weight:bold;">&#40;</span>s<span style="color:#006600; font-weight:bold;">&#41;</span> for jam</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">---&gt;&nbsp; <span style="">Extracting</span> jam</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">---&gt;&nbsp; <span style="">Applying</span> patches to jam</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">---&gt;&nbsp; <span style="">Configuring</span> jam</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">---&gt;&nbsp; <span style="">Building</span> jam</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">---&gt;&nbsp; <span style="">Staging</span> jam into destroot</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">---&gt;&nbsp; <span style="">Installing</span> jam @<span style="color:#800000;color:#800000;">2</span>.<span style="color:#800000;color:#800000;">5</span>_1</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">---&gt;&nbsp; <span style="">Activating</span> jam @<span style="color:#800000;color:#800000;">2</span>.<span style="color:#800000;color:#800000;">5</span>_1</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">---&gt;&nbsp; <span style="">Cleaning</span> jam </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Time to continue the <a href="http://www.mapnik.org/">Mapnik</a> install.</p>
]]></content:encoded>
			<wfw:commentRss>http://gregs.tcias.co.uk/2009/04/06/gnumake-no-rule-to-make-target-all/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Joshua Tree National Park</title>
		<link>http://gregs.tcias.co.uk/2009/03/07/joshua-national-park/</link>
		<comments>http://gregs.tcias.co.uk/2009/03/07/joshua-national-park/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 03:42:39 +0000</pubDate>
		<dc:creator>gregs</dc:creator>
		
		<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://gregs.tcias.co.uk/?p=476</guid>
		<description><![CDATA[//

[Show as slideshow]
	
	



	
	



	
	



	
	



	
	



	
	



	
	



	
	



	
	



	
	



	
	



	
	



	
	



	
	



	
	



	
	



	
	



	
	



	
	



	
	



123&#9658;

	googleMapsLoad();

]]></description>
			<content:encoded><![CDATA[<p><script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAjI5rpu8x3SD8x9ipsmQTjBSzj1kb_K59scNMOoJGEyn_HPcSgxQbvaOcwSB9HazyyuDWWR_We6-tEQ" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
    function googleMapsLoad() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById('map'));
        map.setMapType(G_SATELLITE_MAP);
        map.setCenter(new GLatLng(33.927124,-116.187115), 17);
      }
    }//]]&gt;</script></p>
<div id="map" style="width: 500px; height: 300px"></div>
<div class="ngg-galleryoverview" id="ngg-gallery-10"><div class="slideshowlink"><a class="slideshowlink" href="/feed/?show=slide">[Show as slideshow]</a></div><div id="ngg-image-985" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/IMG_2292.JPG" title="" class="thickbox" rel="joshua_national_park" ><img title="IMG_2292.JPG" alt="IMG_2292.JPG" src="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/thumbs/thumbs_IMG_2292.JPG" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-984" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/IMG_2291.JPG" title="" class="thickbox" rel="joshua_national_park" ><img title="IMG_2291.JPG" alt="IMG_2291.JPG" src="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/thumbs/thumbs_IMG_2291.JPG" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-983" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/IMG_2290.JPG" title="" class="thickbox" rel="joshua_national_park" ><img title="IMG_2290.JPG" alt="IMG_2290.JPG" src="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/thumbs/thumbs_IMG_2290.JPG" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-982" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/IMG_2289.JPG" title="" class="thickbox" rel="joshua_national_park" ><img title="IMG_2289.JPG" alt="IMG_2289.JPG" src="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/thumbs/thumbs_IMG_2289.JPG" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-981" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/IMG_2288.JPG" title="" class="thickbox" rel="joshua_national_park" ><img title="IMG_2288.JPG" alt="IMG_2288.JPG" src="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/thumbs/thumbs_IMG_2288.JPG" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-980" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/IMG_2287.JPG" title="" class="thickbox" rel="joshua_national_park" ><img title="IMG_2287.JPG" alt="IMG_2287.JPG" src="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/thumbs/thumbs_IMG_2287.JPG" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-978" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/IMG_2285.JPG" title="" class="thickbox" rel="joshua_national_park" ><img title="IMG_2285.JPG" alt="IMG_2285.JPG" src="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/thumbs/thumbs_IMG_2285.JPG" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-977" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/IMG_2284.JPG" title="" class="thickbox" rel="joshua_national_park" ><img title="IMG_2284.JPG" alt="IMG_2284.JPG" src="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/thumbs/thumbs_IMG_2284.JPG" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-976" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/IMG_2283.JPG" title="" class="thickbox" rel="joshua_national_park" ><img title="IMG_2283.JPG" alt="IMG_2283.JPG" src="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/thumbs/thumbs_IMG_2283.JPG" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-975" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/IMG_2282.JPG" title="" class="thickbox" rel="joshua_national_park" ><img title="IMG_2282.JPG" alt="IMG_2282.JPG" src="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/thumbs/thumbs_IMG_2282.JPG" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-974" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/IMG_2281.JPG" title="" class="thickbox" rel="joshua_national_park" ><img title="IMG_2281.JPG" alt="IMG_2281.JPG" src="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/thumbs/thumbs_IMG_2281.JPG" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-973" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/IMG_2280.JPG" title="" class="thickbox" rel="joshua_national_park" ><img title="IMG_2280.JPG" alt="IMG_2280.JPG" src="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/thumbs/thumbs_IMG_2280.JPG" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-972" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/IMG_2279.JPG" title="" class="thickbox" rel="joshua_national_park" ><img title="IMG_2279.JPG" alt="IMG_2279.JPG" src="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/thumbs/thumbs_IMG_2279.JPG" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-971" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/IMG_2278.JPG" title="" class="thickbox" rel="joshua_national_park" ><img title="IMG_2278.JPG" alt="IMG_2278.JPG" src="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/thumbs/thumbs_IMG_2278.JPG" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-970" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/IMG_2277.JPG" title="" class="thickbox" rel="joshua_national_park" ><img title="IMG_2277.JPG" alt="IMG_2277.JPG" src="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/thumbs/thumbs_IMG_2277.JPG" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-969" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/IMG_2276.JPG" title="" class="thickbox" rel="joshua_national_park" ><img title="IMG_2276.JPG" alt="IMG_2276.JPG" src="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/thumbs/thumbs_IMG_2276.JPG" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-968" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/IMG_2275.JPG" title="" class="thickbox" rel="joshua_national_park" ><img title="IMG_2275.JPG" alt="IMG_2275.JPG" src="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/thumbs/thumbs_IMG_2275.JPG" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-967" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/IMG_2274.JPG" title="" class="thickbox" rel="joshua_national_park" ><img title="IMG_2274.JPG" alt="IMG_2274.JPG" src="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/thumbs/thumbs_IMG_2274.JPG" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-966" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/IMG_2273.JPG" title="" class="thickbox" rel="joshua_national_park" ><img title="IMG_2273.JPG" alt="IMG_2273.JPG" src="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/thumbs/thumbs_IMG_2273.JPG" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-965" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/IMG_2272.JPG" title="" class="thickbox" rel="joshua_national_park" ><img title="IMG_2272.JPG" alt="IMG_2272.JPG" src="http://gregs.tcias.co.uk/wp-content/gallery/joshua_national_park/thumbs/thumbs_IMG_2272.JPG" style="width:100px; height:75px;" /></a>
</div>
</div>
</div>
<div class='ngg-navigation'><span>1</span><a class="page-numbers" href="/feed/?nggpage=2">2</a><a class="page-numbers" href="/feed/?nggpage=3">3</a><a class="next" href="/feed/?nggpage=2">&#9658;</a></div><br />
<script>
	googleMapsLoad();
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://gregs.tcias.co.uk/2009/03/07/joshua-national-park/feed/</wfw:commentRss>
		</item>
		<item>
		<title>cat to clipboard</title>
		<link>http://gregs.tcias.co.uk/2009/03/07/cat-to-clipboard/</link>
		<comments>http://gregs.tcias.co.uk/2009/03/07/cat-to-clipboard/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 19:54:27 +0000</pubDate>
		<dc:creator>gregs</dc:creator>
		
		<category><![CDATA[*nix]]></category>

		<guid isPermaLink="false">http://gregs.tcias.co.uk/?p=475</guid>
		<description><![CDATA[Neat!
PLAIN TEXT
CODE:




cat id_rsa.pub &#124; pbcopy 






]]></description>
			<content:encoded><![CDATA[<p>Neat!</p>
<div class="igBar"><span id="lcode-16"><a href="#" onclick="javascript:showPlainTxt('code-16'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-16">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">cat id_rsa.<span style="">pub</span> | pbcopy </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://gregs.tcias.co.uk/2009/03/07/cat-to-clipboard/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Up on the 74</title>
		<link>http://gregs.tcias.co.uk/2009/03/06/up-on-the-74/</link>
		<comments>http://gregs.tcias.co.uk/2009/03/06/up-on-the-74/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 02:10:20 +0000</pubDate>
		<dc:creator>gregs</dc:creator>
		
		<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://gregs.tcias.co.uk/?p=473</guid>
		<description><![CDATA[//

[Show as slideshow]
	
	



	
	



	
	



	
	



	
	



	
	



	
	



	
	



	
	



	
	



	
	



	
	



	
	



	
	



	
	



	
	



	
	






	googleMapsLoad();

]]></description>
			<content:encoded><![CDATA[<p><script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAjI5rpu8x3SD8x9ipsmQTjBSzj1kb_K59scNMOoJGEyn_HPcSgxQbvaOcwSB9HazyyuDWWR_We6-tEQ" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
    function googleMapsLoad() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById('map'));
        map.setMapType(G_SATELLITE_MAP);
        map.setCenter(new GLatLng(33.649243,-116.400661), 17);
      }
    }//]]&gt;</script></p>
<div id="map" style="width: 500px; height: 300px"></div>
<div class="ngg-galleryoverview" id="ngg-gallery-8"><div class="slideshowlink"><a class="slideshowlink" href="/feed/?show=slide">[Show as slideshow]</a></div><div id="ngg-image-872" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/IMG_2226.jpg" title="" class="thickbox" rel="up_on_the_74" ><img title="IMG_2226.jpg" alt="IMG_2226.jpg" src="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/thumbs/thumbs_IMG_2226.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-873" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/IMG_2227.jpg" title="" class="thickbox" rel="up_on_the_74" ><img title="IMG_2227.jpg" alt="IMG_2227.jpg" src="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/thumbs/thumbs_IMG_2227.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-874" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/IMG_2228.jpg" title="" class="thickbox" rel="up_on_the_74" ><img title="IMG_2228.jpg" alt="IMG_2228.jpg" src="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/thumbs/thumbs_IMG_2228.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-875" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/IMG_2229.jpg" title="" class="thickbox" rel="up_on_the_74" ><img title="IMG_2229.jpg" alt="IMG_2229.jpg" src="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/thumbs/thumbs_IMG_2229.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-876" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/IMG_2230.jpg" title="" class="thickbox" rel="up_on_the_74" ><img title="IMG_2230.jpg" alt="IMG_2230.jpg" src="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/thumbs/thumbs_IMG_2230.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-877" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/IMG_2231.jpg" title="" class="thickbox" rel="up_on_the_74" ><img title="IMG_2231.jpg" alt="IMG_2231.jpg" src="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/thumbs/thumbs_IMG_2231.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-878" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/IMG_2232.jpg" title="" class="thickbox" rel="up_on_the_74" ><img title="IMG_2232.jpg" alt="IMG_2232.jpg" src="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/thumbs/thumbs_IMG_2232.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-879" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/IMG_2233.jpg" title="" class="thickbox" rel="up_on_the_74" ><img title="IMG_2233.jpg" alt="IMG_2233.jpg" src="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/thumbs/thumbs_IMG_2233.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-881" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/IMG_2235.jpg" title="" class="thickbox" rel="up_on_the_74" ><img title="IMG_2235.jpg" alt="IMG_2235.jpg" src="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/thumbs/thumbs_IMG_2235.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-882" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/IMG_2236.jpg" title="" class="thickbox" rel="up_on_the_74" ><img title="IMG_2236.jpg" alt="IMG_2236.jpg" src="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/thumbs/thumbs_IMG_2236.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-883" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/IMG_2237.jpg" title="" class="thickbox" rel="up_on_the_74" ><img title="IMG_2237.jpg" alt="IMG_2237.jpg" src="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/thumbs/thumbs_IMG_2237.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-884" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/IMG_2238.jpg" title="" class="thickbox" rel="up_on_the_74" ><img title="IMG_2238.jpg" alt="IMG_2238.jpg" src="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/thumbs/thumbs_IMG_2238.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-885" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/IMG_2239.jpg" title="" class="thickbox" rel="up_on_the_74" ><img title="IMG_2239.jpg" alt="IMG_2239.jpg" src="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/thumbs/thumbs_IMG_2239.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-886" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/IMG_2240.jpg" title="" class="thickbox" rel="up_on_the_74" ><img title="IMG_2240.jpg" alt="IMG_2240.jpg" src="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/thumbs/thumbs_IMG_2240.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-887" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/IMG_2241.jpg" title="" class="thickbox" rel="up_on_the_74" ><img title="IMG_2241.jpg" alt="IMG_2241.jpg" src="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/thumbs/thumbs_IMG_2241.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-888" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/IMG_2242.jpg" title="" class="thickbox" rel="up_on_the_74" ><img title="IMG_2242.jpg" alt="IMG_2242.jpg" src="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/thumbs/thumbs_IMG_2242.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
<div id="ngg-image-889" class="ngg-gallery-thumbnail-box ">
	<div class="ngg-gallery-thumbnail"  >
	<a href="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/IMG_2243.jpg" title="" class="thickbox" rel="up_on_the_74" ><img title="IMG_2243.jpg" alt="IMG_2243.jpg" src="http://gregs.tcias.co.uk/wp-content/gallery/up_on_the_74/thumbs/thumbs_IMG_2243.jpg" style="width:100px; height:75px;" /></a>
</div>
</div>
</div>
<div class='ngg-clear'></div>
<br />
<script>
	googleMapsLoad();
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://gregs.tcias.co.uk/2009/03/06/up-on-the-74/feed/</wfw:commentRss>
		</item>
		<item>
		<title>I took it</title>
		<link>http://gregs.tcias.co.uk/2008/07/30/i-took-it/</link>
		<comments>http://gregs.tcias.co.uk/2008/07/30/i-took-it/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 05:07:40 +0000</pubDate>
		<dc:creator>gregs</dc:creator>
		
		<category><![CDATA[tumble]]></category>

		<guid isPermaLink="false">http://gregs.tcias.co.uk/?p=471</guid>
		<description><![CDATA[
Now you should too!
]]></description>
			<content:encoded><![CDATA[<p><a href="http://alistapart.com/articles/survey2008"><img title="i-took-the-2008-survey" src="http://gregs.tcias.co.uk/wp-content/uploads/2008/07/i-took-the-2008-survey.gif" alt="I took the 2008 survey" width="180" height="46" /></a></p>
<p>Now you should too!</p>
]]></content:encoded>
			<wfw:commentRss>http://gregs.tcias.co.uk/2008/07/30/i-took-it/feed/</wfw:commentRss>
		</item>
		<item>
		<title>VMWare and keyboard input</title>
		<link>http://gregs.tcias.co.uk/2008/07/09/vmware-and-keyboard-input/</link>
		<comments>http://gregs.tcias.co.uk/2008/07/09/vmware-and-keyboard-input/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 01:07:03 +0000</pubDate>
		<dc:creator>gregs</dc:creator>
		
		<category><![CDATA[*nix]]></category>

		<category><![CDATA[mac]]></category>

		<category><![CDATA[os x]]></category>

		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://gregs.tcias.co.uk/?p=470</guid>
		<description><![CDATA[This morning I fired my Windows XP VM on my mac and my keyboard input simply stopped working. After a couple of VM reboots, which had no effect, I did some googling. The first result suggested typing a few commands to determine what had disabled it:
PLAIN TEXT
CODE:




$ ioreg -l -w 0 &#124; grep SecureInput


&#124;&#160; &#160;"IOConsoleUsers" [...]]]></description>
			<content:encoded><![CDATA[<p>This morning I fired my Windows XP VM on my mac and my keyboard input simply stopped working. After a couple of VM reboots, which had no effect, I did some googling. <a title="keyboard stops working... system beeps" href="http://communities.vmware.com/message/617423">The first result</a> suggested typing a few commands to determine what had disabled it:</p>
<div class="igBar"><span id="lcode-18"><a href="#" onclick="javascript:showPlainTxt('code-18'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-18">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$ ioreg -l -w <span style="color:#800000;color:#800000;">0</span> | grep SecureInput</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">|&nbsp; &nbsp;<span style="color:#CC0000;">"IOConsoleUsers"</span> = <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#CC0000;">"kCGSSessionSecureInputPID"</span>=<span style="color:#800000;color:#800000;">177</span>,<span style="color:#CC0000;">"kCGSSessionLoginwindowSafeLogin"</span>=No,<span style="color:#CC0000;">"kCGSSessionAuditIDKey"</span>=<span style="color:#800000;color:#800000;">0</span>,<span style="color:#CC0000;">"kCGSessionLoginDoneKey"</span>=Yes,<span style="color:#CC0000;">"kCGSSessionSystemSafeBoot"</span>=No,<span style="color:#CC0000;">"kCGSSessionOnConsoleKey"</span>=Yes,<span style="color:#CC0000;">"kCGSSessionUserIDKey"</span>=<span style="color:#800000;color:#800000;">501</span>,<span style="color:#CC0000;">"kSCSecuritySessionID"</span>=<span style="color:#800000;color:#800000;">11622192</span>,<span style="color:#CC0000;">"kCGSSessionUserNameKey"</span>=<span style="color:#CC0000;">"gregstewart"</span>,<span style="color:#CC0000;">"kCGSSessionGroupIDKey"</span>=<span style="color:#800000;color:#800000;">20</span>,<span style="color:#CC0000;">"kCGSSessionConsoleSetKey"</span>=<span style="color:#800000;color:#800000;">0</span>,<span style="color:#CC0000;">"kCGSSessionIDKey"</span>=<span style="color:#800000;color:#800000;">256</span>,<span style="color:#CC0000;">"kCGSessionLongUserNameKey"</span>=<span style="color:#CC0000;">"User"</span><span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$ ps auxwwww | grep <span style="color:#800000;color:#800000;">177</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">user <span style="color:#800000;color:#800000;">177</span>&nbsp; &nbsp;<span style="color:#800000;color:#800000;">7</span>.<span style="color:#800000;color:#800000;">8</span>&nbsp; <span style="color:#800000;color:#800000;">9</span>.<span style="color:#800000;color:#800000;">2</span>&nbsp; &nbsp;<span style="color:#800000;color:#800000;">652520</span> <span style="color:#800000;color:#800000;">192788</span>&nbsp; &nbsp;??&nbsp; S&nbsp; &nbsp; <span style="color:#800000;color:#800000;">10</span>:51pm&nbsp; <span style="color:#800000;color:#800000;">59</span>:<span style="color:#800000;color:#800000;">09</span>.<span style="color:#800000;color:#800000;">22</span> /Applications/Firefox.<span style="">app</span>/Contents/MacOS/firefox-bin -psn_0_110619</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">user <span style="color:#800000;color:#800000;">1155</span>&nbsp; &nbsp;<span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">0</span>&nbsp; <span style="color:#800000;color:#800000;">0</span>.<span style="color:#800000;color:#800000;">0</span>&nbsp; &nbsp;<span style="color:#800000;color:#800000;">599820</span>&nbsp; &nbsp; <span style="color:#800000;color:#800000;">464</span> s001&nbsp; S+&nbsp; &nbsp;<span style="color:#800000;color:#800000;">10</span>:44am&nbsp; &nbsp;<span style="color:#800000;color:#800000;">0</span>:<span style="color:#800000;color:#800000;">00</span>.<span style="color:#800000;color:#800000;">00</span> grep <span style="color:#800000;color:#800000;">177</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>According to the post the application that was blocking it was FireFox. "kCGSSessionSecureInputPID"=177 is the info you need to look for, where in my case 177 was the number I needed to use in the next command. Incredulous as I was, I closed FireFox and hey presto keyboard input was working again.</p>
<p>Hopefully this post will help others.</p>
]]></content:encoded>
			<wfw:commentRss>http://gregs.tcias.co.uk/2008/07/09/vmware-and-keyboard-input/feed/</wfw:commentRss>
		</item>
		<item>
		<title>AJAX calls and expired sessions</title>
		<link>http://gregs.tcias.co.uk/2008/06/19/ajax-calls-and-expired-sessions/</link>
		<comments>http://gregs.tcias.co.uk/2008/06/19/ajax-calls-and-expired-sessions/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 08:12:44 +0000</pubDate>
		<dc:creator>gregs</dc:creator>
		
		<category><![CDATA[ColdFusion]]></category>

		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://gregs.teacupinastorm.com/?p=477</guid>
		<description><![CDATA[I have been updating a bunch of code recently to make use of the new features in Prototype 1.6 and one of the great additions in this release was the introduction of Automatic JavaScript response evaluation. This allowed me to improve on my session checking code without having to fuff around with the response information [...]]]></description>
			<content:encoded><![CDATA[<p>I have been updating a bunch of code recently to make use of the new features in <a href="http://prototypejs.org/">Prototype 1.6</a> and one of the great additions in this release was the introduction of <a href="http://prototypejs.org/api/ajax/request">Automatic JavaScript response evaluation</a>. This allowed me to improve on my session checking code without having to fuff around with the response information sent back to the client. The problem was with XHR requests: i.e. if the user initiated such a request when his session had expired, then usually the response would fail or worse just hang.</p>
<p>The snippet below shows my new session checking code.</p>
<div class="igBar"><span id="ljavascript-22"><a href="#" onclick="javascript:showPlainTxt('javascript-22'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVASCRIPT:</span>
<div id="javascript-22">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span>&gt;&lt;!--</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">function</span> myAjaxCall<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&nbsp; &nbsp;url = <span style="color: #3366CC;">"index.cfm"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&nbsp; &nbsp;pars=<span style="color: #3366CC;">"?fuseaction.someFuseaction&amp;par1=1&amp;par2=2"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">new</span> Ajax.<span style="color: #006600;">Updater</span><span style="color: #66cc66;">&#40;</span>\\<span style="color: #3366CC;">'div_to_populate<span style="color: #000099; font-weight: bold;">\\</span>'</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;url, <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;method: \\<span style="color: #3366CC;">'post<span style="color: #000099; font-weight: bold;">\\</span>'</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;postBody: pars,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;onLoading: <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #009900; font-style: italic;">//code to run while making the request</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #66cc66;">&#125;</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;onComplete : <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>transport,json<span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span>json &amp;&amp; json<span style="color: #66cc66;">&#91;</span>\\<span style="color: #3366CC;">'session<span style="color: #000099; font-weight: bold;">\\</span>'</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;setSessionExpired<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #66cc66;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900; font-style: italic;">//Code to run when the request has completed</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #66cc66;">&#125;</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;onFailure: <span style="color: #003366; font-weight: bold;">function</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; <span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span>\\<span style="color: #3366CC;">'something went wrong<span style="color: #000099; font-weight: bold;">\\</span>'</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<span style="color: #66cc66;">&#125;</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;&nbsp; &nbsp; evalScripts:<span style="color: #003366; font-weight: bold;">true</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&nbsp; &nbsp;<span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;<span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">function</span> setSessionExpired<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&nbsp; &nbsp;<span style="color: #000066;">alert</span><span style="color: #66cc66;">&#40;</span>\\<span style="color: #3366CC;">'Your session has timed out<span style="color: #000099; font-weight: bold;">\\</span>'</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;&nbsp; &nbsp;window.<span style="color: #006600;">location</span>=\\<span style="color: #3366CC;">'http://&lt;cfoutput&gt;#cgi.HTTP_HOST#&lt;/cfoutput&gt;/?fuseaction=home.home<span style="color: #000099; font-weight: bold;">\\</span>'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// --&gt;&lt;/script&gt; </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>The trick is to intercept the call when you do your session checking at the back end. Let's say you have a fuseaction called login.login (see below and yes this is fusebox 3 :S) where you display the login form when a user is not logged in, this is where I inserted the check for an XHR request, by looking at the http headers sent along with the request. The key here is a new header attribute passed in with Prototype "X-Requested-With". If this attribute exists then I know it's an XHR request and I can create a custom JSON header with an error struct that holds a key called session with a value of timeout. All I then need to do is encode the struct as JSON and pass that encoded struct back to the browser.</p>
<div class="igBar"><span id="lcode-23"><a href="#" onclick="javascript:showPlainTxt('code-23'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-23">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;cfcase value=<span style="color:#CC0000;">"login"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;!--- gvs 1Feb08 - handles XHR requests that session timeout ---&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;cfset attributes.<span style="">request</span> = GetHttpRequestData<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>/&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;cfif StructKeyExists<span style="color:#006600; font-weight:bold;">&#40;</span>attributes.<span style="">request</span>.<span style="">headers</span>,<span style="color:#CC0000;">"X-Requested-With"</span><span style="color:#006600; font-weight:bold;">&#41;</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;cfsetting showdebugoutput=<span style="color:#CC0000;">"false"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;cfparam name=<span style="color:#CC0000;">"attributes.jsonObj"</span> default=<span style="color:#CC0000;">"#CreateObject('component','com.jehiah.json')#"</span>/&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;cfparam name=<span style="color:#CC0000;">"error"</span> default=<span style="color:#CC0000;">"#StructNew()#"</span>/&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;cfset error<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC0000;">'session'</span><span style="color:#006600; font-weight:bold;">&#93;</span>=<span style="color:#CC0000;">'timeout'</span>/&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;cfif StructKeyExists<span style="color:#006600; font-weight:bold;">&#40;</span>attributes,<span style="color:#CC0000;">"jsonObj"</span><span style="color:#006600; font-weight:bold;">&#41;</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;cfheader name=<span style="color:#CC0000;">"X-JSON"</span> value=<span style="color:#CC0000;">"#trim(attributes.jsonObj.encode(error))#"</span> /&gt;&lt;cfabort&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/cfif&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/cfif&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;cfif StructKeyExists<span style="color:#006600; font-weight:bold;">&#40;</span>session,<span style="color:#CC0000;">'login'</span><span style="color:#006600; font-weight:bold;">&#41;</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;cfset attributes.<span style="">login</span> = session.<span style="">login</span>/&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;cfelse&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;cfparam name=<span style="color:#CC0000;">"attributes.login"</span> default=<span style="color:#CC0000;">""</span>/&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/cfif&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;cfscript&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xfa.<span style="">submitform</span>=<span style="color:#CC0000;">'index.cfm?fuseaction=login.processlogin'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/cfscript&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;cfinclude template=<span style="color:#CC0000;">"#affiliate('dsp_login.cfm')#"</span>/&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/cfcase&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Now let's jump back to the JavaScript code and take a look at the onComplete function again:</p>
<div class="igBar"><span id="ljavascript-24"><a href="#" onclick="javascript:showPlainTxt('javascript-24'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVASCRIPT:</span>
<div id="javascript-24">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">onComplete : <span style="color: #003366; font-weight: bold;">function</span><span style="color: #66cc66;">&#40;</span>transport,json<span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #66cc66;">&#40;</span>json &amp;amp;&amp;amp; json<span style="color: #66cc66;">&#91;</span><span style="color: #3366CC;">'session'</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; setSessionExpired<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900; font-style: italic;">//Code to run when the request has completed</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>If there's a JSON object and it has a key of session then I call my setSessionExpired function which redirects the users. Now the json session key only exists in these situations since the call normally just passes back the result of the call.</p>
]]></content:encoded>
			<wfw:commentRss>http://gregs.tcias.co.uk/2008/06/19/ajax-calls-and-expired-sessions/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Goosh</title>
		<link>http://gregs.tcias.co.uk/2008/06/03/goosh/</link>
		<comments>http://gregs.tcias.co.uk/2008/06/03/goosh/#comments</comments>
		<pubDate>Wed, 04 Jun 2008 01:43:15 +0000</pubDate>
		<dc:creator>gregs</dc:creator>
		
		<category><![CDATA[*nix]]></category>

		<category><![CDATA[browser]]></category>

		<category><![CDATA[google]]></category>

		<category><![CDATA[tumble]]></category>

		<guid isPermaLink="false">http://gregs.tcias.co.uk/?p=469</guid>
		<description><![CDATA[The unofficial Google Shell... I like it!
]]></description>
			<content:encoded><![CDATA[<p><a title="The unofficial Google shell" href="http://goosh.org/">The unofficial Google Shell</a>... I like it!</p>
]]></content:encoded>
			<wfw:commentRss>http://gregs.tcias.co.uk/2008/06/03/goosh/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
