Tuesday, August 31, 2010

Work Problem 5

The following was a question a anonymous visitor asked: Jim can fill a pool carrying buckets of water in 30 minutes. Sue can do the same job in 45 minutes. Tony can do the same job in 1 ½ hours. How quickly can all three fill the pool together?



Work problem 5 solution here


solve algebra word problems

Finding The Slope of a Line


solve free math problems

Strawberry Basket - HOTP Template

I know I know, I'm very bad ! But I couldn't help it, I've joined the Template HOTP Personal shopper. I thought why not since the pound is getting stronger and it's delivered every other month. This month the template allows you to make this lovely basket ! I've used the papers that came with the kit and the brads too. We also received as a thank you gift another mini template to make envelopes.

You all know I'm ! template mad so this kit was right up my street. I can see myself making a few for Xmas and Easter next year !



You can see the rest of my blog posts either by clicking the HOME link (Top Left) or this LINK

point paper template

Garage Sale-Purchased Negatives Found to be Ansel Adams', Appraised at $200 Million

In this Antiques Roadshow era, everyone dreams of finding some lost gem of art or antiquity to cash in on later.

In this case, a box of 65 glass plate negatives found at a garage sale 10 years ago for $45, has now been verified by handwriting and photography experts to be the work of Ansel Adams. Appraisers have valued the treasure trove at around $200 million. It was 10 years of hard work proving that they were authentic. I'm sure the California man who found them invested quite a bit of money toward that e! nd, so I suspect $45 initial price tag may be slightly misleading about the overall net cost.

The reason for their being off-premises is not explained, but that saved them from a fire that claimed 5000 other Adams negs. I have a hunch this was a reject bin Adams used for teaching materials. Granted, Adams' reject bin has amazing stuff in it, but perhaps he never intended some of these to see the light of day. Imagine someone going through your studio's garbage and selling your work after you're dead. Guess we'll never have to worry about that.

Story here on CNNs website.

So... if you see glass plate negs at the Elephant's Trunk flea market one Sunday... look very closely.

By the way, we can print from black-and-white glass negatives and other antique media, both traditionally and digitally. In color, we ! can reproduce them digitally. We did a job for the Newtown His! torical Society a number of years ago and pulled an incredible amount of detail out of some glass plate negs. Gorgeous prints of historical images. Film may be dying, but it is still sending us love letters from bygone eras.


online calculator with negatives

Using the PEBL Survey Generator

Version 0.10 of PEBL offers a survey generator, distributed in the Test Battery. It is designed to offer only limited interaction, so that the respondent sees only the survey questions and keys must make responses to continue. And as an experimenter, you can design it simply by editing a .csv file in your favorite spreadsheet or text editor.

There are a lot of web-based options for creating surveys.  PEBL won't run via a web browser, and so if you want to create a web survey, this is not the tool for you.  This will run on a dedicated computer, without internet access.  It is probably most useful for getting demographic information during a laboratory or field study, and this is mainly how I have used it in the past.

It is located in the test battery under the survey/ directory, but you need to tune it to your own situation. Here's how:




Features of the survey generator



The survey generator allows you to specify a sequence of screens which either provide information or request responses. One such screenshot is shown on the right. By editing a .csv file in a spreadsheet, you create the survey. Responses and time taken for each response are saved into a file for later processing; and the file gets saved according to a subject code which is the first response input during the survey.


Baseline survey demo
The baseline survey is set up to run at a resolution of 1024x600.   The layout is fairly flexible, so if you change the hard-coded resolution by editing survey.pbl, it will adapt to fit.  It has a title "PEBL Survey Generator" and a logo file hard-coded into the file survey.pbl. Finally, it uses by default the file questions.csv to specify the survey, and saves output as output/response-X.csv. You may want to change some or all of these parameters. The survey is set up to scale fairly easily to other screen sizes.

To customize the overall look and feel, open the file survey.pbl in a text editor, and look for the following lines:



Screen size:

Screen size is controlled by
gVideoWidth <- 1024  
gVideoHeight <- 600
Change these to a pixel width/height that your screen can handle. You can make the screen larger, but making it smaller may not afford enough space to use some of the survey questions.

Logo:

The logo is controlled by the line:
gLogoFileName <- "images/logo.png" #change to your own logo file. (400x80)

To use a different logo, create a 400x80 image (png, bmp, gif, or jpg) and save it in the survey directory. Then change the file name in the above line.

Title:
The title is specified by:

gSurveyLabel <- "PEBL Survey Generator"

Edit this line to change the name of the survey. To remove the survey text, change it to "".


Input and output files:
Input file is specified by:

dat <- ReadCSV("questions.csv")
 

Change questions.csv to some other csv file you want to use.

Output file is specified by the line:

 

fileout <- FileOpenAppend("output/results-"+gSubNum+".csv")

Note that this creates a file that depends on the variable gSubNum, which saves data for a subject to a file that depends upon their subject code. 
 
Defining the questions
The different types of questions are defined in a .csv file. The first column is a question ID which gets copied to the output file. The second file is typically a text description that appears in the survey. The rest of the columns depend on the question type, and are described in the next section. If you create the CSV file in excel, you sometimes have to be careful that it doesn't append empty lines at the end.  If the survey crashes when you get to the end of the questions, edit the questions.csv file with a text editor, and delete any lines at the end that only have commas



Types of screens
The survey generator offers sevenl different screen types. The third column of the questions.csv file controls which type of survey question is used.













Here is a description of the different question types, and the codes in column C used to specify them:

Type: Instruction
Code: inst
Description: Give a text instruction to user, who clicks 'next' to continue.
Notes: Text in column 2 of csv.





Type: Long answer
Code: long
Description: Probe with a question, allow respondent to type a long answer, which gets verified when complete.
Notes: Text in column 2 of csv.








Type: Short answer
Code: short
Description: Probe with a question, allow respondent to type a short answer and continue by hitting enter.
Notes: Text in column 2 of csv.






Type: Multiple choice
Code: multi
Description: Probe with a question, allow respondent to click on one of a set of answers.
Notes: Text in column 2 of csv. Column 3 contains a number describing how many options. Columns 4-N contains the response labels.








Type: Multiple check
Code: multicheck
Description: Probe with a question, allow respondent to click on any responses that apply.
Notes: Text in column 2 of csv. Column 3 contains a number describing how many options. Columns 4-N contains the response labels.





Type: Likert scale
Code: likert
Description: Probe with a question, allow respondent to click on an anchored scale
Notes: Text in column 2 of csv. Column 3 contains the number of responses.




Type: Image view
Code: image
Description: Show an image and give text. No direct input availabile.
Notes: Text in column 2 of csv. Column 3 contains name of image file.





Data output
The data are saved to a .csv file with the following columns:
subject code, question id, timestamp, response, type, response_time, response2
In these files, you can ignore response in favor of response2.

