-
Content Count
3319 -
Joined
-
Last visited
-
Days Won
110
Everything posted by Lars Fosdal
-
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... -
After so many versions and the Parnassus issues - it would be great if they finally could fix it properly 😕
-
... or later, I would assume - but yes - Windows 7/8 is out of scope - as is 32-bit host OSs.
-
How to use data-raw json in body with RESTRequest?
Lars Fosdal replied to Ranja AZ's topic in Network, Cloud and Web
Are you missing the application/json content type? Or is it an authentication issue - the 401 seems to indicate that. -
Encoding accented char in JSON format
Lars Fosdal replied to DavidOne's topic in Network, Cloud and Web
What format is the dataset string field? Have you tried converting it to UTF-8? -
11.2 Pre-Upgrade Checklist / back out plan
Lars Fosdal replied to SwiftExpat's topic in Delphi IDE and APIs
10.3 and 10.4 were major versions. Then you got 10.3.n and 10.4.n as incremental upgrades. They changed this with version 11. 11.0, 11.1 and 11.2 are the same version. -
11.2 Pre-Upgrade Checklist / back out plan
Lars Fosdal replied to SwiftExpat's topic in Delphi IDE and APIs
-
Available for subscribers from https://my.embarcadero.com/#downloadsPage What's new: https://www.embarcadero.com/products/rad-studio/whats-new-in-11-alexandria Change log: https://docwiki.embarcadero.com/RADStudio/Alexandria/en/11_Alexandria_-_Release_2 Installed and upgraded smoothly in my test VM Well, except the GetIt plugins... so those needs to be manually reinstalled from the GetIt dialog.
-
Lazarus can't handle my generics.
-
Execute external program/command and capture output
Lars Fosdal replied to softtouch's topic in Cross-platform
https://www.fmxexpress.com/read-and-interact-with-a-command-line-pipe-in-delphi-xe7-firemonkey-on-mac-osx/ NVM: Dead link inside article 😕 -
Postgresql in the cloud, possible for Desktop App?
Lars Fosdal replied to mvanrijnen's topic in Network, Cloud and Web
You really, really, REALLY don't want to expose direct DB queries to your database. A proper scalable and securable REST frontend is a must, IMO - unless it is some basement hobbyist project. -
What type of files?