Tuesday, June 19, 2018

Make sure that `gem install libv8 -v '3.16.14.19' --source 'https://rubygems.org/'` succeeds before bundling.

This happened on Mac OS 10.10.5. I needed a specific version of libv8, so I used the -v flag in gem install.

Resolution


gem install libv8 -v 3.16.14.19 -- --with-system-v8
bundle config build.libv8 --with-system-v8


Monday, June 18, 2018

SSL Notes

git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
./letsencrypt-auto --apache --rsa-key-size 4096


./letsencrypt-auto --apache -d example.com -d www.example.com -d foo.example.com -d bar.example.com -d baz.example.com


SSL with Let's Encrypt in Apache

Monday, April 23, 2018

Skill vs Challenge

When you work on improving your coding skill, be aware that you will experience these feelings that depends on your current skill level and the challenge level of the problem. Our goal is to be able to take on high challenges at a high skill level so that we can experience the Flow.

Thursday, March 01, 2018

Installing Graphicsmagick on Mac

cd /usr/local/src
curl --remote-name --location ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/GraphicsMagick-1.3.27a.tar.gz

tar -xzvf GraphicsMagick-1.3.27a.tar.gz
cd GraphicsMagick-1.3.27a

./configure CC=clang \
  LDFLAGS="-L/usr/local/libjpeg/lib -L/usr/local/libpng/lib -L/usr/local/libtiff/lib" \
  CPPFLAGS="-I/usr/local/libjpeg/include -I/usr/local/libpng/include -I/usr/local/libtiff/include" \
  --prefix=/usr/local/mac-dev-env/graphicsmagick-1.3.27a
make
sudo make install

sudo ln -s mac-dev-env/graphicsmagick-1.3.27a /usr/local/graphicsmagick


echo 'export PATH=/usr/local/graphicsmagick/bin:$PATH' >> ~/.bash_profile

source ~/.bash_profile

gm version

Reference

Installing graphicsmagick on Mac

Installing phantomjs on Mac 10.10.5

Cliver::Dependency::NotFound: Could not find an executable ["phantomjs"] on your path.

brew install phantomjs

MiniMagick::Invalid: ImageMagick/GraphicsMagick is not installed

brew install graphicsmagick

Error: SHA256 mismatch
Expected: 2f1e960d92ce3b3abd03d06dfec9637dfbd22febf107a536b44f7a47c60659f6
Actual: 7a07d3f7cca5c0b38ca811984ef8da536da32932d68c1a6cce33ec2462b930bf
Archive: /Users/bparanj/Library/Caches/Homebrew/libpng-1.6.34.tar.xz


brew uninstall libpng
brew cleanup -s
brew install graphicsmagick

Sunday, February 25, 2018

Selenium::WebDriver::Error::WebDriverError:

Selenium::WebDriver::Error::WebDriverError:
        Unable to find Mozilla geckodriver. Please download the server from https://github.com/mozilla/geckodriver/releases and place it somewhere on your PATH. More info at https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver
       
Resolution

brew install chromedriver