seq page 4 - Dave's Blog

Search
My timeline on Mastodon

A true American Patriot recites Bill Pullman’s Independence Day speech around New York City  | Great Job, Internet! | The A.V. Club

2011 Jul 6, 7:28"Over this past Fourth Of July weekend, we neglected to note that it was the 15th anniversary of Roland Emmerich’s 1996 blockbuster Independence Day. New York comedian Sean Kleier remembered, and decided to make his own tribute, going to various locations around New York City—Times Square, the Brooklyn Bridge, the subway, and inside a Victoria’s Secret—reciting Bill Pullman’s rousing speech before the movie's final battle sequence, megaphone and all."
PermalinkCommentshumor video bill-pullman independence-day new-york

Command line for finding missing URLACTIONs

2011 May 28, 11:00

I wanted to ensure that my switch statement in my implementation of IInternetSecurityManager::ProcessURLAction had a case for every possible documented URLACTION. I wrote the following short command line sequence to see the list of all URLACTIONs in the SDK header file not found in my source file:

grep URLACTION urlmon.idl | sed 's/.*\(URLACTION[a-zA-Z0-9_]*\).*/\1/g;' | sort | uniq > allURLACTIONs.txt
grep URLACTION MySecurityManager.cpp | sed 's/.*\(URLACTION[a-zA-Z0-9_]*\).*/\1/g;' | sort | uniq > myURLACTIONs.txt
comm -23 allURLACTIONs.txt myURLACTIONs.txt
I'm not a sed expert so I had to read the sed documentation, and I heard about comm from Kris Kowal's blog which happilly was in the Win32 GNU tools pack I already run.

But in my effort to learn and use PowerShell I found the following similar command line:

diff 
(more urlmon.idl | %{ if ($_ -cmatch "URLACTION[a-zA-Z0-9_]*") { $matches[0] } } | sort -uniq)
(more MySecurityManager.cpp | %{ if ($_ -cmatch "URLACTION[a-zA-Z0-9_]*") { $matches[0] } } | sort -uniq)
In the PowerShell version I can skip the temporary files which is nice. 'diff' is mapped to 'compare-object' which seems similar to comm but with no parameters to filter out the different streams (although this could be done more verbosely with the ?{ } filter syntax). In PowerShell uniq functionality is built into sort. The builtin -cmatch operator (c is for case sensitive) to do regexp is nice plus the side effect of generating the $matches variable with the regexp results.
PermalinkCommentspowershell tool cli technical command line

Fire lane sign in snow

2011 Feb 24, 8:10

PermalinkCommentssnow sign firelane flickrmanager windowsphone7

WP_000013

2010 Dec 31, 4:51

PermalinkCommentsflickrmanager windowsphone7

WP_000021

2010 Dec 31, 4:09

PermalinkCommentsflickrmanager windowsphone7

WP_000020

2010 Dec 31, 4:02

PermalinkCommentsflickrmanager windowsphone7

Snow road

2010 Dec 29, 5:12

PermalinkCommentsroad snow redmond wa flickrmanager windowsphone7

It's Official: Duke Nukem Forever Coming From Gearbox In 2011

2010 Sep 4, 7:55"Given Duke Nukem Forever's epic development—it was first announced in 1997 as a sequel to Duke Nukem 3D—it might be wise to hedge on the later of those two release windows."PermalinkCommentsduke-nukem game video videogame

Japanese Friendship Garden, San Jose

2010 Jul 31, 7:00

PermalinkCommentsca garden sanjose

Sprinkler Fail

2010 Jul 16, 6:59

PermalinkCommentswater lamp grass pole sprinkler fail

Bitter Chocolate Beer Bottle

2010 Jul 16, 6:43

PermalinkCommentsbear beer bottle salt wa issaquah

Cow Dung Cupcakes

2010 Jun 29, 1:21

PermalinkCommentsfood cupcake poop

King's Quest returns in The Silver Lining | THINQ.co.uk

2010 Jun 29, 6:40A fan made Kings Quest sequel gets an official go-ahead: "After negotiations, the C&D [cease and desist] has been officially rescinded, and Phoenix Online has been granted a non-commercial license to release The Silver Lining!"PermalinkCommentsgame legal law videogame kings-quest sierra technical

Animated GIF From Wedding

2010 Jun 13, 3:47From Angie's photos of my wedding there's a sequence of four photos where everyone's holding still except me. Of course I turned this into an animated GIF using GIF Make, to produce my animated wedding GIF. I don't embed the image in the HTML because it is really irritating.PermalinkCommentswedding animated photo personal gif

I'm Married!

2010 Jun 12, 2:18

2010_05_Dave and Sarah Wedding_Sarah and Dave Married WalkDid I mention that I got married two weeks ago today on May 29th? Its true! Our wedding was a kind of planning singularity -- all of my planning efforts would get sucked into that day and I couldn't make any plans past that date. But the actual wedding itself was lovely and I didn't feel nearly as stressed out or nervous during the wedding as I did trying to plan for it. I've been gathering wedding photos on our wedding website photos page.

PermalinkCommentswedding photo personal marriage

2010_05_Dave_and_Sarah_Wedding_Jodee_and_Dave_II

2010 Jun 5, 3:54

PermalinkComments

2010_05_Dave_and_Sarah_Wedding_Sarah_Shows_off_the_Ring

2010 Jun 5, 3:54

PermalinkComments

2010_05_Dave_and_Sarah_Wedding_Dave_with_Mother_and_Mother-In-Law

2010 Jun 5, 3:54

PermalinkComments

2010_05_Dave_and_Sarah_Wedding_Dave_and_Jodee_Beach

2010 Jun 5, 3:54

PermalinkComments

2010_05_Dave_and_Sarah_Wedding_Dave_I

2010 Jun 5, 3:54

PermalinkComments
Older EntriesNewer Entries Creative Commons License Some rights reserved.