using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebContro...
分类:
Web程序 时间:
2014-07-19 22:03:49
阅读次数:
176
布局:线性布局+相对布局日志打印:利用LogCat和System.out.println打印观察。Onclick事件是采用过的第四种:在配置文件中给Button添加点击时间涉及知识:通过上线文context获得文件的路径和缓存路径,保存文件布局代码: ...
分类:
移动开发 时间:
2014-07-18 23:29:29
阅读次数:
402
public Bitmap drawTextToBitmap(Context mContext, int resourceId, String mText) {
try {
Resources resources = mContext.getResources();
float scale = resources.getDisplayMetri...
分类:
其他好文 时间:
2014-07-18 21:23:53
阅读次数:
258
转载的:今天在网上看到一个关于加密算法的安全性及破解复杂度的表格,特摘录下来以便日后参考使用,原表是英文的,这里直接翻译成中文方便查阅。另外还找了一些关于密码学相关的信息,附录在后。加密算法的安全级别(Security Level of Cryptographic Algorithms) 安全级别 ...
分类:
其他好文 时间:
2014-07-18 20:36:05
阅读次数:
512
来自:http://shine-it.net/index.php/topic,16360.0.html 有个需求想many2one字段关联显示的value在各个模块显示不同的值。 如果直接该rel_name 相当与改了全局的。所有关联的都变了。 @重庆-mrshelly 说可以通过context设置...
分类:
其他好文 时间:
2014-07-18 20:26:58
阅读次数:
186
Shiro 是一个强大而灵活的开源安全框架,能够非常清晰的处理认证、授权、管理会话以及密码加密。如下是它所具有的特点:易于理解的 Java Security API;简单的身份认证(登录),支持多种数据源(LDAP,JDBC,Kerberos,ActiveDirectory 等);对角色的简单的签权...
分类:
其他好文 时间:
2014-07-18 19:21:32
阅读次数:
292
最近在做JavaWeb项目,总是出现各种的路径错误,而且发现不同情况下 / 所代表的含义不同,导致在调试路径上浪费了大量时间。
在JavaWeb项目中尽量使用绝对路径 因为使用绝对路径是绝对不会出错的,而使用相对路径可能会出现错误。
首先 说下在JavaWeb项目中的绝对路径和相对路径的含义
绝对路径: 相对于当前Web应用根路径的路径 也就是任何路径都必须要带上context...
分类:
编程语言 时间:
2014-07-18 17:07:30
阅读次数:
213
例如:在我的工程中有一个类CompassIndexOperation,以:
@Service("CompassIndexOperation")
@Transactional
方式通知Spring创建一个实现类的实例;
且Spring配置xml文件中设置了生成bean的文件目录,我的工程实例为:
context:component-scan base-package="com.ourfut...
分类:
编程语言 时间:
2014-07-17 16:06:38
阅读次数:
276
importandroid.content.Context;importandroid.text.Editable;importandroid.text.InputFilter;importandroid.text.InputType;importandroid.text.TextWatcher;importandroid.text.method.PasswordTransformationMethod;importandroid.view.KeyEvent;importandroid.view.View;i..
分类:
其他好文 时间:
2014-07-17 15:23:01
阅读次数:
210
1)A-->BstartActivity(Context,.class);2)A-->B-->AA:startActivityForResult(intent,0);(此处的0为requestCode)B:a)Intentintent=newIntent();/Intentintent=getIntent();b)intent.putExtra("","");c)setResult(0,intent);(此处的0为resultCode)finish();(销..
分类:
其他好文 时间:
2014-07-17 09:06:31
阅读次数:
247