The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,862 other subscribers

Archive for May, 2010

Duplicate Shortcuts IE8 configuration dialog – Alt-N binds to “No” and “Next”. Are UI designers ever going to learn to be nice to keyboard users?

Posted by jpluimers on 2010/05/17

Duplicate Alt-N shortcut: No / NextFor every (re)install, IE8 is usually part of the installation.
So, for the upteenth time, I came across the dialog on the right.
This time Alt-N is bound to both the “No” choice as well as the “Next” button.

–jeroen; wishing UI designers would learn to pay more attention to keyboard users…

Via: 20100516-UI-Duplicate-Shortcuts-IE8 on Flickr – Photo Sharing!.

Posted in Development, Keyboards and Keyboard Shortcuts, Power User, Software Development, UI Design | Leave a Comment »

Twitter hickup – “older tweets are temporarily unavailable” #fail

Posted by jpluimers on 2010/05/17

Where broadcasting fails.

Older tweets are temporarily unavailable.

via Twitter / Search – #osdorp.

Posted in Opinions | 1 Comment »

Zondag nog steeds off-line: Nuon | Mijn Nuon is niet beschikbaar van zaterdag 12:00 tot 22:00

Posted by jpluimers on 2010/05/16

Ogemak; en zondag. Spellen en communiceren blijft moeilijk, niet alleen voor een klein bedrijf als het mijne...

Spellen en communiceren blijft moeilijk, niet alleen voor een klein bedrijf als het mijne...

Van de NUON site:

Mijn Nuon is niet beschikbaar

Mijn Nuon is vanwege onderhoud tijdelijk niet beschikbaar. Het onderhoud duurt van zaterdag 15 mei van 12.00 uur tot zaterdag 15 mei 22:00 uur.

Onze excuses voor het ogemak.

Wij danken u voor uw begrip.

via Nuon | Mijn Nuon is niet beschikbaar.

Posted in Opinions | Leave a Comment »

Wie legt De Telegraaf even uit wat “terughoudend” is? #ziekelijkenieuwsgaring #telegraaf #jolandevandergraaf

Posted by jpluimers on 2010/05/14

Wie legt De Telegraaf even uit wat “terughoudend” is? en Gespuis: Telegraaf interviewt Ruben in Libie.

Jolande van der Graaf - de 'Journaliste' die het stuk durfde te publiceren @!#$

image courtesey of HP/De Tijd

De Telegraaf (de “journaliste” rechts  – Jolande van der Graaf – publiceerde het !@#$) belt met het enige overlevende jongetje van de vliegram in Libië.
De jongen wiest toen nog niet eens de rest van zijn familie in het vliegtuig dood was.
Nu staat hij met naam, toenaam en foto’s in de krant?

(nee, een link naar het artikel komt hier niet, dat zou te makkelijk zijn)

Hallo!
Fatsoen???

–jeroen

Via: Wie legt De Telegraaf even uit wat “terughoudend” is? – The Amazing Retecool Goldmember
en Gespuis: Telegraaf interviewt Ruben in Libie

Posted in Opinions | Leave a Comment »

.NET – Putting a base in the middle (Eric Lippert – Fabulous Adventures In Coding)

Posted by jpluimers on 2010/05/14

I always tend to recompile assemblies when something changes they depend upon.

But now I’m even more careful after reading Fabulous Adventures In Coding : Putting a base in the middle.
Especially his checklist is important.

When you use a newer version of an assembly you depend on:

(1) at the very least test your derived types with the new base type — your derived types are relying on the mechanisms of the base types; when a mechanism changes, you have to re-test the code which relies upon that mechanism.

(2) if there was a breaking change, recompile, re-test and re-ship the derived type. And

(3) you might be surprised by what is a breaking change; adding a new override can potentially be a breaking change in some rare cases.

–jeroen

Posted in .NET, C#, C# 2.0, C# 3.0, C# 4.0, Delphi, Development, Prism, Software Development | Leave a Comment »

Windows 7/Vista: How to access Administrative Shares (C$, IPC$, …) via PaulSpoerry.com

Posted by jpluimers on 2010/05/13

A while after installing a new copy of Vista or Windows 7, I usually want to be able to access the administrative shares (like C$, Admin$, IPC$, etc).

On Windows 7 and Vista, those are by default not enabled.

To enable them, import this enable-windows-7-vista-server-2008-administrative-shares.reg file into the registry:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"LocalAccountTokenFilterPolicy"=dword:00000001

You need to reboot your system once after this registry change.

Or from a batch file as Administrator:

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "LocalAccountTokenFilterPolicy" /t REG_DWORD /d 0 /f

Later I name the files like this:

enable.windows-vista-and-up.administrative-shares.bat
enable.windows-vista-and-up.administrative-shares.reg

–jeroen

via [WayBack] How to access Administrative Shares on Vista C$ | PaulSpoerry.com

Posted in Power User, Windows, Windows 10, Windows 7, Windows 8, Windows 8.1 | Leave a Comment »

.NET/C# – determining the hardware acceleration support for your WPF apps

Posted by jpluimers on 2010/05/13

When you want to deploy WPF, it is important to check if you have sufficient hardware acceleration for your apps.

The most important things to check is the RenderCapability.
It gives you the  Tier on which graphics is rendered.

The Tier tells something about hardware acceleration support, including a broad estimate of the pixel shader and vertex shader levels and DirectX versions.

Currently, there are 3 tiers: Read the rest of this entry »

Posted in .NET, C#, C# 3.0, C# 4.0, Development, Software Development, WPF | 1 Comment »

Reading tea leaves – Danny Thorpe

Posted by jpluimers on 2010/05/12

A short while ago, [WayBack] Danny Thorpe posted an answer about multithreading issues on StackOverflow.com [WayBack] which reminded me a lot about a BorCon session he did.
That session is called [WayBack] “Reading Tea Leaves: The Fine Art of Debugging“, it is still very current (a lot of it is not Delphi specific at all: it can be applied to a broad range of platforms), and I was glad to find that [WayBack] Joe White made [WayBack] some great notes and posted them on his blog.

Edit 20100513T0830: (thanks Mario!) Don’t you love 404 :-)
The blog from Joe White seem to be down, and the web archive of his blog didn’t have that particular page, but the google cache has.

