- 博客(8)
- 收藏
- 关注
原创 项目升级rails 2 -〉 rails 3
1: 升级rubygems为1.3.7 sudo gem update --system 2:安装rails 3.0依赖的包 1) sudo gem install tzinfo builder i18n memcache-client rack rake rack-test erubis mail text-format thor bundler 2) sudo g...
2012-08-23 09:40:03
193
原创 mysql远端访问配置
Icon-blank http://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html
2011-12-27 16:41:29
142
原创 ubuntu服务器相关备忘
检查本地时间和时间服务器时间的时 Icon-blank ntpdate cn.pool.ntp.org 使服务器时间和时间服务器同步 Icon-blank sudo ntpdate cn.pool.ntp.org 系统时间文章 Icon-blank http://marshal.easymorse.com/archives/1395 开机启动 Ico...
2011-12-27 16:40:27
126
原创 Magick获取图片信息
a =Magick::Image.read("/home/sunchi/9.jpg") 拍摄信息 a[0].get_exif_by_entry("DateTimeOriginal")[0][1] a[0].get_exif_by_entry("DateTimeDigitized")[0][1]
2011-12-27 16:38:35
585
原创 mac配置ruby on rails环境
mac ror Icon-blank 1.https://gist.github.com/836679 2.rvm install ruby-1.9.1-p378 3.http://superuser.com/questions/208259/installing-ruby-1-9-1-on-os-x-with-rvm-getting-error-i-cant-make-sense-of ...
2011-12-27 16:37:15
207
原创 rjs子模板中如何按照顺序并且有序列地执行语句
[code="java"] page.visual_effect :fade, item, :duration => 0.5 page.delay 0.5 do page.visual_effect :highlight, "other_dom_object", :duration => 0.5 end [/code]
2011-12-27 16:33:42
171
原创 swfupload-rails 是否批量设置
在public/javascript/swfupload.js 中 this.ensureDefault("button_action",SWFUpload.BUTTON_ACTION.SELECT_FILES); 把"SELECT_FILES" 改为 "SELECT_FILE", 选择文件时只能选择一个,否则可以选择多张 有可能与下边这行有关 this.ensureDefau...
2010-09-29 08:42:11
119
原创 rails crop attachment_fu
def update @face = Face.find_by_user_id(session[:user_id],:conditions => "parent_id is null" ) respond_to do |format| if @face.update_attributes(params[:face]) # flash[:noti...
2010-08-24 09:37:03
125
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