Netflix 推出的 Fast.com 網路測速服務

Netflix 前幾天在他們部落格上的這篇 「Now Available Globally: Fast.com, a New Tool to Check Your Internet Speed」跟大家宣佈推出的網路測速服務:Fast.com

Fast.com 的畫面非常簡潔,只測試使用者的 “下載" 速度、不測試上傳速度,整個畫面除了測速速率以外,只有暫停 / 重新測試的按鈕,說明按鈕,以及 FAST 和 NETFLIX 的 LOGO,測試結束後會出現 Speedtest.net 的連結讓使用者方便連到 Speedtest 做參考:

netflix-fast.com

目前看起來 Fast.com 比起 Speedtest 的幾個優勢:

  • 使用 https 加密連線,對使用者的隱私更加有保障 (雖然只是測速、可是為什麼要讓其他人知道?)
  • 畫面非常簡單、沒有廣告
  • 單純的 html + js 搭建出來的網頁前端 ( Speedtest 目前都還是在使用 Flash ),在手機、平版電腦或是 FreeBSD / Linux 等不支援(或是使用較困難) Flash player 的平台上都可以使用輕易透過 Chrome / Firefox 等瀏覽器直接使用,不需要另外安裝應用程式

不過現階段看起來 Fast.com 也有頻寬明顯不足的問題,除了沒有 ping 值參考外,有別於 Speedtest 是透過多方合作的模式在各地建立測試點, Fast.com 目前看起來是丟在Amazon S3 上面走 Akamai 的網路,我以下載速率 1 Gbps 的網路多次使用 Fast.com 測試結果只跑的到 140 Mps 上下, 同樣的網路環境 Speedtest.net 則是落在 900~950 Mbps 的區間,如果說 Netflix 只是要提供自己的用戶測試存取自家服務的網路頻寬的話還算是有參考價值,但如果要真的拿來確認所在網路的對外頻寬的話看起來現在還不能拿來當作參考 …

PS: Speedtest.net 其實也有提供 html5 的測試版本,有興趣的人可以連到這個網址玩玩看:http://beta.speedtest.net/ ,不過目前沒有開放給行動裝置使用,使用手機連上去會直接跳 Android / iOS / Windows Phone 這幾個平台的 APP 下載連結給你 (連偵測一下使用者系統只顯示對應的連結都沒做 … 可能是因為在 beta 吧) ,相對有點可惜,希望未來可以開放給行動裝置使用 (不然你改用 html5 只是為了避免未來被各家瀏覽器直接封鎖而已嗎? 可攜性就這樣白費了!)。

 

租屋注意事項筆記

差不多又到了學生在外找租屋的季節(?)了,為了避免自己忘東忘西,所以就做了一些筆記,不用每次找房都要想半天,除了租金以外,有哪些東西是應該列入考量或是可以列入考量的,既然有整理出一些東西,也就順便分享給大家參考。

住處週邊考量:

  • 噪音
    • 跟大馬路或商圈的距離等
  • 整潔
  • 週邊生活機能
  • 交通便利性
    • 公車、客運、火車、捷運、高鐵、社區巴士等
    • 缺乏公共交通工具、但離學校或公司距離近也是很好

公共設施、住戶服務:

  • 有無管理員常駐?可否代收信件、包裹?
  • 有無提供飲水機?
    • 只有熱水? 還是冷/溫水+熱水?  冰+溫+熱水?
    • 有無定期更換濾心?
  • 有無提供冰箱?
    • 有無定期清理?
  • 有無提供洗衣機、烘衣機、脫水機?
    • 有無定期清洗?
  • 有無公共空間、電梯、出入口等地點有無監視器?
  • 是否有停放汽、機車位?
    • 室內?室外?
  • 有無晾衣間、曬衣場?
    •  室內?室外?
  • 有無陽台?
  • 有無門禁管理?
  • 有無微波爐?
  • 公共空間是否定期打掃?
  • 有無滅火器?
  • 有無緊急照明燈?

繼續閱讀

Remove Exif info in jpg image under command line

Exif, stands for Exchangeable image file format, which we usually use to recognize the camera manufacturer, model, exposure time in a digital photo, it is a standard that specifies the formats for images, sound, and ancillary tags used by digital cameras (or digital devices in nowadays, like smart phones and tablets), scanners and other systems handling image and sound files recorded by digital cameras.

406px-Konqueror_Exif_data.jpg

Exif in JPEG image example from Wikipedia: https://en.wikipedia.org/wiki/File:Konqueror_Exif_data.jpg

Exif can help us know more about the photos and audios, but may also leaks the valuable and privacy info if you don’t want to let others know that you just want to share pictures with others, it will also cost a small disk space, but uf you don’t need it or you don’t want it, it’s also a waste of disk space, so you may want to remove that info like me in some situation. Here is the steps to remove Exif under command line.

Install exiftool:

Make sure you can now use exiftool:

If you would like to see the current exist info, use this command, filename.jpg is the picture you want to manipulate:

Now you can remove Exif info:

By default, it will backup your file to filename_oringinal, like filename.jpg -> filename.jpg_original, so you don’t need to worry about the backup, if you don’t want it, you can also add parameter -overwrite_original to prevent to backup file been generated.

After you remove the Exif info, you will find the modified file be a little bit smaller now.

If you take a look at its info, you will find that there are only some basic info remaing:

That’s all.

rsync 只同步特定格式/副檔名檔案的方法

想要用 rsync 同步特定格式的檔案,最近比較沒空動腦認真想,只好 Google 找現成的答案,在 stackoverflowUbuntu forums 看到的方法,很實用:

