Pages

Nov 20, 2011

Put MyComputer/Computer in Windows 7's/Windows Vista Taskbar/Task-bar

Put MyComputer/Computer in Windows 7's/Windows Vista Taskbar/Task-bar:



It is very easy , right click on the folder icon in the taskbar and then right click on the "Windows Explorer" item and then click on the properties. Which will give you a display like below:


Put MyComputer/Computer in Windows 7's/Windows Vista Taskbar/Task-bar 1


And then to put MyComputer/Computer in Windows 7's/Windows Vista Taskbar/Task-bar
replace that target link with this below line:
"%windir%\explorer.exe shell:MyComputerFolder"


Put MyComputer/Computer in Windows 7's/Windows Vista Taskbar/Task-bar 2

So, I am assuming that you have successfully implemented it. Therefore, you can visit your my computer using that "Windows Explorer" shortcut.

Nov 9, 2011

Install VS2010 SP1

Install VS2010 SP1


If you had tried many times installing Visual Studio 2010(VS 2010) Service Pack 1(SP1) and failed then this is is the right place for you. As you may have already known that you must keep the installation of VS2010 Beta or VS2010 Ultimate to install the VS2010 SP1.

So now, I am assuming that you have already installed VS2010 Beta or VS2010 Ultimate and besides this you should download Visual Studio 2010 SP1 ISO Format (my recommendation) or the Microsoft Web Platform Installer ( if you use .iso format then you should install this as a next step for latest features) to install Visual Studio 2010 SP1. And once again you will be failed again installing Visual Studio 2010 SP1(Service Pack 1), so what's wrong again? My answer is 'nothing'; you did everything you could but unfortunately microsoft made some mistakes in their repositories and that is why your installation is not going well. So what is the solution to your problem? Actually , it is pretty easy , and to solve your problem you have to download two more components to make it work . One of them is Entity Framework 4.1 (must install to complete the VS2010 SP1 installation process) and the other one is Microsoft ADO.NET Entity Framework Feature ( second important component to complete the installation  ). 

Hopefully , it will help and work(run Microsoft Web Platform Installer to see if it is successfully done)  and if it doesn't then please leave a feedback, I will help you as soon as possible.



Download:
  1. Visual Studio 2010 SP1
  2. Visual Studio 2010 SP1 ISO Format
  3. Microsoft Web Platform Installer
  4. Entity Framework 4.1 (must install to complete the VS2010 SP1 installation process)
  5. Microsoft ADO.NET Entity Framework Feature ( second important component to complete the installation  )
-------------------------------------------------------------------------------------------------

Search Engine Friendly Links:

Search Engine Friendly Labels:

VS2010 SP1 ,

VS2010 Service Pack 1 ,

Visual Studio 2010 Ultimate SP1 ,

Visual Studio 2010 Ultimate Service Pack1 ,

Visual Studio 2010 Ultimate ServicePack1 ,

VisualStudio 2010 Ultimate ServicePack1 ,

VisualStudio 2010 SP1 ,

VisualStudio Ultimate 2010 SP1 ,

VS2010SP1 ,

VS2010 SP1 Installation ,

VS2010 Service Pack1 Installation Failed

Oct 28, 2011

How to install VS 2010 SP 1

How to install VS 2010 SP 1


If you had tried many times installing Visual Studio 2010(VS 2010) Service Pack 1(SP1) and failed then this is is the right place for you. As you may have already known that you must keep the installation of VS2010 Beta or VS2010 Ultimate to install the VS2010 SP1.

So now, I am assuming that you have already installed VS2010 Beta or VS2010 Ultimate and besides this you should download Visual Studio 2010 SP1 ISO Format (my recommendation) or the Microsoft Web Platform Installer ( if you use .iso format then you should install this as a next step for latest features) to install Visual Studio 2010 SP1. And once again you will be failed again installing Visual Studio 2010 SP1(Service Pack 1), so what's wrong again? My answer is 'nothing'; you did everything you could but unfortunately microsoft made some mistakes in their repositories and that is why your installation is not going well. So what is the solution to your problem? Actually , it is pretty easy , and to solve your problem you have to download two more components to make it work . One of them is Entity Framework 4.1 (must install to complete the VS2010 SP1 installation process) and the other one is Microsoft ADO.NET Entity Framework Feature ( second important component to complete the installation  ). 

Hopefully , it will help and work(run Microsoft Web Platform Installer to see if it is successfully done)  and if it doesn't then please leave a feedback, I will help you as soon as possible.



