head page 7 - Dave's Blog

Search
My timeline on Mastodon

Solar, with lyrics. on Vimeo

2008 Apr 9, 11:00Cool music visualization. "Made with Processing. Audio by Goldfrapp ("Lovely Head" off her first album)."PermalinkCommentsvia:boingboing art video animation music goldfrapp

Martian Headsets - Joel on Software

2008 Mar 19, 11:30Excellent rant on the history and state of IE8's decision to default to super-standards mode vs IE7 mode.PermalinkCommentsbrowser internet browser-war ie microsoft history w3c standard standards html css joel-on-software

RFC 2231 MIME Parameter Value and Encoded Word Extensions: Character Sets, Languages, and Continuations

2008 Mar 8, 11:44"This memo defines extensions to the RFC 2045 media type and RFC 2183 disposition parameter value mechanisms to provide ... a means to specify parameter values in character sets other than US-ASCII..."PermalinkCommentshttp http-header rfc standard reference ietf mime encoding charset language content-disposition

HTTP headers and non-asci characters (Content-Disposition, filename, attachment) Article

2008 Mar 8, 11:43"I was not able to find universal settings to do this task, but it looks like Mozilla based browsers accepts utf-8 encoded headers and headers Encoded Word Extensions from RFC 2231. Internet explorer accepts utf-8 filenames only when 1. the data are URL ePermalinkCommentshttp http-header charset ascii utf8 mozilla ie browser content-disposition

Radiohead's Scotch_Mist // Current

2008 Jan 2, 1:11Radiohead's New Years video as seen on Current.PermalinkCommentscurrent audio music radiohead video tv via:felix42

ThinkGeek :: ThinkGeek Bluetooth Retro Handset

2007 Dec 11, 11:13A bluetooth handset that's like a retro headset.PermalinkCommentsshopping retro headset bluetooth phone cellphone

The Future: Schizophrenia Is The New Ad Gimmick

2007 Dec 6, 5:18Billboards use hypersonic sound beams to make you hear voices in your head.PermalinkCommentsadvertising humor sound spam billboards

Ex College Roommate News

2007 Nov 9, 2:38Jon's leaving for Germany today which of course is sad. On Wednesday, Jon came over and we watched Hackers. There's a few things you probably wouldn't notice without repeated viewings of the film: In similar ex college roommate news, I'm going to California over the weekend for Angie and Kane's goodbye party. They're heading for Australia for like a year or something. Angie's got a blog about her travels but rarely seems to update it. I'll get to see Carissa and Elijah there too, almost completing the ex college roommate experience. To avoid confusion I should mention that unlike everyone else I know, Carissa and Elijah aren't leaving the country.PermalinkCommentspersonal nontechnical

Microcontent: Headlines and Subject Lines (Alertbox)

2007 Oct 22, 2:36How to create good headlines and subjects for webpages and email.PermalinkCommentsblog article design email howto usability tutorial language internet writing web

go ahead, mac my day : the Microsoft fallacy

2007 Sep 28, 11:10"The Microsoft fallacy has the following components: If a company has a lot of money, this means that they have sufficient resources to do anything. If a company has a lot of money, every piece of that company has access to all of it. Every large companyPermalinkCommentsarticle microsoft humor mac blog

Headsets: Plantronics Voyager 855 Bluetooth Headset Does Mono Calls and Stereo Music - Gizmodo

2007 Sep 11, 11:17A headset that allows you to switch between a bluetooth phone and music.PermalinkCommentsproduct headphone music headset phone plantronics bluetooth purchase

An Exploration of Dynamic Documents

2007 Sep 4, 6:57Netscape's documentation on the non-standard HTTP refresh header.PermalinkCommentsrefresh http http-header netscape reference

Awesome Movies Unknown to Me

2007 Aug 12, 2:50Thanks to Netflix I've been able to enjoy several movies that I'd never heard of.



Brick is a classic PI film set in a modern high school. Its fun figuring out which high school students correspond to which film noir archetypes.

Primer is a sci-fi movie but it doesn't focus on action or effects. Its like watching an excellent Twilight Zone episode. I hate to describe this any further for fear of giving something away.

The Amazing Screw-On Head is an animated version of the one shot comic. It feels like the 1800s precursor to the The Venture Bros. and stars Screw-On Head, a steam-punk robot head thing and Abe Lincoln's top spy for occult matters.

The Quiet Earth is the movie version of the book about a man who awakes one day to find himself alone(... or is he?) It was made in the 80s and in Australia but don't hold that against it.PermalinkCommentsscifi primer movie amazing screw-on head personal netflix brick the quiet earth

Wp64 Issues

2007 Aug 6, 3:43Miladin told me about the Visual Studio compiler's promising option Wp64 that finds 64bit portability issues when compiling in 32bit. If, for instance, you cast from a (long*) to a (long) you get a W4 warning. However, the #defines are still set for 32bit builds. This means that other parts of the code can make assumptions based on the #defines that are valid on 32bit but generate 64bit errors or warnings.

