<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Tech Stuff - Stefan Z Camilleri</title>
	<atom:link href="http://szc001.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://szc001.wordpress.com</link>
	<description>software development, engineering, server configuration, linux, windows, mac os x... everyday matters in a geek&#039;s life basically :)</description>
	<lastBuildDate>Sun, 06 Feb 2011 23:24:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='szc001.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/4d870f4feb62f14679c39569295ecb5e?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Tech Stuff - Stefan Z Camilleri</title>
		<link>http://szc001.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://szc001.wordpress.com/osd.xml" title="Tech Stuff - Stefan Z Camilleri" />
	<atom:link rel='hub' href='http://szc001.wordpress.com/?pushpress=hub'/>
		<item>
		<title>permanent redirect with mod_rewrite in apache</title>
		<link>http://szc001.wordpress.com/2010/11/02/permanent-redirect-with-mod_rewrite-in-apache/</link>
		<comments>http://szc001.wordpress.com/2010/11/02/permanent-redirect-with-mod_rewrite-in-apache/#comments</comments>
		<pubDate>Tue, 02 Nov 2010 10:52:32 +0000</pubDate>
		<dc:creator>Stefan Z Camilleri</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Apache HTTP Server]]></category>
		<category><![CDATA[Rewrite engine]]></category>
		<category><![CDATA[Servers]]></category>

		<guid isPermaLink="false">http://szc001.wordpress.com/?p=354</guid>
		<description><![CDATA[/* Creating a permanent redirect in apache using mod_rewrite */ { Notes: I am assuming you already know how to set up mod_rewrite. In your conf, do the following # If the following is true, run the rule following it directly RewriteCond %{HTTP_HOST} the.original.destination RewriteRule ^(.*) your.new.destination/$1 [R=301,L] } Filed under: General Tagged: Apache, Apache [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=szc001.wordpress.com&amp;blog=243717&amp;post=354&amp;subd=szc001&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>/* Creating a permanent redirect in apache using mod_rewrite */</p>
<p>{</p>
<blockquote><p>Notes: I am assuming you already know how to set up mod_rewrite.</p>
<p>In your conf, do the following</p>
<pre class="brush: plain;"># If the following is true, run the rule following it directly
RewriteCond %{HTTP_HOST} the.original.destination
RewriteRule ^(.*) your.new.destination/$1 [R=301,L]</pre>
</blockquote>
<p>}</p>
<br />Filed under: <a href='http://szc001.wordpress.com/category/general/'>General</a> Tagged: <a href='http://szc001.wordpress.com/tag/apache/'>Apache</a>, <a href='http://szc001.wordpress.com/tag/apache-http-server/'>Apache HTTP Server</a>, <a href='http://szc001.wordpress.com/tag/rewrite-engine/'>Rewrite engine</a>, <a href='http://szc001.wordpress.com/tag/servers/'>Servers</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/szc001.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/szc001.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/szc001.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/szc001.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/szc001.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/szc001.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/szc001.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/szc001.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/szc001.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/szc001.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/szc001.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/szc001.wordpress.com/354/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/szc001.wordpress.com/354/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/szc001.wordpress.com/354/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=szc001.wordpress.com&amp;blog=243717&amp;post=354&amp;subd=szc001&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://szc001.wordpress.com/2010/11/02/permanent-redirect-with-mod_rewrite-in-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>35.914007 14.503111</georss:point>
		<geo:lat>35.914007</geo:lat>
		<geo:long>14.503111</geo:long>
		<media:content url="http://0.gravatar.com/avatar/09f16c1b9623fb2fb32cd10e0631bb33?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=X" medium="image">
			<media:title type="html">stefancamilleri</media:title>
		</media:content>
	</item>
		<item>
		<title>Python :: Mapping a string to a dictionary</title>
		<link>http://szc001.wordpress.com/2009/02/09/python-mapping-a-string-to-a-dictionary/</link>
		<comments>http://szc001.wordpress.com/2009/02/09/python-mapping-a-string-to-a-dictionary/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 16:10:56 +0000</pubDate>
		<dc:creator>Stefan Camilleri</dc:creator>
				<category><![CDATA[dev]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[dictionary]]></category>
		<category><![CDATA[string]]></category>

		<guid isPermaLink="false">http://szc001.wordpress.com/?p=326</guid>
		<description><![CDATA[/** Today at work I had to find a neat way of mapping a string of parameters into a usable dictionary in Python.  Searching on the web didn&#8217;t reveal any results, so I had to get my hands dirty and figure it out for myself  */ { The data provided is in the form of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=szc001.wordpress.com&amp;blog=243717&amp;post=326&amp;subd=szc001&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>/**</strong> Today at work I had to find a neat way of mapping a string of parameters into a usable dictionary in Python.  Searching on the web didn&#8217;t reveal any results, so I had to get my hands dirty and figure it out for myself  <strong>*/</strong> <strong>{</strong></p>
<blockquote><p>The data provided is in the form of a string &#8220;option1=1 option2=2 option3=3&#8243;</p>
<p>The solution is quite neat and simple too&#8230;</p>
<p>value = &#8220;option1=1 option2=2 option3=3&#8243;</p>
<p>dict( map( lambda x: x.split(&#8220;=&#8221;), value.split()) ) )</p>
<p>Essentially this produces a list of lists which is then fed to the dict function as follows:</p>
<p>[['option1','1'],['option2','2'],['option3','3']]</p>
<p>Simple <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p></blockquote>
<p><strong>}</strong></p>
<br />Posted in dev, python, tips, tutorial Tagged: dictionary, python, string, tips <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/szc001.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/szc001.wordpress.com/326/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/szc001.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/szc001.wordpress.com/326/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/szc001.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/szc001.wordpress.com/326/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/szc001.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/szc001.wordpress.com/326/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/szc001.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/szc001.wordpress.com/326/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/szc001.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/szc001.wordpress.com/326/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/szc001.wordpress.com/326/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/szc001.wordpress.com/326/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=szc001.wordpress.com&amp;blog=243717&amp;post=326&amp;subd=szc001&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://szc001.wordpress.com/2009/02/09/python-mapping-a-string-to-a-dictionary/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/046a15cc051f1c2899d30aa392f5c028?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=X" medium="image">
			<media:title type="html">szc001</media:title>
		</media:content>
	</item>
		<item>
		<title>Java Performance Tuning</title>
		<link>http://szc001.wordpress.com/2008/08/28/java-performance-tuning/</link>
		<comments>http://szc001.wordpress.com/2008/08/28/java-performance-tuning/#comments</comments>
		<pubDate>Thu, 28 Aug 2008 14:49:37 +0000</pubDate>
		<dc:creator>Stefan Camilleri</dc:creator>
				<category><![CDATA[dev]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[performance tuning]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://szc001.wordpress.com/?p=324</guid>
		<description><![CDATA[/** The more we abstract, the more a performance hit we get.  Paraphrasing Mr Donald Knuth, having an efficient and elegant solution, is an oxymoronic claim */ So is it all lost?  I love code elegance, I find it exciting; and yes, I know that is a very geeky thing to say.  Even though Java [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=szc001.wordpress.com&amp;blog=243717&amp;post=324&amp;subd=szc001&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#999999;"><strong>/** </strong></span>The more we abstract, the more a performance hit we get.  Paraphrasing Mr Donald Knuth, having an efficient and elegant solution, is an oxymoronic claim <strong><span style="color:#999999;">*/</span></strong></p>
<p>So is it all lost?  I love code elegance, I find it exciting; and yes, I know that is a very geeky thing to say.  Even though Java is <em>potentially</em> one of the most elegant languages around nowadays, the myriad of frameworks and modular approaches available lead to levels of abstraction that definitely have a performance hit on the vm.</p>
<p>But not all is lost, <a href="http://www.javaperformancetuning.com/" target="_blank">Kirk Pepperdine</a>, who as most Java people know, is a top <a href="https://java-champions.dev.java.net/" target="_blank">Java Champion</a>, wrote an interesting article about this on sun.com <strong><span style="color:#999999;">{</span></strong></p>
<p style="padding-left:30px;">I invite you all to hop over and have a look.  The tips in here are not totally specific to Java, so you can learn a lot from this.</p>
<p style="padding-left:30px;"><a title="A Conversation With Java Champion Kirk Pepperdine" href="http://java.sun.com/developer/technicalArticles/Interviews/community/pepperdine_qa.html" target="_blank">http://java.sun.com/developer/technicalArticles/Interviews/community/pepperdine_qa.html</a></p>
<p><strong><span style="color:#999999;">}</span></strong></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/szc001.wordpress.com/324/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/szc001.wordpress.com/324/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/szc001.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/szc001.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/szc001.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/szc001.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/szc001.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/szc001.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/szc001.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/szc001.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/szc001.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/szc001.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/szc001.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/szc001.wordpress.com/324/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/szc001.wordpress.com/324/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/szc001.wordpress.com/324/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=szc001.wordpress.com&amp;blog=243717&amp;post=324&amp;subd=szc001&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://szc001.wordpress.com/2008/08/28/java-performance-tuning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/046a15cc051f1c2899d30aa392f5c028?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=X" medium="image">
			<media:title type="html">szc001</media:title>
		</media:content>
	</item>
		<item>
		<title>visual studio 2008 sp1</title>
		<link>http://szc001.wordpress.com/2008/08/12/visual-studio-2008-sp1/</link>
		<comments>http://szc001.wordpress.com/2008/08/12/visual-studio-2008-sp1/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 23:37:26 +0000</pubDate>
		<dc:creator>Stefan Camilleri</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[service pack]]></category>

		<guid isPermaLink="false">http://szc001.wordpress.com/?p=315</guid>
		<description><![CDATA[/** Visual Studio 2008 Service Pack 1 is finally out */ More info on my friend&#8217;s blog { http://marlongrech.wordpress.com/2008/08/11/visual-studio-2008-net-35-sp1-is-out-now/ }<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=szc001.wordpress.com&amp;blog=243717&amp;post=315&amp;subd=szc001&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong><span style="color:#808080;">/** </span></strong>Visual Studio 2008 Service Pack 1 is finally out <strong><span style="color:#808080;">*/</span></strong></p>
<p>More info on my friend&#8217;s blog <span style="color:#808080;"><strong>{</strong></span></p>
<p style="padding-left:30px;"><a href="http://marlongrech.wordpress.com/2008/08/11/visual-studio-2008-net-35-sp1-is-out-now/" target="_blank">http://marlongrech.wordpress.com/2008/08/11/visual-studio-2008-net-35-sp1-is-out-now/</a></p>
<p><strong><span style="color:#808080;">}</span></strong></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/szc001.wordpress.com/315/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/szc001.wordpress.com/315/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/szc001.wordpress.com/315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/szc001.wordpress.com/315/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/szc001.wordpress.com/315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/szc001.wordpress.com/315/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/szc001.wordpress.com/315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/szc001.wordpress.com/315/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/szc001.wordpress.com/315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/szc001.wordpress.com/315/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/szc001.wordpress.com/315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/szc001.wordpress.com/315/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/szc001.wordpress.com/315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/szc001.wordpress.com/315/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/szc001.wordpress.com/315/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/szc001.wordpress.com/315/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=szc001.wordpress.com&amp;blog=243717&amp;post=315&amp;subd=szc001&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://szc001.wordpress.com/2008/08/12/visual-studio-2008-sp1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/046a15cc051f1c2899d30aa392f5c028?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=X" medium="image">
			<media:title type="html">szc001</media:title>
		</media:content>
	</item>
		<item>
		<title>regular expressions (a.k.a. regEx) tutorial #1</title>
		<link>http://szc001.wordpress.com/2008/08/10/regular-expressions-aka-regex-tutorial-1/</link>
		<comments>http://szc001.wordpress.com/2008/08/10/regular-expressions-aka-regex-tutorial-1/#comments</comments>
		<pubDate>Sun, 10 Aug 2008 21:59:06 +0000</pubDate>
		<dc:creator>Stefan Camilleri</dc:creator>
				<category><![CDATA[dev]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[regular expressions]]></category>

		<guid isPermaLink="false">http://szc001.wordpress.com/?p=307</guid>
		<description><![CDATA[/** Over the past few years, many developers have commented about their lack of understanding on how regular expressions (regEx) are written; yet all admit how helpful it would be to them if they knew how to create them */ I am therefore going to jot down a quick &#8216;teach yourself in 5 minutes&#8217; for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=szc001.wordpress.com&amp;blog=243717&amp;post=307&amp;subd=szc001&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#808080;"><strong>/**</strong></span> Over the past few years, many developers have commented about their lack of understanding on how regular expressions (<acronym title="Regular Expression">regEx</acronym>) are written; yet all admit how helpful it would be to them if they knew how to create them <span style="color:#808080;"><strong>*/</strong></span></p>
<p>I am therefore going to jot down a quick &#8216;teach yourself in 5 minutes&#8217; for the basic <acronym title="Regular Expression">regEx</acronym> expressions.  I will not go into too much detail, since most advanced features are not used anyway on a day to day basis, yet the most simple of <acronym title="Regular Expression">regEx</acronym> can be really helpful in coding, even for simple search and replace operations in your <acronym title="Integrated Development Environment">IDE</acronym>.  I assure you that once you get the hang of them, you will fall in love (as I have) <strong><span style="color:#808080;">{</span></strong></p>
<h3 style="padding-left:30px;">The Basics</h3>
<p style="padding-left:30px;"><acronym title="Regular Expression">regEx</acronym> is basically a pattern search, most would already know this, but I&#8217;m just stating it just in case.  As in the find menu, you would enter the word you are looking for, in actuality, that word is a pattern.</p>
<p style="padding-left:30px;">For this tutorial, I&#8217;ll use a mnemonic which I like -&gt; &#8216;Californians Like Girls in Small Bikinis&#8217; (well not only Californians maybe <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> )</p>
<p style="padding-left:30px;">I will be using Javascript notation for the <acronym title="Regular Expression">regEx</acronym> here, yet you can use this in any other engine by omitting the / from the start and end of the expression.</p>
<p style="padding-left:30px;">I&#8217;m going to try not to overload my tutorial with tech explanations like lexicons and tokens, or how we could break this down using <acronym title="Bachus-Naur Form">BNF</acronym>, since I&#8217;m pretty sure that anyone familiar with them can figure them out for themselves.</p>
<p style="padding-left:30px;">The structure I&#8217;m using is:    /Regular Expression/   -&gt;   Matches <span style="color:#ff0000;"><strong>highlighted </strong></span>in my mnemonic<br />
Followed by a brief explanation.</p>
<h4 style="padding-left:30px;">Simple literal <acronym title="Regular Expression">regEx</acronym> match</h4>
<ol>
<li>/al/ -&gt; C<strong><span style="color:#ff0000;">al</span></strong>ifornians Like Girls in Sm<span style="color:#0000ff;"><strong>al</strong></span>l Bikinis</li>
<li>/ni/ -&gt; Califor<strong><span style="color:#ff0000;">ni</span></strong>ans Like Girls in Small Biki<span style="color:#0000ff;"><strong>ni</strong></span>s</li>
</ol>
<p style="padding-left:30px;">In this case, this is a simple match, returning the instances of the searched token.  The expression will match the first instance, the blue instance is returned on subsequent matches.</p>
<p style="padding-left:30px;"><strong>Simple wildcard <acronym title="Regular Expression">regEx</acronym> match</strong></p>
<ol>
<li>/.al/ -&gt; <strong><span style="color:#ff0000;">Cal</span></strong>ifornians Like Girls in S<strong><span style="color:#0000ff;">mal</span></strong>l Bikinis</li>
<li>/ni./ -&gt; Califor<strong><span style="color:#ff0000;">nia</span></strong>ns Like Girls in Small Biki<strong><span style="color:#0000ff;">nis</span></strong></li>
</ol>
<p style="padding-left:30px;">Here we introduce the <strong>.</strong> wildcard.  This means &#8216;any character&#8217;.   So the first term matches &#8216;any character followed by a and l.</p>
<h4 style="padding-left:30px;">Unbound repetition of patterns</h4>
<ol>
<li>/.*al/ -&gt; <span style="color:#ff0000;"><strong>Californians Like Girls in Smal</strong></span>l Bikinis</li>
<li>/ni.*/ -&gt; Califor<strong><span style="color:#ff0000;">nians Like Girls in Small Bikinis</span></strong></li>
<li>/.*Cal/ -&gt; <strong><span style="color:#ff0000;">Cal</span></strong>ifornians Like Girls in Small Bikinis</li>
</ol>
<p style="padding-left:30px;">The <strong>*</strong> symbol is what we call the &#8216;Kleene Closure&#8217;, this means &#8217;0 or more instances of&#8217;, so what we are searching for here is &#8217;0 or more instances of any character followed by al&#8217;.</p>
<p style="padding-left:30px;">Note that in the first instance, the second al is matched, not the first, since the <acronym title="Regular Expression">regEx</acronym> acts on the whole line.  Also note the third example, since we state &#8216;<strong>0</strong> or more&#8217;, &#8216;Cal&#8217; is still matched.</p>
<h4 style="padding-left:30px;">One-or-More repetition</h4>
<ol>
<li>/.+al/ -&gt; <strong><span style="color:#ff0000;">Californians Like Girls in Smal</span></strong>l Bikinis</li>
<li>/ni.+/ -&gt; Califor<strong><span style="color:#ff0000;">nians Like Girls in Small Bikinis</span></strong></li>
<li>/.+Cal/ -&gt; Californians Like Girls in Small Bikinis</li>
</ol>
<p style="padding-left:30px;">This is exactly like the previous example, with one difference, the <strong>+</strong> means &#8217;1 or more&#8217;, so in the third example, nothing is matched, since there is no instance of any character followed by &#8216;Cal&#8217;</p>
<h4 style="padding-left:30px;">Character classes</h4>
<ol>
<li>/[Cm]al/ -&gt; <strong><span style="color:#ff0000;">Cal</span></strong>ifornians Like Girls in S<strong><span style="color:#0000ff;">mal</span></strong>l Bikinis</li>
<li>/ni[ai]/ -&gt; Califor<strong><span style="color:#ff0000;">nia</span></strong>ns Like Girls in Small Bikinis</li>
</ol>
<p style="padding-left:30px;">The <strong>[ ]</strong> denote a character class.  This means &#8216;any one of these characters&#8217;.  So in the first case, we are looking for a &#8216;C&#8217; or an &#8216;m&#8217; followed by &#8216;al&#8217;, which gives us two matches.  You can see why the second one only returns one match.</p>
<h4 style="padding-left:30px;">Negated character classes</h4>
<ol>
<li>/[^Cx]al/ -&gt; Californians Like Girls in S<strong><span style="color:#ff0000;">mal</span></strong>l Bikinis</li>
<li>/ni[^ai]/ -&gt; Californians Like Girls in Small Biki<strong><span style="color:#ff0000;">nis</span></strong></li>
</ol>
<p style="padding-left:30px;">This is the negation of the previous example.  The <strong>^</strong> at the start of character class means &#8216;anything that isn&#8217;t on of these characters&#8217;.</p>
<p style="padding-left:30px;">It is important that the <strong>^</strong> is within the <strong>[  ]</strong></p>
<h4 style="padding-left:30px;">Start of sentence</h4>
<ol>
<li>/^Californians/ -&gt; <strong><span style="color:#ff0000;">Californians</span></strong> Like Girls in Small Bikinis</li>
<li>/^Bikinis/ -&gt; Californians Like Girls in Small Bikinis</li>
</ol>
<p style="padding-left:30px;">The <strong>^</strong> at the start of a <acronym title="Regular Expression">regEx</acronym> means &#8216;start of string&#8217;, so we are looking for the &#8216;start of a string followed by a C, and a, etc&#8230;</p>
<h4 style="padding-left:30px;">End of sentence</h4>
<ol>
<li>/Californians$/ -&gt; Californians Like Girls in Small Bikinis</li>
<li>/Bikinis$/ -&gt; Californians Like Girls in Small <strong><span style="color:#ff0000;">Bikinis</span></strong></li>
</ol>
<p style="padding-left:30px;">The <strong>$</strong> in this case matches the &#8216;end of a string&#8217;</p>
<p><strong><span style="color:#808080;">}</span></strong></p>
<p>That will be all for this tutorial.  There will be other tutorials to follow this, which I will add to this post as links once I create them.</p>
<p>Any feedback would be appreciated.</p>
<p>Tutorials <acronym title="Table of Contents">ToC</acronym>:</p>
<ol>
<li>The Basics (this tutorial)</li>
<li>Shortcuts</li>
<li>Search and Replace (matching groups)</li>
<li>Saving memory, and shortening your <acronym title="Regular Expression">regEx</acronym></li>
<li>Advanced: Positive and Negative lookahead and lookbehind.</li>
<li>A quick&#8217;n dirty way to test <acronym title="Regular Expression">regEx</acronym>, as well as examples in C#, Java, VB and JavaScript</li>
</ol>
<p><span style="color:#c0c0c0;">p.s. for anyone curious as to what that mnemonic is for, it is basically used to remember the 5 layers of the epidermis, starting from the lower layer. i.e. corneum, licidum, granulosum, spinosum and basale.</span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/szc001.wordpress.com/307/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/szc001.wordpress.com/307/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/szc001.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/szc001.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/szc001.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/szc001.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/szc001.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/szc001.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/szc001.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/szc001.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/szc001.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/szc001.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/szc001.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/szc001.wordpress.com/307/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/szc001.wordpress.com/307/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/szc001.wordpress.com/307/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=szc001.wordpress.com&amp;blog=243717&amp;post=307&amp;subd=szc001&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://szc001.wordpress.com/2008/08/10/regular-expressions-aka-regex-tutorial-1/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/046a15cc051f1c2899d30aa392f5c028?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=X" medium="image">
			<media:title type="html">szc001</media:title>
		</media:content>
	</item>
		<item>
		<title>tutorial deployment in progress&#8230;</title>
		<link>http://szc001.wordpress.com/2008/08/06/tutorial-deployment-in-progress/</link>
		<comments>http://szc001.wordpress.com/2008/08/06/tutorial-deployment-in-progress/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 01:02:28 +0000</pubDate>
		<dc:creator>Stefan Camilleri</dc:creator>
				<category><![CDATA[dev]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://szc001.wordpress.com/?p=303</guid>
		<description><![CDATA[/** I recently realised that many a time we tend to forget the most fundamental of tasks in the language we use on a daily basis */ In most cases, this is more due to the fact that our IDE&#8216;s tend to make life so easy for us, that we tend to lose touch with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=szc001.wordpress.com&amp;blog=243717&amp;post=303&amp;subd=szc001&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#808080;"><strong>/**</strong></span> I recently realised that many a time we tend to forget the most fundamental of tasks in the language we use on a daily basis <span style="color:#808080;"><strong>*/</strong></span></p>
<p>In most cases, this is more due to the fact that our <acronym title="Integrated Development Environment">IDE</acronym>&#8216;s tend to make life so easy for us, that we tend to lose touch with the most routine stuff, like create a <acronym title="Web ARchive">WAR</acronym> file manually, or creating mappings for our <acronym title="Object Relational Mapping">ORM</acronym> of choice <span style="color:#808080;"><strong>{</strong></span></p>
<p style="padding-left:30px;">I shall therefore start jotting down notes on how to perform these most mundane of tasks, so as to keep a handy reference which I can come back to should I wake up one morning and not find any coffee available throughout the entire island <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="padding-left:30px;">For starters this will be mostly focused on Java technologies, since this is my daily lingo, yet there will also be excerpts of other lingos such as C#, PHP and JavaScript&#8230; amongst others (though I <em>seriously</em> doubt there will be any/much VB)</p>
<p><strong><span style="color:#808080;">}</span></strong></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/szc001.wordpress.com/303/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/szc001.wordpress.com/303/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/szc001.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/szc001.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/szc001.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/szc001.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/szc001.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/szc001.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/szc001.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/szc001.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/szc001.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/szc001.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/szc001.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/szc001.wordpress.com/303/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/szc001.wordpress.com/303/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/szc001.wordpress.com/303/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=szc001.wordpress.com&amp;blog=243717&amp;post=303&amp;subd=szc001&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://szc001.wordpress.com/2008/08/06/tutorial-deployment-in-progress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/046a15cc051f1c2899d30aa392f5c028?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=X" medium="image">
			<media:title type="html">szc001</media:title>
		</media:content>
	</item>
		<item>
		<title>date validation regular expression (improved formula catering for leap years and correct days in month)</title>
		<link>http://szc001.wordpress.com/2008/08/06/date-validation-regular-expression-improved-formula/</link>
		<comments>http://szc001.wordpress.com/2008/08/06/date-validation-regular-expression-improved-formula/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 23:48:09 +0000</pubDate>
		<dc:creator>Stefan Camilleri</dc:creator>
				<category><![CDATA[dev]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://szc001.wordpress.com/?p=296</guid>
		<description><![CDATA[/** A friend of mine, João, very kindly pointed out a flaw in my date regex posted previously; the inability to validate the correct number of days in a month (30 or 31) */ Well, consider it done, this regex will now correctly validate days in a month as it should be (next I&#8217;ll try [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=szc001.wordpress.com&amp;blog=243717&amp;post=296&amp;subd=szc001&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#888888;"><strong>/**</strong></span> A friend of mine, João, very kindly pointed out a flaw in my date regex posted previously; the inability to validate the correct number of days in a month (30 or 31) <span style="color:#808080;"><strong>*/</strong></span></p>
<p>Well, consider it done, this regex will now correctly validate days in a month as it should be <span style="text-decoration:line-through;">(next I&#8217;ll try to cater for leap years)</span> <strong><span style="color:#808080;">{</span></strong></p>
<p style="padding-left:30px;">Date format is dd/mm/yy or dd/mm/yyyy (if you need US support let me know).  Also note, that this regex does not use any lookbehind, so it should also work perfectly in JavaScript (which is probably where regex is used most anyway)</p>
<p style="padding-left:30px;"><code>^(?:(?:0?[1-9])|(?:[12]\d)|(?:3(?:(?:0)|(?:1(?![\\.-/](?:(?:0?[2469])|(?:11))))))(?!(?:[\\.-/]\d{1,2}[\\.-/])(?:(?:[02468][048]00)|(?:(?:\d{2})?(?:(?:[2468][048])|(?:[13579][26])|(?:0[48]))))))[\\.-/](?:(?:0?[1-9])|(?:1[0-2]))[\\.-/](?:(?:\d{2})|(?:1\d{3})|(?:\d1\d{2})|(?:\d{2}1\d)|(?:\d{3}1))$</code></p>
<p><span style="color:#808080;"><strong>}</strong></span></p>
<p>p.s. inevitably there will be bugs&#8230; so if you find any, let me know!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/szc001.wordpress.com/296/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/szc001.wordpress.com/296/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/szc001.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/szc001.wordpress.com/296/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/szc001.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/szc001.wordpress.com/296/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/szc001.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/szc001.wordpress.com/296/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/szc001.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/szc001.wordpress.com/296/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/szc001.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/szc001.wordpress.com/296/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/szc001.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/szc001.wordpress.com/296/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/szc001.wordpress.com/296/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/szc001.wordpress.com/296/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=szc001.wordpress.com&amp;blog=243717&amp;post=296&amp;subd=szc001&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://szc001.wordpress.com/2008/08/06/date-validation-regular-expression-improved-formula/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/046a15cc051f1c2899d30aa392f5c028?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=X" medium="image">
			<media:title type="html">szc001</media:title>
		</media:content>
	</item>
		<item>
		<title>cheat sheets</title>
		<link>http://szc001.wordpress.com/2008/07/30/cheat-sheets/</link>
		<comments>http://szc001.wordpress.com/2008/07/30/cheat-sheets/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 18:06:37 +0000</pubDate>
		<dc:creator>Stefan Camilleri</dc:creator>
				<category><![CDATA[dev]]></category>
		<category><![CDATA[shortcuts]]></category>

		<guid isPermaLink="false">http://szc001.wordpress.com/?p=283</guid>
		<description><![CDATA[/** All developers are polyglots, but we are not gods */ That&#8217;s when cheat sheets come in handy { My Portuguese friend João posted this very handy link on his blog, and I thought it worthy of sharing }<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=szc001.wordpress.com&amp;blog=243717&amp;post=283&amp;subd=szc001&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong><span style="color:#808080;">/**</span> </strong>All developers are polyglots, but we are not gods <strong><span style="color:#888888;">*/</span></strong></p>
<p>That&#8217;s when cheat sheets come in handy {</p>
<p style="padding-left:30px;">My Portuguese friend <a title="using System.Reflection;" href="http://caxaria.wordpress.com/" target="_blank">João</a> posted this very handy link on his blog, and I thought it worthy of sharing</p>
<div id="attachment_284" class="wp-caption aligncenter" style="width: 59px"><a href="http://sixrevisions.com/resources/cheat_sheets_web_developer/"><img class="size-full wp-image-284" src="http://szc001.files.wordpress.com/2008/07/cheatsheets.jpg?w=49&#038;h=345" alt="Cheat Sheets" width="49" height="345" /></a><p class="wp-caption-text">Cheat Sheets</p></div>
<p>}</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/szc001.wordpress.com/283/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/szc001.wordpress.com/283/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/szc001.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/szc001.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/szc001.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/szc001.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/szc001.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/szc001.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/szc001.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/szc001.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/szc001.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/szc001.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/szc001.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/szc001.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/szc001.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/szc001.wordpress.com/283/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=szc001.wordpress.com&amp;blog=243717&amp;post=283&amp;subd=szc001&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://szc001.wordpress.com/2008/07/30/cheat-sheets/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/046a15cc051f1c2899d30aa392f5c028?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=X" medium="image">
			<media:title type="html">szc001</media:title>
		</media:content>

		<media:content url="http://szc001.files.wordpress.com/2008/07/cheatsheets.jpg" medium="image">
			<media:title type="html">Cheat Sheets</media:title>
		</media:content>
	</item>
		<item>
		<title>date validation regular expression</title>
		<link>http://szc001.wordpress.com/2008/07/30/date-validation-regular-expression/</link>
		<comments>http://szc001.wordpress.com/2008/07/30/date-validation-regular-expression/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 13:22:48 +0000</pubDate>
		<dc:creator>Stefan Camilleri</dc:creator>
				<category><![CDATA[dev]]></category>
		<category><![CDATA[regex]]></category>

		<guid isPermaLink="false">http://szc001.wordpress.com/?p=277</guid>
		<description><![CDATA[/** Here is some handy regex to validate a date using british locale (dd/mm/yy or dd/mm/yyyy) */ Note, this allows / \ . or &#8211; as delimiters { ^(?:(?:0?[1-9])&#124;(?:[1-2]\d)&#124;(?:3[0-1]))[-.\\/](?:(?:0?[1-9])&#124;(?:1[0-2]))[-.\\/](?:(?:\d{3}[1-9])&#124;(?:\d{2}[1-9]\d)&#124;(?:\d[1-9]\d{2})&#124;(?:[1-9]\d{3})&#124;(?:\d{2}))$ } p.s. this regex has now been superseded with an improved version here<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=szc001.wordpress.com&amp;blog=243717&amp;post=277&amp;subd=szc001&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong><span style="color:#888888;">/**</span></strong> Here is some handy regex to validate a date using british locale (dd/mm/yy or dd/mm/yyyy) <strong><span style="color:#888888;">*/</span></strong></p>
<p>Note, this allows / \ . or &#8211; as delimiters <strong><span style="color:#888888;">{</span></strong></p>
<p style="padding-left:30px;"><code>^(?:(?:0?[1-9])|(?:[1-2]\d)|(?:3[0-1]))[-.\\/](?:(?:0?[1-9])|(?:1[0-2]))[-.\\/](?:(?:\d{3}[1-9])|(?:\d{2}[1-9]\d)|(?:\d[1-9]\d{2})|(?:[1-9]\d{3})|(?:\d{2}))$</code></p>
<p><span style="color:#888888;"><strong>}</strong></span></p>
<p>p.s. this regex has now been superseded with an improved version <a href="http://szc001.wordpress.com/2008/08/06/date-validation-regular-expression-improved-formula/">here</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/szc001.wordpress.com/277/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/szc001.wordpress.com/277/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/szc001.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/szc001.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/szc001.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/szc001.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/szc001.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/szc001.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/szc001.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/szc001.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/szc001.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/szc001.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/szc001.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/szc001.wordpress.com/277/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/szc001.wordpress.com/277/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/szc001.wordpress.com/277/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=szc001.wordpress.com&amp;blog=243717&amp;post=277&amp;subd=szc001&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://szc001.wordpress.com/2008/07/30/date-validation-regular-expression/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/046a15cc051f1c2899d30aa392f5c028?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=X" medium="image">
			<media:title type="html">szc001</media:title>
		</media:content>
	</item>
		<item>
		<title>force browser to download a file</title>
		<link>http://szc001.wordpress.com/2008/07/30/force-browser-to-download-a-file/</link>
		<comments>http://szc001.wordpress.com/2008/07/30/force-browser-to-download-a-file/#comments</comments>
		<pubDate>Wed, 30 Jul 2008 11:28:53 +0000</pubDate>
		<dc:creator>Stefan Camilleri</dc:creator>
				<category><![CDATA[dev]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://szc001.wordpress.com/?p=267</guid>
		<description><![CDATA[/** A common problem which I have come across multiple times in the past is that of forcing a browser (any browser) to download a file rather than try to open it. */ There&#8217;s a myriad of solutions out there on the web discussing this very issue, and I never gave much thought to it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=szc001.wordpress.com&amp;blog=243717&amp;post=267&amp;subd=szc001&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#808080;"><strong>/**</strong></span> A common problem which I have come across multiple times in the past is that of forcing a browser (any browser) to download a file rather than try to open it. <strong><span style="color:#808080;">*/</span></strong></p>
<p>There&#8217;s a myriad of solutions out there on the web discussing this very issue, and I never gave much thought to it until yesterday. <span style="color:#808080;"><strong>{</strong></span></p>
<p style="padding-left:30px;">I came across an excrept of code at my client which was trying to send a csv file to the client (i.e. the client pc), yet the browser (all flavours) insisted on trying to render it, rather than download it.</p>
<p style="padding-left:30px;">The solution turned out to be particularly simple; something we all learnt how to do very well when we wanted some sweets as kids&#8230; i.e. <span style="color:#ff0000;">LIE</span> (to the browser this time)</p>
<p style="padding-left:30px;">All you have to do is set the content type to <span style="color:#000080;">application/binary</span> and the browser will simply not bother trying to do anything with it.</p>
<p style="padding-left:30px;">Here&#8217;s the magic expression in Java, yet of course this also applies to any other lingo (and if you have a problem, ask me, tell me your language, and if I can, I&#8217;ll show you how).</p>
<pre style="padding-left:30px;">
<pre class="brush: java;">response.setContentType(&quot;application/binary&quot;);</pre>
<p style="padding-left:30px;">NOTE: IE works slightly different from other browsers (what's new?), in that if you cancel the download, it will close the socket throwing an exception on the server.  You of course will need to cater for this.</p>
<p><strong><span style="color:#808080;">}</span></strong></pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/szc001.wordpress.com/267/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/szc001.wordpress.com/267/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/szc001.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/szc001.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/szc001.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/szc001.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/szc001.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/szc001.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/szc001.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/szc001.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/szc001.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/szc001.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/szc001.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/szc001.wordpress.com/267/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/szc001.wordpress.com/267/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/szc001.wordpress.com/267/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=szc001.wordpress.com&amp;blog=243717&amp;post=267&amp;subd=szc001&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://szc001.wordpress.com/2008/07/30/force-browser-to-download-a-file/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/046a15cc051f1c2899d30aa392f5c028?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=X" medium="image">
			<media:title type="html">szc001</media:title>
		</media:content>
	</item>
		<item>
		<title>ridiculous()</title>
		<link>http://szc001.wordpress.com/2008/07/16/ridiculous/</link>
		<comments>http://szc001.wordpress.com/2008/07/16/ridiculous/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 15:41:13 +0000</pubDate>
		<dc:creator>Stefan Camilleri</dc:creator>
				<category><![CDATA[aesthetics]]></category>
		<category><![CDATA[architecture]]></category>
		<category><![CDATA[dev]]></category>

		<guid isPermaLink="false">http://szc001.wordpress.com/?p=263</guid>
		<description><![CDATA[/** When I just realise that no matter what, I can never cease to be amazed */ I&#8217;m working on some code right now, fixing up some system changes, and I have come across lots of crap, but this one tops it all IMHO { 400 lines of undocumented code in one method! Go figure&#8230; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=szc001.wordpress.com&amp;blog=243717&amp;post=263&amp;subd=szc001&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#808080;"><strong>/** </strong></span>When I just realise that no matter what, I can never cease to be amazed <strong><span style="color:#808080;">*/</span></strong></p>
<p>I&#8217;m working on some code right now, fixing up some system changes, and I have come across lots of crap, but this one tops it all IMHO <strong><span style="color:#808080;">{</span></strong></p>
<p style="padding-left:30px;"><strong>400</strong> lines of <em>undocumented<strong> </strong></em>code in <em>one</em> method!</p>
<p style="padding-left:30px;">Go figure&#8230; and here I was thinking I was a crappy programmer when I was 20 since I used to commonly put around 50 to a 100 lines of code in my methods.</p>
<p><strong><span style="color:#808080;">}</span></strong></p>
<p>Oh well&#8230; just one of those nuisances you know.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/szc001.wordpress.com/263/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/szc001.wordpress.com/263/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/szc001.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/szc001.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/szc001.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/szc001.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/szc001.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/szc001.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/szc001.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/szc001.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/szc001.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/szc001.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/szc001.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/szc001.wordpress.com/263/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/szc001.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/szc001.wordpress.com/263/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=szc001.wordpress.com&amp;blog=243717&amp;post=263&amp;subd=szc001&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://szc001.wordpress.com/2008/07/16/ridiculous/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/046a15cc051f1c2899d30aa392f5c028?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=X" medium="image">
			<media:title type="html">szc001</media:title>
		</media:content>
	</item>
		<item>
		<title>posting code in wordpress</title>
		<link>http://szc001.wordpress.com/2008/07/13/posting-code-in-wordpress/</link>
		<comments>http://szc001.wordpress.com/2008/07/13/posting-code-in-wordpress/#comments</comments>
		<pubDate>Sun, 13 Jul 2008 03:31:47 +0000</pubDate>
		<dc:creator>Stefan Camilleri</dc:creator>
				<category><![CDATA[aesthetics]]></category>
		<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://szc001.wordpress.com/?p=258</guid>
		<description><![CDATA[/** Cruising the sea of blogs by the coding monkeys here on WordPress, I cannot fail to realise that there is a good bunch of people out there who have not yet discovered how to use the wordpress way of pasting code into their blogs */ So, in the hope that some will actually read [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=szc001.wordpress.com&amp;blog=243717&amp;post=258&amp;subd=szc001&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#888888;"><strong>/**</strong></span> Cruising the sea of blogs by the coding monkeys here on WordPress, I cannot fail to realise that there is a good bunch of people out there who have not yet discovered how to use the wordpress way of pasting code into their blogs <strong><span style="color:#888888;">*/</span></strong></p>
<p>So, in the hope that some will actually read this and take advantage of it, here goes <strong><span style="color:#888888;">{</span></strong></p>
<p style="padding-left:30px;">Well, it is no rocket science really.  All you need to do is to enclose your code in a set of</p>
<p style="padding-left:30px;"><strong> </strong><em>put your code here </em><strong></p>
<p></strong>
</p>
<p style="padding-left:30px;">where &#8216;lingo&#8217; can be any one of <span style="color:#888888;"><strong>{</strong></span></p>
<blockquote>
<ul>
<li>cpp</li>
<li>csharp</li>
<li>css</li>
<li>delphi</li>
<li>html</li>
<li>java</li>
<li>jscript</li>
<li>php</li>
<li>python</li>
<li>ruby</li>
<li>sql</li>
<li>vb</li>
<li>xml</li>
</ul>
</blockquote>
<p style="padding-left:30px;"><span style="color:#888888;"><strong>}</strong></span></p>
<p><span style="color:#888888;"><strong>}</strong></span></p>
<p>Hope that helps <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<pre class="brush: xml;">&lt;h2&gt;Happy blogging&lt;/h2&gt;</pre>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/szc001.wordpress.com/258/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/szc001.wordpress.com/258/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/szc001.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/szc001.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/szc001.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/szc001.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/szc001.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/szc001.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/szc001.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/szc001.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/szc001.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/szc001.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/szc001.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/szc001.wordpress.com/258/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/szc001.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/szc001.wordpress.com/258/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=szc001.wordpress.com&amp;blog=243717&amp;post=258&amp;subd=szc001&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://szc001.wordpress.com/2008/07/13/posting-code-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/046a15cc051f1c2899d30aa392f5c028?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=X" medium="image">
			<media:title type="html">szc001</media:title>
		</media:content>
	</item>
		<item>
		<title>programmingFonts()</title>
		<link>http://szc001.wordpress.com/2008/07/12/programmingfonts/</link>
		<comments>http://szc001.wordpress.com/2008/07/12/programmingfonts/#comments</comments>
		<pubDate>Sat, 12 Jul 2008 22:38:46 +0000</pubDate>
		<dc:creator>Stefan Camilleri</dc:creator>
				<category><![CDATA[aesthetics]]></category>
		<category><![CDATA[dev]]></category>

		<guid isPermaLink="false">http://szc001.wordpress.com/?p=238</guid>
		<description><![CDATA[/** So, the never-ending debate as to which is the best typeface to use for programming has also started brewing in my brain. */ I found tons of posts on-line debating what was the best font, and for one, I always felt that Microsoft&#8217;s Consolas was by far the best programming font around (and technically [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=szc001.wordpress.com&amp;blog=243717&amp;post=238&amp;subd=szc001&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#808080;"><strong>/**</strong></span> So, the never-ending debate as to which is the best typeface to use for programming has also started brewing in my brain. <span style="color:#808080;"><strong>*/</strong></span></p>
<p>I found tons of posts on-line debating what was the best font, and for one, I always felt that Microsoft&#8217;s Consolas was by far the best programming font around (and technically it is <em>almost, but not quite</em>, <em>entirely like</em> the best coding font around).</p>
<p>To summarize what sparks the requirement of such a font, it basically boils down to <span style="color:#808080;"><strong>{</strong></span></p>
<ol>
<li>Programmers like fonts that look good at SMALL point sizes.  Not because we are masochists (well some of us probably are), but because we want to see <em>as much code as possible</em> on one screen.  Which would also explain the phenomenon of why all programmers push their graphics cards to the highest resolutions possible (oh yes, and it also looks <em>gorgeous</em> on a hi-def lcd).</li>
<li>We spend hours on end reading funny words that make sense solely to us and to lexical analyzers, so we need the font to be VERY legible, and to distinguish clearly among similar characters like 0,O,o, ilL1&#8230; among others (oh yes, and the myth is true, most developers, after a full day of code, go home to see&#8230;more&#8230;code!)</li>
<li>We use words like &#8216;sexy&#8217;, &#8216;perfect&#8217; and &#8216;elegant&#8217; to describe an algorithm, so we should also be able to use such terms to describe the font we use to write such algorithms in.</li>
</ol>
<p><span style="color:#808080;"><strong>}</strong></span></p>
<p>So, to cut it short, here are the contestants <span style="color:#808080;"><strong>{</strong></span></p>
<ol>
<li>
<p><div id="attachment_246" class="wp-caption alignnone" style="width: 310px"><a href="http://szc001.files.wordpress.com/2008/07/proggytiny10pt.jpg"><img class="size-medium wp-image-246" src="http://szc001.files.wordpress.com/2008/07/proggytiny10pt.jpg?w=300&#038;h=87" alt="Proggy Tiny 10pt" width="300" height="87" /></a><p class="wp-caption-text">Proggy Tiny 10pt</p></div></li>
<li>
<p><div id="attachment_245" class="wp-caption alignnone" style="width: 310px"><a href="http://szc001.files.wordpress.com/2008/07/profont7pt.jpg"><img class="size-medium wp-image-245" src="http://szc001.files.wordpress.com/2008/07/profont7pt.jpg?w=300&#038;h=105" alt="ProFont 7pt" width="300" height="105" /></a><p class="wp-caption-text">ProFont 7pt</p></div></li>
<li>
<p><div id="attachment_244" class="wp-caption alignnone" style="width: 310px"><a href="http://szc001.files.wordpress.com/2008/07/envycoder7pt.jpg"><img class="size-medium wp-image-244" src="http://szc001.files.wordpress.com/2008/07/envycoder7pt.jpg?w=300&#038;h=127" alt="Envy Code R 7pt" width="300" height="127" /></a><p class="wp-caption-text">Envy Code R 7pt</p></div></li>
<li>
<p><div id="attachment_243" class="wp-caption alignnone" style="width: 310px"><a href="http://szc001.files.wordpress.com/2008/07/droidsansmono7pt.jpg"><img class="size-medium wp-image-243" src="http://szc001.files.wordpress.com/2008/07/droidsansmono7pt.jpg?w=300&#038;h=100" alt="Droid Sans Mono 7pt" width="300" height="100" /></a><p class="wp-caption-text">Droid Sans Mono 7pt</p></div></li>
<li>
<p><div id="attachment_242" class="wp-caption alignnone" style="width: 310px"><a href="http://szc001.files.wordpress.com/2008/07/couriernew8pt.jpg"><img class="size-medium wp-image-242" src="http://szc001.files.wordpress.com/2008/07/couriernew8pt.jpg?w=300&#038;h=118" alt="Courier New 8pt" width="300" height="118" /></a><p class="wp-caption-text">Courier New 8pt</p></div></li>
<li>
<p><div id="attachment_241" class="wp-caption alignnone" style="width: 310px"><a href="http://szc001.files.wordpress.com/2008/07/consolas8pt.jpg"><img class="size-medium wp-image-241" src="http://szc001.files.wordpress.com/2008/07/consolas8pt.jpg?w=300&#038;h=119" alt="Consolas 8pt" width="300" height="119" /></a><p class="wp-caption-text">Consolas 8pt</p></div></li>
<li>
<p><div id="attachment_240" class="wp-caption alignnone" style="width: 310px"><a href="http://szc001.files.wordpress.com/2008/07/bitstreamverasansmono8pt.jpg"><img class="size-medium wp-image-240" src="http://szc001.files.wordpress.com/2008/07/bitstreamverasansmono8pt.jpg?w=300&#038;h=103" alt="Bit Stream Vera Sans Mono 8pt" width="300" height="103" /></a><p class="wp-caption-text">Bit Stream Vera Sans Mono 8pt</p></div></li>
<li> <a href="http://szc001.files.wordpress.com/2008/07/anonymous7pt.jpg"><img class="size-medium wp-image-239" src="http://szc001.files.wordpress.com/2008/07/anonymous7pt.jpg?w=300" alt="Anonymous 7pt" /></a></li>
</ol>
<p><span style="color:#808080;"><strong>}</strong></span></p>
<p>And that is it really.  I have concluded that for now, after testing all these fonts, Consolas remains the one of choice for me.  ProFont was terribly inviting, yet the boldness of the font is just way too heavy in comparison to the normal formatting.</p>
<p>Now I&#8217;m just hoping to find a font which looks as good as Consolas does in 8pt, but at 7pt, since 8 is just a bit too big for my likes.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/szc001.wordpress.com/238/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/szc001.wordpress.com/238/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/szc001.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/szc001.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/szc001.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/szc001.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/szc001.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/szc001.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/szc001.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/szc001.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/szc001.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/szc001.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/szc001.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/szc001.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/szc001.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/szc001.wordpress.com/238/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=szc001.wordpress.com&amp;blog=243717&amp;post=238&amp;subd=szc001&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://szc001.wordpress.com/2008/07/12/programmingfonts/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/046a15cc051f1c2899d30aa392f5c028?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=X" medium="image">
			<media:title type="html">szc001</media:title>
		</media:content>

		<media:content url="http://szc001.files.wordpress.com/2008/07/proggytiny10pt.jpg?w=300" medium="image">
			<media:title type="html">Proggy Tiny 10pt</media:title>
		</media:content>

		<media:content url="http://szc001.files.wordpress.com/2008/07/profont7pt.jpg?w=300" medium="image">
			<media:title type="html">ProFont 7pt</media:title>
		</media:content>

		<media:content url="http://szc001.files.wordpress.com/2008/07/envycoder7pt.jpg?w=300" medium="image">
			<media:title type="html">Envy Code R 7pt</media:title>
		</media:content>

		<media:content url="http://szc001.files.wordpress.com/2008/07/droidsansmono7pt.jpg?w=277" medium="image">
			<media:title type="html">Droid Sans Mono 7pt</media:title>
		</media:content>

		<media:content url="http://szc001.files.wordpress.com/2008/07/couriernew8pt.jpg?w=300" medium="image">
			<media:title type="html">Courier New 8pt</media:title>
		</media:content>

		<media:content url="http://szc001.files.wordpress.com/2008/07/consolas8pt.jpg?w=300" medium="image">
			<media:title type="html">Consolas 8pt</media:title>
		</media:content>

		<media:content url="http://szc001.files.wordpress.com/2008/07/bitstreamverasansmono8pt.jpg?w=300" medium="image">
			<media:title type="html">Bit Stream Vera Sans Mono 8pt</media:title>
		</media:content>

		<media:content url="http://szc001.files.wordpress.com/2008/07/anonymous7pt.jpg?w=300" medium="image">
			<media:title type="html">Anonymous 7pt</media:title>
		</media:content>
	</item>
	</channel>
</rss>
