<?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>Richard Carter &#187; Technology</title>
	<atom:link href="http://blog.rickyc.org/category/tech/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rickyc.org</link>
	<description>Computer Science &#38; Game Development Student at North Carolina State University</description>
	<lastBuildDate>Thu, 22 Sep 2011 06:58:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Microsoft Security Essentials Connection Failed in Windows XP</title>
		<link>http://blog.rickyc.org/2010/11/30/microsoft-security-essentials-connection-failed-in-windows-xp/</link>
		<comments>http://blog.rickyc.org/2010/11/30/microsoft-security-essentials-connection-failed-in-windows-xp/#comments</comments>
		<pubDate>Tue, 30 Nov 2010 14:23:18 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.rickyc.org/?p=140</guid>
		<description><![CDATA[I reformatted a laptop with Windows XP SP3; updated drivers, completely ran Windows Update, and installed Firefox and Microsoft Office. Then I went to install Microsoft Security Essentials. It installed fine, but when it tried to update virus and spyware definitions, it got all the way to the end (&#8220;Installing&#8230;&#8221;) and then had a &#8220;Connection [...]]]></description>
			<content:encoded><![CDATA[<p>I reformatted a laptop with Windows XP SP3; updated drivers, completely ran Windows Update, and installed Firefox and Microsoft Office. Then I went to install Microsoft Security Essentials. It installed fine, but when it tried to update virus and spyware definitions, it got all the way to the end (&#8220;Installing&#8230;&#8221;) and then had a &#8220;Connection Failed&#8221; error.<br />
<span id="more-140"></span></p>
<p>It took a bit of searching but I finally found the fix: <strong>go into C:\Windows &#8212; the Temp directory is missing! Create a new folder, name it &#8220;Temp&#8221;, and then update again and it will succeed.</strong></p>
<p>I&#8217;m baffled as to what point in the process of clean installing this computer the Temp folder got deleted. I thought it was a standard folder, and obvious MSE thinks so too! This is definitely a squeaky clean computer, with all official software (nothing illegal), I got the CDs from Microsoft and I&#8217;m behind a NAT router so nothing unsolicited is coming in; I&#8217;m completely confident that the computer has no viruses or spyware which could have removed the Temp folder.</p>
<p>Anyway, I hope this helped you! If it did and you have a website or blog, please write a post about this (spread the word) and consider linking back to me so that hopefully this entry can rise to the top of search results.</p>



Share this article:


	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fblog.rickyc.org%2F2010%2F11%2F30%2Fmicrosoft-security-essentials-connection-failed-in-windows-xp%2F&amp;partner=sociable" title="Print"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://blog.rickyc.org/feed/" title="RSS"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=Microsoft%20Security%20Essentials%20Connection%20Failed%20in%20Windows%20XP&amp;body=http%3A%2F%2Fblog.rickyc.org%2F2010%2F11%2F30%2Fmicrosoft-security-essentials-connection-failed-in-windows-xp%2F" title="email"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.rickyc.org%2F2010%2F11%2F30%2Fmicrosoft-security-essentials-connection-failed-in-windows-xp%2F&amp;title=Microsoft%20Security%20Essentials%20Connection%20Failed%20in%20Windows%20XP&amp;bodytext=I%20reformatted%20a%20laptop%20with%20Windows%20XP%20SP3%3B%20updated%20drivers%2C%20completely%20ran%20Windows%20Update%2C%20and%20installed%20Firefox%20and%20Microsoft%20Office.%20Then%20I%20went%20to%20install%20Microsoft%20Security%20Essentials.%20It%20installed%20fine%2C%20but%20when%20it%20tried%20to%20update%20virus%20and%20spy" title="Digg"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fblog.rickyc.org%2F2010%2F11%2F30%2Fmicrosoft-security-essentials-connection-failed-in-windows-xp%2F&amp;title=Microsoft%20Security%20Essentials%20Connection%20Failed%20in%20Windows%20XP&amp;notes=I%20reformatted%20a%20laptop%20with%20Windows%20XP%20SP3%3B%20updated%20drivers%2C%20completely%20ran%20Windows%20Update%2C%20and%20installed%20Firefox%20and%20Microsoft%20Office.%20Then%20I%20went%20to%20install%20Microsoft%20Security%20Essentials.%20It%20installed%20fine%2C%20but%20when%20it%20tried%20to%20update%20virus%20and%20spy" title="del.icio.us"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.rickyc.org%2F2010%2F11%2F30%2Fmicrosoft-security-essentials-connection-failed-in-windows-xp%2F&amp;t=Microsoft%20Security%20Essentials%20Connection%20Failed%20in%20Windows%20XP" title="Facebook"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Microsoft%20Security%20Essentials%20Connection%20Failed%20in%20Windows%20XP%20-%20http%3A%2F%2Fblog.rickyc.org%2F2010%2F11%2F30%2Fmicrosoft-security-essentials-connection-failed-in-windows-xp%2F" title="Twitter"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fblog.rickyc.org%2F2010%2F11%2F30%2Fmicrosoft-security-essentials-connection-failed-in-windows-xp%2F&amp;title=Microsoft%20Security%20Essentials%20Connection%20Failed%20in%20Windows%20XP" title="Live"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.rickyc.org%2F2010%2F11%2F30%2Fmicrosoft-security-essentials-connection-failed-in-windows-xp%2F&amp;title=Microsoft%20Security%20Essentials%20Connection%20Failed%20in%20Windows%20XP" title="StumbleUpon"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.rickyc.org/2010/11/30/microsoft-security-essentials-connection-failed-in-windows-xp/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Camtasia Studio &#8211; Black Box Mouse Cursor on Playback of .camproj File</title>
		<link>http://blog.rickyc.org/2010/07/20/camtasia-studio-black-box-mouse-cursor-on-playback-of-camproj-file/</link>
		<comments>http://blog.rickyc.org/2010/07/20/camtasia-studio-black-box-mouse-cursor-on-playback-of-camproj-file/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 13:06:29 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.rickyc.org/?p=97</guid>
		<description><![CDATA[Symptom: When you double-click a .camproj file and play it in Camtasia Studio, the mouse cursor is a black box. Resolution: If your display settings are in 16-bit color mode, change them to 32-bit color. Windows XP: Right-click the desktop and hit Properties, go to the Settings tab. Under &#8220;Color quality&#8221;, change the drop-down from [...]]]></description>
			<content:encoded><![CDATA[<h2>Symptom:</h2>
<p>When you double-click a .camproj file and play it in Camtasia Studio, the mouse cursor is a black box.<br />
<span id="more-97"></span></p>
<h2>Resolution:</h2>
<p>If your display settings are in 16-bit color mode, change them to 32-bit color.</p>
<p><strong>Windows XP:</strong> Right-click the desktop and hit Properties, go to the Settings tab. Under &#8220;Color quality&#8221;, change the drop-down from &#8220;Medium (16 bit)&#8221; to &#8220;Highest (32 bit)&#8221;.<br />
<strong>Windows 7:</strong> Right-click the desktop and hit Screen Resolution, then Advanced settings, and click the List All Modes button. Choose the one with the same resolution as your current screen resolution but with &#8220;True Color (32 bit)&#8221;.</p>



Share this article:


	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fblog.rickyc.org%2F2010%2F07%2F20%2Fcamtasia-studio-black-box-mouse-cursor-on-playback-of-camproj-file%2F&amp;partner=sociable" title="Print"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://blog.rickyc.org/feed/" title="RSS"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=Camtasia%20Studio%20-%20Black%20Box%20Mouse%20Cursor%20on%20Playback%20of%20.camproj%20File&amp;body=http%3A%2F%2Fblog.rickyc.org%2F2010%2F07%2F20%2Fcamtasia-studio-black-box-mouse-cursor-on-playback-of-camproj-file%2F" title="email"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.rickyc.org%2F2010%2F07%2F20%2Fcamtasia-studio-black-box-mouse-cursor-on-playback-of-camproj-file%2F&amp;title=Camtasia%20Studio%20-%20Black%20Box%20Mouse%20Cursor%20on%20Playback%20of%20.camproj%20File&amp;bodytext=Symptom%3A%0D%0AWhen%20you%20double-click%20a%20.camproj%20file%20and%20play%20it%20in%20Camtasia%20Studio%2C%20the%20mouse%20cursor%20is%20a%20black%20box.%0D%0A%0D%0AResolution%3A%0D%0AIf%20your%20display%20settings%20are%20in%2016-bit%20color%20mode%2C%20change%20them%20to%2032-bit%20color.%0D%0A%0D%0AWindows%20XP%3A%20Right-click%20the%20desktop%20an" title="Digg"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fblog.rickyc.org%2F2010%2F07%2F20%2Fcamtasia-studio-black-box-mouse-cursor-on-playback-of-camproj-file%2F&amp;title=Camtasia%20Studio%20-%20Black%20Box%20Mouse%20Cursor%20on%20Playback%20of%20.camproj%20File&amp;notes=Symptom%3A%0D%0AWhen%20you%20double-click%20a%20.camproj%20file%20and%20play%20it%20in%20Camtasia%20Studio%2C%20the%20mouse%20cursor%20is%20a%20black%20box.%0D%0A%0D%0AResolution%3A%0D%0AIf%20your%20display%20settings%20are%20in%2016-bit%20color%20mode%2C%20change%20them%20to%2032-bit%20color.%0D%0A%0D%0AWindows%20XP%3A%20Right-click%20the%20desktop%20an" title="del.icio.us"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.rickyc.org%2F2010%2F07%2F20%2Fcamtasia-studio-black-box-mouse-cursor-on-playback-of-camproj-file%2F&amp;t=Camtasia%20Studio%20-%20Black%20Box%20Mouse%20Cursor%20on%20Playback%20of%20.camproj%20File" title="Facebook"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Camtasia%20Studio%20-%20Black%20Box%20Mouse%20Cursor%20on%20Playback%20of%20.camproj%20File%20-%20http%3A%2F%2Fblog.rickyc.org%2F2010%2F07%2F20%2Fcamtasia-studio-black-box-mouse-cursor-on-playback-of-camproj-file%2F" title="Twitter"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fblog.rickyc.org%2F2010%2F07%2F20%2Fcamtasia-studio-black-box-mouse-cursor-on-playback-of-camproj-file%2F&amp;title=Camtasia%20Studio%20-%20Black%20Box%20Mouse%20Cursor%20on%20Playback%20of%20.camproj%20File" title="Live"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.rickyc.org%2F2010%2F07%2F20%2Fcamtasia-studio-black-box-mouse-cursor-on-playback-of-camproj-file%2F&amp;title=Camtasia%20Studio%20-%20Black%20Box%20Mouse%20Cursor%20on%20Playback%20of%20.camproj%20File" title="StumbleUpon"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.rickyc.org/2010/07/20/camtasia-studio-black-box-mouse-cursor-on-playback-of-camproj-file/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Backup Your Data! (introduction)</title>
		<link>http://blog.rickyc.org/2009/08/04/backup-your-data-introduction/</link>
		<comments>http://blog.rickyc.org/2009/08/04/backup-your-data-introduction/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 16:40:00 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[backup]]></category>

		<guid isPermaLink="false">http://rickyc.org/2009/08/04/backup-your-data-introduction/</guid>
		<description><![CDATA[Imagine you wake up tomorrow, sit at your computer, and Windows won’t boot because of a hard drive failure. What would your first thought be? Really think about it for a minute: what would you lose? Assuming, of course, that the hard drive is not recoverable. What kinds of family photos would be gone forever? [...]]]></description>
			<content:encoded><![CDATA[<p>Imagine you wake up tomorrow, sit at your computer, and Windows won’t boot because of a hard drive failure. What would your first thought be? <strong>Really think about it for a minute: what would you lose?</strong> Assuming, of course, that the hard drive is not recoverable. What kinds of family photos would be gone forever? How much work, how many school papers, how much progress would be irreversibly ripped from you?<br />
<span id="more-55"></span></p>
<p>“No,” you say, “I store all my documents on my flash drive.” Okay, but do you store them on your hard drive too? All of them? Current copies? Do you <em>really</em> save your document to both places as you work? And your photos are backed up there too? What if it wasn’t your hard drive that broke, but your flash drive: you plug in your flash drive and Windows doesn’t even budge. There’s just nothing. Then what would you lose?</p>
<p>These are both very real situations. Hard drives today generally spin at either 5,400 RPM (revolutions per minute) or 7,200. Simple math tell us that’s 90-120 revolutions <strong>per second</strong>. Furthermore, the technology is not so different from a record player. Think of a record spinning 90-120 rotations per second, with a “needle” hovering just <span style="text-decoration: underline;">nanometers </span>above it, but if the needle touches the drive, anything it touches will likely be permanently damaged. There really is no room for error here, and it’s a miracle of modern science that hard drives are as reliable as they are.</p>
<p>Flash drives, on the other hand, have no moving parts; but they are just as susceptible to corruption, if not more so. Do a search for flash drive reviews, and pick any model of flash drive (even your own), and you are bound to see reviewer after reviewer complaining of their flash drive having broken and losing data. You could be next.</p>
<p><strong>Have I scared you enough?</strong></p>
<p>This is the introduction into 4 blog posts that I will be posting in the next few days. I will tell you exactly why I could lose my laptop and external drives, and I wouldn’t actually lose any of my precious data. <strong>Because a laptop can be replaced, and a flash drive can be replaced cheaply, but data is invaluable.</strong> You need to act <strong>now</strong> to protect your data, before it’s too late.</p>
<p><em>Update 4/17/2010:</em> This turned out to be the introduction and the conclusion; I never wrote the rest of the articles. I have no idea why I just stopped, but I apologize to anyone who might read this and wonder where the others are.</p>



Share this article:


	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fblog.rickyc.org%2F2009%2F08%2F04%2Fbackup-your-data-introduction%2F&amp;partner=sociable" title="Print"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://blog.rickyc.org/feed/" title="RSS"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=Backup%20Your%20Data%21%20%28introduction%29&amp;body=http%3A%2F%2Fblog.rickyc.org%2F2009%2F08%2F04%2Fbackup-your-data-introduction%2F" title="email"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.rickyc.org%2F2009%2F08%2F04%2Fbackup-your-data-introduction%2F&amp;title=Backup%20Your%20Data%21%20%28introduction%29&amp;bodytext=Imagine%20you%20wake%20up%20tomorrow%2C%20sit%20at%20your%20computer%2C%20and%20Windows%20won%E2%80%99t%20boot%20because%20of%20a%20hard%20drive%20failure.%20What%20would%20your%20first%20thought%20be%3F%20Really%20think%20about%20it%20for%20a%20minute%3A%20what%20would%20you%20lose%3F%20Assuming%2C%20of%20course%2C%20that%20the%20hard%20drive%20is%20not%20r" title="Digg"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fblog.rickyc.org%2F2009%2F08%2F04%2Fbackup-your-data-introduction%2F&amp;title=Backup%20Your%20Data%21%20%28introduction%29&amp;notes=Imagine%20you%20wake%20up%20tomorrow%2C%20sit%20at%20your%20computer%2C%20and%20Windows%20won%E2%80%99t%20boot%20because%20of%20a%20hard%20drive%20failure.%20What%20would%20your%20first%20thought%20be%3F%20Really%20think%20about%20it%20for%20a%20minute%3A%20what%20would%20you%20lose%3F%20Assuming%2C%20of%20course%2C%20that%20the%20hard%20drive%20is%20not%20r" title="del.icio.us"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.rickyc.org%2F2009%2F08%2F04%2Fbackup-your-data-introduction%2F&amp;t=Backup%20Your%20Data%21%20%28introduction%29" title="Facebook"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Backup%20Your%20Data%21%20%28introduction%29%20-%20http%3A%2F%2Fblog.rickyc.org%2F2009%2F08%2F04%2Fbackup-your-data-introduction%2F" title="Twitter"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fblog.rickyc.org%2F2009%2F08%2F04%2Fbackup-your-data-introduction%2F&amp;title=Backup%20Your%20Data%21%20%28introduction%29" title="Live"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.rickyc.org%2F2009%2F08%2F04%2Fbackup-your-data-introduction%2F&amp;title=Backup%20Your%20Data%21%20%28introduction%29" title="StumbleUpon"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.rickyc.org/2009/08/04/backup-your-data-introduction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Google Voice Calling Cards arrived!</title>
		<link>http://blog.rickyc.org/2009/08/04/my-google-voice-calling-cards-arrived/</link>
		<comments>http://blog.rickyc.org/2009/08/04/my-google-voice-calling-cards-arrived/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 12:43:00 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[google voice]]></category>

		<guid isPermaLink="false">http://rickyc.org/2009/08/04/my-google-voice-calling-cards-arrived/</guid>
		<description><![CDATA[Google Voice was holding a promotion where you could get 25 free calling cards. I thought I had missed it, but kept watch on my Google Voice page and suddenly the link appeared! I grabbed at the opportunity. That was only a few business days ago, and here they are, just arrived! The cards can [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://rickyc.org/blog/wp-content/uploads/2009/08/googlevoicecallingcard.jpg"><img style="border-bottom: 0px; border-left: 0px; margin: 0px 0px 10px 10px; display: inline; border-top: 0px; border-right: 0px" title="googlevoicecallingcard" border="0" alt="googlevoicecallingcard" align="right" src="http://rickyc.org/blog/wp-content/uploads/2009/08/googlevoicecallingcard_thumb.jpg" width="244" height="184" /></a><span id="more-58"></span> Google Voice was holding a promotion where you could get 25 free calling cards. I thought I had missed it, but kept watch on my Google Voice page and suddenly the link appeared! I grabbed at the opportunity. That was only a few business days ago, and here they are, just arrived!</p>
<p>The cards can be printed with your Google number as well as your name and (optionally) your email address, mailing address, business, etc. I opted for my name, number, and school email. They are good quality cards, on good paper and bright colors. They’re not really blurry – that’s my cell phone camera at it’s finest. (I don’t currently own a working camera, but I need one!)</p>
<p>If you have a Google Voice account and didn’t hear of this offer, you may still be able to get in! Check your <a href="http://voice.google.com/" target="_blank">Google Voice page</a> and look under your balance on the left bar. You can’t miss it, if it’s there for you. If not, the cards are from <a href="http://www.iprint.com/" target="_blank">iPrint</a>, so you may be able to order them there if you feel so inclined.</p>



Share this article:


	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fblog.rickyc.org%2F2009%2F08%2F04%2Fmy-google-voice-calling-cards-arrived%2F&amp;partner=sociable" title="Print"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://blog.rickyc.org/feed/" title="RSS"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=My%20Google%20Voice%20Calling%20Cards%20arrived%21&amp;body=http%3A%2F%2Fblog.rickyc.org%2F2009%2F08%2F04%2Fmy-google-voice-calling-cards-arrived%2F" title="email"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.rickyc.org%2F2009%2F08%2F04%2Fmy-google-voice-calling-cards-arrived%2F&amp;title=My%20Google%20Voice%20Calling%20Cards%20arrived%21&amp;bodytext=%20Google%20Voice%20was%20holding%20a%20promotion%20where%20you%20could%20get%2025%20free%20calling%20cards.%20I%20thought%20I%20had%20missed%20it%2C%20but%20kept%20watch%20on%20my%20Google%20Voice%20page%20and%20suddenly%20the%20link%20appeared%21%20I%20grabbed%20at%20the%20opportunity.%20That%20was%20only%20a%20few%20business%20days%20ago%2C%20an" title="Digg"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fblog.rickyc.org%2F2009%2F08%2F04%2Fmy-google-voice-calling-cards-arrived%2F&amp;title=My%20Google%20Voice%20Calling%20Cards%20arrived%21&amp;notes=%20Google%20Voice%20was%20holding%20a%20promotion%20where%20you%20could%20get%2025%20free%20calling%20cards.%20I%20thought%20I%20had%20missed%20it%2C%20but%20kept%20watch%20on%20my%20Google%20Voice%20page%20and%20suddenly%20the%20link%20appeared%21%20I%20grabbed%20at%20the%20opportunity.%20That%20was%20only%20a%20few%20business%20days%20ago%2C%20an" title="del.icio.us"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.rickyc.org%2F2009%2F08%2F04%2Fmy-google-voice-calling-cards-arrived%2F&amp;t=My%20Google%20Voice%20Calling%20Cards%20arrived%21" title="Facebook"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=My%20Google%20Voice%20Calling%20Cards%20arrived%21%20-%20http%3A%2F%2Fblog.rickyc.org%2F2009%2F08%2F04%2Fmy-google-voice-calling-cards-arrived%2F" title="Twitter"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fblog.rickyc.org%2F2009%2F08%2F04%2Fmy-google-voice-calling-cards-arrived%2F&amp;title=My%20Google%20Voice%20Calling%20Cards%20arrived%21" title="Live"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.rickyc.org%2F2009%2F08%2F04%2Fmy-google-voice-calling-cards-arrived%2F&amp;title=My%20Google%20Voice%20Calling%20Cards%20arrived%21" title="StumbleUpon"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.rickyc.org/2009/08/04/my-google-voice-calling-cards-arrived/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JOGL Hello World</title>
		<link>http://blog.rickyc.org/2009/07/16/jogl-hello-world/</link>
		<comments>http://blog.rickyc.org/2009/07/16/jogl-hello-world/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 13:19:40 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Code Snippets/Tricks]]></category>

		<guid isPermaLink="false">http://blog.rickyc.org/?p=39</guid>
		<description><![CDATA[Here is a basic JOGL application: import java.awt.Frame; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.media.opengl.GL2; import javax.media.opengl.GLAutoDrawable; import javax.media.opengl.GLEventListener; import javax.media.opengl.awt.GLCanvas; import com.sun.opengl.util.Animator; public class JOGLAPP implements GLEventListener { &#160;&#160;public static void main(String[] args) { &#160;&#160;&#160;&#160;new JOGLAPP(); &#160;&#160;} &#160;&#160; &#160;&#160;Frame fr; &#160;&#160;GLCanvas canvas; &#160;&#160; &#160;&#160;public JOGLAPP() { &#160;&#160;&#160;&#160;fr = new Frame(&#34;JOGLAPP&#34;); &#160;&#160;&#160;&#160;canvas = new GLCanvas(); &#160;&#160;&#160;&#160;canvas.addGLEventListener(this); [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a basic JOGL application:<br />
<span id="more-39"></span></p>
<p><pre><code>import java.awt.Frame;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.media.opengl.GL2;
import javax.media.opengl.GLAutoDrawable;
import javax.media.opengl.GLEventListener;
import javax.media.opengl.awt.GLCanvas;

import com.sun.opengl.util.Animator;

public class JOGLAPP implements GLEventListener {
&nbsp;&nbsp;public static void main(String[] args) {
&nbsp;&nbsp;&nbsp;&nbsp;new JOGLAPP();
&nbsp;&nbsp;}
&nbsp;&nbsp;
&nbsp;&nbsp;Frame fr;
&nbsp;&nbsp;GLCanvas canvas;
&nbsp;&nbsp;
&nbsp;&nbsp;public JOGLAPP() {
&nbsp;&nbsp;&nbsp;&nbsp;fr = new Frame(&quot;JOGLAPP&quot;);
&nbsp;&nbsp;&nbsp;&nbsp;canvas = new GLCanvas();
&nbsp;&nbsp;&nbsp;&nbsp;canvas.addGLEventListener(this);
&nbsp;&nbsp;&nbsp;&nbsp;fr.add(canvas);
&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;Animator anim = new Animator(canvas);
&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;fr.setSize(300,300);
&nbsp;&nbsp;&nbsp;&nbsp;fr.setVisible(true);
&nbsp;&nbsp;&nbsp;&nbsp;anim.start();
&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;fr.addWindowListener(new WindowAdapter() {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@Override
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public void windowClosing(WindowEvent e) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;super.windowClosing(e);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.exit(0);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;});
&nbsp;&nbsp;}
&nbsp;&nbsp;
&nbsp;&nbsp;@Override
&nbsp;&nbsp;public void init(GLAutoDrawable drawable) {
&nbsp;&nbsp;&nbsp;&nbsp;GL2 gl = drawable.getGL().getGL2();
&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;gl.glClearColor(1.0f, 0.0f, 0.0f, 0.0f);
&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;// init opengl here
&nbsp;&nbsp;}

&nbsp;&nbsp;@Override
&nbsp;&nbsp;public void display(GLAutoDrawable drawable) {
&nbsp;&nbsp;&nbsp;&nbsp;GL2 gl = drawable.getGL().getGL2();
&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;gl.glClear(GL2.GL_COLOR_BUFFER_BIT | GL2.GL_DEPTH_BUFFER_BIT);
&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;// draw things here
&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;gl.glFinish();
&nbsp;&nbsp;}

&nbsp;&nbsp;@Override
&nbsp;&nbsp;public void dispose(GLAutoDrawable drawable) {
&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;}

&nbsp;&nbsp;@Override
&nbsp;&nbsp;public void reshape(GLAutoDrawable drawable, int x, int y, int width,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;int height) {
&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;}
&nbsp;&nbsp;
&nbsp;&nbsp;
}
</code></pre></p>



Share this article:


	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fblog.rickyc.org%2F2009%2F07%2F16%2Fjogl-hello-world%2F&amp;partner=sociable" title="Print"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://blog.rickyc.org/feed/" title="RSS"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=JOGL%20Hello%20World&amp;body=http%3A%2F%2Fblog.rickyc.org%2F2009%2F07%2F16%2Fjogl-hello-world%2F" title="email"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.rickyc.org%2F2009%2F07%2F16%2Fjogl-hello-world%2F&amp;title=JOGL%20Hello%20World&amp;bodytext=Here%20is%20a%20basic%20JOGL%20application%3A%0D%0A%0D%0A%0D%0Aimport%20java.awt.Frame%3B%0D%0Aimport%20java.awt.event.WindowAdapter%3B%0D%0Aimport%20java.awt.event.WindowEvent%3B%0D%0A%0D%0Aimport%20javax.media.opengl.GL2%3B%0D%0Aimport%20javax.media.opengl.GLAutoDrawable%3B%0D%0Aimport%20javax.media.opengl.GLEventLis" title="Digg"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fblog.rickyc.org%2F2009%2F07%2F16%2Fjogl-hello-world%2F&amp;title=JOGL%20Hello%20World&amp;notes=Here%20is%20a%20basic%20JOGL%20application%3A%0D%0A%0D%0A%0D%0Aimport%20java.awt.Frame%3B%0D%0Aimport%20java.awt.event.WindowAdapter%3B%0D%0Aimport%20java.awt.event.WindowEvent%3B%0D%0A%0D%0Aimport%20javax.media.opengl.GL2%3B%0D%0Aimport%20javax.media.opengl.GLAutoDrawable%3B%0D%0Aimport%20javax.media.opengl.GLEventLis" title="del.icio.us"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.rickyc.org%2F2009%2F07%2F16%2Fjogl-hello-world%2F&amp;t=JOGL%20Hello%20World" title="Facebook"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=JOGL%20Hello%20World%20-%20http%3A%2F%2Fblog.rickyc.org%2F2009%2F07%2F16%2Fjogl-hello-world%2F" title="Twitter"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fblog.rickyc.org%2F2009%2F07%2F16%2Fjogl-hello-world%2F&amp;title=JOGL%20Hello%20World" title="Live"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.rickyc.org%2F2009%2F07%2F16%2Fjogl-hello-world%2F&amp;title=JOGL%20Hello%20World" title="StumbleUpon"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.rickyc.org/2009/07/16/jogl-hello-world/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Rubber Duck Debugging</title>
		<link>http://blog.rickyc.org/2009/03/10/rubber-duck-debugging/</link>
		<comments>http://blog.rickyc.org/2009/03/10/rubber-duck-debugging/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 02:45:38 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Software Engineering]]></category>

		<guid isPermaLink="false">http://blog.rickyc.org/?p=22</guid>
		<description><![CDATA[(found here) 1) Beg, borrow, steal, buy, fabricate or otherwise obtain a rubber duck (bathtub variety) 2) Place rubber duck on desk and inform it you are just going to go over some code with it, if that&#8217;s all right. 3) Explain to the duck what you code is supposed to do, and then go [...]]]></description>
			<content:encoded><![CDATA[<p><span id="more-22"></span>(found <a href="http://lists.ethernal.org/oldarchives/cantlug-0211/msg00174.html" target="_blank">here</a>)</p>
<blockquote><p>1) Beg, borrow, steal, buy, fabricate or otherwise obtain a rubber duck<br />
(bathtub variety)<br />
2) Place rubber duck on desk and inform it you are just going to go over some code with it, if that&#8217;s all right.<br />
3) Explain to the duck what you code is supposed to do, and then go into detail and explain things line by line<br />
4) At some point you will tell the duck what you are doing next and then realise that that is not in fact what you are actually doing.  The duck will sit there serenely, happy in the knowledge that it has helped you on your way.</p></blockquote>
<p>I am so going to get a rubber duck now&#8230;</p>
<p>-Ricky</p>



Share this article:


	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fblog.rickyc.org%2F2009%2F03%2F10%2Frubber-duck-debugging%2F&amp;partner=sociable" title="Print"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://blog.rickyc.org/feed/" title="RSS"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=Rubber%20Duck%20Debugging&amp;body=http%3A%2F%2Fblog.rickyc.org%2F2009%2F03%2F10%2Frubber-duck-debugging%2F" title="email"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.rickyc.org%2F2009%2F03%2F10%2Frubber-duck-debugging%2F&amp;title=Rubber%20Duck%20Debugging&amp;bodytext=%28found%20here%29%0D%0A1%29%20Beg%2C%20borrow%2C%20steal%2C%20buy%2C%20fabricate%20or%20otherwise%20obtain%20a%20rubber%20duck%0D%0A%28bathtub%20variety%29%0D%0A2%29%20Place%20rubber%20duck%20on%20desk%20and%20inform%20it%20you%20are%20just%20going%20to%20go%20over%20some%20code%20with%20it%2C%20if%20that%27s%20all%20right.%0D%0A3%29%20Explain%20to%20the%20duck%20what%20yo" title="Digg"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fblog.rickyc.org%2F2009%2F03%2F10%2Frubber-duck-debugging%2F&amp;title=Rubber%20Duck%20Debugging&amp;notes=%28found%20here%29%0D%0A1%29%20Beg%2C%20borrow%2C%20steal%2C%20buy%2C%20fabricate%20or%20otherwise%20obtain%20a%20rubber%20duck%0D%0A%28bathtub%20variety%29%0D%0A2%29%20Place%20rubber%20duck%20on%20desk%20and%20inform%20it%20you%20are%20just%20going%20to%20go%20over%20some%20code%20with%20it%2C%20if%20that%27s%20all%20right.%0D%0A3%29%20Explain%20to%20the%20duck%20what%20yo" title="del.icio.us"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.rickyc.org%2F2009%2F03%2F10%2Frubber-duck-debugging%2F&amp;t=Rubber%20Duck%20Debugging" title="Facebook"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Rubber%20Duck%20Debugging%20-%20http%3A%2F%2Fblog.rickyc.org%2F2009%2F03%2F10%2Frubber-duck-debugging%2F" title="Twitter"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fblog.rickyc.org%2F2009%2F03%2F10%2Frubber-duck-debugging%2F&amp;title=Rubber%20Duck%20Debugging" title="Live"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.rickyc.org%2F2009%2F03%2F10%2Frubber-duck-debugging%2F&amp;title=Rubber%20Duck%20Debugging" title="StumbleUpon"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.rickyc.org/2009/03/10/rubber-duck-debugging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C++ &#8211; Sleeping</title>
		<link>http://blog.rickyc.org/2009/01/29/c-sleeping/</link>
		<comments>http://blog.rickyc.org/2009/01/29/c-sleeping/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 05:26:13 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Code Snippets/Tricks]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[SDL]]></category>
		<category><![CDATA[sleep]]></category>

		<guid isPermaLink="false">http://blog.rickyc.org/?p=17</guid>
		<description><![CDATA[I am currently using SDL_Delay function in my program, which sleeps for the specified number of milliseconds. But seeing as I&#8217;m trying to get rid of SDL, I have to find another cross-platform solution for implementing sleep. So I have to write a replacement function. I&#8217;m still figuring out what to call it, but here&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>I am currently using SDL_Delay function in my program, which sleeps for the specified number of milliseconds. But seeing as I&#8217;m trying to get rid of SDL, I have to find another cross-platform solution for implementing sleep. So I have to write a replacement function. I&#8217;m still figuring out what to call it, but here&#8217;s the essentials of a cross-platform sleep.<span id="more-17"></span></p>
<p>First of all, do NOT just do a tight while loop. It may appear to pause for that much time, but if you watch the CPU usage for your program, a while-loop like that will use 100% CPU. That is quite unfriendly to people like me with laptops. Not to mention, a 100% utilized CPU can heat up pretty quickly; especially when on a processor like the Pentium 4 (yuck).</p>
<p>So Windows has this handy function inside the all-mighty &lt;Windows.h&gt; file, Sleep(). It takes one argument of how many milliseconds to sleep. This argument can be 0, in which case it yields to another thread for some small amount of time. Or, according to the MSDN documentation, &#8220;A value of zero causes the thread to relinquish the remainder of its time slice to any other thread of equal priority that is ready to run. If there are no other threads of equal priority ready to run, the function returns immediately, and the thread continues execution.&#8221;</p>
<p>http://msdn.microsoft.com/en-us/library/ms686298(VS.85).aspx</p>
<p>Linux does something pretty different. Their sleep function is inside the include file &lt;unistd.h&gt;, which apparently is a file that contains &#8220;standard symbolic constants and types.&#8221; The function is usleep, and it takes the parameter of how many microseconds to sleep. That&#8217;s right, microseconds. As in, thousandths of milliseconds. So, take the number of milliseconds you want, multiply it by 1000, and give it to this function and your Linux processor will sleep that many milliseconds.</p>
<p>http://opengroup.org/onlinepubs/007908799/xsh/usleep.html</p>
<p>Macs, well, I don&#8217;t really know. Nor care. I don&#8217;t feel confident enough that I can contort to their differences enough to get my program running on their machines. Meh.</p>
<p>-Ricky</p>



Share this article:


	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fblog.rickyc.org%2F2009%2F01%2F29%2Fc-sleeping%2F&amp;partner=sociable" title="Print"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://blog.rickyc.org/feed/" title="RSS"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=C%2B%2B%20-%20Sleeping&amp;body=http%3A%2F%2Fblog.rickyc.org%2F2009%2F01%2F29%2Fc-sleeping%2F" title="email"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fblog.rickyc.org%2F2009%2F01%2F29%2Fc-sleeping%2F&amp;title=C%2B%2B%20-%20Sleeping&amp;bodytext=I%20am%20currently%20using%20SDL_Delay%20function%20in%20my%20program%2C%20which%20sleeps%20for%20the%20specified%20number%20of%20milliseconds.%20But%20seeing%20as%20I%27m%20trying%20to%20get%20rid%20of%20SDL%2C%20I%20have%20to%20find%20another%20cross-platform%20solution%20for%20implementing%20sleep.%20So%20I%20have%20to%20write%20a%20repl" title="Digg"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fblog.rickyc.org%2F2009%2F01%2F29%2Fc-sleeping%2F&amp;title=C%2B%2B%20-%20Sleeping&amp;notes=I%20am%20currently%20using%20SDL_Delay%20function%20in%20my%20program%2C%20which%20sleeps%20for%20the%20specified%20number%20of%20milliseconds.%20But%20seeing%20as%20I%27m%20trying%20to%20get%20rid%20of%20SDL%2C%20I%20have%20to%20find%20another%20cross-platform%20solution%20for%20implementing%20sleep.%20So%20I%20have%20to%20write%20a%20repl" title="del.icio.us"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fblog.rickyc.org%2F2009%2F01%2F29%2Fc-sleeping%2F&amp;t=C%2B%2B%20-%20Sleeping" title="Facebook"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=C%2B%2B%20-%20Sleeping%20-%20http%3A%2F%2Fblog.rickyc.org%2F2009%2F01%2F29%2Fc-sleeping%2F" title="Twitter"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fblog.rickyc.org%2F2009%2F01%2F29%2Fc-sleeping%2F&amp;title=C%2B%2B%20-%20Sleeping" title="Live"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.rickyc.org%2F2009%2F01%2F29%2Fc-sleeping%2F&amp;title=C%2B%2B%20-%20Sleeping" title="StumbleUpon"><img src="http://rickyc.org/blog/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://blog.rickyc.org/2009/01/29/c-sleeping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

