transform / resampling does not work

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
t1c = "/home/florian/flow/BrainLesion/preprocessing/example/example_data/OtherEXampleFromTCIA/MRHR_T1_AX_POST_GAD_OtherEXampleTCIA_TCGA-FG-6692_Si_TCGA-FG-6692_MRHR_T1_AX_POST_GAD_SE_13_se2d1r_t1c.nii.gz"

fla = "/home/florian/flow/BrainLesion/preprocessing/example/example_data/OtherEXampleFromTCIA/MRHR_FLAIR_AX_OtherEXampleTCIA_TCGA-FG-6692_Si_TCGA-FG-6692_MRHR_FLAIR_AX_SE_IR_5_tir2d1_21_fla.nii.gz"

from ereg.registration import RegistrationClass

registration_obj = (
    RegistrationClass()
)  # the configuration file to use to customize the registration, and is optional
registration_obj.register(
    target_image=t1c,  # the target image, which can be either a file or SimpleITK.Image object
    moving_image=fla,  # the moving image, which can be either a file or SimpleITK.Image object
    output_image="/home/florian/flow/BrainLesion/preprocessing/ereg_tests/warped.nii.gz",  # the output image to save the registered image to
    transform_file="/home/florian/flow/BrainLesion/preprocessing/ereg_tests/transform.mat",  # the transform file to save the transform to; if already present, will use this transform instead of computing a new one
    log_file="/home/florian/flow/BrainLesion/preprocessing/ereg_tests/reg.log",  # the log file to write to
)

registration_obj.resample_image(
    target_image=t1c,  # the target image, which can be either a file or SimpleITK.Image object
    moving_image=fla,  # the moving image, which can be either a file or SimpleITK.Image object
    output_image="/home/florian/flow/BrainLesion/preprocessing/ereg_tests/warped_transform.nii.gz",  # the output image to save the registered image to
    transform_file="/home/florian/flow/BrainLesion/preprocessing/ereg_tests/transform.mat",
    log_file="/home/florian/flow/BrainLesion/preprocessing/ereg_tests/trans.log",
)

Expected behavior
A log file and a transformation file should be created. An error msg should appear if this fails.
Environment
Python 3.10
operating system and version?
e.g. Ubuntu 23.10 LTS
Ubuntu 20
Python environment and version?
e.g. Conda environment with Python 3.10. Check your Python version with:
python --version

Why is the transform an optional input for the resample_image method?
We also need a unit test, that also tests this resampling.

Can you check 5a4f5d3?

Sorry, I cannot follow?

Hmm, here is what I am getting using (very similar) code:
from pprint import pprint

base_output = "C:/Users/sarth/Downloads/ereg_test/"
pprint(f"Current files in {base_output}: {os.listdir(base_output)}")
fla = os.path.join(base_output, "fla.nii.gz")
t1c = os.path.join(base_output, "t1c.nii.gz")
output_image_file_0 = os.path.join(base_output, "fla_registered_0.nii.gz")
output_image_file_1 = os.path.join(base_output, "fla_registered_1.nii.gz")
output_transform_file = os.path.join(base_output, "fla_transform.mat")
log_file = os.path.join(base_output, "fla_registration.log")

registration_obj = RegistrationClass()
registration_obj.register(
    target_image=t1c,  # the target image, which can be either a file or SimpleITK.Image object
    moving_image=fla,  # the moving image, which can be either a file or SimpleITK.Image object
    output_image=output_image_file_0,  # the output image to save the registered image to
    transform_file=output_transform_file,  # the transform file to save the transform to; if already present, will use this transform instead of computing a new one
    log_file=log_file,  # the log file to write to
)
registration_obj.resample_image(
    target_image=t1c,  # the target image, which can be either a file or SimpleITK.Image object
    moving_image=fla,  # the moving image, which can be either a file or SimpleITK.Image object
    output_image=output_image_file_1,  # the output image to save the registered image to
    transform_file=output_transform_file,  # the transform file to save the transform to; if already present, will use this transform instead of computing a new one
    log_file=log_file,
)
pprint(f"Current files in {base_output}: {os.listdir(base_output)}")

Output:
("Current files in C:/Users/sarth/Downloads/ereg_test/: ['fla.nii.gz', "
 "'t1c.nii.gz']")
("Current files in C:/Users/sarth/Downloads/ereg_test/: ['fla.nii.gz', "
 "'fla_registered_0.nii.gz', 'fla_registered_1.nii.gz', "
 "'fla_registration.log', 'fla_transform.mat', 't1c.nii.gz']")

Log file: fla_registration.log

Can you try submitting another log file for the resampling?
resampling_log_file = os.path.join(base_output, "fla_transformation.log")

Can you try submitting another log file for the resampling? resampling_log_file = os.path.join(base_output, "fla_transformation.log")

That seems to have done it! log_file_1 in the example below was not generated:
from pprint import pprint
from ereg import RegistrationClass

base_output = "C:/Users/sarth/Downloads/ereg_test/"
pprint(f"Current files in {base_output}: {os.listdir(base_output)}")
fla = os.path.join(base_output, "fla.nii.gz")
t1c = os.path.join(base_output, "t1c.nii.gz")
output_image_file_0 = os.path.join(base_output, "fla_registered_0.nii.gz")
output_image_file_1 = os.path.join(base_output, "fla_registered_1.nii.gz")
output_transform_file = os.path.join(base_output, "fla_transform.mat")
log_file_0 = os.path.join(base_output, "fla_registration_0.log")
log_file_1 = os.path.join(base_output, "fla_registration_1.log")

registration_obj = RegistrationClass()
registration_obj.register(
    target_image=t1c,  # the target image, which can be either a file or SimpleITK.Image object
    moving_image=fla,  # the moving image, which can be either a file or SimpleITK.Image object
    output_image=output_image_file_0,  # the output image to save the registered image to
    transform_file=output_transform_file,  # the transform file to save the transform to; if already present, will use this transform instead of computing a new one
    log_file=log_file_0,  # the log file to write to
)
registration_obj.resample_image(
    target_image=t1c,  # the target image, which can be either a file or SimpleITK.Image object
    moving_image=fla,  # the moving image, which can be either a file or SimpleITK.Image object
    output_image=output_image_file_1,  # the output image to save the registered image to
    transform_file=output_transform_file,  # the transform file to save the transform to; if already present, will use this transform instead of computing a new one
    log_file=log_file_1,
)
pprint(f"Current files in {base_output}: {os.listdir(base_output)}")

("Current files in C:/Users/sarth/Downloads/ereg_test/: ['fla.nii.gz', "
 "'t1c.nii.gz']")
("Current files in C:/Users/sarth/Downloads/ereg_test/: ['fla.nii.gz', "
 "'fla_registered_0.nii.gz', 'fla_registered_1.nii.gz', "
 "'fla_registration_0.log', 'fla_transform.mat', 't1c.nii.gz']")

I tested, still no log is created.

Okay, in that case I don't know how else to proceed since I am unable to reproduce the error. Can you or someone else who is able to reproduce the issue try to debug this?

Do you test on a Windows machine? your paths seem to suggest that.
I believe one way would be to construct a unit test testing warp and log file creation, similar to this. Once this test is passed, hopefully it will work.
A primitive test could just check for existence of these files:
Inspiration:
https://github.com/BrainLesion/preprocessing/pull/49/files#diff-caa1336a0c8d1b31e5d432977cd054bf8792b3d44cebfd4b70324fe0c62703aa

Do you test on a Windows machine? your paths seem to suggest that.

Yes.

I believe one way would be to construct a unit test testing warp and log file creation, similar to this. Once this test is passed, hopefully it will work.

A few points:

Since this issue is related to the logging library, I am unsure what would I do even if I manage to put together a test that passed. The test would fail on GitHub's Actions, but I would have no way to debug what's going on.
Have you tried running the example code I put in this comment [ref]? If so, are you able to generate fla_registered_1.nii.gz? If so, then I think we can close this issue out and create a different one related to non-creation of logging. In any case, the logging problem can be (partially) circumvented by pushing all messages to the console.

Do you test on a Windows machine? your paths seem to suggest that.

Yes.

I believe one way would be to construct a unit test testing warp and log file creation, similar to this. Once this test is passed, hopefully it will work.

A few points:

Since this issue is related to the logging library, I am unsure what would I do even if I manage to put together a test that passed. The test would fail on GitHub's Actions, but I would have no way to debug what's going on.
Have you tried running the example code I put in this comment [ref]? If so, are you able to generate fla_registered_1.nii.gz? If so, then I think we can close this issue out and create a different one related to non-creation of logging. In any case, the logging problem can be (partially) circumvented by pushing all messages to the console.

With https://github.com/BrainLesion/eReg/pull/62/commits/017cb6c8e45ac8450beb2cf6634a61aea4f0aa78, I am getting this output with the code I sent:
("Current files in C:/Users/sarth/Downloads/ereg_test/: ['fla.nii.gz', "
 "'t1c.nii.gz']")
Target image: C:/Users/sarth/Downloads/ereg_test/t1c.nii.gz, Moving image: C:/Users/sarth/Downloads/ereg_test/fla.nii.gz
Starting registration with parameters:: {'bias': False, 'metric_parameters': {'type': 'mean_squares', 'histogram_bins': 50, 'radius': 5, 'intensityDifferenceThreshold': 0.001, 'varianceForJointPDFSmoothing': 1.5}, 'optimizer_parameters': {'type': 'regular_step_gradient_descent', 'min_step': '1e-4', 'max_step': 1.0, 'iterations': 200, 'relaxation': 0.1, 'learningrate': 1.0, 'tolerance': '1e-6', 'convergence_minimum': '1e-6', 'convergence_window_size': 10, 'line_search_lower_limit': 0.0, 'line_search_upper_limit': 5.0, 'line_search_epsilon': 0.01, 'step_length': 0.1, 'simplex_delta': 0.1, 'maximum_number_of_corrections': 5, 'maximum_number_of_function_evaluations': 2000, 'solution_accuracy': '1e-5', 'hessian_approximate_accuracy': '1e-5', 'delta_convergence_distance': '1e-5', 'delta_convergence_tolerance': '1e-5', 'line_search_maximum_evaluations': 50, 'line_search_minimum_step': '1e-20', 'line_search_accuracy': '1e-4', 'epsilon': '1e-8', 'initial_radius': 1.0, 'growth_factor': -1.0, 'shrink_factor': -1.0, 'maximum_line_iterations': 100, 'step_tolerance': '1e-6', 'value_tolerance': '1e-6'}, 'transform': 'versorrigid', 'composite_transform': False, 'previous_transforms': [], 'initialization': 'geometry', 'interpolator': 'linear', 'sampling_strategy': 'random', 'sampling_percentage': 0.01, 'shrink_factors': [4, 2, 1], 'smoothing_sigmas': [2, 1, 0], 'attempts': 5}
Initializing registration.
Starting registration.
Final Optimizer Parameters:: convergence=0.0, iterations=30, metric=28450.710036942543, stop condition=RegularStepGradientDescentOptimizerv4: Step too small after 29 iterations. Current step (3.99601e-05) is less than minimum step (0.0001).

SSIM score of moving against target image: 0.6702636855503058
Target image: C:/Users/sarth/Downloads/ereg_test/t1c.nii.gz, Moving image: C:/Users/sarth/Downloads/ereg_test/fla.nii.gz, Transform file: C:/Users/sarth/Downloads/ereg_test/fla_transform.mat
Resampling image.
SSIM score of moving against target image: 0.6702636855503058
("Current files in C:/Users/sarth/Downloads/ereg_test/: ['fla.nii.gz', "
 "'fla_registered_0.log', 'fla_registered_0.nii.gz', "
 "'fla_registered_1.nii.gz', 'fla_registration_0.log', "
 "'fla_registration_1.log', 'fla_transform.mat', 't1c.nii.gz']")

