llama version in Minillm

Is it Llama1 or Llama2? Thx

The distilled models and the experiments in our paper are based on LLaMA-1.

Should it be easy to use this repo to KD llama2?

Yes. We have implemented the model parallism and SFT for LLaMA2. The KD scripts are easy to be adapted from LLaMA-1.

It seems that there is no need to modify the src code to adapt LLaMA2, just simply changing the script is enough?

Exactly.

Hello Yuxian, I'm a little curious about the minillm process and the dataset for using, and want to check my understanding. I have two questions

There are 2  datasets used for minillm: use gpt2 for example:

PROMPT_DATA_DIR="${BASE_PATH}/processed_data/dolly/prompt/gpt2/"
LM_DATA_DIR="${BASE_PATH}/processed_data/openwebtext/gpt2/512/10M/"

The first one is also used for sft and kd baseline method, but the second dataset is only for minim, I'm not familiar with kd, and I saw the explanation in the paper and I am confused, which says
Input: Conditional generation dataset D consisting of prompts and ground-truth responses Pre-training corpus **_DPT_** consisting of long-document plain texts
A teacher model with output distribution p
An initial student model **_pre-trained on DPT_**, with the output distribution qθ0 Learning rate η; Batch size M; Clipping Threshold ε

As for my understanding, should these two DPT stand for different meanings? The first DPT is used for calculating language modeling loss LPT = − Ed∼DPT log qθ (d), which is openwebtext/gpt2 here. And the second DPT  is the pretrain data the model used. Like GPT2 or llama, the pretrain data is private. so here we use other pretrain datasets like openwebtext and roberta to calculate  language modeling loss LPT = − Ed∼DPT log qθ (d). This is only because we don't have the real pretrain data? And it could be better if we do have the real pretrain dataset? Is my understanding correct? And, another confusing point here is because the pretrain data we use here is different from the actual model pretrain data. So when we use minillm, do we need to train from scratch using the pretrain data here? Or we can keep this difference and just use the released gpt2 and llama?

I saw the hyperparameter setting for epoch is 10, the dataset is big and I don't have enough gpu for such a huge epoch, is small epoch still works? Such as using epoch 1 instead.

Such two redundant questions and really appreciate your responses, thanks!

We use openwebtext simply because the pre-training data of GPT2 is not available. GPT2 is pre-trained with WebText, which is generally assumed to share the similar distribution with openwebtext. The RoBERTa corpus is a subset of LLaMA's pre-training corpus, which ensures DPT does not introduce extra knowledge beyond pre-training. I think it would not make much difference when using the actual pre-training corpus. When we use MiniLLM, we just use the released GPT2 and LLaMA (DPT can be treated as a regularization).
The SFT baselines should be trained for about 10 epochs before they reach the best performance. The total training steps of MiniLLM are controlled by --total-iters 5000, which corresponds to 6 or 7 epochs. I think 1 epoch is not enough for the models to achive the performance in our paper. (NOTE: this epoch argument refers to the epoch of intruction data: PROMPT_DATA_DIR="${BASE_PATH}/processed_data/dolly/prompt/gpt2/", not openwebtext. Acturally, openwebtext is trained for less than an epoch.)

Thanks, that makes sense!
BTW, I used lora to sft the model of student and teacher(the step to get the initialization models, later be used in minim), which is due to the GPU number constraint for full dimension sft. I still train for 10 epochs, will using lora to do the sft hugely affect the performance of minillm?

Hello Yuxian, would you mind also sharing the link to the dataset of roberta you used before processing? I'm training minillm for llama2, and I saw there are two questions about the roberta dataset. I have tried to download those sub-dataset and tried to combine them by myself. But I am afraid there are some mistakes in my operations. The original dataset file you shared doesn't include roberta, and I want to process it based on llama2's tokenizer.
I'm just using Llama1's processed roberta for training minillm of llama2. And I saw there is only a little difference between llama1's and llama2's tokenizer. I think the influence is small, but it would be better if you could share the roberta dataset link. Thanks!

Thanks, that makes sense!
BTW, I used lora to sft the model of student and teacher(the step to get the initialization models, later be used in minim), which is due to the GPU number constraint for full dimension sft. I still train for 10 epochs, will using lora to do the sft hugely affect the performance of minillm?
I have just finished the lora sft of llama2-1.1B, and in /results/llama2/train/sft, there are 10 folders, each storing the model for one epoch. So I just choose the optimal one based on the 'rougeL score' to be the sft final model?

We haven't tried using lora for MiniLLM. I guess it would not affect the performance much. Choosing the final model based on the 'rougeL score' is fine.

Hello Yuxian, would you mind also sharing the link to the dataset of roberta you used before processing? I'm training minillm for llama2, and I saw there are two questions about the roberta dataset. I have tried to download those sub-dataset and tried to combine them by myself. But I am afraid there are some mistakes in my operations. The original dataset file you shared doesn't include roberta, and I want to process it based on llama2's tokenizer.
I'm just using Llama1's processed roberta for training minillm of llama2. And I saw there is only a little difference between llama1's and llama2's tokenizer. I think the influence is small, but it would be better if you could share the roberta dataset link. Thanks!

It would take some time for us to get the roberta dataset ready. We construct roberta dataset simply by merging those sub-datasets and tokenizing them. Since the dataset is used for regularization and only a small subset of the data is acturally used in training (less than a epoch), little difference in merging sub-datasets will not make great difference.


Support for defining virtual constraints in rule blocks

I'd find it useful to be able to do this:
"foo" {
  left: == ::[left];
  width: == ::[width];
}

as opposed to this:
"foo"[left] == ::[left];
"foo"[width] == ::[width];

I believe my original request is now possible via the parent scope selector:
"foo" {
  left: == ^[left];
  width: == ^[width];
}


wttr.in is down right now

It just says "ERROR".

And now "New feature: multilingual location names wttr.in/станция+Восток (in UTF-8) and location search wttr.in/~Kilimanjaro (just add ~ before)
Follow @igor_chubin for wttr.in updates" regardless of my location requests (curl wttr.in/paris, curl wttr.in/berlin)

Fixed! Please test.
And thank you for reporting

Wow, thanks for the quick fix! Works like a charm again.
Btw: Probs to you for this awesome service (also your cheat.sh).
Do you have a donation link?

@asteinba No, no donation link, but I am very happy if you use the services and you like them


Access control and configuration not working.

I have deployed Karavan in Kubernetes , I am able to open Karavan and create new project but while clicking on access control and configuration tabs getting only white screen. Is the access control feature not yet available? Or do I have to do any other changes to get those.

Access control and configuration pages are not  implemented.
Access control won't be implemented. Instead we add SSO/Keycloak integration in the next release.


Sheet Renaming

Allow the user to rename budgets (and sheets) in the app.

This ability should likely be added both as an option in the sheet settings tab and through a long press action on the sheet's listing in the navigation drawer.


[ PCB Design ] Add Pin header in front of current MPU Port for direct MPU6050 plugin

The noise observed on the SDA and SCL lines of MPU6050 leads to an I2C Packet drop while self-balancing (motors running).
This is related to interference between the BO Motor wires and the long MPU JST Cable.
Shortening the length of I2C lines prevents this issue. Ref #14
This issue aims to add a direct pin header port for direct plug-play and operation of the MPU6050 on the SRA Board

Todo -

[ ] Update test results for direct plugin MPU near the current port
[ ] Test the above thoroughly with self-balancing
[ ] Make changes in the PCB Design
[ ] Updated PCB Fabrication, Assembly
[ ] Rigorous testing for self-balancing and making suitable changes ( like using MPU Offset) in the firmware for 3_MPU and 8_self_balancing

CC - @ChinmayLonkar @Premraj02

@Premraj02 take up this task and post the updates before 2nd November.

As per our testing pin header is not required as we can directly use the shielded cables which resolves the issue,
@Premraj02 you can put up the test results here for the test in which you connected the MPU near the current port.

ping @Premraj02 .Put/link the test results so that I may close this issue.

This test solved the noise issue. So no need to add pin header.


Problems in Mac OS X

