Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Grizzley G
Which proton in ethyl acetate is more acidic and why?
Ethyl acetate: CH3-COO-CH2CH3
I think the CH3 at the very left is more acidic because the CH3 at the very right is donating electrons to the CH2, thereby allowing CH2 to retain its electrons. However, at the same time, the CH2 is attached directly to an oxygen and there's another oyxgen atop the carbon, so maybe inductive effects play a role here, too, making CH2 more acidic?
But then the CH3 at the very right is donating its electrons, at the same time also has its electrons being induced by the two Os, so even though it is farther from the two Os, that one's more acidic?
Yeah, you just heard my brain fart.
Thanks for any advice!
1 AnswerChemistry7 years agoSetting up an algebra problem (two variables)?
Someone bought 3 times as many pencils as pens. If each pen cost 1 and each pencil cost 0.50, and the total is 7.50, how many total pens and pencils did the person buy?
I don't need the answer, just wanna know how to set it up.
If x is the # of pens and if y is the # of pencils, then x + 0.5y = 7.50 (or 2x+y=15), so what would the other equation be?
4 AnswersMathematics8 years agoThree questions (preposition usage/parts of speech/gerund, infinitive)?
1) "He was effective in appearing nonchalant," or "he was good at appearing nonchalant"?
2) Is "appearing" in the above sentence a gerund as a noun? If so, is nonchalant an adjective?
3) Are gerunds (not the present participle form but an actual gerund) and infinitives always treated as nouns?
Thanks for any help!
3 AnswersWords & Wordplay8 years agoI am generally good at math, but atm, I'm stumped?
OK, if I took a track and stretched it (the vocals) by 102% (so the vocals are longer now, they take up more time to finish the song), and if the original bpm of the beats was 120, what would the new bpm be? After having stretched the vocals I mean. Is it 120 - (102% of 120)?
6 AnswersMathematics9 years agoIn a reaction involving methanol and sodium hydride?
In a reaction involving methanol and sodium hydride, why does the reaction show that the H from methanol acts as a leaving group (if it can be called that) instead of OH? I mean I would assume that the products would be CH4 + NaOH, but the actual products are CH3ONa + H2. Does it have anything to do with the leveling effect? That the H- anion is stronger than the OH- anion? Is that why H- forms and not OH- as ions in the solution?
1 AnswerChemistry1 decade ago(PHP) If you salt a password, how would you compare entered password to salted password for a login?
If a user enters a password and username to log in to a site, let's say I have the user's password stored as a salted password - and the salt is a unique one for every user, so I don't have a patterned-out salted-password either - how would I compare the password that the user input in the login form to the one in the database which is a hash of not the original password but that of a uniquely salted one?
5 AnswersProgramming & Design1 decade agoPHP - self-exercise (trying to create a math table)?
I was watchin some youtube tutorials and some of them intrigued me, which make me want to go back to the basics.
In doing so, I thought about creating a math table from 1 to 10. Below is the code, however, the results are a little bit off than desired. Where am I off exactly?
Anything that I could change to that?
<?php
$num1=1;
$num2=1;
while($num1<=10) {
while($num2<=10) {
echo $num1*$num2 . "<br>";
$num2++;
}
if($num2>10){$num2=1;}
$num1++;
echo "<br>" . $num1*$num2;
}
?>
1 AnswerProgramming & Design1 decade agoWish to post to twitter from my PHP page: an links for tutorials?
It's a mess out there on google.
Can you please, if you have anything in mind, give me a link to a tutorial which allows me to post an update to twitter from my website?
I looked into OAuth, and I am not sure I want a full fledged app to do this. I am going to be the only one handling this, and I want to simply post updates on my twitter account (changing the xml file or something).
Please guide me! :(
3 AnswersProgramming & Design1 decade ago(PHP) Is it possible to manually define /prioritize varchars for a sort order in MySQL? Eg: b>a, c>f?
For an 'events' table, I basically have a list of values going on in my database, going from Jan to December. I want to fetch MySQL results, but in a way that the first priority is for the status (pending > completed), second priority for the year; so between 2011 and 2012, all results for 2011 would show up first, and then if there are two or more than two entries for 2011, they would get sorted by the month first (January > February > March > April etc.).
The problem here is that all the fields have been set as Varchar, that is "January" and "February", and "Pending" and"Completed", and "2011" and "2012" are varchars. Indeed, Pending/Completed goes in the "status" column and the months go in the "event month" column, and the years in the year column in the table in the database.
Any ideas on how to proceed on this one?
Or if I should re-do it in some completely different way?
2 AnswersProgramming & Design1 decade agoDo such applications develop that I can post twitter/facebook updates through my site?
What I mean to say is can I post updates directly to twitter/facebook from a user-interface form on my site? That way I don't need to go to twitter every time. If so, something using php would be greatly helpful!
2 AnswersProgramming & Design1 decade agoPHP code (algorithm?) for assigning a user who has signed up a random member ID?
I wish to have the first three characters of a user's first name concatenate to a random 6 digit numeral creating something like hyu123654 which I could store into the database for that user as the user's memberID.
But how the heck would the code work?
I thought I'd extract the first three letters from the first name and then use a rand() to create a 6 digit numeral, but the problem is I know neither how to extract the first three letters from a given string or to concatenate it to the random digit number that I created. Please help. :( The memberID need not be the way I have presented it but rand() can repeat a randomized number, and I do not want repetitions (hence, the three-letter prefix). If there's a simpler way to deal with unique memberIDs, that'd work, too.
3 AnswersProgramming & Design1 decade agoPHP: defining a variable for another variable to be true?
How do I define a variable in terms of another variable being true not using isset?
For instance, when echo $check. $check would echo yes if $var = 1 but $check would echo no if $var = 2. How would I go about that?
What I'm really trying to do is this:
<?php
session_start();
if(isset($_SESSION['views']))
{$_SESSION['views'] = $_SESSION['views']+1;}
else {$_SESSION['views'] = 1;}
echo "views = ". $_SESSION['views'];
$checksessionno = $_SESSION['views']=10;
if($_SESSION['views'] = 10) {
session_destroy();}
if (session_destroy()) {echo "Session destroyed!";}
?>
Meaning, how do I destroy the session when the counter hits session = 10?
When I run this code and refresh the page multiple times, some of the times it simply echoes me views = 1 and some other times shows me views = 11. I cannot get it to increase, but everytime I navigate to this page after closing the browser and reopening it, I get the "Session destroyed!" message when I load the page for the first time right next to the "views = 1" echo. So does it mean that the session ended even before it hit the 10 refresh limits?
2 AnswersProgramming & Design1 decade agoDo I need a username on facebook (by providing my cell number?)?
Months ago, I created a test facebook account to see if I really would want to connect to my old friends (and them only, no one else). I, however, in order to get a username supplied them with my phone number for receiving an SMS. Now, I want to create an account with real credentials, but facebook doesn't allow me to use the phone again since it's already registered to the other one.
So I guess, really, two of my questions are:
1) Is there any way I can de-register that number with that account and then use the same phone number for activating a user name on this new account?
2) Do I even need a username? I mean I want only those people who are family to be able to see me, and the only way they can do so is by having me added to their account. So would I need a username in order for them to visit my profile page? If not, I have no issues with facebook keeping my number associated with the test account.
1 AnswerFacebook1 decade agoIs there a way to make pages accessible only if the landing page is arrived through a link?
For instance, I wish to make a page on which some moderators can access a page which goes off in different directions. If that page is the control panel, then all moderators have userIDs and passes to acces the control panel page through which they can click links that actually lead to pages from which they can add or update information to databases.
So lets say that from page1.php, there are 5 links, events.php, management.php, members.php etc.
Is there a way I can make events.php, manag.php, and members.php accessible only if they were arrived at through page1.php? If someone uses a direct link, say site.com/resources/events.php - I do not want that page to be seen. I want the page to be seen only if someone clicks the "events.php" link on the page1.php page.
I hope that makes some sense.
1 AnswerProgramming & Design1 decade agoPHP: fetching mysql data for a particular layout?
I have a database which has a table having the columns: id, name, title, location, and date.
Now I wish to fetch the data from the tables and report the latest 6 entries containing all the fields except for the 'id'. I can do that, however, the problem is here: How do I get those entries to display in a layout such as this one? http://i53.tinypic.com/2elz6o4.png
Again, the problem is with getting them in that particular layout, because I don't think a do/while loop would help.
Thanks.
1 AnswerProgramming & Design1 decade agoPHP date and time to mysql (record when submitted, not when page loaded)?
Let's suppose I have $date = date("m-d");, and my form has a date input field in which I am making it readonly="yes" with the value "echo $date";.
Now when the user hits "submit" I want that date (or time) to be entered when the submit button was hit and not when the page was loaded. For instance, if a person sits and loads a page and starts entering the information at 11:59 PM on the 31st of January, and completes and hits submit on the 1st of Feb at 12:05 PM, I want the mysql database to record 1st of feb instead of 31st of jan.
Is there any possibly way to do it?
The form action is PHP_SELF, if that has any importance.
Thanks!
5 AnswersProgramming & Design1 decade agoWhat is a batched zip file?
I am trying to upload photos to my website and my webmaster has left a javascript tooltip that I can upload either single images or upload batched zipped file.
I have thousands of images, and I think uploading them one by one is a waste of time. Can the batched zip file option help me?
If so, what is a batched zip file? I understand zip files, just not the batched ones.
2 AnswersProgramming & Design1 decade agoWhy does the following code refuse to work (displaying results from a mysql database using PHP)?
Nothing is "echoing" with the following code; please help. :(
<?php
$Name = (isset($_POST["Name"])) ?$_POST["Name"]:"";
$HasSite = (isset($_POST["HasSite"])) ?$_POST["HasSite"]:"";
include('connection.php');
$sql = "SELECT * FROM table";
$result = mysql_query($sql);
$mypost = mysql_fetch_array($result);
if ($mypost) {
$name = $mypost["name"];
$hassit = $mypost["hassit"];
}
?>
<html><head><title>Page</title><link rel="somecss" href="somelink"></head>
<body>
<div id="left">
<form method ="post" action="<?php echo $_SERVER["PHP_SELF"] ?>" >
<ol>Sort by:
<li><input type="submit" value="Name" /></li>
<li><input type="submit" value="HasSite" /></li>
</ol>
</div>
<div id="right">
<?php if ($mypost) {
if ($Name) {
do {echo $name .":". $hassit;
} while ($myposts = mysql_fetch_array($result));
} else if ($HasSite) {
do {echo $hassit .":". $name;
} while ($myposts = mysql_fetch_array($result));
} else {
echo mysql_error();
}
}
?>
</div>
</body>
</html>
5 AnswersProgramming & Design1 decade agoAny scripts for auto-hyphenating a phone number (client side)?
Is there a way through javascript by which I can automatically add hyphens after the area code (3 digits), and after the first 3 digits of the phone number. Eg: 678-678-6786.
Or for dates - hyphen after the year (2010), and after the month (before the day). Eg: 2010-12-21.
Thank you!
2 AnswersProgramming & Design1 decade agoMS Access 2007 join tables problem?
I have three tables in a database.
Let's suppose table one contains general information about the person, table 2 contains the different hobbies of the person, and table 3 contains the different jobs the person has had in his life.
What I am trying to do is join these three, by the way of the name.
As such, I have included the field header "name1" in all three tables, and I have joined "name1" from table 1 to table 2, and 3 (one to many relationship, I guess).
So, whenever I make a new record in the first table, say for John Smith, shouldn't tables two and tables 3 have the corresponding field "name1" populated? If I create one more record, Shiana D'Mellow, shouldn't tables 2 and 3 in the "name1" field show me all these names?
Perhaps I am not getting the concept of relationships, but any help with this will really help.
Thanks so much!
2 AnswersProgramming & Design1 decade ago