Category Archives: General

How much time needed to transfer a file

I need to estimate the time required to transfer a file, here below: The file is 1000M and the transfer rate is 100MB/S, Amount to transfer / transfer rate = time to transfer, so 1000/100 = 10 The time needed … Continue reading

Posted in General | Leave a comment

Git: Recover a deleted file

Hi, To get a deleted file from git (whatever the reason could be), there the command: file=”filepath” git checkout $(git rev-list -n 1 HEAD — “$file”)^ — “$file” Source: https://stackoverflow.com/questions/953481/find-and-restore-a-deleted-file-in-a-git-repository

Posted in General | Leave a comment

Postgresql-Get the number of rows affected

You will find a way below to get the number of rows affected by an UPDATE or a DELETE statement.   CREATE FUNCTION update_foobar(id INT, field1 VARCHAR(40)) RETURNS INTEGER LANGUAGE plpgsql AS $$ DECLARE — some variables declarations BEGIN — … Continue reading

Posted in General | Leave a comment

Interesting link 1

http://www.pathname.com/fhs/pub/fhs-2.3.html https://github.com/gleu/pgstats

Posted in General | Leave a comment

shell – code de retour par une commande

Comment lire le code de retour d’une commande comme pwd ? chaque commande executée vous renverra un code d’erreur situé entre 0 et 255. 0 pour opération réussie, sinon toute autre chiffre signifiera qu’une erreur s’est déroulée lors de l’exécution. … Continue reading

Posted in General | Leave a comment

Rien que la vérité sur le développement logiciel en France.

Pourquoi le développement logiciel se porte mal en France

Posted in General | Leave a comment