2022年4月18日 星期一

concorde directory Concorde TSP Travelling Salesperson Problems Solver qsopt

 https://hackaday.io/project/158802/logs

   https://www.swmath.org/?term=traveling%20salesman

concorde directory Concorde TSP Travelling Salesperson Problems  Solver   qsopt 

    TSPLIB
    Referenced in 696 articles [sw00983]
    following problem classes are available. Symmetric traveling salesman problem (TSP) Hamiltonian cycle problem (HCP) Asymmetric ... traveling salesman problem (ATSP) Sequential ordering problem (SOP) Capacitated vehicle routing problem (CVRP...

    Concorde
    Referenced in 312 articles [sw04770]
    computer code for the symmetric traveling salesman problem (TSP) and some related network optimization problems...

    LKH
    Referenced in 138 articles [sw04735]
    Kernighan heuristic for solving the traveling salesman problem. Computational experiments have shown that...

    TSPTW
    Referenced in 37 articles [sw04709]
    with time windows. The Traveling Salesman Problem with Time Windows (TSPTW) is the problem...

    GTSP Instances Library
    Referenced in 14 articles [sw14651]
    Generalized Traveling Salesman Problem (GTSP) is an extension of the Traveling Salesman Problem (TSP), where...


Using the NEOS Server for concorde/TSP

Web Submission Form
Concorde data(xy-list file, L2 norm)
Enter the complete path to the file with the xy-list (distances measured in the Euclidean(L2) norm)
Concorde data(xy-list file, L1 norm)
Or, enter the complete path to the file with the xy-list (distances measured in the Manhattan(L1) norm)
Concorde data(TSPLIB format file)
Or, enter the complete path to the symmetric TSPLIB file
Algorithm Choose the algorithm (cqs=QSopt, con=CPLEX [default], lk=Lin-Kernighan) Concorde(CPLEX)
Concorde(QSopt)
Lin-Kernighan

2022年4月14日 星期四

jpg 圖檔 中繼 標記 資料 內嵌文字欄位 IPTC IIF XMP EXIF

 CCR Exif  
 
CCR Exif is a Delphi library to read and write Exif, IPTC and XMP metadata from JPEG, TIFF and PSD images. Requires Delphi 2006 or later to compile

compilers.net > directory > free > compilers > pascal

 http://www.compilers.net/Dir/Free/Compilers/Pascal.htm

 

....
Symantec Think Pascal Compiler
Think Pascal (FTP)
TinyPascal
TMT Pascal
Turbo51
Virtual Pascal Compiler
Vector Pascal

 

工程塑膠材質

 https://haolitechs.com/%E5%B7%A5%E7%A8%8B%E5%A1%91%E8%86%A0%E6%9D%90%E8%B3%AA-tw/

2022年4月13日 星期三

delphi - How to display BLOB Image from database in the TAdvStringGrid with the help of DataSet https://vigges.net/qa/?qa=1132506/

 
CreateBlobStream Picture LoadFromStream

delphi - How to display BLOB Image from database in the TAdvStringGrid with the help of DataSet
https://vigges.net/qa/?qa=1132506/

CreateBlobStream is creating a TStream object, not a TMemoryStream.
Since you do not want to write the JPG to the database you should use bmRead instead of bmReadWrite.
I am not used to SQLite, but you will have to make sure that you are using a suitable binary datetype (BLOB).

  JPG := TJpegImage.Create;
  Picture:= TPicture.Create;
  try
    st := results.CreateBlobStream(TBlobField(results.FieldByName('image')), bmRead);
    try
      JPG.LoadFromStream(st);
      Picture.Assign(JPG);
      sg.AddPicture(i,j,Picture,True,ShrinkWithAspectRatio,0,haLeft,vaTop);
    finally
      st.Free;
    end;
  finally
    JPG.Free;
    Picture.Free;
  end;

To ensure that the stored image is really a JPG you should write the JPG for testing with something like:

var
  ms: TMemoryStream;
begin
  ads.Open;
  ads.Append;
  ms := TMemoryStream.Create;
  try
    Image1.Picture.Graphic.SaveToStream(ms); // make sure having loaded a JPG
    ms.Position := 0;
    TBlobField(ads.FieldByName('image')).LoadFromStream(ms);
  finally
    ms.Free;
  end;
  ads.Post;
end;
https://kifmesoft.wordpress.com/2006/06/09/memorystream-untuk-menampung-blob-field-image-picture/
 https://codeverge.com/embarcadero.delphi.database/saving-a-jpg-in-a-graphicsfield/1067238
 https://stackoverflow.com/questions/40357324/trying-to-save-a-bmp-from-pc-to-a-database-blob-field
https://www.chestysoft.com/ximage/access1.asp 
https://forum.lazarus.freepascal.org/index.php?topic=43499.0 

8051 IAR Keil Mikro SDCC

 8051  IAR Keil Mikro SDCC

 https://turbo51.com/

 http://www.openrtos.net/RTOS_ports.html

 https://www.intorobotics.com/8051-microcontroller-programming-tutorials-simulators-compilers-and-programmers/

 

8051 assembly machine code  The following table lists the 8051 instructions by HEX code. 


translate pascal 8051 Assembler Translation
http://www.8051projects.info/resources/8051-assemblers-and-ides.22/
https://stackoverflow.com/questions/15204459/is-there-any-8051-assembly-language-to-c-code-converter
https://www.microapl.com/asm2c/sample8051.html

Relogix™ Sample Translation (8051)


This sample translation uses the source code of a software-implemented I2C driver for the 80C51 based microcontroller.


http://bit.kuas.edu.tw/~8051/

8051 Development Tools

2022年4月12日 星期二

Varnish HTTP Varnish cache (Varnish) web server

 
Varnish cache (Varnish)

Varnish cache,或稱Varnish,是一套高效能的反向網站快取伺服器。 Varnish目前被用在挪威最大的報社Verdens Gang上。 維基百科


Varnish Server - Free Technical Support eBook
 https://info.varnish-software.com/varnish/support
The Guide To All Things Varnish. VCL, Caching Principles & More. Sign Up For A Free Copy! Talk To An Expert。Request A Free Trial。View Pricing Details。Sign Up For Newsletters。Highlights: Videos & Demos Available, Chat Option Available。

 Varnish Cache
https://varnish-cache.org
 
Varnish HTTP Cache¶. I'm new here, please explain this Varnish thing. What is happening¶. 2022-03-15 - Varnish 7.1.0 is released¶.

2022年4月9日 星期六

Vanilla JS vue Svelte Notify JavaScript Bulletin Local storage Security Message Queuing communication

Vanilla JS vue Svelte Notify JavaScript Bulletin Local storage  Security Message Queuing communication 


https://github.com/vuejs/awesome-vue

2022年4月7日 星期四

SET Display Monitor Light

 

        [DllImport("dxva2.dll")]
        public static extern bool SetMonitorBrightness(IntPtr hMonitor, short brightness);

        [DllImport("dxva2.dll")]
        public static extern bool GetMonitorBrightness(IntPtr hMonitor, ref short pdwMinimumBrightness,
            ref short pdwCurrentBrightness, ref short pdwMaximumBrightness);

        [DllImport("dxva2.dll")]
        public static extern bool GetNumberOfPhysicalMonitorsFromHMONITOR(IntPtr hMonitor,
            ref uint pdwNumberOfPhysicalMonitors);

        [DllImport("dxva2.dll")]
        public static extern bool GetPhysicalMonitorsFromHMONITOR(IntPtr hMonitor,
            uint dwPhysicalMonitorArraySize, [Out] PhysicalMonitor[] pPhysicalMonitorArray);

        [DllImport("user32.dll")]
        public static extern IntPtr MonitorFromWindow([In] IntPtr hwnd, uint dwFlags);

2022年4月6日 星期三

Serial Port Programming using Win32 API

 https://www.xanthium.in/Serial-Port-Programming-using-Win32-API#account

 https://github.com/search?l=Pascal&q=tcomport&type=Code

 https://github.com/manashmandal/SerialPort

https://github.com/GCY/SerialPortLibrary

https://torry.net/pages.php?s=89

delphi comport library  asynchronous serial communications

 

 https://www.codeproject.com/Articles/992/Serial-library-for-C

Windows Std Serial Comm Lib for Delphi 5.4.1      Review     Screenshots     Technical   From: MarshallSoft Computing

5: Generation 2 Steam Heated Group Head - La Pavoni Lever Espresso Machine

 https://www.youtube.com/watch?v=qQaqW0SAJjs

2022年4月5日 星期二

maXbox a script tool engine, Precompiled Object Based Scripting Tool maXbox maXbox3 Precompiled Object Based Scripting Tool maXbox

 

maXbox3

Precompiled Object Based Scripting Tool maXbox maXbox3  Precompiled Object Based Scripting Tool maXbox

 

 

http://www.softwareschule.ch/maxbox.htm

 

 maXbox a script tool engine, compilerlib all in one exe! Build to teach/ develop under Windows and Linux (CLX) to set Delphi with no install. maXbox has RemObjects PascalScript smart code. With include,events print, decompile, syncheck, templates, VM-, and DLL support. +Indy,Jedi,CGI,DMath,CAI,FLC5 & Systools.4.0 with CryptoBox4 and ComPort for Arduino!, OS Lib mX4- Build mX4.7.6.10
maXbox Pure Code Blaise Pascal Mag

2022年4月2日 星期六

temperature

 CS5532AS Schematics  channel temperature logger Schematics  max3370  max1673 dg409dy ADC CS5532AS MAX854  channel  teardown TC08  max31855 CS5532 module Schematics   temperature couple esd ovp protection ad650 ads1256 AD7740 Mechatronics Project PSN-ADC24 4-Channel 24-Bit Analog to Digital Board

2022年3月16日 星期三

yield delphi Thread Priority SwitchToThread SuspendThread ResumeThread SwitchToThread Thread.Yield Thread.Sleep(0) Thead.Sleep(1)

 yield delphi Thread Priority SwitchToThread SuspendThread   ResumeThread SwitchToThread Thread.Yield  Thread.Sleep(0)   Thead.Sleep(1)

 https://qiita.com/ht_deko/items/39da99a10202589e002c

<1> スレッドオブジェクト (Delphi コンカレントプログラミング)

 https://www.google.com/search?q=yield+delphi+Thread+Priority+SwitchToThread+SuspendThread+++ResumeThread+SwitchToThread+Thread.Yield+++&client=firefox-b-d&sxsrf=APq-WBuhhrALls3PQu_J6H58UD7oZlJwJQ%3A1647417810132&ei=0pkxYvbOB4zrwQPiio64Bw&ved=0ahUKEwj2__nKlcr2AhWMdXAKHWKFA3cQ4dUDCA0&oq=yield+delphi+Thread+Priority+SwitchToThread+SuspendThread+++ResumeThread+SwitchToThread+Thread.Yield+++&gs_lcp=Cgdnd3Mtd2l6EAwyBwgjEOoCECcyBwgjEOoCECcyBwgjEOoCECcyBwgjEOoCECcyBwgjEOoCECcyBwgjEOoCECcyBwgjEOoCECcyBwgjEOoCECcyBwgjEOoCECcyBwgjEOoCECdKBAhBGAFKBAhGGABQ6Q9YtNEBYNXsAWgFcAB4AIABAIgBAJIBAJgBAKABAaABArABCsABAQ&sclient=gws-wiz

 

TThreadYield (Delphi) - RAD Studio Code Examples
https://docwiki.embarcadero.com › Sydney
This example shows how to use the Yield method, the Priority property and ... Also the sample uses two TMemo components to display the status of the threads ...

2022年3月11日 星期五

GNU多重精度運算庫  BigFloat Precision Floating Point 

BigFloat Precision Floating Point 

GNU MPFR GNU Multiple Precision Arithmetic Library algebra accurac pari qd

https://gmplib.org/

The GNU Multiple Precision Arithmetic Library 

 High-Precision Software Directory

https://www.davidhbailey.com/dhbsoftware/ 

GNU Multiple Precision Arithmetic Library

https://zh.wikipedia.org/wiki/GNU%E5%A4%9A%E9%87%8D%E7%B2%BE%E5%BA%A6%E8%BF%90%E7%AE%97%E5%BA%93

https://en.wikipedia.org/wiki/List_of_arbitrary-precision_arithmetic_software

 algebra  Precision Floating Point regular expression calculator

https://www.codeproject.com/Articles/298374/Basic-mathematical-expression-evaluator

http://www.blackbeltcoder.com/Articles/algorithms/a-c-expression-evaluator

2022年3月8日 星期二

pascal state machine delphi SCRIPT TFPExpressionParser Regular Expression Parser Regular Expression mathematical

 pascal state machine delphi SCRIPT  TFPExpressionParser Regular Expression

  Parser Regular Expression mathematical

https://wiki.freepascal.org/How_To_Use_TFPExpressionParser 

https://wiki.freepascal.org/FPSpreadsheet_tutorial:_Writing_a_mini_spreadsheet_application

pascal script interpreter

torry Components Science Expressions

https://torry.net/pages.php?id=307

http://www.gobestcode.com/html/mathparser.html

https://en.wikipedia.org/wiki/Pascal_(programming_language)

2022年3月6日 星期日

最佳化貨櫃堆棧

 algorithm cargo puzzle board 

https://towardsdatascience.com/maximize-the-loading-capacity-of-a-sea-container-to-reduce-your-shipping-costs-with-python-8cc02c9725a7

2022年2月21日 星期一

delphi EurekaLog MadExcept FASTmm leak

 delphi  EurekaLog  MadExcept  FASTmm

https://en.delphipraxis.net/topic/5360-eurekalog-vs-madexcept-vs-manual/

 

https://stackoverflow.com/questions/1931833/compare-delphi-exception-handlers