Continue reading “ruby版本的discuz自动注册机”

ruby watir安装


gem update --system
gem install watir


C:\ruby\bin>gem update –system
Updating RubyGems…
Attempting remote update of rubygems-update
Install required dependency builder? [Yn]  Y
ERROR:  While executing gem … (Gem::GemNotFoundException)
    Could not find builder (>= 0) in any repository
Continue reading “ruby watir安装”

2009最好的jQuery Plugins[插件]

During the past few weeks we’ve been publishing our “Best of 2009″ series in which we’ve shown you the best WordPress themes, fonts, icons, andPhotoshop Tutorials. In this article, our focus is on jQuery. Over the past couple of years jQuery has been growing in popularity, which means more and more plugins are being created to make web designers’ lives easier. Here are our favorites from 2009.


Continue reading “2009最好的jQuery Plugins[插件]”


1、I asked God for a bike, but I know God doesn’t work that way. So I stole a bike and asked for forgiveness.
开始我直接求上帝赐辆自行车。 后来我琢磨上帝办事儿不是这个路数。 于是老子偷了一辆然后求上帝宽恕。

2、I want to die peacefully in my sleep, like my grandfather.. Not screaming and yelling like the passengers in his car.
我希望能像爷爷那样,安静地在睡梦中死去…… 而不是要像他开的车上那些惨叫滴乘客一样死法啊!

3、Do not argue with an idiot. He will drag you down to his level and beat you with experience.

4、The last thing I want to do is hurt you. But it’s still on the list.


5、If sex is a pain in the ass, then you’re doing it wrong…
a. 如觉嘿咻乃屁眼不能承受之痛,那是你操错洞…

b. 若XXOO是下体的痛,那么,是你操错。

6、The early bird might get the worm, but the second mouse gets the cheese.

a. 早起滴小鸟有虫虫!晚到的老鼠有奶酪!

b. 早起的鸟儿有虫吃,早起的虫儿被鸟吃。

7、We live in a society where pizza gets to your house before the police.

8、Having sex is like playing bridge. If you don’t have a good partner, you’d better have a good hand.
XXOO就象打桥牌。 如果对手不好使,自己的手必须好使。

9、 Some people are like Slinkies … not really good for anything, but you can’t help smiling when you see one tumble down the stairs.
有些人就像 Slinkies (弹簧玩具),没什么实在用处,但看他们在楼梯上倒腾来捣腾去还是很有喜感。

10、Politicians and diapers have one thing in common. They should both be changed regularly, and for the same reason.

11、War does not determine who is right – only who is left.

12、Women might be able to fake orgasms. But men can fake a whole relationship.
a. 女人的高潮可能是装出来的。但是男人TMD可以整段感情都是装出来的!

b. 女人假装高潮以获取真实的感情;男人假装感情以获取真实的高潮。

13、We never really grow up, we only learn how to act in public.

14、Men have two emotions: Hungry and Horny. If you see him without an erection, make him a sandwich.
男人就两种状态:饿 和 性饥渴。 要是他不硬,就给他个三明治!

15、Light travels faster than sound. This is why some people appear bright until you hear them speak.

16、My mother never saw the irony in calling me a son-of-a-bitch.

17、I thought I wanted a career, turns out I just wanted paychecks.

18、If you think nobody cares if you’re alive, try missing a couple of payments.

19、Sex is not the answer. Sex is the question. “Yes” is the answer.

20、Evening news is where they begin with ‘Good evening’, and then proceed to tell you why it isn’t.

21、How is it one careless match can start a forest fire, but it takes a whole box to start a campfire?

22、If 4 out of 5 people SUFFER from diarrhea… does that mean that one enjoys it?

23、Knowledge is knowing a tomato is a fruit; Wisdom is not putting it in a fruit salad.

24、If God is watching us, the least we can do is be entertaining.

25、Never, under any circumstances, take a sleeping pill and a laxative on the same night.

26、I didn’t fight my way to the top of the food chain to be a vegetarian

27、A bus station is where a bus stops. A train station is where a train stops. On my desk, I have a work station..

28、If I agreed with you we’d both be wrong.

