Using threads in Delphi

It's easy to use threads in Delphi. Synchronize is good :-)   Function Contents uses System.Classes, System.SysUtils, Vcl.Forms; procedure Wait(Proc: TProc); var Thread: TThread; begin Thread := TThread.CreateAnonymousThread(procedure() begin Proc; end); Thread.FreeOnTerminate := True; Thread.Start; while not Thread.Finished do Application.ProcessMessages; end; How to use Wait(procedure() begin // .... Contents end);

Once you resize the image

It is a method to generate several kinds of icons and splash image sizes needed for iPhone and Android application development. The size is the size used by FireMonkey, please change the number in other environments. I have lost the program I created in the past (?) And hastily ... ㅠ 1. Installing GraphicsMagick 2. Create a splash image batch file gm convert -resize "320x480^" -gravity center -crop "320x480+0+0" "%1" splash_320x480.png gm convert -resize "426x320^"...

Formatting when the drive is not recognized

I bought an external hard disk for Mac and I can not recognize it on Windows. ("Creating and Formatting a Hard Disk Partition" would be easier if you can not run it in other ways, but I ㅠ) Run the command prompt (CMD) with administrator privileges. Then use the following command to erase the partition of the external hard disk and format it as exFAT 32 compatible with Windows and MacOS. diskpart disk...

Getting your current location (PHP)

The location is obtained through the geolocation function. If the browser does not support the related authority and the browser does not support it, the location is obtained via the API provided by Naver. Receive Naver's API key before using it (https://www.ncloud.com/product/applicationService/geoLocation) <? function makeSignature($secretKey, $method, $baseString, $timestamp, $accessKey) { $space = ' '; $newLine = "\n"; $hmac = $method.$space.$baseString.$newLine.$timestamp.$newLine.$accessKey; $signautue = base64_encode(hash_hmac('sha256', $hmac, $secretKey,true)); return $signautue; } if($_POST['order'] == 'geolocation') { $hostNameUrl = 'https://geolocation.apigw.ntruss.com'; $requestUrl=...