
编程
文章平均质量分 95
pkufergus
I am Fergus from PKU.
展开
-
十道海量数据处理面试题与十个方法大总结
第一部分、十道海量数据处理面试题 1、海量日志数据,提取出某日访问百度次数最多的那个IP。 此题,在我之前的一篇文章算法里头有所提到,当时给出的方案是:IP的数目还是有限的,最多2^32个,所以可以考虑使用hash将ip直接存入内存,然后进行统计。 再详细介绍下此方案:首先是这一天,并且是访问百度的日志中的IP取出来,逐个写入到一个大文件中。注意到IP是32位的,最多转载 2013-12-13 17:32:46 · 505 阅读 · 0 评论 -
Callgrind Format Specification
3. Callgrind Format Specification Table of Contents 3.1. Overview 3.1.1. Basic Structure3.1.2. Simple Example3.1.3. Associations3.1.4. Extended Example3.1.5. Name Compression3.1.6. Subposition原创 2014-01-02 22:18:58 · 773 阅读 · 0 评论 -
安装Qt
sarge and testing: apt-get install kde-devel apt-get install qt3-assistant(联机帮助) sid: apt-get install libqt3-mt-dev( 因为kde-devel不能解决依赖) apt-get install qt3-assistant apt-get install qt3-assistant原创 2014-01-02 22:19:54 · 517 阅读 · 0 评论 -
Callgrind: a call-graph generating cache and branch prediction profiler
6. Callgrind: a call-graph generating cache and branch prediction profiler Table of Contents 6.1. Overview 6.1.1. Functionality6.1.2. Basic Usage 6.2. Advanced Usage 6.2.1. Multiple profiling原创 2014-01-02 22:16:39 · 1197 阅读 · 0 评论 -
Valgrind 之 Cachegrind 调研报告
Cachegrind介绍 1 Cachegrind基于Valgrind的剖析器(profiler) 计算机系统变得越来越复杂,需要剖析工具 存储系统往往是系统瓶颈,需要剖析Cache 2 功能 Ø 模拟L1、L2 Cache Ø 剖析Cache行为,执行次数、失效率等 Ø 按照文件、函数、代码行、汇编指令剖析 3 作用 Ø 详细Cache剖析,发现程序瓶颈原创 2013-12-20 12:11:38 · 3318 阅读 · 0 评论 -
C语言运算符优先级和口诀
一共有十五个优先级: 1 () [] . -> 2 ! ~ -(负号) ++ -- &(取变量地址)* (type)(强制类型) sizeof 3 * / % 4 + - 5 >> 6 > >= 7 == != 8 & 9 ^转载 2013-12-26 09:20:56 · 544 阅读 · 0 评论 -
UnderstandingDSOLinkChange
Contents [hide] 1 Understanding the (Proposed) Change to DSO Linking 1.1 Basics1.2 What's the difference? 1.2.1 Current1.2.2 Proposed 1.3 What do I do?1.4 Example deltarpm转载 2016-07-26 14:39:42 · 620 阅读 · 0 评论 -
PHP中Imagick类的使用(转)
http://php.net/manual/en/book.imagick.php 类参考文档 PHP中Imagick类的使用 PHP中Imagick类,提供了比GD库函数更为方便和强大的图片处理功能。由于工作关系研究了一阵,略有收获,不敢独乐,特与大家分享。 使用Imagick类,需要PHP安装imagemagick扩展模块。 php /** * 对比度处理 *转载 2017-01-09 18:07:09 · 2071 阅读 · 0 评论