使用了Amazon AWS EC2免费云空间,数据库实例采用Amazon RDS。原来在Windows Server上有一个存在大量数据的MySQL数据库。现在需要在Amazon RDS上还原这个MySQL数据库,勾掉Views(因为它会要求SUPER权限,而Master User无此权限,毕竟是托...
分类:
数据库 时间:
2014-06-15 22:54:13
阅读次数:
483
环境:Java1.5.0.0.7;windows 7 64位系统。1、然后是:接着,应用,确定。2、双击文件:\jre\bin\javacpl.exe,会自动启动JAVA控制台,然后按照上面的第二步,使得在浏览器启动的Applet应用时自动启动Java控制台。3、手动启动:前提是系统任务栏里面有Ja...
分类:
编程语言 时间:
2014-06-15 22:48:56
阅读次数:
375
原题地址:https://oj.leetcode.com/problems/minimum-window-substring/题意:Given a string S and a string T, find the minimum window in S which will contain all...
分类:
编程语言 时间:
2014-06-15 22:10:42
阅读次数:
1109
排个序,求前k个元素和即可 int minimum(int K, vector danceCost) { sort(danceCost.begin(),danceCost.end()); return accumulate(danceCost.begin()...
分类:
其他好文 时间:
2014-06-15 21:53:14
阅读次数:
201
从大到小遍历一遍,每次取M个元素,然后求得最小的floor即可 int minimum(int M, vector heights) { sort(heights.begin(),heights.end()); int minFloor = 10000; ...
分类:
其他好文 时间:
2014-06-15 21:48:45
阅读次数:
229
客户端stub文件生成
1、脚本生成方式
去AXIS2的解压目录下bin(%AXIS2_HOME%\bin\)下执行下面语句
wsdl2java -uri http://localhost:8085/Axis2Service2/services/AxisService?wsdl
-p ws -s -o stub
-p参数指定了生成的Java类的包名
-o参数指定了生成的一系列文件保存的...
分类:
Web程序 时间:
2014-06-15 17:50:12
阅读次数:
277
Given a binary tree, find its maximum depth.
The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.
此题和求二叉树的最短路径几乎一模一样。
public int...
分类:
其他好文 时间:
2014-06-15 16:36:40
阅读次数:
209
虽然简单,但对于初学者还是有一定的帮助。
#define Bank0 INSCON &= 0xbf
#define Bank1 INSCON |= 0x40
Bank0;
//Bank0内操作
P0 =
Bin(10000100);
P0CR =
Bin(10000100);//0为输入 ,1为输出
P0PCR = Bin(01000000);//上拉
P0 =...
分类:
其他好文 时间:
2014-06-15 16:14:46
阅读次数:
569
Today we will learn how to get depth data from a kinect and what the format of the data is
kinect code
kinect Initialization
To get the depth data from the kinect, simply change the arg...
分类:
编程语言 时间:
2014-06-15 08:04:16
阅读次数:
640
Tomcat安装目录下bin目录有两个脚本分别用来启动和停止Tomcat,分别是startup.sh,shutdown.sh,可以用这两个脚本来手工启动和停止Tomcat服务。编辑/etc/rc.d/rc.local增加内容(假设JDK目录是/usr/jdk,Tomcat目录是/apache/tomcat)exportJDK_HOME=/usr/jdkexportJAVA_HOME=/usr..
分类:
其他好文 时间:
2014-06-13 21:03:06
阅读次数:
246