<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5430870440474135754</id><updated>2024-11-08T22:39:01.634+07:00</updated><category term="C#"/><category term="golang"/><category term="php"/><category term="SQL SERVER"/><category term="Linux command"/><category term="PostgreSQL"/><category term="java oop"/><category term="sql"/><category term="centos"/><category term="docker"/><category term="java"/><category term="linq"/><category term="pgadmin3"/><category term="react"/><category term="smf"/><category term="API"/><category term="Add User"/><category term="AppServ"/><category term="Backup Hard disk"/><category term="Data Types"/><category term="Data Types golang"/><category term="ERR! Cannot read property &#39;match&#39; of undefined"/><category term="FileZilla"/><category term="Float to float"/><category term="Float to string"/><category term="Linux OS"/><category term="Local Storage"/><category term="MS Visual studio 2012"/><category term="Mysql"/><category term="Netbeans"/><category term="Netbeans 8.2"/><category term="Server"/><category term="api gateway"/><category term="docker command"/><category term="htaccess"/><category term="http"/><category term="http status code"/><category term="instll in Debian 9"/><category term="js"/><category term="kong api gateway"/><category term="method fmt.Sprintf"/><category term="mssql server"/><category term="mssqllogfile"/><category term="node js"/><category term="pgsql"/><category term="restart Network Interface"/><category term="rewrite"/><category term="springboot"/><category term="tool"/><category term="web"/><category term="ค้นหาตัวอักษรในข้อความ"/><category term="ต่อสตริง golang"/><category term="ทริป Admin"/><category term="ปัดทศนิยม"/><title type='text'>Development Knowledge.</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://thdevelop.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://thdevelop.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>thanawat</name><uri>http://www.blogger.com/profile/02230440132875776926</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVdix1LYdHXhPjTrv5J3qdR6RXWruYybx0oZlA5142IHJW4Z7KrGAsOkY4wagw7DBU1ZSAtps77o__d-q8qASs8oJXeOzPjwK7E97Z5_X0FR-IT6BDLX1vfLByUuwu_Q/s220/IMG_25620112_202013.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>56</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5430870440474135754.post-1270365224047243632</id><published>2021-12-14T11:07:00.002+07:00</published><updated>2021-12-14T11:10:04.016+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Backup Hard disk"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux OS"/><title type='text'>วิธีสำรองข้อมูลระบบปฏิบัติการ Linux โดยใช้คำสั่ง “dd”</title><content type='html'>1. เราสามารถสร้างไฟล์ Backup  ของฮาร์ดดิสก์และบันทึกลงในอุปกรณ์จัดเก็บข้อมูลอื่นๆ มีข้อดีหลายประการในการสำรองข้อมูลของคุณไปเป็นอิมเมจ อีกประการหนึ่งคือความสะดวกในการใช้งาน โดยทั่วไปวิธีนี้จะเร็วกว่าการสำรองข้อมูลประเภทอื่น ทำให้คุณสามารถกู้คืนข้อมูลได้อย่างรวดเร็วหลังเกิดเหตุที่ไม่คาดคิดขึ้น ใช้คำสั่งด้านล่างเพื่อสำรองข้อมูลฮาร์ดดิสก์ /dev/sda ไปเป็นไฟล์อิมเมจของดิสก์&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;# dd if=/dev/sda of=/var/tmp/sda_disk.img&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;if: ไดรฟ์ต้นทาง (/dev/sda)&amp;nbsp;&lt;/div&gt;&lt;div&gt;of: ไดรฟ์ปลายทาง  (/dev/sdb)&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;2.ในการกู้คืนฮาร์ดดิสก์ด้วยไฟล์อิมเมจที่เราสร้างขึ้น ให้ใช้คำสั่ง dd ต่อไปนี้&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;# dd if=sda_disk.img of=/dev/sdc&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;if:  ไดรฟ์ต้นทาง (/dev/sda)&amp;nbsp;&lt;/div&gt;&lt;div&gt;of: ไดรฟ์ปลายทาง (/dev/sdb)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thdevelop.blogspot.com/feeds/1270365224047243632/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://thdevelop.blogspot.com/2021/12/linux-dd.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/1270365224047243632'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/1270365224047243632'/><link rel='alternate' type='text/html' href='http://thdevelop.blogspot.com/2021/12/linux-dd.html' title='วิธีสำรองข้อมูลระบบปฏิบัติการ Linux โดยใช้คำสั่ง “dd”'/><author><name>thanawat</name><uri>http://www.blogger.com/profile/02230440132875776926</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVdix1LYdHXhPjTrv5J3qdR6RXWruYybx0oZlA5142IHJW4Z7KrGAsOkY4wagw7DBU1ZSAtps77o__d-q8qASs8oJXeOzPjwK7E97Z5_X0FR-IT6BDLX1vfLByUuwu_Q/s220/IMG_25620112_202013.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5430870440474135754.post-7551490886081337583</id><published>2021-07-26T09:31:00.007+07:00</published><updated>2021-07-26T10:03:52.196+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="docker command"/><title type='text'>docker command</title><content type='html'>---manage docker container 

docker exec -it  {containerID} sh

</content><link rel='replies' type='application/atom+xml' href='http://thdevelop.blogspot.com/feeds/7551490886081337583/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://thdevelop.blogspot.com/2021/07/docker-command.html#comment-form' title='1 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/7551490886081337583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/7551490886081337583'/><link rel='alternate' type='text/html' href='http://thdevelop.blogspot.com/2021/07/docker-command.html' title='docker command'/><author><name>thanawat</name><uri>http://www.blogger.com/profile/02230440132875776926</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVdix1LYdHXhPjTrv5J3qdR6RXWruYybx0oZlA5142IHJW4Z7KrGAsOkY4wagw7DBU1ZSAtps77o__d-q8qASs8oJXeOzPjwK7E97Z5_X0FR-IT6BDLX1vfLByUuwu_Q/s220/IMG_25620112_202013.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5430870440474135754.post-808255981152184204</id><published>2021-07-24T13:49:00.002+07:00</published><updated>2021-07-24T15:17:24.219+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="restart Network Interface"/><title type='text'>restart server network  Ubuntu / Debian</title><content type='html'>-&gt;ใช้คำสั่งต่อไปนี้เพื่อรีเซทเครือข่ายใหม่
 
# sudo /etc/init.d/networking restart
หรือ
# sudo /etc/init.d/networking stop
# sudo /etc/init.d/networking start
หรือ
# sudo systemctl restart networking
 

-&gt;เมื่อเสร็จแล้ว ให้ใช้คำสั่งต่อไปนี้เพื่อตรวจสอบสถานะ
 
# sudo /etc/init.d/networking status
หรือ
# sudo systemctl status networking
 </content><link rel='replies' type='application/atom+xml' href='http://thdevelop.blogspot.com/feeds/808255981152184204/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://thdevelop.blogspot.com/2021/07/restart-server-network-ubuntu-debian.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/808255981152184204'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/808255981152184204'/><link rel='alternate' type='text/html' href='http://thdevelop.blogspot.com/2021/07/restart-server-network-ubuntu-debian.html' title='restart server network  Ubuntu / Debian'/><author><name>thanawat</name><uri>http://www.blogger.com/profile/02230440132875776926</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVdix1LYdHXhPjTrv5J3qdR6RXWruYybx0oZlA5142IHJW4Z7KrGAsOkY4wagw7DBU1ZSAtps77o__d-q8qASs8oJXeOzPjwK7E97Z5_X0FR-IT6BDLX1vfLByUuwu_Q/s220/IMG_25620112_202013.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5430870440474135754.post-4817249471558679819</id><published>2021-07-13T09:51:00.004+07:00</published><updated>2021-07-13T09:53:11.476+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="api gateway"/><category scheme="http://www.blogger.com/atom/ns#" term="kong api gateway"/><title type='text'>ตรวจสอบสถานะ  Kong</title><content type='html'>เริ่มต้นต้นด้วย รันคำสั่งต่อไปนี้นะครับ

&lt;blockquote&gt;kong health&lt;/blockquote&gt;
 
จะแสดงผลตามภาพครับ
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFiJSyU_TRLkq5Aqo-5YuuymSRBp9qY4YkWiL7XjtETtl9M165hGTwG_xnT5o8JSHz3KYPbjXV0ooLF0JNeizAOV6QaiZjKjMIIHGHLwPVJ7xmF7cBlV2QVsARiuxdM9vJ3r5cmGZ94_E/s334/Capturesssssssssssssssssssssssssssss.JPG&quot; style=&quot;display: block; padding: 1em 0; text-align: center; &quot;&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; width=&quot;320&quot; data-original-height=&quot;86&quot; data-original-width=&quot;334&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFiJSyU_TRLkq5Aqo-5YuuymSRBp9qY4YkWiL7XjtETtl9M165hGTwG_xnT5o8JSHz3KYPbjXV0ooLF0JNeizAOV6QaiZjKjMIIHGHLwPVJ7xmF7cBlV2QVsARiuxdM9vJ3r5cmGZ94_E/s320/Capturesssssssssssssssssssssssssssss.JPG&quot;/&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thdevelop.blogspot.com/feeds/4817249471558679819/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://thdevelop.blogspot.com/2021/07/kong.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/4817249471558679819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/4817249471558679819'/><link rel='alternate' type='text/html' href='http://thdevelop.blogspot.com/2021/07/kong.html' title='ตรวจสอบสถานะ  Kong'/><author><name>thanawat</name><uri>http://www.blogger.com/profile/02230440132875776926</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVdix1LYdHXhPjTrv5J3qdR6RXWruYybx0oZlA5142IHJW4Z7KrGAsOkY4wagw7DBU1ZSAtps77o__d-q8qASs8oJXeOzPjwK7E97Z5_X0FR-IT6BDLX1vfLByUuwu_Q/s220/IMG_25620112_202013.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFiJSyU_TRLkq5Aqo-5YuuymSRBp9qY4YkWiL7XjtETtl9M165hGTwG_xnT5o8JSHz3KYPbjXV0ooLF0JNeizAOV6QaiZjKjMIIHGHLwPVJ7xmF7cBlV2QVsARiuxdM9vJ3r5cmGZ94_E/s72-c/Capturesssssssssssssssssssssssssssss.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5430870440474135754.post-41566784796357997</id><published>2021-02-24T16:32:00.003+07:00</published><updated>2021-02-24T16:32:22.790+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Add User"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux command"/><title type='text'>Add User in Debian for docker  (เพิ่ม user ใน  Debian)</title><content type='html'>หลังจากเข้า server พิมพ์คำสั่งดังต่อไปนี้เลยครับ 

1.เพิ่ม user 
	&lt;blockquote&gt;sudo adduser username&lt;/blockquote&gt;

ex ผมเพิ่ม user ชื่อ service
&lt;blockquote&gt;Adding user `service&#39; ...
Adding new group `service&#39; (1001) ...
Adding new user `service&#39; (1001) with group `service&#39; ...
Creating home directory `/home/service&#39; ...
Copying files from `/etc/skel&#39; ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for service
Enter the new value, or press ENTER for the default
        Full Name []: serviceuser
        Room Number []: docker
        Work Phone []:
        Home Phone []:
        Other []:&lt;/blockquote&gt;

2.ต่อมาเพิ่มกลุ่ม กันก่อนครับ ผมจะเพิ่มกลุ่มชื่อ docker นะครับ
  sudo groupadd docker

3.ต่อมาเราจะมาเพิ่ม user เข้ากลุ่มที่เราสร้างไว้ ด้วยคำสัง  sudo usermod -aG docker service

เป็นอันเสร็จครับ 

***เพิ่มเติม
การเปลี่ยน password ใช้คำสั่งตามนี้ครับ

&lt;blockquote&gt; passwd service&lt;/blockquote&gt;

หรือ 

&lt;blockquote&gt; sudo passwd service&lt;/blockquote&gt;


*** แถม
การลบ user ใช้คำสั่ง deluser เช่น

&lt;blockquote&gt;sudo deluser service&lt;/blockquote&gt;

