公告版位
參考文章來源 http://www.howtogeek.com/tips/how-to-fix-flash-videos-having-no-sound-in-chrome-on-mac-os-x/

主要是因為 Chrome 的 plugin 中有兩個 Flash 的播放程式
把其中一個 Pepper 版本 Disable 後,不用重開 Chrome,馬上就會有聲音了
pepperflash

步驟如下
1. 在網址列輸入 chrome://plugins
2. 點選右上角的 detail 把細節展開
3. 搜尋 Flash 後就會發現有兩個版本的 flash
4. 找到 Pepper 的版本然後按下 Disable 即可

網路上搜尋一下 PepperFlash,看來原本 Chrome 想要捨棄 Adobe Flash 自己出一套
沒想到創造出更多的問題 XD
文章標籤

ieon 發表在 痞客邦 留言(0) 人氣()

因為同事參加了今年的 Google I/O,帶回來一堆小禮物
其中一個就是 Google wallet 小蛋,裡面裝著神奇的黏土塊

google_wallet_clay
文章標籤

ieon 發表在 痞客邦 留言(0) 人氣()

雖然說現在 32-bit 的機器會越來越少,不過踩到這個 bug 還是記錄一下

在官方文件中有提到 http://php.net/manual/en/function.ip2long.php
Because PHP's integer type is signed, and many IP addresses will result in negative integers on 32-bit architectures, you need to use the "%u" formatter of sprintf() or printf() to get the string representation of the unsigned IP address.
如果你是使用 32-bit 的作業系統,有可能出來的值會是負數,例如 210.61.150.2 這個 Hinet IP

由於現在開發系統的時候通常在資料庫的設計上都會把登入 IP 設為 INT (10) unsigned
如果出現負數的情況時就是 500 Internal Server Error 噴給你看

所以解法就是再包一層 sprintf 讓他確保是正數
sprintf("%u", ip2long($_SERVER['REMOTE_ADDR']))
文章標籤

ieon 發表在 痞客邦 留言(0) 人氣()

thsrc

終於有充電座了,不會因為手機電腦沒電而硬是要去坐商務車廂 Orz
不過現在新車廂的比例還真是少的可憐啊!

如果要搭新車廂可以參考 http://www.thsrc.com.tw/event/2013_CartoonTrain/page3.htm
文章標籤

ieon 發表在 痞客邦 留言(1) 人氣()