I am often interrupted by phone calls, quotes for sale on more technical issues, project managers ask me about the possibilities and time limits, and junior developers ask for help in solving problems.
I found the following, although not as ideal, as being able to close the office door and stay alone for several hours in a row to be most effective:
Install the Firefox LeechBlock add-on and add the most frequently used websites to it. You can set a time limit (i.e. 5 minutes every two hours) so that you do not completely close yourself.
Wear headphones when working in the cab or when busy.
Put your phone on do not disturb.
Disconnect your mail client and open it only at a certain time (i.e. 11am, 3pm).
Ask staff to see you only at certain times as a courtesy (i.e. 11am, 3pm), but say that you will still be available for emergencies.
Group as many similar tasks as possible (i.e., complete maintenance tasks from 4:00 p.m. to 5:00 p.m. every day) and leave the rest of the day to work on the project.
This is not perfect, but it is the best solution I have found.
source share