1.LDA介绍LDA假设生成一份文档的步骤如下:模型表示:单词w:词典的长度为v,则单词为长度为v的,只有一个分量是1,其他分量为0的向量 $(0,0,...,0,1,0,...,0,0)$文档W: 单词的组合,$(w_1,w_2,...,w_N)$,可以看成是 $v*N$ (词典长度*单词个...
分类:
其他好文 时间:
2015-04-17 18:01:50
阅读次数:
222
在引进Compacting GC后,ART运行时优化了堆内存分配过程。最显著特点是为每个ART运行时线程增加局部分配缓冲区(Thead Local Allocation Buffer)和在OOM前进行一次同构空间压缩(Homogeneous Space Compact)。前者可提高堆内存分配效率,后者可解决内存碎片问题。本文就对ART运行时引进Compacting GC后的堆内存分配过程进行分析。...
分类:
其他好文 时间:
2015-04-13 01:45:17
阅读次数:
412
obj中创建新对象有两种方式:[classname new]和[[classname alloc] init]。两种方法等价,Cocoa惯例是使用alloc和init。1.分配对象: allocation是一个新对象诞生过程,从OS获得一块内存并指定为存放对象的实例变量的位置。同时alloc方法还将...
分类:
其他好文 时间:
2015-04-11 19:28:17
阅读次数:
210
今天在编译Java程序的时候出现以下错误:No enclosing instance of type Main is accessible. Must qualify the allocation with an enclosing instance of type Main (e.g. x.new...
分类:
数据库 时间:
2015-04-11 19:12:28
阅读次数:
172
DIR结构体类似于FILE,是一个内部结构 struct __dirstream { void *__fd; char *__data; int __entry_data; char *__ptr; int __entry_ptr; size_t __allocation; size_t __siz...
分类:
其他好文 时间:
2015-04-11 13:03:57
阅读次数:
368
答:PT(Private Tracker)下载其实也是Bt下载的一种,但有两个明显的改进:一是私密的小范围下载,二是进行流量统计,根据上载量决定你的权限。BT下载时,软件会分析.torrent种子文件得到Tracker地址,然后连接Tracker服务器,服务器返回其他下载者的IP,下载者再与这些IP...
分类:
其他好文 时间:
2015-04-11 11:42:20
阅读次数:
133
./deploy/apache-activemq-5.10.0/bin/linux-x86-64/activemq start sudo /usr/local/nginx/sbin/nginx sudo fdfs_trackerd /etc/fdfs/tracker.conf sudo fdfs_storaged /etc/fdfs/storage.conf rc.local文件中有...
分类:
系统相关 时间:
2015-04-10 20:34:25
阅读次数:
254
malloc的全称是memory allocation,中文叫动态内存分配,当无法知道内存具体位置的时候,想要绑定真正的内存空间,就需要用到动态的分配内存。原型为extern void *malloc(unsigned int num_bytes)。在使用上,malloc 和 new 至少有两个不同...
分类:
其他好文 时间:
2015-04-10 17:40:57
阅读次数:
121
1,0516-787 extendlv: Maximum allocation for logical volume hd3 is 512smitt chlv改max logical partion值 or 使用Cli命令行 chlv -x 值M lvName;
分类:
其他好文 时间:
2015-04-08 21:24:58
阅读次数:
116
15款jQuery的插件:jQMeter、Prism Effect Slider、Fixed Background Effect、Animated Dropdown Mega Menu、Audio Recording、jQuery Progress Tracker、Hover Effects Bui...
分类:
Web程序 时间:
2015-04-07 11:39:57
阅读次数:
160