-
Content Count
1167 -
Joined
-
Last visited
-
Days Won
16
Everything posted by FPiette
-
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.
-
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.
-
{$IF NOT(Defined(XXX) or DEFINED(YYY))}
-
New version crashes when trying to create form
FPiette replied to w0wbagger's topic in ICS - Internet Component Suite
I have no idea. Could you write a simple, small, minimal program which reproduce the issue? -
Unreliable internet connection. Try again.
-
Error is 10053 but StatusCode is 200
FPiette replied to HTMLValidator.com's topic in ICS - Internet Component Suite
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. -
New version crashes when trying to create form
FPiette replied to w0wbagger's topic in ICS - Internet Component Suite
http://docwiki.embarcadero.com/RADStudio/Sydney/en/External_Exception_EEFFACE -
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.
-
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".
-
"natural" compare function for sort
FPiette replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
If you like my answer, you should like it (The heart icon on the answer bottom right). Thanks. -
"natural" compare function for sort
FPiette replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
Look there: https://stackoverflow.com/questions/5134712/how-to-get-the-sort-order-in-delphi-as-in-windows-explorer -
"natural" compare function for sort
FPiette replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
Are you showing the list sorted as you like or is it the unsorted list? -
Maybe @Fr0sT.Brutal is volunteer to verify ICS without SSL enabled for each new version? That would be wonderful?
-
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.
-
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.
-
Can no longer print pdf from Twebbrowser component and can't load to edgebrowser
FPiette replied to Damon's topic in VCL
But only with the old canary version. See https://blog.marcocantu.com/blog/2020-may-edge-browser-component.html -
Logitech Gaming LED SDK for Delphi
FPiette replied to FPiette's topic in RTL and Delphi Object Pascal
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. -
Logitech Gaming LED SDK for Delphi
FPiette replied to FPiette's topic in RTL and Delphi Object Pascal
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. -
@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.
-
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.
-
Debugger does not start on 360 total security
FPiette replied to dkprojektai's topic in General Help
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 -
Debugger does not start on 360 total security
FPiette replied to dkprojektai's topic in General Help
I use the antivirus built in Windows 10 with great success. It is in the box... Never had any issue with it. -
Debugger does not start on 360 total security
FPiette replied to dkprojektai's topic in General Help
I said: "360 total security ". -
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 🙂 🙂 🙂
-
@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?