1. iOS Simulator Tips &
Trickshttp://code.tutsplus.com/tutorials/ios-simulator-tips-tricks--mobile-128442.http://stackoverflow.com/questions/18880893/...
分类:
移动开发 时间:
2014-06-11 11:43:08
阅读次数:
281
msdnIndicates whether a multithreaded module is
a DLL and specifies retail or debug versions of the run-time
library.Copy/MD[d]/MT[d]/LD[d]RemarksOpti...
分类:
其他好文 时间:
2014-06-10 15:12:38
阅读次数:
283
自定义TabBarController Push下一级Controller时 会报这样的错误:Unbalanced calls to begin/end appearance transitions for .
网上的一些回答,都说是动画引起的,解决方法就是,加一个BOOL型的变量,检查是否在做动画。但是,这并没有解决我的问题!
所以真正的答案是...
分类:
移动开发 时间:
2014-06-09 23:20:54
阅读次数:
343
第一章针对系统调用过多的优化我这次的优化针对syscall调用过多的问题,所以使用strace跟踪apache进行分析。1.apache2ctl -X
&使用-X(debug)参数启动httpd进程,这个时候只启动1个httpd进程2. ps -ef | grep
httpd找到需要strace的p...
分类:
Web程序 时间:
2014-06-09 19:59:24
阅读次数:
377
问题链接:http://acm.hdu.edu.cn/showproblem.php?pid=1495
题目大意:一个瓶子容积s,两个杯子容积分别n,m,并且都没有刻度(不能比对噢!)。相互倒水,求平分的他们的最少倒水次数。
思路:暴力搜索吧。并且求最少,(即最优解),随意上BFS;
思考:状态,转移过程,怎么剪纸。
惨痛的debug,我不解释了。...
分类:
其他好文 时间:
2014-06-08 15:48:26
阅读次数:
234
1.首先需要在linux系统tomcat/bin目录下配置catalina.sh这个文件中增加:
CATALINA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
参数说明:
-Xdebug : 启用调试模式
-X...
分类:
Web程序 时间:
2014-06-08 15:09:35
阅读次数:
290
一、
选择跟踪范围在想要根据的代码片段之间使用以下两句代码Debug.startMethodTracing("love_world_");Debug.stopMethodTracing();例如,onCreate与onStart方法之间方法跟踪publicclassMainActivityexten...
分类:
移动开发 时间:
2014-06-08 07:26:19
阅读次数:
360
开发环境 : win7 32bit ,VS2010,先看一段C代码:#include int
main(){ int x; //-858993460 printf("%d",x); //弹出Debug Error对话框 //x=func1();
getchar(); r...
分类:
其他好文 时间:
2014-06-08 06:26:59
阅读次数:
321
主配置文件(nginx.conf):usernginxnginx; #运行用户worker_processes8; #启动进程数,一般等于CPU的总核数或两倍,太多会占用CPU增高。error_log/tol/app/nginx/logs/nginx_error.logcrit; #定义错误日志文件及级别,有[debug|info|notice|warn|error|crit]pid/tol/app/nginx/lo..
分类:
其他好文 时间:
2014-06-08 02:31:34
阅读次数:
320
在MFC对话框程序中用boost::signals2时出现了问题,由于MFC为了方便调试,在debug下重新定义了new#ifdef_DEBUG#definenewDEBUG_NEW#endif因此与boost产生了冲突我的解决方法是把boost的头文件放在stdafx.h中其它MFC头文件的上面。
分类:
其他好文 时间:
2014-06-08 00:48:48
阅读次数:
290