The log and console both get output.

I tried with this script:
t1c = "/home/florian/flow/BrainLesion/preprocessing/example/example_data/OtherEXampleFromTCIA/MRHR_T1_AX_POST_GAD_OtherEXampleTCIA_TCGA-FG-6692_Si_TCGA-FG-6692_MRHR_T1_AX_POST_GAD_SE_13_se2d1r_t1c.nii.gz"

fla = "/home/florian/flow/BrainLesion/preprocessing/example/example_data/OtherEXampleFromTCIA/MRHR_FLAIR_AX_OtherEXampleTCIA_TCGA-FG-6692_Si_TCGA-FG-6692_MRHR_FLAIR_AX_SE_IR_5_tir2d1_21_fla.nii.gz"

from ereg.registration import RegistrationClass

registration_obj = (
    RegistrationClass()
)  # the configuration file to use to customize the registration, and is optional
registration_obj.register(
    target_image=t1c,  # the target image, which can be either a file or SimpleITK.Image object
    moving_image=fla,  # the moving image, which can be either a file or SimpleITK.Image object
    output_image="/home/florian/flow/eReg/ereg_tests/warped.nii.gz",  # the output image to save the registered image to
    transform_file="/home/florian/flow/eReg/ereg_tests/transform.mat",  # the transform file to save the transform to; if already present, will use this transform instead of computing a new one
    log_file="/home/florian/flow/eReg/ereg_tests/reg.log",  # the log file to write to
)

registration_obj.resample_image(
    target_image=t1c,  # the target image, which can be either a file or SimpleITK.Image object
    moving_image=fla,  # the moving image, which can be either a file or SimpleITK.Image object
    output_image="/home/florian/flow/eReg/ereg_tests/warped_transform.nii.gz",  # the output image to save the registered image to
    transform_file="/home/florian/flow/eReg/ereg_tests/transform.mat",
    log_file="/home/florian/flow/eReg/ereg_tests/trans.log",
)

This now generates three log files:
as specified:

reg.log
trans.log

Additionally:

warped.log

Should the register method expect two log file inputs? One for the registration one for the resampling?

Should the register method expect two log file inputs? One for the registration one for the resampling part?

Nope, all logging related to a task should go to a single file.

warped.log

This should not get generated if reg.log was given as an input for log_file. Weird...

indeed weird :)

Unable to replicate this. Code:
from pprint import pprint
from ereg import RegistrationClass

base_output = "C:/Users/sarth/Downloads/ereg_test/"
pprint(f"Current files in {base_output}: {os.listdir(base_output)}")
fla = os.path.join(base_output, "fla.nii.gz")
t1c = os.path.join(base_output, "t1c.nii.gz")
output_image_file_0 = os.path.join(base_output, "fla_registered.nii.gz")
output_image_file_1 = os.path.join(base_output, "fla_resampled.nii.gz")
output_transform_file = os.path.join(base_output, "fla_transform.mat")
log_file_0 = os.path.join(base_output, "registration.log")
log_file_1 = os.path.join(base_output, "resampling.log")

pprint("=== Starting registration ===")
pprint(f"Current files in {base_output}: {os.listdir(base_output)}")
registration_obj = RegistrationClass()
registration_obj.register(
    target_image=t1c,  # the target image, which can be either a file or SimpleITK.Image object
    moving_image=fla,  # the moving image, which can be either a file or SimpleITK.Image object
    output_image=output_image_file_0,  # the output image to save the registered image to
    transform_file=output_transform_file,  # the transform file to save the transform to; if already present, will use this transform instead of computing a new one
    log_file=log_file_0,  # the log file to write to
)
pprint("=== Starting resampling ===")
registration_obj.resample_image(
    target_image=t1c,  # the target image, which can be either a file or SimpleITK.Image object
    moving_image=fla,  # the moving image, which can be either a file or SimpleITK.Image object
    output_image=output_image_file_1,  # the output image to save the registered image to
    transform_file=output_transform_file,  # the transform file to save the transform to; if already present, will use this transform instead of computing a new one
    log_file=log_file_1,
)
pprint(f"Current files in {base_output}: {os.listdir(base_output)}")

Console output:
("Current files in C:/Users/sarth/Downloads/ereg_test/: ['fla.nii.gz', "
 "'t1c.nii.gz']")
'=== Starting registration ==='
("Current files in C:/Users/sarth/Downloads/ereg_test/: ['fla.nii.gz', "
 "'t1c.nii.gz']")
Target image: C:/Users/sarth/Downloads/ereg_test/t1c.nii.gz, Moving image: C:/Users/sarth/Downloads/ereg_test/fla.nii.gz
Starting registration with parameters:: {'bias': False, 'metric_parameters': {'type': 'mean_squares', 'histogram_bins': 50, 'radius': 5, 'intensityDifferenceThreshold': 0.001, 'varianceForJointPDFSmoothing': 1.5}, 'optimizer_parameters': {'type': 'regular_step_gradient_descent', 'min_step': '1e-4', 'max_step': 1.0, 'iterations': 200, 'relaxation': 0.1, 'learningrate': 1.0, 'tolerance': '1e-6', 'convergence_minimum': '1e-6', 'convergence_window_size': 10, 'line_search_lower_limit': 0.0, 'line_search_upper_limit': 5.0, 'line_search_epsilon': 0.01, 'step_length': 0.1, 'simplex_delta': 0.1, 'maximum_number_of_corrections': 5, 'maximum_number_of_function_evaluations': 2000, 'solution_accuracy': '1e-5', 'hessian_approximate_accuracy': '1e-5', 'delta_convergence_distance': '1e-5', 'delta_convergence_tolerance': '1e-5', 'line_search_maximum_evaluations': 50, 'line_search_minimum_step': '1e-20', 'line_search_accuracy': '1e-4', 'epsilon': '1e-8', 'initial_radius': 1.0, 'growth_factor': -1.0, 'shrink_factor': -1.0, 'maximum_line_iterations': 100, 'step_tolerance': '1e-6', 'value_tolerance': '1e-6'}, 'transform': 'versorrigid', 'composite_transform': False, 'previous_transforms': [], 'initialization': 'geometry', 'interpolator': 'linear', 'sampling_strategy': 'random', 'sampling_percentage': 0.01, 'shrink_factors': [4, 2, 1], 'smoothing_sigmas': [2, 1, 0], 'attempts': 5}
Initializing registration.
Starting registration.
Final Optimizer Parameters:: convergence=0.0, iterations=141, metric=29311.701283887756, stop condition=RegularStepGradientDescentOptimizerv4: Step too small after 140 iterations. Current step (5.89053e-05) is less than minimum step (0.0001).

SSIM score of moving against target image: 0.6632827569421897
'=== Starting resampling ==='
Target image: C:/Users/sarth/Downloads/ereg_test/t1c.nii.gz, Moving image: C:/Users/sarth/Downloads/ereg_test/fla.nii.gz, Transform file: C:/Users/sarth/Downloads/ereg_test/fla_transform.mat
Resampling image.
SSIM score of moving against target image: 0.6632827569421897
("Current files in C:/Users/sarth/Downloads/ereg_test/: ['fla.nii.gz', "
 "'fla_registered.log', 'fla_registered.nii.gz', 'fla_resampled.nii.gz', "
 "'fla_transform.mat', 'registration.log', 'resampling.log', 't1c.nii.gz']")

Contents of log files:
registration.log
08:45:39,registration,INFO,Target image: C:/Users/sarth/Downloads/ereg_test/t1c.nii.gz, Moving image: C:/Users/sarth/Downloads/ereg_test/fla.nii.gz
08:45:39,registration,INFO,Starting registration with parameters:: {'bias': False, 'metric_parameters': {'type': 'mean_squares', 'histogram_bins': 50, 'radius': 5, 'intensityDifferenceThreshold': 0.001, 'varianceForJointPDFSmoothing': 1.5}, 'optimizer_parameters': {'type': 'regular_step_gradient_descent', 'min_step': '1e-4', 'max_step': 1.0, 'iterations': 200, 'relaxation': 0.1, 'learningrate': 1.0, 'tolerance': '1e-6', 'convergence_minimum': '1e-6', 'convergence_window_size': 10, 'line_search_lower_limit': 0.0, 'line_search_upper_limit': 5.0, 'line_search_epsilon': 0.01, 'step_length': 0.1, 'simplex_delta': 0.1, 'maximum_number_of_corrections': 5, 'maximum_number_of_function_evaluations': 2000, 'solution_accuracy': '1e-5', 'hessian_approximate_accuracy': '1e-5', 'delta_convergence_distance': '1e-5', 'delta_convergence_tolerance': '1e-5', 'line_search_maximum_evaluations': 50, 'line_search_minimum_step': '1e-20', 'line_search_accuracy': '1e-4', 'epsilon': '1e-8', 'initial_radius': 1.0, 'growth_factor': -1.0, 'shrink_factor': -1.0, 'maximum_line_iterations': 100, 'step_tolerance': '1e-6', 'value_tolerance': '1e-6'}, 'transform': 'versorrigid', 'composite_transform': False, 'previous_transforms': [], 'initialization': 'geometry', 'interpolator': 'linear', 'sampling_strategy': 'random', 'sampling_percentage': 0.01, 'shrink_factors': [4, 2, 1], 'smoothing_sigmas': [2, 1, 0], 'attempts': 5}
08:45:39,registration,INFO,Initializing registration.
08:45:39,registration,INFO,Starting registration.
08:45:41,registration,INFO,Final Optimizer Parameters:: convergence=0.0, iterations=141, metric=29311.701283887756, stop condition=RegularStepGradientDescentOptimizerv4: Step too small after 140 iterations. Current step (5.89053e-05) is less than minimum step (0.0001).

resampling.log
08:45:41,resample,INFO,Target image: C:/Users/sarth/Downloads/ereg_test/t1c.nii.gz, Moving image: C:/Users/sarth/Downloads/ereg_test/fla.nii.gz, Transform file: C:/Users/sarth/Downloads/ereg_test/fla_transform.mat
08:45:41,resample,INFO,Resampling image.
08:45:42,resample,INFO,SSIM score of moving against target image: 0.6632827569421897

Since this is now pretty much a wild goose chase, can we PLEASE get the associated PR for this merged and open up a separate issue for the log files?


Updated preview command to display new documentation.

Looks good, only correct small issues. We have to add rubocop to apiary-client too as in redsnow.

@freaz Please always provide link to trello card
@abtris @freaz Has this been released and therefore can be communicated?

https://rubygems.org/gems/apiaryio is on 0.3.0, equals to the latest release here https://github.com/apiaryio/apiary-client/releases/tag/0.3.0
already communicated here https://github.com/apiaryio/apiary-client/issues/39


Put up new ODB graphics on page

These have been uploaded, and I have linked the images in the code on the main page.


Add support for JavaScript with JSX

Hello, I have a problem to run code with script package. Here is an error: Command not configured for JavaScript with JSX! Please help!

Duplicate of #630


Why does main() train the same model twice?

Hello.
"model.train()" is not the call for training the model. It's to get some functions in the model ready for training (but one of "model.train()" is not necessary there). The actual training takes place at https://github.com/NoelShin/selfmask/blob/master/main.py#L103


Wildcard filetype

I have a lazy formatter that uses prettierd if prettier is present in package.json. Is it possible to run this lazy formatter on all filetypes?

