Friday, 14 June 2013

How to check which wordpress theme or plugin is installed

Many a times you want to check which theme is installed on a wordpress site then you can surely use this tool to which theme is installed on that http://whatwpthemeisthat.com/
http://whatwpthemeisthat.com/
It also show installed plugins as well

Tuesday, 4 June 2013

How to get date in javascript in required format


function tgDate(date) {
    var d = new Date(date || Date.now()),
        month = '' + (d.getMonth() + 1),
        day = '' + d.getDate(),
        year = d.getFullYear();

    if (month.length < 2) month = '0' + month;
    if (day.length < 2) day = '0' + day;

    return [day, month, year].join('-');
}

alert(tgDate());



Friday, 17 May 2013

Where is cookie located in windows

In Windows XP


In Window 7

Cookies are located at:
C:\Users\(User-Name)\AppData\Roaming\Microsoft\Windows\Cookies

Wednesday, 8 May 2013

Maximum length validation in MySQL


The following table describes the maximum length for each type of identifier.

Identifier
Maximum Length (characters)
Database
64
Table
64
Column
64
Index
64
Constraint
64
Stored Procedure or Function
64
Trigger
64
View
64
Alias
256 (see exception following table)
Compound Statement Label
16

Difference between ENUM and SET


ENUM - Accepts only one of the value from the options.
SET  - Accepts one to many values from the options.

Tuesday, 30 April 2013

How to check button pressed in ExtJs3.4 and make it pressed programmatically

To fetch the button status

var btnPressed = Ext.getCmp("#elementId").pressed;

The btnPressed contains boolean value

To make it pressed programmatically you can use toggle function

Ext.getCmp("#elementId").toggle();

This function changes the pressed state of the button

Suppose we want that if its pressed we want to un-press  it

if(btnPressed)
{
        Ext.getCmp("#elementId").toggle();
}


Ref 1
Ref 2

Monday, 11 March 2013

Read PHP Interview Question

http://www.steppingstone.in/10-common-php-interview-questions-for-php-jobs-for-freshers-in-indore/

http://vijaymodi.wordpress.com/2008/01/25/php-interview-questions-and-answers/

http://www.sandykadam.com/programming-stuff/php/php-basic-interview-questions/

http://www.careercup.com/page?pid=php-interview-questions

http://www.phpfaqs.in/php-interview-questions-answers.php?start=60

http://www.techinterviews.com/php-interview-questions-part-2