Twitter API and device time issues

August 9th, 2010 Jigish Thakar No comments

Few days back we wrote about twitter API and server time (click here). Again same thing made me confused. By mistake i had set my itouch’s time few hours back then a real time. And i was not able to login into any of my twitter app. All the time it prompts, “incorrect username and password”. So check ur device time if u ever face same issue.

So after finding this issue i tried same thing on my samsung corby pro.. It also has a native twitter app.. And result shocked me.. Even though i had set my mobiles time few to days back.. Still it was working fine.. So there must be something wrong with the approach, soon i ll dig into same and update you guys.

Javascript: Function with optional argument

August 8th, 2010 Jigish Thakar No comments

Well optional argument is essential feature when it comes to re usability of your code. But its not given in js as simple as its given in PHP & other languages. But with some simple trick you can also achieve the same.

For e.g.

function calCulate(val1, val2, operator){
if(!operator){
operator = 'plus';
}

switch(operator){
case 'plus':
return val1 + val2;
break;

case 'minus':
return val1 - val2;
break;
}

}

alert(calCulate(1,2));

alert(calCulate(2,1,'minus'));

this is it and now you have optional argument in your Javascript code

Paypal Stops Electronic Withdrawal in India

July 28th, 2010 dhaval thakar 1 comment

Following is the mail I received this morning from Paypal. Mentioning that electronic withdrawal service is been discontinued for Indians for non specified time period.

In accordance with regulatory instructions, we would like to notify you about a change in our withdrawal functionality in India starting on August 1, 2010. At present you can request for either an electronic or cheque withdrawal of funds from your PayPal account if you are an India user.

From July 29, 2010 onwards, you will only be able to request for a cheque withdrawal of funds from your PayPal account.

While we are working hard to restore the electronic withdrawal service, in the meantime, we are bringing this matter to your attention so that you can plan your future withdrawal activities accordingly.

To request for a cheque withdrawal:

  1. Log into your PayPal account, click on ‘Withdraw’.
  2. Click on the ‘Request a cheque from PayPal’ link.
  3. Enter the withdrawal amount and select your mailing address, then click ‘Continue’.
  4. Click ‘Submit’ to confirm your request.

In order to help you with this change and until further notice, we will refund the $5 USD cheque withdrawal fee to you for cheque withdrawals made on July 29, 2010 onwards.

For any questions, please log into your PayPal account and click ‘Contact Us’ at the bottom of the page.

We apologise for any inconvenience caused from this change in our withdrawal functionality. We will provide ongoing updates to you here. We thank you for your attention and patience as we work tirelessly to resolve this situation as quickly as possible.

Source

Categories: news Tags:

CakePHP: JsController not found

July 21st, 2010 Jigish Thakar No comments

cake php logo CakePHP: JsController not found

Many of us face this strange issue while working on cakephp framework… Me to faced it many times so thought of sharing the solution with you all, even I have got this solution from some other blog few months back.  

So what exactly happens
When we include JS using 
$javaScript->link(‘js_file.js’);

And we get error as 

JsController not found 

Basically when you link your javascript and if your cakephp engine aint find specified file in folder 

/webroot/js/

it throws this error. So always check the existence of file in folder first for this error.

iphone 4G first look (Prototype) – fake :)

May 12th, 2010 Jigish Thakar No comments

i am sure this is fake, but really nice video