Jump to content

Lajos Juhász

Members
  • Content Count

    796
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Lajos Juhász

  1. Lajos Juhász

    Delphi beta testing a "premium" privilege?

    No, there is no reason to publish it anymore.
  2. Lajos Juhász

    Enterprise Coderage 2022

    I was able to register roughly 8 hours ago.
  3. Lajos Juhász

    Delphi beta testing a "premium" privilege?

    Why not? It's a priviledge to get access to some kind of "road map information". Their task is also to help to complete the version. This it's premium service of the customers towards the company!
  4. You should place the nodes after a copy in a list, during the copy operation you have to skip those nodes.
  5. Lajos Juhász

    Centered message?

    In order to calculate the required space you can use windows API DrawTextEx with format option DT_CALCRECT.
  6. Lajos Juhász

    Delphi 11.1 + patches - No debug source / breakpoints?

    I don't know please tell us. I have had a situation when I was unable to debug a package with one exe. Changed the application that is used for debugging (host application) then the break point worked every time. Next week I was able to debug with both applications.
  7. Lajos Juhász

    Code completion failure

    You will have to wait for a future version of the Delphi. Maybe the new IDE will resolve this issue (or an improved LSP server).
  8. Lajos Juhász

    Naming FireDac Connection Weird

    you have a local variable fdc. Try self.fdc.Connected:= True;
  9. Lajos Juhász

    Regex help please..

    This is an excellent suggestion. I doubt it is a must in Europe, I still receive sensitive information for other people in my e-mail account.
  10. Lajos Juhász

    Zeos on Delphi 11.2

    you should double check the path of the file the package tries to load. If the name of the dll is same for 32 and 64 bits there is always a possibility that windows first locates the 32 bit version.
  11. You have to replace /local/path/file.jpg with your pdf file and type=application/pdf.
  12. Lajos Juhász

    Sweet 16: Delphi/Object Pascal

    I wrote that in context that Asm has more than twice the rating of Delphi. I simply cannot believe that's true.
  13. Lajos Juhász

    Sweet 16: Delphi/Object Pascal

    For me Assembly language makes no sense. I wonder in 2022 who is still coding using asm (I doubt it's used widely in windows applications).
  14. Lajos Juhász

    downloads website

    If you are looking for the Registered Prodducts portal you can find it at https://my.embarcadero.com.
  15. My point was with that Wikipedia link that modified algorithms have their names. Like in the link the variation to find the elemest with lowest index is called binary_search_leftmost and not binary_search. That's true, but most developers expect that if an implementation reference to an algorithm it will implement that algorithm and not something else. That was the whole point to name algorithms in matemathics and computer science. That no matter from where you learned an algorithm you know how it works.
  16. This is the definition of the binary search: https://en.wikipedia.org/wiki/Binary_search_algorithm "The procedure may return any index whose element is equal to the target value, even if there are duplicate elements in the array. For example, if the array to be searched was {\displaystyle [1,2,3,4,4,5,6,7]}{\displaystyle [1,2,3,4,4,5,6,7]} and the target was {\displaystyle 4}4, then it would be correct for the algorithm to either return the 4th (index 3) or 5th (index 4) element. The regular procedure would return the 4th element (index 3) in this case. It does not always return the first duplicate (consider {\displaystyle [1,2,4,4,4,5,6,7]}{\displaystyle [1,2,4,4,4,5,6,7]} which still returns the 4th element). "
  17. I doubt, this is by definition how Binary search works. To get the lowest index you just to iterate from the matched item and find the lowest index.
  18. Lajos Juhász

    Android API31 Rad 11.1

    It's the same as you Embarcadero account.
  19. It's hard to verify code this large. One thing you're for every step create a query: gisShapeTypePolygon: begin qryUID := TADOQuery.create(self); This is not going to be a definite leak as it has self (most probably the form as the owner). The query will remain open until the owner is destroyed.
  20. That's not what I have Size: 1.80 MB (1,894,304 bytes) and my coy was signed by Idera, Inc.
  21. Lajos Juhász

    Possible changes to string/char handling in Delphi 11(.2)?

    Yeah, and breaks FireDAC as it converts from UTF-16 using the language for non-unicode programs instead of using conversion from client locale to server locale.
  22. Lajos Juhász

    Possible changes to string/char handling in Delphi 11(.2)?

    This is true for strings. However in the example it's used to assign the value to ansistring: var MyAnsiString: AnsiString; AnsiString is not a unicode string thus there is no chr(11200) most probably the code page of the ansistring will have no conversation for that unicode code point thus will be converted to ?
  23. Lajos Juhász

    Turbopower Visual Planit??

    At least I won this bet. You should always post the parent class as don't everyone will have the complete source. By openning the System.Classes.pas it's clear what to do: procedure TCustomMemoryStream.SetPointer(Ptr: Pointer; const Size: NativeInt); change the method signature to match.
  24. Lajos Juhász

    Turbopower Visual Planit??

    You should at least provide a compiler error message. From here we don't know which class it's inherited from. I don't like to gamble but will make an exception my guess is that you should change the parameters of the method to match the signature from the parent class?
  25. Lajos Juhász

    Attach to Process along with Stepping through Code

    Delphi 11 can be tough on debugging. I also have problem to debug a code in a package. Sometimes I can place a break point and works as expected sometimes I have to use ShowMessages to debug. Build all can help (but not always).
×