Month: August 2024
Since the update of Microsoft Project version 2406 it is impossible to activate macros
Since the update of Microsoft Project version 2406 it is impossible to activate macros
I can’t force the activation of VBA macros for project work. I work on project ONline with office 365.
I tried several things without success. with project when opening which blocks the activation of macros without leaving any other choice
-whatever the privacy center option settings in project and currently on “enable all macros”
-I also tried to add my https sharepoint url in the approved locations
-finally in the trusted site internet options I also added the URL of my sharepointe webapp for project
Since the update of Microsoft Project version 2406 it is impossible to activate macrosI can’t force the activation of VBA macros for project work. I work on project ONline with office 365.I tried several things without success. with project when opening which blocks the activation of macros without leaving any other choice-whatever the privacy center option settings in project and currently on “enable all macros”-I also tried to add my https sharepoint url in the approved locations-finally in the trusted site internet options I also added the URL of my sharepointe webapp for project Read More
Screensaver .scr
Hi Community,
i am not able to convert mp4 to .scr file, and can anyone confirm do i want to add that file in all system manually to implement screensaver policy?
Hi Community, i am not able to convert mp4 to .scr file, and can anyone confirm do i want to add that file in all system manually to implement screensaver policy? Read More
Clarification on Microsoft Teams Encryption: E2EE vs. Default Encryption
I’m seeking some clarity on the differences between the end-to-end encryption (E2EE) offered with the Teams Premium license and the default encryption for data at rest and in transit within Microsoft Teams.
From what I understand, Teams data is already encrypted both in transit and at rest by default. However, I’m unsure how the E2EE provided under the Teams Premium license differs from this standard encryption. Could someone explain in simple terms the specific differences between these two encryption methods?
I’m particularly interested in understanding how I can effectively communicate these differences to my clients, who may not be very technical but need to grasp the security advantages of the Premium license.
I’m seeking some clarity on the differences between the end-to-end encryption (E2EE) offered with the Teams Premium license and the default encryption for data at rest and in transit within Microsoft Teams. From what I understand, Teams data is already encrypted both in transit and at rest by default. However, I’m unsure how the E2EE provided under the Teams Premium license differs from this standard encryption. Could someone explain in simple terms the specific differences between these two encryption methods? I’m particularly interested in understanding how I can effectively communicate these differences to my clients, who may not be very technical but need to grasp the security advantages of the Premium license. Read More
Can’t convert flac to MP3 with Windows Media Player? Need help
New to Windows OS and really need some help from Microsoft community.
I have hundreds of FLAC music files sitting on my Windows 11 PC. While I can play them just fine with built-in Media Player, I’m having trouble figuring out how to convert them to MP3 so I can use them in my car.
I’m looking for a straightforward way to convert flac to mp3 without losing too much quality. Please share your thought if you know how to do it safely. Preferably something that can handle batch conversions since I have a lot of files. Thanks in advance!
New to Windows OS and really need some help from Microsoft community. I have hundreds of FLAC music files sitting on my Windows 11 PC. While I can play them just fine with built-in Media Player, I’m having trouble figuring out how to convert them to MP3 so I can use them in my car. I’m looking for a straightforward way to convert flac to mp3 without losing too much quality. Please share your thought if you know how to do it safely. Preferably something that can handle batch conversions since I have a lot of files. Thanks in advance! Read More
Bulk delete all the old jobs from the batch account
Deleting a Job also deletes all Tasks that are part of that Job, and all Job statistics. This also overrides the retention period for Task data; that is, if the Job contains Tasks which are still retained on Compute Nodes, the Batch service deletes those Tasks’ working directories and all their contents. When a Delete Job request is received, the Batch service sets the Job to the deleting state. All update operations on a Job that is in deleting state will fail with status code 409 (Conflict), with additional information indicating that the Job is being deleted.
We can use below PowerShell command to delete one single job using job id:
Remove-AzBatchJob -Id “Job-000001” -BatchContext $Context
But if you have a large number of jobs and wants to delete them simultaneously, then you can refer below PowerShell command for the same:
# Replace with your Azure Batch account name, resource group, and subscription ID
$accountName = “yourBatchAccountName”
$resourceGroupName = “yourResourceGroupName”
# Authenticate to Azure
Connect-AzAccount
# Get the Batch account context
$batchContext = Get-AzBatchAccount -Name $accountName -ResourceGroupName $resourceGroupName
# Get all batch jobs with creation time before May 2024
# Replace the creation time date accordingly
$jobsForDelete = Get-AzBatchJob -BatchContext $batchContext | Where-Object {$_.CreationTime -lt “2024-05-01”}
# List the jobs
Write-Host “Jobs to be deleted:”
foreach ($job in $jobsForDelete) {
Write-Host $job.Id
# Write-Host “Deleting jobs…”
Remove-AzBatchJob -Id $job.Id -BatchContext $batchContext -Force
}
The above script will delete all the jobs created before the creation date. You can accordingly modify the parameters as per your requirement.
Microsoft Tech Community – Latest Blogs –Read More
How to make a open switch fault using ePWM block(Texas instruments c2000)??
I’m trying to make open switch fault situation (or the duty cycle of the high side switch to be 0 while not effects the low side one.) . And I’m using a EPWM block from texas instruments c2000 add-on.
I want a high side switch to be opened not the low side one too.
I did
1) continuous software force to control the high side switch(ePWM-A)….. but it’s the highest priority signal that makes ePWM-B signal changed.
Is there any way I could solve this problem??I’m trying to make open switch fault situation (or the duty cycle of the high side switch to be 0 while not effects the low side one.) . And I’m using a EPWM block from texas instruments c2000 add-on.
I want a high side switch to be opened not the low side one too.
I did
1) continuous software force to control the high side switch(ePWM-A)….. but it’s the highest priority signal that makes ePWM-B signal changed.
Is there any way I could solve this problem?? I’m trying to make open switch fault situation (or the duty cycle of the high side switch to be 0 while not effects the low side one.) . And I’m using a EPWM block from texas instruments c2000 add-on.
I want a high side switch to be opened not the low side one too.
I did
1) continuous software force to control the high side switch(ePWM-A)….. but it’s the highest priority signal that makes ePWM-B signal changed.
Is there any way I could solve this problem?? epwm, open switch fault MATLAB Answers — New Questions
How to Debug Python Script (using breakpoints) that is called from Matlab on MAC OS
I am using MATLAB_R2023b.
I have wrote a Python script which is called from Matlab files. I want to debug the Python script. I have tried logging information using print statements in Python but that is not the preferred way to debug as I have to do a lot of work. I wanted to know if there are any work arounds like using visual studio code or other IDE for the same.
I am using MACOS, now that Visual Studio is retiring for MACOS how should one go about debugging it?I am using MATLAB_R2023b.
I have wrote a Python script which is called from Matlab files. I want to debug the Python script. I have tried logging information using print statements in Python but that is not the preferred way to debug as I have to do a lot of work. I wanted to know if there are any work arounds like using visual studio code or other IDE for the same.
I am using MACOS, now that Visual Studio is retiring for MACOS how should one go about debugging it? I am using MATLAB_R2023b.
I have wrote a Python script which is called from Matlab files. I want to debug the Python script. I have tried logging information using print statements in Python but that is not the preferred way to debug as I have to do a lot of work. I wanted to know if there are any work arounds like using visual studio code or other IDE for the same.
I am using MACOS, now that Visual Studio is retiring for MACOS how should one go about debugging it? matlab, python, debugger MATLAB Answers — New Questions
How to extract the values of kml file x,y,z from MATLAB
Is it possible to extract the values of kml file x,y,z from matlab?
Is there any url or document to refer to in this regard?Is it possible to extract the values of kml file x,y,z from matlab?
Is there any url or document to refer to in this regard? Is it possible to extract the values of kml file x,y,z from matlab?
Is there any url or document to refer to in this regard? kml MATLAB Answers — New Questions
How to turn off epwm using software force logic in c2000 f28388d?
Hi,
I am using an F28388D to control a 3-phase full bridge inverter. I am utilizing a code with a state diagram for this purpose. I have a requirement to completely turn off the third leg of the inverter at one point for a few seconds based on inputs from Stateflow. I tried using the software force logic, but I am unable to turn off the switches. The attached diagram shows the settings I have tried for this. I provided an input of 1 to the SW input port whenever I needed to turn off the leg, but it’s not working, and I am unable to find any resources on how to implement this.
Is there anyone who can help with this?
Thanks in advance.
Regards,
KripaHi,
I am using an F28388D to control a 3-phase full bridge inverter. I am utilizing a code with a state diagram for this purpose. I have a requirement to completely turn off the third leg of the inverter at one point for a few seconds based on inputs from Stateflow. I tried using the software force logic, but I am unable to turn off the switches. The attached diagram shows the settings I have tried for this. I provided an input of 1 to the SW input port whenever I needed to turn off the leg, but it’s not working, and I am unable to find any resources on how to implement this.
Is there anyone who can help with this?
Thanks in advance.
Regards,
Kripa Hi,
I am using an F28388D to control a 3-phase full bridge inverter. I am utilizing a code with a state diagram for this purpose. I have a requirement to completely turn off the third leg of the inverter at one point for a few seconds based on inputs from Stateflow. I tried using the software force logic, but I am unable to turn off the switches. The attached diagram shows the settings I have tried for this. I provided an input of 1 to the SW input port whenever I needed to turn off the leg, but it’s not working, and I am unable to find any resources on how to implement this.
Is there anyone who can help with this?
Thanks in advance.
Regards,
Kripa c2000, f28388d, epwm MATLAB Answers — New Questions
Graph API permission issue to update Office 365 group settings via Application user(ClientId/Secret)
Hello Everyone,
I’m facing an issue updating the allowExternalSenders setting for a Microsoft 365 Group. I’ve tried various methods, including granting permissions of App to Groups and Directories, adding an App role, in the App and even assigning my App to the Azure Global Admin Security role, but nothing seems to be working. Does anyone have any suggestions or solutions for this problem?
below is the error.
Failed to update group settings: {“error”:{“code”:”ErrorGroupsAccessDenied”,”message”:”User does not have permissions to execute this action.
Hello Everyone, I’m facing an issue updating the allowExternalSenders setting for a Microsoft 365 Group. I’ve tried various methods, including granting permissions of App to Groups and Directories, adding an App role, in the App and even assigning my App to the Azure Global Admin Security role, but nothing seems to be working. Does anyone have any suggestions or solutions for this problem? below is the error.Failed to update group settings: {“error”:{“code”:”ErrorGroupsAccessDenied”,”message”:”User does not have permissions to execute this action. Read More
Simple Guide On Effective Use Of Parallel Programming For C# In A Managed Code Environment:
Parallel programming in C# uses a variation of Managed Threading, that relies on PLINQ, Expression Trees, The Barrier Class, Thread Class, BackgroundWorker Class, SpinWait Struct, SpinLock Struct, and Thread-Tracking Mode for SpinLock. The reason is that it’s faster to use the environment to determine how many cores / threads are available, as to not starve the device of resources, which at that point, you have to use the BackgroundWorker Class to manage each task you’ve created. Often in this scenario, you can end up with a deadlock condition, because you have more than one task trying to access a shared resource. It’s much easier and faster to split up each task, ONLY using byte arrays, assigning each task individual byte arrays to sort / parse, encrypted or not, with the Stream class, or a sub variation of that Class, and then when each task finishes, they all finish at different times, but the shared resource is divided up into portions, so that they will only be able to fill one area of that array. The reason why Barrier is used in this situation, is it forces each one to wait until all the tasks are finished, or until they all ARRIVE at the same place, which solves one timing issue, yet it might create another where there’s a bit of a timing mismatch if your estimates are wrong, you overshoot or undershoot I mean. At the very end, you can use a separate process to just COPY from each individual array, without a deadlock scenario occurring. The only issue, is you have to estimate how many threads are available ahead of time, and you can’t use every single thread, yet you’re going to have to divide a single resource between all those threads. Beforehand, you have to verify if it’s a waste of time to use more than one thread. The reason why I say this, is that a lot of people use reference types, not knowing they are immutable, and they take a huge / massive performance hit because of this. Often you have to convert strings into byte arrays, or use a pre-initialized character array at the start of the program, which contains the Unicode values that you want to recast individually as strings, and then use a byte array as an INDEX or a placeholder, of a Unicode character array. If you’re not encrypting the byte arrays, or using them for text parsing, which byte arrays tend to be best in high throughput scenarios, than integer arrays will suffice. The index can be scrambled based on how you want to represent that one string, though it’s smarter to only cast a new reference type when you want to display text on the screen. If you spend too much time manually parsing using built-in libraries, it’s REALLY SLOW. A byte array is better to use than an integer array in this sort of situation. You might have to create separate indexes with a byte array representing a set of binary flags, to determine whether each one is a letter, number, symbol, etc, or how you want to classify each one based on the code chart that you’re using. You would be better off in that situation to just use right shift / left shift / XOR, etc, to set the flags. Then you have something which is also very fast, and almost equivalent to a Barrel Shifter, given C# does not allow you to use pointers, as it’s managed code / a managed environment. All the Boolean Logical Operators with Compound Assignment rely on pre-initialized Cast Expressions of Integer Literals, Bitwise and Shift Operators, combined with Lambda Expressions, and Operator Overloading. The purpose of the Shift Operators is to mask / pad the bits of one byte value with zeroes, so that your Cast Expression Of An Integer Literal, which serves at the mask, always gives you a fixed / deterministic result, when used in conjunction with Boolean Logical Operators, especially if the value is smaller than 8-bits / a single byte, or you’re dealing with a larger array has to represent a flag “register” with a size of ( 2 ^ 8 ) 256 bits, which is basically a Double-Word:
“Microsoft Learn – Boolean logical operators – AND, OR, NOT, XOR – Compound assignment” -> “https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/boolean-logical-operators#compound-assignment”
“Microsoft Learn – Bitwise and shift operators (C# reference)” -> “https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/bitwise-and-shift-operators”
“Microsoft Learn – Operator overloading – predefined unary, arithmetic, equality and comparison operators” -> “https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/operator-overloading”
“Microsoft Learn – Lambda expressions and anonymous functions” -> “https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/lambda-expressions”
“Microsoft Learn – Integral numeric types (C# reference) – Integer literals” -> “https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/integral-numeric-types#integer-literals”
“Microsoft Learn – Type-testing operators and cast expressions – is, as, typeof and casts – Cast expression” -> “https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/type-testing-and-cast#cast-expression”
“Microsoft Learn – Deserialization risks in use of BinaryFormatter and related types” -> “https://learn.microsoft.com/en-us/dotnet/standard/serialization/binaryformatter-security-guide”
“Microsoft Learn – BinaryReader Class” -> “https://learn.microsoft.com/en-us/dotnet/api/system.io.binaryreader?view=netframework-4.0”
“Microsoft Learn – Stream Class” -> “https://learn.microsoft.com/en-us/dotnet/api/system.io.stream?view=netframework-4.0”
“Microsoft Learn – StreamWriter Class” -> “https://learn.microsoft.com/en-us/dotnet/api/system.io.streamwriter?view=netframework-4.0”
“Microsoft Learn – StreamReader Class” -> “https://learn.microsoft.com/en-us/dotnet/api/system.io.streamreader?view=netframework-4.0”
“Microsoft Learn – File and Stream I/O” -> “https://learn.microsoft.com/en-us/dotnet/standard/io/”
“Microsoft Learn – Pipe Functions” -> “https://learn.microsoft.com/en-us/windows/win32/ipc/pipe-functions”
“Microsoft Learn – System.IO.Pipes Namespace” -> “https://learn.microsoft.com/en-us/dotnet/api/system.io.pipes?view=netframework-4.0”
“Microsoft Learn – Custom Partitioners for PLINQ and TPL” -> “https://learn.microsoft.com/en-us/dotnet/standard/parallel-programming/custom-partitioners-for-plinq-and-tpl”
“Microsoft Learn – Expression Trees” -> “https://learn.microsoft.com/en-us/dotnet/csharp/advanced-topics/expression-trees/”
“Microsoft Learn – Build expression trees” -> “https://learn.microsoft.com/en-us/dotnet/csharp/advanced-topics/expression-trees/expression-trees-building”
“Microsoft Learn – Translate expression trees” -> “https://learn.microsoft.com/en-us/dotnet/csharp/advanced-topics/expression-trees/expression-trees-translating”
“Microsoft Learn – Execute expression trees” -> “https://learn.microsoft.com/en-us/dotnet/csharp/advanced-topics/expression-trees/expression-trees-execution”
“Microsoft Learn – System.Windows.Threading Namespace” -> “https://learn.microsoft.com/en-us/dotnet/api/system.windows.threading?view=netframework-4.0”
“Microsoft Learn – System.Threading Namespace” -> “https://learn.microsoft.com/en-us/dotnet/api/system.threading?view=netframework-4.0”
“Microsoft Learn – System.Threading.Channels Namespace” -> “https://learn.microsoft.com/en-us/dotnet/api/system.threading.channels?view=netcore-3.0”
“Microsoft Learn – System.Threading.Tasks Namespace” -> “https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks?view=netframework-4.0”
“Microsoft Learn – Timer Class (System.Timers)” -> “https://learn.microsoft.com/en-us/dotnet/api/system.timers?view=netframework-4.0”
“Microsoft Learn – Timer Class (System.Threading)” -> “https://learn.microsoft.com/en-us/dotnet/api/system.threading.timer?view=netframework-4.0”
“Microsoft Learn – DispatcherTimer Class (System.Windows.Threading)” -> “https://learn.microsoft.com/en-us/dotnet/api/system.windows.threading.dispatchertimer?view=netframework-4.0”
“Microsoft Learn – Dispatcher Class (System.Windows.Threading)” -> “https://learn.microsoft.com/en-us/dotnet/api/system.windows.threading.dispatcher?view=netframework-4.0”
“Microsoft Learn – Threads and threading” -> “https://learn.microsoft.com/en-us/dotnet/standard/threading/threads-and-threading”
“Microsoft Learn – Using threads and threading” -> “https://learn.microsoft.com/en-us/dotnet/standard/threading/using-threads-and-threading”
“Microsoft Learn – Introduction to PLINQ” -> “https://learn.microsoft.com/en-us/dotnet/standard/parallel-programming/introduction-to-plinq”
“Microsoft Learn – Task Parallel Library (TPL)” -> “https://learn.microsoft.com/en-us/dotnet/standard/parallel-programming/task-parallel-library-tpl”
“Microsoft Learn – Lambda Expressions in PLINQ and TPL” -> “https://learn.microsoft.com/en-us/dotnet/standard/parallel-programming/lambda-expressions-in-plinq-and-tpl”
“Microsoft Learn – Multithreading in Windows Forms Controls” -> “https://learn.microsoft.com/en-us/dotnet/desktop/winforms/controls/multithreading-in-windows-forms-controls”
“Microsoft Learn – Managed threading best practices” -> “https://learn.microsoft.com/en-us/dotnet/standard/threading/managed-threading-best-practices”
“Microsoft Learn – Parallel programming in .NET: A guide to the documentation” -> “https://learn.microsoft.com/en-us/dotnet/standard/parallel-programming/”
“Microsoft Learn – Thread Class” -> “https://learn.microsoft.com/en-us/dotnet/api/system.threading.thread”
“Microsoft Learn – BackgroundWorker Class” -> “https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.backgroundworker”
“Microsoft Learn – Synchronizing data for multithreading” -> “https://learn.microsoft.com/en-us/dotnet/standard/threading/synchronizing-data-for-multithreading”
“Microsoft Learn – Overview of synchronization primitives” -> “https://learn.microsoft.com/en-us/dotnet/standard/threading/overview-of-synchronization-primitives”
“Microsoft Learn – Environment.ProcessorCount Property” -> “https://learn.microsoft.com/en-us/dotnet/api/system.environment.processorcount”
“Microsoft Learn – Managed threading best practices – Number of Processors” -> “https://learn.microsoft.com/en-us/previous-versions/dotnet/netframework-1.1/1c9txz50(v=vs.71)#number-of-processors”
“Microsoft Learn – lock statement – ensure exclusive access to a shared resource” -> “https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/statements/lock”
“Microsoft Learn – Reliability Best Practices” -> “https://learn.microsoft.com/en-us/dotnet/framework/performance/reliability-best-practices”
“Microsoft Learn – BackgroundWorker Component Overview” -> “https://learn.microsoft.com/en-us/dotnet/desktop/winforms/controls/backgroundworker-component-overview”
“Microsoft Learn – How to: Run an Operation in the Background” -> “https://learn.microsoft.com/en-us/dotnet/desktop/winforms/controls/how-to-run-an-operation-in-the-background”
“Microsoft Learn – Thread-safe collections” -> “https://learn.microsoft.com/en-us/dotnet/standard/collections/thread-safe/”
“Microsoft Learn – Threading objects and features” -> “https://learn.microsoft.com/en-us/dotnet/standard/threading/threading-objects-and-features”
“Microsoft Learn – Barrier” -> “https://learn.microsoft.com/en-us/dotnet/standard/threading/barrier”
“Microsoft Learn – Barrier Class” -> “https://learn.microsoft.com/en-us/dotnet/api/system.threading.barrier?view=netframework-4.0”
“Microsoft Learn – SpinWait” -> “https://learn.microsoft.com/en-us/dotnet/standard/threading/spinwait”
“Microsoft Learn – SpinWait Struct” -> “https://learn.microsoft.com/en-us/dotnet/api/system.threading.spinwait?view=netframework-4.0”
“Microsoft Learn – SpinLock” -> “https://learn.microsoft.com/en-us/dotnet/standard/threading/spinlock”
“Microsoft Learn – SpinLock Struct” -> “https://learn.microsoft.com/en-us/dotnet/api/system.threading.spinlock?view=netframework-4.0”
“Microsoft Learn – How to: use SpinLock for low-level synchronization” -> “https://learn.microsoft.com/en-us/dotnet/standard/threading/how-to-use-spinlock-for-low-level-synchronization”
“Microsoft Learn – How to: Enable Thread-Tracking Mode in SpinLock” -> “https://learn.microsoft.com/en-us/dotnet/standard/threading/how-to-enable-thread-tracking-mode-in-spinlock”
“Microsoft Learn – Chaining tasks using continuation tasks” -> “https://learn.microsoft.com/en-us/dotnet/standard/parallel-programming/chaining-tasks-by-using-continuation-tasks”
“Microsoft Learn – Interlocked Class” -> “https://learn.microsoft.com/en-us/dotnet/api/system.threading.interlocked?view=netframework-4.0”
“Microsoft Learn – TaskFactory Class” -> “https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.taskfactory?view=netframework-4.0”
Parallel programming in C# uses a variation of Managed Threading, that relies on PLINQ, Expression Trees, The Barrier Class, Thread Class, BackgroundWorker Class, SpinWait Struct, SpinLock Struct, and Thread-Tracking Mode for SpinLock. The reason is that it’s faster to use the environment to determine how many cores / threads are available, as to not starve the device of resources, which at that point, you have to use the BackgroundWorker Class to manage each task you’ve created. Often in this scenario, you can end up with a deadlock condition, because you have more than one task trying to access a shared resource. It’s much easier and faster to split up each task, ONLY using byte arrays, assigning each task individual byte arrays to sort / parse, encrypted or not, with the Stream class, or a sub variation of that Class, and then when each task finishes, they all finish at different times, but the shared resource is divided up into portions, so that they will only be able to fill one area of that array. The reason why Barrier is used in this situation, is it forces each one to wait until all the tasks are finished, or until they all ARRIVE at the same place, which solves one timing issue, yet it might create another where there’s a bit of a timing mismatch if your estimates are wrong, you overshoot or undershoot I mean. At the very end, you can use a separate process to just COPY from each individual array, without a deadlock scenario occurring. The only issue, is you have to estimate how many threads are available ahead of time, and you can’t use every single thread, yet you’re going to have to divide a single resource between all those threads. Beforehand, you have to verify if it’s a waste of time to use more than one thread. The reason why I say this, is that a lot of people use reference types, not knowing they are immutable, and they take a huge / massive performance hit because of this. Often you have to convert strings into byte arrays, or use a pre-initialized character array at the start of the program, which contains the Unicode values that you want to recast individually as strings, and then use a byte array as an INDEX or a placeholder, of a Unicode character array. If you’re not encrypting the byte arrays, or using them for text parsing, which byte arrays tend to be best in high throughput scenarios, than integer arrays will suffice. The index can be scrambled based on how you want to represent that one string, though it’s smarter to only cast a new reference type when you want to display text on the screen. If you spend too much time manually parsing using built-in libraries, it’s REALLY SLOW. A byte array is better to use than an integer array in this sort of situation. You might have to create separate indexes with a byte array representing a set of binary flags, to determine whether each one is a letter, number, symbol, etc, or how you want to classify each one based on the code chart that you’re using. You would be better off in that situation to just use right shift / left shift / XOR, etc, to set the flags. Then you have something which is also very fast, and almost equivalent to a Barrel Shifter, given C# does not allow you to use pointers, as it’s managed code / a managed environment. All the Boolean Logical Operators with Compound Assignment rely on pre-initialized Cast Expressions of Integer Literals, Bitwise and Shift Operators, combined with Lambda Expressions, and Operator Overloading. The purpose of the Shift Operators is to mask / pad the bits of one byte value with zeroes, so that your Cast Expression Of An Integer Literal, which serves at the mask, always gives you a fixed / deterministic result, when used in conjunction with Boolean Logical Operators, especially if the value is smaller than 8-bits / a single byte, or you’re dealing with a larger array has to represent a flag “register” with a size of ( 2 ^ 8 ) 256 bits, which is basically a Double-Word:”Microsoft Learn – Boolean logical operators – AND, OR, NOT, XOR – Compound assignment” -> “https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/boolean-logical-operators#compound-assignment”
“Microsoft Learn – Bitwise and shift operators (C# reference)” -> “https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/bitwise-and-shift-operators”
“Microsoft Learn – Operator overloading – predefined unary, arithmetic, equality and comparison operators” -> “https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/operator-overloading”
“Microsoft Learn – Lambda expressions and anonymous functions” -> “https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/lambda-expressions”
“Microsoft Learn – Integral numeric types (C# reference) – Integer literals” -> “https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/integral-numeric-types#integer-literals”
“Microsoft Learn – Type-testing operators and cast expressions – is, as, typeof and casts – Cast expression” -> “https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/type-testing-and-cast#cast-expression”
“Microsoft Learn – Deserialization risks in use of BinaryFormatter and related types” -> “https://learn.microsoft.com/en-us/dotnet/standard/serialization/binaryformatter-security-guide”
“Microsoft Learn – BinaryReader Class” -> “https://learn.microsoft.com/en-us/dotnet/api/system.io.binaryreader?view=netframework-4.0”
“Microsoft Learn – Stream Class” -> “https://learn.microsoft.com/en-us/dotnet/api/system.io.stream?view=netframework-4.0”
“Microsoft Learn – StreamWriter Class” -> “https://learn.microsoft.com/en-us/dotnet/api/system.io.streamwriter?view=netframework-4.0”
“Microsoft Learn – StreamReader Class” -> “https://learn.microsoft.com/en-us/dotnet/api/system.io.streamreader?view=netframework-4.0”
“Microsoft Learn – File and Stream I/O” -> “https://learn.microsoft.com/en-us/dotnet/standard/io/”
“Microsoft Learn – Pipe Functions” -> “https://learn.microsoft.com/en-us/windows/win32/ipc/pipe-functions”
“Microsoft Learn – System.IO.Pipes Namespace” -> “https://learn.microsoft.com/en-us/dotnet/api/system.io.pipes?view=netframework-4.0”
“Microsoft Learn – Custom Partitioners for PLINQ and TPL” -> “https://learn.microsoft.com/en-us/dotnet/standard/parallel-programming/custom-partitioners-for-plinq-and-tpl”
“Microsoft Learn – Expression Trees” -> “https://learn.microsoft.com/en-us/dotnet/csharp/advanced-topics/expression-trees/”
“Microsoft Learn – Build expression trees” -> “https://learn.microsoft.com/en-us/dotnet/csharp/advanced-topics/expression-trees/expression-trees-building”
“Microsoft Learn – Translate expression trees” -> “https://learn.microsoft.com/en-us/dotnet/csharp/advanced-topics/expression-trees/expression-trees-translating”
“Microsoft Learn – Execute expression trees” -> “https://learn.microsoft.com/en-us/dotnet/csharp/advanced-topics/expression-trees/expression-trees-execution”
“Microsoft Learn – System.Windows.Threading Namespace” -> “https://learn.microsoft.com/en-us/dotnet/api/system.windows.threading?view=netframework-4.0”
“Microsoft Learn – System.Threading Namespace” -> “https://learn.microsoft.com/en-us/dotnet/api/system.threading?view=netframework-4.0”
“Microsoft Learn – System.Threading.Channels Namespace” -> “https://learn.microsoft.com/en-us/dotnet/api/system.threading.channels?view=netcore-3.0”
“Microsoft Learn – System.Threading.Tasks Namespace” -> “https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks?view=netframework-4.0”
“Microsoft Learn – Timer Class (System.Timers)” -> “https://learn.microsoft.com/en-us/dotnet/api/system.timers?view=netframework-4.0”
“Microsoft Learn – Timer Class (System.Threading)” -> “https://learn.microsoft.com/en-us/dotnet/api/system.threading.timer?view=netframework-4.0”
“Microsoft Learn – DispatcherTimer Class (System.Windows.Threading)” -> “https://learn.microsoft.com/en-us/dotnet/api/system.windows.threading.dispatchertimer?view=netframework-4.0”
“Microsoft Learn – Dispatcher Class (System.Windows.Threading)” -> “https://learn.microsoft.com/en-us/dotnet/api/system.windows.threading.dispatcher?view=netframework-4.0”
“Microsoft Learn – Threads and threading” -> “https://learn.microsoft.com/en-us/dotnet/standard/threading/threads-and-threading”
“Microsoft Learn – Using threads and threading” -> “https://learn.microsoft.com/en-us/dotnet/standard/threading/using-threads-and-threading”
“Microsoft Learn – Introduction to PLINQ” -> “https://learn.microsoft.com/en-us/dotnet/standard/parallel-programming/introduction-to-plinq”
“Microsoft Learn – Task Parallel Library (TPL)” -> “https://learn.microsoft.com/en-us/dotnet/standard/parallel-programming/task-parallel-library-tpl”
“Microsoft Learn – Lambda Expressions in PLINQ and TPL” -> “https://learn.microsoft.com/en-us/dotnet/standard/parallel-programming/lambda-expressions-in-plinq-and-tpl”
“Microsoft Learn – Multithreading in Windows Forms Controls” -> “https://learn.microsoft.com/en-us/dotnet/desktop/winforms/controls/multithreading-in-windows-forms-controls”
“Microsoft Learn – Managed threading best practices” -> “https://learn.microsoft.com/en-us/dotnet/standard/threading/managed-threading-best-practices”
“Microsoft Learn – Parallel programming in .NET: A guide to the documentation” -> “https://learn.microsoft.com/en-us/dotnet/standard/parallel-programming/”
“Microsoft Learn – Thread Class” -> “https://learn.microsoft.com/en-us/dotnet/api/system.threading.thread”
“Microsoft Learn – BackgroundWorker Class” -> “https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.backgroundworker”
“Microsoft Learn – Synchronizing data for multithreading” -> “https://learn.microsoft.com/en-us/dotnet/standard/threading/synchronizing-data-for-multithreading”
“Microsoft Learn – Overview of synchronization primitives” -> “https://learn.microsoft.com/en-us/dotnet/standard/threading/overview-of-synchronization-primitives”
“Microsoft Learn – Environment.ProcessorCount Property” -> “https://learn.microsoft.com/en-us/dotnet/api/system.environment.processorcount”
“Microsoft Learn – Managed threading best practices – Number of Processors” -> “https://learn.microsoft.com/en-us/previous-versions/dotnet/netframework-1.1/1c9txz50(v=vs.71)#number-of-processors”
“Microsoft Learn – lock statement – ensure exclusive access to a shared resource” -> “https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/statements/lock”
“Microsoft Learn – Reliability Best Practices” -> “https://learn.microsoft.com/en-us/dotnet/framework/performance/reliability-best-practices”
“Microsoft Learn – BackgroundWorker Component Overview” -> “https://learn.microsoft.com/en-us/dotnet/desktop/winforms/controls/backgroundworker-component-overview”
“Microsoft Learn – How to: Run an Operation in the Background” -> “https://learn.microsoft.com/en-us/dotnet/desktop/winforms/controls/how-to-run-an-operation-in-the-background”
“Microsoft Learn – Thread-safe collections” -> “https://learn.microsoft.com/en-us/dotnet/standard/collections/thread-safe/”
“Microsoft Learn – Threading objects and features” -> “https://learn.microsoft.com/en-us/dotnet/standard/threading/threading-objects-and-features”
“Microsoft Learn – Barrier” -> “https://learn.microsoft.com/en-us/dotnet/standard/threading/barrier”
“Microsoft Learn – Barrier Class” -> “https://learn.microsoft.com/en-us/dotnet/api/system.threading.barrier?view=netframework-4.0”
“Microsoft Learn – SpinWait” -> “https://learn.microsoft.com/en-us/dotnet/standard/threading/spinwait”
“Microsoft Learn – SpinWait Struct” -> “https://learn.microsoft.com/en-us/dotnet/api/system.threading.spinwait?view=netframework-4.0”
“Microsoft Learn – SpinLock” -> “https://learn.microsoft.com/en-us/dotnet/standard/threading/spinlock”
“Microsoft Learn – SpinLock Struct” -> “https://learn.microsoft.com/en-us/dotnet/api/system.threading.spinlock?view=netframework-4.0”
“Microsoft Learn – How to: use SpinLock for low-level synchronization” -> “https://learn.microsoft.com/en-us/dotnet/standard/threading/how-to-use-spinlock-for-low-level-synchronization”
“Microsoft Learn – How to: Enable Thread-Tracking Mode in SpinLock” -> “https://learn.microsoft.com/en-us/dotnet/standard/threading/how-to-enable-thread-tracking-mode-in-spinlock”
“Microsoft Learn – Chaining tasks using continuation tasks” -> “https://learn.microsoft.com/en-us/dotnet/standard/parallel-programming/chaining-tasks-by-using-continuation-tasks”
“Microsoft Learn – Interlocked Class” -> “https://learn.microsoft.com/en-us/dotnet/api/system.threading.interlocked?view=netframework-4.0”
“Microsoft Learn – TaskFactory Class” -> “https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.taskfactory?view=netframework-4.0” Read More
Intune Bitlocker Encryption
We have set up a policy for disk encryption to encrypt devices within a group scope using bitlocker. The devices are Hybrid Entra ID joined and enrolled to Intune using device credentials as we have co-management setup with SCCM. Recovery Keys are stored in AAD.
Sometimes certain users mistakenly can encrypt devices manually from Bitlocker management on the device itself or using third party tools such as cisco anyconnect, This does not store the recovery key in Azure which in case recovery screen is triggered will render the device useless and need a re-image.
My question is, How to do we block any sort of Bitlocker Encryption Outside of the Intune policy as this is important for consistent behaviours.
We have set up a policy for disk encryption to encrypt devices within a group scope using bitlocker. The devices are Hybrid Entra ID joined and enrolled to Intune using device credentials as we have co-management setup with SCCM. Recovery Keys are stored in AAD.Sometimes certain users mistakenly can encrypt devices manually from Bitlocker management on the device itself or using third party tools such as cisco anyconnect, This does not store the recovery key in Azure which in case recovery screen is triggered will render the device useless and need a re-image.My question is, How to do we block any sort of Bitlocker Encryption Outside of the Intune policy as this is important for consistent behaviours. Read More
Speech Services- Restrict Outbound Access
What is Speech Service
The Speech service provides speech to text and text to speech capabilities with a Speech resource
It is one of the types of Cognitive Accounts i.e.- type”: “Microsoft.CognitiveServices/accounts and “kind”: “SpeechServices”,
What is restrictOutboundNetworkAccess property and why do we use it?
restrictOutboundNetworkAccess property is used in speech services to enable data loss prevention. When this property is enabled, the Speech service will connect only to the allowed endpoints as specified in the list of FQDN allowed endpoints. For e.g.-> if you need to transcribe data which comes from a blob, the FQDN of your storage account should be in this list. If this property is not set as true, Speech service won’t be able to access your storage account.
Reference document which explains about this property- https://learn.microsoft.com/en-us/azure/ai-services/cognitive-services-data-loss-prevention?tabs=azure-cli
How to enable/Disable restrictOutboundNetworkAccess for Speech Services?
You cannot deploy your speech service manually from Azure Portal with “restrictOutboundNetworkAccess” property as true or false.
We can deploy Speech Services using ARM/PowerShell/terraform with property restrictOutboundNetworkAccess set as true or false
Using CLI/powershell, reference:- Data loss prevention – Azure AI services | Microsoft Learn
Using ARM template, reference: Microsoft.CognitiveServices/accounts – Bicep, ARM template & Terraform AzAPI reference | Microsoft Learn
Sample Code for Deploying Speech Service with restrictOutboundNetworkAccess as true and list of allowed FQDN using custom template deployment from Azure Portal
Please note that with restrictOutboundNetworkAccess property, we are also using allowedFqdnList which will include list of URL’s that can be accessible by Speech Services
{
“$schema”: “https://schema.management.azure.com/schemas/2019-04-01 deploymentTemplate.json#”,
“contentVersion”: “1.0.0.0”,
“parameters”: {
“cognitiveServiceName”: {
“type”: “String”,
“metadata”: {
“description”: “Name of the Cognitive Service account”
}
},
“location”: {
“defaultValue”: “[resourceGroup().location]”,
“type”: “String”,
“metadata”: {
“description”: “Location for the Cognitive Service account”
}
},
“sku”: {
“defaultValue”: “F0”,
“allowedValues”: [
“F0”,
“S0”
],
“type”: “String”,
“metadata”: {
“description”: “The pricing tier of the Cognitive Service account”
}
}
},
“resources”: [
{
“type”: “Microsoft.CognitiveServices/accounts”,
“apiVersion”: “2022-12-01”,
“name”: “[parameters(‘cognitiveServiceName’)]”,
“location”: “[parameters(‘location’)]”,
“sku”: {
“name”: “[parameters(‘sku’)]”
},
“kind”: “SpeechServices”,
“properties”: {
“restrictOutboundNetworkAccess”: true,
“disableLocalAuth”: true,
“allowedFqdnList”: [
“microsoft.com”
]
}
}
]
}
Above code will deploy your speech service with restrictOutboundNetworkAccess as “true”
How to check whether restrictOutboundNetworkAccess is enabled/disabled for Speech Services
We can go to JSON view of Deployed Resource and check if the property is set as “true” or “false”
Reference document for Use Cases of testing can be found here – Use Cases for Testing Restrictoutboundnetworkaccess for Speech Service – Microsoft Community Hub
Microsoft Tech Community – Latest Blogs –Read More
Different Algos giving highest FS accuracy for diff datasets which are based on same category of disorder.
HI,
I have used your code and picked 10 SI algos to find FS accuracy on 4 different datasets(all our textual categorical datasets with binary output, having different number of attributes)
Now my issue is the for each dataset different algorithm is giving highest accuracy. I want that same algorithm should give highest accuracy for all 4 datasets . Please help
Thanks
Preeti
monga.kamra@gmail.comHI,
I have used your code and picked 10 SI algos to find FS accuracy on 4 different datasets(all our textual categorical datasets with binary output, having different number of attributes)
Now my issue is the for each dataset different algorithm is giving highest accuracy. I want that same algorithm should give highest accuracy for all 4 datasets . Please help
Thanks
Preeti
monga.kamra@gmail.com HI,
I have used your code and picked 10 SI algos to find FS accuracy on 4 different datasets(all our textual categorical datasets with binary output, having different number of attributes)
Now my issue is the for each dataset different algorithm is giving highest accuracy. I want that same algorithm should give highest accuracy for all 4 datasets . Please help
Thanks
Preeti
monga.kamra@gmail.com matlab, machine learning, feature selection MATLAB Answers — New Questions
How to mix gases with different properties in Simulink ?
Hello everyone,
I work on a project where I have to use three different gases for mix them :
I use simulink for obtain the density of the gas mixed but I have this error message :
"Error compiling Simscape network for model labo.
Caused by: [‘labo/Gas Properties (G)1’, ‘labo/Gas Properties (G)’]: Failed to propagate domain parameters. Domain parameters are propagated to the same set of nodes from sources: ‘Subsystem10.Gas_Properties_G1.A’ and ‘Subsystem10.Gas_Properties_G.A’. Each node may only have at most one source of propagation."
So, how can I mix different gases if I can’t define a physical constant for each of them ?
As a reminder, I don’t know gas properties for the mixed gas.
Thanks for your helpHello everyone,
I work on a project where I have to use three different gases for mix them :
I use simulink for obtain the density of the gas mixed but I have this error message :
"Error compiling Simscape network for model labo.
Caused by: [‘labo/Gas Properties (G)1’, ‘labo/Gas Properties (G)’]: Failed to propagate domain parameters. Domain parameters are propagated to the same set of nodes from sources: ‘Subsystem10.Gas_Properties_G1.A’ and ‘Subsystem10.Gas_Properties_G.A’. Each node may only have at most one source of propagation."
So, how can I mix different gases if I can’t define a physical constant for each of them ?
As a reminder, I don’t know gas properties for the mixed gas.
Thanks for your help Hello everyone,
I work on a project where I have to use three different gases for mix them :
I use simulink for obtain the density of the gas mixed but I have this error message :
"Error compiling Simscape network for model labo.
Caused by: [‘labo/Gas Properties (G)1’, ‘labo/Gas Properties (G)’]: Failed to propagate domain parameters. Domain parameters are propagated to the same set of nodes from sources: ‘Subsystem10.Gas_Properties_G1.A’ and ‘Subsystem10.Gas_Properties_G.A’. Each node may only have at most one source of propagation."
So, how can I mix different gases if I can’t define a physical constant for each of them ?
As a reminder, I don’t know gas properties for the mixed gas.
Thanks for your help gas-mix MATLAB Answers — New Questions
Create a table that contains text and figures using the reporting toolbox
Hi! I am using your reporting function but I have had struggles building a scheme 2 by 2 where positions 1 and 4 are figures, and positions 2 and 3 text.
I have this code:
tp = TitlePage();
tit = Paragraph("Presentación del Primer Trimestre de 2024:");
tit.Style = {HAlign("left"),FontFamily("sans-serif"),…
FontSize("45pt"),Color("white"),…
BackgroundColor("#0072BD"),…
OuterMargin("0in","0in",".5in","1in"),…
HAlign("center")};
tp.Title = tit;
add(rpt, tp);
%% my code to create figures – plots
var_name = [‘fig’, num2str(j),’Img’];
eval([var_name, ‘ = Image(getSnapshotImage(Figure(fig), rpt));’]);
% Close the figure to avoid accumulation
close(fig);
end
% % % % % % % % ================================ PAGE 1 ===============================
br = PageBreak();
intro1 = HTML([‘<p style="white-space:pre; font-size: 25px; font-family: sans-serif;">’, …
‘SOMETHING.</p>’,…
]);
append(rpt, intro1)
lo_table1 = Table({
fig1Img, fig2Img; …
fig3Img, []});
lo_table1.entry(1,1).Style = {Width(‘8in’), Height(‘3.8in’)};
lo_table1.entry(1,2).Style = {Width(‘8in’), Height(‘3.8in’)};
lo_table1.entry(2,1).Style = {Width(‘8in’), Height(‘3.8in’)};
lo_table1.entry(2,2).Style = {Width(‘8in’), Height(‘3.8in’)};
lo_table1.Style = {Width(‘100%’), ResizeToFitContents(true)};
add(rpt, lo_table1);
% % % % % % % % ================================ PAGE 2 ===============================
% Define the HTML content for the text cells
PAR1 = HTML([‘<p style="white-space:pre; font-size: 25px; font-family: sans-serif;">’, …
‘SOMETHING.</p>’,…
]);
PAR2 = HTML([‘<p style="white-space:pre; font-size: 25px; font-family: sans-serif;">’, …
‘SOMETHING.</p>’,…
]);
lo_table2 = Table({ fig4Img, PAR1);…
PAR2, fig5Img});
lo_table2.entry(1,1).Style = {Width(‘8in’), Height(‘3.8in’)};
lo_table2.entry(1,2).Style = {Width(‘8in’), Height(‘3.8in’)};
lo_table2.entry(2,1).Style = {Width(‘8in’), Height(‘3.8in’)};
lo_table2.entry(2,2).Style = {Width(‘8in’), Height(‘3.8in’)};
lo_table2.Style = {Width(‘100%’), ResizeToFitContents(true)};
add(rpt, lo_table2);
br2 = PageBreak();
append(rpt,br2)
close(rpt);
rptview(rpt);
My problem is that the figures appears in my PDF report. But the text does not.
How can I solve it?
Thanks in advance.Hi! I am using your reporting function but I have had struggles building a scheme 2 by 2 where positions 1 and 4 are figures, and positions 2 and 3 text.
I have this code:
tp = TitlePage();
tit = Paragraph("Presentación del Primer Trimestre de 2024:");
tit.Style = {HAlign("left"),FontFamily("sans-serif"),…
FontSize("45pt"),Color("white"),…
BackgroundColor("#0072BD"),…
OuterMargin("0in","0in",".5in","1in"),…
HAlign("center")};
tp.Title = tit;
add(rpt, tp);
%% my code to create figures – plots
var_name = [‘fig’, num2str(j),’Img’];
eval([var_name, ‘ = Image(getSnapshotImage(Figure(fig), rpt));’]);
% Close the figure to avoid accumulation
close(fig);
end
% % % % % % % % ================================ PAGE 1 ===============================
br = PageBreak();
intro1 = HTML([‘<p style="white-space:pre; font-size: 25px; font-family: sans-serif;">’, …
‘SOMETHING.</p>’,…
]);
append(rpt, intro1)
lo_table1 = Table({
fig1Img, fig2Img; …
fig3Img, []});
lo_table1.entry(1,1).Style = {Width(‘8in’), Height(‘3.8in’)};
lo_table1.entry(1,2).Style = {Width(‘8in’), Height(‘3.8in’)};
lo_table1.entry(2,1).Style = {Width(‘8in’), Height(‘3.8in’)};
lo_table1.entry(2,2).Style = {Width(‘8in’), Height(‘3.8in’)};
lo_table1.Style = {Width(‘100%’), ResizeToFitContents(true)};
add(rpt, lo_table1);
% % % % % % % % ================================ PAGE 2 ===============================
% Define the HTML content for the text cells
PAR1 = HTML([‘<p style="white-space:pre; font-size: 25px; font-family: sans-serif;">’, …
‘SOMETHING.</p>’,…
]);
PAR2 = HTML([‘<p style="white-space:pre; font-size: 25px; font-family: sans-serif;">’, …
‘SOMETHING.</p>’,…
]);
lo_table2 = Table({ fig4Img, PAR1);…
PAR2, fig5Img});
lo_table2.entry(1,1).Style = {Width(‘8in’), Height(‘3.8in’)};
lo_table2.entry(1,2).Style = {Width(‘8in’), Height(‘3.8in’)};
lo_table2.entry(2,1).Style = {Width(‘8in’), Height(‘3.8in’)};
lo_table2.entry(2,2).Style = {Width(‘8in’), Height(‘3.8in’)};
lo_table2.Style = {Width(‘100%’), ResizeToFitContents(true)};
add(rpt, lo_table2);
br2 = PageBreak();
append(rpt,br2)
close(rpt);
rptview(rpt);
My problem is that the figures appears in my PDF report. But the text does not.
How can I solve it?
Thanks in advance. Hi! I am using your reporting function but I have had struggles building a scheme 2 by 2 where positions 1 and 4 are figures, and positions 2 and 3 text.
I have this code:
tp = TitlePage();
tit = Paragraph("Presentación del Primer Trimestre de 2024:");
tit.Style = {HAlign("left"),FontFamily("sans-serif"),…
FontSize("45pt"),Color("white"),…
BackgroundColor("#0072BD"),…
OuterMargin("0in","0in",".5in","1in"),…
HAlign("center")};
tp.Title = tit;
add(rpt, tp);
%% my code to create figures – plots
var_name = [‘fig’, num2str(j),’Img’];
eval([var_name, ‘ = Image(getSnapshotImage(Figure(fig), rpt));’]);
% Close the figure to avoid accumulation
close(fig);
end
% % % % % % % % ================================ PAGE 1 ===============================
br = PageBreak();
intro1 = HTML([‘<p style="white-space:pre; font-size: 25px; font-family: sans-serif;">’, …
‘SOMETHING.</p>’,…
]);
append(rpt, intro1)
lo_table1 = Table({
fig1Img, fig2Img; …
fig3Img, []});
lo_table1.entry(1,1).Style = {Width(‘8in’), Height(‘3.8in’)};
lo_table1.entry(1,2).Style = {Width(‘8in’), Height(‘3.8in’)};
lo_table1.entry(2,1).Style = {Width(‘8in’), Height(‘3.8in’)};
lo_table1.entry(2,2).Style = {Width(‘8in’), Height(‘3.8in’)};
lo_table1.Style = {Width(‘100%’), ResizeToFitContents(true)};
add(rpt, lo_table1);
% % % % % % % % ================================ PAGE 2 ===============================
% Define the HTML content for the text cells
PAR1 = HTML([‘<p style="white-space:pre; font-size: 25px; font-family: sans-serif;">’, …
‘SOMETHING.</p>’,…
]);
PAR2 = HTML([‘<p style="white-space:pre; font-size: 25px; font-family: sans-serif;">’, …
‘SOMETHING.</p>’,…
]);
lo_table2 = Table({ fig4Img, PAR1);…
PAR2, fig5Img});
lo_table2.entry(1,1).Style = {Width(‘8in’), Height(‘3.8in’)};
lo_table2.entry(1,2).Style = {Width(‘8in’), Height(‘3.8in’)};
lo_table2.entry(2,1).Style = {Width(‘8in’), Height(‘3.8in’)};
lo_table2.entry(2,2).Style = {Width(‘8in’), Height(‘3.8in’)};
lo_table2.Style = {Width(‘100%’), ResizeToFitContents(true)};
add(rpt, lo_table2);
br2 = PageBreak();
append(rpt,br2)
close(rpt);
rptview(rpt);
My problem is that the figures appears in my PDF report. But the text does not.
How can I solve it?
Thanks in advance. #reports MATLAB Answers — New Questions
Do I need to scale the data before using matlab pca function
I am using MATLAB pca toolbox. I am wondering if I need to scale the data before I use it. I found that it centers the data around the mean in PCA toolbox.I am using MATLAB pca toolbox. I am wondering if I need to scale the data before I use it. I found that it centers the data around the mean in PCA toolbox. I am using MATLAB pca toolbox. I am wondering if I need to scale the data before I use it. I found that it centers the data around the mean in PCA toolbox. pca MATLAB Answers — New Questions
design(fdesign.lowpass()) vs dsp.Filter(firpm())
Hello,
I am trying to design a very strict LPF. Some of the design parameters are Fs 1000Hz and Fpass 0.5Hz and Fstop 1Hz with 0.01 passband ripple and 110 db stopband attenuation.
When I try to design this filter with the FDAtool, the tool takes some time but designs a ~10k tap FIR filter. If I select to generate MATLAB code for this design, the code is generated using firpm().
When I try to use the fdesign.lowpass() with the same specification and then with design( ‘equiripple’) the method does not converge (I let the design run for some time and no output is given).
My question is, what is the difference between these two methods and why cant I design the specified filter with the fdesign.lowpass ?Hello,
I am trying to design a very strict LPF. Some of the design parameters are Fs 1000Hz and Fpass 0.5Hz and Fstop 1Hz with 0.01 passband ripple and 110 db stopband attenuation.
When I try to design this filter with the FDAtool, the tool takes some time but designs a ~10k tap FIR filter. If I select to generate MATLAB code for this design, the code is generated using firpm().
When I try to use the fdesign.lowpass() with the same specification and then with design( ‘equiripple’) the method does not converge (I let the design run for some time and no output is given).
My question is, what is the difference between these two methods and why cant I design the specified filter with the fdesign.lowpass ? Hello,
I am trying to design a very strict LPF. Some of the design parameters are Fs 1000Hz and Fpass 0.5Hz and Fstop 1Hz with 0.01 passband ripple and 110 db stopband attenuation.
When I try to design this filter with the FDAtool, the tool takes some time but designs a ~10k tap FIR filter. If I select to generate MATLAB code for this design, the code is generated using firpm().
When I try to use the fdesign.lowpass() with the same specification and then with design( ‘equiripple’) the method does not converge (I let the design run for some time and no output is given).
My question is, what is the difference between these two methods and why cant I design the specified filter with the fdesign.lowpass ? filter design MATLAB Answers — New Questions
error adding Workday as a provider
Hi Community,
Your help is much appreciated.
I am experiencing this issue while adding Workday to list of providers into viva learning.
Any suggestions on how to resolve this or if anyone has experienced this before?
Thanks
Hi Community,Your help is much appreciated.I am experiencing this issue while adding Workday to list of providers into viva learning. Any suggestions on how to resolve this or if anyone has experienced this before?Thanks Read More
Kdc error after installing DC 2022
We’re upgrading the AD domain from 2008R2 to 2022.
we deployed the new 2022 DC and also successfully moved the FSMO roles.
however some old 2003 servers started having issue authenticating clients, as for example connecting to file shares, with kdc errors.
“The encryption type requested is not supported by the KDC”
how can we fix it ?
is there a group policy we can apply to the 2022 DC to enable the old 2003 servers to authenticate clients ?
thanks
We’re upgrading the AD domain from 2008R2 to 2022.we deployed the new 2022 DC and also successfully moved the FSMO roles.however some old 2003 servers started having issue authenticating clients, as for example connecting to file shares, with kdc errors.“The encryption type requested is not supported by the KDC” how can we fix it ?is there a group policy we can apply to the 2022 DC to enable the old 2003 servers to authenticate clients ?thanks Read More