Jump to content

Lars Fosdal

Administrators
  • Content Count

    3416
  • Joined

  • Last visited

  • Days Won

    113

Everything posted by Lars Fosdal

  1. 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.
  2. 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
  3. Lars Fosdal

    The Delphi 11.2 release thread

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

    any body can write this code by delphi?

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

    Encoding accented char in JSON format

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

    Delphi or Lazarus/Free Pascal

    Lazarus can't handle my generics.
  13. 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 😕
  14. 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.
  15. Lars Fosdal

    Dynamic Linking in Delphi

    What type of files?
  16. 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.
  17. 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... 😛
  18. 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
  19. 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.
  20. 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.
  21. Lars Fosdal

    64 bit shift operations?

    So, it was not the operator, but the type the operator operated on.
  22. Lars Fosdal

    64 bit shift operations?

    Maybe you need to cast the 1 to uint64 too? Edit: Checked - It works with function bit(idx,value: uint64): Boolean; begin Result := ((uint64(1) shl idx) and value) <> 0; end;
  23. I'd watch the video... and rant about it afterwards 😉
  24. Anyways, ARC has gone the way of the Dodo. Free(AndNil) it is.
×