และลบ user + folder 
&lt;blockquote&gt;sudo deluser --remove-home service&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://thdevelop.blogspot.com/feeds/41566784796357997/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://thdevelop.blogspot.com/2021/02/add-user-in-debian-for-docker-user.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/41566784796357997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/41566784796357997'/><link rel='alternate' type='text/html' href='http://thdevelop.blogspot.com/2021/02/add-user-in-debian-for-docker-user.html' title='Add User in Debian for docker  (เพิ่ม user ใน  Debian)'/><author><name>thanawat</name><uri>http://www.blogger.com/profile/02230440132875776926</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVdix1LYdHXhPjTrv5J3qdR6RXWruYybx0oZlA5142IHJW4Z7KrGAsOkY4wagw7DBU1ZSAtps77o__d-q8qASs8oJXeOzPjwK7E97Z5_X0FR-IT6BDLX1vfLByUuwu_Q/s220/IMG_25620112_202013.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5430870440474135754.post-9158507420849997868</id><published>2021-01-21T11:41:00.001+07:00</published><updated>2021-01-21T11:41:22.612+07:00</updated><title type='text'>React Router หลังอัปเดท V.5 แล้วไม่แสดงผลหน้าเว็บ</title><content type='html'>&lt;p&gt;&amp;nbsp;หลังจากการอัปเดทเวอร์ชันของ&amp;nbsp;React Router ไปใช้ v.5 ที่อัพในโปรเจคเป็น v.5.2.0&amp;nbsp;แล้วไม่สามารถแสดงหน้าเว็บไซต์ที่เราทำการ&amp;nbsp;Redirect&amp;nbsp; ไปยังหน้าต่างๆ หลังจากการหาว่ามีปัญหาที่ส่วนไหน สุดท้ายมาเจอตัวที่มีส่วนที่ทำให้สคริปไม่สามารถทำงานได้คือ&amp;nbsp;&quot;history&quot;: &quot;^5.0.0&quot; หลังจากที่ได้ลง&amp;nbsp;downgrade ลงเป็น&amp;nbsp;&lt;span style=&quot;background-color: #1e1e1e; color: #ce9178; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; white-space: pre;&quot;&gt;4.10.1&lt;/span&gt;&lt;/p&gt;ปรากฎว่า ทำงานได้ปกติ&amp;nbsp;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;ex :&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;div style=&quot;background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;React&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;react&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;ReactDOM&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;react-dom&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt;&amp;nbsp;{&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;createBrowserHistory&lt;/span&gt;&amp;nbsp;}&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;history&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt;&amp;nbsp;{&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Router&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Route&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Switch&lt;/span&gt;,&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Redirect&lt;/span&gt;&amp;nbsp;}&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;react-router-dom&quot;&lt;/span&gt;;&amp;nbsp;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #6a9955;&quot;&gt;//&amp;nbsp;core&amp;nbsp;components&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Admin&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;layouts/Admin.js&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Front&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;layouts/Front.js&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Authen&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #c586c0;&quot;&gt;from&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;layouts/Authen.js&quot;&lt;/span&gt;;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #c586c0;&quot;&gt;import&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;assets/css/material-local.css&quot;&lt;/span&gt;;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;const&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #4fc1ff;&quot;&gt;hist&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span style=&quot;color: #dcdcaa;&quot;&gt;createBrowserHistory&lt;/span&gt;();&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;ReactDOM&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;render&lt;/span&gt;(&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Router&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;history&lt;/span&gt;=&lt;span style=&quot;color: #569cd6;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #4fc1ff;&quot;&gt;hist&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Switch&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Route&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;path&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;/admin&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;component&lt;/span&gt;=&lt;span style=&quot;color: #569cd6;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Admin&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;}&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Route&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;path&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;/front&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;component&lt;/span&gt;=&lt;span style=&quot;color: #569cd6;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Front&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;}&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Route&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;path&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;/authen&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;component&lt;/span&gt;=&lt;span style=&quot;color: #569cd6;&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;Authen&lt;/span&gt;&lt;span style=&quot;color: #569cd6;&quot;&gt;}&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Redirect&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;from&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;*&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;to&lt;/span&gt;=&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;/front&quot;&lt;/span&gt;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Switch&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: grey;&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&quot;color: #4ec9b0;&quot;&gt;Router&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;&amp;gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;,&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #9cdcfe;&quot;&gt;document&lt;/span&gt;.&lt;span style=&quot;color: #dcdcaa;&quot;&gt;getElementById&lt;/span&gt;(&lt;span style=&quot;color: #ce9178;&quot;&gt;&quot;root&quot;&lt;/span&gt;)&lt;/div&gt;&lt;div&gt;);&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;</content><link rel='replies' type='application/atom+xml' href='http://thdevelop.blogspot.com/feeds/9158507420849997868/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://thdevelop.blogspot.com/2021/01/react-router-v5.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/9158507420849997868'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/9158507420849997868'/><link rel='alternate' type='text/html' href='http://thdevelop.blogspot.com/2021/01/react-router-v5.html' title='React Router หลังอัปเดท V.5 แล้วไม่แสดงผลหน้าเว็บ'/><author><name>thanawat</name><uri>http://www.blogger.com/profile/02230440132875776926</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVdix1LYdHXhPjTrv5J3qdR6RXWruYybx0oZlA5142IHJW4Z7KrGAsOkY4wagw7DBU1ZSAtps77o__d-q8qASs8oJXeOzPjwK7E97Z5_X0FR-IT6BDLX1vfLByUuwu_Q/s220/IMG_25620112_202013.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5430870440474135754.post-5673161062217804463</id><published>2021-01-07T09:18:00.001+07:00</published><updated>2021-01-07T09:18:10.316+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="golang"/><title type='text'>ติดตั้ง package golang #กันลืม</title><content type='html'>&lt;p&gt;&amp;nbsp;ใช้คำสั่ง go get ตามด้วย&amp;nbsp;packageที่ต้องการ&lt;/p&gt;&lt;p&gt;EX: go get github.com/dgrijalva/jwt-go&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://thdevelop.blogspot.com/feeds/5673161062217804463/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://thdevelop.blogspot.com/2021/01/package-golang.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/5673161062217804463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/5673161062217804463'/><link rel='alternate' type='text/html' href='http://thdevelop.blogspot.com/2021/01/package-golang.html' title='ติดตั้ง package golang #กันลืม'/><author><name>thanawat</name><uri>http://www.blogger.com/profile/02230440132875776926</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVdix1LYdHXhPjTrv5J3qdR6RXWruYybx0oZlA5142IHJW4Z7KrGAsOkY4wagw7DBU1ZSAtps77o__d-q8qASs8oJXeOzPjwK7E97Z5_X0FR-IT6BDLX1vfLByUuwu_Q/s220/IMG_25620112_202013.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5430870440474135754.post-1762583472312180293</id><published>2020-11-18T10:45:00.007+07:00</published><updated>2020-11-18T10:46:38.834+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mssql server"/><category scheme="http://www.blogger.com/atom/ns#" term="mssqllogfile"/><title type='text'>clene logs mssql server   ลบ logs mssql server</title><content type='html'>&lt;pre style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; color: #333333; font-family: Menlo, Monaco, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13px; line-height: 1.42857; margin-bottom: 10px; margin-top: 0px; overflow-wrap: break-word; overflow: auto; padding: 9.5px; word-break: break-all;&quot;&gt;ALTER DATABASE DBName
SET RECOVERY SIMPLE
GO
DBCC SHRINKFILE (LogFileName, Desired Size in MB)
GO
ALTER DATABASE DBName 
SET RECOVERY FULL&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://thdevelop.blogspot.com/feeds/1762583472312180293/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://thdevelop.blogspot.com/2020/11/clene-logs-mssql-server-logs-mssql.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/1762583472312180293'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/1762583472312180293'/><link rel='alternate' type='text/html' href='http://thdevelop.blogspot.com/2020/11/clene-logs-mssql-server-logs-mssql.html' title='clene logs mssql server   ลบ logs mssql server'/><author><name>thanawat</name><uri>http://www.blogger.com/profile/02230440132875776926</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVdix1LYdHXhPjTrv5J3qdR6RXWruYybx0oZlA5142IHJW4Z7KrGAsOkY4wagw7DBU1ZSAtps77o__d-q8qASs8oJXeOzPjwK7E97Z5_X0FR-IT6BDLX1vfLByUuwu_Q/s220/IMG_25620112_202013.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5430870440474135754.post-3430733801087950857</id><published>2020-10-10T13:27:00.003+07:00</published><updated>2020-10-13T14:11:24.820+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="react"/><title type='text'>React.useEffect   ***บันทึกไว้กันลืม</title><content type='html'>&lt;br /&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;const Getdata= () =&amp;gt; {&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;// state loaded เอาไว้ render ในกรณีที่ยังไม่ได้ข้อมูลจาก service&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;[loaded, setLoaded] = React.useState(false)&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;// state content เอาไว้ใส่ข้อมูล&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;[content, setContent] = React.useState(&#39;&#39;)

 useEffect(() =&amp;gt; {&amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;// ดึงข้อมูลเสร็จแล้วค่อยทำ setContent&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;getContent.then(res =&amp;gt; {&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;setLoaded(true)
 setContent(res)&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;})&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;// เมื่อทำ unmount ก็ clear state กลับเป็นอย่างเดิม&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;return () =&amp;gt; {&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;setLoaded(false)&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;setContent(&#39;&#39;)
 }
 },&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;// state ที่เราสนใจจะ subscribe ใน useEffect ตัวนี้&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&amp;nbsp;[loaded, content])&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;}&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;***&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #08090a; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 20px;&quot;&gt;- useEffect ใน React functional component แทน componentDidMount&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #08090a; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 20px;&quot;&gt;- useEffect คล้ายๆ componentDidMount&amp;nbsp; แต่&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #08090a; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 20px;&quot;&gt;ยืดหยุ่นกว่า&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #08090a; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 20px;&quot;&gt;-&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #08090a; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 20px;&quot;&gt;componentDidMount ถูก trigger ทุกครั้งที่ component ถูก mount กับ DOM หรือทุกครั้งที่ state เปลี่ยนแปลง&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #08090a; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 20px;&quot;&gt;-&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #08090a; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 20px;&quot;&gt;useEffect ก็จะ trigger ทุกครั้งที่ state หรือ props ของ function เปลี่ยนแปลง แต่เราสามารถกำหนดได้ด้วย ว่าจะสนใจ state หรือ props ไหน&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #08090a; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 20px;&quot;&gt;-&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #08090a; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 20px;&quot;&gt;useEffect เองก็สามารถทำ componentWillUnMount ได้ด้วย โดย return function&lt;/span&gt;&lt;/div&gt;&lt;div&gt;-&amp;nbsp;&lt;span style=&quot;background-color: white; color: #08090a; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Roboto, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 20px;&quot;&gt;useEffect เหมาะสำหรับเอาไปใช้รอรับ callback จาก service หรือทำ redux dispatch&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thdevelop.blogspot.com/feeds/3430733801087950857/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://thdevelop.blogspot.com/2020/10/reactuseeffect.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/3430733801087950857'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/3430733801087950857'/><link rel='alternate' type='text/html' href='http://thdevelop.blogspot.com/2020/10/reactuseeffect.html' title='React.useEffect   ***บันทึกไว้กันลืม'/><author><name>thanawat</name><uri>http://www.blogger.com/profile/02230440132875776926</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVdix1LYdHXhPjTrv5J3qdR6RXWruYybx0oZlA5142IHJW4Z7KrGAsOkY4wagw7DBU1ZSAtps77o__d-q8qASs8oJXeOzPjwK7E97Z5_X0FR-IT6BDLX1vfLByUuwu_Q/s220/IMG_25620112_202013.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5430870440474135754.post-1278649020865165845</id><published>2020-09-29T10:37:00.005+07:00</published><updated>2020-09-29T10:43:18.081+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="docker"/><category scheme="http://www.blogger.com/atom/ns#" term="instll in Debian 9"/><title type='text'>วิธีการติดตั้ง Docker บน Debian 9 (Stretch)</title><content type='html'>&lt;p&gt;&lt;span face=&quot;medium-content-sans-serif-font, &amp;quot;Lucida Grande&amp;quot;, &amp;quot;Lucida Sans Unicode&amp;quot;, &amp;quot;Lucida Sans&amp;quot;, Geneva, Arial, sans-serif&quot; style=&quot;background-color: white; color: #292929; font-size: 36px; letter-spacing: -0.022em;&quot;&gt;Step 1&amp;nbsp; ก่อนติดตั้ง&lt;/span&gt;&lt;/p&gt;&lt;div&gt;ถ้ามีการติดตั้ง&amp;nbsp;&amp;nbsp;Docker มาก่อน ต้องลบก่อนนะครับด้วยคำสั่ง&amp;nbsp;&lt;/div&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #b6d7a8;&quot;&gt;apt-get purge docker lxc-docker docker-engine docker.io&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;ตอนนี้ติดตั้งแพ็คเกจที่จำเป็นบนระบบของคุณเพื่อติดตั้ง Docker บนระบบ Debian  ใช้คำสั่งด้านล่างนี้นี้ครับ:&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;span face=&quot;medium-content-sans-serif-font, &amp;quot;Lucida Grande&amp;quot;, &amp;quot;Lucida Sans Unicode&amp;quot;, &amp;quot;Lucida Sans&amp;quot;, Geneva, Arial, sans-serif&quot; style=&quot;background-color: white; color: #292929; font-size: 36px; letter-spacing: -0.022em;&quot;&gt;Step 2 ติดตั้ง Docker Repository&lt;/span&gt;&lt;/div&gt;สร้างคีย์ เพื่อเอาไว้ตรวจสอบลายเซ็นของ packages ก่อนติดตั้งครับด้วยคำสั่งต่อไปนี้&lt;div&gt;&lt;br /&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common&lt;br /&gt;&lt;/span&gt;&lt;div&gt;

