Month: September 2024
Adding google analytics to modern sharepoint site using SPFX Extension
hi,
We have a requirement to add Google Analytics to Sharepoint Online modern site – not to Site Collection
I followed below tutorial, but when i build it, i get the following error on eval(` line of code.
https://sharepoint.handsontek.net/2017/12/21/how-to-add-google-analytics-to-the-modern-sharepoint/
eval(`
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());
gtag(‘config’, ‘${trackingID}’);
`);
Can any one recommend, how to either fix the above error, or some other way, to incorporate GA4 to Sharepoint site please?
Thank you
hi,We have a requirement to add Google Analytics to Sharepoint Online modern site – not to Site CollectionI followed below tutorial, but when i build it, i get the following error on eval(` line of code.https://sharepoint.handsontek.net/2017/12/21/how-to-add-google-analytics-to-the-modern-sharepoint/ eval(`
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());
gtag(‘config’, ‘${trackingID}’);
`); Warning-lint – src/extensions/googleanalytics/GoogleanalyticsApplicationCustomizer.ts(51,7): error no-eval: eval can be harmful. Can any one recommend, how to either fix the above error, or some other way, to incorporate GA4 to Sharepoint site please?Thank you Read More
M365 Summit Microsoft Cloud Engineering Bootcamp
M365 Summit Manchester 2024 – Microsoft Cloud Engineering Bootcamp Agenda is focused on building robust enterprise solutions providing zero to hero deep dive sessions on Microsoft 365, Azure, A.I., Cyber security, Power BI Data Science, Power Platform Low Code Development & Dynamics 365 Bootcamps. The Microsoft Conference will take place at University Academy 92, Brian Statham Way, Manchester M16 0PU
https://m365summit.powercommunity.com/
Track 1 – Microsoft 365 Enterprise
Track 2 – A.I. Bootcamp
Track 3 – Cyber Security
Track 4 – Azure
Track 5 – DevOps
Track 6 – Power Platform
Track 7 – PoweBI
Track 8 – Productivity & Project Management
M365 Summit Manchester 2024 – Microsoft Cloud Engineering Bootcamp Agenda is focused on building robust enterprise solutions providing zero to hero deep dive sessions on Microsoft 365, Azure, A.I., Cyber security, Power BI Data Science, Power Platform Low Code Development & Dynamics 365 Bootcamps. The Microsoft Conference will take place at University Academy 92, Brian Statham Way, Manchester M16 0PU
https://m365summit.powercommunity.com/
Track 1 – Microsoft 365 Enterprise
Track 2 – A.I. Bootcamp
Track 3 – Cyber Security
Track 4 – Azure
Track 5 – DevOps
Track 6 – Power Platform
Track 7 – PoweBI
Track 8 – Productivity & Project Management Read More
MDE logs backup suggestions
Hi All,
Given MDE stores logs for 30 days only, I am in search of ideas on where to store these logs beyond 30 days. We do not want to export the logs to Sentinel due to cost factor. Thinking of storing the logs in a Cosmos DB, however would like to know what other options do I have here.
Thank you !!
Hi All, Given MDE stores logs for 30 days only, I am in search of ideas on where to store these logs beyond 30 days. We do not want to export the logs to Sentinel due to cost factor. Thinking of storing the logs in a Cosmos DB, however would like to know what other options do I have here. Thank you !! Read More
Automatic sections breaks and hidden sections are messing with my page numbers
Hello! This is my first time posting looking for solutions, I hope I can explain my problem properly.
I was working on a document in Word when I realized all the page numbers were off as they kept restarting at 1 and I didn’t have any good reason why. After reading through a few forums here I figured out how to check for section breaks – which could reset my page count. This was the problem! And while I still can’t figure out how to delete section breaks (I have tried every version offered here, I am using a 2020 macbook air with microsoft word Version 16.88 (24081116) if that matters), I could just go through to each new section and manually change the page count formatting from “start at..” to “continue from previous”.
This did help but didn’t make sense as I didn’t create any section breaks. I think they’re being automatically created as some of my text is in 2 columns and some is not, so I think the program is just turning the columned bits into their own section. Annoying to do individually but not un-fixable, or so I thought.
I carried on for another hour or two and realized the numbers were all off again. I go to manually change all the page numbers and find that one page is on Section 5 while the next page is on Section 7 with no Section 6 to be found, disrupting the flow of my numbers once again. I’ve looked at it through draft, outline and regular view (with the print marks turned on) and there is no hint of sneaky Section 6. I’ve deleted text and moved things around and it’s still eluding me, hiding in the netherworld between those pages and taunting me with the restarted page numbers.
The screen shot below is of the dark void where Section 6 hides. This feels like a cruel prank.
I don’t want Microsoft word to break me and this has been too much time spent down a rabbit hole chasing Section 6 which should instead be spent working on my thesis. I’d like to put this out there and continue with my work in the hopes that some tech wizard can save me and my sanity. Could someone tell me how I could:
Find a way to make all page numbers ‘continue from the previous section’ automatically? I’m hoping there’s some obvious way to do this, a quick way to change them all at once rather than doing it individually and not worry about my ghost section. Find Section 6 and bring it to justiceDelete rogue sections on my computer
Hopefully this all made sense, it doesn’t to me. Thank you so much!
Hello! This is my first time posting looking for solutions, I hope I can explain my problem properly. I was working on a document in Word when I realized all the page numbers were off as they kept restarting at 1 and I didn’t have any good reason why. After reading through a few forums here I figured out how to check for section breaks – which could reset my page count. This was the problem! And while I still can’t figure out how to delete section breaks (I have tried every version offered here, I am using a 2020 macbook air with microsoft word Version 16.88 (24081116) if that matters), I could just go through to each new section and manually change the page count formatting from “start at..” to “continue from previous”. This did help but didn’t make sense as I didn’t create any section breaks. I think they’re being automatically created as some of my text is in 2 columns and some is not, so I think the program is just turning the columned bits into their own section. Annoying to do individually but not un-fixable, or so I thought. I carried on for another hour or two and realized the numbers were all off again. I go to manually change all the page numbers and find that one page is on Section 5 while the next page is on Section 7 with no Section 6 to be found, disrupting the flow of my numbers once again. I’ve looked at it through draft, outline and regular view (with the print marks turned on) and there is no hint of sneaky Section 6. I’ve deleted text and moved things around and it’s still eluding me, hiding in the netherworld between those pages and taunting me with the restarted page numbers. The screen shot below is of the dark void where Section 6 hides. This feels like a cruel prank. I don’t want Microsoft word to break me and this has been too much time spent down a rabbit hole chasing Section 6 which should instead be spent working on my thesis. I’d like to put this out there and continue with my work in the hopes that some tech wizard can save me and my sanity. Could someone tell me how I could:Find a way to make all page numbers ‘continue from the previous section’ automatically? I’m hoping there’s some obvious way to do this, a quick way to change them all at once rather than doing it individually and not worry about my ghost section. Find Section 6 and bring it to justiceDelete rogue sections on my computerHopefully this all made sense, it doesn’t to me. Thank you so much! Read More
Are there free trial versions of Defender for evaluation/training?
Hey everyone,
Just making a post to get some info regarding this. I am wanting to play around with defender potentially using a Azure Virtual machine to practise deployment and configuration of Defender on a server as well as playing around with credential guard. I’m also wanting to do this to learn how to ingest Defender logs into Splunk.
Does Microsoft offer free trial licenses for this purpose?
Thanks for any info!
Hey everyone, Just making a post to get some info regarding this. I am wanting to play around with defender potentially using a Azure Virtual machine to practise deployment and configuration of Defender on a server as well as playing around with credential guard. I’m also wanting to do this to learn how to ingest Defender logs into Splunk. Does Microsoft offer free trial licenses for this purpose? Thanks for any info! Read More
extracting overlapping portions of 2 similar tracks
hi and thanks in advance
I have cyclone tracks extracted from 2 different sources labeled as trackBom and trackRe (stored in sampleTracks.mat). I am trying to bias-correct some variables along these tracks. To do that, I need to extract the overlapping portions of the tracks. The issue is that these tracks do not exactly align in space or time. I have attached a figure showing the original tracks and the overlapping portions that I want to extract. What i want is to extract the overlapping (or almost overlapping) portions of the tracks as shown in the picture and store them as trackBomLap and trackReLap to impliment my bias correction metods.
your help is much appreciated.hi and thanks in advance
I have cyclone tracks extracted from 2 different sources labeled as trackBom and trackRe (stored in sampleTracks.mat). I am trying to bias-correct some variables along these tracks. To do that, I need to extract the overlapping portions of the tracks. The issue is that these tracks do not exactly align in space or time. I have attached a figure showing the original tracks and the overlapping portions that I want to extract. What i want is to extract the overlapping (or almost overlapping) portions of the tracks as shown in the picture and store them as trackBomLap and trackReLap to impliment my bias correction metods.
your help is much appreciated. hi and thanks in advance
I have cyclone tracks extracted from 2 different sources labeled as trackBom and trackRe (stored in sampleTracks.mat). I am trying to bias-correct some variables along these tracks. To do that, I need to extract the overlapping portions of the tracks. The issue is that these tracks do not exactly align in space or time. I have attached a figure showing the original tracks and the overlapping portions that I want to extract. What i want is to extract the overlapping (or almost overlapping) portions of the tracks as shown in the picture and store them as trackBomLap and trackReLap to impliment my bias correction metods.
your help is much appreciated. track matching MATLAB Answers — New Questions
Data is not storage when running loop
hello community
please help me to understand why data does not show when I run a loop:
I have 2 files: @Data01.mat and @Data05.mat I want to extrac data points when conditions are met’
if I run my script with Data1 all the parameters are there:
figure;plot (Epm_nEngallc0_4, IKCtl_au16_0allc, ‘.’);
but if I run my script with Data1&2 the output is different and I get less data points
I would expect to have all data poins from @Data01.mat plus @Data05.mat
please help me to see what am I doing wrong.
clear all; %
clc; %
fprintf(‘select folder containing data filesn’);
currentpath=pwd; %%
datapath=uigetdir(”,’Select Data Folder’); %%
if (datapath == 0)
fprintf(‘Data directory was not selected…script will be terminatednn’);
return
end
prompt = ‘Do you want to export data as .xlsx?’;
save_data_excel = questdlg(prompt,’Save’,’Yes’,’No’,’Yes’);
cd(datapath); %%
files=dir(‘@*.mat’); %%
num_files=length(files(:,1)); %%
for i=1:num_files
fprintf(‘Progress: %d/%dnn’,i, num_files)
load(files(i,1).name)
idx = [false; diff(xzsen__ls_0_rs_) < 0];
idx1 = [false; diff(xzsen__ls_1_rs_) < 0];
idx2 = [false; diff(xzsen__ls_2_rs_) < 0];
idx3 = [false; diff(xzsen__ls_0_rs_) < 0];
idx4 = [false; diff(xzsen__ls_1_rs_) < 0];
idx5 = [false; diff(xzsen__ls_2_rs_) < 0];
for j=1:length(time)
if Epm_nEng(j) > 0 && IKCtl_DiagRefLvlMinErr_au16__ls_1_rs_(j) > 0.165 && IKCtl_DiagRefLvlMinErr_au16__ls_3_rs_(j) > 0.165
Epm_nEngallc1_3(j,1) = Epm_nEng(j);
end
if Epm_nEng(j) > 0 && IKCtl_DiagRefLvlMinErr_au16__ls_2_rs_(j) > 0.165 && IKCtl_DiagRefLvlMinErr_au16__ls_5_rs_(j) > 0.165
Epm_nEngallc2_5(j,1) = Epm_nEng(j);
end
if Epm_nEng(j) > 0 && IKCtl_DiagRefLvlMinErr_au16__ls_0_rs_(j) > 0.165 && IKCtl_DiagRefLvlMinErr_au16__ls_4_rs_(j) > 0.165
Epm_nEngallc0_4(j,1) = Epm_nEng(j);
end
if Epm_nEng(j) > 0 && IKCtl_DiagRefLvlMinErr_au16__ls_1_rs_(j) > 0.165 && IKCtl_DiagRefLvlMinErr_au16__ls_3_rs_(j) > 0.165
IKCtl_au16_1allc(j,1)= IKCtl_DiagRefLvlMinErr_au16__ls_1_rs_(j);
IKCtl_au16_3allc(j,1)= IKCtl_DiagRefLvlMinErr_au16__ls_3_rs_(j);
end
if Epm_nEng(j) > 0 && IKCtl_DiagRefLvlMinErr_au16__ls_2_rs_(j) > 0.165 && IKCtl_DiagRefLvlMinErr_au16__ls_5_rs_(j) > 0.165
IKCtl_au16_2allc(j,1)= IKCtl_DiagRefLvlMinErr_au16__ls_2_rs_(j);
IKCtl_au16_5allc(j,1)= IKCtl_DiagRefLvlMinErr_au16__ls_5_rs_(j);
end
if Epm_nEng(j) > 0 && IKCtl_DiagRefLvlMinErr_au16__ls_0_rs_(j) > 0.165 && IKCtl_DiagRefLvlMinErr_au16__ls_4_rs_(j) > 0.165
IKCtl_au16_0allc(j,1)= IKCtl_DiagRefLvlMinErr_au16__ls_0_rs_(j);
IKCtl_au16_4allc(j,1)= IKCtl_DiagRefLvlMinErr_au16__ls_4_rs_(j);
end
end
endhello community
please help me to understand why data does not show when I run a loop:
I have 2 files: @Data01.mat and @Data05.mat I want to extrac data points when conditions are met’
if I run my script with Data1 all the parameters are there:
figure;plot (Epm_nEngallc0_4, IKCtl_au16_0allc, ‘.’);
but if I run my script with Data1&2 the output is different and I get less data points
I would expect to have all data poins from @Data01.mat plus @Data05.mat
please help me to see what am I doing wrong.
clear all; %
clc; %
fprintf(‘select folder containing data filesn’);
currentpath=pwd; %%
datapath=uigetdir(”,’Select Data Folder’); %%
if (datapath == 0)
fprintf(‘Data directory was not selected…script will be terminatednn’);
return
end
prompt = ‘Do you want to export data as .xlsx?’;
save_data_excel = questdlg(prompt,’Save’,’Yes’,’No’,’Yes’);
cd(datapath); %%
files=dir(‘@*.mat’); %%
num_files=length(files(:,1)); %%
for i=1:num_files
fprintf(‘Progress: %d/%dnn’,i, num_files)
load(files(i,1).name)
idx = [false; diff(xzsen__ls_0_rs_) < 0];
idx1 = [false; diff(xzsen__ls_1_rs_) < 0];
idx2 = [false; diff(xzsen__ls_2_rs_) < 0];
idx3 = [false; diff(xzsen__ls_0_rs_) < 0];
idx4 = [false; diff(xzsen__ls_1_rs_) < 0];
idx5 = [false; diff(xzsen__ls_2_rs_) < 0];
for j=1:length(time)
if Epm_nEng(j) > 0 && IKCtl_DiagRefLvlMinErr_au16__ls_1_rs_(j) > 0.165 && IKCtl_DiagRefLvlMinErr_au16__ls_3_rs_(j) > 0.165
Epm_nEngallc1_3(j,1) = Epm_nEng(j);
end
if Epm_nEng(j) > 0 && IKCtl_DiagRefLvlMinErr_au16__ls_2_rs_(j) > 0.165 && IKCtl_DiagRefLvlMinErr_au16__ls_5_rs_(j) > 0.165
Epm_nEngallc2_5(j,1) = Epm_nEng(j);
end
if Epm_nEng(j) > 0 && IKCtl_DiagRefLvlMinErr_au16__ls_0_rs_(j) > 0.165 && IKCtl_DiagRefLvlMinErr_au16__ls_4_rs_(j) > 0.165
Epm_nEngallc0_4(j,1) = Epm_nEng(j);
end
if Epm_nEng(j) > 0 && IKCtl_DiagRefLvlMinErr_au16__ls_1_rs_(j) > 0.165 && IKCtl_DiagRefLvlMinErr_au16__ls_3_rs_(j) > 0.165
IKCtl_au16_1allc(j,1)= IKCtl_DiagRefLvlMinErr_au16__ls_1_rs_(j);
IKCtl_au16_3allc(j,1)= IKCtl_DiagRefLvlMinErr_au16__ls_3_rs_(j);
end
if Epm_nEng(j) > 0 && IKCtl_DiagRefLvlMinErr_au16__ls_2_rs_(j) > 0.165 && IKCtl_DiagRefLvlMinErr_au16__ls_5_rs_(j) > 0.165
IKCtl_au16_2allc(j,1)= IKCtl_DiagRefLvlMinErr_au16__ls_2_rs_(j);
IKCtl_au16_5allc(j,1)= IKCtl_DiagRefLvlMinErr_au16__ls_5_rs_(j);
end
if Epm_nEng(j) > 0 && IKCtl_DiagRefLvlMinErr_au16__ls_0_rs_(j) > 0.165 && IKCtl_DiagRefLvlMinErr_au16__ls_4_rs_(j) > 0.165
IKCtl_au16_0allc(j,1)= IKCtl_DiagRefLvlMinErr_au16__ls_0_rs_(j);
IKCtl_au16_4allc(j,1)= IKCtl_DiagRefLvlMinErr_au16__ls_4_rs_(j);
end
end
end hello community
please help me to understand why data does not show when I run a loop:
I have 2 files: @Data01.mat and @Data05.mat I want to extrac data points when conditions are met’
if I run my script with Data1 all the parameters are there:
figure;plot (Epm_nEngallc0_4, IKCtl_au16_0allc, ‘.’);
but if I run my script with Data1&2 the output is different and I get less data points
I would expect to have all data poins from @Data01.mat plus @Data05.mat
please help me to see what am I doing wrong.
clear all; %
clc; %
fprintf(‘select folder containing data filesn’);
currentpath=pwd; %%
datapath=uigetdir(”,’Select Data Folder’); %%
if (datapath == 0)
fprintf(‘Data directory was not selected…script will be terminatednn’);
return
end
prompt = ‘Do you want to export data as .xlsx?’;
save_data_excel = questdlg(prompt,’Save’,’Yes’,’No’,’Yes’);
cd(datapath); %%
files=dir(‘@*.mat’); %%
num_files=length(files(:,1)); %%
for i=1:num_files
fprintf(‘Progress: %d/%dnn’,i, num_files)
load(files(i,1).name)
idx = [false; diff(xzsen__ls_0_rs_) < 0];
idx1 = [false; diff(xzsen__ls_1_rs_) < 0];
idx2 = [false; diff(xzsen__ls_2_rs_) < 0];
idx3 = [false; diff(xzsen__ls_0_rs_) < 0];
idx4 = [false; diff(xzsen__ls_1_rs_) < 0];
idx5 = [false; diff(xzsen__ls_2_rs_) < 0];
for j=1:length(time)
if Epm_nEng(j) > 0 && IKCtl_DiagRefLvlMinErr_au16__ls_1_rs_(j) > 0.165 && IKCtl_DiagRefLvlMinErr_au16__ls_3_rs_(j) > 0.165
Epm_nEngallc1_3(j,1) = Epm_nEng(j);
end
if Epm_nEng(j) > 0 && IKCtl_DiagRefLvlMinErr_au16__ls_2_rs_(j) > 0.165 && IKCtl_DiagRefLvlMinErr_au16__ls_5_rs_(j) > 0.165
Epm_nEngallc2_5(j,1) = Epm_nEng(j);
end
if Epm_nEng(j) > 0 && IKCtl_DiagRefLvlMinErr_au16__ls_0_rs_(j) > 0.165 && IKCtl_DiagRefLvlMinErr_au16__ls_4_rs_(j) > 0.165
Epm_nEngallc0_4(j,1) = Epm_nEng(j);
end
if Epm_nEng(j) > 0 && IKCtl_DiagRefLvlMinErr_au16__ls_1_rs_(j) > 0.165 && IKCtl_DiagRefLvlMinErr_au16__ls_3_rs_(j) > 0.165
IKCtl_au16_1allc(j,1)= IKCtl_DiagRefLvlMinErr_au16__ls_1_rs_(j);
IKCtl_au16_3allc(j,1)= IKCtl_DiagRefLvlMinErr_au16__ls_3_rs_(j);
end
if Epm_nEng(j) > 0 && IKCtl_DiagRefLvlMinErr_au16__ls_2_rs_(j) > 0.165 && IKCtl_DiagRefLvlMinErr_au16__ls_5_rs_(j) > 0.165
IKCtl_au16_2allc(j,1)= IKCtl_DiagRefLvlMinErr_au16__ls_2_rs_(j);
IKCtl_au16_5allc(j,1)= IKCtl_DiagRefLvlMinErr_au16__ls_5_rs_(j);
end
if Epm_nEng(j) > 0 && IKCtl_DiagRefLvlMinErr_au16__ls_0_rs_(j) > 0.165 && IKCtl_DiagRefLvlMinErr_au16__ls_4_rs_(j) > 0.165
IKCtl_au16_0allc(j,1)= IKCtl_DiagRefLvlMinErr_au16__ls_0_rs_(j);
IKCtl_au16_4allc(j,1)= IKCtl_DiagRefLvlMinErr_au16__ls_4_rs_(j);
end
end
end loops, matlab MATLAB Answers — New Questions
Calculation of psnr value in RGB image. I have calculated psnr using this code. But the result obtained is a complex number. What should be the error??
if true
function PSNR = psnrgb(I,W)
[m,n,p] = size(I);
[h,w,q] = size(W);
if m ~= h || n ~= w || p~=q
error(‘Two images must have the same size.’)
end
for k=1:p
for i=1:m
for j=1:n
delta=sum(I(i,j,k)-W(i,j,k).^2);
end
end
end
delta = 1/(m*n*p) * delta ;
PSNR = 10 * log10( 255^2/delta );
end
endif true
function PSNR = psnrgb(I,W)
[m,n,p] = size(I);
[h,w,q] = size(W);
if m ~= h || n ~= w || p~=q
error(‘Two images must have the same size.’)
end
for k=1:p
for i=1:m
for j=1:n
delta=sum(I(i,j,k)-W(i,j,k).^2);
end
end
end
delta = 1/(m*n*p) * delta ;
PSNR = 10 * log10( 255^2/delta );
end
end if true
function PSNR = psnrgb(I,W)
[m,n,p] = size(I);
[h,w,q] = size(W);
if m ~= h || n ~= w || p~=q
error(‘Two images must have the same size.’)
end
for k=1:p
for i=1:m
for j=1:n
delta=sum(I(i,j,k)-W(i,j,k).^2);
end
end
end
delta = 1/(m*n*p) * delta ;
PSNR = 10 * log10( 255^2/delta );
end
end image processing, steganography MATLAB Answers — New Questions
Trouble Plotting Basic Function
I’m having difficulty getting a function to plot correctly in Matlab. The function is:
f(x) = x^3 – sin(x) – e^x
I’ve tried using the below but the graph is not how it should appear:
X = -4:0.01:10;
Y = X.^3 – (sin(X)) – (exp(X));
plot(X,Y)I’m having difficulty getting a function to plot correctly in Matlab. The function is:
f(x) = x^3 – sin(x) – e^x
I’ve tried using the below but the graph is not how it should appear:
X = -4:0.01:10;
Y = X.^3 – (sin(X)) – (exp(X));
plot(X,Y) I’m having difficulty getting a function to plot correctly in Matlab. The function is:
f(x) = x^3 – sin(x) – e^x
I’ve tried using the below but the graph is not how it should appear:
X = -4:0.01:10;
Y = X.^3 – (sin(X)) – (exp(X));
plot(X,Y) plot, function MATLAB Answers — New Questions
In_Memory_PE_File which failed the dynamic code trust verification
I am trying to deploy a LoB program for a customer that have a Windows Configuration, WDA Application Control policy setup in M365.
The program, High QA, has path and publisher allows in the policy, and it opens without issue.
The error is encountered when you open a file inside th application, nothing loads but the Event Viewer, Code Integrity/Operational catches the following error:
…InspectionManager.exe is trying to load In_Memory_PE_File which failed the dynamic code trust verification with error code 0xC0E9002.
The policy has the Dynamic Code Security option enabled.
I am hoping there is something that can be done other than turning that option off?
Thanks in advance.
I am trying to deploy a LoB program for a customer that have a Windows Configuration, WDA Application Control policy setup in M365. The program, High QA, has path and publisher allows in the policy, and it opens without issue.The error is encountered when you open a file inside th application, nothing loads but the Event Viewer, Code Integrity/Operational catches the following error: …InspectionManager.exe is trying to load In_Memory_PE_File which failed the dynamic code trust verification with error code 0xC0E9002. The policy has the Dynamic Code Security option enabled. I am hoping there is something that can be done other than turning that option off? Thanks in advance. Read More
Adding google analytics to modern sharepoint sites using SPFX Extension
hi,
We have a requirement to add Google Analytics to Sharepoint Online modern sites.
I followed below tutorial, but when i build it, i get the following error on eval(` line of code.
https://sharepoint.handsontek.net/2017/12/21/how-to-add-google-analytics-to-the-modern-sharepoint/
eval(`
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());
gtag(‘config’, ‘${trackingID}’);
`);
Can any one recommend, how to either fix the above error, or some other way, to incorporate GA4 to Sharepoint site please?
Thank you
hi,We have a requirement to add Google Analytics to Sharepoint Online modern sites.I followed below tutorial, but when i build it, i get the following error on eval(` line of code.https://sharepoint.handsontek.net/2017/12/21/how-to-add-google-analytics-to-the-modern-sharepoint/ eval(`
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());
gtag(‘config’, ‘${trackingID}’);
`); Warning-lint – src/extensions/googleanalytics/GoogleanalyticsApplicationCustomizer.ts(51,7): error no-eval: eval can be harmful. Can any one recommend, how to either fix the above error, or some other way, to incorporate GA4 to Sharepoint site please?Thank you Read More
Chasing what is wrong with ‘dual-simplex-highs’ in linprog
I try to see why ‘dual-simplex-highs’ algorithm fails and ‘dual-simplex-legacy’ works OK on this specific LP problem of size 467.
The linear programming involves only linear equality constraints, and lower bounds x >= 0 on some components of x (but not all of them).
The Aeq size is 211 x 467 and the condion number is not high at all IMO (about 10). So I consider it is not a difficult problem numerically (?).
‘dual-simplex-legacy’ able to find the solution, however not the default algorithm ‘dual-simplex-highs’, the output does not help much what is wrong.
Can someone tell me where I could investigate further to the cause?
load(‘linprog_test.mat’)
size(Aeq)
cond(full(Aeq))
linprogopt = optimset(‘Algorithm’, ‘dual-simplex-legacy’);
[lpsol, ~, exitflag, out] = linprog(c, [], [], Aeq, beq, LB, UB, linprogopt)
linprogopt = optimset(‘Algorithm’, ‘dual-simplex-highs’);
[lpsol, ~, exitflag, out] = linprog(c, [], [], Aeq, beq, LB, UB, linprogopt)I try to see why ‘dual-simplex-highs’ algorithm fails and ‘dual-simplex-legacy’ works OK on this specific LP problem of size 467.
The linear programming involves only linear equality constraints, and lower bounds x >= 0 on some components of x (but not all of them).
The Aeq size is 211 x 467 and the condion number is not high at all IMO (about 10). So I consider it is not a difficult problem numerically (?).
‘dual-simplex-legacy’ able to find the solution, however not the default algorithm ‘dual-simplex-highs’, the output does not help much what is wrong.
Can someone tell me where I could investigate further to the cause?
load(‘linprog_test.mat’)
size(Aeq)
cond(full(Aeq))
linprogopt = optimset(‘Algorithm’, ‘dual-simplex-legacy’);
[lpsol, ~, exitflag, out] = linprog(c, [], [], Aeq, beq, LB, UB, linprogopt)
linprogopt = optimset(‘Algorithm’, ‘dual-simplex-highs’);
[lpsol, ~, exitflag, out] = linprog(c, [], [], Aeq, beq, LB, UB, linprogopt) I try to see why ‘dual-simplex-highs’ algorithm fails and ‘dual-simplex-legacy’ works OK on this specific LP problem of size 467.
The linear programming involves only linear equality constraints, and lower bounds x >= 0 on some components of x (but not all of them).
The Aeq size is 211 x 467 and the condion number is not high at all IMO (about 10). So I consider it is not a difficult problem numerically (?).
‘dual-simplex-legacy’ able to find the solution, however not the default algorithm ‘dual-simplex-highs’, the output does not help much what is wrong.
Can someone tell me where I could investigate further to the cause?
load(‘linprog_test.mat’)
size(Aeq)
cond(full(Aeq))
linprogopt = optimset(‘Algorithm’, ‘dual-simplex-legacy’);
[lpsol, ~, exitflag, out] = linprog(c, [], [], Aeq, beq, LB, UB, linprogopt)
linprogopt = optimset(‘Algorithm’, ‘dual-simplex-highs’);
[lpsol, ~, exitflag, out] = linprog(c, [], [], Aeq, beq, LB, UB, linprogopt) linprog, dual-simplex-highs, failure MATLAB Answers — New Questions
Vectorizing a Simple(?) Operation
Hi all,
This might be a bit of a fruitless question but I just want to confirm there is no other method. I want to know if there is any way of vectorizing the following code:
array = [1,0,1,1,0,0,1];
for i = 2:length(array)-1
if array(i-1) ~= array(i+1)
% Generate a random bit (0 or 1)
random_bit = randi([0, 1]);
% Update the array in place
array(i) = mod(array(i) + random_bit, 2);
end
end
The array can be of any length as long as it is only fillled with 0s and 1s. The key part of the code is that I want to update the array by doing nearest neighbor checks and in such a way that the number of walls (array(i) ~= array(i+1) for i from 1 to size(array)) is constant. And it is this constrained logic of my code that leads me to believe I cannot do away with using for-loops.
The reason I wish to vectorize the code is because I will be doing monte-carlo sampling where I have a large number of these arrays and wish to update them all at the same time using the above update rule, so in the ideal scenario I wouldn’t have to use a nested for-loop to cycle through each sample.Hi all,
This might be a bit of a fruitless question but I just want to confirm there is no other method. I want to know if there is any way of vectorizing the following code:
array = [1,0,1,1,0,0,1];
for i = 2:length(array)-1
if array(i-1) ~= array(i+1)
% Generate a random bit (0 or 1)
random_bit = randi([0, 1]);
% Update the array in place
array(i) = mod(array(i) + random_bit, 2);
end
end
The array can be of any length as long as it is only fillled with 0s and 1s. The key part of the code is that I want to update the array by doing nearest neighbor checks and in such a way that the number of walls (array(i) ~= array(i+1) for i from 1 to size(array)) is constant. And it is this constrained logic of my code that leads me to believe I cannot do away with using for-loops.
The reason I wish to vectorize the code is because I will be doing monte-carlo sampling where I have a large number of these arrays and wish to update them all at the same time using the above update rule, so in the ideal scenario I wouldn’t have to use a nested for-loop to cycle through each sample. Hi all,
This might be a bit of a fruitless question but I just want to confirm there is no other method. I want to know if there is any way of vectorizing the following code:
array = [1,0,1,1,0,0,1];
for i = 2:length(array)-1
if array(i-1) ~= array(i+1)
% Generate a random bit (0 or 1)
random_bit = randi([0, 1]);
% Update the array in place
array(i) = mod(array(i) + random_bit, 2);
end
end
The array can be of any length as long as it is only fillled with 0s and 1s. The key part of the code is that I want to update the array by doing nearest neighbor checks and in such a way that the number of walls (array(i) ~= array(i+1) for i from 1 to size(array)) is constant. And it is this constrained logic of my code that leads me to believe I cannot do away with using for-loops.
The reason I wish to vectorize the code is because I will be doing monte-carlo sampling where I have a large number of these arrays and wish to update them all at the same time using the above update rule, so in the ideal scenario I wouldn’t have to use a nested for-loop to cycle through each sample. vectorization MATLAB Answers — New Questions
Why is 0.3 – 0.2 – 0.1 not equal to zero?
Why does
0.3 – 0.2 – 0.1 == 0
or
v = 0:0.1:1;
any(v == 0.3)
(or similar numbers) reply false?Why does
0.3 – 0.2 – 0.1 == 0
or
v = 0:0.1:1;
any(v == 0.3)
(or similar numbers) reply false? Why does
0.3 – 0.2 – 0.1 == 0
or
v = 0:0.1:1;
any(v == 0.3)
(or similar numbers) reply false? faqlist, floating point, limited precision, faq_fp MATLAB Answers — New Questions
I have the problem of Error Dialog.
I’m trying to open my MATLAB file but it’s doesn’t open. keep on writting this error which I don’t understand because I lasp open my file on the 23/08/24.I’m trying to open my MATLAB file but it’s doesn’t open. keep on writting this error which I don’t understand because I lasp open my file on the 23/08/24. I’m trying to open my MATLAB file but it’s doesn’t open. keep on writting this error which I don’t understand because I lasp open my file on the 23/08/24. error dialog MATLAB Answers — New Questions
Need help creating a template
Hello everyone,
I’m new here, but not to Word. Hoping I can get some help with a problem I haven’t found a solution for yet. I have some 4″ x 6″ C-Line photo pages that include some tearable cardstock inserts that you can write on or type on and then insert into the page (this is their product # 52564 if you are interested in seeing yourself). The inserts are on a perforated sheet 7″ wide by 10″ tall and there are 10 inserts per sheet, only 1 insert wide.
I figured I could create a custom label template as follows and use that:
When I start a new document using this label template, on screen it looks exactly like the insert sheets:
The problem is that I would like to center the text vertically on each “label” before centering it horizontally. Unfortunately, every attempt I have made has been unsuccessful. All text is started at the very top of each insert/”label”. I’ve tried typing out my text and then using Layout>Page Setup>Layout>Page Alignment to center the text, but it simply shifts everything down and prevents the use of the bottom/10th insert:
Are my settings correct for the “label” template?Is there a way to set the label template as vertically centered versus top alignment?Should I be looking elsewhere to vertically center any text I type in?Any other advice on how to solve this problem?
Greatly appreciated in advance.
Hello everyone, I’m new here, but not to Word. Hoping I can get some help with a problem I haven’t found a solution for yet. I have some 4″ x 6″ C-Line photo pages that include some tearable cardstock inserts that you can write on or type on and then insert into the page (this is their product # 52564 if you are interested in seeing yourself). The inserts are on a perforated sheet 7″ wide by 10″ tall and there are 10 inserts per sheet, only 1 insert wide. I figured I could create a custom label template as follows and use that: When I start a new document using this label template, on screen it looks exactly like the insert sheets: The problem is that I would like to center the text vertically on each “label” before centering it horizontally. Unfortunately, every attempt I have made has been unsuccessful. All text is started at the very top of each insert/”label”. I’ve tried typing out my text and then using Layout>Page Setup>Layout>Page Alignment to center the text, but it simply shifts everything down and prevents the use of the bottom/10th insert: Are my settings correct for the “label” template?Is there a way to set the label template as vertically centered versus top alignment?Should I be looking elsewhere to vertically center any text I type in?Any other advice on how to solve this problem?Greatly appreciated in advance. Read More
Sent folder doesn’t appear in folder list
Using classic Outlook, sometimes, but rarely, a sent folder appears in my folder list. Most often, I see Inbox and a few others below it, like drafts. Save in sent folder is selected.
Using classic Outlook, sometimes, but rarely, a sent folder appears in my folder list. Most often, I see Inbox and a few others below it, like drafts. Save in sent folder is selected. Read More
I have 10 trucks that needs a components replacement for every cummaltive 60000km.
I have 10 trucks that needs a components replacement for every cummaltive 60000km. I have my trucks in column A. Amd cumulative kms by month in the rest of the columns. The trucks needs a components replacement at every cummaltive 60000km. So it becomes 120000kms for the the service and 180000kms for one after that.I want to use a formulae to highlight in which month would we need a component replacement based on every 60000kms but it’s cummaltive requiment of 60000kms . What formulaes/conditional formatting or other formulae can I use in my cummalive monthly information per truck to flag or highlight the month that we reach the cummaltive 60000kms requirements?
I have 10 trucks that needs a components replacement for every cummaltive 60000km. I have my trucks in column A. Amd cumulative kms by month in the rest of the columns. The trucks needs a components replacement at every cummaltive 60000km. So it becomes 120000kms for the the service and 180000kms for one after that.I want to use a formulae to highlight in which month would we need a component replacement based on every 60000kms but it’s cummaltive requiment of 60000kms . What formulaes/conditional formatting or other formulae can I use in my cummalive monthly information per truck to flag or highlight the month that we reach the cummaltive 60000kms requirements? Read More
I have a formula for calculate age from birthday date
I have a formula for calculating age from birthday date.
=DATEDIF(B2,TODAY(),”Y”)
I do not have all birthday dates It put 124. I want it empty. How I do that
Thanks You.
I have a formula for calculating age from birthday date. =DATEDIF(B2,TODAY(),”Y”)I do not have all birthday dates It put 124. I want it empty. How I do that Thanks You. Read More
Matlab code does not run past a certain point: i.e. buffers at a certain line of code
So I’m trying to solve a problem (attached below) and I’ve written the code (below) to solve it. When I go to run the code it gets stuck at the following line:
% Solve the ODEs numerically
%[t, y] = ode45(odeFunc, [t0, 1.66*3600], [r0; v0], options);
It fully ran once, but continues to not run.
This is the problem:
Code:
G = 6.6742e-11; % universal gravitational constant (km^3/kg/s^2)
M = 5.974e24; % Earth mass estimate (kg)
R = 6378; % planet radius (km)
r0 = [3207 5459 2714]; % initial position vector (km)
v0 = [-6.532 0.7835 6.142]; % initial velocity vector (km/s)
t0 = 0; % initial time in seconds
% Define the ODEs
odeFunc = @(t, y) [y(4); y(5); y(6); -G*M*y(1)/(norm(y(1:3))^3); -G*M*y(2)/(norm(y(1:3))^3); -G*M*y(3)/(norm(y(1:3))^3)];
% Set options for ode45 solver
options = odeset(‘RelTol’, 1e-6, ‘AbsTol’, 1e-6);
% Solve the ODEs numerically
[t, y] = ode45(odeFunc, [t0, 1.66*3600], [r0; v0], options);
% Calculate altitude above Earth’s surface
altitudes = sqrt(sum(y(:, 1:3).^2, 2)) – R;
% Find the maximum altitude and the time at which it occurs
[maxAltitude, maxAltitudeIndex] = max(altitudes);
timeOfMaxAltitude = t(maxAltitudeIndex);
% Display the results
fprintf(‘Maximum Altitude: %.2f kmn’, maxAltitude);
fprintf(‘Time of Maximum Altitude: %.2f hoursn’, timeOfMaxAltitude / 3600);So I’m trying to solve a problem (attached below) and I’ve written the code (below) to solve it. When I go to run the code it gets stuck at the following line:
% Solve the ODEs numerically
%[t, y] = ode45(odeFunc, [t0, 1.66*3600], [r0; v0], options);
It fully ran once, but continues to not run.
This is the problem:
Code:
G = 6.6742e-11; % universal gravitational constant (km^3/kg/s^2)
M = 5.974e24; % Earth mass estimate (kg)
R = 6378; % planet radius (km)
r0 = [3207 5459 2714]; % initial position vector (km)
v0 = [-6.532 0.7835 6.142]; % initial velocity vector (km/s)
t0 = 0; % initial time in seconds
% Define the ODEs
odeFunc = @(t, y) [y(4); y(5); y(6); -G*M*y(1)/(norm(y(1:3))^3); -G*M*y(2)/(norm(y(1:3))^3); -G*M*y(3)/(norm(y(1:3))^3)];
% Set options for ode45 solver
options = odeset(‘RelTol’, 1e-6, ‘AbsTol’, 1e-6);
% Solve the ODEs numerically
[t, y] = ode45(odeFunc, [t0, 1.66*3600], [r0; v0], options);
% Calculate altitude above Earth’s surface
altitudes = sqrt(sum(y(:, 1:3).^2, 2)) – R;
% Find the maximum altitude and the time at which it occurs
[maxAltitude, maxAltitudeIndex] = max(altitudes);
timeOfMaxAltitude = t(maxAltitudeIndex);
% Display the results
fprintf(‘Maximum Altitude: %.2f kmn’, maxAltitude);
fprintf(‘Time of Maximum Altitude: %.2f hoursn’, timeOfMaxAltitude / 3600); So I’m trying to solve a problem (attached below) and I’ve written the code (below) to solve it. When I go to run the code it gets stuck at the following line:
% Solve the ODEs numerically
%[t, y] = ode45(odeFunc, [t0, 1.66*3600], [r0; v0], options);
It fully ran once, but continues to not run.
This is the problem:
Code:
G = 6.6742e-11; % universal gravitational constant (km^3/kg/s^2)
M = 5.974e24; % Earth mass estimate (kg)
R = 6378; % planet radius (km)
r0 = [3207 5459 2714]; % initial position vector (km)
v0 = [-6.532 0.7835 6.142]; % initial velocity vector (km/s)
t0 = 0; % initial time in seconds
% Define the ODEs
odeFunc = @(t, y) [y(4); y(5); y(6); -G*M*y(1)/(norm(y(1:3))^3); -G*M*y(2)/(norm(y(1:3))^3); -G*M*y(3)/(norm(y(1:3))^3)];
% Set options for ode45 solver
options = odeset(‘RelTol’, 1e-6, ‘AbsTol’, 1e-6);
% Solve the ODEs numerically
[t, y] = ode45(odeFunc, [t0, 1.66*3600], [r0; v0], options);
% Calculate altitude above Earth’s surface
altitudes = sqrt(sum(y(:, 1:3).^2, 2)) – R;
% Find the maximum altitude and the time at which it occurs
[maxAltitude, maxAltitudeIndex] = max(altitudes);
timeOfMaxAltitude = t(maxAltitudeIndex);
% Display the results
fprintf(‘Maximum Altitude: %.2f kmn’, maxAltitude);
fprintf(‘Time of Maximum Altitude: %.2f hoursn’, timeOfMaxAltitude / 3600); ode45 MATLAB Answers — New Questions