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

Archive for 2020

Hardening: sshd_config – How to configure the OpenSSH server | SSH.COM

Posted by jpluimers on 2020/06/05

If you want to harden your ssh server, read at least [WayBack] sshd_config – How to configure the OpenSSH server | SSH.COM.

After that use some ssh tools to check your config from the outside world. They work in a similar way as the TLS/SSL/https scans from Source: SSL Server Test (Powered by Qualys SSL Labs) or these console based scans and documentation references:

Simiarly for SSH:

Then read further on more in depth SSH topics around key management:

–jeroen

 

Posted in Encryption, Hashing, https, HTTPS/TLS security, OpenSSL, Power User, Security, testssl.sh | Leave a Comment »

1. Inside the Terminal – Mac OS X For Unix Geeks, 4th Edition [Book]

Posted by jpluimers on 2020/06/05

The Terminal on Mac OS X / OS X / MacOS is very much like a Linux terminal, but there are also a lot of differences especially with keyboard, tab and process handling.

So this chapter is very much wort reading: [WayBack] 1. Inside the Terminal – Mac OS X For Unix Geeks, 4th Edition [Book]

–jeroen

Posted in Apple, iMac, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Air, MacBook-Pro, MacMini, Power User | Leave a Comment »

Thread.Destroy deadlocks in finalization of COM+ dll’s…

Posted by jpluimers on 2020/06/04

Reminder to self that this is still broken:

[WayBack] Thread.Destroy deadlocks in finalization of COM+ dll’s This serious bug still exists in Delphi 10.2 after 12 years being reported! http://qc.embarcade… – 丽丽乌克 – Google+

Original report:

It was posted by Bart van der Werf, who also posted a workaround that is inside those WayBack links.

–jeroen

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

Why Is SQLite Coded In C

Posted by jpluimers on 2020/06/04

Old, but still an interesting read: [WayBack] Why Is SQLite Coded In C and [WayBack] Appropriate Uses For SQLite.

TL;DR: SQLite – mainly competing with fopen has few dependencies and uses C in a boring way. I think that’s good.

Via: [WayBack] Why Is SQLite Coded In C – ThisIsWhyICode – Google+

–jeroen

Posted in C, Database Development, Development, Software Development, SQLite | Leave a Comment »

Shell Extensions (.NET)

Posted by jpluimers on 2020/06/04

Over time it seems that Shell Extensions (.NET) [WayBack] have become possible.

In the past this was recommended against because Shell Extensions can be loaded by any process having a file dialog open, even if these did not expect .NET framework(s) to be hosted in-process.

It looks like that restriction has been alleviated with .NET 4.x where it is possible to in-process host multiple .NET frameworks: [WayBack] CLR Inside Out: In-Process Side-by-Side

Related:

–jeroen

Posted in .NET, Development, Software Development | Leave a Comment »

Some links on hooking anonymous methods to Delphi events

Posted by jpluimers on 2020/06/03

On my reading list are these:

–jeroen

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

Methodologies are dead, long live methodologies – Mosh Choen – Medium

Posted by jpluimers on 2020/06/03

Worth re-reading every now and then: [WayBack] Methodologies are dead, long live methodologies – Mosh Choen – Medium.

Use your common sense, and assess your common sense is still based on thinking, not coloured.

Via: [WayBack] Mosh Choen (ik5) – Google+

–jeroen

Posted in Development, Software Development | Leave a Comment »

Cursor Movement in bash: either echo escape sequences or use tput

Posted by jpluimers on 2020/06/03

I read [WayBackCursor Movement earlier than [WayBack] Colours and Cursor Movement With tput and [WayBack] The Floating Clock Prompt.

So in one of my scripts I’ve now used an escape sequence, but I might change it to tput in a future version:

## Move one line up, then write finished scripts:
echo -e "\033[1A$finished\r"

I would probably have started with put if I had read [WayBack] bash – Set or change vertical position of the cursor – Stack Overflow first.

–jeroen

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

Are there any static code analysis tools for Delphi/Pascal? – Stack Overflow

Posted by jpluimers on 2020/06/02

Still interesting question: [WayBack] Are there any static code analysis tools for Delphi/Pascal? – Stack Overflow

The basic problem here is that there is no formal language definition for the Delphi or Object Pascal language.

[WayBack] GitHub – RomanYankovsky/DelphiAST: Abstract syntax tree builder for Delphi (which also supports FreePascal and Lazarus) comes closest, and is used by FixInsight.

All other tools have more or less problems parsing various language constructs.

This starts with the built-in tooling that is based on [WayBack] Modeling Applications with Together which basically has not been maintained since the Delphi 2007 era.

Then there is for instance [WayBack] Code Healer Group CodeHealer for Delphi, but their [WayBack] Code Healer Group Forums – Index page have no messages since 2016.

Another wrapper around DelphiAST, is [WayBack] GitHub – MikhailIzvekov/DelphiSCA: Static code analysis tools for Delphi, which has a visual way to walk that AST. But it has not been maintained for years. The cool thing however, is that the AST is in sync with the code editor.

Finally, TestInsight uses DelphiAST to go to the right source code location.

--jeroen

Read the rest of this entry »

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

SysUtils.pas Why parameters of these anonymous not const? TProc = …

Posted by jpluimers on 2020/06/02

At [WayBack] SysUtils.pas Why parameters of these anonymous not const? TProc = reference to procedure (Arg1: T1; Arg2: T2); TProc = reference … – Jacek Laskowski – Google+, Hallvard Vasbotn made this nail on the head comment:

It could have been solved if the const’ness had been seen as a implementation detail by the compiler (which it really is) and made const and non-const signatures assignment compatible.

It was changes like the above that I had hoped for when writing Source: 15 months later: what happened to Delphi Language Enhancements? « The Wiert Corner – irregular stream of stuff.

Now we are another 27 months later, so this again is a reminder to check what the compiler team (man?) has improved on the language side.

–jeroen

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