Showing posts with label to. Show all posts
Showing posts with label to. Show all posts

How to Launch .msi Files using Autorun from CD

In this post, we will see how to autorun a .msi file from a CD. If you are new to Autorun, please read this post: What is AutoRun and AutoPlay ? How to Set it ?
If you want to know more about autorun commands, please read this post: How to Make a AutoRun CD or DVD Using Autorun.inf

The open command supports only executable files. So, if you want to launch an msi (miscrosoft installer) file from CD automatically when it is inserted to CD drive, use the following code in the Autorun.inf file.

How to Hard Reset Samsung Galaxy Note 2 (N7100)

Samsung Galaxy Note II N7100  note 2 hard reset touch android tab how to hard reset complete full total restore default factory settings root android Samsung smart touch phone video tutorial
Samsung Galaxy Note II N7100
This post is to show you how to hard reset Samsung Galaxy Note II. Samsung Galaxy Note 2 a.k.a N7100 can be easily hard reset  using a 3 button combination. You have to press and hold 3 buttons together for a while after switching off the phone. The steps are as follows:

  • Switch off the phone first. (If your phone is problem is not turning on, you can try only this method of reseting)
  • Wait for some seconds (~30s).
  • Now press and hold the following buttons together : Home button, power button and volume up button.
  • Keep these three buttons pressed together until you see the Samsung logo.
  • You will be led to the menu.
  • You can use volume up or down buttons to highlight an option and power button to select that option.

Algorithm, C and C++ Programs to find Closure From Functional Dependencies

In this post we will see how to find closure of an attribute or a set of attributes. Before learning how to get closure, we should first know what is a closure. Closure of a given set C is the set of attributes that are functionally determined by the set C under the set of functional dependencies F. There can be closure for any set. Every attribute in the set whose closure is to be found out, will be a member of its closure set C+ also. Consider an example:

Conditional Operator in C and C++

Conditional Operator is an operator which is substitutive for if-else statements. It is a ternary operator (operator which operates on 3 operands). It is often called ?: operator. The operands are expression1, expression2 and expression3. The syntax is as follows:

expression1 ? expression2 : expression3

The expression expression1  will be evaluated always. Execution of expression2 and expression3 depends on the outcome of expression1. expression1 is checked whether true or not. It is considered like a boolean variable. The outcome of an expression is true if it has a non zero value. If its value is zero, the outcome of expression is false. If the expression1 is true, then expression2 is evaluated. If the expression1 is false, then expression3 is evaluated. Consider the following example:

How to Hard Reset Nokia E63

This post will teach you how to hard reset Nokia E63, symbian smartphone. The same method can be
How to hard reset Nokia E63 Symbian s60 mobile phone fullfactory reset total format restore default factory settings
applied to hard reset similar E series phones, some other symbian phones and even some of the new Java phones from Nokia. Hard resetting is complete cleansing of phone memory and the firmware will repaired/reinstalled.

So when you hard reset your phone, it will result in loss of data including your contacts in phone memory and whatever you have stored in phone memory. To avoid loss of any important data, your can back up your data onto your memory card. There is an option provided in the phone to backup all the phone memory to memory card. To know how to backup your data, watch this video: http://www.youtube.com/watch?v=yPpqwhU4ErM

To hard reset your phone, Follow these instructions:

C and C++ Program to Check Whether a Given Number is Even or Odd

C and C++ programs to check whether a given number is Odd or even

C Program

#include<stdio.h>
void main()
{
int n;
printf("Enter an integer\n");
scanf("%d",&n);
if ( n%2 == 0 )
printf("Even");
else
printf("Odd");
}

C++ Program

#include<iostream.h>
void main()
{
int n;
cout<<"Enter an integer\n";
cin>>n;
if ( n%2 == 0 )
cout<<"\nEven";
else
cout <<"\nOdd";
}


C Program to Sort a Matrix Column wise using Pointers

This is a c program to sort a mxn matrix column wise in ascending order using pointers. To sort column wise in descending order, just replace the '>' symbol in the comparing line of code into '<'. That part of the code is marked with a comment 'comparison'.

#include<stdio.h>

main()

{

int a[7][7],i,j,k,m,n,temp;

//reading
printf("enter number of rows of matrix\n");
scanf("%i",&m);
printf("enter number of columns of matrix\n");
scanf("%i",&n);
printf("enter the elements\n");
for(i=0;i<m;i++)
{
for(j=0;j<n;j++)
scanf("%d",&a[i][j]);
}
//displaying
printf("the matrix you entered:\n");
for(i=0;i<m;i++)
{
printf("\n");
for(j=0;j<n;j++)
{
printf("%4d",*(*(a+i)+j));
}
}