自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(19)
  • 收藏
  • 关注

原创 禁止ip直接访问

ngnix:server{listen 80 defau}

2014-11-12 16:53:09 416

转载 apache 301重定向

因为博客是使用了www.php100.com作为博客域名,所以想实现php100.com全部重定向(跳转)到www.php100.com。同时按照google的建议,使用服务器端 301 重定向,为了确保用户及搜索引擎定向至正确网页的最佳方法。301 状态代码表示某网页已被永久迁移至新位置。下面将了解一下apache下实现301永久性重定向2个方法,需要具有访问服务器的 .htaccess 文件的

2014-11-11 18:00:26 292

原创 centos pip 安装

先装zlib:cd /usr/Python-2.7.2/Modules/zlib./configure make && make install

2014-11-06 18:33:59 349

原创 nginx 301 域名跳转

假设两个域名 cai.com www.cai.com,需要把所有cai.com 的访问都跳转到

2014-11-06 17:36:18 343

原创 php 小技巧

如果想了解 错误输出情况,可以

2014-11-05 17:05:10 249

转载 linux 编码

查看文件编码:file -i 笑嘻嘻

2014-11-04 14:18:02 240

转载 mysql 远程链接

1.设置防火墙1.安装 sudo apt-get install ufw 2.启用 sudo ufw enable sudo ufw default deny 运行以上两条命令后,开启了防火墙,并在系统启动时自动开启。 关闭所有外部对本机的访问,但本机访问外部正常。 3.开启/禁用 sudo ufw allow|deny [service] 

2014-10-30 12:24:20 310

原创 svn hook

SVN=/usr/bin/svnTODIR=/var/www/phpcms$SVN update --username zpp --password zpp $TODIR

2014-10-30 12:19:56 305

原创 ubuntu install svn with apache dav_svn

sudo apt-get updatesudo apt-get install subversion subversion-tools libapache2-svnsudo mkdir /home/svnsudo mkdir ~/testsudo svnadmin create /home/svn/test -m 'initial project structure'

2014-10-30 12:06:50 1060

转载 pythonpath and django settings

设置 pythonpath1.在.bashrc 文件中,

2014-09-16 15:52:41 277

原创 Lesson 6 Testing and Debugging

Test:测试一般常见的有 黑盒

2014-08-28 14:41:18 418

原创 Lesson5 Recursion

递归的精髓:只要你能想到就能做到。

2014-08-28 01:15:18 257

原创 Lesson 4 Abstraction in computer science

维基中抽象的定义:Computer scientists use abstraction to make models that can be used and re-used without having to re-write all the program code for each new application on every different type of compu

2014-08-28 00:06:40 368

原创 Lesson 3 Search algorithms

Search algorithms是最平常的算法:在某个数据结构中 查询 某个数据, 或者 search 某个值。search 是探寻的意思,不仅可以是在已经的数据中查询某个结果,也可以是在黑暗中寻找某个答案。search是探寻,是无数次的尝试,所以肯定是 Iterative algorithms.1.在已知中查询某个数据。eg:在一个字符串中查找某个字符。def sear

2014-08-27 11:03:30 388

原创 Lesson 2

Goal:       –  Need       a       way       to       describe       algorithmic       steps       such       that       computer       can       use       them       to       execute       process

2014-08-26 17:20:08 278

原创 Lesson 1

第一课主要讲述计算机一些的基本原理。首先就提出来,目标是让学生有 computational thinking.Computational Thinking is a problem-solving process that includes the following characteristics:Analyzing and logically organizing dataD

2014-08-26 17:17:10 211

原创 github ssh 设置

Step 1: Check for SSH keys$ git config --global user.name "abcd"$ git config --global user.email abcd@efgh.comFirst, we need to check for existing SSH keys on your computer. Open up your

2014-08-19 18:11:49 295

原创 how to manage complexity

1.abstraction。抽象的本质是,

2014-05-23 08:46:56 412

原创 关于“怎样成为高段位的学习者?”

学习方法有高下之分,好的xuexi

2014-05-18 21:50:33 445

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除