<?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>SeanColombo.com &#187; quickTip</title>
	<atom:link href="http://www.seancolombo.com/category/quicktip/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.seancolombo.com</link>
	<description>My little corner of the internet.</description>
	<lastBuildDate>Thu, 29 Jul 2010 17:30:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Quick tip: clone of PHP&#8217;s microtime() function as a Perl subroutine.</title>
		<link>http://www.seancolombo.com/2010/03/24/quick-tip-clone-of-phps-microtime-function-as-a-perl-subroutine/</link>
		<comments>http://www.seancolombo.com/2010/03/24/quick-tip-clone-of-phps-microtime-function-as-a-perl-subroutine/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 17:56:23 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[quickTip]]></category>
		<category><![CDATA[codeSnippet]]></category>
		<category><![CDATA[microtime]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[profiling]]></category>

		<guid isPermaLink="false">http://www.seancolombo.com/?p=236</guid>
		<description><![CDATA[Refer to the PHP manual for how the function is supposed to work. The short version is that you call &#8220;microtime(1)&#8221; to get this perl subroutine to return a float-formatted value containing the seconds and microseconds since the unix epoch. # Clone of PHP's microtime. - from http://seancolombo.com use Time::HiRes qw(gettimeofday); sub microtime{ my $asFloat [...]]]></description>
			<content:encoded><![CDATA[<p>Refer to the <a href="http://us2.php.net/manual/en/function.microtime.php">PHP manual</a> for how the function is supposed to work.  The short version is that you call &#8220;<code>microtime(1)</code>&#8221; to get this perl subroutine to return a float-formatted value containing the seconds and microseconds since the <a href="http://en.wikipedia.org/wiki/Unix_epoch">unix epoch</a>.</p>
<pre><code>
	# Clone of PHP's microtime. - from http://seancolombo.com
	use Time::HiRes qw(gettimeofday);
	sub microtime{
		my $asFloat = 0;
		if(@_){
			$asFloat = shift;
		}
		(my $epochseconds, my $microseconds) = gettimeofday;
		if($asFloat){
			while(length("$microseconds") < 6){
				$microseconds = "0$microseconds";
			}
			$microtime = "$epochseconds.$microseconds";
		} else {
			$microtime = "$epochseconds $microseconds";
		}
		return $microtime;
	}</code></code></pre>
<p>This is public domain, use it as you&#8217;d like.  Please let me know if you find any bugs.</p>
<p>Hope it helps!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seancolombo.com/2010/03/24/quick-tip-clone-of-phps-microtime-function-as-a-perl-subroutine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick tip: how to save your phone after dropping it in (boiling) water</title>
		<link>http://www.seancolombo.com/2009/09/08/quick-tip-how-to-save-your-phone-after-dropping-it-in-boiling-water/</link>
		<comments>http://www.seancolombo.com/2009/09/08/quick-tip-how-to-save-your-phone-after-dropping-it-in-boiling-water/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 01:40:29 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[quickTip]]></category>

		<guid isPermaLink="false">http://www.seancolombo.com/?p=172</guid>
		<description><![CDATA[Here is an excerpt from an email I sent last night. If you don&#8217;t know me and just want to know how to save your phone, feel free to jump over it: So while I was boiling my pasta tonight, apparently my body had the urge to include some additional ingredients for once as I [...]]]></description>
			<content:encoded><![CDATA[<p>Here is an excerpt from an email I sent last night.  If you don&#8217;t know me and just want to know how to save your phone, feel free to jump over it:</p>
<blockquote><p>So while I was boiling my pasta tonight, apparently my body had the urge to include some additional ingredients for once as I found myself inadvertently add my Blackberry to the mix.</p>
<p>Whilst boiling, it cried out to me &#8220;Heathenous traitor!  Spare me!&#8221;  ..Whatever, don&#8217;t call me names then expect my help.  Also, I eat cows and chickens with a clear conscience, I can eat a phone too.  Then in a last-ditch effort it blurted &#8220;Without me, thou shall never text cute girls again!&#8221;  I immediately decided that blackberries might not go very well with pasta anyway, so I removed it and pulled the battery out.</p>
<p>It is currently getting the Lazarus Treatment in a closed up shoebox with 14 ounces of desiccant (a 60 day supply for a closet).  Hopefully I made the right choice, because after the desiccant, the Blackberry will be all dry and flavorless anyway.</p>
<p>Like most other fruit, I would imagine that Blackberries are fat-free and low in calories but I have a hard time envisioning that the contain many vitamins or antioxidants.</p>
<p>Do you have any idea of the Nutrition Facts or whether I made the right decision?<br />
 &#8211; Sean
</p></blockquote>
<p>In hopes that it may help others out, here are some things you can do to save your phone if you drop it in water&#8230;
<ul>
<li>If you are fortunate enough to read this BEFORE your phone goes for a swim: remember to take out the battery as quickly as possible.  Don&#8217;t even bother shutting the phone off if you have a removable battery.  In the case of iPhones or other devices where the battery isn&#8217;t removable, turn those off as fast as possible.  <em>If you remove the battery or at least get the phone off before it dies (short circuits) on its own, you have a good chance of saving it.</em>  If you have a sim card, it&#8217;s best to yank that too, but it can wait until the battery is out.</li>
<li>Alright, assuming your phone is chilling without a battery &#8211; the next step is to dry it off, shake it to get the water out, etc.</li>
<li>The next part is a great idea that I was given <a href='http://twitter.com/NickPinkston/status/3827390361'>via twitter</a> from my friend <a href='http://nickpinkston.com/'>Nick</a>: go find a <a href='http://en.wikipedia.org/wiki/Desiccant'>desiccant</a> to suck all of the moisture out of the phone.  You can grab some at Home Depot or Lowes (which is where I found it).  An example of a desiccant is <a href='http://www.amazon.com/Damp-Rid-Hanging-Fresheners-3-Count/dp/B001J6O6KE'>DampRid</a> (link has a picture).</li>
<li><div id="attachment_179" class="wp-caption alignright" style="width: 160px"><a href="http://www.seancolombo.com/wp-content/uploads/2009/09/dampRid.JPG"><img src="http://www.seancolombo.com/wp-content/uploads/2009/09/dampRid-150x150.jpg" alt="Using a desiccant to dry a cellphone (click to enlarge)" title="Using a desiccant to dry a cellphone" width="150" height="150" class="size-thumbnail wp-image-179" /></a><p class="wp-caption-text">Using a desiccant to dry a cellphone (click to enlarge)</p></div>Leave the phone open (battery out and cover off) and put it in a small container with the desiccant for as long as you can comfortably stand not having your phone.  In my case, the phone was in the box for 8 hours and it came out just fine.  If your phone was submerged longer or didn&#8217;t shake out as well, it might take longer.  If you&#8217;re patient, I&#8217;d recommend 24 hours but I just made that number up so take it with a grain of salt. ;)  I had happened to buy some new shoes yesterday so I had the box right there&#8230; since the DampRid I got was a hanging variety, I hung it up in there (see pic to the right) and then closed the lid and let it sit.</li>
<li>Pop that battery back in and cross your fingers!</li>
</ul>
<p>I was fortunate enough to have my phone survive.  The $9 for the desiccant might have been the factor that saved me from having to replace a $400 phone (I&#8217;m all out of free-upgrades!).</p>
<p>Although my BlackBerry (and most phones) are fortunate enough to have a removable battery, don&#8217;t despair if you have an iPhone: the unmistakable <a href='http://unscriptable.com'>John Hann</a> reports of having <a href='http://twitter.com/unscriptable/status/3845012775'>tried to use his iPhone to season his baby-stew</a> and it was also able to survive by being shut off and allowed to dry.</p>
<p>Hope that helps someone!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seancolombo.com/2009/09/08/quick-tip-how-to-save-your-phone-after-dropping-it-in-boiling-water/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
