<?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>gregs &#187; Uncategorized</title>
	<atom:link href="http://gregs.tcias.co.uk/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://gregs.tcias.co.uk</link>
	<description>helping me remember what I figure out</description>
	<lastBuildDate>Fri, 03 Feb 2012 01:04:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Struggling for commit messages</title>
		<link>http://gregs.tcias.co.uk/2010/09/05/struggling-for-commit-messages/</link>
		<comments>http://gregs.tcias.co.uk/2010/09/05/struggling-for-commit-messages/#comments</comments>
		<pubDate>Sun, 05 Sep 2010 08:43:48 +0000</pubDate>
		<dc:creator>gregs</dc:creator>
				<category><![CDATA[svn]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://gregs.tcias.co.uk/2010/09/05/struggling-for-commit-messages/</guid>
		<description><![CDATA[Check out http://whatthecommit.com/ &#8211; my favourite: (\ /) (O.o) (>]]></description>
			<content:encoded><![CDATA[<p>Check out http://whatthecommit.com/ &#8211; my favourite:</p>
<p>(\ /)<br />
(O.o)<br />
(> <) Bunny approves these changes.</p>
]]></content:encoded>
			<wfw:commentRss>http://gregs.tcias.co.uk/2010/09/05/struggling-for-commit-messages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Busy</title>
		<link>http://gregs.tcias.co.uk/2005/08/23/busy/</link>
		<comments>http://gregs.tcias.co.uk/2005/08/23/busy/#comments</comments>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<dc:creator>gregs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://gregs.tcias.co.uk/?p=146</guid>
		<description><![CDATA[Apologies again for the lack of posts, but I have been real busy at work completing another mach-ii app. So I thought I&#8217;d share a few details about this application that went live today. You won&#8217;t be able to publicly &#8230; <a href="http://gregs.tcias.co.uk/2005/08/23/busy/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Apologies again for the lack of posts, but I have been real busy at work completing another mach-ii app. So I thought I&#8217;d share a few details about this application that went live today. You won&#8217;t be able to publicly view it, so below is a screen shot (click on the image to view a larger one) for your viewing pleasure.</p>
<p><a href="http://gregs.tcias.co.uk/wp-content/uploads/2007/02/bigcma.png" title="CMA screenshot"><img src="http://gregs.tcias.co.uk/wp-content/uploads/2007/02/bigcma.png" alt="CMA screenshot" /></a></p>
<p>So what is it? It&#8217;s an application that allows a user to search for comparable properties within a given postcode, district, town, etc&#8230; The properties are retrieved from our databases and overlayed on a multimap image of the requested area using SVG. You can then select a series of properties (by either selecting them by clicking on them via the map or from a list). Selecting allows you to view the property?s details or you can add them to a list that you wish to examine more closely. This list can then be exported as Excel or rendered as a PDF document.</p>
<p>The UI makes use of SVG for the rendering of the map and placement of the properties, as well as some serious dHTML for displaying the different views. All the data that drives the application is delivered using the AJAX delivery mechanism. From an implementation/developer point of view it was a whole heap of fun getting a chance to develop an &#8220;RIA&#8221; using AJAX and dHTML. Despite the debugging hell, it&#8217;s no more difficult than working with Flash Remoting and I suspect that as more work is done with AJAX the better the debugging solutions will become.</p>
<p>The back end is all driven by CF and the framework we used, like all of our B2B apps, is Mach-ii (our <a href="http://www.hometrack.co.uk/" title="Hometrack">consumer site</a> uses FuseBox). The UI makes remoting calls to our app which retrieves the requested data. The data is returned in the form of XML, where after being decompressed (we compress it server side to speed up things), XSL style sheets are applied to render the output.</p>
<p>Much of the credit for the implementation must go to Zac (where&#8217;s your blog mate?), and it&#8217;s been great working him on this project. More so because he is fellow developer who digs Mach-ii. To date this probably my most OO based app yet, but having had a few days to look back on it now, there are still a number of areas that we could improve upon. For the next point release we are looking at quite a few enhancements in terms of the back end and taking a serious look at Tartan to help us manage our Service Layer.</p>
<p>It&#8217;s been a while since I have had so much fun developing a web app again and have had a chance to work with so many different technologies in one go. And of course CF sits at the heart of it all.</p>
]]></content:encoded>
			<wfw:commentRss>http://gregs.tcias.co.uk/2005/08/23/busy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SOUNDEX</title>
		<link>http://gregs.tcias.co.uk/2005/08/23/soundex/</link>
		<comments>http://gregs.tcias.co.uk/2005/08/23/soundex/#comments</comments>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<dc:creator>gregs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://gregs.tcias.co.uk/?p=147</guid>
		<description><![CDATA[Ever wondered how Google does it's little "did you mean this..." when you carry out a search? Well we just put together something similar (though I am sure not quite as clever as the folks over at Google). From some &#8230; <a href="http://gregs.tcias.co.uk/2005/08/23/soundex/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ever wondered how Google does it's little "did you mean this..." when you carry out a search? Well we just put together something similar (though I am sure not quite as clever as the folks over at Google). From some of my previous posts you may have gleaned that I am currently working for company that deals with postcodes, local authorities and properties. The mach-ii application I mentioned in my previous post makes use of this feature as quite frequently users mistype the information. So in order to help them we use two functions to guide them along their way.</p>
<div class="igBar"><span id="lsql-2"><a href="#" onclick="javascript:showPlainTxt('sql-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">SQL:</span>
<div id="sql-2">
<div class="sql">
<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;"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #993333; font-weight: bold;">DISTINCT</span> StreetName,CONVERT<span style="color:#006600; font-weight:bold;">&#40;</span>INT, ourdB.dbo.LEVENSHTEIN<span style="color:#006600; font-weight:bold;">&#40;</span>StreetName, <span style="color: #ff0000;">'the road you are looking for'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#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: #993333; font-weight: bold;">FROM</span> ourPropertyTable</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: #993333; font-weight: bold;">WHERE</span> soundex<span style="color:#006600; font-weight:bold;">&#40;</span>StreetName<span style="color:#006600; font-weight:bold;">&#41;</span> = soundex<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color: #ff0000;">'the road you are looking for'</span><span style="color:#006600; font-weight:bold;">&#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: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> StreetName</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: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #cc66cc;color:#800000;">2</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>SOUNDEX is a built in MS SQL function that allows you to do sound matching for strings, which returns a list of similar sounding words to the one you were looking for. LEVENSHTEIN is an third party function that further enhances this search giving the returned set a numeric weighting to determine the accuracy of the match. With these two functions and this query you can in the event of a no results found make some suggestions as to what the end user may have been looking for.</p>
]]></content:encoded>
			<wfw:commentRss>http://gregs.tcias.co.uk/2005/08/23/soundex/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>XSLT conditional statements</title>
		<link>http://gregs.tcias.co.uk/2005/08/23/xslt-conditional-statements/</link>
		<comments>http://gregs.tcias.co.uk/2005/08/23/xslt-conditional-statements/#comments</comments>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<dc:creator>gregs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://gregs.tcias.co.uk/?p=148</guid>
		<description><![CDATA[One of the other completely new aspects of my job has been working with xmlHTTPRequest and XML/XSL transformation. And here are a few things that I learned during my last project: you can use conditional statements. W3schools proved very helpful &#8230; <a href="http://gregs.tcias.co.uk/2005/08/23/xslt-conditional-statements/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>One of the other completely new aspects of my job has been working with xmlHTTPRequest and XML/XSL transformation. And here are a few things that I learned during my last project: you can use conditional statements. <a href="http://www.w3schools.com/xsl/xsl_if.asp" title="XSLT - The &lt;xsl:if&gt; Element">W3schools</a> proved very helpful in getting to grips with this.</p>
<p>You can do <strong>if</strong> like statements:</p>
<div class="igBar"><span id="lxml-5"><a href="#" onclick="javascript:showPlainTxt('xml-5'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-5">
<div class="xml">
<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;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;xsl</span>:if <span style="color: #000066;">test</span>=<span style="color: #ff0000;">"expression"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Do something</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;"><span style="font-weight: bold; color: black;">&lt;/xsl</span>:if<span style="font-weight: bold; color: black;">&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>And <strong>if/else</strong> statements:</p>
<div class="igBar"><span id="lxml-6"><a href="#" onclick="javascript:showPlainTxt('xml-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">XML:</span>
<div id="xml-6">
<div class="xml">
<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;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;xsl</span>:choose<span style="font-weight: bold; color: black;">&gt;</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: #009900;"><span style="font-weight: bold; color: black;">&lt;xsl</span>:when <span style="color: #000066;">test</span>=<span style="color: #ff0000;">"expression"</span><span style="font-weight: bold; color: black;">&gt;</span></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;">Do something</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/xsl</span>:when<span style="font-weight: bold; color: black;">&gt;</span></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;"><span style="font-weight: bold; color: black;">&lt;xsl</span> <img src='http://gregs.tcias.co.uk/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> therwise<span style="font-weight: bold; color: black;">&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Do something else</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;"><span style="font-weight: bold; color: black;">&lt;/xsl</span> <img src='http://gregs.tcias.co.uk/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> therwise<span style="font-weight: bold; color: black;">&gt;</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: #009900;"><span style="font-weight: bold; color: black;">&lt;/xsl</span>:choose<span style="font-weight: bold; color: black;">&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>The test expressions can be made up of: "=", "and", "&lt;", "&amp; amp;gt;" and probably a whole lot more, but I haven't come across any other ones yet.</p>
]]></content:encoded>
			<wfw:commentRss>http://gregs.tcias.co.uk/2005/08/23/xslt-conditional-statements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>du</title>
		<link>http://gregs.tcias.co.uk/2005/08/23/du/</link>
		<comments>http://gregs.tcias.co.uk/2005/08/23/du/#comments</comments>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<dc:creator>gregs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://gregs.tcias.co.uk/?p=149</guid>
		<description><![CDATA[I stumbled across the following command while reading this article: du --max-depth=1 --human-readable --total This gives you an estimated indication of your file space usage by folder. Here is some sample output: 12K ./lost+found 2.5M ./bin 84K ./dev 3.3M ./etc &#8230; <a href="http://gregs.tcias.co.uk/2005/08/23/du/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I stumbled across the following command while reading <a href="http://www-128.ibm.com/developerworks/linux/library/wi-wiisp.html?ca=dgr-lnxw01BuildISP" title="Linux scripts make wireless management a snap">this article</a>:</p>
<p><code>du --max-depth=1 --human-readable --total</code></p>
<p>This gives you an estimated indication of your file space usage by folder. Here is some sample output:</p>
<p><code>12K     ./lost+found<br />
2.5M    ./bin<br />
84K     ./dev<br />
3.3M    ./etc<br />
187M    ./home<br />
7.6M    ./lib<br />
1.0K    ./mnt<br />
1.0K    ./opt<br />
65M     ./proc<br />
65K     ./root<br />
2.3M    ./sbin<br />
3.0K    ./tmp</code></p>
<p>There are plenty of other useful scripts and tidbits in <a href="http://www-128.ibm.com/developerworks/linux/library/wi-wiisp.html?ca=dgr-lnxw01BuildISP" title="Linux scripts make wireless management a snap">the article</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gregs.tcias.co.uk/2005/08/23/du/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting the QueryString using JavaScript</title>
		<link>http://gregs.tcias.co.uk/2005/08/23/getting-the-querystring-using-javascript/</link>
		<comments>http://gregs.tcias.co.uk/2005/08/23/getting-the-querystring-using-javascript/#comments</comments>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<dc:creator>gregs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://gregs.teacupinastorm.com/2005/08/23/getting-the-querystring-using-javascript/</guid>
		<description><![CDATA[Here is a little script that parses the query strings of your URL so that you can use them in your JavaScript code: PLAIN TEXT JavaScript: // gvs - 19/7/2005 - retrieve values from URL to be appended to the &#8230; <a href="http://gregs.tcias.co.uk/2005/08/23/getting-the-querystring-using-javascript/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here is a little script that parses the query strings of your URL so that you can use them in your JavaScript code:</p>
<div class="igBar"><span id="ljavascript-8"><a href="#" onclick="javascript:showPlainTxt('javascript-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JavaScript:</span>
<div id="javascript-8">
<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;"><span style="color: #009900; font-style: italic;">// gvs - 19/7/2005 - retrieve values from URL to be appended to the link</span></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;">var</span> hasQueryString = document.<span style="color: #006600;">URL</span>.<span style="color: #006600;">indexOf</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">'?'</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: #003366; font-weight: bold;">var</span> additionalQueryString = <span style="color: #3366CC;">""</span>;</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;">var</span> targetUrl = <span style="color: #3366CC;">"http://www.someURL.com/?with=queryString"</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: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>hasQueryString != -<span style="color: #CC0000;color:#800000;">1</span><span style="color: #66cc66;">&#41;</span> <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;"><span style="color: #009900; font-style: italic;">// Create variable from ? in the url to the end of the string</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;">additionalQueryString = document.<span style="color: #006600;">URL</span>.<span style="color: #006600;">substring</span><span style="color: #66cc66;">&#40;</span>hasQueryString+<span style="color: #CC0000;color:#800000;">1</span>, document.<span style="color: #006600;">URL</span>.<span style="color: #006600;">length</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;">targetUrl = targetUrl + <span style="color: #3366CC;">"&amp;amp;"</span> + additionalQueryString;</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>In case you are wondering what I used this for: to help debug some our AJAX UIs. Every single time a request is sent to the server, we use JavaScript to create a clickable link for us that mimics the remoting call that we can use to view the XML that is sent back to the browser (or any other problems that might occur).</p>
]]></content:encoded>
			<wfw:commentRss>http://gregs.tcias.co.uk/2005/08/23/getting-the-querystring-using-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clearing sessions on closing the browser</title>
		<link>http://gregs.tcias.co.uk/2005/07/18/clearing-sessions-on-closing-the-browser/</link>
		<comments>http://gregs.tcias.co.uk/2005/07/18/clearing-sessions-on-closing-the-browser/#comments</comments>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<dc:creator>gregs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://gregs.tcias.co.uk/?p=212</guid>
		<description><![CDATA[I keep seeing this question pop up so for google's sake here is how you can kill sessions when the user closes his or her browser. PLAIN TEXT HTML: &#60;!--- set session coookies ---&#62; &#60;cfif&#62; &#60;cfcookie name="cfid" value="#cookie.cfid#"&#62; &#60;cfcookie name="cftoken" &#8230; <a href="http://gregs.tcias.co.uk/2005/07/18/clearing-sessions-on-closing-the-browser/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I keep seeing this question pop up so for google's sake here is how you can kill sessions when the user closes his or her browser.</p>
<div class="igBar"><span id="lhtml-10"><a href="#" onclick="javascript:showPlainTxt('html-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-10">
<div class="html">
<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;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!--- set session coookies ---&gt;</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: #009900;">&lt;cfif&gt;</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;">&lt;cfcookie <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"cfid"</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">"#cookie.cfid#"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;">&lt;cfcookie <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"cftoken"</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">"#cookie.cftoken#"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></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;"><span style="color: #000000; font-weight: bold;">&lt;</span></a>/cfcookie&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></cfcookie></cfif></p>
]]></content:encoded>
			<wfw:commentRss>http://gregs.tcias.co.uk/2005/07/18/clearing-sessions-on-closing-the-browser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cycling through your history</title>
		<link>http://gregs.tcias.co.uk/2005/06/30/cycling-through-your-history/</link>
		<comments>http://gregs.tcias.co.uk/2005/06/30/cycling-through-your-history/#comments</comments>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<dc:creator>gregs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://gregs.tcias.co.uk/?p=137</guid>
		<description><![CDATA[I quite often find myself cycling through the history of commands I have typed in the console window and there can be quite a few commands stored there. John, part time philosopher and all round good bloke and extraordinary at &#8230; <a href="http://gregs.tcias.co.uk/2005/06/30/cycling-through-your-history/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I quite often find myself cycling through the history of commands I have typed in the console window and there can be quite a few commands stored there. John, part time philosopher and all round good bloke and extraordinary at all things computing related, stopped me from monkeying around on the keyboard and showed me the following command that stopped me from having kittens when it came to finding that all important and elusive command:</p>
<p><code>
<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;">history | grep <span style="color:#CC0000;">"pattern"</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></code></p>
<p>For example while re-building qmail I was looking for the last make statement:</p>
<p><code>
<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;">host:/tmp/qmail/maildrop-<span style="color:#800000;color:#800000;">1</span>.<span style="color:#800000;color:#800000;">6</span>.<span style="color:#800000;color:#800000;">3</span># history | grep <span style="color:#CC0000;">"make"</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#800000;color:#800000;">511</span>&nbsp; make man &amp;amp;&amp;amp; make setup check</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:#800000;color:#800000;">514</span>&nbsp; make man &amp;amp;&amp;amp; make setup check</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#800000;color:#800000;">517</span>&nbsp; make cert</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:#800000;color:#800000;">520</span>&nbsp; make &amp;amp;&amp;amp; make setup check</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#800000;color:#800000;">528</span>&nbsp; make &amp;amp;&amp;amp; make install</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:#800000;color:#800000;">536</span>&nbsp; make &amp;amp;&amp;amp; make install-strip</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#800000;color:#800000;">541</span>&nbsp; make &amp;amp;&amp;amp; make install-strip &amp;amp;&amp;amp; make install-man</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:#800000;color:#800000;">547</span>&nbsp; history | grep <span style="color:#CC0000;">"make"</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></code></p>
<p>Then you can do <strong>!541</strong> ("!" is pronounced bang) and this will execute: "make &amp;&amp; make install-strip &amp;&amp; make install-man". Sometimes working with *nix systems is just so handy and it's another feather in my cap!</p>
<p>Oh and John see I managed to get kittens, monkeys and hats into a post!</p>
]]></content:encoded>
			<wfw:commentRss>http://gregs.tcias.co.uk/2005/06/30/cycling-through-your-history/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS organisation</title>
		<link>http://gregs.tcias.co.uk/2005/06/30/css-organisation/</link>
		<comments>http://gregs.tcias.co.uk/2005/06/30/css-organisation/#comments</comments>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<dc:creator>gregs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://gregs.tcias.co.uk/?p=139</guid>
		<description><![CDATA[A few week old now, but Doug over at Stop Design has come up with yet another invaluable little trick: when working with large style sheets it can be quite a lot of work to scroll through it in order &#8230; <a href="http://gregs.tcias.co.uk/2005/06/30/css-organisation/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A few week old now, but Doug over at Stop Design has come up with <a href="http://www.stopdesign.com/log/2005/05/03/css-tip-flags.html" title="CSS Organization Tip 1: Flags">yet another invaluable little trick</a>: when working with large style sheets it can be quite a lot of work to scroll through it in order to locate a certain declaration. His tip, label your sections and prefix the label with "=" like such:</p>
<p><code>
<div class="igBar"><span id="lcss-16"><a href="#" onclick="javascript:showPlainTxt('css-16'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CSS:</span>
<div id="css-16">
<div class="css">
<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;"><span style="color: #808080; font-style: italic;">/* MISC: =Lists</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">----------------------------------------------- */</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></code></p>
<p>Since "=" is not used in CSS, doing a search for =List will quickly get you to where you need to be.</p>
<p>And while you are over at his site, why not read up on his latest collaborative project with <a href="http://www.happycog.com/work/cg/" title="Cap Gemini">Happy Cog</a> and <a href="http://www.zeldman.com/" title="Jeffrey Zeldman presents the daily report">Jeffrey Zeldman</a>: <a hef="http://www.capgemini.com/" title="collaborative business experience">Cap Gemini</a> a glorious CSS/xHTML redesign!</p>
]]></content:encoded>
			<wfw:commentRss>http://gregs.tcias.co.uk/2005/06/30/css-organisation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>maxEvents</title>
		<link>http://gregs.tcias.co.uk/2005/06/30/maxevents/</link>
		<comments>http://gregs.tcias.co.uk/2005/06/30/maxevents/#comments</comments>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<dc:creator>gregs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://gregs.tcias.co.uk/?p=145</guid>
		<description><![CDATA[maxEvents is used in the mach-ii framework primarily to help you not get into an infinite loop. Of course limiting the number of events can also land you in trouble as some request may require more events than currently set. &#8230; <a href="http://gregs.tcias.co.uk/2005/06/30/maxevents/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>maxEvents is used in the mach-ii framework primarily to help you not get into an infinite loop. Of course limiting the number of events can also land you in trouble as some request may require more events than currently set. Determining this number is something that you will need to figure out yourself. Ben Edwards suggests that 50 or more events is fine, however he did recommend against disabling it.</p>
<p>For the record you can disable the maxEvents by assigning it a negative number.</p>
]]></content:encoded>
			<wfw:commentRss>http://gregs.tcias.co.uk/2005/06/30/maxevents/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

