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

Archive for April, 2020

Sprites mods – Miniature Macintosh Plus – Result

Posted by jpluimers on 2020/04/10

Such a cool device: [WayBackSprites mods – Miniature Macintosh Plus – Result.

The whole project:

  1. [WayBack] Sprites mods – Miniature Macintosh Plus – Intro
  2. [WayBack] Sprites mods – Miniature Macintosh Plus – Display
  3. [WayBack] Sprites mods – Miniature Macintosh Plus – Driving the display
  4. [WayBack] Sprites mods – Miniature Macintosh Plus – Schematic
  5. [WayBack] Sprites mods – Miniature Macintosh Plus – Software
  6. [WayBack] Sprites mods – Miniature Macintosh Plus – Enclosure
  7. [WayBackSprites mods – Miniature Macintosh Plus – Result

Sources: [WayBack] GitHub – Spritetm/minimacplus: Source code, PCB artwork and firmware for a tiny Macintosh Plus

–jeroen

 

Posted in 68k, History | Leave a Comment »

Bug Finder, A Real Win32 Extensible Passive Debugger – CodeProject

Posted by jpluimers on 2020/04/09

On my research list is [WayBack] GitHub – DareDevil73/bug-finder: Windows passive debugger.  with an article at [WayBack] Bug Finder, A Real Win32 Extensible Passive Debugger – CodeProject:

The Bug Finder is a real Win32 debugger, entirely written in Borland Delphi, which analyzes your application execution flow, so you can:

  1. Catch exceptions on the main executable, external DLLs, primary and working threads.
  2. Produce a detailed stack trace about each exception.
  3. Place a symbolic breakpoint to get, in place of a program debug break, a full stack trace log message (dynamic tracing).
  4. Produce detailed and rotative log files for a batch application behaviour inspection.
  5. Capture output of OutputDebugString API to log file (to provide extra debugging information by yourself directly into your code).
  6. Trace Process, Threads and DLLs activities.

I found documentation at [WayBackDareDevil73 … docs, but the binary dependencies and installer are on SourceForge (where the project was originally located) and CodeProject which cannot be archived so I will look into that when it pops to the top of my research list.

–jeroen

via: [WayBack] Bug Finder by Antonio Petricca (in 2013?) Have any of you tried it? – Lars Fosdal – Google+

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

Hashes and their uses – The Isoblog.

Posted by jpluimers on 2020/04/09

A nice introduction to [WayBackHashes and their uses – The Isoblog covering:

  • Checksums
    • Digit sums as simple, weak checmsums
    • Better checksums: ISBN-10 as an example
    • Proper CRC checksums
  • Hashes for storage
    • Building dictionaries
    • Breaking dictionaries
    • Handling collisions
  • Cryptographic hashes

Via [WayBack] I needed to explain Bitcoin. In order to explain Bitcoin, I needed to explain Proof-of-Work and Hash structures. In order to explain Proof-of-Work and H… – Kristian Köhntopp – Google+

–jeroen

 

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

Delphi: OldCreateOrder in inherited TDataModule might suddenly become True

Posted by jpluimers on 2020/04/08

Interesting observation that might have been in Delphi for more than a decade: [WayBack] Found something strange in Delphi again which I’ve been trying to fix for days until I discovered it’s probably a Delphi issue… – Stefaan Lesage – Google+.

I think the summary is that if you have inherited TDataModule instances, then the descendant will always have OldCreateOrder set to True.

It is reported as RAD StudioRSP-20016 TDatamodule.OldCreateOrder always resets to true on descendants, but it is present in at least Delphi 7, so likely is in the old QC database:

Uwe Raabe:
I can track this error down to Delphi 7 (really)! Cannot check Delphi 6, but Delphi 5 just doesn’t have that property.
The reason lies in TDataModule.ReadState where

FOldCreateOrder := not ModuleIsCPP;
is set.

These might be related:

–jeroen

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

Common SMTP message size limits

Posted by jpluimers on 2020/04/08

After a 2018 discussion with a “zorgkantoor” (Dutch for office that arranges for special long term health care needs, successor of AWBZ) about their very low (10 megabyte) SMTP message size limit – even though they expect scanned PDF documents.

Their web-care team posed this limit as normal, so I made a list of limits in their peer group, common world-wide and well-ranked Dutch internet providers.

My plan is to check the progression of these limits over time.

Note these are the bruto message sizes including encoded attachments. Since encoding in [WayBack] MIME Base64 – Wikipedia has a overhead of at least 37% (encoded size is at least 1.37 the original size), the unencoded maximum size is less than 73% of what is listed below.

References:

2018

Read the rest of this entry »

Posted in base64, Communications Development, Development, eMail, Encoding, Internet protocol suite, MIME, Power User, Python, Scripting, SMTP, SocialMedia, Software Development, TCP | Leave a Comment »

Rendering SVG on gitea and gitlab

Posted by jpluimers on 2020/04/07

At the time of writing:

<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">

–jeroen

Posted in Development, DVCS - Distributed Version Control, git, gitea, GitHub, GitLab, Software Development, Source Code Management | Leave a Comment »

Debugging Delphi applications inside a Windows Docker container – yeiei.net

Posted by jpluimers on 2020/04/07

A docker container that pulls the PA server for Windows and steps how to attach to it and a video showing how to do this: [WayBackDebugging Delphi applications inside a Windows Docker container – yeiei.net

Cool if you do Delphi server side stuff.

Via: [WayBack] Hi delphi friends! If you are planning to use Windows Docker Containers and Delphi, you’ll need to read this: https://yeiei.net/en/debugging-delphi-appl… – Juan Antonio Ruzafa – Google+

–jeroen

Read the rest of this entry »

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

In SQL Server use `SET NOCOUNT ON` so tools taking the last modified record count won’t be confused by your trigger.

Posted by jpluimers on 2020/04/07

Interesting read: Time eating bug of the day… – Fabian S. Biehn – Google+.

TL;DR: in SQL Server use SET NOCOUNT ON so tools taking the last modified record count won’t be confused by your trigger.

Source: [WayBackTime eating bug of the day: I used a TADOQuery.ExecSQL (on Berlin) for an Up…

Related: [WayBack] sql server – ADODB affected rows return trigger’s affected rows – Stack Overflow

–jeroen

Posted in Database Development, Delphi, Development, Office VBA, Scripting, Software Development, SQL, SQL Server | Leave a Comment »

Create a custom paper size for printing on Mac – Apple Support

Posted by jpluimers on 2020/04/06

Since a search for this does not result in any hits on the apple.com web site (for instance not “To create a new paper size based on an existing size, select a paper size in the list, then click Duplicate.”), I have quoted it in full.

The main reason: “to change the name, double-click, then type a new name”

I needed this to specify A0 size, in inches, which was hard to find exact dimensions with more than 1 decimal digit, but luckily- unlike ISO 216 – Wikipedia:

And there is the millimeter specs (and way more) at [WayBack] A4 paper format / International standard paper sizes.

The quote from [WayBack/Archive.is] Create a custom paper size for printing on Mac – Apple Support:

Create a custom paper size

If you want to create a document that has a unique size, such as an envelope or card, first see if the paper size appears in the Paper Size pop-up menu. If not, you can create your own custom paper size. Custom paper sizes aren’t available for some printers or for all apps.

Note: The following options might not be available for your printer or app. If these instructions differ from what you see onscreen, refer to the documentation that came with the app you’re using.

  1. Choose File > Print. If you see a Show Details button, click it to show all available options.
  2. Click the Paper Size pop-up menu, then choose Manage Custom Sizes.
  3. Click the Add button  to add a new paper size, then specify the paper size you want.
    Click the Add button to add a new paper size. To change the name of your custom paper size, double-click the name, then type a new one. Choose a printer from the pop-up menu to use its standard margins, or enter custom values in the fields below.

To create a new paper size based on an existing size, select a paper size in the list, then click Duplicate.

To print to a custom paper size, choose it from the Paper Size pop-up menu in the Print dialog (choose File > Print). To set a document size to a custom paper size, choose it from the Paper Size pop-up menu in the Page Setup dialog (choose File > Page Setup).

Tip: If a document is printing with incorrect margins or clipped text, try this: click the Non-Printable Area pop-up menu, choose User Defined, then enter zero for the nonprintable margins. In some cases this allows the document margins to print as expected.

–jeroen

Posted in Apple, Mac OS X / OS X / MacOS, macOS 10.12 Sierra, macOS 10.13 High Sierra, Power User | Leave a Comment »

Why the current Coronavirus (SARS-Cov-2) is so much nastier than the first SARS

Posted by jpluimers on 2020/04/06

A very interesting thread unfolded by ThreadreaderApp (via [Archive.is] Andrea on Twitter: “Interesting read!… “) starts at [Archive.is] Peter Kolchinsky on Twitter: “While not technically alive, there’s an evil genius to viruses that never ceases to amaze me. It’s one reason I became a virologist. A recent Nature paper reveal a remarkable trick SARS-Cov-2 learned that makes it nastier than the first SARS. Both viruses…”:

Read the rest of this entry »

Posted in LifeHacker, Power User, science | Leave a Comment »