- 博客(25)
- 资源 (1)
- 收藏
- 关注
转载 Cstring中的 Find()、Mid()、Replace() 用法
1、 CString::Find 在一个较大的字符串中查找字符或子字符串 ,返回此CString对象中与需要的子字符串或字符匹配的第一个字符的从零开始的索引;如果没有找到子字符串或字符则返回-1。[cpp] view plain copyint Find( TCHAR ch ) const; [cpp] v
2016-11-29 11:09:11 24032
转载 vc++调用exe时,如何获取exe的输出信息
最进在写一个程序,需要调用一个第三方的console程序,并获取其处理的结果,调用exe的方法有很多,可是如何调用了exe然后取到exe的输出信息就是个问题了,试了很多函数,好像都实现不了。百度了一下,找到篇文章:http://social.microsoft.com/Forums/id-ID/visualcpluszhchs/thread/70fc59b7-6e2d-44e2-9
2016-11-28 18:23:59 7497
转载 vc中调用其他应用程序的方法(函数) winexec,shellexecute ,createprocess
目前知道三种方式:WinExec,ShellExecute ,CreateProcess,别人已经总结的很好了《vc中调用其他应用程序的方法(函数) winexec,shellexecute ,createprocess》,我全文转载一下,另外后面加点自己的总结(黑体部分,除了标题)。三个SDK函数: WinExec,ShellExecute ,CreateProcess可以实现调用其他程
2016-11-28 18:19:24 6823
原创 ubuntu 防火墙使用
1. 安装防火墙sudo apt-get install ufw2. 启用防火墙sudo ufw enable3. 禁用防火墙sudo ufw disable4. 允许80端口sudo ufw allow 805. 禁止80端口sudo ufw delete allow 806. 允许指定IP访问sudo ufw allow from 192.168.1
2016-11-24 11:09:12 6771
原创 VS2010静态编译生成exe可执行文件
debug版1、项目->配置属性->常规->MFC的使用:在静态库中使用MFC2、项目 -> 配置属性->C/C++->代码生成->运行库 :选择 多线程调试(/MTd) release版1.项目 -> 配置属性->常规->MFC的使用 :在静态库中使用MFC2.项目 -> 配置属性->C/C++->代码生成->运行库 :选择 多线程调试(/MT)
2016-11-22 17:35:30 8618
原创 dlib安装
1. 下载dlib git clone https://github.com/davisking/dlib.git2. 编译安装dlibcd dlibmkdir build && cd build && cmake .. && make -j8sudo make install
2016-11-21 23:04:00 8439
原创 ubuntu mysql 安装和外网访问配置
1. sudo apt-get install mysql-server 2. 公网访问配置mysql -u root -puse mysql;所有主机能够访问GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'you_password' WITH GRANT OPTION;flush privil
2016-11-21 15:20:58 7585
原创 Training LeNet on MNIST with Caffe
1. 下载数据集cd $CAFFE_ROOT./data/mnist/get_mnist.sh./examples/mnist/create_mnist.shIf it complains that wget or gunzip are not installed, you need to install them respectively. After runnin
2016-11-21 14:54:33 6369
原创 The following signatures couldn't be verified because the public key is not available
安装第三方源:W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 2EA8F35793D8809A解决方法:sudo
2016-11-21 14:43:54 9805 1
原创 TX1 安装 ROS Indigo
Ubuntu ARM install of ROS IndigoThere are currently builds of ROS for Ubuntu Trusty armhf. These builds include most but not all packages, and save a considerable amount of time compared to doin
2016-11-21 14:24:08 8618 3
原创 configure未识别的类型,获取最新的config.guess config.sub
cd ~wget -O config.guess 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD'wget -O config.sub 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=c
2016-11-21 13:10:49 15179
原创 TX1 caffe编译
1. 安装所需软件sudo apt-get install cmake git aptitude screen g++ libboost-all-dev \ libgflags-dev libgoogle-glog-dev protobuf-compiler libprotobuf-dev \ bc libblas-dev libatlas-dev libhdf5-dev
2016-11-21 12:00:21 6576
原创 ubuntu 查看CPU信息
查看CPU个数cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l查看CPU核数cat /proc/cpuinfo| grep "cpu cores"| uniq查看逻辑CPU个数cat /proc/cpuinfo| grep "processor"| wc -l
2016-11-21 11:53:22 6404
原创 ffmpeg av_register_all release版 异常
ffmpeg av_register_all release版 异常退出属性->Linker->Optimization->ReferencesKeep Unreferenced Data(/OPT:NOREF)
2016-11-21 11:28:09 6921 1
转载 NVIDIA-TX1 刷机--填坑指南
转载自http://blog.csdn.net/q6324266/article/details/52191499本文是将TX1的板子刷成32位ubuntu系统。实测64位的ubuntu系统在运行caffe时候会有未知错误(英伟达版本的caffe),最后无奈只能刷32位系统,或许其他版本的caffe能使用64位系统,这个本人尚未验证。建议不要下载英伟达版本caffe,太多坑了。
2016-11-21 00:13:24 8947
原创 ubuntu arm 源地址
deb http://mirrors.ustc.edu.cn/ubuntu-ports trusty main universe restricted multiverse deb http://mirrors.ustc.edu.cn/ubuntu-ports trusty-security main universe restricted multiverse deb http:
2016-11-20 23:02:06 10043
原创 elasticsearch 5.0 版本安装head插件
1. 在 elasticsearch.yml 文件增加配置http.cors.enabled: truehttp.cors.allow-origin: "*"2. 下载插件git clone git://github.com/mobz/elasticsearch-head.git3.安装插件cd elasticsearch-headapt-get ins
2016-11-02 20:31:47 9406
原创 安装cunn出错
运行 luarocks install cunn出现make[1]: *** [lib/THC/CMakeFiles/THC.dir/all] 错误 2解决方法:进入torch目录,执行 git pull, 然后运行 ./install.sh
2016-11-01 21:57:29 7189
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人