2018年05月07日
Unexpected crash! Please log a bug with the commandline you specified.
/opt/local/lib/node_modules/dts-gen-v2/bin/lib/run.js:130
throw e;
2018年04月14日
从图形来说射线和圆相交, origin是射线起点, dir是射线的方向向量。p0,p1是两个交点,center为圆心,半径为R,d为圆心到射线的距离。我们先以2D切面图来说明,当射线和圆相交的时候,可以看到,球心 center 到射线 ray 的距离 d <= R,这个即为相交的条件。那么射线与球相切就转化为了球心到射线的距离d的判断。先求出d:设圆心在射线上的投影为c',则 origin,center, c' 形成了一个直角三角形。获得射线起点到圆心的向量 Vo
2018年02月06日
#!/bin/bash# Grabs the expired certificate hashesexpired=$(security find-identity | grep EXPIRED | awk '{print $2}')# Check for certsif [ -z "
2018年02月02日
sips -g all 源文件路径有文件满足下面的条件 pixelWidth: 1024 pixelHeight: 1024 typeIdentifier: public.png format: png formatOptions: default dpiWidth: 72.000 dpiHeight: 72.000 samplesPer
2018年01月26日
在Objective-C中,我们经常使用预处理指令来帮助我们根据不同的平台执行不同的代码,以让我们的代码支持不同的平台,如:12345#if TARGET_OS_IPHONE #define MAS_VIEW UIView #elif TARGET_OS_MA
2018年01月22日
打开 Alfred Preferences -> Features -> Contacts,取消勾选 Open Contacts in Alfred。 或者系统偏好设置 -> 安全性与隐私 -> 隐私 -> 通讯录,勾上 Alfred.app,允许 Alfred 访问通讯录在使用破解版的时候,每次开机都要提示这个信息,实在是很烦.最终找到解决办法:在终端输入如下命令,完美解决^_^!sudo codesign -f -d -s - /Application
2017年12月14日
本文讲的是把git在最新2.9.2,合并pull两个不同的项目,出现的问题如何去解决fatal: refusing to merge unrelated histories我在Github新建一个仓库,写了License,然后把本地一个写了很久仓库上传。先pull,因为两个仓库不同,发现refusing to merge unrelated histories,无法pull因为他们是两个不同的项目,要把两个不同的项目合并,git需要添加一句代码,在git pull,这句代码是在git 2.9.2
2017年11月07日
1、打开终端2、输入DevToolsSecurity --status 查看状态,如果是Developer mode is currently disabled.那就对了3、输入DevToolsSecurity --enable此时会弹出密码输入框,输入密码后终端信息:Developer mode is now enabled.bingo!搞定了。4、如果要恢复以前每次运行都要输密码(我想大部分人都不会去做吧)输入:DevToolsSecurity --disable然后提示框输入密码,状态修改
2017年10月19日
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58//extern "C"&n
2017年10月18日
JDK9上报错类似Exception in thread "main" java.lang.reflect.InaccessibleObjectException: Unable to make jdk.internal.loader.ClassLoaders$AppClassLoader(jdk.internal.loader.ClassLoaders$PlatformClassLoader,j