Tips and Tricks
* Under windows, you do not need to run the pebl launcher to execute a survey. Create a file called run.bat, and edit with a text editor. Put the following in the file:

"c:\Program Files\pebl\bin\pebl.exe" survey.pbl --fullscreen

This will execute the survey fullscreen. Because the subject code gets entered in the experiment, the launcher really isn't necessary.

* To abort an experiment mid-run, hit ctrl-shift-alt-\ simultaneously.
* If you accidentally reuse a subject code, the data will get appended to the data file (not overwritten).
* If the subject uses the 'back' button, response for that question will be recorded twice. You must filter the data to look at just the last response.

Summary
There are many online tools that allow you to easily create surveys. But sometimes you don't have access to the internet or wish to run a survey within a series of other tests. The PEBL survey generator allows you to develop fairly complex surveys with little effort, and you don't need web access to run the survey.

Here is a screencast of what taking the survey looks like:




number line generator

Extending NServiceBus: Avoiding Two-Phase Commits

When using non-transactional queues processing a message is trivially easy—just handle the message and write to your data store.  If the process dies and we lose a message, that’s okay.  But when using a transactional queue things can become more difficult because we want our infrastructure to ensure consistency between our message queues and application database.  I have already outlined the trouble of using two-phase commits in a previous post.

What if we were able to handle the inconsistency between our message queue and application data store at an application rather than infrastructure level?  What if we embraced receiving duplicate messages?  What if our application had the ability to make message processing idempotent, despite the message not being idempotent?  What if we were able to pi! ck and choose the messages that that became idempotent on a per-message type basis?

A Typical Example

Let’s go through a typical message processing example to see how this might work.

When everything is working properly we:

  1. Receive a message from the queue.
  2. Process the message.
  3. Save any changed application state to our data store and call Bus.Publish.
  4. Publish resulting messages.
  5. Message transactionally removed from the message queue.

But what about failure conditions?  This is exactly the type of thing that transactions are designed to handle.  How can we maintain application integrity without 2PC?  L! et’s consider a few failure conditions.

When the database transaction fails:

  1. Receive a message from the queue.
  2. Process the message.
  3. Write the changes to the database.
  4. Fail to commit, e.g. power outage, process restart, etc.

When the process comes back online, it’s going to pick up right where it left off and the application and message queue will be in a consistent state.

Now let’s examine a failure condition where the database commits but resulting messages failed to publish because of a power or hardware failure.

  1. Receive the message from the queue.
  2. Process the message.
  3. Save application state and call Bus.Publish.
  4. Commit application state (inside of a separate transaction).
  5. Power failure.

Herein lies the problem.  When the process comes back up, it’s going to reprocess the message…but it’s already been processed.  How do we handle that?

The Solution

What if we were to keep a log of all received messages (at least their identifiers) along with all bus activity (Publish, Send, Return, Reply) associated with the processing of that message?  What if we stored that list as part of our application state during the commit operation?  Doing so would allow us to check if a message was already processed.  If it was already processed, we could get the associated messages that resulted from processing and redispatch them.  It may be worth noting that event sourcin! g already stores all of the changes that resulted from process! ing a me ssage.  In that scenario you’re already saving the data, now it’s just a small initial check before processing.

What I have outlined above is actually a well-understood pattern and some message queue providers even provide database hooks to facilitate message de-duplication.  Pat Helland who worked at Amazon and Microsoft wrote a really good paper on this exact same topic a few years back.  One critical difference between what Pat proposes vs. what the message queue providers do is that Pat always works on local copies of data.  In other words, the boundary of each transaction is against a single machine or tightly bound cluster of machines.  This rings true to me because it is harmonious with SOA principles.

I recently created a proof of concept around these very same! principles and I call it “IdempotentConsumer”.  It’s an NServiceBus message handler along with associated application services that facilitate de-duplication of a message before handing it off.  In my proof of concept I am relying on two concepts—that each logical business message can be uniquely identified by a business identifier specific to the message and that each message is addressed to a single business entity—like an aggregate root.  Plug-ins could be written to work with alternative storage engines.

UPDATE: IdempotentConsumer has been updated to utilize more optimistic styles of concurrency.  Rather than checking each message that arrives before handing it off to the application, we instead assume that messages are not duplicate and handle any optimistic concurrency exceptions raised by our data store.

NoSQL

While the above wo! rks great when you have a resource that supports transactional! integri ty in the form of TransactionScope, it becomes more difficult when working with NoSQL storage engines, such as CouchDB, Cassandra, Riak, etc.

In a relational DB we can perform multiple writes to various tables and have all writes be transactional.  In NoSQL the boundary of a transaction is a single write.  Multiple writes means multiple transactions.  Granted, CouchDB does support batching, but you lose some consistency checks when doing a batch write to multiple documents simultaneously, such as the ability to raise an optimistic concurrency exception if you’re not writing using the latest version of a particular document.

So how do we write the list of published messages resulting from the message currently being processed and maintain transactional integrity with the changes in application state?  Easy.

Write the list of messages to be published as a result of processing the ! incoming message.  Once that transaction is complete, write the associated document containing the changes in application state--but include the ID of the message being processed *inside* the document.  When we query to obtain the list of messages we do a server-side or client-side MapReduce of sorts to effectively “join” the list of published messages with the associated parent message ID found in the application state document/row.  If the application state contains the ID found in the list of messages, redispatch the stored messages and we’re done.  If it doesn’t, delete the list of published message—they were never published because a failure occurred prior to writing the application state record.

Because we are doing this on a per-message type, we can customize the way we query each business object—we can have a standard way of querying most and then customize the way we qu! ery specific ones depending upon how they store the parent mes! sage ID.   We can vary the way we query based upon the document storage structure or even storage engine.

Conclusion

The biggest advantage of what I have elaborated is that we can effectively simulate a two-phase commit among multiple resources without the overhead of a 2PC.  These allows us to use storage engines whose drivers don’t support two-phase, e.g. MySQL, PostgresSQL, or virtually all NoSQL implementations.  Furthermore the receipt and publishing of a message is still transactional, it’s just a separate transaction from the storage of application state.  As I mentioned previously those that do event sourcing effectively get this for free, but a small amount of application service code must be written to facilitate it.

One big argument against the above is that we’re doing lots of unneeded queries to determine if we should even bother to process the m! essage.  Yes, that’s true, but we should only ever be querying a local storage (truly local or inside of our cluster). [UPDATE: The previous argument is nullified by using optimistic concurrency as noted in the previous UPDATE above.]  Next, we don’t need to implement this for every message type.  You are free to make your messages inherently idempotent.  You are also free to use safe, slow two-phase commit if the situation requires or operational environment allows.

These same patterns can be applied even when using non-transactional resources, such as sending an email.  The only quirk here is that there may be a one in a million scenario where we publish the same email twice.  But in that case, it’s not really a big deal if someone gets duplicate emails.


