Month: September 2024
Android App broke down Calendar on WearOs
After the latest update (4.2434.1), I’ve got an empty calendar on my Pixel Watch
When I remove the update and went back to 4.2419.0, calendar works again.
More people got this?
After the latest update (4.2434.1), I’ve got an empty calendar on my Pixel WatchWhen I remove the update and went back to 4.2419.0, calendar works again. More people got this? Read More
Provide a custom Platform Abstraction Layer. external mode XCP
Hi,
I have implemented a toolchain based on costum target file cxc_ert.tlc
When I use external mode tcpip -> MEX-file name: ext_comm
The code is generated without problems.
Now I am changing for external mode using XCP on TCP/IP. For that on the sl_costumization.m script I add the line:
cm.ExtModeTransports.add(‘cxc_ert.tlc’, ‘XCP on TCP/IP’,’ext_xcp’, ‘Level1’);
After choose XCP on TCP/IP and try to generate the code the following error appears (see image below).
How can I provide a custom Platform Abstraction Layer? What is the meaning of that? I am new on the Embedded Coder. My target HW is ubuntu Core.
Can you help me?
Many thanks in advance
Miguel PintoHi,
I have implemented a toolchain based on costum target file cxc_ert.tlc
When I use external mode tcpip -> MEX-file name: ext_comm
The code is generated without problems.
Now I am changing for external mode using XCP on TCP/IP. For that on the sl_costumization.m script I add the line:
cm.ExtModeTransports.add(‘cxc_ert.tlc’, ‘XCP on TCP/IP’,’ext_xcp’, ‘Level1’);
After choose XCP on TCP/IP and try to generate the code the following error appears (see image below).
How can I provide a custom Platform Abstraction Layer? What is the meaning of that? I am new on the Embedded Coder. My target HW is ubuntu Core.
Can you help me?
Many thanks in advance
Miguel Pinto Hi,
I have implemented a toolchain based on costum target file cxc_ert.tlc
When I use external mode tcpip -> MEX-file name: ext_comm
The code is generated without problems.
Now I am changing for external mode using XCP on TCP/IP. For that on the sl_costumization.m script I add the line:
cm.ExtModeTransports.add(‘cxc_ert.tlc’, ‘XCP on TCP/IP’,’ext_xcp’, ‘Level1’);
After choose XCP on TCP/IP and try to generate the code the following error appears (see image below).
How can I provide a custom Platform Abstraction Layer? What is the meaning of that? I am new on the Embedded Coder. My target HW is ubuntu Core.
Can you help me?
Many thanks in advance
Miguel Pinto external mode, xcp on tcp/ip MATLAB Answers — New Questions
(Document redirection) Online documents do not remind you to select your geographic destination every time you reopen them
As far as I know, starting from MATLAB R2024b, the documentation is defaulted to be accessed online. However, the problem is that every time I open the official online documentation through my browser, it defaults or forcibly redirects to the documentation hosted site for my current geographic location, often with multiple pop-up reminders, which is very annoying!
Suggestion: Could there be an option to set preferences linked to my personal account so that the documentation defaults to my chosen language preference without having to deal with “forced reminders” or “forced redirection” based on my geographic location? I prefer reading the English documentation, but the website automatically redirects me to the Chinese documentation due to my geolocation, which is quite frustrating!As far as I know, starting from MATLAB R2024b, the documentation is defaulted to be accessed online. However, the problem is that every time I open the official online documentation through my browser, it defaults or forcibly redirects to the documentation hosted site for my current geographic location, often with multiple pop-up reminders, which is very annoying!
Suggestion: Could there be an option to set preferences linked to my personal account so that the documentation defaults to my chosen language preference without having to deal with “forced reminders” or “forced redirection” based on my geographic location? I prefer reading the English documentation, but the website automatically redirects me to the Chinese documentation due to my geolocation, which is quite frustrating! As far as I know, starting from MATLAB R2024b, the documentation is defaulted to be accessed online. However, the problem is that every time I open the official online documentation through my browser, it defaults or forcibly redirects to the documentation hosted site for my current geographic location, often with multiple pop-up reminders, which is very annoying!
Suggestion: Could there be an option to set preferences linked to my personal account so that the documentation defaults to my chosen language preference without having to deal with “forced reminders” or “forced redirection” based on my geographic location? I prefer reading the English documentation, but the website automatically redirects me to the Chinese documentation due to my geolocation, which is quite frustrating! doc, documentation, online MATLAB Answers — New Questions
How can I read an image of size 2048*2048 pixels using Matlab 2013 by the “imread()” command ?
Please, how can I read an image of size 2048*2048 pixels using Matlab 2013 by the "imread()" command ? thank you.Please, how can I read an image of size 2048*2048 pixels using Matlab 2013 by the "imread()" command ? thank you. Please, how can I read an image of size 2048*2048 pixels using Matlab 2013 by the "imread()" command ? thank you. image processing, image acquisition MATLAB Answers — New Questions
Failure of RoadRunner and CARLA co-simulation
I have purchased a new computer and want to run a simulation using RoadRunner and CARLA.
I have installed Carla, Unreal Engine 4, and RoadRunner.
I have run the “Run a RoadRunner Scenario Co-simulation with CARLA Visualization” on the site [1].
[1]https://jp.mathworks.com/help/roadrunner-scenario/ug/run-roadrunner-scenario-and-carla-cosimulations.html
Then the following error appears in the RoadRunner output and the simulation with CARLA does not start.
> ——————– Simulation STARTED ——————–
> WARNING: Unable to locate a simulator for actor behavior ‘{b63406a3-fd5d-409e-8026-d5af7017d251}’, applying RoadRunner default behavior to this actor.
Invalid actor behavior:.
– Behavior asset: Assets/Behaviors/CARLA.rrbehavior
– Platform type: External
– Platform name: CARLA
The following simulation clients are active:
– {3aeba7e8-97af-4a44-aef4-919779dbfbce}: RoadRunner
Try updating the MATLAB and CARLA paths in C:/Users/im_admin/AppData/Roaming/MathWorks/RoadRunner/R2024a/Scenario/Config/ SimulationConfiguration.xml
> (id: CARLA Bridge ) : CARLA Bridge: Connected to CARLA at localhost:2000.
The command prompt is as follows.
No module named ‘carla’.
Attempting to add C:/carla/Build/UE4Carla/91c2e42-dirty/WindowsNoEditor/PythonAPI/carla/distcarla-0.9.14-py3.8-win-amd64.egg to system path.
Connecting to Scenario Simulation Engine …
Registered Scenario Simulation Engine Client successfully
Done.
Updating the MATLAB and CARLA paths in SimulationConfiguration.xml does not fix this error.
What should I do?
Environment:
Windows 10
Carla 0.9.14
RoadRunner 2024a
Unreal Engine 4.26I have purchased a new computer and want to run a simulation using RoadRunner and CARLA.
I have installed Carla, Unreal Engine 4, and RoadRunner.
I have run the “Run a RoadRunner Scenario Co-simulation with CARLA Visualization” on the site [1].
[1]https://jp.mathworks.com/help/roadrunner-scenario/ug/run-roadrunner-scenario-and-carla-cosimulations.html
Then the following error appears in the RoadRunner output and the simulation with CARLA does not start.
> ——————– Simulation STARTED ——————–
> WARNING: Unable to locate a simulator for actor behavior ‘{b63406a3-fd5d-409e-8026-d5af7017d251}’, applying RoadRunner default behavior to this actor.
Invalid actor behavior:.
– Behavior asset: Assets/Behaviors/CARLA.rrbehavior
– Platform type: External
– Platform name: CARLA
The following simulation clients are active:
– {3aeba7e8-97af-4a44-aef4-919779dbfbce}: RoadRunner
Try updating the MATLAB and CARLA paths in C:/Users/im_admin/AppData/Roaming/MathWorks/RoadRunner/R2024a/Scenario/Config/ SimulationConfiguration.xml
> (id: CARLA Bridge ) : CARLA Bridge: Connected to CARLA at localhost:2000.
The command prompt is as follows.
No module named ‘carla’.
Attempting to add C:/carla/Build/UE4Carla/91c2e42-dirty/WindowsNoEditor/PythonAPI/carla/distcarla-0.9.14-py3.8-win-amd64.egg to system path.
Connecting to Scenario Simulation Engine …
Registered Scenario Simulation Engine Client successfully
Done.
Updating the MATLAB and CARLA paths in SimulationConfiguration.xml does not fix this error.
What should I do?
Environment:
Windows 10
Carla 0.9.14
RoadRunner 2024a
Unreal Engine 4.26 I have purchased a new computer and want to run a simulation using RoadRunner and CARLA.
I have installed Carla, Unreal Engine 4, and RoadRunner.
I have run the “Run a RoadRunner Scenario Co-simulation with CARLA Visualization” on the site [1].
[1]https://jp.mathworks.com/help/roadrunner-scenario/ug/run-roadrunner-scenario-and-carla-cosimulations.html
Then the following error appears in the RoadRunner output and the simulation with CARLA does not start.
> ——————– Simulation STARTED ——————–
> WARNING: Unable to locate a simulator for actor behavior ‘{b63406a3-fd5d-409e-8026-d5af7017d251}’, applying RoadRunner default behavior to this actor.
Invalid actor behavior:.
– Behavior asset: Assets/Behaviors/CARLA.rrbehavior
– Platform type: External
– Platform name: CARLA
The following simulation clients are active:
– {3aeba7e8-97af-4a44-aef4-919779dbfbce}: RoadRunner
Try updating the MATLAB and CARLA paths in C:/Users/im_admin/AppData/Roaming/MathWorks/RoadRunner/R2024a/Scenario/Config/ SimulationConfiguration.xml
> (id: CARLA Bridge ) : CARLA Bridge: Connected to CARLA at localhost:2000.
The command prompt is as follows.
No module named ‘carla’.
Attempting to add C:/carla/Build/UE4Carla/91c2e42-dirty/WindowsNoEditor/PythonAPI/carla/distcarla-0.9.14-py3.8-win-amd64.egg to system path.
Connecting to Scenario Simulation Engine …
Registered Scenario Simulation Engine Client successfully
Done.
Updating the MATLAB and CARLA paths in SimulationConfiguration.xml does not fix this error.
What should I do?
Environment:
Windows 10
Carla 0.9.14
RoadRunner 2024a
Unreal Engine 4.26 roadrunner, carla, simulate, actor behavior MATLAB Answers — New Questions
How to safely extend c drive in Windows 11 when the menu grayed out?
Hi everyone,
On my Windows 11 PC, the C drive is 80 GB and the free space is very small. I have to manually delete the files in order to make more room for C drive. Now, I’m trying to extend C drive on Windows 11 as there are more than 200GB free space in D drive, but the “Extend Volume” option is grayed out in Disk Management.
I have some unallocated space available, but it’s not letting me extend the drive. I want to safely extend C drive on Windows 11 without losing any data, so I’m hesitant to use third-party tools without some guidance. Does anyone know why this option is grayed out or how I can fix it? Are there any safe methods or tools I can use to increase C drive space from D drive in Windows 11 without formatting?
Any help would be greatly appreciated!
Hi everyone, On my Windows 11 PC, the C drive is 80 GB and the free space is very small. I have to manually delete the files in order to make more room for C drive. Now, I’m trying to extend C drive on Windows 11 as there are more than 200GB free space in D drive, but the “Extend Volume” option is grayed out in Disk Management. I have some unallocated space available, but it’s not letting me extend the drive. I want to safely extend C drive on Windows 11 without losing any data, so I’m hesitant to use third-party tools without some guidance. Does anyone know why this option is grayed out or how I can fix it? Are there any safe methods or tools I can use to increase C drive space from D drive in Windows 11 without formatting? Any help would be greatly appreciated! Read More
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