`
cinic2003
  • 浏览: 36234 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
1. 安装coffeebundle mkdir -p ~/Library/Application\ Support/TextMate/Bundles cd ~/Library/Application\ Support/TextMate/Bundles git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript.tmbundle   2. 配置TextMate上的路径,在TextMate -> Perferences -> Advanced -> Shell Variables中 ...

CentOS上部署安装

    博客分类:
  • OS
来源:http://www.webtatic.com/packages/git17/,http://www.betaquest.com/2011/07/how-to-install-rvm-ruby-version-manager-and-ruby-1-8-7-and-1-9-2-ree-on-centos-5-6-64bit/   在centOS上的yum里没有找到git的安装包,按下面方法安装上了git   rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm yum install --enablerepo=web ...
1. uname -a Linux green 2.6.32-33-server #70-Ubuntu SMP Thu Jul 7 22:28:30 UTC 2011 x86_64 GNU/Linux     2. uname -m x86_64   3. cat /etc/lsb-release (Ubuntu)     cat /etc/redhat-release (CentOS) ubuntu DISTRIB_ID=Ubuntu DISTRIB_RELEASE=10.04 DISTRIB_CODENAME=lucid DISTRIB_DESC ...
http://tech.shantanugoel.com/2011/05/12/use-encrypted-google-search-as-default-in-chrome.html 来自: 1. Click on the wrench/tool icon at the top of Google Chrome and go to Options. 2. On the “Basics” tab, go to the “Search” item and click on “Manage Search Engines” 3. Go to the very bottom of the ne ...

gem安装报错

在ubuntu11.04上安装mysql2的gem是报错   *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.  Check the mkmf.log file for more details.  You may need configuration options. 。。。。。 之类的     sudo apt-get install libmysql-ruby libmys ...
 在rails项目中,用Exception Notification,可以在程序异常时发送通知邮件。   1.安装gem gem 'exception_notification', :require => 'exception_notifier'  并bundle install   2.安装Exception Notification 在config/initializers/下新建exception_notificatioin.rb文件 AppName::Application.config.middleware.use ExceptionNotifier, ...
美国通用汽车“香草冰淇淋”的故事可能很多人读过: 有一天美国通用汽车公司的庞帝雅克(Pontiac)部门收到一封客户抱怨信,上面是这样写的:“这是我为了同一件事第二次写信给你,我不会怪你们为什么没有回信给我, ...
http://pullmonkey.com/projects/open_flash_chart2   在rails3项目中安装OpenFlashChart的插件 rails plugin install git://github.com/pullmonkey/open_flash_chart.git   在某个controller的action中 def index @graph = open_flash_chart_object(600,300,"/controller/graph_code") end def graph_code ...

Ubuntu+SSH tunnels

http://yicaoyimu.com/?p=200   1. 打开terminal 输入如下命令: $ sudo ssh -qTfnN -D 7070 username@servername (7070表示用本地的7070端口) [sudo] password for ********:(输入本机super user密码) username@servername’s password:(输入SSH帐号密码) 2. 设置FF浏览器 奇怪的是,ubuntu下的FF和win下的设置不一样,虽然是同一版的FF 总之,找到首选项,然后-》高级-》网络-》设置,在弹出的窗口下,选择 ...
Resqus: git://github.com/defunkt/resque.git 来自于railscasts 安装redis,并启动redis sudo redis-server /etc/redis.conf   在项目中配置redis,在config/下新建resque.yml defaults: &defaults host: localhost port: 6379 development: <<: *defaults test: ...
在项目的app下新建目录sweeper,在该目录下新建sweeper类的文件,如listen_sweeper.rb class   class ListenSweeper < ActionController::Caching::Sweeper observer User, Production #observer Model you wanted def after_save(record) end def after_update(record) end def after_destroy(record) end ...
If a controller need process all request as XML instead of HTML as default,you can code in this controller like this before :force_to_xml private def force_to_xml request.format = :xml end  so easy.
in config/application.rb: config.paths.config.routes << File.join(Rails.root, "config/folder_name/route_file.rb")  
在rails3.0,rake0.9.0下,rake时会报undefined method `task'的错误,解决方法,在Rakefile文件中加入一下代码: require 'rake/dsl'  转自:http://www.aiseeu.com/blog/archives/501.html   说明:https://github.com/jimweirich/rake/pull/35
《计算机程序的构造解释》里用到的语言是Lisp的一种方言scheme,记录一下mit-scheme在Mac下的安装过程。   1.首先看看本地是否安装过scheme,在命令行 which scheme   如之前没安装过,则不会显示任何内容,如有,可以看看安装路径 echo $MITSCHEME_LIBRARY_PATH   2.下载源码包,http://www.gnu.org/software/mit-scheme/,如果是Mac OS X 10.5的或以上版本,可下载x86-64这个包。   3.解压,包里面有两个文件夹lib和bin,将bin下的4个文件 ...
Global site tag (gtag.js) - Google Analytics