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
// 创建保存照片文件夹
private void CreateFileJPG() {
File file = new File("/sdcard/image");
if (!file.exists()) {
try {
file.mkdirs();
} catch (Exception e) {
// TODO: handle exceptio...
分类:
移动开发 时间:
2014-05-15 06:39:58
阅读次数:
434
#include
#include
#include
#include
using namespace std;
#ifdef ONLINE_JUDGE
#define FINPUT(file) 0
#define FOUTPUT(file) 0
#else ...
分类:
其他好文 时间:
2014-05-15 06:27:05
阅读次数:
230
VS2012 error : Required file tracker.exe is missing 解决办...
分类:
其他好文 时间:
2014-05-15 05:44:18
阅读次数:
348
给老婆写了一份速成培训教材——最常用的命令及解释。当然每个人工作内容不同,常用命令也不同,这只是我的个人经验,而且要考虑到接受者的基础。
ls:列出目录下的内容,类似于dos下的dir。
常用参数有:
ls –l,逐行显示详细内容;
ls –a, 显示隐藏的文件或目录;——linux下,前缀为.的文件名和目录名即被默认为是隐藏文件
参数也可以组合ls –al ,详细...
分类:
系统相关 时间:
2014-05-15 05:33:12
阅读次数:
504
在项目里需要运行本地文件或者应用,JDK6后就新增Desktop类,可以直接使用。这样就可以在程序里可以打开任何应用。比如:打开的是pdf文件,本地默认打开是福昕,程序运行的时候就会使用福昕打开pdf文件。
package test;
import java.awt.Desktop;
import java.io.File;
public class DesktopTest {
public...
分类:
编程语言 时间:
2014-05-15 04:40:03
阅读次数:
267
一、设置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
window->preference->General->workspace->Text file encoding->utf-8->Apply->ok
project->clean...
分类:
其他好文 时间:
2014-05-15 03:48:15
阅读次数:
320
(null): File is universal (3 slices) but does not contain a(n) armv7s slice: /Users/robin/Documents/Project/ZBarApp/ZBarApp/ZBarSDK/libzbar.a file '/Users/robin/Documents/Project/ZBarApp/ZBarApp/ZBarS...
分类:
其他好文 时间:
2014-05-15 03:13:59
阅读次数:
397
mysql5.6.14配置my.cnf多实例,mysql_install_db初始化不读取my.cnf配置文件
[ERROR] InnoDB: auto-extending data file ./ibdata1 is of a differentsize 768 pages (rounded down to MB) than specified in the .cnf file: initial65536 pages, max 0 (relevant if non-zero) pages!
2014-0...
分类:
数据库 时间:
2014-05-14 14:20:48
阅读次数:
412