Archive

Author Archive

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

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

Twitter API and Server Time

May 9th, 2010 Jigish Thakar No comments

twitter 300x110 Twitter API and Server Time

have you ever faced problem like..

Twitter api gives you blank auth_token????

from past few months me and very big team in my office working on project related to twitter. and we developed all the project on office server and last friday we were moving those codes to client’s beta server and suddenly things related to twitter stoped working, we had no clue what went wrong. and then i find this link which saved over lots of time (click here) actuley the problem was server time, server time was behind real time. so we changed that and twitter api started working fine. so if you ever face any weired issues with twitter API, so try this solution.

UPDATE:Twitter API and device time issues