What was your experience? Do you do this repeatedly?
If you generally know what your doing and get stuck on something for more then an hour; walk away. Go for a walk; take a shower; take a nap; play a video game, something not coding. Your mind will work on it in the background and you'll figure it out.
In other words; I'm way to old for that stuff anymore, lol...
If you are fixed bug in night (12am - 06am) it will take almost three time more normal routine (10 am to 06pm). And your next day become non productive day.
Never upgrade kernel, drivers, packages at evening.
Happened several times.
The last one was when I tried copying files using Python. For some reason, it was creating blank copies, i.e. the the copied file had the proper name, but had 0 bytes of data. I also tried using Process and OS utils, none of those worked.
The same syntax, when used from python shell directly, worked perfectly.
Mirko Vukušić
Full(stack|dev|life)
Not as often as giving up at 3am only to find myself solving it in 5 minutes in the morning :)