Hi @adlrwbr, now you can :-)
I added the fallback_formatter config that is used whenever a formatter can't be found for the current filetype.
Does it solve the problem?

This is great. Thank you so much!

For anyone who stumbles on this in the future, here's how I'm using it for projects with prettier:
config = function()
	local format_on_save = require("format-on-save")
	local formatters = require("format-on-save.formatters")

	-- Check if the buffer file is in a project using prettier
	local function should_use_prettier()
		-- Search for a package.json file in the current dir or its parents
		local package_json = vim.fn.findfile("package.json", ".;")
		if not package_json then
			return nil
		end
		-- Is prettier installed in package.json?
		local file = io.open(package_json, "r")
		if not file then
			return nil
		end
		local content = file:read("*a")
		file:close()
		return string.match(content, "prettier") ~= nil
	end

	-- A custom lazy formatter that tries to use prettier when applicable
	local prettier_or_lsp = function()
		if should_use_prettier() then
			-- vim.notify("Formatting with Prettier")
			return formatters.prettierd
		else
			-- vim.notify("Formatting with LSP")
			return formatters.lsp()
		end
	end

	format_on_save.setup({
		exclude_path_patterns = {
			"/node_modules/",
			".local/share/nvim/lazy",
		},
		-- fallback formatter to use when no formatters match the current filetype
		fallback_formatter = prettier_or_lsp
	})
end,
},


Bug fixes, refactoring, and BME bullying

I think we all felt the pain of the BME test, but a few more important things first. I have found and patched the following vulnerabilities in the code:

Syntax error in skynet_purge (probably not noticed because I haven't seen that command run in a long time)
An owner of one server can lock praxis in all servers (I don't think you want Derek to lock praxis in your MI server)
Praxis bullying in one server may start or stop praxis bullying in other servers

Out of resentment for the BME test, I added a BME bullying feature that is similar to the praxis feature, but also finds and display the Prof's RateMyProf rating alongside the regular statement. (I personally do not have a RateMyProf account nor has posted any ratings)

Thank you so much for screwing me and my team over on the quiz. I really appreciate it. As a gift, you get to have your comment satisfied.
I removed fuck_bme. Now you can test and merge. Thank you again!


remove empty aliases

As per https://github.com/pydantic/pydantic/issues/4253 (change in https://github.com/pydantic/pydantic/pull/4252) an empty alias '' is now treated differently from None - e.g. no alias.
Therefore for starlite to be be compatible with pydantic v1.10, we need to remove these empty alias values.
This should be backwards compatible with earlier versions of pydantic since until v.10 an empty alias was treated as identical to ''.

@all-contributors add @samuelcolvin code


Reworked writeBytes method

Removed undisposed listener causing a memory leak. Fixed exception.
Closes #51 #58

Sir, Is it possible to make it work on android 10 & 12 ?


Alternatives to SMILES

How can I start an inference using a pdb for the protien, and  a 'mol2' or 'sdf' file for the ligand?

You can use the read_molecule function from EquiBind to read the .sdf/mol2 file.
Then use from rdkit import Chem; Chem.MolToSmiles(mol)  to convert the mol object to its SMILES.
Hope this can help you~


enable PGD masks for non-classification tasks

Signed-off-by: Mathieu Sinn<EMAIL_ADDRESS>Description
Disabled error that was thrown when providing masks to PGD attacks for non-classification estimators.
Type of change
Please check all relevant options.

[x] Improvement (non-breaking)
[ ] Bug fix (non-breaking)
[ ] New feature (non-breaking)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Testing
Please describe the tests that you ran to verify your changes. Consider listing any relevant details of your test configuration.

[x] Local tests

Test Configuration:

MacOS
Python version 3.7
ART version or commit number 1.4.1
TensorFlow / Keras / PyTorch / MXNet version

Checklist

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

Codecov Report

Merging #682 into dev_1.4.2 will decrease coverage by 2.91%.
The diff coverage is 0.00%.

@@              Coverage Diff              @@
##           dev_1.4.2     #682      +/-   ##
=============================================
- Coverage      58.86%   55.94%   -2.92%
=============================================
  Files            155      155
  Lines          14231    14229       -2
  Branches        2562     2561       -1
=============================================
- Hits            8377     7961     -416
- Misses          5047     5487     +440
+ Partials         807      781      -26

Impacted Files
Coverage Δ

...adient_descent/projected_gradient_descent_numpy.py
73.33% <0.00%> (+1.59%)
:arrow_up:

...s/extraction/functionally_equivalent_extraction.py
14.02% <0.00%> (-76.83%)
:arrow_down:

...escent/projected_gradient_descent_tensorflow_v2.py
17.92% <0.00%> (-76.42%)
:arrow_down:

.../adversarial_patch/adversarial_patch_tensorflow.py
15.28% <0.00%> (-63.70%)
:arrow_down:

art/estimators/classification/tensorflow.py
33.25% <0.00%> (-17.09%)
:arrow_down:

art/attacks/evasion/deepfool.py
77.41% <0.00%> (-9.68%)
:arrow_down:

art/estimators/tensorflow.py
29.11% <0.00%> (-8.87%)
:arrow_down:

art/data_generators.py
69.56% <0.00%> (-5.22%)
:arrow_down:

...ted_gradient_descent/projected_gradient_descent.py
63.07% <0.00%> (-3.08%)
:arrow_down:

...cks/evasion/adversarial_patch/adversarial_patch.py
40.00% <0.00%> (-3.08%)
:arrow_down:

... and 3 more

Hi @beat-buesser  you're right, we should do that - I've pushed that change.


Call to a member function populateDirectChildrenOnly() on null

I don't have much information about how and why this error happens. But the following code clearly states that it should happen when $parent is null or $treeNodeParentID is null.
https://github.com/concrete5/concrete5/blob/53e3cffbb9e894e3167c7d9dc3322f466b51628d/concrete/src/Page/Controller/DashboardExpressEntriesPageController.php#L57-L80

This has been refactored in version 9.


chore, perf: arrow cat namespace

What type of PR is this? (check all applicable)

[ ] 💾 Refactor
[ ] ✨ Feature
[ ] 🐛 Bug Fix
[x] 🔧 Optimization
[ ] 📝 Documentation
[ ] ✅ Test
[x] 🐳 Other

Related issues

Closes #464 , via implementation in comment

Checklist

[x] Code follows style guide (ruff)
[ ] Tests added
[ ] Documented the changes

If you have comments or can explain your changes, please do so below

Unrelated CI failure


Fix FSA parsing numbers incorrectly in json

Resolves #367

To avoid another surprise in the future, could we add another unit test that runs make bench in local-test-repo and check that the parser succeeds on the output? :) (it could be a more complex test that checks that the identified substrings parse correctly with Yojson, and are accepted by Current_bench_json)

Do we have a way to call make from inside ocaml? Otherwise the only thing that I can do is copy the json from the Makefile to a unit test

Yes there is Unix.open_process_in to run arbitrary shell commands (and grab their output... and perhaps Unix.chdir would also be useful here). I kind of like the idea that the unit tests are kept in sync with the local-test-repo rather than a static file, such that we don't forget to update them :)

Thanks!


Refactor initial refresh queueing for VMware Refresh Worker

Don't rely on the broker to queue the initial refresh for EMSs when it starts up.

https://github.com/ManageIQ/manageiq-providers-vmware/pull/41


Add: USearch vector search engine

USearch is the vector search engine by Unum.cloud!
@ashvardanian has recently added UForm, and we will add UStore soon to complete our vector database integration.

@VoVoR great!!! please sign your commit, like: git commit --amend -s. And you need add some test case for the new vector store

And please keep a commit in the commit. When you fix something wrong, please use git add . && git commit --amend && git push origin -f

@VoVoR great!!! please sign your commit, like: git commit --amend -s. And you need add some test case for the new vector store

Done
Thanks for the help!


Fd leak in longhorn-engine

I found fd leak in longhorn engine. It's happening because RPC server is not being closed gracefully if replica or controller get disconnected to each other.
Here is the script that i used to identify fd leak:
set -x
REPLICA_IP1="<IP_ADDRESS>"
REPLICA_IP2="<IP_ADDRESS>"
CONTROLLER_IP="<IP_ADDRESS>"

docker network create --subnet=<IP_ADDRESS>/16 longhorn-net

start_replica() {
        replica_id=$(sudo docker run -d --net longhorn-net --ip $1 -v /volume rancher/longhorn-engine launch replica --listen "$1:9502" --size 10g /volume)
        echo "$replica_id"
}

start_controller() {
        controller_id=$(sudo docker run -it -d --net longhorn-net --privileged -v /dev:/host/dev -v /proc:/host/proc rancher/longhorn-engine launch controller --frontend tgt --replica tcp://"$REPLICA_IP1:9502" --replica tcp://"$REPLICA_IP2:9502" vol1)
        echo "$controller_id"
}

print_fd_count() {
        fdcount1=$(sudo ls /proc/$replica1_pid/fdinfo/ | wc -l)
        fdcount2=$(sudo ls /proc/$replica1_pid/fdinfo/ | wc -l)
        echo "fdcount on replica 1 is $fdcount1 and fdcount on replica 2 is $fdcount2"
}

verify_fd_leak() {
        id1=$(start_replica "$REPLICA_IP1")
        id2=$(start_replica "$REPLICA_IP2")
        replica1_pid=$(sudo docker inspect "$id1" --format '{{.State.Pid}}')
        replica2_pid=$(sudo docker inspect "$id2" --format '{{.State.Pid}}')
        i=0
        while [ "$i" != 20 ]
        do
                controller_id=$(start_controller)
                sleep 5
                sudo docker stop $controller_id
                sudo rm -rf /dev/longhorn
                sudo iscsiadm --mode node -u
                sleep 2
                let i=i+1
                print_fd_count
        done
        sudo docker rm -f $(sudo docker ps -aq)
}

verify_fd_leak

Realized there is a better way to observe the FD leak:

Start engine build process
docker exec -it into the build container
After integration test started, use watch "ls /proc/$pid/fd |wc -l" to watch the fd changes for controller and 6 replicas.

It works because, in the integration test, we repeatedly use the same controller and replicas for testing, so if there is a FD leak, it should be easy observed with integration test running.
And the FD check can be incorporated in integration test as well.

Have fixes for this, but it won't make v0.4.0. Move to v0.5.0.

Let's recheck after the refactor is done.


override intellisense is extremely slow

Issue Description
When getting intellisense for methods/properties to override in a class, it can be extremely slow for large projects, and really kills productivity.
Intellisense when typing base. is extremely fast, so it makes me think it can go a lot faster in this case.
Steps to Reproduce

In a class, type "override " and start typing a method or property to override

Expected Behavior
It should come up quickly.
Actual Behavior
It takes forever for my project in a large solution.  Even pressing ctrl+space to force it to show intellisense takes a long time:

Logs
OmniSharp log

Received response for /v2/blockstructure but could not find request.
Received response for /v2/blockstructure but could not find request.
Received response for /v2/getcodeactions but could not find request.
Received response for /completion but could not find request.

 The next version of OmniSharp will have an experimental async mode, but keep in mind that the completion we're doing there is a race condition waiting to happen and you may experience unexpected results. Until we get a proper async completion api, there's not much we can do.


Week 2 Crossover Review

Leave Comments Below Please :)

Movies and movie subpages.   Technical pages that tell how it is done.
Hosting AWS for short term.  Not clear about purpose of Pi.
MIT license.   They allow someone else to take it over.
Wireframe show main page, learn more, movie quiz, ranking of movies.   All pages would have a learn more.
Question on Sort.  Suggesting sorting by director.
Question on using a Database.   Comment system.  Each movie had comments or reviews.
Suggest more information on each page and details.   Seems real basic so far.   Also, show mock up of Movie versus learning example(s).

Movie genre idea with user input reviews

Importing reviews from other websites (IMDB, Rotten Tomatoes)

Promising ideas of using an API and database to have a comment/review section

Might want to show a little progression with the project, such as frontend HTML page
Colin asked a question about how they would sort the movies, genre or rating? Maybe look into that

Overall idea is good because it incorporates something everyone loves (movies) with a user interface
Interested in how you are going to teach code on one of the pages
Flowchart is done well, but you can add more of a timeline for plans/development


Add block info & ram delta to action_trace

Resolves #5149
action_trace & transaction_trace changes:

Add block_num, block_time, producer_block_id to action_trace
Add block_num, block_time, producer_block_id to transaction_trace
Add ram_delta per account to action_trace

mongo_db_plugin chnages:

Update block_state with irreversible=true on irreversible signal
Add transaction_trace status to each action_trace

I think account_ram_delta will be a very useful field. So I'm looking forward for this getting merged. But I see currently each element in account_ram_delta is an array which represents a pair (account, delta). I noticed, it could make it kind of complicated to make queries for this kind of schema. Would it be possible to make it an object?

Say, I want to get all actions where account A payed for RAM. Now I have to query array of arrays for that. I've tried in ways, which seemed straightforward to me first - they didn't work. I had to dig around on the internet to find out how to do that, but that's not the problem. The problem is that I've found in multiple places where people say that that's a bad document structure and there will be problems when trying to do aggregation for example. Here for example.
Now, let's say I want to create an index on the payer field, to make the query I mentioned above faster. Didn't have time to think about it much yet, but I have no idea how to do it for the current document structure. Would be straightforward if account_ram_delta would contain objects. Now I could only find this so far, which again suggests that it's not the best document structure.
I'm under impression mongodb expects objects to be used these kind of scenarios and it's probably optimized better if objects are used as well.

@sim31
	"account_ram_deltas" : [
		{
			"account" : "eosio",
			"delta" : -128
		},
		{
			"account" : "gyydsmbxguge",
			"delta" : 128
		}
	],

Does this work for you?

@arhag Ready for your review of changes.


Docker error when building

I ran, sudo docker build -t eosio/eos . and met the following error.
[ 84%] Building CXX object libraries/native_contract/CMakeFiles/eos_native_contract.dir/producer_objects.cpp.o
In file included from /tmp/eos/libraries/native_contract/producer_objects.cpp:1:
/tmp/eos/libraries/native_contract/include/eos/native_contract/producer_objects.hpp:49:64: error: no viable conversion from returned value of type 'tuple<const long &, const chainbase::oid<native::eos::ProducerVotesObject> &>' to function return type 'pair<types::ShareType, id_type>' (aka 'pair<long, oid<native::eos::ProducerVotesObject> >')
   pair<types::ShareType,id_type> getVoteOrder()const { return std::tie( race.speed, id ); }
                                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.0/../../../../include/c++/5.4.0/bits/stl_pair.h:127:17: note: candidate constructor not viable: no known conversion from 'tuple<const long &, const chainbase::oid<native::eos::ProducerVotesObject> &>' to 'const std::pair<long, chainbase::oid<native::eos::ProducerVotesObject> > &' for 1st argument
      constexpr pair(const pair&) = default;

Resolved with new commits.


Refactor Vim

More useful plugins:
https://gist.github.com/tibaes/0e460ef058c47b4b5a59c387e961f2da

 Migration to CoreOS


CPU-GPU scheme

Where is the code for the CPU:-GPU training scheme? for me it is not using the GPU

Hi Jonathan!
You can try running the code in a CPU mode by setting PyTorch's param device to 'cpu' rather than 'cuda:0' everywhere in the code.
There is no specific switch for it as training in a CPU-only mode would take ages :)


