KBD

Keith Devens .com

Monday, December 1, 2008 Flag waving
The Lord is my shepherd; I shall not want. – David (Psalm 23)

Archive: May 01, 2003

← April 30, 2003May 02, 2003 →

Daily link icon Thursday, May 1, 2003

Bush's speech

Man, watching all the spontaneous applause for Bush just now and watching Bush tear up was just too much.

Man, great speech. I can't wait to get the transcript.

Explanation of coroutines

Dan Sugalski's blog has become one of my favorites lately. His newest essay on coroutines is a perfect example of why.

Anyway, what is a coroutine? Well, a coroutine is a subroutine or function that can pause in the middle and return a value. When you call it again it picks up right where it was when you paused, environment intact, and keeps on going. Coroutines are almost always closures, though strictly speaking they don't have to be--if you had a language that didn't have closures, or lexical variables, you could still have coroutines. (Though generally speaking nobody does that. You could, though, if you were so inclined) Often coroutines are called iterators or generators, but that's not strictly correct--while you can make iterators and generators with coroutines, you don't have to. Nor are coroutines limited to being iterators or generators, as some systems use coroutines to implement threading, and coroutines can make really nifty callbacks.

From the outside you can't tell if a function is a coroutine any more than you can tell that a function is a closure. Your code calls it and gets back a value (or values) and that's all that's important. (Yay, encapsulation)

I understand coroutines better now after reading the article. Thanks Dan.

Awesome review of last night's Angel

Via WHEDONesque, an awesome review of last night's Angel.

[In] all the years of both BTVS and "Angel," we've never had a Big Bad do such a terrific job of explaining just exactly why they're not a Big Bad at all. In the real world, evil is never in black and white, but shades of grey. Evil never believes it's evil. It always believes it's serving a greater good. Jasmine is the first Big Bad in the Whedon-verse that I can think of who had that very realistic attitude.

Awesome.

Well, after reflection a bit, that's not always true. Sometimes evil just wants power, and it's often a combination.

Twenty-five pieces is not the same as 170,000

Considering that this was an intentional heist (the people had keys to the place!), and not random looting, this is really surprisingly not bad. A lot of the artifacts had already been showing up in places like the French black markets, and some pieces were just returned voluntarily.

Ann Coulter put it really well on Bill Maher's show last night. The gist of it was: "First it was going to be 100,000 casualties, then it was going to be chemical weapons used on our troops, then it was going to be... [etc. etc.] and now it's some guy sliding down a banister" (Bill Maher brought up a picture of a soldier sliding down a banister in one of Saddam's palaces (awesome picture, btw.), and was saying that... well, I'm not really sure what he was saying about it... America is abusing its power there? He showed pictures of our generals working out of one of Saddam's palaces too. I think his point was something like "new boss same as the old boss", but that's silly.)

Anyway, Ann Coulter's point was well-taken. The anti-war, anti-America, anti-Bush crowd has less and less to be mad about, so they inflate minor things into big problems.

Wheel 'O Yum

Via Jim, check out the Wheel 'O Yum.

The Wheel 'O Yum is a program to aid in deciding where to eat. All too often, excess time is spent among groups trying to decide. The Wheel 'O Yum allows one or more people to vote on their favorite restaurants and spin the wheel for a random--but educated--restaurant.

Most useful program, ever.

← April 30, 2003May 02, 2003 →
December 2008
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
28293031 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 5 posts

Recent comments XML

new⇒Free image hosting sites

Well, TinyPic has this in its​FAQ:

> Images and videos is in​your accoun...

Keith: Dec 1, 1:13am

Join a NameValueCollection into a querystring in C#

Well with a lamba expression, this​is what I came up​with:

?!code:csharp...

Gustaf Lindqvist: Nov 30, 4:38pm

Why no generic OrderedDictionary?

Check​http://www.codeproject.com/KB/recip​es/GenericOrderedDictionary.aspx?d...

Gabrielk: Nov 27, 6:57am

WhatIsMyIP.com

http://www.thesysteminfo.com is​another good alternate to​whatismp.com... I...

Kripz: Nov 26, 8:51pm

Girls, please don't get breast implants

Actually I think it's sweet when a​man loves a woman whether she's big​or n...

218.186.12.228: Nov 26, 9:40am

Generated in about 0.07s.

(Used 7 db queries)

mobile phone