Author Archive
ASCII me!
by Mike on Jan.13, 2011, under News
...................................................................................................................................................... ...................................................................................................................................................... ...................................................................................................................................................... ............................................................................................................................,,........................ ...................................................................................................................................................... ...................................................................................................................................................... ...................................................................................................................................................... ...................................................................................................................................................... ...................................................................................................................................................... ...................................................................................................................................................... ...................................................................................................................................................... ...................................................................................................................................................... .......................................................................................................................................,.............. ...................................................................................................................................................... ...................................................................................................................................................... ................................................~==:.................................................................................................. .............................................,~++??+:.....................................................................,,............,............. ..........................................,::=+?????=:....................................................................,,............,............. ..........................................~=+???????+=~~:.................................................................,:,...........,............. ..........................................:=?+???????+==~,................................................................,~:,,,........,............. ...........................................=+?????????+===~,..............................................................,~:.,..........,............ ...........................................~+++????????+++=:,.............................................................,~:.,....................... ............................................:+++????????++++=~,............................................................~~,........................ .............................................=++??????????++?+~::,,........................................................:~,.,...................... ..............................................=++?????????+~~~=++====~:,...................................................:~,........................ ...............................................~++=+=~:,..,,:=?+???=~==~,..................................................~=~,,,..................... .................................................~~........:+?????+=~~~:,..................................................:==::,..................... ...................................................???I??+==??????++++=::,..................................................==,,,..................... ...................................................+?I?I???+?????+++=++~:,..................................................~=:,,..................... ....................................................???I??+????+?++??++=~:..................................................~=~,,..................... ....................................................?II?????+????????++==~,.................................................=+=:,..................... ....................................................+IIII??=???????????+=~:,................................................~+=,...................... ....................................................~II?+.=++?+??????+++==~:................................................:++,,..................... ............................................................,:::::~=++====~~,................................................+?:,,.................... .............................................................:=+?+==,.,::,,.......,..:,,,....................................++~...................... .............................................................=?++~==:.............,,,::,,..........................=:,.......+?=...................... ...............,::~~~:,..........................................,=+~.............=+~~~~~........................,=+~,.......=?+...................... .............,~=+++++++=~:,.......................................,,,.............~++=~:.........................~=+:........~+=...................... ..........,:=?????????????+~,....................................................~?+,..........................~.~++,........:++,...........,......... .........,~+???????????????~,...................................................,=............................~?,,++=:........++:...........~,........ ......,~+????????????????=~,.................................................................................,,I:.+??=,.......=+~,,,,.......::........ ....,~+????????????????+=:..................................................................................:,,+=.+??=,.......~=~,,,,,.....,:~........ .,:=???????????????+=~,....................................................................................,,.,,?.,,..........:==:::,,..,:,..~........ =+??????????+++=~:,......................................................................................,.,..................:~=::~~~:,,::..,........ +????????++==:,,..........................................................................................,,...................~=~:~~~:,.,,..,........ ??II?+~:...............................................................................................,.,.....................~+=:::,,............... ???+~,.....................................................................................,..........,.,......................=+=:::,,............... ??~.........................................................................................:+,......:.:.......................:==,,..........,....... ?+:...,...............................................................................+?+..,+?+.....,.,.,......................,~~,,,,........,....... ??+,..................................................................................?I?+.,???,...:.,.,........................~~,.,,........:,...... ??I+,.................................................................................+?I?,.???~..,.,,..........................~=:,,,........:,...... ?????=.................................................................................?II?,?II?~++=.,.,........................~+=:::....,..,::...... ???+:...............................................................................:?+,?II???I?+??+=...........................:=~,,,........:~...... +=:,................................................................................=I?.III???I?????+,..........................,~~,,,,.,...,,:=,..... ....................................................................................~I??:IIII??I???I?=:.....~~,..................:=:,,,,....,.,=:..... ....................................................................................~?I?.??I??II????++=:...=++=..................~=:,,,....,,,,=:..... .....................................................................................III+.??II?I???++++=~=:,.=~..................:=~,,,,...,,,:=~,,... .....................................................................................+II?.:?II?I?II?++++==~:..,..................:==:::,,..,,,:=~,.... ......................................................................................?I?I:=??I?IIIII???+++~.....................,~=~::,.,,,,:~==:,,.. ......................................................................................:?II?.?IIIIIIII?????~~.....................,:=:,:,,,,..:~==:,... ................................................................................:......,?IIIIIIIIIII??+++=,,......................:~:,,,,,,,.,::+=:,.. ...............................................................................,~.....~.~??IIIIIII?++=~~~~:,,.....................,~:,::,,,,,,::=~::,. ...............................................................................::......,,+I?II?????+===~~~:,,.....................,::,:::,,,,,:~==:,.. ..............................................................................,,....~.~.:.,???+====~~~~~~:::,......................:~:::,,,,,,,,~+=:,. ..............................................................................,....,.:,,..,.~++===~~~~~==:::,.,....................:~,::::,,,,::~+~:,. ...........................................::,.............................,.,....~.:,,......,:====~~~=~~:~~:,,,...................,:::::,,,,,,,~++~,. ..................................,,,,::~~~~=,...................................:.::.,.......,~~==~~~~~~:~~::,....................,~~:::::,:,:::=+:,. ......................,,,:~==++++==========~,.........................???..,I+..+.~,:.,...........,~~~~==~~~~:,:,...................:~,:,,,,.,,,:~=:.. .................,,,:~~==++++???+++==++==+=:........................,?III,,+,..~.:,,..,............:~========~:,....................::,,,,::,,::,:~,.. ...........,:~=+++++++??????????++++++====~........................?I?III?+:..+.~.,.,................:==+==~:.......................,:,,,,,,,,,,,,,,.. .,:::~~~~~==++++++++++??????????+++=+===~.........................+??I????+?+:.~...,,..................:::==:,......................,:,,,,,.......,,.. :~~=========+++++???????????????+++++++=.........................+I??II?+?+++.=.,......................,::,,,........................,,........,...,.. ~==========++????????????????????+++++=,.,......................+I??II?++++:.:,:.,......................,:::,.,,.....................,,............... ,~========+++????????????????????++?+=~:~==+~..................,???III++++?.+.:..,.......................:~:::,,......................,............... ...,:~====++++????????????????????+=:~=~=+++?++?,..............I??III?+++:,:.~.,..........................::,,..,,....................,,.............. .....,:~==+++???????????????+?????~,::~~==+++?++?~............~???III??++,=.~..,..........................,::,,,.,.................................... ,,....,..:=++??????????????????+,,,,,,,::~~=+++++++=,........,?I?I77???:,~.~,,.............................:::,.,,,,,................................. ::,,..,...,~=+++?+???????+???+~:~~~:..,.,:::=+????++=:.......~II?III??+,=.~,,,.............................,,,:,...................................... :,:,,.........:~++????????+=~?IIIIII~......,:=+????+==~+?..:...~7II??:,~.~,,,..............................,::,.,......................,:::,,,........ :,::,,,...,,.....,:~::,,,.:?II7777II+,.......~++??++==~=+..~...?77II.=:.~.:.................................,:,,........................,,,,,......... :,,:,,,,..................=I77777777I~.......~+++++=~~~=:..:...I7I?~.~,+,,,.,................................,,,........................,,,........... ..~......................?II777777777I+.......:~=~~,.:~:......~I7I,=:.~.:,.,...................................,...................................... ........................,?I777777777I7I:.......,:,,..,,...I...I7I=~~,=,,,............................................................................. .........................?I777777777777I:................IIIII7?,+~:~.:............................................................................... .........................?7777777777777I?...............=IIIII?=:~:+,:,,.............................................................................. ........:...........,,::,+7777777777777II?.............IIIIIII:+~:~,:,.,.............................................................................. .......,I.....,,::~====~:+7777777777777II?:...........?IIIIII=:=:+,::,,:.............................................................................. ++??++=:+::==~=========~~~I77777777777IIIII,......:?IIII7III~+~:=:~:,==............................................................................... ~??????+=77,~~~~~~~~~::::,I7777777 777I??77I....?IIII7III??~+:=::~,.??+............................................................................... .~?I????~==..,:::::::::::,I77777 7 77I?I77I....II?77I7II?~?~:?,~,:=???.,?~........................................................................... ...,=??=........::::,::::~~I777 7777 7I?+I7I,,..IIIIIIII?~?~~~:~,,?????I?I=........................................................................... ....,~++,,~++...,,:,,::::::777 7 777I?~I77+...IIII777I:?~~==::.~???????+............................................................................ .......,..,.,....,,,,,,,::~77777777 7I+.+777,..IIIII7I++~=~:~,.?????+++=............................................................................. .........:,:7=.......,,,:,~77777777 777?.= 7 I..III77II?==+:~~,~I?I??+++,............................................................................. ..........,~?I...........,,.,+??7777 77?,,I 777I:II7I?II+::+:,?II??I+?+......,........................................................................ ...........,,~................,?II77777I::+I 77777?III7I=::~,=IIII???+:............................................................................... ..............::.................,=77 77?=::=??7++,~IIII,=:,?77III???,................................................................................ ...................................~77777II7I7I=7.~?7?II+~,II777IIII=.................::,............................................................. ....................................777III7II=,?..?=+7?II,?77777IIII:,................::~:~~.....~=,.................................................. .......................................+??,:~+I.==,+?IIIIII77777II??..............,,...::~~==+=....................................................... ....................,~=,...............??II?I7I,I,:=IIIIIII77777III?....+.........,,...,::::.......................................................... ......................:+=:............?II~I=I77=I?.:?IIIIII777777??+...:=..,.......,,................................................................. .......................~+=~...........?II.:?.:I:?,.~:IIIIII7777II??I++~:~,,........................................................................... .........................~++=........+II..I.~??II~+..IIIIIIIIIIIIII7I????~............................................................................ ..........................:?=~.......?II,?..?:+II+.,:II?IIIIIIIIII77I????~............................................................................ ....................................=III?.~:,?IIII..,IIIIIIIIIIIIIIII????............................................................................. ...............................,,...??:+.?..?:+II?...IIIII??I??III??+++=.............................................................................. ..............................~~77~:II?=~..+,,?III?=?IIIIIIII?????+~~=~,.............................................................................. ................................,,.+II.I:.?..+:?IIIIIIIIII???++~,..................................................................................... ................................,=,.?+~:,=..=.,II7IIIIIII???+~:....................................................................................... .................................:=.:~+:+..=.:~IIIIIII?III?+=~=:...................................................................................... .................................:.~.::+,.:..,,IIIIIIIIIII?++++,...................................................................................... ...............................,.,.+~~+.,+.....?IIIII?I77????+~....................................................................................... ...............................,...?:~?.=,.,..=IIIIIIII7I?????........................................................................................ .....................................,I+=:...IIIIIII?I77II???:........................................................................................ .................................,,...,~~....I?III??II77????+......................................................................................... ................................,.....,:,~.=,?II??I??77I??I?~......................................................................................... ...........................,........,,,~:..?I~..,=??7III???+.......................................................................................... ..............................,..?.,...,.=???,..,+?I7II????~.......................................................................................... ..............................,,=?......?I?II+=~=:?III????+........................................................................................... ...............................,+I:....~IIIII?I==??I7I????~........................................................................................... ................................I7=::..IIIIII??I??I7I????+............................................................................................ ................................7I:,..:+I+==+?I??I77I????~............................................................................................ ................................+......,I.=,,~?I?III????=............................................................................................. ...............................~:.....,,,=,,+:?IIII?+++=.............................................................................................. ...............................,........~??~.???III?+++~.............................................................................................. ...............................,.....,.,:????IIII??+++:............................................................................................... ...............................+.......::?I????II++=+~................................................................................................ ...............................,.......=???I?I??++==~................................................................................................. ...................,....................+????I?+=~~:,................................................................................................. ..................:::,...........:,.......,~:~...,.................................................................................................... .................,:,,,.......................?........................................................................................................
Setting up a web project environment in Visual Studio 2010 to allow debugging using both IIS7 and the development Web server
by Mike on Jan.13, 2011, under Knowledge Base, Technology, Tutorials
We have run into an issue recently when importing a number of our legacy web projects into Visual Studio 2010. It seems that some projects don’t provide the options to allow us to run and debug them on the local version of IIS. For some reason, when a project is initially configured in VS2010 it sets a flag that determines whether the project properties page is shown inside the project window (where it will contain the necessary configuration options) or the project properties page is shown as a pop-up dialog window (where it doesn’t contain the options to allow debugging on a local IIS).
Here are the notes you will need when setting up a new project to guarantee that you have access to the required configuration page.
IIS 7 Configuration
The first step is entirely optional, as it is perfectly reasonable to run multiple Web Applications within a singe Web Site, however I prefer having separate Web Sites for different projects (or clients) as this allows me to control individual settings for each of them (for example host and port bindings) without me worrying about breaking a different project.
If you will use “localhost” to access the server, then you will only be able to have one Web Site instance running at a time, but this is rarely an issue, and you can easily run more than one site at a time by using a unique hostname or port for each.
Create the site in IIS Manager:

