Archive for July, 2009

How to prove this statement without using a truth table?

July 31, 2009 - 12:11 pm 1 Comment

Hi, if any of you are familiar with using logic, plz help me.
Thanks in advance, and remember all I need is the steps and the reasons.

So here’s the question:

Verify the absorption law.

p v (p ^ q) = p

*Note I couldn’t put the equivalance sign since I dunno how to type it, so I just put two dashes to indicate the equivalence sign.
explain if possible.

thanks.

use distributive law

(p v p) ^ (p v q)
= p ^ (pvq)

now, by law of subsets
A ^ B = B whenever A contains B

since
p is a subset of pvq then

p v (p ^ q) = p ^ (p v q) = p

How to make a written SQL statement about a query?

July 31, 2009 - 12:11 pm 2 Comments

The query is
Title, in one column and then the certification in another

You need to provide more information. The question does not really make sense as you have asked it.

Select the converse of the conditional statement: "If angles are vertical angles, then they are congruent." ?

July 31, 2009 - 12:11 pm 1 Comment

Select the converse of the conditional statement:
"If angles are vertical angles, then they are congruent."

A. If angles are not vertical angles, then they are not congruent.
B. If angles are congruent, then they are vertical angles.
C. If angles are not congruent, then they are not vertical angles.
D. If angles are not congruent, then they are vertical angles.

Choice B is the converse.

Choice A is the inverse, and choice C is the contrapositive.

Note that, the original statement being true, the only one which is equivalent to it (and therefore also true) is the contrapositive.

Neither the inverse (A) nor the converse (B) happens to be true in this case, although (since they are contrapositives of each other) if one were true, the other would be true as well.

JSP Update and Delete problem?

July 31, 2009 - 12:10 pm 1 Comment

Why my Update part can work but Delete button part cannot work . It gives an null pointer error.

——- 1st page here —–
out.print("<td>" + "<input name=update type=submit value=Update>" + " </td>");
out.print("<td>" + "<input name=delete type=submit value=Delete>" + " </td>

——- 2nd page here —–

String updButton = request.getParameter("update");
String delButton = request.getParameter("delete");

Statement stmt1 = con.createStatement();
Statement stmt2 = con.createStatement();

if (delButton.equals("Delete"))

{

String updStmt2 = "Delete from basket where (basketID="+strRowID+")";

stmt2.executeUpdate(updStmt2);
response.sendRedirect("ShowBasket.jsp");

}

if (updButton.equals("Update"))

{

String updStmt1 = "Update basket Set orderQty= "+strQty+" where (basketID="+strRowID+")";

stmt1.executeUpdate(updStmt1);
response.sendRedirect("ShowBasket.jsp");

}

%>
The quantity text field will be updated using update button and the delete button will delete the whole row.

Hi danrad,

It seems like both won’t work. You are saying that Update is working, Have you checked the DB after update operation, whether the value is changed or not ?

Also In the 1st page you are using Submit Buttons for
updating and what value is updated (It must be some textfield or an input type which can accept something from user)?

Can you update the question giving a clear picture of the problem that you have ? If so one can get easily what your problem is ? Now it seems like we need to guess the problem ?

ok Danrad,

Now , how the strRowID is initialized, that can be a problem ?
Also you have used two statements, why ?
A single statement is enough as user can’t press both buttons
same time.

Also Have you checked the connection is established or not with the DB?

regards
Anand

*UPDATE* Which statement sounds and flows better?

July 31, 2009 - 12:10 pm 3 Comments

Hello,

Which statement below sounds and flows better?

1) The ability to depict stories and ideas has amazed me and inspired my own creative work.

2) The ability to depict stories and ideas has amazed me and influenced my own creative work.

3) The ability to depict stories and ideas has amazed me, and inspired and influenced my own creative work. (Is there a way to have both words without the mile-long sentence?)

4) The ability to depict stories and ideas has amazed me, and inspired/influenced my own creative work. (I didn’t know if I could have the backslash in there. Although I do have it in another part of my essay. The ‘and/or’ thing.)

Thank You! I appreciate the help.

Number one flows the best, and still gets the point of number four across but with less words :)

hey what propaganda technique would the following statement be?

July 31, 2009 - 12:10 pm 1 Comment

Canada needs you! Join the Canadian army today! Be a supporter.

PLZ ADD ADDITIONAL DETAILS IN HoW TO IMPROVE THE STATEMENT.

