Archive for April, 2011

An inspiring poem . . .

Tuesday, April 26th, 2011

I heard this from a TED talk given a few years ago by the late Coach John Wooden about true success . . . and he quoted this poem written by a major league umpire named, George Moriarty. I think it is very inspiring and a reminder to us all that winning isn’t everything . . .

The Road Ahead/The Road Behind

“Sometimes I think the Fates must grin,
As we denounce them and insist.
The only reason we can’t win,
Is the Fates themselves that miss.
Yet there lives on the ancient claim:
We win or lose within ourselves.
The shining trophies on our shelves,
Can never win tomorrow’s game.

You and I know deeper down,
There’s always a chance to win the crown.
But when we fail to give our best,
We simply haven’t met the test,
Of giving all and saving none
Until the game is really won.
Of showing what is meant by grit.
Of playing through when others quit.

Of playing through, not letting up.
It’s bearing down that wins the cup.
Of dreaming there’s a goal ahead.
Of hoping when our dreams are dead.
Of praying when our hopes have fled.
Yet losing, not afraid to fall,
If bravely we have given all.

For who can ask more of a man,
Than giving all within his span.
Giving all, it seems to me,
Is not so far from victory.
And so the fates are seldom wrong,
No matter how they twist and wind.
It’s you and I who make our fates —
We open up or close the gates,
On the road ahead or the road behind.”

QR codes – no longer a fad?

Sunday, April 24th, 2011

I guess last year’s SXSW conference had made a difference – because QR codes (Quick Response) codes have grown in popularity and are now being used widely in mainstream print media. They’re in print ads, posters, flyers and now even in business cards. Google’s also been encouraging the use of QR codes. Their “Favorite Places” campaign puts QR codes in the windows of local businesses that point to their online listing page. Google’s mobile operating system Android has also helped along QR code adoption.

If you have a smartphone, chances are good that you have scanned a QR code before, and if you havent – download a QR code scanner from your application store and try it out . . . here’s the first one you can scan:

Line Break bug in Dreamweaver

Wednesday, April 13th, 2011

I’ve been using Dreamweaver for a while now since they stopped supporting Homesite. What I don’t like about it is the additional line breaks that appear in the source code after multiple commits/uploads – whether it is via SVN or Contribute.

Now if you’ve already downloaded the file and it has multiple line breaks – here’s how you remove the extra spaces:

  • While the document is open in Dreamweaver, press CTRL+F to load the Find & Replace dialog box. Do the search on the source code view.
  • Check the box “Use regular expression” and uncheck any other boxes.
  • Find: [\r\n]{2,}
  • Replace: \n
  • The hit “replace all”

That will do it! However, take note that this while this will remove any existing white space on your code. When you commit/upload/download the file again, the same thing will happen all over. We need to change the line feed type in the settings to get rid of this problem once and for all.

  • Inside Dreamweaver, click Edit on the menu.
  • Then Preferences.
  • Then Code Format.
  • Then on the “Line Break Type” select “LF (unix)”
  • Click Ok. Done!

Thanks to Jared for the article.