furby

http://en.wikipedia.org/wiki/Furby

A Furby (plural Furbys or Furbies) is an electronic robotic toy resembling a hamster/owl-like creature which went through a period of being a “must-have” toy following its launch in the holiday season of 1998, with continual sales until 2000. Over 40 million Furbies were sold during the three years of its original production, with 1.8 million sold in 1998, and 14 million in 1999. Its speaking capabilities were translated into 24 languages.

Furbies were the first successful attempt to produce and sell a domestically-aimed robot. A newly purchased Furby starts out speaking entirely Furbish, the unique language that all Furbies use, but is programmed to start using English words and phrases in place of Furbish over time. This process is intended to resemble the process of learning English.[1] In 2005, new Furbies were released, with voice-recognition and more complex facial movements, and many other changes and improvements. The Emoto-Tronic Furbies (Furby, Furby Baby, and Funky Furby) continued to be sold until late 2007, when these toys became extremely rare.[Furby 1] An updated Furby is being sold as of September 2012 for the holiday season.

 

Advertisements

id and object_id

>>a=Student.first

>> a.id
=> 1234567 # No Warnings
>> a.object_id
=> -612177718
>> 1.id
(irb):4: warning: Object#id will be deprecated; use Object#object_id

 

Active record still have id assigned as primary key.

object id is assigned by rails, related to memory address

__FILE

__FILE__ is the filename with extension of the file containing the code being executed.

In foo.rb, __FILE__ would be “foo.rb”.

If foo.rb were in the dir /home/josh then File.dirname(__FILE__) would return /home/josh

chicago style pizza

http://en.wikipedia.org/wiki/Chicago-style_pizza
deep crust (crust是pizza的面包底)
sassy adj。时髦的

consecutive adj. 连续的

IMDB  http://en.wikipedia.org/wiki/Internet_Movie_Database

kick it up a notch

Definition: to make something more exciting, intense, or interesting, as a food dish or a social gathering
Example: kick it up a notch with fresh garlic

one episode of glee per day

An apple martini (appletini for short) is a cocktail containing vodka and one or more of apple juice, apple cider, apple liqueur, or apple brandy. Optionally, vermouth may be included, as in a regular martini. Typically, the apple vodka is shaken or stirred with a sweet and sour mix and then strained into a cocktail glass.

You got stood up.

hump day
Wednesday, or the hump of the week
The absolute BEST day of the week, the day of maximum hope that maybe, you might make it out of this week alive. A particularly good hump day can last you the rest of the week, and by Doomday morning (Monday) you survive by anticipating hump day. Nothing goes wrong on hump day

&& and || in ruby

&& return the first value that is false

&& returns the last value if all are true

irb(main):017:0> 1 && false && 2=> false
irb(main):018:0> 1 && 3 && 2 => 2
irb(main):019:0> 1 && nil && 3=> nil

|| is the opposite of &&

|| returns the first value that is ture; and if all values are false, return the last value

This way makes we can use ||= and &&=