<?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>WishMesh</title>
	<atom:link href="http://wishmesh.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://wishmesh.com</link>
	<description>Real men don&#039;t make backups</description>
	<lastBuildDate>Mon, 23 Apr 2012 16:15:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How to execute JavaScript after inserting into element.innerHTML automatically</title>
		<link>http://wishmesh.com/2012/04/how-to-execute-javascript-after-inserting-into-element-innerhtml-automatically/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-execute-javascript-after-inserting-into-element-innerhtml-automatically</link>
		<comments>http://wishmesh.com/2012/04/how-to-execute-javascript-after-inserting-into-element-innerhtml-automatically/#comments</comments>
		<pubDate>Mon, 23 Apr 2012 16:15:45 +0000</pubDate>
		<dc:creator>Maris</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[innerHTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[JS]]></category>

		<guid isPermaLink="false">http://wishmesh.com/?p=944</guid>
		<description><![CDATA[Here is a scenario: you have some software/component that inserts partial HTML into page using JavaScript element.innerHTML function; you can insert any HTML tags including &#60;script&#62;; you can not call any JS function (software/component does not have such functionality), and &#8230; <a href="http://wishmesh.com/2012/04/how-to-execute-javascript-after-inserting-into-element-innerhtml-automatically/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here is a scenario:
<ol>
<li>you have some software/component that inserts partial HTML into page using JavaScript element.innerHTML function;</li>
<li>you can insert any HTML tags including &lt;script&gt;;</li>
<li>you can not call any JS function (software/component does not have such functionality), and <strong>inserted script using innerHTML is not executed automatically</strong>.</li>
</ol>
<p>After some lost time trying to come up with the solution, I found the following trick using image tag and onload attribute. Again if you try to use script tag, it will not work:<br />
<code>&lt;script type="text/javascript"&gt;alert('testing')&lt;/script&gt;</code><br />
However <strong>code with image trick will execute JavaScript automatically</strong>:<br />
<code>&lt;img src="/images/1x1-transparent.png" onload="alert('testing');this.parentNode.removeChild(this);" /&gt;</code></p>
<p>Note that removeChild, will remove just inserted image, so your HTML code stays unaffected.</p>
<p>Sources:</p>
<ul>
<li><a href="http://24ways.org/2005/have-your-dom-and-script-it-too">Smuggle  arbitrary JavaScript into the existing document</a> (http://24ways.org).</li>
<li><a href="http://stackoverflow.com/questions/1197575/can-scripts-be-inserted-with-innerhtml">Can scripts be inserted with innerHTML?</a> (Stackoverflow)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://wishmesh.com/2012/04/how-to-execute-javascript-after-inserting-into-element-innerhtml-automatically/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disappearing folder &#8211; bug in Windows 7</title>
		<link>http://wishmesh.com/2012/04/disappearing-folder-bug-in-windows-7/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=disappearing-folder-bug-in-windows-7</link>
		<comments>http://wishmesh.com/2012/04/disappearing-folder-bug-in-windows-7/#comments</comments>
		<pubDate>Sat, 07 Apr 2012 14:52:46 +0000</pubDate>
		<dc:creator>Maris</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[Folder]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows XP]]></category>

		<guid isPermaLink="false">http://wishmesh.com/?p=913</guid>
		<description><![CDATA[In process of testing one of our automation software I hit interesting Windows 7 bug. First I found it in our software, and right away tested this scenario on Windows 7, and bug was there. The bug. Create folder on &#8230; <a href="http://wishmesh.com/2012/04/disappearing-folder-bug-in-windows-7/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In process of testing one of our <a href="http://www.febooti.com/products/automation-workshop/">automation software</a> I hit interesting Windows 7 bug. First I found it in <a href="http://atasks.com/2012/04/folders-can-not-have-a-dot-at-the-end/">our software</a>, and right away tested this scenario on Windows 7, and bug was there.</p>
<p><strong>The bug.</strong> Create folder on the Desktop.</p>
<div id="attachment_917" class="wp-caption alignnone" style="width: 537px"><a href="http://wishmesh.com/wp-content/uploads/2012/04/01-right-click-on-desktop.jpg"><img src="http://wishmesh.com/wp-content/uploads/2012/04/01-right-click-on-desktop.jpg" alt="" title="Right click on Desktop" width="527" height="454" class="size-full wp-image-917" /></a><p class="wp-caption-text">Right click on Desktop</p></div>
<div id="attachment_918" class="wp-caption alignnone" style="width: 323px"><a href="http://wishmesh.com/wp-content/uploads/2012/04/02-new-folder.jpg"><img src="http://wishmesh.com/wp-content/uploads/2012/04/02-new-folder.jpg" alt="" title="New folder" width="313" height="352" class="size-full wp-image-918" /></a><p class="wp-caption-text">New folder</p></div>
<p>New folder appears and cursor blinks allowing to change the name for the folder.</p>
<div id="attachment_919" class="wp-caption alignnone" style="width: 301px"><a href="http://wishmesh.com/wp-content/uploads/2012/04/03-cursor-at-the-end.jpg"><img src="http://wishmesh.com/wp-content/uploads/2012/04/03-cursor-at-the-end.jpg" alt="" title="Cursor at the end" width="291" height="325" class="size-full wp-image-919" /></a><p class="wp-caption-text">Cursor at the end</p></div>
<p>Place cursor at the end of folder name, and enter dot (.) character.</p>
<div id="attachment_920" class="wp-caption alignnone" style="width: 289px"><a href="http://wishmesh.com/wp-content/uploads/2012/04/04-dot-at-the-end.jpg"><img src="http://wishmesh.com/wp-content/uploads/2012/04/04-dot-at-the-end.jpg" alt="" title="Dot at the end" width="279" height="320" class="size-full wp-image-920" /></a><p class="wp-caption-text">Dot at the end</p></div>
<p>After pressing Enter key the folder disappears.</p>
<div id="attachment_921" class="wp-caption alignnone" style="width: 297px"><a href="http://wishmesh.com/wp-content/uploads/2012/04/05-folder-disappears.jpg"><img src="http://wishmesh.com/wp-content/uploads/2012/04/05-folder-disappears.jpg" alt="" title="Folder disappears" width="287" height="329" class="size-full wp-image-921" /></a><p class="wp-caption-text">Folder disappears</p></div>
<p>But do not worry, it will come back after reboot, or after refresh (F5 key).</p>
<div id="attachment_922" class="wp-caption alignnone" style="width: 338px"><a href="http://wishmesh.com/wp-content/uploads/2012/04/06-after-refresh.jpg"><img src="http://wishmesh.com/wp-content/uploads/2012/04/06-after-refresh.jpg" alt="" title="After refresh" width="328" height="321" class="size-full wp-image-922" /></a><p class="wp-caption-text">After refresh</p></div>
<p>Appears that this bug/behavior&#8230; that only Windows 7 is affected. Other Windows versions I tested does not have this bug, even Windows XP and upcoming Windows 8 behaves correctly (see screenshots at the end of the post).</p>
<p><strong>A side note.</strong> By &#8220;correctly&#8221; in this case I mean, that folder does not disappear, however perhaps, there is <strong>another bug</strong>. The dot &#8220;.&#8221; character disappears in <strong>all Windows versions</strong>. This of course depends on interpretation, for example, I also tested this on Ubuntu 10, and Ubuntu (and probably most nixes) allows dot (.) at the end of filename.</p>
<p><strong>Why this happens?</strong> Every filename consists of two parts: filename and extension. These two parts are separated by dot (.) character. Windows Shell hides this dot from you, and when you enter &#8220;filename.&#8221;, it thinks, that this must be a filename without extension, so it stores only filename. In theory you should be able to trick shell by adding more dots, like &#8220;filename&#8230;&#8221;, but Windows 7 Shell reduces them to no dot. <strong>Of course you can create file or folder with one or more dots at the end</strong>, but for this you will need a normal file manager, like <a href="http://www.farmanager.com/">Far Manager</a> (which is open source). Also, keep in mind, that you will not be able to delete this file or folder from desktop using Windows Shell, you will need to switch to file manager again.</p>
<p>Note 1. Windows Server 2008 R2 is based on the same codebase, so it has the same bug.<br />
Note 2. Operating Systems used in the test:</p>
<ul>
<li>Windows 7 Professional 64-bit</li>
<li>Windows Vista Enterprise</li>
<li>Windows Server 2008 Enterprise</li>
<li>Windows Server 2008 R2 Datacenter</li>
<li>Windows Server 2003 Enterprise</li>
<li>Windows 8 Consumer preview</li>
<li>Windows XP</li>
<li>Ubuntu 10</li>
</ul>

<a href='http://wishmesh.com/2012/04/disappearing-folder-bug-in-windows-7/01-right-click-on-desktop/' title='Right click on Desktop'><img width="150" height="150" src="http://wishmesh.com/wp-content/uploads/2012/04/01-right-click-on-desktop-150x150.jpg" class="attachment-thumbnail" alt="Right click on Desktop" title="Right click on Desktop" /></a>
<a href='http://wishmesh.com/2012/04/disappearing-folder-bug-in-windows-7/02-new-folder/' title='New folder'><img width="150" height="150" src="http://wishmesh.com/wp-content/uploads/2012/04/02-new-folder-150x150.jpg" class="attachment-thumbnail" alt="New folder" title="New folder" /></a>
<a href='http://wishmesh.com/2012/04/disappearing-folder-bug-in-windows-7/03-cursor-at-the-end/' title='Cursor at the end'><img width="150" height="150" src="http://wishmesh.com/wp-content/uploads/2012/04/03-cursor-at-the-end-150x150.jpg" class="attachment-thumbnail" alt="Cursor at the end" title="Cursor at the end" /></a>
<a href='http://wishmesh.com/2012/04/disappearing-folder-bug-in-windows-7/04-dot-at-the-end/' title='Dot at the end'><img width="150" height="150" src="http://wishmesh.com/wp-content/uploads/2012/04/04-dot-at-the-end-150x150.jpg" class="attachment-thumbnail" alt="Dot at the end" title="Dot at the end" /></a>
<a href='http://wishmesh.com/2012/04/disappearing-folder-bug-in-windows-7/05-folder-disappears/' title='Folder disappears'><img width="150" height="150" src="http://wishmesh.com/wp-content/uploads/2012/04/05-folder-disappears-150x150.jpg" class="attachment-thumbnail" alt="Folder disappears" title="Folder disappears" /></a>
<a href='http://wishmesh.com/2012/04/disappearing-folder-bug-in-windows-7/06-after-refresh/' title='After refresh'><img width="150" height="150" src="http://wishmesh.com/wp-content/uploads/2012/04/06-after-refresh-150x150.jpg" class="attachment-thumbnail" alt="After refresh" title="After refresh" /></a>
<a href='http://wishmesh.com/2012/04/disappearing-folder-bug-in-windows-7/07-windows-vista-folder/' title='Windows Vista folder'><img width="150" height="150" src="http://wishmesh.com/wp-content/uploads/2012/04/07-windows-vista-folder-150x150.jpg" class="attachment-thumbnail" alt="Windows Vista folder" title="Windows Vista folder" /></a>
<a href='http://wishmesh.com/2012/04/disappearing-folder-bug-in-windows-7/08-windows-vista-folder-does-not-move/' title='Windows Vista folder does not move'><img width="150" height="150" src="http://wishmesh.com/wp-content/uploads/2012/04/08-windows-vista-folder-does-not-move-150x150.jpg" class="attachment-thumbnail" alt="Windows Vista folder does not move" title="Windows Vista folder does not move" /></a>
<a href='http://wishmesh.com/2012/04/disappearing-folder-bug-in-windows-7/09-windows-2008-folder/' title='Windows Server 2008 folder'><img width="150" height="150" src="http://wishmesh.com/wp-content/uploads/2012/04/09-windows-2008-folder-150x150.jpg" class="attachment-thumbnail" alt="Windows Server 2008 folder" title="Windows Server 2008 folder" /></a>
<a href='http://wishmesh.com/2012/04/disappearing-folder-bug-in-windows-7/10-windows-2008-folder-stays/' title='Windows Server 2008 folder stays'><img width="150" height="150" src="http://wishmesh.com/wp-content/uploads/2012/04/10-windows-2008-folder-stays-150x150.jpg" class="attachment-thumbnail" alt="Windows Server 2008 folder stays" title="Windows Server 2008 folder stays" /></a>
<a href='http://wishmesh.com/2012/04/disappearing-folder-bug-in-windows-7/11-windows-2008-r2-folder/' title='Windows Server 2008 R2 folder'><img width="150" height="150" src="http://wishmesh.com/wp-content/uploads/2012/04/11-windows-2008-r2-folder-150x150.jpg" class="attachment-thumbnail" alt="Windows Server 2008 R2 folder" title="Windows Server 2008 R2 folder" /></a>
<a href='http://wishmesh.com/2012/04/disappearing-folder-bug-in-windows-7/12-windows-2008-r2-folder-disappears/' title='Windows Server 2008 R2 folder disappears'><img width="150" height="150" src="http://wishmesh.com/wp-content/uploads/2012/04/12-windows-2008-r2-folder-disappears-150x150.jpg" class="attachment-thumbnail" alt="Windows Server 2008 R2 folder disappears" title="Windows Server 2008 R2 folder disappears" /></a>
<a href='http://wishmesh.com/2012/04/disappearing-folder-bug-in-windows-7/13-windows-2003-folder/' title='Windows Server 2003 folder'><img width="150" height="145" src="http://wishmesh.com/wp-content/uploads/2012/04/13-windows-2003-folder-150x145.jpg" class="attachment-thumbnail" alt="Windows Server 2003 folder" title="Windows Server 2003 folder" /></a>
<a href='http://wishmesh.com/2012/04/disappearing-folder-bug-in-windows-7/14-windows-2003-folder-stays/' title='Windows Server 2003 folder stays'><img width="148" height="142" src="http://wishmesh.com/wp-content/uploads/2012/04/14-windows-2003-folder-stays.jpg" class="attachment-thumbnail" alt="Windows Server 2003 folder stays" title="Windows Server 2003 folder stays" /></a>
<a href='http://wishmesh.com/2012/04/disappearing-folder-bug-in-windows-7/15-windows-xp-folder/' title='Windows XP folder'><img width="150" height="150" src="http://wishmesh.com/wp-content/uploads/2012/04/15-windows-xp-folder-150x150.jpg" class="attachment-thumbnail" alt="Windows XP folder" title="Windows XP folder" /></a>
<a href='http://wishmesh.com/2012/04/disappearing-folder-bug-in-windows-7/16-windows-xp-folder-stays/' title='Windows XP folder stays'><img width="150" height="149" src="http://wishmesh.com/wp-content/uploads/2012/04/16-windows-xp-folder-stays-150x149.jpg" class="attachment-thumbnail" alt="Windows XP folder stays" title="Windows XP folder stays" /></a>
<a href='http://wishmesh.com/2012/04/disappearing-folder-bug-in-windows-7/17-windows-8-cp-folder/' title='Windows 8 folder'><img width="150" height="150" src="http://wishmesh.com/wp-content/uploads/2012/04/17-windows-8-cp-folder-150x150.jpg" class="attachment-thumbnail" alt="Windows 8 folder" title="Windows 8 folder" /></a>
<a href='http://wishmesh.com/2012/04/disappearing-folder-bug-in-windows-7/18-windows-8-cp-folder-again-stays/' title='Windows 8 Consumer preview folder stays again'><img width="150" height="150" src="http://wishmesh.com/wp-content/uploads/2012/04/18-windows-8-cp-folder-again-stays-150x150.jpg" class="attachment-thumbnail" alt="Windows 8 Consumer preview folder stays again" title="Windows 8 Consumer preview folder stays again" /></a>
<a href='http://wishmesh.com/2012/04/disappearing-folder-bug-in-windows-7/19-ubuntu-10-folder/' title='Ubuntu 10 Folder'><img width="150" height="150" src="http://wishmesh.com/wp-content/uploads/2012/04/19-ubuntu-10-folder-150x150.jpg" class="attachment-thumbnail" alt="Ubuntu 10 Folder" title="Ubuntu 10 Folder" /></a>
<a href='http://wishmesh.com/2012/04/disappearing-folder-bug-in-windows-7/20-ubuntu-10-folder-with-dot-at-the-end/' title='Ubuntu 10 Folder with dot at the end'><img width="150" height="150" src="http://wishmesh.com/wp-content/uploads/2012/04/20-ubuntu-10-folder-with-dot-at-the-end-150x150.jpg" class="attachment-thumbnail" alt="Ubuntu 10 Folder with dot at the end" title="Ubuntu 10 Folder with dot at the end" /></a>

]]></content:encoded>
			<wfw:commentRss>http://wishmesh.com/2012/04/disappearing-folder-bug-in-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>When Windows automatic update suddenly stops updating Windows automatically</title>
		<link>http://wishmesh.com/2012/03/when-windows-automatic-update-suddenly-stops-updating-windows-automatically/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=when-windows-automatic-update-suddenly-stops-updating-windows-automatically</link>
		<comments>http://wishmesh.com/2012/03/when-windows-automatic-update-suddenly-stops-updating-windows-automatically/#comments</comments>
		<pubDate>Fri, 16 Mar 2012 17:51:32 +0000</pubDate>
		<dc:creator>Maris</dc:creator>
				<category><![CDATA[OS]]></category>
		<category><![CDATA[Automatic]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Installer]]></category>
		<category><![CDATA[Windows Update]]></category>

		<guid isPermaLink="false">http://wishmesh.com/?p=909</guid>
		<description><![CDATA[Recently we noticed that some of our test and dev servers were not updating automatically through Windows or Microsoft update. It was real pain to find why this happened. There are numerous threads in the Internet about failed Windows update, &#8230; <a href="http://wishmesh.com/2012/03/when-windows-automatic-update-suddenly-stops-updating-windows-automatically/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Recently we noticed that some of our test and dev servers were not updating automatically through <a href="http://en.wikipedia.org/wiki/Windows_Update">Windows or Microsoft update</a>.</p>
<p>It was real pain to find why this happened. There are numerous threads in the Internet about failed Windows update, and it is very hard to find the right answer. Luckily, I found a post in CNET forum from Jim Sheehy from Sequel Data Systems. He supports more than 800 desktops and he is writing about three possible causes of Windows update failure:</p>
<ol>
<li>The Windows Update Temporary folder is corrupted. (%windir%\SoftwareDistribution)</li>
<li>Update Agent 3.0 is not installed properly. (<a href="http://support.microsoft.com/kb/949104">Download latest Update Agent</a>)</li>
<li>Installer 3.1 is corrupted. (<a href="http://www.google.com/search?q=windows+installer+download">Reinstall Windows Installer 3.1 or &#8230;</a>)</li>
</ol>
<p>Read more at <a href="http://forums.cnet.com/7726-10149_102-2574623.html">CNET forum: Help! My Windows automatic updates suddenly stopped working.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wishmesh.com/2012/03/when-windows-automatic-update-suddenly-stops-updating-windows-automatically/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Strange MAC addresses in your network (00:0D:3A:D7:F1:40 &#8211; 00:0D:3A:FF:FF:FF)</title>
		<link>http://wishmesh.com/2012/03/strange-mac-addresses-in-your-network-000d3ad7f140-000d3affffff/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=strange-mac-addresses-in-your-network-000d3ad7f140-000d3affffff</link>
		<comments>http://wishmesh.com/2012/03/strange-mac-addresses-in-your-network-000d3ad7f140-000d3affffff/#comments</comments>
		<pubDate>Wed, 14 Mar 2012 20:53:48 +0000</pubDate>
		<dc:creator>Maris</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[LLTD]]></category>
		<category><![CDATA[MAC address]]></category>
		<category><![CDATA[network]]></category>

		<guid isPermaLink="false">http://wishmesh.com/?p=903</guid>
		<description><![CDATA[Today I noticed many strange MAC addresses in our LAN. The addresses looked very similar &#8211; only few bits were changing. Sometime this happens, when Ethernet cable is damaged or due to network card malfunction. Here are some sample MAC &#8230; <a href="http://wishmesh.com/2012/03/strange-mac-addresses-in-your-network-000d3ad7f140-000d3affffff/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today I noticed many strange <a href="http://en.wikipedia.org/wiki/MAC_address">MAC addresses</a> in our LAN. The addresses looked very similar &#8211; only few bits were changing. Sometime this happens, when Ethernet cable is damaged or due to network card malfunction. Here are some sample MAC addresses I observed:</p>
<ul>
<li>000d3a-fa6109</li>
<li>000d3a-fa6207</li>
<li>000d3a-fa6209</li>
<li>000d3a-fa6107</li>
<li>000d3a-fa6203</li>
<li>000d3a-fa6103</li>
<li>000d3a-fa6212</li>
<li>000d3a-fa6112</li>
<li>000d3a-fa610f</li>
<li>000d3a-fa620f</li>
</ul>
<p><strong>It turns out,</strong> that this time these MAC addresses appeared because someone in our LAN clicked on <em>See full map</em> under <em>Control Panel</em> &#8211; <em>Network and Sharing Center</em>.</p>
<p><a href="http://wishmesh.com/wp-content/uploads/2012/03/see-full-map-in-windows.jpg"><img src="http://wishmesh.com/wp-content/uploads/2012/03/see-full-map-in-windows.jpg" alt="" title="see-full-map-in-windows" width="876" height="274" class="alignnone size-full wp-image-904" /></a></p>
<p>Microsoft documentation about Link Layer Topology Discovery (LLTD) Protocol states that:</p>
<blockquote><p>This protocol defines a range of special MAC addresses that applications can use when they conduct network topology tests. This range is 0x000D3AD7F140 through 0x000D3AFFFFFF. These MAC addresses do not conflict with actual MAC addresses because the range is built from an assigned Organizationally Unique Identifier (OUI)&#8230;
</p></blockquote>
<p>Read more here:<br />
<a href="http://www.microsoft.com/whdc/connect/rally/lltd-spec.mspx">http://www.microsoft.com/whdc/connect/rally/lltd-spec.mspx</a><br />
<a href="http://download.microsoft.com/download/a/f/7/af7777e5-7dcd-4800-8a0a-b18336565f5b/LLTD-spec.doc">http://download.microsoft.com/download/a/f/7/af7777e5-7dcd-4800-8a0a-b18336565f5b/LLTD-spec.doc</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wishmesh.com/2012/03/strange-mac-addresses-in-your-network-000d3ad7f140-000d3affffff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Watch window shows &#8216;CXX0058: Error: overloaded operator not found&#8217;</title>
		<link>http://wishmesh.com/2012/02/watch-window-shows-cxx0058-error-overloaded-operator-not-found/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=watch-window-shows-cxx0058-error-overloaded-operator-not-found</link>
		<comments>http://wishmesh.com/2012/02/watch-window-shows-cxx0058-error-overloaded-operator-not-found/#comments</comments>
		<pubDate>Sun, 26 Feb 2012 21:00:07 +0000</pubDate>
		<dc:creator>Maris</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Debug]]></category>
		<category><![CDATA[STL]]></category>
		<category><![CDATA[VS2010]]></category>

		<guid isPermaLink="false">http://wishmesh.com/?p=896</guid>
		<description><![CDATA[If you add a Watch for std::vector using array subscript operator, like, myVector[5], then Visual Studio 2010 instead of showing value, will show the error: &#8216;CXX0058: Error: overloaded operator not found&#8217;. However when you cover std::vector with mouse, the tooltip &#8230; <a href="http://wishmesh.com/2012/02/watch-window-shows-cxx0058-error-overloaded-operator-not-found/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you add a Watch for std::vector using array subscript operator, like, myVector[5], then Visual Studio 2010 instead of showing value, will show the error: &#8216;CXX0058: Error: overloaded operator not found&#8217;. However when you cover std::vector with mouse, the tooltip watch will show correct values.</p>
<div id="attachment_898" class="wp-caption alignnone" style="width: 389px"><a href="http://wishmesh.com/wp-content/uploads/2012/02/error-CXX0058.png"><img src="http://wishmesh.com/wp-content/uploads/2012/02/error-CXX0058.png" alt="" title="CXX0058: Error: overloaded operator not found" width="379" height="22" class="size-full wp-image-898" /></a><p class="wp-caption-text">CXX0058: Error: overloaded operator not found</p></div>
<p>The workaround for the STL vector is to use:<br />
<code>myVector._Myfirst[5]</code><br />
instead of<br />
<code>myVector[5]</code></p>
<p>Found this solution in <a href="http://stackoverflow.com/questions/1788702/visual-studio-fails-to-display-some-watched-expressions">StackOverflow</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://wishmesh.com/2012/02/watch-window-shows-cxx0058-error-overloaded-operator-not-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RegCopyTree fails with Access denied error (5) on Windows 7</title>
		<link>http://wishmesh.com/2012/02/regcopytree-fails-with-access-denied-error-5-on-windows-7/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=regcopytree-fails-with-access-denied-error-5-on-windows-7</link>
		<comments>http://wishmesh.com/2012/02/regcopytree-fails-with-access-denied-error-5-on-windows-7/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 15:56:33 +0000</pubDate>
		<dc:creator>Maris</dc:creator>
				<category><![CDATA[OS]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[MSDN]]></category>
		<category><![CDATA[Registry]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[Windows API]]></category>

		<guid isPermaLink="false">http://wishmesh.com/?p=889</guid>
		<description><![CDATA[MSDN documentation for RegCopyTree states that &#8216;The calling process must have KEY_CREATE_SUB_KEY access to the destination key&#8217;, however call fails on some keys with Access denied error (5) on Windows 7 Ultimate 64-bit. Changing desired access rights to KEY_ALL_ACCESS solves &#8230; <a href="http://wishmesh.com/2012/02/regcopytree-fails-with-access-denied-error-5-on-windows-7/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>MSDN documentation for <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa379768%28v=vs.85%29.aspx">RegCopyTree</a> states that &#8216;The calling process must have KEY_CREATE_SUB_KEY access to the destination key&#8217;, however call fails on some keys with Access denied error (5) on Windows 7 Ultimate 64-bit.</p>
<p>Changing desired access rights to <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms724878%28v=vs.85%29.aspx">KEY_ALL_ACCESS</a> solves the problem. Currently I do not know why, but it works in my case.</p>
]]></content:encoded>
			<wfw:commentRss>http://wishmesh.com/2012/02/regcopytree-fails-with-access-denied-error-5-on-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>On production machine: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts.</title>
		<link>http://wishmesh.com/2011/12/on-production-machine-ajaxcontroltoolkit-requires-asp-net-ajax-4-0-scripts/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=on-production-machine-ajaxcontroltoolkit-requires-asp-net-ajax-4-0-scripts</link>
		<comments>http://wishmesh.com/2011/12/on-production-machine-ajaxcontroltoolkit-requires-asp-net-ajax-4-0-scripts/#comments</comments>
		<pubDate>Sat, 24 Dec 2011 11:48:39 +0000</pubDate>
		<dc:creator>Maris</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[AJAX Control Toolkit]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[Debug]]></category>
		<category><![CDATA[IIS]]></category>

		<guid isPermaLink="false">http://wishmesh.com/?p=879</guid>
		<description><![CDATA[I was helping my colleagues to debug one weird bug on ASP.NET 4.0 website. Everything worked well on developer&#8217;s machine, but after publishing to IIS 7.5 Windows 2008 R2 Webserver, we always got site partially working. Everything worked, except AJAX &#8230; <a href="http://wishmesh.com/2011/12/on-production-machine-ajaxcontroltoolkit-requires-asp-net-ajax-4-0-scripts/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was helping my colleagues to debug one weird bug on ASP.NET 4.0 website. Everything worked well on developer&#8217;s machine, but after publishing to IIS 7.5 Windows 2008 R2 Webserver, we always got site partially working. Everything worked, except <a href="http://ajaxcontroltoolkit.codeplex.com/">AJAX Control Toolkit</a> controls.</p>
<p>There were no any signs of errors. Ajax controls just were not functioning. Digging deeper, we found, that JavaScript is throwing exceptions:<br />
<code>SCRIPT5022: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll.</code></p>
<p><a href="http://wishmesh.com/wp-content/uploads/2011/12/ajaxcontroltoolkit-requires-asp-net-ajax-4-0-scripts-firefox.png"><img src="http://wishmesh.com/wp-content/uploads/2011/12/ajaxcontroltoolkit-requires-asp-net-ajax-4-0-scripts-firefox-300x59.png" alt="" title="AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts" width="300" height="59" class="alignnone size-medium wp-image-882" /></a></p>
<p><a href="http://wishmesh.com/wp-content/uploads/2011/12/ajaxcontroltoolkit-requires-asp-net-ajax-4-0-scripts-ie.png"><img src="http://wishmesh.com/wp-content/uploads/2011/12/ajaxcontroltoolkit-requires-asp-net-ajax-4-0-scripts-ie-300x49.png" alt="" title="AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts" width="300" height="49" class="alignnone size-medium wp-image-881" /></a></p>
<p>This is the most common error with AJAX Control Toolkit &#8212; you need to use ToolkitScriptManager instead of ScriptManager. <a href="http://blog.thinkoriginally.com/2010/05/03/microsoft-jscript-runtime-error-ajaxcontroltoolkit-requires-asp-net-ajax-4-0-scripts/" title="Microsoft JScript runtime error: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. ">Read more here</a>.</p>
<p>But in our case we was already using ToolkitScriptManager in the all places in our source code.</p>
<p><strong>Digging deeper we found that there is a bug in Script Manager, that is trying to load all DLLs in the project&#8217;s bin folder.</strong> Script Manager is trying to load DLL files even if they are not used in the project. [I know, that it is not best practice, to keep files not used by project on the production server, but that's another story.]</p>
<p>The solution was plain and simple: <strong>remove all unused DLLs from production machine&#8217;s bin folder</strong>.</p>
<p>More info about bug and the same problem in different product:</p>
<ul>
<li><a href="http://connect.microsoft.com/VisualStudio/feedback/details/588777/custom-attribute-load-failure-in-getajaxframeworkassemblyattribute">Custom Attribute Load Failure in GetAjaxFrameworkAssemblyAttribute</a> from MS Connect</li>
<li><a href="http://groups.google.com/group/websync/browse_thread/thread/83c1f88abbb00b80?pli=1">Compatibility issue using ASP.Net 4.0, Extensions and ScriptManager</a> from WebSync @ Google Groups</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://wishmesh.com/2011/12/on-production-machine-ajaxcontroltoolkit-requires-asp-net-ajax-4-0-scripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C++ now allows to forward declare enum(s)</title>
		<link>http://wishmesh.com/2011/12/c-now-allows-to-forward-declare-enums/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=c-now-allows-to-forward-declare-enums</link>
		<comments>http://wishmesh.com/2011/12/c-now-allows-to-forward-declare-enums/#comments</comments>
		<pubDate>Mon, 05 Dec 2011 20:21:46 +0000</pubDate>
		<dc:creator>Maris</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Enum]]></category>

		<guid isPermaLink="false">http://wishmesh.com/?p=850</guid>
		<description><![CDATA[Thanks to recently approved standard (C++11 / C++0x), it is possible to forward declare enums. It was possible with classes for the long time, for example, &#8220;class MyClass;&#8221; in C++ [forward] declares class without providing underlying details. For enums it &#8230; <a href="http://wishmesh.com/2011/12/c-now-allows-to-forward-declare-enums/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Thanks to <a href="http://developers.slashdot.org/story/11/03/26/1949225/ISO-C-Committee-Approves-C0x-Final-Draft">recently approved</a> standard (C++11 / C++0x), it is possible to forward declare enums. It was possible with classes for the long time, for example, &#8220;class MyClass;&#8221; in C++ [forward] declares class without providing underlying details. For enums it was not possible, because compiler needed to know exact size of the enum.</p>
<p>Below are details from <a href="http://en.wikipedia.org/wiki/C%2B%2B11">Wikipedia</a>:</p>
<blockquote><p>Forward-declaring enums is also possible in C++11. Previously, enum types could not be forward-declared because the size of the enumeration depends on the definition of its members. As long as the size of the enumeration is specified either implicitly or explicitly, it can be forward-declared:</p></blockquote>
<p><code>enum Enum1;                      // Illegal in C++03 and C++11; the underlying type cannot be determined.<br />
enum Enum2 : unsigned int;       // Legal in C++11, the underlying type is explicitly specified.<br />
enum class Enum3;                // Legal in C++11, the underlying type is int.<br />
enum class Enum4 : unsigned int; // Legal C++11.<br />
enum Enum2 : unsigned short;     // Illegal in C++11, because Enum2 was previously declared with a different underlying type.</code></p>
]]></content:encoded>
			<wfw:commentRss>http://wishmesh.com/2011/12/c-now-allows-to-forward-declare-enums/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.NET text box blank/empty/invisible/hidden when text reaches certain length</title>
		<link>http://wishmesh.com/2011/12/net-text-box-blankemptyinvisiblehidden-when-text-reaches-certain-length/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=net-text-box-blankemptyinvisiblehidden-when-text-reaches-certain-length</link>
		<comments>http://wishmesh.com/2011/12/net-text-box-blankemptyinvisiblehidden-when-text-reaches-certain-length/#comments</comments>
		<pubDate>Fri, 02 Dec 2011 20:27:23 +0000</pubDate>
		<dc:creator>Maris</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[Bug]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[TextBox]]></category>

		<guid isPermaLink="false">http://wishmesh.com/?p=857</guid>
		<description><![CDATA[It seems, that .NET 2.0 have bug when text box (TextBox control) appears blank / empty / invisible / hidden &#8212; not showing text when text length reaches certain size. My quick tests shows, that the length of the text &#8230; <a href="http://wishmesh.com/2011/12/net-text-box-blankemptyinvisiblehidden-when-text-reaches-certain-length/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It seems, that .NET 2.0 have bug when text box (TextBox control) appears blank / empty / invisible / hidden &#8212; not showing text when text length reaches certain size. My quick tests shows, that the length of the text that causes this bug to appear depends on something and are changing from program to program or from computer to computer. Unfortunately I do not have resources to test this bug in full right now.</p>
<p><strong>How to repeat this bug in C# .NET 2.0.</strong></p>
<p>Open Visual Studio and create New Project &#8211; Windows Forms Project.</p>
<div id="attachment_859" class="wp-caption alignnone" style="width: 310px"><a href="http://wishmesh.com/wp-content/uploads/2011/12/01-new-project.jpg"><img src="http://wishmesh.com/wp-content/uploads/2011/12/01-new-project-300x139.jpg" alt="" title="Create a new .NET 2.0 project" width="300" height="139" class="size-medium wp-image-859" /></a><p class="wp-caption-text">Create a new .NET 2.0 project</p></div>
<p>Add one TextBox and two Buttons to the project.</p>
<div id="attachment_860" class="wp-caption alignnone" style="width: 310px"><a href="http://wishmesh.com/wp-content/uploads/2011/12/02-form.jpg"><img src="http://wishmesh.com/wp-content/uploads/2011/12/02-form-300x300.jpg" alt="" title="Form with 2 Buttons and TextBox" width="300" height="300" class="size-medium wp-image-860" /></a><p class="wp-caption-text">Form with 2 Buttons and TextBox</p></div>
<p>Add click handlers for two buttons and one helper function. Here is a code.</p>
<p><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;private void button1k_Click(object sender, EventArgs e)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;textBox.Text = GenerateString(1000);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;private void button10k_Click(object sender, EventArgs e)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;textBox.Text = GenerateString(10000);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />
&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;private string GenerateString(int lenght)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;string text = "";<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (int i = 0; i < lenght; ++i)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text += Convert.ToChar('0' + i % 10);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return text;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</code></p>
<p>Now run the code! Clicking on the first button, TextBox shows some random numbers as expected.</p>
<div id="attachment_861" class="wp-caption alignnone" style="width: 310px"><a href="http://wishmesh.com/wp-content/uploads/2011/12/03-correct.jpg"><img src="http://wishmesh.com/wp-content/uploads/2011/12/03-correct-300x300.jpg" alt="" title="Correct result, text is shown" width="300" height="300" class="size-medium wp-image-861" /></a><p class="wp-caption-text">Correct result, text is shown</p></div>
<p>Now click on the second button. Text disappears, and only blinking cursor is shown. Also note, that <strong>TextBox is functioning -- you can still delete / add characters, select all, use copy / paste, you just do not see the results on the screen</strong>.</p>
<div id="attachment_862" class="wp-caption alignnone" style="width: 305px"><a href="http://wishmesh.com/wp-content/uploads/2011/12/04-incorrect.jpg"><img src="http://wishmesh.com/wp-content/uploads/2011/12/04-incorrect-295x300.jpg" alt="" title="Incorrect result, only cursor blinks" width="295" height="300" class="size-medium wp-image-862" /></a><p class="wp-caption-text">Incorrect result, only cursor blinks</p></div>
<p>Workarounds? Currently none. Submitted this bug to Connect: <a href="https://connect.microsoft.com/VisualStudio/feedback/details/711014/net-2-0-textbox-fails-to-display-long-texts#details">.NET 2.0 TextBox fails to display long texts</a>.</p>
<p>Tested on Windows 7 Pro 64-bit and Windows 7 Ultimate 64-bit with latest updates on 12/2/2011. Compiled with latest Visual Studio 2010 Pro 10.0.40219.1 SP1Rel w/ Microsoft .NET Framework Version 4.0.30319 SP1Rel.</p>
<p>P.S. One similar bug is reported on Microsoft Connect, however it seems like separate issue: <a href="http://connect.microsoft.com/VisualStudio/feedback/details/180146/vista-video-glitches-textbox-display-multiline-textbox-with-scrollbars-and-transparent-parent-doesnt-paint-correctly">Vanishing text bug</a>.</p>
<p>P.S.S. My source code can be downloaded from MS Connect.</p>
]]></content:encoded>
			<wfw:commentRss>http://wishmesh.com/2011/12/net-text-box-blankemptyinvisiblehidden-when-text-reaches-certain-length/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Static code analysis for C++ for free and for Pro</title>
		<link>http://wishmesh.com/2011/11/static-code-analysis-for-c-for-free-and-for-pro/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=static-code-analysis-for-c-for-free-and-for-pro</link>
		<comments>http://wishmesh.com/2011/11/static-code-analysis-for-c-for-free-and-for-pro/#comments</comments>
		<pubDate>Fri, 25 Nov 2011 17:20:39 +0000</pubDate>
		<dc:creator>Maris</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Code analysis]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://wishmesh.com/?p=844</guid>
		<description><![CDATA[Up and until Visual Studio 2010 Microsoft decided that Code Analysis tool was available only for Visual Studio Premium and Ultimate editions. I have Visual Studio 2010 Pro w/MSDN subscriptions (actually 2 of them), but can not use Code Analysis &#8230; <a href="http://wishmesh.com/2011/11/static-code-analysis-for-c-for-free-and-for-pro/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Up and until Visual Studio 2010 Microsoft decided that Code Analysis tool was available <a href="http://msdn.microsoft.com/en-us/library/ms182025.aspx">only for Visual Studio Premium and Ultimate editions</a>. I have Visual Studio 2010 Pro w/MSDN subscriptions (actually 2 of them), but can not use Code Analysis tool.</p>
<div id="attachment_846" class="wp-caption alignnone" style="width: 310px"><a href="http://wishmesh.com/wp-content/uploads/2011/11/vs-pro-wo-code-analysis.jpg"><img src="http://wishmesh.com/wp-content/uploads/2011/11/vs-pro-wo-code-analysis-300x112.jpg" alt="" title="VS Pro w/o code analysis tool" width="300" height="112" class="size-medium wp-image-846" /></a><p class="wp-caption-text">VS Pro w/o code analysis tool</p></div>
<p>This however will change with upcoming Visual Studio 11. See the SDL blog: <a href="http://blogs.msdn.com/b/sdl/archive/2011/10/19/code-analysis-for-all.aspx">Code Analysis for All</a>.</p>
<blockquote><p>This is the first time that Code Analysis has been made available in an Express edition of Visual Studio&#8230;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://wishmesh.com/2011/11/static-code-analysis-for-c-for-free-and-for-pro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 10/17 queries in 0.036 seconds using disk: basic

Served from: wishmesh.com @ 2012-05-19 21:20:04 -->
