Posts

Showing posts from July, 2015

Changing MySQL Database Password for Wordpress

When we install WordPress for the first time on a blog, we create new database, new user and set a new password for it. We give the same details in wp-config.php file. Now I want to change database password but I'm worried that nothing should go wrong while doing this. So follow the steps. Which are the places which contain database password details and which places should I change to change the db password. Do as following: 1. First change db password using  cPanel -> Databases -> MySQL Databases.  Here it allows you to change current user password. 2. After changing password, set the same in wp-config.php file. And Its DONE.

Most frequently Asked and Important Interview Questions

Image
1. What is an Object ? Objects have states and behaviors. Example: A dog has states - color, name, breed as well as behaviors -wagging, barking, eating. An object is an instance of a class. 2. What is a Class ? A class can be defined as a template/ blue print that describes the behaviors/states that object of its type support. 3. What is a Methods ? A method is basically a behavior. A class can contain many methods. It is in methods where the logics are written, data is manipulated and all the actions are executed. 4. What is an Instance Variables ? Each object has its unique set of instance variables. An object's state is created by the values assigned to these instance variables. 5. Is Java Case Sensitive ? Yes,  Java is case sensitive, which means identifier  Hello  and  hello  would have different meaning in Java. 6. What is syntax for Class Name, Method Name and File Name ? Class Names -  For all class names the first letter should be in Upp

How to write your first program in C/C++ using Command Prompt in Windows

Image
Step 1: Install MinGW GCC Compiler for Windows Click Here to Download Step 2: Open CMD (Command Prompt) start notepad myfile.c <press enter> Step 2: gcc  myfile.c –o myfile  Step 3: myfile.exe Example: WAP for Factorial Calculation #include<stdio.h> int main() { int num,fact=1; scanf("%d",&num); for(int c=1; c<=num; c++) { fact = fact * c; } printf("%d",fact); return (0); } Output: Go to the dir where you have saved the file.    Hope it works for You. For any doubts please comment.

Install C/C++ through Eclipse IDE

Image
https://www.youtube.com/watch?v=KfKvDIrabUw *The owner of this video is having all the rights.