Short takes: hosts files; C#; Azure VMs; sleuthing around Exchange; closing Windows 8 apps; and managing tabs in Google Chrome

This content is 11 years old. I don't routinely update old blog posts as they are only intended to represent a view at a particular point in time. Please be warned that the information here may be out of date.

Another dump of my open browser tabs to the web…

Unable to edit hosts file in Windows

One of the tools (read Excel and lots of macros) that I use for financial forecasting said it couldn’t find a server.  Of course the network’s never broken – it must be the end users’s fault – so, faced with the prospect of telling an angry admin that there is a DNS mis-configuration, I decided to hack my hosts file instead…

Windows doesn’t make that easy (even as a local administrator) – so I ran Notepad as Administrator instead… being an old skool kind of command line guy it was an elevated cmd prompt  from Start, cmd, then shift and click (which dumps me into C:\Windows\System32), followed by the cd drivers/etc and notepad hosts commands.

What versions of C# are out there?

One thing I wanted to know whilst teaching myself to write in C# a few months back (i.e. to select a course that was up-to-date!) was which versions of C# are out there. Of course, Stack Overflow has the answer.

And, one day, I really must have a play with CShell, the open source C# read-eval-print-loop (REPL) IDE

What Microsoft server software is supported in an Azure VM?

Ever wondered what can be run up (and supported) in a Microsoft Azure VM? Quite a lot, but also some big omissions (Exchange, obviously) and some caveats (like no DHCP).  The formal list is in Microsoft knowledge base article 2721672.

Finding the Exchange Server that actually hosts my email

Exchange AutoDiscover means that, most of the time, end users don’t need to know where their email is – just the single address that lets the email client find the server – but several times recently I’ve found myself needing to know which server hosts my email.  One time I was diagnosing intermittent issues with out of office replies and access to colleagues’ calendars.  Another time I wanted to use PowerShell to list members of a distribution group programmatically (and later to rename a distribution group after the IT department said it wasn’t possible). Unfortunately, I didn’t have access to run PowerShell commands against our servers (but that’s probably a good thing)!

Anyway, it seems that the details I needed were available via Outlook Web Access:

  1. Logon to OWA
  2. Click options
  3. Click About
  4. And find the line that reads “Client access server name” – that’s your connection point.  There’s also a line for “Mailbox server name”.

I tested this with Exchange 2007.  It may vary for other releases and I haven’t checked.

By the way, a couple of links that looked hopeful for my distribution group issues (the ones I had to find another way to resolve):

Closing applications in Windows 8

Our family PC runs Windows 8.1 but, as my work PC runs Windows 7, I have to admit sometimes there are things I haven’t got used to.  One of those is closing full-screen apps.  I usually resort to Alt-F4 but if the kids have left the computer in touch format, then it seems that a simple top to bottom drag is what I need (there should also be a close button if I touch the top of the screen).

Managing tabs in Google Chrome

As I go through my work, I often come across things I’d like to go back to later, or leave side projects part-done, blog posts half-researched (and half-written), etc. Over time, they build up to hundreds of tabs and I my bookmarks folder is a plethora of In Progress yyyymmdd folders (another job to sort out one day).  It also means that, every now and again, my PC slows right down and I need to reboot because Google Chrome is using 14 gazillion GBs of RAM and a Flash plugin (probably serving ads on a website) has gone haywire again. Add Symantec EndPoint Prevention and BeCrypt DiskPrevent into the mix and a reboot could be a half-hour inconvenience.

Last night, I spent hours working through the various open tabs, closing some, pasting some to blog posts (this one… and others still work in progress) and I happened to post a little tweetette, to which Garry Martin (@GarryMartin) happened to respond:

Awesome indeed. Less than 5 seconds to install and the remaining handful of tabs are now under control.

No sound from Google Chrome: Adobe Flash issue and workaround

This content is 12 years old. I don't routinely update old blog posts as they are only intended to represent a view at a particular point in time. Please be warned that the information here may be out of date.

Adobe Flash has no place in the modern web.  Unfortunately there are many sites that still use it, so it can’t be ignored entirely. This weekend I found I had no sound in my browser and it turned out to be Flash-related.  This is what I found…

No sound in Google Chrome

Over the week, I tend to accumulate open browser tabs of things that look interesting but which I haven’t got time to read/watch in the working day. Written content is simple enough (it gets saved to Pocket, and then not read from there instead), videos are less straightforward.

Anyway, I’d finally got round to watching a video link I’d been sent and found that I had no sound. Strange. Windows sound was working – I could test from Control Panel and in other apps – it seemed to be a problem for YouTube in my browser (Google Chrome).

A bit of digging turned up a Google Groups post that sounded similar.  Whilst the issue was reported to affect Flash 11.3 and I’m running 11.5.31.2, I did follow a link to Adobe’s Flash Player 11.3 Audio Update, which suggested I knock my sound quality down to 16 bit 44,100Hz (CD Quality). That did the trick – and is perfectly fine for playing MP3s and YoutTube videos…

What are all of these Flash versions anyway?

As Michael Horowitz explains in a defensive computing post, Flash versioning is, to put it mildly, a mess. Added to that chrome://flash tells me that I’m using something called Pepper Flash, which I’ve never installed but it turns out is part of Google Chrome 21 and later (I’m on 23.0.1271.95) to provide better sandboxing, among other things.  You can find details of the version of Flash installed (and the latest version) on Adobe’s Flash Tester and Michael also has information at his Flash Tester site.

Useful to know: Google Chrome has its own task manager

This content is 13 years old. I don't routinely update old blog posts as they are only intended to represent a view at a particular point in time. Please be warned that the information here may be out of date.

Earlier today, I was wondering why I was seeing a “missing plug-in” message in Google Chrome on a number of websites that I regularly view. I loaded the same websites in Internet Explorer and they worked OK, so something had obviously gone screwy inside Chrome. I could have guessed – it was Flash, although normally I get a yellow bar to tell me that has stopped working.

I rebooted my PC yesterday, so I don’t plan to do that again for another couple of weeks (until the memory leak that one of my apps has gets so bad that I’m forced to…) but I googled missing plug-in google chrome to see what comes up. As it happens, Chrome has a task manager built in (press shift and escape).  After ending the Shockwave Flash process, I refreshed the offending page(s) and everything worked as it should.

By then I was intrigued by the stats for nerds link which takes me to chrome://memory-redirect/ – an internal page that contains a breakdown of activity by process (including which tabs are managed by which processes) – which would have been handy to know about when Chrome had gobbled up a good chunk of my RAM earlier this week:

Any tips for restricting Chrome's memory usage? Running ~60-70% CPU and ~80-85% RAM on a 4GB Windows x64 system: http://t.co/dDMehXbN
@markwilsonit
Mark Wilson

If anyone knows a similar memory management function for Internet Explorer, I’d be pleased to hear it as the relationship between tabs and processes seems to be a black art (and it may help to chase down problematic tabs) – I’ve tried Process Explorer and Windows Task Manager in the past, but it would be useful IE functionality…