#!/bin/bashPATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/binexport
PATH# Check if user is rootif [ $(id -u) != "0" ]; then pr...
分类:
其他好文 时间:
2014-05-16 07:15:11
阅读次数:
310
艾玛好歹也是云存储巨头, 好歹对数据读写要抱有起码的敬畏吧? 你错几个字节让用户情何以堪?
Check CRC你总该知道吧? MD5 or SHA1你也都知道吧? 文件传输完check一下不行么?
分类:
其他好文 时间:
2014-05-15 16:37:57
阅读次数:
321
绘制图形如下:
程序代码:
需要重新定义父类虚函数draw()
1、在HelloWorldScene.h头文件加入:
virtual void draw();
2、定义实现:
void HelloWorld::draw()
{
//add your code....
CHECK_GL_ERROR_DEBUG();
CCSize size = CC...
分类:
其他好文 时间:
2014-05-15 09:10:32
阅读次数:
285
cocos2d-x 3.0 引用第三方库 及编译成apk时android mk文件写法...
分类:
移动开发 时间:
2014-05-15 05:58:53
阅读次数:
398
configure: error: mysql configure failed. Please check config.log for more information....
分类:
数据库 时间:
2014-05-15 05:15:02
阅读次数:
318
Same Tree
Total Accepted: 16072 Total
Submissions: 38790My Submissions
Given two binary trees, write a function to check if they are equal or not.
Two binary trees are considered equal i...
分类:
其他好文 时间:
2014-05-15 04:00:39
阅读次数:
319
1. Check the /boot partition size to decide if need clean up
$ df
2. Check the current used Linux kernel
$ uname -r
3. Check all Linux kernel to decide which ones to be removed
$ ls /boot...
分类:
其他好文 时间:
2014-05-15 03:24:16
阅读次数:
235
cocos2d-x 3.0 android mk文件 之 自动遍历*.cpp文件...
分类:
移动开发 时间:
2014-05-14 14:43:21
阅读次数:
425
If you runfsck, the filesystem check and repair
command, it might find data fragments that are not referenced anywhere in the
filesystem. In particula...
分类:
其他好文 时间:
2014-05-13 16:59:54
阅读次数:
276
#!/bin/bash
#checkmysqlslavestatus
USER="check"
PSW="***"
RUNTIME=3600
ADDR="192.168.*.*"
declare-aslave_is
forIPin$ADDR
do
slave_is=($(/usr/local/mysql/bin/mysql-h$IP-u${USER}-p${PSW}-e"showslavestatus\G"|grepRunning|awk‘{print$2}‘))
if["${slave_is[0]}"="Y..
分类:
数据库 时间:
2014-05-13 04:33:44
阅读次数:
374