Download:
  1. Visual Studio 2010 SP1
  2. Visual Studio 2010 SP1 ISO Format
  3. Microsoft Web Platform Installer
  4. Entity Framework 4.1 (must install to complete the VS2010 SP1 installation process)
  5. Microsoft ADO.NET Entity Framework Feature ( second important component to complete the installation  )
-------------------------------------------------------------------------------------------------

Search Engine Friendly Links:

Search Engine Friendly Labels:

VS2010 SP1 ,

VS2010 Service Pack 1 ,

Visual Studio 2010 Ultimate SP1 ,

Visual Studio 2010 Ultimate Service Pack1 ,

Visual Studio 2010 Ultimate ServicePack1 ,

VisualStudio 2010 Ultimate ServicePack1 ,

VisualStudio 2010 SP1 ,

VisualStudio Ultimate 2010 SP1 ,

VS2010SP1 ,

VS2010 SP1 Installation ,

VS2010 Service Pack1 Installation Failed

Oct 20, 2011

Swapping




Swapping




             There are many ways to handle a swap operation; moreover, people have reason to believe that bitwise swapping is faster and more efficient than other methods; however, I strongly disagree with them. Only with the oldest microprocessor, people can have their desire effectiveness using bitwise operation but in modern processor architecture, bitwise operations can perform as faster as adding or subtracting operation. Consequently, for bitwise operators like XOR(^) have more operations than simple addition or subtraction ; as a result , it seems that addition is the best way to go.


Please save the file in (.cpp) format for Code::Blocks, Code:

/* | Author     : Alim Ul Karim               |
   | Email      : auk.junk@live.com           |
   | Portfolio  : auk-port.webs.com           |
   | Blog       : bit.ly/auk-blog             |
   |------------------------------------------|
   | Code tested on CodeBlocks , GCC Compiler |
   | Example of Swapping in C/C++, Save in .cpp       |
   |------------------------------------------|
 */


#include <stdio.h>

//using third variable
void swap_based_on_address(int *a, int *b){
     if ( *a == *b ){ return;}
        int temp = *a;
        *a = *b;
        *b = temp;
}

//using third variable
void swap_based_on_address(int &a, int &b){
    if ( a == b ){ return;}
        int temp = a;
        a = b;
        b = temp;
}

//using without using third variable, XOR(Bitwise Swapping)
void swap_using_xor(int &a, int &b){
    //no need to change if a=b, and this condition is must for XOR
    if ( a == b ){ return;}
        a = a ^ b;
        b = a ^ b;
        a = a ^ b;
}

//using without using third variable, using addition and subtraction
void swap_using_add(int &a, int &b){
    //no need to change if a=b
    if ( a == b ){ return;}
        a = a + b;
        b = a - b;
        a = a - b;
}

//using without using third variable, using multiplication , division
void swap_using_division(int &a, int &b){
    //no need to change if a=b
    if( a == b ){ return;}
        a = a * b;
        b = a / b;
        a = a / b;
}

int main(){
     // save file as a .cpp format
    int a = 10 , b = 12;
    int backup_a = a , backup_b = b;
    swap_based_on_address(&a , &b);
    printf("swapping using memory location :\nFrom(a=%d,b=%d) to a=%d , b=%d\n\n" , backup_a
    , backup_b , a ,b);

    a = backup_a, b = backup_b;
    swap_based_on_address(a , b); // save file as a .cpp format
    printf("swapping using memory location by sending only value to a function :\nFrom(a=%d,b=%d) to a=%d         , b=%d\n\n" , backup_a , backup_b , a ,b);

    a = backup_a, b = backup_b;
    swap_using_xor(a , b); // save file as a .cpp format
    printf("Swap using XOR :\nFrom(a=%d,b=%d) to a=%d , b=%d\n\n" , backup_a , backup_b ,
    a ,b);


    a = backup_a, b = backup_b;
    swap_using_add(a , b); // save file as a .cpp format
    printf("Swap using addition, subtraction :\nFrom(a=%d,b=%d) to a=%d , b=%d\n\n" ,
    backup_a , backup_b , a ,b);

    a = backup_a, b = backup_b;
    swap_using_division(a , b); // save file as a .cpp format
    printf("Swap using multiplication, division :\nFrom(a=%d,b=%d) to a=%d , b=%d\n\n" ,
    backup_a , backup_b , a ,b);


    return 0;
}

----------------------------------------------------------------------------------------------------------------------------------


Search Engine Friendly Links:

Author:

Search Engine Friendly Labels:

Swapping ,

Swap,

Swap using addition and subtraction,

