1.建立Users和UserInfos两个实体类 对应的是数据库中的表 public class User { //类名+Id(User+Id)组成的字符串在数据库表中会设置该字段是主键且是按1的增量增长 public int UserId { get; set; ...
分类:
数据库 时间:
2014-10-21 15:06:16
阅读次数:
216
前言:从mysql 5.5版本开始,mysql源码安装开始使用cmake了,编译安装跟以前的版本有点不一样了。一,安装步骤: 1.安装前准备工作 a.下载mysql源代码包,到mysql下载页面选择MYSQL Community Serve Source Code 版本 注意:不要选择Linux-G...
分类:
数据库 时间:
2014-10-21 13:45:00
阅读次数:
378
题目大意:一个楼有很多层,每一层是一个多多边形,问每一层是否有点能够看到这一层的全貌。
思路:半平面交解多边形内核存在性,裸题。题中怎么没写数据范围?。。让我还re几次。。
CODE:
#include
#include
#include
#include
#include
#define MAX 3010
#define EPS 1e-8
#define DCMP...
分类:
其他好文 时间:
2014-10-21 12:25:52
阅读次数:
158
# A comment, this is so you can read your program later.# Anything after the # is ignored by python.print "I could have code like this." # and the com...
分类:
其他好文 时间:
2014-10-21 10:14:12
阅读次数:
137
class MysqlTest #Code here require "mysql" def testMysql dbc=Mysql.real_connect('localhost','root','123','Ivic_Portal') res=dbc.query('select...
分类:
数据库 时间:
2014-10-21 00:44:22
阅读次数:
291
转自http://www.oschina.net/code/snippet_1448389_33526原来是有的时候网站将网页用gzip压缩了 1 """ 2 迪艾姆公司python远程培训班 黄哥所写 3 python远程视频培训班 周末班 4 迪艾姆python培训周末班北京3月8、上海3月9....
分类:
编程语言 时间:
2014-10-21 00:40:00
阅读次数:
730
题意 求n=0~9时的sigma(1/n!)分析 因为刚学c++ 所以对浮点操作还是很不熟练,正好来了这么一道题Accepted Code 1 /* 2 PROBLEM:hdu 1012 3 AUTHER:Nicole Lam 4 MEMO:水题 5 */ 6 #incl...
分类:
其他好文 时间:
2014-10-20 23:11:29
阅读次数:
218
翻开 《Code quality》 第四章 Time Performance , 看到的第一句话是: Time is nature's way to keep everything from happing all at once. --- John Archibald Wheeler...
分类:
其他好文 时间:
2014-10-20 21:19:17
阅读次数:
207
git pull 的时候 出现的这个错误,一开始按照网上的解决方法 git config http.postBuffer 524288000 修改传输字节限制, 还是会报错。 后来把配置文件里面的 [Http]代理注释掉, 就OK了。 (不懂这个错误是为什么, 远程的文件确实是挺大的, 但是修改传....
分类:
Web程序 时间:
2014-10-20 19:21:29
阅读次数:
2302