Where you create the Web Site mostly doesn’t matter, Visual Studio will add your project to the site as a virtual directory and the physical files can exist anywhere on your filesystem.


Once the site has been created, stop any other site that is using port 80, and start the Web site from the actions panel at the right of the window.
Because you want Visual Studio to modify the IIS configuration, you will need to run Visual Studio as Administrator.
Create an empty Web Application
Create a new project in Visual Studio (File > New > Project…).

Select: Visual C# > Web > ASP.NET Empty Web Application.
If you leave the “Create directory for solution” checkbox selected, then all your project files will end up one directory below the solution file. Personally I don’t mind having the .sln file in the same folder as my project files so I uncheck it.

If you click OK to create the various project files, then immediately compile and run the application you will see that by default Visual Studio has configured the development web server.

Reconfigure the project to use IIS

Now whilst this is useful for small standalone projects, we would ideally like to be able to switch development to the full version of IIS7, and to do this, we need to perform another couple of steps.
Back in Visual Studio, stop the project and in the Solution Explorer, right-click on the project and select “Properties”.
In the window that appears, select the Web option and scroll down until you can see the Servers section. Change the selection from “Use Visual Studio Development Server” to “Use Local IIS Web server”.

Click the “Create Virtual Directory” button to complete the IIS configuration. If you see the dialog below then everything has gone as expected and you can now run (and debug) your web application in IIS. You can switch between IIS and Cassini (the development web server) simply by changing the radio button back.

