Jump to content

Lars Fosdal

Administrators
  • Content Count

    3323
  • Joined

  • Last visited

  • Days Won

    110

Everything posted by Lars Fosdal

  1. Lars Fosdal

    Delphi 11.3 is available now!

    I see others have issues with the Migration tool. Backup your registry before using the tool.
  2. Lars Fosdal

    Desktop path crossplatform?

    It is a problem if you are on older than XE4.
  3. Lars Fosdal

    Delphi 11.3 is available now!

    I also used the WebInstall in the VM. Three component packages, and Bookmarks+Navigator. The only thing I export (registry dump) is my Editor color settings. The rest of the settings are pretty much vanilla, except Font, AutoSaves, Reopen last, and two environment vars. I'll prolly have to re-ignore a few exceptions, though. My production installations won't see 11.3 for a few weeks. That should be enough time for any surprises to be discovered. The definition of a pessimist? An optimist with experience.
  4. Lars Fosdal

    Delphi 11.3 is available now!

    DL'ing before the masses, perhaps?
  5. Lars Fosdal

    Delphi 11.3 is available now!

    Available now as web installer and ISO installer from https://my.embarcadero.com/#downloadsPage Blog article https://blogs.embarcadero.com/announcing-the-availability-of-rad-studio-11-3-alexandria/ Release Docs https://docwiki.embarcadero.com/RADStudio/Alexandria/en/11_Alexandria_-_Release_3 Release Notes https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Release_Notes New features and fixes https://docwiki.embarcadero.com/RADStudio/Alexandria/en/New_features_and_customer_reported_issues_fixed_in_RAD_Studio_11.3
  6. Again, Charlesproxy handles http and https and will give full insight in what Postman and your app sends - url, body and headers. I used it myself to figure out what a C# app did with an OAuth2, that my Delphi app didn't do. The trial version is functional, but annoying (no copying, pauses at odd times) - but a full license is reasonably priced
  7. https://www.charlesproxy.com/ is a great tool for pin-pointing issues with authentication on https connections.
  8. https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Default_Keyboard_Shortcuts is pretty exhaustive.
  9. I am stumped. I can't convince the Delphi TRESTClient to connect to a system using OAuth2 authentication. Either it is a about a parameterization mistake, or it is a functional failure. I can't get it to work with the REST debugger either. Any examples (Other than the RESTdemo) would be appreciated! I have C# code that uses the same creds, and it has no issues. I get access to the system using the Authentication URL with the clientid + clientsecret I request a token through a different URL I call the API URL, using the token
  10. Is that a standard Delphi component, or third party? Are you still using Delphi XE6?
  11. Lars Fosdal

    Creating FMX controls in a background thread

    Looks like you are right, and according to this thread,
  12. Lars Fosdal

    Creating FMX controls in a background thread

    TBitmap can be created and manipulated in a thread, but there are caveats. https://www.google.com/search?q=delphi+tbitmap+threadsafe
  13. Lars Fosdal

    One place to rule them all???

    We create all these in code. No visual components used. We have no sea of DB components floating in designers. It requires a bit more scaffolding code, but it can be generalized and made threadsafe.
  14. Lars Fosdal

    Creating FMX controls in a background thread

    The challenge is that to do the drawing, you need a long series of calls to retrieve device info as well as setting up values and UI elements. When accessing the UI in it self is not threadsafe in the underlying OS - it becomes pretty much impossible. Windows UI APIs - not threadsafe Linux Gnome GDK/GTK+ - not threadsafe Android UI toolkit - not threadsafe Apple iOS UIKit - not threadsafe and creating the control structure is such a miniscule task in itself. Of course you can build data structures, models, etc in a thread, but the real work happens towards the UI - which cannot be made treadsafe.
  15. Lars Fosdal

    The software industry has moved to the Web, why?

    This is why you have a product team. A group of people that knows the problem domain, the IT technology, the operative side, the enduser side. Summary There is no single one true solution Change is inevitable Adapt and overcome
  16. Lars Fosdal

    OAuth2 bearer token example?

    That is more or less the industry standard of how to authenticate.
  17. Lars Fosdal

    VCL - DevExpress

    To decide if a library is relevant, start with identifying your needs. What are the must-haves. Then, make list of options (i.e. different libs, VCL, FMX, TMS, DevExpress, etc) and start ticking boxes. All of these have a massive amount of functionality, so it is impossible to give a blanket recommendation. To give f.x. DevExpress a "must have" status, depends entirely on your needs. In the end, you need to decide if the price is worth it.
  18. Mine takes the SQL table create statement and creates the wrapper class in Delphi, as well as the database stored procs.
  19. Lars Fosdal

    The software industry has moved to the Web, why?

    On the contrary, more and more of our services are off-prem in-cloud. Yes, there are situations where this is bad - but there are ways to remedy this - f.x. with on-prem caches for production related data. As for loss of connection to internet - with multiple diversely routed ISPs as well as 4G/5G backup - that scenario is not really present for us. As always, there is no one-solution-fits-all, but right now, the pendulum is way over towards cloud hosted web apps.
  20. Personally, I think ChatGPT in it's current form is nearly useless for code generation. The examples it produces are trivial, and in many cases incorrect, incomplete or dangerous. Take the SQL - I've been indoctrinated with the notion that you don't do insert/update/delete statements from applications. You create SQL functions that do that job, and send the parameters. Why? Because you can grant execute rights to the user for these functions, and deny them the option of doing direct insert/update/delete - and hence reduce the risk of SQL injection significantly. The ability of ChatGPT to analyze and describe code is handy, although, I would not consider passing proprietary code to ChatGPT. It does not forget, and you risk that code, model or algorithm will be exposed in somebody elses response. And, although it is alluring, if you use ChatGPT to educate you in code that you have not used before, you have very little insight into the correctness or completeness of the code. I am going to wait a generation or two until the flaws have been addressed, and stick with using the AI to create interesting images. Edit: It struck me - ChatGPT for code is like Autotune for vocalists. It can be used for interesting effects, or making the mediocre presentable.
  21. Lars Fosdal

    OAuth2 bearer token example?

    What lacks in this example is that the bearer token can be a temporary token, and you first have to authenticate to retrieve the bearer token and the renewal token, and use the renewal token periodically to update your tokens.
  22. Lars Fosdal

    The software industry has moved to the Web, why?

    The enterprise loves this because of zero deployment As long as your desktop/laptop has the appropriate browser, all you need is the URL. No need to install, update, patch, and you can work from anywhere without an high-powered laptop. Rolling out apps to thousands of PCs is a chore - and maybe the user have installed something that interfers with the new version. Rolling out a new web version is simply a tweak of a URL redirect, rolling back - the same. No deployed files that can be copied and reverse engineered or used without credentials. As for the quality of the web apps - that varies a LOT - but the good ones are on par with the desktop editions.
  23. What is it supposed to do? If it is only simple local logging, there are alternatives?
  24. Just keep reporting them, and we'll clean house as soon as possible.
  25. Lars Fosdal

    TVideoCaptureDevice will not run in (Delphi 10.2.3)

    I spotted this. Not sure if relevant? https://stackoverflow.com/questions/45502430/how-to-access-camera-on-a-windows-tablet-with-firemonkey
×