用 vscode + pandoc 將大量 .md 轉換為 .docx
因為公司改換用 microsoft 365 solution, 所以要把原本付費的 notion 停掉,改成用 sharepoint
因為公司改換用 microsoft 365 solution, 所以要把原本付費的 notion 停掉,改成用 sharepoint
紀錄一下把 Microsoft 365 / Sharepoint 網站更改 domain name的方式。會需要做這件事情通常跟公司更換 brand name,或者成立新公司等狀況會發生,主要是為了使企業識別一致化。
起因 原本將一個很多檔案的 onedrive 目錄複製到 sharepoint,氮不小心將瀏覽器關閉,所以為了要確認是不是有確實完成複製,所以有這樣的問題。 解法 從sharepoint的網站設定著手 先到sharepoint站臺首頁,例如; https://YOUR_DOMAIN.sharepoint.com/sites/SHAREPOINT_SITENAME/SitePages/CollabHome.aspx 先點選右上角的齒輪設定 然後點選網站內容 網站設定 在網站內容畫面,右上角有另一個網站設定 https://YOUR_DOMAIN.sharepoint.com/sites/SHAREPOINT_SITENAME/_layouts/15/settings.aspx 儲存指標 進到網站內容後,可以看到一堆的設定項目,點選"儲存指標" https://YOUR_DOMAIN.sharepoint.com/sites/SHAREPOINT_SITENAME/_layouts/15/storman.aspx 就可以看到資料了
如果是 ASP 或 PHP 類的技術,可以透過設定 response 的 timeout 時間,再加上 flush (或類似機制)達成。這樣的處理用在需要較長執行時間的 api (或頁面)的情境相當適合,但如果是 nextjs 前端搭配 golang 後端,就沒有類似的機制,需要改用其他方式。
主要討論在 app router 使用情境
nextjs 提供多種 render page 的方式,當中最特別的是 server side rendering, 甚至 static page generation,對於網頁瀏覽速度大有助益。
紀錄一下 ~$ sudo more /etc/letsencrypt/options-ssl-apache.conf # This file contains important security parameters. If you modify this file # manually, Certbot will be unable to automatically provide future security # updates. Instead, Certbot will print and log an error message with a path to # the up-to-date file that you will need to refer to when […]
理論上大部分東西都不用更動
筆記一下,雖說以後有沒有機會用到還不曉得
在 Golang 裏頭對字串陣列檢查特定字串是否有存在,並回傳 index 比較 reflect, wgo package, 以及 slices 結論是,code要簡潔且效能快,用 slices