<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6368365122336531619</id><updated>2011-10-03T21:59:23.256-07:00</updated><category term='ruby'/><category term='free software'/><category term='brains'/><category term='math'/><category term='diy'/><category term='food'/><category term='rails'/><category term='programming'/><category term='mac'/><category term='tutorial'/><category term='captchas'/><category term='ror'/><category term='america'/><category term='freelancing'/><category term='insanity'/><category term='osx'/><category term='independent contractors'/><category term='hours'/><category term='widgets'/><category term='beginner'/><title type='text'>randomness in my head</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://staycek.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://staycek.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>STAYCE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_lovpfad01PM/SSTaGhWF5rI/AAAAAAAAAGQ/pgnklUQP45U/S220/31082008421.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6368365122336531619.post-7178459174923995267</id><published>2010-06-03T21:08:00.000-07:00</published><updated>2010-06-03T21:17:32.978-07:00</updated><title type='text'>SF vs LA</title><content type='html'>Wanted to use a trip planer and get big blue bus information bc it's so much more awesomer than the LA metro bus.  So yeah, anyway the BBB website is at least 5 years out of date and running asp.  it looks pretty difficult to scrape and they are going to put their data into open-format one of these days... after the city council vote to redesign the site&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;span style="font-style:italic;"&gt;&lt;a href="http://greenlagirl.com/los-angeles-gets-google-transit/#comment-450400"&gt;quote from 2009 email&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Hey there, Green LA Girl (and Readers) –&lt;br /&gt;&lt;br /&gt;Big Blue Bus has been working diligently towards bringing our information on to Google Transit for over a year. We are finally in the home stretch with the vendor who provides our scheduling software, and expect to be part of Google Transit within this calendar year.&lt;br /&gt;&lt;br /&gt;On a related note, the proposal to redesign BBB’s website goes before City Council on July 28. With their approval, we’ll be able to rebuild the site to include online, real-time bus information and a trip planner similar to what you find at http://www.Metro.net, among many other helpful features.&lt;br /&gt;&lt;br /&gt;I promise to keep you posted as our technology and services develop.&lt;br /&gt;&lt;br /&gt;Thanks to you all for riding!&lt;br /&gt;Linda Gamberg&lt;br /&gt;Big Blue Bus&lt;br /&gt;linda.gamberg@smgov.net&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Bart on the otherhand has &lt;blockquote&gt;&lt;span style="font-style:italic;"&gt;&lt;a href="http://www.bart.gov/schedules/developers/appcenter.aspx"&gt;more apps than you can shake a stick at&lt;/a&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;*sigh*&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6368365122336531619-7178459174923995267?l=staycek.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/7178459174923995267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/7178459174923995267'/><link rel='alternate' type='text/html' href='http://staycek.blogspot.com/2010/06/sf-vs-la.html' title='SF vs LA'/><author><name>STAYCE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_lovpfad01PM/SSTaGhWF5rI/AAAAAAAAAGQ/pgnklUQP45U/S220/31082008421.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6368365122336531619.post-3744870427273148375</id><published>2010-05-16T22:26:00.000-07:00</published><updated>2010-05-17T00:20:12.757-07:00</updated><title type='text'>On Ruby Lesson 4</title><content type='html'>&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;Extra Credit:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;How do I put a variable in a string?&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Declare a variable called myname and put my name the string into it.&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#006600;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;b&gt;&gt;&gt; name = "Stayce"&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;b&gt;=&gt; "Stayce"&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;It looks like Ruby understood me, but let's double check&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;b&gt;&gt;&gt; name&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;b&gt;=&gt; "Stayce"&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'courier new', serif;color:#009900;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: 'lucida grande', serif; font-weight: normal; "&gt;But now we need to learn some funny characters to be able to make ruby understand how to tell the difference between our variable called name (which is set to Stayce) and the rest of the text in a string.  The characters ruby looks for to know how to interpret a variable first, then print the string is #{}.  &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'courier new', serif;color:#009900;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: 'lucida grande', serif; font-weight: normal; "&gt;So the Ruby program is running along, listening to your commands, and when it sees a "quote it knows a string is coming.  Ruby prints out each character including spaces, then it sees a #hash followed by a {curly-bracket!  Ruby stops reading the string, instead it looks up the value of your variable, finds out it's a string, prints that and then goes back to printing the rest of your string until it reaches the close quotes". Ruby's smart, but it can't read minds, so you have to do it this way.  &lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'courier new', serif;color:#009900;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: 'lucida grande', serif; font-weight: normal; "&gt;Anyway, here's how to use those characters so you can print variables inside your strings.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'courier new', serif;color:#009900;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;b&gt;&gt;&gt;"My name is #{name}"&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;b&gt;=&gt; "My name is Stayce"&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;Lesson 4 - More Ruby classes&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;&lt;b&gt;Some other interesting classes are Time and Date.  &lt;/b&gt;Time has some methods you will use often.  Let's check out the Time class and use the .now method.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new', serif; color: rgb(0, 153, 0); font-weight: bold; "&gt;&gt;&gt;Time.now&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'lucida grande', serif; "&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;b&gt;=&gt; Sun May 16 23:22:27 -0700 2010&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'courier new', serif;color:#009900;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: 'lucida grande', serif; font-weight: normal; "&gt;Cool, Ruby tells time.  What about the Date class?  The .now method doesn't work on the Date class, but the .today method does.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'courier new', serif;color:#009900;"&gt;&lt;b&gt;&lt;div&gt;&gt;&gt; Date.today&lt;/div&gt;&lt;div&gt;=&gt; #&lt;date:&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'lucida grande', serif;color:#000000;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;That looks like a computer date.  Let's see it in English using the .to_s method&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'lucida grande', serif;color:#000000;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: 'courier new', serif; color: rgb(0, 153, 0); font-weight: bold; "&gt;&gt;&gt; Date.today.to_s&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;=&gt; "2010-05-16"&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'lucida grande', serif;color:#000000;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;div&gt;So what are these Time and Date classes?  They are classes of their own.  Dates and Times are stored differently than Fixnums and Strings and Floats.  They are important enough to have their own sets of methods, so they have their own class.  But what class does their class belong to?&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'courier new', serif;color:#009900;"&gt;&lt;b&gt;&lt;div&gt;&gt;&gt; Date.class&lt;/div&gt;&lt;div&gt;=&gt; Class&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;wtf?!  Date belongs to the Class class?  What does that even mean?  Classes can belong to other classes so they can inherit their parent classes characteristics.  That way you don't have to repeat yourself if you have similar "child classes".  You can think of why this makes sense if you think of a real world example like classifying animals. Mammals inherit from the Animal class, Dogs inherit from the Mammal class, PitBulls inherit from the Dog class.  So when you add Fido to the PitBull class, you don't need to specify that he has four legs, fur, warm blood, and needs to be walked.  All of those characteristics would be inherited from the parent classes Mammal and Dog.  Whew!  That was a lot to explain, but what about the Class class?  "&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px; "&gt;All metaclasses are instances of the class `&lt;a href="http://ruby-doc.org/core/classes/Class.html" style="background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(238, 238, 255); color: rgb(0, 51, 153); text-decoration: none; background-position: initial initial; "&gt;Class&lt;/a&gt;’. " &lt;span class="Apple-style-span" style="font-family: 'lucida grande', serif; font-size: 16px; "&gt;That's better explained here: &lt;a href="http://ruby-doc.org/core/classes/Class.html"&gt;Class: Class&lt;/a&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'courier new', serif;color:#009900;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'courier new', serif;color:#009900;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;b&gt;Symbols&lt;/b&gt; - Symbols are another class of objects you use a lot in Ruby on Rails.  Before we talk about what Ruby on Rails even is, let's make a couple of symbols to see what they look like.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Symbols are similar to strings but they do not inherit from the String class. &lt;i&gt; &lt;span class="Apple-style-span"  style=" ;font-family:'times new roman', serif;"&gt;I'm jumping ahead of myself here, but if you bother to decipher that last sentence you can maybe guess that classes can inherit properties from other classes;)  &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman', serif;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;You create a symbol using the colon, then name it like this&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt; &lt;b&gt;&gt;&gt;:dog&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'courier new', serif;color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;You can tell it's in the symbol class by appending .class and checking what irb returns.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'courier new', serif;color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;div&gt;&gt;&gt; :dog.class&lt;/div&gt;&lt;div&gt;=&gt; Symbol&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'courier new', serif;color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Why you would want use symbols and what they really are is coming up later.  Oh, you really want to know now?  Are you sure? Just skip ahead if you don't care yet.  (Click to show/hide)  &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Well, in RoR (that's ruby on rails) you often use symbols as:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;keys for hashes or to pass named arguments to methods&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;User.find(:all, :conditions =&gt; "admin = true")&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;&lt;span class="Apple-style-span"  style=" ;font-size:medium;"&gt;as flags for state values&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#339999;"&gt;&lt;span class="Apple-style-span"   style="color: rgb(17, 0, 0);   line-height: 18px; font-family:Arial, FreeSans, Helvetica, sans-serif;font-size:12px;"&gt;&lt;pre class="ruby" style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; white-space: pre; font: normal normal normal 1em/normal 'andale mono', 'lucida console', monospace; line-height: 1.333; width: auto; clear: none; overflow-x: visible; overflow-y: visible; font-family: monospace; "&gt;&lt;span class="Apple-style-span" style="font-size: small; "&gt;user = User.&lt;/span&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial;  vertical-align: baseline; color: rgb(153, 0, 204); "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;/pre&gt;&lt;pre class="ruby" style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; white-space: pre; font: normal normal normal 1em/normal 'andale mono', 'lucida console', monospace; line-height: 1.333; width: auto; clear: none; overflow-x: visible; overflow-y: visible; font-family: monospace; "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;user.&lt;/span&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial;  vertical-align: baseline; color: rgb(153, 0, 204); "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;role&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; = &lt;/span&gt;&lt;span style="font-weight: bold; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial;  vertical-align: baseline; color: rgb(255, 51, 51); "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;:admin&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#339999;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#339999;"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0); "&gt;To represent other classes in Active Record&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#339999;"&gt;&lt;span class="Apple-style-span"   style="color: rgb(17, 0, 0);   border-collapse: collapse; line-height: 18px; font-family:Arial, FreeSans, Helvetica, sans-serif;font-size:12px;"&gt;&lt;pre class="ruby" style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; white-space: pre; font: normal normal normal 1em/normal 'andale mono', 'lucida console', monospace; line-height: 1.333; width: auto; clear: none; overflow-x: visible; overflow-y: visible; font-family: monospace; "&gt;&lt;span style="font-weight: bold; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial;  vertical-align: baseline; color: rgb(153, 102, 204); "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;class&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; User &lt;/span&gt;&lt;span style="font-weight: bold; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial;  vertical-align: baseline; color: rgb(0, 102, 0); "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt; &lt;/span&gt;&lt;span style="font-weight: bold; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial;  vertical-align: baseline; color: rgb(102, 102, 255); "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;ActiveRecord::Base&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;   &lt;/span&gt;&lt;/pre&gt;&lt;pre class="ruby" style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; white-space: pre; font: normal normal normal 1em/normal 'andale mono', 'lucida console', monospace; line-height: 1.333; width: auto; clear: none; overflow-x: visible; overflow-y: visible; font-family: monospace; "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;has_and_belongs_to_many &lt;/span&gt;&lt;span style="font-weight: bold; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial;  vertical-align: baseline; color: rgb(255, 51, 51); "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;:roles&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;   &lt;/span&gt;&lt;/pre&gt;&lt;pre class="ruby" style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; white-space: pre; font: normal normal normal 1em/normal 'andale mono', 'lucida console', monospace; line-height: 1.333; width: auto; clear: none; overflow-x: visible; overflow-y: visible; font-family: monospace; "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;belongs_to &lt;/span&gt;&lt;span style="font-weight: bold; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial;  vertical-align: baseline; color: rgb(255, 51, 51); "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;:group&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;   &lt;/span&gt;&lt;/pre&gt;&lt;pre class="ruby" style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; white-space: pre; font: normal normal normal 1em/normal 'andale mono', 'lucida console', monospace; line-height: 1.333; width: auto; clear: none; overflow-x: visible; overflow-y: visible; font-family: monospace; "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;has_many &lt;/span&gt;&lt;span style="font-weight: bold; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial;  vertical-align: baseline; color: rgb(255, 51, 51); "&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;:friends&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="ruby" style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; white-space: pre; font: normal normal normal 1em/normal 'andale mono', 'lucida console', monospace; line-height: 1.333; width: auto; clear: none; overflow-x: visible; overflow-y: visible; font-family: monospace; "&gt;&lt;span class="Apple-style-span"  style="color:#FF3333;"&gt;&lt;span class="Apple-style-span" style="font-size: small; line-height: 13px;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="ruby" style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; white-space: pre; font: normal normal normal 1em/normal 'andale mono', 'lucida console', monospace; line-height: 1.333; width: auto; clear: none; overflow-x: visible; overflow-y: visible; font-family: monospace; "&gt;&lt;span class="Apple-style-span"    style="font-family:'lucida grande', serif;font-size:130%;color:#000000;"&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; font-size: 16px; line-height: normal; white-space: normal;"&gt;That's a peek at some ruby on rails code.  You can't run that code in your irb yet because we haven't talked about data yet.  Programming usually involves storing data...not just typing stuff in a terminal that gets deleted when you close the window.   We'll get to data later.  Let's keep learning about Ruby.&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="ruby" style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; white-space: pre; font: normal normal normal 1em/normal 'andale mono', 'lucida console', monospace; line-height: 1.333; width: auto; clear: none; overflow-x: visible; overflow-y: visible; font-family: monospace; "&gt;&lt;span class="Apple-style-span"    style="font-family:'lucida grande', serif;font-size:130%;color:#000000;"&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; font-size: 16px; line-height: normal; white-space: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="ruby" style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; white-space: pre; font: normal normal normal 1em/normal 'andale mono', 'lucida console', monospace; line-height: 1.333; width: auto; clear: none; overflow-x: visible; overflow-y: visible; font-family: monospace; "&gt;&lt;span class="Apple-style-span"   style="font-family:'lucida grande', serif;color:#000000;"&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; line-height: normal; white-space: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;Lesson 5 - &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="ruby" style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; white-space: pre; font: normal normal normal 1em/normal 'andale mono', 'lucida console', monospace; line-height: 1.333; width: auto; clear: none; overflow-x: visible; overflow-y: visible; font-family: monospace; "&gt;&lt;span class="Apple-style-span"    style="font-family:'lucida grande', serif;font-size:130%;color:#000000;"&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; font-size: 16px; line-height: normal; white-space: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="ruby" style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; white-space: pre; font: normal normal normal 1em/normal 'andale mono', 'lucida console', monospace; line-height: 1.333; width: auto; clear: none; overflow-x: visible; overflow-y: visible; font-family: monospace; "&gt;&lt;span class="Apple-style-span"   style="font-family:'lucida grande', serif;color:#000000;"&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; line-height: normal; white-space: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;Instance Variables&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="ruby" style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; white-space: pre; font: normal normal normal 1em/normal 'andale mono', 'lucida console', monospace; line-height: 1.333; width: auto; clear: none; overflow-x: visible; overflow-y: visible; font-family: monospace; "&gt;&lt;span class="Apple-style-span"   style="font-family:'lucida grande', serif;color:#000000;"&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; font-size: large; line-height: normal; white-space: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="ruby" style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; white-space: pre; font: normal normal normal 1em/normal 'andale mono', 'lucida console', monospace; line-height: 1.333; width: auto; clear: none; overflow-x: visible; overflow-y: visible; font-family: monospace; "&gt;&lt;span class="Apple-style-span"   style="font-family:'lucida grande', serif;color:#000000;"&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; line-height: normal; white-space: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;Earlier we made variables by typing a word then the =equals sign then a string in "quotes &lt;span class="Apple-style-span" style="font-family: 'courier new', 'lucida console', monospace; color: rgb(0, 102, 0); font-weight: bold; "&gt;&gt;&gt; firstname = "Stayce"&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: 'lucida grande', serif; font-weight: normal; "&gt; or a number &lt;span class="Apple-style-span" style="font-family: 'courier new', 'lucida console', monospace; color: rgb(0, 102, 0); font-weight: bold; "&gt;&gt;&gt; age = &lt;span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: 'lucida grande', serif; font-weight: normal; "&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="ruby" style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; white-space: pre; font: normal normal normal 1em/normal 'andale mono', 'lucida console', monospace; line-height: 1.333; width: auto; clear: none; overflow-x: visible; overflow-y: visible; font-family: monospace; "&gt;&lt;span class="Apple-style-span"   style="font-family:'lucida grande', serif;color:#000000;"&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; font-size: medium; line-height: normal; white-space: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="ruby" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; white-space: pre; font: normal normal normal 1em/normal 'andale mono', 'lucida console', monospace; line-height: 1.333; width: auto; clear: none; overflow-x: visible; overflow-y: visible; "&gt;&lt;span class="Apple-style-span"   style="font-family:'courier new', 'lucida console', monospace;color:#006600;"&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; font-size: medium; line-height: normal; white-space: normal;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="ruby" style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; white-space: pre; font: normal normal normal 1em/normal 'andale mono', 'lucida console', monospace; line-height: 1.333; width: auto; clear: none; overflow-x: visible; overflow-y: visible; font-family: monospace; "&gt;&lt;span class="Apple-style-span"   style="font-family:'lucida grande', serif;color:#000000;"&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; font-size: medium; line-height: normal; white-space: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="ruby" style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; white-space: pre; font: normal normal normal 1em/normal 'andale mono', 'lucida console', monospace; line-height: 1.333; width: auto; clear: none; overflow-x: visible; overflow-y: visible; font-family: monospace; "&gt;&lt;span class="Apple-style-span"    style="font-family:'lucida grande', serif;font-size:130%;color:#000000;"&gt;&lt;span class="Apple-style-span" style="border-collapse: separate; font-size: 16px; line-height: normal; white-space: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="ruby" style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; white-space: pre; font: normal normal normal 1em/normal 'andale mono', 'lucida console', monospace; line-height: 1.333; width: auto; clear: none; overflow-x: visible; overflow-y: visible; font-family: monospace; "&gt;&lt;span class="Apple-style-span"  style="color:#FF3333;"&gt;&lt;span class="Apple-style-span" style="font-size: small; line-height: 13px;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class="ruby" style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; outline-width: 0px; outline-style: initial; outline-color: initial; vertical-align: baseline; white-space: pre; font: normal normal normal 1em/normal 'andale mono', 'lucida console', monospace; line-height: 1.333; width: auto; clear: none; overflow-x: visible; overflow-y: visible; font-family: monospace; "&gt;&lt;span class="Apple-style-span"  style="color:#FF3333;"&gt;&lt;span class="Apple-style-span" style="font-size: small; line-height: 13px;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman', serif;"&gt;&lt;span class="Apple-style-span"  style=" ;font-size:medium;"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6368365122336531619-3744870427273148375?l=staycek.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/3744870427273148375'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/3744870427273148375'/><link rel='alternate' type='text/html' href='http://staycek.blogspot.com/2010/05/on-ruby-lesson-4.html' title='On Ruby Lesson 4'/><author><name>STAYCE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_lovpfad01PM/SSTaGhWF5rI/AAAAAAAAAGQ/pgnklUQP45U/S220/31082008421.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6368365122336531619.post-7495811051181825097</id><published>2010-05-16T19:15:00.000-07:00</published><updated>2010-05-16T22:21:45.418-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ruby'/><category scheme='http://www.blogger.com/atom/ns#' term='ror'/><category scheme='http://www.blogger.com/atom/ns#' term='rails'/><category scheme='http://www.blogger.com/atom/ns#' term='tutorial'/><category scheme='http://www.blogger.com/atom/ns#' term='programming'/><category scheme='http://www.blogger.com/atom/ns#' term='beginner'/><title type='text'>On Ruby and learning what programming is</title><content type='html'>&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;People often ask me to teach them a beginner's lesson on Ruby on Rails.  I don't want to say..."well you need to learn how web pages work, then how servers work, then HTML basics, and then maybe some javascript, then maybe you could understand what ruby on rails does."  Sure, that path may be good for web designers, but what about people who are just interested in what it &lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;is&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;? &lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;So here goes...Lesson ONE:  You will need a mac, or patience and googling skills to proceed on a PC.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 320px; height: 170px;" src="http://4.bp.blogspot.com/_lovpfad01PM/S_Cr0lv_0rI/AAAAAAAAAMo/BkCCSvTnS9Q/s320/Screen+shot+2010-05-16+at+7.30.58+PM.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5472062467230126770" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;Open up your terminal application on your mac. &lt;span class="Apple-style-span"  style=" ;font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman', serif;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;&lt;span class="Apple-style-span"  style=" ;font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;(Command then Space bar to search, then type terminal, and click it to open the app)&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;This is your command line.  You can customize it however you want... like 1990's hacker style with green text on black&lt;i&gt;...um, yeah!&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 157px;" src="http://3.bp.blogspot.com/_lovpfad01PM/S_CqtGuUUlI/AAAAAAAAAMg/e9cuR1VV-vE/s320/Screen+shot+2010-05-16+at+7.31.15+PM.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5472061239130870354" /&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;Now type: &lt;/span&gt;&lt;span style="font-weight:bold;"&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;&lt;span class="Apple-style-span"  style="color:#006600;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;irb&lt;/span&gt;&lt;/span&gt; &lt;span class="Apple-style-span" style="font-weight: normal;"&gt;in the terminal.  That's it...just those &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-weight:bold;"&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;3 letters. Then hit return/enter.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-weight:bold;"&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;irb stands for Interactive Ruby, i = interactive, rb = ruby.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;&lt;br /&gt;Okay, so what you just did is start a ruby interpreter so you can speak ruby to your computer.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;I know, I know, you don't speak rub&lt;/i&gt;y.  Well, it's just like learning Spanish or Greek or whatever. It's another language, and it's easy to get started speaking a little.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;How do you know it has started?&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'lucida grande', serif;color:#006600;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'lucida grande', serif;color:#006600;"&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;The command usually never tells you if something you tell it works.  It only tells you if something has errors.  But in this case we see that t&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0); "&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;he cursor (&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;prompt&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;) changed to these little double arrow things.&lt;/span&gt;  &lt;span class="Apple-style-span"  style="color:#006600;"&gt;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'lucida grande', serif;color:#006600;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'lucida grande', serif;color:#006600;"&gt;(&lt;span class="Apple-style-span"  style="color: rgb(0, 0, 0);  font-size:small;"&gt;If it didn't, and you see an error message instead, then you don't have ruby on your mac, and you need to google how to get it...sorry.)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;&lt;br /&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 160px;" src="http://1.bp.blogspot.com/_lovpfad01PM/S_Cwj3e_g-I/AAAAAAAAAMw/ZVt7VBj8mr4/s320/Screen+shot+2010-05-16+at+7.56.48+PM.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5472067677491004386" /&gt;So, where were we.  we were about to start speaking ruby to our computer.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;First, let's type a number and ask the computer how it would classify what we entered.  &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;Type: &lt;span class="Apple-style-span"  style="color:#009900;"&gt;1.class &lt;/span&gt;then press return.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" ;font-family:'lucida grande', serif;"&gt;The computer replies &lt;span class="Apple-style-span"  style="color:#009900;"&gt;=&gt; Fixnum&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'lucida grande', serif;color:#009900;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;Any guesses here?  Fixnum sounds like English, almost.  And so does Class.  Well, you're right.  Ruby is &lt;i&gt;close to English.&lt;/i&gt;  Before we figure out what a class is, let's ask the computer how it classifies a few more things we can type.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_lovpfad01PM/S_CyTBDsFJI/AAAAAAAAAM4/t2NIUM21Sj8/s1600/Screen+shot+2010-05-16+at+8.03.26+PM.png"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 320px; height: 155px;" src="http://3.bp.blogspot.com/_lovpfad01PM/S_CyTBDsFJI/AAAAAAAAAM4/t2NIUM21Sj8/s320/Screen+shot+2010-05-16+at+8.03.26+PM.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5472069587026318482" /&gt;&lt;/a&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande', serif;"&gt;Go to town.  Type whatever you want followed by &lt;span class="Apple-style-span"  style="color:#009900;"&gt;.class &lt;/span&gt;and see how many classes you can figure out from the computer.  You can see what I typed on the right.  For instance, if you type another &lt;i&gt;integer &lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;(1, 2, 3, 4, 5...10, 1000000, 99929292, etc) &lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;you get another &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;&lt;span class="Apple-style-span" style="font-style: normal;"&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Fixnum&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;span class="Apple-style-span" style=" font-style: normal; "&gt;&lt;span class="Apple-style-span"  style="color:#33CC00;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&gt;&gt; 1.class&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33CC00;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;=&gt; Fixnum&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33CC00;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&gt;&gt; 2.class&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33CC00;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;=&gt; Fixnum&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33CC00;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&gt;&gt; 43.class&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#33CC00;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;=&gt; Fixnum&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'courier new', serif;color:#33CC00;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'courier new', serif;color:#33CC00;"&gt;&lt;span class="Apple-style-span"  style="color: rgb(0, 0, 0);  font-family:'lucida grande', serif;"&gt;Maybe you typed in a price (like $1.25 or a &lt;i&gt;decimal &lt;/i&gt;like 42.2222)&lt;i&gt;, &lt;/i&gt;and&lt;i&gt; &lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;span class="Apple-style-span"  style="font-family:'times new roman';"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;&lt;span class="Apple-style-span" style="font-style: normal; "&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;you got back &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;&lt;span class="Apple-style-span" style="font-style: normal; "&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Float&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'lucida grande', serif;color:#009900;"&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new', serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new', serif;"&gt;&lt;div&gt;&gt;&gt; 1.25.class&lt;/div&gt;&lt;div&gt;=&gt; Float&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" ;font-family:'lucida grande', serif;"&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&gt;&gt; 42.2222.class&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;=&gt; Float&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color: rgb(0, 0, 0);  font-family:'lucida grande', serif;"&gt;What if you wanted to use .25, like 25 cents, or a quarter of something.  You need to start the number with a zero like this.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'lucida grande', serif;color:#000000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'lucida grande', serif;color:#000000;"&gt;&lt;span class="Apple-style-span"  style=" color: rgb(0, 153, 0); font-family:'courier new', serif;"&gt;&lt;div&gt;&gt;&gt; 0.25.class&lt;/div&gt;&lt;div&gt;=&gt; Float&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color: rgb(0, 0, 0);  font-family:'lucida grande', serif;"&gt;You can't start it with a &lt;/span&gt;&lt;span class="Apple-style-span"  style=" ;font-family:'lucida grande', serif;"&gt;. &lt;span class="Apple-style-span"  style="color:#000000;"&gt;because you will confuse the computer.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'lucida grande', serif;color:#000000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color: rgb(0, 0, 0);  font-family:'lucida grande', serif;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color: rgb(0, 0, 0);  font-family:'lucida grande', serif;"&gt;&lt;span class="Apple-style-span"  style=" color: rgb(0, 153, 0); font-family:'courier new', serif;"&gt;&gt;&gt; .25.class&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;SyntaxError: compile error&lt;/div&gt;&lt;div&gt;(irb):10: no .&lt;digit&gt; floating literal anymore; put 0 before dot&lt;/digit&gt;&lt;/div&gt;&lt;div&gt;.25.class&lt;/div&gt;&lt;div&gt; ^&lt;/div&gt;&lt;div&gt;(irb):10: syntax error, unexpected '.'&lt;/div&gt;&lt;div&gt;.25.class&lt;/div&gt;&lt;div&gt; ^&lt;/div&gt;&lt;div&gt;        from (irb):10&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#000000;"&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;Remember, Your mac will tell you when it can't figure something out.  In the case of .25, it tells you exactly what to do if you read the error closely enough.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'lucida grande', serif;color:#000000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_lovpfad01PM/S_C2mFvh1WI/AAAAAAAAANA/-44O8cFpaYQ/s1600/Screen+shot+2010-05-16+at+8.22.32+PM.png"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 158px;" src="http://4.bp.blogspot.com/_lovpfad01PM/S_C2mFvh1WI/AAAAAAAAANA/-44O8cFpaYQ/s320/Screen+shot+2010-05-16+at+8.22.32+PM.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5472074312747963746" /&gt;&lt;/a&gt;&lt;span class="Apple-style-span"   style="font-family:'lucida grande', serif;color:#000000;"&gt;Okay, most everyone probably saw an error after typing a word, followed by .class.  Something like this&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'lucida grande', serif;color:#000000;"&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&gt;&gt; stayce.class&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;NameError: undefined local variable or method `stayce' for main:Object&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;        from (irb):11&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;Ruby knows numbers by default.  It knows what to do with them too.  It's kinda like a boring calculator...until you know what to do with it.  By the way if you find calculators exciting you can stop reading and paint the town red.  type 1 + 1 -1000.027383 * 3.14 / 42 and you will get your answer.  You can even use algebraic parentheses in there so you can divide pie by 42 then add, or whatever order you like.  There's some output, but it makes ruby look kinda lame so far, so don't stop with the math refresher course.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&gt;&gt; 1 + 1 -1000.027383 * 3.14 / 42&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;=&gt; -72.7639519671429&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&gt;&gt; 1 + (1 -1000.027383) * (3.14 / 42)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;=&gt; -73.689190062381&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Let's get back to words for a moment.  How do we use names and sentences in the Ruby language if the computer can't classify them?  And what is a class anyway?  And what exactly is a float, or a fixnum?  &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Floating Point Number and Fixed Numbers are kinds of numbers, Fixed Numbers are integers like 1, 20, and 2030818383, and floats are numbers with decimals.&lt;i&gt;  If you took math in high school, you probably remember hearing about them;) &lt;/i&gt; Ruby has different kinds of &lt;i&gt;Classes&lt;/i&gt; for numbers because it treats different numbers differently.  Each class has some rules and characteristics so Ruby knows how to handle all objects in a certain class.  Almost everything in Ruby is an object.  Whatever you type that ruby accepts becomes an object and gets classified as some class.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Another kind of Class is a string.  "Strings" is how ruby classifies text you give it.  To tell Ruby that you want to use a string, you put it in quotes like this:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&gt;&gt; "stayce".class&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;=&gt; String&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&gt;&gt; 'stayce'.class&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;=&gt; String&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;You can use single or double quotes to encapsulate your new string.  You can even use spaces, so long as your string begins and ends with quotes.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&gt;&gt; "My name is Stayce".class&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;=&gt; String&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;Are you bored yet?  Wanna learn a little more?  First let's do a checkin to make sure I've explained myself.  You should be learning that your mac has an interpreter called IRB.  You can type commands in the Ruby programming language into it and it will return what you ask it in Ruby.  Ruby has built-in classes, and when you give ruby an object it classifies your object into one of these built-in classes and tells you which kind, or else it throws an error.  Integers are fixnums, decimals are floats, and text objects are called strings.  Ruby uses these classification to know things about the objects in a class.  In the same way we know all dogs can have four legs, fur, and bark; Ruby knows all strings can have letters, numbers, punctuation, and should retain capitalization and spacing, where as members of the fixnums or floats classes can be added together or multiplied because they are kinds of numbers.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;So, pause for a moment and carve out a neural pathway for the terms Class and Object.  Don't stop and google these terms.  Make your own definitions based on your learning experience using the terminal.  Remember and understand, even if it's a loose understanding that "&lt;b&gt;Objects are members of a Class&lt;/b&gt;".  Let's go on to lesson 2.&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" ;font-size:x-large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;Lesson 2 - Methods&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Classes have methods to go with them.  That sentence probably means nothing to you so let's examine it in the terminal.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I'm going to make an object of my name, Stayce.  Stayce is not a number, right?  It's a string, so I need to put it in quotes.  Remember when we typed:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&gt;&gt; "Stayce".class&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;=&gt; String&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;That checked to see what class "Stayce" is.  We asked what class by appending .class, and Ruby said it's a string.  This time we know my name is a string, so let's use a string method on it.  Strings have lots of methods built into Ruby.  They all have names that are close to what they do.  Let's try the length string method.  This method tells you how many characters are in a string.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&gt;&gt; "Stayce".length&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;=&gt; 6&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;My name is 6 characters long.  I wonder how many characters are in my full name?  What if I type my full name in between the quotes and then call the length method?  Will Ruby count the space?  Yes, it will.  Spaces count as characters in Ruby.  There's probably a method to count letters in Ruby, but I don't know it because there are at least a hundred string methods.&lt;span class="Apple-style-span"  style="color:#009900;"&gt;  &lt;/span&gt;Luckily you can look them up here: &lt;a href="http://ruby-doc.org/core/classes/String.html"&gt;Class: String&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Can you use a string method on another class?  Remember the number 2 belongs to the fixnum class, and "stayce" belongs to the string class.  What happens if you try to use a String Class Method like .length on a FixNum Class object like the number 2?&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&gt;&gt; 2.length&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;NoMethodError: undefined method `length' for 2:Fixnum&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;        from (irb):21&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;That's an easy error message to decipher right?  Undefined method &lt;i&gt;length&lt;/i&gt; for 2, a member of the Fixnum class.  You probably didn't think that would work.  We need to use Fixnum methods on objects from the Fixnum class.  Find the length of characters in a number doesn't sound like a common problem, so it's not enabled by default.  You could write your own method, or you could choose a Fixnum method to use instead that might do something more interesting.  Let's look at a couple of number methods.  There's 118 methods to choose from, but most of them involve math so it's kinda boring.  Let's try to find a cool one...how about one with a question?&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&gt;&gt; 7.even?&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;=&gt; false&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;It's probably obvious i think what you are asking here.  &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&gt;&gt; 13.odd?&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;=&gt; true&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;When you have a method that ends in a question, you are looking for something called a boolean response.  Boolean means it can have one of only 2 values, usually written in english as true or false.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Let's get back to our silly question of how do you count the characters in a number if the .length method only works on strings?  Well, you use a converter method to convert your fixnum to a string, then you can use the string method to count it.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&gt;&gt;  42.to_s.length&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;=&gt; 2&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The .to_s method works on objects in number classes like Fixnum and converts them to strings.  Then we can use the .length string method to find out how many characters are in the string "42".&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;We could also put the number 42 in quotes before we call the string method length, to force the computer to treat 42 like a string instead of a fixnum.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&gt;&gt; "42".length&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;=&gt; 2&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'courier new', serif;color:#009900;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;One last thing to do with numbers. Let's change an integer to a float class. What if we have the number 23 but we want to store it as a decimal, like 23.0 so that it can be classified with all the other floats. We can convert it to a float using the fixednum method .to_f which stands for to float. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&gt;&gt; 23.to_f&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;=&gt; 23.0&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&gt;&gt; 23.0.class&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;=&gt; Float&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'courier new', serif;color:#009900;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;That's it.  Not much to recap here.  Find out what kind of class your object is by typing .class.  Look up methods you can use on that class.  Change the class of an object.  Chain methods together and see them operated in order, like you did with this one &lt;span class="Apple-style-span"  style=" color: rgb(0, 153, 0); font-family:'courier new', serif;"&gt;42.to_s.length.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'courier new', serif;color:#009900;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;Lesson 3 Variables&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:x-large;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;Remember variables from math class?  Finding the value of x?  Well, you don't need to find the value of anything right now.  We're going to be setting the value of our variables in Ruby.  Why would you use a variable?  Well, sometimes it's shorter to call something by an acronym.  In my silly example, I'll pretend I make a website for the &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;California Dental Hygienists' Association.  I don't want to type all that out all the time.  I'll make a variable called cdha.  I'll make it a string so I can store all the text with the capitals and spacing.  To declare a variable, regardless of what type, just type what you want to call it, followed by the equals sign.  You don't need quotes around the variable or the = sign.  In my case I want to store the string &lt;span class="Apple-style-span"  style=" ;font-size:16px;"&gt;C&lt;i&gt;alifornia Dental Hygienists' Association&lt;/i&gt;&lt;/span&gt;, so I wrap my string in double quotes so Ruby is prepared to take classify my object as a string.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:'lucida grande';"&gt;In the IRB prompt in your terminal type in a variable-- make up your own like &gt;&gt; name = "your name"&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&gt;&gt; cdha = "California Dental Hygienists' Association"&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;=&gt; "California Dental Hygienists' Association"&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style=" ;font-size:medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;Now you can refer back to your variable with the short form.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'courier new', serif;color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;div&gt;&gt;&gt; cdha&lt;/div&gt;&lt;div&gt;=&gt; "California Dental Hygienists' Association"&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&gt;&gt; cdha.length&lt;/div&gt;&lt;div&gt;=&gt; 41&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&gt;&gt; cdha.class&lt;/div&gt;&lt;div&gt;=&gt; String&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You can also do operations on your variables like:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&gt;&gt; name = "Stayce Kavanaugh"&lt;/div&gt;&lt;div&gt;=&gt; "Stayce Kavanaugh"&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&gt;&gt; name&lt;/div&gt;&lt;div&gt;=&gt; "Stayce Kavanaugh"&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Maybe I want to add the string Hello to my name.  I'll remember to include a space after the hello string.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'courier new', serif;color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;div&gt;&gt;&gt; "Hello " + name&lt;/div&gt;&lt;div&gt;=&gt; "Hello Stayce Kavanaugh"&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Remember name is a variable and not a new string.  Ruby already knows what class name is, so you don't need to use quotes on your variable.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-family:'courier new', serif;color:#009900;"&gt;&lt;span class="Apple-style-span"  style="font-size:medium;"&gt;&lt;span class="Apple-style-span"   style="color: rgb(0, 0, 0);   font-family:'lucida grande', serif;font-size:16px;"&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;&gt;&gt; name.class&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:'courier new';"&gt;&lt;span class="Apple-style-span"  style="color:#009900;"&gt;=&gt; String&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;You can make as many variables as you like and store any data in there.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6368365122336531619-7495811051181825097?l=staycek.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/7495811051181825097'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/7495811051181825097'/><link rel='alternate' type='text/html' href='http://staycek.blogspot.com/2010/05/learning-to-program.html' title='On Ruby and learning what programming is'/><author><name>STAYCE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_lovpfad01PM/SSTaGhWF5rI/AAAAAAAAAGQ/pgnklUQP45U/S220/31082008421.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_lovpfad01PM/S_Cr0lv_0rI/AAAAAAAAAMo/BkCCSvTnS9Q/s72-c/Screen+shot+2010-05-16+at+7.30.58+PM.png' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-6368365122336531619.post-6557436797051261125</id><published>2009-12-14T20:44:00.000-08:00</published><updated>2009-12-14T21:02:20.517-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='diy'/><category scheme='http://www.blogger.com/atom/ns#' term='food'/><category scheme='http://www.blogger.com/atom/ns#' term='america'/><title type='text'>carniceria</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_lovpfad01PM/SycXPOEnR-I/AAAAAAAAAKE/tCSP5Dyvuts/s1600-h/15112008888.jpg"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 200px; height: 150px;" src="http://1.bp.blogspot.com/_lovpfad01PM/SycXPOEnR-I/AAAAAAAAAKE/tCSP5Dyvuts/s200/15112008888.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5415322627179235298" /&gt;&lt;/a&gt;&lt;br /&gt;So I am in Lexington, NC today.  the barbeque capital of the world Or something like that.  I'm here to visit my mom and my dog.  My dog Saturday was a world traveller before he settled in with my mom 5 years ago.  He's lived with us in LA, SF and NYC.  Usually I visit a butcher shop, often a carniceria, to get a large cow bone for him for free or 50 cents.  My local metropolitan butcher is usually happy just to get rid of the cow femurs and knuckles.  So today, I thought it would be a cool idea to get some bones, some rice and some veggie pulp from the juicer and make him some dog food in the crock pot.&lt;br /&gt;&lt;br /&gt;Turns out it's not so easy to find a butcher in the USA anymore.  We went to the local butcher on Main St, and he attempted to sell us the standard made in china dog treat fare...buy one get one free.  No bones there.  So we went to the butcher at Wal-Mart.  (now I could go on and on lamenting Wal=mart but not here and not now).  Anyway, i asked a friendly octogenarian behind the counter if he had any bones.  The poor old man looked shocked when I told him I wanted to boil the marrow and give it to my dog.  He told me "honey, we ship all this meat on trucks...there's no bones here, just sliced meat."  He looked incredibly sad while saying this of course.  I pressed on asking about other local shops and he said there's nowhere left in town.  He mentioned a shop in another city about a half hour away, but suggested I call ahead just in case.&lt;br /&gt;&lt;br /&gt;So now I'm searching on google for my trusty local carniceria.  I sure hope I find one.  What a disappointment:(&lt;br /&gt;&lt;br /&gt;(Photo of a meat can I saw in Spitalfields London, last year)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6368365122336531619-6557436797051261125?l=staycek.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/6557436797051261125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/6557436797051261125'/><link rel='alternate' type='text/html' href='http://staycek.blogspot.com/2009/12/carniceria.html' title='carniceria'/><author><name>STAYCE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_lovpfad01PM/SSTaGhWF5rI/AAAAAAAAAGQ/pgnklUQP45U/S220/31082008421.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_lovpfad01PM/SycXPOEnR-I/AAAAAAAAAKE/tCSP5Dyvuts/s72-c/15112008888.jpg' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-6368365122336531619.post-8789228293517762347</id><published>2009-11-27T02:08:00.000-08:00</published><updated>2009-11-27T10:07:21.892-08:00</updated><title type='text'>using jquery's wrapinner to wrap contents of links with spans to provide rounded corner button graphics</title><content type='html'>of course the easiest way to make buttons is to just use the cs3 rounded corners and let the ie6 users suffer with *gasp* right angles.  But occasionally you find yourself in a situation where you need a liquid width graphical button.  (my client has an affinity for reflections).  I thought this technique would be as well documented as using jquery for sliding doors, but i couldn't find it anywhere so here you go.  &lt;br /&gt;&lt;br /&gt;in the CSS you can display your 3 graphics of the same height.  a small left background graphic to apply to the span.lt, a long middle graphic for the span.mid, and the reverse of the left graphic for the span.rt.&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;Jquery:&lt;/h4&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;$(document).ready(function(){&lt;br /&gt; $("a.button_lnk").wrapInner("&lt; span class='mid' &gt;&lt; /span &gt;");&lt;br /&gt;$("span.mid").before("&lt; span class='lt' /&gt;");&lt;br /&gt;$("span.mid").after("&lt; span class='rt' /&gt;");&lt;br /&gt;});&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;HTML before js&lt;/h4&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt; div id="usernav" &gt;&lt;br /&gt; &lt; a href="/login" class="button_lnk"&gt;login&lt; /a &gt;&lt;br /&gt; &lt; a href="/signup" class="button_lnk"&gt;signup&lt; /a &gt;&lt;br /&gt;&lt; /div &gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;HTML after js&lt;/h4&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&lt; div id="usernav" &gt;&lt;br /&gt;   &lt; a class="button_lnk" href="/login" &gt;&lt;br /&gt;    &lt; span class="lt"/ &gt;&lt;br /&gt;    &lt; span class="mid" &gt;login&lt; /span &gt;&lt;br /&gt;    &lt; span class="rt"/ &gt;&lt;br /&gt;  &lt; /a &gt;&lt;br /&gt;  &lt; a class="button_lnk" href="/signup" &gt;&lt;br /&gt;    &lt; span class="lt"/ &gt;&lt;br /&gt;    &lt; span class="mid" &gt;signup&lt; /span &gt;&lt;br /&gt;    &lt; span class="rt"/ &gt;&lt;br /&gt;  &lt; /a &gt;&lt;br /&gt;&lt; /div &gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6368365122336531619-8789228293517762347?l=staycek.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/8789228293517762347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/8789228293517762347'/><link rel='alternate' type='text/html' href='http://staycek.blogspot.com/2009/11/using-jquerys-wrapinner-to-wrap.html' title='using jquery&apos;s wrapinner to wrap contents of links with spans to provide rounded corner button graphics'/><author><name>STAYCE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_lovpfad01PM/SSTaGhWF5rI/AAAAAAAAAGQ/pgnklUQP45U/S220/31082008421.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6368365122336531619.post-1081405052388197157</id><published>2009-11-24T11:59:00.000-08:00</published><updated>2009-11-24T12:02:46.243-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='independent contractors'/><category scheme='http://www.blogger.com/atom/ns#' term='hours'/><category scheme='http://www.blogger.com/atom/ns#' term='widgets'/><category scheme='http://www.blogger.com/atom/ns#' term='osx'/><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><category scheme='http://www.blogger.com/atom/ns#' term='freelancing'/><category scheme='http://www.blogger.com/atom/ns#' term='free software'/><title type='text'>A service I couldn't live without as a freelancer</title><content type='html'>Combining Simply Invoices with the tick OSX widget is awesome.  I just hit F12 and start my clock, then when I'm finished the data is printed to an invoice.  Okay, so there's one step inbetween, but really it's simple.  and best of all, it's free!  If you want to manage multiple accounts you can a bit pay for an upgrade.&lt;br /&gt;&lt;br /&gt;http://www.simplyinvoices.com&lt;br /&gt;http://tickspot.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6368365122336531619-1081405052388197157?l=staycek.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/1081405052388197157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/1081405052388197157'/><link rel='alternate' type='text/html' href='http://staycek.blogspot.com/2009/11/service-i-couldnt-live-without-as.html' title='A service I couldn&apos;t live without as a freelancer'/><author><name>STAYCE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_lovpfad01PM/SSTaGhWF5rI/AAAAAAAAAGQ/pgnklUQP45U/S220/31082008421.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6368365122336531619.post-6775889945516230262</id><published>2009-11-24T11:45:00.000-08:00</published><updated>2009-11-24T11:55:48.252-08:00</updated><title type='text'>Jquery Testimonial Rotator Script mod based on quotator</title><content type='html'>Here's some code for anyone who wants it.  It's not yet cross-browser tested, at your own risk.  I'll update this post in production.&lt;br /&gt;&lt;br /&gt;quotator.js&lt;br /&gt;&lt;br /&gt;// JavaScript Document&lt;br /&gt;(function($){&lt;br /&gt;  $.fn.quotator = function(options){&lt;br /&gt;    var container = this;&lt;br /&gt;    var defaults =&lt;br /&gt;    {&lt;br /&gt;      speed : 11000,&lt;br /&gt;      json : "untitled.js"&lt;br /&gt;    }&lt;br /&gt;   &lt;br /&gt;    var options = $.extend(defaults, options);&lt;br /&gt;   &lt;br /&gt;    var quotes_json = options.json;&lt;br /&gt;    var quotes;&lt;br /&gt;   &lt;br /&gt;    $.getJSON(quotes_json, function(data){&lt;br /&gt;    var quotesobject = eval(data.quotes);&lt;br /&gt;    var index = 0;&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    setInterval(changeQuote, options.speed);&lt;br /&gt;  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    container.html("&lt;li class="'praise'"&gt;&lt;img class="'member_photos'" src="'" alt="'Fyera" /&gt;&lt;div class="'written_testimonial'"&gt;" + quotesobject[index].quote + "&lt;p class="'attribution'"&gt;-- " + quotesobject[index].author + "&lt;/p&gt;&lt;/li&gt;");&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;    function changeQuote(){&lt;br /&gt;      container.fadeOut(function(){&lt;br /&gt;        container.html("&lt;li class="'praise'"&gt;&lt;img class="'member_photos'" src="'" alt="'Fyera" /&gt;&lt;div class="'written_testimonial'"&gt;" + quotesobject[index].quote + "&lt;p class="'attribution'"&gt;-- " + quotesobject[index].author + "&lt;/p&gt;&lt;/li&gt;").fadeIn();&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;      });&lt;br /&gt;     &lt;br /&gt;      if(index == quotesobject.length - 1){&lt;br /&gt;        index = 0;&lt;br /&gt;      } else{&lt;br /&gt;        index++;&lt;br /&gt;      }&lt;br /&gt;    }&lt;br /&gt;     &lt;br /&gt;  });&lt;br /&gt;  return container;&lt;br /&gt;}&lt;br /&gt;})(jQuery);&lt;br /&gt;&lt;br /&gt;----------&lt;br /&gt;untitled.js&lt;br /&gt;--&lt;br /&gt;({"quotes":&lt;br /&gt; [&lt;br /&gt;    {&lt;br /&gt;        "quote" : "The trouble with being in the public eye as a person known for inspiring and empowering others is, where do you go when you need inspiration and advice? Sheva taught me how to access the wisdom of my own heart for that. When you've graduated from personal growth training and want to find the real power in yourself, go to Sheva. She was there through the most difficult relationship challenge of my life, guiding me to a place of self respect where I am now receiving the love I truly deserve. She is without a doubt a leader to leaders, a coach to coaches, and an inspiration to all! I am so grateful to have met you Sheva, and to continue to work with you and to watch your magic unfold in the world!",&lt;br /&gt;        "author" : "Bonnie St. John, Olympic Medalist, Author, Speaker Named by NBC as one of the five most inspiring women in the nation",&lt;br /&gt;        "picture" : "http://fyera.goodbarry.com/Images/member_photos/bonnie_stjohn.jpg"&lt;br /&gt;    },&lt;br /&gt;   &lt;br /&gt;    {&lt;br /&gt;        "quote" : "The morning HeartStart calls are my “daily workout” that keep my heart skills sharp by applying and re-applying them as my week unfolds. The value of the important lessons I have gotten from Fyera and HearthMath are magnified 10 times through daily application. Better than any multi-vitamin and now that I have started it, I miss it dearly even if I skip one day.",&lt;br /&gt;        "author" : "Malcolm Casselle, Entrepreneur with Successful Businesses in Asia and the United States",&lt;br /&gt;        "picture" : "http://fyera.goodbarry.com/Images/member_photos/malcolm_casselle.jpg"&lt;br /&gt;    },&lt;br /&gt;    {&lt;br /&gt;        "quote" : "HeartStart offers me a reliable daily structure that boosts and supports measurable physiological synchronization of my three brains – the head, heart and enteric brains - refreshing my commitment to my deepest heart-focused intensions and goals. Sheva offers inspiring, skillful presentations through Fyera’s HeartMastery’s year-long program, a plethora of consistently well-researched cutting edge materials that never fail to be enlivened by her brilliance, her extraordinary vitality, and her heart-focused wisdom and care. ",&lt;br /&gt;        "author" : "Kiara Bahn, HeartMastery Member",&lt;br /&gt;        "picture" : ""&lt;br /&gt;    },&lt;br /&gt;    {&lt;br /&gt;        "quote" : "You, my dear Sheva, are a remarkable person who I\’m so glad to know, and look forward to knowing better and better, as I get better and better. You’ve taken me from the doldrums to believing, once again, life is an exciting adventure which I can hardly wait to take a bite of.",&lt;br /&gt;        "author" : "Pat, Fyera HeartMastery Member",&lt;br /&gt;        "picture" : ""&lt;br /&gt;    },&lt;br /&gt;    {&lt;br /&gt;        "quote" : "In the short time I have been working with the Heart Math tools, I can say with all honesty- I have been profoundly changed. The changes are significant and deeply satisfying. Placing attention on my heart has been an elegant adventure into the realm of potential. I have touched undreamt of possibilities. Heart Math tools and distinctions have been instrumental in helping me cut through a lifetime of self imposed limitations- blockages to the realization and manifestation of all that lay waiting in latent potentiality. There are moments when my heart yields to exquisite joy. Sheva, you have been a perfect conduit of information and inspiration.  Ah Fyera, ah- Today, as a result of the Heart Start exercise, I stepped into two of my deepest aspirations- to be a lover and a healer. From the deepest core of my heart, I say thank you, and thank you again.",&lt;br /&gt;        "author" : "Eileen, HeartMastery Member",&lt;br /&gt;        "picture" : "http://fyera.goodbarry.com/Images/member_photos/eileen_gold.jpg"&lt;br /&gt;        },&lt;br /&gt;        {&lt;br /&gt;            "quote" : "If you've tried everything, Fyera! is not one more thing. It is THE thing that will make everything else you've tried work. ",&lt;br /&gt;            "author" : " G.G., Filmmaker and Writer, Los Angeles",&lt;br /&gt;            "picture" : ""&lt;br /&gt;            },&lt;br /&gt;            {&lt;br /&gt;                "quote" : "I myself have witnessed the magic of Sheva\'s teaching... Millions of people from all walks of life are sure to benefit from the power of their hearts thanks to Sheva and Fyera! I am honored to be one of them. ",&lt;br /&gt;                "author" : "Anne Marie Howard, Actress",&lt;br /&gt;                "picture" : "http://www.annemariehoward.com/graphics/Anne_Marie_Howard_6006.jpg"&lt;br /&gt;            }&lt;br /&gt;   &lt;br /&gt;]&lt;br /&gt; })&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;---------&lt;br /&gt;index.html&lt;br /&gt;---&lt;br /&gt;&lt;style type="text/css"&gt;&lt;br /&gt;body{&lt;br /&gt;    background-color:#f1f1f1;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;#praise_list{&lt;br /&gt;    background-color:#fff;&lt;br /&gt;    font:20px Georgia, "Times New Roman", Times, serif;&lt;br /&gt;    color:#666;&lt;br /&gt;    width:400px;&lt;br /&gt;    margin:50px auto 0 auto;&lt;br /&gt;    padding:0;&lt;br /&gt;    position:relative;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;#praise_list ul{ padding:0;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#praise_list ul li.praise {&lt;br /&gt;border-bottom:1px dotted #DDDDDD;&lt;br /&gt;margin-bottom:15px;&lt;br /&gt;margin-top:12px;&lt;br /&gt;padding:5px 10px 20px 0;&lt;br /&gt;}&lt;br /&gt;li.praise {&lt;br /&gt;border-bottom:1px dotted #DDDDDD;&lt;br /&gt;margin:12px 0 15px;&lt;br /&gt;padding:5px 10px 20px 0;&lt;br /&gt;display:block;&lt;br /&gt;}&lt;br /&gt;.written_testimonial {&lt;br /&gt;-moz-background-clip:border;&lt;br /&gt;-moz-background-inline-policy:continuous;&lt;br /&gt;-moz-background-origin:padding;&lt;br /&gt;background:transparent url("http://fyera.com/site/sites/all/themes/acquia_prosper/images/quote.png") no-repeat scroll 10px 0;&lt;br /&gt;padding-left:45px;&lt;br /&gt;}&lt;br /&gt;#praise_list ul li .member_photos {&lt;br /&gt;float:right;&lt;br /&gt;margin-top:16px;&lt;br /&gt;text-align:center;&lt;br /&gt;width:110px;&lt;br /&gt;}&lt;br /&gt;p.attribution {&lt;br /&gt;&lt;br /&gt;font-size:90%;&lt;br /&gt;font-style:italic;&lt;br /&gt;color:#C93;&lt;br /&gt;text-align:right;&lt;br /&gt;}&lt;br /&gt;.member_photos {&lt;br /&gt;float:right;&lt;br /&gt;margin-top:16px;&lt;br /&gt;padding-left:5px;&lt;br /&gt;text-align:center;&lt;br /&gt;width:110px;&lt;br /&gt;}&lt;br /&gt;&lt;/style&gt;&lt;br /&gt;&lt;script src="jquery-1.3.1.min.js" type="text/javascript"&gt;&lt;/script&gt;&lt;br /&gt;&lt;script src="quotator.js" type="text/javascript"&gt;&lt;/script&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;&lt;br /&gt;$(document).ready(function(){&lt;br /&gt;    $("#praisamator").quotator({&lt;br /&gt;        speed : 11000,&lt;br /&gt;        json : "untitled.js"&lt;br /&gt;    });&lt;br /&gt;});&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;div id="praise_list"&gt;&lt;br /&gt;  &lt;h3&gt; Praise for and Faces of Fyera! &lt;/h3&gt;&lt;br /&gt;  &lt;ul id="praisamator"&gt;&lt;br /&gt;  &lt;/ul&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;---&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;A link to a demo, instructions, and downloadable files to follow.  Please leave comments with questions and i will answer.&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6368365122336531619-6775889945516230262?l=staycek.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/6775889945516230262'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/6775889945516230262'/><link rel='alternate' type='text/html' href='http://staycek.blogspot.com/2009/11/jquery-testimonial-rotator-script-mod.html' title='Jquery Testimonial Rotator Script mod based on quotator'/><author><name>STAYCE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_lovpfad01PM/SSTaGhWF5rI/AAAAAAAAAGQ/pgnklUQP45U/S220/31082008421.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6368365122336531619.post-690339235545164334</id><published>2009-05-07T12:51:00.000-07:00</published><updated>2009-05-07T13:21:56.877-07:00</updated><title type='text'>how to convert from celsius to fahrenheit in your head</title><content type='html'>&lt;h4&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;_how to convert from celsius to fahrenheit in your head_&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-style: italic; font-weight: normal; "&gt;&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;&lt;h4&gt;&lt;span class="Apple-style-span" style="font-style: italic; font-weight: normal; "&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;(there's probably better ways on the internet, but everyone always asks me how i do it, so here's my process...&lt;/span&gt;&lt;/span&gt;&lt;/h4&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;celsius is&lt;/span&gt;&lt;span style="font-weight:bold;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; 9/5&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; of farenheit plus &lt;/span&gt;&lt;span style="font-weight:bold;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;32&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; degrees.&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;br /&gt;most people will tell you to multiply the temperature in celsius by &lt;/span&gt;&lt;span style="font-weight:bold;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;9&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;, then divide by &lt;/span&gt;&lt;span style="font-weight:bold;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;5&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;, then add &lt;/span&gt;&lt;span style="font-weight:bold;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;32&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;.  that works in the winter when the temperatures are low, but when the temperature is say &lt;/span&gt;&lt;span style="font-weight:bold;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;17&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;, it takes me longer to multiply &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;17&lt;/span&gt; by &lt;/span&gt;&lt;span style="font-weight:bold;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;9&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; and divide it by &lt;/span&gt;&lt;span style="font-weight:bold;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;5&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; than my method which involves doubling...&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight:bold;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;9/5&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; is equal to &lt;/span&gt;&lt;span style="font-weight:bold;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;1.8&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; which is equal to doubling the temperature and subtracting &lt;/span&gt;&lt;span style="font-weight:bold;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;20%.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;so if it's &lt;/span&gt;&lt;/span&gt;&lt;span style=""&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;12&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt; degrees celsius &lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;that means  &lt;span class="Apple-style-span" style="font-weight: bold; "&gt;12 x 1.8 + 32 = Fahrenheit Temperature&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;to multiply &lt;/span&gt;&lt;span style="font-weight:bold;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;12&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; and &lt;/span&gt;&lt;span style="font-weight:bold;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;1.8&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; quickly I just double &lt;/span&gt;&lt;span style="font-weight:bold;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;12&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;strong&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;12 + 12 = 24&lt;/span&gt;&lt;/strong&gt;&lt;/blockquote&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;then subtract &lt;/span&gt;&lt;span style="font-weight:bold;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;20%&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; &lt;span class="Apple-style-span" style="font-style: italic;"&gt;(which is conveniently 10% of the doubled number, so just move the decimal point over in &lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight:bold;"&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;24&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt; and round if u want)&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;strong&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;24 - 2.4 = 21.6&lt;/span&gt;&lt;/strong&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;  ...or if you don't care to be so precise,&lt;/span&gt;&lt;strong&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt; 24 -2 = 22&lt;/span&gt;&lt;/strong&gt;&lt;/blockquote&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;then add 32&lt;br /&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;strong&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;21.6 + 32 = 53.6, 22 + 32 = 54&lt;/span&gt;&lt;/strong&gt;&lt;/blockquote&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 51, 0);"&gt;And there you have it, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=""&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 51, 0);"&gt;12&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 51, 0);"&gt; degrees celsius is &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=""&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 51, 0);"&gt;53.6&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 51, 0);"&gt; degrees fahrenheit.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;here's one more example:&lt;br /&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 51, 0);"&gt;21 degrees celsius = 70 degrees fahrenheit&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;21&lt;span class="Apple-style-span" style="font-weight: normal;"&gt; doubled &lt;/span&gt;&lt;/span&gt;= 42&lt;br /&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;subtract &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;4&lt;/span&gt; &lt;span class="Apple-style-span" style="color: rgb(153, 0, 0);"&gt;(or 4.2 to be precise&lt;/span&gt;&lt;span class="Apple-style-span" style="font-style: normal; font-weight: bold; "&gt;&lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;span class="Apple-style-span" style="font-style: italic; "&gt;)&lt;/span&gt;&lt;/span&gt; = 38 &lt;span class="Apple-style-span" style="font-weight: normal; "&gt;&lt;span class="Apple-style-span" style="font-style: italic; "&gt;&lt;span class="Apple-style-span" style="color: rgb(153, 0, 0);"&gt;(37.8)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;add &lt;/span&gt;32&lt;span class="Apple-style-span" style="font-weight: normal;"&gt; &lt;/span&gt;&lt;/span&gt;= &lt;/span&gt;&lt;/span&gt;&lt;span style=""&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;70 &lt;/span&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="color: rgb(153, 0, 0);"&gt;(69.8)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: medium;"&gt;&lt;br /&gt;&lt;br /&gt;and finialy in the winter, if the temperatures are low, maybe try the other method:&lt;br /&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 51, 0);"&gt;5 degrees celsius = 41 degrees fahrenheit&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;5&lt;/span&gt; times &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;9&lt;/span&gt;&lt;/span&gt; = &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;45&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;45&lt;/span&gt; divided by &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;5&lt;/span&gt;&lt;/span&gt; =&lt;span class="Apple-style-span" style="font-weight: bold;"&gt; 9&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-style: italic;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;9&lt;/span&gt; plus &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;32&lt;/span&gt;&lt;/span&gt; = &lt;span class="Apple-style-span" style="font-weight: bold;"&gt;41&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6368365122336531619-690339235545164334?l=staycek.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/690339235545164334'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/690339235545164334'/><link rel='alternate' type='text/html' href='http://staycek.blogspot.com/2009/05/how-to-convert-from-celsius-to.html' title='how to convert from celsius to fahrenheit in your head'/><author><name>STAYCE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_lovpfad01PM/SSTaGhWF5rI/AAAAAAAAAGQ/pgnklUQP45U/S220/31082008421.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6368365122336531619.post-7749493212686405054</id><published>2009-04-27T05:40:00.000-07:00</published><updated>2009-11-27T08:10:34.361-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='insanity'/><category scheme='http://www.blogger.com/atom/ns#' term='math'/><title type='text'>maths stuff</title><content type='html'>If I ever fully embrace insanity, I hope to devote all of my waking moments to the study of all maths.  Of course, I'm also intrigued by electronics, neurology, magnetism, sound and botany so it's a toss up.  (I suppose if I were truly insane, I wouldn't have a choice in the matter:/)&lt;br /&gt;&lt;br /&gt;For only one month, on a suggestive tip, I spent 30 minutes per day reading a new math topic on wikipedia.  That was a couple of years ago now, and I would like to try again.  &lt;br /&gt;&lt;br /&gt;Which brings me to my word of the $non-commital_time...Metonymy.  Metonymy as I understand it is simply another word for variable.  I love the nym suffix after becoming well-acquainted with the concept of &lt;a href="http://other.no"&gt;pseudonymity last year in London with Other.No.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/Metonymy"&gt;Wikipedia&lt;/a&gt; has a nice example contrasting Metonymy with a metaphor:&lt;br /&gt;&lt;br /&gt;&lt;quote&gt;&lt;br /&gt;Metaphor example: That man is a pig (using pig instead of unhygienic person. An unhygienic person is like a pig, but there is no contiguity between the two).&lt;br /&gt;&lt;br /&gt;Metonymy example: The White House supports the bill (using The White House instead of the President. The President is not like The White House, but there is contiguity between them).&lt;br /&gt;&lt;/quote&gt;&lt;br /&gt;&lt;br /&gt;I'm currently reading about the history and metonymical meanings of One and Zero.  &lt;br /&gt;&lt;br /&gt;Zero is often used to mean:&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;  &lt;li&gt;&lt;strong&gt;Failure &lt;/strong&gt;I got a zero on my test.&lt;/li&gt;&lt;br /&gt;  &lt;li&gt;&lt;strong&gt;Nothingness &lt;/strong&gt;I started with zero, and now I'm a millionaire.&lt;/li&gt;&lt;br /&gt;  &lt;li&gt;&lt;strong&gt;Lack (of something) &lt;/strong&gt;Ew, you're dating him, he's a total zero.&lt;/li&gt;&lt;br /&gt;  &lt;li&gt;&lt;strong&gt;Emptyness &lt;/strong&gt;I'd offer a beer but there's zero left.&lt;/li&gt;&lt;br /&gt;  &lt;li&gt;&lt;strong&gt;Origin (or target) &lt;/strong&gt;I'm zeroing in on the enemy.&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;More interestingly, One often symbolizes: &lt;br /&gt;&lt;ul&gt;&lt;strong&gt;A Standard, Individuality, Separateness, Completion/Wholeness, Integrity, Unity, and Beginning.&lt;/strong&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;I won't bore you with more examples, but I'm quite pleased to know this new word.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6368365122336531619-7749493212686405054?l=staycek.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/7749493212686405054'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/7749493212686405054'/><link rel='alternate' type='text/html' href='http://staycek.blogspot.com/2009/04/maths-stuff.html' title='maths stuff'/><author><name>STAYCE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_lovpfad01PM/SSTaGhWF5rI/AAAAAAAAAGQ/pgnklUQP45U/S220/31082008421.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6368365122336531619.post-8770201393097407399</id><published>2009-04-16T23:58:00.000-07:00</published><updated>2009-04-17T00:06:32.549-07:00</updated><title type='text'>yay, finally we move closer towards real science</title><content type='html'>okay so all of this epigenetics stuff is admittedly over my head, but it looks like we are making some progress explaining gene silencing.  &lt;br /&gt;&lt;br /&gt;scientists have recently discovered a new nucleotide they're calling &lt;span style="font-weight:bold;"&gt;5-hydroxymethylcytosine&lt;/span&gt;.  like all great discoveries it was an accident...&lt;blockquote&gt;"We didn't go looking for this modification, we just found it." &lt;/blockquote&gt;says Skirmantas Kriaucionis, a postdoctoral associate in the Heintz lab, who did the research.&lt;br /&gt;&lt;br /&gt;anyway, way over my head but maybe check out the &lt;a href="http://www.eurekalert.org/pub_releases/2009-04/ru-nnc041609.php"&gt;rockefeller press release&lt;/a&gt; or wait for the article in &lt;a href="http://www.sciencemag.org/"&gt;&lt;span style="font-weight:bold;"&gt;Science&lt;/span&gt;&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6368365122336531619-8770201393097407399?l=staycek.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/8770201393097407399'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/8770201393097407399'/><link rel='alternate' type='text/html' href='http://staycek.blogspot.com/2009/04/yay-finally-we-move-closer-towards-real.html' title='yay, finally we move closer towards real science'/><author><name>STAYCE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_lovpfad01PM/SSTaGhWF5rI/AAAAAAAAAGQ/pgnklUQP45U/S220/31082008421.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6368365122336531619.post-6610408822796581960</id><published>2008-12-23T17:02:00.000-08:00</published><updated>2008-12-23T17:06:58.878-08:00</updated><title type='text'>new Scientific American Article Re: Tennessee Coal Ash Spill</title><content type='html'>Here's the video of the spill:&lt;br /&gt;&lt;br /&gt;&lt;object height="344" width="425"&gt;&lt;param name="movie" value="http://www.youtube.com/v/rGmVCABMRRQ&amp;amp;hl=en&amp;amp;fs=1"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/rGmVCABMRRQ&amp;amp;hl=en&amp;amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" height="344" width="425"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;and the &lt;a href="http://www.sciam.com/article.cfm?id=toxic-ash-pond-collapses"&gt;sciam.com article&lt;/a&gt; that is difficult to load due to traffic?????&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;The residue of millions of tons of coal burning at Kingston Fossil power plant in the Watts Bar Reservoir in Tennessee burst the bounds of the pond in which it was contained, burying as many as 400 acres of land in up to six feet of sludge. The Tennessee Valley Authority (TVA), which owns the coal-fired power plant—first operated in 1955—announced that 15 homes were buried and no injuries were reported.&lt;br /&gt;&lt;br /&gt;A combination of rains and accumulating sludge likely contributed to the disaster—one of two major ash pond collapses in the past decade. All told, about 2.6 million cubic yards of so-called coal ash slurry escaped, the TVA says. The collapsed pond is one of three on the site.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;"We deeply regret that a retention wall for ash containment at our Kingston Fossil Plant failed, resulting in an ash slide," said Tom Kilgore, TVA president and CEO in an official statement today.&lt;br /&gt;&lt;br /&gt;Such slurry worries environmentalists and public health activists because it is the residue of coal burning. The burning concentrates the impurities in the coal, including arsenic, lead and mercury, among many other potentially toxic contaminants. Coal ash is also radioactive.&lt;br /&gt;&lt;br /&gt;But dealing with the 129 million tons of coal ash produced in the U.S. every year is not easy. Some 25 million tons of it is dumped in old coal mines, and some companies incorporate it into cement. The rest is typically dumped in landfills or stored in large coal-ash ponds like the one that collapsed. But many environmentalists argue for only disposing of it in lined landfills, to prevent contaminants from leaching out.&lt;br /&gt;&lt;br /&gt;"A risk assessment released by the U.S. EPA [Environmental Protection Agency] revealed that coal ash poses extremely serious threats to human health and the environment when disposed in waste ponds and landfills," says Lisa Graves Marcucci, a founding member of the Jefferson Action Group, a Pennsylvania environmental group that is among 38 environmental organizations calling for the incoming Obama administration to review coal ash disposal rules. "Significant pollution from mine disposal has been documented in New Mexico, West Virginia, Indiana, North Dakota, as well as Pennsylvania."&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6368365122336531619-6610408822796581960?l=staycek.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/6610408822796581960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/6610408822796581960'/><link rel='alternate' type='text/html' href='http://staycek.blogspot.com/2008/12/new-scientific-american-article-re.html' title='new Scientific American Article Re: Tennessee Coal Ash Spill'/><author><name>STAYCE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_lovpfad01PM/SSTaGhWF5rI/AAAAAAAAAGQ/pgnklUQP45U/S220/31082008421.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6368365122336531619.post-3892015694662517827</id><published>2008-12-23T16:29:00.000-08:00</published><updated>2008-12-23T16:35:36.572-08:00</updated><title type='text'>Coal Ash Is More Radioactive than Nuclear Waste</title><content type='html'>&lt;blockquote&gt;Keywords: coal ash, coal spill, oil spill, tennessee. TN, TVA, Environment, Conspiracy&lt;br /&gt;&lt;br /&gt;I am re-posting this from scientific american.  i have been blocked by my ISP, BT (British Telecom) in London from reading this article and it's google cache.&lt;br /&gt;&lt;br /&gt;PLEASE RE-POST, BLOG, AND TWEET ABOUT THE DANGERS OF COAL ASH AND THE EPIC ENVIRONMENTAL IMPACT THIS WILL HAVE ON THE BLUE RIDGE MOUNTAINS.&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Coal Ash Is More Radioactive than Nuclear Waste&lt;br /&gt;By burning away all the pesky carbon and other impurities, coal power plants produce heaps of radiation&lt;br /&gt;By Mara Hvistendahl&lt;br /&gt;&lt;br /&gt;       &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CONCENTRATED RADIATION: By burning coal into ash, power plants concentrate the trace amounts of radioactive elements within the black rock.&lt;br /&gt;©ISTOCKPHOTO.COM&lt;br /&gt;The popular conception of nuclear power is straight out of The Simpsons: Springfield abounds with signs of radioactivity, from the strange glow surrounding Mr. Burn's nuclear power plant workers to Homer's low sperm count. Then there's the local superhero, Radioactive Man, who fires beams of "nuclear heat" from his eyes. Nuclear power, many people think, is inseparable from a volatile, invariably lime-green, mutant-making radioactivity.&lt;br /&gt;&lt;br /&gt;Coal, meanwhile, is believed responsible for a host of more quotidian problems, such as mining accidents, acid rain and greenhouse gas emissions. But it isn't supposed to spawn three-eyed fish like Blinky.&lt;br /&gt;&lt;br /&gt;Over the past few decades, however, a series of studies has called these stereotypes into question. Among the surprising conclusions: the waste produced by coal plants is actually more radioactive than that generated by their nuclear counterparts. In fact, fly ash—a by-product from burning coal for power—contains up to 100 times more radiation than nuclear waste.&lt;br /&gt;&lt;br /&gt;At issue is coal's content of uranium and thorium, both radioactive elements. They occur in such trace amounts in natural, or "whole," coal that they aren't a problem. But when coal is burned into fly ash, uranium and thorium are concentrated at up to 10 times their original levels.&lt;br /&gt;&lt;br /&gt;Fly ash uranium sometimes leaches into the soil and water surrounding a coal plant, affecting cropland and, in turn, food. People living within a "stack shadow"—the area within a half- to one-mile (0.8- to 1.6-kilometer) radius of a coal plant's smokestacks—might then ingest small amounts of radiation. Fly ash is also disposed of in landfills and abandoned mines and quarries, posing a potential risk to people living around those areas.&lt;br /&gt;&lt;br /&gt;In a 1978 paper for Science, J. P. McBride at Oak Ridge National Laboratory (ORNL) and his colleagues looked at the uranium and thorium content of fly ash from coal-fired power plants in Tennessee and Alabama. To answer the question of just how harmful leaching could be, the scientists estimated radiation exposure around the coal plants and compared it with exposure levels around boiling-water reactor and pressurized-water nuclear power plants.&lt;br /&gt;&lt;br /&gt;The result: estimated radiation doses ingested by people living near the coal plants were equal to or higher than doses for people living around the nuclear facilities. At one extreme, the scientists estimated fly ash radiation in individuals' bones at around 18 millirems (thousandths of a rem, a unit for measuring doses of ionizing radiation) a year. Doses for the two nuclear plants, by contrast, ranged from between three and six millirems for the same period. And when all food was grown in the area, radiation doses were 50 to 200 percent higher around the coal plants.&lt;br /&gt;&lt;br /&gt;McBride and his co-authors estimated that individuals living near coal-fired installations are exposed to a maximum of 1.9 millirems of fly ash radiation yearly. To put these numbers in perspective, the average person encounters 360 millirems of annual "background radiation" from natural and man-made sources, including substances in Earth's crust, cosmic rays, residue from nuclear tests and smoke detectors.&lt;br /&gt;&lt;br /&gt;Dana Christensen, associate lab director for energy and engineering at ORNL, says that health risks from radiation in coal by-products are low. "Other risks like being hit by lightning," he adds, "are three or four times greater than radiation-induced health effects from coal plants." And McBride and his co-authors emphasize that other products of coal power, like emissions of acid rain–producing sulfur dioxide and smog-forming nitrous oxide, pose greater health risks than radiation.&lt;br /&gt;&lt;br /&gt;The U.S. Geological Survey (USGS) maintains an online database of fly ash–based uranium content for sites across the U.S. In most areas, the ash contains less uranium than some common rocks. In Tennessee's Chattanooga shale, for example, there is more uranium in phosphate rock.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Robert Finkelman, a former USGS coordinator of coal quality who oversaw research on uranium in fly ash in the 1990s, estimates that for the average person the by-product accounts for less than 0.1 percent of total background radiation exposure. According to USGS calculations, buying a house in a stack shadow—in this case within 0.6 mile [one kilometer] of a coal plant—increases the annual amount of radiation you're exposed to by a maximum of 5 percent. But that's still less than the radiation encountered in normal yearly exposure to X-rays.&lt;br /&gt;&lt;br /&gt;So why does coal waste appear so radioactive? It's a matter of comparison: The chances of experiencing adverse health effects from radiation are slim for both nuclear and coal-fired power plants—they're just somewhat higher for the coal ones. "You're talking about one chance in a billion for nuclear power plants," Christensen says. "And it's one in 10 million to one in a hundred million for coal plants."&lt;br /&gt;&lt;br /&gt;Radiation from uranium in coal might only form a genuine health risk to miners, Finkelman explains. "It's more of an occupational hazard than a general environmental hazard," he says. "The miners are surrounded by rocks and sloshing through ground water that is exuding radon."&lt;br /&gt;&lt;br /&gt;Developing countries like India and China continue to unveil new coal-fired plants—at the rate of one every seven to 10 days in the latter nation. And the U.S. still draws around half of its electricity from coal. But coal plants have an additional strike against them: they emit harmful greenhouse gases.&lt;br /&gt;&lt;br /&gt;With the world now focused on addressing climate change, nuclear power is gaining favor in some circles. China aims to quadruple nuclear capacity to 40,000 megawatts by 2020, and the U.S. may build as many as 30 new reactors in the next several decades. But, although the risk of a nuclear core meltdown is very low, the impact of such an event creates a stigma around the noncarbon power source.&lt;br /&gt;&lt;br /&gt;The question boils down to the accumulating impacts of daily incremental pollution from burning coal or the small risk but catastrophic consequences of even one nuclear meltdown. "I suspect we'll hear more about this rivalry," Finkelman says. "More coal will be mined in the future. And those ignorant of the issues, or those who have a vested interest in other forms of energy, may be tempted to raise these issues again."&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6368365122336531619-3892015694662517827?l=staycek.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/3892015694662517827'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/3892015694662517827'/><link rel='alternate' type='text/html' href='http://staycek.blogspot.com/2008/12/coal-ash-is-more-radioactive-than.html' title='Coal Ash Is More Radioactive than Nuclear Waste'/><author><name>STAYCE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_lovpfad01PM/SSTaGhWF5rI/AAAAAAAAAGQ/pgnklUQP45U/S220/31082008421.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6368365122336531619.post-3254967323434456044</id><published>2008-11-19T20:59:00.000-08:00</published><updated>2008-11-19T21:01:02.506-08:00</updated><title type='text'>i need this all the time</title><content type='html'>$ find . -size +10000k -print0 | xargs -0 ls -l&lt;br /&gt;&lt;br /&gt;find big files&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6368365122336531619-3254967323434456044?l=staycek.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/3254967323434456044'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/3254967323434456044'/><link rel='alternate' type='text/html' href='http://staycek.blogspot.com/2008/11/i-need-this-all-time.html' title='i need this all the time'/><author><name>STAYCE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_lovpfad01PM/SSTaGhWF5rI/AAAAAAAAAGQ/pgnklUQP45U/S220/31082008421.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6368365122336531619.post-6033156393617499973</id><published>2008-10-17T11:28:00.000-07:00</published><updated>2008-10-17T11:33:27.950-07:00</updated><title type='text'>bucky paper</title><content type='html'>i read something interesting today, a side article in the yahoo news tech section.  'buckey paper' is out and it's going to be the first commercial  application of nanotech.  reasearchers at Florida State U have managed to layer carbon nanotubes in a fahion that creates a compos&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6368365122336531619-6033156393617499973?l=staycek.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/6033156393617499973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/6033156393617499973'/><link rel='alternate' type='text/html' href='http://staycek.blogspot.com/2008/10/bucky-paper.html' title='bucky paper'/><author><name>STAYCE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_lovpfad01PM/SSTaGhWF5rI/AAAAAAAAAGQ/pgnklUQP45U/S220/31082008421.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6368365122336531619.post-1638324075470635690</id><published>2008-10-15T12:17:00.000-07:00</published><updated>2008-10-15T12:31:50.260-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='captchas'/><category scheme='http://www.blogger.com/atom/ns#' term='brains'/><title type='text'>captchas, dyslexia, and the fusiform gyrus</title><content type='html'>i have a difficult time with captchas [wiki link], but never recaptcha's [add link here], i assume it's because recaptchas are based on real words or pattern recognition, and captchas are just strings of random letters that appear as a confusing image to me. it's not a problem, just i notice i have to squint or refresh captchas more than average web users.&lt;br /&gt;&lt;br /&gt;i also have trouble recognizing peoples faces.  other than faces i would say i have an average to above average memory, especially with numbers.  i have never given any thought to having dyslexia, more than the average person who occasionally thinks about it whenever they transpose letters while typing.  i certainly have no trouble reading or writing and i was always the best reader and speller in my age groups.&lt;br /&gt;&lt;br /&gt;however after watching a ted talk with preston, [note to self embed video here] we began to think that recognizing faces, captchas, dyslexia, and damage to the fusiform gyrus are all related.  a search on google doesn't return anything, but i am hoping that sometime in the future someone will find this post and comment if they are interested and/or more informed in this subject.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6368365122336531619-1638324075470635690?l=staycek.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/1638324075470635690'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/1638324075470635690'/><link rel='alternate' type='text/html' href='http://staycek.blogspot.com/2008/10/captchas-dyslexia-and-fusiform-gyrus.html' title='captchas, dyslexia, and the fusiform gyrus'/><author><name>STAYCE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_lovpfad01PM/SSTaGhWF5rI/AAAAAAAAAGQ/pgnklUQP45U/S220/31082008421.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6368365122336531619.post-1483760977397513868</id><published>2008-06-13T03:02:00.000-07:00</published><updated>2008-11-18T17:12:21.898-08:00</updated><title type='text'>Google Code Blog: ZXing 1d/2d Barcode decoding source code released</title><content type='html'>&lt;a href="http://google-code-updates.blogspot.com/2007/11/zxing-1d2d-barcode-decoding-source-code.html"&gt;Google Code Blog: ZXing 1d/2d Barcode decoding source code released&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6368365122336531619-1483760977397513868?l=staycek.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/1483760977397513868'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/1483760977397513868'/><link rel='alternate' type='text/html' href='http://staycek.blogspot.com/2008/06/google-code-blog-zxing-1d2d-barcode.html' title='Google Code Blog: ZXing 1d/2d Barcode decoding source code released'/><author><name>STAYCE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_lovpfad01PM/SSTaGhWF5rI/AAAAAAAAAGQ/pgnklUQP45U/S220/31082008421.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-6368365122336531619.post-5812650717089286414</id><published>2007-07-07T11:42:00.000-07:00</published><updated>2007-07-07T11:43:48.863-07:00</updated><title type='text'>First Posting</title><content type='html'>This is just a place to put my thoughts about tech stuff.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6368365122336531619-5812650717089286414?l=staycek.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/5812650717089286414'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6368365122336531619/posts/default/5812650717089286414'/><link rel='alternate' type='text/html' href='http://staycek.blogspot.com/2007/07/first-posting.html' title='First Posting'/><author><name>STAYCE</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/_lovpfad01PM/SSTaGhWF5rI/AAAAAAAAAGQ/pgnklUQP45U/S220/31082008421.jpg'/></author></entry></feed>
