發表文章

目前顯示的是 5月, 2018的文章

delphi float double 浮點數

https://github.com/Tominator2/HEXtoIEEE-754 http://www.davdata.nl/math/floatingpoint.html http://www.efg2.com/Lab/Mathematics/NaN.htm http://www.efg2.com/Lab/Library/Delphi/MathInfo/index.html http://docwiki.embarcadero.com/RADStudio/Tokyo/en/About_Floating-Point_Arithmetic http://rvelthuis.de/articles/articles-floats.html IEEE standard for floating-point 754 1985 2008   https://ieeexplore.ieee.org/document/4610935/definitions?ctx=definitions https://en.wikipedia.org/wiki/Double-precision_floating-point_format var f:Single; pb: pbyte; pba:array[1..sizeof(Single)] of byte; ttb4,ttb3,ttb2, ttb1 : Byte; i : Integer; s:string; Lines: TStrings; begin s:=''; f := string.ToSingle(Edit1.Text); pb := addr(f); for I := 1 to SizeOf(f) do begin pba[I]:= pb^; inc(pb); end; I:=1; ttb4:= pba[SizeOf(f)]; ttb3:= pba[SizeOf(f)-1]; ttb2:= pba[SizeOf(f)-2]; ttb1:= pba[SizeOf(f)-3]; s:= s +'Sign:'+ byte(ttb4 shr 7).ToHex...

從 window 找到 application path PID

 Enumerating All Processes https://msdn.microsoft.com/en-us/library/windows/desktop/ms682623.aspx Snapshot Process 32 First Process Next Enum Processes Kernel32 CreateToolhelp32Snapshot CreateToolhelp32Snapshot Process32First 找到第一個 Process32Next 下一個 EnumProcesses QueryFullProcessImageName   https://msdn.microsoft.com/zh-tw/library/windows/desktop/ms684919(v=vs.85).aspx EnumWindows() 列舉出所有視窗 FindWindow() FindWindowEx() 找到窗體 GetWindowThreadProcessId() 找 process ID 擁有這 窗 OpenProcess() 得到 HANDLE GetModuleFileNameEx() GetProcessImageFileName() QueryFullProcessImageName() GetWindowModuleFileName() EnumWindows FindWindow FindWindowEx GetWindowThreadProcessId OpenProcess GetModuleFileName GetProcessImageFileName QueryFullProcessImageName GetWindowModuleFileName

如何創建 單一 唯一執行 執行檔 傳 參數 CreateParams paramstr

How to run a single instance of an application http://delphidabbler.com/articles?article=13 delphi Process Param Create Params paramstr 如何創建 單一 唯一執行 執行檔 傳 參數 本篇教你 傳遞 參數 給 程式 , 可以 確認 運作 或是 重複的 執行  或是 結束他 首先動作是 傳遞 個  window message WM_COPYDATA 運作如 先找  window 存在? 喚醒她 傳送 window message 決定 是否結束他 你可以用 findwindows 找到自己 預留 的接收端 SwitchToPrevInst 你可以 前後找 可以對 其他 window 做 傳送 SendMessage( Wdw, WM_COPYDATA, 0, LPARAM(@CopyData) Data 必須是 動態產生的  alloc ... http://delphidabbler.com/articles?article=13&part=4 後面有下載

op SWIG c convert 2 pascal / delphi

http://www.swig.org/exec.html swig 是個  編譯器的介面 讓你 從 c/c++ 轉成 perl python ruby tcl ...java pascal http://wiki.freepascal.org/C_to_Pascal https://en.wikipedia.org/wiki/Comparison_of_Pascal_and_C http://c2pas.sourceforge.net https://community.embarcadero.com/blogs/entry/c-to-delphi-converter-tool-can-quickly-and-easily-help-you-convert-standard-c-code-to-delphi https://www.cadkas.com/ec2delphi.php Developer Tools Code Code Convertors https://torry.net/pages.php?id=1518 https://github.com/WouterVanNifterick/C-To-Delphi http://rvelthuis.de/articles/articles-convert.html

新建 子 處理 並且 把輸出 輸入 轉向

