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

Archive for the ‘Delphi’ Category

Ask yourself: “are you writing a framework now?” – How (not) to write Factorial

Posted by jpluimers on 2011/03/01

On the Development Choas Theory blog, I bumped into a brilliant blog post titled How (not) to write Factorial in Java.

It is not about Java, or any other programming language, platform or library for that matter.

It equally applies to your favourite programming language and framework (be it shell scripts, assembler, .NET, Delphi, haskell, PHP, ruby, Eiffel, Java or any other).

It is about the question that Neal Ford taught me quite a while ago that you should ask yourself several times a day:
“Am I writing a framework now?”

Developing software is about only developing the things you really need to.

Framework development is in a totally different league than developing ‘just’ software.
It requires even more thought, attention, testing, etc.
And after that, you need to support it on a different level too.

Frameworks are far more costly than you would guess at first sight…

So only develop a framework  for something (*) if you observe that it is actually used in a lot of places and requires a framework.

(*) insert what you are currently working on here.

–jeroen

Via:  Development Chaos Theory » Blog Archive » How (not) to write Factorial in Java

Posted in .NET, C#, Delphi, Development, Software Development | 6 Comments »

Delphi friend in NZ seeks work (preferably remotely)

Posted by jpluimers on 2011/02/25

A seasoned Delphi developer friend in NZ (near Christchurch) seeks work, preferably if he can work remotely.

Please drop me an email to get more information.

–jeroen

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

Supporting Office 2003 from .NET: getting the Office 2003 Primary Interop Assemblies

Posted by jpluimers on 2011/02/22

Often you work with projects not having the latest stuff.
Sometimes that is a good thing: latest stuff is not always best :-)

In this case, the client had Office 2003, and needed to do some Excel automation from .NET.
The development systems however had Office 2007 on it, so importing Excel defaults to the Office 2007 Primary Interop Assembly: Office version 12 in stead of 11. Read the rest of this entry »

Posted in .NET, C#, C# 2.0, C# 3.0, C# 4.0, Delphi, Development, Prism, Software Development, Visual Studio 2005, Visual Studio 2008, Visual Studio 2010, Visual Studio and tools | Leave a Comment »

Verifying if two hosts are on the same IPv4 network

Posted by jpluimers on 2011/02/17

Recently, I wrote a bunch of code both in C# and Delphi to verify if two hosts are on the same IPv4 network.

Even though the public IPv4 address space is exhausted (IANA recently allocated the final two IPv4 blocks of their primary pool to APNIC, then allocated the five remaning /8 IPv4 blocks to the RIRs, thereby depleting the IPv4 pool), they are still used a lot, especially in private networks.

Over the next couple of weeks, you will see a couple of blog posts explaining:

  • how to get the IPv4 addresses and network masks of network interfaces in your computer
  • how to convert those to and from strings
  • how to convert a host-name to a list of IP addresses
  • how to lookup the current host-name
  • how network masks are related to counting leading/trailing ones and zeros
  • how to compare two IPv4 addresses given they have the same network masks

Those blog posts will have sample code in both Delphi and C#. And there will be unit tests to verify the underlying code.

–jeroen

Posted in .NET, C#, C# 2.0, C# 3.0, C# 4.0, Delphi, Development, Software Development | 2 Comments »

The #reflector licensing debacle: ILSpy

Posted by jpluimers on 2011/02/11

I updated my first .NET Reflector post with yet another alternative:

  • ILSpy from the SharpDevelop community (with Wiki)

–jeroen

via The #reflector licensing debacle « The Wiert Corner – irregular stream of Wiert stuff.

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

Stack Overflow ebooks

Posted by jpluimers on 2011/02/10

Greg Hewgill published a bunch Stack Overflow ebooks and StackExchange stats.
His readme explains a bit more on the books.
The blog he maintains makes up for some nice reading too.
Be sure to read the blog entry on the ebooks.

–jeroen

via Stack Overflow ebooks.

Posted in *nix, .NET, ASP.NET, C#, C# 2.0, C# 3.0, C# 4.0, Database Development, Delphi, Delphi for PHP, Development, HTML, HTML5, Java, Pingback, Power User, RegEx, Scripting, SocialMedia, Software Development, SQL, SQL Server, Stackoverflow, XML/XSD | Leave a Comment »

Beyond Compare 3.2.4.13298 – Changelog – Softpedia

Posted by jpluimers on 2011/02/08

My favourite text comparison tool just got updated on February 7th, 2011.

What’s new in Beyond Compare 3.2.4.13298:

  • “Select All” and “Insert” are now available in line details but affect main display.
  • Fixed copying to the clipboard including gaps as blank lines.
  • “Paste” is now available even if no rows are visible.
  • “Edit” is no longer enabled if no rows are visible.

and more…

–jeroen

via Beyond Compare 3.2.4.13298 – Changelog – Softpedia.

Posted in Delphi, Development, Power User, Software Development | Leave a Comment »

GExperts 1.34 (Stable Release) was released on January 5, 2011.

Posted by jpluimers on 2011/02/08

I totally forgot to post this earlier this year, so here it goes:

GExperts 1.34 (Stable Release) was released on January 5, 2011.
It supports Delphi 6 to Delphi XE.

You can download it here.

From the Change Log in Readme.txt:

  • General: Added support for RAD Studio XE. Minor bugfixes and updates to the help files. (Erik)
  • Set FocusControl: Add tool to assign focus control of labels by selecting the related label and wincontrol or a group of wincontrols, and the tool tries to guess the label to associate with each control. (Daniel Maltarollo and Erik)
  • Grep: Allow excluding any number of directories from a search.
  • Grep: Always center the match line in the Grep Result context pane.
  • Components to Code: Optionally generate code to free all created components (Peter Dzomlija).
  • Hide/Show Non-Visual Components: Added support for TFrame designers (Erik).

–jeroen

via Download GExperts.

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

All-In-One Code Framework, your one stop shop for Windows code samples, examples and guidelines | Coding4Fun Blog | Channel 9

Posted by jpluimers on 2011/02/07

The All-In-One Code Framework is a valuable asset for your tool box for any Windows development environment.

–jeroen

via: All-In-One Code Framework, your one stop shop for Windows code samples, examples and guidelines | Coding4Fun Blog | Channel 9.

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

The #reflector licensing debacle

Posted by jpluimers on 2011/02/06

Earlier this week, Red Gate announced that the new Reflector version 7 would cost USD 35, as of March 2011, and the current free version 6.6 will expire on May 30th, 2011.

That caused a lot of stir, on their forum, twitter, reddit and a lot of other places. Even an old thread at StackOverflow got a new boost. It seems Red Gate did not read Social media judo: How to turn a fight into a brand-building moment.

Here is a summary of the past, present and future of things happening around reflector, including some workarounds and alternative products.

First a bit of history.

Lutz Roeder over the years developed .NET Reflector as a free tool. A few hightlights: Read the rest of this entry »

Posted in .NET, C#, Delphi, Development, Prism, Software Development | 4 Comments »