- 博客(87)
- 问答 (1)
- 收藏
- 关注
原创 'mvc:annotation-driven' must have no character or element information item [chil
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 39 in XML document from class path resource [spring/web/servlet-context.xml] is invalid; nested exception is org.xml.sax.SAX...
2013-07-18 16:27:33 480
原创 Oracle坑不间断更新
[b][size=large]jdbc date 不走索引[/size][/b]jdbc中[code="java"]select * from tba t where t.createtime >?[/code]实际上不走索引(如果createtime是date类型的话),传说会转换为timestamp,对于此类需要改成,[code="java"]select * from tba...
2013-04-07 19:11:58 130
原创 遍历md5的小方法
[code="java"]public class Test{ private static final char[] x = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' }; static MessageD...
2013-04-02 20:41:23 206
原创 grep 使用
[b]grep 中 增加正则表达式,例如tab[/b][code="java"]cat request.log |grep -P '\t107\t'[/code]
2013-03-26 11:19:34 78
原创 搭建环境
很容易 按照 [u]logstash.net[/u] 上的learn进行操作其中当File的input时候,出现了错误[code="java"]Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (NotImplementedError) stat.st_dev unsupporte...
2013-03-22 17:51:24 208
原创 SpringMvc问题
[b]所有的urlredirect都带上了jsessionid[/b]参考http://static.springsource.org/spring-security/site/docs/3.0.x/reference/appendix-namespace.html#nsa-http-attributesdisable-url-rewriting最后,追究到是p3p造成的ifr...
2013-02-28 14:15:03 69
原创 linux调试工具
vmstatiostat iostat -xpidstattopsarSysstat是一个非常强大的工具,因此下载了试了下,效果不错。Sysstat是一个工具集,包括sar、pidstat、iostat、mpstat、sadf、sadc(sysstat安装了以后里面的sar和自带的sar冲突,我替换了 /usr/bin/sar 到 /usr/local/sar)...
2012-09-20 14:15:50 93
原创 线程卡住了,你敢信吗。
[code="java"] List list = specialCoinInputDao.findPendingData(); for(SpecialCoinInputInfo o: list ) { specialCoinInputDao.updateStatus(o,5); // 更新为5 ...
2012-08-13 16:00:50 135
原创 android assert 自定义格式被压缩
asset如果自定义一个格式 那么会被压缩掉出现[code="java"]04-05 16:35:32.121: E/E(13220): java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed[/code][cod...
2012-04-05 16:42:09 186
原创 tabhost 按住的效果
m_tabHost.getTabWidget().getChildAt(i) .setBackgroundResource(R.drawable.selector_tab_background);
2012-02-13 14:34:32 71
原创 多线程下载
http://blog.csdn.net/wanglong0537/article/details/6411565url connectioncon.setRequestProperty("Range", "bytes=" + startPosition + "-" + endPosition);filefos = new RandomAccessFile(file, "r...
2012-01-03 21:59:33 89
原创 Android /system下cp 或者rm
root权限下面使用命令mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
2011-10-26 16:42:29 157
原创 Android PNG渐变背景图片失真问题
getWindow().setFormat(PixelFormat.RGBA_8888);seehttp://longshuai2007.blog.163.com/blog/static/14209441420117221117508/
2011-10-21 20:39:37 91
原创 ubuntu 下安装java5
deb http://cz.archive.Ubuntu.com/ubuntu hardy-updates main multiverseadd in /etc/apt/sources.list
2011-10-09 10:26:03 79
原创 [Android 問題] Make/Build Error: You are not using bash - builds will fail
If you meet this error when trying the build your android code: make: Entering directory `/bsp/Project_Name'build/core/main.mk:7: You are not using bash - builds will failbuild/core/ma...
2011-10-09 09:58:59 70
原创 android ubuntu 认不出设备的问题
在/etc/udev/rules.d/目录下创建51-android.rulesSUBSYSTEM=="usb", SYSFS{idVendor}=="19D2", MODE="0666"就可以读出来设备
2011-10-05 08:48:19 75
原创 设置屏幕亮度的悲剧
[code="java"] WindowManager.LayoutParams localLayoutParams = getWindow().getAttributes(); System.out.println(localLayoutParams.screenBrightness); localLayoutParams.screenBright...
2011-09-21 18:28:09 83
原创 相同class的startactivity使用Intent.FLAG_ACTIVITY_MULTIPLE_TASK
void android.content.Context.startActivity(Intent intent)Launch a new activity. You will not receive any information about when the activity exits. Note that if this method is being called from ...
2011-09-05 10:52:46 901
原创 bitmap&bitmapdrawable的问题
[code="java"]BitmapDrawable localBitmapDrawable = new BitmapDrawable(paramBitmap);[/code]原本的density[quote]paramBitmap240[/quote]变成了[quote]localBitmapDrawable 160[/quote]lookit[co...
2011-08-07 14:03:39 53
原创 android 字体&颜色
对于能够显示文字的控件(如TextView EditText RadioButton Button CheckBox Chronometer等等),你有时需要控制字体的大小。Android平台定义了三种字体大小。java代码:"?android:attr/textAppearanceLarge""?android:attr/textAppearanceMedium""?...
2011-07-09 15:03:15 65
原创 Android 解决 bitmap size exceed vm budget
http://www.maxhis.info/androiding/bitmap-size-exceed/完美解决java.lang.OutOfMemoryError: bitmap size exceeds VM budget2011年6月17日 iStar 发表评论 阅读评论当图片过大,或图片数量较多时使用BitmapFactory解码图片会出java.lang.OutOf...
2011-07-01 12:25:09 126
原创 ubuntu firefox 问题
firefox 打开问题,删除cert8.dbhttps://support.mozilla.com/zh-CN/kb/%E4%B8%8D%E8%83%BD%E5%88%9D%E5%A7%8B%E5%8C%96FireFox%E6%B5%8F%E8%A7%88%E5%99%A8%E7%9A%84%E5%AE%89%E5%85%A8%E7%BB%84%E4%BB%B6...
2011-06-23 21:03:53 85
原创 android adapter的更新
[i][b]06-21 12:00:02.473: ERROR/AndroidRuntime(29916): java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of you...
2011-06-21 12:09:54 240
原创 android edittext不弹出软键盘
EditText 不弹出软件键盘2011-05-17 12:291.EditText默认不弹出软件键盘方法一:在AndroidMainfest.xml中选择哪个activity,设置windowSoftInputMode属性为adjustUnspecified|stateHidden例如: ...
2011-06-20 13:18:55 125
原创 adroid 发短信疑问?空指针。
SmsManager.getDefault().sendTextMessage nullpointwhy why why
2011-05-27 00:11:10 63
原创 android simplecursoradapter 和notifydatasetchanged 那点事
如题,cursor changed 执行了notify也没用的,必须cursor requery或者重新获得cursor。
2011-05-26 16:22:15 139
原创 android 内置的adator的itemid
难怪simplecursoradapter必须要有_id因为这个id绑定到itemid上,不错~~~~
2011-05-26 16:10:52 79
原创 Android layout 的dip问题
淡疼。。一个view3个linearlayout谁知总的height为480dip但是wvga不会超出界面完美显示,但是hvga撑掉页面了,显示不全,,,将中间的weight=1就ok但是不能精确了,有些时候layout-800*480 这样子就可以精确不同的分辨率不同的目录,但是非工作量,moto的还是857 的,因此加weight差不多就行了。...
2011-05-26 16:06:25 96
原创 Android Broadcast生命周期及注册机制
http://blog.csdn.net/debug2/archive/2011/02/22/6199368.aspx
2011-05-25 15:53:07 81
空空如也
hibernate 怎么加上 /*+full(t)*/
2010-12-16
TA创建的收藏夹 TA关注的收藏夹
TA关注的人