https://www.cyberciti.biz/tips/linux-procfs-file-descriptors.html
https://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/
FU's CODE
2017年10月3日 星期二
2017年10月2日 星期一
Install teamviewer on Ubuntu 14.04
Nothing to say.......
Just install this version
http://download.teamviewer.com/download/version_10x/teamviewer_i386.deb
Just install this version
http://download.teamviewer.com/download/version_10x/teamviewer_i386.deb
2017年9月23日 星期六
Synology surveillance + Android IP cam
群暉 Nas 有一項特別功能
能夠拿來監控網路攝影機(IP cam)
但我又不想花錢買貴鬆鬆的網路攝影機
所以拿舊的Android手機來使用
準備:
1. 群暉NAS的 Surveillance app
2. android手機的 ip cam app
3. 網路設定
步驟:
1. 設定網路
ps.圖
在以前設定中,我把中華電信數據機和AP小烏龜網路設定成不同網段,也就是兩個都用PPPoE自己撥接上網。而NAS接在數據機上,這樣會導致NAS跟android 手機拿到不同網段的IP ( 192.168.10.XXX 跟 192.168.5.XXX )。
ps.圖
現在必須要把要他們設定成同一個網段,才能確保adroid手機連線AP後拿到同網段的IP (都是192.168.10.XXX)。方法就是要把AP網路模式設定成 bridge 模式。只要是連接上AP的裝置,都會直接從數據機拿到 DHCP 分配的 IP 。
2. 安裝手機 ip cam
DroidCam Wireless Webcam
3. 安裝 Surveillance app
雖然這個軟體可以自己辨識一般 ip cam 的類型,但我使用的手機app只能提供一般的影像串流來源
2017年8月6日 星期日
QIYI adds-on, super repository
These are the adds-on I recently use for kodi.
Just come here to puts on record.
愛奇藝 plug-in
http://kodi-addons.club/addon/plugin.video.qiyi/2.2.7
Super repository
It includes many different adds-on in it
But I just try a little bit, not really deep looking.
https://superrepo.org/get-started/
Just come here to puts on record.
愛奇藝 plug-in
http://kodi-addons.club/addon/plugin.video.qiyi/2.2.7
Super repository
It includes many different adds-on in it
But I just try a little bit, not really deep looking.
https://superrepo.org/get-started/
2017年6月17日 星期六
Merge branch to master
If there 3 branch named "master" & "fixedBranch"
What you want to do: Merge "fixedBranch" to "master"
1. Under branch master
$ git checkout master
2. Merger
$ git merge fixedBranch
3. Remove branch
$ git branch -d fixedBranch
2017年6月16日 星期五
2017年6月11日 星期日
Deal with time
1. 目前系統時間(time stamp), 這會根據目前JVM的timeZone有所改
System.currentTimeMillis();
or
new Date().getTime();
2. 相對UTC 時區的offset (輸入的時間是為了要判斷是否為“日光節約”)TimeZone tz = TimeZone.getDefault();long offset = tz.getOffset(new Date().getTime());
REF
3. 根據給予的格式和時區,輸出相對的時間
DateFormat formatter = new SimpleDateFormatter("dd mm yyyy HH:mm:ss");
formatter.setTimeZone(TimeZone.getTimeZone("Europe/Stockholm"));
formatter.format(new Date().getTime());
REF
REF
4. Epoch to time
https://www.epochconverter.com/
訂閱:
文章 (Atom)