20 June 2010

0 How to Remove navBar (Navigation Bar) from Blogger blog

        Did you ever notice a bar on the top of your blog as shown above? This is called the 'Navigation Bar' also known as 'Navbar'. Did you ever feel this NavBar of the blogger very irritating? Did you ever think of "How do I hide the NavBar of my Blog"
        Every blogspot blog by default recieves a Navigation Bar on the top, with buttons for switching to the next blog, searching yor blog and more. Some bloggers may find the Navigation Bar useful, But most of the bloggers may feel it irritating. If you feel that disabling the navigation bar would improve the layout of your blog then You may want to disable it.
        Blogspot is not giving you any options for hiding or disabling the so called 'NavBar', there is no menu entry to disable it, But you can still hide it.

Disabling the Blogger NavBar: Detailed Steps

Dashboard--> Layout--> Edit HTML
In the edit HTML text field, find the style defenitions( which is enclosed in { } brackets).
Then paste the below given code somewhere near other style defenitions.
#navbar-iframe {
height:0px;
visibility:hidden;
display: none !important
}
In this method, we are not particular about the position of the code pasting. Kindly refer the screen shot shown below.

In my personal experience this is a perfect hack. After these changes click on the save template button, reresh the page. If there is no navigation bar in the screen, then the Hack is perfect. Check out with all the leading browsers (atleast Internet explorer, Mozilla firefox, Safari and Google chrome).

Explanations

<style>...</style> encloses stylesheet instructions that define a page's layout. The actual layout instruction is now targeting the element of the ID navbar IFrame, which you define to not display. The !important tells the browser to override other layout defenitions for this element, if exists.

Exceptions

