Sunday, April 20, 2008

Save Energy with Electrical Appliances

  • Switch off electrical appliances, computers, televisions etc, at the switch point when they are not used
  • Use pressure cookers for economical cooking. Avoid using electrical appliances
  • Avoid ironing one or two cloths. Iron in bulk at a stretch
  • Avoid opening the oven door unnecessarily during cooking

Save Energy with Lights & Fans

  • Use natural light and air always. Avoid switching on lights and fans during day time
  • Use sunlight to the maximum possible
  • Switch off lights and fans when you leave the room
  • Use fluorescent or compact fluorescent lights (CFLs) wherever lights are required to be switched on for more than 4 hours a day
  • Clean lights, light reflectors and regulators for better illumination
  • Use slim tube lights for better light and electricity saving
  • Maintain fans and regulators properly
  • Open windows for better ventilation and air circulation
  • Use table lamps instead of overhead lights when reading
  • Houses can be designed to achieve maximum sunlight and ventilation
  • Check wiring periodically for leakages, if any
  • Light-colored walls reflect light better. So, needs less wattage lamps
  • Dimmers can be used wherever possible

Thursday, April 17, 2008

Getting IP address of client browser

Recording IP address of client browser is necessity from security point of view. It helps in filtering unwanted or malicious access from a particular location.

Active Server Pages (Microsoft's ASP) has a built-in object called ServerVariables. This object holds useful information on Environmental Variables of the client browser. One the variable is "REMOTE_ADDR" which holds the IP address of the visitor.

To request the IP address of host machine, use the following code in the ASP page:

Client IP is <%= Request.ServerVariables("REMOTE_ADDR") %>



Subscribe free via email

Enter your email address:

Delivered by FeedBurner

...