Jump to content

Alexander Elagin

  • Content Count

  • Joined

  • Last visited

  • Days Won


Alexander Elagin last won the day on October 30 2019

Alexander Elagin had the most liked content!

Community Reputation

81 Excellent

1 Follower

About Alexander Elagin

  • Birthday September 20

Technical Information

  • Delphi-Version
    Delphi 10.1 Berlin

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Alexander Elagin

    An XML DOM with just 8 bytes per node

    No, it is not.
  2. Yes, but the point was that one has to use the collection's Count property for indexing and never the Length of the internal array, as the array may have more elements (preallocated for possible expansion) than the real number of elements in the collection.
  3. Alexander Elagin

    Soap Server and client downloading files

    Convert the binary data to base64-encoded string and return it to the client which can decode it back to binary. In my experience, passing 2-5 megabytes this way does not cause any problems.
  4. There are two great functions in the DateUtils module: DateToISO8601 and ISO8601ToDate. They can save a lot of pain when it is needed to store date/time in text files.
  5. Alexander Elagin

    Anybody up for an ethics question?

    If the manager assumes the responsibility, then just have a written document signed by him - be it a specification or a simple memo. If things go wrong, you'll have you covered.
  6. Alexander Elagin

    Your RAD Studio 10.4 Sydney issues

    It is strange that 10.4 does not show access violation here while the error is obvious: c1 := 'A'; p := PChar(c1); // wrong explicit conversion: widechar to integer to pointer. // Now p is a pointer to the memory location at the address 0x00000041 - that is, the value of Ord(A) showmessage(p^); // here p^ points to memory location at 0x00000041, obviously not was meant by the author
  7. Alexander Elagin

    Rx10.4 new feature blogs

    So if I am the Primary Contact (as I paid the bill myself) I still have to assign myself somewhere as an Authorized Contact? Damn, the Embarcadero's sales model does not change with years, they are targeting businesses, not developers. And don't remind me about all this reseller-only distribution and obligatory quote request for updates ☠️...
  8. Alexander Elagin

    Rx10.4 new feature blogs

    Same here.
  9. Alexander Elagin

    The interfaces in Delphi are bad?

    I guess yes (the {$INTERFACES} directive is local) but honestly I have not tried it myself because it is incompatible with Delphi code
  10. Alexander Elagin

    The interfaces in Delphi are bad?

    You mean something like CORBA interfaces as implemented as FreePascal? They are exactly this: a set of methods, not refcounted.
  11. Alexander Elagin

    Difference between Pred and -1

    Pred() and Succ() are simple iterators defined for enumerable simple data types. If only they could be overloaded for other data types (lists, collections, whatever... maybe even for yield support) their usefulness would be much higher.
  12. Alexander Elagin

    Drone control from mobile

    There is nothing difficult. You can use a serial port (if the host PC doesn't have one, a simple USB-to-COM adapter will do) as a simple communication channel - serial data exchange has been used for decades in multiple industrial applications built with Delphi. In fact, this is the area (custom hardware control / monitoring) where Delphi is used in many companies, but of course most of these applications never appear in public.
  13. Alexander Elagin

    what is the possibility of having a rest/soap webapi in Delphi 2007

    There is well known RemObjects SDK which I think still supports even Delphi 7. Some interesting information regarding JSON support is here: https://talk.remobjects.com/t/how-to-call-rest-server-with-json/18771 . A standard SOAP support has been a part of Delphi RTL since forever and usually works without problems.
  14. Alexander Elagin

    HxD hex, disk and memory editor

    I have been using HxD since.. well... 2009 or 2010, I think. This is an excellent tool!
  15. Alexander Elagin

    FireDAC Postgresql performance vs ADO SQL/Server performance

    ExpressQuantumGrid by default (in the Bound mode) fetches all data from the database table and then uses it for the fast local filtering / sorting / etc functions without further database operations (unless an update is required). There is another mode (Server mode) where data is fetched as needed but in this mode local grid filtering is limited.