07 2012 档案
摘要:#include <iostream> #include <string> #include <set> using namespace std; int main() { string name[]={"tian","dsp","sp","ti"}; set<string> setname; fo
阅读全文
摘要:#pragma warning (disable:4786)#include <string>#include <iostream>#include <map>using namespace std;int main(){ string name[]={"tian","dsp","su","chu"}; map<int,string> mapname; for (int i=0;i<4;i++) { mapname.insert(pair<int,stri
阅读全文
摘要:sed是一个很好的文件处理工具,本身是一个管道命令,主要是以行为单位进行处理,可以将数据行进行替换、删除、新增、选取等特定工作,下面先了解一下sed的用法sed命令行格式为: sed [-nefri] ‘command’ 输入文本 常用选项: -n∶使用安静(silent)模式。在一般 sed 的用
阅读全文
摘要:查看Ubuntu版本:cat /etc/issue查看linux内核版本:uname -a查看cpu相关信息:cat /proc/cpuinfo
阅读全文
摘要:#!/usr/bin/expectset password "你的密码"spawn ssh -qTfnN -D 7070 tiandsp@216.194.70.6expect "tiandsp@216.194.70.6's password:"send ""send "exit\r"
阅读全文
摘要:只显示文件名:ls -l | grep ^[^d] | awk '{print $8}'只显示文件夹名:ls -l |grep ^d | awk '{print $8}' 或者是 ls -d */
阅读全文
摘要:HSoptflow.mfunction [us,vs] = HSoptflow(Xrgb,n)%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Author: Gregory Power gregory.power@wpafb.af.mil% This MATLAB code shows a Motion Estimation map created by% using a Horn and Schunck motion estimation technique on two% consecutive frames.
阅读全文
摘要:1,查询未停止的工作shell:jobs2,杀死进程shell:kill %1(1是进程列表的编号。进程在列表中排第几,编号就是第几)3,你也可以激活进程shell:fg %1(1是进程列表的编号。进程在列表中排第几,编号就是第几)
阅读全文
摘要:从vim复制到系统粘贴板:进入visual模式下选中文字,然后左手一直按住shift,然后依此按 “+y从系统粘贴板复制到vim:先再网页上随便复制个文字,打开vim,进入normal模式,然后左手一直按住shift,然后依次按 “+p
阅读全文
摘要:dpkg -i ./packagename.deb
阅读全文
摘要:alt+F10 最大化alt+F5 复原alt+F9 最小化
阅读全文
摘要:用的是omni-competiongvim再插入状态下:ctrl+n 打开下拉窗口ctrl+p 向上切换成员ctrl+n 向下切换成员ctrl+e 关闭下拉窗口ctrl+y 关闭下拉窗口,并使用当前选项
阅读全文
摘要:如果不知道配置文件及脚本的位置,可以在vim中使用命令:scriptnames,将显示如下路径/etc/vimrc/usr/share/vim/vim72/syntax/syntax.vim/usr/share/vim/vim72/syntax/synload.vim/usr/share/vim/vim72/syntax/syncolor.vim/usr/share/vim/vim72/filetype.vim/usr/share/vim/vim72/ftplugin.vim/home/kdj/.vimrc~$ cat .vimrc"""""&
阅读全文
摘要:#include <iostream>#include <string>#include <boost/program_options.hpp>int main(int argc,char **argv){ namespace po = boost::program_options; po::option_description desc("allowed options"); desc.add_options() ("help,h", "help message") ("version,
阅读全文
摘要:#!/bin/bash s=0 for ((i=1;i<=100;i=i+1)) do ((s=i)) done echo s -eq 5050 ] then echo "right" else echo "wrong" fi i=0 s=0 while [ $i -le
阅读全文
摘要:clear all;close all;clc;img=imread('lena.jpg');img=im2bw(img,graythresh(img));imshow(img)[height width]=size(img);img_re=zeros(height,width);temp=[];for i=2:height-1 %腐蚀 for j=2:width-1 temp=img(i-1:i+1,j-1:j+1); img_re(i,j)=min(temp(:)); endendfor i=2:height...
阅读全文
摘要:clear all; close all; clc; n=40; point=load('point.mat'); current_point=point.point; plot(current_point(:,1),current_point(:,2),'r'); %系统方程:x(k+1)=fi*
阅读全文