不知為何,2011似乎是比較乏善可陳的一年,一部分可能是我被Qt困住了一陣子,另外一部分是去年沒有動力做一些有趣的專案,但是基本的社群聚會還是有參加,大概這是唯一讓我覺得熱血的時刻吧...
去年第一次參加Startup Weekend Taipei,也在三天兩夜寫了一個利用WebSocket讓手機和瀏覽器互動的小遊戲,就類似COSCUP裡盛大創新院魏子鈞做的
去年最大的事發生在年底,人生有了一些階段性的變化? 總之希望2012能平安順利
2012年1月7日 星期六
[多媒體] Setup Video Streaming in Linux
VLC is a free and open source cross-platform multimedia player and framework that plays most multimedia files as well as DVD, Audio CD, VCD, and various streaming protocols.
environment:
* server: ubuntu 10.04 (192.168.104.131)
* client: ubuntu 10.04 (192.168.104.1)
1. launch VLC
server$ vlc
1.1 choose "Media" -> "Advanced Open File..."
1.2 in "File Selection", press "Add..." to choose your media file, then set "Stream"
1.3 check the path of media is correct and press "Next"
1.4 in "Destinations", choose "HTTP" and press "Add"
1.5 set HTTP output port as default "8080", path as default "/"
1.6 set Miscellaneous Options as default and press "Stream"
2. receive video streaming via SMPlayer
client$ smplayer
2.1 choose "Open" -> "URL..."
2.2 fill in URL with http://server:8080/
2.3 play
reference:
* 架設HTTP Streaming Servrer
* Live Streaming Using C
2011年12月28日 星期三
2011年12月22日 星期四
[PHP] Warning: date(): ... date_default_timezone_set() ...
如果在code裡面用到date()或time()相關函式,出現以下warning:
解決方法就是在php.ini設定timezone
Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Asia/Chongqing' for 'CST/8.0/no DST' instead in /path/to/code.php on line xx
解決方法就是在php.ini設定timezone
$ vim /path/to/php.ini
date.timezone = "Asia/Taipei"或是在code裡面date()/time()呼叫前指定timezone
$ vim /path/to/code.php
date_default_timezone_set('Asia/Taipei');
2011年11月29日 星期二
[Tips] HTTP Proxy
由於有時候會需要測一些鎖IP的應用程式,例如Pandora,Hulu,Netflix等,大概不外乎使用VPN或是proxy取得國外的IP後才能開心的使用...
網路上的proxy一狗票,不外乎是先透過HTTP連線到對方的proxy再幫你轉導或是直接在本機瀏覽器指定對方的proxy兩種方法,可是常常不是因為對方的Proxy服務斷線,就是有時候連線到一半就會斷掉...
而還有一種可以先建立ssh連線的服務就很方便,大致上就是用10分鐘郵件在ssh center註冊一個帳號,就可以透過ssh tunnel快樂的使用24小時免費proxy服務
網路上的proxy一狗票,不外乎是先透過HTTP連線到對方的proxy再幫你轉導或是直接在本機瀏覽器指定對方的proxy兩種方法,可是常常不是因為對方的Proxy服務斷線,就是有時候連線到一半就會斷掉...
而還有一種可以先建立ssh連線的服務就很方便,大致上就是用10分鐘郵件在ssh center註冊一個帳號,就可以透過ssh tunnel快樂的使用24小時免費proxy服務
2011年11月22日 星期二
訂閱:
文章 (Atom)









