The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My work

  • My badges

  • Twitter Updates

  • My Flickr Stream

    20140508-Delphi-2007--Project-Options--Cannot-Edit-Application-Title-HelpFile-Icon-Theming

    20140430-Fiddler-Filter-Actions-Button-Run-Filterset-now

    20140424-Windows-7-free-disk-space

    More Photos
  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,358 other followers

Archive for the ‘Software Development’ Category

em, rem, vh, vw, vmin, vmax, ex, ch… Good explainer on various CSS units – via G+

Posted by jpluimers on 2014/11/21

Thanks Ilya Grigorik for sharing this link to 7 CSS Units You Might Not Know About – Tuts+ Web Design Article :

em, rem, vh, vw, vmin, vmax, ex, ch… Good explainer on various CSS units and why and where you’d use them.

Recommended reading.

–jeroen

via: em, rem, vh, vw, vmin, vmax, ex, ch… Good explainer on various CSS units and….

Posted in CSS, Development, Software Development, Web Development | Leave a Comment »

How do I test an interface? Should I even do that? | Software on a String

Posted by jpluimers on 2014/11/20

Please someone add the Software on a String blog to DelphiFeeds (:

Great article on testing implementations of interfaces in a generic way. With examples in NUnit and DUnit.

How do I test an interface? Should I even do that? | Software on a String.

And then Stefan Glienke made a great comment at https://plus.google.com/u/0/+MarjanVenema/posts/Dgb8WADLwXZ making the DUnit implementation even easier:

But even if you go without that extra base class the cool thing is that you don’t need to restrict your classes to be a TInterfacedObject but specify the interface they need to implement (yay, compiletime type safety) and then you can get rid of the Supports call and directly assign the result of the ctor call to the sut variable.

–jeroen

Stefan’s code:

Read the rest of this entry »

Posted in Delphi, Delphi 2007, Delphi 2010, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Delphi XE7, Development, Software Development | Leave a Comment »

Delphi prebuild/prelink/postbuild events

Posted by jpluimers on 2014/11/20

Ever since the Delphi build engine got changed to MS Build in Delphi 2007, many people use Delphi build events. Their order is prebuild, prelink and postbuild (or maybe better spelled pre-build, pre-link and post-build).

Before Delphi 2007, you had to fiddler with project groups and dependencies to fake pre-build and post-build events. For an example see Pre and Post-Build Automation in Delphi.

One of the really good things about these events is that build events appear in the output tab of the messages window.

One of the really bad things is that there is hardly any documentation about the build events.

At least two important things are missing:

  1. How the lines of a build event are actually executed
  2. How parameter expansion works inside build events

Let’s explain these. Read the rest of this entry »

Posted in Delphi, Delphi 2005, Delphi 2006, Delphi 2007, Delphi 2009, Delphi 2010, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Development, FastMM, Software Development | 4 Comments »

Delphi XE, Windows Theming, your DPR and the Project Options in the IDE

Posted by jpluimers on 2014/11/19

A while ago I bumped into a funny problem with Delphi XE.

I moved all the code from the .dpr in a Main unit (the IDE sometimes overwrites part of the DPR).

This normally isn’t a problem, until Delphi re-generates the .RES file. The reason is that this .RES file can contain a manifest which enables Windows theming.

If there is no reference of the Application object in the .DPR, the IDE will remove the Theming manifest from the .RES file, so your application run unthemed.

Three solutions: Read the rest of this entry »

Posted in Delphi, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Development, Software Development | 5 Comments »

Delphi Research list: TXMLDocument binding for OmniXML (via: Stack Overflow)

Posted by jpluimers on 2014/11/18

This should not be difficult to do, just time consuming. So it is on my research list to see how time consuming: build a TXMLDocument binding for OmniXML.

This is to urge less people to try to parse XML by hand like xml – Copy & Copy does not work correctly with stringlist – Stack Overflow.

–jeroen

via: Delphi, OmniXML – XML binding? – Stack Overflow.

Posted in Delphi, Delphi XE4, Delphi XE5, Development, Software Development, XML/XSD | 9 Comments »

 
Follow

Get every new post delivered to your Inbox.

Join 1,358 other followers

%d bloggers like this: