原文:最简单删除SQL Server中所有数据的方法最简单删除SQL Server中所有数据的方法 编写人:CC阿爸 2014-3-14 其实删除数据库中数据的方法并不复杂,为什么我还要多此一举呢,一是我这里介绍的是删除数据库的所有数据,因为数据之间可能形成相互约束关系,删除操作可能陷入死循环,二是...
分类:
数据库 时间:
2014-06-18 18:32:17
阅读次数:
176
Python中使用MySQL的方法具体可见:http://www.w3cschool.cc/python/python-mysql.html需要注意的是编码问题:要在多个地方设置为UTF8,具体可见:http://drizzlewalk.blog.51cto.com/2203401/448874同时...
分类:
数据库 时间:
2014-06-18 15:02:28
阅读次数:
245
if object_id('tempdb..#tt')>0 drop table #tt--模拟数据create table #tt (cc datetime)insert into #tt values('2013-02-01')insert into #tt values('2013-05-16...
分类:
其他好文 时间:
2014-06-17 14:06:19
阅读次数:
194
1.碰撞检测回调方法编译出错;auto*listener=EventListenerPhysicsContact::create();listener->onContactBegin=CC_CALLBACK_1(HelloWorld::onContactBegin,this);在3.0rc版本中回调函数的参数变为一个,不能使用原来的两个参数;boolHelloWorld::onContactBegin(PhysicsContac..
分类:
其他好文 时间:
2014-06-16 17:03:46
阅读次数:
314
升级了mac操作系统,安装python的python-ldap,报错Modules/LDAPObject.c:18:10:fatalerror:‘sasl.h‘filenotfound#include<sasl.h>^1errorgenerated.error:command‘cc‘failedwithexitstatus1----------------------------------------Cleaningup...Command/usr/bin/python..
分类:
编程语言 时间:
2014-06-16 16:21:35
阅读次数:
758
.h#include "cocos2d.h"#include "cocos-ext.h"#include "ui/CocosGUI.h"#include "cocostudio/CocoStudio.h"USING_NS_CC;USING_NS_CC_EXT;using namespace ui; ...
分类:
其他好文 时间:
2014-06-15 11:16:25
阅读次数:
276
多数CC攻击在web服务器日志中都有相同攻击的特征,我们可以根据这些特征过滤出攻击的ip,利用iptables来阻止#!/bin/bash#by LinuxEye#BLOG: http://blog.linuxeye.comOLD_IFS=$IFSIFS=$'n'not_status=`iptabl...
分类:
系统相关 时间:
2014-06-15 00:54:09
阅读次数:
340
温馨提示:阅读本文的同学最好能了解makefile和python的编写规则。不懂的同学可以先保存在收藏夹,以便日后查看。
转载请以超链接标明:http://www.guimigame.com/thread-460-1-1.html
其实之前我一直很懒,我不想了解makefile规则,因为在linux下开发我一直使用Qt creator。(很多时候正是一些“懒人”的创造力,解放了我们的双手,显然...
分类:
编程语言 时间:
2014-06-14 09:28:32
阅读次数:
342
MainActivity如下:
package cc.testscroller2;
import android.os.Bundle;
import android.app.Activity;
/**
* Demo描述:
* 实现可以拉动后回弹的布局.
* 类似于下拉刷新的.
*
* 参考资料:
* 1 http://gundumw100.iteye.com/blog/188437...
分类:
移动开发 时间:
2014-06-13 20:49:15
阅读次数:
338
MainActivity如下:
package cc.testscroller1;
import android.app.Activity;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.os.Bundle;
import...
分类:
移动开发 时间:
2014-06-13 20:48:10
阅读次数:
326