<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Peter Wooley's Blog &#187; Theory</title>
	<atom:link href="http://blog.peterwooley.com/category/theory/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.peterwooley.com</link>
	<description>Learning Design, Usability &#038; Programming as best I can.</description>
	<lastBuildDate>Wed, 12 Aug 2009 20:59:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>89.9 &amp; My Top 5 Todos</title>
		<link>http://blog.peterwooley.com/2009/07/899-my-top-5-todos/</link>
		<comments>http://blog.peterwooley.com/2009/07/899-my-top-5-todos/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 06:05:58 +0000</pubDate>
		<dc:creator>Peter Wooley</dc:creator>
				<category><![CDATA[Theory]]></category>

		<guid isPermaLink="false">http://blog.peterwooley.com/?p=470</guid>
		<description><![CDATA[I&#8217;m running out of podcasts to listen to on my commute. With two hours of driving every day, I&#8217;m managing to burn through more audio than I ever have. Currently, my favorites are StackOverflow, Software Engineering Radio, and Hanselminutes. I&#8217;ve been catching TWiT Live, but haven&#8217;t clicked the three buttons it would take to subscribe [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m running out of podcasts to listen to on my commute. With two hours of driving every day, I&#8217;m managing to burn through more audio than I ever have. Currently, my favorites are <a href="http://blog.stackoverflow.com/category/podcasts/">StackOverflow</a>, <a href="http://se-radio.net/">Software Engineering Radio</a>, and <a href="http://www.hanselminutes.com/">Hanselminutes</a>. I&#8217;ve been catching <a href="http://twit.tv/">TWiT</a> Live, but haven&#8217;t clicked the three buttons it would take to subscribe in iTunes.</p>
<p>Given the nearly two months since I started at McAfee, I&#8217;ve now officially caught up on everything. Late last week, I tuned to the radio to find something entertaining. There&#8217;s a #fail. In the morning, I couldn&#8217;t escape the morning shows. In the afternoon, everything sounded the same. In frustration, I ended up turning off the radio and just sitting in silence.</p>
<h3>Silence isn&#8217;t golden</h3>
<p>After two sessions of silence, I realized that I wasn&#8217;t just sitting with my thoughts, but rather noticing every sound in and out of my car. My fan makes a really annoying clicking when the dial is set below the 3rd setting. Combustion engines are loud and rumbly—why don&#8217;t we have plug-in commuter cars yet? You really shouldn&#8217;t buy cars with a light-colored interior; they can&#8217;t hide dirt and just look dingy all the time.</p>
<h3>Embrace the Classical</h3>
<p>Yesterday evening, I remembered that I had skipped one station in my search for listenable radio: <a href="http://www.allclassical.org/">89.9 All Classical</a>. For three trips now, I&#8217;ve been listening to the sounds of Strauss, Bach, and other composers I will never remember. Suddenly, I wasn&#8217;t listening to my car, or the outside world, or my tangential thoughts, I was thinking about my life, dreams, and goals. (Do note, I wasn&#8217;t paying that much attention to the music, sorry Strauss!)</p>
<p>I even came up with a list of things I want to do in the very near future:</p>
<ol>
<li>Build a Social, Browser-based Game</li>
<li>Host my own 1U box at a <a href="http://en.wikipedia.org/wiki/Colocation_centre">Colo</a></li>
<li>Beat Super Mario Galaxy (I have 35 stars)</li>
<li>Write software to <a href="http://www.arduino.cc/">make a tangible object move</a></li>
<li>Finish development of a Web App that&#8217;ll fulfill a dream</li>
<li><em>Bonus:</em> Hold my newborn baby</li>
</ol>
<p>Now that I have the content for my drive, I need to figure out how to make the trip shorter so I can get some more work done!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.peterwooley.com/2009/07/899-my-top-5-todos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Newspeak Won&#8217;t Reinvent the Web</title>
		<link>http://blog.peterwooley.com/2009/07/newspeak-wont-reinvent-the-web/</link>
		<comments>http://blog.peterwooley.com/2009/07/newspeak-wont-reinvent-the-web/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 04:36:40 +0000</pubDate>
		<dc:creator>Peter Wooley</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Theory]]></category>

		<guid isPermaLink="false">http://blog.peterwooley.com/?p=466</guid>
		<description><![CDATA[What George Orwell may not have realized when creating 1984&#8217;s Newspeak was that a language that could shrink rather than grow might actually be a good idea. For the past two years, Gilad Bracha and a few other folks have been working on a new programming language, called Newspeak, that might actually be able to [...]]]></description>
			<content:encoded><![CDATA[<p>What George Orwell may not have realized when creating <a href="http://en.wikipedia.org/wiki/Newspeak">1984&#8217;s Newspeak</a> was that a language that could shrink rather than grow might actually be a <em>good</em> idea. For the past two years, <a href="http://bracha.org/">Gilad Bracha</a> and a few other folks have been working on a new programming language, <a href="http://newspeaklanguage.org/">called Newspeak</a>, that might actually be able to start off with a mind-bendingly huge feature set, but do it all with just a few brilliant concepts and stay remarkably small in the process.</p>
<p>Josh, a co-worker of mine and a <a href="http://www.slideshare.net/al3x/why-scala-presentation">Serial Language Enthusiast</a>, let me know about this new development. Part <a href="http://en.wikipedia.org/wiki/Smalltalk">Smalltalk</a>, a splash of <a title="http://www.daimi.au.dk/~beta/" href="http://www.daimi.au.dk/%7Ebeta/">Beta</a>, a helping of <a title="http://research.sun.com/self/language.html" href="http://research.sun.com/self/language.html">Self</a>, and a sprinkling of Pixie Dust makes this language one to take a look at. In <a href="http://www.se-radio.net/podcast/2009-07/episode-140-newspeak-and-pluggable-types-gilad-bracha">Episode 140 of Software Engineering Radio</a>, Gilad explained the concepts of the language. Three things jumped out at me:</p>
<ol>
<li><strong>Class hierarchies</strong>, as in Classes within classes within classes. Classes, Modules, Namespaces, and Mixins are all handled with the same construct. Top-level classes are Namespaces and you can have multiple instances of these as Modules—giving you side-by-side deployments—and Mixins come by default as all parent classes are dynamically set at runtime.</li>
<li><strong>Dynamic Typing</strong> is used, which I love, but they&#8217;re working on implementing Pluggable Types, an <em>optional</em> typing system that will allow custom type grammars. Though, keeping a dynamic runtime, the types will only be checked at compile time, which is basically the opposite of ActionScript 3 running without strict mode.</li>
<li><strong>Network Aware</strong>. The language <em>knows</em> the Internet, <a href="http://newspeaklanguage.org/">as indicated on the Newspeak homepage</a>:<br />
<blockquote><p>&#8230;we believe in a notion of service oriented computing that allows for off-line operation and leverages the inherent advantages of client devices, while utilizing the strengths of the network.</p></blockquote>
</li>
</ol>
<p>For someone working on the web, this is exciting stuff. Going beyond simply being aware of the network, Newspeak will not only sync with data from the cloud, but with the <em>entire application</em>—running application code client-side. It&#8217;ll be like updating the latest version of <a href="http://tweetdeck.com/">TweetDeck</a> through <a href="http://www.adobe.com/products/air/">AIR</a>&#8217;s update system, but only the modified application objects and data will be sent over the wire. Now this next part is purely conjecture, but as multicore processing will be a focus of Newspeak, an implementation of Erlang-style actors may not be out of the question, and hot-swappable code could make the entire update process as smooth as butter.</p>
<h3>What I have to disagree with</h3>
<p>From <a href="http://www.se-radio.net/podcast/2009-07/episode-140-newspeak-and-pluggable-types-gilad-bracha">Episode 140 of Software Engineering Radio</a> (starting at 2:06), Gilad says,</p>
<blockquote><p>The real goal of Newspeak is to create a really nice environment where you can program for the  web without worrying about the web, without dealing with all the mechanics of different languages: CSS, HTML, DOM, Database back-end, whatever. In general, to create a language—not just to run in a web browser—but a language for a network world.</p></blockquote>
<p><strong>Hold it right there!</strong> Newspeak sounds like a great idea, but I&#8217;m not convinced it will allow people to &#8220;program for the web without worrying about the web.&#8221; If anything, this sounds like ASP.NET and its automagic markup, styles, and scripts that makes kittens cry. While the day may come when HTML will be treated as the <a href="http://softwaredevscott.spaces.live.com/Blog/cns!1A9E939F7373F3B7!429.entry">Assembly language of the Web</a>, we are far from it. With so many browsers, so many brand new ideas, and so much further to go in nearly every aspect, from content, accessibility, features, and speed, we&#8217;ll be lucky if we get there by 2030, when IE finally implements the <a href="http://www.w3.org/TR/2009/WD-css3-layout-20090402/">CSS3 Template Layout Module</a>.</p>
<p>By then, I will most likely be the <a href="http://www.dvorak.org/blog/">old, cantankerous coot</a> that still remembers the days when developers knew why you <a href="http://developer.yahoo.net/blog/archives/2007/07/high_performanc_5.html">put the <code>&lt;script /&gt;</code> at the bottom</a> and how to <a href="http://www.cssplay.co.uk/menus/final_drop.html">style a <code>&lt;ul /&gt;</code> to make drop-down navigation</a> without JavaScript. But, with HTML5 still on its way and CSS3 being slowly implemented module-after-module, I doubt I&#8217;ll have to be very cantankerous anytime soon. Until then, I&#8217;ll be playing with a new language and seeing what this Internet fad can really do—even if it isn&#8217;t reinvented by Newspeak.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.peterwooley.com/2009/07/newspeak-wont-reinvent-the-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Yes, I am staying at McAfee</title>
		<link>http://blog.peterwooley.com/2009/07/yes-i-am-staying-at-mcafee/</link>
		<comments>http://blog.peterwooley.com/2009/07/yes-i-am-staying-at-mcafee/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 02:45:54 +0000</pubDate>
		<dc:creator>Peter Wooley</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Theory]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[aipd]]></category>
		<category><![CDATA[mcafee]]></category>
		<category><![CDATA[tylersticka]]></category>
		<category><![CDATA[usdigital]]></category>
		<category><![CDATA[we]]></category>

		<guid isPermaLink="false">http://blog.peterwooley.com/?p=454</guid>
		<description><![CDATA[As you have no doubt heard, Tyler Sticka has announced that he will be leaving McAfee. Many of you know that Tyler and I attended the Art Institute of Portland together and, since then, we formed the first Interaction Design team at US Digital (along with Erik Jung), taught at the Art Institute of Portland, [...]]]></description>
			<content:encoded><![CDATA[<p>As you have no doubt heard, Tyler Sticka has announced that <a href="http://tylersticka.com/2009/07/im-joining-waggener-edstroms-studio-d/">he will be leaving McAfee</a>. Many of you know that Tyler and I attended the <a href="http://www.artinstitutes.edu/portland/">Art Institute of Portland</a> together and, since then, we formed the first Interaction Design team at <a href="usdigital.com/">US Digital</a> (along with <a href="http://jungcompany.com">Erik Jung</a>), taught at the Art Institute of Portland, and were working closely  on Enterprise software at McAfee.</p>
<p>Designing and developing with Tyler is an exhilarating experience. He&#8217;s quick, thoughtful, and engaging—and I know he&#8217;ll continue to go further as he takes his next step.</p>
<p>With our history, I imagine some might think I&#8217;ll be leaving to join Tyler in the near future. I want to say that, while working with Tyler is a ton of fun, I have no plans to leave McAfee. My current role has been, and is, an exciting challenge. With just over a month and a half under my belt, I&#8217;m enjoying both the people and code I get to develop with. The five day work weeks have been a little tough to get used to, along with <a href="http://www.editgrid.com/user/peterwooley/commute">the commute</a>, but free soda and fast-paced, testable, continuously-integrated web development is <em>awesome</em>.</p>
<p>While we may not be working under the same roof, do not fret; professionally <span title="Z2FidHJp">we are <em>not</em> done</span>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.peterwooley.com/2009/07/yes-i-am-staying-at-mcafee/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Lessons from WoW</title>
		<link>http://blog.peterwooley.com/2009/06/lessons-from-wow/</link>
		<comments>http://blog.peterwooley.com/2009/06/lessons-from-wow/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 03:20:31 +0000</pubDate>
		<dc:creator>Peter Wooley</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Theory]]></category>

		<guid isPermaLink="false">http://blog.peterwooley.com/?p=446</guid>
		<description><![CDATA[Recently at the Art Institute of Portland, I gave a presentation to my Advanced Scripting class on lessons web app developers can take from World of Warcraft. While playing one night, I stopped and pondered all of the things that just work. I began to consider why WoW was so wildly successful and thought about [...]]]></description>
			<content:encoded><![CDATA[<p>Recently at the <a href="http://www.artinstitutes.edu/portland/">Art Institute of Portland</a>, I gave a presentation to my Advanced Scripting class on lessons web app developers can take from <a href="http://worldofwarcraft.com">World of Warcraft</a>. While playing one night, I stopped and pondered all of the things that <em>just work</em>. I began to consider <em>why</em> WoW was so wildly successful and thought about what I could take from my experience as a player and apply to web development. The presentation is hosted below, which will be most easily understood if coupled with the notes following.</p>
<div style="width:425px;text-align:left" id="__ss_1665126"><object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=lessonsfromwow-090630215053-phpapp01&#038;stripped_title=lessons-from-wow" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=lessonsfromwow-090630215053-phpapp01&#038;stripped_title=lessons-from-wow" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object></div>
<h3>What&#8217;s the big deal?</h3>
<ul>
<li>World of Warcraft (or <dfn title="World of Warcraft">WoW</dfn>) <a href="http://www.blizzard.com/us/press/081121.html">reached 11.5 Million active subscriptions</a> before Christmas of 2008.</li>
<li>The graphics engine was originally <a href="http://www.gamespot.com/pc/rpg/worldofwarcraft/news.html?sid=2810134">built sometime during or before 2001</a>, making it around 8 years old.</li>
<li><a href="http://www.gamecyte.com/nielsen-ratings-show-wow-ps2-still-on-top-us-gamers-play-more-original-xbox-than-ps3">Nielsen reported</a> that during 2008, WoW players played an average of 671 minutes (or 11 hours) per week.</li>
<li><a href="http://www.worldofwarcraft.com/toplist/index.html?en,questcomplete">In the past week</a>, the quest titled <a href="http://www.wowhead.com/?quest=13627">Jack Me Some Lumber</a> was completed over 680,000 times.</li>
</ul>
<h3>World of Warcrafting Web Applications</h3>
<ul>
<li>The basics of a Web Application and WoW are similar:
<ul>
<li>Each attempts to create an Internet-based experience where users are given functionality they would not have in an offline or computerless world,</li>
<li>Each is served from servers that can crash, software that has bugs, and tubes that can get clogged,</li>
<li>And each has the imperative of creating an experience worth their users time and, potentially, money.</li>
</ul>
</li>
<li>As WoW is one of my main non-web hobbies, I want to justify why I spend my time (Over 75 days, logged in) and money ($727.48).</li>
<li>As I started to pay attention, the plethora of applicable lessons became obvious.</li>
</ul>
<h3>Take the time</h3>
<ul>
<li>Blizzard <a href="http://www.gamespot.com/pc/rpg/worldofwarcraft/news.html?sid=2810134">first announced development</a> of WoW in 2001, and released in November of 2004. Basically, three years.</li>
<li>Development was well under way by 2001, so it is not unreasonable to assume at least a year of work had gone into it by then. Essentially, 4 years, if not 5.</li>
<li><strong>Lesson</strong>: Spending the time to do it right, even when <a href="http://en.wikipedia.org/wiki/EverQuest_II">others</a> <a href="http://en.wikipedia.org/wiki/Dark_Age_of_Camelot">beat</a> <a href="http://en.wikipedia.org/wiki/Star_Wars_Galaxies">you</a> <a href="http://en.wikipedia.org/wiki/Ragnarok_Online">to</a> <a href="http://en.wikipedia.org/wiki/Lineage_II">the</a> <a href="http://en.wikipedia.org/wiki/Final_Fantasy_XI">punch</a>, works quite well. (Save for Windows Vista.)</li>
</ul>
<h3>Use <a href="http://en.wikipedia.org/wiki/Iterative_design">iterative design</a></h3>
<ul>
<li>In the nearly 4½ years since WoW&#8217;s release, it has released two expansion packs and <a href="http://www.worldofwarcraft.com/patchnotes/">18 substanial content patches</a>.</li>
<li>Each update has brought with it brand new content: locations, dungeons, enemies, gear, pets, and more.</li>
<li>In the same way, gameplay has evolved immensely. The <a href="http://www.worldofwarcraft.com/info/basics/talents.html">Talent system</a>, which &#8220;can make your character a specialist in one of their available class roles, change their entire playstyle, and offer countless combinations for you to experiment with&#8221;, has been modified several times.</li>
<li>During the beta, the entire system was ditched until a better one could be created.</li>
<li>And all of this came with no apology. The developers of WoW changed the game in a way they felt was positive and defended it <em>vehemently</em>.</li>
<li><strong>Lesson</strong>: Change your app to make it better, and defend your decisions.</li>
</ul>
<h4>But!</h4>
<h3>Listen to your users</h3>
<ul>
<li>Whether you&#8217;re just starting development or making your 7th version: involve your users.</li>
<li>For every content patch in WoW, Public Test Realms are used to test out new game mechanics and features. <em>And people are excited to help</em>. The testers copy their character or use a pre-made one and play, knowing full well their progress will be wiped out by the time the patch goes live. But, it&#8217;s new and cool and fun—and they feel privileged to get involved before other people.</li>
<li>During the development of Wrath of the Lich King, I got a picked randomly for a spot in the Beta. I loved it, I even bragged to my friends.</li>
<li>I spent an entire evening running around the new continent, Northrend. Barely anyone else was there; it felt like I was the very first person to see it. <em>It was awesome</em>.</li>
<li>Once I had run around, I tried playing the first Heroic player class: the Death Knight.</li>
<li>Lo and behold, they had implemented a feedback system. Everything quest you were given in the game could be rated for ease-of-use, obviousness, and even fun. With that data, they modified quest explanations, changed quest rewards, updated the map, and made their application better.</li>
<li><strong>Lesson</strong>: Change your app, but base your decisions on real feedback.</li>
</ul>
<h3>Offer something addictive</h3>
<ul>
<li>In my freshman and sophomore year of high school, I played Diablo II 6 &#8211; 8 hours per day. I had a good handle on my classes, so no one really noticed. And I was &#8220;working on my computer&#8221;, so my parents were cool with it. What I was discovering is the power of flow and addiction.</li>
<li>As Diablo II is a Blizzard title, I couldn&#8217;t wait to see what they would come up with in the <dfn title="Massively-Muttiplayer Online">MMO space.</dfn></li>
<li>Strangely, where Diablo II used the chance of finding better and better items to hook me, World of Warcraft used social networking.</li>
<li>Don&#8217;t get me wrong, I loved leveling, doing quests, and getting better and better gear; but World of Warcraft actually slows you down, in those areas. Leveling takes longer than in Diablo II, there is no <em>true</em> power leveling, quests can be very, very long, and new items are more based on hard work than chance.</li>
<li>What was encouraged, was connections with other people.</li>
<li>It starts off slowly. Some hard quests suggest grouping with other people. A chat pane is always available, where people discuss everything going on (for good or ill). People can create guilds where groups of people can wear a tabard and have chat channel just for them. Dungeons (or instances) provide great rewards, if you can get 5, 10, 25, or 40 people to complete it together. And you can always talk directly to someone, no matter where in the World (of Warcraft) they are.</li>
<li>The best part: WoW makes shy geeks, like me, cooperate with other players in ways they wouldn&#8217;t do in the real world.</li>
<li><strong>Lesson</strong>: Create something unexpectedly addictive, and introduce it slowly.</li>
</ul>
<h3>Customize, Embrace &amp; Extend</h3>
<ul>
<li>Customization of the game experience is <em>essential</em> in WoW.</li>
<li>On <a href="http://www.curse.com/">curse.com</a>, there are 3,993 addons to install, ecah modifying the user experience in their own way.</li>
<li>Personally, I use 25 addons. One of which allows me to easily coordinate specific spells with other Paladins. Another makes the chat interface a little more usable with a timestamp, clickable links and color-coding. And another still throws everything that&#8217;s happening to me and everything I&#8217;m doing to others all around my character—so I try to comprehend it.</li>
<li>In a recent patch, Blizzard introduced a new Calendar feature. Unfortunately, there were several addons that already served this function. Being rather bold, the WoW Calendar implemented several features the others couldn&#8217;t offer, such as always up-to-date holiday schedules, a tie-in to their external <a href="http://wowarmory.com">wowarmory.com</a>, and a more unified look and feel.</li>
<li>They saw a feature the community had made, and improved upon it. This ruffled feathers with the developers of the other Calendar addons, but they can continue to develop their addons and make them better—possibly pushing Blizzard to implement more functionality in their own feature.</li>
<li><strong>Lesson</strong>: Give your community tools to customize their experience, but don&#8217;t be afraid to work with them to better the core experience.</li>
</ul>
<h3>Make it less expensive</h3>
<ul>
<li>World of Warcraft started at $50.00 for the original game. Over time, it dropped to $40, then $30. When The Burning Crusade was released, the original game could be found for $20.</li>
<li>If you pay month-to-month, WoW costs 14.99 per month. If you pay every three months, it&#8217;s $13.99/month, and every six months is $12.99/month.</li>
<li>If you buy WoW with both expansions today, it would cost roughly $80 ($39.99 + $39.99) for the first free month. If you bought the games when they were new, you may have paid as much as $220 ($79.99 + $69.99 + $69.99). Same games, 64% cheaper.</li>
<li>Usable business models on the web are few and far between, but maybe consistent price drops on web apps over time could be the next big thing?</li>
<li><strong>Lesson</strong>: If you&#8217;re charging for your app, make it cheaper over time.</li>
</ul>
<h3>Make it pretty</h3>
<ul>
<li>WoW is beautiful.</li>
<li>It&#8217;s cartoony, colorful, and adorable.</li>
<li>It uses a graphics engine that is pushing a decade old, but still pulls off some amazing scenes.</li>
<li>Whatever you do, make your app a joy to use.</li>
<li>Pay attention to how many clicks a user must make.</li>
<li>Use <a href="http://www.alistapart.com/articles/indefenseofeyecandy">eye candy</a>.</li>
<li>We all know that craigslist works well, but looks awful. It can still <a href="http://www.cameronmoll.com/archives/000837.html">work well and look good</a>.</li>
<li><strong>Lesson</strong>: Even with web limitations, make your app gorgeous.</li>
</ul>
<p>I&#8217;m always interested to hear feedback. Let me know if you agree or disagree with anything I put forward here, or share lessons you&#8217;ve found in WoW.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.peterwooley.com/2009/06/lessons-from-wow/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Developing with a Brand New Canvas</title>
		<link>http://blog.peterwooley.com/2009/04/developing-with-a-brand-new-canvas/</link>
		<comments>http://blog.peterwooley.com/2009/04/developing-with-a-brand-new-canvas/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 06:15:34 +0000</pubDate>
		<dc:creator>Peter Wooley</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Theory]]></category>

		<guid isPermaLink="false">http://blog.peterwooley.com/?p=428</guid>
		<description><![CDATA[&#8220;I can&#8217;t generate 1000 images—it&#8217;s not practical, I can&#8217;t use a server-side script—there&#8217;s the sandbox and it&#8217;s lame, but there has to be some way to just use JavaScript to generate pixel data,&#8221; I thought.
Since releasing Gmail FavIcon Alerts version 2.5, I&#8217;ve spent a ton of time trying to figure out how to make it [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;I can&#8217;t generate 1000 images—it&#8217;s not practical, I can&#8217;t use a server-side script—there&#8217;s the sandbox and it&#8217;s lame, but there has to be some way to just use JavaScript to generate pixel data,&#8221; I thought.</p>
<p>Since releasing <a href="http://userscripts.org/scripts/show/24430">Gmail FavIcon Alerts</a> version 2.5, I&#8217;ve spent a<em> ton</em> of time trying to figure out how to make it better. Thankfully, users were more than <a href="http://userscripts.org/topics/22053">happy to help</a>. After talking with some friends, I realized that the key feature missing from all of the favicon <a href="http://userscripts.org/scripts/show/39432">message</a> <a href="https://addons.mozilla.org/en-US/firefox/addon/10420">count</a> <a href="https://addons.mozilla.org/en-US/firefox/addon/8121">scripts</a> was dynamic unread message count—being able to know exactly how many messages you had by looking at your favicon. But, how could this be done? Embedding the images as base64 is how most of the scripts work, but base64 is lengthy, and storing 1000 iterations to give exact unread message counts up to 999 would be ridiculous in both size and scope.</p>
<p>Thankfully, while teaching the WDIM355 Client-Side Scripting class at the Art Institute of Portland, the students showed quite an interest in the <a href="http://en.wikipedia.org/wiki/Canvas_(HTML_element)">Canvas tag</a>. After playing with it for a bit, they detailed how they were using it. The methods currently available consist of things like fillRect(), strokeRect(), and drawImage(). It felt like Flash, but lower-level, <em>geekier</em> even.</p>
<p>It suddenly made sense: draw the unread count over the icon using the canvas tag! Starting on a Friday evening, I began. First, I drew a red square in the middle of  a 16&#215;16 pixel Canvas, and it worked! I started drawing shapes, patterns and anything I could to test the speed and capabilities. I couldn&#8217;t have been happier. Then I hit a snag: images.</p>
<p>Working with images is never the best experience, but drawing them with the Canvas tag, it turns out, is just plain awful. Because speed is important, the script really needed to keep the images embedded. Base64 is great for that, but I discovered a little issue with the drawImage() function of the canvas: you have to supply it with a standard Image object or <a href="https://developer.mozilla.org/en/HTML/Element/img">HTMLImageElement</a>. This didn&#8217;t seem like a problem, until I started setting the Image.src to a Data URI. For some reason, I couldn&#8217;t get the images to load and I kept getting the <a href="http://stackoverflow.com/questions/358538/getimagedata-in-firefox-3-causing-nserrordomsecurityerr">NS_ERROR_DOM_SECURITY_ERR</a> error. After quite a bit of searching, I discovered that, for security reasons, Image objects <a href="http://ajaxian.com/archives/detect-if-the-browser-supports-apng">can&#8217;t have their src attribute set to a Data URI</a>!</p>
<p>After nearly giving up, I took a break with my wife, and at some point during the break, I came up with a crazy idea: use fillRect() and a 16&#215;16 array to draw the image, pixel-by-pixel. Crazy, you say? Loco, indeed. I spent the next hour writing the loop and adding each individual hex value into an array. I argued that writing a script to do it would have taken longer—I was wrong. After a bit of <a href="http://twitter.com/peterwooley/statuses/1369711010">number confusion on my part</a>, I got it working and it was beautiful. Literally, pixel-for-pixel, it matched. I had to take a minute to enjoy the hack that sat before me.</p>
<p><img class="alignright size-full wp-image-430" title="Dynamically-generated unread favicon" src="http://blog.peterwooley.com/wp-content/uploads/2009/04/unread.jpg" alt="Dynamically-generated unread favicon" width="108" height="24" />The last step was to add the numbers, which turned out to be the easiest part. I created a pixel map of <a href="http://tylersticka.com">Tyler&#8217;s</a> pixel numbers, did some math and drew the background. Even though it took a bit more tweaking, I basically came out with the finished product!</p>
<p>It took plenty of hours, involved several people I&#8217;m grateful to, and was some of the most fun I&#8217;ve had hacking since I first picked up <a href="http://userscripts.org/scripts/show/24430">the script</a>! And now, the script has now been featured on <a href="http://lifehacker.com/5203982/gmail-favicon-alerts-adds-exact-unread-message-counts">Lifehacker </a>twice, for <a href="http://lifehacker.com/5156337/show-message-counts-chat-alerts-in-your-gmail-favicon">2.5</a> and now <a href="http://lifehacker.com/5203982/gmail-favicon-alerts-adds-exact-unread-message-counts">3.0</a>! And it just past 8,000 installs!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.peterwooley.com/2009/04/developing-with-a-brand-new-canvas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Terrified of writing.</title>
		<link>http://blog.peterwooley.com/2008/10/terrified-of-writing/</link>
		<comments>http://blog.peterwooley.com/2008/10/terrified-of-writing/#comments</comments>
		<pubDate>Sun, 12 Oct 2008 07:46:40 +0000</pubDate>
		<dc:creator>Peter Wooley</dc:creator>
				<category><![CDATA[Theory]]></category>

		<guid isPermaLink="false">http://blog.peterwooley.com/?p=214</guid>
		<description><![CDATA[Earlier this evening, I tweeted:
&#8220;At intermission of Oliver [the Play]! It kind of makes me want to try some acting again, or at least working in fiction.&#8221;
Following this, @kmcdade suggested I join NaNoWriMo—National Novel Writing Month.  Considering it sounded like something I&#8217;d want to be a part of and it had a sign-up form, I [...]]]></description>
			<content:encoded><![CDATA[<p>Earlier this evening, I <a href="http://twitter.com/peterwooley/statuses/956126860">tweeted</a>:</p>
<blockquote class="webkit-indent-blockquote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 40px; border-width: initial; border-color: initial; border-style: none; padding: 0px"><p>&#8220;At intermission of Oliver [the Play]! It kind of makes me want to try some acting again, or at least working in fiction.&#8221;</p></blockquote>
<p>Following this, @<a href="http://twitter.com/kmcdade">kmcdade</a> suggested I join <a href="http://www.nanowrimo.org">NaNoWriMo</a>—National Novel Writing Month.  Considering it sounded like something I&#8217;d want to be a part of and it had a sign-up form, I went ahead and dove in. Little did I know, this is the real deal.  The idea is that you write a novel—a whole—novel in the month of November. It&#8217;s a brilliant idea. It&#8217;s a terrifying idea. As I dove deeper into the site, finding the Vancouver, WA region forums and reading all about it, I realized just how inadequate I would feel trying to do this. People have done this many years in a row, they already have their plots decided on and are attempting to figure out how to add more drama. Here I am, pushed to do a little writing because of an Oliver Twist performance and an itch I&#8217;ve never scratched.</p>
<p>I backed away from the forums, decided against joining the region group (then they&#8217;d know I was there, right?), and ran to the seclusion of my blog. If I did do it, without joining a group or comparing myself to other people, I wonder what I would write about? I use to have this recurring dream about the death of a man&#8217;s fiance and his dealing with her death. It ended with a rather epic scene on a hotel rooftop, in the rain, where the man discovers the guy that killed her. I used to think about a story that took place in near isolation. The protaganist walked around and dealt with keeping his surroundings healthy, while he thought back on how things were. I had fun trying to craft ways that for him to be isolated, the space station was the most fun. An abandoned town was terrifyingly nice, as well. I had a romance or two, this before I found romance myself. I tried fan fiction for Starcaft, Diablo, and Warcraft, but those never worked out.Oh yeah, I had written down the opening for a story several times! It starts with the narrator recalling. The scene opens up on a happy little suburb, with the yonger-self narrator watering the flowers outside of his house. Out of nowhere, he&#8217;s abducted by three men. I can still remember how it played out in my mind. The problem with that story is that it never had a plot, only an introduction. I do wonder what happened to that guy, though. Obviously, he&#8217;s alive. Maybe I will try this writing thing out.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.peterwooley.com/2008/10/terrified-of-writing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DJ Peter, not so Nerdcore</title>
		<link>http://blog.peterwooley.com/2007/11/dj-peter-not-so-nerdcore/</link>
		<comments>http://blog.peterwooley.com/2007/11/dj-peter-not-so-nerdcore/#comments</comments>
		<pubDate>Thu, 29 Nov 2007 05:55:11 +0000</pubDate>
		<dc:creator>Peter Wooley</dc:creator>
				<category><![CDATA[Ramblings]]></category>
		<category><![CDATA[Theory]]></category>

		<guid isPermaLink="false">http://blog.peterwooley.com/?p=204</guid>
		<description><![CDATA[Yesterday, by a spark of either brilliance or insanity, Tyler came up with the idea of having the three of us in our office be rotating DJs from 2:00-4:00pm each day. We all finally got equipped with speakers (well, speakers through our monitors, but what&#8217;cha gonna do?) and, therefore, have the ability to drive each [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday, by a spark of either brilliance or insanity, <a href="http://tylersticka.com">Tyler</a> came up with the idea of having the three of us in our office be rotating DJs from 2:00-4:00pm each day. We all finally got equipped with speakers (well, speakers through our monitors, but what&#8217;cha gonna do?) and, therefore, have the ability to drive each other crazy with ever-increasing music volume (Did anyone say <a href="http://en.wikipedia.org/wiki/Screamo">Screamo</a>? No, we did not.), which would be inevitable by mid-afternoon, when lunch is behind us and quittin&#8217; time is still a while away. Tyler started today, as he brought in his entire playlist from home with ratings and all. Tomorrow is my turn.I believe I&#8217;ll be bringing in my playlist as well, so I&#8217;ve taken a few minutes to build a mix of some of my favorite tunes. I stayed away from whole albums, as I only began really enjoying albums in their fullness during college (save for Audio Adrenaline&#8217;s Underdog). The sounds are <em>spuratic</em>, to say the least. For instance, I&#8217;ve included Enya&#8217;s Pilgrim, along with Tiesto&#8217;s In My Memory, Weird Al Yankovic&#8217;s Weasel Stomping Day, and the beautifully orchestrated Bioshock title Welcome to Rapture.</p>
<p>We&#8217;re all given 3 objections, where, when used, requires the day&#8217;s DJ to skip to their next song. We didn&#8217;t use any today, which could mean <a href="http://jungcompany.com">Erik</a> and I were being courteous,  we were <em>very</em> involved with work, or we enjoyed the tunes. I&#8217;d lean to the latter.</p>
<p>I still have 18 minutes of music to decide on and maybe a bit more, just in case I get some objections. If you happen to be in the area, stop by the office from 2:00-4:00pm and feel free to jam.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.peterwooley.com/2007/11/dj-peter-not-so-nerdcore/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Warmth on a Gloomy Day</title>
		<link>http://blog.peterwooley.com/2007/11/warmth-on-a-gloomy-day/</link>
		<comments>http://blog.peterwooley.com/2007/11/warmth-on-a-gloomy-day/#comments</comments>
		<pubDate>Tue, 13 Nov 2007 07:05:06 +0000</pubDate>
		<dc:creator>Peter Wooley</dc:creator>
				<category><![CDATA[Ramblings]]></category>
		<category><![CDATA[Theory]]></category>

		<guid isPermaLink="false">http://blog.peterwooley.com/?p=203</guid>
		<description><![CDATA[Northwest Natural showed up this afternoon and turned our gas back on. We now have hot water, heat, and a working fireplace. Strangely, over the weekend, we had to open the windows because of excessive heat. I was able to turn on enough computers, TVs, and lights to get the house up to 70Â° F, [...]]]></description>
			<content:encoded><![CDATA[<p>Northwest Natural showed up this afternoon and turned our gas back on. We now have hot water, heat, and a working fireplace. Strangely, over the weekend, we had to open the windows because of excessive heat. I was able to turn on enough computers, TVs, and lights to get the house up to 70Â° F, which sure beat buying electric heaters. I have no doubt that our electric bill will be quite high.</p>
<p>Having no hot water turned out to be the hardest thing to deal with. We utilized Kara&#8217;s parents for their showers, which we appreciated immensely, but the whole thing just felt off. We&#8217;re not out of money, we aren&#8217;t between homes, but we had to use someone else&#8217;s shower; it just seemed wrong. I&#8217;ve realized that any of my dealings with Northwest Natural will always be tainted by this one experience. I had no real reason to trust them before (I had no idea who they really were), but now I do have a reason to mistrust them.</p>
<p>The rest of the day was rather gloomy. I never had a clear look at the sun and the rain, wind, and rolling clouds dropped my spirit, as well as my <a href="http://tylersticka.com">office</a> <a href="http://jungcompany.com">mates</a>, for most of the day. I did have some success toward the end of the day when Kara came in for a visit and a tour, I got my 401(k) account setup with a wonderfully nice fellow, PHP decided to bend to my will and properly open and display TrueType fonts in an image created with the GD library, and I had Chicken Flauta Rancheros at Who Song and Larry&#8217;s across from my lovely wife.</p>
<p>Now I plan on taking a (piping) hot shower and think about the benefits and drawbacks of utilizing automation classes in PHP that generate Database Access classes based on user-defined XML files.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.peterwooley.com/2007/11/warmth-on-a-gloomy-day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coldness until Monday.</title>
		<link>http://blog.peterwooley.com/2007/11/coldness-until-monday/</link>
		<comments>http://blog.peterwooley.com/2007/11/coldness-until-monday/#comments</comments>
		<pubDate>Fri, 09 Nov 2007 20:49:35 +0000</pubDate>
		<dc:creator>Peter Wooley</dc:creator>
				<category><![CDATA[Ramblings]]></category>
		<category><![CDATA[Theory]]></category>

		<guid isPermaLink="false">http://blog.peterwooley.com/?p=202</guid>
		<description><![CDATA[[The rest of my Northwest Natural problem can be found with my first problem last night,  the annoying follow-up this morning, and some progress made later.]
Well, I believe my Northwest Natural phone journey has drawn to a close. I was able to get a call back from a Supervisor, who was quite nice, and [...]]]></description>
			<content:encoded><![CDATA[<p>[The rest of my Northwest Natural <em>problem</em> can be found with <a href="http://blog.peterwooley.com/?p=199">my first problem last night</a>,  <a href="http://blog.peterwooley.com/?p=200">the annoying follow-up this morning</a>, and <a href="http://blog.peterwooley.com/?p=201">some progress made later</a>.]</p>
<p>Well, I believe my Northwest Natural phone journey has drawn to a close. I was able to get a call back from a Supervisor, who was quite nice, and she sent me off to a private company that could, supposedly, turn things back on. Well, after calling and finding out that anyone other than Northwest Natural could <em>not</em> turn things back on, the supervisor I spoke with left me a message apologizing for the confusion, which I appreciated. I immediately called back and we spoke for a while more. I inquired about the possibility of doing it later tonight, but Monday was the earliest it could get done. Considering the time I&#8217;ve taken (my morning), and the fact that I got things moved up a <em>little</em>, I&#8217;ve decided to push no longer.</p>
<p>The trouble is, of course, the house is going to be cold, cold, <em>cold</em> for the next three days. I&#8217;m going to double-check with Kara and a few other people to see if we can do anything else, but I feel semi-successful.</p>
<p>Of course, I shouldn&#8217;t have to feel successful when dealing with any company, I should just be happy with their service. But, when I had to go through the escapades of crawling up the customer service tree, make several different calls, talk to six different people (even if many of them were quite nice), and finally get some changes and an apology, Northwest Natural doesn&#8217;t look so hot.</p>
<p>In our 24/7, always-on society, it surprises me that a company providing such a base service doesn&#8217;t have 24-hour services. I expected, at least, a 24-hour phone system that handled things other than just emergencies. I was hopeful for same-day service. And I dreamed of an automated system of stopping and starting. None of those things happened. Save for the first person I talked to this morning, Northwest Natural should praise their customer service staff for having to manage customers with such a poor system in place. With few ways to actually help their customers at such a crucial time, I pity the customer service department. Of course, there is always the chance that I was lied to, and someone <em>could</em> have come out today (I&#8217;m sure I could push hard enough, but I have limits.), but if their procedures say tell them to put people off until the person starts screaming, that procedure <em>has</em> to be re-written.</p>
<p>All in all, I&#8217;m still disappointed in the entire experience. I&#8217;ve turned off everything I can to stop from blowing in cold air, turned on all the electronics in the house to warm things up, and have been able to get the hallway to about 64Â° F, but I doubt that will last through the day. I keep going back to the suggestion of a postcard, and am still astounded we heard <em>nothing</em> from a company that, for all they knew, was giving away gas for free. Then, when called on it, would insult me, an almost for-sure customer.</p>
<p>And I would venture a guess that they&#8217;re so sloppy because of little other options for natural gas in the Northwest (i.e., monopoly). I attempted to look around for natural gas in our area, but to no avail. If we wanted to switch to electric, we&#8217;d have to buy new equipment. In the Wal-mart sense of the word, we&#8217;re stuck: we don&#8217;t really have another option. If you happen to know of any, let me know in the comments!</p>
<p>And, if you happen to work at (or run) Northwest Natural, feel free to give me a call at 360\904\8516. I&#8217;d be glad to do discuss any of the ideas I&#8217;ve presented in these posts as well as others I haven&#8217;t (for free, of course, but I&#8217;d also love some free natural gas, as no one told me how much this was going to cost per month!).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.peterwooley.com/2007/11/coldness-until-monday/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>And more cold shoulders.</title>
		<link>http://blog.peterwooley.com/2007/11/and-more-cold-shoulders/</link>
		<comments>http://blog.peterwooley.com/2007/11/and-more-cold-shoulders/#comments</comments>
		<pubDate>Fri, 09 Nov 2007 18:58:35 +0000</pubDate>
		<dc:creator>Peter Wooley</dc:creator>
				<category><![CDATA[Ramblings]]></category>
		<category><![CDATA[Theory]]></category>

		<guid isPermaLink="false">http://blog.peterwooley.com/?p=201</guid>
		<description><![CDATA[So the continuing story of our Northwest Natural nightmare continues. I called my mom after the last post, to make sure I wasn&#8217;t crazy and see if she had any suggestions. We both came to the conclusion that I needed to call back and talk to a supervisor.
I called, talked to the first available person [...]]]></description>
			<content:encoded><![CDATA[<p>So the continuing story of our Northwest Natural nightmare continues. I called my mom after the last post, to make sure I wasn&#8217;t crazy and see if she had any suggestions. We both came to the conclusion that I needed to call back and talk to a supervisor.</p>
<p>I called, talked to the first available person and was treated to a much more pleasant experience. The operator, who gave me her name, but I didn&#8217;t catch it, listened to a short monologue on why I needed gas turned on today, but, inevitably, she returned the same information as on my first call: no gas until Tuesday.</p>
<p>Using a similar tactic from the morning, I asked if there was any sum of money I could pay to get someone out here. With that, she said she&#8217;d look into after-hours services (which, obviously, cost more). I would have been fine paying more, but she returned with no solution. This weekend (a holiday weekend for some, apparently), they can&#8217;t seem to bring anyone out.</p>
<p>At that point, I asked if I could file a formal complaint, which she said she could and then pass along to a supervisor. With that word, I asked if I could get bumped up. She said they would have to call me back, but I pressed until she sent me up to a 2nd Tier Senior Representative. They, essentially, said that they would just have a Supervisor call me back because they couldn&#8217;t do anything, so I pressed that I get a call back immediately, and she indicated that she could.</p>
<p>I hung up the phone, a little worried that I wouldn&#8217;t hear anything, but I got a call back within a few minutes. Unfortunately, it was the Senior Rep. again, telling me that they could push it back to Monday and at no extra charge, to boot. I accepted and thanked her, trying to think if it was truly good enough. I&#8217;m going to think some more, and see if I want to press once more to move it back any further. I have a feeling that if I insisted on speaking with a Supervisor, I could get it moved to tonight, as they don&#8217;t work on weekends (and they better not think Friday is a weekend, it&#8217;s my weekend, but I don&#8217;t supply always-on utilities for countless homes).</p>
<p>The best thing to take away was that everyone was nice this time around. I&#8217;m guessing it had something to do with everyone getting their morning shot of caffeine, but the Senior Rep. actually empathized (real or not, it doesn&#8217;t matter) over the trouble of starting service with moving into a new home. Which, I&#8217;m happy she did, but, ultimately, it could be resolved for many new homeowners by taking <a href="http://blog.peterwooley.com/?p=200">my postcard suggestion</a>.</p>
<p><strong>Update</strong> (2007-11-09 10:02am): I decided to put another call in and just ask that I get a call back form a supervisor. That was well accepted and the guy that I talked to was quite helpful. He just got my information, sent it off, and now I wait.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.peterwooley.com/2007/11/and-more-cold-shoulders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