29、 Did you know that dolphins are so smart that within a few weeks of captivity, they can train people to stand on the very edge of the pool and throw them fish?

30、A computer once beat me at chess, but it was no match for me at kick boxing.
a. 下棋,我不行;玩跆拳道,电脑不行!
b. 下象棋电脑把我玩得团团转,拳击我能把机箱踹得七零八散!

31、I saw a woman wearing a sweat shirt with “Guess” on it…so I said “Implants?”

32、 Children: You spend the first 2 years of their life teaching them to walk and talk. Then you spend the next 16 years telling them to sit down and shut-up.

33、Why does someone believe you when you say there are four billion stars, but check when you say the paint is wet?

34、Better to remain silent and be thought a fool, than to speak and remove all doubt.
a. 宁愿闭嘴当傻瓜,也别学乌鸦乱呱呱。
b. 越解释越SB,不说话最NB。
c. 剽悍的人生不需要解释
d. 宁可闭口被人当SB,也不张口解释所有疑。

35、A bank is a place that will lend you money, if you can prove that you don’t need it.

36、Laugh at your problems, everybody else does.

b. 你有什么不开心的?说出来给大家开心开心。

37、The voices in my head may not be real, but they have some good ideas!
a. 我知道没人在我脑子里跟我聊天,但那些话真TM有用!

38、A clear conscience is usually the sign of a bad memory.
a. 无愧于心哈?记性不好吧?
意译b: 自从那次在人妖身边醒来,每次去夜店我都提醒自己“一定要戴眼镜……”
c. 意识清醒了,意味着不堪回首了。

39、Good girls are bad girls that never get caught.
a. 所谓的好姑娘,咳!就是还没被群众抓到的JP女·····
b. 想立牌坊就得会装

40、He who smiles in a crisis has found someone to blame.

41、 Women will never be equal to men until they can walk down the street with a bald head and a beer gut, and still think they are sexy.

42、The shinbone is a device for finding furniture in a dark room.

43、The main reason Santa is so jolly is because he knows where all the bad girls live.

44、To steal ideas from one person is plagiarism. To steal from many is research.

45、Some cause happiness wherever they go. Others whenever they go.

46、 I discovered I scream the same way whether I’m about to be devoured by a great white shark or if a piece of seaweed touches my foot.

47、Crowded elevators smell different to midgets.

48、I didn’t say it was your fault, I said I was blaming you.

49、 Whenever I fill out an application, in the part that says “If an emergency, notify:” I put “DOCTOR”. What’s my mother going to do?
当我填表的时候,有一项是“紧急情况联系:” 我填上了“医生”,到时候我妈能帮上什么忙?!

50、God must love stupid people. He made SO many.

51、Behind every successful man is his woman. Behind the fall of a successful man is usually another woman.

52、I always take life with a grain of salt, …plus a slice of lemon, …and a shot of tequila.
意译b: 生活,不就是先狂吃菜,然后把烈性白酒一饮而尽?

53、The sole purpose of a child’s middle name, is so he can tell when he’s really in trouble.

54、It’s not the fall that kills you; it’s the sudden stop at the end.

55、Artificial intelligence is no match for natural stupidity.

56、Never hit a man with glasses. Hit him with a baseball bat.
意译: 要下手就得狠,甭来毛毛雨。

57、There’s a fine line between cuddling and holding someone down so they can’t get away.

其他译法:抱摔是留不住女人的,搂抱才管用。/抱和爆是有区别的。 /推倒和拥抱是有微妙的区别的哟!/拥抱和柔道里的压制是有区别的!

58、A bargain is something you don’t need at a price you can’t resist.

59、Never get into fights with ugly people, they have nothing to lose.

60、My opinions may have changed, but not the fact that I am right.

61、My psychiatrist told me I was crazy and I said I want a second opinion. He said okay, you’re ugly too.
心理医师:你神经病!!! 我:能说点别的吗?

62、 A little boy asked his father, “Daddy, how much does it cost to get married?” Father replied, “I don’t know son, I’m still paying.”

