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

Archive for July, 2018

Delphi – directives are not conditionals

Posted by jpluimers on 2018/07/03

Directives are commands to the compiler such as {$D+} or {$WARN xxxx OFF}. Compiler defined conditionals are not “directives”, rather they’re used for conditional directives {$IF Defined(xxxx)} or {$IFDEF xxxx}, where xxxx can be NEXTGEN – Allen Bauer

It’s important to describe features right so everyone understands what you mean.

And note that you should end all your IFDEF with IFEND to stay compatible with the broadest set of Delphi versions possible.

–jeroen

Source: [WayBackdelphi – What is the use of NEXTGEN compiler conditional? – Stack Overflow

PS: Note the comment below by Remy Lebeau:

Note, in Delphi XE3 and later, you might also need to use {$LEGACYIFEND ON}  (http://docwiki.embarcadero.com/RADStudio/en/Legacy_IFEND_(Delphi)) in order to use {$IFEND} correctly, particularly if you have nested {$IF} and {$IF(N)DEF} blocks in your code.

A quick search for “LEGACYIFEND” “Delphi” “XE3” revealed this directive was indeed introduced in Delphi XE3, but not documented until XE4:

Brian Long documents how to get around the limitation that Remy commented about:

{$ifdef CONDITIONALEXPRESSIONS}
  {$if CompilerVersion >= 24.0}
    {$LEGACYIFEND ON}
  {$ifend}
{$endif}

It is in fact at the top of [WayBack] indy/IdCompilerDefines.inc at master · graemeg/indy · GitHub, which reminds me that there is now a git mirror of Indy at GitHub:

[WayBack] GitHub – graemeg/indy: Indy (Internet Direct) framework. This is an unofficial mirror repository which gets synced every 15 minutes. It contains the full history from the official Indy 10 SVN repository.

–jeroen

Posted in Delphi, Development, Software Development | 2 Comments »

Apple Extends Free Repairs of Anti-Reflective Coating on Select MacBook and MacBook Pro Models – Mac Rumors

Posted by jpluimers on 2018/07/02

I hear stories of people having their replacement screens stain as well, some of them get a renewed free repair. [WayBackApple Extends Free Repairs of Anti-Reflective Coating on Select MacBook and MacBook Pro Models – Mac Rumors.

Affected models for an initial repair:

  • MacBook Pro (13-inch, Early 2013)
  • MacBook Pro (15-inch, Early 2013)
  • MacBook Pro (13-inch, Late 2013)
  • MacBook Pro (15-inch, Late 2013)
  • MacBook Pro (13-inch, Mid 2014)
  • MacBook Pro (15-inch, Mid 2014)
  • MacBook Pro (13-inch, Early 2015)
  • MacBook Pro (15-inch, Mid 2015)
  • MacBook Pro (13-inch, 2016)
  • MacBook Pro (15-inch, 2016)
  • MacBook Pro (13-inch, 2017)
  • MacBook Pro (15-inch, 2017)
  • MacBook (12-inch, Early 2015)
  • MacBook (12-inch, Early 2016)
  • MacBook (12-inch, Early 2017)

–jeroen

Read the rest of this entry »

Posted in Apple, Mac, MacBook, MacBook Retina, MacBook-Pro, Power User | Leave a Comment »

Just in case I move away from Mikrotik

Posted by jpluimers on 2018/07/02

Mikrotik has great hardware, great firmware (if you have the right builds), but notoriously bad documentation and a not so great software release and testing process.

So I might consider switching away, so here are some threats that might lead to alternatives:

–jeroen

Vincent Parret commented at https://plus.google.com/+JeroenPluimers/posts/UWZiufmkdK1

 

I use ubnt edgerouters, great bang for buck. My ER Pro-8 has been up for 8 months (no reboots) and hasn’t missed a beat, rock solid ipsec vpn. I looked at microtik, but found the edgerouters slightly easier to configure.

Posted in Internet, MikroTik, Power User, routers | Leave a Comment »

Acer B326HK – not finding a signal when the linux host wakes up out of sleep

Posted by jpluimers on 2018/07/02

Problem:

6 unlabeled buttons: I can not force the input to display port and monitor is searching other ports when host is sleeping. Getting no output when I wake up the host. 😞

Btw, this is for an Acer B326HK monitor. Other than issues with the UI, seems like a decent 4k monitor.

Solution:

my mistake was to use Display Port (Choice was DP or DVI) and the workaround is to disable power state changes on Display Port with something like “xset -dpms

Source: [WayBackThis could have been an April fool’s joke: telepathic monitor controls… – Grant Grundler – Google+

–jeroen

Posted in *nix, Power User | Leave a Comment »