Permanent solution to the Vista + CHM + UNC annoyance

Posted: February 5th, 2010 | Author: sbrenton | Filed under: Uncategorized | No Comments »

Overview

Here is the issue:  When I attempt to view a CHM file that is located on a network share via a UNC path (or mapped drive) from a Vista machine, first it bugs me then it completely fails.  I asked Google and there are a few other fixes out there, none of which were both simple and global.  For more background on the actual issue as well as some other solutions see this post.

This solution uses the mklink command that is included with windows vista to create a directory symbolic link (which can traverse a UNC) from a local path to the network share where the CHM files are located.  If the new symlink path is used to open the CHM, it bypasses the check that disallows a file from another zone from accessing the local computer zone.

Walkthrough

Attempt to open the UNC pathed CHM and we see this:

chm_network_confirm

Click Open and the CHM looks like this:

fubar_chm

Open a command prompt and use the mklink command to create a symbolic directory link from a local path to the UNC where your CHM files are:

mklink_to_the_rescue

When you open a CHM file using the symlink path there will be no prompt and the pages will be intact.


linq to rdf

Posted: January 9th, 2010 | Author: sbrenton | Filed under: codebase snooping | Tags: , , , | No Comments »

LinqToRdf is a semantic web library built on top of the SemWeb C# library. The SemWeb library provides a triple store implementation and an asp.net SPARQL endpoint. The project attempts to extend language integrated query to rdf triples. I spent some time the other night messing around with the codebase and after a lot of debugging and just plain butchering the rdfmetal code, was able to get it to limp along. I see potential, it allowed me to generate a FOAF domain model in C# by aiming at the dbpedia linked dataset uri and specifying FOAF via xmlns. Once the domain model was in place , I was able to query dbpedia using SPARQL and have the generated FOAF objects populated as query results. Sadly, I wasn’t able to get the linq piece working which is the main attraction.