Monday, June 18, 2018

VBoxGuestAdditions in vagrant centos



1. sudo yum update && sudo yum -y install kernel-headers kernel-devel

2. manually by downloading the iso file inside VM (e.g. wget) and installing it, e.g.

wget http://download.virtualbox.org/virtualbox/5.0.16/VBoxGuestAdditions_5.0.16.iso -P /tmp

(read only to write permission)
sudo chmod 777 /tmp/VBoxGuestAdditions_5.0.16.iso

sudo mount -o loop /tmp/VBoxGuestAdditions_5.0.16.iso /mnt

(install libraries)
sudo yum -y install gcc
sudo yum install freeglut-devel
sudo yum install mesa*

sudo sh -x /mnt/VBoxLinuxAdditions.run # --keep


forget all the commands above , just download the geerlingguy/centos7

that's it!!! voila

vagrant provisioning thing...

last time I got this error installing docker and docker-compose during the vagrant up.

Ta dang!

config.vm.provision :docker
config.vm.provision :docker_compose


Reference:
https://github.com/leighmcculloch/vagrant-docker-compose

Sunday, June 3, 2018

fluentd the new logging

while working in one of my freelance jobs, I encountered this logging technology fluentd. It is quite interesting, hopefully can learn with this new technology.

I have installed in my centos operating system
curl -L https://toolbelt.treasuredata.com/sh/install-redhat-td-agent3.sh | sh


References:
https://docs.fluentd.org

Friday, May 11, 2018

django

install https://docs.docker.com/compose/django/

startapp
$ docker-compose run web python manage.py startapp map

Thursday, May 10, 2018

Vagrant centos version

I spent almost 3 hours figuring out this issue I have just encountered.

In my personal laptop, I plan to install centos/7 box but I got some weird issue. Something like permission thing, after an hour of fixing still I can't solve my problem.

So, I switch to bento/centos-6-7 and it works. It downloads the box and installed it. However when I try to clone the git repo. I got another issue. something in the git.

so, I downloaded again another box but this time, it is bento/centos7-2. hopefully, it will work now.

Thursday, April 26, 2018

How fast can you work in excel


https://www.facebook.com/7Second.Riddles/videos/200898747368848/UzpfSTEwMDAwMDc5NzczMzA4NjoxNzEwMTY3MzI5MDE5ODQy/

Monday, April 16, 2018

Troubleshooting with nodejs and npm


I got error when I tried to install rasa-nlu-trainer
$npm i -g rasa-nlu-trainer

error:
npm http GET https://registry.npmjs.org/express
npm ERR! Error: SSL Error: CERT_UNTRUSTED
npm ERR!     at ClientRequest.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\request\main.js:409:26)
npm ERR!     at ClientRequest.g (events.js:185:14)
npm ERR!     at ClientRequest.EventEmitter.emit (events.js:88:17)

solution:
You can bypass https using below commands:
npm config set strict-ssl false

reference:
https://stackoverflow.com/questions/21855035/ssl-error-cert-untrusted-while-using-npm-command


-----------------------------------------------------

To update nodejs and npm:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs



-----------------------------------------------------

"/usr/bin/env: node: No such file or directory"


solution:
ln -s /usr/bin/nodejs /usr/bin/node

free online comma separating tool

https://delim.co/#