自定义博客皮肤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 227

原创 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 317

原创 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 253

原创 2008/08/12 links

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

2008-08-13 09:13:07 152

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 159

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 150

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 139

2008/06/24 links

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

2008-06-24 07:48:01 129

2008/06/23 links

Tidal Enterprise Job Scheduling Software http://www.tidalsoftware.com/products/enterpriseJobScheduling.asp Jing Project http://www.jingproject.com/ Splunk Your Distributed Logs in EC2 http://...

2008-06-23 22:33:30 176

2008/06/19 links

RESTful AJAX with Forgery Protection http://www.metaskills.net/2008/6/18/restful-ajax-with-forgery-protection Functor http://functor.rubyforge.org/ Bulk insertion of data with ActiveRecord ht...

2008-06-19 10:02:47 108

2008/06/13 links

A Concise Guide to Using Thinking Sphinx http://freelancing-gods.com/posts/a_concise_guide_to_using_thinking_sphinx Merb → Mongrel, not Mongrel → Merb http://toolmantim.com/article/2008/5/30/merb...

2008-06-13 10:56:03 117

DM & Merb 快速体验

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

2008-06-05 16:13:16 153

开始使用 merb+dm

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

2008-06-05 13:25:22 123

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 145

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 113

无聊,无题

[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 318

AOM2 组件介绍(一):DataGrid

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

2008-05-22 14:40:59 295

Messaging with Rails

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

2008-04-28 11:18:11 105

2008/04/25 links

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

2008-04-25 11:40:51 106

QuickServer 中接口 ClientCommandHandler 的修改

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

2008-04-08 10:35:57 444

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

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

2008-03-11 13:46:11 292

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

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

2008-03-11 09:42:38 1250

为你的calendar_helper增加ajax功能

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

2008-03-10 12:42:07 244

AOM 初体验(一)

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

2008-03-07 12:24:31 2213

让你的相册炫起来

首先,请先浏览[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 183

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 139

2008/02/16 links

Ruby GUI Toolkits http://www.trug.ca/Ruby_GUI_Toolkits http://developer.amazonwebservices.com/connect/entry.jspa?categoryID=139&externalID=1182 FastSessions Rails Plugin http://blog.kovyrin....

2008-02-16 10:54:40 115

2008/02/01 links

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

2008-02-01 12:50:01 106

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 167

2008/01/17 links

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

2008-01-17 13:37:56 108

[讨论] bot 需求征集中

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

2008-01-16 14:17:44 115

The Rails Way 第一章笔记

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

2008-01-15 15:46:00 187

[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 205

2007/12/21 links

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

2008-01-15 10:13:41 108

2008/01/15 links

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

2008-01-15 10:11:06 121

2008/01/11 links

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

2008-01-11 18:30:28 109

Cache SHOW COLUMNS

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

2008-01-11 16:57:11 172

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 88

Changes in Ruby 1.9

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

2007-12-11 10:02:24 121

2007/12/04 links

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

2007-12-04 11:05:08 101

空空如也

空空如也

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

TA关注的人

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