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

Monday, March 26, 2018

Install Python 3 in Ubuntu


if add-apt is not found,

sudo: add-apt-repository: command not found
sudo apt-get install software-properties-common python-software-properties
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update


sudo add-apt-repository ppa:jonathonf/python-3.6



I don't know my previous post above if its totally working on how to install python 3.6.
But here, I just tested it and obviously it works.

sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt-get update
sudo apt-get install python3.6

Wednesday, March 21, 2018

Inheriting a view without overriding the original view

the solution is to add

<field name="mode">primary</field> 
that's it! I don't know who created odoo but it's hard to get the right answer because of less documentation.


https://www.odoo.com/forum/help-1/question/inheriting-a-view-without-overriding-the-original-view-solved-85762

Monday, March 19, 2018

Installing nodejs


curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs




updated:
I just installed nodejs and npm in a newly created vm.
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-16-04



update: 7/30/2018
Alternatively, for Node.js 10:
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - 
sudo apt-get install -y nodejs

free online comma separating tool

https://delim.co/#