[CR] Starbucks Chocolate Flourless Cake (Valentine Edition)

สั่งเพราะ ชื่อแปลกครับ เค้กช็อกโกแลตไร้แป้ง (Chocolate Flourless Cake) ไร้แป้งยังไง ลองมาดูจากการที่ผมลองสั่งมาทานที่บ้านครับ ส่วนประกอบ ปิดท้าย เป็นเมนูที่หลอกตัวเองว่าไม่อ้วน เพราะไม่มีแป้ง แต่มันก็หวานอยู่ดีครับ Reference (พลังงานของแต่ละเมนู)

[AZ-400] Implement continuous feedback

อันนี้จะเป็นวง Monitor และ ว่าหลังจาก CI/CD จบแล้ว มา Monitor เพื่อให้ได้ Feedback กลับมา Implement tools to track usage and flow Develop monitor and status dashboards Tools จุดเด่น จุดด้อย Azure Dashboards – Supports both metrics and logs.- Combine data from multiple sources- View with Azure RBAC- Automatic refresh – Log charts are limited to the last 30 days- data series is limited to 10- No interactivity with dashboard data Azure Monitor-View Designer – Rich visualizations for log data.- Interactive supports multi-level drill-in- Integrates into Log Analytic management model with workspaces and monitoring solutions.- create custom visualizations with log data.  – Supports logs but…

Rebuild COM Interop DLL ด้วย VS2022 เจอ Runtime Error 3001 แต่ VS2019 ทำงานได้

ช่วงนี้ผมได้กลับไปช่วยดู DLL เก่าตัวนึงครับ ทำไว้มานาน 8-9 ปีแล้ว โดยเจ้า DLL ตัวนี้ เป็นตัว COM Interop ที่เอาไปให้ตัว VB6 ไป Reference ใช้งาน หน้าที่มันจะประมาณว่า VB6 ส่งคำสั่งไปให้ .NET มันทำงาน แล้วตัว .NET ได้ Result มาเป็น DataTable แล้วหน้าที่ตัว COM Interop ทำหน้าที่แปลง DataTable มาเป็น VB6 Recordset ครับ //อันนี้เดี๋ยวว่างๆจะเขียน Blog อีกอธิบายการทำงานอีกที ส่วน Version 2 จะป็นตัว pipe ลด Coupling ลง / ส่วน Version 1 ดูเต็มได้ Blog นี้ครับ กลับมาที่ปัญหาดีกว่า COM Interop ที่เป็น .NET Framework 4.5.2 มันต้องทำหน้าที่เพิ่ม จากเดิมที่ยิง REST แต่ไม่รองรับ JWT ครับ งานนี้ เราต้องมาเพิ่มให้กับมันครับ แต่ทว่าหลังแก้ไข ตอน Deploy และเอาไฟล์ .tlb มา Reference กับ VB6 Project ปรากฏว่ามันรันไม่ได้ครับ เจอ Runtime Error 3001: Arguments are of the wrong type, are out of acceptable range, or are in conflict…

How to access NPM Private Registry

หลังจากที่ ได้ปรับตัว Nexus ให้เป็นทั้ง Host และ Proxy ของตัว NPM ในบริษัทไปแล้วตาม How to Access npm Packages After Securing Nexus Repository Manager (sonatype.com) ต่อไป คือ การกำหนดในตัว NPM ใส่ตัว Credential เวลาใช้งานครับ โดยมีรูปแบบ ดังนี้ NOTE: บางทีที่ยังใช้งาน Username + Password ต้องเพิ่ม –auth-type=legacy ตัวอย่าง เช่น หลังจากมันจะถาม username / password (บาง Registry เรียกว่า Secret หรือ Token) / public email ก็กรอกข้อมูลไปครับ สุดท้าย มันจะเอา Config ที่เราใส่ไปเก็บที่ Path $HOME ของแต่ละ user ครับ ข้อมูลที่เรากรอกไปทั้ง Registry + Credential จะถูกแปลงให้จัดเก็บในไฟล์ .npmrc ตามรูปครับ กรณีที่ต้องการให้มันดึงเฉพาะบาง package เช่น เอาเฉพาะขององค์กร (scope) Reference

