自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(257)
  • 收藏
  • 关注

原创 2009/0217 links

Prefer Guard Clauses over nested conditionals:[url]http://www.thechrisoshow.com/2009/2/16/using-guard-clauses-in-your-ruby-code[/url][url]http://www.refactoring.com/catalog/replaceNestedConditio...

2009-02-17 09:44:05 174

原创 2008/11/07 links

如何使用 memcached 做快取:[url]http://ihower.idv.tw/blog/archives/1768[/url]Rockstar Memcaching:[url]http://www.infoq.com/presentations/lutke-rockstar-memcaching[/url]使用Mochiweb构建百万级Comet程序,第一篇:[url]...

2008-11-07 10:07:51 205

原创 2008/10/13 links

merbcamp:http://merbist.com/http://www.merboverheard.com/http://rubypond.com/articles/2008/10/11/merbcamp---notes-from-the-edge/http://rubypond.com/articles/2008/10/12/merbcamp---day-2/http:...

2008-10-13 09:18:48 196

原创 2008/08/12 links

Ruby 1.9: What to Expect:http://slideshow.rubyforge.org/ruby19.htmlMigrating to Ruby 1.9:http://www.rubyinside.com/migrating-to-ruby-19-876.html

2008-08-13 09:13:07 110

Haml&Radius 不错

[b][size=medium]Haml[/size][/b]http://haml.hamptoncatlin.com/今天花了点时间读了遍Reference:http://haml.hamptoncatlin.com/docs/rdoc/classes/Haml.html对haml的印象彻底改变了,说句老实话,之前懒得看这个东西,一直认为它没啥意思,今天才发现,使用他,代码简洁...

2008-08-12 14:52:06 123

2008/06/30 links

cheat sheets.http://cheat.errtheblog.com/http://cheat.errtheblog.com/s/datamapper/More Named Scope Awesomeness http://www.pathf.com/blogs/2008/06/more-named-scope-awesomeness/Security (...

2008-06-30 09:22:20 101

Code Review&JRuby on Rails

在emule上发现的,共享下。javaeye不准许交流这东西,我们瞧瞧的 :D 嘘...[img]http://mmm.iteye.com/upload/picture/pic/16531/81d186c0-dc09-32c0-84e4-c29654e99960.png[/img]...

2008-06-24 08:07:13 87

2008/06/24 links

http://weblog.hypotheticalabs.com/http://munin.projects.linpro.no/

2008-06-24 07:48:01 77

2008/06/23 links

Tidal Enterprise Job Scheduling Softwarehttp://www.tidalsoftware.com/products/enterpriseJobScheduling.aspJing Projecthttp://www.jingproject.com/Splunk Your Distributed Logs in EC2http://...

2008-06-23 22:33:30 120

2008/06/19 links

RESTful AJAX with Forgery Protectionhttp://www.metaskills.net/2008/6/18/restful-ajax-with-forgery-protectionFunctorhttp://functor.rubyforge.org/Bulk insertion of data with ActiveRecordht...

2008-06-19 10:02:47 67

2008/06/13 links

A Concise Guide to Using Thinking Sphinxhttp://freelancing-gods.com/posts/a_concise_guide_to_using_thinking_sphinxMerb → Mongrel, not Mongrel → Merbhttp://toolmantim.com/article/2008/5/30/merb...

2008-06-13 10:56:03 88

DM & Merb 快速体验

发觉她们很有趣,今天开始学习并使用。http://datamapper.orgWhy DataMapper?http://datamapper.org/why.html一:通过irb快速体验DM安装[code]gem sources -a http://gems.datamapper.orgsudo gem install data_objects ...

2008-06-05 16:13:16 97

开始使用 merb+dm

很帮,感觉很好。上次听了John的merb演讲,当时还没怎么感兴趣,今天自己试了一把,感觉来了 :D 于是乎决定开始使用。merb+dm+thin(mongrel)。

2008-06-05 13:25:22 87

do_mysql problem

[quote]martin@martin-laptop:~/$ sudo gem install data_objects do_sqlite3 do_mysql dm-core dm-more..........Building native extensions. This could take a while...ERROR: Error installing do_my...

2008-06-05 11:16:32 98

2008/06/04 links

