• 2009-12-21

    热核反应

    image

    我可以单向输出,无需交流无需反馈。

    我是传说中的低温热核反应堆。

    只要几个突破临界点的质子就能让我持续不断运转下去。

    不相信世界无法改变,因为我就是世界的一部分。

    改变自我,就是改造世界。

    再高的城墙也抵挡不住热切的心灵。

  • image

    1. 创建项目 rails prjF
    2. 创建 web service:

      script/generate web_service ServiceOne method_a method_b

    3. 创建模型

      generate model comment

      generate model girl

      generate model rating

    4. 创建api接口

      app\apis\serviceone_api.rb

      api method :add_girl, :expects => [{:time=>:string},
          {:name=>:string}], :returns => [Girl]

      #expects 是接口传入参数,return为返回参数,可以是string也可以是对象。如果要返回一个list则:returns=>[[ModelName]]

       

    5. 处理接口程序

      app\controllers\serviceone_controller.rb

      wsdl_service_name 'serviceone' #处理api引入
      web_service_scaffold :invoke #创建测试界面

      def add_girl(time,girlname)
        Girl.create(:time=>time, :name=>girlname).id
      end

  • 2009-12-20

    我喜欢

    • 大闸蟹,菊花茶,镇江醋——绝配
    • 荠菜菜肉馄饨,虾仁蒸饺,冬瓜肉饺子,胡萝卜莴笋叶菜饭
    • 葱油拌面——面条要加柠檬汁,葱应该是葱结+葱段,油要菜油
    • 冬天批着被子在电视机前,熬夜打游戏
    • 趴在窗口,看楼下中学女孩们蹦蹦跳跳着放学回家
    • 文艺系、治愈系、萌系女生
    • 海边城市,被海风吹到干净得发亮的马路
    • 打拳十几遍,体力衰竭后精神空明洞悉一切的境界

     

    一边听音乐一边调试代码,睡着然后又冻醒。这个时候如果有个女孩能支张木桌,燃香煮茶,帮我送上杯普洱……红袖添香夜读书,自古以来就是一帮落魄书生的幻想。

    信息时代,牛仔很忙,要赶时间;红袖也很忙,要赶场子。

  • 原装日立3.5寸1000G硬盘考满无码毛片 仅售720 - 淘宝网

    全新ITB硬盘。拷满1000GB无损APE音乐!

    原装日立 3.5寸1000G 1TB 32M硬盘 SATA 拷贝720P 1080P高清电影
  • 2009-12-18

    It's worth it!

    Horror gripped the heart of the World War I soldier as he saw his lifelong friend fall in battle. Caught in a trench with continuous gunfire whizzing over his head, the soldier asked his lieutenant if he might go out into the "No Man’s Land" between the trenches to bring his fallen comrade back.

    "You can go," said the Lieutenant, "but I don’t think it will be worth it. Your friend is probably dead and you may throw your own life away." The Lieutenant’s words didn’t matter, and the soldier went anyway.

    Miraculously he managed to reach his friend, hoisted him onto his shoulder, and brought him back to their company’s trench. As the two of them tumbled in together to the bottom of the trench, the officer checked the wounded soldier, then looked kindly at his friend. "I told you it wouldn’t be worth it," he said. "Your friend is dead, and you are mortally wounded."

    "It was worth it, though, sir," the soldier said.

    "How do you mean ‘worth it’?" responded the Lieutenant. "Your friend is dead!"

    "Yes sir," the private answered. "But it was worth it because when I got to him, he was still alive, and I had the satisfaction of hearing him say, ‘Jim, I knew you’d come.’"

    Many a time in life, whether a thing is worth doing or not really depends on how you look at it.

    Take up all your courage and do something your heart tells you to do so that you may not regret not doing it later in life.