2019년 8월 26일 월요일

Python (numpy, scipy) Tips

(1) combine two arrays into a 2-column array  :
       Usually in matplotlib and numpy data is stored as two-column array such as
         x-axis is dat[:,0] and y-axis is dat[:,1].
       To combine existing x-array and y-array into this form, use

       dat =  np.column_stack([x,y])
 

2019년 4월 8일 월요일

Restart vmwave(open-vm-tools) in linux

When the VMware client does not change its window size automatically,
it could be the vmware tools has not started.
In that case, use

systemctl restart open-vm-tools.service

2019년 2월 6일 수요일

Two versions of rename in linux

  • The “Perl” version, with syntax rename 's/^fgh/jkl/' fgh*
  • The util-linux version, with syntax rename fgh jkl fgh*