Using the same web.config for both IIS and Cassini
Because IIS7 uses a new integrated pipeline, and Cassini uses the classic pipeline, some of the settings in the web.config are not compatible. Whilst it is possible to use two web.config files (and move them in and out of the application directory when you switch webservers), it is much more convenient to use a single web.config with both webservers.
.NET will complain about the legacy settings if you are using the integrated pipeline (which we normally will want to do) unless you have the following included in the system.webServer section in the web.config:
<validation validateIntegratedModeConfiguration="false" />
This line instructs the .NET not to validate any settings it finds in the web.config for the integrated pipeline – this allows you to have settings that only work in classic mode (such as httpHandlers and httpModules co-existing with the handlers and modules sections that are required by IIS7.
Climate Control – giveaway
by Mike on Jan.01, 2011, under Free downloads, Music, Studio
Not so many tracks today – in fact I can only find two from this era!
This particular phase coincided with me getting a regular DJ set doing chillout. I had the slightly naive opinion that I could mix live performance with DJ’ing (armed with a couple of synths and samplers as well as a laptop full of MP3s) mixing with an early version of Tracktor DJ.
In practice, the gigs were a complete nightmare – manually tempo syncing hundreds of tracks (this was before Ableton Live made it a non-issue) and matching keys to be able to swap pieces in and out of the flow meant I spend all week preparing for the set.
The fact is, the average punter couldn’t tell the difference between something played live and some crap played straight off a “Best of Chill Out” CD. The last gig I just put Wish You Were Here on and sat drinking at the bar, still got paid though because the barman was a huge Pink Floyd fan.
Embrionic music – giveaway
by Mike on Dec.31, 2010, under Free downloads, Music, Studio
When I finally moved out of bedsitter-land and stopped sleeping on other peoples couches, I got a small flat in Poole where I began to rebuild my life after so nearly destroying myself.
Following the example of a number of people I had met in my wilderness years, my flat became a kind of open-house and a great community of friends used to call by at all hours of the day and night. We would smoke, drink, make tea and jam for hours with whatever instruments were at hand.
It was about this time that I started building my own recording set-up and just experimenting. Dave, Vlad and Jez were regular visitors – these tracks are about all I have left of that time.
I should probably point out that most of these tracks were originally untitled as they were just jams we did. The titles were just provided so that I didn’t have to work out what “untitled 087.wav” was…
Chemical
HTML5 Audio and pre-loading
by Mike on Dec.30, 2010, under Knowledge Base, News
I’ve had to remove the in-page audio player temporarily, as it seems that some browsers don’t respect the autobuffer=”false” attribute on the HTML5 audio element.
What this means is that everyone who visits my site has been downloading ALL the music I have been giving away, simultaneously, whether they listen to it or not – consequently, my little blog is being hammered and it is getting ridiculously slow.
Until I can spend some time working up a usable HTML5 player that supports many instances on a single page, I have disabled all the audio players – the files are still available using traditional links though.
