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


Sunday, 13 January 2013

How to delete all .svn folders using Windows Command Prompt?

I was working in a application which contained many “.svn” folder and so i wanted to delete all the folders at once so i fired this command

It will delete all the folders recursively


FOR /R . %f IN (.svn) DO RD /s /q %f

Ref

How to replace a URL to an Hyperlink in a String?

At times you come across a scenario where the string contains an http link and you need to create the hyperlink to the same.

This is can very well achieved using the single line of code.





$text = "This is http://www.phpcoaching.in site";
echo $text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "\\0", $text);

?>



Source