07 2012 档案

摘要:#include <iostream> #include <string> #include <set> using namespace std; int main() { string name[]={"tian","dsp","sp","ti"}; set<string> setname; fo 阅读全文
posted @ 2012-07-26 16:23 Dsp Tian 阅读(793) 评论(0) 推荐(0) 编辑
摘要:#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 阅读全文
posted @ 2012-07-26 15:48 Dsp Tian 阅读(578) 评论(0) 推荐(0) 编辑
摘要:sed是一个很好的文件处理工具,本身是一个管道命令,主要是以行为单位进行处理,可以将数据行进行替换、删除、新增、选取等特定工作,下面先了解一下sed的用法sed命令行格式为: sed [-nefri] ‘command’ 输入文本 常用选项: -n∶使用安静(silent)模式。在一般 sed 的用 阅读全文
posted @ 2012-07-25 16:45 Dsp Tian 阅读(518) 评论(0) 推荐(0) 编辑
摘要:查看Ubuntu版本:cat /etc/issue查看linux内核版本:uname -a查看cpu相关信息:cat /proc/cpuinfo 阅读全文
posted @ 2012-07-22 14:29 Dsp Tian 阅读(451) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/expectset password "你的密码"spawn ssh -qTfnN -D 7070 tiandsp@216.194.70.6expect "tiandsp@216.194.70.6's password:"send "password\r"expect""send "exit\r" 阅读全文
posted @ 2012-07-22 11:38 Dsp Tian 阅读(447) 评论(0) 推荐(0) 编辑
摘要:只显示文件名:ls -l | grep ^[^d] | awk '{print $8}'只显示文件夹名:ls -l |grep ^d | awk '{print $8}' 或者是 ls -d */ 阅读全文
posted @ 2012-07-21 14:16 Dsp Tian 阅读(7822) 评论(0) 推荐(0) 编辑
摘要: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. 阅读全文
posted @ 2012-07-16 17:02 Dsp Tian 阅读(15283) 评论(1) 推荐(1) 编辑
摘要:1,查询未停止的工作shell:jobs2,杀死进程shell:kill %1(1是进程列表的编号。进程在列表中排第几,编号就是第几)3,你也可以激活进程shell:fg %1(1是进程列表的编号。进程在列表中排第几,编号就是第几) 阅读全文
posted @ 2012-07-16 12:16 Dsp Tian 阅读(533) 评论(0) 推荐(0) 编辑
摘要::bd 阅读全文
posted @ 2012-07-15 14:25 Dsp Tian 阅读(639) 评论(0) 推荐(0) 编辑
摘要:从vim复制到系统粘贴板:进入visual模式下选中文字,然后左手一直按住shift,然后依此按 “+y从系统粘贴板复制到vim:先再网页上随便复制个文字,打开vim,进入normal模式,然后左手一直按住shift,然后依次按 “+p 阅读全文
posted @ 2012-07-15 12:27 Dsp Tian 阅读(599) 评论(0) 推荐(0) 编辑
摘要:find / -name filename 阅读全文
posted @ 2012-07-15 10:05 Dsp Tian 阅读(464) 评论(0) 推荐(0) 编辑
摘要:dpkg -i ./packagename.deb 阅读全文
posted @ 2012-07-11 23:59 Dsp Tian 阅读(396) 评论(0) 推荐(0) 编辑
摘要:alt+F10 最大化alt+F5 复原alt+F9 最小化 阅读全文
posted @ 2012-07-11 18:04 Dsp Tian 阅读(339) 评论(0) 推荐(0) 编辑
摘要:ctrl+w+w的确是按两次w 阅读全文
posted @ 2012-07-11 13:17 Dsp Tian 阅读(1533) 评论(0) 推荐(0) 编辑
摘要:用的是omni-competiongvim再插入状态下:ctrl+n 打开下拉窗口ctrl+p 向上切换成员ctrl+n 向下切换成员ctrl+e 关闭下拉窗口ctrl+y 关闭下拉窗口,并使用当前选项 阅读全文
posted @ 2012-07-11 12:37 Dsp Tian 阅读(2454) 评论(1) 推荐(0) 编辑
摘要:df -lh 阅读全文
posted @ 2012-07-10 13:10 Dsp Tian 阅读(422) 评论(0) 推荐(0) 编辑
摘要:如果不知道配置文件及脚本的位置,可以在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"""""& 阅读全文
posted @ 2012-07-10 12:56 Dsp Tian 阅读(1974) 评论(0) 推荐(0) 编辑
摘要:rm -rf 目录 阅读全文
posted @ 2012-07-09 18:13 Dsp Tian 阅读(433) 评论(0) 推荐(0) 编辑
摘要:ctrl+alt+t 阅读全文
posted @ 2012-07-09 11:54 Dsp Tian 阅读(501) 评论(0) 推荐(0) 编辑
摘要:#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, 阅读全文
posted @ 2012-07-09 09:40 Dsp Tian 阅读(684) 评论(0) 推荐(0) 编辑
摘要:#!/bin/bash s=0 for ((i=1;i<=100;i=i+1)) do ((s=s+i)) done echo sif[s -eq 5050 ] then echo "right" else echo "wrong" fi i=0 s=0 while [ $i -le 阅读全文
posted @ 2012-07-08 20:26 Dsp Tian 阅读(601) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2012-07-04 22:07 Dsp Tian 阅读(4042) 评论(0) 推荐(1) 编辑
摘要: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* 阅读全文
posted @ 2012-07-04 15:19 Dsp Tian 阅读(11399) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示