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,861 other subscribers

Archive for the ‘.NET’ Category

TLDRLegal – Software Licenses Explained in Plain English

Posted by jpluimers on 2014/03/09

Ilya Grigorik – Google+ (from Google) shared a link to tldrlegal.com/: TLDRLegal – Software Licenses Explained in Plain English.

Very convenient to have all these licenses in one central places, bot for developers and consumers of software.

He also found why on certain devices (for instance Android Nexus 4) you get a security warning when viewing that site:

the www is missing from the certificate, so http://www.tldrlegal.com is not included in it: Qualys SSL Labs – Projects / SSL Server Test / tldrlegal.com.

For those devices apparentlyhttps://tldrlegal.com redirects to https://www.tldrlegal.com giving the security warning.

On most desktop browsers, you see https://tldrlegal.com perfectly fine.

 –jeroen

via:

(I tagged this post with .NET and Delphi because that’s what I used most for Software Development, of course it applies to any kind of software development).

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

UINavigationController video when using Oxygene or Hydrogene Remobjects C# (via: remobjects)

Posted by jpluimers on 2014/03/07

Nice video when using either of the RemObjects Elements (Oxygene or Hydrogene): for creating a UI UINavigationController – remobjects.

–jeroen

Posted in .NET, C#, C# 1.0, C# 2.0, C# 3.0, C# 4.0, C# 5.0, Development, Oxygene, Pascal, RemObjects C#, Software Development | Leave a Comment »

Choose your chart type & Amount of profanity in git commit messages per programming language (via: andrewvos.com)

Posted by jpluimers on 2014/03/07

Funny charts at andrewvos.com – Amount of profanity in git commit messages per programming language.

The source is online too: AndrewVos/github-statistics.

And it led me to this really nice way of choosing your chart type.

Click to enlargeRead the rest of this entry »

Posted in .NET, C#, C++, Development, Java, JavaScript/ECMAScript, Perl, PHP, Ruby, Scripting, Software Development, Web Development | 2 Comments »

Not only only important in Windows PowerShell: “Whitespace, Please” (via: TechNet Magazine)

Posted by jpluimers on 2014/03/06

In this series of PowerShell postings, the below quote by Don Jones from Concentrated Technology is a must:

Proper formatting, including a little whitespace here and there, can make your Windows PowerShell commands a heck of a lot easier to understand.

But please don’t limit this to PowerShell code.

I see too many code at clients, even at conferences and magazine articles that are badly formatted.

Even more important: when you ask or provide for help on a forum or community site: please properly format your code examples. That makes it much easier for your audience (often yourself) to grasp the meaning.