http://www.lycom.de/past/2008/6/5/rails-2-1-2008-06-04/http://www.dcmanges.com/blog/rails-21-partial-updates-may-create-invalid-records

2008-06-05 09:59:16 67

无聊,无题

[code="ruby"]LOCATION_CODE = %w{110000 110100 110101 110102 110103 110104 110105 110106 110107 110108 110109 110111 110112 110113 110114 110115 110116 110117 110200 110228 110229 120000 120100 12010...

2008-06-04 11:40:26 135

AOM2 组件介绍(一):DataGrid

DataGrid 应该是最常用的组件之一,第一篇我们先来介绍AOM2组件之DataGrid.我们先来回顾下之前的做法:[code="java"]@Bindprivate List grid;[/code]然后直接在页面上编码,显示数据。[code="xml"] [/code]AOM2的对DataGrid 进行了重新设计,主要通过...

2008-05-22 14:40:59 227

Messaging with Rails

周六在SOR上的PPT,有兴趣的同学一起研究。

2008-04-28 11:18:11 76

2008/04/25 links

http://jonathanleighton.com/blog/rails-delegate-default-optionhttp://code.google.com/p/scope-out-rails/http://rubyforge.org/projects/starling/http://stomp.codehaus.org/http://activemq....

2008-04-25 11:40:51 70

QuickServer 中接口 ClientCommandHandler 的修改

ClientCommandHandler 中的原gotConnected,closingConnection,lostConnection在1.4.5已经转移到ClientEventHandler 中。而原有的ClientCommandHandler 仅有一个handleCommand。原有Guide也应该相应的做修改为:[code="java"]public class EchoCo...

2008-04-08 10:35:57 394

Elite教程系列(二):模式匹配 Pattern Matching

模式匹配(Pattern Matching),这个已经不是什么新的概念了,很多语言都是,包括现在大家都在学习的erlang.今天我来讨论下elite中的模式匹配。首先来个例子:[code]define [a,b] = ['1',[1,2,3]]a->printb->print[/code]a,b 分别和 a ,[1,2,3] 匹配。执行上面的代码输出...

2008-03-11 13:46:11 240

Elite教程系列(一):快速上手

一:什么是Elite.更多的信息,你可以查看 [url]http://www.operamasks.org[/url] 浏览二:关于本教程的目录初步的打算:第一篇:快速上手第二篇:数据类型及其控制语句第三篇:内置函数及其扩展第四篇:集成AOM的应用第五篇:独立使用第六篇:思考今天我们先来熟悉下Elite长的什么样子,第一篇:快速上手三:安装...

2008-03-11 09:42:38 1084

为你的calendar_helper增加ajax功能

一:前提 [url]http://nubyonrails.com[/url] 提供的calendar_helper 并不支持ajax,而在我们平常应用,经常需要这样的功能:仅仅加载局部的日历。二:动手其实很简单,就是通过Ajax.Updater来更新日历即可。第一步:修改calendar_helper 第100行起的代码,为:[code] cal = %(...

2008-03-10 12:42:07 180

AOM 初体验(一)

AOM2.0M1在2月2号就发布了:[quote]Apusic OperaMasks 2.0 M1 发布1. 升级到Ext2.02. IoVC编程模型支持3. 无状态支持4. 增强调试辅助5. 完善的布局组件6. 组件快速开发支持[/quote]还有就是现在地球人都知道的:约定优先配置(Convention Over Configuration),A...

2008-03-07 12:24:31 1192

让你的相册炫起来

首先,请先浏览[url]http://www.piclens.com/[/url],安装Firefox或IE的插件默认已经支持了很多的网站。[img]http://www.piclens.com/site/images/p-piclens-brands.png[/img]怎么使用?[url]http://www.piclens.com/site/firefox/tutori...

2008-02-22 17:06:03 150

2008/02/18 links

Mechanize[url]http://mechanize.rubyforge.org/mechanize/[/url][url]http://tenderlovemaking.com/category/mechanize/[/url]Cookes 相关[url]http://snippets.dzone.com/tag/cookies[/url] Snarl[u...

2008-02-18 11:40:38 90

2008/02/16 links

Ruby GUI Toolkitshttp://www.trug.ca/Ruby_GUI_Toolkitshttp://developer.amazonwebservices.com/connect/entry.jspa?categoryID=139&externalID=1182FastSessions Rails Pluginhttp://blog.kovyrin....

2008-02-16 10:54:40 72

2008/02/01 links

http://nubyonrails.com/articles/better-reporting-with-sparklineshttp://nubyonrails.com/pages/sparklineshttp://www.dsg4.com/04/extra/bitmap/

2008-02-01 12:50:01 62

Yet another chart plugin

图表的插件已经越来越多了,连google也提供了相应的api,今天我们再来折腾一个。这个插件基于Open Flash Chart:http://teethgrinder.co.uk/open-flash-chart/官方文档中提到了rails相关插件,其中有一个http://pullmonkey.com/写的,能用,但是感觉代码混乱,并且每次都会include一个swfobject.j...

2008-01-24 13:53:05 117

2008/01/17 links

http://acts-as-solr.rubyforge.org/http://acts-as-solr.railsfreaks.com/acts_as_solrhttp://www.quarkruby.com/http://www.quarkruby.com/2007/8/12/acts_as_solr-for-search-and-facetinghttp://www.q...

2008-01-17 13:37:56 72

[讨论] bot 需求征集中

一直想做个小机器人当小工具,但总是没有时间,现在终于空闲下来,又再一次开始重新考虑这个问题 目标:rails 开发者的小助手,譬如rdoc查询,插件查询,snippet code的黏贴等等,并且可以考虑实现其他Twitter 后者饭否等功能等,终止目的就是能作为贴心的小助手,开发中可能用到的功能都可以考虑在内。 不知道大家有没有其他好的需求。======...

2008-01-16 14:17:44 85

The Rails Way 第一章笔记

Chapter 1 : Rails Environments and Configuration这一章 主要讲基本的配置一些东西,我随便的做了些笔记,加上了一些补充说明。希望对新手有帮助。或者你可以当作Tips来看:)Enjoy.一:Enviroment ModeRails 有三种models:test,development,production,默认为development...

