- 浏览: 9805 次
- 性别:
- 来自: 上海
最新评论
文章列表
vim 配置 python IDE
- 博客分类:
- python
插件:
Pathogen
Fugitive
NERDtree
Virtualenv
pep8
pyflake
jedi:https://github.com/davidhalter/jedi-vim
学习flask,mongodb过程中,做的一个简单的blog网站,前端不怎么会弄,模仿diandian的风格。
可以发表文章,图片,评论。可以关注其他用户。
目前临时部署在dotcloud上,网站如下:
http://gaoxiao-yzdrvjly.dotcloud.com
teleconference part2
- 博客分类:
- English
A:let's get started with roll call.
B:sorry, i didn't catch that.will you said again.
A:let's go over the agenda.we can talk about that later, but for now we really need
to get on with our meeting.we only have one hour.
#ok.let's get started.we have three important issues to discusse today.
...
teleconference part1
- 博客分类:
- English
A:I have teleconference coming up,but i never actually done one before. it's not the kind of thing they teachs in univesity. Could you give me a quick run down on what to do.
B:It's pretty easy once get the hand over it. you will catch on fast. so don't worry.
#run down/overview, get the hand on ...
Manage the discussion:
A:Sanjue, would you please kick off?
B:Well, this is a great way to cut a lot of fat. my figures show that we can save almost 50000 dollars for this one.
A:Sorry Sam. But i think this is a bit of side track. let us try to keep the agenda ok? i want get everyone out here o ...
English Learning
- 博客分类:
- English
Opening and Managing Meetings:
A: All right, does everybody here? great, i think we can start it. Well, good morning everyone, i'm sorry
i had to call this meeting at such short notice. did you all get copy of the agenda.
B:Sorry, do you have extra copy?
A:As you know, the main objectives o ...
#coding: utf_8
import sqlite3
from flask import Flask, request, session, g, redirect, url_for, \
abort, render_template, flash
import pdb
#configuration
DATABASE = 'exam.db'
DEBUG = True
SECRET_KEY = 'development key'
USERNAME = 'admin'
PASSWORD = 'default'
#create our little ...
#encoding=utf-8
import re
import pdb
q = []
a = []
item = dict()
#P = "(?<=q\d{1}\)).*?(?=a\d{1}\))"
P = "(?<=q\d{1}\)).*?\?"
f = open("cobol.txt", "r").read()
m = re.split("[QA]\d{1,4}\)", f)
for i, j in enumerate(m):
if i % 2: ...
总觉得电脑上的进程太多,影响速度用 python写了个小程序:
import os
import sys
def getpname(p):
pnm, poth = p.split(' ', 1)
pnm = pnm.lower()
pid = poth.strip(' ').split(' ',1)[0]
return pnm, pid
def main():
fname = os.path.join(sys.path[0],'proclist.txt')
f = open(fname,'r')
fl ...
- 2009-10-17 12:16
- 浏览 795
- 评论(0)
以Series 60典型机种Nokia N-Gage和6600为例讲解
一、C盘
手机的C盘如同Windows的C盘,是用来放置Symbian OS的地方,所以我们需要
给操作系统预留足够的空间(比如用来存放软件运行时生成的临时文件)。对于
已扩充了MMC卡的机器,建议把应用软件和游戏都尽量安装到MMC卡上。
[注意]:C盘剩余空间的多少和手机内存没有直接关系,极端的例子就是在C
盘装满的情况下手机照样能运行。手机内存和常驻内存的软件有关,如输入法、
主题背景开机后就会常驻内存,正在运行的软件和游戏也会占用内存,增加动态
内存的办法就是减少常驻内存的程序,用任务管理软件AppMa ...
- 2009-10-11 11:19
- 浏览 782
- 评论(0)
如何在s60上把python脚本,安装成独立的sis程序:
1. 使用py2sis把python脚本转化成sis文件,示例如下:
> ensymble.py py2sis dxsearch2.py dxsrh2 --icon=gaim.svg --caption='dxsrh2'
生成dxsrh2.sis文件
2.如果这个python脚本要用到其它的py文件或.dll文件,那么需要把这些文件放在 C:\\resource
or E:\\resource
或 C:\\sys\\bin
or E:\\sys\\bin
. 首先我们需 ...
Uliweb通过runserver命令启动,这其中是怎么样了流程,在这边理一下:
在Uliweb\manage.py里有runserver这个函数,那基本上就是通过调用这个函数启动Uliweb的了。
runserver函数本身是一个装饰函数,在main函数中,并没有对runserver的调 ...
- 2009-07-26 22:35
- 浏览 933
- 评论(0)