SSL Cert from letsencrypt.org

free ssl cert from https://letsencrypt.org/ script with it: new => https://acme.sh/ old => https://github.com/Neilpang/le

[SSL]证书提供商

免费 starssl wosign 收费 https://www.gogetssl.com/ https://cheapsslsecurity.com/ https://www.ssl2buy.com/ssl-discount-offers/ 更新: 現在 wosign 和 startssl 都不能推薦了。

[20150716][Android][4.2.2_r1]USB plugin type

AC/USB/Wireless charging type checker file: packages/apps/Settings/src/com/android/settings/Utils.java function: getBatteryStatus public static String getBatteryStatus(Resources res, Intent batteryChangedIntent) { final Intent intent = batteryChangedIntent; int plugType = intent.getIntExtra("plugged", 0); int status = intent.getIntExtra("status", BatteryManager.BATTERY_STATUS_UNKNOWN); String statusString; if (status == BatteryManager.BATTERY_STATUS_CHARGING) { statusString = res.getString(R.string.battery_info_status_charging); if (plugType > 0) { int resId; if (plugType == BatteryManager.BATTERY_PLUGGED_AC) { resId = R.string.battery_info_status_charging_ac; } else if (plugType == BatteryManager.BATTERY_PLUGGED_USB) { resId = R.string.battery_info_status_charging_usb; } else { resId = R.

[Android][4.2.2_r1][Phone]添加重启按钮

直接上链接:长按电源键,为Android手机添加自动重启ItemMTKAndroid4.2.2添加重启功能

[Android][4.2.2_r1][Phone]StatusBar custom config

file: /base/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.javafunction: addStatusBarWindow()use: hide status bar with height as 0 show status bar with height as getStatusBarHeight()fix black bar in top when hide statusbarxml: /base/core/res/res/values/dimens.xmlchange line status_bar_height 25dip => 0dip

Java Native Interface (JNI)

COPY FROM: https://www3.ntu.edu.sg/home/ehchua/programming/java/JavaNativeInterface.html#zz-2.2Java Programming TutorialJava Native Interface (JNI)1. IntroductionAt times, it is necessary to use native codes (C/C++) to overcome the memory management and performance constraints in Java. Java supports native codes via the Java Native Interface (JNI).JNI is difficult, as it involves two languages and runtimes.I shall assume that you are familiar with: Java. C/C++ and the GCC Compiler (Read "GCC and Make"). (For Windows) Gygwin or MinGW (Read "

MTK 相关部分FAQ收集

[FAQ09768][legacy wi-fi]蓝牙听歌,wifi 连接AP 时,声音有卡断 [DESCRIPTION] 蓝牙听歌,wifi 连接 AP 时,声音有卡断 [SOLUTION] 在原本的設計,在 WIFI 進行 DHCP 連接時,會有約 1.5 秒的時間會把天線切回 WIFI。 如果 WF 環境不好或是重傳次數太多,會導致這 1.5 秒都被 WIFI 拿來用,此時 BT 在聽音樂就會有斷音的現象。 目前的改動是當 BT OPP or A2DP 把 1.5 秒改成 70ms,減少搶占 BT 天線的時間。 6582 patch:ALPS01065806 === [FAQ12796]KK 版本收到短信后,点亮屏的操作 [DESCRIPTION] 目前收到短彩信之后,是不会点亮屏幕的,如果要实现这个需求,在 JB5 之前的版本,请参考 FAQ02971 收到新短信时,点亮屏幕,如果是 KK 版本,请按照此方法修改 [SOLUTION] alps/packages/apps/mms/src/comandroid\mms\transation\MessagingNotification.java private static void updateNotification()方法中 if (isNew) { //MessageUtils.handleNewNotification(context, messageCount); /// M: add for OP09 @{ if (MmsConfig.

JS SHA1 文件 函数

需要的库CryptoJS/rollups/sha1.jsCryptoJS/components/lib-typedarrays-min.jshash: (fobj, callback_end, callback_progress)-> blob = new Blob() read = 0 unit = 1024 * 1024 sha1 = CryptoJS.algo.SHA1.create() reader = new FileReader() reader.onload = (e)-> bytes = CryptoJS.lib.WordArray.create(new Uint8Array(e.target.result)) sha1.update bytes read += unit if read < fobj.size callback_progress read / fobj.size blob = fobj.slice read, read + unit reader.readAsArrayBuffer blob else hash = sha1.finalize() callback_progress 1 callback_end hash.toString(CryptoJS.enc.Hex) @processing = false reader.readAsArrayBuffer fobj.slice(read, read + unit)

近来保存起来的网址

财经:http://live.wallstreetcn.com/见闻:https://www.v2ex.com/t/154728#reply4教程:https://gist.github.com/scien/8501640文档:http://wenku.baidu.com/view/09c157e8551810a6f52486d4.html文档:http://wenku.baidu.com/view/ebe8bf50f01dc281e53af036

IM Software/Framework/SDK

Toxhomepage: https://tox.imfeatures: message, video, call, file send/recvAnyChat: only sdkhomepage: http://www.anychat.cnfeatures: P2P技术、文字聊天、文件传输、数据通道、音视频录制Open Peer: only sdkhomepage: http://openpeer.org/features: video, message