摘要: pycurl是个用c语言实现的python 库,虽然据说不是那么pythonic,但是却很高效,它支持的协议居多: supporting FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FILE and LDAP. libcurl supports HTT 阅读全文
posted @ 2016-08-18 23:29 艾丽娅的猫 阅读(193) 评论(0) 推荐(0) 编辑
摘要: size_t GetFileSize(FILE* file) { fseek(file, 0, SEEK_END); return static_cast(ftell(file)); } std::string ReadEntireFile(FILE* file) { const size_t file_size = GetFileSize(file); char* const... 阅读全文
posted @ 2016-05-22 00:25 艾丽娅的猫 阅读(414) 评论(0) 推荐(0) 编辑
摘要: Q.I have access rights to one of the remote server through SSH protocol and there is no File share services such asSamba, NFS or FTPetc which are enab... 阅读全文
posted @ 2015-08-26 14:57 艾丽娅的猫 阅读(222) 评论(0) 推荐(0) 编辑
摘要: Connecting to a server across the internet is much more secure using SSH. There is a way that you can mount a folder on a remove server using the SSHF... 阅读全文
posted @ 2015-08-19 11:45 艾丽娅的猫 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 1)安装dh_make如下: sudo apt-get intasll aptitude sudo aptitude install dh_make 2)以jsoncpp为例,说明如何生成debian包信息 下载jsoncpp源码(一个jsoncpp目录)并打包,tar zxvf jsoncpp-1 阅读全文
posted @ 2015-08-17 17:21 艾丽娅的猫 阅读(1005) 评论(0) 推荐(0) 编辑
摘要: 使用自己封装的so时遇到了点问题,本着简便原则决定写个demo看看,顺便记录下整个过程。1)生成so所需的文件如下:print.h#ifndef __print_h__#define __print_h__void print(void);#endifprint.cpp#include #inclu... 阅读全文
posted @ 2015-07-23 16:56 艾丽娅的猫 阅读(371) 评论(0) 推荐(0) 编辑
摘要: fwrite和fread是以记录为单位的I/O函数,fread和fwrite函数一般用于二进制文件的输入输出。#include size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream);size_t fwrite(const v... 阅读全文
posted @ 2015-07-14 17:03 艾丽娅的猫 阅读(2971) 评论(0) 推荐(0) 编辑
摘要: 背景本文档介绍在unbuntu环境下如何安装ICE,并用C++写一个ICE应用ICE简介ICE是ZEROC的开源通信协议产品,它的全称是:The Internet Communications Engine,翻译为中文是互联网通信引擎,是一个流行的面向对象的工具包,使我们能够以最小的代价构建分布式应... 阅读全文
posted @ 2015-07-06 18:17 艾丽娅的猫 阅读(868) 评论(2) 推荐(1) 编辑
摘要: C开源项目学习 原文:戳这里 1. We... 阅读全文
posted @ 2015-06-04 15:13 艾丽娅的猫 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 原文出处:点击我:)1.第一段代码#includeusing namespace std;class ClxBase{public:ClxBase() {};~ClxBase() {cout DoSomething();delete p;return 0;}运行结果:Do something in ... 阅读全文
posted @ 2015-04-19 10:44 艾丽娅的猫 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 本文来自于:程序师作为一个命令行探索者,你或许发现你自己一遍又一遍重复同样的命令。如果你总是用ssh进入到同一台电脑,如果你总是将一连串命令连接起来,如果你总是用同样的参数运行一个程序,你也许希望在这种不断的重复中为你的生命节约下几秒钟。解决方案是使用一个别名(alias)。正如你可能知道的,别名用... 阅读全文
posted @ 2015-04-05 14:31 艾丽娅的猫 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 最近在看c语言的书,觉得还蛮有意思,有点收获,收集了几个优美的小程序,与君共赏!1)将10进制数装换为任意进制数的小函数char *baseconv(unsigned int num, int base){ static char retbuf[33]; char *p; if(b... 阅读全文
posted @ 2014-11-08 15:58 艾丽娅的猫 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 老郑当年在《千万别学英语》书中总结了五个阶段的要领,但是很多地方并不完善、圆满,也不符合实际的学习操作实践过程。小程我结合自己这么多年的经验、心得,将其进行了全方位的修改、删减和添加。现在重新出炉了一份新的《千万别学英语》五个阶段要领,这份要领更加全面、详细、有针对性,希望对每位学友,尤其是刚刚起... 阅读全文
posted @ 2014-11-07 23:58 艾丽娅的猫 阅读(4681) 评论(1) 推荐(1) 编辑
摘要: 本文作者为: 大司马大将军--------------------------------------------------------常常看到所谓的XX岁之前应该读到的X本书之类的书单。我认为每个人的阅历不同,追求不同,对生活的态度不同,即便是面对同一件事情都会有不同甚至截然相反的追求,读一本书... 阅读全文
posted @ 2014-09-11 17:34 艾丽娅的猫 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 对于以下变量定义,以下表达式正确的是:( )struct node{ char s[10]; int k;}p[4];A.p->k=2 B.p[0].s="abc" C.p[0]->k=2 D.p->s='a'解答:这个题里,p是指针,指向p[0]... 阅读全文
posted @ 2014-09-07 13:31 艾丽娅的猫 阅读(273) 评论(0) 推荐(0) 编辑