Jan'uary
activesupport-1.4.4\lib\active_support\inflections.rb
Jan 发表于 2007-11-29 02:46:42
- Inflector.inflections do |inflect|
- inflect.plural(/$/, 's')
- inflect.plural(/s$/i, 's')
- inflect.plural(/(ax|test)is$/i, 'es')
- inflect.plural(/(octop|vir)us$/i, 'i')
- inflect.plural(/(alias|status)$/i, 'es')
- inflect.plural(/(bu)s$/i, 'ses')
- inflect.plural(/(buffal|tomat)o$/i, 'oes')
- inflect.plural(/([ti])um$/i, 'a')
- inflect.plural(/sis$/i, 'ses')
- inflect.plural(/(?:([^f])fe|([lr])f)$/i, '\1ves')
- inflect.plural(/(hive)$/i, 's')
- inflect.plural(/([^aeiouy]|qu)y$/i, 'ies')
- inflect.plural(/(x|ch|ss|sh)$/i, 'es')
- inflect.plural(/(matr|vert|ind)ix|ex$/i, 'ices')
- inflect.plural(/([m|l])ouse$/i, 'ice')
- inflect.plural(/^(ox)$/i, 'en')
- inflect.plural(/(quiz)$/i, 'zes')
- inflect.singular(/s$/i, '')
- inflect.singular(/(n)ews$/i, 'ews')
- inflect.singular(/([ti])a$/i, 'um')
- inflect.singular(/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/i, '\1sis')
- inflect.singular(/(^analy)ses$/i, 'sis')
- inflect.singular(/([^f])ves$/i, 'fe')
- inflect.singular(/(hive)s$/i, '\1')
- inflect.singular(/(tive)s$/i, '\1')
- inflect.singular(/([lr])ves$/i, 'f')
- inflect.singular(/([^aeiouy]|qu)ies$/i, 'y')
- inflect.singular(/(s)eries$/i, 'eries')
- inflect.singular(/(m)ovies$/i, 'ovie')
- inflect.singular(/(x|ch|ss|sh)es$/i, '\1')
- inflect.singular(/([m|l])ice$/i, 'ouse')
- inflect.singular(/(bus)es$/i, '\1')
- inflect.singular(/(o)es$/i, '\1')
- inflect.singular(/(shoe)s$/i, '\1')
- inflect.singular(/(cris|ax|test)es$/i, 'is')
- inflect.singular(/(octop|vir)i$/i, 'us')
- inflect.singular(/(alias|status)es$/i, '\1')
- inflect.singular(/^(ox)en/i, '\1')
- inflect.singular(/(vert|ind)ices$/i, 'ex')
- inflect.singular(/(matr)ices$/i, 'ix')
- inflect.singular(/(quiz)zes$/i, '\1')
- inflect.irregular('person', 'people')
- inflect.irregular('man', 'men')
- inflect.irregular('child', 'children')
- inflect.irregular('sex', 'sexes')
- inflect.irregular('move', 'moves')
- inflect.uncountable(%w(equipment information rice money species series fish sheep))
- end
我没有钱 我不要脸
Jan 发表于 2007-11-26 10:28:49
快乐每一天 ^_^
5 Ways to THANK Your Customers
Jan 发表于 2007-11-26 08:07:38
1. Send them a thank you card after a major purchase. Better if hand written. Along those same lines, send them a birthday card with a coupon. Raise your hand if you get more than a handful of each. Exactly, you will stand out.2. Make your rewards program simple. Give people what they want by letting them choose among options. Hilton Honors does that by letting you choose among a combination of either HH basis points per dollar spent or a combination of basis points and miles.
3. Use your data base for them, not against them. Select a loyal customer at random and surprise them with a free gift or a discount. Refrain from congratulating your customers for being loyal with yet another sales pitch. Just send the gift.
4. Put a person with a nice smile and a good attitude in your customer facing roles -- returns, service, support. Pay them well and you get to keep them, and your customers.
5. Tell your customers how you’ve implemented their suggestions. What better way to communicate with a customer than that where you show them you were listening. There is no sweeter gift.
看到一个经典
Jan 发表于 2007-11-23 01:07:51
"这句俗话是
:谎言重复千遍,就成了真理。 从这句俗话当中,得到了这样一个结论:凡是重复出现上千次的论调
,往往不因为它是真理,而是因为它可疑。"
西湖印象
Jan 发表于 2007-11-17 02:54:50

昨天晚上去看了《印象西湖》,老谋子在杭州搞的反自然景观。我是真的觉得很爽啊。。。昨天正好下雨,烟雨朦朦的,特别有感觉,非笔墨所能形容,带去了相机也没用,那种效果一定要现场才能体会。有一阵子仿佛自己进入了暴雪大作的开头动画,那水雾效果粒子效果光晕效果绝对要顶级显卡外加物理加速才能渲染出来;一个个舞台角色梦幻一般,完全是动画的感觉,但是外形和动作又光滑的要人老命,没有恒河沙数多的多边形怎么可能做到,爽毙。
张靓颖的歌也很好听哦。
ps. 因为下雨,看台上的观众都发了雨披穿着,于是往看台望去的时候很有一种置身苹果经典广告《1984》中的诡异感觉
再ps. tmd怎么youtube还没解封?
Gmail新版增加的最伟大的新功能
Jan 发表于 2007-11-16 23:22:24
这种细节上的贴心真是要人老命啊~~ 太销魂了。
zz“明知其不可为而为之”是人生的一个境界
Jan 发表于 2007-11-15 21:49:56
http://www.lgao.org/?p=141
大家都是平头老百姓了,都是 普普通通的人,而我们也有一定的理想,有我们生活中想要坚持的信条。
然而我们实在是太渺小了,世界之大,我们的努力真的是微不足道。
看到采访一个环境保护者,她在不遗余力的保护生态环境。采访者问道:你真的相信你能阻挡人类对环境的破坏么, 你真的相信你得努力会有很重要的作用么?这位环境保护者平静的说:”我是明知其不可为而为之“。
做 事情,做未知的事情,每个人都有不同的对未知事物的恐惧和能否做好的疑虑。而做一件非常困难的事,一件很大的事,一件使任何个人努力都显得很渺小的事,一 件人们肯定会说“算了吧,你做了又有什么用呢,又能对事件产生什么影响呢“的事。大部分人在没有做之前就已经决定不去做了。
如果一个人还能 够坚持做这样一件事,一定是参透了这个道理,达到了这个境界,明知其不可为而还要为之,证明了这个人已经在自己的内心深处找到了做这个事情的力量,“明知 其不可“为是外界的一个判断,而还要“为之“是因为他在寻求自己做这件事情的理由时,并没有向外界寻找,而是从自己的内心找到了做这个事情的力量。而这个时候,内心是平静的,坦然的。
这是一种几乎悲壮的心态,而参透了,把它变成一种平静的心态,这应该是达到了人生做事情的一个境界。

