Archive for ‘Ruby’ Category

09
Nov

Merb 1.0 Released

Merb - a much heralded, highly flexible Ruby-based Web application framework - has reached version 1.0 after two years of development. Congratulations to Merb’s creator, Ezra Zygmuntowicz, and to the large group of associated developers (such as Yehuda Katz and Matt Aimonetti) who’ve kept adding features and pushed Merb forward to be a significant alternative [...]

04
Nov

Use Fastri to increase the speed of Ruby ri

gem install fastri
fastri-server -b
the first line install the gem,second line make ruby doc indexs.
Usage: qri keyword

04
Nov

Thinking Sphinx on Windows

In one of my Ruby on Rails projects, I needed a full-text search engine to integrate. And after some research, I decided that Thinking Sphinx is the way to go. It seemed simple, fast and well documented. Unfortunately, I had some issues when tried to get it running on Windows.
The first step is installing [...]

31
Oct

ruby email validation regex expression

this Regex Expression can handle ‘-’ character in Ruby email validation
^\w+((-\w+)|(\-)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$
Ruby Regex Expression test tool : http://www.rubular.com/
BTW:only test in ruby.
感谢ashchan 提供了可以支持Gmail 标签的正则表达式,经测试效果也不错,如下:
/^([^@\s!#\$%\^&\(\)]+)@((?:[-a-z0-9A-Z]+\.)+[a-zA-Z]{2,})$/

10
Sep

Shoes, a Tiny Toolkit Of Ruby

Shoes is a very informal graphics and windowing toolkit. It’s for making regular old apps that run on Windows, Mac OS X and Linux. It’s a blend of my favorite things from the Web, some Ruby style, and a sprinkling of cross-platform widgets. (More in the README, or at the newshoooes.net!)
click here , you can find [...]

    About

    Tag Cloud