http://ubuntuforums.org/showthread.php?t=763833&p=8546521#post8546521

https://stackoverflow.com/a/11111793

看 stackoverflow 那邊討論是寫 rsync 3.0.7 以前的版本的用法要這樣寫,那個 exclude 和 include 的順序有影響 :

不過我自己是沒特別測試過就是了,隨手翻了一下 change log 好像沒看到相關的說明:

所以不確定是不是真的從 rsync v3.0.7 改了用法還是怎麼樣,等哪天有空再來翻翻看 …

Copy / pipe text from command line to clipboard and vise versa

xclip is command line interface to X selections/clipboard that is designed to run on any system with any X11 implementation, with xclip, we can not easily manipulate the data on the clipboard under a terminal in X11, no need to open a file for just copy its content anymore, and no need to move the mouse to select the output and copy it anymore. Except xclip, there is also a similar program called xsel, google it if you are interested in.

The homepage of xclip:

It’s very to install xclip via apt-get under Debian / Ubuntu based GNU/Linux distros or via pkgng under FreeBSD:

So how to use it?

If you want to copy something to clipboard, just pipe to xclip like this:

Now you can paste it as usual.

If you want to show something from clipboard, just call xclip to output:

xclip will output to standard output (stdout), so you can pipe or redirect the result to other utility and do some works you want.

在 Windows 10 上面跑的 Ubuntu / bash …

上個月(2016/03)底,今年微軟 Build 大會最讓人震驚的消息,沒有之一,透過微軟跟 Canonical (開發 Ubuntu 的公司) 的合作,未來可以在 Windows 10 上面跑原生的 Ubuntu / bash,不是跑在虛擬機或使用模擬器、容器等技術,是原生的!有了這個重大的改變,或許未來都不需要使用到 cygwinmsysGnuWin 這種專案了?一時沒空把所有資訊都看完,先來整理一些筆記 …

這項更新目前已經有測試版可以玩了,正式的版本預計在今年夏天的 Windows 10 年度更新釋出,之後就會在 Windows 10 上面有一個完整的 Ubuntu user space 子細統,不但 Linux 上常見的 utilities 如 grep, sed, awk 等工具未來都可以直接跑在 Windows 10 上,甚至 Debian / Ubuntu 在使用的套件管理系統 apt 也都可以直接使用,不論是對於使用者或是開發者都提供了更大的彈性以及便利性,同時代表未來 Windows 對 Linux 或其他原先只能跑在 unix-like OS 的專案會更加的友善。

微軟現在甚至使用 GitHub 來當 BashOnWindows 的 issue tracker:

https://github.com/Microsoft/BashOnWindows/issues

Microsoft-BashOnWindows-issues-on-GitHub.png

然後也有一個在 uservoice 上面的討論、反應平台:

https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/category/161892-bash

我從底下會提到的 Linux Command Line on Windows 影片,截了一些畫面出來:

可以看到 lsb_release -a 看到的是 Ubuntu 14.04.4 LTS:

screenshot-from-Linux Command Line on Windows-video-ll-lsb_release-a.png

示範一些常見的工具,例如 fdisk 、mount,還有貼上文字的功能:

screenshot-from-Linux Command Line on Windows-video-fdisk-and-mount-and-paste.png

透過 apt install gcc 來安裝 gcc:

screenshot-from-Linux Command Line on Windows-video-demo-apt-install-gcc.png

繼續閱讀

CloudFlare 在台灣的節點上線了

前兩天開始就開始在社群網站還有通訊軟體群組上看到在傳 CloudFlare 的系統狀態監測頁面 “CloudFlare system status" 上多了 TPE – Taipei, Taiwan 的結點
status

CloudFlare 的 CEO 也在 Twitter 上間接證實了這件事:

稍為搜尋了一下,能找到這個點的最新公開紀錄只有在 CloudFlare system status 4/6 上的一個 DNS Propagation delays in APAC, Incident Report for CloudFlare 裡面看到,明確的建置以及上線時間就不知道了:

cloudflarestatus-incidents-rz5h7qnb94v3-DNS-Propagation-delays-in-APAC

根據在 CloudFlare support 上面的文章:Which CloudFlare data center do I reach?,每個節點都是使用 Location Code: City, (State,) Country 這樣的格式來表示,而 location code 是使用最靠近的主要國際機場的 IATA 代碼 ( Each location code is the IATA code of the nearest major international airport.),冷知識一下,雖然上面也寫著 Taipei,不過 TPE 是桃園國際機場 Taiwan Taoyuan International Airport 的代號,也許外國人比較認得台北認不得桃園吧?

昨天看的時候看起來只有免費方案的流量會倒到台灣的點去,應該可以算是初期的測試,而付費流量像是 cdnjs.com, digitalocean.com 以及 cloudflare.com 都還是繼續倒到香港,而今天早上看的時候發現付費用戶的流量都已經改倒到台灣了,看圖:

cloudflare-trace-tpe.png

Trace 可以看到是 TPE 的字樣,先前都是 HKG (香港)

目前看起來從台灣學術網路、中華電信、遠傳、亞太的追蹤結果都是走到 TPE 上面去的,有興趣了解自己使用的網站 / 線路使用的是哪一個節點,可以在網址的 hostname 部份後面接上 /cdn-cgi/trace 就會看到類似上面那張截圖的結果 (前提當然是該網站有使用 CloudFlare ,其他 cdn 業者作法可能不盡相同),這邊是一些範例:

截至目前為止,CloudFlare 的 network map 上還無法看到台灣的節點,推測因為還在測試階段:

network-map

https://www.cloudflare.com/network-map

繼續閱讀