Mirror iOS device to MacBook

Connect iPhone to your MacBook using a USB cable. Since newer MacBook doesn’t have a USB slot, you’d need the adapter – I’d suggest getting the original Apple adapter as I’ve seen cases where 3rd party cable couldn’t detect the external device

Then, run QuickTime Player > New Movie Recording
In the Record menu, select your iPhone (or name) for the camera

And that’s it!

Password protected zip in MAC

Open the terminal and type this:
Noradilas-MacBook-Pro:$ zip -er Submission.zip Submission

You don’t need to zip (compress) it beforehand. Type the above, it will do everything. It will then, prompt for password, enter whatever password you want to use, retype and that’s all
Enter password:
Verify password:
adding: Submission/ (stored 0%)
adding: Submission/.DS_Store (deflated 93%)
adding: Submission/Group 5/ (stored 0%)

gnuplot

To install on macOS high sierra: https://stackoverflow.com/questions/50147774/installing-gnu-plot-for-macos-high-sierra
https://brew.sh/

xcode-select --install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew search gnuplot
brew options gnuplot
brew install gnuplot --with-qt --with-x11
export PATH=/usr/local/bin:$PATH
export GNUTERM=qt

gnuplot documentation: http://gnuplot.sourceforge.net/docs_5.2/Gnuplot_5.2.pdf

To use dashtype, it’s now different than before (only need linestyle)
set style line 1 lc rgb "#FF0000" lt 1 dashtype solid
set style line 2 lc rgb "#0000FF" lt 2 dashtype 2
set style line 3 lc rgb "#808080" lt 3 dashtype 3
set style line 4 lc rgb "#008000" lt 4 dashtype 4

previously, I would write it as:
#set style line 1 lt rgb "#FF0000" # red
#set style line 2 lt rgb "#0000FF" # blue
#set style line 3 lt rgb "#808080" # grey
#set style line 4 lt rgb "#008000" # green

To force the legend/label to certain number of row
set key above width -8 vertical maxrows 1

git: missing xcrun

Had this problem after the macOS update:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

simply do:
xcode-select --install

that will download and install the xcode (xcrun)
You should be able to do git as usual

Compare PDFs

If you don’t have Adobe Acrobat Pro, here’s a good alternative:
Draftable

It’s an online tool; can also be downloaded
It shows the differences separately so you’d need to use something else if you need to combine the changes

I recompared the files from Draftable on PDF Converter Enterprise 7.2 to combine the differences on one file.
PDF Converter Enterprise 7.2 couldn’t match pages and contents so that was annoying. I had to do chapter by chapter with PDF Converter Enterprise, otherwise, it will compare the pages, which obviously would have different contents/chapter
There might be a way/option that I’m not aware of in PDF Converter Enterprise

PDF Converter Enterprise 7.2 is the one my uni is using to create/split/compare/merge/etc PDF

Oracle Secure Global Desktop

I had this error “Error – SGD Client” Failed to install the SGD Client; I’m using Ubuntu
I didn’t have that problem before; I already had 32 bit dependencies installed

Solution:
sudo apt-get install libstdc++6:i386 libxpm4:i386 libxinerama1:i386 libxcursor1:i386 libxkbfile1:i386 libxt6:i386 libxm4:i386 libxrandr2:i386

It should work now 🙂