在编辑PHP5.6.1时出现了这个错误:
Don't know how to define struct flock on this system, set --enable-opcache=no
解决方法是:
sudo ln -s /usr/local/mysql/lib/libmysqlclient.so /usr/lib/
sudo ln -s /usr/local/mys...
分类:
Web程序 时间:
2014-10-10 15:00:44
阅读次数:
206
背景知识:当Android启动时,会发出一个系统广播,内容为ACTION_BOOT_COMPLETED,它的字符串常量表示为android.intent.action.BOOT_COMPLETED。只要在程序中“捕捉”到这个消息,再启动之即可。记住,Android框架说:Don't call me,...
分类:
移动开发 时间:
2014-10-09 18:09:57
阅读次数:
237
gcc简介1、 gcc是GNU Compiler Collection的缩写。最初是作为C语言的编译器(GNU C Compiler),现在已经支持多种语言了,如C、C++、Java、Pascal、Ada、COBOL语言等。[gcc编译器的作者是Richard Stallman,是GNU项目的奠基者] 2、主要特征: gcc是一个可移植的编译器,支持多种硬件平台,甚至对Don Knuth 设计的...
分类:
其他好文 时间:
2014-10-09 01:45:37
阅读次数:
160
我在 VS 14 CTP 中新建了一个空的 app store 项目名叫 PlayWithXaml ,项目的 MainPage.xaml 文件改为了以下内容: I don't feel good 现在...
分类:
移动开发 时间:
2014-10-06 16:59:00
阅读次数:
283
Thread相关内容1.http://stackoverflow.com/questions/1091135/whats-the-purpose-of-thread-spinwait-method(Jon Skeet说的那句话 "if you need to ask, you don't need ...
分类:
Web程序 时间:
2014-10-03 23:19:05
阅读次数:
220
1. 表示不连接,即板子上不焊接该器件DNI = don't need install或NC或NM或DNP
分类:
其他好文 时间:
2014-10-03 21:03:55
阅读次数:
197
在看APUE习题10.5的时候提示了这篇文章,讲的很清晰,设计也很巧妙,所以把原文放在这里,值得自己去实现。
Title: Implementing Software Timers
By: Don Libes
Originally appeared in the Nov. 1990 "C User's Journal" and is also reprinted as C...
分类:
其他好文 时间:
2014-10-02 10:21:22
阅读次数:
169
说说:
这道题目类似于八皇后问题。有n*n的正方形棋盘,且n
分析:
在八皇后问题中,我们对整个棋盘分成八行考虑的,每行插入一个棋子。所以对于这道题目解决方案也类似,同样是一行一行插入。但是与八皇后问题不同的是,本题中棋盘一行可能插入多个棋子,也可能没有棋子。所以在递归函数中,不仅要给出所要处理的行的信息,也要给出所要处理的列的信息,其实就是个准确的坐标。然后在本行中找第一个可能插入...
分类:
其他好文 时间:
2014-10-01 23:13:32
阅读次数:
283
驱动中pr_debug定义在kernel/include/linux/printk.h
/* If you are writing a driver, please usedev_dbg instead */
#if defined(CONFIG_DYNAMIC_DEBUG)
/* dynamic_pr_debug() uses pr_fmt()internally so we don...
分类:
其他好文 时间:
2014-09-30 18:23:44
阅读次数:
338
iOS8中的定位服务My app that worked fine in iOS 7 doesn't work with the iOS 8 SDK.CLLocationManagerdoesn't return a location, and I don't see my app underSet...
分类:
移动开发 时间:
2014-09-29 23:52:21
阅读次数:
237