Expected in.dtype() == at::kInt to be true, but got false

Using the example code provided here: https://huggingface.co/mobiuslabsgmbh/Llama-3.1-70b-instruct_4bitgs64_hqq
I am using the master branch of this repo.
Traceback (most recent call last):
  File "/home/ubuntu/tmp.py", line 24, in <module>
    prepare_for_inference(model, backend="torchao_int4")
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.pixi/envs/default/lib/python3.12/site-packages/hqq/utils/patching.py", line 99, in prepare_for_inference
    patch_linearlayers(model, patch_hqq_to_aoint4, verbose=verbose)
  File "/home/ubuntu/.pixi/envs/default/lib/python3.12/site-packages/hqq/utils/patching.py", line 25, in patch_linearlayers
    model.base_class.patch_linearlayers(
  File "/home/ubuntu/.pixi/envs/default/lib/python3.12/site-packages/hqq/models/base.py", line 154, in patch_linearlayers
    patch_fct(tmp_mapping[name], patch_param),
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.pixi/envs/default/lib/python3.12/site-packages/hqq/backends/torchao.py", line 323, in patch_hqq_to_aoint4
    hqq_aoint4_layer.initialize_with_hqq_quants(
  File "/home/ubuntu/.pixi/envs/default/lib/python3.12/site-packages/hqq/backends/torchao.py", line 91, in initialize_with_hqq_quants
    self.process_hqq_quants(W_q, meta)
  File "/home/ubuntu/.pixi/envs/default/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.pixi/envs/default/lib/python3.12/site-packages/hqq/backends/torchao.py", line 193, in process_hqq_quants
    self.weight_int4pack = torch.ops.aten._convert_weight_to_int4pack(
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.pixi/envs/default/lib/python3.12/site-packages/torch/_ops.py", line 1061, in __call__
    return self_._op(*args, **(kwargs or {}))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Expected in.dtype() == at::kInt to be true, but got false.  (Could this error message be improved?  If so, please report an enhancement request to PyTorch.)

Can you try:

The pytorch nightly build
Use the latest hqq from the master branch not from pip
make sure you use bfloat16 not float16 with backend="torchao_int4"

This should fix this issue otherwise let me know!

With PyTorch nightly I'm getting
python tmp.py
Warning: failed to import the Marlin backend. Check if marlin is correctly installed if you want to use the Marlin backend (https://github.com/IST-DASLab/marlin).
Warning: failed to import the BitBlas backend. Check if BitBlas is correctly installed if you want to use the bitblas backend (https://github.com/microsoft/BitBLAS).
Fetching 7 files: 100%|███████████████████████████████████████████████████████████████████████████████████████| 7/7 [00:00<00:00, 65536.00it/s]
/home/ubuntu/.pixi/envs/default/lib/python3.12/site-packages/hqq/models/base.py:251: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
  return torch.load(cls.get_weight_file(save_dir), map_location=map_location)
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████| 323/323 [00:00<00:00, 17418.30it/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████| 561/561 [00:00<00:00, 16606.83it/s]
Traceback (most recent call last):
  File "/home/ubuntu/tmp.py", line 29, in <module>
    gen = HFGenerator(model, tokenizer, max_new_tokens=10, do_sample=True, compile="partial").warmup() #Warm-up takes a while
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.pixi/envs/default/lib/python3.12/site-packages/hqq/utils/generation_hf.py", line 100, in warmup
    self.generate(prompt, print_tokens=False);
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.pixi/envs/default/lib/python3.12/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.pixi/envs/default/lib/python3.12/site-packages/hqq/utils/generation_hf.py", line 253, in generate
    return self.next_token_iterator(self.prefill(), self.max_new_tokens, verbose, print_tokens)
                                    ^^^^^^^^^^^^^^
  File "/home/ubuntu/.pixi/envs/default/lib/python3.12/site-packages/hqq/utils/generation_hf.py", line 183, in prefill
    out = self.model(
          ^^^^^^^^^^^
  File "/home/ubuntu/.pixi/envs/default/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.pixi/envs/default/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1747, in _call_impl
    return forward_call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.pixi/envs/default/lib/python3.12/site-packages/transformers/models/llama/modeling_llama.py", line 1189, in forward
    outputs = self.model(
              ^^^^^^^^^^^
  File "/home/ubuntu/.pixi/envs/default/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.pixi/envs/default/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1747, in _call_impl
    return forward_call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.pixi/envs/default/lib/python3.12/site-packages/transformers/models/llama/modeling_llama.py", line 971, in forward
    causal_mask = self._update_causal_mask(
                  ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.pixi/envs/default/lib/python3.12/site-packages/transformers/models/llama/modeling_llama.py", line 1086, in _update_causal_mask
    causal_mask = _prepare_4d_causal_attention_mask_with_cache_position(
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ubuntu/.pixi/envs/default/lib/python3.12/site-packages/transformers/models/llama/modeling_llama.py", line 102, in _prepare_4d_causal_attention_mask_with_cache_position
    padding_mask = causal_mask[:, :, :, :mask_length] + attention_mask[:, None, None, :]
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
RuntimeError: The size of tensor a (32) must match the size of tensor b (40) at non-singleton dimension 3

I just tried on a fresh A100 instance and it's working fine:
-torch nightly: pip uninstall torch -y; pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121;
-hqq from master: pip install git+https://github.com/mobiusml/hqq.git
transformers version 4.44.0

Super weird. I have CUDA 12.4, maybe that's the problem, I'll try to downgrade.

You can switch between different CUDA versions like this, you don't have to replace it:
export CUDA_HOME=/usr/local/cuda-12.1
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64:$LD_LIBRARY_PATH
export PATH=${CUDA_HOME}/bin:${PATH}

Thanks! It still doesn't work
$ python tmp.py
Warning: failed to import the Marlin backend. Check if marlin is correctly installed if you want to use the Marlin backend (https://github.com/IST-DASLab/marlin).
Warning: failed to import the BitBlas backend. Check if BitBlas is correctly installed if you want to use the bitblas backend (https://github.com/microsoft/BitBLAS).
Fetching 7 files: 100%|██████████████████████████████████████████████████████████████████████████████████████| 7/7 [00:00<00:00, 109552.72it/s]
/home/ubuntu/env/lib/python3.10/site-packages/hqq/models/base.py:251: FutureWarning: You are using `torch.load` with `weights_only=False` (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for `weights_only` will be flipped to `True`. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via `torch.serialization.add_safe_globals`. We recommend you start setting `weights_only=True` for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
  return torch.load(cls.get_weight_file(save_dir), map_location=map_location)
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████| 323/323 [00:00<00:00, 19289.51it/s]
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████| 561/561 [00:00<00:00, 14996.75it/s]
Traceback (most recent call last):
  File "/home/ubuntu/tmp.py", line 29, in <module>
    gen = HFGenerator(model, tokenizer, max_new_tokens=10, do_sample=True, compile="partial").warmup() #Warm-up takes a while
  File "/home/ubuntu/env/lib/python3.10/site-packages/hqq/utils/generation_hf.py", line 100, in warmup
    self.generate(prompt, print_tokens=False);
  File "/home/ubuntu/env/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
    return func(*args, **kwargs)
  File "/home/ubuntu/env/lib/python3.10/site-packages/hqq/utils/generation_hf.py", line 253, in generate
    return self.next_token_iterator(self.prefill(), self.max_new_tokens, verbose, print_tokens)
  File "/home/ubuntu/env/lib/python3.10/site-packages/hqq/utils/generation_hf.py", line 183, in prefill
    out = self.model(
  File "/home/ubuntu/env/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/ubuntu/env/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1747, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/ubuntu/env/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py", line 1189, in forward
    outputs = self.model(
  File "/home/ubuntu/env/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/ubuntu/env/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1747, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/ubuntu/env/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py", line 971, in forward
    causal_mask = self._update_causal_mask(
  File "/home/ubuntu/env/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py", line 1086, in _update_causal_mask
    causal_mask = _prepare_4d_causal_attention_mask_with_cache_position(
  File "/home/ubuntu/env/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py", line 102, in _prepare_4d_causal_attention_mask_with_cache_position
    padding_mask = causal_mask[:, :, :, :mask_length] + attention_mask[:, None, None, :]
RuntimeError: The size of tensor a (32) must match the size of tensor b (40) at non-singleton dimension 3

(env) ubuntu@l40s-90-gra11:~$ nvidia-smi  | grep Version
| NVIDIA-SMI 535.183.01             Driver Version: 535.183.01   CUDA Version: 12.2     |
(env) ubuntu@l40s-90-gra11:~$ dpkg -l | grep cuda | head -n 1
ii  cuda-12-1                           12.1.0-1                                amd64        CUDA 12.1 meta-package
(env) ubuntu@l40s-90-gra11:~$ dpkg -l | grep cuda-12
ii  cuda-12-1                           12.1.0-1                                amd64        CUDA 12.1 meta-package
(env) ubuntu@l40s-90-gra11:~$ pip list | grep torch
pytorch-triton           3.0.0+dedb7bdf33
torch                    2.5.0.dev20240814+cu121
(env) ubuntu@l40s-90-gra11:~$ pip list | grep hqq
hqq                      0.2.0
(env) ubuntu@l40s-90-gra11:~$ pip list | grep transf
transformers             4.44.0

Not sure why nvidia-smi says CUDA 12.2

Oh I see, nightly torch actually fixed the first issue. The second issue is that, in your example, you are using max_new_tokens=10, you need to use a valid minimum size. In the example we published, it's using 1000 which should be enough for most use-cases. You can either keep it to 1000, or use a minimum of 128. A value of 10 would break things because it's too small I think

Thank you, it seems to work now. I'm going to do quality comparisons now!
My recipe:

Install Ubuntu 22.04
Install cuda-12-1 via .deb method
Install python3-dev and build-essential
pip install --pre torch --index-url https://download.pytorch.org/whl/nightly/cu121
pip install git+https://github.com/mobiusml/hqq.git

I still have the problem even with larger max_new_tokens:
  File "/home/ubuntu/env/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py", line 102, in _prepare_4d_causal_attention_mask_with_cache_position
    padding_mask = causal_mask[:, :, :, :mask_length] + attention_mask[:, None, None, :]
RuntimeError: The size of tensor a (256) must match the size of tensor b (1873) at non-singleton dimension 3

The 1873 in the message varies from prompt to prompt.
Are my prompts too large?
NB: Is it possible to cache the compilation step?

Can you try using powers of 2 for max_new_tokens ? for 1873 you'd set 2048 etc., it should work fine up to 8192 new tokens.
Alternatively, you can use the native transformers model.generate with dynamic cache if static cache is creating issues for you.
There are some flags to reduce the time of the compilation step: https://pytorch.org/tutorials/recipes/torch_compile_caching_tutorial.html

The issue with static cache is that it needs to be initialized before hand and only once.  The cache size should be make_multiple(max_prefill_phase_size + max_new_tokens) where make_multiple() is a function making the cache shape a matmul friendly size, such as a powers of 2 (1024, 2048, etc.)
The current implementation automatically sets the cache_size as the next 2^N power of max_new_tokens, which should work fine as long as the input prompt is not too large.
What is the size of your prefill step in terms of tokens? There's an extra parameter cache_size= that you can set manually in case your input prompts are longer: https://github.com/mobiusml/hqq/blob/master/hqq/utils/generation_hf.py#L25
You can set it larger to  prefill_tokens + max_new_tokens and make it a nice shape number like 2048 or 4096.
If you share a similar prompt in size I can investigate what goes wrong.
If you don't want to mess with this stuff, you can simply use model.generate which uses dynamic caching and should handle all use-cases.

Thank you, the transformers-native generator worked fine. The quality seems to be almost on par with the BF16 version 🚀
I want to run different kinds of queries:

~ 8k prefill and 16 (not 16k) output
~ 16k prefill and 1k output
~ 16k prefill (or more) and 4k output

Great, thanks for running an independent evaluation :+1:  !


Anoncreds-RS update revocation endpoints for TAA

See #2383 and #2432
There are some endpoints used in the TAA tests that need to be updated to use anoncreds-rs.

GET /revocation/registry/<id>/issued
GET /revocation/registry/<id>/issued/details
GET /revocation/registry/<id>/issued/indy_recs
PUT /revocation/registry/<id>/fix-revocation-entry-state

These are mentioned in Troubleshooting.md.

@dbluhm - can you comment on if we need to implement these or remove them. It appears they were brought in to address a specific need - is that ongoing?

GET /revocation/registry/<id>/issued

Yes, this would require updates; it is currently dependent on the IssuerRevRegRecord which has been replaced. The only thing it's using it for though is to make sure it's a known rev reg id that was passed in. AnonCredsRevocation.get_created_revocation_list would serve the same purpose. the IssuerCredRevRecords are still in use.

GET /revocation/registry/<id>/issued/details

Same story as pervious

GET /revocation/registry/<id>/issued/indy_recs

This one basically goes straight to performing a ledger call. It technically doesn't need to be changed but it may be better to translate it to using the AnonCreds interface to retrieve the rev list and then translate the rev list back into an Indy rev reg delta so that we can eliminate usage of the ledger outside of the Indy registry implementations. This feels like a low priority to me though.

PUT /revocation/registry/<id>/fix-revocation-entry-state

This one will need updates. It's also using the IssuerRevRegRecord and also using RevocationManager.update_rev_reg_revoked_state in the old style (it should accept a rev_reg_def_id, apply_ledger_update, genesis_transactions). The RevocationManager.update_rev_reg_revoked_state` is currently hardcoded to use the LegacyIndyRegistry to perform the ledger state correction. I alluded to this method in #2370 -- I'm still not certain whether this recovery mechanism is relevant outside of the context of indy or not. To sum up, the endpoint shouldn't be too bad to update but there's a separate question of whether there should be a generic way to do this for other AnonCreds methods besides Indy based ones.

Re: addressing a specific need, I haven't personally used these before but I know they were at least used recently in that IDIM issue I got tagged in :slightly_smiling_face: So I think they are "necessary" from the perspective that this out of sync issue can occur at least for Indy. But, as to whether they're necessary in the general case, I'm not sure. I'm inclined to just move the implementations into something specific to the Indy registry and expose them from that package (in plugin style) and let them continue to be specific to Indy until it's clear they have use for other methods.

Closing this work was done in #2458.
The 4 documented APIs are in place and updated to AnonCreds


Create image-test.md

Docs Build status updates of commit 24f5acb:
:clock10: Pending: waiting for processors (10 builds ahead of you)
:warning: Docs Build is busy, currently there are 10 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit 24f5acb:
:warning: Validation status: warnings

File
Status
Preview URL
Details

CSIDevDocs/Demo/image-test.md
:warning:Warning

Details

CSIDevDocs/Demo/image-test.md

Line 2, Column 1: [Warning-title-missing] Missing required attribute: 'title'. Add a title string to show in search engine results.

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit d8332d3:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

CSIDevDocs/Demo/image-test.md
:x:Error

Details

CSIDevDocs/Demo/image-test.md

Line 20, Column 0: [Error-invalid-image] alt-text is a required attribute. Please ensure you have specified an alt-text attribute.

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit 6264b94:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

CSIDevDocs/Demo/image-test.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


missing config file causes failure

I seem to be having an issue with not having a config file.
This will happen if the config.json is not present, even if all required cli options are present.
Copying the config.example.json to config.json removes the error, even without editing the file.
python3 /opt/factorio-mods-manager/mods_manager.py --p /opt/factorio --list -v
Couldn't load config file, as it didn't exist. Continuing with defaults anyway.
Traceback (most recent call last):
  File "/opt/factorio-mods-manager/mods_manager.py", line 450, in <module>
    sys.exit(main())
  File "/opt/factorio-mods-manager/mods_manager.py", line 414, in main
    display_mods_list(read_mods_list())
  File "/opt/factorio-mods-manager/mods_manager.py", line 104, in read_mods_list
    with open(glob['mods_list_path'], 'r') as fd:
TypeError: expected str, bytes or os.PathLike object, not NoneType

So, either an explicit requirement for config.json file should be stated in README, or file should be optional if cli required parameters are set.
Thanks!

Hi,
I just pushed a fix, there should be no more problem about running without config file.
Cheer.

Hi,
I just pushed a fix, there should be no more problem about running without config file.
Cheer.


Add pymc-marketing version to notebooks

Related to https://github.com/pymc-labs/pymc-marketing/issues/845

📚 Documentation preview 📚: https://pymc-marketing--907.org.readthedocs.build/en/907/

The issue with this is that it actually isn't 0.8.0 but what will come out in the next release. I.e. it is actually always ahead of the current release, right? What are your thoughts?

The issue with this is that it actually isn't 0.8.0 but what will come out in the next release. I.e. it is actually always ahead of the current release, right? What are your thoughts?

I think for now we can add at least the lastest version.
Another thing we can do is to update the version to 0.9.0dev while development

I think for now we can add at least the lastest version.

Yeah, I am fine with that

Another thing we can do is to update the version to 0.9.0dev while development

Have something like that for this #860
Have you done this before?

Let me remove the mmm example nb from this PR as I added it in https://github.com/pymc-labs/pymc-marketing/pull/904

Have you done this before?

No 🙈  hehe


Filtering feature attributes (-x, -y, -X) not working

Please give a more specific example of what is going wrong.


readRealParameterModel will fail if not the correct working directory is set

Reported by dietmarw on 20 Oct 2010 12:16 UTC
Modelica.Utilities.Examples.readRealParameterModel will fail on check and simulation if one does not change into the parent directory of the MSL. This is almost never the case for a user since the working directory should never be the directory containing the various (write protected) libraries. The example model should be changed so it works independent on the currently set working directory

Migrated-From: https://trac.modelica.org/Modelica/ticket/443

Comment by otter on 21 Oct 2010 06:24 UTC
This is not possible, because Modelica 3.2 does not define URIs for built-in functions that open a file.
In Dymola there is the Dymola specific built-in function classDirectory() to inquire the location of the class where this function is called. However, this tool specific function cannot be used in MSL.
It is planned to add support of URIs in Modelica 3.3 (we did not manage this for Modelica 3.2).

Comment by majetta on 28 Nov 2011 08:06 UTC
In Modelica.Electrical.Digital.Memories.DLATRAM and Modelica.Electrical.Digital.Memories.DLATROM we need to read from file. Therefore we also need the support of URIs in Modelica 3.3.

Modified by dietmarw on 28 Nov 2011 13:48 UTC

Modified by dietmarw on 7 Mar 2012 10:12 UTC

Comment by dietmarw on 7 Mar 2012 14:17 UTC
This depends basically on fixing #439

Comment by dietmarw on 26 Jul 2012 06:13 UTC
This issue comes also up in combination with tables (#785).

Comment by otter on 4 Oct 2012 12:29 UTC
Fixed in  3c0057c98c16b7688cf857040b7f5b8cee670109  by introducing a tool specific function "loadResource" in  ModelicaServices and calling this function from the readRealParameter model  (the file name is now given as an URI).

Changelog removed by otter on 4 Oct 2012 12:29 UTC


readme: fix invalid yaml config in examples

closes https://github.com/qossmic/deptrac/issues/508

Does Deptrac require the backslashes to be escaped?


[TimeSeriesCard] blows up when values has empty data

Describe the bug
When TimeSeriesCard is given an array of values that has incomplete or empty data, such as no timestamp, it blows up with no graceful error
To Reproduce
Steps to reproduce the behavior:

Go to TimeSeriesCard implementation
Send an array of values that has some data without a correct timestamp or real "value"
See Time Range error

Expected behavior
Should show No data is available for this time range. instead of blowing up
Environment/versions:

OS: MacOS
Browser: chrome
carbon-addons-iot-react version: v2.75.0

:tada: This issue has been resolved in version 2.76.4 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


docs:  sync the substitutions chapter with the stacker file article

The substitution sections of these two files are now updated and in sync with each other.  There is redundancy, but these two documents are likely to be arrived at from different circumstances -- one is part of the user guide and the other is a reference.  This should address Issue #51

Why is the commit message style still failing?  At first, there was no space after the colon, but now I've edited it to add a space.

Git issues.  It was quicker to just make a new PR (#54 )


Laravel RouteServiceProvider default namespace override

Expected Behavior
The expected behaviour is the following: we, for example, using the action($name); method in Blade. Handler should pick namespace from the RouteServiceProvider (\App\Http\Controllers) and assign it to $name.
Actual Behavior
When we are using Orchid/Platform FoundationServiceProvider it binds some providers in it's boot method, so, the Route provider from orchid overrides the $namespace variable from app\RouteServiceProvider, because loaded AFTER it (specification).
Steps to Reproduce the Problem

Install orchid + laravel, call the action('SomeController@method') in any view.

Specifications

ORCHID Version: 2.2 master (latest)
Laravel Version: 5.6 (latest)
PHP Version: 7.1.19
Database Version: 5.7 mysql.

Other Notes

P.S. You can answer on English or Russian

@Windstep  Greetings! Thanks for taking the time to open this issue. :thumbsup:
I was able to reproduce the problem that you describe. Can you make PR?

@tabuna, In our project we made a decision to remove $namespace protected property from RouteServiceProvider class. So just have to test this, that all of the functions works properly, and before pulling changes.

It was also fixed :hammer: in the development branch.
I thank all those involved. :clap:


OpenAiService.ChatCompletion.CreateCompletion Exception: The input does not contain any JSON tokens

Starting Words
Again, thank you very much for this handy library and sorry to have to bother you again🥲
Describe the bug
Occasionally when using the API, the service call itself will error out and cause an exception.
Unfortunately I don't know the shortest possible input to replicate this issue so please use the long version below.
Your code piece
var system = "In this setup, you are going to help the user to generate text-based contents according to their specifications.";
var user = """
In this setup, you are going to help me populate a database that represents personel information of a company. The database is going to be described using Prolog, specifically, the SWI implementation of Prolog.

See below snippet for schema and some information:

```prolog
human('Charles Wang', 55, male, 'Professional Engineer').
human('Alice Yu', 27, female, 'Software Developer').
human('Bob Jones', 30, male, 'Doctor').
human('Cynthia Lee', 25, female, 'Nurse').
human('David Smith', 5, male, 'Student').
father('Charles Wang', 'Alice Yu').
father('Charles Wang', 'Bob Jones').
mother('Cynthia Lee', 'David Smith').

father(X, Y) :- human(X, _, male, _), father(X, Y).
mother(X, Y) :- human(X, _, female, _), father(X, Y).
parent(X, Y) :- father(X, Y).
parent(X, Y) :- mother(X, Y).
son(X, Y) :- human(X, _, male, _), parent(Y, X).
daughter(X, Y) :- human(X, _, female, _), parent(Y, X).
grandparent(X, Y) :- parent(X, Z), parent(Z, Y).
grandfather(X, Y) :- grandparent(X, Y), human(X, _, male, _).
grandmother(X, Y) :- grandparent(X, Y), human(X, _, female, _).

company('Top Tech', 'Technology Consultation', 'Toronto', 150).
employee('Charles Wang', 'Top Tech', 2007, 125000).
employee('Thomas Ho', 'Top Tech', 2002, 140000).
employee('Sarah Adams', 'Top Tech', 2010, 100000).
employee('Jenny Smith', 'Top Tech', 2015, 90000).
teacher('William Brown', 'Top Tech', 2006, 110000).
manager('Thomas Ho', 'Charles Wang').
manager('Thomas Ho', 'Sarah Adams').
supervisor('Charles Wang', 'Jenny Smith').
supervisor('Sarah Adams', 'William Brown').
directly_reports_to(Subordinate, Manager) :- manager(Manager, Subordinate).
directly_reports_to(Subordinate, Supervisor) :- supervisor(Supervisor, Subordinate).
indirectly_reports_to(Subordinate, Manager) :- directly_reports_to(Subordinate, Supervisor), directly_reports_to(Supervisor, Manager).
team_member_of(EmployeeA, EmployeeB) :-
    directly_reports_to(EmployeeA, Manager),
    directly_reports_to(EmployeeB, Manager),
    EmployeeA \== EmployeeB.
```

Where:

1. `human` describes character name, age, gender and current profession/title.
2. `company` describes company name, company type, location, and number of employees.
3. `employee` describes employee name, employer name, start year, and current salary.

You may fix any syntax/grammar errors in existing code if necessary.
Now, help me populate a database with 25 employee information for a fictional VR hardware (technology) company named Dreamscape, where a majority of employee have an Asian background but most have adopted western first names; Other employees are local Canadians. The database should also populate all relative or related person information, i.e. people with direct relations to those 25 people, like parents, and children.
""";

Result
Run with:
OpenAIService OpenAiService = new OpenAIService(new OpenAiOptions()
{
    ApiKey = "Key......................................"
});
var CurrentModel = Models.Gpt_4;
var CurrentMaxTokenLimit = 8192;
var messages = new ChatMessage[]
{
    ChatMessage.FromSystem(system),
    ChatMessage.FromUser(user),
}
var completionResult = await OpenAiService.ChatCompletion.CreateCompletion(new ChatCompletionCreateRequest()
{
    Messages = messages,
    Model = CurrentModel,
    MaxTokens = CurrentMaxTokenLimit - messages.Sum(m => m.Content.Length) - 21, /*MAX is 4096 including inputs and outputs; The additional 21 (sometimes 20) seems like the default input token size.*/
    Temperature = 1
});

And you will encounter a System.Text.Json.JsonException: 'The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.'
Expected behavior
Even if the service cannot handle it, it should not throw an exception - I thought that's what the completionResult.Successful should be checking.
Screenshots

Desktop (please complete the following information):

OS: Windows 11
Language: C# Net 7
Version: Betalgo.OpenAI.GPT3 6.8.3

Additional context
Will upload shorter inputs that may trigger the same issue when available.
Complete Code
Copy and paste below code for a fresh Console Application created with Visual Studio targeting Net 7:
using OpenAI.GPT3.ObjectModels.RequestModels;
using OpenAI.GPT3.ObjectModels;
using OpenAI.GPT3.Managers;
using OpenAI.GPT3;

namespace ConsoleApp
{
    internal class Program
    {
        static async Task Main(string[] args)
        {
            var system = "In this setup, you are going to help the user to generate text-based contents according to their specifications.";
            var user = """
In this setup, you are going to help me populate a database that represents personel information of a company. The database is going to be described using Prolog, specifically, the SWI implementation of Prolog.

See below snippet for schema and some information:

```prolog
human('Charles Wang', 55, male, 'Professional Engineer').
human('Alice Yu', 27, female, 'Software Developer').
human('Bob Jones', 30, male, 'Doctor').
human('Cynthia Lee', 25, female, 'Nurse').
human('David Smith', 5, male, 'Student').
father('Charles Wang', 'Alice Yu').
father('Charles Wang', 'Bob Jones').
mother('Cynthia Lee', 'David Smith').

father(X, Y) :- human(X, _, male, _), father(X, Y).
mother(X, Y) :- human(X, _, female, _), father(X, Y).
parent(X, Y) :- father(X, Y).
parent(X, Y) :- mother(X, Y).
son(X, Y) :- human(X, _, male, _), parent(Y, X).
daughter(X, Y) :- human(X, _, female, _), parent(Y, X).
grandparent(X, Y) :- parent(X, Z), parent(Z, Y).
grandfather(X, Y) :- grandparent(X, Y), human(X, _, male, _).
grandmother(X, Y) :- grandparent(X, Y), human(X, _, female, _).

company('Top Tech', 'Technology Consultation', 'Toronto', 150).
employee('Charles Wang', 'Top Tech', 2007, 125000).
employee('Thomas Ho', 'Top Tech', 2002, 140000).
employee('Sarah Adams', 'Top Tech', 2010, 100000).
employee('Jenny Smith', 'Top Tech', 2015, 90000).
teacher('William Brown', 'Top Tech', 2006, 110000).
manager('Thomas Ho', 'Charles Wang').
manager('Thomas Ho', 'Sarah Adams').
supervisor('Charles Wang', 'Jenny Smith').
supervisor('Sarah Adams', 'William Brown').
directly_reports_to(Subordinate, Manager) :- manager(Manager, Subordinate).
directly_reports_to(Subordinate, Supervisor) :- supervisor(Supervisor, Subordinate).
indirectly_reports_to(Subordinate, Manager) :- directly_reports_to(Subordinate, Supervisor), directly_reports_to(Supervisor, Manager).
team_member_of(EmployeeA, EmployeeB) :-
    directly_reports_to(EmployeeA, Manager),
    directly_reports_to(EmployeeB, Manager),
    EmployeeA \== EmployeeB.
```

Where:

1. `human` describes character name, age, gender and current profession/title.
2. `company` describes company name, company type, location, and number of employees.
3. `employee` describes employee name, employer name, start year, and current salary.

You may fix any syntax/grammar errors in existing code if necessary.
Now, help me populate a database with 25 employee information for a fictional VR hardware (technology) company named Dreamscape, where a majority of employee have an Asian background but most have adopted western first names; Other employees are local Canadians. The database should also populate all relative or related person information, i.e. people with direct relations to those 25 people, like parents, and children.
""";
            var CurrentModel = Models.Gpt_4;
            var CurrentMaxTokenLimit = 8192;
            var messages = new ChatMessage[]
            {
                ChatMessage.FromSystem(system),
                ChatMessage.FromUser(user),
            };
            OpenAIService OpenAiService = new OpenAIService(new OpenAiOptions()
            {
                ApiKey = "Key......................................"
            });
            var completionResult = await OpenAiService.ChatCompletion.CreateCompletion(new ChatCompletionCreateRequest()
            {
                Messages = messages,
                Model = CurrentModel,
                MaxTokens = CurrentMaxTokenLimit - messages.Sum(m => m.Content.Length) - 21, /*MAX is 4096 including inputs and outputs; The additional 21 (sometimes 20) seems like the default input token size.*/
                Temperature = 1
            });
        }
    }
}

🙏🏻
It seems like you are getting an error which doesn't in Json format. Could you please try to capture incoming response?
You can do this easily with Laser Cat Eyes. It is a library (written by me and it is free to use)that shows you incoming and outgoing requests and responses. If you need help, let me know. Also, A sample usage is available in Playground Project.
I think the error is not related to the library. We can see more detail after you catch the response.

By the way, with current execution speed of GPT-4, above code takes around 1:39 minutes to execute.

🙏🏻 It seems like you are getting an error which doesn't in Json format. Could you please try to capture incoming response?
You can do this easily with Laser Cat Eyes. It is a library (written by me and it is free to use)that shows you incoming and outgoing requests and responses. If you need help, let me know. Also, A sample usage is available in Playground Project.
I think the error is not related to the library. We can see more detail after you catch the response.

How can it NOT be JSON when JSON is all OpenAI replies? (Ok, check my reply below to see comment)
How can this NOT be a library issue when the exception is raised INSIDE the library assembly?
As I mentioned, unless it's by design (which it cannot be since it's a .Net exception, not a Betalgo.OpenAI.GPT3 exception - there is no reason why the call should OpenAiService.ChatCompletion.CreateCompletion raise an exception at all.

Anyway, I tried to make the same request in raw JSON REST request and here is the request and the response.
Request
{
	"model": "gpt-4",
	"messages": [
		{
			"role": "system",
			"content": "In this setup, you are going to help the user to generate text-based contents according to their specifications."
		},
		{
			"role": "user",
			"content": "In this setup, you are going to help me populate a database that represents personel information of a company. The database is going to be described using Prolog, specifically, the SWI implementation of Prolog.\r\n\r\nSee below snippet for schema and some information:\r\n\r\n```prolog\r\nhuman('Charles Wang', 55, male, 'Professional Engineer').\r\nhuman('Alice Yu', 27, female, 'Software Developer').\r\nhuman('Bob Jones', 30, male, 'Doctor').\r\nhuman('Cynthia Lee', 25, female, 'Nurse').\r\nhuman('David Smith', 5, male, 'Student').\r\nfather('Charles Wang', 'Alice Yu').\r\nfather('Charles Wang', 'Bob Jones').\r\nmother('Cynthia Lee', 'David Smith').\r\n\r\nfather(X, Y) :- human(X, _, male, _), father(X, Y).\r\nmother(X, Y) :- human(X, _, female, _), father(X, Y).\r\nparent(X, Y) :- father(X, Y).\r\nparent(X, Y) :- mother(X, Y).\r\nson(X, Y) :- human(X, _, male, _), parent(Y, X).\r\ndaughter(X, Y) :- human(X, _, female, _), parent(Y, X).\r\ngrandparent(X, Y) :- parent(X, Z), parent(Z, Y).\r\ngrandfather(X, Y) :- grandparent(X, Y), human(X, _, male, _).\r\ngrandmother(X, Y) :- grandparent(X, Y), human(X, _, female, _).\r\n\r\ncompany('Top Tech', 'Technology Consultation', 'Toronto', 150).\r\nemployee('Charles Wang', 'Top Tech', 2007, 125000).\r\nemployee('Thomas Ho', 'Top Tech', 2002, 140000).\r\nemployee('Sarah Adams', 'Top Tech', 2010, 100000).\r\nemployee('Jenny Smith', 'Top Tech', 2015, 90000).\r\nteacher('William Brown', 'Top Tech', 2006, 110000).\r\nmanager('Thomas Ho', 'Charles Wang').\r\nmanager('Thomas Ho', 'Sarah Adams').\r\nsupervisor('Charles Wang', 'Jenny Smith').\r\nsupervisor('Sarah Adams', 'William Brown').\r\ndirectly_reports_to(Subordinate, Manager) :- manager(Manager, Subordinate).\r\ndirectly_reports_to(Subordinate, Supervisor) :- supervisor(Supervisor, Subordinate).\r\nindirectly_reports_to(Subordinate, Manager) :- directly_reports_to(Subordinate, Supervisor), directly_reports_to(Supervisor, Manager).\r\nteam_member_of(EmployeeA, EmployeeB) :-\r\n    directly_reports_to(EmployeeA, Manager),\r\n    directly_reports_to(EmployeeB, Manager),\r\n    EmployeeA \\== EmployeeB.\r\n```\r\n\r\nWhere:\r\n\r\n1. `human` describes character name, age, gender and current profession\/title.\r\n2. `company` describes company name, company type, location, and number of employees.\r\n3. `employee` describes employee name, employer name, start year, and current salary.\r\n\r\nYou may fix any syntax\/grammar errors in existing code if necessary.\r\nNow, help me populate a database with 25 employee information for a fictional VR hardware (technology) company named Dreamscape, where a majority of employee have an Asian background but most have adopted western first names; Other employees are local Canadians. The database should also populate all relative or related person information, i.e. people with direct relations to those 25 people, like parents, and children."
		}
	]
}

Response

Conclusion
Ok, it turns out this is indeed NOT a JSON reply, my bad🥲
According to OpenAI.
Again, I think this should be handled by the library, not by the user code.
Also, on above link it showed that:

However I don't know how I can change that parameter.

I see this old issue, not sure the strategy by the library author here: https://github.com/betalgo/openai/issues/186

Some observations:

In other REST clients, e.g. Insomnia, one can explicitly set Timeout as global preferences (https://docs.insomnia.rest/insomnia/request-timeouts)
In .Net, one can set Timeout on System.Net.Http.HttpClient (https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpclient.timeout?view=net-8.0)

Hi, I can confirm that with one success request that takes 109 seconds to complete using raw request in Insomnia, it cannot be done with current API because HttpClient.Timeout is by default set to 100 seconds.
The call to OpenAiService.ChatCompletion.CreateCompletion will raise an exception because it will automatically close the connection after 100 seconds (NOT OpenAI). This is apparently a library issue.

For anyone else having the same problem, currently I am dealing with it with the following customized service provider (largely inspired by existing design of Betalgo OpenAI service:
using System;
using System.Collections.Generic;
using System.Net.Http.Headers;
using System.Net.Http;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Linq;
using Newtonsoft.Json;

namespace ChatAssistant.Types
{
    public class ChatMessage
    {
        [JsonProperty("role")]
        public string Role { get; set; }
        [JsonProperty("content")]
        public string Content { get; set; }
        public ChatMessage(string role, string content)
        {
            Role = role;
            Content = content;
        }

        public static ChatMessage FromAssistant(string content)
        {
            return new ChatMessage("assistant", content);
        }
        public static ChatMessage FromUser(string content)
        {
            return new ChatMessage("user", content);
        }
        public static ChatMessage FromSystem(string content)
        {
            return new ChatMessage("system", content);
        }
    }

    public class ChatService
    {
        #region Construction
        public string APIKey { get; }
        public string Model { get; }
        public ChatService(string key, string model)
        {
            APIKey = key;
            Model = model;
        }
        #endregion

        #region Interface Method
        public async Task<string> Request(IEnumerable<ChatMessage> messages, int tokens, float temperature)
        {
            var inputJson = new InputJson
            {
                Model = Model,
                Messages = messages.ToArray()
            };

            var inputJsonString = JsonConvert.SerializeObject(inputJson);
            var content = new StringContent(inputJsonString, Encoding.UTF8, "application/json");

            using var client = new HttpClient();
            client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", APIKey);
            client.Timeout = TimeSpan.FromMinutes(5); // Deal with longer execution time that's usually needed for GPT4

            var response = await client.PostAsync(EndpointUrl, content);

            if (response.StatusCode != HttpStatusCode.OK)
            {
                throw new Exception($"HTTP request failed with status code {response.StatusCode} and message {await response.Content.ReadAsStringAsync()}");
            }

            var responseJsonString = await response.Content.ReadAsStringAsync();
            var outputJson = JsonConvert.DeserializeObject<OutputJson>(responseJsonString);

            return outputJson.Choices.FirstOrDefault()?.Message.Content ?? null;
        }
        #endregion

        #region Implementation Details
        private readonly string EndpointUrl = "https://api.openai.com/v1/chat/completions";
        #endregion

        #region Types
        private class InputJson
        {
            [JsonProperty("model")]
            public string Model { get; set; }
            [JsonProperty("messages")]
            public ChatMessage[] Messages { get; set; }
        }
        private class OutputJson
        {
            [JsonProperty("id")]
            public string ID { get; set; }
            [JsonProperty("object")]
            public string Object { get; set; }
            [JsonProperty("model")]
            public string Model { get; set; }
            [JsonProperty("usage")]
            public Usage Usage { get; set; }
            [JsonProperty("choices")]
            public Choice[] Choices { get; set; }
        }
        private class Usage
        {
            [JsonProperty("prompt_tokens")]
            public string PromptTokens { get; set; }
            [JsonProperty("completion_tokens")]
            public string CompletionTokens { get; set; }
            [JsonProperty("total_tokens")]
            public string TotalTokens { get; set; }
        }
        private class Choice
        {
            [JsonProperty("message")]
            public ChatMessage Message { get; set; }
            [JsonProperty("finish_reason")]
            public string FinishReason { get; set; }
        }
        #endregion
    }
}

This works well for both GPT3.5-turbo and GPT4. For JSON serialization, it uses Newtonsoft.Json - you may replace it with Net 7 native JSON serializer.

Hi, sorry. I was too busy last week and couldn't reply to any messages.
I know the library should handle HTML responses too but I don't have time for that yet. I appreciate it if you would like to send a PR fix that. Here are 2 samples if you would like to customize httpclient.
Since we both agree the main issue is not related to the library, I am going to move this thread to discussions.
If you don't agree or something else please let me know 🙏🏻
var openAI = new OpenAIService(new OpenAiOptions()
{
    //your options
},
    new HttpClient()
    {
        Timeout = TimeSpan.FromSeconds(240)
    });
    ```
    or
```serviceCollection.AddOpenAIService().ConfigureHttpClient( r=>r.Timeout = TimeSpan.FromSeconds(240));```


Added Symfony 3 support

Hi everyone,
Here's a small tweak to make this bundle compatible with Symfony 3. I've run the tests and checked it on a demo application and everything seems fine.

:+1:

:+1:

:+1:

v1.1.1


Move everything under leafy/ namespace

Based on our chat discussion:

leafy/rack
leafy/metrics
leafy/health
etc

not sure if things already "sprout" ;)
but this is done. closing


Custom UI for creating tweets

This is a follow up to #92 /cc @matchai
What’s missing?
The goal of twitter-together is to encourage and enable editorial contributions to projects build around GitHub repositories. The first step was to use github.com's UI to make that possible, by creating *.tweet files in a dedicated repository.
What's missing is a custom UI tailored to the workflow of submitting a tweet to a project's shared twitter account.
Why?
The challenge of depending on GitHub's UI is that editorial contributors might not be familiar with GitHub and it's pull request workflows. The high learning curve only to submit a tweet might prevent people from contributing which goes against the point why I created twitter-together in the first place.
Alternatives you tried
Educate interested contributors in how to use github.com and provide a lot of documentation.

@gr2m I'm interested in doing this one

All yours! That'd be huge! Let me know if you have any questions.

I'll also register an OAuth App and deploy a server that we can use for the OAuth login flow.

I can setup the OAuth app

All yours! That'd be huge! Let me know if you have any questions.

@gr2m thanks 👍 This will be a great challenge 😄

I can setup the OAuth app

@gr2m yes please let me know the details.

I created a GitHub app, which also has the OAuth features, but it needs to be installed in order to get repository access. It will suite our needs better.
The app is https://github.com/apps/twitter-together
The server is hosted on Glitch: https://glitch.com/edit/#!/twitter-together
In order to login, you have to add a link to https://twitter-together.glitch.me/api/github/oauth/login. Right now it redirects to https://twitter-together.glitch.me/api/github/oauth/callback after you granted access, but we can configure any URL.
I'd suggest you create a separate repository for now and use GitHub pages or your deployment target of preference for static websites. Then let me know the URL and I'll update configure the server to redirect to your web app instead.
The redirect will include a ?code=... parameter that you will have to exchange for an OAuth User Access token, which will then allow you to create files in a repository etc, depending on the access your user account has and the permission of the GitHub App.
We did start to work on code to help with common OAuth tasks in the browser, but the work is not finished: https://github.com/octokit/auth-oauth-user-client.js. I think it should have most of the code ready though.
Our App Server on Glitch exposes the following routes, they are CORS enabled:
https://github.com/octokit/oauth-app.js/#middlewares
Let me know if you have any questions

I'd suggest you create a separate repository for now and use GitHub pages or your deployment target of preference for static websites. Then let me know the URL and I'll update configure the server to redirect to your web app instead.

@gr2m you mean by this one like using sandbox or development environment? like https://github.com/tenshiAMD/twitter-together-ui (private repo for now) or using an org repo instead?

yes like this. No reason not to make it public right away, you can state clearly in the README that this repository is work in progress. It will simplify collaboration if your repository is public.
Eventually we can create a twitter-together/app repository and combine your work with the app code at https://glitch.com/edit/#!/twitter-together and deploy it together continuously to Vercel or something similar

yes like this. No reason not to make it public right away, you can state clearly in the README that this repository is work in progress. It will simplify collaboration if your repository is public.
Eventually we can create a twitter-together/app repository and combine your work with the app code at glitch.com/edit/#!/twitter-together and deploy it together continuously to Vercel or something similar

@gr2m Ok got it. Thanks.

use GitHub pages or your deployment target of preference for static websites. Then let me know the URL and I'll update configure the server to redirect to your web app instead.

@gr2m I just started and setup using Vercel, here's the link. This is still WIP.
Starting these below:

v1 user stories

[ ]  As a user, I want to be able to sign in using my GitHub Account
[ ]  As a user, I want a to enter the text for my tweet into a form
[ ]  As a user, I want to be able to submit my tweet through the form
[ ]  As a user, I want to see if my submitted tweet is valid

Great! Let me know the URL you want the OAuth redirect to go to, which will include the ?code=... query parameter


Fixes regression with Table selectSubRows prop

Changes
Fixes a regression with the Table selectSubRows prop where setting it to false would cause parent rows to become unable to be unchecked. Regression was caused by this PR, because the updated selection column logic was written with the assumption that sub rows should always be selected when parent rows are selected. This was fixed by adding the selectSubRows from the CellProps object to the check for avoiding selecting sub rows if the sub rows aren't meant to be selected when the parent is.

Testing
Tested the fix with the vite playground using this code. Also added an e2e test for this issue.

Docs
Added patch react changeset.

@Ben-Pusey-Bentley This is released in 3.11.3 if you want to inform the user who reported this.


Persist the memory profile timeline

As discussed with @terrylucas and @cobblest earlier, we'd like to persist the memory profile timeline (total usage without components breakdown is sufficient) for automated performance benchmarks (e.g., complex_layout_scroll_perf__memory in https://flutter-dashboard.appspot.com/benchmarks.html). It seems that DevTools can provide such a tool without too much work.
Specifically, it would be nice to have a command line tool so we can:

Start that tool in command line
Start a Flutter driver test (e.g., flutter drive test_driver/scroll_perf.dar inside flutter/dev/benchmarks/complex_layout)
Stop the tool when the driver test finishes
The tool exports a json file that represents the memory timeline between step 1 and 3.

Related issue: https://github.com/flutter/flutter/issues/40406

As discussed in today's meeting with @terrylucas and @cobblest , we're most interested in the total memory (not just the Dart VM memory) usage. We'd like such data to have a granularity of 1 second (i.e., polling adb every 1 second), or higher if the tool (e.g., adb) supports.
Next 2 weeks will be busy for Flutter for Web, and we'll resume our work and meeting on 11/19.

Can we resume meetings on Nov. 26 (the following week)?

Sure, moved the meeting.

Meeting update on 11/26/2019: Jonah has written https://github.com/flutter/flutter/pull/45568. That PR should be able to land soon. Before that, Terry could cherry-pick that PR and start working on this. We're expected to have some prototype that we can try out in 2 weeks! See Terry's doc for more details.

@terrylucas : any update?

CC @potatoker : this is one of our effort to improve the automated memory measurement tool.

The functionality has been added to DevTools see PR

Collecting ADB memory statistics (Android only).
Viewing ADB and Dart VM Heap statistics.
Exporting the data to a JSON file.

Two switches have been added to DevTools CLI (server) see PR
The below command will launch a CLI that collects all memory profiling data and stores the data in the JSON file ~/Downloads/memory_log.json:
Enlisted in DevTools https://github.com/flutter/devtools.gitcd devtools/packages
> dart devtools/bin//devtools.dart  --vm-uri VM_Auth_URI --profile-memory fileName --verbose
VM_Auth_URI - token displayed in flutter run e.g., http://<IP_ADDRESS>:37141/m6a1twmdRpI=/
fileName - file to store statistics e.g., /usr/local/google/home/terry/Downloads/memory_log.json
The format of the JSON file is:
{
   "samples": {
     "version": 1,
     "dartDevToolsScreen": "memory"
     "data": [
      {
        "timestamp":1581540967479,
        "rss":211419136,
        "capacity":50956576,
        "used":41384952,
        "external":166176,
        "gc":false,
        "adb_memoryInfo":{
          "Realtime":450147758,
          "Java Heap":7416,
          "Native Heap":41712,
          "Code":12644,
          "Stack":52,
          "Graphics":0,
          "Private Other":94420,
          "System":6178,
          "Total":162422
        }
      },
    ]
  }
}

Two files are required packages/devtools/bin/devtools.dart and packages/devtools/pubspec.yaml
You can either jump to 1. Enlisted section to enlist in the DevTools repository https://github.com/flutter/devtools.git or jump to 2. Minimum to copy two files from the repository's master branch.
Any problems or changes you'd like ping me.
Also, have a Dart package available (devtools_shared) if you want to open and decode the JSON payload in Dart code.
Terry.
1. Enlisted
One time setup:
> mkdir ~/devtools
> cd ~/devtools
> git clone https://github.com/flutter/devtools.git
> cd packages/devtools
> pub get

Once enlisted/setup then this command will work:
> dart ~/devtools/packages/devtools/bin/devtools.dart --vm-uri VM_URI --profile_memory JSON_FILENAME --verbose
VM_URI observatory URL displayed when you run flutter run on the application you want to collect memory statistics on e.g.,
> flutter run
An Observatory debugger and profiler ... available at: http://<IP_ADDRESS>:44417/gUQ8O3FVTJ4=/
JSON_FILENAME path and name of the JSON file to store the memory statistics
Note: --verbose is optional it displays the timestamp of the collected sample as well as Dart Heap capacity,  ADB total memory and if a GC occured e.g.,
Collected Sample: [06:00:03.000] capacity=59861240, ADB MemoryInfo total=165960
Collected Sample: [06:00:03.000] capacity=62108944, ADB MemoryInfo total=165960 [GC]
Collected Sample: [06:00:04.000] capacity=83043880, ADB MemoryInfo total=193098
Collected Sample: [06:00:04.000] capacity=83043880, ADB MemoryInfo total=197894
Collected Sample: [06:00:04.000] capacity=91689440, ADB MemoryInfo total=197894 [GC]

2. Minimum
Copy two files packages/devtools/bin/devtools.dart and packages/devtools/pubspec.yaml from the master branch of DevTools github to a directory e.g.,
> mkdir ~./test_devtools
> cd ~/test_devtools

packages/devtools/pubspec.yaml
Then right-click on the file's content and select "Save As ..." and save to your newly created directory.
packages/devtools/bin/devtools.dart
Again, right-click on the file's content to save to your directory.
Then back your terminal session
[In directory ~/test_devtools one time setup]
> pub get
After that this command will work:
> dart ~/test_devtools/dartdevtools.dart --vm-uri VM_URI --profile_memory JSON_FILENAME --verbose
VM_URI observatory URL displayed when you run flutter run on the application you want to collect memory statistics on e.g.,
> flutter run
An Observatory debugger and profiler ... available at: http://<IP_ADDRESS>:44417/gUQ8O3FVTJ4=/
JSON_FILENAME path and name of the JSON file to store the memory statistics
Note: --verbose is optional it displays the timestamp of the collected sample as well as Dart Heap capacity,  ADB total memory and if a GC occured e.g.,
Collected Sample: [06:00:03.000] capacity=59861240, ADB MemoryInfo total=165960
Collected Sample: [06:00:03.000] capacity=62108944, ADB MemoryInfo total=165960 [GC]
Collected Sample: [06:00:04.000] capacity=83043880, ADB MemoryInfo total=193098
Collected Sample: [06:00:04.000] capacity=83043880, ADB MemoryInfo total=197894
Collected Sample: [06:00:04.000] capacity=91689440, ADB MemoryInfo total=197894 [GC]

Here's a doc on how to use the command line DevTools to collect the memory statistics to a JSON file

Yuqian any news on using this tool?

I just shared this tool with @dnfield and we were discussing an experiment of "max memory" metric using this tool to see if our current granularity (1 data point / second, right?) is good enough. Will keep you posted on the progress.

Re-opening for revert https://github.com/flutter/flutter/pull/56445

@liyuqian What's the status of this issue?

https://github.com/flutter/flutter/pull/57340 and https://github.com/flutter/flutter/pull/57704 re-landed the perf test. Closing this issue.


affected/package: net/http Cannot handle certain invalid request URLs

What version of Go are you using (go version)?

$ go version
go version go1.18.2 linux/amd64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/c3er/.cache/go-build"
GOENV="/home/c3er/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/c3er/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/c3er/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.18.2"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/c3er/repos/goscratch/go.mod"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build3014967349=/tmp/go-build -gno-record-gcc-switches"

What did you do?

Using the HTTP server from net/http it seems not possible to handle requests that contain certain, unescaped characters.
Given this example program:
package main

import (
	"fmt"
	"net/http"
)

func main() {
	http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
		fmt.Println(r.URL)
	})
	if err := http.ListenAndServe(":8123", nil); err != nil {
		panic(err)
	}
}

Trying this request:
$ curl -i 'localhost:8123/dfsfdsfds '
HTTP/1.1 400 Bad Request
Content-Type: text/plain; charset=utf-8
Connection: close

400 Bad Request

Note the space character at the end of the URL, though it doesn't matter where in the query part the space character is.
What did you expect to see?
Preferably that the my HTTP request handler is invoked and that I see output in the shell where the server was started. But if I could register some extra "request error handler" instead, it would also be fine.
My use case is an internally used microservice and I want to implement a proper error handling -- e.g. writing invalid request strings to a log.
What did you see instead?
No output in the shell where the server is started. See also above section "What did you do?" and "What did you expect to see?"

Thanks @seankhliao
I didn't find the issue when I searched for it.


Vendor gomobile

@keybase/react-hackers @gabriel (@maxtaco to make sure this vendoring looks okay)
This vendors gomobile so that we build our gomobile tool from a specific version so we don't have it break or change underneath us.
This breaking has happened several times before and most recently from this commit: https://github.com/golang/mobile/commit/2f75be449fbada35ca42f481f9878ba7f02a7e7d
for a meaningfull diff just look at the first commit: https://github.com/keybase/client/commit/5ceadb1a6153d63aaa2848fc5368b77d5dbed02e

:+1:

I wonder if we want to vendor a build tool..
We could git clone the mobile repo (at a revision) into the TMP_GO_PATH instead of vendoring?

I'm on with vendoring, the repo looks pretty small

👍


associate bot ID with bot user ID in storage

the RTM.start method returns bot users (ID like UXXX, is_bot = true) as well as bots/integrations (ID like BXXX). The user field, if it's a bot, includes the corresponding bot/integration ID.
However, this property disappears in storage - we get two separate lists of users ID and bot IDs. This make it difficult to reconcile. Here is a use case : the bot_message event returns a BXXX ID, while slack.activeUserId stores the UXXX ID, so it's difficult to know if that bot_message came from the current app.
Would it be possible to attach the bot ID to the user ID ?

Sorry for letting this issue go for so long.
Does https://github.com/slackhq/node-slack-sdk/pull/229 fix this for you?

I merged the PR, but let me know if you want anything different


[Feature request] DefaultMessageText TextStyle

Can you allow us to pass in our own custom textStyle to ParseText in DefaultMessageText?

You can easily create your own custom patterns/style using MessageOptions.parsePatterns


Move patch up in the hierarchy

@tadgh it could - certainly it introduces a bunch of new dependencies that would be questionable for android.
@jkiddo i don't understand the motivation of this PR? if you want to use the patch utils, why not just import hapi-fhir-storage? hapi-fhir-base aims to be as light as we can make it, given that it needs to run absolutely everywhere.

Fair enough - but the patch logic does not depend on the storage logic at all. Thats the motivation.

Yeah, it's mostly there because I assume that anyone wanting to use it is probably writing a server and therefore should be in a position to include that module. We could theoretically hive it off into its own module, but that seemed like overkill..

Then what about moving it to hapi-fhir-server then? Fair enough that base should stay minimal, but the logic also makes sense for facades and plain servers not using the jpa part.

We could move it there - although I don't know that I understand what problem we're solving by doing this.

I stumbled across it as I'm actually using the diff operation in a facade setup where there's no JPA but if I'm the only with the need then I'll cancel my endeavour here.

I mean I'm not opposed to it going in server instead of storage - It's not a perfect fit in either spot but either is better than creating another new module IMO. Up to you.


Originations slow

Hi there,
I'm finding that contract origination can take about 1 minute or so to complete (be injected). That's when setting the minimal_block_delay to 1.
Do you know how to make this occur less than 2 seconds? That's what we were able to achieve with Flextesa, so I assume that its just a protocol parameter I need to adjust. I tried a range of different protocol settings but I didn't find any I was trying helped speed things up.
Thanks so much!
Mike

Hi,
do you count in the tezbox bootstrap process or is it 1 minute without that?

Hi! Its after the boot process. If I try to originate too quickly, I'll
just get a bad gateway error (which is expected).
-- Michael Weichert
tez-capital/tezbox on October 24, 2024 at 5:22pm wrote:
Hi,
do you count in the tezbox bootstrap process or is it 1 minute without that?
—
Reply to this email directly, view it on GitHub
https://github.com/tez-capital/tezbox/issues/14#issuecomment-2436359474,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAC3LCYZGHO652WUFR7KBWTZ5FQHRAVCNFSM6AAAAABQP5FHM6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZWGM2TSNBXGQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

OK thanks. I will try to check during the weekend

Hi, I just tested contract deployment with the tezbox and it was deployed quickly. Is there any way I can recreate your setup?

Hi @mweichert please try with latest images. There was issue #15 which may be related and should be fixed in latest images.

Hi there! Unfortunately, I'm still having issues. I'm using Taquito to deploy:
// Hardcoded values to test with
const contractInfo = {
    "contract": "hello-tacos.tz",
    "code": "{ parameter nat ;\n  storage nat ;\n  code { UNPAIR ;\n         DUP 2 ;\n         DUP 2 ;\n         COMPARE ;\n         GT ;\n         IF { DROP 2 ; PUSH string \"NOT_ENOUGH_TACOS\" ; FAILWITH }\n            { SWAP ; SUB ; ABS ; NIL operation ; PAIR } } }\n\n",
    "initStorage": "100",
    "mutezTransfer": 0
}

const [fee, gasLimit, storageLimit] = [undefined, undefined, undefined]

const result = await tezos.wallet.originate({
	code: contractsInfo.code,
	init: contractsInfo.initStorage,
	balance: contractsInfo.mutezTransfer.toString(),
	mutez: true,
	fee,
	gasLimit,
	storageLimit,
})

const op = await result.send(); // halts on this line
await op.confirmation(isSandbox ? 1 : 3);

No worries @mweichert . Can you please share here what it was for others facing same issues in future?


Chocolatey hosed nupkg does not match nuspec

The nupkg host at chocolatey.org does not match the nuspec in the github source.
Does the package need to be rebuilt?
I mentioned this in the Disqus comment about 1 month ago.
Here is the live chocolateyinstall.ps1
$toolsDir   = $(Split-Path -Parent $MyInvocation.MyCommand.Definition)
$packageName = 'VeeamEndpointBackup'
$installerDir = Join-Path $toolsDir 'installer'
$downloadURL = 'https://download5.veeam.com/VeeamEndpointBackup_<IP_ADDRESS>6.zip'
$installer = 'VeeamEndpointBackup_<IP_ADDRESS>6.exe'

Install-ChocolateyZipPackage $packageName -url $downloadURL -UnzipLocation $installerDir

$packageArgs = @{
  packageName   = $installer
  fileType      = 'exe'
  file          = "$installerDir\$installer"
  silentArgs    = '/silent'
  ValidExitCodes = @(0,1000,1001)
}
Install-ChocolateyInstallPackage @packageArgs

Here is the chocolateyinstall.ps1 from github
$toolsDir   = $(Split-Path -Parent $MyInvocation.MyCommand.Definition)
$packageName = 'VeeamAgentWindows'
$packageVersion = '<IP_ADDRESS>0'
$installerDir = Join-Path $toolsDir 'installer'
$downloadURL = "https://download5.veeam.com/$($packageName)_$packageVersion.zip"
$installer = "$($packageName)_$packageVersion.exe"

$zipArgs = @{
	packageName   = $packageName
	url           = $downloadURL
	unzipLocation = $installerDir
	checksum      = '5430baed6bf5711e89b0c93456949597'
	checksumType  = 'md5'
}

Install-ChocolateyZipPackage @zipArgs

$packageArgs = @{
	packageName   = $installer
	fileType      = 'exe'
	file          = "$installerDir\$installer"
	silentArgs    = '/silent /accepteula'
  ValidExitCodes = @(0,1000,1101)
}

Install-ChocolateyInstallPackage @packageArgs

That't correct I haven't been able to get the package through the vetting process on chocolaty.org In part because it requires a manual override because issue #1, also it was failed moderation because the .net dependency is not stated properly in the package. In short I need to resubmit it.

I assume you mean #5 ? #1 is closed. I just submitted a PR for #5.

Using a pristine Windows 7 VM and testing the 2.0.x package it doesn't look like it needs .NET dependency. Am I missing something?

Using https://github.com/chocolatey/chocolatey-test-environment the package does fail.

choco.summary.log
chocolatey.log

Running the installer by hand it complained the Vagrant testing environment needed to be rebooted.
Rebooted and now I get this dialog.

I'll submit a PR to add the .NET dependency.

Got dependencies working-ish. Problem. If you install the chocolatey package dotnet4.5.2 it wants to reboot. I do not know how to handle a reboot when the reboot is caused by a dependency. Any ideas?
I'll research it more tomorrow.

Using https://github.com/chocolatey/chocolatey-test-environment, unzipping VeeamAgentWindows_<IP_ADDRESS>0.zip, and running VeeamAgentWindows_<IP_ADDRESS>0.exe I get the ".NET Framework 4.5.2 is missing" dialog.
The virtualbox box is pretty out dated.
Applying the latest Window Updates and rebooting allows the VeeamAgentWindows_<IP_ADDRESS>0.exe to install without a problem.
I propose documenting the fact that  .NET 4.5.2 is required, but chocolatey does not handles dependency that needs a reboot, ask for an exception to pass the package verification process.
I've done a PR with a  I think explains the problem and a work around.

https://github.com/chocolatey/chocolatey-test-environment installs .NET 4.0  so maybe it's safe to assume if people are running a modern version of Chocolatey a proper version of .NET is installed?

posted to chocolatey.org as veeam-agent


chore: cobra cmd cleanup

Few minor improvements in the way cobra library is used here.

root cmd, by convention, is named as the final binary. With server we refer to non-existing command in help, making output quite confusing for the user.

╰─ ior --help
Connects to Galley and manages OpenShift Routes based on Istio Gateways

Usage:
  server [flags]
  server [command]

Available Commands:
  help        Help about any command
  version     Prints version number and exits

Flags:
....
Use "server [command] --help" for more information about a command.

which in fact should be
╰─ ior --help
Connects to Galley and manages OpenShift Routes based on Istio Gateways

Usage:
  ior [flags]
  ior [command]

Available Commands:
  help        Help about any command
  version     Prints version number and exits

Flags:
....
Use "server [command] --help" for more information about a command.

There's no need to pass arguments explicitly to Cobra, thus I removed those bits

Added extra error handling and logging around root cmd

closing as the ior component has been moved into maistra/istio


ERROR: "Connection reset by peer"

Hello! Thank you so much for creating this awesome resource for the community, it has been a really great help!
I am encountering a problem: I am using the main.py RL script with the Hallway maze, and it seems to work well. However, trying any other maze, for example -- 4 rooms, yields the following error: (see attached image). Does anyone know the source of this error and how to fix it?
Thank you!

Hi @sunchipsster1 !
There is one other similar issue here: https://github.com/maximecb/gym-miniworld/issues/16
It's also possible something might be producing an error and you're not seeing the error message because it happens in another process that doesn't have access to print on the console. We'd have to find out what that error message is.
Does the error happen if you set the number of processes to 1 for the RL script? Does it print a different error message? Are you able to run the 4 rooms environment without issue using the manual_control.py script?

Hi @maximecb !
Thank you so much for your kind reply, and the suggestions!
I have tried your suggestions, and the results are as follows:
with Hallway, it is able to be successfully trained, even when num-processes is 1, or > 1 (e.g. 16) (1st attached image).
I tried to run Fourrooms in manual_control, and it works (2nd attached image). However, when I ran training, it received an error (3rd image attached).
In a peculiar observation, I created a "copy" of the hallway.py file called hallwayCopy.py None of the internal parameters of the room were changed, only the name of the file (4th attached image). However, when I ran this in training, this too received an error (5th attached image).
Do you know where the error might lay? Thank you again for all your kind help!

I think you just have the name of the environments wrong. The
capitalization matters, so it would be FourRooms-v0, and hallwayCopy-v0. It
has to exactly match the class name.
On Sun, 12 Apr 2020 at 11:31, sunchipsster1<EMAIL_ADDRESS>wrote:

Hi @maximecb https://github.com/maximecb !
Thank you so much for your kind reply, and the suggestions!
I have tried your suggestions, and the results are as follows:
with Hallway, it is able to be successfully trained, even when
num-processes is 1, or > 1 (e.g. 16) (1st attached image).
I tried to run Fourrooms in manual_control, and it works (2nd attached
image). However, when I ran training, it received an error (3rd image
attached).
In a peculiar observation, I created a "copy" of the hallway.py file
called hallwayCopy.py None of the internal parameters of the room were
changed, only the name of the file (4th attached image). However, when I
ran this in training, this too received an error (5th attached image).
Do you know where the error might lay? Thank you again for all your kind
help!
[image: image]
https://user-images.githubusercontent.com/56416888/79072673-4318ab80-7cb0-11ea-85e8-fed516a0775f.png
[image: image]
https://user-images.githubusercontent.com/56416888/79072534-80c90480-7caf-11ea-895e-baf1d7709854.png
[image: image]
https://user-images.githubusercontent.com/56416888/79072754-bde1c680-7cb0-11ea-9090-01d59d480c62.png
[image: image]
https://user-images.githubusercontent.com/56416888/79072362-a73a7000-7cae-11ea-92f2-2017f629dbc4.png
[image: image]
https://user-images.githubusercontent.com/56416888/79072636-1b294800-7cb0-11ea-8156-40c0aca1b7a6.png
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/maximecb/gym-miniworld/issues/22#issuecomment-612633913,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAFOIJTMHQMYT3GA6BBSGODRMHNGXANCNFSM4MGI7K4A
.

Hi @maximecb indeed, when I corrected the FourRooms-v0 as you instructed, it now works, thank you!
However, the hallwayCopy-v0 still does not, and I hope to understand why because I would like to be able to create new environments :) I was hoping you might be able to help me on this issue? Thank you again for everything and apologies if the solution ends up being some extremely trivial issue!
I have attached the names (capitalized appropriately, I hope, for the class name) of the relevant files to this email. I have attached the error which results.

Yes, you should import the Python file in __init__.py. Then, when launching the environment, the name you use should match the class name (not the Python script name). Your example looks correct.

Hi Maxime, it now works :)
For others who might naively encounter this -- after creating a new envs file, rerunning pip3 install -e . seems necessary.
Thank you so much!

Glad it's working :)


GET /aidpackages/{id} doesn't return itemID field on quotation objects

GET /aidpackages/{id} doesn't return itemID field on quotation objects. As a result, it throws the follwing error when trying to edit an AidPackageItem or an aidPackage
data binding failed: error("{ballerina/lang.value}ConversionError",message="'map<json>' value cannot be converted to 'admin_api:AidPackageItem':
		missing required field 'quotation.itemID' of type 'int' in record 'admin_api:Quotation'")

@jayasanka-sack This is fixed and deployed. Please check now


Problems with the Asset LIb

Godot version:
133942c
Issue description:

[ ] While it's loading the assets the editor constantly freezes.
[ ] An error sign appears in the place of the asset logo while it's loading.
[ ] If the logo fails to load, an exclamation icon appears instead, but it's much smaller compared with the other asset logos, and makes it look out of place.

Also AssetLib still spam the output with error red strings when preview images not correctly loaded


"Enable Plugin" Checkbox unchecked, autohangar still occurred

Had the plugin installed but the main "Hangar Config" had "Enable Plugin" unchecked
https://i.imgur.com/qITTTPB.png
That made me think nothing from QH would be accessible / run
Buuut I had left Autohangar configured to nab things >30% below surface
https://i.imgur.com/NYLocy6.png
and a grid got snatched up by QH and confused the hell out of me

hmmm


add cfg-options in train/test scripts

https://github.com/open-mmlab/mmdetection/blob/3e2693151add9b5d6db99b944da020cba837266b/tools/train.py#L72
Sometimes we want to use a custom runtime configuration for a given configuration file.
This feature is already supported in other mm-frameworks, so I added it.

Hello, thanks again for your contribution.
Would you please also help to mention this feature in the documentation?

[ ] https://github.com/open-mmlab/mmediting/blob/master/docs/en/getting_started.md
[ ] https://github.com/open-mmlab/mmediting/blob/master/docs/en/quick_run.md
[ ] https://github.com/open-mmlab/mmediting/blob/master/docs/zh_cn/getting_started.md
[ ] https://github.com/open-mmlab/mmediting/blob/master/docs/zh_cn/quick_run.md

Don't worry, if you do not speak Chinese we will fix the last two.

Fix #569

I added minimal explanation to docs/en/getting_started.md and docs/en/quick_run.md.
@wangruohui Can I ask you to check it?

I have added lines in Chinese docs. We can merge this after all CI passes.


not receiving notification and give error code 422

'Users with ids 5351459 do not have push notification subscriptions' when sending msg using react native

Yes  , i have already performed this steps still getting this error.

Attach logs were you do request and get response on subscription. And logs with the error 422

event_log_61fba775059aea0011c02462.json.zip
I am able to create session sucessfully , chatting is also working fine ,  i can also see the push notification token in our admin panel but for some reason i am getting 401 in push notification JSON
this issue is only facing in IOS side !

event_log_6200adb8ebf9ca00184a7013.json
This is even log of successfully send message

Any update ?

@ParmarJigarr  we brought a new push notifications library which addressed some issues   https://github.com/ConnectyCube/connectycube-reactnative-samples/pull/296
Please read the details and provide a feedback/comments if any

Hello @ParmarJigarr, did you ever fix this issue ?
I'm seeing the exact same error message in the event_log_xxx.json as you did. Thx.

@arnofo No brother , i am not able to send and receive  push notification with connectycube :( , so i had implement push notification by REST API . Thank You

@arnofo could you let me know which issue you are having now

Here is the log from your backend :
event_log_63d2baf5669b24002fd6130a.zip
This issue i am seeing is only on IOS.
I am using notifee with remote notification support as the library for receiving notifications :
https://notifee.app/react-native/docs/ios/remote-notification-support
I was having issues with your library when opening (press action) notifications (especially when the app was in the background).
Everything works fine on Android.
I am now trying to test it on IOS but the notification never seems to be pushed to phone.
I believe it is not sent by APNs to the phone. Probably because of the 401 seen in the event_log_xxx.json.

@arnofo according to backend log, the notification is failed to delivery with error status code 401, so the APNS server failed to accept the push request by some reason.
401 generally means Unauthorised. There could be one main reason:

could you check/show us your certificate/token settings at Admin panel. It could that the data you set is wrong , which I think should be a case here

Here it is :

Yes that was my understanding of the 401 as well but without a more precise error message, i am having a hard time finding what exactly goes wrong.
These kind of 401 mean that we cannot push to the APNs server or that the push message is rejected by the specific device targeted ?

@arnofo one more question
when you subscribe to pushes via 'create subscription' API, do you pass bundle_id or not?
If yes, is it equal to bundle_id of you APNS certificate?

No i do not pass bundle_id. I am going to try to debug again tomorrow, i will let you know if i find anything else.

@arnofo another idea is that you use wrong device token when subscribe to push notifications. It should be around 64 chars.
Could you show an example of your device token so we can compare?
Also, please provide a code snippet how you obtain device token via notifee  lib. It might be you are using wrong method. Let's check together

Hello @DaveLomber
You were right i was not getting the proper token for IOS. I misunderstood the full scope of how the push notifications worked with ConnectyCube. (i did not do the initial setup on the project i am working on)
Connectycube uses firebase to send Android push notifications and APNs directly for IOS push notifications.
In my code, i was getting a token from Firebase for both platform :
// Get the token from FCM
const token = await messaging().getToken();

I should have been using the package @react-native-community/push-notification-ios :
// Request permissions (required for iOS)
// requestPermissions will trigger registerForRemoteNotifications implicitly.
// register listener will get device token.
PushNotificationIOS.requestPermissions({
      alert: true,
      badge: true,
      sound: true,
});

PushNotificationIOS.addEventListener('register', (token) => {
      const token = token;
});

Then you use the token to create the subscription on Connectycube.
Few other clues that might help people that wanted to use notifee:

I used messaging().onMessage and messaging().setBackgroundMessageHandler to listen for firebase push notification
I used PushNotificationIOS.addEventListener('notification', ... ) to listen for APNs push notification
For both Firebase and APNs listeners, i call a function that displays the notification with notifee : notifee.displayNotification
I handle press actions and openings with notifee.onForegroundEvent and for completeness i also use notifee notifee.getInitialNotification when the app is opening from quit state.

(I still have a few edge cases to handle but most of the solution is working now)
Thanks for the help @DaveLomber.

@arnofo thanks for confirming it!
For someone who might use the notifee lib as well - we added a ref to this GitHub issue from documentation https://developers.connectycube.com/reactnative/push-notifications?id=notifee-lib
I will close the issue for now then, feel free to open another one for any other issues/questions


CommandContext.Guild.Roles is null

Was trying to make a command that lists a server's roles, but accessing ctx.Guild.Roles always throws a NullReferenceException... (EnableDms is false)

Known issue; will be fixed soon-ish. This is related to our de-staticizing, there's still some leftovers that cause problems.

I reworked large part of the cache initialization code. This should be fixed when I push the commits tomorrow.

Pin and unlimited are implemented AFAIK, just the update event is missing

@NaamloosDT I think this is the wrong issue.
At any rate, this should be fixed now, as per latest updates to cache initialization. If it isn't, I'll re-open the issue.

Was at animecon & not really awake lol


Regex escape for location names

Added regex escaping for all location names. This assumes no location names will need to utilize regex.
This will allow location names like "[IN]" or (IN)" to work without any additional escaping.

Looks good! Thanks.


Incorrect results when using some combinations of take, drop and slice

Hello. I discovered some cases where the library returns results I believe are incorrect:
GHCi, version 8.2.2: http://www.haskell.org/ghc/  :? for help
λ> import qualified Data.Vector.Persistent as PV
λ> import qualified Data.Foldable as F
λ> F.toList $ PV.slice 1 1 $ PV.drop 32 $ PV.fromList [0..33]
[32,33]

In this example we request a slice of length 1, but get back a result of length 2.
λ> F.toList $ PV.drop 1 $ PV.take 2 $ PV.fromList [0..32]
[]

Here the result should be [1].
λ> F.toList $ PV.drop 33 $ PV.drop 15 $ PV.fromList [0..33]
[33]

The first drop (first in evaluation order; the one with argument 15) seems to be completely ignored here. The number 15 can be changed to any number between 1 and 31 and gives the same result.
These test cases are minimized from larger ones which I generated using QuickCheck.

Totally incorrect. The situation for traverse is just as bad. If I swap out the Foldable instance with one defined foldMap = foldMapDefault, I get a totally different (still totally wrong) result: [33,32,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31].

Oh dear... chewing away with null, drop 1, and unsafeIndex goofs this up too. The whole slicing machine seems to be broken.

@travitch, if you can document the datatypes a bit better, I can take a shot at fixing this. Such broken behavior really blocks up my ideas for improving performance.

It may be better to just tear out the slicing code and deal with the bad performance of those operations until the core is in a more usable state. I can try to remember what the slicing was attempting to do - presumably there is just some index confusion, but the traversal is so entangled with that code that it is difficult to tease them apart.

Okay. I'll give that a shot. Best to start with something correct and try fixing performance afterwards.

@travitch, I'll strip that, and then I'll remove the Empty constructor. That'll give us vectors as records, so we can reasonably build sliced vectors on top and get everything to unpack nicely. If we're careful, we can probably keep code duplication to a minimum.

Thanks for taking a look at this! I've been wanting to get back to this structure for a while. The performance profile is a bit weird but I have high hopes for it in some cases.


Migration for tags rename

When a wendy task is created the tag is saved as a string, normally you use something like
    val TAG: String = Clazz::class.java.simpleName

But if you rename the class all current pending tasks break.. forcing you to ~cry~ clear the app data. is there any way to solve that now with wendy api?
Also, this should be warned in the docs.
Note: i'm using 0.2.1-alpha

At this time, no, there is not a migration feature. There also may never be.
I have thought about this issue before and decided that a migration feature would be too complex of a solution to solve the problem.
The problem is that after you change a class's name, the tag's name is now changed and Wendy can no longer run those tasks.
The solution that I felt was the best way to solve the problem is instead of using: val TAG: String = Clazz::class.java.simpleName as the tag, use a String: val TAG: String = "Clazz". So if you ever change the name of Clazz, nothing is broken.
Thank you for the message so I can update the docs. I have been using strings in my own apps these days anyway. I like to use a description like: "Update users profile photo" as the tag. I feel that it is more universal then UploadProfilePhotoPendingTask::class.java.simpleName.
I do not see a way to remove the need for tags at this time so the best way we can solve this problem is with best practices and docs. That would be a great way to fix this.
Would you like to update the README and send a pull request?

@levibostian i understand, i just opened this because of the need to document it, if you release an app and rename a tag you would have some problems to fix that... but wendy error message at least make it easy to find the error <3
I'll try to make a PR, it will take some weeks till i get some time for that.
Also, your suggestion to use a string should be in best practices...
Note: I'm kind of annoyed that the README syntax highlight is not configured for Kotlin, I'll fix that too

@Grohden I agree with everything you stated.

Using a descriptive string should be the best practice. Add a note to the docs that this should be the best practice.
Share that the descriptive string should not change. This allows you to change the name of your PendingTask and Wendy works as expected.
Add Kotlin syntax highlighting to readme 😄. Agreed!

Thanks for creating the issue. This is a fix that needs to be done.


Codespace crispy space system v6r6gr76j3pjjw

Boosting maths

good to go

Thanks for a PR. Did you end up deciding it wasn’t necessary?

Yes. Thank you very much
On Wed, 1 Nov 2023, 7:07 PM Pavel Komarov @.***> wrote:

Thanks for a PR. Did you end up deciding it wasn’t necessary?
—
Reply to this email directly, view it on GitHub
https://github.com/pavelkomarov/projection-pursuit/pull/3#issuecomment-1789419299,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAVKN5H3ZK6OB6W2XJFE3DYCKFVVAVCNFSM6AAAAAA6ZC63HWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBZGQYTSMRZHE
.
You are receiving this because you modified the open/close state.Message
ID: @.***>


Toggle association of EIPs based on AWS_ELASTIC_IPS environment variable.

In our AWS account, we don't have many EIPs available to us -- they are all in use.  So, having Pegasus automatically try to associate an EIP to every node in the cluster doesn't work.  We only have say 5 EIPs available and we want a 20-node spark cluster.  The way the Pegasus code is currently written, it tries to associate an EIP to each node and as soon as we run out of EIPs, we get errors.
As a quick hack, I wrapped that section in code with a check for an environment variable being defined named AWS_ELASTIC_IPS.  If it's defined, then it will run the EIP association code, otherwise it will skip it.

Thanks for the pull request!
We can add this is a flag in the instance yml file. Something like use_eips: true|false and look for `use_eips in the run_instances function in util.sh. I'd like to minimize the amount of host dependencies needed for pegasus to run and push config decisions into template yml files.
 Let me know if you'd like help with it or other solutions.

Hi Aaron,
I was able to work on this yesterday and got the feature implemented on the feat_eip branch. Let me know if this is alright and I can close this request or if you have a solution already.
Best,
Austin

I'll go ahead and close this pull request for now, since I'd like to merge in the feat_eip branch. If you'd like it reopened let me know!


Is there any way to style the date picker range picker?

I styled my app bar with bright color, and I can't change the picker save button text to black so it can be seen.
Any help will be aprishiated.

I managed to edit the color of the picker by defining the pickerBuilder like this:
final _pickerBuilder = (BuildContext context, Widget? child) {
    if(child == null) {
      child = SizedBox.shrink();
    }

    return Theme(
      data: ThemeData.dark().copyWith(
        colorScheme: ColorScheme.dark(
          primary: Colors.deepPurple,
          onPrimary: Colors.white,
          surface: Colors.pink,
          onSurface: Colors.yellow,
        ),
        dialogBackgroundColor: Colors.blue[900],
      ),
      child: child,
    ) as Widget;
  };

Just think it's not a very good workaround:
 if(child == null) {
      child = SizedBox.shrink();
    }

Any idea how to make it pretier?

Although it's good, this is not really an issue with flutter_form_builder. Better to ask it on stackoverflow.


Missing method "setAngle" in class ol.style.RegularShape

In constructor of class "ol.style.RegularShape" there is an options property "angle" for which there is no corresponding set method like it is usual for other attributes.
Is it missing or just not possible by design?
Thanks.

With the exception of setRadius for ol/style/Circle set methods exist only for properties which can be dynamically applied to the image in a style function without drawing a new canvas for the image.  angle is used in the drawing (rotation of the subsequent image can be used dynamically).


Fix report select patient padding issue

IMPORTANT: Where possible all PRs must be linked to a Github issue
Fixes #992
Type
Choose one: Bug fix
Checklist

[ ] I have written Unit tests for any new feature(s) and edge cases for bug fixes
[x] I have added any strings visible on UI components to the strings.xml file
[x] I have updated the  CHANGELOG.md file for any notable changes to the codebase
[ ] I have run ./gradlew spotlessApply and ./gradlew spotlessCheck to check my code follows the project's style guide
[ ] I have built and run the fhircore app to verify my change fixes the issue and/or does not break the app

But a new bug crops up if I fix #992
I need some help @ellykits


[wip] Add laravel on php 7

Hi,
In would be interesting to add Laravel on PHP 7.
Regards,

Oops, it still work in progress, sorry for the early comment

@tbrand Yes, its kind a too big (I'm new on PHP7)

OK, keep it as it.

close, since this PR will completely be re-written


zuul library version is not aligned with other spring libraries

zuul is on 2.2.3.RELEASE and but all other spring libraries are on 2.2.9.RELEASE.

seems versions are aligned - so not an issue


Don't error on IREE_ENABLE_TSAN without IREE_BYTECODE_MODULE_ENABLE_TSAN when IREE_BUILD_COMPILER=OFF

Currently an error like this is printed:
CMake Error at CMakeLists.txt:474 (message):
  When IREE_BYTECODE_MODULE_ENABLE_ASAN or IREE_BYTECODE_MODULE_ENABLE_TSAN
  is ON, IREE_BYTECODE_MODULE_FORCE_LLVM_SYSTEM_LINKER must also be ON.
  ASAN/TSAN instrumentation is not currently supported in embedded modules.

This should be suppressed when only building the runtime.

Hi,
I would like to create a PR for this issue. Can you assign it to me please?
Thank you,
Peyman

Done.


cargo-bpf: compilation error

I was following the instructions of https://github.com/foniod/redbpf/blob/main/README.md.
I first installed llvm as README.md said at section On Ubuntu 20.04 LTS:
$ llvm-config-13 --version | grep 13
13.0.1

But after running cargo install cargo-bpf, the compilation throws errors:
   Compiling llvm-sys v120.2.4
error: No suitable version of LLVM was found system-wide or pointed
              to by LLVM_SYS_120_PREFIX.

              Consider using `llvmenv` to compile an appropriate copy of LLVM, and
              refer to the llvm-sys documentation for more information.

              llvm-sys: https://crates.io/crates/llvm-sys
              llvmenv: https://crates.io/crates/llvmenv
   --> /home/USERNAME/.cargo/registry/src/github.com-1ecc6299db9ec823/llvm-sys-120.2.4/src/lib.rs:486:1
    |
486 | / std::compile_error!(concat!(
487 | |     "No suitable version of LLVM was found system-wide or pointed
488 | |        to by LLVM_SYS_",
489 | |     env!("CARGO_PKG_VERSION_MAJOR"),
...   |
496 | |        llvmenv: https://crates.io/crates/llvmenv"
497 | | ));
    | |__^

error: could not compile `llvm-sys` due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cargo-bpf v2.3.0`, intermediate artifacts can be found at `/tmp/cargo-install4oXpIf`

rustc version: rustc 1.63.0 (4b91a6ea7 2022-08-08)

I had a similar error, but running cargo install cargo-bpf --features llvm13 made it work.

I ran into the same problem by going through the instructions, and tried out using the feature flag mentioned above yet got the same error.
This was solved on my end by making creating a symbolic link to llvm-config - e.g.  sudo ln -s /usr/bin/llvm-config-13 /usr/bin/llvm-config

This could be caused by having multiple LLVM toolchains in your machine. My existing /usr/bin/llvm-config points to llvm-config-10. Removing and recreating a symlink to /usr/bin/llvm-config from /usr/bin/llvm-config-13 seems to have fixed the issue.