2022年4月22日 星期五

Awesome Pascal Awesome Communications Serial port

 https://asmen.icopy.site/awesome/awesome-pascal/#serial-port

Awesome Pascal Awesome

Communications

Serial port


https://sourceforge.net/projects/comport/
https://sourceforge.net/projects/tpapro/
https://sourceforge.net/p/synalist/code/HEAD/tree/trunk/synaser.pas

讓你的代碼變好看

http://delphi.org/2019/10/pretty-printing-your-source-code/ 

https://github.com/EnlighterJS/EnlighterJS

https://team411.github.io/src2img/

https://carbon.now.sh/

https://codeimg.io/

https://highlightjs.org/

https://wsmoak.net/2015/09/16/presenting-source-code.html

螢幕抓圖

https://getgreenshot.org/screenshots/

https://delphiaball.co.uk/2014/09/08/using-ttask-from-the-parallel-programming-library/

 https://delphiaball.co.uk/2014/09/08/using-ttask-from-the-parallel-programming-library/

Using TTask from the Parallel programming library
 

Parallel Programming with Delphi XE7; a quick introduction
Next PostTTask.IFuture from the Parallel Programming Library

Snippet

Object Pascal C++ Code snippets 13 Things About C++ Software You May Not Know

 https://blogs.embarcadero.com/13-things-about-c-software-you-may-not-know/

Table of Contents

    1. How to build and compile your applications at maximum speed with TwineCompile
    2. Did you know how easy it is to run Python in C++ Builder apps?
    3. Can I run Delphi / Object Pascal code in my C++ apps?
    4. Have you used folding scopes in your code yet?
    5. Do you create debugging breakpoints the easy way?
    6. Are you using Ctrl+Space for Code Completion and Code Insight?
    7. Did you know you can hit the Tab key for Code Template completion?
    8. Are you using Error Insight to speed up your development?
    9. How to use RAD Studio Deployment Manager to add your application’s sounds, images and other ad-hoc files
    10. How do I use the Ctrl+ F1 Help key to find details about a method?
    11. Use Ctrl+Enter to open file in that line
    12. How do I set up icons for my application?
    13. Did you know you can compile C++ projects by using msbuild command in console/terminal window?

 https://community.embarcadero.com/index.php/article/technical-articles/1044-coderage-9-snippet-consuming-object-pascal-code-from-c-apps-using-c-11-lambdas

 https://castle-engine.io/modern_pascal_introduction.html#_loops_for_while_repeat_for_in

Coderage 9 Snippet - Consuming Object Pascal code from C++ apps using C++11 Lambdas

package manager DelphI

 https://memnarch.bplaced.net/blog/delphinus/#projects

 
https://github.com/DGH2112/Package-Viewer
DGH Package Viewer

You can install Delphinus package manager and then install Package Viewer there. (Delphinus-Support)

Delphinus | Sparetime-Development

delphi tools api get all installed packages IOTAToDoServices IOTAProjectFileStorage IOTAProjectFileStorageNotifier IOTAProjectFileStorageNotifier

 delphi tools api get all installed packages IOTAToDoServices IOTAProjectFileStorage IOTAProjectFileStorageNotifier IOTAProjectFileStorageNotifier

 https://www.davidghoyle.co.uk/WordPress/

Notify me of everything… – Part 1 – Dave's Development Blog

https://www.davidghoyle.co.uk/WordPress/?p=1272

Delphi Class RTTI Explorer Hierarchy IDE Explorer Expert

 https://stackoverflow.com/questions/691989/full-vcl-class-browser-for-delphi

 https://blog.dummzeuch.de/delphi-ide-explorer-expert/

 https://docwiki.embarcadero.com/RADStudio/Sydney/en/Viewing_Hierarchy_of_Classes,_Interfaces,_and_Types_in_the_Class_Explorer

 https://theroadtodelphi.com/2010/10/04/fun-with-delphi-rtti-rtti-explorer-lite/

 https://theroadtodelphi.com/2010/10/04/fun-with-delphi-rtti-rtti-explorer-lite/types-view/

 http://etutorials.org/Programming/mastering+delphi+7/Part+IV+Delphi+the+Internet+and+a+.NET+Preview/Chapter+22+Using+XML+Technologies/Programming+with+the+DOM/

 https://blog.dummzeuch.de/delphi-ide-explorer-expert/

https://www.delphipraxis.net/140771-delphi-2010-rtti-demo-delphidiver%99.html  

Delphi 2010 RTTI-Demo: DelphiDiver™

 http://essmodel.sourceforge.net/

 https://www.drbob42.com/delphi/property.htm

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

 https://www.delphipraxis.net/

 http://www.festra.com/eng/les03.htm

 https://smartmobilestudio.com/

 https://blog.dummzeuch.de/delphi-ide-explorer-expert/

 https://www.drbob42.com/delphi/property.htm

http://www.choosepill.com/components/cpcrbtree.htm 

https://delphisources.ru/pages/faq/master-delphi-7/content/LiB0097.html

DELPHI Object Inspector TPropertyAttributes 

 https://blog.karatos.in/a?ID=00100-8e5ec27e-d7c6-49f6-a6ab-4da08ef2cf04

RegisterPropertyEditorProc  DesignEditors.TVariantProperty.GetAttributes


https://www.davidghoyle.co.uk/WordPress/

Delphi JSON Viewer

 https://edn.embarcadero.com/article/40882

https://sourceforge.net/projects/radstudiodemos/

 

 A JSON Media Type for Describing the Structure and Meaning of JSON
                               Documents
                        draft-zyp-json-schema-02

https://datatracker.ietf.org/doc/html/draft-zyp-json-schema-02

 

2022年4月21日 星期四

Current mirror drives multiple pulsed-current mirror comprising drives thermal-runaway effect

 Current mirror drives multiple  pulsed-current mirror comprising  drives  thermal-runaway effect

 MOSFET - Current Mirror Explained

 https://www.edn.com/current-mirror-drives-multiple-leds-from-a-low-supply-voltage/

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

 

2022年4月20日 星期三

路徑規劃

 Tool Path Planning algorithm Contour Raster Zigzag Contour  Spiral Hybrid Hilbert filling

concorde directory TSP  Solver  

concorde directory TSP Solver  TSP ETSP directly ATSP

Traveling Salesperson Problem

2022年4月19日 星期二

油包水

 paraffin Pickering emulsion

https://zh.wikipedia.org/wiki/%E7%9A%AE%E5%85%8B%E6%9E%97%E4%B9%B3%E6%B6%B2

 https://www.sciencedirect.com/science/article/abs/pii/S1226086X17302824

https://www.mdpi.com/2073-4360/11/7/1115/htm

 https://www.researchgate.net/publication/343387125_Water-in-oil_emulsions_stabilized_by_surfactants_biopolymers_andor_particles_A_review

 surfactants emulsification water-in-oil emulsion wax

 Saponification esterification Petrochemistry

SIO2  Sol-gel

iscussion of Sol-gel Preparation of Nanoscaled SiO2 Particles

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