<?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>Simon Whatley &#187; tags</title>
	<atom:link href="http://www.simonwhatley.co.uk/tag/tags/feed" rel="self" type="application/rss+xml" />
	<link>http://www.simonwhatley.co.uk</link>
	<description>The opposite of every great idea is another great idea</description>
	<lastBuildDate>Wed, 02 Nov 2011 09:28:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Eliminating Whitespace in ColdFusion</title>
		<link>http://www.simonwhatley.co.uk/eliminating-whitespace-in-coldfusion</link>
		<comments>http://www.simonwhatley.co.uk/eliminating-whitespace-in-coldfusion#comments</comments>
		<pubDate>Fri, 26 Oct 2007 09:29:35 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Application Servers]]></category>
		<category><![CDATA[bandwidth]]></category>
		<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[ColdFusion Administrator]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[page processing]]></category>
		<category><![CDATA[servlets]]></category>
		<category><![CDATA[tags]]></category>
		<category><![CDATA[WAP]]></category>
		<category><![CDATA[web application]]></category>
		<category><![CDATA[Web Servers]]></category>
		<category><![CDATA[WEB-INF folder]]></category>
		<category><![CDATA[WEB-INF/lib folder]]></category>
		<category><![CDATA[web.xml]]></category>
		<category><![CDATA[web.xml file]]></category>
		<category><![CDATA[whitespace]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=351</guid>
		<description><![CDATA[ColdFusion has never satisfactorily removed whitespace from generated content, however, removing this whitespace can dramatically improve your website's performance. Take a 100KB page for example. If 20% of the page is made up of whitespace, that is 20% that is unneccessary and 20% bandwidth cost that can be saved.]]></description>
			<content:encoded><![CDATA[<p>ColdFusion has never satisfactorily removed whitespace from generated content, however, removing this whitespace can dramatically improve your website&#8217;s performance. Take a 100KB page for example. If 20% of the page is made up of whitespace, that is 20% that is unneccessary and 20% bandwidth cost that can be saved.</p>
<p>Currently there are two main ways a ColdFusion developer can prevent whitespace; via the ColdFusion Administrator and by including certain tags in their code:</p>
<p><strong>1. ColdFusion Administrator</strong></p>
<p>Under the <em>Server Settings &gt; Settings</em> menu item there is a checkbox called &#8216;Enable Whitespace Management&#8217;. This checkbox should always be checked. According to the description, checking this checkbox <em>&#8220;reduces the file size of the pages that ColdFusion returns to the browser by removing many of the extra spaces, tabs, and carriage returns that ColdFusion might otherwise persist from the CFML source file.&#8221;</em> I am yet to be convinced, but it is worthwhile enabling it.</p>
<p><strong>2. ColdFusion Tags</strong></p>
<p><code>&lt;cfsetting enablecfoutputonly="true"&gt;&lt;/cfsetting&gt;</code></p>
<p>The <code>cfsetting</code> tag controls aspects of page processing, such as the output of <acronym title="HyperText Markup Language">HTML</acronym> code in pages (inside and outside the <code>cfsetting</code> tag body). If <code>enablecfoutputonly</code> is set to <code>true</code>, <acronym title="HyperText Markup Language">HTML</acronym> output is blocked if it is not wrapped in a <code>cfoutput</code> tag. Therefore, this tag &#8216;can&#8217; be used to minimise the amount of generated whitespace.</p>
<p><code>&lt;cfsilent&gt;&lt;/cfsilent&gt;</code></p>
<p>The <code>cfsilent</code> tag supresses output produced by <acronym title="ColdFusion Markup Language">CFML</acronym> within a tag&#8217;s scope. Therefore, you simply need to wrap the tag around anything you don&#8217;t want to output to the browser. As it does not return anything from with in it, so you have to be a little be careful when debugging.</p>
<p><code>&lt;cfprocessingdirective supresswhitespace="true"&gt;&lt;/cfprocessingdirective&gt;</code></p>
<p>One of the <code>cfprocessingdirective</code>&#8216;s purposes is to remove excess whitespace from ColdFusion generated content in the tag body. However, it does not affect any whitespace in <acronym title="HyperText Markup Language">HTML</acronym> code. You can nest the tags and toggle <code>supresswhitespace</code> on and off, not that I ever identify a good reason to do so.</p>
<p><strong>But there is a little known third way, using a servlet filter called Trim Filter.</strong></p>
<p>Servlet filters are tools available to web application developers. They are designed to be able to manipulate a request and response (or both) that is sent to a web application.</p>
<p>Trim Filter lets you decrease the size of file your server will send to all clients. The filter removes extra spaces and line breaks from outputted documents. This can be especially useful for <acronym title="Wireless Application Protocol">WAP</acronym>/<acronym title="Wireless Markup Language">WML</acronym> developers working with mobile devices, where the size for transferred documents is limited.</p>
<p>S<strong>etting up the servlet filter in ColdFusion</strong></p>
<p>Using the Trim Filter servlet filter found at the following URL:</p>
<p><a rel="nofollow" href="http://www.servletsuite.com/servlets/trimflt.htm" title="TrimFilter jar File">http://www.servletsuite.com/servlets/trimflt.htm</a></p>
<ul>
<li>Download the <a rel="nofollow" href="http://www.servletsuite.com/servlets/trimflt.jar" title="trimflt.jar">trimflt.jar</a></li>
<li>Save trimflt.jar in the WEB-INF/lib folder in the ColdFusion Server wwwroot.</li>
<li>Edit the web.xml file in the WEB-INF folder in the ColdFusion Server wwwroot with the following code:</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">&lt;filter-mapping&gt;
	&lt;filter-name&gt;trimFilter&lt;/filter-name&gt;
	&lt;url-pattern&gt;*.cfm&lt;/url-pattern&gt;
&lt;/filter-mapping&gt;
&nbsp;
&lt;filter&gt;
	&lt;filter-name&gt;trimFilter&lt;/filter-name&gt;
	&lt;filter-class&gt;com.cj.trim.trimFilter&lt;/filter-class&gt;
&lt;/filter&gt;</pre></div></div>

<ul>
<li>Restart the ColdFusion Service</li>
</ul>
<p>And now, when a ColdFusion page is invoked, the whitespace is suppressed and wow does it do a good job.</p>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://www.simonwhatley.co.uk/eliminating-whitespace-in-coldfusion/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Taxonomy of Folksonomies</title>
		<link>http://www.simonwhatley.co.uk/taxonomy-of-folksonomies</link>
		<comments>http://www.simonwhatley.co.uk/taxonomy-of-folksonomies#comments</comments>
		<pubDate>Mon, 09 Jul 2007 21:44:05 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Social Media]]></category>
		<category><![CDATA[Strategy]]></category>
		<category><![CDATA[categorisation]]></category>
		<category><![CDATA[categorization]]></category>
		<category><![CDATA[classification]]></category>
		<category><![CDATA[Del.icio.us]]></category>
		<category><![CDATA[Flickr]]></category>
		<category><![CDATA[Folksonomy]]></category>
		<category><![CDATA[Gmail]]></category>
		<category><![CDATA[GoingToMeet]]></category>
		<category><![CDATA[information management]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[LibraryThing]]></category>
		<category><![CDATA[Odeo]]></category>
		<category><![CDATA[Social Bookmarking]]></category>
		<category><![CDATA[social web]]></category>
		<category><![CDATA[Tagalag]]></category>
		<category><![CDATA[tagging]]></category>
		<category><![CDATA[tags]]></category>
		<category><![CDATA[Taxonomy]]></category>
		<category><![CDATA[Technorati]]></category>
		<category><![CDATA[The Web]]></category>
		<category><![CDATA[tim o'reilly]]></category>
		<category><![CDATA[user content]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[Wikis]]></category>
		<category><![CDATA[YouTube]]></category>

		<guid isPermaLink="false">http://www.simonwhatley.co.uk/?p=143</guid>
		<description><![CDATA[The development of the internet and the web, and of search engines, has led to users doing their own searching. In the Web 2.0 environment users are now also doing their own content creation and information management. Because folksonomies develop in Internet-mediated social environments, users can discover who created a given folksonomy tag, and see the other tags that this person created. In this way, folksonomy users often discover the tag sets of another user who tends to interpret and tag content in a way that makes sense to them. The result is often an immediate and rewarding gain in the user's capacity to find related content.]]></description>
			<content:encoded><![CDATA[<p>The term Web 2.0, first coined by <a href="http://www.oreillynet.com/pub/a/oreilly/tim/news/2005/09/30/what-is-web-20.html" rel="nofollow" target="_blank" title="What is Web 2.0">Tim O&#8217;Reilly</a> back in 2004, describes a cluster of web-based services with a social collaboration and sharing component, where the community as a whole contributes, takes control, votes and ranks content and contributors. Web 2.0 services include social networking sites, wikis, communication tools, weblogs, social bookmarking, podcasts, <acronym title="Really Simple Syndication">RSS</acronym> feeds (and other forms of many-to-many publishing), social software, and folksonomies. Central to this new Web is the idea of tagging â€” the adding of keywords to a digital object (e.g. a website, picture, audiofile or videoclip) to categorise it. This activity is effectively subject indexing but generally without a controlled vocabulary.</p>
<p>The following list provides examples of sites which include some form of user-based tagging:</p>
<dl>
<dt>Blogs</dt>
<dd>Technorati: <a href="http://technorati.com" rel="nofollow" target="_blank" title="Technorati">http://technorati.com</a></dd>
<dt>Bookmarks</dt>
<dd>Delicious: <a href="http://del.icio.us" rel="nofollow" target="_blank" title="Del.icio.us">http://del.icio.us</a></dd>
<dt>Books</dt>
<dd>Librarything: <a href="http://www.librarything.com" rel="nofollow" target="_blank" title="LibraryThing">http://www.librarything.com</a></dd>
<dt>Emails</dt>
<dd>Gmail: <a href="http://mail.google.com" rel="nofollow" target="_blank" title="Gmail">http://mail.google.com</a></dd>
<dt>Events</dt>
<dd>GoingToMeet: <a href="http://www.goingtomeet.com" rel="nofollow" target="_blank" title="GoingToMeet">http://www.goingtomeet.com</a></dd>
<dt>People</dt>
<dd>Tagalag: <a href="http://www.tagalag.com" rel="nofollow" target="_blank" title="Tagalag">http://www.tagalag.com</a></dd>
<dt>Pictures</dt>
<dd>Flickr: <a href="http://www.flickr.com" rel="nofollow" target="_blank" title="Flickr">http://www.flickr.com</a></dd>
<dt>Podcasts</dt>
<dd>Odeo: <a href="http://odeo.com" rel="nofollow" target="_blank" title="Odeo">http://odeo.com</a></dd>
<dt>Videos</dt>
<dd>YouTube: <a href="http://www.youtube.com" rel="nofollow" target="_blank" title="YouTube">http://www.youtube.com</a></dd>
</dl>
<p align="center"><script type="text/javascript"><!--
google_ad_client = "pub-6475233631580417";
/* 468x60 Basic */
google_ad_slot = "7117418273";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p style="text-align: center"><img src="http://www.simonwhatley.co.uk/blog/wp-content/uploads/2007/07/folksonomy-websites.png" alt="Folksonomic Websites" /></p>
<p>Tagging of course is not a new concept, especially to librarians, indexers and classification professionals. What is new is that the tagging is being done by everyone, no longer by only a small group of experts, and that the tags are being made public and shared. This is the concept of Folksonomy.</p>
<blockquote url="http://en.wikipedia.org/wiki/Folksonomy"><p>A folksonomy is a user-generated taxonomy used to categorize and retrieve web content such as Web pages, photographs and Web links, using open-ended labels called tags. Typically, folksonomies are Internet-based, but their use may occur in other contexts. The folksonomic tagging is intended to make a body of information increasingly easy to search, discover, and navigate over time. A well-developed folksonomy is ideally accessible as a shared vocabulary that is both originated by, and familiar to, its primary users.</p></blockquote>
<p>In contrast, in the realm of the Web, taxonomy can be defined as:</p>
<blockquote url="http://www.dictionary.net/taxonomy"><p>the laws or principles of classification;</p></blockquote>
<blockquote url="members.optusnet.com.au/~webindexing/Webbook2Ed/glossary.htm"><p>controlled vocabulary used primarily for the creation of navigation structures for websites</p></blockquote>
<p>The development of the Internet and the Web, and of search engines, led to users doing their own searching. In the Web 2.0 environment users are now also doing their own content creation and information management.</p>
<p>Because folksonomies develop in Internet-mediated social environments, users can often discover who created a given folksonomy tag, and see the other tags that this person created. In this way, folksonomy users often discover the tag sets of another user who tends to interpret and tag content in a way that makes sense to them. The result is often an immediate and rewarding gain in the user&#8217;s capacity to find related content. Part of the appeal of folksonomy is its inherent subversiveness: when faced with the choice of the search tools that Web sites provide, folksonomies can be seen as a rejection of the search engine status quo in favour of tools that are created by the community.</p>
<p>Folksonomy creation and searching tools are not part of the underlying World Wide Web protocols. Folksonomies arise in Web-based communities where special provisions are made at the site level for creating and using tags. These communities are established to enable Web users to label and share user-generated content, such as photographs (e.g. <a href="http://www.flickr.com" rel="nofollow" target="_blank" title="Flickr">Flickr</a>), or to collaboratively label existing content, such as Web sites (e.g. <a href="http://technorati.com" rel="nofollow" target="_blank" title="Technorati">Technorati</a>), books (e.g. <a href="http://www.librarything.com" rel="nofollow" target="_blank" title="LibraryThing">LibraryThing</a>), works in the scientific and scholarly literatures, and blog entries (e.g. <a href="http://wordpress.org" rel="nofollow" target="_blank" title="WordPress">WordPress</a>).</p>
<p align="center"><script type="text/javascript"><!--
google_ad_client = "pub-6475233631580417";
/* 468x60 Basic */
google_ad_slot = "7117418273";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.simonwhatley.co.uk/taxonomy-of-folksonomies/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

