6/22/2017

github code review UI is so hard to use! Use gerrit

Damn it!

How to integrate gerrit with Jenkins?
An important tool is to use /gerrit_manual_trigger/
If it works, the whole integration should work.

Important things:

  • Gerrit Trigger is setup correctly
  • Additional Behaviors Strategy for choosing what to build: Choosing strategy: Gerrit Trigger
  • Gerrit Project: type and pattern must be set correctly. Plain needs to match exactly the words.
  • To enable email notifications: sudo apt-get install mailutils
Gerrit command:
ssh -p 29418 ec2-34-208-116-181.us-west-2.compute.amazonaws.com gerrit create-account --group "'Non-Interactive Users'" --email reviews@deepmap.ai jenkins

6/09/2017

C++ private pointer member can cause weird segment fault

If an class is allowed to copy and assign (e.g. a proto class), it's better to just assign an instance to the class. For example, the configuration proto. If the class is not allowed to copy and assign, allocate the memory on heap and let some class to take the ownership.

NEVER use a class pointer member to point to some class's member on the stack. It can cause very weird segment fault crash and it's very hard to debug.

6/05/2017

python-photo-tools notes

How to install PIP in MobaXterm

apt-get install python2-imaging
apt-get install python2-pip

python -m pip install Pillow