https://msdn.microsoft.com/en-us/library/windows/desktop/ms682499(v=vs.85).aspx Creating a Child Process with Redirected Input and Output ProcessStartInfo Redirect screen graphic mode Diagnostics StandardOutput ReadToEnd ShellExecute ShellExecuteEx CreateProcess CreateProcessAsUser … https://www.experts-exchange.com/articles/1595/Execute-a-Program-with-C.html capture PeekNamedPipe Process OutputDataReceived

delphi 把個 物件 元件 object component 存檔 save file

http://www.swissdelphicenter.ch/en/showcode.php?id=1626 https://stackoverflow.com/questions/698536/saving-a-tobject-to-a-file https://torry.net/pages.php?id=96 http://jedqc.blogspot.tw/2006/02/d2006-what-on-earth-are-these-explicit.html http://www.jed-software.com/files/ExplicitProps.zip delphi runtime design system save http://bitwisemag.co.uk/2/Add-A-Runtime-Form-Designer-To.html delphi component stream binary save http://www.delphisources.ru/pages/faq/master-delphi-7/content/LiB0045.html https://theroadtodelphi.com/tag/rtti/ delphi property procedure save file Method 如何欺騙 Delphi 將一般獨立 procedure 當成 TxxEvent of Class; Using resource files with Delphi delphi component stream serialization https://www.thoughtco.com/function-or-procedure-as-parameter-1057606 ...save a TImagelist with all its images to a file? // For writing components use WriteComponentResFile(path + source filename , component name sourc...

gps 時間 校正

gps utc conversion arduino http://www.instructables.com/id/GPS-time-UTC-to-local-time-conversion-using-Arduin/ http://www.instructables.com/id/GPS-time-UTC-to-local-time-conversion-using-Arduin/ 網路時間協定- 維基百科,自由的百科全書 - Wikipedia gps time synchronize International GNSS synchronize Time dhcp

delphi 正則 邏輯搜尋

http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Regular_Expressions https://www.regular-expressions.info/ Regular delphi embarcadero Regular delphi http://docwiki.embarcadero.com/CodeExamples/Tokyo/en/TRegExReplace_(Delphi)

lcd liquid crystal display 偏光片 Polarizer

lcd liquid crystal display 偏光片 Polarizer polarizers magnet Faraday 偏光片 法拉第 效應 偏光片 受到 強烈磁性 的 變化 而 改變 偏光的角度 https://www.youtube.com/channel/UCivA7_KLKWo43tFcCkFvydw

穩定 壓縮 複合 木材 刀柄 電化 塑化

stabilized compressed Hybrid Resin Wood

訊息鑑別碼

Message authentication code 訊息鑑別碼- 維基百科,自由的百科全書 - Wikipedia 金鑰雜湊訊息鑑別碼- 維基百科,自由的百科全書 - Wikipedia https://en.wikipedia.org/wiki/Category:Message_authentication_codes 3SJJ0808金融数据密码机技术白皮书_百度文库 SJL22金融数据密码机技术白皮书V8.0h_图文_百度文库 SJJ1212 Financial HSM Encryption of Data DES 3DES AES SM4 中国人民银行   pboc   https://www.ibm.com/support/knowledgecenter/en/linuxonibm/com.ibm.linux.z.wskc.doc/wskc_c_macclc.html A keyed-hash MAC (HMAC) based message authentication can be used by the HMAC Generate and HMAC Verify verbs.

俄國人 的入口網站

https://yandex.ru Снег, лёд и океан 地圖 https://translate.yandex.ru 翻譯 幸好網址是英文

自己做cpu 的教學

http://apollo181.wixsite.com/apollo181 APOLLO181 is a homemade didactic 4-bit CPU  made exclusively of TTL logics and bipolar memories All employed chips are described in the Bugbook® I and II, in particular the 74181 Arithmetic and Logic Unit. 內容講 ㄧ 個 自己做cpu 的教學,及 尊敬的 Dr. Peter R. Rony Relay Computer ttl 74181 http://www.derivedlogic.com/TTL%20Processor/ttlprocessor.html http://www.derivedlogic.com/TTL%20Processor/ttlprocessorblog.html http://www.kswichit.com/8088kit/8088kit.htm https://eater.net/8bit/ fpge 8086 8086 stack structure 74373