Circular references make me cringe and shudder. Its not that they are bad per se, its what we do with them that counts. Now, the .NET garbage collector avoids memory issues with destroying circular references and we don’t have to worry as much as days of yore, though I still can’t help the shudder. I […]
Enable ES6 support in VS code
I’ve recently been playing with koa.js – which happens to lean on ES6 features quite heavily. Also using this as an opportunity to learn to use VS Code. Loving both tools incidentally. Code supports ES6 nicely, however you do need to configure your working directory to tell the IDE that you want to use it. […]
Configuring WPA/WPA2 wifi on Ubuntu 14.04 LTS
I’m not really sure how it happened, but after installing 14.04 LTS I couldn’t connect to my network over wifi. I ran the LTS install from my CDROM – it walked me through connecting to my wifi ap. The installer uses this to initiate apt-get to download additional packages. All went well. When I log […]
Exposing .NET Classes to a Classic ASP web page via COM
There are already heaps of posts and guidance on how to make COM Callable wrappers out there but it would seem there is a lack of posts on how to then consume and use your API from Classic ASP Recipe for success: A .NET API that you would like to expose regasm.exe (normally part of […]
Username Token Profile With WCF over HTTP with no code required
WCF does not make Username Tokens over HTTP easy. For good reason too. People who pass credentials in the clear must be judged! One day, you may find yourself forced into a corner, with a gun to your head, having to break the rules and create a client to follow the WS-S Username Token Profile without transport […]
Container Lifetime and web requests
I recently encountered a strange issue with a WCF service I’m helping to develop. Subsequent requests to a service operation was returning the same results, regardless of input. When debugging this service in Visual Studio it worked fine (using the internal web server), but as soon as I deployed it to a staging environment (IIS […]
Allowing Cross Domain AJAX
Browsers traditionally, are a little particular about who you POST to.. For instance, using AJAX to post to a server from another domain can be blocked if the right headers are not included in the response. Some call this Cross Domain AJAX. Simply put, you need to implement Cross-Origin Resource Sharing. In most browsers, that […]
Getting Started With WCF over SSL
AIMS: · To create an IIS Application that is accessed over SSL. · Use the Wcf Test Client to connect and verify the service is running YOU WILL NEED: · SELFSSL7.exe available here: http://www.iisinformation.com/2010/05/self-signing-ssl-for-iis7-selfssl7/ · IIS instance installed locally · Sufficient access to install certificates in root certificate authority store STEPS Self Signed Certificate Installation […]
Optional Parameters, Polymorphism & F#
Optional parameters are one of those things. Love them or hate them they have their place. Generally, F# style dictates using optional parameters over overloaded methods. From MSDN In F#, optional arguments are usually used instead of overloaded methods. However, overloaded methods are permitted in the language Briefly, the way to declare optional parameters in […]
Using the Telerik Controls from ASP MVC via Nuget
Recently, Telerik started providing their open source controls over nuget, and I happened to be on an ASP MVC 3 project that is potentially going to consume them, so I thought I’d look into the nuget support. As it turns out merely installing the extensions via nuget will not magically turn your boring ASP MVC […]