<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kanin Kearpimy on Medium]]></title>
        <description><![CDATA[Stories by Kanin Kearpimy on Medium]]></description>
        <link>https://medium.com/@kaninkearpimy?source=rss-2ce7b61de788------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jiE8WqCi9pNtcfSbhJPq-Q.jpeg</url>
            <title>Stories by Kanin Kearpimy on Medium</title>
            <link>https://medium.com/@kaninkearpimy?source=rss-2ce7b61de788------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 12:15:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kaninkearpimy/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Containerize React and WebAssembly (C++) with Docker]]></title>
            <link>https://kaninkearpimy.medium.com/containerize-react-and-webassembly-with-docker-3fb7fb8fc395?source=rss-2ce7b61de788------2</link>
            <guid isPermaLink="false">https://medium.com/p/3fb7fb8fc395</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[c-programming]]></category>
            <category><![CDATA[webassembly]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Kanin Kearpimy]]></dc:creator>
            <pubDate>Thu, 08 Sep 2022 06:56:06 GMT</pubDate>
            <atom:updated>2022-09-08T12:41:39.031Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*B3wzaW11mfLkElNA159xZg.png" /></figure><p>Javascript is fast with its performance in web development. But for large data manipulation in near-native speed, secure sandbox, and multi-language support to run in the browser, WebAssembly is playing an important role.</p><p>C/C++ with Emscripten is one of the initial languages to implement WebAssembly. It requires a lot of setup to compile C/C++ into WebAssembly. Especially number of team members. To support scalability, the developer experience, containerization is main actor.</p><p>I’m going to walk you through setup Docker for React and WebAssembly (C++) then deploy it to fly.io</p><blockquote>Github: <a href="https://github.com/kanin-kearpimy/React-with-WebAssembly-and-Docker">https://github.com/kanin-kearpimy/React-with-WebAssembly-and-Docker</a></blockquote><h3>Pre-Installation</h3><ol><li><strong>react-create-app</strong> cli package</li><li><strong>Docker cli</strong></li></ol><h3>Outline</h3><ol><li>Create React Application.</li><li>WebAssembly Hello World (C++ Emscripten).</li><li>Integrate Webassembly with React.</li><li>Containerization with Docker and Nginx.</li></ol><h3>1. Create React Application</h3><p>We create react application with webpack bundling here:</p><pre>$ npx create-react-app --typescript react-wasm-docker</pre><p>By default, an app created by command is bind the webpack configuration. We need them to run our compiled webassembly js module. So, I ejected it to a custom few in webpack.</p><pre>$ cd react-wasm-docker<br>$ npm run eject</pre><p>The config/ folder appear and you can go to webpack.config.js to add a couple of lines.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%2528171%252C%2B184%252C%2B195%252C%2B1%2529%26t%3D3024-night%26wt%3Dnone%26l%3Dapplication%252Fjson%26width%3D763%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dfalse%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dmodule.exports%252520%25253D%252520%2528%25257B%25250A%252520%252520%25252F%25252F...otherConfig%25250A%252520%252520%25250A%252520%252520resolve%25253A%252520%25257B%25250A%252520%252520%252520%252520fallback%25253A%252520%25257B%25250A%252520%252520%252520%252520%252520%252520path%25253A%252520false%25252C%25250A%252520%252520%252520%252520%252520%252520fs%25253A%252520false%25250A%252520%252520%252520%252520%25257D%25250A%252520%252520%25257D%25250A%25257D%2529&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%252528171%25252C%2B184%25252C%2B195%25252C%2B1%252529%26t%3D3024-night%26wt%3Dnone%26l%3Dapplication%25252Fjson%26width%3D763%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dfalse%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dmodule.exports%25252520%2525253D%25252520%252528%2525257B%2525250A%25252520%25252520%2525252F%2525252F...otherConfig%2525250A%25252520%25252520%2525250A%25252520%25252520resolve%2525253A%25252520%2525257B%2525250A%25252520%25252520%25252520%25252520fallback%2525253A%25252520%2525257B%2525250A%25252520%25252520%25252520%25252520%25252520%25252520path%2525253A%25252520false%2525252C%2525250A%25252520%25252520%25252520%25252520%25252520%25252520fs%2525253A%25252520false%2525250A%25252520%25252520%25252520%25252520%2525257D%2525250A%25252520%25252520%2525257D%2525250A%2525257D%252529&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/957b8cb01de384c9a7cc1a87269bfa9e/href">https://medium.com/media/957b8cb01de384c9a7cc1a87269bfa9e/href</a></iframe><p>These above lines tell webpack to ignore including path and fs. At this state now our react application should be ready. Next, create webassembly hello world</p><h3>2. WebAssembly Hello World (C++ Emscripten)</h3><p>We can write several supporting languages with WebAssembly such as Rust, Go, C, C++, and even python. The Webassembly itself has its own language similar to assembly language (explain it here will last for another article)</p><p>In <strong>react-wasm-docker </strong>directory, create another sub-directory name webassembly and create my-module.cpp file within it.</p><pre>$ cd react-wasm-docker<br>$ mkdir webassembly</pre><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%2528171%252C%2B184%252C%2B195%252C%2B1%2529%26t%3D3024-night%26wt%3Dnone%26l%3Dapplication%252Fjson%26width%3D763%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dfalse%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%252523include%252520%25253Cemscripten%25252Fbind.h%25253E%25250A%25250Ausing%252520namespace%252520emscripten%25253B%25250Ausing%252520std%25253A%25253Astring%25253B%25250A%25250Aint%252520say_hello%2528%2529%252520%25257B%25250A%252520%252520printf%2528%252522Hello%252520from%252520your%252520wasm%252520module%25255Cn%252522%2529%25253B%25250A%252520%252520return%2525200%25253B%25250A%25257D%25250A%25250Astring%252520hello_wasm%2528%2529%252520%25257B%25250A%252520%252520return%252520%252522Hello%252520this%252520is%252520message%252520return%252520from%252520%252560hello_wasm%2528%2529%252560.%252522%25253B%25250A%25257D%25250A%25250AEMSCRIPTEN_BINDINGS%2528my_module%2529%252520%25257B%25250A%252520%252520function%2528%252522sayHello%252522%25252C%252520%252526say_hello%2529%25253B%25250A%252520%252520function%2528%252522helloWasm%252522%25252C%252520%252526hello_wasm%2529%25253B%25250A%25257D&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%252528171%25252C%2B184%25252C%2B195%25252C%2B1%252529%26t%3D3024-night%26wt%3Dnone%26l%3Dapplication%25252Fjson%26width%3D763%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dfalse%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3D%25252523include%25252520%2525253Cemscripten%2525252Fbind.h%2525253E%2525250A%2525250Ausing%25252520namespace%25252520emscripten%2525253B%2525250Ausing%25252520std%2525253A%2525253Astring%2525253B%2525250A%2525250Aint%25252520say_hello%252528%252529%25252520%2525257B%2525250A%25252520%25252520printf%252528%25252522Hello%25252520from%25252520your%25252520wasm%25252520module%2525255Cn%25252522%252529%2525253B%2525250A%25252520%25252520return%252525200%2525253B%2525250A%2525257D%2525250A%2525250Astring%25252520hello_wasm%252528%252529%25252520%2525257B%2525250A%25252520%25252520return%25252520%25252522Hello%25252520this%25252520is%25252520message%25252520return%25252520from%25252520%25252560hello_wasm%252528%252529%25252560.%25252522%2525253B%2525250A%2525257D%2525250A%2525250AEMSCRIPTEN_BINDINGS%252528my_module%252529%25252520%2525257B%2525250A%25252520%25252520function%252528%25252522sayHello%25252522%2525252C%25252520%25252526say_hello%252529%2525253B%2525250A%25252520%25252520function%252528%25252522helloWasm%25252522%2525252C%25252520%25252526hello_wasm%252529%2525253B%2525250A%2525257D&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/2fcb5dc8e62eb0108965711328dcd0f5/href">https://medium.com/media/2fcb5dc8e62eb0108965711328dcd0f5/href</a></iframe><p>Next, we need a shell script to build our .cpp module to .wasm file. So, I’ll create build.shin the root directory of react-wasm-docker.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YiAuNtM-3cdT27Lgf8G7fw.png" /><figcaption>build.sh</figcaption></figure><p>This bash script will loop through all .cpp extension files in webassembly then compiled them into single js files (with base64 encoded binary wasm). emcc is a frontend for emscripten which optimized our single js files. Then copy all compiled files to src/wasm/</p><ul><li>--bind : enables <a href="https://web.dev/embind/">embind</a>.</li><li>STRICT=1 : ignore the support of deprecated options to build.</li><li>SINGLE_FILE=1 : compile original source into one single js file. originally, it will be one js file and another wasm file.</li><li>ALLOW_MEMORY_GROWTH=1 : allocate memory for wasm module requiring memory. It is possible wasm module to consume memory more than the default of emscripten (16MB by default).</li><li>MALLOC=emmaloc : export malloc function (c++ build-in). JS files can import and use to allocate memory.</li><li>MODULARIZE=1 : compiled js file as a module which we can import as import something from ....</li><li>EXPORT_ES6=1 : turn JS code into JS6 module.</li><li>ENVIRONMENT=web : set the default to be run JS file on web browser. WASM can be imported from both web browser and server (like node).</li></ul><p>We will compile it with emcc docker image by the below command in the root directory of our project.</p><pre>$ docker run --rm -v $(pwd):/src trzeci/emscripten ./build.sh</pre><p><em>Thank you trzeci!</em></p><p>Nowsrc/wasm/ should show my-module.js That is our wasm file to go.</p><h3>3. Integrate Webassembly with React</h3><p>Modify App.ts (or .js) in src/ directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vxbh0jaeLaKaVCO4BXNqHQ.png" /><figcaption>App.ts in /src/</figcaption></figure><p>This file will import wasm all as myModule and console.log in browser console by calling sayHello() from wasm. Moreover, we create button with Hello Wasm text in HTML. If that button is clicked, then it’ll get a text from helloWasm() and set it in the middle of the page.</p><p>Now you can run</p><pre>$ npm start</pre><p>You can go to localhost:[port]. The website should display as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xqvi4cVz95ZFtRcBQqyBxA.png" /><figcaption>locally server running React with loaded wasm file.</figcaption></figure><p>Now the application is running locally. We noticed there are several steps before reaching this point. How can we shorten it for other team members or scale it in the future? That is where containers come in.</p><h3>4. Containerization with Docker and Nginx</h3><p>At the root of our application, creating Dockerfile with instructions below.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%2528171%252C%2B184%252C%2B195%252C%2B1%2529%26t%3Dhopscotch%26wt%3Dnone%26l%3Ddockerfile%26width%3D763%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dfalse%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3DFROM%252520trzeci%25252Femscripten%25253A1.39.17-upstream%252520AS%252520wasm%25250AWORKDIR%252520%25252F%25250ACOPY%252520build.sh%252520.%25252F%25250ACOPY%252520webassembly%25252F%252520.%25252Fwebassembly%25252F%25250ARUN%252520.%25252Fbuild.sh%25250A%25250AFROM%252520node%25253Alatest%252520AS%252520codebase%25250AWORKDIR%252520%25252Fbuild%25250ACOPY%252520package.json%252520package-lock.json%252520.%25252F%25250ARUN%252520npm%252520install%25250ACOPY%252520.%252520.%25250ACOPY%252520--from%25253Dwasm%252520%25252Fsrc%25252Fwasm%25252F%252520.%25252Fsrc%25252Fwasm%25252F%25250ARUN%252520npm%252520run%252520build%25250A%25250AFROM%252520nginx%25253A1.18-alpine%25250ACOPY%252520nginx.conf%252520%25252Fetc%25252Fnginx%25252Fnginx.conf%25250ACOPY%252520--from%25253Dcodebase%252520%25252Fbuild%25252Fbuild%25252F%252520%25252Ffrontend%25252Fbuild%25252F%25250AEXPOSE%2525208080&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%252528171%25252C%2B184%25252C%2B195%25252C%2B1%252529%26t%3Dhopscotch%26wt%3Dnone%26l%3Ddockerfile%26width%3D763%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dfalse%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3DFROM%25252520trzeci%2525252Femscripten%2525253A1.39.17-upstream%25252520AS%25252520wasm%2525250AWORKDIR%25252520%2525252F%2525250ACOPY%25252520build.sh%25252520.%2525252F%2525250ACOPY%25252520webassembly%2525252F%25252520.%2525252Fwebassembly%2525252F%2525250ARUN%25252520.%2525252Fbuild.sh%2525250A%2525250AFROM%25252520node%2525253Alatest%25252520AS%25252520codebase%2525250AWORKDIR%25252520%2525252Fbuild%2525250ACOPY%25252520package.json%25252520package-lock.json%25252520.%2525252F%2525250ARUN%25252520npm%25252520install%2525250ACOPY%25252520.%25252520.%2525250ACOPY%25252520--from%2525253Dwasm%25252520%2525252Fsrc%2525252Fwasm%2525252F%25252520.%2525252Fsrc%2525252Fwasm%2525252F%2525250ARUN%25252520npm%25252520run%25252520build%2525250A%2525250AFROM%25252520nginx%2525253A1.18-alpine%2525250ACOPY%25252520nginx.conf%25252520%2525252Fetc%2525252Fnginx%2525252Fnginx.conf%2525250ACOPY%25252520--from%2525253Dcodebase%25252520%2525252Fbuild%2525252Fbuild%2525252F%25252520%2525252Ffrontend%2525252Fbuild%2525252F%2525250AEXPOSE%252525208080&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ed968bb849a73d00cb446a22e644da44/href">https://medium.com/media/ed968bb849a73d00cb446a22e644da44/href</a></iframe><p>This docker file will multi-state build our project sequently.</p><ul><li>Starting with building web assembly in our webassembly.</li><li>Next, move all wasm files to src/wasmand build all React applications.</li><li>Last, copy all files from the previous step (React and WebAssembly) to Nginx (Revert proxy server for web application).</li></ul><p>If you noticed, we involve Nginx in the last step, so we need the Nginx configuration file. Let creating nginx.conf at the root of the application.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%2528171%252C%2B184%252C%2B195%252C%2B1%2529%26t%3Dhopscotch%26wt%3Dnone%26l%3Dnginx%26width%3D763%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dfalse%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Duser%252520nginx%25253B%25250Aworker_processes%2525201%25253B%25250A%25250Aevents%252520%25257B%25250A%252520%252520%252520%252520worker_connections%2525201024%25253B%25250A%25257D%25250A%25250Ahttp%252520%25257B%25250A%252520%252520%252520%252520include%252520%25252Fetc%25252Fnginx%25252Fmime.types%25253B%25250A%252520%252520%252520%252520server%252520%25257B%25250A%252520%252520%252520%252520%252520%252520%252520%252520listen%2525208080%25253B%25250A%252520%252520%252520%252520%252520%252520%252520%252520root%252520%25252Ffrontend%25252Fbuild%25253B%25250A%252520%252520%252520%252520%252520%252520%252520%252520index%252520index.html%25253B%25250A%25250A%252520%252520%252520%252520%252520%252520%252520%252520location%252520%25252F%252520%25257B%25250A%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520%252520try_files%252520%252524uri%252520%25252Findex.html%25253B%25250A%252520%252520%252520%252520%252520%252520%252520%252520%25257D%25250A%252520%252520%252520%252520%25257D%25250A%25257D&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%252528171%25252C%2B184%25252C%2B195%25252C%2B1%252529%26t%3Dhopscotch%26wt%3Dnone%26l%3Dnginx%26width%3D763%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dfalse%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Duser%25252520nginx%2525253B%2525250Aworker_processes%252525201%2525253B%2525250A%2525250Aevents%25252520%2525257B%2525250A%25252520%25252520%25252520%25252520worker_connections%252525201024%2525253B%2525250A%2525257D%2525250A%2525250Ahttp%25252520%2525257B%2525250A%25252520%25252520%25252520%25252520include%25252520%2525252Fetc%2525252Fnginx%2525252Fmime.types%2525253B%2525250A%25252520%25252520%25252520%25252520server%25252520%2525257B%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520listen%252525208080%2525253B%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520root%25252520%2525252Ffrontend%2525252Fbuild%2525253B%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520index%25252520index.html%2525253B%2525250A%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520location%25252520%2525252F%25252520%2525257B%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520try_files%25252520%25252524uri%25252520%2525252Findex.html%2525253B%2525250A%25252520%25252520%25252520%25252520%25252520%25252520%25252520%25252520%2525257D%2525250A%25252520%25252520%25252520%25252520%2525257D%2525250A%2525257D&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8c7ec7ad6fdd849144b69e44549e42e2/href">https://medium.com/media/8c7ec7ad6fdd849144b69e44549e42e2/href</a></iframe><p>To reduce size of docker image and skip unnecessary files. We need .dockerignore</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcarbon.now.sh%2Fembed%3Fbg%3Drgba%2528171%252C%2B184%252C%2B195%252C%2B1%2529%26t%3Dhopscotch%26wt%3Dnone%26l%3Ddockerfile%26width%3D763%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dfalse%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%2525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dnode_modules%25250ADockerfile%25250A.dockerignore%25250A.git%25250A.gitignore%25250Anpm-debug.log&amp;display_name=Carbon&amp;url=https%3A%2F%2Fcarbon.now.sh%2F%3Fbg%3Drgba%252528171%25252C%2B184%25252C%2B195%25252C%2B1%252529%26t%3Dhopscotch%26wt%3Dnone%26l%3Ddockerfile%26width%3D763%26ds%3Dtrue%26dsyoff%3D20px%26dsblur%3D68px%26wc%3Dtrue%26wa%3Dfalse%26pv%3D56px%26ph%3D56px%26ln%3Dfalse%26fl%3D1%26fm%3DHack%26fs%3D14px%26lh%3D133%252525%26si%3Dfalse%26es%3D2x%26wm%3Dfalse%26code%3Dnode_modules%2525250ADockerfile%2525250A.dockerignore%2525250A.git%2525250A.gitignore%2525250Anpm-debug.log&amp;image=https%3A%2F%2Fcarbon.now.sh%2Fstatic%2Fbrand%2Fbanner.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;scroll=auto&amp;schema=carbon" width="1024" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0065afba47f7966b0e952030b454ee76/href">https://medium.com/media/0065afba47f7966b0e952030b454ee76/href</a></iframe><p>Everything is all set. We are ready to build our docker image and run it!</p><p>Build docker image</p><pre>docker build -t react-wasm-docker .</pre><p>After the image is ready run it!</p><pre>docker run --name react-wasm-docker-container -p 8080:8080 react-wasm-docker</pre><p>Now you can go to localhost:8080 The result page show appears below!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xqvi4cVz95ZFtRcBQqyBxA.png" /><figcaption>Running React and loaded wasm file with Docker container.</figcaption></figure><p>Although That’s all for everything, We have further improvement such as</p><ul><li>WebAssembly is now locate in same repository of React. If project grow bigger, it would be harder to handle. We can implement <strong>Monorepo</strong> architecture to split them out.</li><li>This is just a setup project. I’ll apply it in a real project like Image Processing/Computer Vision/Microservices.</li></ul><blockquote>All codebase is at Github: <a href="https://github.com/kanin-kearpimy/React-with-WebAssembly-and-Docker">https://github.com/kanin-kearpimy/React-with-WebAssembly-and-Docker</a></blockquote><p><strong>Reference</strong></p><ul><li><a href="https://web.dev/emscripten-npm/">https://web.dev/emscripten-npm/</a></li><li><a href="https://stackoverflow.com/questions/73579436/unable-to-import-compiled-javascript-file-from-emscripten-for-webassembly-c-w/73586462#73586462">https://stackoverflow.com/questions/73579436/unable-to-import-compiled-javascript-file-from-emscripten-for-webassembly-c-w/73586462#73586462</a></li></ul><p>#Webassembly #Docker #Containerization #React #Nginx</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3fb7fb8fc395" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microfrontend — Build simple e-commerce with Piral Framework]]></title>
            <link>https://kaninkearpimy.medium.com/microfrontend-build-simple-e-commerce-with-piral-framework-3fb111437cf0?source=rss-2ce7b61de788------2</link>
            <guid isPermaLink="false">https://medium.com/p/3fb111437cf0</guid>
            <category><![CDATA[micro-frontends]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[piral]]></category>
            <category><![CDATA[vue]]></category>
            <dc:creator><![CDATA[Kanin Kearpimy]]></dc:creator>
            <pubDate>Mon, 01 Nov 2021 15:06:43 GMT</pubDate>
            <atom:updated>2021-11-02T11:56:37.042Z</atom:updated>
            <content:encoded><![CDATA[<h3>Microfrontend — Build simple e-commerce with Piral Framework</h3><blockquote>Github: <a href="https://github.com/kanin-kearpimy/Piral-Microfrontend-React-and-Vue">https://github.com/kanin-kearpimy/Piral-Microfrontend-React-and-Vue</a></blockquote><h3>Introduction</h3><p>Nowadays software applications are required a fast development process with less complexity. Since Monolith to Microservice mostly focuses on the Backend aspect. How can we ensure more efficient development with a larger application? That is where <strong>Microfrontend</strong> comes to fit it.</p><p>Microfrontend is an architectural style of software development. It can make significant benefit on those below:</p><ul><li><strong>Incremental Upgrade:</strong> New code is able to build without affecting to old one.</li><li><strong>Simple, Decoupled Codebases:</strong> Whole large codebases into small chunks (team).</li><li><strong>Independent Development</strong>: Each team can develop without relying heavily on others.</li><li><strong>Autonomous Teams</strong>: Full ownership of the team (Vertical-oriented development).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gsPqu9gvhYVSSujaeRBdyw.png" /><figcaption><a href="https://martinfowler.com/articles/micro-frontends.html">https://martinfowler.com/articles/micro-frontends.html</a></figcaption></figure><h3>Piral Framework</h3><p>Piral is a Javascript framework focused on Microfrontend.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nN90eG14sginW2vnDuA_wg.jpeg" /><figcaption><a href="https://docs.piral.io/guidelines/tutorials/01-introduction">https://docs.piral.io/guidelines/tutorials/01-introduction</a></figcaption></figure><p>Piral is composed of 3 main components.</p><ul><li><strong>App Shell:</strong> Comprehensive structure centralizes all of Pilet (team) in one place.</li><li><strong>Pilet:</strong> Feature module owns my independent team.</li><li><strong>Feed Service:</strong> Command center to control of App Shell and Pilet version, Assets, Rules, and etc. You can think of it as a webserver</li></ul><h3>Application Architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*yYi5kUNRxJ2egb07aFF3zw.png" /><figcaption>Two pilets with independent teams under app shell centralization</figcaption></figure><p>In this project, we will build up a mini-eCommerce with a product list and cart. There are 3 teams;</p><ul><li>APP-SHELL team: handle centralizing stuffs-relate such as share-layout, authentication.</li><li>Pilet-1 (React) team: create product list, product card with detail. Integrating buy-button from Pilet-2 team.</li><li>Pilet-2 (Vue) team: build up cart and buy button to collect request from user-buying</li></ul><h3>Hand-on</h3><p>Pre-install:</p><ul><li>Node Package Management (NPM)</li><li>NodeJS</li><li>Register to Piral Cloud for feed-service (<a href="https://www.piral.cloud/">https://www.piral.cloud/</a>)</li></ul><p><strong>Installation</strong></p><p>To install Piral please following below in your terminal/command prompt</p><pre>// install piral as global package<br>npm i piral-cli -g</pre><pre>// check version and status<br>piral --version</pre><p><strong>Create APP-SHELL team</strong></p><pre>piral new --target app-shell</pre><p>After installing complete, navigate terminal to app-shell folder and run up server.</p><pre>cd app-shell/</pre><pre>// run up app-shell team<br>piral debug</pre><p>Then go to <a href="http://localhost:1234/">http://localhost:1234</a> in your web browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jtEoMgjcuK5galJRbQmQ0Q.png" /><figcaption>default piral webpage</figcaption></figure><p>Go to /src/layout.tsx in your app-shell folder and change code as down below. We are customizing the Layout (main container) and Menu for our mini-eCommerce</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3145b44a96c35521e8a52549257663d7/href">https://medium.com/media/3145b44a96c35521e8a52549257663d7/href</a></iframe><p>Go to <a href="http://localhost:1234/">http://localhost:1234</a> to see update</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e15vMWe2jogI_eq5jZ7jTQ.png" /><figcaption><a href="http://localhost:1234/">http://localhost:1234</a></figcaption></figure><p>Piral has build default layout for app-shell in “layout.tsx”. Before we go, let open “index.tsx” and modify your “feedUrl” to be current feed following your “Piral Cloud”. We’ll use it as Feed-Service of whole project.</p><blockquote>Please check <a href="https://docs.piral.io/guidelines/tutorials/03-publishing-pilets">https://docs.piral.io/guidelines/tutorials/03-publishing-pilets</a> to create your feed-service in Piral cloud</blockquote><pre>const feedUrl = &lt;your feed-service url from your piral cloud&gt;;</pre><p>Right now, we are all set. We have to build up an emulator of app-shell for Pilet creation. Run build script below. (Make sure you kill Piral debug process if you use same terminal)</p><pre>piral build</pre><p>There will be /dist appearing in app-shell folder.</p><p><strong>Create PILET-1 (React) team</strong></p><p>Now navigate back one level from app-shell folder and create pilet-1 team.</p><pre>cd ..<br>pilet new app-shell/dist/emulator/app-shell-1.0.0.tgz --target pilet-1</pre><p>It will be another folder name “pilet-1” appearing. navigating into it and run up a server for our Pilet-1</p><pre>cd pilet-1</pre><pre>// run up debug<br>pilet debug</pre><p>Result</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hhQxdouBKz--J7v_yXhCRg.png" /><figcaption>Pilet-1 in web browser</figcaption></figure><p>Pilet-1 will handle overview of product such as pull product data (mock), design product card.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*JMOlAaHAjWKUHIYhy33AvQ.png" /><figcaption>Pilet-1 Component</figcaption></figure><p>Let create new file “ProductPage.tsx” in /src folder. This will handle Produc page and collect ProductCard as well. by receiving product data from <strong>index.tsx</strong> to display.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4e9931373e33bbdd7fe47b5cf1b14ac3/href">https://medium.com/media/4e9931373e33bbdd7fe47b5cf1b14ac3/href</a></iframe><p>Create another file name “ProductCard.tsx” in /src folder to handle product detail.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5e1b836afa29ed5c941d89d783dbb89b/href">https://medium.com/media/5e1b836afa29ed5c941d89d783dbb89b/href</a></iframe><p>If you noticed, we pass “buyBtn” from parent because it should be “called from another team”.</p><p>Let get back to /src/index.tsx and modify code following</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1fc1de4456c018c76fac45bb77f23574/href">https://medium.com/media/1fc1de4456c018c76fac45bb77f23574/href</a></iframe><p>If you noticed in “<strong>setup()</strong>” function which is the main function of Pilet. there are “<strong>registerTile()</strong>” which mean inserting any component into “APP-SHELL main layout”. Following our code. We’re inserting “<strong>&lt;ProductPage /&gt;</strong>” into our “APP-SHELL”</p><p>Right now the <a href="http://localhost:1234/">http://localhost:1234/</a> should be like.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1x52CS2-6fVC_We8ukJ5WQ.png" /><figcaption>pilet-1 http://localhost:1234</figcaption></figure><p>We have a couple of simple card with a product detail. But “buy-button” is not displayed! Stay tuned we are going to create it right away.</p><p><strong>Upgrade app-shell for Vue compile.</strong></p><p>Piral support react-typescript as main recommended framework. To use other framework like Vue. We have to <strong>convert </strong>vue to complied js file and loaded to vue. We will use installable package name <strong>piral-vue.</strong></p><pre>// navigate to app-shell folder<br>cd app-shell</pre><pre>// pre-install for vue<br>npm install vue</pre><pre>// install package<br>npm install piral-vue</pre><p>Then import <strong>index.tsx</strong> in <strong>app-shell</strong> folder.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ad73fc6eb4bba4c05878b65a21383805/href">https://medium.com/media/ad73fc6eb4bba4c05878b65a21383805/href</a></iframe><p>We imported piral-vue convertor and exposed public API in <strong>plugins[]. </strong>This is how app-shell control centralization for all pilets.</p><p>Then upgrade version of app-shell and build piral again.</p><pre>// update npm package version<br>npm version patch</pre><pre>// build piral<br>piral build</pre><p>Before we go. After we create pilet-2. Our system of Microfrontend would look like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MJDblQZLzJl4tZIWih88GQ.png" /><figcaption>Diagram</figcaption></figure><p>Above picture describe <strong>Pilet-1</strong> was created with <strong>app-shell</strong> version 1.0.0 when app-shell updated the version to 1.0.1. <strong>Pilet-2</strong> can utilize full lastest centralized package (Vue converter). But Pilet-1 (if no upgrade) couldn’t use new package (Vue converter). By the way, Pilet-1 is still working because <strong>Pilet-1</strong> and <strong>Pilet-2</strong> are independently developed.</p><p><strong>Create PILET-2 (Vue) team</strong></p><p>Navigating back one level from <strong>app-shell</strong> folder and creating <strong>pilet-2</strong> team.</p><pre>cd ..<br>pilet new app-shell/dist/emulator/app-shell-1.0.1.tgz --target pilet-2</pre><pre>// navigating to pilet-2 folder<br>cd pilet-2</pre><pre>// install vue, vue-loader, and vue-template-compiler<br>npm install vue vue-loader vue-template-compiler</pre><pre>// run up debug to check<br>pilet debug</pre><p>Because Vue need vue-loader to compile. We have to inject vue-loader in <strong>webpack</strong> of pilet-2 as well. Creating <strong>webpack.config.js</strong> in root directory of <strong>Pilet-2</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6c4d5e03c0cc3a06a64f7f15fbce9767/href">https://medium.com/media/6c4d5e03c0cc3a06a64f7f15fbce9767/href</a></iframe><p>you can go to <a href="http://localhost:1234/">http://localhost:1234</a> to check.</p><p>Let create new file name: <strong>BuyButton.vue </strong>to be buy button for pilet-1 (react) card</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/82251a7bfbd480d30d4aca269196f985/href">https://medium.com/media/82251a7bfbd480d30d4aca269196f985/href</a></iframe><p>This button will be exposed universally and used by Pilet-1 team. We are going to universally register extension and share state in our Pilet-2 component.</p><p>Modify <strong>index.tsx</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fc4c5daaac109230e69ce8be0f09d528/href">https://medium.com/media/fc4c5daaac109230e69ce8be0f09d528/href</a></iframe><p>There are 2 new features of Piral here:</p><ul><li>share state between Pilets</li><li>share component between Pilet.</li></ul><p>If we would like to share data within Pilets. We have to register “data” by <strong>setData(&lt;name&gt;, &lt;data&gt;). </strong>Following the above code. We create <strong>cart </strong>as an array to collect products. Next, we create addToCart() function to add product data to current cart. <strong>BuyButton</strong> will receive <strong>addToCart()</strong> function to use in Product Card.</p><p>Lastly, we register universal component for BuyButton by <strong>registerExtension(). </strong>Name it <strong>buy-button.</strong></p><p>Pilet-2 is also handling the cart page to display products in the cart. Let create another file <strong>Cart.vue.</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3e261fdd64fd5d8331ef3ae2b16ee127/href">https://medium.com/media/3e261fdd64fd5d8331ef3ae2b16ee127/href</a></iframe><p>and modify <strong>index.tsx </strong>as below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/022cb2f30ba4aabb812e8a3e064c11ef/href">https://medium.com/media/022cb2f30ba4aabb812e8a3e064c11ef/href</a></iframe><blockquote>line 26: register new menu with Link (/cart) to Cart Page</blockquote><blockquote>line 27: register new page in Microfrontend for /cart</blockquote><blockquote>line 29–34: We define watcher for ‘cart’ shared variable. If it change we will update number of products in Cart.</blockquote><p>Now we are completed almost everything. We lastly have to publish all Pilets to Feed-Service.</p><p><strong>Publish Pilet-1 (React)</strong></p><pre>// navigate to pilet-1<br>cd pilet-1</pre><pre>// publish<br>pilet publish --fresh --api-key <strong>&lt;key from piral cloud&gt;</strong> --url <strong>&lt;feed-service url from piral cloud&gt;</strong></pre><p><strong>Publish Pilet-2 (Vue)</strong></p><pre>// navigate to pilet-2<br>cd pilet-2</pre><pre>// publish<br>pilet publish --fresh --api-key <strong>&lt;key from piral cloud&gt;</strong> --url <strong>&lt;feed-service url from piral cloud&gt;</strong></pre><p>Then go back to <strong>app-shell</strong> folder and run debug.</p><pre>piral debug</pre><p>The result will display as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*QL0IkkeAfRK-ppD3XFXF8Q.gif" /><figcaption>Result</figcaption></figure><h3><strong>Lesson Learn:</strong></h3><ul><li>If 2 or more teams are isolated. The team is growing so big. <strong>Microfrontend</strong> can help manage the engineering development process.</li><li>If a team is small and partial (less) isolated, <strong>Monolith</strong> probably plays more important.</li></ul><blockquote>Github: <a href="https://github.com/kanin-kearpimy/Piral-Microfrontend-React-and-Vue">https://github.com/kanin-kearpimy/Piral-Microfrontend-React-and-Vue</a></blockquote><p>References:</p><ul><li><a href="https://portal.piral.cloud/">https://portal.piral.cloud/</a></li><li><a href="https://docs.piral.io/guidelines/tutorials/12-sharing-between-pilets">https://docs.piral.io/guidelines/tutorials/12-sharing-between-pilets</a></li><li><a href="https://docs.piral.io/guidelines/tutorials/14-converters">https://docs.piral.io/guidelines/tutorials/14-converters</a></li><li><a href="https://martinfowler.com/articles/micro-frontends.html">https://martinfowler.com/articles/micro-frontends.html</a></li></ul><p>Credit picture:</p><ul><li><a href="https://cdn.pixabay.com/photo/2021/10/15/01/57/women-6710736_960_720.jpg">https://cdn.pixabay.com/photo/2021/10/15/01/57/women-6710736_960_720.jpg</a></li><li><a href="https://cdn.pixabay.com/photo/2019/07/15/13/44/building-4339428_960_720.jpg">https://cdn.pixabay.com/photo/2019/07/15/13/44/building-4339428_960_720.jpg</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3fb111437cf0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google Assistant with Python Fulfillment]]></title>
            <link>https://kaninkearpimy.medium.com/google-assistant-with-python-fulfillment-3d440879aef9?source=rss-2ce7b61de788------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d440879aef9</guid>
            <category><![CDATA[fastapi]]></category>
            <category><![CDATA[google-assistant]]></category>
            <category><![CDATA[action-on-google]]></category>
            <dc:creator><![CDATA[Kanin Kearpimy]]></dc:creator>
            <pubDate>Wed, 20 Oct 2021 04:30:43 GMT</pubDate>
            <atom:updated>2021-10-20T05:31:24.388Z</atom:updated>
            <content:encoded><![CDATA[<pre><strong>How to read this article</strong></pre><pre>You can read through sequentially but I would like to share alternative way to learn.</pre><pre>- If you would like to begin with coding; start by <strong>Walkthrough</strong> along with GitHub -&gt; <strong>Architecture</strong></pre><pre>- If you would like to have an overview project first; begin with <strong>Architecture</strong> -&gt; <strong>Action on Google</strong> -&gt; <strong>Action on Google</strong></pre><pre><strong>Disclaimer:</strong> I&#39;ve not explained in detail when in come to code. I highly suggest you to read through <strong>GitHub</strong> along the <strong>Walkthrough</strong> sector</pre><pre><strong>Github: </strong><a href="https://github.com/kanin-kearpimy/L-L-Chatbot--action-on-google-"><strong>https://github.com/kanin-kearpimy/L-L-Chatbot--action-on-google-</strong></a></pre><p>Order food via web UI is a common use case in software development nowadays. Design buttons, table of food, summary for orders, etc. What if, on the other hand, we can grab some food with less UI / text on it?</p><p>What if, we can just use our voice and a couple of clicks to buy some food? If you are interested, Chatbot with Google Assistant is one of the easier ways to get this up and running in no time.</p><h3>Action on Google</h3><p>Action on Google is a service that allows the developer to link their own customized feature to Google Assistant, utilizing Conversational Actions.</p><p>An essential component in this project are described below:</p><ul><li><strong>Scene:</strong> Major <strong>building block</strong> for the customized conversational model. (We implement some conversational model here to link it with our webhook)</li><li><strong>Intent:</strong> Task that the Assistant carries out. Some probably track word/phrase from a user by NLU to identify which <strong>“scene”</strong> to be executed</li><li><strong>Type: </strong>configuration for data structured extraction.</li><li><strong>Webhook: </strong>Fulfillment service which flexibly interacts with Assistant. To receive data and store it in the database then response ending message for example.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*TynrJ4Zg_6a8DqLGjYRmxg.png" /><figcaption>Overview of Action on Google.</figcaption></figure><h3>Architecture</h3><p>We’re going to build Noodle Helper which can order noodles via Google Assistant and export order data to shop in form of JSON</p><p><strong>Basic System Architecture</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1N9AskasTihO7OU1U4pjgA.png" /><figcaption>System Architecture</figcaption></figure><p><strong>Project Structure</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/349/1*rqgsh-z8YvH005kE-WZkJw.png" /></figure><p>Breaking down into 2 main parts: <strong>/api, </strong>and<strong> /sdk</strong></p><p><strong>/sdk: </strong>directory where a customized conversational model has been implemented</p><p><strong>/api</strong>: webhook codebase is written by Python to handle Assistant requests, store databases, and proper responses.</p><p>We should consider <strong>/sdk </strong>director as Action on Google main base which is composed of</p><p><strong>/actions:</strong> Action on Google configuration file.</p><p><strong>/custom: </strong>customized script for</p><ul><li><strong>/global:</strong> configure global intent, scene. for example, how to handle first enter app (MAIN), the user wants to exit (CANCEL), the user put unknown data (NO_INPUT).</li><li><strong>/intents:</strong> custom intents, training phases (we are going to talk about this soon).</li><li><strong>/scenes:</strong> building block handler.</li><li><strong>/types:</strong> structure extractor.</li></ul><p><strong>/webhook:</strong> trigger handler to send a request to Python FastAPI.</p><h3><strong>Walkthrough</strong></h3><p>We should have a look at <strong>actions.intent.MAIN.yaml </strong>and modify <strong>speech</strong> and <strong>transitionToScene</strong> for controlling first Scene entry.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a6b531321ae50d5dab0b09b182ebefa6/href">https://medium.com/media/a6b531321ae50d5dab0b09b182ebefa6/href</a></iframe><p>in <strong>Shop.yaml scene </strong>we’ll handle incoming action with suggested choice <em>James Shop</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/405e9d86b1e0ecc455c7d42bcb3770bd/href">https://medium.com/media/405e9d86b1e0ecc455c7d42bcb3770bd/href</a></iframe><p>This scene will describe the user to choose Shop and handle intent by <strong>james_shop</strong> which has its unique training phase for NLU. if voice input matches correctly. Google Assistant will lead to the next <strong>James_Collection</strong> scene.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b80e701aa2cf9e251290b68a86de0f55/href">https://medium.com/media/b80e701aa2cf9e251290b68a86de0f55/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/df3cdbf6e375791fd057ff9c6088c09c/href">https://medium.com/media/df3cdbf6e375791fd057ff9c6088c09c/href</a></iframe><p>James_Collection will trigger a request to <strong>webhook (/api) </strong>to store user choice in-memory database and display menu from <strong>shop_item response </strong>(please have a look at GitHub for more information)</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/068a5c9f1620402508ca029439f87ac9/href">https://medium.com/media/068a5c9f1620402508ca029439f87ac9/href</a></iframe><p>After selecting the menu, Assistant will lead the user to <strong>Taste</strong> scene which handles suggested choices for <strong>tastes </strong>and trigger <strong>webhook</strong> to store tastes in in-memory data</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7bdd39a2836a2b3f3bd786fed0b81890/href">https://medium.com/media/7bdd39a2836a2b3f3bd786fed0b81890/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3900bbb23314a0db4c641a0ada98199a/href">https://medium.com/media/3900bbb23314a0db4c641a0ada98199a/href</a></iframe><p>The next scene is Size to handle <strong>Size</strong> customized user’s decision</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b1001cdda7f65a447b417a661204d85b/href">https://medium.com/media/b1001cdda7f65a447b417a661204d85b/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/247433c57c0b6f0a2ea1914b39666664/href">https://medium.com/media/247433c57c0b6f0a2ea1914b39666664/href</a></iframe><p>When everything is done, the Assistant will sum up all data to allow the user to review and make a final decision on the shop in <strong>Placeholder</strong>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8a970c93f2c5a06d7831c913c3b310f3/href">https://medium.com/media/8a970c93f2c5a06d7831c913c3b310f3/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4ca168864ce068d6f64ac92fa3baef7b/href">https://medium.com/media/4ca168864ce068d6f64ac92fa3baef7b/href</a></iframe><p>If you noticed Placeholder isn’t the last scene. This project has <strong>Next scene</strong> for requesting users whether want to choose another shop.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5beee119ca8d425ef38aa1d0c58fdc7b/href">https://medium.com/media/5beee119ca8d425ef38aa1d0c58fdc7b/href</a></iframe><p>Result order will display to Shop as JSON.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*ripop5cYUU3n3QRBoabZGQ.png" /></figure><h3>Next Step Challenge</h3><ul><li><strong>Testing:</strong> To overall test is challenging. Because we have divided codebase on <strong>Action on Google</strong> and <strong>FastAPI.</strong></li><li><strong>CI/CD:</strong> As I mentioned about the divided codebase. How to set pipeline to handle?</li></ul><p><em>Reference:</em></p><ul><li><a href="https://developers.google.com/assistant/conversational/overview">https://developers.google.com/assistant/conversational/overview</a></li><li><a href="https://developers.google.com/assistant/conversational/actions">https://developers.google.com/assistant/conversational/actions</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d440879aef9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[สรุป Atomic Habit — Part 2]]></title>
            <link>https://kaninkearpimy.medium.com/%E0%B8%AA%E0%B8%A3%E0%B8%B8%E0%B8%9B-atomic-habit-part-2-600af0b77f53?source=rss-2ce7b61de788------2</link>
            <guid isPermaLink="false">https://medium.com/p/600af0b77f53</guid>
            <category><![CDATA[habits]]></category>
            <category><![CDATA[books]]></category>
            <category><![CDATA[atomic-habit]]></category>
            <category><![CDATA[summary]]></category>
            <dc:creator><![CDATA[Kanin Kearpimy]]></dc:creator>
            <pubDate>Fri, 09 Jul 2021 12:00:54 GMT</pubDate>
            <atom:updated>2021-07-09T12:55:30.155Z</atom:updated>
            <content:encoded><![CDATA[<h3>สรุปหนังสือ Atomic Habit — Part 2</h3><h3>สภาพแวดล้อมสำคัญต่อพฤติกรรมอย่างไร</h3><p>สิ่งแวดล้อมนอกจากสภาพรอบตัวแล้ว ยังหมายถึงผู้คนที่อยู่รอบตัวด้วย โดยมีกลุ่มคน 3 รูปแบบที่ส่งผลต่อพฤติกรรมของเรา</p><ol><li>กลุ่มคนที่ใกล้ชิดรอบตัวเรา</li><li>กลุ่มคนส่วนใหญ่</li><li>กลุ่มคนที่มีอำนาจ</li></ol><p><strong>กลุ่มคนที่ใกล้ชิดรอบตัว</strong></p><p>พฤติกรรมการแสดงออกของคนรอบตัวสามารถเป็นปัจจัยกระตุ้นต่อตัวเราได้ เช่น หากเรามีเพื่อนที่ชอบออกกำลังกาย ย่อมไม่แปลกที่เราจะถูกกระตุ้นให้ออกกำลังกายไปโดยไม่รู้ตัว การเลือกนิสัยที่ส่งเสริมจากคนใกล้ตัวย่อมมีความเป็นไปได้มากกว่า</p><p><strong>การทำตามกลุ่มส่วนใหญ่</strong></p><p>เราได้รับแรงผลักดันภายนอก จากสังคมที่เราอยู่ในทุกระดับไม่ใช่เฉพาะคนใกล้ชิด แต่รวมถึงสังคมระดับชุมชน โรงเรียน สถานที่ทำงาน เราเรียกสิ่งเหล่านี้ว่าวัฒนธรรมของสถานที่ต่าง ๆ ดังนั้นการเลือกสถานที่ ที่กลุ่มส่วนใหญ่ชอบการเขียน Program ที่อ่านง่าย เราย่อมสามารถสร้างนิสัยนั้น ได้ดีกว่า</p><p><strong>การทำตามกลุ่มตัวอย่างที่มีอำนาจ</strong></p><p>เราต้องการเป็นผู้ที่ถูกยอมรับ และเรามักจะเลียนแบบพฤติกรรมของคนที่ถูกคนส่วนมากยอมรับโดยไม่รู้ตัว เช่น การอยากเป็นเหมือนนายกรัฐมนตรีที่ดี กลุ่มนี้ยังสามารถเป็นต้นแบบ (Role Model) ให้เราได้ทำตาม และสร้างพฤติกรรมได้อีกด้วย ดังนั้นเลือก Role Model ให้ดี</p><h3>หากเราสามารถเชื่อมโยงประสบการณ์ในด้านบวกเข้ากับนิสัยได้ เราจะสามารถสร้างนิสัยอะไรก็ได้ แม้จะยากแค่ไหน</h3><p>เราไม่จำเป็นต้องรู้ว่า แท้จริงแล้วสิ่งที่เกิดขึ้นเป็นเช่นไร พฤติกรรมของเราถูกสร้างขึ้นจากการตีความของสมอง เช่น คนสองคนมองบุหรี่ คนแรกตีความว่าบุหรี่เป็นสิ่งที่ลดความเครียด อีกคนตีความว่าบุหรี่เป็นสิ่งที่ไร้ประโยชน์ ทุก ๆ พฤติกรรมที่แสดงออกมา มีความปรารถนาแอบแฝงอยู่เสมอ เช่น การอยากได้ที่ 1 เพราะจริง ๆ อยากเป็นที่ยอมรับของสังคม เป็นต้น</p><blockquote><strong>วิธีการ:</strong> เปลี่ยนคำว่า “ต้อง” เป็นคำว่า “มีโอกาส” เพราะจะทำให้สมองตีความสิ่งที่ “ภาระที่ต้องทำ” เป็น “โอกาส” ที่จะทำ</blockquote><p>การปรับความคิด ทัศนคติต่อนิสัยที่ต้องการสร้าง ให้เน้นมองที่ “ข้อดี” ของนิสัยนั้น ๆ เช่น</p><ul><li>การออกกำลังกาย: เมื่อจะออกไปวิ่ง ให้คิดว่า “กำลังจะไปฝึกความอดทนและทำอะไรให้รวดเร็วแล้ว”</li><li>การฝึกเขียน Coding: “กำลังจะไปฝึกวิธีการแก้ปัญหา ในรูปแบบใหม่ๆ แล้ว”</li></ul><p>วิธีการปรับทัศนคติด้านบน สามารถเชื่อมโยงเข้ากับ<strong>ประสบการณ์</strong>ของแต่ละบุคคลได้ หากคุณเป็นคนไม่ชอบทำอะไรเร็ว การออกกำลังกายอาจจะมีข้อดีอย่างอื่นที่สามารถนำมาเชื่อมโยง เพื่อให้เห็นด้านบวก</p><p>เราสามารถเชื่อมพฤติกรรมเข้ากับสิ่งที่เพลิดเพลินได้ เช่น ในขณะกำลังทำงานที่ใช้สมอง อาจจะหาสถานที่โล่ง ๆ (เพราะผู้สรุปเป็นคนชอบสถานที่โล่ง ปลอดโปร่ง) ก็จะทำให้รู้สึก enjoy กับการทำงานไปได้</p><h3>จงฝึกฝนให้มากกว่าการวางแผน</h3><p>นิสัยถูกสร้างได้จากจำนวน “ความถี่” ของการแสดงพฤติกรรมนั้น ๆ อาทิ</p><ul><li>คนที่ใช้เวลา 2 ชั่วโมงในการอ่านหนังสือแล้วสรุป</li><li>คนที่อ่านหนังสือจบ 10 นาที แล้วสรุป ทำวนซ้ำๆ ไป 2 ชั่วโมง</li></ul><p>คนประเภทที่ 2 สรุปทุกๆ 10 นาที มีแนวโน้มที่จะสร้างนิสัย “การเป็นนักสรุป” ได้ดีกว่าคนที่ใช้เวลา 2 ชั่วโมง เพราะว่ามีความถี่เยอะกว่าในการกระทำ</p><p>นิสัยถูกสร้างขึ้นจากการกระทำซ้ำๆ หากสังเกตุ นิสัยคือสิ่งที่เรา <strong>“กระทำโดยอัตโนมัติ”</strong> เมื่อใดที่เราทำ<strong>โดยไม่ต้องคิด</strong>ได้ นั้นคือสัญญาของนิสัยที่ถูกสร้างขึ้นแล้ว</p><h3>กฎแห่งความพยายามน้อยที่สุด (The Law of Least Effort)</h3><p>มนุษย์จะเลือกวิธีที่ง่ายที่สุดในการทำบางสิ่ง เช่น เราเลือก ส่งข้อความทาง LINE มากกว่าจะส่ง SMS เราเลือกจะสั่ง Grab แทนที่จะทำอาหารเอง หากเรามีเวลาน้อย ทุกๆ พฤติกรรม/นิสัย ย่อมมีอุปสรรค์ การ ลด หรือ เพิ่ม อุปสรรค์เหล่านั้นย่อมสามารถส่งผลให้พฤติกรรมเกิดได้ง่าย หรือ ยากขึ้น เช่น</p><ul><li>การนำรองเท้า เสื้อผ้า และอุปกรณ์ออกกำลังกายไว้ข้างโต๊ะทำงานหรือที่ที่สายตามองเห็นได้ง่าย สามารถช่วยเพิ่มโอกาสในการออกกำลังกาย</li><li>การวางหนังสือไว้ใกล้ตัว ย่อมง่ายต่อการหยิบอ่าน และสร้างนิสัยรักการอ่านได้</li><li>การไม่นำอาหารที่มีไขมันสูงไว้ในตู้เย็น ย่อมสามารถลดการกินอาหารไขมันได้ง่าย</li></ul><p>การลองวิเคราะห์นิสัย และทำให้การ “ทำ” นิสัยเหล่านั้นง่ายขึ้น ย่อมจะส่งผลดีในการสร้างนิสัย</p><h4>เริ่มจากเรื่องที่ง่ายที่สุดก่อน</h4><p>ลองดูว่านิสัยที่อยากสร้างคืออะไร แล้วลองเริ่มทำจากเรื่องที่ “ง่ายที่สุด” หรือจะเรียกว่า “กฎ 2 นาที” ก็ได้ หลักการคือทำในสิ่งที่ใช้เวลาน้อยกว่า 2 นาที เช่น</p><ul><li>ต้องการวิ่งมาราธอน ให้ลองเริ่มจากการใส่รองเท้าวิ่ง ทุกวัน</li><li>ต้องการเขียนโปรแกรม ให้เริ่มจากการเปิด Code Editor ทุกวัน</li><li>หากต้องการรักการอ่าน ให้ลองเปิดหนังสือ ทุกวัน</li></ul><p>ทุก ๆ นิสัยแม้จะง่าย ย่อมมีเรื่องที่ง่ายในตัวเสมอ ให้ลองทำจากตรงนั้น “เน้นความถี่” เพื่อทำให้สมองจดจำสิ่งที่ต้องทำ แล้วค่อยเสริมความยากขึ้นไปเลื่อยๆ เช่น</p><p><strong>อยากสร้างนิสัยที่แก้สมการคณิตศาสตร์ทุกวัน:</strong></p><ul><li>ง่ายมาก: เปิดหน้าแรกของหนังสือ Math ทุกวัน</li><li>ง่าย: อ่านสารบัญ ทุกวัน</li><li>ปานกลาง: เริ่มอ่านและแก้โจทย์วันละ 1–2 ข้อ</li><li>ยาก: อ่าน แก้โจทย์ 3–5 ข้อ พร้อมทำสรุป</li><li>ยากมาก: แก้สมการคณิตศาสตร์ระดับยากๆ ทุกวัน</li></ul><p>ซึ่งเราจะแบ่งระดับความง่าย ไป ยาก โดยที่ระยะเวลาในการอยู่แต่ละระดับ ให้เราเป็นคนกำหนดเองจาก “ความรู้สึกถึงระดับยากมาก” เช่น หากเราเป็นคนที่มองว่า คณิตศาสตร์เป็นเรื่องยากมากๆ เราอาจจะไม่ต้องรีบเลื่อนระดับไป ในช่วง “ง่ายมาก, ง่าย” แต่พอเริ่มทำจนติดเป็นนิสัยแล้ว การเลื่อนระดับจะง่ายไปเอง</p><h4>การสร้างข้อผูกมัดสามารถช่วยลดการผัดวันประกันพรุ่งได้</h4><p>หลายครั้ง เราอยากทำงาน แต่ก็หาวิธีผลัดไปพรุ่งนี้ บางทีอาจจะเป็นเพราะเรา “มองว่าตัวงานนั้นไม่ได้ผูกมัดกับเรา” เช่น การที่เราไม่ยอมอ่านหนังสือให้จบเล่ม อาจเพราะไม่มีอะไรมาผูกมัดให้เราอ่าน ไม่มีบทลงโทษอะไรถ้าอ่านไม่จบ</p><p>ดังนั้นการสร้างข้อผูกมัดหรือเงื่อนไขบางอย่างจะช่วยได้ เช่น หากว่าอยากอ่านหนังสือให้จบเล่ม แต่รู้ตัวว่าสิ่งที่ชอบมารบกวนคือโทรศัพท์ ให้ลองนำโทรศัพท์ไปเก็บใส่ลิ้นซักไกลๆ ตัว ในช่วงกลางวัน จะเป็นการสร้างเงื่อนไขให้ตัวเองไม่มีสิ่งรบกวน และสามารถโฟกัสอ่านหนังสือได้</p><p>อีกตัวอย่าง: หากเราอยากเขียนหนังสือให้จบเล่ม ให้ลองลบเกมส์ ลบ Social Media นำเสื้อผ้าไปใส่ในตู้แล้วล็อค เก็บตัวไกลๆ ผู้คน กำจัดสิ่งรบกวน เพื่อสร้างเงื่อนไขให้ตัวเอง จากนั้นลงมือเขียนหนังสือ อาจจะช่วยให้งานเสร็จเร็วขึ้น</p><p>หรือง่ายกว่านั้นจ่ายเงินไปเลย เช่น อยากทำ project นอกเวลางานให้เสร็จ ลองนำเงินออกจากบัญชี 50% ของเดือนนี้ ไปเก็บไว้ที่ไหนซักแห่ง และสร้างเงื่อนไขว่า หากเขียนไม่เสร็จ จะไม่นำเงินนี้กลับเข้าบัญชี จะสร้างข้อผูกมัดให้เราทำ project จนเสร็จ</p><h3>จงให้รางวัล</h3><p>พฤติกรรมได้ที่กระทำ และได้รางวัลย่อมจะส่งผลให้เกิดพฤติกรรมนั้นซ้ำๆ และ พฤติกรรมได้ที่ได้รับโทษ ย่อมมีแนวโน้มลดลงเช่นกัน ดังนั้นการให้รางวัลในระยะสั้น กับพฤติกรรมที่นำไปสู่นิสัยที่ดี ย่อมสร้างการทำซ้ำได้ดีกว่า เช่น</p><ul><li>ต้องการเป็นคนเลิกใช้จ่ายฟุ่มเฟือย =&gt; เปิดบัญชีธนาคารแล้วเขียนหน้าสมุดว่า “ไปเที่ยวญี่ปุ่น” เมื่อสามารถห้ามตัวเองไม่ให้ซื้อของฟุ่มเฟือยได้ ให้โอนเงินเข้าบัญชีดังกล่าว</li><li>ต้องการเป็นคนมีสุขภาพที่ดี =&gt; หลังออกกำลังกายเสร็จ ให้มีการจดบันทึก หรืออนุญาติให้ตนเองทำกิจกรรมที่อยากทำ</li></ul><h4>จงติดตามผลของพฤติกรรม การกระทำ นิสัย</h4><p>การติดตามผลการกระทำจะช่วยทำให้:</p><ul><li>เห็นผลลัพท์ที่ชัดเจน</li><li>กระตุ้นอยากให้ทำต่อ</li><li>รู้สึกพึงพอใจ</li></ul><p>ไม่จำเป็นต้องทำกับทุกอย่าง แต่ให้โฟกัสเป็นเรื่องที่สำคัญๆ ซัก 1–3 อย่างเป็นพอ เช่น หากอยากลดน้ำหนัก ให้ทำการจดบันทึกการกินหรือทำเครื่องหมายบนปฏิทินถึงวันที่ได้ออกกำลังกาย โดยวิธีการ “ติดตาม” สามารถทำให้<strong>ง่ายขึ้น</strong> โดยการใช้เครื่องมืออัตโนมัติได้ (จดบันทึกการกินลง Application)</p><p><strong>สูตรการติดตาม:</strong></p><blockquote>หลังจากฉันทำ …(พฤติกรรม)… แล้วฉันจะติดตาม ….(ผลของพฤติกรรมนั้นๆ)….</blockquote><p>เช่น หลังจากฉันเรียน Online ได้ ฉันจะสรุปเนื้อหาทั้งหมดภายใน 1 ประโยค (ใช้เทคนิคทำให้ “‘ง่าย” เข้ามาช่วย)</p><p>หากตัวเราหยุดทำพฤติกรรมที่ทำมาตลอดไป นั้นไม่ใช่เรื่องผิด แต่การหยุดทำ “อย่างต่อเนื่อง” นั้นคืออันตราย ดังนั้นหากรู้สึกขี้เกียจ อย่างน้อยให้ “ทำบางอย่างของพฤติกรรม” เช่น เป็นคนชอบวิ่ง 30 นาทีมาตลอด แต่วันนึงรู้สึกขี้เกียจและเหนื่อยจากงานมากๆ อย่างน้อยให้สวมชุด และออกไปวิ่งซัก 10–15 นาที และวันพรุ่งนี้ให้กลับมาวิ่ง 30 นาทีตามเดิม</p><h3>การสร้างพันธะสัญญาสร้างนิสัย</h3><p>จงสร้างสัญญาที่มีผู้อื่นรับรู้อยู่ด้วยในการสร้างนิสัย เช่น หากต้องการมีนิสัยชอบอ่านหนังสือ อาจจะลองทำสัญญาขึ้นมา ในรูปแบบกระดาษ หรือปากเปล่าก็ได้ ขอแค่ให้มี “ผู้อื่น” รับรู้ในสัญญานั้น และมี “ข้อผูกมัด/บทลงโทษ” ที่ชัดเจน เช่น</p><p>อยากสร้างนิสัยรักการอ่าน: ให้จับกลุ่ม 2 คนและสัญญาว่าจะมีการมาสรุปหนังสือให้กันฟัง 2 สัปดาห์ต่อ 1 เล่ม หากว่าทำไม่ได้ จะต้องมีการจ่ายค่าลงโทษเป็นการเลี้ยงข้าว เป็นต้น</p><h3>บทสรุปและวิเคราะห์</h3><p>การสร้างนิสัยนั้นเกิดจากพฤติกรรมที่เรากระทำในทุก ๆ วัน หนังสือพยายามสื่อสารว่านิสัยจะเกิดได้จาก 4 ลำดับขั้น</p><ol><li>ปัจจัยกระตุ้น</li><li>แรงปรารถนา</li><li>การตอบสนอง</li><li>รางวัล</li></ol><p>หากเราต้องการสร้างนิสัยเราเพียงแค่ต้องรู้วิธีการจัดการในแต่ละลำดับให้ได้ผลออกมาดี เราก็จะสามารถสร้างนิสัยได้</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=600af0b77f53" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Short-Course Web-Development for none-technical people.]]></title>
            <link>https://kaninkearpimy.medium.com/short-course-web-development-for-none-technical-people-b1a3131002eb?source=rss-2ce7b61de788------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1a3131002eb</guid>
            <category><![CDATA[non-technical]]></category>
            <category><![CDATA[short-course]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Kanin Kearpimy]]></dc:creator>
            <pubDate>Tue, 29 Jun 2021 05:47:16 GMT</pubDate>
            <atom:updated>2022-04-06T05:42:40.420Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I Conduct Inclusive Web-Development for Diverse Career Changer.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JMPm-62al5Mf7k9gPRb9bw.jpeg" /></figure><p>When we talk about web development, we might consider complex structure be-hide the scene. A lot of technical pieces of stuff like algorithms, mathematics, and complex coding patterns. Yes but not at all, What if you have got challenges to incubate non-technical people for web development within 3 weeks! What do you prefer these people to learn? What do you expect them to grab out? and how does web development impact their career or daily life?</p><p>I’m going to explain and share what I and my small study group, none-technical background, got through 3 weeks of web development.</p><h3>My student background</h3><p>There are 5 students in my short class, Everyone has different but incredibly mixed and matched courses.</p><ul><li>3 of them are Project managers who, in daily life, work on tracking, planning, and negotiating with the technical team and customer.</li><li>Another one is UX/UI Designer who experienced web-design</li><li>The rest is the R&amp;D Researcher who is often involved in bringing new technology and innovation to the company.</li></ul><h3>Course commitment</h3><p>This offline course occurred every weekend for 3–5 hours (2 days per week), and lasted 3 weeks. Every section is divided into lectures, mini-practical projects, and mentoring sessions every week.</p><p><strong>Outline as listed below:</strong></p><ol><li>Fundamental &amp; Tool Installation</li></ol><ul><li>Visual Studio Code Setup</li><li>Version Control Git</li><li>Chrome Dev Tools</li><li>HTML &amp; CSS Fundamental</li><li>Javascript Fundamental</li></ul><p>2. Grid &amp; CSS Framework</p><ul><li>Grid System</li><li>Bootstrap</li><li>Element &amp; Component</li></ul><p>3. RESTful API and Javascript for Application</p><ul><li>POSTMAN</li><li>Basic Network</li><li>RESTful API</li><li>JS for Application</li></ul><p>4. Practical Mini-Project</p><h3>Fundamental &amp; Tool Installation</h3><p>We covered tools and foundations for a web developer. Breaking them down into 2 groups:</p><p><strong>1. Tools: (Editor, Version Control, Debugging)</strong></p><ul><li>Visual Studio Code: A text editor with huge supportive extensions for the developer.</li><li>Git with Github: Version Control.</li><li>Chrome Dev Tools: Debugging tool that covered necessary JS console components, HTML and CSS inspector, Network tracking, and Browser Storage.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mhQcymTfIAVJpzPaeSTyZw.png" /><figcaption>Google Chrome Dev Tools</figcaption></figure><blockquote><strong>Lesson Learn 1:</strong> The most impression for my students is element inspector (not surprised) Because they can inspect element on page and grab style and structure to modify and re-create for themselves.</blockquote><blockquote><strong>Lesson Learn 2:</strong> Network tracking is quite boring at first but when it come to API session. My students really thank this tools as much. So, I prefer to underscore on how to read Request &amp; Response while browser working on page.</blockquote><p><strong>2. Basic Foundation: (HTML, CSS, Javascript)</strong></p><p>This was my first challenge because of the limitation of time, background, and complex content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*7JXR1nK4x86GQoVCjBgAbw.png" /><figcaption>Content that I and my students got through.</figcaption></figure><p><strong>HTML (Hypertext Markup Language):</strong></p><p>I tried to spread all tags out and teach only necessary tags and detail. Following the above picture. My student had learned 80% of must-use tags of all web development in my experiences. We spent time on DIV tag first and then explain it to others.</p><blockquote><strong>Lesson Learn 1:</strong> HTML tag is a “blank tag with build-in style”. for example, p and h1 is likely to be the same if we cut off all css style. So, We can tell them concept, and let them learn which tag to apply on project building.</blockquote><blockquote><strong>Lesson Learn 2:</strong> Repeat word is quite helpful. My student got confused when I interchange between “tag attribute and tag property”. So, I changed my style to choose only one of them to express what we learn. It could reduce confusion well.</blockquote><p><strong>CSS (Cascading Style Sheets):</strong></p><p>Actually, the selector is quite a challenge for the new learner if they can have the right vision on how to select elements, Other would be CSS styling. I break styles into 2 + 1 groups:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Aog2mwk_tFb9Zt9NC-Ypg.png" /><figcaption>CSS Selector</figcaption></figure><ul><li><strong>Dimension:</strong> covering all pieces of stuff that could make element change their dimension and shape such as <em>width, height, margin, padding, and border</em></li><li><strong>Position:</strong> All kinds of stuff that relate to positioning were explained here: float, display, flex, grid.</li><li><strong>Font:</strong> I added this section because a lot of projects need font decoration to be complete.</li></ul><p><strong>JS (Javascript):</strong></p><p>HTML and CSS are intuitively understandable but Javascript. JS is quite a bit different. It is a programming language and needs a logical concept. My students often failed here. I’ve noticed that if one can “see” a pattern on it, one can solve it. So, I change my teaching style. instead of looking at Javascript like computers do. I tried to teach my student to look at it as “Humans” do.</p><p>For example: to add an event listener to the button.</p><p><strong>Computer:</strong></p><ul><li>Select button</li><li>Add function to the button</li><li>if a button clicked then …..</li></ul><p><strong>Human:</strong></p><ul><li>Move your mouse to the button</li><li>Left-click on the mouse</li><li>the button is clicked.</li><li>Your brain imagines what would happen</li></ul><p>After my student can look like humans do then I teach them to <strong>map Human to Computer. </strong>As consequence, My student can understand how to work with javascript better (but they took more time to analyze the whole logic).</p><h3><strong>Grid &amp; CSS Framework:</strong></h3><p>After the first week, my students struggled with how to <strong>position the </strong>HTML elements. They mentioned <strong>not precise</strong> shape and position because of margin and padding. That was my intention. Because we were going to jump into the currently magical positioning style; the Grid system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*fSlW8lmItjYRaYc7XXc5Jw.png" /><figcaption>The topic of Grid &amp; CSS Framework</figcaption></figure><p>Though We covered all requirements modern website should have: Responsive, Mobile Friendly, Reusable components. Concentrating on Grid systems was key to building up my student project.</p><blockquote><strong>Lesson Learn 1:</strong> Precisely positioning by pure margin and padding is really challenges for new learner. But If they did not experiences how hard it was. They would not know how useful of Grid.</blockquote><blockquote><strong>Lesson Learn 2:</strong> Build grid from scratch was quite challenge as well. So, I modified content to cover all concept of grid and let my student implement it by Bootstrap Grid system instead.</blockquote><p>Grid is about how we look at elements and break them down into rows and columns. So, We spent 50% of the lesson analyzing current elements on popular websites. How to shape it as Grid: row and column.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*6XNFiNyvLDAN93wt9kabsA.png" /><figcaption>Element Analysis for the grid system.</figcaption></figure><p>Additionally, We tried to cover some elements and components of Bootstrap. So, They can utilize it instantly for mini-project.</p><h3>RESTful API</h3><p>In final lesson (before the final project) is about how UI (Frontend) communicates with a system (Backend). This is the most exciting because we try to track how popular websites send requests and responses (by chrome dev tool: network). My student learned how to use POSTMAN to send requests to the server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*BFwZcRaekM3DeABArdywgQ.png" /><figcaption>Basic Client-Server</figcaption></figure><p>What I designed is to build up a backend API for event registration. My student has to request data from the first to last API sequentially. They must get unique data from one to use in another API.</p><blockquote><strong>Lesson Learn 1:</strong> Everything about data is “Key and Value” in different form. JSON is Key:Value. On the other hand, Query string is key=value. So, If my students can understand this concept, they can map it to other type of sending data via API in future.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iMbulib77YCuDPafZI25gg.png" /><figcaption>Concept of data; Key, value</figcaption></figure><h3>Big Lesson Learn</h3><ol><li>It is hard to explain how computers work by computer language. If your audience is normal people. So, Use normal language. Giving examples and comparing them with things relating to their experiences is useful.</li><li>When it comes to HTML and CSS. They are what we can “see and touch”. But for Javascript, it, on the other hand, is quite a blinding area. SUDO Code could help here but have to be related to the audience&#39;s experiences.</li><li>Programming language likely relies on muscle memory. Explain the concept, give the example and let&#39;s do a project on and on that could strengthen those muscles.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1a3131002eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[สรุป Atomic Habit — Part 1]]></title>
            <link>https://kaninkearpimy.medium.com/%E0%B8%AA%E0%B8%A3%E0%B8%B8%E0%B8%9B-atomic-habit-part-1-60c43de6fd0b?source=rss-2ce7b61de788------2</link>
            <guid isPermaLink="false">https://medium.com/p/60c43de6fd0b</guid>
            <category><![CDATA[atomic-habit]]></category>
            <category><![CDATA[summary]]></category>
            <category><![CDATA[books]]></category>
            <dc:creator><![CDATA[Kanin Kearpimy]]></dc:creator>
            <pubDate>Sun, 20 Jun 2021 15:40:37 GMT</pubDate>
            <atom:updated>2021-07-09T12:02:37.596Z</atom:updated>
            <content:encoded><![CDATA[<h3>สรุปหนังสือ Atomic Habit — Part 1</h3><p>การเปลี่ยนแปลงนิสัย สามารถทำได้ด้วยการเปลี่ยนแปลงทีละเล็กๆ น้อยๆ แต่สม่ำเสมอ หนังสือกล่าวว่า เพียงแค่เราเปลี่ยนแปลงการกระทำของตัวเอง วันละ 1% ภายใน 1 ปี (365 วัน) ตัวเราจะมีการเปลี่ยนแปลงไปมาก</p><ul><li>1% ที่ดีขึ้น ทุกวัน ตลอด 365 วัน จะทำให้ชีวิตดีขึ้น 37 เท่า ((1 + 0.1)³⁶⁵)</li><li>1% ที่แย่ลง ทุกวัน ตลอด 365 วัน จะทำให้ชีวิตแย่ลงเช่นกัน</li></ul><p>Case ตัวอย่าง เช่น ทีมปั่นจักยานระดับชาติของประเทศอังกฤษ ไม่ได้รางวัลอะไรเลยมา 100 กว่าปี สิ่งที่ผู้อำนวยการคนใหม่ทำหลังรับตำแหน่งคือ นโยบาย “เพียงแค่ 1% ในการเปลี่ยนแปลงเรื่องเล็กน้อย แต่ทุกเรื่อง และทุกวัน จะทำให้ทุกอย่างดีขึ้นได้” ทีมอังกฤษทำทุกอย่างที่เป็นเรื่องเล็ก เช่น เปลี่ยนสีห้องเป็นสีขาว เพื่อป้องกันฝุ่น ซึ่งอาจจะกระทบจักยาน การสอนนักกีฬาล้างมือให้ถูกต้อง เพื่อการมีสุขภาพที่ดี เป็นต้น</p><p><strong>นิสัยดีๆ ที่ควรสะสม</strong></p><ul><li>สะสมความรู้</li><li>สะสมประสิทธิภาพและประสิทธิผล (เช่น ทำงานให้สำเร็จเพิ่มขึ้นวันละ 1 งาน อย่างมีคุณภาพ)</li><li>สะสมความสัมพันธ์ที่ดี</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*KEG9PrVGCdRxopYS6rMlGg.png" /><figcaption>ความคาดหวังและความจริง เมื่อลงมือทำบางสิ่ง</figcaption></figure><p>หลายๆ ครั้ง ผลลัพท์เกิดมาจากการลงมือทำเล็กน้อยไปทุกๆ วัน แต่สิ่งที่คนพยายามคาดหวังคือ <em>ลงมือทำวันนี้ = ผลลัพท์วันนี้</em> แต่ความจริงแล้ว <em>การลงมือทำวันนี้ = ผลลัพท์ในอนาคตที่จะเกิด</em> เราต้องรู้ว่า “อย่าล้มเลิกกลางคันไปเสียก่อน”</p><p>คำถาม: เราจะทำให้ตัวเองรู้สึกอยากทำ หรืออดทนที่จะทำ ในขณะที่ <strong>ผลลัพท์ยังไม่เกิด</strong>ได้อย่างไร</p><p>การมีเป้าหมายต้องมาพร้อมกับการปฏิบัติที่ชัดเจน สม่ำเสมอ โดยเราจะเรียนสิ่งเหล่านี้ว่า “กระบวนการ” โดยกระบวนการเป็น set ที่ใหญ่กว่า “การปฏิบัติ” เพราะว่า มันจะบ่งบอกถึงสิ่งที่จำเป็นต้องทำเพื่อให้บรรลุเป้าหมาย เช่น</p><ul><li>หากต้องการเป็น Developer ที่ประสบความสำเร็จ จำเป็นต้องมี communication skill, algoritms, data structure, clean code เป็นต้น และการ<strong>ปฏิบัติอย่างสม่ำเสมอ</strong>เพื่อฝึก Skill เหล่านี้คือหนทางสู่การบรรลุเป้าหมาย</li><li>อีกตัวอย่าง เช่น หากอยากลดน้ำหนัก จำเป็นต้อง รู้ว่าจะลดน้ำหนักเท่าไหร่ การคุมน้ำหนัก การคุมอาหาร การเล่น cadio, weigh training และการมีทัศนคติที่ดี เป็นต้น</li></ul><p>ผู้เขียนชี้ว่า <em>หากเราไม่มีเป้าหมาย แต่ลงมือทำอย่างเดียว จะสามารถประสบความสำเร็จได้แน่นอน</em> ในส่วนตัว เรามองว่าอาจจะไม่สำเร็จขนาดนั้น เพราะหากมีกระบวนการปฏิบัติ และลงมือทำจริง แต่หากไม่รู้ว่าจะไปสุดตรงไหน ก็จะสับสนอยู่ดี และบางทีกระบวนการ ก็อาจจะเกิดได้ หลังเรามีเป้าหมาย เช่น</p><p>หากเราลงมือแต่การ Coding แต่ไม่รู้ว่าจะไปเป็น CTO, หรือ Senior กันแน่ เราก็ไม่รู้เลยว่าการจะ balanced coding &amp; management skill ต้องให้ฝั่งไหนมากกว่ากัน</p><p>ทำไมการมีเป้าหมายอย่างเดียวจึงไม่ตอบโจทย์?</p><ol><li>ผู้ชนะและผู้แพ้ต่างก็มีเป้าหมายเดียวกัน — เพียงแต่คนชนะลงมือทำมากกว่าและมีกระบวนการที่ถูกต้องกว่า</li><li>การบรรลุเป้าหมายเป็นเพียงการเปลี่ยนแปลงชั่วคราวเท่านั้น — เช่นหากเราวิ่ง sprint ให้เข้าเส้นชัย เราก็จะวิ่งเร็วแค่ช่วงนึง</li><li>เป้าหมายจำกัดความสุขของคุณ — ถ้าสำเร็จ….ฉันจะ…. เป็นการตีกรอบ แต่ถ้าโฟกัสแค่กระบวนการลงมือทำ มันจะไม่มีกรอบว่าอะไรคือ “ถึงแล้ว หยุดได้แล้ว”</li><li>“เป้าหมาย” อาจขัดแย้งกับความก้าวหน้าในระยะยาว — เป้าหมายเปลี่ยนได้ตลอด แต่เราต้องสร้างกระบวนการ (นิสัย) ให้ใช้ได้ตลอดชีวิต</li></ol><h3><strong>เป้าหมาย กระบวนการ และตัวตน</strong></h3><p>หากแบ่งการเปลี่ยนแปลงพฤติกรรมเป็น 3 ระดับจะวาดได้ดังวงกลมด้านล่าง</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_X_iIxEIcUj3MwKk8IC6bg.png" /></figure><ul><li>การเปลี่ยนแปลงอิงผลสัมฤทธิ์ : การมีเป้าหมาย และหากทำตามเป้าหมายได้ จะเห็นผลลัพท์ เช่น การลดน้ำหนัก การอ่านหนังสือให้ได้ 10 เล่มต่อเดือน</li><li>การเปลี่ยนแปลงกระบวนการ : เชิงอุปนิสัย เช่น การเป็นคนรักสุขภาพ การเป็นคนชอบอ่านหนังสือ</li><li>การเปลี่ยนแปลงเชิงอัตลักษณ์ : เชิงทัศนคตติ และการมองโลก ระดับนี้จะเกี่ยวข้องกับจิตใต้สำนัก เช่น การรักสุขภาพ จะส่งผลให้ชีวิตในอีก 60 ปีดีกว่าปัจจุบัน (เป็นในเชิงความเชื่อ การมองตัวเอง การเคารพตัวเอง)</li></ul><p><em>จะอธิบายอย่างไรขั้นที่ 2, 3 ต่างกันอย่างไรเชิงจับต้องได้?</em></p><p>หากต้องการผลสัมฤทธิ์ การเชื่อว่า “คนแบบไหน” ที่จะทำผลลัพท์ดังกล่าวได้ เป็นการกำหนดมุมมองใหม่ๆ ให้ตัวเองได้ดีกว่า ตัวอย่างเช่น คนพยายามเลิกบุหรี่ 2 คน คนแรกมองว่าตัวเอง<strong>พยายามเลิกบุหรี่</strong> แต่คนที่สองมองว่า<strong>ตัวเองไม่ใช่คนสูบบุหรี่</strong>อีกต่อไป</p><p>คนที่สองจะเห็นว่าตัวเองควรทำอย่างไร เพื่อให้กลายเป็นคนไม่สูบบุหรี่ ซึ่งเป็นเรื่องเล็ก ที่จะส่งผลใหญ่หลวงมาก (ลองคิดสภาพว่า การเป็นคนไม่สูบบุหรี่ จะมองว่าบุหรี่เป็น<strong>สิ่งที่น่าเกลียด</strong> ไม่ใช่สิ่งที่<strong>ต้องหลีกหนี </strong>ในหลายครั้งเราหนีพ้น แต่การมองว่าน่าเกลียดจะทำให้เราไม่ยุ่งกับมันเลย)</p><blockquote>เบื้องหลังความสำเร็จในการเปลี่ยนแปลงพฤติกรรม คือการเปลี่ยนแปลงความเชื่อที่มีต่อตัวเอง</blockquote><h3>ทุกการกระทำคือสิ่งที่โน้มเอียงไปสู่สิ่งที่คุณปราถนา</h3><p>การกระทำเพียงเล็กน้อย จะค่อยๆ ส่งผลให้คุณเป็นคนอย่างที่ต้องการ ดังนั้นจงเลือก “คนที่คุณอยากเป็น” ก่อน</p><ol><li>ตัดสินใจเลือกแบบฉบับของคนที่คุณอยากเป็น</li><li>พิสูจย์ให้ตัวคุณเองเห็นจากความสำเร็จ ที่ละเล็กๆ น้อยๆ ไปเรื่อยๆ</li></ol><p>ตัวอย่าง: <strong>คนที่จะเขียนหนังสือเป็นเล่มได้</strong> คือคนที่สม่ำเสมอและเชื่อถือได้ ดังนั้นเมื่อเลือกจะเป็นคนแบบนี้ ความสนใจจะไม่ใช่ว่า <em>“จะเขียนวันละ 10 หน้าอย่างไร”</em> แต่จะกลายเป็น <em>“จะเขียนหนังสือให้สม่ำเสมอต่อเนื่องอย่างไร”</em></p><h3>พฤติกรรมที่นำมาซึ่งผลลัพท์อันน่าพึ่งพอใจ มีแนวโน้มที่จะเกิดขึ้นซ้ำ</h3><p>สมองมีวิธีการสร้างนิสัย จากการ <strong>“ลงมือทำ ผิดพลาด เรียนรู้” </strong>โดย “<strong>การกระทำ” </strong>ใดก็ตามที่ได้ผลลัพท์เป็น “<strong>รางวัล” </strong>เชิงบวก เช่น คนที่ชอบอ่านหนังสือแต่เด็ก อาจจะเป็นเพราะได้รับคำชม หรือรางวัลบางอย่าง ซึ่งน่ากังวลมากหากให้รางวัลผิดทาง (เช่น เด็กที่ถูกสปอย อาจจะเพราะตอนเด็กเขารับรู้ว่าการเอาแต่ใจนั้นจะได้รับรางวัล)</p><p>นิสัยคือกฎที่เตรียมไว้สำหรับปัญหาแบบเดิมๆ: หากมนุษย์เจอสถานณ์การใดๆ ที่<br>ไม่เคยเจอ คนจะลองผิดลองถูกเพื่อแก้ปัญหา และเมื่อมีการกระทำที่ถูกต้อง <br><em>(ได้รับรางวัล)</em> สมองจะจดจำกระบวนการนั้น และใช้วิธีเดิมๆ แก้ไขปัญหาแบบเดิม จนในที่สุดจะกลายเป็นนิสัย</p><h3>นิสัยทำงานอย่างไร?</h3><p>โดยปกติจะมี 4 ขั้นตอนที่ก่อให้เกิดนิสัยได้แก่</p><ol><li>ปัจจัยกระตุ้น</li><li>ความปรารถนา</li><li>การตอบสนอง</li><li>รางวัล</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kRZkF1ZBaBMO89mb6EnMBg.png" /><figcaption>ขั้นตอนของการเกิดนิสัย</figcaption></figure><p><strong>ปัจจัยกระตุ้น</strong> คือสิ่งที่ทำให้เราเห็น “รางวัล” เช่น เมื่อหิว เราจะหาอาหาร “หิว” คือปัจจัย ส่วน “อาหาร” คือรางวัล ลองยกตัวอย่างให้ซับซ้อนขึ้นอีกหน่อย หากเราเป็นคนชอบอ่านหนังสือ (รางวัล) เมื่อเราเดินผ่านร้านหนังสือ (ตัวกระตุ้น) เราจะให้ความสนใจกับสิ่งนั้น</p><p><strong>ความปรารถนา </strong>คือความรู้สึกที่อยู่เบื้องหลังรางวัล เช่น หากรางวัลคือการอ่านหนังสือ จริงๆ ความปรารถนาอาจจะเป็นเพราะ “อ่านแล้วรู้สึกดี หรือรู้สึกเป็นที่ยอมรับ”</p><p><strong>การตอบสนอง</strong> คือ สิ่งที่แสดงออกมาเมื่อได้รับรู้ความปรารถนา เราเรียกสิ่งนี้ว่า “นิสัย” เช่น เมื่อรับรู้ได้ว่าการอ่านหนังสือยาก ๆ จะทำให้สอบได้คะแนนดี และ<em>ความปรารถนาของเราต่อการได้คะแนนดี </em>มีมากพอ เราจะ “อ่านหนังสือ” ซึ่งเมื่อทำซ้ำๆ ก็จะเกิดเป็นนิสัยขึ้นมาได้</p><p><strong>รางวัล</strong> คือ สิ่งที่เราคิดว่า เมื่อได้มันมาแล้วมันจะทำให้เรา “พึงพอใจ” และ “ทบทวนกระบวนการ” จากมัน โดยในตัวรางวัลนั้นย่อมมีความพึงพอใจแน่นอน เช่น อ่านหนังสือทำให้เกิดความสุข</p><p>หากการพบเจอ ร้านหนังสือ (ปัจจัยกระตุ้น) ทำให้เกิดความอยากอ่านหนังสือเพราะรู้สึกดี (ความปรารถนา) นำไปสู่การรีบเดินไปร้านหนังสือและหยิบมาอ่าน (การตอบสนอง) เมื่ออ่านหนังสือแล้ว ก็รู้สึกดีจริงๆ (รางวัล) สมองจะจดจำว่ากระบวนการข้างต้นเป็นสิ่งที่ดี ซึ่ง “สะท้อน” กลับไปหาสมองว่า การทำแบบนี้ดีนะ และเราจะมีแนวโน้มทำกระบวนการซ้ำๆ ไปจนกระทั่งมันกลายเป็นนิสัย ดังรูปด้านล่าง</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*OoeVP77vI0blnCIX06ipBQ.png" /><figcaption>วงจรการเกิดนิสัย</figcaption></figure><p>หากเราแบ่ง 4 ขั้นตอนด้านบนเป็น 2 ช่วง จะกลายเป็น</p><ol><li>ช่วงของปัญหา: ปัจจัยกระตุ้นและความปรารถนา</li><li>ช่วงของการแก้ไขปัญหา: การตอบสนองและรางวัล</li></ol><p>ตามตารางด้านล่าง</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yQJ4b9jY8SbolYtV-kGNAA.png" /><figcaption>แบ่งช่วงของวงจรนิสัย</figcaption></figure><p>คำว่าปัญหาอาจจะส่งผลในเชิงที่ดี และไม่ดีก็ได้ เช่น</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-ixqjQ3ioxzCSH8-FHAT8A.png" /><figcaption>ตัวอย่างในชีวิตจริง</figcaption></figure><h3>กฎ 4 ข้อที่จะช่วยสร้างนิสัย หรือ เปลี่ยนนิสัย</h3><p>หากเป็นนิสัยที่<strong>ดี</strong></p><ol><li>ต้องทำให้ชัดเจน</li><li>ต้องทำให้น่าดึงดูด</li><li>ต้องทำให้เป็นเรื่องง่าย</li><li>ต้องทำให้เป็นที่น่าพึงพอใจ</li></ol><p>หากเป็นนิสัย<strong>ไม่ดี</strong></p><ol><li>ต้องทำให้มองไม่เห็น</li><li>ต้องทำให้ไม่น่าดึงดูดใจ</li><li>ต้องทำให้เป็นเรื่องยาก</li><li>ต้องทำให้ไม่น่าพอใจ</li></ol><h3><strong>กฎข้อที่ 1 ต้องทำให้ชัดเจน</strong></h3><p>กระบวนการสำคัญสำหรับการเปลี่ยนนิสัยคือ การมีสติรู้ว่าเรากำลังทำอะไร เริ่มได้จากการลองวิเคราะห์นิสัยในแต่ละวันของเราออกมาตั้งแต่ตื่นนอน — นอนหลับ จากนั้นข้อใดเป็นนิสัยที่ดีให้ทำเครื่องหมาย (+) ข้อไหนไม่ดีให้ทำเครื่องหมาย (-) ข้อใดกลางๆ ให้ทำเครื่องหมาย (=)</p><ul><li>ตื่นนอน 9–10 โมงเช้า (-)</li><li>หยิบโทรศัพท์มาเปิดเล่น Facebook (-)</li><li>ไปอาบน้ำ แปลงฟัน (+)</li><li>เปิดคอม นั่งเช็ค Habitica (+)</li><li>กินข้าวกลางวันรวมกับข้าวเช้า (=)</li><li>ทำงาน (+)</li><li>ไปเดินเล่นข้างนอก (=)</li><li>กินข้าวเย็น (+)</li><li>อ่านหนังสือ (+)</li><li>เล่นเกมส์ (=)</li><li>เช็ค Habitica และ ClickUp (+)</li><li>Relax (+)</li><li>นอนตอน ตี 2 — ตี 3 (-)</li></ul><p>ซึ่งนิสัยที่ดี ไม่ดี กลางๆ จะมีตัวชี้วัดตาม “เป้าหมาย” ของตัวเองในตอนนั้น ไม่มีนิสัยที่ดีหรือไม่ดี มีแต่สิ่งที่มีประสิทธิภาพทำให้เกิดผลลัพท์ตามเป้าหมาย</p><p><strong>เทคนิค 1: การชี้และส่งเสียง สามารถช่วยเพิ่มการรับรู้ได้</strong></p><p>หากรู้ตัวว่ากำลังจะทำนิสัยไม่ดี เช่น กินขนมที่ทำให้อ้วน ให้ลองพูดออกมาดังๆ ว่า “เรากำลังจะกินขนมที่ทำให้อ้วนนะ ซึ่งไม่ดีเลยเพราะน้ำหนักจะขึ้น และก็ต้องมานั่งกลุ้มใจอีก”</p><p>ในขณะเดียยวกันหากกำลังทำนิสัยที่ดี เช่น กำลังจะไปวิ่งออกกำลังกาย ก็สามารถทำได้เช่นกันว่า “กำลังจะไปวิ่งแล้ว ดีจริงๆ เพราะทำให้สดชื้นและสุขภาพดีใจระยะยาวอีก”</p><blockquote>สิ่งใดก็ตามที่เราทำซ้ำๆ จะเป็นสิ่งที่สมองจดจำ และเมื่อทำไปนานๆ เราจะลืมว่าเรากำลังทำสิ่งนั้น เช่น หากกำลังนั่งตัดกระดาษอยู่ แล้วมีคนยื่นบัตรประชาชนมา เราก็อาจจะเผลอตัดบัตรประชาชน เพราะสมองทำการตัดกระดาษ จนมันคาดหวังว่าชิ้นส่วนต่อไปจะต้องเป็นกระดาษ</blockquote><h3>ทุกพฤติกรรมมีปัจจัยกระตุ้นพื้นฐาน ซึ่ง 2 ปัจจัยสำคัญที่สุดคือ “เวลาและสถานณ์ที่”</h3><p>โดยหากอยากทำสิ่งใด ควรกำหนด เวลาและสถานณ์ที่ ให้ชัดเจนออกมาเป็นประโยค (แนะนำให้เขียนและพูดออกมาดังๆ) เราจะเรียกสิ่งนี้ว่า <strong>ความมุ่งมั่นสู่ความสำเร็จ</strong></p><blockquote>รูปแบบ: เมื่อสถานการณ์ A เกิดขึ้น เราจะแสดงพฤติกรรม B เพื่อตอบสนอง</blockquote><blockquote>ฉันจะทำ ……………… ในวัน/เวลา ………………. ณ ………………….</blockquote><blockquote>เช่น สัปดาห์หน้าเราจะออกกำลังกาย 20 นาที ในวันที่ …… เวลา ……</blockquote><p>เทคนิค: หากจะกำหนดช่วงเวลา แนะนำให้ลองทำในช่วง “แรก” ของเวลา เช่น ตอนตื่นนอน วันแรกของอาทิตย์ วันแรกของเดือน ของปี เป็นต้น</p><h3>การได้รับสิ่งของ/ประสบการณ์ใหม่ๆ อย่างหนึ่ง จะนำไปสู่การอยากได้รับสิ่งของ/ประสบการณ์อื่นๆ ตามมา</h3><p>เสมือนถ้าเราซื้อหนังสือหนึ่งเล่ม แล้วรู้สึกว่าควรจะซื้อปกหนังสือ ซื้อปากกาเน้นความสำคัญ หรือซื้อหนังสืออื่นๆ ที่อ่านเข้ากันได้ เรื่องนี้สามารถนำมาใช้กับนิสัยได้ด้วย เช่น หากเรารู้สึกว่ามือไม่สะอาด &gt; ก็จะไปล้างมือ &gt; หาผ้ามาเช็ดมือ เราเรียกสิ่งนี้ว่า <strong>“การต่อยอดพฤติกรรม”</strong></p><p>สามารถใช้ประโยชน์ได้ จากการที่พยายามวิเคราะห์นิสัยปัจจุบัน และนำมันมาเป็น trigger ให้เกิดนิสัยที่เราต้องการ เช่น</p><ul><li>“หากเราเริ่มรู้สึกว่าขี้เกียจ เราจะลุกไปอาบน้ำทันที”</li><li>“หากได้ลืมตาตื่นแล้ว เราจะลุกขึ้นไปยืดเส้น ยืดสายในทันที”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*6ScUIEd95qsomdAg9bV0eA.png" /><figcaption>การนำพฤติกรรมหนึ่ง เป็นตัวกระตุ้นของพฤติกรรมต่อไป</figcaption></figure><p>โดยหากสามารถระบุรายละเอียดได้ชัดเจนมากขึ้น (ตัวกระตุ้น, เวลา, สถานณ์ที่, จำนวน) จะสามารถทำให้พฤติกรรมง่ายต่อการจดจำ และนำไปปฏิบัติและสร้างได้ง่ายขึ้นอีกด้วย</p><blockquote>ตัวอย่าง: หลังจากเราอาบน้ำและใส่เสื้อผ้าเสร็จ เราจะหาที่นั่งสบายๆ และหยิบหนังสือที่ตั้งใจไว้มาอ่าน หลังจากอ่านได้จนรู้สึกว่า “พอ” ให้นำสิ่งที่อ่านมาสรุปลง Medium ในทันที</blockquote><h3>คนเราเลือกสินค้าไม่ใช่เพราะมัน “คืออะไร” แต่เพราะมันอยู่ “ที่ไหน” ต่างหาก</h3><p>สภาพแวดล้อมส่งผลกับการตัดสินใจของเรา เราสามารถควบคุมสภาพแวดล้อม เพื่อให้มันส่งเสริมกับเป้าหมายและความต้องการได้ โดยประสาทสัมผัสที่ใช้มากสุดคือ<strong>สายตา</strong> ดังนั้นสิ่งใดที่อยู่ใน ระดับสายตาจะมองเห็น (เรื่องเล็ก ๆ แค่นี้เอง) จะกลายเป็นปัจจัยกระตุ้นต่อเรื่องอื่นๆ ได้</p><p>ประยุกต์ใช้งาน: จัดสภาพแวดล้อมให้เหมาะสมกับเป้าหมาย หรือนิสัยที่ต้องการสร้าง เช่น</p><ul><li>หากต้องการเป็นคนอ่านหนังสือเยอะ ควรจัดหนังสือไว้ใกล้ๆ ตัว เช่น บนหัวเตียง ที่สามารถหยิบมาอ่านได้ทันที</li><li>หากต้องการเป็นคนสุขภาพดี ให้วางอาหารสุขภาพให้เห็นได้ชัดเจนในห้องครัว หรือวางชุดออกกำลังกายไว้เป็นชุดแรกสุดในตู้เสื้อผ้า</li><li>หากอยาก Coding ให้ได้ทุกวัน ให้ตั้ง pop up browser เป็นเว็บสำหรับฝึก coding</li></ul><h4><strong>เราสามารถเชื่อมโยงนิสัย เข้ากับบริบทได้</strong></h4><p>หากเรากำลังต้องการอ่านหนังสือ เป็นเรื่องยากที่จะทำในสถานณ์ที่รบกวนสมาธิ ซึ่งแน่นอนว่า หากเราทำนิสัยบางอย่างขัดกับบริบทที่ควรจะเป็น นิสัยนั้นๆ จะสร้างได้ยาก เช่น หากเราต้องการเป็นคนนอนเร็ว แต่ชอบเล่นโทรศัพท์บนเตียงนอน สมองจะคิดว่า เตียงนอนไม่ใช่แค่ที่สำหรับนอน และทำให้ความรู้สึกง่วงมียากขึ้น</p><blockquote>เทคนิค: หนึ่งพื้นที่ หนึ่งการใช้สอย คือ การแบ่งส่วนของสถานณ์ที่เข้ากับพฤติกรรม เช่น ห้องทำงานไว้สำหรับทำงานเท่านั้น หากจะทานข้าว หากนำไปทานในห้องทำงานเด็ดขาด การแบ่งนี้ยังสามารถทำได้กับเรื่องอื่นที่ไม่ใช่สถานณ์ที่ด้วย เช่น เมื่อใช้งาน Facebook เราจะใช้เพื่อแชร์เนื้อหาที่เกี่ยวกับทั้งงาน และเรื่องส่วนตัว แต่หากใช้งาน IG จะโฟกัสแต่เรื่องสนุกๆ ส่วนตัว เท่านั้น</blockquote><p>หากต้องการสร้างพฤติกรรมที่แน่นอนและคงที่ การสร้างสภาพแวดล้อมที่เหมาะสมให้มั่นคงและแน่นอน เป็นสิ่งที่หลีกเลี่ยงไม่ได้เช่นกัน</p><p>หากต้องการจำจัดนิสัยที่ดี ให้เรากำจัดปัจจัยกระตุ้นต่อนิสัยที่ไม่ดีนั้นออกไปในสภาพแวดล้อมที่เราอยู่ เช่น</p><ul><li>เป็นคนที่ทำงานที่บ้านแล้วชอบนอนกลางวัน -&gt; เพราะโต๊ะทำงานอยู่ติดเตียง -&gt; ลองย้ายโต๊ะทำงานไปที่ๆ ไกลจากเตียง หรือสิ่งที่จะทำให้นอนได้</li><li>เป็นคนชอบกินของกลางดึก -&gt; นำตู้เย็น หรือสิ่งที่จะทานได้ออกไปไว้ไกลตา หรือนำไปซ่อน</li><li>ถ้าทำท่าเหมือนจะทำงานไม่เสร็จซักอย่าง -&gt; ให้ลองนำโทรศัพท์ไปวางไว้ ไกลตัว และหันมาโฟกัสทำงาน</li></ul><blockquote>*การข่มจิตใจ เพื่อไม่ให้ทำในสิ่งที่ไม่ควร ต้องอาศัยการฝึกฝน และการฝึกฝนที่ดีคือการทำในสถานณ์ที่และสภาพแวดล้อมที่เหมาะสม</blockquote><h3>เราสามารถใช้นิสัยที่อยากทำเป็นอันดับแรก มาช่วยเสริมนิสัยที่เราอยากสร้างได้</h3><p>โดยการใช้<strong>เหตุการณ์บางอย่างเป็นตัวกระตุ้น</strong> และบังคับให้ตนเองทำ<strong>สิ่งที่ต้องทำ</strong> แล้วจึงตามด้วย<strong>สิ่งที่อยากทำ</strong> เช่น หากต้องการเป็นคนสวดมนต์ก่อนนอน แต่ก่อนนอนชอบเล่นโทรศัพท์ สามารถทำได้ดังนี้</p><p>เมื่อฉัน<strong>เปิดประตู</strong>เข้ามาในห้อง ฉันจะ<strong>สวดมนต์ก่อนนอน</strong> จากนั้นฉันจะ<strong>หยิบโทรศัพท์</strong>ขึ้นมาเล่น</p><ul><li>การเปิดประตู คือการ<strong>ปัจจัยกระตุ้น</strong></li><li>การสวดมนต์ คือนิสัยที่<strong>ต้อง</strong>ทำ</li><li>การหยิบโทรศัพท์ขึ้นมาเล่น คือนิสัยที่<strong>อยาก</strong>ทำ</li></ul><p>สามารถสร้างเป็นรูปแบบได้ดังนี้</p><blockquote>เมื่อเกิด………[<strong>เหตุการณ์/พฤติกรรม</strong>] ฉันจะไปทำ……[สิ่งที่<strong>ต้อง</strong>ทำ] หลังจากนั้นฉันจะทำ……..[สิ่งที่<strong>อยาก</strong>ทำ]</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60c43de6fd0b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hack the Crisis Thailand and technical tools behind it.]]></title>
            <link>https://kaninkearpimy.medium.com/hack-the-crisis-thailand-and-technical-tools-behind-it-b35457d3cfac?source=rss-2ce7b61de788------2</link>
            <guid isPermaLink="false">https://medium.com/p/b35457d3cfac</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[online]]></category>
            <category><![CDATA[thailand]]></category>
            <category><![CDATA[hackathons]]></category>
            <category><![CDATA[covid19]]></category>
            <dc:creator><![CDATA[Kanin Kearpimy]]></dc:creator>
            <pubDate>Fri, 08 May 2020 14:34:12 GMT</pubDate>
            <atom:updated>2020-05-15T05:21:52.348Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zSGunPEqMphLQuoKkJHgVw.jpeg" /></figure><h3>What is Hack the Crisis Thailand?</h3><p>Due to the outbreak of COVID-19, <a href="https://asean.usmission.gov/yseali/">Young Southeast Asian Leaders Initiative</a>, the US Embassy of Thailand, <a href="https://studentambassadors.microsoft.com/en-us">Microsoft Learn Student Ambassador</a> and 55 alliances have collaborated together to fighting dangerous disease. Hack the Crisis Thailand is FULL online Hackathon for COVID-19. we acquired 350+ participants, 40+ mentors, and 44 projects submitted. With our valuable sponsors, The total prizes climb approximately to $24,000 (800,000 baht).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QSXM-wK6_XLH3EyKWSPYVg.png" /></figure><h3>Who am I and What did I contribute?</h3><p>My name is James. I’m still student and software developer. I in charged of technology lead (this is my first time ever), managed technology’s overview behind online hackathon. So this article is going to tell you how we, tech team, deal technical tool for accommodating core-team, participant, and our mentor. What were the emergencies situation occurring? These are my experiences and not the best tools anyway. Just hope the reader would get some value that can adapt to your circumstance. :)</p><h3><strong>Index</strong></h3><ul><li><strong><em>Our resources as priority.</em></strong></li><li><strong><em>Overview of this project in term of technology.</em></strong></li><li><strong><em>Pre-Hackathon.</em></strong></li><li><strong><em>Hacking.</em></strong></li><li><strong><em>Post-Hackathon.</em></strong></li><li><strong><em>Other.</em></strong></li></ul><h3>Our Resources as priority</h3><p>We didn’t talk about any features, technology, or any workload but looking at our HUMAN Resource. Before we talk about any technical tools. We should consider our current resources at hand. There are 3 key factors for tech-team to drive this project successfully;</p><ul><li>How many tech-team members do we have?</li><li>How many days do we have left?</li><li>How much can our members commit to this project?</li></ul><p>We have only 3 people in our teams; a Software Developer, a Technical Assistant, a Technology Lead. Everyone has their full-time jobs which means only 4–5 hours after full-time can pay attention to Hackathon Project. It was the first week of April 2020 and Hackathon was going to land on 24 April 2020. We still had 20 days. It was definitely challenging and exciting.</p><h3>Overview of project in term of technology</h3><p>Technology is tool for accelerating and accommodating a conventional process to be easier and faster. We analyzed all processes of offline hackathon converting into online components. We can look at them below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*n-SpHTNm0fYj4Mk4YdYR_Q.jpeg" /></figure><p>If we re-arrange grouping by event STATE;</p><p><strong>Pre-Hackathon:</strong></p><ul><li>Public Relation (Online Webinar)</li><li>Registration</li></ul><p><strong>Hacking:</strong></p><ul><li>Interactive Activities (Team Building, Online Session, and Opening &amp; Closing Ceremony).</li><li>Mentor Booking &amp; Mentoring Session. (Platform)</li><li>Submission. (Platform)</li><li>Working Collaboration for the participant.</li></ul><p><strong>Post-Hackathon:</strong></p><ul><li>Voting System.</li></ul><h3>Pre-Hackathon</h3><p><strong>Registration</strong></p><p>At first, we intended to open registration on the project’s platform (which was developed by tech-team) but accidentally we could not deliver it on time. So we must shift registration to the third-party online form (JotForm). While the developer was struggling with platform building. Another task was WEBINAR.</p><p><strong>Webinar (Live)</strong></p><p>After meeting with communication teams we decided webinar’s components including <strong>Connected to Facebook Live</strong>, Display Project <strong>identity</strong> (Logo, Branding), a few <strong>effect</strong> like TV board-casting and <strong>User-Friendly (For panelist) to join</strong></p><p>We have 4 choices on hand listing below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*_-C5dIJ16ZDVuptLtE3bwA.jpeg" /></figure><p>In the end, we selected StreamYard because of its compatibility with our requirements.</p><blockquote><strong>Lesson Learn 1: </strong>Registration can use third-party then converting their data into our platform database. Just making sure we set the same meta-data.</blockquote><blockquote><strong>Lesson Learn 2: </strong>Consider panelist’s familiarisation of technology must be concentrated. And <strong>15 Minutes before live</strong> could be thrill moment of the back-stage technician.</blockquote><blockquote><strong>Lesson Learn 3: </strong>Each meeting tools designed to serve meeting, streaming tools are the same.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iPSesK37VZZrRC9nFh9hIQ.png" /><figcaption>Facebook Live via StreamYard as back-stage.</figcaption></figure><h3>Hacking</h3><p><strong>Platform.</strong></p><p>The project team decided to build up platform name (www.hackathonthainald.com) for further usage not only this Hackathon. The platform would serve project submission, membership, and voting system. So We build it from scratch. Tech-Team select Ruby on Rail and build-in database and deploying to DigitalOcean. (We aren’t going to talk about platform yet here in detail.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IXsR343EHYw69bTkRhsjZg.png" /><figcaption>Participant Project submitted to platform</figcaption></figure><p><strong>Mentoring Booking.</strong></p><p>At first, we aim to merge the mentoring system into a platform. But as confused communication and time were running out (we try to develop a mentoring system 4 days before the event!) We must focus on functional; Participant booking, Mentor notification, and mentoring. We utilized Wordpress and custom plugin (with our custom PHP code in the plugin) to connect them to google services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*pGi-bhQBN1fL-lHRYKsWVw.png" /><figcaption>Mentor Booking System</figcaption></figure><p><strong>Working Collaboration Tool</strong></p><p>This tool, on purpose, set to let participants and teams working together. Tech-team compares 3 tools as below (Team, Slack, Discord).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*mnGz185mODndpTCBs0ryDQ.jpeg" /></figure><p>As a result, We select discord because its functions could serve as Voice &amp; Video channel, Also as an official text channel for board-casting and support. <em>(We didn’t cover detail yet in this article. Because it could take so long; channel type, channel we made, and why we created those channels.)</em></p><p><strong>Interactive Activities</strong></p><p>I know you maybe get confused: why don’t we utilized the same tool as previous. The reasons are listed below.</p><ul><li>Interactive Activities require specific features such as temporary broadcast, control all participant attention.</li><li>Some official events like Open &amp; Closing Ceremony need specificity.</li><li>There was brainstormings session, Discord couldn’t serve that requirement best.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*x3MxhDPLQJPvR3Xxbx16ZA.jpeg" /></figure><p>We must thank communication &amp; content teams for the suggestion of two impressive tools: Remo (Virtual Networking Cloud) and Mural (Virtual White Board for brainstorm)</p><blockquote><strong>Lesson Learn 1:</strong> If that tool requires coding from scratch, Do it !! but if not, Choose an alternative.</blockquote><blockquote><strong>Lesson Learn 2:</strong> Official is official.</blockquote><blockquote><strong>Lesson Learn 3:</strong> Platform by scratch development could be more customized but require long-time simultaneously</blockquote><blockquote><strong>Lesson Learn 4:</strong> Wordpress isn’t that bad, It could embed custom code and serve the necessary requirement.</blockquote><h3><strong>Post-Hackathon</strong></h3><p>Everyone thinks post-hackathon was the easiest part. It was but we must not be negligent. Because we faced huge trouble due to it.</p><p><strong>Voting System</strong></p><p>We built a platform for voting system. Platform set permission for one who can vote must register and have an account on platform. Sound simple, although the reality is suffering.</p><p>The platform that we built got crash by 3 attacking:</p><ul><li>Overload: We use digitalOcean lowest tier due to that we didn’t expect users would go through platform much (traffic load can serve for 500 people but 4000 registration drive into our platform so it crashes). We fix it on time by update tier and optimize some function.</li><li>Automatic bot: someone tries to automated bot to register and vote and comment. We can handle this problem before it occurring by embed CAPTCHA , IP-Address monitoring, and account verification by email. So we count voting scores by only trusting account.</li><li>DDoS attack: This was what we expect at first so we utilized Cloudflare protection.</li></ul><blockquote><strong>Lesson Learn 1:</strong> Security (Standard) is inevitable for production platform</blockquote><blockquote><strong>Lesson Learn 2</strong>: While voting period, our system had been down and lose some data, So backup is really important.</blockquote><blockquote><strong>Lesson Learn 3:</strong> This according to Lesson 2, If any crisis happens, We (as tech team) must help communicating as much as we can. Because there is no one understands what happens like us.</blockquote><blockquote><strong>Lesson Learn 4</strong>: Voting System isn’t scared but any features that involve more people, need more closer monitoring.</blockquote><h3>Other</h3><p>For core-team, we used Slack as main tool and Trello for task management.</p><h3>Conclusion</h3><p>As a technology lead (first time) I’ve learned a lot from this project and essential lesson are “if crisis occurs, communication is definitely important” and communicate with other teams as much as you communicate with your team.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b35457d3cfac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microsoft Student Partner — Reunion]]></title>
            <link>https://kaninkearpimy.medium.com/microsoft-student-partner-reunion-22ab45c6b047?source=rss-2ce7b61de788------2</link>
            <guid isPermaLink="false">https://medium.com/p/22ab45c6b047</guid>
            <category><![CDATA[microsoft-student-partner]]></category>
            <category><![CDATA[msp]]></category>
            <dc:creator><![CDATA[Kanin Kearpimy]]></dc:creator>
            <pubDate>Sun, 08 Dec 2019 06:59:28 GMT</pubDate>
            <atom:updated>2019-12-08T06:59:28.042Z</atom:updated>
            <content:encoded><![CDATA[<h3>Microsoft Student Partner — Reunion</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eBT2wnpNkWOgHWynKinFoQ.jpeg" /></figure><p>เมื่อวาน เรียกได้ว่าเป็นวันที่ได้รับพลังงานและได้รับคำแนะนำที่ดีมีค่า</p><p>จากพี่ๆ MSP ผู้มีประสบการณ์ รุ่นใหญ่ทุกท่าน</p><p>เราแลกเปลี่ยนกันหลายเรื่อง ตั้งแต่</p><p>Cloud Computing, Quantum Computing</p><p>Digital Consultancy ไปจนถึงเรื่องง่ายๆ อย่างการดื่มกาแฟ!!!</p><p>คำถามนึงที่เราตั้งใจจะไปถามพี่ๆ มากก็คือ</p><blockquote>“ถ้าอยากเป็เด็ก ป ตรี ที่กำลังจะก้าวเข้าสู่โลกการทำงาน เราควรมองหาอะไรจากงานแรก” (จริงๆ คำถามยาวกว่านี้)</blockquote><p>และด้วยความเมตตาจากพี่ๆ รุ่นใหญ่ ก็ต้องบอกเลยว่าแต่ละคำตอบ</p><p>ทำให้เราอมยิ้ม แต่ก็คบคิดไปพร้อมๆ กัน</p><p>- ผู้ใหญ่สุดอย่าง พี่ต้น head ecosystem แห่ง SIRI VENTURES ให้คำแนะนำอย่างประทับใจไว้ว่า</p><p>ในฐานะผู้บริหาร มองหาเด็กจบใหม่ที่ coachable ได้ กล่าวคือ คนที่ “พร้อมเรียนรู้” และ “พร้อมรับคำแนะนำ” เพราะในมหาลัยจะสอน fundamental เพื่อให้เราเป็น specialist (ในสาย computer science นะ) แต่การทำงานจริง การมองในมุม “ลึก” อย่างเดียวทำไม่ได้ มันต้องมองในมุม “กว้าง” ด้วย และการจะมองมุมกว้างได้หลายครั้งต้องมีการแลกเปลี่ยน คิด ปรับการคิด</p><p>ดังนั้น “การมองหาคนที่พร้อมจะ coach เรา” ถือเป็นเรื่องสำคัญในงานแรกหลังเรียนจบ เพราะมันจะเป็นการปูพื้นฐานกระบวนการคิดไปตลอด</p><p>- พี่ใหญ่อีกท่าน พี่ KK ผู้จบ MBA จาก Cambridge และตอนนี้เปิด digital counsultancy firm อยู่ พูดอย่างน่าสนใจว่า</p><p>เด็กจบใหม่อย่างเราๆ น่าจะมองหา 2 สิ่งสำหรับงานแรกคือ</p><p>1. Boss ที่พร้อมจะเป็นทั้ง leader และ coach ที่คอยปรับทัศนคติการใช้ชีวิตและการทำงานให้กับเรา เพราะหลายๆ ครั้งแม้จะมีความรู้ การเข้าทำงานก็จำเป็นต้องเริ่มใหม่ ในหลายๆ เรื่อง การมีคนคอย guide ให้เห็นภาพ และไปพร้อมๆ กับเขาคือสิ่งสำคัญมาก</p><p>2. Opportunity to Initiate project พี่ KK บอกไว้น่าสนใจที่ “บางทีเราทำโปรเจคไปเป็นปี สุดท้ายพอเอาไปเขียนใน Resume จะกลั่นออกมาได้แค่ 1 บรรทัดเท่านั้น เช่น “Collaborate 40 people in team to reduce 30% redundant tasks in process.”</p><p>ดังการมีโอกาสให้เราได้ใช้ศักยภาพของเรา เพื่อทำโปรเจค</p><p>ไปพร้อมๆ กับการมีคน coach เพื่อทำผลงานเป็นชิ้นเป็นอัน</p><p>คือสิ่งที่สำคัญ สำหรับ first job</p><p>- พี่ใหญ่อีกท่าน พี่ไมค์ อดีต MSP Lead ผู้เคยถูก Nominated ไป USA (ถ้าไม่ได้คนนี้ Mindset ของเราเกี่ยวกับงาน คงไม่เป็นแบบนี้เหมือนกัน)</p><p>พี่ไมค์บอกไว้ว่า การทำงานก็เหมือนการเริ่มเข้ามหาลัย แต่สิ่งที่จะต้องสู้ จะไม่ใช่แค่การสอบ แต่มันจะเป็นทั้ง สภาพแวดล้อม ผู้คน และ “ตัวเอง”</p><p>ดังนั้นสถานที่แรกจะเป็นเหมือนสิ่งที่ shape mindset, work culture ของเราไปเลย เพราะงั้น first job เราควร align ตัวเราว่า อยากเป็นคนมี mindset “ประมาณ” ไหน และอยากเป็น “leader” แบบไหนในอนาคต</p><p>ส่วนตัวเราเป็นคนที่ชอบ “ฟังและถาม”และเราก็อยากจะยืนยันเลยว่า การฟังอย่างตั้งใจถามกับคนที่เหมาะสม ทั้งสถานการณ์และเวลาคือสิ่งที่มีค่ากว่าการเข้าเรียนในห้องเรียนเสียด้วยซ้ำ</p><p>Credit Picture: P’KK</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22ab45c6b047" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[สรุป Data Science Talk 3.0 by 100x and Clazy[07-Dec-2019]]]></title>
            <link>https://kaninkearpimy.medium.com/%E0%B8%AA%E0%B8%A3%E0%B8%B8%E0%B8%9B-data-science-talk-3-0-by-100x-and-clazy-07-dec-2019-c346f4ea90ce?source=rss-2ce7b61de788------2</link>
            <guid isPermaLink="false">https://medium.com/p/c346f4ea90ce</guid>
            <category><![CDATA[talks]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[events]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Kanin Kearpimy]]></dc:creator>
            <pubDate>Sun, 08 Dec 2019 03:49:15 GMT</pubDate>
            <atom:updated>2019-12-08T03:49:15.508Z</atom:updated>
            <content:encoded><![CDATA[<h3>สรุป Data Science Talk 3.0 by 100x and Clazy Cafe [07-Dec-2019]</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O8RkTB0EzsetCAs42pcLzg.jpeg" /></figure><p>จบกันไปแล้วสำหรับงาน Data Science Talk 3.0 จัดโดยทีมงาน 100x ร่วมกับ Clazy Cafe เพื่อนำผู้เชี่ยวชาญด้าน Data ในวงการต่างๆ มาแบ่งปันประสบการณ์ ซึ่งในครั้งนี้ มีผู้ชำนาญถึง 3 ท่านจากวงการประยุกต์ใช้ศาสตร์ Data Science ของการแพทย์ ธุรกิจและสังคม เข้ามาแบ่งปันกันอย่างน่าติดตาม จะเป็นอย่างไรกันบ้าง เชิญติดตามต่อได้เลย</p><blockquote>ในการคิดค้นยาหนึ่งชนิด จะต้องผ่านกระบวนการขั้นต่ำ 10 ปี เพื่อหาสารประกอบในการยับยั้งสิ่งผิดปกติในร่างกาย แต่เราสามารถลดระยะเวลาตรงนั้นให้เหลือ 3 ปีได้</blockquote><p>ท่านแรก Dr. Naravut Suvannang นักวิจัยจากมหาวิทยาลัยมหิดล ได้ร่วมแบ่งปันการประยุกต์ Data Science ในวงการแพทย์ไว้อย่างน่าสนใจ</p><p>ในทางการแพทย์ประยุกต์ใช้ Data Science อยู่มากเหมือนสาขาอื่นๆ อาทิ</p><ul><li><strong>Medical image Analysis: </strong>ใช้ AI ในการตรวจหาโรคจากฟิล์ม เอกซเรย์ ซึ่งในสายนี้มีคนสนใจเยอะมาก เพราะค่อนข้างจับต้องได้ที่สุด</li><li><strong>Genetics and Genomics: </strong>วิเคราะห์ Code ทางร่างกาย ซึ่งหา pattern ที่ผิดพลาดไปภายในร่างกาย อาจจะทำให้เกิดโรค เช่นมะเร็งได้ (รักษาเร็ว ได้หายเร็ว รักษาช้า ได้ช้า)</li><li><strong>Creation of drugs: </strong>กระบวนการสร้างยา ด้วยการใช้ data เข้ามาค้นหาสารประกอบที่เหมาะสมกับโรค ด้วยการ Matching สารตั้งต้น (เชื้อโรค) กับสารประกอบ (ตัวยา) ที่สามารถหักล้างกันได้</li><li><strong>Virtual Assistance for patient and customer support: </strong>ใน case นี้สิ่งที่จับต้องได้ที่สุด ก็คงหนีไม่พ้น Chatbot หรือ intelligence assistance ที่คอยช่วยเหลือผู้ป่วยในการใช้ชีวิต หรือการรักษาที่ดีขึ้น</li><li><strong>Predictive medicine: </strong>การพยากรณ์ว่าผู้ป่วยเสี่ยงต่อการเป็นโรคมากน้อยเพียงใด จากการใช้ข้อมูลย้อนหลังต่างๆ เช่น ประวัติการใช้ยา เป็นต้น</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*JW5Lneor_90niim6QKVdEg.jpeg" /></figure><p><strong>แล้ว Data Science จะมาช่วยในการอออกแบบยา (Creation of Drugs) ได้อย่างไร</strong></p><p>ยาคือสิ่งที่ช่วยให้ร่างกายดีขึ้นจากสิ่งผิดปกติ ซึ่งประวัติของยาเริ่มมาตั้งแต่การเป็น เวทมนต์ สมุนไพร ยาเคมี และยาที่รักษาได้อย่างแม่นยำ (ทราบว่าตัวยาสามารถฆ่าสิ่งผิดปกติได้)</p><blockquote>คนเราอาจจะมีปฏิกิริยาที่ไวต่อยาไม่เหมือนกัน ดังนั้นการปรับเปลี่ยนปริมาณของยา (หรือสารประกอบทางเคมี) ให้ตรงกับผู้ป่วยมากที่สุด จะทำให้การรักษาเหมาะสมมากขึ้น เราเรียกสิ่งนี้ว่า Precision Medicine</blockquote><p>กระบวนการในการออกแบบยานั้นมีหลาย stages ซึ่งจากตัวสารประกอบที่มีมากถึง 10,000 จะมีเพียงสารประกอบหลักหน่วยเท่านั้น ที่จะออกมาเป็นยาได้ทาง Dr.Naravut ยกตัวอย่างได้อย่างน่าสนใจว่า</p><blockquote>หากจะรักษาโรคมะเร็งนั้น จำเป็นต้องทราบก่อนว่า สารตัวใดในร่างกายผิดปกติ จากนั้นจึงไปหาว่าแล้วสารประกอบตัวใดบ้างที่จะยับยั้งความผิดปกติดังกล่าวได้ แล้วจึงนำมาทดลองเพื่อสร้างยา โดยในกระบวนการค้นหาสารประกอบเพื่อนำมาทดลองนั้นใช้เวลามาก แต่สามาถลดได้ด้วยการใช้ Data ของยาเข้ามา เพื่อหากลุ่มของสารประกอบที่มีโอกาสสูงในการทำลายหรือยับยั้งสิ่งผิดปกติได้ แล้วจึงนำมาทำการทดลอง</blockquote><p>มาถึง Speaker คนที่ 2 คุณ Idsarut Sangsuan — Data Analytics Consultant จาก PulseMetrics บริษัทที่ปรึกษาด้าน Data Science จากสิงค์โปร์ คุณ Idsarut กล่าวประโยคเปิดไว้อย่างน่าสนใจ</p><blockquote><strong>ในฝั่ง Business นั้นการใช้งาน Data Analytics คือการหา “Decision”</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JLIFIxKz3J9lJtuZwGLA-g.jpeg" /></figure><p>สามารถแบ่ง Data Analytics ได้เป็น 4 ขั้น</p><ol><li>Descriptive Analytics: อะไรเกิดขึ้นกับธุรกิจบ้าง ใช้แค่ข้อมูลย้อนหลังที่มีการเก็บอยู่แล้ว</li><li>Diagnostic Analytics: หาเหตุผลของสิ่งที่เกิดขึ้นภายในธุรกิจ (เริ่มวิเคราะห์ปัจจัยภายในและภายนอก ที่ไม่ได้มีแต่ data แล้ว)</li><li>Predictive Analytics: พยากรณ์ว่าอะไรจะเกิดขึ้นจากปัจจัยและข้อมูลต่างๆ</li><li>Prescriptive Analytics: นำผลพยากรณ์มาช่วยในการตัดสินใจ (Decision)</li></ol><p>ซึ่งระหว่างการบรรยายได้มีการยก Case ทางธุรกิจที่ใช้ Data Analytic เข้าไปใช้งานอย่างน่าสนใจ ซึ่งแต่ละ project ก็จะมีการใช้ techniques ที่แตกต่างกัน</p><h4><strong>หากเราจะวัด Campaign Performance เพื่อเลือก Promotion ที่ดีที่สุดและใช้วิธีการเรียบง่ายที่สุด (ในทางสถิติ) จะทำได้อย่างไร? — AB Testing อาจเป็นคำตอบ</strong></h4><p>การใช้งาน A-B Testing คือการแบ่งกลุ่ม Target เป็น A, B แล้วแต่ละกลุ่มใช้ Condition ต่างกัน (ในทางปฏิบัติอาจจะแบ่งเป็น A, B, C ก็ได้ โดย A, B คือกลุ่มที่จะมีการใช้เงื่อนไขตามที่เราอยากทดลอง แต่ C จะไม่มีการใช้งานเงื่อนไขใดๆ เลย)</p><ul><li>One Customer 1 to 2 condition: ใช้ Period of time เพื่อแบ่งเป็น Condition และ Target ต่างๆ เช่น ตอนเช้าให้ promotion 1 ตอนบ่ายให้ promotion 2</li><li>Many Customer to Many Condition: กลุ่ม A ใช้ Condition A และกลุ่ม B ใช้ condition B จากนั้นวัดผลจากสิ่งที่ customer interact</li></ul><p>สิ่งที่ A/B Test จะให้คือ Result ที่วัดผลได้ว่า ลูกค้ากลุ่มใดสนใจ Campaign และมีการ interact มากกว่ากัน ซึ่งก็จะมีส่วนช่วยตัดสินใจการนำเสนอ Campaign ต่อไป</p><h4><strong>ถ้าเราอยากรทราบว่าใครจะซื้อ Mobile phone จากเราบ้าง เราจะ Prediction อย่างไร ?</strong></h4><p>Customer จะมีข้อมูลโดยทั่วไปเมื่อเขาทำการซื้อสินค้าบางสิ่ง ซึ่งสามารถแบ่ง Group ข้อมูลได้เป็น 2 อย่าง</p><ol><li>Profile</li></ol><ul><li>อัตราเงินเดือน</li><li>อาชีพ</li><li>เพศ</li></ul><p>2. Purchase</p><ul><li>สินค้าที่ซื้อในช่วง 3 เดือนที่ผ่านมา</li><li>รูปแบบของสินค้าที่ซื้อ</li></ul><p>ทั้ง Profile &amp; Purchase สามารถนำข้อมูลมาสร้างเป็น Classification Model ขึ้นมาเพื่อแบ่งว่าลูกค้าท่านใดมีโอกาสซื้อ Mobile Phone อาทิ หากเป็นลูกค้าที่มี Profile เงินเดือนมากกว่า 30k อาชีพ นักธุรกิจ เพศชาย และมี Purchase ที่พึ่งซื้อสินค้า Iphone ในราคา 35k อาจจะมีโอกาส (Score) ในการซื้อ Mobile Phone ออกใหม่สูงกว่า (High % Score)</p><p>Speaker ท่านสุดท้าย คุณ Dollapak, Data Engineer ผู้อุทิศตัวทำงานในสายเพื่อสังคมจาก Institute of Public Policy and Development — IPPD</p><p>ได้ยกข้อมูลการเปลี่ยนแปลงทางสังคมต้อง drive ด้วยคน 4 แบบ ได้แก่</p><ol><li>Helper: คนที่คอยช่วยเหลือ รักษาจิตใจคนภายในกลุ่ม</li><li>Rebel: พึ่งเข้าหาเป้าหมาย แล้วแก้ปัญหาเลย</li><li>Advocate: คนที่คอยปราณีปรานอม คนทั้งภายในและภายนอก</li><li>Organiser: มองภาพรวม และจัดประชุมเพื่อวาง Goal.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MENb44_sQAKDJ2OCQcxM0Q.jpeg" /></figure><p>คุณ Dollapak ได้แบ่งปันประสบการณ์เกี่ยวกับการรวมทีมเพื่อสร้างการเปลี่ยนแปลงในสังคมด้วย Data อย่างน่าสนใจ อาทิเช่น กระบวนการขององค์กรบางแห่ง ที่มีการเปิดเผยข้อมูลสำคัญ แต่ไม่สามารถนำมาใช้งานในทาง Digital ได้ทันที ซึ่งก็ถือเป็นความท้ายทายในสังคมปัจจุบัน ที่ต้องรับมือการรูปแบบของ Data ที่มีความหลากหลาย และไม่พร้อมใช้งาน</p><blockquote>กระบวนการ Data Collection ณ ปัจจุบันยังเป็นกระบวนการ manually กล่าวคือให้คนไปจดข้อมูล ซึ่งก่อให้เกิดความยุ่งยากในการใช้งาน อย่างมากสุดข้อมูลที่มีการใช้งานได้ก็คือ PDF Files.</blockquote><p>ก็ถือเป็นอึกหนึ่ง Series ของ 100x และ Clazy Cafe สำหรับการจัด Event ดีๆ เพื่อสร้าง knowledge และความเข้าใจด้าน Data มากยิ่งขึ้น สำหรับ Event ต่อไปที่จะมีขึ้นเร็วๆ นี้จะเป็นเช่นไร รอติดตามกันได้เลยครับ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2rORb2qxxZiaGpvSubrdKQ.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c346f4ea90ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[คนชอบฟังอย่างฉัน กับ Founder Apprentice]]></title>
            <link>https://kaninkearpimy.medium.com/%E0%B8%84%E0%B8%99%E0%B8%8A%E0%B8%AD%E0%B8%9A%E0%B8%9F%E0%B8%B1%E0%B8%87%E0%B8%AD%E0%B8%A2%E0%B9%88%E0%B8%B2%E0%B8%87%E0%B8%89%E0%B8%B1%E0%B8%99-%E0%B8%81%E0%B8%B1%E0%B8%9A-founder-apprentice-cf055759b643?source=rss-2ce7b61de788------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf055759b643</guid>
            <category><![CDATA[internships]]></category>
            <category><![CDATA[thailand]]></category>
            <category><![CDATA[students]]></category>
            <category><![CDATA[apprenticeship]]></category>
            <dc:creator><![CDATA[Kanin Kearpimy]]></dc:creator>
            <pubDate>Tue, 05 Feb 2019 06:41:15 GMT</pubDate>
            <atom:updated>2019-02-06T17:35:04.354Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fkKZw76w0kZAMwWuvJcfFg.jpeg" /></figure><p>จากเด็กสายอาชีพเน้นปฏิบัติ ลงมือทำแปรผันเข้าสู่โลกการทำงานเพราะปัญหาการเงินในครอบครัว สุดท้ายเดินทางเข้าสู่อุดมศึกษาเพื่อไล่ตามสาขาที่ตัวเองต้องการ จนวันหนึ่งพบเจอโครงการที่ทำให้โลกของเขาเปลี่ยนแปลงจากเดิมตลอดไป</p><p>หากผมพูดถึงตัวแทนประเทศ ทุกคนจะนึงถึงบุคลิกคนแบบไหนครับ ? ใส่แว่น เรียนเก่งตั้งแต่ประถม ท่องสูตรคูณถึงแม่ 24 ได้ตั้งแต่อนุบาล หรือพูดได้ตั้งแต่ 1 ขวบ หรือป่าว ? หรือจะเป็นบุคลิกของคนที่ เรียนได้โอเค เจอสังคมดีๆ เพื่อนดีๆ พร้อมด้วยความพยายามดีๆ</p><p>อาจจะใช่ทั้ง 2 บุคลิก หรืออาจจะไม่ใช่เลย ซึ่งคำตอบคงแตกต่างกันไป แต่วันนี้ผมจะมาเล่าถึงเด็กคนหนึ่ง ที่บุคลิกกลางๆ ที่เข้าร่วมโครงการไม่ธรรมดา จนเขาได้พบเจอกับคน ที่บุคลิกดูธรรมดา แต่สามารถสร้างบางสิ่งให้สังคมหรือประเทศได้ แล้วอะไรคือสิ่งที่ไม่ธรรมดา ที่หล่อหลอมพวกเขาให้เป็น “เขา/เธอ” อย่างทุกวันนี้กันนะ….?</p><h3><strong>Founder Apprentice</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x2gzPyijY28-o-Le1gBsKQ.jpeg" /></figure><p>Founder Apprentice เอาจริงๆ ถ้าอยากอ่านเกี่ยวกับโครงการนี้ว่าเขาทำอะไร ผมแนะนำให้อ่านรีวิวของเพื่อนๆ ผมที่เขียนไว้ดีมากๆ แล้ว (Link อยู่ด้านล่างนะครับ) แต่หากบทความนี้ผมจะมาเล่าถึงเรื่องของ “คน” อันเป็นส่วนผสมสำคัญที่ทำให้ Founder Apprentice มีรสชาติ “หลากหลายอย่างกลมกล่อม”</p><h3><strong>“เราไม่เชื่อในความคิดที่ว่า คนสำเร็จต้องล้มเหลวก่อนถึงจะสำเร็จ เพราะบางคนล้มเหลวแล้วก็ล้มเหลวอีก บางคนสำเร็จแล้ว ก็สำเร็จอีก”</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1jjYXl93hMPeVzxFCoED9w.jpeg" /><figcaption>5 Days Workshop</figcaption></figure><p>คำพูดของน็อตผู้ Creative สะท้อนออกมาถึง “ความคิดต่าง” ที่ทุกคนใน Founder Apprentice มีติดตัว ย้อนกลับไปช่วงการเข้าร่วมทำ Workshop เพื่อติดอาวุธ โดยเผชิญกับการแก้ปัญหาในเชิงธุรกิจที่เจอจริงๆ ลงมือทำจริงๆ ซึ่งหนึ่งในการลงมือทำที่ว่าคือ Design Thinking อันเป็นการ “ตามหาปัญหา” ด้วยการถามจาก “คนที่เจอปัญหาจริงๆ” ไม่ใช่การยึดติดกับแนวคิด ประสบการณ์เดิมๆ ที่มีแค่ “เราคนเดียว” ที่รู้ สิ่งที่เราชอบที่สุดใน Design Thinking คือมัน “ไม่มีถูก-ผิด” มีแต่คำว่า “เหมาะสม-อาจจะเหมาะสมที่จะทำ”</p><blockquote>เพราะในเชิงธุรกิจปัจจุบันที่มีความเปลี่ยนแปลงรวดเร็จ รุนแรง แข่งขันสูง ไม่มีสูตรไหน ”สำเร็จตายตัว” อีกต่อไป หากแต่จะมี “สูตรแห่งการปรับตัว” ให้ทันกับการเปลี่ยนแปลง ซึ่งสูตรตรงนี้เองที่ Founder Apprentice ทุกคนได้เรียนรู้ พบเจอ และนำกลับไปใช้กับทุกเรื่องในชีวิตได้</blockquote><h3><strong>“จะ 70 คน หรือ 7,000 คน ถ้าสร้าง “คุณค่า” ไม่ได้ก็ไม่แตกต่างกัน”</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4SBDg40vL1wUtTeXiIF_mw.jpeg" /><figcaption>Conduct Design Thinking Workshop</figcaption></figure><p>คุณค่าสำหรับพวกคุณคืออะไรหรอครับ การมีใครซักคนใส่ใจเราหรือการมีเงินเยอะๆ แต่ในเชิงธุรกิจ คำว่า “คุณค่า” คือการที่เราสามารถสร้าง “บางสิ่ง” ให้สามารถ “แก้ปัญหา” เพื่อกับลูกค้าของเราได้</p><p>ในตอนที่เราเข้าฝึกงานกับบริษัท <a href="https://www.ricult.com/?lang=th">Ricult </a>ซึ่งเป็นบริษัท Startup ทำ Big Data กับเกษตรกรรมของไทย พี่เอิน (CEO ของบริษัท) ให้งานหนึ่งเรามาว่า “จะทำยังไงให้เกษตรกรที่มีอยู่ในระบบหันมาใช้ Product มากขึ้น” ซึ่งสิ่งที่เราคิดขึ้นมาก็คือ LINE Message มีหน้าที่ยิงข้อมูลการพยากรณ์อากาศให้กับเหล่าเกษตรกร จุดพีคคือมีเกษตรกรเพียงแค่ 70 คนเท่านั้น ที่สามารถใช้งาน Message ของเราได้</p><p>ตอนนั้นคิดแล้วว่า มันจะพอหรอแค่ 70 คน อีกอย่างเกษตรกรในประเทศไทยมีเป็นล้าน แต่มีตัวอย่าง 70 คน เราจะมั่นใจได้ยังไงกันนะ ว่าสิ่งที่เราทำมันถูก แต่เมื่อเราลองไปปรึกษาเรื่องนี้กับ พี่ๆในทีม กลับได้คำตอบที่เราจำได้ขึ้นใจ</p><blockquote>“มันไม่สำคัญหรอกว่าจะคนใช้มากหรือใช้น้อยในตอนแรก เพราะทุกอย่างต้องมีการปรับเปลี่ยนตลอด แต่ถ้าไม่เริ่ม ก็จะพิสูจย์อะไรไม่ได้เลย ถ้าเราทำแค่ 70 คน แล้วยังไม่มีคนใช้ จะ 700 หรือ 7000 ก็อาจจะไม่ต่างกัน”</blockquote><p>สุดท้ายในเชิงธุรกิจ มันไม่สำคัญเลยว่า “ตอนเริ่มแรก” จะมีคนใช้เยอะหรือน้อย เราขอแค่ “พิสูจย์ได้” ว่าสิ่งที่เราทำมัน “มีคุณค่า” เท่านั้นก็พอ เพราะสุดท้ายก็ต้องค่อยๆ พัฒนาสิ่งที่เราทำไปเรื่อยๆ อยู่ดี</p><h3><strong>“บางครั้งเราเอาแต่มองข้อผิดพลาดของคนอื่น จนลืมมองข้อผิดพลาดของตัวเอง”</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uYwTisJ5ZPwLLO8IwqD0IQ.jpeg" /><figcaption>Question &amp; Answer Session</figcaption></figure><p>มะเหมี่ยว หญิงแกร่งผู้คว้า 7 รางวัลระดับประเทศภายในปีเดียวคุยกับเราในช่วง Curation งาน พร้อมแง่คิดหลายๆ อย่างในการนำคน ครั้งหนึ่งเธอคนนี้เคยบอกกับพวกเราถึงการนำทีมที่ผิดพลาด ด้วยการเอาแต่มองข้อผิดพลาดของผู้อื่น พยายามแก้ไขคนอื่น จนลืมเรื่องสำคัญที่สุดที่จะหันมามอง “ตัวเอง”</p><p>มันทำให้เรานึกถึงครั้งที่ เราต้องรับงาน 3 งานพร้อมกัน ความเครียด กดดัน Deadline ที่กระชั้นชิดเข้ามาจนทำเอาเราท้อไม่น้อย ณ ตอนนั้นสิ่งที่เราทำคือสู้ปัญหาไปคนเดียวจนลืมที่จะมองว่า “เราทำมันคนเดียวไม่ไหวหรอก” สุดท้ายเราเลยขอความช่วยเหลือจากเพื่อนๆ ซึ่งสิ่งที่เราได้รับมันมากกว่าแค่ “ความช่วยเหลือเรื่องงาน” แต่มันคือ “ความไว้ใจ เชื่อใจ และมิตรภาพดีๆ” ที่คงจะไม่เกิดขึ้น ถ้าเราไม่หันมามอง “ตัวเอง” เพราะการรู้ตัวเองว่ามีข้อเสียตรงไหน ผิดพลาดอะไร จะทำให้เรารู้ว่าต้องมองคนอื่นยังไงเพื่อ “เข้าใจ” และอยู่ร่วมกับพวกเขาได้</p><blockquote>“จริงๆ อยากช่วยตั้งนานแล้ว แต่นายไม่พูดไงละ ถ้านายพูดพวกเราก็พร้อมยื่นมือไปช่วยอยู่แล้ว” — Operation Teammate &amp; Production Teammate</blockquote><h3><strong>ทุกคนบอกให้พี่เรียนไปเถอะ 4 ปี จบแล้วจะได้มีงานทำ สุดท้ายตอนนี้พี่อยู่ปี 4 พอหันกลับไปถามคนที่บังคับพี่ให้เรียน ไม่มีใครตอบพี่ได้เลยว่า สิ่งที่พี่เรียนมา มันมีคุณค่าตรงไหน</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pG3lycWefrYUBQdxB7Ck4w.jpeg" /><figcaption>Founder Apprentice — Boy Gang</figcaption></figure><p>จุกไม่น้อยเมื่อได้ยินคำพูดนี้ หลายครั้งเราเรียนไม่ว่าจะสายไหน ต่างก็เรียนเพราะคนอื่นบอกให้เรียน จนลืมไปว่าจริงๆ เราเรียนไปเพื่ออะไร หรือคุณค่าของเราอยู่ตรงไหน เราลืมเป้าหมาย ลืมชีวิต กว่าจะรู้ตัวอีกทีก็กินเวลามานานมากแล้ว</p><p>เราคิดว่าเราโชคดี ที่ตั้งแต่เรียน ม. ต้น — ปวช. เราได้พบเจอคนดีๆ ที่แนะนำ เป็นตัวอย่างให้เราตลอด จนเรามาเจอคนใน Founder Apprentice เรายิ่งเข้าใจเลยว่า ถ้าเราเจอคนที่หลากหลายทั้งในเรื่อง “ประสบการณ์และความรู้” ความคิดและการมองโลกของเราก็จะหลากหลายตามไปด้วย ในท้ายที่สุดคนที่เราล้อมรอบตัวเรา ก็ถือเป็นหนึ่งปัจจัยที่หล่อหลอมตัวเราให้พัฒนาตัวเองไปข้างหน้า</p><blockquote>หากพวกคุณมีเป้าหมาย การได้เจอกับคนมีเป้าหมายจะทำให้คุณไปถึงมันได้เร็วขึ้น</blockquote><blockquote>หากคุณเป็นคนกำลังหาเป้าหมาย การได้เจอกับคนที่คนมีเป้าหมาย จะทำให้คุณเจอมันเร็วขึ้น</blockquote><blockquote>หากคุณไม่รู้ว่าเป้าหมายคืออะไร การได้เจอคนที่มีเป้าหมาย จะทำให้คุณเห็นความสำคัญของมันมากขึ้น</blockquote><blockquote>และหาก….คุณไม่รู้อะไรเลย การลงมือทำไปกับคนมีเป้าหมาย จะทำให้คุณเห็นอะไรมากขึ้นบ้างแหละหน่ะ…</blockquote><h3><strong>จะเป็นใคร พื้นฐานแบบไหนก็ไม่ต่างกันหรอก ลงมือทำได้ก็พอแล้ว</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wGfDsiezS7uDYcejW1ZnNA.jpeg" /><figcaption>Final Day Presentation.</figcaption></figure><p>Founder Apprentice มีความหลากหลายอยู่พอสมควร บางคนเป็นคนทำ Startup ที่ชนะ 7 รางวัลใน 1 ปี บางคนรับงาน Project Coordinator ตั้งแต่ปริญญาตรีปี 2 บางคนบริษัทออกเงินให้ไปเข้าโครงการที่มาเลเชีย</p><p>แต่ไม่ว่าจะต่างอายุ ต่างที่เรียน ต่างสังคม สิ่งหนึ่งที่เรามีเหมือนกันคือ “การชอบเรียนรู้และพัฒนาตัวเอง” ที่สำคัญบ้าเหมือนกันด้วย เพราะงั้นบรรยากาศในโครงการจะเป็นเหมือนได้เจอเพื่อนๆ ที่พร้อมคุยกันได้ ช่วยเหลือกันได้ สนับสนุนกันได้ และทุกครั้งที่พวกเรากลับไปเจอกันอีกครั้ง ก็จะให้บรรยากาศเหมือนกลับไปพบเพื่อนเก่าที่ยังคงเล่นสนิท ติดตลกกันได้เหมือนเดิม…</p><p>เรื่องราวน่าติดตามของ Founder Apprentice คนอื่นๆ (บอกเลยว่าน่าติดตามทุกคนครับ ^__^)</p><blockquote>พี่เน — ชายผู้ชื่นชอบไวน์ ค้นพบตัวเองจากการล้างแก้วไวน์ จนกลายเป็น Project Manager ใน Founder Apprentice Final Day <a href="https://medium.com/@jutinattrichalasin/%E0%B8%9B%E0%B8%A3%E0%B8%B0%E0%B8%AA%E0%B8%9A%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%93%E0%B9%8C-2-%E0%B9%80%E0%B8%94%E0%B8%B7%E0%B8%AD%E0%B8%99-%E0%B8%81%E0%B8%B1%E0%B8%9A%E0%B9%82%E0%B8%84%E0%B8%A3%E0%B8%87%E0%B8%81%E0%B8%B2%E0%B8%A3-founder-apprentice-50238c1dc5ba">&gt;&gt;&gt;Link&lt;&lt;&lt;</a></blockquote><blockquote>โรส — หนึ่งในสาวน้อยน่ารัก Degree นานาชาติ เป็น Fellow คนเดียวที่ได้ทุนจากบริษัท <a href="http://www.younghappy.org/th/%E0%B8%AB%E0%B8%99%E0%B9%89%E0%B8%B2%E0%B9%81%E0%B8%A3%E0%B8%81/">YoungHappy </a>ไปเป็นตัวแทน CEO ถึงมาเลเชีย <a href="https://medium.com/@punnapa/milestones-in-2018-of-mine-8c0d00cc56e?fbclid=IwAR2AQLhntZ6FLsLByCBjgpj2g6QDjTJjUKa00HFA6x5P4GZuK7ulX7liXBM">&gt;&gt;&gt;Link&lt;&lt;&lt;</a></blockquote><blockquote>ตี๋ — ชายมีเสน่ห์ (เล็กน้อย) ประจำ <a href="https://www.ricult.com/">Ricult </a>Operation Team กับความทุ่มเทที่พร้อมทำในสิ่งที่ตัวเองไม่เคยทำในวงการธุรกิจ <a href="https://medium.com/@ganchana78/review-in-2018-aba233970193?fbclid=IwAR1kwr5dHKpWb9KiIZ9RcTMQ2IlOSRNi_HRtfI1jIrXd0XhIFdds7Oj_KbU">&gt;&gt;&gt;Link&lt;&lt;&lt;</a></blockquote><blockquote>เหวิน — หนึ่งในสาวน้อยน่ารักอีกคน ผู้ทำงานกับ Online Learning Platform อย่าง <a href="https://www.skilllane.com/">skilllane </a>เป็นหญิงสาวที่ทำงานห้ามรุ่ง ห้ามค่ำมาก <a href="https://medium.com/@maruwern/%E0%B8%AA%E0%B8%A3%E0%B8%B8%E0%B8%9B%E0%B8%9B%E0%B8%A3%E0%B8%B0%E0%B8%AA%E0%B8%9A%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%93%E0%B9%8C%E0%B9%81%E0%B8%9A%E0%B8%9A%E0%B8%AA%E0%B8%B1%E0%B9%89%E0%B8%99%E0%B9%86%E0%B8%9B%E0%B8%B5-2018-%E0%B8%89%E0%B8%9A%E0%B8%B1%E0%B8%9A%E0%B8%82%E0%B8%AD%E0%B8%87%E0%B9%80%E0%B8%AB%E0%B8%A7%E0%B8%B4%E0%B8%99%E0%B9%80%E0%B8%AB%E0%B8%A7%E0%B8%B4%E0%B8%99-3078aed425d3?fbclid=IwAR39uN0Tw0chFoHusFe1RAJBCOv9lvRl5X_RK6rRgYDePlvdrf-MbOxE1sg">&gt;&gt;&gt;Link&lt;&lt;&lt;</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf055759b643" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>