Sometime, we need to open a file or buffer which name began with current word in emacs.
Here I give the solution as follows.
(provide 'quick-file-jump)
(defun ab/quick-buffer-jump ()
"Quickly jum...
分类:
其他好文 时间:
2014-05-15 15:02:20
阅读次数:
373
OCP,Open-Closed Principle,中文翻译为“开闭原则”。 当我第一次看到OCP原则时,我的感觉就是这原则也太抽象了吧,什么开,什么闭呢? 然后我去寻找更加详细的答案,最经典也是最常见的解释就是维基百科了:http://en.wikipedia.org/wiki/Open/closed_principle "software entities (classes, modules,...
分类:
其他好文 时间:
2014-05-15 14:48:35
阅读次数:
292
作者:lvyilong316
绿色代表进程(进程的性质)橙色代表文件(文件的性质)。当进程试图打开文件时,内核会进行如下权限测试:
0. 若进程的有效用户ID是0(超级用户),则允许访问。
1. 若进程的有效用户ID等于文件的所有者ID,那么进行文件所有者访问权限的测试(与open的参数对比),对应图中的1。
2. 若进程的有效组ID或进程的附加组ID之一等于文件的...
分类:
系统相关 时间:
2014-05-15 14:43:28
阅读次数:
514
1. 呼叫虚拟设备/向虚拟设备发送短信 1. 在eclipse中点击:
Window--->Open Perspective--->DDMS,选择Emulator Control选项; 2. 在Telephony
Actions选项的Incoming number输入要模拟的呼入号码,选择Voi.....
分类:
移动开发 时间:
2014-05-15 10:58:45
阅读次数:
327
1 sourceinsight screen font 的默认字体是Verdana的,它是一直变宽字体。在Document style中可以将字体改为定宽的Courier
2 document
options->auto indent 去掉indent Open Brace和Indent Close Brace的效果: 继上一段,在相对缩进行里, 如果输入"{"或"}", 则自动和上一行...
分类:
其他好文 时间:
2014-05-15 04:33:36
阅读次数:
330
2.6内核
1>修改linux-source-2.6.31/kernel/sys.c文件,在文件末尾添加系统响应函数。函数实现如下:
asmlinkage int sys_mycall(int number)
{
printk("这是我添加的第一个系统调用");
return number;
}
2>在linux-source-2.6.31...
分类:
系统相关 时间:
2014-05-15 02:51:56
阅读次数:
382
haproxy调度算法有以下几种:一、roundrobin,表示简单的轮询。二、static-rr,表示根据权重。三、leastconn,表示最少连接者先处理。四、source,表示根据请求源IP。五、uri,表示根据请求的URI;六、url_param,表示根据请求的URl参数‘balanceurl_param‘requiresanURLparamet..
分类:
其他好文 时间:
2014-05-15 01:00:17
阅读次数:
237
vShell的作用——命令解释器,“翻译官”§介于系统内核与用户之间,负责解释命令行v用户的登录Shell§登录后默认使用的Shell程序,一般为/bin/bash§不同Shell的内部指令、运行环境等会有所区别v执行脚本文件§方法一:脚本文件路径§方法二:sh脚本文件路径§方法三:source..
分类:
其他好文 时间:
2014-05-15 00:32:51
阅读次数:
393
描述把文本读出的API,在手机上测试知识支持英文,中文库应该没有所以不支持
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce...
分类:
移动开发 时间:
2014-05-14 21:34:49
阅读次数:
435
{
"cmd":["g++","${file}","-o","${file_path}/${file_base_name}"],
"file_regex":"^(..[^:]*):([0-9]+):?([0-9]+)?:?(.*)$",
"working_dir":"${file_path}",
"selector":"source.c,source.c++",
"encoding":"cp936",
"variants":
[
{
"name":"Run",
"shell":true,
"cmd":["st..
分类:
编程语言 时间:
2014-05-14 17:25:25
阅读次数:
300