昨天配置代码审核工具reviewboard,这个是基于Python的框架Djanjo构建的,需要升级yum源,结果捣鼓来捣鼓去,系统一下子多了3 ,4个python,把Yum也搞坏了。后来不知道看了哪个损比写的帖子,把yum和python卸掉重装...
分类:
编程语言 时间:
2014-07-31 17:28:37
阅读次数:
587
1.mybatis语句SELECT * FROM console_operator WHERE login_name=#{loginName} AND login_pwd=#{loginPwd}2.日志打印信息正确情况:username:admin, password:admin2014-07...
分类:
数据库 时间:
2014-07-31 16:10:12
阅读次数:
359
SQL Injectioin防范ibatis框架先看一段ibatis的xml配置以上的sql中存在一个问题$accountId$是变量替换的形式, 容易引入sql注入, 例如$accountId$是前台用户输入的"';select * from admin--", 那么数据库端就会执行两个sql, ...
分类:
编程语言 时间:
2014-07-31 13:03:06
阅读次数:
315
直到今天才知道Copyleft这个名词(orz...)我们经常能见到的是 Copyright(著作权),这个对版权的保护,保证作者权益。它的对立面就是Copyleft,它允许用户自由修改 使用作品。最受益的应该是 软件行业。 具体WIKI:http://zh.wikipedia.org/wiki/C...
分类:
其他好文 时间:
2014-07-31 12:10:36
阅读次数:
177
对于错误" Incorrect string value: ‘\xE6\xA2\xB5\xE8\x92\x82...‘for column ‘object_repr‘ at row 1? 解决方法是设置django_admin_log表的object_repr一项使用utf8_unicode_ci; 对于错误" ?Incorrect...
分类:
其他好文 时间:
2014-07-31 10:02:26
阅读次数:
251
题目:Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 /...
分类:
编程语言 时间:
2014-07-31 02:28:25
阅读次数:
376
AbstractCollection抽象类提供了Collection的骨架实现,Collection分析请看:http://blog.csdn.net/treeroot/admin/Referrers.aspx?EntryID=99591这里直接看它的代码是如何实现的.public abstract...
分类:
其他好文 时间:
2014-07-30 23:36:25
阅读次数:
252
android:scaleType="center"
以原图的几何中心点和ImagView的几何中心点为基准,按图片的原来size居中显示,不缩放,当图片长/宽超过View的长/宽,则截取图片的居中部分显示ImageView的size.当图片小于View 的长宽时,只显示图片的size,不剪裁。
android:scaleType="centerCrop"
以原图的几何中心点...
分类:
移动开发 时间:
2014-07-30 14:56:43
阅读次数:
246
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center)....
分类:
其他好文 时间:
2014-07-30 14:48:53
阅读次数:
216
SYMPTOMS
在利用dbca创建数据库时,当设置完成所有参数,开始装时 跑到2% 就报错 ORA-01034 ORACLE not available,
如下图
CAUSE
There's a script in ORACLE_HOME/sqlplus/admin which is called glogin.sql. This script is autom...
分类:
数据库 时间:
2014-07-30 14:47:33
阅读次数:
505