2008-01-15 15:46:00 132

[Rails 常用插件简介] Exception Logger

你是如何处理你的Exception呢?在使用Exception Notifier([url]http://mmm.iteye.com/blog/116862[/url])么?今天来介绍另外一个Exception Logger。[b][size=medium]0:Exception Logger 是什么[/size][/b]顾名思义,就是记录你的exception。保存在数据库中...

2008-01-15 11:20:16 149

2007/12/21 links

http://softiesonrails.com/2007/12/19/diff-is-great-microsoft-not-so-much

2008-01-15 10:13:41 74

2008/01/15 links

Another Ruby and Rails Screencasts:http://www.rubyplus.org/assert_efficient_sqlhttp://www.oreillynet.com/ruby/blog/2008/01/assert_efficient_sql.htmlRuby Script for SVN commit notification ...

2008-01-15 10:11:06 84

2008/01/11 links

http://mysqldump.azundris.com/archives/72-Rubyisms.html

2008-01-11 18:30:28 70

Cache SHOW COLUMNS

今天recity发布第二版本,优化了半天,终于达到一个稍微满意的速度,闲下来也写了篇bllog轻松下:)这个东西据说在production已经cache了,是的,确实是的!今天主要的目的是折腾 :) 于是乎google一把,看有没有现成的plugin,呵呵,俺想偷懒 :D没找到plugins,但是找到一个不错的patch:http://dev.rubyonrails.o...

2008-01-11 16:57:11 141

Simplest Ruby BeanUtils:)

[code]module BeanUtils RESERVE_INSTANCE_KEY = %w{id attributes_cache new_record} #copy properties def cp(dest) dest = dest.new if dest.is_a?(Class) copy = lambda{|h| h.each{|k...

2007-12-28 16:21:28 60

Changes in Ruby 1.9

http://eigenclass.org/hiki/Changes+in+Ruby+1.9

2007-12-11 10:02:24 85

2007/12/04 links

http://www.ibm.com/developerworks/cn/top10/?ca=drs-tp4707http://www.smartleaf.com/rst/perm_present/perm_present.htmlhttp://www.deprec.org/http://rethink.unspace.ca/2007/12/3/merb-tastic

2007-12-04 11:05:08 57

空空如也

空空如也

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

TA关注的人

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