ws page 41 - Dave's Blog

Search
My timeline on Mastodon

In The Know: Is The Government Spying On Paranoid Schizophrenics Enough? | The Onion - America's Finest News Source

2007 Oct 31, 4:41ONN has a piece on how the government can help paranoid schizophrenics.PermalinkCommentsonion privacy humor video satire government

Google's timeline view

2007 Oct 30, 2:44Google has new views of search data: graphed over time and over a map.PermalinkCommentsgoogle ui view time timeline

Small World ride revamped for bigger passengers (CalorieLab Calorie Counter News)

2007 Oct 30, 12:29DisneyLand is updating the Small World ride to support fatter passengers. That is so sad.PermalinkCommentshumor health article disney obesity

Bad Science

2007 Oct 29, 1:48FTA: "Ben Goldacre is a medical doctor who writes the Bad Science column in the Guardian, examining the claims of scaremongering journalists, quack remedy peddlers, pseudoscientific cosmetics adverts, and evil multinational pharmaceutical corporations. ThPermalinkCommentsmonthly blog science politics religion media news healthy research humor

IEBlog : URI Comparison Functions

2007 Oct 24, 1:19My blog post on unmanaged Win32 URI comparison functions.PermalinkCommentsie blog me uri microsoft win32 windows

IEBlog: URI Comparison Functions

2007 Oct 24, 6:20I have a new post on the IE Blog on the topic of Win32 URI Comparison Functions.
I've blogged there previously on the topics of IPv6 URIs in IE7, International Mailto URIs in IE7, File URIs in Windows, and CreateURLMoniker Considered Harmful. Hooray for URIs!PermalinkCommentsmicrosoft technical blog url win32 ie windows uri

Sarah M.'s restaurants | Restaurant menus, reviews and maps on urbanspoon.com

2007 Oct 21, 10:28Sarah's restaurant reviews on urbanspon. The site provides feeds of user's reviews too.PermalinkCommentsreview people sarah-moffatt restaurant

WSDOT - Small Screen Info

2007 Oct 18, 4:54Traffic info for portable devices with small screens.PermalinkCommentstraffic washington seattle travel

chumby

2007 Oct 17, 10:49Chumby is a hackable little wifi computer. Its like an expensive alarm clock that also shows you stuff off the Internet. I kind of want one.PermalinkCommentspurchase shopping wifi wireless opensource flash design hardware chumby

Gmail S/MIME for Firefox

2007 Oct 15, 1:33Info on a plugin for FireFox that gives GMail S/MIME support. This is a similar idea to the last but these folks have executed the idea in a different fashion.PermalinkCommentsarticle browser blog cryptography crypto mail mime mozilla pgp privacy security extension firefox gmail google

Boing Boing

2007 Oct 12, 11:50Daily news to replace DiggPermalinkCommentsdaily blog boingboing news

XSL Identity Transfom

2007 Oct 12, 4:08As noted in the XSL Transformations spec you can create the identity transform using the xsl:copy element. With the MSXML implementation of xsl:copy the example the spec gives produces slightly ugly elements. For instance given it produces . In order to ensure empty elements turn out pretty I've modified the example as follows:
    
        
            
                
                    
                
            
            
                
                    
                
            
        
    

This got me thinking about inverting XSLTs. Clearly in general an XSLT isn't invertible since an XSLT can completely ignore the input XML and produce something else entirely but then the above is an example of an XSLT that is invertible. So there is a subset of XSLTs that are invertible, how might you produce the inverse of an XSLT, and would this ever be useful?PermalinkCommentsxml msxml inverse xlst xsl

The Microsoft Security Response Center (MSRC) : MSRC Blog: Additional Details and Background on Security Advisory 943521

2007 Oct 11, 5:57Notes on two URI & ShellExecute related Microsoft security issues.PermalinkCommentsmsrc shellexecute windows security microsoft ie ie7

URL Schemes Supported in Lynx

2007 Oct 11, 12:55The list of URI schemes supported by the command line based web browser Lynx.PermalinkCommentslynx uri scheme internet web browser reference

ICANN | On Its Way: One of the Biggest Changes to the Internet

