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

Friends+Me Google+ Exporter Support

Posted by jpluimers on 2019/04/02

https://www.reddit.com/r/FMGE_Support/

Posted in Uncategorized | Leave a Comment »

Some links on DUnit, JUnit and NUnit XSD specifications of their XML formats (JUnit is actually Ant XML)

Posted by jpluimers on 2019/04/02

For my link archive:

–jeroen

Posted in Agile, Development, Software Development, Unit Testing | Leave a Comment »

architecture – How much is too much Dependency Injection? – Software Engineering Stack Exchange

Posted by jpluimers on 2019/04/02

Mark Seeman posted a great answer with insights into how to architect applications: [WayBack] architecture – How much is too much Dependency Injection? – Software Engineering Stack Exchange

Some topics covered:

  • small code bases
  • pure DI over DI container
  • cases for both coarse and fine-grained DI
  • favour functional programming over OOP
  • both functional and DI ports and adapters

It links to a ton of other good reads for a quiet long weekend as well:

–jeroen

via:Β [WayBack] Favour Pure DI – Linas Naginionis – Google+

Posted in Design Patterns, Development, Software Development | Leave a Comment »

Interface methods are not assignment compatible with method references or methods of object.

Posted by jpluimers on 2019/04/02

Boy I wish that QC was still up and QualityPortal was publicly indexable as that would have saved me quite a bit of time tracking this down. Luckily I got help from Stefan Glienke (who maintains the awesome Spring4D library based on modern Delphi compiler support) when I mentioned

How good are you with reference to function?
I’ve an odd compiler thing throwing errors when using interfaces but not with classes.

So, for posterity:

Unlike C#, in Delphi interface methods are not compatible with method references or methods of object.

This has many manifestations, which means you can get a variety of compiler errors. I’ve listed the ones I could find below, but presume there are more and if I find more will update this post.

These are the errors you can get:

  • E2010 Incompatible types: ‘T’ and ‘Procedure’
  • E2035 Not enough actual parameters
  • E2250 There is no overloaded version of ‘FirstOrDefault’ that can be called with these arguments

These are the (now defunct, but used to be publicly accessible) QC and QualityPortal (needs sign on) entries (thanks Stefan Glienke and Blaise Thorn for reporting these):

The really frustrating part is that the RSP is marked as “new feature” whereas clearly it isn’t, so it probably never will be fixed.

A workaround for now is to wrap the interface method references with:

  • either anonymous methods (when you have just a few classes to cover, but maybe more than a few methods on the interface)
  • or instance methods on a class (when there are many classes to cover and preferably few methods on the interface)

Examples are in the code below that also shows this works fine and dandy in C#.

–jeroen

Read the rest of this entry »

Posted in Delphi, Delphi 10 Seattle, Delphi 10.1 Berlin (BigBen), Delphi 10.2 Tokyo (Godzilla), Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Delphi XE7, Delphi XE8, Development, Software Development, Spring4D | Leave a Comment »

Google Local Guides Nederland after G+

Posted by jpluimers on 2019/04/02

For my information archive as G+ died:

From the (unarchived, but disappeared)Β Is er al iemand een slack kanaal gestart waar we als localguides heen kunnen?

Read the rest of this entry »

Posted in Google, GoogleMaps, Local Guides, Power User | Leave a Comment »

Requirements to write multi threaded code

Posted by jpluimers on 2019/04/01

Steps:

  1. get gist.github.com – Developers must be this tall to write multi threaded code
  2. render to PNG/PDF/HTML
  3. print
  4. attach to wall

Via [WayBack] Kristian KΓΆhntopp – Google+

Related:

Bernd Paysan’s:

The three most 2. common race
1. off-by-one software conditions
errors:
counting
core dumped (Segmentation fault in printf)

–jeroen

Read the rest of this entry »

Posted in Development, Fun, Multi-Threading / Concurrency, Software Development | Leave a Comment »

CV installaties optimaliseren en inregelen

Posted by jpluimers on 2019/04/01

Een aantal interessante linkjes:

–jeroen

Posted in LifeHacker, Power User | Leave a Comment »

debugging – Find what javascript changes the DOM? – Stack Overflow

Posted by jpluimers on 2019/04/01

I know I’m going to need this one day: [WayBack]Β debugging – Find what javascript changes the DOM? – Stack Overflow

Via:Β [WayBack] Javascript “Why”: Wenn ich eine fertig geladene Webseite sehe und wissen mΓΆchte, warum “dieses Element da” (Bild, Script, div) geladen worden ist, wie… – Kristian KΓΆhntopp – Google+

–jeroen

Posted in Chrome, Development, JavaScript/ECMAScript, Power User, Scripting, Software Development, Web Browsers, Web Development | Leave a Comment »

Geek Prank πŸ˜ˆπŸ˜‚πŸ˜œ Windows XP Desktop Prank

Posted by jpluimers on 2019/04/01

Prank your friends by secretly opening this website on their computer while they’re away. Wait for them to return and watch their reaction

[WayBack] Geek Prank πŸ˜ˆπŸ˜‚πŸ˜œ Windows XP Desktop Prank

There are others too, for instance:

Via:Β [WayBack] geekprank.com Simulate Windows XP, Windows 7, Windows 10 and other annoyances in the browser (and switch it to full screen). – Thomas Mueller (dummzeuch) – Google+

Edit 20250730: per comments below there is also [Wayback/Archive] Windows XP – Full Screen || Geek Pranks which has two other pranks as well:

  1. [Wayback/Archive] Hacker Typer Online | GeekPrank
  2. [Wayback/Archive] Fake Broken Screen Prank || Geek Prank (these images are too low a resolution to be usable)

--jeroen

Posted in Apri1st, Fun, Prank | 3 Comments »

Sending SMS from your PC using a web browser through your Android Phone

Posted by jpluimers on 2019/03/29

I have been a long-time PushBullet user, but I bumped into an alternative if you just want to send SMS from a PC using a web browser through your Android Phone.

You will miss out all the other neat PushBullet features (like clipboard support), but it does work:

There is even a Mac warpper for it:

–jeroen

Posted in Android Devices, Power User | Leave a Comment »