Wednesday, 13 December 2017

sentiment dataset

Saturday, 9 December 2017

Mesos cluster on Vagrant

Install Mesos locally

Install Virtualbox:
  sudo apt-get install virtualbox

Install Vagrant:
  sudo dpkg -i /home/wasit/Downloads/vagrant_2.0.1_x86_64.deb

Install plugin:
  sudo vagrant plugin install vagrant-hostmanager

  cp VagrantConfig-1m-1a-1p.yaml VagrantConfig.yaml
  vagrant up

vagrant halt
vagrant destroy -f

vagrant suspend
vagrant resume


Thursday, 7 December 2017

DO ssh key

Tuesday, 5 December 2017

ETL review




Friday, 24 November 2017

Install legacy boot in previously installed UEFI

Here's what you can do:

1. Go into BIOS F1 setup -> "Restart" menu tab -> Set "OS Optimized Defaults" to "Disabled.
2. Press F9 to Setup Defaults.
3. Tab over to the "Startup" menu tab and verify the following settings:
- "UEFI/Legacy Boot" set to [Both]
- "UEFI/Legacy Boot Priority" set to [UEFI First]
- "CSM Support" set to [Yes]
4. Press F10 to Save and Exit the BIOS.
5. Boot to the Windows 10 installation media. In my case, I'm using a CD/DVD to USB.
6. Windows 10 should then see your NVMe drive and be able to install the OS cleanly.

Friday, 27 October 2017

GAN network

Sunday, 1 October 2017

Jupyter Latex in Thai



Monday, 28 August 2017

openvpn note

curl -fsSL -o



openvpn client config
1. create a config file from server [uname].ovpn
2. rename and save to $ cat /etc/openvpn/[uname].conf
3. edit /etc/default/openvpn to

Tuesday, 11 July 2017

set up Jupyter on Ubuntu

sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get install python-pip
pip install --upgrade pip
install jupyter
jupyter notebook --no-browser --port 8888 --ip='*'

Thursday, 11 May 2017

simple Django deployment on Digital Ocean

This is a basic deployment, installing all packages. I next time I should use docker compose. The simple deployment are following steps:

  1. create a Droplet from original Ubuntu 16.04
  2. sudo apt-get update
  3. sudo apt-get install build-essential libssl-dev libffi-dev python-dev
  4. sudo apt-get -y install python-pip

Sunday, 9 April 2017

แนะนำ database MariaDB (แมวน้ำ) เปรียบที่ยบเทียบประสิทธิภาพและนโยบายแล้วระหว่างค่ายหมอดูหรือช้างแล้ว แนะนำแมวน้ำคับ สามารถต่อ cluster ได้ด้วย galera cluster ค่ายใหญ่เช่น google facebook สนับสนุนแมวน้ำตั้งแต่ช่วง 2013 ชุมชนของค่ายแมวน้ำดูแข็งแรงและมีการพัฒนาต่อเนื่องทั้งใน github และ event network ต่างๆ

Monday, 13 March 2017

lambda testing

please check github

create EC2 for package preparation
sudo apt-get update
sudo apt-get install python-pip python-dev build-essential
pip install --upgrade pip
pip install virtualenv
virtualenv env
source env/bin/activate
pip install -r requirements.txt
cd $VIRTUAL_ENV/lib/python2.7/site-packages
zip -r9 ~/ *
cd $VIRTUAL_ENV/lib64/python2.7/site-packages
zip -r9 ~/ *
zip -g ~/


import numpy as np
def myfunction(event=None, context=None):
                'My name is Wasit', 'Rule the world!!',
                'get data, process and turn on the switch',
                'get data and predict your future', 'keep coding',
        return np.random.randint(0, len(mylist))

if __name__ == "__main__":
        print myfunction()