info page 6 - Dave's Blog

Search
My timeline on Mastodon

(via Portlandia: The Dream of the 1890s is Alive in Portland)

2012 Feb 6, 4:26


(via Portlandia: The Dream of the 1890s is Alive in Portland)

PermalinkCommentshumor video portland portlandia tv

Remember when they killed off Superman?  One of the guys behind...

2012 Feb 5, 12:37


Remember when they killed off Superman?  One of the guys behind Chronicle has made this video explaining that whole thing.  Kind of like Drunk History but less drunk and more nerdy (via Death and Return of Superman)

PermalinkCommentssuperman hero comic-book humor video

The Walking Dead Alternate Intro (by tlunsford)

2012 Jan 27, 2:56


The Walking Dead Alternate Intro (by tlunsford)

PermalinkCommentshumor video walking-dead zombie tv

(via Celebrity Sleepovers, Comedian Crashes at Celebrity Homes)

2012 Jan 26, 4:57


(via Celebrity Sleepovers, Comedian Crashes at Celebrity Homes)

PermalinkCommentshumor la celebrity video

Crushable has the video from the Cinefamily Pete and Pete...

2012 Jan 26, 12:03


Crushable has the video from the Cinefamily Pete and Pete tribute and panel. Also, AV Club is now inspired to have a Pete and Pete cast and crew reunion.

PermalinkComments

They Might Be Giants 2012 tour across the US! | When Will You...

2012 Jan 11, 4:02


They Might Be Giants 2012 tour across the US! | When Will You Die? (OFFICIAL VIDEO) (by ParticleMen)

PermalinkCommentsvideo humor music they-might-be-giants

Bath Time for Baby Sloths | Too Cute (by AnimalPlanetTV)

2012 Jan 10, 11:58


Bath Time for Baby Sloths | Too Cute (by AnimalPlanetTV)

PermalinkCommentscute sloth baby video bath

Dustforce Trailer - Available on Steam January 17th! (by...

2012 Jan 10, 2:17


Dustforce Trailer - Available on Steam January 17th! (by hitboxteam)

Funny concept, and from the video it looks like lovely execution.

PermalinkCommentshumor video video-game dustforce trailer

(via MakerBot Replicator, A New Larger 2 Color 3D Printer by...

2012 Jan 9, 5:43


(via MakerBot Replicator, A New Larger 2 Color 3D Printer by MakerBot)

PermalinkCommentsvideo maker-bot 3d-printer

 lol-tastic surprise ending! (via Frog plays Ant Smasher)

2011 Dec 23, 1:22


 lol-tastic surprise ending! (via Frog plays Ant Smasher)

PermalinkCommentshumor video phone cellphone frog

(via VIDEO: Pandas Playing in the Snow)

2011 Dec 19, 6:57


(via VIDEO: Pandas Playing in the Snow)

PermalinkCommentshumor cute panda video

Video

2011 Dec 9, 1:14


PermalinkCommentshumor ad commercial youtube meme

(via Sugru Loves Lego)

2011 Dec 7, 11:27


(via Sugru Loves Lego)

PermalinkCommentslego video make

Bug Spotting: Ctors with default parameters

2011 Dec 1, 4:59

The following code compiled just fine but did not at all act in the manner I expected:

BOOL CheckForThing(__in CObj *pObj, __in IFigMgr* pFigMgr, __in_opt LPCWSTR url)
{
BOOL fCheck = FALSE;
if (SubCheck(pObj))
{
...
I’m calling SubCheck which looks like:
bool SubCheck(const CObj& obj);

Did you spot the bug? As you can see I should be passing in *pObj not pObj since the method takes a const CObj& not a CObj*. But then why does it compile?

It works because CObj has a constructor with all but one param with default values and CObj is derived from IUnknown:

CObj(__in_opt IUnknown * pUnkOuter, __in_opt LPCWSTR pszUrl = NULL);
Accordingly C++ uses this constructor as an implicit conversion operator. So instead of passing in my CObj, I end up creating a new CObj on the stack passing in the CObj I wanted as the outer object which has a number of issues.

The lesson is unless you really want this behavior, don't make constructors with all but 1 or 0 default parameters. If you need to do that consider using the 'explicit' keyword on the constructor.

More info about forcing single argument constructors to be explicit is available on stack overflow.

PermalinkCommentsc++ technical bug programming

(via TV: Great Job, Internet!: Amy Poehler accepts award, key to...

2011 Nov 29, 12:45


(via TV: Great Job, Internet!: Amy Poehler accepts award, key to America’s heart)

PermalinkCommentshumor video amy-poehler

(via Eve’s Wireless, Silent Film About The World’s First Mobile...

2011 Nov 17, 3:48


(via Eve’s Wireless, Silent Film About The World’s First Mobile Phone (1922))

PermalinkCommentshistory technology phone cell-phone video

"Forwarded HTTP Extension" - Andreas Petersson, Martin Nilsson

2011 Nov 17, 3:30

Describes forward HTTP headers to explicitly list proxying information that might otherwise be lost.

PermalinkCommentstechnical ietf http http-header proxy

(via LEGO Life of George Combines Real LEGO Play With an iPhone...

2011 Nov 17, 3:27


(via LEGO Life of George Combines Real LEGO Play With an iPhone App)

PermalinkComments

“The Big Head by San Francisco artist Dan Rosenfeld is an...

2011 Nov 15, 11:54


The Big Head by San Francisco artist Dan Rosenfeld is an oversize video conferencing helmet that displays an enlarged version of the wearer’s face on a 24″ monitor at the front of the helmet. Rosenfeld debuted the helmet at this year’s Halloween” (via The Big Head, A Giant Videoconferencing Helmet by Dan Rosenfeld)

PermalinkCommentshumor halloween big-head video

(via Still Alive by Jonathan Coulton, Featuring Sara Quin)

2011 Nov 15, 11:52


(via Still Alive by Jonathan Coulton, Featuring Sara Quin)

PermalinkCommentsmusic jonathan-coulton sara-quin still-alive portal game video
Older EntriesNewer Entries Creative Commons License Some rights reserved.