I have run the example code (sudo python3 my_experiment.py) on an iMac19.1 with Intel Core i5 3GHz CPU macOS Big Sur and I get the following error:
loading region bounding boxes for computing carbon emissions region, this may take a moment...
454/454... rate=829.41 Hz, eta=0:00:00, total=0:00:00, wall=18:11 -044
Done!
experiment_impact_tracker.compute_tracker.ImpactTracker - WARNING - Gathering system info for reproducibility...
experiment_impact_tracker.compute_tracker.ImpactTracker - WARNING - Done initial setup and information gathering...
experiment_impact_tracker.compute_tracker.ImpactTracker - ERROR - Encountered exception when launching power monitor thread.
--- Logging error ---
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/experiment_impact_tracker/compute_tracker.py", line 202, in launch_impact_monitor
self.p, self.queue = launch_power_monitor(self.logdir, self.initial_info, self.logger)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/experiment_impact_tracker/utils.py", line 83, in wrapper
p.start()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/process.py", line 121, in start
self._popen = self._Popen(self)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/context.py", line 224, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/context.py", line 284, in _Popen
return Popen(process_obj)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/popen_spawn_posix.py", line 32, in init
super().init(process_obj)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/popen_fork.py", line 19, in init
self._launch(process_obj)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/popen_spawn_posix.py", line 47, in _launch
reduction.dump(process_obj, fp)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
AttributeError: Can't pickle local object 'processify..process_func'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/logging/init.py", line 1079, in emit
msg = self.format(record)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/logging/init.py", line 923, in format
return fmt.format(record)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/logging/init.py", line 659, in format
record.message = record.getMessage()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/logging/init.py", line 363, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "/Users/theuser/PycharmProjects/test_green/experiment-impact-tracker/examples/my_experiment.py", line 70, in
my_experiment()
File "/Users/theuser/PycharmProjects/test_green/experiment-impact-tracker/examples/my_experiment.py", line 55, in my_experiment
tracker.launch_impact_monitor()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/experiment_impact_tracker/compute_tracker.py", line 210, in launch_impact_monitor
self.logger.error(ex_type, ex_value,
Message: <class 'AttributeError'>
Arguments: (AttributeError("Can't pickle local object 'processify..process_func'"), '  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/experiment_impact_tracker/compute_tracker.py", line 202, in launch_impact_monitor\n    self.p, self.queue = launch_power_monitor(self.logdir, self.initial_info, self.logger)\n  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/experiment_impact_tracker/utils.py", line 83, in wrapper\n    p.start()\n  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/process.py", line 121, in start\n    self._popen = self._Popen(self)\n  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/context.py", line 224, in _Popen\n    return _default_context.get_context().Process._Popen(process_obj)\n  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/context.py", line 284, in _Popen\n    return Popen(process_obj)\n  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/popen_spawn_posix.py", line 32, in init\n    super().init(process_obj)\n  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/popen_fork.py", line 19, in init\n    self._launch(process_obj)\n  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/popen_spawn_posix.py", line 47, in _launch\n    reduction.dump(process_obj, fp)\n  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/reduction.py", line 60, in dump\n    ForkingPickler(file, protocol).dump(obj)\n')
--- Logging error ---
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/experiment_impact_tracker/compute_tracker.py", line 202, in launch_impact_monitor
self.p, self.queue = launch_power_monitor(self.logdir, self.initial_info, self.logger)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/experiment_impact_tracker/utils.py", line 83, in wrapper
p.start()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/process.py", line 121, in start
self._popen = self._Popen(self)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/context.py", line 224, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/context.py", line 284, in _Popen
return Popen(process_obj)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/popen_spawn_posix.py", line 32, in init
super().init(process_obj)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/popen_fork.py", line 19, in init
self._launch(process_obj)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/popen_spawn_posix.py", line 47, in _launch
reduction.dump(process_obj, fp)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
AttributeError: Can't pickle local object 'processify..process_func'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/logging/init.py", line 1079, in emit
msg = self.format(record)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/logging/init.py", line 923, in format
return fmt.format(record)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/logging/init.py", line 659, in format
record.message = record.getMessage()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/logging/init.py", line 363, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "/Users/theuser/PycharmProjects/test_green/experiment-impact-tracker/examples/my_experiment.py", line 70, in
my_experiment()
File "/Users/theuser/PycharmProjects/test_green/experiment-impact-tracker/examples/my_experiment.py", line 55, in my_experiment
tracker.launch_impact_monitor()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/experiment_impact_tracker/compute_tracker.py", line 210, in launch_impact_monitor
self.logger.error(ex_type, ex_value,
Message: <class 'AttributeError'>
Arguments: (AttributeError("Can't pickle local object 'processify..process_func'"), '  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/experiment_impact_tracker/compute_tracker.py", line 202, in launch_impact_monitor\n    self.p, self.queue = launch_power_monitor(self.logdir, self.initial_info, self.logger)\n  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/experiment_impact_tracker/utils.py", line 83, in wrapper\n    p.start()\n  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/process.py", line 121, in start\n    self._popen = self._Popen(self)\n  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/context.py", line 224, in _Popen\n    return _default_context.get_context().Process._Popen(process_obj)\n  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/context.py", line 284, in _Popen\n    return Popen(process_obj)\n  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/popen_spawn_posix.py", line 32, in init\n    super().init(process_obj)\n  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/popen_fork.py", line 19, in init\n    self._launch(process_obj)\n  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/popen_spawn_posix.py", line 47, in _launch\n    reduction.dump(process_obj, fp)\n  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/reduction.py", line 60, in dump\n    ForkingPickler(file, protocol).dump(obj)\n')
Traceback (most recent call last):
File "/Users/theuser/PycharmProjects/test_green/experiment-impact-tracker/examples/my_experiment.py", line 70, in
my_experiment()
File "/Users/theuser/PycharmProjects/test_green/experiment-impact-tracker/examples/my_experiment.py", line 55, in my_experiment
tracker.launch_impact_monitor()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/experiment_impact_tracker/compute_tracker.py", line 202, in launch_impact_monitor
self.p, self.queue = launch_power_monitor(self.logdir, self.initial_info, self.logger)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/experiment_impact_tracker/utils.py", line 83, in wrapper
p.start()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/process.py", line 121, in start
self._popen = self._Popen(self)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/context.py", line 224, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/context.py", line 284, in _Popen
return Popen(process_obj)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/popen_spawn_posix.py", line 32, in init
super().init(process_obj)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/popen_fork.py", line 19, in init
self._launch(process_obj)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/popen_spawn_posix.py", line 47, in _launch
reduction.dump(process_obj, fp)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
AttributeError: Can't pickle local object 'processify..process_func'
Any idea what may be causing this error? I have googled this bug but found almost nothing about it.

Hi, I believe this is fixed in the main branch and due to a difference in multiprocessing in python 3.8. See https://github.com/Breakend/experiment-impact-tracker/issues/40 . Let us know if you still see the issue on the main branch codebase

Hi, I believe this is fixed in the main branch and due to a difference in multiprocessing in python 3.8. See https://github.com/Breakend/experiment-impact-tracker/issues/40 . Let us know if you still see the issue on the main branch codebase

Hi, I believe this is fixed in the main branch and is due to a difference in multiprocessing in python 3.8. See #40 . Let us know if you still see the issue on the main branch codebase

Thank you! It works 100%...however, when I run generate-carbon-impact-statement /tmp/tmphgefknol/ "USA" I get:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/bin/generate-carbon-impact-statement", line 120, in
sys.exit(main(sys.argv[1:]))
File "/Library/Frameworks/Python.framework/Versions/3.9/bin/generate-carbon-impact-statement", line 58, in main
ssc = pd.read_csv("https://raw.githubusercontent.com/country-level-scc/cscc-database-2018/master/cscc_db_v2.csv")
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pandas/io/parsers.py", line 605, in read_csv
return _read(filepath_or_buffer, kwds)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pandas/io/parsers.py", line 457, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pandas/io/parsers.py", line 814, in init
self._engine = self._make_engine(self.engine)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pandas/io/parsers.py", line 1045, in _make_engine
return mapping[engine](self.f, **self.options)  # type: ignore[call-arg]
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pandas/io/parsers.py", line 1862, in init
self._open_handles(src, kwds)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pandas/io/parsers.py", line 1357, in _open_handles
self.handles = get_handle(
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pandas/io/common.py", line 558, in get_handle
ioargs = _get_filepath_or_buffer(
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pandas/io/common.py", line 288, in _get_filepath_or_buffer
req = urlopen(filepath_or_buffer)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pandas/io/common.py", line 194, in urlopen
return urllib.request.urlopen(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 214, in urlopen
return opener.open(url, data, timeout)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 517, in open
response = self._open(req, data)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 534, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(*args)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 1385, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 1345, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)
Do you have any idea what causes that error? Thank you in advance...

Hi, I believe this is fixed in the main branch and is due to a difference in multiprocessing in python 3.8. See #40 . Let us know if you still see the issue on the main branch codebase

Thank you! It works 100%...however, when I run generate-carbon-impact-statement /tmp/tmphgefknol/ "USA" I get:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/bin/generate-carbon-impact-statement", line 120, in
sys.exit(main(sys.argv[1:]))
File "/Library/Frameworks/Python.framework/Versions/3.9/bin/generate-carbon-impact-statement", line 58, in main
ssc = pd.read_csv("https://raw.githubusercontent.com/country-level-scc/cscc-database-2018/master/cscc_db_v2.csv")
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pandas/io/parsers.py", line 605, in read_csv
return _read(filepath_or_buffer, kwds)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pandas/io/parsers.py", line 457, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pandas/io/parsers.py", line 814, in init
self._engine = self._make_engine(self.engine)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pandas/io/parsers.py", line 1045, in _make_engine
return mapping[engine](self.f, **self.options)  # type: ignore[call-arg]
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pandas/io/parsers.py", line 1862, in init
self._open_handles(src, kwds)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pandas/io/parsers.py", line 1357, in _open_handles
self.handles = get_handle(
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pandas/io/common.py", line 558, in get_handle
ioargs = _get_filepath_or_buffer(
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pandas/io/common.py", line 288, in _get_filepath_or_buffer
req = urlopen(filepath_or_buffer)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pandas/io/common.py", line 194, in urlopen
return urllib.request.urlopen(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 214, in urlopen
return opener.open(url, data, timeout)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 517, in open
response = self._open(req, data)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 534, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(*args)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 1385, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/urllib/request.py", line 1345, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)
Do you have any idea what causes that error? Thank you in advance...

I already solved the SSL: CERTIFICATE_VERIFY_FAILED problem (https://stackoverflow.com/questions/50236117/scraping-ssl-certificate-verify-failed-error-for-http-en-wikipedia-org), but I still have 0 impact in the carbon statement. :(

I already solved the SSL: CERTIFICATE_VERIFY_FAILED problem (https://stackoverflow.com/questions/50236117/scraping-ssl-certificate-verify-failed-error-for-http-en-wikipedia-org), but I still have 0 impact in the carbon statement. :(

Can you provide logs for this issue as well to help us solve it? Do you have PowerGadget installed on your Mac?
What did you do to solve the SSL issue? If there are any changes on our side, we'd like to make sure they're addressed.
Thanks!

Can you provide logs for this issue as well to help us solve it? Do you have PowerGadget installed on your Mac?
What did you do to solve the SSL issue? If there are any changes on our side, we'd like to make sure they're addressed.
Thanks!

Hi! I solved the SSL problem using the recommendations in the StackOverFlow link. It wasn't a problem from experiment-impact-tracker. So, I think it was a good idea to have raised an issue to avoid downloading the country data. About that, I have a question. How can I interpret a negative carbon social cost of a certain execution?

Hi! I solved the SSL problem using the recommendations in the StackOverFlow link. It wasn't a problem from experiment-impact-tracker. So, I think it was a good idea to have raised an issue to avoid downloading the country data. About that, I have a question. How can I interpret a negative carbon social cost of a certain execution?

Hi, we've fixed it so it doesn't download anything in the main branch now. A negative social cost of carbon can be explained like we do in this paper: https://arxiv.org/pdf/2007.02786.pdf in appendix A1.
"Note the Canada-specific social cost of carbon is negative in this case as explained by Ricke et al. (2018): “The CSCC captures the amount of marginal damage (or, if negative, the benefit) expected to occur in an individual country as a consequence of additional CO2 emission... Northern Europe, Canada and the Former Soviet Union have negative CSCC values because their current temperatures are below the economic optimum.”
We are still considering whether we may want to include a non-country-specific cost of carbon for our tracker, but this is the explanation we would attach for now.

Hi, we've fixed it so it doesn't download anything in the main branch now. A negative social cost of carbon can be explained like we do in this paper: https://arxiv.org/pdf/2007.02786.pdf in appendix A1.
"Note the Canada-specific social cost of carbon is negative in this case as explained by Ricke et al. (2018): “The CSCC captures the amount of marginal damage (or, if negative, the benefit) expected to occur in an individual country as a consequence of additional CO2 emission... Northern Europe, Canada and the Former Soviet Union have negative CSCC values because their current temperatures are below the economic optimum.”
We are still considering whether we may want to include a non-country-specific cost of carbon for our tracker, but this is the explanation we would attach for now.

Thank you!

Thank you!

It seems like this issue is resolved, but please re-open if this is still a problem. Thanks!

It seems like this issue is resolved, but please re-open if this is still a problem. Thanks!


Is the sdk of the golang version not updated? I didn't see how to use it either

Is the sdk of the golang version not updated? I didn't see how to use it either

Hi there! @linktomarkdown At the moment we're not currently supporting this, we don't have any documentation available at the moment for it but once it becomes available we'll let you know!


Slug Uniqueness Error: Can't invite/create both users having the ids<EMAIL_ADDRESS>and<EMAIL_ADDRESS>respectively

The system created a user successfully having the id<EMAIL_ADDRESS>But when it tried to create another user by the same email user name (abc) at a different domain (gmail.com), i.e<EMAIL_ADDRESS>the following error is reported.
ERROR: insert into users (accessibility, bio, ...) values (NULL, NULL, NULL, '2016-04-01 15:38:23.989', 1<EMAIL_ADDRESS>NULL, 'en_US', NULL, NULL, NULL, 'abc', ...) -
ER_DUP_ENTRY: Duplicate entry 'abc' for key 'users_slug_unique'
This happened when I tried to invite two users having these two email ids<EMAIL_ADDRESS>and<EMAIL_ADDRESS>Probably, the answer is to generate the slugs like this: abc1, abc2, and so on

Hi @ramandhingra can you please update this to include full reproduction steps, version & env information as per the issue template? I haven't been able to reproduce this by inviting two users as you suggested.
Ghost already does produce incremental slugs, and as far as I can tell that behaviour is working as expected when inviting people.

@ramandhingra as far as I can tell from testing, this issue is not present in the current version of Ghost. I'm going to close this for now, but will reopen if further information is provided showing how to reproduce it.


Empty metadata fields fail to hide or display emptyText

Describe the bug
Some metadata fields that resolve to an empty value do not display the emptyText value.
Environment

AEM Version: 6.4
Asset Share Commons Version: 1.6.0

To Reproduce
Steps to reproduce the behavior:

Install the default Asset Share Commons
Go to /content/dam/asset-share-commons/en/public/pictures/igor-son-320878.jpg/jcr:content/metadata
Remove properties "tiff:ImageLength" and "tiff:ImageHeight"
Add empty property "dc:description"
Open up http://localhost:4502/editor.html/content/asset-share-commons/en/dark/details/image.html/content/dam/asset-share-commons/en/public/pictures/igor-son-320878.jpg
Notice that both Description and Resolution are still displayed, even though empty.
Configure either metadata component with Empty Text
Notice that the emptyText still does not display.

Expected behavior
When these metadata fields are empty the field should be hidden from the rendered UI.
Additional context
I believe the issues is in https://github.com/Adobe-Marketing-Cloud/asset-share-commons/blob/develop/core/src/main/java/com/adobe/aem/commons/assetshare/components/details/impl/MetadataImpl.java - line 155
return combinedProperties.get(getPropertyName()) == null;

should instead be
return StringUtils.isBlank(return combinedProperties.get(getPropertyName()));

You wanna PR/commit since you did all the heavy work? :)  If not easy enough to do it on this end.

sure thing, I think I can handle this one ;)

merged to develop and slated for 1.6.10


Immutable constructor argument order issues result in NullReferenceException

For example:
    class FooOptions
    {
        public FooOptions(string option, Uri foo)
        {
            Foo = foo;
            Option = option;
        }

        [Option("foo")]
        public Uri Foo { get; }

        [Option("option")]
        public string Option { get;  }
    }

Will result in:
nhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at CommandLine.Infrastructure.ReflectionHelper.CreateDefaultImmutableInstance(Type type, Type[] constructorTypes)
   at CommandLine.Core.ReflectionExtensions.AutoDefault(Type type)
   at CommandLine.Core.InstanceChooser.<>c__DisplayClass1_0.<MatchVerb>b__1()
   at CommandLine.Core.InstanceBuilder.<>c__0`1.<Build>b__0_0(Func`1 f)
   at CSharpx.MaybeExtensions.MapValueOrDefault[T1,T2](Maybe`1 maybe, Func`2 func, T2 noneValue)
   at CommandLine.Core.InstanceBuilder.Build[T](Maybe`1 factory, Func`3 tokenizer, IEnumerable`1 arguments, StringComparer nameComparer, Boolean ignoreValueCase, CultureInfo parsingCulture, IEnumerable`1 nonFatalErrors)
   at CommandLine.Core.InstanceChooser.MatchVerb(Func`3 tokenizer, IEnumerable`1 verbs, IEnumerable`1 arguments, StringComparer nameComparer, CultureInfo parsingCulture, IEnumerable`1 nonFatalErrors)
   at CommandLine.Core.InstanceChooser.<>c__DisplayClass0_0.<Choose>b__0()
   at CommandLine.Core.InstanceChooser.Choose(Func`3 tokenizer, IEnumerable`1 types, IEnumerable`1 arguments, StringComparer nameComparer, CultureInfo parsingCulture, IEnumerable`1 nonFatalErrors)
   at CommandLine.Parser.ParseArguments(IEnumerable`1 args, Type[] types)
   at CommandLine.ParserExtensions.ParseArguments[T1,T2](Parser parser, IEnumerable`1 args)
   at CommandLineParserTest.Program.Main()

The ideal solution IMO would be to find the right ctor by param names (rather than order). But even if that's not implemented, a better and more meaningful exception would be very helpful in debugging such issues.

You're right, in theory the order of properties/fields in a class is undefined (although in practice, it's processed line-by-line).  We should not rely on the order as it's defined in the class.

Agreed. BTW, this can get even more confusing when option class inheritance is in play. Spoiler: the inherited options are expected at the end of the constructor parameter list.

Is there any interest in supporting direct property setters to bypass the constructor?
This defeats the point of immutable types (I suppose one could make the setters private but it would still not be truly immutable)

The Exception, as described in #499, have been changed to:

Type appears to be immutable, but no constructor found for type <typeInfo.FullName> to accept values.

@moh-hassan I would add some text like:

Note that constructor argument order must match property definition order in the Options class (inherited options are expected at the end of the constructor parameter list).

Otherwise a client may not understand why no matching constructor was found.

You're right, in theory the order of properties/fields in a class is undefined (although in practice, it's processed line-by-line). We should not rely on the order as it's defined in the class.

I have had a report of at least one case where the properties returned by Type.GetProperties() did not match document order and as a result, it threw an exception. I do not yet know what caused it to return them in a different order.
sealed class CommandLineArgs
{
    public CommandLineArgs(string inputFilename, string? outputFilename)
    {
        InputFilename = inputFilename;
        OutputFilename = outputFilename;
    }

    [Value(0, Required = true, Hidden = true)]
    public string InputFilename { get; }

    [Option('o', "out")]
    public string? OutputFilename { get; }
}

  Unhandled Exception: System.InvalidOperationException: Type WTG.Glow.ConfigurationModel.Data.Generator.CommandLineArgs appears to be Immutable with invalid constructor. Check that constructor arguments have the same name and order of their underlying Type.  Constructor Parameters can be ordered as: '(outputfilename, inputfilename)'
     at CommandLine.Core.InstanceBuilder.BuildImmutable[T](Type typeInfo, Maybe`1 factory, IEnumerable`1 specProps, IEnumerable`1 specPropsWithValue, List`1 setPropertyErrors)
     at CommandLine.Core.InstanceBuilder.<>c__DisplayClass0_0`1.<Build>b__5()
     at CommandLine.Parser.ParseArguments[T](IEnumerable`1 args)
     at WTG.Glow.ConfigurationModel.Data.Generator.Program.Main(String[] args)

To not introduce breaking changes the default/classic behaviour should remain intact which is: the immutable logic assumes the constructor parameters are in the same order as the properties are found on the class, top to bottom;

As it currently stands, both the order and the names are required to match. If we simply remove the requirement for the order to match, then the bulk of the change in behaviour will be with code that is already broken. The Only case I can think of where code transitions from "working" to "broken" is if people define multiple parameters/properties/fields where the name only differs by case. Such code would seem problematic to me even without this change.
If we are worried about this change, then perhaps add another property to ValueAttribute and OptionAttribute which allows the developer to explicitly specify the constructor argument name (using a case sensitive match) then fall back to the existing behaviour for "whatever is left over".

This appears to be culture related. In particular, if I switch to tr-TR then the expected argument order changes causing the exception. If I set the culture to en-US then it works fine.
I would consider this to be a fairly significant bug as it means that immutable argument objects can't be used in any application that might reasonably be used in a region like Turkey.


Python backdoor

Create a script that opens a backdoor on a system. For example, open a port that an attacker can use to get access
I'd also love to work on this.

You may start working on this @deadex-ng

Hey @deadex-ng Any updates on this issue?

@SANTHOSH17-DOT - I've been busy these past few weeks with other personal commitments. I'm working on a reverse shell though, I'll make a PR soon.

Okay @deadex-ng

i would like to work on the issue under JWOC

@Codey001 You may work on backdoors other than reverse shell


Feat: Cofigurable Interface Location

It would be nice if we can configure interfaces directory. Currently it scans app/interfaces dir for interfaces.
A new config property interfacesPath can be added
May I make a PR for this?

Done in 3.4.0. Modify package.json as follows. This also works for models.
//...
"imports": {
  // ...
  "#interfaces/*": "./app/custom/path/interfaces/*.js"
  // ...
}
//...

That's great... :)


Form checkmark icon not converted

When a PDF form with checkboxes checked is converted to an image, those checkmarks icons are missing.
I tried to combine disableFontFace and useSystemFonts options but without success. Any solution to this? Thanks!

When a PDF form with checkboxes checked is converted to an image, those checkmarks icons are missing. I tried to combine disableFontFace and useSystemFonts options but without success. Any solution to this? Thanks!

Could you share such file with me?

Sorry but I can't share the file itself for property reasons, however I can share some more details. Seem to be related to a missing standard font FoxitDingbats.
This is how the character looks like in the PDF:

Log:
Warning: fetchStandardFontData: failed to fetch file "FoxitDingbats.pfb" with "UnknownErrorException: The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.".
Whe I tried to set standardFontDataUrl following messages:
Warning: fetchStandardFontData: failed to fetch file "foxitDingbats.pfb" with "UnknownErrorException: Unable to load font data at<EMAIL_ADDRESS>Warning: fetchStandardFontData: failed to fetch file "foxitDingbats.pfb" with "UnknownErrorException: Unable to load font data at ../node_modules/pdfjs-dist/standard_fonts/.

Please try v3.3.0


Measured flow rate with IPA half of the set flow

Hi,
We are using this library to read out an  SLF3S-1300F evaluation kit. To validate that the flowsensor is working correctly we calibrated it using a syringe pump with a syringe filled with IPA. When we use the viewer software we measure the same flow rate as that we set the syringe pump to. However, when we use this library we get only half the flow rate. We did set the sensor to IPA using sensor = Scc1Slf3x(device, SlfMode.LIQUI_2)
Could it be that somewhere in the library the data conversion goes wrong, causing the flow rate to be halved?

yes this seems an issue with this library. When updating the measurement command the flow unit and scale needs to be read out and updated, else the wrong scale might be applied.
In the example this is done, so it should work correctly
flow_scale, unit = sensor.get_flow_unit_and_scale()
Do you use the flow scale that is read after the liquid mode is set?

Ah no sorry I did not use the flow_scale. After dividing by flow_scale it gives the correct flow. Thank you very much, this solved the issue.


How Clair can identify package "version" in an image layer?

Hi, The document says Clair uses static program analysis and doesn't run any containers to analyze image vulnerability. My question is:

How Clair can identify package "version" without running the image container?
If the image does not run as a container, how Clair find the package list under such as /var/lib/rpm/packages in an image?

Thanks.

Container image is just a tarball of a file system. In Docker container image, the current file system can be computed by combining layers, which contain add/delete/change information to a file system.
If you decompress and look into the layers inside container images, for example in Docker Image, you can find the installed package information files e.g. /var/lib/rpm/packages, which contain the package versions.

Thanks, I find /var, /etc, /usr under /var/lib/docker/overlay2/l/{layerHashCode}/.
And I also find installed package information under e.g. /var/lib/docker/overlay2/l/{layerHashCode}/var/lib/rpm.  :)

I wonder if Clair inspects the entire filesystem of a layer to scan the OS-level packages or Clair only inspect the default OS package repository (which is actually not a thorough scan ... :( ), e.g. /var/lib/rpm/packages?

No, it doesn't. Clair finds OS-level package managers that it can detect by inspecting files at specific locations. Pre-release version on master branch can find multiple package managers for a container.


Check if a value implements a specific definition.

Is your feature request related to a problem? Please describe.
While using the GO library and processing a compiled cue value I would like to check if this value implements a specific definition. As far as I can tell there is no way to compare if a value implements a specific definition or not.
Describe the solution you'd like
A value comparison to check if a value implements a definition or not.
Describe alternatives you've considered
I have tried to get the definition and perform an Equals between the definition and the value in question this returns false which I expected.
personDef := cueSpec.LookupPath(cue.ParsePath("Person"))
contactValue.Equals(personDef)

Additional context
For example if I have the following
#Person: {
  firstName: string
  lastName: string
  phone?: string
}

contact: #Person & {
  firstName: "John"
  lastName: "Doe"
}

With the GO library when I come across the contact value I want to know if it implements the definition #Person or not.

use cue.Value.Unify which is the equivalent of &<EMAIL_ADDRESS>I believe mutual Subsumes may equate to equality. (@mpvl ?)

Also note that the CUE GitHub repo has discussions enable for question / answers


Dumping SDP content beforce call establishment.

Hi @alfredh,
Would you please help me to dump SDP content before call establishment?
I found that there exists method for debugging during call, but I want to dump sdp content before starting a call.
Regards,
Ali

hi @alishir
I added some debug here:
https://github.com/alfredh/baresip/blob/master/src/call.c#L1589
just change the #if 0 to #if 1 and compile. You should then see the
SDP offer for the outgoing INVITE.
Is this what you are after ?
Alfred

hi @alishir the commit above should address your question.

Hi @alfredh sorry for late comment, yes that commit solved the problem, thanks for your commit.


Stop Watch

Describe the project
This project is totally based on HTML, CSS, Javascript. It will provide same functionality like Stop Watch used in real world.
Issue Type:

[ ] Bug Report
[ ] Feature Request
[ ] Documentation
[x] New Project

Additional context
The major functionality are :

Start- to start the timer
Stop
Reset
-All this functionalities will be implemented using Javascript. And Beautify using CSS and HTML.

Please assign me this issue @TusharKesarwani

Please assign me this issue @TusharKesarwani under SSOC 2.0

Sir @harshit-paneri, Please assign me this issue under SSOC 2.0
It will look like mention below with proper functionality of Start, Reset, Stop

It was already there in projects which I missed earlier to recognize


complex logicals for story blocks

I followed the links you had sent me in a previous email about the story blocks, they were very helpful.  However, I can't seem to get more than "data use" contentType to show up...
From @MortenHofft via email:

I know what the problem is. The filter countriesOfCoverage and countriesOfResearcher filters out the news stories, as no news has a value. I suppose ideally you should be able to do things like combining AND and ORs in a more complex manner (contentType=dataUse AND countriesOfCoverage=US) OR (contentType=News) A potential workaround for now could be to have multiple sections? 3 events. 3 news stories. 3 dataUse. ?

Could you please create an issue and describe what kind of options you need?

A single page that has three sections: news, events, and data use, would be sufficient.  I tried to create it, but found that when I stacked story blocks, the last block populates the top block, and the other two are left blank. See: https://hp-bison.gbif-staging.org/stories_stacked/
I can make three separate pages:

https://hp-bison.gbif-staging.org/stories_datause/
https://hp-bison.gbif-staging.org/stories_events/
https://hp-bison.gbif-staging.org/stories_news/

but that's a bit clunky.  Essentially, I'm interested in a single page that provides a filtered view of the most recent, relevant news, events and data use stories from GBIF.org.  No rush to get this done! It will be a nice feature but isn't hindering any work.

That is a bug - I will look. I'm guessing that the random ID function isn't doing a good job. So the same container ID is used for all, and hence only one is updated

turns out that Jekyll themes cannot inherit plugins. So I've changed it to use a less ideal random based on timestamps. That doesn't require a plugin and will work out of the box. And then there is now also the option to provide explicit IDs for the story that will be used if present. That should solve it.

Works beautifully, thank you! If anyone finds this and is looking for the end result, you can start here: https://github.com/gbif/hp-bison/blob/master/stories.md


FIX: Doc comment package imports

Corrects the doc comment examples package import from older:
import 'package:preact_signals/preact_signals.dart';

to new and correct:
import 'package:signals/signals.dart';

Thanks Mike!


Last modification date shouldn't be updated for every entry

The last modification date changes for all the entries when a new article is added to the system, we should keep the last modification date for other files, maybe read it from the original MD file and use that as a source of truth?

This is now fixed on main.


Include SharedAccessSignature in SB & EH connection string model

#11893 and #11894 are issues requesting a parser for Service Bus and Event Hubs connection strings.
We already have a method parseConnectionString<T>(connectionString): T exposed from @azure/core-amqp that does something like this. The differences are

This method uses a type variable. The user is expected to pass either EventHubConnectionStringModel or ServiceBusConnectionStringModel or any type of their choice. If a user does not pass any type variable, they get a json object representing all the key value pairs in the connection string, but no help on the names of the keys.
The models allow more than the restricted set of values listed in #11893 and #11894
The models reflect the keys in the connection string as is and does not use the custom names like FullyQualifiedNamespace or EventHubName
The method does not do any validation listed in #11893 and #11894

The main motivation behind the issues that were logged is to assist with transforming a connection string for use with credential-based client creation. With this PR, the parseConnectionString method along with the EH & SB connection string models are good enough for the time being, though not perfect.
@richardpark-msft, @HarshaNalluru, @bterlson, @jsquire, Thoughts?

Looks like the catch is going to be in making the SharedAccessKey and SharedAccessKeyName optional in the EH & SB connection string models. That would be a breaking change for core-amqp

The models allow more than the restricted set of values listed in #11893 and #11894
The models reflect the keys in the connection string as is and does not use the custom names like FullyQualifiedNamespace or EventHubName
The method does not do any validation listed in #11893 and #11894

I've no objections to writing this off as a language idiom, if that's the will of the JS team.  The intent behind the issues is:

Ensure that the connection string parsed is a well-formed and valid connection string for the service.  If the client would reject it, the parse method should likewise reject it.   Without the specifics of the domain logic, the value of having the parser in each client library is weakened;  it would potentially be better as a general-purpose parser in the Core library.

Ensure that the names from the output of the parser to the input of creating the clients.  As a caller, knowing that I have to translate EntityPath to EventHubName isn't overly obvious, for example.

Thanks all
It does look like there are limitations to the parseConnectionString in core-amqp that we would not want to tie ourselves to.
Closing in favor of #11949


Write a C++ program to find square of a number

Description
Write a C++ program to find square of a number
Input  : 5
Output : 25

How to contribute

Save the solution in FindSquareOfANumber.cpp file
Add FindSquareOfANumber.cpp file in find-square-of-a-number folder

assign me

assign me

!assign

!assign

Hey @destroyer5067, this issue is already assigned to @SidharthSarangi !!!
Please choose another issue.
Thanks for your interest in contributing to this project.


signInWithPassword() returns null

Bug report
I have been able to create a successful signup flow but now I cannot sign in.
The signup triggers my user database to insert a row with their uuid as the key.
From the documentation:
const { data, error } = await supabase.auth.signInWithPassword({
  email<EMAIL_ADDRESS>  password: 'example-password',
})

My Code:
  async function handleLogin() {
        console.log("Login Function running")
    if (title == "Login") {
      const { user, error } = await supabaseClient.auth.signInWithPassword({
        email: email,
        password: password,
      });
      if (user) {
        showAlert = false
        goto("/");
      } else {
        showAlert = true
        console.log("NOT A USER");
        console.log(error);
      }
    }
  }

Describe the bug
Returns null
To Reproduce
Use the function yourself.
Expected behavior
Gets user data.
Additional context
Better documentation is needed on virtually every feature of this product.

Could you please add additional context?
What is the title variable in if (title == "Login")?
For example, Im not sure why you only used a == vs a ===
Also, signInWithPassword() is not part of the auth helpers library, it is from the supabase-js library so putting an issue here will not help you find an answer.

signInWithPassword does not return a user object but rather a data object that contains a user object: https://supabase.com/docs/reference/javascript/auth-signinwithpassword
So you need to do the following instead:
const { data: { user }, error } = await supabaseClient.auth.signInWithPassword({
        email: email,
        password: password,
      });


custom unhandled exception handler

how can i custom the unhandled exception response?

you can write your own exception handler middleware and register it in the pipeline instead of app.UseDefaultExceptionHandler()
have a look at the source code of the built-in handler to get idea.

Thank you very much
This is what I need!


Support Python 3

What does this PR do?
Marathon should support Python 3
Motivation
🐍 3⃣ 🚂
Review checklist

[x] PR has a meaningful title or PR has the no-changelog label attached
[x] Feature or bugfix has tests
[x] Git history is clean
[ ] If PR impacts documentation, docs team has been notified or an issue has been opened on the documentation repo
[ ] If PR adds a configuration option, it has been added to the configuration file.

Additional Notes
Anything else we should know when reviewing?

Codecov Report

Merging #2871 into master will decrease coverage by 5.88%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2871      +/-   ##
==========================================
- Coverage   84.85%   78.96%   -5.89%
==========================================
  Files         658        7     -651
  Lines       37029      290   -36739
  Branches     4394       42    -4352
==========================================
- Hits        31420      229   -31191
+ Misses       4323       54    -4269
+ Partials     1286        7    -1279


Reduce binary size of kairos components

Is your feature request related to a problem? Please describe.
Currently UKI can suffer of hard limit on the EFI files meant to be booted. This is problematic as we hit https://github.com/systemd/systemd/issues/25911 when trying to build big images.
Describe the solution you'd like
In order to optimize the size of the images, we should try to reduce the image size of the golang binaries we bundle in the image, for instance:

kairos-agent

[x] https://github.com/kairos-io/kairos-docs/pull/151

immucore
kcrypt
kcrypt-challenger
luet
provider-kairos
edgevpn
...

Also, similarly we can try to compress the k3s binary as well.
Describe alternatives you've considered
N/A
Additional context
This is partially related to https://github.com/kairos-io/kairos/issues/2283, but that story is just about the ubuntu base image dependencies.
To strip binaries, we need to change how we build/package them in kairos-io/packages.
Build phase:
During build, we can specify the -w and -s build flags that strip part of the debug symbols, for instance:
go build -ldflags "-w -s"

For compressing I suggest to use upx right after build.  Closing.


args_loader upgrade

Hello,
according to #60 issue, the core/args_loader.py is not working well and does not consider all possible commands. we can add a task to replace --method-args port_scan_stealth with --method-args port_scan_stealth=True. the default values for any key would be True.
e.g. --method-args port_scan_stealth&port_scan_ports=1,2,3&dir_scan_random_agent would be equal to --method-args port_scan_stealth=True&port_scan_ports=1,2,3&dir_scan_random_agent=True
let me know if anyone would like to work on this.
Best Regards.

I tried understanding the code but I couldn't connect it

Hey,
@pradeepjairamani I will take care of this.
thanks.

Fixed.


Inconvenient plugin installation process in the helm chart

Hello!
Problem:
At this moment all plugins install to dir in ephemeral storage /app/packages of the backstage container, in this case data will be lost after restart. I can't persist this directory also via k8s pvc, backstage files will be overriten.
In addition after installing the plugin through yarn, you also need to add some typescript files, which is also not very convenient.
Question:
Is there any normal way to install backstage plugins in helm version?

Hi @melghors, currently I don't think so. Currently backstage/backstage only supports plugin installations through NPM packages and (as you've also noted) they require changes to the instance codebase. The only proper way as of now, is to:

