Jump to content

FPiette

Members
  • Content Count

    1167
  • Joined

  • Last visited

  • Days Won

    16

Everything posted by FPiette

  1. FPiette

    smooth scaling of bitmaps

    When making an image larger than his original resolution (enlargement) always gives a bad result. One way to mitigate this is to use bilinear interpolation but don't expect marvelous results. Making an image smaller than his original may be better but will also make it a little bit less nice. Suppressing pixel is the faster but worse solution. You need to merge several pixels into one and apply a weight on the existing pixel depending if it is far or near the new pixel position.
  2. FPiette

    {$IFNDEF for Defined(????

    That is wrong. You used IFDEF instead of IF. The correct version is: {$IF not(defined(Hello)) and not(defined(Bellow)) and not(defined(Yellow))} ShowMessage('{$IFNDEF...'); {$ENDIF} {]IFDEF XXXX} if the same as {$IF Defined(XXX)} The first form DO NOT ACCEPT boolean expression. The second accept boolean expressions inside which you have the pseudo-function Defined() and you can use Delphi boolean operators.
  3. FPiette

    {$IFNDEF for Defined(????

    {$IF NOT(Defined(XXX) or DEFINED(YYY))}
  4. I have no idea. Could you write a simple, small, minimal program which reproduce the issue?
  5. FPiette

    Install Delphi Professional

    Unreliable internet connection. Try again.
  6. FPiette

    Error is 10053 but StatusCode is 200

    WSAECONNABORTED 10053 Software caused connection abort. An established connection was aborted by the software in your host computer, possibly due to a data transmission time-out or protocol error.
  7. http://docwiki.embarcadero.com/RADStudio/Sydney/en/External_Exception_EEFFACE
  8. FPiette

    Loading p12 certificate fails

    With your own program of with the ICS demo OverbyteIcsHttpsTst.dproj? The DLL must be in the same folder as the EXE file, not the source code. Usually the EXE file is in a different folder. See project option "Output directory" in Delphi compiler option page. To be sure the EXE is where you think it is, with Windows Explorer, go to that folder and delete the EXE file. Let the Explorer open on that folder. Then using Delphi, rebuilt the EXE file. You should see it appearing in Explorer window. Just to be sure. You can also put a breakpoint in LibeayLoad and ssleayLoad on the line having LoadLibrary called and see which filename is used.
  9. FPiette

    Loading p12 certificate fails

    This is an old version. Download the latest from http://wiki.overbyte.eu/wiki/index.php/ICS_Download and don't forget to use the OpenSSL libraries included in that version. Before trying your program, try with a sample program included with ICS to verify your setup is correct. I suggest you try with OverbyteIcsHttpsTst.dproj. This error comes from OpenSSL. The message means something like "file not found" or "Permission denied".
  10. If you like my answer, you should like it (The heart icon on the answer bottom right). Thanks.
  11. Look there: https://stackoverflow.com/questions/5134712/how-to-get-the-sort-order-in-delphi-as-in-windows-explorer
  12. Are you showing the list sorted as you like or is it the unsorted list?
  13. FPiette

    Compile fixes

    Maybe @Fr0sT.Brutal is volunteer to verify ICS without SSL enabled for each new version? That would be wonderful?
  14. FPiette

    THttpCli.Close...

    When closing the main form, that is closing the application, it is enough to call Abort. And if you really want to call Close, don't call Abort just before. Calling Abort will do a hard close of the TCP session, without waiting the remote side to acknowledge (It will trigger an error there). Calling close will do an orderly close (No error at remote side). A web server, even in a camera should not care about hard close.
  15. Using Logitech Gaming LED SDK, you'll be able to make illuminations on your Logitech hardware supporting that feature. For example, you may assign colors to keys on the keyboard, make it flash or pulse. Download full source code from GitHub. Example of console mode program making the keyboard pulse during 5 seconds: uses System.SysUtils, LogitechLedLib in 'LogitechLedLib.pas'; begin WriteLn('Your keyboard is pulsing for 5 seconds...'); LogiLed.LoadLedEngine(); LogiLed.InitWithName('Logitech LED Delphi Console Demo'); LogiLed.SetTargetDevice(LOGI_DEVICETYPE_ALL); LogiLed.PulseLighting(100, 90, 60, 5000, 200); WriteLn('Hit RETURN'); ReadLn; LogiLed.Shutdown(); end. Of course you are not limited to a console mode program. You can make VCL or FMX as well, either 32 or 64 bits. There is a VCL application in the repository showing some of the features. To deploy your application, you need a Logitech hardware (Almost all with lightning: keyboard, mouse, headset,...). And you need the Logitech SDK DLL to be deployed which is easily done by installing "Logitech G HUB" application that is used to configure Logitech hardware.
  16. But only with the old canary version. See https://blog.marcocantu.com/blog/2020-may-edge-browser-component.html
  17. Yes, indeed. That's the reason I adjusted mine to red with low brightness. If yours is a Logitech keyboard, you can use my work on the Logitech Gaming LED SDK to change color and intensity 🙂 Of much simpler, use "Logitech G HUB" application to do that. If it's not a Logitech, maybe it uses the same API or has an application do adjust.
  18. I bough a RGB led keyboard just to have the key slightly red which helps typing in the dark. Nevertheless, I find it may be interesting to catch user attention with keyboard illumination for example illuminating the keys the user is allowed to type at a given moment.
  19. FPiette

    Year Countsdown

    @emailx45Using mod defeat all the purpose. Assuming now is sunday 08:07 and future is tuesday 09:20 there are 49 hours (Minutes truncated). Your formula will give 1 hour. Same for all your calculations.
  20. Using mod defeat all the purpose. Assuming now is sunday 08:07 and future is tuesday 09:20 there are 49 hours (Minutes truncated). Your formula will give 1 hour. Same for all your calculations.
  21. FPiette

    Debugger does not start on 360 total security

    You should refresh your opinion. Things are moving quickly these days. See for example Gartner report: https://www.gartner.com/reviews/market/endpoint-protection-platforms/vendor/microsoft/product/windows-defender-antivirus
  22. FPiette

    Debugger does not start on 360 total security

    I use the antivirus built in Windows 10 with great success. It is in the box... Never had any issue with it.
  23. FPiette

    Debugger does not start on 360 total security

    I said: "360 total security ".
  24. FPiette

    Year Countsdown

    I don't think so because it is not any month. The expression is related to the current date. So everybody will perfectly understand how long 2 months and 5 days from now represent. IMO better that 66 days. By the way, this discussion is totally useless an uninteresting 🙂 🙂 🙂
  25. @vfbb I had a quick look at your sample and I see a lot of threads accessing common data without synchronization. Are you sure that the issue doesn't come from this concurrent access?
×