今天在做RSA加密的时候遇到了一个这样的错误:ArrayIndexOutOfBoundsException: too much data for RSA block 查询相关资料后得知该错误是加密数据过长导致的。 加密数据长度 <= 模长-11 解决办法:将要加密的数据截取后分段加密 1.密钥长度r ...
分类:
编程语言 时间:
2016-04-25 13:07:35
阅读次数:
272
$catmodels/user.py
#!/usr/bin/envpython
#encoding:utf-8
__author__=‘Andy‘
fromextensionsimportdb
fromdatetimeimportdatetime
classUser(db.Model):
__tablename__=‘user‘
_id=db.Column(db.Integer,primary_key=True,autoincrement=True)
name=db.Column(db.String(256)..
分类:
其他好文 时间:
2016-04-23 23:09:44
阅读次数:
516
1:捕获plsql抛出的异常 declarev_ename emp.ename%type;beginselect ename into v_ename from emp where empno=10;exceptionwhen too_many_rows thendbms_output.put_li ...
分类:
数据库 时间:
2016-04-23 19:33:44
阅读次数:
189
今天在学习Curator框架,查询了很多别人的例子照写都报错。然后上Curator(http://curator.apache.org/index.html)官网去看example,还是不行,一直报这个错。百思不得其解。
18:08:45.069 [main] WARN o.a.c.retry.ExponentialBackoffRetry - maxRetries too lar...
分类:
其他好文 时间:
2016-04-22 20:15:32
阅读次数:
1890
安装插件的原则就是,要按照规则,插件与本地的svn版本要一致, 这样子本地和eclipse上面就可以无缝使用,不会出现问题 1.卸载eclipse svn插件 2,安装新版的svn插件 2.1,下载 http://subclipse.tigris.org/ 找到网址或者zip包 下载的安装包就添加z ...
分类:
系统相关 时间:
2016-04-21 16:44:38
阅读次数:
470
android studio是个坑爹的工具,每次打开文件头都出现如上错误提示。 解决方法: Update your android sdk platform-tools to the revision 23.0.1 from sdk manager. In android studio click ...
在实际项目中我使用antrun 和 closure-compiler压缩JS项目。然后我就使用如下代码: 首先加入依赖。 com.google.javascript closure-compiler v20160315 pom.xml文件加入插件代码。 org.apache.maven.plugin... ...
分类:
其他好文 时间:
2016-04-20 23:49:32
阅读次数:
614
Problem Description
As you know, Gardon trid hard for his love-letter, and now he’s spending too much time on choosing flowers for Angel.
When Gardon entered the flower shop, he was frightened and da...
分类:
其他好文 时间:
2016-04-20 02:03:53
阅读次数:
188
Leasure time(4) w7d5 Leasure time, means the period when we are free of work, and we could enjoy the life.But,it seems most people value hard work too ...
分类:
其他好文 时间:
2016-04-19 08:39:52
阅读次数:
145