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

<span title='2016-02-25 09:53:00 +0000 UTC'>2016/02/25 Feb</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;11 words&nbsp;·&nbsp;map[name:SCys uri:]

[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....

<span title='2015-07-18 00:26:00 +0000 UTC'>2015/07/18 Jul</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;127 words&nbsp;·&nbsp;map[name:SCys uri:]

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

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

<span title='2015-07-15 02:36:00 +0000 UTC'>2015/07/15 Jul</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;word&nbsp;·&nbsp;map[name:SCys uri:]

[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

<span title='2015-07-07 23:47:00 +0000 UTC'>2015/07/07 Jul</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;30 words&nbsp;·&nbsp;map[name:SCys uri:]

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)

<span title='2015-05-24 18:45:00 +0000 UTC'>2015/05/24 May</span>&nbsp;·&nbsp;1 min&nbsp;·&nbsp;68 words&nbsp;·&nbsp;map[name:SCys uri:]