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.
Synthuir
Thanks everyone for helping make me a Top Contributor in Software! I just try to help everyone involved to the best of my abilities and so far it seems to work =) Bonjour. Hola. Ciao. Europe '08.
Python Exception- Special Characters Crashing .py?
I have made a new bot in Python for IRC. The problem is that whenever a special character is posted to a room (such as [0x90]), the bot crashes. The line of code that I'm using to interpret incoming messages is:
buffer=buffer+bytes.decode(s.recv(512), 'latin-1')
Which gives me a UnicodeEncodeError. Obviously the program should crash, as latin-1 does not cover these characters.
My question, however, is how can I create an exception so that if a character /not/ supported by latin-1, the program simply doesn't try to interpret it (or otherwise doesn't crash)?
1 AnswerProgramming & Design1 decade agoHelp Remembering A Torture Method?
What is the method for torture where a person would be tied to two trees bent inwards so as to retain enormous tension, then letting go of the trees and having the force rip the body apart as the trees swung back into place?
3 AnswersHistory1 decade agoWhat are the different layers of electrons around a nucleus called?
And, more specifically, what are the diagrams called that show how many electrons are in each layer?
Thank you.
2 AnswersChemistry1 decade agoWaking from sleep unexpectedly?
What is the name/ purpose/ reason that you do this...?
You're falling asleep, and walking in a dream. Suddenly you misstep and you jolt awake...?
1 AnswerOther - General Health Care1 decade agoC++ Question 2? Thanks.?
I want to make a program that (among other things) waits a few seconds before it continues with it's output. I thought the code:
clock_t s,e;
time(&s);
time(&e);
while(difftime(e,s)<5)
Would be sufficient, but every time I run that part of the program, it keeps repeating the command in {cout<<"blah";} over and over again, without even waiting the desired time. Help?
Thank you.
3 AnswersProgramming & Design1 decade agoC++ question? Thanks.?
When programming a simple program, I ran into a problem:
char ent1;
cin>> ent1;
while(ent1 == 'yes');
The compiler says that based on the code, the comparison will always be false, as if char ent1; was being declared as an integer.
All I want the program to do is recieve an input of about 5 letters and base it's output on your input:
eg.
Output: What is the word bob?
Input: A name
Output: Correct!
or
Output: What is the word bob?
Input: A similie
Output: Incorrect!
4 AnswersProgramming & Design1 decade agoSchrödinger's Cat---?
I fully understand the concept of Schrödinger's cat and the fact that it was not designed to work in reality nor was it trying to prove the Copenhagen interpretation. I have just one question:
Would the quantum paradox be akin to the physical question "If a tree falls in a forest and nobody is around to hear it fall, will it have fallen at all?", except with minute diferences?
What I can determine is that without having any way of knowing what the radioactive particle is doing, it represents the tree falling (or not). The only difference I can determine is that a tree falling is not a 50-50 chance, as most live things (atleast that I know of) don't have a half-life ( =/ ) and therefore wouldn't make the latter a question of quantum physics, but rather a very easy question akin to 'Are you alive'.
Not saying that trees can be both felled and upright at the same time, as macroscopic objects are not subject (atleast in this case) quantum mechanics.
So... I guess I just explained my answer to myself, uh... thanks for reading... am I correct in my assumptions?
6 AnswersPhysics1 decade agoLego Indiana Jones Video Game Question?
I was in the treasure room of the college earlier today, and, after putting the crystal onto the podium in the center of the room, my heads-up-display said 4,000,000,000 studs. It was correct. I can go to the store and buy it, and the stud value goes down, and never above 4 billion. It's just crazy, because I was walking then at some point the game glitched me from 18,000 studs to 4 billion!
Does this ever happen? Is it something to be worried about, or should I be shouting for joy? I'm never going to use 4,000,000,000 studs in the life of the game....
1 AnswerVideo & Online Games1 decade agoDo I need an Xbox360 Wireless Networking Adapter?
I'm finally getting an xbox 360 before Rock Band 2 comes out! Just a quick question, Do I need the Wireless Networking Adapter to be able to wirelessly connect to my soon-to-be-xbox (Premium)?
From what I can gather from the reviews, you only need to buy it if you have a weak signal, however my router is extremely powerful and only one room away. I'm guessing I don't need to buy it? It seems sort of expensive anyways...
Thanks.
4 AnswersVideo & Online Games1 decade agoiPod Touch Apps?
I just got my first apps today (which are all compatible with my iPod Touch). When syncing my iPod to my library, it completely ignores the fact that I even have apps, it doesn't sync them nor have a tab for them under the iPod. I have the newest firmware for my iPod and the newest iTunes, what is wrong???
2 AnswersMusic & Music Players1 decade ago(Advanced?) C++ Question?
After I read the last response to http://answers.yahoo.com/question/index;_ylt=ApDI_... , I was wondering if I could make the same (or a similar) program in C++. I had gotten far modifying the .vbs, but it posed way too many errors, the worst being the fact that it could only handle a few letters at most, and produced foreign characters such as ♫ or ♀.
To do this, I was thinking that I'd have to assign a long int for the key (for decoding/ encoding) and wchar_t for PlainText and CipherText (Input and output, respectively) First off, does wchar_t handle, say, multiple words?
Also, if this were possible, how would I go about assigning numbers to all of the letters (A=1,B=2, etc.) so that I could work with them?
A simple 'this is not feasible/ plausible/ possible' would suffice in lieu of answers.
2 AnswersProgramming & Design1 decade agoUsing VBScript (.vbs):?
In vbs, I have made a program that outputs certain data, but it will not let me copy the output data. Is there any way that I can program into the file itself a function to make the display window have a button that will allow a user to copy the output to the clipboard?
1 AnswerProgramming & Design1 decade agoChallenge AND Cryptography Question!?
First, the question. In my free time, I've been studying things like the Oak Island Treasure and the Voynich Manuscript. How would you go about decoding the code in this question: http://answers.yahoo.com/question/index;_ylt=AoRbE... ? Thanks.
Now for the challenge: As mentioned before, I've been studying cryptography and trying to improve a complex code I'm working on. Attempt to Solve:
14 letters 0 spaces (although, logically, it contains a space)
[ C D B
[ K E D
[ E B C
[ J I C
[ K C B
[ Y M V X
[ F E A
[ F E B
[ O I W
[ D A
[ X R T Z T N U M U T A
I don't mind if you don't solve the challenge, I realize it's probably impossible at this point, but an answer to the question would be appreciated. By the way, I do know what it is, and it IS meaningful.
Clue: You need to use the numerical values of letters AND a Σ function (n+1)
3 AnswersMathematics1 decade agoWhat makes a cloud percipitate?
A thunderstorm recently passed by my house, and I was wondering, what makes a cloud all of the sudden break out raining? I was watching a newscast and the weather report made it look like after all of the clouds had passed onto land, they all began raining simultaniously. Is it a critical density? Does this happen once over land? Is it something completely different?
Thanks.
5 AnswersWeather1 decade agoCommunism and Brainwashing?
Communism! Did I scare you? Make you intrigued? I suppose I have, no haven't I? Why is this, are you a polysci major who grew up in a commune? Most likely not. Were you brainwashed to think so? It's possible.
People think that propaganda only existed in Nazi Germany and CCCP, but that is not true. Especially in times of war (both world wars, and even today) propaganda has and is spread in the US. Army commercials are propaganda, for example. This is not a matter of opinion, but rather definition, fact.
Growing up in the Cold War has potentially damaged some of our better thought. Stalinism (Completely seperate from communism and socialism) was portrayed as evil and what all communes are, when in fact, this wasn't always true.
Socialism is dead now, because of pre-existing opinion. For those of you who watch the Colbert Report on Comedy Central, you will remember an interview with a socialist senator who got an amazing, awe inspiring round of applause from the audience after each
6 AnswersPolitics1 decade agoOrlando International Airport Questions?
In 29 days I'm flying from Orlando International Airport to Philadelphia to Rome with a group of a bunch of other people my age (14). I've only flown one other time in my life (also from MCO), when I was waayyy to young to remember. I'm just so excited and can't wait... Anyways, I'm one of those people that gets obsessed with things, and their website isn't very informative...
Is there anything I should know about MCO specifically that would make me more satisfied with my knowledge of it before I leave/ help me navigating it? I read all of these articles about airports online, and they just seem amazingly complex and hard to circumnavigate. Also, I've obviously never gone through airport security on my own, is that very hard to accomplish?
Please no comments about me being secluded from the rest of the world, I prefer ground travel (probably because I don't know what to expect from air travel), but obviously that is currently impossible when traveling to Europe. Thanks!
3 AnswersOrlando1 decade agoGifts for Spanish Family?
I'm traveling with a Student delegation to Europe, and will be staying with a host family somewhere in Spain. They suggest bringing a small gift that outlines or describes the culture of Americans/ Floridians (we're all from Florida). I believe one of the ideas was a decorative coffee mug with 'Florida' or something of the sort written on it. Do you have any other (creative) suggestions for what I should give them?
Thanks.
2 AnswersOther - Europe1 decade ago