tui calendar doesn't show when schedules(have end date to next week) are overlapped more than 5

Version
"@toast-ui/vue-calendar": "^1.1.1",
Development Environment
browser is Chrome
Current Behavior
There are 5 schedules which are overlapped and have end date is greater than 4/5(on next week).
When this case, the rest parts of calendar doesn't show. Please check it and guide me. Thanks.
(a week has 4 lines, 5 is greater than the number of lines. I tried setting the visibleScheduleCount of month oprtion as 8, but doesn't work.)

Expected Behavior

@bobxmas
Can I get a codesandebox, jsfiddle, codepen link to reproduce?

@jungeun-cho
I cannot give you a link. but how to reproduce is simple.
plz make tasks to next week more than the number of tasks can show in a week when month view.
for now I make ui adjusting the height to solve this problem. but it is not a fundamental solution.


Sofar Battery Save mode

Hi
thanks for the code for esphome which i have running very well with Home Assistant. I have one problem however, now that the nights are drawing in, i have trying to set battery save mode but the inverter does not seem to respond . The charge and discharge function work so i'm thinking its a firmware issue on the sofar. I'm running v2.7 firmware, dont really want to change unless i have to, so wondered what the firmware is on your ME3000?
Cheers

Hello somersetdude, did you resolve the issue with de battery save mode??
You can try selecting charge or discharge with a 0 watts rate.


Exception on WiFi assoc

I'm getting the following exception shortly (a few seconds) after connecting to WiFi:
ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3ffc0008,len:0
load:0x3ffc0008,len:1964
load:0x40078000,len:3668
load:0x40080000,len:260
entry 0x40080034
I (550) heap_alloc_caps: Initializing heap allocator:
I (550) heap_alloc_caps: Region 19: 3FFC0E9C len 0001F164 tag 0
I (552) heap_alloc_caps: Region 25: 3FFE8000 len 00018000 tag 1
I (561) cpu_start: Pro cpu up.
I (567) cpu_start: Single core mode
I (573) cpu_start: Pro cpu start user code
I (598) rtc: rtc v160 Nov 22 2016 19:00:05
I (609) rtc: XTAL 40M
W (696) cpu_start: failed to load RF calibration data, falling back to full calibration
I (2041) phy: phy_version: 258, Nov 29 2016, 15:51:07, 0, 2
I (2106) cpu_start: Starting scheduler on PRO CPU.
tcpip_task_hdlxxx : 3ffc4824, prio:18,stack:2048
I (2119) wifi: frc2_timer_task_hdl:3ffc635c, prio:22, stack:2048
I (2131) wifi: pp_task_hdl : 3ffc8bf4, prio:23, stack:8192
I (2132) wifi: mode : sta (24:0a:c4:00:2f:9a)
I (2133) foo: event: 2
I (3008) wifi: n:6 0, o:1 0, ap:255 255, sta:6 0, prof:1
I (3657) wifi: state: init -> auth (b0)
I (3658) foo: ping
I (3670) wifi: state: auth -> assoc (0)
I (3675) wifi: state: assoc -> run (10)
I (3686) wifi: connected with Cesanta, channel 6
I (3687) foo: event: 4
I (4658) foo: pong
I (5658) foo: ping
I (6658) foo: pong
I (6759) event: ip: <IP_ADDRESS>, mask: <IP_ADDRESS>, gw: <IP_ADDRESS>
I (6759) foo: event: 7
I (7658) foo: ping
I (8658) foo: pong
I (9658) foo: ping
Guru Meditation Error of type InstrFetchProhibited occurred on core   0. Exception was unhandled.
Register dump:
PC      :  00000001  PS      :  00060e30  A0      :  800e9d8e  A1      :  3ffc4700
A2      :  00000001  A3      :  3ffc9cc0  A4      :  00000001  A5      :  00000008
A6      :  00000000  A7      :  3ffbd594  A8      :  800e5a50  A9      :  00000002
A10     :  3ffc9cc0  A11     :  00000001  A12     :  3ffbf2a4  A13     :  00000000
A14     :  3ffc4008  A15     :  3ffbf07c  SAR     :  00000012  EXCCAUSE:  00000014
EXCVADDR:  00000000  LBEG    :  4000c2e0  LEND    :  4000c2f6  LCOUNT  :  ffffffff
Rebooting...

this is latest master esp-idf + esp-idf-template. i only changed ssid pass and later added a couple debug statements to log system event type and provide heartbeat to give an idea when the crash happens.
this only happens on successful wifi connection - if i specify nonexistent ssid or invalid pass, there's no crash. our office AP is nothing special, ESP8266 works with it just fine.
tried on 2 different devices, so it's not a hardware fault.
let me know if you need any info to help debug this.

When an exception like this is encountered, we can use gdb to determine where the exception occurred.  I believe you are with Cesanta ... I am extremely interested in getting Mongoose supported on ESP32.  If it would be useful, I will be delighted to partner with you ... you with your Cesanta code skills and me with some useful ESP32 skills.  You can reach me on ESP32 IRC (kolban) or Skype at "neil.kolban".

yes, this is my first foray into ESP32 programming. i'm already setting up JTAG debug probe, a bit sooner than i expected :)

If you have trouble with JTAG, you can actually use gdb on your PC to examine the details of what failed through the serial port.  Again, if you can use me, please do.  I find that when approaching any new environment, I like to find folks who may have walked some of the path in the past that can offer tips on how to proceed.

in this case the problem is that we don't have useful PC to work with.

If needed, I can load your code on my PC ... via a screen share.  Where are you compiling source?

On the manufacturer's forum for my board, I stumbled upon this.
If my laptop or my phone does a DHCP request, the board reboots every time, which explains the regularity of the crashes and why it only happens when the board is associated with the access point.

Thanks for the reports. I have tried both with the latest master and the one which was available on the day this was originally reported. So far I wasn't able to reproduce this. Just to be sure, could any of you please upload the elf file which demonstrates the issue?
From the linked forum issue I got an impression that this may be related to some specific DHCP packet. I wonder if I may ask for a wireshark trace with DHCP packets logged?
/cc @abiliojr, I would like to keep discussion of this issue in one thread.

this must be triggered by some traffic, as for example it only repros on the office network for me and not at home. i'll try to correlate it with network activity today.

i ran tcpdump on my wlan0 interface at the same time as device is running and crashing, with an idea that it might be triggered by some broadcast traffic, which my laptop should then see as well.
unfortunately, i don't see any smoking gun in the logs, i could not identify a packet that precedes device crash.

here are some more findings. i went back in time to see if it is a recent regression - it's not.
the bug is present as far back as 9a3f9af2db534f993b22cd71cba8f13648fd2ee9, and that is as far as i can go because at previous commit (72422b32dc322b0d41f42a9da0cbaf7765359436) wifi won't even connect.
so it goes from being unable to connect at all to connect and crash, which is an improvement, of sorts :)
now, there is a minor change i noticed: before 9423390c2e88bb33be0b9064b3d8f0583f6aee7e PC had a different invalid value:
register dump at f394632319df343b1c1fc95e5d704589578a99f8:
PC      :  002c002c  PS      :  00060e30  A0      :  800e9d8e  A1      :  3ffc47a0
A2      :  00000001  A3      :  3ffc9c98  A4      :  002c002c  A5      :  00000008
A6      :  00000000  A7      :  3ffbd588  A8      :  800e5a50  A9      :  00000002
A10     :  3ffc9c98  A11     :  00000001  A12     :  3ffbf294  A13     :  00000000
A14     :  3ffc2480  A15     :  3ffbf06c  SAR     :  0000001e  EXCCAUSE:  00000014
EXCVADDR:  002c002c  LBEG    :  00000000  LEND    :  00000000  LCOUNT  :  00000000

