Shige's Research Blog

Friday, November 02, 2018

Installing VMware workstation 15 on Manjaro

A few things to notice:

  1. Need to install Linux header files;
  2. Consult the pinned comments here.
A few useful commands:
  • sudo modprobe -a vmw_vmci vmmon
  • sudo vmware-modconfig --console --install-all
  • sudo systemctl enable vmware-networks
  • sudo systemctl start vmware-networks

Thursday, October 18, 2018

Zapcc with Rstan

I use the brms package, which uses the standard R formula syntax to generate Stan code, which gets translated into C++ code by rstan, get compiled and executed. In this process, a optimized C++ compiler can make a big difference.

Here I ran the brms sample code for the spatial simultaneous autoregressive (SAR) sample code using clang++ and zapcc and benchmared the performance (three times):

clang++: 66.89 (lagsar), 49.02 (errorsar)
zapcc: 56.80 (lagsar), 18.43 (errorsar)

Such a performance boost can be achieved by simply switching a compiler!

Saturday, October 13, 2018

Wednesday, July 04, 2018


Data science toolkit for Arch and Arch-based system here.

Monday, April 16, 2018

Scraping HTML tables

A few useful examples:


Thursday, March 08, 2018

How to get county FIPS from state and place names

This post demonstrates how to use the acs package to extract county FIPS from arbitrary combination of state and city names.

For Stata users, the geoinpoly package can extract FIPS from a combination of latitude and longitude coordinates.