local page 3 - Dave's Blog

Search
My timeline on Mastodon

RFC 4790 Internet Application Protocol Collation Registry

2007 Jun 27, 11:27RFC defining a registry of string sorts that other future RFCs may reference.PermalinkCommentsrfc reference ietf internet protocol registry collation sort string locale

Resource Tools - IE7 XML Source View Upgrade Part 1

2007 May 9, 4:15I read about text/xml URI fragment resolution a few months ago. I was interested to find another kind of fragment reference other than the text/html URI fragment but of course I didn't find an implementation in IE, Firefox, or Opera. I decided to see how much work would be required to implement this in IE.

In IE and Firefox when you open an XML file that doesn't have an XML stylesheet the XML source is rendered with syntax highlighting. In IE I also noticed that the gold bar appears when you open an XML file off of your local machine. To me this suggested that the XML source was being rendered as HTML which I assumed was produced by running an XSLT on the source XML file. If so, I figured I could modify the XSLT to implement text/xml URI fragments. I ran FileMon to see if iexplore.exe loaded an XSLT file when opening an XML file. Only the XML file and MSXML3.DLL were opened and no XSLTs were loaded as files. My next hope for modifying the XSLT was if it existed as a resource in MSXML3.DLL. I did a findstr on the DLL for SCRIPT and found an XSLT so I decided to check for resources in MSXML3.DLL. Unfortunately my previous resource viewer didn't work correctly so I decided to write my own.

I created resource tools to view and modify resources in Windows modules. The viewer outputs HTML with links to the individual resources of a module using the res URI scheme that's built into IE. The modifier is a simple command line tool that replaces or adds one resource at a time to a module.

Using these tools I found that the XSLT was stored as a resource in MSXML3.DLL. I'll talk more about the existing XSLT and the one I replaced it with next time.PermalinkCommentsresource technical xml msxml res xslt xsl

Opera Speed Dial Code-less Hack for IE7

2007 Apr 17, 11:45Opera (the fifth most popular web browser) has a new feature named Speed Dial (video of it in action). Whenever you open a new tab you get your Speed Dial view which consists of nine thumbnails of user-settable pages. Its like a quick-favorites that appears every time you open a new tab. I think this is a neat idea and was considering how I might do that in IE7. The following is my hack-y and ugly but no coding required version of Speed Dial for IE7. I like my hack and I'm about to expound upon it in unnecessary detail so skip to the last paragraph if you're afraid of losing interest.

By default in IE7, whenever you open a new tab you navigate to 'about:Tabs'. As noted in wikipedia the result of navigation to 'about:Tabs' is determined by values in the registry. Specifically, values in the key in "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\AboutURLs". Usually this fact is exploited by malicious software to hijack "about:blank" and show you ads but we can hijack it too in order to display our Speed Dial-ish page.

Of course since this is a code-less hack we've got limited options on what to change 'about:Tabs' to display. It should have the following requirements.
  1. Something local so that our 'about:Tabs' doesn't disappear when we go offline and so that its relatively fast.
  2. The user should be able to modify its content.
  3. Show links that the user uses.
  4. Show thumbnails of those links
  5. Provide easy to use drag and drop interaction and generally look cool.
Now, I use del.icio.us which allows me to store all of my favorites online and which provides RSS feeds that list my saved links. New in IE7 is an RSS platform that will, among other things, cache RSS feeds locally. So, by pointing about:Tabs to my del.icio.us feed 'http://del.icio.us/rss/sequelguy/quickreference' I get (1) from IE7's RSS support, and (2) and (3) from del.icio.us. Of course requirements (4) and (5) are missing but hey, I said this was ugly.

In summary, if you change the registry value "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\AboutURLs!Tabs" to point to an RSS feed of your favorites you can get a hack-y version of Opera's Speed Dial. I should note that although its referenced on pages such as wikipedia changing your 'about:Tabs' URI in the manner I describe is not documented and not supported by Microsoft. There could be all kinds of horrible repercussions from this change of which I'm not aware. Yeah, actually you know what? Forget I said any of this. Pretend I never wrote it...PermalinkCommentsbrowser technical hack

TurnHere: Free video guides for travel, restaurants, hotels, local events & music

2007 Apr 11, 9:22Short tiny travel guide for Santa Cruz, CA. Found via Turn Here in Google Earth. All places mentioned in the video are great and I totally vouche for them.PermalinkCommentsgeo video santa-cruz coffee food saturn-cafe

Localisation Considerations in DTD Design

2007 Apr 5, 5:28A paper on localization of XML DTDs.PermalinkCommentsdesign documentation i18n xml dtd richard-ishida

Digit Shapes

2007 Mar 29, 5:51Windows will use the localized digit shapes instead of the European 0, 1, ... 9 if preceded by the Unicode codepoint U+206E.PermalinkCommentsmicrosoft msdn windows unicode digit U+206E U+206F

Windows Live Local / Virtual Earth: Spaceland is Live!

2006 Nov 6, 6:45Windows Live Local mapping service now has a 3D in browser view. I think I found an Ad floating in 3D: http://local.live.com/default.aspx?v=2&cp=47.661837~-122.318396&style=h&lvl=18&tilt=-45.0127372558486&dir=351.874729443864&alt=389.481441551819&scene=37PermalinkCommentsmicrosoft windows-live search virtual-earth spaceland map blog article

Upcoming.org: Home

2006 Aug 29, 4:06PermalinkCommentsajax blog cool internet tools social music news local

The Old New Thing : Why Daylight Savings Time is nonintuitive

2006 Apr 3, 7:04I dislike Daylight Savings Time. Also I'm not fond of timezones. Boo on timezones.PermalinkCommentsblog raymond-chen microsoft msdn timezone daylight-savings-time FileTimeToLocalFileTime LocalFileTimeToFileTime programming csharp c++ windows
Older EntriesNewer Entries Creative Commons License Some rights reserved.