2022年4月14日 星期四

工程塑膠材質

 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

2022年2月16日 星期三

Sao mày ngu thế hả ? 翻譯

Sao mày ngu thế hả ?

 1. Địt/Đụ má (音近:里特/樓嗎):「Fuck you」

絕對不能說的單字。越南北部用Địt,中、南部則用Đụ má,意思接近英語的「Fuck you」。

2. Chó má(音近:揪嘛)「狗娘養的」

這個講了一定會被揍的,越南北部使用比較多。「Chó」是狗的意思「má」是母親的意思,合在一起就變成了一句髒話。

3. (Làm) đĩ(音近:懶梨)「(做)雞、妓女」

不能稱女生這個字,意思是賣春的女性。

4. (Làm) vịt(音近:懶vit)「做鴨」

Vịt一般是禽類鴨子的意思,(Làm) Đĩ Đực是賣春男,但如果你稱一個男生Làm Vịt,就是中文「做鴨」的意思。

5. Pê đê(音近:杯勒)「娘娘腔」

歧視男性的單字。「娘娘腔」跟「人妖」的意思,雖然近年對於同性戀的接受度增加,但隱瞞自己性向的也不在少數,用Pê Đê形容男性很沒禮貌。

6. Ngon(音近:翁 )「超美味、超好吃」

「Ngon」就是東西「好吃」的意思,但只能用來形容食物。如果你對女性說「Ngon」(妳很可口),就相當失禮了!而且說的人是男性的話,女生還會覺得你很下流。

7. (Mày) chết đi(音近:(買)傑哩)「(你)去死啦!/哩企系」

就是中文的「你去死啦!」的意思,吵架很兇的時候會用到,通常會跟Mày連在一起用,是沒禮貌地稱對方「你」的意思。

8. Đồ ngu (音近:摟吳)「笨蛋、蠢蛋」

就是中文的「笨蛋、白痴」英文的「Idiot」一樣意思。

9. Thằng điên(音近:躺拎)「瘋子」

中文「瘋子」的意思,罵人精神有問題的一個字。

10. Cam mồm(音近:甘某)「閉嘴!」

你給我閉嘴的意思,通常用在吵架,跟朋友說話時不可以用,很沒禮貌。

11. Cút đi(音近:估哩)/ Biến đi(音近:賓哩)「給我滾」

給我滾出去的意思,吵架的時候才會用 。Cút đi北越用法,而Biến đi 則是中、南越用法。

12. (Mày) đi ăn cứt(音近:(買)哩尢格)「(你)去吃屎啦!」

這已經簡單明了,就是罵人,叫人去吃米田共(大便),還不失禮嗎?

亂用一定會被討厭或會被打的,千萬別隨便用、亂用喔!

越南語旅遊專用詞彙

遊客 du khách

旅遊業 ngành du lịch

旅遊代理 đại lý du lịch

旅遊服務 dịch vụ du lịch

導遊 hướng dẫn viên du lịch

國際導遊 hướng dẫn viên du lịch quốc tế

旅遊證件 thẻ du lịch

導遊手冊 sổ tay hướng dẫn du lịch

旅遊指南 sách hướng dẫn du lịch

遊覽圖 bản đồ du lịch

摺疊式旅行地圖 bản đồ du lịch loại gấp

旅行支票 ngân phiếu du lịch

旅遊護照 hộ chiếu du lịch

旅遊路線 tuyến du lịch

旅程 lộ trình chuyến du lịch

旅遊日記 nhật ký du lịch

旅行距離 khoảng cách du lịch

旅行目的地 nơi đến du lịch

旅費 tiền chi phí chuyến du lịch

旅遊旺季 mùa du lịch

旅遊淡季 mùa ít khách du lịch

旅遊蕭條 mùa du lịch bị sa sút

旅遊高峰期 thời kỳ cao điểm du lịch

旅行來回雙程票 vé du lịch khứ hồi

敲詐遊客bắt chẹt khách du lịch

旅遊紀念品 hàng lưu niệm

遊客接待站 điểm tiếp đón du khách

旅客住宿點 nơi ở của du khách

旅遊賓館 khách sạn du lịch

遊客du khách

旅伴 bạn du lịch

外國遊客 du khách nước ngoài

乘飛機旅行者 du khách đi máy bay

背包族旅行者 khách du lịch ba lô

周末渡假客 người đi du lịch cuối tuần

郊遊野餐者 người đi picnic

海上旅行者người đi du lịch trên biển

觀光團 đoàn tham quan du lịch

旅遊團 đoàn du lịch

