<?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 Nemo Nutchaya on Medium]]></title>
        <description><![CDATA[Stories by Nemo Nutchaya on Medium]]></description>
        <link>https://medium.com/@nemonutchaya?source=rss-a7ec1b6eb254------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Fs6wUT3iYFOfGd-37V9TxA.jpeg</url>
            <title>Stories by Nemo Nutchaya on Medium</title>
            <link>https://medium.com/@nemonutchaya?source=rss-a7ec1b6eb254------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 04:20:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nemonutchaya/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[Debugging print styles on Chrome & Firefox]]></title>
            <link>https://medium.com/@nemonutchaya/debugging-print-styles-on-chrome-firefox-648c654335be?source=rss-a7ec1b6eb254------2</link>
            <guid isPermaLink="false">https://medium.com/p/648c654335be</guid>
            <category><![CDATA[html]]></category>
            <category><![CDATA[print]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Nemo Nutchaya]]></dc:creator>
            <pubDate>Tue, 29 Jan 2019 03:15:08 GMT</pubDate>
            <atom:updated>2019-01-29T03:15:08.211Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Debugging print styles in Chrome</strong></p><p>In Chrome open DevTools</p><ul><li>MacOS : CMD + Opt + I</li><li>Windows : Ctrl + Shift + I<br>or</li><li>View &gt; Developer &gt; Developer Tools</li></ul><p>Show the console drawer (Esc), open the rendering pane, check <strong>Emulate CSS Media and select Print</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tAOjuxLnBclNO4q-GsFRUQ.jpeg" /><figcaption>Debugging print styles in Chrome</figcaption></figure><p><strong>Debugging print styles in Firefox</strong></p><p>For debugging print styles in Firefox open the Developer Toolbar</p><ul><li>Shift + F2 or Tools &gt; Web Developer &gt; Developer Toolbar</li><li>Enter<strong> media emulate print</strong> in the input field at the bottom of the browser window and press enter.</li></ul><p>The active tab will act as if the media type was print until you close it or refresh the page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WFCtq6lTk2Q8ZwUBU4_nfg.jpeg" /><figcaption>Debugging print styles in Firefox</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=648c654335be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSS Box Model]]></title>
            <link>https://medium.com/@nemonutchaya/css-box-model-5f586f2b39aa?source=rss-a7ec1b6eb254------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f586f2b39aa</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Nemo Nutchaya]]></dc:creator>
            <pubDate>Mon, 28 Jan 2019 06:22:00 GMT</pubDate>
            <atom:updated>2019-01-28T06:22:44.491Z</atom:updated>
            <content:encoded><![CDATA[<p>CSS box model เป็น box ที่คลุมทุกๆ element ของ HTML ไว้ การจะสร้าง Layout ที่ดี ให้กับเว็บไซต์ เราจำเป็นต้องเข้าใจถึง CSS box model</p><p><strong>CSS box model ประกอบด้วยส่วนต่างๆ ดังนี้</strong></p><ol><li>content area : ส่วนที่แสดง text หรือ รูปภาพ</li><li>padding : เป็นช่องว่างที่อยู่ภายใน border ซึ่งคั่นระหว่าง <strong>border</strong> กับ <strong>content</strong> ถัดไป</li><li>border : อยู่รอบ content area และ padding ถ้าสามารถเห็น border ได้ เราจะเห็นการแยกชัดเจนระหว่าง padding กับ margin</li><li>margin : เป็นช่องว่างที่อยู่ภายนอก border ซึ่งคั่นระหว่าง <strong>border</strong> กับ <strong>element</strong> ถัดไป</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o9XY2xsrHMl02tGuLa6o0g.png" /><figcaption>CSS box model</figcaption></figure><h3>ความแตกต่างระหว่าง content-box กับ border-box</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*vs_3pAnhmkgPeG6cjuw-7w.png" /></figure><p>จากภาพตัวอย่างข้างบน จะเห็นว่าเรากำหนดค่า width: 300px; ไว้</p><p>การกำหนด width ของ<strong> content-box</strong> จะหมายถึงความกว้างของ <strong>content area</strong> อย่างเดียว ส่วน <strong>border-box</strong> จะหมายถึงความกว้างภายใน <strong>border (content area + padding + border)</strong></p><p><strong>content-box<br></strong>width = content-area<br>300 = 300</p><p><strong>border-box</strong><br>width = content area + padding + border<br>300 = 260 + (15×2) + (5×2)<br>300 = 260 + (padding ซ้ายและขวา) + (border ซ้ายและขวา)</p><p>ทดลองทำใน Codepen.io<br><a href="https://codepen.io/nemopear/embed/KrdodP/?height=265&amp;theme-id=0&amp;default-tab=html,result">https://codepen.io/nemopear/embed/KrdodP/?height=265&amp;theme-id=0&amp;default-tab=html,result</a></p><p><strong>Image credit :</strong></p><ol><li><a href="https://stackoverflow.com/questions/44453391/what-is-the-difference-between-border-box-and-content-box-in-css"><em>https://stackoverflow.com/questions/44453391/what-is-the-difference-between-border-box-and-content-box-in-css</em></a></li><li><a href="http://ictacademy.com.ng/css-box-model/"><em>http://ictacademy.com.ng/css-box-model/</em></a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f586f2b39aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HTML Code Guide]]></title>
            <link>https://medium.com/@nemonutchaya/html-code-guide-9cfe90770007?source=rss-a7ec1b6eb254------2</link>
            <guid isPermaLink="false">https://medium.com/p/9cfe90770007</guid>
            <category><![CDATA[html]]></category>
            <category><![CDATA[html5]]></category>
            <dc:creator><![CDATA[Nemo Nutchaya]]></dc:creator>
            <pubDate>Mon, 17 Dec 2018 03:56:54 GMT</pubDate>
            <atom:updated>2019-01-28T04:24:03.304Z</atom:updated>
            <content:encoded><![CDATA[<h3>Syntax</h3><ul><li>tag element เป็น lowercase เช่น &lt;html&gt; &lt;p&gt;</li><li>attribute name เป็น lowercase</li><li>ใช้ double-quote สำหรับ attribute value</li><li>ใช้ double quote เวลาประกาศ attribute ใน HTML Element</li><li>tag ในที่ต้องการ closing tag ห้ามลืมปิด closing tag &lt;/li&gt; or &lt;/body&gt;</li><li>กรณีที่เป็น void element หรือ Element ที่ไม่ต้องการ closing tag ก็ไม่ต้องเพิ่ม slash<br>&lt;hr&gt; &lt;img&gt; &lt;input&gt; &lt;link&gt; &lt;meta&gt;</li></ul><p><strong>Note: </strong>Element ที่เป็น Void Element<br>area, base, br, col, embed, hr, img, input, link, meta, param, source, track, wbr</p><h3>HTML5 doctype</h3><p>ต้องประกาศไว้ทุกๆหน้าของ HTML page เพื่อการให้เป็นมาตรฐานเดียวกันในการแสดงผลของแต่ละ Browser เท่าที่จะเป็นไปได้</p><h3>Language Attribute</h3><p>ระบุ lang=”en-us” เพื่อช่วยในการออกเสียง สำเนียง สำหรับเครื่องมืออ่าน หรือแปลภาษา</p><h3>IE Compatibility mode</h3><p>&lt;meta&gt; จะช่วยระบุเครื่องมือ render page ของ IE</p><pre>&lt;meta http-equiv=&quot;x-ua-compatible&quot; content=&quot;ie=edge&quot;&gt; </pre><h3>Character encoding</h3><p>ช่วยตรวจสอบการแสดงผลเนื้อหาได้อย่างรวดเร็ว จากการตรวจสอบจาก encoding โดยทั่วไป default จะตั้งค่าเป็น UTF-8</p><pre>&lt;head&gt;   <br>  &lt;meta charset=&quot;UTF-8&quot;&gt; <br>&lt;/head&gt;</pre><h3>Attribute order</h3><p>การเขียน Attribute ใน Tag ควรเรียงจาม alphabet แต่ยกเว้น class ให้เอาไว้แรกสุด เพราะสามารถ reuse ได้ เพราะเป็นส่วนที่ developer ใช้บ่อยสุด ถ้าเป็นพวก data-* ควรรวมกลุ่มกันไว้ เพื่อให้อ่านง่ายๆ</p><p>มีข้อยกเว้นสำหรับ attribute ‘type’ กรณีที่มี type ให้ประกาศ type ไว้อันดับแรกสุด เพราะ type มีผลต่อการเปลี่ยนแปลงพฤติกรรมของ Element</p><pre>&lt;!-- Put &quot;type&quot; first because it changes the element&#39;s behavior. --&gt; &lt;button type=&quot;&quot; class=&quot;&quot;&gt;&lt;/button&gt;</pre><h3>Boolean attributes</h3><p>Element ที่ต้องแสดง boolean attribute (true หรือ false) ไม่จำเป็นต้องมี attribute value</p><pre>&lt;input type=&quot;text&quot; disabled&gt;</pre><h3>Attribute overload</h3><p>ถ้ามีการกำหนด attribute ใน Element นั้นเป็นจำนวนมาก ก็จะยากต่อการอ่าน ควรจัดการ Pattern ให้อ่านง่าย</p><ul><li>บรรทัดแรกเป็น element</li><li>1 attribute ต่อ 1 บรรทัด</li><li>ไม่ต้อง indent attribute</li><li>บรรทัดสุดท้ายเป็น closing tag</li></ul><pre>&lt;input  <br>type=&quot;text&quot;  <br>class=&quot;&quot;  <br>disabled  <br>id=&quot;&quot;  <br>name=&quot;&quot;  <br>placeholder=&quot;&quot;  <br>readonly  <br>value=&quot;&quot;&gt;</pre><h3>HTML Convention</h3><p><strong>การใช้ Class</strong></p><ul><li>Classไม่มีผลต่อ semantics</li><li>Class สามารถ reuse ได้ มีประโยชน์ต่อการทำเป็น module ได้</li><li>Class เป็น case sensitive เราควรตั้งชื่อ class เป็น lowercase</li><li>การเรียก CSS selector ถ้าใช้ Class จะเร็วกว่าการเรียกผ่าน Element</li></ul><p><strong>การใช้ ID</strong></p><ul><li>ID ต้องเป็น Unique / 1 document ไม่สามารถ reuse ได้</li><li>ID ดีต่อการใช้ใน JS</li></ul><p><strong>Reference</strong></p><p><a href="https://manuals.gravitydept.com/code/html/style-guide">GravDept Field Manuals &quot; Code &quot; HTML &quot; Style Guide</a></p><p><a href="http://codeguide.co/#html">http://codeguide.co/#html</a></p><p><em>Originally published at </em><a href="https://nemo.in.th/2018/12/17/html-code-guide/"><em>nemo.in.th</em></a><em> on December 17, 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9cfe90770007" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[สวัสดี ความเป็นปลาทูแมว]]></title>
            <link>https://medium.com/@nemonutchaya/%E0%B8%AA%E0%B8%A7%E0%B8%B1%E0%B8%AA%E0%B8%94%E0%B8%B5-%E0%B8%84%E0%B8%A7%E0%B8%B2%E0%B8%A1%E0%B9%80%E0%B8%9B%E0%B9%87%E0%B8%99%E0%B8%9B%E0%B8%A5%E0%B8%B2%E0%B8%97%E0%B8%B9%E0%B9%81%E0%B8%A1%E0%B8%A7-e3f6f02f62e?source=rss-a7ec1b6eb254------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3f6f02f62e</guid>
            <dc:creator><![CDATA[Nemo Nutchaya]]></dc:creator>
            <pubDate>Tue, 11 Apr 2017 10:15:04 GMT</pubDate>
            <atom:updated>2017-04-11T10:15:04.457Z</atom:updated>
            <content:encoded><![CDATA[<p>ก่อนที่รับปลาทูมาใหม่ ๆ สิ่งที่เราเตรียมไว้คือ อาหารแมว กระบะทราย และทรายแมว ก็ตื่นเต้น และลุ้นไปอีกว่าจะใช้เป็นรึเปล่า</p><p>แต่ปลาทูเก่งมาก แม่แมวน่าจะสอนมาแล้วว่าใช้กระบะทรายยังไง<br>มาถึงปลาทูก็เข้าห้องน้ำแมวแสดงความเป็นเจ้าของ ปลาทูกลบทรายแรงมาก ไม่ได้ละเมียดละไม เตะทราย อย่างเต็มแรง จนทรายกระจายกลิ้งเกลื่อนบ้าน ต้องตามกวาดกันเป็นประจำ หลังจากนั้นไม่นาน เราเลยต้องไปหากระบะทรายแบบมีหลังคามาแทน</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4lE4Bvgb4Q6WPeil7bNugg.jpeg" /><figcaption>ปลาทูใช้กระบะทรายที่บ้านครั้งแรก</figcaption></figure><p><strong>คืนแรก ลองเอาไปนอนในห้องนอนด้วย</strong><br>ธรรมดาคนขี้เห่อ เอามานอนด้วย ปลาทูก็สำรวจไปเรื่อย มุดไปหมด กวนมาก ไต่หัว ไต่ตัวไปหมด คืนต่อมาให้นอนนอกห้องเลย</p><p><strong>จับอาบน้ำครั้งแรก </strong><br>มาใหม่ๆ ไม่ได้ยินเสียงร้องของความเป็นแมว ได้ยินแต่ แอ๊ะ แอ๊ะ แอ๊ แอ๊<br>(แมวเด็กร้องแบบนี้หรือนี่) พออาบน้ำให้เท่านั้นแหละ ร้องดังลั่นเลย เอ้ย แมวเราร้องได้ด้วย</p><p><strong>ปลาทูเป็นแมวกินเก่ง</strong><br>เราให้อาหารปลาทู วันละ 2 มื้อ เช้าและเย็น ส่วนอาหารที่ชอบคือ Purina One สำหรับแมวเด็ก ให้เท่าไหร่ก็หมด หลังๆ มาเริ่มลดปริมาณ เห็นอ้วนออก ๆ เหนียงก็เพิ่มมากเรื่อยๆ จนเราคิดว่า นี่เราให้ข้าวมันเยอะเกินไปรึเปล่า</p><p><strong>เล่นทุกอย่าง ยกเว้นของที่ตั้งใจซื้อให้<br></strong>ตอนปลาทูมาใหม่ๆ จะมีพี่คนนึงซื้อของมาให้ปลาทูเล่น ถือเป็นการรับขวัญเด็กน้อย มันเป็นที่ฝนเล็บแมว ผ่านมา 6 เดือน ทุกวันนี้ปลาทูยังไม่เล่นเลย ปลาทูชอบเล่นหลอด เล่นถุงก๊อบแก๊บ ฝาขวดน้ำ</p><p>แมว 5 เดือน โตเร็วมาก ถ้าเปรียบคนก็เหมือนจะอยู่ในช่วงวัยรุ่นเลย บางนิสัยก็เปลี่ยนไปจากเดิม จากชอบเล่นมากๆ เริ่มขี้เกียจแล้ว เอาแต่นอนอย่างเดียว หรือนี่เป็นสาเหตุความอ้วนของปลาทู</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h8r86URC0yMhTVTEcXgP7g.jpeg" /><figcaption>ปลาทูอายุ 6 เดือน</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3f6f02f62e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[เรื่องแมว ๆ]]></title>
            <link>https://medium.com/@nemonutchaya/%E0%B9%80%E0%B8%A3%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%87%E0%B9%81%E0%B8%A1%E0%B8%A7-%E0%B9%86-e01508f2195?source=rss-a7ec1b6eb254------2</link>
            <guid isPermaLink="false">https://medium.com/p/e01508f2195</guid>
            <category><![CDATA[ปลาทูแมว]]></category>
            <category><![CDATA[cats]]></category>
            <category><![CDATA[kittens]]></category>
            <dc:creator><![CDATA[Nemo Nutchaya]]></dc:creator>
            <pubDate>Thu, 30 Mar 2017 11:06:45 GMT</pubDate>
            <atom:updated>2017-03-31T10:34:50.261Z</atom:updated>
            <content:encoded><![CDATA[<p>ปลาทูมาอยู่กับเราตั้งแต่วันที่ 17 ธันวาคม 2559</p><p>ตอนนั้นปลาทูอายุ 2 เดือนพอดี ก่อนหน้านั้น เราก็คอยดู เพจเกี่ยวกับแมว และคลั่งไคล้มาก ตั้งใจว่าหลังแต่งงานแล้ว อยากจะมีแมวมาเลี้ยงเป็นของตัวเอง</p><p>ที่มาที่ไปของความอยากมีแมวเป็นของตัวเอง ก่อนหน้านี้จะมีแมว 2 ตัว ชื่อเจ้าอ้วนกับเจ้าซ่าส์ แมวบ้านใกล้ๆ ชอบมาบ้านประจำ ช่วงนี้ไม่มาแล้ว เพราะมีคดี เลยไม่ค่อยถูกปล่อยให้ออกจากบ้าน สาเหตุเพราะมีคนในหมู่บ้านบอกว่า มีแมวมาคุ้ยขยะบ้านเขา แต่เราเชื่อว่านั้นไม่ใช่ฝีมืออ้วนกะซ่าส์หรอก มันพุงใหญ่ และอิ่มออกมาจากบ้านตลอดเวลา และสองตัวนี้ไม่กินของไปเรื่อยด้วย บางทีให้ขนมแมว ซ่าส์จะกินบ้าง แต่อ้วนก็ไม่กินเลย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JHEjOW_n6NYru6uuS4byvw.jpeg" /><figcaption>เลาชื่อซ่าส์ เป็นเพื่อนอ้วน</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*upwNIsTgXhsMKZyw0Y6Hdg.jpeg" /><figcaption>เลาชื่ออ้วน เป็นเพื่อนซ่าส์</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZbRcyEtcVwVOtT8g7_qDXQ.jpeg" /><figcaption>เลาชื่อปลาทู ภาพนี้เราอายุ 2 เดือน</figcaption></figure><p>ตอนนี้ปลาทูอายุ 5 เดือนแล้ว</p><p>ส่วน blog นี้ อยากจะเขียนเรื่องปลาทูเอาไว้ มันเป็นแมวตัวนุ่ม ชอบทำอะไรให้เราหัวเราะได้</p><p>แวะมาอ่านเรื่องปลาทูบ่อยๆ น๊า : )</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e01508f2195" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>