and at 9423390c2e88bb33be0b9064b3d8f0583f6aee7e:
PC      :  00000001  PS      :  00060e30  A0      :  800e9d8e  A1      :  3ffc47a0
A2      :  00000001  A3      :  3ffc9cc8  A4      :  00000001  A5      :  00000008
A6      :  00000000  A7      :  3ffbd594  A8      :  800e5a50  A9      :  00000002
A10     :  3ffc9cc8  A11     :  00000001  A12     :  3ffbf2a4  A13     :  00000000
A14     :  3ffc40b0  A15     :  3ffbf07c  SAR     :  0000001e  EXCCAUSE:  00000014
EXCVADDR:  00000000  LBEG    :  4000c2e0  LEND    :  4000c2f6  LCOUNT  :  ffffffff

i can offer remote access to a machine with ESP32 module connected so you can try to debug it.
ping me on IRC if interested.

@rojer Thanks for the observation. I suppose I need to try a bunch of different routers.
The fact that PC contains garbage, and always the same kind of garbage (002c002c is also seen in the issue report on the Pycom forum) makes me think that this may be a stack overflow. Since it is triggered by some DHCP packet, it may be a stack overflow in LwIP task. Could you please do a test again, after increasing ESP_TASK_TCPIP_STACK from 2048 to some larger value in components/esp32/include/esp_task.h?
Also please enable "Run FreeRTOS on the first core only" option in menuconfig, Component config, FreeRTOS. LwIP task was moved to the second core in one of the recent changes, and from our internal testing it seems to be causing issues (although different from the one you have reported).

