<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Brian Cantin &#187; code</title>
	<atom:link href="http://www.briancantin.com/tag/code/feed" rel="self" type="application/rss+xml" />
	<link>http://www.briancantin.com</link>
	<description>Computers, Music, Cycling, Politics and the general hum-drum of Life.</description>
	<lastBuildDate>Thu, 08 Jul 2010 19:36:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Free Linux Antivirus from RPM Repository</title>
		<link>http://www.briancantin.com/2010/05/free-linux-antivirus-from-rpm-repository.html#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://www.briancantin.com/2010/05/free-linux-antivirus-from-rpm-repository.html#comments</comments>
		<pubDate>Fri, 28 May 2010 16:11:16 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[computers]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.briancantin.com/?p=446</guid>
		<description><![CDATA[Computer viruses are the bane of most system administrator&#8217;s existence and an unavoidable facet of modern online life. Most Linux systems however do not have an antivirus included in their repositories. There are a few reasons why, including the relatively low-level of Linux viruses and the frequent updating of these packages which are generally more agile [...]]]></description>
			<content:encoded><![CDATA[<p>Computer viruses are the bane of most system administrator&#8217;s existence and an unavoidable facet of modern online life. Most Linux systems however do not have an antivirus included in their repositories.<br />
There are a few reasons why, including the relatively low-level of Linux viruses and the frequent updating of these packages which are generally more agile than the distribution releases. There is a solution I use that I would like to share.</p>
<p>On home systems, like Ubuntu, you can find a great free system called <a href="http://www.clamav.net/" target="_blank">ClamAV</a> through the package manager, however on more stable systems for servers (such as Centos 5) this option is not available.<br />
This does not mean you should forgo the effort to add one &#8211; modern viruses are sophisticated vermin that can exploit a users systems and use them to access and propagate on a web server. Script exploits could bring your server to a crawl as they feed viruses to your customers. A good antivirus is a necessity in this modern age.</p>
<p>Thankfully there is an answer &#8211; <a href="http://dag.wieers.com/" target="_blank">Dag Wieërs</a> maintains an RPM repository supporting several pieces of software, and ClamAV is one of them. There are three steps to making your system secure &#8211; first you need to install the ClamAV packages, second you need a custom script to update and scan the system, and thirdly you need to run the script with cron to automate the process. What follows is a step-by-step tutorial for setting this up on a CentOS 5.5 server, however it should work relatively the same for any RedHat Enterprise based distribution.</p>
<h3>Part One : Installing ClamAV from Dag&#8217;s RPM Repository</h3>
<p>The first step is to add the repository entry:</p>
<p><code>sudo nano /etc/yum.repos.d/rpmforge.repo</code></p>
<p>In this file add the following code and save the file, then exit the editor:</p>
<p><code>[rpmforge]<br />
name = Dag Wieers RPM Repository (rpmforge)<br />
mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge<br />
gpgcheck = 1<br />
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY.rpmforge<br />
enabled=0</code></p>
<p>Next, get the GPG key to ensure you are getting officially signed packages:</p>
<p><code>sudo wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt -P /etc/pki/rpm-gpg/ -O RPM-GPG-KEY.rpmforge</code></p>
<p>You should now be ready to install the initial package:</p>
<p><code>sudo yum --enablerepo=rpmforge install clamd -y</code></p>
<p>The previous command should also install the &#8216;<code>clamav</code>&#8216; and &#8216;<code>clamav-db</code>&#8216; dependency packages. If all went well, move on to the next step.</p>
<h3>Part Two : Creating a Script to Automate ClamAV</h3>
<p>First, lets create a new bash script:</p>
<p><code>sudo nano /usr/local/bin/clamav-cron</code></p>
<p>The script should look roughly like the one below, change the notification and alert emails as needed:</p>
<pre><code>#!/bin/bash
#============================================
# Update clam av and initiate a full system
# scan excluding virtual directories
# written by Brian Cantin, 2009-2010
#============================================
# User configuration section
#--------------------------------------------

# Notification e-mail sender (could be fake):
CAV_MAILFROM="support@example.com"

# Notification &amp; Alert e-mail recipients:
CAV_NOTIFY_TO="notify@example.com"
CAV_ALERT_TO="alerts@example.com"

# Log file name and its path:
CAV_LOGFILE="/var/log/clamav-cron"

# Scan target
CAV_TARGET='/'

# Directories to exclude from the scan
CAV_EXCLUDE='/proc|/dev|/sys|/mnt'

#===========================================
# script revision
CAV_VERSION='0.4'

# if the log file already exists - delete it
if [ -e $CAV_LOGFILE ]
then
        /bin/rm $CAV_LOGFILE
fi

# printed on the command line:
echo -e `basename $0` "v"$CAV_VERSION

# to be written to the log file:
echo -e $HOSTNAME - $(date) &gt;&gt; $CAV_LOGFILE
echo -e ------------------------ &gt;&gt; $CAV_LOGFILE
echo -e Script : `basename $0` v$CAV_VERSION  &gt;&gt; $CAV_LOGFILE
echo -e Target : $CAV_TARGET on $HOSTNAME &gt;&gt; $CAV_LOGFILE
echo -e Exclude: $CAV_EXCLUDE &gt;&gt; $CAV_LOGFILE
echo -e ------------------------ &gt;&gt; $CAV_LOGFILE

# update the detection database
echo -e "Update (/usr/bin/freshclam):" &gt;&gt; $CAV_LOGFILE
/usr/bin/freshclam &gt;&gt; $CAV_LOGFILE
echo -e ------------------------ &gt;&gt; $CAV_LOGFILE

# run the scan
echo -e "Scan (/usr/bin/clamscan):" &gt;&gt; $CAV_LOGFILE
/usr/bin/clamscan --infected --recursive $CAV_TARGET --exclude $CAV_EXCLUDE &gt;&gt; $CAV_LOGFILE
CLAMSCAN=$?

# if an error or virus is encountered then send an email to alert address
# otherwise send one to the notify
if [ "$CLAMSCAN" -eq "1" ]
then
        CAV_SUBJECT="[VIRUS] ClamAV ("$HOSTNAME") $(date)"
        /bin/mail -s "$CAV_SUBJECT" $CAV_ALERT_TO -- -f $CAV_MAILFROM &lt; $CAV_LOGFILE
elif [ "$CLAMSCAN" -gt "1" ]
then
        CAV_SUBJECT="[ERROR] ClamAV ("$HOSTNAME") $(date)"
	/bin/mail -s "$CAV_SUBJECT" $CAV_ALERT_TO -- -f $CAV_MAILFROM &lt; $CAV_LOGFILE
else
	CAV_SUBJECT="ClamAV ("$HOSTNAME") $(date)"
	/bin/mail -s "$CAV_SUBJECT" $CAV_NOTIFY_TO -- -f $CAV_MAILFROM &lt; $CAV_LOGFILE
fi
</code></pre>
<p>I think this shell script is fairly self explanatory and to the point &#8211; it will update the ClamAV software and database, run a full system scan (excluding virtual directories) and email the results to the notification address. To accentuate problems it adds [VIRUS] or [ERROR] to the email subject and sends the email instead to the alert address. You can configure these addresses to be the same, depending on your preferences. Please note you <em>must</em> have <code>/bin/mail</code> configured correctly for the email functionality to work but that is outside the scope of this article.</p>
<p>After creating and saving this new script, make it executable:</p>
<p><code> sudo chmod +x /usr/local/bin/clamav-cron</code></p>
<p>You should complete a test-run of your script at this point:</p>
<p><code>sudo /usr/local/bin/clamav-cron</code></p>
<p>If all goes well it should complete within a few minutes to a few hours (depending on the size of your file system) and send you an email of the results. If there where any errors, go back and correct them before moving on to part three.</p>
<h3>Part Three : Automation</h3>
<p>Once everything is working to your satisfaction you can edit the crontab file for a daily activation of the script:</p>
<p><code>sudo nano /etc/crontab</code></p>
<p>I added the following line to make the script run daily at 2:30am as root:</p>
<p><code>30 2 * * * root /usr/local/bin/clamav-cron</code></p>
<p>Congratulations! Your server is now configured to automatically update your antivirus, scan for threats and notify you in a timely manner, every day.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a title="Click me to see the sites." href="#" onclick="$$('div.d446').each( function(e) { e.visualEffect('slide_down',{duration:2.5}) }); return false;"><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d446" style="overflow:hidden">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.briancantin.com%2F2010%2F05%2Ffree-linux-antivirus-from-rpm-repository.html&amp;title=Free+Linux+Antivirus+from+RPM+Repository" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.briancantin.com%2F2010%2F05%2Ffree-linux-antivirus-from-rpm-repository.html" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.briancantin.com%2F2010%2F05%2Ffree-linux-antivirus-from-rpm-repository.html&amp;title=Free+Linux+Antivirus+from+RPM+Repository" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http%3A%2F%2Fwww.briancantin.com%2F2010%2F05%2Ffree-linux-antivirus-from-rpm-repository.html&amp;T=Free+Linux+Antivirus+from+RPM+Repository" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.briancantin.com%2F2010%2F05%2Ffree-linux-antivirus-from-rpm-repository.html&amp;title=Free+Linux+Antivirus+from+RPM+Repository" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.briancantin.com%2F2010%2F05%2Ffree-linux-antivirus-from-rpm-repository.html&amp;title=Free+Linux+Antivirus+from+RPM+Repository" rel="nofollow" title="Add to&nbsp;Slashdot"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/slashdot.png" title="Add to&nbsp;Slashdot" alt="Add to&nbsp;Slashdot" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.briancantin.com%2F2010%2F05%2Ffree-linux-antivirus-from-rpm-repository.html&amp;title=Free+Linux+Antivirus+from+RPM+Repository" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fwww.briancantin.com%2F2010%2F05%2Ffree-linux-antivirus-from-rpm-repository.html" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Free+Linux+Antivirus+from+RPM+Repository+@+http%3A%2F%2Fwww.briancantin.com%2F2010%2F05%2Ffree-linux-antivirus-from-rpm-repository.html" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Fwww.briancantin.com%2F2010%2F05%2Ffree-linux-antivirus-from-rpm-repository.html&amp;t=Free+Linux+Antivirus+from+RPM+Repository" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
<a style="font-size:90%;text-align: right; " title="Click me to hide the sites." href="#" onclick="$$('div.d446').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); return false;">Hide Sites</a>
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.briancantin.com/2010/05/free-linux-antivirus-from-rpm-repository.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>World of Warcraft Macros &#8211; Fishing</title>
		<link>http://www.briancantin.com/2009/09/world-of-warcraft-macros-fishing.html#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://www.briancantin.com/2009/09/world-of-warcraft-macros-fishing.html#comments</comments>
		<pubDate>Sun, 27 Sep 2009 17:25:00 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[computers]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[macros]]></category>
		<category><![CDATA[World of Warcraft]]></category>

		<guid isPermaLink="false">http://www.briancantin.com/?p=267</guid>
		<description><![CDATA[One of the nice features of World of Warcraft is the ability to create custom macros to simplify common tasks in the game. I have a nice little on that you can place on a button for fishing. What it does: If you do not have a fishing rod equipped, clicking the button will equip [...]]]></description>
			<content:encoded><![CDATA[<p>One of the nice features of World of Warcraft is the ability to create custom macros to simplify common tasks in the game. I have a nice little on that you can place on a button for fishing.</p>
<p><strong>What it does</strong>: If you do not have a fishing rod equipped, clicking the button will equip one. If a fishing rod is equipped, it will cast. If you hold down any modifier key it will re-equip your weapons.</p>
<p><strong>Code</strong> (insert your object names where indicated in <em>italics</em>):<br />
<code><br />
/equip [noequipped:Fishing Poles, nomodifier] <em>fishing rod name</em>;<br />
/equip [modifier] <em>main weapon name</em>;<br />
/cast [equipped:Fishing Poles, nomodifier] Fishing;<br />
</code></p>
<p>For example:<br />
<code><br />
/equip [noequipped:Fishing Poles, nomodifier] Nat Pagle's Extreme Angler FC-5000;<br />
/equip [modifier] Staff of Dark Mending;<br />
/cast [equipped:Fishing Poles, nomodifier] Fishing;<br />
</code></p>
<p>If you are not using two handed weapons, you will need to enter an equip command for your offhand weapon as well:</p>
<p><code><br />
/equip [noequipped:Fishing Poles, nomodifier] <em>fishing rod name</em>;<br />
/equip [modifier] <em>main weapon name</em>;<br />
/equip [modifier] <em>offhand weapon name</em>;<br />
/cast [equipped:Fishing Poles, nomodifier] Fishing;<br />
</code></p>
<p>Happy fishing!</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a title="Click me to see the sites." href="#" onclick="$$('div.d267').each( function(e) { e.visualEffect('slide_down',{duration:2.5}) }); return false;"><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d267" style="overflow:hidden">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.briancantin.com%2F2009%2F09%2Fworld-of-warcraft-macros-fishing.html&amp;title=World+of+Warcraft+Macros+%26%238211%3B+Fishing" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.briancantin.com%2F2009%2F09%2Fworld-of-warcraft-macros-fishing.html" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.briancantin.com%2F2009%2F09%2Fworld-of-warcraft-macros-fishing.html&amp;title=World+of+Warcraft+Macros+%26%238211%3B+Fishing" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http%3A%2F%2Fwww.briancantin.com%2F2009%2F09%2Fworld-of-warcraft-macros-fishing.html&amp;T=World+of+Warcraft+Macros+%26%238211%3B+Fishing" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.briancantin.com%2F2009%2F09%2Fworld-of-warcraft-macros-fishing.html&amp;title=World+of+Warcraft+Macros+%26%238211%3B+Fishing" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.briancantin.com%2F2009%2F09%2Fworld-of-warcraft-macros-fishing.html&amp;title=World+of+Warcraft+Macros+%26%238211%3B+Fishing" rel="nofollow" title="Add to&nbsp;Slashdot"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/slashdot.png" title="Add to&nbsp;Slashdot" alt="Add to&nbsp;Slashdot" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.briancantin.com%2F2009%2F09%2Fworld-of-warcraft-macros-fishing.html&amp;title=World+of+Warcraft+Macros+%26%238211%3B+Fishing" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fwww.briancantin.com%2F2009%2F09%2Fworld-of-warcraft-macros-fishing.html" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+World+of+Warcraft+Macros+%26%238211%3B+Fishing+@+http%3A%2F%2Fwww.briancantin.com%2F2009%2F09%2Fworld-of-warcraft-macros-fishing.html" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Fwww.briancantin.com%2F2009%2F09%2Fworld-of-warcraft-macros-fishing.html&amp;t=World+of+Warcraft+Macros+%26%238211%3B+Fishing" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
<a style="font-size:90%;text-align: right; " title="Click me to hide the sites." href="#" onclick="$$('div.d267').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); return false;">Hide Sites</a>
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.briancantin.com/2009/09/world-of-warcraft-macros-fishing.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Painless Web 2.0 with jQuery</title>
		<link>http://www.briancantin.com/2008/11/painless-web-2-0-with-jquery.html#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://www.briancantin.com/2008/11/painless-web-2-0-with-jquery.html#comments</comments>
		<pubDate>Fri, 28 Nov 2008 17:04:00 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[computers]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.briancantin.com/?p=236</guid>
		<description><![CDATA[Allow me introduce you to my new favorite web tool: jQuery. jQuery is a handy java script that allows you to add AJAX functionality to your website without too much fuss at all. After placing the jquery.js (obtained from jQuery.com) file in your website&#8217;s path (ex. yoursite.com/include/) you simply need to add two javascript references [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://briancantin.com/images/generic.gif" alt="" align="left" />Allow me introduce you to my new favorite web tool: <a href="http://jquery.com/">jQuery</a>. jQuery is a handy java script that allows you to add AJAX functionality to your website without too much fuss at all.</p>
<p>After placing the jquery.js (obtained from <a href="http://jquery.com/">jQuery.com</a>) file in your website&#8217;s path (ex. yoursite.com/include/) you simply need to add two javascript references in your page header:</p>
<p><code>&lt;script src='include/jquery.js'&gt;&lt;/script&gt;<br />
&lt;script src='include/scripts.js'&gt;&lt;/script&gt;</code></p>
<p>The scripts.js file is where all the custom functionality code goes. Here&#8217;s an example, where links clicked in a div named #nav will load the new content into the #content div without refreshing the whole page:</p>
<pre>$(document).ready(<span style="color: #3333ff;">function</span>() {           <span style="color: #009900;">// after page is loaded, this is called automagically</span> $(<span style="color: #990000;">'#nav li a'</span>).click(<span style="color: #3333ff;">function</span>() {     <span style="color: #3333ff;">var </span>query = $(<span style="color: #3333ff;">this</span>).attr(<span style="color: #990000;">'href'</span>);                  <span style="color: #009900;">// this is what appears in the href tag</span>     $(<span style="color: #990000;">'#content'</span>).hide(<span style="color: #660000;">'slow'</span>,loadContent);            <span style="color: #009900;">// hides the div, calls loadContent()</span>

     <span style="color: #3333ff;">function </span>loadContent() {         $(<span style="color: #990000;">'#content'</span>).load(query,<span style="color: #990000;">''</span>,showNewContent()); <span style="color: #009900;">// pull the request into the div</span>     }                                                  <span style="color: #009900;">// calls showNewContent()</span>

     <span style="color: #3333ff;">function </span>showNewContent() {         $(<span style="color: #990000;">'#content'</span>).show(<span style="color: #990000;">'fast'</span>);                    <span style="color: #009900;">// show the new page content</span>     }     <span style="color: #3333ff;">return </span>false; <span style="color: #009900;">// returning false indicates the event was processed</span> });});</pre>
<p>No change to the actual page markup was required to make this happen at all. A small hurdle I encountered working with jQuery was that having an event bound to content inside the div #content would cease to function once new content was brought in. The reason for this is that jQuery loads the event binding based on what is on the page at first load. The easy way to solve this is to add the <a href="http://plugins.jquery.com/project/livequery">Live Query plugin</a> for jQuery. Put it in your include directory with the other two scripts, and reference the script after jQuery but before your site&#8217;s script:</p>
<p><code>&lt;script src='include/jquery.js'&gt;&lt;/script&gt;<br />
&lt;script src='include/jquery.livequery.js'&gt;&lt;/script&gt;<br />
&lt;script src='include/scripts.js'&gt;&lt;/script&gt;</code></p>
<p>You will need to perform the related event binding to use Live Query slightly different from a normal jQuery binding:</p>
<pre>$(document).ready(<span style="color: #3333ff;">function</span>() {    <span style="color: #009900;">// after page is loaded, this is called automagically</span> $(<span style="color: #990000;">'#content a'</span>).livequery(<span style="color: #990000;">'click'</span>, <span style="color: #3333ff;">function</span>() {        <span style="color: #009900;">// livequery auto-binds when tags change</span>     <span style="color: #3366ff;">var </span>query = $(<span style="color: #3333ff;">this</span>).attr(<span style="color: #990000;">'href'</span>);                  <span style="color: #009900;">// this is what appears in the href tag</span>     alert(<span style="color: #990000;">'You clicked this link: '</span> + query);     <span style="color: #3333ff;">return </span>false; <span style="color: #009900;">// returning false indicates the event was processed</span> });});</pre>
<p>Yup, it&#8217;s just that easy &#8211; and once again, no change was made to the page markup. There is no end to the applications of jQuery and it&#8217;s related plugins. Happy coding, and welcome to Web 2.0!</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a title="Click me to see the sites." href="#" onclick="$$('div.d236').each( function(e) { e.visualEffect('slide_down',{duration:2.5}) }); return false;"><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d236" style="overflow:hidden">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.briancantin.com%2F2008%2F11%2Fpainless-web-2-0-with-jquery.html&amp;title=Painless+Web+2.0+with+jQuery" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.briancantin.com%2F2008%2F11%2Fpainless-web-2-0-with-jquery.html" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.briancantin.com%2F2008%2F11%2Fpainless-web-2-0-with-jquery.html&amp;title=Painless+Web+2.0+with+jQuery" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http%3A%2F%2Fwww.briancantin.com%2F2008%2F11%2Fpainless-web-2-0-with-jquery.html&amp;T=Painless+Web+2.0+with+jQuery" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.briancantin.com%2F2008%2F11%2Fpainless-web-2-0-with-jquery.html&amp;title=Painless+Web+2.0+with+jQuery" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.briancantin.com%2F2008%2F11%2Fpainless-web-2-0-with-jquery.html&amp;title=Painless+Web+2.0+with+jQuery" rel="nofollow" title="Add to&nbsp;Slashdot"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/slashdot.png" title="Add to&nbsp;Slashdot" alt="Add to&nbsp;Slashdot" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.briancantin.com%2F2008%2F11%2Fpainless-web-2-0-with-jquery.html&amp;title=Painless+Web+2.0+with+jQuery" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fwww.briancantin.com%2F2008%2F11%2Fpainless-web-2-0-with-jquery.html" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Painless+Web+2.0+with+jQuery+@+http%3A%2F%2Fwww.briancantin.com%2F2008%2F11%2Fpainless-web-2-0-with-jquery.html" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Fwww.briancantin.com%2F2008%2F11%2Fpainless-web-2-0-with-jquery.html&amp;t=Painless+Web+2.0+with+jQuery" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
<a style="font-size:90%;text-align: right; " title="Click me to hide the sites." href="#" onclick="$$('div.d236').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); return false;">Hide Sites</a>
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.briancantin.com/2008/11/painless-web-2-0-with-jquery.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Digg To Blogger.com Posts</title>
		<link>http://www.briancantin.com/2007/12/add-digg-to-bloggercom-posts.html#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://www.briancantin.com/2007/12/add-digg-to-bloggercom-posts.html#comments</comments>
		<pubDate>Wed, 05 Dec 2007 18:51:00 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[blogging]]></category>
		<category><![CDATA[computers]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.briancantin.com/?p=215</guid>
		<description><![CDATA[After a poking around the xml template for my site, and playing around with the Digg code, I&#8217;ve figured out how to add a Digg button to my posts. Listed below is a quick how-to for adding this functionality to your website too. Make sure your blog is set to enable Post Pages and you [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://briancantin.com/images/blogger.gif" alt="" align="left" /></p>
<p>After a poking around the xml template for my site, and playing around with the Digg code, I&#8217;ve figured out how to add a Digg button to my posts.<br />
Listed below is a quick how-to for adding this functionality to your website too.</p>
<ol>
<li>Make sure your blog is set to enable Post Pages and you are using the new Blogger, not the classic version</li>
<li>Go to the customization section of your blog, on the Template tab select Edit HTML</li>
<li>Make sure to click Download Full Template and save a backup copy to disk &#8211; just in case.</li>
<li>Put a check in Expand Widget Templates.</li>
<li>Search for <code>&lt;p&gt;&lt;data:post.body/&gt;&lt;/p&gt;</code><br />
<strong>Update: November 5th, 2008</strong></p>
<p><em>It has come to my attention that some templates use a slightly different formatting. If you cannot find the text listed above &#8211; try searching for <code>&lt;data:post.body/&gt;</code> and follow the rest of the instructions.</em></li>
<li>Paste this on the line directly before it:<br />
<code>&lt;div style='float:right; margin-left:10px;'&gt;<br />
&lt;script type='text/javascript'&gt;<br />
digg_url=&amp;quot;&lt;data:post.url/&gt;&amp;quot;;&lt;/script&gt;<br />
&lt;script src='http://digg.com/tools/diggthis.js' type='text/javascript'/&gt;<br />
&lt;/div&gt;</code></li>
<li>Preview your template to make sure it looks right &#8211; the Digg icon should appear at the top right of all your posts. Hover your cursor over it and make sure the link URL matches your post URL.</li>
<li>If all looks well, click Save Template and then View your blog</li>
</ol>
<p>Happy DIGGing!</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a title="Click me to see the sites." href="#" onclick="$$('div.d215').each( function(e) { e.visualEffect('slide_down',{duration:2.5}) }); return false;"><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d215" style="overflow:hidden">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.briancantin.com%2F2007%2F12%2Fadd-digg-to-bloggercom-posts.html&amp;title=Add+Digg+To+Blogger.com+Posts" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.briancantin.com%2F2007%2F12%2Fadd-digg-to-bloggercom-posts.html" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.briancantin.com%2F2007%2F12%2Fadd-digg-to-bloggercom-posts.html&amp;title=Add+Digg+To+Blogger.com+Posts" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http%3A%2F%2Fwww.briancantin.com%2F2007%2F12%2Fadd-digg-to-bloggercom-posts.html&amp;T=Add+Digg+To+Blogger.com+Posts" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.briancantin.com%2F2007%2F12%2Fadd-digg-to-bloggercom-posts.html&amp;title=Add+Digg+To+Blogger.com+Posts" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.briancantin.com%2F2007%2F12%2Fadd-digg-to-bloggercom-posts.html&amp;title=Add+Digg+To+Blogger.com+Posts" rel="nofollow" title="Add to&nbsp;Slashdot"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/slashdot.png" title="Add to&nbsp;Slashdot" alt="Add to&nbsp;Slashdot" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.briancantin.com%2F2007%2F12%2Fadd-digg-to-bloggercom-posts.html&amp;title=Add+Digg+To+Blogger.com+Posts" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fwww.briancantin.com%2F2007%2F12%2Fadd-digg-to-bloggercom-posts.html" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Add+Digg+To+Blogger.com+Posts+@+http%3A%2F%2Fwww.briancantin.com%2F2007%2F12%2Fadd-digg-to-bloggercom-posts.html" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Fwww.briancantin.com%2F2007%2F12%2Fadd-digg-to-bloggercom-posts.html&amp;t=Add+Digg+To+Blogger.com+Posts" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
<a style="font-size:90%;text-align: right; " title="Click me to hide the sites." href="#" onclick="$$('div.d215').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); return false;">Hide Sites</a>
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.briancantin.com/2007/12/add-digg-to-bloggercom-posts.html/feed</wfw:commentRss>
		<slash:comments>97</slash:comments>
		</item>
		<item>
		<title>X11 Gotchas</title>
		<link>http://www.briancantin.com/2007/12/x11-gotchas.html#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://www.briancantin.com/2007/12/x11-gotchas.html#comments</comments>
		<pubDate>Mon, 03 Dec 2007 18:12:00 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[computers]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.briancantin.com/?p=212</guid>
		<description><![CDATA[While manually editing and tweaking my video configuration for Ubuntu 7.10 (Gutsy Gibbon) to get better performance for my ATI Radeon 9200 I accidentally butchered the config. (Tee-hee oops!) Thankfully it reverts to a low setting at least allowing me into the desktop to load a terminal and start correcting my errors. First off &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://briancantin.com/images/ubuntu.gif" alt="" align="left" />While manually editing and tweaking my video configuration for Ubuntu 7.10 (Gutsy Gibbon) to get better performance for my ATI Radeon 9200 I accidentally butchered the config. (Tee-hee oops!)</p>
<p>Thankfully it reverts to a low setting at least allowing me into the desktop to load a terminal and start correcting my errors.</p>
<p>First off &#8211; if you can&#8217;t figure out what you did, just blast it and start over with this command:</p>
<p><code> sudo dpkg-reconfigure -phigh xserver-xorg</code></p>
<p>This will load the <code>/etc/X11/xorg.conf</code> file back as it was at install.  Restart your x-server and things should be operational from a clean slate, unless you get the following message:<br />
<code> md5sum: /etc/X11/xorg.conf: No such file or directory</code></p>
<p>In which case, something you did wiped out your configuration entirely, and dpkg doesn&#8217;t want to reload it. This is easily recoverable:</p>
<p><code> sudo touch /etc/X11/xorg.conf<br />
sudo dpkg-reconfigure -phigh xserver-xorg</code></p>
<p>This places an empty file in the location, allowing dpkg to do it&#8217;s thing without error.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a title="Click me to see the sites." href="#" onclick="$$('div.d212').each( function(e) { e.visualEffect('slide_down',{duration:2.5}) }); return false;"><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d212" style="overflow:hidden">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.briancantin.com%2F2007%2F12%2Fx11-gotchas.html&amp;title=X11+Gotchas" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.briancantin.com%2F2007%2F12%2Fx11-gotchas.html" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.briancantin.com%2F2007%2F12%2Fx11-gotchas.html&amp;title=X11+Gotchas" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http%3A%2F%2Fwww.briancantin.com%2F2007%2F12%2Fx11-gotchas.html&amp;T=X11+Gotchas" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.briancantin.com%2F2007%2F12%2Fx11-gotchas.html&amp;title=X11+Gotchas" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.briancantin.com%2F2007%2F12%2Fx11-gotchas.html&amp;title=X11+Gotchas" rel="nofollow" title="Add to&nbsp;Slashdot"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/slashdot.png" title="Add to&nbsp;Slashdot" alt="Add to&nbsp;Slashdot" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.briancantin.com%2F2007%2F12%2Fx11-gotchas.html&amp;title=X11+Gotchas" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fwww.briancantin.com%2F2007%2F12%2Fx11-gotchas.html" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+X11+Gotchas+@+http%3A%2F%2Fwww.briancantin.com%2F2007%2F12%2Fx11-gotchas.html" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Fwww.briancantin.com%2F2007%2F12%2Fx11-gotchas.html&amp;t=X11+Gotchas" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
<a style="font-size:90%;text-align: right; " title="Click me to hide the sites." href="#" onclick="$$('div.d212').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); return false;">Hide Sites</a>
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.briancantin.com/2007/12/x11-gotchas.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hacking The RTL8187b On Linux</title>
		<link>http://www.briancantin.com/2007/11/hacking-rtl8187b-on-linux.html#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://www.briancantin.com/2007/11/hacking-rtl8187b-on-linux.html#comments</comments>
		<pubDate>Sat, 01 Dec 2007 00:14:00 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[computers]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.briancantin.com/?p=208</guid>
		<description><![CDATA[As I&#8217;ve mentioned in previous articles (Linux, Ubuntu and Me; Ubuntu, Stage One; and Ubuntu, Stage Two) my network is wireless using a USB dongle that I insist on keeping in the set up. I have several reasons for this: all my upgrade slots are filled (AGP has video card, PCI has Soundblaster Live! and [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://briancantin.com/images/ubuntu.gif" alt="" align="left" />As I&#8217;ve mentioned in previous articles (<a href="http://briancantin.com/2007/11/linux-ubuntu-and-me.html">Linux, Ubuntu and Me</a>; <a href="http://briancantin.com/2007/11/ubuntu-stage-one.html">Ubuntu, Stage One</a>; and <a href="http://briancantin.com/2007/11/ubuntu-stage-two.html">Ubuntu, Stage Two</a>) my network is wireless using a USB dongle that I insist on keeping in the set up.</p>
<p>I have several reasons for this: all my upgrade slots are filled (AGP has video card, PCI has Soundblaster Live! and WinTV cards) and running cables would require a large amount of cat-5 wiring strung across several doorways, ceilings and down a flight of stairs. Ugly, time consuming and annoying to say the least. The current dongle I have works excellent (better than my old PCI card in fact) and came at a decent price.</p>
<p>The catch is that the Linux drivers for the RTL8187 chipset don&#8217;t include the B model. It&#8217;s functionally compatible, just not recognized by the driver. Lucky for me, <a href="http://www.datanorth.net/%7Ecuervo/blog/linux-on-the-satellite-a215-s7407/">someone</a> did some correspondence with RealTek and found out what codes to enter into the driver to correct this. Furthermore they provided him with the source code, allowing him to make the appropriate changes. The source package is freely available for <a href="http://www.datanorth.net/%7Ecuervo/rtl8187b/">download</a>.</p>
<p>Compiling the drivers was simple &#8211; as per RealTek&#8217;s README included in the files, the only caveat I encountered was that WPA encryption doesn&#8217;t seem to work (WEP 64 and 128 do) and it doesn&#8217;t automatically load on startup. I live in the suburbs and can get away with 128 bit encryption, so I can compromise on this point. By adding <code>pre-up /{path to drivers}/wlan0up</code> to /etc/network/interfaces just before the first wlan0 line (<code>iface wlan0 inet dhcp</code> on my system) it works perfectly. I reboot, and it just connects. Voila!</p>
<p>As a footnote, I&#8217;d like to mention that all my previous posts on this matter where made on my Windows XP laptop (which has to stay that way since it&#8217;s used at / owned by work) but this is the first post made with my newly configured Ubuntu system.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a title="Click me to see the sites." href="#" onclick="$$('div.d208').each( function(e) { e.visualEffect('slide_down',{duration:2.5}) }); return false;"><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d208" style="overflow:hidden">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.briancantin.com%2F2007%2F11%2Fhacking-rtl8187b-on-linux.html&amp;title=Hacking+The+RTL8187b+On+Linux" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.briancantin.com%2F2007%2F11%2Fhacking-rtl8187b-on-linux.html" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.briancantin.com%2F2007%2F11%2Fhacking-rtl8187b-on-linux.html&amp;title=Hacking+The+RTL8187b+On+Linux" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http%3A%2F%2Fwww.briancantin.com%2F2007%2F11%2Fhacking-rtl8187b-on-linux.html&amp;T=Hacking+The+RTL8187b+On+Linux" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.briancantin.com%2F2007%2F11%2Fhacking-rtl8187b-on-linux.html&amp;title=Hacking+The+RTL8187b+On+Linux" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.briancantin.com%2F2007%2F11%2Fhacking-rtl8187b-on-linux.html&amp;title=Hacking+The+RTL8187b+On+Linux" rel="nofollow" title="Add to&nbsp;Slashdot"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/slashdot.png" title="Add to&nbsp;Slashdot" alt="Add to&nbsp;Slashdot" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.briancantin.com%2F2007%2F11%2Fhacking-rtl8187b-on-linux.html&amp;title=Hacking+The+RTL8187b+On+Linux" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fwww.briancantin.com%2F2007%2F11%2Fhacking-rtl8187b-on-linux.html" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Hacking+The+RTL8187b+On+Linux+@+http%3A%2F%2Fwww.briancantin.com%2F2007%2F11%2Fhacking-rtl8187b-on-linux.html" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Fwww.briancantin.com%2F2007%2F11%2Fhacking-rtl8187b-on-linux.html&amp;t=Hacking+The+RTL8187b+On+Linux" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
<a style="font-size:90%;text-align: right; " title="Click me to hide the sites." href="#" onclick="$$('div.d208').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); return false;">Hide Sites</a>
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.briancantin.com/2007/11/hacking-rtl8187b-on-linux.html/feed</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>AdSense and Blogger Beta</title>
		<link>http://www.briancantin.com/2006/11/adsense-and-blogger-beta.html#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://www.briancantin.com/2006/11/adsense-and-blogger-beta.html#comments</comments>
		<pubDate>Wed, 22 Nov 2006 13:02:00 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[blogging]]></category>
		<category><![CDATA[computers]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://www.briancantin.com/?p=179</guid>
		<description><![CDATA[More tweaks this morning have led to the inclusion of an AdSense bar just between the header and the content as was there previously. How did I do it? I left layout mode and edited the HTML, where I found the .css element for the &#8220;header-wrapper&#8221; and &#8220;header&#8221; sections. I cloned them and renamed them [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://briancantin.com/images/blogger.gif" align="left" />More tweaks this morning have led to the inclusion of an AdSense bar just between the header and the content as was there previously.</p>
<p>How did I do it?</p>
<p>I left layout mode and edited the HTML, where I found the .css element for the &#8220;header-wrapper&#8221; and &#8220;header&#8221; sections.  I cloned them and renamed them &#8211; &#8220;billboard-frame&#8221; and &#8220;funkydj&#8221; respectively.<br /><code><br />#billboard-frame {<br />&nbsp;&nbsp;&nbsp;&nbsp;width:730px;<br />&nbsp;&nbsp;&nbsp;&nbsp;margin:0 auto 1px;<br />}<br />#funkydj {<br />&nbsp;&nbsp;&nbsp;&nbsp;margin: 0px;<br />&nbsp;&nbsp;&nbsp;&nbsp;text-align: center;<br />}<br /></code><br />Now scroll way down into the body of the HTML and find the &#8220;header-wrapper&#8221; tag.  Below that div, you add a new section:</p>
<p><code><br />&lt;div id="billboard-frame"&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;b:section class='funkydj' id='funkydj' maxwidgets='1' showaddelement='yes'&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;/b:section&gt;<br />&lt;/div&gt;</code></p>
<p>You can save, then go back to layout mode and add an HTML element into the new section you&#8217;ve created below the header.  Voila!</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a title="Click me to see the sites." href="#" onclick="$$('div.d179').each( function(e) { e.visualEffect('slide_down',{duration:2.5}) }); return false;"><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d179" style="overflow:hidden">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.briancantin.com%2F2006%2F11%2Fadsense-and-blogger-beta.html&amp;title=AdSense+and+Blogger+Beta" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.briancantin.com%2F2006%2F11%2Fadsense-and-blogger-beta.html" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.briancantin.com%2F2006%2F11%2Fadsense-and-blogger-beta.html&amp;title=AdSense+and+Blogger+Beta" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http%3A%2F%2Fwww.briancantin.com%2F2006%2F11%2Fadsense-and-blogger-beta.html&amp;T=AdSense+and+Blogger+Beta" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.briancantin.com%2F2006%2F11%2Fadsense-and-blogger-beta.html&amp;title=AdSense+and+Blogger+Beta" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.briancantin.com%2F2006%2F11%2Fadsense-and-blogger-beta.html&amp;title=AdSense+and+Blogger+Beta" rel="nofollow" title="Add to&nbsp;Slashdot"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/slashdot.png" title="Add to&nbsp;Slashdot" alt="Add to&nbsp;Slashdot" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.briancantin.com%2F2006%2F11%2Fadsense-and-blogger-beta.html&amp;title=AdSense+and+Blogger+Beta" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fwww.briancantin.com%2F2006%2F11%2Fadsense-and-blogger-beta.html" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+AdSense+and+Blogger+Beta+@+http%3A%2F%2Fwww.briancantin.com%2F2006%2F11%2Fadsense-and-blogger-beta.html" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Fwww.briancantin.com%2F2006%2F11%2Fadsense-and-blogger-beta.html&amp;t=AdSense+and+Blogger+Beta" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
<a style="font-size:90%;text-align: right; " title="Click me to hide the sites." href="#" onclick="$$('div.d179').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); return false;">Hide Sites</a>
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.briancantin.com/2006/11/adsense-and-blogger-beta.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Poetry in Programming</title>
		<link>http://www.briancantin.com/2006/03/poetry-in-programming.html#utm_source=feed&#038;utm_medium=feed&#038;utm_campaign=feed</link>
		<comments>http://www.briancantin.com/2006/03/poetry-in-programming.html#comments</comments>
		<pubDate>Mon, 06 Mar 2006 04:08:00 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[humor]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[computers]]></category>

		<guid isPermaLink="false">http://www.briancantin.com/?p=108</guid>
		<description><![CDATA[While examining the documentation on a program I was writing in 2003, I found the following comment: // Nov 4th/2003 : // The idea was simple // the implementation complex // I&#8217;ve had so many errors // I&#8217;m starting to vex Looks like that was the date I gave it a rest&#8230; Just before the [...]]]></description>
			<content:encoded><![CDATA[<p>While examining the documentation on a program I was writing in 2003, I found the following comment:</p>
<p><span style="font-size: 85%;"><span style="font-family: courier new;">// Nov 4th/2003 :</span><br />
<span style="font-family: courier new;">//        The idea was simple</span><br />
<span style="font-family: courier new;">//        the implementation complex</span><br />
<span style="font-family: courier new;">//        I&#8217;ve had so many errors</span><br />
<span style="font-family: courier new;">//        I&#8217;m starting to vex</span></span></p>
<p>Looks like that was the date I  gave it a rest&#8230; Just before the hard drive it was on crashed.  Thankfully I&#8217;ve recently recovered that drive&#8217;s contents.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a title="Click me to see the sites." href="#" onclick="$$('div.d108').each( function(e) { e.visualEffect('slide_down',{duration:2.5}) }); return false;"><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d108" style="overflow:hidden">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.briancantin.com%2F2006%2F03%2Fpoetry-in-programming.html&amp;title=Poetry+in+Programming" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.briancantin.com%2F2006%2F03%2Fpoetry-in-programming.html" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.briancantin.com%2F2006%2F03%2Fpoetry-in-programming.html&amp;title=Poetry+in+Programming" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http%3A%2F%2Fwww.briancantin.com%2F2006%2F03%2Fpoetry-in-programming.html&amp;T=Poetry+in+Programming" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.briancantin.com%2F2006%2F03%2Fpoetry-in-programming.html&amp;title=Poetry+in+Programming" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.briancantin.com%2F2006%2F03%2Fpoetry-in-programming.html&amp;title=Poetry+in+Programming" rel="nofollow" title="Add to&nbsp;Slashdot"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/slashdot.png" title="Add to&nbsp;Slashdot" alt="Add to&nbsp;Slashdot" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.briancantin.com%2F2006%2F03%2Fpoetry-in-programming.html&amp;title=Poetry+in+Programming" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fwww.briancantin.com%2F2006%2F03%2Fpoetry-in-programming.html" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Poetry+in+Programming+@+http%3A%2F%2Fwww.briancantin.com%2F2006%2F03%2Fpoetry-in-programming.html" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Fwww.briancantin.com%2F2006%2F03%2Fpoetry-in-programming.html&amp;t=Poetry+in+Programming" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.briancantin.com/wordpress/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
<a style="font-size:90%;text-align: right; " title="Click me to hide the sites." href="#" onclick="$$('div.d108').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); return false;">Hide Sites</a>
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.briancantin.com/2006/03/poetry-in-programming.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

