I’m so glad I don’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’t be pleasantly surprised often that someone had the same idea and got it to a state where I don’t have to act on it at all.
Today peter pointed me at SugarTracker
Over on Steven Engelhardt’s blog there’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 with the help of setTimeout() and some more global state, so I hacked it together here. 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’s in the middle of rendering, and it’ll start the new render. No more waiting.
One thing he’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’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.)
update: realized how to make mouse events faster - specify IsHitTestVisible=”false” on all the rectangles. That way the event system doesn’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’re finished rendering, display how many rectangle children of the main canvas there are (for the first render there are over 13000. that’s a lot of children. moonlight seems to handle it ok too 
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 “gone”, I mean my skin no longer has flesh colored and red splotches. Instead it’s uniformly red, although a lighter shade than last night. It blanches when pressed, which is good (the redness isn’t caused by blood leaking into the skin), but it’s still hot to the touch and raises very quickly and angrily when scratched.
It’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’m guessing - and the doctors also seem to guess this, since they’ve told me to stop taking them - that it’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’ve been on them since I left the hospital back in December.
So, back to the doc I go later today.
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 ratio today is pretty stupid: around 1U/47g CHO.
Anyway, I don’t think I need any further tests. Time to start riding outdoors again.
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’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.
About an hour and a half later I was feeling kinda funky so I checked again. 58.
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’s at 71 now) I feel like utter crap. Palms are sweaty and fingers are shaking bad enough that it’s hard to type. Heart is racing, balance is shot, and I can’t focus on anything.
It’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’m focusing on something (like cleaning the house). If I hadn’t had a momentary pause to think of what to clean next, I wouldn’t have noticed how weird I felt.
I bet at 40 I’d feel fantastic. I wonder if it’s an asymptotic approach to peace, getting closer and closer until you finally kick off. Scary.