KBD

Keith Devens .com

Friday, December 5, 2008 Flag waving
It's such a fine line between stupid and clever. – David St. Hubbins (This is Spinal Tap)

Archive: July 20, 2003

← July 19, 2003July 21, 2003 →

Daily link icon Sunday, July 20, 2003

Neat C++ snippet of the day

This function converts anything that can be cout-ed to a string:

template<class T> string tos(const T& foo){
    ostringstream o;
    o << foo;
    return o.str();
}

I have a separate version that lets me convert numbers to a different base:

string tos(const int i, const int base = 10){
    ostringstream o;
    o << setbase(base) << i;
    return o.str();

Also, see this.

I've hit a new low

Wow, I've hit a new low. I was just so bored that I decided to get up and go to the bathroom without really having to go, just to break the monotony. And this was after watching most of Stuart Little 2 through the end. WHAT HAVE I BECOME??

Pinging weblogs.com is SLOW

Pinging weblogs.com is super slow. My form that posts to my weblog just took over 135 seconds to return because it pings weblogs.com (both the regular and RSS flavors) and blo.gs. Based on my experience, the problem isn't blo.gs. I may stop bothering with weblogs.com soon.

Bad Boys II update

Ebert gives this movie the good ripping into that it really does deserve.

Why haven't there been any worthwhile movies lately (with the exception of Finding Nemo)? I always hear about "indie" movies that get made, but which the big studios aren't interested in because they don't involve superheroes, don't cost $200+ million to make, and don't have JLo or Ben Affleck in them, but there's no way to see those... they're not out on DVD at BlockBuster, and they get no publicity and little to no recognition so there's no easy way to know what's out there and you're not even sure what's good.

My movie ticket cost $9.75, and I still have to sit through more than 15 minutes of commercials every time I go. I'm starting to not be interested in seeing movies anymore...

I just want to watch a movie that doesn't have meaningless action, that doesn't have plot holes that I just have to ignore that the people who make the movies don't have enough respect for their audience to think that anyone would notice or care about -- maybe they're not wrong -- and that actually have an impact on me after the movie is over. I really want something more from Hollywood than big explosions and property damage. Is that too much to ask?

← July 19, 2003July 21, 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 4 posts

Recent comments XML

Girls, please don't get breast implants

I have 34 A breast but at 22 years​old they seem to be growing again​which ...

76.64.120.153: Dec 3, 10:00am

Perl 6 1.0 in March?

Doh, my mistake. I'm aware of the​relation between Parrot and Rakudo​but I'...

Keith: Dec 2, 1:03am

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

Generated in about 0.066s.

(Used 7 db queries)

mobile phone