MySQLDUMP使用mysqldump -h db1 -u user -P 3306
-ppassword --opt --default-character-set=utf8 --triggers --hex-blob db_name >
/tmp/db_name.sql
分类:
数据库 时间:
2014-05-26 06:50:13
阅读次数:
291
onFling will get executed when a user makes a
"fling" motion, and said motion has a velocity with it to determine the type of
fling it was. However,.....
分类:
移动开发 时间:
2014-05-26 06:23:31
阅读次数:
443
一,Linux篇
1,停掉mysql服务:service mysql stop;
2,修改my.cnf文件,可以通过find / -name my.cnf来找到文件,里面内容包含[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql即是我们要找的文件,在user-mysql下加入:skip-grant-...
分类:
数据库 时间:
2014-05-26 04:06:14
阅读次数:
346
Arrange the Schedule
Time Limit: 1 Second Memory Limit: 65536 KB
In Summer 2011, the ZJU-ICPC Team has a n-days training schedule. ZJU-ICPC Team has been divided into 4 Group: Akiba, BiliBi...
分类:
其他好文 时间:
2014-05-26 04:05:08
阅读次数:
335
manually set an authenticated user in Spring Security
在spring security手动 自定义 用户认证 SecurityContextHolder
//存放authentication到SecurityContextHolder
SecurityContextHolder.getContext().setAuthentication(authentication);
HttpSession session = request.getSession...
分类:
编程语言 时间:
2014-05-24 19:30:39
阅读次数:
4235
1.算法简介
协同过滤(collaborative filtering)的核心思想:利用其他用户的行为来预测当前用户。协同过滤算法是推荐系统中最基本的,同时在业界广为使用。根据使用的方法不同,可以分为基于用户(user-based)、基于物品(item-based)的最近邻推荐。
基于用户的最近邻推荐的主要思想:对于一个给定的评分集,找出与当前用户u口味相近的k个用户;然后,对...
分类:
其他好文 时间:
2014-05-24 17:59:03
阅读次数:
308
1.算法简介协同过滤(collaborative
filtering)的核心思想:利用其他用户的行为来预测当前用户。协同过滤算法是推荐系统中最基本的,同时在业界广为使用。根据使用的方法不同,可以分为基于用户(user-based)、基于物品(item-based)的最近邻推荐。基于用户的最近邻推荐的...
分类:
其他好文 时间:
2014-05-24 13:23:43
阅读次数:
392
Quick Referenceinsmodmodprobermmod User-space
utilities that load modules into the running kernels and remove them.#include
module_init(init_function)...
分类:
其他好文 时间:
2014-05-24 12:05:39
阅读次数:
286
在页游中,大部分的开发模式都是:客户端(as3)+ 服务端(java)+
数据库(mysql)。在这3个部分会有一个相同的部分就是数据结构。比如一个用户数据,在客户端使用类 UserVO(as3) 来表示,在服务端使用
UserVO(java)来表示,在数据库中数据表 t_user(mysql),这...
分类:
数据库 时间:
2014-05-24 11:34:54
阅读次数:
257
在Mongodb的查询中,有类似于SQL中group
by功能的group函数.两者的功能有些类似,但是区别也是比较明显的.对于SQL来说,group
by的作用就是安装依据列来将数据表中的记录分成一个个的组,而查询结果中,只能Select出来Group BY中含有的列,或者使用了聚合函数(sum,...
分类:
数据库 时间:
2014-05-24 09:20:01
阅读次数:
251