Swapping using addition and subtraction ,

Swapping using addition without the third variable ,

Swapping numbers in C ,

Swapping variables in C ,

Swapping variables in C++ ,

Swap variables in C++ ,

Swap variables in C,

Swapping without using the third varible in C ,

Swap variable using bitwise operator ,

Swap variable using XOR operator ,

Swap variable using division operator ,

Swap variable using multiplication operator ,

Swap variable using XOR (^) operator ,

Swap XOR ,

XOR(^)

Swap in C



Swap in C




             There are many ways to handle a swap operation; moreover, people have reason to believe that bitwise swapping is faster and more efficient than other methods; however, I strongly disagree with them. Only with the oldest microprocessor, people can have their desire effectiveness using bitwise operation but in modern processor architecture, bitwise operations can perform as faster as adding or subtracting operation. Consequently, for bitwise operators like XOR(^) have more operations than simple addition or subtraction ; as a result , it seems that addition is the best way to go.


Please save the file in (.cpp) format for Code::Blocks, Code:

/* | Author     : Alim Ul Karim               |
   | Email      : auk.junk@live.com           |
   | Portfolio  : auk-port.webs.com           |
   | Blog       : bit.ly/auk-blog             |
   |------------------------------------------|
   | Code tested on CodeBlocks , GCC Compiler |
   | Example of Swapping in C/C++, Save in .cpp       |
   |------------------------------------------|
 */


#include <stdio.h>

//using third variable
void swap_based_on_address(int *a, int *b){
     if ( *a == *b ){ return;}
        int temp = *a;
        *a = *b;
        *b = temp;
}

//using third variable
void swap_based_on_address(int &a, int &b){
    if ( a == b ){ return;}
        int temp = a;
        a = b;
        b = temp;
}

//using without using third variable, XOR(Bitwise Swapping)
void swap_using_xor(int &a, int &b){
    //no need to change if a=b, and this condition is must for XOR
    if ( a == b ){ return;}
        a = a ^ b;
        b = a ^ b;
        a = a ^ b;
}

//using without using third variable, using addition and subtraction
void swap_using_add(int &a, int &b){
    //no need to change if a=b
    if ( a == b ){ return;}
        a = a + b;
        b = a - b;
        a = a - b;
}

//using without using third variable, using multiplication , division
void swap_using_division(int &a, int &b){
    //no need to change if a=b
    if( a == b ){ return;}
        a = a * b;
        b = a / b;
        a = a / b;
}

int main(){
     // save file as a .cpp format
    int a = 10 , b = 12;
    int backup_a = a , backup_b = b;
    swap_based_on_address(&a , &b);
    printf("swapping using memory location :\nFrom(a=%d,b=%d) to a=%d , b=%d\n\n" , backup_a
    , backup_b , a ,b);

    a = backup_a, b = backup_b;
    swap_based_on_address(a , b); // save file as a .cpp format
    printf("swapping using memory location by sending only value to a function :\nFrom(a=%d,b=%d) to a=%d         , b=%d\n\n" , backup_a , backup_b , a ,b);

    a = backup_a, b = backup_b;
    swap_using_xor(a , b); // save file as a .cpp format
    printf("Swap using XOR :\nFrom(a=%d,b=%d) to a=%d , b=%d\n\n" , backup_a , backup_b ,
    a ,b);


    a = backup_a, b = backup_b;
    swap_using_add(a , b); // save file as a .cpp format
    printf("Swap using addition, subtraction :\nFrom(a=%d,b=%d) to a=%d , b=%d\n\n" ,
    backup_a , backup_b , a ,b);

    a = backup_a, b = backup_b;
    swap_using_division(a , b); // save file as a .cpp format
    printf("Swap using multiplication, division :\nFrom(a=%d,b=%d) to a=%d , b=%d\n\n" ,
    backup_a , backup_b , a ,b);


    return 0;
}

----------------------------------------------------------------------------------------------------------------------------------


Search Engine Friendly Links:

Author:



Search Engine Friendly Labels:

Swapping ,

Swap,

Swap using addition and subtraction,

Swapping using addition and subtraction ,

Swapping using addition without the third variable ,

Swapping numbers in C ,

Swapping variables in C ,

Swapping variables in C++ ,

Swap variables in C++ ,

Swap variables in C,

Swapping without using the third varible in C ,

Swap variable using bitwise operator ,

Swap variable using XOR operator ,

Swap variable using division operator ,

Swap variable using multiplication operator ,

Swap variable using XOR (^) operator ,

Swap XOR ,

XOR(^)