I learned this lesson the hard way too (the running out of diesel lesson).
From now on, 1/4 tank means 0/4. They should of recalibrated those things from factory.
Guess Im cheap, esp at $4/gal.
Oh yeah, it took mine 2 sets of jumper cables going from tow truck (which towed me to diesel station). 1 set on the rigs humongus battery, and 1 on his portable. Tow truck driver kept saying somethings wrong, I said keeeeeeeeeeeeeeeeeeeeeeeep crankin. Eventually she sputtered back to her usual 500 rpm clatter of and idle.
Ive found the best way is to loosen 1st injector rubber line till you see fuel spilling. Then reattach that and move to #2 and so on. By 3 or 4 it usually starts.
For fun, try replacing main fuel filter with it dry and crank.

I did that when I 1st bought it, took a solid 30 min, multiple dead batterys till it lit off. Diesels dont like air in lines, I know that now (and so do you!)