Synaptic scaling in vitro and in vivo