上一页 1 ··· 282 283 284 285 286 287 288 289 290 ··· 303 下一页
摘要: 在struts1.xAction类的execute方法中,有四个参数,其中两个就是response和request。而在Struts2中,并没有任何参数,因此,就不能简单地从execute方法获得HttpServletResponse或HttpServletRequest对象了。 但在Struts2 Action类中仍然有很多方法可以获得这些对象。下面就列出四种获得这些对象的方法。【方法1】使用Struts2 Aware拦截器 这种方法需要Action类实现相应的拦截器接口。如我们要获得HttpServletResponse对象,需要实现org.apache.struts2.interc... 阅读全文
posted @ 2013-03-28 21:45 xinyuyuanm 阅读(136) 评论(0) 推荐(0) 编辑
摘要: template<bool> struct CompileTimeError;template<> struct CompileTimeError<true>{};#define STATIC_ASSERT(expr) \ CompileTimeError<(expr)>() 阅读全文
posted @ 2013-03-28 21:44 xinyuyuanm 阅读(112) 评论(0) 推荐(0) 编辑
摘要: //T could converted to U ?template<typename T, typename U>class Conversion{private: typedef char Small; struct Big{ char big[2]; }; static Small _helper_fun(U); static Big _helper_fun(...); static T _make_T();public: enum { Exists = (sizeof(_helper_fun(_make_T())) == sizeof(... 阅读全文
posted @ 2013-03-28 21:43 xinyuyuanm 阅读(210) 评论(0) 推荐(0) 编辑
摘要: animator 动画动画的作用是让UI有动感, 看上去时尚。 Android中动画分两种方式: 一种方式是补间动画Tween Animation,就是说你定义一个开始和结束,中间的部分由程序运算得到。 另一种叫逐帧动画Frame Animation,就是说一帧一帧的连起来播放就变成了动画。 动画可以实现的效果: 1. 移动(Translation) 2. 透明度(alpha) 3. 旋转(rotate) 4. 缩放 (scale) 现在分别用例子来讲解:以下的实现都是用代码实现的(ObjectAnimator) ... 阅读全文
posted @ 2013-03-28 21:41 xinyuyuanm 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 今天在使用oracle 11时,使用sqlplus中默认的账号scott登录,发现报错,无法登录解决此类问题:1,账号scott已经是unlocked状态了。--当然,他不会报这个错2,Oracle11g的密码过期。 原因:是由于oracle11g中默认在default概要文件中设置了“PASSWORD_LIFE_TIME=180天”所导致。,3,C:\>sqlplus / as sysdba查看指定概要文件(如default)的密码有效期设置: SQL> select * from dba_profiles where profile='DEFAULT' and 阅读全文
posted @ 2013-03-28 21:40 xinyuyuanm 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 简介DEP - 数据执行保护的缩写,Data Execution Prevention。数据执行保护 (DEP) 是一套软硬件技术,能够在内存上执行额外检查以帮助防止在系统上运行恶意代码。在 Microsoft Windows XP Service Pack 2、 Microsoft Windows Server 2003 Service Pack 1 、Microsoft Windows XP Tablet PC Edition 2005 、 Microsoft Windows Vista 和 Microsoft windows7 中,由硬件和 软件一起强制实施 DEP。DEP关闭方法 开. 阅读全文
posted @ 2013-03-28 21:39 xinyuyuanm 阅读(4163) 评论(0) 推荐(0) 编辑
摘要: <html> <head> <meta charset="utf-8"/> <script type="text/javascript" src="script/jquery-1.4.2.min.js"></script> <script> $(function(){ //在jquery中如果操作的是同一个对象,规范建议换行 $("#username").focus(function)(){ $(this).val("") 阅读全文
posted @ 2013-03-28 21:38 xinyuyuanm 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 六条道上的芸芸众生All mortal being on the Buddhism six paths不继地从四面八方拥来Come from everywhere continuously再通过一道光缝擦身而出The go through a ray of light你以为自己在走自己的路You thought you were walking under your own road不变的直线Non-changeable straight line其实你逃不出,一直在绕圆圈In fact,you cannot avoid to go around the circle时间突兀地洒下Sudden 阅读全文
posted @ 2013-03-28 21:36 xinyuyuanm 阅读(194) 评论(0) 推荐(0) 编辑
摘要: <head> <meta charset="utf-8"/> <script type="text/javascript" src="../script/jquery-1.4.2.min.js"></script> <script> /*创建节点*/ $(function(){ //1,创建元素节点append var $li = $("<li></li>"); $("ul").append($li); //2, 阅读全文
posted @ 2013-03-28 21:35 xinyuyuanm 阅读(456) 评论(0) 推荐(0) 编辑
摘要: 经过前面的配置,S5PV210开发已经可以成功进入Linux控制台了,那么,有了这个环境就可以开始学习Linux驱动的编写和测试了。学习Linux设备驱动,通常是从字符设备驱动开始。由于linux驱动开发具有比较系统的体系结构,我很难在一篇文章中阐述其开发思路,为了简单起见,从本文开始,自行编写的驱动将直接附上代码,对开发过程中感触比较深的地方稍作陈述。我写的第一个驱动程序是Led的,但是感觉没有必要发出来了,S5PV210(TQ210)的按键驱动程序源码,仅供参考:#include <linux/types.h>#include <linux/module.h>#in 阅读全文
posted @ 2013-03-28 21:34 xinyuyuanm 阅读(427) 评论(0) 推荐(0) 编辑
上一页 1 ··· 282 283 284 285 286 287 288 289 290 ··· 303 下一页