$vncserver -kill :1
1 is the session number
Recent Django Posts
Excerpt from here
Cloud computing is a general term for anything that involves delivering hosted services over the Internet. These services are broadly divided into three categories: Infrastructure-as-a-Service (IaaS), Platform-as-a-Service (PaaS) and Software-as-a-Service (SaaS). The name cloud computing was inspired by the cloud symbol that’s often used to represent the Internet in flow charts and diagrams.
A [...]
Google App Engine lets you run your web applications on Google’s infrastructure.
It is kind of web hosting server I think.
Django can be also served with google app engine.
I want to make
x=32.34565
to
32.35
How ?
round(x,2)
Use writelines()
e.g.
# read lines in a file
import sys
arg1 = sys.argv[1]
f = open(arg1, ‘r’)
lines = f.readlines()
f.close()
arg=’out_’+arg1
FILE=open(arg,’w')
for line in lines:
words = line.split(’ ‘)
if words[1] == ‘hypnos’:
FILE.writelines(line)
FILE.close()
When you want to find a word in a string, use find()
e.g.
import sys
arg1 = sys.argv[1] # passing the first argument
if arg1.find(”off”) == -1: # if arg1 does not contain “off”
# do something
else:
# do something
Use readlines()
For example,
arg = “filename”
f = open(arg, ‘r’)
lines = f.readlines()
f.close()
The
tag is nothing more than a container for other tags.
is a generic block-level element.
For example,
Restaurants
Category
Chinese
Japanese
Mexican
Italian
French
Area
Carmel Valley
La Jolla
Chula Vista
Sorrento Valley
Downtown
It is usually used with class.
After you made changes,
to see its effect,
execute restart under apache2/bin/
>/home/pyncus/webapps/django11/apache2/bin/restart
