
综合
Superr爬爬虫
博观而约取,厚积而薄发
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
UML 类图
类之间的关系主要有四种关系:泛化(Generalization)、实现(Realization)、依赖(Dependency)和关联(Association),其中关联又分为聚合关系(Aggregation) 和组合关系(Composition)。 泛化(generalization):表示is-a的关系,是对象之间耦合度最大的一种关系,子类继承父类的所有细节在类图中使用带三角箭头的实线表示,原创 2012-06-10 12:48:48 · 1237 阅读 · 0 评论 -
Jenkisn + Tomcat7 + Ubuntu12.04 server
1. sudo apt-get install tomcat7 In this case, here are the paths you might care about: /var/lib/tomcat6 – These are the Java-y files for Tomcat. If you were to just extract Tomcat’s tar file and原创 2013-11-25 10:50:14 · 3814 阅读 · 0 评论 -
Django Apache2 配置
在配置Django 与Apache2 过程中遇到的问题,以及总结的解决方案 Bug#1 attempt to write a readonly 原因:放sqlite.db的文件夹及文件,没有访问权限。 解决方案: sudo chown www-data. sqlite.db Bug#2 Invalid command 'RewriteEngine', perhaps原创 2013-09-11 14:51:25 · 1906 阅读 · 0 评论 -
git安装
环境:Ubuntu 10.10 1) APT-GET sudo apt-get install git 2)通过源码安装 由于Ubuntu10.10 上git 版本为1.7.1 觉得版本有点低,换一个高点版本的git a)下载源码包: wget https://git-core.googlecode.com/files/git-1.8.1.2.t原创 2013-05-24 11:47:26 · 780 阅读 · 0 评论 -
告别手写 API文档生成工具推荐
http://www.csdn.net/article/2013-02-20/2814189-API_DOC_TOOLS 随着API的发展以及需求的日益增加,对API文本文档的需求与随之而来。相信许多开发人员都遇到过编写API文档方面的问题及烦恼。 你是否还通过手写的方式来生成和编写这些文档呢?那么你就OUT啦!话说工欲善其事必先利其器,本文分享8款非常好的API文档生成工转载 2013-02-20 15:13:14 · 1398 阅读 · 0 评论 -
Base64 编码
Base64要求把每三个8Bit的字节转换为四个6Bit的字节(3*8 = 4*6 = 24), 然后把6Bit再添两位高位0,组成四个8Bit的字节,也就是说,转换后的字符串,在理论上将要比原来的长1/3。 编码的规则: 1.把3个字符变成4个字符。 2.每76个字符加一个换行符。 3.最后的结束符也要处理。 如果最后剩下两个输入数据,在编码结果后加1个“=”; 如果最后剩原创 2013-01-14 19:25:07 · 1210 阅读 · 0 评论 -
Latex 安装 & Hello World
环境Ubuntu 10.04(64) Step1 sudo apt-get install texlive-full Step2 sudo apt-get install texlive-base texlive-binaries texlive-common texlive-latex-base texlive-publishers texlive-music texlive-latex原创 2012-12-10 17:22:08 · 2289 阅读 · 0 评论 -
Function 与 Functor 区别
转:http://blog.sina.com.cn/s/blog_54b8fc360100bhxd.html Function几乎是任何语言的元素之一,从Pascal,Fortran到C++,VB,几乎任何时代的语言都支持它。在C++里,随着 C++标准库的推出,人们开始渐渐的接触到另一种定义函数的方式:Functor。所谓Functor,其实就是重载了operator () 的类,其使用方转载 2012-10-27 20:35:11 · 1358 阅读 · 0 评论 -
bash脚本,自动输入sudo的密码
解决方法: echo + | (管道) 开始使用 echo "admin" | sudo service tomcat7 stop 始终提示输入密码 后来查看了下sudo命令的使用 man sudo 发现有如下的解释: -S The -S (stdin) option causes sudo to read the password f原创 2013-12-26 11:31:13 · 36023 阅读 · 3 评论