-
Content Count
2268 -
Joined
-
Last visited
-
Days Won
46
Everything posted by Fr0sT.Brutal
-
Better way to maintain a list in a database table??
Fr0sT.Brutal replied to Ian Branch's topic in General Help
So you have problems if you try to feed these logs to some generic log-reader software. They usually able to read JSON-lines files but your hybrid format will require customized scripts. I personally like JSON-lines format for logs intended for automatic processing. Logs that are just informational and intended for reading by human are tab-separated sets of time-message level-sender-message columns -
Tlist<T> growth strategy is bad.
Fr0sT.Brutal replied to A.M. Hoornweg's topic in RTL and Delphi Object Pascal
Damn, the typo that breaks all meaning. Reallocations of course. -
Tlist<T> growth strategy is bad.
Fr0sT.Brutal replied to A.M. Hoornweg's topic in RTL and Delphi Object Pascal
You mean entering locked list of allocated blocks? Probably this will only make difference in multithread apps and FastMM4 as FastMM5 have been optimized for multithreading. Anyway I made benchmarks for stringbuilder that preallocates larger parts and dumb s:=s+'a' some time ago and saw no significant speedup. But again, this was just a single-thread app. -
amd-x64.nvidia-geforce.ms-win7.asus-monitor.genius-mouse.logitech-keyboard.en.delphipraxis.net 🙂
-
How the bitness of server relates to bitness of client? Nobody requires you to access x64-Apache-driven website with strictly x64 browser.
-
Tlist<T> growth strategy is bad.
Fr0sT.Brutal replied to A.M. Hoornweg's topic in RTL and Delphi Object Pascal
Anyway FastMM internally uses pre-reserve strategy for deallocations making +1 growth not so terrible -
How to free object compiled to Linux
Fr0sT.Brutal replied to Die Holländer's topic in Cross-platform
Maybe TJsonTextReader takes ownership on stringreader and frees it internally? -
Delphi 11.2 unofficial LSP patch
Fr0sT.Brutal replied to Brandon Staggs's topic in Delphi IDE and APIs
Then I can't get why this "do not use in production" warning. IDE has no relation to "production". Or they mean main dev environment? -
Destroy or clean TSaveDialog after save
Fr0sT.Brutal replied to Zazhir's topic in Algorithms, Data Structures and Class Design
and now you have memory leak -
DNS Query & Lookup Synced
Fr0sT.Brutal replied to chmichael's topic in ICS - Internet Component Suite
Another option (pseudocode): ev := CreateEvent(..) thr := TThread.CreateAnon( begin getaddrinfo(...) SetEvent(ev) end); thr.Start; WaitForSingleObject(ev, TIMEOUT) TerminateThread(thr.Handle) -
DNS Query & Lookup Synced
Fr0sT.Brutal replied to chmichael's topic in ICS - Internet Component Suite
By manually pumping messages, getting only those which were sent to socket control handle. -
Delphi 11.2 - Unable to use proxy with macOS target
Fr0sT.Brutal replied to softtouch's topic in Cross-platform
Proxy is not some black magic. HTTP CONNECT is the simplest, socks5 is a bit more complex but again nothing serious. Just implement this functionality by yourself. HTTP CONNECT you should be able to implement with regular request, for socks5 you have to access socket object but TNetHTTPClient seems to not expose any corresponding property. Or maybe try curl lib. -
MSBuild - set library paths without touching IDE options
Fr0sT.Brutal posted a topic in General Help
I want to write build scripts for my projects with zero-config, i.e. any IDE options are untouched. I managed to run MSBuild and specify subfolders for pickup but stuck at defining Library path. I have several components from which I want compiler to take DCUs not sources so UnitSearchPath doesn't fit. But when I'm setting the variable via command line, it overrides default paths: msbuild /property:DelphiLibraryPath="d:\mycomp\lib" myproj.dproj >error F1027: Unit not found: 'System.pas' or binary equivalents (.dcu) Env variables should have saved the day but alas they seem not be expanded when assigned via command line msbuild /property:DelphiLibraryPath="$(BDSLIB)\$(Platform)\release;d:\mycomp\lib" myproj.dproj >error F1027: Unit not found: 'System.pas' or binary equivalents (.dcu) Is there any option to add some library paths to default list? I'm aware of \AppData\Roaming\Embarcadero\BDS\9.0\EnvOptions.proj file which is imported by all projects and contains DelphiLibraryPath definition but that's the last hope. If there was an option to import a file from command line, that would work too but I only found files with command line arguments. The 2nd workaround is to create local file with required options and manually import it inside all project files but I still hope for a better solution. -
MSBuild - set library paths without touching IDE options
Fr0sT.Brutal replied to Fr0sT.Brutal's topic in General Help
Arrrr! My bad! I always considered this option as path to sources but seems it works for DCUs as well! There are still some weird errors of kind "Unit was compiled with a different version" but at least compiler actually looks for DCUs in these paths. -
Delphi 11.2 - Unable to use proxy with macOS target
Fr0sT.Brutal replied to softtouch's topic in Cross-platform
https://docwiki.embarcadero.com/RADStudio/Sydney/en/Using_an_HTTP_Client#Sending_a_Request_Behind_a_Proxy Proxy settings aren't the abilities you need. Apple knows best (/sarcasm/) -
DNS Query & Lookup Synced
Fr0sT.Brutal replied to chmichael's topic in ICS - Internet Component Suite
Why? Just break the loop and return error code -
Google "winapi start service"
-
Custom component - assessment
Fr0sT.Brutal replied to Stano's topic in Algorithms, Data Structures and Class Design
Just a passing-by comment: two paid libs used significantly limit the number of those who could build the component. -
ICS V8.70 announced
Fr0sT.Brutal replied to Angus Robertson's topic in ICS - Internet Component Suite
This could be probably important for servers or some complex encryption stuff but you don't need all of that just for connecting to a TLS server. RTL built-in net/http clients are powered by SChannel as well as famous cURL which optionally could rely on it as TLS engine -
MSBuild - set library paths without touching IDE options
Fr0sT.Brutal replied to Fr0sT.Brutal's topic in General Help
@programmerdelphi2k thanks for the tip, I didn't know about "Use MSBuild externally to compile" option. However, this won't help to solve the issue. Library paths are defined at IDE level and saved into shared file EnvOptions.proj in APPDATA what I'm trying to avoid. The most disappointing is that MSBuild doesn't expand $(..)-variables given to it in command line arguments -
Getting feedback from the execution. As exceptions or in another kind of management.
Fr0sT.Brutal replied to Juan C.Cilleruelo's topic in Python4Delphi
That's exactly I was giving a hint at. -
Getting feedback from the execution. As exceptions or in another kind of management.
Fr0sT.Brutal replied to Juan C.Cilleruelo's topic in Python4Delphi
so - ? -
Getting feedback from the execution. As exceptions or in another kind of management.
Fr0sT.Brutal replied to Juan C.Cilleruelo's topic in Python4Delphi
If there's TPythonGUIInputOutput , I guess there must be TPythonSomethingElseInputOutput -
"Always break line between else and if" vs. comments
Fr0sT.Brutal replied to uligerhardt's topic in GExperts
Ouch. Different indents look crazy. -
ICS V8.70 announced
Fr0sT.Brutal replied to Angus Robertson's topic in ICS - Internet Component Suite
I use ICS with plain sockets and my own SChannel wrapper for TLS so I don't have to bother with OpenSSL libs. omnibrain is right, it's a common practice to hide business-logic servers behind reverse proxies and load balancers that take care of all the TLS stuff. This config, in addition to easier maintenance, gives ability to use other TLS libs than buggy and non-backward-compatible OpenSSL. And local microservices will only uselessly suffer from performance loss because of en/decryption. I'm curious what exactly troubles do you experience with USE_SSL defines?