摘要: First machine:git init --bare gitrepo.gitSecond machine:git clone user@server:~/gitrepo.gitcd gitrepotouch testgit add testgit commit -a# '-u' tells g... 阅读全文
posted @ 2015-05-21 14:45 xiaomi2013 阅读(149) 评论(0) 推荐(0) 编辑
摘要: reson: unity exception1. open terminal: /usr/bin/**terminal** 2. run command on terminal: gsettings reset org.compiz.core:/org/compiz/profiles/unity/p... 阅读全文
posted @ 2015-04-23 10:34 xiaomi2013 阅读(129) 评论(0) 推荐(0) 编辑
摘要: int(x[,base])将x转换为一个整数long(x[,base])将x转换为一个长整数float(x)将x转换到一个浮点数complex(real[,imag])创建一个复数str(x)将对象x转换为字符串repr(x)将对象x转换为表达式字符串eval(str)用来计算在字符串中的有效Pyt... 阅读全文
posted @ 2014-09-11 11:07 xiaomi2013 阅读(1693) 评论(0) 推荐(0) 编辑
摘要: 1.修改matplotlibrc文件进入Python安装目录下的Lib\site-packages\matplotlib\mpl-data目录,打开matplotlibrc文件,删除font.family和font.sans-serif两行前的#,并在font.sans-serif后添加微软雅黑字体... 阅读全文
posted @ 2014-09-05 18:29 xiaomi2013 阅读(260) 评论(0) 推荐(1) 编辑
摘要: 配置远 程连接PostgreSQL数据库的步骤很简单,只需要修改 %PostgreSQL_path%/data 目录下的 pg_hba.conf 和 postgresql.conf。一、修改pg_hba.conf:配置对数据库的访问权限添加host all all 192.168.80.1/24 ... 阅读全文
posted @ 2014-08-28 16:39 xiaomi2013 阅读(1570) 评论(0) 推荐(0) 编辑
摘要: 远程连接数据库 阅读全文
posted @ 2013-09-17 17:15 xiaomi2013 阅读(740) 评论(0) 推荐(0) 编辑
摘要: LINUX开启允许对外访问的网络端口 阅读全文
posted @ 2013-09-17 10:32 xiaomi2013 阅读(386) 评论(0) 推荐(0) 编辑
摘要: psql: 致命错误: 用户 "postgres" Ident 认证失败 阅读全文
posted @ 2013-09-17 10:00 xiaomi2013 阅读(2522) 评论(0) 推荐(0) 编辑
摘要: 1 SERVER: 2 3 #!/usr/bin/python 4 # -*- coding: utf-8 -*- 5 import socket 6 import time 7 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 8 s.bind(('', 12345)) 9 s.listen(5)10 try:11 12 while 1:13 14 15 16 cs, ca = s.accept()17 18 print cs, ca19 while 1:20 ... 阅读全文
posted @ 2013-09-16 10:57 xiaomi2013 阅读(380) 评论(0) 推荐(0) 编辑