<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-6707555</atom:id><lastBuildDate>Wed, 28 Oct 2009 13:07:25 +0000</lastBuildDate><title>Dr. H4x0rs Void</title><description>Zybermarks adventures in a techie world.</description><link>http://zybermark.blogspot.com/</link><managingEditor>noreply@blogger.com (Zybermark)</managingEditor><generator>Blogger</generator><openSearch:totalResults>27</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/DrH4x0rsVoid" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6707555.post-3251985638072496925</guid><pubDate>Wed, 28 Oct 2009 13:07:00 +0000</pubDate><atom:updated>2009-10-28T07:07:25.098-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">technology</category><category domain="http://www.blogger.com/atom/ns#">DrH4x0rsVoid</category><category domain="http://www.blogger.com/atom/ns#">vista</category><category domain="http://www.blogger.com/atom/ns#">software</category><category domain="http://www.blogger.com/atom/ns#">Windows7</category><category domain="http://www.blogger.com/atom/ns#">microsoft</category><title>HP a1750e Upgrade to Windows 7</title><description>&lt;p&gt;I upgraded my HP Pavilion a1750e machine from &lt;a href="http://www.microsoft.com/windows/windows-vista/default.aspx" target="_blank"&gt;Vista&lt;/a&gt; to &lt;a href="http://www.microsoft.com/windows/windows-7/" target="_blank"&gt;Windows 7&lt;/a&gt; (32 bit) over the weekend, here is how it all went down…&lt;/p&gt;  &lt;h3&gt;Preparation&lt;/h3&gt;  &lt;p&gt;Before doing anything I wanted to make sure my system would be able to run Windows 7 so I &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=1b544e90-7659-4bd9-9e51-2497c146af15&amp;amp;displaylang=en" target="_blank"&gt;downloaded the upgrade advisor&lt;/a&gt; and performed an analysis. The analysis takes a couple of minutes to do its work before showing you a report with all the (potential) problems you will encounter, allowing you to get your system ready before taking the big leap into an exciting new OS. The report is split up in sections covering the system hardware, devices (drivers) and programs.&lt;/p&gt;  &lt;p&gt;One of the first things the upgrade report points out in the system section is the &lt;a href="http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01778879&amp;amp;lc=en&amp;amp;dlc=en&amp;amp;cc=us&amp;amp;product=3369460&amp;amp;os=2093&amp;amp;lang=en" target="_blank"&gt;HP webpage describing how to upgrade your system&lt;/a&gt;, i recommend you take a look at it.&lt;/p&gt;  &lt;p&gt;Drivers were listed as available for all hardware devices that come standard with this system. Two ‘unknown’ devices were listed for me: “HP psc 1600 series” (a printer) and “Yamaha USB-MIDI Driver (WDM)”. I took the opportunity to install the &lt;a href="http://www.global.yamaha.com/download/usb_midi/" target="_blank"&gt;latest USB-MIDI driver from Yamaha&lt;/a&gt; (um304x86 at the time of this writing), it still functioned properly after the upgrade. The printer driver was automatically updated by the hardware wizard after the upgrade.&lt;/p&gt;  &lt;p&gt;The programs section looked a little more problematic:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Canon Camera Window MC 6 for ZoomBrowser EX, version 6.3.0.8, Known issues.      &lt;br /&gt;I uninstalled this program before upgrading. &lt;/li&gt;    &lt;li&gt;Hardware Diagnostic Tools, version 5.00.4262.12, PC-Doctor, Inc., Update available.      &lt;br /&gt;I have never used this program and did not update it. &lt;em&gt;- If you experienced problems with it please leave me a comment.&lt;/em&gt; &lt;/li&gt;    &lt;li&gt;iTunes, version 7.4.0.28, Apple Inc., Reinstall after upgrade.      &lt;br /&gt;I uninstalled this program before upgrading. &lt;/li&gt;    &lt;li&gt;Microsoft Expression Web, version 12.0.6215.1000, Microsoft Corporation, Update available.      &lt;br /&gt;I did not bother updating it (yet). &lt;/li&gt;    &lt;li&gt;Roxio Express Labeler 3, version 2.1.0, Roxio, Update available.      &lt;br /&gt;I did not update this program (yet). &lt;em&gt;- If you experienced problems with this program please leave me a comment.&lt;/em&gt; &lt;/li&gt;    &lt;li&gt;Skype™ 3.8, version 3.8.188, Skype Technologies S.A., Known issues.      &lt;br /&gt;I upgraded Skype to the latest version before upgrading which made the warning go away. &lt;/li&gt;    &lt;li&gt;Windows Mobile Device Center, version 6.1.6965.0, Microsoft Corporation, Reinstall after upgrade.      &lt;br /&gt;I uninstalled this program before upgrading, then reinstalled &lt;a href="http://www.microsoft.com/windowsmobile/en-us/downloads/microsoft/device-center-download.mspx" target="_blank"&gt;Windows Mobile Device Center&lt;/a&gt; after the upgrade and connected my &lt;a href="http://h10010.www1.hp.com/wwpc/us/en/sm/WF05a/215348-215348-64929-314903-215384-421420.html" target="_blank"&gt;iPaq&lt;/a&gt;. The driver got automatically installed and it appears to function properly. &lt;/li&gt; &lt;/ul&gt;  &lt;h3&gt;Execution&lt;/h3&gt;  &lt;p&gt;After all this prep work I started the upgrade which completed successfully in approximately three hours.&lt;/p&gt;  &lt;p&gt;My system is the lucky owner of two sound devices, onboard “Realtek High Definition Audio” and a “Creative AudioPCI (ES1371,ES1373) (WDM)” card, the settings for these devices were seamlessly transferred during the upgrade and they still function properly. Very impressive. I think it is very cool you can hot-switch default audio output devices while playing sound in Windows 7!&lt;/p&gt;  &lt;h3&gt;Issues&lt;/h3&gt;  &lt;p&gt;Two issues I am aware of thus far:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Canon Camera Window MC 6 for ZoomBrowser EX      &lt;br /&gt;After upgrading I downloaded the latest ZoomBrowser EX installer from the Canon website: &lt;a href="http://www.usa.canon.com/consumer/controller?act=ModelInfoAct&amp;amp;tabact=DownloadDetailTabAct&amp;amp;fcategoryid=320&amp;amp;modelid=11998" target="_blank"&gt;ZoomBrowser EX 6.4.1 Updater&lt;/a&gt;, Windows 7 is not available as a supported OS for downloads so I picked the Vista version. Unfortunately the Camera Window application is not functioning. &lt;em&gt;- Please leave me a comment if you got it to work.&lt;/em&gt; &lt;/li&gt;    &lt;li&gt;Powersaving for the display does not work (NVIDIA GeForce 7900 GT/GTO).      &lt;br /&gt;The display will go black but it never gets turned off. &lt;/li&gt; &lt;/ul&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6707555-3251985638072496925?l=zybermark.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?a=86a6ISRpk0s:lLtTeXZUX3A:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?i=86a6ISRpk0s:lLtTeXZUX3A:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?a=86a6ISRpk0s:lLtTeXZUX3A:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?a=86a6ISRpk0s:lLtTeXZUX3A:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?i=86a6ISRpk0s:lLtTeXZUX3A:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?a=86a6ISRpk0s:lLtTeXZUX3A:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?i=86a6ISRpk0s:lLtTeXZUX3A:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?a=86a6ISRpk0s:lLtTeXZUX3A:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?a=86a6ISRpk0s:lLtTeXZUX3A:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DrH4x0rsVoid/~4/86a6ISRpk0s" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DrH4x0rsVoid/~3/86a6ISRpk0s/hp-a1750e-upgrade-to-windows-7.html</link><author>noreply@blogger.com (Zybermark)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://zybermark.blogspot.com/2009/10/hp-a1750e-upgrade-to-windows-7.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6707555.post-2810484921857641128</guid><pubDate>Wed, 23 Sep 2009 04:48:00 +0000</pubDate><atom:updated>2009-09-22T22:54:57.082-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">PuTTY</category><category domain="http://www.blogger.com/atom/ns#">DrH4x0rsVoid</category><category domain="http://www.blogger.com/atom/ns#">software</category><category domain="http://www.blogger.com/atom/ns#">Code</category><title>How To Determine If A Window Is Active (In C)</title><description>&lt;p&gt;As promised in my previous blog describing &lt;a href="http://zybermark.blogspot.com/2009/08/how-to-add-activity-notification-to.html" target="_blank"&gt;how to add activity notification flash to PuTTY&lt;/a&gt; here is another way to check if the window is active. Instead of keeping track of the current window state by handling the &lt;a href="http://msdn.microsoft.com/en-us/library/ms646274%28VS.85%29.aspx" target="_blank"&gt;WM_ACTIVATE&lt;/a&gt; message you can directly query a window for its status with &lt;a href="http://msdn.microsoft.com/en-us/library/ms633516%28VS.85%29.aspx" target="_blank"&gt;GetWindowInfo()&lt;/a&gt;. The &lt;a href="http://msdn.microsoft.com/en-us/library/ms632610%28VS.85%29.aspx" target="_blank"&gt;WINDOWINFO&lt;/a&gt;.dwWindowStatus field will be set to WS_ACTIVECAPTION when the window is active. &lt;/p&gt;  &lt;p&gt;Paste the following snippet at the end of window.c:&lt;/p&gt;  &lt;div style="font-family: consolas; background: silver; color: black; font-size: 10pt"&gt;   &lt;pre style="margin: 0px"&gt;&lt;span style="color: green"&gt;/* MARK SLETTERINK - ACTIVITY NOTIFICATION SUPPORT - WINDOW ACTIVE DETECTION2 */&lt;/span&gt;&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;&lt;span style="color: green"&gt;/* SNIPPET ID: {CE84000D-9024-45f1-B0E6-5029AD1B257F} */&lt;/span&gt;&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;BOOL is_window_active()&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;{&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;&amp;#160;&amp;#160; BOOL bActive=FALSE;&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;&amp;#160;&amp;#160; BOOL bResult;&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;&amp;#160;&amp;#160; WINDOWINFO wi;&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;&amp;#160;&amp;#160; memset(&amp;amp;wi, 0, &lt;span style="color: blue"&gt;sizeof&lt;/span&gt;(wi));&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;&amp;#160;&amp;#160; wi.cbSize=&lt;span style="color: blue"&gt;sizeof&lt;/span&gt;(wi);&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;&amp;#160;&amp;#160; bResult=GetWindowInfo(hwnd, &amp;amp;wi);&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;&amp;#160;&amp;#160; &lt;span style="color: blue"&gt;if&lt;/span&gt;(bResult)&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; bActive = (wi.dwWindowStatus==WS_ACTIVECAPTION);&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;&amp;#160;&amp;#160; &lt;span style="color: blue"&gt;return&lt;/span&gt; bActive;&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;}&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;&lt;span style="color: green"&gt;/* MARK SLETTERINK - END OF ACTIVITY NOTIFICATION SUPPORT - WINDOW ACTIVE DETECTION2 */&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;Then add a forward declaration to the forward declarations (Snippet ID: D8B4F4A3-F870-4ded-B298-EEB71701D25D), it will look like this:&lt;/p&gt;

&lt;div style="font-family: consolas; background: silver; color: black; font-size: 10pt"&gt;
  &lt;pre style="margin: 0px"&gt;&lt;span style="color: green"&gt;/* MARK SLETTERINK - ACTIVITY NOTIFICATION SUPPORT - FLASH METHODS FORWARD DECLARATIONS AND VARS */&lt;/span&gt;&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;&lt;span style="color: green"&gt;/* SNIPPET ID: {D8B4F4A3-F870-4ded-B298-EEB71701D25D}-20090922*/&lt;/span&gt;&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;&lt;span style="color: blue"&gt;static&lt;/span&gt; &lt;span style="color: blue"&gt;void&lt;/span&gt; flash_window_activity(&lt;span style="color: blue"&gt;int&lt;/span&gt; mode);&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;&lt;span style="color: blue"&gt;static&lt;/span&gt; BOOL window_is_active=TRUE;&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;&lt;span style="color: blue"&gt;static&lt;/span&gt; BOOL activity_blink_done=FALSE;&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;&lt;strong&gt;BOOL is_window_active();&lt;/strong&gt;&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;&lt;span style="color: green"&gt;/* MARK SLETTERINK - END OF ACTIVITY NOTIFICATION SUPPORT - FLASH METHODS FORWARD DECLARATIONS AND VARS*/&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;&amp;#160;&lt;/p&gt;

&lt;p&gt;With this new code in place all that is left is updating the activity detection logic to use it. This is implemented in the from_backend method, replace the use of the window_is_active boolean with the new is_window_active() method call so the code will look like this:&lt;/p&gt;

&lt;div style="font-family: consolas; background: silver; color: black; font-size: 10pt"&gt;
  &lt;pre style="margin: 0px"&gt;&lt;span style="color: blue"&gt;int&lt;/span&gt; from_backend(&lt;span style="color: blue"&gt;void&lt;/span&gt; *frontend, &lt;span style="color: blue"&gt;int&lt;/span&gt; is_stderr, &lt;span style="color: blue"&gt;const&lt;/span&gt; &lt;span style="color: blue"&gt;char&lt;/span&gt; *data, &lt;span style="color: blue"&gt;int&lt;/span&gt; len)&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;{&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;&lt;span style="color: green"&gt;/* MARK SLETTERINK - ACTIVITY NOTIFICATION SUPPORT - SESSION ACTIVITY DETECTION */&lt;/span&gt;&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;&lt;span style="color: green"&gt;/* SNIPPET ID: {9198643F-09DF-466f-971F-EB05EA15A85E}-20090922 */&lt;/span&gt;&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;&amp;#160;&amp;#160; &lt;span style="color: blue"&gt;if&lt;/span&gt;(!&lt;strong&gt;is_window_active())&lt;/strong&gt;&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; flash_window_activity(2);&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;&lt;span style="color: green"&gt;/* MARK SLETTERINK - END OF ACTIVITY NOTIFICATION SUPPORT - SESSION ACTIVITY DETECTION */&lt;/span&gt;&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;&amp;#160;&amp;#160; &lt;span style="color: blue"&gt;return&lt;/span&gt; term_data(term, is_stderr, data, len);&lt;/pre&gt;

  &lt;pre style="margin: 0px"&gt;}&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;&amp;#160;&lt;/p&gt;

&lt;p&gt;All that is left now is compiling the code and firing up &lt;a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/" target="_blank"&gt;PuTTY&lt;/a&gt;!&lt;/p&gt;

&lt;p&gt;Enjoy!&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6707555-2810484921857641128?l=zybermark.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?a=6UFrnlmBVlI:lTLGKbiaOGs:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?i=6UFrnlmBVlI:lTLGKbiaOGs:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?a=6UFrnlmBVlI:lTLGKbiaOGs:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?a=6UFrnlmBVlI:lTLGKbiaOGs:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?i=6UFrnlmBVlI:lTLGKbiaOGs:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?a=6UFrnlmBVlI:lTLGKbiaOGs:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?i=6UFrnlmBVlI:lTLGKbiaOGs:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?a=6UFrnlmBVlI:lTLGKbiaOGs:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?a=6UFrnlmBVlI:lTLGKbiaOGs:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DrH4x0rsVoid/~4/6UFrnlmBVlI" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DrH4x0rsVoid/~3/6UFrnlmBVlI/how-to-determine-if-window-is-active-in.html</link><author>noreply@blogger.com (Zybermark)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://zybermark.blogspot.com/2009/09/how-to-determine-if-window-is-active-in.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6707555.post-608239195037499072</guid><pubDate>Mon, 31 Aug 2009 01:53:00 +0000</pubDate><atom:updated>2009-09-22T22:50:40.670-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">PuTTY</category><category domain="http://www.blogger.com/atom/ns#">DrH4x0rsVoid</category><category domain="http://www.blogger.com/atom/ns#">software</category><category domain="http://www.blogger.com/atom/ns#">windows</category><category domain="http://www.blogger.com/atom/ns#">Code</category><title>How to add Activity Notification to PuTTY</title><description>&lt;p&gt;For over a decade &lt;a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/" target="_blank"&gt;PuTTY&lt;/a&gt; has been my Telnet/SSH client of choice for Windows. I mostly use it as a &lt;a href="http://en.wikipedia.org/wiki/MUD" target="_blank"&gt;MUD&lt;/a&gt; client nowadays and missed one convenience feature: activity notifications. Chat clients all flash for attention when activity occurs and it would be a great addition to streamline my &lt;a href="http://rubberoom.org/" target="_blank"&gt;social&lt;/a&gt; &lt;a href="http://www.kobramud.org/" target="_blank"&gt;mudlife&lt;/a&gt;, so I set out on a quest to add it…&lt;/p&gt;  &lt;p&gt;First of all you need to have &lt;a title="Microsoft Visual C++ 2008 Express Edition" href="http://go.microsoft.com/?linkid=7653520" target="_blank"&gt;Microsoft Visual C++&lt;/a&gt; installed to compile the &lt;a href="http://the.earth.li/~sgtatham/putty/latest/putty-src.zip" target="_blank"&gt;sourcecode for Windows&lt;/a&gt; which can be found on the &lt;a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank"&gt;PuTTY Download page&lt;/a&gt;. Get the sources unzipped and load the workspace “putty-src\WINDOWS\MSVC\PUTTY.DSW”, you will need to go through a conversion to a Visual Studio 2008 solution when using VS2008. All code additions and changes are done in the file &lt;strong&gt;WINDOW.C&lt;/strong&gt; in the “putty” project.&lt;/p&gt;  &lt;p&gt;To support activity notification we need to know when there is activity and notify the user by making the window flash if the window is not active and it has not already done a flash. This brings us down to three problems to solve: detecting activity, knowing when the window is not active and flashing the window.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;h3&gt;Flashing the PuTTY Window&lt;/h3&gt;  &lt;p&gt;PuTTY already has the option to use the window flash as a visual bell so that code can be used as a template. Notice how this feature also has been implemented in the PuTTY code itself to support flash on older Windows OSes that do not support the &lt;a href="http://msdn.microsoft.com/en-us/library/ms679347%28VS.85%29.aspx" target="_blank"&gt;FlashWindowEx&lt;/a&gt; API method. (I have left this code in place, but it has not been tested.) &lt;/p&gt;  &lt;p&gt;The following code snippet must be added at the end of the file:&lt;/p&gt; &lt;style type="text/css"&gt;