Create a new backstage instance through @backstage/create-app
Customize it (change UI, add/remove plugins), etc.
Create a new container image (you can use yarn build-image command)
Push this into any container registry
Reference the new image through backstage.image helm chart property

Hi @melghors , did you find my answer useful? Is there anything else we can help you with at this moment? I'll close the issue otherwise.


Creating a database on Postgres SQL instead of Google Sheets.

The database was created but we were facing technical difficulties integrating the database from Postgres SQL to Softr

The integration was successful with the help of Softr customer support. The databse is now hosted online through Neon.Tech platform for free.

All integrations are fixed. However, the images are not displayed correctly on the student profile page on Softr.

Images are now displayed. The problem was fixed by changing the data type of "Image", "CV", and "GPA" fields to text. Converting the image to text is done by Softr itself which makes this solution convenient.


Expand cargo-binary integration to support drop-in replacements for cargo like xargo.

https://github.com/roblabla/cargo-travis/issues/34#issuecomment-420010176

See also https://github.com/crate-ci/escargot/issues/12

This crate uses cargo_metadata, which already allows drop-in replacements through the CARGO env var: https://github.com/oli-obk/cargo_metadata/blob/master/src/lib.rs#L302


dpo example just crashed on single GPU.

Hello trl team,
The provide code for dpo.py is crashed on single GPU.
I also changed, batch size from 4 to 2, and try different max length.
And also try unsloth library but not working.
Kindly show a colab demo.

