ink page 13 - Dave's Blog

Search
My timeline on Mastodon

shatterstripes: What is LJ doing to my links?

2010 Mar 5, 2:54LiveJournal replaces affiliate links with their own... Between this and not being able to stick in videos, script, etc maybe its time to switch blogging sites...PermalinkCommentsblog livejournal technical

Ribbon Hero is the future [dive into mark]

2010 Mar 4, 1:00Its a game-ification link roundup on Dive Into Mark.PermalinkCommentsgame achievement office unit-test foursquare humor

Brawl in the Family » Archive » 221 – Dr. Wily’s Blueprints

2010 Mar 3, 2:55Dr. Wily's thinking behind one of his Mega Man levels documented here...PermalinkCommentshumor comic game videogame mega-man dr-wily

GIFT BOX GEEK IE EXPLORER MENS SUIT EXECUTIVE CUFFLINKS - eBay (item 390155859600 end time Mar-13-10 08:40:03 PST)

2010 Feb 26, 2:41Knock off Internet Explorer cufflinks available on eBay. I know, you totally thought these were legit, right?
PermalinkCommentshumor ie web browser gift wishlist purchase cufflink

Think you've mastered Linux? Prove it, with Suicide Linux

2010 Feb 23, 9:38Think you're a bad ass having installed some obscure and difficult to use Linux distro, then prove how hardcore of a Linux nerd you are with '...Suicide Linux, where any unrecognized command is parsed as "rm -rf /"...'PermalinkCommentshumor geek linux bash technical

Steven Pinker on the myth of violence | Video on TED.com

2010 Feb 1, 8:39"Steven Pinker charts the decline of violence from Biblical times to the present, and argues that, though it may seem illogical and even obscene, given Iraq and Darfur, we are living in the most peaceful time in our species' existence." Working up towards Forever Peace?PermalinkCommentsvideo history violence culture ted steven-pinker game-theory

The sequel stinks: critics trash new Google Books settlement

2010 Jan 29, 11:06PermalinkCommentsgoogle copyright book books law ip article

The iPad is a Comedy Gold Mine - CollegeHumor video

2010 Jan 29, 9:42"These jokes come so naturally you don't even have to think about it. You just mock."PermalinkCommentshumor video apple ipad ipod

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

Google and China: the attacks and their aftermath

2010 Jan 13, 6:35Ars Technica rounds up links on the recent Google threatening to stop censoring itself in China including quotes from Secretary of State Clinton, and the EFF and info on the hacks.PermalinkCommentsgoogle china arstechnica news politics security censorship

View PDFs on Android

2010 Jan 10, 4:07

Irritatingly, my G1 won't show me PDFs so I've made the Google Docs PDF viewer which will load PDFs on the web up in Google Docs. Google Docs has the useful ability to display PDFs in web browsers without any Adobe software and works (mostly) on Android.

This was very easy to put together as an Android activity. First its necessary to register the application as handling PDFs from the web. This is done via the intent-filter declaration in the manifest:

   intent-filter
      action android:name="android.intent.action.VIEW"/
      data android:scheme="http" android:mimeType="application/pdf"/
      category android:name="android.intent.category.DEFAULT"/
      category android:name="android.intent.category.BROWSABLE"/
   /intent-filter
The action part says my activity will view PDFs, the data part says it accepts data with the PDF mime-type and with a URL that has an HTTP scheme. The browsable category is necessary to allow links from a browser to open this activity.

Second, the activity opens up the browser to Google Docs pointing to the PDF.

   Intent intent = new Intent();
   intent.setAction(getIntent().getAction());
   intent.setData(Uri.parse(
    "http://docs.google.com/gview?embedded=true&url=" + 
    percentEncodeForQuery(getIntent().getData().toString())));

   startActivity(intent);
This is very simple code to invoke a new intent browsing to a newly constructed URL for the PDF in Google Docs. That was easy.PermalinkCommentsgoogle docs technical g1 code activity programming android google pdf

WPAD Server Fiddler Extension

2010 Jan 5, 7:42

I've made a WPAD server Fiddler extension and in a fit of creativity I've named it: WPAD Server Fiddler Extension.