.cf { font-family: consolas; font-size: 10pt; color: black; background: silver; }
.cl { margin: 0px; }
.cb2 { color: blue; }
.cb1 { color: green; }&lt;/style&gt;  &lt;div class="cf"&gt;   &lt;pre class="cl"&gt;&lt;span class="cb1"&gt;/* MARK SLETTERINK - ACTIVITY NOTIFICATION SUPPORT - FLASH METHODS */&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&lt;span class="cb1"&gt;/* SNIPPET ID: {34060BBE-6F8C-4bc1-AF1F-97B3FC8D24A4} */&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&lt;span class="cb2"&gt;static&lt;/span&gt; &lt;span class="cb2"&gt;void&lt;/span&gt; flash_window_timer_activity(&lt;span class="cb2"&gt;void&lt;/span&gt; *ctx, &lt;span class="cb2"&gt;long&lt;/span&gt; now)&lt;/pre&gt;

  &lt;pre class="cl"&gt;{&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160; &lt;span class="cb2"&gt;if&lt;/span&gt; (flashing &amp;amp;&amp;amp; now - next_flash &amp;gt;= 0) {&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; flash_window_activity(1);&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160; }&lt;/pre&gt;

  &lt;pre class="cl"&gt;}&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&lt;span class="cb2"&gt;static&lt;/span&gt; &lt;span class="cb2"&gt;void&lt;/span&gt; flash_window_activity(&lt;span class="cb2"&gt;int&lt;/span&gt; mode)&lt;/pre&gt;

  &lt;pre class="cl"&gt;{&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160; &lt;span class="cb2"&gt;if&lt;/span&gt;(mode==0) {&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span class="cb1"&gt;/* stop */&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160; } &lt;span class="cb2"&gt;else&lt;/span&gt; &lt;span class="cb2"&gt;if&lt;/span&gt; (mode==2)&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160; {&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span class="cb1"&gt;/* start */&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span class="cb2"&gt;if&lt;/span&gt; (!flashing &amp;amp;&amp;amp; !activity_blink_done) {&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; flashing = 1;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; activity_blink_done=TRUE;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span class="cb2"&gt;if&lt;/span&gt; (p_FlashWindowEx) {&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span class="cb1"&gt;/* For so-called &amp;quot;steady&amp;quot; mode, we use uCount=2, which&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&lt;span class="cb1"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; * seems to be the traditional number of flashes used&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&lt;span class="cb1"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; * by user notifications (e.g., by Explorer).&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&lt;span class="cb1"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; * uCount=0 appears to enable continuous flashing, per&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&lt;span class="cb1"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; * &amp;quot;flashing&amp;quot; mode, although I haven't seen this&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&lt;span class="cb1"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; * documented. */&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; flash_window_ex(FLASHW_ALL | FLASHW_TIMER,&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; (cfg.beep_ind == B_IND_FLASH ? 0 : 2),&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 0 &lt;span class="cb1"&gt;/* system cursor blink rate */&lt;/span&gt;);&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span class="cb1"&gt;/* No need to schedule timer */&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; } &lt;span class="cb2"&gt;else&lt;/span&gt; {&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; FlashWindow(hwnd, TRUE);&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; next_flash = schedule_timer(450, flash_window_timer_activity, hwnd);&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160; }&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160; &lt;span class="cb2"&gt;else&lt;/span&gt; &lt;span class="cb2"&gt;if&lt;/span&gt;(mode==1)&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160; {&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span class="cb1"&gt;/* maintain */&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span class="cb2"&gt;if&lt;/span&gt; (flashing &amp;amp;&amp;amp; !p_FlashWindowEx) {&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; FlashWindow(hwnd, TRUE);&amp;#160;&amp;#160; &lt;span class="cb1"&gt;/* toggle */&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; next_flash = schedule_timer(450, flash_window_timer_activity, hwnd);&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160; }&lt;/pre&gt;

  &lt;pre class="cl"&gt;}&lt;/pre&gt;

  &lt;pre class="cl"&gt;&lt;span class="cb1"&gt;/* MARK SLETTERINK - END OF ACTIVITY NOTIFICATION SUPPORT - FLASH METHODS */&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;&amp;#160;&lt;/p&gt;

&lt;p&gt;Add the following snippet to the forward declarations at the top of the file (surrounding code is show for reference to the location where it should be placed and must not be added):&lt;/p&gt;

&lt;div class="cf"&gt;
  &lt;pre class="cl"&gt;&lt;span class="cb2"&gt;#define&lt;/span&gt; TIMING_TIMER_ID 1234&lt;/pre&gt;

  &lt;pre class="cl"&gt;&lt;span class="cb2"&gt;static&lt;/span&gt; &lt;span class="cb2"&gt;long&lt;/span&gt; timing_next_time;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&lt;span class="cb1"&gt;/* MARK SLETTERINK - ACTIVITY NOTIFICATION SUPPORT - FLASH METHODS FORWARD DECLARATIONS AND VARS */&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&lt;span class="cb1"&gt;/* SNIPPET ID: {D8B4F4A3-F870-4ded-B298-EEB71701D25D}*/&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&lt;span class="cb2"&gt;static&lt;/span&gt; &lt;span class="cb2"&gt;void&lt;/span&gt; flash_window_activity(&lt;span class="cb2"&gt;int&lt;/span&gt; mode);&lt;/pre&gt;

  &lt;pre class="cl"&gt;&lt;span class="cb2"&gt;static&lt;/span&gt; BOOL window_is_active=TRUE;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&lt;span class="cb2"&gt;static&lt;/span&gt; BOOL activity_blink_done=FALSE;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&lt;span class="cb1"&gt;/* MARK SLETTERINK - END OF ACTIVITY NOTIFICATION SUPPORT - FLASH METHODS FORWARD DECLARATIONS AND VARS*/&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&lt;span class="cb2"&gt;static&lt;/span&gt; &lt;span class="cb2"&gt;struct&lt;/span&gt; {&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160; HMENU menu;&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;The activity_blink_done boolean ensures the window flash gets triggered only one time once the window has become inactive and activity occurs. &lt;/p&gt;

&lt;p&gt;&amp;#160;&lt;/p&gt;

&lt;h3&gt;Detecting the Window Active State&lt;/h3&gt;

&lt;p&gt;There are &lt;a href="http://zybermark.blogspot.com/2009/09/how-to-determine-if-window-is-active-in.html" target="_blank"&gt;several ways&lt;/a&gt; of doing this, I embarked on the adventure of using a handler for the &lt;a href="http://msdn.microsoft.com/en-us/library/ms646274%28VS.85%29.aspx" target="_blank"&gt;WM_ACTIVATE&lt;/a&gt; message to keep track of the current state because it seemed to blend in well with the rest of the code in place. The handler also clears the activity_blink_done variable so a new flash will be triggered when necessary.&lt;/p&gt;

&lt;p&gt;Add the following snippet at the end of the file:&lt;/p&gt;

&lt;div class="cf"&gt;
  &lt;pre class="cl"&gt;&lt;span class="cb1"&gt;/* MARK SLETTERINK - ACTIVITY NOTIFICATION SUPPORT - WINDOW ACTIVE DETECTION */&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&lt;span class="cb1"&gt;/* SNIPPET ID: {75B2CA9C-49F4-4eb5-AFCF-E3D743C37C44} */&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&lt;span class="cb2"&gt;int&lt;/span&gt; Do_WM_ACTIVATE(HWND a_hwnd, UINT message, WPARAM wParam, LPARAM lParam)&lt;/pre&gt;

  &lt;pre class="cl"&gt;{&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160; WORD wAction = LOWORD(wParam);&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160; WORD wMinimized = HIWORD(wParam);&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160; &lt;span class="cb2"&gt;if&lt;/span&gt;(a_hwnd == hwnd) {&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span class="cb2"&gt;switch&lt;/span&gt;(wAction)&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span class="cb2"&gt;case&lt;/span&gt; WA_INACTIVE:&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; window_is_active = FALSE;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; activity_blink_done = FALSE;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span class="cb2"&gt;break&lt;/span&gt;;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span class="cb2"&gt;case&lt;/span&gt; WA_ACTIVE:&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span class="cb2"&gt;case&lt;/span&gt; WA_CLICKACTIVE:&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span class="cb2"&gt;if&lt;/span&gt;(!wMinimized)&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; window_is_active = TRUE;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span class="cb2"&gt;break&lt;/span&gt;;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span class="cb2"&gt;default&lt;/span&gt;:&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span class="cb2"&gt;break&lt;/span&gt;;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160; }&lt;/pre&gt;

  &lt;pre class="cl"&gt;}&lt;/pre&gt;

  &lt;pre class="cl"&gt;&lt;span class="cb1"&gt;/* MARK SLETTERINK - END OF ACTIVITY NOTIFICATION SUPPORT - WINDOW ACTIVE DETECTION */&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;&amp;#160;&lt;/p&gt;

&lt;p&gt;With the message handler in place we need to hook it up in the window procedure. To do this we need to add a case statement for the WM_ACTIVATE message in the WndProc method. Insert the following code snippet right before default case handler (surrounding code shown for reference and must not be copied):&lt;/p&gt;

&lt;div class="cf"&gt;
  &lt;pre class="cl"&gt;&lt;span class="cb1"&gt;/* MARK SLETTERINK - ACTIVITY NOTIFICATION SUPPORT - WINDOW ACTIVE DETECTION */&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&lt;span class="cb1"&gt;/* SNIPPET ID: {5AFAA3AB-FB28-45e9-9DE7-E56648A1B5AF} */&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span class="cb2"&gt;case&lt;/span&gt; WM_ACTIVATE:&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; Do_WM_ACTIVATE(hwnd, message, wParam, lParam);&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span class="cb2"&gt;break&lt;/span&gt;;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&lt;span class="cb1"&gt;/* MARK SLETTERINK - END OF ACTIVITY NOTIFICATION SUPPORT - WINDOW ACTIVE DETECTION */&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span class="cb2"&gt;default&lt;/span&gt;:&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span class="cb2"&gt;if&lt;/span&gt; (message == wm_mousewheel || message == WM_MOUSEWHEEL) {&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;&amp;#160;&lt;/p&gt;

&lt;p&gt;For completeness add a forward declaration below the previous forward declaration snippet we added:&lt;/p&gt;

&lt;div class="cf"&gt;
  &lt;pre class="cl"&gt;&lt;span class="cb1"&gt;/* MARK SLETTERINK - ACTIVITY NOTIFICATION SUPPORT - WINDOW ACTIVE DETECTION FORWARD DECLARATION */&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&lt;span class="cb1"&gt;/* SNIPPET ID: {D3292300-A6A3-402f-A0A5-CE259BD25EC0} */&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&lt;span class="cb2"&gt;int&lt;/span&gt; Do_WM_ACTIVATE(HWND a_hwnd, UINT message, WPARAM wParam, LPARAM lParam);&lt;/pre&gt;

  &lt;pre class="cl"&gt;&lt;span class="cb1"&gt;/* MARK SLETTERINK - END OF ACTIVITY NOTIFICATION SUPPORT - WINDOW ACTIVE DETECTION FORWARD DECLARATION */&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;&amp;#160;&lt;/p&gt;

&lt;h3&gt;Detecting Session Activity&lt;/h3&gt;

&lt;p&gt;With the window flash and window state support in place all that is left to do is hooking it up to the session activity detection. Find the from_backend method and insert the code snippet below so the method resembles the code block: &lt;/p&gt;

&lt;div class="cf"&gt;
  &lt;pre class="cl"&gt;&lt;span class="cb2"&gt;int&lt;/span&gt; from_backend(&lt;span class="cb2"&gt;void&lt;/span&gt; *frontend, &lt;span class="cb2"&gt;int&lt;/span&gt; is_stderr, &lt;span class="cb2"&gt;const&lt;/span&gt; &lt;span class="cb2"&gt;char&lt;/span&gt; *data, &lt;span class="cb2"&gt;int&lt;/span&gt; len)&lt;/pre&gt;

  &lt;pre class="cl"&gt;{&lt;/pre&gt;

  &lt;pre class="cl"&gt;&lt;span class="cb1"&gt;/* MARK SLETTERINK - ACTIVITY NOTIFICATION SUPPORT - SESSION ACTIVITY DETECTION */&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&lt;span class="cb1"&gt;/* SNIPPET ID: {9198643F-09DF-466f-971F-EB05EA15A85E} */&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160; &lt;span class="cb2"&gt;if&lt;/span&gt;(!window_is_active)&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; flash_window_activity(2);&lt;/pre&gt;

  &lt;pre class="cl"&gt;&lt;span class="cb1"&gt;/* MARK SLETTERINK - END OF ACTIVITY NOTIFICATION SUPPORT - SESSION ACTIVITY DETECTION */&lt;/span&gt;&lt;/pre&gt;

  &lt;pre class="cl"&gt;&amp;#160;&amp;#160; &lt;span class="cb2"&gt;return&lt;/span&gt; term_data(term, is_stderr, data, len);&lt;/pre&gt;

  &lt;pre class="cl"&gt;}&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;&amp;#160;&lt;/p&gt;

&lt;h3&gt;Enjoy!&lt;/h3&gt;

&lt;p&gt;That completes the code additions. Compile the code, fire up PuTTY and enjoy the new activity notification feature!&lt;/p&gt;

&lt;p&gt;Quest complete! You gained 1 million &lt;a href="http://en.wikipedia.org/wiki/Experience_point" target="_blank"&gt;XP&lt;/a&gt;.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6707555-608239195037499072?l=zybermark.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?a=kRtvwN4eVSU:ytPP1ckhmB0:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?i=kRtvwN4eVSU:ytPP1ckhmB0:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?a=kRtvwN4eVSU:ytPP1ckhmB0:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?a=kRtvwN4eVSU:ytPP1ckhmB0:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?i=kRtvwN4eVSU:ytPP1ckhmB0:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?a=kRtvwN4eVSU:ytPP1ckhmB0:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?i=kRtvwN4eVSU:ytPP1ckhmB0:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?a=kRtvwN4eVSU:ytPP1ckhmB0:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?a=kRtvwN4eVSU:ytPP1ckhmB0:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DrH4x0rsVoid/~4/kRtvwN4eVSU" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DrH4x0rsVoid/~3/kRtvwN4eVSU/how-to-add-activity-notification-to.html</link><author>noreply@blogger.com (Zybermark)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://zybermark.blogspot.com/2009/08/how-to-add-activity-notification-to.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6707555.post-9179809890518813421</guid><pubDate>Sun, 15 Mar 2009 19:30:00 +0000</pubDate><atom:updated>2009-03-15T13:30:08.874-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">DrH4x0rsVoid</category><category domain="http://www.blogger.com/atom/ns#">.net</category><category domain="http://www.blogger.com/atom/ns#">software</category><category domain="http://www.blogger.com/atom/ns#">Code</category><category domain="http://www.blogger.com/atom/ns#">csharp</category><title>How to parse and modify a URL in .Net</title><description>&lt;p&gt;When you need to modify a url string in .Net code the most prudent way to do so is by using the &lt;a title="UriBuilder Class (System)" href="http://msdn.microsoft.com/en-us/library/system.uribuilder.aspx" target="_blank"&gt;UriBuilder class&lt;/a&gt; from the System namespace because it encapsulates all the quirky rules involved in url parsing. However simply creating a new UriBuilder instance initialized with the url string has the potential for throwing a &lt;a title="UriFormatException Class (System)" href="http://msdn.microsoft.com/en-us/library/system.uriformatexception.aspx" target="_blank"&gt;UriFormatException&lt;/a&gt; which creates a &lt;a title="Coding Horror: TryParse and the Exception Tax" href="http://www.codinghorror.com/blog/archives/000358.html" target="_blank"&gt;serious&lt;/a&gt; &lt;a title="Exceptions and Performance" href="http://yoda.arachsys.com/csharp/exceptions.html" target="_blank"&gt;performance hit&lt;/a&gt; whether the exception is caught and handled or, even worse, your program will fail on an &lt;a title="CLR Inside Out: Unhandled Exception Processing In The CLR" href="http://msdn.microsoft.com/en-us/magazine/cc793966.aspx?pr=blog" target="_blank"&gt;unhandled exception&lt;/a&gt; if your code did not anticipate this. &lt;/p&gt;  &lt;p&gt;The UriFormatException can be easily avoided by first converting the url string to a &lt;a title="Uri Class (System)" href="http://msdn.microsoft.com/en-us/library/system.uri.aspx" target="_blank"&gt;Uri class&lt;/a&gt; instance by calling &lt;a title="Uri.TryCreate Method (System)" href="http://msdn.microsoft.com/en-us/library/system.uri.trycreate.aspx" target="_blank"&gt;Uri.TryCreate(...)&lt;/a&gt; and checking the return value for success. If TryCreate succeeded the resulting Uri instance can then be used to create a UriBuilder instance. &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;The code below shows a C# example of how to modify the hostname in a url without throwing exceptions.&lt;/p&gt;  &lt;div style="font-size: 8pt; background: white; color: black; font-family: monospace"&gt;   &lt;p style="margin: 0px"&gt;[&lt;span style="color: #2b91af"&gt;TestMethod&lt;/span&gt;]&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&lt;span style="color: blue"&gt;public&lt;/span&gt; &lt;span style="color: blue"&gt;void&lt;/span&gt; ModifyUrlHost()&lt;/p&gt;    &lt;p style="margin: 0px"&gt;{&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160; &lt;span style="color: blue"&gt;string&lt;/span&gt;[] urls ={&lt;span style="color: #a31515"&gt;&amp;quot;http://brokensite.com/test/me.html?a=1&amp;amp;b=2&amp;quot;&lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; , &lt;span style="color: #a31515"&gt;&amp;quot;https://brokensite.com&amp;quot;&lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; , &lt;span style="color: #a31515"&gt;&amp;quot;https://brokensite.com/&amp;quot;&lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; , &lt;span style="color: #a31515"&gt;&amp;quot;http://brokensite.com/default&amp;quot;&lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; , &lt;span style="color: #a31515"&gt;&amp;quot;/test/me.html?a=1&amp;amp;b=2&amp;quot;&lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; , &lt;span style="color: #2b91af"&gt;String&lt;/span&gt;.Empty&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; , &lt;span style="color: blue"&gt;null&lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; };&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160; &lt;span style="color: blue"&gt;string&lt;/span&gt; newHostName=&lt;span style="color: #a31515"&gt;&amp;quot;www.somesite.com&amp;quot;&lt;/span&gt;;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160; &lt;span style="color: blue"&gt;foreach&lt;/span&gt; (&lt;span style="color: blue"&gt;string&lt;/span&gt; url &lt;span style="color: blue"&gt;in&lt;/span&gt; urls)&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160; {&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span style="color: #2b91af"&gt;Debug&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515"&gt;&amp;quot;Original Url: &amp;quot;&lt;/span&gt; + url);&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span style="color: blue"&gt;string&lt;/span&gt; newUrl = url;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span style="color: #2b91af"&gt;Uri&lt;/span&gt; uri;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span style="color: blue"&gt;if&lt;/span&gt; (&lt;span style="color: #2b91af"&gt;Uri&lt;/span&gt;.TryCreate(url, &lt;span style="color: #2b91af"&gt;UriKind&lt;/span&gt;.Absolute, &lt;span style="color: blue"&gt;out&lt;/span&gt; uri))&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span style="color: #2b91af"&gt;Debug&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515"&gt;&amp;quot;Uri.TryCreate succeeded&amp;quot;&lt;/span&gt;);&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span style="color: #2b91af"&gt;UriBuilder&lt;/span&gt; builder = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;UriBuilder&lt;/span&gt;(uri);&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; builder.Host = newHostName;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; newUrl = builder.Uri.ToString();&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span style="color: blue"&gt;else&lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span style="color: #2b91af"&gt;Debug&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515"&gt;&amp;quot;Uri.TryCreate failed&amp;quot;&lt;/span&gt;);&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span style="color: #2b91af"&gt;Debug&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515"&gt;&amp;quot;New Url&amp;#160;&amp;#160;&amp;#160;&amp;#160; : &amp;quot;&lt;/span&gt; + newUrl);&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span style="color: #2b91af"&gt;Debug&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515"&gt;&amp;quot;&amp;quot;&lt;/span&gt;);&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span style="color: blue"&gt;if&lt;/span&gt;(newUrl!=&lt;span style="color: blue"&gt;null&lt;/span&gt;)&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span style="color: #2b91af"&gt;Assert&lt;/span&gt;.IsFalse(newUrl.Contains(&lt;span style="color: #a31515"&gt;&amp;quot;brokensite.com&amp;quot;&lt;/span&gt;), &lt;span style="color: #a31515"&gt;&amp;quot;url still contains brokensite.com&amp;quot;&lt;/span&gt;);&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160; }&lt;/p&gt;    &lt;p style="margin: 0px"&gt;}&lt;/p&gt; &lt;/div&gt;  &lt;p&gt;This test generates the following output:&lt;/p&gt;  &lt;div style="font-size: 8pt; background: white; color: black; font-family: monospace"&gt;   &lt;p style="margin: 0px"&gt;&lt;span style="color: green"&gt;//Original Url: http://brokensite.com/test/me.html?a=1&amp;amp;b=2&lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&lt;span style="color: green"&gt;//Uri.TryCreate succeeded&lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&lt;span style="color: green"&gt;//New Url&amp;#160;&amp;#160;&amp;#160;&amp;#160; : http://www.somesite.com/test/me.html?a=1&amp;amp;b=2&lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&lt;span style="color: green"&gt;//Original Url: https://brokensite.com&lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&lt;span style="color: green"&gt;//Uri.TryCreate succeeded&lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&lt;span style="color: green"&gt;//New Url&amp;#160;&amp;#160;&amp;#160;&amp;#160; : https://www.somesite.com/&lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&lt;span style="color: green"&gt;//Original Url: https://brokensite.com/&lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&lt;span style="color: green"&gt;//Uri.TryCreate succeeded&lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&lt;span style="color: green"&gt;//New Url&amp;#160;&amp;#160;&amp;#160;&amp;#160; : https://www.somesite.com/&lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&lt;span style="color: green"&gt;//Original Url: http://brokensite.com/default&lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&lt;span style="color: green"&gt;//Uri.TryCreate succeeded&lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&lt;span style="color: green"&gt;//New Url&amp;#160;&amp;#160;&amp;#160;&amp;#160; : http://www.somesite.com/default&lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&lt;span style="color: green"&gt;//Original Url: /test/me.html?a=1&amp;amp;b=2&lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&lt;span style="color: green"&gt;//Uri.TryCreate failed&lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&lt;span style="color: green"&gt;//New Url&amp;#160;&amp;#160;&amp;#160;&amp;#160; : /test/me.html?a=1&amp;amp;b=2&lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&lt;span style="color: green"&gt;//Original Url: &lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&lt;span style="color: green"&gt;//Uri.TryCreate failed&lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&lt;span style="color: green"&gt;//New Url&amp;#160;&amp;#160;&amp;#160;&amp;#160; : &lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&lt;span style="color: green"&gt;//Original Url: &lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&lt;span style="color: green"&gt;//Uri.TryCreate failed&lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&lt;span style="color: green"&gt;//New Url&amp;#160;&amp;#160;&amp;#160;&amp;#160; :&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/span&gt;&lt;/p&gt; &lt;/div&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6707555-9179809890518813421?l=zybermark.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?a=6Ywm2K7GJq4:XpH4N3V7Oow:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?i=6Ywm2K7GJq4:XpH4N3V7Oow:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?a=6Ywm2K7GJq4:XpH4N3V7Oow:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?a=6Ywm2K7GJq4:XpH4N3V7Oow:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?i=6Ywm2K7GJq4:XpH4N3V7Oow:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?a=6Ywm2K7GJq4:XpH4N3V7Oow:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?i=6Ywm2K7GJq4:XpH4N3V7Oow:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?a=6Ywm2K7GJq4:XpH4N3V7Oow:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?a=6Ywm2K7GJq4:XpH4N3V7Oow:TzevzKxY174"&gt;&lt;img src="http://feeds.feedburner.com/~ff/DrH4x0rsVoid?d=TzevzKxY174" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DrH4x0rsVoid/~4/6Ywm2K7GJq4" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DrH4x0rsVoid/~3/6Ywm2K7GJq4/how-to-parse-and-modify-url-in-net.html</link><author>noreply@blogger.com (Zybermark)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://zybermark.blogspot.com/2009/03/how-to-parse-and-modify-url-in-net.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6707555.post-7444962783042475859</guid><pubDate>Thu, 22 Jan 2009 03:37:00 +0000</pubDate><atom:updated>2009-01-21T20:37:26.336-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">DrH4x0rsVoid</category><title>Being Polite Could Get You Killed!</title><description>&lt;p&gt;&lt;em&gt;But wouldn't you rather die a gentleman than live as a savage?&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;--&lt;/p&gt;  &lt;p&gt;More British passengers died on the Titanic because &lt;a href="http://news.bbc.co.uk/2/hi/americas/7843154.stm" target="_blank"&gt;they queued politely&lt;/a&gt; for lifeboats, researchers believe. &lt;/p&gt;  &lt;p&gt;&amp;quot;The American culture was set up to be a more individualist culture and the British culture was more about the gentlemanly behaviour,&amp;quot; Mr Savage says. &lt;/p&gt;  &lt;p&gt;&amp;quot;You've got to remember that this is the Edwardian period when to be a gentleman was the peak of society.&amp;quot; &lt;/p&gt;  &lt;p&gt;Mr Savage said: &amp;quot;There was one gentleman who was rather wealthy... who went back downstairs after he put his wife on the [life] boat... put on his tuxedo...went back upstairs and smoked... with the idea that if I am going die, I may as well die as a gentleman and well-dressed.&amp;quot;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Now THAT is my kind of man! AMEN BROTHER!&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6707555-7444962783042475859?l=zybermark.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=aAk1xToJ"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=aAk1xToJ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=u80hJJsA"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=aj4XePvo"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=aj4XePvo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=T3yImBlo"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=T3yImBlo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=qmeYpJVa"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=ubNRe2Uf"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=129" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DrH4x0rsVoid/~4/Ge6I8pX9Xog" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DrH4x0rsVoid/~3/Ge6I8pX9Xog/being-polite-could-get-you-killed.html</link><author>noreply@blogger.com (Zybermark)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://zybermark.blogspot.com/2009/01/being-polite-could-get-you-killed.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6707555.post-7645702830737291823</guid><pubDate>Mon, 19 Jan 2009 05:54:00 +0000</pubDate><atom:updated>2009-01-19T06:49:49.252-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">DrH4x0rsVoid</category><category domain="http://www.blogger.com/atom/ns#">.net</category><category domain="http://www.blogger.com/atom/ns#">software</category><category domain="http://www.blogger.com/atom/ns#">Code</category><category domain="http://www.blogger.com/atom/ns#">csharp</category><title>Reusable Generic Exception Wrapper in C#</title><description>&lt;p&gt;&lt;/p&gt;  &lt;p&gt;When crossing boundaries between software layers you are sometimes faced with the requirement to wrap a meaningless exception from a lower layer into a more meaningful exception for users from the higher layer. The pattern described below helps with implementing this requirement in a reusable way. It is in no way meant to be a catch-all for every situation where you have to deal with exceptions, but when applied correctly can prove to be an invaluable tool in your toolkit. See &lt;a href="http://www.amazon.com/gp/product/0321246756?ie=UTF8&amp;amp;tag=drh4xvoi-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=0321246756" target="_blank"&gt;Framework Design Guidelines&lt;/a&gt;, Chapter 7 (7.2.3) for more one exception wrapping.&lt;/p&gt;  &lt;p&gt;The approach used is to wrap the logic that can fail in a delegate and have this delegate executed by the WrapExceptions method. The WrapExceptions method then takes responsibility of handling the exceptions appropriately. It should be modified to handle only the applicable exceptions; some exceptions you might not want to wrap e.g. StackOverflowException, OutOfMemoryException and ThreadAbortException because you cannot recover from them. An added advantage of wrapping the failure prone code in a delegate is that it allows you to easily wrap it around existing code.&lt;/p&gt;  &lt;p&gt;The WrapExceptions code snippet:&lt;/p&gt;  &lt;div style="font-size: 8pt; background: white; color: black; font-family: courier new"&gt;   &lt;p style="margin: 0px"&gt;&lt;span style="color: green"&gt;// public delegate void Action();&lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&lt;span style="color: blue"&gt;public&lt;/span&gt; &lt;span style="color: blue"&gt;static&lt;/span&gt; &lt;span style="color: blue"&gt;void&lt;/span&gt; WrapExceptions(&lt;span style="color: #2b91af"&gt;Action&lt;/span&gt; action)&lt;/p&gt;    &lt;p style="margin: 0px"&gt;{&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160; &lt;span style="color: blue"&gt;try&lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160; {&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; action();&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160; }&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160; &lt;span style="color: blue"&gt;catch&lt;/span&gt; (&lt;span style="color: #2b91af"&gt;MyApplicationException&lt;/span&gt;)&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160; {&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span style="color: green"&gt;// just rethrow exception, it &lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span style="color: green"&gt;// was already properly handled&lt;/span&gt;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span style="color: blue"&gt;throw&lt;/span&gt;;&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160; }&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160; &lt;span style="color: blue"&gt;catch&lt;/span&gt; (&lt;span style="color: #2b91af"&gt;Exception&lt;/span&gt; e)&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160; {&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span style="color: blue"&gt;throw&lt;/span&gt; &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;MyApplicationException&lt;/span&gt;(e);&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160; }&lt;/p&gt;    &lt;p style="margin: 0px"&gt;}&lt;/p&gt; &lt;/div&gt;  &lt;p&gt;And then you can use it as follows:&lt;/p&gt;  &lt;div style="font-size: 8pt; background: white; color: black; font-family: courier new"&gt;   &lt;p style="margin: 0px"&gt;&lt;span style="color: blue"&gt;public&lt;/span&gt; &lt;span style="color: blue"&gt;void&lt;/span&gt; WrapMyException(&lt;span style="color: blue"&gt;string&lt;/span&gt; filepath, &lt;span style="color: blue"&gt;string&lt;/span&gt; myLine)&lt;/p&gt;    &lt;p style="margin: 0px"&gt;{&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160; WrapExceptions(&lt;span style="color: blue"&gt;delegate&lt;/span&gt;()&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160; {&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;span style="color: blue"&gt;using&lt;/span&gt; (&lt;span style="color: #2b91af"&gt;TextWriter&lt;/span&gt; writer = &lt;span style="color: blue"&gt;new&lt;/span&gt; &lt;span style="color: #2b91af"&gt;StreamWriter&lt;/span&gt;(filepath))&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; writer.WriteLine(myLine);&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }&lt;/p&gt;    &lt;p style="margin: 0px"&gt;&amp;#160;&amp;#160; });&lt;/p&gt;    &lt;p style="margin: 0px"&gt;}&lt;/p&gt; &lt;/div&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;Let me know your thoughts on this approach. What problems did it solve, and did it introduce new ones?&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6707555-7645702830737291823?l=zybermark.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=aQkopcya"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=aQkopcya" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=rqpG0Vn3"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=IyZGW6JY"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=IyZGW6JY" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=zp2YK7MD"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=zp2YK7MD" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=78phq81r"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=aUSdKX5N"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=129" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DrH4x0rsVoid/~4/TGmLgTCz5f8" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DrH4x0rsVoid/~3/TGmLgTCz5f8/reusable-generic-exception-wrapper.html</link><author>noreply@blogger.com (Zybermark)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://zybermark.blogspot.com/2009/01/reusable-generic-exception-wrapper.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6707555.post-4294915702661039045</guid><pubDate>Sun, 11 Jan 2009 17:54:00 +0000</pubDate><atom:updated>2009-01-11T10:54:21.202-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">NVidia</category><category domain="http://www.blogger.com/atom/ns#">DrH4x0rsVoid</category><category domain="http://www.blogger.com/atom/ns#">vista</category><category domain="http://www.blogger.com/atom/ns#">windows</category><title>More pain with NVidia...</title><description>&lt;p&gt;It has been a while since I last tried to find a stable video driver and reader &lt;a href="http://zybermark.blogspot.com/2008/07/black-screen-after-vista-wakes-up-from.html?showComment=1228945080000#c1778490867839885277" target="_blank"&gt;Gregg's question&lt;/a&gt; made me pull the trigger on another adventure in driver-installation-land. It has been a nightmare!&lt;/p&gt;  &lt;p&gt;I started out with trying to reproduce the problem desribed in &lt;a href="http://zybermark.blogspot.com/2008/07/black-screen-after-vista-wakes-up-from.html" target="_blank"&gt;'Black Screen after Vista Wakes Up from Sleep with NVidia Driver 7.15.11.7521'&lt;/a&gt; by installing the latest NVidia GeForce video driver available: &lt;a href="http://www.nvidia.com/object/winvista_x86_178.24_whql.html" target="_blank"&gt;GeForce Release 178 WHQL&lt;/a&gt; (Version: 178.24, Release Date: October 15, 2008, Operating System: Windows Vista 32-bit, Language: U.S. English, File Size: 85 MB). A reboot later the version number now was at 7.15.11.7824. A quick cycle through sleep-and-resume confirmed the problem was still there. Ouch! Reader Eddy had spent some time troubleshooting this issue as well and &lt;a href="http://zybermark.blogspot.com/2008/07/black-screen-after-vista-wakes-up-from.html?showComment=1225158300000#c1353630510189416881" target="_blank"&gt;pointed out the resolution played a role in it&lt;/a&gt;, I am running in 1280x1024 32 bit color. So I changed the color bits from 32 to 16: problem still there, lowered the resolution to 1152x864: problem gone! (I skipped a number of steps here, if NVidia wants scientific data they can hire me and pay for my precious time). Unfortunately now the screen looks like somebody put Vaseline in my eyes. Yuck!&lt;/p&gt;  &lt;p&gt;Ok, so the screen was ugly, but I could go through a sleep-and-resume cycle. Was it worth the ugly screen? Absolutely not! Time to run system restore and get back to my original driver setup...&lt;/p&gt;  &lt;p&gt;Unfortunately kicking off system restore to my old restore point presented me with a &lt;a href="http://en.wikipedia.org/wiki/Blue_Screen_of_Death" target="_blank"&gt;blue screen&lt;/a&gt; during the process.&lt;/p&gt;  &lt;p&gt;...&lt;/p&gt;  &lt;p&gt;Eventually my system rebooted, Vista prompted me to its awareness of the crash, I sent the crash report and Microsoft pointed the finger at the NVidia SATA driver. Gaaaaa! Oh well, that was fun, I figured I would try system restore again only to find every single restore point had vanished. Automatic, Manual, they are all gone! Somebody pinch me! My screen looks like all pixels are smeared into eachother and I'm stuck with a broken driver setup. Wake me up from this nightmare!&lt;/p&gt;  &lt;p&gt;Moving on...&lt;/p&gt;  &lt;p&gt;My SATA driver is broken, Microsoft says I need to get latest from NVidia... I figured I could put NVidia to work for me this time and use the wizard from the website to determine the Motherboard software download I needed. The verdict? &lt;a href="http://www.nvidia.com/content/DriverDownload/download_confirmation.asp?url=http://us.download.nvidia.com/Windows/nForce/15.24/15.24_nforce_winvista32_international_whql.exe" target="_blank"&gt;GeForce 6150LE / nForce 430&lt;/a&gt; (nForce Driver Version 15.24 WHQL, Release Date: September 12, 2008). Sounds good. Download, install, reboot. This installer puts a driver for just about every piece of hardware they created on your system, and as it comes as a package I would expect them to work together very well. (GeForce 6150 LE driver version 7.15.11.7540, SATA driver version 10.3.0.42.) Unfortunately, a 'quick' sleep-and-resume cycle showed the problem was still there and Windows Update tells me there are updated drivers available for my nForce networking and SATA controller.&lt;/p&gt;  &lt;p&gt;Installed GeForce 6150LE driver version 178.24 again and rebooted. Worked with the system for a couple of days and on my next reboot I blue-screened again. Installing the latest SATA driver through Windows Update seems to have resolved that issue. But for now I have disabled sleep mode.&lt;/p&gt;  &lt;p&gt;Conclusion: Problem still not fixed.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6707555-4294915702661039045?l=zybermark.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=kcB9P87c"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=kcB9P87c" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=Wnp4kg6D"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=dm65L3qb"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=dm65L3qb" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=PcppeMxr"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=PcppeMxr" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=6shtBVph"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=dU8DSNkj"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=129" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DrH4x0rsVoid/~4/Z9b7d-06Qkw" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DrH4x0rsVoid/~3/Z9b7d-06Qkw/more-pain-with-nvidia.html</link><author>noreply@blogger.com (Zybermark)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://zybermark.blogspot.com/2009/01/more-pain-with-nvidia.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6707555.post-3078702678636457094</guid><pubDate>Sat, 30 Aug 2008 16:46:00 +0000</pubDate><atom:updated>2008-08-30T10:46:58.053-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">DrH4x0rsVoid</category><category domain="http://www.blogger.com/atom/ns#">.net</category><category domain="http://www.blogger.com/atom/ns#">software</category><category domain="http://www.blogger.com/atom/ns#">Code</category><title>The Pitfall of ICloneable</title><description>&lt;p&gt;&lt;/p&gt;  &lt;p&gt;Or, why you should never use ICloneable.&lt;/p&gt;  &lt;p&gt;So I decided I needed to support cloning for my objects so I can modify the object and compare it to the original (very useful for unit-testing, dirty checking, etc.). The .Net framework comes with a handy interface to publish this ability called ICloneable. The documentation states &amp;quot;Supports cloning, which creates a new instance of a class with the same value as an existing instance&amp;quot;. Great! It comes with one method: Clone. Can't be too hard to implement this interface, right?&lt;/p&gt;  &lt;p&gt;A quick peek at the documentation for the Clone method says the implementation &amp;quot;Creates a new object that is a copy of the current instance&amp;quot;. And so every textbook implementation goes on to show you how you do that:&lt;/p&gt;  &lt;pre&gt;&lt;span style="color: #0000ff"&gt;public&lt;/span&gt;&lt;span style="color: #000000"&gt; &lt;/span&gt;&lt;span style="color: #0000ff"&gt;object&lt;/span&gt;&lt;span style="color: #000000"&gt; Clone()
{
&lt;/span&gt;&lt;span style="color: #0000ff"&gt;   return&lt;/span&gt;&lt;span style="color: #000000"&gt; &lt;/span&gt;&lt;span style="color: #0000ff"&gt;this&lt;/span&gt;&lt;span style="color: #000000"&gt;.MemberwiseClone();
}
&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;But what is the point of that, besides adding more code to maintain? EVERY object already supports MemberwiseClone! Oh yes, we were trying to satisfy an interface contract... But hold on, it gets worse as the documentation then opens up an infinite can of worms with this remark:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Clone can be implemented either as a deep copy or a shallow copy. In a deep copy, all objects are duplicated; whereas, in a shallow copy, only the top-level objects are duplicated and the lower levels contain references.&lt;/p&gt;

  &lt;p&gt;The resulting clone must be of the same type as or a compatible type to the original instance.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The Clone method, and thus the ICloneable interface just became a free-for-all, do as you like, contract. You may deep copy, shallow copy, heck you can even change the type! Technically this can all result in correct code, but the sheer absence of semantics turns the use of this interface into a humongous pitfall. Within your own sphere of influence you can set an expected semantic, but as soon as your code leaves this safe place, or you introduce code from another source which applied different semantics to the ICloneable interface you are in for a debugging session from hell.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ICloneable just became unusable.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strike&gt;Go ahead and mark it as obsolete in your copy of the framework.&lt;/strike&gt; Not all is lost however, you can work around this issue by defining your own interface contract &lt;u&gt;with its own semantics&lt;/u&gt;, but do not inherit it from ICloneable as this would reintroduce the issue. For example:&lt;/p&gt;

&lt;pre&gt;&lt;span style="color: #000000"&gt;&lt;/span&gt;&lt;span style="color: #808080"&gt;///&lt;/span&gt;&lt;span style="color: #008000"&gt; &lt;/span&gt;&lt;span style="color: #808080"&gt;&amp;lt;summary&amp;gt;
///&lt;/span&gt;&lt;span style="color: #008000"&gt; Supports deep-copy cloning, which creates a 
&lt;/span&gt;&lt;span style="color: #808080"&gt;///&lt;/span&gt;&lt;span style="color: #008000"&gt; new instance of a class of the same type and 
&lt;/span&gt;&lt;span style="color: #808080"&gt;///&lt;/span&gt;&lt;span style="color: #008000"&gt; with the same value as an existing instance.
&lt;/span&gt;&lt;span style="color: #808080"&gt;///&lt;/span&gt;&lt;span style="color: #008000"&gt; &lt;/span&gt;&lt;span style="color: #808080"&gt;&amp;lt;/summary&amp;gt;
///&lt;/span&gt;&lt;span style="color: #008000"&gt; &lt;/span&gt;&lt;span style="color: #808080"&gt;&amp;lt;typeparam name=&amp;quot;T&amp;quot;&amp;gt;&lt;/span&gt;&lt;span style="color: #008000"&gt;Type of the class 
&lt;/span&gt;&lt;span style="color: #808080"&gt;///&lt;/span&gt;&lt;span style="color: #008000"&gt; being cloned.&lt;/span&gt;&lt;span style="color: #808080"&gt;&amp;lt;/typeparam&amp;gt;
&lt;/span&gt;&lt;span style="color: #0000ff"&gt;public&lt;/span&gt;&lt;span style="color: #000000"&gt; &lt;/span&gt;&lt;span style="color: #0000ff"&gt;interface&lt;/span&gt;&lt;span style="color: #000000"&gt; &lt;/span&gt;&lt;span style="color: #2b91af"&gt;IDeepCloneable&lt;/span&gt;&lt;span style="color: #000000"&gt;&amp;lt;T&amp;gt;
{
   &lt;/span&gt;&lt;span style="color: #808080"&gt;///&lt;/span&gt;&lt;span style="color: #008000"&gt; &lt;/span&gt;&lt;span style="color: #808080"&gt;&amp;lt;summary&amp;gt;
&lt;/span&gt;&lt;span style="color: #000000"&gt;   &lt;/span&gt;&lt;span style="color: #808080"&gt;///&lt;/span&gt;&lt;span style="color: #008000"&gt; Creates an equally typed deep-copy clone 
&lt;/span&gt;&lt;span style="color: #000000"&gt;   &lt;/span&gt;&lt;span style="color: #808080"&gt;///&lt;/span&gt;&lt;span style="color: #008000"&gt; of this object.
&lt;/span&gt;&lt;span style="color: #000000"&gt;   &lt;/span&gt;&lt;span style="color: #808080"&gt;///&lt;/span&gt;&lt;span style="color: #008000"&gt; &lt;/span&gt;&lt;span style="color: #808080"&gt;&amp;lt;/summary&amp;gt;
&lt;/span&gt;&lt;span style="color: #000000"&gt;   &lt;/span&gt;&lt;span style="color: #808080"&gt;///&lt;/span&gt;&lt;span style="color: #008000"&gt; &lt;/span&gt;&lt;span style="color: #808080"&gt;&amp;lt;returns&amp;gt;&lt;/span&gt;&lt;span style="color: #008000"&gt;An equally typed deep-copy clone 
&lt;/span&gt;&lt;span style="color: #000000"&gt;   &lt;/span&gt;&lt;span style="color: #808080"&gt;///&lt;/span&gt;&lt;span style="color: #008000"&gt; of this object.&lt;/span&gt;&lt;span style="color: #808080"&gt;&amp;lt;/returns&amp;gt;
&lt;/span&gt;&lt;span style="color: #000000"&gt;   T Clone();
}&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;This interface contract sets a clear copy and type expectation (and gets rid of the pesky Object return type, that was so 1.0 baby!), but defining cloning semantics is not an easy task. Data containers, business- and UI-objects all have different needs and come with different cloning behaviors. Defining an interface for each of those will help keep expectations clear and ease integration with 3rd party components. However, unless you explicitly implement those interfaces on all classes you will also have to make sure the method names in those interfaces are unique else it will still be too easy to mix incompatible implementations. Always keep the consumer in mind while designing your interface!&lt;/p&gt;

&lt;p&gt;I'm curious to know how you approached your cloning challenge. Leave me a comment!&lt;/p&gt;

&lt;p&gt;&amp;#160;&lt;/p&gt;

&lt;p&gt;References&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href="http://www.csharp411.com/c-object-clone-wars/" target="_blank"&gt;C# Object Clone Wars&lt;/a&gt;, a great recap on different cloning techniques. &lt;/li&gt;

  &lt;li&gt;&lt;a href="http://www.amazon.com/gp/product/0321246756?ie=UTF8&amp;amp;tag=drh4xvoi-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=0321246756" target="_blank"&gt;Framework Design Guidelines&lt;/a&gt;, it's on my mandatory reading list. Provides great insight on API design.&lt;/li&gt;

  &lt;li&gt;&lt;a href="http://www.windojitsu.com/blog/copyctorvsicloneable.html" target="_blank"&gt;Copy Constructors vs ICloneable -- Redux&lt;/a&gt; &lt;/li&gt;

  &lt;li&gt;&lt;a href="http://www.codeproject.com/KB/cs/0g_GenericsAndCloning.aspx" target="_blank"&gt;CodeProject: Generics and Cloning&lt;/a&gt; &lt;/li&gt;
&lt;/ul&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6707555-3078702678636457094?l=zybermark.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=q42NVjXs"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=q42NVjXs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=9B2Lo7ab"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=W996arCh"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=W996arCh" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=drawQta8"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=drawQta8" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=QeCOvxxJ"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=NgnBtwda"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=129" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DrH4x0rsVoid/~4/eRuRpd1PxXo" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DrH4x0rsVoid/~3/eRuRpd1PxXo/pitfall-of-icloneable.html</link><author>noreply@blogger.com (Zybermark)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://zybermark.blogspot.com/2008/08/pitfall-of-icloneable.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6707555.post-8369643323140674286</guid><pubDate>Tue, 29 Jul 2008 23:52:00 +0000</pubDate><atom:updated>2009-01-11T10:59:10.318-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">NVidia</category><category domain="http://www.blogger.com/atom/ns#">technology</category><category domain="http://www.blogger.com/atom/ns#">DrH4x0rsVoid</category><category domain="http://www.blogger.com/atom/ns#">vista</category><category domain="http://www.blogger.com/atom/ns#">software</category><category domain="http://www.blogger.com/atom/ns#">windows</category><title>Black Screen after Vista Wakes Up from Sleep with NVidia Driver Version 7.15.11.7521</title><description>&lt;p&gt;It's actually not completely black, the top line of pixels still works properly! This problem started for me after I installed the driver update supplied by Windows &lt;a style="" href="http://lh5.ggpht.com/mark.sletterink/SI-tTY9MEoI/AAAAAAAAAF8/n2Vg74uHrUA/s1600-h/NVidia_GeForce6150LE_v7.15.11.75215.jpg"&gt;&lt;img style="border-width: 0px;" alt="NVidia_GeForce6150LE_v7.15.11.7521" src="http://lh3.ggpht.com/mark.sletterink/SI-tTyM467I/AAAAAAAAAGA/VyBOPZgwssU/NVidia_GeForce6150LE_v7.15.11.7521_t.jpg?imgmax=800" width="220" align="right" border="0" height="244" /&gt;&lt;/a&gt;Update for the GeForce 6150 LE; Driver Provider: NVIDIA, Driver Date: 5/22/2008, Driver Version: 7.15.11.7521.  Both manually forcing it and idling to sleep or hibernate produce the same results.&lt;/p&gt;  &lt;p&gt;The rest of the system appears to be functioning properly and pressing the power button will turn off the system. Hitting the [WIN], typing 'shutdown /r /t 0' and pressing [enter] will reboot the system. Upon reboot the screen is fine again and neither the EventLog nor Reliability Monitor show any problems.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/mark.sletterink/SI-tUJk3tTI/AAAAAAAAAGE/IjeiDTOyIeo/s1600-h/Rollback_Driver_Error3.jpg"&gt;&lt;img style="border-width: 0px;" alt="Rollback_Driver_Error" src="http://lh4.ggpht.com/mark.sletterink/SI-tUbg7cYI/AAAAAAAAAGI/3OeeFPce7zs/Rollback_Driver_Error_thumb1.jpg?imgmax=800" width="244" align="right" border="0" height="129" /&gt;&lt;/a&gt;I decided to roll back to the previous driver (7.15.11.6222, 7/6/2007), which produced four RunDLL error dialogs: "Error in NVCPL.DLL - Missing entry:NvCplRestorePersistence". Ouch!&lt;/p&gt;  &lt;p&gt;Now the screen works properly when waking up, but I get greeted with that error dialog. Again, no errors or warning in the EventLog or Reliability Monitor.&lt;/p&gt;  &lt;p&gt;Time for the windows cure-all... DAS (RE)BOOT!&lt;/p&gt;  &lt;p&gt;Excellent! The reboot cleared up that issue. &lt;/p&gt;  &lt;p&gt;Has anyone else experienced this issue? Did you resolve it? How?&lt;/p&gt;&lt;p&gt;
&lt;/p&gt;&lt;p&gt;Related posts:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://zybermark.blogspot.com/2009/01/more-pain-with-nvidia.html"&gt;More Pain with NVidia...&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6707555-8369643323140674286?l=zybermark.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=XKVJtI4s"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=XKVJtI4s" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=YGHYjS7f"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=vw5LVWGH"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=vw5LVWGH" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=TWk8w9Lf"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=TWk8w9Lf" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=zaGubLnC"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=xkcNMf4f"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=129" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DrH4x0rsVoid/~4/hg1tkdBGOLc" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DrH4x0rsVoid/~3/hg1tkdBGOLc/black-screen-after-vista-wakes-up-from.html</link><author>noreply@blogger.com (Zybermark)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">3</thr:total><feedburner:origLink>http://zybermark.blogspot.com/2008/07/black-screen-after-vista-wakes-up-from.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6707555.post-4460279672019200108</guid><pubDate>Mon, 09 Jun 2008 21:03:00 +0000</pubDate><atom:updated>2008-06-09T19:46:04.685-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">DrH4x0rsVoid</category><category domain="http://www.blogger.com/atom/ns#">flamebait</category><category domain="http://www.blogger.com/atom/ns#">Code</category><title>Nerdettes are the source of beautiful code?</title><description>&lt;blockquote&gt;   &lt;p&gt;Emma McGrattan, the senior vice-president of engineering for computer-database company Ingres&amp;#8211;and one of Silicon Valley&amp;#8217;s highest-ranking female programmers&amp;#8211;insists that men and women write code differently. Women are more touchy-feely and considerate of those who will use the code later, she says. They&amp;#8217;ll intersperse their code&amp;#8211;those strings of instructions that result in nifty applications and programs&amp;#8211;with helpful comments and directions, explaining why they wrote the lines the way they did and exactly how they did it.      &lt;br /&gt;The code becomes a type of &amp;#8220;roadmap&amp;#8221; for others who might want to alter it or add to it later...&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt; Did she just say I &lt;a href="http://blogs.wsj.com/biztech/2008/06/06/men-write-code-from-mars-women-write-more-helpful-code-from-venus/" target="_blank"&gt;code like a girl&lt;/a&gt;? My pursuit of &lt;a href="http://zybermark.blogspot.com/2008/05/does-universal-beautiful-code-exist.html" target="_blank"&gt;writing maintainable code&lt;/a&gt; is really an exploration of my feminine side? That is quite the flamebait &lt;a href="http://www.eclipse.org/org/elections/candidate.php?year=2008&amp;amp;id=mcgrattan" target="_blank"&gt;Mrs. McGratten&lt;/a&gt; treated the nerdiverse on. :) &lt;/p&gt;  &lt;p&gt;Her goal is noble, but I think &lt;a href="http://en.wikipedia.org/wiki/Agile_software_development" target="_blank"&gt;Agile&lt;/a&gt; is wasted on Ingress:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;In an effort to make Ingres&amp;#8217;s computer code more user-friendly and gender-neutral, McGrattan helped institute new coding standards at the company. They require programmers to include a detailed set of comments before each block of code explaining what the piece of code does and why; developers also must supply a detailed history of any changes they have made to the code. The rules apply to both Ingres employees and members of the open-source community who contribute code to Ingres&amp;#8217;s products.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;My question to you: Do you &lt;a href="http://zybermark.blogspot.com/2008/05/building-software-evil-and-getting.html" target="_blank"&gt;get anything done&lt;/a&gt;? Or is 90% of time spent on adding code-pretties? &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6707555-4460279672019200108?l=zybermark.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=Apdo8MVU"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=Apdo8MVU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=K30Jh4R1"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=ckgRWACW"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=ckgRWACW" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=OlOmDNaZ"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=OlOmDNaZ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=6SZ9AoPJ"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=ofR1jTxe"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=129" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DrH4x0rsVoid/~4/rl1RCZTXUls" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DrH4x0rsVoid/~3/rl1RCZTXUls/nerdettes-are-source-of-beautiful-code.html</link><author>noreply@blogger.com (Zybermark)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://zybermark.blogspot.com/2008/06/nerdettes-are-source-of-beautiful-code.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6707555.post-6348359488164093613</guid><pubDate>Sat, 07 Jun 2008 17:21:00 +0000</pubDate><atom:updated>2008-06-07T17:07:04.332-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">DrH4x0rsVoid</category><category domain="http://www.blogger.com/atom/ns#">vista</category><category domain="http://www.blogger.com/atom/ns#">windows</category><category domain="http://www.blogger.com/atom/ns#">Realtek HD Audio</category><title>Realtek HD Audio - upgrading from 6.0.1.5502 to 6.0.1.5548</title><description>&lt;p&gt;The &lt;a href="http://h10025.www1.hp.com/ewfrf/wc/softwareList?os=2093&amp;amp;lc=en&amp;amp;cc=us&amp;amp;dlc=en&amp;amp;product=3369460%E2%8C%A9=en" target="_blank"&gt;Software &amp;amp; Driver download&lt;/a&gt; page for my &lt;a href="http://h10025.www1.hp.com/ewfrf/wc/product?product=3369460&amp;amp;lc=en&amp;amp;cc=us%E2%8C%A9=en&amp;amp;os=2093&amp;amp;dlc=en" target="_blank"&gt;HP Pavilion a1750e&lt;/a&gt; had an updated audio driver on it, but I assumed Windows Update also had the &lt;a href="http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&amp;amp;PNid=14&amp;amp;PFid=24&amp;amp;Level=4&amp;amp;Conn=3&amp;amp;DownTypeID=3&amp;amp;GetDown=false" target="_blank"&gt;latest Realtek HD Audio drivers&lt;/a&gt; for Vista. Since I religiously keep up to date with Windows Update I assumed I was running with the latest drivers. Alas, I was &lt;strike&gt;wrong&lt;/strike&gt; mistaken! &lt;/p&gt;  &lt;p&gt;What is going on here? Why do I have to pick those drivers up from HP? It looks like Microsoft would have to keep a lot of vendor specific updates available, considering this disclaimer found on the Realtek drivers download &lt;a href="http://www.realtek.com.tw/downloads/downloadsCheck.aspx?Langid=1&amp;amp;PNid=14&amp;amp;PFid=24&amp;amp;Level=4&amp;amp;Conn=3&amp;amp;DownTypeID=3&amp;amp;GetDown=false" target="_blank"&gt;entry page&lt;/a&gt;.&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;Audio drivers available for download from the Realtek website are general drivers for our audio ICs, and may not offer the customizations made by your system/motherboard manufacturer. To be sure you obtain the full features/customizations provided in your original audio product, please download the latest drivers from your system/motherboard manufacturer's website.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt; Yuck! This is lawyer speak for "we don't do drivers, we're in the hardware business". Ergo, you want drivers? Go talk to your hardware vendor. And so I did. Current installed version 6.0.1.5502; Time to put the &lt;a href="http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=pv-58189-1&amp;amp;lc=en&amp;amp;cc=us&amp;amp;dlc=en&amp;amp;product=3369460&amp;amp;os=2093%E2%8C%A9=en" target="_blank"&gt;upgrade to version 6.0.1.5548&lt;/a&gt; to the test. (Release date: 2008-03-01, Description: Realtek High Definition Audio driver update resolves excessive noise issue with HDMI audio.)&lt;/p&gt;  &lt;p&gt;Strangely enough HP software updates still do not seem to be able to use a wizard style for their update dialog, so after running &lt;a href="ftp://ftp.hp.com/pub/softlib/software9/COL22124/pv-58189-1/sp37324.exe"&gt;sp37324.exe&lt;/a&gt; I am presented with the plea to press YES!   
&lt;a href="http://lh3.ggpht.com/mark.sletterink/SErDqSBPhfI/AAAAAAAAAE8/vEzMb-9NGVA/s1600-h/ClickYes%5B2%5D.jpg"&gt;&lt;img style="border: 0px none ;" alt="ClickYes" src="http://lh6.ggpht.com/mark.sletterink/SErDrd6KOqI/AAAAAAAAAFA/1GbEJq38wqM/ClickYes_thumb.jpg?imgmax=800" border="0" height="116" width="244" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Ick! Ok, then. I wonder what the difference is between "No" and "Cancel". :)&lt;/p&gt;  &lt;p&gt;Next up, a little progress dialog...&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/mark.sletterink/SErDr7qQcmI/AAAAAAAAAFE/yfa5GOc5oiA/s1600-h/PleaseWait%5B2%5D.jpg"&gt;&lt;img style="border: 0px none ;" alt="PleaseWait" src="http://lh5.ggpht.com/mark.sletterink/SErDsIGiNII/AAAAAAAAAFI/yit27qvOSLw/PleaseWait_thumb.jpg?imgmax=800" border="0" height="89" width="244" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Eeeep! No progress shown here, just the moving piece of green that shows it is busy. And after a bit the update is done; Time to click YES again, or No, or Cancel!&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/mark.sletterink/SErDsap9ZkI/AAAAAAAAAFM/UP475TrlPDU/s1600-h/UpdateCompleted%5B2%5D.jpg"&gt;&lt;img style="border: 0px none ;" alt="UpdateCompleted" src="http://lh6.ggpht.com/mark.sletterink/SErDsqRpFxI/AAAAAAAAAFQ/ZeDzjp1CLac/UpdateCompleted_thumb.jpg?imgmax=800" border="0" height="95" width="244" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;I chose to be nice, and click YES, the system restarted, and &lt;strong&gt;I still had sound&lt;/strong&gt;. Yay! Unfortunately all my audio configuration settings were wiped out again, so I had to set front and back channels to be split again, but that was the only heartache I got. And just to be sure I checked the version dialog:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/mark.sletterink/SErDtG3-c5I/AAAAAAAAAFU/VHrJ1DVcl4k/s1600-h/driver-v6.0.1.5548-infopanel%5B2%5D.jpg"&gt;&lt;img style="border: 0px none ;" alt="driver-v6.0.1.5548-infopanel" src="http://lh5.ggpht.com/mark.sletterink/SErDtbiZKsI/AAAAAAAAAFY/I4P0zQvobWw/driver-v6.0.1.5548-infopanel_thumb.jpg?imgmax=800" border="0" height="197" width="244" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Success! &lt;/p&gt;  &lt;p&gt;My question to you, dear reader, is: Where do YOU pull your Realtek HD Audio driver updates from?&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6707555-6348359488164093613?l=zybermark.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=KzBUKdn6"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=KzBUKdn6" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=RuRiOUaA"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=vULJayXC"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=vULJayXC" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=mxyaDdHp"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=mxyaDdHp" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=HfZTELVq"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=xAzVdFYM"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=129" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DrH4x0rsVoid/~4/OyLZ6hh2PLE" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DrH4x0rsVoid/~3/OyLZ6hh2PLE/realtek-hd-audio-upgrading-from-6015502.html</link><author>noreply@blogger.com (Zybermark)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://zybermark.blogspot.com/2008/06/realtek-hd-audio-upgrading-from-6015502.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6707555.post-7588284936979840872</guid><pubDate>Fri, 30 May 2008 04:10:00 +0000</pubDate><atom:updated>2008-05-29T22:10:50.382-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">DrH4x0rsVoid</category><category domain="http://www.blogger.com/atom/ns#">software</category><category domain="http://www.blogger.com/atom/ns#">security</category><title>Building Software, Evil and Getting Things Done</title><description>&lt;p&gt;&lt;a href="http://www.codinghorror.com/blog/archives/000021.html" target="_blank"&gt;Jeff Atwood&lt;/a&gt;&amp;#160; wrote a &lt;a href="http://www.codinghorror.com/blog/archives/001123.html" target="_blank"&gt;passionate blog entry&lt;/a&gt; about &lt;a href="http://en.wikipedia.org/wiki/Craigslist" target="_blank"&gt;Craigslist&lt;/a&gt; and the demise of the Personals section (amongst others) now that Evil forces have taken over with the help of ever more sophisticated tools and creative solutions. Wouldn't you agree such is the natural result of the open approach used by Craigslist? &lt;em&gt;Anyone&lt;/em&gt; can post an ad. If they had not taken this approach Craigslist would not have been so successful. Lowering the bar for getting your classifieds in meant getting more ads, because &lt;em&gt;everybody &lt;/em&gt;could do it, &lt;em&gt;without&lt;/em&gt; having to sign away their life. Just like &lt;a href="http://www.virtualtourist.com/travel/Europe/France/Ile_de_France/Paris-99080/Warnings_or_Dangers-Paris-Pick_Pockets-BR-1.html" target="_blank"&gt;tourist&lt;/a&gt; &lt;a href="http://www.virtualtourist.com/travel/Europe/Netherlands/Provincie_Noord_Holland/Amsterdam-463377/Warnings_or_Dangers-Amsterdam-TG-C-1.html" target="_blank"&gt;destinations&lt;/a&gt; attract &lt;a href="http://www.dailymail.co.uk/news/article-510100/Revealed-How-Romanian-pickpocket-gangs-building-palaces-home-child-slave-labour.html" target="_blank"&gt;pickpockets&lt;/a&gt; (and &lt;a href="http://nyc2dailyphoto.blogspot.com/2007/09/beware-of-pickpockets-and-loose-women.html" target="_blank"&gt;loose women?&lt;/a&gt;), open high-traffic websites attract spammers.&lt;/p&gt;  &lt;p&gt;Craigslist was &lt;a href="http://www.stevepavlina.com/blog/2008/05/the-value-of-ideas/" target="_blank"&gt;a great idea&lt;/a&gt;. A great idea that became more than just an idea, it actually got implemented. Maybe the implementation was not perfect by today's standards but it worked and has &lt;a href="http://www.sfweekly.com/2005-11-30/news/craig-list-com/" target="_blank"&gt;paid the bills&lt;/a&gt; for over thirteen years! A proper threat-modeling session in the early days would surely have brought these issues to light, and business-need would have overruled security/abuse. Unfortunately this business model might have seen its' longest days by now.&lt;/p&gt;  &lt;p&gt;Nowadays such openness is no longer feasible. Spammers and crackers are abusing the system every which way they can for personal gain forcing our software solutions to be able to handle every known attack angle and mitigate the future ones as much as possible. Any programmer that takes himself seriously should invest in getting properly educated on the security aspects of programming. Not just because he should create solid code, but because sooner or later it will become a liability. Everybody with a little knack for logic and the ability to use google can cut and paste together a piece of software. Creativity and innovation flourishes! But... would you send your kids out on the road in an innovative car with no brakes? I think not! &lt;/p&gt;  &lt;p&gt;When you make a living writing business software there is a constant struggle between getting things done, and getting them done &lt;strong&gt;right&lt;/strong&gt;. Being able to get things done right generally means &lt;em&gt;you already need to know how to do them right&lt;/em&gt; because there is no time to &lt;a href="http://www.google.com/" target="_blank"&gt;search&lt;/a&gt; &lt;a href="http://ask.com/" target="_blank"&gt;the&lt;/a&gt; &lt;a href="http://search.live.com/" target="_blank"&gt;web&lt;/a&gt; all day for the perfect solution, that deadline is approaching fast. What's worse, you might not even be aware there is a problem with the chosen implementation. If you are a contractor, do you invest in your &lt;a href="http://www.giac.org/" target="_blank"&gt;security education&lt;/a&gt;, or do you focus on getting up to speed on the latest &lt;a href="http://weblog.raganwald.com/2007/01/dont-overthink-fizzbuzz.html" target="_blank"&gt;fizz-buzzwords&lt;/a&gt;? If you are a wage-slave, does your company invest in your education, or are you merely a mindless implementer of business requirements? &lt;em&gt;Do &lt;strong&gt;you&lt;/strong&gt; invest in yourself?&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;em&gt;Invest in yourself!&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;How do I invest in myself? Personally I still prefer a good book over online reading. The author of a book has put an effort into putting together a cohesive set of information to help you advance. When you randomly pull a single chapter out of a book you generally miss context or concepts. Browsing the web is like pulling a subtract of a chapter out of a giant book and all the other related information goes wasted on you. You get a quick answer to a specific detail to a problem, but never get to grasp the whole problem. When I do decide to stick with using the free online resources I make sure I do my research properly; Follow links, make sure I get the context. Granted, most bloggers/authors on the web put a lot of effort into their content, slowly weaving a never-ending book online, but that is not the same as having a book covering a specific topic. :) (Some day we might all go the way of the &lt;a href="http://www.amazon.com/gp/product/B000FI73MA?ie=UTF8&amp;amp;tag=drh4xvoi-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=B000FI73MA" target="_blank"&gt;Kindle&lt;/a&gt;, but I prefer the feeling of a solid paper book.)&lt;/p&gt;  &lt;p&gt;In the end we are all responsible for the solutions we produce, so next time you get to implement a great idea make sure you (know how to) do some threat-modeling first (&lt;a href="http://blogs.msdn.com/sdl/archive/tags/threat+modeling/default.aspx" target="_blank"&gt;online&lt;/a&gt;, &lt;a href="http://www.amazon.com/gp/product/0735617228?ie=UTF8&amp;amp;tag=drh4xvoi-20&amp;amp;link_code=as3&amp;amp;camp=211189&amp;amp;creative=373489&amp;amp;creativeASIN=0735617228" target="_blank"&gt;book&lt;/a&gt;). That shortcut you were about to take &lt;a href="http://en.wikipedia.org/wiki/Butterfly_effect" target="_blank"&gt;might&lt;/a&gt; have &lt;a href="http://en.wikipedia.org/wiki/Chaos_theory" target="_blank"&gt;changed&lt;/a&gt; the &lt;a href="http://en.wikipedia.org/wiki/Risks_to_civilization,_humans_and_planet_Earth" target="_blank"&gt;fate of the planet&lt;/a&gt;!&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6707555-7588284936979840872?l=zybermark.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=pLAsOfI9"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=pLAsOfI9" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=3EgHgZIV"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=jT5w8nIb"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=jT5w8nIb" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=6wfmOq7r"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=6wfmOq7r" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=iFpp5cEZ"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=X5MeTMQE"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=129" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DrH4x0rsVoid/~4/i41-HNJWAw0" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DrH4x0rsVoid/~3/i41-HNJWAw0/building-software-evil-and-getting.html</link><author>noreply@blogger.com (Zybermark)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://zybermark.blogspot.com/2008/05/building-software-evil-and-getting.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6707555.post-8300196575905092705</guid><pubDate>Wed, 28 May 2008 04:06:00 +0000</pubDate><atom:updated>2008-05-28T11:43:52.270-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">DrH4x0rsVoid</category><category domain="http://www.blogger.com/atom/ns#">software</category><category domain="http://www.blogger.com/atom/ns#">Code</category><title>Does Universal Beautiful Code Exist?</title><description>&lt;p&gt;A &lt;a href="http://blogs.sun.com/bmc/entry/beautiful_code" target="_blank"&gt;lot&lt;/a&gt; of &lt;a href="http://www.codinghorror.com/blog/archives/001062.html" target="_blank"&gt;debate&lt;/a&gt; is going on about &amp;quot;&lt;a href="http://www.amazon.com/gp/product/0596510047?ie=UTF8&amp;amp;tag=drh4xvoi-20&amp;amp;link_code=as3&amp;amp;camp=211189&amp;amp;creative=373489&amp;amp;creativeASIN=0596510047" target="_blank"&gt;Beautiful Code&lt;/a&gt;&amp;quot;. How can you measure the beauty of code? Is it &lt;a href="http://www.amazon.com/gp/product/0735619670?ie=UTF8&amp;amp;tag=drh4xvoi-20&amp;amp;link_code=as3&amp;amp;camp=211189&amp;amp;creative=373489&amp;amp;creativeASIN=0735619670" target="_blank"&gt;&amp;quot;solid&amp;quot; code&lt;/a&gt;? Or perhaps &lt;a href="http://weblog.raganwald.com/2007/04/writing-programs-for-people-to-read.html" target="_blank"&gt;easily readable&lt;/a&gt; for humans? An efficient &lt;a href="http://www.amazon.com/gp/product/0262032937?ie=UTF8&amp;amp;tag=drh4xvoi-20&amp;amp;link_code=as3&amp;amp;camp=211189&amp;amp;creative=373489&amp;amp;creativeASIN=0262032937" target="_blank"&gt;algorithm&lt;/a&gt;, or a fast one? Terse sample code that shows a concept, or production code that is &lt;a href="http://beautifulcode.oreillynet.com/2007/12/error_handling_the_practice_we.php" target="_blank"&gt;robust&lt;/a&gt; and fault tolerant? Perhaps a clever solution to a problem, or code that follows &lt;a href="http://www.amazon.com/gp/search?ie=UTF8&amp;amp;keywords=Framework%20Design%20Guidelines&amp;amp;tag=drh4xvoi-20&amp;amp;index=books&amp;amp;linkCode=ur2&amp;amp;camp=1789&amp;amp;creative=9325" target="_blank"&gt;coding conventions and guidelines&lt;/a&gt;? Or should it be &lt;a href="http://www.amazon.com/gp/product/0321126971?ie=UTF8&amp;amp;tag=drh4xvoi-20&amp;amp;link_code=as3&amp;amp;camp=211189&amp;amp;creative=373489&amp;amp;creativeASIN=0321126971" target="_blank"&gt;patterns&lt;/a&gt; based? What about curly-braces, indentation, comments, letter-casing (NO SHOUTING, IT'S RUDE!) or programming language? Should it exploit all features of the language it was written in, or only use some generic feature-set, libraries or framework commonly found in the language type (imperative, functional, .Net, C-Libraries)? What about &lt;a href="http://en.wikipedia.org/wiki/Cyclomatic_complexity" target="_blank"&gt;cyclomatic complexity&lt;/a&gt; and other &lt;a href="http://en.wikipedia.org/wiki/Software_metric" target="_blank"&gt;software metrics&lt;/a&gt;? &lt;/p&gt;  &lt;p&gt;Most of those &amp;quot;beauty metrics&amp;quot; are purely gut-feeling based and enforcing metrics like a low cyclomatic complexity generally does not improve code beauty (good luck polishing a coal until it's a diamond). In my experience code often mirrors the authors' understanding of the problem and thought-process. No amount of computer assisted code analysis can improve that. &lt;/p&gt;  &lt;p&gt;Beautiful code can come in the form of little one-liner gems, or huge elegant architectural diamonds that solve a real-world problem. You will generally find more little gems than big diamonds.&lt;/p&gt;  &lt;p&gt;In the end nobody can win: &lt;a href="http://www.phrases.org.uk/meanings/59100.html" target="_blank"&gt;Beauty is in the eye of the beholder&lt;/a&gt;!&lt;/p&gt;  &lt;p&gt;I cannot put it better than David Hume:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;Beauty in things exists merely in the mind which contemplates them.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Code beauty is determined by the observers' frame of reference; programming exposure (languages (C, C++, Java, Visual Basic, F#, Ruby, Lisp), Patterns, Algorithms, Operating Systems, formal training, experience (how many times has the beholder been &lt;a href="http://alarmingdevelopment.org/?p=79" target="_blank"&gt;burned&lt;/a&gt; by mistakes?), etc.), &lt;a href="http://haacked.com/archive/2007/05/28/the-only-universal-language-in-software-is-english.aspx" target="_blank"&gt;native language&lt;/a&gt;, organizational position (Junior Programmer vs. Senior Architect vs IT Director, they have different stakes in the code produced) and even aesthetical preferences.&lt;/p&gt;  &lt;p&gt;Back to my original question: Does UNIVERSAL beautiful code exist?&lt;/p&gt;  &lt;p&gt;Think about that for a minute, I'll wait... What do you think &lt;a href="http://en.wikipedia.org/wiki/Greys" target="_blank"&gt;the Greys&lt;/a&gt; use as their programming language? Something based on &lt;a href="http://en.wikipedia.org/wiki/Hieroglyph_%28disambiguation%29" target="_blank"&gt;hieroglyphs&lt;/a&gt; and flow-charts? What about my Ferengi friend &lt;a href="http://en.wikipedia.org/wiki/Quark_%28Star_Trek%29" target="_blank"&gt;Quark&lt;/a&gt;? &lt;a href="http://en.wikipedia.org/wiki/Quantum_programming" target="_blank"&gt;Quantum languages&lt;/a&gt; like QCL or QFC?&lt;/p&gt;  &lt;p&gt;Good luck getting consensus on that! :)&lt;/p&gt;  &lt;p&gt;So, is there Beautiful Architecture?&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6707555-8300196575905092705?l=zybermark.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=D5vwrAgr"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=D5vwrAgr" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=sGUzs6tQ"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=R5ecaFSx"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=R5ecaFSx" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=EgpE3bJ1"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=EgpE3bJ1" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=OQSRNLQH"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=s4QgqDJr"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=129" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DrH4x0rsVoid/~4/bFkX0BhhM14" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DrH4x0rsVoid/~3/bFkX0BhhM14/does-universal-beautiful-code-exist.html</link><author>noreply@blogger.com (Zybermark)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://zybermark.blogspot.com/2008/05/does-universal-beautiful-code-exist.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6707555.post-5422986669013317479</guid><pubDate>Sat, 17 May 2008 02:59:00 +0000</pubDate><atom:updated>2008-06-07T22:55:46.834-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">windows mobile</category><category domain="http://www.blogger.com/atom/ns#">technology</category><category domain="http://www.blogger.com/atom/ns#">DrH4x0rsVoid</category><category domain="http://www.blogger.com/atom/ns#">software</category><category domain="http://www.blogger.com/atom/ns#">windows ce</category><category domain="http://www.blogger.com/atom/ns#">pocket pc</category><category domain="http://www.blogger.com/atom/ns#">microsoft</category><title>Process Explorer for Windows Mobile</title><description>&lt;p&gt;My &lt;a href="http://h10010.www1.hp.com/wwpc/us/en/sm/WF05a/215348-215348-64929-314903-215384-421420.html" target="_blank"&gt;iPAQ&lt;/a&gt; with &lt;a href="http://www.microsoft.com/Windowsmobile/default.mspx" target="_blank"&gt;Windows Mobile&lt;/a&gt; was acting sluggish, so I went hunting for a &lt;a href="http://windowshelp.microsoft.com/Windows/en-US/help/0da9bb3d-22c6-4b4d-a020-f75a2a0ef8671033.mspx" target="_blank"&gt;Task Manager&lt;/a&gt;/&lt;a href="http://www.microsoft.com/technet/sysinternals/Security/ProcessExplorer.mspx" target="_blank"&gt;Process Explorer&lt;/a&gt; like utility for it and came across this little gem. Saved me some coding! In the end I&amp;#160; was unable to figure out what exactly caused the slugginesh because the problem went away, but next time it happens I will be prepared!&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.dotfred.net/TaskMgr.htm" target="_blank"&gt;TaskMgr for WM*&lt;/a&gt; is a must-have for every Windows Mobile user, like &lt;strike&gt;a Swiss Army Knife&lt;/strike&gt; my &lt;a href="http://www.amazon.com/gp/product/B000UVYENS?ie=UTF8&amp;amp;tag=drh4xvoi-20&amp;amp;link_code=as3&amp;amp;camp=211189&amp;amp;creative=373489&amp;amp;creativeASIN=B000UVYENS" target="_blank"&gt;Leatherman&lt;/a&gt; (don't leave home without it)! All the basic tools a user needs to keep the system running smooth: Process manager, CPU usage, Application Manager, Service Manager, Device Manager (only WM2005 and above), Windows Manager, Notification Manager, IP Config utility, Ping utility, Net Stats utility, Registry Editor and a 'Run program' utility. Kudos to &lt;a href="http://www.dotfred.net/" target="_blank"&gt;Dotfred&lt;/a&gt;!&lt;/p&gt;  &lt;p&gt;&amp;lt;rant&amp;gt;I should not need a tool like TaskMgr to keep my system running smoothly. Windows CE is supposed to run a mobile phone, which can be a life-saving device... Last thing I need is a frozen (phrozen?) phone!&amp;lt;/rant&amp;gt; &lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6707555-5422986669013317479?l=zybermark.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=0bfgsRjD"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=0bfgsRjD" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=okOr8Gwz"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=aZSGVbzz"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=aZSGVbzz" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=gm8qrbVA"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=gm8qrbVA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=39Ck1ppr"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=QS9r5pEc"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=129" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DrH4x0rsVoid/~4/ybIKQs99b08" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DrH4x0rsVoid/~3/ybIKQs99b08/process-explorer-for-windows-mobile.html</link><author>noreply@blogger.com (Zybermark)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://zybermark.blogspot.com/2008/05/process-explorer-for-windows-mobile.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6707555.post-2017745244346831119</guid><pubDate>Wed, 14 May 2008 14:00:00 +0000</pubDate><atom:updated>2008-12-11T21:08:35.990-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">performance</category><category domain="http://www.blogger.com/atom/ns#">technology</category><category domain="http://www.blogger.com/atom/ns#">DrH4x0rsVoid</category><category domain="http://www.blogger.com/atom/ns#">samurize</category><category domain="http://www.blogger.com/atom/ns#">windows</category><title>Monitor Your System Performance With Samurize</title><description>Have you ever wondered what is going on under the hood of your Windows system? Why is it so sluggish and slow (read: sloooooooooow)? Why is my harddisk continuously blinking? Or that CPU fan sounding like a &lt;a href="http://forum.us.dell.com/supportforums/board/message?board.id=dim_other&amp;amp;message.id=226827&amp;amp;view=by_date_ascending&amp;amp;page=1"&gt;jet engine&lt;/a&gt;? - As a software developer with a passion for code quality and performance I always strive to produce solid code and software algorithms, but you will not know how it actually behaves until you &lt;a href="http://blogs.msdn.com/ricom/archive/2007/06/13/partly-sunny-chance-of-showers-bring-an-umbrella.aspx"&gt;measure&lt;/a&gt;. Even though software the development environments of today come with an army of sophisticated tools to help you squeeze out the numbers during a test run they do not give you a general feel of how your system normally performs. Windows comes with perfmon, but configuration and interpretation of those graphs is a pain at best. &lt;span style="font-weight: bold; font-style: italic"&gt;&lt;a href="http://www.samurize.com/modules/news/"&gt;Samurize&lt;/a&gt; to the rescue!!!&lt;/span&gt;   &lt;br /&gt;  &lt;br /&gt;&lt;span style="font-size: 130%"&gt;Samurize to the rescue!&lt;/span&gt;   &lt;br /&gt;Using &lt;a href="http://www.samurize.com/modules/news/"&gt;Samurize&lt;/a&gt; and a little imagination you can build a very slick system status display that will make your friends turn green with envy! The configuration I use looks like this:&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_tdkFmApt1q4/SCrl3ABE5OI/AAAAAAAAAEw/HUDw6oaGpL8/s1600-h/Samurize-Full.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5200221452812739810" style="cursor: pointer" alt="" src="http://1.bp.blogspot.com/_tdkFmApt1q4/SCrl3ABE5OI/AAAAAAAAAEw/HUDw6oaGpL8/s400/Samurize-Full.png" border="0" /&gt;&lt;/a&gt;   &lt;br /&gt;Once you have settled in on a base set of performance counters and how you would like them displayed, CPU-, Memory- and Disk-Usage histograms are a good place to start, it is easy to expand your configuration to include more items you want to monitor like SQL Server, Network traffic, etc. After creating and selecting your configuration you will want to set the display position to &amp;quot;docked&amp;quot; so the meters are always visible.   &lt;br /&gt;  &lt;br /&gt;Here is a &lt;a title="Download samurize_zybermark.ini" href="http://cid-a0a039c5b0d99d3d.skydrive.live.com/self.aspx/Public/Dr.%20H4x0rs%20Void/samurize_zybermark.ini" target="_blank"&gt;link to download&lt;/a&gt; the configuration I currently use.   &lt;br /&gt;&lt;iframe style="border-right: rgb(221,229,233) 1px solid; padding-right: 0pt; border-top: rgb(221,229,233) 1px solid; padding-left: 0pt; padding-bottom: 0pt; margin: 3px; border-left: rgb(221,229,233) 1px solid; width: 240px; padding-top: 0pt; border-bottom: rgb(221,229,233) 1px solid; height: 66px; background-color: rgb(255,255,255)" marginwidth="0" marginheight="0" src="http://cid-a0a039c5b0d99d3d.skydrive.live.com/embedrowdetail.aspx/Public/Dr.%20H4x0rs%20Void/samurize_zybermark.ini" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;  &lt;br /&gt;  &lt;br /&gt;I will explain how to interpret the different sections of this configuration in future posts.   &lt;br /&gt;&lt;span style="font-size: 78%"&gt;   &lt;br /&gt;Update: Replaced configuration file contents with a download link.&lt;/span&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6707555-2017745244346831119?l=zybermark.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=cB4qcvVu"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=cB4qcvVu" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=tefIrNTR"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=MVcULEPv"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=MVcULEPv" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=dS93Hi3M"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=dS93Hi3M" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=2vp6Y4rx"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=R3qKu8gl"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=129" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DrH4x0rsVoid/~4/byDH8SEiFxY" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DrH4x0rsVoid/~3/byDH8SEiFxY/monitor-your-system-performance-with.html</link><author>noreply@blogger.com (Zybermark)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_tdkFmApt1q4/SCrl3ABE5OI/AAAAAAAAAEw/HUDw6oaGpL8/s72-c/Samurize-Full.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://zybermark.blogspot.com/2008/05/monitor-your-system-performance-with.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6707555.post-4672332957308778645</guid><pubDate>Fri, 25 Apr 2008 00:50:00 +0000</pubDate><atom:updated>2008-04-24T18:50:41.489-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">vista</category><title>One month with Vista SP1 - One hickup: mobile device not recognized</title><description>&lt;p&gt;So I have been using &lt;a href="http://www.microsoft.com/windows/products/windowsvista/sp1.mspx" target="_blank"&gt;Vista SP1&lt;/a&gt; for a month now and have yet to run into any major issues. I get the impression memory usage has been slightly improved, but apart from that I did not notice any improvements or degradations. Same old Vista to me. :)&lt;/p&gt;  &lt;p&gt;One minor issue I ran into: My IPaq failed to get recognized. This manifested itself when I woke up the PC from standby mode. The screen came up, the cursor was blinking, but the mouse and keyboard were unresponsive for over a minute. THAT had never happened before. As a matter of fact, it seems that my keyboard is recognized quicker when waking up from standby with SP1. I should have taken hard measurements, before &amp;amp; after, too late now! But I digress, back to the main issue... Once my peripherals were finally online I noticed synchronization with my IPaq was not happening anymore, even worse, there was no IPaq! Removing and reinserting it in the cradle did not help either. &lt;a href="http://forums.microsoft.com/WindowsMobile/ShowPost.aspx?PostID=3040290&amp;amp;SiteID=65" target="_blank"&gt;Performing a soft-reset&lt;/a&gt; on the IPaq fixed the issue and it has not occurred since.&lt;/p&gt;  &lt;p&gt;On that note... &lt;a href="http://windowsvistablog.com/blogs/windowsvista/archive/2008/04/23/automatic-distribution-of-windows-vista-sp1-begins-today.aspx" target="_blank"&gt;Today, Microsoft announced they are beginning automatic distribution of SP1 in English, French, German, Spanish, and Japanese&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;Related posts:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://zybermark.blogspot.com/2008/03/vista-sp1-upgrade-with-realtek-high.html" target="_blank"&gt;Vista SP1 upgrade with Realtek High Definition sound driver v6.0.1.5502 successful!&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://windowsvistablog.com/blogs/windowsvista/archive/2008/03/18/windows-vista-sp1-released-to-windows-update.aspx"&gt;Realtek sound chipset == no Vista SP1 download in Windows Update?&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://zybermark.blogspot.com/2008/02/i-love-vista-its-true-i-do-after-having.html"&gt;I Love Vista!&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6707555-4672332957308778645?l=zybermark.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=GucwvijA"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=GucwvijA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=KT1yGmKH"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=I6LI0VJD"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=I6LI0VJD" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=UUpZMwDM"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=UUpZMwDM" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=r2YSbKsY"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=gcNZiLVk"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=129" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DrH4x0rsVoid/~4/Rl1gj4UnWLU" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DrH4x0rsVoid/~3/Rl1gj4UnWLU/one-month-with-vista-sp1-one-hickup.html</link><author>noreply@blogger.com (Zybermark)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://zybermark.blogspot.com/2008/04/one-month-with-vista-sp1-one-hickup.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6707555.post-3466953915721315186</guid><pubDate>Sun, 20 Apr 2008 21:00:00 +0000</pubDate><atom:updated>2008-12-11T21:08:36.182-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">fun</category><category domain="http://www.blogger.com/atom/ns#">robotics</category><title>Neurotic Drum Beat Robots - A Glympse of the Future?</title><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_tdkFmApt1q4/SAuw3vZkVfI/AAAAAAAAAEo/kypeIHW15yE/s1600-h/EnergizerBunny-180px.jpg"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="http://4.bp.blogspot.com/_tdkFmApt1q4/SAuw3vZkVfI/AAAAAAAAAEo/kypeIHW15yE/s400/EnergizerBunny-180px.jpg" alt="" id="BLOGGER_PHOTO_ID_5191437467137627634" border="0" /&gt;&lt;/a&gt;
Very &lt;a href="http://letsmakerobots.com/node/112"&gt;cute, totally neurotic little robot&lt;/a&gt; that drums on whatever it is "enticed" to play on...

Dress her up in pink and you got yourself an &lt;a href="http://en.wikipedia.org/wiki/Energizer_Bunny"&gt;energizer bunny&lt;/a&gt;! :)

via &lt;a href="http://www.synthtopia.com/content/2008/03/23/sampling-drum-machine-robot/"&gt;Synthopia&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6707555-3466953915721315186?l=zybermark.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=ubQSAyXA"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=ubQSAyXA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=uxyUOSiS"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=8uOlfLZa"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=8uOlfLZa" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=S2EfHKhc"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=S2EfHKhc" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=gGZxfpzD"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=AForC3QH"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=129" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DrH4x0rsVoid/~4/j7FY2dJlALw" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DrH4x0rsVoid/~3/j7FY2dJlALw/neurotic-drum-beat-robots-glympse-of.html</link><author>noreply@blogger.com (Zybermark)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_tdkFmApt1q4/SAuw3vZkVfI/AAAAAAAAAEo/kypeIHW15yE/s72-c/EnergizerBunny-180px.jpg" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://zybermark.blogspot.com/2008/04/neurotic-drum-beat-robots-glympse-of.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6707555.post-1904801936948063217</guid><pubDate>Sun, 30 Mar 2008 16:35:00 +0000</pubDate><atom:updated>2008-12-11T21:08:37.250-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">review</category><category domain="http://www.blogger.com/atom/ns#">anime</category><title>Appleseed Ex Machina Review</title><description>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.amazon.com/gp/product/B0010358D0?ie=UTF8&amp;amp;tag=drh4xvoi-20&amp;amp;link_code=as3&amp;amp;camp=211189&amp;amp;creative=373489&amp;amp;creativeASIN=B0010358D0"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer;" src="http://4.bp.blogspot.com/_tdkFmApt1q4/R--91juUYKI/AAAAAAAAAEQ/KotCvTGCLRc/s400/31Qz46egzoL._AA_SL160_.jpg" alt="" id="BLOGGER_PHOTO_ID_5183570423946961058" border="0" /&gt;&lt;/a&gt;This month &lt;a href="http://www.warnervideo.com/appleseed/" target="_blank"&gt;Appleseed Ex Machina&lt;/a&gt; (Appleseed 2), another masterpiece by &lt;a href="http://en.wikipedia.org/wiki/Masamune_Shirow" target="_blank"&gt;Masamune Shirow&lt;/a&gt;, was released so I had to &lt;a href="http://www.amazon.com/gp/product/B0010358CQ?ie=UTF8&amp;amp;tag=drh4xvoi-20&amp;amp;link_code=as3&amp;amp;camp=211189&amp;amp;creative=373489&amp;amp;creativeASIN=B0010358CQ" target="_blank"&gt;pick me up a copy&lt;/a&gt;. As the sequal to the great movie &lt;a href="http://en.wikipedia.org/wiki/Appleseed_%28film%29" target="_blank"&gt;Appleseed&lt;/a&gt; the bar is set pretty high already, and it definately lived up to my expectations.

&lt;span style="font-weight: bold;"&gt;The plot.&lt;/span&gt;
&lt;blockquote&gt;&lt;a href="http://en.wikipedia.org/wiki/Deunan_Knute" target="_blank"&gt;Deunan Knute&lt;/a&gt;, a young female warrior, and &lt;a href="http://en.wikipedia.org/wiki/Briareos_Hecatonchires" target="_blank"&gt;Briareos&lt;/a&gt;, a veteran cyborg-soldier, are both partners and lovers. As members of &lt;a href="http://en.wikipedia.org/wiki/ESWAT_%28Appleseed%29" target="_blank"&gt;E.S.W.A.T.&lt;/a&gt;, the elite special forces serving Olympus, they are deployed whenever trouble strikes. During a mission involving several high-ranking E.U. officials held hostage by a group of unknown and heavily-armed cyborgs, Briareos is injured protecting Deunan from an ensuing blast. As a last ditch effort by an injured cyborg, E.S.W.A.T. assigns Deunan a new partner, a bioroid named Tereus. Largely based on Briareos' DNA, Tereus was designed as a prototype for a new kind of fighter bioroid. His appearance is very similar to the way Briareos looked before he became a cyborg. Deunan is not agreeable to the idea of having a new partner, but eventually befriends him.
&lt;span style="font-size:78%;"&gt;(from &lt;a href="http://en.wikipedia.org/wiki/Appleseed_Ex_Machina" target="_blank"&gt;Wikipedia&lt;/a&gt;)&lt;/span&gt;&lt;/blockquote&gt;
Sounds like a mushy love story doesn't it? :) Good thing this plot gets dressed up with all the cybernetical action goodness you can expect from &lt;a href="http://www.takotech.net/mshp/" target="_blank"&gt;Masamune&lt;/a&gt;: Cyborgs, Bioroids, even humans (I always said cellphones were evil!) go out of control; taken over by a nutty scientist who is trying to make the world a better place.

&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_tdkFmApt1q4/R---5juUYMI/AAAAAAAAAEg/AfVItc72MLI/s1600-h/ex-machina-action.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_tdkFmApt1q4/R---5juUYMI/AAAAAAAAAEg/AfVItc72MLI/s400/ex-machina-action.png" alt="" id="BLOGGER_PHOTO_ID_5183571592178065602" border="0" /&gt;&lt;/a&gt;
&lt;span style="font-weight: bold;"&gt;Movie Execution&lt;/span&gt;
The movie itself is a captivating blend of visual goodness and clever action scenes. Rendering and effects are fantastic, and I get a good chuckle out of the action scene choreography which reminds me of the fresh new style that was introduced by &lt;a href="http://en.wikipedia.org/wiki/The_Matrix" target="_blank"&gt;The Matrix&lt;/a&gt; &lt;a href="http://www.amazon.com/gp/product/B0002Y69NG?ie=UTF8&amp;amp;tag=drh4xvoi-20&amp;amp;link_code=as3&amp;amp;camp=211189&amp;amp;creative=373489&amp;amp;creativeASIN=B0002Y69NG" target="_blank"&gt;trilogy&lt;/a&gt;. BUT...

&lt;span style="font-weight: bold;"&gt;East meets west?&lt;/span&gt;
Where is the &lt;a href="http://en.wikipedia.org/wiki/Blood:_The_Last_Vampire" target="_blank"&gt;liquid red stuff&lt;/a&gt;? This is an &lt;a href="http://en.wikipedia.org/wiki/Anime" target="_blank"&gt;anime&lt;/a&gt;, right? One of the reasons I enjoy watching anime is seeing the raw exaggerated fiction of the harshness of life... IT'S NOT THERE!!! (Okay, its there twice, without any of the exaggeration). It was there in the first movie. If it had not been I would not have cared, but this movie is so clean my 3 year old would ask to see it again! From the occasional abrupt cuts I would speculate it has been sanitized to introduce it to the American mainstream. - Is this another case of censorship, like what happened to &lt;a href="http://en.wikipedia.org/wiki/Urotsukidoji" target="_blank"&gt;Urotsukidōji&lt;/a&gt;? That American version was cut up so bad you lost about half the movie. - BAD Warner Video? BAD &lt;a href="http://en.wikipedia.org/wiki/John_Woo" target="_blank"&gt;John Woo&lt;/a&gt;? (East meets East?!?) However, I have not been able to find any indications the original Japanese version would live up to this expectation. Please leave me a note if you know more about this.

&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_tdkFmApt1q4/R---WDuUYLI/AAAAAAAAAEY/8aC32ZLykfQ/s1600-h/ex-machina-deunan.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_tdkFmApt1q4/R---WDuUYLI/AAAAAAAAAEY/8aC32ZLykfQ/s400/ex-machina-deunan.png" alt="" id="BLOGGER_PHOTO_ID_5183570982292709554" border="0" /&gt;&lt;/a&gt;
&lt;span style="font-weight: bold;"&gt;Conclusion&lt;/span&gt;
Despite the lack of red splattering this movie is &lt;span style="font-weight: bold;"&gt;definately a must see&lt;/span&gt;, worth your time and money!
The movie comes in &lt;a href="http://www.amazon.com/gp/product/B0010358CQ?ie=UTF8&amp;amp;tag=drh4xvoi-20&amp;amp;link_code=as3&amp;amp;camp=211189&amp;amp;creative=373489&amp;amp;creativeASIN=B0010358CQ" target="_blank"&gt;single DVD format&lt;/a&gt; (&lt;a href="http://www.amazon.com/gp/product/B0010358EE?ie=UTF8&amp;amp;tag=drh4xvoi-20&amp;amp;link_code=as3&amp;amp;camp=211189&amp;amp;creative=373489&amp;amp;creativeASIN=B0010358EE" target="_blank"&gt;HD-DVD/DVD combo - nice an cheap!&lt;/a&gt;, &lt;a href="http://www.amazon.com/gp/product/B0010358CG?ie=UTF8&amp;amp;tag=drh4xvoi-20&amp;amp;link_code=as3&amp;amp;camp=211189&amp;amp;creative=373489&amp;amp;creativeASIN=B0010358CG" target="_blank"&gt;Blu-ray&lt;/a&gt;) and &lt;a href="http://www.amazon.com/gp/product/B0010358D0?ie=UTF8&amp;amp;tag=drh4xvoi-20&amp;amp;link_code=as3&amp;amp;camp=211189&amp;amp;creative=373489&amp;amp;creativeASIN=B0010358D0" target="_blank"&gt;Two disk special edition&lt;/a&gt; (DVD format). If you have not seen &lt;a href="http://www.amazon.com/gp/product/B0007OY31G?ie=UTF8&amp;amp;tag=drh4xvoi-20&amp;amp;link_code=as3&amp;amp;camp=211189&amp;amp;creative=373489&amp;amp;creativeASIN=B0007OY31G" target="_blank"&gt;the original Appleseed movie&lt;/a&gt; yet make sure you watch it first!

Enjoy!
- Doc.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6707555-1904801936948063217?l=zybermark.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=Ltx87ai0"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=Ltx87ai0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=LetURZAV"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=buir97m3"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=buir97m3" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=HjVFaNF6"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=HjVFaNF6" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=wYjkAbWD"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=jtiKZoK6"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=129" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DrH4x0rsVoid/~4/TpY0F7zbZfY" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DrH4x0rsVoid/~3/TpY0F7zbZfY/appleseed-ex-machina-review.html</link><author>noreply@blogger.com (Zybermark)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_tdkFmApt1q4/R--91juUYKI/AAAAAAAAAEQ/KotCvTGCLRc/s72-c/31Qz46egzoL._AA_SL160_.jpg" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://zybermark.blogspot.com/2008/03/appleseed-ex-machina-review.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6707555.post-1025943017536209065</guid><pubDate>Mon, 24 Mar 2008 02:59:00 +0000</pubDate><atom:updated>2008-06-07T17:05:40.055-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">vista</category><category domain="http://www.blogger.com/atom/ns#">windows</category><category domain="http://www.blogger.com/atom/ns#">Realtek HD Audio</category><title>Vista SP1 upgrade with Realtek High Definition sound driver v6.0.1.5502 successful!</title><description>This weekend I was pleasantly surprised with an available download for Vista SP1 through windows update (why did it take so long?!?). I was fearful of losing my sound with the upgrade due to &lt;a href="http://support.microsoft.com/?kbid=948343#method5"&gt;&amp;quot;SP1 not available cause #5&amp;quot;&lt;/a&gt;, my driver version is v6.0.1.5502, but the upgrade went well (turns out I have a High Definition Audio &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;Codec&lt;/span&gt;, not AC'97, &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;ooops&lt;/span&gt;). The custom settings for the sound card were reset (I like to split all input/output jacks into different channels, the default ties them all together), but that was it. Sound is totally functional from the get-go!  &lt;br /&gt;  &lt;br /&gt;Hurrah!  &lt;br /&gt;  &lt;br /&gt;I haven't seen any difference in performance yet. Feels like same old Vista so far.  &lt;br /&gt;  &lt;br /&gt;  &lt;br /&gt;Related posts:  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://zybermark.blogspot.com/2008/06/realtek-hd-audio-upgrading-from-6015502.html"&gt;Realtek HD Audio - upgrading from 6.0.1.5502 to 6.0.1.5548&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://windowsvistablog.com/blogs/windowsvista/archive/2008/03/18/windows-vista-sp1-released-to-windows-update.aspx"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;Realtek&lt;/span&gt; sound &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;chipset&lt;/span&gt; == no Vista SP1 download in Windows Update?&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://zybermark.blogspot.com/2008/02/i-love-vista-its-true-i-do-after-having.html"&gt;I Love Vista!&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6707555-1025943017536209065?l=zybermark.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=RdNuHxO4"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=RdNuHxO4" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=hZcke5N1"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=sp8gJqju"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=sp8gJqju" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=6nRnIcgZ"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=6nRnIcgZ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=woDuzxvf"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=B2MuWncg"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=129" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DrH4x0rsVoid/~4/iOIEo55FZa0" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DrH4x0rsVoid/~3/iOIEo55FZa0/vista-sp1-upgrade-with-realtek-high.html</link><author>noreply@blogger.com (Zybermark)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://zybermark.blogspot.com/2008/03/vista-sp1-upgrade-with-realtek-high.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6707555.post-8638261172162548137</guid><pubDate>Sun, 23 Mar 2008 02:34:00 +0000</pubDate><atom:updated>2008-12-11T21:08:37.938-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">vista</category><title>Vista Easter-Egg</title><description>Happy Easter!

&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_tdkFmApt1q4/R-XCCjuUX7I/AAAAAAAAABA/mZd4KxK7Zs0/s1600-h/VistaEasterEgg.png"&gt;&lt;img style="cursor: pointer;" src="http://2.bp.blogspot.com/_tdkFmApt1q4/R-XCCjuUX7I/AAAAAAAAABA/mZd4KxK7Zs0/s400/VistaEasterEgg.png" alt="" id="BLOGGER_PHOTO_ID_5180760295564664754" border="0" /&gt;&lt;/a&gt;



Here's the "full picture"...
&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_tdkFmApt1q4/R-XCYTuUX8I/AAAAAAAAABI/2-99oIY8wvM/s1600-h/EasterEggs2008.png"&gt;&lt;img style="cursor: pointer;" src="http://1.bp.blogspot.com/_tdkFmApt1q4/R-XCYTuUX8I/AAAAAAAAABI/2-99oIY8wvM/s400/EasterEggs2008.png" alt="" id="BLOGGER_PHOTO_ID_5180760669226819522" border="0" /&gt;&lt;/a&gt;
&lt;blockquote&gt;
But Vista! You were the chosen one!&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6707555-8638261172162548137?l=zybermark.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=3ODIqORk"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=3ODIqORk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=BnrKmm5l"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=aEItYb0y"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=aEItYb0y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=08UJklg1"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=08UJklg1" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=FYRnUZEJ"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=ZUl6BKql"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=129" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DrH4x0rsVoid/~4/2gjoLQyVgzA" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DrH4x0rsVoid/~3/2gjoLQyVgzA/vista-easter-egg.html</link><author>noreply@blogger.com (Zybermark)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_tdkFmApt1q4/R-XCCjuUX7I/AAAAAAAAABA/mZd4KxK7Zs0/s72-c/VistaEasterEgg.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://zybermark.blogspot.com/2008/03/vista-easter-egg.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6707555.post-4332150946175770205</guid><pubDate>Fri, 21 Mar 2008 03:06:00 +0000</pubDate><atom:updated>2008-12-11T21:08:38.192-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">vista</category><category domain="http://www.blogger.com/atom/ns#">windows</category><category domain="http://www.blogger.com/atom/ns#">Realtek HD Audio</category><title>Realtek sound chipset == no Vista SP1 download in Windows Update?</title><description>Finally! Microsoft has released &lt;a href="http://windowsvistablog.com/blogs/windowsvista/archive/2008/03/18/windows-vista-sp1-released-to-windows-update.aspx"&gt;Vista SP1 through Windows Update&lt;/a&gt;. Too bad I'm not up for this treat yet due to &lt;a href="http://support.microsoft.com/?kbid=948343#method5"&gt;cause #5&lt;/a&gt;. Seems like I'm blocked on the &lt;a href="http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&amp;amp;PNid=14&amp;amp;PFid=24&amp;amp;Level=4&amp;amp;Conn=3&amp;amp;DownTypeID=3&amp;amp;GetDown=false"&gt;integrated &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;Realtek&lt;/span&gt; sound &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;chipset&lt;/span&gt;&lt;/a&gt;. I wish I could say I am surprised, but after going through a driver update for it once I am not. Last time I downloaded the latest &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;realtek&lt;/span&gt; drivers the installer started out with an informational message that tried to tell me something about rebooting (I think, I should have taken a screenshot). I chickened out and canceled the installation, the message scared me! If you can't explain your intent in plain English, how can I trust you to install a system driver?!? 

It got a bit better with R189: 
&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_tdkFmApt1q4/R-MrlzuUX6I/AAAAAAAAAA4/JrVGn6HGiMw/s1600-h/Realtek_R189.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5180031924945837986" style="cursor: pointer;" alt="" src="http://1.bp.blogspot.com/_tdkFmApt1q4/R-MrlzuUX6I/AAAAAAAAAA4/JrVGn6HGiMw/s400/Realtek_R189.png" border="0" /&gt;&lt;/a&gt; 


I think I know what they want from me... Still, I cannot bring myself to click Yes. Dude! This &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;chipset&lt;/span&gt; comes standard with boatloads of PCs nowadays. Half the planet is blocked from SP1?!? 
Isn't it about time Microsoft sent a couple of its &lt;a href="http://blogs.msdn.com/larryosterman/"&gt;finest audio driver engineers&lt;/a&gt; out to get us out of our misery? Add an installation package engineer to that, just to be sure. And a &lt;a href="http://en.wikipedia.org/wiki/Babel_fish"&gt;universal translator&lt;/a&gt;. 

&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;Realtek&lt;/span&gt;? Get real! I want SP1, without &lt;a href="http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=2905195&amp;amp;SiteID=17"&gt;troubles&lt;/a&gt;. Get to it already! 

P.S. &lt;a href="http://zybermark.blogspot.com/2008/02/i-love-vista-its-true-i-do-after-having.html"&gt;I still love Vista!&lt;/a&gt; 

Related posts: 
 &lt;ul&gt;   &lt;li&gt;&lt;a href="http://zybermark.blogspot.com/2008/03/vista-sp1-upgrade-with-realtek-high.html"&gt;Vista SP1 upgrade with Realtek High Definition sound driver v6.0.1.5502 successful!&lt;/a&gt;&lt;/li&gt;    &lt;li&gt;&lt;a href="http://zybermark.blogspot.com/2008/06/realtek-hd-audio-upgrading-from-6015502.html"&gt;Realtek HD Audio - upgrading from 6.0.1.5502 to 6.0.1.5548&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6707555-4332150946175770205?l=zybermark.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=M5IqOAVQ"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=M5IqOAVQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=MBx4dIFE"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=Vw55b8AG"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=Vw55b8AG" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=izwYV5Z9"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=izwYV5Z9" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=XhNbwdDr"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=vOn7bkR7"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=129" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DrH4x0rsVoid/~4/a-GPXhioy38" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DrH4x0rsVoid/~3/a-GPXhioy38/realtek-sound-chipset-no-vista-sp1.html</link><author>noreply@blogger.com (Zybermark)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_tdkFmApt1q4/R-MrlzuUX6I/AAAAAAAAAA4/JrVGn6HGiMw/s72-c/Realtek_R189.png" height="72" width="72" /><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://zybermark.blogspot.com/2008/03/realtek-sound-chipset-no-vista-sp1.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6707555.post-5065593964513798473</guid><pubDate>Wed, 19 Mar 2008 04:27:00 +0000</pubDate><atom:updated>2008-03-30T00:11:13.890-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">.net</category><category domain="http://www.blogger.com/atom/ns#">windows</category><category domain="http://www.blogger.com/atom/ns#">Code</category><title>Environment.TickCount: Int32 (aka SIGNED integer)</title><description>Did you know that &lt;a href="http://msdn2.microsoft.com/en-us/library/system.environment.tickcount.aspx"&gt;Environtment.TickCount&lt;/a&gt; returns a signed 32 bit integer? Did you know the sign on this property flips every 24.9 days? From the MSDN documentation: &lt;span style="font-style: italic;"&gt;The value of this property is derived from the system timer and is stored as a 32-bit signed integer. Consequently, if the system runs continuously, &lt;/span&gt;&lt;span style="font-style: italic;" class="selflink"&gt;TickCount&lt;/span&gt;&lt;span style="font-style: italic;"&gt; will increment from zero to &lt;a href="http://msdn2.microsoft.com/en-us/library/system.int32.maxvalue.aspx"&gt;Int32.MaxValue&lt;/a&gt; for approximately 24.9 days, then jump to &lt;a href="http://msdn2.microsoft.com/en-us/library/system.int32.minvalue.aspx"&gt;Int32.MinValue&lt;/a&gt;, which is a negative number, then increment back to zero during the next 24.9 days.&lt;span style="font-style: italic;"&gt;
&lt;/span&gt;&lt;/span&gt;
Ouch! Good thing windows updates get pushed once a month (and generally kindly coerce you to reboot); you might not notice the couple of days at the end when you're pulling negative numbers.

But alas, today the negative tickcount decided to hit me. I was running unittests and noticed I was sending out negative request numbers?!? &lt;a href="http://thedailywtf.com/Default.aspx"&gt;WTF&lt;/a&gt;! ROTFL! :) A little investigation turned up the culprit; trusty old TickCount wasn't that trusty after all. (That will teach me for &lt;a href="http://www.codinghorror.com/blog/archives/000294.html"&gt;stopping the windows update service to stop the reboot nagging&lt;/a&gt;, right?)

&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="font-style: italic;"&gt;What happened to the days when you could boast about your system uptime? My linux box easily ran into hundreds of days (the resets were caused by power outtages)! &lt;/span&gt;&lt;span&gt;What happened to my linux box?!?&lt;/span&gt;&lt;span style="font-style: italic;"&gt;
&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-style: italic;"&gt;
&lt;/span&gt;&lt;span style="font-size:100%;"&gt;What is a developer to do?&lt;/span&gt;&lt;span style="font-style: italic;"&gt;
&lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;&lt;span style="font-size:100%;"&gt;Eureka!&lt;/span&gt; &lt;/span&gt;You can cast it to a Uint32!
Twice the positive size, twice the fun, right?
&lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="color: rgb(43, 145, 175);font-family:Consolas;font-size:85%;"  &gt;UInt32&lt;/span&gt;&lt;span style=";font-family:Consolas;font-size:10;"  &gt;&lt;span style="font-size:85%;"&gt; tickCount = (&lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);font-size:85%;" &gt;UInt32&lt;/span&gt;&lt;span style="font-size:85%;"&gt;)&lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);font-size:85%;" &gt;Environment&lt;/span&gt;&lt;span style="font-size:85%;"&gt;.TickCount;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

Nah, you'll still wrap around after 59.8 days, which means you cannot use it to &lt;a href="http://aspnet.4guysfromrolla.com/articles/020402-1.aspx"&gt;calculate the system uptime&lt;/a&gt; or measure time intervals...

Here's how to calculate system uptime:
    &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="color: rgb(43, 145, 175);font-family:Consolas;font-size:85%;"  &gt;PerformanceCounter&lt;/span&gt;&lt;span style=";font-family:Consolas;font-size:85%;"  &gt; uptimeCounter = &lt;span style="color:blue;"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;PerformanceCounter&lt;/span&gt;(&lt;span style="color: rgb(163, 21, 21);"&gt;"System"&lt;/span&gt;, &lt;span style="color: rgb(163, 21, 21);"&gt;"System Up Time"&lt;/span&gt;, &lt;span style="color:blue;"&gt;true&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;
uptimeCounter.NextValue();&lt;span style="color:green;"&gt;// init counter&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;
&lt;/span&gt;&lt;span style=";font-family:Consolas;font-size:85%;color:blue;"   &gt;float&lt;/span&gt;&lt;span style=";font-family:Consolas;font-size:85%;"  &gt; uptime = uptimeCounter.NextValue(); &lt;span style="color:green;"&gt;// get uptime in secs&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;
&lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);font-family:Consolas;font-size:85%;"  &gt;TimeSpan&lt;/span&gt;&lt;span style=";font-family:Consolas;font-size:85%;"  &gt; uptimespan = &lt;span style="color: rgb(43, 145, 175);"&gt;TimeSpan&lt;/span&gt;.FromSeconds(uptime);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;
&lt;/span&gt;&lt;span style="color: rgb(43, 145, 175);font-family:Consolas;font-size:85%;"  &gt;Trace&lt;/span&gt;&lt;span style=";font-family:Consolas;font-size:10;"  &gt;&lt;span style="font-size:85%;"&gt;.WriteLine(&lt;/span&gt;&lt;span style="color: rgb(163, 21, 21);font-size:85%;" &gt;"Uptime: "&lt;/span&gt;&lt;span style="font-size:85%;"&gt; + uptimespan.ToString());&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

And this is how you measure a time interval:
       &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="color: rgb(43, 145, 175);font-family:Consolas;font-size:10;"  &gt;Stopwatch&lt;/span&gt;&lt;span style=";font-family:Consolas;font-size:10;"  &gt; sw = &lt;span style="color:blue;"&gt;new&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;Stopwatch&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;
sw.Start();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;
&lt;span style=";font-family:Consolas;font-size:10;color:green;"   &gt;// do lengthy stuff&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;
&lt;span style=";font-family:Consolas;font-size:10;"  &gt;sw.Stop();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;
&lt;span style="color: rgb(43, 145, 175);font-family:Consolas;font-size:10;"  &gt;Trace&lt;/span&gt;&lt;span style=";font-family:Consolas;font-size:10;"  &gt;.WriteLine(&lt;span style="color: rgb(163, 21, 21);"&gt;"Elapsed: "&lt;/span&gt; + sw.Elapsed.ToString());&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;
Enjoy!
- Doc.


&lt;span style="font-style: italic;"&gt; How do YOU determine your system uptime programmatically?&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6707555-5065593964513798473?l=zybermark.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=lY4CI70B"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=lY4CI70B" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=kIeaLtK1"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=H26pbkS1"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=H26pbkS1" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=mXVmuHRk"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=mXVmuHRk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=KyeVcVXC"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=1u8OhG6y"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=129" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DrH4x0rsVoid/~4/HCZg1_ENHhU" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DrH4x0rsVoid/~3/HCZg1_ENHhU/environmenttickcount-int32-aka-signed.html</link><author>noreply@blogger.com (Zybermark)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://zybermark.blogspot.com/2008/03/environmenttickcount-int32-aka-signed.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6707555.post-1302316513802353010</guid><pubDate>Thu, 13 Mar 2008 21:58:00 +0000</pubDate><atom:updated>2008-06-07T17:09:07.567-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">.net</category><category domain="http://www.blogger.com/atom/ns#">Certificates</category><category domain="http://www.blogger.com/atom/ns#">Code</category><category domain="http://www.blogger.com/atom/ns#">WebService</category><title>ClientCertificates and WebException: The request was aborted: Could not create SSL/TLS secure channel.</title><description>If you are using X509 ClientCertificates with a webservice client called from IIS and the service endpoint uses the HTTPS protocol (SSL) the following exception can occur: WebException: The request was aborted: Could not create SSL/TLS secure channel.
&lt;blockquote&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt;System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.&lt;/span&gt;
&lt;span style="font-family:courier new;"&gt;  &lt;/span&gt;&lt;span style=";font-family:courier new;font-size:78%;"  &gt;at System.Web.Services.Protocols.
WebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.
HttpWebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.
SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)&lt;/span&gt;
&lt;/blockquote&gt;The curious part is that everything works great while running unittests on the service directly; it's IIS that throws a wrench in it.

To add some more grief to the equation this particular scenario played out in a test environment with self-signed certificates. So my initial investigation concentrated on making sure the root certificate was in the right place (LocalMachine\My and Root). All seemed well, but the exception persisted.

I resorted to &lt;a href="http://support.microsoft.com/kb/823177"&gt;disabling certificate verification&lt;/a&gt;, still the exception persisted.

Finally Microsoft KB article &lt;a href="http://support.microsoft.com/?id=901183"&gt;901183 'How to call a Web service by using a client certificate for authentication in an ASP.NET Web application'&lt;/a&gt; put me on the right track:&lt;blockquote&gt;
&lt;span style="font-weight: bold;"&gt;Step 2: Configure access to the client certificate&lt;/span&gt;
In this step, you must grant permission for the ASP.NET account to access the client certificate that is stored in the local machine store. The Network Service account is the default account for running Web applications on Windows Server 2003. Therefore, you must grant access to the certificate for the Network Service account. If you have configured a custom account to run ASP.NET, you must grant access for the custom account.

Note In Microsoft Internet Information Server (IIS) 5.0, ASP.NET runs under the ASPNET account and not under the Network Service account. Therefore, you must to grant permissions for the ASPNET account on a computer that is running IIS 5.0.

&lt;span style="font-weight: bold;"&gt;To grant access for a specific user account, run the following command at a command prompt:&lt;/span&gt;
&lt;span style="font-weight: bold;font-family:courier new;" &gt;WinHttpCertCfg.exe -g -c LOCAL_MACHINE\MY -s "IssuedToName" -a "AccountName"&lt;/span&gt;&lt;/blockquote&gt;And voila! My service client happily zoomed along again.

Why did it work while unittesting and not in IIS? The certificate was installed under the developer account, which grants the necessary permissions to the private key for that account immediately, but the NetworkService account was lacking them which caused &lt;a href="http://blogs.msdn.com/engelsr/articles/497902.aspx"&gt;the underlying connection to be closed...&lt;/a&gt;
Microsoft has included the tool &lt;a href="http://msdn2.microsoft.com/en-us/library/aa717039.aspx"&gt;FindPrivateKey&lt;/a&gt; in the &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=2611A6FF-FD2D-4F5B-A672-C002F1C09CCD&amp;amp;displaylang=en"&gt;Windows Communication Foundation (WCF), Windows Workflow Foundation (WF) and Windows CardSpace Samples&lt;/a&gt; which can help you locate the private key file and check (and change) its permissions.

I hope it helps some of you out there struggling with the same issue!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6707555-1302316513802353010?l=zybermark.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=rFSIDHOl"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=rFSIDHOl" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=4utjh0Jm"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=sU5YJnLZ"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=sU5YJnLZ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=2v1HltQ7"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=2v1HltQ7" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=4qeTSzXw"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=RNwV8Z9W"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=129" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DrH4x0rsVoid/~4/mph1Njavjmk" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DrH4x0rsVoid/~3/mph1Njavjmk/clientcertificates-and-webexception.html</link><author>noreply@blogger.com (Zybermark)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><feedburner:origLink>http://zybermark.blogspot.com/2008/03/clientcertificates-and-webexception.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6707555.post-8148943365812765761</guid><pubDate>Thu, 06 Mar 2008 03:17:00 +0000</pubDate><atom:updated>2008-03-05T21:33:35.838-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">personal</category><category domain="http://www.blogger.com/atom/ns#">parenting</category><title>What's in a white lie?</title><description>Being a parent isn't easy. NY Magazine has a great story "&lt;a href="http://nymag.com/news/features/43893/"&gt;Are kids copying their parents when they lie?&lt;/a&gt;" on their site.
Assuming my kids are as smart as me... I'm in for a heck of a lot of trouble:
&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;“It’s a developmental milestone,” Talwar has concluded.&lt;/p&gt;&lt;!--end paragraph--&gt;  &lt;p&gt;&lt;!--begin paragraph--&gt; &lt;/p&gt;&lt;p&gt;This puts parents in the position of being either damned or blessed,  depending on how they choose to look at it. If your 4-year-old is a good liar,  it’s a strong sign she’s got brains. And it’s the smart, savvy kid who’s most at  risk of becoming a habitual liar.&lt;/p&gt;&lt;/blockquote&gt;But there is also hope; being a loving parent and sticking to your rules &lt;span style="font-style: italic;"&gt;does&lt;/span&gt; pay off!
&lt;blockquote&gt;&lt;p&gt;Pushing a teen into rebellion by having too many rules was a sort of  statistical myth. “That actually doesn’t happen,” remarks Darling. She found  that most rules-heavy parents don’t actually enforce them. “It’s too much work,”  says Darling. “It’s a lot harder to enforce three rules than to set twenty  rules.” &lt;/p&gt;&lt;!--end paragraph--&gt;  &lt;p&gt;&lt;!--begin paragraph--&gt; &lt;/p&gt;&lt;p&gt;A few parents managed to live up to the stereotype of the oppressive parent,  with lots of psychological intrusion, but those teens weren’t rebelling. They  were obedient. And depressed.&lt;/p&gt;&lt;!--end paragraph--&gt;  &lt;p&gt;&lt;!--begin paragraph--&gt; &lt;/p&gt;&lt;p&gt;“Ironically, the type of parents who are actually most consistent in  enforcing rules are the same parents who are most warm and have the most  conversations with their kids,” Darling observes. They’ve set a few rules over  certain key spheres of influence, and they’ve explained why the rules are there.  They expect the child to obey them. Over life’s other spheres, they supported  the child’s autonomy, allowing them freedom to make their own decisions. &lt;/p&gt;&lt;!--end paragraph--&gt;  &lt;p&gt;&lt;!--begin paragraph--&gt; &lt;/p&gt;&lt;p&gt;The kids of these parents lied the least. Rather than hiding twelve areas  from their parents, they might be hiding as few as five. &lt;/p&gt;&lt;!--end paragraph--&gt;&lt;/blockquote&gt;And arguments are supposed to be a good thing and strengthens relationships...
Uhm, who turned the world upside-down?!? But the truth of the matter is:
&lt;blockquote&gt;The  irony of lying is that it’s both normal and abnormal behavior at the same time.  It’s to be expected, and yet it can’t be disregarded.&lt;/blockquote&gt;
Very good read! &lt;a href="http://nymag.com/news/features/43893/"&gt;Must read&lt;/a&gt; for parents. And kids, stay out of it, unless you plan on stopping the lying. :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6707555-8148943365812765761?l=zybermark.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=Y6Kwl2jO"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=Y6Kwl2jO" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=UsehOoeY"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=JXGakj1J"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=JXGakj1J" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=N7XkyAG9"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=N7XkyAG9" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=XYia4hvL"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=E53SBkXB"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=129" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DrH4x0rsVoid/~4/g2AQBZW5Gac" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DrH4x0rsVoid/~3/g2AQBZW5Gac/whats-in-white-lie.html</link><author>noreply@blogger.com (Zybermark)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://zybermark.blogspot.com/2008/03/whats-in-white-lie.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-6707555.post-2533526012521008044</guid><pubDate>Thu, 28 Feb 2008 23:01:00 +0000</pubDate><atom:updated>2008-03-05T20:47:40.253-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">personal</category><title>1 percent of U.S. adults behind bars?</title><description>&lt;img src="http://www.legendsofamerica.com/photos-montana/OldMontanaPrison.jpg" align="right" width="200"/&gt;Now &lt;a href="http://www.cnn.com/2008/CRIME/02/28/prison.population.ap/index.html"&gt;&lt;span style="font-weight: bold;"&gt;that&lt;/span&gt;&lt;/a&gt; is a statistic to be proud of! (NOT!)

I wonder how long it will take before the &lt;a href="http://www.legendsofamerica.com/MT-PrisonMuseum.html"&gt;Old Montana Prison&lt;/a&gt; gets upgraded and reopened again...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6707555-2533526012521008044?l=zybermark.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=atyhIWlS"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=atyhIWlS" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=j4QpqtbU"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=3yZ4igDS"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=3yZ4igDS" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=bjMPjxGc"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?i=bjMPjxGc" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=xGjKN74A"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/DrH4x0rsVoid?a=kqTYn5G4"&gt;&lt;img src="http://feeds.feedburner.com/~f/DrH4x0rsVoid?d=129" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/DrH4x0rsVoid/~4/FUKs9PN_02M" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/DrH4x0rsVoid/~3/FUKs9PN_02M/1-percent-of-us-adults-behind-bars.html</link><author>noreply@blogger.com (Zybermark)</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://zybermark.blogspot.com/2008/02/1-percent-of-us-adults-behind-bars.html</feedburner:origLink></item></channel></rss>
