Jump to content

Fr0sT.Brutal

Members
  • Content Count

    2268
  • Joined

  • Last visited

  • Days Won

    46

Everything posted by Fr0sT.Brutal

  1. Fr0sT.Brutal

    Better way to maintain a list in a database table??

    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
  2. Fr0sT.Brutal

    Tlist<T> growth strategy is bad.

    Damn, the typo that breaks all meaning. Reallocations of course.
  3. Fr0sT.Brutal

    Tlist<T> growth strategy is bad.

    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.
  4. Fr0sT.Brutal

    D11.2 + FireDAC + MySQL 64 bit not working

    amd-x64.nvidia-geforce.ms-win7.asus-monitor.genius-mouse.logitech-keyboard.en.delphipraxis.net 🙂
  5. Fr0sT.Brutal

    D11.2 + FireDAC + MySQL 64 bit not working

    How the bitness of server relates to bitness of client? Nobody requires you to access x64-Apache-driven website with strictly x64 browser.
  6. Fr0sT.Brutal

    Tlist<T> growth strategy is bad.

    Anyway FastMM internally uses pre-reserve strategy for deallocations making +1 growth not so terrible
  7. Fr0sT.Brutal

    How to free object compiled to Linux

    Maybe TJsonTextReader takes ownership on stringreader and frees it internally?
  8. Fr0sT.Brutal

    Delphi 11.2 unofficial LSP patch

    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?
  9. Fr0sT.Brutal

    DNS Query & Lookup Synced

    Another option (pseudocode): ev := CreateEvent(..) thr := TThread.CreateAnon( begin getaddrinfo(...) SetEvent(ev) end); thr.Start; WaitForSingleObject(ev, TIMEOUT) TerminateThread(thr.Handle)
  10. Fr0sT.Brutal

    DNS Query & Lookup Synced

    By manually pumping messages, getting only those which were sent to socket control handle.
  11. Fr0sT.Brutal

    Delphi 11.2 - Unable to use proxy with macOS target

    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.
  12. 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.
  13. Fr0sT.Brutal

    MSBuild - set library paths without touching IDE options

    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.
  14. Fr0sT.Brutal

    Delphi 11.2 - Unable to use proxy with macOS target

    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/)
  15. Fr0sT.Brutal

    DNS Query & Lookup Synced

    Why? Just break the loop and return error code
  16. Fr0sT.Brutal

    English Version of GLibWMI??

    Google "winapi start service"
  17. Just a passing-by comment: two paid libs used significantly limit the number of those who could build the component.
  18. Fr0sT.Brutal

    ICS V8.70 announced

    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
  19. Fr0sT.Brutal

    MSBuild - set library paths without touching IDE options

    @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
  20. That's exactly I was giving a hint at.
  21. If there's TPythonGUIInputOutput , I guess there must be TPythonSomethingElseInputOutput
  22. Fr0sT.Brutal

    "Always break line between else and if" vs. comments

    Ouch. Different indents look crazy.
  23. Fr0sT.Brutal

    ICS V8.70 announced

    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?
×