Make the tab's shell configurable

After playing with tab for some time, I'm very happy with the tool and its capabilities. One option I am missing though: specifying the shell to run when the tab is started. Something like the following configuration (based on your example) would be great:
repo: proj
doc: "my project"

tabs:
  - tab: run
    dir: src/
    shell: /usr/bin/fish
    doc: "runs the project server"

As an explanation: I'm using fish shell regularly but due to some compatibility issues of that shell my login shell is zsh. So tab proj/run/ will start a shell with zsh. Some other use cases include me wanting to use bash in certain projects because I want to restrict myself to features of bash when working e.g. on trying commands to include in containers whereas my development environment shall stay comfortable.

I'll add this to the next release.  It's really easy - a 1-line enhancement: https://github.com/austinjones/tab-rs/blob/main/tab-command/src/service/create_tab.rs#L76
I'll probably have it out this weekend.  And thanks for the feature request!

I've implemented this in #179.  The shell attribute is supported in the repo root as well as per tab.
Here is an example config:
https://github.com/austinjones/tab-rs/pull/182/files#diff-2667bd86b31eee7e27105393c8e5ab26

Many thanks for the fast reply and implementation. This looks really good :+1:

Closing, v0.4.0 is released!


Message: collections_remove_stale: Failed to access DBM file "ip|global" Invalid argument

WinCyr/Apache/mod_security 2.9.3/owasp-modsecurity-crs 3.3/def
Error:
"Message: collections_remove_stale: Failed to access DBM file "/tmp/\xf1\xe8\xf1\xf2\xe5\xec\xe0-global": Invalid argument
Message: collections_remove_stale: Failed to access DBM file "/tmp/\xf1\xe8\xf1\xf2\xe5\xec\xe0-ip": Invalid argument
Apache-Error: [file "apache2_util.c"] [line 271] [level 3] [client ...] ModSecurity: collections_remove_stale: Failed to access DBM file "/tmp/\\xf1\\xe8\\xf1\\xf2\\xe5\\xec\\xe0-global": Invalid argument [hostname "..."]  [uri "..."] [unique_id "..."]
Apache-Error: [file "apache2_util.c"] [line 271] [level 3] [client ...] ModSecurity: collections_remove_stale: Failed to access DBM file "/tmp/\\xf1\\xe8\\xf1\\xf2\\xe5\\xec\\xe0-ip": Invalid argument [hostname "..."] [uri "..."] [unique_id "..."]"
\xf1\xe8\xf1\xf2\xe5\xec\xe0 translated from russian as "system"(система)
I tried to find where the module takes this russian appendix to filename but didn't.

Auto text correction.
In my error appears 4 / in a row but here your script left only 2 / in a row.

Auto text correction.
In my error appears 4 \ in a row but here your script left only 2 \ in a row.

OWASP signed as v.3.2.0 - https://github.com/SpiderLabs/owasp-modsecurity-crs/

Solved with degrading to mod_security 2.9.2
Thanks to Steffen from https://www.apachelounge.com


Bump build number to add session management after re-building Qt with it

Closes #4

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@ocefpaf, how can I skip Appveyor and Travis to create packages after I merge this one?

Carlos, only phone here so I am probably missing the context. Why do we
need to skip Win and OSX? I thought that the build worked fine using
defaults in those cases.
Either way just merge as-is and do not worry about the failures as no
package will be created anyways.
On Oct 15, 2016 7:39 PM, "Carlos Cordoba"<EMAIL_ADDRESS>wrote:

@ocefpaf https://github.com/ocefpaf, how can I skip Appveyor and Travis
to create packages after I merge this one?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/conda-forge/pyqt-feedstock/pull/7#issuecomment-254015374,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA6BL5wUd_8FRTqKDzIKmOd7SENsZ9Hpks5q0VY2gaJpZM4KX1WL
.

Also please re-render with conda-smithy version 1.3.3.

Ok, this is (finally) ready! :-)
Thanks to all for your patience!

@ccordoba12 - thanks!! I think this needs to be done for pyside too? (e.g. https://travis-ci.org/glue-viz/glue/jobs/169867900)

Ok, right, I forgot about it :-p
@jschueller, could you bump Pyside's build number to trigger a rebuild for it :-) Thanks!


how to set button position on top left? 可以把按鈕放在左上角嗎？

Set verticalOrientation="down" and position="left".
This should do it. =)


Names with suffixes don't get deobfuscated correctly

Certain .ipk files have certain suffixes such as .English, .French, .Spanish and .German.
For example, in EFGame/Movies, there is SZSTEN387HFT6NV7W0VENTO7XZVLS.English.ipk, which doesn't deobfuscate correctly, but when removing the suffix from the name it correctly outputs as TUTORIAL_MOVIE_PERIODQUEST.

Thanks, I didn't research what types of filenames are used. I've been lacking in my updates, I'll do my best to get an update out soon. I plan on abandoning this program when I get my file explorer running anyways, updates might reflect when that is released.

Issue has been fixed in the new program, see below

Thanks, the file explorer looks good as well. :)


Add Pillbox Hill Hospital

The hospital in pillbox hill have a hole in the wall at the back enterance....

Nevermind Updating the file fix my issue....


_gradient_checkpointing_func not enabled in the finetune.sh

