Posts

what is return key in keyboard?

Almost all computer keyboards have a key marked Return or Enter ; the two names are synonymous enter or return. So the return button is the enter button or the one with  <-------I symbol on it. Hope this will help you.

Learn the Linux command line - Chapter 1

Linux Command line tutorial - Chapter 1 ls - To listing the directory ls -a  - To listing the directory and dispaly the file which are normally Hidden ls directoryname - To dispaly the file inside a folder mkdir ­ - To create the directory example: mkdir sagar cd directory ­-   To enter inside the directory or change to named directory like: cd sagar cd - Change the home directory cd ~ - Direct come to home direcoty   cd .. - To go back into the last directory pwd - To display the full path from start to current directory Like: /home/ununtu/sagar/linux cp file1 file2 -  is the command which makes a copy of file1 in the current working directory and calls it file2. mv file1 file2 moves (or renames) file1 to file2  exmple: mv file.txt ../ to move the file in last folder rm filename.txt - To remove the file rmdir directoryname - To remove the directory clear - Clear command to use for remove clear the terminal screen

What is the difference between Mysql and MongoDB?

Image
Many fresher want to ask that what is the diffrence between Mysql and MongoDB? SO here is easy example to describe them: Mysql -> Database -> table->row As you know that Msql have many database and database have many tables and tables have  Rows and Coloumn. MongoDB->database->collection->array Or Json MongoDb has database and database have many collection and collection have array Or Json     RDBMS MongoDB Database Database Table Collection Tuple/Row Document column Field Table Join Embedded Documents Primary Key Primary Key (Default key _id provided by mongodb itself)           Database Server and Client Mysqld/Oracle mongod mysql/sqlplus mongo

How to Load external library in Laravel-4?

How to Load external library in Laravel-4? I was really confused that how to load library in laravel 4 and after search a lot on sites i got a nice and easy way to use external class inside a library. Here are some steps that how to do it easily:- 1) First create a folder inside app it should be like this  app/libraries/your app folder/twitter.php   twitter.php must contain a class and function.  2) Open composer.json from your root folder "autoload": {         "classmap": [             "app/commands",             "app/controllers",             "app/models",             "app/database/migrations",             "app/database/seeds",             "app/tests/TestCase.php",             "app/libraries"                    ]     },  add this line "app/libraries"   as shown above 3)  Now open your CMD as administrator Run command like: composer dump-autoload example: C:/wamp/w

The program can't start because MSVCP100.dll is missing from your computer. The program can't start because MSVCP100.dll is missing from your computer. Try reinstalling the program to fix this problem.

The program can't start because MSVCP100.dll is missing from your computer. The program can't start because MSVCP100.dll is missing from your computer. Try reinstalling the program to fix this problem. I was getting this error while installing software or wamp server. So i got a solution for this please read it... You need to click on this link http://www.microsoft.com/en-in/download/details.aspx?id=5555 download the file of Microsoft Visual C++ 2010 Redistributable Package (x86) install this software and restart your computer and reinstall your wamp server again. It will works fine this time :)

Fatal error: Cannot redeclare class OAuthSignatureMethod_HMAC_SHA1 in twitteroauth/OAuth.php on line 120 in laravel

Fatal error: Cannot redeclare class OAuthSignatureMethod_HMAC_SHA1 in twitteroauth/OAuth.php on line 120   Or   Cannot use Abraham Williams Twitter library in Laravel 4 Follow the steps:   Open OAuth.php Remove this condition if (!class_exists('OAuthException')) { class OAuthException extends Exception { // pass } }  

Swap two variables value without using third variable in php?

We can swamp two variable with the use of php function  <?php $a='sagar'; $b='deepak'; list($a,$b) = array($b,$a); echo $a.'-'.$b; ?> deepak-sagar We can swap two variable with the use of XOR method too <?php $a='11111'; $b='22222'; $a = $a ^ $b; $b = $a ^ $b; $a = $a ^ $b; echo $a; echo $b; ?>   We can swap two variable with the use of our logic too <?php $a='11111'; $b='22222'; $a = $a + $b; $b = $a - $b; $a = $a - $b; ?> anther one is here   $a = $a * $b; $b = $a / $b; $a = $a / $b;

How to reverse a string without using php function in php?

How to reverse a string without using function in php <?php error_reporting(NULL); $string = 'This is a reversed string'; $len = 0; do{ $len++; } //$len is the length of string while($string[$len]!=''); for($i=$len-1;$i>=0;$i--){ echo $string[$i]; } ?> gnirts desrever a si sihT

Mysql interview question and answer?

1. Define SQL? Answer : SQL stands for Structured Query Language. SQL is a programming Language designed specially for managing data in Relational Database Management System (RDBMS). 2. What is RDBMS? Explain its features? Answer : A Relational Database Management System (RDBMS) is the most widely used database Management System based on the Relational Database model. Features of RDBMS Stores data in tables. Tables have rows and column. Creation and Retrieval of Table is allowed through SQL. 3. What is Data Mining? Answer : Data Mining is a subcategory of Computer Science which aims at extraction of information from set of data and transform it into Human Readable structure, to be used later. 4. What is an ERD? Answer : ERD stands for Entity Relationship Diagram. Entity Relationship Diagram is the graphical representation of tables, with the relationship between them. 5. What is the difference between Primary Key and Unique Key? Answer : Both

What is difference between Array combine() and Array merge()?

Array_combine(): To Combines the elements of two arrays and Returns the New Array.The new Array keys are the values of First Array values and the new array values are Second array values. Array_combine()Example: <?php $arr=array(1,2,50); $arr1=array(452,672,542); print_r(array_combine($arr,$arr1)); ?> Output: Array ( [1] => 452 [2] => 672 [50] => 542 ) Array_merge(): merges two or more Arrays as New Array. Array_merge() Example: <?php $arr=array(101,301,501); $arr1=array(451,671,541); print_r(array_merge($arr,$arr1)); ?> output: Array ( [0] => 101 [1] => 301 [2] => 501 [3] => 451 [4] => 671 [5] => 541 )