<?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 Sakayaparp P on Medium]]></title>
        <description><![CDATA[Stories by Sakayaparp P on Medium]]></description>
        <link>https://medium.com/@sakayaparp?source=rss-a09cc52c3cb8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*91Afpc05OmSNgAsi.</url>
            <title>Stories by Sakayaparp P on Medium</title>
            <link>https://medium.com/@sakayaparp?source=rss-a09cc52c3cb8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 23:42:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sakayaparp/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[First MacOSX Application with Electron JS in 10 minutes]]></title>
            <link>https://medium.com/randomgamer/first-macosx-application-with-electron-js-in-10-minutes-fbfc615d6790?source=rss-a09cc52c3cb8------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbfc615d6790</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Sakayaparp P]]></dc:creator>
            <pubDate>Mon, 23 Apr 2018 08:51:17 GMT</pubDate>
            <atom:updated>2018-04-23T09:00:21.803Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*TrwQBpY0gA60Cr9n1nCXMg.png" /><figcaption><a href="https://upload.wikimedia.org/wikipedia/commons/3/3f/Electron_0.36.4_Icon.png">https://upload.wikimedia.org/wikipedia/commons/3/3f/Electron_0.36.4_Icon.png</a></figcaption></figure><p>Let’s go….</p><p>Prerequisites:</p><ul><li><a href="https://electronjs.org/docs/README">ElectronJS</a> =&gt; $ npm install electron -g</li><li><a href="https://github.com/electron/electron-quick-start">Electron Packager</a> =&gt; $ npm install electron-packager -g</li><li><a href="http://Electron Installer dmg">Electron Installer dmg</a> =&gt; $ npm i electron-installer-dmg -g</li></ul><h3><strong>Get Started Electron Application</strong></h3><p>Clone Electron Quick start from</p><ul><li>git clone <a href="https://github.com/electron/electron-quick-start">https://github.com/electron/electron-quick-start</a></li></ul><p>Now go to the <strong>electron-quick-start/ </strong>directory and install node js dependencies</p><ul><li>npm install</li></ul><p>after installed package you will see the directory <strong>node_modules/. </strong>Now you can try run simple electron application.</p><ul><li>npm start</li></ul><h3><strong>Packaging to MacOSX Application</strong></h3><p>With Command</p><ul><li>electron-packager &lt;path to src&gt; &lt;app name&gt; — icon “path/to/your/icon” — overwrite</li></ul><p>&lt;path to src&gt; is path consist with your source code such as index.html, main.js and package.json</p><p>&lt;app name&gt; is the application name if this parameter is empty it use the application name from package.json file</p><p><strong>Remark:</strong> Your working path should stay at <strong>electron-quick-start/</strong></p><p>After that you will see <strong>&lt;app name&gt;-darwin-x64/ </strong>directory which include</p><p>application that can run on MacOSX.</p><h3><strong>Packaging to .DMG Installer</strong></h3><p>From above topic you have got simple macOSX application that can run on your machine. Now we will go to packaging you macOS application to .DMG for distributed your application.</p><p>Just One Easy Step</p><ul><li>electron-installer-dmg &lt;path to .app&gt; &lt;app name&gt; — icon “/paht/to/your/icon” — overwrite</li></ul><p>&lt;path to .app&gt; is the application which builded from above topic</p><p>If you see &lt;app name&gt;.dmg file. It’s mean</p><h3><strong>DONE……..</strong></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbfc615d6790" width="1" height="1" alt=""><hr><p><a href="https://medium.com/randomgamer/first-macosx-application-with-electron-js-in-10-minutes-fbfc615d6790">First MacOSX Application with Electron JS in 10 minutes</a> was originally published in <a href="https://medium.com/randomgamer">randomgamer</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker : ประสบการณ์ข้อมูลใน database หาย และ การตามล่าข้อมูลกลับคืนมา]]></title>
            <link>https://medium.com/@sakayaparp/docker-%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%B8%82%E0%B9%89%E0%B8%AD%E0%B8%A1%E0%B8%B9%E0%B8%A5%E0%B9%83%E0%B8%99-database-%E0%B8%AB%E0%B8%B2%E0%B8%A2-%E0%B9%81%E0%B8%A5%E0%B8%B0-%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%B2%E0%B8%A1%E0%B8%A5%E0%B9%88%E0%B8%B2%E0%B8%82%E0%B9%89%E0%B8%AD%E0%B8%A1%E0%B8%B9%E0%B8%A5%E0%B8%81%E0%B8%A5%E0%B8%B1%E0%B8%9A%E0%B8%84%E0%B8%B7%E0%B8%99%E0%B8%A1%E0%B8%B2-5284b17d4be0?source=rss-a09cc52c3cb8------2</link>
            <guid isPermaLink="false">https://medium.com/p/5284b17d4be0</guid>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Sakayaparp P]]></dc:creator>
            <pubDate>Wed, 02 Nov 2016 10:38:35 GMT</pubDate>
            <atom:updated>2016-11-02T13:03:15.316Z</atom:updated>
            <content:encoded><![CDATA[<p>สวัสดีครับ เนื่องจากวันก่อนได้ทำการ Update Docker ไป แล้วดันทำให้</p><blockquote>$ docker-compose up</blockquote><p>ไม่สามารถ start container ได้</p><blockquote>ERROR: for mysql Cannot start service mysql: Unknown runtime specified default</blockquote><p>เลยลอง docker-compose down และ docker-compose up ขึ้นมาใหม่ ก็ปรากฏว่า สามารถใช้งานได้ตามปกติ สบายใจ………………</p><p>แต่!!!!!!!!!!!!! ทุกอย่างไม่เป็นอย่างที่คิด เมื่อผมได้ลองเช็คฐานข้อมูลดูแล้ว ได้ผลตามภาพ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/232/1*8BGoqPbQlcwqA62Jgfh1Xw.png" /><figcaption>สิ่งที่ผมคิด</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/230/1*StE8vdg-hoLMhOXEx7dIgw.png" /><figcaption>ความเป็นจริง</figcaption></figure><p>และนี้คือจุดเริ่มต้นของเรื่องราวทั้งหมด</p><p>สาเหตุที่ข้อมูลหายไปนั้น ก็เพราะตอนผมสร้าง container ไม่ได้ทำการ mount volume ออกมาไว้ที่เครื่อง host ด้านนอก ทำให้ข้อมูลทั้งหมดใน database ถูกเก็บอยู่ใน container ทั้งหมดเมื่อมันถูกลบไป ข้อมูลเลยหายตามไปด้วยเลย</p><p>หลังจากที่ข้อมูลหายไปหมดแล้ว ผมได้ลองหาข้อมูลจาก internet ว่าจะสามารถนำข้อมูลกลับมาได้ไหมจนไปเจอคำสั่ง</p><blockquote>$ docker volume ls</blockquote><p>เพื่อ list volume ทั้งหมด และ</p><blockquote>$ docker volume inspect [VOLUME…]</blockquote><p>เพื่อดูรายละเอียดของ volume นั้นๆ ผลคือ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*fp_ShaLQcn4bgnu_mTXoKA.png" /><figcaption>**Mountpoint**</figcaption></figure><p>จากนั้นผมก็ลองเข้าไปตาม path ของ Mountpoint ใน directory นี้ทำให้ผมเจอที่อยู่ของข้อมูลที่ถูกลบไป (เฮ้ๆๆ)</p><p>ถัดจากนี้ที่เหลือก็แค่ copy ข้อมูลเก่ามาวางไว้สักที่นึง แล้วก็ทำการ mount volume ไปที่ directory /var/lib/mysql ใน container ของ mysql</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/1*CJnrx_66fsmv6q8Xabn2Rw.png" /><figcaption>ตัวอย่างการ mount volume ในไฟล์ docker-compose.yml</figcaption></figure><p>แล้วก็สั่ง docker-compose up ใหม่อีกครั้ง</p><p>จบ…</p><p>ป.ล. ผิดพลาดประการใดขออภัยด้วยครับ :D</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5284b17d4be0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>