:::

實作相容OpenAI API,但背後不是OpenAI的API服務 / Implementing OpenAI API-Compatible Services, But Not Powered by OpenAI

布丁布丁吃布丁

實作相容OpenAI API,但背後不是OpenAI的API服務 / Implementing OpenAI API-Compatible Services, But Not Powered by OpenAI

2025-0212-193808.png

我們上次談到了不是背後說用到OpenAI模型的API不見得能相容OpenAI API,那我們這次就來做個能夠相容於OpenAI API的服務,但只會回答「喵」的「喵型語言模型」。

Last time we talked about how not all APIs that claim to use OpenAI models are necessarily compatible with the OpenAI API. This time, let's create a service compatible with the OpenAI API, but it only responds with "Meow." We'll call it the "Meow Language Model."

(more...)

雜談:生活小技巧之用魔鬼氈避免機車鑰匙脫落吧 / Talk: Use Velcro to Prevent Your Motorcycle Key From Falling Off

布丁布丁吃布丁

雜談:生活小技巧之用魔鬼氈避免機車鑰匙脫落吧 / Talk: Use Velcro to Prevent Your Motorcycle Key From Falling Off

2025-0514-172516.png

這幾天騎機車騎到鑰匙居然整個掉出來了,這該怎麼辦好呢?

(more...)

AdGuard Home不只是拿來擋廣告 / AdGuard Home Is More Than Just an Ad Blocker

布丁布丁吃布丁

AdGuard Home不只是拿來擋廣告 / AdGuard Home Is More Than Just an Ad Blocker

2025-0123-041105.png

自從裝起了AdGuard Home來擔任我住處的DNS伺服器之後,我用它擋掉了很多奇怪的廣告。除此之外,它還能拿來自訂Domain Name,真的是太實用了!

Since I set up AdGuard Home as the DNS server for my place, it has blocked a lot of weird ads. Besides that, it can also be used for custom domain names, which is really practical!

(more...)

雜談:在實體機器裡面架設虛擬機器的虛擬機器失敗 / TALK: Virtual Machine Failure Within Nested Virtualization on a Physical Machine

布丁布丁吃布丁

雜談:在實體機器裡面架設虛擬機器的虛擬機器失敗 / TALK: Virtual Machine Failure Within Nested Virtualization on a Physical Machine

2025-0320-111359.png

沒想到Proxmox VE裡面的Windows無法啟動WSL2的原因,可能是因為Proxmox VE宿主機的CPU是AMD。

(more...)

如何在Home Assistant的localTuya設定裝置的實體? / How to Set Up Device Entities in LocalTuya on Home Assistant?

布丁布丁吃布丁

如何在Home Assistant的localTuya設定裝置的實體? / How to Set Up Device Entities in LocalTuya on Home Assistant?

2025-0123-004235.png

要在Home Assistant裡面使用localTuya,我們除了要取得裝置的local key之外,還需要自行設定裝置的實體在Home Assistant的控制方式。以下我們就用威技除溼機WDH-11FS為例子,來看看怎麽將UVC模式設定到Home Assistant上。

To use localTuya in Home Assistant, besides obtaining the device's local key, we also need to configure how the physical device is controlled within Home Assistant.  Below, we'll use the NWT WDH-11FS dehumidifier as an example to demonstrate how to set up the UVC mode in Home Assistant.

(more...)

雜談:也許NAS作為NAS就好 / TALK: Perhaps a NAS Should Just Be a NAS

布丁布丁吃布丁

雜談:也許NAS作為NAS就好 / TALK: Perhaps a NAS Should Just Be a NAS

2025-0220-174221.png

近期在更換QNAP NAS硬碟的時候,不禁思考起我對NAS看法的轉變。

(more...)

在Home Assistant使用紅外線遙控器Moes UFO-R11 / Using Infrared Remote Control Moes UFO-R11 in Home Assistant

布丁布丁吃布丁

在Home Assistant使用紅外線遙控器Moes UFO-R11 / Using Infrared Remote Control Moes UFO-R11 in Home Assistant

2025-0122-012555.png

紅外線遙控器Moes UFO-R11可以透過Zigbee2MQTT跟Home Assistant整合在一起,讓我們能夠在Home Assistant裡面直接控制冷氣、電風扇等紅外線遙控的裝置。但是UFO-R11的設定可是出乎意料之外的複雜,讓我們用這篇來記錄一下做法吧。

The Moes UFO-R11 infrared remote control can be integrated with Home Assistant via Zigbee2MQTT, allowing us to directly control infrared-controlled devices like air conditioners and fans within Home Assistant. However, setting up the UFO-R11 is unexpectedly complex. Let's use this post to document the process.

(more...)