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 June, 2010

view what your system has shared

Posted by jpluimers on 2010/06/18

Sometimes you want to know which network shares your system exposes to the outside world.

For me (I’m a keyboard addict), the easiest way is to run the “net share” command on the command-line.

The output looks like this: Read the rest of this entry »

Posted in Power User | 3 Comments »

Visual Studio 2005/2008 WPF bug: App.xaml not found messages

Posted by jpluimers on 2010/06/17

When you do some maintenance on old projects, you sometimes bump into things you have completely forgotten about.

This time it is in Visual Studio 2005, with a WPF app, and messages about App.xml.

Since there are few threads covering this problem, so I’m not sure how many people bump into this.
I know that the problem does not limit itself to C#;  I have seen people in VB.NET and Delphi.net bump into this as well.
This problem is not limited to Visual Studio 2005, some people also have it in Visual Studio 2010.
Some people also have it with other objects than App.xaml (like Windows1.xaml, etc).

If you get this error, the solution is simple:

  1. perform a “Clean Solution”,
  2. then run your app again.

This trick has worked for me every time I bumped into it. Read the rest of this entry »

Posted in .NET, C#, Delphi, Development, Prism, Software Development, Visual Studio and tools, WPF | 2 Comments »

xkcd: Appropriate Term

Posted by jpluimers on 2010/06/17

My favourite pointing device: xkcd: Appropriate Term.

Posted in About, Opinions, Personal | Leave a Comment »

Long pathname support: Watch for MAX_PATH (was: Windows pathname max length problem « Dropbox Forums)

Posted by jpluimers on 2010/06/16

When you want to support long pathnames on Windows, you need to watch for the MAX_PATH limitation.
Some tools, like RoboCopy (developed in C++), Beyond Compare (developed in Delphi) and others get it right.
Getting it right does not depend in your development environment: it is all about calling the right API’s with the right parameters.

Let me take a tool – in this case DropBox, though other tools suffer from the same problem – and investigate how they should do it.

Even though DropBox is cross platform, the Windows version of DropBox limits itself to synchronizing files having less than 260 characters in their path.
This is a big drawback: it is so 20th century having a limitation like this. Read the rest of this entry »

Posted in .NET, Delphi, Development, Encoding, Opinions, Software Development, Unicode | 6 Comments »

Deploying .EXE on a server share when it is in use by workstations (using Handles.exe and for)

Posted by jpluimers on 2010/06/15

In a lot of network environments, you (still ) find a situation where workstations run a .EXE from a network share.

In these situations, you cannot update the .EXE on the server: you get “Access Denied” errors.

Below is a simple batch-file trick to overcome this.
It kills all the handles that the workstations have to the .EXE
After you have run this batch-file, you can copy the .EXE.

Note:
There still is a small race condition: if between you kill the handles and copying the new .EXE, someone starts the old .EXE Read the rest of this entry »

Posted in CommandLine, Development, Power User, Software Development | Leave a Comment »

Disable Windows built in ZIP support

Posted by jpluimers on 2010/06/14

Once every while, I come across an environment where the built-in ZIP support is enabled.

This often is a pain when searching files; searching ZIP files takes very much longer than not.
But sometimes you want to search within ZIP files, so then you need to enable it.

Luckily the top search for disable zip support reveals how to: Read the rest of this entry »

Posted in Power User | 2 Comments »

RT: How we test the compiler backend – Visual C++ Team Blog – Site Home – MSDN Blogs

Posted by jpluimers on 2010/06/12

An interesting post on how the Visual C++ compiler backend gets tested:

How we test the compiler backend – Visual C++ Team Blog – Site Home – MSDN Blogs.

–jeroen

Posted in Development, Software Development | Leave a Comment »

wget direct download with referer: SpeedFan

Posted by jpluimers on 2010/06/11

wget is a great tool for downloading from http, https or ftp.
It works on many platforms, and there is a win32 build of wget.

wget usually works, but when a website requires a referer (lots of them seem to), you need to add the referer option like this:

wget -m -np –referer=http://almico.com/sfdownload.php http://www.almico.com/installspeedfan440.exe

The -m -np part creates an on-disk structure for the url, which you need when downloading a complete tree.
I often find that practical even for single files too.

–jeroen

Posted in *nix, Power User, wget | Tagged: | 1 Comment »

VMware Converter 4.01: “Unable to obtain hardware information” or “Unable to determine Guest Operating System”

Posted by jpluimers on 2010/06/10

Sometimes you get an error message “Unable to obtain hardware information” or “Unable to determine Guest Operating System” when using VMware Converter 4.01.

This happens at least with VMware Converter 4.01 and converting x64 VM’s like “Windows 7” and “Windows Server 2008 R2” from ESXi 4 U1.
Others found out it also happens with some Linux VMs, I have not tried those yet.

A the VMware communitie, user wildblue posted a workaround: Read the rest of this entry »

Posted in ESXi4, Power User, Virtualization, VMware, VMware Converter, VMware ESXi | 27 Comments »

VMware Virtual Infrastructure Client UI: why is the “edit…” on the top right, away from all other actions?

Posted by jpluimers on 2010/06/09

For almost all actions inside the VMware Infrastructure Client UI, you don’t need the “edit…” action.

The only place you need this is in the “Configuration” and “Users & Groups” tabs.

So when you want to enter your ESXi license, you might wonder how to do that.

Well: hit the “Edit…” action on the far right.
Indeed: far right, especially when running 1920×1200 or other high resolutions :-)

I wonder who did the UI design for the VMware Infrastructure Client, and what the reasoning for the placement of the “Edit…” action is.

–jeroen

via: VMware Communities: Where do I enter my ESXi license key? ….

Posted in Development, Software Development, UI Design | Leave a Comment »