首先导入mybatis-3.1.1.jar包以及Mysql-connector-java-5.1.6-bin.jar包新建一个数据库create database mybatis;use mybatis;CREATE TABLE users(id INT PRIMARY KEY AUTO_INCRE...
分类:
其他好文 时间:
2015-03-16 22:48:38
阅读次数:
231
/* * The GUI update goals of this application are as follows: * * 1. We would like most, if not all, GUI updates to occur in the contex...
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:
其他好文 时间:
2015-03-16 22:49:35
阅读次数:
133
导入datetime模块后用dir(datetime)命令查看在datetime模块下有几个小模块,或叫类(一)date小模块。处理年月日也是先用dir(datetime.date)查看一下其中有那么几个方法1:today()显示今天的日期 如果嫌这样太麻烦,可以单独导入date这个小模块 2:d....
分类:
编程语言 时间:
2015-03-16 22:47:24
阅读次数:
158
哈哈哈哈哈哈哈哈哈,省赛,一等奖,一定的一定的一定的一定的。。。#include #include #include #include using namespace std;const int N=110;bool flag[N];int main(){ int T,n,cnt,maxh,t...
分类:
其他好文 时间:
2015-03-16 22:49:24
阅读次数:
167
Kafka中Replicas复制备份机制 kafka将每个partition数据复制到多个server上,任何一个partition有一个leader和多个follower(可以没有),备份的个数可以通过broker配置文件来设定(replication-factor的参数配置指定).leader处...
分类:
其他好文 时间:
2015-03-16 22:45:56
阅读次数:
302
/*题意:删掉A数组中与elem相同的元素,并返回新数组的长度*/class Solution {public: int removeElement(int A[], int n, int elem) { int j = 0; for(int i = 0 ; i <...
分类:
其他好文 时间:
2015-03-16 22:46:24
阅读次数:
122
0.准备步骤(没有连接网络的 linux):挂载光盘、让网络 yum 源失效、修改光盘 yum 文件、安装 c 语言编译器 gcc。1.MySQL(5.5.20)下载 mysql 5.5.20 源码包(由于mysql 官网使用 google cdn 的 jquery 来切换mysql 版本下载的下拉...
分类:
数据库 时间:
2015-03-16 22:46:52
阅读次数:
355
UserModule类:using System;using System.Collections.Generic;using System.Linq;using System.Text;using Autofac;using You.Niao.User.IDAL;namespace You.Nia...
分类:
其他好文 时间:
2015-03-16 22:46:59
阅读次数:
137
Ant调试MicrosoftInternetExplorer402DocumentNotSpecified7.8Web0Ant调试ant是一种非常方便的打包,部署的工具,通过ant,可以一键构建整个项目,虽然MVN也支持这种功能,但是MVN混杂了package管理的功能,并且不是很自由,学习成本比较...
分类:
其他好文 时间:
2015-03-16 22:46:20
阅读次数:
182
今天发现这样一个问题
#include using namespace std;
int main()
{ char ch1[10]; strcpy_s(ch1,"123456");//编译通过 char* p = new char[10]; strcpy_s(p,"123456");//报错:不接...
分类:
编程语言 时间:
2015-03-16 22:47:45
阅读次数:
164
EclipseSave保存js文件的时候验证JS的时间很长( 使用extjs).Eclipse– Validation – JavaScript Validator 的 Manual和Build都没用最后找到在项目路径下面的.project文件中配置了一些验证信息.org.eclipse.wst.j...
分类:
Web程序 时间:
2015-03-16 22:44:20
阅读次数:
164
转载http://blog.csdn.net/kakashi8841/article/details/17558059开始Uni2D增加了一些新的便利的特性给Unity,它们用于推动你2D工作流程和生产力。最有用的一个特性是sprite的创建:使用Uni2D,你能通过从项目窗口拖动texture来闪...
分类:
其他好文 时间:
2015-03-16 22:44:44
阅读次数:
182
转载自:http://my.oschina.net/liujinofhome/blog/36287以及http://blog.sina.com.cn/s/blog_562f523f0100rezj.html二、编译警告:warning C4996 与 Security Enhancements in...
分类:
其他好文 时间:
2015-03-16 22:47:02
阅读次数:
294
看不起我?哼,迟早让你后悔,让你妒忌。操操操操。。。。。T_T#include #include #include #include #include #define LL __int64using namespace std;const int N=25;struct Judger{ dou...
分类:
其他好文 时间:
2015-03-16 22:45:23
阅读次数:
120