If there is still the navigation bar exists(hopefully it won't happen), perhaps Google has since adjusted the way their page design displays the navigation bar. If so you may need to read the HTML source code of you blog and adjust your stylesheet instructions accordingly.

Not For Newbies

The blogger navigation bar is also disabled when using FTP to transfer the blog pages to your own domain, because the navigation bar includes many elements that work only in the context of a blogger hosted blog.
However,FTP publishing(Dashboard-->Settings-->Publishing) comes with its own set of disadvantages, so a move must be carefully planned.
Please make a note that in order to switch to FTP uploading , Your blog must be public and use a classic template.
You can set your blog to be public via Dashboard-->Settings-->Permission
You can set your template to classic via Dashboard-->Settings-->Edit HTML
Read More...

18 June 2010

0 Session Tracking in Java Tutorial

• Session objects live on the server
• Sessions automatically associated with client via cookies or URL-rewriting
– Use request.getSession to get session
• Behind the scenes, the system looks at cookie or URL extra info and sees if it matches the key to some previously stored session object. If so, it returns that object. If not, it creates a new one, assigns a cookie or URL info as its key, and returns that new session object.
• Hashtable-like mechanism lets you store arbitrary objects inside session
– setAttribute stores values
– getAttribute retrieves values
• Access the session object
– Call request.getSession to get HttpSession object
• This is a hashtable associated with the user
• Look up information associated with a session.
– Call getAttribute on the HttpSession object, cast the return value to the appropriate type, and check whether the result is null.
• Store information in a session.
– Use setAttribute with a key and a value.
• Discard session data.
– Call removeAttribute discards a specific value.
– Call invalidate to discard an entire session
Read More...

0 Disadvantages of Session Tracking using Hidden Form Fields

Disadvantages of Session Tracking using Hidden Form Fields

  • Lots of tedious processing
  • All pages must be the result of form submissions

Read More...

0 Session Tracking using Hidden Form Fields

Below given is the core idea of Session Tracking using Hidden Form Fields

<INPUT TYPE="HIDDEN" NAME="session" VALUE="...">

Advantages of Session Tracking using Hidden Form Fields

Works even if cookies are disabled or unsupported

Disadvantages of Session Tracking using Hidden Form Fields

  • Lots of tedious processing
  • All pages must be the result of form submissions

Read More...

0 Disadvantages of Session Tracking using URL Rewriting

Disadvantages of Session Tracking using URL Rewriting

  • Must encode all URLs that refer to your own site
  • All pages must be dynamically generated
  • Fails for bookmarks and links from other sites

Read More...

0 Session Tracking using URL Rewriting in JAVA

The below given is the core idea of Session Tracking using URL Rewriting in JAVA

  • Client appends some extra data on the end of each URL that identifies the session
  • Server associates that identifier with data it has stored about that session

E.g. http://host/filePath/fileName.html;jsessionid=1234

Advantages of Session Tracking using URL Rewriting

Works even if cookies are disabled or unsupported

Disadvantages of Session Tracking using URL Rewriting

  • Must encode all URLs that refer to your own site
  • All pages must be dynamically generated
  • Fails for bookmarks and links from other sites

Read More...

1 What are HttpSession Methods in JAVA

getAttribute

– Extracts a previously stored value from a session object. Returns null if no value is associated with given name.

setAttribute

– Associates a value with a name. Monitor changes: values implement HttpSessionBindingListener.

removeAttribute

– Removes values associated with name.

getAttributeNames

– Returns names of all attributes in the session.

getId

– Returns the unique identifier.

isNew

– Determines if session is new to client (not to page)

getCreationTime

– Returns time at which session was first created

getLastAccessedTime

– Returns time at which session was last sent from client

getMaxInactiveInterval, setMaxInactiveInterval

– Gets or sets the amount of time session should go without access before being invalidated

invalidate

– Invalidates current session

Read More...

0 What is the Importance of Session Tracking

  • When clients at on-line store add item to their shopping cart, how does server know what’s already in cart?
  • When clients decide to proceed to checkout, how can server determine which previously created cart is theirs?

There comes the importance of Session Tracking. The following are the various Session Tracking methodologies.
  • Cookies
  • URL-Rewriting
  • Hidden Form Fields
Read More...

17 June 2010

0 What is CRUD Operations in Database

CRUD is the acronym for Create, Read, Update and Delete. Create, Read, Update and Delete (CRUD) are the 4 basic functions of a Database or persistent storage. CRUD refers to all of the major functions that need to be implemented in a RDBMS.
Each letter in the CRUD can be mapped to a standard SQL statement:

Create        INSERT
Read        SELECT
Update        UPDATE
Delete        DELETE
Read More...

0 Rails versus Java web frameworks

        There are many other web application frameworks other than Rails. Apache Cocoon, Apache Struts, AppFuse, Google Web Toolkit, Grails, Hamlets, Spring Framework, Tapestry are frameworks just to name a few. This blog post compares Rails framework with these other Java frameworks.

Vastly reduced code footprint – Field results place productivity increases over modern Java methodologies (e.g., J2EE, Struts, etc.) in the 10-fold range.

Minimal configuration – Rails applications require a few lines of specification to identify each database connection you will use, as well as a line of configuration for each different type of routing you will use (typically 3-4 lines for an entire application). Both of these are necessary in any environment. By contrast, rather than the 20 or so lines required in a Railes application, typical medium-scale Java applications require thousands of lines of XML configuration, many of which are stronglycoupled across application layers.

IDE automation not required – Much of the productivity improvement in Java comes from the widespread use of tools to automate code writing and change. In comparison, Rails productivity improvement is based on the ease of programming it offers.

Read More...

0 Ruby on Rails as an Agile Framework

        Here we will discuss about the characteristics of Rails framework that make it most suitable for Agile methodologies.

Scaffolding – Most database backed Web applications must provide a user interface to do CRUD operations – Create, Read, Update, and Delete – for nearly every major table in the system. Building these user interfaces should be automated, not repeated. Rails eliminates some of the CRUD operation repetitions through scaffolding. With Rails, you can build a full scaffold application from scratch in just a few simple operations.

Convention over Configuration – A developer needs to specify only the unconventional aspects of the application. For example, if there's a class Sale in the model, the corresponding table in the database is called sales by default. It is only if one deviates from this convention, such as calling the table "products_sold", that one needs to write code regarding these specific deviations from conventions. Also the well formed set of conventions alleviates the need of detailed configuration files providing mapping between objects and tables etc.

Don't Repeat Yourself (DRY) – Information is located in a single, unambiguous place. DRY principle means that settings only need to be specified in one place. Rails ensures that these definitions are visible to all the other web components that need them. For example, the developer does not need to specify database column names in class definitions. Instead, Ruby can retrieve this information from the database.

Portable programming skills – Managers will appreciate the fact that Rails minimizes configuration and encourages standardization. This feature enables programming skills to be more portable.

Rapid feedback loop – In Rails, you get nearly-instant feedback as you code. Hence results of the changes made can be immediately seen, improving the overall client experience. Changes can be made promptly as well.

Easy migration with vendor neutral implementation – Command pattern has been applied in Ruby to enable migrations using the ActiveRecord migration facility. Database schemas can be defined in a database-vendor neutral way.

Meta Programming – The most useful application of dynamic features, such as adding methods to objects, is meta programming. Such features allow developers to create a library that adapts to the environment. An example application of this is swapping proxies to easily change protocols from SOAP to XMLRPC.

Read More...

2 Architecture of Ruby on Rails Framework

Architecture of Rails framework is illustrated in the above given figure.

Rails architecture consists of 2 major elements:

  • Active Record
  • Action Pack

Active Record is an Object Relational Mapping (ORM) layer, which handles the Model element of the MVC application. This layer exposes the data table rows as model objects to the rest of the application.

Action Pack handles the View and Controller elements of the MVC application. Action Pack consists of two parts viz. Action View and Action Controller which handle View and Controller of the MVC application respectively.

Each of the architectural element in the picture above is elaborated below:

User Component – Rails web applications are accessed by browsers using various protocol interfaces such as HTTP, ATOM, RSS or consumed as Web Services using SOAP.

Web Server – The developed Rails application resides on a Web Server, which handles requests from the user component and forwards them to the Dispatcher.

Dispatcher – Dispatcher invokes appropriate controller based on the current user request.

Controller – Controller processes the user request, and invokes appropriate action. The action collaborates with appropriate model objects and prepares the response. If the request was from a browser, the response will be rendered through Action View component. Else, an appropriate response is relayed by either the Action Webservices or the Action Mailer component.

Read More...

16 June 2010

0 Overview of Ruby on Rails RoR

Ruby on Rails – the Framework

Ruby on Rails is an open source web application development and persistence framework that supports agile development and sustained productivity. It is a common observation that web application development using Rails framework is at least 10 times faster compared to other frameworks.

Rails framework was extracted from working applications that were written in Ruby. This means that Rails code base was practical, proven and well tested before it took shape as a framework.

Rails framework includes everything needed to create database backed web applications according to the Model-View-Control (MVC) pattern of separation.

This pattern splits the view (also called the presentation) into "dumb" templates that are primarily responsible for inserting pre-built data in between HTML tags.

The model contains the "smart" domain objects (such as Account, Product, Person, Post) that hold all the business logic and know how to persist themselves to a database.

The controller handles the incoming requests (such as Save New Account, Update Product, Show Post) by manipulating the model and directing data to the view.

Following are the typical set of tasks that one needs to perform to build a bare bones database backed web application using Rails:

  1. Create a new Rails project using the utility script provided as part of the framework. Doing this creates a directory structure for the new project which is common across all the Rails projects.
  2. Create necessary database with associated tables. Each of these tables maps to a model class.
  3. Generate a scaffold specifying the model and controller names to the scaffolding utility. This step needs to be repeated for all the different models that are needed for the project.
    The above process generates views for CRUD (Create, Read, Update and Delete) and list actions, wired to corresponding controller classes. Data fields associated with these actions are automatically picked up from the database tables created in the previous step.
  4. A barebones application that can show the core application data with capability to add, modify, view and delete is now ready!

Over and above the barebones application created above, sophistications can be added easily. Each of these additional sophistications is also a piece of cake if we follow the conventions of Rails framework. For example, the table name associated with each model class name follows a convention that the table name will be a plural of the model class name. Such conventions over configurations make the amount of code very less, and hence make the amount of work to be done by the programmer very less, eventually resulting in increased productivity. Another principle followed in Rails paradigm is called DRY (Don’t Repeat Yourself) that aims at eliminating code redundancy.

Rails framework has the following salient features:

  • User friendly
  • Agile
  • Rapid prototyping capability
  • Built in testing capabilities
  • Easy to maintain
  • Scalable
  • On par performance with other frameworks
  • Support for Webservices
  • Support for emails
  • Support for AJAX
  • Support for development , testing and production environments
Read More...

0 Features and Advantages of Rails Framework

Rails framework has the following salient features:

  • User friendly
  • Agile
  • Rapid prototyping capability
  • Built in testing capabilities
  • Easy to maintain
  • Scalable
  • On par performance with other frameworks
  • Support for Webservices
  • Support for emails
  • Support for AJAX
  • Support for development , testing and production environments
Read More...

1 Features of Ruby on Rails RoR

Ruby – the programming language

Ruby is an object oriented language that is interpreted. It has syntax similar to Perl and semantics similar to Smalltalk. Ruby itself was developed in C. Rails web application framework is developed on Ruby.

Salient features of Ruby language are:

  • Pure OOP
  • Support for Reflection – can query Ruby objects about themselves
  • Duck Typing – Ruby “ducks” the issue of typing, letting the type of a variable be determined by its value.
Read More...

0 DRY in Ruby On Rails- Don't Repeat Yourself

DRY- Don't Repeat Yourself is the principle of Ruby On Rails (RoR). Information is located in a single, unambiguous place. DRY principle means that settings only need to be specified in one place. Rails ensures that these definitions are visible to all the other web components that need them. For example, the developer does not need to specify database column names in class definitions. Instead, Ruby can retrieve this information from the database.

  • Reusing data
    e.g. no need to declare table field names – can be read from database
  • Metaprogramming
    dynamically created methods
  • Less code – more work on each line of code
    e.g. specific keywords like find_all to query database
Read More...

15 June 2010

0 What is DRY- Don't Repeat Yourself

DRY- Don't Repeat Yourself is the principle of Ruby On Rails (RoR). Information is located in a single, unambiguous place. DRY principle means that settings only need to be specified in one place. Rails ensures that these definitions are visible to all the other web components that need them. For example, the developer does not need to specify database column names in class definitions. Instead, Ruby can retrieve this information from the database.

  • Reusing data
    e.g. no need to declare table field names – can be read from database
  • Metaprogramming
    dynamically created methods
  • Less code – more work on each line of code
    e.g. specific keywords like find_all to query database
Read More...

1 Advantages of Ruby On Rails - RoR

The following are the advantages of Ruby On Rails (RoR).

  • Less code by avoiding redundancy and following Rails conventions.
  • Increased productivity and, ideally, decreased development times.
  • Rails is written in Ruby – Ruby is a very easy to understand and work.
  • Extensive standard library.
  • Easily ported among Linux, Windows and Macintosh environments.
  • Well suited for Agile development.
  • Growing Ruby On Rails users community (Mailing list, Wiki, IRC & bug tracking)
Read More...

0 Disadvantages of Ruby On Rails -Rails ver. 1.2

What is not there in Rails ver. 1.2?

  • No Asynchronous communication
  • Distributed transactions are not supported
  • Poor ORM support for legacy schemas

Read More...

0 What is RoR or Ruby on Rails ?

Ruby on Rails - often called RoR, or just Rails, is an open source web application development framework. It was written using Ruby programming language. The web applications developed using this framework closely follow the Model-View-Controller (MVC) architecture. Rails framework strives for simplicity and allows real-world applications to be developed in less amount of code compared to other frameworks and with a minimum of configuration. It aims at increasing the speed and ease with which database-driven web applications can be created. Skeleton code frameworks (scaffolds) can be created in a jiffy.

  • Ruby is an Object-Oriented programming language.
  • Rails is an open source Ruby framework for developing database-driven web applications.
  • Ruby on Rails (RoR) is open source web application framework written in the Ruby programming language and using the Rails framework with MVC design pattern.
  • It aims to increase the speed and ease with which database-driven web sites can be created and offers skeleton code frameworks.
  • Emphasis is on simplicity and elegance.
  • RoR principles include Don't repeat yourself (DRY) and Convention over Configuration.
  • Focus on developer productivity and getting the job done – fast!

Ruby – the programming language

Ruby is an object oriented language that is interpreted. It has syntax similar to Perl and semantics similar to Smalltalk. Ruby itself was developed in C. Rails web application framework is developed on Ruby.

References:
http://www.rubyonrail.org

Read More...

0 JAVA- A Comparison between Static Polymorphism and Dynamic Polymorphism

Static Polymorphism And Dynamic Polymorphism in JAVA

Static Polymorphism in JAVA is also known as Function Overloading in JAVA. Dynamic Polymorphism in JAVA is also known as Function Overriding in JAVA. Let us compare Function Overloading and Function Overriding in JAVA. Here it goes,the difference between Function Overloading and Function Overriding in JAVA

Static Polymorphism Dynamic Polymorphism
Function Overloading
– within same class more than one method having same name but differing in signature
Function Overriding
– keeping the signature and return type same, method in the base class is redefined in the derived class
Resolved during compilation time Resolved during run time
Return type is not part of method signature Which method to be invoked is decided by the object that the reference points to and not by the type of the reference
Read More...

0 Compare Static Polymorphism and Dynamic Polymorphism in JAVA

Static Polymorphism And Dynamic Polymorphism in JAVA

Static Polymorphism in JAVA is also known as Function Overloading in JAVA. Dynamic Polymorphism in JAVA is also known as Function Overriding in JAVA. Let us compare Function Overloading and Function Overriding in JAVA. Here it goes,the difference between Function Overloading and Function Overriding in JAVA

Static Polymorphism Dynamic Polymorphism
Function Overloading
– within same class more than one method having same name but differing in signature
Function Overriding
– keeping the signature and return type same, method in the base class is redefined in the derived class
Resolved during compilation time Resolved during run time
Return type is not part of method signature Which method to be invoked is decided by the object that the reference points to and not by the type of the reference
Read More...

0 How to make a field auto incremental in DB2 ?

How to make a field auto incremental in DB2?

The following query example will show you how to set the primary key field as Auto-increment field in DB2
create table WCSADM.itemlist
(
   ITEMLIST_INDEX         Integer          GENERATED ALWAYS AS IDENTITY,
   RESULTCODE      VARCHAR(254),
   ADDLINFO      VARCHAR (254)
)
Read More...

14 June 2010

3 DB Migration from Oracle 8.0.5 to Oracle 10g

I have a DB of 10G size in Oracle 8.0.5 We need to migrate this (structure will remain as is) to Oracle 10g.
What is the easiest method to do this, will export taken in Oracle 8.0.5 work with import of Oracle 10g. Is there any other easy way?

        There are verious ways to migrate data from Oracle 8.0.5 to Oracle 10.2.*. Details are mentioned below,
Using Export/ Import:
1. Export Full Oralce 8.0.5 database using 8.0.5 EXP utility.
2. Take a cold backup of 8.0.5 database.
3. Apply Oracle 10g related operating system patches to server.
4. Install Oracle 10g Software.
5. Create Oracle 10g instance.
6. Create DATA and INDEX tablespaces with same name as Oracle 8.0.5 database.
7. Import Full database in new Oralce 10g instance using 10.2.* IMP utility.
8. Recompile all invalid objects.

Using File System:
1. Take a cold backup of 8.0.5 database
2. Apply Oracle 10g related operating system patches to server.
3. Install Oracle 10g Software.
4. Create Oracle 10g instance.
5. Detach file system of Oracle 8.0.5 database and attach it to new Oracle 10g database.
6. Run database upgrade scripts manually on the new 10g database.
7. Recompile all inavalid objects.

You can also use Oracle Database Upgrade Assistance tool. This is a GUI based tool provided by oracle for upgrading database to higher version.
Read More...

1 How to Load Data from Oracle to Access

Question:
How can I Load data from Oracle tables to MS access database.
Or How can I Load data from Oracle tables to an excel sheet and then to MS access database?
SSIS (SQL Server Integration Services) option would be simpler and efficient.
Read More...

13 June 2010

1 How to Unlock Oracle Client -Oracle 10g

By default all the sample schemas/users comes locked in oracle 10g.
You can use any of the two methods for unlocking user.

1. Login to sqlplus as dba/sysdba and use the following command:
ALTER USER SCOTT ACCOUNT UNLOCK;

2. Using Oracle Enterprise Manager (GUI Tool).
Login as dba/sysdba user. For your database instance, goto Administration and select Users (In Schema--Users & Previleges section). Select the user you would like to unlock (Scott in this case) and Choose the action as unlock and click go.
Read More...

0 What is the Size Limit for the Oracle Spool File

        The limit in Oracle for spool file is 2 GB. And there will be a performance impact on the machine where you generate the spool file if the file is large because of frequent IO operations.So, spooling in a client machine will affect its performance only and hence the DB Server will not have any performance impact.

        The limit above mentioned is true for 32-bit version. You can generate a much larger file using 64-bit versions. Spooling can affect the I/O operations on the server though it is a pure client thing. The arraysize parameter can affect the I/O (logical mostly).

Make sure you set the correct arraysize parameter while you extract.

Read More...

06 June 2010

2 What is Most Powerful Processor In the World?

Intel core i7 Processor

As of now, I would say, the new Intel Core i7 980x 6 core is the best single chip (multicore) processor on the market outside of any Xeon Class.
Of course, there are supercomputers in the world, the US Defense Department, the Oceanic and Atmopsheric Administration, National Weather Forecasting, has supercomputers which have THOUSANDS of CPU's ganged together in parallel. What makes supercomputers are multiple cpu chips in parallel. So when I say the i7 980x, I mean a motherboard with ONE CPU socket.
I am talking about what is available for a single/corparate buyer for building a high end single chip (multicore) cpu based computer. It is the Intel Core i7 980x 6 Core CPU.

Read More...

05 June 2010

0 Tips to Protect Your Laptop Screen / LCD Monitor

For better health of your laptop LCD monitor, keep the following things while you dealing it.

  • Never pick up a laptop by holding the LCD, and never push, squeeze or otherwise apply force to the LCD or to its surrounding screen. This will prevent accidental damage to the LCD from occurring, and possible exposure to the liquid contained within display.

  • Do not touch the Liquid Crystal Display if found cracked or damaged, the display screen has a liquid which could either spill out or leak out of the damaged area.

  • Do not place heavy objects on top of the laptop and never allow heavy objects to drop onto the Laptop, to protect it from damage.

  • Do not wipe the surface of the LCD with a wet cloth. Always use a soft, dry cloth, instead.

  • Do not place any object (notepads / paper documents / secure ID cards, etc.) between the keyboard and LCD screen while closing the laptop.

  • Do not stuff the laptop bag with items like books, papers, etc. This would result in applying pressure which in turn would cause damage to the LCD screen.
Read More...

0 How to Protect Laptop Screen LCD

For better health of your laptop LCD monitor, keep the following things while you dealing it.

  • Never pick up a laptop by holding the LCD, and never push, squeeze or otherwise apply force to the LCD or to its surrounding screen. This will prevent accidental damage to the LCD from occurring, and possible exposure to the liquid contained within display.

  • Do not touch the Liquid Crystal Display if found cracked or damaged, the display screen has a liquid which could either spill out or leak out of the damaged area.

  • Do not place heavy objects on top of the laptop and never allow heavy objects to drop onto the Laptop, to protect it from damage.

  • Do not wipe the surface of the LCD with a wet cloth. Always use a soft, dry cloth, instead.

  • Do not place any object (notepads / paper documents / secure ID cards, etc.) between the keyboard and LCD screen while closing the laptop.

  • Do not stuff the laptop bag with items like books, papers, etc. This would result in applying pressure which in turn would cause damage to the LCD screen.
Read More...

0 How to Improve Battery Life of Laptop

Here are some tips to improve your laptop battery life while you are on your battery

  1. Adjust the brightness of your screen– Now-a-days, most laptops come with the ability to adjust the brightness of your screen. Some even come with ways to modify CPU and cooling performance. Cut them down to the lowest level you can tolerate. Remember always there is a trade off between battery life and performance.
  2. Terminate unnecessary programs running in the background- For Example, chat clients and mail clients may be active and signed in all the time, you may not even use it. Update services for the applications installed in your machine is an overhead when you are on your battery. Shut down everything that isn’t crucial when you’re on battery.
  3. Reduce usage of external devices– USB devices (including your mouse and external keyboard, music players), drain down your laptop battery. Remove all the unnecessary external devices when not in use. If you had plugged in a music player (say, iPod), it may be getting charged by quickly wiping out the charge on your laptop battery.
  4. Use Wired LAN instead of WiFi– Whenever you are on your battery and wired LAN is available, then use the wired one instead WiFi. This will save a lot for you.
  5. Turn off Bluetooth and WiFi– Bluetooth and WiFi drains down your laptop battery quickly. So whenever you are on battery, turn off Bluetooth and WiFi if it’s not necessary.
  6. Remove the optical disks from drives- Even having a disk in the drive can be power consuming, they spin, taking power, even when they are not actively being used. So when you are on your battery, remove the optical disks from the drives if it’s not necessary.
  7. Run off a HDD rather than Optical disks– As CD or DVD or any other optical drives are more of power consuming than hard drive, wherever possible, try to run on virtual drives using programs virtual drive applications.
  8. Set up and optimize your power options– Go to ‘Power Options’ in your windows control panel (In a windows machine) and set it up so that power usage is optimized (Select the ‘max battery’ for maximum effect). Keep in mind that, always there is a trade off between battery life and performance.
  9. Avoid multitasking to a possible extent– Do one thing at a time when you’re on battery. Rather than working on a spreadsheet, letting your email client run in the background and listening to your latest set of MP3’s, set your mind to one thing only. If you don’t you’ll only drain out your batteries before anything gets completed!
  10. Go easy on the PC demands– The more you demand from your PC. Passive activities like email and word processing consume much less power than gaming or playing an HD movie. If you’ve got a single battery charge – pick your priorities wisely.
  11. Turn off the autosave function- MS-Word’s and Excel’s autosave functions are great, but because they keep saving regular intervals, they make your hard drives spin more. Turn this feature off whenever you are on your batter, but you have to make sure your work is saved when your battery dies.
  12. Lower the graphics use- You can do this by changing the screen resolution and shutting off fancy graphic drivers. Graphics cards (video cards) use as much or more power today as hard disks.

Keep the following things in mind, if you want to squeeze out some extra battery juice on the go.

  1. Perform disk defragmentation regularly- The faster your hard drive works the lesser drains your battery. Make your hard drive as efficient as possible by performing disk defragmentation regularly. (But not while it’s on battery of course!) Mac OSX is better built to handle fragmentation so it may not be very applicable for Apple systems.
  2. Add more RAM- This will allow you to process more with the memory your laptop has, rather than relying on virtual memory. Virtual memory results in hard drive use, and is much less power efficient. Note that adding more RAM will consume more energy, so this is most applicable if you do need to run memory intensive programs which actually require heavy usage of virtual memory.
  3. Keep the battery contacts clean- Clean your battery’s metal contacts every couple of months with a cloth moistened with rubbing alcohol. This keeps the transfer of power from your battery more efficient.
  4. Take care of your battery- Exercise the Battery. Do not leave a charged battery dormant for long periods of time. Once charged, you should at least use the battery at least once every two to three weeks. Also, do not let a Li-On battery completely discharge. (Discharging is only for older batteries with memory effects)
  5. Prevent the Memory Effect- If you’re using a very old laptop, you’ll want to prevent the ‘memory effect’ – Keep the battery healthy by fully charging and then fully discharging it at least once every two to three weeks. Exceptions to the rule are Li-Ion batteries (which most laptops have) which donot suffer from the memory effect.
  6. Hibernate, not standby or sleep – Although placing a laptop in standby mode saves some power and you can instantly resume where you left off, it doesn’t save anywhere as much power as the hibernate function does. Hibernating a PC will actually save your PC’s state as it is, and completely shut itself down.
  7. Keep operating temperature down- Your laptop operates more efficiently when it’s cooler. Clean out your air vents with a cloth or keyboard cleaner.
  8. Consider buying Netbook- If you have nothing to do with your laptop other than chatting, browsing or watching a movie, then consider buying a notebook. Now-a-days Taiwan giant ASUS’s prestigious EeePC netbook is coming with more than 14 hrs backup.
Read More...

0 Tips to Extend your Laptop Battery Life when you are on your battery

Laptops tend to lose their charm quickly when you’re constantly looking for the nearest power outlet to charge up. How do you keep your battery going for as long as possible? Here are 12 easy ways to do so.

  1. Adjust the brightness of your screen– Now-a-days, most laptops come with the ability to adjust the brightness of your screen. Some even come with ways to modify CPU and cooling performance. Cut them down to the lowest level you can tolerate. Remember always there is a trade off between battery life and performance.
  2. Terminate unnecessary programs running in the background- For Example, chat clients and mail clients may be active and signed in all the time, you may not even use it. Update services for the applications installed in your machine is an overhead when you are on your battery. Shut down everything that isn’t crucial when you’re on battery.
  3. Reduce usage of external devices– USB devices (including your mouse and external keyboard, music players), drain down your laptop battery. Remove all the unnecessary external devices when not in use. If you had plugged in a music player (say, iPod), it may be getting charged by quickly wiping out the charge on your laptop battery.
  4. Use Wired LAN instead of WiFi– Whenever you are on your battery and wired LAN is available, then use the wired one instead WiFi. This will save a lot for you.
  5. Turn off Bluetooth and WiFi– Bluetooth and WiFi drains down your laptop battery quickly. So whenever you are on battery, turn off Bluetooth and WiFi if it’s not necessary.
  6. Remove the optical disks from drives- Even having a disk in the drive can be power consuming, they spin, taking power, even when they are not actively being used. So when you are on your battery, remove the optical disks from the drives if it’s not necessary.
  7. Run off a HDD rather than Optical disks– As CD or DVD or any other optical drives are more of power consuming than hard drive, wherever possible, try to run on virtual drives using programs virtual drive applications.
  8. Set up and optimize your power options– Go to ‘Power Options’ in your windows control panel (In a windows machine) and set it up so that power usage is optimized (Select the ‘max battery’ for maximum effect). Keep in mind that, always there is a trade off between battery life and performance.
  9. Avoid multitasking to a possible extent– Do one thing at a time when you’re on battery. Rather than working on a spreadsheet, letting your email client run in the background and listening to your latest set of MP3’s, set your mind to one thing only. If you don’t you’ll only drain out your batteries before anything gets completed!
  10. Go easy on the PC demands– The more you demand from your PC. Passive activities like email and word processing consume much less power than gaming or playing an HD movie. If you’ve got a single battery charge – pick your priorities wisely.
  11. Turn off the autosave function- MS-Word’s and Excel’s autosave functions are great, but because they keep saving regular intervals, they make your hard drives spin more. Turn this feature off whenever you are on your batter, but you have to make sure your work is saved when your battery dies.
  12. Lower the graphics use- You can do this by changing the screen resolution and shutting off fancy graphic drivers. Graphics cards (video cards) use as much or more power today as hard disks.

Read More...

04 June 2010

0 How to Protect Laptop Battery for more battery Life on the go

Here are some tips to extend your laptop battery charge while you are on your battery

  1. Adjust the brightness of your screen– Now-a-days, most laptops come with the ability to adjust the brightness of your screen. Some even come with ways to modify CPU and cooling performance. Cut them down to the lowest level you can tolerate. Remember always there is a trade off between battery life and performance.
  2. Terminate unnecessary programs running in the background- For Example, chat clients and mail clients may be active and signed in all the time, you may not even use it. Update services for the applications installed in your machine is an overhead when you are on your battery. Shut down everything that isn’t crucial when you’re on battery.
  3. Reduce usage of external devices– USB devices (including your mouse and external keyboard, music players), drain down your laptop battery. Remove all the unnecessary external devices when not in use. If you had plugged in a music player (say, iPod), it may be getting charged by quickly wiping out the charge on your laptop battery.
  4. Use Wired LAN instead of WiFi– Whenever you are on your battery and wired LAN is available, then use the wired one instead WiFi. This will save a lot for you.
  5. Turn off Bluetooth and WiFi– Bluetooth and WiFi drains down your laptop battery quickly. So whenever you are on battery, turn off Bluetooth and WiFi if it’s not necessary.
  6. Remove the optical disks from drives- Even having a disk in the drive can be power consuming, they spin, taking power, even when they are not actively being used. So when you are on your battery, remove the optical disks from the drives if it’s not necessary.
  7. Run off a HDD rather than Optical disks– As CD or DVD or any other optical drives are more of power consuming than hard drive, wherever possible, try to run on virtual drives using programs virtual drive applications.
  8. Set up and optimize your power options– Go to ‘Power Options’ in your windows control panel (In a windows machine) and set it up so that power usage is optimized (Select the ‘max battery’ for maximum effect). Keep in mind that, always there is a trade off between battery life and performance.
  9. Avoid multitasking to a possible extent– Do one thing at a time when you’re on battery. Rather than working on a spreadsheet, letting your email client run in the background and listening to your latest set of MP3’s, set your mind to one thing only. If you don’t you’ll only drain out your batteries before anything gets completed!
  10. Go easy on the PC demands– The more you demand from your PC. Passive activities like email and word processing consume much less power than gaming or playing an HD movie. If you’ve got a single battery charge – pick your priorities wisely.
  11. Turn off the autosave function- MS-Word’s and Excel’s autosave functions are great, but because they keep saving regular intervals, they make your hard drives spin more. Turn this feature off whenever you are on your batter, but you have to make sure your work is saved when your battery dies.
  12. Lower the graphics use- You can do this by changing the screen resolution and shutting off fancy graphic drivers. Graphics cards (video cards) use as much or more power today as hard disks.

Keep the following things in mind, if you want to squeeze out some extra battery juice on the go.

  1. Perform disk defragmentation regularly- The faster your hard drive works the lesser drains your battery. Make your hard drive as efficient as possible by performing disk defragmentation regularly. (But not while it’s on battery of course!) Mac OSX is better built to handle fragmentation so it may not be very applicable for Apple systems.
  2. Add more RAM- This will allow you to process more with the memory your laptop has, rather than relying on virtual memory. Virtual memory results in hard drive use, and is much less power efficient. Note that adding more RAM will consume more energy, so this is most applicable if you do need to run memory intensive programs which actually require heavy usage of virtual memory.
  3. Keep the battery contacts clean- Clean your battery’s metal contacts every couple of months with a cloth moistened with rubbing alcohol. This keeps the transfer of power from your battery more efficient.
  4. Take care of your battery- Exercise the Battery. Do not leave a charged battery dormant for long periods of time. Once charged, you should at least use the battery at least once every two to three weeks. Also, do not let a Li-On battery completely discharge. (Discharging is only for older batteries with memory effects)
  5. Prevent the Memory Effect- If you’re using a very old laptop, you’ll want to prevent the ‘memory effect’ – Keep the battery healthy by fully charging and then fully discharging it at least once every two to three weeks. Exceptions to the rule are Li-Ion batteries (which most laptops have) which donot suffer from the memory effect.
  6. Hibernate, not standby or sleep – Although placing a laptop in standby mode saves some power and you can instantly resume where you left off, it doesn’t save anywhere as much power as the hibernate function does. Hibernating a PC will actually save your PC’s state as it is, and completely shut itself down.
  7. Keep operating temperature down- Your laptop operates more efficiently when it’s cooler. Clean out your air vents with a cloth or keyboard cleaner.
  8. Consider buying Netbook- If you have nothing to do with your laptop other than chatting, browsing or watching a movie, then consider buying a notebook. Now-a-days Taiwan giant ASUS’s prestigious EeePC netbook is coming with more than 14 hrs backup.
Read More...