会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
xiaomi2013
博客园
首页
新随笔
联系
管理
订阅
2015年5月21日
build a git repo and clone
摘要: 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
阅读(150)
评论(0)
推荐(0)
2015年4月23日
ubuntu miss tool bar
摘要: 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
阅读(133)
评论(0)
推荐(0)
2014年9月11日
Unicode字符以16进制表示
摘要: 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
阅读(1731)
评论(0)
推荐(0)
2014年9月5日
解决matplotlib中文乱码问题(Windows)
摘要: 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
阅读(271)
评论(0)
推荐(1)
2014年8月28日
配置postgreSQL允许外部连接
摘要: 配置远 程连接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
阅读(1669)
评论(0)
推荐(0)
2013年9月17日
远程连接数据库(通过pgAdmin)
摘要: 远程连接数据库
阅读全文
posted @ 2013-09-17 17:15 xiaomi2013
阅读(817)
评论(0)
推荐(0)
LINUX开启允许对外访问的网络端口
摘要: LINUX开启允许对外访问的网络端口
阅读全文
posted @ 2013-09-17 10:32 xiaomi2013
阅读(400)
评论(0)
推荐(0)
psql: 致命错误: 用户 "postgres" Ident 认证失败
摘要: psql: 致命错误: 用户 "postgres" Ident 认证失败
阅读全文
posted @ 2013-09-17 10:00 xiaomi2013
阅读(2584)
评论(0)
推荐(0)
2013年9月16日
socket代码(简单)
摘要: 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
阅读(385)
评论(0)
推荐(0)
公告