- Oct 16 Fri 2009 14:38
-
[Basic] 一些新手學習 rails 可以當做 example 的 application
Jetpack Blog 10/14 整理了一篇
High Quality Ruby on Rails Example Applications
練功時可以參考別人的寫法
- Oct 16 Fri 2009 14:34
-
[Scale] Scale Frontend 應該注意的五件事
EngineYard Blog 10/13 發表的一篇文章:
Rails in the Wild: 5 Client-Side Performance Observations
五個重點:
1.
It’s easy to forget to compress your JavaScript and CSS
- Oct 16 Fri 2009 14:14
-
[寄信] 使用 Mad Mini 發送電子報
- Oct 14 Wed 2009 18:50
-
[Scale] 使用不同 backend 做 Cache
在開發時,使用 partial 是相當簡潔以及迅速的做法。但這會帶來一個壞處。造成相當多的 db query 以及 render :partial 這個行為帶來的 slow down。
解法是,在 controller 下 find all 時,順便下 :include ,把相關的 model 都拉一拉回來。
至於 partial 這部份,就使用 fragment cache 的做法,把 html 丟進 memcache ..XD。時間到 expire 掉。
這樣噴頁面速度就會相當快。
目前我使用的是
- Oct 14 Wed 2009 18:46
-
[Scale] Rails 接 cluster db
使用
Data Fabric
這個 gem。
這個 gem 的想法是建一個 proxy,先去問 mapping table,然後要資料時 reset db connection 去該負責的 db 拿資料。
- Oct 14 Wed 2009 18:44
-
[Scale] Rails Application 接兩個以上的 db
Splitting up Rails Models to different databases
然後在 lib/tasks/dev.rake 裡寫 override db:create; db:drop 的 rake; 確保重建資料時一致
- Oct 04 Sun 2009 17:31
-
[Trick]多重 asset_host
可指定 asset_host 為 http://asset%d.example.com
或
Yehuda 在
WindyCindyRails 2009
分享的技巧。
- Sep 09 Wed 2009 10:00
-
Plugin: Oink
http://github.com/noahd1/oink/tree/master
Description
Rails plugin and log parser to help narrow down the source(s) of increased memory usage in rails applications.
Synopsis
Oink adds memory and active record instantiation information to rails log during runtime and provides an executable to help digest the enhanced logs.
- Sep 04 Fri 2009 16:33
-
[懶人] Magick Installer
因為 rmagick 在 MacOS 下實在太難裝了。於是有人寫了一支 script 來處理這種惱人的事。
http://github.com/maddox/magick-installer
- Sep 03 Thu 2009 11:15
-
[Scale] 在 Rails Project 對 Database 打 index 應該注意的一些事項
Matt Jankowski provided a great article on properly indexing your database for your Rails application. He covers indexing validation and STI columns, state columns for state machines, association columns, and more.
- Aug 07 Fri 2009 12:43
-
Set Your Server Right
怎樣 SETUP 好你的 production 環境的指南
Set Up Your Server Right, Part 1
- Aug 03 Mon 2009 11:37
-
[Basic] Git Basics at Rails
用 Git 管理 Rails Project 的一些基本指令和 Workflow,一樣也出自 Rails Undergroud。
Git Basics at Rails Underground
View more presentations from Ariejan De vroom.