格式化输出System.out.prinf("format",args);format:自定义格式小数保留位数BigDecimal bd=new BigDecimal(double);bd.setScale(3,BigDecimal.ROUND_HALF_UP).doubleValue(); 3:....
分类:
系统相关 时间:
2014-10-15 00:25:59
阅读次数:
360
blog宗旨:用图说话
辅助文字说明:
1.调用形式:在Client中使用component.method();
2.使用范围:具有同样结构的聚合、组合。
举例:
生成条件语句:when avg(cpu) > 60% or avg(mem) > 70% for 3 min then do scale up,对于avg(cpu) > 60% , avg(mem) > 70%,或者其...
分类:
其他好文 时间:
2014-10-14 22:09:09
阅读次数:
220
(1)主要是onScroll()方法和onTouchEvent()方法,先是onTouchEvent()的ACTION_DOWN,然后是 ACTION_MOVE和onScroll()方法同时进行,最后是onTouchEvent()的ACTION_UP。 (2)刷新的4种状态:CLICK_TO_REF...
分类:
其他好文 时间:
2014-10-14 20:50:49
阅读次数:
234
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
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