GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Well I logged into my email server via telnet on port 587, but when I tried to send a test email to my gmail, it tried to send it via port 25. If I use a different port, won't sending email to places like Gmail, yahoo mail, AOL mail (lol), etc... fail? And what about inbound email, it won't work, either, then?
Last edited by lupusarcanus; 10-25-2011 at 11:05 AM.
This thread is lacking brain teasers, I'll fix that!
Quote:
Hats On A Death Row
You are one of 20 prisoners on death row with the execution date set for tomorrow. Your king is a ruthless man who likes to toy with his people's miseries. He comes to your cell today and tells you: “I’m gonna give you prisoners a chance to go free tomorrow. You will all stand in a row (queue) before the executioner and we will put a hat on your head, either a red or a black one. Of course you will not be able to see the color of your own hat; you will only be able to see the prisoners in front of you with their hats on; you will not be allowed to look back or communicate together in any way (talking, touching.....).
The prisoner in the back will be able to see the 19 prisoners in front of him. The one in front of him will be able to see 18…
Starting with the last person in the row, the one who can see everybody in front of him, he will be asked a simple question: WHAT IS THE COLOR OF YOUR HAT?
He will be only allowed to answer “BLACK” or “RED”. If he says anything else you will ALL be executed immediately.
If he guesses the right color of the hat on his head he is set free, otherwise he is put to death. And we move on to the one in front of him and ask him the same question and so on…
Well, good luck tomorrow, HA HA HA HA HA HA!”
Now since you all can communicate freely during the night, can you find a way to guarantee the freedom of some prisoners tomorrow? How many?
This is my guess. I could be wrong because there is no mention in the number of red and black hats.
Assuming there are ten red hats and ten black hats. The 19th prisoner waits for the answer of the 20th prisoner. If the 20th prisoner says red and is correct and the 19th prisoner sees 9 reds in front of him, that counts 9 reds plus the correct answer from the 20th prisoner which equal 10 red hats. That means the 19th prisoner is wearing black.
This is my guess. I could be wrong because there is no mention in the number of red and black hats.
Assuming there are ten red hats and ten black hats. The 19th prisoner waits for the answer of the 20th prisoner. If the 20th prisoner says red and is correct and the 19th prisoner sees 9 reds in front of him, that counts 9 reds plus the correct answer from the 20th prisoner which equal 10 red hats. That means the 19th prisoner is wearing black.
I was going to post an answer similar to that. It's really just logic and common sense really....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.