Posts Tagged ‘computer’

EXPORTED NAMES

 

After importing a package, you can refer to the names it exports.

In Go, a name is exported if it begins with a capital letter.

Foo is an exported name, as is FOO. The name foo is not exported.

Run the code. Then rename math.pi to math.Pi and try it again.

Example :

package main

import (
“fmt”
“math”
)

func main() {
fmt.Println(math.pi)
}

output:

prog.go:9: cannot refer to unexported name math.pi
prog.go:9: undefined: math.pi

after renaming math.pi to math.Pi

package main

import (
“fmt”
“math”
)

func main() {
fmt.Println(math.Pi)
}

output:

3.141592653589793

 
 
 

MONDAY, MAY 28, 2012

How To Clean Your RAM Using Notepad

 

Cleaning your RAM using notepad

Many friends of me ask where can I download a software which can keep my RAM free? And I found these software are nothing but using some lines of code which can be implemented by using notepad or any editor tool. So if any one does not have any software, you can use it by doing the following things which I am going to mention.

Steps to Clean Your RAM Using Notepad:

Step 1: Open Notepad
Step 2: Type FreeMem=Space(10240000000)
Step 3: Save it as “CLEANER.VBS” in any location you like.
Step 4: You can edit the code and write 512 instead of 1024 if you own a 512mb RAM or change to anything you like.
Step 5: Run it !

After this final step your RAM will be free.

Hope you enjoyed it. :)
Please Pass comments on i

Setting up a wireless router is straightforward as long as you have a PC with a wireless network adapter, as well as an active high-speed Internet connection. You might also need a computer with a wired network adapter and router-specific setup software, which is typically included on a disc packaged with your router or available for download on the router manufacturer’s support site.

If you have a router labeled with a Windows 7 logo and you are using Windows 7, setting things up should be quick if you follow the steps below.

SET UP YOUR WIRELESS ROUTER ON A WINDOWS 7 PC

1. Connect the wireless router to your modem using an ethernet cable.

2. Connect your wireless router to a power source. Wait about a minute, and then continue to the next step.

3. Click the network icon in the notification area; the icon should look like a series of vertical bars, or a tiny PC with a network adapter alongside it.

4. Select your wireless network from the list of available networks to complete the setup process. By default, your network name will be the name of your router manufacturer.

Although newer routers connected to Windows 7 PCs are generally simple to set up, someproblematic wireless routers might require a little more attention. If you can’t set up your wireless router as explained above, follow the directions included with it. Chances are, you’ll need to use one of the following two strategies.

SET UP YOUR ROUTER USING THE SETUP SOFTWARE

1. Make sure that your wireless router is completely disconnected from the modem, the computer, and the power source.

2. On your PC, insert the disc that came with your router, or download and run the latest version of the router’s software from the vendor website.

3. Follow the on-screen instructions. The setup routine will ask you to connect components (including your modem and PC) in a certain order, and it may request that you temporarily connect your wireless router to a computer via an ethernet cable. You will also create a wireless network name and password at this point. If something goes wrong, you may want to consider manually configuring your wireless router.

MANUALLY CONFIGURE YOUR ROUTER WITHOUT SETUP SOFTWARE

1. Connect your wireless router to the modem, using an ethernet cable.

2. Connect the wireless router to a power source. Wait about a minute to ensure that your router is fully operational.

3. Connect the wireless router to your computer using an ethernet cable.

4. Log in to your router’s Web interface by opening a browser and entering the IP address of your router into the address bar. The IP address should be listed within your router’s documentation; if you can’t find it, most routers use a common IP address such as http://192.168.1.1, http://192.168.0.1, or http://192.168.2.1.

5. Enter the default username and password, which you should find within your router’s documentation. Alternatively, visit Port Forward’s Default Router Passwords page.

6. Use the Web interface to set up a network name and password.

7. Disconnect your computer from the wireless router and then reconnect wirelessly. Finally, check out our router tips to speed up your wireless connection.