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

Archive for the ‘Software Development’ Category

When DelphiSpeedup cannot register itself in Delphi on Windows Vista/7/8

Posted by jpluimers on 2014/03/06

Every now and then I need to go back to an old Delphi version, which nowadays means try and get it and all the tools installed on something newer than Windows XP.

When installing on Windows Vista and up (I usually run Windows 7 or 8.1), the DelphiSpeedUp installer barfs with something like this:

---------------------------
Installdelphispeedup105
---------------------------
Cannot register DelphiSpeedUpLoader.bpl.
---------------------------
OK
---------------------------

Andreas Hausladen (@AndyHTech) came to the rescue: Read the rest of this entry »

Posted in Delphi, Delphi 2007, Delphi 7, Development, Software Development | 1 Comment »

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 »

Wat — Destroy All Software Talks

Posted by jpluimers on 2014/03/05

Thanks John Kaster for pointing me to Wat — Destroy All Software Talks | VK by garybernhardt (Gary Bernhardt) / @garybernhardt.

I did a bit more browsing, and found these links too: recommended watching/reading!

–jeroen

Posted in Development, JavaScript/ECMAScript, Ruby, Scripting, Software Development | Leave a Comment »

Brilliant: JSONView (via: Chrome Web Store, there is a FireFox extension too)

Posted by jpluimers on 2014/03/05

Thanks Michael Panzer – Google+! I agree it should be available out of the box.

Brilliant way to view JSON and test for validity.

JSONView

Validate and view JSON documents

JSONView port for Chrome.

Original firefox extension is here: http://benhollis.net/software/jsonview/ Read the rest of this entry »

Posted in Communications Development, Development, Internet protocol suite, JavaScript/ECMAScript, JSON, REST, Scripting, Software Development, TCP | Tagged: , | 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 »

Delphi Predefined Conditionals on iOS: IOS, MACOS, MACOS32, POSIX and POSIX32 (via: Conditional compilation (Delphi) – RAD Studio)

Posted by jpluimers on 2014/03/03

Just a reminder to Self after reading Predefined Conditions in Conditional compilation (Delphi) – RAD Studio.

On iOS, these conditional symbols are defined:

  • IOS
  • MACOS
  • MACOS32
  • POSIX
  • POSIX32

For the (x86 based) iOS simulator, CPU386 and CPUX86 are defined.

For iOS physical devices, CPUARM is defined.

For OS X and the iOS Simulator, ALIGN_STACK is defined as some parameters (including Extended) require to be aligned on 16-byte boundaries. For explanation, see the Mac OS X Stack Alignment article by Eli Boling, as well as PC_MAPPED_EXCEPTIONS and UNDERSCOREIMPORTNAME (sometimes een PIC).

–jeroen

via: Predefined Conditions in Conditional compilation (Delphi) – RAD Studio.

Posted in Delphi, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Development | Leave a Comment »

Delphi types that cannot be used for TypeInfo

Posted by jpluimers on 2014/03/03

When writing the Spring4D unit tests for GetTypeSize to include as many TTypeKind values, I came across a few types that either did not compile, or were not supported by TypeInfo. I listed them below as I could not find them in the documentation.

I included a test named Test_EnsureAllTTypeKindsCoveredByCallsTo_Test_GetTypeSize_ that verifies that all TTypeKind values except tkUnknown are covered. So future extensions of TTypeKind will make the tests fail.

As a side issue, I really wanted to know if tkUnknown could be emitted by the compiler. It can sort of, for instance by defining discontiguous enumerations, but are incompatible with TypeInfo as well.

Types that do not compile at all: Read the rest of this entry »

Posted in Agile, Delphi, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 8, Delphi x64, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Development, DUnit, Software Development, Unit Testing | 2 Comments »

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 »