Monday, April 1, 2013

Prevent saving changes that require table-re-creation Solution


Hello folks,

While updating database table definition in Visual Studio Express you might have encounter a error like:

Saving changes is not permitted. The changes that you have made require the following tables to be dropped and re-created. You have either made changes to a table that can't be re-created or enabled the option Prevent saving changes that require the table to be re-created.


This problem usually occurs when "Prevent saving changes that require table-re-creation" option is checked/enabled, and in order to overcome this error we would need to disable this option.

Follow these simple steps to workaround this error

  1. Click on Tool from the menu bar
  2. Click on Options
       3. Now from left side select Table and Database Designer    
       4. Now from right side un-check Prevent saving changes that require table-re-creation
       5.Click on OK 
Now you update/save your changes, and you will not encounter this error again

If you have any further queries please post a comment

I hope it was informative for you and I would like to thank you for reading

Sunday, March 17, 2013

Prompt the user for the diameter of a circle in centimeters and find out its area in square meters.

Program Sample Output

 Sample Input: (Note: Bold refers to user input)

Enter Diameter : 200

Sample Output:

Area : 3.142 square meters

CODE

#include<iostream.h>
#include<conio.h>
#include<iomanip.h>
main()
{
      float dia;
      cout<<"Enter Diameter : ";
      cin>>dia;
      dia=dia/2;
      dia=dia/100;
      dia=dia*dia;
      dia=3.142*dia;
      printf("%f",dia);
getche();
}

Download the executable of this project from HERE

Thursday, March 14, 2013

Bypass ISP torrent throttle using SSH Tunnel

Hello folks,
                 If your ISP is throttling torrent traffic, and you are finding the answer on how to break it, than you are at the right place.

In this tutorial I will show you how you can bypass ISP throttling and continue to download using your torrent client

Follow these simple steps

1. Create an account  Here

2. Now Download Bitvise SSH tunnelier from HERE
(File is password protected password is 'taqi')

3. After you download the Bitvise SSH tunnelier, it should open automatically, if it doesn't than start it from start menu

4. Type shell.cjb.net in Host Field

5. Type your Username in UserName Field

6. Type your password in Password Field
(set rest options as shown in picture above)

7. Now goto Options tab

8. select Automatically reconnect

9. Uncheck Open SFTP.

Now we will create the proxy which the torrent client will listen to...

10. Go to Services tab, 

11. Enable Socks/HTTP Proxy forwarding 

12. In listen interface type 127.0.0.1

13. In listen port you can use any random port number that is not being used by any other application

14. Now click on the login button
 (A Shell will pop-up, keep it running) 

You might be ask about saving profile, so just select Save Profile. This is handy if you don't want to repeat this configuration again and again

Ok now we have to configure the u-torrent Client...

15. go to Option >> preference >>Connection in your u-torrent client

16.  Select Proxy server Type as socks4/socks5

17. In proxy type 127.0.0.1 

18. In port field enter the port number which you select at step 13

19. Now go to Bittorrent 

20. Set Protol encryption  as Enabled

21. Put Check mark on Allow incoming legacy connections.

22. And Finally but not the least Now click on Apply 

Now you u-torrent client should start downloading the files, if it doesn't than restart it

I hope this was informative for you and I would like to Thank You for reading.

Friday, March 8, 2013

Complete Code : Take temperature in Fahrenheit as input and convert it into Centigrade and Kelvin. Display the conversion results at the end.

Program Sample Output
 
Sample Input: (Note: Bold refers to user input)

Enter Temperature in Fahrenheit: 32

Sample Output:

Centigrade : 0.00 °C
Kelvin : 273.00 K

Note: The character ‘°’ should also be printed in the output.

CODE

#include<iostream.h>
#include<conio.h>
#include<iomanip.h>

main()
{
      float fTemp=0;
      cout<<"Enter temp in Fahrenheit : ";
      cin>>fTemp;
      float cTemp=(fTemp-32)*5/9;
      float kTemp=cTemp+273;
      printf("\nTemp is Centigrade is %f %cC",cTemp,248);
      printf("\nTemp is Kelvin is %f %cC",kTemp,248);
      getche();
}

Download this project's executable file from HERE

NOTE:You will need Dev C++ or TC compiler to compile this code.