idempotent set to off

The Human Timepiece, Water Intake Calculator

I watched a really neat show last night called The Human Timepiece on the Discovery channel. It went through a day in two hour segments, breaking down what the body is naturally doing biologically at those times. It even said when the best time to eat and workout would be according to the body's biological clock. Here are some interesting tidbits I picked up from the show:

- Exercise in the late afternoon or early evening. (Around 4pm.)
Most athletic records have been set and broken during this time. They studied various athletes who did the exact same workout at different times of day and found out that those exercising around 4pm were up to 10% more effective than those working at other times of day. The morning is the lest effective time to work out because your blood vessels and arterie! s are less flexible. It even increases your chances for things like heart failure since your blood is also "thicker" for a few hours right after you wake up.

In other words: do you want to burn 10% more calories doing the same amount of work? Try to exercise around this time. Your body's core temperature is naturally slightly higher so you get extra benefits. I wish I didn't have to work graveyard. I'm two or three hours from waking up during this time. :/

- Eat the majority of your calories shortly after you wake up.
I use the term "morning" very loosely because I know that's different for everyone. For me it's usually around 7pm! Right after you wake up your blood pressure is naturally at its highest and stays that way until about mid day. If you eat your calories early on your body has the entire day to burn through them before putting the remainder in storage. On t! he show they gave people the exact same meals adding up to the! exact s ame amount of calories, but they ate the meals at different times. Those who had a large breakfast (50% of their daily calories,) a moderate lunch (35%,) and very little for dinner (15%) used their caloric intake most effectively. For those who prefer to snack between meals, subtract calories from your dinner allowance.

Eating causes your glucose levels to go up and if that happens right before a period of relaxation (like sleep) your body is much more likely to store the fat for a time when you need it. I guess this is why I've always heard you shouldn't eat ____ hours before you go to bed.

Following a calorie plan like this one would be very difficult for me. I normally eat a huge amount (if not all of!) my calories right before bed for a bunch of reasons: I'm home and done rushing around so I actually have time to dedicate to a meal, I feel like relaxing and having something to eat, I have nothing to do so I get bored and eat, plus I usually feel tir! ed after eating a decent meal. My weight struggle also comes into play here. I can't help but think that if I'm going to eat, at least I can do it right before I peace out from the world for a while. That way I know the food has hours to digest before I have to look at the scale again.

I also find that I feel more hungry if I haven't had a chance to really acknowledge and comprehend a meal. How do I do that? Do I sit there and have a conversation with it? Do I read into it? Do I practice active listening while the food communicates with me? What I mean to say is that I really need to remember the experience of eating. I want to have something that I enjoy the taste of and take a while to consume it. If I rush through a meal that isn't very stimulating to my senses I think I'm more likely to forget that I ate or feel like I've cheated myself in some way. This goes back to some of my cardinal rules, one of which is...

"I have to love it. This applies for everything from now on. If I'm going to put it inside of me and risk all the calories, fat, weight, and stress... then it better be super delicious and exactly the way I like it. If there's something I don't like about it then that's just another excuse for me to stop eating it."

-Drink a ton of water.
I never ever used to drink enough water. I would have sodas all day, and maybe some juice, chocolate milk, or other flavored beverage if it came my way. It's no wonder that I was 50lbs+ / 23kg+ heaver than I am today. Even today I struggle with it because I feel like I'm going to put on a ton of weight. This show reminded me that water is totally neutral and has no calories. It's what most of your body is made of and it needs a lot of it to function at its peak! . If you're not hydrated, you won't burn as many calories by doing normal activities (breathing, sleeping, etc.) I have to tell myself that it'll be worth it in the long run. (Plus... I'm a creep and I weigh myself every time I use the restroom at home. It's neat to see how much weight I can lose just by doing it.)

There are also so many zero calorie things that can be done to water to give it flavor. You can have it at a variety of temperatures and textures (0 calorie gelatin, anyone?) This cool calculator will tell you exactly how much water you need in a day. Not everyone needs the recommended 64 ounces. It says I should have 90 ounces a day... bleh.

Theme for thinspiration is before and after. It's probably my favorite, along with scene/alternative/emo/whateveryouwannacallit. [:


















I've mentioned my roommate a few times (she's with me in some of my MySpace pictures.) My height, 90lbs, vegan, constant reminder that I need to lose some weight? Here's what she looks like.



Don't forget about the giveaway on this blog! It ends soon! [:


how many hours until calculator

Grading Systems Part 1 - Logic and Percentages

This is part one of a series of posts on grading students. Last year during a professional development seminar my former principal starting discussing perceived inequities in grading systems. He rambled on about an F being worth 50% and 5 point grading scales. I attempted to follow what he was talking about, but failed to understand its relevance to my(or any) classroom. Recently, I ran into an article describing exactly what he was talking about. I finally am starting to grasp the issue that lead to the faulty conclusions discussed in that article and by my principal.


The general problem is when teachers arbitrarily assign a letter grade to an assignment and then t! ry to convert it to a percentage. Thus what happens is a D is worth 60% and an F a 0%. The article is correct, this does not make sense. The problem is the use of a letter grade as the initial grading system and then trying to convert this into a number. This problem does not include the more common practice of converting a numerical grading system to a letter grade. Thus for most math classrooms this article should not apply. Math lends itself to figure all grades in terms of percentages. Then when grades are reported letter grades are assigned to those percentages. Here is the statement I am referencing from the article.
Their argument: Other letter grades — A, B, C and D — are broken down in increments of 10 from 60 to 100, but there is a 59-point spread between D and F, a gap that can often make it mathematically impossible for some failing students to ever catch up.

The pro! blem with this is they are incorrectly viewing the problem. Th! ere are two sets, passing and failing. Failing is from 0-60 and passing is from 60-100. Now the other letter grades give the student, parent, school and college exactly how well they are passing. Now if they want to make an argument that failing should be 0-50 and passing from 50-100 that is fine, but the argument that 50% should be a minimum failing number is weird and doesn't make sense. If you want to do that then work off of a 4 point grading system.


However, I am not sure I logically agree with a 0 to 4 scale. My problem is that it doesn't distinguish well between a student that is almost passing and one that isn't close. This is an important distinction to make. Not because it matters on their report card, but from a teaching perspective. When I grade something I need to be able to quickly determine the skill level of each student. I am digressing though because, as I said before, ! this doesn't apply to a math classroom. Math lends itself to total points and percentages.


As you can tell I disagree with the ideas put forth in this article. They are born out of a desire to pass more students and are disguised as a self esteem booster. It always amuses me when schools attempt to dictate grading systems to their teachers. In a classroom it is always possible to manipulate the system so the grades look like you think they should. I think in general schools spend way to much time looking a the grading and numbers involved with failing students. At my last school our failure numbers were monitored. If they were too high then you were going to here about it. Accordingly many teachers lowered standards.

