Month: June 2024
How can I get script’s location when running one section of a script?
I frequently run scripts one section at a time. I can be using different computers, remote desktops, etc., so the path changes. The load and save commands are relative to the present working directory rather than the directory of the script, which causes problems if the present working directory isn’t where the script is. When running a whole script, I can use either mfilename(‘fullpath’) or dbstack(‘-completenames’) to get the directory the script is in, but this doesn’t work when running a section. How can I achieve this? None of the following work:
% Returns ‘C:UsersMyNameAppDataLocalTempEditor_mddonLiveEditorEvaluationHelperE847216552.m’
stk = dbstack(‘-completenames’);
filepath = stk(1).file
% Returns ‘C:UsersMyNameAppDataLocalTempEditor_mddonLiveEditorEvaluationHelperE847216552.m’
mfilename(‘fullpath’)
% Returns wrong filename, because I’ve moved to another script by the time
% it gets to this line.
filePath = matlab.desktop.editor.getActiveFilename
If it’s impossible with MATLAB code, perhaps there is a Java-based workaround?I frequently run scripts one section at a time. I can be using different computers, remote desktops, etc., so the path changes. The load and save commands are relative to the present working directory rather than the directory of the script, which causes problems if the present working directory isn’t where the script is. When running a whole script, I can use either mfilename(‘fullpath’) or dbstack(‘-completenames’) to get the directory the script is in, but this doesn’t work when running a section. How can I achieve this? None of the following work:
% Returns ‘C:UsersMyNameAppDataLocalTempEditor_mddonLiveEditorEvaluationHelperE847216552.m’
stk = dbstack(‘-completenames’);
filepath = stk(1).file
% Returns ‘C:UsersMyNameAppDataLocalTempEditor_mddonLiveEditorEvaluationHelperE847216552.m’
mfilename(‘fullpath’)
% Returns wrong filename, because I’ve moved to another script by the time
% it gets to this line.
filePath = matlab.desktop.editor.getActiveFilename
If it’s impossible with MATLAB code, perhaps there is a Java-based workaround? I frequently run scripts one section at a time. I can be using different computers, remote desktops, etc., so the path changes. The load and save commands are relative to the present working directory rather than the directory of the script, which causes problems if the present working directory isn’t where the script is. When running a whole script, I can use either mfilename(‘fullpath’) or dbstack(‘-completenames’) to get the directory the script is in, but this doesn’t work when running a section. How can I achieve this? None of the following work:
% Returns ‘C:UsersMyNameAppDataLocalTempEditor_mddonLiveEditorEvaluationHelperE847216552.m’
stk = dbstack(‘-completenames’);
filepath = stk(1).file
% Returns ‘C:UsersMyNameAppDataLocalTempEditor_mddonLiveEditorEvaluationHelperE847216552.m’
mfilename(‘fullpath’)
% Returns wrong filename, because I’ve moved to another script by the time
% it gets to this line.
filePath = matlab.desktop.editor.getActiveFilename
If it’s impossible with MATLAB code, perhaps there is a Java-based workaround? pwd, directory, section, current directory MATLAB Answers — New Questions
Reduce width of git portion of Current Folder pane
Can I give more space to file names, and less space to the small git status icon? See attached screenshot. I don’t see any way to change the relative space allocation. I’m using MacOS if that makes a difference.Can I give more space to file names, and less space to the small git status icon? See attached screenshot. I don’t see any way to change the relative space allocation. I’m using MacOS if that makes a difference. Can I give more space to file names, and less space to the small git status icon? See attached screenshot. I don’t see any way to change the relative space allocation. I’m using MacOS if that makes a difference. current folder, git MATLAB Answers — New Questions
How to take input values from users symbolically while running a code?
o2 = [0, 0, 0]; % Origin for ain
ain = [26, 0, 0]; % Initial vector for ain
input_axis = [0, 1, 0]; % Axis of rotation for ain (y-axis)
theta1 = deg2rad(10); % Angle of rotation for ain in radians
% Rotation matrix function
rot_matrix = @(axis, theta) cos(theta) * eye(3) + …
sin(theta) * [0, -axis(3), axis(2); axis(3), 0, -axis(1); -axis(2), axis(1), 0] + …
(1 – cos(theta)) * (axis’ * axis);
% Compute the rotated vector for ain
a_rotated = rot_matrix(input_axis, theta1) * (ain’ – o2′) + o2′;
a_final = a_rotated’;
disp(norm(a_final));
cin=[122.95, -20, 0];
c_rotated= rot_matrix(input_axis, theta1) * (cin’ – o2′) + o2′;
naxis=[sin(theta1),0,cos(theta1)];
syms phi;
c_final_rotated=rot_matrix(naxis,phi)*(c_rotated-a_rotated)+a_rotated;
bin = [29.5, 30, 0];
o4 = [13.5, 30, 0]; % Origin for bin
output_axis = [0, 1, 0]; % Axis of rotation for bin (y-axis)
theta2 = deg2rad(10); % Angle of rotation for bin in radians
% Compute the rotated vector for bin
b1_rotated = rot_matrix(output_axis, theta2) * (bin’ – o4′) + o4′;
b1_final = b1_rotated’;
disp(norm(b1_final-o4));
coupler = c_final_rotated’-b1_final;
coupler = subs(coupler, conj(phi), phi);
%%in this code,i want to take theta1 and theta2 values from the user before from doing parametric substitution(t) given below and want to show eq in terms of theta1 and theta2 and phi
eq=norm(coupler)-106;
disp(eq);
%%after doing this ,put values of theta 1 and theta2 in
coupler = subs(coupler, conj(phi), phi);
%%and continue further as below
syms t;
cos_phi = (1 – t^2) / (1 + t^2);
sin_phi = 2 * t / (1 + t^2);
% Substitute parametric forms into coupler components
coupler_parametric = subs(coupler, [cos(phi), sin(phi)], [cos_phi, sin_phi]);
% Display the parametric coupler
disp(‘Parametric form of coupler:’);
disp(coupler_parametric);
syms targetvalue % it might be 3.5 …
normsq = expand(sum(coupler_parametric.^2) – targetvalue^2);
normpoly = simplify(normsq*(t^2+1)^2);
vpa(expand(normpoly),4);
tsolve = solve(normpoly,t,’maxdegree’,4,’returnconditions’,true);
h=vpa(subs(tsolve.t,targetvalue, 106));
%disp(h);
real_solutions = h(imag(h) == 0);
disp(‘Real roots:’);
disp(real_solutions);
angles_rad = 2 * atan(real_solutions);
angles_deg = rad2deg(angles_rad);
% Display angles in degrees
disp(‘Angles in degrees before adjustment:’);
disp(angles_deg);
phi=double(angles_rad(1));
c1_position = double(rot_matrix(naxis,phi) * (c_rotated – a_rotated) + a_rotated);
p=(c1_position’-a_final)’;
%q=(c1_position’-b1_final)’;
angle=acosd(p(2)/norm(p));
disp(angle);
%%at last i want to display value of angle for both theta1 and theta2 equal to 10 degrees
%%please help someone ,i am getting no real solution if i am taking theta1 and theta2 from user as 10 degrees but no error if i am explicitly defining like in this codeo2 = [0, 0, 0]; % Origin for ain
ain = [26, 0, 0]; % Initial vector for ain
input_axis = [0, 1, 0]; % Axis of rotation for ain (y-axis)
theta1 = deg2rad(10); % Angle of rotation for ain in radians
% Rotation matrix function
rot_matrix = @(axis, theta) cos(theta) * eye(3) + …
sin(theta) * [0, -axis(3), axis(2); axis(3), 0, -axis(1); -axis(2), axis(1), 0] + …
(1 – cos(theta)) * (axis’ * axis);
% Compute the rotated vector for ain
a_rotated = rot_matrix(input_axis, theta1) * (ain’ – o2′) + o2′;
a_final = a_rotated’;
disp(norm(a_final));
cin=[122.95, -20, 0];
c_rotated= rot_matrix(input_axis, theta1) * (cin’ – o2′) + o2′;
naxis=[sin(theta1),0,cos(theta1)];
syms phi;
c_final_rotated=rot_matrix(naxis,phi)*(c_rotated-a_rotated)+a_rotated;
bin = [29.5, 30, 0];
o4 = [13.5, 30, 0]; % Origin for bin
output_axis = [0, 1, 0]; % Axis of rotation for bin (y-axis)
theta2 = deg2rad(10); % Angle of rotation for bin in radians
% Compute the rotated vector for bin
b1_rotated = rot_matrix(output_axis, theta2) * (bin’ – o4′) + o4′;
b1_final = b1_rotated’;
disp(norm(b1_final-o4));
coupler = c_final_rotated’-b1_final;
coupler = subs(coupler, conj(phi), phi);
%%in this code,i want to take theta1 and theta2 values from the user before from doing parametric substitution(t) given below and want to show eq in terms of theta1 and theta2 and phi
eq=norm(coupler)-106;
disp(eq);
%%after doing this ,put values of theta 1 and theta2 in
coupler = subs(coupler, conj(phi), phi);
%%and continue further as below
syms t;
cos_phi = (1 – t^2) / (1 + t^2);
sin_phi = 2 * t / (1 + t^2);
% Substitute parametric forms into coupler components
coupler_parametric = subs(coupler, [cos(phi), sin(phi)], [cos_phi, sin_phi]);
% Display the parametric coupler
disp(‘Parametric form of coupler:’);
disp(coupler_parametric);
syms targetvalue % it might be 3.5 …
normsq = expand(sum(coupler_parametric.^2) – targetvalue^2);
normpoly = simplify(normsq*(t^2+1)^2);
vpa(expand(normpoly),4);
tsolve = solve(normpoly,t,’maxdegree’,4,’returnconditions’,true);
h=vpa(subs(tsolve.t,targetvalue, 106));
%disp(h);
real_solutions = h(imag(h) == 0);
disp(‘Real roots:’);
disp(real_solutions);
angles_rad = 2 * atan(real_solutions);
angles_deg = rad2deg(angles_rad);
% Display angles in degrees
disp(‘Angles in degrees before adjustment:’);
disp(angles_deg);
phi=double(angles_rad(1));
c1_position = double(rot_matrix(naxis,phi) * (c_rotated – a_rotated) + a_rotated);
p=(c1_position’-a_final)’;
%q=(c1_position’-b1_final)’;
angle=acosd(p(2)/norm(p));
disp(angle);
%%at last i want to display value of angle for both theta1 and theta2 equal to 10 degrees
%%please help someone ,i am getting no real solution if i am taking theta1 and theta2 from user as 10 degrees but no error if i am explicitly defining like in this code o2 = [0, 0, 0]; % Origin for ain
ain = [26, 0, 0]; % Initial vector for ain
input_axis = [0, 1, 0]; % Axis of rotation for ain (y-axis)
theta1 = deg2rad(10); % Angle of rotation for ain in radians
% Rotation matrix function
rot_matrix = @(axis, theta) cos(theta) * eye(3) + …
sin(theta) * [0, -axis(3), axis(2); axis(3), 0, -axis(1); -axis(2), axis(1), 0] + …
(1 – cos(theta)) * (axis’ * axis);
% Compute the rotated vector for ain
a_rotated = rot_matrix(input_axis, theta1) * (ain’ – o2′) + o2′;
a_final = a_rotated’;
disp(norm(a_final));
cin=[122.95, -20, 0];
c_rotated= rot_matrix(input_axis, theta1) * (cin’ – o2′) + o2′;
naxis=[sin(theta1),0,cos(theta1)];
syms phi;
c_final_rotated=rot_matrix(naxis,phi)*(c_rotated-a_rotated)+a_rotated;
bin = [29.5, 30, 0];
o4 = [13.5, 30, 0]; % Origin for bin
output_axis = [0, 1, 0]; % Axis of rotation for bin (y-axis)
theta2 = deg2rad(10); % Angle of rotation for bin in radians
% Compute the rotated vector for bin
b1_rotated = rot_matrix(output_axis, theta2) * (bin’ – o4′) + o4′;
b1_final = b1_rotated’;
disp(norm(b1_final-o4));
coupler = c_final_rotated’-b1_final;
coupler = subs(coupler, conj(phi), phi);
%%in this code,i want to take theta1 and theta2 values from the user before from doing parametric substitution(t) given below and want to show eq in terms of theta1 and theta2 and phi
eq=norm(coupler)-106;
disp(eq);
%%after doing this ,put values of theta 1 and theta2 in
coupler = subs(coupler, conj(phi), phi);
%%and continue further as below
syms t;
cos_phi = (1 – t^2) / (1 + t^2);
sin_phi = 2 * t / (1 + t^2);
% Substitute parametric forms into coupler components
coupler_parametric = subs(coupler, [cos(phi), sin(phi)], [cos_phi, sin_phi]);
% Display the parametric coupler
disp(‘Parametric form of coupler:’);
disp(coupler_parametric);
syms targetvalue % it might be 3.5 …
normsq = expand(sum(coupler_parametric.^2) – targetvalue^2);
normpoly = simplify(normsq*(t^2+1)^2);
vpa(expand(normpoly),4);
tsolve = solve(normpoly,t,’maxdegree’,4,’returnconditions’,true);
h=vpa(subs(tsolve.t,targetvalue, 106));
%disp(h);
real_solutions = h(imag(h) == 0);
disp(‘Real roots:’);
disp(real_solutions);
angles_rad = 2 * atan(real_solutions);
angles_deg = rad2deg(angles_rad);
% Display angles in degrees
disp(‘Angles in degrees before adjustment:’);
disp(angles_deg);
phi=double(angles_rad(1));
c1_position = double(rot_matrix(naxis,phi) * (c_rotated – a_rotated) + a_rotated);
p=(c1_position’-a_final)’;
%q=(c1_position’-b1_final)’;
angle=acosd(p(2)/norm(p));
disp(angle);
%%at last i want to display value of angle for both theta1 and theta2 equal to 10 degrees
%%please help someone ,i am getting no real solution if i am taking theta1 and theta2 from user as 10 degrees but no error if i am explicitly defining like in this code #symbolic, #equation MATLAB Answers — New Questions
How to extract latitude and longitudes from a table given the timestamp range?
Hello, I’m currently using a time table and want to have the user give a start time and end time then store them in variables. Once given, I want to use the timetiable to access a list of latitude and longitude values given in between those times and plot it. I’m still new to MATLAB and unsure how to approach this is ui.app designer.Hello, I’m currently using a time table and want to have the user give a start time and end time then store them in variables. Once given, I want to use the timetiable to access a list of latitude and longitude values given in between those times and plot it. I’m still new to MATLAB and unsure how to approach this is ui.app designer. Hello, I’m currently using a time table and want to have the user give a start time and end time then store them in variables. Once given, I want to use the timetiable to access a list of latitude and longitude values given in between those times and plot it. I’m still new to MATLAB and unsure how to approach this is ui.app designer. datetime, timetable, table, appdesigner, plot MATLAB Answers — New Questions
Cant access link shared in Onedrive
Hello
Please i need your help on this issue.
One of my user has left the organization we are trying to retrieve the link he shared to in OneDrive but we cannot.
Most of the problems are for the files shared in 1-1 chats and user created Teams chat groups. We are not able to access it now. For some, we get the URL and when we manually update the UPN in the suffix, we are able to see the files in the Explorer and the others don’t even see the URL.
Second is the leavers for whom users had shared the file previously and it not accessible right now.
HelloPlease i need your help on this issue. One of my user has left the organization we are trying to retrieve the link he shared to in OneDrive but we cannot. Most of the problems are for the files shared in 1-1 chats and user created Teams chat groups. We are not able to access it now. For some, we get the URL and when we manually update the UPN in the suffix, we are able to see the files in the Explorer and the others don’t even see the URL.Second is the leavers for whom users had shared the file previously and it not accessible right now. Read More
Interactive ink tutorial in OneNote
Hi Microsoft 365 Insiders,
Discover the capabilities of OneNote with our interactive ink tutorial! Our fun tutorial uses a show-and-tell approach to thoroughly introduce you to the possibilities of ink notetaking in OneNote for Windows. With helpful videos showcasing various ink features, like the innovative ink-to-text pen, and hands-on activities, you’ll be an ink expert in no time.
Check out the latest blog by Sofia Thomas, Product Manager on the Office AI team, to get started: Interactive ink tutorial in OneNote
Thanks!
Perry Sjogren
Microsoft 365 Insider Community Manager
Become a Microsoft 365 Insider and gain exclusive access to new features and help shape the future of Microsoft 365. Join Now: Windows | Mac | iOS | Android
Hi Microsoft 365 Insiders,
Discover the capabilities of OneNote with our interactive ink tutorial! Our fun tutorial uses a show-and-tell approach to thoroughly introduce you to the possibilities of ink notetaking in OneNote for Windows. With helpful videos showcasing various ink features, like the innovative ink-to-text pen, and hands-on activities, you’ll be an ink expert in no time.
Check out the latest blog by Sofia Thomas, Product Manager on the Office AI team, to get started: Interactive ink tutorial in OneNote
Thanks!
Perry Sjogren
Microsoft 365 Insider Community Manager
Become a Microsoft 365 Insider and gain exclusive access to new features and help shape the future of Microsoft 365. Join Now: Windows | Mac | iOS | Android Read More
CSP Partners – Statements (not to confused with a Tax Invoice)
Microsoft provides Tax invoices every month to Partners. But why do they not provide Statements, even a formal channel by which we as Partners can make a request for a certain period/periods?
Our Auditors needed Statements for 2 financial periods for our complete Azure bill, all we had were the Tax Invoices that Microsoft send us Partners. Tax Invoices and Statements as we know serve two very different purposes.
Anyone knows why Microsoft does not provide Statements, and if not, is that a a formal channel on the portal to make these requests as and when we need Statements for a given period?
Microsoft provides Tax invoices every month to Partners. But why do they not provide Statements, even a formal channel by which we as Partners can make a request for a certain period/periods? Our Auditors needed Statements for 2 financial periods for our complete Azure bill, all we had were the Tax Invoices that Microsoft send us Partners. Tax Invoices and Statements as we know serve two very different purposes. Anyone knows why Microsoft does not provide Statements, and if not, is that a a formal channel on the portal to make these requests as and when we need Statements for a given period? Read More
Live and Draft Campaigns Not appearing in Amplify Camaigns
I am working with a client, training on amplify. As we create test campaigns, in the past week, none of the new campaigns are appearing in the Campaigns list for users. Only campaigns they create appear. Users can use the email link informing them they were invited to a campaign to reach the campaign, but it still won’t appear in their list.
I am working with a client, training on amplify. As we create test campaigns, in the past week, none of the new campaigns are appearing in the Campaigns list for users. Only campaigns they create appear. Users can use the email link informing them they were invited to a campaign to reach the campaign, but it still won’t appear in their list. Read More
Excel Clipboard Format
If this is the wrong place for this question, please point me to the correct place.
If you copy data from Excel, and then paste it into another application, you will generally get numbers formatted in the same manner they appeared in Excel. For for example, if you have a cell with the value “1.025368” that is formatted to 3 decimal places (1.025), and you copy and paste this to another application, then “1.025” is what will be pasted.
If you are writing a program that wants to read the full number from the system Clipboard, there are multiple formats that the clipboard can hold. The normal format is “Text” — where each cell is separated by a tab, and each row by a newline character. But when you copy from Excel, it also inserts an “XML Spreadsheet” format of data that looks like this when you retrieve it:
<ss:Workbook xmlns=”urn:schemas-microsoft-com:office:spreadsheet” xmlns:o=”urn:schemas-microsoft-com:office:office” xmlns:x=”urn:schemas-microsoft-com:office:excel” xmlns:ss=”urn:schemas-microsoft-com:office:spreadsheet” xmlns:html=”http://www.w3.org/TR/REC-html40″>
<ss:Styles>
<ss:Style ss:ID=”Default” ss:Name=”Normal”>
<ss:Alignment ss:Vertical=”Bottom” />
<ss:Borders />
<ss:Font ss:FontName=”Arial” x:Family=”Swiss” ss:Color=”#000000″ />
<ss:Interior />
<ss:NumberFormat />
<ss:Protection />
</ss:Style>
<ss:Style ss:ID=”s63″>
<ss:NumberFormat ss:Format=”0.0000″ />
</ss:Style>
<ss:Style ss:ID=”s64″>
<ss:NumberFormat ss:Format=”0.000″ />
</ss:Style>
</ss:Styles>
<ss:Worksheet ss:Name=”Sheet1″>
<ss:Table ss:ExpandedColumnCount=”4″ ss:ExpandedRowCount=”5″>
<ss:Row>
<ss:Cell ss:Index=”2″ ss:StyleID=”s64″>
<ss:Data ss:Type=”Number”>1.0253680000000001</ss:Data>
</ss:Cell>
</ss:Row>
<ss:Row ss:Index=”4″>
<ss:Cell ss:Index=”3″ ss:StyleID=”s63″>
<ss:Data ss:Type=”Number”>15.236548900000001</ss:Data>
</ss:Cell>
</ss:Row>
</ss:Table>
</ss:Worksheet>
</ss:Workbook>
So far so good…this allows us to pull out the full number. However, the <ss:Row> and <ss:Cell> values are only present for non-blank rows and non-blank cells. You can see that they have an “Index=” attribute that is supposed to tell you what row number and column number these values belong in.
The problem is that this doesn’t seem to be true for the very first row. In the above code, I had actually copied a blank row, as shown in this next picture:
There doesn’t seem to be a way to know that the first cell value is actually on the second row instead of the first. This seems like a bug with Excel, right? How does one get that addressed?
If this is the wrong place for this question, please point me to the correct place. If you copy data from Excel, and then paste it into another application, you will generally get numbers formatted in the same manner they appeared in Excel. For for example, if you have a cell with the value “1.025368” that is formatted to 3 decimal places (1.025), and you copy and paste this to another application, then “1.025” is what will be pasted. If you are writing a program that wants to read the full number from the system Clipboard, there are multiple formats that the clipboard can hold. The normal format is “Text” — where each cell is separated by a tab, and each row by a newline character. But when you copy from Excel, it also inserts an “XML Spreadsheet” format of data that looks like this when you retrieve it: <ss:Workbook xmlns=”urn:schemas-microsoft-com:office:spreadsheet” xmlns:o=”urn:schemas-microsoft-com:office:office” xmlns:x=”urn:schemas-microsoft-com:office:excel” xmlns:ss=”urn:schemas-microsoft-com:office:spreadsheet” xmlns:html=”http://www.w3.org/TR/REC-html40″>
<ss:Styles>
<ss:Style ss:ID=”Default” ss:Name=”Normal”>
<ss:Alignment ss:Vertical=”Bottom” />
<ss:Borders />
<ss:Font ss:FontName=”Arial” x:Family=”Swiss” ss:Color=”#000000″ />
<ss:Interior />
<ss:NumberFormat />
<ss:Protection />
</ss:Style>
<ss:Style ss:ID=”s63″>
<ss:NumberFormat ss:Format=”0.0000″ />
</ss:Style>
<ss:Style ss:ID=”s64″>
<ss:NumberFormat ss:Format=”0.000″ />
</ss:Style>
</ss:Styles>
<ss:Worksheet ss:Name=”Sheet1″>
<ss:Table ss:ExpandedColumnCount=”4″ ss:ExpandedRowCount=”5″>
<ss:Row>
<ss:Cell ss:Index=”2″ ss:StyleID=”s64″>
<ss:Data ss:Type=”Number”>1.0253680000000001</ss:Data>
</ss:Cell>
</ss:Row>
<ss:Row ss:Index=”4″>
<ss:Cell ss:Index=”3″ ss:StyleID=”s63″>
<ss:Data ss:Type=”Number”>15.236548900000001</ss:Data>
</ss:Cell>
</ss:Row>
</ss:Table>
</ss:Worksheet>
</ss:Workbook> So far so good…this allows us to pull out the full number. However, the <ss:Row> and <ss:Cell> values are only present for non-blank rows and non-blank cells. You can see that they have an “Index=” attribute that is supposed to tell you what row number and column number these values belong in. The problem is that this doesn’t seem to be true for the very first row. In the above code, I had actually copied a blank row, as shown in this next picture: There doesn’t seem to be a way to know that the first cell value is actually on the second row instead of the first. This seems like a bug with Excel, right? How does one get that addressed? Read More
Unique Lists
Have a spreadsheet with a list of employees. Imagine, just simple basic info. Now, on another tab, have certifications and training (if completed) tied to the employee. I was thinking of a Unique list, but that won’t work in a table. Turn the employee list into a query, so it updates on the other sheets?
Have a spreadsheet with a list of employees. Imagine, just simple basic info. Now, on another tab, have certifications and training (if completed) tied to the employee. I was thinking of a Unique list, but that won’t work in a table. Turn the employee list into a query, so it updates on the other sheets? Read More
Form URL Link
I have a Form that I created that is for drivers to check in to our warehouse for picking up items.
The issue is we now have drivers that frequently pick up from our warehouse and they are bookmarking the Form and checking in despite not be on the premises. Is there a way to change from time to time the url? I posted just the QRcode at warehouse entrance but Drivers saved the link. Or what can I do to make sure that
I have a Form that I created that is for drivers to check in to our warehouse for picking up items.The issue is we now have drivers that frequently pick up from our warehouse and they are bookmarking the Form and checking in despite not be on the premises. Is there a way to change from time to time the url? I posted just the QRcode at warehouse entrance but Drivers saved the link. Or what can I do to make sure that Read More
I’d like to have two (or more) images side-by-side without creating a new section.
I’m using the collapse option for this section so creating a new two column section isn’t really an option (unless you can put a section within a section?).
How else might I be able to have two (or more) images presented side-by-side?
I’m investigating doing this with the embed element but haven’t figured out the proper code (or viability) yet.
The images are the same size and in the page’s asset folder.
Example: image1.jpg image2.jpg
I’m using the collapse option for this section so creating a new two column section isn’t really an option (unless you can put a section within a section?). How else might I be able to have two (or more) images presented side-by-side? I’m investigating doing this with the embed element but haven’t figured out the proper code (or viability) yet. The images are the same size and in the page’s asset folder. Example: image1.jpg image2.jpg Read More
Microsoft Dynamics 365 Field Service Functional Consultant blueprint opportunity
Microsoft is updating a certification for Microsoft Dynamics 365 Field Service Functional Consultant, and we need your input through our exam blueprinting survey.
The blueprint determines how many questions each skill in the exam will be assigned. Please complete the online survey by June 26th, 2024. Please also feel free to forward the survey to any colleagues you consider subject matter experts for this certification. If you have any questions, feel free to contact Rohan Mahadevan rmahadevan@microsoft.com or John Sowles at josowles@microsoft.com.
Microsoft Dynamics 365 Field Service Functional Consultant blueprint survey link:
https://microsoftlearning.co1.qualtrics.com/jfe/form/SV_b1kxx1YqYgQDCZ0
Microsoft is updating a certification for Microsoft Dynamics 365 Field Service Functional Consultant, and we need your input through our exam blueprinting survey.
The blueprint determines how many questions each skill in the exam will be assigned. Please complete the online survey by June 26th, 2024. Please also feel free to forward the survey to any colleagues you consider subject matter experts for this certification. If you have any questions, feel free to contact Rohan Mahadevan rmahadevan@microsoft.com or John Sowles at josowles@microsoft.com.
Microsoft Dynamics 365 Field Service Functional Consultant blueprint survey link:
https://microsoftlearning.co1.qualtrics.com/jfe/form/SV_b1kxx1YqYgQDCZ0
Read More
A Closer Look at Azure WAF’s Data Masking Capabilities for Azure Front Door
The Azure Web Application Firewall (WAF) on Azure Front Door offers centralized protection for your web applications against vulnerabilities and threats. The effectiveness of your Azure WAF in managing traffic can be assessed through WAF logs stored in specified locations such as a Log Analytics Workspace or Storage Accounts. These logs document requests that have been either matched or blocked by WAF rules. This data is crucial for monitoring, auditing, and resolving issues. By default, WAF logs are maintained in a plain text format for user convenience and analysis. However, these client requests might include sensitive personal data, like personally identifiable information (PII), which can include names, addresses, contact details, and financial information. Without proper sanitization, logs containing such PII could be exposed to unauthorized access. To address this, Azure Front Door WAF now offers sensitive data protection through log scrubbing. WAF log scrubbing employs a customizable rules engine to pinpoint and redact sensitive portions within the requests, replacing them with a series of asterisks (******) to prevent data exposure. This blog will explains the log scrubbing process and provides practical examples for a more comprehensive understanding.
Log Scrubbing
The Azure Front Door WAF’s sensitive data protection feature using log scrubbing is compatible with all WAF policy rule sets including Default Rule Set (DRS), Bot Manager Ruleset, and any Custom rules. It utilizes a range of match variables, such as client IP, headers, cookies, and request arguments, to identify data for scrubbing. Rule creation involves selecting a match variable, an operator, and defining a selector, which determines the specific key to be cleansed from the logs. Take a simple login process, which generally involves username and password fields; these are two distinct keys that can be targeted as selectors. Should a dubious login attempt activate the WAF, it records the username and password if they contain the suspect string or code injection. The log scrubber then anonymizes these details, obscuring the malicious content while preserving the attack’s characteristics and significantly reducing the risk of personal data exposure.
See below for the full list of Match Variables:
Match Variable
Operator
Selector
Request IP Address
Equals any
<None>
Request URI
Equals any
<None>
Request Header Names
Equals/Equals any
<Custom>
Request Cookie Names
Equals/Equals any
<Custom>
Request Body Post Arg Names
Equals/Equals any
<Custom>
Request Body Json Arg Names
Equals/Equals any
<Custom>
Query String Arg Names
Equals/Equals any
<Custom>
Request IP, Request URI & Request Header
In our initial scenario, we examine the log scrubbing engine’s capability to conceal the requester’s IP address, the request URI, and the User-Agent that activated the WAF rule. In this example, the User-Agent is a carrier for a SQL injection string within the User-Agent key’s value. The log scrubbing rules are configured so that the selector targets User-Agent within the Request Header Names, ensuring every User-Agent occurrence, including the embedded SQL injection string, is cleansed from the WAF logs. This scenario serves as an example on how to write log scrubbing rules to cleanse potentially sensitive values. It is best practice to specify only those values that contain potential personally identifiable information (PII) or other sensitive data, rather than generic request headers like User-Agent.
With the rules defined and the feature enabled, we’ll send a request using Postman that will trigger a block by the WAF and then check on the logs. Our screenshot below shows a 403 Forbidden status code returned from the Azure WAF policy.
Upon examining the logs, the fields labeled clientIP_s, requestUri_s, and matchVariableValue within details_matches_s are now populated with ***** as the full value. While the specific User-Agent involved in this incident is not visible in the logs, the presence of an attack can still be inferred through the analysis of the request headers. This method allows for the identification of unauthorized attempts to access the site, despite certain data being obscured.
AzureDiagnostics
| where ResourceProvider == “MICROSOFT.CDN” and Category == “FrontDoorWebApplicationFirewallLog”
| project TimeGenerated, Resource, policy_s, clientIP_s, clientPort_d, requestUri_s, details_matches_s, details_msg_s, action_s, trackingReference_s
Request Body JSON
The below example shows screenshots of Request Body JSON argument identified for scrubbing. This example shows how to scrub a JSON argument within the WAF logs and uses Postman to generate the request traffic. A log scrubbing rule uses ‘password’ as the identifier within Request Body JSON Argument Name. This ensures only the ‘password’ value in the JSON payload is scrubbed rather than every value transmitted to the website. In our scenario the JSON payload triggers SQL injection WAF rules because of the embedded command string, prompting the Azure WAF to record the event in the logs.
{
“email”: “admin@juice-sh.op”,
“password”: “’ or 1=1—”
}
The WAF logs indicate that the JSON value, along with the requester’s IP and the request URI, are effectively sanitized.
The below screenshots provide additional examples of how Azure WAF’s log scrubbing rules will remove sensitive data from WAF logs.
Request Cookie:
Request Body Post:
Query String:
Conclusion
The Azure Front Door WAF’s log scrubbing tool for sensitive data protection provides the same functionality as the current log scrubbing feature available for Application Gateway. This tool provides organizations with a robust solution for safeguarding sensitive data and personally identifiable information within their logs. Sensitive data protection is critical in reducing the likelihood of incurring legal or regulatory repercussions due to the inadvertent disclosure of private or confidential information. Implementing log scrubbing rules is a recommended best practice for all system administrators managing log data. For additional insights into Azure WAF, please refer to the accompanying resources.
Resources
Azure WAF Overview – Introduction to Azure Web Application Firewall | Microsoft Learn
What is Azure Web Application Firewall on Azure Front Door? – What is Azure Web Application Firewall on Azure Front Door? | Microsoft Learn
What is Azure Web Application Firewall Sensitive Data Protection (Preview)? – Azure Web Application Firewall on Azure Front Door Sensitive Data Protection (preview) | Microsoft Learn
How to mask sensitive data on Azure Web Application Firewall – How to mask sensitive data on Azure Web Application Firewall on Azure Front Door (preview) | Microsoft Learn
Microsoft Tech Community – Latest Blogs –Read More
problem to install IQC toolbox
Hi everyone
I tried to install IQCtoolbox with several methods provided by available sources, but none worked well.
I got errors that are not clear.
I followed all the provided steps by
https://iqctoolbox.github.io/iqcToolbox/getting_started.html
I tried using web save, add-on, direct download,
while I type:
installIqcToolbox
it asked me to install YALMIP, I pressed y then asked to install LPSOLVE 5.5 I pressed y, then asked to install SDPT3 I pressed y but returned the error:
>> installIqcToolbox
yalmip is not detected on your system and must be installed. Do you wish to install? [‘y’/’n’]
y
Installing from the fork YALMIP, Copyright (c) 2012-2021 by Johan Löfberg
y
lpsolve is not detected on your system and must be installed. Do you wish to install? [‘y’/’n’]
Installing LPSOLVE 5.5, Copyright (c) 2004 – 2021 by M. Berkelaar, K. Eikland, and P. Notebaert
MEX configured to use ‘Xcode with Clang’ for C language compilation.
SDPT3 is not detected on your system and must be installed. Do you wish to install? [‘y’/’n’]
y
Installing SDPT3, Copyright (c) 1997 by Kim-Chuan Toh, Michael J. Todd, and Reha H. Tutuncu
Warning: Directory already exists.
> In installIqcToolbox (line 246)
Error using assert
iqcToolbox has not been correctly installed, run installIqcToolbox first
Error in initializeIqcToolbox (line 27)
assert(install_complete,…
Error in installIqcToolbox (line 254)
initializeIqcToolbox
any help is highly appreciated,Hi everyone
I tried to install IQCtoolbox with several methods provided by available sources, but none worked well.
I got errors that are not clear.
I followed all the provided steps by
https://iqctoolbox.github.io/iqcToolbox/getting_started.html
I tried using web save, add-on, direct download,
while I type:
installIqcToolbox
it asked me to install YALMIP, I pressed y then asked to install LPSOLVE 5.5 I pressed y, then asked to install SDPT3 I pressed y but returned the error:
>> installIqcToolbox
yalmip is not detected on your system and must be installed. Do you wish to install? [‘y’/’n’]
y
Installing from the fork YALMIP, Copyright (c) 2012-2021 by Johan Löfberg
y
lpsolve is not detected on your system and must be installed. Do you wish to install? [‘y’/’n’]
Installing LPSOLVE 5.5, Copyright (c) 2004 – 2021 by M. Berkelaar, K. Eikland, and P. Notebaert
MEX configured to use ‘Xcode with Clang’ for C language compilation.
SDPT3 is not detected on your system and must be installed. Do you wish to install? [‘y’/’n’]
y
Installing SDPT3, Copyright (c) 1997 by Kim-Chuan Toh, Michael J. Todd, and Reha H. Tutuncu
Warning: Directory already exists.
> In installIqcToolbox (line 246)
Error using assert
iqcToolbox has not been correctly installed, run installIqcToolbox first
Error in initializeIqcToolbox (line 27)
assert(install_complete,…
Error in installIqcToolbox (line 254)
initializeIqcToolbox
any help is highly appreciated, Hi everyone
I tried to install IQCtoolbox with several methods provided by available sources, but none worked well.
I got errors that are not clear.
I followed all the provided steps by
https://iqctoolbox.github.io/iqcToolbox/getting_started.html
I tried using web save, add-on, direct download,
while I type:
installIqcToolbox
it asked me to install YALMIP, I pressed y then asked to install LPSOLVE 5.5 I pressed y, then asked to install SDPT3 I pressed y but returned the error:
>> installIqcToolbox
yalmip is not detected on your system and must be installed. Do you wish to install? [‘y’/’n’]
y
Installing from the fork YALMIP, Copyright (c) 2012-2021 by Johan Löfberg
y
lpsolve is not detected on your system and must be installed. Do you wish to install? [‘y’/’n’]
Installing LPSOLVE 5.5, Copyright (c) 2004 – 2021 by M. Berkelaar, K. Eikland, and P. Notebaert
MEX configured to use ‘Xcode with Clang’ for C language compilation.
SDPT3 is not detected on your system and must be installed. Do you wish to install? [‘y’/’n’]
y
Installing SDPT3, Copyright (c) 1997 by Kim-Chuan Toh, Michael J. Todd, and Reha H. Tutuncu
Warning: Directory already exists.
> In installIqcToolbox (line 246)
Error using assert
iqcToolbox has not been correctly installed, run installIqcToolbox first
Error in initializeIqcToolbox (line 27)
assert(install_complete,…
Error in installIqcToolbox (line 254)
initializeIqcToolbox
any help is highly appreciated, iqc, iqctoolbox MATLAB Answers — New Questions
Why do I get a “libXt.so.6: cannot open shared object file” error when trying to open any “.ctf” apps on my MATLAB R2024a Web App Server Running on CentOS?
I have a web app server running on CentOS 9 which seems to start and run normally. I can upload ".ctf" file to my server and they successfully show up on my web app server with their status listed as "ok". However, when I click on one of the apps to open it, it does not open, and eventually I receive the error:
Something went wrong. Click "OK" or refresh to page to restart the app
After enabling verbose logging on my server and looking at the "webapps_launcher_<timestamp>.log" log I see multiple occurrences of this error:
Error loading /usr/local/MATLAB/MATLAB_Runtime/R2023b/bin/glnxa64/matlab_startup_plugins/matlab_graphics_ui/mwuixloader.so. libXt.so.6: cannot open shared object file: No such file or directory
What is this error and why can’t I open applications on my web app server?I have a web app server running on CentOS 9 which seems to start and run normally. I can upload ".ctf" file to my server and they successfully show up on my web app server with their status listed as "ok". However, when I click on one of the apps to open it, it does not open, and eventually I receive the error:
Something went wrong. Click "OK" or refresh to page to restart the app
After enabling verbose logging on my server and looking at the "webapps_launcher_<timestamp>.log" log I see multiple occurrences of this error:
Error loading /usr/local/MATLAB/MATLAB_Runtime/R2023b/bin/glnxa64/matlab_startup_plugins/matlab_graphics_ui/mwuixloader.so. libXt.so.6: cannot open shared object file: No such file or directory
What is this error and why can’t I open applications on my web app server? I have a web app server running on CentOS 9 which seems to start and run normally. I can upload ".ctf" file to my server and they successfully show up on my web app server with their status listed as "ok". However, when I click on one of the apps to open it, it does not open, and eventually I receive the error:
Something went wrong. Click "OK" or refresh to page to restart the app
After enabling verbose logging on my server and looking at the "webapps_launcher_<timestamp>.log" log I see multiple occurrences of this error:
Error loading /usr/local/MATLAB/MATLAB_Runtime/R2023b/bin/glnxa64/matlab_startup_plugins/matlab_graphics_ui/mwuixloader.so. libXt.so.6: cannot open shared object file: No such file or directory
What is this error and why can’t I open applications on my web app server? webappserver, centos, linux, libxt6 MATLAB Answers — New Questions
Python function call from Matlab – error occurred “Conversion to int64 from py.NoneType is not possible.”
I want to call a python function from Matlab.
I have two Python files. one file can call the other file. The content of the file named, calculation.py is as follows
def addNumbers(a, b):
print("Sum is ", a + b)
def subtractNumbers(a, b):
print("Difference is ", a – b)
def multiplyNumbers(a, b):
print("Product is ", a * b)
def divideNumbers(a, b):
print("Division is ", a / b)
def modulusNumbers(a, b):
print("Remainder is ", a % b)
The content of the another python file named call_file.py is as follows
from calculation import addNumbers, multiplyNumbers
I wrote a matlab code to call call_flie.py. The matlab code is as follows
pyenv
path_add = fileparts(which("call_file.py"))
if count(py.sys.path,path_add)==0
insert(py.sys.path,int64(0),path_add)
end
pyOut = py.call_file.addNumbers(5, 2);
sum = int64(pyOut);
disp(sum)
I received the error "Error using int64
Conversion to int64 from py.NoneType is not possible.
Error in Test1 (line 8)
sum = int64(pyOut);
"
How can I solve the error?
Thank you.I want to call a python function from Matlab.
I have two Python files. one file can call the other file. The content of the file named, calculation.py is as follows
def addNumbers(a, b):
print("Sum is ", a + b)
def subtractNumbers(a, b):
print("Difference is ", a – b)
def multiplyNumbers(a, b):
print("Product is ", a * b)
def divideNumbers(a, b):
print("Division is ", a / b)
def modulusNumbers(a, b):
print("Remainder is ", a % b)
The content of the another python file named call_file.py is as follows
from calculation import addNumbers, multiplyNumbers
I wrote a matlab code to call call_flie.py. The matlab code is as follows
pyenv
path_add = fileparts(which("call_file.py"))
if count(py.sys.path,path_add)==0
insert(py.sys.path,int64(0),path_add)
end
pyOut = py.call_file.addNumbers(5, 2);
sum = int64(pyOut);
disp(sum)
I received the error "Error using int64
Conversion to int64 from py.NoneType is not possible.
Error in Test1 (line 8)
sum = int64(pyOut);
"
How can I solve the error?
Thank you. I want to call a python function from Matlab.
I have two Python files. one file can call the other file. The content of the file named, calculation.py is as follows
def addNumbers(a, b):
print("Sum is ", a + b)
def subtractNumbers(a, b):
print("Difference is ", a – b)
def multiplyNumbers(a, b):
print("Product is ", a * b)
def divideNumbers(a, b):
print("Division is ", a / b)
def modulusNumbers(a, b):
print("Remainder is ", a % b)
The content of the another python file named call_file.py is as follows
from calculation import addNumbers, multiplyNumbers
I wrote a matlab code to call call_flie.py. The matlab code is as follows
pyenv
path_add = fileparts(which("call_file.py"))
if count(py.sys.path,path_add)==0
insert(py.sys.path,int64(0),path_add)
end
pyOut = py.call_file.addNumbers(5, 2);
sum = int64(pyOut);
disp(sum)
I received the error "Error using int64
Conversion to int64 from py.NoneType is not possible.
Error in Test1 (line 8)
sum = int64(pyOut);
"
How can I solve the error?
Thank you. python, matlab MATLAB Answers — New Questions
App_Web_outlooken.aspx.f5dba9b9.moomk9bg.dll
I have a fully patched Exchange 2019 server (15.2.1544.11) with Sentinel One running.
Windows update is handled by ConnectWise Automate and the update GUI is hidden from display.
Only port 443 is open to the world and 25 is allowed in from only a spam filtering service.
Today it hit on this file DeviceHarddiskVolume4WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesowac7aec3e5170e9609App_Web_outlooken.aspx.f5dba9b9.moomk9bg.dll
Threat Info:
Name: App_Web_outlooken.aspx.f5dba9b9.moomk9bg.dll
URL: Omitted
Path: DeviceHarddiskVolume4WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesowac7aec3e5170e9609App_Web_outlooken.aspx.f5dba9b9.moomk9bg.dll
Process User: NT AUTHORITYSYSTEM
Signature Verification: NotSigned
Originating Process: w3wp.exe
SHA1: 16c3001d66bd5b4e01fa2b3a5fe8fea3e31ed94b
Initiated By: Agent Policy
Engine: On-Write Static AI – Suspicious
Detection type: Static
Classification: PUA
File Size: 60.50 KB
Storyline: 34B3AAE90059A029
Threat Id: 1971715204265351815
Endpoint Info:
Computer Name: EX19
Console Connectivity: Online
Full Disk Scan: Completed at Jan 23, 2023 18:03:01
Pending reboot: No
Network Status: Connected
Scope: Omitted
OS Version: Windows Server 2019 Standard 17763
Agent Version: 22.2.4.558
Policy: protect
UUID: 88685af938e5446684e063a45e55cee5
Domain: Omitted
IP v4 Address: 192.168.14.150
Console Visible IP Address: Omitted
Subscription Time: Jan 23, 2023 17:42:06
I can’t see how it got in but, out of an abundance of caution, I created two new CAS rules to block external ECP and Powershell access.
The exchange powershell log shows no activity.
Is this a valid file?
TIA
-=Chris
I have a fully patched Exchange 2019 server (15.2.1544.11) with Sentinel One running.Windows update is handled by ConnectWise Automate and the update GUI is hidden from display.Only port 443 is open to the world and 25 is allowed in from only a spam filtering service. Today it hit on this file DeviceHarddiskVolume4WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesowac7aec3e5170e9609App_Web_outlooken.aspx.f5dba9b9.moomk9bg.dll Threat Info:Name: App_Web_outlooken.aspx.f5dba9b9.moomk9bg.dllURL: OmittedPath: DeviceHarddiskVolume4WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesowac7aec3e5170e9609App_Web_outlooken.aspx.f5dba9b9.moomk9bg.dllProcess User: NT AUTHORITYSYSTEMSignature Verification: NotSignedOriginating Process: w3wp.exeSHA1: 16c3001d66bd5b4e01fa2b3a5fe8fea3e31ed94bInitiated By: Agent PolicyEngine: On-Write Static AI – SuspiciousDetection type: StaticClassification: PUAFile Size: 60.50 KBStoryline: 34B3AAE90059A029Threat Id: 1971715204265351815Endpoint Info:Computer Name: EX19Console Connectivity: OnlineFull Disk Scan: Completed at Jan 23, 2023 18:03:01Pending reboot: NoNetwork Status: ConnectedScope: OmittedOS Version: Windows Server 2019 Standard 17763Agent Version: 22.2.4.558Policy: protectUUID: 88685af938e5446684e063a45e55cee5Domain: OmittedIP v4 Address: 192.168.14.150Console Visible IP Address: OmittedSubscription Time: Jan 23, 2023 17:42:06 I can’t see how it got in but, out of an abundance of caution, I created two new CAS rules to block external ECP and Powershell access.The exchange powershell log shows no activity.Is this a valid file? TIA-=Chris Read More
Intune for Ubuntu Noble Numbat 24.04 release date
Does anyone have a release date for Intune for Ubunutu 24.04?
Does anyone have a release date for Intune for Ubunutu 24.04? Read More