no, increasing ESP_TASK_TCPIP_STACK to 4096 didn't help. CONFIG_FREERTOS_UNICORE is set to y.
let me note that the device actually manages to acquire an IP address just fine, crash happens after that (usually a few seconds):
I (3615) wifi: state: auth -> assoc (0)
I (3625) wifi: state: assoc -> run (10)
I (3635) wifi: connected with Cesanta, channel 6
 [0;32mI (3645) foo: event: 4 [0m
 [0;32mI (4615) foo: pong [0m
 [0;32mI (5615) foo: ping [0m
 [0;32mI (6615) foo: pong [0m
 [0;32mI (6715) event: ip: <IP_ADDRESS>, mask: <IP_ADDRESS>, gw: <IP_ADDRESS> [0m
 [0;32mI (6715) foo: event: 7 [0m
^A^X [0;32mI (7615) foo: ping [0m
 [0;32mI (8615) foo: pong [0m
 [0;32mI (9615) foo: ping [0m
Guru Meditation Error of type InstrFetchProhibited occurred on core   0. Exception was unhandled.
Register dump:
PC      :  00000001  PS      :  00060e30  A0      :  800e9d8e  A1      :  3ffc4fb0
A2      :  00000001  A3      :  3ffca4bc  A4      :  00000001  A5      :  00000008
A6      :  00000000  A7      :  3ffbd594  A8      :  800e5a50  A9      :  00000002
A10     :  3ffca4bc  A11     :  00000001  A12     :  3ffbf2a4  A13     :  00000000
A14     :  3ffc2490  A15     :  3ffbf07c  SAR     :  00000012  EXCCAUSE:  00000014
EXCVADDR:  00000000  LBEG    :  4000c2e0  LEND    :  4000c2f6  LCOUNT  :  ffffffff
Rebooting...

fwiw my router model is TP-Link TD-W9980

I did some tcpdump (during my previous attempt, before finding the thread talking of DHCP requests triggering the problem, I only tried to capture the 802.11 frames and saw some corrupt ones but replaying them didn't produce anything) and by elimination, I was left with only one packet: an ICMPv6 Router Solicitation.
Each tcpreplay of this packet provoked a panic.
I'm not sure it is useful I post the pcap here, as I can simply reproduce the issue with the rdisc6 command (could not compile it under OS X so I installed it on a laptop with Debian as it is available in the main APT repository via the ndisc6 package).
For the record, here is how to use it:
rdisc6 "$router_ip6" "$interface"

Where $router_ip6 may be found via:
ip -6 route

And $interface is simply your Wi-Fi interface (that you should also see in the ip's command output).
Unfortunately, #define LWIP_IPV6 0 in lwipopts.h will break the build and I'm not sure I can disable IPv6 support on the ESP32 (I'm new with this board & SDK, sorry) to fully assert there is a problem with the IPv6 stack.
Hope this helps.

fwiw, this is something i have in common with @ether42 - i also have ipv6 in my network.

Thanks @ether42, I have passed this way of reproducing the issue to the team, we should have a fix shortly.

i have similar issue on my beloved LoPy with ESP32. Changed IPv6 settings on my wifirouter from 6to4-tunnel to Disable and the crash has not happened again. Router Netgear R7000 i do not run any ÎPv6 software. Not a fix but a workaround.

Kudus to @ether42 for the thorough report. Thanks!
I can confirm that running rdisc6 triggers the crash.
FYI, @ether42, I just had a look at rdisc on OS X, and made two fixes to rdisc. I mailed it's author just a minute ago.

struct netif's ipv6_addr_cb field was non-NULL but the pointer was invalid.
turns out, struct netif was not zeroed on allocation. #148 fixes that and possible other bugs due to uninitialized struct fields.


sync to live

OPS Build status updates of commit 2a94832:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

windows-iotcore/develop-your-app/LightningProviders.md
:white_check_mark:Succeeded

windows-iotcore/learn-about-hardware/DriverDeployment.md
:white_check_mark:Succeeded

windows-iotcore/learn-about-hardware/SoCsAndCustomBoards.md
:white_check_mark:Succeeded

windows-iotcore/learn-about-hardware/iotnxp.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Build 5 - Nodes update

Set Transform has different inputs
This is gone
Self is now used?
http://armory3d.org/manual/getting_started/scene1.html
Might I add, one huge pro feature is being able to cycle between the different versions in top right and see what worked when, in case need to go back. I think gitbook can do this easily. Just like on some blender doc pages you can choose which version had what feature by selecting version at top. Doing this sooner and making it a MO rather than later would be grand step in keeping everything super tight like you already are.

Hi!
There are indeed changes being made to logic nodes, I hope to get it stable by Build 7. Versioned gitbook manual is a great idea - will make that happen.
PS: Thanks for all the feedback and sorry for slow updates, got my eye injured - should be back in full pace in 2-3 days. :)

I found this.
https://plugins.gitbook.com/plugin/versions
it says only works on books hosted on gitbook.com but likely to be another one, or possible hack/tweak to quickly achieve this in proof of concept form

It's not as convenient but the docs for older builds can be downloaded manually for now:
https://github.com/armory3d/armory_docs/releases


Yarn installation fails with <...>olm-3.2.8.tgz%23 isn't supported by any available resolver

Describe the bug
I was following instuctions provided for local development, and got a failing installation.
$ yarn
➤ YN0000: ┌ Resolution step
➤ YN0013: │ 3d-tiles-renderer@https://github.com/matrix-org/3DTilesRendererJS.git#commit=0a24d695752f6e419d47cca0bbec0e8ba8f0af4c can't be found in th
➤ YN0061: │ @types/gl-matrix@npm:3.2.0 is deprecated: This is a stub types definition. gl-matrix provides its own type definitions, so you do not need this installed.
➤ YN0032: │ fsevents@npm:2.3.2: Implicit dependencies on node-gyp are discouraged
➤ YN0061: │ source-map-resolve@npm:0.6.0 is deprecated: See https://github.com/lydell/source-map-resolve#deprecated
➤ YN0061: │ @types/browserslist@npm:4.15.0 is deprecated: This is a stub types definition. browserslist provides its own type definitions, so you do not need this installed.
➤ YN0061: │ core-js@npm:3.21.1 is deprecated<EMAIL_ADDRESS>is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
➤ YN0061: │ core-js-pure@npm:3.21.1 is deprecated<EMAIL_ADDRESS>is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js-pure.
➤ YN0061: │ react-style-singleton@npm:2.2.0 is deprecated: wrong managing of dynamic styles
➤ YN0061: │ request@npm:2.88.2 is deprecated: request has been deprecated, see https://github.com/request/request/issues/3142
➤ YN0061: │ har-validator@npm:5.1.5 is deprecated: this library is no longer supported
➤ YN0061: │ uuid@npm:3.4.0 is deprecated: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
➤ YN0001: │ Error: @matrix-org/olm@https://gitlab.matrix.org/api/v4/projects/27/packages/npm/<EMAIL_ADDRESS>@matrix-org/olm@npm:3.2.8::__archiveUrl=https%3A%2F%2Fgitlab.matrix.org%2Fapi%2Fv4%2Fprojects%2F27%2Fpackages%2Fnpm%2F%40matrix-org%2Folm%2F-%2F%40matrix-org%2Folm-3.2.8.tgz%23 isn't supported by any available resolver
    at Bd.getResolverByDescriptor (/home/vintprox/.node/corepack/yarn/3.2.3/yarn.js:391:1664)
    at Bd.getCandidates (/home/vintprox/.node/corepack/yarn/3.2.3/yarn.js:391:1252)
    at LR.getCandidates (/home/vintprox/.node/corepack/yarn/3.2.3/yarn.js:435:3387)
    at Bd.getCandidates (/home/vintprox/.node/corepack/yarn/3.2.3/yarn.js:391:1281)
    at /home/vintprox/.node/corepack/yarn/3.2.3/yarn.js:439:7764
    at Tg (/home/vintprox/.node/corepack/yarn/3.2.3/yarn.js:390:11154)
    at ce (/home/vintprox/.node/corepack/yarn/3.2.3/yarn.js:439:7744)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
➤ YN0000: └ Completed in 42s 129ms
➤ YN0000: Failed with errors in 42s 138ms

To Reproduce
Steps to reproduce the behavior:

Install yarn and clone repo.
Run yarn.
Few downloading dependencies after, process stops with an error: ➤ YN0001: │ Error: @matrix-org/olm@https://gitlab.matrix.org/api/v4/projects/27/packages/npm/<EMAIL_ADDRESS>@matrix-org/olm@npm:3.2.8::__archiveUrl=https%3A%2F%2Fgitlab.matrix.org%2Fapi%2Fv4%2Fprojects%2F27%2Fpackages%2Fnpm%2F%40matrix-org%2Folm%2F-%2F%40matrix-org%2Folm-3.2.8.tgz%23 isn't supported by any available resolver

Expected behavior
Error-less installation that would allow me to serve the app on localhost.
Screenshots

Desktop:

Manjaro Linux, v22.0.0
Yarn v3.2.3
Node v16.16.0
Main branch, b969fe8c531efc4746efb36549cd69b2bb50c3f1

Maybe it's something with yarn v3. I have yarn v1.22.18 and had no issue.

Just discovered that degrading back to classic yarn helps the issue:
$ cd ~
$ rm .yarnrc && rm .yarnrc.yml
$ rm -r .yarn
$ yarn set version classic
$ cd thirdroom
$ yarn

Everything works after that. Then there just remains the question of whether it makes sense to support classic or new edition of Yarn.

Come to think of it, we probably should mention this in the README.

Maybe it's something with yarn v3. I have yarn v1.22.18 and had no issue.

Just discovered that degrading back to classic yarn helps the issue:

$ cd ~

$ rm .yarnrc && rm .yarnrc.yml

$ rm -r .yarn

$ yarn set version classic

$ cd thirdroom

$ yarn

Everything works after that. Then there just remains the question of whether it makes sense to support classic or new edition of Yarn.

We will not be supporting the newer version of yarn. pnpm is looking better and better. It'd be great to stick with npm but npm link is pretty bad.
Anyway, yeah I'll add the yarn version to the readme. We're not switching at the moment.


Question mark "?" not pretty-printed

In final configuration we get output like this:
    (InfoReachability) while checking the implication:
    The claim cannot be rewritten further, and the claimed implication is not valid.
  #Ceil ( #buf ( 32 , #lookup ( 'QuesUnds'STORAGE , keccak ( #buf ( 32 , ?ACCT1 ) ++ b"0000000000000000000000000000000000000000000000000000000000000000" ) ) ) )
#And

Not sure whether #Ceil is a problem btw. This is vanilla KEVM without #Ceil(#buf).
https://office.runtimeverification.com/jenkins/blue/organizations/jenkins/erc20-verification/detail/PR-143/6/pipeline/
@ttuegel

Not sure whether #Ceil is a problem btw. This is vanilla KEVM without #Ceil(#buf).

That's fine; it would be suspicious to see #Not ( #Ceil ( _ ) ).
Pretty-printing K terms is a frontend issue, so I will transfer it there.


help: Document modal to generate bot URL.

Adds a help center article to document the new modal for generating an integration URL, and links /integrations docs to this article.
Fixes #27744.
Screenshots and screen captures:

https://zulip.com/integrations/doc/airbrake

Self-review checklist

[x] Self-reviewed the changes for clarity and maintainability

Communicate decisions, questions, and potential concerns.

[x] Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

[x] Each commit is a coherent idea.
[x] Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

[x] Visual appearance of the changes.
[x] End-to-end functionality of buttons, interactions and flows.
[x] Corner cases, error conditions, and easily imagined bugs.

@alya This PR is ready for review.
@zulipbot add "help center review"

We don't capitalize "optional" elsewhere, and I think I prefer it with a small letter, as on https://zulip.com/help/quote-and-reply.

I think we should also:

Link to this page from Add a bot or integration and Bots and integrations
Drop the link to Deactivate or reactivate a bot on this page, unless there's a specific reason you thought it was relevant?

(sorry, got interrupted half way through revieiwing)

That's all the feedback I had!

That's all the feedback I had!

Thanks for the feedback! I updated the PR + screenshots.

Thanks! @timabbott ready for your review.

This looks good to me as the base documentation ... but I think this page needs some sort of introduction, possibly including cross-linking with https://zulip.com/api/incoming-webhooks-overview#urls, as to what we're talking about. A normal user is going to have no idea why they need to "generate a URL for an integration" if they get to this page via the /help/ sidebar.
@alya we should discuss what we want there. But the content is something like:
"Many Zulip integrations are implemented as webhooks. A webhook integration allows a third-party service to post updates into Zulip by providing that service with a special Zulip integration URL. These Zulip integration URLs encode configuration details of how you'd like Zulip to translate the third-party updates into Zulip messages."

PR to add an intro: #27859


Spring RestController 返回类型为map<Long, Object>时格式错误, long 数据多了一层双引号 #4388

1、由 JSON.toJSONString(entryKey)调整为TypeUtils.cast(entryKey, String.class)
2、TypeUtils扩展API

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


WorldEnviorment: When background is set to canvas, any description or pop-up shows up as empty

Godot version
v4.0.beta3.official [01ae26d31]
System information
Windows 11
Issue description
If a WorldEnviorment node is added to a scene, and the background setting is set to canvas, any pop up in the editor becomes blank. Any buttons that would come up still are functional (for example, a pop up that has the option to save and quit still functions), but they are not visible.

Steps to reproduce

Make a new project file
Add a WorldEnviorment Node
Change the background setting to Canvas
Hover over something in the editor to check the pop-up

Minimal reproduction project
No response

Minimal reproduction project:
bug_blank_canvas.zip

Duplicate of https://github.com/godotengine/godot/issues/52467.


[WIP] replacing torch focal loss

Re-wrote the torch focal loss so that the model's outputs actually make sense. Looks like it worked. After a couple of epochs of training of a test model, the outputs are in the range [-0.08, 1], which I'm assuming will work their way towards [0, 1]. @avanetten should be good to go for you to try with your model.

Closing this, will re-open from my own fork of the repo.


Update Django to version 4.2

Short description

Update Django to version 4.2
Proposed changes

change Django version to last version <5.0, namely 4.2.9
replace psycopg2 with psycopg3
enable GZipMiddleware - this can probably be reverted?
moved the @never_cache decorator around generate_pdf, since now its first argument must be a HttpRequest
related object querying now throws an error instead of returning None for not-yet-saved objects, leading to the changes in user_form.py
increased the max-parent pylint limit from 7 to 8, since otherwise now every form inheriting from CustomModelForm violates the rule

Side effects

we might need new options EMAIL_SSL_CERTFILE and EMAIL_SSL_KEYFILE inside settings.py - not 100% sure how to test this, see the bottom of this list for more

Resolved issues

Fixes: #2220

Pull Request Review Guidelines

@charludo fyi: #2576 introduced a new migration, so rebasing is required before merging this PR.


Log scale option on line graphs

Where applicable and across all the pages, include a log scale option for the line graphs.
This will help better visualize the data when the graph includes outlier/extreme values that mute the rest of the chart, for example.

Hey @jabby09 and @0xAurelius I have a solution for this for the KlimaDAO retirements by Token and by Chain graphs. I'm away the next few days but will submit the PR early next week.

This is will be managed now in the new Klima Data app.


improved healthchecks

Minor improvements to docker compose healthchecks, in particular allowing chaining of healthchecks and updated to the run_on_gcp.sh script too.

After some more work, it seems that this is deprecated in docker-compose v3 https://docs.docker.com/compose/compose-file/#depends_on
I'm not sure why they did this - it seems sensible to me - but it does render this PR pointless so I'm closing it unmerged.


Controling the order of outgoing edges

From @bzaborow:
Hi,
I started to use the dagre-d3 for visualisation of data similar to one of examples (the Sentence Tokenization). Extending this example to display a DAG instead of a tree was super easy, but I've lost control of an order in which edges leave a particular node. Is it possible to restrict it somehow? If not, could you point me where to start looking into your code? For my data the order of edges is quite important.
In fact, it would be the best if i could constraint nodes order too (position from left to right in top down graph), but as I understand, it is not possible at the moment (issue cpettitt/dagre-d3#25 ?).
Thanks

@cpettitt
went through the above link by Graphviz
and it just says to add : {ordering: "out" OR "in"}
so I did something like this:
var graph = new dagreD3.graphlib.Graph({ordering: "in").setGraph({});

and tried out as well, but still got the elements to jump sides
any idea what Im doing wrong?

The graphviz feature is not currently supported in dagre.

Thanks @cpettitt
so currently no option to set the order and not make the leafs swap?

Not without a contribution. If someone were willing to work on it the pieces are already there with the constraint graph in the order phase, but they need to be exposed in an intuitive way through the public API.

great, can u please elaborate more so I could dig into that?

See https://github.com/dagrejs/dagre-d3/issues/64#issuecomment-52138308

already been there but the links there to sweepUp sweepDown are not relevant anymore...
and I cant find them in the code as well

https://github.com/dagrejs/dagre/blob/a299bf8a83ed4c973d6f8bccf6a57e0cd5e2e44c/lib/order/index.js#L61


Add examples folder

Checklist

General Contributing

[ ] Have you read the Code of Conduct and signed the CLA?

Is This a Code Change?

[ ] Non-code related change (markdown/git settings etc)
[ ] SDK Code Change
[ ] Example/Test Code Change

Validation

[ ] Does npm test pass?
[ ] Does npm build pass?
[ ] Does npm lint pass?

Codecov Report

Merging #26 into master will decrease coverage by 4.36%.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##           master      #26      +/-   ##
==========================================
- Coverage   53.26%   48.90%   -4.37%
==========================================
  Files           6        6
  Lines         674      683       +9
==========================================
- Hits          359      334      -25
- Misses        315      349      +34

Flag
Coverage Δ

#integration
?

#unit
48.90% <66.66%> (+0.23%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

src/auth.js
45.61% <66.66%> (+1.16%)
:arrow_up:

src/dropbox.js
44.82% <66.66%> (-31.54%)
:arrow_down:

src/response.js
38.88% <0.00%> (-44.45%)
:arrow_down:

src/utils.js
20.00% <0.00%> (-20.00%)
:arrow_down:

lib/routes.js
50.10% <0.00%> (-0.84%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 983b999...6721203. Read the comment docs.


Chord display should understand no 5th chords

It seems that midi jarr gets confused when you drop the 5th from extended chords
Take an Emaj7 for instance, root position. E, G#, B and D#...
You can see it understand this chord. However, if you remove the 5th(leave out the B) as jazz often does... It gets confused and won't show it as any chord...
But, to my eyes I can see this and understand it's just an Emaj7 without a 5th. What's weird is I've seen it before say "no5" for a chord... So it does kinda understand this concept in some contexts...

Hello @sreich, thanks for the feedback.
i did not have time to work on MIDI JAR recently, I’m busy with something else. But fixing some incoherence with the tonaljs library is in my top priority, as I noticed this kind of issues too (like missing chords, incoherent notations, and such).
Tonal has been updated so that it can now detect chords with 5th omissions, I’m wondering if I could maybe extend this to allow more omissions (this could be done in the algorithm or in the dictionary).
The dictionary is incomplete, and includes some chords notes “no5” (that’s why you may find some), which is kinda redundant with detecting chords omitting 5th.
So as soon as I can upgrade all packages (work still pending for months), i’ll be able to fix this.
I hope to be able to work on this, but procrastination…
But your feedback is a motivation so thanks again !

Okay! No problem, life happens. Glad you're getting to it and planning for it...
Thank you for the fast response and explanation. Take your time. By the time you get to it I'll just be that much better at piano practice to use your app 😉

Hello @sreich !
I just finalized the latest release of MIDI Jar 1.5.0, which is a complete rewrite of the chord dictionary used by tonal.
Since a lot of chords were missing, and some made no sense to me, i chose to polish all the chords, and complete it as much as possible.
It took me some time, and i am pretty sure some chord alterations are missing, but the good thing is that most of it is here.
And since i had this "no5" issue in mind, i chose to totally remove the "no5" chords from the dictionary in favor of a better solution: chords can have omissions (non mandatory intervals), not only fifths, but also contextually the 9th, 11th.
I did not implement the mention of the "no5" and such in chord display, since there already are  a lot of information displayed on screen.
You can enable the "Allow omissions" option in the chord-display settings, and it should be all good.
You can also now choose to display a full chord name, and change the notation.
Planning to add a gameplay option to allow omissions / alterations in Chord Quiz, but i would also like to have an option to require a specific inversion (at least a bass note).
Hope you will appreciate this release, don't hesitate to give feedback if you have any issue with this ticket, otherwise, i'll close it.

Hey, this sound awesome! Sounds like really great improvements, thank you. I've also been enjoying the interface improvements you've been making
I opened #22  because I'm unable to get 1.5.0


metric depth estimation vs metric3d

Does the method have detailed results on metric measurements, especially in comparison with the metric3d method?

Hi, thank you for your question.
We primarily focus on relative depth estimation. So we mainly compare Depth Anything with the latest and previously strongest MiDaS v3.1 BEiT model. And when transferring our relative MDE model to metric MDE, we follow ZoeDepth to directly fine-tuning with metric depth labels, without using the camera intrinsics as Metric3D does. So we do not compare with Metric3D, but compare with ZoeDepth for fairness.
Last but not least, our work is more of a relative depth estimation work, following the MiDaS research line. We believe the users can fine-tune our well-performed pre-trained model with their own metric depth data for better metric depth estimation.

@LiheYoung Thanks for reply:)


Rave not working on my php version

I'm using a server that is running on Php version 5.2.17. Which at later, giving me a fatal error display message. Please what's the way out?

@Akinrinadegreat1 Can you please provide the fatal error you got? Just copy and paste here.

Fatal error: call to undefined function openssl_random_pseudo_bytes() in /home/content/59/7274659/html/mts/wp-content/phpform.php on line 4

Fatal error: Call to undefined function openssl_random_pseudo_bytes() in /home/content/59/7274659/html/mts/wp-content/plugins/wp-rave-payment-forms-master/views/pay-now-form.php on line 4

The last message is the correct fatal error code

Oh, I see. PHP Version issue there. I will make a fallback fix for that and let you know. Thanks

Ok. Thanks. Like how soon, please?

@Akinrinadegreat1 please I have made the fix. Try it now

ok

Still Fatal error: Call to undefined function openssl_random_pseudo_bytes() in /home/content/59/7274659/html/mts/wp-content/plugins/wp-rave-payment-forms-master/views/pay-now-form.php on line 4

thanks it works . great job . I will like to know if the short code can works as : www.thrivesend.com where on the Amount to send  and send Money button is available

how can I fix the css or add the plugins

@Akinrinadegreat1 I don't understand your question. Can you be more elaborate? What do you want the plugin to do?

casade style sheet  how can it be edited for the bottom

Styling
You can enable default theme's style to override default form style from the Settings page. Or you can override the form class .flw-simple-pay-now-form from your stylesheet.
I can not locate this file in the settings

Or you can override the form class .flw-simple-pay-now-form from your stylesheet.

What that statement means is that you can override the default style by setting your own style on .flw-simple-pay-now-form css class in your stylesheet or current theme's custom style option.
I could probably add a text area element in the settings for users to set custom styling directly. For now, you can only override the default styling class .flw-simple-pay-now-form through current theme's custom style or you create a stylesheet file.

thanks

HOW DO i REMOVE THE EMAIL FROM THE PLUGIN

@Akinrinadegreat1 What email do you want to remove, please? Follow the steps in the documentation. If there is a new behavior that you would like to see, raise it an issue and specify that it is a feature request or suggestion.

[flw-pay-button amount=""  ]SEND MONEY[/flw-pay-button]

[flw-pay-button amount=""<EMAIL_ADDRESS>]Button Text[/flw-pay-button]
THIS WORKS BUT NOT IN DOCUMENTATION

@Akinrinadegreat1  Rave requires that the user making the payment supply either email or phone number for identification. I used email because I believe people feel more comfortable in giving out their email.
In your case, if you don't want to display the email field, you can tell the plugin to use the logged in user's email. This means that the user needs to log in. If the user is not logged in, the email field will be displayed.

THIS WORKS BUT NOT IN DOCUMENTATION

It is in the documentation under shortcode section

Good morning ,
Please kindly update me on how to fix the moneywave in to my website. Thanks

@Akinrinadegreat1 please talk to moneywave support for that.


Fixing issue with only one section that is non-zero

Fixing an issue when only one section of the pie chart has a non-zero value. In that case, the foundSectionData was returned null, because having only one section yields to sectionAngle = 0
Similar issue to https://github.com/imaNNeoFighT/fl_chart/issues/368

Hi.
I didn't understand the problem.
Can you please provide a reproducible code?

It will be fixed in #615


Revise TCP secret name

Take secret name from TLS list.
Add NoSSL to avoid TLS selectively.

Test NoSSL
Test with matching TLS.


Cannot access default values of a nested struct

struct Ssl {
    string trustStoreFile;
    string trustStorePassword;
    string keyStoreFile;
    string keyStorePassword;
    string sslEnabledProtocols;
    string ciphers;
    string sslProtocol;
}

struct FollowRedirects {
    boolean enabled = false;
    int maxCount = 5;
}

public struct Options {
    int port;
    FollowRedirects followRedirects;
    Ssl ssl;
}

If a user creates an Options struct without a struct, then that particular struct won't be initialized. Therefore default values of particular struct fields cannot be accessed. This should be fixed after introducing anonymous structs.
eg:
http:Options options = {
    ssl: { trustStoreFile: "${ballerina.home}/bre/security/client-truststore.jks"
    }
};

This is the intended behaviour for structs. Only value-typed fields can have default values.
Setting default values for re-typed fields will be supported once the struct-init function is introduced  (refer #4340)


Error loading Instance Allocation Events detector for a specific site

https://applensv2.azurewebsites.net/sites/buggy-bits/appanalysis/detectors/instanceallocations?startTime=2017-10-13T16:00:00.000Z&endTime=2017-10-13T20:54:00.000Z

Looks like issue is fixed now


Add content for React

Make sure to use simple, language, examples and code snippets wherever required
USAGE OF AI IS STRICTLY NOT ALLOWED

I Want to add ,Assign me under Apertre'24


Missing press conference from Hungary GP

I love the app, but the hungary gp press conference is already up on F1tv pro, but not showing on the app yet. Is content manually added? Or is this delay normal?
Thanks

The delay is normal, takes a while to appear it really depends on location, etc.


bug: RTL drawer is messed up

What version of daisyUI are you using?
3.1.5
Describe your issue
After upgrading to 3.1.15, the drawer in RTL versions is always visible.
The drawer also comes from the left side while it should be coming from the right side.
What browsers are you seeing the problem on?
Chrome and Safari
Reproduction URL (optional)
https://play.tailwindcss.com/1Vj1TO1ezs

the problem is  translateX(-100%)
This rule must be change from:
 [dir=rtl] .drawer-side>:not(.drawer-overlay){
      transform: translateX(-100%);
    }

to:
 [dir=rtl] .drawer-side>:not(.drawer-overlay){
      transform: translateX(100%);
    }

this seems to be the same as #1974, when it will be?

@saadeghi, any update?


Add the LazyExchange type

The LazyExchange PACT avoids allocations ahead of time while maintaining
the performance of the eagerly-allocating Exchange PACT. Extend the
Exchange operator with an exchange_pact function taking an explicit
PACT.
This PR is partially extracted from #400.
Signed-off-by: Moritz Hoffmann<EMAIL_ADDRESS>

Renamed to LazyExchange!

Thanks for the review. I updated the implementation with your feedback. Cheers!

Closed in favor of #416.


examples/encdec cannot work well in GPU

Hi all,
Thanks a lot for this great NN tool. I'am happy to see that it provides the GPU version. I have tested the examples using GPU and find that encdec cannot work. The detail is as follows. I further find that the problem occurs in  "loss += as_scalar(cg.forward())"; . If someone knows why, please tell me the reason. Thanks again.

[cnn] using GPU
[cnn] Device Number: 0
[cnn]   Device name: Tesla K80
[cnn]   Memory Clock Rate (KHz): 2505000
[cnn]   Memory Bus Width (bits): 384
[cnn]   Peak Memory Bandwidth (GB/s): 240.48
[cnn]   Memory Free (MB): 1478.89/-805.765
[cnn] Device Number: 1
[cnn]   Device name: Tesla K80
[cnn]   Memory Clock Rate (KHz): 2505000
[cnn]   Memory Bus Width (bits): 384
[cnn]   Peak Memory Bandwidth (GB/s): 240.48
[cnn]   Memory Free (MB): 1575.23/-805.765
[cnn] **USING DEVICE: 1
[cnn] random seed:<PHONE_NUMBER>
[cnn] allocating memory: 1536MB
[cnn] memory allocation done.
Reading training data from data/en.40k...
636637 lines, 16006553 tokens, 40003 types
Reading dev data from data/test.en.40k...
919 lines, 25936 tokens
Parameters will be written to: bilm_3_500_500-pid16320.params
**SHUFFLE
before forward computation ...
Segmentation fault (core dumped)

Best,
Jiajun

Hi Neubig,
Thank you for the feedback. I know the reason now and I am currently read
the codes in CNN. I will give some reports if I find problems. I will try
my best to do some contribution if I can. Thanks again!
Best,
Jiajun Zhang
On Fri, Jan 1, 2016 at 6:26 AM, Graham Neubig<EMAIL_ADDRESS>wrote:

Hi @myohmy https://github.com/myohmy , thanks for the report. I've
fixed some of the GPU code in cnn so you should no longer be getting
segfaults. Unfortunately the example probably still doesn't work though
(giving an error that LogSoftmax is not implemented). You can find more
information about this problem here, and please feel free to contribute if
you're interested:
#28 https://github.com/clab/cnn/issues/28
I'll close this issue for now, as it's part of the bigger one.
—
Reply to this email directly or view it on GitHub
https://github.com/clab/cnn/issues/26#issuecomment-168255293.

Hi Neubig,
Thank you for the feedback. I know the reason now and I am currently read
the codes in CNN. I will give some reports if I find problems. I will try
my best to do some contribution if I can. Thanks again!
Best,
Jiajun Zhang
On Fri, Jan 1, 2016 at 6:26 AM, Graham Neubig<EMAIL_ADDRESS>wrote:

Hi @myohmy https://github.com/myohmy , thanks for the report. I've
fixed some of the GPU code in cnn so you should no longer be getting
segfaults. Unfortunately the example probably still doesn't work though
(giving an error that LogSoftmax is not implemented). You can find more
information about this problem here, and please feel free to contribute if
you're interested:
#28 https://github.com/clab/cnn/issues/28
I'll close this issue for now, as it's part of the bigger one.
—
Reply to this email directly or view it on GitHub
https://github.com/clab/cnn/issues/26#issuecomment-168255293.


Create documentation for Identity credential cache

Our current documentation for how our SDK interacts with the MSAL token cache is insufficient. We need to doc:

What scenarios caching is useful for
How caching is exposed from our library
What expectations should be when caching is used (performance, throttling)
How the disk cache is secured when used

This would be great as it seems the WinUI Maui flavor (.net for windows) apparently does not store msal credentials outside of the app instance, when used with graph API client 5.0 for example.
In other words they're gone after app restarts. Android is fine.

Fixed in https://github.com/Azure/azure-sdk-for-net/pull/35661


#13 read file from bucketfs inside a udf

Closes #13

Also, what's the idea behind the mock? Is it used in integration tests in other projects?

Torsten uses the Mock for fast testing when he does not want to set up a database in the background.

Also, what's the idea behind the mock? Is it used in integration tests in other projects?

Torsten uses the Mock for fast testing when he does not want to set up a database in the background.

Yep, I use it together with the udf-mock-python. We need the bucketfs location mock here, because it is instantiated via the Bucketfs factory, which works as injection point of the Mock for UDFs, because there is not other way to inject a object into UDFs.


Remove the country prefix from subdivision IDs

This expects lower level subdivision codes to be prefixed with their parent. Also extended the sparql query to fetch the Caribbean Netherlands, and sorted it by code length because Saint Barthélemy is both BL and FR-BL and in this case we want BL.

This diff is hard to read but it's basically what's going on: https://pastebin.com/PC1CZga8 . However, I forgot to rerun the diff after changing the code for Saint Barthélemy.

question: how do you generate data/worlddata/country_regions.json? I tried using a curl command (curl --data-urlencode<EMAIL_ADDRESS>'https://query.wikidata.org/sparql?format=json') to generate but it gives me the verbose version. I looked for 15 mins and gave up and resorted to clicking on the GUI to download. what did you do?
Thank you for painstaking fixing the irregularity by hand. The new code and result looks great and neat.

they clearly were thinking about compatibility with other languages so
consumers can parse data into different types. some other day.
On Wed, May 6, 2020 at 11:01 AM April Schleck<EMAIL_ADDRESS>wrote:

Haha I clicked the button too. I looked at the Curl command but it seemed
like effort and opted out of thinking about it
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/xunhuang/covid-19/pull/113#issuecomment-624801015,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFSGFZME6B2OBJYZZIZVDDRQGQYFANCNFSM4M2GKHTA
.


"UDropdown": Toggle NOT Working. click event & touchstart event neutralize each other.

Environment

Operating system: "android 14"
Nuxt Version: "3.13.2"
Vue Version: "3.5.8"

Version
v2.18.6
Reproduction
https://ui.nuxt.com/components/dropdown

Description
clicking on the dropdown button doesn't work in mobile view. the "click" event & the "touchstart" event, call the same function (toggle dropdown visibility), and neutralize each other. (basically, click event opens the dropdown, the touchstart event, closes the dropdown)
I tested it and in both android 14 & in windows, firefox (mobile view mode), I got the same result.
Additional context

Logs
No response

same Issue happens with Popover
https://ui.nuxt.com/components/popover


regex replace html in file

Is there a nice function within goproxy to replace/insert html into the html response?
Maybe regex look for something and replace it with something else - like replace an image with another image or something?

What I would do, is parse the HTML body with Go HTML parser, and then traverse the tree replacing whatever I wish.

Something like:
	proxy.OnResponse().DoFunc(func(resp *http.Response, ctx *goproxy.ProxyCtx) *http.Response {
			d := html.NewTokenizer(resp.Body)
			for {
					tokenType := d.Next()
					if tokenType == html.ErrorToken {
						return resp
					}
					switch tokenType {
					case html.ErrorToken:
						return resp
					case html.StartTagToken:
						//missing self closing token
					case html.TextToken:
					case html.EndTagToken:
					token := d.Token()
					if token.String() == "body" {
						//replace the token String with the injected html
					}
				}
				log.Println("still in here")
			}
		return resp
	})

results in 'still in here' being printed forever

It looks like you have an infinite loop.
I suggest you'll try to parse a simple HTML file without using proxy at
all, say, in Go playground, and then when you got that working put it in
the proxy.
On Wed, May 20, 2015 at 6:49 PM, Alex Walker<EMAIL_ADDRESS>wrote:

Something like:
proxy.OnResponse().DoFunc(func(resp *http.Response, ctx *goproxy.ProxyCtx) *http.Response {
        d := html.NewTokenizer(resp.Body)
        for {
                tokenType := d.Next()
                if tokenType == html.ErrorToken {
                    return resp
                }
                switch tokenType {
                case html.ErrorToken:
                    return resp
                case html.StartTagToken:
                    //missing self closing token
                case html.TextToken:
                case html.EndTagToken:
                token := d.Token()
                if token.String() == "body" {
                    //replace the token String with the injected html
                }
            }
            log.Println("still in here")
        }
    return resp
})

results in 'still in here' being printed forever
—
Reply to this email directly or view it on GitHub
https://github.com/elazarl/goproxy/issues/103#issuecomment-103934487.


Cannot import icomoon SVG json

Apologies if I'm missing something obvious here. I've been prototyping using RNVI and FontAwesome, which has worked nicely. Now I'm trying to swap things out with a custom iconset made from SVGs:

I uploaded a set of SVGs to icomoon
I downloaded/exported these as a JSON file (myicons.json)
I copied this file to /app/components/myicons.json

And then I tried to display one of the custom icons using the following code in one of my views:
import { createIconSetFromIcoMoon } from 'react-native-vector-icons'
import icoMoonConfig from '../components/myicons.json'
const Icon = createIconSetFromIcoMoon(icoMoonConfig)
const myIcon = (<Icon name="icon-bin" size={30} color="#900" />)

But I seem to get an error right away:

I feel like I'm missing something obvious... was I supposed to somehow include a TTF file for this iconset, instead of the JSON with the SVGs directly included inside it? Might the icomoon json format be incompatible?
I found the README a little bit unclear but will do my best to help clean that up if I can get this figured out. Thanks for any help you can give-great plugin, so far! 😄

Might this be related? https://github.com/oblador/react-native-vector-icons/issues/182

Oh wow, I saw that issue previously but didn't think it solved this problem.
It does indeed look like I had the same issue.
1 thing to specifically clarify: with this IcoMoon setup, is it still necessary to import a font file (TTF etc) into the project with Xcode iOS? Or should the JSON with the SVGs be enough?

Looks like the font file is required in addition to the JSON. I'll do a little PR with some clarifications to the README which should hopefully stop others from making the same mistakes as me!


Documentation missing tags definition for pipeline creation

Hello,
I don't know if this is responsibility of Buildkite or Hashicorp, but the official documentation (https://registry.terraform.io/providers/buildkite/buildkite/latest/docs/resources/pipeline) doesn't have the definition for the argument tags when creating a pipeline. VSCode helps you to figure out that the resource does accept tags, but the documentation should mention specifically that it supports it.
Regards

Hey @GuillermoContrerasP!
Much obliged for pointing this out - we've just released an updated version of the provider which includes the addition of tags within the Arguments Reference on the TF Registry page.
Cheers!


Update java-version-support.adoc

The code block as is didn't give enough information. Copying it to the connector code results in error. Adding the "JavaVersion" makes it more clear as to what classes need to be imported.
Writer's Quality Checklist
Before merging your PR, did you:

[ ] Run spell checker
[ ] Run link checker to check for broken xrefs
[ ] Check for orphan files
[ ] Perform a local build and do a final visual check of your content, including checking for:

Broken images
Dead links
Correct rendering of partials if they are used in your content
Formatting issues, such as:

Misnumbered ordered lists (steps) or incorrectly nested unordered lists
Messed up tables
Proper indentation
Correct header levels

[ ] Receive final review and signoff from:

Technical SME
Product Manager
Editor or peer reviewer
Reporter, if this content is in response to a reported issue (internal or external feedback)

[ ] If applicable, verify that the software actually got released

Thanks for your contribution! @arch-jn


VR does not display

Godot 3.1 alpha
Win 7 64 bits
HTC Vive
I try running VR demo(Steam VR launched and VR games works)
using those lib https://github.com/GodotVR/
It doesn't launch VR, there is  only a 3D window in the desktop  is displaying the scene with a static camera.  It looks like Godot can't call SteamVR that is already launched.
The project was running fine with previous Godot versions.

Godot 3.1 alpha

Could you be more specific?

If you are using the OpenVR module you can download from the asset library to try the demo it doesn't work with Godot 3.1, only with Godot 3.0. It will tell you in the logs that you need a newer version of the module. At that point it will not be able to initialize the interface and you will indeed end up with a static camera rendering the scene.
To get OpenVR to work in Godot 3.1 you will need to compile the module from source including downloading the necessary OpenVR SDK.
Once 3.1 is officially released we will add a 3.1 version of the module in the asset library.

What VR Godot supports out of the box ?
I'll wait for the official 3.1 and will download the module from the asset library.

What VR Godot supports out of the box ? Occulus, Htc Vive ?

Currently we have a driver for the Oculus SDK (Rift) and for OpenVR (anything that OpenVR supports so Rift, Vive, Windows MR, PiMax, list goes on) and OpenHMD (also various headsets)

@DevMagicLord just download the binary from here:
https://github.com/GodotVR/godot_openvr/tree/master/demo/addons/godot-openvr
That should work with 3.1


Fix incorrect array length on unbounded arrays specified via relaxed parameter type checking

If you tried to pass in something like:
float[9] values 1 0 0 0 1 0 0 0 1
To a shader that had color values[] declared, OSL would understand that as:
color[9] values ...
Instead of the expected:
color[3] values ...
This only comes up if you are using relaxed type checking of course.

LGTM!


[path_provider] getExternalStorageDirectory returns a path with "files" folder already created?

Hi,
I have a simple question about the path_provider package... from you example.

Why is it that when I call getExternalStorageDirectory it returns me a path with a "files" folder already created? is this the expected behavior?
isnt the ExternalStorageDirectory's path suppose to end at: storage/emulated/0/Android/data/myAppPkgName  ??
is there any way I can avoid this from happening and only receive the path without that extra files folder being created ??

thanks

It returns the result of the Android getExternalFilesDir call, as documented. Flutter doesn't control the behavior of the Android API; if you believe that path is incorrect you'd need to file a bug against Android.


3.0-M1 @ApiParam(allowMultiple = true...) List<String> foo doesn't generate the: ,"items":{"type":"string"} part

Following:
@ApiParam(value = "foo stuff", required = true, allowMultiple = true) @QueryParam("foo") List<String> foo)

results in:
    ...
"parameters" : [ {
      "name" : "foo",
      "in" : "query",
      "description" : "foo stuff",
      "required" : false,
      "type" : "array",
      "collectionFormat" : "multi"
    } ],

however it should be:
    ...
 "parameters" : [ {
      "name" : "foo",
      "in" : "query",
      "description" : "foo stuff",
      "required" : false,
      "type" : "array",
  "items":{"type":"string"},
      "collectionFormat" : "multi"
    } ],

(please note that the ignored required attribute problem is tracked elsewhere, in: #136 )
The motivation behind issue is, that otherwise supplying multiple values in the swagger UI in a comma separated way doesn't work, as whatever is typed is sent as a single value (rather than list of values).

or is there something missing in my annotation, that would refer to items type (string in this case)?

How about define your API like this: (paste from swagger example)
@GET
  @Path("/findByTags")
  @ApiOperation(value = "Finds Pets by tags",
          notes = "Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.",
          response = Pet.class,
          responseContainer = "List")
  @ApiResponses(value = {@ApiResponse(code = 400, message = "Invalid tag value")})
  @Deprecated
  public Response findPetsByTags(
          @ApiParam(value = "Tags to filter by", required = true, allowMultiple = true) @QueryParam("tags") String tags) {
    return Response.ok(petData.findPetByTags(tags)).build();
  }

Well, that could work, however we're trying to keep our REST API as it is and just document it with the swagger. So it doesn't really fit our requirements.
Any chance to provide support in the maven plugin for the List<String> foo? Otherwise I'd just need to hack the generated json file somehow (which I try to prevent).

Even you can output the swagger.json like you said, it is still difficult for the people who reads the document to know what is the delimiter.
I recall that when you use @QueryParam("q") List<String> qList in jersey, it will collect all of the values whose names are q and put them together to the list.

e.g. assume the url is something like ?q=1&a=2&q=3&q=4, you'll get a list qList = ["1","3","4"]

your assumption on sample url is correct.
regarding not- intuitive way, well, I guess you're right, but that's the way it is for us right now.
btw if you check the officially referred swagger-ui json (from petstore), it uses it: http://petstore.swagger.io/v2/swagger.json, you'll find this way in use, just search for: ,"description":"Multiple status values can be provided with comma seperated strings"
That is the place that gave me the impression that I have a chance to do it, just maven plugin misses support for that one.

Thanks for the link, l'll look into to see how the swagger.json generates.

perfect, thanks!

I check the samples here
allowMultiple = true will let swagger reader outputs as you expect:
"type" : "array",
  "items":{"type":"string"}

@kongchen
I face the same issue as @typekpb. The SpringMVC app I am working in must use @RequestParam List<String> foo, so I made the change and submitted a PR : https://github.com/kongchen/swagger-maven-plugin/pull/151
Essentially, the problem was that when List, Set, etc was used in a @RequestParam, the SpringSwaggerExtension was not persisting the type of sub-items as "string".