前面两篇文章分别介绍了我编写的开源项目ImageCropper库,以及如何调用系统的图片剪裁模块,本文则继续分析一下开发Android图片剪裁应用中需要用到的Bitmap操作。在Android系统中,对图片的操作主要是通过Bitmap类和Matrix类来完成,本文就介绍一下图片剪裁应用中对Bitmap的一..
分类:
移动开发 时间:
2015-01-15 01:54:16
阅读次数:
195
log rotatevi /etc/logrotate.d/spark :/apps/svr/spark-1.1.1-bin-cdh4/logs/mercury-spark-span.log{ notifempty daily rotate 5 compress olddir /apps/svr/s...
分类:
系统相关 时间:
2015-01-14 21:13:49
阅读次数:
304
Syntax:
#sed -e 'command' -e 'command' filename
Note: -e option is optional for sed with single command. sed will execute the each set of command while processing input from the pattern buffer.
...
分类:
其他好文 时间:
2015-01-14 15:35:56
阅读次数:
164
eclipse 编译报错:Conversion to Dalvik format failed with error 1
错误信息:
rouble processing "java/io/EOFException.class":
Ill-advised or mistaken usage of a core class (java.* or javax.*)
...
分类:
其他好文 时间:
2015-01-13 15:56:40
阅读次数:
171
Wikipedia: Sentiment analysis(also known asopinion mining) refers to the use ofnatural language processing,text analysisandcomputational linguisticsto...
分类:
其他好文 时间:
2015-01-12 19:04:57
阅读次数:
116
作为一个程序员,总会听人说起CPU、内存、主存、硬盘、主板等等一些高大上的专业术语,感觉自己弱爆了。
它们到底有什么用处,现在总结一下。方便需要的朋友了解。
一. CPU
CPU 是 Central Processing Unit 的简写,中文译为“中央处理器”,是计算机的大脑,负责计算、思考、处理数据、控制其他设备等,没有CPU,计算机就无从谈起,CPU的速度直接决定了电脑的运行速...
分类:
其他好文 时间:
2015-01-12 17:41:47
阅读次数:
247
Given a list, rotate the list to the right by k places, where k is non-negative.
For example:
Given 1->2->3->4->5->NULL and k = 2,
return 4->5->1->2->3->NULL.
/**
* Definition for singly-lin...
分类:
其他好文 时间:
2015-01-12 16:45:05
阅读次数:
151
06:36:34,405 ERROR http-8084-2 dispatcher.Dispatcher:38 - Exception occurred during processing request: $Proxy15.user_() java.lang.NoSuchMethodExcepti...
分类:
其他好文 时间:
2015-01-12 16:02:56
阅读次数:
371
magento后台订单状态(order status)只有Pending、Processing、On Hold、Closed、Canceled、Pending Payment 等等,如何在magento后台增加一个自定义订单状态呢?下面最模板以增加一个”On Shipping” 为例:1.首先你需打...
分类:
其他好文 时间:
2015-01-12 16:02:46
阅读次数:
209
You are given an n x n 2D matrix representing an image.
Rotate the image by 90 degrees (clockwise).
Follow up:
Could you do this in-place?
先转置class Solution
{
public:
void rotate(vector...
分类:
其他好文 时间:
2015-01-12 10:57:18
阅读次数:
137