Usually, we have our own vim configuration in the file ~/.vimrc
What if we want one for our project?
For example, we are working on certain project which needs to read in a tags file.
Well, here is a possible solution. ...
tail -n
Quite useful trick, when you want to get rid of the first certain lines of the output/file. ...
一个初始化结构体的用法
近来敲代码的时候,由于技术含量不高,所以就格外注重“代码好不好看”这个问题。
在无聊的Coding中看到一个没有用过的语法还是小有惊喜的。
记在这里: ...
[Tip]iOS上的OpenGLES无显示问题
最近的项目用到了OpenGLES。
两个很容易出问题的地方,容易造成很难找到的Bug。 ...
PlistBuddy
[技巧]从地址得到symbol
做iOS开发的时候,常常会遇到crash,需要分析call stack的时候。
有时候App在别人的设备崩溃,把crash report在自己的机器上打开,Xcode没有自动的进行符号化。
这时候就需要自己去把地址解析成符号。
大前提是,必须有相同版本App对应的.dSYM文件。
这时候打开Terminal,进入到build/Debug-iphoneos
使用命令:
$atos -arch armv7 -o XXX.app/XXX 0xabcdef
XXX是你的App名字,用需要解析的地址替换上面的0xabcdef
armv7是编译App时所用的Architecture,也可能是armv6,如果在simulator上的App,这个位置应该用i386 ...