In my mind the best way to grade a student is using point totals and pe! rcentages. Letter grades are only useful as communication tool! s to par ents, students and colleges. All assignments should have number values associated with them. A much more difficult question is, how do I determine what number represents a minimum competency in my classroom? This question is not asked nearly often enough.

grading scale percentages

Geometry Mock Exam, Question #26


geometry exam

Free Math Tutoring at Gonzaga

I would like to tell parents about a Spokane mathematics tutoring program, currently held at Gonzaga University during both semesters of the school year. It’s held on Saturdays, about three times a month, from 10-11:30 a.m.

The tutors are handpicked engineering and mathematics students from Gonzaga. The program is geared toward students in grades 3-12, and they will take anyone (from any school district) who can make it there.

The tutoring is done individually or in groups of two or three. This is not a classroom format, so it’s tailored to meet individual students’ needs. The tutors will teach the students anything they need to learn, but the goal is to teach them the mathematics they’ll need for the future they envision for themselves.

I would like to take a moment to mention again that the main math curricula in Spokane Public Schools are reform curricula: “Bridges,” “Investigations in Number, Data! , and Space,” “Connected Mathematics” and “Core-Plus Mathematics.” Mathematicians and math advocates have criticized reform curricula, especially these ones, for their lack of rigor and clarity and their illogical approach to the subject. If your children take solely reform classes – and without some sort of intervention, remediation or tutoring – they are likely to require costly intervention before they begin college classes, a trade, or a job requiring any sort of arithmetic.

I encourage you to speak with people who are well trained in actual mathematics. You also can look through this blog, specifically these articles:

Birth of reform = Demise of Math Skills
The "Laws" of Learning
What's Wrong With Public Education?

The Gonzaga tutoring program is run at no cost to parents. The organizers ask only that if you sign up, then you make sure your children are there. Space is limited, and the tutors are volunteering their time.

If you’re interested in this program, please call Andrew Holguin at 998-7752.

free math tutoring

4/8/2008 Results

WWTBAM: Returning is Justin Oswald. $16,000 question:

How did Al Capone die?

A: Assassination
B: Train accident
C: Illness
D: Death penalty

He first polls the audience. 74% said illness while 19% said assassination. Illness was his gut, so he agrees and now has $16,000. For $25,000:

Which of these U.S. Army units is the largest?

A: Division
B: Brigade
C: Battalion
D: Company

He calls Adam, who's unsure it's division. The 50:50 leaves that and brigade. He goes for it with division...

A: Division
B: Brigade

...right for $25,000! After switching, here's his $50,000 question:

Magyar,which has no gender-specific pronouns like "he" or "she", is the official national language of what country?

A: Croatia
B: Romania
C: Bulgaria
D: Hungary

After talking it out, he says Hungary...
A: Croatia
B: Romania
C: Bulgaria
D: Hungary

...it is for $50,000!

(Instead of the current $50,000 graphic, the previous $50,000 graphic was used.)

For 100 large:

Which of the following has never been the title of a workout video starring fitness expert Richard Simmons?

A: Fit to the Hits
B: Stretchin' to the Classics
C: Disco Sweat
D: Dance Your Pants Off

He goes for it with Disco Sweat, and I groaned...

A: Fit to the Hits
B: Stretchin' to the Classics
C: Disco Sweat
D: Dance Your Pants Off

...because it's actually Fit to the Hits. He leaves with $25,000.

Leslie Magnusson-Alexander from Phoenix is next. She has some trouble on this $1,000 question:

Of the 2006 movie "Dreamgirls", what singer once joked "I! 'm going to see it with my lawyers"?

A: Diana RossB: Donna Summer
C: Aretha Franklin
D: Gladys Knight

After asking the audience, 90% said Ross. She agrees and is right. Next, for $2,000:

What type of candy is known in England as a "gobstopper"?

A: Gumdrop
B: Jellybean
C: Jawbreaker
D: Bubble gum

She calls Ozzie, who has nothing. The 50:50 leaves gumdrop and jawbreaker. She says jawbreaker...right. Next:

What is the apt slogan of the Indiana radio station WQME 98.7?

A: Burning Up the Airwaves
B: Just a Shade Above Normal
C: Frostbite Plays All the Hits
D: Take It Down a Notch

After originally thinking Burning Up the Airwaves, she goes with Just a Shade Above Normal...

A: Burning Up the Airwaves
B: Just a Shade Above Normal
C: Frostbite Plays All the Hits
D: Take It Down a Notch

...and she has $4,000! $8,000:

Lewis and Clark's 1804 expedition across North America inc! luded a group of explorers known as the what?

A: March of Opportunity
B: Troop of Exploration
C: Voyage of Adventure
D: Corps of Discovery

She stops. The answer was Corps of Discovery.

Merv Griffin's Crosswords: Episode #196 is an all-California show, and it begins with Tom Gray (a science writer from Oak Park) and Roberta Wall (a singing teacher from El Hambra).

At the day's first Extra, the man's in control with $200 to the lady's $300, and he risks $500 on this:

_ _ E _

Clue: Leaves' home?

He says TREE, but a second too late, so he drops to $300 in the hole. He gets back to zero at the end of the round while the lady has $350.

Today's Spoilers are Miles Taber (a profiteer from West Hollywood), Steve Callahan (a writer from Sherman Oaks) and John Pancake (a paralegal from L.A.).

1. (Four-letter word)- Beat by a very wide margin. For the first spoil of the day,! Callahan says ROUT...yes for $550!
2. (Eight letters)($3! 00)- Sub ject of a '60s military competition. Total Stumper- it was ARMS RACE.
3. (Five-letter word)- Devices to catch the unsuspecting. Gray says TRAPS for $200.
4. (_ R _)($100)- Subject for students at Pratt. Taber easily spoils with ART to go to $650!
5. (P _ _ _)- Feature of homemade orange juice. He gets PULP to go to $850.
6. (_ L _ _ _)- Run off to wed. Gray misspells ELOPE, so he's back to zero. Taber spells that word correctly to hit $1,050 and find the first Extra of the round. He risks $700:

_ P _ _

And the clue is: Michael J. Fox's "____ City". He gets SPIN to go to $1,750!

8. (P _ I _ _ _ _ _ _)($300)- Fit for publication because there's nothing questionable. He says PRINTABLE...and that will put him at $2,050!
9. (E N _ _ _ _ _ _)($300)- Put in harm's way. He nails ENDANGER to go to $2,350!
10. (_ _ _ G)- Knelled. He says RANG...$2,550!
11. (_ N _ _)- Hostile to. John goes for the spoil with ANTI...and! that's right for $2,750!
12. (_ A _ _)- With "Yes", it's a polite response. John says MA'AM...$2,950! And he gets the other Extra of the round and he wagers $1,500 on the following:

_ _ R _ _

Clue: What things could always be?

He can't get WORSE, so he falls to $1,450.

