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;