I tried to reproduce finetuning workflow with sh finetune.sh , does anyone know how to enable the _gradient_checkpointing_func? I tested with the same env you provided. https://github.com/InternLM/InternLM-XComposer/blob/main/docs/install.md
    outputs = model(**inputs)
  File "/home/yerong2/local/miniconda3/envs/intern/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/yerong2/local/miniconda3/envs/intern/lib/python3.9/site-packages/accelerate/utils/operations.py", line 819, in forward
    return model_forward(*args, **kwargs)
  File "/home/yerong2/local/miniconda3/envs/intern/lib/python3.9/site-packages/accelerate/utils/operations.py", line 807, in __call__
    return convert_to_fp32(self.model_forward(*args, **kwargs))
  File "/home/yerong2/local/miniconda3/envs/intern/lib/python3.9/site-packages/torch/amp/autocast_mode.py", line 14, in decorate_autocast
    return func(*args, **kwargs)
  File "/home/yerong2/local/miniconda3/envs/intern/lib/python3.9/site-packages/accelerate/hooks.py", line 169, in new_forward
    output = module._old_forward(*args, **kwargs)
  File "/home/yerong2/.cache/huggingface/modules/transformers_modules/internlm-xcomposer2d5-7b/modeling_internlm_xcomposer2.py", line 457, in forward
    to_regress_embeds, attention_mask, targets, im_mask = self.interleav_wrap(
  File "/home/yerong2/.cache/huggingface/modules/transformers_modules/internlm-xcomposer2d5-7b/modeling_internlm_xcomposer2.py", line 296, in interleav_wrap
    img_embeds, img_split = self.vit(img_list, self.plora_glb_GN, self.plora_sub_GN)
  File "/home/yerong2/local/miniconda3/envs/intern/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/yerong2/local/miniconda3/envs/intern/lib/python3.9/site-packages/accelerate/hooks.py", line 169, in new_forward
    output = module._old_forward(*args, **kwargs)
  File "/home/yerong2/.cache/huggingface/modules/transformers_modules/internlm-xcomposer2d5-7b/build_mlp.py", line 93, in forward
    image_forward_outs = self.vision_tower(input_imgs.to(device=self.device, dtype=self.dtype), output_hidden_states=True)
  File "/home/yerong2/local/miniconda3/envs/intern/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/yerong2/local/miniconda3/envs/intern/lib/python3.9/site-packages/accelerate/hooks.py", line 169, in new_forward
    output = module._old_forward(*args, **kwargs)
  File "/home/yerong2/local/miniconda3/envs/intern/lib/python3.9/site-packages/transformers/models/clip/modeling_clip.py", line 925, in forward
    return self.vision_model(
  File "/home/yerong2/local/miniconda3/envs/intern/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/yerong2/local/miniconda3/envs/intern/lib/python3.9/site-packages/accelerate/hooks.py", line 169, in new_forward
    output = module._old_forward(*args, **kwargs)
  File "/home/yerong2/local/miniconda3/envs/intern/lib/python3.9/site-packages/transformers/models/clip/modeling_clip.py", line 852, in forward
    encoder_outputs = self.encoder(
  File "/home/yerong2/local/miniconda3/envs/intern/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/yerong2/local/miniconda3/envs/intern/lib/python3.9/site-packages/accelerate/hooks.py", line 169, in new_forward
    output = module._old_forward(*args, **kwargs)
  File "/home/yerong2/local/miniconda3/envs/intern/lib/python3.9/site-packages/transformers/models/clip/modeling_clip.py", line 629, in forward
    layer_outputs = self._gradient_checkpointing_func(
  File "/home/yerong2/local/miniconda3/envs/intern/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1614, in __getattr__
    raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'CLIPEncoder' object has no attribute '_gradient_checkpointing_func'
  0%|                                                                                | 0/2 [00:02<?, ?it/s]

I find this is a issue raised by internlm-xcomposer2d5-7b, for internlm-xcomposer2-vl-7b other issue rises with the default trainer.

Please check your environment and make sure that torch==2.0.1, transformers==4.33.2.

for internlm-xcomposer2d5-7b, try to manually enable in the load_model method of the CLIPVisionTower class in build_mlp.py, refer to: https://github.com/huggingface/transformers/issues/30264
Maybe it helps.

Downgrading to transformers=4.33.2 fixed the issue. While I still hope we can fix it for new transformers. I was using 4.36.0

for internlm-xcomposer2d5-7b, try to manually enable in the load_model method of the CLIPVisionTower class in build_mlp.py, refer to: huggingface/transformers#30264 Maybe it helps.

Please check your environment and make sure that torch==2.0.1, transformers==4.33.2.

I use this solution in transformers==4.37.2 and it works

I use this solution in transformers==4.37.2 and it works

Thanks, could you update the build_mlp.py for the HF? I don't know how to do it yet.

Glad to see the issue of @YerongLi  is fixed when downgrading transformer version. Our fine-tuning code documentation highlights the version requirements. Please read the documentation first if you have any questions.
Thanks @FUJIsyu0515  for providing the manual solution for the higher transformer version!
Our current version dependency is indeed a bit old. I heard many community requests for compatibility with a higher transformer version. We will provide the update in our next version (e.g., IXC 3.0).
If you still have further questions, feel free to ask! 😊

@YerongLi , in build_mlp.py, locate class CLIPVisionTower:
class CLIPVisionTower(nn.Module):
    def __init__(self, vision_tower):
        super().__init__()

        self.is_loaded = False

        self.vision_tower_name = vision_tower
        #self.conv_dim = 8192
        #self.conv = torch.nn.Conv2d(1024, self.conv_dim,3,2,1)
        self.select_layer = -1
        self.select_feature = 'patch'
        self.load_model()

    def load_model(self):
        self.vision_tower = CLIPVisionModel.from_pretrained(self.vision_tower_name)
        self.vision_tower.requires_grad_(False)

        self.is_loaded = True

just need to add one line in load_model method:
def load_model(self):
    self.vision_tower = CLIPVisionModel.from_pretrained(self.vision_tower_name)
    self.vision_tower.gradient_checkpointing_enable({"use_reentrant": True})
    self.vision_tower.requires_grad_(False)

    self.is_loaded = True

This is not a strict way of writing. The complete approach is to decide whether to open the gradient checkpoint based on the training parameters passed in.

Yeah, I know, I have a similar version based on your hints. I have version that .gradient_checkpointing_enable({"use_reentrant": True}) in the finetune.py. Not sure whether authors with accept a PR as this.

@YerongLi Sounds good. Modifying in finetune.py is a reasonable option


Decrypt through cli

Is there a way to decrypt (in the opposite way)?

Hi, not at the moment as it's not really the main use case. The idea is to produce a standalone html file that can be unlocked by a human through a browser easily.
If you want to encrypt and decrypt files directly from the cli you probably should use a classic encrypting tool, openssl for example (https://wiki.openssl.org/index.php/Enc#Basic_Usage).
Let me know if you have a different use case in mind.

I use a personal TiddlyWiki to keep my stuff in one place and structured, various business and personal resources, TODOs, links, account info and passwords, even lyrics and recipes.
The wiki is just a single html file and that proved really helpful for many years now. However, security was always an issue. Your solution is simple and solves me a lot of headaches of being breached since I carry this file quite often to other computers.
However, the wiki is updated continuously, that's the purpose after all. So there is the need to decrypt the file before creating or updating content and then lock it again. You also want to keep track of changes and compare versions, that's another reason you'd want them to be decrypted.
Only if I had decryption as handy as encryption is, I wouldn't need to keep the open version at all.

I second this. Doing CLI decryption would be useful, since that would allow me putting encrypted files with various stuff in an open repository (not that I would use it for banking details, but still).

I strongly disagree.  Any method of undoing something that can be done offers an attack vector for someone compromising your code.  IMHO, similar to other forms of hashing, the 'encryption' method should be one-way ONLY.  Keep a copy of your source code near 'n dear to you.  Having the ability to decrypt what you've encrypted defeats the whole purpose of utilizing this software tool.

Dear @infracritical, I am wondering if we're talking about the same thing. I do not advocate using two-way encryption for password comparisons, as is often done on dynamic sites. I want to be able to decrypt the contents of the webpage from the CLI, and not only from the web browser. My understanding is that StatiCrypt uses AES encryption, which is not a one-way hashing algorithm, but a two-way symmetric algorithm. If it were not already possible to decrypt, how would it be possible to display the contents in the browser after typing the password?

@andreasgou: My use case is similar to yours. I store not-so-sensitive information behind StatiCrypt encryption. I'd like to keep it version-controlled, but encrypted, and just locally decrypt the pages while working on them. One solution that worked for me is based on @robinmoisson's suggestion of using the openssl command line utility. I have made a script that encrypts selected web-pages using both openssl and StatiCrypt, such that one file is generated from each. Another script decrypts the web-page from the openssl file, which I can use when modifying it. I use the same encryption for openssl as StatiCrypt (AES) to make sure the level of security matches.
On another account (pun intended): I'm not sure I would keep account info and passwords behind StatiCrypt. I would use dedicated software for that (for instance LastPass).

I strongly disagree. Any method of undoing something that can be done offers an attack vector for someone compromising your code. IMHO, similar to other forms of hashing, the 'encryption' method should be one-way ONLY. Keep a copy of your source code near 'n dear to you. Having the ability to decrypt what you've encrypted defeats the whole purpose of utilizing this software tool.

For me this reasoning match the definition of security by obscurity.
This tool is a tool of encryption, if it was one-way it would have used hashing technology but it's not at all the purpose of the project. Having a decryption tool for an encryption method is a requirement since it's a part of the flow, here you can already decrypt everything with the little .js code or even via the demo website.
Having the decrypt method directly in the CLI will just make things more easier:

Users will be able to implement new way to use it
It will make it more obvious for users that it's an ENCRYPTION method and so that it's completly doable to decrypt it (making it more secure by allowing people to better understand the tool)

Thank you all for sharing thoughts on this.
I agree in some cases it could be pretty convenient to have one simple repo with encrypted files, have an ignored .env file with the password (once #134 is here), be able to run npm run decrypt to decrypt all files in place, edit them, run npm run encrypt to encrypt them all and commit & push.
My only concern is how to get the encrypted data from the encrypted html. The only solution I see is searching for the strings var encryptedMsg = "..." and var salt = "..." and extracting it from those. The thing is:

it might break for people using a custom template. Maybe we can add a comment just above those variables to tell to not rename them, and have that in the --decrypt flag description as well.
it might break if we inline code from elsewhere that might use the same variable names for something different. Maybe changing the name of the variables to something really unique could be enough.

The other solution I see would be storing the encrypted data in a metadata file next to each encrypted html file but that feels way too cumbersome just for enabling this specific use case.
(Feedback or ideas are welcome, feel free to share if you want.)

StatiCrypt v3 brought more control over the password_template and I could add a way to decrypt through the CLI - you just need to add the --decrypt flag and StatiCrypt will run in decrypt mode. The README has been updated and this is now supported in 3.3.0.
Thank you for the thoughts and suggestions!


Add LightningCSS to preprocessors

Description (required)
"How to set up LightningCSS w/ Astro"
LightningCSS is supported by Astro, and allows using several features that something like Sass might support but via current CSS without leaving old browsers behind. We should document how to set it up
Related issues & labels (optional)

Closes #
Suggested label:

Feel free to workshop / move this / update my PR, I just wanted to make sure it's documented somewhere

Great, I'm trying to figure out how to say

Lightning CSS lets you use modern CSS features and future syntax today. Features such as CSS nesting, custom media queries, high gamut color spaces, logical properties, and new selector features are automatically converted to more compatible syntax based on your browser targets.
Lightning CSS also automatically adds vendor prefixes for your browser targets, so you can keep your source code clean and repetition free.

succinctly...

Yeah, as I said, cool with merging as-is!
I don't need a description of what it DOES (none of the others have that), only if you need to do something else to USE/ENABLE it (e.g. an attribute in your <style> tag). It's really just, does it work with all that you've shown, or not? Is there literally anything else to DO?

Nope! It should process all vanilla CSS 👍
I'm going to merge in that case 👍


Remove DataFrame, Leverage the internal WiFi heap

As we know, the WiFi drivers require a heap. We currently set aside 64K; However, we also create a bunch of queues for packets, both on receive and for transmit. This is a bit of a waste, because although we don't really want the heap, we have to have one, so we may as well use it!
This PR does two things:

Drops all packet storage for receiving on the Rust side, instead we now use the allocated heap storage until its been processed by smoltcp, once that happens the Drop impl frees the buffer for the WiFi driver to reuse.
Removes all packet storage for transmission, and instead rate limits the number of tx packets by the original TX_QUEUE size config option.

Side note: For TX there was another option, which was to use esp_wifi_internal_tx_by_ref and allow the WiFi driver to use Rust memory, but this seemed more complicated than the current solution.
Benefits of this PR

We should free up around 50KB of RAM, which particularly for the smaller chips is huge.
Improve performance, we would previously memcpy at a whole bunch of places, which should now be minimized, particularly on receive.

There is just
Code  Stack Name
  538  1584 <esp_wifi::wifi::WifiTxToken as smoltcp::phy::TxToken>::consume::hf4ee19d55c7bbb1c
  334  1552 <esp_wifi::wifi::WifiTxToken as smoltcp::phy::TxToken>::consume::h1af3f79753b77520
  344  1552 <esp_wifi::wifi::WifiTxToken as smoltcp::phy::TxToken>::consume::haae6ba188ac2e90a

But it's still better than the 4.5k we had initially. Also, there is already a TODO comment. I wouldn't block this PR because of that. Especially since this is on the main stack and we now have a lot more stack space 😆
Good job! I ran all examples on all targets without issues


Added a JSDOC Parser Test Using Chai & Mocha

parserTest.js is the file that adds the test right? @Pika1998

@rahil1304 correct

Seems good to me. The only thing I would suggest is maybe choosing a better name for 'test-repository.' The name is a little misleading. Maybe something like output-test-files or test-output, etc would be a better naming convention. @Pika1998

Thanks @rahil1304 , test_output seems good to me, I will change it to that


loading external stylesheets

(ignore wildcard import i will fix that)

I dont just pass TagAction into nodePopped and instead i create this inside the function. I feel this is simpler than passing it to the function because then i would have to create that in ElementStack and this is not a proper place to do that. And if something goes wrong function just returns empty rule list and if list is empty, there is no need for adding it.
I also have to understand better FetchConnectionPool class because you can see there are two empty anonymus implementations of that and it is yet to change

With that HTMLRendererBackendParserSetting class is so much simpler

You see rather than calling getCSSRuleList and adding stylesheet somewhere else outside TagAction implementator, i call handleTag and there if necesary stylesheet is added

I added an algorithms from the specs and i dont know if this is implemented properly because i dont know how to actually get this stylesheet. I think this is time when taks-polling have to be implemented to execute code that is in FetchConsumeBodyAction.execute()


Problem with trex_inference.py 'size mismatch for encoder.sentence_encoder.byte_combine.projection.weight'

I'm unable to execute the trex_inference.py file as it's returning this error:
[D] Loading function traces
[D] Loading Trex model
Traceback (most recent call last):
  File "trex_inference.py", line 102, in <module>
    main(input_pairs, input_traces, model_checkpoint_dir,data_bin_dir, output_dir)
  File "trex_inference.py", line 60, in main
    trex = TrexModel.from_pretrained(f'checkpoints/similarity',
  File "/fairseq/models/trex/model.py", line 308, in from_pretrained
    x = hub_utils.from_pretrained(
  File "/fairseq/hub_utils.py", line 73, in from_pretrained
    models, args, task = checkpoint_utils.load_model_ensemble_and_task(
  File "/fairseq/checkpoint_utils.py", line 389, in load_model_ensemble_and_task
    model.load_state_dict(state["model"], strict=strict, model_cfg=cfg.model)
  File "/fairseq/models/fairseq_model.py", line 125, in load_state_dict
    return super().load_state_dict(new_state_dict, strict)
  File "/opt/conda/envs/trex/lib/python3.8/site-packages/torch/nn/modules/module.py", line 2189, in load_state_dict
    raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for TrexModel:
        Unexpected key(s) in state_dict: "encoder.sentence_encoder.embed_bytes.weight".
        size mismatch for encoder.sentence_encoder.byte_combine.convolutions.0.weight: copying a param with shape torch.Size([64, 768, 1]) from checkpoint, the shape in current model is torch.Size([4, 1, 1]).
        size mismatch for encoder.sentence_encoder.byte_combine.convolutions.0.bias: copying a param with shape torch.Size([64]) from checkpoint, the shape in current model is torch.Size([4]).
        size mismatch for encoder.sentence_encoder.byte_combine.convolutions.1.weight: copying a param with shape torch.Size([128, 768, 2]) from checkpoint, the shape in current model is torch.Size([8, 1, 2]).
        size mismatch for encoder.sentence_encoder.byte_combine.convolutions.1.bias: copying a param with shape torch.Size([128]) from checkpoint, the shape in current model is torch.Size([8]).
        size mismatch for encoder.sentence_encoder.byte_combine.convolutions.2.weight: copying a param with shape torch.Size([192, 768, 3]) from checkpoint, the shape in current model is torch.Size([12, 1, 3]).
        size mismatch for encoder.sentence_encoder.byte_combine.convolutions.2.bias: copying a param with shape torch.Size([192]) from checkpoint, the shape in current model is torch.Size([12]).
        size mismatch for encoder.sentence_encoder.byte_combine.highway.layers.0.weight: copying a param with shape torch.Size([768, 384]) from checkpoint, the shape in current model is torch.Size([48, 24]).
        size mismatch for encoder.sentence_encoder.byte_combine.highway.layers.0.bias: copying a param with shape torch.Size([768]) from checkpoint, the shape in current model is torch.Size([48]).
        size mismatch for encoder.sentence_encoder.byte_combine.highway.layers.1.weight: copying a param with shape torch.Size([768, 384]) from checkpoint, the shape in current model is torch.Size([48, 24]).
        size mismatch for encoder.sentence_encoder.byte_combine.highway.layers.1.bias: copying a param with shape torch.Size([768]) from checkpoint, the shape in current model is torch.Size([48]).
        size mismatch for encoder.sentence_encoder.byte_combine.projection.weight: copying a param with shape torch.Size([768, 384]) from checkpoint, the shape in current model is torch.Size([768, 24]).

Could someone please assist me in resolving this issue? I would be very appreciate.

Hi @caroline-mrs , thank you for opening this issue.
I cannot reproduce the error that you are facing, can you please try again with the updated Trex Dockerfile - related to Issue #56?
Are you using the docker container as described in the Trex README?
Can you please provide the detailed steps and instructions that you are following?


fix(ci): Added x86 builds to AppVeyor

Should solve #274.
Seems like AppVeyor has no problems with building x86.
Worth mentioning is that prebuilding on Windows on Node 10 will work properly now since I went in and fixed: https://github.com/prebuild/prebuild/issues/221

@resin-ci retest

@resin-ci retest


HOP 3504

This PR is to let KafkaConsumer manage unexpected exception generated in the called sub pipeline by records injected from the kafka queue. This possibility is given only in case of batchSize = 1 because only in that case we have a feeling on which is the failing record and we can easily use the error path to let that record come out from the called sub pipeline. As soon as the records comes out, it is committed in kafka and we have the possibility to dump it somewhere else for further investigation.
The push to the error path of the failing record gives 2 benefits:

because of the commit it will free the kafka queue from a record that is stopping other records from being processed
the pipeline is not stopped because of the unexpected unhandled exception

Looks good


changelog?

Worth having a changelog?
Was 0.2.4 suppose to get a tag on github? Easiest way is to use github to compare code between releases.
Nice work on the 0.2.4 release! I'll grab it from conda-forge nonetheless. Thanks!

Tag was made but not pushed :)
Changelog is a good idea in theory, but tends to be more or less the same as the set of merged PR title.


Update Docker FROM to senzing/senzingapi-runtime:3.2.0

See https://github.com/Senzing/senzingapi-runtime/issues/20

Pull requests:

https://github.com/Senzing/g2search/pull/31


utils/pypi respect ignore_non_pypi_packages

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew typecheck with your changes locally?
[ ] Have you successfully run brew tests with your changes locally?

Elsewhere on this file, the ignore_non_pypi_packages flag is used
to continue to make progress despite the existence of non-pypi resources
There is one check in the update_python_resources function that
will always odie if there is a non-pypi resource. This prevents
brew bump-forumla-pr from being run on formulas that contain
both pypi and non-pypi resources.
This PR modifies said check to not call odie when such resources
are encountered

@Rylan12 oh good call. Would it be acceptable behavior to keep track of the non-Pypi resources, and reprint them out to the new_resource_blocks object (in sorted order it looks like). If so I can add that change as part of this PR

Yeah, that would be great, actually!
Also, I've been wanting to rewrite that part of this to use the Utils::AST module because the regex replace feels a bit tacky at the moment. I haven't really looked at the module though, so it might not be possible. Just figured I'd mention it in case it makes the work easier (but no need to switch over and add new complexity)

A bit swamped with other things early in the week but I should have time to get this done later in the week

Is there documentation on how to build/run my changes end to end?

Another quick question: is there a way to retrieve the raw string used to generate the Resource object in https://github.com/Homebrew/brew/blob/master/Library/Homebrew/utils/pypi.rb#L205 ?

Is there documentation on how to build/run my changes end to end?

When you make changes locally, you don't need to re-build or anything like that. Just run brew xyz like you normally would and it should pick up your changes. If you're unsure, throw some debug messages in to make sure you're seeing their output.
Not totally sure what you mean by "end to end" here, but if it would be good to run brew style, brew typecheck and brew tests which will ensure you're following our style conventions, don't have any type issues, and will run our check suite.

Another quick question: is there a way to retrieve the raw string used to generate the Resource object in https://github.com/Homebrew/brew/blob/master/Library/Homebrew/utils/pypi.rb#L205 ?

Not sure what you mean by "raw string used to generate the resource" here. The .each block will cycle through each resource one at a time and assign the current resource to the resource variable. This will be a Resource object.
There isn't really a string that defines the resource. Rather, it comes from the resource block in the formula definition (e.g. here for snakemake).
You can access this information using Resource#name and Resource#url.

There isn't really a string that defines the resource. Rather, it comes from the resource block in the formula definition (e.g. here for snakemake).

I mean some resources might look like
   16:   resource "ivy" do
   17:     url "https://www.apache.org/dyn/closer.lua?path=ant/ivy/2.5.0/apache-ivy-2.5.0-bin.tar.gz"
   18      mirror "https://archive.apache.org/dist/ant/ivy/2.5.0/apache-ivy-2.5.0-bin.tar.gz"
   19      sha256 "3855a5769b5dbeafa9fb6a00f130467fd0f89da684a0b33a91e3dc5dae2715c7"
   20    end

I'm wondering if there's a way to go from resource object back to this string

Yeah, there's no on-liner to do that at the moment. It's just done manually using string interpolation for now:
https://github.com/Homebrew/brew/blob/0228c13832638e318a20411ade1159dcd19e4f38/Library/Homebrew/utils/pypi.rb#L249-L255


Not compatible with latest /transformers/models/llama/modeling_llama.py : keyword argument 'position_ids'

When did you clone our code?
I cloned the code base after 5/1/23
Describe the issue
Issue:
This code base uses transformers==4.28.0.dev0
Command:
training command

Log:
    return module(*inputs, output_attentions, None)                                                                                [174/595]
  File "/scratch/yerong/.conda/envs/llava/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "/scratch/yerong/.conda/envs/llava/lib/python3.10/site-packages/accelerate/hooks.py", line 165, in new_forward
    output = old_forward(*args, **kwargs)
  File "/scratch/yerong/.conda/envs/llava/lib/python3.10/site-packages/transformers/models/llama/modeling_llama.py", line 413, in forward
    hidden_states, self_attn_weights, present_key_value = self.self_attn(
  File "/scratch/yerong/.conda/envs/llava/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
  File "/scratch/yerong/.conda/envs/llava/lib/python3.10/site-packages/accelerate/hooks.py", line 165, in new_forward
    output = old_forward(*args, **kwargs)
TypeError: forward() got an unexpected keyword argument 'position_ids'

Screenshots:
You may attach screenshots if it better explains the issue.

Now this error is fixed with 6cea223532a7ab7bda8116336c59772faccdcbca version


Go service auto instrumentation creates empty/all zero span_id and trace_id resulting in OTel collector error

Describe the bug
Hi,
I am have a demo app (https://github.com/GoogleCloudPlatform/microservices-demo) deployed in a k8s cluster.
The services are in Java, NodeJS, .Net and Go.
I have the open telemetry operator installed in my cluster with featureGates: "operator.autoinstrumentation.go" to enable support for Go.
The app YAML files contains annotations as follows
 annotations:
        instrumentation.opentelemetry.io/inject-go: "true"
        instrumentation.opentelemetry.io/otel-go-auto-target-exe: "/src/server"

My configured trace flow is as follows
[App + Auto Instrumentation] ---> OTel collector deployment --> Tempo --> Grafana
collector manifest as follows
apiVersion: opentelemetry.io/v1alpha1
kind: OpenTelemetryCollector
metadata:
  name: demo
spec:
  config: |
    receivers:
      otlp:
        protocols:
          grpc:
          http:
    processors:
      memory_limiter:
        check_interval: 1s
        limit_percentage: 75
        spike_limit_percentage: 15
      batch:
        send_batch_size: 10000
        timeout: 10s
    exporters:
      logging:
      otlp:
        endpoint: 'demo-tempo:4317'
        tls:
          insecure: true

    service:
      telemetry:
        logs:
          level: "debug"
      pipelines:
        traces:
          receivers: [otlp]
          processors: []
          exporters: [otlp]

Instrumentation.yaml
apiVersion: opentelemetry.io/v1alpha1
kind: Instrumentation
metadata:
  name: demo-instrumentation
spec:
  exporter:
    endpoint: http://demo-collector:4317
  propagators:
    - tracecontext
    - baggage
    - b3
  sampler:
    type: parentbased_traceidratio
    argument: "0.25"
  python:
    env:
      - name: OTEL_EXPORTER_OTLP_ENDPOINT
        value: http://demo-collector:4318
  dotnet:
    env:
      - name: OTEL_EXPORTER_OTLP_ENDPOINT
        value: http://demo-collector:4318

Environment
opentelemetry-operator-0.31.0
App Version 0.78.0
To Reproduce
Steps to reproduce the behavior:

Create the OTel instrumentation and collector
Deploy the microservice
Check for errors

Expected behavior
Traces must be flowing correctly to the collector and to tempo.
Actual behavior
I can see the auto-instrumentation sidecar gets created and I don't see any errors in the log for the auto instrumentation.
{"level":"info","ts":1687267692.2892423,"caller":"opentelemetry/controller.go:74","msg":"got event","attrs":[{"Key":"http.method","Value":{"Type":"STRING","Value":"GET"}},{"Key":"http.target","Value":{"Type":"STRING","Value":"/_healthz"}}]}
{"level":"info","ts":1687267692.289315,"caller":"opentelemetry/controller.go:74","msg":"got event","attrs":[{"Key":"http.method","Value":{"Type":"STRING","Value":""}},{"Key":"http.target","Value":{"Type":"STRING","Value":""}}]}
{"level":"info","ts":1687267692.2893906,"caller":"opentelemetry/controller.go:74","msg":"got event","attrs":[{"Key":"http.method","Value":{"Type":"STRING","Value":""}},{"Key":"http.target","Value":{"Type":"STRING","Value":""}}]}
{"level":"info","ts":1687267702.289056,"caller":"opentelemetry/controller.go:74","msg":"got event","attrs":[{"Key":"http.method","Value":{"Type":"STRING","Value":"GET"}},{"Key":"http.target","Value":{"Type":"STRING","Value":"/_healthz"}}]}
{"level":"info","ts":1687267702.2891462,"caller":"opentelemetry/controller.go:74","msg":"got event","attrs":[{"Key":"http.method","Value":{"Type":"STRING","Value":"GET"}},{"Key":"http.target","Value":{"Type":"STRING","Value":"/_healthz"}}]}
{"level":"info","ts":1687267702.2891617,"caller":"opentelemetry/controller.go:74","msg":"got event","attrs":[{"Key":"http.method","Value":{"Type":"STRING","Value":"GET"}},{"Key":"http.target","Value":{"Type":"STRING","Value":"/_healthz"}}]}
{"level":"info","ts":1687267702.2891858,"caller":"opentelemetry/controller.go:74","msg":"got event","attrs":[{"Key":"http.method","Value":{"Type":"STRING","Value":""}},{"Key":"http.target","Value":{"Type":"STRING","Value":""}}]}
{"level":"info","ts":1687267702.2892082,"caller":"opentelemetry/controller.go:74","msg":"got event","attrs":[{"Key":"http.method","Value":{"Type":"STRING","Value":""}},{"Key":"http.target","Value":{"Type":"STRING","Value":""}}]}
{"level":"info","ts":1687267702.2892299,"caller":"opentelemetry/controller.go:74","msg":"got event","attrs":[{"Key":"http.method","Value":{"Type":"STRING","Value":"GET"}},{"Key":"http.target","Value":{"Type":"STRING","Value":"/_healthz"}}]}
{"level":"info","ts":1687267712.2893083,"caller":"opentelemetry/controller.go:74","msg":"got event","attrs":[{"Key":"http.method","Value":{"Type":"STRING","Value":"GET"}},{"Key":"http.target","Value":{"Type":"STRING","Value":"/_healthz"}}]}
{"level":"info","ts":1687267712.2893782,"caller":"opentelemetry/controller.go:74","msg":"got event","attrs":[{"Key":"http.method","Value":{"Type":"STRING","Value":"GET"}},{"Key":"http.target","Value":{"Type":"STRING","Value":"/_healthz"}}]}
{"level":"info","ts":1687267712.2894142,"caller":"opentelemetry/controller.go:74","msg":"got event","attrs":[{"Key":"http.method","Value":{"Type":"STRING","Value":""}},{"Key":"http.target","Value":{"Type":"STRING","Value":""}}]}
{"level":"info","ts":1687267712.2895224,"caller":"opentelemetry/controller.go:74","msg":"got event","attrs":[{"Key":"http.method","Value":{"Type":"STRING","Value":"GET"}},{"Key":"http.target","Value":{"Type":"STRING","Value":"/_healthz"}}]}
{"level":"info","ts":1687267712.2895997,"caller":"opentelemetry/controller.go:74","msg":"got event","attrs":[{"Key":"http.method","Value":{"Type":"STRING","Value":"GET"}},{"Key":"http.target","Value":{"Type":"STRING","Value":"/_healthz"}}]}
{"level":"info","ts":1687267712.2896292,"caller":"opentelemetry/controller.go:74","msg":"got event","attrs":[{"Key":"http.method","Value":{"Type":"STRING","Value":""}},{"Key":"http.target","Value":{"Type":"STRING","Value":""}}]}

But the OTel collector is unable to export the traces to tempo, and throws the error
 {"kind": "exporter", "data_type": "traces", "name": "otlp", "error": "Permanent error: rpc error: code = InvalidArgument desc = trace ids must be 128 bit", "dropped_items": 6}
Error log from the Otel Collector
2023-06-20T13:30:25.751Z    error    exporterhelper/queued_retry.go:391    Exporting failed. The error is not retryable. Dropping data.    {"kind": "exporter", "data_type": "traces", "name": "otlp", "error": "Permanent error: rpc error: code = InvalidArgument desc = trace ids must be 128 bit", "dropped_items": 6}
go.opentelemetry.io/collector/exporter/exporterhelper.(*retrySender).send
    go.opentelemetry.io/collector/exporter@v0.78.2/exporterhelper/queued_retry.go:391
go.opentelemetry.io/collector/exporter/exporterhelper.(*tracesExporterWithObservability).send
    go.opentelemetry.io/collector/exporter@v0.78.2/exporterhelper/traces.go:126
go.opentelemetry.io/collector/exporter/exporterhelper.(*queuedRetrySender).start.func1
    go.opentelemetry.io/collector/exporter@v0.78.2/exporterhelper/queued_retry.go:195
go.opentelemetry.io/collector/exporter/exporterhelper/internal.(*boundedMemoryQueue).StartConsumers.func1
    go.opentelemetry.io/collector/exporter@v0.78.2/exporterhelper/internal/bounded_memory_queue.go:47
2023-06-20T13:30:35.753Z    error    exporterhelper/queued_retry.go:391    Exporting failed. The error is not retryable. Dropping data.    {"kind": "exporter", "data_type": "traces", "name": "otlp", "error": "Permanent error: rpc error: code = InvalidArgument desc = trace ids must be 128 bit", "dropped_items": 6}
go.opentelemetry.io/collector/exporter/exporterhelper.(*retrySender).send
    go.opentelemetry.io/collector/exporter@v0.78.2/exporterhelper/queued_retry.go:391
go.opentelemetry.io/collector/exporter/exporterhelper.(*tracesExporterWithObservability).send
    go.opentelemetry.io/collector/exporter@v0.78.2/exporterhelper/traces.go:126
go.opentelemetry.io/collector/exporter/exporterhelper.(*queuedRetrySender).start.func1
    go.opentelemetry.io/collector/exporter@v0.78.2/exporterhelper/queued_retry.go:195
go.opentelemetry.io/collector/exporter/exporterhelper/internal.(*boundedMemoryQueue).StartConsumers.func1
    go.opentelemetry.io/collector/exporter@v0.78.2/exporterhelper/internal/bounded_memory_queue.go:47

Error log from Tempo
level=error ts=2023-06-20T13:34:45.788034834Z caller=rate_limited_logger.go:27 msg="pusher failed to consume trace data" err="rpc error: code = InvalidArgument desc = trace ids must be 128 bit"
level=error ts=2023-06-20T13:34:55.789838072Z caller=rate_limited_logger.go:27 msg="pusher failed to consume trace data" err="rpc error: code = InvalidArgument desc = trace ids must be 128 bit"
level=error ts=2023-06-20T13:35:05.791289645Z caller=rate_limited_logger.go:27 msg="pusher failed to consume trace data" err="rpc error: code = InvalidArgument desc = trace ids must be 128 bit"

Please note that this error is only when I enable auto-instrumentation for the Go services and I don't see this error for NodeJS, Python and Java services.
Could you please help to resolve the issue.
(Please let me know if this should be an issue for the OTel Collector repos)

Update
Further looking into this, found that when I access the service, the spanID and traceID are generated as zeros.
{"level":"info","ts":1687285165.9649785,"caller":"grpc/probe.go:226","msg":"got spancontext","trace_id":"00000000000000000000000000000000","span_id":"0000000000000000"}
{"level":"info","ts":1687285165.9650521,"caller":"opentelemetry/controller.go:74","msg":"got event","attrs":[{"Key":"rpc.system","Value":{"Type":"STRING","Value":"grpc"}},{"Key":"rpc.service","Value":{"Type":"STRING","Value":""}},{"Key":"net.peer.ip","Value":{"Type":"STRING","Value":""}},{"Key":"net.peer.name","Value":{"Type":"STRING","Value":""}}]}
{"level":"info","ts":1687285165.966659,"caller":"grpc/probe.go:226","msg":"got spancontext","trace_id":"00000000000000000000000000000000","span_id":"0000000000000000"}
{"level":"info","ts":1687285165.966715,"caller":"opentelemetry/controller.go:74","msg":"got event","attrs":[{"Key":"rpc.system","Value":{"Type":"STRING","Value":"grpc"}},{"Key":"rpc.service","Value":{"Type":"STRING","Value":""}},{"Key":"net.peer.ip","Value":{"Type":"STRING","Value":""}},{"Key":"net.peer.name","Value":{"Type":"STRING","Value":""}}]}
{"level":"info","ts":1687285165.9694097,"caller":"grpc/probe.go:226","msg":"got spancontext","trace_id":"00000000000000000000000000000000","span_id":"0000000000000000"}
{"level":"info","ts":1687285165.9694622,"caller":"opentelemetry/controller.go:74","msg":"got event","attrs":[{"Key":"rpc.system","Value":{"Type":"STRING","Value":"grpc"}},{"Key":"rpc.service","Value":{"Type":"STRING","Value":""}},{"Key":"net.peer.ip","Value":{"Type":"STRING","Value":""}},{"Key":"net.peer.name","Value":{"Type":"STRING","Value":""}}]}
{"level":"info","ts":1687285165.9704826,"caller":"grpc/probe.go:226","msg":"got spancontext","trace_id":"00000000000000000000000000000000","span_id":"0000000000000000"}
{"level":"info","ts":1687285165.9705439,"caller":"opentelemetry/controller.go:74","msg":"got event","attrs":[{"Key":"rpc.system","Value":{"Type":"STRING","Value":"grpc"}},{"Key":"rpc.service","Value":{"Type":"STRING","Value":""}},{"Key":"net.peer.ip","Value":{"Type":"STRING","Value":""}},{"Key":"net.peer.name","Value":{"Type":"STRING","Value":""}}]}
{"level":"info","ts":1687285165.971475,"caller":"grpc/probe.go:226","msg":"got spancontext","trace_id":"00000000000000000000000000000000","span_id":"0000000000000000"}
{"level":"info","ts":1687285165.9715357,"caller":"opentelemetry/controller.go:74","msg":"got event","attrs":[{"Key":"rpc.system","Value":{"Type":"STRING","Value":"grpc"}},{"Key":"rpc.service","Value":{"Type":"STRING","Value":""}},{"Key":"net.peer.ip","Value":{"Type":"STRING","Value":""}},{"Key":"net.peer.name","Value":{"Type":"STRING","Value":""}}]}
{"level":"info","ts":1687285165.9724376,"caller":"grpc/probe.go:226","msg":"got spancontext","trace_id":"00000000000000000000000000000000","span_id":"0000000000000000"}
{"level":"info","ts":1687285165.9724922,"caller":"opentelemetry/controller.go:74","msg":"got event","attrs":[{"Key":"rpc.system","Value":{"Type":"STRING","Value":"grpc"}},{"Key":"rpc.service","Value":{"Type":"STRING","Value":""}},{"Key":"net.peer.ip","Value":{"Type":"STRING","Value":""}},{"Key":"net.peer.name","Value":{"Type":"STRING","Value":""}}]}
{"level":"info","ts":1687285165.9733493,"caller":"grpc/probe.go:226","msg":"got spancontext","trace_id":"00000000000000000000000000000000","span_id":"0000000000000000"}
{"level":"info","ts":1687285165.9734104,"caller":"opentelemetry/controller.go:74","msg":"got event","attrs":[{"Key":"rpc.system","Value":{"Type":"STRING","Value":"grpc"}},{"Key":"rpc.service","Value":{"Type":"STRING","Value":""}},{"Key":"net.peer.ip","Value":{"Type":"STRING","Value":""}},{"Key":"net.peer.name","Value":{"Type":"STRING","Value":""}}]}
{"level":"info","ts":1687285165.9742744,"caller":"grpc/probe.go:226","msg":"got spancontext","trace_id":"00000000000000000000000000000000","span_id":"0000000000000000"}
{"level":"info","ts":1687285165.9743166,"caller":"opentelemetry/controller.go:74","msg":"got event","attrs":[{"Key":"rpc.system","Value":{"Type":"STRING","Value":"grpc"}},{"Key":"rpc.service","Value":{"Type":"STRING","Value":""}},{"Key":"net.peer.ip","Value":{"Type":"STRING","Value":""}},{"Key":"net.peer.name","Value":{"Type":"STRING","Value":""}}]}
{"level":"info","ts":1687285165.9757655,"caller":"grpc/probe.go:226","msg":"got spancontext","trace_id":"00000000000000000000000000000000","span_id":"0000000000000000"}
{"level":"info","ts":1687285165.97583,"caller":"opentelemetry/controller.go:74","msg":"got event","attrs":[{"Key":"rpc.system","Value":{"Type":"STRING","Value":"grpc"}},{"Key":"rpc.service","Value":{"Type":"STRING","Value":""}},{"Key":"net.peer.ip","Value":{"Type":"STRING","Value":""}},{"Key":"net.peer.name","Value":{"Type":"STRING","Value":""}}]}
{"level":"info","ts":1687285165.9776042,"caller":"grpc/probe.go:226","msg":"got spancontext","trace_id":"00000000000000000000000000000000","span_id":"0000000000000000"}

@dhanvsagar Did you by chance find a solution to this? Also which version version of opentelemetry-go-instrumentation were you using?

hello @dhanvsagar, @ChrisTomAlxHitachi I am facing a similar issue currently with build from v0.2.1-alpha  running on minimal fedora in docker container runnning on WSL2 host. What I've managed to find out is that if golang grpc is a downstream service(server) it fails to read parent trace and span correctly:

This seems to be becuase bpf_rpobe_read() (ref) method output is something that seems to be memory garabage and/or default values, maybe becuase of the wrong offset:

We can see that start date is 0 and first 3 characters from parent trace id aren't what wewould suspect them to be(in this case parent trace id was 94dd8be...)
My upstream service is C#/.net using opentelemetry autoinstrumantation as well and other downstream service (grpc with python) is reading traceparent metadata correctly.
I will continue to debug(on other envs too) however my experience with eBPF is not very extensive so I would appreciate some adivces maybe any of the maintainers could guide here a bit.


could you provide an example of test code with a trained model?

Hi, thanks for your sharing of the code.
I found the test_options.py in the current code,
but I cannot find a test code with a trained model
(only training code provided)

Please use demo_content_aware_feats.py and demo_content_quality_aware_feats.py and merge the features to obtain final ReIQA features (8192 length) for any image!

Thanks for your reply!
I have got the feature exatror demo code and model file,
but could you provide the regressor head code and model that predict the final quality score?


Documentation

As bling grows, we need to get rid of the readme and make actual documentation. Any ideas on what to use or generate? If we choose on one, I can get started.

I think wiki section with pages for each module is enough. Alternativelyy we can create website hosted on github with documentation website generator like this https://docsify.js.org/#/

we can create website hosted on github with documentation website generator like this https://docsify.js.org/#/

I like this generator, so far with our current readme it looks like this:

Actually this is very nice, now we wait fro @Nooo37 comment on this :D

Docsify is very good looking and probably more appealing than a github wiki. We should just make sure to add support for lua syntax highlighting because especially longer code blocks like the ones on the declarative wallpaper module become unreadable without it.

We should just make sure to add support for lua syntax highlighting because especially longer code blocks like the ones on the declarative wallpaper module become unreadable without it.

Yup, it uses prism for syntax highlighting.

@branwright1 @Nooo37 i finished the docs up in the docs branch, take a look if there are any edits needed or if there is anything i forgot
also @Nooo37 if this is all good i think u should host it on github

For now I found only 2 problems:

Images/gifs at the top can take a while to be loaded or sometimes need to reload website in order to see them
I think this text should be above gif or under it because looks a bit weird compared to other pages.

Small suggestion:

Reduce a bit size of preview images/gifs on every pages, they are too big imo.

done with #21 , will reduce size @branwright1


Add button to toggle prettifying of JSON response.

Add button to toggle prettifying of JSON response.

One possible future commit: adding a try catch around the prettify part and fallback to original text (in case response is not valid JSON) @shreyas-kuloor


[KED-2163] Add architecture doc

Description
Related tickets: KED-2467, KED-2468 and  KED-2467
This is part 1 of setting up the Architecture docs which includes the high-level overview as well as the codemap. Part 2 will include the documentation of cross-cutting concerns, as well as supplementary diagrams to illustrate the overall structure , actions, and data flow of the app.
Please note this is the very first draft and an initial set up of the docs to initially gauge your feedback on the topics / areas of the app / how detailed I would go, etc. I would partcularly like your feedback on whether the document is clear enough to outline our app for someone new to the project, as well as whether I had left out any important concepts that should be mentioned here.
And of course, this doc will continue to be updated as our application evolve over time, hence we can also aways revisit this doc.
Target audience for these docs:

new joiners into the Kedro-viz project
open source developers hoping to contribute to the project
anyone who is interested in how kedro-viz works under the hood

Development notes
I have set up a ARCHITECTURE.md file under the main directory. ( The idea of setting up a directory for the docs was raised on slack, but given the current amount of docs there is not a need to do so yet. We can revisit this idea if our docs continue to expand.
There are also 3 diagrams that accompanies this doc.
QA notes
N/A
Checklist

[x] Read the contributing guidelines
[ ] Opened this PR as a 'Draft Pull Request' if it is work-in-progress
[ ] Updated the documentation to reflect the code changes
[ ] Added new entries to the RELEASE.md file
[ ] Added tests to cover my changes

Legal notice

[x] I acknowledge and agree that, by checking this box and clicking "Submit Pull Request":

I submit this contribution under the Apache 2.0 license and represent that I am entitled to do so on behalf of myself, my employer, or relevant third parties, as applicable.

I certify that (a) this contribution is my original creation and / or (b) to the extent it is not my original creation, I am authorised to submit this contribution on behalf of the original creator(s) or their licensees.

I certify that the use of this contribution as authorised by the Apache 2.0 license does not violate the intellectual property rights of anyone else.

currently some related python tests are failing - see below.

I've taken a look at this page -- is it ready for me to review/edit or do you want to resolve the outstanding comments and let me know when to go in and make final adjustments.
My main comment is to meet the style guide for Kedro docs, which is to use UK English and simplify as much as possible (don't use "utilize" if you can use "use" for example). There are a few typos too. I don't mind fixing all this, but would rather do it at the end of the chain than when you're still working on the page. Just LMK when you're ready!

@stichbury Thanks Jo - I'm doing a fairly extensive edit/rewrite so I'll ping you when it's ready for you to take a look

@bru5 I've updated the wording based on your suggestions - thanks! I'd suggest that we merge this now as it's got 3 approvals, and if there are any further changes/additions to be made, I think we can make them as part of a subsequent PR.

@studioswong Randomly bump into this document, it's awesome and well written!


Roadmap and timeline for 3.1.x

What is the roadmap and estimated time to completion for 3.1.x? I am evaluating OrientDB for a project and the Python interface is critical, but 3.1.x seems to be incomplete and unusable at the moment.
Case in point: the OrientDB class does not have most of the methods mentioned in the documentation, except for connect(). So we can connect to an OrientDB server but not do anything after that.

I was able to patch the library to work with OrientDB 3.1+ and updated the README to give descriptions of how to connect to your database now. You can find my patched version here: https://github.com/brucetony/pyorient
I do not know if they will continue to support this library, so we will have to continue patching it ourselves I think.


improper "add negative -> subtract" transformation with floating point

Version and Platform (required):

Binary Ninja Version: 2.5.3140-dev (Build ID 532595b6)
OS: macOS
OS Version: 11.6

Steps To Reproduce:
Please provide all steps required to reproduce the behavior:

Open this binary.

Notice in HLIL:

00000000  uint64_t _start(float arg1 @ v0)

00000004      data_4000
0000001c      return zx.q(int.d(arg1 - 0x41666666))

00000020  uint64_t sub_20(float arg1 @ v0)

00000024      data_4000
0000003c      return zx.q(int.d(arg1 f+ 0x41666666))

Expected Behavior:
The functions are identical except for loading a different constant: one is "negative" 0x41666666, one is "positive" 0x41666666.  In reality, both constants are used as 32-bit floats, not signed integers.
In the second function, Binary Ninja indicates that floating point addition is being used with f+ 0x41666666.  But in the first function, Binary Ninja produces just - 0x41666666.  This is wrong in two ways: it doesn't indicate that floating point is being used, and in any case arg1 f+ -0x41666666 (i.e. arg1 f+ 0xbe99999a, i.e. arg1 + -0.300000011921) is not equivalent to arg1 f- 0x41666666 (i.e. arg1 + 14.3999996185).

This looks to actually be a type propagation bug, where we aren't treating it as a new variable with a possibly new type after the first assignment to s2. Nopping the first instruction out gets you more sensible behavior.


Fix detection of uninitialized constants for externals that are exter…

…nally defined

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


Search functionality

Would be nice to be able to find either a hex or an ASCII sequence

I'll try to take a stab and see how far I can go in 1 hour

I'm closing this with the improvements done in #58!


Uncaught TypeError: Cannot read property 'enable' of undefined. (Polygon added after map load)

I am loading a single pologon into the featureGroup after the map and feature group has been loaded, by doing an ajax call to a web service. Creating the polygon is successful, but when then attempting to edit the polygon  through the "Edit Layers" control, a JS error is received: "Uncaught TypeError: Cannot read property 'enable' of undefined". Objects are declared before data is received:
var myPolygon;
var myFeatureGroup = L.featureGroup();
var map = L.map('mapdiv').setView([-21.113887987117593,<PHONE_NUMBER>9641113], 15);
L.tileLayer('http://{s}.tiles.mapbox.com/v3/##myaccount##/{z}/{x}/{y}.png', {
    maxZoom: 18
}).addTo(map);

Then, when data is received from the AJAX function for the polygon, it is added to the featureGroup as follows:
function getPolygonDetails_CallBack(response) {
    handleResponse(response.d.response);

    myPolygon = omnivore.wkt.parse(response.d.polygonGeography);
    myFeatureGroup.addLayer(myPolygon);
    myFeatureGroup.addTo(map);

    var drawControl = new L.Control.Draw({
        edit: {
            featureGroup: myFeatureGroup
        },
        draw: {
            polygon:true,
            polyline: false,
            rectangle: false,
            circle: false,
            marker: false
        }
    }).addTo(map);

    map.on('draw:created', function (e) {
        myFeatureGroup.addLayer(e.layer);
    });
}

Now - when the draw modify control is used, the error is displayed - as though it can no longer reference "myPolygon".

Same result tested in leaflet 0.7.3 & 0.8-dev and leaflet.draw 0.2.2 & 0.2.3.

I suspect this issue is with this:
myPolygon = omnivore.wkt.parse(response.d.polygonGeography);

I have set up this JSFiddle. When the coordinates are built directly from an array, the edit function is successful. When built using the function call for omnivore.wkt.parse - the render is successful, but editing generates the error.
https://jsfiddle.net/f9kmrhb7/73/

Its returning a featuregroup object
if (myPolygon instanceof L.FeatureGroup) {
	alert('Its a FeatureGroup object');
}

@dvector @tyeware Have you resolved the issue with this? (probably wkt parsing)

Hi @dvector & @ddproxy - This issue still occurs. As you have said, in my example, myPolygon is of type L.FeatureGroup when it should be of type L.Polygon, when I am using the following statement to create the polygon:
myPolygon = omnivore.wkt.parse(response.d.polygonGeography);
The reason why I was using the omnivore parsing was because this required less manipulation by the web service to prepare the data before it was sent to the client for rendering. As mentioned, building this manually from an array works fine.
So the question is - how can I have the above statement return an L.Polygon rather than an L.FeatureGroup?
Updated fiddle:
https://jsfiddle.net/f9kmrhb7/85/

@tyeware @dvector
Updated:
https://jsfiddle.net/f9kmrhb7/86/
omnivore.wkt.parse() returns a GeoJSON object, which by default, is a FeatureGroup
Since FeatureGroup extends LayerGroup You can walk through the layers presented and add them individually to the FeatureGroup used for Leaflet.draw

That's awesome - thanks for the assistance.


Notification shouldn't be an error pop-up when there's no initial setup

When there has never been extensions set up, we shouldn't pop up an error notification/toast to the user that they can't be loaded.
To reproduce - start a fresh instance of Portainer and click on the Extensions tab under Settings. You'll see the red notification saying Failure - Unable to Load Extensions
A suggested solution would be to have the API check to see if there is a license key to even validate, and if not return a 204 - No Content, that the UI won't error on.
Same thing if you go to the Registries tab in Portainer when it attempts to load extensions there also.

When accessing the extensions view, Portainer will fetch extra details about the extensions from an external source (think of it as our "external store"). If the instance cannot retrieve this list, it will fail with the Unable to retrieve extensions error message.
When accessing the registries view, it will only retrieve "local" extension info (from the database, without retrieving any content via Internet) so you should not see this problem. FYI I'm not able to reproduce this error in the registries view within an offline environment.

This issue was closed as we have been unable to reproduce.
We will reopen if others are able to reproduce in the latest version of Portainer :)


Order Card Not Removing from UI Upon Unpacking Order in Completed Tab.

Current behavior
Upon unpacking an order from the Completed tab, the corresponding order card remains visible in the UI instead to moving to 'In Progress' tab.
Expected behavior
Upon unpacking an order from the Completed tab, the corresponding order card should be promptly removed from the UI to reflect the updated status of the order.
Description
When a user unpacks an order from the Completed tab, the corresponding order card remains visible in the user interface (UI) instead of being removed as expected. This issue impacts the user experience by causing confusion and clutter in the UI, as users may believe that the order is still pending or completed, leading to potential errors or oversight in managing orders.
Steps to Reproduce -
Open the App in UAT environment and then navigate to the completed tab in the UI.
Identify a completed order.
Attempt to unpack the completed order.
Observe that the order card remains visible in the UI instead of being removed as expected.
Environment details

App version: v1.23.1
Environment: UAT
OMS instance : dev-oms

Additional information
https://jam.dev/c/faf0ac59-51ef-43b7-a491-28a2de5d966f

When unpacking an order the API runs too fast and the solr index does not update resulting in having the current unpacked order in the completed section.
Currently we don't have any solution for above problem. Hence closing this issue.

We will recreate this issue, as there seems to be no possible solution for this and also it is not currently a blocker.


How to combine ALL_WITH_INDETERMINATE and BRANCH_PRIORITY of 'value-consists-of' property

In my project i got treeselect, wich has several root nodes, and lots of sub-, and sub-sub- nodes. And i need to collect all of selected IDs. The only way to receive all IDs (as i know) is to set value-consists-of to ALL_WITH_INDETERMINATE, but field looks ugly in this case:

For me would be perfect if i could get all selected IDs, like i have with ALL_WITH_INDETERMINATE, and field display like i have with BRANCH_PRIORITY.
But the way i solve this task it makes me sad:
In source code dist/vue-treeselect.cjs.js i found what i need - forest.selectedNodeIds, and added watch param:
watch: {
  'forest.selectedNodeIds': function(newValue){
    this.$emit('changed-value', newValue);
  },

And now i can collect all selected IDs:
<treeselect
  v-model="materials.customValue"
  :multiple="true"
  :options="materials.options"
  value-consists-of="BRANCH_PRIORITY"
  @changed-value="(v) => {materials.value = v}"
  />

Is where a better way to solve this task without editing the source?

So i had to made my own function at backend (PHP). It is ugly, i think, but maybe it will help you:
  public function materialsFromTreeselect($ids = array()){
    if(empty($ids)){
      $this->set_result_error('Не указаны IDs для materialsFromTreeselect');
    }
    $this->cash['materialsFromTreeselect_all_ids'] = $ids;
    $this->cash['materialsFromTreeselect_input_ids'] = $ids;

    foreach($this->set_to_cash('materials_tree') as $node){
      $this->materialsFromTreeselect_rec($node, array($node['id']));
    }

    $this->cash['materialsFromTreeselect_all_ids'] = array_unique($this->cash['materialsFromTreeselect_all_ids'], SORT_NUMERIC);
    return $this->cash['materialsFromTreeselect_all_ids'];
  }

  public function materialsFromTreeselect_rec($node, $deep_parents = array(), $deep_check = false){
    if($deep_check || (empty($node['children']) && in_array($node['id'], $this->cash['materialsFromTreeselect_input_ids']))){
      $this->cash['materialsFromTreeselect_all_ids'][] = $node['id'];
      foreach($deep_parents as $parent_id){
        $this->cash['materialsFromTreeselect_all_ids'][] = $parent_id;
      }
    }
    if(!empty($node['children'])){
      $deep_parents[] = $node['id'];
      if(in_array($node['id'], $this->cash['materialsFromTreeselect_input_ids'])){
        $deep_check = true;
      }
      foreach($node['children'] as $subNode){
        $this->materialsFromTreeselect_rec($subNode, $deep_parents, $deep_check);
      }
    }
  }

  public function materialsToTreeselect($all_ids = array()){
    if(empty($all_ids)){
      $this->set_result_error('Не указаны IDs..');
    }
    if(empty($this->cash['materials_tree'])){
      $this->set_to_cash('materials_tree');
    }
    $this->cash['materialsToTreeselect_all_ids'] = $all_ids;
    $this->cash['materialsToTreeselect_ids'] = array();
    foreach($this->cash['materials_tree'] as $node){
      $res = $this->materialsToTreeselect_rec($node, 0);
      if(is_array($res)){
        $this->cash['materialsToTreeselect_ids'] = array_merge($this->cash['materialsToTreeselect_ids'], $res);
      }
    }
    return $this->cash['materialsToTreeselect_ids'];
  }

  public function materialsToTreeselect_rec($node, $levelToRoot = 0){
    if(in_array($node['id'], $this->cash['materialsToTreeselect_all_ids'])){

      if(!empty($node['children'])){
        $checked = array();
        $control = true;

        foreach($node['children'] as $subNode){
          if(empty($subNode['children'])){
            if(in_array($subNode['id'], $this->cash['materialsToTreeselect_all_ids'])){
              $checked[] = $subNode['id'];
            }else{
              $control = false;
            }
          }
          elseif(!empty($subNode['children'])){
            $result_from_next_level = $this->materialsToTreeselect_rec($subNode, $levelToRoot+1);
            if(is_array($result_from_next_level)){
              $checked = array_merge($checked, $result_from_next_level);
              $control = false;
            }elseif($result_from_next_level === true){
              $checked[] = $subNode['id'];
            }
          }
        }
      }
      if($control){
        $checked = true;
      }
      if($levelToRoot === 0 && $checked === true){
        return array($node['id']);
      }
      return $checked;
    }else{
      return false;
    }
  }

  public function materialsFromTreeselect_test($input_ids){
    sort($input_ids);
    $this->result['materialsFromTreeselect'] = array();
    $this->materialsFromTreeselect($input_ids);
    sort($this->cash['materialsFromTreeselect_all_ids']);
    $this->result['mts'] = $this->cash['materialsFromTreeselect_all_ids'];
    print_r(array('cash->materialsFromTreeselect_all_ids' => $this->cash['materialsFromTreeselect_all_ids']));
    $this->materialsToTreeselect($this->cash['materialsFromTreeselect_all_ids']);
    sort($this->cash['materialsToTreeselect_ids']);
    print_r(array('materialsToTreeselect_ids' => $this->cash['materialsToTreeselect_ids']));
  }

Part of input array (i get this from $this->set_to_cash('materials_tree')):
Array
(
    [0] => Array
        (
            [id] => 18527
            [parent_id] => 18166
            [menuindex] => 0
            [label] => Металлы, стали и сплавы
            [children] => Array
                (
                    [0] => Array
                        (
                            [id] => 18528
                            [parent_id] => 18527
                            [menuindex] => 0
                            [label] => Углеродистые стали и чугун
                            [children] => Array
                                (
                                    [0] => Array
                                        (
                                            [id] => 18529
                                            [parent_id] => 18528
                                            [menuindex] => 0
                                            [label] => Углеродистая сталь 3А
                                        )

This feature will be amazing !
Any update ?


Add list view

Adds a list view of all our docs to the home page. Uses antd instead of material UI because material UI is ugly <3 tbh I'd support switching us over from mui entirely, thoughts?
Also did some dependency cleanup since we had some random ones. reminder to remove them if you're experimenting with them and realize you don't need them :^)
walkthrough

Idk antd vs mui so if you think it's a good idea, then i support that (and its the same learning curve anyways)
I'll remember to remove stuff if we're not using it :))


Can I use with spongeforge-1.11.2-2201-6.0.0-BETA-2018

spongeforge-1.11.2-2201-6.0.0-BETA-2018

If you don't test it you'll never know :wink:

looks yes


Verify any element that has max-width of 100vw

https://trello.com/c/7vPbBNCk/269-verify-any-element-that-has-max-width-of-100vw
After completing https://github.com/HewlettPackard/grommet/pull/187, we discovered there were other modules also affected by the issue of using width:100vw without max-width:100%. This fix updates all SCSS files in Grommet src to resolve the issue. max-width:100vw was also updated to max-width:100%.

Thanks Ivan.


Add support for React 18

The central feature of this is that it enables the design system to be used with React 18, but it also switches to using React 18 in our tests.

This has proven trickier than it should be since npm workspaces don't allow multiple versions of the same dependency. That's an issue because of the following:

I migrated all of our tests to use @testing-library/react v13 in order to run tests with React 18, which feels necessary in order to say that we can support React 18.
Our website has to use React 17 because Docusaurus doesn't support React 18.

Given that I've technically verified that everything works with React 18, I'm going to just move most of these changes to a different branch/PR and just ship a new peerDependencies list for @wwnds/react in order to enable React 18 support.


What could cause the INVALID_MARKET exception?

Following the example code for the Bittrex marketdata demo, the exchange responds with a disappointing HTTP message. Here's the exception:
Exception in thread "main" si.mazi.rescu.HttpStatusIOException: Can not construct instance of org.knowm.xchange.bittrex.v1.dto.marketdata.BittrexTickerResponse, problem: null  at [Source: {"success":false,"message":"INVALID_MARKET","result":null}; line: 1, column: 58]
Is this reproducible on someone else's machine? Am I doing something wrong?
Thanks in advance!

@bitsol maybe you're making a request  for a currency pair which does not exist?

@jheusser I was using the exact code in the Bittrex demo. This is odd, because using the same currency pair in the code for the BTC-e ticker demo works to return the orderbook object.

Hello
I am facing the same issue.
Exchange bitRex = ExchangeFactory.INSTANCE.createExchange(BittrexExchange.class.getName());
			ExchangeSpecification exchangeSpecification = bitRex.getDefaultExchangeSpecification();
			exchangeSpecification.setApiKey(BITREX_API_KEY);
			exchangeSpecification.setSecretKey(BITREX_SECRETE_KEY);
			bitRex.applySpecification(exchangeSpecification);
			MarketDataService marketDataService = bitRex.getMarketDataService();
			Ticker ticker = marketDataService.getTicker(new CurrencyPair("BTC", "1ST"));
			System.out.println(ticker.toString());

I've tried with valid API & secret key. And also tried the same which is given in sample demo but still the same issue.
Below I've given console output

[main] INFO org.knowm.xchange.bittrex.v1.BittrexExchange - Calling Remote Init...
[main] INFO org.knowm.xchange.bittrex.v1.BittrexExchange - Calling Remote Init...
si.mazi.rescu.HttpStatusIOException: Can not construct instance of org.knowm.xchange.bittrex.v1.dto.marketdata.BittrexTickerResponse, problem: null
at [Source: {"success":false,"message":"INVALID_MARKET","result":null}; line: 1, column: 58]
at si.mazi.rescu.ResponseReader.read(ResponseReader.java:104)
at si.mazi.rescu.RestInvocationHandler.mapInvocationResult(RestInvocationHandler.java:169)
at si.mazi.rescu.RestInvocationHandler.receiveAndMap(RestInvocationHandler.java:157)
at si.mazi.rescu.RestInvocationHandler.invoke(RestInvocationHandler.java:120)
at com.sun.proxy.$Proxy16.getTicker(Unknown Source)
at org.knowm.xchange.bittrex.v1.service.BittrexMarketDataServiceRaw.getBittrexTicker(BittrexMarketDataServiceRaw.java:58)
at org.knowm.xchange.bittrex.v1.service.BittrexMarketDataService.getTicker(BittrexMarketDataService.java:41)
at main.MainClass.printTickerBitRex(MainClass.java:46)
at main.MainClass.main(MainClass.java:34)

Here its API giving a proper response:
https://bittrex.com/api/v1.1/public/getmarketsummary?market=BTC-1ST
values are passing as per bittrex documentation: https://bittrex.com/Home/Api
Can anyone please help in this?
What else change or anything I need to manage?

Any updates on this?

Any luck getting over this bug?

INVALID_MARKET usually means you're passing the wrong currency pair in the http request.  It's possible the demo is broken.  Are you seeing this in places other than the demo?

Yep..not just the demo.  Just did some debugging and found that the BittrexUtils.toPairString is causing it.   public static String toPairString(CurrencyPair currencyPair) {     return currencyPair.counter.getCurrencyCode().toUpperCase() + "-" + currencyPair.base.getCurrencyCode().toUpperCase();   }
I guess its because of not properly constructed CurrencyPair object param.
My Request was like this:
 CurrencyPair cp = new CurrencyPair("btc", "ltc");     List<BittrexUserTrade> lt = serviceRaw.getBittrexTradeHistory(cp);

Use the currency pairs constants.

Looks like:
BittrexUtils.toPairString
Is sending inverted pair instead of BTC-DOGE it returns DOGE-BTC. Just use:
Ticker ticker = marketDataService.getTicker(new CurrencyPair(Currency.DOGE, Currency.BTC));
and it works.


[IMPROVE] keysign complete with wrong label

When a keysign transaction is complete the label in the header is wrong. Furthermore please remove the back arrow on that screen.
It says "Keysign" where it should say "Transaction complete" according to figma :

QA done.


Fixed TCK test, added passing version of SSE TCK test

Re-resolve the writer after all interceptors are done, making sure we don't get a blocking
one after we started with an async one

Updated with second fix for TCK as discussed by email.


in_tag Damage condition doesn't exist (1.20 <IP_ADDRESS>)

Trying to use this damage condition at all results in the condition failing to load with Unknown registry key: origins:in_tag
This feature exists in 1.10.0 for Origins Fabric.
Looking at the condition/damage package in Apoli Forge, it looks like this was just never added.
I am blind, but for some reason I am getting this error.

Looks like the condition type was created, but simply not registered.

Will fix next update, thanks for looking into it.

I am having the same issue for origins:type as well (I haven't looked through the code but I am getting the exact same error as when using in_tag) any idea when this will be fixed?

I am having the same issue for origins:type as well (I haven't looked through the code but I am getting the exact same error as when using in_tag) any idea when this will be fixed?

I don't remember a type existing. Could you please link me it on the docs?

I am having the same issue for origins:type as well (I haven't looked through the code but I am getting the exact same error as when using in_tag) any idea when this will be fixed?

I don't remember an origins:type existing. Could you please link me it on the docs?

https://origins.readthedocs.io/en/latest/types/damage_condition_types/type/

I am having the same issue for origins:type as well (I haven't looked through the code but I am getting the exact same error as when using in_tag) any idea when this will be fixed?

I don't remember an origins:type existing. Could you please link me it on the docs?

https://origins.readthedocs.io/en/latest/types/damage_condition_types/type/

This damage condition type was added after Origins 1.10, and is 1.20.2+ only on Fabric.


bootstrap_sass "is not a color" error or Unable to resolve Mime Type

Environment :
• Dart SDK (2.5.2 & 2.6.0-dev.8)
• MacOS 10.14 w. Chrome browser
Context :
I am trying to implement sass_builder within my Angular Dart app.
I have followed all the steps listed here.
Outcome :
When I try to load the app, I get an error caused by bootstrap_sass :
[SEVERE] sass_builder:sass_builder on web/styles.scss (cached):

Error: $color: theme-color("primary") is not a color.
    ╷
174 │ $link-hover-color:                        darken($link-color, 15%) !default;
    │                                           ^^^^^^^^^^^^^^^^^^^^^^^^
    ╵
  package:bootstrap_sass/scss/_variables.scss 174:43  @import
  - 1:9                                               root stylesheet

That error is described as benign in another issue listed here. However I can see that no transpiled css from styles.scss is loaded. The console also displays :
Refused to apply style from 'http://localhost:8080/styles.css' because its MIME type ('text/plain') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

When I disable the bootstrap_sass import @import "package:bootstrap_sass/scss/variables"; in styles.scss, the app loads the css correctly without the MIME error.
The code is as follows :
styles.scss :
@import "package:bootstrap_sass/scss/variables";

@import url(https://fonts.googleapis.com/css?family=Roboto);
@import url(https://fonts.googleapis.com/css?family=Material+Icons);

body {
  font-family: 'Roboto', sans-serif;
  background-color: blueviolet;
}

index.html :
link rel="stylesheet" href="styles.css">
pubspec.yaml :
  [...]
  bootstrap_sass: ^4.3.1

dev_dependencies:
  [...]
  build_runner: ^1.7.0
  build_web_compilers: ^2.3.0
  sass_builder: ^2.1.2

How can I import bootstrap_sass variables correctly in Angular Dart ?

So I eventually realised there was a probable conflict between bootstrap_sass variables and material components. Reading the source file of bootstrap_sass/scss/variables it appears it is not needed when you use angular components. The other topic referenced did not make it very clear.


Spike on unit test failures to problems window

Outcome: list of things and tasks we need to do to support test failures being displayed in the problems window for unittest and nose as well. #120 handles pytest

Failed tests do not appear in the problems window when using,

[ ] unittest
[ ] pytest

This is expected failed tests should NOT appear in the problems window. This was the guidance from VS Code that problem window is for compilation or linting errors.


feat: create a version endpoint

Description
Create a version endpoint.
Endpoint
<IP_ADDRESS>:8080/version

Response:
{
  "name": "Chatroom WebSocket API",
  "buildDateTime": "4/12/2024 0:49:24",
  "version": "0.0"
}

Type of Change

[x] New feature (non-breaking change which adds functionality)

Checklist:
Before submitting your pull request, please review the following:

[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules
[x] My PR title follows the Conventional Commits specification.

fat PR, mb 🫶. @Jake-Brunning

greatest piece of code anyone has ever write. My life will be full of wonder and whimsey from now until I perish.


Use SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE flag for symlink functions

Shouldn't the symlink() functions in MsvcLibX use the SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE flag?
I always need to add this to the flags of CreateSymbolicLink to create links as normal user.

Sounds like a good idea. Please go ahead and submit a pull request!
Also we must add a definition for the flag if needed, so that the library still builds for XP and older versions of Windows, and apps built with it use the flag when run in recent versions of Windows that support it.


Unbind all events on end tutorial ?

First off all, nice lib, I really like it.
But got some problems if u have a lot of tutorials steps at the same elements.
Need un-bind somehow events from previous tutorial when it ends.
I'm trying like this for each element from tutorial steps, when onEnd triggered -> $(selector).off(".enjoy_hint");, but no result, it calls again from the enjoyhint.js
Any idea ?
Will be really appreciate for any feedback,
Thanks.

Seems it uses some another instance for jQuery, so in angular it did't find that events on element if use import jQuery like this:

import * as $ from "jQuery";
Fixed it with this:
declare var jQuery: any;


Outage: Bintray end of activity migration

Hello,
We are currently in the middle of bintray's brown-out session and kong deployments from the helm-chart is failling because it's unable to pull: kong-docker-kubernetes-ingress-controller.bintray.io/kong-ingress-controller
Is there any plan to move out from bintray , as it will end activity on May, 1st, 2021 ?
Do we have already some other registry available to download those images ?
Related issues: https://github.com/Kong/kong/issues/7024

We are migrating away from Bintray and to Dockerhub: https://hub.docker.com/r/kong/kubernetes-ingress-controller.
Please use Docker hub. It has old versions and we will upload new versions in there going forward.
Apologies for the inconvenience here.

Please use Docker hub

In other words, in the chart's values, please set ingressController.image.repository to kong/kubernetes-ingress-controller.
We're cutting a patch release of the Helm chart in https://github.com/Kong/charts/pull/338 that will make it the default.

Chart 1.15.2, with the new default ingress controller location, is out.
Release for 2.0.0-rc.3 with the same fix is in progress: https://github.com/Kong/charts/pull/339


[Snyk] Upgrade sinon from 13.0.0 to 13.0.2

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to upgrade sinon from 13.0.0 to 13.0.2.

:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 2 versions ahead of your current version.
The recommended version was released 23 days ago, on 2022-04-14.

Release notes

Package name: sinon

13.0.2 - 2022-04-1413.0.2

13.0.1 - 2022-02-0113.0.1

13.0.0 - 2022-01-2813.0.0

    from sinon GitHub release notes

Commit messages

Package name: sinon

18d5601 13.0.2
bddb631 Update fake-timers
9e334cd master => main
eaed0eb Bump nokogiri from 1.13.3 to 1.13.4 (#2451)
0ed91d7 Bump minimist from 1.2.5 to 1.2.6 (#2450)
ff1443e Bump nokogiri from 1.13.1 to 1.13.3
238f14b Add some jsdoc
698fe79 13.0.1
a21ad7a omission :hankey:
ec4223f Bump nise to fix sinonjs/nise#193
f329a01 Add unimported to workflow (#2441)
209f71f Fix fake tests (#2439)
7f16cec Enable updates to same major version
0dd4d93 Merge branch 'single-release-per-major__master'
91dab22 Persist prettier fix to the script that generates this
f784d7a Re-introduce new version.sh script to version hook
51c508a Add dry run mode to `npm version` (#2436)
ae134d2 Add sort_id
0cb7c09 Adjust copy script
3cfd12a update script
b217ba9 Update scripts and Liquid templates
687792f Add semver

Compare

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Coverage remained the same at 98.2% when pulling 6f64480d417e4b92f59ad9798bf5a524cc9ef8d3 on snyk-upgrade-14808e754b1c37458b220e14347285c8 into 1f53021b2ef1bccf82ea8edc2ac713ac934a40e9 on main.


update EGA timeline

most recent
            {date: "2021-11-01", name: "submissions", icon:  "NoteAdd"  },
            {date: "2021-12-01", name: "public-voting", icon:  "Public", dotColor: 'black', active: true},
            {date: "2021-12-17", name: "qualification", icon:  "Assessment" },
            {date: "2022-01-03", name: "jury-voting", icon:  "HowToVote" },
            {date: "2022-05-04", name: "results", icon:  "Mic" }

December 1, 2022 - Submissions Open
January 9, 2023 - Internet Users’ public voting
January 26, 2023 - Public voting Nominees announcement
January 30, 2023 - Advisory Board voting
February 22, 2023 - Winners Announcement


Study distribution

[x] Remove study from single activities
[x] Study ridge plot

Done, just missing color

[ ] Remove last month


MPJPE Loss in training

Hi, @Arthur151 , thanks for your excellent work.
I carried out my ROMP training with the latest code on all the datasets listed in the README and got the training log:
V1_hrnet_h36m,mpiinf,coco,mpii,lsp,muco,crowdpose_g0,1,2,3.log
But a massive gap was found between my "MPJPE" loss with what you posted in issue #121.  My "MPJPE" loss was around 30 while yours was around 110.
Did I miss something?

Hi, thanks for your kind words.
The log I posted was for someone who was interested in training from scratch.
Normally, we just need to train from pre-trained backbone to save time and enjoy fatster converge.
Best.

Yes, the training code would be released within a month.


Scraper Feature

Starting scrape collect method
Collect all html page text
Return Structured data of page text
Add depth param for how many pages deep for the user to provide
Added all models query for llm sentiment with benchmark timing - return array for each model

// example
{
  "uri": "https://en.wikipedia.org/wiki/Badger",
  "depth": 0,
  "model": "all"
}

Hey @jdutchak @restevens402 looking at the API ontology I think it would make sense to have the following convention
/data/twitter/tweets/recent
/data/twitter/tweets/trends
/data/twitter/profile/{username}
/data/web
``

Instead of having `search` as a separate endpoint
`/search/tweets/trends`

This sets us up for being scalable as we add more sources to `/data ` and having a common design pattern.

This could become

/data/tiktok/feed
/data/reddit/profile

Lastly I think `/data/tweets` gets the most recent tweets so might be duplicative?


Hey, Iyanu, merge?

Made the important variables private for a more secure wrapper.

I like the way you thought with respect to the privatisation of the API Authentication Bearer Keys. If you take a close look at the ApiConnection class you'll notice that an instance of the Keys class was created. The main purpose of this is to enable key access to the ApiConnection class. The privatisation of the key fields will effectively block key access to ApiConnection. A more prudent approach would be to specify the key fields as protected instead of private. I'd be happy to merge but kindly change the private variables to protected. Ps, thanks for pointing the fields out bro, great eye!


Add hri.res.in

lib/domains/in/res/hri.txt: New file.  Adds the domain of
Harish-Chandra Research Institute (HRI), Allahabad, India.

Information that may be relevant:

The official Web site of HRI.
HRI runs a  doctoral program in mathematics (five years or longer), and masters (two years) and doctoral programs (five years or longer) in theoretical physics.
The graduate study and  research areas at HRI include cryptography, and quantum information and computing .

@nyraghu Pull request merged. Thank you!

Thanks very much!


Improve imageslider

fixes #53

Ian, please checkout this branch and run the test_image_slider notebook and play with the widget. Please let me know if you found any bugs. Thanks!

Ipywidgets 7.0 (available through conda-forge) resolves the issues I was having with running the ImageSlider widget in Python 3. See #55 for more info.


add 2x faster shuffle algorithm; add shuffle bench/plot

Description of changes:
add 2x faster shuffle algorithm; add shuffle bench/plot
Issue #, if available:

Merge Checklist:
Put an x without space in the boxes that apply. If you are unsure about any checklist, please don't hesitate to ask. We are here to help! This is simply a reminder of what we are going to look for before merging your pull request.
General

[ ] I have read the contributor guidelines
[ ] This is a documentation change or typo fix. If so, skip the rest of this checklist.
[ ] I certify that the changes I am introducing will be backward compatible, and I have discussed concerns about this, if any, with the MosaicML team.
[ ] I have updated any necessary documentation, including README and API docs (if appropriate).

Tests

[ ] I ran pre-commit on my change. (check out the pre-commit section of prerequisites)
[ ] I have added tests that prove my fix is effective or that my feature works (if appropriate).
[ ] I ran the tests locally to make sure it pass. (check out testing)
[ ] I have added unit and/or integration tests as appropriate to ensure backward compatibility of the changes.

Can you explain what makes this faster? And the implications on how this changes the "shuffledness" of the shuffle?

The high bit of the work being done in both algos is shuffling samples within each shard.
Originally, we generated the sample IDs in the beginning, and did a fixed intra-shard shuffle before partitioning over canonical nodes (ie, splitting some shards) to be "correct".
This was found to not really matter. Now we only shuffle intra-shard once, at the end, instead of twice. See plot to verify is 2x.

Convergence tests are looking good.


Cannot restore backup

Gogs version (or commit ref): <IP_ADDRESS>9
Git version: 2.7.4
Operating system: Ubuntu 16.04
Database (use [x]):

[ ] PostgreSQL
[x] MySQL
[ ] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gogs.io:

[ ] Yes (provide example URL)
[ ] No
[x] Not relevant

Log gist (usually found in log/gogs.log): N/A

Description
A gogs installation and its repositories can be backed up using internal mechanisms: ./gogs backup --archive-name gogs-full.zip. But when trying to restore the environment using ./gogs restore --from /var/local/backup/git/gogs-full/gogs-full.zip, the procedure fails with an error reporting an invalid cross-device link.
Both commands were executed with user running the gogs service. At the time of the restore, gogs was not running.
The console output of the verbose restore command is:
$ ./gogs restore --verbose --from /var/local/backup/git/gogs-full/gogs-full.zip
2017/07/25 10:06:44 [ INFO] Restore backup from: /var/local/backup/git/gogs-full/gogs-full.zip
Unzipping /var/local/backup/git/gogs-full/gogs-full.zip...
 The only difference between mine and yours is I got more errors. However, I have solved all the problems by running the following commands. For those rm commands, please ignore any "No such file or directory" error. Just try to avoid other errors while restoring the backup.
cd /gogs_home_directory/
sudo rm -fR data
sudo mkdir data
sudo rm -fR custom.bak
sudo rm -fR tmp
sudo mkdir tmp
sudo mkdir tmp/gogs-backup
sudo mkdir tmp/gogs-backup/data/
sudo mkdir tmp/gogs-backup/data/attachments
sudo mkdir tmp/gogs-backup/data/avatars
sudo ./gogs restore --from /path/to/archive.zip -t tmp
The reason for having such error is that the /tmp folder is not in the same partition as your gogs_home_directory. Hope this can help.

Duplicated to https://github.com/gogits/gogs/issues/4339.

It maybe a wiser choice for gogs to use mv than rename to move files or directories.

I'm not sure whether this a duplicate of #4339. The running instance is not dockerized. The extracted binary is running on a server. The solution of @sunnywty  doesn't apply as all directories are in my backup.
I think the restore doesn't work, if /tmp and the restore target, /home/git, are on different partitions/devices.
My mount table looks like:
$ mount
/dev/mapper/mirkwood--vg-root on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
/dev/sda1 on /boot type ext2 (rw,relatime,block_validity,barrier,user_xattr,acl)
/dev/sdb1 on /home type ext4 (rw,relatime,data=ordered)

If I perform a restore into a plain binary extraction in /home, I get the cross-device-link error:
git@mirkwood:~/gogs-restore/gogs$ ./gogs restore --from gogs-backup-20170728095025.zip
2017/07/28 10:04:38 [ INFO] Restore backup from: gogs-backup-20170728095025.zip
2017/07/28 10:04:41 [FATAL] Fail to import 'custom': rename /tmp/gogs-backup/custom /home/git/gogs-restore/gogs/custom: invalid cross-device link

Then I move gogs-restore to /tmp. There the restore performs fine:
git@mirkwood:/tmp/gogs-restore/gogs$ ./gogs restore --from gogs-backup-20170728095025.zip
2017/07/28 10:07:21 [ INFO] Restore backup from: gogs-backup-20170728095025.zip
2017/07/28 10:07:23 [ INFO] Restore succeed!

Maybe the zip extraction is missing some option?

I think the restore doesn't work, if /tmp and the restore target, /home/git, are on different partitions/devices.

Yes, you are right, that's why my solution is to create a directory inside the gogs home directory and force the process uses the folder created for decompressing the backup archive using -t(I think you missed this part).  This can make sure the restore target and directory for decompressing are in the partition.

@sunnywty Sorry, I over read the -t parameter in the restore command. That's a really neat trick.

That’s alright. Hope this can help.
From: wolkenschieber<EMAIL_ADDRESS>Sent: Friday, July 28, 2017 5:01 PM
To: gogits/gogs<EMAIL_ADDRESS>Cc: Mr. WONG Tsz Yuk<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [gogits/gogs] Cannot restore backup (#4641)
@sunnywtyhttps://github.com/sunnywty Sorry, I over read the -t parameter in the restore command. That's a really neat trick.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/gogits/gogs/issues/4641#issuecomment-318600282, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGsyBR6dkOzBx-G4_sKNjLtDC_j1ptyLks5sSaNUgaJpZM4OiOWS.

Thanks for the suggestions:
FOllowing the above steps, I still get this error:
[FATAL] [...g/setting/setting.go:571 NewContext()] Expect user 'git' but current user is: root
Any suggestions? Thanks for your help!

First method, delete all directories created and repeat all steps without sudo .
If the above doesn't work, try modifying the custom/conf/app.ini RUN_USER  to root then reboot and restore again with sudo. If your server have not yet launched to production, try re-install and set the run user as root on the installation page and then restore with sudo, this should able to resolve the problem.


TypeError: Cannot read property '_grid' of undefined

Here is my code
const ResponsiveGridLayout = WidthProvider(Responsive);
    const layouts = {
      lg: [{  i: '0', x: 0, y: 0, w: 1, h: 1, minH: 1, maxH: 1, maxW: 4 }],
      md: [{  i: '0', x: 0, y: 0, w: 1, h: 1, minH: 1, maxH: 1, maxW: 3 }],
      sm: [{  i: '0', x: 0, y: 0, w: 1, h: 1, minH: 1, maxH: 1, maxW: 2 }],
      xs: [{  i: '0', x: 0, y: 0, w: 1, h: 1, minH: 1, maxH: 1, maxW: 1 }],
    };
    return (
      <>
        <div className={css.gridcontainer}>
          <ResponsiveGridLayout
           className={css.gridLayout}
           breakpoints={{ lg: 1900, md: 1300, sm: 700, xs: 500 }}
           layouts={layouts}
           cols={{ lg: 4, md: 3, sm: 2, xs: 1 }}
           rowHeight={400}
           margin={[10, 10]}
           compactType={'vertical'}
          >
            (
              <div
                key={0}
                className={css.layout}
                data-grid={{ i: 'i', x: 0, y: 0, w: 1, h: 1, minH: 1, maxH: 1, maxW: 2 }}
              >
                hello to you!
              </div>

            )
          </ResponsiveGridLayout>

My app crashes with the following error:
TypeError: Cannot read property '_grid' of undefined
What am i doing worng?

@STRML Can you PLEASE help me?

@STRML Can you PLEASE help me?

I'm having the same issue.
I have everything defined in a layout array, and I use unique strings as keys that match the i values :/

I'm having the same issue.
I have everything defined in a layout array, and I use unique strings as keys that match the i values :/


[GG] defenders of oasis - broken title menu

there's no select option (should be blue bar). although the menu is still operational and the game seems to work fine other than this issue

also, this game enables the rom write flag, but does not try to write to rom.
it does write within the rom address space by writing to 0x8201, but sram is currently mapped at that region when the write happens.
maybe it's a mistake from the dev, thinking they had to enable this bit to write to this region, or its left over from testing.

the blue bars are sprites, and are rendered when bg is disabled.
this seems to be a prio issue as ignoring the bg prio, the blue bar is rendered (incorrectly)

fixed in https://github.com/ITotalJustice/TotalSMS/commit/02808eba45be1ad912a1f77abc3a8e4bbc1ef307