14. (Three-letter word)($100)- Took in, as a movie. Gray gets SAW for $100.
15. (_ _ S _ _ _ _)($300)- Seventh heaven. Gray says ECSTACY...uh, no. He drops back to a hundred in the hole. It was ECSTASY.
16. (Four letters)- "Render therefore ____ Caesar...". He says UNTO...he's back to zero.
17. (_ _ N _ _)- Tony-winning Lotte. John says LENYA...right to go to $1,650.
18. (Four letters)- Antithesis of include. John says to OMIT...$1,850!
Final clue (_ _ T _ _ _)- Do a private eye's job. Gray says DETECT...he's back at $200.

ROUND 3

1. (_ _ _ D)- Gulf War missile. Gray says SCUD...he doubles his money.
2. (Ten ! letters)($300)- Commit, as a crime. Gray goes for it with PERP! ETRATE.. .that's right to go to $700!
3. (_ _ _ P)- "Du jour" item. He says SOUP to go to $900!
4. (_ _ _ S _)- Picked. John says CHOSE...he's back over the two grand mark ($2,050)!
5. (_ _ _ U _)- So all can hear. John says ALOUD...that puts him at $2,250!
6. (Five-letter word)- Keep for later use. Gray says HOARD...I'm afraid not. Callahan tries to steal his $900 with STORE...yes!
7. (Four-letter word)- Having neither side ahead. John says TIED...incorrect. Gray blanks out when trying to spoil. Taber can't do it either, so he's locked out as well and John drops back to $2,050. The answer was EVEN.
8. (Four letters)- James ____ Carter. John blows the spelling of EARL, while Callahan gets it right to go to $1,100. That drops to leader to $1,850.
9. (Four-letter word)- Internalized, with "up". Callahan says TOOK...incorrect, dropping him back to $900. It was PENT.
10. (Three lettters)($100)- Apartment, in out-of-date slang. Callahan says PAD...h! e's back at a thousand as the last Extra of the day comes up. Instead of betting $900 or $1,000, he bets the full $2,000 on this four-letter answer. The clue:

"Old" British buddy.

He says CHAP...

C H A P

...the risk paid off- he now has $3,000!

HOME STRETCH

12. (Four-letter word)- Feature of Limburger cheese. John says ODOR...right to go to $2,050.
13. (Four-letter word)- Open a sugar packet. Callahan says TEAR...that's $3,200!
14. (Another four-letter word)- Turkish nabob. John says AGHA...no, dropping him back to $1,850. It was AMIR.
15. (Yet another four-letter word)- Asian appetizer served with peanut sauce. He says SATE...he gets his lost $200 back.
16. (Five-letter word)- Form a coalition, e.g. He says UNITE...that's right to go to $2,250!
Final clue (four-letter word)- Insensible condition. To steal the game, the only lady today says COMA...s! he wins $3,400!

Crossfire: Time for her to prove he! rself. I f she can fill in the remaining 18 blanks, she'll take home $8,400 and a trip to Jamaica...but she falls just one lousy blank short.

Cash Cab: First up today, heading to the St. Mark's Bookshop 33 blocks away, were Johnny Woods and Sharon.

$50 round:
Q1: Sometimes equated with sexism, what medieval code of conduct commonly said to be dead?
Guess: Shivelry- RIGHT ($50)
Q2: Also the name of a TV western, what untreated kind of animal skin serves as a perfect chew toy for dogs?
Guess: Rawhide- RIGHT ($100)
Q3: Also called the Palmetto City, what southern metropolis is affectionately referred to as "Chucktown"?
Guess: Atlanta- NO WAY (A: Charleston)
Q4: Denoting the pedals of a flower, what botanical term lends its name to a top-selling Toyota model of all time?
Guess: Celica- STRIKE TWO (A: Corolla)

$100 round:
Q1: Abbreviated OSS, what war-time intelligence agency was a predecessor to the CIA?
S! TREET SHOUT-OUT(Gramercy Park): Officers' Strategic Services
Guess: Officers' Strategic Services- RIGHT ($200)
Q2: Due to its use of mustard gas and seron, Iraq official Ali Hassan earned what infamous nickname?
Guess: Chemical Ali- RIGHT ($300)
RED LIGHT CHALLENGE: In the U.S., the seven sisters of Protestantism include the disciples of Christ and Congregationalists. Name four of the other five.
Correct answers given: Methodists, Lutherans, Presbyterians and Episcopalians ($550)
Final question: A giant among sportscasters, what 5'7 HBO commentator did Barry Bonds call "a little midget man"?
Guess: Bob Costas- WIN ($650)

They decided to keep their money.

Andy and Amy failed to survive 42 blocks to get to a spot at 23rd and 10th.

In the last game of the day, trying to get somewhere on 3rd between 13th and 14th were Jen, Alicia, Dee and Andrea. They had to survive 48 blocks. They got their first strike on the! ir last $50 question.

$100 round:
Q1: Named by! an 11-y ear-old contest winner, Bugsby is the mascot of what popular breakfast cereal?
Guess: Honey Nut Cheerios- YES INDEED ($250)
Q2: This year, New Zealand flew its flags in half-mast to mourn the passing of what iconic mountaineer?
Guess: Hillary- RIGHT ($350)
Q3: Formed in 1887, what French colonial region once encompassed Vietnam, Cambodia and Laos?
MOBILE SHOUT-OUT: Andrea called Pete, who said nothing.
Guess: Camarouge- NO WAY (A: Indochina)
Q4: In the 1980s, an Italian gun manufacturer sued General Motors over the name of what Chevy coupe?
Guess: Montenegro- ZONK ANSWER OF THE WEEK NOMINEE FOR STRIKE THREE (A: Beretta)

WOF: Neil Patrick Harris does his second shout-out of the season. Tonight's players are Scott Martin from Warrior, AL (who is a graphic artist), Jackie Turner from Dallas, GA (who is a school bus driver and a trainer of school bus drivers) and Meaghan Crosby from Port St. L! ucie, FL (who is a spinal decompression technician).

Tonight's male player gets THE MAINE COAST for $1,000, while Crosby gets RECYCLING BIN for $2,000.

Round 1 category is Before & After and out on the wheel now is a $6,000 trip to Costa Rica. At the start, Crosby calls an S for $10,000! After she later buys the A, we have...

A R _ _ _ _/_ _ R _ _ E/

_ _/_ R _ E N _ S

...I think I've got it. After a $900 L, she buys the O and calls the F's for another $600 and the Free Spin. She then calls the C's for another $3,600 and solves ARCTIC CIRCLE OF FRIENDS for $17,450 and $19,450 total!

Campbell's Soup Jackpot Round category is What Are You Doing? At the start, the man calls four N's for $14,000, but loses it right back to Bankrupt City. Later on, the leader calls two T's for the 25 prize- 25 sets of four-ticket movie packs from Fandango. She then calls a dud in R and then uses her Free Spin, but then calls an! other dud in L. After the other lady buys the E's, we have...
S _ E N D I N G/_/_ _ I E T/E _ E N I N G/

