CA page 54 - Dave's Blog

Search
My timeline on Mastodon

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

Understanding and Working in Protected Mode Internet Explorer

2010 Jan 12, 7:10Info on writing apps to work with low rights mode in IE7 and IE8. Includes info on elevation policy for applicationsPermalinkCommentstechnical programming ie ie7 ie8 security elevation msdn microsoft windows

Hulu - Labs: Captions Search

2010 Jan 11, 12:26Hulu lets you search through the textual captions of their showsPermalinkCommentsvideo tv hulu search caption accessibility

BustedTees - Helvetica

2010 Jan 11, 2:30A t-shirt that says 'Helvetica'. Set in Comic Sans.PermalinkCommentshumor tshirt font typography wishlist gift

Tor.com / Science fiction and fantasy / Stories / Overtime by Charles Stross and Carl Wiens

2010 Jan 11, 2:21PermalinkCommentscharles-stross laundry scifi fiction christmas holiday cthulhu

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

Signing Your Applications | Android Developers

2010 Jan 10, 2:46How to sign and release Android apps.PermalinkCommentsgoogle android java publishing technical signing

(Pic) Disloyalty Card - PSFK

2010 Jan 8, 2:55Get a free coffee after trying 8 of their competitors.
PermalinkCommentscoffee card disloyalty-card economics

Code: Flickr Developer Blog » A Chinese puzzle: Unicode and EXIF metadata parsing

2010 Jan 8, 2:08Flickr dev talks image metadata the various forms which to prefer and how to guess at their character encodings.PermalinkCommentsunicode charset flickr photo image exif programming reference xmp technical

Two Gentlemen of Lebowski

2010 Jan 8, 1:53Two Gentlemen of Lebowski, by Adam Bertocci: "Thou err’st; no man calls me Lebowski. Yet thou art man; neither spirit damned nor wandering shadow, thou art solid flesh, man of woman born. Hear rightly, man!—for thou hast got the wrong man. I am the Knave, man; Knave in nature as in name."PermalinkCommentshumor via:ethan_t_hein shakespeare the-big-lebowski play parody english

Amazon to customer: $3B charge may stand as record | NetworkWorld.com Community

2010 Jan 6, 9:20"Amazon called me today to discuss my $2.9billion purchase"PermalinkCommentshumor amazon web internet economics money

notakeout

2010 Jan 6, 9:16"NoTakeOut.com helps you plan, prep and cook an entire meal, not just one dish. We provide a complete menu, a shopping list and a game plan – basically, we help you organize to go from kitchen to table with ease."PermalinkCommentsfood blog recipe cooking

Ceiling Cat Debit Card on Flickr - Photo Sharing!

2010 Jan 6, 3:46
PermalinkCommentslolcat humor cute cat credit-card

[1001.0361] Self-Selected or Mandated, Open Access Increases Citation Impact for Higher Quality Research

2010 Jan 6, 2:17Not shocking that papers freely available on the Internet are cited more than those not freely available... "Articles whose authors make them Open Access (OA) by self-archiving them online are cited significantly more than articles accessible only to subscribers. ... not because of a quality bias from authors self-selecting what to make OA, but because of a quality advantage, from users self-selecting what to use and cite, freed by OA from the constraints of selective accessibility to subscribers only."PermalinkCommentsvia:bengoldacre science paper citation internet

If It's Hip, It's Here: The LOST Supper & Other TV Casts As The Famous Painting

2010 Jan 6, 2:11PermalinkCommentstv lost last-supper art

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

Victorian Infographics - a set on Flickr

2010 Jan 5, 6:38Lovely historical infographics. For instance, check out the topographical map of NY city from 1874.
PermalinkCommentsinformation infographics graph design history via:kottke

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

The Card Game - How Visa, Using Fees Behind Its Debit Card, Dominates a Market - Series - NYTimes.com

2010 Jan 5, 5:51"When you sign for a debit card at a retailer, the store pays your bank more than twice as much as when you enter a PIN -- a strategy Visa hatched decades ago."PermalinkCommentsmoney visa credit economics competition card

Don't Be Afraid: Passengers Break into "Hey Jude" During Newark Scare | NBC New York

2010 Jan 5, 5:47Oppresive airport security brings people together! 'A traveling guitarist is becoming viral sensation after leading a group of passengers in a rousing round of the Beatles' classic "Hey Jude" while stuck at Newark airport over the weekend.' Includes videoPermalinkCommentsvideo humor airport security music beatles
Older EntriesNewer Entries Creative Commons License Some rights reserved.