For PowerShell: note that most syntactic elements provide for a very natural line continuation (so you can write really readable code), except for CmdLets, so often you will see { at the end of a line to make the most readable code.

–jeroen

via: Windows PowerShell: Whitespace, Please | TechNet Magazine.

Posted in .NET, Delphi, Development, PowerShell, Scripting, Software Development | Leave a Comment »

PowerShell: Do not take a shortcut while testing NULL values.

Posted by jpluimers on 2014/03/05

A while ago I found a blog post explaining how to shortcut testing NULL values with PowerShell.

Do not do that!

I agree with the quote on the blog:

One thing you may not forget is that Powershell is a lot more friendly for NULL values than C#, so don’t forget to check your objects for NULL values. In Powershell this is very clean and easy to do.

But it is also easy to get wrong:

To see if a variable is null, simply check:

If (!$Variable) {some action}

Conversely, to verify if the variable has any value:

If ($Variable) {some action}

Just a few examples. Now quess the outcome for all of them.

$a=$null;  if ($a) {"'$a' has VALUE"} else {"'$a' is NULL"}
$a=$false; if ($a) {"'$a' has VALUE"} else {"'$a' is NULL"}
$a=0;      if ($a) {"'$a' has VALUE"} else {"'$a' is NULL"}
$a='';     if ($a) {"'$a' has VALUE"} else {"'$a' is NULL"}
$a="";     if ($a) {"'$a' has VALUE"} else {"'$a' is NULL"}
$a=1;      if ($a) {"'$a' has VALUE"} else {"'$a' is NULL"}

Now take an educated guess on the outcome. Read the rest of this entry »

Posted in .NET, CommandLine, Development, PowerShell, Software Development | Leave a Comment »

One of the niceses PowerShell 3.0 new features: Simpler Where Filter Syntax

Posted by jpluimers on 2014/03/04

You can check out which PowerShell you have by executing the $Host.Version or $PSVersionTable.PSVersion on a line. You can even switch versions by applying the PowerShell -version switch on the command-line and they will both change.

One of the great features of the new PowerShell 3.0 features (besides New and Improved PowerShell 3.0 Cmdlets) is a simplified Where Filter Syntax.

So: this is how I get the PowerShell version information the easy way from a command prompt:

PowerShell $PSVersionTable.PSVersion

–jeroen

via:

Posted in .NET, CommandLine, Development, PowerShell, Software Development | Leave a Comment »

RemObjects Hydrogene got released March 1st, 2014 (via: Get Started with iOS Development using RemObject C#)

Posted by jpluimers on 2014/03/02

The estimate was that the Hydrogene bete would become public beta on March 1st 2014.

Well, Marc Hoffman did an even better announcement yesterday:

When, you are asking, is RemObjects C# going to be out? It’s out as of right now!Visit http://www.remobjects.com/cs for details, trial download, and (of course) to purchase. Let us know what you think!

BTW: Most of my guessed URLs were right (:

–jeroen

via: Get Started with iOS Development using RemObject C# | RemObjects Software « The Wiert Corner – irregular stream of stuff.

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

Get Started with iOS Development using RemObject C# | RemObjects Software

Posted by jpluimers on 2014/02/28

Wow, just wow for this teaser:

This page provides a few videos to help you get started with RemObjects C# for iOS development.

and this:

This page provides a few videos to help you get started with RemObjects C# for Android (and Java) development.

It is about Hydrogene, a.k.a. RemObjects C#, which – like Oxygene – also adds a few extensions to the C# language, just like Jolyon speculated december last year.

It wil be in beta tomorrow (:

Summary of tools used for iOS:

Summary of tools used for Android:

Summary of tools used for iOS and Android

I’m gussing here, as the URL is not yet live, but from March 1st (tomorrow!) you should be able to download a beta of Hydrogene/RemObjects C# from http://www.remobjects.com/elements/hydrogene (Just like Oxygene is available from http://www.remobjects.com/elements/oxygene/).

.  .

–jeroen

via:

Posted in .NET, C#, Development, Software Development, Visual Studio and tools | Tagged: , , , , | 1 Comment »

.NET 4.5 versus 4.0 and C# 5 versus C# 4, or the funny way how StackOverflow closes good answers

Posted by jpluimers on 2014/02/27

I’m more and more amazed (actually I’m not, this is how life on forum-like communities when moderatorss take over) about which StackOverflow questsions get closed, and which ones stay alive.

It seems the best way is to ask longer questions way beyond what most moderatorss can grasp.

Closed:

Still open:

A great point in the comments of the first question is that

you can technically can write .NET 4.0 / C# 4 applications on a .NET 4.5 / C#5 equiped machine and deploy them on machines that only have .NET 4.0 and C# support.

Don’t. I learned that in the .NET 3.0/3.5 and C# 3.0/2.0 era that combining is bad as the version matrix allows for subtle combinations that are hard to test.

.NET 3.0 with C# 2.0 applications written on a system that had .NET 3.5 and C# 3.0 installed would occasionally fail on systems that only had .NET 3.0 and C# 2.0 installed.

–jeroen

Posted in .NET, .NET 4.0, .NET 4.5, C#, C# 4.0, C# 5.0, Development, Software Development | Tagged: | Leave a Comment »

PowerShell – Special Characters And Tokens (via: Welcome to Neolisk’s Tech Blog)

Posted by jpluimers on 2014/02/27

This and next week, a few PowerShell posts appear on my blog.

Victor Zakharov, also known as Neolisk collected all the Special Characters and Tokens used in PowerShell on one page (they are scattered around the PowerShell documentation if documented at all).

The page is so immensely useful when learning PowerShell that I’m really glad I found it.

It is even better than Less Than Dot – Blog – A Cheat Sheet for All the *{_(%#$] PowerShell Punctuation.

–jeroen

via: PowerShell – Special Characters And Tokens – Welcome to Neolisk’s Tech Blog.

Posted in .NET, Development, PowerShell, Scripting, Software Development | Leave a Comment »