摘要:
转自09年的blog,因为facebook在国内无法访问,故此摘录。The Photos application is one of Facebook’s most popular features. Up to date, users have uploaded over 15 billion p... 阅读全文
摘要:
In the traditional model, the life cycle of a user request is the following:Browser sends an HTTP request to web server.Web server parses the request,... 阅读全文
摘要:
It is finally here: you can configure the open source log-aggregator, scribe, to log data directly into the Hadoop distributed file system.Many Web 2.... 阅读全文
摘要:
c++类大小和机器还有编译器有关。64位机器指针大小为8个字节,32位机器为4个字节。每个实例在内存中都有一个独一无二的地址,为了达到这个目的,编译器往往会给一个空类隐含的加一个字节,这样空类在实例化后在内存得到了独一无二的地址;有虚函数的类有个virtual table(虚函数表),里面包含了类的... 阅读全文
摘要:
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo... 阅读全文
摘要:
Implement int sqrt(int x).Compute and return the square root of x.线性查找会TLE。用二分查找。注意溢出的处理。全部都改成long long. 1 class Solution { 2 public: 3 int sqrt(i... 阅读全文
摘要:
sk_buff结构可能是linux网络代码中最重要的数据结构,它表示接收或发送数据包的包头信息。它在中定义,并包含很多成员变量供网络代码中的各子系统使用。 这个结构被不同的网络层(MAC或者其他二层链路协议,三层的IP,四层的TCP或UDP等)使用,并且其中的成员变量在结构从一层向另一层传递时改变。... 阅读全文
摘要:
JVM -- java virtual machineA Java virtual machine (JVM) is a process virtual machine that can execute Java bytecode. JVM就是我们常说的java虚拟机,它是整个java实现跨平台的 ... 阅读全文
摘要:
1. 给两个类A和Bclass A {public void foo (A a) { ...}}class B extends A {public void foo (B b) { ...}}问这么写会不会有问题如果是c++,在B类里面foo(A*a)这个函数是不可见的。也就是说 B b; A ... 阅读全文
摘要:
What's xxxAn SVM model is a representation of the examples as points in space, mapped so that the examples of the separate categories are divided by a... 阅读全文