pageres, phantomJS capture sreenshot chinese fonts not render correctly

問題 前幾天在mac上用pageres做網站截圖都很正常,搬上ec2上的ubuntu之後,發現截圖的中文字都是一格一格的... google一下發現不少人遇到過,深入探究後發現是phantomJS在ubuntu上沒有中文font的問題... * [github] Linux: Text is rendered as box (or square) [https://github.com/ariya/phantomjs/issues/10460] * [blog] Lessons learned while »

大學最後一個階段

大學要畢業了,畢業典禮沒什麼感覺,直到今天把wheelLab的東西都收收才有點感覺... 大學四年過去了,我還記得大一的時候,我覺得紀力榮是個怪人, 把我拉到他家,跟我講一堆有的沒的,不過瞬間我有種"對啊!我怎麼從來都沒想到可以這樣做"的感覺,從"我們做得到嗎?"到完成我們第一個作品- idealdeck,我還記得那興奮的感覺,我還記得我熬夜把php的書一天看完,隔天就開始寫程式,儘管我們那時候什麼都不懂,但就是天真的覺得可以把天翻過來! 我永遠不會忘記那一天, »

GIS data format

common file format kml source * google kml tutorial [https://developers.google.com/kml/documentation/kml_tut] gml source * wiki [http://en.wikipedia.org/wiki/Geography_Markup_ »

304 Not Modified

last modified & Etag http server在 respond的時候,附上last-modified或是ETag header,這兩個擇一就好。 * last modifeid: 這個respond內容上次修改的時間 * Etag: stand for "entity tag", 通常用md5計算hash或crc32算checksum,用此辨識內容有沒有改變 這種cache機制作用在於減少respond的內容,每一次browser request會附上if-modify-since或if-none-match。 if-modify-since會跟last-modified比較, »