Brilliant! Cast to xml, if it is nil, then the second cast to bool will give false, otherwise true:
Thanks Shay Levy!
[bool]Get-Content c:\Path\To\xml_file.xml -as [xml]
–jeroen
via How to determine XML type in Powershell? – Stack Overflow.
Posted by jpluimers on 2015/07/21
Brilliant! Cast to xml, if it is nil, then the second cast to bool will give false, otherwise true:
Thanks Shay Levy!
[bool]Get-Content c:\Path\To\xml_file.xml -as [xml]
–jeroen
via How to determine XML type in Powershell? – Stack Overflow.
Posted in Development, PowerShell, Scripting, Software Development | Leave a Comment »
Posted by jpluimers on 2015/07/20
In case I need to re-download some language related Office 2013 things again: Office 2013 Language Pack Options.
–jeroen
Posted in Excel, Office, Office 2013, Outlook, Power Point, Power User, Word | Leave a Comment »
Posted by jpluimers on 2015/07/17
LOL: 6 8 nice Geek shirts:
–jeroen
via:
six geeky T-Shirts
Posted in Fun, Geeky, Quotes, T-Shirt quotes | Leave a Comment »
Posted by jpluimers on 2015/07/16
During a recent code review, I bumped into a couple of C# constructors having boolean parameters, leading to the dreaded magic booleans code smell.
This reminded me of the infamous Avoiding Booleans post on Coding Horror, which now is almost 10 years old.
To celebrate, I will coin the Dutch phrase when marking these in a review:
Boolean parameters en literals zijn vrijwel altijd een zwaktebod. Een teken dat beter nagedacht moet worden over het doel van de code.
The Dutch word zwaktebod is used when bidding Bridge using the Acol system. It is the equivalent of a “weak takeout” response to a bid of 1 NT (notrump or no trump, in other languages sometimes sans atout).
The English translation is just about this:
Boolean parameters and literals virtually always are a sign of weakness. It indicates you need to give more thought to the goal of the code.
–jeroen
Posted in .NET, .NET 1.x, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, C#, C# 1.0, C# 2.0, C# 3.0, C# 4.0, C# 5.0, C# 6 (Roslyn), Development, Software Development | Leave a Comment »
Posted by jpluimers on 2015/07/15
Thanks [Wayback] Jørn Einar Angeltveit for sharing this a while ago:
A session by Jon Skeet and Tony the Pony (which has strong teeth) presented during the Polish DevDay 2013 in Kraków, Poland.
[Wayback] +Jon Skeet’s speech [Wayback] “Back to basics” is really a good watch.
In a funny way, he explains why the simplest fundamentals of computer software text, dates and numbers can cause some real headache for the programmer…
In case you didn’t know: Jon Skeet is “Chuck Norris” on [Wayback] stackoverflow.com:
The subtitle is “the mess we’ve made of our fundamental data types”.
Some of the topics covered:
Posted in .NET, C#, Conference Topics, Conferences, Delphi, Development, Encoding, Event, internatiolanization (i18n) and localization (l10), Java, Java Platform, Jon Skeet, Pascal, Scripting, Software Development, Unicode | 2 Comments »
Posted by jpluimers on 2015/07/14
When installing SQL Server 2008 Service Pack 3 related updates, some don’t like compressed directories (even if the database files themselves are uncompressed).
I found this holds at least for KB2977321 and KB2285068.
For x86 systems, ensure these directories are not compressed:
C:\Program Files\Microsoft SQL Server
C:\Program Files\Microsoft SQL Server Compact Edition
For x64 systems, ensure these directories are not compressed:
C:\Program Files\Microsoft SQL Server
C:\Program Files x86\Microsoft SQL Server
C:\Program Files x86\Microsoft SQL Server Compact Edition
–jeroen
via: Can not install KB2285068 Error Code 84B40000 – Microsoft Community.
Posted in Database Development, Development, Power User, SQL Server, SQL Server 2008, SQL Server 2008 R2, Windows | 1 Comment »
Posted by jpluimers on 2015/07/13
Too bad Chrome is still vulnerable to the Logjam exploit.
Use a batch solution like here to work around it: tls – Securing Google Chrome Browser against the Logjam exploit on Windows – Information Security Stack Exchange.
Posted in Chrome, Google, Power User | Leave a Comment »
Posted by jpluimers on 2015/07/13
Older Windows versions than 8.x will not correctly expand %APPDATA% or %LOCALAPPDATA% in environment variables: User variables are not resolved correctly in Windows..
This even happens when the registry storage of the environment variables are marked as REG_EXPAND_SZ under these keys:
Basically there are four categories of Windows versions:
–jeroen
Posted in Development, Power User, Software Development, Windows, Windows 7, Windows 8, Windows 8.1, Windows 9, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Vista | Leave a Comment »
Posted by jpluimers on 2015/07/10
On the friday T-Shirt meme day: Clueless…
SELECT * FROM users WHERE clue > 0
–jeroen
via: ThinkGeek :: SQL query.

0″ class /> SELECT * FROM users WHERE clue > 0
Posted in Fun, Quotes, T-Shirt quotes | 2 Comments »
Posted by jpluimers on 2015/07/09
A (hardly) limited Turbo Pascal Compiler (and large parts of the IDE!) in JavaScript.
Memories from the CP/M era (:
–jeroen
Posted in CP/M, Development, History, Pascal, Software Development, Turbo Pascal, Z80 | Leave a Comment »