-
Content Count
3504 -
Joined
-
Last visited
-
Days Won
115
Everything posted by Lars Fosdal
-
Having fun with Delphi
Lars Fosdal replied to Attila Kovacs's topic in Algorithms, Data Structures and Class Design
@Attila Kovacs What about System.IOUtils.TPath.Combine? -
How secure is your WordPress installation?
Lars Fosdal replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
I pay an arm and a leg for WordPress' own hosted version for https://larsfosdal.blog so I that wouldn't have to think about these things. I wonder if that also leaks these things? -
Common callback functions, or not?
Lars Fosdal replied to Mike Torrettinni's topic in RTL and Delphi Object Pascal
@Dany Marmur Unless they added new warnings in 10.4, they do not? It is perfectly legal to capture a variable or property whose content may change during execution, while you wanted to capture a specific value of that variable or property. It is easy to miss. The workaround is to always assign that variable to a local variable that you reference in the anon method. -
Common callback functions, or not?
Lars Fosdal replied to Mike Torrettinni's topic in RTL and Delphi Object Pascal
I like anon procs too - but unfortunate variable captures can be easy to miss. -
https://www.crystalnet-tech.com/RuntimeLibrary/RuntimeLibrary4Delphi Have any of you tried this lib?
-
I don't use LiveBindings, but intuitively that doesn't strike me as something that I would do in a data change driven event? But - then again, I don't use LiveBindings.
-
CrystalNet - .Net Runtime Library for Delphi
Lars Fosdal replied to Lars Fosdal's topic in Delphi Third-Party
Yeah, I wondered about that one too. Maybe it is just smoke and mirrors... -
Offline Installer - GetIt doesn't work with msg JSON metadata not found ?
Lars Fosdal replied to Lars Fosdal's topic in Delphi IDE and APIs
I think I have seen at least four posts about this issue, so here is a sticky. -
get it , RADSTUDIO JSON metadata not found ?
Lars Fosdal replied to FranzB's topic in Delphi IDE and APIs
-
IDE Reopen not reset directory to that of the project
Lars Fosdal replied to alogrep's topic in Delphi IDE and APIs
My bad. Tokyo of course. Still valid for W7SP1. It does look like something on your PC. If you have a good workstation with Windows 10 Pro, you can enable Hyper-V and easily run a Windows 7 installation in a VM. Having Checkpoints when you are happy with an installation allows you to quickly roll back if something breaks. -
Give me patience. NOW!
-
IDE Reopen not reset directory to that of the project
Lars Fosdal replied to alogrep's topic in Delphi IDE and APIs
10.2 = Berlin - and it is supposed to work under Windows 7 Service Pack 1 However - I am pretty sure that Berlin didn't change two months ago. As far as I can remember, the folder that File Open uses has always followed the file you currently have in front in the editor . There is one exception: if you have the welcome page in front, the directory appears to be the directory of the most recently opened project. -
CrystalNet - .Net Runtime Library for Delphi
Lars Fosdal replied to Lars Fosdal's topic in Delphi Third-Party
Just wondering how they do it. Seems they have a .NET Core lib in the works as well. -
https://github.com/TurboPack/AsyncPro ?
-
This could be an interesting companion to VS Code with OmniPascal.
-
How-to: Post a message to Teams using WebHooks
Lars Fosdal posted a topic in Tips / Blogs / Tutorials / Videos
https://larsfosdal.blog/2020/10/16/post-a-message-to-teams-from-delphi-using-webhooks/ -
How-to: Post a message to Teams using WebHooks
Lars Fosdal replied to Lars Fosdal's topic in Tips / Blogs / Tutorials / Videos
TRESTClient is supposed to be in the Professional SKU. The SO link I posted explains how to fix the exception for 10.2. -
How-to: Post a message to Teams using WebHooks
Lars Fosdal replied to Lars Fosdal's topic in Tips / Blogs / Tutorials / Videos
Isn't Indy in the Pro version? -
I logged in and was not asked to do deal with a captcha.
-
How-to: Post a message to Teams using WebHooks
Lars Fosdal replied to Lars Fosdal's topic in Tips / Blogs / Tutorials / Videos
Googled a bit: https://stackoverflow.com/questions/42096402/eipabstracterror-while-creating-delphi-trestclient -
How-to: Post a message to Teams using WebHooks
Lars Fosdal replied to Lars Fosdal's topic in Tips / Blogs / Tutorials / Videos
Is https://limelect.com the URL you tried? The URL you use, must be the webhook URL you have configured in your Teams channel. In your MS Teams team, select the desired channel, and click on Connectors from the ••• menu. In that channel you must define an Incoming Webhook. -
How-to: Post a message to Teams using WebHooks
Lars Fosdal replied to Lars Fosdal's topic in Tips / Blogs / Tutorials / Videos
@limelect I removed the other post. I don't have 10.2 so I can't check if I see the same error. Did you get this error in a bare bone test project, or in a bigger project? -
Make sure that any unit or resource path in the project has a relative path and/or use internal environment variable overrides. That enables you to safely copy the project folder to a new folder. If you are going to copy/paste a form from an old project to a new project - why rename the form at all? Can't the form be reused or be made to be reusable?
-
FYI: New Approximate algorithm for travelling salesman problem
Lars Fosdal replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
The interesting part is that there is still room for improvement - and if it is a significant one - it will have huge implications. -
How-to: Post a message to Teams using WebHooks
Lars Fosdal replied to Lars Fosdal's topic in Tips / Blogs / Tutorials / Videos
Spotted one challenge with TRESTClient. No easy way to override the flags to ObjectToJsonString.