Random snippets of all sorts of code, mixed with a selection of help and advice.
Solution to install Huawei Laptop Huawei MCLG XX network driver perfectly
12 April 2026 @ 2:04 am
guys. Is there any guy who are getting trouble to install Huawei Laptop driver? I will share my experience. A few days ago, I purchased a brand new Huawei Laptop so I installed Win 11 system by using USB which made by Rufus and Win 11 ISO. But after installation successful, unfortunately, I was not able to connect Internet due to no driver on system. So I tried several times by googling, asking ChatGPT but could not find proper solution. Anyway I solved it perfectly like below.
Go to Start-> Device Manager -> Others -> Network controller and open it(properties).
Shift to second tab "driver" and you can get device info from here like
"PCI\VEN_10EC&DEV_C821&SUBSYS...".
You can googling with this device info as a key and find proper driver exe file.
After install, restart, you can get network which makes possible to install all other necessary drivers.
Hope this experience may help you guys trouble later.
Authorize filter attribute is returning signing key error, whereas it is 100% correct
12 April 2026 @ 1:47 am
Im configuring Authorization in my asp.net core 8 project, and I'm facing this error while testing jwt token auth via swagger:
content-length: 0 date: Sun,12 Apr 2026 01:37:08 GMT server: Kestrel www-authenticate: Bearer error="invalid_token",error_description="The signature key was not found"
I used:
JwtOptionsSetup:
using EasyPay.Application.DTOs.Auth;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Options;
namespace EasyPay.Application.OptionsSetup
{
public class JwtOptionsSetup : IConfigureOptions<JwtOptions>
{
private const string SectionName = "Jwt";
private readonly IConfiguration _configuration;
public JwtOptionsSetup(IConfiguration configuration)
{
_configuration = configuration;
}
public void Configure(JwtOptions options)
{
_configuration.GetSection(SectionName).Bind(o
Claude Code skills to port website from Flutter to Jaspr
12 April 2026 @ 1:06 am
I would like to use Claude Code to port my website from Flutter to Jaspr in order to improve searchability.
What skills should I use?
What is the best way to orchestrate agents?
C#/XAML MVVM Non-existant DataType for DataTemplate in Namespace
12 April 2026 @ 1:05 am
I am new to WPF and the MVVM format but I am trying to bind a listbox to a ObservableCollection<Item> Which Item is a custom type written within my ViewModel namespace. Within my View xaml I am able to bind the listbox's ItemSource to my "Items" property using: ItemSource="{Binding Items}" and it sees it. But for the DataTemplate property "DataType" I can not set it to "{x:Type viewmodel:Item}" as vs studio throws an error saying The name "Item" does not exist in the namespace "clr-namespace:SBCM.MVVM.ViewModel"
This is my PackManagerView.xaml
<UserControl x:Class="SBCM.MVVM.View.PackManagerView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://
Transform Nested List of Matrices into 4D Array
11 April 2026 @ 11:36 pm
Background
I am developing an R program that hierarchically tabulates data in the command line. In the spirit of cli and its box-styles, I have created a nested list with the appropriate box-drawing characters.
box_uni_sets <- list(
light = list(
light = ...,
heavy = ...,
double = ...
),
heavy = list(
light = ...,
heavy = ...
),
double = list(
light = ...,
double = ...
)
)
Note
Not every subnode is represented within every supernode. For example, heavy lacks a double subnode.
How to make detailed Listviews in QML
11 April 2026 @ 10:21 pm
I want to make a detailed Listview, instead of using a single flat element with maybe an outline, I want each element to have a large amount of detail such as gradients, extra rectangles applied onto those elements to add a shine effect but either I have a lack of knowledge or listviews are unable to do that, if that is the case is there a way to make a column scroll able using the arrow keys and have elements able to switch to a selected variant?
My mockup of the menu I want to create:
This is how a single element is created with my detailed design: The gradient colorscheme and additional line will change color when selected, along with text switching to bold, please bare with me as I am a new coder.
Rectangle {
id: selection1
width: 240
height: 29
gradient: Gradient {
GradientStop
This is how a single element is created with my detailed design: The gradient colorscheme and additional line will change color when selected, along with text switching to bold, please bare with me as I am a new coder.
Rectangle {
id: selection1
width: 240
height: 29
gradient: Gradient {
GradientStop In shell pipes, maintaing resilience against orphaned process and buggy applications [duplicate]
11 April 2026 @ 2:14 am
Note: The question is not a duplicate of Getting ssh to execute a command in the background on target machine. The other question relates to background processes that may be sent the hangup signal.
The current question relates to reaching the termination of the pipe, following the termination of the foreground process, my_buggy_application, despite its leaving orphan processes. In fact, the pipe remains open in such cases, despite the use of nohup, even after the foreground process having terminated.
No part of the question implicates a hangup signal.
The proposed duplicate is not in fact actually a duplicate, and the solution from the proposed duplicate is ineffectual in the current case.
Opening a new session of Bash, it can be seen readily that the shell has no persistent children…
% pstree $$
bash───pstree
Android AOSP selinux policy sequencing/processing
10 April 2026 @ 8:20 pm
When people are building their own AOSP selinux policy, whats the exact sequence of order of files to be included? following repo :
https://android.googlesource.com/platform/system/sepolicy/+/main
If we consider above repo's structure, whats the correct way to include all files?
sometimes I felt maybe this link :
https://source.android.com/docs/security/features/selinux/build
maybe was giving a different sequence. Which files are for m4 pre-processing and which other files can be included.
Maybe should any kindof files be prioritized in the .te file lists in each folders? For maximum security which is the appropriate sequence to be followed?
How following list of files/folders needs to be sequenced :
<-
How to convert query results into dict using Python?
10 April 2026 @ 4:57 pm
I need to convert the query output into dictionary, currently the output type is tuple. There is 3 Table output, how to convert into a single Dictionary output with the Column name respectively.
I tried zip and dict to covert but it
gives error.
import psycopg2
# establishing the connection
conn = psycopg2.connect(
database="CONNETpy",
user='postgres',
password='pass',
host='localhost',
port= '5432'
)
cursor = conn.cursor()
tables = ["Class_A", "Class_B", "Class_C"]
for table in tables:
cursor.execute(f"SELECT * FROM {table}")
results = cursor.fetchall()
c=(f"{table}",results)
dict1=dict(zip(results))
print(dict1)
Pulling schema updates from Postgres
31 March 2026 @ 10:39 am
I have few node microservices connected to single postgres db. I also have an elixir service for realtime message passing between BE and FE.
I am now enhancing realtime service with some additional features, so I added ecto and ash_postgres to mix and connected with postgres. Since core app is nodejs, I want that to be source of truth for db schema changes, and elixir should pull updated schema into the model layer. We have multi schema db, and public schema would be readonly, and elx would be full access schema for elixir.
I tried this using introspex
mix ecto.gen.schema --repo RealtimeService.Repo.Public --path lib/realtime_service/ --module-prefix RealtimeService.Db.Public.Models --schema public
and it was able to generate initial schema but it just wrote comments for fields with enums and jsonb objects. Also I could not pull updates again.
I need a way to update model layer in elixi