_ T/_ _ _ E

...I've got it, and she does too with SPENDING A QUIET EVENING AT HOME for $1,000.

IHOP Big Money/Prize Puzzle Round category is People. Midway in the round, the man hits the Big Money Wedge, but it has Bankrupt showing. After the winner of the last round calls a $3,500 C, we have...

_ R _ _ E _ _ _ _ N A _

_ _ _ A

_ A N C E R _

...I know the last two words. She calls a $550 D and calls three S's for another $900, and we now have...

_ R _ _ E S S _ _ N A _

_ _ _ A

D A N C E R S

...now, I've got it. She buys the I but hits Lose a Turn next. Crosby calls the L's and solves PROFESSIONAL HULA DANCERS for another $600 and a trip to Kauai, Hawaii, for a new total of $26,800!

WINNING ID FOR TRIP: GO01237

The man then gets KING-SIZE SHEETS to go to $4,000 (Turner blank! ed out when she was the first to ring in). Next category is Phrase. After he buys the A's, we have...

_/_ A N/_ A _ _/A/_ _ N _

...I think I've got this already, but he calls a dud in R. Turner calls an $800 C and buys the I's, then the big bell rangs. The remaining consonants are worth $1,800 apiece. Both ladies call duds in G and L and respectively. The man also calls a dud in M. Turner then calls D for another dud. Crosby calls the H but can't solve. The man calls the T's and steals I CAN TAKE A HINT for a final total of $7,950. Turner leaves with $1,000 while Crosby is our champion with $26,800!

She spins the H and the category is Thing. Starting with:

_ L E _ _ _ _ L _ T _

I know it already. Crosby calls C, M, P and A and gets nothing.

Can she get FLEXIBILITY...no. She doesn't win another $30,000.

Bingo America: Lesa and Alfonso are our players tonight.

GAME 1:
1. (I30)- What g! alaxy not so far, far away are we in?
LESA SAYS MILKY WAY! - CORREC T (-I---; $530)
2. (G56)- What's the only U.S. state that has an official native language?
LESA SAYS ALASKA- NO
ALFONSO SAYS HAWAII- RIGHT (---G-; $586)
3. (WILD)- What country singer was Julia Roberts' first husband?
LESA SAYS LYLE LOVETT- RIGHT (BI---; $686)
4. (G52)- Though he didn't invent the Internet, what U.S. Vice President coined the term "Information Highway"?
ALFONSO SAYS AL GORE- YOU BET ($738)
5. (O66)- What company raised chests and eyebrows over its U.S. debut of "Push Up" bras?
LESA SAYS WONDERBRA- RIGHT (BI--O; $804)
6. (B1)- President George W. Bush was one of the owners of what MLB team?
LESA SAYS TEXAS RANGERS- YOU BET ($805)
7. (I16)- Rob Pilatus and Fab Morvan were better known as what scandalous, lip-synching pop duo?
LESA SAYS MILLI VANILLI- RIGHT ($821)
8. (G59)- In 1999, the U.S. ended its management of what central American waterway?
ALFONSO GUESSES PANAMA CANAL- CORRECT ($8! 80)
9. (G47)- What was the first fully-computer animated feature film to hit the big screen?
LESA SAYS "Toy Story"- RIGHT (BI-GO; $927)
10. (N32)- Shakespeare's Sonnet asks, "Shall I compare thee to a" what?
ALFONSO SAYS ROSE- NO
LESA SAYS A SUMMER'S DAY- WIN ($959)

GAME 2
1. (I29)- "Ugly Betty" star Vanessa Wiliams formerly held what national crown?
LESA NAILS MISS AMERICA (-I---; $988)
2. (O75)- What astrological sign is represented by the goat?
LESA SAYS TAURUS- NO
ALFONSO GOES WITH CAPRICORN- RIGHT (----O; $1,063)
3. (G52)- Who was the first African-American woman to win the Oscar for Best Actress?
LESA SAYS HEIDI MCDANIEL- I DON'T THINK SO
ALFONSO SAYS HOWDI MCDANIEL- ZONK ANSWER OF THE WEEK NOMINEE (A: Halle Berry)
4. (G51)- He's known as the "Dog Whisperer", but what is the K-9 coach's real name?
LESA SAYS CAESAR MILAN- RIGHT (-I-G-; $1,114)
5. (I22)- "Lipstick Jungle" and "Sex! and the City" are books by what author?
LESA GOES WITH C! ANDICE B USHNELL- YOU BET ($1,136)
6. (B5)- WWII's Operation Overload was eventually known as what day?
LESA SAYS D-DAY- OF COURSE (BI-G-; $1,141)
7. (N38)- What boy band included Chris, Joey, Lance, J.C. and Justin?
LESA SAYS N'SYNC- CORRECT (BING-; $1,179)
8. (O67)- What city bills itself as the "entertainment capital of the world"?
LESA SAYS UNIVERSAL STUDIOS- ZONK ANSWER OF THE WEEK NOMINEE
ALFONSO SAYS LAS VEGAS- RIGHT ($1,246)
9. (N34)- George Clooney and Matt Damon have both been named what magazine's "Sexiest Man Alive"?
ALFONSO NAILS PEOPLE (--N-O; $1,280)
10. (O71)- Commonly used in Mexican cooking, what bean is the most widely produced legume in the U.S.?
LESA SAYS BLACK- NO
ALFONSO SAYS PINTO- RIGHT ($1,351)
11. (O64)- What's both a Chinese appetizer and a traditional Easter event?
ALFONSO ANSWERS WONTON- NO
LESA SAYS DIMSUM- NO (A: Egg roll)
12. (G53)- In what national park can you attempt to! scale Half-Dome and El Capitan?
ALFONSO SAYS YELLOWSTONE- WRONG
LESA SAYS YOSIMITE- CORRECT ($1,404)

SPEED-UP MODE

13. (I19)- T or F: The dish welsh rabbit traditionally contains rabbit.
LESA SAYS FALSE- YES ($1,423)
14. (O70)- Bitten or Twice Shy- what's the name of the clothing line launced by Sarah Jessica Parker?
ALFONSO SAYS BITTEN- CORRECT ($1,493)
15. (B14)- Carbon Dioxide or Nitrogen- the bubbles in sparking water are what type of gas?
LESA GOES WITH CARBON DIOXIDE- RIGHT ($1,507)
16. (B6)- Caroway or Poppy- what types of seeds are commonly added to rye bread?
LESA ANSWERS CAROWAY- CORRECT ($1,513)
17. (O65)- Russia or China- what's the largest country in the world in terms of square miles?
LESA SAYS RUSSIA- WIN ($1,578)

