Protecting Client Code As Much As Possible

I’m new here. So I’ve been coding for about 2 years now, mostly as a hobby. My 2 main languages are JavaScript and Lua. So I was wondering about obfuscation. I’m aware that everything on the client is beyond our control and for the most part we shouldn’t be fussing about protecting the client side … Read more

Why isn’t sibling component updating its content?

I am developing a Blazor server app. One of the classes is Employee.cs which is injected at Startup.cs Employee.cs public class Employee { public string Name { get; set; } = “James”; } Startup.cs … … services.AddSingleton<Employee>(); To use this injected instance, I wrote a simple component Welcome.razor Welcome.razor @inject Employee Emp <h1>Welcome [email protected]</h1> The … Read more

Execute a function when receiving a local notification

I’m trying to execute a function when a local notification is triggered. I have an app that uses local notifications to run a timer, and when the timer finishes I want to save some data to record that the timer has indeed finished. Searching on the internet I was able to write this code: import … Read more

WinUI 3- ; expected error comes after adding C1.WinUI.Grid package in WinUI blank project

I am new to WinUI 3 Applications.Default blank app works fine. But when I add C1.WinUI.Grid package in project I got below errors Severity Code Description Project File Line Suppression State Error NU1202 Package C1.WinUI.Grid 1.4.20233.668 is not compatible with net6.0-windows10.0.19041 (.NETCoreApp,Version=v6.0) / win10-arm64. Package C1.WinUI.Grid 1.4.20233.668 supports: net8.0-windows10.0.19041 (.NETCoreApp,Version=v8.0) App1 C:\Users\source\repos\App1\App1.csproj 1 Severity Code … Read more

Shorten url for Azure OpenAI reference link

Using Azure OpenAI with Azure AI Search to build Chatbot. When we get response from OpenAI, there’s this unique feature from Azure, to provide response file url link. It looks quite big and ugly as the response. Is there a way to shorten this url ? Response prompt gives a long link, is there a … Read more

In Vue3.Parent component use child component’s render function, the components registered within the child component are not working

In JSX, if custom-component is registered by Child component,and Parent component use Child component’s render function to render custom-component. it will report Failed to resolve component: custom-component Here is the demo code Vue version: 3.3.4 child export default defineComponent({ components: { customComponent, }, setup(props, ctx) { const renderCell = ()=><custom-component /> // parent component will … Read more