:::

將PDF轉換成模仿成掃描檔:ScanSim PDF / Converting PDF to Simulated Scanned Document: ScanSim PDF

布丁布丁吃布丁

將PDF轉換成模仿成掃描檔:ScanSim PDF / Converting PDF to Simulated Scanned Document: ScanSim PDF

2025-0109-095818.png

列印、簽名、拍照、轉換成PDF、上傳,這是現在很多證明文件的處理手續。處理後的PDF檔案只是圖片的封裝,不能直接選取與複製,只能作為證明文件留存,這已經是最基本的資安防護手段。然而,如果可以將數位文件直接轉換成彷彿掃描檔一樣的檔案,那不就可以省下列印與掃描的繁雜手續了嗎?也許這時候Docker APP ScanSim PDF就能夠派上用場了。

Printing, signing, taking a photo, converting it to PDF, and uploading it—this is the procedure for processing many verification documents nowadays. The processed PDF file is merely a container for the image; the text cannot be directly selected or copied. It can only serve as an archive of the verification document, which is a basic security measure. However, if digital documents could be directly converted into files that resemble scanned documents, wouldn't that eliminate the tedious printing and scanning steps? Perhaps the Docker APP ScanSim PDF could be useful in this situation.

(more...)

雜談:Gemini可以免費繪圖,但不能用API畫 / TALK: We Can Draw on Gemini Webpage for Free, but Not With API

布丁布丁吃布丁

雜談:Gemini可以免費繪圖,但不能用API畫 / TALK: We Can Draw on Gemini Webpage for Free, but Not With API

2025-0207-015908.png

畢竟是免費的AI功能,真的不能要求太多。

(more...)

自行架設Dify使用的重排序模型:Text Embeddings Inference / Self-Hosting a Dify Reranking Model: Text Embeddings Inference

布丁布丁吃布丁

自行架設Dify使用的重排序模型:Text Embeddings Inference / Self-Hosting a Dify Reranking Model: Text Embeddings Inference

2025-0109-003246.png

隨著在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.

(more...)

希希助教獻上康乃馨的祝福 / TA. Sissi Presents Carnation Blessings

布丁布丁吃布丁

0 Comments

希希助教獻上康乃馨的祝福 / TA. Sissi Presents Carnation Blessings

20250106_BLOG_.note_01.png

認真讀書也是回報母親辛苦的一種表現喔!

(more...)

雜談:Home Assistant從開發板遷移到虛擬機器 / Talk: Migrating Home Assistant From a Development Board to a Virtual Machine

雜談:Home Assistant從開發板遷移到虛擬機器 / Talk: Migrating Home Assistant From a Development Board to a Virtual Machine

2025-0122-210140.png

我原本拿來架設Home Assistant的OrangePie掛點了。藉這個機會,我將整個Home Assistant改在Proxmox VE架設。這裡記錄一下整個過程。

(more...)

修改Zotero本機的轉譯器 / Modifying Zotero's Local Translators

布丁布丁吃布丁

修改Zotero本機的轉譯器 / Modifying Zotero's Local Translators

2025-0107-021410.png

如果你覺得用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.

(more...)

雜談:奔跑吧,CPU小貓! / Talk: Run, CPU Cat!

布丁布丁吃布丁

雜談:奔跑吧,CPU小貓! / Talk: Run, CPU Cat!

2025-0122-162203.png

有段時間桌寵概念挺流行的。大家都想要在桌面養個什麼玩意兒來分散自己寶貴的注意力。後來我也決定在工作列裝個CatWalk,看小貓配合我努力工作時狂奔。

(more...)

你的CITATION.cff格式正確嗎? 用CITATION.cff驗證工具來檢查吧! / Is Your CITATION.cff Format Correct? Check It With the CITATION.cff Validator!

布丁布丁吃布丁

你的CITATION.cff格式正確嗎? 用CITATION.cff驗證工具來檢查吧! / Is Your CITATION.cff Format Correct? Check It With the CITATION.cff Validator!

2025-0107-012249.png

CITATION.cff是用於記錄供人引用資訊的一種YAML純文字格式。那要怎麼知道自己寫的CITATION.cff是否正確呢?我們可以用R套件cffr來驗證。我在Colab把它寫成了可以線上使用的CITATION.cff驗證工具了,讓我們一起來看看怎麼使用吧。

