Monthly Archives: August 2012

PSFTP

PSFTP: open serverIP get/put -r “local path” newName     # if it is a folder, using -r   Advertisements

Posted in Uncategorized | Leave a comment

Ruby on Rails (3)

1. Migration After add in the /db/migrate/002_XX_.rb def self.up create_table :votes do |t| t.column :story_id, :integer t.column :created_at, :datetime end end run the command: $rake  db:migrate class Story < ActiveRecord::Base validates_presence_of :name, :link has_many :votes end class Vote < ActiveRecord::Base belongs_to … Continue reading

Posted in Website design and implement | Leave a comment

Ruby on Rails (2)

1. Helper: A helper is a chunk of code that can be reused throughout an application, and is stored in a helper file. A new helper file called controllername_helper.rb. Helpers associated with a particular controller are available only to the views of that … Continue reading

Posted in Website design and implement | Leave a comment

Android 相关

1. JSON : 数据交换格式 http://www.json.org/json-zh.html http://blog.sina.com.cn/s/blog_52fea7b60100boou.html 2. Ruby http://www.sitepoint.com/learn-ruby-on-rails-3/ 3. Ruby on Rails http://guides.rubyonrails.org/association_basics.html 中文版:http://2goo.info/blog/panjj/Rails/2010/09/15/118 数据库例子: http://xuantan.iteye.com/blog/780113             http://xyz920z.blog.163.com/blog/static/60703320082903917775/ 4. REST http://www.infoq.com/articles/rest-introduction http://www.cnblogs.com/viaivi/archive/2010/02/28/1675194.html 5. Android Plot http://androidplot.com/wiki/Quickstart

Posted in Android | Leave a comment