Category: News
Api Management v2 – Still only for the most wealthy
Good day,
I have been waiting for about 6 years for an affordable version of api management with network capability. The 2000USD a MONTH jump from standard to premium just to satisfy security with networking was unreasonable. Now I cannot explain the geek excitement with the announcement of standard v2 with networking for a fraction of the cost. I started planning for a bright future. But then…..
Basic v2 cannot be used as the development tier for Standard v2 production. It does not have the same features, especially the ones you would need to test networking.
So we would need 3x standard tier for dev, stg and production to continue with our IoC pipelines.
That will be an additional 1400USD a month. Ok, this is not 2000USD, but it could have been a $30000 it would have made no difference, it is still un justly expensive.
Microsoft response to me so far, we don’t understand why you would need to test in development, best to have everything in production and wait for future workspaces. Then you can safely redesign your whole networking and infrastructure architecture and test everything against your production instance to cater for this mmm, shortcoming or sneaky business tactic (I am making stuff up in my head as I do not get proper feedback).
Please can Microsoft explain this to me so I can understand. Maybe I am over re-acting and most company’s can afford this with a smile.
Good day, I have been waiting for about 6 years for an affordable version of api management with network capability. The 2000USD a MONTH jump from standard to premium just to satisfy security with networking was unreasonable. Now I cannot explain the geek excitement with the announcement of standard v2 with networking for a fraction of the cost. I started planning for a bright future. But then…..Basic v2 cannot be used as the development tier for Standard v2 production. It does not have the same features, especially the ones you would need to test networking.So we would need 3x standard tier for dev, stg and production to continue with our IoC pipelines.That will be an additional 1400USD a month. Ok, this is not 2000USD, but it could have been a $30000 it would have made no difference, it is still un justly expensive.Microsoft response to me so far, we don’t understand why you would need to test in development, best to have everything in production and wait for future workspaces. Then you can safely redesign your whole networking and infrastructure architecture and test everything against your production instance to cater for this mmm, shortcoming or sneaky business tactic (I am making stuff up in my head as I do not get proper feedback). Please can Microsoft explain this to me so I can understand. Maybe I am over re-acting and most company’s can afford this with a smile. Read More
Workgroup onboarding machine : Managed By Unknown
Hello,
I have onboarded two workgroup computers in MDE since yesterday, but in the managed by i still see unknown instead of MDE:
Can anyone tell me what to check for troubleshooting?
Hello, I have onboarded two workgroup computers in MDE since yesterday, but in the managed by i still see unknown instead of MDE:Can anyone tell me what to check for troubleshooting? Read More
Securing Microsoft Fabric: User Authentication & Authorization Guidelines
Did you wonder what are the options to define users and permissions to access and operate in Microsoft Fabric?
Considering Conditional Access for Fabric users?
Looking to understand the best practices to define user roles in workspace level?
In this blog, we will talk about authentication and authorization options in Fabric including use case example.
Microsoft Fabric is a software as a service (SaaS) platform that lets users get, create, share, and visualize data.
Security is a top priority for any organization that wants to succeed in the digital age. You need to safeguard your assets from threats and follow your organization’s security policies.
One of the security design principles is Implement strong access controls that authenticate and authorize access to the system.
This blog describes recommendations for authenticating and authorizing users that are attempting to access Microsoft Fabric.
First, let understand Microsoft Fabric main infrastructure components with this diagram:
In this diagram, we can see the different components in Fabric and the possible relation:
Tenant – A tenant is a single instance of Fabric for an organization and is aligned with a Microsoft Entra ID.
OneLake – a single, unified, logical data lake for your whole organization. A data Lake processes large volumes of data from various sources. OneLake is the foundation of Microsoft Fabric for your tenant. There is one OneLake per Tenant.
Capacity – Capacity is a dedicated set of resources that is available at a given time to be used. Capacity defines the ability of a resource to perform an activity or to produce output. Different items consume different capacities at a certain time. Fabric offers capacity through the Fabric SKU and Trials. You can have multiple capacities for one OneLake.
Workspace – A workspace is a collection of items that bring together different functionality in a single environment designed for collaboration. It acts as a container that uses capacity for the work that is executed, and provides controls for who can access the items in it. For example, in a workspace, users create reports, notebooks, semantic models, etc. You can have multiple workspaces at one capacity.
Now, let’s examine Entra ID authentication and authorization on top of the layers.
Authentication
Microsoft Entra tenant provides identity and access management (IAM) capabilities to applications and resources used by your organization. Since Fabric is deployed to a Microsoft Entra tenant, authentication and authorization are handled by Microsoft Entra.
Access token authentication:
Fabric relies on Microsoft Entra ID to authenticate users or service principals, when authenticated, users or service principals receive access tokens from Microsoft Entra ID. Fabric uses these tokens to perform operations in the context of the user or application.
Example: When a user logs into Fabric, they are authenticated by Microsoft Entra ID and receive an access token. This token is then used to access various resources within Fabric.
Note:An identity is a directory object authenticated and authorized for access to a resource. There are identity objects for human (users) and nonhuman identities. Human identities are referred to as identities, and nonhuman identities are workload identities. Nonhuman entities include application objects, Service Principals, managed identities, and devices. Generally, workload identity is for a software entity to authenticate with a system. This blog describes authentication options for users/humans while service principal/nonhuman is out of scope.
Non-Access Token authentication:
Non-access token activity in Fabric enables you to utilize external data sharing. Fabric external data sharing is a feature that allows Fabric users to share data from their tenant with users in another Fabric tenant.
Example: If you enable external data sharing, you are explicitly trusting other tenants, allowing them to access the shared data without complying with your Entra Conditional Access Policy. To enforce CA Policy for all cases, it is recommended to turn off external data sharing at the tenant level unless there is a specific need to use such external data.
Secured authentication via Conditional Access (CA)
A key feature of Microsoft Entra ID is conditional access. Conditional access ensures that customers can secure apps in their tenants, including:
Multifactor authentication
Allowing only Intune enrolled devices to access specific services
Restricting user locations and IP ranges
To configure conditional access for users in Fabric, you need to select several Azure services: Power BI, Azure Data Explorer, Azure SQL Database, and Azure Storage.
Setup of Power BI, Azure Data Explorer, Azure SQL Database, and Azure Storage block any access token activity in Fabric incase CA policy fails.
Authorization
All Fabric permissions are stored centrally by the metadata platform. Fabric services query the metadata platform on demand in order to retrieve authorization information and to authorize and validate user requests.
In this blog, we will focus on Workspace level permissions, you can read more on Item permissions here
Authorization in Workspace level
Organizational teams can have individual workspaces where different personas collaborate and work on generating content. Access to the items in the workspace is regulated via workspace roles assigned to users by the workspace admin.
You can either assign roles to individuals or to groups.
Guidance: Data owners should recommend users who could be workspace administrators. These could be team leaders in your organization, for example. These workspace administrators should then govern access to the items in their workspace by assigning appropriate workspace roles to users and consumers of the items.
There are four Workspace roles and they apply to all items within the workspace. Users that don’t have any of these roles can’t access the workspace. The roles are:
Viewer – Can view all content in the workspace but can’t modify it.
Contributor – Can view and modify all content in the workspace.
Member – Can view, modify, and share all content in the workspace.
Admin – Can view, modify, share, and manage all content in the workspace, including managing permissions.
You can define workspace level access in Fabric via:
UI as explained in Give users access to workspaces via UI
API as explained in Add Workspace Role Assignment via Fabric API
This diagram demonstrates the Authentication and Authorization options described above:
What can you do to manage access easily and efficiently?
Microsoft Entra groups are used to manage users that all need the same access and permissions to resources, such as potentially restricted apps and services. Instead of adding special permissions to individual users, you create a group that applies the special permissions to every member of that group.
When user leave the organization, you can easily remove the user form the group, that will remove user access to the different workspaces.
Let look on one example: Organization with multiple users granting access to Fabric dev, test and prod workspaces via Entra groups.
The first step will be to define groups for Fabric users in Microsoft 365 admin center.
Potential groups implementation:
1.Fabric all – include all Fabric users that will get access to Fabric
2.Development + Test users:
Fabric dev+test workspace viewers – assign users per need
Fabric dev+test workspace members – assign users per need
Fabric dev+test workspace contributors – assign users per need
Fabric dev+test workspace admins – potentially assign to workspace owners + team leads
3.Production users:
Fabric prod workspace viewers – assign users per need
Fabric prod workspace members – assign users per need
Fabric prod workspace contributors – assign users per need
Fabric prod workspace admins – potentially assign to workspace owners + team leads
Here you can see sample groups from Microsoft 365 admin center:
The next steps will be:
Define Conditional Access policy for Fabric users, via the group we created before – Fabric all, as explained in Conditional access – Microsoft Fabric | Microsoft Learn
Define workspace level access in Fabric UI as explained in Give users access to workspaces or via API as explained in Workspaces – Add Workspace Role Assignment
Here we can see sample UI of assigning Admin rights on the workspace via the group we created before:
1.Go to Manage Access
2.Add the relevant group:
3.Assign permission to the group:
In conclusion, implementing strong access controls to authenticate and authorize users is a crucial security design principle for any organization using Microsoft Fabric. Understanding the different components and layers of the platform can aid in the configuration of authentication and authorization options, such as Entra ID and Conditional Access policies.
Conditional Access provides an additional layer of security and requires Microsoft Entra ID P1 licenses.
Authorization at the workspace level is regulated via workspace roles, which can be assigned to users or groups.
It is recommended that data owners assign workspace administrators and govern access to the workspace by assigning appropriate roles to users and consumers of the items
Additional reference: End-to-end security overview for Fabric can be found here
Assaf & Inbal.
Microsoft Tech Community – Latest Blogs –Read More
Solved: How I Resolved Slow Boot Issue in Windows 11
I recently encountered a frustrating issue with my Windows 11 system – an extremely slow boot process that involved multiple black screens and would take upwards of twenty minutes to complete. Despite diligently researching and attempting various fixes without success, I eventually decided to take a break and address the problem later.
Upon returning, I discovered that a faulty ROM drive was to blame for the slow boot. After replacing it and restarting the system, the issue was completely resolved – a simple solution to what had seemed like a complex problem.
My system currently consists of a 120GB SSD, 16GB of RAM, and an Nvidia GeForce GT 730 GPU. I plan to upgrade the GPU to 32GB soon, and also hope to successfully clone a 1TB SSD in the near future. For now, however, the system boots up smoothly without any delays. I share this experience in the hopes that it may assist others facing a similar challenge.
I recently encountered a frustrating issue with my Windows 11 system – an extremely slow boot process that involved multiple black screens and would take upwards of twenty minutes to complete. Despite diligently researching and attempting various fixes without success, I eventually decided to take a break and address the problem later. Upon returning, I discovered that a faulty ROM drive was to blame for the slow boot. After replacing it and restarting the system, the issue was completely resolved – a simple solution to what had seemed like a complex problem. My system currently consists of a 120GB SSD, 16GB of RAM, and an Nvidia GeForce GT 730 GPU. I plan to upgrade the GPU to 32GB soon, and also hope to successfully clone a 1TB SSD in the near future. For now, however, the system boots up smoothly without any delays. I share this experience in the hopes that it may assist others facing a similar challenge. Read More
Dynamic lock is no longer functioning
Currently, the dynamic lock feature is not functioning as expected. Despite resetting the settings and re-enabling it, the issue persists shortly after. Any suggestions to address this problem?
Operating System: Windows 11
Mobile Device: iPhone 15 running iOS 17.0
Currently, the dynamic lock feature is not functioning as expected. Despite resetting the settings and re-enabling it, the issue persists shortly after. Any suggestions to address this problem? Operating System: Windows 11Mobile Device: iPhone 15 running iOS 17.0 Read More
“How to View Hidden Items in File Explorer on Windows 11”
In Windows 10, I had full visibility of all ribbon options in File Explorer. However, in Windows 11, I am unable to see the same level of detail. It requires multiple clicks to access the previous view settings for displaying or hiding hidden files. It appears that Windows 11 has regressed in this aspect, unless there is a specific setting that I am unaware of to customize the ribbon display. Is there a way to achieve this in Windows 11?
In Windows 10, I had full visibility of all ribbon options in File Explorer. However, in Windows 11, I am unable to see the same level of detail. It requires multiple clicks to access the previous view settings for displaying or hiding hidden files. It appears that Windows 11 has regressed in this aspect, unless there is a specific setting that I am unaware of to customize the ribbon display. Is there a way to achieve this in Windows 11? Read More
“Missing ‘Empty Recycle Bin’ Button in Recycle Bin Window”
Previously, in the Recycle Bin’s command bar, there used to be a visible “Empty Recycle Bin” button. However, with the latest update, this button has been replaced by a three-dot menu. To access the “Empty” command now, you need to click on the three dots. If you prefer the previous button functionality, I can provide you with steps to set it up that way. Just let me know if you would like to make this adjustment.
Previously, in the Recycle Bin’s command bar, there used to be a visible “Empty Recycle Bin” button. However, with the latest update, this button has been replaced by a three-dot menu. To access the “Empty” command now, you need to click on the three dots. If you prefer the previous button functionality, I can provide you with steps to set it up that way. Just let me know if you would like to make this adjustment. Read More
Powershell to get Owners of all Teams
Hello
We have 95k Teams.
I have a script that is running and works.
# Loop through the teams
foreach($team in $teamColl)
{
# Get the team owners
Get-TeamUser -GroupId $teamColl.GroupId -Role Owner | Select-Object $teamColl.GroupId,$owner.UserId,$owner.User | export-csv -encoding unicode -NoTypeInformation -path E:”Path”Report_Components_Owners.csv -append
}
But at the beginning is fetching all the informations previously to write it down.
Is there a possibility to write it at the fetching or avoid to read 95k Teams at once and then write it.
Regards
JFM_12
HelloWe have 95k Teams.I have a script that is running and works. # Loop through the teams
foreach($team in $teamColl)
{
# Get the team owners
Get-TeamUser -GroupId $teamColl.GroupId -Role Owner | Select-Object $teamColl.GroupId,$owner.UserId,$owner.User | export-csv -encoding unicode -NoTypeInformation -path E:”Path”Report_Components_Owners.csv -append
}
But at the beginning is fetching all the informations previously to write it down. Is there a possibility to write it at the fetching or avoid to read 95k Teams at once and then write it. Regards JFM_12 Read More
“Missing New Settings Homepage”
Greetings!
I recently upgraded my Windows 11 Enterprise to version 22631.2715 using KB5032190. Although I now have access to all the new features, the new settings homepage within the options app is still absent. This was also the case in the previous version, 22631.2506. Despite trying the command ‘vivetool /enable /id:42058345,42058313’, the issue remains unresolved. Could this problem be linked to my enterprise license, my local account (as I do not log in using my Microsoft account), or something else? Thank you for your assistance.
Greetings! I recently upgraded my Windows 11 Enterprise to version 22631.2715 using KB5032190. Although I now have access to all the new features, the new settings homepage within the options app is still absent. This was also the case in the previous version, 22631.2506. Despite trying the command ‘vivetool /enable /id:42058345,42058313’, the issue remains unresolved. Could this problem be linked to my enterprise license, my local account (as I do not log in using my Microsoft account), or something else? Thank you for your assistance. Read More
sinad() function verification problems
Hi, I am doing DSP with sinad() function.
I wonder :
1.How sinad() verify the "wanted signal" and how is the notch filter decided?
It seems that if I put some different 1k audio raw datas into sinad(), it has different notch bandwidth
2. sinad() use a periodogram and kaiser window with beta=38, how is this decided?Hi, I am doing DSP with sinad() function.
I wonder :
1.How sinad() verify the "wanted signal" and how is the notch filter decided?
It seems that if I put some different 1k audio raw datas into sinad(), it has different notch bandwidth
2. sinad() use a periodogram and kaiser window with beta=38, how is this decided? Hi, I am doing DSP with sinad() function.
I wonder :
1.How sinad() verify the "wanted signal" and how is the notch filter decided?
It seems that if I put some different 1k audio raw datas into sinad(), it has different notch bandwidth
2. sinad() use a periodogram and kaiser window with beta=38, how is this decided? sinad, dsp, fft, periodogram MATLAB Answers — New Questions
Matlab HDL cosimulation for Lattice CPLD
I regularly develop VHDL code for controllers that is supposed to run on FPGAs/CPLDs and I’m looking for possibilities to co-simulate this code in a closed-loop simulation environment that mimics the behavior of the controlled system. So what I would like to have is that I can define a dyamic model in Matlab (e.g., as a state-space model or a transfer function) and to simulate this model together with the controller’s HDL implementation using the outputs of the models as stimuli for the controller and the output of the controller as input for the dynamic model. Is there any way I can accomplish this with Matlab? If so, what do I have to look for?
What I found so far is apparently called HDL verifier and seems to be pretty much what I want. However, I’m currently using Lattice MachXO2 CPLDs and Lattice diamond comes with "ModelSim Lattice FPGA Edition" as a simulator. According to this post
https://ch.mathworks.com/matlabcentral/answers/493504-which-modelsim-editions-can-i-use-for-cosimulation-with-hdl-verifier
HDL verifier requires a FLI (foreign language interface), which the Lattice Edition of ModelSim does not provide. Is there any way I can use HDL verifier, e.g., by using a different simulator?I regularly develop VHDL code for controllers that is supposed to run on FPGAs/CPLDs and I’m looking for possibilities to co-simulate this code in a closed-loop simulation environment that mimics the behavior of the controlled system. So what I would like to have is that I can define a dyamic model in Matlab (e.g., as a state-space model or a transfer function) and to simulate this model together with the controller’s HDL implementation using the outputs of the models as stimuli for the controller and the output of the controller as input for the dynamic model. Is there any way I can accomplish this with Matlab? If so, what do I have to look for?
What I found so far is apparently called HDL verifier and seems to be pretty much what I want. However, I’m currently using Lattice MachXO2 CPLDs and Lattice diamond comes with "ModelSim Lattice FPGA Edition" as a simulator. According to this post
https://ch.mathworks.com/matlabcentral/answers/493504-which-modelsim-editions-can-i-use-for-cosimulation-with-hdl-verifier
HDL verifier requires a FLI (foreign language interface), which the Lattice Edition of ModelSim does not provide. Is there any way I can use HDL verifier, e.g., by using a different simulator? I regularly develop VHDL code for controllers that is supposed to run on FPGAs/CPLDs and I’m looking for possibilities to co-simulate this code in a closed-loop simulation environment that mimics the behavior of the controlled system. So what I would like to have is that I can define a dyamic model in Matlab (e.g., as a state-space model or a transfer function) and to simulate this model together with the controller’s HDL implementation using the outputs of the models as stimuli for the controller and the output of the controller as input for the dynamic model. Is there any way I can accomplish this with Matlab? If so, what do I have to look for?
What I found so far is apparently called HDL verifier and seems to be pretty much what I want. However, I’m currently using Lattice MachXO2 CPLDs and Lattice diamond comes with "ModelSim Lattice FPGA Edition" as a simulator. According to this post
https://ch.mathworks.com/matlabcentral/answers/493504-which-modelsim-editions-can-i-use-for-cosimulation-with-hdl-verifier
HDL verifier requires a FLI (foreign language interface), which the Lattice Edition of ModelSim does not provide. Is there any way I can use HDL verifier, e.g., by using a different simulator? vhdl, hdl simulation, hdl verifier, cosimlation, fpga MATLAB Answers — New Questions
How to display a color bar in Matlab as shown below
Hello, experts.
I want to draw a color bar with discontinuous and regular intervals like the first picture above.
However, it would be best to draw a continuous color bar like the second picture. Is there a solution?Hello, experts.
I want to draw a color bar with discontinuous and regular intervals like the first picture above.
However, it would be best to draw a continuous color bar like the second picture. Is there a solution? Hello, experts.
I want to draw a color bar with discontinuous and regular intervals like the first picture above.
However, it would be best to draw a continuous color bar like the second picture. Is there a solution? colorbar, colormap, colormapeditor MATLAB Answers — New Questions
Windows 11 Clock Disappeared
Hey everyone,
I recently had to bid farewell to my aging Toshiba laptop due to its excruciatingly slow boot time and overall sluggishness during operation – not to mention its perpetually stuck lid!
I’ve now upgraded to a snazzy Medion gaming laptop running Windows 11, which required a bit of adjustment coming from Windows 10. For the most part, the transition has been smooth. However, a few days back, I noticed that my clock vanished from the taskbar, possibly following one of the numerous updates Windows 11 has automatically installed within the ten days I’ve owned this laptop. Despite my efforts to rectify the issue by delving into the settings under “Time & Language” and “Date & Time,” I found the option to ‘Show time and date in the system tray’ disabled and unalterable due to a peculiar notification at the top of the page stating that “Some of these settings are managed by your organization.”
Considering I am the sole user on this device, I found this restriction rather exasperating – a common frustration with technology.
Numerous attempts to resolve the problem, including tweaking registry settings, resetting the clock app, and scanning system files, all ended in vain. Frustrated but undeterred, I decided to download an alternative clock app called “Eleven Clock” in hopes of filling the time-keeping void. Alas, my efforts led to a new issue – the battery icon disappeared. As I mulled over the dilemma, an idea struck me to move the clock app to the taskbar overflow section, only to realize there was no apparent option to do so within the system settings.
After several fruitless hours spent troubleshooting (or rather, not troubleshooting), I find myself reaching out to seek assistance. Below are screenshots highlighting the predicament, showcasing the message “Some of these settings are managed by your organization” along with the grayed-out “Show time and date” option, the taskbar sans clock but with the battery icon, and the inverse scenario with the clock displayed (via Eleven Clock) but missing the battery icon.
Your help with this conundrum would be greatly appreciated!
Hey everyone, I recently had to bid farewell to my aging Toshiba laptop due to its excruciatingly slow boot time and overall sluggishness during operation – not to mention its perpetually stuck lid! I’ve now upgraded to a snazzy Medion gaming laptop running Windows 11, which required a bit of adjustment coming from Windows 10. For the most part, the transition has been smooth. However, a few days back, I noticed that my clock vanished from the taskbar, possibly following one of the numerous updates Windows 11 has automatically installed within the ten days I’ve owned this laptop. Despite my efforts to rectify the issue by delving into the settings under “Time & Language” and “Date & Time,” I found the option to ‘Show time and date in the system tray’ disabled and unalterable due to a peculiar notification at the top of the page stating that “Some of these settings are managed by your organization.” Considering I am the sole user on this device, I found this restriction rather exasperating – a common frustration with technology. Numerous attempts to resolve the problem, including tweaking registry settings, resetting the clock app, and scanning system files, all ended in vain. Frustrated but undeterred, I decided to download an alternative clock app called “Eleven Clock” in hopes of filling the time-keeping void. Alas, my efforts led to a new issue – the battery icon disappeared. As I mulled over the dilemma, an idea struck me to move the clock app to the taskbar overflow section, only to realize there was no apparent option to do so within the system settings. After several fruitless hours spent troubleshooting (or rather, not troubleshooting), I find myself reaching out to seek assistance. Below are screenshots highlighting the predicament, showcasing the message “Some of these settings are managed by your organization” along with the grayed-out “Show time and date” option, the taskbar sans clock but with the battery icon, and the inverse scenario with the clock displayed (via Eleven Clock) but missing the battery icon. Your help with this conundrum would be greatly appreciated! Read More
Problem with Windows File Explorer
Hello, technical enthusiasts! After updating to 23H2, I noticed a new feature in Windows File Explorer. When you click on a folder or file and begin to move it around, there is now a visual representation of the item being moved. I’m curious if there’s a way to deactivate or hide this image display during the moving process in File Explorer. Here’s a glimpse of what it entails:
Hello, technical enthusiasts! After updating to 23H2, I noticed a new feature in Windows File Explorer. When you click on a folder or file and begin to move it around, there is now a visual representation of the item being moved. I’m curious if there’s a way to deactivate or hide this image display during the moving process in File Explorer. Here’s a glimpse of what it entails: Read More
“Task Bar with Oscillating Feature”
Windows 11 23H2 Update
Windows Feature Experience Pack version 1000.22677.1000.0
Latest Update: November 17, 2023
Issue with Taskbar Oscillation in Visio on Asus OLED Vivobook
Hello,
I have been experiencing a persistent issue with the taskbar in Visio on my Asus OLED Vivobook. The taskbar keeps oscillating between hiding and unhiding, causing a significant distraction during work.
I have attempted the following troubleshooting steps without success:
1. Enabled and disabled the Asus OLED Care function “Automatically hide Windows taskbar in desktop mode.”
2. Adjusted all taskbar settings in Settings to toggle functions on and off.
3. Ran a repair on Visio to address the problem.
Despite these efforts, the oscillation issue persists. Do you have any suggestions or additional solutions that could help resolve this frustrating problem?
Thank you for your assistance.
Best regards,
John
Windows 11 23H2 Update Windows Feature Experience Pack version 1000.22677.1000.0 Latest Update: November 17, 2023 Issue with Taskbar Oscillation in Visio on Asus OLED Vivobook Hello, I have been experiencing a persistent issue with the taskbar in Visio on my Asus OLED Vivobook. The taskbar keeps oscillating between hiding and unhiding, causing a significant distraction during work. I have attempted the following troubleshooting steps without success: 1. Enabled and disabled the Asus OLED Care function “Automatically hide Windows taskbar in desktop mode.”2. Adjusted all taskbar settings in Settings to toggle functions on and off.3. Ran a repair on Visio to address the problem. Despite these efforts, the oscillation issue persists. Do you have any suggestions or additional solutions that could help resolve this frustrating problem? Thank you for your assistance. Best regards,John Read More
How to Manage without Cloud Storage on Windows
Recently upgraded to Windows 11 on my new computer and I’m not thrilled about being prompted to install and pay for Windows 365 in order to store my data in the cloud. I prefer to continue using the three hard drives I’ve always relied on, but I can’t figure out how to disable the cloud system. Any assistance would be greatly appreciated.
One of my main concerns is the slow internet speeds in my area, with only 6 Mbps upload and around 14 Mbps download. It’s incredibly time-consuming to save files under these conditions. Additionally, I don’t want to be pressured into paying for storage that I have already paid for elsewhere. I keep getting reminders to renew Windows 365, even though I haven’t purchased it yet, as I’m content with using Office 2013 for now.
Recently upgraded to Windows 11 on my new computer and I’m not thrilled about being prompted to install and pay for Windows 365 in order to store my data in the cloud. I prefer to continue using the three hard drives I’ve always relied on, but I can’t figure out how to disable the cloud system. Any assistance would be greatly appreciated. One of my main concerns is the slow internet speeds in my area, with only 6 Mbps upload and around 14 Mbps download. It’s incredibly time-consuming to save files under these conditions. Additionally, I don’t want to be pressured into paying for storage that I have already paid for elsewhere. I keep getting reminders to renew Windows 365, even though I haven’t purchased it yet, as I’m content with using Office 2013 for now. Read More
Build your own AI Text-to-Image Generator in Visual Studio Code
Hello, I’m Hamna Khalil, a Beta Microsoft Learn Student Ambassador from Pakistan. Currently, I am in my third year of pursuing a bachelor’s degree in Software Engineering at Fatima Jinnah Women University.
Do you want to build your own AI Text-to-Image Generator in less than 15 minutes? Join me as I’ll walk you through the process of building one using Stable Diffusion within Visual Studio Code!
Prerequisites
Before you start, ensure you have the following:
Python 3.9 or higher.
Hugging Face Account.
Step 1: Set Up the Development Environment
In your project directory, create a file named requirements.txt and add the following dependencies to the file:
certifi==2022.9.14
charset-normalizer==2.1.1
colorama==0.4.5
customtkinter==4.6.1
darkdetect==0.7.1
diffusers==0.3.0
filelock==3.8.0
huggingface-hub==0.9.1
idna==3.4
importlib-metadata==4.12.0
numpy==1.23.3
packaging==21.3
Pillow==9.2.0
pyparsing==3.0.9
PyYAML==6.0
regex==2022.9.13
requests==2.28.1
tk==0.1.0
tokenizers==0.12.1
torch==1.12.1+cu113
torchaudio==0.12.1+cu113
torchvision==0.13.1+cu113
tqdm==4.64.1
transformers==4.22.1
typing_extensions==4.3.0
urllib3==1.26.12
zipp==3.8.1
To install the listed dependenciesin the requirements.txt file, run the following command in your terminal:
pip install -r requirements.txt
Step 2: Configure Authentication
In your project directory, create a file named authtoken.py and add the following code to the file:
auth_token = “ACCESS TOKEN FROM HUGGING FACE”
To obtain access token from Hugging Face, follow these steps:
Log in to your Hugging Face account.
Go to your profile settings and select Access Tokens
Click on Create new token.
Choose the token type as Read.
Enter Token name and click Create token.
Copy the generated token and replace ACCESS TOKEN FROM HUGGINGFACE in authtoken.py file with your token.
Step 3: Develop the Application
In your project directory, create a file named application.py and add the following code to the file:
# Import the Tkinter library for GUI
import tkinter as tk
# Import the custom Tkinter library for enhanced widgets
import customtkinter as ctk
# Import PyTorch for handling tensors and model
import torch
# Import the Stable Diffusion Pipeline from diffusers library
from diffusers import StableDiffusionPipeline
# Import PIL for image handling
from PIL import Image, ImageTk
# Import the authentication token from a file
from authtoken import auth_token
# Initialize the main Tkinter application window
app = tk.Tk()
# Set the size of the window
app.geometry(“532×632”)
# Set the title of the window
app.title(“Text-to-Image Generator”)
# Set the appearance mode of customtkinter to dark
ctk.set_appearance_mode(“dark”)
# Create an entry widget for the prompt text input
prompt = ctk.CTkEntry(height=40, width=512, text_font=(“Arial”, 20), text_color=”black”, fg_color=”white”)
# Place the entry widget at coordinates (10, 10)
prompt.place(x=10, y=10)
# Create a label widget for displaying the generated image
lmain = ctk.CTkLabel(height=512, width=512)
# Place the label widget at coordinates (10, 110)
lmain.place(x=10, y=110)
# Define the model ID for Stable Diffusion
modelid = “CompVis/stable-diffusion-v1-4”
# Define the device to run the model on
device = “cpu”
# Load the Stable Diffusion model pipeline
pipe = StableDiffusionPipeline.from_pretrained(modelid, revision=”fp16″, torch_dtype=torch.float32, use_auth_token=auth_token)
# Move the pipeline to the specified device (CPU)
pipe.to(device)
# Define the function to generate the image from the prompt
def generate():
# Disable gradient calculation for efficiency
with torch.no_grad():
# Generate the image with guidance scale
image = pipe(prompt.get(), guidance_scale=8.5)[“sample”][0]
# Convert the image to a PhotoImage for Tkinter
img = ImageTk.PhotoImage(image)
# Keep a reference to the image to prevent garbage collection
lmain.image = img
# Update the label widget with the new image
lmain.configure(image=img)
# Create a button widget to trigger the image generation
trigger = ctk.CTkButton(height=40, width=120, text_font=(“Arial”, 20), text_color=”white”, fg_color=”black”, command=generate)
# Set the text on the button to “Generate”
trigger.configure(text=”Generate”)
# Place the button at coordinates (206, 60)
trigger.place(x=206, y=60)
# Start the Tkinter main loop
app.mainloop()
To run the application, execute the following command in your terminal:
python application.py
This will launch the GUI where you can enter a text prompt and generate corresponding images by clicking the Generate button.
Congratulations! You have successfully built an AI Text-to-Image Generator using Stable Diffusion in Visual Studio Code. Feel free to explore and enhance the application further by adding new features and improving the user interface. Happy coding!
Resources
Microsoft Tech Community – Latest Blogs –Read More
Unlock the Power of GitHub Copilot Workspaces: A Beginner’s Guide
GitHub Copilot Workspaces builds on the foundation of Copilot, offering a collaborative environment where teams can leverage AI to enhance their development processes. Unlike the standalone Copilot, Workspaces integrates seamlessly with your development workflow, providing a shared space for code, documentation, and real-time collaboration.
Why Use Copilot Workspaces?
Enhanced Collaboration: Work together seamlessly with real-time code sharing and editing.
Improved Code Quality: Leverage AI for intelligent code suggestions and reviews.
Streamlined Workflows: Integrate with existing tools and processes for a cohesive development environment.
Setting Up Copilot Workspaces
Prerequisites
A GitHub account
GitHub Copilot subscription
Compatible IDE (e.g., Visual Studio Code)
Getting Started
Option 1: Open an issue in a GitHub repo and click the “Open in Workspace” button. This will start a new Copilot Workspace session, pre-seeded with the issue as the task, and allow you to iterate on the spec/plan/implementation for it
Option 2: Visit the Copilot Workspace dashboard and start a new session by clicking the “New Session” button. This will allow you to search for a repo and then define an ad-hoc task for it. Effectively like a draft issue. And if you select a template repo, you can define the requirements of a new repo that you create from that.
Iterate on a pull request by clicking the “Open in Workspace” button, defining the change you’d like to make (e.g. “Add checks for potential errors”) and then implementing them.
Notice the changes suggested by GitHub Copilot
Open a workspace session in a Codespace, by clicking the “Open in Codespace” button in the header bar or in the “Implementation” panel.
Note that your workspace edits will be synced to the Codespace, and any edits you make in the Codespace are synced back to the workspace. This allows you to use VS Code/Codespaces as a companion experience for making larger edits, debugging, etc.
For instance, replacing `cp -r` with `rsync –av` for more efficient directory copying, changes become reflected in the workspace.
Revise the spec, plan, and code with natural language – In addition to making direct edits to the specification or plan. The same capability is also available on the header for changed files, which allows you to revise code based on a specific instruction (e.g. Use $HOME Instead of /home/$USER) and click revise
Copilot goes ahead and implements the request file changes which also get reflected in the open Codespaces.
Once you’re satisfied with your changes, you can go ahead and update the PR or select any of the following available options that suite your need.
Other capabilities provided by GitHub copilot workspaces are file explorer within the browser and an integrated terminal for compiling code, package management and self-customization of the environment.
Additional Resources
Step-by-Step: Setting Up GitHub Student and GitHub Copilot as an Authenticated Student Developer.
Learn more GitHub Copilot
Copilot Workspace User Manual
Microsoft Tech Community – Latest Blogs –Read More
How to train Unet semantic segmentation with only one single class/label?
Hello, I’m currently working on a task to do a semantic segmentation on USG image to locate TMJ. I did my image labelling in Image Labeler App and only did one class so that the class region will be 1 and background is 0. I was about to train my model with unetLayers but it says "The value of ‘numClasses’ is invalid. Expected numClasses to be a scalar with value > 1."
I’m aware that someone asked this similar question here with an answer, but I want to ask, how to customize specifically unetLayers to accomodate single class? I see that unetLayers also has softmaxLayers but i can’t find the pixel layers. Thank you in advance!Hello, I’m currently working on a task to do a semantic segmentation on USG image to locate TMJ. I did my image labelling in Image Labeler App and only did one class so that the class region will be 1 and background is 0. I was about to train my model with unetLayers but it says "The value of ‘numClasses’ is invalid. Expected numClasses to be a scalar with value > 1."
I’m aware that someone asked this similar question here with an answer, but I want to ask, how to customize specifically unetLayers to accomodate single class? I see that unetLayers also has softmaxLayers but i can’t find the pixel layers. Thank you in advance! Hello, I’m currently working on a task to do a semantic segmentation on USG image to locate TMJ. I did my image labelling in Image Labeler App and only did one class so that the class region will be 1 and background is 0. I was about to train my model with unetLayers but it says "The value of ‘numClasses’ is invalid. Expected numClasses to be a scalar with value > 1."
I’m aware that someone asked this similar question here with an answer, but I want to ask, how to customize specifically unetLayers to accomodate single class? I see that unetLayers also has softmaxLayers but i can’t find the pixel layers. Thank you in advance! deep learning MATLAB Answers — New Questions
Troubleshooting Build Error in MAC Apple Silicon Processor for Simulink Support Package for Arduino Hardware
Build for any Target Hardware selected fails for MAC Apple Silicon Processor with the following error "bad CPU Type in executable".Build for any Target Hardware selected fails for MAC Apple Silicon Processor with the following error "bad CPU Type in executable". Build for any Target Hardware selected fails for MAC Apple Silicon Processor with the following error "bad CPU Type in executable". arduino, simulink, matlab, mac MATLAB Answers — New Questions