Archive for February, 2008
Setting up the Silverlight DLRConsole on Apache
Posted by Ian in Uncategorized on February 29th, 2008
If, like me, you fancied playing around with IronPython and Silverlight on Apache, here’s how I got mine set-up:
- Download and unpack DLRConsole.zip from http://silverlight.net/Samples/1.1/DLR-Console/DLRConsole.zip
- Added the following to my Apache httpd.conf file:
<VirtualHost 127.0.0.1> ServerName DLRConsole DocumentRoot "C:/dev/DLRConsole" AddType text/python .py AddType text/jscript .jsx DirectoryIndex index.htm index.html </VirtualHost> <Directory "C:/dev/DLRConsole"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all DirectoryIndex index.htm index.html </Directory> - I also set up the following in my hosts file (typically located on Windows at C:WINDOWSSYSTEM32DRIVERSETCHOSTS):
127.0.0.1 dlrconsole - Re-start Apache and point your browser to http://dlrconsole
You may need to comment out any other Python handlers in you httpd.conf file and add them on a per <Directory> basis, but obviously if you’ve got loads of Python-based sites on your Apache installation then your mileage may vary. Fortunately this wasn’t an issue for me so the following was sufficient:
AddHandler cgi-script .pl
#AddHandler cgi-script .py
For more on the DLRConsole see this article from MSDN Magazine.
OpenSearch Added to Unobtrusive JavaScript Google Co-op Search
Posted by Ian in javascript on February 5th, 2008
I have added OpenSearch to my Google Co-op Search Engine Unobtrusive JavaScript. Now you use the search engine in OpenSearch aware browsers you can add it to the browser’s search box.