This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
解决方法: | |
psql -d geographic_admin -U pgsql -f /usr/local/share/postgis/lwpostgis.sql | |
psql -d geographic_admin -U pgsql -f /usr/local/share/postgis/lwpostgis_upgrade.sql | |
psql -d geographic_admin -U pgsql -f /usr/local/share/postgis/spatial_ref_sys.sql | |
Validating models... | |
Unhandled exception in thread started by <function inner_run at 0x1130500> | |
Traceback (most recent call last): | |
File "/usr/home/yanxu/Django-1.0/djangomap/geographic_admin/django/core/management/commands/runserver.py", line 48, in inner_run | |
self.validate(display_num_errors=True) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/python | |
import sys, Image | |
if __name__ == '__main__': | |
fn = sys.argv[1] | |
img = Image.open(fn).convert('YCbCr') | |
w, h = img.size | |
data = img.getdata() | |
cnt = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
find . -name "*.isread" | cut -b 1-18 | xargs -I AA mv AA.isread AA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup(){ | |
size(600,600); | |
background(255); | |
colorMode(RGB,255); | |
smooth(); | |
noStroke(); | |
frameRate(30); | |
} | |
void draw(){ | |
color c = color(random(252,255),random(100,183),random(190,225)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A(object): | |
def m(self,obj): | |
print "id2",id(obj),obj | |
obj.hp+=10 | |
class B(object): | |
def __init__(self): | |
self.hp=10 | |
a=A() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
from twill import * | |
import urllib2,re | |
USERNAME = 'YOUR USERNAME' | |
PASSWORD = 'YOUR PASSWORD' | |
BLOG_LIST = [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- python -*- | |
# ex: set syntax=python: | |
# This is a sample buildmaster config file. It must be installed as | |
# 'master.cfg' in your buildmaster's base directory (although the filename | |
# can be changed with the --basedir option to 'mktap buildbot master'). | |
# It has one job: define a dictionary named BuildmasterConfig. This | |
# dictionary has a variety of keys to control different aspects of the | |
# buildmaster. They are documented in docs/config.xhtml . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $FreeBSD: src/etc/csh.cshrc,v 1.3 1999/08/27 23:23:40 peter Exp $ | |
# | |
# System-wide .cshrc file for csh(1). | |
# $FreeBSD: src/etc/csh.cshrc,v 1.3 1999/08/27 23:23:40 peter Exp $ | |
# | |
# System-wide .cshrc file for csh(1). | |
set ostype = `uname -s` # sad, no? | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
from twill import * | |
import urllib2,re | |
USERNAME = 'YOUR USERNAME' | |
PASSWORD = 'YOUR PASSWORD' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** ttserver.c Fri Jan 16 07:36:37 2009 | |
--- /home/yanxu/ttserver.c Fri Jan 16 07:38:30 2009 | |
*************** | |
*** 1406,1412 **** | |
if(ttsockrecv(sock, buf, ksiz) && !ttsockcheckend(sock)){ | |
double snum; | |
if(mask & (TTMSKADDDOUBLE | TTMSKALLORG | TTMSKALLWRITE)){ | |
! snum = nan(""); | |
ttservlog(g_serv, TTLOGINFO, "do_adddouble: forbidden"); | |
} else { |