Away from the top and bottom.
Electrical wiries through floor joist.
Running wire through floor joists.
In canada we have rule 12 514 b that allows the installation of wires on the lower faces of joists if suitably protected.
What our code is not clear on is how close does it need to be to the mechanical protection such as a running board before it is not mechanically protected any longer.
Drill holes with a diameter of no more than one third the depth of the joist staying 2 in.
I remember reading somewhere concerning rules about drilling though floor joists but i can t find it anymore.
From the top and the bottom if it s a dimensional lumber joist.
Although not technically an electrical question it does pertain to electrical installation more than any other forum so i will go ahead and post this here.
Cutting notches and drilling holes in joists as part of any new installation work or a re wire a cable trunking or cable tray sometimes has to pass through an element of building construction such as a floor wall or beam necessitating the formation of a notch or opening in the element.
The best way to install an electrical staple is to put the prongs.
Appears to be a bit of a judgement call.