CoreGraphics.h
一些常用旋转常量
#define M_E 2.71828182845904523536028747135266250 e
?#define M_LOG2E 1.44269504088896340735992468100189214 log 2e
?#define M_LOG10E 0.4342944819032518276511289189166050...
分类:
其他好文 时间:
2014-05-15 11:18:17
阅读次数:
2495
configure: error: mysql configure failed. Please check config.log for more information....
分类:
数据库 时间:
2014-05-15 05:15:02
阅读次数:
318
leetCode-002 Median of Two Sorted Arrays
【题目】
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).
【题意】
有两个有序的数组,找出这两数组整合后的中位数,要求时间复杂度O(nlogn)...
分类:
其他好文 时间:
2014-05-15 04:42:05
阅读次数:
274
1 mysq error日志报错如下:2014-05-12 11:29:54 22977 [ERROR] Slave SQL: The incident LOST_EVENTS occured on the master. Message: error writing to the binary log, Error_code: 15902014-05-12 11:29:54 22977 [ERR...
分类:
其他好文 时间:
2014-05-15 04:07:27
阅读次数:
318
(null): File is universal (3 slices) but does not contain a(n) armv7s slice: /Users/robin/Documents/Project/ZBarApp/ZBarApp/ZBarSDK/libzbar.a file '/Users/robin/Documents/Project/ZBarApp/ZBarApp/ZBarS...
分类:
其他好文 时间:
2014-05-15 03:13:59
阅读次数:
397
/proc/sys/net/ipv4/tcp_max_tw_buckets
默认的太小了net.ipv4.tcp_syncookies = 0这个参数是怎么得来的?其实是通过ab 简单的压力测试,/var/log/message
里面会有内核的报错信息。
分类:
其他好文 时间:
2014-05-14 22:56:49
阅读次数:
349
众所周知,在android系统上,有时候我们遇到so文件的crash只能打log,但是很多时候并不知道crash在什么地方,幸运的是crash后,一般可以产生一个.dmp文件。
我们可以根据这个文件来得到更为详细的statck trace。
主要用的就是google提供的一些方法,命令太复杂,很容易出错,所以我写了一个python脚本,简化步骤。
详情可以参考 https://code.go...
分类:
移动开发 时间:
2014-05-14 19:45:57
阅读次数:
454
2014-5-14:今天来公司突然发现mysql数据库不同步;方法一:slavestop;
setglobalsql_slave_skip_counter=1;
slavestart;
showslavestatus\G;跳过一个事件event方法二:1.查看从服务器的状态showslavestatus\G记录下maser_log_file和read_master_log_pos记录下这两个值Master_L..
分类:
其他好文 时间:
2014-05-14 17:51:08
阅读次数:
286
近期接手了一个PHP开发的项目,一直想搞个LVS管理的工具,却一直没动力去做,这次就当是学习和为了以后工作的方便吧。开发过程中遇到这么一个问题,情况如下:情况:在windows下写好的代码,上传在Linux服务器上测试不成功,页面无显示。解决办法:打开php的error_log,观察错..
分类:
Web程序 时间:
2014-05-14 17:19:17
阅读次数:
388
如果以后出现报警各网站无法ping通,或者服务器负载过高,可通过以下几条途径查找原因:1,查看访问日志,查看是否有访问异常,如有,过滤IP,进行IP封装cataccess.log|awk‘{print$1}’|sort|uniq–c|sort–n>/tmp/ip.txt
netstat-ntu|awk‘{print$5}‘|cut-d:-f1|sort|un..
分类:
Web程序 时间:
2014-05-14 16:32:07
阅读次数:
409