rails的一些插件_a13393665983的博客-程序员秘密

技术标签: memcached  数据库  ruby  

http://www.cnblogs.com/ToDoToTry/archive/2011/08/04/2127923.html

<span style="font-size: 14px;"><span face="arial, 宋体, sans-serif" style="font-family: arial, 宋体, sans-serif;"><span class="Apple-style-span" style="line-height: 24px;">rubyGems 是什么?</span></span></span>
<span style="font-size: 14px;"><span face="arial, 宋体, sans-serif" style="font-family: arial, 宋体, sans-serif;"><span class="Apple-style-span" style="line-height: 24px;"></span></span><span face="arial, 宋体, sans-serif" style="font-family: arial, 宋体, sans-serif;"><span class="Apple-style-span" style="line-height: 24px;">  RubyGems(简称 gems)是一个用于对 Rails 组件进行打包的 Ruby 打包系统。 它提供一个分发 Ruby 程序和库的标准格式,还提供一个管理程序包安装的工具。</span></span></span>
<span style="font-size: 14px;"><span face="arial, 宋体, sans-serif" style="font-family: arial, 宋体, sans-serif;"><span class="Apple-style-span" style="line-height: 24px;">  RubyGems的功能类似于Linux下的apt-get。使用它可以方便第从远程服务器下载并安装Rails。</span></span></span>
<span style="font-size: 14px;"><span face="arial, 宋体, sans-serif" style="font-family: arial, 宋体, sans-serif;"><span class="Apple-style-span" style="line-height: 24px;">  打开命令行窗口(cmd),输入执行命令 gem install rails --remote 或 gem install rails--include-dependencies。</span></span></span>
<span style="font-size: 14px;"><span face="arial, 宋体, sans-serif" style="font-family: arial, 宋体, sans-serif;"><span class="Apple-style-span" style="line-height: 24px;"><br /></span></span></span>
<span style="font-size: 15px;"><span face="arial, 宋体, sans-serif" style="font-family: arial, 宋体, sans-serif;"><span class="Apple-style-span" style="line-height: 24px;">1. gem on rails</span></span><span class="Apple-style-span" style="font-family: sans-serif; letter-spacing: -2px; line-height: 44px; color: #000000; background-color: #ffffff;"></span></span>
<span style="color: #000000; background-color: #ffffff; font-size: 15px;"><span face="arial, 宋体, sans-serif" style="font-family: arial, 宋体, sans-serif;"><span class="Apple-style-span" style="line-height: 24px;">  </span></span><span class="Apple-style-span" style="font-family: Georgia, sans-serif; line-height: 25px;">Link or freeze RubyGems into your rails apps, instead of just plugins. </span></span>
<span style="color: #000000; background-color: #ffffff; font-size: 15px;"><span class="Apple-style-span" style="font-family: Georgia, sans-serif; line-height: 25px;">2.  </span></span><span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;">request-log-analytizer</span>
<span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;">3.  mem-cached  :: </span><span class="Apple-style-span" style="font-size: 14px; line-height: 21px;">cached_model  </span>
<span class="Apple-style-span" style="font-size: 14px; line-height: 21px;">安装: sudo gem install cached_model</span>
<span class="Apple-style-span" style="font-family: Verdana, 'Lucida Grande', 'Helvetica Neue', Helvetica, sans-serif; font-size: 12px; line-height: 18px; white-space: normal;">Many <a href="http://www.43things.com/" style="color: black; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #e5cb00; text-decoration: none; padding: 0px; margin: 0px;">speedy</a> sites use memcached to save the results of expensive database queries and intense rendered templates. This is a basic introduction to using memcached with Rails. </span>
<span class="Apple-style-span" style="font-family: Verdana, 'Lucida Grande', 'Helvetica Neue', Helvetica, sans-serif; font-size: 12px; line-height: 18px; white-space: normal;">4. CSS graphs :报表工具</span>
<span class="Apple-style-span" style="font-family: Verdana, 'Lucida Grande', 'Helvetica Neue', Helvetica, sans-serif; font-size: 12px; line-height: 18px; white-space: normal;">A Ruby on Rails helper for making simple graphs. The graphs use only<span class="caps" style="text-transform: uppercase; font-size: 0.95em; letter-spacing: 0.1em; padding: 0px; margin: 0px;">CSS</span>/HTML (and an optional gradient image).</span>
<span class="Apple-style-span" style="font-family: Verdana, 'Lucida Grande', 'Helvetica Neue', Helvetica, sans-serif; font-size: 12px; line-height: 18px; white-space: normal;">5. Bullet ::  数据查询性能优化</span>
<span class="Apple-style-span" style="font-family: Verdana, 'Lucida Grande', 'Helvetica Neue', Helvetica, sans-serif; font-size: 12px; line-height: 18px; white-space: normal;"><span class="Apple-style-span" style="font-family: helvetica, arial, freesans, clean, sans-serif; font-size: 13px; line-height: 20px; background-color: #f8f8f8;">The Bullet plugin/gem is designed to help you increase your application’s performance by reducing the number of queries it makes. </span></span>
<span class="Apple-style-span" style="font-family: Verdana, 'Lucida Grande', 'Helvetica Neue', Helvetica, sans-serif; font-size: 12px; line-height: 18px; white-space: normal;">6.</span><span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;">rails_reviewer        </span>
<span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;">项目遇到严重的性能问题,主要是数据库查询过多, 推荐<a href="http://code.google.com/p/query-reviewer/" style="border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: #004b91; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;">rails_reviewer</a>插件</span>
<span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;">7.</span><span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;">Benchmark    基准测试</span>
<span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;">8.</span><span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;">query_reviewer   </span>
<span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;">9.</span><span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;"><a href="http://ruby.sadi.st/Flog.html" style="border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: #004b91; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;">Flog</a>是一个计算你的Ruby代码复杂度的工具,来自<a href="http://seattlerb.rubyforge.org/" style="border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: #004b91; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;">大牛Ryan Davis的seattle.rb项目</a>。</span>
<span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;">10.God  ,, monit 的ruby 版本</span>
<span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;">11. rails application visuallizer  ,将rails项目中的类 模型 --关系,可视化</span>
<span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;">12.google chart api  , 图表生成</span>
<span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;">13. </span><span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;">Rseg</span>
<span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;">Rseg 是一个基于纯Ruby的中文分词插件,内置了CC-CEDICT和维基百科两本字典,目前只支持Ruby 187以上版本及UTF8编码。</span>
<span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;">14.logrotate 自动打包rails日志</span>
<span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;">15.</span><span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;"><a href="http://seattlerb.org/ar_mailer" style="border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: #004b91; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;">ar_mailer</a>是个很不错的邮件发送插件,工作原理是将邮件发送分为两部分,首先将邮件保存到数据库,然后在调用后台程序实现异步发送,可惜的是目前还不支持Rails 3,于是花了一个下午,将它移植到了Rails 3,这就是:<a href="http://github.com/yzhang/ar_mailer_rails3" style="border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; font-size: 13px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: #004b91; background-position: initial initial; background-repeat: initial initial; border-width: 0px; padding: 0px; margin: 0px;">ar_mailer_rails3</a>。</span>
<span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;">16.city_helper</span>
<span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;">省市二级联动select插件,http://www.letrails.cn/archives/city-helper-update-i18n-and-country-support/</span>
<span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;">17..rcov是一个用于诊断Ruby代码覆盖率的工具,它最主要的用途就是用于确定单元测试是否覆盖到了所有代码,rcov使用一个经过优化的C运行时,因此性能相当惊人,同时它还提供多种格式的输出。</span>
<span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;"><br /></span>
<span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;"><br /></span>
<span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;"><a href="http://www.letrails.cn/page/14/">http://www.letrails.cn/page/14/</a></span>
<span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;"><a href="http://nubyonrails.com/articles/memcached-basics-for-rails">http://nubyonrails.com/articles/memcached-basics-for-rails</a></span>
<span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;"><a href="http://www.ibm.com/developerworks/cn/web/wa-rubyrails/ruby.html">http://www.ibm.com/developerworks/cn/web/wa-rubyrails/ruby.html</a></span>
<span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;"><a href="http://www.rubyinside.com/">http://www.rubyinside.com/</a></span>
<span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;"><a href="http://www.letrails.cn/">http://www.letrails.cn</a></span>
<span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;"><a href="http://flouri.sh/">http://flouri.sh/</a></span>
<span class="Apple-style-span" style="font-family: Georgia, serif; line-height: 24px; white-space: normal;"><br /></span>
分类: 5-Rails


