Profil von veryVERY--我最喜欢的英文单词,极限的感觉! 红...FotosBlogListenMehr Extras Hilfe

VERY--我最喜欢的英文单词,极限的感觉! 红色--我最喜欢的颜色,火焰燃烧般的热情!

Windows Media Player

Wetter

Laden...

Horoskope

Laden...
Listen
Es sind keine Fotoalben vorhanden.

Tageskurs

Laden...
悄悄的你来了,请不要悄悄地走......
Welcome to leave messages to me!
Bitte warten...
Der eingegebene Kommentar ist zu lang. Bitte kürzen Sie ihn.
Sie haben keine Angabe gemacht. Bitte versuchen Sie es erneut.
Ihr Kommentar kann im Moment leider nicht hinzugefügt werden. Bitte versuchen Sie es später erneut.
Zum Hinzufügen eines Kommentars ist die Erlaubnis von einem Elternteil erforderlich. Erlaubnis einholen
Der Elternteil hat die Kommentarfunktion deaktiviert.
Ihr Kommentar kann im Moment leider nicht gelöscht werden. Bitte versuchen Sie es später erneut.
Sie haben die maximale Anzahl an Kommentaren, die pro Tag zugelassen sind, überschritten. Versuchen Sie es in 24 Stunden erneut.
Kommentare wurden in Ihrem Konto deaktiviert, da in unseren Systemen angegeben wird, dass Sie anderen Benutzern möglicherweise unerwünschte E-Mails versenden. Wenn Sie der Meinung sind, dass es sich beim Deaktivieren Ihres Kontos um einen Fehler handelt, wenden Sie sich an Windows Live Support.
Schließen Sie die Sicherheitsüberprüfung unten ab, damit Sie ein Kommentar hinterlassen können.
Die bei der Sicherheitsüberprüfung eingegebenen Zeichen müssen den Zeichen im Bild oder in der Audiodatei entsprechen.

forever
von 
26 Juni

编译Python源文件,error: missing Python.h, limits.h stdio.h ...

前两天装一个python软件库 (4suite),ubuntu 8操作系统,需要自己编译源文件,结果编译的时候总是报错,缺少一堆库文件,解决如下:

operating system: ubuntu 8

python 2.5.2

--------------install error: missing Python.h----------------
To install python headers, you need the python2.5-dev package:

command:

sudo apt-get install python2.5-dev

---------------install error: missing limits.h  stdio.h .…..-------------------------------------------

install libc6-dev package   for c headers

command:

sudo apt-get install libc6-dev

27 Mai

use python zsi to create and publish a web service (rpc-encoded)

I successfully published the web service in ubunbu 8 (remote) and vista64 (local) and invoked them for testing.

python 2.5, zsi 2.1 (other zsi version may be different)

step1. create helloDBfetch.wsdl, it is almost as same as hello wold.

-------------------------------------------------------------------------------

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.example.org/helloDBfetch/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="helloDBfetch" targetNamespace="http://www.example.org/helloDBfetch/">
  <wsdl:message name="helloDbfetchRequest">
    <wsdl:part name="fetchDataReturn" type="xsd:string"/>
  </wsdl:message>
  <wsdl:message name="helloDbfetchResponse">
    <wsdl:part name="helloDbfetchResponse" type="xsd:string"/>
  </wsdl:message>
  <wsdl:portType name="helloDBfetch">
    <wsdl:operation name="helloDbfetch">
      <wsdl:input message="tns:helloDbfetchRequest"/>
      <wsdl:output message="tns:helloDbfetchResponse"/>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="helloDBfetchSOAP" type="tns:helloDBfetch">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="helloDbfetch">
      <soap:operation soapAction="http://www.example.org/helloDBfetch/NewOperation"/>
      <wsdl:input>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.example.org/helloDBfetch/" use="encoded"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.example.org/helloDBfetch/" use="encoded"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="helloDBfetch">
    <wsdl:port binding="tns:helloDBfetchSOAP" name="helloDBfetchSOAP">
      <soap:address location="http://localhost:8080/"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>

