How to make Firefox address bar faster

Firefox’s address bar, also known as the Awesome Bar, stores all sorts of awesome information in a SQLite database. The SQLite database slowly starts getting fragments and the Awesome Bar just isn’t as awesome if it gets all laggy. To solve this, you can vacuum the SQLite database that Awesome Bar used.

Go to Tools, then Error Console. And copy the following:

[code lang=”php”]Components.classes[ “;1” ].getService( Components.interfaces.nsPIPlacesDatabase ).DBConnection.executeSimpleSQL( “VACUUM” );[/code]

And paste and click on Evaluate:

Vaccuming Firefox in Error Console
Vaccuming Firefox in Error Console

The browser probably freezes for a few seconds and the address bar feels faster.

[via MozillaLinks]

How does a gas pump at a petrol station know when the tank is full

How Stuff Works explains how a gasoline pump at a filling station know when the tank is full.

How does a gasoline pump at a filling station know when the tank is full?

Near the tip of the nozzle is a small hole, and a small pipe leads back from the hole into the handle. Suction is applied to this pipe using a venturi. When the tank is not full, air is being drawn through the hole by the vacuum, and the air flows easily. When gasoline in the tank rises high enough to block the hole, a mechanical linkage in the handle senses the change in suction and flips the nozzle off.

Here’s a way to think about it — you’ve got a small pipe with suction being applied at one end and air flowing through the pipe easily. If you stick the free end of the pipe in a glass of water, much more suction is needed, so a vacuum develops in the middle of the pipe. That vacuum can be used to flip a lever that cuts off the nozzle.

The next time you fill up your tank, look for this hole either on the inside or the outside of the tip. (Source: How stuff works)

Now you know.