Wednesday 13 December 2017

sentiment dataset

https://archive.ics.uci.edu/ml/datasets/Sentiment+Labelled+Sentences

Saturday 9 December 2017

Mesos cluster on Vagrant

Install Mesos locally

Install Virtualbox:
  sudo apt-get install virtualbox

Install Vagrant:
  https://www.vagrantup.com/downloads.html
  sudo dpkg -i /home/wasit/Downloads/vagrant_2.0.1_x86_64.deb

Install plugin:
  sudo vagrant plugin install vagrant-hostmanager

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

Remove:
vagrant halt
vagrant destroy -f

Sleep:
vagrant suspend
vagrant resume


ref:
  https://github.com/dcos/dcos-vagrant#setup
  https://github.com/dcos/dcos-vagrant/blob/master/docs/deploy.md

Thursday 7 December 2017

DO ssh key

https://www.digitalocean.com/community/tutorials/how-to-use-ssh-keys-with-putty-on-digitalocean-droplets-windows-users#setting-up-an-ssh-session-with-ssh-keys-in-putty

Tuesday 5 December 2017

ETL review

Spark:
https://youtu.be/Zb9YW8XjxnE?t=32m22s

Talend:
https://www.talend.com/resources/webinars/talend-open-studio-for-big-data-for-dummies/?aliId=318108320

Pentaho:
https://talendexpert.com/pentaho-vs-talend/

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

https://wiseodd.github.io/techblog/2016/09/17/gan-tensorflow/

Sunday 1 October 2017

Jupyter Latex in Thai


\usepackage[thai]{babel}


  • https://www.ctan.org/tex-archive/language/thai/thailatex
  • https://github.com/jgm/pandoc/releases/tag/1.19.2.1

Monday 28 August 2017

openvpn note

docker
curl -fsSL get.docker.com -o get-docker.sh
sh get-docker.sh

server
https://github.com/kylemanna/docker-openvpn

client
https://askubuntu.com/questions/229800/how-to-auto-start-openvpn-client-on-ubuntu-cli

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
AUTOSTART="all"
OPTARGS=""
OMIT_SENDSIGS=0

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

-----------init.sh---------
virtualenv env
source env/bin/activate
pip install -r requirements.txt
cd $VIRTUAL_ENV/lib/python2.7/site-packages
zip -r9 ~/lambda.zip *
cd $VIRTUAL_ENV/lib64/python2.7/site-packages
zip -r9 ~/lambda.zip *
cd $VIRTUAL_ENV/..
zip -g ~/lambda.zip main.py

-----------requirements.txt---------
numpy==1.12.0

-----------requirements.txt---------
import numpy as np
def myfunction(event=None, context=None):
        mylist=[
                '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()