Month: September 2024
Loop-Component in Group-Chats no access for certain users
When we create a Loop-Component in Group-Chats no one except the creator is able to edit or see the component. When i want to grant access for all users in the chat there is an error “access rights could not be opened”. The problem occurs since end of August, is this a bug in the new version?
When we create a Loop-Component in Group-Chats no one except the creator is able to edit or see the component. When i want to grant access for all users in the chat there is an error “access rights could not be opened”. The problem occurs since end of August, is this a bug in the new version? Read More
Update sign-in technology before September 16th, 2024.
I have an old Macbook and can’t upgrade high enough for the new Outlook on my computer. My iphone is new. How can I keep access to my emails?
Thank you,
Worrried about losing 20 years of emails!
I have an old Macbook and can’t upgrade high enough for the new Outlook on my computer. My iphone is new. How can I keep access to my emails? Thank you,Worrried about losing 20 years of emails! Read More
can we open a teams chat pop-up in Msteams.
I have a Msteams bot and on clicking a action button it should open a pop-up can we achieve this is Msteams?
attaching ss for reference
on clicking open pop-up.
a pop-up for chaat should open up. this is the use case we are trying to achieve
I have a Msteams bot and on clicking a action button it should open a pop-up can we achieve this is Msteams?attaching ss for reference on clicking open pop-up.a pop-up for chaat should open up. this is the use case we are trying to achieve Read More
M365 Compliance connector error in Power Automate flow with retention label action
Hi everyone,
I’ve been troubleshooting this issue for some time now but haven’t found a solution yet. I’m configuring retention labels in Purview that trigger a ‘Run a Power Automate Flow’ action at the end of the retention period. This functionality is outlined in this Microsoft Learn article: Customize what happens at the end of the retention period | Microsoft Learn
The issue arises on the Power Automate side. To set up the flow that integrates with the retention label, the Compliance 365 Connector must be used. This connector requires a Power Automate Premium license, which I have on my account. The flows are also set up in the Default Power Automate environment, as required.
Despite following all the necessary steps, the flows won’t launch. I keep encountering the same error each time. I’ve even tried creating multiple retention labels and corresponding flows, each using the compliance connector, but the result is always the same.
I’ve attached documentation with screenshots for reference:
First error in flow checker:
When opening the flow I see ‘Forbidden Error’ and ‘The response is not in JSON format’
These are the inputs:
These are the outputs:
For test purposes I created multiple retention labels with each time configured to start the flow 1-5 days after the label is applied. Each time getting the same errors. I know it can sometimes take some time for a labels action to be run, but has been a few months now.
Please help
Hi everyone, I’ve been troubleshooting this issue for some time now but haven’t found a solution yet. I’m configuring retention labels in Purview that trigger a ‘Run a Power Automate Flow’ action at the end of the retention period. This functionality is outlined in this Microsoft Learn article: Customize what happens at the end of the retention period | Microsoft LearnThe issue arises on the Power Automate side. To set up the flow that integrates with the retention label, the Compliance 365 Connector must be used. This connector requires a Power Automate Premium license, which I have on my account. The flows are also set up in the Default Power Automate environment, as required. Despite following all the necessary steps, the flows won’t launch. I keep encountering the same error each time. I’ve even tried creating multiple retention labels and corresponding flows, each using the compliance connector, but the result is always the same.I’ve attached documentation with screenshots for reference: First error in flow checker: When opening the flow I see ‘Forbidden Error’ and ‘The response is not in JSON format’ These are the inputs: These are the outputs:For test purposes I created multiple retention labels with each time configured to start the flow 1-5 days after the label is applied. Each time getting the same errors. I know it can sometimes take some time for a labels action to be run, but has been a few months now. Please help Read More
Setup Teams Toolkit RAG bot with Azure Ai Search indexes
Hello, new to the forum and im trying to learn how i could create a Teams RAG bot which would use Azure Ai Search indexers aswell as default OPENAI LLM.
I have a Azure OpenAI created and working.
I have created a Azure Storage where i have uploaded a bunch of PDFs, which i have connected through datasources in Azure Ai Search.
I have also created a indexer that will index files in the Azure Storage.
This all works, without any problems.
But when it comes to debugging my bot in Teams Toolkit on my computer, i keep running into that the bot doesn’t have any info of those PDFs i’ve uploaded and indexed. I have already edited the files:
src/indexers/setup.py line 62 ” index = ‘myindexname’ “
Aswell as
src/bot.py line 40 ” indexName= ‘myindexname’ “
The only working solution i’ve found to this is if i put my PDFs in src/indexers/data/.
I have edited my src/indexers/get_data.py to look like this:
import os
import PyPDF2
async def get_doc_data(embeddings):
docs = []
data_dir = os.path.join(os.getcwd(), ‘src/indexers/data/’)
pdf_files = [f for f in os.listdir(data_dir) if f.endswith(‘.pdf’)]
for idx, file_name in enumerate(pdf_files):
file_path = os.path.join(data_dir, file_name)
with open(file_path, ‘rb’) as file: # ‘rb’
reader = PyPDF2.PdfReader(file)
raw_description = “”
for page in reader.pages:
raw_description += page.extract_text() or “”
doc = {
“docId”: str(idx + 1),
“docTitle”: file_name,
“description”: raw_description,
“descriptionVector”: await get_embedding_vector(raw_description, embeddings=embeddings),
}
docs.append(doc)
return docs
async def get_embedding_vector(text: str, embeddings):
result = await embeddings.create_embeddings(text)
if result.status != ‘success’ or not result.output:
if result.status == ‘error’:
raise Exception(f”Failed to generate embeddings for description: <{text[:200]+’…’}>nnError: {result.output}”)
raise Exception(f”Failed to generate embeddings for description: <{text[:200]+’…’}>”)
return result.output[0]
When i run the command “python src/indexers/setup.py” it uploads my PDFs to an index and the teams toolkit bot have my pdf data. I can now chat over my PDFs data.
But i don’t want to be forced to upload my index like this everytime. I want to use a index that already exist and have datasources and indexers connected already to not be forced to manually update it or running that command.
This bot when finished will be uploaded to Teams, and will only be available for our users through Teams.
Does anybody know or have a guide to how i actually can achive this?
Hello, new to the forum and im trying to learn how i could create a Teams RAG bot which would use Azure Ai Search indexers aswell as default OPENAI LLM. I have a Azure OpenAI created and working.I have created a Azure Storage where i have uploaded a bunch of PDFs, which i have connected through datasources in Azure Ai Search.I have also created a indexer that will index files in the Azure Storage.This all works, without any problems. But when it comes to debugging my bot in Teams Toolkit on my computer, i keep running into that the bot doesn’t have any info of those PDFs i’ve uploaded and indexed. I have already edited the files:src/indexers/setup.py line 62 ” index = ‘myindexname’ “Aswell assrc/bot.py line 40 ” indexName= ‘myindexname’ “The only working solution i’ve found to this is if i put my PDFs in src/indexers/data/.I have edited my src/indexers/get_data.py to look like this:import os
import PyPDF2
async def get_doc_data(embeddings):
docs = []
data_dir = os.path.join(os.getcwd(), ‘src/indexers/data/’)
pdf_files = [f for f in os.listdir(data_dir) if f.endswith(‘.pdf’)]
for idx, file_name in enumerate(pdf_files):
file_path = os.path.join(data_dir, file_name)
with open(file_path, ‘rb’) as file: # ‘rb’
reader = PyPDF2.PdfReader(file)
raw_description = “”
for page in reader.pages:
raw_description += page.extract_text() or “”
doc = {
“docId”: str(idx + 1),
“docTitle”: file_name,
“description”: raw_description,
“descriptionVector”: await get_embedding_vector(raw_description, embeddings=embeddings),
}
docs.append(doc)
return docs
async def get_embedding_vector(text: str, embeddings):
result = await embeddings.create_embeddings(text)
if result.status != ‘success’ or not result.output:
if result.status == ‘error’:
raise Exception(f”Failed to generate embeddings for description: <{text[:200]+’…’}>nnError: {result.output}”)
raise Exception(f”Failed to generate embeddings for description: <{text[:200]+’…’}>”)
return result.output[0]When i run the command “python src/indexers/setup.py” it uploads my PDFs to an index and the teams toolkit bot have my pdf data. I can now chat over my PDFs data. But i don’t want to be forced to upload my index like this everytime. I want to use a index that already exist and have datasources and indexers connected already to not be forced to manually update it or running that command. This bot when finished will be uploaded to Teams, and will only be available for our users through Teams.Does anybody know or have a guide to how i actually can achive this? Read More
How can I repair corrupted video files on Windows?
Recently I encountered a very troublesome problem. Some of my important video files were suddenly damaged when they were copied to the hard disk. They could not be opened or played. I tried using different players, such as VLC and Windows Media Player, but the results were the same, indicating that the file was damaged or could not be played. Because these videos are very important to me, I was very anxious and didn’t know how to repair corrupted video files.
I also searched for a lot of methods on the Internet, such as changing the file format and using command line tools to repair, but none of them worked. I heard that there are some special video repair tools that can solve this problem, but I am not sure which one is better or whether the operation is too complicated. So I would like to ask everyone, is there any useful tool or method to repair damaged video files?
Recently I encountered a very troublesome problem. Some of my important video files were suddenly damaged when they were copied to the hard disk. They could not be opened or played. I tried using different players, such as VLC and Windows Media Player, but the results were the same, indicating that the file was damaged or could not be played. Because these videos are very important to me, I was very anxious and didn’t know how to repair corrupted video files. I also searched for a lot of methods on the Internet, such as changing the file format and using command line tools to repair, but none of them worked. I heard that there are some special video repair tools that can solve this problem, but I am not sure which one is better or whether the operation is too complicated. So I would like to ask everyone, is there any useful tool or method to repair damaged video files? Read More
Resetting Outlook email password
I am no longer able to sign in to my Outlook email account through Microsoft Office 2013. I think I’m using the password I’ve always used, but it’s not being recognized. Is there a way to reset my password? I’ve tried everything I can think of but haven’t found a solution. Thanks for any help you can provide.
Mike
I am no longer able to sign in to my Outlook email account through Microsoft Office 2013. I think I’m using the password I’ve always used, but it’s not being recognized. Is there a way to reset my password? I’ve tried everything I can think of but haven’t found a solution. Thanks for any help you can provide. Mike Read More
Manage NSG association on Subnets via Azure Policy
In this blog article, we will cover how to deny the creation of a subnet in a Virtual Network if the subnet does not have a Network Security Group associated with it, using a custom Azure Policy.
You can follow the steps below to create a custom policy:
1) From the Azure portal, access Azure policy, then definitions blade.
2) Create a new policy definition.
3) Add the definition location (which subscription will be hosting this policy), Name, and description.
4) Set the category to use existing and select Networking (as below):
5) Then add the below policy definition into the rule field:
Note: you can adjust the below parameters as needed, also the below example excludes the following subnets. You can add more subnets of your choice.
“GatewaySubnet”,
“AzureFirewallSubnet”,
“AzureBastionSubnet”,
“AzureFirewallManagementSubnet”
{
“mode”: “All”,
“parameters”: {
“excludedSubnets”: {
“type”: “Array”,
“metadata”: {
“displayName”: “Excluded subnets”,
“description”: “The list of subnet names to exclude from the policy”
},
“defaultValue”: [
“GatewaySubnet”,
“AzureFirewallSubnet”,
“AzureBastionSubnet”,
“AzureFirewallManagementSubnet”,
“YourCustomSubnet”
]
}
},
“policyRule”: {
“if”: {
“anyOf”: [
{
“allOf”: [
{
“field”: “type”,
“equals”: “Microsoft.Network/virtualNetworks”
},
{
“not”: {
“field”: “Microsoft.Network/virtualNetworks/subnets[*].networkSecurityGroup.id”,
“exists”: true
}
},
{
“field”: “Microsoft.Network/virtualNetworks/subnets[*].name”,
“notIn”: “[parameters(‘excludedSubnets’)]”
}
]
},
{
“allOf”: [
{
“field”: “type”,
“equals”: “Microsoft.Network/virtualNetworks/subnets”
},
{
“not”: {
“field”: “Microsoft.Network/virtualNetworks/subnets/networkSecurityGroup.id”,
“exists”: true
}
},
{
“field”: “name”,
“notIn”: “[parameters(‘excludedSubnets’)]”
}
]
}
]
},
“then”: {
“effect”: “deny”
}
}
}
6) Then save the policy.
Now you can assign this policy as per your requirements.
1) From Azure policies page, and access definitions blade -> select the created custom policy, and click assign policy (you can assign on the Subscription level or a specific resource group depending on your business requirements).
2) To update the excluded subnet list at time of policy assignment. Go to Parameters tab, then uncheck the box “Only show parameters that need input or review” and select of the three dots next to the “Excluded subnets” box.
3) It will open the editor; update the subnet name you want to exclude and click save.
4) Click Next, and Next, update the “Non-compliance message” as per your requirement.
5) Click review + create and review the output. Once verified create the policy assignment. Policy assignment usually takes around 5-15 minutes to take effect.
To update the list of excluded subnets after the policy assignment.
1) From the Azure portal, access Azure policy, then Assignments blade and search the assignment.
2) Open the assignment by clicking on the name
3) Select Edit assignment
4) Go to Parameters tab, then uncheck the box “Only show parameters that need input or review” and select of the three dots next to the “Excluded subnets” box.
5) It will open the editor; update the subnet name you want to exclude and click save.
Disclaimer
Please note that products and options presented in this article are subject to change. This article reflects custom policy for Azure Subnets in September 2024.
If users have the required permissions, they can create exemptions for their resources, which makes this policy ineffective for those resources.
Some subnets managed by Azure services may not require an NSG. Ensure these subnets are added to the excluded subnet list or use a policy exception as needed.
It is highly recommended to test this policy in a non-production environment before applying it to your production environment to avoid any unintended disruptions and to make sure it meets your requirements.
References
Tutorial: Create a custom policy definition – Azure Policy | Microsoft Learn
Programmatically create policies – Azure Policy | Microsoft Learn
Troubleshoot common errors – Azure Policy | Microsoft Learn
Overview of Azure Policy – Azure Policy | Microsoft Learn
Microsoft Tech Community – Latest Blogs –Read More
how do I load zip file in matlab code?
for i = 1:length(files)
file = fullfile(‘c:sar’, files(i).name);
disp(file);
% Load and preprocess the data
source = loadProduct(file); % Define or replace this function with actual data loading
it gives following errors
>> SAR_preprocessing
c:sarS1A_IW_GRDH_1SDV_20240823T005527_20240823T005552_055333_06BF4D_21CD.SAFE.zip
Error in SAR_preprocessing>main (line 44)
source = loadProduct(file); % Define or replace this function with actual data loading
Unrecognized function or variable ‘loadProduct’.
Please suggest me how to load zip file for further processing.
Kuldeepfor i = 1:length(files)
file = fullfile(‘c:sar’, files(i).name);
disp(file);
% Load and preprocess the data
source = loadProduct(file); % Define or replace this function with actual data loading
it gives following errors
>> SAR_preprocessing
c:sarS1A_IW_GRDH_1SDV_20240823T005527_20240823T005552_055333_06BF4D_21CD.SAFE.zip
Error in SAR_preprocessing>main (line 44)
source = loadProduct(file); % Define or replace this function with actual data loading
Unrecognized function or variable ‘loadProduct’.
Please suggest me how to load zip file for further processing.
Kuldeep for i = 1:length(files)
file = fullfile(‘c:sar’, files(i).name);
disp(file);
% Load and preprocess the data
source = loadProduct(file); % Define or replace this function with actual data loading
it gives following errors
>> SAR_preprocessing
c:sarS1A_IW_GRDH_1SDV_20240823T005527_20240823T005552_055333_06BF4D_21CD.SAFE.zip
Error in SAR_preprocessing>main (line 44)
source = loadProduct(file); % Define or replace this function with actual data loading
Unrecognized function or variable ‘loadProduct’.
Please suggest me how to load zip file for further processing.
Kuldeep how do i load zip file in matlab code? MATLAB Answers — New Questions
plot limit problem for x sides
the code show to me my plot just for x=12 i need it to work for x=0
i did the xlim and the ylim but i havn’t no think !
semilogy(vec_SNR_dB,var_ber, ‘c’, ‘MarkerSize’, 3 );
ylim( [ 1e-6, 100 ] ); xlim( [ 0, 20 ] );
grid on;
hold on ;
can some one help me plz !the code show to me my plot just for x=12 i need it to work for x=0
i did the xlim and the ylim but i havn’t no think !
semilogy(vec_SNR_dB,var_ber, ‘c’, ‘MarkerSize’, 3 );
ylim( [ 1e-6, 100 ] ); xlim( [ 0, 20 ] );
grid on;
hold on ;
can some one help me plz ! the code show to me my plot just for x=12 i need it to work for x=0
i did the xlim and the ylim but i havn’t no think !
semilogy(vec_SNR_dB,var_ber, ‘c’, ‘MarkerSize’, 3 );
ylim( [ 1e-6, 100 ] ); xlim( [ 0, 20 ] );
grid on;
hold on ;
can some one help me plz ! plot, xlim, error MATLAB Answers — New Questions
I’m trying to solve jeffry hamel equation using RK4 but it’s not giving output as expected.
%%%% Jeffry-Hamel equation stability analysis %%%%
%%% ode:(U”’ +2sUU’ = 0) such that U’ = g, g’ = h, h’ = -2*s*U*g %%%
%%% where s = S/a and a = slope of the wall %%%
%%% BC: U =1,g =0 at y =0 && U = 0, g= 10 (Kn = 0.1) at y = 1 %%%
%%% Find h(0) such that g(1) = 10 %%%
%% Range of Variable %%
y_cl = 0;
y_chw = 1;
Re = 0.68e5;
S = 6;
%% Boundary conditions %%
U0 = 1;
U1 = 0;
g0 = 0;
g1 = 10;
h0 = [0.1 0.3];
%% Improved step size and error tolerance %%
d_y = 0.001; % Reduce step size for better accuracy
N = (y_chw -y_cl)/d_y;
err = 1;
max_iter = 6e5; % Limit the maximum number of iterations
iter_count = 0;
%% initializing solution %%
y = y_cl : d_y : y_chw; % y coordinate for plot function
while err > 1e-15 && iter_count < max_iter
iter_count = iter_count + 1;
for j = 1:2
F = zeros(N+1, 3); % Initialize solution matrix
F(1, 🙂 = [U0 g0 h0(j)];
% Runge-Kutta 4th order method
for i = 1:N
k1 = d_y * [F(i, 2) F(i, 3) -(F(i, 1) * F(i, 2)) * 2 * S];
k2 = d_y * [F(i, 2) + k1(2)/2 F(i, 3) + k1(3)/2 -( (F(i, 1) + k1(1)/2) * (F(i, 2) + k1(2)/2) ) * 2 * S];
k3 = d_y * [F(i, 2) + k2(2)/2 F(i, 3) + k2(3)/2 -( (F(i, 1) + k2(1)/2) * (F(i, 2) + k2(2)/2) ) * 2 * S];
k4 = d_y * [F(i, 2) + k3(2) F(i, 3) + k3(3) -( (F(i, 1) + k3(1)) * (F(i, 2) + k3(2)) ) * 2 * S];
F(i+1, 🙂 = F(i, 🙂 + (1/6) * (k1 + 2*k2 + 2*k3 + k4);
end
g_1(j) = F(end, 2); % Store g(1) for each trial
end
% Compute error and update h0
[err, index] = max(abs(g1 – g_1));
P = diff(g_1);
if P ~= 0
h0_new = h0(1) + (diff(h0) / diff(g_1)) * (g1 – g_1(1));
h0(index) = h0_new;
end
end
% Final check on iteration count
if iter_count >= max_iter
warning(‘Max iterations reached. Convergence may not be achieved.’);
end
%% plotting
f1=figure;
f1.Units = ‘normalized’;
f1.Position = [0.1 0.1 0.8 0.6];
plot(F,y’,’LineWidth’,1);
xlim([0 1]);
ylim([0 1]);
axis square
yticks(0:0.2:1);
yticklabels({‘0′,’0.2′,’0.4′,’0.6′,’0.8′,’1’});
xticks(0:0.2:1);
xticklabels({‘0′,’0.2′,’0.4′,’0.6′,’0.8′,’1’});
grid on
title(‘Jeffry Hamel solution’);
xlabel(‘y’);
legend(‘U’,’U"’,’U"”’);
I’m also inserting a plot the I want to see:
please help me in getting this resolved.
Thanks in advance.%%%% Jeffry-Hamel equation stability analysis %%%%
%%% ode:(U”’ +2sUU’ = 0) such that U’ = g, g’ = h, h’ = -2*s*U*g %%%
%%% where s = S/a and a = slope of the wall %%%
%%% BC: U =1,g =0 at y =0 && U = 0, g= 10 (Kn = 0.1) at y = 1 %%%
%%% Find h(0) such that g(1) = 10 %%%
%% Range of Variable %%
y_cl = 0;
y_chw = 1;
Re = 0.68e5;
S = 6;
%% Boundary conditions %%
U0 = 1;
U1 = 0;
g0 = 0;
g1 = 10;
h0 = [0.1 0.3];
%% Improved step size and error tolerance %%
d_y = 0.001; % Reduce step size for better accuracy
N = (y_chw -y_cl)/d_y;
err = 1;
max_iter = 6e5; % Limit the maximum number of iterations
iter_count = 0;
%% initializing solution %%
y = y_cl : d_y : y_chw; % y coordinate for plot function
while err > 1e-15 && iter_count < max_iter
iter_count = iter_count + 1;
for j = 1:2
F = zeros(N+1, 3); % Initialize solution matrix
F(1, 🙂 = [U0 g0 h0(j)];
% Runge-Kutta 4th order method
for i = 1:N
k1 = d_y * [F(i, 2) F(i, 3) -(F(i, 1) * F(i, 2)) * 2 * S];
k2 = d_y * [F(i, 2) + k1(2)/2 F(i, 3) + k1(3)/2 -( (F(i, 1) + k1(1)/2) * (F(i, 2) + k1(2)/2) ) * 2 * S];
k3 = d_y * [F(i, 2) + k2(2)/2 F(i, 3) + k2(3)/2 -( (F(i, 1) + k2(1)/2) * (F(i, 2) + k2(2)/2) ) * 2 * S];
k4 = d_y * [F(i, 2) + k3(2) F(i, 3) + k3(3) -( (F(i, 1) + k3(1)) * (F(i, 2) + k3(2)) ) * 2 * S];
F(i+1, 🙂 = F(i, 🙂 + (1/6) * (k1 + 2*k2 + 2*k3 + k4);
end
g_1(j) = F(end, 2); % Store g(1) for each trial
end
% Compute error and update h0
[err, index] = max(abs(g1 – g_1));
P = diff(g_1);
if P ~= 0
h0_new = h0(1) + (diff(h0) / diff(g_1)) * (g1 – g_1(1));
h0(index) = h0_new;
end
end
% Final check on iteration count
if iter_count >= max_iter
warning(‘Max iterations reached. Convergence may not be achieved.’);
end
%% plotting
f1=figure;
f1.Units = ‘normalized’;
f1.Position = [0.1 0.1 0.8 0.6];
plot(F,y’,’LineWidth’,1);
xlim([0 1]);
ylim([0 1]);
axis square
yticks(0:0.2:1);
yticklabels({‘0′,’0.2′,’0.4′,’0.6′,’0.8′,’1’});
xticks(0:0.2:1);
xticklabels({‘0′,’0.2′,’0.4′,’0.6′,’0.8′,’1’});
grid on
title(‘Jeffry Hamel solution’);
xlabel(‘y’);
legend(‘U’,’U"’,’U"”’);
I’m also inserting a plot the I want to see:
please help me in getting this resolved.
Thanks in advance. %%%% Jeffry-Hamel equation stability analysis %%%%
%%% ode:(U”’ +2sUU’ = 0) such that U’ = g, g’ = h, h’ = -2*s*U*g %%%
%%% where s = S/a and a = slope of the wall %%%
%%% BC: U =1,g =0 at y =0 && U = 0, g= 10 (Kn = 0.1) at y = 1 %%%
%%% Find h(0) such that g(1) = 10 %%%
%% Range of Variable %%
y_cl = 0;
y_chw = 1;
Re = 0.68e5;
S = 6;
%% Boundary conditions %%
U0 = 1;
U1 = 0;
g0 = 0;
g1 = 10;
h0 = [0.1 0.3];
%% Improved step size and error tolerance %%
d_y = 0.001; % Reduce step size for better accuracy
N = (y_chw -y_cl)/d_y;
err = 1;
max_iter = 6e5; % Limit the maximum number of iterations
iter_count = 0;
%% initializing solution %%
y = y_cl : d_y : y_chw; % y coordinate for plot function
while err > 1e-15 && iter_count < max_iter
iter_count = iter_count + 1;
for j = 1:2
F = zeros(N+1, 3); % Initialize solution matrix
F(1, 🙂 = [U0 g0 h0(j)];
% Runge-Kutta 4th order method
for i = 1:N
k1 = d_y * [F(i, 2) F(i, 3) -(F(i, 1) * F(i, 2)) * 2 * S];
k2 = d_y * [F(i, 2) + k1(2)/2 F(i, 3) + k1(3)/2 -( (F(i, 1) + k1(1)/2) * (F(i, 2) + k1(2)/2) ) * 2 * S];
k3 = d_y * [F(i, 2) + k2(2)/2 F(i, 3) + k2(3)/2 -( (F(i, 1) + k2(1)/2) * (F(i, 2) + k2(2)/2) ) * 2 * S];
k4 = d_y * [F(i, 2) + k3(2) F(i, 3) + k3(3) -( (F(i, 1) + k3(1)) * (F(i, 2) + k3(2)) ) * 2 * S];
F(i+1, 🙂 = F(i, 🙂 + (1/6) * (k1 + 2*k2 + 2*k3 + k4);
end
g_1(j) = F(end, 2); % Store g(1) for each trial
end
% Compute error and update h0
[err, index] = max(abs(g1 – g_1));
P = diff(g_1);
if P ~= 0
h0_new = h0(1) + (diff(h0) / diff(g_1)) * (g1 – g_1(1));
h0(index) = h0_new;
end
end
% Final check on iteration count
if iter_count >= max_iter
warning(‘Max iterations reached. Convergence may not be achieved.’);
end
%% plotting
f1=figure;
f1.Units = ‘normalized’;
f1.Position = [0.1 0.1 0.8 0.6];
plot(F,y’,’LineWidth’,1);
xlim([0 1]);
ylim([0 1]);
axis square
yticks(0:0.2:1);
yticklabels({‘0′,’0.2′,’0.4′,’0.6′,’0.8′,’1’});
xticks(0:0.2:1);
xticklabels({‘0′,’0.2′,’0.4′,’0.6′,’0.8′,’1’});
grid on
title(‘Jeffry Hamel solution’);
xlabel(‘y’);
legend(‘U’,’U"’,’U"”’);
I’m also inserting a plot the I want to see:
please help me in getting this resolved.
Thanks in advance. rk4, matlab, channelflow MATLAB Answers — New Questions
Encoding the image using Huffman transform and converting to non-overlapping blocks
Hi, I encoded an image with huffman transform and converted the image into a contiguous bit string. I want to convert this bit string into 4×4 blocks. Can anyone guide me?Hi, I encoded an image with huffman transform and converted the image into a contiguous bit string. I want to convert this bit string into 4×4 blocks. Can anyone guide me? Hi, I encoded an image with huffman transform and converted the image into a contiguous bit string. I want to convert this bit string into 4×4 blocks. Can anyone guide me? huffman, image processing, binary MATLAB Answers — New Questions
Auto add access to Document Set folder
I have a company, SharePoint, where I have a Documents Library called Projects. I will store multiple folders for my team projects; these are Documents Set folders so I can add certain Metadata. Part of the metadata is a client email (OP Email) and Client name (OP Name). Can I use this information to automatically give the client access to the new document set folder when it’s created?
Please let me know if any further information is required
I have a company, SharePoint, where I have a Documents Library called Projects. I will store multiple folders for my team projects; these are Documents Set folders so I can add certain Metadata. Part of the metadata is a client email (OP Email) and Client name (OP Name). Can I use this information to automatically give the client access to the new document set folder when it’s created? Please let me know if any further information is required Read More
The best screen recorder for Windows 11 PC without watermark?
Hi everyone,
As a support engineer, I need to record screen on Windows 11 PC frequently for our company’s products. Currently, I’m looking for the best screen recorder for Windows 11 PC that also comes with advanced video editing capabilities. I am going to record screen with audio, so I want something that supports system sound as well as microphone input.
It’s important for the software to have robust editing tools, allowing me to cut, merge, and add effects to the recorded videos. If it supports multiple formats like MP4, AVI, etc., that would be a huge plus. Does anyone have recommendations for reliable screen recording software for PC with strong built-in editing features? I’d prefer something that’s easy to use but still powerful enough for professional-level work.
Thanks for your suggestions!
Hi everyone, As a support engineer, I need to record screen on Windows 11 PC frequently for our company’s products. Currently, I’m looking for the best screen recorder for Windows 11 PC that also comes with advanced video editing capabilities. I am going to record screen with audio, so I want something that supports system sound as well as microphone input. It’s important for the software to have robust editing tools, allowing me to cut, merge, and add effects to the recorded videos. If it supports multiple formats like MP4, AVI, etc., that would be a huge plus. Does anyone have recommendations for reliable screen recording software for PC with strong built-in editing features? I’d prefer something that’s easy to use but still powerful enough for professional-level work. Thanks for your suggestions! Read More
Reading confirmation in Sharepoint documents
Hi,
i want to implement a reading confirmation for external users in Sharepoint.
I configured an “I’ve read it”” button which trigger a power automate flow. Now i want to change the value of the “Reading confirmation” field from “pending confirmation” to “accepted”…at the end the button should disappear for the user who triggers it.
Is anything like this possible?
Slavko
Hi,i want to implement a reading confirmation for external users in Sharepoint.I configured an “I’ve read it”” button which trigger a power automate flow. Now i want to change the value of the “Reading confirmation” field from “pending confirmation” to “accepted”…at the end the button should disappear for the user who triggers it.Is anything like this possible?RegardsSlavko Read More
Outlook Issue
Hi guys, I’m new here and not 100% sure if this is the right place to post this question. If not, please point me in the right direction.
I have a user experiencing an old known bug in Outlook. Error message below:
“The properties of the message have been changed” prompt when forwarding/replying in Outlook
I have updated outlook, recreated the profile, ran an online repair, .olded the reg value and even checked the mail settings to see if there was a cause there. None of this has fixed the issue unfortunately.
Any ideas?
Hi guys, I’m new here and not 100% sure if this is the right place to post this question. If not, please point me in the right direction. I have a user experiencing an old known bug in Outlook. Error message below: “The properties of the message have been changed” prompt when forwarding/replying in OutlookI have updated outlook, recreated the profile, ran an online repair, .olded the reg value and even checked the mail settings to see if there was a cause there. None of this has fixed the issue unfortunately. Any ideas? Read More
Visibility of Site
Hi Everyone,
I was trying to search some sites in my Microsoft edge but they are not visible i thing they are not indexed what could be the reason.
here are sites:
https://betinfo.pro/
can anybody help.
Thanks
Hi Everyone,I was trying to search some sites in my Microsoft edge but they are not visible i thing they are not indexed what could be the reason.here are sites:https://sheraz.website/https://urduinbox.pro/https://betinfo.pro/can anybody help.Thanks Read More
Microsoft 365 Licensing Report Script V1.94
Adding Detailed License Assignment Reporting
The Microsoft 365 licensing report script is possibly the most popular PowerShell project I’ve published. Given the amount of money that organizations can lay out on Microsoft 365 licenses, I guess people like keeping an eye on where the pennies get spent.
Over the past few months, I’ve responded to several requests for enhancements, such as highlighting license costs for disabled accounts, adding support for a cost center analysis, and so on. More requests keep on coming in, the latest being the desire to be able to report license costs per company within a tenant that supports several operating companies.
Previously, I’d been asked to include a line-by-line (or rather license-by-license) report per user. At the time, I didn’t see much point in doing this, but further reflection made me think that it would be good to output a list of individual license assignments that administrators could slice and dice to meet their needs.
Detailed License Assignment Report
V1.94 of the Microsoft 365 licensing report script does just that. Each license assignment, direct or via group-based licensing, is captured in an array called $DetailedLicenseReport. The report script creates the array automatically. To illustrate how the information can be used, if the $DetailedCompanyAnalyis variable is $true (the variable is set to $true in the script), the report script generates a detailed report about license assignments for each company found in the tenant (Figure 1). Each license is listed along with its assignees and the monthly cost of the licenses.
Obviously, creating such a report depends on accurate values in the company property of user accounts. If you didn’t want to report by company, it would be easy to change the code to create a detailed report of license assignments by department or cost center.
Removing Expired Licenses
The new version of the Microsoft 365 Licensing Report script also addresses expired licenses. When a subscription for a license comes to an end, it’s possible that some accounts have assignments for expired licenses. Eventually, Microsoft 365 removes the expired subscription and the expired licenses, but until this happens it’s possible that the report would include detailed of expired licenses, which is not what anyone would want.
I discovered this possibility when my tenant replaced some Office 365 E5 licenses with Office 365 with Office 365 E5 EEA (No Teams) licenses. This is one of the licenses created without a Teams service plan in an attempt to satisfy anti-competition concerns of the European Union. Microsoft subsequently decided to decouple Teams from all Office 365 and Microsoft 365 products, and new customers can no longer buy licenses that include Teams.
In any case, my tenant has some of the Office 365 E5 EEA (No Teams) licenses and separate Microsoft Teams EEA licenses, but some of the licenses from the older Office 365 E5 subscription still turned up on the report. This doesn’t happen anymore because the script now checks licenses against current subscriptions to remove any trace of expired subscriptions.
Downloading and Using the Microsoft 365 Licensing Report Script
V1.94 of the Microsoft 365 licensing report script is available from GitHub. If you haven’t used the script before, I encourage you to read the original article that launched me on this path and another article describing how the script learns about the costs of individual licenses. Things will become much clearer when you understand the basics of Microsoft 365 licensing, SKUs, products, service plans, and how to generate the CSV files used by the script.
Remember, this is all done with PowerShell and some calls to the Microsoft Graph to find information about the licenses assigned to users. No black magic is used. A script that’s over 700 lines long might seem intimidating, but many of the lines are blank or comments. Like any other PowerShell script, have fun amending the code to meet your needs!
Support the work of the Office 365 for IT Pros team by subscribing to the Office 365 for IT Pros eBook. Your support pays for the time we need to track, analyze, and document the changing world of Microsoft 365 and Office 365 (and write scripts like the Microsoft 365 Licensing report).
Graphics Incompatibilities in Control System Toolbox between R2024a and R2024b
A1 = 1; wp1 = 10;
A2 = -2; wp2 = 20;
s = tf(‘s’);
H1 = A1 / (1 + s/wp1); H2 = A2 / (1 + s/wp2);
H = H1 + H2;
figure;
bp = bodeplot(H, H1, H2);
hLines = findobj(gcf, Type=’line’);
set(hLines, LineWidth=2); % not working in R2024b?
set(hLines(6), LineWidth=6, DisplayName=’H2′); % not working in R2024b?
set(hLines(3), LineWidth=6, DisplayName=’H2′); % not working in R2024b?
set(findall(gcf, ‘Type’, ‘axes’), LineWidth=1.5, Box="off", fontsize=12); % not working in R2024b?
% Any correct/equivalent/recommended practice in R2024b?
figure;
pzmap(H, H1, H2);
set(gca, YTick=[], Box="off", LineWidth=1.5, XAxisLocation=’origin’, YAxisLocation=’origin’);
% get an R2024b Error using controllib.chart.PZPlot/set Unrecognized property YTick for class PZPlot.
% Any correct/equivalent/recommended practice in R2024b?
R2024a:
R2024b:
The "Version History" of "BodePlot" and "PZPlot" does point out changes in "gca", but for the "Chart Object" mentioned in it, I Googled it and couldn’t find the relevant documentation, so I don’t know how to get axes from Chart Object. Since the R2024b version is too new, I don’t know where to find the information.A1 = 1; wp1 = 10;
A2 = -2; wp2 = 20;
s = tf(‘s’);
H1 = A1 / (1 + s/wp1); H2 = A2 / (1 + s/wp2);
H = H1 + H2;
figure;
bp = bodeplot(H, H1, H2);
hLines = findobj(gcf, Type=’line’);
set(hLines, LineWidth=2); % not working in R2024b?
set(hLines(6), LineWidth=6, DisplayName=’H2′); % not working in R2024b?
set(hLines(3), LineWidth=6, DisplayName=’H2′); % not working in R2024b?
set(findall(gcf, ‘Type’, ‘axes’), LineWidth=1.5, Box="off", fontsize=12); % not working in R2024b?
% Any correct/equivalent/recommended practice in R2024b?
figure;
pzmap(H, H1, H2);
set(gca, YTick=[], Box="off", LineWidth=1.5, XAxisLocation=’origin’, YAxisLocation=’origin’);
% get an R2024b Error using controllib.chart.PZPlot/set Unrecognized property YTick for class PZPlot.
% Any correct/equivalent/recommended practice in R2024b?
R2024a:
R2024b:
The "Version History" of "BodePlot" and "PZPlot" does point out changes in "gca", but for the "Chart Object" mentioned in it, I Googled it and couldn’t find the relevant documentation, so I don’t know how to get axes from Chart Object. Since the R2024b version is too new, I don’t know where to find the information. A1 = 1; wp1 = 10;
A2 = -2; wp2 = 20;
s = tf(‘s’);
H1 = A1 / (1 + s/wp1); H2 = A2 / (1 + s/wp2);
H = H1 + H2;
figure;
bp = bodeplot(H, H1, H2);
hLines = findobj(gcf, Type=’line’);
set(hLines, LineWidth=2); % not working in R2024b?
set(hLines(6), LineWidth=6, DisplayName=’H2′); % not working in R2024b?
set(hLines(3), LineWidth=6, DisplayName=’H2′); % not working in R2024b?
set(findall(gcf, ‘Type’, ‘axes’), LineWidth=1.5, Box="off", fontsize=12); % not working in R2024b?
% Any correct/equivalent/recommended practice in R2024b?
figure;
pzmap(H, H1, H2);
set(gca, YTick=[], Box="off", LineWidth=1.5, XAxisLocation=’origin’, YAxisLocation=’origin’);
% get an R2024b Error using controllib.chart.PZPlot/set Unrecognized property YTick for class PZPlot.
% Any correct/equivalent/recommended practice in R2024b?
R2024a:
R2024b:
The "Version History" of "BodePlot" and "PZPlot" does point out changes in "gca", but for the "Chart Object" mentioned in it, I Googled it and couldn’t find the relevant documentation, so I don’t know how to get axes from Chart Object. Since the R2024b version is too new, I don’t know where to find the information. graphics, figure, axis, handles MATLAB Answers — New Questions
Why does the signal become thicker after noise reduction and the dots on both sides diverge?
I want to apply a voice noise reduction program similar to the one below to my own 1D signal, but I found that after noise reduction, the 1D signal becomes thicker and the points at both ends of the signal become divergent, and I can’t find the cause of this phenomenon and how to fix it. Hope to get your help. Have a great day!
the program is that:
Dereverberate Speech Using Deep Learning Networks – MATLAB & Simulink – MathWorks 中国
my result is as follow:
the red is clean signal, the yellow is signal with noise, and the green is signal after denoisng.I want to apply a voice noise reduction program similar to the one below to my own 1D signal, but I found that after noise reduction, the 1D signal becomes thicker and the points at both ends of the signal become divergent, and I can’t find the cause of this phenomenon and how to fix it. Hope to get your help. Have a great day!
the program is that:
Dereverberate Speech Using Deep Learning Networks – MATLAB & Simulink – MathWorks 中国
my result is as follow:
the red is clean signal, the yellow is signal with noise, and the green is signal after denoisng. I want to apply a voice noise reduction program similar to the one below to my own 1D signal, but I found that after noise reduction, the 1D signal becomes thicker and the points at both ends of the signal become divergent, and I can’t find the cause of this phenomenon and how to fix it. Hope to get your help. Have a great day!
the program is that:
Dereverberate Speech Using Deep Learning Networks – MATLAB & Simulink – MathWorks 中国
my result is as follow:
the red is clean signal, the yellow is signal with noise, and the green is signal after denoisng. neural network, audio, cnn, signal denoise MATLAB Answers — New Questions