<?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>iMac&#039;s Homepage</title>
	<atom:link href="http://www.ianbmacdonald.com/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ianbmacdonald.com/wordpress</link>
	<description>Ian MacDonald&#039;s Positive Vibes</description>
	<lastBuildDate>Sun, 17 Jul 2011 14:07:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Power in the Cloud</title>
		<link>http://www.ianbmacdonald.com/wordpress/2011/06/15/power-in-the-cloud</link>
		<comments>http://www.ianbmacdonald.com/wordpress/2011/06/15/power-in-the-cloud#comments</comments>
		<pubDate>Wed, 15 Jun 2011 13:30:21 +0000</pubDate>
		<dc:creator>google.com/accounts/o8…</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[General Tech]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[ext2]]></category>
		<category><![CDATA[ext4]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[storage]]></category>

		<guid isPermaLink="false">http://www.ianbmacdonald.com/wordpress/?p=409</guid>
		<description><![CDATA[<p>With major service providers taking their users towards &#8220;the clouds&#8221;, it appears that the leaders in the space will continue to primarily advance products and services for mobile devices such as superphones and tablets where storage and processing are limited.   Recent advances from Apple and Amazon have been hitting headlines however Google in [...]]]></description>
			<content:encoded><![CDATA[<p>With major service providers taking their users towards &#8220;the clouds&#8221;, it appears that the leaders in the space will continue to primarily advance products and services for mobile devices such as superphones and tablets where storage and processing are limited.   Recent advances from <a title="Apple iCloud" href="http://sacurrent.com/apple-joining-google-amazon-in-the-cloud-1.1162034" target="_blank">Apple</a> and <a title="Amazon Cloud Locker" href="http://www.bgr.com/2011/06/13/amazon-plans-to-stream-movies-to-own-branded-tablets-researchers-claim/" target="_blank">Amazon</a> have been hitting headlines however Google in my opinion still sets itself apart from the rest in terms of the scale of its applications and services.   As<a title="Samsung overtaking Nokia" href="http://www.reuters.com/article/2011/06/13/us-nokia-smartphones-idUSTRE75C18O20110613" target="_blank"> Samsung overtakes Nokia</a> this quarter and with the <a title="Android Tops US Charts" href="http://www.hardwarezone.com.my/tech-news/view/180104" target="_blank">US market following the rest of the world with Android becoming the most popular</a> phone platform it seems reasonable to assume Google must be the cloud data leader.</p>
<p>Google legacy services for Email, Contacts, Calendar Data represents a significant footprint even excluding new Android platforms. It dawned on me that every one of these Android devices now processes voice data in the cloud for any text input, possibly a capability only Google&#8217;s scale can provide.  Perhaps this is why the voice recognition has not been integrated into competing platforms.    The power of the Google cloud becomes even clearer when you look at what kinds of data processing applications are becoming tethered to services like Google Docs.   The <a title="Google Refine" href="http://google-opensource.blogspot.com/2010/11/announcing-google-refine-20-power-tool.html" target="_blank">Google Refine tool linked here</a> is one I think has applications beyond the average spreadsheet of data.</p>
<p>To put a keynote on what powers the Google cloud I might focus on the storage technology.  <em>Michael Rubin </em>does a great job of supporting some of my own widely held opinions around linux storage technology in his presentation below.   If you are like myself, optimizing layers of RAID, Crypto, LVM, iSCSI and clustering file systems every decade to support your own infrastructure you will probably enjoy the lessons learned during <a title="Google use of Linux Filesystems" href="http://google-opensource.blogspot.com/2011/05/linux-file-systems-in-cloud-linux.html" target="_blank">Google&#8217;s multi-year upgrade from Ext2 to Ext4</a>.</p>
<p><span class="youtube">
<object width="425" height="344">
<param name="movie" value="http://www.youtube.com/v/Wp5Ehw7ByuU?color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;autoplay=0&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;rel=1" />
<param name="allowFullScreen" value="true" />
<param name="allowscriptaccess" value="always">
<embed src="http://www.youtube.com/v/Wp5Ehw7ByuU?color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;autoplay=0&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;rel=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="425" height="344"></embed>
</object>
</span><p><a href="http://www.youtube.com/watch?v=Wp5Ehw7ByuU">www.youtube.com/watch?v=Wp5Ehw7ByuU</a></p></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.ianbmacdonald.com%2Fwordpress%2F2011%2F06%2F15%2Fpower-in-the-cloud&amp;title=Power%20in%20the%20Cloud"><img src="http://www.ianbmacdonald.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.ianbmacdonald.com/wordpress/2011/06/15/power-in-the-cloud/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enterprise Data Decryption &#8211; Android Stands Alone</title>
		<link>http://www.ianbmacdonald.com/wordpress/2011/05/31/mobile-phone-security</link>
		<comments>http://www.ianbmacdonald.com/wordpress/2011/05/31/mobile-phone-security#comments</comments>
		<pubDate>Tue, 31 May 2011 13:45:21 +0000</pubDate>
		<dc:creator>google.com/accounts/o8…</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[Blackberry]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.ianbmacdonald.com/wordpress/?p=405</guid>
		<description><![CDATA[<p>With the latest circumvention of Apple&#8217;s iOS hardware encryption, there are not many options left for users interested in enterprise grade security on a mobile platform.   Not surprisingly the Google Andoird OS is the only market leading superphone to not appear on the feature list of tools used by the military and policy [...]]]></description>
			<content:encoded><![CDATA[<p>With the latest circumvention of Apple&#8217;s iOS hardware encryption, there are not many options left for users interested in enterprise grade security on a mobile platform.   Not surprisingly the Google Andoird OS is the only market leading superphone to not appear on the feature list of tools used by the military and policy to decrypt data on phones.   Blackberry 5.x and Apple 4.x both suffer from side-door exploits that harvest encryption keys or circumvent <a href="http://secunia.com/advisories/41398" target="_blank">weak local storage on tethered computers</a> as seen in the tables shown in the linked article below.</p>
<p><a href="http://www.geek.com/articles/chips/apples-ios-4-hardware-encryption-has-been-cracked-20110525/">http://www.geek.com/articles/chips/apples-ios-4-hardware-encryption-has-been-cracked-20110525/</a></p>
<p>It seems reasonable to assume that both Apple and Blackberry will close these back doors soon.  For Blackberry it requires v6 software only available on the newest generation of RIM phones.  Some of the security issues may be linked to the legacy requirement of tethering these sorts of devices to a computer to perform operating system upgrades.  This is something else we expect to go away soon.</p>
<p>For myself, security on my superphone is primarily to protect my identity and information related to business and clients.  There is a flip side to the coin where it seems beneficial for some law enforcement agencies to have access to phones for investigative purposes.   Hopefully all the captured bad guys are on iOS or Blackberry.   I know at least two &#8220;good guys&#8221; on Android.   <a title="Android on Fringe" href="http://www.androidcentral.com/evo-4g-makes-its-fringe-debut" target="_blank">Peter Bishop from Fringe</a> and <a title="Jack uses Android" href="http://www.technobuffalo.com/mobile-devices/phones/which-cell-phone-should-jack-bauer-really-be-using/" target="_blank">Jack Bauer on 24</a> .  In the non-fiction arena the <a title="Android" href="http://www.escapistmagazine.com/news/view/109494-US-Army-Developing-Android-Apps-for-Smartphone-Use-in-Battle" target="_blank">US military is also getting into Android app development</a>.</p>
<p>&nbsp;</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.ianbmacdonald.com%2Fwordpress%2F2011%2F05%2F31%2Fmobile-phone-security&amp;title=Enterprise%20Data%20Decryption%20%26%238211%3B%20Android%20Stands%20Alone"><img src="http://www.ianbmacdonald.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.ianbmacdonald.com/wordpress/2011/05/31/mobile-phone-security/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing Google Contacts on Ubuntu 11.04</title>
		<link>http://www.ianbmacdonald.com/wordpress/2011/04/07/natty-narwhal-google-contacts-workaround</link>
		<comments>http://www.ianbmacdonald.com/wordpress/2011/04/07/natty-narwhal-google-contacts-workaround#comments</comments>
		<pubDate>Fri, 08 Apr 2011 01:40:24 +0000</pubDate>
		<dc:creator>google.com/accounts/o8…</dc:creator>
				<category><![CDATA[Debian and Ubuntu]]></category>
		<category><![CDATA[Ubuntu Workarounds]]></category>
		<category><![CDATA[beta upgrade]]></category>
		<category><![CDATA[natty narwhal]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.ianbmacdonald.com/wordpress/?p=357</guid>
		<description><![CDATA[April 16th Update: I've added some bug reports related to Evolution contacts at the bottom of the post May 13th Update: Still no Google Contacts (except for small addressbooks) on 11.04 More here: https://bugs.launchpad.net/ubuntu/+source/evolution-data-server/+bug/755043 <p>Last week the Ubuntu Beta 1 was released.  The first beta is typically when I jump on board.   This [...]]]></description>
			<content:encoded><![CDATA[<pre><strong>April 16th Update:</strong> I've added some bug reports related to Evolution contacts at the bottom of the post</pre>
<pre><strong>May 13th Update:</strong> Still no Google Contacts (except for small addressbooks) on 11.04</pre>
<pre>More here: <a href="https://bugs.launchpad.net/ubuntu/+source/evolution-data-server/+bug/755043">https://bugs.launchpad.net/ubuntu/+source/evolution-data-server/+bug/755043</a></pre>
<p>Last week the <a title="Ubuntu 11.04 Release Schedule" href="https://wiki.ubuntu.com/NattyReleaseSchedule" target="_blank">Ubuntu Beta 1 was released</a>.  The first beta is typically when I jump on board.   This allows me to see the new functionality in its intended state, and to file and contribute bugs related to my specific use cases.  Between my various business and personal devices, there is plenty of opportunity to test things out at this stage without much risk.  Any big issues are included in<a title="Natty Beta Release Notes" href="http://www.ubuntu.com/testing/natty/beta" target="_blank"> the release notes</a> which are a good place to start for anyone considering the jump ahead of the official release.</p>
<p>This post might be a useful reference in the coming weeks for others with similar hardware and software configurations, notably some work peers eager to make the same migration on similar hardware.  Please check that the linked bugs are still not resolved in the distribution packages before executing anything.</p>
<p>For my upgrade, I use the console based tools. It is just the way I grew up on Debian and is a more robust process allowing you to see more output from the dpkg process.</p>
<pre>#do-release-upgrade -d</pre>
<pre><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 20px; font-weight: bold; line-height: 19px; white-space: normal;">Unity on FGLRX</span></pre>
<p><a title="Compiz Bug on FGLRX" href="https://bugs.launchpad.net/ubuntu/+source/unity/+bug/685682" target="_blank">Black Boxing Compiz</a> &#8211; If you upgrade an fglrx based 10.10 system, you will arrive at an unusable Unity desktop with black boxes covering windows and flickering and moving around with mouse movements.   The workaround is to add the daily unity PPA to your apt sources and upgrade before the final reboot following the upgrade.  Here are the root commands:</p>
<pre> add-apt-repository ppa:unity/daily</pre>
<pre> apt-get update &amp;&amp; apt-get upgrade</pre>
<p>At the time of this post, a fix was just released in unity 3.8.4. You can query your version using dpkg following the upgrade to see the workaround is probably no longer necessary.</p>
<pre> dpkg -l | grep unity</pre>
<p>I have now switched back by removing the ppa from my Other Software sources using the Settings option from the Update Manager.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_362" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.ianbmacdonald.com/wp-uploads//2011/04/Software_Sources.png" rel="lightbox[357]"><img class="size-medium wp-image-362" title="APT Software Sources" src="http://www.ianbmacdonald.com/wp-uploads//2011/04/Software_Sources-300x273.png" alt="APT Software Sources" width="300" height="273" /></a><p class="wp-caption-text">APT Software Sources</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Some people that remain on the daily version may find themselves with a newer compiz or unity version than the apt archive.  This would be shown in apt using the following command.</p>
<pre>apt-show-versions | grep newer</pre>
<p>If this is the case, you can roll back once you have removed the apt source using the following command, or similar for a specific package.</p>
<pre>apt-get install unity/natty</pre>
<h2>Evolution with Google Contacts</h2>
<p>If you read through this, you will see that I have not completely fixed this problem, though for people with fewer contacts, it may work just fine.</p>
<p><a title="Evolution Google Bug" href="https://bugs.launchpad.net/ubuntu/+source/evolution/+bug/720434" target="_blank">Broken Google Contacts</a> &#8211; Unfortunately Google integration is not working yet in Beta 1.  For myself, with all my contact and various calendar data in the cloud for use across my various devices including my Android phone, this is a pretty big inconvenience.   As of right now there is a <a title="Patch for Google Contacts in Evolution" href="https://code.launchpad.net/~mathieu-tl/evolution-data-server/lp720434/+merge/56799/+preview-diff/+files/preview.diff" target="_blank">patch committed for review</a> however it has not been released.  To fix this problem we apply the patch ourselves.  To give ourselves access to package source code in order to rebuild the evolution package with the patch, we need to enable Source Code checkbox within the Ubuntu Software tab of the Settings dialog from the Update Manager.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_363" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.ianbmacdonald.com/wp-uploads//2011/04/Source_Code.png" rel="lightbox[357]"><img class="size-medium wp-image-363" title="APT Source Code Repositories" src="http://www.ianbmacdonald.com/wp-uploads//2011/04/Source_Code-300x273.png" alt="APT Source Code Repositories" width="300" height="273" /></a><p class="wp-caption-text">APT Source Code Repositories</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>With the source code enabled we can download the evolution package source and apply the necessary patch, which in this case is modification of a single line of code as shown in the link above. I usually do these activities from within my /usr/src directory to keep the litany of temporary source files contained to a logical location.</p>
<pre>apt-get source evolution-data-server</pre>
<p>The patch can be applied by modifying the appropriate line of code using vi, in my case using the following command.  For a single small change like this, it is easier than downloading the diff and applying it appropriately using the patch command. ﻿</p>
<pre>vi /usr/src/evolution-data-server-2.32.2/addressbook/backends/google/e-book-backend-google.c</pre>
<p>The patch requires changing this line</p>
<pre>gdata_query_set_updated_min (query, ((long) &amp;updated.tv_sec / 60));</pre>
<p>to</p>
<pre>gdata_query_set_updated_min (query, updated.tv_sec);﻿﻿</pre>
<p>Next we grab the build dependencies</p>
<pre>apt-get build-dep evolution-data-server</pre>
<p>Then we build the package (from the /usr/src/evolution-data-server-2.32.2 directory)</p>
<pre>dpkg-buildpackage -rfakeroot -uc -b</pre>
<p>Finally we install the built packages assuming no other .debs are in the same location as the newly built debs (from the /usr/src directory)</p>
<pre>dpkg -i *.deb</pre>
<p>Looks like there is more to this.. it did not work completely and fails after loading about 500 contacts..   I&#8217;ve posted my results to the bug and will wait to see where things go from here.</p>
<h2>Bug Reports:</h2>
<p><a title="https://bugs.launchpad.net/evolution-data-server/+bug/755043" href="http://" target="_blank">Large Google Addressbook not syncing on Ubuntu 11.04</a></p>
<p><a title="Evolution Address Book Bug" href="https://bugs.launchpad.net/evolution/+bug/761037" target="_blank">Secondary Evolution Contact Addressbooks do not Migrate Properly on Ubuntu 11.04</a></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.ianbmacdonald.com%2Fwordpress%2F2011%2F04%2F07%2Fnatty-narwhal-google-contacts-workaround&amp;title=Fixing%20Google%20Contacts%20on%20Ubuntu%2011.04"><img src="http://www.ianbmacdonald.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.ianbmacdonald.com/wordpress/2011/04/07/natty-narwhal-google-contacts-workaround/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LiON Calibration in Nexus One Design</title>
		<link>http://www.ianbmacdonald.com/wordpress/2011/04/07/nexus-one-battery-calibration</link>
		<comments>http://www.ianbmacdonald.com/wordpress/2011/04/07/nexus-one-battery-calibration#comments</comments>
		<pubDate>Thu, 07 Apr 2011 05:09:44 +0000</pubDate>
		<dc:creator>google.com/accounts/o8…</dc:creator>
				<category><![CDATA[Debian and Ubuntu]]></category>
		<category><![CDATA[battery calibration]]></category>
		<category><![CDATA[battery life]]></category>
		<category><![CDATA[battery stats]]></category>
		<category><![CDATA[N1]]></category>
		<category><![CDATA[nexus one]]></category>

		<guid isPermaLink="false">http://www.ianbmacdonald.com/wordpress/?p=283</guid>
		<description><![CDATA[<p>April 7th, 2011:Added some useful links and clarified that LiON full discharge is not good for LiON battery life.</p> <p>June 30th, 2011: Added a good link with similar observations from the N1 Cyanogen Forums.</p> <p>Every post I have read on Nexus One battery maintenance leaves out one important step, that I believe is an [...]]]></description>
			<content:encoded><![CDATA[<p>April 7th, 2011:Added some useful links and clarified that LiON full discharge is not good for LiON battery life.</p>
<p>June 30th, 2011: Added a good link with similar observations from the N1 Cyanogen Forums.</p>
<p>Every post I have read on Nexus One battery maintenance leaves out one important step, that I believe is an obvious Google design element.   A quick note on the Nexus One battery life before I get to my revised process that includes this <em>Google charge calibration helper screen</em>.    Generally the 1400mAh battery life is good.   <a title="Locale Environment Monitoring" href="http://www.twofortyfouram.com/" target="_blank">Locale</a> extends it further by  disabling bluetooth and wireless appropriately and managing screen timeout automatically based on when and how you are using the phone.  Even the change from Android 2.1 (Jan 2010) to Android 2.3 today has brought improved battery life with each release. The Google N1 car dock and its 2.1A supply eliminate any thought of charging for myself, other than at night.  The <a title="Seido 1600mAh Battery for N1" href="http://www.nexusoneforum.net/forum/nexus-one-google-phone-news/1574-seidio-releases-slim-extended-battery-nexus-one.html" target="_blank">Seidio 1600mAh replacement</a> looks okay, but I have not tested it and wonder how well it works with the car dock charger using the contacts on the bottom of the phone.</p>
<p>Regardless of whether you constantly flash new firmware (I usually run <a title="Cyanogen Nightlies" href="http://forum.cyanogenmod.com/topic/14446-cm7-discussion-of-nightlies/" target="_blank">Cyanogen Nightlies</a> between their RC1 and Release), or use stock images on your phone, battery maintenance is important to keep that charge lasting forever (or as close to it as possible).   LiON batteries do not need to be discharged; In fact full discharges wear them out much faster than equivalent run time on many short discharge and recharge cycles.  However you do have to calibrate the onboard chip tracking battery capability, especially on the N1 where both the hardware and software can contribute to this information getting out of sync with actual battery charge capability.  One popular post on N1 battery calibration is found at <a title="Google N1 Batter Recalibration" href="http://www.nexusoneforum.net/forum/nexus-one-faq-how-tos/5625-calibrate-your-battery.html" target="_blank">nexusoneforum.net</a> but still leaves out the critical step enabled by Google software design for this purpose.  Below is what I believe to be the proper calibration process, with some tips on technique:</p>
<ol>
<li>﻿Completely drain the battery until the phone initiates an automatic shutdown.   The shutdown process is initiated when the design capacity &#8220;low&#8221; value in mAh is reached.   To ensure that the shutdown is triggered at the last possible moment, it is important to reduce power consumption when the battery is extremely low.   I accomplish this by disabling wireless, bluetooth and not turning off the screen (which is the biggest drain) after the phone is below 10% remaining battery life.   If you have ever watched this through a linux kernel interface (﻿#cat /proc/acpi/battery/BAT0/state and #﻿cat /proc/acpi/battery/BAT0/info) you will see that the current capacity fluctuates based on system load.  If you have the screen on bright and all the wireless radios turned on then you may well experience a graceful shutdown with 10% of your battery remaining.  Hardly considered to be completely drained when this happens.</li>
<li>Start your phone in the HBOOT (first step to getting to Fastboot or Recovery) by turning it on while holding volume-down.   <strong>This is the critical step most people don&#8217;t do.</strong> Clearly Google designed this part of the boot software specifically for calibrating the battery.   I call this the Google charge screen, and the two things this software state enable are:
<ol>
<li>Disabling of auto-shutdown, so the phone actually dies when there is no power, rather than guessing it may die soon and trying to gracefully shutdown</li>
<li>The screen is always on and <strong>WHITE </strong>ensuring that the battery is drained as quickly as possible  (yes, the screen is the biggest drain and takes considerably more power to display the white colour).</li>
</ol>
</li>
<li>Charge the phone while it is off, typically for over 8 hours to ensure a full charge.</li>
<li>Do NOT turn it on repeatedly until it dies.  You are just asking/trying to corrupt the Dalvik cache or other volatile data on the system partition.</li>
<li>Do NOT unplug it when the battery charge indicator goes green, wait a half hour longer.  It actually goes green when it is 95% charged or higher.  The last trickle charge is required to get it to a full 100%.  As an aside, when the phone is turned on, I believe there is a built in feature that protects the battery charging life by not doing anything if you plug it in and it has more than 95% of its charge already.   People may notice sometimes it appears their battery life jumps quickly to around 94% after unplugging or that it reads 100% after being used for 20 minutes and then plugged back in for a minute.  This may be some sort of Cyanogen feature too.   The exact nature of this charge routine when the phone is on is probably implemented or overridden in software which may mean different users experience different behavior.</li>
<li>Enjoy your calibrated battery on next boot.</li>
</ol>
<p>I truly enjoy software and hardware that are well engineered to work together.  I wonder how many other phones have a white screen with disabled power saving to help calibrate a Lithium battery.</p>
<p>If you want to know more about LiON batteries and generally how to maintain them for the longest possible life, check out these links:</p>
<p><a title="LifeHacker " href="http://lifehacker.com/#!5789794/avoid-frequent-discharges-to-extend-your-phone-or-laptops-battery-life" target="_blank">Lifehacker Article on LiON Batter Maintenance</a></p>
<p><a title="How to Kill your Phone Battery" href="http://forum.cyanogenmod.com/topic/17662-howto-permanently-ruin-your-battery-and-possibly-your-entire-phone/page__pid__154106#entry154106" target="_blank">Do not use your torch to kill your phone battery.</a></p>
<p><a title="N1 Charging" href="http://forum.cyanogenmod.com/topic/18700-whats-a-better-charging-routine/page__pid__162176#entry162176" target="_blank">Other Good Advice from N1 Forums</a></p>
<p>&nbsp;</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.ianbmacdonald.com%2Fwordpress%2F2011%2F04%2F07%2Fnexus-one-battery-calibration&amp;title=LiON%20Calibration%20in%20Nexus%20One%20Design"><img src="http://www.ianbmacdonald.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.ianbmacdonald.com/wordpress/2011/04/07/nexus-one-battery-calibration/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Daylight Savings still breaking Canadian Mobile Networks?</title>
		<link>http://www.ianbmacdonald.com/wordpress/2011/03/15/rogers-dst-issue</link>
		<comments>http://www.ianbmacdonald.com/wordpress/2011/03/15/rogers-dst-issue#comments</comments>
		<pubDate>Tue, 15 Mar 2011 18:45:55 +0000</pubDate>
		<dc:creator>google.com/accounts/o8…</dc:creator>
				<category><![CDATA[General Tech]]></category>
		<category><![CDATA[Media Technologies]]></category>
		<category><![CDATA[Nexus One]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[Blackberry]]></category>
		<category><![CDATA[Daylight Savings Time]]></category>
		<category><![CDATA[DST]]></category>
		<category><![CDATA[EDT]]></category>
		<category><![CDATA[EST]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[Network Time]]></category>
		<category><![CDATA[NTP]]></category>
		<category><![CDATA[Rogers]]></category>

		<guid isPermaLink="false">http://www.ianbmacdonald.com/wordpress/?p=298</guid>
		<description><![CDATA[<p>I awoke very surprised Sunday morning to see my mobile phone, synced to network time, was off by an hour.   It was not my fancy new Cyanogenmod ROM either.   I was flabbergasted to discover Rogers Communications&#8217; NTP servers on their mobile network were broadcasting an unadjusted GMT-5 signal to my phone.   A quick [...]]]></description>
			<content:encoded><![CDATA[<p>I awoke very surprised Sunday morning to see my mobile phone, synced to network time, was off by an hour.   It was not my fancy new <a title="CyanogenMod" href="http://www.cyanogenmod.com/" target="_blank">Cyanogenmod ROM</a> either.   I was flabbergasted to discover <a title="Rogers Wireless" href="http://www.rogers.com/web/Rogers.portal?_nfpb=true&amp;_pageLabel=WRLS_HOME" target="_blank">Rogers Communications&#8217;</a> NTP servers on their mobile network were broadcasting an <a title="Daylight Savings Time Around the Globe" href="http://en.wikipedia.org/wiki/Daylight_saving_time_around_the_world" target="_blank">unadjusted GMT-5</a> signal to my phone.   A quick glance to the correct time on my Rogers 8642 PVR led me to the conclusion that older consumer devices, or possibly BlackBerry devices specifically, have created a real issue for mobile users on Rogers network.   Why it has not been fixed is a big mystery to me.</p>
<p>Rogers is a great ISP.  Let me tell you why before we make some observations about the current Network Time issue.</p>
<p>Here in Toronto, there are a <a title="Telco Reports for Canada" href="http://www.budde.com.au/Research/Canada-Wireless-Communications-Overview-Statistics-Forecasts.html" target="_blank">variety of communications companies</a> offering Internet, Mobile, Print Media and Television services.   Personally, the most critical service is my residential high speed Internet service required for a variety of services not excluding web, email, vpn and dns.  In Toronto, Rogers consistently provides a reliable <a title="Rogers Internet Services" href="http://www.rogers.com/web/link/hispeedBrowseFlowDefaultPlans" target="_blank">top-tier service</a> that includes reasonable upstream bandwidth (&gt;=1Mbit),  DHCP assigned IPs that rarely change (suitable for external cloud access and DNS),  authenticated outbound SMTP and relay of non-rogers domain emails (required for email hosting and <a title="SPF Policy" href="http://www.openspf.org/Introduction" target="_blank">SPF policy</a> since they block outbound SMTP and do not provide ﻿IN-ADDR records for external domains),  excellent availability and uptime (possibly location specific) and none of the <a title="MTU Info" href="http://en.wikipedia.org/wiki/Maximum_transmission_unit" target="_blank">MTU issues that plague DSL and more recent FiOS-branded solutions</a> that require a local PPTP client or PPTP enabled modem in order to connect.   In recent years they have made substantial improvements to customer service that today includes quick connections to live people.     The Extreme service was introduced with a market leading 4Mbps (downstream), and it is now 15Mbps (downstream), and has been upgraded multiple times (6Mbps, 8Mbps,10Mbps,12Mbps) without significant changes to my billing.   Finally the bundling of this with my wife&#8217;s magazines, our home phone, home television and a business (family) mobile plan with 6GB per device and applied bundle discount make it difficult to compete with, consistently.   One of my Bell executive friends has me on his short list&#8230; but a non-PPTP service does not yet exist.</p>
<p>On the mobile network, coverage and bandwidth is second to none in the Greater Toronto Area. It is worth noting that Toronto is also home to Rogers Communications headquarters (downtown) and business campus (Brampton).   Transfer speeds are awesome, to the point where I don&#8217;t really look for public Wifi as it tends to be less responsive.  Check out the screenshot below taken from my car, where podcasts automatically download daily for listening pleasure on the ride home. FYI, the <a title="HSPA+ Category Table" href="http://en.wikipedia.org/wiki/High-Speed_Downlink_Packet_Access#HSDPA_User_Equipment_.28UE.29_categories" target="_blank">Category 10 HSDPA radio</a> on the Nexus One (my phone) has a maximum of 7.2 MBits/s (921KB/s)  which means I am hitting the approximate maximum application speed after network overhead.</p>
<p>&nbsp;</p>
<div id="attachment_340" class="wp-caption aligncenter" style="width: 190px"><a href="http://www.ianbmacdonald.com/wp-uploads//2011/03/snap20101214_162056.png" rel="lightbox[298]"><img class="size-medium wp-image-340" title="Nexus One Downloading on Rogers" src="http://www.ianbmacdonald.com/wp-uploads//2011/03/snap20101214_162056-180x300.png" alt="Nexus One Downloading on Rogers" width="180" height="300" /></a><p class="wp-caption-text">Nexus One Downloading on Rogers</p></div>
<p>&nbsp;</p>
<p>So what is up with Network Time on the Rogers Wireless network? Rogers Communications is a business built from layering new services on their existing <strong>network infrastructure</strong>.  How can they allow a bunch of broken mobile devices to dictate poor policy related to Network Time Protocol?   Here is what I have learned observing some other Rogers devices around the office.</p>
<ul>
<li>Rogers NTP servers appear to be broadcasting both GMT -5 EST and GMT -4 EDT.  Android phones and some iPhone experience a flip-flop between current time and off-by-one hour if they remain synced to network time.    If you have a phone status screen that displays the time and timezone being forwarded by Rogers NTP, you may see either of the following two screens depending on which signal you are receiving at that moment. The current NTP timezone is displayed in the greyed-out &#8220;Select Time Zone&#8221; field when Android phones (Android 2.3.3 in my case) are set to sync to the network.</li>
</ul>
<p>&nbsp;</p>
<div id="attachment_303" class="wp-caption aligncenter" style="width: 190px"><a href="http://www.ianbmacdonald.com/wp-uploads//2011/03/snap20110315_104427.png" rel="lightbox[298]"><img class="size-medium wp-image-303 " title="Broken Rogers NTP on GMT -5 EST" src="http://www.ianbmacdonald.com/wp-uploads//2011/03/snap20110315_104427-180x300.png" alt="Broken Rogers NTP on GMT -5 EST" width="180" height="300" /></a><p class="wp-caption-text">Broken Rogers NTP on GMT -5 EST</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_302" class="wp-caption aligncenter" style="width: 190px"><a href="http://www.ianbmacdonald.com/wp-uploads//2011/03/snap20110315_114612.png" rel="lightbox[298]"><img class="size-medium wp-image-302 " title="Correct Rogers NTP on GMT -4 EDT" src="http://www.ianbmacdonald.com/wp-uploads//2011/03/snap20110315_114612-180x300.png" alt="Correct Rogers NTP on GMT -4 EDT" width="180" height="300" /></a><p class="wp-caption-text">Correct Rogers NTP on GMT -4 EDT</p></div>
<p>&nbsp;</p>
<ul>
<li>Blackberry devices appear to not understand Daylight Savings time properly, despite <a title="Blackberry 2007 DST Fix" href="http://www.blackberry.com/select/dst2007/" target="_blank">this problem being communicated as resolved</a>.   All the blackberry devices I have seen show the incorrect 5 hour (GMT -5) adjustment required prior to 2007.    None of them seem to be picking up the GMT -4 broadcast like iPhones and Android devices.  On the Blackberry 9000 (Bold), the incorrect network time (Seen as 10:29 below) combined with the incorrect Eastern Standard Zone information (-5) results in correct time being displayed (Seen as 11:30 below) to the user .</li>
</ul>
<p>&nbsp;</p>
<div id="attachment_306" class="wp-caption aligncenter" style="width: 235px"><a href="http://www.ianbmacdonald.com/wp-uploads//2011/03/IMG_20110315_112953.jpg" rel="lightbox[298]"><img class="size-medium wp-image-306 " title="RIM 9000 Showing Incorrect Network Time and Zone Offset" src="http://www.ianbmacdonald.com/wp-uploads//2011/03/IMG_20110315_112953-225x300.jpg" alt="RIM 9000 Showing Incorrect Network Time and Zone Offset" width="225" height="300" /></a><p class="wp-caption-text">RIM 9000 Showing Incorrect Network Time and Zone Offset</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_308" class="wp-caption aligncenter" style="width: 235px"><a href="http://www.ianbmacdonald.com/wp-uploads//2011/03/IMG_20110315_112934.jpg" rel="lightbox[298]"><img class="size-medium wp-image-308" title="RIM 9000 Showing Current v5 OS" src="http://www.ianbmacdonald.com/wp-uploads//2011/03/IMG_20110315_112934-225x300.jpg" alt="RIM 9000 Showing Current v5 OS" width="225" height="300" /></a><p class="wp-caption-text">RIM 9000 Showing Current v5 OS</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_348" class="wp-caption aligncenter" style="width: 235px"><a href="http://www.ianbmacdonald.com/wp-uploads//2011/03/IMG_20110315_113013.jpg" rel="lightbox[298]"><img class="size-medium wp-image-348" title="Bold 9000 Shows Correct Time and Incorrect Offset" src="http://www.ianbmacdonald.com/wp-uploads//2011/03/IMG_20110315_113013-225x300.jpg" alt="Bold 9000 Shows Correct Time and Incorrect Offset" width="225" height="300" /></a><p class="wp-caption-text">Bold 9000 Shows Correct Time and Incorrect Offset</p></div>
<p>&nbsp;</p>
<p>Similar observations were made on Blackberry 8900 (v5 OS) and 8300 (V4 OS) devices also running on Rogers.   There were some slight differences that may actually just be OS version-specific software implementation differences.   On the 8900, the network time displays as if it was GMT -4 (correct actual time) even though the zone offset is displayed as GMT -5 (which is not correct) and the resulting device display showed a correct time.  The following screen shots of this device show this correct network time and an incorrect timezone offset as -5, yet the display clock is still correct.   In this case it seems that perhaps policy or software bugs are showing strange results, that sill give the user the correct time.  The v4 8300 also shows these same results.  It seems unlikely that these RIM devices use a different NTP server, but it is conceivable that they are somehow tethered to their backend BES/BIS system which in turn is connected to the upstream NTP server insulating them from the flip-flop.</p>
<p>&nbsp;</p>
<div id="attachment_309" class="wp-caption aligncenter" style="width: 235px"><a href="http://www.ianbmacdonald.com/wp-uploads//2011/03/IMG_20110315_115827.jpg" rel="lightbox[298]"><img class="size-medium wp-image-309" title="Blackberry 8900 Bad Zone Offset But Somehow Fine" src="http://www.ianbmacdonald.com/wp-uploads//2011/03/IMG_20110315_115827-225x300.jpg" alt="Blackberry 8900 Bad Zone Offset But Somehow Fine" width="225" height="300" /></a><p class="wp-caption-text">Blackberry 8900 Bad Zone Offset But Somehow Fine</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_310" class="wp-caption aligncenter" style="width: 235px"><a href="http://www.ianbmacdonald.com/wp-uploads//2011/03/IMG_20110315_115733.jpg" rel="lightbox[298]"><img class="size-medium wp-image-310 " title="Blackberry 8900 Showing v5 OS" src="http://www.ianbmacdonald.com/wp-uploads//2011/03/IMG_20110315_115733-225x300.jpg" alt="Blackberry 8900 Showing v5 OS" width="225" height="300" /></a><p class="wp-caption-text">Blackberry 8900 Showing v5 OS</p></div>
<p>&nbsp;</p>
<p>At a distance, it looks like an NTP + <a title="Blackberry Internet Services" href="http://en.wikipedia.org/wiki/BlackBerry_Internet_Service" target="_blank">BIS</a> policy hack to make all Blackberry devices show the correct time even though the timezone information is incorrect.  There are possibly some unmanageable dependencies between large Rogers customers with possibly out-of-date BES servers that may be making proper implementation of NTP difficult.     Perhaps it is just a way to keep influential young Boomers, likely Rogers&#8217; executives who use Blackberries, seeing the correct time whilst upsetting all the Android and iPhone customers in the background.</p>
<p>Enter the iPhone.  <a title="iPhone Off By TWO hours" href="http://www.huffingtonpost.com/2011/03/13/iphone-clock-problem-time-change_n_835205.html" target="_blank">Equally troubled by DST issues</a>, the Apple product has its own layer of <a title="More iPhone DST Issues" href="http://www.huffingtonpost.com/2011/03/13/iphone-clock-problem-time-change_n_835205.html" target="_blank">software problems</a> that are emphasized by the Network Time issues.  Below are some screenshots from my wife&#8217;s phone, which due to poor iOS software is flip-flopping between 1 hour behind and 2 hours behind because it actually has a DST bug that puts it an hour behind before it gets the wrong network time, putting it two hours behind at times.   Check out these screenshots beside the properly synced PVR.</p>
<p>&nbsp;</p>
<div id="attachment_333" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.ianbmacdonald.com/wp-uploads//2011/03/IMG_20110315_190024.jpg" rel="lightbox[298]"><img class="size-medium wp-image-333" title="Apple iPhone 3G Two Hours Off" src="http://www.ianbmacdonald.com/wp-uploads//2011/03/IMG_20110315_190024-300x225.jpg" alt="Apple iPhone 3G Two Hours Off" width="300" height="225" /></a><p class="wp-caption-text">Apple iPhone 3G Two Hours Off</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div id="attachment_334" class="wp-caption aligncenter" style="width: 235px"><a href="http://www.ianbmacdonald.com/wp-uploads//2011/03/IMG_20110315_204522.jpg" rel="lightbox[298]"><img class="size-medium wp-image-334" title="iPhone 3G OS 4.2.1" src="http://www.ianbmacdonald.com/wp-uploads//2011/03/IMG_20110315_204522-225x300.jpg" alt="iPhone 3G OS 4.2.1" width="225" height="300" /></a><p class="wp-caption-text">iPhone 3G OS 4.2.1</p></div>
<p>&nbsp;</p>
<p>The advantages of OTA (Over-The-Air) updates are very clear in the context of this particular issue.  Android phones, if they had an issue, could be addressed en-mass provided the proper support from the phone manufacturer to the carrier (still some partnership issues here).  iPhones need to be plugged in to a computer where your Apple account is registered, and then new 90MB+ iTunes must be downloaded and installed on that computer, and then you can receive an update directly from Apple, possibly customized for your carrier.   Blackberry users have a similarly tethered upgrade process, requiring local software, except that they have to go *find* specific carrier+model firmware, and there are enough clicks and accept dialogs along the way that most people never bother or try.</p>
<p>So we have hardware companies (RIM, Apple) trying to build phone software with varying levels of success.  My point here is that Rogers is not entirely to blame, but they should be able to manage these shortcomings more effectively and shift responsibility to the customer for devices that do not support OTA udpates.</p>
<p>In any case it appears some bad hardware paired with some bad policy decisions regarding management of mobile network time is having a dramatic effect on the customer experience.   Why do Bell and other providers not have the same problems?   There are many unanswered questions.   My observations suggest there is room for improvement.</p>
<p>Let&#8217;s speak to the impact.   The simple workaround is to just set your clock manually for the next month.</p>
<p>Potentially many subscribers were tricked on Sunday when they glanced at their phone and saw the adjusted time, only to show up an hour late for a lunch or afternoon appointment.    Can you imagine all those folks that had weddings or other large events booked that feel completely frustrated by this? What about emergency services, or enterprise support personnel that have alarms and reminders set to initiate various activities?   How many people are misled to the point that there is a significant financial or emotional impact, perhaps motivating them to consider calling their lawyer?</p>
<p>Bottom line, it is absolutely ridiculous.  Unacceptable product management.  Not well communicated to the users.</p>
<p>My imagination can envision the war room full of Rogers engineers scratching their heads in desperation while their technical superiors gaze at their top-of-the-line Android phones waiting to fire them all once the problem is resolved.    Perhaps it is a small room with only technical product and network team leaders, like the scene from <a title="Apollo 13 Video" href="http://www.youtube.com/watch?v=Z3csfLkMJT4" target="_blank">Apollo-13 where they attempt to solve the carbon dioxide scrubbing problem</a> presented when their &#8220;space hardware&#8221; ends up in an unexpected situation shown below.</p>
<div style="float: left; margin-right: 10px;"><span class="youtube">
<object width="480" height="295">
<param name="movie" value="http://www.youtube.com/v/Z3csfLkMJT4?color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;autoplay=0&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;rel=1&amp;hd=1" />
<param name="allowFullScreen" value="true" />
<param name="allowscriptaccess" value="always">
<embed src="http://www.youtube.com/v/Z3csfLkMJT4?color1=d6d6d6&amp;color2=f0f0f0&amp;border=0&amp;fs=1&amp;hl=en&amp;autoplay=0&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;rel=1&amp;hd=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="480" height="295"></embed>
</object>
</span><p><a href="http://www.youtube.com/watch?v=Z3csfLkMJT4&fmt=18">www.youtube.com/watch?v=Z3csfLkMJT4</a></p></div>
<p>At Rogers&#8217; while technical leads scramble, their boss&#8217;s boss is unaware of the issue that will never manifest on his proudly gripped Blackberry.   Perhaps it will appear as a line item on the executive <a title="Balanced Scorecard" href="http://www.balancedscorecard.org/BSCResources/AbouttheBalancedScorecard/tabid/55/Default.aspx" target="_blank">balanced scorecard</a>, likely after <a title="DST History" href="http://www.usno.navy.mil/USNO/astronomical-applications/astronomical-information-center/daylight-time" target="_blank">April 3rd</a>, when the problem has gone away.</p>
<p>Presumably it is a case of deja-vu, where they forgot to address the problem last year after it went away when the old and new devices fell back into sync in the first Sunday in April.  My expectation is that is what will happen this year.   Hopefully some new young technically inclined executives will better prepare themselves next year.  It has only been 4 years since DST changed.  I wonder how many DST projects have been completed to date within the Rogers organization, yet these issues still persist.</p>
<p>I find this all hard to believe, so I am waiting for some Rogers resource to explain to the world how this is really a very complex and difficult problem to solve, but only on Roger&#8217;s Mobile network.</p>
<p><strong>Update: </strong>No official word on the root cause, but the DST issues were resolved on March 16th, 2011.   There is probably a litany of messed up calendar appointments, as timezone information behind calendar events is typically stored with the event, creating a ripple effect going forwards.  This would be most prominent on re-occurring appointments, or events synchronized between multiple invites where one or more updated or accepted an event during the short term DST issue.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.ianbmacdonald.com%2Fwordpress%2F2011%2F03%2F15%2Frogers-dst-issue&amp;title=Daylight%20Savings%20still%20breaking%20Canadian%20Mobile%20Networks%3F"><img src="http://www.ianbmacdonald.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.ianbmacdonald.com/wordpress/2011/03/15/rogers-dst-issue/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web server operating system choice</title>
		<link>http://www.ianbmacdonald.com/wordpress/2011/02/26/web-server-operating-system-choice</link>
		<comments>http://www.ianbmacdonald.com/wordpress/2011/02/26/web-server-operating-system-choice#comments</comments>
		<pubDate>Sat, 26 Feb 2011 15:28:50 +0000</pubDate>
		<dc:creator>google.com/accounts/o8…</dc:creator>
				<category><![CDATA[Identity and Access Management]]></category>
		<category><![CDATA[access management]]></category>
		<category><![CDATA[Anonymous]]></category>
		<category><![CDATA[HBgary]]></category>
		<category><![CDATA[juicy fruit]]></category>
		<category><![CDATA[web security]]></category>

		<guid isPermaLink="false">http://www.ianbmacdonald.com/wordpress/?p=267</guid>
		<description><![CDATA[<p>Over the past two weeks there has been a lot of hype about the security consulting firm HBGary and the products and services it has offered to both public entities and the private enterprise.  In my own opinion, two articles posted as featured stories on arstechnica.com were particularly informative on the events that transpired [...]]]></description>
			<content:encoded><![CDATA[<p>Over the past two weeks there has been a lot of hype about the security consulting firm <a title="HBGary" href="http://www.hbgary.com/support" target="_blank">HBGary</a> and the products and services it has offered to both public entities and the private enterprise.  In my own opinion, two articles posted as featured stories on arstechnica.com were particularly informative on the events that transpired at <a title="HBGary" href="http://www.hbgary.com/support" target="_blank">HBGary</a>.   Ultimately, <a title="HB Gary reveals Windows insecurities" href="http://arstechnica.com/tech-policy/news/2011/02/black-ops-how-hbgary-wrote-backdoors-and-rootkits-for-the-government" target="_blank">the second</a> proved to be a rude awakening of the apparently benign assumption that infrastructure based on Windows might provide enterprise-grade security.  There are however may other important lessons for the aspiring security professional buried in the content that have been the focus of many other articles and web posts worldwide as the research continues into the <a title="HBGary emails" href="http://thepiratebay.org/torrent/6156166/HBGary_leaked_emails" target="_blank">44,000 HBGary emails</a> available to analysts everywhere.</p>
<p><a title="Anonymous Attack on HBGary" href="http://arstechnica.com/tech-policy/news/2011/02/anonymous-speaks-the-inside-story-of-the-hbgary-hack.ars/" target="_blank">Anonymous Reaction to Unmasking</a> &#8211; This first article revolved around an interview on the specific process used to circumvent HBGary security practices leading to the posted internal emails.  The techniques were very simple and well known, but were ultimately catalyzed by an embarrassing interaction with Nokia&#8217;s Chief Advisor in Enterprise Risk &amp; Security, ﻿<a title="Jussi Jaakonaho LinkedIn" href="http://www.linkedin.com/profile/view?id=402860" target="_blank">Jussi Jaakonaho</a>.   Jussi is LinkedIn with at least three intelligent people I have met personally, so without having met him, I will give him the credibility benefit of having had his first experience in this type of identity fraud and expect that he is probably more inclined to actually act according to what he already knows to be the best-practice.</p>
<p>For myself, the first article provided recognition that complacency around security practices is likely a reality for most organizations.  Where I have influence, I am also inclined to seek reassurance that access management  and software security update policies are being consistently applied across the enterprise, and to further inspect related verification criteria used by those responsible.</p>
<p><a title="HBGary Business Operations" href="http://arstechnica.com/tech-policy/news/2011/02/black-ops-how-hbgary-wrote-backdoors-and-rootkits-for-the-government.ars" target="_blank">HBGary Technology and Products</a> &#8211; This second article is the best abstract of the 44,000 HBGary emails I have read to date.   In addition to enlightening us on just how sophisticated the commercial malware space is today, there was significant information that re-enforces the commercial perspective that revenue potential trumps reporting known software vulnerabilities to the security community.  Specifically, there was overwhelming evidence that HBGary had a wide variety of  tested &#8220;Juicy Fruit&#8221; 0-Day exploits available to circumvent most combinations of enterprise security software running on Microsoft Windows operating systems.</p>
<p>In conclusion, after reading the second article I breathed a sigh of relief that my personal dependency on Windows OS platforms for security infrastructure ended well before HBGary began selling &#8220;Juicy Fruit&#8221; for $60K to the public and private enterprise.   The informed infrastructure architect may be having a second, hard, look at linux, BDS and solaris kernels over the former for any new projects this year.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.ianbmacdonald.com%2Fwordpress%2F2011%2F02%2F26%2Fweb-server-operating-system-choice&amp;title=Web%20server%20operating%20system%20choice"><img src="http://www.ianbmacdonald.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.ianbmacdonald.com/wordpress/2011/02/26/web-server-operating-system-choice/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Turning a Negative into a Positive</title>
		<link>http://www.ianbmacdonald.com/wordpress/2011/01/31/arpageddon</link>
		<comments>http://www.ianbmacdonald.com/wordpress/2011/01/31/arpageddon#comments</comments>
		<pubDate>Mon, 31 Jan 2011 19:02:09 +0000</pubDate>
		<dc:creator>iMac</dc:creator>
				<category><![CDATA[General Tech]]></category>
		<category><![CDATA[4to6]]></category>
		<category><![CDATA[6to4]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[ipv4]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://www.ianbmacdonald.com/wordpress/?p=204</guid>
		<description><![CDATA[<p>The social and political instability in Egypt has been headline news in the past week. I find the discussion of the Internet connectivity that is a core issue to be fascinating, however I do not pretend to have good perspective on everything that is going on. My commentary on the negative aspects is going to [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://online.wsj.com/article/SB10001424052748703956604576110453371369740.html" target="_blank">social and political instability in Egypt</a> has been headline news in the past week. I find the <a href="http://blogs.wsj.com/tech-europe/2011/01/29/egypt-cuts-off-the-net-net-fights-back/" target="_blank">discussion of the Internet connectivity that is a core issue</a> to be fascinating, however I do not pretend to have good perspective on everything that is going on.  My commentary on the negative aspects is going to stop just short of stating that I do believe that authorities in Egypt have been making some terrible decisions and  hope that the external powers-that-be assist in helping Egypt as a whole make the turn in the right direction.  The fact that Egypt&#8217;s <a href="http://online.wsj.com/article/SB10001424052748703956604576110453371369740.html" target="_blank">Internet has been reduced to nothing</a> more than one ISP that has remained up in order to keep the lights on at their stock market is a sign of very troubled times.</p>
<p>On a related note, some colleagues of mine suggested that there is a good one time opportunity for Egypt while they are offline in this madness.  All major businesses that may have been planning outage time for future updates and difficult upgrades to live services have an opportunity to push forward changes without fear of additional impact to current users.</p>
<p>Why not use this unscheduled downtime to upgrade all of Egypt&#8217;s major autonomous systems to IPv6?   With only a day or two remaining until we completely run out of IPv4 addresses, it might present an opportunity to not only make some hard and fast changes but also create some media support for political players that are looking to create a message that might be well received by a society that has demonstrated an obvious dependency on its&#8217; Internet service providers.</p>
<p>The reality is that there are many moving pieces, higher priority objectives and much larger issues that need to be resolved in Egypt.</p>
<p>For those of us not directly focused on Egypt, there is the impending end to IPv4. I predict that the immediate impact will be as great and as benign as Y2K.  Enterprise decision makers that consume media headlines like as <a href="http://twitter.com/IPv4Countdown#" target="_blank">ARPAgeddon</a> or IPcalypse will move quickly to tighten up their edge devices including web servers, routers and firewalls.   In the new world of <a href="http://business2press.com/2010/11/05/firesheep-puts-heat-on-online-companies-to-use-https/" target="_blank">SSL-only transactions</a> and <a href="http://www.internet2.edu/it/" target="_blank">federated services</a>, network address translation at the ISP level will likely not be a viable option even with the smartest <a href="http://en.wikipedia.org/wiki/Application-level_gateway" target="_blank">application layer gateway</a>.</p>
<p>For the most part we can predict how the non-IT enterprise will react:</p>
<ol>
<li>Initially there will be <a href="http://www.ipv4depletion.com/?p=163" target="_blank">current reserves of IPv4</a> to keep the status quo (after all, running out != all used up)</li>
<li>New IPv6-only websites will appear creating awareness of incompatibility</li>
<li>Everybody will upgrade their edge devices and services (existing NAT/tunnelling allows <a href="http://www.cisco.com/web/about/ac123/ac147/ac174/ac197/about_cisco_ipj_archive_article09186a00800c830a.html" target="_blank">internal IPv4 LANs to remain unchanged</a>)</li>
</ol>
<p>There will probably be an opportunity for networking consultants to pick and choose opportunities to upgrade and verify correct IPv6 functionality. It will peak now as forward and risk averse decision makers avoid unnecessary liability and then again a second time when the first mainstream, IPv6-only, web sites offer services online. Any organization that aims to reduce the complexity, effort and risk associated with firewalls, routers and web services <a href="http://www.techrepublic.com/blog/security/ipv6-oops-its-on-by-default/1955" target="_blank">has probably disabled IPv6</a> <span style="text-decoration: line-through;">IPv4</span> even though <a href="http://rtcmagazine.com/articles/view/100023" target="_blank"><em>most</em> network devices have<em> full support</em> for IPv6 today</a>.</p>
<p>Some of the challenges lie with larger enterprises that issue Public IPv4 addresses for internal services, such as <a href="http://onlamp.com/pub/a/bsd/2002/12/12/FreeBSD_Basics.html" target="_blank">VPN encryption domains</a>.   Just writing that last sentence has me thinking of challenges ahead for some enterprise clients I am familiar with. If you are a small-to-medium sized business in the greater Toronto area and looking for assistance,  I can help route your request to some skilled consultants.   If you are enterprise, and are wondering about the impact to your <a href="http://en.wikipedia.org/wiki/Federated_identity" target="_blank">federated services</a>, <a title="N8 Identity" href="http://www.n8id.com" target="_blank">we</a> might be able to help you directly.</p>
<p>Here are some countdown links to keep your finger on the trigger, from one of my regular podcast sources <a href="http://www.cnet.com/8301-19709_1-20029681-10.html?tag=mncol;txt" target="_blank">Buzz out Loud</a> where I originally came to realize how close this deadline is.</p>
<p><a href="http://twitter.com/IPv4Countdown#">http://twitter.com/IPv4Countdown#</a></p>
<p><a rel="nofollow" href="http://www.facebook.com/pages/IPv4-Countdown/162683847102050">http://www.facebook.com/pages/IPv4-Countdown/162683847102050</a></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.ianbmacdonald.com%2Fwordpress%2F2011%2F01%2F31%2Farpageddon&amp;title=Turning%20a%20Negative%20into%20a%20Positive"><img src="http://www.ianbmacdonald.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.ianbmacdonald.com/wordpress/2011/01/31/arpageddon/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using GMail to access websites (aka Federation)</title>
		<link>http://www.ianbmacdonald.com/wordpress/2011/01/27/openid-wordpress</link>
		<comments>http://www.ianbmacdonald.com/wordpress/2011/01/27/openid-wordpress#comments</comments>
		<pubDate>Thu, 27 Jan 2011 18:20:26 +0000</pubDate>
		<dc:creator>google.com/accounts/o8…</dc:creator>
				<category><![CDATA[Debian and Ubuntu]]></category>
		<category><![CDATA[Identity Orchestration]]></category>
		<category><![CDATA[Identity and Access Management]]></category>
		<category><![CDATA[federation]]></category>
		<category><![CDATA[oauth]]></category>
		<category><![CDATA[openid]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.ianbmacdonald.com/wordpress/?p=142</guid>
		<description><![CDATA[<p>As of right now, you can use your Google, Facebook, and Yahoo accounts (or any other OpenID provider account) to post comments on ianbmacdonald.com.   Most people will actually prefer using their day-to-day Google or Facebook credentials as it no longer requires remembering a new password, entering an email address or clicking on an [...]]]></description>
			<content:encoded><![CDATA[<p>As of right now, you can use your <a href="http://googlecodesamples.com/hybrid/" target="_blank">Google</a>, <a title="Identity Providers" href="http://openid.net/get-an-openid/what-is-openid/" target="_blank">Facebook, and Yahoo accounts (or any other OpenID provider account)</a> to post comments on ianbmacdonald.com.   Most people will actually prefer using their day-to-day Google or Facebook credentials as it no longer requires remembering a new password, entering an email address or clicking on an emailed link for user verification.  Additionally, nobody needs to trust me to store their password securely. (This is normally a concern for anyone that uses a &#8220;common&#8221; password on multiple sites, as there is no easy way to determine how a password is managed after you key it in)</p>
<p>After having implemented this type of Identity Federation technology in the enterprise, I do feel a bit late to the game, but realize this has more to do with setting priorities (hobby vs. family vs. work) then anything else.  It certainly has felt like a rewarding use of two hours and is actually going to eliminate time previously spent managing invalid user registrations.</p>
<p>Once the setup was complete, the site was tested using my <a href="http://code.google.com/apis/accounts/docs/OpenID.html" target="_blank">Google credentials</a> (xxx@gmail.com) to access the site.  My Google account has not been used for many things other than to keep my various Calendars and Contacts neatly synced in the cloud between my various computers, tablets and my Android phone.  For now, my Google account has become my new global identity credential.  <a href="http://code.google.com/apis/accounts/docs/OpenID.html#AuthProcess" target="_blank">The authentication process</a> was similar to the <a href="https://spaces.internet2.edu/display/SHIB2/FlowsAndConfig" target="_blank">federation implementations I am familiar</a> with, however I suspect it may appear complicated to most people until it is a bit more ubiquitous on the Internet.  Here are the basic steps involved.</p>
<ol>
<li>Enter the universal OpenID address for Google&#8217;s Identity Provider (a sort of global username for Google users)
<ul>
<li><span style="color: #ff0000;">You can usually just pop in your website or email here and it automatically redirects.  Today Yahoo works this way.. Google requires a URL, which is just configuration I need to correct.</span></li>
</ul>
</li>
<li>Authenticate with Google (not necessary if you have already logged into Google recently)</li>
<li>Allow Google to share some of your personal information (your email address in this case)</li>
<li>Verify some new ianbmacdonald.com local profile settings (Blog alias to use for posting is one of these)</li>
<li>Use the site as any other newly registered user</li>
</ol>
<p>Here is the screenshot version of this experience.</p>

<a href='http://www.ianbmacdonald.com/wordpress/2011/01/27/openid-wordpress/openid_1' title='OpenID Login using Google Identity Provider OpenID Address'><img width="150" height="150" src="http://www.ianbmacdonald.com/wp-uploads//2011/01/openid_1-150x150.png" class="attachment-thumbnail" alt="Google Identity Provider username" title="OpenID Login using Google Identity Provider OpenID Address" /></a>
<a href='http://www.ianbmacdonald.com/wordpress/2011/01/27/openid-wordpress/openid_6' title='Google Authentication after OpenID address'><img width="150" height="150" src="http://www.ianbmacdonald.com/wp-uploads//2011/01/openid_6-150x150.png" class="attachment-thumbnail" alt="Google Authentication" title="Google Authentication after OpenID address" /></a>
<a href='http://www.ianbmacdonald.com/wordpress/2011/01/27/openid-wordpress/openid_2' title='Google Identity Provider attribute release control panel'><img width="150" height="150" src="http://www.ianbmacdonald.com/wp-uploads//2011/01/openid_2-150x150.png" class="attachment-thumbnail" alt="Google federation attribute approval" title="Google Identity Provider attribute release control panel" /></a>
<a href='http://www.ianbmacdonald.com/wordpress/2011/01/27/openid-wordpress/openid_4' title='Wordpress Profile Attributes'><img width="150" height="150" src="http://www.ianbmacdonald.com/wp-uploads//2011/01/openid_4-150x150.png" class="attachment-thumbnail" alt="Wordpress Profile Attributes" title="Wordpress Profile Attributes" /></a>
<a href='http://www.ianbmacdonald.com/wordpress/2011/01/27/openid-wordpress/openid_5' title='Wordpress Dashboard'><img width="150" height="150" src="http://www.ianbmacdonald.com/wp-uploads//2011/01/openid_5-150x150.png" class="attachment-thumbnail" alt="Wordpress Dashboard" title="Wordpress Dashboard" /></a>

<p><span style="font-size: 20px; font-weight: bold;">What are the obvious (or not) benefits?</span></p>
<p><strong>For me (the Service Provider):</strong></p>
<p><strong> </strong></p>
<ol>
<li><span>Email Addresses are verified by somebody else</span>
<ul>
<li><span>I don&#8217;t have to worry about people registering with invalid email addresses</span></li>
<li><span>I don&#8217;t have to worry about old users not updating their email address</span></li>
<li><span>Way less email spam to me, the sysop / administrator</span></li>
</ul>
</li>
<li>Brute force / Authentication attacks are no longer directed at my site</li>
<li>Administrative control over how &#8220;fresh&#8221; recent sessions need to be. (I am not a bank, so you&#8217;ll notice yesterdays login is still valid)</li>
</ol>
<p><strong>For the user (the Blogger):</strong></p>
<ol>
<li>No need to create a new user or share an overused password with yet another web site</li>
<li>Control over what information I share between my identity provider and service provider (Depends on your Identity Provider .. Google Yes)</li>
<li>Global review and revoke capability for my access to all my service providers (Depends on your Identity Provider .. Google Yes)</li>
<li>Opportunities for my service providers to improve my experience as they extend their services (Google users check out this <a href="http://googlecodesamples.com/hybrid/" target="_blank">google demo</a>)</li>
</ol>
<p><strong>For the Identity Provider (i.e. Google):</strong></p>
<ol>
<li>More information on how users are consuming services on the Internet</li>
<li>Standard interfaces that drive collaboration and support for new B2B and B2C service federations</li>
<li>.. well just ask your trusted advisor, or perhaps the folks at <a href="http://www.n8id.com" target="_blank">N8 Identity</a> ..</li>
</ol>
<p>There are [many] more aspects that translate to quantifiable benefits however those listed here are the most relevant to what I am enabling here with federation on my web site.</p>
<p>I believe <a href="http://googlecodesamples.com/hybrid/" target="_blank">this Google demonstration</a> might be somewhat insightful to web site strategist, as it showcases the benefits that additional OAuth extensions bring to OpenID.  It extends the information exchange beyond simple user attributes and authorizations to include complete service and information bundles.</p>
<h2>A few subtleties I believe are not obvious until you start using a federated identity</h2>
<h2><span style="font-weight: normal; font-size: 13px;">This portion of the post will become quickly dated, but at the time of writing there are a few features related to my OpenID federation that I did not fully visualize the benefit of until I started to use them.</span></h2>
<ol>
<li>The ability to use the Google administrative portal to revoke my credentials on any site I have accessed using them
<ul>
<li>Now I can periodically review where I have been, and revoke access to unused and one-time use sites</li>
<li>I also understand where I actually have used my Google account vs. a local username or other federated ID in cases where I might have forgotten</li>
</ul>
</li>
<li>The ability to use my personal web site URL to replace the awkward and hard to remember OpenID address (https://www.<strong>google</strong>.com/accounts/o8/id)
<ul>
<li>Now I use www.ianbmacdonald.com as my username, and my openid wordpress plugin redirects to google on my behalf .. pretty easy to remember</li>
</ul>
</li>
<li>You can choose the email address to use with your Identity -&gt; Simply register at Google with whatever email you want
<ul>
<li>You can have a federated identity for work and personal sites, separate and provided by Google (or at least until your company sets up an Identity Provider)</li>
</ul>
</li>
</ol>
<p>Your mileage may vary with other Identity Providers.  I plan to test a few, and might expect that other providers like Facebook might opt-you-in to sharing other personal information, and other&#8217;s like LinkedIn may eventually provide B2B use case benefits such as the ability to share attributes like a professional relationship or useful and relevant contact information such as your office phone number and job title.  The bottom line is that people are used to punching in their email address as their username which gives providers like Google and Yahoo a clear edge in usability.</p>
<p><span style="font-size: 20px; font-weight: bold;">OpenID installation using Debian and WordPress</span></p>
<p><strong>Step 1: </strong>apt-get install wordpress-openid</p>
<p><strong>Step 2:</strong> Apache2 Restart</p>
<p><strong>Step 3:</strong> Enable OpenID and XRDS plugins in WordPress Admin Panel</p>
<p>.. and just like I have here,  you can now create a post using your federated identity.</p>
<p>Given the benefits, and time this is now going to save me personally, I regret not turning this on a couple of years ago when I first learned of the OpenID plugin for WordPress.</p>
<p>I will finish this post with a trailing thought, and an unanswered question for a future post.   If people will naturally continue to have multiple credentials, for example, one personal (for retail purchases), one public (for total anonymousness), and one professional identity (for business interactions),  the ability to switch between identities that Google now offers should become even more useful.  With multiple federated Google identities, can you simply switch Google identities in one browser window using the aforementioned feature and have your identity in another tab be dynamically switched upon browser refresh in another window?  I would expect so since the plugin and ability to do this have been around for some time now.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.ianbmacdonald.com%2Fwordpress%2F2011%2F01%2F27%2Fopenid-wordpress&amp;title=Using%20GMail%20to%20access%20websites%20%28aka%20Federation%29"><img src="http://www.ianbmacdonald.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.ianbmacdonald.com/wordpress/2011/01/27/openid-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updated: GUI Install Android 2.2 Froyo on ERE54B N1 from AT&amp;T or Rogers</title>
		<link>http://www.ianbmacdonald.com/wordpress/2010/06/04/n1-froyo-from-gui</link>
		<comments>http://www.ianbmacdonald.com/wordpress/2010/06/04/n1-froyo-from-gui#comments</comments>
		<pubDate>Fri, 04 Jun 2010 13:10:08 +0000</pubDate>
		<dc:creator>iMac</dc:creator>
				<category><![CDATA[Media Technologies]]></category>
		<category><![CDATA[Nexus One]]></category>
		<category><![CDATA[2.2]]></category>
		<category><![CDATA[5.0.7.1]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[at&t]]></category>
		<category><![CDATA[clockwork]]></category>
		<category><![CDATA[clockworkmod]]></category>
		<category><![CDATA[cyanogenmod]]></category>
		<category><![CDATA[cyanongen 5.0.7.1]]></category>
		<category><![CDATA[ere54b]]></category>
		<category><![CDATA[froyo]]></category>
		<category><![CDATA[froyo to eclair]]></category>
		<category><![CDATA[modaco]]></category>
		<category><![CDATA[N1]]></category>
		<category><![CDATA[nexus one]]></category>
		<category><![CDATA[radio 4.04]]></category>
		<category><![CDATA[radio 4.06]]></category>
		<category><![CDATA[Rogers]]></category>
		<category><![CDATA[rollback froyo]]></category>
		<category><![CDATA[rom manager]]></category>
		<category><![CDATA[rooted]]></category>

		<guid isPermaLink="false">http://www.ianbmacdonald.com/wordpress/?p=123</guid>
		<description><![CDATA[<p>You are likely here because you are growing impatient for a slow, unpredictable OTA update to your phone. Or, even more likely based on this post&#8217;s tags, you are already unlocked and rooted, possibly running CyanogenMod and want to experiment with Froyo. </p> <p>Nandroid Backup before doing anything.</p> <p>Update: After rolling back to Cyan [...]]]></description>
			<content:encoded><![CDATA[<p>You are likely here because you are growing impatient for a slow, unpredictable OTA update to your phone. Or, even more likely based on this post&#8217;s tags, you are already unlocked and rooted, possibly running CyanogenMod and want to experiment with Froyo.   </p>
<p>Nandroid Backup before doing anything.</p>
<p>Update: After rolling back to Cyan 5.0.7.1 from Froyo 2.2 I encountered <a href="http://forum.cyanogenmod.com/index.php?/topic/490-flashing-back-to-cyanogen-from-pauls-froyo/?s=64fbe17780b7dd3ae07a5a773a0b0ad9">issues with video playback and downloading from the market</a>.  Froyo uses radio 4.06 which breaks video playback (I assume some changes for streaming video) and for some reason the market was sensitive to having been accessed using Froyo.  At the bottom of the post I explain how to roll back to your nandroid image without these issues if/when you want to.  </p>
<p>Before I describe just how easy it is to get to Froyo on your rooted Rogers/AT&#038;T Nexus One, it is important to know that FRF50 is an upgrade to both EPE54B (Radio configuration for AT&#038;T,Rogers,etc.) and ERE27 (Radio configuration for T-Mobile,etc.).  Knowing that you could brick the Nexus One by using the wrong radio configuration delayed my migration to FRF50 as there was a fair bit of mis-information out there to begin with. It is good to know that bricking based on radio firmware is probably a thing of the past for the Nexus One now that there is a single build for all carriers.  Also, moving back from <a href="http://forum.xda-developers.com/showthread.php?t=687704">2.2 to earlier releases, even via nandroid, will break video playback</a> and the market temporarily, so if you need to keep your Cyan Apps2SD partition skip to end to see what issues may arise.</p>
<p>If you have not unlocked and rooted your device; <a href="http://forum.xda-developers.com/showthread.php?t=611829">start there perhaps with Amon&#8217;s process</a>.  It is simple, unlocks great capability <a href="http://www.nexusoneforum.net/forum/nexus-one-general-discussion/5612-possible-unroot-go-back-waranty-2.html">and may not void your Hardware Warranty according to some posts I have read</a>.  If you are not rooted, then just hang on for the OTA update. </p>
<p>Once you are rooted, simply install <a href="http://www.clockworkmod.com/">ClockworkMod ROM Manager</a>.  It is awesome, and makes moving between various system and recovery ROMs trivial. I paid for the premium ROM manager last month which adds some extra ROMs and features; I am not sure what the limitations are on the free version these days.</p>
<p>A Froyo stock image (unrooted 2.2) became an option on the ROM Manager last week, but I didn&#8217;t notice it.  If you do find a ROM that you like that isn&#8217;t on their menu (Cyan, AmonRA and others are all there) then you can just download it, and let ClockworkMod manage the install.  This is what I did to install a <a href="http://www.mediafire.com/download.php?qt0hfogmuwt">Froyo 2.2 pre-rooted ROM with radio</a> from <a href="http://android.modaco.com/content/google-nexus-one-nexusone-modaco-com/309286/24-may-frf50-froyo-pre-rooted-update-zip-no-radio-option-online-kitchen/">Modaco forum</a> I found on the Internet without wiping any data.</p>
<p>Here is how I upgraded my N1 running Cyanogen 5.0.7.1.</p>
<ol>
<li>Click <a href="http://www.romraid.com/paul/nexusone/update-nexusone-FRF50-signed.zip">here to download the ROM</a>	</li>
<li>
Open the <strong>ROM Manager</strong> app on the N1</li>
<li>Choose <strong>Install ROM from SD Card</strong> from the options</li>
<li>Select the downloaded ROM on the N1 filesystem</li>
<li>Optionally choose to Backup and/or Wipe the Device (I didn&#8217;t)</li>
</ol>
<p>I have included a series of screenshots below.  The first three show the process I executed last week to upgrade to 5.0.7.1 from <a href="http://forum.cyanogenmod.com/index.php?/topic/395-cyanogenmod-5-for-nexus-one-kang-central-station-v5071-05252010/?s=64fbe17780b7dd3ae07a5a773a0b0ad9">5.0.6 installed the old way</a>, and the last three screenshots show the process described above in this post to install the rooted 2.2 Froyo ROM from my sdcard after it was downloaded through the browser. As you can see, it is soo easy and much safer with the ROM Manager.<br />

<a href='http://www.ianbmacdonald.com/wordpress/2010/06/04/n1-froyo-from-gui/snap20100525_233952' title='snap20100525_233952'><img width="150" height="150" src="http://www.ianbmacdonald.com/wp-uploads//2010/06/snap20100525_233952-150x150.png" class="attachment-thumbnail" alt="snap20100525_233952" title="snap20100525_233952" /></a>
<a href='http://www.ianbmacdonald.com/wordpress/2010/06/04/n1-froyo-from-gui/snap20100526_011638' title='snap20100526_011638'><img width="150" height="150" src="http://www.ianbmacdonald.com/wp-uploads//2010/06/snap20100526_011638-150x150.png" class="attachment-thumbnail" alt="snap20100526_011638" title="snap20100526_011638" /></a>
<a href='http://www.ianbmacdonald.com/wordpress/2010/06/04/n1-froyo-from-gui/snap20100526_012106' title='snap20100526_012106'><img width="150" height="150" src="http://www.ianbmacdonald.com/wp-uploads//2010/06/snap20100526_012106-150x150.png" class="attachment-thumbnail" alt="snap20100526_012106" title="snap20100526_012106" /></a>
<a href='http://www.ianbmacdonald.com/wordpress/2010/06/04/n1-froyo-from-gui/snap20100604_092017' title='snap20100604_092017'><img width="150" height="150" src="http://www.ianbmacdonald.com/wp-uploads//2010/06/snap20100604_092017-150x150.png" class="attachment-thumbnail" alt="snap20100604_092017" title="snap20100604_092017" /></a>
<a href='http://www.ianbmacdonald.com/wordpress/2010/06/04/n1-froyo-from-gui/snap20100604_100611' title='snap20100604_100611'><img width="150" height="150" src="http://www.ianbmacdonald.com/wp-uploads//2010/06/snap20100604_100611-150x150.png" class="attachment-thumbnail" alt="snap20100604_100611" title="snap20100604_100611" /></a>
<a href='http://www.ianbmacdonald.com/wordpress/2010/06/04/n1-froyo-from-gui/snap20100604_093435' title='snap20100604_093435'><img width="150" height="150" src="http://www.ianbmacdonald.com/wp-uploads//2010/06/snap20100604_093435-150x150.png" class="attachment-thumbnail" alt="snap20100604_093435" title="snap20100604_093435" /></a>
</p>
<p>ClockworkMod manages the entire process using its own Recovery ROM (which it flashes onto your device when you first install or use it to manage ROMs).  If you like to do things yourself via the Recovery, you can boot into Recovery, execute Nandroid Backups and load ROMS directly from an update.zip placed on your SD card in a very similar manner to other Recovery ROMS (which Clockwork can flash for you too).</p>
<p>My direct upgrade to a root&#8217;d stock 2.2 from 5.0.7.1 appeared to work just fine, except I did not have access to my sd-ext installed applications.  It turns out the Cyan Apps2SD method is not supported. So <a href="http://forum.xda-developers.com/showthread.php?t=686619">if you use sd-ext, there will be an issue</a> accessing your installed applications, at least for now, as I am not interested in wiping my phone.   I will wait for CM6 based on Froyo and for now have reverted to my nandroid backup of Cyan 5.0.7.1.  The process was actually non-trivial, requiring a few extra steps I did not expect, listed below, which can be read about <a href="http://forum.cyanogenmod.com/index.php?/topic/490-flashing-back-to-cyanogen-from-pauls-froyo/?s=64fbe17780b7dd3ae07a5a773a0b0ad9">here</a>.  </p>
<ol>
<li>Restore your Nandroid Backup from Pre-2.2</li>
<li>Use ClockworkMod option <strong>Install ROM from SD Card</strong> to install the the 4.04 radio downloaded from <a href="http://www.androidspin.com/downloads.php?dir=enomther/RESOURCE/&#038;file=TheOfficial_Nexus1_Radio_Update_4.04.00.03_2.zip">here</a></li>
<li>Use ClockworkMod option <strong>Download ROM</strong> to re-install 5.0.7.1 with the <strong>Google Apps</strong> selected and also <strong>Wipe Data and Cache</strong> selected (Your photos and sdcard data are safe)</li>
<li>On reboot to the wiped device, re-login to the Android Market. Downloads will be working again (this fixes the market)</li>
<li>Using Clockwork Recovery Image (power on with volume-down, select recovery, then nandroid) restore your nandroid backup</li>
</ol>
<p>After this process, you are right back where you started.</p>
<p>More information is in the links below about some of these roll back issues, and Froyo tips.</p>
<p><a href="http://forum.xda-developers.com/showthread.php?t=687704">Froyo Radio update breaks video playback</a><br />
<a href="http://forum.xda-developers.com/showthread.php?t=687578&#038;page=4">Issues with the market downloads</a><br />
<a href="http://forum.xda-developers.com/showthread.php?t=686588">Setting Froyo to force apps to install to SD</a>, like in Cyan but not to ext4.<br />
<a href=" http://www.bernie.net.my/blog/2010/05/25/getting-protected-apps-in-froyo/">Bernie&#8217;s Froyo Workaround Links and Info</a></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.ianbmacdonald.com%2Fwordpress%2F2010%2F06%2F04%2Fn1-froyo-from-gui&amp;title=Updated%3A%20GUI%20Install%20Android%202.2%20Froyo%20on%20ERE54B%20N1%20from%20AT%26%23038%3BT%20or%20Rogers"><img src="http://www.ianbmacdonald.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.ianbmacdonald.com/wordpress/2010/06/04/n1-froyo-from-gui/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pre-Android 2.2 Nexus One Updates</title>
		<link>http://www.ianbmacdonald.com/wordpress/2010/05/15/nexus-one-upgrade</link>
		<comments>http://www.ianbmacdonald.com/wordpress/2010/05/15/nexus-one-upgrade#comments</comments>
		<pubDate>Sat, 15 May 2010 14:27:33 +0000</pubDate>
		<dc:creator>iMac</dc:creator>
				<category><![CDATA[Media Technologies]]></category>
		<category><![CDATA[Nexus One]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[bootloader]]></category>
		<category><![CDATA[clockworkmod]]></category>
		<category><![CDATA[cyanogen]]></category>
		<category><![CDATA[N1]]></category>
		<category><![CDATA[nandroid]]></category>
		<category><![CDATA[nexus one]]></category>
		<category><![CDATA[recovery]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[superboot]]></category>
		<category><![CDATA[unlock]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.ianbmacdonald.com/wordpress/?p=122</guid>
		<description><![CDATA[<p>There is a growing compendium of Nexus One knowledge out there, to the point where it was a bit confusing as to which instructions were the latest and greatest when it comes to upgrading the Nexus One phone. I call this an upgrade, although not one supported directly by Google, but obviously fully supported [...]]]></description>
			<content:encoded><![CDATA[<p>There is a growing compendium of Nexus One knowledge out there, to the point where it was a bit confusing as to which instructions were the latest and greatest when it comes to upgrading the Nexus One phone.  I call this an upgrade, although not one supported directly by Google, but obviously fully supported by the community.   During my upgrade process I made some draft notes; This post represents finally cleaning them up for public consumption.</p>
<p>Doing anything here will void your warranty, and will prevent OTA (Over-The-Air) upgrade directly from Google to Android version 2.2.  This upgrade is a significant modification.</p>
<p>In addition to giving you a bunch of new and pre-2.2 features, the upgrade process provides root access which is required to properly backup your phones applications and data.  Without root access you so not retain some aspects of the system configuration and data, as well as &#8220;Market Links&#8221;.  This last point, Market Links, describes your phone&#8217;s ability to determine if an application has an update in the market.  Restoring applications backed-up on a non-rooted device will have no ability to self-update until they are manually downloaded from the Android Market.   </p>
<p>I will re-iterate&#8230; root your phone before you go installing applications.  If you don&#8217;t, restoring them onto your upgraded phone sucks, as noted above.  <a href="http://www.androidzoom.com/android_applications/tools/atrackdog-track-new-version_lea.html">aTrackDog</a> solves some of this problem.. but most people will prefer to just &#8220;do it right&#8221;. </p>
<p><strong>Locked Bootloader, Locked Phone and Locked SIM</strong></p>
<p>When we talk about unlocking the Nexus One, we mean unlocking the bootloader.  This is just like a &#8220;BIOS Setting&#8221; that allows you to load and boot other images onto your Nexus One.  It is a fully supported capability of the phone, not some hack or magic set of unpublished keystrokes.</p>
<p>SIM-Locked means something different that does not apply to the Nexus One.  This is when your phone is locked, via the SIM card and device settings, to a specific carrier.  Phones that are SIM locked generally require a separate process that &#8220;unlocks&#8221; them from a carrier after which they can operate with &#8220;unlocked&#8221; SIM cards.  Notably to use an HSPDA modem like the Rogers Rocket Stick you need an unlocked SIM card.   I have always used Rogers and never had a SIM-locked phone, or a locked SIM card.. so I am no expert in this area.  The bottom line here is that none of this applies to the Nexus One, which is shipped unlocked from a carrier perspective.</p>
<p><strong>Nexus One Upgrade Primer</strong></p>
<p>This was my first Android phone, so I had *NO* idea how the device was laid out internally.  A little blurb that summed it all up seemed hard to find.. but I was able to string together the pieces after some time on the net.  Understanding the basic device landscape was all I needed to have confidence in my upgrade process.  <a href="http://forum.xda-developers.com/showthread.php?t=619153">I recommend reading this article.</a></p>
<p>The Nexus One comes shipped with two images (system and recovery) loaded into partitions on the onboard flash, and a bootloader (separate boot partition) that can boot up either of these images.  The bootloader is like the BIOS in a computer and allows you to control some features, and optionally enable a manual selection of which image to load (system or recovery).</p>
<p>The system image is the one that boots by default when you power up your phone normally, and the basic google applications (messaging, browser, contacts, home page launcher, maps, mail client, gallery, etc.) are loaded into partitions alongside the system image in the onboard flash.  <a href="http://forum.xda-developers.com/showthread.php?t=619153">More on this here.</a>  </p>
<p>The recovery image can be accessed by manually telling the bootloader to load it, and basically allows you to do some system tasks, such as execute a complete backup (aka Nandroid Backup), or wipe the device, in addition to a number of other advanced things.</p>
<p>ADB (Android Developer Bridge) and Fastboot are two tools that let you do things to your phone.  Fastboot is used for moving images (system and recovery) to/from the phone as well as some basic configuration setting (unlocking the bootloader).  ADB allows for more advanced commands and phone interaction with the development SDK.  </p>
<p>Fastboot is enabled from the bootloader, and ADB is enabled in the phones settings.  Both these tools/commands/modes have client software that runs on a computer connected by USB cable. You can launch an &#8220;adb shell&#8221; from most third party recovery ROMS. </p>
<p>Fastboot is used to *unlock* the bootloader as show below.   ADB can be used to remove stock Google applications; I have used it remove my stock Navigation application so that the<a href="http://forum.xda-developers.com/showthread.php?t=630887"> BRUT Navigation</a> is default for voice commands.  As of this writing, the BRUT mod is the only way I know of to get working navigation in Canada.</p>
<p>The Bootloader/Fastboot and Bootloader/Recovery modes are two alternate ways to start your phone, and can be accessed using the following buttons from a powered-off state:</p>
<ul>
<li> Fastboot: Hold down the trackball while pressing the power button. </li>
<li> Recovery: Hold the volume-down button while pressing the power button. </li>
</ul>
<p>In each case the volume buttons navigate the menus, and the power button acts as the selection key.</p>
<p><strong>The Steps in the Upgrade Process</strong> (You will VOID your WARRANTY)</p>
<ol>
<li>Unlock the Bootloader</li>
<li>Root the phone</li>
<li>Upgrade the Recovery Image</li>
<li>Perform a Nandroid Backup of the Stock System</li>
<li>Backup apps in userspace that you want to keep after the upgrade (MyBackup)</li>
<li>Wipe the phone using the Recovery Image</li>
<li>Upgrade the System Image</li>
<li>Repartition the Flash Card for Apps2SD (Optionally move data to a Class 6 chip)</li>
<li>Tweak settings, enjoy the extra RAM, USB tethering, improved performance</li>
<li>Install applications to your heart is content</li>
</ol>
<p>My advice, if this is your first Android phone, is to wake up Saturday morning with a free 4-8 hours.  it only takes an hour or so to *upgrade* .. but you will spend the rest of the day playing.  A the end of this article I also give you a list of applications to experiment with.. YMMV.</p>
<p><strong>The Actual Process</strong></p>
<p>1. Unlock the Bootloader</p>
<p>I learned what I know for this step <a href="http://android.modaco.com/content/google-nexus-one-nexusone-modaco-com/299078/how-to-unlock-the-bootloader-on-your-nexus-one/">following instructions here</a>.</p>
<ul>
<li>Download and extract the <a href="http://www.romraid.com/paul/fastboot.zip">fastboot tool</a>.  As far as I know this has never changed versions.  It is a very basic tool and there are windows, linux and mac versions in <a href="http://www.romraid.com/paul/fastboot.zip">the .zip file</a>.</li>
<li>Jump into fastboot mode using the procedure described above (power on holding the trackball down)</li>
<li>Execute the command &#8216;fastboot-windows oem unlock&#8217; or &#8216;./fastboot-mac oem unlock&#8217; or &#8216;./fastboot-linux oem unlock&#8217;.  As root user (need USB superuser) on my Ubuntu system I executed the linux version:  #./fastboot-linux oem unlock</li>
</ul>
<p>2. Root the Device </p>
<p><a href="http://android.modaco.com/content/google-nexus-one-nexusone-modaco-com/298782/22-mar-erd79-epe76-superboot-rooting-the-nexus-one/">This method</a> for root access is called &#8220;Superboot&#8221; because it requires no modification to the running applications and configuration.  You can actually safely <a href="http://android.modaco.com/content/google-nexus-one-nexusone-modaco-com/304846/what-exactly-does-himem-do/">enable the &#8220;himem&#8221; version</a> of this modification which is a major improvement as noted in my last post.  I learned this process <a href="http://android.modaco.com/content/google-nexus-one-nexusone-modaco-com/298782/22-mar-erd79-epe76-superboot-rooting-the-nexus-one/">reading this post</a>. <strong>Get the radio version/build right, or you may end up bricking your phone.</strong></p>
<ul>
<li>Download the Superboot zip file above and extract to a directory.  Make sure you have the correct one that matches your shipped image.  Go to &#8220;Settings->About Phone&#8221; and scroll down to the &#8220;Build Number&#8221; to figure out what version you have.  I downloaded and installed <a href="http://coblitz.codeen.org/www.romraid.com/paul/nexusone/1.0-EPE54B-nexusone-superboot-himem.zip">the EPE54B version with himem</a> for my phone.  </li>
<li>Put your device in bootloader mode &#8211; Turn off the phone then press and hold the trackball to enter the bootloader</li>
<li>Open a terminal window to the directory containing the files, and type &#8216;chmod +x install-superboot-linux.sh&#8217; followed by &#8216;./install-superboot-linux.sh&#8217;</li>
</ul>
<p>As an aside, here is <a href="http://forum.xda-developers.com/showpost.php?p=5925190&#038;postcount=33">some info on the different radio builds</a>.</p>
<p>3.  Upgrade the Recovery Image</p>
<p>Originally I used fastboot to load my first recovery image.  This is simply because I did not know about the <a href="http://forum.xda-developers.com/showthread.php?t=639153">Clockwork ROM Manager tool</a>.  Now I use that to load images.. its stupid-simple and impossible to mess up, so I will describe this process here.</p>
<ul>
<li>Download the Clockwork ROM Manager tool from the Android Market</li>
<li>Install the Clockwork or RA Recovery Image</li>
</ul>
<p>The <a href="http://forum.xda-developers.com/showthread.php?t=611829">original process I followed is here</a>.  Its just a few more steps with the same end goal in mind.</p>
<p>4. Perform a Nandroid Backup of the Stock System</p>
<ul>
<li>Boot into recovery: Power-on holding the volume-down button.</li>
<li> Select Recovery from the menu.  (Volume moves the highlighted item, and power button selects).</li>
<li>Select Nandroid to make a copy of your phone and all images and data on your SD card</li>
</ul>
<p>5. Backup apps in userspace that you want to keep after the system firmware upgrade</p>
<ul>
<li>Download MyBackup from the Market</li>
<li>Execute a backup of applications you want to keep. No harm in doing them all as you can selectively restore any of them and/or their data</li>
</ul>
<p>6. Wipe the phone and Upgrade the System Image</p>
<p>Originally I used the RA recovery image to wipe my phone, and loaded the new system image via fastboot off of the SD card.  <a href="http://forum.xda-developers.com/showthread.php?t=639153">Clockwork ROM Manager</a> does this all for you now.. pay a few bucks to these guys and you are off to the races. </p>
<ul>
<li>Install the Cyanogen 5.0.6 of newer via the ClockWork app</li>
</ul>
<p>The <a href="http://forum.cyanogenmod.com/index.php?/topic/150-cyanogenmod-for-nexus-one-v506-04152010/ ">original process I followed is here</a> and used a <a href="http://forum.xda-developers.com/showthread.php?t=566669">Recovery Image installed from here</a>. </p>
<p><a href="http://wiki.cyanogenmod.com/index.php/Full_Update_Guide_-_Nexus_One_Firmware_to_CyanogenMod">The official Cyanogen Nexus upgrade docs are here</a>. </p>
<p><a href="http://wiki.cyanogenmod.com/index.php/Main_Page">Here is the cyanogen mod wiki</a>.</p>
<p>7. Repartition the Flash Card for Apps2SD</p>
<p>I actually copied my SDcard image to a larger new 8GB class 6 chip at this step.. you can skip these optional steps.  There is no loss of data if the process executes without error. </p>
<p>If you don&#8217;t need to upgrade your flash, you can do this now through the upgraded system tools provided by Cyanogen.</p>
<ul>
<li>Pop your flash card into your laptop</li>
<li>Boot up a GParted live CD</li>
<li>(Optionally) Copy your FAT32 SD partition to empty space on another disk</li>
<li>(Optionally) Copy your FAT32 SD partition back onto a nice new Class 6 chip</li>
<li>Resize your partitions, creating a 1GB ext4 primary partition at the end of the disk. I noted there are always a few empty megs before the FAT32 partition on all chips I have seen, and I always leave these intact</li>
<li>Pop your flash back in the phone and reboot</li>
</ul>
<p>Reboot your phone and enjoy. Tweak settings, enjoy the extra RAM, USB tethering, improved performance&#8230; Nothing else out there compares to Nexus-One + Cyanogen.. TODAY.  </p>
<p>8. Install Applications until your heart is Content</p>
<ul>
<li>Brut Navigation</li>
<li>Advanced Task Killer</li>
<li>Live Scores</li>
<li>OpenVPN Settings</li>
<li>OI File Manager</li>
<li>Scan2PDF</li>
<li>SetCPU</li>
<li>CamCard</li>
<li>Barcode Scanner</li>
<li>ConnectBot</li>
<li>Locale + Plugins</li>
<li>Fring</li>
<li>K-9 Mail</li>
<li>Google Sky Map</li>
<li>miTorTV</li>
<li>Transdriod</li>
<li>SpeedTest</li>
<li>Shazam</li>
<li>PicSay</li>
<li>Remote RDP and VNC</li>
<li>Klaxon</li>
<li>Astrid</li>
<li>dPod</li>
<li>Astro</li>
<li>Documents To Go</li>
<li>QuickOffice</li>
<li>AndroRadio</li>
<li>Soo many more&#8230;</li>
</ul>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.ianbmacdonald.com%2Fwordpress%2F2010%2F05%2F15%2Fnexus-one-upgrade&amp;title=Pre-Android%202.2%20Nexus%20One%20Updates"><img src="http://www.ianbmacdonald.com/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.ianbmacdonald.com/wordpress/2010/05/15/nexus-one-upgrade/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

