Archive for April, 2025
Posted by jpluimers on 2025/04/16
Just in case I ever think “oh, I might try want to go the Variadic function arguments way in Delphi” again, I must remember “maybe not a good idea” and re-read these posts:
- [Wayback/Archive] Variadic function – Wikipedia which in C is implemented with in [Wayback/Archive]
varargs.h – Wikipedia (now in [Wayback/Archive] stdarg.h – Wikipedia) with the identifiers va_list, va_start, va_arg, and va_end.
- [Wayback/Archive] Delphi “array of const” to “varargs” – Stack Overflow with great insights from former Delphi compiler developer [Wayback/Archive] Barry Kelly.
- [Wayback/Archive] E2591 Only
cdecl functions may use varargs (Delphi) – RAD Studio (I already knew this, but it is good to have that bit linked here as well)
- [Wayback/Archive] gmp-wrapper-for-delphi/gmp_lib.pas at master · EricGrange/gmp-wrapper-for-delphi · GitHub with an example how
varargs support got introduced in Delphi 6: for external cdecl functions.
- [Wayback/Archive] Rudy’s Delphi Corner – Pitfalls of converting (still *the* reference article on translating C/C++ headers to Delphi) has this on
varargs:
Fortunately, since Delphi 6, you can declare external functions like wsprintf using the varargs directive.
- [Wayback/Archive] How to create a Delphi variadic method similar to Write/Writeln without requiring brackets for arguments? – Algorithms, Data Structures and Class Design – Delphi-PRAXiS [en] has a nice 64-bit Delphi example using the undocumented Delphi identifiers
TVarArgList, VarArgStart, VarArgGetValue, and VarArgEnd.
Note that this example, despite the description indicates it is, it is actually not varargs by array of const (which requires using TVarRec as under the hood it is an open array of TVarRec): [Wayback/Archive] How to create functions that can accept variable number of parameters such as Format().
Then some Free Pascal links, which is different from, but also similar to Delphi:
Queries:
--jeroen
Posted in .NET, C, C#, Delphi, Development, FreePascal, Pascal, Software Development | Leave a Comment »
Posted by jpluimers on 2025/04/16
From a few years back when Lightning debugging cables were either expensive, hard or not to get at all: [Wayback/Archive] DEF CON 30 – stacksmashing – The Hitchhacker’s Guide to iPhone Lightning and JTAG Hacking – YouTube.
Basically it is a Raspberry Pi Zero with adapted firmware connected to half a lightning extension cable.
A textual description (I wish it was linked from the above video) is at [Wayback/Archive] stacksmashing – The hitchhacker’s guide to iPhone Lightning & JTAG hacking – DEF CON Forums, which in turn refers to:
Read the rest of this entry »
Posted in Development, Hardware Development, iOS, iPhone, Power User, Red team, Security | Tagged: checkm8 | Leave a Comment »
Posted by jpluimers on 2025/04/15
Empirically, these are show the same behaviour where “command 2″and “command 3″are documented, but still present a lot as the only solution in blog posts and help sites:
git config commands
command 1: list |
command 2: --list |
command 3: -l |
what config is shown |
git config list --local |
git config --list --local |
git config -l --local |
--local config for current repository |
git config list --global |
git config --list --global |
git config -l --global |
--global config for the current user |
git config list --system |
git config --list --system |
git config -l --system |
--system config for all users |
git config list |
git config --list |
git config -l |
all 3 levels of config combined, for convenience
without telling which configuration setting is on which level |
Based on [Wayback/Archive] git config: list all variables and their default values – Stack Overflow (thanks [Wayback/Archive] Matteo Meil): Read the rest of this entry »
Posted in Development, DVCS - Distributed Version Control, git, Software Development, Source Code Management, Versioning | Leave a Comment »
Posted by jpluimers on 2025/04/15
The problem with error messages is that they just displays errors as a fact without providing the user of future steps.
Offer them with a helpful, actionable message instead.
Not just for people with a visual impairment, I added readable text to the image below.
Read the rest of this entry »
Posted in accessibility (a11y), Conference Topics, Conferences, Development, Event, Software Development, Usability, User Experience (ux) | Tagged: HelpMessages | Leave a Comment »
Posted by jpluimers on 2025/04/14
Now that I have had an Apple silicon for a while, which has enough cores to perform parallel work, this is how I calculated a bunch of hashed from a lot of large files:
find . -type f | xargs -P 0 -n 1 md5 -r
find . -type f | xargs -P 0 -n 1 shasum --algorithm 1
find . -type f | xargs -P 0 -n 1 shasum --algorithm 256
I contemplated about using GNU parallel, but that is not installed by default on MacOS and I was already familiar with xargs.
Argument meanings can be found at these locations:
Related:
Read the rest of this entry »
Posted in *nix, *nix-tools, Apple, Apple Silicon, ARM Mac, M1 Mac, Mac, Mac OS X / OS X / MacOS, Power User, xargs | Leave a Comment »
Posted by jpluimers on 2025/04/14
Weet voor je naar bed gaat of je vliegtuiggeluid kunt verwachten.
Ben jij iemand die elke avond wakker ligt als er weer een vliegtuig voorbij komt? Of houd je je ramen ‘s nachts uit voorzorg potdicht om het geluid buiten te houden?
Deze site stuurt je voor je naar bed gaat een mail als er verwacht wordt dat vliegtuigen die nacht je slaap kunnen verstoren. Tijdens nachten waarop je geen mailtje krijgt kun je dus gewoon je raam open houden!
Van [Wayback/Archive] Moet het raam dicht?
Ze maken gebruik van deze bronnen (de laatste is inmiddels verhuisd):
Read the rest of this entry »
Posted in LifeHacker, Power User, Schiphol | Leave a Comment »
Posted by jpluimers on 2025/04/11
Some of the people I know are not on any of Signal, WhatsApp, Google Chat, or other usual direct message platforms.
This left Discord, which I use more (at least weekly) than Facebook Messenger (once a month or so).
Sharing a user-link there proved to be quite a bit more difficult than I anticipated: it even involves enabling developer mode!
The steps are at [WaybackSave/Archive] How To Share Discord Profile Link [Copy & Share]
Found via query: [WaybackSave/Archive] share direct link to discord account – Google Suche
--jeroen
Posted in Chat, Discord, Power User, SocialMedia | Leave a Comment »
Posted by jpluimers on 2025/04/11
A while ago someone asked on Twitter if people had mobile phones in the early 1990’s.
I bought my first GSM phone in 1995. Unlike my other mobile non-smart phones that were from Nokia, this one was from Motorola.
It was the international GSM version of the Motorola MicroTAC series (see picture below) which by then was way more affordable and smaller than the Nokia devices (see Nokia 2010 – Wikipedia and Nokia 2110 – Wikipedia).
This was in the age that world wide there were various competing mobile phone network standards.
Read the rest of this entry »
Posted in About, Cellular telephony, GSM, History, Personal, Power User, Telephony | Leave a Comment »
Posted by jpluimers on 2025/04/10
A while ago I assisted to translate parts of some software from English to Dutch.
Knowing from the last, that there were on-line guidelines for this, I tried to find them back.
That was tough, and I got a feeling many of the past ones vanished.
Here are some links – in the order I browsed them – for a future self in case I want to find them again (in bold, the useful resources):
Read the rest of this entry »
Posted in Development, Software Development | Leave a Comment »
Posted by jpluimers on 2025/04/10
Over the last years a few C:\Windows.msi vulnerabilities have been discovered (and fixed), of which some are linked below.
The core is that the Windows Installer tries to be transactional, and NTFS is, but the combination with installer processes isn’t.
That leads into vulnerabilities where you can insert malicious Roll Back Scripts (.rbs files) and Roll Back Files (.rbf files), and I wonder if by now more have been discovered.
So this post is a kind of reminder to myself (:
Oh, and I learned much more about whoami on Windows, as there whoami /groups shows very detailed SID information. From that, I learned more on the internals of SIDs too!
Read the rest of this entry »
Posted in Blue team, C++, Development, Power User, Red team, Security, Software Development, Visual Studio C++, Windows, Windows Development | Tagged: 1, else, endif, if | Leave a Comment »