自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 资源 (1)
  • 收藏
  • 关注

原创 Application templates in Rails 3

Application templates in Rails 3 http://everydayrails.com/2011/02/28/rails-3-application-templates.html   Rails 3 template configured for devise/omniauth, haml, jquery, simple_form https://githu...

2011-06-30 06:28:22 70

原创 Rails 3, RSpec, Factory_Girl, HAML, SASS, Devise, JQuery, Backbone.js, jammit

Rails 3, RSpec, Factory_Girl, HAML, SASS, Devise, JQuery, Backbone.js, jammit https://gist.github.com/991544    

2011-06-30 06:25:46 71

原创 rails3中production模式下找不到css,js和图片文件静态资源

在rails3中,production模式默认是不处理静态文件的。在config/environments/production.rb中有这么一段: # Disable Rails"s static asset server # In production, Apache or nginx will already do this config.serve_static_assets = f...

2011-06-29 05:47:46 194

原创 关于V8 JavaScript Engine的使用方法研究(转)

一、写在前面的话 随 着google io大会上对android 2.2系统展示,一个经过高度优化的android系统(从dalvik虚拟机,到浏览器)呈现在大家面前。开发者们会非常自然地将目光落在dalvik 虚拟机方面的改进(包括ndk工具对jni联机单步调试的支持),很多应用接口的调整以及以此为基础的新的应用程序(偶是属于那种喜新不厌旧,找抽性质的 人)。对于android ...

2011-06-28 14:45:40 190

原创 rails 自建 task - eMail提醒

$ vi lib/tasks/notify.rake def notify_rating(mails,un_rates) body = %Q{ ==本郵件由系統發送,請勿直接回覆。== 敬愛的用戶﹕ 您好﹗ 您於#{un_rates[:train_date]}參加了#{un_rates[:uname]}主講的課程: 【 #{un_rates[:cnam...

2011-06-28 07:45:52 274

原创 rails 自建 task - 檢查RMAN備份結果

$ vi lib/tasks/notify.rake require 'net/ssh' require 'net/sftp' def notify_rman(mails,result) htmlopen = %Q{<html> <head> <META http-equiv="Content-Type" content="te...

2011-06-28 07:38:30 81

原创 Compass Agile Enterprise Framework

Compass Agile Enterprise Framework. Integrated Rails ERP and CMS with Extjs UI. https://github.com/portablemind/compass_agile_enterprise   rails [myappname] -m http://www.portablemind.com/file_as...

2011-06-27 23:31:24 96

原创 Rails3.1 Could not find a JavaScript runtime.错误的解决方法

Web based persistant chat platform using Ruby on Rails 3.1 and ExtJS 4 https://github.com/crueber/ignis   $ bundle install $ rake db:migrate rake aborted! Could not find a JavaScript runtime...

2011-06-27 22:04:56 180

原创 comfortable_mexican_sofa

  ComfortableMexicanSofa is a powerful CMS Engine for Ruby on Rails 3 applications https://github.com/twg/comfortable-mexican-sofa   rails g cms create db/migrate/20110628204406_create_...

2011-06-27 17:00:22 162

原创 Red Hat Enterprise Linux 环境passenger多ruby版本共存部署

1.安装rvm mkdir -p ~/.rvm/src/ && cd ~/.rvm/src && rm -rf ./rvm/ git clone git://github.com/wayneeseguin/rvm.git cd rvm && ./install  2.修改用户配置文件.bashrc,添加一行代码: [[ -s "$HO...

2011-06-24 05:56:50 141

原创 使用Google账户登录的实现代码

Gemfile为: gem 'ruby-openid' gem 'rack-openid'  sessions_controller.rb的代码: class SessionsController < ApplicationController def new flash[:returnurl] = params[:returnurl] if params[:...

2011-06-22 17:11:34 510

原创 用一堆Gem来架起你的Rails3机枪

Rails 3: Fully Loaded   Authentication OmniAuth (https://github.com/intridea/omniauth ) Devise (https://github.com/plataformatec/devise ) Access Control CanCan (https://github.com/...

2011-06-22 17:08:16 112

原创 在windows下安装DevKit和sqlite3

1.Ruby version and rubygems environment: C:\>ruby -v ruby 1.9.2p136 (2010-12-25) [i386-mingw32] C:\>gem env RubyGems Environment: - RUBYGEMS VERSION: 1.3.7 - RUBY VERSION: 1.9.2 (201...

2011-06-22 16:19:32 99

原创 installed RMagick 2.13.1 on Windows with Ruby v1.9.x

Install DevKit : https://github.com/oneclick/rubyinstaller/wiki/Development-Kit . Install ImageMagick 6.6.x with windows installer with headers. NOTE: -Do not install ImageMagick in a path whi...

2011-06-22 13:31:07 75

原创 Sequel访问Oracle CLOB

修改oracle.rb中的fetch_rows,原代碼: def fetch_rows(sql) execute(sql) do |cursor| begin @columns = cursor.get_col_names.map{|c| output_identifier(c)} while...

2011-06-17 14:55:12 401

原创 Simple daemon to compare DB queries and notify by email

  https://github.com/pedroaxl/database_monitor https://github.com/jeremyevans/sequel https://github.com/benprew/pony https://github.com/xianhuazhou/NotifyMe

2011-06-15 15:57:49 44

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除