Have you ever wondered which functions of GExperts you have used the most? Or how often at all? How much time it has saved you? Now you can find out: I just added Usage Statistics to GExperts which tells you exactly how often you have called each of the experts, in the current session and … Continue reading GExperts Usage Statistics
Author: dummzeuch
When an exception is nil in the exception handler
A colleague of mine asked me today, how this could be: Given this exception handler: [delphi] try // some code that calls methods except on e: Exception do LogError(e.Message); end; [/delphi] How could e be nil? (and e.Message result in an Access Violation?) It turned out to be an error in one of the methods … Continue reading When an exception is nil in the exception handler
Creating a properly aligned partition with parted
Parted is a flexible tool for working with partition tables under Linux. Unfortunately it sometimes seems rather stupid. For example when you create a new partition you may get the warning "The resulting partition is not properly aligned for best performance". It could then of course proceed to suggest the proper alignment, but it doesn't, … Continue reading Creating a properly aligned partition with parted
Write the name of a newly connected USB device to the console in Linux
In theory it is easy to detect when the user plugs in a USB device to a Linux computer and notify him what was detected. In practice it's still easy as long as you know how to do it. First thing to do is add a file to[bash]/etc/udev/rules.d[/bash] The file name should follow the convention … Continue reading Write the name of a newly connected USB device to the console in Linux
Create a large file filled with zeros on Linux
Sometimes you need a large file for testing purposes or just to take up space that should not be available on the file system. There are several options on how to generate such a file on Linux: The traditional method is using dd, setting if (in file) to either /dev/null or to /dev/random. A more … Continue reading Create a large file filled with zeros on Linux
etckeeper – version your /etc directory
Keeping track of changes in the Linux configuration can be a chore but sometimes it is vital to know what was changed. As a software developer I am used to using version control systems for source code, so why not use one for configuration files? Enter etckeeper a tool that does exactly that: It tracks … Continue reading etckeeper – version your /etc directory
When Mozilla Thunderbird gives you 0 bytes attachments
.. make lemonade. Yes, that would be nice, but unfortunately we are not talking about life and lemons here. Today a coworker had a problem with Mozilla Thunderbird: She could no longer open attachments sent to her. Saving these attachments resulted in 0 byte files. This nearly drove me nuts: The email source looked fine … Continue reading When Mozilla Thunderbird gives you 0 bytes attachments
Fixing the Delphi 10.2.2 February 2018 Patch
UPDATE: The problem was that I was using Delphi 10.2.2 build 1978. Apparently I have missed an update in December 2017 to build 2004. I have downloaded and installed the new version, and now the patch worked fine. I hereby apologize for being stupid, because it clearly says in the description: This patch for RAD … Continue reading Fixing the Delphi 10.2.2 February 2018 Patch
Deleting old backups
Let's say you have a directory of backups looking like this: .\ \-> user1\ \-> [date1]_[time1] \-> [date2]_[time2] \-> some more sub directories with date and time in the name \-> user2\ \-> [date3]_[time3] \-> [date4]_[time4] \-> some more sub directories with date and time in the name \-> some more user sub directories Where … Continue reading Deleting old backups
My improved version of IMAPCopy
IMAPcopy is a tool written by Armin Diehl. Its purpose is to copy emails from one IMAP server to another (or from one IMAP account to another) including the folder hierarchy and even the read status. It's a command line program written in Delphi and fpc. Since I am currently migrating a mail server I … Continue reading My improved version of IMAPCopy