0%

Ever spent ages swapping batteries in and out of remote controls to find out which ones still have power in them?
Next time, just try dropping them on a hard surface and see if they bounce.

This is because spent alkaline batteries are more likely to bounce than fresh ones, according to an American electrical engineer whose video demonstrating the phenomenon is becoming an internet sensation.

To test outgassing, Mr Hite dropped a weight on the battery. If there was a build up of pressure, a weight should bounce higher on one than the other. He also drilled holes in the batteries to release this pressure. There was not a 'convincing' difference in the first test, and the bad battery still bounced in the second

In his YouTube video, Lee Hite tests a series of batteries that have expired against a set which have not been used.
He demonstrates that a used battery bounces far higher than one that has only just been taken out of the packet.

A good battery, he explains, contains a gel-like substance which solidifies as the battery discharges its electricity.
While the gel is in a semi-liquid form, it absorbs the energy when the battery hits the surface.

An anti-bounce hammer, which contains an internal core of moving buckshot, works in the same way.
When the gel in the battery has solidified it cannot move and the whole battery bounces, the same way that a solid hammer bounces off a nail.

## 前言

Electron是一个基于Node.js，并拥有一个Chromium「外壳」的桌面应用开发框架。你可以调用所有Node.js和浏览器的API，使用JavaScript，HTML和CSS等Web技术创建原生程序。根据官方的宣传语：「它负责比较难搞的部分，你只需把精力放在你的应用的核心上即可。」

## 安装

Electron可以通过npm install electron来进行安装。在依赖包安装完成后，Electron会开始下载它的「本体」——一个数十MiB大小的压缩包，包含Electron在不同平台下的可执行文件。这一步对于国内的开发者不太友好，因为下载的内容在Amazon云上，访问速度不佳；而且新版的Electron去除了下载进度条，导致即使出现问题，你也无法知晓卡在了哪一步。一种简单的解决方案是通过设定环境变量来使用淘宝源：

Bingo！这正是一个完美的解决方案，之前居然没有想到。使用方法也很简单，需要进行一些设置：