-
Content Count
3456 -
Joined
-
Last visited
-
Days Won
114
Everything posted by Lars Fosdal
-
Cross platform HTTP client with proxy support?
Lars Fosdal replied to softtouch's topic in Network, Cloud and Web
@softtouch- ref. THttpClient on Mac - Access Violation - did you register an issue on the Quality portal? -
But... so much shit to clean up, and no time allocated to doing it... I'd go nuts.
-
Annoying warning message a'attribute declaration must precede definition'
Lars Fosdal replied to tester1234's topic in General Help
Find out where that attribute is declared and include the file? or... is this relevant: https://docwiki.embarcadero.com/RADStudio/Sydney/en/Workaround_for_C%2B%2B11_Attributes_(Clang-enhanced_C%2B%2B_Compilers) -
I'd be looking for a new job with a competent manager. This sounds like an ulcer-inducing task.
-
The iOS sizes are weird, and needs manual rescaling - so I get the sarcasm from @Anders Melander There was a thread with another Delphi tool that made icons, but I can't recall which post.
-
Wow, that IS weird.
-
I recently bought https://www.charlesproxy.com/ for debugging some https header issues. Easy to use and invaluable insights. It has a somewhat annoying trial version that may help you spot the difference between the Firefox and Delphi headers.
-
Are there any special attributes on the files not listed?
-
That depends somewhat on the platform you want your FMX to run on. The newer IcoFX versions has explicit support for Mac recommended sizes at least. I haven't checked if it has native icns support, but you can use another tool to convert the format. Delphi wants .png files in the various sizes for Android and iOS, so that is something that can be exported - but appear to accept both .ico and .icns for MacOS and Linux.
-
IcoFX is my goto tool for Icons. But, I have to admit I use the last free version: 1.6.4
-
I am at a loss for words... How old is this codebase?
-
Some more fun with ChatGPT and Delphi
Lars Fosdal replied to dummzeuch's topic in Tips / Blogs / Tutorials / Videos
Having an AI that can point out bugs or suggest improvements in MY code, is far more interesting than having purely AI generated code, IMO. On the other hand, I use the ISO8601 methods in System.DateUtils 😛 -
Another good read is https://www.oreilly.com/library/view/framework-design-guidelines/9780135896457/ It is not Delphi specific, but the advice is sound and actively applied to C#/.NET code by Microsoft. Also - the book I wish I had read during my education days. https://www.oreilly.com/library/view/code-complete-2nd/0735619670/
-
Fatal Error F2039 - Could not create output file
Lars Fosdal replied to Willi Fuchs's topic in General Help
Have you excluded the output folder from AntiVirus software? Also, have a look at https://learn.microsoft.com/en-us/sysinternals/downloads/process-explorer which can reveal what process that is holding the file. -
How do you handle TPM-Chip under virtual machines ?
Lars Fosdal replied to Rollo62's topic in Tips / Blogs / Tutorials / Videos
I stumbled on this: https://www.parallels.com/blogs/hyper-v-mac/ It doesn't say anything about TPMs, though, but https://kb.parallels.com/123975 mentions being able to run VMWare under Parallells - yet still no word on TPMs. Is that an approach you have explored? -
Fatal Error F2039 - Could not create output file
Lars Fosdal replied to Willi Fuchs's topic in General Help
Have you checked if an instance of the output app is still running? Does the problem persist if you restart the IDE? -
How do you handle TPM-Chip under virtual machines ?
Lars Fosdal replied to Rollo62's topic in Tips / Blogs / Tutorials / Videos
I assume you've already read: https://kb.parallels.com/en/122702 on TPMs? Duh, yes you had >< -
How do you handle TPM-Chip under virtual machines ?
Lars Fosdal replied to Rollo62's topic in Tips / Blogs / Tutorials / Videos
I recently moved my Hyper-V Windows 11 VM from my old laptop to my new laptop. After using the Hyper-V manager Export / Import features, there was one extra step to make the TPM for the old VM work on the new machine. That step was essentially migrating a couple of certificates from the old machine to the new machine. https://robinhobo.com/how-to-move-or-restore-a-windows-11-vm-in-hyper-v-with-tpm-enabled-shielded-vms/ (Also read the comments in the article for helpful tips) I also have Windows 11 for ARM running with TPM enabled under Parallells on a MBP M1 Pro, but since I only have one Mac, I have not researched migration there. I abandoned VMWare for Hyper-V some years ago. -
@WhitePortal Either your firewall, your router, DNS / hosts file, or your internet service provider, or something on the Embarcadero side of things is not letting your traffic through.
-
Is that built on TMS Biz?
-
That looks very promising, @Wagner Landgraf! I already have the code I need for pulling live specs and accessing the APIs. How deeply tied are the TMS Biz classes? Is the loaded Swagger/OpenAPI document class suitable for "plugging in" a custom class generator? I already have a set of framework classes that I want to create code for.
-
Better way to maintain a list in a database table??
Lars Fosdal replied to Ian Branch's topic in General Help
Today, if you are in the enterprise, splunk logging is all the rage. -
Better way to maintain a list in a database table??
Lars Fosdal replied to Ian Branch's topic in General Help
The format was made before JSON was a thing, but I should have had a tab as the separator after the header. The logs were meant to be human readable and referenceable text for RegEx searching. -
Better way to maintain a list in a database table??
Lars Fosdal replied to Ian Branch's topic in General Help
Local text logs are very handy and low cost. Just to give you some ideas... Since I have servers in many places, I ended up with a scheme that named the logfile something like this AppName.MachineName.LogContext.yyyymmdd-day-hhmm.pid-nnnn.log where the timestamp is when the logfile was created. That gives me a unique log name, across apps, servers and instances, and I can filter on the timestamp part of the name when I want to delete logs that is older than my limit. In memory, I write log entries to a circular buffer, and I have a background thread that "burst" write the log every second to avoid having the logging thread lagging on file operations. The logfile contains a "header" for each line which is applied when the log entry is added to the buffer. line number {hh:mm:ss,nnn (threadid) memoryload} log text Also, ensure that you don't write secrets to the log file. This particular logfile grows to about 250MB per day and rolls over to a new file at midnight. So, make sure that you have a mechanism that ensure your logs don't grow to infinity and that you delete the old ones, or your storage will suddenly be depleted. Database logs are great if accessing the machine where your process runs is cumbersome security-wise. But: If the database is unreachable, you have a problem - also, writing to a database is far more costly than writing to a local file.