• .net

    Why you should reconsider using the wget alias in Powershell scripts if you’re running them on auto-provisioned VMs

    by  • November 2, 2014 • .net, powershell • 0 Comments

    The other day I was looking for a Powershell one-liner to get the content of a URL and came across this superuser post, which suggested to take a look into Invoke-WebRequest or wget (an alias of Invoke-WebRequest). My usage was to pull in the content of this text file during a build on a remote […]

    Read more →

    Tracing all SQL generated by Entity Framework

    by  • March 3, 2013 • .net, sql • 1 Comment

    A nice quick one this week. I spent a little bit of time trying to debug some Entity Framework queries, particularly the parameter values used in a SQL INSERT composed when calling AddObject/SaveChanges. There are a few ways to determine the underlying SQL. If you are only interested in LINQ queries, using ToTraceString() on ObjectQuery […]

    Read more →

    Tweaking MSDeploy arguments to keep existing files in folder during deployment to IIS

    by  • January 31, 2012 • .net, tfs, visual studio • 2 Comments

    I recently got into MSDeploy in order to automate the deployment of web application packages to IIS. A great resource that got me most of the way was Web Deployment Painkillers: Microsoft Visual Studio 2010 & MS Deploy, very useful in getting me started via TFS 2010/VS 2010. What this gave me was the following […]

    Read more →

    Creating a MessageBox in Java

    by  • January 5, 2010 • .net, c#, java • 0 Comments

    I wanted to see if there was a Java equivalent of .NET’s MessageBox class. Turns out there is but it’s a little more hidden away as a static method on JOptionPane, so I’ve pasted the code here for referring to it in the future: JOptionPane.showMessageDialog(null,”message”,”title”)); This creates and shows a message dialog with no parent […]

    Read more →

    Convert TeX .bib bibliographies into Word 2007 XML bibliographies

    by  • January 14, 2009 • .net, c#, xml • 2 Comments

    I’ve just released a small tool on CodePlex that lets you convert from a TeX bibliography (such as that done in JabRef) into an XML file that can be read with Word 2007. It’s called bib2Word07Xml and you can get it from http://www.codeplex.com/bib2Word07Xml, under the Releases tab. There are some limitations, these are documented on […]

    Read more →

    Creating your own custom Grammar, and filtering recognition based on confidence

    by  • January 8, 2009 • .net, c#, grammar, speech recognition • 1 Comment

    This follows on from an earlier post, Speech Recognition and the System.Speech namespace, where I was trying to find out roughly what the the topic of a given set of unannotated lectures was. As expected, using the DictationGrammar didn’t help too much, in fact some of the results from the recogniser were pretty funny! So […]

    Read more →