http://docs.jquery.com/Ajax/serialize
http://docs.jquery.com/Selectors/checkbox
2008年8月29日 星期五
File, Pathname, Dir
http://www.ruby-doc.org/core/classes/File.html
http://www.ruby-doc.org/core/classes/Pathname.html
http://www.ruby-doc.org/core/classes/Dir.html#M002347
http://www.ruby-doc.org/core/classes/Pathname.html
http://www.ruby-doc.org/core/classes/Dir.html#M002347
join, dirname, __FILE__, RAILS_ROOT, directory?
require File.join(File.dirname(__FILE__), 'boot')
RAILS_ROOT = "#{File.dirname(__FILE__)}/.." unless defined?(RAILS_ROOT)
>> File.directory?("#{RAILS_ROOT}/app")
=> true
>> File.exist?("#{RAILS_ROOT}/app")
=> true
>> File.exist?("#{RAILS_ROOT}/app/controllers/application.rb")
=> true
>> File.directory?("#{RAILS_ROOT}/app/controllers/application.rb")
=> false
Dir is file, too
Dir["config.?"] #=> ["config.h"]
Dir.glob("config.?") #=> ["config.h"]
Dir.glob("*.[a-z][a-z]") #=> ["main.rb"]
Dir.glob("*.[^r]*") #=> ["config.h"]
Dir.glob("*.{rb,h}") #=> ["main.rb", "config.h"]
Dir.glob("*") #=> ["config.h", "main.rb"]
Dir.glob("*", File::FNM_DOTMATCH) #=> [".", "..", "config.h", "main.rb"]
2008年8月28日 星期四
2008年8月26日 星期二
2008年8月25日 星期一
squish, strip
>> " 11 22 3344 55 ".squish
=> "11 22 3344 55"
>> " 11 22 3344 55 ".strip
=> "11 22 3344 55"
=> "11 22 3344 55"
>> " 11 22 3344 55 ".strip
=> "11 22 3344 55"
Daemon, SSL, TLS, and many web knowledge
http://en.wikipedia.org/wiki/Daemon_(computer_software)
http://en.wikipedia.org/wiki/Secure_Sockets_Layer
http://en.wikipedia.org/wiki/Transport_Layer_Security
http://gec.kmu.edu.tw/~tjm/security/sec9/img0.html
http://en.wikipedia.org/wiki/Eavesdropping
http://en.wikipedia.org/wiki/Message_forgery
http://en.wikipedia.org/wiki/Information_security
http://en.wikipedia.org/wiki/Cryptography
http://en.wikipedia.org/wiki/Mutual_authentication
http://en.wikipedia.org/wiki/Smtp
http://140.127.138.46/tsnien/Teach_Manu/F8745/F8745_HTML/chap11/chap11-t.htm
http://en.wikipedia.org/wiki/Secure_Sockets_Layer
http://en.wikipedia.org/wiki/Transport_Layer_Security
http://gec.kmu.edu.tw/~tjm/security/sec9/img0.html
http://en.wikipedia.org/wiki/Eavesdropping
http://en.wikipedia.org/wiki/Message_forgery
http://en.wikipedia.org/wiki/Information_security
http://en.wikipedia.org/wiki/Cryptography
http://en.wikipedia.org/wiki/Mutual_authentication
http://en.wikipedia.org/wiki/Smtp
http://140.127.138.46/tsnien/Teach_Manu/F8745/F8745_HTML/chap11/chap11-t.htm
訂閱:
文章 (Atom)