<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-735765459501545235</id><updated>2011-04-21T16:02:39.764-07:00</updated><category term='defragment hard drive safe mode'/><category term='virtualization Virtual PC BIOS Intel Core2Duo'/><category term='XML'/><category term='javascript'/><category term='Mozilla'/><category term='childNode'/><title type='text'>GeoDistance Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://geodistance.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/735765459501545235/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://geodistance.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Mark</name><uri>http://www.blogger.com/profile/06488595742676979856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-735765459501545235.post-4480214749388276924</id><published>2006-12-29T20:41:00.000-08:00</published><updated>2006-12-29T21:03:20.062-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virtualization Virtual PC BIOS Intel Core2Duo'/><title type='text'>Core 2 Duo Virtualization</title><content type='html'>Christmas and the new toys that come along with it are great.  This year Santa was especially kind leaving a new &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0" onclick="BLOG_clickHandler(this)"&gt;Lenovo&lt;/span&gt; T60 below the tree, sporting the new Core 2 Duo processor (&lt;a href="http://www.intel.com/products/processor/core2duo/specifications.htm"&gt;http://www.intel.com/products/processor/core2duo/specifications.htm&lt;/a&gt;).  Anxious to try out the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1" onclick="BLOG_clickHandler(this)"&gt;virtualization&lt;/span&gt; technology that I had read was built into the chip I was excited to find out that Microsoft Virtual PC 2007 (currently in beta) takes advantage the hardware enabled &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2" onclick="BLOG_clickHandler(this)"&gt;virtualization&lt;/span&gt;. &lt;br /&gt;&lt;br /&gt;After I installed Virtual PC 2007 I was surprised to see that the hardware &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3" onclick="BLOG_clickHandler(this)"&gt;virtualization&lt;/span&gt; options were greyed out within &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4" onclick="BLOG_clickHandler(this)"&gt;VPC&lt;/span&gt; 2007.  I rechecked the processor I had, and then rechecked the specs that mentioned the Core 2 Duo had &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5" onclick="BLOG_clickHandler(this)"&gt;virtualization&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;I then rebooted the machine and checked the BIOS settings.  It turns out that under the CPU settings "&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6" onclick="BLOG_clickHandler(this)"&gt;virtualization&lt;/span&gt;" was disabled   If you have a processor that supports &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7" onclick="BLOG_clickHandler(this)"&gt;virtualization&lt;/span&gt;, but  it does not seem to be enabled be sure to check the BIOS.  Also, it appears from the Intel website that &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8" onclick="BLOG_clickHandler(this)"&gt;virtualization&lt;/span&gt; features of the processor are only available if the BIOS provides support for it.&lt;br /&gt;&lt;br /&gt;I'll do some testing to see how much of a performance improvement can be gained from the hardware &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9" onclick="BLOG_clickHandler(this)"&gt;virtualization&lt;/span&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/735765459501545235-4480214749388276924?l=geodistance.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geodistance.blogspot.com/feeds/4480214749388276924/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=735765459501545235&amp;postID=4480214749388276924' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/735765459501545235/posts/default/4480214749388276924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/735765459501545235/posts/default/4480214749388276924'/><link rel='alternate' type='text/html' href='http://geodistance.blogspot.com/2006/12/core-2-duo-virtualization.html' title='Core 2 Duo Virtualization'/><author><name>Mark</name><uri>http://www.blogger.com/profile/06488595742676979856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-735765459501545235.post-2221561937285384804</id><published>2006-12-28T10:50:00.000-08:00</published><updated>2006-12-29T21:04:27.216-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='defragment hard drive safe mode'/><title type='text'>Defrag Windows XP in Safe Mode</title><content type='html'>Even when something is old news to everyone else, it is still new news to the person that hasn't yet heard it. This is what happened to me regarding defragging you hard drive while running in safe mode under Windows. Defragging your hard drive in safe mode gives better results that defragging under a normal Windows session.&lt;br /&gt;&lt;br /&gt;To defrag your Windows machine follow the easy steps:&lt;br /&gt;&lt;br /&gt;1) Reboot your machine. When the Windows logo is diplayed press F8 to get the boot options. Select "Safe Mode"&lt;br /&gt;&lt;br /&gt;2) Once you are booted into "Safe Mode", go to the Start Menu and select Run. In the Run text box type "cmd" and hit enter.&lt;br /&gt;&lt;br /&gt;3) From the command window type the command "defrag c: -v" (without the quotes) to defrag your c: drive. You can also type "defrag c: -a -v" to analyze your hard drive with actually performing the defrag operation.&lt;br /&gt;&lt;br /&gt;Easy and seems to work well.&lt;br /&gt;&lt;br /&gt;Defragging is so easy that the AARP posted an article so that even Grandma can perform the operation (&lt;a href="http://www.aarp.org/learntech/computers/howto/a2004-06-16-defrag.html"&gt;http://www.aarp.org/learntech/computers/howto/a2004-06-16-defrag.html&lt;/a&gt;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/735765459501545235-2221561937285384804?l=geodistance.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geodistance.blogspot.com/feeds/2221561937285384804/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=735765459501545235&amp;postID=2221561937285384804' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/735765459501545235/posts/default/2221561937285384804'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/735765459501545235/posts/default/2221561937285384804'/><link rel='alternate' type='text/html' href='http://geodistance.blogspot.com/2006/12/defrag-windows-xp-in-safe-mode.html' title='Defrag Windows XP in Safe Mode'/><author><name>Mark</name><uri>http://www.blogger.com/profile/06488595742676979856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-735765459501545235.post-5095746293585550476</id><published>2006-11-17T11:42:00.000-08:00</published><updated>2006-11-17T11:47:23.898-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='Mozilla'/><category scheme='http://www.blogger.com/atom/ns#' term='childNode'/><category scheme='http://www.blogger.com/atom/ns#' term='XML'/><title type='text'>Mozilla XML DOM and nodeValue length - Revisited</title><content type='html'>I have switched over from my old blogging engine to blogger.com.  I only had one entry, but I wanted to go ahead and post it.  Here is the text of the old post:&lt;br /&gt;&lt;br /&gt;I discovered a behavior in the Mozilla XML DOM which is different than I would have suspected, and not well documented. At least I was not able to find out this info without much frustration. Suppose that you to extract information out of a parsed XML file via the xmlHttpResponse object as the code fragment below demonstrates:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;reqObj = new XMLHttpRequest();&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;if (reqObj.readyState == 4) {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;// only if "OK"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;if (reqObj.status == 200) {&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;//Get XML data from response&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;var data = reqObj.responseXML.getElementsByTagNameNS "http://namespace/", "getDataResult");&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;var text = data[0].childNodes[0].nodeValue;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I expected the last line above to return the entire string value of the element's text for the node. Instead what I received was the a trunctated version of the text value. The equivalent operation using the IE DOM object worked just fine, and did not truncate the text.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;var text = data[0].childNodes[0].text; //for IE worked fine&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;It turns out that in the Mozilla XML DOM if the text value of the node is too long it will create child nodes to hold the rest of the text.&lt;br /&gt;&lt;br /&gt;The following modification took care of the problem and I was able to retrieve the entire text value for the node:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;var text = "";&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;for(var cnt=0; cnt &lt;&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;text = text + data[0].childNodes[cnt].nodeValue;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Another reminder to not get sloppy and just assume the length of a collection that is returned.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/735765459501545235-5095746293585550476?l=geodistance.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geodistance.blogspot.com/feeds/5095746293585550476/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=735765459501545235&amp;postID=5095746293585550476' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/735765459501545235/posts/default/5095746293585550476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/735765459501545235/posts/default/5095746293585550476'/><link rel='alternate' type='text/html' href='http://geodistance.blogspot.com/2006/11/mozilla-xml-dom-and-nodevalue-length.html' title='Mozilla XML DOM and nodeValue length - Revisited'/><author><name>Mark</name><uri>http://www.blogger.com/profile/06488595742676979856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
