Archive

Archive for July, 2010

When the Folks Give You the Business – WSJ.com

July 30th, 2010
Comments Off

But when sales fell short of his goals, he relented and asked his dad for advice. “I told him, ‘I’m going to follow what you say verbatim. Tell me what to do.’ From that point on, I started to have a lot of success,” Drew says. Drew has hired two employees, his income has risen and the business is growing.

Some parents look farther ahead, hoping their child’s business will support them in retirement. After supporting his own father in old age with proceeds from his Canton, Ohio, restaurant, Walther’s Cafe, Mr. Walther says he hopes his daughter will do the same for him.

Full WSJ Article

WSJ

Zend Framework – Message: Could not retrieve a valid Token response from Token URL: Failed to validate oauth signature and token

July 6th, 2010
Comments Off

Error Description:

While trying to connect to Twitter via Zend_Oauth_Consumer, received exception described below.
Zend Framework Version: 1.10.3

Exception information:

Message: Could not retrieve a valid Token response from Token URL: Failed to validate oauth signature and token

Stack trace:

#0 /usr/share/php/libzend-framework-php/Zend/Oauth/Http.php(190): Zend_Oauth_Http->_assessRequestAttempt(Object(Zend_Http_Response))
#1 /usr/share/php/libzend-framework-php/Zend/Oauth/Http.php(191): Zend_Oauth_Http->startRequestCycle(Array)
#2 /usr/share/php/libzend-framework-php/Zend/Oauth/Http.php(191): Zend_Oauth_Http->startRequestCycle(Array)
#3 /usr/share/php/libzend-framework-php/Zend/Oauth/Http/RequestToken.php(51): Zend_Oauth_Http->startRequestCycle(Array)
#4 /usr/share/php/libzend-framework-php/Zend/Oauth/Consumer.php(115): Zend_Oauth_Http_RequestToken->execute()
#5 /var/www/TweepleView/application/controllers/TwitterController.php(51): Zend_Oauth_Consumer->getRequestToken()
#6 /usr/share/php/libzend-framework-php/Zend/Controller/Action.php(513): TwitterController->indexAction()
#7 /usr/share/php/libzend-framework-php/Zend/Controller/Dispatcher/Standard.php(289): Zend_Controller_Action->dispatch('indexAction')
#8 /usr/share/php/libzend-framework-php/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#9 /usr/share/php/libzend-framework-php/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#10 /usr/share/php/libzend-framework-php/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#11 /var/www/TweepleView/public/index.php(25): Zend_Application->run()
#12 {main}  

Solution:

I’m developing off a Ubuntu Virtual Box, and somehow the time was off, hence causing an error connection to Twitter via Oauth.

To verify your Ubuntu clock via cli: date
To configure you Ubuntu clock via cli: ntpdate ntp.ubuntu.com

Sources:

Zend Framework