Jump to content

Lars Fosdal

Administrators
  • Content Count

    3319
  • Joined

  • Last visited

  • Days Won

    110

Everything posted by Lars Fosdal

  1. Legacy = Age > 4 years 😛
  2. Lars Fosdal

    New security requirements for code signing, disruptive ?

    I assume the documentation will improve as the support question queue grows 😛
  3. Lars Fosdal

    New security requirements for code signing, disruptive ?

    That is a conundrum. Our build VM is on an Azure host - so we don't even have access to the physical VM host. Edit: Slightly more informative: https://www.entrust.com/blog/2022/09/ca-browser-forum-updates-requirements-for-code-signing-certificate-private-keys/
  4. Lars Fosdal

    Which registry to edit

    Same problem - stay within the same topic, please. Fiddling with the HKLM reg keys requires local admin rights meaning the application needs to run elevated. I would be sceptical of apps requesting to run elevated. Also, fiddling under the OS specific registry sections is not a good practice. Have you checked if https://learn.microsoft.com/en-us/windows/win32/printdocs/setprinter can address your needs?
  5. Lars Fosdal

    Cpp2 - Herb Sutter

    Why not just go for Rust instead?
  6. Lars Fosdal

    Printer port

    Printer config is usually done in the OS. Printer selection in the Delphi app.
  7. Lars Fosdal

    One large unit vs multiple small units

    https://stackoverflow.com/questions/29737035/can-someone-explain-the-branch-opcode-in-arm indicates a +/- 32MB relative jump range?
  8. Lars Fosdal

    One large unit vs multiple small units

    It depends. If classes naturally belong together, and are not suitable for general usage - i.e. they are specialized for a purpose - I don't see a problem with "lumping them together". If they are merely building blocks, and will be reused in a multitude of other classes, it is better to try to keep them small and simple. The most challenging task is to avoid circular references and polluting "clean classes" with methods that use types from other classes. When you need such bridges - you need to take extra care in how you design them. Use dependency injection, use adapter/proxy classes, divide and conquer.
  9. Lars Fosdal

    Deleting string wich does include number

    I prefer not to give explicit answers to educational questions. Having to understand a description of how to implement the answer is better learning than being given the answer. That said: LastDelimiter - a little tidbit that I didn't know existed - although it appears to origin from the days of PChar.
  10. Lars Fosdal

    Deleting string wich does include number

    There is no magic function for this. F.x. you could for each string, go through each character and increment a counter if the character is a number. If the counter = 0 after the count, the word should be excluded? Edit: There also is an optimization that can be applied to the above suggestion.
  11. Lars Fosdal

    HoursBetween

    @Henry Olive - (EndIndex - StartIndex) / 2 17:30 - 17:30 = (0 - 0) / 2 = 0 17:30 - 18:00 = (1 - 0) / 2 = 0.5 18:00 - 18:30 = (2 - 1) / 2 = 0.5 ... 17:30 - 00:00 = (13 - 0) / 2 = 6.5 23:30 - 00:00 = (13 - 12) / 2 = 0.5
  12. Lars Fosdal

    The Delphi 11.2 release thread

    I did years with DLL Hell. Monolithic FTW.
  13. Why do you specify both a host and an address? What is an "ethernet server" ?
  14. Lars Fosdal

    any body can write this code by delphi?

    Well, not quoting the entire post would be good start...
  15. Lars Fosdal

    The Delphi 11.2 release thread

    After so many versions and the Parnassus issues - it would be great if they finally could fix it properly 😕
  16. Lars Fosdal

    The Delphi 11.2 release thread

    ... or later, I would assume - but yes - Windows 7/8 is out of scope - as is 32-bit host OSs.
  17. Are you missing the application/json content type? Or is it an authentication issue - the 401 seems to indicate that.
  18. Lars Fosdal

    Encoding accented char in JSON format

    What format is the dataset string field? Have you tried converting it to UTF-8?
  19. Lars Fosdal

    11.2 Pre-Upgrade Checklist / back out plan

    10.3 and 10.4 were major versions. Then you got 10.3.n and 10.4.n as incremental upgrades. They changed this with version 11. 11.0, 11.1 and 11.2 are the same version.
  20. Available for subscribers from https://my.embarcadero.com/#downloadsPage What's new: https://www.embarcadero.com/products/rad-studio/whats-new-in-11-alexandria Change log: https://docwiki.embarcadero.com/RADStudio/Alexandria/en/11_Alexandria_-_Release_2 Installed and upgraded smoothly in my test VM Well, except the GetIt plugins... so those needs to be manually reinstalled from the GetIt dialog.
  21. Lars Fosdal

    Delphi or Lazarus/Free Pascal

    Lazarus can't handle my generics.
  22. Lars Fosdal

    Execute external program/command and capture output

    https://www.fmxexpress.com/read-and-interact-with-a-command-line-pipe-in-delphi-xe7-firemonkey-on-mac-osx/ NVM: Dead link inside article 😕
  23. You really, really, REALLY don't want to expose direct DB queries to your database. A proper scalable and securable REST frontend is a must, IMO - unless it is some basement hobbyist project.
  24. Lars Fosdal

    Dynamic Linking in Delphi

    What type of files?
×