Thursday, February 25, 2016

Disabling Plugins in Jenkins

If a plugin upgrade causes problems, Jenkins may not restart. You'll be welcomed by an error message and a stack trace. Don't panic! Go into your Jenkins plugin directory, list files by date, and then disable the most recent ones: $ cd $JENKINS_HOME/plugins $ ls -ltr *.jpi -rw-r--r--. 1 root root ...

Thursday, February 18, 2016

Big list of files to edit? vim to the rescue (again)

Did you know that you can treat the text under the cursor as a filename, and open that up for editing right in vim? Here's how: gf will open the filename under the cursor in the current window ^Wf will open it in a split window ^Wgf will open it in a new wind...

Thursday, February 11, 2016

Today's fortune

Let us not look back in anger or forward in fear, but around us in awareness. — James Thurbe...

Thursday, February 4, 2016

Private methods are collaborators in disguise

Private methods cannot be unit tested, only integration tested through whatever public methods call them. I find this unsettling. I want to unit test private methods, so that I know the public methods are composed of independently verified code. What to do? My first tactic is to avoid private methods....