<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.1" -->
<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/"
	>

<channel>
	<title>pleased precariously</title>
	<link>http://squeedlyspooch.com/blog</link>
	<description>Because now it's time for something completely different.</description>
	<pubDate>Sun, 30 Mar 2008 20:50:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>
	<language>en</language>
			<item>
		<title>lazy</title>
		<link>http://squeedlyspooch.com/blog/2008/03/30/lazy/</link>
		<comments>http://squeedlyspooch.com/blog/2008/03/30/lazy/#comments</comments>
		<pubDate>Sun, 30 Mar 2008 20:50:14 +0000</pubDate>
		<dc:creator>toshok</dc:creator>
		
		<category><![CDATA[diabetes]]></category>

		<category><![CDATA[geek]]></category>

		<category><![CDATA[journal]]></category>

		<guid isPermaLink="false">http://squeedlyspooch.com/blog/2008/03/30/lazy/</guid>
		<description><![CDATA[I&#8217;m so glad I don&#8217;t act on half the ideas I have.  If I did, not only would I get much less done on any one of them, but I also wouldn&#8217;t be pleasantly surprised often that someone had the same idea and got it to a state where I don&#8217;t have to act [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m so glad I don&#8217;t act on half the ideas I have.  If I did, not only would I get much less done on any one of them, but I also wouldn&#8217;t be pleasantly surprised often that someone had the same idea and got it to a state where I don&#8217;t have to act on it at all.</p>
<p>Today peter pointed me at <a href="http://groups.google.com/group/jiggyapp-devel/web/sugartracker">SugarTracker</a></p>
]]></content:encoded>
			<wfw:commentRss>http://squeedlyspooch.com/blog/2008/03/30/lazy/feed/</wfw:commentRss>
		</item>
		<item>
		<title>silvermandel</title>
		<link>http://squeedlyspooch.com/blog/2008/03/12/silvermandel/</link>
		<comments>http://squeedlyspooch.com/blog/2008/03/12/silvermandel/#comments</comments>
		<pubDate>Thu, 13 Mar 2008 04:54:21 +0000</pubDate>
		<dc:creator>toshok</dc:creator>
		
		<category><![CDATA[moonlight]]></category>

		<category><![CDATA[mono]]></category>

		<category><![CDATA[geek]]></category>

		<category><![CDATA[journal]]></category>

		<guid isPermaLink="false">http://squeedlyspooch.com/blog/2008/03/12/silvermandel/</guid>
		<description><![CDATA[Over on Steven Engelhardt&#8217;s blog there&#8217;s a mandelbrot viewer written using silverlight 1.0 (meaning just xaml + javascript).  In his post he listed a few problems he had, and one caught my eye:

I can’t figure out how to do progressive (e.g. line-by-line) rendering to give the user feedback.

I figured this would be pretty easy [...]]]></description>
			<content:encoded><![CDATA[<p>Over on Steven Engelhardt&#8217;s blog there&#8217;s a <a href="http://www.deez.info/sengelha/2008/01/09/silverlight-10-mandelbrot-set-generator/">mandelbrot viewer</a> written using silverlight 1.0 (meaning just xaml + javascript).  In his post he listed a few problems he had, and one caught my eye:</p>
<ul>
<li>I can’t figure out how to do progressive (e.g. line-by-line) rendering to give the user feedback.</li>
</ul>
<p>I figured this would be pretty easy with the help of setTimeout() and some more global state, so I hacked it together <a href="http://squeedlyspooch.com/mandel-sl10/foo.html">here</a>.  Instead of the line by line rendering I implemented a progressive jpg style interlaced rendering, with multiple passes of smaller and smaller pixels.  As you can see in the demo, you can mouse over and click while it&#8217;s in the middle of rendering, and it&#8217;ll start the new render.  No more waiting.</p>
<p>One thing he&#8217;s doing (that he notes is quite heavyweight) is using rectangles.  To lessen the hit, he uses 1 rectangle for many contiguous pixels of the same color on the same line.  I&#8217;d imagine using an InkPresenter and adding stylus points might be a less heavyweight approach (at least I think it will be in the case of moonlight.)</p>
<p><strong>update:</strong> realized how to make mouse events faster - specify IsHitTestVisible=&#8221;false&#8221; on all the rectangles.  That way the event system doesn&#8217;t have to worry about generating enter/leave events for each scan line (and for many individual pixels on those scanlines).  And speaking of scan lines, add an translucent red indicator line that shows the next line to be drawn.  Add more precision (down to pixel_size == 1), and when we&#8217;re finished rendering, display how many rectangle children of the main canvas there are (for the first render there are over 13000.  that&#8217;s a lot of children.  moonlight seems to handle it ok too <img src='http://squeedlyspooch.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://squeedlyspooch.com/blog/2008/03/12/silvermandel/feed/</wfw:commentRss>
		</item>
		<item>
		<title>here we go again</title>
		<link>http://squeedlyspooch.com/blog/2008/03/12/here-we-go-again/</link>
		<comments>http://squeedlyspooch.com/blog/2008/03/12/here-we-go-again/#comments</comments>
		<pubDate>Wed, 12 Mar 2008 19:09:27 +0000</pubDate>
		<dc:creator>toshok</dc:creator>
		
		<category><![CDATA[journal]]></category>

		<guid isPermaLink="false">http://squeedlyspooch.com/blog/2008/03/12/here-we-go-again/</guid>
		<description><![CDATA[Another rash yesterday.  Same look to it as the two I developed previously (once in the hospital before they stopped the infusions, and once on Christmas eve when the serum sickness came on.)
I took benadryl last night and again this morning, and today the rash is gone.  By &#8220;gone&#8221;, I mean my skin no longer [...]]]></description>
			<content:encoded><![CDATA[<p>Another rash yesterday.  Same look to it as the two I developed previously (once in the hospital before they stopped the infusions, and once on Christmas eve when the serum sickness came on.)</p>
<p>I took benadryl last night and again this morning, and today the rash is gone.  By &#8220;gone&#8221;, I mean my skin no longer has flesh colored and red splotches.  Instead it&#8217;s uniformly red, although a lighter shade than last night.  It blanches when pressed, which is good (the redness isn&#8217;t caused by blood leaking into the skin), but it&#8217;s still hot to the touch and raises very quickly and angrily when scratched.</p>
<p>It&#8217;s way too long after the treatment for it to have something to do with a reaction to the animal proteins from the infusions (the cause of the previous two skin reactions), so at this point I&#8217;m guessing - and the doctors also seem to guess this, since they&#8217;ve told me to stop taking them - that it&#8217;s a side effect of the two prophylactic meds they have me on, both of which have this sort of thing listed as a possible side effect.  Strange to develop it now, though, as I&#8217;ve been on them since I left the hospital back in December.</p>
<p>So, back to the doc I go later today.</p>
]]></content:encoded>
			<wfw:commentRss>http://squeedlyspooch.com/blog/2008/03/12/here-we-go-again/feed/</wfw:commentRss>
		</item>
		<item>
		<title>last trainer test</title>
		<link>http://squeedlyspooch.com/blog/2008/03/07/last-trainer-test/</link>
		<comments>http://squeedlyspooch.com/blog/2008/03/07/last-trainer-test/#comments</comments>
		<pubDate>Sat, 08 Mar 2008 06:41:12 +0000</pubDate>
		<dc:creator>toshok</dc:creator>
		
		<category><![CDATA[geek]]></category>

		<category><![CDATA[journal]]></category>

		<guid isPermaLink="false">http://squeedlyspooch.com/blog/2008/03/07/last-trainer-test/</guid>
		<description><![CDATA[Did 50 miles on the trainer today.  I started out at 160 BG, had dropped to 86 in an hour, and hovered around 90 for the 2:50 it took to complete the ride.  Ended at 96.
Ate a little under 200g CHO over the course of the ride, with no insulin injected.  My [...]]]></description>
			<content:encoded><![CDATA[<p>Did 50 miles on the trainer today.  I started out at 160 BG, had dropped to 86 in an hour, and hovered around 90 for the 2:50 it took to complete the ride.  Ended at 96.</p>
<p>Ate a little under 200g CHO over the course of the ride, with no insulin injected.  My ratio today is pretty stupid: around 1U/47g CHO.</p>
<p>Anyway, I don&#8217;t think I need any further tests.  Time to start riding outdoors again.</p>
]]></content:encoded>
			<wfw:commentRss>http://squeedlyspooch.com/blog/2008/03/07/last-trainer-test/feed/</wfw:commentRss>
		</item>
		<item>
		<title>low</title>
		<link>http://squeedlyspooch.com/blog/2008/03/01/low/</link>
		<comments>http://squeedlyspooch.com/blog/2008/03/01/low/#comments</comments>
		<pubDate>Sat, 01 Mar 2008 18:01:51 +0000</pubDate>
		<dc:creator>toshok</dc:creator>
		
		<category><![CDATA[geek]]></category>

		<category><![CDATA[journal]]></category>

		<guid isPermaLink="false">http://squeedlyspooch.com/blog/2008/03/01/low/</guid>
		<description><![CDATA[I woke up this morning and had a BG of 179, even with the ride yesterday and the lantus in the evening.  dawn effect and all that, I&#8217;m sure.  I ate two bowls of cheerios and injected enough to cover the meal and correct for the high.  I give myself more than 1U/25g in the [...]]]></description>
			<content:encoded><![CDATA[<p>I woke up this morning and had a BG of 179, even with the ride yesterday and the lantus in the evening.  <a href="http://en.wikipedia.org/wiki/Dawn_effect">dawn effect</a> and all that, I&#8217;m sure.  I ate two bowls of cheerios and injected enough to cover the meal and correct for the high.  I give myself more than 1U/25g in the morning, so 2 bowls of cheerios rates at between 2.5 and 3U.  my correction factor is 1U/75, so I gave myself 3.5 units (which should have left me around 100), ate my breakfast, drank my coffee, and started cleaning house.</p>
<p>About an hour and a half later I was feeling kinda funky so I checked again.  58.</p>
<p>So, I ate a glucose tab and a couple more bowls of cereal.  And now, 20 minutes later as my blood sugar climbs out of the toilet (it&#8217;s at 71 now) I feel like utter crap.  Palms are sweaty and fingers are shaking bad enough that it&#8217;s hard to type.  Heart is racing, balance is shot, and I can&#8217;t focus on anything.</p>
<p>It&#8217;s weird.  at 70 (or even 80) are start feeling shaky and get sweaty palms.  At 58 I feel fine.  I feel kinda spacey, sure, but I can push through it if I&#8217;m focusing on something (like cleaning the house).  If I hadn&#8217;t had a momentary pause to think of what to clean next, I wouldn&#8217;t have noticed how weird I felt.</p>
<p>I bet at 40 I&#8217;d feel fantastic.  I wonder if it&#8217;s an asymptotic approach to peace, getting closer and closer until you finally kick off.  Scary.</p>
]]></content:encoded>
			<wfw:commentRss>http://squeedlyspooch.com/blog/2008/03/01/low/feed/</wfw:commentRss>
		</item>
		<item>
		<title>windowless moonlight</title>
		<link>http://squeedlyspooch.com/blog/2008/02/26/windowless-moonlight/</link>
		<comments>http://squeedlyspooch.com/blog/2008/02/26/windowless-moonlight/#comments</comments>
		<pubDate>Tue, 26 Feb 2008 20:52:36 +0000</pubDate>
		<dc:creator>toshok</dc:creator>
		
		<category><![CDATA[moonlight]]></category>

		<category><![CDATA[mono]]></category>

		<category><![CDATA[geek]]></category>

		<category><![CDATA[journal]]></category>

		<guid isPermaLink="false">http://squeedlyspooch.com/blog/2008/02/26/windowless-moonlight/</guid>
		<description><![CDATA[A little while ago I committed the first ugly pass at windowless support in moonlight.  By ugly I just mean I cut corners wherever I could, just to get it working.  The changes to support both windowed and windowless modes, with events coming in as either GdkEvents or Xlib events.. well, they&#8217;re a [...]]]></description>
			<content:encoded><![CDATA[<p>A little while ago I committed the first ugly pass at windowless support in moonlight.  By ugly I just mean I cut corners wherever I could, just to get it working.  The changes to support both windowed and windowless modes, with events coming in as either GdkEvents or Xlib events.. well, they&#8217;re a little gross <img src='http://squeedlyspooch.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  but we&#8217;ll get them refactored and beautified soon enough.</p>
<p>On to the goods.</p>
<p>Silverlight 1.0 has no built-in text input support, so the conventional wisdom says &#8220;use windowless mode, and use an overlayed html form element to allow input.&#8221;  Many sites use this, such as the <a href="http://silverlight.r2musings.com/weatherwidget/default.aspx">weatherwidget</a>:</p>
<p><a href="http://squeedlyspooch.com/blog/2008/02/26/windowless-moonlight/weather-widget/" rel="attachment wp-att-2121" title="Weather Widget"></a></p>
<p style="text-align: center"><a href="http://squeedlyspooch.com/blog/2008/02/26/windowless-moonlight/weather-widget/" rel="attachment wp-att-2121" title="Weather Widget"><img src="http://squeedlyspooch.com/blog/wp-content/uploads/2008/02/screenshot-weather-thumb.png" /></a></p>
<p>The <a href="http://www.windowsvista.si/main.htm?lang=1033">vista simulator</a> (which is a pretty crazy body of code.  *Tons* of javascript, and an architecture that leads me to believe it wasn&#8217;t originally intended for silverlight) uses windowless mode for another reason.  It doesn&#8217;t hook up events handlers to any of the xaml elements.  Instead, it adds JS event handlers to the &lt;object&gt; tag that surrounds the plugin.  Since there are no event handlers in the plugin, we return FALSE to signal we didn&#8217;t handle the event, which bubbles up the dom hierarchy to the object.</p>
<p><a href="http://squeedlyspooch.com/blog/2008/02/26/windowless-moonlight/vista-simulator/" rel="attachment wp-att-2122" title="Vista Simulator"></a></p>
<p style="text-align: center"><a href="http://squeedlyspooch.com/blog/2008/02/26/windowless-moonlight/vista-simulator/" rel="attachment wp-att-2122" title="Vista Simulator"><img src="http://squeedlyspooch.com/blog/wp-content/uploads/2008/02/screenshot-vista-thumb.png" /></a></p>
<p>You need svn HEAD of the moonlight code for this to work, and you also need to run it against a build of firefox3.  Unfortunately, given our use of unfrozen apis for dealing with the dom element reflection into managed code, you&#8217;ll more than likely run up against undefined C++ symbols for pages that do that sort of thing.  But there are a number of sites which don&#8217;t.  So give it a try <img src='http://squeedlyspooch.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
			<wfw:commentRss>http://squeedlyspooch.com/blog/2008/02/26/windowless-moonlight/feed/</wfw:commentRss>
		</item>
		<item>
		<title>simulated depth of field using cairo</title>
		<link>http://squeedlyspooch.com/blog/2008/02/10/simulated-depth-of-field-in-cairo/</link>
		<comments>http://squeedlyspooch.com/blog/2008/02/10/simulated-depth-of-field-in-cairo/#comments</comments>
		<pubDate>Sun, 10 Feb 2008 10:16:52 +0000</pubDate>
		<dc:creator>toshok</dc:creator>
		
		<category><![CDATA[geek]]></category>

		<category><![CDATA[journal]]></category>

		<guid isPermaLink="false">http://squeedlyspooch.com/blog/2008/02/10/simulated-depth-of-field-in-cairo/</guid>
		<description><![CDATA[I went to blue bottle&#8217;s new mint plaza cafe today and got some of their kyoto style iced coffee.  After the first sip I exclaimed &#8220;it tastes like alcohol!&#8221;  Joelle told me about how the barrista had told her that it had some bourbon flavor.  Boy did it ever.
Also, it&#8217;s insanely insanely [...]]]></description>
			<content:encoded><![CDATA[<p>I went to <a href="http://www.bluebottlecoffee.net/">blue bottle&#8217;s</a> new mint plaza cafe today and got some of their kyoto style iced coffee.  After the first sip I exclaimed &#8220;it tastes like alcohol!&#8221;  Joelle told me about how the barrista had told her that it had some bourbon flavor.  Boy did it ever.</p>
<p>Also, it&#8217;s insanely insanely strong.  The sort of caffeinated feeling that makes you think that if you *just* knew kung fu, you could kick everyone&#8217;s ass in a 2 block radius.</p>
<p>Or, the sort of caffeinated feeling that produces hacks like this:</p>
<p><object height="355" width="425">
<param name="movie" value="http://www.youtube.com/v/AtxR3XLGnzA&amp;rel=1"></param>
<param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/AtxR3XLGnzA&amp;rel=1" type="application/x-shockwave-flash" wmode="transparent" height="355" width="425"></embed></object></p>
<p>The youtube size probably isn&#8217;t the best for viewing this &#8212; try <a href="http://squeedlyspooch.com/images/dof-movie-3.avi">this link</a> for a larger version where you can actually see what&#8217;s going on.  One thing that still needs fixing is the &#8220;popping&#8221; of the opacity up to 1 when then surface comes into focus.  That and the code doesn&#8217;t use an f-stop-like metric now.  I want another demo where the focus is on the center surface and the f-stop changes, bringing surfaces in front and behind the focused one closer to focus.</p>
<p>Hopefully I can figure out a way to stick this in moonlight.  Maybe a canvas subclass.</p>
<p>Having &#8220;focused&#8221; mean &#8220;in focus&#8221; would be a pretty cool UI, and not just in moonlight.</p>
]]></content:encoded>
			<wfw:commentRss>http://squeedlyspooch.com/blog/2008/02/10/simulated-depth-of-field-in-cairo/feed/</wfw:commentRss>
<enclosure url="http://squeedlyspooch.com/images/dof-movie-3.avi" length="762180" type="video/x-msvideo" />
		</item>
		<item>
		<title>projects projects projects</title>
		<link>http://squeedlyspooch.com/blog/2008/02/08/projects-projects-projects/</link>
		<comments>http://squeedlyspooch.com/blog/2008/02/08/projects-projects-projects/#comments</comments>
		<pubDate>Sat, 09 Feb 2008 02:29:21 +0000</pubDate>
		<dc:creator>toshok</dc:creator>
		
		<category><![CDATA[flickr]]></category>

		<category><![CDATA[geek]]></category>

		<guid isPermaLink="false">http://squeedlyspooch.com/blog/2008/02/08/projects-projects-projects/</guid>
		<description><![CDATA[I finally soldered something last night.  I&#8217;m not sure how I made it more than 30 years on this planet (over 20 of them around computers) without ever touching an iron, but I somehow did.  Loads of fun just putting something physical together and having it work.  Now to become comfortable with microcontroller programming and [...]]]></description>
			<content:encoded><![CDATA[<p>I finally soldered something last night.  I&#8217;m not sure how I made it more than 30 years on this planet (over 20 of them around computers) without ever touching an iron, but I somehow did.  Loads of fun just putting something physical together and having it work.  Now to become comfortable with microcontroller programming and circuit design so that I can bring my dream of a fleet of autonomous personal blimp assistants to life.</p>
<p><a href="http://flickr.com/photos/toshok/2250244568/"></p>
<p style="text-align: center"><img src="http://farm3.static.flickr.com/2373/2250244568_cdcb7accc0.jpg" height="375" width="500" /></p>
<p></a></p>
<p>Next week is the second Novell Hack Week, so I&#8217;m skipping out on all Moonlight/Mono related responsibilities, and will be scratching an itch I&#8217;ve had for a while now.  Care to guess what it is?</p>
<p><a href="http://flickr.com/photos/toshok/2251069349/"></p>
<p style="text-align: center"><img src="http://farm3.static.flickr.com/2166/2251069349_42da594753.jpg" height="375" width="500" /></p>
<p></a></p>
<p>So many fun things to work on.  So little time.</p>
]]></content:encoded>
			<wfw:commentRss>http://squeedlyspooch.com/blog/2008/02/08/projects-projects-projects/feed/</wfw:commentRss>
		</item>
		<item>
		<title>floored</title>
		<link>http://squeedlyspooch.com/blog/2008/02/04/floored/</link>
		<comments>http://squeedlyspooch.com/blog/2008/02/04/floored/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 02:32:04 +0000</pubDate>
		<dc:creator>toshok</dc:creator>
		
		<category><![CDATA[geek]]></category>

		<category><![CDATA[journal]]></category>

		<guid isPermaLink="false">http://squeedlyspooch.com/blog/2008/02/04/floored/</guid>
		<description><![CDATA[Just got back from my endocrinologist appointment.  They did another A1c, just for kicks (I&#8217;ve had 3 done now in the course of roughly 3 months).  First A1c was the very end of October, and was 12.4.  Second was second week in December, and was 8.0.  This most recent A1c was 5.9.
So I&#8217;m officially normal [...]]]></description>
			<content:encoded><![CDATA[<p>Just got back from my endocrinologist appointment.  They did another A1c, just for kicks (I&#8217;ve had 3 done now in the course of roughly 3 months).  First A1c was the very end of October, and was 12.4.  Second was second week in December, and was 8.0.  This most recent A1c was 5.9.</p>
<p>So I&#8217;m officially normal now (at least in one small way).</p>
]]></content:encoded>
			<wfw:commentRss>http://squeedlyspooch.com/blog/2008/02/04/floored/feed/</wfw:commentRss>
		</item>
		<item>
		<title>what I learned today</title>
		<link>http://squeedlyspooch.com/blog/2008/01/16/what-i-learned-today/</link>
		<comments>http://squeedlyspooch.com/blog/2008/01/16/what-i-learned-today/#comments</comments>
		<pubDate>Wed, 16 Jan 2008 09:22:35 +0000</pubDate>
		<dc:creator>toshok</dc:creator>
		
		<category><![CDATA[geek]]></category>

		<category><![CDATA[journal]]></category>

		<guid isPermaLink="false">http://squeedlyspooch.com/blog/2008/01/16/what-i-learned-today/</guid>
		<description><![CDATA[sudafed causes big spikes in blood glucose, especially when you take it with carb heavy food.  sigh.  At least it&#8217;s coming down from the high of ~350.
This whole thing is exciting and frustrating at the same time.  It&#8217;s like I&#8217;m relearning everything.
]]></description>
			<content:encoded><![CDATA[<p>sudafed causes big spikes in blood glucose, especially when you take it with carb heavy food.  sigh.  At least it&#8217;s coming down from the high of ~350.</p>
<p>This whole thing is exciting and frustrating at the same time.  It&#8217;s like I&#8217;m relearning everything.</p>
]]></content:encoded>
			<wfw:commentRss>http://squeedlyspooch.com/blog/2008/01/16/what-i-learned-today/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
