Skip to content

Zeroplex 生活隨筆

軟體開發、伺服器和生活瑣事

小 縮小字型大小。 中 重設字型大小。 大 放大字型大小。

分類: 未分類

修改 Fcitx 中文字匡的文字大小 (font size)

Posted on 2021 年 5 月 9 日2021 年 5 月 10 日 By 日落 在〈修改 Fcitx 中文字匡的文字大小 (font size)〉中有 1 則留言

螢幕的解析度越來越高,在相同大小的螢幕上文字相對看起來較小,對長時間看螢幕工作的眼睛有點吃不消,決定對工作環境動手腳。

先說一下我的工作環境:

  • Ubuntu 20.04 LTS
  • 輸入法界面是 Fcitx + Chewing (新酷音)

原本應該是調整 Fcitx 就可以調整文字輸入匡上的設定,但調整以後重新開機就會恢復原樣,所以手癢直接來改家目錄的設定檔。

設定檔的位置是 ~/.config/fcitx-qimpanel/skin/ubuntu-milk/fcitx_skin.conf:

[SkinFont]
....
CandFontSize=22
....
FontSize=22

存檔後重新啟動 Fcitx (或是登出再登入也可以),接下來輸入匡的文字大小就會更新成你的設定。

2021/05/10 更新:上述方法在重新開機以後,設定會被蓋掉,導致文字大小又恢復原樣。以下新的方法需要修改 /usr/share 的檔案,但是修改後永久有效。

先缺換目錄到 /usr/share/fcitx/skin,這邊會列出幾個 skin 樣式,這邊範例使用 default 這個 skin。修改 default 目錄中的 fcitx_skin.conf 檔:

[SkinFont]
FontSize=13
MenuFontSize=14

把上面這二個值改掉即可。

接下來透過 fcitx 的 UI 界面來選取要使用的 skin 設定檔,範例中修改的是 default,所以這邊的 skin 就選取 default:

圖一:選取 fcitx 欲使用的 skin 設定檔,

重新登入、重新開機,就可以套用新的設定了。

Tags:Fcitx, Ubuntu

Nginx 將 deny all 換成 return 404

Posted on 2021 年 5 月 9 日2021 年 5 月 9 日 By 日落 在〈Nginx 將 deny all 換成 return 404〉中尚無留言

以往不想要讓人索引、讀取的目錄和檔案都會設定成 deny all:

在新分頁中預覽

location ~ /\.git {
    deny all;
}

這樣設定的話,開啟該目錄就會收到 HTTP 403 Forbidden。這個訊息有二個含意:主機上面的確有這份資料、你沒有權限打開。

也就是,檔案在 URL 的連結已經確定了,只要繞過權限管理即可讀取檔案。

與其這樣,不如直接讓主機回傳 HTTP 404,這樣便無法知道檔案是否存在:

location ~ /\.git {
    return 404;
}
Tags:Nginx, 資訊安全

Android App 開發培訓計劃 2021

Posted on 2021 年 4 月 29 日2022 年 9 月 23 日 By 日落 在〈Android App 開發培訓計劃 2021〉中尚無留言

經朋友推薦,Google 推出了 Android 開發課程,且課程主要是使用 Kotlin 來建立 Android Apps。沒有猜錯的話,這可能與之前 Google 與 Oracle 之間的 Android 版權訴訟有關,用到 Java 時 Oracle 就想要分一杯羹什麼的,所以 Google 開始推廣 Kotlin。

這次 Google 的 Android 培訓計畫:https://events.withgoogle.com/android-study-jam-twhk-2021/ ,主要使用 Kotlin,但我想這不是重點,重點是完成課程以後,有 Google 頒發的 certification 以外,還會贈送官方的 Android 貼紙與 T-shirt … XD

Tags:Android, Google

Android 上消失的 Google 注音輸入法

Posted on 2021 年 4 月 28 日2022 年 1 月 17 日 By 日落 在〈Android 上消失的 Google 注音輸入法〉中有 4 則留言

2011/10/08 update:Google Play 新版已經無法再透過網頁連結開啟「Google 注音輸入法」,請參考網路上其他的評語來選擇 GBoard 以外的輸入法。 (我自己跳去使用超注音)

在 Google 開始推 Gboard 輸入法以後,Google Play Store 就無法搜尋到原有的 Google 注音輸入法,但 Google Play Store 並沒有將 Google 注音輸入法移除,就真的是從搜尋結果和應用程式列表中完全消失而已。

2011/11/04 update:9Apps 可以下載到 Google 注音的 apk,版本是 2016/12/10 發佈的 v2.4.3,我自己也備份了一下。可以到 EAA Series 的文章中,了解下載 APK 的方法。

More “Android 上消失的 Google 注音輸入法” »

Tags:Android

Google 阿根廷的網域過期忘記 renew 並遭購買

Posted on 2021 年 4 月 27 日2021 年 4 月 27 日 By 日落 在〈Google 阿根廷的網域過期忘記 renew 並遭購買〉中尚無留言

BBC 一篇報導中說有人發現 www.google.com.ar 無法顯示,那位老兄意外的把網域買下來,並發現真的可以設定顯示自己的網頁。

Google Argentina’s domain name bought by man for £2

“I entered www.google.com.ar into my browser and it didn’t work,” he said. “I thought something strange was happening.”
He decided to go on to the Network Information Center Argentina (NIC) – the organisation responsible for operating the .ar country code domains. He searched for Google – and up popped Argentina’s Google domain available for purchase.
Despite thinking it would not work, he “followed the steps and then I received an email with the purchase invoice”, he said.
……
Dumbfounded, he tapped www.google.com.ar into his search bar and pressed enter. “My personal data appeared,” he said.

他最不該做的事情,不是買下 Google 的網域 …. 是將網域指向自己的網頁,當原本要使用 Google 搜尋服務大量的流量,全部都會轉去他的網頁,真是有夠嗨的 XD

Tags:Google, XD, 新聞

文章分頁

上一頁 1 ... 59 60 61 ... 318 下一頁

其他

關於我  (About me)

  文章 RSS Feed

  留言 RSS Feed

Apache AWS Bash C/C++ Docker FreeBSD GCP Git Google Java JavaScript Laravel Linux Microsoft MSSQL MySQL Nginx PHP PHPUnit PostgreSQL Python Qt Ubuntu Unix Vim Web Windows WordPress XD 作業系統 分享 好站推薦 專題 攝影 新奇搞笑 新聞 旅遊 生活雜記 程式設計 網路架站 網頁設計 資訊學習 資訊安全 遊戲 音樂


創用 CC 授權條款
本著作係採用創用 CC 姓名標示-相同方式分享 4.0 國際 授權條款授權.