blog
My blog of techy stuff, ranging around SQL (SQL Server, that is), C# and .net, JavaScript and a smattering of stuff about the Orchard CMS (that powers my site) as I get more familiar with it. There's the occasional non-technical post when something is of interest to me that I feel is worth sharing, but they should be few and far between
-
[Non-Tech] Descaling for 1/3 of the price
Totally non-techy post ahead:
Most supermarket/shop descaling powders (the little sachets) work out at about £15/kg, given that all they contain (for the vast majority of them!) is citric acid, it …
-
The result of a query expression is a query, not the result of the query
This bit me recently. To quote Eric Lippert (last paragraph):
Remember that with LINQ the result of a query expression is a query that can deliver the results when asked, not the results of the …
-
Outlook 2010 Beta - Still not implemented
Previously in the saga: Outlook 2010 Beta - "Not Implemented" on Send/Receive.
It would appear that problems with Outlook complaining that something is "Not Implemented" are more …
-
DataTable Key/Value columns to Dictionary
There are undoubtedly more elegant ways to do this using LINQ, but to quickly and easily take the key (int) and value (string) columns from a DataTable and turn them into a Dictionary<int, string>, …
-
Outlook 2010 Beta - "Not Implemented" on Send/Receive
I yesterday installed the Office 2010 beta and almost immediately came across a fairly serious "bug". It's debatable whether the bug was caused by Microsoft (i.e. a fault on the part of Office) or by …
-
MySql ServerName.Log file size
A quick and dirty hack (written in C#) to solve the issue of MySql query log files getting huuuge:
System.ServiceProcess.ServiceController sc = new ServiceController("mysql", "servername");sc.Stop(); …
-
extJs: Combobox .getValue oddity - 2 (The "Solution")
Previously: extJs: Combobox .getValue oddity
Here's a quick-hacky solution (a better one would be to ensure your combobox's are selection-only):
Ext.override(Ext.form.ComboBox, { getValue: …
-
extJs: Combobox .getValue oddity
At least in extJs version 2.2.1 (the version baked into Coolite v0.8), the getValue function on the Ext.form.ComboBox appears to be thus:
function(){ if (this.valueField&&this.forceSelection) { …
-
A review of "Review: CryptoLicensing for .NET"
The review of CryptoLicensing for .NET that Roy Osherove posted recently was very well written and covered a topic that I've long held a mild level of curiosity around. That topic being protecting …
-
MySql - Running a complex script using the .net Connector
[The solution was discovered via this entry in the mysql.com forums]
If your MySql script contains code like
"/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;"
You'll need to add …