utarray benchmarking
Week48~52
小筆記
bazel installation on Raspberry Pi
$ sudo apt-get install build-essential openjdk-8-jdk python zip unzip
$ wget https://github.com/bazelbuild/bazel/releases/download/0.19.2/bazel-0.19.2-dist.zip
$ mkdir bazel-0.19.2 && unzip ./bazel-0.19.2-dist.zip -d bazel-0.19.2
$ cd bazel-0.19.2
$ env BAZEL_JAVAC_OPTS="-J-Xms384m -J-Xmx512m" bash ./compile.sh
🍃 Building Bazel from scratch......
🍃 Building Bazel with Bazel.
.WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".
INFO: Analysed target //src:bazel_nojdk (233 packages loaded, 10401 targets configured).
Workaround for VS Code middle click paste.
VS Code在Ubuntu裡滑鼠中鍵的複製貼上功能會造成看程式時的困擾
Issue#49305
It cause a problem when browsing source code in VS code, here is an alternative solution.
Disable middle paste on Xubuntu 18.04
sam@sam-T480s:~$ xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ ETPS/2 Elantech TrackPoint id=12 [slave pointer (2)]
⎜ ↳ ETPS/2 Elantech Touchpad id=11 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Sleep Button id=8 [slave keyboard (3)]
↳ Integrated Camera: Integrated C id=9 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=10 [slave keyboard (3)]
↳ ThinkPad Extra Buttons id=13 [slave keyboard (3)]
sam@sam-T480s:~$ xinput get-button-map 12
1 2 3 4 5 6 7
sam@sam-T480s:~$ xinput set-button-map 12 1 0 3 4 5 6 7
Run it on boot
$ cat <<EOT > ~/bin/mouse_middle_disable.sh
#!/bin/bash
xinput set-button-map 12 1 0 3 4 5 6 7
exit 0
EOT
$ chmode a+x ~/bin/mouse_middle_disable.sh
// add the script to startup session.
$ xfce4-session-settings
utarray benchmarking
Raspberry Pi 2 Model B
(Quad-core Cortex-A7 32bits, 976MB memory, CPU clock is between 600/900MHz)
Intel i5-8250U, Octa-core 64bits 24GB memory, CPU clock is between 400/3400MHz
Element size = 27 bytes