-------------------------------------------------------------------------------

step2. run wsdl2py helloDBfetch.wsdl, generated 3 .py files (helloDBfetch_client.py, helloDBfetch_server.py, helloDBfetch_types.py), I put them under a folder called helloDBfetch, and also create a empty __init__.py in the folder to make it a package.

step3. create service implementation code: helloDBimpl.py

-------------------------------------------------------------------------

# make sure the path to helloDBfetch_server.py is correct, and import it

from helloDBfetch.helloDBfetch_server import * 

from ZSI.ServiceContainer import AsServer # have to import this
# class name can be anything, but has to be sub class of helloDBfetch, which is defined in helloDBfetch_server.py

class myhelloDBfetchServices(helloDBfetch): 
    # Make WSDL available for HTTP GET
    _wsdl = "".join(open("helloDBfetch.wsdl").readlines())
    def soap_helloDbfetch(self,ps, **kw): #rewrite the soap_helloDbfetch method of helloDBfetch of helloDBfetch_server.py
        try:#use the method from class helloDBfetch in helloDBfetch_server.py
            request, response = helloDBfetch.soap_helloDbfetch(self, ps, **kw)
#_helloDbfetchResponse and _fetchDataReturn are defined in the helloDBfetch_server.py  
         response._helloDbfetchResponse="Hello "+request._fetchDataReturn
        except Exception, e:
            print str(e)
        return request, response 
--------------------------------------------------------------------------

step4. create server code: helloDBserver.py

----------------------------------------------------------------------------

from ZSI.ServiceContainer import AsServer
from helloDBimpl import myhelloDBfetchServices #have to import the service class you defined
from ZSI import dispatch
if __name__ == "__main__":
    port = 8080
#service name has to be as same as the class name in helloDBimpl.py
    AsServer(port,(myhelloDBfetchServices('helloDBfetch'),))

--------------------------------------------------------------------------------

testing: local in vista64

run the helloDBserver.py

you can open a browser check the wsdl file: http://localhost:8080/helloDBfetch?wsdl