63、 Some people say “If you can’t beat them, join them”. I say “If you can’t beat them, beat them”, because they will be expecting you to join them, so you will have the element of surprise.

64、When in doubt, mumble.

65、I intend to live forever. So far, so good.

66、Hospitality: making your guests feel like they’re at home, even if you wish they were

67、If at first you don’t succeed, skydiving is not for you!

68、A TV can insult your intelligence, but nothing rubs it in like a computer.

69、Knowledge is power, and power corrupts. So study hard and be evil.

70、Money can’t buy happiness, but it sure makes misery easier to live with.

71、Always borrow money from a pessimist. He won’t expect it back.

72、Worrying works! 90% of the things I worry about never happen.

73、Virginity is like a soapbubble, one prick and it is gone.

74、Nostalgia isn’t what it used to be.

75、With sufficient thrust, pigs fly just fine.
信春哥 ,得永生

76、I should’ve known it wasn’t going to work out between my ex-wife and me. After all, I’m a Libra and she’s a bitch.

77、Hallmark Card: “I’m so miserable without you, it’s almost like you’re still here.”

78、You’re never too old to learn something stupid.
越活越2~ /活到老,2到老

79、A diplomat is someone who can tell you to go to hell in such a way that you will look forward to the trip.

80、 I got in a fight one time with a really big guy, and he said, “I’m going to mop the floor with your face.” I said, “You’ll be sorry.” He said, “Oh, yeah? Why?” I said, “Well, you won’t be able to get into the corners very well.”
我和个壮汉闹急了。 他:老子非得用你丫脸把地给擦了!!! 我:你会后悔的!! 他:噢?真哒?怎么讲? 我:呃,边边角角的地方你擦不到!!!

81、Some people hear voices.. Some see invisible people.. Others have no imagination whatsoever.

82、I like work. It fascinates me. I sit and look at it for hours.
啊我好爱好爱工作啊~ 工作让我好着迷啊~我TMD死盯着它几个小时了啊!

83、We have enough gun control. What we need is idiot control.

84、Women may not hit harder, but they hit lower.

85、Just remember…if the world didn’t suck, we’d all fall off.

86、Jesus loves you, but everyone else thinks you’re an asshole.

87、I used to be indecisive. Now I’m not sure.
a. 过去老子左右为难。现在老子优柔寡断。
b. 我曾是个怀疑论者,现在我很怀疑这一点。
c. 过去我难以决断,现在我不大确信是否还是如此。

88、I don’t trust anything that bleeds for five days and doesn’t die.

89、If you keep your feet firmly on the ground, you’ll have trouble putting on your pants.

90、To be sure of hitting the target, shoot first and call whatever you hit the target.

91、 You are such a good friend that if we were on a sinking ship together and there was only one life jacket… I’d miss you heaps and think of you often.

92、Going to church doesn’t make you a Christian any more than standing in a garage makes you a car.

93、Change is inevitable, except from a vending machine.

94、If you are supposed to learn from your mistakes, why do some people have more than one child.

95、A bus is a vehicle that runs twice as fast when you are after it as when you are in it.

96、Whoever coined the phrase “Quiet as a mouse” has never stepped on one.

97、You do not need a parachute to skydive. You only need a parachute to skydive twice.

98、The difference between an oral thermometer and a rectal thermometer is in the taste.

99、When tempted to fight fire with fire, remember that the Fire Department usually uses water.

