Saturday, February 17, 2024

A new debugger visualizer for VisualStudio dotnet Entity Framework efcore

A new debugger visualizer for

if you use #dotnet Entity Framework #ef #efcore

Download the extension and see it in action.

 https://marketplace.visualstudio.com/items?itemName=GiorgiDalakishvili.EFCoreVisualizer



Thursday, February 8, 2024

Sitecore XMCloud Local setup docker Cheatsheet

 Make sure you have proper dotnet Core version and nodejs version installed if you planning to setup NextJs with Sitecore XMCloud.


.Net Version is important to run Sitecore CLI where nodejs is mostly for nextjs and other commands .

Initial setup commands

iisreset /stop 

Run .\init.ps1 

.\up.ps1

Troubleshooting

iisreset /stop

./down.ps1

Most common docker command

docker compose up -d

docker compose stop

docker compose down

docker network ls

docker network rm {id of network} mostly this comes handy when _default network settings are already in use




Wednesday, February 7, 2024

Sitecore XMCloud Docker Full Local setup Troubleshooting guide

Scenario #1

XMCloud is setup end to end in local, first time docker and everything spin up and runs fine. Some reason, your system restart and docker container stops. You restarted docker containers and you end up seeing the exceptions below.

Try to run traefik and end up seeing below error notification

Problem

(HTTP code 500) server error - failed to create endpoint sxastarter-traefik-1 on network sxastarter_default: failed during hnsCallRawResponse: hnsCall failed in Win32: The process cannot access the file because it is being used by another process. (0x20)

Resolution

Open command prompt in administrator mode and just run iisreset /stop 


 












Sunday, January 21, 2024

Prompt Engineering generative AI Model Chat GPT

 Effective ways to use Prompt Engineering generative AI model to solve and give you most accurate fact based information . The inputs to AI model is the key. Machine learning algorithm unleash the most significant information that is hidden unless you give a right quest to AI model to mine the right set of data.

  • Creating effective prompt
  • Evaluating prompt performance
  • Using advanced prompt techniques
Tool required : Chat GPT and DALL-E-2 (Is a AI system that generates realistic images and arts from a descriptions in natural language.




What DALL E stands for
ChatGPT
ChatGPT

"DALL-E" is a name that refers to a specific artificial intelligence model developed by OpenAI. The name itself doesn't have a literal meaning or stand for anything. It is named after the famous surrealist artist Salvador Dalí, combined with the name of the Pixar character WALL-E. DALL-E is known for its ability to generate creative and unique images based on textual descriptions




Tuesday, January 9, 2024

Azure B2C Open Id Cookie expiry results in redirect loop on login

Recently we have encountered some unusual behavior when customer tries to login using Azure B2C authentication framework.

Application Type

Web

Technology

 .Net Framework 4.8 Asp.net MVC

CMS

Sitecore CMS 10.0.0

Authentication Framework

Azure B2C
OAuth 2.0 Authorization Code Flow with Proof Key of code Exchange (PKCE)

.Net MSAL Open Id connect


Problem Statement:

User idle for 15 mins and user taken back to Website Sign In page to initiate login again.

Root Cause: Token Exchange Failure. Nonce and Codeverifier expires after 15 mins. User Idle on sign In Page for more than 15mins and post that enters credential and results in login loop.





https://learn.microsoft.com/en-us/azure/active-directory-b2c/authorization-code-flow

Issue reported to Microsoft












Solution: Increase Nonce and Codeverifier expiry timeout.

Monday, January 8, 2024

Why Sitecore XMCloud is fast to market?

 It would be really sad if Sitecore stop the innovation in Content as a service. This is one of the coolest product sitecore has ever produced. XMCloud is a fully managed self service to launch omnichannel content managed website and support deployment user interface without relying on any software to facilitate that.

XMCloud consists of

  • Experience Manager
  • Latest SXA
  • Page Editor
  • Headless service and cms
  • Nextjs sdk etc
  • One need not worry about version of sitecore which is managed completely by XMCloud services.



Sunday, December 3, 2023