Jump to content

Lars Fosdal

Administrators
  • Content Count

    3416
  • Joined

  • Last visited

  • Days Won

    113

Everything posted by Lars Fosdal

  1. Lars Fosdal

    How do I convert from string to char?

    https://docwiki.embarcadero.com/Libraries/Alexandria/en/System.UnicodeString
  2. 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
  3. Lars Fosdal

    My carriage return and line feed isn't working

    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.
  4. looks a bit fishy...
  5. That is the problem with ChatGPT. It cannot be relied on.
  6. Lars Fosdal

    My carriage return and line feed isn't working

    Is there an EditResults -> Lines -> Add method?
  7. ASM is pretty much straight ASM32 or ASM64.
  8. 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.
  9. The configurations inherit values - can it be that your release version of the "failing" app has an override?
  10. Lars Fosdal

    Unicode weirdness

    @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?
  11. Another man's struggles with AI generated code. https://mastodon.gamedev.place/@badlogic/110139794125541730
  12. Lars Fosdal

    Unicode weirdness

    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.
  13. Lars Fosdal

    Unicode weirdness

    @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
  14. Lars Fosdal

    Forum for Spring4D

    I tried accessing that page, same problem.
  15. Lars Fosdal

    Choosing a Mac

    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..
  16. Before DelphiLSP, I used the OmniPascal extension in VS Code. I've not tried the one you linked.
  17. Lars Fosdal

    Delphi 11.1 compiled under MacOS Ventura

    @Glenn Dufke stated although that only indicates that to create Ventura compliant apps, you need 11.3.
  18. Lars Fosdal

    Choosing a Mac

    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.
  19. Lars Fosdal

    General Help Indeed...a long-shot here....

    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.
  20. Lars Fosdal

    How to change color of Title Bar without TTitleBar

    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?
  21. Lars Fosdal

    Delphi 11.1 compiled under MacOS Ventura

    A question of definition, I suppose. Without the Mac, you'll not have a binary that can be sideloaded?
  22. Lars Fosdal

    Delphi 11.1 compiled under MacOS Ventura

    Compiling / Building does need a Mac, since it uses XCode for the final steps.
  23. 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.
  24. Lars Fosdal

    Anyone know why?

    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.
  25. Note - I've not tried this with TDate - but in theory it should behave the same?
×