Category: News
Error: output is inferred as a variable-size matrix, but its size is specified as inherited or fixed.
To simplify the question, when I define the size of my output based on a constant input (it won’t change during the simulation), i receive the following error: ‘y’ is inferred as a variable-size matrix, but its size is specified as inherited or fixed. Verify ‘y’ is defined in terms of non-tunable parameters, or select the ‘Variable Size’ check box and specify the upper bounds in the Size box.
Other people had this problem but I couldn’t really find a way to fix it. I can’t select the variable size check box because it lead to other errors. I also don’t have the coder library. I got that in theory this constant value can me modified and then cause problems, but it isn’t my case, I just want to define it when the simulation starts.
function y = fcn(u)
y = zeros(u,1);To simplify the question, when I define the size of my output based on a constant input (it won’t change during the simulation), i receive the following error: ‘y’ is inferred as a variable-size matrix, but its size is specified as inherited or fixed. Verify ‘y’ is defined in terms of non-tunable parameters, or select the ‘Variable Size’ check box and specify the upper bounds in the Size box.
Other people had this problem but I couldn’t really find a way to fix it. I can’t select the variable size check box because it lead to other errors. I also don’t have the coder library. I got that in theory this constant value can me modified and then cause problems, but it isn’t my case, I just want to define it when the simulation starts.
function y = fcn(u)
y = zeros(u,1); To simplify the question, when I define the size of my output based on a constant input (it won’t change during the simulation), i receive the following error: ‘y’ is inferred as a variable-size matrix, but its size is specified as inherited or fixed. Verify ‘y’ is defined in terms of non-tunable parameters, or select the ‘Variable Size’ check box and specify the upper bounds in the Size box.
Other people had this problem but I couldn’t really find a way to fix it. I can’t select the variable size check box because it lead to other errors. I also don’t have the coder library. I got that in theory this constant value can me modified and then cause problems, but it isn’t my case, I just want to define it when the simulation starts.
function y = fcn(u)
y = zeros(u,1); error, simulink, variables, matlab function MATLAB Answers — New Questions
High costs for MS Syntex – although restricted to some sites – maybe open for a short time
Hi everyone,
we are experiencing high costs for MS Syntex. We just wanted it to use for some sites – so i restricted it to 2 sites.
But i did not see that i need to restrict each service – so some users seem to “use” it.
How can i identify these sites and stop them from using any of the services?
How can i completely disabled Syntex for our tenant if nothing else works?
BR
Stephan
Hi everyone, we are experiencing high costs for MS Syntex. We just wanted it to use for some sites – so i restricted it to 2 sites.But i did not see that i need to restrict each service – so some users seem to “use” it.How can i identify these sites and stop them from using any of the services?How can i completely disabled Syntex for our tenant if nothing else works? BRStephan Read More
code to sample a signal
x(t)=cos(180*π*t) at sampling rates of 200 and 1500 samples each second. Then plot the graphs.x(t)=cos(180*π*t) at sampling rates of 200 and 1500 samples each second. Then plot the graphs. x(t)=cos(180*π*t) at sampling rates of 200 and 1500 samples each second. Then plot the graphs. sampling MATLAB Answers — New Questions
How to normalize the scale of an image to make it scaling invariant?
I want to make my image to be scaling invariant by normalizing the scale.I want to make my image to be scaling invariant by normalizing the scale. I want to make my image to be scaling invariant by normalizing the scale. scale normalization MATLAB Answers — New Questions
[MSFT Defender for Cloud] Connection Defender for cloud and AWS account with free 30-day period
Hello.
I’m a cloud security engineer.
We are preparing to link MSFT MDC to enhance the security of AWS environment.
I leave a post because there is a pre-linked inquiry.
1. MDC offers a 30-day free period for Azure subscriptions. However, we couldn’t find any mention of free offers for AWS accounts. Does MDC offer free usage for AWS?
2. Are API query costs and log collection and archiving costs incurred separately other than MDC costs?
Please answer me.
Thank you.
Hello.I’m a cloud security engineer. We are preparing to link MSFT MDC to enhance the security of AWS environment. I leave a post because there is a pre-linked inquiry. 1. MDC offers a 30-day free period for Azure subscriptions. However, we couldn’t find any mention of free offers for AWS accounts. Does MDC offer free usage for AWS? 2. Are API query costs and log collection and archiving costs incurred separately other than MDC costs? Please answer me. Thank you. Read More
The same document looks different in SharePoint than the desktop App (word)
In SharePoint online word view number bullets start like 1.0,1.1,1.2,…. But in desktop view, it’s like 1.1,1.2,1.3,….
I have tried the below troubleshooting steps.
1. Modified the site’s permission hierarchy to specific user. When the bullets that begin with 1.0, 1.1, 1.2, and so on are granted access to the site by the owner, member, and site administrator. The document is correct in both the desktop and SharePoint views when I remove all site permissions and grant read access.
2. Used a new browser(We are normally use Microsoft Edge browser) to visit this same SharePoint location. An identical problem was encountered.
3. Attempted to use the identical file on a different SharePoint site. However, the problem persisted.
Can someone please help me to fix this issue?
In SharePoint online word view number bullets start like 1.0,1.1,1.2,…. But in desktop view, it’s like 1.1,1.2,1.3,…. I have tried the below troubleshooting steps. 1. Modified the site’s permission hierarchy to specific user. When the bullets that begin with 1.0, 1.1, 1.2, and so on are granted access to the site by the owner, member, and site administrator. The document is correct in both the desktop and SharePoint views when I remove all site permissions and grant read access.2. Used a new browser(We are normally use Microsoft Edge browser) to visit this same SharePoint location. An identical problem was encountered.3. Attempted to use the identical file on a different SharePoint site. However, the problem persisted. Can someone please help me to fix this issue? Read More
Curve fitting 3d closed surface
I am trying to curve fit a 3d surface. However, I would like to fit a closed 3d surface onto the points I have in 3d space (ie a sphere, ellisoid, whatever it may be). Is there an easy way to do this with Matlab or any toolbox? I’ve seen curve fitting toolbox but it doesn’t look like it would fit a closed 3d surface since the curve fitting looks polynomial based. Thanks in advance.I am trying to curve fit a 3d surface. However, I would like to fit a closed 3d surface onto the points I have in 3d space (ie a sphere, ellisoid, whatever it may be). Is there an easy way to do this with Matlab or any toolbox? I’ve seen curve fitting toolbox but it doesn’t look like it would fit a closed 3d surface since the curve fitting looks polynomial based. Thanks in advance. I am trying to curve fit a 3d surface. However, I would like to fit a closed 3d surface onto the points I have in 3d space (ie a sphere, ellisoid, whatever it may be). Is there an easy way to do this with Matlab or any toolbox? I’ve seen curve fitting toolbox but it doesn’t look like it would fit a closed 3d surface since the curve fitting looks polynomial based. Thanks in advance. curve fitting, 3d plots MATLAB Answers — New Questions
unable to find signing program ‘smimesign’
Hello! I’m trying to set up git according to this article Set Up Git Source Control. After implementing this step "Enable Signing Commits" including,
“`
!git config –global commit.gpgsign true
!git config –global user.signingkey 3AB5C344325645B2
!git config –global gpg.format x509
!git config –global gpg.x509.program smimesign
“`
The error, unable to find signing program ‘smimesign’, take place while I trying to commit. And the error will be solved by command this,
“`
>> !git config –global –unset gpg.x509.program
>> !git config –global –unset gpg.format
>> !git config –global –unset commit.gpgsign
>> !git config –global –unset user.signingkey
“`Hello! I’m trying to set up git according to this article Set Up Git Source Control. After implementing this step "Enable Signing Commits" including,
“`
!git config –global commit.gpgsign true
!git config –global user.signingkey 3AB5C344325645B2
!git config –global gpg.format x509
!git config –global gpg.x509.program smimesign
“`
The error, unable to find signing program ‘smimesign’, take place while I trying to commit. And the error will be solved by command this,
“`
>> !git config –global –unset gpg.x509.program
>> !git config –global –unset gpg.format
>> !git config –global –unset commit.gpgsign
>> !git config –global –unset user.signingkey
“` Hello! I’m trying to set up git according to this article Set Up Git Source Control. After implementing this step "Enable Signing Commits" including,
“`
!git config –global commit.gpgsign true
!git config –global user.signingkey 3AB5C344325645B2
!git config –global gpg.format x509
!git config –global gpg.x509.program smimesign
“`
The error, unable to find signing program ‘smimesign’, take place while I trying to commit. And the error will be solved by command this,
“`
>> !git config –global –unset gpg.x509.program
>> !git config –global –unset gpg.format
>> !git config –global –unset commit.gpgsign
>> !git config –global –unset user.signingkey
“` git, commit MATLAB Answers — New Questions
How do I change the display language of Optimize LIVE Editor task?
Hi, I’m using Optimize LIVE Editor task on Matlab 2022b, and the display language of Matlab on my PC is Chinese.
But the display of Optimize LIVE Editor task is mainly in English and partially in Chinese. I see all—Chinese version of Optimize LIVE Editor task from the internet. How do I change the language to all Chinese? Would appreciate any help!Hi, I’m using Optimize LIVE Editor task on Matlab 2022b, and the display language of Matlab on my PC is Chinese.
But the display of Optimize LIVE Editor task is mainly in English and partially in Chinese. I see all—Chinese version of Optimize LIVE Editor task from the internet. How do I change the language to all Chinese? Would appreciate any help! Hi, I’m using Optimize LIVE Editor task on Matlab 2022b, and the display language of Matlab on my PC is Chinese.
But the display of Optimize LIVE Editor task is mainly in English and partially in Chinese. I see all—Chinese version of Optimize LIVE Editor task from the internet. How do I change the language to all Chinese? Would appreciate any help! display language, matlab, optimization toolbox MATLAB Answers — New Questions
RoadRunner HD Map create
Building a loadrunner hd map in the c++ language.
I have a problem defining the lane boundary, so I would like to ask you a question.
I defined it in terms of coordinates, and it comes out like this..
The solid orange line is the next boundary.
Is there a separate method for designating lane boundary coordinates?
If not, is there any document to refer to?
Do I have to define lanes, boundaries, and signs daily when building hd maps?Building a loadrunner hd map in the c++ language.
I have a problem defining the lane boundary, so I would like to ask you a question.
I defined it in terms of coordinates, and it comes out like this..
The solid orange line is the next boundary.
Is there a separate method for designating lane boundary coordinates?
If not, is there any document to refer to?
Do I have to define lanes, boundaries, and signs daily when building hd maps? Building a loadrunner hd map in the c++ language.
I have a problem defining the lane boundary, so I would like to ask you a question.
I defined it in terms of coordinates, and it comes out like this..
The solid orange line is the next boundary.
Is there a separate method for designating lane boundary coordinates?
If not, is there any document to refer to?
Do I have to define lanes, boundaries, and signs daily when building hd maps? roadrunner, hdmap, custom, custom data using, c++ MATLAB Answers — New Questions
Steps to Security hardening in Windows server
Hello everyone,
I am experience on the Active Directory and others, but I am quite new on server hardening. I am not sure where should I start with, what kind of actions I need to take, what thing I should prepare to let the server done with hardening.
My company is running Windows 2019 servers in major. We have also GPO running in our AD like password expiry, complexity, map network drive, printer, etc. We are going to deploy some new servers as Windows 2022. What I am thinking is I want to harden the server, but just not sure what kind of procedure I can get ready
Regards,
Timothy
Hello everyone,I am experience on the Active Directory and others, but I am quite new on server hardening. I am not sure where should I start with, what kind of actions I need to take, what thing I should prepare to let the server done with hardening.My company is running Windows 2019 servers in major. We have also GPO running in our AD like password expiry, complexity, map network drive, printer, etc. We are going to deploy some new servers as Windows 2022. What I am thinking is I want to harden the server, but just not sure what kind of procedure I can get ready Regards, Timothy Read More
Why can’t I receive the signal data normally when I use the CAN Receive block
These are my test configurations:
Results below:
Sample Time: 0.01
Fixed Step DiscreteThese are my test configurations:
Results below:
Sample Time: 0.01
Fixed Step Discrete These are my test configurations:
Results below:
Sample Time: 0.01
Fixed Step Discrete can, protocol, simulink MATLAB Answers — New Questions
Using SSIS Expression to build query to run on Oracle source
I am trying to build a query to run on oracle source by putting it in a variable, I am pulling max of date into a variable varChildpkgMaxDt(e.g. 2024-08-10 17:21:04.670 ) from SQL server target table.
I need to build a query to run on oracle source. I have used datetime as datatype for varChildpkgMaxDt to fetch from sqlserver in parent pkg and passing this as a parameter to child pkg.
I created a varCpkgQuery variable as string and I am getting syntax err when I build this.
I also want to ensure that the varChildpkgMaxDt is properly compared in oracle with NVL(REVIEWDATE,CREATED) as this two fields in oracle are date with time stamp up till 3mill sec (2024-08-10 17:21:04.670)
“SELECT *
FROM dbo.virDocument
WHERE NVL(REVIEWDATE,CREATED) > “+ (DT_DBTIMESTAMP2,3)@[User::varChildPkgMaxDt]
Using oracle 19 C source, VS 2017 SSDT & SQL Server 2016
I am trying to build a query to run on oracle source by putting it in a variable, I am pulling max of date into a variable varChildpkgMaxDt(e.g. 2024-08-10 17:21:04.670 ) from SQL server target table. I need to build a query to run on oracle source. I have used datetime as datatype for varChildpkgMaxDt to fetch from sqlserver in parent pkg and passing this as a parameter to child pkg. I created a varCpkgQuery variable as string and I am getting syntax err when I build this. I also want to ensure that the varChildpkgMaxDt is properly compared in oracle with NVL(REVIEWDATE,CREATED) as this two fields in oracle are date with time stamp up till 3mill sec (2024-08-10 17:21:04.670) “SELECT *
FROM dbo.virDocument
WHERE NVL(REVIEWDATE,CREATED) > “+ (DT_DBTIMESTAMP2,3)@[User::varChildPkgMaxDt] Using oracle 19 C source, VS 2017 SSDT & SQL Server 2016 Read More
Renew Azure Data Engineer Associate certification
Hi there experts,
I received a renewal email the other day for “Azure Data Engineer Associate” stating:
“Your Microsoft Certified: Azure Data Engineer Associate certification is now eligible for renewal. You have until November 2, 2024 (UTC) to pass the renewal assessment.”
However when I follow the link in the email and log in to my Learn profile the “Take the renewal assessment” link is inactive.
and when I check the Certifications area under my profile there are none listed.
Can someone help?
Cheers
Hi there experts, I received a renewal email the other day for “Azure Data Engineer Associate” stating: “Your Microsoft Certified: Azure Data Engineer Associate certification is now eligible for renewal. You have until November 2, 2024 (UTC) to pass the renewal assessment.” However when I follow the link in the email and log in to my Learn profile the “Take the renewal assessment” link is inactive. and when I check the Certifications area under my profile there are none listed. Can someone help? Cheers Read More
Web development
Hi I am interested in learning how to make websites. What should I do in college?
Hi I am interested in learning how to make websites. What should I do in college? Read More
Step by Step: Integrate Advanced RAG Service with Your Own Data into Copilot Studio
This post is going to explain how to use Advanced RAG Service easily verify proper RAG tech performance for your own data, and integrate it as a service endpoint into Copilot Studio.
This time we use CSV as a sample. CSV is text structure data, when we use basic RAG to process a multiple pages CSV file as Vector Index and perform similarity search using Nature Language on it, the grounded data is always chunked and hardly make LLM to understand the whole data picture.
For example, if we have 10,000 rows in a CSV file, when we ask “how many rows does the data contain and what’s the mean value of the visits column”, usually general semantic search service cannot give exact right answers if it just handles the data as unstructured. We need to use different advanced RAG method to handle the CSV data here.
Thanks to LLamaIndex Pandas Query Engine, which provides a good idea of understanding data frame data through natural language way. However to verify its performance among others and integrate to existing Enterprise environment, such as Copilot Studio or other user facing services, it definitely needs AI service developing experience and takes certain learning curve and time efforts from POC to Production.
Advanced RAG Service supports 6 latest advanced indexing techs including CSV Query Eninge, with it developers can leverage it to shorten development POC stage, and achieve Production purpose. Here is detail step to step guideline:
text-embedding-3-small
a. In Docker environment, run this command to clone the dockerfile and related config sample:
b. In the AdvancedRAG folder, rename .env.sample to .env
mv .env.sample .env
c. In the .env file, configure necessary environment variables. In this tutorial, let’s configure:
AZURE_OPENAI_API_KEY=
AZURE_OPENAI_Deployment=gpt-4o-mini
AZURE_OPENAI_EMBEDDING_Deployment=text-embedding-3-small
AZURE_OPENAI_ENDPOINT=https://[name].openai.azure.com/
# Azure Document Intellenigence
DOC_AI_BASE=https://[name].cognitiveservices.azure.com/
DOC_AI_KEY=
NOTE:
d. Build your own docker image:
e. Run this docker:
f. Access http://localhost:8000/
a. Click the CSV Query Engine tab, upload a test CSV file, click Submit
b. Click the Chat Mode tab, now we can use Natural Language to test how good the CSV Query Engine at understanding CSV content:
The Advanced RAG Service is built with Gradio and FAST API. It opens necessary API Endpoints by default. We can turn off any of them in the .env settings.
The Chat endpoint can be used for different index types query/search. Since we are using “CSV Query Engine”, now it is:
content-type: application/json
{
“data”: [
“how many records does it have”,
“”,
“CSV Query Engine”,
“/tmp/gradio/86262b8036b56db1a2ed40087bbc772f619d0df4/titanic_train.csv”,
“You are a friendly AI Assistant” ,
false
]
}
The response is:
“data”: [
“The dataset contains a total of 891 records. If you have any more questions about the data, feel free to ask!”,
null
],
“is_generating”: true,
“duration”: 3.148253917694092,
“average_duration”: 3.148253917694092,
“render_config”: null,
“changed_state_ids”: []
}
Using this method, we can easily integrate the specific RAG capability to our own service, such as Copilot Studio. Before that, let’s publish the service first.
We have different methods to release docker as an app service. Here are the generate steps when we use Azure Contain Registry and Azure Container App.
a. Create Azure Container Registry resource [ACRNAME], upload your tested docker image to it. The command is:
az account set -s [your subscription]
az acr login -n [ACRNAME]
docker push [ACRNAME].azurecr.io/dockerimage:tag
b. Create an Azure Container App, deploy this docker image, and deploy it. Don’t forget enable Session Affinity for the Container App.
To automate the Azure Container App deployment, I provided deploy_acr_app.sh in the repo.
set -e
if [ $# -eq 0 ]
then
echo “No SUF_FIX supplied, it should be an integer or a short string”
docker image list
exit 1
fi
SUF_FIX=$1
RESOURCE_GROUP=”rg-demo-${SUF_FIX}”
LOCATION=”eastus”
ENVIRONMENT=”env-demo-containerapps”
API_NAME=”advrag-demo-${SUF_FIX}”
FRONTEND_NAME=”advrag-ui-${SUF_FIX}”
TARGET_PORT=8000
ACR_NAME=”advragdemo${SUF_FIX}”
az group create –name $RESOURCE_GROUP –location “$LOCATION”
az acr create –resource-group $RESOURCE_GROUP –name $ACR_NAME –sku Basic –admin-enabled true
az acr build –registry $ACR_NAME –image $API_NAME .
az containerapp env create –name $ENVIRONMENT –resource-group $RESOURCE_GROUP –location “$LOCATION”
az containerapp create –name $API_NAME –resource-group $RESOURCE_GROUP –environment $ENVIRONMENT –image $ACR_NAME.azurecr.io/$API_NAME –target-port $TARGET_PORT –ingress external –registry-server $ACR_NAME.azurecr.io –query properties.configuration.ingress.fqdn
az containerapp ingress sticky-sessions set -n $API_NAME -g $RESOURCE_GROUP –affinity sticky
To use it:
./deploy_acr_azure.sh [suffix number]
Note: for more details about this sh, can refer to this guideline.
After around 7~8 minutes, the Azure Container App will be ready. You can check the output and access it directly:
To protect your container app, can follow this guide to enable authentication on it.
Enable authentication and authorization in Azure Container Apps with Microsoft Entra ID
By default, we need to upload a CSV to the AdvRAG service before analysis. The service always saves the uploaded file to its local temp folder on server side. And then we can use temp file path to start the analysis query.
To skip this step, we can save common files in subfolder rules of the AdvancedRAG folder, and then build your docker image. The files will be copy to the docker itself. As a demo, I can put a CSV file in AdvancedRAG/rules/files, and then pubish the docker to Azure.
a. Open Copilot Studio, create a new Topic, use “CSV Query” to trigger it.
b. For demo purpose, I upload a test CSV file and got its path, then put it into a variable:
c. Now let’s add a Question step to ask what question the user want to ask:
d. Click “+”, “Add an Action”, “Create a flow”. We will use this new flow to call AdvancedRAG service endpoint.
e. We need Query, File_Path, System_Message as input variables.
e. In the flow Editor, let’s add an HTTP step. In the step, post the request to the AdvancedRAG endpoint as below:
Save the flow as ADVRAGSVC_CSV, and publish it.
f. Back to Copilot Studio topic, we will add the action as below, and set input variables as need:
g. Publish and open this Custom Copilot in Teams Channel based on this guide.
h. Now we can test this topic lit this, as we see, even I used gpt-4o-mini here, the response accuracy is very good:
From above, it shows how to quickly verify potential useful RAG techs (Pandas Query Engine) in the AdvancedRAG service studio, expose and publish it as REST API endpoint which can be used by other service, such as Copilot Studio.
The AdvancedRAG service focuses on key logic and stability of different important index types, the efficiency to be landed into M365 AI use cases. For any feature improvement ideas, feel free to visit below repos to create issues, fork projects and create PRs.
Docker Deploy Repo: https://github.com/freistli/AdvancedRAG
Source Code Repo: https://github.com/freistli/AdvancedRAG_SVC
Exploring the Advanced RAG (Retrieval Augmented Generation) Service
Microsoft Tech Community – Latest Blogs –Read More
Sharing a Teams URL
Hi all,
I am hoping you can help.
We are using a Tap IP and Huddle Bar for online meetings. Normally we would receive a meeting invite from an external party and then forward it to the meeting room, and then launch the meeting from there.
Recently we are receiving meeting requests from third parties who are sending a just a copy-paste of the Teams link URL only (i.e., it is not a typical teams meeting invite email with the teams logo etc…).
We have not been able to successfully forward the URL to the Tap IP/Huddle Bar to launch the meeting. Is this a limitation of this setup or is there a specific way these invites should be handled?
Hi all, I am hoping you can help. We are using a Tap IP and Huddle Bar for online meetings. Normally we would receive a meeting invite from an external party and then forward it to the meeting room, and then launch the meeting from there. Recently we are receiving meeting requests from third parties who are sending a just a copy-paste of the Teams link URL only (i.e., it is not a typical teams meeting invite email with the teams logo etc…). We have not been able to successfully forward the URL to the Tap IP/Huddle Bar to launch the meeting. Is this a limitation of this setup or is there a specific way these invites should be handled? Read More
Super user AIP
Hi All,
I have question relate to AIP user.
Few of our users have assigned MIPP protection on excel files and send it over to internal users via an email (not saved on sharepoint nor file share). Users are no more working for the organisation. I would like to know if i would save the file to local PC and open the file as super user (as per the below article) to view the content or reassign protection settings?
https://learn.microsoft.com/en-us/azure/information-protection/configure-super-users
Hi All, I have question relate to AIP user. Few of our users have assigned MIPP protection on excel files and send it over to internal users via an email (not saved on sharepoint nor file share). Users are no more working for the organisation. I would like to know if i would save the file to local PC and open the file as super user (as per the below article) to view the content or reassign protection settings? https://learn.microsoft.com/en-us/azure/information-protection/configure-super-users Read More