CITATION.cff is a plain text YAML format for recording citation information. How can you tell if your CITATION.cff is correct? We can use the R package cffr for validation. I've created an online CITATION.cff validator using Colab. Let's take a look at how to use it.

(more...)

如何將螢幕畫面擷取成圖片? / How to Capture a Screenshot?

布丁布丁吃布丁

如何將螢幕畫面擷取成圖片? / How to Capture a Screenshot?

2025-0425-025109.png

本篇將說明如何在桌上型電腦Windows、Linux、MacOS以及行動裝置的Android、iPhone或iPad上擷取螢幕畫面。大多時候,其實我們都可以用鍵盤上的快速鍵「PrtSc」來擷取畫面。

This article explains how to take screenshots on desktop Windows, Linux, MacOS, and mobile devices like Android, iPhone, or iPad.  Most of the time, we can use the "PrtSc" hotkey on the keyboard to capture the screen.

(more...)

雜談:Home Assistant在遠端電腦播放聲音 / TALK: Playing Audios on a Remote Computer with Home Assistant

雜談:Home Assistant在遠端電腦播放聲音 / TALK: Playing Audios on a Remote Computer with Home Assistant

2025-0122-001139.png

結論寫在前面,最後我還是在Home Assistant使用vlc-telnet播放聲音,這是最簡單的做法了。

(more...)

GitHub上的軟體作品也能申請DOI:Zenodo與Github設定教學 / Software Projects on GitHub Can Also Apply for DOIs: A Tutorial on Zenodo and GitHub Configuration

布丁布丁吃布丁

GitHub上的軟體作品也能申請DOI:Zenodo與Github設定教學 / Software Projects on GitHub Can Also Apply for DOIs: A Tutorial on Zenodo and GitHub Configuration

2025-0103-012010.png

有人注意到我的GitHub保存庫出現了DOI的標示嗎?DOI是學術界確保數位資源能夠長期被人取用的重要方法,常用於學術期刊文章上。但其實任何數位資源都可以註冊DOI,包括發佈在GitHub上的軟體。有了DOI,大家就更容易引用你的作品,也可以為你的作品留下一個確確實實存在的記錄。那麼到底怎麽為GitHub申請DOI?又怎麼讓DOI的徽章出現在GitHub儲存庫的首頁?這篇就讓我們一起來看看怎麼做吧。

Has anyone noticed the DOI badge appearing on my GitHub repositories? DOIs are crucial in academia for ensuring the long-term accessibility of digital resources and are frequently used for journal articles. However, any digital resource can be assigned a DOI, including software hosted on GitHub. With a DOI, it becomes easier for others to cite your work and provides a permanent record of its existence. So, how do you get a DOI for your GitHub repository, and how do you display the DOI badge on your repository's homepage? Let's explore how to do just that in this post.

(more...)

雜談:用Dify跟Stable Diffuision製作投影片章節的封面照片 / Talk: Creating a Cover Image for Slide Section Using Dify and Stable Diffusion

雜談:用Dify跟Stable Diffuision製作投影片章節的封面照片 / Talk: Creating a Cover Image for Slide Section Using Dify and Stable Diffusion

2024-1227-173408.png

為投影片的內容選擇合適的照片真不是一件容易的事情。於是我就試著將投影片的內容傳送給大型語言模型,請大型語言模型撰寫適合Stable Diffusion的提示詞,然後用提示詞來繪圖看看。這樣的工作流會出現什麼結果呢?

(more...)

來看看3D掃描儀掃描了什麼模型吧 / Let's See What Models the 3D Scanner Scanned

布丁布丁吃布丁

來看看3D掃描儀掃描了什麼模型吧 / Let's See What Models the 3D Scanner Scanned

2025-0101-232209.png

之前我在幾次「數位化與延展實境工作坊」裡面都有介紹到3D掃描儀REVOPOINT POP3。工作坊的過程也常常聽到同學讚歎掃描儀的表現。到底大家在工作坊裡面掃描了什麼東西呢,讓我們一起來看看吧。

In previous "Digitalization and Extended Reality Workshops," I've introduced the REVOPOINT POP3 3D scanner.  During the workshops, I often heard participants praising the scanner's performance.  So, what exactly did everyone scan during these workshops? Let's take a look.

(more...)