1、hibernate.cfg.xml配置如下: (数据库连接配置)
com.mysql.jdbc.Driver
jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEnc...
分类:
系统相关 时间:
2014-05-10 08:13:33
阅读次数:
688
测试webservice的时候,如果出现这个错误:"The test form is only
available for requests from the local machine" 在web.config中加入以下配置,就可以解决问题。
也就是说,在默认情况下,...
分类:
Web程序 时间:
2014-05-10 02:24:13
阅读次数:
352
转载:http://blog.csdn.net/linquidx/article/details/5916701#t5写好程序,用gcc编译,带上-pg参数,然后运行以后分析gmon.out文件:命令exp:
gprof ./test-main ./gmon.out >1.log 在1.log中会生...
分类:
编程语言 时间:
2014-05-09 23:58:07
阅读次数:
1713
spark shuffle流程分析
回到ShuffleMapTask.runTask函数
现在回到ShuffleMapTask.runTask函数中:
overridedef runTask(context:TaskContext):
MapStatus = {
首先得到要reduce的task的个数。
valnumOutputSplits=
dep.partitioner.num...
分类:
其他好文 时间:
2014-05-09 22:58:33
阅读次数:
574
关于mysql备份还原命令操作,一切都在cmd中进行,不是进入mysql命令行**************************************************************备份命令:(命令不需要输入密码,输入密码会被认为是数据库的名字,密码等按回车会提示输入)mysqldump-hlocalhost-uroot-ptest>d:/test...
分类:
数据库 时间:
2014-05-09 21:38:00
阅读次数:
397
class Student { private string _name; public int
Age = 0; public static void Test() { Student stu = new ...
分类:
其他好文 时间:
2014-05-09 20:27:01
阅读次数:
305
一:mysql创建一个修改表字段的存储过程drop procedure if exists
pr_test;create procedure pr_test()begin declare var int; declare var1 int; set
var=416; set var1=420; wh...
分类:
数据库 时间:
2014-05-09 20:17:20
阅读次数:
460
/*验证邮箱格式*/ function checkEmail(strEmail){
if(!/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/ .test(strEmail)){ return
false; } else ...
分类:
Web程序 时间:
2014-05-09 20:02:19
阅读次数:
482
Linux环境下使用python调用C的printf例子:#!/usr/bin/env
python2.7#-*- coding:utf-8 -*-from ctypes import *def test(): #libc =
cdll.LoadLibrary("libc.so.6") ...
分类:
编程语言 时间:
2014-05-09 19:51:59
阅读次数:
469
using System;using System.IO;using
System.Security.Cryptography;using System.Text;namespace Test{ public class
MD5Code { /// /// ...
分类:
其他好文 时间:
2014-05-09 19:43:27
阅读次数:
277