/* BeejBløg */

Aug 28, 2014 - 2 minute read - Comments -

Json.Net Serialize Dictionary<Tkey, Tobject> to List<Tobject>

Motivation: Wanted convenience of a Dictionary on the server side MVC controller (for some key look-up based logic), yet send the same list of objects down to Knockout Ajax client, which most readily consumes lists as Javascript object arrays. Could’ve just exposed the List as another property but wanted to see if I could roll it all into one property just to learn a little more about the Json.Net API.Nice that Json.

Jul 4, 2014 - 1 minute read - Comments -

[SOLVED] Comodo v7 blocking HTTP/S and FTP/S on Windows 8.1 IIS 8.5

Besides opening incoming HTTP ports in the firewall via “Global Rules”, the annoying thing for me to find was also adding an “Application Rule” for “Windows Operating System” on those same ports. Comodo v7.0.317799.4142 And this guy explains what’s necessary for FTP very nicely… in comodo > global settings > application rule – add 20,21 & 5000-6000 as allowed incoming TCP ports on “Windows Operating System”… you will also hopefully get prompted to allow svchost which is responsible for running the ftpsvc on internet router – forward ports 20,21 and 5000-6000 in IIS FTP settings require SSL firewall support – put external wan address in  firewall support at *SERVER* level (not site) – set ports 5000-6000 point ftp site a folder create login for ftp and make sure it has access to folder when “ Response: 530 User cannot log in, home directory inaccessible.

Jun 12, 2014 - 1 minute read - Comments

List all your Azure RDP’s

Get-AzureVM | #this first one gets the entire list of VMs in subscription Get-AzureVM | # this one gets the detailed object for each specific VM %{ $port = ($_ | Get-AzureEndpoint | ? {$_.name -like "Remote*"})[0].Port; $null = $_.DNSName -match 'https://(.*?)/' write-host "$($_.Name) - $($matches[1]):$($port)" }

Feb 8, 2014 - 1 minute read - Comments -

SQL Server Aliasing

Done via “SQL Server Configuration Manager” > “SQL Native Client vXY.Z Configuration” > Aliases tip: SSMS.exe is a 32bit app (because Visual Studio, upon which it is based, still has a well established justification for 32bit) and therefore it depends on the (32bit) Client Configuration node above to find your server alias For mainstream sql server network client API based connections there is no need to put this alias anywhere else (i.

Jan 20, 2014 - 1 minute read - Comments -

[SOLVED] Win8.1 Upgrade – No “Keep Windows settings, personal files, and apps” option

Before I was met with only two options from the Windows 8.1 upgrade, “Keep Personal Files Only” or “Nothing”. Not much of an “upgrade”, I went poking around. For me it turned out that I had been fiddling with localized development a while back and had an old en-GB language pack still installed. There are various references that the Win8.1 upgrade criteria prohibits “cross language” installs.

Dec 23, 2013 - 4 minute read - Comments -

KeePass + Cloud Storage = (near) Password Nirvana

Update 2015-09-27: Neato! In June of 2015 the author has applied a mod which allows for KeePassHttp to be served from somewhere other than localhost… there are security implications to be considered here but as long as you know how to cover your bases it opens some nice possibilities to have a single KeepPass instance provide password resolution to multiple clients… e.g. a VM guest, other machines in your home, etc.

Oct 5, 2013 - 1 minute read - Comments -

HttpWebResponse from WebException

1234567891011 using (var response = (HttpWebResponse)((Func)(() => { try { return(request.GetResponse());} catch (WebException ex) { return(ex.Response); } }))()) //<-- too funny using (var responseStream = response.GetResponseStream()) // ReSharper disable once AssignNullToNotNullAttribute using (var readStream = new StreamReader(responseStream, Encoding.UTF8)) { return String.Format("{0} {1}. {2}", (int)response.StatusCode, response.StatusCode, readStream.ReadToEnd()); }

Aug 27, 2013 - 2 minute read - Comments

[SOLVED] Acer Aspire One won’t boot Syslinux USB thumbdrive

Looks like my particular issue was the default partition size on my 16GB thumbdrive. Once I formatted the USB with a 2GB partition and installed Syslinux to that, it booted up right away where previously it would hang on the first “Syslinux Copyright Peter Anvin” message. More details: Acer Aspire One model#: 722-C62bb (looks like this is an 11” model) Always handy to have another computer to work from (for web searching, trial and error formats on the USB drive, etc) when trying to fiddle with boot issues on another… my other computer is a Win8 desktop.

Aug 11, 2013 - 2 minute read - Comments -

Man Cave Bling – Beer Fridge – Koldfront 80 (BBR900BL) by EdgeStar

First one was a dud out of the box. Just didn’t cool at all. EdgeStar support said it was missing coolant. Took them about 2 full weeks to turn around the replacement. They paid all replacement shipping via printed return label. It was a new serial number, not a repair of my old one, and it looked new. I am very satisfied now with this second unit and would definitely recommend it.

Aug 1, 2013 - 2 minute read - Comments -

What’s this? A pretty decent “Time Machine” built into Win8!?

https://lifehacker.com/5958865/how-to-use-windows-8s-new-file-history-backup-aka-time-machine-for-windows i’ve always considered the Vista/Win7 “previous versions” facility to be pretty similar to Time Machine just lacking Apple’s meticulous care to making it drop dead easy to use. i hadn’t yet noticed the MS boys had taken yet another swipe at simplifying the UI in Win8… i’m assuming there’s still a usability gap that the Mac boys can laugh at us, but gee, first impression is “not bad Balmer you ol’ dog”