上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页
摘要: 1. Set Up Git$ git config --global user.name "Your Name Here"$ git config --global user.email "your_email@example.com"$ git config --global credential... 阅读全文
posted @ 2014-03-24 10:24 土豆饼 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 本文共分为三部分:1. virtualenv创建python虚拟环境2. pip与virtualenv安装、卸载和管理Python包3. UBUNTU下舒服的python开发环境virtualenv>>转自 这里virtualenv用于创建独立的Python环境,多个Python相互独立,互不影响,... 阅读全文
posted @ 2014-03-17 14:57 土豆饼 阅读(2718) 评论(0) 推荐(0) 编辑
摘要: 1. error: command 'gcc' failed with exit status 1Info:用pip安装软件时提示:error: command 'gcc' failed with exit status 1 easy_install也提示一样的错误:error: Setup script exited with error: command 'gcc' failed with exit status 1DO:一般是缺少python-dev包,apt-get install python-dev或yum install pytho 阅读全文
posted @ 2014-03-17 14:15 土豆饼 阅读(203) 评论(0) 推荐(0) 编辑
摘要: ubuntu下修改ip后,上不了了网,网上找了不少方法,试了都不行。点击这里安装好Ubuntu之后设置了静态IP地址,再重启后就无法解析域名。想重新设置一下DNS,打开/etc/resolv.confcat /etc/resolv.conf# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN内容是一段警告:说这个文件是resolvconf程序动态创建的,不要直 阅读全文
posted @ 2014-03-14 18:42 土豆饼 阅读(457) 评论(0) 推荐(0) 编辑
摘要: 1. socket.error: [Errno 98] Address already in usesocket 绑定的地址正在使用,常见于非友好关闭套接字。解决办法:先关闭占用该地址的进程,假设端口号为10000, $ lsof -i:10000 然后设置allow_reuse_address = True。2. socket.error: [Errno 104] Connection reset by peer如果调用 read() 从 TCP 连接上接收数据并返回 -1,且 errno 为 104(Connection reset by peer),这通常表示对端程序没有关闭 soc.. 阅读全文
posted @ 2014-03-13 10:38 土豆饼 阅读(631) 评论(0) 推荐(0) 编辑
摘要: 转自 http://www.cnblogs.com/songmingming/archive/2013/03/06/ulipad%E6%89%93%E9%80%A0python.html一、简介1.1 简介Ulipad使用wxPython编写,一款小巧和灵活的编辑器。它有很多功能,例如类浏览器,代码自动完成,html查看器,目录浏览器等。最有 趣的和独特的功能是使用mixin技术使Ulipad一个易于扩展的编程环境。你可以写你自己的mixin,插件或简单的脚本,都可以无缝的方式集成在 Ulipad中项目主页:http://code.google.com/p/ulipad/1.2 安装1.2.1 阅读全文
posted @ 2014-03-12 17:28 土豆饼 阅读(567) 评论(0) 推荐(0) 编辑
摘要: 一、 在使用python来创建windows服务, 需要使用pywin32类库, 下载地址:http://sourceforge.net/projects/pywin32/ 下面我们创建一个什么也不做的服务,代码如下:win32test.pyimport win32serviceutilimport win32serviceimport win32eventclass win32test(win32serviceutil.ServiceFramework): _svc_name_ = "Python Win32 Service" _svc_display_name_ = & 阅读全文
posted @ 2014-03-07 12:23 土豆饼 阅读(1980) 评论(0) 推荐(0) 编辑
摘要: PuTTY is a free implementation of Telnet and SSH for Windows and Unix platforms, along with an xterm terminal emulator. It is written and maintained primarily by Simon Tatham.More...工具汇总PuTTY (the Telnet and SSH client itself)PSCP (an SCP client, i.e. command-line secure file copy)PSFTP (an SFTP cli 阅读全文
posted @ 2014-03-03 13:56 土豆饼 阅读(494) 评论(1) 推荐(0) 编辑
摘要: Notepad++ 是一个开源的文本编辑器,功能强大而且使用方便,一般情况下,Notepad++作为代码查看器,很方便,但是每次要运行的时候,总是需要用右键打开其他的IDE来编译和运行,总有些不方便。特别是像lua这种语言,在Eclipse中无法集成,因此运行的时候,总是不方便。我搜到了一个使用Notepad++作为编译器的方法,现在share给大家,:),还是很方便的。。。我先说下配置,看到了现象,再说原理,会比较容易明白。Python 的配置一、配置:1.打开Notepad++2. 按下F5,或者打开Run->Run…3. 弹出Run的窗口3. 这一步是最关键的,将下列语句拷贝粘贴至 阅读全文
posted @ 2014-03-03 10:02 土豆饼 阅读(527) 评论(0) 推荐(0) 编辑
摘要: 转自 http://blog.robotercoding.com/?p=139新做了一个项目,需要有后台管理功能,很自然,想到了django的admin功能。项目的要求:基于django的用户系统进行开发,不能修改django的源代码权限管理,不同的用户显示不同的数据行,字段也各不相同。首先打算在django中的Permission加入特定的权限,但是考察下来感觉很怪,django的Permission是表级的权限管理,而 用户的是逻辑权限,两种权限混在一起,很难管理,所以django的Permission就不能使用了,自定义一个权限表来管理。不能修改django的代码,用户的信息只能另外创建 阅读全文
posted @ 2014-02-28 18:19 土豆饼 阅读(469) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页