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
The modernization of world had led to coming of
many businesses online. Businesses have realized the importance of coming up
online. That is the main ...
分类:
其他好文 时间:
2014-05-15 10:14:55
阅读次数:
364
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
一、设置MyEclipse的字符编码,步骤如下:
1、进入Window--Preferences--General--Workspace,Text file encoding 选项中默认的Default(GBK)选项更改为Other,并将值设为utf-8;
2、进入Window--Preferences--MyEclipse--Files and Editors,将这个选项下面的:ASP ...
分类:
数据库 时间:
2014-05-15 04:18:55
阅读次数:
299
描述把文本读出的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
1 首先是try,catch getMessage();}function
file_open($path){ if(!file_exists($path)) //如果文件无法找到,抛出异常对象 { throw new
Exception("文件无法找到", 1); } if(!f...
分类:
Web程序 时间:
2014-05-14 13:19:14
阅读次数:
427
突然之间,我的VS2010在编译的时候出现了如上的错误,赶紧度之。有以下解决方法:在电脑里面搜索发现C:\Program Files\Microsoft
Visual Studio 10.0\VC\binC:\Windows\winsxs\x86_netfx-cvtres_for_vc_and_vb...
分类:
其他好文 时间:
2014-05-14 12:37:07
阅读次数:
292