最近新學到方法
以後看電影有快速中文字幕瞜!!!
網址:http://fusion.tvaddons.ag/
參考:http://ppkkkp.blogspot.tw/2016/11/kodi-subtitle-addon.html
另外有一個外掛可以直接串流網路上的電影
網址:http://silenthunter.000webhostapp.com/zip
參考:http://ppkkkp.blogspot.tw/2017/01/silent-hunter-kodi.html
這好像是Kodi的其他系列
https://www.mobile01.com/topicdetail.php?f=347&t=5046928
改天再來看看
2017年1月27日 星期五
2017年1月22日 星期日
Java class instance object relations
自己翻譯成好懂的說法
Class
直譯:類別
翻譯:範本,模型,藍圖
Instance
直譯:實例
翻譯:實體物品(非藍圖)
Object
直譯:物件
翻譯:東西
======
關係說明
Class <---> Instance
範本與非範本(實體化)的關係, 純粹用來表示範本與實體的概念
Object
好比現實世界中真實可以拿來使用的物品
Ex.
String s1 = new String
String s2 = new String
s1和 s2 這兩個object 是 class String 兩個各別的 Instance
Class
直譯:類別
翻譯:範本,模型,藍圖
Instance
直譯:實例
翻譯:實體物品(非藍圖)
Object
直譯:物件
翻譯:東西
======
關係說明
Class <---> Instance
範本與非範本(實體化)的關係, 純粹用來表示範本與實體的概念
Object
好比現實世界中真實可以拿來使用的物品
Ex.
String s1 = new String
String s2 = new String
s1和 s2 這兩個object 是 class String 兩個各別的 Instance
2017年1月14日 星期六
Install cheninese type keyboard
gcin !!!!!!!
1. $sudo apt-get install gcin
2. change keyboard input to "gcin"
2. log out and log in back to desktop
3. use the new keyboard type !
2016年12月18日 星期日
2016年12月15日 星期四
Mockito test framwork
1. tutorial
http://www.vogella.com/tutorials/Mockito/article.html
2. how to verify
http://www.baeldung.com/mockito-verify
3. how to spy
http://www.baeldung.com/mockito-spy
REFER
http://site.mockito.org/
http://www.vogella.com/tutorials/Mockito/article.html
2. how to verify
http://www.baeldung.com/mockito-verify
3. how to spy
http://www.baeldung.com/mockito-spy
REFER
http://site.mockito.org/
2016年12月4日 星期日
How to add certificate for SSL
I just joined a Hackthon recently, here is the node how I solve some problems.
1. check the certificate from a Web
$keytool -printcert -sslserver 10.2.5.2
2. get the certificate chain
$keytool -printcert -sslserver 10.2.5.2 -rfc
3. copy the message between header and footer in .crt file (ex. vm1.crt)
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-------
4. add the certificate in client's truststore
$keytool -import -file vm1.crt -alias vm1 -keystore xxx.truststore
($ input the password of keystore)
5. check the list of certificate you just added into truststore
$keytool -list -v -keystore xxx.truststore
REFER
http://doc.akka.io/docs/akka/2.4.4/scala/http/client-side/https-support.html
http://typesafehub.github.io/ssl-config/WSQuickStart.html#connecting-to-a-remote-server-over-https
https://docs.oracle.com/cd/E19509-01/820-3503/6nf1il6er/index.html
http://www.ibm.com/developerworks/library/j-customssl/sidebar.html
http://how2ssl.com/articles/working_with_pem_files/
http://stackoverflow.com/questions/8640340/how-do-i-get-into-a-non-password-protected-java-keystore-or-change-the-password
訂閱:
文章 (Atom)