100、Remember, if you smoke after sex you’re doing it too fast.


  1. C# Parameter Modifiers
    Parameter Modifier Meaning in Life
    (None) If a parameter is not marked with a parameter modifier, it is assumed to be
    passed by value, meaning the called method receives a copy of the original
    out Output parameters must be assigned by the method being called (and
    therefore are passed by reference). If the called method fails to assign
    output parameters, you are issued a compiler error.
    ref The value is initially assigned by the caller and may be optionally reassigned
    by the called method (as the data is also passed by reference). No compiler
    error is generated if the called method fails to assign a ref parameter.
    params This parameter modifier allows you to send in a variable number of
    arguments as a single logical parameter. A method can have only a single
    params modifier, and it must be the final parameter of the method.
  2. To define a nullable variable type, the question mark symbol (?) is suffixed to the underlying
    data type. Do note that this syntax is only legal when applied to value types. If you attempt to create
    a nullable reference type (including strings), you are issued a compile-time error. Like a nonnullable
    variable, local nullable variables must be assigned an initial value:
    static void LocalNullableVariables()
    // Define some local nullable types.
    int? nullableInt = 10;
    double? nullableDouble = 3.14;
    bool? nullableBool = null;
    char? nullableChar = ‘a’;
    int?[] arrayOfNullableInts = new int?[10];
    // Error! Strings are reference types!
    // string? s = "oops";
  3. The ?? Operator
    The final aspect of nullable types to be aware of is that they can make use of the C# ?? operator.
    This operator allows you to assign a value to a nullable type if the retrieved value is in fact null. For
    this example, assume you wish to assign a local nullable integer to 100 if the value returned from
    GetIntFromDatabase() is null (of course, this method is programmed to always return null, but I
    am sure you get the general idea):
    static void Main(string[] args)
    Console.WriteLine("***** Fun with Nullable Data *****\n");
    DatabaseReader dr = new DatabaseReader();

    // If the value from GetIntFromDatabase() is null,
    // assign local variable to 100.
    int? myData = dr.GetIntFromDatabase() ?? 100;
    Console.WriteLine("Value of myData: {0}", myData.Value);
  4. Defining Static Classes
    Since the release of .NET 2.0, the C# language expanded the scope of the static keyword by introducing
    static classes. When a class has been defined as static, it is not creatable using the new
    keyword, and it can contain only members or fields marked with the static keyword
  5. Understanding Read-Only Fields
    Closely related to constant data is the notion of read-only field data (which should not be confused
    with a read-only property). Like a constant, a read-only field cannot be changed after the initial
    assignment. However, unlike a constant, the value assigned to a read-only field can be determined
    at runtime, and therefore can legally be assigned within the scope of a constructor (but nowhere
  6. The sealed Keyword
    C# supplies another keyword, sealed, that prevents inheritance from occurring. When you mark a
    class as sealed, the compiler will not allow you to derive from this type. For example, assume you
    have decided that it makes no sense to further extend the MiniVan class:
    // This class cannot be extended!
    sealed class MiniVan : Car
  7. Sealing Virtual Members

    sometimes you may not wish to seal an entire class, but simply want to prevent
    derived types from overriding particular virtual methods. For example, assume we do not want
    part-time salespeople to obtain customized bonuses. To prevent the PTSalesPerson class from overriding
    the virtual GiveBonus() method, we could effectively seal this method in the SalesPerson
    class as follows:
    // SalesPerson has sealed the GiveBonus() method!
    class SalesPerson : Employee

    public override sealed void GiveBonus(float amount)

    Here, SalesPerson has indeed overridden the virtual GiveBonus() method defined in the
    Employee class; however, it has explicitly marked it as sealed. Thus, if we attempted to override this
    method in the PTSalesPerson class:
    sealed class PTSalesPerson : SalesPerson
    public PTSalesPerson(string fullName, int age, int empID,
    float currPay, string ssn, int numbOfSales)
    :base (fullName, age, empID, currPay, ssn, numbOfSales)
    // No bonus for you! Error!
    public override void GiveBonus(float amount)
    // Rats. Can’t change this method any further.
    we receive compile-time errors.

  8. Obtaining Interface References: The as Keyword
    The second way you can determine whether a given type supports an interface is to make use of the
    as keyword, which was first introduced in Chapter 6. If the object can be treated as the specified
    interface, you are returned a reference to the interface in question. If not, you receive a null reference.
  9. Obtaining Interface References: The is Keyword
  10. The unsafe Keyword
    When you wish to work with pointers in C#, you must specifically declare a block of “unsafe code”
    using the unsafe keyword (any code that is not marked with the unsafe keyword is considered “safe”
    automatically). For example, the following Program class declares a scope of unsafe code within the
    safe Main() method:
    class Program
    static void Main(string[] args)
    // Work with pointer types here!
    // Can’t work with pointers here!