2007 Oct 11, 12:11ICANN plans to support non-US-ASCII top level domain names. I wonder how broken web browser's security measures are about to become.PermalinkCommentsidn dns domain internet uri icann news tld

311 customer service rep has a window onto San Francisco's secret heart.

2007 Oct 9, 5:12San Francisco has a free 311 number similar to 911 except not for emergencies. You describe a problem or question and they find the correct city agencies to help you. Sounds like a great interface to public political agencies.PermalinkCommentsvia:thedpshow blog article humor phone advice sanfrancisco 311 news

FoaF Explorer

2007 Oct 9, 4:43A FOAF browser. It turns FOAF descriptions into HTML with links to those things described in the FOAF including links to other FOAF descriptions transformed in the same fashion.PermalinkCommentsbrowser community social foaf rdf semanticweb

Microsoft Research Singularity Project

2007 Oct 8, 3:55FTA: "Singularity is a research project focused on the construction of dependable systems through innovation in the areas of systems, languages, and tools. We are building a research operating system prototype (called Singularity)PermalinkCommentsmicrosoft os singularity windows research microkernel

XSL Transforms in JavaScript

2007 Oct 7, 4:12In a previous post I mentioned an xsltproc like js file I made. As noted in that post, on Windows you can write console script files in JavaScript, name them foo.js, and execute them from the command prompt. I later found that MSDN has an XSLT javascript sample which looks similar to mine, but I like mine better for the XSLT parameter support and having a non-ridiculous way of interpreting filenames. The code for my xsltproc.js follows. The script is very simple and demonstrates the ease with which you can manipulate these system objects and all it takes is opening up notepad.
var createNewXMLObj = function() {
   var result = new ActiveXObject("MSXML2.FreeThreadedDOMDocument");
   result.validateOnParse = false;
   result.async = false;
   return result;
}

var args = WScript.arguments;
var ofs = WScript.CreateObject("Scripting.FileSystemObject");

var xslParams = [];
var xmlStyle = null;
var xmlInput = null;
var inputFile = null;
var outputFile = null;
var error = false;

for (var idx = 0; idx < args.length && !error; ++idx)
   if (args.item(idx) == "-o") {
      if (idx + 1 < args.length) {
         outputFile = ofs.GetAbsolutePathName(args.item(idx + 1));
         ++idx;
      }
      else
         error = true;
   }
   else if (args.item(idx) == "--param" || args.item(idx) == "-param") {
      if (idx + 2 < args.length) {
         xslParams[args.item(idx + 1)] = args.item(idx + 2);
         idx += 2;
      }
      else
         error = true;
   }
   else if (xmlStyle == null) {
      xmlStyle = createNewXMLObj();
      xmlStyle.load(ofs.GetAbsolutePathName(args.item(idx)));
   }
   else if (xmlInput == null) {
      inputFile = ofs.GetAbsolutePathName(args.item(idx));
      xmlInput = createNewXMLObj();
      xmlInput.load(inputFile);
   }

if (xmlStyle == null || xmlInput == null || error) {
   WScript.Echo('Usage:\n\t"xsltproc" xsl-stylesheet input-file\n\t\t["-o" output-file] *["--param" name value]');
}
else {
   var xslt = new ActiveXObject("MSXML2.XSLTemplate.3.0");
   xslt.stylesheet = xmlStyle;
   var xslProc = xslt.createProcessor();
   xslProc.input = xmlInput;

   for (var keyVar in xslParams)
      xslProc.addParameter(keyVar, xslParams[keyVar]);

   xslProc.transform();

   if (outputFile == null)
      WScript.Echo(xslProc.output);
   else {
      var xmlOutput = createNewXMLObj();
      xmlOutput.loadXML(xslProc.output);
      xmlOutput.save(outputFile);
   }
}
PermalinkCommentsjs xml jscript windows xslt technical xsltproc wscript xsl javascript

WebBrowser Customization

2007 Oct 5, 1:50How to host a WebBrowser control and customize it to your hearts content.PermalinkCommentsie internet microsoft web browser msdn reference howto webbrowser
Older EntriesNewer Entries Creative Commons License Some rights reserved.