加到application.rb:
module ActiveSupport #:nodoc:
module CoreExtensions #:nodoc:
module Hash #:nodoc:
module Conversions
unless method_defined? :old_to_xml
alias_method :old_to_xml, :to_xml
def to_xml(options = {})
options.merge!(:dasherize => false)
old_to_xml(options)
end
end
end
end
module Array #:nodoc:
module Conversions
unless method_defined? :old_to_xml
alias_method :old_to_xml, :to_xml
def to_xml(options = {})
options.merge!(:dasherize => false)
old_to_xml(options)
end
end
end
end
end
end
module ActiveRecord #:nodoc:
module XmlSerialization
unless method_defined? :old_to_xml
alias_method :old_to_xml, :to_xml
def to_xml(options = {})
options.merge!(:dasherize => false)
old_to_xml(options)
end
end
end
end

Forth 發表在 痞客邦 留言(0) 人氣()

命令:
ruby script/generate scaffold_resource Product
routes.rb:

Forth 發表在 痞客邦 留言(0) 人氣()


Developing Flex RIAs with Cairngorm Microarchitecture – Part 1: Introducing Cairngorm
Developing Flex RIAs with Cairngorm Microarchitecture – Part 2: Keeping State on the Client
Developing Flex RIAs with Cairngorm Microarchitecture – Part 3: Architecting the View
Developing Flex RIAs with Cairngorm Microarchitecture – Part 4: Feature-Driven Development
Developing Flex RIAs with Cairngorm Microarchitecture – Part 5: Server-Side Integration
Developing Flex RIAs with Cairngorm Microarchitecture – Part 6: Rapid and Consistent Development with Cairngorm and Flex

Forth 發表在 痞客邦 留言(0) 人氣()

來源:北京新規定:警員不得沒禮貌
不管怎麼看,都覺得這些用語非常的歡樂啊!
接待群眾時
  • 嘿!說你哪,你是幹什麼的

  • 聽見沒有,耳朵聾了

  • 你怎麼不早說,早幹嗎去了

  • 你怎麼又來了,煩不煩啊

  • 我是值班的,這事兒別問我

  • 這事兒我們管不了,你愛找誰找誰去

  • 為群眾辦事時
  • 你自己的事兒,多跑幾趟怎麼了

  • 有急事兒也得等著,這是規矩,明白嗎

  • 快點啊,你辦不辦

  • 誰讓你不帶齊手續的,找誰也辦不了

  • 我們下班了,回頭再說吧

  • 不辦就是不辦,沒什麼理由

  • 接受報案時
  • 這麼點事兒,你也想立案,你懂不懂法呀

  • 一看你就不是什麼好人

  • 你知道還是我知道啊

  • 話都講不清楚,還報什麼案

  • 你有證據嗎,沒有證據你瞎報什麼案呀

  • 怎麼了,查的就是你

  • 調解糾紛時
  • 你們不是鬧嗎,看你們誰能鬧得過誰

  • 再鬧把你們全都弄進去

  • Forth 發表在 痞客邦 留言(0) 人氣()

    於Windows Vista執行secpol.msc,到安全性設定/本機原則/安全性選項,開啟網路安全性: LAN Manager驗證層級,將設定改成傳送LM和NTLM - 如有交涉,使用NTLMv2工作階段安全性。

    Forth 發表在 痞客邦 留言(0) 人氣()


    ZFS Administrator Guide
    ZFS - quick start
    Solaris 10 的新檔案系統ZFS 卷一
    Solaris 10 的新檔案系統ZFS 卷二
    Solaris 10 的新檔案系統ZFS 卷三
    Solaris 10 的新檔案系統ZFS 卷四
    Solaris 10 的新檔案系統ZFS 卷五
    Solaris 10 的新檔案系統ZFS 卷六
    Solaris 10 的新檔案系統ZFS 卷七
    Solaris 10 的新檔案系統ZFS 卷八
    Solaris 10 的新檔案系統ZFS 卷九-最終章
    Solaris 10 的新檔案系統ZFS 卷十-補遺

    Forth 發表在 痞客邦 留言(0) 人氣()


    下載Qt/Mac
    下載QtRuby
    安裝Qt:
    ./configure -qt-zlib -qt-gif -qt-libpng -qt-libmng -qt-libjpeg -no-framework -fast -no-exceptions -no-stl -no-debug; make; sudo make install

    安裝QtRuby:
    ./configure --enable-mac --with-qt-dir=/usr/local/Trolltech/Qt-4.2.3; make; sudo make install

    cd /opt/local/lib/ruby/site_ruby/1.8/i686-darwin8.9.1; sudo mv qtruby4.so qtruby4.bundle

    用irb測試:
    require 'Qt'
    a = Qt::Application.new(ARGV)
    hello = Qt::PushButton.new('Hello World!', nil)
    hello.resize(150, 50)
    hello.show()
    a.exec()

    Forth 發表在 痞客邦 留言(0) 人氣()

    mdutil -i off /Volume
    mdutil -E /Volume
    rm -rf /Volumn/.Spotlight*

    Forth 發表在 痞客邦 留言(0) 人氣()

    所需軟體
    Jetty 6
    Ruby
    JRuby
    Ruby on Rails

    Forth 發表在 痞客邦 留言(0) 人氣()


    一恨羅莉大胸
    二恨松果無羅
    三恨地磚不夠
    四恨布丁太少
    五恨硬碟不夠
    六恨藍光太貴
    七恨頻寬太小
    八恨薪水光光
    九恨無日本籍
    十恨Amazon無貨
    十一恨空運太慢
    十二恨時間太少

    Forth 發表在 痞客邦 留言(0) 人氣()

    使用Apache和Subversion提供服務,並透過Active Directory驗證帳號和密碼,在安裝Apache時要WITH_LDAP_MODULES=yes。
    <Location /repos>
    DAV svn
    SVNParentPath /usr/home/svn/repos/
    AuthzSVNAccessFile /usr/home/svn/access
    AuthBasicProvider ldap
    AuthzLDAPAuthoritative on
    AuthLDAPURL "ldap://zbwei.net/DC=zbwei,DC=net?sAMAccountName?sub?(objectClass=user)"
    AuthLDAPBindDN forth@zbwei.net
    AuthLDAPBindPassword 1qaz2wsx
    AuthType Basic
    AuthName "Subversion Repository"
    Require valid-user
    </Location>

    Forth 發表在 痞客邦 留言(0) 人氣()



    CRUD
    HTTP
    SQL
    Action


    Create
    POST
    INSERT
    create


    Read
    GET
    SELECT
    show


    Update
    PUT
    UPDATE
    update


    Delete
    DELETE
    DELETE
    destroy

    Forth 發表在 痞客邦 留言(0) 人氣()

    Blog Stats
    ⚠️

    成人內容提醒

    本部落格內容僅限年滿十八歲者瀏覽。
    若您未滿十八歲,請立即離開。

    已滿十八歲者,亦請勿將內容提供給未成年人士。