Starting with Delphi 2007 EmBorCodera switched to msbuild for the build system. The newly introduced .dproj file used since then is a valid build script for msbuild but unfortunately the format has changed between Delphi 2007 and 2009. This means that there is a difference if you want to make command line builds and specify … Continue reading Specifying the msbuild configuration for a Delphi project on the commandline
Month: March 2018
GExperts Usage Statistics
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
When an exception is nil in the exception handler
A colleague of mine asked me today, how this could be: Given this exception handler: 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 that were called: Can you spot the problem here? For whatever reason the .Create call is … 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 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