最近项目中需要实现一个服务器宕机后短信提醒的功能,个人觉得在使用Python 写http请求这块很方便,发短信这块就使用了python,但是c++程序中调用这个脚本时,编译不通过,提示如下错误: error LNK2001: 无法解析的外部符号 __imp_PyString_FromStringer ...
分类:
编程语言 时间:
2017-05-09 12:32:06
阅读次数:
2724
[AR2-GigabitEthernet0/0/0]disvrrpbTotal:2Master:0Backup:0Non-active:2VRIDStateInterfaceTypeVirtualIP----------------------------------------------------------------1InitializeGE0/0/0Normal172.16.1.2542InitializeGE0/0/0Normal172.16.1.253<AR2>disvrrpbri..
分类:
其他好文 时间:
2017-05-08 18:37:42
阅读次数:
214
一、load 和 initialize 1、load ①、在load中使用其他类是不安全的,因为其它类不一定加载完毕; ②、load方法不遵循继承规则,也就是说,如果某个类没有实现load方法,那么不管这个类的所有超类是否实现了这个方法,这个类都不会调用load; ③、如果类和分类都实现了load方 ...
分类:
其他好文 时间:
2017-05-07 14:05:59
阅读次数:
148
var mapper = config.CreateMapper();// orIMapper mapper = new Mapper(config);var dest = mapper.Map<Source, Dest>(new Source()); Mapper.Initialize(cfg = ...
分类:
移动开发 时间:
2017-05-06 19:54:10
阅读次数:
208
hibernate懒加载的问题,failed to lazily initialize a collection of role hibernate懒加载的问题,failed to lazily initialize a collection of role,有需要的朋友可以参考下。 今天往项目里添 ...
分类:
Web程序 时间:
2017-05-06 10:34:59
阅读次数:
218
卸载mysql-python,改为安装 mysqlclient 最新版, windows下安装则 http://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient 下载,然后就支持了 参考资料: 1、http://blog.csdn.net/wzqnls/ ...
分类:
数据库 时间:
2017-05-05 21:45:36
阅读次数:
618
Connect Yubikey ,then initialize YubiKey slot 2: Create /var/yubico directory for challenge file. TIPs: xiaoxiaoleo is the login user name. add pam co ...
分类:
其他好文 时间:
2017-05-04 14:40:16
阅读次数:
196
1. make_shared<T>(args): return a shared_ptr dynamically allocated object of type T. Use args to initialize the object. shared_ptr<T> p(q): p is a cop ...
分类:
编程语言 时间:
2017-04-30 21:29:43
阅读次数:
229
网上提供了一种解决方法就是在session_start()前把session的存储方式改为files,即加入以下一句代码 if (ini_get('session.save_handler') !== 'files') ini_set('session.save_handler','files'); ...
分类:
其他好文 时间:
2017-04-26 13:12:41
阅读次数:
139
从render_view_impl.cc開始说起。 1. 方法RenderViewImpl::Initialize中有: WebLocalFrame* web_frame = WebLocalFrame::create(main_render_frame_.get()); 这里会创建WebLocal ...
分类:
Web程序 时间:
2017-04-25 21:35:08
阅读次数:
244