How to add Podman as an Agent in Portainer

A Possible approach to adding Podman as an environment in Portainer is two ways. The first is to use the Portainer Agent. The other way is to call it through the remote API. Try1: Portainer Agent Start Portainer Agent I tried and it didn’t work. My Environment I found, it cannot read an agent container IP address when starting. The full error is below. Try2: Podman Remote API When the first method doesn’t work, we try another method using the Podman Remote API. The steps are as follows: Note: When I tested on Portainer > Podman, Some feature may not…

[DOTNET] GraphQL บน NET8 ด้วย HotChocolate Library #01 (Query)

สำหรับ Blog นี้ เรียกว่าลองทำ GraphQL ด้วย dotnet core 8 ครับ โดยใช้ library HotChocolate ชื่อมันดูน่ากินดีนะ 555 โดยของหวาน Set นี้มี 3 Lib สำหรับ Blog ช่วงนี้จะเน้นตัว Hot Chocolate ก่อนครับ แล้วค่อยขยับไปส่วนอื่นๆ โดยมีหัวข้อดังนี้ มาเริ่มกันเลย – Simple REST API (GET) ตอนนี้ API ของเราพร้อมใช้งานแล้วครับ -เพิ่มในส่วนของ GraphQL จาก Blog เดิม จดจาก Build GraphQL APIs (Go) พบว่าส่วนประกอบของ GraphQL มี Type / Field (method) / Argument(method parameter) / Resolver (Field Resolver) Test เห็นไหมครับ จริงๆ Graph API ใช่ร่วมกับ REST API เดิมได้นะ Code เต็มๆอยู่นี้ครับ : pingkunga/net8_graphql_HotChocolate_sample (github.com) สำหรับ Blog หน้าจะไปในส่วน CREATE / UPDATE / DELETE ครับ

ค่าปรับแต่ละแบบจาก TOR ของ โครงการ IT

ได้อ่าน และดู TOR มาหลาย Project แล้ว เลยขอสรุปดูหน่อย ว่าถ้างานมันช้า หรือ สะดุดไปไม่ตรงตามเงื่อนไขของการตรวจรับ มันมีค่าปรับอะไรบ้าง อันนี้จากที่ลองๆถามเค้ามาด้วยนะ เลยสรุปมาเป็น Blog สักหน่อย รูปแบบการคิดค่าปรับ ระวังการนับวัน อีกเรื่องที่ต้องระวังการนับวัน ผมในมุมของ Dev เจอ PM หลายคนพลาดตรงนี้มาเยอะ ถ้านับวันผิด ค่าปรับข้างต้นจะเดินโดยไม่รู้ตัวครับ ตัวอย่างการคำนวณค่าปรับ สมมติว่าเรามี Project AAA มีงานหลายส่วนเลยมูลค่าโครงการ 30 ล้าน ระยะเวลาโครงการประมาณ 100 วัน แล้วที่นี้ วันที่ 101 เรายังไม่สามารถ Delivery อะไรได้เลย จนมาถึงวันที่ 135 ล่าช้ามา 35 วัน เราจะโดนค่าปรับอะไรบ้าง รวม 1,855,000 บาท ซึ่งเราคงไม่อยากให้จ่ายแบบนั้นไป ตัวเงินเยอะเหมือนกันนะ 1.8 ล้าน ช่วงแบบ COVID อุปกรณ์ IT ขาด หลายที่อาจจะเอาคอมพนักงานนี่แหละ เอาไปวางเป็น Jump Host ไปก่อน เพื่อเลี่ยงค่าปรับพวกนี้ ให้ทำงานแบบ Remote ได้ซึ่งคอมเครื่องใหม่ที่ให้พนักงาน เอาไปทำ Jump Host แทน ลงทุนไป 2-3 หมื่น แลกกับค่าปรับจริงๆ 1,855,000 บาท มันคุ้มแหละ แต่อย่าลืมเอาคอมมาคืนให้พนักงานด้วยหละ แต่มีอีกหลายเคส พลาดเรื่องง่ายๆ วันทำการ วัน ปกติ ที่ผ่านมาที่เจอกันพวกฝึกอบรม หลัง 30 วันจากที่ได้รับจดหมายแจ้ง 30 วันปกติ หรือ วันทำการ ถ้าคิดว่าเป็นวันทำการ โดนค่าปรับไปเบาๆ 10 กว่าวัน

The Way of Testivus

พอดีไปเจอ Handbook เล่มเล็กๆ ที่อธิบาย เรื่อง การทำ Test ไวได้ดี และสั้นกระชับด้วย 12 หน้าเอง แต่มันใช้ได้ แม้เวลาจะผ่านหลายปีครับ โดยมี 12 ข้อ ดังนี้ครับ Resource