posted on 2011-09-02 12:49  lexus 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/lexus/archive/2011/09/02/2163601.html

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/a13393665983/article/details/102190244

智能推荐

COM初学者必看,否则你会后悔的,嘿嘿~~...^_^ (转)_circularr9834的博客-程序员秘密

COM初学者必看,否则你会后悔的,嘿嘿~~...^_^ (转)[@more@]这是我学习COM遇到的几个基本问题其解决 Mailto:[email protected]"&gt;黄森堂(vcmfc)著1.我用ATL生成一个组...

rman备份集的保留策略_cuantang1236的博客-程序员秘密

rman备份集的保留策略基于时间和基于冗余数量的备份保留策略基于时间的备份保留策略:你希望数据库最早能恢复到几天前,比如7,那么保留的备份文件就能保证将数据库恢复到一周内任何一个时刻.设置命令:rman&gt...

[Liferay]使用Spring MVC开发Portlet应用_一纯粹的paranoid的博客-程序员秘密

开发环境IDE                    : Liferay Developer Studio Version: 1.6.1.v201212111822Liferay                : liferay-portal-6.0-ee-sp1server                : tomcat-6.0.29plugin sdk           :

参数job_queue_processes与Oracle jobs_oracle job queue_Leshami的博客-程序员秘密

