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
在一个有reurn 返回值的函数里 如果申请了一段内存的话(alloc 或者copy) 这个时候不能够release 只能够使用autorelease
在返回到那个被接受到的指针里,由它去进行释放!!
如果是self.obj(或者某些类对应的 SomeClass.obj)这种类型的,就需要把self.去掉(因为这样子的申请出来的内存引用计数会被retain+1了)
...
分类:
移动开发 时间:
2014-05-15 04:40:44
阅读次数:
369
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
2014-5-14:今天来公司突然发现mysql数据库不同步;方法一:slavestop;
setglobalsql_slave_skip_counter=1;
slavestart;
showslavestatus\G;跳过一个事件event方法二:1.查看从服务器的状态showslavestatus\G记录下maser_log_file和read_master_log_pos记录下这两个值Master_L..
分类:
其他好文 时间:
2014-05-14 17:51:08
阅读次数:
286
staticint_osip_message_parse(osip_message_t*sip,constchar*buf,size_tlength,intsipfrag){inti;constchar*next_header_index;char*tmp;char*beg;tmp=osip_malloc(length+2);if(tmp==NULL){OSIP_TRACE(osip_trace(__FILE__,__LINE__,OSIP_ERROR,NULL,"Couldnotallocatememory..
分类:
其他好文 时间:
2014-05-14 16:06:25
阅读次数:
296
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