May 5

Continuing from the previous two AD password-related APIs,Next, I wrote an API that can check imminent AD user password expiration,This article will not go into detailed environment setup,Including Models、appsettings.json、Program.cs, etc.,Because it continues from the previous project,You can refer to the previous articles if needed。

繼續瀏覽 »

Feb 12

I, in Delphi XE8, have experienced it twice when switching (F12) to the Form/Unit interface,Delphi crashed directly,Windows recorded the following two entries:

Source: Application Error
Failed application name: bds.exe
Failed module name: Castalia220.bpl

Source: Windows Error Reporting
事件名稱: APPCRASH
問題簽章:
P1: bds.exe
P4: Castalia220.bpl

繼續瀏覽 »

Dec 27

  完成了《AD 密碼驗證》與《AD 密碼修改》兩個 API 後,接下來用 .NET MAUI Blazor 來寫桌面端的程式。稍微瞭解了 Blazor 後,覺得好神奇,感覺就是把網頁塞進應用程式裡面運行時還可以在「工作管理員」看到背後有 Edge 的相關元件在運行然後按 F12 還會有開發者工具視窗!不過這也讓我衍生了一點安全性的疑慮但整體感覺還是挺特別的剛好我對網頁語法比較熟搭配 Razor 來設計 UI 畫面感覺親切不少

繼續瀏覽 »

Dec 18

  繼完成 驗證 AD 密碼的 API 後,接著嘗試寫修改密碼的部份跌跌撞撞的也總算完成這次針對三個不同套件的寫法做分享而標題會提到修改自己 AD 密碼是因為在寫的過程發現某些方法需要有網域管理者的權限才能做到所以這篇的範圍會限縮在只要用使用者自己的帳號密碼便可完成修改密碼的動作

繼續瀏覽 »

Dec 3

  最近試著透過 ASP.NET Core 寫一個 AD 帳密修改的程式,架構上大致是先有個 AD 驗證及些密碼修改的 Web API,最後再寫一個桌面應用程式,讓使用者自行修改。這次完成的是帳密驗證的 Web API,程式如下:

繼續瀏覽 »

Nov 25

  由於踏入 ASP.NET/C# 沒很久,很多基本的東西都要靠自己去摸索,有時對別人來說是理所當然的東西,我可能會花上不少時間去研究。既然時間花了,就會想把過程記錄下來,讓像我一樣的人可以省去點時間。

  這次是在完成 QRCode generator API 後,I have no idea how to make the program compatible with IIS,Although I did it once six months ago,my mind is already blank,Haha。

繼續瀏覽 »

Nov 21

  之前同仁反應使用 Google 的 QR Code API 有時會無法使用,查了相關資訊後,有了想透過撰寫這個 API 來學習 C# 的想法,花了些時間摸索,還真被我搞出來。此 API 的功能為在網址輸入值,便可直接在瀏覽器產生 QRCode 的圖片,以下會以第一次撰寫 ASP.NET Core / C# 的新手角度來說明。

繼續瀏覽 »

Nov 12

  今天想測試 Delphi 連結 AD 的功能,網路上教學說,可以透過「Component → Import Compont…」來匯入,但實際操作時,卻出現 “存取 OLE 登錄時發生錯誤。” 的錯誤訊息。

繼續瀏覽 »

Mar 6

  這個網誌上的程式碼是透過 SyntaxHighlighter Evolved 這支外掛來呈現,不過不知道為什麼,我一直無法讓程式碼以 inline 的方式呈現,後來乾脆自己用 span 標籤加上 CSS 來呈現,後來注意到文字編輯器上 code 按鈕我一直沒用,In the end, I simply wrote the new CSS into the code tag,and then it could be applied quickly。
繼續瀏覽 »

Feb 19

When using Quick Report 1920*1080 with resolution plus 125% and higher display settings,the 'Preview Print' scale may be incorrect(either too large or too small),but the actual printout is normal,To fix this,you need to modify the qrprntr.pas file of Quick Report in the development environment,There are two ways to fix this。

繼續瀏覽 »