Collection for Y2017W09 (2017-02-27 Mon 00:00:00 +0800 ~ 2017-03-06 Mon 00:00:00 +0800)

facebook

  • Messenger Platform 1.4 Brings Even More Tools to Build Great Experiences – Messenger Platform
    • Facebook Messenger Platform 1.4 版,最近剛好在碰 Messenger Bot 的部份,所以得追一下。
    • 這版改最大的大概就是 Persistent Menu 的結構吧,從原本只能放 5 個最上層的按鈕,改成放 3 個最上層的按鈕,然後每個按鈕的下一層可以再放 5 個按鈕。
    • 另外的則是 persistent Menu 加入了 locale 的設定,可以設定 default locale 要回的訊息,然後可以針對不同的 locale 做設定,比如英語系的國家就回英文的訊息,中文的則回中文等等。

golang

linux

  • Doggy: WINE 解決中文亂碼
    • 最近有用到 WINE,又遇到中文亂碼的問題,花了一些時間踩了些雷以後,發現主要有兩種問題:
      • 第一種是字型問題,解法就照上面這篇寫的一樣,把字型複製到 ~/.wine/driver_c/windows/Fonts 之後,再用編輯器開個 font.reg 寫入下方的內容後存檔
      • 之後再打開 ~/.wine/driver_c/windows/regedit.exe or $ wine regedit,選擇 import 剛剛儲存的 font.reg
    • 另外一種則是 locale 的問題,必須視執行軟體的情況修改 LC_ALLLANG 這兩個環境變數
      • 可能是 $ export LC_ALL=zh_TW.UTF-8, $ export LANG=zh_TW.UTF-8
      • 也可能是 $ export LC_ALL=zh_TW.Big5, $ export LANG=zh_TW.Big5
    • 我遇到的是這兩種問題都得一起解決才不會出現任何中文亂碼。
REGEDIT4  

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]  
"Arial"="Arial"  
"Arial CE,238"="PMingLiU"  
"Arial CYR,204"="PMingLiU"  
"Arial Greek,161"="PMingLiU"  
"Arial TUR,162"="PMingLiU"  
"Courier New"="Courier New"  
"Courier New CE,238"="PMingLiU"  
"Courier New CYR,204"="PMingLiU"  
"Courier New Greek,161"="PMingLiU"  
"Courier New TUR,162"="PMingLiU"  
"MingLiU"="MingLiU"  
"PMingLiU"="PMingLiU"  
"FixedSys"="PMingLiU"  
"Helv"="PMingLiU"  
"Helvetica"="PMingLiU"  
"MS Sans Serif"="PMingLiU"  
"MS Shell Dlg"="PMingLiU"  
"MS Shell Dlg 2"="PMingLiU"  
"System"="PMingLiU"  
"Tahoma"="PMingLiU"  
"Times"="Times"  
"Times New Roman"="Times New Roman"  
"Times New Roman CE,238"="PMingLiU"  
"Times New Roman CYR,204"="PMingLiU"  
"Times New Roman Greek,161"="PMingLiU"  
"Times New Roman TUR,162"="PMingLiU"  
"Tms Rmn"="PMingLiU"  

news

  • Smart condom ring i.Con is like a Fitbit for your man bits - CNET
    • The i.Con Smart Condom, which markets itself as the "world's first smart condom," is actually a ring that fits over a boring, dumb condom and claims to track the exercise of your man bits, as well as detect chlamydia and syphilis.

    • 智慧型保險套,可以追蹤運動時間、射速、射出角度還可以分享到社群軟體...
  • Mozilla Acquires Pocket | The Mozilla Blog
    • Mozilla 竟然把 Pocket 買了,聽說 Firefox 跟 Pocket 的整合性也提高了,真好奇買了 Pocket 的用意是什麼?

programmer

programming

  • 無暇的程式碼 Clean Code 心得分享
    • 挺棒的要點分享,Clean Code 真的是值得一看的好書啊,雖然是用 Java 當範例,不過其他程式語言的使用者來看也不會覺得落差很大就是。

web


life

taiwan


Share


Donation

如果覺得這篇文章對你有幫助, 除了留言讓我知道外, 或許也可以考慮請我喝杯咖啡, 不論金額多寡我都會非常感激且能鼓勵我繼續寫出對你有幫助的文章。

If this blog post happens to be helpful to you, besides of leaving a reply, you may consider buy me a cup of coffee to support me. It would help me write more articles helpful to you in the future and I would really appreciate it.


Related Posts