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 October, 2018

Raspberry Pi Power Limitations – Raspberry Pi Stack Exchange

Posted by jpluimers on 2018/10/04

There are very many, often contradictory, claims about the power requirements and limitations of the Pi. What are the exact requirements?

has a very elaborate answer at [WayBackRaspberry Pi Power Limitations – Raspberry Pi Stack Exchange covering all non-zero models.

I’ve archived some of the links it points to:

And some links on how to power a Raspberry Pi when you only have a 12V power source:

Read the rest of this entry »

Posted in Development, Hardware Development, Raspberry Pi | Leave a Comment »

Fred Hebert on Twitter : “honest programming books… “

Posted by jpluimers on 2018/10/03

[WayBack] Fred Hebert on Twitter : “honest programming books… “:

  • The CVE Programming Language; ANSI C; Second Edition
  • The Rust Programming Language; The C++ that Feels Like Haskell (this book cannot be borrowed)
  • Librertarian Programming; The Ideology Behind Heartbleed, by a Racist Misogynist Taken Seriously; Revised and Expanded; I don’t think the cops in that video hated anybody. They were just doing their job. And their job included strangling a man to death for having sold untaxed cigarettes.
  • The Go Fuck Yourself Language
  • Continuous Integration; Pushing Retry Until Flaky Test Pass and the Build Succeeds

More images at [WayBack] Thread by @mononcqc: “honest programming books more honest books (including my own) […]”.

  • Please Use my Language; A Beginner’s Guide

  • Again: Please Use my Language

–jeroen

Read the rest of this entry »

Posted in Development, Fun, Quotes, Software Development | Leave a Comment »

On my list to try (about half a year since it appeared): A new mutlti-threading library for Delphi. (darkThreading) – Chapman World

Posted by jpluimers on 2018/10/03

With fresh libraries – like new Delphi and Windows versions – I usually take a pause to see if any major updates have been published to stabalise things.

So about half a year after the release of A new mutlti-threading library for Delphi. (darkThreading) – Chapman World [WayBack], this is a reminder for me to try it.

With the Task Parallel Library still not being up to par, I wonder how DarkThreading compares to the very stable [WayBack] GitHub – gabr42/OmniThreadLibrary: A simple and powerful multithreading library for Delphi.

The source is at [WayBack] GitHub – chapmanworld/darkThreading: Platform agnostic light-locking threading library for Delphi (part of the DarkGlass project).

Note that by now it has moved to [WayBack] DarkGlass/darkLibs/darkThreading at master · chapmanworld/DarkGlass · GitHub (thanks Stefan Glienke for figuring that out)

One comment already: the [WayBack] darkThreading/Building.md at master · chapmanworld/darkThreading · GitHub describes dependencies on the below libraries, but does not use git modules (see [WayBack] Git – git-submodule Documentation) to reference to known stable commits of them:

In the man time, Edwin Yip has reviewed it: [WayBack] Simple Comparison of OmniThreadLibrary and darkThreading (http://chapmanworld.com/2018/05/24/a-new-mutlti-threading-library-for-delphi-darkthreading/) … – Edwin Yip – Google+ after in may he indicated he would look into it at a later stage [WayBack] http://chapmanworld.com/2018/05/24/a-new-mutlti-threading-library-for-delphi-…

–jeroen

Via [WayBackCraig Chapman on Twitter: “My threading library for Delphi (darkThreading) https://t.co/Jo7nVGzsNY”

 

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

Just curious, Is there ever a benefit to not providing a GUID in an interface…

Posted by jpluimers on 2018/10/03

An interesting question [WayBack] Just curious,Is there ever a benefit to not providing a GUID in an interface? – Johan Bontes – Google+

The answer is simple: The benefits are almost none and you loose compiler assisted casting ease.

The interesting bits are the discussion where even Embarcadero isn’t sure what kind of magic the compiler does on generic interfaces.

–jeroen

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

Not just C++: Thoughts on Dealing with Signed/Unsigned Mismatch – IT Hare on Soft.ware

Posted by jpluimers on 2018/10/02

[WayBack] C++: Thoughts on Dealing with Signed/Unsigned Mismatch – IT Hare on Soft.ware.

I have seen things like this happen in way to many places, not just C/C++:

static_assert( -1 < 1U );//fails!

Take away:

Never ever use explicit casts merely to get rid of warnings (whether signed/unsigned or otherwise)

A way to set various C/C++ compilers apart: [WayBack] GitHub – shafik/determine_c_or_cpp: Determine programatically C from C++ as well as various versions

Via: [WayBack] C++: Thoughts on Dealing with Signed/Unsigned Mismatch – IT Hare on Soft.ware: Kevlin Henney – Google+

–jeroen

Posted in C, C++, Conference Topics, Conferences, Delphi, Development, Event, Software Development | Leave a Comment »

aha (Ansi HTML Adapter) with clickable URIs

Posted by jpluimers on 2018/10/02

aha is great to generate HTML from ANSI text (i.e. the coloured output on a Linux console).

But it doesn’t generate clickable URIs (it can’t yet by itself as it only looks one character in the future).

The thread at https://github.com/theZiz/aha/issues/20 suggested a case-insensitive regex through sed but the exact suggestion failed for a few reasons I will explain below.

First the bash alias (requires both aha and perl):


#!/usr/bin/env bash
# based on https://github.com/theZiz/aha/issues/20#event-797466520
aha-with-expanded-http-https-urls()
{
aha | perl -C -Mutf8 -pe 's,([^"])((https?|s?ftp|ftps?|file)://.*?)([\s]|\&quot;\s),$1<a href="$2">$2</a>$4,gi'
}

Read the rest of this entry »

Posted in *nix, *nix-tools, bash, bash, Development, Perl, Power User, RegEx, Scripting, Software Development | Leave a Comment »

Reminder to self that this cleared itself: Delphi fails to start after Windows did some “Program Compatibility Assistant” magic…

Posted by jpluimers on 2018/10/02

This repaired itself; weird: [WayBack] Delphi fails to start after Windows did some “Program Compatibility Assistant” magic to it when BDS.exe crashed because the compiler ran out of memory:… – Jeroen Wiert Pluimers – Google+

–jeroen

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

BMW DIY Poor Radio Reception Repair, AM and FM, E46 3-Series and Other Models | Bavarian Autosport Blog

Posted by jpluimers on 2018/10/01

I need to fix this on my own 320i touring: [WayBackBMW DIY Poor Radio Reception Repair, AM and FM, E46 3-Series and Other Models | Bavarian Autosport Blog.

Basically it’s using DeoxIT on all contacts having to do with the AM/FM antenna signals.

I already have a DeoxIT pen so that should work fine.

For the Touring version, the below picture should help. I got it from [WayBackwww.unofficialbmw.com/images/e46.pdf via [WayBackUnofficial BMW: E46

More links:

–jeroen

Read the rest of this entry »

Posted in cars, E46 320i touring, LifeHacker, Power User | Leave a Comment »

When Windows removes the registry key that solves HighDPI problems for older applications

Posted by jpluimers on 2018/10/01

I write about this registry key before: Applications that scale badely on High-DPI Displays: How to Stop the Madness – via: SQLServerCentral « The Wiert Corner – irregular stream of stuff

It seems that there is a bad Windows habit: [WayBack] I just love it when Windows decides to remove registry entries I’ve added and screws up something I fixed for them. – Roderick Gadellaa – Google+

–jeroen


Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide]
"PreferExternalManifest"=dword:00000001

 

Posted in Power User, Windows, Windows 10 | Leave a Comment »