@imrankh46  can you paste in some more info like the actual error etc.


User management does not work properly

As admin I go to the manage user and the list is empty while the DB has more than 1 user.
I should see them all.
Also in the create user the organization list/combo is empty could generate problems

Are you sure that you are logued in. It works for me.

now it works


Dbus Support

Here is a dbus implementation. It got all the corresponding functions.
During tests I noticed that the spotify client does not handle all methods of the dbus interface well, although it offers them.
Somehow shuffeling, setting volume and loop status work not as expected.
Quering the attribute does not return the expected value and setting it
has no effect. This was also tested with dbus-send. So it's not the lisp implementation's fault.
Play does not have an effect. One has to use PlayPause. A workaround would be to use PlayPause but check the PlaybackStatus beforehand.

Hey, thanks for the contribution! Also, forgive me for the huge delay.
I'll take a look at this code and add it to the main repository in the next few days, that's a promise!
Thanks again! :smile:

haha awesome! Hope it helps. I saw you progressed in the meantime, so this might need an update. Let me know if there is anything I can help with.


Add DynamoDB tests for update_item() with UpdateExpression, support spaces.

Fixes #745.

Coverage decreased (-0.08%) to 94.198% when pulling 2a32bb9f80804c86a9b2727c266d7a80eed143f4 on nfvs:dynamodb_expression into 1c61498cc8fb80157638709583216282a7d469e9 on spulec:master.

