weboom

Jan 252010

$vncserver -kill :1
1 is the session number

Posted by weboom at 1:19 pm Tagged with:
Jan 252010

$ vncserver -geometry 1024×798 -depth 24

Posted by weboom at 1:16 pm Tagged with:
Dec 312009

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 [...]

Posted by weboom at 2:20 am Tagged with:
Dec 312009

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.

Posted by weboom at 1:42 am Tagged with: , ,
Dec 282009

I want to make
x=32.34565
to
32.35
How ?
round(x,2)

Posted by weboom at 7:52 pm
Dec 222009

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()

Posted by weboom at 2:53 pm Tagged with: ,
Dec 222009

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

Posted by weboom at 2:36 pm Tagged with: ,
Dec 222009

Use readlines()
For example,

arg = “filename”

f = open(arg, ‘r’)

lines = f.readlines()
f.close()

Posted by weboom at 2:32 pm Tagged with: ,
Dec 032009

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.

Posted by weboom at 11:48 pm Tagged with:
Dec 012009

After you made changes,
to see its effect,
execute restart under apache2/bin/
>/home/pyncus/webapps/django11/apache2/bin/restart

Posted by weboom at 2:40 am Tagged with: , ,
Switch to our mobile site
Page 1 of 2112345»1020...Last »Top Footer