<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Wongvian Wongkaso on Medium]]></title>
        <description><![CDATA[Stories by Wongvian Wongkaso on Medium]]></description>
        <link>https://medium.com/@wongvianwongkaso?source=rss-debcee1dccb2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*nOScOcyVs1XYYn0Cuzt8fg.jpeg</url>
            <title>Stories by Wongvian Wongkaso on Medium</title>
            <link>https://medium.com/@wongvianwongkaso?source=rss-debcee1dccb2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 21:18:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@wongvianwongkaso/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Image Docker Fix Php2Shell]]></title>
            <link>https://wongvianwongkaso.medium.com/image-docker-fix-php2shell-1b9b856b5940?source=rss-debcee1dccb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b9b856b5940</guid>
            <dc:creator><![CDATA[Wongvian Wongkaso]]></dc:creator>
            <pubDate>Wed, 04 Nov 2026 02:05:04 GMT</pubDate>
            <atom:updated>2026-11-04T02:10:03.349Z</atom:updated>
            <content:encoded><![CDATA[<h3>การปรับปรุงความปลอดภัย PHP Docker Image ด้วย PHP Security Hardening และ Apache สำหรับลดความเสี่ยง PHP2Shell</h3><p>บทนำ</p><p>ปัจจุบันระบบสารสนเทศที่พัฒนาด้วย PHP มีการใช้งานอย่างแพร่หลาย โดยเฉพาะระบบ Web Application ที่ต้องเชื่อมต่อฐานข้อมูล Oracle Database และ MySQL การให้บริการระบบผ่านเครือข่ายอินเทอร์เน็ตทำให้ต้องให้ความสำคัญกับความมั่นคงปลอดภัยของ Web Server และสภาพแวดล้อมที่ใช้ประมวลผล PHP โดยเฉพาะความเสี่ยงจากการโจมตีที่อาจทำให้ผู้ไม่หวังดีสามารถสั่งให้ระบบปฏิบัติการทำงานผ่านช่องทางของ PHP หรือที่เรียกกันในภาพรวมว่า PHP2Shell</p><p>บทความนี้นำเสนอแนวทางการปรับปรุง Docker Image โดยใช้ PHP 8.2 และ Apache บน Debian Bookworm พร้อมติดตั้ง Oracle Instant Client 21.8 และ OCI8 Extension เพื่อรองรับระบบสารสนเทศที่ใช้งาน Oracle Database ควบคู่กับการเพิ่มมาตรการรักษาความปลอดภัยในระดับ PHP, Apache และ Docker Container</p><p>แนวทางการปรับปรุงความปลอดภัย</p><p>การปรับปรุงเริ่มจากการสร้าง Docker Image โดยใช้ php:8.2-apache-bookworm เป็น Base Image และติดตั้ง PHP Extension ที่จำเป็น เช่น GD, Intl, Mbstring, ZIP, OPcache, MySQLi และ PDO รวมถึงติดตั้ง Oracle Instant Client เพื่อให้สามารถเชื่อมต่อ Oracle Database ผ่าน OCI8 และ PDO_OCI ได้ โดยยังคงรองรับการทำงานของระบบเดิม</p><p>ในส่วนของ PHP Security Hardening ได้กำหนดค่า Configuration เพื่อลดการเปิดเผยข้อมูลของระบบ เช่น expose_php = Off ปิดการแสดงรายละเอียดข้อผิดพลาดด้วย display_errors = Off และเปิดการบันทึกข้อผิดพลาดด้วย log_errors = On นอกจากนี้ยังปิด allow_url_include และกำหนด open_basedir เพื่อจำกัดขอบเขตการเข้าถึงไฟล์ของ PHP ให้อยู่เฉพาะ Directory ที่จำเป็น</p><p>มาตรการสำคัญอีกประการหนึ่งคือการใช้ disable_functions เพื่อปิดฟังก์ชันที่สามารถเรียกใช้คำสั่งของระบบปฏิบัติการ เช่น exec(), shell_exec(), system(), passthru(), proc_open() และ popen() ซึ่งช่วยลดช่องทางที่อาจถูกนำไปใช้ในการโจมตีระบบ อย่างไรก็ตาม ต้องตรวจสอบ Source Code ก่อนดำเนินการ เนื่องจากระบบเดิมบางระบบอาจจำเป็นต้องใช้ฟังก์ชันเหล่านี้ในการประมวลผลไฟล์หรือเรียกโปรแกรมภายนอก</p><p>สำหรับ Apache ได้เพิ่มมาตรการ Hardening โดยกำหนด ServerTokens Prod, ServerSignature Off และ TraceEnable Off เพื่อลดการเปิดเผยรายละเอียดของ Web Server รวมถึงกำหนดนโยบายควบคุม Directory ที่ใช้จัดเก็บไฟล์ชั่วคราวและไฟล์อัปโหลด โดยปิดการประมวลผล PHP และ CGI ในพื้นที่ดังกล่าว เพื่อป้องกันกรณีที่ผู้โจมตีอัปโหลดไฟล์สคริปต์อันตรายเข้ามาแล้วเรียกใช้งานผ่าน Web Server</p><p>การบริหารจัดการด้วย Docker Compose</p><p>นอกจากการปรับปรุง PHP และ Apache แล้ว ยังใช้ Docker Compose ในการบริหารจัดการบริการต่าง ๆ โดยแยก Nginx Proxy Manager สำหรับทำหน้าที่ Reverse Proxy และจัดการ SSL Certificate ออกจาก PHP Application Container, MySQL Database และ phpMyAdmin การแยกบริการช่วยให้สามารถกำหนดขอบเขตการเข้าถึงและบริหารจัดการแต่ละส่วนได้อย่างเป็นระบบ โดยควรจำกัดการเปิด Port ของฐานข้อมูลและเครื่องมือบริหารจัดการให้เข้าถึงได้เฉพาะผู้ที่ได้รับอนุญาต</p><p>ผลที่คาดว่าจะได้รับและข้อเสนอแนะ</p><p>การปรับปรุง Docker Image ด้วยแนวทางดังกล่าวช่วยลด Attack Surface ของระบบ ลดความเสี่ยงจากการเรียกใช้คำสั่งระบบปฏิบัติการผ่าน PHP ลดการเปิดเผยข้อมูลทางเทคนิคของ Web Server และจำกัดการประมวลผลไฟล์สคริปต์ในพื้นที่จัดเก็บไฟล์ที่ไม่ควรประมวลผลโค้ด นอกจากนี้ยังช่วยให้ระบบสามารถรองรับการเชื่อมต่อ Oracle Database และ MySQL ได้ภายใต้สภาพแวดล้อม Container ที่บริหารจัดการได้สะดวก</p><p>อย่างไรก็ตาม การกำหนดค่า Security Hardening เพียงอย่างเดียวไม่สามารถรับประกันว่าจะป้องกัน PHP2Shell หรือ Remote Code Execution (RCE) ได้อย่างสมบูรณ์ จึงควรดำเนินการร่วมกับการตรวจสอบช่องโหว่ของ Source Code การควบคุมสิทธิ์ไฟล์ การอัปเดตแพ็กเกจ การจำกัดสิทธิ์ Container การใช้ HTTPS และการตรวจสอบ Log อย่างสม่ำเสมอ รวมถึงทดสอบความปลอดภัยก่อนนำระบบขึ้นใช้งานจริง</p><p>สรุป</p><p>การพัฒนา Docker Image ที่คำนึงถึงความปลอดภัยตั้งแต่ระดับ PHP Runtime, Apache Configuration และ Container Infrastructure เป็นแนวทางสำคัญในการยกระดับความมั่นคงปลอดภัยของระบบสารสนเทศ โดยเฉพาะระบบเดิมที่ต้องรักษาความเข้ากันได้กับ Oracle Database และ MySQL การทำ Security Hardening อย่างเป็นระบบจะช่วยลดความเสี่ยงจากการโจมตี เพิ่มความพร้อมใช้งาน และสนับสนุนการให้บริการระบบสารสนเทศได้อย่างต่อเนื่องและมีประสิทธิภาพ</p><p>คำสำคัญ: Docker, PHP Security Hardening, Apache, PHP2Shell, Oracle Instant Client, OCI8, Cybersecurity, Web Application Security</p><blockquote>FROM php:8.2-apache-bookworm</blockquote><blockquote>ENV ORACLE_HOME=/opt/oracle/instantclient<br>ENV LD_LIBRARY_PATH=/opt/oracle/instantclient:$LD_LIBRARY_PATH<br>ENV PATH=/opt/oracle/instantclient:$PATH</blockquote><blockquote># Install system dependencies<br>RUN apt-get update &amp;&amp; apt-get install -y --no-install-recommends \<br> libzip-dev \<br> zip \<br> unzip \<br> libpng-dev \<br> libjpeg-dev \<br> libfreetype6-dev \<br> libonig-dev \<br> libicu-dev \<br> libaio1 \<br> wget \<br> ca-certificates \<br> &amp;&amp; rm -rf /var/lib/apt/lists/*</blockquote><blockquote># Install standard PHP extensions<br>RUN docker-php-ext-configure gd --with-freetype --with-jpeg \<br> &amp;&amp; docker-php-ext-configure intl \<br> &amp;&amp; docker-php-ext-install -j$(nproc) gd intl mbstring zip opcache mysqli pdo_mysql</blockquote><blockquote># Install Oracle Instant Client 21.8<br>RUN mkdir -p /opt/oracle \<br> &amp;&amp; cd /opt/oracle \<br> &amp;&amp; wget --no-check-certificate <a href="https://download.oracle.com/otn_software/linux/instantclient/218000/instantclient-basic-linux.x64-21.8.0.0.0dbru.zip">https://download.oracle.com/otn_software/linux/instantclient/218000/instantclient-basic-linux.x64-21.8.0.0.0dbru.zip</a> \<br> &amp;&amp; wget --no-check-certificate <a href="https://download.oracle.com/otn_software/linux/instantclient/218000/instantclient-sdk-linux.x64-21.8.0.0.0dbru.zip">https://download.oracle.com/otn_software/linux/instantclient/218000/instantclient-sdk-linux.x64-21.8.0.0.0dbru.zip</a> \<br> &amp;&amp; unzip instantclient-basic-linux.x64-21.8.0.0.0dbru.zip \<br> &amp;&amp; unzip instantclient-sdk-linux.x64-21.8.0.0.0dbru.zip \<br> &amp;&amp; rm -f *.zip \<br> &amp;&amp; mv instantclient_21_8 /opt/oracle/instantclient \<br> &amp;&amp; echo /opt/oracle/instantclient &gt; /etc/ld.so.conf.d/oracle-instantclient.conf \<br> &amp;&amp; ldconfig \<br> &amp;&amp; echo &quot;export LD_LIBRARY_PATH=/opt/oracle/instantclient&quot; &gt;&gt; /etc/apache2/envvars</blockquote><blockquote># Install OCI8 and PDO_OCI<br>RUN echo &quot;instantclient,/opt/oracle/instantclient&quot; | docker-php-ext-configure oci8 --with-oci8=instantclient,/opt/oracle/instantclient \<br> &amp;&amp; docker-php-ext-install oci8 \<br> &amp;&amp; docker-php-ext-configure pdo_oci --with-pdo-oci=instantclient,/opt/oracle/instantclient \<br> &amp;&amp; docker-php-ext-install pdo_oci</blockquote><blockquote># Enable Apache modules<br>RUN a2enmod rewrite headers</blockquote><blockquote># Security &amp; PHP Hardening<br># หมายเหตุ: หากระบบมีฟังก์ชันดึง API ภายนอกหรือ cURL ให้เอา curl_exec ออกจาก disable_functions<br>RUN { \<br> echo &#39;expose_php = Off&#39;; \<br> echo &#39;display_errors = Off&#39;; \<br> echo &#39;display_startup_errors = Off&#39;; \<br> echo &#39;log_errors = On&#39;; \<br> echo &#39;allow_url_fopen = On&#39;; \<br> echo &#39;allow_url_include = Off&#39;; \<br> echo &#39;enable_dl = Off&#39;; \<br> echo &#39;file_uploads = On&#39;; \<br> echo &#39;upload_tmp_dir = /tmp&#39;; \<br> echo &#39;session.save_path = /tmp&#39;; \<br> echo &#39;open_basedir = /var/www/html:/tmp:/opt/oracle/instantclient&#39;; \<br> echo &#39;disable_functions = exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source,symlink,link,dl,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,posix_uname,posix_getpwuid,pcntl_exec,pcntl_fork&#39;; \<br> } &gt; /usr/local/etc/php/conf.d/docker-php-security.ini</blockquote><blockquote># Apache Hardening &amp; ป้องกันการรันสคริปต์ใน tmp / upload<br>RUN { \<br> echo &#39;ServerTokens Prod&#39;; \<br> echo &#39;ServerSignature Off&#39;; \<br> echo &#39;TraceEnable Off&#39;; \<br> echo &#39;&lt;Directory &quot;/var/www/html&quot;&gt;&#39;; \<br> echo &#39; Options -Indexes +FollowSymLinks&#39;; \<br> echo &#39; AllowOverride All&#39;; \<br> echo &#39; Require all granted&#39;; \<br> echo &#39;&lt;/Directory&gt;&#39;; \<br> echo &#39;&lt;Directory &quot;/var/www/html/tmp&quot;&gt;&#39;; \<br> echo &#39; php_admin_flag engine off&#39;; \<br> echo &#39; Options -ExecCGI -Indexes&#39;; \<br> echo &#39; AllowOverride None&#39;; \<br> echo &#39; Require all granted&#39;; \<br> echo &#39; &lt;FilesMatch &quot;(?i)\.(php|phar|phtml|php[0-9]|inc|sh|pl|cgi|asp|aspx)$&quot;&gt;&#39;; \<br> echo &#39; Require all denied&#39;; \<br> echo &#39; &lt;/FilesMatch&gt;&#39;; \<br> echo &#39;&lt;/Directory&gt;&#39;; \<br> } &gt; /etc/apache2/conf-available/security-hardening.conf \<br> &amp;&amp; a2enconf security-hardening</blockquote><blockquote># เตรียม Directory แคชสำหรับ mPDF และปรับ Permissions<br>RUN mkdir -p /var/www/html/tmp/ttfontdata \<br> &amp;&amp; chown -R www-data:www-data /var/www/html \<br> &amp;&amp; chmod -R 755 /var/www/html \<br> &amp;&amp; chmod -R 775 /var/www/html/tmp</blockquote><blockquote>WORKDIR /var/www/html<br>EXPOSE 80<br>CMD [&quot;apache2-foreground&quot;]</blockquote><p>docker-compose file</p><blockquote>#version: ‘3.8’</blockquote><blockquote>services:<br> app:<br> image: ‘jc21/nginx-proxy-manager:latest’<br> restart: unless-stopped<br> ports:<br> # These ports are in format &lt;host-port&gt;:&lt;container-port&gt;<br> — ‘80:80’ # Public HTTP Port<br> — ‘443:443’ # Public HTTPS Port<br> — ‘81:81’ # Admin Web Port<br> # Add any other Stream port you want to expose<br> # — ‘21:21’ # FTP</blockquote><blockquote># Uncomment the next line if you uncomment anything in the section<br> # environment:<br> # Uncomment this if you want to change the location of<br> # the SQLite DB file within the container<br> # DB_SQLITE_FILE: “/data/database.sqlite”</blockquote><blockquote># Uncomment this if IPv6 is not enabled on your host<br> # DISABLE_IPV6: ‘true’</blockquote><blockquote>volumes:<br> — ./data:/data<br> — ./letsencrypt:/etc/letsencrypt</blockquote><blockquote>tabian:<br> build: ./tabian<br> container_name: tabian<br> volumes:<br> — ./tabian/:/var/www/html<br> ports:<br> — “8003:80”<br> <br> mysql:<br> image: mysql:5.7<br> container_name: mysql<br> command: — default-authentication-plugin=mysql_native_password<br> environment:<br> MYSQL_ROOT_PASSWORD: root_password<br> MYSQL_DATABASE: my_database<br> MYSQL_USER: user<br> MYSQL_PASSWORD: user_password<br> volumes:<br> — mysql_data:/var/lib/mysql<br> ports:<br> — “3306:3306”</blockquote><blockquote>phpmyadmin:<br> image: phpmyadmin/phpmyadmin<br> container_name: phpmyadmin<br> environment:<br> PMA_HOST: mysql<br> PMA_USER: root<br> PMA_PASSWORD: root_password<br> ports:<br> — “8888:80”<br>volumes:<br> mysql_data:</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b9b856b5940" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[เคสหลักสูตร บริหารธุรกิจ(การตลาด 67 ) จับข้อมูลครบหลักสูตรไม่ถูก]]></title>
            <link>https://wongvianwongkaso.medium.com/%E0%B9%80%E0%B8%84%E0%B8%AA%E0%B8%AB%E0%B8%A5%E0%B8%B1%E0%B8%81%E0%B8%AA%E0%B8%B9%E0%B8%95%E0%B8%A3-%E0%B8%9A%E0%B8%A3%E0%B8%B4%E0%B8%AB%E0%B8%B2%E0%B8%A3%E0%B8%98%E0%B8%B8%E0%B8%A3%E0%B8%81%E0%B8%B4%E0%B8%88-%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%95%E0%B8%A5%E0%B8%B2%E0%B8%94-67-%E0%B8%88%E0%B8%B1%E0%B8%9A%E0%B8%82%E0%B9%89%E0%B8%AD%E0%B8%A1%E0%B8%B9%E0%B8%A5%E0%B8%84%E0%B8%A3%E0%B8%9A%E0%B8%AB%E0%B8%A5%E0%B8%B1%E0%B8%81%E0%B8%AA%E0%B8%B9%E0%B8%95%E0%B8%A3%E0%B9%84%E0%B8%A1%E0%B9%88%E0%B8%96%E0%B8%B9%E0%B8%81-3ca4caf9f4cd?source=rss-debcee1dccb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ca4caf9f4cd</guid>
            <dc:creator><![CDATA[Wongvian Wongkaso]]></dc:creator>
            <pubDate>Wed, 18 Feb 2026 15:04:49 GMT</pubDate>
            <atom:updated>2026-02-18T15:04:49.193Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TShR0LRB2KdfV7KA3uXYNw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ca4caf9f4cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your Future Coworker Might Be a Robot: Diving Deep into Next-Gen AI (And Why It’s Way More Than…]]></title>
            <link>https://wongvianwongkaso.medium.com/your-future-coworker-might-be-a-robot-diving-deep-into-next-gen-ai-and-why-its-way-more-than-5c58bb64804c?source=rss-debcee1dccb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/5c58bb64804c</guid>
            <dc:creator><![CDATA[Wongvian Wongkaso]]></dc:creator>
            <pubDate>Mon, 10 Nov 2025 17:05:03 GMT</pubDate>
            <atom:updated>2025-11-10T17:05:03.969Z</atom:updated>
            <content:encoded><![CDATA[<h3>Your Future Coworker Might Be a Robot: Diving Deep into Next-Gen AI (And Why It’s Way More Than Just ChatGPT!)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*p9DIw0OKME-3Tzdsx7Ov0w.png" /></figure><p>Remember when AI was just Siri answering silly questions? Well, that parlor trick has evolved. Artificial intelligence is no longer some far-off science fiction trope; it’s a rapidly evolving force reshaping our world. We stand at the cusp of a new era: Next-Gen AI. This isn’t just about automating tasks; it’s about systems that truly learn, reason, and create in ways that begin to mimic — and sometimes surpass — human capabilities. Let’s embark on a journey together. We’ll explore the historical roots of AI, dissect the novel features of this next generation, grapple with the hopes and fears it ignites, and peer into the possibilities lurking just over the horizon.</p><h3>AI’s Glow-Up: What Exactly is “Next-Gen AI”?</h3><p>The heart of Next-Gen AI lies in its ambition: to create artificial intelligence that mirrors human-like capabilities — thinking, creating, and adapting with a fluidity we once thought uniquely human. It’s a move beyond simple automation into the realm of genuine cognitive function. Several star players are driving this revolution:</p><ul><li><strong>Generative AI (GenAI): Your New Creative Genius.</strong> Forget passive responses; Generative AI actively creates original content. Think of it as a digital muse capable of conjuring text, images, code, and more. ChatGPT writing your emails or DALL-E painting your dreams are just the tip of the iceberg. This is all thanks to Foundation Models, the massive computational brains providing the raw power, and Large Language Models (LLMs), the specialized conversationalists within.</li><li><strong>Agentic AI: Your Future Autonomous Assistant.</strong> While current AI responds to commands, Agentic AI *acts*. Imagine AI that independently pursues complex goals. A system capable of managing your entire smart home ecosystem or orchestrating intricate business workflows without constant human intervention. It’s about proactive intelligence, not just reactive responses.</li><li><strong>Multimodal AI: The AI That Gets It All.</strong> The world isn’t just text; it’s a rich tapestry of sights, sounds, and sensations. Multimodal AI aims to process it all. By blending text, images, audio, and video, this AI achieves a richer, more nuanced understanding of the world, leading to outputs that are, frankly, astonishing.</li><li><strong>Explainable AI (XAI): Pulling Back the Curtain.</strong> Trust is paramount, especially when AI makes decisions that impact our lives. Explainable AI (XAI) provides transparency, revealing the reasoning behind its conclusions. In high-stakes scenarios, understanding *why* an AI made a certain choice is just as important as the choice itself.</li></ul><p>Underpinning all of this are crucial elements often hidden from view: massive datasets (where quality trumps mere quantity), robust privacy safeguards, and the sheer computational horsepower necessary to bring these complex algorithms to life.</p><h3>The AI Time Machine: How We Got Here (From Ancient Myths to Modern Miracles)</h3><p>The dream of artificial intelligence isn’t new. For centuries, myths and legends have whispered of artificial beings imbued with intelligence. But the modern story begins in earnest in the mid-20th century:</p><ul><li><strong>The Dawn of AI (1940s-1970s).</strong> Alan Turing laid the theoretical groundwork, famously proposing a test to determine machine intelligence. The Dartmouth Workshop of 1956 officially christened the field “Artificial Intelligence.” Early successes included checkers-playing programs, the surprisingly conversational ELIZA chatbot, and Shakey the Robot, a pioneer in robotics and spatial reasoning.</li><li><strong>The Rollercoaster Years (1980s-2010s).</strong> The initial enthusiasm for AI led to an “expert systems” boom, followed by a series of “AI Winters” as funding dried up and expectations went unmet. Despite the setbacks, progress continued. Deep Blue’s victory over Garry Kasparov in 1997 marked a pivotal moment. AI quietly infiltrated our lives through products like the Roomba and nascent voice assistants. The rise of Deep Learning, fueled by ever-increasing data and processing power, set the stage for the modern explosion.</li><li><strong>The ChatGPT Moment: Today’s AI Explosion (2017-Present).</strong> The “Transformer” architecture revolutionized the field, enabling unprecedented leaps in natural language processing and generative capabilities. Suddenly, everyone was talking about generative AI and Large Language Models, and the world shifted once more.</li></ul><h3>The Great AI Debate: Hope, Hype, and a Healthy Dose of Fear (Current Opinions &amp; Controversies)</h3><p>The advent of Next-Gen AI has ignited a fierce debate, oscillating between utopian visions and dystopian anxieties:</p><ul><li><strong>The Optimists’ Dream: AI as Humanity’s Super-Sidekick.</strong> Proponents envision AI as a powerful tool for boosting productivity, unleashing creativity, and revolutionizing industries. From healthcare (diagnostics, drug discovery) to business (automation, decision-making), education, and smart cities, the potential applications are vast. Many see AI as an augmenter, enhancing human capabilities rather than replacing them entirely.</li><li><strong>The Public’s Jitters: Is Skynet Imminent, or Just Taking My Job?</strong> Job displacement remains a primary concern, with widespread anxiety about AI rendering human skills obsolete. Privacy is another flashpoint, with concerns about mass surveillance and the ethical implications of data collection. The “black box” problem — the opacity of AI decision-making processes — raises questions of accountability and trust.</li><li><strong>AI’s Darker Side: Controversies You Can’t Ignore:</strong> Ethical minefields abound. AI can inherit and amplify existing biases, perpetuating discrimination in areas like hiring, healthcare, and facial recognition. Deepfakes pose a potent threat, enabling the creation of hyper-realistic misinformation and manipulation. Copyright issues are fiercely contested, with artists and tech companies battling over ownership of AI-generated content. The prospect of weaponized AI raises profound ethical and security concerns. Moreover, the energy consumption of large AI models presents a significant environmental challenge. Concerns about “AI inbreeding,” where AI learns primarily from other AI, raise the specter of intellectual stagnation. Finally, the rapid pace of AI development has outstripped the ability of lawmakers to establish effective regulations, leaving us in a precarious position.</li></ul><h3>Beyond Tomorrow: What’s Next-Next for AI? (Future Developments)</h3><p>Looking ahead, the trajectory of AI points toward even more profound transformations:</p><ul><li><strong>Agentic AI: The Ultimate Problem Solvers.</strong> Expect autonomous systems that can reason, plan, and execute complex, multi-step tasks without constant human oversight. Self-optimizing networks and truly intelligent homes are just the beginning.</li><li><strong>Even Bigger, More Blended Models.</strong> AI models with trillions of parameters will seamlessly integrate diverse data types (text, images, video, sound) into unified super-brains. Simultaneously, efforts will focus on developing smaller, more efficient AI models for everyday applications.</li><li><strong>A Global AI Shift.</strong> The dominance of Silicon Valley may wane as new AI powerhouses emerge across the globe.</li><li><strong>AI Everywhere, Doing Everything.</strong> Personalized medicine, accelerated drug discovery, self-driving cars, smart drones, and AI-driven scientific breakthroughs will become commonplace.</li><li><strong>Feeding the Beast: Synthetic Data &amp; Hardware Upgrades.</strong> As real-world data becomes scarce, AI will increasingly rely on synthetic data for training. The race for faster AI chips and the potential of quantum computing will further accelerate progress.</li><li><strong>Building AI Responsibly: The Ethics &amp; Regulation Imperative.</strong> Robust global AI policies, such as the EU AI Act, will become essential. “Human-in-the-loop” oversight will be crucial for ensuring fairness, safety, and transparency. Interdisciplinary collaboration, bringing together technologists, ethicists, psychologists, and policymakers, will be vital for guiding AI’s development along a responsible path.</li></ul><h3>Conclusion: Navigating the AI Frontier</h3><p>Next-Gen AI presents both incredible opportunities and formidable challenges. It’s not merely a technology; it’s a force that will fundamentally reshape our society, economy, and daily lives. The future of AI is still unwritten, a collaborative narrative waiting to be composed. The question is: what role will *you* play in shaping it responsibly?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5c58bb64804c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[‍ เมื่อต้องทำวีดีทัศน์เกษียณ หรือประเมินผอ.]]></title>
            <link>https://wongvianwongkaso.medium.com/%E0%B9%80%E0%B8%A1%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%95%E0%B9%89%E0%B8%AD%E0%B8%87%E0%B8%97%E0%B8%B3%E0%B8%A7%E0%B8%B5%E0%B8%94%E0%B8%B5%E0%B8%97%E0%B8%B1%E0%B8%A8%E0%B8%99%E0%B9%8C%E0%B9%80%E0%B8%81%E0%B8%A9%E0%B8%B5%E0%B8%A2%E0%B8%93-%E0%B8%AB%E0%B8%A3%E0%B8%B7%E0%B8%AD%E0%B8%9B%E0%B8%A3%E0%B8%B0%E0%B9%80%E0%B8%A1%E0%B8%B4%E0%B8%99%E0%B8%9C%E0%B8%AD-eb7a8a766ba3?source=rss-debcee1dccb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb7a8a766ba3</guid>
            <dc:creator><![CDATA[Wongvian Wongkaso]]></dc:creator>
            <pubDate>Sun, 14 Sep 2025 13:58:26 GMT</pubDate>
            <atom:updated>2025-09-14T13:58:26.848Z</atom:updated>
            <content:encoded><![CDATA[<p>🧑‍🏫 เมื่อต้องทำวีดีทัศน์เกษียณ หรือประเมินผอ. และอยากได้ชุดปกติขาวเหมือนในสตูดิโอ สำหรับคุณครูผู้ชาย ครูกิ๊กจัดให้ค่ะ ปล. สามารถแนบภาพใส่ชุดอื่นๆได้เลยค่ะ 👇<br>.<br>.<br>#ขั้นตอนง่ายๆทำได้ด้วยตัวเองในมือถือเครื่องเดียว<br>1. ดาวน์โหลด app Gemini<br>2. กดที่คำว่า รูปภาพ 🍌<br>3. อัพโหลดภาพต้นฉบับ<br>4. คัดลอก Prompt ด้านล่างไม่ต้องแก้ไขค่ะ 👇✅<br>ภาพถ่ายพอร์ตเทรตผู้ชายไทย (หน้าตาและทรงผมเหมือนภาพที่แนบ 100%) สวม เครื่องแบบปกติขาวของข้าราชการไทย ครึ่งตัว ช่วงอกถึงศีรษะ ยืนตรง มองกล้อง สีหน้าเรียบ สุภาพ มืออยู่นอกเฟรม<br>รายละเอียดชุดและอินทรธนู: เสื้อขาวคอตั้งเรียบ เรียงกระดุมทองลายตราครุฑ 5 เม็ด เงาเงียบไม่สะท้อนแรง อินทรธนูสีทองลายไทยบนบ่าทั้งสองข้าง ขอบปักลายชัดเจน มีกลุ่ม แถบริบบิ้นเครื่องราชฯ เหนือกระเป๋าอกด้านขวา และ เข็มตราหน่วยงานราชการ 2 อัน เหนือกระเป๋าอกด้านซ้าย ระดับตำแหน่งถูกต้อง กระเป๋าอกคู่ทรงคม รีดเรียบไร้รอยยับ<br>โทนผิวและหน้าผม: โทนผิวไทยธรรมชาติ เก็บรายละเอียดรูขุมขนอย่างสมจริง ทรงผมสั้นเรียบร้อย ขอบผมเก็บเนียน<br>ฉากและแสง: ฉากหลัง สีน้ำเงิน–ฟ้าไล่เฉดแบบสตูดิโอเรียบ ไม่มีลาย แสงหลักซอฟต์บ็อกซ์ 45 องศา ด้านซ้าย เติมไฟด้านขวาอ่อน ๆ และริมไลต์บาง ๆ เพื่อคมแยกตัวจากฉาก เงานุ่ม สมดุลไวต์<br>สไตล์ภาพ: ไฮเปอร์เรียลลิสม์ รายละเอียดสูง แบบถ่ายสตูดิโอมืออาชีพ โฟกัสคมที่ดวงตา ผิวและผ้าขาวไม่โอเวอร์ไฮไลต์<br>กล้อง/เลนส์ (เสริมความเนียน): Canon EOS R5, เลนส์ 85mm f/1.8, f/2.2, DOF ตื้นพอประมาณ, ISO ต่ำ, ความละเอียด 4K–8K, สีธรรมชาติ</p><p>---</p><p>คำสั่งเชิงลบ (Negative Prompt)</p><p>ภาพเบลอ, ผ้าเป็นรอยยับ, ปักอินทรธนูเพี้ยน, กระดุมผิดตำแหน่ง, แถบริบบิ้นบิดงอหรือสีเพี้ยน, โลโก้/ตัวอักษรแปลกปลอม, ฉากหลังมีลาย, แสงจ้าจนเสื้อขาวหลุดรายละเอียด, ผิวโอเวอร์รีทัชหรือพลาสติก, นิ้วมือ/มือโผล่ผิดธรรมชาติ, สัดส่วนใบหน้าบิดเบี้ยว</p><p>#ครูกิ๊กจ้า #ครูกิ๊กจ้าพาใช้ai #กลุ่มสื่อครูกิ๊กจ้า</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb7a8a766ba3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[เมื่อเราต้องขึ้น Docker ใหม่เพื่อ Run mpdf]]></title>
            <link>https://wongvianwongkaso.medium.com/%E0%B9%80%E0%B8%A1%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B9%80%E0%B8%A3%E0%B8%B2%E0%B8%95%E0%B9%89%E0%B8%AD%E0%B8%87%E0%B8%82%E0%B8%B6%E0%B9%89%E0%B8%99-docker-%E0%B9%83%E0%B8%AB%E0%B8%A1%E0%B9%88%E0%B9%80%E0%B8%9E%E0%B8%B7%E0%B9%88%E0%B8%AD-run-mpdf-ad38cf2a51d7?source=rss-debcee1dccb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad38cf2a51d7</guid>
            <dc:creator><![CDATA[Wongvian Wongkaso]]></dc:creator>
            <pubDate>Thu, 28 Aug 2025 08:22:01 GMT</pubDate>
            <atom:updated>2025-08-28T08:22:01.758Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*aY8R-Rvs0yInpFonyD6qSw.png" /></figure><p>ใช้ คำสั่งนี้เพื่อ เข้าไป set perrmission ของ Folder</p><pre>docker exec -it b0f3 bash<br>root@b0f35828fd11:/var/www/html# chmod 777  tmp</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad38cf2a51d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[วิธีที่ง่ายสุดแล้วสำหรับการดึงข้อมูลจาก API มาแสดงผลในหน้าเว็บ]]></title>
            <link>https://wongvianwongkaso.medium.com/%E0%B8%A7%E0%B8%B4%E0%B8%98%E0%B8%B5%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%87%E0%B9%88%E0%B8%B2%E0%B8%A2%E0%B8%AA%E0%B8%B8%E0%B8%94%E0%B9%81%E0%B8%A5%E0%B9%89%E0%B8%A7%E0%B8%AA%E0%B8%B3%E0%B8%AB%E0%B8%A3%E0%B8%B1%E0%B8%9A%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%94%E0%B8%B6%E0%B8%87%E0%B8%82%E0%B9%89%E0%B8%AD%E0%B8%A1%E0%B8%B9%E0%B8%A5%E0%B8%88%E0%B8%B2%E0%B8%81-api-%E0%B8%A1%E0%B8%B2%E0%B9%81%E0%B8%AA%E0%B8%94%E0%B8%87%E0%B8%9C%E0%B8%A5%E0%B9%83%E0%B8%99%E0%B8%AB%E0%B8%99%E0%B9%89%E0%B8%B2%E0%B9%80%E0%B8%A7%E0%B9%87%E0%B8%9A-39b17a32a339?source=rss-debcee1dccb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/39b17a32a339</guid>
            <dc:creator><![CDATA[Wongvian Wongkaso]]></dc:creator>
            <pubDate>Sun, 24 Aug 2025 23:14:51 GMT</pubDate>
            <atom:updated>2025-08-25T04:12:05.642Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Py7-sgsibYHngWKh27kD4A.png" /></figure><p>ตัวอย่างต่อไปนี้เป็นการนำข้อมูลจาก Api มาแสดงผลตารางเรียน ของ ม.ราชภัฏสกลนคร ด้วยเทคโนโลยี html+javascript+bootstap+datatable</p><pre>&lt;!-- file name: index.html --&gt;<br>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;th&quot;&gt;<br>&lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot;&gt;<br>    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;<br>    &lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;upgrade-insecure-requests; default-src &#39;self&#39;; script-src &#39;self&#39; &#39;unsafe-inline&#39; &#39;unsafe-eval&#39; https://code.jquery.com https://cdn.jsdelivr.net https://cdn.datatables.net https://cdnjs.cloudflare.com; style-src &#39;self&#39; &#39;unsafe-inline&#39; https://cdn.jsdelivr.net https://cdn.datatables.net; connect-src &#39;self&#39; https://apiapp.snru.ac.th https://cdn.datatables.net; font-src &#39;self&#39; https://cdn.jsdelivr.net data:;&quot;&gt;<br>    &lt;title&gt;ค้นหารายวิชา SNRU&lt;/title&gt;<br><br>    &lt;link href=&quot;https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css&quot; rel=&quot;stylesheet&quot;&gt;<br><br>    &lt;link href=&quot;https://cdn.datatables.net/2.0.8/css/dataTables.bootstrap5.min.css&quot; rel=&quot;stylesheet&quot;&gt;<br><br>    &lt;style&gt;<br>        /* Optional: Custom Styles */<br>        body { padding-top: 1rem; }<br>    &lt;/style&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>    &lt;script src=&quot;https://code.jquery.com/jquery-3.7.1.min.js&quot;&gt;&lt;/script&gt;<br><br>    &lt;script src=&quot;https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js&quot;&gt;&lt;/script&gt;<br><br>    &lt;script src=&quot;https://cdn.datatables.net/2.0.8/js/dataTables.min.js&quot;&gt;&lt;/script&gt;<br>    &lt;script src=&quot;https://cdn.datatables.net/2.0.8/js/dataTables.bootstrap5.min.js&quot;&gt;&lt;/script&gt;<br>&lt;div class=&quot;container&quot;&gt;<br>    &lt;h1 class=&quot;mb-4&quot;&gt;ค้นหารายวิชา SNRU&lt;/h1&gt;<br><br>    &lt;form id=&quot;searchForm&quot; class=&quot;card card-body mb-4&quot;&gt;<br>        &lt;div class=&quot;row g-3 align-items-end&quot;&gt;<br>            &lt;div class=&quot;col-md&quot;&gt;<br>                &lt;label for=&quot;term&quot; class=&quot;form-label&quot;&gt;ภาคการศึกษา (เช่น 1/68)&lt;/label&gt;<br>                &lt;input type=&quot;text&quot; class=&quot;form-control&quot; id=&quot;term&quot; value=&quot;1/68&quot; required&gt;<br>            &lt;/div&gt;<br>            &lt;div class=&quot;col-md&quot;&gt;<br>                &lt;label for=&quot;stdtype&quot; class=&quot;form-label&quot;&gt;ประเภทนักศึกษา&lt;/label&gt;<br>                &lt;select id=&quot;stdtype&quot; class=&quot;form-select&quot; required&gt;<br>                    &lt;option value=&quot;1&quot; selected&gt;ป.ตรี ภาคปกติ&lt;/option&gt;<br>                    &lt;option value=&quot;2&quot;&gt;ภาคพิเศษ&lt;/option&gt;<br>                    &lt;/select&gt;<br>            &lt;/div&gt;<br>            &lt;div class=&quot;col-md-auto&quot;&gt;<br>                &lt;button type=&quot;submit&quot; class=&quot;btn btn-primary w-100&quot;&gt;<br>                    &lt;span id=&quot;searchSpinner&quot; class=&quot;spinner-border spinner-border-sm d-none&quot; role=&quot;status&quot; aria-hidden=&quot;true&quot;&gt;&lt;/span&gt;<br>                    ค้นหา<br>                &lt;/button&gt;<br>            &lt;/div&gt;<br>        &lt;/div&gt;<br>    &lt;/form&gt;<br><br>    &lt;div id=&quot;results&quot; class=&quot;d-none&quot;&gt;<br>        &lt;h3 class=&quot;mt-4&quot;&gt;ผลการค้นหา&lt;/h3&gt;<br>        &lt;table id=&quot;courseTable&quot; class=&quot;table table-striped table-bordered&quot; style=&quot;width:100%&quot;&gt;<br>            &lt;thead&gt;<br>                &lt;tr&gt;<br>                    &lt;th&gt;รหัสวิชา&lt;/th&gt;<br>                    &lt;th&gt;ชื่อวิชา&lt;/th&gt;<br>                    &lt;th&gt;กลุ่ม&lt;/th&gt;<br>                    &lt;th&gt;ผู้สอน&lt;/th&gt;<br>                    &lt;th&gt;วัน-เวลา&lt;/th&gt;<br>                    &lt;th&gt;ห้อง&lt;/th&gt;<br>                    &lt;th&gt;ดำเนินการ&lt;/th&gt;<br>                &lt;/tr&gt;<br>            &lt;/thead&gt;<br>            &lt;tbody&gt;<br>                &lt;/tbody&gt;<br>        &lt;/table&gt;<br>    &lt;/div&gt;<br>&lt;/div&gt;<br>    &lt;script src=&quot;app.js&quot;&gt;&lt;/script&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><pre>// file name: app.js<br>// Base URL ของ API (อาจจะดึงมาจาก config หรือ hardcode)<br>const API_BASE = &#39;https://apiapp.snru.ac.th&#39;;<br><br>$(document).ready(function() {<br>    const searchForm = $(&#39;#searchForm&#39;);<br>    const spinner = $(&#39;#searchSpinner&#39;);<br>    const resultsDiv = $(&#39;#results&#39;);<br><br>    // เริ่มต้น DataTables แต่ยังไม่มีข้อมูล<br>    const courseTable = $(&#39;#courseTable&#39;).DataTable({<br>        responsive: true,<br>        language: {<br>            url: &#39;https://cdn.datatables.net/plug-ins/2.0.8/i18n/th.json&#39;,<br>            // Fallback ถ้าโหลดไฟล์ภาษาไม่สำเร็จ<br>            processing: &quot;กำลังดำเนินการ...&quot;,<br>            search: &quot;ค้นหา:&quot;,<br>            lengthMenu: &quot;แสดง _MENU_ รายการต่อหน้า&quot;,<br>            info: &quot;แสดง _START_ ถึง _END_ จาก _TOTAL_ รายการ&quot;,<br>            infoEmpty: &quot;แสดง 0 ถึง 0 จาก 0 รายการ&quot;,<br>            zeroRecords: &quot;ไม่พบข้อมูล&quot;,<br>            emptyTable: &quot;ไม่มีข้อมูลในตาราง&quot;,<br>            paginate: {<br>                first: &quot;แรก&quot;,<br>                previous: &quot;ก่อนหน้า&quot;,<br>                next: &quot;ถัดไป&quot;,<br>                last: &quot;สุดท้าย&quot;<br>            }<br>        }<br>    });<br><br>    // เมื่อฟอร์มถูกส่ง<br>    searchForm.on(&#39;submit&#39;, async function(event) {<br>        event.preventDefault();<br>        <br>        const term = $(&#39;#term&#39;).val();<br>        const stdtype = $(&#39;#stdtype&#39;).val();<br>        <br>        spinner.removeClass(&#39;d-none&#39;); // แสดง spinner<br>        resultsDiv.addClass(&#39;d-none&#39;);   // ซ่อนตารางเก่า<br><br>        try {<br>            const response = await fetch(`${API_BASE}/course_open`, {<br>                method: &#39;POST&#39;,<br>                headers: { &#39;Content-Type&#39;: &#39;application/json&#39; },<br>                body: JSON.stringify({ term: term, std_type: stdtype }) // ส่งเป็น JSON body<br>            });<br><br>            if (!response.ok) {<br>                throw new Error(`HTTP error! status: ${response.status}`);<br>            }<br><br>            const courses = await response.json();<br><br>            // ล้างข้อมูลเก่าและเพิ่มข้อมูลใหม่<br>            courseTable.clear();<br>            courseTable.rows.add(courses.map(course =&gt; [<br>                course.COURSE_ID,<br>                course.NAME_T,<br>                course.SECTION,<br>                course.TNAME || &#39;N/A&#39;,<br>                `${course.TIME_T}`,<br>                course.ROOM1,<br>                // สร้างปุ่ม &quot;รายละเอียด&quot;<br>                `&lt;a href=&quot;details.html?courseid=${course.COURSE_ID}&amp;section=${course.SECTION}&amp;term=${encodeURIComponent(term)}&amp;stdtype=${stdtype}&quot; class=&quot;btn btn-info btn-sm&quot;&gt;รายละเอียด&lt;/a&gt;`<br>            ])).draw();<br>            <br>            resultsDiv.removeClass(&#39;d-none&#39;); // แสดงตาราง<br><br>        } catch (error) {<br>            console.error(&#39;Fetch Error:&#39;, error);<br>            alert(&#39;ไม่สามารถดึงข้อมูลได้ โปรดลองอีกครั้ง&#39;);<br>        } finally {<br>            spinner.addClass(&#39;d-none&#39;); // ซ่อน spinner<br>        }<br>    });<br>});</pre><pre>&lt;!-- File name: details.html --&gt;<br>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;th&quot;&gt;<br>&lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot;&gt;<br>    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;<br>    &lt;meta http-equiv=&quot;Content-Security-Policy&quot; content=&quot;upgrade-insecure-requests; default-src &#39;self&#39;; script-src &#39;self&#39; &#39;unsafe-inline&#39; &#39;unsafe-eval&#39; https://code.jquery.com https://cdn.jsdelivr.net https://cdn.datatables.net https://cdnjs.cloudflare.com; style-src &#39;self&#39; &#39;unsafe-inline&#39; https://cdn.jsdelivr.net https://cdn.datatables.net; connect-src &#39;self&#39; https://apiapp.snru.ac.th https://cdn.datatables.net; font-src &#39;self&#39; https://cdn.jsdelivr.net data:;&quot;&gt;<br>    &lt;title&gt;ค้นหารายวิชา SNRU&lt;/title&gt;<br><br>    &lt;link href=&quot;https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css&quot; rel=&quot;stylesheet&quot;&gt;<br><br>    &lt;link href=&quot;https://cdn.datatables.net/2.0.8/css/dataTables.bootstrap5.min.css&quot; rel=&quot;stylesheet&quot;&gt;<br><br>    &lt;style&gt;<br>        /* Optional: Custom Styles */<br>        body { padding-top: 1rem; }<br>    &lt;/style&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>    &lt;script src=&quot;https://code.jquery.com/jquery-3.7.1.min.js&quot;&gt;&lt;/script&gt;<br><br>    &lt;script src=&quot;https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js&quot;&gt;&lt;/script&gt;<br><br>    &lt;script src=&quot;https://cdn.datatables.net/2.0.8/js/dataTables.min.js&quot;&gt;&lt;/script&gt;<br>    &lt;script src=&quot;https://cdn.datatables.net/2.0.8/js/dataTables.bootstrap5.min.js&quot;&gt;&lt;/script&gt;<br>&lt;div class=&quot;container&quot;&gt;<br>    &lt;!-- Navigation Bar --&gt;<br>    &lt;nav class=&quot;navbar navbar-light bg-light mb-4 rounded&quot;&gt;<br>        &lt;div class=&quot;container-fluid&quot;&gt;<br>            &lt;a class=&quot;btn btn-outline-secondary&quot; href=&quot;index.html&quot;&gt;<br>                &lt;i class=&quot;bi bi-arrow-left&quot;&gt;&lt;/i&gt; กลับไปหน้าหลัก<br>            &lt;/a&gt;<br>            &lt;span class=&quot;navbar-text&quot;&gt;<br>                รายละเอียดรายวิชา<br>            &lt;/span&gt;<br>        &lt;/div&gt;<br>    &lt;/nav&gt;<br><br>    &lt;!-- Loading State --&gt;<br>    &lt;div id=&quot;loading&quot; class=&quot;text-center mt-5&quot;&gt;<br>        &lt;div class=&quot;spinner-border text-primary&quot; role=&quot;status&quot;&gt;<br>            &lt;span class=&quot;visually-hidden&quot;&gt;Loading...&lt;/span&gt;<br>        &lt;/div&gt;<br>        &lt;p class=&quot;mt-3 text-muted&quot;&gt;กำลังโหลดข้อมูลรายวิชา...&lt;/p&gt;<br>    &lt;/div&gt;<br><br>    &lt;!-- Error State --&gt;<br>    &lt;div id=&quot;errorState&quot; class=&quot;d-none&quot;&gt;<br>        &lt;div class=&quot;alert alert-danger&quot; role=&quot;alert&quot;&gt;<br>            &lt;h4 class=&quot;alert-heading&quot;&gt;เกิดข้อผิดพลาด!&lt;/h4&gt;<br>            &lt;p id=&quot;errorMessage&quot;&gt;ไม่สามารถโหลดข้อมูลได้&lt;/p&gt;<br>            &lt;hr&gt;<br>            &lt;p class=&quot;mb-0&quot;&gt;<br>                &lt;a href=&quot;index.html&quot; class=&quot;btn btn-outline-danger&quot;&gt;กลับไปหน้าหลัก&lt;/a&gt;<br>                &lt;button id=&quot;retryBtn&quot; class=&quot;btn btn-danger ms-2&quot;&gt;ลองใหม่&lt;/button&gt;<br>            &lt;/p&gt;<br>        &lt;/div&gt;<br>    &lt;/div&gt;<br><br>    &lt;!-- Course Details Content --&gt;<br>    &lt;div id=&quot;courseDetails&quot; class=&quot;d-none&quot;&gt;<br>        &lt;!-- Course Header --&gt;<br>        &lt;div class=&quot;card mb-4&quot;&gt;<br>            &lt;div class=&quot;card-header bg-primary text-white&quot;&gt;<br>                &lt;h2 class=&quot;mb-0&quot; id=&quot;courseName&quot;&gt;กำลังโหลด...&lt;/h2&gt;<br>            &lt;/div&gt;<br>            &lt;div class=&quot;card-body&quot;&gt;<br>                &lt;div class=&quot;row&quot;&gt;<br>                    &lt;div class=&quot;col-md-6&quot;&gt;<br>                        &lt;p class=&quot;mb-2&quot;&gt;&lt;strong&gt;รหัสวิชา:&lt;/strong&gt; &lt;span id=&quot;courseId&quot; class=&quot;badge bg-secondary&quot;&gt;-&lt;/span&gt;&lt;/p&gt;<br>                        &lt;p class=&quot;mb-2&quot;&gt;&lt;strong&gt;กลุ่ม:&lt;/strong&gt; &lt;span id=&quot;section&quot; class=&quot;badge bg-info&quot;&gt;-&lt;/span&gt;&lt;/p&gt;<br>                    &lt;/div&gt;<br>                    &lt;div class=&quot;col-md-6&quot;&gt;<br>                        &lt;p class=&quot;mb-2&quot;&gt;&lt;strong&gt;ภาคการศึกษา:&lt;/strong&gt; &lt;span id=&quot;termDisplay&quot; class=&quot;badge bg-success&quot;&gt;-&lt;/span&gt;&lt;/p&gt;<br>                        &lt;p class=&quot;mb-2&quot;&gt;&lt;strong&gt;ประเภทนักศึกษา:&lt;/strong&gt; &lt;span id=&quot;stdTypeDisplay&quot; class=&quot;badge bg-warning&quot;&gt;-&lt;/span&gt;&lt;/p&gt;<br>                    &lt;/div&gt;<br>                &lt;/div&gt;<br>            &lt;/div&gt;<br>        &lt;/div&gt;<br><br>        &lt;!-- Course Information --&gt;<br>        &lt;div class=&quot;card mb-4&quot;&gt;<br>            &lt;div class=&quot;card-header&quot;&gt;<br>                &lt;h4 class=&quot;mb-0&quot;&gt;ข้อมูลรายวิชา&lt;/h4&gt;<br>            &lt;/div&gt;<br>            &lt;div class=&quot;card-body&quot;&gt;<br>                &lt;div id=&quot;courseInfo&quot; class=&quot;row&quot;&gt;<br>                    &lt;!-- Course info will be populated here --&gt;<br>                &lt;/div&gt;<br>            &lt;/div&gt;<br>        &lt;/div&gt;<br><br>        &lt;!-- Student List --&gt;<br>        &lt;div class=&quot;card&quot;&gt;<br>            &lt;div class=&quot;card-header d-flex justify-content-between align-items-center&quot;&gt;<br>                &lt;h4 class=&quot;mb-0&quot;&gt;รายชื่อผู้ลงทะเบียน&lt;/h4&gt;<br>                &lt;span id=&quot;studentCount&quot; class=&quot;badge bg-primary&quot;&gt;0 คน&lt;/span&gt;<br>            &lt;/div&gt;<br>            &lt;div class=&quot;card-body&quot;&gt;<br>                &lt;div id=&quot;studentList&quot;&gt;<br>                    &lt;!-- Student list will be populated here --&gt;<br>                &lt;/div&gt;<br>            &lt;/div&gt;<br>        &lt;/div&gt;<br>    &lt;/div&gt;<br>&lt;/div&gt;<br>&lt;script src=&quot;details.js&quot;&gt;&lt;/script&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><pre>// file name: details.js<br>const API_BASE = &#39;https://apiapp.snru.ac.th&#39;;<br><br>/* ================================<br>   Utility Functions<br>================================ */<br><br>// แปลงรหัสประเภทนักศึกษาเป็นชื่อภาษาไทย<br>function getStudentTypeDisplayName(stdtype) {<br>    const typeMap = {<br>        &#39;1&#39;: &#39;ป.ตรี ภาคปกติ&#39;,<br>        &#39;2&#39;: &#39;ป.ตรี ภาคพิเศษ&#39;,<br>        &#39;3&#39;: &#39;ป.โท&#39;,<br>        &#39;4&#39;: &#39;ป.เอก&#39;<br>    };<br>    return typeMap[String(stdtype)] ?? `ประเภท ${stdtype}`;<br>}<br><br>// แสดง/ซ่อนสถานะ<br>function setVisibility({ loading = false, details = false, error = false }) {<br>    document.getElementById(&#39;loading&#39;).classList.toggle(&#39;d-none&#39;, !loading);<br>    document.getElementById(&#39;courseDetails&#39;).classList.toggle(&#39;d-none&#39;, !details);<br>    document.getElementById(&#39;errorState&#39;).classList.toggle(&#39;d-none&#39;, !error);<br>}<br><br>// แสดงข้อความผิดพลาด<br>function showError(message) {<br>    document.getElementById(&#39;errorMessage&#39;).textContent = message;<br>    setVisibility({ error: true });<br>}<br><br>/* ================================<br>   Rendering Functions<br>================================ */<br><br>// สร้างตารางรายชื่อนักศึกษา<br>function createStudentTable(students = []) {<br>    if (students.length === 0) {<br>        return `<br>            &lt;div class=&quot;alert alert-info&quot;&gt;<br>                &lt;i class=&quot;bi bi-info-circle&quot;&gt;&lt;/i&gt; ไม่มีข้อมูลนักศึกษาที่ลงทะเบียน<br>            &lt;/div&gt;`;<br>    }<br><br>    const rows = students.map((s, i) =&gt; {<br>        const id = s.STUDENT_ID ?? s.STD_ID ?? &#39;ไม่ระบุ&#39;;<br>        const name = s.STD_NAME ?? s.STUDENT_NAME ?? &#39;ไม่ระบุชื่อ&#39;;<br>        return `<br>            &lt;tr&gt;<br>                &lt;td&gt;${i + 1}&lt;/td&gt;<br>                &lt;td&gt;&lt;span class=&quot;badge bg-secondary&quot;&gt;${id}&lt;/span&gt;&lt;/td&gt;<br>                &lt;td&gt;${name}&lt;/td&gt;<br>            &lt;/tr&gt;`;<br>    }).join(&#39;&#39;);<br><br>    return `<br>        &lt;div class=&quot;table-responsive&quot;&gt;<br>            &lt;table class=&quot;table table-striped table-hover&quot;&gt;<br>                &lt;thead class=&quot;table-dark&quot;&gt;<br>                    &lt;tr&gt;<br>                        &lt;th&gt;#&lt;/th&gt;<br>                        &lt;th&gt;รหัสนักศึกษา&lt;/th&gt;<br>                        &lt;th&gt;ชื่อ-นามสกุล&lt;/th&gt;<br>                    &lt;/tr&gt;<br>                &lt;/thead&gt;<br>                &lt;tbody&gt;${rows}&lt;/tbody&gt;<br>            &lt;/table&gt;<br>        &lt;/div&gt;`;<br>}<br><br>// แสดงข้อมูลรายวิชาเพิ่มเติม<br>function renderCourseInfo(course) {<br>    document.getElementById(&#39;courseInfo&#39;).innerHTML = `<br>        &lt;div class=&quot;col-md-6&quot;&gt;<br>            &lt;p&gt;&lt;strong&gt;ผู้สอน:&lt;/strong&gt; ${course?.TNAME ?? &#39;ไม่ระบุ&#39;}&lt;/p&gt;<br>            &lt;p&gt;&lt;strong&gt;จำนวนหน่วยกิต:&lt;/strong&gt; ${course?.CREDIT ?? &#39;ไม่ระบุ&#39;}&lt;/p&gt;<br>        &lt;/div&gt;<br>        &lt;div class=&quot;col-md-6&quot;&gt;<br>            &lt;p&gt;&lt;strong&gt;วัน-เวลา:&lt;/strong&gt; ${course?.TIME_T ?? &#39;ไม่ระบุ&#39;}&lt;/p&gt;<br>            &lt;p&gt;&lt;strong&gt;ห้องเรียน:&lt;/strong&gt; ${course?.ROOM1 ?? &#39;ไม่ระบุ&#39;}&lt;/p&gt;<br>        &lt;/div&gt;`;<br>}<br><br>/* ================================<br>   Data Fetching<br>================================ */<br><br>// async function fetchCourseDetails(courseid, section, term, stdtype) {<br>async function fetchCourseDetails(courseid, section, term, stdtype) {<br>    const url = `${API_BASE}/std_in_course/${courseid}/${section}/${encodeURIComponent(term)}/${stdtype}`;<br>    console.log(&quot;Fetching:&quot;, url);<br><br>    const response = await fetch(url);<br>    if (!response.ok) throw new Error(`HTTP ${response.status}`);<br><br>    const data = await response.json();<br>    if (!data || (Array.isArray(data) &amp;&amp; data.length === 0)) {<br>        throw new Error(&quot;ไม่พบข้อมูลรายวิชานี้&quot;);<br>    }<br><br>    return Array.isArray(data) ? data : [data];<br>}<br><br>/* ================================<br>   Main Function<br>================================ */<br><br>async function loadCourseDetails(courseid, section, term, stdtype) {<br>    try {<br>        setVisibility({ loading: true });<br><br>        const courseData = await fetchCourseDetails(courseid, section, term, stdtype);<br>        const course = courseData[0];<br><br>        // Header รายวิชา<br>        document.getElementById(&#39;courseName&#39;).textContent = course?.NAME_T ?? `รายวิชา ${courseid}`;<br>        document.getElementById(&#39;courseId&#39;).textContent = courseid;<br>        document.getElementById(&#39;section&#39;).textContent = section;<br>        document.getElementById(&#39;termDisplay&#39;).textContent = term;<br>        document.getElementById(&#39;stdTypeDisplay&#39;).textContent = getStudentTypeDisplayName(stdtype);<br><br>        // รายละเอียดรายวิชา<br>        renderCourseInfo(course);<br><br>        // จำนวนนักศึกษา<br>        document.getElementById(&#39;studentCount&#39;).textContent = `${courseData.length} คน`;<br><br>        // ตารางนักศึกษา<br>        document.getElementById(&#39;studentList&#39;).innerHTML = createStudentTable(courseData);<br><br>        setVisibility({ details: true });<br><br>    } catch (error) {<br>        console.error(&#39;เกิดข้อผิดพลาด:&#39;, error);<br><br>        let msg = &#39;ไม่สามารถโหลดข้อมูลรายวิชาได้&#39;;<br>        if (/Failed to fetch|NetworkError/.test(error.message)) {<br>            msg = &#39;ไม่สามารถเชื่อมต่อกับเซิร์ฟเวอร์ได้ โปรดตรวจสอบการเชื่อมต่ออินเทอร์เน็ต&#39;;<br>        } else if (error.message) {<br>            msg = error.message;<br>        }<br><br>        showError(msg);<br>    }<br>}<br><br>/* ================================<br>   Bootstrap<br>================================ */<br><br>document.addEventListener(&#39;DOMContentLoaded&#39;, () =&gt; {<br>    const params = new URLSearchParams(window.location.search);<br>    const courseid = params.get(&#39;courseid&#39;);<br>    const section  = params.get(&#39;section&#39;);<br>    const term     = params.get(&#39;term&#39;);<br>    const stdtype  = params.get(&#39;stdtype&#39;);<br><br>    console.log(&#39;URL Parameters:&#39;, { courseid, section, term, stdtype });<br><br>    if (!courseid || !section || !term || !stdtype) {<br>        showError(&#39;ข้อมูลไม่ครบถ้วน โปรดลองค้นหารายวิชาใหม่อีกครั้ง&#39;);<br>        return;<br>    }<br><br>    // ปุ่มลองใหม่<br>    document.getElementById(&#39;retryBtn&#39;).addEventListener(&#39;click&#39;, () =&gt; {<br>        loadCourseDetails(courseid, section, term, stdtype);<br>    });<br><br>    // โหลดข้อมูลครั้งแรก<br>    loadCourseDetails(courseid, section, term, stdtype);<br>});</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39b17a32a339" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI ที่ทำงานคล้าย Gemini CLI (Google AI บน Terminal]]></title>
            <link>https://wongvianwongkaso.medium.com/ai-%E0%B8%97%E0%B8%B5%E0%B9%88%E0%B8%97%E0%B8%B3%E0%B8%87%E0%B8%B2%E0%B8%99%E0%B8%84%E0%B8%A5%E0%B9%89%E0%B8%B2%E0%B8%A2-gemini-cli-google-ai-%E0%B8%9A%E0%B8%99-terminal-4a2f7dac0948?source=rss-debcee1dccb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a2f7dac0948</guid>
            <dc:creator><![CDATA[Wongvian Wongkaso]]></dc:creator>
            <pubDate>Sun, 03 Aug 2025 12:45:17 GMT</pubDate>
            <atom:updated>2025-08-03T12:45:17.374Z</atom:updated>
            <content:encoded><![CDATA[<p>ถ้าหมายถึง <strong>AI ที่ทำงานคล้าย Gemini CLI (Google AI บน Terminal หรือ VSCode)</strong> และ <strong>ฟรี</strong> (หรืออย่างน้อยมี Free Tier) บน VSCode ปัจจุบันมีหลายตัวเลือกที่สามารถทำงานได้ใกล้เคียงกัน เช่น</p><h3>1. Codeium (ฟรีจริง ๆ)</h3><ul><li><strong>คุณสมบัติ</strong>: Autocomplete, Code Chat, Code Explain, Refactor คล้าย Copilot</li><li><strong>ใช้งาน</strong>:</li><li>ติดตั้ง Extension: <strong>Codeium</strong> จาก VSCode Marketplace</li><li>ฟรีตลอด ไม่จำกัด (เน้นการเขียนโค้ด)</li><li><strong>เว็บไซต์</strong>: <a href="https://codeium.com/">https://codeium.com</a></li><li><strong>จุดเด่น</strong>:</li><li>ไม่มีการจำกัด Token เหมือน AI ใหญ่ ๆ</li><li>รองรับหลายภาษา</li><li><strong>ข้อสังเกต</strong>: ไม่มีความสามารถ General AI มากเท่า Gemini แต่เก่งเรื่องโค้ด</li></ul><h3>2. Continue (Open Source) + โมเดล OpenAI / HuggingFace / Local LLM</h3><ul><li><strong>คุณสมบัติ</strong>: ทำงานคล้าย Gemini CLI, Copilot Chat แต่คุณเลือก AI เองได้</li><li><strong>ใช้งาน</strong>:</li><li>ติดตั้ง Extension: <strong>Continue</strong> จาก VSCode</li><li>ต่อเข้ากับ:</li><li>OpenAI (มี Free Tier ถ้าใช้ API Key แบบฟรีช่วงทดลอง)</li><li>HuggingFace (เลือกโมเดลฟรี)</li><li>Local Model (เช่น <strong>Ollama</strong> หรือ <strong>LLaMA2</strong>)</li><li><strong>เว็บไซต์</strong>: <a href="https://continue.dev/">https://continue.dev</a></li><li><strong>จุดเด่น</strong>:</li><li>Open Source, ไม่ต้องผูกกับบริษัทใดบริษัทหนึ่ง</li><li>รองรับ Local LLM = ใช้งานฟรีจริง (แต่ต้องมีสเปคเครื่องดีหน่อย)</li></ul><h3>3. Cline (ใหม่, ฟรี, Open Source)</h3><ul><li><strong>คุณสมบัติ</strong>: เน้น Chat, Refactor, Run Script คล้าย Gemini CLI</li><li><strong>ใช้งาน</strong>:</li><li>ติดตั้ง <strong>Cline</strong> extension บน VSCode</li><li>ต่อ AI เอง (Ollama, OpenAI, Anthropic ฯลฯ)</li><li><strong>เว็บไซต์</strong>: <a href="https://cline.bot/">https://cline.bot</a></li><li><strong>จุดเด่น</strong>:</li><li>ออกแบบมาให้ใช้ AI แบบ Local หรือ Free API ได้</li><li>Interface ใช้ง่ายคล้าย Gemini CLI</li></ul><h3>4. Tabby (Self-hosted)</h3><ul><li><strong>คุณสมบัติ</strong>: AI Code Completion แบบ Local</li><li><strong>ใช้งาน</strong>:</li><li>ติดตั้ง <strong>Tabby VSCode Extension</strong></li><li>รัน Tabby server ในเครื่อง (ฟรี Open Source)</li><li><strong>เว็บไซต์</strong>: <a href="https://tabbyml.github.io/tabby/">https://tabbyml.github.io/tabby/</a></li><li><strong>จุดเด่น</strong>: ใช้แบบ offline ได้, ฟรี, ไม่มีข้อมูลหลุด</li></ul><h3>5. Zed Editor (ถ้าเปิดใจเปลี่ยนจาก VSCode)</h3><ul><li>ไม่ใช่ VSCode แต่เป็น Editor + AI ฟรีในตัว (ใช้โมเดล OpenAI Free Tier ช่วงแรก)</li></ul><h3>แนะนำสำหรับคนที่ชอบ Gemini CLI Style (Command + Chat + Code)</h3><ul><li><strong>Continue + Ollama</strong> → ทำงานแบบ local + ฟรี</li><li>ถ้าเน้นแค่ <strong>เขียนโค้ดอัตโนมัติ</strong> → <strong>Codeium</strong> ดีสุดตอนนี้</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a2f7dac0948" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Auto Number]]></title>
            <link>https://wongvianwongkaso.medium.com/auto-number-7cbcddade863?source=rss-debcee1dccb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/7cbcddade863</guid>
            <dc:creator><![CDATA[Wongvian Wongkaso]]></dc:creator>
            <pubDate>Thu, 31 Jul 2025 22:16:48 GMT</pubDate>
            <atom:updated>2025-07-31T22:16:48.806Z</atom:updated>
            <content:encoded><![CDATA[<h3>Auto Number In Oracle</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*CvP00falX9L4TV3b7bwd8g.png" /></figure><p><strong>นี่คือคำสั่ง </strong><strong>CREATE TABLE ที่แก้ไขแล้วสำหรับ Oracle 11g พร้อมคำสั่งสำหรับ </strong><strong>SEQUENCE และ </strong><strong>TRIGGER ครับ:</strong></p><p>SQL</p><pre>-- 1. สร้างตาราง SNRU_SUPPORT_TICKETS<br>CREATE TABLE SNRU_SUPPORT_TICKETS (<br>    ID NUMBER PRIMARY KEY, -- ID จะถูกกำหนดค่าด้วย SEQUENCE และ TRIGGER<br>    TICKET_ID VARCHAR2(255) NOT NULL UNIQUE,<br>    FULL_NAME VARCHAR2(255) NOT NULL,<br>    CONTACT_EMAIL VARCHAR2(255) NOT NULL,<br>    PROBLEM_DESCRIPTION CLOB NOT NULL,<br>    STATUS VARCHAR2(50) DEFAULT &#39;NEW&#39; NOT NULL, -- ต้องระบุค่า DEFAULT ให้ชัดเจน<br>    ADMIN_NOTES CLOB,<br>    CREATED_AT TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL<br>);</pre><pre>-- 2. สร้าง SEQUENCE สำหรับคอลัมน์ ID (เพื่อสร้างค่าเพิ่มอัตโนมัติ)<br>CREATE SEQUENCE SNRU_SUPPORT_TICKETS_SEQ<br>START WITH 1<br>INCREMENT BY 1<br>NOCACHE<br>NOCYCLE;</pre><pre>-- 3. สร้าง TRIGGER เพื่อกำหนดค่า ID อัตโนมัติก่อนการ INSERT<br>CREATE OR REPLACE TRIGGER SNRU_SUPPORT_TICKETS_BI<br>BEFORE INSERT ON SNRU_SUPPORT_TICKETS<br>FOR EACH ROW<br>BEGIN<br>    :NEW.ID := SNRU_SUPPORT_TICKETS_SEQ.NEXTVAL;<br>END;<br>/</pre><p><strong>คำอธิบาย:</strong></p><ul><li><strong>STATUS VARCHAR2(50) DEFAULT &#39;NEW&#39; NOT NULL</strong>: เพิ่มค่า &#39;NEW&#39; เป็นค่าเริ่มต้นสำหรับคอลัมน์ STATUS (คุณสามารถเปลี่ยนเป็นค่าสถานะเริ่มต้นที่คุณต้องการได้)</li><li><strong>CREATE SEQUENCE SNRU_SUPPORT_TICKETS_SEQ ...</strong>: สร้าง Sequence เพื่อสร้างตัวเลขที่ไม่ซ้ำกันทีละ 1</li><li><strong>CREATE OR REPLACE TRIGGER SNRU_SUPPORT_TICKETS_BI ...</strong>: สร้าง Trigger ที่จะทำงาน <strong>ก่อน</strong> การ INSERT ข้อมูลใหม่เข้าตาราง SNRU_SUPPORT_TICKETS โดย Trigger นี้จะนำค่าถัดไปจาก SNRU_SUPPORT_TICKETS_SEQ มาใส่ในคอลัมน์ ID ของแถวใหม่โดยอัตโนมัติ (:NEW.ID := SNRU_SUPPORT_TICKETS_SEQ.NEXTVAL;)</li></ul><p>คุณสามารถรันคำสั่งทั้งสามส่วนนี้ตามลำดับ (CREATE TABLE -&gt; CREATE SEQUENCE -&gt; CREATE TRIGGER) ได้เลยครับ</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7cbcddade863" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[การสร้างคลิปสั้นด้วย n8n+nca-toolkit]]></title>
            <link>https://wongvianwongkaso.medium.com/%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%AA%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%87%E0%B8%84%E0%B8%A5%E0%B8%B4%E0%B8%9B%E0%B8%AA%E0%B8%B1%E0%B9%89%E0%B8%99%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-n8n-nca-toolkit-f38f17766ddf?source=rss-debcee1dccb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/f38f17766ddf</guid>
            <dc:creator><![CDATA[Wongvian Wongkaso]]></dc:creator>
            <pubDate>Fri, 11 Jul 2025 15:01:45 GMT</pubDate>
            <atom:updated>2025-07-11T15:03:57.516Z</atom:updated>
            <content:encoded><![CDATA[<p>ปกติแล้วในการทำคลิปสั้น เราจะต้องไปถ่ายคลิปมาแล้วตัดต่อ หรือใช้ Ai เพื่อสร้างคลิปนั้นมาแล้วก็ตัดต่อ แต่วันนี้ด้วยความก้าวหน้าในวงการคอมพิวเตอร์ ก็มีระบบอัตโนมัติต่างๆ มาช่วยในการทำงานตรงนี้ได้ เดี่ยวผู้เขียนจะแนะนำแนวทางให้ว่าเข้าทำกันอย่างไร</p><p>เริ่มต้นเลยเครื่องที่ผู้เขียนใช้งานคือ</p><p>Mac M1 รุ่นแรกๆ แรม 16G HDD 256</p><p>โปรแกรมที่ต้องติดตั้งคือ Docker ซึ่ง Docker เป็นโปรแกรมจำลองเครื่องคอมพิวเตอร์ที่เรามีอยู่ให้ทำงานได้เหมือนเรามีคอมพิวเตอร์หลายๆ เครื่องที่งานพร้อมกัน <a href="https://www.docker.com/get-started/">https://www.docker.com/get-started/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*_rN-CSVZQ6n9bL6Z.png" /></figure><p>Download Docker เพื่อติดตั้งในเครื่อง Mac</p><p>หลังจากที่เรามี Docker ในเครื่องแล้ว เพื่อความง่ายเข้าไปอีกขั้นของการทำงาน เราก็ติดตั้ง Vs code ไปด้วยเลย เพื่อเอาไว้แก้ไขชุดคำสั่งบางอย่างหรือรันคำสั่งของ Docker ลิงก์สำหรับติดตั้ง Vs Coce <a href="https://code.visualstudio.com/">https://code.visualstudio.com/</a></p><p>เมื่อทุกคนติดตั้ง Docker และ Vs Code เรียบร้อยแล้วก็พักก่อนแป็บ แล้วสูดลมหายใจเข้าลึกๆ ให้สุดใจ…</p><p>อ่าเริ่ม…</p><p>ขั้นตอนต่อมาเราเตรียม ไฟล์ Docker Compose ไฟล์ จำนวน 2 ไฟล์ก่อนแยกกันไว้คนละ Folder หากมีใครเขาถามว่า Docker compose คืออิหยังว่ะ ก็ให้ตอบเข้าไปว่า Docker Compose มันคือชุดคำสั่งสำหรับทำให้โปรแกรมของเราทำงานตามที่เราต้องการแบบไม่ผิดหวัง ได้ของทุกอย่างมาแบบครบถ้วนกระบวนท่า</p><ol><li>Docker Compose แรก เป็น ชุดคำสั่งสำหรับติดตั้ง MINIO Object Store for AI เอาง่านๆ คือ MinIO เปรียบเสมือนพื้นที่สำหรับการจัดเก็บไฟล์ต่างที่เราจะใช้ทำงานนั้นแหละ</li></ol><p>ตั้งชื่อไฟล์ว่า ai-short-reel/minio/docker-compose.yml</p><pre>version: &#39;3.8&#39;<br>services:<br>  minio:<br>    image: minio/minio:latest<br>    container_name: minio<br>    ports:<br>      - &quot;9000:9000&quot;<br>      - &quot;9001:9001&quot;<br>    environment:<br>      MINIO_ROOT_USER: admin<br>      MINIO_ROOT_PASSWORD: password123<br>    volumes:<br>      - minio-data:/data<br>    command: server /data --console-address &quot;:9001&quot;<br>minio-setup:<br>    image: minio/mc:latest<br>    depends_on:<br>      - minio<br>    entrypoint: &gt;<br>      /bin/sh -c &quot;<br>      sleep 10;<br>      mc alias set local http://host.docker.internal:9000 admin password123;<br>      mc mb local/bed-time-stories --ignore-existing;<br>      mc mb local/nca-toolkit --ignore-existing;<br>      mc anonymous set public local/bed-time-stories;<br>      mc anonymous set public local/nca-toolkit;<br>      mc admin user svcacct add local admin --access-key bedtime-key --secret-key bedtime-secret123;<br>      mc admin user svcacct add local admin --access-key nca-key --secret-key nca-secret123;<br>      echo &#39;Setup complete!&#39;;<br>      &quot;<br>volumes:<br>  minio-data:</pre><p>2.Docker Compose ที่ 2 เป็น Docker Compose สำหรับรัน n8n ซึ่งเจ้า n8n มีหน้าที่สำหรับสร้าง ระบบอัตโนมัติ ต่างๆ ตามที่เราต้องการ</p><p>ตั้งชื่อไฟล์ที่ 2 นี้ ว่า ai-short-reel/n8n/docker-compose.yml</p><pre>version: &quot;3.8&quot;<br>services:<br>  postgres:<br>    image: postgres:15<br>    restart: always<br>    environment:<br>      POSTGRES_USER: n8n<br>      POSTGRES_PASSWORD: n8n<br>      POSTGRES_DB: n8n<br>    volumes:<br>      - n8n_postgres_data:/var/lib/postgresql/data<br>  qdrant:<br>    image: qdrant/qdrant:v1.9.1<br>    ports:<br>      - &quot;6333:6333&quot;<br>    volumes:<br>      - qdrant_data:/qdrant/storage<br>  ollama:<br>    image: ollama/ollama:latest<br>    ports:<br>      - &quot;11434:11434&quot;<br>    volumes:<br>      - ollama_data:/root/.ollama<br>    # You can preload the Llama3 model automatically:<br>    entrypoint: &gt;<br>      bash -c &quot;<br>      ollama serve &amp;<br>      sleep 5 &amp;&amp;<br>      ollama pull llama3 &amp;&amp;<br>      tail -f /dev/null<br>      &quot;<br>  n8n:<br>    image: n8nio/n8n:latest<br>    restart: always<br>    ports:<br>      - &quot;5678:5678&quot;<br>    environment:<br>      - DB_TYPE=postgresdb<br>      - DB_POSTGRESDB_HOST=postgres<br>      - DB_POSTGRESDB_PORT=5432<br>      - DB_POSTGRESDB_DATABASE=n8n<br>      - DB_POSTGRESDB_USER=n8n<br>      - DB_POSTGRESDB_PASSWORD=n8n<br>      - N8N_BASIC_AUTH_ACTIVE=true<br>      - N8N_BASIC_AUTH_USER=admin<br>      - N8N_BASIC_AUTH_PASSWORD=admin<br>      - N8N_HOST=localhost<br>      - N8N_PORT=5678<br>      - N8N_PROTOCOL=http<br>      - GENERIC_TIMEZONE=Etc/UTC<br>    volumes:<br>      - n8n_data:/home/node/.n8n<br>    depends_on:<br>      - postgres<br>      - qdrant<br>      - ollama<br>volumes:<br>  n8n_postgres_data:<br>  qdrant_data:<br>  ollama_data:<br>  n8n_data:</pre><p>3. ชุดคำสั้งสำหรับรัน nca-toolkit</p><pre>docker run --platform=linux/amd64 -d -p 8080:8080 --name nca-toolkit -e API_KEY=&quot;thekey&quot; -e S3_ENDPOINT_URL=&quot;http://host.docker.internal:9000&quot; -e S3_ACCESS_KEY=&quot;nca-key&quot; -e S3_SECRET_KEY=&quot;nca-secret123&quot; -e S3_BUCKET_NAME=&quot;nca-toolkit&quot; -e S3_REGION=&quot;None&quot; stephengpope/no-code-architects-toolkit:latestเมื่อเตรียมชุดสั่งต่างๆ เรียบร้อยแล้วก็เริ่มเลย</pre><ol><li>เปิด Vs Code ขึ้นมาแล้วเปิด Folder ที่เราเก็บชุดคำสั่งต่าง ๆ ขึ้นมา ใน Vs Code</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*tDtaBmM_THI3skm1.png" /></figure><p>ขั้นตอนการเพิ่ม Folder เข้าสู่พื้นที่การทำงานของเรา</p><p>หลังจากที่นำเข้าเรียบร้อยแล้วก็จะมีหน้าตาประมาณนี้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*tU14_fFpItuOGJTO.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/524/0*pagMAVz5P2S_zcU0.png" /></figure><p>คลิกขวาที่ Folder Minio &gt; เลือก Open in Integrated Terminal เพื่อเตรียมรันคำสั่ง Docker</p><p>แล้วก็พิมพ์คำสั่ง docker compose up -d แล้วกด Enter คำสั่งนี้จะเป็นการสั่งให้ Docker ติดตั้งโปรแกรมต่างที่อยู่ในไฟล์ Docker-Compose.yml</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*txZZLNV4oSo1rtlU.png" /></figure><p>หน้าจอสำหรับพิมพ์คำสั่ง docker compose up -d</p><p>ทั้งนี้ใน Folder n8n ก็ทำเช่นเดียวกันกับ Folder minio</p><p>Step ต่อไปก็ เปิด Terminal ขึ้นมา โดยคลิกขวาใน Folder nca-toolkit-run อีกตัวหแล้วก็คัดลอกชุดคำสั่ง ใน Folder nca-toolkit-run/comand-run-nca-toolkit.txt ไปวางใน terminal แล้ว Run</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*uE8PliDmxj8EfIwb.png" /></figure><p>เมื่อทุกอย่างเรียบร้อยก็ให้เวลาพักเบรค 5 นาที แล้วมาลุยต่อ</p><p>เช็คก่อนว่าทุกอย่างทำงานหรือยัง การตรวจสอบก็มี 2 วิธี 1 เปิดดูที่ Docker Desktop ว่า container หรือโปรแกรมเราเปิดหรือยัง</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*6ukK19jb2riEpWj-.png" /></figure><p>ตรวจสอบการทำงานของ Docker Compose ว่าทำงานหรือยัง</p><p>1.ตรวจดูว่า n8n ทำงานหรือยังให้เข้าไปที่ url: <a href="http://localhost:5678/">http://localhost:5678/</a></p><p>สมัครแล้วก็ Login เข้าระบบได้เลย</p><p>2.ตรวจสอบว่า minio ทำงานหรือยัง เข้าที่ url: <a href="http://localhost:9001/login">http://localhost:9001/login</a></p><p>Login user: admin Password: password123</p><p>ประมาณนี้</p><p>ลองวิธีนี้ก่อนคือ import json file ของ n8n เพื่อทดลองว่ามัรจะทำงานได้ไหม</p><p>Work Flow JSON สำหรับสร้าง Short MV</p><pre>{<br>  &quot;name&quot;: &quot;Short-Reel&quot;,<br>  &quot;nodes&quot;: [<br>    {<br>      &quot;parameters&quot;: {},<br>      &quot;type&quot;: &quot;n8n-nodes-base.manualTrigger&quot;,<br>      &quot;typeVersion&quot;: 1,<br>      &quot;position&quot;: [<br>        -1160,<br>        -300<br>      ],<br>      &quot;id&quot;: &quot;fc445b28-9f69-4aa7-bd5a-b82c7c0c79a9&quot;,<br>      &quot;name&quot;: &quot;When clicking ‘Test workflow’&quot;<br>    },<br>    {<br>      &quot;parameters&quot;: {<br>        &quot;method&quot;: &quot;POST&quot;,<br>        &quot;url&quot;: &quot;http://host.docker.internal:8080/v1/video/concatenate&quot;,<br>        &quot;sendHeaders&quot;: true,<br>        &quot;headerParameters&quot;: {<br>          &quot;parameters&quot;: [<br>            {<br>              &quot;name&quot;: &quot;x-api-key&quot;,<br>              &quot;value&quot;: &quot;thekey&quot;<br>            }<br>          ]<br>        },<br>        &quot;sendBody&quot;: true,<br>        &quot;specifyBody&quot;: &quot;json&quot;,<br>        &quot;jsonBody&quot;: &quot;{\n  \&quot;video_urls\&quot;: [\n    {\n      \&quot;video_url\&quot;: \&quot;http://host.docker.internal:9000/nca-toolkit/cat_run_on_forest.mp4\&quot;\n    },\n    {\n      \&quot;video_url\&quot;: \&quot;http://host.docker.internal:9000/nca-toolkit/cat_run_on_forest.mp4\&quot;\n    }\n  ],\n  \&quot;id\&quot;: \&quot;request-123\&quot;\n}&quot;,<br>        &quot;options&quot;: {}<br>      },<br>      &quot;type&quot;: &quot;n8n-nodes-base.httpRequest&quot;,<br>      &quot;typeVersion&quot;: 4.2,<br>      &quot;position&quot;: [<br>        -920,<br>        -300<br>      ],<br>      &quot;id&quot;: &quot;1efaa69b-5502-4285-960e-d48afaf87169&quot;,<br>      &quot;name&quot;: &quot;HTTP Request&quot;<br>    },<br>    {<br>      &quot;parameters&quot;: {<br>        &quot;method&quot;: &quot;POST&quot;,<br>        &quot;url&quot;: &quot;http://host.docker.internal:8080/v1/ffmpeg/compose&quot;,<br>        &quot;sendHeaders&quot;: true,<br>        &quot;headerParameters&quot;: {<br>          &quot;parameters&quot;: [<br>            {<br>              &quot;name&quot;: &quot;x-api-key&quot;,<br>              &quot;value&quot;: &quot;thekey&quot;<br>            }<br>          ]<br>        },<br>        &quot;sendBody&quot;: true,<br>        &quot;specifyBody&quot;: &quot;json&quot;,<br>        &quot;jsonBody&quot;: &quot;={\n  \&quot;inputs\&quot;: [\n    {\n      \&quot;file_url\&quot;: \&quot;{{ $json.response }}\&quot;,\n      \&quot;options\&quot;: [\n        {\n          \&quot;option\&quot;: \&quot;-ss\&quot;,\n          \&quot;argument\&quot;: 0\n        },\n        {\n          \&quot;option\&quot;: \&quot;-t\&quot;,\n          \&quot;argument\&quot;: 20\n        }\n      ]\n    },\n    {\n      \&quot;file_url\&quot;: \&quot;http://host.docker.internal:9000/nca-toolkit/Dance in the Pub.mp3\&quot;\n    }\n  ],\n  \&quot;filters\&quot;: [\n    {\n      \&quot;filter\&quot;: \&quot;hflip\&quot;\n    }\n  ],\n  \&quot;outputs\&quot;: [\n    {\n      \&quot;options\&quot;: [\n        {\n          \&quot;option\&quot;: \&quot;-c:v\&quot;,\n          \&quot;argument\&quot;: \&quot;libx264\&quot;\n        },\n        {\n          \&quot;option\&quot;: \&quot;-crf\&quot;,\n          \&quot;argument\&quot;: 23\n        }\n      ]\n    }\n  ],\n  \&quot;global_options\&quot;: [\n    {\n      \&quot;option\&quot;: \&quot;-y\&quot;\n    }\n  ],\n  \&quot;metadata\&quot;: {\n    \&quot;thumbnail\&quot;: true,\n    \&quot;filesize\&quot;: true,\n    \&quot;duration\&quot;: true,\n    \&quot;bitrate\&quot;: true,\n    \&quot;encoder\&quot;: true\n  },\n  \&quot;id\&quot;: \&quot;unique-request-id\&quot;\n}&quot;,<br>        &quot;options&quot;: {}<br>      },<br>      &quot;type&quot;: &quot;n8n-nodes-base.httpRequest&quot;,<br>      &quot;typeVersion&quot;: 4.2,<br>      &quot;position&quot;: [<br>        -700,<br>        -300<br>      ],<br>      &quot;id&quot;: &quot;0a8738fe-535d-447b-a15a-85832959e01a&quot;,<br>      &quot;name&quot;: &quot;HTTP Request1&quot;<br>    }<br>  ],<br>  &quot;pinData&quot;: {},<br>  &quot;connections&quot;: {<br>    &quot;When clicking ‘Test workflow’&quot;: {<br>      &quot;main&quot;: [<br>        [<br>          {<br>            &quot;node&quot;: &quot;HTTP Request&quot;,<br>            &quot;type&quot;: &quot;main&quot;,<br>            &quot;index&quot;: 0<br>          }<br>        ]<br>      ]<br>    },<br>    &quot;HTTP Request&quot;: {<br>      &quot;main&quot;: [<br>        [<br>          {<br>            &quot;node&quot;: &quot;HTTP Request1&quot;,<br>            &quot;type&quot;: &quot;main&quot;,<br>            &quot;index&quot;: 0<br>          }<br>        ]<br>      ]<br>    }<br>  },<br>  &quot;active&quot;: false,<br>  &quot;settings&quot;: {<br>    &quot;executionOrder&quot;: &quot;v1&quot;<br>  },<br>  &quot;versionId&quot;: &quot;bd995265-4c50-44de-af9e-a44ce467521e&quot;,<br>  &quot;meta&quot;: {<br>    &quot;templateCredsSetupCompleted&quot;: true,<br>    &quot;instanceId&quot;: &quot;c0999d1607bc7a0e39272a6674848042b272ec2d2940c4b365ab798c4c7e144d&quot;<br>  },<br>  &quot;id&quot;: &quot;qVVHMsrvS4Tu7Jjx&quot;,<br>  &quot;tags&quot;: []<br>}</pre><p>ในหน้า</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/0*OBspFpruIxVdO1Tz.png" /></figure><p>ให้คัดลอก Work Flow JSON สำหรับสร้าง Short MV แล้ว ใช้ Key ลัด cmd+v เพื่อวางในหน้า work Flow เปล่าๆ ก็จะได้หน้าตาประมาณนี้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*OzWWbdHvC0OWPwIi.png" /></figure><p>หน้าตา Flow ของ n8n ที่ได้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*Rx0aVm1mT8zxDqzZ.png" /></figure><p>ไฟล์ .mp4 ที่ได้หลังจากการผสมลงโรงของ n8n+nca-toolkit</p><p>ลองคลิกที่ Test workflow ดูก็จะเห็นว่ามี ไฟล์เกิดขึ้นมาใหม่ ใน MinIO ส่วนการตั้งค่าอะไรต่างๆ ลองแกะดูจาก Flow ที่อยู่ใน n8n ได้ครับ…</p><p>Bonus Flow Image To Video</p><pre>{<br>  &quot;name&quot;: &quot;Image-to-video&quot;,<br>  &quot;nodes&quot;: [<br>    {<br>      &quot;parameters&quot;: {},<br>      &quot;type&quot;: &quot;n8n-nodes-base.manualTrigger&quot;,<br>      &quot;typeVersion&quot;: 1,<br>      &quot;position&quot;: [<br>        -320,<br>        -220<br>      ],<br>      &quot;id&quot;: &quot;21067b78-9767-479c-a3ee-48d9bd280d65&quot;,<br>      &quot;name&quot;: &quot;When clicking ‘Test workflow’&quot;<br>    },<br>    {<br>      &quot;parameters&quot;: {<br>        &quot;method&quot;: &quot;POST&quot;,<br>        &quot;url&quot;: &quot;http://host.docker.internal:8080/v1/image/convert/video&quot;,<br>        &quot;sendHeaders&quot;: true,<br>        &quot;headerParameters&quot;: {<br>          &quot;parameters&quot;: [<br>            {<br>              &quot;name&quot;: &quot;x-api-key&quot;,<br>              &quot;value&quot;: &quot;thekey&quot;<br>            }<br>          ]<br>        },<br>        &quot;sendBody&quot;: true,<br>        &quot;specifyBody&quot;: &quot;json&quot;,<br>        &quot;jsonBody&quot;: &quot;{\n  \&quot;image_url\&quot;: \&quot;http://host.docker.internal:9000/nca-toolkit/Flux_Dev_A_beautiful_thai_female_news_anchor_sitting_at_a_mode_0.jpg\&quot;,\n  \&quot;length\&quot;: 10,\n  \&quot;frame_rate\&quot;: 24,\n  \&quot;zoom_speed\&quot;: 5,\n  \&quot;id\&quot;: \&quot;request-123\&quot;\n}&quot;,<br>        &quot;options&quot;: {}<br>      },<br>      &quot;type&quot;: &quot;n8n-nodes-base.httpRequest&quot;,<br>      &quot;typeVersion&quot;: 4.2,<br>      &quot;position&quot;: [<br>        -80,<br>        -220<br>      ],<br>      &quot;id&quot;: &quot;4fa22984-55b1-4cb6-9a08-60c8ba2fb2cd&quot;,<br>      &quot;name&quot;: &quot;HTTP Request&quot;<br>    },<br>    {<br>      &quot;parameters&quot;: {<br>        &quot;method&quot;: &quot;POST&quot;,<br>        &quot;url&quot;: &quot;http://host.docker.internal:8080/v1/ffmpeg/compose&quot;,<br>        &quot;sendHeaders&quot;: true,<br>        &quot;headerParameters&quot;: {<br>          &quot;parameters&quot;: [<br>            {<br>              &quot;name&quot;: &quot;x-api-key&quot;,<br>              &quot;value&quot;: &quot;thekey&quot;<br>            }<br>          ]<br>        },<br>        &quot;sendBody&quot;: true,<br>        &quot;specifyBody&quot;: &quot;json&quot;,<br>        &quot;jsonBody&quot;: &quot;={\n  \&quot;inputs\&quot;: [\n    {\n      \&quot;file_url\&quot;: \&quot;{{ $json.response }}\&quot;,\n      \&quot;options\&quot;: [\n        {\n          \&quot;option\&quot;: \&quot;-ss\&quot;,\n          \&quot;argument\&quot;: 0\n        },\n        {\n          \&quot;option\&quot;: \&quot;-t\&quot;,\n          \&quot;argument\&quot;: 20\n        }\n      ]\n    },\n    {\n      \&quot;file_url\&quot;: \&quot;http://host.docker.internal:9000/nca-toolkit/Dance in the Pub.mp3\&quot;\n    }\n  ],\n  \&quot;filters\&quot;: [\n    {\n      \&quot;filter\&quot;: \&quot;hflip\&quot;\n    }\n  ],\n  \&quot;outputs\&quot;: [\n    {\n      \&quot;options\&quot;: [\n        {\n          \&quot;option\&quot;: \&quot;-c:v\&quot;,\n          \&quot;argument\&quot;: \&quot;libx264\&quot;\n        },\n        {\n          \&quot;option\&quot;: \&quot;-crf\&quot;,\n          \&quot;argument\&quot;: 23\n        }\n      ]\n    }\n  ],\n  \&quot;global_options\&quot;: [\n    {\n      \&quot;option\&quot;: \&quot;-y\&quot;\n    }\n  ],\n  \&quot;metadata\&quot;: {\n    \&quot;thumbnail\&quot;: true,\n    \&quot;filesize\&quot;: true,\n    \&quot;duration\&quot;: true,\n    \&quot;bitrate\&quot;: true,\n    \&quot;encoder\&quot;: true\n  },\n  \&quot;id\&quot;: \&quot;unique-request-id\&quot;\n}&quot;,<br>        &quot;options&quot;: {}<br>      },<br>      &quot;type&quot;: &quot;n8n-nodes-base.httpRequest&quot;,<br>      &quot;typeVersion&quot;: 4.2,<br>      &quot;position&quot;: [<br>        140,<br>        -220<br>      ],<br>      &quot;id&quot;: &quot;ac7f4d04-6c96-4281-9fae-542c39c334d7&quot;,<br>      &quot;name&quot;: &quot;HTTP Request1&quot;<br>    }<br>  ],<br>  &quot;pinData&quot;: {},<br>  &quot;connections&quot;: {<br>    &quot;When clicking ‘Test workflow’&quot;: {<br>      &quot;main&quot;: [<br>        [<br>          {<br>            &quot;node&quot;: &quot;HTTP Request&quot;,<br>            &quot;type&quot;: &quot;main&quot;,<br>            &quot;index&quot;: 0<br>          }<br>        ]<br>      ]<br>    },<br>    &quot;HTTP Request&quot;: {<br>      &quot;main&quot;: [<br>        [<br>          {<br>            &quot;node&quot;: &quot;HTTP Request1&quot;,<br>            &quot;type&quot;: &quot;main&quot;,<br>            &quot;index&quot;: 0<br>          }<br>        ]<br>      ]<br>    }<br>  },<br>  &quot;active&quot;: false,<br>  &quot;settings&quot;: {<br>    &quot;executionOrder&quot;: &quot;v1&quot;<br>  },<br>  &quot;versionId&quot;: &quot;716837da-ab3e-420b-9b3c-5c05b89530d7&quot;,<br>  &quot;meta&quot;: {<br>    &quot;instanceId&quot;: &quot;c0999d1607bc7a0e39272a6674848042b272ec2d2940c4b365ab798c4c7e144d&quot;<br>  },<br>  &quot;id&quot;: &quot;BYZRO0girGeJhd9k&quot;,<br>  &quot;tags&quot;: []<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f38f17766ddf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[authentication protocol that your ASP.NET applicatio]]></title>
            <link>https://wongvianwongkaso.medium.com/authentication-protocol-that-your-asp-net-applicatio-2715dc672ae2?source=rss-debcee1dccb2------2</link>
            <guid isPermaLink="false">https://medium.com/p/2715dc672ae2</guid>
            <dc:creator><![CDATA[Wongvian Wongkaso]]></dc:creator>
            <pubDate>Fri, 02 May 2025 07:45:14 GMT</pubDate>
            <atom:updated>2025-05-02T07:45:14.374Z</atom:updated>
            <content:encoded><![CDATA[<p>The error message you’re seeing:</p><pre>ORA-28040: No matching authentication protocol</pre><p>means that the Oracle database is using a newer authentication protocol that your ASP.NET application (or the Oracle client it uses) does not support.</p><h3>Root Cause</h3><p>Oracle 19c disables older authentication protocols (such as 11g&#39;s default SHA-1) by default. If your application uses an outdated Oracle Data Provider (ODP.NET) or Oracle client that only supports those older protocols, authentication will fail.</p><h3>Fix Options</h3><h4>✅ 1. Upgrade Oracle Data Provider for .NET</h4><p>Ensure you are using <strong>ODP.NET version 19.x or later</strong>, compatible with Oracle 19c.</p><ul><li><a href="https://www.oracle.com/database/technologies/dotnet-odacdeploy-downloads.html">Download ODP.NET from Oracle</a></li></ul><p>Check your web.config or packages.config for Oracle references and upgrade them if needed.</p><h4>✅ 2. Use Compatible Oracle Client</h4><p>If you’re using <strong>Oracle Instant Client</strong>, make sure it’s version <strong>19.3 or higher</strong>.</p><ul><li><a href="https://www.oracle.com/database/technologies/instant-client/downloads.html">Download Oracle Instant Client 19c</a></li></ul><p>Set your PATH to use this version.</p><h4>✅ 3. Modify the Oracle Server (If You Can)</h4><p>If updating the client isn’t an option, and you <strong>control the Oracle DB</strong>, you can temporarily allow older protocols by modifying the database parameter:</p><pre>ALTER SYSTEM SET SQLNET.ALLOWED_LOGON_VERSION_SERVER=11;</pre><blockquote><em>⚠️ </em><strong><em>Not recommended for production</em></strong><em> due to security risks. Prefer client-side updates.</em></blockquote><h4>✅ 4. Check Web.config / Connection Strings</h4><p>Make sure your connection string doesn’t force legacy authentication. Example:</p><pre>&lt;connectionStrings&gt;<br>  &lt;add name=&quot;OracleDbContext&quot; <br>       connectionString=&quot;User Id=your_user;Password=your_password;Data Source=your_db;&quot; <br>       providerName=&quot;Oracle.ManagedDataAccess.Client&quot;/&gt;<br>&lt;/connectionStrings&gt;</pre><p>Would you like help identifying your current ODP.NET version or modifying your web.config or server settings?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2715dc672ae2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>