从Bitmap.recycle说起在Android中,Bitmap的存储分为两部分,一部分是Bitmap的数据,一部分是Bitmap的引用。在Android2.3时代,Bitmap的引用是放在堆中的,而Bitmap的数据部分是放在栈中的,需要用户调用recycle方法手动进行内存回收,而在Android2.3之后,整个Bitmap,包括数据和引用,都放在了堆中,这样,整个Bitmap的回收就全部交给...
分类:
其他好文 时间:
2016-01-25 17:15:00
阅读次数:
161
Python获取指定路径下的子目录和文件有两种方法:os.listdir(dir)和os.walk(dir),前者列出dir目录下的所有直接子目录和文件的名称(均不包含完整路径),如>>> os.listdir(r'E:')['$RECYCLE.BIN', 'BaiduYunDownload', '...
分类:
编程语言 时间:
2016-01-25 14:34:54
阅读次数:
371
在Windows Server 2012 上遇到了“The Recycle Bin On E:\ is corrupted。 Do you want to empty the Recycle Bin for this drive?" . 一般对应的中文提示为”E:\上的回收站已经损坏。是否清空该.....
资源对象没关闭造成的内存泄漏构造Adapter时,没有使用缓存的convertViewBitmap对象不在使用时调用recycle()释放内存试着使用关于application的context来替代和activity相关的context注册没取消造成的内存泄漏集合中对象没清理造成的内存泄漏以上是安卓...
分类:
移动开发 时间:
2016-01-02 14:23:38
阅读次数:
197
效果图:第一步:添加滑动监听 mRecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() {//判断滑动方向
@Override
public void onScrolled(RecyclerView recyclerView, int dx, int dy) {...
分类:
其他好文 时间:
2015-10-27 20:20:35
阅读次数:
243
net.ipv4.ip_forward=0
net.ipv4.conf.default.rp_filter=1
net.ipv4.conf.default.accept_source_route=0
kernel.sysrq=0
kernel.core_uses_pid=1
net.ipv4.tcp_syncookies=1
net.ipv4.tcp_tw_reuse=1
net.ipv4.tcp_tw_recycle=1
net.ipv4.tcp_fin_timeout=30
net.ipv4.tcp_ma..
分类:
其他好文 时间:
2015-10-20 19:51:01
阅读次数:
259
QUESTION NO: 472
Examine the output of the query that you executed to list the objects in the recycle bin:
You verified that no table named SALES_TAB exists in the schema. Then you executed the foll...
分类:
其他好文 时间:
2015-10-18 11:30:30
阅读次数:
182
优化nginx服务器内核TCP参数,简单整理,很多参数可以放到nginx配置文件中调整vi/etc/sysctl.conf在最后添加如下内容:net.ipv4.tcp_max_tw_buckets=6000net.ipv4.ip_local_port_range=204865000net.ipv4.tcp_tw_recycle=1net.ipv4.tcp_tw_reuse=1net.ipv4.tcp_syncookies=1net..
分类:
其他好文 时间:
2015-10-14 21:58:58
阅读次数:
532
所谓内核优化,主要是在Linux系统中针对业务服务应用而进行的系统内核参数优化,优化并无特殊的标准,下面以常见生产环境linux的内核优化为例讲解,仅供大家参考:net.ipv4.tcp_fin_timeout=2net.ipv4.tcp_tw_reuse=1net.ipv4.tcp_tw_recycle=1net.ipv4.tcp_syncookies=1net.ip..
分类:
其他好文 时间:
2015-10-14 10:33:56
阅读次数:
337
Fri?Jul?31?15:45:01?CST?2015?HTTP?OK:?HTTP/1.1?200?OK?-?240?bytes?in?0.087?second?response?time?|time=0.087261s;;;0.000000?size=240B;;;0
Fri?Jul?31?15:48:01?CST?2015?HTTP?...
分类:
其他好文 时间:
2015-09-18 12:20:36
阅读次数:
446