Coverage decreased (-0.08%) to 94.198% when pulling 2a32bb9f80804c86a9b2727c266d7a80eed143f4 on nfvs:dynamodb_expression into 1c61498cc8fb80157638709583216282a7d469e9 on spulec:master.

@spulec I fixed a bug with the initial commit which fixed the Travis build

Thanks!


Add docker build scripts (#22)

Added AWS SDK CPP v1.9 build script and patch file

Updated the devtoolset version to 11

Fixed the AWS SDK build script to use rpmbuild macros and build the RPM

Removed the old AWS SDK spec file

Added shebang and removed some unused variables

Fixed the path for bash script

Fixed the absoulte path for the patch file

Added some variables in double quotes to prevent globbing

Added some more variables in double quotes to prevent globbing

Fixed the spec to remove old rpm, remove leftover files/dirs and move the rpm to the artifacts dir

Fixed the shellcheck errors

Added shellcheck directive to skip source environment error

Add Dockerfiles and docker build scripts

add .dockerignore

rename client build script

update SCRIPT_DIR command

Needed to change:
Can get the wrong path if called by a script in another dir.

update docker build scripts and dockerfiles

Fix cache permissions for go build

add build_datamover.sh

Add support for multiple blobs

add missing artifact blobs

add build_mlnx-tools.sh

create rpmbuild dir

Revert "Added shellcheck directive to skip source environment error"

This reverts commit 1b63b3a4134f83a195b5417d68e9e9bc7ac81a77.

Revert "Fixed the shellcheck errors"

This reverts commit ca0a6be31db040f96d3c1862f2a2a985deb5ec37.

Revert "Fixed the spec to remove old rpm, remove leftover files/dirs and move the rpm to the artifacts dir"

This reverts commit 7148fae464eb4fa687e9c39742e8ca9ca80de211.

Revert "Added some more variables in double quotes to prevent globbing"

This reverts commit 93e21740e71774645fd15b89c7b062f26bbfb5df.

Revert "Added some variables in double quotes to prevent globbing"

This reverts commit 23e707eff27a6aac707816edd9baaf51611e639f.

Revert "Fixed the absoulte path for the patch file"

This reverts commit 04e438452e653c30ca0317d6c8473f6e99c5c28d.

Revert "Fixed the path for bash script"

This reverts commit a212ed405867996515312aa3112afeada5783bd7.

Revert "Added shebang and removed some unused variables"

This reverts commit 63b2d71045a474b9d022d00dc7d07f6f3013cc88.

Revert "Removed the old AWS SDK spec file"

This reverts commit fa2b469eb261e04cc9945bd6528bc14483f9b2f4.

Revert "Fixed the AWS SDK build script to use rpmbuild macros and build the RPM"

This reverts commit e434107d95847e7307574a97e5bab91df511fdd5.

Revert "Updated the devtoolset version to 11"

This reverts commit f337fe1c7d85138a9f336ff8674587513c115796.

Revert "Added AWS SDK CPP v1.9 build script and patch file"

This reverts commit 31a8486e04d0453018b39407a696940115ac8988.

Update README

Enhance docker build instructions.

Add build_all docker script

fix mode

support gen1 and gen2

Remove Gen2 Notes

Fix tabs/spaces indentation

Co-authored-by: Suresh Grandhi<EMAIL_ADDRESS>Conflicts:
scripts/docker/DSS.Dockerfile

This is just cherry-picked from master so I can use the same Docker workflow for stable/v1.0


feat!: component set components are now DecodableMaps

What does this PR do?
Creates a new DecodeableMap class that extends the standard Map.  A DecodableMap is the same as a Map except that the key must be a string, and whenever passing a key it will match on the exact text and the decoded text.  Since ComponentSet.components Maps use component fullNames as keys, this allows encoded fullNames to match decoded fullNames, and vice versa.
What issues does this PR fix or reference?
@W-11658886@

QA is here: https://github.com/forcedotcom/source-tracking/pull/458

Approved for release.


Error:Client found response content type of 'text/xml,text/plain; charset=utf-8', but expected 'text/xml'.

I tried ,but failed.?

Moco supports any HTTP request and SOAP by default supports HTTP, so Moco can support SOAP request. But there is no SOAP specific API for now.
Could you please give me the example you've tried?

misconfigured,,now I can get response text as expected. But have a new trouble.
config file as below:
[{
"request": {
"uri": "/corpinfomaintain/corpbaseinfo.asmx"
},
"response": {
"latency": {
"duration": 1,
"unit": "second"
},
"headers" :
{
"content-type" : "text/xml"
},
"file": "test.response"
}
}]
client give errors :+1:
Exception:System.InvalidOperationException: Client found response content type of 'text/xml,text/plain; charset=utf-8', but expected 'text/xml'.
T

Thank you for your report. It's Moco bug.
The reason why your Exception is your header is "content-type", but the default header for file is "Content-Type". A quick fix is to change your header to "Content-Type".
Http Header should be case-insensitive. so it's Moco bug. I'll fix it soon.

but I have a workaround.   set
"content-type": "text/xml;charset=utf-8"
and replace my xml file "<" ans "<".


Create new limits page

Separate content in InfluxDB pricing plans to:

InfluxDB Cloud plans
InfluxDB Cloud limits

Update links throughout to new sections

We want to move away from "limits" to use adjustable service quotas instead.... where they are specifically adjustable.
For example, we have adjustable service quotas which are automatically adjusted based on moving from Free tier to PAYG tier.  These can be further adjusted upwards "on demand" -- but requires a customer to make such as request.
Free:

Data-In: 5MB/5m (normalized LP)
Data-In: max payload: 50MB (HTTP)
Data-In: 250MB uncompressed
Read: 300MB/5m (response bytes)
Cardinality: 10k series

and additional restrictions intended to drive PAYG conversion:
PAYG drivers:
Storage: 30 day retention

5 Dashboards
5 Tasks
2 Buckets (excludes builtins)
2 Notification rules
Slack and HTTP notification endpoint config support in UI

PAYG:

Data-In: 300MB/5m
Data-In: max payload 50MB (HTTP)
Data-In: 250MB uncompressed
Read: 3000MB/5m (response bytes)
Cardinality: 1M

I believe there are still limits which are important to call out which CANNOT be adjusted which are the same for Free and PAYG.  These should be specified as hard limits.

Delete requests per unit time -- 300 requests / 5 min
Query processing time -- set at 90s
Task processing time -- set at 150s


Add touristic contents/events to mobile data

Command line option to sync_rando

I would say that default command just sync treks and POIs but adding option allow to add some touristic contents/events categories.

adding option allow to add some touristic contents/events categories.
This is done, but need documentation.


docs(README): mark Sticky as implemented

Codecov Report

Merging #1948 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1948   +/-   ##
=======================================
  Coverage   99.77%   99.77%
=======================================
  Files         148      148
  Lines        2637     2637
=======================================
  Hits         2631     2631
  Misses          6        6

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 8e09c3a...b88a936. Read the comment docs.


Allow setting timestamp when writing archives

I cobbled something together to help build "reproducible" archives.
This deterministically sets the timestamp of all files in an archive. That worked for a quick test of building a reproducible package :)
However, we could come up with more interesting schemes of modifying the timestamps (e.g. only forcing the timestamp on files that have been written in the past 24 hours or so, and leave those files that were just copied from the source archive as they are).
Some references: https://reproducible-builds.org/docs/timestamps/

