The default music player on Debian 7.0 is Rhythmbox. At the first look, its appearance seems not so bad. Although it has the problem of displaying Chi...
分类:
系统相关 时间:
2014-06-30 13:15:51
阅读次数:
406
Fortran has two kinds of subprograms: subroutine and function. Usually, subroutine is a combination of several procedures generating side effects with...
分类:
其他好文 时间:
2014-06-30 12:43:00
阅读次数:
207
var indexOfSorted = function f(arr,n){
//assume : arr has been sorted
var low = 0;
var high = arr.length - 1;
var mid = (low + high) / 2;
while(high - low > 1){
if(n == arr[low]){return low...
分类:
Web程序 时间:
2014-06-30 08:54:10
阅读次数:
978
链接脚本中的LMA和VMA是什么意思,这个问题纠结了一段时间,今天在看《ARM体系结构与编程》时,豁然开朗,写下自己的认识,分享如下:
LMA:加载地址 位于存储器中的地址 LOAD MEMORY ADDRESS
VMA:运行地址(虚拟地址) 运行时的地址 VIRTUAL MEMORY ADDRESS 为什么用VMA表示呐?因为cpu运行的地址都是虚拟地址,经过MMU转为物理地址。在没有开MMU的裸板下,延续了这一称呼。理解为运行地址。
为什么要分 两种地址?
运行映像文件时,有些域可以移动到新...
分类:
其他好文 时间:
2014-06-30 06:13:11
阅读次数:
204
Linux下Nginx的安装 如果出现:error: 'ngx_http_file_cache_node_t' has no member named 'length'异常,可能是ngx_cache_purge-2.1.tar.gz版本太旧导致...
分类:
系统相关 时间:
2014-06-30 00:11:43
阅读次数:
401
题目
Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified.
You should pack your words in a greedy approa...
分类:
其他好文 时间:
2014-06-29 23:44:02
阅读次数:
357
【题目】
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
【题意】
判断一个单向链表是否有环
【思路】
维护两个指针p1和p2,p1每次向前移动一步,p2每次向前移动两步
如果p2能够追上p1,则说明链表中存在环...
分类:
其他好文 时间:
2014-06-29 22:51:33
阅读次数:
267
Add include to "freetype.h"/* add this line */#include #ifndef FT_FREETYPE_H#error "`ft2build.h' hasn't been included yet!"#error "Please always use m...
分类:
其他好文 时间:
2014-06-29 20:24:58
阅读次数:
312
We must have already been familiar with proprietary Fortran programming environments, for example,Compaq Visual Fortran IDE (which is actually a combi...