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
https://www.odoo.com/forum/help-1/question/inheriting-a-view-without-overriding-the-original-view-solved-85762
<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-04update: 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
Wednesday, March 14, 2018
Setup a vagrant with gui
I have experimented to launch a vagrant using existing VMbox like ubuntu but I was failed to do it. I found this tutorial below.
https://relativkreativ.at/articles/how-to-build-a-vagrant-base-box-from-a-virtualbox-vm
Although, this example is based on centos I'm hoping to manage it in Ubuntu. I got an error in its really frustrating.
So I stop and goes right away to vagrant cloud to find any existing predefined vagrant box.
this one looks promising and will give it a try.
https://app.vagrantup.com/igorbrites/boxes/ubuntu-trusty64-gui
vagrant init igorbrites/ubuntu-trusty64-gui --box-version 0
https://relativkreativ.at/articles/how-to-build-a-vagrant-base-box-from-a-virtualbox-vm
Although, this example is based on centos I'm hoping to manage it in Ubuntu. I got an error in its really frustrating.
So I stop and goes right away to vagrant cloud to find any existing predefined vagrant box.
this one looks promising and will give it a try.
https://app.vagrantup.com/igorbrites/boxes/ubuntu-trusty64-gui
vagrant init igorbrites/ubuntu-trusty64-gui --box-version 0
Linux command
To set new password for root in Ubuntu
> sudo passwd root
To locate a file
find / -name 'pg_hba.conf' 2>/dev/null
To add new user
> sudo adduser --home /home/demo --shell /bin/bash demo
> sudo passwd root
To locate a file
find / -name 'pg_hba.conf' 2>/dev/null
To add new user
> sudo adduser --home /home/demo --shell /bin/bash demo
Subscribe to:
Posts (Atom)
free online comma separating tool
https://delim.co/#
-
In my current company, I'm using Visual Paradigm for my documentation task. If you go there site, you can either download community and ...
-
I spend many days to figure it out my problem in Vagrant. After I posted my question in stackoverflow, nobody is helping me instead they dow...
-
I used KeePass long time ago and until now I'm still using it. It's a great tool to save your password encrypted. At my home, I sa...
