<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Rough Book</title>
	
	<link>http://vivin.net</link>
	<description>random musings of just another computer nerd</description>
	<lastBuildDate>Sun, 25 Jul 2010 03:01:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/RoughBook" /><feedburner:info uri="roughbook" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Downtime and System Upgrade</title>
		<link>http://feedproxy.google.com/~r/RoughBook/~3/h0Mz39CFYO4/</link>
		<comments>http://vivin.net/2010/07/24/downtime-and-system-upgrade/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 03:01:03 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[computer hardware]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[hard-drives]]></category>
		<category><![CDATA[my website]]></category>
		<category><![CDATA[system upgrade]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://vivin.net/?p=1531</guid>
		<description><![CDATA[Sorry for the downtime. My webserver had a failing hard-drive and I figured that while I was replacing the hard-drive, I would upgrade the entire machine as well. The box was a Pentium 4 1.4Ghz with 512MB of RAM that I hadn&#8217;t upgraded since I first built it in 2002. Now it&#8217;s been upgraded to [...]]]></description>
			<content:encoded><![CDATA[<p>Sorry for the downtime. My webserver had a failing hard-drive and I figured that while I was replacing the hard-drive, I would upgrade the entire machine as well. The box was a Pentium 4 1.4Ghz with 512MB of RAM that I hadn&#8217;t upgraded since I first built it in 2002. Now it&#8217;s been upgraded to a Pentium 4 2.4Ghz (hyper-threaded) with 1GB of RAM. Building from source will be a lot faster now! The whole upgrade process took a while because I was also in the process of upgrading another one of my machines and that took for EVER (some issues with shorting). Finally I had to install FreeBSD (version 8.0) on the new hard-drive as well as Apache, PHP, MySQL, WordPress etc. After I have everything set up, I&#8217;m going to make sure that I image the hard-drive so that I can restore it from backup easily.</p>
<br /><a href="http://vivin.net/?p=1531#comments" title="Comments on &quot;Downtime and System Upgrade&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1531" alt="Comments" /></a><img src="http://feeds.feedburner.com/~r/RoughBook/~4/h0Mz39CFYO4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2010/07/24/downtime-and-system-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1531" />
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1531" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
	<feedburner:origLink>http://vivin.net/2010/07/24/downtime-and-system-upgrade/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
		<item>
		<title>Giving toys to kids in Iraq</title>
		<link>http://feedproxy.google.com/~r/RoughBook/~3/ScsnY3XvUAI/</link>
		<comments>http://vivin.net/2010/06/28/giving-toys-to-kids-in-iraq/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 17:17:38 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Army]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[Military]]></category>
		<category><![CDATA[Operation Iraqi Freedom]]></category>
		<category><![CDATA[Politics and Law]]></category>
		<category><![CDATA[army]]></category>
		<category><![CDATA[army national guard]]></category>
		<category><![CDATA[hearts and minds]]></category>
		<category><![CDATA[hhb 1/180th]]></category>
		<category><![CDATA[iraq]]></category>
		<category><![CDATA[iraqis]]></category>
		<category><![CDATA[oif]]></category>
		<category><![CDATA[operation iraqi freedom]]></category>
		<category><![CDATA[roughnecks]]></category>
		<category><![CDATA[toys]]></category>

		<guid isPermaLink="false">http://vivin.net/?p=1526</guid>
		<description><![CDATA[This is an old video; I just found it. I uploaded it to YouTube since you can&#8217;t view it on the original DVIDS site. When I was in Iraq our unit commander&#8217;s (CPT Callaway) mother sent a bunch of toys over to us. We took these toys and handed them out to Iraqi kids.]]></description>
			<content:encoded><![CDATA[<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/-jDnlxeS1cc&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/-jDnlxeS1cc&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p>This is an old video; I just found it. I uploaded it to YouTube since you can&#8217;t view it on the original DVIDS site. When I was in Iraq our unit commander&#8217;s (CPT Callaway) mother sent a bunch of toys over to us. We took these toys and handed them out to Iraqi kids.</p>
<br /><a href="http://vivin.net/?p=1526#comments" title="Comments on &quot;Giving toys to kids in Iraq&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1526" alt="Comments" /></a><img src="http://feeds.feedburner.com/~r/RoughBook/~4/ScsnY3XvUAI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2010/06/28/giving-toys-to-kids-in-iraq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1526" />
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1526" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
	<feedburner:origLink>http://vivin.net/2010/06/28/giving-toys-to-kids-in-iraq/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
		<item>
		<title>Download ShapeWriter APK</title>
		<link>http://feedproxy.google.com/~r/RoughBook/~3/_qKgNSLzi5E/</link>
		<comments>http://vivin.net/2010/06/22/download-shapewriter-apk/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 16:43:34 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Nerdy Stuff]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[android 2.1]]></category>
		<category><![CDATA[apk]]></category>
		<category><![CDATA[eclair]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[mytouch]]></category>
		<category><![CDATA[shapewriter]]></category>

		<guid isPermaLink="false">http://vivin.net/?p=1522</guid>
		<description><![CDATA[I tried to install ShapeWriter from the Android Marketplace yesterday and couldn&#8217;t find it (I was trying to reinstall it after flashing my phone with Cyanogenmod 5.0.8). After searching the interwebs, I found out that it had been removed from the marketplace on June 20th indefinitely (supposedly for QA issues). Luckily I had backed up [...]]]></description>
			<content:encoded><![CDATA[<p>I tried to install <a href="http://shapewriter.com">ShapeWriter</a> from the Android Marketplace yesterday and couldn&#8217;t find it (I was trying to reinstall it after flashing my phone with <a href="http://www.cyanogenmod.com/home/cyanogenmod-5-0-8-has-landed">Cyanogenmod 5.0.8</a>). After searching the interwebs, I found out that it had been removed from the marketplace on June 20th indefinitely (supposedly for QA issues). Luckily I had backed up the app using <a href="http://www.rerware.com/Android/default.aspx">MyBackup Pro</a> and still had the APK, so I was able to reinstall it. I&#8217;m putting the APK up here for anyone who needs to reinstall ShapeWriter.</p>
<p><a href="http://vivin.net/pub/shapewriter/com.shapewriter.android.softkeyboard.apk">Download ShapeWriter APK</a></p>
<br /><a href="http://vivin.net/?p=1522#comments" title="Comments on &quot;Download ShapeWriter APK&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1522" alt="Comments" /></a><img src="http://feeds.feedburner.com/~r/RoughBook/~4/_qKgNSLzi5E" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2010/06/22/download-shapewriter-apk/feed/</wfw:commentRss>
		<slash:comments>40</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1522" />
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1522" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
	<feedburner:origLink>http://vivin.net/2010/06/22/download-shapewriter-apk/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
		<item>
		<title>StackOverflow FAIL</title>
		<link>http://feedproxy.google.com/~r/RoughBook/~3/DKZolKYut8s/</link>
		<comments>http://vivin.net/2010/06/02/stackoverflow-fail/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 18:16:00 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Humor]]></category>
		<category><![CDATA[Musings, Ramblings, and Inanities]]></category>
		<category><![CDATA[Nerdy Stuff]]></category>
		<category><![CDATA[Programming and Development]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[funny]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[stackoverflow]]></category>

		<guid isPermaLink="false">http://vivin.net/?p=1516</guid>
		<description><![CDATA[I saw this question on StackOverflow today. I thought it was hilarious!]]></description>
			<content:encoded><![CDATA[<p>I saw <a href="http://stackoverflow.com/questions/2960179/hack-into-government-remove-speeding-ticket">this question</a> on <a href="http://stackoverflow.com">StackOverflow</a> today. I thought it was hilarious!</p>
<div id="attachment_1517" class="wp-caption aligncenter" style="width: 310px;  border: 1px solid #dddddd; background-color: #f3f3f3; padding-top: 4px; margin: 10px; text-align:center; display: block; margin-right: auto; margin-left: auto;"><a href="http://vivin.net/wordpress/wp-content/uploads/2010/06/sofail.png"><img src="http://vivin.net/wordpress/wp-content/uploads/2010/06/sofail-300x246.png" alt="How do I hack into the government?" title="StackOverflow FAIL" width="300" height="246" class="size-medium wp-image-1517" /></a><p style=' padding: 0 4px 5px; margin: 0;'  class="wp-caption-text">Funny StackOverflow question</p></div>
<br /><a href="http://vivin.net/?p=1516#comments" title="Comments on &quot;StackOverflow FAIL&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1516" alt="Comments" /></a><img src="http://feeds.feedburner.com/~r/RoughBook/~4/DKZolKYut8s" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2010/06/02/stackoverflow-fail/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wordpress/wp-content/uploads/2010/06/sofail-150x150.png" />
		<media:content url="http://vivin.net/wordpress/wp-content/uploads/2010/06/sofail.png" medium="image">
			<media:title type="html">StackOverflow FAIL</media:title>
			<media:description type="html">Funny StackOverflow question</media:description>
			<media:thumbnail url="http://vivin.net/wordpress/wp-content/uploads/2010/06/sofail-150x150.png" />
		</media:content>
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1516" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
	<feedburner:origLink>http://vivin.net/2010/06/02/stackoverflow-fail/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
		<item>
		<title>Some pictures taken with my Nikon D3000</title>
		<link>http://feedproxy.google.com/~r/RoughBook/~3/V4g4UHA2qmw/</link>
		<comments>http://vivin.net/2010/05/27/some-pictures-taken-with-my-nikon-d3000/#comments</comments>
		<pubDate>Thu, 27 May 2010 22:24:14 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Photography]]></category>
		<category><![CDATA[amateur photography]]></category>
		<category><![CDATA[d3000]]></category>
		<category><![CDATA[dslr]]></category>
		<category><![CDATA[nikon]]></category>
		<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://vivin.net/?p=1508</guid>
		<description><![CDATA[I bought a new camera a few months ago. It is a Nikon D3000 and it is my very first DSLR. I&#8217;ve always had point-and-shoot cameras and I&#8217;ve tried to take nice pictures with them, but they were obviously lacking. I finally decided to take the plunge and buy an actual DSLR. I got a [...]]]></description>
			<content:encoded><![CDATA[<p>I bought a new camera a few months ago. It is a Nikon D3000 and it is my very first DSLR. I&#8217;ve always had point-and-shoot cameras and I&#8217;ve tried to take nice pictures with them, but they were obviously lacking. I finally decided to take the plunge and buy an actual DSLR. I got a very good deal from Amazon and got an entire kit, complete with a tripod. I also bought some filters. I&#8217;ve taken a bunch of pictures with it, but I haven&#8217;t really uploaded them anywhere. These are a few that I like; there are more and I may upload them later.</p>
<p>Bear in mind that the pictures are somewhat large and take a little while to load (around 10 seconds unfortunately; my upstream speed is crap).</p>

<div class="ngg-galleryoverview" id="ngg-gallery-1-1508">


	<!-- Piclense link -->
	<div class="piclenselink">
		<a class="piclenselink" href="javascript:PicLensLite.start({feedUrl:'http://vivin.net/wordpress/wp-content/plugins/nextgen-gallery/xml/media-rss.php?gid=1&amp;mode=gallery'});">
			[View with PicLens]		</a>
	</div>
	
	<!-- Thumbnails -->
		
	<div id="ngg-image-28" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/pavedstones.jpg" title="Paved stones at the Portuguese Vyppikotta Seminary at Kottayil Kovilakom in Chendamangalam" class="shutterset_set_1" >
								<img title="Paved Stones" alt="Paved Stones" src="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/thumbs/thumbs_pavedstones.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-29" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/reflection.jpg" title="Reflection off a brass vase" class="shutterset_set_1" >
								<img title="Reflection" alt="Reflection" src="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/thumbs/thumbs_reflection.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-27" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/lamp.jpg" title="A little lighted lamp. I used picasa for some effects." class="shutterset_set_1" >
								<img title="Little lamp" alt="Little lamp" src="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/thumbs/thumbs_lamp.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-25" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/flower3.jpg" title="Not sure what this flower is called, but it was in our garden in India." class="shutterset_set_1" >
								<img title="Flower" alt="Flower" src="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/thumbs/thumbs_flower3.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-26" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/goldendish.jpg" title="Dishes" class="shutterset_set_1" >
								<img title="Golden Dishes" alt="Golden Dishes" src="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/thumbs/thumbs_goldendish.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-23" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/flower1.jpg" title="Another picture of the flower." class="shutterset_set_1" >
								<img title="Flower" alt="Flower" src="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/thumbs/thumbs_flower1.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-24" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/flower2.jpg" title="Same flower, from the side." class="shutterset_set_1" >
								<img title="Flower" alt="Flower" src="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/thumbs/thumbs_flower2.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-22" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/chains.jpg" title="These were brass chains hanging from the ceiling." class="shutterset_set_1" >
								<img title="Chains" alt="Chains" src="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/thumbs/thumbs_chains.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-30" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/leaf.jpg" title="Close-up shot of a leaf after the rain." class="shutterset_set_1" >
								<img title="Leaf" alt="Leaf" src="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/thumbs/thumbs_leaf.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-31" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/raindropsonleaf.jpg" title="Shot of a leaf with raindrops on it." class="shutterset_set_1" >
								<img title="raindropsonleaf" alt="raindropsonleaf" src="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/thumbs/thumbs_raindropsonleaf.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>


<p>Comments are appreciated <img src='http://vivin.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br /><a href="http://vivin.net/?p=1508#comments" title="Comments on &quot;Some pictures taken with my Nikon D3000&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1508" alt="Comments" /></a><img src="http://feeds.feedburner.com/~r/RoughBook/~4/V4g4UHA2qmw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2010/05/27/some-pictures-taken-with-my-nikon-d3000/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/thumbs/thumbs_pavedstones.jpg" />
		<media:content url="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/thumbs/thumbs_pavedstones.jpg" medium="image">
			<media:title type="html">Paved Stones</media:title>
		</media:content>
		<media:content url="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/thumbs/thumbs_reflection.jpg" medium="image">
			<media:title type="html">Reflection</media:title>
		</media:content>
		<media:content url="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/thumbs/thumbs_lamp.jpg" medium="image">
			<media:title type="html">Little lamp</media:title>
		</media:content>
		<media:content url="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/thumbs/thumbs_flower3.jpg" medium="image">
			<media:title type="html">Flower</media:title>
		</media:content>
		<media:content url="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/thumbs/thumbs_goldendish.jpg" medium="image">
			<media:title type="html">Golden Dishes</media:title>
		</media:content>
		<media:content url="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/thumbs/thumbs_flower1.jpg" medium="image">
			<media:title type="html">Flower</media:title>
		</media:content>
		<media:content url="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/thumbs/thumbs_flower2.jpg" medium="image">
			<media:title type="html">Flower</media:title>
		</media:content>
		<media:content url="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/thumbs/thumbs_chains.jpg" medium="image">
			<media:title type="html">Chains</media:title>
		</media:content>
		<media:content url="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/thumbs/thumbs_leaf.jpg" medium="image">
			<media:title type="html">Leaf</media:title>
		</media:content>
		<media:content url="http://vivin.net/wordpress/wp-content/gallery/my-nikon-d3000-photos/thumbs/thumbs_raindropsonleaf.jpg" medium="image">
			<media:title type="html">raindropsonleaf</media:title>
		</media:content>
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1508" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
	<feedburner:origLink>http://vivin.net/2010/05/27/some-pictures-taken-with-my-nikon-d3000/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
		<item>
		<title>The XBOX is a piece of shit</title>
		<link>http://feedproxy.google.com/~r/RoughBook/~3/NShCnrO72yM/</link>
		<comments>http://vivin.net/2010/04/22/the-xbox-is-a-piece-of-shit/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 03:01:45 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Musings, Ramblings, and Inanities]]></category>
		<category><![CDATA[Xbox 360]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[open tray error]]></category>
		<category><![CDATA[rant]]></category>
		<category><![CDATA[xbox 360]]></category>

		<guid isPermaLink="false">http://vivin.net/?p=1506</guid>
		<description><![CDATA[Thanks Microsoft. I have a console that&#8217;s barely over a year old and I already have an open tray error. I bought a new console because my old one died after I sent it back to you TWICE. It also had an open tray error. Thanks a lot Microsoft for MAKING SUCH A SHITTY CONSOLE. [...]]]></description>
			<content:encoded><![CDATA[<p>Thanks Microsoft. I have a console that&#8217;s barely over a year old and I already have an open tray error. I bought a new console because my old one died after I sent it back to you TWICE. It also had an open tray error. Thanks a lot Microsoft for MAKING SUCH A SHITTY CONSOLE. I have seen retarded monkeys make better console. Honestly, just what kind of shitty racket are you douchebags running? Are you guys so fucking stupid that you can&#8217;t even make a DVD drive that WORKS? Are you seriously THAT DUMB? Not only that, you want me to pay $99 to get it fixed because you retards are too damn stupid to make it right the first time? Fuck you.</p>
<br /><a href="http://vivin.net/?p=1506#comments" title="Comments on &quot;The XBOX is a piece of shit&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1506" alt="Comments" /></a><img src="http://feeds.feedburner.com/~r/RoughBook/~4/NShCnrO72yM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2010/04/22/the-xbox-is-a-piece-of-shit/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1506" />
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1506" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
	<feedburner:origLink>http://vivin.net/2010/04/22/the-xbox-is-a-piece-of-shit/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
		<item>
		<title>vim: removing blank lines</title>
		<link>http://feedproxy.google.com/~r/RoughBook/~3/eyI_9XlnZrI/</link>
		<comments>http://vivin.net/2010/04/06/vim-removing-blank-lines/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 21:44:00 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Nerdy Stuff]]></category>
		<category><![CDATA[blank lines]]></category>
		<category><![CDATA[editing]]></category>
		<category><![CDATA[editors]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://vivin.net/?p=1500</guid>
		<description><![CDATA[This always seems to get me and I have to figure it out every time. Sometimes I have files with blank lines and I want to get rid of them. Here is how you do it in vim (one of the many ways, actually). First you want to get rid of whitespaces: :%s/^\s\+$// Note: I [...]]]></description>
			<content:encoded><![CDATA[<p>This always seems to get me and I have to figure it out every time. Sometimes I have  files with blank lines and I want to get rid of them. Here is how you do it in vim (one of the many ways, actually). First you want to get rid of whitespaces:</p>
<pre>:%s/^\s\+$//</pre>
<p><strong>Note:</strong> I used a blockquote here because WordPress doesn&#8217;t like two forward slashes in the sourcecode tag.</p>
<p>Then, you have to do this:</p>
<pre class="brush: php">
:%!grep -v  &quot;^$&quot;
</pre>
<p>Of course, this only works in Linux, BSD, or any of the other Unices.</p>
<br /><a href="http://vivin.net/?p=1500#comments" title="Comments on &quot;vim: removing blank lines&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1500" alt="Comments" /></a><img src="http://feeds.feedburner.com/~r/RoughBook/~4/eyI_9XlnZrI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2010/04/06/vim-removing-blank-lines/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1500" />
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1500" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
	<feedburner:origLink>http://vivin.net/2010/04/06/vim-removing-blank-lines/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
		<item>
		<title>Comments issue fixed</title>
		<link>http://feedproxy.google.com/~r/RoughBook/~3/Ie5bHwt5Cys/</link>
		<comments>http://vivin.net/2010/04/05/comments-issue-fixed/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 20:38:12 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Nerdy Stuff]]></category>
		<category><![CDATA[akismet]]></category>
		<category><![CDATA[comment spam]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[my website]]></category>
		<category><![CDATA[recaptcha]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://vivin.net/?p=1497</guid>
		<description><![CDATA[The recaptcha plugin had an update which fixed the comments issue. Comments should no longer be marked as spam. I apologize if you commented here and your comment did not show up! It may have been deleted from the spam queue.]]></description>
			<content:encoded><![CDATA[<p>The recaptcha plugin had an update which fixed the comments issue. Comments should no longer be marked as spam. I apologize if you commented here and your comment did not show up! It may have been deleted from the spam queue.</p>
<br /><a href="http://vivin.net/?p=1497#comments" title="Comments on &quot;Comments issue fixed&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1497" alt="Comments" /></a><img src="http://feeds.feedburner.com/~r/RoughBook/~4/Ie5bHwt5Cys" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2010/04/05/comments-issue-fixed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1497" />
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1497" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
	<feedburner:origLink>http://vivin.net/2010/04/05/comments-issue-fixed/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
		<item>
		<title>Regula: An annotation-based form-validator written in Javascript</title>
		<link>http://feedproxy.google.com/~r/RoughBook/~3/cGytAqXtB4Y/</link>
		<comments>http://vivin.net/2010/03/30/regula-an-annotation-based-form-validator-written-in-javascript/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 15:16:27 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Programming and Development]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[annotation]]></category>
		<category><![CDATA[annotation-based form-validation]]></category>
		<category><![CDATA[annotation-based validation]]></category>
		<category><![CDATA[annotations]]></category>
		<category><![CDATA[bean-validation]]></category>
		<category><![CDATA[form-validation]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[hibernate]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[javascript form-validation]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[regula]]></category>

		<guid isPermaLink="false">http://vivin.net/?p=1477</guid>
		<description><![CDATA[Regula is an annotation-based form-validation framework written in Javascript. There already exist a few frameworks that address form-validation in Javascript, but I have found them to be somewhat lacking. I have thought about writing one of my own for some time, but I honestly had no idea what form it would or should take. I [...]]]></description>
			<content:encoded><![CDATA[<p><strong><em>Regula</em></strong> is an annotation-based form-validation framework written in Javascript. There already exist a few frameworks that address form-validation in Javascript, but I have found them to be somewhat lacking. I have thought about writing one of my own for some time, but I honestly had no idea what form it would or should take. I knew that I wanted to make one that was easy to use, flexible, and easily extensible (custom validation rules). I finally got an idea as to the form my framework should take, when I was looking at <a href="http://www.hibernate.org/">Hibernate</a> <a href="http://docs.jboss.org/hibernate/stable/validator/reference/en/html_single/">bean-validation</a>. I like the fact that you can set constraints by using annotations like <em>@NotNull</em> or  <em>@NotEmpty</em>. That way, when you look at the bean, you are immediately aware of the constraints attached to it. I wanted to do something similar in HTML.<br />
<span id="more-1477"></span><br />
Enter HTML5. HTML5 supports and endorses <a href="http://dev.w3.org/html5/spec/dom.html#embedding-custom-non-visible-data">custom attributes</a> in HTML tags. Purists may scream &#8220;No!&#8221;, but I think it is a useful feature. However, like all features it has the potential for abuse. But that&#8217;s another topic entirely. Anyway, I started thinking &#8211; what if I could use a custom attribute to specify the constraints? Then I could use Javascript to identify those constraints and then enforce them during validation. What I was thinking of, was to do something like this:</p>
<pre class="brush: html">
&lt;input id = &quot;myInput&quot;
         type = &quot;text&quot;
         data-constraints = &#039;@NotEmpty @IsNumeric @Between(min=1, max=5)&#039;&gt;
</pre>
<p>That bit of code describes a text box which cannot be empty, and which expects a numeric value between 1 and 5. With this basic design in mind, I started working on my framework. It took me about a week of on-and-off work (maybe 3 days actual work) but I&#8217;ve come up with something that is, in my humble opinion, a flexible and easy to use framework. I plan to document the use of this library/framework more thoroughly, but this post should serve as a gentle introduction to the framework and its features.</p>
<p>In <em><strong>Regula</strong></em> (which, by the way, means &#8220;rule&#8221; in Latin) form elements (input elements or even the form elements) can have constraints attached to them in a similar fashion to the example I described earlier. There is a small difference, however:</p>
<pre class="brush: html">
&lt;input id = &quot;myInput&quot;
         class = &quot;regula-validation&quot;
         type = &quot;text&quot;
         data-constraints = &#039;@NotEmpty @IsNumeric @Between(min=1, max=5)&#039;&gt;
</pre>
<p>As you can see, I use a class name of <em>regula-validation</em> which tells the framework that this input element has constraints attached to it. The reason I did this was for efficiency reasons. It&#8217;s much more efficient to grab all elements that have a class name of <em>regula-validation</em> than walking the whole document tree to search for nodes that have a <em>data-constraints</em> attribute.</p>
<p>After you annotate the input elements with their constraints, you&#8217;re halfway there already! All you have to do after that is add a script tag for the framework:</p>
<pre class="brush: html">
  &lt;script type = &quot;text/javascript&quot; src=&quot;regula.js&quot;&gt;&lt;/script&gt;
</pre>
<p>And then add the necessary Javascript to validate the form (example uses jQuery):</p>
<pre class="brush: javascript">
jQuery(document).ready(function() {
    // must call this first. The best place would be in an
    // onload handler. This function looks for elements with
    // a class name of &quot;regula-validation&quot; and binds the
    // appropriate constraints to the elements
    regula.bind(); 

    jQuery(&quot;#myForm&quot;).submit(function() {
        // this functions performs the actual validation
        var validationResults = regula.validate();

        for(var index in validationResults) {
             var validationResult = validationResults[index];
             alert(validationResult.message);
        }
    });
});
</pre>
<p>That&#8217;s pretty much all there is to it. More advanced uses of the framework don&#8217;t deviate that much from this pattern. Compared to other form-validation frameworks (that I&#8217;ve seen), validation will not stop on the first failing element. The <em>validate</em> function runs through every input element and validates it against the constraints bound to that element, and returns an array of &#8220;validation results&#8221;. Each &#8220;validation result&#8221; element in the array has the following properties:</p>
<ul>
<li><em><strong>constraintName</strong></em> &#8211; the name of the failing constraint</li>
<li><em><strong>custom</strong></em> &#8211; a flag that says whether this is a custom constraint or not</li>
<li><em><strong>constraintParameters</strong></em> &#8211; An array of objects that represents the parameters passed to this constraint (defined in the HTML. For example <em>@Max(max=5)</em>, where you have a parameter who&#8217;s name is <em>max</em> and who&#8217;s value is <em>5</em>. There&#8217;s a little more to this, but like I said, this is supposed to be a gentle introduction <img src='http://vivin.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</li>
<li><em><strong>receivedParameters</strong></em> &#8211; A hash (organized such that the name of the parameter is the key, and the value is well, the value) of parameters that the validator function received (helpful when you have a custom validator).
<li><em><strong>failingElements</strong></em> &#8211; An array containing references to the actual input element or elements (in the case of form-specific constraints) that failed the constraint.</li>
<li><em><strong>message</strong></em> &#8211; The error message.</li>
</ul>
<br /><a href="http://vivin.net/?p=1477#comments" title="Comments on &quot;Regula: An annotation-based form-validator written in Javascript&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1477" alt="Comments" /></a><img src="http://feeds.feedburner.com/~r/RoughBook/~4/cGytAqXtB4Y" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2010/03/30/regula-an-annotation-based-form-validator-written-in-javascript/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1477" />
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1477" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
	<feedburner:origLink>http://vivin.net/2010/03/30/regula-an-annotation-based-form-validator-written-in-javascript/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
		<item>
		<title>Akismet flagging everything as spam</title>
		<link>http://feedproxy.google.com/~r/RoughBook/~3/IkYd3cU7_WQ/</link>
		<comments>http://vivin.net/2010/03/29/akismet-flagging-everything-as-spam/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 02:19:18 +0000</pubDate>
		<dc:creator>vivin</dc:creator>
				<category><![CDATA[Nerdy Stuff]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[akismet]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://vivin.net/?p=1469</guid>
		<description><![CDATA[If you&#8217;ve been commenting on posts and now seeing anything, it&#8217;s because Akismet as been flagging all comments as spam. I don&#8217;t know why. I think it started after I upgraded WordPress. I&#8217;ve turned it off for now. Oh well.]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve been commenting on posts and now seeing anything, it&#8217;s because Akismet as been flagging all comments as spam. I don&#8217;t know why. I think it started after I upgraded WordPress. I&#8217;ve turned it off for now. Oh well.</p>
<br /><a href="http://vivin.net/?p=1469#comments" title="Comments on &quot;Akismet flagging everything as spam&quot;"><img src="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1469" alt="Comments" /></a><img src="http://feeds.feedburner.com/~r/RoughBook/~4/IkYd3cU7_WQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://vivin.net/2010/03/29/akismet-flagging-everything-as-spam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:thumbnail url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1469" />
		<media:content url="http://vivin.net/wp-content/plugins/feed-comments-number/image.php?1469" medium="image">
			<media:title type="html">Comments</media:title>
		</media:content>
	<feedburner:origLink>http://vivin.net/2010/03/29/akismet-flagging-everything-as-spam/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rss</feedburner:origLink></item>
	</channel>
</rss>
