Skip to content

Instantly share code, notes, and snippets.

View pulipulichen's full-sized avatar
🏠
Working from home

Pulipuli Chen pulipulichen

🏠
Working from home
View GitHub Profile
看看網頁版全文 ⇨ 解鎖或加密PDF檔案:Colab PDF Protector : Unlocking or Encrypting PDF Files: Colab PDF Protector
https://blog.pulipuli.info/2025/06/unlocking-or-encrypting-pdf-files-colab-pdf-protector.html
PDF檔案的安全性加密與解除限制通常需要特別的軟體。
如果我們只有手機的話,不妨來使用我開發的Colab PDF Protector,用Google Colab的腳本新增或移除PDF的安全性設定吧。
PDF file security encryption and decryption often require specialized software. If you only have a mobile phone, consider using my Colab PDF Protector, a Google Colab script designed to add or remove security settings from PDFs.。
看看網頁版全文 ⇨ 雜談:從不懂到改寫別人的VBA不難,但對心臟不太好 : TALK: From Novice to VBA Rewriter: An Easy but Stressful Journey
https://blog.pulipuli.info/2025/05/talk-from-novice-to-vba-rewriter-an-easy-but-stressful-journey.html
最近幫別人改寫老舊Excel上的VBA,讓使用者能直接從輸入資料到彙整成可以列印的格式,而避免大量的複製、貼上操作。
寫是寫完了,但內心真是五味雜陳。
----
看看網頁版全文 ⇨ 移除PDF上的註解:PDF Annotation Remover : Removing Annotations from PDFs: PDF Annotation Remover
https://blog.pulipuli.info/2025/05/removing-annotations-from-pdfs-pdf-annotation-remover.html
PDF的註解功能可以允許我們在原始檔案上添增額外的文字、標亮、線條、筆記。
而且這些註解還可以刪除、修改,讓原始檔案保持它原本的樣子。
不過如果有大量註解需要移除的話,手動操作其實非常繁瑣。
看看網頁版全文 ⇨ 雜談:為了管理Stable Diffusion提示詞而用AppSheet開發了工具 : Talk: I Developed a Tool Using AppSheet to Manage Stable Diffusion Prompts
https://blog.pulipuli.info/2025/02/talki-developed-a-tool-using-appsheet-to-manage-stable-diffusion-prompts.html
由於我會在越來越地方使用Stable Diffusion繪圖,所以我花了一些時間用AppSheet做了提示詞管理工具。
這篇就來聊一下我做了那些東西。
----
看看網頁版全文 ⇨ 將PDF轉換成模仿成掃描檔:ScanSim PDF : Converting PDF to Simulated Scanned Document: ScanSim PDF
https://blog.pulipuli.info/2025/05/converting-pdf-to-simulated-scanned-document-scansim-pdf.html
列印、簽名、拍照、轉換成PDF、上傳,這是現在很多證明文件的處理手續。
處理後的PDF檔案只是圖片的封裝,不能直接選取與複製,只能作為證明文件留存,這已經是最基本的資安防護手段。
然而,如果可以將數位文件直接轉換成彷彿掃描檔一樣的檔案,那不就可以省下列印與掃描的繁雜手續了嗎?也許這時候Docker APP ScanSim PDF就能夠派上用場了。
看看網頁版全文 ⇨ 雜談:Gemini可以免費繪圖,但不能用API畫 : TALK: We Can Draw on Gemini Webpage for Free, but Not With API
https://blog.pulipuli.info/2025/05/talk-we-can-draw-on-gemini-webpage-for-free-but-not-with-api.html
畢竟是免費的AI功能,真的不能要求太多。
----
# Gemini的繪圖功能 / Gemini’s Drawing Feature。
看看網頁版全文 ⇨ 自行架設Dify使用的重排序模型:Text Embeddings Inference : Self-Hosting a Dify Reranking Model: Text Embeddings Inference
https://blog.pulipuli.info/2025/05/selfhosting-a-dify-reranking-model-text-embeddings-inference.html
隨著在Dify使用的知識庫越來越多,傳統的用相似度來計算權重分數的做法已經不敷使用,而使用重排序模型來排序檢索結果順序的做法也越來越受歡迎。
這次我們來架設HuggingFace推出的Text Embeddings Inference,並讓Dify能用它來做重排序吧。
As the knowledge base used in Dify grows, the traditional method of calculating weight scores based on similarity is becoming inadequate.  Using reranking models to reorder retrieval results is gaining popularity.  Let's set up HuggingFace's Text Embeddings Inference and integrate it into Dify for reranking.。
看看網頁版全文 ⇨ 希希助教獻上康乃馨的祝福 : TA. Sissi Presents Carnation Blessings
https://blog.pulipuli.info/2025/05/t-sissi-presents-carnation-blessings.html
認真讀書也是回報母親辛苦的一種表現喔!
----
# 素材 / Materials
看看網頁版全文 ⇨ 雜談:Home Assistant從開發板遷移到虛擬機器 : Talk: Migrating Home Assistant From a Development Board to a Virtual Machine
https://blog.pulipuli.info/2025/05/talk-migrating-home-assistant-from-a-development-board-to-a-virtual-machine.html
我原本拿來架設Home Assistant的OrangePie掛點了。
藉這個機會,我將整個Home Assistant改在Proxmox VE架設。
這裡記錄一下整個過程。
看看網頁版全文 ⇨ 修改Zotero本機的轉譯器 : Modifying Zotero's Local Translators
https://blog.pulipuli.info/2025/05/modifying-zoteros-local-translators.html
如果你覺得用Zotero引用資料時,欄位的值不太正確,那通常都是轉譯器的問題。
我們可以試著去修改轉譯器,然後在Zotero Connector裡按下「Reset Translators」按鈕讓修改後的轉譯器生效。
If you find that the field values are incorrect when citing materials using Zotero, it's usually a translator issue. We can try modifying the translator and then click the "Reset Translators" button in the Zotero Connector to apply the changes.。