51
Dev开发社区
首页
文章
问答
工具
搜索
登录
注册
#im
Android从imageview中获得bitmap
第一种:使用setDrawingCacheEnabled()和getDrawingCache()这两种方法,第一个是为了设置是否开启缓存,第二个就可以直接获得imageview中的缓存,一般来说需要在获得缓存以后setDrawingCacheEnabled设置为false,因为这样才能让之前的缓存去掉,不会影响后来新的...
代码星球
·
2020-04-06
Android
imageview
获得
bitmap
数据库的Timeout
数据库的Timeout其实有很多种情况。一个是执行的超时时间executionTimeOut,一个是连接的超时时间connectionTimeOut,还有呢?等待的超时时间 ReadTimeout。不过很多数据库情况下connectionTimeOut就是ReadTimeout &nbs...
代码星球
·
2020-04-06
数据库
Timeout
ssh启动报错:org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect
ssh项目启动报错: org.dom4j.DocumentException:Connectiontimedout:connectNestedexception:Connectiontimedout:connect一开始以为是数据库连接的事,后来发现是hibernate在实体对象映射数据库表的时候出的错解决: ...
代码星球
·
2020-04-06
Connection
timed
out
connect
ssh
ssh报错No operations allowed after connection closed.Connection was implicitly clos
###Errorqueryingdatabase.Cause:com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:Nooperationsallowedafterconnectionclosed.网上查了下,由于使用了默认配置,空闲超...
代码星球
·
2020-04-06
ssh
报错
No
operations
allowed
Error:(23, 0) Could not find method implementation() for arguments [directory 'libs'] on object of t
Error:(28,0)Couldnotfindmethodimplementation()forarguments[com.android.support:appcompat-v7:25.3.1]onobjectoftypeorg.gradle.api.internal.artifacts.dsl.dependenc...
代码星球
·
2020-04-06
Error
Could
not
find
method
Page directive: invalid value for import
原有项目启动正常,正常访问;后来换成tomcat7.0.70;后启动正常,登陆正常,然而点进去任何菜单都会报错:java.lang.IllegalArgumentException:Pagedirective:invalidvalueforimport;经检查,发现是所有菜单链接都引用了base.jsp,而base.j...
代码星球
·
2020-04-06
Page
directive
invalid
value
for
ajax上传图片报错TypeError: 'append' called on an object that does not implement interface Fo
使用FormData时报错:TypeError:'append'calledonanobjectthatdoesnotimplementinterfaceFormData解决办法:在ajax中加入这两句话就行: processData:false, c...
代码星球
·
2020-04-06
ajax
上传
图片
报错
TypeError
idea取消vim模式
在安装idea时选择了vim编辑模式,但是用习惯了eclipse,总是要拷贝粘贴,在idea中一直按ctrl+c和ctrl+v不起总用。于是想把vim模式关闭掉。方法:菜单栏:tools->vimemulator...
代码星球
·
2020-04-06
idea
取消
vim
模式
Timestamp 数据类型四舍五入引起的神奇bug
神奇bug, Timestamp会四舍五入也会引起bug.. StringUUID=java.util.UUID.randomUUID().toString();longtime=System.currentTimeMillis()+30*60*1000;TimestampoutDate...
代码星球
·
2020-04-06
Timestamp
数据
类型
四舍五入
引起
spring boot 之 错误:SpelEvaluationException: EL1008E: Property or field 'timestamp' cannot be found on object of type 'java.util.HashMap'
这个错误我也见过很多次了,今天终于理解了其出现的原因。错误是这样的:2017-11-2318:05:39.504ERROR4092---[nio-8080-exec-3]o.a.c.c.C.[Tomcat].[localhost]:ExceptionProcessingErrorPage[errorCode=0,loc...
代码星球
·
2020-04-06
spring
boot
错误
SpelEvaluationException
EL1008E
Timer TimerTask schedule scheduleAtFixedRate
jdk自带的timer框架是有缺陷的,其功能简单,而且有时候它的api不好理解。importjava.util.Date;importjava.util.Timer;importjava.util.TimerTask;publicclassTestTimer{privatestaticfinalintdel...
代码星球
·
2020-04-06
Timer
TimerTask
schedule
scheduleAtFixedRate
ImportError: No module named _curses;Color support is disabled, python-curses is not installed.解决办法
linux系统默认安装了python2.6,但是发现python2.7importcurses时提示找不到_curses错误。 用pip(python2.7)安装了curses-2048 (sudopipinstall curses-2048) 仍然继续提示 ...
代码星球
·
2020-04-06
is
ImportError
No
module
named
sublime的tab和spaces空格切换的坑
python是严格要求对齐或者叫缩进的;使用sublime对python进行编程时,可以使用tab或者空格,但是不能混用。特别是从外面把代码拷贝进sublime的时候,更要注意是否一致。简单介绍一下:IndentUsingSpaces表示使用空格,不选中表示使用tab;TabWidth:4表示一个tab为4个空格;Co...
代码星球
·
2020-04-06
sublime
tab
spaces
空格
切换
Celery 启动报错 can_read() got an unexpected keyword argument timeout
问题:方案:更改redis版本和celery版本,我使用下面的celery版本和redis版本,解决问题➜~pipshowceleryName:celeryVersion:4.1.0Summary:DistributedTaskQueue.Home-page:http://celeryproject.orgAuthor...
代码星球
·
2020-04-06
Celery
启动
报错
can
read
sublime快捷键设置
1、sublime自带的快捷键设置:这里的super在mac下是指command键右边的内容表示用户自定义的快捷键:比如如图所示command+d表示复制光标所在行 常用操作:复制粘贴什么的太常用的就不说了{"keys":["ctrl+super+up"],"command":"swap_line_up"},...
代码星球
·
2020-04-06
sublime
快捷键
设置
首页
上一页
...
187
188
189
190
191
...
下一页
尾页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他