Jump to content

Lars Fosdal

Administrators
  • Content Count

    3524
  • Joined

  • Last visited

  • Days Won

    116

Everything posted by Lars Fosdal

  1. 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?
  2. 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.
  3. 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.
  4. 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.
  5. 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
  6. Lars Fosdal

    The Delphi 11.2 release thread

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

    any body can write this code by delphi?

    Well, not quoting the entire post would be good start...
  9. 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 😕
  10. 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.
  11. Are you missing the application/json content type? Or is it an authentication issue - the 401 seems to indicate that.
  12. Lars Fosdal

    Encoding accented char in JSON format

    What format is the dataset string field? Have you tried converting it to UTF-8?
  13. 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.
  14. 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.
  15. Lars Fosdal

    Delphi or Lazarus/Free Pascal

    Lazarus can't handle my generics.
  16. 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 😕
  17. 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.
  18. Lars Fosdal

    Dynamic Linking in Delphi

    What type of files?
  19. Lars Fosdal

    Are the jcl and jvcl libraries still alive?

    Given that you pay for its service, rather than the software itself, I assume it does.
  20. Lars Fosdal

    Are the jcl and jvcl libraries still alive?

    Yeah... it is not the only tool we have that is subscription based, is it... 😛
  21. Lars Fosdal

    Are the jcl and jvcl libraries still alive?

    I've become very fond of GitKraken, which is adding improvements and features every month. https://help.gitkraken.com/gitkraken-client/current/#version-8-7-0
  22. Lars Fosdal

    Dynamic class member names

    @Fr0sT.Brutal The TJson RTTI to Json conversion doesn't work with the property names, but with the field names. See @Uwe Raabe's example that shows where the JSON name mangling is done by attributes.
  23. Lars Fosdal

    Dynamic class member names

    I assume you are in control of both ends of the communication. I'd compress and encrypt instead of bothering with obfuscation.
  24. Lars Fosdal

    64 bit shift operations?

    So, it was not the operator, but the type the operator operated on.
×