Jump to content

Rollo62

Members
  • Content Count

    1977
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by Rollo62

  1. Rollo62

    macOS Ventura 13.4.1, any comments ?

    I wonder if you are still able to install the latest XCode, SDKs and tools without problems ? My older MacBook from 2013 stuck on Catalina as the latest version, never checked if it can be used for development ever since.
  2. Could this be related to 24Bit vs. 32Bit images ? https://stackoverflow.com/questions/57143845/mtktextureloader-messes-png-rgb-vs-bgr-formats https://developer.apple.com/documentation/accelerate/conversion https://stackoverflow.com/questions/46886993/how-to-determine-whether-the-colour-format-is-rgb-or-bgr https://developer.apple.com/documentation/coregraphics/cgcolorspacemodel?language=objc
  3. Could this be related to changes in the intent-filter ? https://lecturepress.com/academy/object-pascal/launch-external-apps-from-delphi-android-apps/ https://medium.com/androiddevelopers/making-sense-of-intent-filters-in-android-13-8f6656903dde
  4. Rollo62

    macOS Ventura 13.4.1, any comments ?

    Well fine then, I'm not the only one Downgrading is not an option for me right now. I'm hesitating to install the new version 13.4.1, not sure if it makes things better or worse. This update is only about security, not mentioning any performance or other improvements.
  5. Rollo62

    VCL Wrap

    Wouldn't it be more clean to use the interposer without the intermediate class wrapper TSuperButton ? https://zarko-gajic.iz.hr/delphi-interceptor-classes-tbutton-classtbutton/ type TButton = class(stdctrls.TButton) private fLastClickTime: TDateTime; public procedure Click; override; public property LastClickTime : TDateTime read fLastClickTime write fLastClickTime; end;
  6. Rollo62

    E-Payment processing software for Delphi

    Aside the technical challenges, my first question would be, how much Apple and Google will Charge for such InAppPurchase of a burger? If you run locally on your own infrastructure, thats fine, but an app in the stores has myriad of restrictions. Or are you talking about Windows even?
  7. Rollo62

    How can I enlarge the font of a Combobox in Delphi FMX?

    Be aware that the editing structure of styles and their subcomponents were not necessarily compatible under all platforms. Which is the biggest headache in FMX styles IMHO.
  8. Hi there, I just saw this advice from the website Softacom, about creating successful websites: While that is perhaps true, this article didn't mention the dangerous side-effects of CDN: At least in Europe, if you use CDN, e.g. Google Fonts, you can be sued by law firms for violating data protection laws. This can result in quite high penalties and fines. Furthermore, public liability insurers for companies may find a breach of their terms and conditions, due to increased risk, and cancel the contract or increase prices. It is therefore advisable to also look at the commercial side of things, even if the technical advice is extremely plausible. In addition to the commercial side, I have always been an advocate of using one's own server space instead of an external CDN in order to minimize access to external servers and perhaps even get better performance.
  9. Rollo62

    How To Debug This Memory Leak?

    Interesting, what exactly you mean by “reapply” ? Did you just reload the style file into the StyleBook ? Maybe the StyleBook contained an older *.style file version, from an older IDE version, that could explain the differences. I never checked for changes in style files from IDE version to version, but perhaps I should do that.
  10. I am not working with that, but here is another option worth looking at, from SDL Component Suite. Seems still active, but I cannot really look deeper into the offers they have, maybe its not active anymore. They have a second site too, probably this is more active. Perhaps, this is interesting too, from a book, but Pascal. Not sure, possibly both need larger conversions, if you want to use them under FMX.
  11. Rollo62

    Something like SimpleNote with an API?

    Not sure if you find NextCloud too fat for your solution, I dont bother about its <= 100MB size ? Of course, this is so much more, than a simple note taker. But this is small, perfectly maintained, has smooth update process, gives full control over all aspects of sharing, accounts, and so on, has free apps, WebDAV support, offers an API access, runs on a simple, virtual PHP server ... Notes can be edited as MarkDown ( as one of the simplest options ), with Online editor and good-working Apps available. I'm still testing and dive deeper and deeper into NextCloud for my personal and private small teams, and this is veeeery smooth so far. Probably, you like and get more familiar with that too
  12. I'm not sure what problem you need to solve, but for me, UTF8 works well under all platforms. Honestly, I have not checked for any UTF8 compatibility issues on the different platforms, because I use my own translation system. Did you find any specific issues with UTF8, do you have an example ?
  13. this = the AV exception Like I said, I doubt this can be catched safely, because the system is highly unstable probably. The better way would be to determine and limit the stack size usage in the first place. Maybe this is also interesting reading: https://blog.grijjy.com/2019/01/25/allocation-free-collections/ https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Default_Exception_Handling_in_VCL https://stackoverflow.com/questions/6150018/what-is-a-safe-maximum-stack-size-or-how-to-measure-use-of-stack https://itecnote.com/tecnote/delphi-a-safe-maximum-stack-size-or-how-to-measure-use-of-stack/ https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Memory_allocation_sizes_(Delphi) https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Reserved_address_space_for_resources_(Delphi) https://www.thoughtco.com/understanding-memory-allocation-in-delphi-1058464 http://unigui.com/doc/online_help/thread-stack-size.htm Not sure how to determine the current used and available stack size in the modern Windows ( and other platforms ) world, not have needed that for the last 15 years or so.
  14. Thanks, so that means it would be able to catch this in the global exception handler ? https://www.swissdelphicenter.ch/de/showcode.php?id=819 https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Default_Exception_Handling_in_VCL
  15. Perhaps these notes from Dave were useful here as well: https://en.delphipraxis.net/topic/8065-how-can-i-handle-the-javascript-result/?tab=comments#comment-68093
  16. Have you tried to encapsule this in try-finally-except, in the highest level caller ? I doubt that this will catch any possible failure cases, but maybe if it does, this could at least help to close the app gracefully.
  17. https://blog.grijjy.com/2017/01/30/efficient-and-easy-to-use-json-and-bson-library/
  18. TL;DR; There was a scripting solution from freeonterninate: ScriptGate https://bitbucket.org/freeonterminate/scriptgate/src/master/ I don't use this currently and this is quite old, so I would bet it's not working anymore with current TWebBrowser. Maybe it will be helpful anyway, and you might get this working (again ?). Would be great to get some feedback on the status of this project.
  19. Rollo62

    write text on image with specific position fmx

    Yes, additionally the scaling behavior might change with platform and different devices, it can be 1,2,3, whatever. Then you have scaling of the bitmap, scene, text matrix, etc. That's why I prefer a "canvas" that is not so much device-depended, like Image32, If this solution works for you, then better check on various different platforms and devices too.
  20. If your circles are that critical, maybe it's worth if you are looking into Skia4Delphi, which is the next, new hot thing in town. It is well-supported and in favor of Embarcadero too, but probably adding a lot of extra baggage too, but seems to have endless possibilities on the cons side :-)
  21. Rollo62

    write text on image with specific position fmx

    If it's for the purpose of just showing an image with text, I would recommend TImage32, or other libraries. Maybe solutions based on SVG or Skia as well, but TImage32 seems to be the most clean and small solution to just the TImage replacement, with a lot of extras. FMX internally has a lot of Scaling questions, which may drawing on a canvas make it not trivial and different on varous platforms and devices.
  22. I am not sure what you want to achieve, but probably you should look after methods that make use of resampling. https://stackoverflow.com/questions/11190472/transparent-image-control-with-resampling-in-delphi I would recommend Image32.
  23. Rollo62

    Python over Delphi

    Why dont you ask what you really interested in, why Delphi invests so much in Python. The more detailled and precise your input, the better the output.
  24. Have you tried to use it in/after FormShow?
  25. Rollo62

    K-Software

    Better check whats going on with USB-Token requirements. I'M still fine, have 2.5 years validity left, and hope then after that it will be all smooth and easy.
×