i found a site that help you a lot of information
http://en.wikipedia.org/wiki/Propaganda

Make up your own profound statement that others would find memorable enough to quote ?

July 31, 2009 - 12:10 pm 21 Comments

Doesn’t even have to be profound, just a statement that others might find memorable enough to quote.

Please don’t quote other people, I’m curious to see what you guys have to say.
At least you can openly speak the truth about yourself apple ;] Glad you stopped by.

"..If cars were free, we’d all have a Ferrari…

If gas was free, all of our tanks would always be full…

If clothes were free, we would all have endless woredrobes…

If shoes were free, we’d all have every color chucks…

If traveling was free, we’d all be roaming the world…

If cell phones were free, everybody would have a number…

If houses were free, we’d all live in a mansion…

——————————————

LOVE IS FREE; so why doesn’t everybody love each other!?"

What is the correct negation of the following statement?

July 31, 2009 - 12:10 pm 2 Comments

The statement is: If x is a real number then x^2 is positive or zero.

What is the correct negation of that statement?

The negation would be something that makes the statement false.
In this case it would be:
x is a real number and x^2 is negative and not zero

What is your personal mission statement?

July 31, 2009 - 12:10 pm 6 Comments

MY MISSION STATEMENT:

As a man, I want to accomplish something everyday, nurture those I love and make a difference in other people’s lives.

This is such a great question… I have been looking at it for days, and noticed how not many people have answered. I suppose this is because it is hard to define your own mission statement. It is defining a part of yourself, and for people who do not know who they are… this is hard.
So, here is my attempt …..

I only discovered my own mission in this life in the last year, and even more specifically in the last few months. I use to be a negative person, I felt trapped and alone in this world, with nothing to look forward to. I will skip all my specific details…. but I cleared out all that negativity, and found my happiness on the inside that was shining bright and that has been there all along. I never found it before because it was hidden, and I was looking for it in the wrong places in my life. So, now that I am happy, I have a new outlook. I wake up each day with a wonderful attitude, I pray a lot more, and seek so much self knowledge to understand who I am. I want to grow in my depth, as I know this will effect every relationship in my life.

I understand that my mission is to help people in their own journey. This mission may or may not become a career, I may not even get paid $1. for doing all the work I am to help people, but that is not what a "mission" and "purpose" is all about. I have been told I am an "old soul", with wisdom beyond my years. I now know that I am suppose to encourage others to seek beauty and understanding in their lives. I am suppose to teach others how they can find their own happiness within, and how it is one of the best investments they can profit from. I also want people to seek and find who they are as a person on the inside. So many people define themselves by their jobs, careers, what size house they live in, or what car they drive. All of these things are outside of the "self" the "soul" and have no meaning into who you are. I want to teach people how to have self love, and to cherish every minute of what this life has to offer.

I am not writing more than ever before, and getting great, encouraging responses. This means the world to me that others read my writing, and are effected in some way. It makes me realize that I am doing it for a reason, and perhaps helping someone on this journey.

I am sorry I could not, and cannot give you my mission statement in just a few sentences, or a paragraph… it is so important to me, and I hope all that I wrote makes sense to you!

Thanks for reading!

Which of the following statements about the production possibilities frontier is true?

July 31, 2009 - 12:10 pm 1 Comment

Which of the following statements about the production possibilities frontier is true?

I. If the PPF is bowed outward (from the origin), producing more of one product results in greater and greater opportunity costs in the output of the second product.

II. If the economy is operating at full and efficient employment, the output combinations will be on the PPF.

III. Unattainable combinations of goods are shown by points inside the PPF.

IV. Economic growth may be illustrated by shifting the PPF outward, away from the origin.

Only statement II is true.

Only statement III is true.

All statements are true.

Only I and III are true.

Only II, III, and IV are true.

Statements I, II, and IV are true.

Only statement IV is true.

Statement I is true.
Statement II is true*.
Statement III is false.
Statement IV is true.

So your answer is "Statements I, II, and IV are true."

*: I would argue that this one is false. Modern PPF curves are drawn factoring in the natural rate of unemployment, not full employment. Also, utilization of other, non-labor resources must be optimized for production to be on the PPF. HOWEVER, Statements I and IV are most definitely true, and statement III is definitely false, so the response "Statements I, II, and IV are true" is, by process of elimination, the best answer.