这里记录一下eclipse开发工具中git的使用说明。
环境:centOS,eclipse-jee-kepler-SR2-linux-gtk-x86_64.tar.gz
eclipse的使用需要依赖Java环境,这边CentOS系统里面已经安装好了JDK:
不能使用open-jdk,此版本会出现不明异常。
1、eclipse安装egit插件:
eclipse里面,help -->...
分类:
系统相关 时间:
2014-05-08 17:24:55
阅读次数:
435
双向BFS:
分别在 起点 和 终点同时进行BFS。
一般地,BFS随着层数的增加,状态数会越来越多,也就是状态数与层数呈正相关。如下图,:
若从两端同时进行BFS ,则有
显然减少的哪一些区域即为减掉的那些不必要的状态。
#include
#include
#include
#include
#include
#include
#include
#include ...
分类:
其他好文 时间:
2014-05-08 17:16:12
阅读次数:
300
直接贴代码了,不懂的地方留言讨论
package org.mark.randomaccessfile;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.RandomAccessFile;
public class RandomAccessfileDemo2 {
/**
* @param...
分类:
数据库 时间:
2014-05-08 17:15:14
阅读次数:
294
NSString *temp = [textField.text
stringByTrimmingCharactersInSet:[NSCharacterSet
whitespaceCharacterSet]];
//看剩下的字符串的长度是否为零
if ([temp
length]!=0) {
...
}...
分类:
其他好文 时间:
2014-05-08 17:14:15
阅读次数:
502
1、用户管理//查询所有分组
publicfunctionqueryGroups(){
$url="https://api.weixin.qq.com/cgi-bin/groups/get?access_token=";
$url.=$this->getacctoken();
$result=$this->cget($url);
header("Content-type:text/html;charset=utf-8");
print_r($result);
}
//创建..
分类:
微信 时间:
2014-05-08 16:45:04
阅读次数:
726
Ruby Txt 转为 CSV 通用的工具
require 'csv'
namespace :sys_file_conver do
desc "把txt数据导入到csv中"
task :txt_to_csv => :environment do
amount = 100
head_hash = {
'对账文件名称' =>[12]...
分类:
其他好文 时间:
2014-05-08 15:53:08
阅读次数:
276
今天学习java io中File类下的 RandomAccessfile,欢迎留言讨论,其他知识看api
package org.mark.randomaccessfile;
import java.io.File;
import java.io.RandomAccessFile;
/**
* 写入操作
*/
public class RandomAccessfileDemo1 {
...
分类:
数据库 时间:
2014-05-08 15:42:28
阅读次数:
357
使用VLD测有没内存泄露的时候,出现(File and line number not available): (Function name unavailable)
查看VS控制台,发现
已加载“C:/WINDOWS/system32/dbghelp.dll”
说明VS加载了WINDOWS的dll而不是最新的VLD的dbghelp.dll
解决方案:
只需把VLD 安装路径下...
分类:
其他好文 时间:
2014-05-08 15:41:04
阅读次数:
354
tar zcvf fd.tar.gz * --exclude=file1
--exclude=dir1注意:1、--exclude=file1 而不是--exclude
file12、要排除一个目录是--exclude=dir1而不是--exclude=dir1/也可以在父目录打包tar zcvf ...
分类:
其他好文 时间:
2014-05-08 14:56:53
阅读次数:
216
find . -xtype f -perm +111 -print0 | xargs -0
file | grep "ELF"
分类:
其他好文 时间:
2014-05-08 14:54:59
阅读次数:
254