[oat]使用筆記

參考網址:
中繼機 教師機 樣本機  
中繼機的anydesk 會被自動移除:解決方法 進階功能   □開機時自動執行OAT  取消勾選 (懷疑自動執行OAT時刪除了主程式)

  ​
ASUS UEFI 錯誤訊息   BlInitializeLibrary failed 0xc0000001

發表於 Windows系統 | 發表迴響

找回 Windows 10 消失不見「Windows 相片檢視器」

參考網址:https://sofun.tw/windows-10-photo-viewer/

regedit 懶人包

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations]
".tif"="PhotoViewer.FileAssoc.Tiff"
".tiff"="PhotoViewer.FileAssoc.Tiff"
@=""
".jpg"="PhotoViewer.FileAssoc.Tiff"
".jpeg"="PhotoViewer.FileAssoc.Tiff"
".png"="PhotoViewer.FileAssoc.Tiff"
".gif"="PhotoViewer.FileAssoc.Tiff"
".bmp"="PhotoViewer.FileAssoc.Tiff"
".ico"="PhotoViewer.FileAssoc.Tiff"

 

發表於 Windows系統 | 發表迴響

[php]除錯設定

<?php
//ini_set("display_errors",1);
//ini_set("error_reporting","E_ALL & ~E_NOTICE");
//error_reporting( E_ALL & ~E_NOTICE );

echo "display_errors:" . ini_get("display_errors") ."<br>";
echo "error_reporting:" .ini_get("error_reporting")."<br>";
if($i==0) {
  echo "aaa";
}

$a= "aaabbbccc";
echo $a;
?>

雖然php提供ini_set()可以暫時設定錯誤訊息出現與否,
但實作結果當php.ini display_errors 設為Off時,php中下了指令ini_set("display_errors",1);  error_reporting( E_ALL & ~E_NOTICE ); 卻無法顯示語法錯誤的訊息

最後還是把相關的設定回歸給 php.ini
display_errors = On
error_reporting = E_ALL & ~E_NOTICE

include進來的檔案不會偵錯,有錯誤時一片空白。
smarty有錯誤時也是一片空白。

發表於 程式設計 | 發表迴響

[DD-WRT]Running a DD-WRT VM in Virtualbox

參考網址:https://www.youtube.com/watch?v=BRLukj4dZxk

Full steps can be found at https://i12bretro.github.io/tutorials…

   01. Download Oracle Virtualbox https://www.virtualbox.org/
   02. Download DD-WRT x86 Image ftp://ftp.dd-wrt.com/
   03. Install Oracle Virtualbox
   04. Convert DD-WRT x86 Image to VDI
         # change directory to virtualbox installation
         cd %programfiles%\Oracle\Virtualbox
         # run vboxmanage to convert the raw image to .vdi
         vboxmanage.exe convertdd "c:\users\i12bretro\downloads\dd-wrt_public_vga.image" "c:\users\i12bretro\downloads\dd-wrt.vdi"
   05. Resize the VDI File
         # resize the vdi to 256MB
         vboxmanage.exe modifyhd –resize 256 "c:\users\i12bretro\downloads\dd-wrt.vdi"
   06. Launch Virtualbox
   07. Create a New VM by selecting Machine ≫ New
         Name: DD-WRT
         Machine Folder: C:\VMs
         Type: Linux
         Version: Other Linux (32-bit)
         Memory Size: 256 MB
         Hard disk: Do not add a virtual hard disk
   08. Click Create
   09. Copy the dd-wrt.vdi file from downloads into C:\VMs\DD-WRT
   10. Select the VM and Click Settings
   11. Select Storage
   12. Click Add Storage Attachment ≫ Add Hard Disk ≫ Choose existing disk
   13. Click Add and browse to C:\VMs\DD-WRT\dd-wrt.vdi
   14. Click OK
   15. Select Network
   16. Set Attached to: Bridge Adapter
   17. Make sure the DD-WRT VM is selected and click Start ≫ Normal
   18. Wait for the text to stop scrolling and press Enter
   19. Login with root/admin
   20. Set the IP address to something in your current subnet so you can reach it
         ifconfig br0 192.168.0.227
   21. Launch your web browser of choice and access the DD-WRT web UI with the IP address in the previous step

 

