海角望天涯

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年9月13日

摘要: 原文地址http://www.zhizhihu.com/html/y2012/3922.htmlBig Data Linkshare是订阅的一个邮件列表,忘了怎么订阅的了。但是里面的东西挺好的。这一期的内容很精彩啊很精彩。版权:Copyright © 2012 Israeli Big Data Linkshare, All rights reserved.The past few weeks had been too hectic to find time for writing the newsletter. I hope going forward I'll be abl 阅读全文
posted @ 2012-09-13 11:04 海角望天涯 阅读(392) 评论(0) 推荐(0) 编辑

2012年9月12日

摘要: #include<boost/filesystem.hpp>#include<boost/filesystem/operations.hpp>#include<boost/filesystem/path.hpp>namespacefs=boost::filesystem;template<classFun>voidtraverse(conststd::string&path,Funfun){fs::pathdir(path);if(fs::exists(dir)){fs::directory_iteratoritem_begin(dir) 阅读全文
posted @ 2012-09-12 10:35 海角望天涯 阅读(348) 评论(0) 推荐(0) 编辑

2012年9月11日

摘要: PDF of the slides:http://www.cs.nyu.edu/~yann/talks/lecun-20120629-icml.pdf视频链接:http://techtalks.tv/talks/57646/ 阅读全文
posted @ 2012-09-11 21:30 海角望天涯 阅读(211) 评论(0) 推荐(0) 编辑

2012年9月10日

摘要: 想判断一个shared_ptr是否为空,去http://en.cppreference.com/w/cpp/memory/shared_ptr链接找了接口函数,未发现接口判断是否为空。最后发现很简单,可以直接用if判断来实现。经@egmkang指出是重载了operator bool。 std::shared_ptr<cv::Mat>pMat(newcv::Mat);if(!pMat){std::cout<<"error"<<std::endl;}else{std::cout<<"correct"<&l 阅读全文
posted @ 2012-09-10 18:07 海角望天涯 阅读(17534) 评论(4) 推荐(2) 编辑