Of course you know about Fiddler, Eric's awesome HTTP debugger tool, the HTTP proxy that lets you inspect, visualize and modify the HTTP traffic that flows through it. And on the subject you've probably definitely heard of WPAD, the Web Proxy Auto Discovery protocol that allows web browsers like IE to use DHCP or DNS to automatically discover HTTP proxies on their network. While working on a particularly nasty WPAD bug towards the end of IE8 I really wished I had a way to see the WPAD requests and responses and modify PAC responses in Fiddler. Well the wishes of me of the past are now fulfilled by present day me as this Fiddler extension will respond to WPAD DHCP requests telling those clients (by default) that Fiddler is their proxy.

When I started working on this project I didn't really understand how DHCP worked especially with respect to WPAD. I won't bore you with my misconceptions: it works by having your one DHCP server on your network respond to regular DHCP requests as well as WPAD DHCP requests. And Windows I've found runs a DHCP client service (you can start/stop it via Start|Run|'services.msc', scroll to DHCP Client or via the command line with "net start/stop 'DHCP Client'") that caches DHCP server responses making it just slightly more difficult to test and debug my extension. If a Windows app uses the DHCP client APIs to ask for the WPAD option, this service will send out a DHCP request and take the first DHCP server response it gets. That means that if you're on a network with a DHCP server, my extension will be racing to respond to the client. If the DHCP server wins then the client ignores the WPAD response from my extension.

Various documents and tools I found useful while working on this:

PermalinkCommentsproxy fiddler http technical debug wpad pac tool dhcp

The Metalink Download Description Format

2009 Dec 28, 2:19"This document specifies Metalink, an XML-based download description format. Metalink describes download locations (mirrors), checksums, and other information. Clients can transparently use this information to reliably transfer files."PermalinkCommentsxml download browser web url todo

Official Google Blog: Go thataway: Google Maps India learns to navigate like a local

2009 Dec 18, 2:27"...this week we launched an improvement to Google Maps India that describes routes in terms of easy-to-follow landmarks and businesses that are visible along the way. We gathered feedback from users around the world to spark this improvement to our technology, and we thought we'd give you a glimpse at our thinking behind this launch."PermalinkCommentsgoogle map geography geo india

Link Baby Costume, This Time with Baby - Dawwwww - Kotaku

2009 Dec 16, 9:36PermalinkCommentshumor cute baby video-game costume link zelda nintendo cosplay

Get cached images from your visitors | Diovo

2009 Dec 15, 2:01"Jeff Atwood (Coding Horror fame) was in for a horror when he realized that his server crashed and his data was gone and due to some reason, the backup mechanism was not working. ... So what should Jeff do now? Since Coding horror is a high traffic blog, I think there is a way to get back at least some of the images." Reconstruct the HTML from Google's cache, change the HTTP server to tell the client it has the correct cached image for all the images, add script to the HTML to grab the images and send them back. Awesome idea. Of course now I want to setup Fiddler to swap in random images...PermalinkCommentsvia:ericlaw jeff-atwood backup web http cache image javascript technical

ThinkGeek :: Static Electricity Eliminator

2009 Dec 14, 2:12I've been very statically charged recently. May be the new couch?PermalinkCommentsgeek wishlist gift static electricity tool purchase

NYT's 9th Annual Year in Ideas

2009 Dec 10, 3:44Some great stuff in here but it kills me how traditional media generally doesn't do hyperlinks in their articles.PermalinkCommentsnytimes ideas article

Chromium Blog: Links That Open in New Processes

2009 Dec 4, 10:29The Chrome blog documents what you do to your anchor tag to get it to open in a new process.PermalinkCommentshtml google chrome web browser technical

Metalink/HTTP: Mirrors and Checksums in HTTP Headers

2009 Nov 24, 5:51"Metalink/HTTP describes multiple download locations (mirrors), Peer-to-Peer, checksums, digital signatures, and other information using existing standards for HTTP headers. Clients can transparently use this information to make file transfers more robust and reliable."PermalinkCommentshttp metalink url p2p http-header cache redirect reference technical
Older EntriesNewer Entries Creative Commons License Some rights reserved.