comment page 2 - Dave's Blog

Search
My timeline on Mastodon

Eschuk comments on If you became the last person on Earth, what would you do? Realistically.

2010 Mar 12, 10:03Eschuk has fairly detailed strategy for last person on Earth scenario. Humrous comments follow.

itdest1983: "I hate to be a debbie downer and question this incredibly awesome and very intelligent plan, but my question is: Why? Other than sustaining life simply to avoid death, why? ..."

Eschuk : "Then someones got some existential shit to hash out. ..."PermalinkCommentshumor reddit strategy apocalypse

Facebook Wants to Be Your One True Login

2010 Feb 22, 3:55Hilarious Internet illiteracy generates tons of confused comments on RWW: '... We've determined by looking at our traffic stats that people are doing Google searches for "facebook login" and coming upon RWW. They see the FB Connect button and assume that RWW is the "new Facebook." Sigh. The Internet Is Hard.'PermalinkCommentsvia:kottke facebook internet identity openid

This is the title of a typical incendiary blog post - Coyote Crossing

2010 Jan 28, 2:32A typical blog post with typical blog post comments... "This comment gives a link to a YouTube video which is proffered as an excellent example of the thesis of the post, but, is actually only tangentially so at best."PermalinkCommentshumor blog web troll

Benny Hillifier

2010 Jan 5, 5:58Plays any YouTube video to the Yakety Sax song turning it into a Benny Hill sketch... Found via comments in http://www.boingboing.net/2010/01/05/police-car-chase-wit.htmlPermalinkCommentshumor video mashup youtube music

"I Love You, Mr. Star Wars" And Other Famous Movie Quotes - Supercuts - Videogum

2009 Nov 9, 11:39A montage of lines from movies containing the title of the movie. Worth it for the comments: "I'm just so tired of all these Star Wars." "That sounds really terrible. I will make sure write it all down in my TYLER PERRY'S DIARY OF A MAD BLACK WOMAN."PermalinkCommentshumor video via:waxy movie film quote

McSweeney's Internet Tendency: YouTube Comment or e. e. cummings?

2009 Oct 19, 11:39PermalinkCommentshumor web language youtube satire poetry ee-cummings

Language Log ยป Google Books: A Metadata Train Wreck

2009 Sep 10, 8:22Geoff Nunberg investigates issues in Google Books and in the comments Google Book's team manager responds in the comments. Apparently metadata is bad everywhere and not an issue new to the Web and user generated content or tagging. Like finding Feynman lectures categorized as Death Metal on Napster back in the day.PermalinkCommentslanguage google library metadata catalog

Fake Zombies attacking an innocent driver

2009 Aug 17, 8:39Laughed for this comment on the zombie photo used in the Wired article: 'Funny, the Wired article attribution ... says, "Fake Zombies attacking an innocent driver." I don't know who decided on that caption, but it made me immediately want to ask 1. How do you know they're FAKE zombies? 2. How do you know the driver is INNOCENT?'
PermalinkCommentshumor zombie photo flickr wired

IEBlog : Engineering POV: IE6

2009 Aug 12, 4:55"As a browser supplier, we want people to switch to the latest version of IE...", "Dropping support for IE6 is not an option because we committed to supporting the IE included with Windows for the lifespan of the product.", followed by a large number of comments from irate webdevs who missed the point.PermalinkCommentsblog microsoft ie ie6 dean-hachamovitch technical

Apollo 11 lunar and command module software open-sourced

2009 Jul 23, 2:59"hand-typed from original scans by the Virtual AGS project; in the comments, numero mysterioso and hope hope hope"PermalinkCommentshumor code space programming via:waxy technical

PowerShell Scanning Script

2009 Jun 27, 3:42

I've hooked up the printer/scanner to the Media Center PC since I leave that on all the time anyway so we can have a networked printer. I wanted to hook up the scanner in a somewhat similar fashion but I didn't want to install HP's software (other than the drivers of course). So I've written my own script for scanning in PowerShell that does the following:

  1. Scans using the Windows Image Acquisition APIs via COM
  2. Runs OCR on the image using Microsoft Office Document Imaging via COM (which may already be on your PC if you have Office installed)
  3. Converts the image to JPEG using .NET Image APIs
  4. Stores the OCR text into the EXIF comment field using .NET Image APIs (which means Windows Search can index the image by the text in the image)
  5. Moves the image to the public share

Here's the actual code from my scan.ps1 file:

param([Switch] $ShowProgress, [switch] $OpenCompletedResult)

$filePathTemplate = "C:\users\public\pictures\scanned\scan {0} {1}.{2}";
$time = get-date -uformat "%Y-%m-%d";

[void]([reflection.assembly]::loadfile( "C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll"))

$deviceManager = new-object -ComObject WIA.DeviceManager
$device = $deviceManager.DeviceInfos.Item(1).Connect();