&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;

หลังจากนั้นให้เพิ่มที่เก็บ Docker บนระบบ Debian ของคุณซึ่งมีแพ็คเกจ Docker รวมถึงการอ้างอิง คุณต้องเปิดใช้งานที่เก็บนี้เพื่อติดตั้ง Docker บน Debian ด้วยคำสั่งดังนี้&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;add-apt-repository &quot;deb [arch=amd64] https://download.docker.com/linux/debian stretch stable&quot; &lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: x-large;&quot;&gt;&lt;b&gt;Step&lt;span face=&quot;medium-content-sans-serif-font, &amp;quot;Lucida Grande&amp;quot;, &amp;quot;Lucida Sans Unicode&amp;quot;, &amp;quot;Lucida Sans&amp;quot;, Geneva, Arial, sans-serif&quot; style=&quot;background-color: white; color: #292929; letter-spacing: -0.022em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span face=&quot;medium-content-sans-serif-font, &amp;quot;Lucida Grande&amp;quot;, &amp;quot;Lucida Sans Unicode&amp;quot;, &amp;quot;Lucida Sans&amp;quot;, Geneva, Arial, sans-serif&quot; style=&quot;background-color: white; color: #292929; font-size: 36px; letter-spacing: -0.022em;&quot;&gt;3 — ติดตั้ง Docker on Debian 9&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;ระบบของคุณพร้อมสำหรับการติดตั้ง Docker  แล้ว รันคำสั่งต่อไปนี้ เลย&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;apt-get update&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;apt-get install docker-ce&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;หลังจากติดตั้ง Docker คำสั่งด้านล่างเพื่อตรวจสอบสถานะ&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;systemctl status docker&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTxfCZQBtH9WvLxt2c938mc2hMduNzbQve7blOB5Yq5d0YlOD4L-tJQbT3PntFMZvw8Qf4gVaMOkJLnOzeUASoEOC-l6D7DPJzw0Jq2MPmEeFV9PMWeb78-FDrMKunvgAY5nES4VsopeY/s1899/2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;384&quot; data-original-width=&quot;1899&quot; height=&quot;119&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTxfCZQBtH9WvLxt2c938mc2hMduNzbQve7blOB5Yq5d0YlOD4L-tJQbT3PntFMZvw8Qf4gVaMOkJLnOzeUASoEOC-l6D7DPJzw0Jq2MPmEeFV9PMWeb78-FDrMKunvgAY5nES4VsopeY/w584-h119/2.JPG&quot; width=&quot;584&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div id=&quot;gtx-trans&quot; style=&quot;left: 39px; position: absolute; top: 615px;&quot;&gt;&lt;div class=&quot;gtx-trans-icon&quot;&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thdevelop.blogspot.com/feeds/1278649020865165845/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://thdevelop.blogspot.com/2020/09/docker-debian-9-stretch.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/1278649020865165845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/1278649020865165845'/><link rel='alternate' type='text/html' href='http://thdevelop.blogspot.com/2020/09/docker-debian-9-stretch.html' title='วิธีการติดตั้ง Docker บน Debian 9 (Stretch)'/><author><name>thanawat</name><uri>http://www.blogger.com/profile/02230440132875776926</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVdix1LYdHXhPjTrv5J3qdR6RXWruYybx0oZlA5142IHJW4Z7KrGAsOkY4wagw7DBU1ZSAtps77o__d-q8qASs8oJXeOzPjwK7E97Z5_X0FR-IT6BDLX1vfLByUuwu_Q/s220/IMG_25620112_202013.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTxfCZQBtH9WvLxt2c938mc2hMduNzbQve7blOB5Yq5d0YlOD4L-tJQbT3PntFMZvw8Qf4gVaMOkJLnOzeUASoEOC-l6D7DPJzw0Jq2MPmEeFV9PMWeb78-FDrMKunvgAY5nES4VsopeY/s72-w584-h119-c/2.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5430870440474135754.post-6799057645829472991</id><published>2020-09-29T08:56:00.002+07:00</published><updated>2020-09-29T08:57:20.452+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux command"/><title type='text'>วิธีการ ใช้ Debian (Linux) ในฐานะ Root User</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #545454; font-family: Helvetica, Nimbus Sans L, Arial, Liberation Sans, sans-serif;&quot;&gt;&quot;root&quot; account หรือ root user ในคอมพิวเตอร์&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #545454; font-family: Helvetica, Nimbus Sans L, Arial, Liberation Sans, sans-serif;&quot;&gt;Debian (&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #545454; font-family: Helvetica, &amp;quot;Nimbus Sans L&amp;quot;, Arial, &amp;quot;Liberation Sans&amp;quot;, sans-serif;&quot;&gt;Linux)&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #545454; font-family: Helvetica, Nimbus Sans L, Arial, Liberation Sans, sans-serif;&quot;&gt;&amp;nbsp;เป็นบัญชีผู้ใช้ที่มีสิทธิ์เต็มที่ในการใช้งานและปรับแต่งส่วนต่างๆ การใช้คอมแบบ root access นั้นจำเป็นถ้าจะใช้คำสั่งบางอย่างใน&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #545454; font-family: Helvetica, Nimbus Sans L, Arial, Liberation Sans, sans-serif;&quot;&gt;Debian (&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #545454; font-family: Helvetica, &amp;quot;Nimbus Sans L&amp;quot;, Arial, &amp;quot;Liberation Sans&amp;quot;, sans-serif;&quot;&gt;Linux) โดยเฉพาะ &lt;br /&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;root access ควรใช้เฉพาะตอนที่จำเป็นจริงๆ อย่าล็อกอินไว้ด้วย root user ตลอด จะได้ไม่เผลอทำไฟล์ระบบที่สำคัญเสียหายได้&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWPvlqKLAnnzIj2OyAw2BQn3TX0h23efEfIlLKQ1y-da1GxbdIR6URyLGdpHdgbfP1qx3IxgBlt8PjqUetxVjuoeWcUtGeNOKiStAmMKCVKRHbUszf66vNtnO_OWmm1lnTNWhynaDb944/s548/1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;117&quot; data-original-width=&quot;548&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWPvlqKLAnnzIj2OyAw2BQn3TX0h23efEfIlLKQ1y-da1GxbdIR6URyLGdpHdgbfP1qx3IxgBlt8PjqUetxVjuoeWcUtGeNOKiStAmMKCVKRHbUszf66vNtnO_OWmm1lnTNWhynaDb944/s320/1.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;b class=&quot;whb&quot; style=&quot;-webkit-tap-highlight-color: transparent; background: none rgb(255, 255, 255); border: 0px; color: #545454; font-family: Helvetica, &amp;quot;Nimbus Sans L&amp;quot;, Arial, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;1. พิมพ์&amp;nbsp;&lt;span style=&quot;-webkit-tap-highlight-color: transparent; background: none; border: 0px; font-family: inherit; font-size: 0px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;/b&gt;&lt;kbd style=&quot;-webkit-tap-highlight-color: transparent; background: rgb(238, 238, 238); color: #545454; font-size: 16px; letter-spacing: 0.1em; padding-left: 0.5em; padding-right: 0.4em;&quot;&gt;su -&lt;/kbd&gt;&lt;span style=&quot;background-color: white; color: #545454; font-family: Helvetica, &amp;quot;Nimbus Sans L&amp;quot;, Arial, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;&amp;nbsp; ใน&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #545454; font-family: Helvetica, &amp;quot;Nimbus Sans L&amp;quot;, Arial, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;terminal&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #545454; font-family: Helvetica, &amp;quot;Nimbus Sans L&amp;quot;, Arial, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #545454; font-family: Helvetica, &amp;quot;Nimbus Sans L&amp;quot;, Arial, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;-webkit-tap-highlight-color: transparent; background: none rgb(255, 255, 255); border: 0px; color: #545454; font-family: Helvetica, &amp;quot;Nimbus Sans L&amp;quot;, Arial, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;แล้วกด&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #545454; font-family: Helvetica, &amp;quot;Nimbus Sans L&amp;quot;, Arial, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: transparent; background: none rgb(255, 255, 255); border: 0px; color: #545454; font-family: Helvetica, &amp;quot;Nimbus Sans L&amp;quot;, Arial, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;&quot;&gt;&lt;kbd class=&quot;keyboard-key nowrap&quot; style=&quot;-webkit-tap-highlight-color: transparent; background-color: #f3f3f3; border-color: rgb(219, 219, 219) rgb(243, 243, 243) rgb(243, 243, 243) rgb(219, 219, 219); border-image: initial; border-style: outset; border-width: 3px; font-family: inherit; font-size: 0.85em; padding: 0px 2px;&quot;&gt;&lt;span class=&quot;Unicode&quot; style=&quot;-webkit-tap-highlight-color: transparent; background: none; border: 0px; font-family: inherit; font-size: 13.6px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;↵&lt;/span&gt;&amp;nbsp;Enter&lt;/kbd&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #545454; font-family: Helvetica, &amp;quot;Nimbus Sans L&amp;quot;, Arial, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;. เพื่อล็อกอินในฐานะ &quot;super user&quot;&amp;nbsp;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;b class=&quot;whb&quot; style=&quot;-webkit-tap-highlight-color: transparent; background: none rgb(255, 255, 255); border: 0px; color: #545454; font-family: Helvetica, &amp;quot;Nimbus Sans L&amp;quot;, Arial, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;2. ใส่รหัสผ่าน root ตอนที่ถูกถาม.&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #545454; font-family: Helvetica, &amp;quot;Nimbus Sans L&amp;quot;, Arial, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;&amp;nbsp;พอพิมพ์&amp;nbsp;&lt;/span&gt;&lt;kbd style=&quot;-webkit-tap-highlight-color: transparent; background: rgb(238, 238, 238); color: #545454; font-size: 16px; letter-spacing: 0.1em; padding-left: 0.5em; padding-right: 0.4em;&quot;&gt;su -&lt;/kbd&gt;&lt;span style=&quot;background-color: white; color: #545454; font-family: Helvetica, &amp;quot;Nimbus Sans L&amp;quot;, Arial, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;&amp;nbsp;และกด&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;-webkit-tap-highlight-color: transparent; background: none rgb(255, 255, 255); border: 0px; color: #545454; font-family: Helvetica, &amp;quot;Nimbus Sans L&amp;quot;, Arial, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;&quot;&gt;&lt;kbd class=&quot;keyboard-key nowrap&quot; style=&quot;-webkit-tap-highlight-color: transparent; background-color: #f3f3f3; border-color: rgb(219, 219, 219) rgb(243, 243, 243) rgb(243, 243, 243) rgb(219, 219, 219); border-image: initial; border-style: outset; border-width: 3px; font-family: inherit; font-size: 0.85em; padding: 0px 2px;&quot;&gt;&lt;span class=&quot;Unicode&quot; style=&quot;-webkit-tap-highlight-color: transparent; background: none; border: 0px; font-family: inherit; font-size: 13.6px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;↵&lt;/span&gt;&amp;nbsp;Enter&lt;/kbd&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #545454; font-family: Helvetica, &amp;quot;Nimbus Sans L&amp;quot;, Arial, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;&amp;nbsp;แล้ว คุณจะถูกถามรหัสผ่าน root&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: white; color: #545454; font-family: Helvetica, &amp;quot;Nimbus Sans L&amp;quot;, Arial, &amp;quot;Liberation Sans&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #545454; font-family: Helvetica, Nimbus Sans L, Arial, Liberation Sans, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;*** วันนี้เอาเท่านี้ก่อนนะครับเดี่ยวเเวะมาเขียนต่อ&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: white; color: #545454; font-family: Helvetica, &amp;quot;Nimbus Sans L&amp;quot;, Arial, &amp;quot;Liberation Sans&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://thdevelop.blogspot.com/feeds/6799057645829472991/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://thdevelop.blogspot.com/2020/09/debian-linux-root-user.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/6799057645829472991'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/6799057645829472991'/><link rel='alternate' type='text/html' href='http://thdevelop.blogspot.com/2020/09/debian-linux-root-user.html' title='วิธีการ ใช้ Debian (Linux) ในฐานะ Root User'/><author><name>thanawat</name><uri>http://www.blogger.com/profile/02230440132875776926</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVdix1LYdHXhPjTrv5J3qdR6RXWruYybx0oZlA5142IHJW4Z7KrGAsOkY4wagw7DBU1ZSAtps77o__d-q8qASs8oJXeOzPjwK7E97Z5_X0FR-IT6BDLX1vfLByUuwu_Q/s220/IMG_25620112_202013.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWPvlqKLAnnzIj2OyAw2BQn3TX0h23efEfIlLKQ1y-da1GxbdIR6URyLGdpHdgbfP1qx3IxgBlt8PjqUetxVjuoeWcUtGeNOKiStAmMKCVKRHbUszf66vNtnO_OWmm1lnTNWhynaDb944/s72-c/1.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5430870440474135754.post-4835257803934707762</id><published>2020-08-04T10:01:00.003+07:00</published><updated>2020-08-04T13:28:22.113+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux command"/><title type='text'>Linux command line  คำสั่งต่างๆ ที่ต้องทราบเมื่อคุฯต้องใช้งาน linux</title><content type='html'>&lt;div&gt;&lt;h2 style=&quot;background-color: white; box-sizing: inherit; clear: both; color: #212529; font-family: montserrat, &amp;quot;helvetica neue&amp;quot;, sans-serif; font-size: 1.25rem; line-height: 1.25; margin: 2em 0px 1em; text-rendering: optimizelegibility;&quot;&gt;Check os version in Linux&lt;/h2&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #212529; font-family: montserrat, &amp;quot;helvetica neue&amp;quot;, sans-serif; font-size: 14px;&quot;&gt;remote server login using the ssh:&amp;nbsp;&lt;/span&gt;&lt;kbd style=&quot;background-color: white; box-sizing: inherit; color: #212529; font-family: Inconsolata, monospace; font-size: 14px;&quot;&gt;&lt;span style=&quot;box-sizing: inherit; font-weight: 700;&quot;&gt;ssh user@server-name&lt;/span&gt;&lt;/kbd&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #212529; font-family: montserrat, &amp;quot;helvetica neue&amp;quot;, sans-serif; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#212529&quot; face=&quot;montserrat, helvetica neue, sans-serif&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;พิมพ์หนึ่งในคำสั่งต่อไปนี้เพื่อค้นหาชื่อและเวอร์ชันของระบบปฏิบัติการใน Linux&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#212529&quot; face=&quot;montserrat, helvetica neue, sans-serif&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #212529; font-family: Inconsolata, monospace; font-size: 1em; font-weight: 700;&quot;&gt;- cat /etc/os-release&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #212529; font-family: Inconsolata, monospace; font-size: 1em; font-weight: 700;&quot;&gt;- lsb_release -a&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #212529; font-family: Inconsolata, monospace; font-size: 1em; font-weight: 700;&quot;&gt;- hostnamectl&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #212529; font-family: montserrat, &amp;quot;helvetica neue&amp;quot;, sans-serif; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #212529; font-family: montserrat, &amp;quot;helvetica neue&amp;quot;, sans-serif; font-size: 14px;&quot;&gt;คำสั่งต่อไปนี้เพื่อค้นหารุ่นเคอร์เนล Linux :&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #212529; font-family: Inconsolata, monospace; font-size: 1em; font-weight: 700;&quot;&gt;uname -r&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #212529; font-family: Inconsolata, monospace; font-size: 1em; font-weight: 700;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTcciqLZjvbSpntb4pyytNWpcR561OI-To9_Xj8nQR1QTGb7ey7t0BSMCgdwdg0oMtq9kDIiN1xNF4O7D5XIQWK-ixYIzGOIfF1alPtBBYBoQquSaMHcrsXtHSsjXhf4PJZSRBXMJSLmg/s703/2.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;503&quot; data-original-width=&quot;703&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTcciqLZjvbSpntb4pyytNWpcR561OI-To9_Xj8nQR1QTGb7ey7t0BSMCgdwdg0oMtq9kDIiN1xNF4O7D5XIQWK-ixYIzGOIfF1alPtBBYBoQquSaMHcrsXtHSsjXhf4PJZSRBXMJSLmg/s640/2.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;background-color: white; color: #212529; font-family: Inconsolata, monospace; font-size: 1em; font-weight: 700;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thdevelop.blogspot.com/feeds/4835257803934707762/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://thdevelop.blogspot.com/2020/08/linux-command-line-linux.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/4835257803934707762'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/4835257803934707762'/><link rel='alternate' type='text/html' href='http://thdevelop.blogspot.com/2020/08/linux-command-line-linux.html' title='Linux command line  คำสั่งต่างๆ ที่ต้องทราบเมื่อคุฯต้องใช้งาน linux'/><author><name>thanawat</name><uri>http://www.blogger.com/profile/02230440132875776926</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVdix1LYdHXhPjTrv5J3qdR6RXWruYybx0oZlA5142IHJW4Z7KrGAsOkY4wagw7DBU1ZSAtps77o__d-q8qASs8oJXeOzPjwK7E97Z5_X0FR-IT6BDLX1vfLByUuwu_Q/s220/IMG_25620112_202013.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTcciqLZjvbSpntb4pyytNWpcR561OI-To9_Xj8nQR1QTGb7ey7t0BSMCgdwdg0oMtq9kDIiN1xNF4O7D5XIQWK-ixYIzGOIfF1alPtBBYBoQquSaMHcrsXtHSsjXhf4PJZSRBXMJSLmg/s72-c/2.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5430870440474135754.post-743471679016852186</id><published>2020-05-18T08:30:00.002+07:00</published><updated>2020-05-18T08:30:48.235+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="docker"/><title type='text'>Restart all running docker containers</title><content type='html'>เริ่มต้น กับหาการเช็ค containers  กันก่อนครับ&amp;nbsp;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;-&amp;gt; docker ps&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;ต่อไปเป็นการรีเซท ทีละ&amp;nbsp;container &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;-&amp;gt; docker restart &amp;lt;container id&amp;gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;สุดท้าย เป็นการรีเซท ทั้งหมดในเซริฟเวอร์เราครับ&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;-&amp;gt; docker restart $(docker ps -q)&lt;br /&gt;&lt;div id=&quot;gtx-trans&quot; style=&quot;left: 96px; position: absolute; top: 212px;&quot;&gt;&lt;div class=&quot;gtx-trans-icon&quot;&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thdevelop.blogspot.com/feeds/743471679016852186/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://thdevelop.blogspot.com/2020/05/restart-all-running-docker-containers.html#comment-form' title='1 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/743471679016852186'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/743471679016852186'/><link rel='alternate' type='text/html' href='http://thdevelop.blogspot.com/2020/05/restart-all-running-docker-containers.html' title='Restart all running docker containers'/><author><name>thanawat</name><uri>http://www.blogger.com/profile/02230440132875776926</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVdix1LYdHXhPjTrv5J3qdR6RXWruYybx0oZlA5142IHJW4Z7KrGAsOkY4wagw7DBU1ZSAtps77o__d-q8qASs8oJXeOzPjwK7E97Z5_X0FR-IT6BDLX1vfLByUuwu_Q/s220/IMG_25620112_202013.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5430870440474135754.post-1158151864332669456</id><published>2020-05-12T11:24:00.004+07:00</published><updated>2020-05-12T11:39:12.151+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="golang"/><category scheme="http://www.blogger.com/atom/ns#" term="ต่อสตริง golang"/><title type='text'>วิธีต่อสตริง Golang</title><content type='html'>&lt;font face=&quot;courier&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;background-color: white; color: #4d4d4d;&quot;&gt;string concatenation เป็นพื้นฐานที่สุดในการเขียนโปรแกรมหลาย ๆ ภาษาจะใช้เครื่องหมาย&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;background-color: white; box-sizing: border-box; color: #002b36; padding: 0.1rem 0.4rem;&quot;&gt;+&lt;/code&gt;&lt;span style=&quot;background-color: white; color: #4d4d4d;&quot;&gt;&amp;nbsp;ในภาษา Go ก็เช่นกัน&lt;/span&gt;&lt;/font&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #4d4d4d;&quot;&gt;&lt;font face=&quot;courier&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;font color=&quot;#4d4d4d&quot; face=&quot;courier&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;มาดูกันครับ มีแบบต่างๆให้เราเลือกใช้แบบไหนบ้าง&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;courier&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.15;&quot;&gt;&lt;pre style=&quot;line-height: 1.15;&quot;&gt;&lt;div&gt;&lt;font face=&quot;courier&quot; size=&quot;2&quot;&gt;1.ใช้งาน buffer Package byte&lt;/font&gt;&lt;/div&gt;&lt;font face=&quot;courier&quot; size=&quot;2&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;br /&gt;package main &lt;br /&gt; &lt;br /&gt;import ( &quot;bytes&quot; &quot;fmt&quot; )&lt;br /&gt;func main() { &lt;br /&gt;var str bytes.Buffer&lt;br /&gt;// เริ่มต้นด้วย &quot;Hello &quot;&lt;br /&gt;str.WriteString(&quot;Hello &quot;) &lt;br /&gt;// ต่อคำว่า world! ลงในตัวแปร  &lt;br /&gt;str.WriteString(&quot;world!&quot;) &lt;br /&gt;fmt.Println(str.String()) &lt;br /&gt;}&lt;/font&gt;&lt;div&gt;&lt;font face=&quot;courier&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;font face=&quot;courier&quot; size=&quot;2&quot;&gt; ใช้งานฟังก์ชัน bytes.WriteString ในการต่อสตริง และแปลงให้อยู่ในรูปแบบตัวแปรสตริงด้วยฟังก์ชัน bytes.String &lt;br /&gt;&lt;/font&gt;&lt;div&gt;&lt;span&gt;&lt;font face=&quot;courier&quot; size=&quot;2&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;font face=&quot;courier&quot; size=&quot;2&quot;&gt;  &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;courier&quot; size=&quot;2&quot;&gt;2. ใช้งานฟังก์ชัน copy&lt;/font&gt;&lt;/div&gt;&lt;font face=&quot;courier&quot; size=&quot;2&quot; style=&quot;line-height: 1.15;&quot;&gt;&lt;br /&gt;package main &lt;/font&gt;&lt;/pre&gt;&lt;pre style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;courier&quot; size=&quot;2&quot; style=&quot;line-height: 1.15;&quot;&gt;import &quot;fmt&quot; &lt;/font&gt;&lt;/pre&gt;&lt;pre style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;courier&quot; size=&quot;2&quot; style=&quot;line-height: 1.15;&quot;&gt;func main() { &lt;/font&gt;&lt;/pre&gt;&lt;pre style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;courier&quot; size=&quot;2&quot; style=&quot;line-height: 1.15;&quot;&gt;str:= make([]byte, 13) i := 0  &lt;/font&gt;&lt;/pre&gt;&lt;pre style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;courier&quot; size=&quot;2&quot; style=&quot;line-height: 1.15;&quot;&gt;// เริ่มต้นด้วย &quot;Hello &quot; &lt;/font&gt;&lt;/pre&gt;&lt;pre style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;courier&quot; size=&quot;2&quot; style=&quot;line-height: 1.15;&quot;&gt;i += copy(str[i:], &quot;Hello, &quot;)&lt;br /&gt;// ต่อคำว่า world! ต่อลงไปใน byte &lt;/font&gt;&lt;/pre&gt;&lt;pre style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;courier&quot; size=&quot;2&quot; style=&quot;line-height: 1.15;&quot;&gt;i += copy(str[i:], &quot;world!&quot;) &lt;/font&gt;&lt;/pre&gt;&lt;pre style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;courier&quot; size=&quot;2&quot; style=&quot;line-height: 1.15;&quot;&gt;fmt.Println(string(str)) &lt;/font&gt;&lt;/pre&gt;&lt;pre&gt;&lt;font face=&quot;courier&quot; size=&quot;2&quot;&gt;}&lt;/font&gt;&lt;/pre&gt;&lt;pre&gt;&lt;div&gt;&lt;font face=&quot;courier&quot; size=&quot;2&quot;&gt;ตัวแปร slice ของ byte สามารถ convert type เป็นสตริงได้เลย &lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font face=&quot;courier&quot; size=&quot;2&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;font face=&quot;courier&quot; size=&quot;2&quot;&gt;3. ใช้งานฟังก์ชัน join&lt;/font&gt;&lt;/pre&gt;&lt;font face=&quot;courier&quot; size=&quot;2&quot; style=&quot;line-height: 1.15;&quot;&gt;package main&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;courier&quot; size=&quot;2&quot; style=&quot;line-height: 1.15;&quot;&gt;import ( &quot;fmt&quot; &quot;strings&quot; ) &lt;br /&gt;func main() { &lt;br /&gt;str := make([]string, 0)&lt;br /&gt;str = append(str, &quot;Hello, &quot;) &lt;br /&gt;&lt;/font&gt;&lt;span style=&quot;font-family: courier; font-size: small; line-height: 1.15;&quot;&gt;// ต่อคำว่า world! ต่อลงไปใน&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: courier; font-size: small; line-height: 1.15;&quot;&gt;stri&lt;/span&gt;&lt;span style=&quot;font-family: courier; font-size: small; line-height: 1.15;&quot;&gt;ng&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: courier; font-size: small; line-height: 1.15;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: courier; font-size: small; line-height: 1.15;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 1.15;&quot;&gt;&lt;font face=&quot;courier&quot; size=&quot;2&quot; style=&quot;line-height: 1.15;&quot;&gt;str = append(str, &quot;world!&quot;) &lt;br /&gt;fmt.Println(strings.Join(str, &quot;&quot;)) &lt;br /&gt;}&lt;/font&gt;&lt;br /&gt; &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thdevelop.blogspot.com/feeds/1158151864332669456/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://thdevelop.blogspot.com/2020/05/golang.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/1158151864332669456'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/1158151864332669456'/><link rel='alternate' type='text/html' href='http://thdevelop.blogspot.com/2020/05/golang.html' title='วิธีต่อสตริง Golang'/><author><name>thanawat</name><uri>http://www.blogger.com/profile/02230440132875776926</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVdix1LYdHXhPjTrv5J3qdR6RXWruYybx0oZlA5142IHJW4Z7KrGAsOkY4wagw7DBU1ZSAtps77o__d-q8qASs8oJXeOzPjwK7E97Z5_X0FR-IT6BDLX1vfLByUuwu_Q/s220/IMG_25620112_202013.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5430870440474135754.post-5539218737700092408</id><published>2020-05-07T21:18:00.001+07:00</published><updated>2020-05-12T11:26:15.413+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Local Storage"/><category scheme="http://www.blogger.com/atom/ns#" term="react"/><title type='text'>Session Storage and Local Storage in React</title><content type='html'>&lt;font face=&quot;courier&quot;&gt;// setter&lt;br /&gt;localStorage.setItem(&#39;myData&#39;, data);&lt;br /&gt; &lt;br /&gt;// getter&lt;br /&gt;localStorage.getItem(&#39;myData&#39;);&lt;br /&gt; &lt;br /&gt;// remove&lt;br /&gt;localStorage.removeItem(&#39;myData&#39;);&lt;br /&gt; &lt;br /&gt;// remove all&lt;br /&gt;localStorage.clear();&lt;/font&gt;&lt;div id=&quot;gtx-trans&quot; style=&quot;left: 1px; position: absolute; top: -1px;&quot;&gt;&lt;div class=&quot;gtx-trans-icon&quot;&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://thdevelop.blogspot.com/feeds/5539218737700092408/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://thdevelop.blogspot.com/2020/05/session-storage-and-local-storage-in.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/5539218737700092408'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/5539218737700092408'/><link rel='alternate' type='text/html' href='http://thdevelop.blogspot.com/2020/05/session-storage-and-local-storage-in.html' title='Session Storage and Local Storage in React'/><author><name>thanawat</name><uri>http://www.blogger.com/profile/02230440132875776926</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVdix1LYdHXhPjTrv5J3qdR6RXWruYybx0oZlA5142IHJW4Z7KrGAsOkY4wagw7DBU1ZSAtps77o__d-q8qASs8oJXeOzPjwK7E97Z5_X0FR-IT6BDLX1vfLByUuwu_Q/s220/IMG_25620112_202013.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5430870440474135754.post-4006052292794006787</id><published>2020-04-29T16:42:00.000+07:00</published><updated>2020-04-29T16:43:37.042+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="API"/><category scheme="http://www.blogger.com/atom/ns#" term="http"/><category scheme="http://www.blogger.com/atom/ns#" term="http status code"/><category scheme="http://www.blogger.com/atom/ns#" term="Server"/><category scheme="http://www.blogger.com/atom/ns#" term="web"/><title type='text'>http status code ที่ควรรู้</title><content type='html'>&lt;h2 style=&quot;background-color: white; box-sizing: border-box; color: #252525; font-family: &amp;quot;open sans&amp;quot;, prompt, helvetica, arial, sans-serif; font-size: 2.35714em; font-variant-ligatures: common-ligatures; font-weight: 200; line-height: 1.36364em; margin: 0px; padding: 0px;&quot;&gt;
1xx: Information&lt;/h2&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #283232; font-family: sans-serif; font-size: 1.35714em; line-height: 1.68421em; margin-bottom: 1.36842em; padding: 0px;&quot;&gt;
100:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;Continue&lt;/span&gt;&amp;nbsp;เซิร์ฟเวอร์ได้รับ request header แล้ว, และ client จะส่ง request body ต่อ&lt;br /&gt;
101:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;Switching Protocols&lt;/span&gt;&amp;nbsp;ผู้ร้องขอต้องการเปลี่ยน protocol&lt;br /&gt;
102:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;Checkpoint&lt;/span&gt;&amp;nbsp;เซิร์ฟเวอร์กำลังประมวลผล&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; box-sizing: border-box; color: #252525; font-family: &amp;quot;open sans&amp;quot;, prompt, helvetica, arial, sans-serif; font-size: 2.35714em; font-variant-ligatures: common-ligatures; font-weight: 200; line-height: 1.36364em; margin: 0px; padding: 0px;&quot;&gt;
2xx: Successful&lt;/h2&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #283232; font-family: sans-serif; font-size: 1.35714em; line-height: 1.68421em; margin-bottom: 1.36842em; padding: 0px;&quot;&gt;
200:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;OK&lt;/span&gt;&amp;nbsp;การส่งคำขอสำเร็จ&lt;br /&gt;
201:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;Created&lt;/span&gt;&amp;nbsp;สร้างทรัพยากรใหม่&lt;br /&gt;
202:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;Accepted&lt;/span&gt;&amp;nbsp;คำขอได้รับการยอมรับแล้ว แต่ยังประมวลผลยังไม่เสร็จ&lt;br /&gt;
203:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;Non-Authoritative Information&lt;/span&gt;&amp;nbsp;คำขอได้รับการประมวลผลเรียบร้อย แต่กำลังส่งคืนข้อมูลที่อาจมาจากแหล่งอื่นๆ&lt;br /&gt;
204:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;No Content&lt;/span&gt;&amp;nbsp;คำขอได้รับการประมวลผลเรียบร้อย แต่ไม่ส่งคืนเนื้อหาใด ๆ&lt;br /&gt;
205:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;Reset Content&lt;/span&gt;&amp;nbsp;การร้องขอได้ดำเนินการสำเร็จ แต่ไม่มีเนื้อหาใด ๆ คืนกลับมา ต่างจากรหัส 204 ตรงที่การตอบรับนี้ ผู้ร้องขอจำเป็นต้องรีเซทเนื่อหาเอกสาร&lt;br /&gt;
206:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;Partial Content&lt;/span&gt;&amp;nbsp;เซิร์ฟเวอร์ส่งข้อมูลมาให้บางส่วน ตามที่ผู้ร้องขอกำหนดไว้ใน header&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; box-sizing: border-box; color: #252525; font-family: &amp;quot;open sans&amp;quot;, prompt, helvetica, arial, sans-serif; font-size: 2.35714em; font-variant-ligatures: common-ligatures; font-weight: 200; line-height: 1.36364em; margin: 0px; padding: 0px;&quot;&gt;
3xx: Redirection&lt;/h2&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #283232; font-family: sans-serif; font-size: 1.35714em; line-height: 1.68421em; margin-bottom: 1.36842em; padding: 0px;&quot;&gt;
300:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;Multiple Choices&lt;/span&gt;&amp;nbsp;ผู้ใช้สามารถเลือกลิงค์ที่จะ redirect ไป (ไม่เกิน 5 ลิงค์)&lt;br /&gt;
301:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;Moved Parmanently&lt;/span&gt;&amp;nbsp;หน้าที่เรียกนี้ย้ายไป URL อื่นถาวร&lt;br /&gt;
302:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;Found&lt;/span&gt;&amp;nbsp;หน้าที่เรียกนี้ย้ายไป URL อื่นชั่วคราว&lt;br /&gt;
303:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;See Other&lt;/span&gt;&amp;nbsp;หน้าที่เรียกนี้อยู่ภายใต้ URL อื่น&lt;br /&gt;
304:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;Not Modified&lt;/span&gt;&amp;nbsp;หน้าที่เรียกนี้ยังมีเนื้อหายังไม่ได้แก้ไขตั้งแต่การเรียกครั้งล่าสุด&amp;nbsp;&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; box-sizing: border-box; color: #252525; font-family: &amp;quot;open sans&amp;quot;, prompt, helvetica, arial, sans-serif; font-size: 2.35714em; font-variant-ligatures: common-ligatures; font-weight: 200; line-height: 1.36364em; margin: 0px; padding: 0px;&quot;&gt;
4xx: Client Error&lt;/h2&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #283232; font-family: sans-serif; font-size: 1.35714em; line-height: 1.68421em; margin-bottom: 1.36842em; padding: 0px;&quot;&gt;
400:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;Bad Request&lt;/span&gt;&amp;nbsp;ไม่ตอบสนองเพราะมี syntax ไม่ถูกต้อง&lt;br /&gt;
401:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;Unauthorizedยัง&amp;nbsp;&lt;/span&gt;ไม่ได้ระบุตัวตน&lt;br /&gt;
402:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;Payment Required&lt;/span&gt;&amp;nbsp;มีการเรียกชำระเงิน (ใช้ในอนาคต)&lt;br /&gt;
403:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;Forbidden&lt;/span&gt;&amp;nbsp;ระบุตัวตนแล้วแต่ไม่มีสิทธิ์เข้าถึงส่วนนี้&lt;br /&gt;
404:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;Not Found&lt;/span&gt;&amp;nbsp;ไม่พบหน้าที่ร้องขอ&lt;br /&gt;
405:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;Method Not Allowed&amp;nbsp;&amp;nbsp;&lt;/span&gt;method ไม่ถูกต้อง ดูให้ดีว่าใช้ get, post, put หรือ delete&lt;br /&gt;
406:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;Not Acceptable&lt;/span&gt;&amp;nbsp;header ของ request ไม่สัมพันธ์กัน&lt;br /&gt;
413:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;Request Entity Too Large&lt;/span&gt;&amp;nbsp;ทรัพยากรที่ร้องขอใหญ่เกินกว่าที่จะส่งได้&lt;br /&gt;
414:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;Request-URI Too Long&lt;/span&gt;&amp;nbsp;URL ยาวเกินไป&lt;br /&gt;
415:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;Unsupported Media Type&lt;/span&gt;&amp;nbsp;เซิร์ฟเวอร์ไม่รู้จักชนิดของรูปหรือสื่อที่เรียก&lt;/div&gt;
&lt;h2 style=&quot;background-color: white; box-sizing: border-box; color: #252525; font-family: &amp;quot;open sans&amp;quot;, prompt, helvetica, arial, sans-serif; font-size: 2.35714em; font-variant-ligatures: common-ligatures; font-weight: 200; line-height: 1.36364em; margin: 0px; padding: 0px;&quot;&gt;
5xx: Server Error&lt;/h2&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #283232; font-family: sans-serif; font-size: 1.35714em; line-height: 1.68421em; padding: 0px;&quot;&gt;
500:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;Internal Server Error&lt;/span&gt;&amp;nbsp;มีข้อผิดพลาดบางอย่างภายใน ไม่ทราบสาเหตุ&lt;br /&gt;
501:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;Not Implemented&lt;/span&gt;&amp;nbsp;เซิร์ฟเวอร์ไม่เข้าใจ request หรือไม่สามารถทำงานตามคำสั่งได้&lt;br /&gt;
502:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;Bad Gateway&lt;/span&gt;&amp;nbsp;เซิร์ฟเวอร์เป็น Gateway หรือ Proxy ได้รับ response ผิดพลาดจากเซิร์ฟเวอร์อื่น&lt;br /&gt;
503:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;Service Unavailable&lt;/span&gt;&amp;nbsp;ใช้งานเกินพิกัด(ล่ม) หรือกำลังปรับปรุงเซิร์ฟเวอร์&lt;br /&gt;
504:&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; font-weight: 600; margin: 0px; padding: 0px;&quot;&gt;Gateway Timeout&lt;/span&gt;&amp;nbsp;เซิร์ฟเวอร์ไม่ได้รับตอบสนองจากเซิร์ฟเวอร์อื่น จนหมดเวลากันก่อน&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://thdevelop.blogspot.com/feeds/4006052292794006787/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://thdevelop.blogspot.com/2020/04/http-status-code.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/4006052292794006787'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/4006052292794006787'/><link rel='alternate' type='text/html' href='http://thdevelop.blogspot.com/2020/04/http-status-code.html' title='http status code ที่ควรรู้'/><author><name>thanawat</name><uri>http://www.blogger.com/profile/02230440132875776926</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVdix1LYdHXhPjTrv5J3qdR6RXWruYybx0oZlA5142IHJW4Z7KrGAsOkY4wagw7DBU1ZSAtps77o__d-q8qASs8oJXeOzPjwK7E97Z5_X0FR-IT6BDLX1vfLByUuwu_Q/s220/IMG_25620112_202013.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5430870440474135754.post-1682330704784937642</id><published>2020-04-07T16:54:00.000+07:00</published><updated>2020-04-07T16:54:01.575+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ERR! Cannot read property &#39;match&#39; of undefined"/><category scheme="http://www.blogger.com/atom/ns#" term="js"/><category scheme="http://www.blogger.com/atom/ns#" term="node js"/><title type='text'>แก้ npm ERR! Cannot read property &#39;match&#39; of undefined</title><content type='html'>&amp;nbsp; &amp;nbsp; npm ERR! Cannot read property &#39;match&#39; of undefined มีวิธีแก้ดังนี้ครับ&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;1. ลบ node_modules และ package-lock.json&lt;br /&gt;&lt;br /&gt;2. รัน npm install อีกครั้งครับ</content><link rel='replies' type='application/atom+xml' href='http://thdevelop.blogspot.com/feeds/1682330704784937642/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://thdevelop.blogspot.com/2020/04/npm-err-cannot-read-property-match-of.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/1682330704784937642'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/1682330704784937642'/><link rel='alternate' type='text/html' href='http://thdevelop.blogspot.com/2020/04/npm-err-cannot-read-property-match-of.html' title='แก้ npm ERR! Cannot read property &#39;match&#39; of undefined'/><author><name>thanawat</name><uri>http://www.blogger.com/profile/02230440132875776926</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVdix1LYdHXhPjTrv5J3qdR6RXWruYybx0oZlA5142IHJW4Z7KrGAsOkY4wagw7DBU1ZSAtps77o__d-q8qASs8oJXeOzPjwK7E97Z5_X0FR-IT6BDLX1vfLByUuwu_Q/s220/IMG_25620112_202013.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5430870440474135754.post-104123029543328315</id><published>2020-03-20T16:37:00.001+07:00</published><updated>2020-03-20T16:37:30.838+07:00</updated><title type='text'>จัดการกับ react-scripts: Permission denied</title><content type='html'>วิธีแก้คือการจัดการ การเข้าถึง&amp;nbsp;&lt;span style=&quot;color: #24292e; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, monospace; font-size: 11.9px;&quot;&gt;node_modules/.bin/react-scripts&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #24292e; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, monospace; font-size: 11.9px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #24292e; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, monospace; font-size: 11.9px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #24292e; font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;&quot;&gt;&lt;span style=&quot;font-size: 11.9px;&quot;&gt;ubuntu ใช้คำสั่งนี้ในโปรเจค ครับ -&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;color: #24292e; font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;&quot;&gt;&lt;span style=&quot;font-size: 11.9px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre style=&quot;background-color: #f6f8fa; border-radius: 3px; box-sizing: border-box; color: #24292e; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, monospace; font-size: 11.9px; line-height: 1.45; margin-bottom: 16px; overflow-wrap: normal; overflow: auto; padding: 16px;&quot;&gt;&lt;code style=&quot;background: initial; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: SFMono-Regular, Consolas, &amp;quot;Liberation Mono&amp;quot;, Menlo, monospace; font-size: 11.9px; line-height: inherit; margin: 0px; overflow-wrap: normal; overflow: visible; padding: 0px; word-break: normal;&quot;&gt; chmod +x node_modules/.bin/react-scripts&lt;/code&gt;&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://thdevelop.blogspot.com/feeds/104123029543328315/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://thdevelop.blogspot.com/2020/03/react-scripts-permission-denied.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/104123029543328315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/104123029543328315'/><link rel='alternate' type='text/html' href='http://thdevelop.blogspot.com/2020/03/react-scripts-permission-denied.html' title='จัดการกับ react-scripts: Permission denied'/><author><name>thanawat</name><uri>http://www.blogger.com/profile/02230440132875776926</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVdix1LYdHXhPjTrv5J3qdR6RXWruYybx0oZlA5142IHJW4Z7KrGAsOkY4wagw7DBU1ZSAtps77o__d-q8qASs8oJXeOzPjwK7E97Z5_X0FR-IT6BDLX1vfLByUuwu_Q/s220/IMG_25620112_202013.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5430870440474135754.post-8667828762900054425</id><published>2019-07-02T13:23:00.000+07:00</published><updated>2019-07-02T13:23:50.697+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Float to float"/><category scheme="http://www.blogger.com/atom/ns#" term="Float to string"/><category scheme="http://www.blogger.com/atom/ns#" term="golang"/><category scheme="http://www.blogger.com/atom/ns#" term="method fmt.Sprintf"/><category scheme="http://www.blogger.com/atom/ns#" term="ปัดทศนิยม"/><title type='text'>ปัดทศนิยม golang</title><content type='html'>&lt;h2 style=&quot;box-sizing: border-box; line-height: 1.2em; margin: 1em 0px 0.5em;&quot;&gt;
&lt;span style=&quot;color: #292f33; font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: small;&quot;&gt;Float to string&lt;/span&gt;&lt;/h2&gt;
&lt;h2 style=&quot;box-sizing: border-box; line-height: 1.2em; margin: 1em 0px 0.5em;&quot;&gt;
&lt;span style=&quot;color: #292f33; font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: small;&quot;&gt;การแปลงค่าทศนิยมเป็นสตริงโดยใช้ method fmt.Sprintf&lt;/span&gt;&lt;/h2&gt;
&lt;h2 style=&quot;box-sizing: border-box; line-height: 1.2em; margin: 1em 0px 0.5em;&quot;&gt;
&lt;span style=&quot;color: #292f33; font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: small;&quot;&gt;&amp;nbsp; &amp;nbsp;s := fmt.Sprintf(&quot;%.2f&quot;, 100.3456) // ค่าที่ได้คือ &quot;100.35&quot;&amp;nbsp;&lt;/span&gt;&lt;/h2&gt;
&lt;h2 style=&quot;box-sizing: border-box; line-height: 1.2em; margin: 1em 0px 0.5em;&quot;&gt;
&lt;span style=&quot;color: #292f33; font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: small;&quot;&gt;Float to float&lt;/span&gt;&lt;/h2&gt;
&lt;h2 style=&quot;box-sizing: border-box; line-height: 1.2em; margin: 1em 0px 0.5em;&quot;&gt;
&lt;span style=&quot;color: #292f33; font-family: &amp;quot;courier new&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: small;&quot;&gt;การปัดเศษเป็นค่าทศนิยมให้ใช้หนึ่งในเทคนิคเหล่านี้&lt;/span&gt;&lt;/h2&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
x := 100.3456&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
fmt.Println(math.Floor(x*100)/100)&amp;nbsp; &amp;nbsp; // 100.34 (round down)&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
fmt.Println(math.Round(x*100)/100)&amp;nbsp; // 100.35 (round to nearest)&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
fmt.Println(math.Ceil(x*100)/100)&amp;nbsp; // 100.35 (round up)&amp;nbsp;&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
credit&amp;nbsp;&lt;a href=&quot;https://yourbasic.org/golang/round-float-2-decimal-places/&quot;&gt;https://yourbasic.org/golang/round-float-2-decimal-places/&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://thdevelop.blogspot.com/feeds/8667828762900054425/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://thdevelop.blogspot.com/2019/07/golang.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/8667828762900054425'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/8667828762900054425'/><link rel='alternate' type='text/html' href='http://thdevelop.blogspot.com/2019/07/golang.html' title='ปัดทศนิยม golang'/><author><name>thanawat</name><uri>http://www.blogger.com/profile/02230440132875776926</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVdix1LYdHXhPjTrv5J3qdR6RXWruYybx0oZlA5142IHJW4Z7KrGAsOkY4wagw7DBU1ZSAtps77o__d-q8qASs8oJXeOzPjwK7E97Z5_X0FR-IT6BDLX1vfLByUuwu_Q/s220/IMG_25620112_202013.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5430870440474135754.post-3136724421094700796</id><published>2019-07-02T11:22:00.000+07:00</published><updated>2020-02-01T09:09:49.976+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Data Types"/><category scheme="http://www.blogger.com/atom/ns#" term="Data Types golang"/><category scheme="http://www.blogger.com/atom/ns#" term="golang"/><title type='text'>Golang  Data Types </title><content type='html'>&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;Data Types แยกได้ดังนี้ครับไปดูกัน&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;Boolean types ก็เหมือนกับภาษาทั่วๆไป คือ true และ false&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;Numeric types ก็คือตัวเลขที่เป็นพวก integer หรือ float&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;String types คือตัวอักษรเหมือภาษาอื่นๆที่เคยเจอกันนั้นเอง&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;Derived types จะเป็นพวก pointer, array, structure, function, etc.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;เพิ่มเติม เกี่ยวกับ Numeric types&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;Integer types (u = Unsigned)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;uint เป็นทั้ง 32 หรือ 64 bit&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;int เหมือนกับ uint&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;uint8 คือตัวเลขที่มีขนาด 8 bit ตั้งแต่ 0 ถึง 255&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;uint16 คือตัวเลขที่มีขนาด 16 bit ตั้งแต่ 0 ถึง 65535&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;uint32 คือตัวเลขที่มีขนาด 16 bit ตั้งแต่ 0 ถึง 4294967295&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;uint64 คือตัวเลขที่มีขนาด 64 bit ตั้งแต่ 0 ถึง 18446744073709551615&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;int8 คือตัวเลขที่มีขนาด 8 bit ตั้งแต่ -128 ถึง 127&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;int16 คือตัวเลขที่มีขนาด 16 bit ตั้งแต่ -32768 ถึง 32767&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;int32 คือตัวเลขที่มีขนาด 32 bit ตั้งแต่ -2147483648 ถึง 2147483647&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;int64 คือตัวเลขที่มีขนาด 64 bit ตั้งแต่ -9223372036854775808 ถึง 9223372036854775807&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;เพิ่มเติม เกี่ยวกับ Floating types&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;float32 เก็บแบบมาตรฐาน IEEE754 32 bit&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;float64 เก็บแบบมาตรฐาน IEEE754 64 bit&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: courier new, courier, monospace;&quot;&gt;reference :http://www.golangbootcamp.com/book/types&lt;/span&gt;&lt;br /&gt;
&lt;section class=&quot;section section--body&quot; name=&quot;61fc&quot; style=&quot;background-color: white; clear: both; color: rgba(0, 0, 0, 0.84); font-size: 20px; position: relative;&quot;&gt;
&lt;/section&gt;</content><link rel='replies' type='application/atom+xml' href='http://thdevelop.blogspot.com/feeds/3136724421094700796/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://thdevelop.blogspot.com/2019/07/golang-data-types.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/3136724421094700796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/3136724421094700796'/><link rel='alternate' type='text/html' href='http://thdevelop.blogspot.com/2019/07/golang-data-types.html' title='Golang  Data Types '/><author><name>thanawat</name><uri>http://www.blogger.com/profile/02230440132875776926</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVdix1LYdHXhPjTrv5J3qdR6RXWruYybx0oZlA5142IHJW4Z7KrGAsOkY4wagw7DBU1ZSAtps77o__d-q8qASs8oJXeOzPjwK7E97Z5_X0FR-IT6BDLX1vfLByUuwu_Q/s220/IMG_25620112_202013.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5430870440474135754.post-8051190486446213331</id><published>2019-06-07T14:27:00.003+07:00</published><updated>2019-06-07T14:28:25.696+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="sql"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL SERVER"/><title type='text'>การแปลงวันที่และเวลาโดยใช้ SQL Server</title><content type='html'>รูปแบบวันที่ของ SQL Server มีหลายรูปแบบใช้ตัวเลือกรูปแบบวันที่พร้อมกับฟังก์ชั่น เช่น&lt;br /&gt;
&lt;br /&gt;
- ต้องการรูปแบบ&amp;nbsp;YYYY-MM-DD ใช้คำสั่งคือ&amp;nbsp;&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;SELECT CONVERT(varchar, getdate(), 23)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;-&amp;nbsp;&lt;/span&gt;ต้องการรูปแบบ&amp;nbsp;&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;MM/DD/YYYY&amp;nbsp;&lt;/span&gt;ใช้คำสั่งคือ&amp;nbsp;&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;&amp;nbsp;SELECT CONVERT(varchar, getdate(), 1)&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;ด้านล่างนี้เป็นรายการรูปแบบและตัวอย่างของผลลัพธ์&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;roboto&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; border=&quot;1&quot; cellpadding=&quot;4&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; box-sizing: inherit; color: #222222; font-family: &amp;quot;helvetica neue&amp;quot;, Helvetica, Roboto, Arial, sans-serif; font-size: 16px; margin-bottom: 20px;&quot;&gt;&lt;tbody style=&quot;box-sizing: inherit;&quot;&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td colspan=&quot;3&quot; style=&quot;background-color: grey; box-sizing: inherit; color: white; font-size: 12.8px; font-weight: bold; margin: 0px; padding: 4px;&quot;&gt;DATE ONLY FORMATS&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;th style=&quot;background-color: silver; box-sizing: inherit; margin: 0px; padding: 4px;&quot;&gt;Format #&lt;/th&gt;&lt;th style=&quot;background-color: silver; box-sizing: inherit; margin: 0px; padding: 4px;&quot;&gt;Query&lt;/th&gt;&lt;th style=&quot;background-color: silver; box-sizing: inherit; margin: 0px; padding: 4px;&quot;&gt;Sample&lt;/th&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;1&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 1)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;12/30/06&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;2&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 2)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;06.12.30&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;3&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 3)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;30/12/06&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;4&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 4)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;30.12.06&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;5&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 5)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;30-12-06&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;6&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 6)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;30 Dec 06&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;7&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 7)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;Dec 30, 06&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;10&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 10)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;12-30-06&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;11&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 11)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;06/12/30&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;12&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 12)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;061230&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;23&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 23)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;2006-12-30&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;101&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 101)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;12/30/2006&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;102&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 102)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;2006.12.30&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;103&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 103)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;30/12/2006&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;104&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 104)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;30.12.2006&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;105&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 105)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;30-12-2006&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;106&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 106)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;30 Dec 2006&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;107&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 107)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;Dec 30, 2006&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;110&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 110)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;12-30-2006&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;111&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 111)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;2006/12/30&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;112&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 112)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;20061230&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td colspan=&quot;3&quot; style=&quot;background-color: grey; box-sizing: inherit; color: white; font-size: 12.8px; font-weight: bold; margin: 0px; padding: 4px;&quot;&gt;TIME ONLY FORMATS&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;8&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 8)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;00:38:54&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;14&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 14)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;00:38:54:840&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;24&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 24)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;00:38:54&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;108&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 108)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;00:38:54&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;114&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 114)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;00:38:54:840&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td colspan=&quot;3&quot; style=&quot;background-color: grey; box-sizing: inherit; color: white; font-size: 12.8px; font-weight: bold; margin: 0px; padding: 4px;&quot;&gt;DATE &amp;amp; TIME FORMATS&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;0&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 0)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;Dec 12 2006 12:38AM&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;9&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 9)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;Dec 30 2006 12:38:54:840AM&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;13&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 13)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;30 Dec 2006 00:38:54:840AM&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;20&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 20)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;2006-12-30 00:38:54&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;21&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 21)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;2006-12-30 00:38:54.840&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;22&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 22)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;12/30/06 12:38:54 AM&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;25&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 25)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;2006-12-30 00:38:54.840&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;100&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 100)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;Dec 30 2006 12:38AM&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;109&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 109)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;Dec 30 2006 12:38:54:840AM&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;113&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 113)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;30 Dec 2006 00:38:54:840&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;120&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 120)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;2006-12-30 00:38:54&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;121&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 121)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;2006-12-30 00:38:54.840&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;126&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 126)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;2006-12-30T00:38:54.840&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;127&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(varchar, getdate(), 127)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;2006-12-30T00:38:54.840&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td colspan=&quot;3&quot; style=&quot;background-color: grey; box-sizing: inherit; color: white; font-size: 12.8px; font-weight: bold; margin: 0px; padding: 4px;&quot;&gt;ISLAMIC CALENDAR DATES&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;130&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(nvarchar, getdate(), 130)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;&lt;img alt=&quot;date output&quot; src=&quot;https://www.mssqltips.com/tipimages2/1145_date-output.png&quot; style=&quot;box-sizing: inherit; display: inline-block; height: auto; max-width: 100%; vertical-align: middle;&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;131&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select convert(nvarchar, getdate(), 131)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;10/12/1427 12:38:54:840AM&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;background-color: white; box-sizing: inherit; color: #222222; font-family: &amp;quot;helvetica neue&amp;quot;, Helvetica, Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.6; margin-bottom: 1.25rem; padding: 0px; text-rendering: optimizelegibility;&quot;&gt;
นอกจากนี้เรายังสามารถจัดรูปแบบวันที่หรือเวลาโดยไม่ต้องแบ่งอักขระรวมถึงเชื่อมสตริงวันที่และเวลาได้ดังนี้&lt;/div&gt;
&lt;table align=&quot;center&quot; border=&quot;1&quot; cellpadding=&quot;5&quot; cellspacing=&quot;0&quot; style=&quot;background-color: white; box-sizing: inherit; color: #222222; font-family: &amp;quot;helvetica neue&amp;quot;, Helvetica, Roboto, Arial, sans-serif; font-size: 16px; margin-bottom: 20px;&quot;&gt;&lt;tbody style=&quot;box-sizing: inherit;&quot;&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;th style=&quot;background-color: silver; box-sizing: inherit; margin: 0px; padding: 4px;&quot;&gt;Sample statement&lt;/th&gt;&lt;th style=&quot;background-color: silver; box-sizing: inherit; margin: 0px; padding: 4px;&quot;&gt;Output&lt;/th&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select replace(convert(varchar, getdate(),101),&#39;/&#39;,&#39;&#39;)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;12302006&lt;/td&gt;&lt;/tr&gt;
&lt;tr style=&quot;box-sizing: inherit;&quot;&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;select replace(convert(varchar, getdate(),101),&#39;/&#39;,&#39;&#39;) + replace(convert(varchar, getdate(),108),&#39;:&#39;,&#39;&#39;)&lt;/td&gt;&lt;td style=&quot;box-sizing: inherit; font-size: 12.8px; margin: 0px; padding: 4px;&quot;&gt;12302006004426&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
cr:&amp;nbsp;mssqltips&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://thdevelop.blogspot.com/feeds/8051190486446213331/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://thdevelop.blogspot.com/2019/06/sql-server.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/8051190486446213331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/8051190486446213331'/><link rel='alternate' type='text/html' href='http://thdevelop.blogspot.com/2019/06/sql-server.html' title='การแปลงวันที่และเวลาโดยใช้ SQL Server'/><author><name>thanawat</name><uri>http://www.blogger.com/profile/02230440132875776926</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVdix1LYdHXhPjTrv5J3qdR6RXWruYybx0oZlA5142IHJW4Z7KrGAsOkY4wagw7DBU1ZSAtps77o__d-q8qASs8oJXeOzPjwK7E97Z5_X0FR-IT6BDLX1vfLByUuwu_Q/s220/IMG_25620112_202013.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5430870440474135754.post-7563592512789708381</id><published>2019-04-26T08:53:00.002+07:00</published><updated>2019-04-26T08:56:10.184+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="golang"/><title type='text'>should have comment or be unexported golint in Visual Studio Code (golang)</title><content type='html'>วิธีจัดการกับเหตุการณ์นี้ครับไปที่&amp;nbsp;&lt;span style=&quot;background-color: white; color: #24292e; font-family: , &amp;quot;blinkmacsystemfont&amp;quot; , &amp;quot;segoe ui&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif , &amp;quot;apple color emoji&amp;quot; , &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;segoe ui symbol&amp;quot;; font-size: 14px;&quot;&gt;settings.json (Visual Studio Code) แล้วเพิ่มโค้ดด้านล่างนี้ไปครับ&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #24292e; font-family: , &amp;quot;blinkmacsystemfont&amp;quot; , &amp;quot;segoe ui&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif , &amp;quot;apple color emoji&amp;quot; , &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;segoe ui symbol&amp;quot;; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 14px;&quot;&gt;&quot;go.buildOnSave&quot;: &quot;off&quot;,&lt;/span&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 14px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 14px;&quot;&gt;&quot;go.lintOnSave&quot;: &quot;off&quot;,&lt;/span&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 14px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 14px;&quot;&gt;&quot;go.vetOnSave&quot;: &quot;off&quot;,&lt;/span&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 14px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 14px;&quot;&gt;&quot;go.buildFlags&quot;: [],&lt;/span&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 14px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 14px;&quot;&gt;&quot;go.vetFlags&quot;: [],&lt;/span&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 14px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 14px;&quot;&gt;&quot;go.useCodeSnippetsOnFunctionSuggest&quot;: false,&lt;/span&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 14px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 14px;&quot;&gt;&quot;go.formatTool&quot;: &quot;goreturns&quot;,&lt;/span&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 14px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 14px;&quot;&gt;&quot;go.lintTool&quot;: &quot;gometalinter&quot;,&lt;/span&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 14px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 14px;&quot;&gt;&quot;go.lintFlags&quot;: [&quot;--disable=all&quot;],&lt;/span&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 14px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 14px;&quot;&gt;&quot;go.formatFlags&quot;: [&lt;/span&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 14px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 14px;&quot;&gt;&quot;--disable=all&quot;&lt;/span&gt;&lt;br style=&quot;background-color: white; box-sizing: border-box; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 14px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &amp;quot;Segoe UI&amp;quot;, Helvetica, Arial, sans-serif, &amp;quot;Apple Color Emoji&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, &amp;quot;Segoe UI Symbol&amp;quot;; font-size: 14px;&quot;&gt;]&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
ขอให้สนุกกับการเขียนโปรแกรมนะครับ</content><link rel='replies' type='application/atom+xml' href='http://thdevelop.blogspot.com/feeds/7563592512789708381/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://thdevelop.blogspot.com/2019/04/should-have-comment-or-be-unexported.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/7563592512789708381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/7563592512789708381'/><link rel='alternate' type='text/html' href='http://thdevelop.blogspot.com/2019/04/should-have-comment-or-be-unexported.html' title='should have comment or be unexported golint in Visual Studio Code (golang)'/><author><name>thanawat</name><uri>http://www.blogger.com/profile/02230440132875776926</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVdix1LYdHXhPjTrv5J3qdR6RXWruYybx0oZlA5142IHJW4Z7KrGAsOkY4wagw7DBU1ZSAtps77o__d-q8qASs8oJXeOzPjwK7E97Z5_X0FR-IT6BDLX1vfLByUuwu_Q/s220/IMG_25620112_202013.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5430870440474135754.post-7963858434864478892</id><published>2019-04-26T08:46:00.000+07:00</published><updated>2019-04-26T08:46:44.442+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="springboot"/><title type='text'>How to get client IP Address in springboot (Java)    </title><content type='html'>&lt;br /&gt;
import javax.servlet.http.HttpServletRequest;&lt;br /&gt;
&lt;br /&gt;
//...&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
@Autowired&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public HttpServletRequest request;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;public boolean _isLocalhost() {&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;String[] _host = null;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;boolean _localhost;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;try {&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;_host = (request.getHeader(&quot;referer&quot;)).split(&quot;/&quot;);&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;} catch (Exception e) {&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;// TODO: handle exception&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;if (_host[2].equals(&quot;localhost&quot;)) {&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;_localhost = true ;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;} else {&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;_localhost = false;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;
&amp;nbsp;&lt;span style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;return&amp;nbsp; _localhost;&lt;br /&gt;
&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;}&lt;/blockquote&gt;
เรียกใช้ตามนี้ครับ :&amp;nbsp; _isLocalhost()==true? ... : ...&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://thdevelop.blogspot.com/feeds/7963858434864478892/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://thdevelop.blogspot.com/2019/04/how-to-get-client-ip-address-in.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/7963858434864478892'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/7963858434864478892'/><link rel='alternate' type='text/html' href='http://thdevelop.blogspot.com/2019/04/how-to-get-client-ip-address-in.html' title='How to get client IP Address in springboot (Java)    '/><author><name>thanawat</name><uri>http://www.blogger.com/profile/02230440132875776926</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVdix1LYdHXhPjTrv5J3qdR6RXWruYybx0oZlA5142IHJW4Z7KrGAsOkY4wagw7DBU1ZSAtps77o__d-q8qASs8oJXeOzPjwK7E97Z5_X0FR-IT6BDLX1vfLByUuwu_Q/s220/IMG_25620112_202013.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5430870440474135754.post-4771624961144416568</id><published>2019-01-29T14:17:00.002+07:00</published><updated>2019-01-29T14:17:54.012+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="ค้นหาตัวอักษรในข้อความ"/><title type='text'>ตรวจสอบว่ามีตัวอักษรในข้อความหรือไม่ contains()</title><content type='html'>&lt;h3 style=&quot;background-color: white; color: #141823; letter-spacing: 0.1rem; line-height: 1.3; margin-bottom: 2rem; margin-top: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;font-size: 3rem;&quot;&gt;contains()&lt;/span&gt;&lt;span style=&quot;font-size: 48px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;strong style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 18px;&quot;&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/h3&gt;
&lt;h3 style=&quot;background-color: white; color: #141823; letter-spacing: 0.1rem; line-height: 1.3; margin-bottom: 2rem; margin-top: 0px;&quot;&gt;
&lt;strong style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 18px;&quot;&gt;Method&lt;/strong&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 18px;&quot;&gt;&amp;nbsp;: contains(CharSequence char)&lt;/span&gt;&lt;strong style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 18px;&quot;&gt;Returns&lt;/strong&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 18px;&quot;&gt;&amp;nbsp;: boolean&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;background-color: white; line-height: 1.65; margin-bottom: 2.5rem;&quot;&gt;
&lt;span style=&quot;color: #141823; font-family: Courier New, Courier, monospace; font-size: 18px;&quot;&gt;ใช้เมื่อเราต้องหารตรวจสอบว่ามีตัวอักษรในข้อความหรือไม่&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; line-height: 1.65; margin-bottom: 2.5rem;&quot;&gt;
&lt;span style=&quot;color: #141823; font-family: Courier New, Courier, monospace; font-size: 18px;&quot;&gt;EX.ต้องการหาว่า มีตัว &quot;a&quot; ใน String &quot;Hello&quot; หรือไม่&amp;nbsp; ถ้ามี&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 18px;&quot;&gt;&lt;span style=&quot;color: #141823; font-family: Courier New, Courier, monospace;&quot;&gt;ผลลัพธ์&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #141823; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 18px;&quot;&gt;จะเป็น true ถ้าไม่มี&lt;/span&gt;&lt;span style=&quot;background-color: transparent; font-size: 18px;&quot;&gt;&lt;span style=&quot;color: #141823; font-family: Courier New, Courier, monospace;&quot;&gt;ผลลัพธ์&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #141823; font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 18px;&quot;&gt;จะเป็น false&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #141823; font-size: 18px; line-height: 1.65; margin-bottom: 2.5rem;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Example&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div class=&quot;highlight&quot; style=&quot;background-color: #122b3b; border-radius: 0.25rem; margin: 2rem 0px;&quot;&gt;
&lt;pre class=&quot;highlight java&quot; style=&quot;border-radius: 0.25rem; margin-bottom: 2rem; margin-top: 2rem;&quot;&gt;&lt;code style=&quot;color: #faf6e4; display: block; font-size: 14px; overflow: auto; padding: 2rem; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;n&quot;&gt;String&lt;/span&gt; str&lt;span class=&quot;n&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;o&quot; style=&quot;color: #4df4ff; font-weight: 700;&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot; style=&quot;color: #fff0a6; font-weight: 700;&quot;&gt;&quot;Hello&quot;&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;color: #4df4ff; font-weight: 700;&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;String&lt;/span&gt; str2 &lt;span class=&quot;o&quot; style=&quot;color: #4df4ff; font-weight: 700;&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot; style=&quot;color: #fff0a6; font-weight: 700;&quot;&gt;&quot;a&quot;&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;color: #4df4ff; font-weight: 700;&quot;&gt;;&lt;/span&gt;    
&lt;span class=&quot;kt&quot; style=&quot;color: #b2fd6d; font-weight: 700;&quot;&gt;boolean&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;b&lt;/span&gt; &lt;span class=&quot;o&quot; style=&quot;color: #4df4ff; font-weight: 700;&quot;&gt;=&lt;/span&gt; &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;n&quot; style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;o&quot; style=&quot;color: #4df4ff; font-weight: 700;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;na&quot; style=&quot;color: #a8e1fe;&quot;&gt;contains&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;color: #4df4ff; font-weight: 700;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;str2&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;o&quot; style=&quot;color: #4df4ff; font-weight: 700;&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;code style=&quot;display: block; overflow: auto; padding: 2rem;&quot;&gt;&lt;span class=&quot;o&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: #4df4ff;&quot;&gt;&lt;span style=&quot;font-size: 14px; white-space: pre-wrap;&quot;&gt;&lt;b&gt;ผลลัพธ์&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-size: 14px; white-space: pre-wrap;&quot;&gt;

&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;color: #faf6e4; font-size: 14px; font-weight: 400; white-space: pre-wrap;&quot;&gt;false&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #4df4ff; font-family: quicksand, montserrat, Helvetica, cursive, sans-serif; font-size: 14px; font-weight: 700; white-space: pre-wrap;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://thdevelop.blogspot.com/feeds/4771624961144416568/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://thdevelop.blogspot.com/2019/01/contains.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/4771624961144416568'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/4771624961144416568'/><link rel='alternate' type='text/html' href='http://thdevelop.blogspot.com/2019/01/contains.html' title='ตรวจสอบว่ามีตัวอักษรในข้อความหรือไม่ contains()'/><author><name>thanawat</name><uri>http://www.blogger.com/profile/02230440132875776926</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVdix1LYdHXhPjTrv5J3qdR6RXWruYybx0oZlA5142IHJW4Z7KrGAsOkY4wagw7DBU1ZSAtps77o__d-q8qASs8oJXeOzPjwK7E97Z5_X0FR-IT6BDLX1vfLByUuwu_Q/s220/IMG_25620112_202013.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5430870440474135754.post-320927071887230923</id><published>2018-10-25T08:33:00.000+07:00</published><updated>2018-10-25T08:33:03.596+07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AppServ"/><category scheme="http://www.blogger.com/atom/ns#" term="htaccess"/><category scheme="http://www.blogger.com/atom/ns#" term="rewrite"/><title type='text'>การตั้งค่า Appserv ให้สามารถใช้งาน htaccess rewrite ได้ (windows)</title><content type='html'>&lt;h2&gt;
&lt;b&gt;&lt;span style=&quot;color: #555555; font-family: verdana, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 12px;&quot;&gt;หลังจากลง&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #555555; font-family: verdana, sans-serif; font-size: 12px; line-height: 15.6px;&quot;&gt;AppServ เสร็จแล้วให้ทำตามขั้นตอนดังนี้&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;
&lt;span style=&quot;background-color: white; color: #555555; font-family: verdana, sans-serif; font-size: 12px; line-height: 15.6px;&quot;&gt;1.&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #555555; font-family: verdana, sans-serif; font-size: 12px; line-height: 15.6px;&quot;&gt;&amp;nbsp;เข้าเมนู&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #555555; font-family: verdana, sans-serif; font-size: 12px; line-height: 15.6px;&quot;&gt;Start -&amp;gt; Program -&amp;gt; AppServ -&amp;gt; Configuration Server -&amp;gt; Apache Edit the httpd.conf Configuration File&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: verdana, sans-serif;&quot;&gt;&lt;b&gt;&lt;br style=&quot;background-color: white; color: #555555; font-size: 12px;&quot; /&gt;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #555555; font-family: verdana, sans-serif; font-size: 12px; line-height: 15.6px;&quot;&gt;2. เมื่อเลือกเข้าไปแล้ว โปรแกรมจะเปิดไฟล์&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #555555; font-family: verdana, sans-serif; font-size: 12px; line-height: 15.6px;&quot;&gt;httd.conf&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #555555; font-family: verdana, sans-serif; font-size: 12px; line-height: 15.6px;&quot;&gt;&amp;nbsp;ให้เราครับ ส่วนใหญ่จะเปิดด้วย&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #555555; font-family: verdana, sans-serif; font-size: 12px; line-height: 15.6px;&quot;&gt;notepad&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #555555; font-family: verdana, sans-serif; font-size: 12px; line-height: 15.6px;&quot;&gt;(ซึ่งน่าจะมีทุกเครื่องแล้ว)&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 12px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #555555; font-family: verdana, sans-serif; font-size: 12px; line-height: 15.6px;&quot;&gt;3. จากนั้น ให้ค้นหา&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #555555; font-family: verdana, sans-serif; font-size: 12px; line-height: 15.6px;&quot;&gt;&amp;nbsp;(Ctrl +F)&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #555555; font-family: verdana, sans-serif; font-size: 12px; line-height: 15.6px;&quot;&gt;&amp;nbsp;คำว่า&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #555555; font-family: verdana, sans-serif; font-size: 12px; line-height: 15.6px;&quot;&gt;LoadModule rewrite_module modules/mod_rewrite.so&lt;/b&gt;&lt;br style=&quot;background-color: white; color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 12px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #555555; font-family: verdana, sans-serif; font-size: 12px; line-height: 15.6px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #555555; font-family: verdana, sans-serif; font-size: 12px; line-height: 15.6px;&quot;&gt;4. เมื่อพบสังเกตว่า หน้าคำว่า&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #555555; font-family: verdana, sans-serif; font-size: 12px; line-height: 15.6px;&quot;&gt;LoadModule rewrite_module modules/mod_rewrite.so&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #555555; font-family: verdana, sans-serif; font-size: 12px; line-height: 15.6px;&quot;&gt;&amp;nbsp;จะมี&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #555555; font-family: verdana, sans-serif; font-size: 12px; line-height: 15.6px;&quot;&gt;&amp;nbsp;#&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #555555; font-family: verdana, sans-serif; font-size: 12px; line-height: 15.6px;&quot;&gt;&amp;nbsp;นำหน้าอยู่&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 12px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #555555; font-family: verdana, sans-serif; font-size: 12px; line-height: 15.6px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #555555; font-family: verdana, sans-serif; font-size: 12px; line-height: 15.6px;&quot;&gt;5. ให้ลบ&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #555555; font-family: verdana, sans-serif; font-size: 12px; line-height: 15.6px;&quot;&gt;#&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #555555; font-family: verdana, sans-serif; font-size: 12px; line-height: 15.6px;&quot;&gt;&amp;nbsp;แล้ว&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #555555; font-family: verdana, sans-serif; font-size: 12px; line-height: 15.6px;&quot;&gt;Restart Apache&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #555555; font-family: verdana, sans-serif; font-size: 12px; line-height: 15.6px;&quot;&gt;&amp;nbsp;ใหม่ ก็สามารถใช้งานได้แล้วครับ&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://thdevelop.blogspot.com/feeds/320927071887230923/comments/default' title='ส่งความคิดเห็น'/><link rel='replies' type='text/html' href='http://thdevelop.blogspot.com/2018/10/appserv-htaccess-rewrite-windows.html#comment-form' title='0 ความคิดเห็น'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/320927071887230923'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5430870440474135754/posts/default/320927071887230923'/><link rel='alternate' type='text/html' href='http://thdevelop.blogspot.com/2018/10/appserv-htaccess-rewrite-windows.html' title='การตั้งค่า Appserv ให้สามารถใช้งาน htaccess rewrite ได้ (windows)'/><author><name>thanawat</name><uri>http://www.blogger.com/profile/02230440132875776926</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVdix1LYdHXhPjTrv5J3qdR6RXWruYybx0oZlA5142IHJW4Z7KrGAsOkY4wagw7DBU1ZSAtps77o__d-q8qASs8oJXeOzPjwK7E97Z5_X0FR-IT6BDLX1vfLByUuwu_Q/s220/IMG_25620112_202013.jpg'/></author><thr:total>0</thr:total></entry></feed>