จดๆจาก Talk ถอดรหัสเอไอผ่านมุมมอง F1 กับพี่ชัยผู้อยู่ในทีมวิจัยที่สร้างโมเดล Phi-3 และ AI ใน Windows

คำถามแรก งานที่ speaker ทำ มีหลายส่วนเลย ตั้งแต่ดู Product CodeName Chicago ดูแลเรื่องการ Support ภาษาไทยในนั้นด้วยนะ ใช่แล้วครับตัวนั้น Windows 95 แหละ และดูตัว Windows มาเรื่อยๆ พวก HW SW บราๆ ต่อมาอีกงานทำ AI Platform โดย GPU มันมี Graphic Block (Math + Render) / Compute Block (สำหรับคำนวณ Math) ดังนั้นคนทั่วไปที่ใช้งาน พวก Game / Graphic Designer จะไปในส่วน graphic block ที่ทำ platform ขึ้นมา ทีม f1 เพราะตอนนั้นด้าน AI มีตัวเดวนะ tensor flow ซึ่งตอนที่เริ่ม AI ใน Microsoft มี 3 คนเองนะ ทำ platform มีด้าน Low Level HW + AI และก็มีการตกลงสร้าง Open Standard กลางสำหรับ AI อย่างตัว onnx กับทาง Meta (Facebook) โดยทำมา 6 ปี จนมีรูปร่าง ถึงจุดที่ scale Key Success: ใน Microsoft ใช้หลัก growth mindset นะ เรียนรู้ และยอมรับความล้มเหลว และทำงานกับเป็นทีม…

[CR] Starbucks Homsuwan Pineapple Black Tea

นอกจากนี้ในซีรีย์ สับปะรดหอมสุวรรณ อีก 2 เมนู ถ้าได้ลองผมจะมาเขียน Blog จดไว้อีก Reference (พลังงานของแต่ละเมนู)

How to Enable Remote API in Podman

What is a Remote API The Remote API helps us to be able to control and manage Podman from other machines. You can write Client Tools to manage Podman directly if we know the APIs. or you can connect it with Management Tools like Portainer. This is possible because Podman implements Docker-compatible API. There are two type of Podman Remote API. 1. Check API version Your Podman will show in APIVersion: Section – you can use command with grep like below:Note: The APIVersion use for test Socket / Rest API 2. Enable Socket – Step for Rootful – Step for…

AZ-104: Monitor and back up Azure resources

azure

Configure file and folder backups Azure Backup Azure Recovery Services vault Microsoft Azure Recovery Services (MARS) – เอาไว้ช่วย Restore Data จาก Azure Backup ใช้งาน Azure Backup Lab: Configure file and folder backups: Interactive lab simulationKnowledge Check: Configure file and folder backups: Knowledge check Configure virtual machine backups protect virtual machine data Create virtual machine snapshots in Azure Backup Azure Recovery Services vault backup options Backup/Restore your virtual machines Restore your virtual machines – You can recover your machine by accessing the snapshot, or restore data to a specific point-in-time by using recovery points System Center DPM and Azure Backup Server…

สรุปงาน Code Mania 1011: AI for Developers

Welcome to Code Mania 1011 and TPA 2024 สำหรับ Session นี้เป็นการแนะนำสมาคมโปรแกรมเมอร์โดยคุณเซฟ นายกสมาคมคนปัจจุบันครับ โดยตัวงาน Code Mania จัดตั้งแต่ปี 2014 เลยนะ ปีนี้เป็นที่ 10 และ ของผมเอารู้จักงานนี้น่าจะตอน CodeMania11 มี Blog จดไว้ 555 ส่วน Blog อื่นๆ ดูจาก Tag CodeMania นะ หน้าที่หลักของสมาคม: Contribute / Facilitator สำหรับการจัดงานต่างๆ / Goal อยากทำให้เป็นฐานของ Programmer ของ ASEAN โดยเน้น Local กระจายความรู้สู่ภูมิภาคต่างๆครับ และมาดู Stat การจัดงานของปีนี้กันครับ งานของสมาคมจะเน้นไปด้านต่างๆ ตาม 4C ดังนี้ และมีเปิดให้สมัคร Member ด้วยนะ ปลายปีมีงาน National Coding Day ถ้าใครจะฝึกงานมี TPA Internship Timeline ตามรูปเลย Next generation Al for developers by Teerasej Jiraphatchandej คุณพลเน้นว่าจากงาน Tech ของฝั่ง Microsoft Build / Ignite จะมี Quote ที่สำคัญเกี่ยวกับ AI ดังนี้ Every App will be reinvited with AI – AI เข้ามาช่วยในการสร้าง App มากขึ้น New…

How to Parse JSON in command line

Why parse JSON in command line Solution use jq, lightweight and flexible command-line JSON processor. – Install jq – Sample Use-Case With curl example Other Example Here jq Manual (development version) (jqlang.github.io) Reference