thx for the suggestion, done that. I was considering to add a "options" struct, but not convinced it's needed just yet.

Yeah if we add more we should do that. But lets merge as is!


[Bug]: Cannot run Python wordcount quickstart example, ModuleNotFoundError

What happened?
WIth python 3.8 on rhel 8, I ran python3.8 -m apache_beam.examples.wordcount.  I did this from a fresh virtual environment where I pip installed apache-beam.
The error I get is ModuleNotFoundError: No module named 'apache_beam.portability.api.  This exception is raised in apache_beam/portability/common_urns.py on line 22 with the line from .api import beam_runner_api_pb2_urns
I was following the instructions on Apache Beam Get Started to attempt to run the example code.
Issue Priority
Priority: 2
Issue Component
Component: examples-python

Are you by chance a Macbook M1 user ?

nvm, i saw you mentioned rhel 8

would you mind posting full sequence of commands you run?

Is it reproducible with some docker container?

cc: @BjornPrime who encountered a similar issue on an M1 machine.

You might try the process described here: https://github.com/apache/beam/issues/22742#issuecomment-1218216468
It was intended for M1 Macs but since you seem to be having a similar issue, it might be worth a try. Let us know whether or not it works for you.

Sorry don't have access to the machine currently (later today will).  However I did click on that link and I noticed protobuf which has been an issue for us before.  We generally go with 3.17.3 and the link says 3.20.1 and so it could be that.  Will find out more and report back.

No, getting protobuf to a higher version does not change the error.

Did you run python gen_protos.py once you upgraded protobuf?

No I hadn't and that did get me past that particular error with protobuf 3.20.3 installed.  Yes now I can successfully run on my own provided .txt file.  Thanks.

@BjornPrime would you mind adding helpful info to s.apache.org/beam-python-dev-wiki ?

(you can communicate the M1 workarounds there)

This got added to the 2.44 milestone via close/reopen and is probably not a real release blocker

Added a link to https://github.com/apache/beam/issues/22742#issuecomment-1218216468 to the wiki, which seems to resolve the issue in many cases and is the closest thing we have to a solution at this point. If that doesn't work for them, hopefully the discussion on the issue will help or they can contribute their own experience to the discussion.

.close-issue


icacls X:\FULL_PATH_TO_FOLDER /grant Administrators:F

What would this do?
Command found on this page: https://thegeekpage.com/solved-failed-to-enumerate-objects-in-the-container-windows-10-error/

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 5906879b-e678-e3da-c404-07a437b42cc2
Version Independent ID: 0779c597-9e20-38e0-3ae7-40126f5c2bcb
Content: icacls
Content Source: WindowsServerDocs/administration/windows-commands/icacls.md
Product: windows-server
Technology: manage-windows-commands
GitHub Login: @coreyp-at-msft
Microsoft Alias: coreyp

just found the answer here: https://www.winhelponline.com/blog/take-ownership-of-file-or-folder/

#assign:xelu86

Hey @courtens,
Looking at the documentation, the /grant switch with the f perm performs the following:

