Vincent Faliès - Artisan Codeur

When you use a docker container, it could be interresting to be with root user.

It can be necessary to install some temporary tools for instance.

To simply you connect to the container with root user (id = 0), type the following command :

docker exec -u 0 -it mycontainer /bin/sh

Continue reading...

Sometimes when you install manually some packages, they are broken and the command

sudo apt --fix-broken install

does not works !

In this case, 2 steps to correct:

  1. Soft correction
sudo apt-get update --fix-missing
sudo dpkg --configure -a
sudo apt-get install -f

If the problem of a bro...

Continue reading...

In development, when you updates records in database through a form, it's very interesting to known what have changed and what have not changed.

If you use Doctrine with entities, these informations are easily to determined. For instance with an user entity :

        $uow = $this->em->getUnitO...

Continue reading...

Git cheat sheet

web Git

With GIT, a great cheat sheet is more efficient than a long text !

Continue reading...

Few easy steps to moving GIT repository content to another repository preserving history

  1. Fetch all of the remote branches and tags to local index:
git fetch origin
  1. Create a new remote on local repository
git remote add new-origin
  1. To push all local branches a...

Continue reading...