说明:分三步, 1. 每个节点复制其本身并链接在后面。 2, 复制随机指针。 3, 拆分链表。
分类:
其他好文 时间:
2014-08-10 03:53:09
阅读次数:
219
/***@author cody*@date 2014-08-09*@description copy text file* FILE *fopen(filename,openmode)* fclose(FILE *stream)* int fseek(stream,offset,whence)* ...
分类:
编程语言 时间:
2014-08-09 18:13:59
阅读次数:
271
相关的方法:int fputs(const char*s,FILE *stream);int gets(char *s,int size,FILE *stream);具体代码如下/***@author cody*@date 2014-08-09*@description copy text file...
分类:
其他好文 时间:
2014-08-09 18:09:58
阅读次数:
207
软件lamp目录结构:
files:存文件的,ansible默认就会到这里目录去找文件,对应task里面的copy模块
tasks:存放tasks的
handlers:存放handlers
templates:存放模板,对应task里面的模块template
vars:这里面定...
分类:
其他好文 时间:
2014-08-09 16:04:58
阅读次数:
223
创建YUM仓库1.将所有rpm文件copy到一个文件中/linux.yum2.通过rpm命令手工安装createrepo软件3.运行createrepo-v/rpm-directory例如:我把rpm拷贝到/linux-yum当中,就先cd/linux-yum然后再用createrepo.(当前的所有文件)。4.在/etc/yum.repos.d目录下创建一个linux-yum.repo(..
分类:
其他好文 时间:
2014-08-08 18:30:46
阅读次数:
213
IPython Basics 首先比一般的python shell更方便一些 比如某些数据结构的pretty-printed,比如字典 更方便的,整段代码的copy,执行 并且可以兼容部分system shell , 比如目录浏览,文件操作等 Tab Completion 这个比较方便,可以在下面的...
分类:
编程语言 时间:
2014-08-08 17:42:36
阅读次数:
258
Permission is hereby granted, free of charge, to any person obtaininga copy of this software and associated documentation files (the"Software"), to de...
分类:
Web程序 时间:
2014-08-08 17:28:26
阅读次数:
393
调用代码一: [javascript] view plain copy print ? var?monthField?=?new?Ext.ux.MonthField({????? ????id:‘month‘,????? ????fieldLabel:?‘月份‘,????? ????allowBlank:fals...
分类:
Web程序 时间:
2014-08-08 16:39:16
阅读次数:
556
写博客就是一周工作中遇到哪些问题,一个优点就是能够进行一个总结,另外一个优点就是下次遇到相同的问题即使那你记不住,也能够翻看你的博客攻克了。相同也能够帮到别人遇到与你一样问题的人。或者别人有比你更好的解决的方法,能够一起讨论,分析出更好的解决方法。所以这是个好习惯。既然是好习惯,那就得坚持。可是想写...
分类:
Web程序 时间:
2014-08-08 16:01:06
阅读次数:
258
地址:http://thobian.info/?p=1367 题目可能有点标题党,毕竟下面要说到的只是nginx在比较特殊的环境才回出现的500情况。 先说下自己的开发环境: WEB服务器:nginx,搭在本地虚拟机(虚拟机是直接copy过来的) 开发工具:zend studio(这个其实没什么好说...
分类:
其他好文 时间:
2014-08-08 15:53:16
阅读次数:
1612