Mysql默认关闭远程登录权限,如下操作允许用户在任意地点登录: ????????1. 进入mysql,GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘‘ WITH GRANT OPTION;IDENTIFIED BY后跟的是密码,可设...
分类:
数据库 时间:
2014-08-28 13:27:21
阅读次数:
233
sudo apt-get install python-software-properties sudo apt-add-repository ppa:dominik-stadler/subversion-1.7 sudo apt-get updatesudo? apt-get install subversion...
分类:
其他好文 时间:
2014-08-28 13:27:00
阅读次数:
200
今天有同事说道闭包,查了下Python中的闭包,看到下面这边文字,记录备查: 闭包这个概念在很多语言中都有涉及,本文主要谈谈python中的闭包。Python中使用闭包主要是在进行函数式开发时使用。 一,定义 python中...
分类:
编程语言 时间:
2014-08-28 13:26:29
阅读次数:
322
Python在2.6版本新引进了多进程机制
一、 简介
多进程在Python中是一个包,它支持使用和线程模块类似的API来创建进程。
多进程包支持本地和远程并发,并有高效的GIL锁机制。
因为这些原因,多进程模块允许程序员在指定机器上实现完整的多进程开发,无论是Unix还是Windows.
Warning:
这个包的某些功能要求在运行的OS上能实现共享信号量机制,
如果没有这个...
分类:
编程语言 时间:
2014-08-28 13:25:14
阅读次数:
332
其中最吸引我的就是“持续性的 Cookie 会话”功能,它接管了Cookie管理方面的工作,使我们在实现模拟登录时的工作量大大减少。下面我介绍一下如何使用这个特性:...
分类:
其他好文 时间:
2014-08-28 13:22:59
阅读次数:
159
Given an array S of n integers, are there elements a, b, c in S such that a + b + c =
0? Find all unique triplets in the array which gives the sum of zero.
Note:
Elements in a triplet (a,b,c...
分类:
其他好文 时间:
2014-08-28 13:22:49
阅读次数:
177
3.点击字母“i”开始编辑文件,输入内容:
DocumentRoot /alidata/www/phpwind
ServerName localhost
ServerAlias localhost
Options -Indexes FollowSymLinks
AllowOverride all
Order allow,deny
...
分类:
Web程序 时间:
2014-08-28 13:21:19
阅读次数:
269
接触了Ruby,发现它有个包管理工具RubyGem非常好用,而且有非常完备的文档系统http://rdoc.info发现Python下也有相同的工具,包含easy_install和Pip。只是,我没有细看easy_install的方法,这就简单的介绍一下Pip的安装与使用:准备:$ curl -O ...
分类:
编程语言 时间:
2014-08-28 13:15:09
阅读次数:
206
Graphics.h/*************************************************** ©2014 Pf_D. All rights reserved.***************************************************/...
分类:
其他好文 时间:
2014-08-28 13:10:39
阅读次数:
134
Solve all Google Play Store errors1. Fix Google Play error 491Not able to download or Update any application on your Smartphone or tablet.Solution:- R...
分类:
其他好文 时间:
2014-08-28 13:09:29
阅读次数:
305