For instance, in winuser.h the public published Windows header file there's the following:
...
#ifdef _WIN64
...
WINUSERAPI
LONG_PTR
WINAPI
SetWindowLongPtrA(
    __in HWND hWnd,
    __in int nIndex,
    __in LONG_PTR dwNewLong);
...
#else  /* _WIN64 */
...
#define SetWindowLongPtrA   SetWindowLongA
...
#endif /* _WIN64 */
...
In 64bit everything's normal but in 32bit SetWindowLongPtrA is #defined to SetWindowLongA which takes a LONG rather than a LONG_PTR. So take the following code snippet:
...
LONG_PTR inputValue = 0;
LONG_PTR error = SetWindowLongPtrA(hWnd, nIndex, inputValue);
...
This looks fine but generates warnings with the Wp64 flag.

In 64 bit, p is cast to (LONG_PTR) and that's great because we're actually calling SetWindowLongPtrA which takes a LONG_PTR. In 32 bit, p is cast to (LONG_PTR) which is then implicitly cast to (LONG) because we're actually calling SetWindowLongA. LONG and LONG_PTR are the same size in 32bit which is fine but if you turn on the Wp64 flag there's a W4 warning because of the implicit cast from a larger size to a smaller size if you were to compile for 64bit. So even though doing a 32bit or 64bit compile would have worked just fine, if you turn on the Wp64 flag for 32bit you'd get an error here.

It looks like I'm the most recent in a list of people to notice this issue. Well I investigated this so... I'm blogging about it too!PermalinkCommentswp64 technical 64bit compiler c++ visual-studio setwindowlongptra

Boing Boing: Radiohead, remixed: Me and This Army from Panzah Zandahz

2007 Jul 26, 11:20Free album Me and This Army is a collection of Radiohead songs mixed with other songs by Panzah Zandahz.PermalinkCommentsradiohead rap mp3 music audio remix torrent free

stereogum presents...OK X: A Tribute to OK Computer

2007 Jul 11, 2:10A tribute to OK Computer consisting of various bands covering the songs. I'm surprised to find its been ten years since my favorite album was released.PermalinkCommentsaudio music mp3 blog download free radiohead ok-computer

Missing Bee Roundup

2007 Apr 15, 4:06For the past several months I've seen various articles suggesting why bees are disappearing. At first I thought this was another crackpot's article that somehow made it onto digg.com. But they keep coming and sometimes from credible sources. After the article I saw tonight I thought I should go back and put together the various articles I've read on this topic. Bees may be disappearing due to pesticides, new organic pathogens, genetically modified crops, mobile phones, or climate change. Apparently, the US hasn't been keeping accurate counts of its bees so we don't know the extent of the situation. There's an interview with Maryann Frazier, M.S., of the Dept. of Etymology at Penn State and a congressional hearing on the matter.

I know this is all very serious and could signal the end of our ecosystem as we know it, but I can't help throwing in the following links as well. The bees could be hiding in this Florida couple's kitchen. Or perhaps they're laying low while being trained by the government to fight terrorism. Or they're hiding in extra dimensions that we mere humans can't perceive (I'm fairly certain that's what this article is suggesting. Really. Read it. Seriously. Its awesome.)PermalinkCommentsroundup personal bees nontechnical

IANA | Permanent Message Header Field Registry

2007 Apr 2, 1:31The IANAs list of headers for HTTP and mail.PermalinkCommentsemail http iana internet reference registry rfc standard standards

Junkbusters Declare Headlines

2007 Mar 30, 3:26Information on reducing phone, email, and physical spam (junk mail & telemarketers). Also has lots of info on other privacy related matters. The sites ugly but I find its easy to navigate and find the info I want.PermalinkCommentsprivacy security tools junk mail spam

Weekend Humor

2007 Mar 13, 8:16Over the weekend I went with Jon and Sarah to see Zach Galifianakis perform at The Moore who was awesome of course. I hadn't been to The Moore before but it was very cool. The space is very vertical with two levels of balconies making it seem small in the other dimensions. We were on the middle level so when Zach climbed off the stage to talk to the audience we couldn't see him.

Before the show we ate at The Steelhead Diner. I enjoyed my chicken sandwhich but the place seemed a little full of itself with salt and pepper that had been infused with this and that. At any rate it had a nice atmosphere and good food which I suppose is the point.

The opening act for Zach was another comedian whose name I don't recall. He was pretty funny but seemed to do just a tad too much pandering to the Seattle audience. "The administration should do something different than what they're doing currently!" *Audience Cheers* is sort of equivalent to "Its great to be here in... Seattle!" *Audience Cheers*.PermalinkCommentspersonal seattle nontechnical
Older EntriesNewer Entries Creative Commons License Some rights reserved.