BBB: She instantly matches #19 and #46 for the mystery prize- a diamond package worth $3,100. She takes hoem $4,678 in cash and prizes.

four letter words ending in j

Glitter Removal

Remember my disco manicure? I said I'll keep you updated about the removal of all that glitz and I keep my promises. =)

I didn't have to much trouble removing the Wizard of Ooh Ahz glitters, but this one (ChG Nova) is a bit trickier. That's why I decided to try something I heard of on MUA Nail Board. I don't know who came up with this idea, I just know it ISN'T mine. =)

So... Here's the situation. Glitter, glitter, glitter.


I cut the cotton pad to 4 smaller pieces. Soak a piece of pad in nail polish remover (it doesn't have to contain acetone) and place it on the nail.


Wrap your finger (with cotton pad on your nail) in foil. Repeat on other nails.


Wait a minute and then remove the foil along with the cotton pad. Voila! Your nails are clean and glitter free! =)


I always practice this method: soak the cotton pad in remover, press it to the nail and hold in there for 15 seconds. It's really easier to remove your polish that way (glitter or creme). Foil is the key here, 'cause you don't have to hold the cotton pad and it keeps remover from evaporating. You may feel the warmth or tingling feeling to your fingertips... =)

Hope this helps! Especially for you, who are ''afraid'' of glitter. ;)

Thanks for looking!

foil method

Duplicating subsets of package selections between systems

I'm building a pair of Ubuntu systems for kids. For a variety of reasons, including lack of time and hardware problems, this has taken far longer than expected and I ended up with one running 9.10 (Karmic Koala) and the other 10.04 (Lucid Lynx). Since the Karmic system has the most testing effort into it (reviewing games for stability and kid appropriateness) I needed a way to duplicate the selection of games on the Lucid system while filtering out everything else since some packages are release-specific.

Using Synaptic it is possible to export (File > Save Markings) either a list of packages that have changed selection state but the changes haven't been applied yet or optionally a list of all packages and their status. While Synaptic can filter displayed packages by repository or type (the "section" parameter in the deb INFO file), these have no effect on the markings export.

The apt-get co! mmand (or dpkg directly) can be used to create a full list of packages but to produce a filtered list you need to use aptitude.

Aptitude has a search function that can be used to filter based on almost anything in a deb package INFO file. For example, to get a list of games available and save it to a game_selections.txt file:

aptitude search '?section(games)' >game_selections.txt

The question marks in the search pattern indicate that a search term follows. Because the parenthesis are special characters to the shell they need to have quotes around them. In this example "section" indicates the section parameter and "games" is term that is being searched for. Any package with a section parameter set to "games" will be listed:

...
i chromium-bsu - fast paced, arcade-style, scrolling space
i A chromium-bsu-data - data p! ack for the Chromium B.S.U. game
p chromium-data - t! ransitio nal dummy package for chromium-bs
p circuslinux - The clowns are trying to pop balloons to score points!
p circuslinux-data - data files for circuslinux
...

The leading character indicates it's state with "i" for installed, "i A" for automatically installed (either recommended or a dependency), and "p" for purged (i.e. no trace of existence on system which is the default state of all packages). To filter for installed packages only you add the "?install" parameter:

aptitude search '?section(games) ?installed' >game_selections.txt

...
i chromium-bsu - fast paced, arcade-style, scrolling space shooter
i A chromium-bsu-data - data pack for the Chromium B.S.U. game
i glchess - Chess strategy game
i glines - Five or More puzzle game
i gnect - Four in a Row strategy game
i gnibbles - Worm arcade game
i gnobots2 - Avoid robot! s game
i gnome-blackjack - Blackjack casino card game
...

The status and descriptions will cause syntax errors when using the file as input to aptitude so a format needs to be specified to filter them out. The "-F" parameter is used to indicate a format change and "%p" equates to the package name:

aptitude search -F '%p' '?section(games) ?installed' >game_selections.txt

...
chromium-bsu
chromium-bsu-data
glchess
glines
gnect
gnibbles
gnobots2
gnome-blackjack
...

To use game_selections.txt as input to aptitude on another system just use command substitution (see the sh or bash man page) to redirect it from the shell:

aptitude install $(< game_selections.txt)

On Ubuntu you need to use sudo in front of this command or use "sudo su" to create a root shell and issue it from there.


Subsets

Basic Tools for Physics: Quadratic Equations

If Ax2 + Bx + C = 0, then solve for x

One of the most common sorts of algebraic equations found in physics is the quadratic equation - one where the equation involves an "x squared" as well as (possibly) an x and some other constants.

The simplest quadratics to solve are ones like: x2 = A - there are said "to have no linear term" meaning that there is no term that is just "x." In these cases, the answer can be obviously found by applying our rule of "doing whatever we need to do to get the unknown by itself" In this case, simply taking the square root of both sides.

    x = sqrt(A).
There are, however, a couple of important points that need to be considered. Firstly, the sqaure root of A is not the only correct solution to this equation! Observe:
    (-1 * sqrt(A) )2 = (-1)2 * (sqrt(A))2 = 1 * A = A

