Fail to run v2 with flash attention

I got following error message when I input a 2-mins long video with the default hyperparameter setting (beam search numbers = 1, temperature = 1, video segments = 8) and "Hi" as text input.
Input video shape: torch.Size([24, 224, 224])
n_position: 1568
pre_n_position: 784
Pretraining uses 4 frames, but current frame is 8
Interpolate the position embedding
Traceback (most recent call last):
  File "/home/ivc5/miniforge3/envs/videochat/lib/python3.10/site-packages/gradio/routes.py", line 408, in run_predict
    output = await app.get_blocks().process_api(
  File "/home/ivc5/miniforge3/envs/videochat/lib/python3.10/site-packages/gradio/blocks.py", line 1315, in process_api
    result = await self.call_function(
  File "/home/ivc5/miniforge3/envs/videochat/lib/python3.10/site-packages/gradio/blocks.py", line 1043, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "/home/ivc5/miniforge3/envs/videochat/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
    return await get_async_backend().run_sync_in_worker_thread(
  File "/home/ivc5/miniforge3/envs/videochat/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2134, in run_sync_in_worker_thread
    return await future
  File "/home/ivc5/miniforge3/envs/videochat/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 851, in run
    result = context.run(func, *args)
  File "demo.py", line 84, in gradio_answer
    llm_message,llm_message_token, chat_state = chat.answer(conv=chat_state, img_list=img_list, max_new_tokens=1000, num_beams=num_beams, temperature=temperature)
  File "/home/ivc5/Ask-Anything/video_chat2/conversation.py", line 64, in answer
    outputs = self.model.llama_model.generate(
  File "/home/ivc5/miniforge3/envs/videochat/lib/python3.10/site-packages/peft/peft_model.py", line 1140, in generate
    outputs = self.base_model.generate(*args, **kwargs)
  File "/home/ivc5/miniforge3/envs/videochat/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/home/ivc5/miniforge3/envs/videochat/lib/python3.10/site-packages/transformers/generation/utils.py", line 1485, in generate
    return self.sample(
  File "/home/ivc5/miniforge3/envs/videochat/lib/python3.10/site-packages/transformers/generation/utils.py", line 2524, in sample
    outputs = self(
  File "/home/ivc5/miniforge3/envs/videochat/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/ivc5/miniforge3/envs/videochat/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/ivc5/Ask-Anything/video_chat2/models/blip2/modeling_llama_mem.py", line 674, in forward
    outputs = self.model(
  File "/home/ivc5/miniforge3/envs/videochat/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/ivc5/miniforge3/envs/videochat/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/ivc5/Ask-Anything/video_chat2/models/blip2/modeling_llama_mem.py", line 563, in forward
    layer_outputs = decoder_layer(
  File "/home/ivc5/miniforge3/envs/videochat/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/ivc5/miniforge3/envs/videochat/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/ivc5/Ask-Anything/video_chat2/models/blip2/modeling_llama_mem.py", line 292, in forward
    hidden_states, self_attn_weights, present_key_value = self.self_attn(
  File "/home/ivc5/miniforge3/envs/videochat/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1511, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/home/ivc5/miniforge3/envs/videochat/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1520, in _call_impl
    return forward_call(*args, **kwargs)
  File "/home/ivc5/Ask-Anything/video_chat2/models/blip2/modeling_llama_mem.py", line 220, in forward
    qkv = torch.stack([query_states, key_states, value_states], dim=2)
RuntimeError: stack expects each tensor to be equal size, but got [1, 32, 1, 128] at entry 0 and [1, 32, 121, 128] at entry 1

Hi! Please try to set use_cache=False as here.

I added the use_cache = False at
https://github.com/OpenGVLab/Ask-Anything/blob/078540aaebfbe1ad9a109020a73b0ce173b355ef/video_chat2/conversation.py#L64-L75
and I get a new error message.
Exception has occurred: RuntimeError
shape '[-1, 125]' is invalid for input of size 126
  File "/home/ivc5/Ask-Anything/video_chat2/models/blip2/modeling_llama_mem.py", line 515, in forward
    position_ids = position_ids.view(-1, seq_length).long()
  File "/home/ivc5/Ask-Anything/video_chat2/models/blip2/modeling_llama_mem.py", line 674, in forward
    outputs = self.model(
  File "/home/ivc5/Ask-Anything/video_chat2/conversation.py", line 64, in answer
    outputs = self.model.llama_model.generate(
  File "/home/ivc5/Ask-Anything/video_chat2/inference.py", line 68, in ask_questions
    llm_message, _, chat_state = chat.answer(conv=chat_state, img_list=img_list, max_new_tokens=1000, num_beams=num_beams, temperature=temperature)
  File "/home/ivc5/Ask-Anything/video_chat2/inference.py", line 82, in main
    results = ask_questions(chat, chat_state, img_list, questions)
  File "/home/ivc5/Ask-Anything/video_chat2/inference.py", line 91, in <module>
    main()
RuntimeError: shape '[-1, 125]' is invalid for input of size 126

It might because there is a shape mismatch between inputs_embeds (shape = [1, 125]) and attention_mask (shape = [1, 126])

Can you simply try not to use flash_attn when inferring?

yes, I was able to run the model without flash_attn. However, I am trying flash attention because I want a faster and more memory-efficient inference when using long prompts.


Mention file target locations in the README

It would be helpful to mention where the files from the release archive are meant to go, even if just as example.
/usr/local/bin/dysk
/usr/local/share/man/man1/dysk.1
/usr/local/share/bash-completion/completions/dysk.bash
/usr/local/share/bash-completion/completions/dysk.elv
/usr/local/share/bash-completion/completions/dysk.fish

are the places for my install, the man and bash-completion paths were not immediately obvious.

Good idea. This should probably be added to https://dystroy.org/rhit/install/


Ruby-like suggestions?

Hi there, I'm a long-time Ruby developer new to Crystal and loving my experience!
One decision that was made (which I applaud) was to have only one way of doing something. Coming from Ruby this means more than once I've done something like array.length or array.inject and been puzzled for a few minutes trying to figure out what went wrong.
What would you guys say to adding some ruby-like suggestions (somewhere in crystal/semantic?) so that calling array.inject produces undefined method 'inject' for Array(T) (did you mean 'reduce'?)
I don't think we need an exhaustive list of these Ruby changes, but if there was a place in semantics where we could store a JSON of them or something along with some logic, it would add just one more cool feature to an already bursting-at-the-seams-with-cool-features project.

This will probably never be added to the compiler, however an external tool for this kind of feature could exist one day to ease the passage from Ruby to Crystal!

Cool, make sense. Thanks for the quick response and again thanks for the awesome language!

The first step would be to create a list of these suggestions.

Having a ruby-compat shard that delegates methods and prints nice messages for common ruby aliases/methods would be very nice.

I don't think a ruby compact shard is a good idea, having one that has all the ruby methods with instructional compiler errors is a far better idea. This can be done with macro raise

I prefer a compat because it works (it's satisfying) but prints helpful messages (annoying). This is better than failing with a helpful message (just annoying).
Furthermore, if you make 3 compat calls, with a compat library you get 3 messages printed at once (allright, I must fix 3 calls). Failing hard, on the other ahdn, means you get 1 failure, fix it, then 1 more, fix it, then... when will that end?

@ysbaddaden Given a compat library is only useful when learning the language (deploying it into production would be pointless), then you won't need the library for long and also won't have written much code between compiles (because you're exploring the language) so I don't think it's a big deal. Encouraging people to lean on a compat library as a crutch for not learning crystal's stdlib is far worse in my opinion.

Well, we disagree. I believe knowing you have issues (and how many of them), yet still having a result, and possibly adding an encouragement when there are 0 issues is more rewarding, helpful and engaging in the long run, than failing hard with not end in sight which would be quite discouraging.

Renaming a method call then running the compiler 5 times is hardly an ordeal.

@RX14 hardly a pleasant and motivating experience either.

Crystal isn't only inspired by Ruby, but also by Python, Go, Rust, C#...
If we start to add suggestions based on Ruby, logically we'll have to do it for other languages. That's quite ambitious. I really doubt it's worth it.
This would better fit to an external tool, that helps beginners comming from X language.

@j8r hardly, you have it even stated as a first thing on crystal-lang.org website (Fast as C, slick as Ruby, then later on Crystal’s syntax is heavily inspired by Ruby’s, so it feels natural to read and easy to write, and has the added benefit of a lower learning curve for experienced Ruby devs.) - it makes total sense to ease the transition.
Just look at the amount of issues opened by Ruby newcomers - obviously you ain't gonna find one opened by people coming from Python, Rust or C# - for a reason...

@ysbaddaden What if instead of failing fast, all error messages would be printed at compile time? It's not satisfying in producing a working program but at least shows all such errors at once ;)

Na, I don't think this can work with macros. It would need information about the callsite to be anywhere near useful. So it's probably only going to happen either as a compiler feature or third party tool.


Use variables instead of literal values as namespaces in the script setup_perf_cluster.sh

The shell script tools/setup_perf_cluster uses default value 'istio', 'fortio' instead of variable $ISTIO_NAMESPACE, $FORTIO_NAMESPACE as namespace in some places. This can cause problems when these two variables are set to other values.

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: zhranklin
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: costinm
If they are not already assigned, you can assign the PR to them by writing /assign @costinm in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Hi @zhranklin. Thanks for your PR.
I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

/ok-to-test
All perf testing stuff is in https://github.com/istio/tools/tree/master/perf/ now though, I think we can probably just delete this stuff @mandarjog?

@zhranklin: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/e2e-simpleTests.sh
d813578d3e62521d6ff600056cae05a701be575f
link
/test e2e-simpleTests

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@zhranklin: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-pilot-multicluster-e2e.sh
d813578d3e62521d6ff600056cae05a701be575f
link
/test istio-pilot-multicluster-e2e

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@zhranklin: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-pilot-multicluster-e2e.sh
d813578d3e62521d6ff600056cae05a701be575f
link
/test istio-pilot-multicluster-e2e

prow/istio-integ-k8s-tests.sh
d813578d3e62521d6ff600056cae05a701be575f
link
/test istio-integ-k8s-tests

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


Added failing unit test for #1426

This change is

Thanks! Will look in depth of it

Too bad AppVeyor is broken :(

Related

http://stackoverflow.com/questions/31346574/setting-thread-currentprincipal-with-async-await
http://stackoverflow.com/questions/16552539/set-thread-currentprincipal-asynchronously

@304NotModified This unit test might not be the best to show it but what I'm seeing is that the layouts and writes happen on the same thread but the async calls to the target happen on a different thread. Thus the information is lost. If the information that was used to calculate the layouts was in a cache this wouldn't be an issue.

@niemyjski I would be nice if the unit test works without async. The would be easier to debug. Is that possible?

You're trying to test async targets without any async? Granted this test doesn't really reproduce the environment I'm running in but does show off a symptom of the real issue.

Yes with task.run on something like that? It's unclear to me if this is only an issue when using async

Yes with task.run on something like that? It's unclear to me if this is only an issue when using async

Bump @niemyjski

Well, the reason this fails is because the thread can change because doing any async operation can change the synchronization context (please correct me if I'm wrong). The core problem is that layouts run on the same calling thread but targets can happen on a completely different background thread due to async targets..

Well this issue happens because the first possible to record the info (logger.Debug("test write");) is on the wrong thread.
I don't know if this would be possible to fix. We need an additional call on the correct thread I guess.

the unit test is wrong IMO. This is not testing NLog's functionality, but it tests that the Thread.CurrentPrincipal  has been changed.
I will update the test and prove ${identity} is working and also in async contexts.

See https://github.com/niemyjski/NLog/pull/1

superseded by https://github.com/NLog/NLog/pull/1692


⚠ Processors has degraded performance

In c1ea6f8, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 77 ms

Resolved: Processors performance has improved in 0216575.


backend: Use Message<_, BorrowedFd> rather than RawFd

This is a breaking change to wayland-backend, but not to wayland-client or wayland-server. I believe that should be fine.
This avoids an unsafe conversion in the rs backend.
Based on https://github.com/Smithay/wayland-rs/pull/677.

Make a breaking change in wayland-backend will force a following breaking release in wayland-client and wayland-server anyway, but I think this is a direction we want to go.

Oh right, those crates expose the Backend type, so it's a public dependency. Otherwise such a change would be non-breaking.
This change can be left until the next time wayland-rs has a breaking change. This isn't urgent since it isn't actually a soundness issue and shouldn't impact behavior. (And indeed, the fact this change works confirms that the RawFds are already being used correctly.)


Call factory methods on this._renderer instance (not on undefined)

👍 from me. No idea why those methods were being treated as free functions in the first place. Maybe @blink1073 or @jasongrout would know if there was a specific reason for the way it was, but on the surface this looks like a bug; and this is a proper fix.

Looks like it was an oversight, thanks!


Create http parameters

For the next resources:
measure:

measure?by-enironment=[id]
measure?by-sensor=[id]
measure?by-sensor

pump-historial:

pump-historial?by-enironment=[id]
pump-historial?by-pump=[id]
pump-historial?by-pump

inside the route: req.query contains an object with all the query parameters, example
measure?my-var=56
--- in the route:
req.query = {my-var: 56}

Problem solved in https://github.com/nearlg/greenPi-backend/pull/9


[Rest] BREAKING CHANGE: az rest: Remove resourceGroup, x509ThumbprintHex transforms

Description

Fix #16286

The logic to add resourceGroup properties to the output JSON was added as early as #66.
While it helps (to some extent) in normal ARM commands, it causes trouble in az rest as the GET result can't be PUT back.
$ vnet=$(az rest -m GET -u /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/my-test/providers/Microsoft.Network/virtualNetworks/vnettest?api-version=2021-02-01)

$ echo "$vnet"
{
  "etag": "W/\"6edecdf3-4fb4-4b9e-a3a0-bcf184d6caf7\"",
  "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/my-test/providers/Microsoft.Network/virtualNetworks/vnettest",
  "location": "centralus",
  "name": "vnettest",
  "properties": {
    "addressSpace": {
      "addressPrefixes": [
        "<IP_ADDRESS>/16"
      ]
    },
    "enableDdosProtection": false,
    "provisioningState": "Failed",
    "resourceGuid": "069414bc-bd93-47a1-976e-2e51578a2c72",
    "subnets": [
      {
        "etag": "W/\"6edecdf3-4fb4-4b9e-a3a0-bcf184d6caf7\"",
        "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/my-test/providers/Microsoft.Network/virtualNetworks/vnettest/subnets/default",
        "name": "default",
        "properties": {
          "addressPrefix": "<IP_ADDRESS>/24",
          "delegations": [],
          "privateEndpointNetworkPolicies": "Disabled",
          "privateLinkServiceNetworkPolicies": "Disabled",
          "provisioningState": "Failed"
        },
>>      "resourceGroup": "my-test",
        "type": "Microsoft.Network/virtualNetworks/subnets"
      }
    ],
    "virtualNetworkPeerings": []
  },
>>"resourceGroup": "my-test",
  "type": "Microsoft.Network/virtualNetworks"
}

$ az rest -m PUT -u /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/my-test/providers/Microsoft.Network/virtualNetworks/vnettest?api-version=2021-02-01 --body "$vnet"
Bad Request({
  "error": {
    "code": "InvalidRequestFormat",
    "message": "Cannot parse the request.",
    "details": [
      {
        "code": "InvalidJson",
        "message": "Could not find member 'resourceGroup' on object of type 'Subnet'. Path 'properties.subnets[0].resourceGroup', line 27, position 24."
      },
      {
        "code": "InvalidJson",
        "message": "Could not find member 'resourceGroup' on object of type 'VirtualNetwork'. Path 'resourceGroup', line 33, position 18."
      }
    ]
  }
})

Change
Remove resourceGroup, x509ThumbprintHex transforms so that az rest preserves the original server response.

Rest


Handled items should be logged on a single line

Currently, this mod logs each handled item onto a new line. Since the information isn't particularly useful, it should be printed to a single line rather than many (or better yet, not at all).

Yeah you're right, I've been meaning to change this for a while.

Apparently I already did this but just hadn't gotten around to create a release. Doing one now.


HSL Support? ✖ color2.luminance is not a function

Does this support HSL? I created a .json file of our SASS variable and running npx a11y-contrast color-palette-3.3.json produces the following:
npx: installed 13 in 1.755s
ℹ Analyzing: color-palette-3.3.json
✖ color2.luminance is not a function

Example of the file:
{
	"primary": {
		"$primary-100": "hsl(186, 100%, 94%)",
		"$primary-200": "hsl(190, 94%, 88%)",
		"$primary-300": "hsl(196, 92%, 81%)",

EDIT: Maybe this is because these color name don't conform to the grades 0 - 100?

Hi @frankstallone , I cannot reproduce this issue. Can you please post the whole palette file? I would assume that it's either the $primary vs primary difference or the fact that the tool doesn't support 100 steps (#1). But I didn't get any issue with the 3 colors you've posted.
I only get the issue when one of the colors is invalid (like "foo"). I should at least improve the error message here, so the exact color value is being displayed.

Okay so I added my EDIT while you replied. I saw your post come up as I was submitting. Yeah this palette was made before reading there was a specific step requirement. I think this is related to your other post. I removed the $'s -- that was left over from converting from SASS.

While the 100 steps definitely won't work (as in: the tool will not be able to compute the values), I don't think this is the reason for your error message. This message can only happen if a color value is in fact not valid. RGB, HSV, HSL, and CMYK are supported, so there must be some error somewhere in your palette.
For example, this one doesn't throw any error:
{
  "gray": {
    "$gray-100": "hsl(186, 100%, 94%)",
    "$gray-200": "hsl(186, 100%, 94%)",
    "$gray-300": "hsl(186, 100%, 94%)",
    "$gray-400": "hsl(186, 100%, 94%)",
    "$gray-500": "hsl(186, 100%, 94%)",
    "$gray-600": "hsl(186, 100%, 94%)",
    "$gray-700": "hsl(186, 100%, 94%)",
    "$gray-800": "hsl(186, 100%, 94%)",
    "$gray-900": "hsl(186, 100%, 94%)"
  },
  "red": {
    "$red-100": "hsl(186, 100%, 94%)",
    "$red-200": "hsl(186, 100%, 94%)",
    "$red-300": "hsl(186, 100%, 94%)",
    "$red-400": "hsl(186, 100%, 94%)",
    "$red-500": "hsl(186, 100%, 94%)",
    "$red-600": "hsl(186, 100%, 94%)",
    "$red-700": "hsl(186, 100%, 94%)",
    "$red-800": "hsl(186, 100%, 94%)",
    "$red-900": "hsl(186, 100%, 94%)"
  }
}

I will improve the tool to output all invalid colors.

Hah, primary-500 had a space at the end of the string. That was the issue.
Is this the expected results because I don't have the correct steps? If so, can I just knock a 0 off mine or do I need to conform to some grade/step standard?

had a space at the end of the string

Thanks for this hint, I will also trim the color values to prevent such issues in the future.

Is this the expected results because I don't have the correct steps? If so, can I just knock a 0 off mine or do I need to conform to some grade/step standard?

Yes, that's the reason. And yes, you can just remove a 0 from every color, and it should work. Even your 110 and 120 values should work fine in theory. And your results confirm this. What you get are the magic numbers 70, 80 and 90. Because those values are so high for your color palette, they might be not that useful for a generic use. If you're targetting WCAG AA (contrast ratio >= 4.5), every difference of 80(0)+ will be accessible (e.g. gray-100 and gray-900 or gray-200 and gray-1000).
In summary, it doesn't matter whether you're using gray-1, gray-10 or gray-100 for defining your color palette grades (apart from my tool only handling gray-10 at this moment). But because your highest value isn't the absolute maximum (you've extended the palette with even higher values), it will lead to rather high magic numbers. The same problem exists for the Open Color palette.
It also doesn't mean that your color palette is "bad" or "inaccessible" - it just means that the magic number approach doesn't work as well as it does for other palettes.

Very interesting, and thank you for elaborating on this. You helped me understand the elements that did not click for me from reading your article. Ultimately, this tool was the best I could find so far, or closest to what I am looking for.
I want something that can look at all the colors in our palette (82) and put together recommendation pairings for each color combination and it's lighter version for text, in alignment with WCAG recommendations. I might find a better way to phrase that, but I think I had in the past seen a tool that does this. Then I can put a demo together in our design system which is created in a Storybook. If you know of such a tool let me know. Thanks again for creating this one!

You helped me understand the elements that did not click for me from reading your article.

Yes, it's a rather complex topic and it was difficult for me to explain it. I would be happy to improve my blog post if you could point out the places which you've found confusing.

I want something that can look at all the colors in our palette (82) and put together recommendation pairings for each color combination

You mean you would like to pass a color palette and get all valid color combinations for a given contrast ratio? I think colorable should be able to solve this issue. While a11y-contrast focuses on the magic numbers principle, I think it would be a great addition to have your described behavior built-in. I've created #3 for this.

I would be happy to improve my blog post if you could point out the places which you've found confusing.

 However, I feel as though the topic is just heavy. There is a lot to know, and a lot to consider.

You mean you would like to pass a color palette and get all valid color combinations for a given contrast ratio?

Yes, exactly.
colorable looks like it creates palettes, but I will give it a try. 82 colors is enough for right now, I don't need more hah! That's great if you think it would be a worthy addition to your project. leonardo has a feature that add bulk key colors but from my limited understanding that, too, seems to create color palettes from your keys, instead of comparing. I have learned a lot over the past few days and really do appreciate your time and patience.


java.lang.NullPointerException in net.lingala.zip4j.io.inputstream.ZipInputStream.getEncryptionHeaderSize::ZipInputStream.java:336 zip4j 2.9.0

This vulnerability is of java.lang.NullPointerException, and can be triggered in latest version zip4j (2.9.0).
It is caused by not checking the pointer before dereference it and also failing to catch the runtime java exception (it should be wrapped as one kind of JSONException) and can be used for attackers to launch DoS (Denial of Service) attack for any java program that uses this library (since the user of zip4j doesn't know they need to catch this kind of exception) (CWE-476: NULL Pointer Dereference, CWE-248: Uncaught exception).
Likely, the root cause of this crash is in net.lingala.zip4j.io.inputstream.ZipInputStream.getEncryptionHeaderSize::ZipInputStream.java:336.
https://github.com/srikanth-lingala/zip4j/blob/ce1cff61c019d61f5db603cba908118a3a0e3b93/src/main/java/net/lingala/zip4j/io/inputstream/ZipInputStream.java#L336  The variable "localFileHeader" has a NULL value and it results in NullPointerException.
See more detail from the following crash stack.
Crash stack:
The crash thread's stack is as follows:
net.lingala.zip4j.io.inputstream.ZipInputStream.getEncryptionHeaderSize::ZipInputStream.java:336
net.lingala.zip4j.io.inputstream.ZipInputStream.getCompressedSize::ZipInputStream.java:326
net.lingala.zip4j.io.inputstream.ZipInputStream.initializeEntryInputStream::ZipInputStream.java:222
net.lingala.zip4j.io.inputstream.ZipInputStream.getNextEntry::ZipInputStream.java:113
net.lingala.zip4j.io.inputstream.ZipInputStream.getNextEntry::ZipInputStream.java:83
com.test.Entry.main::Entry.java:37

Steps to reproduce:

Build the following java code with the corresponding zip4j library (version 2.9.0).

## Download zip4j_env_reproduce.tar.gz from https://drive.google.com/file/d/1MekCBIghKxIW4j-TLjZkm8ovvLb_grm5/view?usp=sharing
tar -xf zip4j_env_reproduce.tar.gz
cd zip4j_env_reproduce
bash build.sh

Run the built program to see the crash by feeding one of the poc file contained in the pocs.tar.gz, e.g. :
(poc file can be downloaded from https://drive.google.com/file/d/1wdvxU5bX_Fw9DtupwpDsTJU2JMKAnUuy/view?usp=sharing)

java -jar target/Entry-1.0-SNAPSHOT-jar-with-dependencies.jar pocs/crash-a49f954b47e05cc5265db441a64e5d2d55cb33b8

Any further discussion for this vulnerability including fix is welcomed!

Fixed in v2.10.0 released today


optimize dockerfile

Thanks for the contribution. Can you provide a little more information about the purpose of this change?

I add a review for the changes, please check.


Rename String.IsAbsPath() to String.IsAbsolutePath()

breaks compat
Follow up to #49279 in C#

Did you make sure this doesn't break GodotTools builds? (It may be used there).
Also any reason we renamed is_abs_path to is_absolute_path but kept is_rel_path?

Also any reason we renamed is_abs_path to is_absolute_path but kept is_rel_path?

Seems like an oversight in the original PR

Did you make sure this doesn't break GodotTools builds? (It may be used there).

It's not used in GodotTools, that project has its own StringExtensions with a method named IsAbsolutePath already:
https://github.com/godotengine/godot/blob/c3378d56505cfb8e282ed4e542fe170d213371f6/modules/mono/editor/GodotTools/GodotTools.Core/StringExtensions.cs#L54
I also could not find any more references to IsAbsPath:

I couldn't find any other references either. Let's see. :)
Thanks for your PR!


Add xhr timeout property and handler to urb.js

The timeout is set to 1 minute, and passes an error to the callback. Without a timeout the request would pend forever, which creates two problems.

If the client loses connection, the request is never re-established when connection is restored, and the user is forced to refresh the browser.
The urb.poll.dely property never changes so urbit/talk is unable to detect when it's offline.

I've also made a beat: true response reset the urb.poll.dely property back to 250 so urbit/talk can go back 'online' again.
Fixes urbit/talk#21

Equivalent patch merged


shows the weight date of the Mi Scale

Hi Mnkai,
as you mention in our e-mail conversation, I will contribute some code changes. Unfortunately these are only minor changes to show the weight date of the Mi Scale.
Currently I didn't save the date in the database because it depends heavily on how you want to handle it. Also feel free to change the format date as you want (for example I didn't show/save the seconds).
Btw you have a great App!
Best regards from Germany
Oli

Thank you!
Will merge into master branch after testing when I have time :)


wrong root path: clang pp_file_not_found

Please describe the problem.
Take x264 as an example:
$ git clone --depth=1 https://github.com/mirror/x264
$ cd x264
$ vi +28 encoder/encoder.c

coc.nvim use .git as coc.preferences.rootPatterns, so the root path is .. However, clangd use encoder, so common/*.h cannot be found, but encoder/*.h can be found.
For hints on what information is helpful, see: https://clangd.llvm.org/troubleshooting.html
If you can, provide a minimal chunk of code that shows the problem (either inline, or attach it if larger).
Logs
Please attach the clangd log from :CocCommand workspace.showOutput if you can.
If possible, run with --log=verbose - note that the logs will include the contents of open files!

I[22:27:44.700] clangd version 13.0.0 (https://github.com/llvm/llvm-project d7b669b3a30345cfcdb2fde2af6f48aa4b94845d)
I[22:27:44.700] Features: linux+grpc
I[22:27:44.700] PID: 1618219
I[22:27:44.700] Working directory: /home/wzy/Desktop/x264
I[22:27:44.700] argv[0]: ../../.config/coc/extensions/coc-clangd-data/install/13.0.0/clangd_13.0.0/bin/clangd
I[22:27:44.700] Starting LSP over stdin/stdout
I[22:27:44.701] <-- initialize(0)
I[22:27:44.701] --> reply:initialize(0) 0 ms
I[22:27:44.730] <-- initialized
I[22:27:44.732] <-- textDocument/didOpen
I[22:27:44.733] Failed to find compilation database for /home/wzy/Desktop/x264/encoder/encoder.c
I[22:27:44.733] ASTWorker building file /home/wzy/Desktop/x264/encoder/encoder.c version 1 with command clangd fallback
[/home/wzy/Desktop/x264/encoder]
/usr/bin/clang -resource-dir=/home/wzy/.config/coc/extensions/coc-clangd-data/install/13.0.0/clangd_13.0.0/lib/clang/13.0.0 -- /home/wzy/Desktop/x264/encoder/encoder.c
I[22:27:44.734] --> textDocument/clangd.fileStatus
I[22:27:44.742] --> workspace/semanticTokens/refresh(0)
I[22:27:44.742] --> textDocument/clangd.fileStatus
I[22:27:44.767] <-- reply(0)
I[22:27:44.775] --> textDocument/publishDiagnostics
I[22:27:44.776] --> textDocument/clangd.fileStatus

System information
Clangd version (from the log, or clangd --version): 13.0.1
clangd extension version (from :CocInfo): 0.21.3
Operating system: linux 5.17.1-arch1-1

Can't reproduce.

git clone --depth=1 https://github.com/mirror/x264
cd x264
bear -- make to generate compile_commands.json
nvim +28 encoder/encoder.c, no errors.

" $ uname -r
" 5.17.7-arch1-1
" $ has nvim
" ✔ nvim 0.7.0
" $ has python
" ✔ python 3.10.4
" $ cat test.vim
set runtimepath=$VIMRUNTIME
set runtimepath+=~/.local/share/nvim/repos/github.com/neoclide/coc.nvim_release
let g:coc_config_home = '.'
" $ cat coc-settings.json
" $ vi -u test.vim +28 encoder/encoder.c

How do you set compile_commands.json for the project?


Question: How to load locale based on browser locale

Maybe I'm missing something but it seems like the locale needs to be explicitly imported at build time. Is there a way to select the locale at runtime without exhaustively importing all of them?

This package is for supporting older browsers where you should ideally know the locale on the server side. For modern browsers, the best solution would be to create a custom "locale" the uses the built-in Intl package.
Here's a reference:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat
I'm looking to add a built-in option to use this if I can find a good way to pass in the locale as an argument.


Problem of inference with Mixtral-8x7B RuntimeError: ptxas failed with error code 2

System Info
Using tgi 2.0.3 transformed into sif using apptainer on a cluster with following characteristics
Cuda 12.2
nccl/2.18.5-1+cuda12.2
cudnn/<IP_ADDRESS>_cuda12.2
GPU: 8xNVIDIA A100-80GB node
Information

[X] Docker
[ ] The CLI directly

Tasks

[X] An officially supported command
[ ] My own modifications

Reproduction
tgi works when using Mistral-7b-Instruct-v0.1 or Llama3-70B-Instruct, but I'm getting an error that seems MoE specific when trying to infer using Mixtral-8x7B-Instruct-v0.1.
I'm supplying an excerpt of the error message below
  File "/opt/conda/lib/python3.10/site-packages/text_generation_server/models/flash_causal_lm.py", line 942, in generate_token
    out, speculative_logits = self.forward(batch)
  File "/opt/conda/lib/python3.10/site-packages/text_generation_server/models/flash_mistral.py", line 514, in forward
    logits, speculative_logits = self.model.forward(
  File "/opt/conda/lib/python3.10/site-packages/text_generation_server/models/custom_modeling/flash_mixtral_modeling.py", line 640, in forward
    hidden_states = self.model(
  File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/text_generation_server/models/custom_modeling/flash_mixtral_modeling.py", line 582, in forward
    hidden_states, residual = layer(
  File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/text_generation_server/models/custom_modeling/flash_mixtral_modeling.py", line 522, in forward
    moe_output = self.moe(normed_attn_res_output)
  File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
    return self._call_impl(*args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
    return forward_call(*args, **kwargs)
  File "/opt/conda/lib/python3.10/site-packages/text_generation_server/models/custom_modeling/flash_mixtral_modeling.py", line 360, in forward
    out = fused_moe(
  File "/opt/conda/lib/python3.10/site-packages/vllm/model_executor/layers/fused_moe/fused_moe.py", line 397, in fused_moe
    invoke_fused_moe_kernel(hidden_states, w1, intermediate_cache1,
  File "/opt/conda/lib/python3.10/site-packages/vllm/model_executor/layers/fused_moe/fused_moe.py", line 222, in invoke_fused_moe_kernel
    fused_moe_kernel[grid](
  File "<string>", line 63, in fused_moe_kernel
  File "/opt/conda/lib/python3.10/site-packages/triton/compiler/compiler.py", line 476, in compile
    next_module = compile_kernel(module)
  File "/opt/conda/lib/python3.10/site-packages/triton/compiler/compiler.py", line 351, in <lambda>
    lambda src: ptx_to_cubin(src, arch))
  File "/opt/conda/lib/python3.10/site-packages/triton/compiler/compiler.py", line 150, in ptx_to_cubin
    return compile_ptx_to_cubin(ptx, ptxas, arch)
RuntimeError: `ptxas` failed with error code 2:

I have tried --disable-custom-kernels but it doesn't change anything.
Would you have any cues on the origin of the error?
Expected behavior
To not have the error :)
Thanks for your help !

What is your exact startup command? And have you tried using an earlier version of TGI? We have a similar workflow for deploying models on our HPC cluster, and anecdotally I've sometimes found older versions work when newer ones fail. I can confirm that I have Mistral 8x7B running on a similar spec'ed machine as yours using Singularity and TGI v1.4.5.


Add a quote by Caitlyn Siehl

@pushkarydv I want to add a few quotes by Caitlyn Siehl, please approve this issue so I can work on it.

assigned


show/hide calendar input

Hi,
I am trying to show/hide calendar input. I mean If user click on input without selecting date, calendar should be hide if shown or vice-versa.
pickmeup('input.check-in-date', {
      position       : 'top',
      class_name		 : 'dt1',
      default_date   :  false,
      prev           : '',
      next           : '',
      hide_on_select : true,
      render : function (date) {
        if (date < now) {
          return {disabled : true, class_name : 'date-in-past'};
        }
        return {};
      }
    });

Sorry, but I do not quite understand what do you need.
Can you describe it step by step or elaborate somehow in more details?

Sorry for late, I am trying to close/hide calendar on click input field without selecting date. As like hide_on_select for hiding after selection but I want to hide without selecting date.

Did you try hide method for this?

Yeah, but how can I trigger this event hide(), that element is already bind on click event.

Still can't quite understand what you need. hide method is separate from click event, it can be used directly.
Can you describe step by step what are you doing (or want to do), then what happens and what did you expect to happen instead. Or even better, prepare some demo on jsfiddle or jsbin to describe the question.

I want to do is toggle show/hide on click (input - without selecting date).

Then you can subscribe to click event, suppress original even handler, and show/hide as you like.
Here is demo: https://jsfiddle.net/e70LyyL4/

This is exactly what I needed but It's not working on Chrome (v 52.0.xx), and working on Firefox.

This one should work in all browsers: https://jsfiddle.net/e70LyyL4/1/

Also I don't think getPreventDefault() comes from PickMeUp

same issue on fiddle you shared, check that on Chrome (v 52.0.xx) too.

Works fine for me in Chromium Nightly 55.0.2880.0.
Anyway, you get the idea.

No, I didn't get what's the problem, I am beginner in JS.
I am facing same problem in Chromium	52.0.2743.116 (Developer Build) Built on Ubuntu

Well, I gave you the code which works for me.
If it doesn't work for you, I can't fix it, since:

I can't reproduce an issue
this is not about PickMeUp itself, so this is your job, not mine

Thanks for your advise and time, I will look into this.


access to instance id

Is your feature request related to a problem? Please describe.
It would be good if the instance could access the instance id. If I want to publish events and want to use something as context value to wait for e.g. multiple async subflows.
Describe the solution you'd like
Up for discussion
Describe alternatives you've considered
At the moment I'm using something like jq(.name + (now | todateiso8601 | fromdate | tostring)). Not so nice output.

I've thought about this as well. Do you have any examples where knowing the instance ID is desirable, as opposed to just having some sort of unique key? I don't know if there's any harm in sharing the instance ID to the logic.
If only a unique key is needed, a function/container can easily solve this.

#315 might be a good use-case for this.

It does not have to be the instance id but it makes sense. Sometimes I want to create random files and I could just use the instance variable. I'm wondering if adding custom Direktiv commands in jq could be doing this?

That would be one way to do it. I'd be inclined to add a new state instead of messing with the JQ though. Perhaps some sort of utility state that works just a little bit like how action secrets work: the engine could generate a standardized object with various information that only exists in the scope of a single JQ command, and users could use JQ to extract the things they want from it and store it?
For example:
states:
- id: info
  type: util
  extract: '.instanceID = .util.instanceID'

Input:
{}

Output:
{
  "instanceID": "12345-..."
}

We could extent this state in future. Maybe allow it to grab the current time, namespace, etc.


Minor fixes of typos, README and tests

This PR:

fixes the typos we had in the title of paper.md.
provides an updated version of the README (with the correct installation information) and a description that is more coherent with the paper.
the tests written for the slope_change.jl pipeline have been included in runtests.jl (a reason why our code coverage was lower than expected).
(minor) additional tests for the change metrics.

tests fail currently

Should be corrected now! I noticed some errors in slope_change.jl and the associated significance, which were breaking the code. They should be fixed now!


RefreshDatabaseFast is seeding before migrating.

I couldn't figure out why seeding was not working, but in the runMigrationsIfNecessary method of the Trait, you are first seeding (upon checking the configuration parameter, that's correct) but then you're doing a migrate fresh completely emptying the seeding :)

Please specify your issue more detailed, if you have further questions.
For now I'm gonna close this issue...

I believe this is in reference to RefreshDatabaseFast trait:
/**
     * Check if migration fresh is necessary by checking
     * if the migrations files checksum has changed.
     */
    protected function runMigrationsIfNecessary(): void
    {
        if (! $this->identicalChecksum()) {
            if (config('useful-additions.refresh_db_fast.seed')) {
                $this->seed();
            }

            $this->artisan('migrate:fresh', $this->migrateFreshUsing());

            //create checksum after migration finishes
            $this->createChecksum();
        }
    }

I'm not using this feature, but also noticed this while reading the code for another issue.

I too have come across this issue - but I am using the feature.
laracraft-tech/laravel-useful-additions/src/Traits/RefreshDatabaseFast.php:42
There is a check to see if the migrations need to run based on the checksum. With the config, you can have it seed too. However, the code seeds and then does a migrate fresh which effectively wipes out the seed. The seed should come after the migrate. See comment above for code block which I'm referring to.

I'm submitted a pull request to fix this #18


Add Simplified consent option

Adds "Simplified" option which forces the user to either allow or deny all cookies at once

@matthijsch I love this addition, we are only using one category of cookies and being able to simplify the form like this is really nice.
I tried to check out the latest commit and configure with simplified: true, however, when I did so the result was that both the complex categories and the simplified version appeared next to each other:
ch_cookie_consent:
    position: 'top'
    simplified: true
    theme: 'dark'
    use_logger: false

But this then shows both the simplified buttons: "Only use functional cookies"/"Allow all cookies" and "Do you want tracking cookies? Yes/No" + "Do you want personalised ads? Yes/No" + "Do you want social media cookies? Yes/No"
This isn't the intention, right?

SASS changes has not been exported to CSS file, can anybody do that?


build: use conventional commit

Use https://conventionalcommits.org/ with the Angular style.
Use commitlint to ensure that the commit messages follow the style
husky to ensure the lint is applied at git commit time.
To reedit the commit message after a lint failure, one can do something
like:
git commit --edit --file=.git/COMMIT_EDITMSG'

I just want to make sure I understand how this will be used.
If we try to commit, and the linter identifies an error, it will abort the commit and output the error.  That is why we need to use git commit --edit --file=.git/COMMIT_EDITMSG instead of git commit --amend.
If there is only linter warnings, does the commit still go through, so that we need to use git commit --amend to go back and fix anything identified in the warning?

Yes.


Point cloud styling fixes

${feature.propertyName} and ${feature['propertyName']} syntax now works for point clouds using the GLSL styling backend. It was an oversight in getShaderExpression and required just a few small changes.
The bigger change here is supporting feature properties with non-alphanumeric characters, like ${feature['temperature value 😀']}. The shader was using the property name as-is which doesn't compile if the name has spaces or unicode characters. Now the shader attribute is named with a unique id.
Local sandcastle

Thanks for the pull request @lilleyse!

:heavy_check_mark: Signed CLA found.

Reviewers, don't forget to make sure that:

[ ] Cesium Viewer works.
[ ] Works in 2D/CV.
[ ] Works (or fails gracefully) in IE11.

Awesome!  Thanks for the quick fix @lilleyse!

@lilleyse It would be good to have tests for handling properties with spaces and Unicode characters

Added a test and confirmed the test fails in master. @sanjeetsuhag do you have other feedback?

Would love to see this go into the next release. @sanjeetsuhag is there anything else you're looking for here?

Code, sandcastle and test look good. Thanks @lilleyse!


Broken Links npmcdn.com

On the site: https://flatpickr.js.org/localization/, the followings links are broken (Error 520):
<script src="https://npmcdn.com/flatpickr/dist/flatpickr.min.js"></script>
<script src="https://npmcdn.com/flatpickr/dist/l10n/ru.js"></script>

You should be using https://cdn.jsdelivr.net/npm/flatpickr and not npmcdn - the docs need to be updated tho.


protocol: include folder ID in i-team resolve result

KBFS will use this eventually.  It's ok for now if it remains unset until CORE-6635 is done.
Issue: KBFS-2598

Is this the thing that's going to be stored in the team sigchain?

Is this the thing that's going to be stored in the team sigchain?

Yeah I think so: https://keybase.atlassian.net/wiki/spaces/GEN/pages/113082369/Thoughts+on+Implicit+Teams+in+KBFS We are gonna call this when resolving a handle, and determine whether a TLF is backed by an i-Team by the response.

@mlsteele: Yep, as per CORE-6635.


How to make explotion like to gota.io?

Plz :D

Changue valors on virus.js
idk xD

puto

WeLl UU c whchu do heer is just udpate th maan explosionb in virusjs and then  edit antoehr line with x = 2.42134 and bam u got coool expl0sion!1!!1

xDDDDDDDDDD

ALV all :v

U cannot lotion urself in agar


Office Hour News 29/09/23

When video is ready, need to cut and upload then get the link for the blog post.

Video: https://bcgcatenax.sharepoint.com/sites/CommunitiesofPractises/_layouts/15/stream.aspx?id=%2Fsites%2FCommunitiesofPractises%2FShared Documents%2FCX-CoP DevSecOps%2FOffice_Hours_Regular_Recordings%2F20230929_DevSecOps-Business Hours-Recording.mp4&referrer=OneDriveForBusiness&referrerScenario=OpenFile

Please review: https://github.com/catenax-ng/catenax-ng.github.io/pull/209

reviewed


Gitter.im

This is just a sugestion.
Use gitter for talk with @sanketsahusoft to improve just this plugin :)

This plugin might not be maintained after 6 months, mainly in support of HTML5 file upload APIs and deprecation of support for the older browser.
So, no plans for Gitter for this repo :-)
Thanks for suggestion though.


fix(mssql): unescape slashes when inserting a unicode string containing slashes as it's not interpreted anyway

This PR tries to fix an issue with string being escaped when it's not needed.
For dialects other than MySQL, a path like \\path\to\directory will get inserted as \\\\path\\to\\directory.
Closes #5811

@boenrobot I added this test aswell, it looks like it works as intended

Gave this a look and this is only mssql issue, its not surfacing in the sqlite drivers, neither in the postgres one. Also changed the fix to be applied to the tsqlstring library instead of manually escaping here, should be less error prone.


fix: Accessory Detail table not rendering

Fix #140
Test URLs:

Before: https://main--airlessco--hlxsites.hlx.page/na/en/products/accessories/revtipspraytips
After: https://bug-accessories-details--airlessco--hlxsites.hlx.page/na/en/products/accessories/revtipspraytips

Perfect.  Thank you.


Install fines (with SDK 2.4.0), but can't import pyzed.camera - Ubntu 16.0.4 Cuda 9

Using Python 3.6.5, everything builds fine, it's copying the libraries to the python directory. I can import pyzed, but not pyzed.camera or any of the packages...
(ModuleNotFoundError)

Hello, Have you found any solution to this? +


typealiasing action, state, and observation

For clarity when defining functions, why not typealias Action, State, and Observation to Any?

In your example, can the user do this:
type MyState <: POMDPs.State
    ...
end

To make the state compatible with POMDPs.jl?
I agree that having abstract types for states, actions and observations can add extra overhead to the user, but hopefully that overhead is minimal.
I'm going to go ahead and add these unless there are objections.

Hm... I like the idea of having abstract POMDPs.jl action, observation,
and action types (and rewards, I was going to bring that up in a
different context), but don't really like having wrappers when those
objects are just concrete integers, floats, etc. Can we, perhaps,
briefly talk about this after the meeting today?
On 9/25/2015 10:38 AM, Maxim Egorov wrote:

In your example, can the user do this:
type  MyState  <: POMDPs.State
...
end
To make the state compatible with POMDPs.jl?
I agree that having abstract types for states, actions and
observations can add extra overhead to the user, but hopefully that
overhead is minimal.
I'm going to go ahead and add these unless there are objections.
—
Reply to this email directly or view it on GitHub
https://github.com/sisl/POMDPs.jl/issues/17#issuecomment-143298196.

Yeah, we can discuss.

Max, the user may not be able to do what you suggest because they may have their own type heirarchy already in place. This is especially a problem if they are using some other package that requires them to subtype an abstract type.
For example what if they are also using a hypothetical motion planning package, MotionPlanning.jl? Then MyState might also be a subtype of 'MotionPlanning.State`. The person would have to use composition to be compatible with one of the packages.

Updated and closed the issue. Make sure to update your state action and observation definitions.


Fix add_at_risk_counts()

Update lambda in agg() to return a scalar, so that agg() returns a pd.Series instead of a pd.DataFrame, as is expected by downstream logic.

I think this makes sense. Can you confirm which version of pandas you are using?


trying to play local .mp4's "Failed to add video."

When i try to add a local movie.mp4 i get the error "Failed to add video." shown in the chat.
I am trying it like this on ubuntu:
/home/USERNAME/Downloads/movie.mp4
Do you have to type it in differently?

The error doesnt always show, sometimes it only shows with one particular .mp4 and sometimes with all of them and sometimes all of them work. And i always use the same link e.g. /home/USERNAME/Downloads/movie.mp4 (Tripple checked)
What could be the reason for this inconsistency? I tried both running Synctube in Docker and with npm.

I can reproduce this problem with some "bad" paths/names (with spaces or other non-url characters). Probably this is your case?

Let me know if problem still there.

I moved it out of the /Downloads folder into /home/ but it still happens, Youtube links are working fine. Its just not adding my .mp4's (eventho sometimes it did). I didnt change anything in the config.

I tried it with a new debian VM as well,
The .mp4 files are in /home/me/Downloads/video.mp4 and thats exactly what i enter, but it just shows "Failed to add video." in chat.

Try latest commit.
And if this doesn't work please provide your browser name and nodejs versions.

Tried latest commit, I tried Firefox and Edge, nodejs is v10.19.0 and npm is v6.14.4 . I use the same copy pasted "link" /home/me/Downloads/ everytime and I dont know how this makes any sense, but sometimes only a random one of my .mp4's is able to play, most of the times not one of them, Right now its 1 out of 5 mp4's that i can add over and over again but the rest will bring errors. Even the same video just a renamed .mp4 filename. I feel cursed. I hope you can still follow weird problem, I can give you access to it or let you try it yourself if you think that helps.

At the moment i dont have the problem anymore when i am in a browser locally on the same server. I will do some more testing and report :)

I found a fix for my setup, that seems to work. I first have to play the local file while I'm on a browser in the machine thats running SyncTube. Then it will play locally but not for others that are connected from outsite of my network. Then i delete the current video and type the same url (/home/me/Downloads...) but from a browser where im connected from outside the network. Then it works.
Thanks for your help and time!

Yeah, that's for safety, you can add local video files only if you are host (same ip as a server).
You can change this line to if (true) { if you want more unsafe behavior, not sure if i should push some option to add local files to playlist even for non-local users.
But as alternative, you can just make symbolic link in SyncTube/user/res/, for example d to /home/me/Downloads, and then local video url /d/Foo.mp4 should work for all clients, if you have that file in Downloads.

Sorry to necro this, but @RblSb did this line change since this was posted? The line that the link is pointing to doesn't seem to be what you were referencing.


500 error in Prestashop 8.1.2

Describe the bug and add screenshots
Hi!
I´ve just update from Prestashop 1.7 to 8.1.
Everything is working fine, exept of the Paypal plugin.
What doesn´t work:

Paypal does not show up in the frontend
When calling the settings of the module in the backende, an 500 Error occurs:

I´ve tried clearing caches (Advanced Parameters ->  Performance).
Any ideas?
Thanks!
Chris
Expected behavior

Paypal should show up in the frontend (i.e. checkout)
Settings should be working

Steps to reproduce

Open Module Manager
Search for the Paypal plugin
Click on settings

PrestaShop version(s) where the bug happened
8.1.2
PHP version(s) where the bug happened
8.1 (same with 8.0)

Hi @criwe
Please could you try to check if the module is correctly activated (and not disabled).
Sometimes the upgrade of major version of PrestaShop disable the module and this is not very clear to see it.
If the module is already enabled, please try to install it again and clear the cache.
This issue is linked to one file not correctly loaded (via the PayPal's composer autoload) and in most
case this is because the module is disabled.
Thank you.


Enable constraints check on Linux

This pull request includes updates to the fuzzing workflow and an update to the ebpf-verifier submodule. The most important changes are as follows:
Fuzzing Workflow Update:

.github/workflows/fuzzing.yml: Added an environment variable UBPF_FUZZER_CONSTRAINT_CHECK to the fuzzing command to enable constraint checking during fuzzing.

Submodule Update:

external/ebpf-verifier: Updated the submodule to a new commit to include the latest changes from the ebpf-verifier repository.

coverage: 79.25%. remained the same
when pulling 20bbbcc0099d4f3df247e86376b2884a769fde59 on Alan-Jowett:fuzzing
into d9c901797c20ce6f79ff0fbe39ee4188be6ec099 on iovisor:main.


forest-proxy ideation

Issue summary
Forest is already a big, monolithic piece of software with several complex parts. This makes it not only unscalable but also difficult to audit and reason about.
One such part is RPC authentication. Currently, it is embedded in JWT tokens with some coarse-grained permissions (admin, write, read), similar to what Lotus has. At the moment, all of those permissions are hard-coded, and there's no way to instruct Forest not to serve a particular method. Also, in some applications, juggling the tokens is only a hassle that adds nothing to security.
The idea is to strip Forest of any authentication on the RPC layer (which would still be, by default, available only on localhost). The entire thing would be moved into a separate process, forest-proxy, which would handle authorisation and filtering of allowed methods via a configuration file.

The configuration file itself would allow to:

allow/block RPC methods,
implement authorisation mechanism (be it good ol' JWT tokens or something else),
setting rate limits,
allowed params for specific methods?

:green_circle:  Pros:

less security-critical logic in Forest itself,
better isolation for Forest (there's still the direct P2P channel...)
dedicated sidecar, easier to modify, configure, audit and test,
potentially, could be used by other Filecoin nodes,
easier deployment for non-RPC providers,
fits nicely into our Kubernetes considerations,

:warning:  Cons:

More complex deployment for RPC providers,
Another binary to handle, given its intended work with Forest, integration tests would need to be added, adding to the build process and CI times.

An additional idea to warn the user about this is to introduce an additional flag, such as --unsafe-rpc-binding, when the RPC address is not bound to localhost.
Potential other endpoints to proxy to minimise attack surface on Forest itself:

healthcheck endpoints,
metrics endpoint.

Another thing it could take:

rate limiting,
RPC-specific metrics (like method durations) could sit in the forest-proxy, to offload Forest daemon itself.

Other information and links

Would be interesting to include:

Load balancing, or some ability to have multiple nodes in the backend
Interop with Lotus

Another good to have feature would be backpressure so that services relying on this won't end up in some retry-timeout fiasco loop.


Bug fix to particle analyser 26-neighbourhood scan

Fixes #167
The clean-code version introduced an out-by-one bug in scanning the 3×3×3 neighbourhood, so it was only a 2×2×2 neighbourhood. Interestingly it usually worked, but some thin and poorly connected structures revealed this bug.

First reported here
https://forum.image.sc/t/unexpected-result-in-bonej-purify/23865


The development server returned response error code: 500. Cannot find module @babel/core

[x] Review the documentation: https://facebook.github.io/react-native
[x] Search for existing issues: https://github.com/facebook/react-native/issues
[x] Use the latest React Native release: https://github.com/facebook/react-native/releases

Environment
React Native Environment Info:
System:
OS: Windows 10
CPU: x64 Intel(R) Core(TM) i7-6560U CPU @ 2.20GHz
Memory: 1.66 GB / 7.85 GB
Binaries:
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version  <IP_ADDRESS> AI-173.4819257
Description
It's been one error after another, and it all has to do with @babel/core.
I've tried doing

npm add @babel/core

but it doesn't make any difference sadly.
Here is a picture of the full error:

Reproducible Demo
I've not done anything to the code at all. This is just an issue of trying to get react-native setup properly on my computer.

Can you post your dependencies and devDependencies sections of your package.json?

Can you post your dependencies and devDependencies sections of your package.json?

Yes! I'm not sure where to find the devDependencies though
  "bundleDependencies": false,
  "dependencies": {
    "chalk": "^1.1.1",
    "minimist": "^1.2.0",
    "prompt": "^0.2.14",
    "semver": "^5.0.3"
  },

That doesn't look like a react-native project package.json to me. Are you sure that's the right file? It should include "react-native": "0.57.0" at the least.

That doesn't look like a react-native project package.json to me. Are you sure that's the right file? It should include "react-native": "0.57.0" at the least.

Sorry I gave you the node_modules package.json, oddly enough, my react-native one is kind've bare. Here it is -->
{   "name": "test",   "version": "0.0.1",   "private": true,   "scripts": {     "start": "node node_modules/react-native/local-cli/cli.js start",     "test": "jest"   },   "jest": {     "preset": "react-native"   } }

This is the package.json output if I run react-native init rntemplate:
{
  "name": "rntemplate",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "react": "16.6.0-alpha.8af6728",
    "react-native": "0.57.4"
  },
  "devDependencies": {
    "babel-jest": "23.6.0",
    "jest": "23.6.0",
    "metro-react-native-babel-preset": "0.49.0",
    "react-test-renderer": "16.6.0-alpha.8af6728"
  },
  "jest": {
    "preset": "react-native"
  }
}

What command did you use to initialize the project? Some essential bits appear to be missing  from your package.json.

This is the package.json output if I run react-native init rntemplate:
{
  "name": "rntemplate",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "react": "16.6.0-alpha.8af6728",
    "react-native": "0.57.4"
  },
  "devDependencies": {
    "babel-jest": "23.6.0",
    "jest": "23.6.0",
    "metro-react-native-babel-preset": "0.49.0",
    "react-test-renderer": "16.6.0-alpha.8af6728"
  },
  "jest": {
    "preset": "react-native"
  }
}

What command did you use to initialize the project? Some essential bits appear to be missing from your package.json.

That's very strange... I used react-native init test, and I just created a new project and again got the same package.json file

Got it fixed! Had to install yarn, once I did that, for some reason it started working


(Bug #11281) Fix of undefined method `file?' for Puppet::Type::File:Class with ruby 1.9.2

This commit has a problem I'll make new request with correct fix.


Incorrect merging of locales when using Nuxt Layers

Environment

Operating System: Darwin
Node Version:     v20.9.0
Nuxt Version:     ^3.14.159
CLI Version:      3.15.0
Nitro Version:    -
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      default
Runtime Modules:  -
Build Modules:    -

Reproduction
https://github.com/cernymatej/i18n-locale-merging
Describe the bug
I've noticed that the merging strategy of the i18n configuration when using Nuxt Layers is not ideal.
Currently, if I define locales in a layer project (let's refer to it as layer/), these locales are merged into all projects extending this layer, regardless of whether the extending project specifies the locales option or not.
Consider the following setup:

project-a/ (should only have the "en" locale).
project-b/ (should have both "en" and "sk" locales).

We want to share some common translations between all projects, so we need to configure locales with file names in layer/ like so:
To share some common translations between all projects, we need to configure locales with file names in layer/ like this:
// layer/nuxt.config.ts
// ...
i18n: {
    locales: [
        {
            code: 'sk',
            language: 'sk-SK',
            name: 'Slovak',
            file: 'sk-SK.json5',
        },
        {
            code: 'en',
            language: 'en-US',
            name: 'English',
            file: 'en-US.json5',
        },
    ],

Without this configuration, the locale files will not be registered, and the projects extending layer/ would not have access to the shared translations.
Now, in project-a/, we specify only one locale:
// project-a/nuxt.config.ts
// ...
extends: ['../layer'],
i18n: {
    locales: [
        {
            code: 'en',
            language: 'en-US',
            name: 'English',
            file: 'en-US.json5',
        },
    ],
},

However, even though we explicitly specified only one locale, all locales defined in layer/ are still available in project-a/.
This behavior is undesirable because it forces all locales from the layer to be present, even when they are not needed or intended for a specific project.
The layer could be a component library, with translated aria attributes for a lot of languages. However, the projects extending this layer will usually only allow a few locales.
Additional context
No response
Logs

Hey, this sounds a lot like https://github.com/nuxt-modules/i18n/issues/3047


python310Packages.numpy: run tests correct so that actually fail the build

Description of changes
This is broken since 2016 https://github.com/nixos/nixpkgs/commit/63cf61e8d37afd46992792a927f263a1ee92c673
see https://github.com/nixos/nixpkgs/commit/63cf61e8d37afd46992792a927f263a1ee92c673
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Drafted, because we obviously cannot leave numpy in a failing state.
numpy> ERROR lib/python3.10/site-packages/numpy/core/tests/test_cython.py::test_is_timedelta64_object - subprocess.CalledProcessError: Command '['/nix/store/5a457g4zr7q11b4mz0ifc9...
numpy> ERROR lib/python3.10/site-packages/numpy/core/tests/test_cython.py::test_is_datetime64_object - subprocess.CalledProcessError: Command '['/nix/store/5a457g4zr7q11b4mz0ifc9...
numpy> ERROR lib/python3.10/site-packages/numpy/core/tests/test_cython.py::test_get_datetime64_value - subprocess.CalledProcessError: Command '['/nix/store/5a457g4zr7q11b4mz0ifc9...
numpy> ERROR lib/python3.10/site-packages/numpy/core/tests/test_cython.py::test_get_timedelta64_value - subprocess.CalledProcessError: Command '['/nix/store/5a457g4zr7q11b4mz0ifc9...
numpy> ERROR lib/python3.10/site-packages/numpy/core/tests/test_cython.py::test_get_datetime64_unit - subprocess.CalledProcessError: Command '['/nix/store/5a457g4zr7q11b4mz0ifc9...
numpy> ERROR lib/python3.10/site-packages/numpy/core/tests/test_cython.py::test_abstract_scalars - subprocess.CalledProcessError: Command '['/nix/store/5a457g4zr7q11b4mz0ifc9...

Drafted, because we obviously cannot leave numpy in a failing state.

Those tests seem to be broken/unable to run in the sandbox. I just removed the file and now python3.pkgs.nump build successful.

numpy<2.0 pins a specific setuptools version
https://github.com/numpy/numpy/blob/v1.25.0/pyproject.toml#L7
with 2.0 it will rely on meson-python.


Adds simulation of falling ball. Adjusts ship simulation.

Codecov Report

Merging #1 into master will increase coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master       #1      +/-   ##
==========================================
+ Coverage   93.08%   93.09%   +0.01%
==========================================
  Files          14       14
  Lines        1084     1086       +2
==========================================
+ Hits         1009     1011       +2
  Misses         37       37
  Partials       38       38

Impacted Files
Coverage Δ

particle/bf/bf.go
93.16% <100%> (+0.11%)
:arrow_up:

Continue to review full report at Codecov.

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


Has transaction support ?

This library have transaction support with @Transactional ?

No. The underlying driver has it's own transaction management.


Solve ATM Queue problem from round F in C

Have you read the Contribution Guidelines? If not, check CONTRIBUTING.md file first.
Yes
Description
Solve ATM Queue problem from round F in C
Checklist

[✓] I've read the contribution guidelines.
[✓] I've checked the issue list before deciding what to submit.

Related Issues
Fixes Issue #5

Please merge this whenever you get time @lostgirljourney
Please ignore previous commits, and let me know if there is any issue with merging.

there are 4 files, i expect here 2. please check once.

Please check now @lostgirljourney

Could you merge this? @lostgirljourney

@Krish03na done 🚀

Thank you @lostgirljourney
:keanu-thanks:


How to load [abi:cxx11] symbol

I am researching for rendering flutter-tizen in NUI (Tizen Natural User Interface (C#))
For this, I must use DALi(Tizen C++ UIFW) in engine(tizen renderer).
Among the DALi APIs, there is an API that returns std::string and when I want to use this API, the link error occurred in engine build.
( ex: const std::string& Dali::Toolkit::ImageUrl::GetUrl() const)
tizen_renderer_ecore_wl2.cc:(.text._ZN7flutter21TizenRendererEcoreWl28SetupEGLEv+0x2d3): undefined reference to `Dali::Toolkit::ImageUrl::GetUrl() const

I found symbol for this API with the nm command. there is a [abi:cxx11] tag.
~/dev/os/engine/src ((HEAD detached at 4660f4a)) 16:08:11 $ nm -gDC tizen_tools/sysroot/x86/usr/lib/libdali2-toolkit.so | grep ImageUrl::GetUrl
0020fade T Dali::Toolkit::ImageUrl::GetUrl[abi:cxx11]() const

I was studying this and found that the engine compile script need  __GLIBCXX_USE_CXX11_ABI = 1 //or 0 define.
(https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html)
I added it to build script and tried to build, but the problem was not resolved.
If you guys has any ideas for script modifications to use [abi:cxx11] api, please let me know.
(my tizen/Build.gn diff)
--- a/shell/platform/tizen/BUILD.gn
+++ b/shell/platform/tizen/BUILD.gn
@@ -21,6 +21,7 @@ source_set("flutter_engine") {
   lib_dirs = [ root_out_dir ]

   public_configs = [ ":embedder_rpath" ]
+  public_configs += [ "//build/config/compiler:rtti" ]

   deps = [ "//flutter/shell/platform/embedder:flutter_engine" ]
 }
@@ -52,6 +53,10 @@ config("rootstrap_include_dirs") {
     "$local_prefix/include/ecore-input-1",
     "$local_prefix/include/ecore-wayland-1",
     "$local_prefix/include/ecore-wl2-1",
+    "$local_prefix/include/dali",
+    "$local_prefix/include/dali-toolkit",
+    "$local_prefix/include/dali-adaptor",
+
     "$local_prefix/include/efl-1",
     "$local_prefix/include/efl-extension",
     "$local_prefix/include/eina-1",
@@ -144,6 +149,7 @@ template("embedder") {

     defines += invoker.defines
     defines += [ "FLUTTER_ENGINE_NO_PROTOTYPES" ]
+    defines += [ "_GLIBCXX_USE_CXX11_ABI=1"]

     configs +=
         [ "//flutter/shell/platform/common:desktop_library_implementation" ]
@@ -209,6 +215,9 @@ template("embedder") {
       ]

       libs += [
+        "dali2-core",
+        "dali2-adaptor",
+        "dali2-toolkit",
         "ecore_wl2",
         "tizen-extension-client",
       ]

compiler/build.gn
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index 9b5899e..3e5cc8e 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -631,17 +631,13 @@ if (is_win) {

   if (!use_xcode) {
     default_warning_flags += [
-      "-Wno-unused-but-set-parameter",
-      "-Wno-unused-but-set-variable",
       "-Wno-implicit-int-float-conversion",
       "-Wno-c99-designator",
       "-Wno-deprecated-copy",
       # Needed for compiling Skia with clang-12
-      "-Wno-psabi",
     ]
     if (!is_fuchsia) {
       default_warning_flags += [
-        "-Wno-non-c-typedef-for-linkage",
         "-Wno-range-loop-construct",
       ]
     }
@@ -678,6 +674,7 @@ config("chromium_code") {
     defines = [
       "__STDC_CONSTANT_MACROS",
       "__STDC_FORMAT_MACROS",
+      "_GLIBCXX_USE_CXX11_ABI=1"
     ]

     if (!using_sanitizer && (!is_linux || !is_clang)) {
@@ -718,6 +715,10 @@ config("no_chromium_code") {
 config("rtti") {
   if (is_win) {
     cflags_cc = [ "/GR" ]
+  } else {
+    rtti_flags = [ "-frtti" ]
+    cflags_cc = rtti_flags
+    cflags_objcc = rtti_flags
   }
 }
 config("no_rtti") {

tizen-tools
diff --git a/sysroot/build-rootfs.py b/sysroot/build-rootfs.py
index 06d6768..b11b2b1 100755
--- a/sysroot/build-rootfs.py
+++ b/sysroot/build-rootfs.py
@@ -62,6 +62,12 @@ unifiedPackages = [
     'edje-devel',
     'eet',
     'eet-devel',
+    'dali2',
+    'dali2-devel',
+    'dali2-adaptor',
+    'dali2-adaptor-devel',
+    'dali2-toolkit',
+    'dali2-toolkit-devel',
     'efl-devel',
     'efl-extension',
     'efl-extension-devel',
@@ -132,11 +138,11 @@ parser.add_argument(
 parser.add_argument(
     '-b', '--base-repo', metavar='URL', type=str,
     help='url to the base packages repository',
-    default='http://download.tizen.org/snapshots/tizen/5.5-base/latest/repos/standard/packages')
+    default='http://download.tizen.org/snapshots/tizen/6.5-base/latest/repos/standard/packages')
 parser.add_argument(
     '-u', '--unified-repo', metavar='URL', type=str,
     help='url to the unified packages repository',
-    default='http://download.tizen.org/snapshots/tizen/5.5-unified/latest/repos/standard/packages')
+    default='http://download.tizen.org/snapshots/tizen/6.5-unified/latest/repos/standard/packages')
 args = parser.parse_args()

 if not args.output:

Sample Dali code

   #include "dali-toolkit/public-api/image-loader/image-url.h"
   #include "dali-toolkit/dali-toolkit.h"
   #include "dali/devel-api/adaptor-framework/native-image-source-queue.h"
   #include "tbm_surface.h"
   #include "tbm_surface_queue.h"
    ...
    tbm_surface_queue_h mTbmQueue = nullptr;
    Dali::NativeImageSourceQueuePtr mNativeImageQueue = nullptr;
    Dali::Texture mNativeTexture;
    ...
    mTbmQueue = tbm_surface_queue_create(3 , 500, 500, TBM_FORMAT_ARGB8888, 0);
    mNativeImageQueue = Dali::NativeImageSourceQueue::New(mTbmQueue);
    mNativeTexture = Dali::Texture::New(*mNativeImageQueue);
    Dali::Toolkit::ImageUrl imageUrl = Dali::Toolkit::ImageUrl::New(mNativeTexture);
    std::string url = imageUrl.GetUrl();  //<< Error

    FT_LOG(Error) << "CJS URL : " << url;

I couldn't find a way to make this work without fixing the dependent libraries. I think libdali2 must be recompiled with correct options.

Both dali and flutter-tizen use -std=c++17 and use __GLIBCXX_USE_CXX11_ABI as the default value. so I couldn't understand this issue clearly.
After looking at it for a while, I think it's because custom libcxx is used when building engine.
so, it seems that different from  used in Tizen is being referenced at build time.
see here, you can check the detailed build configuration.
use_flutter_cxx = is_clang && (is_linux || is_android || is_mac)

if (use_flutter_cxx) {
  _native_compiler_configs += [
    "//third_party/libcxxabi:libcxxabi_config",
    "//third_party/libcxx:libcxx_config",
  ]
}

So... It's my guess, but if any C++ library interface provided by Tizen includes a libcxx's interface, it looks like it won't be available In our current build configuration at all.

use_flutter_cxx = is_clang && (is_linux || is_android || is_mac)

I wonder if this is the result of our intention.
@flutter-tizen/maintainers  Does anyone know?

@bbrto21 libc++ is statically linked into the engine and embedder to avoid any subtle compatibility issue. For example, the PR https://github.com/flutter-tizen/engine/pull/205 already assumes this fact.

@JSUYA
I modified the custom configuration of the build root a bit, and I succeeded in linking the Dali api.
also, I succeeded in creating the egl surface using Dali::NativeImageSourceQueue as you guided and I set the imageUrl to imageView on FlutterNUIApplcation I made, but It doesn't seem to work.
Could you explain your idea in more detail? I don't have any experience with Dali.

I want to use TizenFX API Level 9. how should I change the project configuration?
I tried several things, but it seems that API Level 4 is still selected.

Do you mean a .NET app?

Set the api-version attribute of the ui-application element in tizen-manifest.xml to 9.
Change the target framework moniker to tizen60 in Runner.csproj.

Set the api-version attribute of the ui-application element in tizen-manifest.xml to 9.
Change the target framework moniker to tizen90 in Runner.csproj

I tried following the instructions above, but it didn't work.
@WonyoungChoi Could you possibly help on this?

@WonyoungChoi Could you possibly help on this?

I got the answer from him that the documentation is wrong. the API I was trying to use was not included in the latest release of TizenFX API Level 9..

@JSUYA
Here is a buildable changes with dali2 dependency, before using this patch, you must apply for_dali.patch in this changes  to the build root. and you must change the FlutterApplication base class from CoreUIApplication to NUIApplication
This change is workaround and some headers had to be added to the existing implementation because libcxx implementations are different

related issue https://github.com/flutter-tizen/flutter-tizen/issues/351


Can mmseqs easy-search ouput all query-target pairs?

Dear all,
I want to get all query-target pairs' identity, So can mmseqs easy-search ouput all query-target pairs without filtering?
If can, can you provide the related args for me.
Thanks!

--prefilter-mode 2 aligns everything. However, that can be very slow and use a lot of storage.

You might also want to disable the E-value filter (-e inf).


[Bug]: When I listen to music from a music app and start the player, the music stops

Version
<EMAIL_ADDRESS>"^1.0.2",
Environment that reproduces the issue
When I listen to music from a music app (e.g. Radio, Apple Music, YouTube Music) and start the player, the music stops. When I start the music player is paused. When I start the player, the music stops playing.
Is it reproducible in the example application?
Yes
Reproduction steps

launch radio / music streaming app
2 Start listening to any song
launch video on the mobile app
while the music is playing, the video is paused
when you start the video the music pauses

Expected result

when the music plays, the video plays
when you start the video the music is heard

Actual result

while the music is playing, the video is paused
when you start the video the music pauses

Additional context
Tested on iphone 15 pro, apple radio, youtube music and other music streaming apps
Relevant logs output
No response

hi @martwozniak
Unfortunately, we won't be able to solve this problem any time soon. We'll only be able to do so when the react native player will use our native mobile players, which is planned for the coming months.
Sorry for the inconvenience


Fix bug detect ArrayBuffer is incorrectly

ArrayBuffer.isView does not work for ArrayBuffer
it will return false it only returns true for TypedArray or DataView (like Int32Arrray)

ref: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView#using_isview

@yanghoxom Can you add some test cases so that the problem can be better verified

@zurmokeeper I updated some test cases to use ArrayBuffer to test. It ok for you?

@yanghoxom Thank you very much. I'll take a look.

@zurmokeeper  sorry for bothering you, How is it going? I am still waiting for this fix

@yanghoxom I'm sorry, I've been really busy lately. Can you provide me with your excel please? I want to write one more test case with your excel and then it will work fine under your pr, I have been hesitating before, also I am worried that the previous test case is not safe enough and I am afraid that it will affect the previous version, please forgive me.

@zurmokeeper Thank you so much, this is my file
the password is 123456
pass.xlsx

@yanghoxom
I tried this code to decrypt your excel, or are you getting an error reading this encrypted excel on the front end and can't decrypt it?
const officeCrypto = require('officecrypto-tool');
const fs = require('fs').promises;

//decrypt a file with a password
(async ()=>{
        const input = await fs.readFile(`pass.xlsx`);
        const output = await officeCrypto.decrypt(input, {password: '123456'});
        await fs.writeFile(`out_success.xlsx`, output);
})();

@zurmokeeper Yes, I got an error on the front end
on the front end, the data which I get from the input is ArrayBuffer
it is not about the decrypt logic, ArrayBuffer.isView(input) return false if input is ArrayBuffer

@yanghoxom Can you provide the key code for your front end? Read the files and convert those, or provide the next minimal reproduction example, because here I have encountered someone else with the same query before, also with the front-end code, and at that time it was the front-end code that wasn't written correctly, and there were some key codes that were faulty.

@zurmokeeper https://stackblitz-starters-cvzezw.stackblitz.io
this is a minimal reproduction example, it throw an error immediately when you choose a file

@zurmokeeper
https://stackblitz-starters-cvzezw.stackblitz.io
thank you, this is a minimal reproduction example.

@yanghoxom Can't you see the code on this one?

@zurmokeeper i'm sorry, this one https://stackblitz.com/edit/stackblitz-starters-cvzezw?file=src%2FApp.js

@yanghoxom

If you're in a hurry, you can use this as a temporary treatment first. I tried it and it works fine. Follow-up in order to be compatible with the previous someone has been used in this way, pr I may change, change to the following:
if(ArrayBuffer.isView(input) || data instanceof ArrayBuffer)
This way ArrayBuffer or TypedArray or DataView can be used normally.

@zurmokeeper thank you, I will try it

@yanghoxom The new version has been released, just update the version, thanks again!


Add emhash results

For your collection. :)

Thanks! Somehow I didn't get a notification for this PR. :confused:


Tutorial: Let inputs and textareas follow theme coloring

Tiny css change in the tutorial (awesome tutorial btw!): fixes bad contrast for input text in dark mode at, e.g., /numeric-inputs
Feel free to close if you prefer to fix this in another way, thought I'd just put this out there.
Current:

With this PR:

thank you! i missed this because it works differently in firefox for some reason


dict: fix datadir path

I'm not actually sure what this does, but it certainly seems like it was a typo, because /run/current-systems isn't a thing?

@GrahamcOfBorg build dict


Add missing return to _proxy on SSLSocket

See the issue at https://github.com/Lukasa/hyper/issues/250

Thanks so much! :sparkles: :cake: :sparkles:


[Feat]: Redesign Profile Page to Dashboard Layout

Feature Description
Redesign Profile Page to Dashboard Layout
Issue Overview
The current profile page design is cluttered with all information being displayed in a single view. To improve user experience, navigation, and access to different sections, this issue proposes a complete redesign of the Profile Page into a dashboard layout. The new layout will include separate tabs or sections for easy access to personal information, transactions, wallet details, tickets, and account settings.
Proposed Redesign
Dashboard Overview:
Implement a sidebar navigation menu that includes links to:

Profile
Tickets
Wallet
Transactions
Logout
Display basic user information (profile picture, name, and location) in the sidebar.

Profile Section:

Separate sections for personal information and security details.
Implement an "Edit" button to enable modification of profile information such as name, email, and phone number.
Include a form for changing the account password under the security section.

Transactions Section:

Display all transactions in a table format, showing payment details, amount, and date.
Implement a filter option to allow users to search or sort transactions.

Wallet Section:

Display the current wallet balance.
Provide options to add funds or view wallet history.

Tickets Section:

Display booked tickets with event details and seat numbers.
Implement a button for downloading or viewing ticket details.

Task List
Set up Sidebar Navigation:

[ ] Create a sidebar component with navigation links to all the relevant sections.
[ ] Highlight the active section based on the user's navigation.

Implement Profile Section:

[ ] Separate the personal information and security details.
[ ] Add input fields for profile information and a button to submit changes.
[ ] Create a separate area for updating the password.

Create Transactions Section:

[ ] Set up a table component to display transaction history.
[ ] Implement pagination and sorting features.
[ ] Create a filter bar for searching transactions based on date, amount, or type.

Build Wallet Section:

[ ] Display wallet balance and recent wallet-related activities.
[ ] Create a form for adding funds.

Create Tickets Section:

[ ] Display user tickets in a card format with seat numbers and event details.
[ ] Implement a "Download Ticket" button for each ticket.

@maniyaom I would like to work on this issue and redesign the profile page. Please assign it to me if possible.
Initial Design view

Proposed Design

Transactions Section

Tickets Section

Profile Section

By submitting this issue, you agree to

[X] I agree to follow this project's Code of Conduct
[X] I’ve read all the issues in the issue section, and this feature has not been proposed yet.

Other Information

[X] I'm a GSSoC '24 Extended contributor
[X] I'm a Hacktoberfest '24 contributor
[X] I am willing to work on this feature (optional)

@Titus210 have you already created this design and is it responsive?

@maniyaom , Yes i have done the design, that is the desktop view design , currently working on mobile view design. It is responsive. and will be implementing it as a responsive design.
Figma design

@Titus210 Okay looks good, will you able to implement it in tailwind CSS?

@maniyaom  Yes...everything will be done in react tailwind css, incase i get stuck..will seek out for help. Thanks

@Titus210 any update to this?

@maniyaom still working on the project. I unfortunately ran in some issues while trying to install the packages in the node modules that really took alot of my time *still did not manage to install this repo on my system. example of issue but I decided to create a new project to hold the initial implementation the code. I'm currently finalizing the dashbord implementation then reinsert the sections in our initial repo. Will update the repo by 4.00 am EAT.


test "decorator" throw "The 'decorators' plugin requires a 'decoratorsBeforeExport' option"

hello everyone, in the first thank of your work!
when i run yarn test
then throw below error
The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, you should use the 'decorators-legacy' plugin instead of 'decorators'.
  at validatePlugins (node_modules/@babel/parser/lib/index.js:10472:13)
  at getParser (node_modules/@babel/parser/lib/index.js:10529:5)
  at parse (node_modules/@babel/parser/lib/index.js:10513:12)

there is my config-overrides.js
const rewireMobX = require('react-app-rewire-mobx');
const rewireSass = require('react-app-rewire-scss');

module.exports = function override(config, env) {
  config = rewireMobX(config, env);
  config = rewireSass(config, env);
  return config;
}

const { override, addDecoratorsLegacy, disableEsLint } = require("customize-cra");

module.exports = override(
  addDecoratorsLegacy(),
  disableEsLint()
);

and there is my package.json
{
  "name": "react-blog",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "mobx": "^5.5.2",
    "mobx-react": "^5.3.5",
    "react": "^16.6.0",
    "react-app-rewire-mobx": "^1.0.9",
    "react-dom": "^16.6.0",
    "react-router-dom": "^4.3.1",
    "react-scripts": "2.0.5"
  },
  "scripts": {
    "start": "react-app-rewired start",
    "build": "react-app-rewired build",
    "test": "react-app-rewired test --env=jsdom"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": [
    ">0.2%",
    "not dead",
    "not ie <= 11",
    "not op_mini all"
  ],
  "devDependencies": {
    "@babel/plugin-proposal-class-properties": "^7.1.0",
    "@babel/plugin-proposal-decorators": "^7.1.2",
    "customize-cra": "^0.1.1",
    "react-app-rewire-scss": "^1.0.2",
    "react-app-rewired": "^1.6.2"
  }
}

at last this error only throw in run yarn test(when run yarn start will be OK)

Hm not sure. Your first code snippet has two assignments to module.exports = . That seems wrong, but I'm not sure if that's your problem.
Otherwise, really not sure what the problem is - sorry!

Actually - this code
const rewireMobX = require('react-app-rewire-mobx');
const rewireSass = require('react-app-rewire-scss');

module.exports = function override(config, env) {
  config = rewireMobX(config, env);
  config = rewireSass(config, env);
  return config;
}

seems like it's for CRA 1 - I'd recommend just getting rid of it.

@arackaf  thank you a lot,
i remove CRA 1 config
there is my config-overrides.js
`const { override, addDecoratorsLegacy, disableEsLint } = require("customize-cra");
module.exports = override(
addDecoratorsLegacy(),
disableEsLint()
);
 The same error as above(yarn test` throw a error)
I am new to react,  i am not suer about is the configuration problem, or other
Can you share your 'config-overrides.js' ?


Understanding Which ratelimit Package to Use

Description:  Currently, 'internal/xds/translator/ratelimit.go' utilizes 'github.com/envoyproxy/go-control-plane/ratelimit/config/ratelimit/v3'. 'ratelimit.RateLimitConfig' does not have the ValidateAll() function, as a result, we cannot validate the resource. We need to understand why we don't use 'github.com/envoyproxy/go-control-plane/envoy/config/ratelimit/v3'.
[optional Relevant Links:] You may find more context at https://github.com/envoyproxy/gateway/pull/1662#discussion_r1280927756

looks like the API lives here https://github.com/envoyproxy/ratelimit/blob/main/api/ratelimit/config/ratelimit/v3/rls_conf.proto and its generated go files live here
https://github.com/envoyproxy/go-control-plane/blob/main/ratelimit/config/ratelimit/v3/rls_conf.pb.go
so the proto API will need to be sprinkled with tags from https://github.com/bufbuild/protoc-gen-validate and then we'd need to run this https://github.com/bufbuild/protoc-gen-validate#go
what I can't find is, where is the buf / protoc-gen-validate cmd supposed to be run ?
any idea @phlax @mattklein123 @renuka-fernando ?

looks like the API lives here https://github.com/envoyproxy/ratelimit/blob/main/api/ratelimit/config/ratelimit/v3/rls_conf.proto and its generated go files live here https://github.com/envoyproxy/go-control-plane/blob/main/ratelimit/config/ratelimit/v3/rls_conf.pb.go
so the proto API will need to be sprinkled with tags from https://github.com/bufbuild/protoc-gen-validate and then we'd need to run this https://github.com/bufbuild/protoc-gen-validate#go
what I can't find is, where is the buf / protoc-gen-validate cmd supposed to be run ? any idea @phlax @mattklein123 @renuka-fernando ?

@phlax @mattklein123 @renuka-fernando
I would like to follow up. Could you please help with the questions?

looks like the API lives here https://github.com/envoyproxy/ratelimit/blob/main/api/ratelimit/config/ratelimit/v3/rls_conf.proto and its generated go files live here https://github.com/envoyproxy/go-control-plane/blob/main/ratelimit/config/ratelimit/v3/rls_conf.pb.go
so the proto API will need to be sprinkled with tags from https://github.com/bufbuild/protoc-gen-validate and then we'd need to run this https://github.com/bufbuild/protoc-gen-validate#go
what I can't find is, where is the buf / protoc-gen-validate cmd supposed to be run ? any idea @phlax @mattklein123 @renuka-fernando ?

We have not automated generating pb files. I've created an issue [1] for that but couldn't get it done.
[1] https://github.com/envoyproxy/go-control-plane/issues/646

Description: Currently, 'internal/xds/translator/ratelimit.go' utilizes 'github.com/envoyproxy/go-control-plane/ratelimit/config/ratelimit/v3'. 'ratelimit.RateLimitConfig' does not have the ValidateAll() function, as a result, we cannot validate the resource. We need to understand why we don't use 'github.com/envoyproxy/go-control-plane/envoy/config/ratelimit/v3'.
[optional Relevant Links:] You may find more context at #1662 (comment)

We can't use 'github.com/envoyproxy/go-control-plane/envoy/config/ratelimit/v3'. This is the API for Envoy and RateLimit Service communication.
'github.com/envoyproxy/go-control-plane/ratelimit/config/ratelimit/v3' is for RateLimit Service and RateLimit xDS service communication.

looks like the API lives here https://github.com/envoyproxy/ratelimit/blob/main/api/ratelimit/config/ratelimit/v3/rls_conf.proto and its generated go files live here https://github.com/envoyproxy/go-control-plane/blob/main/ratelimit/config/ratelimit/v3/rls_conf.pb.go
so the proto API will need to be sprinkled with tags from https://github.com/bufbuild/protoc-gen-validate and then we'd need to run this https://github.com/bufbuild/protoc-gen-validate#go
what I can't find is, where is the buf / protoc-gen-validate cmd supposed to be run ? any idea @phlax @mattklein123 @renuka-fernando ?

We have not automated generating pb files. I've created an issue [1] for that but couldn't get it done.
[1] envoyproxy/go-control-plane#646

@renuka-fernando
Thanks for the information.
By any chance you could re-open https://github.com/envoyproxy/go-control-plane/issues/646?
Thanks.

It looks like I don't have the necessary permissions to reopen the issue https://github.com/envoyproxy/go-control-plane/issues/646.
cc: @phlax


[Profile] Update swift after LLVM API update

Update swift after LLVM API update

Related to rdar://102581439

Please test with following PR:
https://github.com/apple/llvm-project/pull/5709
@swift-ci please smoke test

This is causing build failures. Please see rdar://102938752 for details.


Release azure-cli-role 0.1.1b2

Reviewers, please verify the following for this PR:

[ ] The PR title has format Release <component-name> <version>.
[ ] setup.py has been modified with the same version as in the PR title.
[ ] HISTORY.rst has been modified with appropriate release notes.
[ ] If releasing azure-cli or azure-cli-core, __version__ defined in __init__.py should also be modified to match.

Release of 'azure-cli-role' with version '0.1.1b2' successful. View at https://pypi.python.org/pypi/azure-cli-role/0.1.1b2.

GitHub release created. https://github.com/Azure/azure-cli/releases.


Activate CONFIG_PINCTRL_BAYTRAIL kernel config

[shaunmulligan] This issue has attached support thread https://jel.ly.fish/#/support-thread~569d18b1-1d71-439e-8d8f-1e3ab7a302f5

Fixed by https://github.com/balena-os/balena-intel/pull/235


[QA] CLAUDIA-4315 Range metadatas and UDP type support for Sec. Group rules

Reviewers
@hmunfru @flopezag
Description
New test cases for CLAUDIA-4314: UDP Ports and Ranges in Sec. Groups.
Refactor in Terrain logic and product names.
Fix bug when product is created in SDC with attributes.
Testing
Locally.

LGTM