Category Archives: Software

Stable Diffusion webui CPU only on ARM64 Platform

Stable Diffusion webui is a web service based on Gradio library for Stable Diffusion. The installation process can automatically set up the environment and install Stable Diffusion, which can save a lot of time. However, it requires an NVIDIA or AMD GPU to install it. If you want to install Stable Diffusion WebUI without a GPU, some modifications are necessary.

Using a CPU to run Stable Diffusion can be painful, so this article is just for fun.

Platform is Ampere Altra Mt. Collins system with 2 Ampere Altra CPU, total 160 cores.
OS: ubuntu 22.04.02 LTS
Seems Stable Diffustion webui needs python 3.10, so, ubuntu 22.04 is good choice.

Read more »

Facebook 擋廣告

只有 Desktop 加上 Chrome/Edge 可以用
ublock origin 擋,還可以順便擋 Youtube 的廣告

加上自定的設定

www.facebook.com##div[id^=hyperfeed_story_id_]:has(span[data-ft="{\"tn\":\"j\"}"])
www.facebook.com##.pagelet-group .pagelet:has(a:has-text(Sponsored))
www.facebook.com##.pagelet-group .pagelet:has(a:has-text(Create ad))

banana.plurk.com

另一個是臉書推薦廣告
先裝 Tampermonkey
再利用 Tampermonkey 安裝這個腳本(script) FB 贊助之殺手 (FB Sponsored Killer)

ref.
回來用 uBlock Origin 擋 Facebook 廣告

學生工作好用軟體網站列表

蒐集網路上看到的好用軟體以備不時之需

Read more »

tmux

本篇是筆記文, 記一下 tmux 的特別用法

Read more »

Winodws7 無法存取 Windows Installer 服務

這個問題 Google 出來這個 URL 的方法我不能用
當您嘗試安裝 Office 時,無法存取 [Windows Installer 服務]

找了好久繞了好大一圈,最後解決方法是
執行 services.msc 之後,將 Windows Installer 啟動就可以了
Managing Services in Windows 7

Read more »

PIME 大易三碼

對一個大易用戶來說,好的輸入法不好找。
Windows 7 時是 Yahoo 輸入法最好用,但是 Yahoo 輸入法已經停止開發,Windows 10 上比較好一點的輸入法只有 PIME

前一陣子回答了一個 PIME 的問題 大易3碼表缺字 #520

Read more »

Grafana+Prometheus+Python_Client

Grafana+Prometheus

好久沒有研究 Monitor 平台了,以前都是用 Cacti 打造就覺得這玩意高大上了,但是最近研究完 Grafana+Prometheus 才知道為什麼這個組合會變成最近的潮流,這實在是太炫了,比 Cacti 不知道好看多少倍。

但是也因為如此,所以花了不少時間研究一下如何將自己設定的參數值,透過 Prometheus 在 Grafana 顯示出來

Read more »

python vim setting

忘了那邊找來的,不過覺得不錯用

將以下設定存到 /etc/vim/vimrc or ~/.vimrc

" configure expanding of tabs for various file types
au BufRead,BufNewFile *.py set expandtab
au BufRead,BufNewFile *.c set noexpandtab
au BufRead,BufNewFile *.h set noexpandtab
au BufRead,BufNewFile Makefile* set noexpandtab
" --------------------------------------------------------------------------------
" configure editor with tabs and nice stuff...
" --------------------------------------------------------------------------------
set expandtab " enter spaces when tab is pressed
set textwidth=120 " break lines when line length increases
set tabstop=4 " use 4 spaces to represent tab
set softtabstop=4
set shiftwidth=4 " number of spaces to use for auto indent
set autoindent " copy indent from current line when starting a new line
 " make backspaces more powerfull
set backspace=indent,eol,start
 set ruler " show line and column number
syntax on " syntax highlighting
set showcmd " show (partial) command in status line 

Office 2016 註冊後還是一直出現要求註冊(啟用)的視窗

這個是預裝 Windows 和 Office 2016 但是沒有買 Office 2016 License 的電腦才會發生.

即使 Uninstall 預裝的 Office , 再次安裝合法註冊 Office 之後, 仍然一直會出現這個視窗, 雖然可以關掉但是不影響使用

Read more »

DNS Query But Get Reply Code : Format Error

This is strange problem, when update BIND this time, suddenly, DNS query failed. I cannot find reason, I thought that should be NAT problem originally, because it cannot all other domains but Intranet domain, So, after capture packet to observe it. found root cause eventually , the DNS server replay me Format Error.

Read more »