Thus, the negative of the solution we originally found is also a solution! So, we need to ! write, for completeness, that x = +/- Sqrt(A). However, the situation in physics (as opposed to mathematics) is made simpler by the fact that we are usually trying to solve for some physical value that has to make sense. If, for example, we are trying to find the time a ball lands after being dropped at time t=0, a negative answer will make absolutely no sense - so we know that we only need the positive answer. If instead, we were looking at a ball that was thrown upwards and we observed that at t=0, it was momentarily at rest (at the top of it's flight) and we wnated to infer the time it was thrown upwards (a question that is solved with exactly the same equation as the previous one) we know that the time we want must be negative, so we take that solution.

Secondly, there is a further complication if A is not a positive number - for as we all know, the square root of a negative number is not a real number - it is an imaginary one! It is important to think about whet! her an imaginary solution makes any sense at all - in a proble! m like t hose above, getting imaginary times makes no sense - either we have made a mistake, or there are simply no times where what ever we were looking for happened - in this case we say that there are "no solutions" (as opposed to saying that there are "imaginary solutions" when such solutions make sense).

The more general quadratic equations – the ones involving an "x" term as well as an "x^2" term are slightly more complicated to solve. There are two main ways of solving these equations – factorizing or using the "quadratic formula."


Factorizing

All quadratic equations can be factorized into the product of two linear terms. For example:

    x2 + 3x +2 = (x+1)(x+2)
I’ll leave it as an exercise for you to check that this is correct.

Then, if we have the equation

    x2 + 3x +2 = 0
Then we can equivalently say that
    (x+1)(x+2) = 0
In this case, we can clearly see ! that if
    x = -1

then the equation becomes:

    (-1+1)(-1+2)=0 * 1 = 0
so x=-1 is a solution.

Similarly, it is clear that x=-2 is also a solution.

In general, if we have an equation of the form,

    Ax2 + Bx + C = 0

Then we can rewrite this as

    x2 + B/A x +C/A = 0

and then factorizing

    (x+D)(x+E) = 0

and x = -D and -E

where

    D+E = B/A
And
    D*E = C/A
Again, I will leave this as an exercise for you to check.

In all cases, it is possible to factorize the equation in this way. However, in many cases, the required D and E are difficult to find from simply looking at the equation (that is how I found the 1 and 2 in the numerical example above.

There are two cases where the factorization is especially easy – they are known as “difference of two squares” and “perfect square.”


The Differen! ce of Two Squares

In this case, we have a quadratic equat! ion that looks like
    x^2 - c = 0
In this case, as discussed above, x= +/- Sqrt(c)

We can also find this by factorizing the equation – we need to find two numbers that add to give zero and multiply to give c

It is clear that the only answer is:

    (x – sqrt(c))(x + sqrt(c))
which gives the answer we found earlier. Any quadratic that has no "x" term can be factorized this way.

The perfect square.

Consider the quadratic equation that is factorized to give

    (x+d)(x+d)=0

Multiplying this out, we get:

    x^2 + 2d + d^2 =0
So, anytime we have a function like this, where the constant term’s square root is exactly half the coefficient of the linear term, the quadratic equation is a perfect square and has a "double solution"
    x=-d

In many cases, the fact that this is a double solution (rather than a single solution) is usually unimportant – if you are trying to find a solution! , then your situation is even easier – there is only one choice!

The Quadratic Formula.

Although every quadratic can be factorized (as long as you are ok with imaginary and complex solutions), it is generally hard to find the factorization by simple inspection of the equation. Fortunately, we have an expression that gives the solutions to any quadratic equation.

    If ax2 + bx + c = 0
then
    x= (-b +/- Sqrt(b^2-4ac))/2a

This expression gives the answer to any quadratic equation. It is important to consider the possible types of solutions.

There are three distinct possibilities, each based on the value of the discriminant: b2 – 4ac. This value can be positive, negative or zero, giving distinct types of solutions to the quadratic equation (assuming a, b and c are all real numbers).

1) Positive Discriminant: In this case, the square root gives a real value. Then the plus or minus in fr! ont of it gives you two distinct solutions to quadratic equati! ons.

2) Zero Discriminant: In this case, we have only one solution. The equation is a perfect square.

3) Negative Discriminant: When we take the square root of a negative, we get imaginary solutions. This leads to a pair of solutions that have the same real part and imaginary parts of opposite sign – complex conjugate solutions.


Quadratic Equations, Quadractic Equations formula

Using Voice Thread to Share Lessons


Finding the Area of a Triangle

Polynomial Division: Long and Synthetic

Rather than explaining in lots of detail how to divide polynomials either using the long method or the synthetic method, I am sending my students to the following site. This PowerPoint is very brief, but it is very informative and shows every step of each process. Once the presentation is open, just press F5 to begin the slide show. A space bar or enter will move the slide show forward. The backspace key will back up if you need to see something again.

Examples on factoring polynomials

Distance formula - Part II

Continuing from my last post, where I told you that the distance between two points can be determined by finding the length of the hypotenuse of the right angle triangle formed from the two points.

We already know that to find the length of the hypotenuse, we apply the Theorem of Pythagoras, which says that c^2 = a^2 + b^2. (The square of the hypotenuse is equal to the sum of the squares of the remaining two sides). So from this, then, we see that we need to determine the lengths of the two sides that we have created by extending lines through our points to join at a right angle. And to find these lengths, all we need to know are the coordinates of our ! 2 points!

For a general triangle, then, we have something like this:
To find the horizontal length, it is just the difference between the two x-coordinates (ie. x2-x1). Think of it as taking a stick that is x2 units long, and chopping off a length of that stick that is x1 units long. The stick that you are left with, x2-x1, is the length of our horizontal side.

The same reasoning applies to find the vertical length, which is the difference between the two y-coordinates (ie. y2-y1). One comment I will make here, is that since we are talking ab! out a length of a side, the length has to be the absolute diff! erence b etween the two points (ie. you can't have a negative side length).

So then, for our general triangle, we have our 2 lengths, and let's call the hypotenuse "d" (as in, the distance between the two points).
So then, if we apply the Theorem of Pythagoras to this triangle we have created, we can come up with the distance formula very easily!

c^2 = a^2 + b^2...... which we can change to read:
d^2 = (x2-x1)^2 + (y2-y1)^2

And so we have:

d = sqrt [(x2-x1)^2 + (y2-y1)^2]
Let's quickly try with 2 points. You can draw the triangle out as I have above to follow along more closely. I will just do the quick calculation for you though.

Find the distance between the points (1,2) and (3,5).

d = sqrt [(3-1)^2 + (5-2)^2]
d = sqrt [(2)^2 + (3)^2]
d = sqrt [4 + 9]
d = sqrt [13]
And that's all there is to it. I hope that I've been able to clearly explain how to derive the distance formula. Once you know where a lot of these formulas come from, you'll never have to worry about memorizing them again! :)

Equation of a Line

The Longest Yard: The Subjunctive

A. The subjunctive form of a verb is used following verbs or adjectives of urgency, obligation or advisability. Write the words below under the correct column.


Demand - Critical - Insist - Crucial - Propose - Desirable - Request - Essential - Recommend - Important - Suggest - Necessary - Imperative






VERBS / ADJECTIVES

Ex: Demand / Critical


REMEMBER:



Verbs and adjectives that don't! express urgency, obligation or advisability don't need the subjunctive


B. Now watch the movie segment and choose the correct alternative for the items below. Make sure you decide whether you will you use affirmative or negative form according to the information presented in the movie segment.




1. Paul Crewe thinks that the police are / aren't / be / not be party poopers.




2. It's essential that a drunk driver respects / doesn't respect / respect / not respect a police officer.




3. The officer demanded that Paul left / didn't leave / leave / not leave the vehicle.



4. It's critical that Paul drinks / doesn't drink / drink / not drink while or before driving.




5. According to the reporter, it's imperative that a football player is / isn't / be / not be accused of shaving points*.

* Shaving points in football is to articificially control the score of the game (using the players) so the game score comes in within a certain range. Usually done to manipulate the Las Vegas betting odds.



6. Paul's girlfriend insisted that he got / didn't get / get / not get one more scratch on her car.




7. He hoped everyone liked / didn! 't like / like / not like the accident he! caused.




8. It is crucial that Paul gets / doesn't get / get / not get arrested because of the absurd mess he caused to the city.






C. Class discussion:




- What should happen to Paul Crewe? Should he go to jail, have an alternative sentence like helping the community or assistance institutions, or something else? For how long? Explain it.



WORKSHEET



video

Answer Key:


1. are


2. respect


3. leave


4. not drink


5. not be


6. not get


7. liked


8. get








segments of the circle