Grants specified user access rights. Permissions replace previously granted explicit permissions.
Not adding the :r, means that permissions are added to any previously granted explicit permissions.

The <perm> option is a permission mask that can be specified in one of the following forms:
F - Full access

It is described similarly per the article you have referenced. We're glad you were able to find an answer so quickly. If there are no further concerns, we will be closing this thread. We do wish you a most pleasant day!
#please-close


Data: Add missing entries for DIR editions

https://www.informatiewetenschap.org/dir-history.html (some pages are still available, some only via https://archive.org/)


Feat: Implement length for message in Write me Anything

Describe the feature
In the write me anything form, a check over message length should be there such as length of message should be greater than 100.
It'll help to avoid receiving empty 1-2 character messages which others may send without any purpose.
This may help in decluttering the message piles being received.
Also the UI of the form can be improved by adding box-shadow on hovers, border enhancements etc.
Kindly assign this issue to me under GSSOC'24!
Thanks..
Add ScreenShots

Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

Assigned!
Make sure to attach before & after screenshots in your PR and include the issue number.
i am the project mentor you can always reach out to me for any help!
Also, please star ⭐ the repo before working on it.
Happy open-source contributing! 😊


mj-image inside a mj-text

Hi Everybody,
I want to insert an image in the text ok my email like this 👍
`

<mj-container>
  <mj-section>
    <mj-column>
      <mj-text>text before <mj-image width="30" src="http://www.online-image-editor.com//styles/2014/images/example_image.png" /> and after img</mj-text>
    </mj-column>
  </mj-section>
</mj-container>

`
but the image disappears ! why ?
https://mjml.io/try-it-live/rJCJx1epl
How can I do that ?
Thanks

Hello @seb306bzh ,
You can't nest mj-elements inside mj-text. You can only use regular HTML in it, so use <img> and it will work fine !

Ok was simple ...
Thanks !


Moved /self_hosting to /tutorials/self-hosting

Coverage remained the same at 94.398% when pulling 784c1261e7a82f59e01feeaba4941195ab12b9aa on cody-move-self-hosting-docs into 186e23f5b339ddf613c594c33a217ee7d598683b on main.


US122200 - First pieces of the filter component with minimal functionality

Opening this up as a draft PR to get initial feedback before writing the tests.  Inline comments highlight my current questions, but feel free to comment on anything.  This is our first time doing this type of approach and it's more fleshed out than what the POC branch had.

One way (which I think you explored?) would be to keep actual state in _dimensions instead of DOM nodes. So instead of looking at those DOM nodes and their tag names and internals, you'd look at JSON -- an array of dimensions, each with a "type" and then based on the type they may have children with values, etc.

Yeah I investigated storing just the state versus storing the nodes early on before all the syncing code was in place, and storing the state was overkill.  But looking at where things ended up, I do think that will end up cleaner overall - I'll try switching back to that and see how it feels

Ok, this is ready for review!  The axe test failure is expected, until we deal with the list label issue.  If we're ready to do that now I can work on that, or I can skip the test until we are.


Not able to create subnet using az cli

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az network vnet subnet create
Errors:
The command failed with an unexpected error. Here is the traceback:
'NoneType' object is not iterable
Traceback (most recent call last):
  File "/home/azureuser/lib/azure-cli/lib/python3.8/site-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/home/azureuser/lib/azure-cli/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 658, in execute
    raise ex
  File "/home/azureuser/lib/azure-cli/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 721, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/home/azureuser/lib/azure-cli/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 692, in _run_job
    result = cmd_copy(params)
  File "/home/azureuser/lib/azure-cli/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 328, in __call__
    return self.handler(*args, **kwargs)
  File "/home/azureuser/lib/azure-cli/lib/python3.8/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
    return op(**command_args)
  File "/home/azureuser/lib/azure-cli/lib/python3.8/site-packages/azure/cli/command_modules/network/custom.py", line 6743, in create_subnet
    return get_property(vnet.subnets, subnet_name)
  File "/home/azureuser/lib/azure-cli/lib/python3.8/site-packages/azure/cli/core/commands/__init__.py", line 490, in get_property
    result = next((x for x in items if x.name.lower() == name.lower()), None)
TypeError: 'NoneType' object is not iterable

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az network vnet subnet create -g {} --vnet-name {} -n {} --address-prefixes {}

Expected Behavior
Environment Summary
Linux-4.4.140-96.80.TDC-default-x86_64-with-glibc2.17, SUSE Linux Enterprise Server 12 SP3
Python 3.8.12
Installer:

azure-cli 2.32.0 *

Additional Context

@necusjz for awareness

@Ravi-9654 Sorry, I cannot reproduce your case, my detailed procedures are as follows:

az network vnet create -n ethan-vn -g ethan-rg
az network vnet subnet create -n ethan-sn -g ethan-rg --vnet-name ethan-vn --address-prefixes <IP_ADDRESS>/24

@Ravi-9654 The action is currently pending on you to try the above suggestion. If you need any further assistance on this issue in future, please feel free to reopen this thread. We would be happy to help.


RSpec/LeadingSubject auto-correct breaks if include_context defines subject

Hi, we have a shared context that we include, that defines it's own subject. Reason behind is, that we have many models, that need the same test setup and only define a concrete type in the specific spec. In some specs we have to override the subject, which works fine if include_context is called before subject. With RSpec/LeadingSubject auto-correct the subject is moved before include_context and we don't work with the right subject anymore, breaking the spec.
Is this something that the cop should be aware of? Or is it something that is bad style on our side and a shared_context should rather not declare a subject?

I don't have the whole picture, but I understand the case. At first, defining the subject in include_context sounds a bit awkward, but I understand that you have reasons to do so. Can you share some reduced example that will make it possible to reason about?
The cop has no knowledge, unfortunately, if subject is part of the shared context or not.


Package lists for rhel8 not generated correctly

I am attempting to download nvidia-fabric-manager-460.106.00-1 located at https://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/ but dnf is failing to find this specific version. In fact, it can only find the latest:
$ dnf list nvidia-fabric-manager*
Available Packages
nvidia-fabric-manager.x86_64                                                                             495.29.05-1                                                                     cuda
nvidia-fabric-manager-devel.x86_64                                                                       495.29.05-1                                                                     cuda

