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 April, 2013

Counting Lines of Source Code in PowerShell | Precision Computing

Posted by jpluimers on 2013/04/30

Precision Computing is a site by Lee Holmes having a great blog with PowerShell tips. Of course he does, as he is part of the PowerShell team and he wrote Windows PowerShell Cookbook: The Complete Guide to Scripting Microsoft’s New Command Shell.

The Counting Lines of Source Code in PowerShell entry is on counting C# code lines (and shows some great performance optimization tips).

I knew about the blog, and bumped into the entry because of file – Lines-of-code counting for many C# solutions – Stack Overflow.

Last year I inherited a suite of .NET projects totaling about 4 million LOC. Which I want to drastically reduce to make it more maintainable.

–jeroen

Posted in .NET, C#, C# 1.0, C# 2.0, C# 3.0, C# 4.0, C# 5.0, CommandLine, Development, PowerShell, Software Development | Leave a Comment »

VMware ESXi 5.1 Complete Update 1 is out (via: VMware KB: VMware ESXi 5.1, Patch ESXi510-Update01)

Posted by jpluimers on 2013/04/29

Time to start planning the patching process: VMware KB: VMware ESXi 5.1, Patch ESXi510-Update01: VMware ESXi 5.1 Complete Update 1.

You can also download the fresh installation ISO at Download VMware vSphere Hypervisor for Free.

–jeroen

Posted in ESXi5.1, Power User, VMware, VMware ESXi | Leave a Comment »

Type 1 fonts and Windows 7/Vista/XP: 2 ways for installing them

Posted by jpluimers on 2013/04/29

This works for Windows XP and Windows Vista too:

Wolfie2k6

Just tested out installing a few T1 fonts. There are two general rules for how to do this.

  1. Drag/drop both the PFM and PFB files (the INF and AFM files aren’t important nor needed) to C:\Windows\Fonts
  2. Open each font by clicking on the PFM and clicking the Install button at the top of the font preview window.

is slower, but it works as well as any other with any font type that Windows 7 supports:

Note: If you drag/drop Type 1 fonts (PFB/PFM) to the Windows\Fonts folder, Windows 7 may complain when copying the PFB saying that it’s missing the PFM and that you should install using the PFM.

Either way – both methods work tho is preferred when dealing with a T1 font.

–jeroen

via: Type 1 fonts and Windows 7.

Posted in Power User, Windows 7, Windows Vista, Windows XP | Leave a Comment »

Delphi: Thomas Mueller is fast – experimental GExperts + code formatter for Delphi XE4 « twm’s blog

Posted by jpluimers on 2013/04/28

Thomas Mueller is fast: experimental GExperts + code formatter for Delphi XE4 « twm’s blog.

–jeroen

Posted in Delphi, Delphi XE4, Development, Software Development | Leave a Comment »

Stack Overflow: Congrats, you’ve gained the privilege – protect questions learn more

Posted by jpluimers on 2013/04/27

Every once in a while, you achieve a new privilege on Stack Overflow.

I’m not a score hunter, but I am interested in what Stack Overflow presents at what level.

The 15000 mark on StackOverflow got me this prrivilege:

Congrats, you’ve gained the privilege – protect questions learn more

It is about protecting questions from gaining lots of noise.

I need to be more often on Stack Overflow to execute it, but it is good to know that I can do it when needed.

Note that depending on the site (StackOverflow, Stack Exchange, meta, etc) the marks differ.

–jeroen

via: Stack Overflow.

Posted in Uncategorized | Leave a Comment »

Great optical illusion: Pink Floyd prism with Pulse background

Posted by jpluimers on 2013/04/27

graphics – How can this image be created with Mathematica? – Mathematica Stack Exchange.

Posted in LifeHacker, Opinions, Power User | Leave a Comment »

Chrome Web Store – BitTorrent Surf (Beta)

Posted by jpluimers on 2013/04/27

Interesting: Chrome Web Store – BitTorrent Surf (Beta).

Posted in Chrome, Google, Power User | Leave a Comment »

Windows 8 and Windows 7 keyboard shortcuts (via: Brian Long, a blong, blong, blong road…)

Posted by jpluimers on 2013/04/26

Found a while ago that Brian Long wrote a few nice pages and posts on Windows keyboard shortcuts:

Thanks Brian

–jeroen

Posted in Keyboards and Keyboard Shortcuts, 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 | Tagged: , , , , , | Leave a Comment »

Way too much “friendly comment” SPAM lately. “Spam, lovely Spam, wonderful Spam.”

Posted by jpluimers on 2013/04/25

Since about 2 months, I get truckloads of friendly comments indicating my blog is so wonderful that gets through Aksimet.

I’m not alone: one spammer posted his full spam script on Scott Hanselmans blog, and of course, Scott blogged about it: Exposed A Blog Comment Spammers Source Template

Not so cool.

Cool:

–jeroen

Posted in About, LifeHacker, Opinions, Personal, Power User, SocialMedia, WordPress | Leave a Comment »

What do you mean “cannot use parentheses?” – Fabulous Adventures In Coding – Site Home – MSDN Blogs

Posted by jpluimers on 2013/04/25

Eric Lippert:

Ah, VBScript. It just wouldn’t be the same without these quirky gotchas.

So either perform Call, assign the function result, or use less parenthesis.

Another thing that drives me crazy with VBScript is that you can only specify ByVal or ByRef, but not specify what type a parameter (string, integer, etc) will be.

VBScript will just barf with “Microsoft VBScript compilation error: Expected ‘)’” at the first As. or colon (:) when you declare Sub or Function parameters like this:

  • Function Describe(ByVal FileName As String, ByVal Description As String)
  • Function Describe(ByVal FileName : String, ByVal Description : String)

The reason is that the colon is end-of-statement token, which means you can string statements together, an can Dim and assign a variable in one line:

  • Dim PathName : PathName = FileName

To quote ebgreen:

VB is NOT VB.Net which is NOT VBA which is NOT VBScript

Oh and Debugging VBScript is indispensable (:

–jeroen

via: What do you mean “cannot use parentheses?” – Fabulous Adventures In Coding – Site Home – MSDN Blogs.

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