Saturday, May 7, 2011

How to Make Links Open in a New Window

When you're linking to a page on a separate website, it's nice to have it open in a new window so you don't lose people to that site. Learn how to control that with a touch of HTML.


Create an external link to an outside website

Dive straight into the HTML of the page -- Click the icon that looks like a scroll or simply says HTML in little letters.  You'll know you clicked the right spot when your nicely formatted page turns into a mess of garbled HTML.

Find the link that you created.  If the link I created was for the phrase "newspaper" linking to the NY Times (like this: newspaper), I would look for HTML like the following:






Add the following little scrap of code that appears in dark grey to that HTML:  





Sometimes you'll see a target attribute already there like this:  





In that case, just change _self to _blank

That's it!  Hit Save.  When anyone clicks your modified link, it will open in a new window.

Turbo C tutorial for Beginners (A HELLOWORLD Program)

Today i am here to explain a simple Program in C for beginners. For for that you should have a C language Compiler Like Turbo C.. You can Download it From here  Click Here To download Turbo C!!!  After Download and finishing installation Turbo c program goto C:\TC\BIN in your PC.This is the default location where you can find turbo c compiler and editor. find a tc.exe file and open it.
now a blue screen with a cursor blinking on it showed. you can start to write your first c program.
first of all you have to define header files. header files contains definitions of all functions which we use in our program. first i am writing a program "hello world" , then i will try to explain how it works.

#include
#include

void main(void)


{

clrscr();
printf("HELLO WORLD");
getch();
}


this program will give the output "HELLO WORLD"
But without " " Inverted Commas..

Now lets discuss this program
the first two lines
"
#include
#include

"
are header files. conio.h is a short form of console input output.header and stdio.h is a short of standard input output.header. these two files contains definitions of functions that we use in our program.


the third line is a function. every c program must have at least one function that is main function.
"void main(void)"
function return somethings but in main function void is showing that this function is not returning anything.

then you see { } curly braces. this defines body of your program. whatever you have to write, you mus write in between these braces.

then we use another function clrscr()
is a short of clear screen and parenthesis showing that it is a function. by using this function you would be able to clear the previous outputs from the screen before you run another program.

then the line " printf("HELLO WORLD"); "
printf is function use to print whatever you want on the screen. anything in the inverted commas will display on screen as it is by using this function.

how can we forget ; semicolon.
it is called line terminator. a semicolon shows that a statement is completed.

then next and final line and of course another function
getch();
your program is also complete without this function but your output can not stop on the screen without this function. if you don't use it and run the program your output will come on screen and vanished as it is not appeared.

Tthat all for this tutorial. hope you will find it useful for you...

What Is 'Port Forwarding'? How Do I Set My Own Port Forwards for UTorrent OR Bit Torrent?


You hear about 'port forwarding' as a way to improve your download and game speeds, but what exactly is port forwarding?
If the computer signal can find its way into your computer a few milliseconds quicker, it will add up to be dramatic speed increases for your game or your downloading.

65,536 paths to choose from: that pencil-thin network cable (or wireless network adapter) at the back of your computer contains 65,536 microscopic pathways inside it. Your network cable is the same as a major highway, except your network cable has 65,536 lanes, and there is a tollbooth on each lane. We call each lane a 'port'.

Your Internet signal is comprised of millions of tiny little cars that travel on these 65,536 lanes. We call these little cars "transfer packets". Computer transfer packets can travel very quickly (up to thousands of kilometers per second), but they do observe a stop-and-go set of rules, where they are required to stop at each major network intersection as if it were a border crossing between countries. At each intersection, the packet must do three things:
  1. Find an open port,
  2. Pass the identification test that will allow it through that port, and if not,
  3. Move to the next port and try again, until it is allowed to pass through the toll.

In some cases, packets sent by hackers will be caught and held at the intersection, where they will then be dissolved into random electrons. When this happens, it is called "packet filtering" or "packet sniping".

>>How to Set My Port Forwards for UTorrent OR Bit Torrent:

This guide will help you turn this pesky yellow triangle into a nice green circle in uTorrent through port forwarding. Making that icon green will get you better download speeds, and thus, more happiness…
You will see in this guide that explaining how to do this for uTorrent basically explains how to do it for any bit torrent client. On to the tutorial…
Opening ports for a bit torrent client has nothing to do with the bit torrent client (well, except for the port number….that’s kind of important). Opening ports is all about working with your router’s settings. I will be using a ZXDSL 831CII router for this tutorial. Most routers’ have very similar settings and options, so it shouldn’t matter if you don’t have a ZXDSL router.
Step 1: Find out what port your program uses.
I use BitTorrent, but you may use a different UTorrent client. In just about every UTorrent clients’ options, there is a place to change the port it uses. For BitTorrent, you just go to Options->Preferences, and the connection options pop right up. As you can see below, the port is 49743. Make sure you write down this port. You’ll need it later.








You will have the different port or may be the same, so don’t worry about the port
Step 2: Find out your network IP address.
Click on your start menu, and select run Or Press Win+R to Open the Run box. Once the run box is up, type “cmd” in the box.

Now, a dos-like box will open up. Type in ipconfig and press enter.




Next, you will get a result like this.





Write down the IP address as you’ll need this later.
Step 3: Log into your router settings page.
This can be done by entering 192.168.1.1 into the address bar of your browser. After you have done this, you should be promoted to log into the router settings page. The default username is “admin” and the default password is also “admin”.




Step 4: Click on Advanced Tab






Depending on your router, you may come across different menus here. In any case, you want to make sure click on add a port and the forward option, but in my case I have to go through these steps

Step 5: Advanced > NAT





Step 6: NAT > Select PVC7 from Combo Box




Step 7: Now Click on virtual Server




Step 8: Forward your port from Step 1.
Now, you should be given a few different fields to fill in about the port you are forwarding. First, you want to give the index (Give any number given there) and then the port name. I usually just name it the same as the program it is associated with, so in this case it would be Bit Torrent. Second, you want the port to be open for both TCP and UDP. Next, you put in the port from Step 1. It may ask for a range (Start port number, end port number), but you can just put the same number for both the starting and ending ports. Finally, you put in your server IP address as found in Step 2, and REBOOT your Router...


Congratulations! Now, you should be able to download and share much faster!