2016-03-31

Interesting announcement from Build: Developers can run Bash Shell and user-mode Ubuntu Linux binaries on Windows 10 So, what’s that all about? Things seem very unclear to me at the moment, but I have not had the time to read loads of posts that spring up here and there, or to determine whether some of them are less secretive than Scott’s post I linked to above. The promises are altogether a bit strange and conflicting. For instance, Scott says

This isn’t Bash or Ubuntu running in a VM. This …


2010-09-02

I was just looking into the whole topic of drawing something on screen in a .NET WinForms application, so that it appears in the “correct” size. I found a number of issues around the handling of screen resolution and DPI, and in order to remember what’s what, and perhaps help somebody with the same problems, I thought I’d write it all down.

Some definitions

For a start, what does DPI really mean? It is often confused with “resolution”. That is of course not wrong, but still very confusing. …


2009-09-04

It’s weird: in Vista, a lot of people were always complaining about the way UAC interrupted their lives. I didn’t think it was a big deal at all, it just didn’t bother me. Now in Windows 7… well… I’m not sure what it is, but I find UAC a bit odd now. The reason is simple: it continuously pops up when I don’t expect it, causing me to waste time. For instance, I run an installer and go through 8 wizard pages, and I click the final “will you please get on with that installation, FFS” button, I …


2008-04-25

Using Local Security Policy settings (specifically the one called “User Account Control: Switch to the secure desktop when prompting for elevation”), I can modify Vista’s behaviour when showing elevation prompts, so that the elevation dialog is simply shown as a normal window on the current desktop. I like this behaviour much better, but I’m wondering if there’s any security related reason why the so-called secure desktop is actually more secure. If you know, please tell me!


2008-04-25

It appears I’ve managed to do a pretty stupid thing - personally I rather feel like Windows let me do a stupid thing, but that’s probably a matter of perspective ;-)

Anyway, I was trying out some things with UAC, looking at the way different elevation prompts are displayed depending on whether or not the current user is an Administrators member or not, and so on. Previously I was working in what appears to be the default configuration, which my user account being a member of the local Administ …


2008-04-23

There’s a pretty big problem with shell extensions when you try to run 64 bit Windows — they either come in 64 or 32 bit varieties, and each “group” of extensions will only be loaded into a corresponding host application. In other words, Windows Explorer runs as a 64 bit executable by default and it only loads shell extensions for 64 bit. Many alternative file manager tools only come in 32 bit versions so far, and they will only load 32 bit extensions.

Some extensions come in both 32 bit and …


2008-04-10

I was fighting some problems with SlickRun for a while after installing 64 bit Vista on my machine recently. I noticed issues with powershell (SlickRun was always running the 32 bit version of it, even though the path explicitely specified the 64 bit version), and when I wanted to create a command to run SnippingTool, it turned out to be impossible… there are some very weird things going on in 64 bit Windows.

For example, Explorer shows me SnippingTool.exe in c:\windows\system32 (`system …


2008-04-10

Just stumbled upon this due to some confusion about the version of PowerShell I was running on my 64 bit Vista machine. I ran PowerShell from the start menu, using the context menu to bring it up as Administrator. Then I set the execution policy to RemoteSigned:

> Set-ExecutionPolicy RemoteSigned

I ran PowerShell as a normal user (through SlickRun - brought up the 32 bit PowerShell without me noticing at first), tried to run a script and it failed. Get-ExecutionPolicy still s …