[C#] Dapper Error connection assigned to the command is in a pending local transaction. 

ช่วงนี้มีไปช่วยน้องในทีมแก้ปัญหาระบบซื้อขาย Bond โดยน้องเอา Service เดิมที่เคยทำไว้ในผูกกันเป็น Flow ใหม่ครับ แล้วทีนี้เจอ Error หลังจากลองไล่ดู Code พบว่าเป็นส่วนคำสั่งที่เรียก Dapper ให้มันช่วย Query ให้ เลยเพิ่มตัว Transaction ใส่ครอบเข้าไปครับ อีกเคส ต้องไปใส่ Transaction Scope ด้วย พวก BeginTran / Commit

[CR] Starbucks Mayongchid Juice

ราคา 155 บาท รสชาติ หวานอมเปรี้ยว คิดว่ากดสดๆ น่าจะได้รสชาติมากกว่า สามารถเพิ่ม Espresso Shot ได้ด้วย ส่วนตัวชอบ Valencia มากกว่าครับ หวานกลมกล่อมมากกว่าครับ ถ้าอยากดู Review กลุ่มเมนูน้ำส้ม ดูจาก Tag ได้เลยครับ พลังงาน 140 Kcal ครับ Reference (พลังงานของแต่ละเมนู) ตามรูปเลยครับ

[SECURITY] Password Spraying คือ อะไร

ช่วงนี้ผมได้ลองศึกษาพวก Cloud มันจะมีด้าน Security ด้วยนะ และ Feature ที่รองรับ 1 2 3 4 ผมมาเ๊ะใจคำนึงนะ Password Spraying มันดู้ป็นศํพท์ใหม่ที่ Dev อย่างพวกเราไม่น่าจะรู้จักมาก่อนเลย Password Spraying คือ อะไร ต่างกับวิธีการเดิมๆ Brute force อย่างไร ? Reference

[IIS] ASP.NET Core – HTTP Error 500.19 – Internal Server Error (Error Code 0x8007000d)

วันนี้มาช่วยแก้ปัญหาที่ Site ลูกค้า เนื่องจากเครื่องที่ติดตั้ง Migration Tools (ASP.NET Core 3.1) ที่ทำมาตั้งแต่ปี 2019 พังไปแล้วครับ เลยได้ต้องไปช่วยดูเคสนิดหน่อยหลังจากที่ IT ของลูกค้าได้ลองติดตั้งครับ เมื่อทดสอบพวก Error 500.19 (Error Code 0x8007000d) ครับ ตรวจสอบกันก่อน สิ่งที่ผมสงสัย IIS ไม่รู้จัก Module AspNetCoreModuleV2 โดยการตรวจสอบให้ไปที่ Internet Information Service (IIS) Manager เลือก Site ที่เกิดปัญหา จากนั้นลอง Click ที่ Module ถ้า Error ตามรูป ใช่เลยครับ การแก้ไข AspNetCoreModuleV2 ติดตั้ง ASP.NET Core Runtime (Hosting Bundle) – ต้องลงแบบ Host Bundle เพราะมี IIS runtime support ครับ หลังจากติดตั้งเสร็จ ลอง Restart IIS และตรวจสอบ Internet Information Service (IIS) Manager เลือก Site ที่เกิดปัญหา จากนั้นลอง Click ที่ Modules จะต้องมี AspNetCoreModuleV2 ขึ้นมาแล้วครับ ทดสอบเข้า Site ได้เลยครับ หลายคนอาจจะอ่านแล้วสงสัยว่า อันนี้ทำไมไม่ขยับไปเป็น container เคยลองแล้วครับ แต่ Environment ลูกค้า ขอฟรีทั้ง Tools และไม่มีตั้งงบเรื่อง Server ของ Tool นี้ เลยได้…

[PODMAN] java.security.KeyManagementException: FIPS mode: only SunJSSE TrustManagers may be used

วันนี้น่าจะวันซวย Run Image ขึ้นที่ Site ลูกค้า แล้วเจอ Error นี้ครับ Environment Host redhat 8.2 with FIPS mode enable podman 2.0.5 Container Image Base Image rockylinux:8.5.20220308 (Version 8.5.20220308) openjdk version “11.0.15” 2022-04-19 LTS Application Spring Boot 2.6.6 How to fix อ๋อ อย่าลืมตรวจสอบด้วย RedHat 8 กำหนด System-wide cryptographic policies เป็น FIPS mode หรือไม่ ด้วยคำสั่ง หลังจากลองมาหลายวิธี วิธีแรกลอง Config java.security ปรับ security.useSystemPropertiesFile=false แต่ไม่รอดครับ สุดท้ายตอนสร้าง docker image ได้เพิ่ม Parmeter -Dcom.redhat.fips=false ตอน Run Java เข้าไปแทน เนื่องจาก FIPS Mode ไม่สามารถปิดแบบ Global ได้ ต้อง Per Process เท่านั้น อ้างอิงจาก How to disable FIPS for java when FIPS is enabled on RHEL 8? – Red Hat Customer Portal สรุปที่แก้ไป ของเดิม ตัวคำสั่งที่ใช้…

[DB2] Restore แบบ WITHOUT ROLLING FORWARD; แล้ว Error SQL1035N 

IBM DB2

พอดีได้รับเคสไฟไหม้มาตรวจสอบ เนื่องจากลองทำ Take On Date (ตั้ง Database ใหม่) แล้วปรากฏว่าข้อมูลที่เตรียมมามันไม่สามารถ Restore ที่ Production ได้ครับ โดยเจอ Error SQL1035N The operation failed because the specified database cannot be connected to in the mode requested. SQLSTATE=57019 พอลองไปดู Step Backup พอจะเดาได้แล้วแหละ ว่ามาจากอะไร สาเหตุ + การแก้ไข Reference

[SC-900] Short Note

Blog นี้เป็นสรุปใส่ Keyword จาก Exam SC-900: Microsoft Docs และ Resource ต่างๆที่เพื่อนๆ Share กันในกลุ่ม Microsoft Cloud Squad ครับ Compliance management capabilities at Microsoft Security and compliance concepts Azure – identity concepts – Services and identity types of Azure AD – Identity protection and governance capabilities of Azure AD – Basic security capabilities in Azure – Security management capabilities of Azure – Security capabilities of Microsoft Sentinel (เดิม Azure Sentinel) – Describe resource governance capabilities in Azure Microsoft 365 – Microsoft 365 Defender services – Compliance management capabilities in Microsoft 365 – Information protection and governance capabilities of Microsoft 365 >> know…

[CR] Starbucks Iced Sunset

สำหรับเมนูนี้จะเป็นเมนูเฉพาะของ Starbucks Reserve Chao Phraya Riverfront @ ICONSIAM โดยเมนูนี้ Sunset ตามธีมของสาขาที่เป็นจุดชมวิวริมน้ำ โดยเมนูนี้เป็นนำชาฮิบิสคัส (ชาดอกชบา), น้ำส้ม, ส้ม, และโซดา ทานแล้ว Refresh ดีครับ ราคา Iced Sunset 170 บาท ถ้าเพิ่ม Espresso Shot 20 บาท / 1 Shot (ถ้าที่ Starbucks Reserve Chao Phraya Riverfront จะมี Muan JAI Shot ด้วยครับ รสชาติ รู้สึกแปลกลิ้นนิดหน่อย อาจจะเป็นเพราะว่าผมได้เคยทานชา + น้ำส้มด้วยแหละ รสชาติออกเป็นเปรี้ยวนิด หวาน ผสมซ่าหน่อยๆ ทานแล้ว Refresh ดีครับ จิบแก้ Code ยามบ่ายๆแก่ได้ดีเลยครับ และลองมาชิม Muan JAI Shot มันนุ่มกว่า Espresso Shot นะ รสมันไม่ได้กินแล้วจิ๊ดขมอะไรแนวนั้น ถ้าคนแบบจะจิบแล้วตื่นเลย มันจะไม่ใช่แนวครับ พลังงาน – Reference (พลังงานของแต่ละเมนู) เดี๋ยวถ้ามีข้อมูล จะมา Update ครับ