團體旅遊 đi du lịch theo đoàn

公費旅遊 du lịch bằng công quỹ

豪華游 chuyến du lịch sang trọng

經濟游 chuyến du lịch bình dân

包價旅行 du lịch bao giá

環球旅行 du lịch vòng quanh thế giới

國外旅行 chuyến du lịch nước ngoài

觀光旅遊 tham quan du lịch

郊外野餐 cuộc picnic dã ngoại

一日游 chuyến du lịch 1 ngày

兩天游chuyến du lịch 2 ngày

蜜月旅行 du lịch tuần trăng mật

周末游 du lịch cuối tuần

春遊 du lịch mùa xuân

夏季旅遊 du lịch mùa hè

秋遊 du lịch mùa thu

冬季旅遊 du lịch mùa đông

遊山玩水 du ngoạn núi non sông nước

遊園 du ngoạn công viên

飛行遊覽 chuyến bay du lịch ngắm cảnh

航空旅行 du lịch hàng không

水上遊覽 du ngoạn trên nước

海上旅遊 du lịch trên biển

海上觀光 tham quan trên biển

乘火車旅行 du lịch bằng tàu hoả

自行車旅行 du lịch bằng xe đạp

旅行用品 đồ dùng trong du lịch

旅遊服 quần áo du lịch

旅行鞋 giày du lịch

登山鞋 giày leo núi

旅行箱 va li du lịch

帆布行李袋 túi du lịch bằng vải

摺疊式旅行袋 túi du lịch gấp

手提旅行袋 túi du lịch xách tay

旅行皮包 túi du lịch da

摺疊式背包 ba lô gấp

旅行袋 túi du lịch

登山裝備 trang bị leo núi

睡袋 túi ngủ

睡墊 đệm ngủ

旅行毯 thảm du lịch

摺疊床 giường gấp

摺疊椅 ghế gấp

旅行壺 bình du lịch

旅行鬧鐘 đồng hồ báo thức du lịch

急救箱 thùng cấp cứu

旅遊列車 xe hoả du lịch

旅遊客車 xe khách du lịch

遊覽船 tàu thuỷ du lịch

遊船 du thuyền

遊艇 ca nô du lịch

高空索道 đường cáp treo

纜車 xe cáp treo

景點門票 vé vào cửa tham quan du lịch

不收門票 nơi không thu vé vào cửa

門票費 tiền vé vào cửa

景點 khu phong cảnh

旅遊勝地 khu du lịch

觀光旅遊點 điểm tham quan du lịch

名勝古蹟 danh lam thắng cảnh

人文景點 cảnh quan nhân văn

自然景觀 cảnh quan thiên nhiên

遊樂園 công viên vui chơi giải trí

國家森林公園 Vườn quốc gia

微縮景區 khu phong cảnh thu nhỏ

假日野營區 trại dã ngoại ngày nghỉ

野營勝地 nơi có cảnh đẹp để cắm trại

野營小屋 phòng nhỏ trong trại dã ngoại

旅遊賓館 khách sạn du lịch

汽車司機宿營地 trại dành cho tài xế ô tô

遊客宿營帳篷 lều trại của du khách

避暑渡假區 nơi nghỉ ngơi và nghỉ mát

避暑勝地 nơi nghỉ mát

避暑山莊 sơn trang dành để nghỉ mát

海濱休養區 khu an dưỡng bên bờ biển

太陽浴 tắm nắmg

海水浴 tắm biển

海濱公共浴場 bãi tắm công cộng

海濱私人浴場 bãi tắm tư nhân

海濱沙灘 bãi biển


原文網址:https://kknews.cc/travel/lz3z84g.html

2022年2月4日 星期五

mathematics numerical expression Algebraic Reverse Polish notation (RPN)

https://opentextbc.ca/businesstechnicalmath/ 

Business/Technical Mathematics 

https://opentextbc.ca/businesstechnicalmath/chapter/1-2/

https://hackaday.com/2017/10/24/reverse-polish-notation-and-its-mildly-confusing-elegance/

https://www.hpmuseum.org/

Kinematics polar coordinates kinetics plotter

 Particle Kinetics: Normal-Tangential, Polar, Cylindrical Coordinates; Solving Accelerating 3D System

Kinematics  polar coordinates kinetics  plotter 

https://en.wikipedia.org/wiki/Geometry

Plane Curvilinear Motion - Polar Coordinates

http://www.conceptualdynamics.com/files/krb/krb_gen_ep2.htm

Using a Development Platform with an STM32 Processor to Prototype an Inexpensive 4-DoF Delta Parallel Robot