Saturday, November 17, 2012
Python seems fun!
Labels:
Code,
Developer,
Education,
Language,
Programming,
Project,
Python,
Software,
Technical,
Technology
Sunday, November 4, 2012
Monday, October 22, 2012
Interview Question: Reverse words in a sentence
Have you ever been asked this question in a technical interview for a software related position: "Using the language of your choice, reverse the words in a sentence."? If so, have you ever wondered how many solutions in different languages exist? Scripting, object-oriented, functional programming, commands, and the list could go on...
Thanks to Andrew for providing such a short and cool solution that might show why Linux users just love Linux and its tools! You can try this on a Linux terminal: echo "this is the sentence to reverse" | tr ' ' '\n' | tac | tr '\n' ' '; echo
Let me know what you think and feel free to share your solutions!
Thanks to Andrew for providing such a short and cool solution that might show why Linux users just love Linux and its tools! You can try this on a Linux terminal: echo "this is the sentence to reverse" | tr ' ' '\n' | tac | tr '\n' ' '; echo
Fyi, tr stands for translate character, which means that it will search for all the ' ' (spaces) and replace them with '\n' (new line); tac prints a file/string in reverse, like the opposite of cat.
Let me know what you think and feel free to share your solutions!
Tuesday, September 25, 2012
A marketing quote by David Packard, HP
“Marketing is too important to be left to the marketing department.”
— David Packard
Co-founder of Hewlett-Packard, serving as president, CEO, and Chairman of the Board.
— David Packard
Co-founder of Hewlett-Packard, serving as president, CEO, and Chairman of the Board.
Labels:
David Packard,
HP,
Marketing,
Quote
Wednesday, September 5, 2012
Does everyone we meet have to conform to a familiar image in our heads?
In Six Feet Under, episode 5 season 2, the family was talking about a lady that had nobody in her life. They stated how awful that was and concluded that she might have been autistic thus the reason for not having anyone in her life. Then Claire, a teenager in the series, said:
"I don't see why this person has to be mentally ill... just because she had a life that doesn't conform to a familiar image in our heads. Maybe she was living the life she wanted. A life without the hassle of other people."
Don't you agree with her? Don't you think that we sometimes judge the person in front of us just because he/she is different and does not conform to the image we have in our head? It just made me pause and think...
"I don't see why this person has to be mentally ill... just because she had a life that doesn't conform to a familiar image in our heads. Maybe she was living the life she wanted. A life without the hassle of other people."
Don't you agree with her? Don't you think that we sometimes judge the person in front of us just because he/she is different and does not conform to the image we have in our head? It just made me pause and think...
Subscribe to:
Posts (Atom)
