1、 第一种,用?占位符,如://登录(用?占位符) public List LoginUser(UserPO up)throws Exception{ Session session = HibernateSessionFactory.getSession(); String hql = "...
分类:
Web程序 时间:
2014-10-14 18:24:59
阅读次数:
224
1.当用户触摸屏幕的时候,会产生许多手势,例如down,up,scroll,filing等等,我们知道View类有个View.OnTouchListener内部接口,通过重写他的onTouch(View v, MotionEvent event)方法,我们可以处理一些touch事件,但是这个方法太过...
分类:
移动开发 时间:
2014-10-14 13:57:18
阅读次数:
295
Set up a development environment in my iMac. So virtualbox become a stop which can't be avoided.
1. Install VirtualBox
2. Install Oracle Linux
3. Remove OpenJDK
4. Install Oracle JDK...
分类:
数据库 时间:
2014-10-14 02:51:57
阅读次数:
490
题目链接Dreamoon loves summing up something for no reason. One day he obtains two integersaandboccasionally. He wants to calculate the sum of allniceinteg...
分类:
其他好文 时间:
2014-10-13 23:10:27
阅读次数:
221
Problem Descriplation: 加载ed_device驱动后,ifconfig不显示ed0连接。但是ifconfig ed0会打印出数据。 ifconfig ed0 192.168.5.1时出现segmentation fault。 eth0: link up, 100Mbps, full-duplex, lpa 0x4DE1 ...
分类:
其他好文 时间:
2014-10-13 19:56:27
阅读次数:
336
accumulate?就是sum up a range of elements。呵呵。这个挺简单的。以下是这个算法的简单介绍:Syntax: #include //呵呵,使用这个算法这个头文件是必需要包含进来滴!TYPE accumulate( input_iterator start, input...
分类:
其他好文 时间:
2014-10-13 13:50:29
阅读次数:
171
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Fo...
分类:
编程语言 时间:
2014-10-13 03:11:58
阅读次数:
257
Installing /usr/local/lib/python2.7/dist-packages/matplotlib-1.4.0-py2.7-nspkg.pthSuccessfully installed matplotlibCleaning up...import matplotlib.py....
分类:
其他好文 时间:
2014-10-13 02:42:28
阅读次数:
232
Follow up for "Remove Duplicates":
What if duplicates are allowed at most twice?
For example,
Given sorted array A = [1,1,1,2,2,3],
Your function should return length = 5, and A is now [1,1,2,...
分类:
其他好文 时间:
2014-10-12 19:42:38
阅读次数:
141
Follow up for "Search in Rotated Sorted Array":
What if duplicates are allowed?
Would this affect the run-time complexity? How and why?
Write a function to determine if a given target is in the...
分类:
其他好文 时间:
2014-10-12 16:06:48
阅读次数:
185