-
Content Count
3483 -
Joined
-
Last visited
-
Days Won
114
Everything posted by Lars Fosdal
-
Do you want to do it in the generating app, or do you want to check the XML by validating against a schema (xsd)? Personally, I would have done it in Delphi. So much faster and a lot less trouble.
- 12 replies
-
You can feed data to Python, do the calculations in Python, get the data points back to Delphi and then feed them to TChart. It is rare that you find ready-made code that does what you want. Most of the time you must do the work yourself.
-
For less "redirections": https://blogs.embarcadero.com/rad-studio-11-2-alexandria-patch-1-available/
-
The patch appears in GetIt and you get a reminder on the welcome page?
-
Facebook 😞
-
Is it reproduceable if you make a new project from scratch? If it is - register the problem on the quality site.
-
Lazy loading progressbar dialog
Lars Fosdal replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
Design wise, it depends a lot on whether your app can keep working while progress is ongoing or not. In some places - I just keep a panel hidden on top of the main window and expand it when I need to alert the user to why the app is blocking/busy. The content of that can be messages, a checklist, or a progress bar. Here a launch message "Forbereder oppstart av TineAdmin for Brummundal Test" (Preparing startup of Tine Admin for ...) after the user clicked the TineAdmin icon on the toolbar. This app is a little bit unusual as it doesn't have a main menu - but when it does - and I am blocking - I disable and update it. The benefit of using a panel is that it doesn't interfere with the window functionality when it the operation is non blocking. In other cases, I have a floating window on top with some messages. Here for login progress (Checking version) -
Lazy loading progressbar dialog
Lars Fosdal replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
I like these messages that some use instead of a progress bar. A progress bar is linear - while the messages don't necessarily imply a linear time flow. Getting started Putting the ducks in a row Cleanup on isle four Seeing our target Just one more thing We have arrived -
New security requirements for code signing, disruptive ?
Lars Fosdal replied to A.M. Hoornweg's topic in General Help
DaaS - Dongles as a Service -
Which version of Delphi? P.S. You can configure that on your profile, so that you don't have to explain it every time.
-
Weird code in THttpConnection.ProcessWellKnownDir
Lars Fosdal replied to Kyle_Katarn31's topic in ICS - Internet Component Suite
Legacy = Age > 4 years 😛 -
New security requirements for code signing, disruptive ?
Lars Fosdal replied to A.M. Hoornweg's topic in General Help
I assume the documentation will improve as the support question queue grows 😛 -
New security requirements for code signing, disruptive ?
Lars Fosdal replied to A.M. Hoornweg's topic in General Help
That is a conundrum. Our build VM is on an Azure host - so we don't even have access to the physical VM host. Edit: Slightly more informative: https://www.entrust.com/blog/2022/09/ca-browser-forum-updates-requirements-for-code-signing-certificate-private-keys/ -
Same problem - stay within the same topic, please. Fiddling with the HKLM reg keys requires local admin rights meaning the application needs to run elevated. I would be sceptical of apps requesting to run elevated. Also, fiddling under the OS specific registry sections is not a good practice. Have you checked if https://learn.microsoft.com/en-us/windows/win32/printdocs/setprinter can address your needs?
-
Why not just go for Rust instead?
-
Printer config is usually done in the OS. Printer selection in the Delphi app.
-
One large unit vs multiple small units
Lars Fosdal replied to Oberon82's topic in RTL and Delphi Object Pascal
https://stackoverflow.com/questions/29737035/can-someone-explain-the-branch-opcode-in-arm indicates a +/- 32MB relative jump range? -
One large unit vs multiple small units
Lars Fosdal replied to Oberon82's topic in RTL and Delphi Object Pascal
It depends. If classes naturally belong together, and are not suitable for general usage - i.e. they are specialized for a purpose - I don't see a problem with "lumping them together". If they are merely building blocks, and will be reused in a multitude of other classes, it is better to try to keep them small and simple. The most challenging task is to avoid circular references and polluting "clean classes" with methods that use types from other classes. When you need such bridges - you need to take extra care in how you design them. Use dependency injection, use adapter/proxy classes, divide and conquer. -
I prefer not to give explicit answers to educational questions. Having to understand a description of how to implement the answer is better learning than being given the answer. That said: LastDelimiter - a little tidbit that I didn't know existed - although it appears to origin from the days of PChar.
-
There is no magic function for this. F.x. you could for each string, go through each character and increment a counter if the character is a number. If the counter = 0 after the count, the word should be excluded? Edit: There also is an optimization that can be applied to the above suggestion.
-
@Henry Olive - (EndIndex - StartIndex) / 2 17:30 - 17:30 = (0 - 0) / 2 = 0 17:30 - 18:00 = (1 - 0) / 2 = 0.5 18:00 - 18:30 = (2 - 1) / 2 = 0.5 ... 17:30 - 00:00 = (13 - 0) / 2 = 6.5 23:30 - 00:00 = (13 - 12) / 2 = 0.5
-
I did years with DLL Hell. Monolithic FTW.
-
Delphi TClientSocket can't connect to Arduino server, Socket error: 10061
Lars Fosdal replied to Dominik99's topic in VCL
Why do you specify both a host and an address? What is an "ethernet server" ? -
any body can write this code by delphi?
Lars Fosdal replied to mofareh's topic in Network, Cloud and Web
Well, not quoting the entire post would be good start...