Month: June 2024
Why doesn’t my Bing.com have the ‘Work’ option?
I’ve logged into my enterprise account, but the ‘Work’ option is missing. Could it be related to my Bing settings in Microsoft M365?
I’ve logged into my enterprise account, but the ‘Work’ option is missing. Could it be related to my Bing settings in Microsoft M365? Read More
Centralized and consolidated view of metrics
Hi,
how can I setup a consolidated view of the key scores of each individual admin center? E.g. 365 health, Compliance, Secure score, Vulnerability, etc…
Thanks
Hi,how can I setup a consolidated view of the key scores of each individual admin center? E.g. 365 health, Compliance, Secure score, Vulnerability, etc… Thanks Read More
Use Freecash Referral Code [CNBCL]: And Get $250 Sign up Bonus
Use the latest Freecash referral code [CNBCL] to get up to $250 sign up bonus.
Here’s what you have to do to use a Freecash referral code:
Use the following code to sign-up for [CNBCL]After you sign-up you’ll receive a free case that can contain bonuses (if you’re very lucky, up to $250, but chances are it’ll be under $10).You can also do some quizzes or install some games to earn $1 within 48 hours – if you do that, you’ll receive 3 more free cases.If you want, you can add the referral code after you sign-up, just copy and paste this referral code: [CNBCL]
Use the latest Freecash referral code [CNBCL] to get up to $250 sign up bonus.Here’s what you have to do to use a Freecash referral code:Use the following code to sign-up for [CNBCL]After you sign-up you’ll receive a free case that can contain bonuses (if you’re very lucky, up to $250, but chances are it’ll be under $10).You can also do some quizzes or install some games to earn $1 within 48 hours – if you do that, you’ll receive 3 more free cases.If you want, you can add the referral code after you sign-up, just copy and paste this referral code: [CNBCL] Read More
Use PNG Format Instead of JPEG for Screenshots
When I try to capture an image using the browser’s internal “screenshot” function, I find that the resulting image is in JPEG format. Both “Capture area” and “Capture full page”. This format is blurry, which is fine for photos, but for screenshots, the loss of image quality is fatal. I would have preferred to use the PNG format. At least in the Canary version, this little nuisance exists.
When I try to capture an image using the browser’s internal “screenshot” function, I find that the resulting image is in JPEG format. Both “Capture area” and “Capture full page”. This format is blurry, which is fine for photos, but for screenshots, the loss of image quality is fatal. I would have preferred to use the PNG format. At least in the Canary version, this little nuisance exists. Read More
Microsoft Copilot Exams
Please what is the code to write Microsoft Copilot exam? or is it just a training course?
Please what is the code to write Microsoft Copilot exam? or is it just a training course? Read More
Use TopCashback Referral Code {KRISTINESTUART}: And Get $35 Sign up Bonus + $35 Referral Bonus
Get a $35 Sign up bonus when you open a TopCashback account with my exclusive referral code {KRISTINESTUART} and earn at least $10 in cash back. The bonus will be deposited into your account once you earn a total of $10 in cash back from any eligible store on TopCashback. And also you will get $35 Referral bonus when you refer to your friends and Family members.
Get a $35 Sign up bonus when you open a TopCashback account with my exclusive referral code {KRISTINESTUART} and earn at least $10 in cash back. The bonus will be deposited into your account once you earn a total of $10 in cash back from any eligible store on TopCashback. And also you will get $35 Referral bonus when you refer to your friends and Family members. Read More
¿Por que me aparece el error de Incorrect number or types of inputs or outputs for function applyBoundaryCondition en mi codigo?
% Definir las dimensiones del bloque en metros
L = 0.12; % largo en metros
H = 0.01; % altura en metros
% Crear el modelo PDE
model = createpde(‘thermal’, ‘transient’);
% Definir la geometría del rectángulo usando decsg
R1 = [3, 4, 0, L, L, 0, 0, 0, H, H]’;
gd = R1;
ns = char(‘R1’);
ns = ns’;
sf = ‘R1’;
[dl, bt] = decsg(gd, sf, ns);
% Crear la geometría del modelo
geometryFromEdges(model, dl);
% Especificar las propiedades físicas del material
conductividad = 0.3; % conductividad térmica en W/(m·K)
densidad = 1060; % densidad en kg/m³
calor_especifico = 2500; % calor específico en J/(kg·K)
thermalProperties(model, ‘ThermalConductivity’, conductividad, …
‘MassDensity’, densidad, …
‘SpecificHeat’, calor_especifico);
% Definir las condiciones iniciales
temperatura_inicial = 25; % temperatura inicial en °C
thermalIC(model, temperatura_inicial);
pdegplot(model,"EdgeLabels","on")
% Definir las condiciones de frontera (todas las caras a 140°C)
h = 10; % coeficiente de convección en W/(m^2·K)
Tamb = 25; % temperatura ambiente en °C
applyBoundaryCondition(model, ‘mixed’, ‘Edge’, edges, ‘ConvectiveCoefficient’, h, ‘AmbientTemperature’, Tamb);
% Generar la malla
generateMesh(model);
% Definir el rango de tiempo de simulación
tiempo_final = 60; % tiempo final en segundos
n_pasos = 50; % número de pasos de tiempo
tlist = linspace(0, tiempo_final, n_pasos);
% Resolver el problema de transferencia de calor
resultado = solve(model, tlist);
% Extraer la temperatura en cada nodo de la malla para el tiempo final
temperatura_final = resultado.Temperature(:, end);
% Graficar la distribución de temperatura en el tiempo final
figure;
pdeplot(model, ‘XYData’, temperatura_final, ‘Contour’, ‘on’);
title(‘Distribución de temperatura en el tiempo final’);
xlabel(‘x (m)’);
ylabel(‘y (m)’);
colorbar;% Definir las dimensiones del bloque en metros
L = 0.12; % largo en metros
H = 0.01; % altura en metros
% Crear el modelo PDE
model = createpde(‘thermal’, ‘transient’);
% Definir la geometría del rectángulo usando decsg
R1 = [3, 4, 0, L, L, 0, 0, 0, H, H]’;
gd = R1;
ns = char(‘R1’);
ns = ns’;
sf = ‘R1’;
[dl, bt] = decsg(gd, sf, ns);
% Crear la geometría del modelo
geometryFromEdges(model, dl);
% Especificar las propiedades físicas del material
conductividad = 0.3; % conductividad térmica en W/(m·K)
densidad = 1060; % densidad en kg/m³
calor_especifico = 2500; % calor específico en J/(kg·K)
thermalProperties(model, ‘ThermalConductivity’, conductividad, …
‘MassDensity’, densidad, …
‘SpecificHeat’, calor_especifico);
% Definir las condiciones iniciales
temperatura_inicial = 25; % temperatura inicial en °C
thermalIC(model, temperatura_inicial);
pdegplot(model,"EdgeLabels","on")
% Definir las condiciones de frontera (todas las caras a 140°C)
h = 10; % coeficiente de convección en W/(m^2·K)
Tamb = 25; % temperatura ambiente en °C
applyBoundaryCondition(model, ‘mixed’, ‘Edge’, edges, ‘ConvectiveCoefficient’, h, ‘AmbientTemperature’, Tamb);
% Generar la malla
generateMesh(model);
% Definir el rango de tiempo de simulación
tiempo_final = 60; % tiempo final en segundos
n_pasos = 50; % número de pasos de tiempo
tlist = linspace(0, tiempo_final, n_pasos);
% Resolver el problema de transferencia de calor
resultado = solve(model, tlist);
% Extraer la temperatura en cada nodo de la malla para el tiempo final
temperatura_final = resultado.Temperature(:, end);
% Graficar la distribución de temperatura en el tiempo final
figure;
pdeplot(model, ‘XYData’, temperatura_final, ‘Contour’, ‘on’);
title(‘Distribución de temperatura en el tiempo final’);
xlabel(‘x (m)’);
ylabel(‘y (m)’);
colorbar; % Definir las dimensiones del bloque en metros
L = 0.12; % largo en metros
H = 0.01; % altura en metros
% Crear el modelo PDE
model = createpde(‘thermal’, ‘transient’);
% Definir la geometría del rectángulo usando decsg
R1 = [3, 4, 0, L, L, 0, 0, 0, H, H]’;
gd = R1;
ns = char(‘R1’);
ns = ns’;
sf = ‘R1’;
[dl, bt] = decsg(gd, sf, ns);
% Crear la geometría del modelo
geometryFromEdges(model, dl);
% Especificar las propiedades físicas del material
conductividad = 0.3; % conductividad térmica en W/(m·K)
densidad = 1060; % densidad en kg/m³
calor_especifico = 2500; % calor específico en J/(kg·K)
thermalProperties(model, ‘ThermalConductivity’, conductividad, …
‘MassDensity’, densidad, …
‘SpecificHeat’, calor_especifico);
% Definir las condiciones iniciales
temperatura_inicial = 25; % temperatura inicial en °C
thermalIC(model, temperatura_inicial);
pdegplot(model,"EdgeLabels","on")
% Definir las condiciones de frontera (todas las caras a 140°C)
h = 10; % coeficiente de convección en W/(m^2·K)
Tamb = 25; % temperatura ambiente en °C
applyBoundaryCondition(model, ‘mixed’, ‘Edge’, edges, ‘ConvectiveCoefficient’, h, ‘AmbientTemperature’, Tamb);
% Generar la malla
generateMesh(model);
% Definir el rango de tiempo de simulación
tiempo_final = 60; % tiempo final en segundos
n_pasos = 50; % número de pasos de tiempo
tlist = linspace(0, tiempo_final, n_pasos);
% Resolver el problema de transferencia de calor
resultado = solve(model, tlist);
% Extraer la temperatura en cada nodo de la malla para el tiempo final
temperatura_final = resultado.Temperature(:, end);
% Graficar la distribución de temperatura en el tiempo final
figure;
pdeplot(model, ‘XYData’, temperatura_final, ‘Contour’, ‘on’);
title(‘Distribución de temperatura en el tiempo final’);
xlabel(‘x (m)’);
ylabel(‘y (m)’);
colorbar; applyboundarycondition. MATLAB Answers — New Questions
windstream email failed login
several months ago Microsoft edge did an update which disabled the email login to windstream. all others computers are ok and login. all other browsers on the affected computer login and are ok. the computer has been checked and passed for virus’ and other problems. Repair option for edge has been run. all other email accounts work ok on affected computer in edge. ONLY this computer with Only microsft edge and only with windstream email login is affected. windstrea, says not there problem because other browsers and other devices all wok so is microsoft problem. When trying to login it gets stuck on the page I pasted screen shot here.
several months ago Microsoft edge did an update which disabled the email login to windstream. all others computers are ok and login. all other browsers on the affected computer login and are ok. the computer has been checked and passed for virus’ and other problems. Repair option for edge has been run. all other email accounts work ok on affected computer in edge. ONLY this computer with Only microsft edge and only with windstream email login is affected. windstrea, says not there problem because other browsers and other devices all wok so is microsoft problem. When trying to login it gets stuck on the page I pasted screen shot here. Read More
Army Azure VD
Hi,
I’ve downloaded the WindowsRemote Desktop client for Windows multiple times and I keep having the same issue. It’ll download, but when I try to open it, it won’t. I’ve tried opening it from the downloads on Chrome and the downloads from the file. I end up having to turn my laptop off completely to get my laptop to start working normally again.
Any assistance would be great,
Haley
Hi, I’ve downloaded the WindowsRemote Desktop client for Windows multiple times and I keep having the same issue. It’ll download, but when I try to open it, it won’t. I’ve tried opening it from the downloads on Chrome and the downloads from the file. I end up having to turn my laptop off completely to get my laptop to start working normally again. Any assistance would be great,Haley Read More
Considerations when replicating VMs to new Azure subscriptions?
I’ve got a couple domain-joined (not Entra/AAD joined) virtual machines in Azure in a subscription that I want to copy over to another subscription. I only want to copy these VMs over so I can test some patches on them. However, the original VMs will still be online and in use.
I’ve seen others bring up AAD/Entra as a possible issue. Is there anything else I need to be worried about before replicating these VMs?
I’ve got a couple domain-joined (not Entra/AAD joined) virtual machines in Azure in a subscription that I want to copy over to another subscription. I only want to copy these VMs over so I can test some patches on them. However, the original VMs will still be online and in use. I’ve seen others bring up AAD/Entra as a possible issue. Is there anything else I need to be worried about before replicating these VMs? Read More
Wasted space in email list
I’m not sure if this is correct forum for feature requests.
Anyhow, would be nice if available space was utilized.
I’m not sure if this is correct forum for feature requests.Anyhow, would be nice if available space was utilized. Read More
Automatic reminder based on date from response of Forms
Hello, is there anyone who can help me? I use Forms to register to event (Pub Quiz) and I am able to sent automatic email by PoweAutoamte with confirmation “Your registration was successful” but I have no idea how to sent reminder two days prior the event. I created a list from excel but I can not synchro it and can not get any new response in it. What is the best/easiest way how to proceed? Many thanks!!!!
Hello, is there anyone who can help me? I use Forms to register to event (Pub Quiz) and I am able to sent automatic email by PoweAutoamte with confirmation “Your registration was successful” but I have no idea how to sent reminder two days prior the event. I created a list from excel but I can not synchro it and can not get any new response in it. What is the best/easiest way how to proceed? Many thanks!!!! Read More
Create indexer – Can anyone help me please?
Hi everyone,
I’m trying to Create a Custom Skill for Azure AI Search, following the Labs below.
When I try to creat an indexer with “./create–search” command on PowerShell of Visual Studio Code, the error is returned (I’m using C#);
{“error”:{“code”:””,”message”:”This indexer refers to a skillset ‘margies-custom-skillset’ that doesn’t exist”}}
Why does this happen? Where is the skillset ‘margies-custom-skillset’ stored?? Is there any hint to get this though? Access Keys (service, admin, storge) are correctly entered.
Hi everyone, I’m trying to Create a Custom Skill for Azure AI Search, following the Labs below. https://github.com/MicrosoftLearning/mslearn-knowledge-mining/blob/main/Instructions/Labs/01-azure-search.md When I try to creat an indexer with “./create-search” command on PowerShell of Visual Studio Code, the error is returned (I’m using C#); {“error”:{“code”:””,”message”:”This indexer refers to a skillset ‘margies-custom-skillset’ that doesn’t exist”}} Why does this happen? Where is the skillset ‘margies-custom-skillset’ stored?? Is there any hint to get this though? Access Keys (service, admin, storge) are correctly entered. Read More
Error training Yolo V4 object detector
Hi,
I am running the scripts in Gazebo Simulation of Semi-Structured Intelligent Bin Picking for UR5e Using YOLO and PCA-Based Object Detection example and everthing works well. However, when I try to train the detector by using the trainYoloV4ForSimCuboidObject.mlx live script, I get this error:
Intermediate dot ‘.’ indexing produced a comma-separated list with 0 values, but it must produce a single value when followed by subsequent indexing operations.
Error in deep.internal.sdk.forwardDataAttributes>iForwardExampleInputsLayerGraph (line 250)
plY{i} = layerAnalyzer.Outputs.Meta{1};
Error in deep.internal.sdk.forwardDataAttributes (line 69)
[sizes, formats] = iForwardExampleInputsLayerGraph(net, opts.Outputs, X{:});
Error in yolov4ObjectDetector>iConfigureDetector (line 1884)
[orderedNetworkActivationSizes, ~] = deep.internal.sdk.forwardDataAttributes(lgraph,’Outputs’,orderedDetectionNetworkSource);
Error in yolov4ObjectDetector/parseDetectorInputs (line 1161)
[lgraph, params.DetectionNetworkSource] = iConfigureDetector(lgraph,numClasses,params.AnchorBoxes,params.DetectionNetworkSource,params.PredictedBoxType);
Error in yolov4ObjectDetector (line 286)
params = yolov4ObjectDetector.parseDetectorInputs(varargin{:});
I didn’t change anything and I provided the recommended donwnloaded dataset folders. So, what could be the cause of this error?Hi,
I am running the scripts in Gazebo Simulation of Semi-Structured Intelligent Bin Picking for UR5e Using YOLO and PCA-Based Object Detection example and everthing works well. However, when I try to train the detector by using the trainYoloV4ForSimCuboidObject.mlx live script, I get this error:
Intermediate dot ‘.’ indexing produced a comma-separated list with 0 values, but it must produce a single value when followed by subsequent indexing operations.
Error in deep.internal.sdk.forwardDataAttributes>iForwardExampleInputsLayerGraph (line 250)
plY{i} = layerAnalyzer.Outputs.Meta{1};
Error in deep.internal.sdk.forwardDataAttributes (line 69)
[sizes, formats] = iForwardExampleInputsLayerGraph(net, opts.Outputs, X{:});
Error in yolov4ObjectDetector>iConfigureDetector (line 1884)
[orderedNetworkActivationSizes, ~] = deep.internal.sdk.forwardDataAttributes(lgraph,’Outputs’,orderedDetectionNetworkSource);
Error in yolov4ObjectDetector/parseDetectorInputs (line 1161)
[lgraph, params.DetectionNetworkSource] = iConfigureDetector(lgraph,numClasses,params.AnchorBoxes,params.DetectionNetworkSource,params.PredictedBoxType);
Error in yolov4ObjectDetector (line 286)
params = yolov4ObjectDetector.parseDetectorInputs(varargin{:});
I didn’t change anything and I provided the recommended donwnloaded dataset folders. So, what could be the cause of this error? Hi,
I am running the scripts in Gazebo Simulation of Semi-Structured Intelligent Bin Picking for UR5e Using YOLO and PCA-Based Object Detection example and everthing works well. However, when I try to train the detector by using the trainYoloV4ForSimCuboidObject.mlx live script, I get this error:
Intermediate dot ‘.’ indexing produced a comma-separated list with 0 values, but it must produce a single value when followed by subsequent indexing operations.
Error in deep.internal.sdk.forwardDataAttributes>iForwardExampleInputsLayerGraph (line 250)
plY{i} = layerAnalyzer.Outputs.Meta{1};
Error in deep.internal.sdk.forwardDataAttributes (line 69)
[sizes, formats] = iForwardExampleInputsLayerGraph(net, opts.Outputs, X{:});
Error in yolov4ObjectDetector>iConfigureDetector (line 1884)
[orderedNetworkActivationSizes, ~] = deep.internal.sdk.forwardDataAttributes(lgraph,’Outputs’,orderedDetectionNetworkSource);
Error in yolov4ObjectDetector/parseDetectorInputs (line 1161)
[lgraph, params.DetectionNetworkSource] = iConfigureDetector(lgraph,numClasses,params.AnchorBoxes,params.DetectionNetworkSource,params.PredictedBoxType);
Error in yolov4ObjectDetector (line 286)
params = yolov4ObjectDetector.parseDetectorInputs(varargin{:});
I didn’t change anything and I provided the recommended donwnloaded dataset folders. So, what could be the cause of this error? training, computer vision, yolo v4 MATLAB Answers — New Questions
How do I calculate the duration between two times?
Hi,
I have two different data sets that each contain times in the format ‘HH:mm:ss’.
results_start_array (see attached) contains a list of general start times in the first column (each representing the general start time of a participant). Each time indicates when a participant started their task.
results_start_end (see attached) is a cell array of cells, with 12 tables in each cell. Each table has two times. Each of these tables represents a sub-task. In each table, the first row is a start time and the second row is a end time of each respective sub-task.
My goal is to calcualate all the different durations between (for each participant):
start time of sub-task 1 – general start time
end time of sub-task 1 – general start time
start time of sub-task 2 – general start time
end time of sub-task 2 – general start time
start time of sub-task 3 – general start time
end time of sub-task 3 – general start time
etc. …
I tried this out by calculating only the start time of sub-task 1 – general start time using this code:
% Extract the start time from results_start_array
start_time = results_start_array(1);
% Extract the end time from the first row in the first table in the first cell of results_start_end
end_time_str = results_start_end{1}{1, ‘Time’};
% Convert the end time string to datetime object
end_time = datetime(end_time_str{1}, ‘InputFormat’, ‘HH:mm:ss’);
% Convert the start time to datetime object assuming it is in the same day
start_time_dt = datetime(start_time, ‘ConvertFrom’, ‘duration’, ‘Format’, ‘HH:mm:ss’);
% Calculate the duration between the two times
time_duration = end_time – start_time_dt;
% Display the duration
disp(time_duration);
Which didnt seem to work. What am I doing wrong and how can I fix this?
ThxHi,
I have two different data sets that each contain times in the format ‘HH:mm:ss’.
results_start_array (see attached) contains a list of general start times in the first column (each representing the general start time of a participant). Each time indicates when a participant started their task.
results_start_end (see attached) is a cell array of cells, with 12 tables in each cell. Each table has two times. Each of these tables represents a sub-task. In each table, the first row is a start time and the second row is a end time of each respective sub-task.
My goal is to calcualate all the different durations between (for each participant):
start time of sub-task 1 – general start time
end time of sub-task 1 – general start time
start time of sub-task 2 – general start time
end time of sub-task 2 – general start time
start time of sub-task 3 – general start time
end time of sub-task 3 – general start time
etc. …
I tried this out by calculating only the start time of sub-task 1 – general start time using this code:
% Extract the start time from results_start_array
start_time = results_start_array(1);
% Extract the end time from the first row in the first table in the first cell of results_start_end
end_time_str = results_start_end{1}{1, ‘Time’};
% Convert the end time string to datetime object
end_time = datetime(end_time_str{1}, ‘InputFormat’, ‘HH:mm:ss’);
% Convert the start time to datetime object assuming it is in the same day
start_time_dt = datetime(start_time, ‘ConvertFrom’, ‘duration’, ‘Format’, ‘HH:mm:ss’);
% Calculate the duration between the two times
time_duration = end_time – start_time_dt;
% Display the duration
disp(time_duration);
Which didnt seem to work. What am I doing wrong and how can I fix this?
Thx Hi,
I have two different data sets that each contain times in the format ‘HH:mm:ss’.
results_start_array (see attached) contains a list of general start times in the first column (each representing the general start time of a participant). Each time indicates when a participant started their task.
results_start_end (see attached) is a cell array of cells, with 12 tables in each cell. Each table has two times. Each of these tables represents a sub-task. In each table, the first row is a start time and the second row is a end time of each respective sub-task.
My goal is to calcualate all the different durations between (for each participant):
start time of sub-task 1 – general start time
end time of sub-task 1 – general start time
start time of sub-task 2 – general start time
end time of sub-task 2 – general start time
start time of sub-task 3 – general start time
end time of sub-task 3 – general start time
etc. …
I tried this out by calculating only the start time of sub-task 1 – general start time using this code:
% Extract the start time from results_start_array
start_time = results_start_array(1);
% Extract the end time from the first row in the first table in the first cell of results_start_end
end_time_str = results_start_end{1}{1, ‘Time’};
% Convert the end time string to datetime object
end_time = datetime(end_time_str{1}, ‘InputFormat’, ‘HH:mm:ss’);
% Convert the start time to datetime object assuming it is in the same day
start_time_dt = datetime(start_time, ‘ConvertFrom’, ‘duration’, ‘Format’, ‘HH:mm:ss’);
% Calculate the duration between the two times
time_duration = end_time – start_time_dt;
% Display the duration
disp(time_duration);
Which didnt seem to work. What am I doing wrong and how can I fix this?
Thx time, duration, subtract, duration array, error, calculate duration MATLAB Answers — New Questions
IN VLOOKUP ISSUE
In Vlookup issue.
Serial No. Serial No.
D-155846437-6-1 D-155846437-6-1
Both are the same but the lookup is not working properly.
Could you please guide me to solve this issue?
In Vlookup issue.Serial No. Serial No. D-155846437-6-1 D-155846437-6-1 Both are the same but the lookup is not working properly. Could you please guide me to solve this issue? Read More
Unable to Access Docker Container Services on WSL2 from Localhost but Accessible via Public IP
Hello!
I have an Ubuntu distro running on WSL2 with Mirrored Networking enabled, so the virtual machine and the host share IP and adapter. Inside the distro, I have Docker installed with several services running, listening on different ports. I can correctly access the services running directly on the virtual machine (e.g., SSH on port 22) using localhost:22.
My problem is that I cannot access the Docker container services from the host using the local IP (127.0.0.1, localhost, 192.168.0.9). The strange thing is that I can access them through my public IP over the Internet.
Diagram:
Windows 11 Host (Public IP: 10.20.30.40. Private IP: 192.168.0.9)
|
|__WSL2 Ubuntu (Public IP: 10.20.30.40. Private IP: 192.168.0.9)
|
|__SSH Server (Accessible from 10.20.30.40:22 and localhost:22)
|
|__Docker
|
|__Service 1 (Only accessible from 10.20.30.40:80)
|__Service 2 (Only accessible from 10.20.30.40:443)
I have already done several tests, reinstalling various different distros and consulting the documentation, but I couldn’t find the solution. Thank you very much.
Here is my .wslconfig config:
[wsl2]
kernelCommandLine=ipv6.disable=1
[experimental]
networkingMode=mirrored
hostAddressLoopback=True
Hello!I have an Ubuntu distro running on WSL2 with Mirrored Networking enabled, so the virtual machine and the host share IP and adapter. Inside the distro, I have Docker installed with several services running, listening on different ports. I can correctly access the services running directly on the virtual machine (e.g., SSH on port 22) using localhost:22.My problem is that I cannot access the Docker container services from the host using the local IP (127.0.0.1, localhost, 192.168.0.9). The strange thing is that I can access them through my public IP over the Internet.Diagram:Windows 11 Host (Public IP: 10.20.30.40. Private IP: 192.168.0.9)
|
|__WSL2 Ubuntu (Public IP: 10.20.30.40. Private IP: 192.168.0.9)
|
|__SSH Server (Accessible from 10.20.30.40:22 and localhost:22)
|
|__Docker
|
|__Service 1 (Only accessible from 10.20.30.40:80)
|__Service 2 (Only accessible from 10.20.30.40:443)I have already done several tests, reinstalling various different distros and consulting the documentation, but I couldn’t find the solution. Thank you very much.Here is my .wslconfig config:[wsl2]
kernelCommandLine=ipv6.disable=1
[experimental]
networkingMode=mirrored
hostAddressLoopback=True
Read More
The combine(S) and horner(p) functions did not work as expected?
Code:
syms C_F C_L C_GS g_m R_L omega positive
s = i*omega;
Y_in=(1-(s*C_F-g_m)/(1/R_L+s*C_F+s*C_L))*s*C_F+s*C_GS
Re = real(Y_in)
[N,D] = numden(simplify(Re))
D-1
combine(D-1)
horner(D-1)
D
combine(D)
horner(D)
Behavior:Code:
syms C_F C_L C_GS g_m R_L omega positive
s = i*omega;
Y_in=(1-(s*C_F-g_m)/(1/R_L+s*C_F+s*C_L))*s*C_F+s*C_GS
Re = real(Y_in)
[N,D] = numden(simplify(Re))
D-1
combine(D-1)
horner(D-1)
D
combine(D)
horner(D)
Behavior: Code:
syms C_F C_L C_GS g_m R_L omega positive
s = i*omega;
Y_in=(1-(s*C_F-g_m)/(1/R_L+s*C_F+s*C_L))*s*C_F+s*C_GS
Re = real(Y_in)
[N,D] = numden(simplify(Re))
D-1
combine(D-1)
horner(D-1)
D
combine(D)
horner(D)
Behavior: symbolic MATLAB Answers — New Questions
How to compute diffraction integral using fast Fourier transform (fft2) ?
Hi there !
The following code computes Fresnel diffraction integral using fft2. It works for (obj.E = ones(Ny, Nx);) and performs the fft2 analysis, but when the input is (obj.E = zeroes(Ny, Nx);), it plots nothing. I checked the same code on python with zeros and it worked but in MATLAB it is not performing fft2 for zeros (gives only zero values). Kindly help me resolve this issue.
The Sheet.m (code):
classdef Sheet
properties
dx
dy
x
y
xx
yy
Nx
Ny
E
end
methods
function obj = Sheet(extent_x, extent_y, Nx, Ny)
obj.dx = extent_x / Nx;
obj.dy = extent_y / Ny;
obj.x = obj.dx * ((0:Nx-1) – floor(Nx/2));
obj.y = obj.dy * ((0:Ny-1) – floor(Ny/2));
[obj.xx, obj.yy] = meshgrid(obj.x, obj.y);
obj.Nx = Nx;
obj.Ny = Ny;
obj.E = zeros(Ny, Nx);
end
function rectangular_slit(obj, x0, y0, lx, ly)
% Creates a slit centered at the point (x0, y0) with width lx and height ly
mask = ((obj.xx > (x0 – lx/2)) & (obj.xx < (x0 + lx/2))) & ((obj.yy > (y0 – ly/2)) & (obj.yy < (y0 + ly/2)));
obj.E = obj.E + mask;
end
end
end
The main code :
% Simulation input
Lx = 1.4;
Ly = 0.4;
Nx = 2500;
Ny = 1500;
sheet = Sheet(2*Lx, 2*Ly, Nx, Ny);
% Slit separation
mm = 1e-3;
D = 128 * mm;
sheet.rectangular_slit(-D/2, 0, 22 * mm, 88 * mm);
sheet.rectangular_slit(D/2, 0, 22 * mm, 88 * mm);
% Distance from slit to the screen (mm)
z = 5000;
% Wavelength (mm)
lambda = 18.5*1e-7;
k = 2*pi / lambda;
% Initialize complex array for phase information
fft_c = fft2(sheet.E .* exp(1i * k/(2*z) * (sheet.xx.^2 + sheet.yy.^2)));
c = fftshift(fft_c);
% Plot with MATLAB
abs_c = abs(c);
% Screen size (mm)
dx_screen = z*lambda/(2*Lx);
dy_screen = z*lambda/(2*Ly);
x_screen = dx_screen * ((1:Nx) – Nx/2);
y_screen = dy_screen * ((1:Ny) – Ny/2);
figure;
subplot(2, 1, 1);
imagesc(x_screen([1 end]), y_screen([1 end]), abs_c);
colormap(gray);
axis equal;
xlabel(‘x (mm)’);
ylabel(‘y (mm)’);
title(‘Probability Density |psi|^2’);
xlim([-2, 2]);
ylim([-1, 1]);
subplot(2, 1, 2);
plot(x_screen, abs(c(Ny/2, :)).^2, ‘LineWidth’, 1);
xlabel(‘x (mm)’);
ylabel(‘Probability Density |psi|^2’);
title(‘Probability Density |psi|^2 along y=0’);
xlim([-2, 2]);Hi there !
The following code computes Fresnel diffraction integral using fft2. It works for (obj.E = ones(Ny, Nx);) and performs the fft2 analysis, but when the input is (obj.E = zeroes(Ny, Nx);), it plots nothing. I checked the same code on python with zeros and it worked but in MATLAB it is not performing fft2 for zeros (gives only zero values). Kindly help me resolve this issue.
The Sheet.m (code):
classdef Sheet
properties
dx
dy
x
y
xx
yy
Nx
Ny
E
end
methods
function obj = Sheet(extent_x, extent_y, Nx, Ny)
obj.dx = extent_x / Nx;
obj.dy = extent_y / Ny;
obj.x = obj.dx * ((0:Nx-1) – floor(Nx/2));
obj.y = obj.dy * ((0:Ny-1) – floor(Ny/2));
[obj.xx, obj.yy] = meshgrid(obj.x, obj.y);
obj.Nx = Nx;
obj.Ny = Ny;
obj.E = zeros(Ny, Nx);
end
function rectangular_slit(obj, x0, y0, lx, ly)
% Creates a slit centered at the point (x0, y0) with width lx and height ly
mask = ((obj.xx > (x0 – lx/2)) & (obj.xx < (x0 + lx/2))) & ((obj.yy > (y0 – ly/2)) & (obj.yy < (y0 + ly/2)));
obj.E = obj.E + mask;
end
end
end
The main code :
% Simulation input
Lx = 1.4;
Ly = 0.4;
Nx = 2500;
Ny = 1500;
sheet = Sheet(2*Lx, 2*Ly, Nx, Ny);
% Slit separation
mm = 1e-3;
D = 128 * mm;
sheet.rectangular_slit(-D/2, 0, 22 * mm, 88 * mm);
sheet.rectangular_slit(D/2, 0, 22 * mm, 88 * mm);
% Distance from slit to the screen (mm)
z = 5000;
% Wavelength (mm)
lambda = 18.5*1e-7;
k = 2*pi / lambda;
% Initialize complex array for phase information
fft_c = fft2(sheet.E .* exp(1i * k/(2*z) * (sheet.xx.^2 + sheet.yy.^2)));
c = fftshift(fft_c);
% Plot with MATLAB
abs_c = abs(c);
% Screen size (mm)
dx_screen = z*lambda/(2*Lx);
dy_screen = z*lambda/(2*Ly);
x_screen = dx_screen * ((1:Nx) – Nx/2);
y_screen = dy_screen * ((1:Ny) – Ny/2);
figure;
subplot(2, 1, 1);
imagesc(x_screen([1 end]), y_screen([1 end]), abs_c);
colormap(gray);
axis equal;
xlabel(‘x (mm)’);
ylabel(‘y (mm)’);
title(‘Probability Density |psi|^2’);
xlim([-2, 2]);
ylim([-1, 1]);
subplot(2, 1, 2);
plot(x_screen, abs(c(Ny/2, :)).^2, ‘LineWidth’, 1);
xlabel(‘x (mm)’);
ylabel(‘Probability Density |psi|^2’);
title(‘Probability Density |psi|^2 along y=0’);
xlim([-2, 2]); Hi there !
The following code computes Fresnel diffraction integral using fft2. It works for (obj.E = ones(Ny, Nx);) and performs the fft2 analysis, but when the input is (obj.E = zeroes(Ny, Nx);), it plots nothing. I checked the same code on python with zeros and it worked but in MATLAB it is not performing fft2 for zeros (gives only zero values). Kindly help me resolve this issue.
The Sheet.m (code):
classdef Sheet
properties
dx
dy
x
y
xx
yy
Nx
Ny
E
end
methods
function obj = Sheet(extent_x, extent_y, Nx, Ny)
obj.dx = extent_x / Nx;
obj.dy = extent_y / Ny;
obj.x = obj.dx * ((0:Nx-1) – floor(Nx/2));
obj.y = obj.dy * ((0:Ny-1) – floor(Ny/2));
[obj.xx, obj.yy] = meshgrid(obj.x, obj.y);
obj.Nx = Nx;
obj.Ny = Ny;
obj.E = zeros(Ny, Nx);
end
function rectangular_slit(obj, x0, y0, lx, ly)
% Creates a slit centered at the point (x0, y0) with width lx and height ly
mask = ((obj.xx > (x0 – lx/2)) & (obj.xx < (x0 + lx/2))) & ((obj.yy > (y0 – ly/2)) & (obj.yy < (y0 + ly/2)));
obj.E = obj.E + mask;
end
end
end
The main code :
% Simulation input
Lx = 1.4;
Ly = 0.4;
Nx = 2500;
Ny = 1500;
sheet = Sheet(2*Lx, 2*Ly, Nx, Ny);
% Slit separation
mm = 1e-3;
D = 128 * mm;
sheet.rectangular_slit(-D/2, 0, 22 * mm, 88 * mm);
sheet.rectangular_slit(D/2, 0, 22 * mm, 88 * mm);
% Distance from slit to the screen (mm)
z = 5000;
% Wavelength (mm)
lambda = 18.5*1e-7;
k = 2*pi / lambda;
% Initialize complex array for phase information
fft_c = fft2(sheet.E .* exp(1i * k/(2*z) * (sheet.xx.^2 + sheet.yy.^2)));
c = fftshift(fft_c);
% Plot with MATLAB
abs_c = abs(c);
% Screen size (mm)
dx_screen = z*lambda/(2*Lx);
dy_screen = z*lambda/(2*Ly);
x_screen = dx_screen * ((1:Nx) – Nx/2);
y_screen = dy_screen * ((1:Ny) – Ny/2);
figure;
subplot(2, 1, 1);
imagesc(x_screen([1 end]), y_screen([1 end]), abs_c);
colormap(gray);
axis equal;
xlabel(‘x (mm)’);
ylabel(‘y (mm)’);
title(‘Probability Density |psi|^2’);
xlim([-2, 2]);
ylim([-1, 1]);
subplot(2, 1, 2);
plot(x_screen, abs(c(Ny/2, :)).^2, ‘LineWidth’, 1);
xlabel(‘x (mm)’);
ylabel(‘Probability Density |psi|^2’);
title(‘Probability Density |psi|^2 along y=0’);
xlim([-2, 2]); diffraction, fft2, fresnel, numerical integration, plot MATLAB Answers — New Questions
Copilot for M365 shortcut
Is there a shortcut to activate Copilot in the office applications (Word, Excel, etc)?
I know we can do Alt + H + FX, but is there a simpler one?
Is there a shortcut to activate Copilot in the office applications (Word, Excel, etc)?I know we can do Alt + H + FX, but is there a simpler one? Read More