On the other hand using the rhel7 repo, I see all the driver branches/versions I expect to see:
$ yum --showduplicates list nvidia-fabric-manager
Available Packages
nvidia-fabric-manager.x86_64                                                                           460.91.03-1                                                                       cuda
nvidia-fabric-manager.x86_64                                                                           460.106.00-1                                                                      cuda
nvidia-fabric-manager.x86_64                                                                           470.57.02-1                                                                       cuda
nvidia-fabric-manager.x86_64                                                                           495.29.05-1                                                                       cuda
nvidia-fabric-manager-devel.x86_64                                                                     460.91.03-1                                                                       cuda
nvidia-fabric-manager-devel.x86_64                                                                     460.106.00-1                                                                      cuda
nvidia-fabric-manager-devel.x86_64                                                                     470.57.02-1                                                                       cuda
nvidia-fabric-manager-devel.x86_64                                                                     495.29.05-1                                                                       cuda```

I have the same issue.
I'd like to install the nvidia-fabric-manager-470.82.01-1.x86_64.rpm package, available here: https://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/
Note: the devel package for 470.82.01 is available:
$ yum --showduplicates list nvidia-fabric-manager*
Last metadata expiration check: 0:03:19 ago on Thu 18 Nov 2021 03:07:31 PM UTC.
Available Packages
nvidia-fabric-manager.x86_64                                     495.29.05-1                                 nvidia-fm-repo
nvidia-fabric-manager-devel.x86_64                               460.91.03-1                                 nvidia-fm-repo
nvidia-fabric-manager-devel.x86_64                               460.106.00-1                                nvidia-fm-repo
nvidia-fabric-manager-devel.x86_64                               470.57.02-1                                 nvidia-fm-repo
nvidia-fabric-manager-devel.x86_64                               470.82.01-1                                 nvidia-fm-repo
nvidia-fabric-manager-devel.x86_64                               495.29.05-1                                 nvidia-fm-repo

These are two separate issues.
@cdesiniotis

dnf list --showduplicates on RHEL8 (or Fedora) is hiding packages that are not in the currently selected modularity stream.
There is a workaround, set module_hotfixes=1 in the cuda-rhel8.repo file (see: https://bugzilla.redhat.com/show_bug.cgi?id=1652734#c3)
However, setting this to true breaks package filtering for dnf module install too, which renders the modularity streams unusable.

@enrico-usai
2. With the CUDA repository enabled
$ sudo yum-config-manager --add-repo \
https://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/cuda-rhel7.repo
$ yum list --showduplicates nvidia-fabric-manager*
Available Packages
nvidia-fabric-manager.x86_64              460.91.03-1          cuda-rhel7-x86_64
nvidia-fabric-manager.x86_64              460.106.00-1         cuda-rhel7-x86_64
nvidia-fabric-manager.x86_64              470.57.02-1          cuda-rhel7-x86_64
nvidia-fabric-manager.x86_64              470.82.01-1          cuda-rhel7-x86_64
nvidia-fabric-manager.x86_64              495.29.05-1          cuda-rhel7-x86_64
nvidia-fabric-manager-devel.x86_64        460.91.03-1          cuda-rhel7-x86_64
nvidia-fabric-manager-devel.x86_64        460.106.00-1         cuda-rhel7-x86_64
nvidia-fabric-manager-devel.x86_64        470.57.02-1          cuda-rhel7-x86_64
nvidia-fabric-manager-devel.x86_64        470.82.01-1          cuda-rhel7-x86_64
nvidia-fabric-manager-devel.x86_64        495.29.05-1          cuda-rhel7-x86_64

Which AWS AMI are you using? I was not able to find an instance with a nvidia-fm-repo. Do you have a link?

@kmittman thanks for your answer.
nvidia-fm-repo was just the name I used for the repository in the repo file:
$ cat /etc/yum.repos.d/nvidia-fm-repo.repo
[nvidia-fm-repo]
name=Yum Repository
baseurl=https://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64
enabled=1
fastestmirror_enabled=0
gpgcheck=1
gpgkey=https://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/7fa2af80.pub

I'm looking for rhel8 repository, not rhel7. I'd like to install 470.82 to stay aligned with the latest Nvidia Tesla drivers.
$ sudo yum-config-manager --add-repo \
https://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo
Adding repo from: https://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo

$ sudo yum list --showduplicates nvidia-fabric-manager*
Available Packages
nvidia-fabric-manager.x86_64                                    495.29.05-1                               cuda-rhel8-x86_64
nvidia-fabric-manager-devel.x86_64                              460.91.03-1                               cuda-rhel8-x86_64
nvidia-fabric-manager-devel.x86_64                              460.106.00-1                              cuda-rhel8-x86_64
nvidia-fabric-manager-devel.x86_64                              470.57.02-1                               cuda-rhel8-x86_64
nvidia-fabric-manager-devel.x86_64                              470.82.01-1                               cuda-rhel8-x86_64
nvidia-fabric-manager-devel.x86_64                              495.29.05-1                               cuda-rhel8-x86_64

As you can see nvidia-fabric-manager 470.82 is not listed.
Anyway after setting the suggested flag: module_hotfixes=1 in the cuda-rhel8.repo I'm able to see all the packages:
$ sudo yum list --showduplicates nvidia-fabric-manager*
Available Packages
nvidia-fabric-manager.x86_64              460.91.03-1          cuda-rhel8-x86_64
nvidia-fabric-manager.x86_64              460.106.00-1         cuda-rhel8-x86_64
nvidia-fabric-manager.x86_64              470.57.02-1          cuda-rhel8-x86_64
nvidia-fabric-manager.x86_64              470.82.01-1          cuda-rhel8-x86_64
nvidia-fabric-manager.x86_64              495.29.05-1          cuda-rhel8-x86_64
nvidia-fabric-manager-devel.x86_64        460.91.03-1          cuda-rhel8-x86_64
nvidia-fabric-manager-devel.x86_64        460.106.00-1         cuda-rhel8-x86_64
nvidia-fabric-manager-devel.x86_64        470.57.02-1          cuda-rhel8-x86_64
nvidia-fabric-manager-devel.x86_64        470.82.01-1          cuda-rhel8-x86_64
nvidia-fabric-manager-devel.x86_64        495.29.05-1          cuda-rhel8-x86_64

Do you think it is a safe option? Could you give me more details/references to the package filtering mentioned bugs related to this option?
Thanks

I found these interesting articles:

https://developer.nvidia.com/blog/streamlining-nvidia-driver-deployment-on-rhel-8-with-modularity-streams/
https://docs.fedoraproject.org/en-US/modularity/installing-modules/

In the modularity documentation I can read:

However, it is important to note that those commands will, apart from traditional packages, only list modular packages coming from a default or an enabled module stream.

Putting together the information I'd say the missing step to see the specific version of the package is to enable the correct stream module:
$ sudo dnf module list nvidia-driver
Error: No matching Modules to list

$ sudo yum-config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo

$ sudo yum list --showduplicates nvidia-fabric-manager
Available Packages
nvidia-fabric-manager.x86_64                              495.29.05-1                              cuda-rhel8-x86_64

$ sudo dnf module list nvidia-driver
Name                 Stream                Profiles                       Summary
nvidia-driver        latest                default [d], fm, ks, src       Nvidia driver for latest branch
nvidia-driver        latest-dkms [d]       default [d], fm, ks            Nvidia driver for latest-dkms branch
...
nvidia-driver        470                   default [d], fm, ks, src       Nvidia driver for 470 branch
nvidia-driver        470-dkms              default [d], fm, ks            Nvidia driver for 470-dkms branch
nvidia-driver        495                   default [d], fm, ks, src       Nvidia driver for 495 branch
nvidia-driver        495-dkms              default [d], fm, ks            Nvidia driver for 495-dkms branch

$ sudo dnf module enable nvidia-driver:470
$ sudo yum list --showduplicates nvidia-fabric-manager
Available Packages
nvidia-fabric-manager.x86_64                              470.57.02-1                              cuda-rhel8-x86_64
nvidia-fabric-manager.x86_64                              470.82.01-1                              cuda-rhel8-x86_64

$ sudo dnf module list nvidia-driver
Last metadata expiration check: 0:01:14 ago on Mon 22 Nov 2021 10:47:40 AM UTC.
cuda-rhel8-x86_64
Name                 Stream                Profiles                       Summary
nvidia-driver        latest                default [d], fm, ks, src       Nvidia driver for latest branch
nvidia-driver        latest-dkms [d]       default [d], fm, ks            Nvidia driver for latest-dkms branch
...
nvidia-driver        470 [e]               default [d], fm, ks, src       Nvidia driver for 470 branch
nvidia-driver        470-dkms              default [d], fm, ks            Nvidia driver for 470-dkms branch
...

In this way we don't need the module_hotfixes flag. The issue can be closed for me. Thanks!

Thanks @kmittman @enrico-usai for your detailed responses! I can confirm that enabling the modularity stream via dnf module enable nvidia-driver:<driver-branch> achieves what we want here. Closing this issue.


Cannot run on macOS

I am using a Macbook pro (M2) Ventura Version 13.3.1
After installing chainlit, when I run chainlit hello, this is the error I am getting:
dhirajkhanna@Dhirajs-MacBook-Pro chainlit % chainlit hello
2023-06-04 13:07:49 - Created default config file at /Users/dhirajkhanna/Documents/chainlit/.chainlit/config.toml
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.10/bin/chainlit", line 5, in <module>
    from chainlit.cli import cli
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/chainlit/__init__.py", line 8, in <module>
    monkey.patch()
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/chainlit/lc/monkey.py", line 9, in patch
    import langchain
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/langchain/__init__.py", line 6, in <module>
    from langchain.agents import MRKLChain, ReActChain, SelfAskWithSearchChain
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/langchain/agents/__init__.py", line 2, in <module>
    from langchain.agents.agent import (
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/langchain/agents/agent.py", line 16, in <module>
    from langchain.agents.tools import InvalidTool
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/langchain/agents/tools.py", line 8, in <module>
    from langchain.tools.base import BaseTool, Tool, tool
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/langchain/tools/__init__.py", line 36, in <module>
    from langchain.tools.playwright import (
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/langchain/tools/playwright/__init__.py", line 3, in <module>
    from langchain.tools.playwright.click import ClickTool
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/langchain/tools/playwright/click.py", line 11, in <module>
    from langchain.tools.playwright.base import BaseBrowserTool
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/langchain/tools/playwright/base.py", line 15, in <module>
    from playwright.async_api import Browser as AsyncBrowser
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/playwright/async_api/__init__.py", line 25, in <module>
    import playwright.async_api._generated
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/playwright/async_api/_generated.py", line 25, in <module>
    from playwright._impl._accessibility import Accessibility as AccessibilityImpl
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/playwright/_impl/_accessibility.py", line 17, in <module>
    from playwright._impl._connection import Channel
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 35, in <module>
    from pyee import EventEmitter
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyee/__init__.py", line 120, in <module>
    from pyee.trio import TrioEventEmitter as _TrioEventEmitter  # noqa
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pyee/trio.py", line 7, in <module>
    import trio
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/trio/__init__.py", line 18, in <module>
    from ._core import (
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/trio/_core/__init__.py", line 27, in <module>
    from ._run import (
  File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/trio/_core/_run.py", line 2458, in <module>
    raise NotImplementedError("unsupported platform")
NotImplementedError: unsupported platform

Hello, we have seen a couple of issues when playwright is installed before Chainlit (see https://github.com/Chainlit/chainlit/issues/31). I would recommend that you try to install Chainlit in a venv without playwright to check if that solves the issue.

Yes it does, thanks


Autoprefixer omitted during serve / build

Bug Report or Feature Request (mark with an x)
- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.4.4
node: 6.11.4
os: linux x64
@angular/animations: 4.4.4
@angular/cdk: 2.0.0-beta.11
@angular/common: 4.4.4
@angular/compiler: 4.4.4
@angular/core: 4.4.4
@angular/flex-layout: 2.0.0-beta.9
@angular/forms: 4.4.4
@angular/http: 4.4.4
@angular/material: 2.0.0-beta.11
@angular/platform-browser: 4.4.4
@angular/platform-browser-dynamic: 4.4.4
@angular/router: 4.4.4
@angular/cli: 1.4.4
@angular/compiler-cli: 4.4.4
@angular/language-service: 4.4.4
typescript: 2.3.4
Repro steps.

I have css class
.hr-line {
border: 0;
height: 1px;
background-image: -webkit-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
background-image: -moz-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
background-image: -ms-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
background-image: -o-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
}
package.json has following
"browserslist": [
"last 2 Chrome versions"
]
The log given by the failure.

Generated css is
.hr-line {
border: 0;
height: 1px;
background-image: -o-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
}
includes opera prefixer but not webkit
Desired functionality.

Should it use
.hr-line {
border: 0;
height: 1px;
background-image: -webkit-linear-gradient(left, #f0f0f0, #8c8b8b, #f0f0f0);
}
Mention any other details that might be useful.

Not an issue - autoprefixer was raising Gradient has outdated direction syntax. New syntax is like to left instead of right.
I change css to
## to left
i.e.
.hr-gradient {
border: 0;
height: 1px;
background-image: linear-gradient(## to left, #f0f0f0, #8c8b8b, #f0f0f0);
}
package.json has following entry
"browserslist": [
"Chrome >= 30"
]