Monthly Archives: January 2021

\ & ¥的顯示

在line chrome extension,常常看到 \ 顯示成 ¥,其實這是因為字型的問題,部分日本字型會有此行為,其中一個是Gothic字型 原因可參考: https://tex.stackexchange.com/questions/406247/yen-%C2%A5-symbol-for-backslash-in-texworks Some Japanese fonts, e.g., MS, Yu, IPA, and Meiryo, render U+005C (REVERSE SOLIDUS) as a yen symbol while yen symbol is assigned to U+00A5 and 0xA5 in Latin-1 encoding. This stems from … Continue reading

Posted in Front-end | Leave a comment

boost build with fPIC

在build so檔時如果要static link boost ,出現error message … can not be used when making a shared object; recompile with -fPIC 需要將boost static build加上PIC的參數 ./b2 cxxflags=”-fPIC” link=static install 參考: https://stackoverflow.com/questions/49129115/linking-boost-static-libraries

Posted in C++ Language | Leave a comment

CentOS 7 routing metric modification

nmcli connection modify “enp3s0” ipv4.route-metric 200 綁定多張網卡在同網段時,系統預設會加上route,透過metric的設定可以相規則排序。 範例中透過nmcli將enp3s0的metric設成200 可以看到以下 /etc/sysconfig/network-scripts/ifcfg-enp3s0 的IPV4_ROUTE_METRIC被設定為200,設定完需重新啟動network service

Posted in System Administration | Leave a comment