to invoke this web service, I use SoapUI (a free GUI service client, you can download it for free: http://www.soapui.org/), then just open the soapUI and create a new project, type in the project name and the URL of the wsdl file, it will generate a sample request for you, double click the sample request, in the popup window you will see the soap message, just replace the ? with any string you want, e.g. lalal, click the send arrow button, you will see the returned string is “hello lalal” inside the soap message.

*****************************

testing: remote in ubuntu 8

upload all files in your ubuntu machine: helloDBfetch.wsdl, helloDBimpl.py, helloDBserver.py and the whole fold: helloDBfetch

run helloDBserver.py in ubuntu 8

the URL of the wsdl is : http://yourUbuntuComputerIP:8080/helloDBfetch?wsdl

still use SoapUI to invoke it, but the URL should changed to the new one, another thing is the generated wsdl file in the binding/location=…., it give the machine name, other than the real ip, in localhost, it does not matter, but remotely invoke the web service, you have to change the endpoint of the request in soapUI to the real ip of ubuntu machine other than the machine name, otherwise soapUi can not find your ubuntu machine. I do not know how to make it automatically use ip in the wsdl, so I have to manually change it when I use soapUI invoke it.

+++++++++++++++++++++++++++++++++++

one wired thing I find is, in the helloDBimpl.py, the last line of code

return response | this works in the ubuntu 8

return request, response | this works in vista64

otherwise it returns error:

#return response, in vista, error: 'helloDbfetchResponse' object is not iterable
#return request, response, in ubuntu, error: type object tuple has no typecode

22 April

转:情诗

执子之手,与子偕老
    天地合,乃敢与君绝
    愿得一心人,白首不相离
    结发为夫妻,恩爱两不疑
    青青子衿,悠悠我心
    思君令人老,轩车来何迟
    潘岳悼亡犹费词
    天不绝人愿,故使侬见郎
    红豆生南国,春来发几枝
   昔日芙蓉花,今成断根草
   与君初相识,犹如故人归
   看花满眼泪,不共楚王言
   薛涛笺上十离诗
   至高至明日月,至亲至疏夫妻
   易求无价宝,难得有心郎
   唯将终夜长开眼,报答平生未展眉
  从此无心爱良夜,任他明月下西楼
  星沉海底当窗见,雨过河源隔座看
  三生杜牧、十里扬州,前事休说
  衣带渐宽终不悔,为伊消得人憔悴
  落花人独立,微雨燕双飞
  伤情处、高城望断,灯火已黄昏
  枝上柳绵吹又少,天涯何处无芳草
  零落成泥碾作尘,只有香如故
  风住尘香花已尽
  一杯愁绪,几年离索
  那人却在、灯火阑珊处
  断肠词
  问世问、情是何物,直教生死相许
  断肠人在天涯
  窈窕淑女,君子好逑

转: 某mm骂他男友,都不带脏字 (看了狂晕!)

你这个:
进化不完全的生命体,基因突变的外星人,
幼稚园程度的高中生,先天蒙古症的青蛙头,
圣母峰雪人的弃婴,化粪池堵塞的凶手,
非洲人搞上黑猪的後裔,阴阳失调的黑猩猩,
被诺亚方舟压过的河马,新火山喷发口,
超大无耻传声扩音喇叭,爱斯基摩人的耻辱,
和蟑螂共存活的超个体,生命力腐烂的半植物,
会发出臭味的垃圾人,"唾弃"名词的源头,
每天退化三次的恐龙,人类历史上最强的废材,
上帝失手摔下来的旧洗衣机,能思考的无脑袋生物,
损毁亚洲同胞名声的祸害,祖先为之蒙羞的子孙,
沉积千年的腐植质,科学家也不敢研究的原始物种,
宇宙毁灭必备的原料,连半兽人都瞧不起你的半兽人,
10倍石油浓度的沉积原料,被毁容的麦当劳叔叔,
像你这种可恶的家伙 只能演电视剧里的一陀粪,
比不上路边被狗过洒尿的口香糖,
连如花都美你10倍以上,
找女朋友得去动物园甚至要离开地球,
想要自杀只会有人劝你不要留下屍体以免污染环境,
你摸过的键盘上连阿米吧原虫都活不下去,
喷出来的口水比sars还致命,
装可爱的话可以瞬间解决人口膨胀的问题,
帅的话人类就只得用无性生殖,
白痴可以当你的老师,智障都可以教你说人话,
只要你抬头臭氧层就会破洞
要移民火星是为了要离开你,
如果你的丑陋可以发电的话全世界的核电厂都可以停摆,
去打仗的话子弹飞弹会忍不住向你飞,
手榴弹看到你会自爆,
别人要开飞机去撞双子星才行而你只要跳伞就有同样的威力,
你去过的名胜全部变古迹,你去过的古迹会变成历史,
18辈子都没干好事才会认识你,连丢进太阳都嫌不够环保

【转】K2LD Architects的温馨自然风格

由K2LD在Westwood(不知道哪里的Westwood)设计的一套公寓,在设计上,主要用比较少的家私和自然的颜色去创造出温馨的格调。室内的灯光营造得非常到位和漂亮,使处在里面每个人都能感觉到浪漫和平静的氛围。
1space

2space 

由此看出灯光的确是晚上营造气氛的重要元素,除了色温亮度还有位置都需要讲究。

现代的简约,由笔直的线条勾勒出的空间感。

【转】意大利DOC Mobili家居的睡房概念

 

 

简洁的睡房,优雅的气息,唯美的空间。其实有时睡房无需要装横得太复杂,一天下来的劳累或许只需要一个让自己的心灵能够沉淀下来的睡房而已。 一道有自己喜欢颜色或图案的主背场,有质感的家具,再加上上等的床褥及其他摆设,一切皆需要协调,颜色以及质感搭配好就已经突显效果了。
1
真正的私家园景,为了衬托房间的风格,就一个裸树也够孤独的。
2 
3 
4
5

这个不错....

6

7