The Wiert Corner – irregular stream of stuff

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

  • My badges

  • Twitter Updates

  • Pages

  • All categories

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

    Join 1,854 other subscribers

“Holland versus The Netherlands” a new video by C.G.P Grey – @cgpgrey

Posted by jpluimers on 2012/12/23

C.G.P. Grey just released a new video: Holland versus The Netherlands:

I love almost all hist videos at

my first encounter to his work was a similar video about the U.K., G.B, England, and a whole lot more:

While watching that I thought “someone should make a video about Holland, The Netherlands and the Dutch Kingdom”. Good to see he just did (:

Still on my wish list: a video on Europe, Schengen, The European Union and the Euro.

–jeroen

via ROFLMAO.. Thank you…

Posted in About, Internet, Personal, Power User | Leave a Comment »

SQL Server FineBuild

Posted by jpluimers on 2012/12/21

Interesting; is on my research list to see if the installation process gets easier and more standardized.

SQL Server FineBuild Introduction

FineBuild provides 1-click install and best-practice configuration of SQL Server 2012, SQL Server 2008 R2, SQL Server 2008, and SQL Server 2005.

–jeroen

via: SQL Server FineBuild.

Posted in Database Development, Development, Power User, Reporting Services, SQL Server, SQL Server 2005, SQL Server 2008, SQL Server 2008 R2, SQL Server 2012, Windows, Windows 7, Windows 8, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »

Learning F# – Stack Overflow

Posted by jpluimers on 2012/12/20

If you want to learn F#, start at this SO question:

Learning F# – Stack Overflow.

–jeroen

Posted in .NET, Development, F#, Software Development | Leave a Comment »

Two great articles from ploeh blog on temporal compatibility (Rangers and Zookeepers, Zookeepers must become Rangers)

Posted by jpluimers on 2012/12/19

Must read: why you want temporal compatibility.

  1. ploeh blog – Zookeepers must become Rangers.
  2. ploeh blog – Rangers and Zookeepers.

–jeroen

Posted in Development, Software Development | Tagged: , , | Leave a Comment »

batch file example: Redirect stderr and stdout through pipe

Posted by jpluimers on 2012/12/19

I knew that 2>&1 was needed to redirect both stderr and stdout, but for piping, it cannot be at the end of the line. This works in the categories shown at the bottom of the post.

Rob van der Woude again to the rescue in redirection:

(4) Redirecting both standard output and standard error to the same file or device is done by adding 2>&1 to the command line. This will only work in OS/2 and NT, not in MS-DOS.
Where you put 2>&1 is rather critical. It will only do what it is supposed to do when placed at the end of the command line (as Jennie Walker pointed out to me) or right before the next pipe ( | ).

Example: batch file that checks if a few NarrowCast machines are indeed on-line and logged on with the right user.

It uses PsLoggedOn to verify who is logged on, and Explorer to show a hidden share.

The pipe is needed to verify there is indeed a domain user logged on.

@echo off
  for %%m in (Machine1 Machine2 Machine3) do call :show %%m
  goto :pause

:show
  echo %1
  %~dp0PsLoggedOn -L \\%1 2>&1 | find /I "MYDOMAIN\"
  start explorer /e,\\%1\NarrowCast$
  goto :end

:pause
  pause
:end

–jeroen

Posted in Batch-Files, Development, Power User, Scripting, Software Development, Windows, Windows 7, Windows Server 2003, Windows Server 2008, Windows Vista, Windows XP | 4 Comments »

Happy 25th birthday Perl!

Posted by jpluimers on 2012/12/18

Wow, Perl turned 25 today, it seems my first use was like yesterday!

–jeroen

via: The First Twenty-Five Years – The Perl Foundation.

Posted in Development, Perl, Scripting, Software Development | Leave a Comment »

As of December 3rd, 2012, the WordPress.com statistics shows you unique visitor counts too

Posted by jpluimers on 2012/12/18

As of December 3rd, 2012, a WordPress.com blog stat page (https://wordpress.com/#!/my-stats/) now shows unique visitors in addition to total views.

The hint for each bar even does the views per visitor math (seems to average around 1.25 views per visitor on this blog, will update this when a longer period has passed).

The Your Unique Visitors from the Blog at WordPress.com explains some more details.

–jeroen

Posted in Power User, SocialMedia, WordPress | Tagged: , , , , , | Leave a Comment »

.NET/C# – How to create a file and its parent directories in one method call? (via: Stack Overflow)

Posted by jpluimers on 2012/12/18

Ever since .NET 1 there has been no built-in way to create a file including all its parent directories.

Hence small FileHelper class far below.

The fundament of the class is this CreateUnderlyingDirectory method, that uses System.IO.Path.GetDirectoryName to obtain the parent directory of a path, and then System.IO.Directory.CreateDirectory to create it (and any parent directories) if needed.

        public static void CreateUnderlyingDirectory(string path)
        {
            string directoryPath = Path.GetDirectoryName(path);
            Directory.CreateDirectory(directoryPath); // NOP if it exists, will create all parent directories if not
        }

A few helper methods get you a StreamWriter either empty/appended, or always empty Read the rest of this entry »

Posted in .NET, .NET 3.5, .NET 4.5, C#, C# 2.0, C# 3.0, C# 4.0, C# 5.0, Development, Software Development | Leave a Comment »

Download your tweets: are you one of the lucky ones that are in the Twitter beta?

Posted by jpluimers on 2012/12/17

Interesting, when I browse to https://twitter.com/settings/account, there is no option to download all my past tweets yet so obviously I’m not on the beta.

Are you?

–jeroen

via: Twitter has started rolling out the option to download all your tweets – The Next Web.

Posted in Power User, SocialMedia, Twitter | Leave a Comment »

namebench – Open-source DNS Benchmark Utility – Google Project Hosting

Posted by jpluimers on 2012/12/17

Interesting: namebench – Open-source DNS Benchmark Utility – Google Project Hosting.

It runs on Mac, Windows and Linux, comes with a GUI and a console version.

–jeroen

Posted in *nix, Apple, Mac OS X / OS X / MacOS, Mac OS X 10.4 Tiger, Mac OS X 10.5 Leopard, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, Power User, Windows, Windows 7, Windows 8, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »