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

LEGO Macintosh classic with Wi-Fi and e‑paper display running docker

Posted by jpluimers on 2018/07/06

A Wi-Fi enabled 1990 Macintosh Classic built with LEGO, powered by a Raspberry Pi Zero running docker and a 2.7″ e-paper display by EmbeddedArtists.

Cool stuff!

Source: [Archive.isLEGO Macintosh classic with Wi-Fi and e‑paper display running docker

Via: [WayBack] This guy built a (kind of) working Lego Macintosh, and now you can too … | 9to5Mac

This should run well with a Classic Color Macintosh System 7 emulated on Raspberry Pi: [WayBack] On this tutorial I show you how to run Mac II OS color on your Raspberry PI, I have also included a compiled version for Windows. Running Mac OS 7 on Raspberry Pi with Color – Novaspirit

via:

ROM images: [WayBackIndex of /pub/software/ROM/Macintosh 68K

–jeroen

Read the rest of this entry »

Posted in Apple, Classic Macintosh, Development, Hardware Development, History, Macintosh SE/30, Power User, Raspberry Pi | Leave a Comment »

Raspberry Pi zero W notes

Posted by jpluimers on 2018/07/06

Launch dates:

Now you only need a memory card and a camera module to make a nice “CCTV” system with plenty of choice. More details here:

Depending on what and when you record video, you might want to consider an IR capable camera. In Raspberry Pi land, they call them NOIR (which stands for No IR, meaning they leave out the IR filter which means they can record IR).

–jeroen

Read the rest of this entry »

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

listview – TListView detecting ESC or unchanged editing – Stack Overflow

Posted by jpluimers on 2018/07/05

Delphi translation by Thomas Mueller of a C++ Builder fix [WayBack] listview – TListView detecting ESC or unchanged editing – Stack Overflow

Via [WayBack] TListView detecting ESC or unchanged editing – Thomas Mueller (dummzeuch) – Google+

–jeroen

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

You can use Linux API calls directly from Delphi 10.2 and up

Posted by jpluimers on 2018/07/05

Paul TOTH figured this out:

you can use any Linux API but it’s not trivial.

  1. you have to install the “dev” library under Llinux, like “apt-get install xxx-dev” for the xxx API
  2. you have to update the Linux DSK in Delphi
  3. you can declare the API as externals function as usual
  4. now you can compile and deploy the application.

If you miss the steps 1 or 2 you’ll have a linker error.

Source: [WayBackDear… Delphi 10.2 Tokyo, can i use linux api directly? like ‘fcntl(….)’.

And there is this great blog post that I found later by [WayBack] Allen Drennan: [WayBackImporting third-party Linux libraries on Delphi 10.2 Tokyo – grijjy blog

–jeroen

Posted in Delphi, Delphi 10.2 Tokyo (Godzilla), Development, Software Development | Leave a Comment »

I totally forgot that Delphi has had a function to get the current executing thread – Stack Overflow

Posted by jpluimers on 2018/07/05

While updating some old code fiddling with the[WayBackGetThreadId function, I wanted to have some TThread wrapper around it. I had totally forgotten there has been already a means for this since Delphi 2009 (which initially had a bug, but that was worked around at first and fixed later): [WayBackCurrentThread.

The latest version of Delphi, Delphi 2009, has a CurrentThread class property on the TThread class.

This will return the proper Delphi thread object if it’s a native thread. If the thread is an “alien” thread, i.e. created using some other mechanism or on a callback from a third party thread, then it will create a wrapper thread around the thread handle.

20081001 at 5:00 – [WayBackBarry Kelly

Sources

–jeroen

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

Visual Studio – Add File As Link

Posted by jpluimers on 2018/07/04

Since I forget where they hid the [WayBack] Visual Studio – Add File As Link feature, two images from the linked post:

  1. The icon in the link is different from the normal file:
  2. Adding as a link is  not a separate menu item, but a modification of the file open dialog overlaying the default Add button with two more options: Add; Add as Link (note Show Previous Versions is a feature of non-Home version of Windows Vista and up).
    Do not double click the file name, as that will add (AND COPY TO THE CURRENT PROJECT DIRECTORY !!!1!!!) that file to your current project.

A step by step instruction is at [WayBack] c# – Add File as a Link on Visual Studio – Debug vs Publish – Stack Overflow.

–jeroen

Posted in .NET, Development, Software Development, Visual Studio and tools | Leave a Comment »

Cool 10-thousand piece domino bricks based computer that can add numbers

Posted by jpluimers on 2018/07/04

Very cool video based on these logic gates made from domino bricks:

The 4-bit calculator worked.

The 5-bit was set-up failed in part. That conclusion is at around 19:00.

A post mortem is at around 20:00: the machine was setup sizing it too small so the timing was too tight and didn’t work out.

–jeroen

Read the rest of this entry »

Posted in Development, Hardware Development, History | Leave a Comment »

Delphi – Viewing an array in the Watch Windows starting from a non-zero index

Posted by jpluimers on 2018/07/04

via [WayBack] Is it possible to range an arrays in Watches view to specific index range? Sometimes I work with arrays that contain 100Ks lines, and Watches limit the view to index 131071… – Mike Torrettinni – Google+

Reminder to check how well this works:

Given FInts: array of integer;

you can declare `TIntArray = array of integer;`

(I’m sure it exists somewhere already but couldn’t find it at the moment) and then watch, for example

TIntArray(@FInts[150000])

–jeroen

PS: Uwe Raabe commented on G+:

Uwe Raabe+1

You can add a watch variable like arr[4711] and set the repeat count to a sensible value. Unfortunately this will give you a single line display which is not expandable.
https://quality.embarcadero.com/browse/RSP-19468
“Allow expanding watch variable with repeat count > 1”

Posted in Delphi, Development, Software Development | 1 Comment »

Two reasons I love Visual Studio Code over Atom.io: built-in markdown support and vscode-markdown; just watch the CHANGELOG.md at master · neilsustc/vscode-markdown · GitHub

Posted by jpluimers on 2018/07/03

Boy, I love this so much: [WayBack] vscode-markdown/CHANGELOG.md at master · neilsustc/vscode-markdown · GitHub

Just a few of the screen videos:

  • Formula support
  • Table of Contents (ToC) support including leaving out individual headings:
  • On the fly list renumbering:
  • Image reference completion including image preview:

–jeroen

Posted in Development, Lightweight markup language, MarkDown, Software Development | Leave a Comment »

Delphi – ModelMaker Code Explorer history lists in the registry

Posted by jpluimers on 2018/07/03

ModelMaker Code Explorer does not allow you to edit the “most recently used” items in that you can use in various places, but luckily these history lists are all in the registry as keys under this base key:

HKEY_CURRENT_USER\Software\ModelMaker\MideX\#.0\Histories

There # is the major version number of ModelMaker Code Explorer (internally named MideX).

Under the base key, you can find these keys:

  • ExternalSpac  not figured out yet
  • InterfaceSupport not figured out yet
  • Object PascalParameters list limited to 60 individual parameters (“Modifier Name: Type = Default”)
  • Parameters list limited to 60 parameter lists in the “Edit Method” wizard.
  • PascalTypeNames list limited to 60 variable types
  • PascalVarLookup list limited to 60 variables (each of form “Variable: Type”) used in the “Add Explaining Variable” wizard.
  • PropArray array indexes used in the property editor
  • PropDefaultSpec default values of properties in the property editor
  • PropWriteParam write parameters in the property editor
  • RenameLocal not figured out yet
  • ResStrExternalFile not figured out yet
  • Surrounds not figured out yet
  • UsedUnits list limited to 30 entries of the uses list editor

If you made a typo anywhere, then just edit or delete these entries.

–jeroen

Posted in Delphi, Development, ModelMaker Code Explorer, Software Development | Leave a Comment »