<?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>Josh's Blog</title>
	<atom:link href="http://jec006.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jec006.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Mon, 15 Sep 2008 01:07:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='jec006.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Josh's Blog</title>
		<link>http://jec006.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://jec006.wordpress.com/osd.xml" title="Josh&#039;s Blog" />
	<atom:link rel='hub' href='http://jec006.wordpress.com/?pushpress=hub'/>
		<item>
		<title>The atom of a molecule ?</title>
		<link>http://jec006.wordpress.com/2008/09/12/the-atom-of-a-molecule/</link>
		<comments>http://jec006.wordpress.com/2008/09/12/the-atom-of-a-molecule/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 05:03:56 +0000</pubDate>
		<dc:creator>jec006</dc:creator>
				<category><![CDATA[Musical Review]]></category>

		<guid isPermaLink="false">http://jec006.wordpress.com/?p=24</guid>
		<description><![CDATA[Well apparently my last post was a tad depressing for some folks. In an attempt to remedy the situation, and because it was stuck in my head for 3.5 minutes prior to me listening to something that could be describe as &#8216;music&#8217; (as opposed to rhythmic babbling with trumpet), I want to review the so-called [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jec006.wordpress.com&amp;blog=4145678&amp;post=24&amp;subd=jec006&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Well apparently my last post was a tad depressing for some folks.  In an attempt to remedy the situation, and because it was stuck in my head for 3.5 minutes prior to me listening to something that could be describe as &#8216;music&#8217; (as opposed to rhythmic babbling with trumpet), I want to review the so-called &#8216;song&#8217; &#8216;Handlebars&#8217; by the so-called band &#8216;Flobots&#8217; (aka &#8216;Linkin Park &#8211; Musical Quality &#8211; meaningful lyrics &#8211; good taste + annoying trumpet&#8217;).</p>
<p>This amalgamation of 2 crappy mc&#8217;s, some out of work violist (really, a violist ? Not even a violinist&#8230;) and some ridiculously out of place &#8216;jazz&#8217; trumpet player sounds exactly as bad as it sounds (that makes sense&#8230; trust me)</p>
<p>Anyway, they have this song, if you have had the radio on for more than 2 minutes in the past 4 months, you have probably heard it more than once, possibly more than more than once&#8230; maybe every four seconds.  It may even be getting old.  Its called &#8216;Handlebars&#8217;.  </p>
<p>Now this may sound like an inane, happy-go-lucky song about mustaches. But alas, these untalented musicians couldn&#8217;t stop at being terrible in their craft, they had to invade the realm of politics.  Now by invade I mean they charged the castle and drown in the moat.  Anyway, the song sucks.  There is really no nice things I could think of to say about it so I am just gonna tell you how I feel.</p>
<p>First off, the song makes no sense.  The majority of the song is about being able to do stupid stuff like ride a bike with no handlebars and keep rhythm with no metronome (omg you&#8217;re in a band&#8230;).  Then, in the middle, following some ridiculous trumpet solo that seems so out of place I thought my radio was broken, they go for Bush&#8217;s throat.  And fall 10 miles short.  Into a pit of poor diction, terrible science and a complete lack of understanding of World Issues.  We split atoms to create atomic/nuclear/nucular explosions, molecules have very little to do with it.  They don&#8217;t understand this.  Assassination specifically applies to political figures&#8230; you can&#8217;t assassinate the common folk.  Additionally, lacerations are generally minor.  You don&#8217;t die from them.  The song makes no sense.  Its ridiculous. Its off-topic, It rhymes words with themselves and nothing else.  It has unfitting trumpet solos&#8230;. I could go on.</p>
<p>In conclusion: Flobots are not my favorite band. </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jec006.wordpress.com/24/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jec006.wordpress.com/24/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jec006.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jec006.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jec006.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jec006.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jec006.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jec006.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jec006.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jec006.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jec006.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jec006.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jec006.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jec006.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jec006.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jec006.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jec006.wordpress.com&amp;blog=4145678&amp;post=24&amp;subd=jec006&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jec006.wordpress.com/2008/09/12/the-atom-of-a-molecule/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9fc53a798cef4ab2e1eec4eb0ab0ab99?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jec006</media:title>
		</media:content>
	</item>
		<item>
		<title>Redirecting using php</title>
		<link>http://jec006.wordpress.com/2008/08/15/redirecting-using-php/</link>
		<comments>http://jec006.wordpress.com/2008/08/15/redirecting-using-php/#comments</comments>
		<pubDate>Sat, 16 Aug 2008 03:24:24 +0000</pubDate>
		<dc:creator>jec006</dc:creator>
				<category><![CDATA[Websites]]></category>
		<category><![CDATA[delayed redirect]]></category>
		<category><![CDATA[Headers]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://jec006.wordpress.com/?p=18</guid>
		<description><![CDATA[I was looking around today for ways to redirect the browser window, and I found a few interesting ones that may come in handy. There is the standard way of sending the Header with a new location. This will immediately redirect the browser, meaning the redirect page is never seen. This can be a useful [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jec006.wordpress.com&amp;blog=4145678&amp;post=18&amp;subd=jec006&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was looking around today for ways to redirect the browser window, and I found a few interesting ones that may come in handy.</p>
<p>There is the standard way of sending the Header with a new location.  This will immediately redirect the browser, meaning the redirect page is never seen.  This can be a useful way for preventing unauthorized users from getting to a page you don&#8217;t want them to view (you should definately use die() or exit() to kill the script though, in case the redirect fails, and so that no data will be changed).<br />
<code>Header('Location:');</code></p>
<p>Note that Headers MUST be sent before any other data.  Meaning that if you want to send headers it needs to be before any html or output (echo, printf ect).</p>
<p>The different, and more interesting, way that I discovered today is using Header to do a delayed redirect.<br />
<code>Header('refresh: 5, url="page.php"');</code></p>
<p>The number is the number of seconds before the refresh, and the url is the page you want to redirect to.  This method will allow people view the content of the page before they are automatically redirected (to a download, away from a &#8216;Submission complete&#8217; page ect).</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jec006.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jec006.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jec006.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jec006.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jec006.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jec006.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jec006.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jec006.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jec006.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jec006.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jec006.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jec006.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jec006.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jec006.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jec006.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jec006.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jec006.wordpress.com&amp;blog=4145678&amp;post=18&amp;subd=jec006&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jec006.wordpress.com/2008/08/15/redirecting-using-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9fc53a798cef4ab2e1eec4eb0ab0ab99?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jec006</media:title>
		</media:content>
	</item>
		<item>
		<title>More SQL</title>
		<link>http://jec006.wordpress.com/2008/07/22/more-sql/</link>
		<comments>http://jec006.wordpress.com/2008/07/22/more-sql/#comments</comments>
		<pubDate>Wed, 23 Jul 2008 01:07:37 +0000</pubDate>
		<dc:creator>jec006</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[case-insensitive search]]></category>
		<category><![CDATA[LIKE]]></category>
		<category><![CDATA[UPPER]]></category>
		<category><![CDATA[WHERE]]></category>

		<guid isPermaLink="false">http://jec006.wordpress.com/?p=15</guid>
		<description><![CDATA[This is a quick addendum to the previous post about using LIKE in a WHERE clause. LIKE is treated in different ways depending on what database you are using, case sensitivity is a particular area where the differences can be seen and can become important.  MySQL for example, treats like as case-insensitive (you can set [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jec006.wordpress.com&amp;blog=4145678&amp;post=15&amp;subd=jec006&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a quick addendum to the previous post about using LIKE in a WHERE clause.</p>
<p>LIKE is treated in different ways depending on what database you are using, case sensitivity is a particular area where the differences can be seen and can become important.  MySQL for example, treats like as case-insensitive (you can set it to be case sensitive, but by default it ignores case &#8211; see <a title="http://dev.mysql.com/doc/refman/5.0/en/case-sensitivity.html" href="http://dev.mysql.com/doc/refman/5.0/en/case-sensitivity.html">http://dev.mysql.com/doc/refman/5.0/en/case-sensitivity.html</a> for more information).  But in many other database servers, for example Oracle, LIKE is case-sensitive by default.</p>
<p>While this may seem semi trivial (as I found out today) people often assume searches are case-insensitive and thus having a case sensitive query can be a big problem.</p>
<p>One way to get around this is to use the keyword UPPER to use an all uppercase version of the field to compare with the search string (which you should ensure is also all uppercase.  (LOWER may also be used to compare with all lowercase strings).</p>
<p><strong>It should be noted this is not a great method if you are searching a large database as it will perform a full-text search instead of utilizing indexes, thus increasing the time each query takes.</strong></p>
<p>An example:<br />
<code>SELECT * FROM tablename WHERE UPPER(lastname) LIKE '%SMITH%';<br />
or<br />
DELETE FROM tablename WHERE LOWER(firstname) LIKE '%john%';</code></p>
<p>Googling UPPER, sql will give you some other methods for case-insensitive searching that utilizes indexes and speeds things up.  This is just a base level fix that is useful for smaller databases/tables.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jec006.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jec006.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jec006.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jec006.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jec006.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jec006.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jec006.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jec006.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jec006.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jec006.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jec006.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jec006.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jec006.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jec006.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jec006.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jec006.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jec006.wordpress.com&amp;blog=4145678&amp;post=15&amp;subd=jec006&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jec006.wordpress.com/2008/07/22/more-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9fc53a798cef4ab2e1eec4eb0ab0ab99?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jec006</media:title>
		</media:content>
	</item>
		<item>
		<title>A little SQL</title>
		<link>http://jec006.wordpress.com/2008/07/13/a-little-sql/</link>
		<comments>http://jec006.wordpress.com/2008/07/13/a-little-sql/#comments</comments>
		<pubDate>Mon, 14 Jul 2008 03:18:04 +0000</pubDate>
		<dc:creator>jec006</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[LIKE]]></category>
		<category><![CDATA[WHERE]]></category>

		<guid isPermaLink="false">http://jec006.wordpress.com/?p=13</guid>
		<description><![CDATA[Recently I have been learning how very powerful SQL (structured query language) can actually be.  In this post, I would like to focus on the LIKE keyword which allows you to search a database for a pattern or string. But first, a small amount of introduction. SQL is a language used (generally) to &#8216;query&#8217; databases [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jec006.wordpress.com&amp;blog=4145678&amp;post=13&amp;subd=jec006&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I have been learning how very powerful SQL (structured query language) can actually be.  In this post, I would like to focus on the LIKE keyword which allows you to search a database for a pattern or string.</p>
<p>But first, a small amount of introduction.</p>
<p>SQL is a language used (generally) to &#8216;query&#8217; databases and edit, delete or retrieve information from these databases.  It can be used with a great majority of existing (structured, relational) databases &#8211; anything from MySQL to Microsoft Access to Oracle.  It uses keywords in conjunction with &#8216;field&#8217; names  (fields are represented (generally) by columns inside of a graphical view) and table names (tables are groups of fields somehow related to each other &#8211; for example a &#8216;person&#8217; table might have a first name, a last name, a date of birth, a height ect.).  With these keywords you can do anything from count the number of entries in a table to find everyone (in the person example) whose last name contains an &#8216;N&#8217;.</p>
<p>A more in depth look at all the SQL keywords, what they do, and how they should be used can be found at <a href="http://www.w3schools.com/Sql/default.asp" title="http://www.w3schools.com/Sql/default.asp">http://www.w3schools.com/Sql/default.asp</a>.</p>
<p><strong>Some Common Examples:</strong> (this is a very minimal list, check the above link for more)</p>
<p>(* is a wildcard representing &#8216;all&#8217;)</p>
<p><strong>SELECT</strong> &#8211; retrieves rows containing the specified fields from the given table(s).  Used when you are trying to get information out of a database.<br />
This will select all the fields and all the rows (it will retrieve ALL the information in a table) named &#8216;table&#8217;<br />
<code>SELECT * FROM table;</code></p>
<p><strong>INSERT INTO</strong> &#8211; allows you to insert values into a new row in a table.<br />
<code>INSERT INTO table (field1, field2, field3) VALUES (value1, value2, value3);</code></p>
<p><strong>UPDATE</strong> &#8211; allows you to change the values in (a) row(s) that already exist in a table. (the following statement would set ALL field1&#8242;s = value1 and ALL field2&#8242;s = value2)<br />
<code>UPDATE table SET field1='value1', field2='value2';</code></p>
<p><strong>WHERE</strong> &#8211; begins a &#8216;WHERE clause&#8217; which specifies which rows you want to effect with your query.<br />
<code>SELECT * FROM table WHERE field1='value1';</code><br />
<code>UPDATE table SET field1='value1', field2='value2' WHERE field3='value3';</code></p>
<p>Now, the WHERE clause is the place that it gets interesting (at least in terms of using LIKE).</p>
<p>When creating a &#8216;WHERE clause&#8217; LIKE can be used to search for entries that match a pattern instead of looking for a specific value.  This can be done in the following ways:</p>
<p><strong>Using % as a wildcard</strong><br />
<code>WHERE field1 LIKE '%s'</code> &#8211; look for entries that have a field1 that ENDS in s &#8211; for example: would find &#8216;words&#8217;, &#8216;values&#8217;&#8230; would NOT find &#8216;soon&#8217;.<br />
<code>WHERE field1 LIKE 's%'</code> &#8211; would find entries with field1 starting with s (like &#8216;soon&#8217;)<br />
<code>WHERE field1 LIKE '%s%'</code> &#8211; would find entries that have a field1 which contains s anywhere in it</p>
<p><strong>Using _ to represent an unknown character</strong><br />
<code>WHERE field1 LIKE 's_op'</code> &#8211; would find things like slop and stop </p>
<p>Anyway, LIKE can be an extremely useful and effective way to implement a search.  An example would be an users admin page which allowed the admin to search for the name/email of the person they wanted to edit.  They may not know the persons full name, or they may not want to/know to type it exactly as it is in the database.  Adding a LIKE clause to your WHERE clause is an easy and efficient way to provide this capability.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jec006.wordpress.com/13/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jec006.wordpress.com/13/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jec006.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jec006.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jec006.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jec006.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jec006.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jec006.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jec006.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jec006.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jec006.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jec006.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jec006.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jec006.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jec006.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jec006.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jec006.wordpress.com&amp;blog=4145678&amp;post=13&amp;subd=jec006&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jec006.wordpress.com/2008/07/13/a-little-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9fc53a798cef4ab2e1eec4eb0ab0ab99?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jec006</media:title>
		</media:content>
	</item>
		<item>
		<title>Microsoft Silverlight</title>
		<link>http://jec006.wordpress.com/2008/07/09/microsoft-silverlight/</link>
		<comments>http://jec006.wordpress.com/2008/07/09/microsoft-silverlight/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 02:17:45 +0000</pubDate>
		<dc:creator>jec006</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[proprietary software]]></category>
		<category><![CDATA[Silverlight]]></category>

		<guid isPermaLink="false">http://jec006.wordpress.com/?p=12</guid>
		<description><![CDATA[Recently, Microsoft has released its answer for Adobe (formerly Macromedia) Flash called Silverlight. It, very much like flash, allows for &#8216;Rich Internet Applications&#8217; &#8211; basically interactive, &#8216;pretty&#8217; web applications, movies and other media. Silverlight is, in some ways, superior to Flash because it contains textual content that can be searched from your browser&#8230; making it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jec006.wordpress.com&amp;blog=4145678&amp;post=12&amp;subd=jec006&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently, Microsoft has released its answer for Adobe (formerly Macromedia) Flash called Silverlight.  It, very much like flash, allows for &#8216;Rich Internet Applications&#8217; &#8211; basically interactive, &#8216;pretty&#8217; web applications, movies and other media.</p>
<p>Silverlight is, in some ways, superior to Flash because it contains textual content that can be searched from your browser&#8230; making it easier to interact with.  However, this text is in XAML format (visit Wikipedia for an explanation) which is Microsoft&#8217;s own proprietary XML based markup language.  It is, in some ways, very useful for creating web applications.  XAML no doubt will be familiar to people who have worked with asp.</p>
<p>The problem with both Silverlight and XAML is that if these technologies become popular, Microsoft would be able to deny compatibility/accessibility to people who didn&#8217;t use windows, or charge for compatible browsers.  As far fetched as this may seem, Microsoft did not include support for Opera thus alienating Linux users in current versions of Silverlight&#8230; </p>
<p>Both Flash and Silverlight seem rather inaccessible to the general public (or at least to me) in terms of development because of the high cost of development studios for both languages.  (Currently you can get a pre-release version of Silverlight&#8217;s studio &#8211; Microsoft Expressions &#8211; for free.  The full studio costs $699 though.)  While there are free options (such as CoffeeCup for flash) these tend to be&#8230; not very useful.</p>
<p>Proprietary languages/technologies seem to be the wrong way to be heading, especially with Microsoft holding the cards.  I do think that web designers/developers will shy away from Silverlight if there is any hint that Microsoft intends to deny support to other browsers/operating systems.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jec006.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jec006.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jec006.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jec006.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jec006.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jec006.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jec006.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jec006.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jec006.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jec006.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jec006.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jec006.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jec006.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jec006.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jec006.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jec006.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jec006.wordpress.com&amp;blog=4145678&amp;post=12&amp;subd=jec006&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jec006.wordpress.com/2008/07/09/microsoft-silverlight/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9fc53a798cef4ab2e1eec4eb0ab0ab99?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jec006</media:title>
		</media:content>
	</item>
		<item>
		<title>Canadian Sailors eh?</title>
		<link>http://jec006.wordpress.com/2008/07/07/canadian-sailors-eh/</link>
		<comments>http://jec006.wordpress.com/2008/07/07/canadian-sailors-eh/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 03:14:53 +0000</pubDate>
		<dc:creator>jec006</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[accents]]></category>
		<category><![CDATA[canada]]></category>
		<category><![CDATA[cussing]]></category>
		<category><![CDATA[weird news]]></category>

		<guid isPermaLink="false">http://jec006.wordpress.com/?p=11</guid>
		<description><![CDATA[I was reading my little Vista rss feed today when I saw a headline that said &#8220;Stroke Victim Speaks Like Canadian Sailor.&#8221; news.com.au reports that a Canadian woman now speaks like she is from the coast. (http://www.news.com.au/story/0,10117,23981496-401,00.html) More specifically, the headline said she now speaks like a &#8220;sailor&#8221; . . . Poorly thought out headlines [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jec006.wordpress.com&amp;blog=4145678&amp;post=11&amp;subd=jec006&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I was reading my little Vista rss feed today when I saw a headline that said &#8220;Stroke Victim Speaks Like Canadian Sailor.&#8221; news.com.au reports that a Canadian woman now speaks like she is from the coast.</p>
<p>(<a href="http://www.news.com.au/story/0,10117,23981496-401,00.html">http://www.news.com.au/story/0,10117,23981496-401,00.html</a>)</p>
<p>More specifically, the headline said she now speaks like a &#8220;sailor&#8221; . . . Poorly thought out headlines aside, the idea that someone&#8217;s accent can change dramatically following a stroke is relatively weird.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jec006.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jec006.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jec006.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jec006.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jec006.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jec006.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jec006.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jec006.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jec006.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jec006.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jec006.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jec006.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jec006.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jec006.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jec006.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jec006.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jec006.wordpress.com&amp;blog=4145678&amp;post=11&amp;subd=jec006&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jec006.wordpress.com/2008/07/07/canadian-sailors-eh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9fc53a798cef4ab2e1eec4eb0ab0ab99?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jec006</media:title>
		</media:content>
	</item>
		<item>
		<title>Places you might want to visit (around the web)</title>
		<link>http://jec006.wordpress.com/2008/07/06/place-you-might-want-to-visit-around-the-web/</link>
		<comments>http://jec006.wordpress.com/2008/07/06/place-you-might-want-to-visit-around-the-web/#comments</comments>
		<pubDate>Mon, 07 Jul 2008 02:59:38 +0000</pubDate>
		<dc:creator>jec006</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[funny]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[reference]]></category>

		<guid isPermaLink="false">http://jec006.wordpress.com/?p=10</guid>
		<description><![CDATA[There are hundreds of thousands of sites around the internet, and most of them are not worth your time (like this one), but a few are worth checking back with every few weeks. Below are a few of my favorites, that other people might enjoy or find educational. For ease of surfing and later reference [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jec006.wordpress.com&amp;blog=4145678&amp;post=10&amp;subd=jec006&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There are hundreds of thousands of sites around the internet, and most of them are not worth your time (like this one), but a few are worth checking back with every few weeks.  Below are a few of my favorites, that other people might enjoy or find educational.</p>
<p>For ease of surfing and later reference for myself (and you) I split these up into categories:</p>
<p><strong>Programming/Web-design</strong><br />
<a href="http://www.w3schools.com/" title="http://www.w3schools.com/">w3schools.com</a> &#8211; a great website about all sorts of web related programming, can function as a starting point for learning a web-based language or a useful reference for experts.</p>
<p><a href="http://www.php.net" title="http://www.php.net">php.net</a> &#8211; The creators of php have pretty much all the information you&#8217;ll ever need about php right on there own site. There are also posts from the community on nearly every reference page, providing helpful advice and additional examples.</p>
<p><a href="http://www.alistapart.com/" title="http://www.alistapart.com/">AListApart.com</a> &#8211; An excellent and extremely literary website with articles about website design and web programming.  The articles on this site are works of art and provide expert advice on a variety of issues.</p>
<p><a href="http://java.sun.com/j2se/1.5.0/docs/api/" title="http://java.sun.com/j2se/1.5.0/docs/api/">java.sun.com/[...]/api/</a>The java API is one of the most complete and the most accessible references for any programming language (and a far cry from the relatively worthless MSDN developer network&#8230;).<br />
______________________________________________</p>
<p><strong>Humorous Sites</strong><br />
<a href="http://uncyclopedia.org/wiki/Main_Page" title="http://uncyclopedia.org/wiki/Main_Page">Uncyclopedia.org</a> &#8211; A sarcastic, uninformative, geeky and yet hilarious wiki abot anything and everything.  I would recommend searching for celebrities who you don&#8217;t like or, if you just love everyone, fall back on &#8216;Microsoft&#8217; (always a good bet).</p>
<p><a href="http://maddox.xmission.com/" title="http://maddox.xmission.com/">Maddox.xmission.com</a> &#8211; Maddox is like&#8230; Rush Limbaugh &#8211; Politics + even more conceit + more humor.</p>
<p><a href="http://www.urbandictionary.com/" title="http://www.urbandictionary.com/">UrbanDictionary.com</a> &#8211; Urban Dictionary&#8230; enough said.</p>
<p><a href="http://www.icanhascheezburger.com" title="http://icanhascheezburger.com/">ICanHasCheezBurger.com</a> &#8211; Cats + Captions + Poor spelling = Hilarious (unless you are a Grammar/Spelling Nazi).</p>
<p><a href="http://failblog.org" title="http://failblog.org">FailBlog.org</a> &#8211; Looking at pictures of fails always makes me feel better about myself&#8230; and laugh&#8230; a lot.<br />
______________________________________________</p>
<p><strong>Others</strong><br />
<a href="http://psdtuts.com/" title="http://psdtuts.com/">PSDtuts.com</a> &#8211; an excellent site for learning Photoshop techniques.</p>
<p><a href="http://www.newegg.com/" title="http://www.newegg.com/">NewEgg.com</a> &#8211; If you need to buy computer/electronic related items&#8230; Newegg is the place. </p>
<p><a href="http://www.pandora.com/" title="http://www.pandora.com/">Pandora.com</a> &#8211; Pandora creates custom radio channels based on music you like and then streams it for free to your computer.  Its a great way to find new artists and songs that you might like.<br />
______________________________________________</p>
<p>I might end up adding more links later, but for right now, this is a short list of my bookmarks.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jec006.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jec006.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jec006.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jec006.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jec006.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jec006.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jec006.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jec006.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jec006.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jec006.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jec006.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jec006.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jec006.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jec006.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jec006.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jec006.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jec006.wordpress.com&amp;blog=4145678&amp;post=10&amp;subd=jec006&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jec006.wordpress.com/2008/07/06/place-you-might-want-to-visit-around-the-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9fc53a798cef4ab2e1eec4eb0ab0ab99?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jec006</media:title>
		</media:content>
	</item>
		<item>
		<title>Div Containers with Floats: clearing</title>
		<link>http://jec006.wordpress.com/2008/07/06/div-containers-with-floats-clearing/</link>
		<comments>http://jec006.wordpress.com/2008/07/06/div-containers-with-floats-clearing/#comments</comments>
		<pubDate>Sun, 06 Jul 2008 19:30:18 +0000</pubDate>
		<dc:creator>jec006</dc:creator>
				<category><![CDATA[Websites]]></category>
		<category><![CDATA[clear]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[floating]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://jec006.wordpress.com/?p=9</guid>
		<description><![CDATA[If you have ever tried to format a website using floating objects then you have no doubt run into a problem when a &#8216;container&#8217; div doesn&#8217;t stretch to hold the floats. Instead, it has no height at all, pulling any objects below it up into your floated objects and messing up borders. The popular (though [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jec006.wordpress.com&amp;blog=4145678&amp;post=9&amp;subd=jec006&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you have ever tried to format a website using floating objects then you have no doubt run into a problem when a &#8216;container&#8217; div doesn&#8217;t stretch to hold the floats. Instead, it has no height at all, pulling any objects below it up into your floated objects and messing up borders.</p>
<p>The popular (though messy) way to fix this is to add a<br />
<code>&lt;div style="clear:both;"&gt;&lt;/div&gt;</code>to the bottom of the containers code.  This gives the container some non-floated content (below the floated objects) and thus expands the size to the correct dimensions.</p>
<p>The main problem with this (from my point of view) is that it looks awfully messy, especially if you are creating a template.  Having a bunch of empty divs lying around just seems like poor form.</p>
<p>Anyway, today I found a better solution &#8211; a much more thorough explanation of the issue (with pictures), the solution and why it works can be found at <a href="http://www.quirksmode.org/css/clearing.html" title="http://www.quirksmode.org/css/clearing.html">www.quirksmode.org</a>.</p>
<p>Basically though, including:<br />
<code>overflow:hidden;<br />
or<br />
overflow:auto;</code>in the css for the container will force the container to expand to the correct size.  You can also use &#8216;overflow:scroll&#8217; but this will give you scroll bars in the container (which looks bad most of the time).  (Using &#8216;hidden&#8217; seems to be the best option because &#8216;auto&#8217; can also cause scroll bars to appear in some browsers)</p>
<p>One line of CSS seems preferable to extraneous divs sitting around in the HTML.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jec006.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jec006.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jec006.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jec006.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jec006.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jec006.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jec006.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jec006.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jec006.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jec006.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jec006.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jec006.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jec006.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jec006.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jec006.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jec006.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jec006.wordpress.com&amp;blog=4145678&amp;post=9&amp;subd=jec006&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jec006.wordpress.com/2008/07/06/div-containers-with-floats-clearing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9fc53a798cef4ab2e1eec4eb0ab0ab99?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jec006</media:title>
		</media:content>
	</item>
		<item>
		<title>Obscuring email addresses from spammers</title>
		<link>http://jec006.wordpress.com/2008/07/05/obscuring-email-addresses-from-spammers/</link>
		<comments>http://jec006.wordpress.com/2008/07/05/obscuring-email-addresses-from-spammers/#comments</comments>
		<pubDate>Sat, 05 Jul 2008 05:19:57 +0000</pubDate>
		<dc:creator>jec006</dc:creator>
				<category><![CDATA[Websites]]></category>
		<category><![CDATA[bots]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[protect emails]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[web programming]]></category>

		<guid isPermaLink="false">http://jec006.wordpress.com/?p=7</guid>
		<description><![CDATA[Today (and yesterday and the day before) I was working to upgrade a website&#8217;s defenses against spam-bots (web-spiders, bots, ect) which crawl the internets looking for email addresses to scoop up and add to their mailing lists.  Apparently people still don&#8217;t know they can buy viagra online (???). Anyway, I ended up doing quite a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jec006.wordpress.com&amp;blog=4145678&amp;post=7&amp;subd=jec006&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today (and yesterday and the day before) I was working to upgrade a website&#8217;s defenses against spam-bots (web-spiders, bots, ect) which crawl the internets looking for email addresses to scoop up and add to their mailing lists.  Apparently people still don&#8217;t know they can buy viagra online (???).</p>
<p>Anyway, I ended up doing quite a bit of research into protecting my site, and those who entrust their emails to me, from spammers.  The site also suddenly began having a problem with bots filling out the &#8216;contact&#8217; form and submitting it&#8230; repeatedly (like once every 2 minutes).  Needless to say, this was very annoying.  I came up with some solutions (most of these are modified from elsewhere) and some good websites with information about protecting your site.<br />
<span id="more-7"></span><br />
Protecting Email addresses from bots:</p>
<p>In my research I found a couple of very useful sites which you may want to read and which provide much more information then I will here :<br />
<a href="http://nadeausoftware.com/articles/2007/05/effective_methods_protect_email_addresses_spammers"></p>
<p>http://nadeausoftware.com/[...]protect_email_addresses_spammers</a></p>
<p><a href="http://inews.berkeley.edu/bcc/Winter2003/feat.spamharvest.html">http://inews.berkeley.edu/bcc/Winter2003/feat.spamharvest.html</a></p>
<p><a href="http://reliableanswers.com/js/mailme.asp">http://reliableanswers.com/js/mailme.asp</a></p>
<p>All of these pages present methods to prevent bots from havesting from email addresses from your website.  The first article (from nadeausoftware.com) seems to be the most in depth, featuring a test with several methods put up against multiple (readily available) bots.  The general recommendation is separating the email address and putting it on multiple lines with no at-sign (@).</p>
<p>For example:<br />
<code>name:notreal<br />
domain:site.com</code></p>
<p>This seems like an effective method, especially if you only have a few email addresses on your site.  However, it is kind of annoying as far as copy and pasting goes. (I think that most people would agree that &#8216;mailto&#8217; links are not particularly desirable or useful in this age of webmail clients).</p>
<p><strong>My favorite method</strong> (from all of these sites) however is obscuring an email address using JavaScript.  This method counts on a bot not being JavaScript enabled (which for now is a pretty good bet but could be a poor assumption in the future: no method is going to protect you forever).</p>
<p>There were many different methods for doing this (I&#8217;m sure all of you can read the sites so I&#8217;ll just show you how I did it, and if you don&#8217;t like my method, check theirs) but I chose to write the at sign using javascript in between the name and the domain name.</p>
<p>For example<br />
<code>example (throw some script tags in here)<br />
 document.write("&amp;#064"); (close script)<br />
example.com<br />
prints: example@example.com</code></p>
<p>I feel like this is a good method as its difficult to pattern match, having no visible @ and containing spaces.  It should be noted that (as all the sites I linked to above state) not ALL browsers/people have JavaScript enabled (most do though). This is still not a horrible option as they will see exampleexample.com as the email address&#8230; which, for a person, isn&#8217;t too difficult to figure out (hopefully).</p>
<p><strong>As for stopping bots from using forms &#8211; </strong>I ended up using a combination of things to (try to) prevent this.  First, I added a timer to the form &#8211; on one end I record the starting time</p>
<p><code>(in php)<br />
$time = time();</code></p>
<p>On the other end, I  check that it has been 5 seconds.  You may wish to set the minimum time lower,  Bots fill out the forms in less than a second, I am just providing a little padding.</p>
<p><code>if($_POST[time] - time() &lt; 5) ... do whatever</code></p>
<p>This seems relatively effective (it stopped whatever bot was attacking my site), but just to be on the safe side, I implemented a couple other safeguards.<br />
1. On all the forms which you can submit without logging in, I placed a simple math question like<br />
# plus/minus #.  Most bots won&#8217;t be able to answer this correctly (I am considering sending the failing tries to myself or logging them just to see the responses). (this sort of check is technically a <a href="http://en.wikipedia.org/wiki/Captcha">CAPTCHA</a>, another version would be images containing transformed text)<br />
2. I added some fields which are hidden by css formatting ( display:none; ) that have set values&#8230; if the field gets filled out (the value changed) I know its a bot.</p>
<p>Between the timer and these two checks, the spam has stopped all together.  </p>
<p>Hopefully some of these ideas can be useful to you.</p>
<p>(These are my opinions and not a technical assessment, use these ideas and code snippets at your own risk, I am providing this information as an opinion and without any guarantee.  Use this information as a starting point, not as an answer.)</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jec006.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jec006.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jec006.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jec006.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jec006.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jec006.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jec006.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jec006.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jec006.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jec006.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jec006.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jec006.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jec006.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jec006.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jec006.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jec006.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jec006.wordpress.com&amp;blog=4145678&amp;post=7&amp;subd=jec006&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jec006.wordpress.com/2008/07/05/obscuring-email-addresses-from-spammers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9fc53a798cef4ab2e1eec4eb0ab0ab99?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jec006</media:title>
		</media:content>
	</item>
		<item>
		<title>Welcome (Introduction to the blog)</title>
		<link>http://jec006.wordpress.com/2008/07/05/welcome-introduction-to-the-blog/</link>
		<comments>http://jec006.wordpress.com/2008/07/05/welcome-introduction-to-the-blog/#comments</comments>
		<pubDate>Sat, 05 Jul 2008 03:37:56 +0000</pubDate>
		<dc:creator>jec006</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Introduction]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Welcome]]></category>

		<guid isPermaLink="false">http://jec006.wordpress.com/?p=3</guid>
		<description><![CDATA[Hi everyone who is reading this post/blog (which is mostly myself). I am starting this blog as a kind of technical notebook for myself.  If anyone else actually reads it, I hope that my learning experiences can be useful to you.  Right now I am working at a government OIT in an application development department.  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jec006.wordpress.com&amp;blog=4145678&amp;post=3&amp;subd=jec006&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi everyone who is reading this post/blog (which is mostly myself).</p>
<p>I am starting this blog as a kind of technical notebook for myself.  If anyone else actually reads it, I hope that my learning experiences can be useful to you.  Right now I am working at a government OIT in an application development department.  At work I do some Crystal Reports, work with .NET languages (mostly Visual Basic and C#) and do a small amount of web programming.</p>
<p>In my spare time I do mostly web development, I work mostly in PHP (with HTML and CSS) but would very much like to learn more about javascript and possibly .aspx (though my little experience with it has been relatively negative).</p>
<p>I am also in school, though (currently) it is the summer time and I am back home until late August.  At school I am a Computer Science major and have taken classes in Java and C.</p>
<p>So&#8230; those are the things I am interested in from a technical perspective, no doubt this blog will stray from these defined topics (I&#8217;ll be amazed if I mention them more then twice), but its nice to have a gameplan.</p>
<p>-Josh</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jec006.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jec006.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jec006.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jec006.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jec006.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jec006.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jec006.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jec006.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jec006.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jec006.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jec006.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jec006.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jec006.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jec006.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jec006.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jec006.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jec006.wordpress.com&amp;blog=4145678&amp;post=3&amp;subd=jec006&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jec006.wordpress.com/2008/07/05/welcome-introduction-to-the-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9fc53a798cef4ab2e1eec4eb0ab0ab99?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jec006</media:title>
		</media:content>
	</item>
	</channel>
</rss>
