The relationship between Hirsch-Fye and weak coupling diagrammatic Quantum Monte Carlo methods