J&T Express เหมือนจะดี แต่ทว่าช้าและของหาย

สั้นๆ พอดีเพิ่งสั่งของจาก Shopee มา แล้วพอเจอขนส่ง J&T Express ที่ไร ของหาย จริงๆ ตอนแรกว่าจะชมเว็บ Tracking ดีมากเลย มีให้ใส่เบอร์ 4 ตัวท้ายของผู้รับ และผู้ส่ง ป้องกันความเป็นส่วนตัวได้ดี แต่ทว่าผู้ขายส่ง 13-JAN-2023 และของค้างที่วังน้อย อยุธยามาตั้งแต่วันที่ 14-JAN-2023 จนถึง 31-JAN-2023 ยังไม่เปลี่ยน พอตาม Support ไป ในวันที่ 14-JAN-2023 ตามหลายรอบมาก เจอแต่ Chat Bot พอบอกว่าจะโพส Pantip ตอน 19-JAN-2023 แล้ว Admin ตอบ 5555 มี Call Center โทรมา บอกว่าจะตามให้ แต่ตอนนี้ 31-JAN-2023 ยังอยู่ที่เดิม สินค้าของเราน่าจะหายแล้ว สงสารคนขายด้วย เรากดจ่ายเงินไม่ได้ และรายการที่ส่งกับ JT Express หายมา 2-3 รอบแล้ว ในเมื่อไม่ได้รับ Update จาก Support ขอให้ Google Index ไว้ให้ลูกค้าท่านอื่นๆพิจารณาแล้วกันครับ ตอนนี้ขอเลี่ยงการใช้บริการไปก่อนครับ

บันทึก SonarQube กับ .NET6

ช่วงนี้เป็นการ Re-Cap งาน Migrate จาก .NET4.7.2 > .NET6 ตัว Blog ช่วงนี้ จะมาแนวๆนี้เยอะหน่อยครับ ^__^ การเตรียมข้อมูล – Test Report – Test Coverage – Sonar Scanner .NET คำสั่งทั้งหมด Reference

[AZ-400] Manage infrastructure as code using Azure and DSC

Julius Totalisator Equipment consisting of control room (Totalisator)

Explore infrastructure as code and configuration management Manual deployment Infrastructure as code Snowflake servers.Snowflake = unique configuration that cannot be reproduced (ทำซ้ำไม่ได้)โดยจะได้ตัว configuration drift A consistent server between environments. Deployment steps vary by environment.อันนี้จริง VM > Container ถึงเกิดมาแก้ปัญหานี้ Environments are created or scaled easilyconfigurations to be More verification steps and more elaborate manual processes.จริง ตอนทำงานต้องตรวจ และจด Click + เยอะเหมือนกัน Fully automated creation of environment Updates.ทำ Script มา Check ได้ Increased documentation to account for differences. Transition to immutable infrastructure.มันเป็น Code/Script Run ยังไง – ผลลัพธ์เหมือนเดิม – และ version-controlled ได้ Deployment on weekends to allow time to recover from errors. Use blue/green…

[Container] แก้ปัญหา docker image โต

cargo ship unloading colorful containers in port

จาก Blog ตอนก่อนที่มีความสงสัยว่าทำไมขนาด Image ของ Container มันโต จึงได้ลองด้วย Podman history เพื่อตรวจสอบไป docker history ก็ใช้งานได้นะ แล้วที่นี่มาเจอคำสั่งที่ทำให้ Layer มันเพิ่มขึ้นแบบงงๆ ตามรูปครับ มันเกิดอะไรขึ้น ? รีดไขมัน – ปัญหาที่ 1: คำสั่ง chown / chown มีเนื้อที่เพิ่มมาแบบงงๆ – ปัญหาที่ 2: คำสั่ง yum install มีเนื้อที่เพิ่มมาแบบงงๆ จากที่แก้ปัญหาที่ 1 และ 2 แล้วลอง build image ใหม่อีกรอบ มาตรวจขนาดกันครับ ลดลงแล้วครับ ^___^ 3.15 GB เหลือ 2.32 GB หลายไป 800 MB ครับ