Month: July 2024
Unlock the Power of Generative AI: A Beginner’s Guide to Building Applications with LLMs
With so many new technologies, tools and terms in the world of Generative AI, it can be hard to know where to start or what to learn next. “Generative AI for Beginners” is designed to help you on your learning journey no matter where you are now.
We are happy announce that the “Generative AI for Beginners” course has received a major refresh – 18 new video lessons. These videos will help guide you through the written and code sections of the course on the Github Repo. You can take the course in order or start and stop and the lessons that interest you the most!
What is Generative AI for Beginners?
In case this is your first time hearing about the course, Generative AI for Beginners is an 18-lesson open source Github repo covering some of the most important topics about building Generative AI applications.
Each lesson features both a written and short video lesson. The course is divided in Learn and Build. Learn lessons cover key Generative AI concepts and Build lessons teach you how to create popular application types.
Who is Generative AI for?
Students interested in building GenAI applications or currently building them, this course is for you! While the course is designed “for beginners”, we have tried to cover a variety of topics for all skill levels.
We have created code versions of the course using the OpenAI API in case you don’t have access to the Azure OpenAI service.
You can meet other learner from the course in the Azure AI Discord where we host community roundtables to help further discuss and learn about building GenAI applications.
What will I learn?
Here is a complete lesson list:
Introduction to Generative AI and LLMs
Exploring and comparing different LLMs
Using Generative AI Responsibly
Understanding Prompt Engineering Fundamentals
Building Text Generation Applications
Building Search Apps Vector Databases
Building Image Generation Applications
Building Low Code AI Applications
Integrating External Applications with Function Calling
Designing UX for AI Applications
Securing Your Generative AI Applications
The Generative AI Application Lifecycle
Retrieval Augmented Generation (RAG) and Vector Databases
Open Source Models and Hugging Face
The course is open source so feel free to make a pull request if you see an opportunity to make any improvements!
Microsoft Tech Community – Latest Blogs –Read More
First Steps into Automation: Building Your First Playwright Test
Web applications are becoming more complex, dynamic, and user-centric than ever before. They are also being deployed more frequently, often multiple times a day, thanks to continuous integration and delivery pipelines. To ensure that these applications deliver a reliable and consistent user experience, testing becomes a critical part of the development process.
However, traditional testing approaches that rely on manual testers or brittle scripts are not scalable or reliable enough to meet the demands of modern web development. We need a better way to automate testing of web applications, one that can handle complex user interactions, cross-browser compatibility, and fast feedback loops.
That’s where Playwright comes in. Playwright is an open-source framework for end-to-end testing of web applications. It was released in 2020 by Microsoft and has been gaining popularity and adoption ever since. Playwright allows developers to write tests in .NET, Python or Java that can run across all modern browsers (Chromium, Firefox, WebKit) and emulated devices (desktop, mobile, tablet). Playwright also provides a rich set of features and tools to make testing easier, faster, and more resilient, such as auto-waiting, auto-retrying, test isolation, parallel execution, debugging, reporting, and more.
We recently released a new Microsoft Learn training module that walks you step-by-step through building your first end-to-end test with Playwright. In this article, we will create our first end-to-end test with Playwright using the module as our guide.
Check out the module here: Build Your first end-to-end test with Playwright – Training | Microsoft Learn
Getting Started with Playwright
Embarking on your Playwright adventure is straightforward. Before we can start writing tests with Playwright, we need to install and set up Playwright on our machine. In this article, we will be using TypeScript to write our tests, so we need to have node.js and npm installed. You can download and install Node.js here.
You can use the editor of your choice, but in this article, we will use Visual Studio Code. Visual Studio Code is a code editor and debugging tool. You can download and install Visual Studio Code from here.
Once we have Node.js and Visual Studio Code installed, we can go ahead to create a new project folder for our tests. We can use any name for our folder. In this article, we will use the name learn-playwright.
mkdir learn-playwright
When we have our project folder created, we would need to navigate into the new directory. The command below makes that happen.
cd learn-playwright
Now we can install Playwright and initialize our project. Playwright provides a convenient command to do both tasks at once.
npm init playwright@latest
When you run this command, you will be asked a few questions to configure our Playwright project
What language do you want to use for your tests? We can choose between JavaScript and TypeScript.
What is the name of the test directory? This is the folder where Playwright will look for our test files. We can use the default name, tests, or choose a different one.
Add a GitHub Action for automating tests? This is an optional feature that will create a file for us to run our tests on GitHub using GitHub Actions. We can choose yes or no, depending on whether we want to use GitHub Actions or not.
Install Playwright browsers? This is a required step that will download the browser binaries that Playwright needs to run our tests. We can choose the default option, true, or select specific browsers to download.
After answering these questions, we should see an output like the one here.
Initializing NPM project (npm init -y)…
Wrote to /learn-playwright/package.json:
{
“name”: “learn-playwright”,
“version”: “1.0.0”,*
“description”: “”,*
“main”: “index.js”,*
“scripts”: {*
“test”: “echo “Error: no test specified” && exit 1″*
},
“keywords”: [],
“author”: “”,
“license”: “ISC”
}
Installing Playwright Test (npm install –save-dev @playwright/test)…
added 4 packages, and audited 5 packages in 2s
found 0 vulnerabilities
Installing Types (npm install –save-dev @types/node)…
added 2 packages, and audited 7 packages in 580ms
found 0 vulnerabilities
Writing playwright.config.ts.
Writing .github/workflows/playwright.yml.
Writing tests/example.spec.ts.
Writing tests-examples/demo-todo-app.spec.ts.
Writing package.json.
Downloading browsers (npx playwright install)…
✔ Success! Created a Playwright Test project at /learn-playwright
Inside that directory, you can run several commands:
npx playwright test
Runs the end-to-end tests.
npx playwright test –ui
Starts the interactive UI mode.
npx playwright test –project=chromium
Runs the tests only on Desktop Chrome.
npx playwright test example
Runs the tests in a specific file.
npx playwright test –debug
Runs the tests in debug mode.
npx playwright codegen
Auto generate tests with Codegen.
We suggest that you begin by typing:
npx playwright test
And check out the following files:
– ./tests/example.spec.ts – Example end-to-end test
– ./tests-examples/demo-todo-app.spec.ts – Demo Todo App end-to-end tests
– ./playwright.config.ts – Playwright Test configuration
Visit https://playwright.dev/docs/intro for more information.
Happy hacking!
This tells us that a new npm project has been created with a package.json file, and that Playwright Test has been installed. Playwright Test is the built-in test runner for Playwright, which provides a simple and flexible way to write and run tests. It also tells us which files have been created for us. Next, it tells us that Playwright is downloading browsers. Playwright will download the latest version of the browsers that we can use to run our tests on. It uses browser binaries that are installed locally, so we don’t need to have the browsers installed on our machine.
Once finished, we get a success message and a list of commands we can run to interact with the Playwright Test project. We also get some suggestions on which files to check out and where to find more information.
Running Tests with Playwright Test
Now that we have installed and set up Playwright, we can start writing and running tests with Playwright Test. Playwright Test is a test runner that provides a simple and flexible way to write and run tests. It has a minimal API that is easy to learn and use, and it supports various features and options to make testing easier, faster, and more resilient.
The example test script that Playwright created for us, tests/example.spec.ts, contains two simple tests that check the title and the get started link of the Playwright website. Let’s take a look at the code in this unit: Understand Test Specification – Training | Microsoft Learn.
import { test, expect } from ‘@playwright/test’;
test(‘has title’, async ({ page }) => {
await page.goto(‘https://playwright.dev/’);
// Expect a title “to contain” a substring.
await expect(page).toHaveTitle(/Playwright/);
});
test(‘get started link’, async ({ page }) => {
await page.goto(‘https://playwright.dev/’);
// Click the get started link.
await page.getByRole(‘link’, { name: ‘Get started’ }).click();
// Expects page to have a heading with the name of Installation.
await expect(page.getByRole(‘heading’, { name: ‘Installation’ })).toBeVisible();
});
The first line imports the test and expect objects from the Playwright Test module. The test object is used to define and run tests, and the expect object is used to make assertions.
The next two lines define the first test, which is called “has title”. The test function takes a name and a callback function as arguments. The callback function is an async function that takes a parameter called “{ page }”. This is a fixture that provides a page object, which represents a web page in the browser. We can use the page object to perform various actions and assertions on the page.
The first action we perform on the page is to navigate to the Playwright website, using the “page.goto” method. This method takes a URL as an argument and waits for the page to load. The next action we make on the page is to check the title, using the expect object and the “toHaveTitle” matcher. This matcher takes a regular expression as an argument and waits for the page title to match it.
The next four lines define the second test, called “get started link”. This test also navigates to the Playwright website, but then clicks on the “get started link”, using the “page.getByRole” locator and the click method. The “page.getByRole” is a locator that finds an element on the page by its accessible role. The click method performs a mouse click on the element. Next, we make an assertion to check the visibility of the heading with the name of Installation, using the expect object and the “toBeVisible” matcher. This matcher waits for the element to be visible on the page.
Now that we have walked through the code, let’s run the tests and see the results. To run the code, we will use the command below.
npx playwright test
Running the code tells us that 6 tests were run using 5 workers. By default, Playwright runs tests in parallel. To do this it uses workers. The number of workers is determined by the number of CPU cores available. Playwright will use half of the available CPU cores.
But wait, why did we get 6 tests when we only defined 2 tests in our script? That’s because Playwright runs each test on three different browser engines: Chromium, Firefox, and WebKit. This way, we can test our web application across all modern browsers with a single API. Playwright also supports device emulation for mobile testing.
Let’s open the HTML report to see more details about the test run. To do that, we can run the command below in the terminal.
npx playwright show-report
This command will open a browser window with the HTML report, which looks like this:
The report gives us the following insights:
We have 2 test cases (“has title”, “get started link”)
We ran each test across 3 browser engines (chromium, firefox, webkit)
The test cases were defined in the example.spec.ts file
The test run took 4.0s with all 6 tests passing (none skipped)
Clicking on a particular row gives us a detailed view of that test case. For example, if we click on the first one, we get the following details:
The test is called “has title”
The file name is example.spec.ts and the line number is 3
This test case was run on Chromium
The “Before Hooks” ran first. This launches the browser and sets the browser and page context (fixtures) for test isolation.
The Test “Action” on line 4 ran next. This resulted in a navigation to a specific page.
Then the Test “Assertion” on line 7 executes. This validates that the page has a specific title.
The “After Hooks” run last. They take any context cleanup actions needed.
This test case took “424 ms” to complete.
That’s it for running the example test.
Conclusion
In this article, you learned how to write and run your first Playwright test using TypeScript. You saw how Playwright lets you test your web application across different browsers with a single API, and also learned about the basic concepts of Playwright, such as fixtures, locators, matchers, and workers.
If you want to learn more about Playwright and how to use it for end-to-end testing, check out the Microsoft Learn module – Build Your first end-to-end test with Playwright – Training | Microsoft Learn. get started and generate your first test.
Learn more about Playwright
Build Your first end-to-end test with Playwright: Learn how to set up Playwright, write tests, run them in parallel, and debug issues.
Playwright Discord Server: https://aka.ms/playwright/discord
Playwright blog: https://dev.to/playwright
Playwright YouTube Channel: https://www.youtube.com/channel/UC46Zj8pDH5tDosqm1gd7WTg
Don’t wait, start learning Playwright today and take your web testing to the next level!
Microsoft Tech Community – Latest Blogs –Read More
빌드 에러 문의 건
오류:The call to autosar_make_rtw_hook, during the entry hook generated the following error:
Short name ‘FlushHandle_Impl’ (Package /Components/SwcImplementations/FlushHandle_Impl) failed uniqueness tests, because short name ‘FlushHandle_Impl’ (SwcImplementation /Components/SwcImplementations/FlushHandle_Impl) already exists. AUTOSAR constraint 2508 (CONSTR_2508) requires uniqueness tests to be case insensitive. To comply with the constraint, change one of the short names.
The build process will terminate as a result.
원인:
Short name ‘FlushHandle_Impl’ (Package /Components/SwcImplementations/FlushHandle_Impl) failed uniqueness tests, because short name ‘FlushHandle_Impl’ (SwcImplementation /Components/SwcImplementations/FlushHandle_Impl) already exists. AUTOSAR constraint 2508 (CONSTR_2508) requires uniqueness tests to be case insensitive. To comply with the constraint, change one of the short names.
이런 에러가 있는대 어떻게 수정하면 될까요?오류:The call to autosar_make_rtw_hook, during the entry hook generated the following error:
Short name ‘FlushHandle_Impl’ (Package /Components/SwcImplementations/FlushHandle_Impl) failed uniqueness tests, because short name ‘FlushHandle_Impl’ (SwcImplementation /Components/SwcImplementations/FlushHandle_Impl) already exists. AUTOSAR constraint 2508 (CONSTR_2508) requires uniqueness tests to be case insensitive. To comply with the constraint, change one of the short names.
The build process will terminate as a result.
원인:
Short name ‘FlushHandle_Impl’ (Package /Components/SwcImplementations/FlushHandle_Impl) failed uniqueness tests, because short name ‘FlushHandle_Impl’ (SwcImplementation /Components/SwcImplementations/FlushHandle_Impl) already exists. AUTOSAR constraint 2508 (CONSTR_2508) requires uniqueness tests to be case insensitive. To comply with the constraint, change one of the short names.
이런 에러가 있는대 어떻게 수정하면 될까요? 오류:The call to autosar_make_rtw_hook, during the entry hook generated the following error:
Short name ‘FlushHandle_Impl’ (Package /Components/SwcImplementations/FlushHandle_Impl) failed uniqueness tests, because short name ‘FlushHandle_Impl’ (SwcImplementation /Components/SwcImplementations/FlushHandle_Impl) already exists. AUTOSAR constraint 2508 (CONSTR_2508) requires uniqueness tests to be case insensitive. To comply with the constraint, change one of the short names.
The build process will terminate as a result.
원인:
Short name ‘FlushHandle_Impl’ (Package /Components/SwcImplementations/FlushHandle_Impl) failed uniqueness tests, because short name ‘FlushHandle_Impl’ (SwcImplementation /Components/SwcImplementations/FlushHandle_Impl) already exists. AUTOSAR constraint 2508 (CONSTR_2508) requires uniqueness tests to be case insensitive. To comply with the constraint, change one of the short names.
이런 에러가 있는대 어떻게 수정하면 될까요? simulink, code generation MATLAB Answers — New Questions
how do i give flag to this condition
Design an Up-counter using Simulink Blocks:
The counter shall go uptill 10 counts with an incremental of 2.
After 10 counts, it should be reset to 0 and shall set a flag.
The flag (initial value =0) shall be reset after 20.
Display the flag at every sample time.Design an Up-counter using Simulink Blocks:
The counter shall go uptill 10 counts with an incremental of 2.
After 10 counts, it should be reset to 0 and shall set a flag.
The flag (initial value =0) shall be reset after 20.
Display the flag at every sample time. Design an Up-counter using Simulink Blocks:
The counter shall go uptill 10 counts with an incremental of 2.
After 10 counts, it should be reset to 0 and shall set a flag.
The flag (initial value =0) shall be reset after 20.
Display the flag at every sample time. flag, upcounter MATLAB Answers — New Questions
MATLAB FUNDAMENTALS COURSE self paced course
Good evening Sir,
I am doing MATLAB FUNDAMENTALS self-paced online course. In the topic of Accessing multiple elements of an array in last excersise,task1 though i used proper command t extract the elements of a matrix, it is showing error .In the web based browser i am getting correct o/p on the right side pane, but in the course side pane on left it is showing error. Please give solution.Good evening Sir,
I am doing MATLAB FUNDAMENTALS self-paced online course. In the topic of Accessing multiple elements of an array in last excersise,task1 though i used proper command t extract the elements of a matrix, it is showing error .In the web based browser i am getting correct o/p on the right side pane, but in the course side pane on left it is showing error. Please give solution. Good evening Sir,
I am doing MATLAB FUNDAMENTALS self-paced online course. In the topic of Accessing multiple elements of an array in last excersise,task1 though i used proper command t extract the elements of a matrix, it is showing error .In the web based browser i am getting correct o/p on the right side pane, but in the course side pane on left it is showing error. Please give solution. access data in arrays MATLAB Answers — New Questions
Domain name lookup from query results
Hi, I have a beacon detection query that will give me a list of domains the users were successfully communicating over a certain interval.
From the domain names generated in the result, I want to perform whois lookup of every domain and alert on those created in last 30 days. I am looking for suggestions on the best way to implement whois lookup from the query results.
Thank you !!
Hi, I have a beacon detection query that will give me a list of domains the users were successfully communicating over a certain interval. From the domain names generated in the result, I want to perform whois lookup of every domain and alert on those created in last 30 days. I am looking for suggestions on the best way to implement whois lookup from the query results. Thank you !! Read More
internal SSD is shown as a removable drive in the Win. 11 taskbar
hi,
I have an issue. My internal SSD is shown as a removable drive in the Win. 11 taskbar. I followed the steps from https://support.microsoft.com/en-us/topic/internal-sata-drives-show-up-as-removeable-media-1f806a64-8661-95a6-adc7-ce65a976c8dd but issue is still there. What else can I do?
Here are screenshots.
hi,I have an issue. My internal SSD is shown as a removable drive in the Win. 11 taskbar. I followed the steps from https://support.microsoft.com/en-us/topic/internal-sata-drives-show-up-as-removeable-media-1f806a64-8661-95a6-adc7-ce65a976c8dd but issue is still there. What else can I do?Here are screenshots.https://ibb.co/8743X0Nhttps://ibb.co/DYLt2kdhttps://ibb.co/8gMPD5r Read More
Date in ‘To Do’ showing in American format even though all my settings are for UK/English.
Why is this bug happening? Can’t find any settings for it, every setting I can find says English (UK).
Why is this bug happening? Can’t find any settings for it, every setting I can find says English (UK). Read More
formula in excel
EXAMPLE
A B C D E F G H
1 NUMB ITEM Name AMT Paid Amt LEFT PAID/UnPaid $/CC/###
2 1 Shirt JOE 50 50 0 Paid Cash
3 2 Shirt Joe 20 0 20 Unpaid
4 3 Shirt
Above is an example of an excel spreadsheet I created in Conditional Formatting. Under the F2 Cell and down I used the formula =IF(ISBLANK([@Amount]),””,[@Amount]-[@[Paid Amt]]) to only show sum values. I would like to only show paid/unpaid values under the G column in there is a value under the F column. can someone help me with the formula to be able to do that. THANK YOU.
EXAMPLE A B C D E F G H 1 NUMB ITEM Name AMT Paid Amt LEFT PAID/UnPaid $/CC/### 2 1 Shirt JOE 50 50 0 Paid Cash 3 2 Shirt Joe 20 0 20 Unpaid 4 3 Shirt Above is an example of an excel spreadsheet I created in Conditional Formatting. Under the F2 Cell and down I used the formula =IF(ISBLANK([@Amount]),””,[@Amount]-[@[Paid Amt]]) to only show sum values. I would like to only show paid/unpaid values under the G column in there is a value under the F column. can someone help me with the formula to be able to do that. THANK YOU. Read More
How to draw a graph like the image attached below in MATLAB
Hello, experts.
I would like to draw the picture below using Matlab. What function can I use to plot it?Hello, experts.
I would like to draw the picture below using Matlab. What function can I use to plot it? Hello, experts.
I would like to draw the picture below using Matlab. What function can I use to plot it? graph, plot MATLAB Answers — New Questions
Copying a figure with black background not working
I want to copy and paste my figure onto ppt.
I have made a figure using black background
This is what it looks like in open figure window:
However if I directly copy and paste it to ppt from the edit menu, it looks like this:
When I save it as jpg, this is what it looks like:
How to solve this issue?
Part of the code: (I am not sure if the way to make the background as black is the issue)
fig = figure;
fig.Color = ‘k’; % figure background color black
tiledlayout(1, (num_days), ‘TileSpacing’, ‘compact’, ‘Padding’, ‘compact’);
% code to generate figure
ax = nexttile; % made it as I have to change the axis to white and background to black
% Set the axes background color to black
ax.Color = ‘k’; % sets the axes color to black
% Adjust the colors for axes and grid to be more visible against the black background
ax.XColor = ‘w’; % sets the x-axis line color to white
ax.YColor = ‘w’; % sets the y-axis line color to white
ax.GridColor = ‘w’; % sets the grid lines color to white (if visible grid is present)I want to copy and paste my figure onto ppt.
I have made a figure using black background
This is what it looks like in open figure window:
However if I directly copy and paste it to ppt from the edit menu, it looks like this:
When I save it as jpg, this is what it looks like:
How to solve this issue?
Part of the code: (I am not sure if the way to make the background as black is the issue)
fig = figure;
fig.Color = ‘k’; % figure background color black
tiledlayout(1, (num_days), ‘TileSpacing’, ‘compact’, ‘Padding’, ‘compact’);
% code to generate figure
ax = nexttile; % made it as I have to change the axis to white and background to black
% Set the axes background color to black
ax.Color = ‘k’; % sets the axes color to black
% Adjust the colors for axes and grid to be more visible against the black background
ax.XColor = ‘w’; % sets the x-axis line color to white
ax.YColor = ‘w’; % sets the y-axis line color to white
ax.GridColor = ‘w’; % sets the grid lines color to white (if visible grid is present) I want to copy and paste my figure onto ppt.
I have made a figure using black background
This is what it looks like in open figure window:
However if I directly copy and paste it to ppt from the edit menu, it looks like this:
When I save it as jpg, this is what it looks like:
How to solve this issue?
Part of the code: (I am not sure if the way to make the background as black is the issue)
fig = figure;
fig.Color = ‘k’; % figure background color black
tiledlayout(1, (num_days), ‘TileSpacing’, ‘compact’, ‘Padding’, ‘compact’);
% code to generate figure
ax = nexttile; % made it as I have to change the axis to white and background to black
% Set the axes background color to black
ax.Color = ‘k’; % sets the axes color to black
% Adjust the colors for axes and grid to be more visible against the black background
ax.XColor = ‘w’; % sets the x-axis line color to white
ax.YColor = ‘w’; % sets the y-axis line color to white
ax.GridColor = ‘w’; % sets the grid lines color to white (if visible grid is present) figure, copy MATLAB Answers — New Questions
connect variable signals with signal builder or equivalent block using M Script
I have a .mat file that contains various signals and their corresponding values. I also have a model file that contains similar signal names in inport blocks, which are connected to a subsystem. However, the values of these signals in the model file differ from the values in the .mat file.My task is to match the signals of the inport blocks to the signals in the .mat file. If a signal is present in both files, I need to assign the .mat signal and its value to the corresponding inport block in the model. Instead of using the inport block, I need to use a Signal Builder block (or a similar block that I’m not currently aware of).The reason for using a Signal Builder block is that it allows me to assign both the signal value and time to the block. This way, I can directly test the model by running it.In the input files, I will provide:
A model file containing inport blocks
A .mat file
I will write a script that compares the signals in the model file with the signals in the .mat file. If any signals in the model file match the signals in the .mat file, the script will assign the .mat signal values to the corresponding Signal Builder blocks in the model.After making these changes, I will store the updated model file separately without modifying the original model file. it is possible to perform this task and how ?I have a .mat file that contains various signals and their corresponding values. I also have a model file that contains similar signal names in inport blocks, which are connected to a subsystem. However, the values of these signals in the model file differ from the values in the .mat file.My task is to match the signals of the inport blocks to the signals in the .mat file. If a signal is present in both files, I need to assign the .mat signal and its value to the corresponding inport block in the model. Instead of using the inport block, I need to use a Signal Builder block (or a similar block that I’m not currently aware of).The reason for using a Signal Builder block is that it allows me to assign both the signal value and time to the block. This way, I can directly test the model by running it.In the input files, I will provide:
A model file containing inport blocks
A .mat file
I will write a script that compares the signals in the model file with the signals in the .mat file. If any signals in the model file match the signals in the .mat file, the script will assign the .mat signal values to the corresponding Signal Builder blocks in the model.After making these changes, I will store the updated model file separately without modifying the original model file. it is possible to perform this task and how ? I have a .mat file that contains various signals and their corresponding values. I also have a model file that contains similar signal names in inport blocks, which are connected to a subsystem. However, the values of these signals in the model file differ from the values in the .mat file.My task is to match the signals of the inport blocks to the signals in the .mat file. If a signal is present in both files, I need to assign the .mat signal and its value to the corresponding inport block in the model. Instead of using the inport block, I need to use a Signal Builder block (or a similar block that I’m not currently aware of).The reason for using a Signal Builder block is that it allows me to assign both the signal value and time to the block. This way, I can directly test the model by running it.In the input files, I will provide:
A model file containing inport blocks
A .mat file
I will write a script that compares the signals in the model file with the signals in the .mat file. If any signals in the model file match the signals in the .mat file, the script will assign the .mat signal values to the corresponding Signal Builder blocks in the model.After making these changes, I will store the updated model file separately without modifying the original model file. it is possible to perform this task and how ? #mscript #signalbuilder #matfile #modeldataextract MATLAB Answers — New Questions
summations of combinations of elements, one from each column of a 2D matrix, in small to large order
I have a 2D numerical matrix of size 1000 by 8: [0 a1 a2 a3 a4 … a999; 0 b1 b2 b3 b4 … b999; … ; 0 h1 h2 h3 h4 … h999]’ , where each column is in ascending order, i.e., 0<a1<a2<a3<…<a999, etc. However, I don’t know how a1 compares to b1, or c1, etc. For example, b100 could be smaller than a1.
Now, I would like to find the first 1000,000 combinations of 8 elements, each coming from a column, that have the smallest summation values. For each combination, I would like to retain the row and column indices of each element as well.
Can anyone help me with the problem? Thank you very much for your help in advance.I have a 2D numerical matrix of size 1000 by 8: [0 a1 a2 a3 a4 … a999; 0 b1 b2 b3 b4 … b999; … ; 0 h1 h2 h3 h4 … h999]’ , where each column is in ascending order, i.e., 0<a1<a2<a3<…<a999, etc. However, I don’t know how a1 compares to b1, or c1, etc. For example, b100 could be smaller than a1.
Now, I would like to find the first 1000,000 combinations of 8 elements, each coming from a column, that have the smallest summation values. For each combination, I would like to retain the row and column indices of each element as well.
Can anyone help me with the problem? Thank you very much for your help in advance. I have a 2D numerical matrix of size 1000 by 8: [0 a1 a2 a3 a4 … a999; 0 b1 b2 b3 b4 … b999; … ; 0 h1 h2 h3 h4 … h999]’ , where each column is in ascending order, i.e., 0<a1<a2<a3<…<a999, etc. However, I don’t know how a1 compares to b1, or c1, etc. For example, b100 could be smaller than a1.
Now, I would like to find the first 1000,000 combinations of 8 elements, each coming from a column, that have the smallest summation values. For each combination, I would like to retain the row and column indices of each element as well.
Can anyone help me with the problem? Thank you very much for your help in advance. combinations, summation, order MATLAB Answers — New Questions
ROS 2 Dashing and Gazebo
Hi,
I am doing the installation of the ROS 2 Dashing and Gazebo as seen here
I am wokring on windows and have the VM installed and sucessfully have the ros_melodic_dashing_gazebov9.vmx operating.
When trying to use the worlds on my desktop, they simply open a terminal windows for a split second and then close again. It seems that they crash or Gazebo runs into issues and fails to open any of the worlds.
I have also tried this in conjunciton with the differetial drive example here . Which indicates to use
export SVGA_VGPU10=0
before opening the world, however this does not work either.
Any suggestions as to what is the problem?
Thanks,
RobHi,
I am doing the installation of the ROS 2 Dashing and Gazebo as seen here
I am wokring on windows and have the VM installed and sucessfully have the ros_melodic_dashing_gazebov9.vmx operating.
When trying to use the worlds on my desktop, they simply open a terminal windows for a split second and then close again. It seems that they crash or Gazebo runs into issues and fails to open any of the worlds.
I have also tried this in conjunciton with the differetial drive example here . Which indicates to use
export SVGA_VGPU10=0
before opening the world, however this does not work either.
Any suggestions as to what is the problem?
Thanks,
Rob Hi,
I am doing the installation of the ROS 2 Dashing and Gazebo as seen here
I am wokring on windows and have the VM installed and sucessfully have the ros_melodic_dashing_gazebov9.vmx operating.
When trying to use the worlds on my desktop, they simply open a terminal windows for a split second and then close again. It seems that they crash or Gazebo runs into issues and fails to open any of the worlds.
I have also tried this in conjunciton with the differetial drive example here . Which indicates to use
export SVGA_VGPU10=0
before opening the world, however this does not work either.
Any suggestions as to what is the problem?
Thanks,
Rob matlab, ros, gazebo, dashing, ros 2, vm, crashing MATLAB Answers — New Questions
Steam game freezing as its firsts opened
My games on steam have been tending to freeze right on startup and I have no idea why. I have run diagnostics and tried everything that reddit has recommended as this is seems to be a common thing. The games i have been trying to open have been games i have been able to play perfectly fine before and all of a sudden they deicide to stop working. I’m not sure what else to do or even how to fix it due to me never having this issue till about a month ago thinking it was a steam issue. There are certain games that work then others that don’t and this one in particular that doesn’t work is only 3 GB while I have a game that is 25 GB that runs smoothly. I just really hope there is an easy way to fix this that doesn’t require me to have to get a new computer.
My games on steam have been tending to freeze right on startup and I have no idea why. I have run diagnostics and tried everything that reddit has recommended as this is seems to be a common thing. The games i have been trying to open have been games i have been able to play perfectly fine before and all of a sudden they deicide to stop working. I’m not sure what else to do or even how to fix it due to me never having this issue till about a month ago thinking it was a steam issue. There are certain games that work then others that don’t and this one in particular that doesn’t work is only 3 GB while I have a game that is 25 GB that runs smoothly. I just really hope there is an easy way to fix this that doesn’t require me to have to get a new computer. Read More
MDI & gMSA config
Hi,
We have followed the MDI Deployment guide from Microsoft: https://learn.microsoft.com/en-us/defender-for-identity/deploy/deploy-defender-identity
We have also cross referenced this guide: https://jeffreyappel.nl/how-to-implement-defender-for-identity-and-configure-all-prerequisites/
The MDI Portal shows the gMSA account.
The MDI agents are running fine and reporting to the MDI Portal.
However, when we look at Services.msc on the Domain Controllers, the MDI agent runs under the security context of “Local Service” and not the gMSA account.
Can anyone advise us on whether this is correct? or should we see the gMSA account in Service.msc console? And what other config may be required to make it run under the gMSA account?
Thank you
SK
(screenshot below)
Hi, We have followed the MDI Deployment guide from Microsoft: https://learn.microsoft.com/en-us/defender-for-identity/deploy/deploy-defender-identity We have also cross referenced this guide: https://jeffreyappel.nl/how-to-implement-defender-for-identity-and-configure-all-prerequisites/ The MDI Portal shows the gMSA account.The MDI agents are running fine and reporting to the MDI Portal.However, when we look at Services.msc on the Domain Controllers, the MDI agent runs under the security context of “Local Service” and not the gMSA account. Can anyone advise us on whether this is correct? or should we see the gMSA account in Service.msc console? And what other config may be required to make it run under the gMSA account? Thank youSK (screenshot below) Read More
Outlook Mobile Introduces Synchronization Window
A new Outlook Mobile synchronization setting allows users to select a window of between 1 and 90 days to download copies of email and attachments. The new setting allows organizations who worry about corporate data being on mobile devices to limit exposure to one day while enabling people who like having their entire mailbox on their device get closer to that point. Everyone wins.
https://office365itpros.com/2024/07/08/outlook-mobile-synchronization/
A new Outlook Mobile synchronization setting allows users to select a window of between 1 and 90 days to download copies of email and attachments. The new setting allows organizations who worry about corporate data being on mobile devices to limit exposure to one day while enabling people who like having their entire mailbox on their device get closer to that point. Everyone wins.
https://office365itpros.com/2024/07/08/outlook-mobile-synchronization/ Read More
Can’t dewarp image using fitgeotform2d and imwarp
I’m trying to reverse a transformation in an image. I have point coordinates in the intrinsic coordinate (moving points) and their equivalent in the real world coordinates (fixed points). When I use the fitgeotform2d and imwarp functions to obtained a dewarped image, I only get an matrix of zeros and size of the original image as output. Here’s the data and the code:
load("calImg.mat")
J = double(calImg);
fixedPoints = W;
movingPoints = I;
figure(1)
imagesc(J)
tform = fitgeotform2d(movingPoints,fixedPoints,"projective");
Jregistered = imwarp(flipud(J),tform,OutputView=imref2d(size(J)));
figure(2)
imshowpair(I,Jregistered)I’m trying to reverse a transformation in an image. I have point coordinates in the intrinsic coordinate (moving points) and their equivalent in the real world coordinates (fixed points). When I use the fitgeotform2d and imwarp functions to obtained a dewarped image, I only get an matrix of zeros and size of the original image as output. Here’s the data and the code:
load("calImg.mat")
J = double(calImg);
fixedPoints = W;
movingPoints = I;
figure(1)
imagesc(J)
tform = fitgeotform2d(movingPoints,fixedPoints,"projective");
Jregistered = imwarp(flipud(J),tform,OutputView=imref2d(size(J)));
figure(2)
imshowpair(I,Jregistered) I’m trying to reverse a transformation in an image. I have point coordinates in the intrinsic coordinate (moving points) and their equivalent in the real world coordinates (fixed points). When I use the fitgeotform2d and imwarp functions to obtained a dewarped image, I only get an matrix of zeros and size of the original image as output. Here’s the data and the code:
load("calImg.mat")
J = double(calImg);
fixedPoints = W;
movingPoints = I;
figure(1)
imagesc(J)
tform = fitgeotform2d(movingPoints,fixedPoints,"projective");
Jregistered = imwarp(flipud(J),tform,OutputView=imref2d(size(J)));
figure(2)
imshowpair(I,Jregistered) fitgeotform2d, imwarp, image processing, image analysis MATLAB Answers — New Questions
Error en outlook
Ingreso en mi cuenta outlook, abre la pagina principal carga brevemente y luego se cierra sola. ¿¡POR QUE PASA ESTO Y COMO LO TENGO QUE SOLUCIONAR YO PORQUE MÁS NADIE LO VA A HACER!?
Ingreso en mi cuenta outlook, abre la pagina principal carga brevemente y luego se cierra sola. ¿¡POR QUE PASA ESTO Y COMO LO TENGO QUE SOLUCIONAR YO PORQUE MÁS NADIE LO VA A HACER!? Read More
Support for Multiplication and Transpose of Block Matrices of Symbolic Matrices?
Does MATLAB not support multiplying and transposing block symbolic matrices? For instance, the following multiplication and transpose are not evaluated on the individual matrices inside of the block matrices:
syms A B C D E F G H [2 2] matrix
X = [A B;C D].’
Y = [A B;C D]*[E F;G H]
The outputs I am expecting are:
X = [A.’ C.’;B.’ D.’]
Y = [A*E+B*G A*F+B*H;C*E+D*G C*F+D*H]Does MATLAB not support multiplying and transposing block symbolic matrices? For instance, the following multiplication and transpose are not evaluated on the individual matrices inside of the block matrices:
syms A B C D E F G H [2 2] matrix
X = [A B;C D].’
Y = [A B;C D]*[E F;G H]
The outputs I am expecting are:
X = [A.’ C.’;B.’ D.’]
Y = [A*E+B*G A*F+B*H;C*E+D*G C*F+D*H] Does MATLAB not support multiplying and transposing block symbolic matrices? For instance, the following multiplication and transpose are not evaluated on the individual matrices inside of the block matrices:
syms A B C D E F G H [2 2] matrix
X = [A B;C D].’
Y = [A B;C D]*[E F;G H]
The outputs I am expecting are:
X = [A.’ C.’;B.’ D.’]
Y = [A*E+B*G A*F+B*H;C*E+D*G C*F+D*H] symbolic, block matrix, symbolic block matrix, symbolic matrix, symmatrix, symbolic matrix variable, multiplication, transpose, matlab, matrix, mathematics, livescript MATLAB Answers — New Questions