透過 VirtualBox 安裝 DD-WRT x86

DDWRT路由器安裝opkg

發表於 硬體維修, 軟體使用 | 發表迴響

[sport]sport分支

1.sport

2.relay 接力賽,含大隊接力、大跑步、跳繩接力

3.folk 民俗體育

4.kid 幼兒運動會,源自relay11104,修改成專用版本

5.dgb已停用

發表於 程式設計 | 發表迴響

[ID]【臺灣ID驗證系列】居留證驗證號

參考網址:辛西亞的技能樹

function verifyId(id) {
    id = id.trim();
    
    <!-- 在 js 中遇到反斜線要跳脫,所以這邊用兩個反斜線 -->
    <!-- 如果你看到四個反斜線,那是我為了讓 NexT.Mist 主題順利渲染所再做跳脫 -->
    verification = id.match("^[A-Z][ABCD]\\d{8}$")
	if(!verification){
		return false
	}

    let conver = "ABCDEFGHJKLMNPQRSTUVXYWZIO"
    let weights = [1, 9, 8, 7, 6, 5, 4, 3, 2, 1, 1]

    id = String(conver.indexOf(id[0]) + 10) +  String((conver.indexOf(id[1]) + 10)%10) + id.slice(2);

    checkSum = 0
    for (let i = 0; i < id.length; i++) {
        c = parseInt(id[i])
        w = weights[i]
        checkSum += c * w
    }
	
    return checkSum % 10 == 0
}

console.log(verifyId("FA12345689"));

=========================================
本文作者:辛西亞.Cynthia
本文連結:https://cynthiachuang.github.io/Check-Resident-Certificate-Number/
版權聲明:除非另有標注,部落格中所有文章,均採用 CC BY-NC-SA 4.0 許可協議。 轉載請標明作者、連結與出處!

 

發表於 程式設計 | 發表迴響

一鍵SSD對拷:這種方法無需重灌系統,電腦固態硬碟完美換新

參考網址:https://kknews.cc/zh-tw/digital/25oqg9e.html

用的是ATI2021 Acronis True Image 2021

發表於 軟體使用 | 發表迴響

無線分享器刷 DD-RWT 韌體

參考網址:https://wuangus.cc/dd_wrt/

https://dd-wrt.com/

https://dd-wrt.com/support/router-database/

發表於 硬體維修 | 發表迴響

[jp]日文動詞的記憶秘訣與方法

參考網址:https://colanekojp.com.tw/blog_detail/70

第1類動詞

指的是「〇〇ます」前面的第二個「〇」是「い、き、し、ち、に、び、み、り」的い段音時,就是第1類動詞(有幾個字例外,會歸類為第2類動詞),
例如:

会います、書きます、急ぎます、話します、立ちます、死にます、飛びます 読みます、帰ります。

 


第2類動詞


則是「〇〇ます」前面的第二個「〇」是「え、け、せ、て、ね、べ、め、れ」的え段音,
例如:

考えます、かけます、見せます、建てます、食べます、止めます、入れます

 


第3類動詞


只有兩個,一個是「します」,另一個則是「来ます」,由於「します」也能以「〇〇します」的詞組出現,因此「〇〇します」也會被歸類為第3類動詞,〇〇的位置可以是漢字(通常是2個)、外來語等動作性名詞或擬聲態語,
例如:

〔漢字〕します
勉強します
仕事します

〔外來語〕します
コピーします
キスします

發表於 日語 | 發表迴響

[jp]日本網頁自動注音

參考網址:https://crownfb.pixnet.net/blog/post/39402691

有了這個網頁連結, 日本網頁便會自動加上注音.

https://hiragana.jp/zh-tr/

發表於 日語, 軟體使用 | 發表迴響