- 博客(18)
- 资源 (4)
- 收藏
- 关注
原创 Lua time [os.time()] [os.date()]
Lua 时区 [os.time()]核心方法os.time([table]): 按给定的参数(table格式)的内容返回一个时间值(数字)不传参的话返回当前时间转化成秒数的结果。(从格林尼治时间1970.01.01 00:00:00开始计时)> print(os.time())> 1561033140其中参数table中可以包含的字段有:year, month, day,...
2019-10-15 17:54:12
473
原创 error CS0117: 'UnityEditor.EditorUtility' does not contain a definition for 'GetAssetPreview'
Solution:replace: EditorUtility by AssetPreviewCause:Unity update issue.
2019-05-20 14:56:59
3444
原创 Unity memorandum 备忘录
Unity memorandum 备忘录Raycastpublic static bool Raycast(Vector3 origin, Vector3 direction, float maxDistance = Mathf.Infinity, int layerMask = DefaultRaycastLayers, QueryTriggerInteraction queryTrigge...
2018-12-27 14:12:14
245
原创 Lua memorandum 备忘录
Lua memorandumLua dot and colonThe colon is for implementing methods that pass self as the first parameter. So x:bar(3,4)should be the same as x.bar(x,3,4). (syntactic suger)Lua tablefor k,v in p...
2018-12-27 10:36:19
237
原创 Ubuntu su 认证失败/authentication failure
新版Ubuntu系统(11.04以后)默认不允许su到root。所以要先设置root的密码才能进行 su 操作user@user-ubuntu~$ sudo password[sudo] password for [user]Enter new UNIX password:Retype new UNIX password:password: password updated succe...
2018-11-04 17:42:30
227
原创 Android studion [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]
Error screen:It is because you are going to install app which has native library and it doesn;t have a native library for your CPU architecture (suppose you are using Android Emulator). (e.g. if you...
2018-11-02 22:05:13
1542
原创 Android restart app/重启该APP
Intent i = new Intent(context, YourActivity.class); i.setAction(Intent.ACTION_MAIN); i.addCategory(Intent.CATEGORY_LAUNCHER); startActivity(i); Intent i = new...
2018-10-31 22:46:48
3245
原创 Android bring task to front/切换回已经最小化的app
Intent i = new Intent(context, YourActivity.class); i.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT); startActivity(i); Intent i = new Intent(this, MainActivity.clas...
2018-10-31 22:38:15
1150
原创 Android Studio使用Ctrl+鼠标滚轮调整字体大小/use mouse middle key + Ctrl to change text size
(Windows)File -->Settings --> Editor --> General --> check Change font size(Zoom) with Ctrl+Mouse Wheel
2018-10-29 20:43:59
324
原创 Android Studio 改变字体大小/Change Text Size
Preferences --> Editor --> Fonts --> Size --> OK
2018-10-29 20:40:16
1675
原创 公钥密码学中的三大难解数学问题
现代公钥密码学基于的三大数学问题大整数因数分解问题给定两个大素数p,q,计算乘积p·q=n很容易;给定大整数n,求n的素因素p,q使得n=p·q非常困难.离散对数问题已知 a; * 计算 ga = h;得出h很简单已知 h; * 计算 ga = h;得出a非常困难椭圆曲线离散对数问题(转)已知有限域F_p上的椭圆曲线点群E(F_p)={(x,y)∈F_p×F_p∣y²=...
2018-10-25 10:22:27
5909
1
原创 Android Studio改变文件夹名字(包括公司域名)/ Android Studio change package name including company domain
手动创建想要移动到的文件夹名字点击想要移动的文件,比如MainActivity.java按F6找到想要移动到的路径,refactorBuild the directory at File ExplorerClick the file you want to move, e.g. MainActivity.javaClick F6Browse to the path you...
2018-09-30 21:33:51
3225
原创 Windows 10 安装 Linux 子系统
Windows 10 安装 Linux 子系统注:Windows10版本最低需要14316打开设置 -> 更新和安全 -> 对于开发 -> 打开开发者模式打开控制面板 -> 程序 -> 打开Windows功能打开或关闭打开控制面板 -> 程序 -> 打开Windows功能打开或关闭勾选上Windows子系统为Linux(测试版) -> ...
2018-09-28 22:44:58
172
原创 Windows 10英文系统解决中文乱码问题
Windows 10英文系统解决中文乱码问题打开control panel点击Clock and Region点击Change Location,并选择China点击Region,在弹出窗口选择Administrative,点击Change system locale选择Chinese(Simplified, China)重启计算机。...
2018-09-28 22:36:52
8268
原创 Android 自动播放音频 / Android auto play audio
Android 自动播放音频 / Android auto play audioPrepare: make a folder called raw.Right click res document -> new directory -> type res -> OKSimply drag audio files into this folder.Initial...
2018-09-23 15:12:53
3802
原创 Android 打开指定程序
Android Studio 解决不能找到R的方法Firstly, try to rebuild and resyc the gradle.If not works, it might because:Casue: May because the size of R is of out of the maximum size of each single file.Solution: ...
2018-09-20 21:53:20
478
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人