I have just updated my dzDelphiPaths tool to support Delphi 10.4.
Author: dummzeuch
dzBdsLauncher 1.0.4 released
The new version of dzBdsLauncher adds support for Delphi 10.4.
GExperts 1.3.16 experimental twm 2020-05-27 released
There they are, the promised GExperts 1.3.16 installers for older Delphi versions. This time I didn't blog much about the work I did on GExperts. I spent a lot of time actually working on it instead. There are lots of bug fixes and a few new features in the new version. I hope this time … Continue reading GExperts 1.3.16 experimental twm 2020-05-27 released
GExperts 1.3.16 for Delphi 10.4
Today I downloaded and installed the latest and greatest Delphi 10.4. The first thing to do, was of course compile GExperts for it. Thanks to Achim Kalwa I already had a working project and he also made all other changes necessary to make it compile. So basically I loaded the project and pressed Compile. A … Continue reading GExperts 1.3.16 for Delphi 10.4
When computers try to be clever
Don't you just hate it when computers try to be clever but get it wrong? OK, it's not really the computer itself but the programmer who tried to be clever. The problem usually is that he overlooked a corner case that you then hit where his sophisticated strategy fails and leaves you with something - … Continue reading When computers try to be clever
More features for the IFDEF expert in GExperts
The IFDEF editor expert was added to GExperts in 2016 and improved again in the same year, to support symbols defined in include files. Unfortunately sometimes an include file itself sometimes includes other files (e.g. jclNN.inc in the JEDI Code Library includes jedi.inc) which will usually add additional symbols which are then available for conditional … Continue reading More features for the IFDEF expert in GExperts
Automatically make your PC wake up at a given time
Due the the COVID19 pandemic I am currently working from home, using Putty + ssh + Remote Desktop to log into and work on my office PC. For this to work, the office PC must be turned on and booted. So far I have let it running 24h which is really a waste of energy … Continue reading Automatically make your PC wake up at a given time
Extract jpeg files from mjpeg video on Linux
Just in case I ever need it again: Extracting all frames from an mjpeg video as jpegs is easy and very fast with ffmpeg, because it does not need to decode and encode the pictures, just prepend the DHT to each one: [bash] ffmpeg -i inputmpeg.avi -c:v copy -bsf:v mjpeg2jpeg frame_%d.jpg [/bash] Source ffmpeg documentation.
Skipping the UTF-8 BOM with TMemIniFile in Delphi 2007
Recently I came across a problem with INI files: Some editors (including recent versions of Windows Notepad) add a byte order mark (BOM) to the files they save. In particular the BOM for UTF-8 kept appearing in INI files which then were read incorrectly by the Delphi 2007 implementation of TMemIniFile (I guess the same … Continue reading Skipping the UTF-8 BOM with TMemIniFile in Delphi 2007
Delphi’s TStream.Read returns the number of bytes read
Note to self: TStream.Read in the Delphi RTL returns the number of bytes read. It does not check whether the intended number of bytes could actually be read. So if you do not check it yourself, call TStream.ReadBuffer instead. So, it's either: [delphi] var st: TFileStream; Buffer: array[0..7] of Byte; BytesRead: Integer; begin st := … Continue reading Delphi’s TStream.Read returns the number of bytes read