前两篇在这里:Android上使用native
IO最近工作中的问题笔记最近遇到的问题是,java.io.IOException: FAT
FullStackOverflow的结果:http://stackoverflow.com/questions/18906055/what-causes-job...
分类:
移动开发 时间:
2014-06-02 22:27:49
阅读次数:
628
对于不同文件中的数据,有时候有对应关系,需要进行连接(join),获得一个新的文件以便进行分析。比如有两个输入文件a.txt,b.txt,其中的数据格式分别如下
1 a
2 b
3 c
4 d
1 good
2 bad
3 ok
4 hello
需要将其连接成一个新的如下的文件:
a good
b bad
c ok
d hello
处理步骤可以分成两步:
1.map阶段,将两个输入文件...
分类:
其他好文 时间:
2014-06-01 09:05:01
阅读次数:
325
#include
using namespace std;
//template
class Int
{
friend ostream& operator
public:
Int(int i):m_i(i)
{
}
Int& operator++()
{
++(this->m_i);
r...
分类:
其他好文 时间:
2014-06-01 09:00:22
阅读次数:
209
1.Picasso简介Picasso是Square公司出品的一个强大的图片下载和缓存图片库。官方网址是:http://square.github.io/picasso/只需要一句代码就可以将图片下载并设置到ImageView上。Picasso.with(context).load("http://i.imgur.com/DvpvklR.png").into(imageView);2.主要特点2.1...
分类:
移动开发 时间:
2014-06-01 08:58:21
阅读次数:
444
查询crm_linkman表中,birthday(数据库中为date类型)字段中,月日为5-31的记录(主要用于检索今天有没有联系人生日)
SELECT * FROM crm_linkman WHERE MONTH(birthday) = 5 and DAYOFMONTH(birthday) = 31...
分类:
编程语言 时间:
2014-06-01 08:52:21
阅读次数:
355
如果你不希望应用运行时 iPhone 进入锁屏待机状态,加入下面这行代码即可[[UIApplication sharedApplication] setIdleTimerDisabled:YES];顺便, 学习了下 UIApplication。iPhone应用程序是由主函数main启动,它负责调用UIApplicationMain函数,该函数的形式如下所示:对准UIApplicationMain,...
分类:
移动开发 时间:
2014-06-01 08:51:44
阅读次数:
418
本文参考《Android系统源代码情景分析》,作者罗升阳。
一、Binder库(libbinder)代码:
~/Android/frameworks/base/libs/binder
----BpBinder.cpp
----Parcel.cpp
----ProcessState.cpp
--...
分类:
其他好文 时间:
2014-06-01 06:39:01
阅读次数:
1479
最近在代码中经常看到bind关键词,之前没用过啊,这里记录下。从微软复制过来的例子:
// Define the original function.
var checkNumericRange = function (value) {
if (typeof value !== 'number')
return false;
else
return...
分类:
编程语言 时间:
2014-06-01 04:51:27
阅读次数:
481
回顾上次内容:http://blog.csdn.net/acdreamers/article/details/27365941
经过上次对Logistic回归理论的学习,我们已经推导出取对数后的似然函数为
现在我们的目的是求一个向量,使得最大。其中
对这个似然函数求偏导后得到...
分类:
其他好文 时间:
2014-06-01 04:34:43
阅读次数:
410