Wednesday, 11 January 2017

Export Bash Variable for Perl Command One-liner

How to use shell variables in perl command call in a bash shell script?

mydate=10/10/2012
export mydate
perl -e 'print "my date is $ENV{mydate}\n"'

Parameter Expansion Explained

An introduction to parameter expansion in Bash (Recommended)

Parameter Expansion

Shell Parameter Expansion

Thursday, 22 December 2016

Modifiy Python matplotlib Backend Settings

To find the location of configuration file:
>>> import matplotlib
>>> matplotlib.matplotlib_fname()

Edit the matplotlib configuration file:
Modify "backend : tkagg" to "backend : Agg", for example.

More of Customizing matplotlib.