Posts

Showing posts from 2010

[SW-TECH] shebang perl not work in Unix

AREA: Scripting/Perl PROBLEM: This problem bothered me for a while so I wanna share what I found out: My perl script starts with the standard shebang: #!/usr/bin/perl But does not pass it to perl, instead it complains: "bad interpreter: No such file or directory" ROOT CAUSE: I initially edited my file on Windows using Notepad++ . DOS/Windows has a different newline format and puts extra unwanted control characters in the file. SOLUTION: If found the solution on the web in this link : The solution is to cleanup my script removing unnecessary CR/LF (Carriage Return/Line feed character) that Unix/Linux shell does not like. I created the script below based on the newsgroup I mentioned and added exec permission: dos2linux.sh #!/bin/bash echo "$0: Cleanup text files edited in DOS/Windows for Unix format by removing CR/LF" perl -pi -e 's/\r\n$/\n/' $* I cleaned up my script by running as follows: dos2linux.sh scriptname.sh After this my perl script work...

Quotes of the Day - Excellence and Success

"The will to win, the desire to succeed, the urge to reach your full potential...these are the keys that will unlock the door to personal excellence" ~ Confucius "The meaning of Communications is the Response that you get" ~ Tony Robbins “Kind hearts are the gardens, Kind thoughts are the roots, Kind words are the flowers, Kind deeds are the fruits, Take care of your garden And keep out the weeds, Fill it with sunshine Kind words and kind deeds” ~Henry Wadsworth Longfellow (the most popular American Poet in the 19th century, 1807-1882) A customer is the most important visitor on our premises. He is not dependent on us. We are dependent on him. He is not an interruption in our work - he is the purpose of it. We are not doing him a favour by serving him. He is doing us a favour by giving us the opportunity to serve him . ~ Mahatma Gandhi

Recommended Book: 10 Steps to Successful Customer Service

Image
An Introduction to the 10 Steps Each step in 10 Steps to Successful Customer Service has caring as its foundation. You will have an opportunity to review your reasons for entering a field that requires such compassion and personal commitment. Whether you are a customer service provider, a trainer, a manager, or an executive, your enthusiasm is paramount to success. The steps in this book give you an opportunity to reflect on your personal service mission and customer goals for the organization in which you serve. The book will also offer ways to work with internal and external customers, and provide the reasons behind actions that are being recommended for optimum communication. Supervisors, managers, trainers, and leaders of all types can use the exercises to build teams devoted to service, and to discuss best practices. Suggestions on how to do this are included in the exercises. Step 1 : Identify Service Motivation and Mission Most of us have to make a living. Howev...

Cool Gadgets - Early 2010

Apple iPad just launched in the U.S. last week: http://www.apple.com/pr/library/2010/03/05ipad.html It will be available in Japan in late April. Sony Ericsson Xperia X10 Now available in Japan : -I heard this is better than iPhone - more features? - Carrier is Docomo http://www.sonyinsider.com/2010/01/22/sony-ericsson-xperia-x10-arrives-in-japan-through-nttdocomo/ Commentary: Why I won't buy an iPad? http://www.boingboing.net/2010/04/02/why-i-wont-buy-an-ipad-and-think-you-shouldnt-either.html Anyways, before buying one I suggest to think it over and read as much opinion on the web/media as well as ask people who actually used them. Its not a small investment.

My Daughter's Tears (Ver 2 Part 1)

My Daughter's Tears (Ver 2 Part 1) I can never forget that moment in the parking lot of a Mall. It was one of our first few meetings after our divorce had been settled by a Tokyo family court. Before that my ex-wife had deprived my daughter from me for almost 3 months, in spite of my pleadings to let me meet the "apple of my eye". As a part of our agreement I was given the right to spend a day with my 5 year old daughter twice a month. We went to Kids' playhouse inside the local Daei Mall and had dinner at her favorite steak house. On our way home, we went to the parking lot where their car was parked. I was carrying my daughter and walking towards my ex-wife's car while her mother is starting the engine. My little girl rest her head against my shoulder face down. I felt the weight of her head on my shoulders so I thought she fell asleep. But I had to turn her over to her mother and she had to ride the car. When she lifted her head I realized that ...

Latest Music from the Princess of Youtube, Charice

Check out this promotional music video from Charice , the 17 year old youtube sensation from the Philippines featuring famous Rapper Iyaz : The above song is entitled Pyramid. Aside from the above Pop version , you also find a Disco Remixes version.

Watched the Satire film Borat again

Image
A friend lent me his copy of Bruno and Borat and I ended up watching both of them again. Then I realized that some of the scenes are unscripted for both these films. I checked out Wikipedia and I was right, at least in Borat, only a handful of them are actors - Sasha Cohe, Pamela Anderson and the guy who played Azmat. So some of these people in Borat are actually did not even know they were acting and are "victims" of a big joke. Its curious to findout how do they fell after watching the film. Luckily, I found this page which supposed to keep track of them: http://www.salon.com/ent/feature/2006/11/10/guide_to_borat/

In Times of Change - Energize !

One of the challenging results of organizational change is that it can leave you feeling fatigued. All of your efforts are focused on new tasks, responsibilities, and relationships. Because of this, you need to look for strategies to maintain and even increase your personal energy during times of change. Create a Vision . Nothing is more personally motivating than creating a compelling vision. Visualize yourself succeeding as a result of the change. Imagine the benefits of growing as a result of the change -- creating new opportunities, building a more exciting and dynamic future, and opening up new opportunities for success. List Opportunities . What are the opportunities presented by the change? Make a list of all the ways that you can grow, add new skills, meet influential people, and add valuable experience to your resumes. Create Networks . It's difficult to create energy in a vacuum. Most people need the stimulation of other individuals and their ideas,...