Monday, September 12, 2016

Tool: 关闭微信危险功能

打开微信,依次点击【我】—【设置】—【通用】—【功能】,选择【附近的人】,点击进去后点击关闭【清除我的位置信息】和【停用】。
点击【我】—【设置】—【隐私】,拉至页面最下方,找到【允许陌生人查看十张照片】功能,滑动关闭它。

References

Thursday, September 1, 2016

SmartPhone: 小米手机安全措施

Introduction

手机丢失或被盗之后,如何确定手机及其数据安全?
【前提】小米手机须在手机登录自己的账号且不退出,这种状态下才可以远程联系操作安全措施。
Fig. 1
1.网页登录“我的小米云”,从首页找到“查找设备”,进入之。
2.见Fig. 1下方,查找设备的主要功能:
定位:标定设备的具体位置,但只能显示大致范围,伴有数百米不等的可能区域;
发声:通过短信传递指令,手机发声,解除方法是解锁手机才能终止发声;
锁定:通过短信传递指令,手机收到指令后立即进入锁机状态,不能进行任何的操作!只能通过重启的办法再次进入手机!重启之后的手机有一个密码输入框,输入正确密码才能解除锁定。如Fig. 2,在网页配置锁机密码。
Fig. 2
擦除:通过短信(网络)传递指令,收到指令后,电话内的照片、联系人信息、短信、通信记录、便签,及WLAN设置、APP列表等设置信息就会被删除,不过基于小米云的设置,小米云端应该都有这些数据的备份。

Note

以上这些小米功能均以SIM卡为依托,若手机不能接受网络和短信或SIM卡被拔出,这些功能就都是无效的,所以,当手机出现状况时,为防止人为的恶意,与时间赛跑或许是减少损失的最优方案。

参考文献

Sunday, August 28, 2016

MIUI:Call Records

配置通话录音

参考经验“小米通话自动录音设置”,但我的电话与经验所列步骤略有不同,这里简单记录。 我的电话配置路线,首先是首页Settings,再转至Call settings,后面的手动配置与经验相同。
Fig. 1

通话录音提取

我这里设置记录所有通话过程,任意一段通话结束后都有录音结束的提醒。提取一段录音的过程:找到Tools下的Recorder,依次按照Fig. 2从左至右顺序找到这段通话录音。
Fig. 2
Fig. 2最右图,按住这一段录音,大约2秒,直至出现Fig. 3最左侧图形,依照Fig. 3从左至右顺序以邮件附件形式将该段录音转发至各地。
Fig. 3
或使用小米云下载录音,见Fig. 4。
Fig. 4

Tuesday, August 23, 2016

Matlab: Gravity Model for Some Value

Gravity Center

某指数的空间重心可以由以下公式直接算出:
\[X = \frac{{\sum\limits_{i = 1}^n {{W_i}{X_i}} }}{{\sum\limits_{i = 1}^n {{W_i}} }}\] \[Y = \frac{{\sum\limits_{i = 1}^n {{W_i}{Y_i}} }}{{\sum\limits_{i = 1}^n {{W_i}} }}\]
式中:X、Y为重心的经度(横坐标)、纬度(纵坐标);W为某指数;n为参与计算的指数数量。

Movement Distance

重心转移距离可以由以下公式直接算出:
\[D = \sqrt {{{\left( {{X_{t1}} - {X_{t2}}} \right)}^2} + {{\left( {{Y_{t1}} - {Y_{t2}}} \right)}^2}} \]
式中:D为重心转移距离;t1、t2为前后两个时间。

References

[1] Yingbin He, Youqi Chen, Huajun Tang, et al.. Exploring spatial change and gravity center movement for ecosystem services value using a spatially explicit ecosystem services value index and gravity model[J]. Environmental Monitoring and Assessment, 2011, 175:563–571.
[2] Caiyao Xu, Lijie Pu, Ming Zhu, et all.. Ecological Security and Ecosystem Services in Response to Land Use Change in the Coastal Area of Jiangsu, China[J]. Sustainability, 2016, 8(8): 1~24.
[3] 孙东琪, 张京祥, 朱传耿等. 中国生态环境质量变化态势及其空间分异分析[J]. 地理学报, 2012, 67(12): 1599~1610.

Tuesday, August 16, 2016

Matlab: Nested Functions

What Are Nested Functions?

A nested function is a function that is completely contained within a parent function. Any function in a program file can include a nested function.
For example, this function named parent contains a nested function named nestedfx:
1
2
3
4
5
6
7
8
9
function parent
disp('This is the parent function')
nestedfx

   function nestedfx
      disp('This is the nested function')
   end

end
The primary difference between nested functions and other types of functions is that they can access and modify variables that are defined in their parent functions. As a result:
  1. Nested functions can use variables that are not explicitly passed as input arguments.
  2. In a parent function, you can create a handle to a nested function that contains the data necessary to run the nested function.

References