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, 2014

Thanks Jaykul for explaining me a custom PowerShell script that acts like DU (DiskUsage).

Posted by jpluimers on 2014/06/17

Thanks Joel Bennett (aka Jaykul) from Huddled Masses for answering my Stack Overflow question PowerShell Get-DiskUsage CmdLet: how to list from a different drive/directory?

In addition to answering it, he also added a complete new and lighter implementation of that script explaining why it was lighter and what idioms to follow in PowerShell.

After reading his aswer, I was even more aware of these two things than I was before:

  • I should emphasize the importance of the object pipeline even more than I already did.
  • You should try to cut down on the dynamically instantiated objects. Like any language with heavy objects, they provide the huge benefit of fast development, but also an inherent cost.

I wasn’t aware you can put your own crafted objects into the pipeline in a very easy way. But you can: Read the rest of this entry »

Posted in Development, PowerShell, Scripting, Software Development | 1 Comment »

AK’s Guide to Suits – Imgur

Posted by jpluimers on 2014/06/16

Interesting: AK’s Guide to Suits – Imgur.

Posted in LifeHacker, Power User | Leave a Comment »

Typing Special Characters on Mac OS X and Windows

Posted by jpluimers on 2014/06/13

I always wonder how people can remember the character combinations to type special characters from a regular US international keyboard on a Mac with OS X, or Windows computer.

When having to type a lot of international text, I often use the United States-International keyboard layout in Windows 7, in Windows Vista, and in Windows XP.

When not, I often use Character Map. Too bad there is no shortcut for it.

Choosing the U.S International – PC  on a Mac OS X (as it behaves exactly like the PC counterpart on Windows) however introduces problems when using Remote Desktop Connection or virtualization software like VMware Fusion or Parallels.

So I sometimes revert to “Special Charters” (option-command-T) under the Edit menu (also called Character Viewer), but usually take advantage that ApplePressAndHoldEnabled by default is enabled: that allows the press-and-hold feature for vowel keys, and then either use the digit keys or arrows to select the target accented character.

On both systems, there are other ways to type special characters using keyboard shortcuts that I find very hard to remember. For people with a good memory, you can try these:

–jeroen

via: Macintosh OSX Keyboards (Penn State).

Posted in Apple, Keyboards and Keyboard Shortcuts, Mac, Mac OS X / OS X / MacOS, Mac OS X 10.6 Snow Leopard, Mac OS X 10.7 Lion, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, OS X 10.8 Mountain Lion, Power User | Leave a Comment »

TSQL: showing database level and server level permissions

Posted by jpluimers on 2014/06/12

A few short scripts checking out the cause for TFS Integration Tools refuses to start despite an admin being able to create a TEST database. Read the rest of this entry »

Posted in Database Development, Development, SQL Server, SQL Server 2008, SQL Server 2008 R2, SQL Server 2012 | Leave a Comment »

Delphi `with` post and discussion revisited (via: wiert.me and LinkedIn)

Posted by jpluimers on 2014/06/11

A bit more than a year ago, I wrote about Delphi: you should avoid the with statement as it makes your code less future proof. That caused some nice comments on the blog, and some more on LinkedIn where Paul Foster mentioned it in a thread ‘Jeroen Pluimers makes a case against “with” statements.‘ Both interesting reads, especially the reasons that people use or avoid with, or keep its use in balance. There is one set of comments I want to emphasize: refactoring multiple with statements into a one function and a call per former with. Read the rest of this entry »

Posted in Borland Pascal, Delphi, Delphi 1, Delphi 2, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 3, Delphi 4, Delphi 5, Delphi 6, Delphi 7, Delphi 8, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Development, Pascal, Software Development, Turbo Pascal, With statement | 19 Comments »

StudioShell: integrating Visual Studio in PowerShell

Posted by jpluimers on 2014/06/10

Wow, it seems I’ve been living under a stond since early 2011: the first StudioShell checkin.

[WayBackStudioShell opens marvellous possibilities in Visual Studio 2010, 2012 and up.

Just look at the feature list: Read the rest of this entry »

Posted in .NET, .NET 4.0, .NET 4.5, C#, C# 4.0, C# 5.0, CommandLine, Development, PowerShell, PowerShell, Scripting, Software Development | Leave a Comment »

Word: adding properties to a document and using them in fields

Posted by jpluimers on 2014/06/09

One of the things I don’t often do in Word is insert fields based on document properties.

Usually that part is in a template, and only touched every once in a lifetime.

So I always forget the starting points to get going:

–jeroen

Posted in Uncategorized | Leave a Comment »

GlobalSign is offering free TLS certificates for open source projects:…

Posted by jpluimers on 2014/06/07

Ilya Grigorik – Google+ wrote: GlobalSign is offering free TLS certificates for open source projects:….

Posted in Uncategorized | Leave a Comment »

Word: deleting unused styles

Posted by jpluimers on 2014/06/06

Ever since I started using Word, I thought that deleting unused styles was hard.

And it was in Word 2000: WD2000: How to Remove Unused Standard Styles from a Document.

And people still think it is complicted in Word 2010: Word 2010 – How does one remove any unused styles in a document – – Microsoft Community.

But in fact it is very simple.

Instructions via How to Delete All Unused Styles in Word Document | eHow.com:
Read the rest of this entry »

Posted in Uncategorized | Leave a Comment »

Some notes/links on Git-TF: the GIT/TFS bridge

Posted by jpluimers on 2014/06/05

TFS 2012 Update 2 and up can do GIT or TFS (now called TFVC for Team Server Version Control). It was improved in TFS 2013, but still it leaves two small problems:

  1. It cannot host the same repository as both GIT and TFVC.
  2. It cannot conver from GIT to TFVC or back.

Luckily there are two tools that can help: GIT TF and GIT TFS.

GIT TF  (now forked on github a few times) is a way to bridge TFS and GIT. It is different from GIT TFS (that only runs on Windows, it is provided by Microsoft).

You can use both for instance to move GIT to/from TFS, or to compare or leverage GIT against TFS Express and Team Foundation Service which are both free for up to 5 developers. A few notes and some more links: Read the rest of this entry »

Posted in Development, DVCS - Distributed Version Control, git, Software Development, Source Code Management, TFS (Team Foundation System) | Leave a Comment »