–jeroen

PS:
Danny is a great writer; I’m really glad he [WayBack] showed up at StackOverflow.
Here is another very [WayBack] nice answer from him on concurrency in software using read-write, locking, interlocked increment and more.

He found back his slides:

Consolidating a dusty box of ancient DVDRW archive disks this weekend (uploading them to multi-redundant NAS) and looky what I found! I’d given up all hope of ever finding this again. #digitalpackrat ftw!

Hope this brightens your day @jpluimers :) https://t.co/saqq7JA46e

Posted in Debugging, Delphi, Development, Software Development | 3 Comments »

Why SizeOf for character arrays is evil: stackoverflow question “Why does this code fail in D2010, but not D7?”

Posted by jpluimers on 2010/05/11

This Why does this code fail in D2010, but not D7 question on stackoverflow once again shows that SizeOf on character arrays usualy is evil.

My point in this posting is that you should always try to write code that is semantically correct.

By writing semantically correct code, you have a much better chance of surviving a major change like a Unicode port.

The code below is semantically wrong: it worked in Delphi 7 by accident, not by design:
Like many Windows API functions, GetTempPath expects the first parameter (called nBufferLength) number of characters, not the number of bytes. Read the rest of this entry »

Posted in Delphi, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 3, Delphi 4, Delphi 5, Delphi 6, Delphi 7, Delphi XE, Delphi XE2, Delphi XE3, Development, Encoding, ISO-8859, Software Development, Unicode | Leave a Comment »

Disk2vhd – new tool from SysInternals

Posted by jpluimers on 2010/05/10

Recently, SysInternals introduced Disk2vhd.

This is a tool that generates a VHD (virtual hard disk image) from a physical disk.
Even better: it can do this for a running system that is online!
They use volume snapshots (a.k.a. Volume Shadowcopy Service) to do this on-line.

From their site:

Disk2vhd is a utility that creates VHD (Virtual Hard Disk – Microsoft’s Virtual Machine disk format) versions of physical disks for use in Microsoft Virtual PC or Microsoft Hyper-V virtual machines (VMs). The difference between Disk2vhd and other physical-to-virtual tools is that you can run Disk2vhd on a system that’s online. Disk2vhd uses Windows’ Volume Snapshot capability, introduced in Windows XP, to create consistent point-in-time snapshots of the volumes you want to include in a conversion

via Disk2vhd.

Note: Sysinternals now has a Live Share at http://live.sysinternals.com where you can download the most recent versions of their tools.

–jeroen

Posted in Power User | Leave a Comment »