It has always irked me that in C you can write: [c] while (0<(BytesRead=Read(...))) { // .. } [/c] But in Delphi you have to use the much less readable [delphi] BytesRead := Stream.Read(Buffer, BufSize); while BytesRead > 0 do begin // .. BytesRead := Stream.Read(Buffer, BufSize); end; [/delphi] Today I had enough and wrote … Continue reading while TStream_TryRead() do
A few things I recently learned about PuTTY (the ssh client)
I have been playing around with PuTTY (Yes, I know, a grown man playing with putty evokes some rather odd pictures. I'm talking about the ssh client tool here though). recently and discovered a few things I didn't know. You can specify the user name to connect with I already knew that there is a … Continue reading A few things I recently learned about PuTTY (the ssh client)
Testing zlib compression in Delphi
Delphi has for a while contained two classes that simplify stream compression: TZCompressionStream TZDecompressionStream I had not used them before and when I tried to use them now to compress and decompress some binary data that is stored as part of a large file, I got some inexplicable results. So I wrote this little test … Continue reading Testing zlib compression in Delphi
Warning: Windows Update KB5028166 breaks NT Domains
Just in case we are not the only ones still using Samba with an NT domain: Windows Update KB5028166 which will automatically be installed on Windows 10 today, breaks compatibility with that domain type. After the installation, a login with a domain account no longer works. Removing that update fixes the issue, but of course … Continue reading Warning: Windows Update KB5028166 breaks NT Domains
Some JPEG XL information
This is mostly for me so I can look it up again later: JPEG XL is a new (for appropriate definitions of "new") picture compression algorithm (and much more). One very interesting option is to losslessly recode JPEG files to JXL and back. There is a reference implementation with sources and binary releases on GitHub … Continue reading Some JPEG XL information
Interface unit for the 7zip DLL
Note to self: mORMot2 contains an interface unit for the 7zip DLL: https://github.com/synopse/mORMot2/blob/master/src/lib/mormot.lib.win7zip.pas
I’m leaving Twitter
Just in case anybody was using Twitter to follow my blog: As of today, the API I was using to post to Twitter is no longer available. So my blog posts won't be shared there automatically any more. If you are in the Fediverse you can follow @dummzeuch@mastodon.social. Alternatively various rss feeds are available and … Continue reading I’m leaving Twitter
RIP Alex Mills
I have been using the SyntaxHighlighter Evolved WordPress plugin by Alex Mills for several years. Today I wanted to look up something on the plugin's homepage and was wondering why there are so many spam comments. Turned out that Alex passed away 4 years ago. He died of Leukemia. I didn't know Alex but it's … Continue reading RIP Alex Mills
Syncing a remote SVN repository to the local file system under Windows
I had some bad experience with the hosted SVN repositories of my open source projects (first with SourceForge, now with OSDN) so I decided to sync all of them to a local, read only copy on my hard drive. In the worst case that will keep the history even if the hosting service goes down … Continue reading Syncing a remote SVN repository to the local file system under Windows
Denkzettel Companion 0.0.6 released
I have just released version 0.0.6 of my Denkzettel Companion tool. It is available from OSDN. This version fixes several bugs regarding the file format. I didn't realize that Denkzettel uses UTF-8 encoding and also unix style linebreaks (Linefeed). It also fixes an index out of range error when pressing the down arrow on the … Continue reading Denkzettel Companion 0.0.6 released