When you know that a certain condition will not change throughout the life of the program, it makes sense to test the condition only once. Browser sni...
分类:
编程语言 时间:
2014-06-18 22:35:12
阅读次数:
341
晚上review了下grunt-inline的issues,看到有个兄弟pull request,修正了0.3.0版本的一个bug。于是就merge了下,然后发布了0.3.1版本(这里)。npm publish后,突然想到一个问题,发布了这么多个版本了,但好像都没有打过tag,这个不利于版本回溯以及...
分类:
其他好文 时间:
2014-06-18 21:33:43
阅读次数:
252
在环境变量里添加Home=%USERPROFILE%在运行中打开%Home%在打开目录中新建文件_netrc,并保存以下内容machine git.oschina.netlogin usernamepassword password
分类:
其他好文 时间:
2014-06-18 21:14:56
阅读次数:
207
#include float fEarth = 2.0f; //地球绕太阳的旋转角度 float fMoon = 24.0f; //月球绕地球的旋转角度 void Init() { glEnable(GL_DEPTH_TEST); //启用深度测试 glClearColor(0.0f, 0.0f, ...
分类:
其他好文 时间:
2014-06-18 20:41:38
阅读次数:
257
[root@bgw-t ~]# vi /etc/init/control-alt-delete.conf#exec /sbin/shutdown -r now "Control-Alt-Delete pressed"注释掉原有的然后用 init q 命令使刚才的修改立即生效.init Q或init ...
分类:
其他好文 时间:
2014-06-18 19:57:48
阅读次数:
229
#include#include#includeint k,h[110],mark;struct M{ int data; struct M *next;}*head[110];void init(){ int i; for(i = 0; i next = NULL; ...
分类:
其他好文 时间:
2014-06-17 00:58:16
阅读次数:
315
正确的程序如下所示:
#! /usr/bin/env python
# -*- coding: utf-8 -*-
from VideoCapture import Device
import time
import sys,pygame
pygame.init()
size = width,height = 620,485
speed = [2,2]
blac...
分类:
编程语言 时间:
2014-06-16 23:10:24
阅读次数:
568
1.准备工作
想弄懂可循环的CCscrollView,首先请阅读cocos2d-x本身的CCscrollView源码http://blog.csdn.net/u011225840/article/details/30033501(我已经添加注释,方便阅读)。
2.源码展示
因为源码我想放到git上,所以注释都是用的英文,如果这部分源码有人有问题,请在评论区留言,我会逐一回答。
总体说下...
分类:
其他好文 时间:
2014-06-16 21:20:37
阅读次数:
279
nfs共享portmap要求1.将/root共享给192.168.10.20,可写、同步,允许客户机以root权限访问2.将/usr/src共享给192.168.10.0/24网段,可写、异步,所有用户身份都映射成nfsnobody3.访问测试,并自动挂载实现步骤:安装需要的软件包Yum–yinstallnfs-utilsprotmap二、/etc/init.d/..
分类:
其他好文 时间:
2014-06-16 17:28:31
阅读次数:
306
6)、启动相关服务[root@centreon~]#/etc/init.d/httpdstart
[root@centreon~]#/etc/init.d/mysqldstart
[root@centreon~]#mysqladmin-urootpassword‘111111‘
[root@centreon~]#/etc/init.d/ndo2dbstart7)、WEB界面安装http://192.168.100.187/centreon发现提示php-posix模块没..
分类:
移动开发 时间:
2014-06-16 15:11:56
阅读次数:
288