You are viewing gugod

On Vox: 橫濱山下公園


這的確是個很直接的地方。

P1010932P1010946P1010915P1010977P1010984P1020010P1020028P1010888P1010889P1010895P1010893P1010906P1010933

海邊的公園裡,主旋律是常時停泊在岸邊的大船,離岸稍遠、仍在水面活動的船則是間奏。興奮過頭,跑在媽媽前面的小娃兒令人期待,像裝飾音。不走不飛,而是坐在地上的鴿子與樹影正好畫成二、四分休止符。而當你的目光放在身旁唸書的女、樹下散步的情侶、路過休憩的單車騎士團、在草地上練身體的男、讓人大呼驚奇的街頭藝人、以及青春閃閃的吉他二重唱。
你領悟到自已是在賦格裡。

大家各顧各的,但造成整個公園的美好。


Originally posted on gugod.vox.com

Jobs about this framework


Recenty used Rails for $work, and came up this function to make it more convenient to retrieve remote records in a many-to-many relationship with a join-table used to saved the relationship and it'll takes a .map-conversion away to get the actual records.

Here's what we came up:
module AsynapseSupport
def has_(prefix, item)
prefix = prefix.to_s
item = item.to_s

sy = "#{prefix}_#{item}"
mo = sy.camelcase.singularize

self.class_eval <
has_many :_#{sy}, :class_name => "#{mo}"
def #{sy}
_#{sy}.map { |f| f.#{item.singularize} }
end
EOE
end
end
If your mixin this module in your ActiveRecord::Base, then you can say this in your user.rb model class:
  has_ :favorite, :chatrooms
It'll make an favorite_chatrooms method to retrieve a list of "Chatroom" instead of retrieving a list of "FavoriteChatroom", which is the behaviour if you say:
  has_many :favorite_chatrooms
Our has_ method, although seems to be a controversial name, is pretty handy to deal with many-to-many relationship.

Project asynapse: http://code.google.com/p/asynapse/

Help me choose!





The battey of my MacbookPro starts go bad. Besides exchange current one from apple store, I want to know if it's worth it to buy an extra one.

Help me choose!

Don't, it's not worth it.

Buy an extra battery, that's really handy.

Before you click, give us some idea of why you feel that way.

[Comments]

Doxory

Tags:

8 days a week.


As Google calculates that "8 (days a week) = 1.14285714", this long week is indeed over. Now we're at ground zero, hopefully everything can only go better, and I just realized that this is the first cup of coffee ever since the beginning.

The actual usage of USB Missile Launcher.


YAPC::Asia rocks because a guy just  fired his boss  an USB missile rocks too in the lighting talk and everyone see that happening from the guy's webcam in his office.

Tags:

Latest Month

September 2008
S M T W T F S
 123456
78910111213
14151617181920
21222324252627
282930    

Syndicate

RSS Atom
Powered by LiveJournal.com
Designed by Lilia Ahner