<?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 Sket Roger&#39;s on Medium]]></title>
        <description><![CDATA[Stories by Sket Roger&#39;s on Medium]]></description>
        <link>https://medium.com/@sketrogers?source=rss-85321d7e1ec6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ptkE52ZfMa31p7UW.</url>
            <title>Stories by Sket Roger&amp;#39;s on Medium</title>
            <link>https://medium.com/@sketrogers?source=rss-85321d7e1ec6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 04:25:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sketrogers/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[3SB04: Android Application Development]]></title>
            <link>https://medium.com/@sketrogers/3sb04-android-application-development-52990e283afe?source=rss-85321d7e1ec6------2</link>
            <guid isPermaLink="false">https://medium.com/p/52990e283afe</guid>
            <dc:creator><![CDATA[Sket Roger's]]></dc:creator>
            <pubDate>Tue, 20 Feb 2018 14:29:31 GMT</pubDate>
            <atom:updated>2018-02-20T14:29:31.414Z</atom:updated>
            <content:encoded><![CDATA[<p>การทดลอง 3SB04: Android Application Development</p><p>วัตถุประสงค์</p><ol><li>รู้จักแนวทางและการใช้เครื่องมือในการพัฒนาโปรแกรมบน Android Platform</li><li>รู้จักสถาปัตยกรรมพื ้นฐานของ Android</li><li>เข้าใจการใช้ XML ในการสร้าง User Interface</li><li>เข้าใจแนวคิดและประโยชน์ของการใช้งาน Intent, AsyncTask, Socket และ ArrayAdapter</li></ol><h3>CHACKPOINT1</h3><p>[หน้าจอแสดงตัวอักษร Hello World] 1%</p><p>อันดับแรกทำการสร้างโปรเจคขึ้นมาก่อนตามลำกับดังนั้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/346/1*6xlN8WbMesYn92ydmtAqIg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*LCbxtd7AMM2aMvZBfYB4lw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/361/1*spaCavmKr2vHluZt9sTjyw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/329/1*nrgw27Es4Hmjw74kElhsEQ.png" /></figure><p>เมื่อเราสร้างโปรเจคเสร็จแล้วจะได้หน้าตาดังนี้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*1EjIjNkVkVVHJCqLLYgW7Q.png" /></figure><p>จากนั้นทำการสร้างระบบจำลองมือถือ Android ขึ้นมา</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/372/1*ZISBy_MEBbqCyCEgI_WwcQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/411/1*HfpbcbBpj_2Er8paMOr1ug.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*FZdj19Q3_nKpYcTcL5ZFaw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/1*GhWMCrn3bzNQKWIItlyXqA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/381/1*Q4g4eA9i0tk6CbxlQxatJQ.png" /></figure><p>ทำการรัน CODE “Hello world”กับตัวจำลอง</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*28hi-OuMSQ_PSr1yqbhOsg.png" /></figure><h3>CHACKPOINT 2</h3><p>[หน้าจอแสดง ชื่อนามสกุล รหัสนักศึกษา และรูปอย่างน้อย 1 รูป บนหน้าจอ] 1%</p><p>ทำการแก้ไขข้อความในหน้า activity_main ใส่ข้อมูลให้ครบถ้วน</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*wsyOYIaWDnUb3ZmfNmUMEA.png" /></figure><p>จากนั้นใส่รูป ไปที่หน้า Design เลือก image ลากมาวางในหน้าจำลองแล้วเลือกรูปที่ต้องการจะใส่</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/393/1*5dx0GYjNBYobqCLgM2CSyA.png" /></figure><p>สามารถแก้ไขขนาดตกแต่งปรับแต่งได้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WYxTYPH9gETdrzb6ry5o7A.png" /></figure><p>จะได้ผลลัพดังนี้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/288/1*vSVMrnff22a3Tz_9YKH-Yw.png" /></figure><h3>CHACKPOINT 3</h3><p>[หน้าจอแสดง App ที่นักศึกษาทำขึ้น จาก 1 ใน 4 Fragments ตามตัวอย่างที่อาจารย์ให้ พร้อมคำอธิบายการเลือกใช้] 15%</p><p>ในส่วนนี้ จะทำการสร้าง Application แสดงโปสเตอร์ภาพยนต์เรื่องStar warsในแต่ละภาค โดยเลือก TextSwitcher จากใน 4 Fragments ตามตัวอย่างที่อาจารย์ให้ มาเป็นแนว</p><p>ขั้นแรกต้องทำการClone ไฟลมาจาก githubก่อน</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*ZCXEJFbuZ9MmISkuRLhHkQ.png" /></figure><p>หลังจากลงเสร็จ ก็ Open ไฟล์แล้วทำการแก้ไข</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/452/1*QJinoQcyOONg2bV9SNmILA.png" /></figure><p>ในส่วนนี้จะเป็นการกำหนดปุ่มNext และปุ่ม Back เข้ามาเพื่อให้สามารถกดไป-กลับได้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/1*Z1e89izfDRJUuCp6RCxBpQ.png" /></figure><p>สร้างช่อง image view ไว้เพื่อแสดงรูปภาพ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*rWfVNUFMRKZLySAJpStZTg.png" /></figure><p>มาใส่ข้อมูลข้างในApp ที่ Main activity ทำการใสข้อมูลที่ต้องการแสดงกำหนดขั้นตอนต่างตามที่ต้องการ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*zQpRwo5hvoZxvR5uV_Cshw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*pmgr5IOJ1aueMQ--gqMTeg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/833/1*ewEyW0DEiWP0mWrGDKnQHw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/1*J5Buaq8PBgtrf3UJd6kGFA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*P8nGf8L8MuimqdREIRs0TQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*AGr3b_g8Ysj3XurA5XQvmA.png" /></figure><p>เมื่อทำการออกแบบเสร็จแล้วกดรัน</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*Ov34prbmY4WdkEiVtoG3SA.png" /></figure><p>จำได้หน้าตาแอพที่สร้างขึ้นมาประมาณนี้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/1*alFpLmJFfgqZYtLwa3vxDQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*rHcwW8ijy8CpCuCMpVWmeg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/1*us0u8EubPCeWB00jwXAgvA.png" /></figure><p>เป็นอันเสร้จสิ้น</p><h3>รายงานฉบับนี้จัดทำโดย</h3><h4>นายณภัทร สุขสัจธรรม</h4><h4>รหัสนศ. 5835512114</h4><h4>Section01</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2Iy9b6qsP2UQtd8Y8E52IA.jpeg" /></figure><h3><strong>ไฟล์โปรเจค → </strong><a href="https://github.com/sketnaphat21/Naphat21/tree/master/Application">https://github.com/sketnaphat21/Naphat21/tree/master/Application</a></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52990e283afe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Wordpress on docker]]></title>
            <link>https://medium.com/@sketrogers/wordpress-on-docker-8fa11a21962?source=rss-85321d7e1ec6------2</link>
            <guid isPermaLink="false">https://medium.com/p/8fa11a21962</guid>
            <dc:creator><![CDATA[Sket Roger's]]></dc:creator>
            <pubDate>Tue, 30 Jan 2018 14:19:00 GMT</pubDate>
            <atom:updated>2018-01-30T14:21:09.069Z</atom:updated>
            <content:encoded><![CDATA[<h3>Lab 3SB02 : Web Content Management System (CMS)</h3><h4>วัตถุประสงค์</h4><ul><li>เพื่อแนะนำให้รู้จัก CMS (wordpress) ที่ทำงานบน Docker/Linux</li></ul><h4>Content Management System (CMS)</h4><p>CMS คือ ระบบบริหารจัดการข้อมูลเว็บไซต์ (ผ่านเว็บไซต์) ทำให้ผู้ใช้ไม่จำเป็นต้องมีความรู้ทางด้านเทคนิคการเขียนโปรแกรม ก็สามารถ จัดการข้อมูลที่ต้องการนำไปแสดงในเว็บไซต์ได้อย่างสะดวก รวดเร็ว</p><h4>Docker</h4><p>Docker คือ เทคโนโลยีคอนเทนเนอร์ ที่ช่วยในการจำลองสภาพแวดล้อมของระบบ (คล้าย ๆ กับ Virtual machine แต่ share Kernel กับ Server จริง ๆ ซึ่ง Virtual machine จะแยก Kernel กัน มี Guest OS ของตัวเอง) ทำให้ มีขนาดเล็ก กินทรัพยากรน้อย และ ทำงานได้สะดวก รวดเร็ว</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*O_nFPfchZr_7YMK66ZM0jg.png" /><figcaption>VM vs Container</figcaption></figure><h3>Installation</h3><p>ในการทดลองครั้งนี้ จะใช้ Wordpress เป็น CMS ที่เรียกใช้งานจาก docker ผ่าน docker-compose มีขั้นตอนการทำงานดังนี้</p><ol><li>ตรวจสอบ docker และ docker-compose ในเครื่อง</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/1*rLjHcFGU13S9Rqi4qQyQYA.png" /></figure><p>หากไม่แสดง version ของ docker มา แสดงว่าเครื่องนั้ันยังไม่ได้ติดตั้ง docker ไว้ หรือ อาจจะติดตั้งไว้ แต่ไม่ได้กำหนด path ไว้ ให้ติดตั้งให้เรียบร้อย</p><p>2. สร้าง docker-compose.yml (ใน /home/coe/wp) โดยกำหนดข้อมูลดังนี้</p><pre>version: &#39;3&#39;</pre><pre>services:<br>   db:<br>     image: x.coe.phuket.psu.ac.th:8443/wordpress/mysql:5.7<br>     volumes:<br>       - ./db_data:/var/lib/mysql<br>     restart: always<br>     environment:<br>       MYSQL_ROOT_PASSWORD: somewordpress<br>       MYSQL_DATABASE: wordpress<br>       MYSQL_USER: wordpress<br>       MYSQL_PASSWORD: wordpress</pre><pre>   wordpress:<br>     depends_on:<br>       - db<br>     image: x.coe.phuket.psu.ac.th:8443/wordpress/wordpress:latest<br>     ports:<br>       - &quot;8000:80&quot;<br>     restart: always<br>     environment:<br>       WORDPRESS_DB_HOST: db:3306<br>       WORDPRESS_DB_USER: wordpress<br>       WORDPRESS_DB_PASSWORD: wordpress</pre><p>3. ใช้ <a href="https://medium.com/@narate/%E0%B9%84%E0%B8%9C%E0%B9%8B%E0%B8%9A%E0%B9%88%E0%B8%A1%E0%B8%B1%E0%B8%81-tmux-tmux-terminal-multiplexer-ea324838eff2">tmux</a> สร้าง session ไว้ เพื่อให้สามารถเข้าไปจัดการ session ที่ค้างไว้ได้</p><pre>tmux new -s wordpress</pre><p>4. เริ่มเรียกใช้งาน โดยสั่ง docker-compose up -d</p><pre>root@debian:/home/coe/wp# docker-compose up -d<br>Creating network “wp_default” with the default driver<br>Creating volume “wp_db_data” with default driver<br>Pulling db (mysql:5.7)…<br>5.7: Pulling from library/mysql<br>f49cf87b52c1: Pull complete<br>78032de49d65: Pull complete<br>837546b20bc4: Pull complete<br>9b8316af6cc6: Pull complete<br>1056cf29b9f1: Pull complete<br>86f3913b029a: Pull complete<br>4cbbfc9aebab: Pull complete<br>8ffd0352f6a8: Pull complete<br>45d90f823f97: Pull complete<br>ca2a791aeb35: Pull complete<br>Digest: sha256:1f95a2ba07ea2ee2800ec8ce3b5370ed4754b0a71d9d11c0c35c934e9708dcf1<br>Status: Downloaded newer image for mysql:5.7<br>Pulling wordpress (wordpress:latest)…<br>latest: Pulling from library/wordpress<br>e7bb522d92ff: Pull complete<br>75651f247827: Pull complete<br>dbcf8fd0150f: Pull complete<br>de80263f26f0: Pull complete<br>65be8ad4c5fd: Pull complete<br>239d5fed0dda: Pull complete<br>5ab39b683a9f: Pull complete<br>4a3f54f2d93a: Pull complete<br>28c970ad99e9: Pull complete<br>5d1e20c7c396: Pull complete<br>05f877a23903: Pull complete<br>e0a5c61bdaa6: Pull complete<br>d27d2d70a072: Pull complete<br>ba039fef4b7e: Pull complete<br>fd026e22f5c3: Pull complete<br>a523c6d55ab4: Pull complete<br>025590874132: Pull complete<br>d1f0ca983d7b: Pull complete<br>40d597c8be8b: Pull complete<br>Digest: sha256:573257b41e1c3554cfe3a856d3c329030a821194172e2aeb1d3a7f5dd896ccb4<br>Status: Downloaded newer image for wordpress:latest<br>Creating wp_db_1 …<br>Creating wp_db_1 … done<br>Creating wp_wordpress_1 …<br>Creating wp_wordpress_1 … done<br></pre><p>เรียกใช้งาน ไฟล์ .yml โดยคำสั่ง docker-compose up -d</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*T56uYV5oMWRCQAgbrbz5sQ.png" /></figure><p>5.จากนั้นทดลองเรียกหน้า wordpress เพื่อ setup โดยเข้าที่ <a href="http://server_ip:8000/">http://SERVER_IP:8000/</a> เลือกภาษาไทย กดปุ่ม ต่อไป</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ga5c-6QkEIUbk8Wy2E-EOA.png" /></figure><p>6. จากนัั้นใส่รายละเอียดให้ครบถ้วน</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FA_YYyk_4YLAQBFtixk_QA.png" /><figcaption>กรอกข้อมูล</figcaption></figure><p>สมัครเสร็จแล้วจะได้ประมาณนี้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DloaJneDeYmlVlxPzkR2zw.png" /></figure><p>7. ทำการเข้าสู่ระบบ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PIFqWaaPDgI5fEuYMCgtTA.png" /><figcaption>หน้าเข้าสู่ระบบ</figcaption></figure><p>หลังจากเข้าระบบ เราจะได้หน้า Wordpress Admin</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AD-AZzbq8YIsrC6oA8SyIw.png" /><figcaption>หน้า Wordpress Admin</figcaption></figure><p>8.เราสามารถโหลด Theme เพื่อใช้ในการตกแต่งเว็บของเราได้ตามใจชอบ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ev34ZEnljPrdnf6lKXUbvA.png" /><figcaption>เลือก Theme</figcaption></figure><p>เลือกThemeที่เราจะใช้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_rRXvLYeWRfQmn8k4llh7A.jpeg" /></figure><p>9.จะได้หน้า Theme มาสามารถปรับเปลี่ยนตกแต่งได้จาก tool bar ข้างขวา</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fyq5NUML8M5WcLAozt8FiA.png" /><figcaption>ตกแต่ง ออกแบบหน้าเว็บ</figcaption></figure><p>สามารถเปลี่ยนหัวข้อเว็บ เว็บไอคอน ใส่โลโก้อะไรได้ตามใจชอบ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*uO4bdv8ZuTEhOjW_DVXGKA.png" /><figcaption>เมนูแก้ไข หัวข้อเว็บ และรูปไอคอน</figcaption></figure><p>สามารถเปลี่ยนสีส่วนต่างๆของหน้าเว็บได้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*JEB2Wr5Xm3RL6ndyayVftQ.png" /><figcaption>เมนูปรับแต่งสี</figcaption></figure><p>10.จากนั้นจะสร้างหน้าเพิ่ม ให้คลิ๊กที่ หน้า และเพิ่มหน้าขึ้นมา</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vawIFCkta1PWDqxajkf6Cw.png" /><figcaption>หน้าของเว็บ</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y7C_IsaWBlp6hnuEiV3PhA.png" /><figcaption>อันนี้จะเป็นการจัดแต่งหน้าแรกของเว็บ</figcaption></figure><p>เพิ่มหน้ามา ตั้งชื่อให้ว่า CUSTOM STYLE</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PKBieU7QvBDZsnbddI_30g.png" /><figcaption>หน้า CUSTOM STYLE</figcaption></figure><p>เพิ่มหน้ามา ตั้งชื่อให้ว่า HISTORY</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZQxTs_fv2SFDEBxmzgCnAw.png" /><figcaption>หน้าHISTORY</figcaption></figure><p>11. จะทำการสร้างเมนู ให้เลือกที่ รูปแบบเว็บ เลือกทีเมนู</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wn1F5-QRhWyy-CCOtI8Wpg.png" /><figcaption>เมนู</figcaption></figure><p>เลือก top menu จะได้ดังนี้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CaQmpph9hi1FYKw88lk8Uw.png" /><figcaption>หน้า top menu</figcaption></figure><p>จากนั้นในการเพิ่ม ให้ลิ้งก์จากหน้าเชื่อมกับแทบในเมนูให้เราไปคัดที่อยู่ URL ของหน้านั้นมาก่อน ตรงที่เป็น ลิ้งก์ถาวร</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*mwMitChie34bHtpI3adubw.png" /></figure><p>มาวางใส่ในช่อง URL</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/359/1*p0PYkEnFRa7hCkJJGcWmLA.png" /></figure><p>ตกแต่งหน้าเว็บใส่เมนูเสร็จแล้วก็จะได้หน้าตาเว็บดังนี้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QILz7GW-mdUYxhAEM8v30w.png" /><figcaption>หน้าตาเว็บ</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*44vnTV7NVd0wT3xkA0e-bQ.png" /><figcaption>หน้าแรกเว็บ</figcaption></figure><p>หากต้องการหยุดให้บริการ server ใช้คำสั่ง</p><pre>docker-compose down</pre><p>หรือหากต้องการลบ container, default network และ database ให้ใช้คำสั่ง</p><pre>docker-compose down --volumes</pre><p>จัดทำโดย</p><pre>นาย ณภัทร สุขสัจธรรม   รหัสนักศึกษา 5835512114     Section. 01</pre><p><strong>Reference:</strong> <br><a href="https://docs.docker.com/compose/wordpress/#build-the-project">https://docs.docker.com/compose/wordpress/#build-the-project</a><br><a href="https://werapun.com/wordpress-on-docker-8d0e5e2f52c6">https://werapun.com/wordpress-on-docker-8d0e5e2f52c6</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8fa11a21962" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>