PIXNET Logo登入

不就是個blog

跳到主文

不就是個blog

部落格全站分類:

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 7月 12 週四 200720:44
  • to_xml不要dasherize

加到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) 人氣(18)

  • 個人分類:ruby
▲top
  • 7月 11 週三 200720:43
  • Rails和REST

命令:

ruby script/generate scaffold_resource Product

routes.rb:

ActionController::Routing::Routes.draw do |map| map.resources :products end

(繼續閱讀...)
文章標籤

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

  • 個人分類:ruby
▲top
  • 7月 05 週四 200720:43
  • Cairngorm文章六篇

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

(繼續閱讀...)
文章標籤

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

  • 個人分類:flash
▲top
  • 5月 09 週三 200720:42
  • 不文明用語

來源:北京新規定:警員不得沒禮貌 不管怎麼看,都覺得這些用語非常的歡樂啊! 接待群眾時
  1. 嘿!說你哪,你是幹什麼的
  2. 聽見沒有,耳朵聾了
  3. 你怎麼不早說,早幹嗎去了
  4. 你怎麼又來了,煩不煩啊
  5. 我是值班的,這事兒別問我
  6. 這事兒我們管不了,你愛找誰找誰去
為群眾辦事時
  1. 你自己的事兒,多跑幾趟怎麼了
  2. 有急事兒也得等著,這是規矩,明白嗎
  3. 快點啊,你辦不辦
  4. 誰讓你不帶齊手續的,找誰也辦不了
  5. 我們下班了,回頭再說吧
  6. 不辦就是不辦,沒什麼理由
接受報案時
  1. 這麼點事兒,你也想立案,你懂不懂法呀
  2. 一看你就不是什麼好人
  3. 你知道還是我知道啊
  4. 話都講不清楚,還報什麼案
  5. 你有證據嗎,沒有證據你瞎報什麼案呀
  6. 怎麼了,查的就是你
調解糾紛時
  1. 你們不是鬧嗎,看你們誰能鬧得過誰
  2. 再鬧把你們全都弄進去

(繼續閱讀...)
文章標籤

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

  • 個人分類:life
▲top
  • 4月 29 週日 200720:41
  • OS X和Windows Vista存取共享目錄

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

(繼續閱讀...)
文章標籤

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

  • 個人分類:mac
▲top
  • 4月 25 週三 200720:40
  • ZFS文件

  • 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) 人氣(29)

  • 個人分類:server
▲top
  • 4月 08 週日 200720:39
  • 安裝Qt和QtRuby

  1. 下載Qt/Mac
  2. 下載QtRuby
  3. 安裝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
  4. 安裝QtRuby:
    ./configure --enable-mac --with-qt-dir=/usr/local/Trolltech/Qt-4.2.3; make; sudo make install
  5. cd /opt/local/lib/ruby/site_ruby/1.8/i686-darwin8.9.1; sudo mv qtruby4.so qtruby4.bundle
  6. 用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) 人氣(122)

  • 個人分類:ruby
▲top
  • 4月 04 週三 200720:38
  • 關閉Spotlight

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

(繼續閱讀...)
文章標籤

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

  • 個人分類:mac
▲top
  • 3月 20 週二 200720:38
  • Jetty + JRuby + Rails

所需軟體
  • Jetty 6
  • Ruby
  • JRuby
  • Ruby on Rails
安裝Ruby
  1. 下載Ruby
  2. 解壓縮至ruby目錄
  3. 切換工作目錄至ruby/bin
  4. 安裝Rails
    gem i rails -y --no-ri --no-rdoc
  5. 安裝JDBC adapter
    gem i activerecord-jdbc -y --no-ri --no-rdoc
安裝JRuby

(繼續閱讀...)
文章標籤

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

  • 個人分類:ruby
▲top
  • 3月 19 週一 200720:37
  • [串連] 睡睡十二恨

  1. 一恨羅莉大胸
  2. 二恨松果無羅
  3. 三恨地磚不夠
  4. 四恨布丁太少
  5. 五恨硬碟不夠
  6. 六恨藍光太貴
  7. 七恨頻寬太小
  8. 八恨薪水光光
  9. 九恨無日本籍
  10. 十恨Amazon無貨
  11. 十一恨空運太慢
  12. 十二恨時間太少

(繼續閱讀...)
文章標籤

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

  • 個人分類:life
▲top
«1...67816»

文章搜尋

文章分類

  • database (11)
  • flash (1)
  • java (28)
  • life (42)
  • mac (6)
  • rcheli (15)
  • ruby (24)
  • server (14)
  • software (5)
  • travel (8)
  • web (3)
  • 未分類文章 (1)

近期文章

    參觀人氣

    • 本日人氣:
    • 累積人氣: