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 ‘.NET’ Category

.NET: case insensitive string replace without using RegEx (via: Stack Overflow)

Posted by jpluimers on 2014/12/16

Two ways to do a case insensitive string replace without using RegEx (which often is not a solution).

Thanks User Tim Schmelter for pointing me at those.

–jeroen

via: Is there a case insensitive string replace in .Net without using Regex? – Stack Overflow.

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, Development, Software Development, VB.NET, VB.NET 10.0, VB.NET 11.0, VB.NET 7.0, VB.NET 7.1, VB.NET 8.0, VB.NET 9.0 | 2 Comments »

Clean Coder Blog: The Obligation of the Programmer.

Posted by jpluimers on 2014/12/15

Reminder to all developers: the Obligation of the Programmer on Clean Coder Blog.

By Uncle Bob, exactly a month ago.

–jeroen

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

Excessive CPU usage in WheaAttemptPhysicalPageOffline when using Intel HD graphics – via Intel Communities

Posted by jpluimers on 2014/12/12

I had some excessive CPU usage (30% on a 4-core system) inside WheaAttemptPhysicalPageOffline when using an Intel HD graphics 2500 GPU.

At first I thought I needed to convince IT to update the drivers: Intel HD graphics causing high CPU utilization | Intel Communities.

Then I closed all Visual Studio 2013 instances and the CPU usage went to normal.

So I’m suspecting a WPF issue somewhere.

–jeroen

Posted in Development, Power User, Software Development, Visual Studio 2013, Visual Studio and tools, Windows, Windows 7 | Tagged: , , , , | Leave a Comment »

.NET/C#: some starting posts on the `async` and `await` keywords

Posted by jpluimers on 2014/12/02

Last year’s summer, I posted some .NET/C#: some starting posts on the yield keyword and mentioned that async and await might be the most complicated compiler transform.

So here are some posts to learn more about async and await: Read the rest of this entry »

Posted in .NET, .NET 4.0, .NET 4.5, C#, C# 5.0, Development, Jon Skeet, Software Development | 1 Comment »

Danny Thorpe active on various Bitcoin reposiories – via: Best C# Article of October 2014 Nicolas Dorier – NBitcoin : Build Them All…

Posted by jpluimers on 2014/12/01

Via Best C# Article of October 2014 Nicolas Dorier – NBitcoin I learned that dthorpe (yes, that is indeed Danny Thorpe many people know him from the Delphi, C# and Google world) is active as Contributors to NicolasDorier/NBitcoin and on quite some Bitcoin related repositories.

When we met last summer, he was visiting the Bitcoin 2014 conference in Amsterdam. It is really good to see his activity, and I really hope his Opex.io venture (see his LinkedIn profile) will take off, as his ideas are sound.

–jeroen

Posted in .NET, Bitcoin, C#, Cryptocurrency, Delphi, Development, History, Power User, Software Development, Windows Azure | 3 Comments »

Short video: What’s New In C# 6.0 | Connect; Microsoft Visual Studio vNext & Azure | Channel 9

Posted by jpluimers on 2014/11/27

7 minutes of very interesting video: clear explanation of What’s New In C# 6.0 | Connect; Microsoft Visual Studio vNext & Azure | Channel 9.

jeroen

Posted in .NET, .NET 4.0, .NET 4.5, C#, C# 6 (Roslyn), Development, Software Development | 1 Comment »

Windows software developers – High DPI awareness: the developer Y2K (or is it EUR introduction) of our time.

Posted by jpluimers on 2014/11/05

An interesting statement by Steve Maughan:

Looking at how many High DPI awareness or lack of is the developers Y2K of our time.

Looking at the trouble Windows and Windows applications in general have with High DPI (more in general: resolution independence). I think it rates even higher: as the EUR introduction problem of our time.

What do you think?

–jeroen

via High DPI awareness is must have feature for XE8. Not only for Delphi IDE, but….

Posted in .NET, C++, Delphi, Development, Software Development, WPF | 12 Comments »

Delphi, C#, VB.NET and SQL all have escapes to use reserved words as identifiers

Posted by jpluimers on 2014/11/04

Normally you would not want to use a reserved word as an identifier. But sometimes it can be very convenient, for instance for a code generator that wraps remoting calls or does ORM.

Both Delphi and C# have an escape for this:

The prefixes are to tell the compiler knows you really know what you are doing, and are using a reserved word as an identifier.

The cool thing: in the Run Time Type Information (Delphi) or Reflection (C# and VB.NET) you will see the names without the prefix.

Some examples from StackOverflow: Read the rest of this entry »

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, Conference Topics, Conferences, Delphi, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 8, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Delphi XE7, Development, Event, Jon Skeet, Software Development, VB.NET, VB.NET 10.0, VB.NET 11.0, VB.NET 7.0, VB.NET 7.1, VB.NET 8.0, VB.NET 9.0 | Leave a Comment »

Dark Patterns – User Interfaces Designed to Trick People

Posted by jpluimers on 2014/10/30

Interesting:

A Dark Pattern is a type of user interface that appears to have been carefully crafted to trick users into doing things, such as buying insurance with their purchase or signing up for recurring bills.

We developers have a big responsibility. Martin Fowler and Erik Dörnenburg (both ThoughtWorks) did a great presentation about that at the GOTO Aarhus 2014 Conference.

A quote:

“The developer who wrote that code is every bit as responsible as the person who told them to do it. You have a choice. You have a responsibility to ensure that your users are well treated and to reject dark patterns,” says Fowler. “We have a whole profession of people writing software and doing enormous things to change the way we live in the world.”

Please watch the video: Our Responsibility to Defeat Mass Surveillance – Erik Dörnenburg and Martin Fowler – YouTube.

–jeroen

via

Posted in .NET, Delphi, Development, Software Development, Usability, User Experience (ux) | 3 Comments »

Delphi hinting directives: deprecated, experimental, library and platform

Posted by jpluimers on 2014/10/01

I’ve been experimenting with the Delphi hinting directives lately to make it easier to migrate some libraries to newer versions of Delphi and newer platforms.

Hinting directives (deprecated, experimental, library and platform) were – like the $MESSAGE directive – added to Delphi 6.

Up to Delphi 5 you didn’t have any means to declare code obsolete. You had to find clever ways around it.

Warnings for hinting directives

When referring to identifiers marked with a hinting directive, you can get various warning messages that depend on the kind of identifier: unit, or other symbol. Read the rest of this entry »

Posted in Apple Pascal, Borland Pascal, DEC Pascal, Delphi, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi 6, Delphi 7, Delphi 8, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Development, Encoding, FreePascal, ISO-8859, ISO8859, Java, Lazarus, MQ Message Queueing/Queuing, QC, Reflection, Software Development, Sybase, Unicode, UTF-8, UTF8 | 2 Comments »