Still playing around with ChatGPT, I asked it "What does the following Delphi function do?" [delphi] function FileSizeToHumanReadableString(_FileSize: Int64): string; begin if _FileSize > 5 * OneExbiByte then Result := Format(_('%.2f EiB'), [_FileSize / OneExbiByte]) else if _FileSize > 5 * OnePebiByte then Result := Format(_('%.2f PiB'), [_FileSize / OnePebiByte]) else if _FileSize > 5 … Continue reading What does the following Delphi function do?
I asked ChatGPT what’s wrong with the following Delphi code
Slashdot just posted "What Happens When ChatGPT Can Find Bugs in Computer Code?" which links a PC Mag article with the title "Watch Out, Software Engineers: ChatGPT Is Now Finding, Fixing Bugs in Code" So I asked ChatGPT "What's wrong with the following Delphi code:" [delphi] function IsoStringToDateTime(const ISODateTime: string): TDateTime; const ISOShortLen = 19; … Continue reading I asked ChatGPT what’s wrong with the following Delphi code
New Edit Path expert in GExperts
It has been in the source code for quite a while and some few people and I have tested it, but I didn't tell anybody else about it: There is a new expert in GExperts for editing the current project's unit search path. It looks like this: It offers the same functionality as the Search … Continue reading New Edit Path expert in GExperts
Need help testing a GExperts bugfix
I have just applied patches that are supposed to fix some Unicode issues with Russian characters. These apply to the following editor experts: Expand Macro Template Locate / Move to matching delimiter Previous / Next Identifier reference My tests so far have shown no changes on how these work on my source code, but I … Continue reading Need help testing a GExperts bugfix
Minor Delphi Ide Explorer enhancement
I just added some minor enhancements to my Delphi Ide Explorer expert: For TShortCut properties it now also displays the text representation for the shortcut. For TShortCutList properties (TAction.SecondaryHotkeys) it now displays "<no shortcut>" if the list is emtpy rather than an empty string For TStrings properties it now displays "<empty>" if the list is … Continue reading Minor Delphi Ide Explorer enhancement
chat.openapi.com is really amazing
Since everybody and his brother is talking about the new chat engine from openapi I had to try it myself, and lo and behold it is amazing. I asked it about various topics and the answers I got were at least plausible. Being a Delphi developer I of course ended up asking it questions about … Continue reading chat.openapi.com is really amazing
Mastodon Autopost Plugin for WordPress
There are several plugins for WordPress that allow to automatically create a new Mastodon toot (what a stupid name!) for each blog post. I'm using "Mastodon Autopost". Unfortunately this plugin seems to be outdated and also has a bug that with the current PHP version results in an error/warning message if the post does not … Continue reading Mastodon Autopost Plugin for WordPress
I’m on Mastodon now
I never really liked Twitter, but I created an account there to be able to Announce new posts on my blog Allow some feedback to my blog without enabling the comments Now I joined Mastodon as @dummzeuch@mastodon.social simply to add another channel for those who don't want to use Twitter.
All known Generics bugs fixed in GExperts code formatter
I have just finished fixing all known bugs in the GExperts code formatter that were related to Generics. On top of that I fixed a few others. I am sure there are still more though, but because I rarely use Generics I haven't seen them yet. So I need your help: If you have a … Continue reading All known Generics bugs fixed in GExperts code formatter
Change order of experts in GExperts Expert Manager
Prompted by a post on Delphi Praxis, I just added a new feature to the Expert Manager expert in GExperts (lots of experts here đ ): It can now change the order in which the experts are loaded into the IDE. This may be important e.g. if you are using Andreas Hausladen's Delphi Speed Up … Continue reading Change order of experts in GExperts Expert Manager