foreach ($item in $device.Items) {
        $fileIdx = 0;
        while (test-path ($filePathTemplate -f $time,$fileIdx,"*")) {
                [void](++$fileIdx);
        }

        if ($ShowProgress) { "Scanning..." }

        $image = $item.Transfer();
        $fileName = ($filePathTemplate -f $time,$fileIdx,$image.FileExtension);
        $image.SaveFile($fileName);
        clear-variable image

        if ($ShowProgress) { "Running OCR..." }

        $modiDocument = new-object -comobject modi.document;
        $modiDocument.Create($fileName);
        $modiDocument.OCR();
        if ($modiDocument.Images.Count -gt 0) {
                $ocrText = $modiDocument.Images.Item(0).Layout.Text.ToString().Trim();
                $modiDocument.Close();
                clear-variable modiDocument

                if (!($ocrText.Equals(""))) {
                        $fileAsImage = New-Object -TypeName system.drawing.bitmap -ArgumentList $fileName
                        if (!($fileName.EndsWith(".jpg") -or $fileName.EndsWith(".jpeg"))) {
                                if ($ShowProgress) { "Converting to JPEG..." }

                                $newFileName = ($filePathTemplate -f $time,$fileIdx,"jpg");
                                $fileAsImage.Save($newFileName, [System.Drawing.Imaging.ImageFormat]::Jpeg);
                                $fileAsImage.Dispose();
                                del $fileName;

                                $fileAsImage = New-Object -TypeName system.drawing.bitmap -ArgumentList $newFileName 
                                $fileName = $newFileName
                        }

                        if ($ShowProgress) { "Saving OCR Text..." }

                        $property = $fileAsImage.PropertyItems[0];
                        $property.Id = 40092;
                        $property.Type = 1;
                        $property.Value = [system.text.encoding]::Unicode.GetBytes($ocrText);
                        $property.Len = $property.Value.Count;
                        $fileAsImage.SetPropertyItem($property);
                        $fileAsImage.Save(($fileName + ".new"));
                        $fileAsImage.Dispose();
                        del $fileName;
                        ren ($fileName + ".new") $fileName
                }
        }
        else {
                $modiDocument.Close();
                clear-variable modiDocument
        }

        if ($ShowProgress) { "Done." }

        if ($OpenCompletedResult) {
                . $fileName;
        }
        else {
                $result = dir $fileName;
                $result | add-member -membertype noteproperty -name OCRText -value $ocrText
                $result
        }
}

I ran into a few issues:

PermalinkCommentstechnical scanner ocr .net modi powershell office wia

Star Trek Thoughts

2009 May 8, 8:23

I watched the new Star Trek movie Thursday morning, along with many others who work on Windows. Microsoft rented out a theater and played the movie on all screens. I greatly enjoyed the movie!

Spoilers follow... I'm obviously not the biggest Star Trek nerd (or at least TOS nerd) since I didn't even pick up on the fact that Kirk's dad being dead was a discrepancy from the TV series. I only figured out the alternate time-line stuff when they killed most of the Vulcans. I was just surprised they didn't set right what once went wrong by the end of the movie with some more time travel magic to bring back Vulcan. On that note, I'm pretty sure the Spock-Spock conversation at the end, is Nimoy Spock sending Sylar Spock off to school so that Nimoy Spock can get freaky repopulating the Vulcan race. Although at first after his 'two places at once' comment I thought he was saying... something else. Also, was the main evil guy a random miner turned psycho? And his crazy looking spaceship that destroys the Federation fleet was just a mining vessel from the future? Once they invent time travel anybody can get drunk, go back in time, and conquer Earth.

PermalinkCommentspersonal2 nerd movie star-trek spoliers time-travel

What is the best comment in source code you have ever encountered? - Stack Overflow

2009 Apr 21, 1:13List of humorous comments folks have found in source code.PermalinkCommentshumor code programming comment via:scott

"Your business card is CRAP!"

2009 Apr 20, 5:49Some awesome quotes from this video. Really need to watch the whole thing through though to fully experience the humor. "This is the most impressive business card I've ever seen. Its mine." On the topic of its non-standard size: "It doesn't fit in a rolodex because it doesn't belong in a rolodex." More from the comments:PermalinkCommentshumor video via:boingboing viral business-card

Gravatar - Globally Recognized Avatars

2009 Apr 20, 3:37Web service that hosts avatar images for things like blog comments. The image is ID'ed by a hash of the user's email address. Auto generated or if the user signs up, the image can be whatever they upload. Lots of plugins for different blogging platforms.PermalinkCommentsblog web photo avatar image authentication identity icon hash

WP_Identicon :: Dammit Jim!

2009 Apr 20, 3:35Generate an icon for anonymous blog commentors that's easier to remember than an IP address.PermalinkCommentsblog anonymous web internet hash comment icon image avatar

Amazon.com: The Complete April Fools' Day RFCs: Thomas, A. Limoncelli, Peter, H. Salus: Books

2009 Apr 8, 10:40A good gift for a particular subset of people I know. "Also has commentary from Limoncelli and some other internet gods. Worth many geek points - full of lulz!!"PermalinkCommentsgift wishlist book ietf reference rfc humor

Text ads in open source code will add millions in funding to OSS movement - jorgenmodin.net

2009 Apr 1, 9:26"Open source code will contain text ads in comments and variable names, and Google and other text ad companies will scan the open source code repositories and fund the projects based on what they find in the code"PermalinkCommentshumor opensource advertising code

Remixes of the paranoid London police "anti-terror"/suspect your neighbours posters - Boing Boing

2009 Mar 26, 2:24"Yesterday's remix challenge -- to mock the ridiculous new "anti-terrorism" posters the London police have put up that tell you to spy on your neighbors -- was a smashing success. I've collected the 25 or so that came in to date below". I enjoyed: "A bomb won't go off here because people tend to be quite nice really." "Terribly convenient, isn't it? Incriminating evidence left right out where you'll spot it and call it in..." "A bomb won't go off here because the true likelihood of you being the victim of a terror attack is really very low, especially when compared to other causes of death or injury."PermalinkCommentshumor politics poster paranoia security via:boingboing.comments photoshop privacy

meteotek08's photosets on Flickr

2009 Mar 18, 9:35Team of teenagers attach camera to weather balloon and send it to space!PermalinkCommentsphotography photos via:boingboing.comments science space flickr
Older EntriesNewer Entries Creative Commons License Some rights reserved.