-
Content Count
3416 -
Joined
-
Last visited
-
Days Won
113
Everything posted by Lars Fosdal
-
https://docwiki.embarcadero.com/Libraries/Alexandria/en/System.UnicodeString
-
TO ChatGPT: In Delphi, is there any kind of an adapter or class that takes a TList<T> and makes it look like a TDataSet?
Lars Fosdal replied to David Schwartz's topic in Databases
But - there are other uses than generating code - namely analyzing it. https://betterprogramming.pub/i-used-gpt-3-to-find-213-security-vulnerabilities-in-a-single-codebase-cc3870ba9411 -
My carriage return and line feed isn't working
Lars Fosdal replied to 357mag's topic in General Help
Add MemoResults -> Clear() at the beginning of your code. I recommend looking up the online help for the VCL components to learn about their capabilities. -
Radio button options not remembered on re-opening app
Lars Fosdal replied to Willicious's topic in Delphi IDE and APIs
looks a bit fishy... -
TO ChatGPT: In Delphi, is there any kind of an adapter or class that takes a TList<T> and makes it look like a TDataSet?
Lars Fosdal replied to David Schwartz's topic in Databases
That is the problem with ChatGPT. It cannot be relied on. -
My carriage return and line feed isn't working
Lars Fosdal replied to 357mag's topic in General Help
Is there an EditResults -> Lines -> Add method? -
LinkedList pointer implementation gives bad results!
Lars Fosdal replied to Giorgi Chapidze's topic in Algorithms, Data Structures and Class Design
ASM is pretty much straight ASM32 or ASM64.- 19 replies
-
- data structures
- pointers
-
(and 1 more)
Tagged with:
-
LinkedList pointer implementation gives bad results!
Lars Fosdal replied to Giorgi Chapidze's topic in Algorithms, Data Structures and Class Design
Deviating slightly from the original topic: I wonder when green computing will become a part of education and business, i.e. writing code / designing libs that are less expensive in the context of power consumption.- 19 replies
-
- data structures
- pointers
-
(and 1 more)
Tagged with:
-
How to get Debug AND Release directories after building a project
Lars Fosdal replied to Die Holländer's topic in Delphi IDE and APIs
The configurations inherit values - can it be that your release version of the "failing" app has an override? -
@David Schwartz - You wouldn't happen to have an original file uploaded as an attachment to a post here, so that we can try some conversions?
-
TO ChatGPT: In Delphi, is there any kind of an adapter or class that takes a TList<T> and makes it look like a TDataSet?
Lars Fosdal replied to David Schwartz's topic in Databases
Another man's struggles with AI generated code. https://mastodon.gamedev.place/@badlogic/110139794125541730 -
Wouldn't converting the chars to Unicode solve that problem? All strings in modern Delphi components are using Unicode. I don't understand why you don't want to handle the text as what it is. Once you have the text as Unicode, you also get all the nice TCharHelper functions to understand what kind of character you are looking at, in case you want to do more manipulations. A lot better and more robust than string replacements.
-
@David Schwartz - This looks like MBCS encoding - the old ANSI multibyte character set encoding scheme in Windows. The ANSI routines should be capable of converting the strings to Unicode, but they depend on knowing the appropriate code page. https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Commonly_Used_Routines_for_AnsiStrings
-
I tried accessing that page, same problem.
-
I have a MBP M1 Pro 32/2Tb, but if was buying a Mini, I would personally go for the M2 24GB/2TB. You can't expand later, so hence go for the max for that config. You can go bigger with the M2 Pro - but then it gets quite expensive, quite quick. I am not near my Mac atm, so I can't say how large the VM is. It depends a lot on what you install..
-
How to use an external editor like VScode and GitHub Copilot for Delphi 11 Alexandria?
Lars Fosdal replied to Al T's topic in Delphi IDE and APIs
Before DelphiLSP, I used the OmniPascal extension in VS Code. I've not tried the one you linked. -
Delphi 11.1 compiled under MacOS Ventura
Lars Fosdal replied to ChrisChuah's topic in Delphi IDE and APIs
@Glenn Dufke stated although that only indicates that to create Ventura compliant apps, you need 11.3. -
VNC is another option for remoting - or install Windows for ARM under Parallells on the MAC and run it all on the Mac. It certainly is fast enough with enough RAM and SSD space.
-
BTW - when searching in files, use "in directories" and check "Include subdirectories" and point to the topmost folder that contains your source code. "In projects" does not necessarily include all units, since you can reference a unit without adding it to the project.
-
I am not sure which version of Delphi you are using, @GP_23 (You can set that in your profile), but the following has been working at least since Sydney: https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Custom_Title_Bar_for_VCL_Forms Edit: ... and I fell into the trap of not reading the OP properly. Surely there must be a way to get the main menu and custom title bar working?
-
Delphi 11.1 compiled under MacOS Ventura
Lars Fosdal replied to ChrisChuah's topic in Delphi IDE and APIs
A question of definition, I suppose. Without the Mac, you'll not have a binary that can be sideloaded? -
Delphi 11.1 compiled under MacOS Ventura
Lars Fosdal replied to ChrisChuah's topic in Delphi IDE and APIs
Compiling / Building does need a Mac, since it uses XCode for the final steps. -
How to use an external editor like VScode and GitHub Copilot for Delphi 11 Alexandria?
Lars Fosdal replied to Al T's topic in Delphi IDE and APIs
Any text editor can be used to edit .pas files. It is when configuring projects and editing frames/forms that you are stuck with using the Delphi IDE. CoPilot supported editors are listed here: https://docs.github.com/en/copilot/getting-started-with-github-copilot VS Code works with DelphiLSP and CoPilot - so that is a clear candidate. -
Why? In my experience, coming together periodically has been invaluable - particularily in the phase where design requirements and decisions have been on the table. Whiteboard + access to actual production premises and people has been crucial. No text description can convey the same knowledge as being able to observe the users/operators in person, doing the tasks your software assists them with. One could argue that should be the job of architects, but for my projects, the developers have also been the architects. Another case is in discovery and learning phases - having frictionless access to people for numerous short discussions, lowers the inclination of the learning curve. Can it be done via Teams/etc? Sure, but - in person is more efficient. As always, the needs depends on the project / team.
-
TDate convertion for default (0) value to empty string (livebinding)
Lars Fosdal replied to JohnF's topic in RTL and Delphi Object Pascal
Note - I've not tried this with TDate - but in theory it should behave the same?