Firefox 31以上版本瀏覽政府網站(https) 會出現安全連線失敗
連線到 — 時發生錯誤。 節點的憑證有無效的簽章。
(錯誤碼: sec_error_bad_signature)
這是因為行政院新的憑證 並沒有列入 Firefox 的預設憑證清單裡面
解決方法很簡單 就匯入就好了
但是 身為一個暴民 還是要說一下
** 警語 匯入政府相關憑證 所產生之風險請自行評估 **
好喔~
上週在看做網頁的一些教學 發現怎麼人家做網頁跟D3刷寶一樣快
原來是用了 emmet 這個神外掛
裝了之後 只要在編輯器打上
[code]
#page>div.logo+ul#navigation>li*5>a{Item $}
[/code]
按一下指定熱鍵(依照編輯器與平台不同)
就會轉換為
[code language=”html”]
<div id="page">
<div class="logo"></div>
<ul id="navigation">
<li><a href="">Item 1</a></li>
<li><a href="">Item 2</a></li>
<li><a href="">Item 3</a></li>
<li><a href="">Item 4</a></li>
<li><a href="">Item 5</a></li>
</ul>
</div>
[/code]
Debian 更新 Jessie 之後 Apache 也順道升級到 Apache 2.4
不過因為之前的設定不符新版本的規範 要修正幾個地方
$ sudo a2ensite blog ERROR: Site blog does not exist!
這是因為設定檔必須加副檔名 .conf
mv /etc/apache2/sites-available/blog /etc/apache2/sites-available/blog.conf
$ sudo service apache2 start Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.
然後去找一下問題
sudo systemctl status apache2.service 1 ↵ ● apache2.service - LSB: Apache2 web server Loaded: loaded (/etc/init.d/apache2) Active: failed (Result: exit-code) since Mon 2015-04-27 14:49:01 CST; 2min 59s ago Process: 13061 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS) Process: 10368 ExecReload=/etc/init.d/apache2 reload (code=exited, status=0/SUCCESS) Process: 13114 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE) Apr 27 14:49:01 de apache2[13114]: Starting web server: apache2 failed! Apr 27 14:49:01 de apache2[13114]: The apache2 configtest failed. ... (warning). Apr 27 14:49:01 de apache2[13114]: Output of config test was: Apr 27 14:49:01 de apache2[13114]: AH00526: Syntax error on line 5 of /etc/apache2/sites-enabled/blog.conf: Apr 27 14:49:01 de apache2[13114]: Either all Options must start with + or -, or no Option may. Apr 27 14:49:01 de apache2[13114]: Action 'configtest' failed. Apr 27 14:49:01 de apache2[13114]: The Apache error log may have more information. Apr 27 14:49:01 de systemd[1]: apache2.service: control process exited, code=exited status=1 Apr 27 14:49:01 de systemd[1]: Failed to start LSB: Apache2 web server. Apr 27 14:49:01 de systemd[1]: Unit apache2.service entered failed state.
解決方式 把設定檔裡面的 Option 後面加上 + –
Options +FollowSymLinks -Indexes
終於啟動了 但是怎麼看都是 Forbidden
回頭看一下log
You don't have permission to access / on this server. [Mon Apr 27 14:40:44.662774 2015] [authz_core:error] [pid 12400] [client 192.168.1.199:50394] AH01630: client denied by server configuration: /home/web/htdocs/index.php
因為我 DocumentRoot 沒有放在 /var/www/html 下面
所以爆炸了
解決方式是在 Directory 區段內加入 Require all granted
例如
[code highlight=”3″]
<Directory />
Options +FollowSymLinks -Indexes
Require all granted
</Directory>
[/code]
再重新啟動就好了
—
2.2 configuration:
Order allow,deny
Allow from all
2.4 configuration:
Require all granted
筆記一下 gettext 衝突
Installing gettext-runtime-0.19.4... pkg-static: gettext-runtime-0.19.4 conflicts with gettext-0.18.3.1_1 (installs files into the same place). Problematic file: /usr/local/bin/envsubst *** Error code 70 Stop. make: stopped in /usr/ports/devel/gettext-runtime
成因:
The devel/gettext port has been split up in devel/gettext-runtime, a lightweight package containing runtime libraries, and devel/gettext-tools, a package containing developer tools. The devel/gettext port still exists as a metaport. You must first delete the existing installation of gettext and then reinstall it. This will break sudo, so you *must* do this in a root shell (sudo -i) if you use sudo.
解決方法
pkg delete -f gettext
參考資料 https://github.com/freebsd/freebsd-ports/blob/master/UPDATING
UPDATE: 改用這個addon就好了
Firefox 的開發者版本 Developer Edition 是預設暗色主題, 這種黑色系的對宅宅來說 真是一種致命的吸引力
可是 Developer Edition 是走 Aurora channel 並非正式發行版本的 channel 這穩定度來說稍差了點
之前想說應該還ok, 結果測試了一兩個月 出問題的機率比想像中的還高 只好淚砍
這兩天想 應該還是有辦法把那個黑化主題弄過來 找一下資料 果然有 而且方法超簡單 其實正式發行版本本來就內含
小弟有幸在 2015.04.17 與一些夥伴們分享 Firefox 與開發者工具 slides如上
關鍵字搜尋預設都是跑 UTF-8 編碼, 但是遇到像是露天拍賣這種還在用 萬惡Big5 編碼的網站
就要在搜尋網址後面接上 &mozcharset=Big5
以露天為例 搜尋網址要改為
http://search.ruten.com.tw/search/s000.php?searchfrom=indexbar&k=%s&t=0&mozcharset=Big5
另外 Firefox 在編輯後儲存時關鍵字的欄位會被洗掉
然後如果我有設過另一個搜尋 他就會去抓另一個沒有加big5設定的 所以儲存時候必須修改後重新檢查一下
為了效能 很多 CSS 都減肥成為 .min.css
整個 unreadable
還好 SublimeText CSS Unminifier 這外掛可以把 min 重新整理回 normal 格式
最近想換手機, 做了一下4G LTE的功課
才發現各國LTE頻道差異其實頗大
常出國旅遊得要注意一下手機的頻道
因為手機廠商所謂的全頻手機 可能只有在台灣全頻 出了台灣就半殘
首先LTE區分為 TDD/FDD 兩種不同原理 但是你也不用管
因為兩者的頻道是不同頻道 我們只要單看頻道就可以知道可不可以用
TDD LTE頻道採用band 1~31
FDD LTE則是採用band 33~44
每一個頻道(band)代表著一個頻率區間
例如 band 3 是 1800MHz
詳細請見 E-UTRA:Frequency bands and channel bandwidths
全球各家電信業者所使用的頻段我們可以從 List of LTE networks 查詢
以台灣為例
使用了700/900/1800MHz的頻率
也就是Band 28(700MHz), Band 8(900MHz), Band 3(1800MHz)的頻道
要各家通吃(全頻)的話你的手機就要支援B3/B8/B28
但是在看過 List of LTE networks 之後你也知道每個國家不同
所以你必須看一下你買的手機 是否支援你常去的國家
如果沒有的話 那就只能吃通用性比較高但是比較慢的的3G訊號 或是用當地的 LTE wifi分享器走wifi來用
我們再以台灣人常去的日本為例
如果是台灣人常租用bmobile和so-net的prepaid sim 卡為例
這兩家其實都是走 NTT Docomo 的線路從上圖上我們可以看到 NTT 使用的band是1,19,21而band3則只支援關東關西和東海地區(東京、名古屋、大阪圈內)
所以如果你要去北海道之類的地方玩耍台灣的全頻手機不一定支援 你得看一下你的全頻是否有包含1,19,21其中一個頻道
舉幾個例子
Samsung Note4台版 支援 B1/B2/B3/B4/B5/B7/B8/B28(台灣3/8/28全頻 日本3,1)
HTC Butterfly2支援 B1/B3/B7/B8/B28/B38/B40/B41 (台灣3/8/28全頻 日本3,1)
LG G3支援 B1/B3/B7/B8/B20/B28/B40(台灣3/8/28全頻 日本3,1)
Apple iphone6(plus)支援 B1/B2/B3/B4/B5/B7/B8/B13/B17/B18/B19/B20/B25/B26/B28/B29/B38/B39/B40/B41 超猛的 (台灣全頻/日本1/19/3)
各位可以用者樣的方式去查詢你想買的手機或是你現有的手機跟你要旅遊的國家是否支援
支援的話就可以買當地的sim卡用
也當然 如果不支援LTE也可以改走
以上報告