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  http://www.cjb.net/cgi-bin/shell.cgi?action=signup

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.

Thursday, March 7, 2013

Ask the user for his/her marks in CP Midterm #1 (out of 60) and find out the percentage marks.

Program Sample Output

 e.g. 1
Sample Input: (Note: Bold refers to user input)
Enter your marks in “CP Midterm #1” : 25

Sample Output:
Your marks as a percentage are: 40.00 %

e.g. 2
Sample Input: (Note: Bold refers to user input)
Enter your marks in “CP Midterm #1”: 60

Sample Output:
Your marks as a percentage are: 100.00 %

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

main()
{
       float marks;
       cout<<"Enter your marks in CP (Out of 60): ";
       cin>>marks;
       float result= (marks/60);
       cout<<"Your marks as a percentage are : "<<result*100;
       getche();
       return 0;    
}

Download this executable of this project from HERE

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

Tuesday, March 5, 2013

Error 404.13 The request filtering module is configured to deny a request IIS

Hello folks,

          You might have encounter an error while uploading files to the server

"The request filtering module is configured to deny a request that exceeds the request content length"


so what does this error actually means, and how to solve this error..

Basically IIS has defined a size limit for uploading file, by default the size limit is 30000000 bytes i.e. 28 MB. So when ever a user try to upload a file that is larger than 28 MB this error will come up.

In order to fix this problem follow these simple steps.
  1. Click on start button and type inetmgr, this will open up the IIS Manager
Alternatively you can go to 

Control Panel >> Administrative Tools >> Internet Information Services (IIS) Manager 


     
     2.  Now from the right side window Double click on Request Filtering

     3.  Now Goto Rules Tab

     4.  Now right click and select Edit feature Setting

     5. Now set the "Maximum Allowed Content Length" according to your requirement


   
      6. Click on OK to finish

Note: It is recommended to restart the IIS after setting the value.

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