<?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:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-23716553</atom:id><lastBuildDate>Tue, 13 Oct 2009 21:47:00 +0000</lastBuildDate><title>technorabble</title><description>logic of all sorts</description><link>http://tech.norabble.com/</link><managingEditor>noreply@blogger.com (Ryan Baker)</managingEditor><generator>Blogger</generator><openSearch:totalResults>225</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><creativeCommons:license>http://creativecommons.org/licenses/by/2.5/</creativeCommons:license><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/Technorabble" type="application/rss+xml" /><feedburner:emailServiceId>Technorabble</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://www.plusmo.com/add?url=http%3A%2F%2Ffeeds.feedburner.com%2FTechnorabble" src="http://plusmo.com/res/graphics/fbplusmo.gif">Subscribe with Plusmo</feedburner:feedFlare><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Ffeeds.feedburner.com%2FTechnorabble" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:feedFlare href="http://download.attensa.com/app/get_attensa.html?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2FTechnorabble" src="http://www.attensa.com/blogs/attensa/WindowsLiveWriter/BadgeredintoBadges_10C02/attensa_feed_button5.gif">Subscribe with Attensa for Outlook</feedburner:feedFlare><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-23716553.post-4181645994476949647</guid><pubDate>Sun, 19 Jul 2009 16:12:00 +0000</pubDate><atom:updated>2009-07-19T11:12:07.033-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">methodology</category><category domain="http://www.blogger.com/atom/ns#">general programming</category><title>Software Engineering, Control, Measurement and Trust</title><description>&lt;p&gt;There is much clamor &lt;a href="http://www2.computer.org/cms/Computer.org/ComputingNow/homepage/2009/0709/rW_SO_Viewpoints.pdf" target="_blank"&gt;over this article, “Software Engineering, an idea whose time has come and gone?”, by Tom Demarco&lt;/a&gt;.&amp;#160; I love it.&amp;#160; At work, I know a manager who has the tag line “You can’t control what you can’t measure” posted on his office door.&amp;#160; It’s always given me the &lt;a href="http://en.wikipedia.org/wiki/Heebie-jeebies_%28idiom%29" target="_blank"&gt;heebie-jeebies&lt;/a&gt;.&amp;#160; Tom hits one of the main points right on the head, that it implies “that control is an important aspect, maybe the most important, of any software project”,&amp;#160; But as Tom admits, “it isn’t.”&lt;/p&gt;  &lt;p&gt;The other half is the how it plays together with the &lt;a href="http://tech.norabble.com/2006/08/rule.html"&gt;the &amp;quot;What isn't easily measurable, doesn't exist&amp;quot; rule&lt;/a&gt;.&amp;#160; Tom sees this too, and describes it like this:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;em&gt;“Now&amp;#160; apply&amp;#160; “You&amp;#160; can’t&amp;#160; control&amp;#160; what you can’t measure”&amp;#160; to&amp;#160; the&amp;#160; teenager. Most things&amp;#160; that&amp;#160; really matter—honor, dignity, discipline,&amp;#160; personality,&amp;#160; grace&amp;#160; under&amp;#160; pressure,&amp;#160; values,&amp;#160; ethics,&amp;#160; resourcefulness,&amp;#160; loyalty, humor, kindness—aren’t measurable. You must steer your child as best you can without much metric&amp;#160; feedback.”&lt;/em&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;I don’t fully agree with his prescription, to require the product team to be ready to ship in any given week of development.&amp;#160; Like the original guidance, there is a kernel of truth here, but an overreaching of application.&amp;#160; There are many good reasons to pursue a “ready to ship” strategy, but you need to be flexible.&amp;#160; You need to accept that there are some tasks that will break that goal.&amp;#160; You cannot replace important subsystems without causing at least a bump, and sometimes you need to do that.&amp;#160; &lt;/p&gt;  &lt;p&gt;If you have the goal in place, but are flexible, then you can create a branch, do most of the work there, and once it reaches a certain level of maturity (no longer experimental), integrate.&amp;#160; Integration will cause some pain, on both sides, and you have to balance between disruption to the mainline team, and your ready to ship goal, and the probability that if you insist on zero mainline pain that the branch may never merge.&lt;/p&gt;  &lt;p&gt;But anyhow, though it sounds like a prescription, Tom says it’s an example, and as an example it’s perfectly valid.&lt;/p&gt;  &lt;p&gt;Like raising a teenager, when you have important things, that aren’t easy to measure, &lt;a href="http://tech.norabble.com/2006/09/agile-is-path-to-trust-among-other.html" target="_blank"&gt;what you need is trust&lt;/a&gt;.&amp;#160; You need to be able to trust that your team understands your motivations, your goals.&amp;#160; They need to be able to trust that you will treat them fairly if they help achieve those goals.&amp;#160; A ready to ship strategy is just an example of “don’t do anything too crazy”.&amp;#160; It can help build trust because management can visibly see progress, and because hopefully when management sees that they say “thank you”.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23716553-4181645994476949647?l=tech.norabble.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=nvW6BzrwCRw:rWzlUQkSs5w:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?i=nvW6BzrwCRw:rWzlUQkSs5w:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=nvW6BzrwCRw:rWzlUQkSs5w:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=nvW6BzrwCRw:rWzlUQkSs5w:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=nvW6BzrwCRw:rWzlUQkSs5w:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=nvW6BzrwCRw:rWzlUQkSs5w:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=nvW6BzrwCRw:rWzlUQkSs5w:JEwB19i1-c4"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?i=nvW6BzrwCRw:rWzlUQkSs5w:JEwB19i1-c4" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=nvW6BzrwCRw:rWzlUQkSs5w:UT3xtbGYFzA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=UT3xtbGYFzA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=nvW6BzrwCRw:rWzlUQkSs5w:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Technorabble/~4/nvW6BzrwCRw" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Technorabble/~3/nvW6BzrwCRw/software-engineering-control.html</link><author>ryan.technorabble@gmail.com</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://tech.norabble.com/2009/07/software-engineering-control.html</feedburner:origLink><enclosure url="http://feedproxy.google.com/~r/Technorabble/~5/Cwkfd02PyMg/rW_SO_Viewpoints.pdf" length="209269" type="application/pdf" /><feedburner:origEnclosureLink>http://www2.computer.org/cms/Computer.org/ComputingNow/homepage/2009/0709/rW_SO_Viewpoints.pdf</feedburner:origEnclosureLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23716553.post-1294922900244752838</guid><pubDate>Mon, 04 May 2009 02:22:00 +0000</pubDate><atom:updated>2009-05-03T21:22:26.471-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">general software</category><category domain="http://www.blogger.com/atom/ns#">ideas</category><category domain="http://www.blogger.com/atom/ns#">general programming</category><title>S+S Synchronization</title><description>&lt;p&gt;Software and Services (S+S) solutions have a number of attractions, but one common attraction is the ability to work offline.&amp;#160; Some S+S solutions have clients that require persistent internet connections, or are read-only in offline mode.&amp;#160; However, most developers that choose S+S as their architectural blueprint do so, at least in part, with a desire to provide users strong offline capabilities.&lt;/p&gt;  &lt;p&gt;The difficulty with offline editing is the possibility of conflicts and the need to provide conflict resolution.&amp;#160; Some applications ignore this difficulty because they are single user, and are willing to leave that user responsible for any data loss that results from accessing services directly, or from multiple clients without synchronizing work done offline on others.&amp;#160; Other applications are entirely read-only, eliminating the difficulty in a different way.&lt;/p&gt;  &lt;p&gt;Many applications don’t fit inside those constraints, and when they do inevitably synchronization is brought out as a topic.&amp;#160; Discussions of synchronization often start out with a bit of wishful thinking.&amp;#160; That is, someone, or many participants believe there is a synchronization black box they can throw data at and all will be automatically resolved.&amp;#160; To my knowledge, that doesn’t exist.&amp;#160; In fact, I’ll go as far as to say, that I believe it cannot exist.&amp;#160; Unless you design your data to fit a strict structure that communicates your business rules, and those rules never require escalation to human judgment, such a system cannot correctly resolve all conflicts.&lt;/p&gt;  &lt;p&gt;I’ve come to the conclusion that synchronization cannot be a black box.&amp;#160; Synchronization requires more than read/write to be exposed to the developer.&amp;#160; For S+S solutions, the synchronization architectures I prefer are those that expose more data to the client.&amp;#160; There are a number of ways to implement that, but I’ll explain one of the simplest.&lt;/p&gt;  &lt;p&gt;First, begin with a centralized master, your service, that is the authoritative source for data.&amp;#160; This service needs to support two things for every synchronizable item.&amp;#160; First, it needs an identifier that is guaranteed to be unique and unchanging over the lifetime of the item.&amp;#160; Second it needs a versioning identifier.&amp;#160; It could be a sequentially incremented number or timestamp, but I prefer another unique id.&lt;/p&gt;  &lt;p&gt;Next, in your service, implement (or re-use) a read-only caching system.&amp;#160; If this sounds pretty vanilla so far, that’s because it is.&amp;#160; These first two steps can be achieved through the use of HTTP, URI’s and ETags.&lt;/p&gt;  &lt;p&gt;Where many implementations go wrong is the next step, where they attempt to convert their cache into a read-write store.&amp;#160; The most obvious problem with that choice is it breaks everything you’ve built so far, since a cache is one way.&amp;#160; The other problem is you’ve implemented a store that has two sources of data, and have no mechanism to rationalize which one wins.&amp;#160; You could create a mechanism, but there isn’t any perfect mechanism.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_uLvWIGYd4xc/Sf5RYJRSJpI/AAAAAAAAAOw/AYBl7nAN_do/s1600-h/image%5B10%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_uLvWIGYd4xc/Sf5RYbeyOTI/AAAAAAAAAO0/A-bUJqbvRAU/image_thumb%5B8%5D.png?imgmax=800" width="468" height="293" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Instead of forcing the cache to transform into something more complex, leave it alone and create a separate store for modifications.&amp;#160; The client is then responsible for attempting to keep that modified store as empty as possible by submitting the modifications to your services.&amp;#160; Every submission is tagged with the versioning identifier of the item that was present in the cache when modification began.&amp;#160; If this sounds like the HTTP “If-Match”, then you have the idea.&amp;#160; Services should not accept modifications that are unaware of the content of the latest version they have accepted.&lt;/p&gt;  &lt;p&gt;Now, if a submission is rejected, you’ve detected a conflict.&amp;#160; Your options are many at this point.&amp;#160; No option is perfect, and the choice is going to depend on many things, not the least of which are your user’s requirements.&amp;#160; But no option has been eliminated yet.&amp;#160; Without any additional implementation you have a first-in-wins strategy, which happens to be the safest bet without more complex insight into the data’s structure, or user intervention.&lt;/p&gt;  &lt;p&gt;If you want a last-in-wins strategy, re-cache, update the versioning identifier and resubmit.&amp;#160; Since this would potentially destroy a previous set of updates, it would be bad practice to do so without some kind of user prompt or notification.. but you and you’re users are in control, not the API.&lt;/p&gt;  &lt;p&gt;If merging is necessary, the essential complexity of the merge itself remains, but not much else.&amp;#160; You have a copy of the original version, you can retrieve a copy of the current version, and you have a copy of the modifications.&amp;#160; Two-way merge, Three-way merge, automated merge, manual merge.. whatever is necessary is possible and not any more difficult than absolutely necessary.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23716553-1294922900244752838?l=tech.norabble.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=Ph2LWe8LhgI:woQ2n77kWXI:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?i=Ph2LWe8LhgI:woQ2n77kWXI:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=Ph2LWe8LhgI:woQ2n77kWXI:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=Ph2LWe8LhgI:woQ2n77kWXI:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=Ph2LWe8LhgI:woQ2n77kWXI:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=Ph2LWe8LhgI:woQ2n77kWXI:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=Ph2LWe8LhgI:woQ2n77kWXI:JEwB19i1-c4"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?i=Ph2LWe8LhgI:woQ2n77kWXI:JEwB19i1-c4" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=Ph2LWe8LhgI:woQ2n77kWXI:UT3xtbGYFzA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=UT3xtbGYFzA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=Ph2LWe8LhgI:woQ2n77kWXI:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Technorabble/~4/Ph2LWe8LhgI" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Technorabble/~3/Ph2LWe8LhgI/ss-synchronization.html</link><author>ryan.technorabble@gmail.com</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://tech.norabble.com/2009/05/ss-synchronization.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23716553.post-7093137939862817850</guid><pubDate>Thu, 23 Apr 2009 03:39:00 +0000</pubDate><atom:updated>2009-04-22T22:39:16.312-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">general software</category><category domain="http://www.blogger.com/atom/ns#">methodology</category><category domain="http://www.blogger.com/atom/ns#">general programming</category><title>How to load test: Step 1 – Create a realistic load</title><description>&lt;p&gt;Load testing isn’t the easiest job invented.&amp;#160; Depending on your business model, load testing can vary from important to absolutely critical.&amp;#160; So despite the pains, every project at least makes a token gesture toward load testing.&amp;#160; Unfortunately, either knowingly, or unknowingly, it’s often not much more than that, a token gesture.&lt;/p&gt;  &lt;p&gt;The primary failure in the average load test is not creating a realistic load.&amp;#160; There are plenty of excuses for this.&amp;#160; There aren’t any servers comparable to the production servers.&amp;#160; It’s too hard to produce test data that simulates true data.&amp;#160; Or worse, you don’t even know what production load will look like.&amp;#160; Those aren’t minor obstacles, calling them excuses isn’t meant to trivialize them, it’s more a reflection of the true importance of load testing, and knowing that when you do it, you do it right.&lt;/p&gt;  &lt;p&gt;The less and less realistic the load you generate, the more your test becomes performance analysis.&amp;#160; Performance analysis is great, but load testing and performance analysis are different animals.&amp;#160; You are doing yourself a disservice if you use a fishing rod to catch a great white, or a harpoon for goldfish.&amp;#160; If half your team is trying to do performance analysis and half is trying to load test then you will waste time you wouldn’t with a clear mission.&lt;/p&gt;  &lt;p&gt;There are other things that distinguish performance analysis from load testing, but the number one is the type of load you generate.&amp;#160; A performance analysis load may sometimes resemble a true load, but it usually should not.&amp;#160; A performance analysis load should be structured to make it easy to pinpoint performance issues.&amp;#160; A true load makes this more difficult by being too complex or too chaotic.&amp;#160; So unless you’re tuning something that only performs badly in complex or chaotic scenarios simplify and isolate for performance analysis.&lt;/p&gt;  &lt;p&gt;Load testing, by definition, needs a true load, or as close to it as you can approximate.&amp;#160; Load testing is a validation.&amp;#160; Load testing is developing reasons to be confident that under expected conditions, your system won’t fall over.&amp;#160; Load testing is about giving assurances that it’s not a bad idea to depend upon the reliability of your system.&lt;/p&gt;  &lt;p&gt;So all that said, how do you create a realistic load?&amp;#160; If your software is like most, there is one, or probably many points where in the real world, a user takes some action.&amp;#160; Since in the real world you have lots of users, you’d ideally want to automate all of those steps.&amp;#160; Sometimes that’s not that difficult, and if it’s not, that’s the path to take.&amp;#160; There are tools that can simulate clicking “submit” on a web form.&amp;#160; Many of those same tools can simulate filling it with some data, or even using an AJAX control.&amp;#160; But all of this has limits.&amp;#160; If you’re within those limits, take the easy path.&amp;#160; If you’re not, you’re either going to have to take the next step, or settle for a sub-par load test.&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;Moving work from the server to the client is sometimes an effective strategy to improve scalability, among other possible benefits, but it’s definitely going to complicate your ability to automate your steps with cookie cutter solutions.&amp;#160; There are two paths you can take in that situation.&amp;#160; One choice is to start from scratch and use your knowledge of your software to generate data from a template, substituting in values coming from preceding steps, and maybe some randomness.&amp;#160; The second is to reuse code from your application and wire those pieces together.&lt;/p&gt;  &lt;p&gt;Which choice you make is going to depend on your code.&amp;#160; Using your application code has many things going for it, but you have to surmount several common challenges.&amp;#160; First, if you have thousands of users (or millions), you’ll need your application code to simulate more than one.&amp;#160; No matter how minimal your application, it’s very unlikely you can run hundreds or thousands of copies of it on a single box at a time.&amp;#160; &lt;/p&gt;  &lt;p&gt;Depending on how well you meet the first challenge, you may also need to make sure your application code can run in parallel on the same hardware.&amp;#160; Usually this means multiple processes.&amp;#160; Why wouldn’t you need multiple processes?&amp;#160; If you can make one instance of your application code simulate a large number of users, and thus consume the overall load generating capacity of the hardware, then the second challenge can be skipped.&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;Either way, with a large number of users, you may find that a single machine isn’t going to have the ability to generate sufficient load.&amp;#160; If one, two or three machines are necessary you may feel happy with manually starting instances.&amp;#160; At the least do yourself the favor of using a tool like &lt;a href="http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx" target="_blank"&gt;PsExec&lt;/a&gt; to let you do that from a batch file or something.&lt;/p&gt;  &lt;h2&gt;Summary&lt;/h2&gt;  &lt;p&gt;Whatever path you’ve taken, you are now generating a load.&amp;#160; The challenges aren’t over though.&amp;#160; Now need to validate you’ve met your load and that it hasn’t caused anything to topple over.&amp;#160; That means monitoring and analyzing stats and logs.&amp;#160;&amp;#160; And if you do find a problem, you’ll need to switch hats back into performance analysis to hone in on the exact cause and find a solution.&amp;#160; Since those aren’t topics to be taken lightly, I’m reserve them for a future date.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23716553-7093137939862817850?l=tech.norabble.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=gYdVHHFMsPA:18s-yysDFCI:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?i=gYdVHHFMsPA:18s-yysDFCI:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=gYdVHHFMsPA:18s-yysDFCI:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=gYdVHHFMsPA:18s-yysDFCI:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=gYdVHHFMsPA:18s-yysDFCI:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=gYdVHHFMsPA:18s-yysDFCI:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=gYdVHHFMsPA:18s-yysDFCI:JEwB19i1-c4"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?i=gYdVHHFMsPA:18s-yysDFCI:JEwB19i1-c4" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=gYdVHHFMsPA:18s-yysDFCI:UT3xtbGYFzA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=UT3xtbGYFzA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=gYdVHHFMsPA:18s-yysDFCI:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Technorabble/~4/gYdVHHFMsPA" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Technorabble/~3/gYdVHHFMsPA/how-to-load-test-step-1-create.html</link><author>ryan.technorabble@gmail.com</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://tech.norabble.com/2009/04/how-to-load-test-step-1-create.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23716553.post-4461701695278514877</guid><pubDate>Sat, 04 Apr 2009 19:33:00 +0000</pubDate><atom:updated>2009-04-04T14:33:02.343-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">legal</category><category domain="http://www.blogger.com/atom/ns#">cars</category><category domain="http://www.blogger.com/atom/ns#">environment</category><title>How higher gas taxes benefit you</title><description>&lt;p&gt;The United States ought to raise the gas tax, and we ought to do it soon.&amp;#160; There are so many good reasons its going to be hard to explain them all.&amp;#160; To start with, we have 1 or 2 years until, crude oil prices start to climb again.&amp;#160; We ought to be prepared for that when it happens and the best way to do that now is to pretend as if those prices are here today, when we can collect the money and send it to the Federal Treasury, rather than pay the price later to a Saudi sheik.&amp;#160; &lt;/p&gt;  &lt;p&gt;The second reason is both current and future prices.&amp;#160; The more effectively we control demand, by making choices that won’t cost us in the future, the better we protect ourselves from high prices in the future too.&amp;#160; In other words, we can delay the rebound in crude oil prices by an extra year or two, maybe even more, by dampening demand through a tax.&amp;#160; Every Prius substituted for a SUV today lowers the pre-tax price of gasoline by some fraction in 2010, 2011, 2012, etc.&amp;#160; It’s also non-linear.&amp;#160; If demand stays below today’s production, prices will stay at today’s prices, or lower.&amp;#160; If demand exceeds production, then all hell breaks lose again.&lt;/p&gt;  &lt;p&gt;Those two reasons are symbiotic.&amp;#160; I’ll illustrate with some hypotheticals.&amp;#160; In the status quo scenario, no additional tax, gas might stay around $2.00/gallon for the next 2 years.&amp;#160; But in the meantime, the economy may (hopefully) recover, and about a year from now with a good economy and low gas prices, I wouldn’t be surprised to see SUVs flying off the shelves all over again.&amp;#160; Keep that up for a year, and demand could grow back from 19.5 mbd to 22mbd.&amp;#160; If that happens, then certainly crude will skyrocket again, and we’ll see $4.00+ gas in later 2011.&lt;/p&gt;  &lt;p&gt;On the other hand, if an additional 50-75 cent gas tax was added, I think we would hear a different message, and demand might even decline a little further, say 18.5 mbd.&amp;#160; Here is an example of what the implications might be in terms of the amount of dollars sent tot he middle east, and the taxes collected.&amp;#160; In the short term there would be some consumer costs, but many of these costs might be offset by tax reductions in other areas.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_uLvWIGYd4xc/Sde16ahA9YI/AAAAAAAAAOQ/2GlDaiAyxCM/s1600-h/image%5B4%5D.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_uLvWIGYd4xc/Sde17DrBAQI/AAAAAAAAAOU/LHS8Zr0AfII/image_thumb%5B2%5D.png?imgmax=800" width="951" height="485" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;In the long term, consumer costs actually end up lower because a) they were prepared to use less gas, and b) demand was lower resulting in lower gas prices.&lt;/p&gt;  &lt;p&gt;Most importantly, a 10% difference in demand can translate into a 50% difference in the amount of money sent to the middle east, of which we know a certain percent falls into the hands of terrorists.&amp;#160; With any luck, the people of Saudi Arabia, Iran, or at least those with the checkbooks, will see terrorism as the first “discretionary” spending item and strangle those funds much more than 50%.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23716553-4461701695278514877?l=tech.norabble.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=D0IgnZushig:fni7UESZ3bI:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?i=D0IgnZushig:fni7UESZ3bI:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=D0IgnZushig:fni7UESZ3bI:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=D0IgnZushig:fni7UESZ3bI:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=D0IgnZushig:fni7UESZ3bI:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=D0IgnZushig:fni7UESZ3bI:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=D0IgnZushig:fni7UESZ3bI:JEwB19i1-c4"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?i=D0IgnZushig:fni7UESZ3bI:JEwB19i1-c4" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=D0IgnZushig:fni7UESZ3bI:UT3xtbGYFzA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=UT3xtbGYFzA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=D0IgnZushig:fni7UESZ3bI:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Technorabble/~4/D0IgnZushig" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Technorabble/~3/D0IgnZushig/how-higher-gas-taxes-benefit-you.html</link><author>ryan.technorabble@gmail.com</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><feedburner:origLink>http://tech.norabble.com/2009/04/how-higher-gas-taxes-benefit-you.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23716553.post-592285104365434276</guid><pubDate>Sat, 04 Apr 2009 03:02:00 +0000</pubDate><atom:updated>2009-04-03T22:02:50.260-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">general software</category><category domain="http://www.blogger.com/atom/ns#">.NET</category><category domain="http://www.blogger.com/atom/ns#">deSleeper</category><category domain="http://www.blogger.com/atom/ns#">environment</category><category domain="http://www.blogger.com/atom/ns#">general programming</category><title>New Version of deSleeper, and manual.</title><description>&lt;p&gt;I’ve posted a new version of &lt;a href="http://desleeper.codeplex.com/"&gt;deSleeper&lt;/a&gt;, v2.0, to codeplex.&amp;#160; This version adds some functions to help network administrators setup a couple hundred machines to work with deSleeper with fairly minimal effort.&amp;#160; And to help the non-admin user (and probably the admin too…), I’ve finally put together a &lt;a title="deSleeper Manual" href="http://desleeper.codeplex.com/Wiki/View.aspx?title=deSleeper%20Manual" target="_blank"&gt;deSleeper manual&lt;/a&gt;.&amp;#160; You’ll always be able to find it on codeplex, but here’s a little RSS copy too.&lt;/p&gt;  &lt;p&gt;If you're setting up deSleeper in a network, you may want to read the &lt;a href="http://desleeper.codeplex.com/Wiki/View.aspx?title=deSleeper%20Architecture&amp;amp;referringTitle=Home"&gt;deSleeper Setup &amp;amp; Architecture Guide&lt;/a&gt; as well. This guide will cover the features of deSleeper from simplest to most complex.&lt;/p&gt;  &lt;h1&gt;Wake Up!&lt;/h1&gt;  &lt;p&gt;If you're using deSleeper, the first screen you'll see is the Wake Up Page. If you're not setting up servers this might be the only tab you ever use.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_uLvWIGYd4xc/SdbNu-uQXvI/AAAAAAAAAN4/pjBXB4KYz8g/s1600-h/WakeUpPage%5B4%5D.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="WakeUpPage" border="0" alt="WakeUpPage" src="http://lh6.ggpht.com/_uLvWIGYd4xc/SdbNwb921qI/AAAAAAAAAN8/QoWzNLmvRec/WakeUpPage_thumb%5B2%5D.png?imgmax=800" width="644" height="388" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;To start off you need to supply information about the computer you're trying to wake up (the &lt;b&gt;&amp;quot;target&amp;quot;&lt;/b&gt;), and how to get your request from your PC to the target.&lt;/p&gt;  &lt;p&gt;Initially you have no targets configured, so click on the &lt;b&gt;New Target&lt;/b&gt; button. You can type whatever you like in the Description field, it's for you alone. If you're using deSleeper, it's probably because you want to use the proxy functions. What's a proxy? It's a service that helps get a message from one place to another. If you setup the proxy, then I hope you know the host name, and if you didn't hopefully your friendly network guy can fill in the blanks. Either way, type the name into the proxy field.&lt;/p&gt;  &lt;p&gt;You've got two choices for how to identify your target, MAC Address, and host name. If you've never heard of a MAC Address, don't fret, you only need one, and host will do fine. For more advanced users, MAC Address is a little more surefire (though a lot harder to memorize!).&lt;/p&gt;  &lt;p&gt;Once that is sorted out, click on &lt;b&gt;Wake Up Now&lt;/b&gt;, and you'll either see a nice little success message, or an ugly yellow error. Let's hope for the first.&lt;/p&gt;  &lt;h1&gt;Network Card Configuration&lt;/h1&gt;  &lt;p&gt;The second most likely place for a casual user to wander is the Network Card Configuration Page. There's not a lot here, but it consolidates three important items you'd have to hunt all over your PC for otherwise.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_uLvWIGYd4xc/SdbNyN2iWLI/AAAAAAAAAOA/7LERmJu2ACM/s1600-h/ConfigurationPage%5B4%5D.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="ConfigurationPage" border="0" alt="ConfigurationPage" src="http://lh3.ggpht.com/_uLvWIGYd4xc/SdbNzqByfeI/AAAAAAAAAOE/md_RN29mpmU/ConfigurationPage_thumb%5B2%5D.png?imgmax=800" width="644" height="360" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;The first is you can find out your MAC Address here. Of course, it's the MAC Address of the PC you've just run deSleeper on, not the one you're trying to wake up, but there isn't anything preventing you from installing deSleeper to the PC you want to wake up. Actually everything on this page is best down on the PC you’re trying to wake up.&lt;/p&gt;  &lt;p&gt;The second item here is the ability to enable you’re network card to listen for the “magic packets”. Such a nice name. Magic packets are the magic that takes a computer sipping 1 watt and turns it back on as if you walked over and pushed the power button.&lt;/p&gt;  &lt;p&gt;Once deSleeper has given you a reliable way to wake up your PC remotely, you’ll want to configure the PC to use its built-in power saving features. You can configure these in more detail through your computer’s power options control panel, but for convenience the main setting, the sleep timeout can be updated here.&lt;/p&gt;  &lt;h1&gt;Service Installation&lt;/h1&gt;  &lt;p&gt;If no network admin has setup a proxy for you, and “Wake up a machine on your local network” isn’t working, it’s not hard to setup your own. All you need is a PC which will remain on. Most offices, unfortunately, have hundreds of these, so take advantage of one. You install a service through the Service Installation Page&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_uLvWIGYd4xc/SdbN1AdY1nI/AAAAAAAAAOI/3CSRzJhphM8/s1600-h/ServicePage%5B4%5D.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="ServicePage" border="0" alt="ServicePage" src="http://lh3.ggpht.com/_uLvWIGYd4xc/SdbN2A-kQEI/AAAAAAAAAOM/KgXcNpIGBXc/ServicePage_thumb%5B2%5D.png?imgmax=800" width="644" height="403" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;The easiest thing to do is to install deSleeper on the machine you want to use as a proxy, come to this page and click &lt;b&gt;Install&lt;/b&gt;. There is no need to change any of the default settings if you don’t understand them.&lt;/p&gt;  &lt;p&gt;It will however be helpful to type the names of the machines you want to wake up into the Precache Hosts field, before clicking Install. This option makes your first wake up easier and reliable. It’s optional, but highly recommended.&lt;/p&gt;  &lt;p&gt;The other option is to do a remote install. This function is really for more advanced users as it requires access rights the average network user won’t have, and some of the error messages that come back if you’re missing one of those rights are, somewhat of necessity, not all that user friendly.&lt;/p&gt;  &lt;p&gt;One common gotcha of remote installs is that .NET 3.5 SP1 needs to be installed before you hit the Install button. To try and prevent confusion, by default, deSleeper checks to see if .NET (and the right version) is installed. But to do so requires a service, the Remote Registry Service, be enabled, which many users disable for security reasons. To skirt this issue, click suppress check for .NET. If one of the installs fails you may have to manually check if .NET is installed.&lt;/p&gt;  &lt;p&gt;There is yet one more function available from this page. The Prepare Hosts button will take each PC in the Precache Hosts field and attempt to remotely enable the Wake-On-Lan setting on that PCs network card. Like remove service installs, this requires administrator, or close to it, access rights. For the techies, I’ll mention that this feature, and the remote install feature, is made possible by &lt;a href="http://www.geocities.com/gtalon51/projects.html"&gt;RCtrlX&lt;/a&gt;, a utility from Leon Sodhi. Thank you Leon!&lt;/p&gt;  &lt;h1&gt;Summary&lt;/h1&gt;  &lt;p&gt;So that’s about it, if you get an error message when doing anything, you’ve got a couple options. The first is to head over to the &lt;a href="http://desleeper.codeplex.com/Thread/List.aspx"&gt;deSleeper discussion list&lt;/a&gt;. The client writes log entries to a file deSleeperClient.log, which is in the same folder as the executable, C:\Program Files\deSleeper (at least for now.. by all standards it should be in AppData but for now it’s in the much easier location).&lt;/p&gt;  &lt;p&gt;The service writes most errors to the Application or System Event Logs, which you can get to through Event Viewer. As with all networking related tools, it helps to know a little about what your network is composed of, but in the interest of not overcomplicating this little guide, I’ll leave those as topics for another day.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23716553-592285104365434276?l=tech.norabble.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=0mTECjNjF_Q:WV4S3iXhM1w:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?i=0mTECjNjF_Q:WV4S3iXhM1w:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=0mTECjNjF_Q:WV4S3iXhM1w:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=0mTECjNjF_Q:WV4S3iXhM1w:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=0mTECjNjF_Q:WV4S3iXhM1w:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=0mTECjNjF_Q:WV4S3iXhM1w:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=0mTECjNjF_Q:WV4S3iXhM1w:JEwB19i1-c4"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?i=0mTECjNjF_Q:WV4S3iXhM1w:JEwB19i1-c4" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=0mTECjNjF_Q:WV4S3iXhM1w:UT3xtbGYFzA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=UT3xtbGYFzA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=0mTECjNjF_Q:WV4S3iXhM1w:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Technorabble/~4/0mTECjNjF_Q" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Technorabble/~3/0mTECjNjF_Q/new-version-of-desleeper-and-manual.html</link><author>ryan.technorabble@gmail.com</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://tech.norabble.com/2009/04/new-version-of-desleeper-and-manual.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23716553.post-7239633765580792851</guid><pubDate>Thu, 26 Mar 2009 14:41:00 +0000</pubDate><atom:updated>2009-03-26T09:41:41.967-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">general software</category><category domain="http://www.blogger.com/atom/ns#">.NET</category><category domain="http://www.blogger.com/atom/ns#">deSleeper</category><category domain="http://www.blogger.com/atom/ns#">environment</category><category domain="http://www.blogger.com/atom/ns#">general programming</category><title>deSleeper Version 1.11</title><description>&lt;p&gt;I’ve released a &lt;a href="http://desleeper.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=25287"&gt;new version of deSleeper&lt;/a&gt;.&amp;#160; This update provides an alternative way to “precache” hostnames in a kind of offline ARP table.&amp;#160; Also fixes some errors that occurred when additional types of network cards (such as those VMWare installs) were present.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23716553-7239633765580792851?l=tech.norabble.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=-hkcHHRWjHg:Tjyn1EF2tD4:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?i=-hkcHHRWjHg:Tjyn1EF2tD4:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=-hkcHHRWjHg:Tjyn1EF2tD4:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=-hkcHHRWjHg:Tjyn1EF2tD4:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=-hkcHHRWjHg:Tjyn1EF2tD4:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=-hkcHHRWjHg:Tjyn1EF2tD4:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=-hkcHHRWjHg:Tjyn1EF2tD4:JEwB19i1-c4"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?i=-hkcHHRWjHg:Tjyn1EF2tD4:JEwB19i1-c4" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=-hkcHHRWjHg:Tjyn1EF2tD4:UT3xtbGYFzA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=UT3xtbGYFzA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=-hkcHHRWjHg:Tjyn1EF2tD4:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Technorabble/~4/-hkcHHRWjHg" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Technorabble/~3/-hkcHHRWjHg/desleeper-version-111.html</link><author>ryan.technorabble@gmail.com</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://tech.norabble.com/2009/03/desleeper-version-111.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23716553.post-5414994922482821236</guid><pubDate>Sun, 22 Mar 2009 20:30:00 +0000</pubDate><atom:updated>2009-03-22T15:33:58.421-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">general software</category><category domain="http://www.blogger.com/atom/ns#">ideas</category><category domain="http://www.blogger.com/atom/ns#">deSleeper</category><category domain="http://www.blogger.com/atom/ns#">environment</category><category domain="http://www.blogger.com/atom/ns#">general programming</category><title>deSleeper Architecture</title><description>&lt;p&gt;I run an open-source project, &lt;a href="http://desleeper.codeplex.com"&gt;deSleeper&lt;/a&gt;, on Codeplex.&amp;#160; The purpose of this utility is quite simple.&amp;#160; Allow users to remotely wake up their machines from low-power states.&amp;#160; If users use these features they’ll find it more practical to have their PC’s off or in sleep mode more often, thus saving energy.&amp;#160; &lt;/p&gt;  &lt;p&gt;Every network card has the basics to make this work, but there are plenty of obstacles that can get in the way.&amp;#160; The purpose of deSleeper is to give ways around those obstacles, and hopefully simplify the process as well.&amp;#160; I think I’ve succeeded in the first goal, though the second is still a work in progress.&amp;#160; It’s simpler than without deSleeper, but it isn’t average user simple.&amp;#160; &lt;/p&gt;  &lt;p&gt;While I work on that, anyone who uses deSleeper may find it helps to understand the architecture when you're unsure how to setup your system.&amp;#160; I’ve endeavored to help you do this by writing an &lt;a title="deSleeper Architecture and Setup Guide" href="http://desleeper.codeplex.com/Wiki/View.aspx?title=deSleeper%20Architecture&amp;amp;referringTitle=Home"&gt;architecture and setup guide&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;First, you should understand the components that are used for the entire interaction.&amp;#160;&amp;#160; &lt;br /&gt;&lt;a href="http://lh6.ggpht.com/_uLvWIGYd4xc/Scaf0NvfX0I/AAAAAAAAANg/sjg8WqpZvdg/s1600-h/Components%5B4%5D.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Components" border="0" alt="Components" src="http://lh4.ggpht.com/_uLvWIGYd4xc/Scaf1dGYcSI/AAAAAAAAANk/SdV_By9oJjY/Components_thumb%5B2%5D.png?imgmax=800" width="825" height="567" /&gt;&lt;/a&gt;     &lt;br /&gt;The three main components are the client, the proxy and the target.&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;strong&gt;Target -&lt;/strong&gt; The machine that goes to sleep automatically or manually and needs to be reactivated remotely. &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Client -&lt;/strong&gt; The machine you're using when you want to wake up the client. &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Proxy -&lt;/strong&gt; The machine which listens for requests from clients and uses it's superior network access to get a &lt;a href="http://en.wikipedia.org/wiki/Wake-on-LAN#Magic_Packet"&gt;magic packet&lt;/a&gt; to the network card of the target. &lt;/li&gt; &lt;/ul&gt; &lt;a href="http://lh5.ggpht.com/_uLvWIGYd4xc/Scaf2sFAXcI/AAAAAAAAANo/0U9CZeVIjgc/s1600-h/image%5B24%5D.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://lh4.ggpht.com/_uLvWIGYd4xc/Scaf4iQHGhI/AAAAAAAAANs/x8jRW81pqvI/image_thumb%5B18%5D.png?imgmax=800" width="883" height="568" /&gt;&lt;/a&gt;   &lt;br /&gt;Understanding these components helps understand the steps necessary to set them up.&amp;#160; &lt;br /&gt;  &lt;br /&gt;These steps are:   &lt;ul&gt;   &lt;li&gt;Configure the target's network interface. It is not always necessary, but many network cards do not have &lt;a href="http://en.wikipedia.org/wiki/Wake-on-LAN"&gt;wake-on-LAN&lt;/a&gt; enabled by default. You don't need deSleeper to do this, but help you avoid hunting around in Device Manager deSleeper provides the &amp;quot;Network Card Configuration&amp;quot; tab. If you know how to do this without deSleeper's help you don't need to install deSleeper on the target. &lt;/li&gt;    &lt;li&gt;Install Proxy Service - Clients usually have obstacles between them and the target. The proxy service needs to be installed on a machine physically located on a network that avoids these obstacles. The safest spot is connected to the same network switch, but depending on your network setup farther away may work as well. There are plenty of variables here so when in doubt closer is better. The &amp;quot;Service Installation&amp;quot; tab is only available if you install the full version. This tab helps configure the proxy service which will run in the background and boot with proxy machine. &lt;/li&gt;    &lt;li&gt;Install Client - The easiest step, install your client. You can use the full version or the client only version. &lt;/li&gt; &lt;/ul&gt;  &lt;br /&gt;Once everything is setup, all that is left to do is send a wake up request.&amp;#160; &lt;br /&gt;&lt;a href="http://lh6.ggpht.com/_uLvWIGYd4xc/Scaf66Ks-tI/AAAAAAAAANw/9dCrFAUc8Ng/s1600-h/image%5B25%5D.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://lh6.ggpht.com/_uLvWIGYd4xc/Scaf7kPZtmI/AAAAAAAAAN0/cnjr4wfNBak/image_thumb%5B19%5D.png?imgmax=800" width="832" height="613" /&gt;&lt;/a&gt;   &lt;br /&gt;The requests use web-services calls to contact the proxy with the target information. Where this request is sent is the &amp;quot;destination&amp;quot;. deSleeper also supports a &amp;quot;local&amp;quot; destination that does not use a proxy, but requires the client and target not to have obstacles in between each other.   &lt;br /&gt;Either the proxy, or if &amp;quot;local&amp;quot; the client, then constructs a &amp;quot;magic packet&amp;quot;. Essentially a magic packet is a set of bytes in a simple pattern that the network card of the sleeping target can recognize it without the assistance of the CPU. When the network card recognizes a magic packet stamped with it's unique name (known as the MAC address), it sends messages to other components of the machine that turn on the CPU, memory, hard disk, etc, or take them out of super-low power states into operational states.   &lt;br /&gt;What can go wrong?   &lt;ul&gt;   &lt;li&gt;If the network card isn't watching for the magic packet it won't wake up the machine. &lt;/li&gt;    &lt;li&gt;Magic packets are broadcast. Because the machine is off, it's not really possible to direct the request at the target. Networks limit the scope of broadcasts for many reasons. If the machine that broadcasts the magic packet is in a different scope from the target, the broadcast will never reach it. &lt;/li&gt;    &lt;li&gt;When using the &amp;quot;Host Name&amp;quot; wake up method, it needs to be possible to resolve the Host Name into a &lt;a href="http://en.wikipedia.org/wiki/MAC_address"&gt;MAC address&lt;/a&gt;, because the MAC address is a critical part of the magic packet. On most networks it's not possible to do this while a machine is off. For this reason, the proxies maintain a &amp;quot;cache&amp;quot; of host name and MAC address pairs. But to initialize this cache it's necessary to send a wake up request once while the machine is on. Somewhat counter-intuitive to send a wake up request while online, which is why I'm looking into some other solutions, but it works well after the single request. Cache's on a proxy survive shutdowns and restarts, but they may not survive a reinstall of the deSleeper service. &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/23716553-5414994922482821236?l=tech.norabble.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=hqwuGGQE0sk:GfXXkdNVgUc:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?i=hqwuGGQE0sk:GfXXkdNVgUc:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=hqwuGGQE0sk:GfXXkdNVgUc:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=hqwuGGQE0sk:GfXXkdNVgUc:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=hqwuGGQE0sk:GfXXkdNVgUc:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=hqwuGGQE0sk:GfXXkdNVgUc:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=hqwuGGQE0sk:GfXXkdNVgUc:JEwB19i1-c4"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?i=hqwuGGQE0sk:GfXXkdNVgUc:JEwB19i1-c4" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=hqwuGGQE0sk:GfXXkdNVgUc:UT3xtbGYFzA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=UT3xtbGYFzA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=hqwuGGQE0sk:GfXXkdNVgUc:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Technorabble/~4/hqwuGGQE0sk" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Technorabble/~3/hqwuGGQE0sk/desleeper-architecture.html</link><author>ryan.technorabble@gmail.com</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://tech.norabble.com/2009/03/desleeper-architecture.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23716553.post-2761159586182931767</guid><pubDate>Sat, 21 Mar 2009 03:29:00 +0000</pubDate><atom:updated>2009-03-20T22:29:39.523-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">general software</category><category domain="http://www.blogger.com/atom/ns#">ideas</category><category domain="http://www.blogger.com/atom/ns#">general programming</category><category domain="http://www.blogger.com/atom/ns#">threading</category><title>Idempotent Sequences, Sets and Interactions</title><description>&lt;p&gt;Idempotency is a funny sounding word with a simple meaning, but a complex reality.&amp;#160; Perhaps it’s even unfair to say it has a simple meaning because I’ve seen many attempts to define it that turn out rather convoluted.&amp;#160; In the simple terms, I would define idempotency as the property of being able to perform the same action twice or more times in sequence, and end up with the same result as if it was performed once.&lt;/p&gt;  &lt;p&gt;Those terms leave a fair bit of wiggle room when you really get down to the details.&amp;#160; For example, those terms say nothing about additional actions occurring in between the first and last occurrence of the idempotent action.&amp;#160; If there is one and only one action that can modify a resource than it’s not necessary to consider those details, but quite often that is not the case.&amp;#160; Even operations like an HTTP PUT are only idempotent when the input is the same.&amp;#160; Every different input for PUT is non-idempotent, with respect to every other input, unless of course If-Match is used and then some inputs are idempotent to other inputs but not to all.&lt;/p&gt;  &lt;p&gt;As I’ve found in relation asynchronicity, a simple word, used without context, can cause more confusion than clarity.&amp;#160; The transmission of a message and the receipt of it’s response may be asynchronous from a user’s perspective, but still remain synchronous from a HTTP protocol perspective.&amp;#160; That is, from the user’s perspective clicking a link in the browser is asynchronous, because while the requests are sent, received, processed and rendered, only any modern computer the user can click on another tab, open another program, etc.&amp;#160; But from the HTTP protocol perspective, even if the HTTP library provides a method like BeginGet, EndGet, some infrastructure is required to construct the request, transmit that request, and do nothing else until the response arrives (Even this is blurring the truth a bit since there is the timeout…).&lt;/p&gt;  &lt;p&gt;So, back to idempotency, I rarely see the context of idempotency discussed or defined in a more clarified structure.&amp;#160; I’ve occasionally seen references to idempotent sequences, but very rarely, not even enough to feel confident that my definition is the same as everyone else’s.&amp;#160; The HTTP RFC gives this description:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;em&gt;A sequence is idempotent if a single execution of the entire sequence always yields a result that is not changed by a reexecution of all, or part, of that sequence.&lt;/em&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;I wouldn’t be at all surprised to find people who would believe an idempotent sequence was a sequence, that if performed twice or more in a row was idempotent, but the description above goes farther than that.&amp;#160; In that description, the order of first execution of each action must remain constant, but reexecution can occur anytime after this first condition is met.&lt;/p&gt;  &lt;p&gt;I can think of another, stricter set of actions, where the set of actions produces the same result regardless of order entirely, the only requirement to achieve the same result is that every action in a set is executed at least once.&amp;#160; For the lack of knowing anything better to call such a set of action, I’d call them an idempotent set.&lt;/p&gt;  &lt;p&gt;I think it’s not uncommon for architects and developers to overreach at times and assume something that is a collection of independently idempotent actions, is an idempotent set.&amp;#160; You need an idempotent set in order to accommodate fully out of order execution, with a deterministic result.&amp;#160; An idempotent sequence works only if you’re willing to accept a slightly non-deterministic result.&lt;/p&gt;  &lt;p&gt;Another common circumstance that arises, is a set of actions, that will result in the same outcome as long as the first execution of a “final” action follows the initial execution of all other actions.&amp;#160; This circumstance, which I’m struggling to find a good term for, is quite common.&lt;/p&gt;  &lt;p&gt;I would love to hear from others on what definitions, or other common interaction patterns you’ve had experience with that relate to idempotency.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23716553-2761159586182931767?l=tech.norabble.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=ozekIkM9IHY:6GdPJjiGQuo:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?i=ozekIkM9IHY:6GdPJjiGQuo:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=ozekIkM9IHY:6GdPJjiGQuo:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=ozekIkM9IHY:6GdPJjiGQuo:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=ozekIkM9IHY:6GdPJjiGQuo:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=ozekIkM9IHY:6GdPJjiGQuo:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=ozekIkM9IHY:6GdPJjiGQuo:JEwB19i1-c4"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?i=ozekIkM9IHY:6GdPJjiGQuo:JEwB19i1-c4" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=ozekIkM9IHY:6GdPJjiGQuo:UT3xtbGYFzA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=UT3xtbGYFzA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=ozekIkM9IHY:6GdPJjiGQuo:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Technorabble/~4/ozekIkM9IHY" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Technorabble/~3/ozekIkM9IHY/idempotent-sequences-sets-and.html</link><author>ryan.technorabble@gmail.com</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://tech.norabble.com/2009/03/idempotent-sequences-sets-and.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23716553.post-4457190976201745033</guid><pubDate>Sat, 28 Feb 2009 21:46:00 +0000</pubDate><atom:updated>2009-02-28T15:46:56.394-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">not computer</category><category domain="http://www.blogger.com/atom/ns#">ideas</category><category domain="http://www.blogger.com/atom/ns#">cars</category><category domain="http://www.blogger.com/atom/ns#">general</category><title>Red Light Cameras</title><description>&lt;p&gt;Chicago has been installing red light cameras.&amp;#160; I thought one caught me a few weeks ago, but never got a ticket, so the flash must have been for a car going the opposite direction.&amp;#160; The experience got me wondering about certain aspects of the systems.&lt;/p&gt;  &lt;p&gt;If you search, you’ll find opinions that they are effective at reducing accidents, and others that they are not.&amp;#160; The only definitive &lt;a href="http://www.tfhrc.gov/safety/pubs/05048/05048.pdf"&gt;RLC study I found, conducted by FHWA&lt;/a&gt;, has interesting conclusions.&amp;#160; Bottom line is red light cameras reduce both injuries and costs.&amp;#160; The FHWA study is much better than others, but it’s important to note it’s limitations.&lt;/p&gt;  &lt;p&gt;The FHWA study discusses spillover effect, that is, the effect where RLCs alter the behavior of drivers at intersections without RLCs.&amp;#160; When a city places RLC’s at a few intersections, some drivers pay attention to whether a intersection has a camera, but others become more careful at all intersections.&amp;#160; &lt;/p&gt;  &lt;p&gt;What the study can’t measure, because there is no data for it, is what the effect would be if all drivers acted like the second group, that is, they drove more carefully at all intersections.&amp;#160; This condition would occur if all intersections had cameras or a high enough percentage as that drivers assumed they were present without looking for them.&lt;/p&gt;  &lt;p&gt;This limitation is important because all the benefits of this homogenous state, compared to the current mixed state, favor RLCs.&amp;#160; First, in the mixed state, drivers intentions and expectations vary more than in the homogenous state.&amp;#160; If a driver who knows a RLC is not present at an intersection is following one assumes all intersections are equipped, the following driver may assume the leading driver is less likely to stop than he is, increasing the risk of a rear-end collision.&amp;#160; If all drivers have similar goals, the risk is reduced.&amp;#160; &lt;/p&gt;  &lt;p&gt;Second, if drivers look for RLCs as they approach an intersection, this is a distraction, and increases the risk of any type of accident, especially rear-end collisions.&amp;#160; If they assume the camera is present, plan to stop, and focus their attention on traffic and signals, the risks are lower.&lt;/p&gt;  &lt;p&gt;The point is the proven, but modest benefits the FHWA study finds are underestimating the full value, and while we may each dislike the chance we’ll receive a ticket, ultimately they do save lives, injuries and costs.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23716553-4457190976201745033?l=tech.norabble.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=jbkQ6_FOw5k:r8jWZ01sM4M:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?i=jbkQ6_FOw5k:r8jWZ01sM4M:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=jbkQ6_FOw5k:r8jWZ01sM4M:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=jbkQ6_FOw5k:r8jWZ01sM4M:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=63t7Ie-LG7Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=jbkQ6_FOw5k:r8jWZ01sM4M:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=jbkQ6_FOw5k:r8jWZ01sM4M:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=jbkQ6_FOw5k:r8jWZ01sM4M:JEwB19i1-c4"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?i=jbkQ6_FOw5k:r8jWZ01sM4M:JEwB19i1-c4" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=jbkQ6_FOw5k:r8jWZ01sM4M:UT3xtbGYFzA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=UT3xtbGYFzA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/Technorabble?a=jbkQ6_FOw5k:r8jWZ01sM4M:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/Technorabble?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Technorabble/~4/jbkQ6_FOw5k" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Technorabble/~3/jbkQ6_FOw5k/red-light-cameras.html</link><author>ryan.technorabble@gmail.com</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://tech.norabble.com/2009/02/red-light-cameras.html</feedburner:origLink><enclosure url="http://feedproxy.google.com/~r/Technorabble/~5/E_qZDE01SrQ/05048.pdf" length="634888" type="application/pdf" /><feedburner:origEnclosureLink>http://www.tfhrc.gov/safety/pubs/05048/05048.pdf</feedburner:origEnclosureLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23716553.post-9186049277972322686</guid><pubDate>Sun, 15 Feb 2009 20:55:00 +0000</pubDate><atom:updated>2009-02-15T14:55:22.261-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">general software</category><category domain="http://www.blogger.com/atom/ns#">Google</category><title>Google, Brand and Beta</title><description>&lt;p&gt;Reading &lt;a title="How Google&amp;#39;s layoffs and project cancellations are affecting it&amp;#39;s culture of innovation" href="http://www.25hoursaday.com/weblog/2009/02/15/HowGooglesLayoffsAndProjectCancellationsAreAffectingItsCultureOfInnovation.aspx"&gt;Dare Obasanjo’s thoughts on how layoffs and project trimming at Google affect its culture&lt;/a&gt; led me to thinking about why the fatality rate for side projects at Google has risen so high.&amp;#160; It’s not just the economy, it’s more than that.&amp;#160; I think despite being the major innovator in web based advertising, Google may have failed to understand the meaning of brand internally.&lt;/p&gt;  &lt;p&gt;What Google has been loathe to admit to itself is that a not insignificant part of its success in many areas is something other than the quality of their products.&amp;#160; Not that they don’t have quality, or that quality wasn’t important, but many of their products have succeeded by leveraging the brand built from the success and popularity Google web search and the following press obsession with the periods of rocketing stock prices.&amp;#160; This brand was critical for products like Gmail which asked users to change the way they work.&amp;#160; Gmail asked users to give up something in exchange for something else.&amp;#160; Products like that are a much harder sell then products that provide incremental improvements, and the ability to convince users to temporarily ignore their losses until they understand their gains is critical.&amp;#160; &lt;/p&gt;  &lt;p&gt;That ability is called trust.&amp;#160; Google however has damaged their earned trust in somewhat unexpected ways.&amp;#160; Maintaining trust isn’t as simple as not breaking your promises, because people aren’t fully rational about trust.&amp;#160; Causing confusion is as reliable a mechanism to lose trust as lying, and Google has done a good job of confusing users with their extremely long list of beta products.&amp;#160; Sure, they are called beta’s and the implicit statement there is that it’s not complete, but since some of their beta products have had quality far above others, the meaning of beta changed.&lt;/p&gt;  &lt;p&gt;What Google would benefit from here is to do a much better job of internally vetting the state of quality of their products and projects and communicating that to their users and potential users.&amp;#160; Currently I have a feeling that Google’s main metric of quality is the number of daily users.&amp;#160; That is a poor metric that is self-defeating in the brand arena.&amp;#160; Those products that have succeeded, and are already successful don’t need a stamp of approval, but those that do are left among the rather large and growing bucket of products that either haven’t yet made it, or never will.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23716553-9186049277972322686?l=tech.norabble.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=d6k2P1y7"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=d6k2P1y7" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=yh1DCLMM"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=8YB0ZtZL"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=42" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=g5W9jA6I"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=B60J9nnd"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=9v2k5y8p"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=9v2k5y8p" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=aDZIOgez"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=145" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=IBA3lmlP"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=45" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Technorabble/~4/fQ7viXRYoC0" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Technorabble/~3/fQ7viXRYoC0/google-brand-and-beta.html</link><author>ryan.technorabble@gmail.com</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://tech.norabble.com/2009/02/google-brand-and-beta.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23716553.post-2932770999802920603</guid><pubDate>Wed, 28 Jan 2009 06:53:00 +0000</pubDate><atom:updated>2009-01-28T00:53:55.241-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">blogging</category><category domain="http://www.blogger.com/atom/ns#">general</category><category domain="http://www.blogger.com/atom/ns#">Photos</category><title>Photo fun</title><description>&lt;p&gt;One of my many projects over the last few months has been cataloging and uploading my Grandfather’s very large digital photo collection.&amp;#160; It took a bit of time to decide on the right tools for this job, and in all honestly I’ll probably switch again sometime in the future but so far I found the combination of &lt;a href="http://download.live.com/photogallery"&gt;Windows Live Photo Gallery&lt;/a&gt; and &lt;a href="http://www.flickr.com"&gt;Flickr&lt;/a&gt; to be the best combination.&lt;/p&gt;  &lt;p&gt;Windows Live Photo Gallery beat out it’s competitors for me because of did a better job of managing tags than all the others.&amp;#160; It supports two types of tags, People tags and descriptive tags.&amp;#160; People tags are cool because you can highlight individuals in a photo, but I haven’t yet figured out how this is stored.&amp;#160; Descriptive tags are you’re basic tag but are stored in a form Vista recognizes directly making them very portable and useful for searching even without Windows Live Photo Gallery.&amp;#160; Inside Windows Live Photo Gallery the interface for using the tags is very good too.&amp;#160; I won’t say anymore on that topic other than suggest you try it.&lt;/p&gt;  &lt;p&gt;You might be tempted to think the use of Windows Live Photo Gallery would make it easier to upload to the Windows Live Photos service, but there is an excellent uploader for Flickr built in.&amp;#160; It’s way better than anything Flickr offers on their own, and in some ways better than the built in upload to Windows Live Photos as well.&amp;#160; Once again, a key factor for me was the support for tags.&amp;#160; The uploader in Windows Live Photo Gallery automatically transferred all of the descriptive tags.&amp;#160; The standalone &lt;a href="http://www.flickr.com/tools/"&gt;flickr uploader tool&lt;/a&gt; requires you type all of this in again.. ugh.. no thanks.&lt;/p&gt;  &lt;p&gt;Flickr got my support for a couple reasons.&amp;#160; For one, I had a lot of photos, 50GB or so, that I wanted to upload, and for a number of competitors that would have cost quite a bit.&amp;#160; Actually, until AT&amp;amp;T discontinued their Yahoo services it was free for me.&amp;#160; Now it’s $24.95/year.&amp;#160; Picasa, is kind of expensive past the initial 1GB.&amp;#160; Windows Live Photos was kind of attractive with 25GB of free space, but the online experience isn’t anywhere near the depth of Flickr.&amp;#160; For example, while tags are transferred, they aren’t all that useful due to lack of good search/exploration interfaces.&amp;#160; I think my feelings on that would change a lot of there was a online/offline sync between Gallery and Spaces like Picasa uses, but today it’s just a standard upload/download like Flickr.&lt;/p&gt;  &lt;p&gt;So… now that I have all these photos and a inherent sentimentality toward them I’ll probably be posting links to some of the best in the ol’ blog from time to time.&amp;#160; Hope you enjoy them.&lt;/p&gt;  &lt;p&gt;&lt;a title="IMGP4727 by MeRyan, on Flickr" href="http://www.flickr.com/photos/63457916@N00/3228036756/"&gt;&lt;img title="St. Lucia by Sea" height="681" alt="St. Lucia by Sea" src="http://farm4.static.flickr.com/3122/3228036756_6027d01b06_b.jpg" width="1024" /&gt;&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/23716553-2932770999802920603?l=tech.norabble.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=7LSbz7Al"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=7LSbz7Al" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=2yaDuEkv"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=ZpVV8gKu"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=42" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=xxjawYYk"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=FIjTkYkc"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=2FD53HRy"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=2FD53HRy" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=u605CjXe"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=145" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=YGfEU56x"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=45" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Technorabble/~4/IeeGAAQtR0k" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Technorabble/~3/IeeGAAQtR0k/photo-fun.html</link><author>ryan.technorabble@gmail.com</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">4</thr:total><feedburner:origLink>http://tech.norabble.com/2009/01/photo-fun.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23716553.post-5637327445848442678</guid><pubDate>Mon, 26 Jan 2009 03:57:00 +0000</pubDate><atom:updated>2009-01-25T23:39:52.286-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">general software</category><category domain="http://www.blogger.com/atom/ns#">vista</category><category domain="http://www.blogger.com/atom/ns#">Window 7</category><title>Remote Desktop 7 on Windows Vista and XP</title><description>&lt;p&gt;While Vista/Windows 2008 Server were in beta there was a &lt;a href="http://tech.norabble.com/2006/07/dual-monitor-remote-desktop-goodness.html"&gt;trick to use RDP 6 on Windows XP&lt;/a&gt;.&amp;#160; Now that Windows 7 is coming, and has a new set of RDP enhancements, including true multi-monitor support.&amp;#160; So, I decided to try the same trick with the new files from Windows 7.&amp;#160; To recap:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;     &lt;p&gt;Create a folder for you RDP 7.0 (version number will be 6.1.7000) files (don’t place them in System32) &lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;Copy the files mstsc.exe and mstscax.dll from a Windows 7 installs System32 folder to the new folder. &lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;Create a subfolder, en-US. &lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;     &lt;p&gt;Copy the files mstsc.exe.mui and mstscax.dll.mui from the Windows 7 installs System32\en-US folder to the subfolder. &lt;/p&gt;   &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Now, my testing has had some success under Vista, but not so much under XP.&amp;#160; I did a bit of an odd thing for Vista because I have a 64bit install of Vista and had a 32bit install of Windows 7.&amp;#160; So.. when I copied the files they didn’t initially work until I ran them inside a 32bit version of dependency walker… but I’m pretty sure it will work without that hoop when I copy over the 64bit files, or vice versa if you have two 32bit installs.&lt;/p&gt;  &lt;p&gt;The XP problem is a bit trickier.&amp;#160; Under XP (32bit files/32bit install) I receive the error “The prerelease version of remote desktop connection has expired…”, which happens to be the &lt;a href="http://help.wugnet.com/windows/Remote-Desktop-Connection-XP-SP3ftopic-612825-days0-orderasc-8.html"&gt;same message many users saw during early XP SP3 testing&lt;/a&gt;.&amp;#160; For this reason I have a hunch that the files will work on XP SP2, but not SP3, but don’t quote me on that till I get a chance to try.&amp;#160; Other than that I haven’t thought up anyway to make the files work on XP other than to wait for Microsoft to release an official patch.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23716553-5637327445848442678?l=tech.norabble.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=pQgj0aVj"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=pQgj0aVj" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=YQDXlB73"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=cy3JqsXx"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=42" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=jojJwwqs"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=lHfiGPU1"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=bU4zGr2A"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=bU4zGr2A" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=qnSJJveF"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=145" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=zYSyy221"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=45" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Technorabble/~4/lKUlNZVnO8c" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Technorabble/~3/lKUlNZVnO8c/remote-desktop-7-on-windows-vista-and.html</link><author>ryan.technorabble@gmail.com</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">15</thr:total><feedburner:origLink>http://tech.norabble.com/2009/01/remote-desktop-7-on-windows-vista-and.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23716553.post-1448228654975877927</guid><pubDate>Sun, 25 Jan 2009 19:23:00 +0000</pubDate><atom:updated>2009-01-25T14:55:14.114-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">general software</category><category domain="http://www.blogger.com/atom/ns#">vista</category><category domain="http://www.blogger.com/atom/ns#">virtualization</category><category domain="http://www.blogger.com/atom/ns#">Window 7</category><title>Windows 7, Remote Desktop and Dual\Multi Monitors</title><description>&lt;p&gt;A long time ago I wrote about &lt;a href="http://tech.norabble.com/2006/07/dual-monitor-remote-desktop-goodness.html"&gt;a partial solution to using multiple monitors with Windows XP and Vista&lt;/a&gt;.&amp;#160; There were a few limitations at the time, but now Microsoft is promising to solve even those.&amp;#160; With Windows 7 (and lets cross our fingers and hope the Windows 7 Remote Desktop client becomes available for Windows Vista and XP), you can now use two or more monitors, even with different sizes with remote desktop.&lt;/p&gt;  &lt;p&gt;Some early details, about &lt;a href="http://software.intel.com/en-us/blogs/2009/01/13/windows-7-beta-multi-display-remote-desktop/"&gt;multi-monitor remote desktop on Windows 7&lt;/a&gt;,&amp;#160; are available from the &lt;a href="http://software.intel.com/en-us/blogs/2009/01/13/windows-7-beta-multi-display-remote-desktop/"&gt;Intel networking blog&lt;/a&gt;.&amp;#160; One thing I should point out is that this is much different than /span.&amp;#160; With /span you didn’t get distinct monitors, so maximize wouldn’t work as expected and you all your monitors had to have a common rectangle.&amp;#160; That is, if all your monitors had a consistent height, and were horizontally stacked, then you could use them.&amp;#160; With the Windows 7 change they are actually treated as distinct monitors allowing for distinct sizes, which is rather handy if you have a laptop with an external monitor and the sizes don’t match.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_uLvWIGYd4xc/SXy8JZZr4zI/AAAAAAAAANY/sEz_kv8ed5k/s1600-h/image%5B3%5D.png"&gt;&lt;img title="image" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="481" alt="image" src="http://lh4.ggpht.com/_uLvWIGYd4xc/SXy8MfYK09I/AAAAAAAAANc/LO7dntq7L8Y/image_thumb%5B1%5D.png?imgmax=800" width="425" border="0" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;This is all nifty and cool, but it’s possible it won’t matter much if the entire remote desktop concept trends more toward the remote application concept.&amp;#160; More on that soon.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23716553-1448228654975877927?l=tech.norabble.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=bmCi8KC7"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=bmCi8KC7" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=saPJI54X"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=i1jrue4H"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=42" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=5V7FZqXF"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=CEG5Q4vd"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=Algkhh7X"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=Algkhh7X" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=98HN9z6K"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=145" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=nbisIzdX"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=45" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Technorabble/~4/dZFTzqHKngA" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Technorabble/~3/dZFTzqHKngA/windows-7-remote-desktop-and-dualmulti.html</link><author>ryan.technorabble@gmail.com</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">2</thr:total><feedburner:origLink>http://tech.norabble.com/2009/01/windows-7-remote-desktop-and-dualmulti.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23716553.post-1629126476902962128</guid><pubDate>Sun, 25 Jan 2009 18:15:00 +0000</pubDate><atom:updated>2009-01-25T12:15:13.556-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">kindle</category><category domain="http://www.blogger.com/atom/ns#">hardware</category><title>Kindle Case (Solution?)</title><description>&lt;p&gt;I’ve had my Kindle for about a year now, and continue to run into more and more people with one.&amp;#160; The one &lt;a href="http://feedproxy.google.com/~r/ScottHanselman/~3/qqUDGoRgP_U/AYearWithAnAmazonKindleAndNewKindleCases.aspx"&gt;gripe I hear consistently is the case&lt;/a&gt;.&amp;#160; Oddly it’s never bothered me, I’ve found the case, while unconventional, to have worked extremely well at it’s job.&lt;/p&gt;  &lt;p&gt;Maybe I’ve been lucky to get a case that was just better fitted, but I haven’t had the “drop out” issue many complain about.&amp;#160; Yes, the little tab and the back of the Kindle seem to barely hold on, but they always do hold on, except if the battery cover on the back of the Kindle starts to loosen up.&amp;#160; Maybe that’s the trick, or as I said, maybe my case is more perfectly fit than the others.&lt;/p&gt;  &lt;p&gt;When the battery cover is properly tight the curved edge will be totally flush with the curved edge of the kindle.&amp;#160; It’s possible that it might feel like it’s tight before it is, but it will be more obvious if it’s tight.&amp;#160; My apologies if this is all obvious and already tried, but considering my good luck so far, and the off chance that it might work, I thought it worth a try.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23716553-1629126476902962128?l=tech.norabble.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=E8Qii4VH"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=E8Qii4VH" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=Ilbc6mYY"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=BiQWbLl0"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=42" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=aSZibWzv"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=nIsp59tX"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=gMpfO68Y"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=gMpfO68Y" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=pn4odLI4"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=145" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=FK0vnzUW"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=45" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Technorabble/~4/82pug4qH9QE" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Technorabble/~3/82pug4qH9QE/kindle-case-solution.html</link><author>ryan.technorabble@gmail.com</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://tech.norabble.com/2009/01/kindle-case-solution.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23716553.post-7641921497163139922</guid><pubDate>Thu, 15 Jan 2009 02:20:00 +0000</pubDate><atom:updated>2009-01-14T20:20:49.654-06:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">general software</category><category domain="http://www.blogger.com/atom/ns#">vista</category><category domain="http://www.blogger.com/atom/ns#">hardware</category><category domain="http://www.blogger.com/atom/ns#">environment</category><title>Low Power PC Tips</title><description>&lt;p&gt;In most cases, PC’s help save power.&amp;#160; Less shipping due to email is one good example.&amp;#160; Still, they do plug into the wall and if not properly configured can use a fair bit more electricity than necessary.&amp;#160; What’s unfortunate is that most PC’s aren’t configured properly because they don’t come from the manufacturer that way.&lt;/p&gt;  &lt;p&gt;I’m going to give you some simple tips to save power.&amp;#160; I’ll start with those tips that won’t produce any noticeable change in the way your computer operates (unless you happen to watch your electricity meter), and then some that save more but have minor inconveniences.&lt;/p&gt;  &lt;h1&gt;Minimal Power Management&lt;/h1&gt;  &lt;p&gt;The first tip is to let your computer take advantage of the power saving features of your CPU.&amp;#160; Modern CPUs can use dramatically less power when idling or under light load, by turning off some cores and slowing down others.&amp;#160; Since they only do this when they don’t have work to do, the effect is unnoticeable.&amp;#160; Unfortunately, most Windows XP computers come configured with these features turned off.&amp;#160; In Windows XP you can enable these features through the power options dialog accessible through your control panel.&lt;/p&gt;  &lt;h2&gt;Windows XP&lt;/h2&gt;  &lt;h2&gt;&lt;/h2&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_uLvWIGYd4xc/SW6dWySjLJI/AAAAAAAAAMY/_av0wDZbESw/s1600-h/image%5B38%5D.png"&gt;&lt;img title="image" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; margin-left: 0px; margin-right: 0px; border-right-width: 0px" height="344" alt="image" src="http://lh5.ggpht.com/_uLvWIGYd4xc/SW6dXSxlpOI/AAAAAAAAAMc/IzkoPWtuzXc/image_thumb%5B39%5D.png?imgmax=800" width="396" border="0" /&gt;&lt;/a&gt; &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;It’s not too obvious here, but choosing minimal power management does more than just change the values of the “Turn off monitor”, “Turn off hard disks” and “System standby”.&amp;#160; It also changes many subtle unseen values.&amp;#160; So the tip here is, set your power scheme in Windows XP to “Minimal Power Management” if it’s currently set to “Home/Office Desk” or “Always On” or “Normal”.&amp;#160; The “Portable/Laptop” and “Max Battery” schemes are roughly the basically the same as “Minimal Power Management”, except with different defaults for the visible settings.&lt;/p&gt;  &lt;h2&gt;&lt;/h2&gt;  &lt;h1&gt;&lt;/h1&gt;  &lt;h2&gt;VISTA&lt;/h2&gt;  &lt;p&gt;In Vista, processor power management is something that is on by default.&amp;#160; Also you can see the actual settings, though it’s a bit more involved.&amp;#160; Vista has power plans instead of schemes and they vary a little bit.&amp;#160; In general you’re okay if you don’t choose “High Performance”.&amp;#160; I know it sounds like something you want, who doesn’t want performance, but really the difference is negligible in terms of performance and high in terms of power usage.&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;a href="http://lh3.ggpht.com/_uLvWIGYd4xc/SW6dXydBntI/AAAAAAAAAMg/C5UBT0b9FjA/s1600-h/image%5B15%5D.png"&gt;&lt;img title="image" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="349" alt="image" src="http://lh4.ggpht.com/_uLvWIGYd4xc/SW6dYb8EY5I/AAAAAAAAAMk/macJv545YH0/image_thumb%5B16%5D.png?imgmax=800" width="604" border="0" /&gt;&lt;/a&gt; &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;If you want simple, choose recommended to get the equivalent of minimal power management.&lt;/p&gt;  &lt;p&gt;On the other hand, if you want to really know what your PC is doing, further down I’ll explain Advanced Power Settings.&lt;/p&gt;  &lt;h1&gt;Turn off monitor&lt;/h1&gt;  &lt;p&gt;Modern LCD monitors and laptop screens use much less power than the older CRT monitors did.&amp;#160; Still, they are one of the primary power draws from using a PC.&amp;#160; Also, unlike CRTs, an LCD turns on and displays an optimal image in less than a second.&amp;#160; So setup your computer to automatically turn the monitor off in case you get up and walk away.&amp;#160; &lt;/p&gt;  &lt;p&gt;Don’t worry about your monitor turning off while watching a video.&amp;#160; Media Player and most other video software keeps the monitor on automatically regardless of this setting.&lt;/p&gt;  &lt;p&gt;Choose whatever timeout feels comfortable, but lower is better.&amp;#160; I set mine to 10 minutes at home and 5 at work (for security mostly).&lt;/p&gt;  &lt;p&gt;Another tip, don’t use a screen saver.&amp;#160; For one, they’re no longer necessary given the design of monitors today.&amp;#160; Second, screen savers have an odd nack for preventing your monitor from being turned off, although they are not supposed to do so.&lt;/p&gt;  &lt;h2&gt;Windows XP&lt;/h2&gt;  &lt;p&gt;Select your time after selecting the appropriate power scheme.&amp;#160; If you set the scheme second the turn off monitor setting will change again.&lt;/p&gt;  &lt;h2&gt;Vista&lt;/h2&gt;  &lt;p&gt;Click on Change plan settings after selecting a plan.&amp;#160; Instead of “Turn off Monitor” use “Turn off the display”.&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_uLvWIGYd4xc/SW6dZEhr1FI/AAAAAAAAAMo/4AWVF3wq5xQ/s1600-h/image%5B21%5D.png"&gt;&lt;img title="image" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="349" alt="image" src="http://lh3.ggpht.com/_uLvWIGYd4xc/SW6daQxr07I/AAAAAAAAAMs/rhLFAKMqT4w/image_thumb%5B30%5D.png?imgmax=800" width="692" border="0" /&gt;&lt;/a&gt; &lt;/p&gt; &lt;/blockquote&gt;  &lt;h1&gt;Turn off hard disks&lt;/h1&gt;  &lt;p&gt;Hard disks turn on and off very quickly too, and depending upon how you use them, they can last quite a bit longer if they get some down time.&amp;#160; It’s generally not good to turn a hard drive on and off rapidly, kind of like a lightbulb, but a few times a day will do more good than harm.&lt;/p&gt;  &lt;p&gt;I’d recommend setting the hard drive off to 10 minutes.&lt;/p&gt;  &lt;h2&gt;Windows XP&lt;/h2&gt;  &lt;p&gt;Once again, select the appropriate time after selecting a scheme.&lt;/p&gt;  &lt;h2&gt;Vista&lt;/h2&gt;  &lt;p&gt;In Vista, turn off hard disks is more complex.&amp;#160; Click on “Change advanced power settings” once into the Change Plan settings.&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;a href="http://lh6.ggpht.com/_uLvWIGYd4xc/SW6dbqu9zCI/AAAAAAAAAMw/N7SempTliEA/s1600-h/image%5B29%5D.png"&gt;&lt;img title="image" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="450" alt="image" src="http://lh3.ggpht.com/_uLvWIGYd4xc/SW6ddDCAbHI/AAAAAAAAAM0/RkgnpORw8pE/image_thumb%5B34%5D.png?imgmax=800" width="422" border="0" /&gt;&lt;/a&gt; &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;This is good and bad.&amp;#160; On the bad, this dialog is much more complex.&amp;#160; But on the upside it does allow you do to a lot more than XP did.&amp;#160; Expand the Hard disk node, then “Turn off hard disk after”, and finally select the appropriate timeout if not already set.&amp;#160; You might notice something inside this screen.&amp;#160; A bit further down is “Processor power management”.&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;a href="http://lh5.ggpht.com/_uLvWIGYd4xc/SW6deJiyPEI/AAAAAAAAAM4/1RjHs3nVKWk/s1600-h/image%5B37%5D.png"&gt;&lt;img title="image" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="450" alt="image" src="http://lh3.ggpht.com/_uLvWIGYd4xc/SW6df3U191I/AAAAAAAAAM8/_9qCzz_McfE/image_thumb%5B38%5D.png?imgmax=800" width="422" border="0" /&gt;&lt;/a&gt; &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;This is the equivalent to “Minimal Power Management”.&amp;#160; 5% and 100% are very good values and should be the default values in your Recommended plan.&lt;/p&gt;  &lt;h1&gt;Sleep/Hibernate&lt;/h1&gt;  &lt;p&gt;The last step in saving power is to enable sleep and/or hibernate.&amp;#160; These features turn your whole computer off, not just little pieces, and allow you to bring it back to life quickly.&amp;#160; Sleep is almost always the faster of the two and the difference in power consumption between sleep and hibernate isn’t huge.&amp;#160; I generally prefer to use hibernate explicitly (as a replacement for explicitly shutting the machine down) and sleep as a “walked away” kind of thing.&amp;#160; If you’re faint of heart, start with standby unless you have a laptop.&lt;/p&gt;  &lt;p&gt;I’d suggest setting this to at least one notch above your monitor off value.&amp;#160; It’s nice to have a warning before the PC goes to sleep.&amp;#160; If your reading something and you’re monitor flicks off, move the mouse and in less than a second your back to normal.&amp;#160; If however it goes to sleep it could be a a little wait because you’ll not only have to wait for the PC to come out of sleep, which is pretty speedy, but you have to wait for it to finish going to sleep too, which usually is slower than coming out.&lt;/p&gt;  &lt;h2&gt;Windows XP&lt;/h2&gt;  &lt;p&gt;Once again, sleep is readily available from your power options dialog.&lt;/p&gt;  &lt;h2&gt;Vista&lt;/h2&gt;  &lt;p&gt;Your sleep setting is in Edit Plan Settings with the “Turn off the Display” setting.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23716553-7641921497163139922?l=tech.norabble.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=ezCJBM8E"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=ezCJBM8E" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=kjr0pU29"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=3hftPjWh"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=42" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=9TlYaP9e"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=jlv5YepN"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=RycGNbV2"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=RycGNbV2" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=dtw9lFa1"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=145" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=YxcYy12K"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=45" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Technorabble/~4/MBI4KUaLWkw" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Technorabble/~3/MBI4KUaLWkw/low-power-pc-tips.html</link><author>ryan.technorabble@gmail.com</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">1</thr:total><feedburner:origLink>http://tech.norabble.com/2009/01/low-power-pc-tips.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23716553.post-8475189156657421859</guid><pubDate>Thu, 23 Oct 2008 05:59:00 +0000</pubDate><atom:updated>2008-10-23T00:59:50.171-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">WPF</category><category domain="http://www.blogger.com/atom/ns#">.NET</category><category domain="http://www.blogger.com/atom/ns#">general programming</category><category domain="http://www.blogger.com/atom/ns#">threading</category><title>Asynchronous WPF</title><description>&lt;p&gt;WPF like WinForms has a UI thread and enforces that UI properties cannot be modified by threads other than the UI thread.&amp;#160; There are many reasons for this design choice, but the reality is that if you want a responsive user interface you will need to make sure that any significant work is performed upon a background thread.&amp;#160; What this post is about, is some of the ways you can use built in WPF patterns to develop an properly asynchronous UI, and some areas that need extension.&lt;/p&gt;  &lt;p&gt;Data-binding is one area that WPF provides built in asynchronous patterns.&amp;#160; Your first friend for data-binding is &lt;a href="http://msdn2.microsoft.com/en-us/ms613642"&gt;ObjectDataProvider&lt;/a&gt;.&amp;#160; This nifty class sometimes confuses developers who wonder why it is necessary if WPF can bind to any data object because some examples show it wrapping an object.&amp;#160; But where &lt;a href="http://msdn2.microsoft.com/en-us/ms613642"&gt;ObjectDataProvider&lt;/a&gt; shines is in providing an asynchronously loaded object to WPF binding's.&amp;#160; For example, if your UI needed to bind to properties of the system's &lt;a href="http://msdn2.microsoft.com/en-us/k056bfdz"&gt;NetworkInterface&lt;/a&gt; objects, you could do something similar to:&lt;/p&gt;  &lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;Page&lt;/span&gt; ...&lt;br /&gt;  &lt;span class="attr"&gt;xmlns:NetworkInformation&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;clr-namespace:System.Net.NetworkInformation;assembly=System&amp;quot; &lt;/span&gt;...&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;...&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;style type="text/css"&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, "Courier New", courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="csharpcode"&gt;  &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;Page.Resources&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;ObjectDataProvider&lt;/span&gt; &lt;br /&gt;      &lt;span class="attr"&gt;x:Key&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;_interfaces&amp;quot;&lt;/span&gt;&lt;br /&gt;      &lt;span class="attr"&gt;IsAsynchronous&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;True&amp;quot;&lt;/span&gt; &lt;br /&gt;      &lt;span class="attr"&gt;ObjectType&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;NetworkInformation:NetworkInterface&amp;quot;&lt;/span&gt;&lt;br /&gt;      &lt;span class="attr"&gt;MethodName&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;GetAllNetworkInterfaces&amp;quot;&lt;/span&gt;&lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;Page.Resources&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;style type="text/css"&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, "Courier New", courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;This succinct little bit will call &lt;a href="http://msdn2.microsoft.com/en-us/76z13b26"&gt;GetAllNetworkInterfaces&lt;/a&gt; asynchronously.&amp;#160; In addition, any parts of your UI that create bindings to _interfaces (through {Binding Source={StaticResource _interfaces} ...}) will initially appear empty (actually it will display the binding's FallbackValue) but update after the asynchronous operation completes.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;WPF also provides a property to every binding called &lt;a href="http://msdn2.microsoft.com/en-us/ms594709"&gt;IsAsync&lt;/a&gt;.&amp;#160; Hopefully you will have less use for this property than &lt;a href="http://msdn2.microsoft.com/en-us/ms613642"&gt;ObjectDataProvider&lt;/a&gt; because property access should not be slow.&amp;#160; I also prefer that data load all at once, or at least in chunks.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Surprisingly, after providing good patterns for Binding, WPF seems to neglect the more common need of asynchronous commands.&amp;#160; To be fair, they are less simple because it's fairly common for them to be dependent on the current setting of UI properties.&amp;#160; When commands are not dependent upon UI properties they can be very simple.&amp;#160; In many ways, this is the optimal usage for commands in general because the whole &lt;a href="http://msdn2.microsoft.com/en-us/ms605187"&gt;CommandParameter&lt;/a&gt; system is a bit clunky.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;WPF does support &lt;a href="http://msdn2.microsoft.com/en-us/4852et58"&gt;BackgroundWorker&lt;/a&gt;, which can be used to create a basic AsyncCommand.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="csharpcode"&gt;    &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;abstract&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; AsyncCommand : ICommand&lt;br /&gt;    {&lt;br /&gt;        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;event&lt;/span&gt; EventHandler CanExecuteChanged;&lt;br /&gt;        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;event&lt;/span&gt; EventHandler RunWorkerStarting;&lt;br /&gt;        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;event&lt;/span&gt; RunWorkerCompletedEventHandler RunWorkerCompleted;&lt;br /&gt;&lt;br /&gt;        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;abstract&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; Text { get; }&lt;br /&gt;        &lt;span class="kwrd"&gt;private&lt;/span&gt; &lt;span class="kwrd"&gt;bool&lt;/span&gt; _isExecuting;&lt;br /&gt;        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;bool&lt;/span&gt; IsExecuting&lt;br /&gt;        {&lt;br /&gt;            get { &lt;span class="kwrd"&gt;return&lt;/span&gt; _isExecuting; }&lt;br /&gt;            &lt;span class="kwrd"&gt;private&lt;/span&gt; set&lt;br /&gt;            {&lt;br /&gt;                _isExecuting = &lt;span class="kwrd"&gt;value&lt;/span&gt;;&lt;br /&gt;                &lt;span class="kwrd"&gt;if&lt;/span&gt; (CanExecuteChanged != &lt;span class="kwrd"&gt;null&lt;/span&gt;)&lt;br /&gt;                    CanExecuteChanged(&lt;span class="kwrd"&gt;this&lt;/span&gt;, EventArgs.Empty);&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class="kwrd"&gt;protected&lt;/span&gt; &lt;span class="kwrd"&gt;abstract&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; OnExecute(&lt;span class="kwrd"&gt;object&lt;/span&gt; parameter);&lt;br /&gt;&lt;br /&gt;        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; Execute(&lt;span class="kwrd"&gt;object&lt;/span&gt; parameter)&lt;br /&gt;        {    &lt;br /&gt;            &lt;span class="kwrd"&gt;try&lt;/span&gt;&lt;br /&gt;            {    &lt;br /&gt;                onRunWorkerStarting();&lt;br /&gt;&lt;br /&gt;                var worker = &lt;span class="kwrd"&gt;new&lt;/span&gt; BackgroundWorker();&lt;br /&gt;                worker.DoWork += ((sender, e) =&amp;gt; OnExecute(e.Argument));&lt;br /&gt;                worker.RunWorkerCompleted += ((sender, e) =&amp;gt; onRunWorkerCompleted(e));&lt;br /&gt;                worker.RunWorkerAsync(parameter);&lt;br /&gt;            }&lt;br /&gt;            &lt;span class="kwrd"&gt;catch&lt;/span&gt; (Exception ex)&lt;br /&gt;            {&lt;br /&gt;                onRunWorkerCompleted(&lt;span class="kwrd"&gt;new&lt;/span&gt; RunWorkerCompletedEventArgs(&lt;span class="kwrd"&gt;null&lt;/span&gt;, ex, &lt;span class="kwrd"&gt;true&lt;/span&gt;));&lt;br /&gt;            }&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class="kwrd"&gt;private&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; onRunWorkerStarting()&lt;br /&gt;        {&lt;br /&gt;            IsExecuting = &lt;span class="kwrd"&gt;true&lt;/span&gt;;&lt;br /&gt;            &lt;span class="kwrd"&gt;if&lt;/span&gt; (RunWorkerStarting != &lt;span class="kwrd"&gt;null&lt;/span&gt;)&lt;br /&gt;                RunWorkerStarting(&lt;span class="kwrd"&gt;this&lt;/span&gt;, EventArgs.Empty);&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class="kwrd"&gt;private&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; onRunWorkerCompleted(RunWorkerCompletedEventArgs e)&lt;br /&gt;        {&lt;br /&gt;            IsExecuting = &lt;span class="kwrd"&gt;false&lt;/span&gt;;&lt;br /&gt;            &lt;span class="kwrd"&gt;if&lt;/span&gt; (RunWorkerCompleted != &lt;span class="kwrd"&gt;null&lt;/span&gt;)&lt;br /&gt;                RunWorkerCompleted(&lt;span class="kwrd"&gt;this&lt;/span&gt;, e);&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;virtual&lt;/span&gt; &lt;span class="kwrd"&gt;bool&lt;/span&gt; CanExecute(&lt;span class="kwrd"&gt;object&lt;/span&gt; parameter)&lt;br /&gt;        {&lt;br /&gt;            &lt;span class="kwrd"&gt;return&lt;/span&gt; !IsExecuting;&lt;br /&gt;        }&lt;br /&gt;    }&lt;/pre&gt;&lt;br /&gt;&lt;style type="text/css"&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, "Courier New", courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;style type="text/css"&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, "Courier New", courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;From this point, you can override CanExecute and OnExectute to provide the actual body of your command.&amp;#160; While an asynchronous operation is executing the button/checkbox (any inheritor of &lt;a href="http://msdn2.microsoft.com/en-us/ms611651"&gt;ButtonBase&lt;/a&gt;) will be disabled.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;If you need to pass a parameter in you can do so with &lt;a href="http://msdn2.microsoft.com/en-us/ms605187"&gt;CommandParameter&lt;/a&gt;, but one caution is in order.&amp;#160; There is some advice that for passing multiple to &lt;a href="http://msdn2.microsoft.com/en-us/ms605187"&gt;CommandParameter&lt;/a&gt; you should pass a complex object in an instance field, or resource that parts of your form bind to.&amp;#160; While this works fine for synchronous invocation it could be problematic for asynchronous because the bindings can alter the object while your asynchronous code is executing.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;What I do when I need to pass in multiple values is to use a &lt;a href="http://msdn2.microsoft.com/en-us/ms613613"&gt;IMultiValueConverter&lt;/a&gt; and &lt;a href="http://msdn2.microsoft.com/en-us/ms613634"&gt;MultiBinding&lt;/a&gt;.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;Button.CommandParameter&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;MultiBinding&lt;/span&gt; &lt;span class="attr"&gt;Converter&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;{StaticResource InstallServiceParameterConverter}&amp;quot;&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;MultiBinding.Bindings&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;Binding&lt;/span&gt; &lt;span class="attr"&gt;ElementName&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;_this&amp;quot;&lt;/span&gt; &lt;span class="attr"&gt;Path&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;IsInstalled&amp;quot;&lt;/span&gt;&lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;Binding&lt;/span&gt; &lt;span class="attr"&gt;ElementName&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;localURI&amp;quot;&lt;/span&gt; &lt;span class="attr"&gt;Path&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;Text&amp;quot;&lt;/span&gt;&lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;Binding&lt;/span&gt; &lt;span class="attr"&gt;ElementName&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;meshURI&amp;quot;&lt;/span&gt; &lt;span class="attr"&gt;Path&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;Text&amp;quot;&lt;/span&gt;&lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;      &lt;span class="kwrd"&gt;&amp;lt;&lt;/span&gt;&lt;span class="html"&gt;Binding&lt;/span&gt; &lt;span class="attr"&gt;ElementName&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;registerWithMesh&amp;quot;&lt;/span&gt; &lt;span class="attr"&gt;Path&lt;/span&gt;&lt;span class="kwrd"&gt;=&amp;quot;IsChecked&amp;quot;&lt;/span&gt;&lt;span class="kwrd"&gt;/&amp;gt;&lt;/span&gt;&lt;br /&gt;    &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;MultiBinding.Bindings&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;  &lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;MultiBinding&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="kwrd"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="html"&gt;Button.CommandParameter&lt;/span&gt;&lt;span class="kwrd"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;style type="text/css"&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, "Courier New", courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;style type="text/css"&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, "Courier New", courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;It is a bit clunky, especially with the converter, but it's also safe since your Command will be passed a newly created object.&amp;#160; I'm still looking for better solutions, but so far this seems the closest to ideal.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23716553-8475189156657421859?l=tech.norabble.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=XPDy7MZN"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=XPDy7MZN" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=CCqvorMq"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=nheN4xVQ"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=42" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=iZXFB88f"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=VWmHbfWt"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=SEHrivN8"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=SEHrivN8" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=F2B0ZuPz"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=145" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=mRepnaQi"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=45" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Technorabble/~4/-JlHgJFZN3A" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Technorabble/~3/-JlHgJFZN3A/asynchronous-wpf.html</link><author>ryan.technorabble@gmail.com</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://tech.norabble.com/2008/10/asynchronous-wpf.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23716553.post-6437612360779688765</guid><pubDate>Thu, 16 Oct 2008 19:32:00 +0000</pubDate><atom:updated>2008-10-16T14:32:05.793-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">general</category><title>Two Forms of Confidence</title><description>&lt;p&gt;What's the difference between confidence and meglomania?&amp;#160; I don't think it's so much a difference in the degree of confidence, but a difference in the perception of what a capable individual can accomplish.&amp;#160; If a person is very smart, then they are confident if they believes the same thing.&amp;#160; But to be meglomaniacal, doesn't need to believe they are inhumanly smart, they just need to believe that a very smart person is capable of fixing everything with a single thought.&amp;#160; They need to believe that perfection really is possible.&lt;/p&gt;  &lt;p&gt;In a sense, to be meglomaniacal, a person must be dumb to the reality of life, to the wisdom that mistakes happen, even to the best of us.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23716553-6437612360779688765?l=tech.norabble.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=wrPIVr9q"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=wrPIVr9q" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=6azr8f0s"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=tLP7dcFm"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=42" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=FTyAkRf8"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=ys3bkcAh"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=LLcVpyoM"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=LLcVpyoM" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=r9bGrrfs"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=145" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=BQaPbwjs"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=45" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Technorabble/~4/GIQoQHLBZds" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Technorabble/~3/GIQoQHLBZds/two-forms-of-confidence.html</link><author>ryan.technorabble@gmail.com</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://tech.norabble.com/2008/10/two-forms-of-confidence.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23716553.post-1029255137306583051</guid><pubDate>Thu, 16 Oct 2008 00:14:00 +0000</pubDate><atom:updated>2009-03-22T15:36:18.429-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">general software</category><category domain="http://www.blogger.com/atom/ns#">.NET</category><category domain="http://www.blogger.com/atom/ns#">deSleeper</category><category domain="http://www.blogger.com/atom/ns#">vista</category><category domain="http://www.blogger.com/atom/ns#">environment</category><category domain="http://www.blogger.com/atom/ns#">general programming</category><title>deSleeper 0.8</title><description>&lt;p&gt;&lt;a href="http://www.codeplex.com/desleeper/Release/ProjectReleases.aspx?ReleaseId=18357"&gt;Another version of deSleeper&lt;/a&gt; was posted to &lt;a href="http://www.codeplex.com/desleeper"&gt;CodePlex&lt;/a&gt; last night.&amp;#160; The important part is it fixes the networking tab so that XP users can now easily setup their network card for WakeOnLan functions without knowing needing to be a Windows expert.&amp;#160; Also added the ability to set the sleep timer from the same place.&amp;#160; That was a fair bit more work since I wrapped up the &lt;a href="http://msdn.microsoft.com/en-us/library/aa373163(VS.85).aspx"&gt;Power Management APIs&lt;/a&gt; to do so.&amp;#160; But now I have a nice clean .NET interface for power management which hides the behind the scene changes from XP to Vista.&amp;#160; &lt;/p&gt;  &lt;p&gt;I'll post more about that later, but if you're considering writing a .NET app that deals with setting up power management you may want to check it out.&amp;#160; Since deSleeper is Apache, it's free to reuse with some mild attribution.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23716553-1029255137306583051?l=tech.norabble.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=htY2kptF"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=htY2kptF" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=V2eX56r1"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=3eVRZTbP"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=42" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=JkUwwPqc"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=4j1tEcYx"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=7MZbCjww"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=7MZbCjww" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=8TwHgtVM"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=145" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=PJcCpAeW"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=45" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Technorabble/~4/aAj49Mm_m6s" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Technorabble/~3/aAj49Mm_m6s/desleeper-08.html</link><author>ryan.technorabble@gmail.com</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://tech.norabble.com/2008/10/desleeper-08.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23716553.post-4042882434558861741</guid><pubDate>Sun, 28 Sep 2008 19:10:00 +0000</pubDate><atom:updated>2008-09-28T14:10:21.031-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">general software</category><category domain="http://www.blogger.com/atom/ns#">.NET</category><category domain="http://www.blogger.com/atom/ns#">ideas</category><category domain="http://www.blogger.com/atom/ns#">language design</category><category domain="http://www.blogger.com/atom/ns#">general programming</category><title>Baking the Abstract Factory Pattern</title><description>&lt;p&gt;The abstract factory pattern is a common fixture of well designed code.&amp;#160; As useful as it is, it can be an annoying pattern because the scaffolding to implementation ratio is quite high.&amp;#160; It also breaks up code that &lt;strong&gt;most&lt;/strong&gt; of the time should be together.&amp;#160; Other patterns that reach this level of usage often benefit from being baked into the language framework, so why not this pattern.&lt;/p&gt;  &lt;p&gt;Let's look at a fairly basic implementation:&lt;/p&gt;  &lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;interface&lt;/span&gt; ButtonFactory&lt;br /&gt;{&lt;br /&gt;  Button CreateButton();&lt;br /&gt;  Button CreateButton(Control parent);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;interface&lt;/span&gt; Button&lt;br /&gt;{&lt;br /&gt;  &lt;span class="kwrd"&gt;void&lt;/span&gt; Draw();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; WinButtonFactory : ButtonFactory&lt;br /&gt;{&lt;br /&gt;  &lt;span class="kwrd"&gt;public&lt;/span&gt; Button CreateButton() { &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;new&lt;/span&gt; WinButton(); }&lt;br /&gt;  &lt;span class="kwrd"&gt;public&lt;/span&gt; Button CreateButton(Control parent) { &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;new&lt;/span&gt; WinButton(parent); }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; WinButton : Button&lt;br /&gt;{&lt;br /&gt;  &lt;span class="kwrd"&gt;internal &lt;/span&gt;WinButton() { ... implementation ... }&lt;br /&gt;  &lt;span class="kwrd"&gt;internal &lt;/span&gt;WinButton()  { ... implementation ... }&lt;br /&gt;&lt;br /&gt;  &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; Draw() { ... implementation ... }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; SampleUser&lt;br /&gt;{&lt;br /&gt;  &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; UseFactory()&lt;br /&gt;  {&lt;br /&gt;    ButtonFactory factory = &lt;span class="kwrd"&gt;new&lt;/span&gt; WinButtonFactory();&lt;br /&gt;    Button parent = factory.Create();&lt;br /&gt;    Button child = factory.Create(parent);&lt;br /&gt;  }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;This is okay, but if we had a little syntax help:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;interface&lt;/span&gt; Button&lt;br /&gt;{&lt;br /&gt;  Button();&lt;br /&gt;  Button(Control parent);&lt;br /&gt;  &lt;span class="kwrd"&gt;void&lt;/span&gt; Draw();&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; WinButton : Button&lt;br /&gt;{&lt;br /&gt;  &lt;span class="kwrd"&gt;public&lt;/span&gt; WinButton() { ... implementation ... }&lt;br /&gt;  &lt;span class="kwrd"&gt;public&lt;/span&gt; WinButton()  { ... implementation ... }&lt;br /&gt;&lt;br /&gt;  &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; Draw() { ... implementation ... }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; SampleUser&lt;br /&gt;{&lt;br /&gt;  &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; UseFactory()&lt;br /&gt;  {&lt;br /&gt;    Factory&amp;lt;Button&amp;gt; factory = WinButton.GetFactory&amp;lt;Button&amp;gt;();&lt;br /&gt;    Button parent = factory;&lt;br /&gt;    Button child = factory(parent);&lt;br /&gt;  }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;style type="text/css"&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, "Courier New", courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;That's a fair bit more succinct, and it also allows the definition of the &amp;quot;Create&amp;quot; to reside within the interface, making it much more obvious to consumers of the API the relationship between the factory and the interface.&amp;#160; The same is true for the implementation, where it's no longer necessary to either provide a workaround to the visibility issues that arise from having object initialization in a separate class.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Some might object on the basis that the use of the factory pattern extends beyond the example above, but those uses can still be accommodated:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; ColoredButtonFactory : Factory&amp;lt;Button&amp;gt;&lt;br /&gt;{&lt;br /&gt;  &lt;span class="kwrd"&gt;private&lt;/span&gt; Color _color;&lt;br /&gt;  &lt;span class="kwrd"&gt;private&lt;/span&gt; Factory&amp;lt;Button&amp;gt; _factory;&lt;br /&gt;  &lt;span class="kwrd"&gt;public&lt;/span&gt; ColoredButtonFactory(Color color, ButtonFactory factory);&lt;br /&gt;  {&lt;br /&gt;    _color = color;&lt;br /&gt;    _factory = factory;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  &lt;span class="kwrd"&gt;public&lt;/span&gt; Button()&lt;br /&gt;  {&lt;br /&gt;    Button button = _factory();&lt;br /&gt;    button.Color = _color;&lt;br /&gt;    &lt;span class="kwrd"&gt;return&lt;/span&gt; button;&lt;br /&gt;  }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;style type="text/css"&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, "Courier New", courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Which is equivalent to this implementation without language level factory support:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; ColoredButtonFactory : ButtonFactory&lt;br /&gt;{&lt;br /&gt;  &lt;span class="kwrd"&gt;private&lt;/span&gt; Color _color;&lt;br /&gt;  &lt;span class="kwrd"&gt;private&lt;/span&gt; ButtonFactory _factory;&lt;br /&gt;  &lt;span class="kwrd"&gt;public&lt;/span&gt; ColoredButtonFactory(Color color, ButtonFactory factory);&lt;br /&gt;  {&lt;br /&gt;    _color = color;&lt;br /&gt;    _factory = factory;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  &lt;span class="kwrd"&gt;public&lt;/span&gt; Button CreateButton()&lt;br /&gt;  {&lt;br /&gt;    Button button = factory.CreateButton();&lt;br /&gt;    button.Color = _color;&lt;br /&gt;    &lt;span class="kwrd"&gt;return&lt;/span&gt; button;&lt;br /&gt;  }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;style type="text/css"&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, "Courier New", courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;style type="text/css"&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, "Courier New", courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;An alternative (with pluses and minuses) the language level factory support would allow for is:&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; ColoredButtonFactory&amp;lt;TButton&amp;gt; : Factory&amp;lt;TButton&amp;gt;&lt;br /&gt;  &lt;span class="kwrd"&gt;where&lt;/span&gt; TButton : Button&lt;br /&gt;{&lt;br /&gt;  &lt;span class="kwrd"&gt;private&lt;/span&gt; Color _color;&lt;br /&gt;  &lt;span class="kwrd"&gt;public&lt;/span&gt; ColoredButtonFactory(Color color);&lt;br /&gt;  {&lt;br /&gt;    _color = color;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  &lt;span class="kwrd"&gt;public&lt;/span&gt; TButton()&lt;br /&gt;  {&lt;br /&gt;    TButton button = &lt;span class="kwrd"&gt;new&lt;/span&gt; TButton();&lt;br /&gt;    button.Color = _color;&lt;br /&gt;    &lt;span class="kwrd"&gt;return&lt;/span&gt; button;&lt;br /&gt;  }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;style type="text/css"&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, "Courier New", courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23716553-4042882434558861741?l=tech.norabble.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=ANb3gt6u"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=ANb3gt6u" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=66pAz1SN"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=s40lBOV0"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=42" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=8kvkKJUv"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=KcxnAoM4"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=a04VYN7R"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=a04VYN7R" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=ZlJZ4fqN"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=145" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=56NR9Q0k"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=45" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Technorabble/~4/llnXICZ52z8" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Technorabble/~3/llnXICZ52z8/baking-abstract-factory-pattern.html</link><author>ryan.technorabble@gmail.com</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">3</thr:total><feedburner:origLink>http://tech.norabble.com/2008/09/baking-abstract-factory-pattern.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23716553.post-8493032062841565198</guid><pubDate>Thu, 25 Sep 2008 04:02:00 +0000</pubDate><atom:updated>2009-03-22T15:36:49.803-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">general software</category><category domain="http://www.blogger.com/atom/ns#">.NET</category><category domain="http://www.blogger.com/atom/ns#">ideas</category><category domain="http://www.blogger.com/atom/ns#">deSleeper</category><category domain="http://www.blogger.com/atom/ns#">environment</category><category domain="http://www.blogger.com/atom/ns#">general programming</category><title>deSleeper Beta 0.5</title><description>&lt;p&gt;&lt;a href="http://www.codeplex.com/desleeper/Release/ProjectReleases.aspx?ReleaseId=17665"&gt;Another update to deSleeper&lt;/a&gt; finished up today.&amp;#160; I've been trying to make it a bit more user friendly.&amp;#160; I should have finished a bootstrapper but I got distracted by some other wants...&amp;#160; For example a much better way to get your credentials in and a way for you to wake up a system via host name (i.e. mypc.mycompaniesinternaldomainname.com).&amp;#160; &lt;/p&gt;  &lt;p&gt;The catch to this second feature is that for most PCs it's only possible to resolve a host name to a MAC address while the computer is actually on.&amp;#160; What deSleeper does is store a cache of hostname/MAC address pairs so that it can do that resolution when the computer is off, but to make that work it has to search at least once to populate the cache.&amp;#160; So if you have your target machine on, send a wake up request with the client that will cache the hostname.&amp;#160; Then you can use the hostname with target off.&amp;#160; Since this is a new feature, might want to make sure you have the MAC address available just in case though.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23716553-8493032062841565198?l=tech.norabble.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=oApMvFZu"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=oApMvFZu" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=yf7Dy08k"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=EPnX8mbR"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=42" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=7MGCALJo"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=WMEqziRg"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=dQT96w7l"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=dQT96w7l" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=PZpPMFUt"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=145" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=kHajXEKc"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=45" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Technorabble/~4/9FN-Sd0UJU0" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Technorabble/~3/9FN-Sd0UJU0/desleeper-beta-05.html</link><author>ryan.technorabble@gmail.com</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://tech.norabble.com/2008/09/desleeper-beta-05.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23716553.post-9193404995643459270</guid><pubDate>Sat, 13 Sep 2008 16:18:00 +0000</pubDate><atom:updated>2008-09-13T11:18:55.225-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">environment</category><title>The end of the light bulb joke</title><description>&lt;p&gt;&lt;em&gt;Question: &lt;/em&gt;In 2020, how many kids will it take to change a light?&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;em&gt;Answer:&lt;/em&gt; None, LED lights last 20 years so they'll be adults before one burns out.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23716553-9193404995643459270?l=tech.norabble.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=D1LQbCqU"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=D1LQbCqU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=jfKAJ8Mt"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=6Abt6CFm"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=42" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=pHazoumd"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=Tu3EnueN"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=2dV5oToI"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=2dV5oToI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=lq30skfq"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=145" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=dfRK6zSd"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=45" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Technorabble/~4/unh1FO5sdRo" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Technorabble/~3/unh1FO5sdRo/end-of-light-bulb-joke.html</link><author>ryan.technorabble@gmail.com</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://tech.norabble.com/2008/09/end-of-light-bulb-joke.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23716553.post-1523688496334827408</guid><pubDate>Tue, 09 Sep 2008 02:04:00 +0000</pubDate><atom:updated>2009-03-22T15:37:53.331-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">general software</category><category domain="http://www.blogger.com/atom/ns#">.NET</category><category domain="http://www.blogger.com/atom/ns#">ideas</category><category domain="http://www.blogger.com/atom/ns#">deSleeper</category><category domain="http://www.blogger.com/atom/ns#">environment</category><category domain="http://www.blogger.com/atom/ns#">general programming</category><title>deSleeper Beta 2 Released</title><description>&lt;p&gt;I posted a new build of &lt;a title="deSleeper - Wake On Lan for restricted networks" href="http://codeplex.com/desleeper"&gt;deSleeper&lt;/a&gt; to CodePlex last night.&amp;#160; I was interested in learning a bit more about WPF so I used some of that time to touch up the UI and neaten things up under the covers a bit.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh4.ggpht.com/ryan.technorabble/SMXZsNLuugI/AAAAAAAAAH0/YqQ_Pcg08Nw/s1600-h/image%5B5%5D.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="deSleeper Wake Up Tab" src="http://lh4.ggpht.com/ryan.technorabble/SMXZtFleyQI/AAAAAAAAAH4/2GiyR3v3uts/image_thumb%5B3%5D.png?imgmax=800" width="644" height="305" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Also, feature wise, I've added a tab to help you configure the &amp;quot;target&amp;quot; machine's network card driver to accept wake up requests.&amp;#160; You can do the same things through device manager and control panel, but this is a bit more convenient.&amp;#160; One note though, to support Wake-on-Lan requests from all power states (such as hibernate and power off) you still need to make sure the BIOS is properly configured.&amp;#160; The network card driver usually can't do anything more than make sure you can come out of a sleep state.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lh3.ggpht.com/ryan.technorabble/SMXZuHzxBoI/AAAAAAAAAH8/w1QIgG02Nhs/s1600-h/image%5B13%5D.png"&gt;&lt;img style="border-right-width: 0px; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" border="0" alt="image" src="http://lh4.ggpht.com/ryan.technorabble/SMXZvMUqZqI/AAAAAAAAAIA/dERv9k5bG00/image_thumb%5B9%5D.png?imgmax=800" width="764" height="414" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;I still have a more plans for deSleeper, such as a distributed mesh system (this should allow you to take by hostname or IP, rather than MAC address), but I thought I'd mention &lt;a href="http://www.1e.com/SoftwareProducts/1EWakeUp/Features.aspx"&gt;1E WakeUp&lt;/a&gt; I ran across recently that while it may cost a bit does appear to tackle the same issues as deSleeper.&amp;#160; If your a network admin with lots of computers to configure, I won't blame you for choosing 1E over deSleeper.&amp;#160; As long as you get your office setup to allow those hard working PCs have a good nights sleep, I'll be happy.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23716553-1523688496334827408?l=tech.norabble.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=FUqF9oLZ"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=FUqF9oLZ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=TFk8uDqT"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=cgg3r1bJ"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=42" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=Gmc0Hb7K"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=KljZQD0W"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=yuKNiZKR"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=yuKNiZKR" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=65P8Kend"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=145" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=ZMijUNPm"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=45" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Technorabble/~4/vv9GGStr1aw" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Technorabble/~3/vv9GGStr1aw/desleeper-beta-2-released.html</link><author>ryan.technorabble@gmail.com</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://tech.norabble.com/2008/09/desleeper-beta-2-released.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23716553.post-1534384102256513314</guid><pubDate>Tue, 09 Sep 2008 01:42:00 +0000</pubDate><atom:updated>2008-09-08T20:42:08.381-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">general</category><category domain="http://www.blogger.com/atom/ns#">environment</category><title>Should the U.S. drill "everywhere"?</title><description>&lt;p&gt;My purist thinking side says, no, the places where the opportunity to drill remains restricted are a combination of costly to recover, dangerous to recover, and not very large anyhow.&amp;#160; I'd rather see the money spent on building solar panels, wind farms, battery cars, hybrid cars or even cellulosic biofuel than on oil platforms, deep water drilling, and all the complicated machinery necessary to keep the environmental effects of drilling obnoxious rather than disastrous.&lt;/p&gt;  &lt;p&gt;My political compromising side says, drilling is dumb, but it's only a little bit dumb.&amp;#160; It's not as dumb as letting solar and wind tax credits expire, it's not as dumb as subsidizing the oil companies, it's not as dumb as driving an SUV, and it's certainly not as dumb as not investing in public transportation.&amp;#160; I also realize that a significant number of people not only fail to realize how dumb those other acts are, but think that drilling is the most brilliant idea ever conceived.&amp;#160; So I recognize an opportunity here, an opportunity to trade-in on the totally out of proportion enthusiasm drilling inspires in the opponents of public transportation and renewable energy.&amp;#160; It's not perfect, but that's what politics and compromise are.&lt;/p&gt;  &lt;p&gt;My dark, sarcastic side goes further.&amp;#160; That part thinks, well maybe it's really important to allow the drilling, because if we do, it won't be more than 6 months later before the proponents of drilling realize how stupid they were to think it was the solution to the problem.&amp;#160; Sure, you have politicians who support drilling who say things like &amp;quot;drilling will not solve all of America's energy problems - as if we all didn't know that already&amp;quot;, but among their supporters and colleagues individuals who really believe that is &lt;strong&gt;&lt;u&gt;the&lt;/u&gt;&lt;/strong&gt; solution, and that somehow it will take effect tomorrow too.&amp;#160; I'd like to burst their bubble just for spite.&amp;#160; Let em try and drill there way out and see the look on their faces when they finally realize 6 months to a year later, hey, it's gonna take 10 years, cost a lot and even then be no more than a drop in the bucket.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23716553-1534384102256513314?l=tech.norabble.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=PlgpNzwv"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=PlgpNzwv" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=rfB5Ldjq"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=ybcqmP4D"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=42" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=bIXBjvyI"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=NkUKvh5e"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=04iUSIFo"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=04iUSIFo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=Onwr7ykZ"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=145" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=CzDkf5Fn"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=45" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Technorabble/~4/O4w_sq2eKAs" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Technorabble/~3/O4w_sq2eKAs/should-us-drill.html</link><author>ryan.technorabble@gmail.com</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://tech.norabble.com/2008/09/should-us-drill.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23716553.post-3906888434107259220</guid><pubDate>Sat, 16 Aug 2008 04:14:00 +0000</pubDate><atom:updated>2009-03-22T15:39:04.603-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">general software</category><category domain="http://www.blogger.com/atom/ns#">.NET</category><category domain="http://www.blogger.com/atom/ns#">ideas</category><category domain="http://www.blogger.com/atom/ns#">deSleeper</category><category domain="http://www.blogger.com/atom/ns#">environment</category><category domain="http://www.blogger.com/atom/ns#">general programming</category><title>deSleeper Beta Released</title><description>&lt;p&gt;A bit later than planned, but I've just uploaded the first release of deSleeper.&amp;#160; To download go to:&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;a title="http://www.codeplex.com/desleeper/Release/ProjectReleases.aspx?ReleaseId=16344" href="http://www.codeplex.com/desleeper/Release/ProjectReleases.aspx?ReleaseId=16344"&gt;http://desleeper.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=16344&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;This release, in my rather limited test environment, works as a proxy.&amp;#160; There is more functionality planned to extend the reach and make it a bit more user-friendly (no MAC addresses, for example) which may or may/not be working.&amp;#160; But basic proxy is working fine.&lt;/p&gt;  &lt;p&gt;You'll want to install &lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=ab99342f-5d1a-413d-8319-81da479ab0d7&amp;amp;displaylang=en"&gt;.NET 3.5 SP1&lt;/a&gt; before using deSleeper.&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/23716553-3906888434107259220?l=tech.norabble.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=7G78KYnU"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=7G78KYnU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=pzTMP5YG"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=tqnqrzQI"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=42" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=hxbW7iIa"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=GYppFPAY"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=4oP2mo9d"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=4oP2mo9d" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=yGr3U2QP"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=145" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=qg2gnd3x"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=45" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Technorabble/~4/5w3PSnasc3w" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Technorabble/~3/5w3PSnasc3w/desleeper-beta-released.html</link><author>ryan.technorabble@gmail.com</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://tech.norabble.com/2008/08/desleeper-beta-released.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-23716553.post-9219502344446262240</guid><pubDate>Tue, 29 Jul 2008 00:40:00 +0000</pubDate><atom:updated>2008-07-28T19:40:38.735-05:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ideas</category><category domain="http://www.blogger.com/atom/ns#">environment</category><title>Paper, Plastic or Wood?</title><description>&lt;p&gt;I find stories about recycled &lt;a href="http://www.ecogeek.org/content/view/1928/"&gt;plastic based building materials&lt;/a&gt; encouraging.&amp;#160; It's ironic that plastics, which can take decades or centuries to decompose, have been so heavily used in the products with transient lives, but wood which decomposes much more readily is the primary component of homes, which we at least hope will last much much longer.&amp;#160; The plastic bag for example, which on average is probably used about 30 minutes a piece.&amp;#160; Even computers and electronics, which at best will last ten years, usually less, before being obsolete.&lt;/p&gt;  &lt;p&gt;There were many other factors which have lead to the current state, of plastics being part of the most disposable products, but I think a number of them are changing and I won't be at all surprised to find that some of the intrinsic characteristics of plastics, rather than the incidental characteristics of early plastics, will play a greater role in their future.&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/23716553-9219502344446262240?l=tech.norabble.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=PONgjvFz"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=PONgjvFz" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=Nz98HSI4"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=41" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=RlG6vFec"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=42" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=KiLQkVLt"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=50" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=v5YCFfbO"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=43" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=53VCN079"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?i=53VCN079" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=9MZshf7C"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=145" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~f/Technorabble?a=KjFxPXaz"&gt;&lt;img src="http://feeds.feedburner.com/~f/Technorabble?d=45" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/Technorabble/~4/3J1fvkUkpYo" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/Technorabble/~3/3J1fvkUkpYo/paper-plastic-or-wood.html</link><author>ryan.technorabble@gmail.com</author><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total><feedburner:origLink>http://tech.norabble.com/2008/07/paper-plastic-or-wood.html</feedburner:origLink></item><language>en-us</language></channel></rss>