Oracle jobs为Oracle开发人员和数据库管理员提供了数据库层面维护的极大便利性。对于Oracle jobs在Oracle 9i之前,是由dbms_jobs来实现,而到了10g之后,多出了dbms_scheduler方式。两者同样可以添加Oracle job,只不过dbms_scheduler的功能更为强大。在使用Oracle jobs时,我们不得不关注job_queue_process

随便推点

android studio gradle 版本更新_android studio 更新gradle版本_chuchur的博客-程序员秘密

问题描述Gradle-Could not determine java version from ‘12’可能是Gradle 版本不兼容, 尝试着更新Gradle版本使用Android studio自动更新找到 项目根目录 gradlewrappergradle-wrapper.properties文件distributionUrl=https\://services.gradle.or...

VIM 打开文件乱码解决办法_iconiv illegal input sequence at position_caoshuming_500的博客-程序员秘密

1. vim 打开一个文件查看这个文件的编码方式vim txt...............:set fileencoding #--->fileencoding=lation1(应该是gbk的一种)2.打开一个文件后修改这个文件的编码vim txt.....................:set fileencoding=utf-8 #-->修改问的编码然

linux mbr转换成gpt分区格式,GPT分区格式与MBR格式互相转换的方法_老刘口才的博客-程序员秘密

如今硬盘容量越来越大,传统的MBR硬盘分区模式不能满足发展需要了,现在市面上预装的电脑系统硬盘默认都是GPT分区表(GUID格式),不过在重装系统的时候,经常会遇到无法安装在GPT或MBR硬盘中的问题,那么就需要对硬盘分区格式进行转换,下面给大家带来GPT分区格式与MBR格式互相转换的方法。注意事项:1、分区表转换是针对整块硬盘,一块硬盘包含C、D、E盘等若干分区;2、GPT与MBR之间的转换会清...

Android开发优化 从代码入手_幸福过饱和的博客-程序员秘密

通常我们写程序,都是在项目计划的压力下完成的,此时完成的代码可以完成具体业务逻辑,但是性能不一定是最优化的。一般来说,优秀的程序员在写完代码之后都会不断的对代码进行重构。重构的好处有很多,其中一点...     通常我们写程序,都是在项目计划的压力下完成的,此时完成的代码可以完成具体业务逻辑,但是性能不一定是最优化的。一般来说,优秀的程序员在写完代码之后都会不断的对代码进行重...

磁盘管理、进程管理、文件系统、软硬链接详细文档_weixin_34220963的博客-程序员秘密

项目技术操作文档项目名称:存储管理、进程管理项目需求:1、在企业服务器上安装新硬盘,对磁盘进行分区、格式化、挂载处理2、根据企业服务器数据业务的不同,采用不同的raid技术来保证数据的读写速度、数据安全3、在企业的存储服务器上采用LVM逻辑卷技术来实现容量的动态调整4、在服务器的运维工作中随机对系统进程进行分析和管理项目测试:原理概述:存储管理是系统中必不可少的技术,Linux系统中支持多种...

socket编程二_socket校验_菜鸟之神的博客-程序员秘密

TCP可靠性的实现:(1)校验码(2)接收方反馈(3)信息包附带序号UDP:(1)快 不需要花费时间建立和关闭连接(2)快 偶尔丢失一两个消息包无所谓,但是TCP会严格检查(3)快 UDP的限制是一个信息包不超过64KB的数据TCP和UDP区别就是UDP不建立连接,只保证数据的完整性,数据传输快,但是不保证数据是否真的被收到,也不保证数据是够只接收一次,也不

推荐文章

热门文章

相关标签