<?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>Electronic Space Nintendo &#187; DConsole</title>
	<atom:link href="http://www.doomsday.no/esn/tag/dconsole/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.doomsday.no/esn</link>
	<description>Video games, Weirdness, Adobe Flash, Android, Music, and TLDR</description>
	<lastBuildDate>Thu, 17 May 2012 18:37:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Elevator pitchin&#8217; at FOTB10</title>
		<link>http://www.doomsday.no/esn/2010/06/elevator-pitchin-at-fotb10/</link>
		<comments>http://www.doomsday.no/esn/2010/06/elevator-pitchin-at-fotb10/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 11:53:03 +0000</pubDate>
		<dc:creator>Andreas</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[DConsole]]></category>
		<category><![CDATA[FOTB10]]></category>

		<guid isPermaLink="false">http://www.doomsday.no/esn/2010/06/elevator-pitchin-at-fotb10/</guid>
		<description><![CDATA[I&#8217;ll be doing a terrifying 3-minute elevator pitch at this year&#8217;s Flash On The Beach. I applied just for the heck of it, didn&#8217;t assume I&#8217;d get accepted, but weyheyhey. Tension rising! My session will be about my ongoing Doomsday Console project, or more specifically the next iteration of it (which is under super secret [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll be doing a terrifying 3-minute elevator pitch at this year&#8217;s Flash On The Beach. I applied just for the heck of it, didn&#8217;t assume I&#8217;d get accepted, but weyheyhey. Tension rising!</p>
<p>My session will be about my ongoing Doomsday Console project, or more specifically the next iteration of it (which is under super secret development by TOP MEN). I&#8217;ve tried many debugging tools before but none have helped me as much as the DConsole has. It&#8217;s traditionally a very tough sell though. Hope to build some more interest and perhaps cause some thinkings about writing your own tools to enhance your workflow?</p>
<p>3 minutes.. My presentation will need TDSI.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.doomsday.no/esn/2010/06/elevator-pitchin-at-fotb10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A quick Doomsday Console example</title>
		<link>http://www.doomsday.no/esn/2010/04/a-quick-doomsday-console-example/</link>
		<comments>http://www.doomsday.no/esn/2010/04/a-quick-doomsday-console-example/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 16:02:16 +0000</pubDate>
		<dc:creator>Andreas</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[DConsole]]></category>

		<guid isPermaLink="false">http://www.doomsday.no/esn/?p=871</guid>
		<description><![CDATA[Today I sat down to do a few performance tests of copyPixels with a variety of configurations of an alpha bitmap and the mergeAlpha flag, all in Release mode. This is a very typical situation where the Doomsday Console is useful, and I thought I&#8217;d share the source and swf. It&#8217;s modest, but a classic [...]]]></description>
			<content:encoded><![CDATA[<p>Today I sat down to do a few performance tests of copyPixels with a variety of configurations of an alpha bitmap and the mergeAlpha flag, all in Release mode. This is a very typical situation where the Doomsday Console is useful, and I thought I&#8217;d share the source and swf. It&#8217;s modest, but a classic use case.<br />
<span id="more-871"></span><br />

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_copyPixelsTest_110614639"
			class="flashmovie"
			width="600"
			height="300">
	<param name="movie" value="http://www.doomsday.no/community/blog/copyPixelsTest.swf" />
	<param name="scale" value="noscale" />
	<param name="salign" value="tl" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.doomsday.no/community/blog/copyPixelsTest.swf"
			name="fm_copyPixelsTest_110614639"
			width="600"
			height="300">
		<param name="scale" value="noscale" />
		<param name="salign" value="tl" />
	<!--<![endif]-->
		
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>To perform the tests, use the commands &#8220;doCopyPixelsTest&#8221; and &#8220;doCombinedTest&#8221;. The default test iteration count is 1000, but it can be changed by typing in the commands as such: &#8220;doCombinedTest 5000&#8243; or &#8220;doCombinedTest 5151&#8243;. If the input field isn&#8217;t focused, you can reset focus with the tab key. </p>
<p>This is the core use of the console. Binding text commands to methods, calling them through the command line and printing results back out. Note the creation of commands with &#8220;ConsoleUtil.createCommand&#8221;, as well as the calls to ConsoleUtil.print() in the following source.</p>
<div class="codecolorer-container actionscript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">package <br />
<span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Bitmap</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">BitmapData</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">BitmapDataChannel</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">Event</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">MouseEvent</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">geom</span>.<span style="color: #006600;">Point</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">geom</span>.<span style="color: #006600;">Rectangle</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">text</span>.<span style="color: #0066CC;">TextField</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">text</span>.<span style="color: #006600;">TextFieldAutoSize</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">utils</span>.<span style="color: #0066CC;">getTimer</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> no.<span style="color: #006600;">doomsday</span>.<span style="color: #006600;">console</span>.<span style="color: #006600;">ConsoleUtil</span>;<br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #808080; font-style: italic;">/**<br />
&nbsp; &nbsp; &nbsp;* ...<br />
&nbsp; &nbsp; &nbsp;* @author Andreas Rønning<br />
&nbsp; &nbsp; &nbsp;*/</span><br />
&nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Main <span style="color: #0066CC;">extends</span> Sprite <br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> alphaTexture:BitmapData;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> colorTexture:BitmapData;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> resultTexture:BitmapData;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> rect:Rectangle;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> pt:Point;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> Main<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">stage</span><span style="color: #66cc66;">&#41;</span> init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">else</span> addEventListener<span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">ADDED_TO_STAGE</span>, init<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> init<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event = <span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; removeEventListener<span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">ADDED_TO_STAGE</span>, init<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">// entry point</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> w:<span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">256</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> h:<span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">256</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alphaTexture = <span style="color: #000000; font-weight: bold;">new</span> BitmapData<span style="color: #66cc66;">&#40;</span>w, h, <span style="color: #000000; font-weight: bold;">true</span>, <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; colorTexture = alphaTexture.<span style="color: #006600;">clone</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; resultTexture = <span style="color: #000000; font-weight: bold;">new</span> BitmapData<span style="color: #66cc66;">&#40;</span>w, h, <span style="color: #000000; font-weight: bold;">true</span>, <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; resultTexture.<span style="color: #006600;">lock</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alphaTexture.<span style="color: #006600;">perlinNoise</span><span style="color: #66cc66;">&#40;</span>w, h, <span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">412</span>, <span style="color: #000000; font-weight: bold;">true</span>, <span style="color: #000000; font-weight: bold;">false</span>, BitmapDataChannel.<span style="color: #006600;">ALPHA</span>, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; colorTexture.<span style="color: #006600;">perlinNoise</span><span style="color: #66cc66;">&#40;</span>w, h, <span style="color: #cc66cc;">2</span>, <span style="color: #cc66cc;">322</span>, <span style="color: #000000; font-weight: bold;">true</span>, <span style="color: #000000; font-weight: bold;">false</span>, BitmapDataChannel.<span style="color: #006600;">BLUE</span><span style="color: #66cc66;">|</span>BitmapDataChannel.<span style="color: #006600;">GREEN</span><span style="color: #66cc66;">|</span>BitmapDataChannel.<span style="color: #006600;">RED</span>, <span style="color: #000000; font-weight: bold;">false</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; rect = <span style="color: #000000; font-weight: bold;">new</span> Rectangle<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span>, w, h<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pt = <span style="color: #000000; font-weight: bold;">new</span> Point<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addChild<span style="color: #66cc66;">&#40;</span>ConsoleUtil.<span style="color: #006600;">instance</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ConsoleUtil.<span style="color: #0066CC;">show</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ConsoleUtil.<span style="color: #006600;">createCommand</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;doCopyPixelsTest&quot;</span>, doCopyPixelsTest<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ConsoleUtil.<span style="color: #006600;">createCommand</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;doCombinedTest&quot;</span>, doCombinedTest<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> doCombinedTest<span style="color: #66cc66;">&#40;</span>numTests:<span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">1000</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ConsoleUtil.<span style="color: #0066CC;">print</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Starting combined test...&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> tare:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;">0</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> i:<span style="color: #0066CC;">int</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> testStart:<span style="color: #0066CC;">Number</span> = <span style="color: #0066CC;">getTimer</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span>i = <span style="color: #cc66cc;">0</span>; i <span style="color: #66cc66;">&lt;</span> numTests; i++<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span><span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tare = <span style="color: #0066CC;">getTimer</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> - testStart;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; testStart = <span style="color: #0066CC;">getTimer</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span>i = <span style="color: #cc66cc;">0</span>; i <span style="color: #66cc66;">&lt;</span> numTests; i++<span style="color: #66cc66;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; resultTexture.<span style="color: #006600;">copyPixels</span><span style="color: #66cc66;">&#40;</span>colorTexture, rect, pt<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; resultTexture.<span style="color: #006600;">copyChannel</span><span style="color: #66cc66;">&#40;</span>alphaTexture, rect, pt, BitmapDataChannel.<span style="color: #006600;">ALPHA</span>, BitmapDataChannel.<span style="color: #006600;">ALPHA</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ConsoleUtil.<span style="color: #0066CC;">print</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Plain copypixels followed with alpha copychannel: &quot;</span> + <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">getTimer</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> - testStart<span style="color: #66cc66;">&#41;</span> - tare<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> doCopyPixelsTest<span style="color: #66cc66;">&#40;</span>numTests:<span style="color: #0066CC;">int</span> = <span style="color: #cc66cc;">1000</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span> &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ConsoleUtil.<span style="color: #0066CC;">print</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Starting copypixels test...&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> tare:<span style="color: #0066CC;">Number</span> = <span style="color: #cc66cc;">0</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> i:<span style="color: #0066CC;">int</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> testStart:<span style="color: #0066CC;">Number</span> = <span style="color: #0066CC;">getTimer</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span>i = <span style="color: #cc66cc;">0</span>; i <span style="color: #66cc66;">&lt;</span> numTests; i++<span style="color: #66cc66;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tare = <span style="color: #0066CC;">getTimer</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> - testStart;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; testStart = <span style="color: #0066CC;">getTimer</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span>i = <span style="color: #cc66cc;">0</span>; i <span style="color: #66cc66;">&lt;</span> numTests; i++<span style="color: #66cc66;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; resultTexture.<span style="color: #006600;">copyPixels</span><span style="color: #66cc66;">&#40;</span>colorTexture, rect, pt, alphaTexture, pt, <span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ConsoleUtil.<span style="color: #0066CC;">print</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;with alpha texture, merge alpha: &quot;</span> + <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">getTimer</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> - testStart<span style="color: #66cc66;">&#41;</span> - tare<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; testStart = <span style="color: #0066CC;">getTimer</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span>i = <span style="color: #cc66cc;">0</span>; i <span style="color: #66cc66;">&lt;</span> numTests; i++<span style="color: #66cc66;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; resultTexture.<span style="color: #006600;">copyPixels</span><span style="color: #66cc66;">&#40;</span>colorTexture, rect, pt, alphaTexture, pt, <span style="color: #000000; font-weight: bold;">false</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ConsoleUtil.<span style="color: #0066CC;">print</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;with alpha texture, no merge: &quot;</span> + <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">getTimer</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> - testStart<span style="color: #66cc66;">&#41;</span> - tare<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; testStart = <span style="color: #0066CC;">getTimer</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span>i = <span style="color: #cc66cc;">0</span>; i <span style="color: #66cc66;">&lt;</span> numTests; i++<span style="color: #66cc66;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; resultTexture.<span style="color: #006600;">copyPixels</span><span style="color: #66cc66;">&#40;</span>colorTexture, rect, pt,<span style="color: #000000; font-weight: bold;">null</span>,<span style="color: #000000; font-weight: bold;">null</span>,<span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ConsoleUtil.<span style="color: #0066CC;">print</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;copypixels, merge alpha: &quot;</span> + <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">getTimer</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> - testStart<span style="color: #66cc66;">&#41;</span> - tare<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; testStart = <span style="color: #0066CC;">getTimer</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span>i = <span style="color: #cc66cc;">0</span>; i <span style="color: #66cc66;">&lt;</span> numTests; i++<span style="color: #66cc66;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; resultTexture.<span style="color: #006600;">copyPixels</span><span style="color: #66cc66;">&#40;</span>colorTexture, rect, pt<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ConsoleUtil.<span style="color: #0066CC;">print</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;plain copypixels: &quot;</span> + <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">getTimer</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> - testStart<span style="color: #66cc66;">&#41;</span> - tare<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; <br />
<span style="color: #66cc66;">&#125;</span></div></div>
<p>For more information on the Doomsday Console and its further uses, please visit the <a href="http://doomsdayconsole.googlecode.com">googlecode </a>site.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.doomsday.no/esn/2010/04/a-quick-doomsday-console-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>To double-tab or not to double-tab&#8230;</title>
		<link>http://www.doomsday.no/esn/2009/10/to-double-tab-or-not-to-double-tab/</link>
		<comments>http://www.doomsday.no/esn/2009/10/to-double-tab-or-not-to-double-tab/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 01:09:58 +0000</pubDate>
		<dc:creator>Andreas</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[DConsole]]></category>
		<category><![CDATA[Interface design]]></category>

		<guid isPermaLink="false">http://www.doomsday.no/esn/?p=495</guid>
		<description><![CDATA[A feature request for the Doomsday Console was a UNIX-style double-tab search. When typing a word, hitting tab twice in quick succession would take the word currently under the caret and do a search of all available commands and list them for you. Definitely handy if you have a command or method name on the [...]]]></description>
			<content:encoded><![CDATA[<p>A feature request for the <a href="http://doomsdayconsole.googlecode.com">Doomsday Console </a>was a UNIX-style double-tab search. When typing a word, hitting tab twice in quick succession would take the word currently under the caret and do a search of all available commands and list them for you. Definitely handy if you have a command or method name on the tip of your tongue. </p>
<p>The trouble, of course, is that the tab key in the console is currently seriously crowded. Shift-tab toggles the console, tabbing while typing autocompletes, tabbing while typing an argument adds a space. Adding double-tab, which by necessity means i have to wait for a few milliseconds (more like 150 for my slow fingers to keep up) before committing actual tab actions reduces all the other tab functionality to a nagging crawl. What seems like a short moment soon becomes unbearable; in keyboard terms, 150ms is an aeon.</p>
<p>So how to implement it effectively? On one end, i&#8217;m actually really big on the idea of putting as much on the tab key as possible, making it the natural go-to-guy for your fingers whenever you want something done that ISN&#8217;T a command call, but on the other, i&#8217;m only up for that until it gets confusing.<br />
Kieran/dBlue suggested an AJAXian approach where typing a word and then waiting a second or two automatically performs a search for you. I call this the &#8220;uhhhh-search&#8221;. I like how simple it is, but the fact of the matter is that the list of hits grows HUGE as soon as the search term is short enough. The idea is that searching for &#8220;cannon&#8221; will return both &#8220;bigCannon&#8221; and &#8220;cannonBall&#8221;, so a search of &#8220;ad&#8221; will typically give you a list of at least a couple lines. To have the console cluttered with random searches is not an ideal solution.</p>
<p>The final solution i&#8217;ve settled on is to drop any doubles or combinations, and try to be contextual. If the word under the caret is known in its entirety to the dictionary, skip to the end of the line and append a space as normal. If it is unknown however, do a search for it. I&#8217;m not sure it&#8217;s the optimal solution, but it leaves a minimum of clutter, can be toggled off, and still follows well with the tab-for-everything idea.</p>
<p><a href="http://www.doomsday.no/projects/console/">Give it a spin</a>, and tell me what you think!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.doomsday.no/esn/2009/10/to-double-tab-or-not-to-double-tab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Screencastmania!</title>
		<link>http://www.doomsday.no/esn/2009/10/screencastmania/</link>
		<comments>http://www.doomsday.no/esn/2009/10/screencastmania/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 22:18:30 +0000</pubDate>
		<dc:creator>Andreas</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[DConsole]]></category>

		<guid isPermaLink="false">http://www.doomsday.no/esn/2009/10/screencastmania/</guid>
		<description><![CDATA[I published a 41(!) minute screencast of me just blabbing and showing off features of my AS3 console project. If you want to hear a sick norwegian talk about shit and show off sort of buggy code, go for it! Yeah!]]></description>
			<content:encoded><![CDATA[<p>I published a <a href="http://www.doomsday.no/screencasts/consolescreencast/">41(!) minute screencast </a>of me just blabbing and showing off features of my AS3 console project. If you want to hear a sick norwegian talk about shit and show off sort of buggy code, go for it! Yeah!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.doomsday.no/esn/2009/10/screencastmania/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

