Distractions make you dumber than being stoned; you probably can't eliminate them, but you can contain them by structuring the day into repeating offline/online/off-topic rounds and planning concrete deliverables for each focus phase.