Request in NSE Composition example takes up to 15 seconds

Issue
Request in NSE Composition example takes up to 15 seconds (even in refresh case).
Needed for https://github.com/networkservicemesh/deployments-k8s/issues/2009.
Analysis
Added extra logs to capture more detailed information about time spent in different chain elements.
result.zip
Captured results with existing CPU limits:

Local NSMgr:TOTAL          AVERAGE        NAME

36.162s        97.735135ms    k/pkg/networkservice/common/discover/discoverCandidatesServer.Request()
34.672s        93.708108ms    k/pkg/networkservice/common/authorize/authorizeServer.Request()
14.868s        40.183783ms    k/pkg/networkservice/common/connect/connectServer.Request()
10.248s        27.697297ms    k/pkg/networkservice/utils/metadata/metadataServer.Request()
...
3.716s         10.043243ms    k/pkg/networkservice/common/refresh/refreshClient.Request()
3.44s          9.297297ms     k/pkg/networkservice/common/begin/beginClient.Request()
2.542s         6.87027ms      k/pkg/networkservice/common/updatepath/updatePathClient.Request()

Remote NSMgr:TOTAL          AVERAGE        NAME

11.468s        80.760563ms    k/pkg/networkservice/common/authorize/authorizeServer.Request()
7.931s         55.852112ms    k/pkg/networkservice/common/connect/connectServer.Request()
4.297s         30.260563ms    k/pkg/networkservice/common/timeout/timeoutServer.Request()
3.429s         24.147887ms    k/pkg/networkservice/utils/metadata/metadataServer.Request()
...
1.515s         10.669014ms    k/pkg/networkservice/common/mechanisms/recvfd/recvFDServer.Request()
1.385s         9.753521ms     k/pkg/networkservice/common/discover/discoverCandidatesServer.Request()
1.331s         9.373239ms     k/pkg/networkservice/common/heal/healServer.Request()

ForwarderTOTAL          AVERAGE        NAME

6.877s         37.172972ms    k/pkg/networkservice/common/connect/connectServer.Request()
6.689s         36.156756ms    k/pkg/networkservice/common/authorize/authorizeServer.Request()
2.482s         13.416216ms    p/pkg/networkservice/tag/tagClient.Request()
2.061s         11.14054ms     p/pkg/networkservice/connectioncontext/mtu/mtuServer.Request()
...
124ms          3.351351ms     p/pkg/networkservice/mechanisms/vxlan/vxlanServer.Request()
99ms           2.675675ms     k/pkg/networkservice/common/mechanisms/vxlan/vni/vniServer.Request()
17ms           459.459µs      p/pkg/networkservice/mechanisms/vxlan/mtu/mtuServer.Request()

Without CPU limits:

Local NSMgr:TOTAL          AVERAGE        NAME

11.836s        12.202061ms    k/pkg/networkservice/common/discover/discoverCandidatesServer.Request()
8.688s         8.956701ms     k/pkg/networkservice/common/authorize/authorizeServer.Request()
5.705s         5.881443ms     k/pkg/networkservice/common/connect/connectServer.Request()
3.13s          3.226804ms     k/pkg/networkservice/common/mechanisms/sendfd/sendFDServer.Request()
...
1.212s         1.249484ms     k/pkg/networkservice/common/timeout/timeoutServer.Request()
1.207s         1.244329ms     k/pkg/networkservice/core/adapters/clientToServer.Request()
1.121s         1.15567ms      k/pkg/networkservice/common/updatepath/updatePathClient.Request()

Remote NSMgr:TOTAL          AVERAGE        NAME

2.58s          9.214285ms     k/pkg/networkservice/common/authorize/authorizeServer.Request()
1.764s         6.3ms          k/pkg/networkservice/common/connect/connectServer.Request()
935ms          3.339285ms     k/pkg/networkservice/common/mechanisms/sendfd/sendFDServer.Request()
722ms          2.578571ms     k/pkg/networkservice/common/updatetoken/updateTokenServer.Request()
...
364ms          1.3ms          k/pkg/networkservice/core/adapters/clientToServer.Request()
357ms          1.275ms        k/pkg/networkservice/common/interpose/interposeServer.Request()
343ms          1.225ms        k/pkg/networkservice/common/roundrobin/selectEndpointServer.Request()

Forwarder:TOTAL          AVERAGE        NAME

12.513s        31.678481ms    k/pkg/networkservice/common/authorize/authorizeServer.Request()
6.202s         15.701265ms    k/pkg/networkservice/common/connect/connectServer.Request()
4.847s         12.270886ms    p/pkg/networkservice/tag/tagClient.Request()
4.655s         11.78481ms     p/pkg/networkservice/up/upClient.Request()
...
974ms          2.465822ms     k/pkg/networkservice/common/mechanisms/mechanismsServer.Request()
292ms          3.696202ms     p/pkg/networkservice/mechanisms/vxlan/vxlanServer.Request()
187ms          2.367088ms     p/pkg/networkservice/mechanisms/vxlan/mtu/mtuServer.Request()
39ms           493.67µs       k/pkg/networkservice/common/mechanisms/vxlan/vni/vniServer.Request()

Results

Removing CPU limits reduces Request time to 2-3 seconds.
We have few chain elements taking most time:

authorize - takes huge time because of long chain (26 path segments) needs to be validated.
connect - performs dial to the remote side on each Request.
discover - passthrough NSE cleans up Endpoint name on each Request so Registry is always queried.

Possible solutions

Tune CPU limits for applications.
Investigate if we can speed up authorize.
Rework NSMgr query cache to support multiple endpoint queries.
Rework passthrough NSEs to store Endpoint name between Requests.

@denis-tingaikin @edwarnicke
cc

@Bolodya1997 Did you test it on packet? Can we also test it on kind?

@Bolodya1997 Any idea why the authorize is taking so much longer for the Forwarder:
12.513s        31.678481ms    k/pkg/networkservice/common/authorize/authorizeServer.Request()

@Bolodya1997 Any idea why the authorize is taking so much longer for the Forwarder:
12.513s        31.678481ms    k/pkg/networkservice/common/authorize/authorizeServer.Request()

It is related to the length of the path, so performing N-th authorize check during the Request is longer than first or second authorize check. But I have no idea why it is so different between the NSMgr and the Forwarder, it probably should be further investigated in a separate issue.

@Bolodya1997 Did you test it on packet? Can we also test it on kind?

Yes, it can be compared:

refresh Request CPU limited
refresh Request CPU unlimited

packet
14s-16s
4s-5s

kind
9s-11s
5s-6s


C bindings

#3
I sketched out a small test in tests/c. cd into the folder and run make test_bindings.
Some comments:

The data structures are allocated in Rust, but can be modified from C (all but arrays)
Right now, the library code can still be used without unsafe from Rust for the expense that some data structures need to be converted before sending them off to C. A bit more performance and less duplication and  could be gained by directly using C-compatible structures (no Vec), but I doubt it's worth trading for safety
Put header files under version control? Right now they can be inferred completely using cbindgen
No real structure yet where to put the bindings and tests
No integration with the main.rs script yet
Adding the [lib] key broke the tests, I didn't figure out yet how to build the library as Rust module and C library at the same time

This is really cool! I have some high level comments before going into details.

C Api should have some common prefix. I suggest stretch_ e.g. stretch_new_style() and stretch_compute().
I really don't like how enums with values exposed to C with the tag and _0 fields. Is it possible to alter this codegen? ideally those would be translated to a struct Dimension { enum Unit unit; float val; }.
Why is StyleNode & Node needed as separate concepts? Seems like the only reason is the type of the children field. Can we solve this in a nicer way? One idea would be to only expose methods to get/set children instead of exposing the raw data type (Vec) in case that is not compatible with C. Same with LayoutNode.

The problem is that there are no guarantees how big Vec or Box are. The children could be a raw pointer *Vec<Node>, but it would require some unsafe code in Rust when casting back with Box::from_raw. Are you fine with this tradeoff, so that the datastructures can be shared?
The header file could be versioned and manually adjusted, to change children to void* and also the other modifications you proposed. I don't currently see how this could be configured in cbindgen

I'm new to Rust so could you sketch out how that would look? My proposal was to not expose Vec at all but instead just expose methods on node which allows C to mutate and access children without direct access to the vec.

I got something to work that only needs unsafe code when interfacing with C, but shares the same data structure. More methods to manipulate the array can be added.
There's an assumption that size of Box<Vec<Node>> == size of void*. It seems to be the case, according to mem::size_of, but I'm not sure if this is implementation dependent.

I'm new to Rust

Haha, so am I. So please take anything I say here with a grain of salt

@PabloSichert Sorry for the late reply, took a long needed winter break. Looking at this now I am re-considering having this as part of the core repo for now. I was starting to integrate this library into our main libraries and quickly noticed I wanted to change quite a few things about the API so I'm going to go ahead and mark this library as experimental and hold off on merging anything that would make changing the API harder until we feel it is more stable.
Really appreciate the work and I hope you'll come back and contribute these bindings once the API is stabilized a bit (hopefully soon!).

Totally! No explicit restrictions here just the more code that relies on the current API the harder it will be to change (and change it will). We will soon be posting more about how we are using this and future plans. Thanks for understanding!

Any planned progress on the C-API? I don't have any Rust experience... so no idea how interfacing Rust and C works.
IMO a C-API should be top-priority because not everyone is doing Web stuff...


Add missing field index for projects

How to categorize this PR?

/kind regression
What this PR does / why we need it:
Add missing field index for projects (spec.namespace) in the controller-runtime cache in gcm that is required since https://github.com/gardener/gardener/pull/3774 (if the CachedRuntimeClients feature gate is activated) here https://github.com/gardener/gardener/blob/453b70ed9a40c0eb72694452d55d54b9d074ea29/pkg/controllermanager/controller/project/rolebinding_control.go#L50
Which issue(s) this PR fixes:
time="2021-05-03T07:41:30+02:00" level=error msg="Couldn't get list keys for object &RoleBinding{ObjectMeta:{gardener.cloud:system:project-viewer  garden  fd50db07-848b-4517-a87b-599df18d2840 3039805 0 2021-04-01 09:54:35 +0200 CEST <nil> <nil> map[] map[] [{core.gardener.cloud/v1beta1 Project garden f3addf0d-17b5-438e-a6a7-5b7ab94fca1f 0xc001714d8e 0xc001714d8f}] []  [{gardener_controller_manager Update rbac.authorization.k8s.io/v1 2021-04-01 09:54:35 +0200 CEST FieldsV1 {\"f:metadata\":{\"f:ownerReferences\":{\".\":{},\"k:{\\\"uid\\\":\\\"f3addf0d-17b5-438e-a6a7-5b7ab94fca1f\\\"}\":{\".\":{},\"f:apiVersion\":{},\"f:blockOwnerDeletion\":{},\"f:controller\":{},\"f:kind\":{},\"f:name\":{},\"f:uid\":{}}}},\"f:roleRef\":{\"f:apiGroup\":{},\"f:kind\":{},\"f:name\":{}}}}]},Subjects:[]Subject{},RoleRef:RoleRef{APIGroup:rbac.authorization.k8s.io,Kind:ClusterRole,Name:gardener.cloud:system:project-viewer,},}: Index with name field:spec.namespace does not exist"

Special notes for your reviewer:
We will need to add any new field indexes we use in our controllers for reading from the c-r cache to the newly added func (and similarly in gardenlet).
Release note:

An issue has been fixed which could cause Projects not to be reconciled immediately when corresponding `RoleBinding`s were changed.

Updated the PR to also fix the failing project controller test on master (e.g. https://concourse.ci.gardener.cloud/teams/gardener/pipelines/gardener-master/jobs/master-head-update-job/builds/202#L608091fc:539).
It must have been caused by merging https://github.com/gardener/gardener/pull/3979 and https://github.com/gardener/gardener/pull/3956 together somehow.
/cc @BeckerMax


QC: Prep for gsm.app 2.0 release.

QC Details

[x] Ensure all unit tests are passing.
[x] Update NEWS.md with a summary of the revisions/additions in the release. Keep any information from previous releases to maintain traceability through versions.
[x] Review README.md and relevant vignettes to make sure updates are accurately described.
[x] Run devtools::spell_check() and resolve findings.
[x] Build site using pkgdown::build_site(). Check that all examples are displayed correctly and that all new functions occur on the Reference page.
[ ] Run styler using the script from the style guide above (or by running gutil::style_code()) and commit any updates.
[x] Confirm that the version in the DESCRIPTION file is up to date.
[x] Open a clean R session. Run devtools::install() and then devtools::check() locally and confirm that there are no issues/conflicts.

Wait for #261 before running styler and closing this out.


Added viewLesson page and enhanced the community and lesson componets in frontend and backend

This commit includes

[x] View page added to Lesson Community page
[x] List only unarcheived courses.
[x] List only approved and unarchieved lessons.
[x] Only get sanitized and 250chars data for content.
[ ] Delete new content from server.

@Gagan-Crownstack Fix the linting issues


More privacy concerning youtube links and fixing link check warnings for youtube playlist links

Fixes https://github.com/plone/volto/issues/4203
To minimize the use of cookies and protect user privacy, leverage the "no-cookie" domain provided by YouTube. Instead of using the standard www.youtube.com domain, utilize www.youtube-nocookie.com in the embed URL. This prevents YouTube from setting cookies on the user's device.
Add the privacy_mode=1 parameter to the embed URL. This parameter further enhances privacy by ensuring YouTube doesn't store user information or track their activity while watching the embedded video.
https://usercode.de/blog/how-to-embed-youtube-videos-with-maximum-privacy-gdpr-compliant

📚 Documentation preview 📚: https://volto--6494.org.readthedocs.build/

All green. Thank you so much @ksuess!


--tmpfs overwrites existing permissions on mountpoints

Using --tmpfs /tmp seems to overwrite the permissions of an existing mount directory.
We're getting this permission set on a container when running:
drwxr-xr-x   2 root root   60 Jun 27 19:17 tmp
The container template has:
drwxrwxrwt  2 root root   60 Jun 27 18:41 tmp

It's not clear what the issue is.

if you don't apply the --tmpfs parameter then there is no mount and the directory permissions are unchanged
if you apply the parameter with no mount options  then tmpfs is mounted with default permissions

$ docker run --rm  --runtime runq --tmpfs /tmp alpine stat -c'%n %A' /tmp
/tmp drwxrwxrwt

you can always specify mount options as described in the docker documentation: E.g.

$ docker run --rm  --runtime runq --tmpfs /tmp:mode=0700  alpine stat -c'%n %A' /tmp
/tmp drwx------

Tmpfs in runc and runq should not behave differently.
Can you please provide at least a simple example to reproduce the issue with the current release of runq?
Thanks.

I verified it with the latest release, and it does indeed work correctly.
I'll be closing the issue.
Thanks for the help!


Disable Shift Notifications

Is there a way to add the option of having ShiftNotifcations disabled? Ie i would rather not see my tooltip fill up half the screen of all the boss logs.

Done.

Thank you!! @ForsakenNGS


aws version

not sure but do you guys have an aws equivalent version of this?

@marsupialtail Unfortunately we don't have an exact copy. However we are working on a different project for AWS that uses FeatureForm and Redis and I will post a link here when it's done.


[WIP] Bedrock Agents Runnable

Description
This PR introduces a new Bedrock Agents Runnable that allows using Bedrock Agents with return of control functions as tools.
Usage
Define tools
from langchain_core.tools import tool

@tool("AssetDetail::getAssetValue")
def getAssetValue(asset_holder_id: str = " ") -> str:
    """Get the asset value for an owner id"""
    return f"The total asset value for {asset_holder_id} is 100K"

@tool
def getMortgageRate(asset_holder_id: str = " ", asset_value: str = " ") -> str:
    """Get the mortgage rate based on asset value"""
    return (
        f"The mortgage rate for {asset_holder_id} "
        f"with asset value of {asset_value} is 8.87%"
    )

Create the agent and use with AgentExecutor
from langchain.agents import AgentExecutor

agent = BedrockAgentsRunnable.create_agent(
    {"agent_id": "UKYYJIV1O1", "enable_trace": True}
)
tools = [getAssetValue, getMortgageRate]
agent_executor = AgentExecutor(agent=agent, tools=tools)  # type: ignore[arg-type]

output = agent_executor.invoke(
    {"input": "what is my mortgage rate for id AVC-1234"}
)

assert output["output"] == "The mortgage rate for id AVC-1234 is 8.87%"

Notes
This change follows a strategy similar to the OpenAIAssistantRunnable to create an agent. However, it's still missing the callback related code that should be plugged in before merging. This code also assumes that the agent and the corresponding actions have been setup and prepared to call before calling; this setup could be automated in the agent creation or validation function, but missing here.

Closing in favor of #152


Build error with  JavaCompile.setDependencyCacheDir()

I'm working with "Robotium recorder", but last time I got mistake when I started "New Robotium Test".
Here is this error:
Input:
C:\Android\uforum-v3-android\executorproject\gradlew.bat -Dorg.gradle.daemon=true assembleDebugAndroidTest -u -b C:\Android\uforum-v3-android\executorproject\build.gradle
Output:
The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0. FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'executorproject'. > org.gradle.api.internal.tasks.DefaultTaskInputs$TaskInputUnionFileCollection cannot be cast to org.gradle.api.internal.file.collections.DefaultConfigurableFileCollection * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 1.666 secs
How to solve this problem?

+1

+1

+1

Did any of you guys solve this ?


Netbeans Configuration for working on the Javascript in traccar/web

How does one work on the Javascript for the web interface in NetBeans?
Currently, the Maven project only "exposes" the traccar server files which are all Java.  When the web interface was in a separate repository, this was easy to setup as a separate project.  Is there a different type of project that I should use now that the server and web interface are in the same repository?

There is no project for JavaScript. I use IntelliJ and it shows all the files including Java and JavaScript. Not sure about NetBeans.


Heroku Deployment

Added instructions and an app.json for easy deployment with a "Deploy" button.

thanks!


Laravel 11.x Compatibility

This is an automated pull request from Shift to update your package code and dependencies to be compatible with Laravel 11.x.
Before merging, you need to:

Checkout the l11-compatibility branch
Review all comments for additional changes
Thoroughly test your package

If you do find an issue, please report it by commenting on this PR to help improve future automation.

:warning: Shift detected GitHub Actions which run jobs using a version matrix. Shift attempted to update your configuration for Laravel 11. However, you should review these changes to ensure the desired combination of versions are built for your package.

:alembic: Using this package? If you would like to help test these changes or believe them to be compatible, you may update your project to reference this branch.
To do so, temporarily add Shift's fork to the repositories property of your composer.json:
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/laravel-shift/filament-blog.git"
        }
    ]
}

Then update your dependency constraint to reference this branch:
{
    "require": {
        "stephenjude/filament-blog": "dev-l11-compatibility",
    }
}

Finally, run: composer update


MGDSTRM-7965 using and propagating instance/profile type

This is an initial draft of using the profile type from the control plane.

it does not use the quota directly as we haven't reached any kind of consensus on that
makes a minor change so that delete can provide an appropriate status update even if invalid
adds in a speculative scheduling change for when we mix deployments - the zookeepers have an anti-affinity to anything that is not the same profile.  This will need validated and potentially relaxed in the future.  Beyond that we're just going to rely on the autoscaling to compact things for us.

IMO, delete stuff should be in a separate PR
as per anti-affinity stuff, my preference is still to follow ADR-68 to have different machine pools to place the instances, could we defer this to later?

IMO, delete stuff should be in a separate PR

It can be, it's just related to the overall restructuring (it's an additional one line change https://github.com/bf2fc6cc711aee1a0c2a/kas-fleetshard/pull/702/files#diff-1c7d44788e015d2397ec69318d7e7b5c9ddf960063aab5e7d3aa2180ba286b81R156) in the status logic in the managedkafkacontroller.

as per anti-affinity stuff, my preference is still to follow ADR-68 to have different machine pools to place the instances, could we defer this to later?

We can - it's intentionally speculative and not meant to be merged.  My thinking is that ADR-68 is less necessary within just the managed kafka due to auto-scaling - as my primary concern had been the compaction logic.  If we expand this type of scheduling beyond the zookeeper pods in a similar manner, then we can share a single machine pool for standard and developer.  ADR-68 is still conceptually needed for segregating for from different managed services.

The next commit adds the logic to sync to detect metadata changes as well.

Please add the label to canary and admin server deployments (both to the metadata.labels and to spec.template.metadata.labels to ensure that it gets propagated down to Pods. This will be needed for the changes I'm making in https://github.com/bf2fc6cc711aee1a0c2a/observability-resources-mk/pull/177.

sure thing, I'll add it to all of the other pods.

@shawkins FYI this needs a rebase (conflicts).

@grdryn resolved now.


Add two more indices to applicants for created and date they landed on a specific stage / opening combo

Closing, irrelevant with new target arrays in Mongo


App settings page doc has wrong URL

Your Problem
On page https://stripe.com/docs/stripe-apps/app-settings (App settings page),
there is a link to SettingsView reference:

This links to: https://stripe.com/docs/stripe-apps/reference/extensions-sdk-api
But should link to: https://stripe.com/docs/stripe-apps/components/settingsview
Existing Documentation URLs (If applicable)

Thank you so much for this feedback! Was out of office, but hoping to put in a fix by eod. Appreciate your patience.


Best-of-n Pipeline: ArrowInvalid: offset overflow while concatenating arrays

When I try running python run_bon_pipeline.py, I hit the error:
Repo card metadata block was not found. Setting CardData to empty.
Starting BoN pipeline...
^MMap:   0%|          | 0/1000 [00:00<?, ? examples/s]^MMap:   1%|          | 8/1000 [00:00<00:14, 69.47 examples/s]^MMap:   2%|▏         | 18/1000 [00:00<00:12, 78.27 examples/s]^MMap:   3%|▎         | 28/1000 [00:00<00:11, 83.84 examples/s]^MMap:   4%|▍         | 38/1000 [00:00<00:11, 86.36 examples/s]^MMap:   5%|▍         | 48/1000 [00:00<00:11, 85.35 examples/s]^MMap:   6%|▌         | 57/1000 [00:00<00:11, 83.34 examples/s]^MMap:   7%|▋         | 67/1000 [00:00<00:11, 83.48 examples/s]^MMap:   8%|▊         | 76/1000 [00:00<00:11, 82.19 examples/s]^MMap:   9%|▉         | 88/1000 [00:01<00:11, 78.53 examples/s]^MMap:  10%|▉         | 97/1000 [00:01<00:11, 79.95 examples/s]^MMap:  11%|█         | 106/1000 [00:01<00:11, 80.49 examples/s]^MMap:  12%|█▏        | 116/1000 [00:01<00:10, 80.83 examples/s]^MMap:  13%|█▎        | 126/1000 [00:01<00:10, 81.81 examples/s]^MMap:  14%|█▎        | 135/1000 [00:01<00:10, 82.72 examples/s]^MMap:  14%|█▍        | 144/1000 [00:01<00:10, 82.96 examples/s]^MMap:  15%|█▌        | 153/1000 [00:01<00:10, 80.36 examples/s]^MMap:  16%|█▌        | 162/1000 [00:01<00:10, 80.07 examples/s]^MMap:  17%|█▋        | 171/1000 [00:02<00:10, 81.87 examples/s]^MMap:  18%|█▊        | 181/1000 [00:02<00:09, 83.20 examples/s]^MMap:  19%|█▉        | 193/1000 [00:02<00:10, 80.64 examples/s]^MMap:  20%|██        | 203/1000 [00:02<00:11, 69.99 examples/s]^MMap:  21%|██▏       | 213/1000 [00:02<00:10, 73.75 examples/s]^MMap:  22%|██▏       | 223/1000 [00:02<00:09, 78.23 examples/s]^MMap:  23%|██▎       | 232/1000 [00:02<00:09, 77.72 examples/s]^MMap:  24%|██▍       | 242/1000 [00:03<00:09, 79.30 examples/s]^MMap:  25%|██▌       | 251/1000 [00:03<00:09, 79.62 examples/s]^MMap:  26%|██▌       | 260/1000 [00:03<00:09, 79.87 examples/s]^MMap:  27%|██▋       | 270/1000 [00:03<00:08, 81.76 examples/s]^MMap:  28%|██▊       | 279/1000 [00:03<00:08, 81.28 examples/s]^MMap:  29%|██▉       | 289/1000 [00:03<00:08, 82.73 examples/s]^MMap:  30%|██▉       | 299/1000 [00:03<00:08, 82.87 examples/s]^MMap:  31%|███       | 309/1000 [00:03<00:08, 78.12 examples/s]^MMap:  32%|███▏      | 317/1000 [00:03<00:08, 76.57 examples/s]^MMap:  32%|███▎      | 325/1000 [00:04<00:09, 73.99 examples/s]^MMap:  34%|███▎      | 335/1000 [00:04<00:08, 76.72 examples/s]^MMap:  34%|███▍      | 345/1000 [00:04<00:08, 79.50 examples/s]^MMap:  35%|███▌      | 353/1000 [00:04<00:08, 78.71 examples/s]^MMap:  36%|███▌      | 362/1000 [00:04<00:08, 78.30 examples/s]^MMap:  37%|███▋      | 371/1000 [00:04<00:08, 78.25 examples/s]^MMap:  38%|███▊      | 381/1000 [00:04<00:07, 80.05 examples/s]^MMap:  39%|███▉      | 390/1000 [00:04<00:07, 81.32 examples/s]^MMap:  40%|███▉      | 399/1000 [00:04<00:07, 81.84 examples/s]^MMap:  41%|████      | 409/1000 [00:05<00:07, 82.50 examples/s]^MMap:  42%|████▏     | 421/1000 [00:05<00:07, 78.33 examples/s]^MMap:  43%|████▎     | 432/1000 [00:05<00:08, 70.89 examples/s]^MMap:  44%|████▍     | 442/1000 [00:05<00:07, 74.34 examples/s]^MMap:  45%|████▌     | 450/1000 [00:05<00:07, 73.97 examples/s]^MMap:  46%|████▌     | 458/1000 [00:05<00:07, 74.02 examples/s]^MMap:  47%|████▋     | 467/1000 [00:05<00:07, 74.36 examples/s]^MMap:  48%|████▊     | 476/1000 [00:06<00:06, 75.19 examples/s]^MMap:  48%|████▊     | 485/1000 [00:06<00:06, 76.44 examples/s]^MMap:  49%|████▉     | 493/1000 [00:06<00:06, 76.91 examples/s]^MMap:  50%|█████     | 502/1000 [00:06<00:06, 78.01 examples/s]^MMap:  51%|█████     | 511/1000 [00:06<00:06, 78.09 examples/s]^MMap:  52%|█████▏    | 520/1000 [00:06<00:06, 79.59 examples/s]^MMap:  53%|█████▎    | 529/1000 [00:06<00:05, 80.30 examples/s]^MMap:  54%|█████▍    | 538/1000 [00:06<00:05, 80.27 examples/s]^MMap:  55%|█████▍    | 548/1000 [00:06<00:06, 73.84 examples/s]^MMap:  56%|█████▌    | 557/1000 [00:07<00:05, 76.30 examples/s]^MMap:  57%|█████▋    | 567/1000 [00:07<00:05, 79.48 examples/s]^MMap:  58%|█████▊    | 577/1000 [00:07<00:05, 82.61 examples/s]^MMap:  59%|█████▊    | 587/1000 [00:07<00:04, 83.78 examples/s]^MMap:  60%|██████    | 600/1000 [00:07<00:04, 80.64 examples/s]^MMap:  61%|██████    | 610/1000 [00:07<00:04, 81.52 examples/s]^MMap:  62%|██████▏   | 620/1000 [00:07<00:04, 84.73 examples/s]^MMap:  63%|██████▎   | 629/1000 [00:07<00:04, 83.72 examples/s]^MMap:  64%|██████▍   | 638/1000 [00:08<00:04, 83.17 examples/s]^MMap:  65%|██████▍   | 647/1000 [00:08<00:04, 81.88 examples/s]^MMap:  66%|██████▌   | 659/1000 [00:08<00:04, 76.22 examples/s]^MMap:  67%|██████▋   | 668/1000 [00:08<00:04, 77.11 examples/s]^MMap:  68%|██████▊   | 678/1000 [00:08<00:04, 79.19 examples/s]^MMap:  69%|██████▉   | 688/1000 [00:08<00:03, 80.08 examples/s]^MMap:  70%|██████▉   | 697/1000 [00:08<00:03, 79.63 examples/s]^MMap:  71%|███████   | 710/1000 [00:08<00:03, 80.69 examples/s]^MMap:  72%|███████▏  | 719/1000 [00:09<00:03, 80.40 examples/s]^MMap:  73%|███████▎  | 729/1000 [00:09<00:03, 82.36 examples/s]^MMap:  74%|███████▍  | 741/1000 [00:09<00:03, 77.91 examples/s]^MMap:  75%|███████▌  | 750/1000 [00:09<00:03, 78.01 examples/s]^MMap:  76%|███████▌  | 758/1000 [00:09<00:03, 76.68 examples/s]^MMap:  77%|███████▋  | 767/1000 [00:09<00:03, 77.47 examples/s]^MMap:  78%|███████▊  | 777/1000 [00:09<00:03, 72.65 examples/s]^MMap:  79%|███████▊  | 787/1000 [00:09<00:02, 75.78 examples/s]^MMap:  80%|███████▉  | 796/1000 [00:10<00:02, 77.29 examples/s]^MMap:  80%|████████  | 805/1000 [00:10<00:02, 79.25 examples/s]^MMap:  82%|████████▏ | 817/1000 [00:10<00:02, 77.04 examples/s]^MMap:  83%|████████▎ | 826/1000 [00:10<00:02, 78.10 examples/s]^MMap:  84%|████████▎ | 835/1000 [00:10<00:02, 78.14 examples/s]^MMap:  84%|████████▍ | 843/1000 [00:10<00:02, 76.96 examples/s]^MMap:  85%|████████▌ | 852/1000 [00:10<00:01, 78.21 examples/s]^MMap:  86%|████████▌ | 861/1000 [00:10<00:01, 79.11 examples/s]^MMap:  87%|████████▋ | 870/1000 [00:11<00:01, 80.54 examples/s]^MMap:  88%|████████▊ | 879/1000 [00:11<00:01, 79.51 examples/s]^MMap:  89%|████████▉ | 889/1000 [00:11<00:01, 73.09 examples/s]^MMap:  90%|████████▉ | 898/1000 [00:11<00:01, 75.38 examples/s]^MMap:  91%|█████████ | 908/1000 [00:11<00:01, 78.48 examples/s]^MMap:  92%|█████████▏| 917/1000 [00:11<00:01, 79.77 examples/s]^MMap:  93%|█████████▎| 926/1000 [00:11<00:00, 80.22 examples/s]^MMap:  94%|█████████▎| 936/1000 [00:11<00:00, 82.81 examples/s]^MMap:  94%|█████████▍| 945/1000 [00:11<00:00, 81.53 examples/s]^MMap:  96%|█████████▌| 955/1000 [00:12<00:00, 80.72 examples/s]^MMap:  96%|█████████▋| 965/1000 [00:12<00:00, 81.09 examples/s]^MMap:  98%|█████████▊| 975/1000 [00:12<00:00, 83.29 examples/s]^MMap:  98%|█████████▊| 984/1000 [00:12<00:00, 83.13 examples/s]^MMap:  99%|█████████▉| 994/1000 [00:12<00:00, 84.24 examples/s]^MMap: 100%|█████████▉| 999/1000 [00:32<00:00, 84.24 examples/s]^MMap: 100%|█████████▉| 999/1000 [00:32<00:00, 30.71 examples/s]
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /lfs/ampere8/0/rschaef/miniconda3/envs/reward_modeling_env/lib/python3.10/site-packages/datasets │
│ /arrow_dataset.py:3538 in _map_single                                                            │
│                                                                                │
│   3535 │   │   │   │   │   │   │   ):                                                            │
│   3536 │   │   │   │   │   │   │   │   writer.write_row(example.to_arrow())                      │
│   3537 │   │   │   │   │   │   │   else:                                                         │
│ ❱ 3538 │   │   │   │   │   │   │   │   writer.write(example)                                     │
│   3539 │   │   │   │   │   │   num_examples_progress_update += 1                                 │
│   3540 │   │   │   │   │   │   if time.time() > _time + config.PBAR_REFRESH_TIME_INTERVAL:       │
│   3541 │   │   │   │   │   │   │   _time = time.time()                                           │
│                                                                                │

< lots of text >

│ /lfs/ampere8/0/rschaef/miniconda3/envs/reward_modeling_env/lib/python3.10/site-packages/datasets │
│ /arrow_writer.py:584 in write_table                                                              │
│                                                                                │
│   581 │   │   │   writer_batch_size = self.writer_batch_size                                     │
│   582 │   │   if self.pa_writer is None:                                                         │
│   583 │   │   │   self._build_writer(inferred_schema=pa_table.schema)                            │
│ ❱ 584 │   │   pa_table = pa_table.combine_chunks()                                               │
│   585 │   │   pa_table = table_cast(pa_table, self._schema)                                      │
│   586 │   │   if self.embed_local_files:                                                         │
│   587 │   │   │   pa_table = embed_table_storage(pa_table)                                       │
│                                                                                │

< lots of text>

│ │                     essential for the well-being of people and the planet. It is essential   │ │
│ │                     for maintaining ecosystems, regulating climate, and providing clean air  │ │
│ │                     and water. It is also essential for preserving unique species and        │ │
│ │                     habitats. Conservation of biodiversity is key to preserving biological   │ │
│ │                     diversity, which is essential for the evolution of new species and the   │ │
│ │                     survival of existing species.",...,"Conservation of biodiversity is      │ │
│ │                     essential for preserving and restoring the planet's ecosystems, which    │ │
│ │                     are essential for maintaining healthy ecosystems and helping to prevent  │ │
│ │                     the spread of disease. The loss of biodiversity is increasing due to     │ │
│ │                     habitat loss, pollution, and over-harvesting.","The importance of        │ │
│ │                     conservation of biodiversity is recognized worldwide as it plays an      │ │
│ │                     essential role in maintaining the stability of ecosystems and the        │ │
│ │                     balance of ecosystems services. Biodiversity is an important source of   │ │
│ │                     new ideas and innovation in conservation strategies, which can also help │ │
│ │                     to reduce poverty and improve human health. Biodiversity also helps to   │ │
│ │                     maintain existing ecosystems and their services, such as flood           │ │
│ │                     protection, soil conservation, and nutrient cycling. The loss of         │ │
│ │                     biodiversity can cause drastic changes in the ecosystem, leading to      │ │
│ │                     serious consequences such as ecosystem breakdown, economic losses, and   │ │
│ │                     reduced resilience to future events.","Conservation of biodiversity is   │ │
│ │                     essential for maintaining the balance of the planet's ecosystems and     │ │
│ │                     maintaining the health of its species. Conservation efforts are          │ │
│ │                     important in order to maintain the existing biodiversity, while also     │ │
│ │                     preserving the genetic and physical diversity of the species.            │ │
│ │                     Additionally, biodiversity is important for maintaining traditional ways │ │
│ │                     of life, providing food and water, and contributing to the economy.","   │ │
│ │                     Conservation of biodiversity is important for preserving the natural     │ │
│ │                     wealth of the planet. It involves protecting areas, plants, animals, and │ │
│ │                     habitats that are home to many species, as well as managing and          │ │
│ │                     protecting existing ecosystems to ensure the resilience of their habitat │ │
│ │                     and wildlife. Additionally, it encourages the sustainable use of natural │ │
│ │                     resources, such as water and air, and reduces the risk of species        │ │
│ │                     extinction."," Conservation of biodiversity is an important element of   │ │
│ │                     sustainable development because it helps protect habitats, ecosystems    │ │
│ │                     and native species from destruction. It is also essential for            │ │
│ │                     maintaining ecosystem services, such as providing food, water and air,   │ │
│ │                     and acting as a check against climate change. It is an important         │ │
│ │                     principle for sustainable management of resources and can help ensure    │ │
│ │                     the long-term survival of human cultures, too."],["When I was in         │ │
│ │                     college, I was struggling to make decisions and find motivation. I       │ │
│ │                     realized that I needed to take a step back and remind myself that there  │ │
│ │                     was no right answer. It was important to trust my gut instinct and not   │ │
│ │                     let external pressure get in the way of achieving my goals. Taking a     │ │
│ │                     step back allowed me to refocus my energy and regain the focus I needed  │ │
│ │                     to make the changes I wanted to make.","When I was preparing for an      │ │
│ │                     exam, I faced a lot of obstacles, but I was determined to prove that I   │ │
│ │                     was capable of achieving success. I went to study sessions regularly,    │ │
│ │                     studied hard, and tried to focus on the subject matter. Through all of   │ │
│ │                     this, I managed to pass the exam and prove to myself that I could do     │ │
│ │                     anything I put my mind to.","I overcame difficulties when I found a way  │ │
│ │                     to make the most of a difficult situation by thinking outside of the     │ │
│ │                     box. By finding a way to use my skills and knowledge to solve a problem, │ │
│ │                     I was able to come up with a creative solution that addressed the issue. │ │
│ │                     Through this, I was able to focus on the positive and come out on the    │ │
│ │                     other side with newfound confidence.","When I was in college, I had to   │ │
│ │                     take an independent study course on the history of African-American      │ │
│ │                     civil rights movement. I worked hard to make it through the course and   │ │
│ │                     ultimately passed the exam with high marks. I also had to take an online │ │
│ │                     class in a different course and it was a challenge, but I was determined │ │
│ │                     to make it through. Ultimately, I made it through both classes and, as a │ │
│ │                     result, I was awarded the highest grade in the class. It was a testament │ │
│ │                     to my hard work and dedication to finish the course.","When I was a      │ │
│ │                     freshman in college, I was very uncertain about what to do with my life. │ │
│ │                     Despite struggling with making decisions, I found a way to solve my      │ │
│ │                     problem by pursuing a passion I had been hinting at in my mind: art.     │ │
│ │                     After a few months of creating artwork and talking to artists, I felt    │ │
│ │                     more confident in my decision and I decided to pursue a degree in art.   │ │
│ │                     This decision meant more than anything as it allowed me to become an     │ │
│ │                     asset to the art community and to explore new opportunities.",...,"I     │ │
│ │                     overcame difficulties by learning to separate my responsibilities from   │ │
│ │                     my emotions and staying optimistic.","I overcame difficulties by         │ │
│ │                     learning to rely on my intuition and following my gut instinct. This     │ │
│ │                     helped me to gain strength of character, focus on the task at hand, and  │ │
│ │                     cope with failure. By taking the time to think things through, I was     │ │
│ │                     able to work through my doubts and come up with a plan that worked for   │ │
│ │                     me. I also used visualization techniques to help me think about a        │ │
│ │                     solution and stay motivated. Finally, I worked hard and persisted        │ │
│ │                     through the inevitable setbacks to reach my goal and became a better     │ │
│ │                     version of myself in the process.","I overcame my difficulties when I    │ │
│ │                     faced adversity and worked hard. I kept pushing through every obstacle   │ │
│ │                     that came my way and eventually found a solution that worked for me.     │ │
│ │                     Through hard work and perseverance, I overcame the difficulty and was    │ │
│ │                     eventually able to find a way out.","I overcame difficulties by learning │ │
│ │                     to control my emotions and realize the importance of keeping my faith in │ │
│ │                     spite of setbacks. I knew that I was capable of overcoming these         │ │
│ │                     obstacles and reached out for help when I needed it. I started believing │ │
│ │                     in myself again and slowly but surely I started to make progress.","I    │ │
│ │                     overcame difficulties when I decided to give up negative thoughts and    │ │
│ │                     embrace positive beliefs, instead. Positive thoughts are like little oil │ │
│ │                     pumps, constantly pushing out positive energy and encouraging me to move │ │
│ │                     forward. I started exercising, got organized and started celebrating the │ │
│ │                     small things in life. I learned to trust myself and what I could         │ │
│ │                     accomplish, instead of relying on other people. Ultimately, I was able   │ │
│ │                     to face challenges and obstacles head on with confidence and             │ │
│ │                     determination."]]]                                                       │ │
│ │                     gold_scores:                                                             │ │
│ │                     [[[0.83203125,0.6328125,1.28125,0.01153564453125,0.953125,...,0.2285156… │ │
│ │              self = <datasets.arrow_writer.ArrowWriter object at 0x7fcdb0645660>             │ │
│ │ writer_batch_size = 1000                                                                     │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│                                                                                │
│ in pyarrow.lib.Table.combine_chunks:4289                                                         │
│                                                                                │
│ in pyarrow.lib.pyarrow_internal_check_status:154                                                 │
│                                                                                │
│ in pyarrow.lib.check_status:91                                                                   │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
ArrowInvalid: offset overflow while concatenating arrays

Is this to be expected? If not, what is the correct solutions?

One solution I found: Explicitly use a batch size for .map():
gold_labelled_generations = gold_labelled_generations.map(_truncate_answers, batched=True, batch_size=10)


Blending Mode Configuration

Is your feature request related to a problem? Please describe.
The  blending mode of  custom material I need is specified as follows:
mRasterState.blendFunctionSrcRGB = BlendFunction::ONE_MINUS_DST_ALPHA; mRasterState.blendFunctionSrcAlpha = BlendFunction::ONE_MINUS_DST_ALPHA; mRasterState.blendFunctionDstRGB = BlendFunction::ONE; mRasterState.blendFunctionDstAlpha = BlendFunction::ONE;
However, the engine's default blending mode does not have this option. The default settings are:
mRasterState.blendFunctionSrcRGB = BlendFunction::ONE; mRasterState.blendFunctionSrcAlpha = BlendFunction::ONE; mRasterState.blendFunctionDstRGB = BlendFunction::ONE_MINUS_SRC_ALPHA; mRasterState.blendFunctionDstAlpha = BlendFunction::ONE_MINUS_SRC_ALPHA; mRasterState.depthWrite = false;
When I modify the source code to use the required mode, the image displays as a black screen and does not render correctly. Could you please advise on how to proceed?
Describe the solution you'd like
can support the blend mode set to mRasterState.blendFunctionSrcRGB = BlendFunction::ONE_MINUS_DST_ALPHA; mRasterState.blendFunctionSrcAlpha = BlendFunction::ONE_MINUS_DST_ALPHA; mRasterState.blendFunctionDstRGB = BlendFunction::ONE; mRasterState.blendFunctionDstAlpha = BlendFunction::ONE;
Describe alternatives you've considered
How to modify the source code to support the above blending mode?
OS and backend

What are you trying to achieve?

@romainguy
I am trying rendering  point cloud with 'Gaussian splatting' method. The blending mode for this algorithm is gl.blendFuncSeparate( gl.ONE_MINUS_DST_ALPHA, gl.ONE, gl.ONE_MINUS_DST_ALPHA, gl.ONE, );, but the engine does not have this option."


Add codespell config

Fixes https://github.com/HEFTIEProject/heftie-textbook/issues/3, fixes https://github.com/HEFTIEProject/heftie-textbook/issues/22

pre-commit.ci autofix


Use unsafe.Slice in Memory.UnsafeData

Go 1.17 added unsafe.Slice, which avoids the 32-bit overflow issue mentioned in #199. I believe this also lets us use memories larger than 4GB (for future wasm64 stuff).

Hmm, not sure why the bazel build is failing:
__main__/memory.go:60:9: undefined: unsafe.Slice

It must be using an old version of Go. unsafe.Slice was added in 1.17.


error checkpoint

Unable to establish SSL connection.
Archive:  assets/checkpoints.zip
End-of-central-directory signature not found.  Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive.  In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of assets/checkpoints.zip or
assets/checkpoints.zip.zip, and cannot find assets/checkpoints.zip.ZIP, period.

this happens if the file did not complete fully downloading


Expose UDP not working

BUG REPORT INFORMATION
NOTE: There are lots of duplicate issues but I'm pretty sure they are for super old versions of Docker.
In my Dockerfile I have:
EXPOSE 5201
EXPOSE 5201/udp
(Ideally I would like it to be possible in one line but not a big deal).
When I run docker run -P ....
it does not expose the udp port.
I need Docker's feature where it randomly selects a PORT but I need it to expose that port to TCP AND UDP traffic.
i.e. port 12345 should allow TCP and UDP traffic and route it to my container's port 5201.

If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
For more information about reporting issues, see CONTRIBUTING.md.
You don't have to include this information if this is a feature request
(This is an automated, informational response)

BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
docker version:
docker info:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
----------END REPORT ---------
#ENEEDMOREINFO

There are various ways of using lowercase -p argument to do that BUT that requires me to select the port myself.

-P creates 2 external ports that map to the one internal port.
<IP_ADDRESS>:32789->3456/udp, <IP_ADDRESS>:33359->3456/tcp

Thanks for reporting! This is a duplicate of https://github.com/docker/docker/issues/4635, please continue the discussion there


"InvalidGitRepositoryError" while running jupyter notebook

Hi, I'd like to run RL_with_CALVIN.ipynb file in my locally established environment, but I meet the following issue while running the line "env = hydra.utils.instantiate(cfg.env)":
‘InvalidGitRepositoryError: Error instantiating 'calvin_env.envs.play_table_env.PlayTableSimEnv'
Exactly I don't know how to solve it, so please give more help.
PS. it seems that there exists some script issues while opening RL_with_CALVIN.ipynb.

Which cell do you run when this error appears? could you try it again and send me a screenshot of the the error please?

We updated the google colab href to redirect to the appropriate branch, please let us know if the issue is still present after these changes.

Actually I'm running RL_with_CALVIN.ipynb in my local machine since in colab I obtain issues on "numpy.core.multiarray failed to import" but I fixed it locally, and I've finished the previous cell step by step as follows:

I guess the problem is from calvin_env/utils/utils.py, but I'm not sure how to fix it. Thanks 💛

Thanks for your reply, now that we know that you are running on a local machine, it is possible that the problem was the installation / cloning of the repo.
Did you clone the repository before starting to run the notebook?  is there a folder named ".git/" inside the calvin_env folder?
Note: you should be able to run it in colab, by following the instructions. The line:
!pip3 install -U numpy
Is used to avoid the "numpy.core.multiarray failed to import" error that is present in colab, you could try running it again and restarting the runtime after the installation.

Thanks a lot, I've solved the problem in Colab usage ~~ 😃


harrishilton-change-1

creating new file in git for first time, testing

how ca i a add someone to review and merge this pull request?


[BUG] Doesn't decompile api32 framework

Information

Apktool Version (apktool -version) - 2.6.2-fc28ac-SNAPSHOT
Operating System (Mac, Linux, Windows) - win
APK From? (Playstore, ROM, Other) - Android SDK (Sdk\platforms\android-32\android.jar)

Stacktrace/Logcat
all ok

Steps to Reproduce

apktool d android_32.apk

APK
If this APK can be freely shared, please upload/attach a link to it.
android.zip
Something is wrong.
In the res folder, there are only three files:
values\attrs.xml
values\ids.xml
values\public.xml :
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <public type="id" name="accessibilityActionDragStart" id="0x01fe0000" />
    <public type="id" name="accessibilityActionDragDrop" id="0x01fe0001" />
    <public type="id" name="accessibilityActionDragCancel" id="0x01fe0002" />
    <public type="attr" name="shouldUseDefaultUnfoldTransition" id="0x01ff0000" />
</resources>

in the log is:
I: Skipping staged alias stagedId (1fe0000) finalId: 1020055
I: Skipping staged alias stagedId (1fe0001) finalId: 1020056
I: Skipping staged alias stagedId (1fe0002) finalId: 1020057
I: Skipping staged alias stagedId (1ff0000) finalId: 101064c

well actually, this may be right. Just too much verbose output. What if those resources are actually staged aliases because of API 32 not yet finalized?

@iBotPeaches decompiling the next version of the framework api Sdk\platforms\android-Tiramisu\android.jar is ok, the res folder is full (39mb), the log is the same as before. Used BATCH APKTOOL:
[*] Info:
file: android_t.apk
package: name='android' versionCode='32' versionName='Tiramisu'
sdkVersion:'Tiramisu'
targetSdkVersion:'Tiramisu'
……………………………………………………………………………………………………………………………………
I: Using Apktool 2.6.2-fc28ac-SNAPSHOT on android_t.apk
I: Loading resource table...
I: Skipping staged alias stagedId (1fe0000) finalId: 1020055
I: Skipping staged alias stagedId (1fe0001) finalId: 1020056
I: Skipping staged alias stagedId (1fe0002) finalId: 1020057
I: Skipping staged alias stagedId (1ff0000) finalId: 101064c
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...

android_tiramisu.zip

well actually, this may be right. Just too much verbose output. What if those resources are actually staged aliases because of API 32 not yet finalized?

It's not about that. While looking at the log, I didn't pay attention to W: Skipping package group: android. This suggests that you need to add support for multi-package resources.

Okay, if thats the only thing remaining. I believe thats covered in #2514 (for the multi-package support)

Closing as the only thing left is multi-package support in https://github.com/iBotPeaches/Apktool/issues/2960 or #2514


How to call sui's nft contract through python

How to call sui's nft contract through python

Now sui doesn't provide official python sdk.

Take a look at pysui

Why not provide a Python SDK?

They just released a TS SDK. Python may be in the works, but there is PySui available as mentioned above.

But using a third-party one carries risks, as it involves private key operations. So I hope there can be an official version of the Python SDK, which can reassure developers with such concerns.

@ooeooo pysui does not use private keys unless you want to do so.

@ooeooo pysui does not use private keys unless you want to do so.

Thank you!


Collect all the module trees in the plugin and query that from directive

Fixes #9
One downside is that it now requires to populate paradoxDependenciesModules on the use side. But on the other hand the access to the dependency tree is now done without touching the state directly.

Is the use case not that all modules in the build you want to pull out their dependencies?  I'm thinking you should grab them all unless that key is set.  You can test that with paradoxDependenciesModules.?.value.

Yes, all modules are potentially wanted. Can I grab all modules in the build without docs module having to aggregate or depend on them all? I want to have docs module building quickly and having dependencies on all of the modules on the build will slow down running some of the tasks.

Actually, I'm surprised the .value in (paradoxDependenciesModules ?? Seq.empty).value works, being inside ScopeFilter.  One the one hand, good, on the other hand: is it not working but not telling us?  If you have extra cycles see if you can add some tests around it.


Not working on Vue 2

I've tried with both @clickout and v-on:clickout, but neither of those worked for me.
My element is a div inside a simple table row, with position-absolute as a style atribute. click events work normally, but the clickout ones are not being thrown at all.
The only thing I did was add the npm package to my project, so I'm not sure if it's enough to make it work.

Did you add the <script> tag or use require to import it? Just by installing the NPM package certainly would not make it work.
If you have already done so, I might need to take a look at your repo to see what exactly went wrong.

Well, no, but I found a solution that worked, which is weird since it was just a guess of mine... Bu anyway, I added those two lines to  my main.js file, and it worked like a charm!
import clickoutEvent from 'clickout-event'
Vue.use(clickoutEvent)

I'm not sure if it's intended or not... I found your plugin on one of your answers in SO, and you've said at the time that there wasn't any support for importing it with import, but I just tried to import it the same way we import other packages, and it's working just as promised.
Maybe this method should be included in the README file for future Vue users to see, right?

In that case I'm guessing you might need just one line:
import 'clickout-event';

Since it is a fact that Clickout-Event does not really export anything. So in your code clickoutEvent will be undefined and the next line (Vue.use) won't really do anything. Can you comfirm this? In either case I will update README afterwards.

Yup, that worked as well! Thank you!


Add music

Find some free music

This? @bucket420 https://www.youtube.com/watch?v=SyyiaI6qCbc

Placeholder done.


LocationPermissionLevel problems on iOS

🚀 Feature Requests
The plugin currently always requests LocationPermissionLevel.location. The location_permissions plugin then requests either "when in use" or "always" permissions based on which strings are available in the app bundle. However, Apple is now rejecting binaries that could call requestAlwaysAuthorization but don't have the necessary strings set up, so even though requestAlwaysAuthorization never gets called by such an app, Apple will still reject it.
In practice this means it's now impossible to use the plugin for an app that only needs "when in use" permissions.
Describe the feature
It should be possible to configure which LocationPermissionLevel the plugin will request when the first calls to getCurrentPosition etc. are made, perhaps by using optional named arguments to those methods.
Platforms affected (mark all that apply)

[x] :iphone: iOS
[ ] :robot: Android

@matthewlloyd you are 100% correct, we need an optional parameter here to indicate which permission level you would like to use "when in use" or "always" (default).


Plans for Postgres support?

Just wondering if there are plans to enable postgres backend support? I am starting to look at the code that is commented out to see if it is easy to do or not. Before I start, just wondering if you have started anything yet^

I haven't tested it myself but it might be it works out of the box since I have reused the db logic from lnbits. Please report back if you try it out!

Ok, I will see if I can get it to work and report back!

It worked!


Remove "Starting an elasticsearch container" message in constructor

At this point in the constructor, we are not actually starting Elasticsearch, so this message can lead to confusion (it did for me, leading me to dig into it). I didn't find any of the other org.testcontainers container classes that output a message like this in their constructor.
When the container is actually started, we still get a log message from GenericContainer, anyway, so I think we can just safely delete this log line, which is what this PR does.
Notice line 8 where we have Starting an elasticsearch container:
...
20:37:40.568 [main] INFO  🐳 [testcontainers/ryuk:0.3.4] - Creating container for image: testcontainers/ryuk:0.3.4
20:37:41.040 [main] INFO  org.testcontainers.utility.RegistryAuthLocator - Credential helper/store (docker-credential-desktop) does not have credentials for https://index.docker.io/v1/
20:37:49.798 [main] INFO  🐳 [testcontainers/ryuk:0.3.4] - Container testcontainers/ryuk:0.3.4 is starting: 7201de8310b1f5870622b4070203ccf609a9a6a550ab3bfb682193c9f1fe7424
20:38:08.714 [main] INFO  🐳 [testcontainers/ryuk:0.3.4] - Container testcontainers/ryuk:0.3.4 started in PT28.516627S
20:38:08.729 [main] INFO  org.testcontainers.utility.RyukResourceReaper - Ryuk started - will monitor and terminate Testcontainers containers on JVM exit
20:38:08.730 [main] INFO  org.testcontainers.DockerClientFactory - Checking the system...
20:38:08.732 [main] INFO  org.testcontainers.DockerClientFactory - ✔ Docker server version should be at least 1.6.0
20:38:08.732 [main] INFO  🐳 [docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2] - Starting an elasticsearch container using [docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2]
20:38:08.824 [main] INFO  🐳 [postgres:10.7-alpine] - Creating container for image: postgres:10.7-alpine
20:38:12.712 [main] INFO  🐳 [postgres:10.7-alpine] - Container postgres:10.7-alpine is starting: f1a9cd20285eea9cc684b76a44916a35e5c9715e787773895f49c164b1a1baa2
20:38:43.861 [main] INFO  🐳 [postgres:10.7-alpine] - Container postgres:10.7-alpine started in PT35.03724S
20:38:44.015 [main] INFO  🐳 [horizon:latest] - Creating container for image: horizon:latest
20:39:44.261 [main] INFO  🐳 [horizon:latest] - Container horizon:latest is starting: 73913f424c20e78c297033c9674286f9659ea87ce124ee08e2c29a9e7cb49a9f
20:39:55.601 [main] INFO  org.opennms.smoketest.containers.OpenNMSContainer - Waiting for startup to begin.
...

I can confirm that no Elasticsearch container has been created f I look at recently-created containers while the test is running. I don't see Elasticsearch, but I do see the other containers listed in the output above (and that I expect to see in this case): ryuk, postgres, and OpenNMS horizon.
CONTAINER ID   IMAGE                                 COMMAND                  CREATED
73913f424c20   horizon:latest                        "/entrypoint.sh -s"      6 minutes ago
f1a9cd20285e   postgres:10.7-alpine                  "docker-entrypoint.s…"   8 minutes ago
7201de8310b1   testcontainers/ryuk:0.3.4             "/app"                   8 minutes ago

In our case, this happens because of the log message in the ElasticsearchContainer constructor, and also our smoke test OpenNMSStack infrastructure that pre-defines a number of container stacks that we use in tests, one of which called ALEC includes Elasticsearch (code). However in the test output I showed above, it wasn't the ALEC stack that was being used--an ElasticsearchContainer object was instantiated, but the container was never actually created or started in this case.

Thanks @deejgregor ! this is now merged in main branch.


Symfony 2.8/3.0 compatibility

Easy question: is this bundle ready for Symfony 2.8/3.0 project?

It is for Symfony 2.8, but you may have deprecation warnings.
It may not be for Symfony 3.0, we would have to fix things first.
You could update / create your project using Symfony 2.8 to be sure about this :)

@chteuchteu already on it, Symfony 2.8 project working on setup now!

Thanks! I'll check deprecation warnings to fix them if necessary

thx, I will keep you posted if found anything ;)


Ability to observe instructions (setup ContextFactory)

Because the RhinoEngine uses its own RhinoContextFactory, I'm unable to configure the Context to register an instruction count observer in order to prevent infinite loops and long-running scripts:
http://stackoverflow.com/questions/93911/how-can-you-run-javascript-using-rhino-for-java-in-a-sandbox/754792#754792
Either I'd like to provide a custom ContextFactory through RingoConfiguration or register a class to be called before the Context is returned from the factory.

I’m closing this issue because it has been inactive for a long time. This probably means that it is not reproducible or it has been fixed in a newer version. If it’s an enhancement and hasn’t been taken on for so long, then it seems no one has the time to implement this / there is no interest in it.
Please reopen if you still encounter this issue with the current master version or there is a need to address this issue.


timeout of 0 (no timeout) for tests that never resolve closes Mocha with always successful exit-code without finishing reporter output

Timeout 0 and un-resolved async function lead nowhere.
No throw, no error, no next test running, nothing.
describe("should never end", function(){
  this.timeout(0);

  it("should never end", function(done){ });

  it("is here now", function(){
    console.log("Allgood");
  });
});

Current result
R:\>node d:dvp\node_modules\mocha\bin\_mocha test.js
  should never end
R:\>

Expected result
R:\>node d:dvp\node_modules\mocha\bin\_mocha test.js
  should never end
  (???? something ?? waiting undefinitively ?) , but NOT nothing
R:\>

Thanks for the bug report.  This is intended behavior, as this.timeout(0) will disable timeouts completely.

"disabling timeout" mean that because of a faulty test, my test suite app is broken (tests are not failing, nor succedding, code execution just stop and nodejs ends). I cannot understand how you can allow this setting.

@boneskull Disabling timeouts means it will wait until the test completes no matter what (i.e. indefinitely in this case since the test never calls done), right? If so, I can confirm that this is instead stopping execution rather than waiting.
Not only that, but I've discovered something even odder: it doesn't even finish reporting. As in, if you put failing tests before the one that doesn't complete, their error details won't be printed at the end, and if you use a reporter that's supposed to list total count of tests passed/failed/pending it won't print that either. (That would presumably be a bug even if disabling the timeout isn't supposed to wait indefinitely.) But the return code is 0, so it's not crashing Node or anything like that...

@scottfreecode I'm not really sure what you're asking. If your test doesn't complete, and you've disabled timeouts, how can Mocha exit except via a signal? I must not be understanding.
It's possible to, say, intercept the signal and tell the reporter to print a summary before exiting, but I can't tell if that's a good idea or a bad one.
But Mocha executes runnables in serial. If a runnable never ends, nothing else happens. So that may seem like stopping execution, but execution will continue if the runnable eventually completes.
So, you can disable timeouts. Use cases include stuff like debuggers. @131 if you don't want the behavior, don't use timeout(0).

@boneskull That answers my question, thanks -- the behavior you describe is what I expected.
Here's a simpler and clearer demonstration of the issue:
test.js:
it("found the test file", function() {})
it("never ends", function(done) {})

commandline:
node_modules/.bin/mocha --timeout=0 test.js && echo "Mocha completed!"

√ found the test file
Mocha completed!

Came up with a better way to handle this: If Node would close due to the test having no more actions scheduled and not having called done or resolved a returned Promise, then Mocha will fail the test immediately. (In the browser, I haven't found a way to get it to do anything other than hang, so it's still a potential issue for projects that only test in the browser and not Node that also use timeout of 0 and similarly disable Karma timeouts or whatever they're using to run Mocha in the browser...) See #2959 for proposed solution.

I still have this issue to this day. If I walk through each test, the time for execution depends, and if I leave the timeout, it's either too long or too short, so I set this.timeout(0) so each test has enough time and use done() to tell it it's done. My tests do eventually complete, just with rather long times to execute because they do large operations.
If I put breakpoints on the code, and step through each, mocha outputs the time in milliseconds after each test. However, if I just run this without any breakpoints, mocha randomly seems to give some tests times in ms, and others just don't seem to wait for the result - it still seems like there is a hard-coded timeout regardless of what I put, because mocha marks them as done, but I'm sure they're not. As soon as it's stepped through in the debugger, it works.
In this instance, I'm not using Promises, but Observables, and listening to the observable in the test and calling done() when the observable provides response provides an inconsistent output as to whether a test has completed satisfactorily and usually it concerns me that it doesn't have an execution time, which means mocha pretty much just gave up on it from what I can see.
Is there any understanding as to what causes this? Currently running latest version of mocha with NYC.

If Mocha's marking the tests as complete and outputting the summary at the end, then it's not the same issue as this one (which is Mocha closing altogether, no more reporting anything)... Think you could put together a minimal code example that causes it, for us to take a look at? If so, a fresh issue for tests that shouldn't complete but eventually pass when this.timeout(0) would be great.
(Tangentially, the slow setting controls when Mocha prints the time a test took, or at least it's supposed to. It'll print in red if the slow time is passed or yellow if half the slow time is passed, if I recall correctly. You can fiddle with that to get it to print time more consistently if you want to see it, or to ensure it doesn't print time unless something's out of the ordinary for a test if you normally don't want to see it, or make it at least twice the timeout to have it never print time at all.)

This issue still seems to be outstanding from 2 1/2 years ago which seems surprising as I have just run into it again to day.  How does everyone else handle it?
I have a series of tests for a set of code which was working a while ago.  However I have been doing development and let the tests fall into disrepair.  So today I have decided to re-run them and fix any errors.  I am using Node 10.15.3
With a normal run a few of my tests are failing with a timeout failure.   To and try and debug them I am running the very same tests with the --no-timeouts flag (I started with actually this.timeout(0) in the tests with the same result, but realised I had the command line flag option and removed the this.timeout(0) from the tests).
With timeouts in place all the test run, those that fail are printed out in red and I get the summary of x passing y failing, and then a list of each test and why it failed (because of timeout).
As soon as I run with --no-timeouts set, I get success messages for all tests prior to the first failure and then mocha exits back to the command line, not printing anything more.
As indicated above I think its because there is nothing more left in the node event loop (running in the Visual Studio debugger, that appears to be what is happening).


ZMQ Error when running locust in distributed mode

Describe the bug
I have a simple locust setup with a master and 50  slave workers. Everything seems fine but whenever the workers start loading, I get a ZMQError. I'm not sure if this is something I'm doing wrong on my end or from locust.

Expected behavior
Workers should be loaded without any error.
Actual behavior

Steps to reproduce
# master
locust -f locustfile.py --master

# workers
import subprocesses
processes = []
for _ in range(50):
    print('Starting worker : {worker_id}')
    s = subprocess.Popen([
        'locust', '--loglevel', 'debug', '--worker', '-f', "locust-scripts/simple.py",
        '--master-host', "<IP_ADDRESS>", '--host', None
    ])
    processes.append(s)

for s in processes:
    s.communicate()

Environment

OS: Mac OS
Python version: 3.8
Locust version: 1.0.2
Locust command line that you ran: locust
Locust file contents (anonymized if necessary):

class SimpleBehavior(TaskSet):

    @task
    def index(self):
        self.client.get('/')

class MyLocust(HttpLocust):
    task_set = SimpleBehavior
    min_wait = 0
    max_wait = 0

Have you tried setting --master-port explicitly in your workers process?

Have you tried the solutions suggested by @TanmayNakhate here https://github.com/locustio/locust/issues/1200 ?
Do the suggestions one at a time - in case you manage to fix it, I want to know which one helped so we can fix/document it :)

wait, I see now that you are on macos, not linux. Hmm... Maybe pip3 install -U pyzmq ?

--master-host defaults to <IP_ADDRESS>, so that parameter should not be needed.

Is it the same if you just launch a single worker process manually?

What's with the ..., '--host', None That doesnt really run, does it?

It runs. The None is really just a placeholder I used while asking the question. I'm gonna try getting the latest version of pyzmq and see if that works. Thanks.

You dont happen to have any env vars or locust.conf settings, do you? The error seems to happen when pyzmq cannot resolve the host it's trying to talk to.

I've tried installing the latest version of pyzmq. The error still persists. Also, I do not have any locust.conf.  I can also confirm this error persists when locust is run in a kubernetes pod. The only locust related env vars I have in docker is LOCUST_FILE and MASTER_HOST.

Which version of pyzmq are you on now?
Can you try to print the master_host/port  from within your locustfile? (or by manually adding a print statement before line 599 in runners.py)

Perhaps this is related somehow? https://github.com/zeromq/pyzmq/issues/1326 (but it seems unlikely)
When you run in kubernetes, is it possible the master is not reachable/resolveable from the workers?
try doing this on your mac:
import zmq
zmq.zmq_version()

Im not sure, but I think it is possible to have a new version of pyzmq but an old version of the underlying zmq library.
I have pyzmq version 17.1.2 and zmq_version() 4.2.5

[2020-06-25 15:42:06,184] psr-test-psr-testing-master-8xd45/ERROR/locust.runners: RPCError found when receiving from client: ZMQ interrupted message
[2020-06-25 15:42:06,555] psr-test-psr-testing-master-8xd45/INFO/locust.runners: Reset connection to worker
Environment:
OS: Mac OS
Python version: 3.8
Locust version: 1.0.3
Pods are running in OpensShift environment
I am running my load test using master, worker architecture.  When I try to run the test for 200 users with 3 workers..Some times all the users hatched.. some times it is hatching only around 170. I am seeing below errors with in the master logs
[2020-06-25 15:42:06,184] psr-test-psr-testing-master-8xd45/ERROR/locust.runners: RPCError found when receiving from client: ZMQ interrupted message
[2020-06-25 15:42:06,555] psr-test-psr-testing-master-8xd45/INFO/locust.runners: Reset connection to worker
Can anyone please help me?

Hi @nityasantoshi ! Try asking on stackoverflow or posting your own ticket.

Closing due to inactivity


implement where api

fix #224
TODO:
(1) Accept types Field, np.ndarray, list, tuple, for where function and methods
(2) where always returns a MemField, in case of inplace return self after changing internals to match type if necessary, otherwise returning fresh field
(3) categorical is typed down to integer, treat timestamp as float64 fields
For checking for multiple types: isinstance(cond, (list, tuple, np.ndarray))

Codecov Report

Merging #298 (aa7301a) into master (1267885) will decrease coverage by 0.11%.
The diff coverage is 37.14%.

@@            Coverage Diff             @@
##           master     #298      +/-   ##
==========================================
- Coverage   83.24%   83.13%   -0.12%
==========================================
  Files          22       22
  Lines        6149     6226      +77
  Branches     1247     1260      +13
==========================================
+ Hits         5119     5176      +57
- Misses        734      748      +14
- Partials      296      302       +6

Impacted Files
Coverage Δ

exetera/core/fields.py
89.86% <36.36%> (-0.78%)
:arrow_down:

exetera/core/abstract_types.py
63.35% <50.00%> (-0.10%)
:arrow_down:

Continue to review full report at Codecov.

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

Here is the matrix that represent the field type result of where with different pairs of input fields. (col, row) pair reprensent (a, b) in `where(cond, a, b)

NumericField
CategoricalField
IndexedStringField
FixedStringField

NumericField
NumericMemF
NumericMemF
IndexedStringMemF
IndexedStringMemF

CategoricalField
NumericMemF
NumericMemF
IndexedStringMemF
IndexedStringMemF

IndexedStringField
IndexedStringMemF
IndexedStringMemF
IndexedStringMemF
IndexedStringMemF

FixedStringField
IndexedStringMemF
IndexedStringMemF
IndexedStringMemF
IndexedStringMemF

The first part of the TODO was to accept list, tuple, and any sort of ndarray, not just bool arrays. Can we make that change?

Sorry, accidental close

Why does fixed string and numeric go to indexed string? I thought we discussed this and agreed that fixed string and numeric should go to fixed string.

a
b
result
notes

numeric
numeric
numeric

categorical
numeric
numeric

categorical
categorical
numeric
we could support categorical of the same dictionary if the categorcial types are identical

fixed string
numeric
fixed string
type is 'S' where max is max of longest numeric representation and fixed string length

fixed string
categorical
fixed string
see above (and treat categorical like numeric)

fixed string
fixed string
fixed string
longest fixed string

indexed string
numeric
indexed string

indexed string
categorical
indexed string

indexed string
fixed string
indexed string

indexed string
indexed string
indexed string


Ruby 3.2.0: warning: undefining the allocator of T_DATA class Redcarpet::Markdown

I am using Ruby 3.2.0.preview3.
When trying to use redcarpet, I get the following warning.
$ irb
>> require "redcarpet"
true
>> Redcarpet::Markdown.new(Redcarpet::Render::HTML.new)
(irb):2: warning: undefining the allocator of T_DATA class Redcarpet::Markdown

There is more information on this warning and a suggested fix here: https://github.com/ueno/ruby-gpgme/issues/157

Oops, I see this was already fixed in #721. Closing.

Could we get a new gem release to fix this? Considering #721 was merged back in April 2022.

@mattbrictson did you ever figure this out?

@djrobby yes, for the time being I have to depend on the master branch by putting this in my Gemfile:
gem "redcarpet", github: "vmg/redcarpet", branch: "master"

@mattbrictson Yeah, that was my first goto solution but it didn't work either. I'm on ruby-3.2.0. I guess we'll wait and see. Thank you!

Could we get a new gem release for this, please?


Uncaught NotFoundError: Failed to execute 'remove' on 'Element': The node to be removed is no longer a child of this node. Perhaps it was moved in a 'blur' event handler?

[Enter steps to reproduce below:]

...
...

Atom Version: 0.189.0
System: Mac OS X 10.10.2
Thrown From: vim-mode package, v0.43.0
Stack Trace
Uncaught NotFoundError: Failed to execute 'remove' on 'Element': The node to be removed is no longer a child of this node. Perhaps it was moved in a 'blur' event handler?
At /Users/pmedaugh/.atom/packages/vim-mode/lib/view-models/view-model.coffee:8

Error: Failed to execute 'remove' on 'Element': The node to be removed is no longer a child of this node. Perhaps it was moved in a 'blur' event handler?
  at Error (native)
  at /Users/pmedaugh/.atom/packages/vim-mode/lib/view-models/view-model.coffee:8:43
  at Emitter.module.exports.Emitter.emit (/Users/pmedaugh/.atom/packages/vim-mode/node_modules/event-kit/lib/emitter.js:71:11)
  at VimState.module.exports.VimState.pushOperations (/Users/pmedaugh/.atom/packages/vim-mode/lib/vim-state.coffee:209:18)
  at atom-text-editor.commands.(anonymous function) (/Users/pmedaugh/.atom/packages/vim-mode/lib/vim-state.coffee:192:45)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:242:29)
  at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:552:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:392:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:180:20)

Commands
  3x -0:20.8 blur (atom-text-editor.editor.vim-mode.is-focused.command-mode)
     -0:20.0 vim-mode:delete (atom-text-editor.editor.vim-mode.is-focused.command-mode)
     -0:19.9 vim-mode:replace (atom-text-editor.editor.vim-mode.is-focused.command-mode)
  6x -0:19.9 blur (atom-text-editor.editor.vim-mode.is-focused.command-mode)
     -0:07.3 vim-mode:replace (atom-text-editor.editor.vim-mode.is-focused.command-mode)
  3x -0:07.3 blur (atom-text-editor.editor.vim-mode.is-focused.command-mode)
     -0:05.8 vim-mode:move-left (atom-text-editor.editor.vim-mode.is-focused.command-mode)
     -0:04.8 vim-mode:move-right (atom-text-editor.editor.vim-mode.is-focused.command-mode)
     -0:04.2 vim-mode:move-down (atom-text-editor.editor.vim-mode.is-focused.command-mode)
     -0:03.4 vim-mode:replace (atom-text-editor.editor.vim-mode.is-focused.command-mode)
  3x -0:03.3 blur (atom-text-editor.editor.vim-mode.is-focused.command-mode)
     -0:01.1 vim-mode:move-to-previous-word (atom-text-editor.editor.vim-mode.is-focused.command-mode)
     -0:01.0 vim-mode:delete (atom-text-editor.editor.vim-mode.is-focused.command-mode)
     -0:00.5 vim-mode:replace (atom-text-editor.editor.vim-mode.is-focused.command-mode)
  3x -0:00.4 blur (atom-text-editor.editor.vim-mode.is-focused.command-mode)
     -0:00.1 vim-mode:delete-to-last-character-of-line (atom-text-editor.editor.vim-mode.is-focused.command-mode)

Config
{
  "core": {
    "themes": [
      "seti-ui",
      "solarized-dark-syntax"
    ]
  }
}

Installed Packages
# User
autocomplete-plus, v2.9.0
seti-ui, v0.6.3
vim-mode, v0.43.0

# Dev
No dev packages

Just encountered this error myself:
[Enter steps to reproduce below:]

I was using the "Reveal Active File" keyboard shortcut, but I'm not sure that that had anything to do with it. I didn't notice if it actually selected the file in the tree view when I noticed the error message.

Atom Version: 0.194.0
System: Mac OS X 10.10.3
Thrown From: vim-mode package, v0.45.0
Stack Trace
Uncaught NotFoundError: Failed to execute 'remove' on 'Element': The node to be removed is no longer a child of this node. Perhaps it was moved in a 'blur' event handler?
At /Users/dpowers/.atom/packages/vim-mode/lib/view-models/view-model.coffee:8

Error: Failed to execute 'remove' on 'Element': The node to be removed is no longer a child of this node. Perhaps it was moved in a 'blur' event handler?
  at Error (native)
  at /Users/dpowers/.atom/packages/vim-mode/lib/view-models/view-model.coffee:8:43
  at Emitter.module.exports.Emitter.emit (/Users/dpowers/.atom/packages/vim-mode/node_modules/event-kit/lib/emitter.js:71:11)
  at VimState.module.exports.VimState.pushOperations (/Users/dpowers/.atom/packages/vim-mode/lib/vim-state.coffee:207:18)
  at atom-text-editor.commands.(anonymous function) (/Users/dpowers/.atom/packages/vim-mode/lib/vim-state.coffee:190:45)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:238:29)
  at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:519:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:354:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:178:20)

Commands
     -9:27 core:copy (atom-text-editor.editor.vim-mode.is-focused.command-mode)
  4x -9:25.6.0 blur (atom-text-editor.editor.vim-mode.is-focused.command-mode)
     -0:08.4.0 tree-view:reveal-active-file (atom-text-editor.editor.vim-mode.is-focused.command-mode)
     -0:08.4.0 blur (atom-text-editor.editor.vim-mode.is-focused.command-mode)
     -0:07.7.0 tree-view:open-selected-entry (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
  2x -0:07.7.0 blur (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:06.5.0 vim-mode:delete (atom-text-editor.editor.vim-mode.is-focused.command-mode)
     -0:04.5.0 tree-view:toggle-focus (atom-text-editor.editor.vim-mode.is-focused.command-mode)
     -0:04.5.0 blur (atom-text-editor.editor.vim-mode.is-focused.command-mode)
     -0:04.0 tree-view:reveal-active-file (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:03.5.0 core:move-down (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:03.2.0 core:move-up (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:02.7.0 tree-view:open-selected-entry (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
  2x -0:02.7.0 blur (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:01.3.0 vim-mode:mark (atom-text-editor.editor.vim-mode.is-focused.command-mode)
  3x -0:01.3.0 blur (atom-text-editor.editor.vim-mode.is-focused.command-mode)

Config
{
  "core": {
    "disabledPackages": [
      "whitespace",
      "linter-scss-lint"
    ]
  }
}

Installed Packages
# User
autocomplete-plus, v2.12.1
color-picker, v1.7.0
linter, v0.12.1
linter-coffeelint, v0.2.1
linter-erb, v0.1.0
linter-jshint, v0.1.2
linter-ruby, v0.1.4
minimap, v4.8.0
vim-mode, v0.45.0

# Dev
No dev packages

Noticed another report for this in https://github.com/atom/vim-mode/issues/663.

Any work arounds for this?  Quite annoying :(

@chrislovecnm this package has been deprecated.  I would recommend uninstalling this and installing the excellent vim-mode-plus package instead.

As stated in the README, this package is no longer maintained and is deprecated. We recommend that people use the vim-mode-plus package instead. Because of this, we are archiving this repository and closing all issues and pull requests. Thanks very much for your support and contributions!


semantics of negative bitwidths

Multiple places in the P4Runtime specification use 32-bit signed integer fields for bit widths. Is this a mistake? Are there intended semantics for negative bit widths?

I was pretty sure we discussed this at a WG meeting a while back. I had to dig deep, but I did eventually find a discussion pre-dating the 1.0 release, in which we decided to stick to using unsigned integers there. This is the link to the minutes (September 26th 2018): https://docs.google.com/document/d/1yMOzmIOJo4_q2yCc1_eGcniag-Q7w2F_f3kKu9JB64c/edit#heading=h.qraa5mhgicfr
And here is a copy of the relevant part of the transcript:

Protobuf best practices: uint vs int?
Antonin: we are consistently using int32 - and not uint32 - for “unsigned” integer entities (e.g. length, bitwidth…), why?
Tom: after doing some research internally, it seems that it is mostly for historical reasons; some languages (e.g. older versions of Java) did not have native unsigned integer types
Konstantin: for C++, Google style guide advises against using unsigned integer types
Antonin: probably “safer” to use int32 (easier to catch errors in the server)
Decision: stick with current choice and prefer int32 to uint32

We should probably consider documenting this in the spec, and we can possibly revisit it for P4Runtime 2.0 if needed.

Thanks for the explanation!


Kyuubi Spark Engine/TPC connectors support Spark 3.4

Why are the changes needed?

Add CI for Spark 3.4
Kyuubi Spark TPC-DS/H connectors support Spark 3.4

How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[x] Run test locally before make a pull request

Codecov Report

Merging #4741 (6599b1c) into master (ccacb33) will decrease coverage by 0.08%.
The diff coverage is n/a.

:exclamation: Current head 6599b1c differs from pull request most recent head 6c5c530. Consider uploading reports for the commit 6c5c530 to get more accurate results

@@             Coverage Diff              @@
##             master    #4741      +/-   ##
============================================
- Coverage     58.09%   58.02%   -0.08%
  Complexity       13       13
============================================
  Files           581      581
  Lines         32325    32318       -7
  Branches       4308     4316       +8
============================================
- Hits          18780    18753      -27
- Misses        11743    11762      +19
- Partials       1802     1803       +1

see 15 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

Thanks, merged to master


dark mode

Complete Dark Mode
Thank you for contributing to our project! Please provide a summary of your changes and reference any related issues below.
Issue Numbers: Fixes #183, Fixes #170
🛠 Type of Change

[ ] 🐛 Bug fix
[x] ✨ New feature
[ ] 🚨 Breaking change
[ ] 📚 Documentation update

✅ Checklist
To ensure a smooth review process, please check off each item as you complete it:

[x] Code Style: My code adheres to the project’s style guidelines.
[x] Self-Review: I have reviewed my own code and made improvements.
[x] Comments: I’ve added comments to explain complex or non-obvious parts of the code.
[ ] Documentation: I’ve updated the documentation to reflect my changes.
[ ] Warnings: My changes introduce no new warnings.
[ ] Tests: I’ve added tests to verify that my changes work as expected.
[x] Passes Locally: All new and existing unit tests pass on my local machine.

We appreciate your contributions! If you have any questions or need further assistance, feel free to reach out.

Add Screenshots here or a video showcasing what you changed @kairveeehh

dark.pdf
light.pdf
@cb7chaitanya  attached the screenshots

The marquee is looking odd in dark mode, rest of it looks fine

The marquee is looking odd in dark mode, rest of it looks fine

Sure I'll try making it better any suggestions are welcomed.

@cb7chaitanya  you mean this part right?

Yes @kairveeehh
In the dark background, this is looking odd

@kairveeehh Resolve conflicts

Yes sir , by tonight I'll


Revive and Update the package

This PR revives and updates the package, enhancing compatibility with the latest PHP (8.1, 8.2, 8.3) and Laravel (10.x, 11.x) versions, while also improving testing, code quality, and documentation.
Key Changes:

Compatibility Updates:

Updated composer.json to support new PHPUnit and Orchestra versions.
Removed composer.lock to resolve version conflicts, added to .gitignore.
Set minimum-stability to stable.
Dropped support for PHP 8.0 (End of Life).

CI Enhancements:

Added GitHub Actions for multiple PHP version tests (8.1, 8.2, 8.3).
Integrated PHPStan analysis and automatic code style fixes (PSR-12).
Automated dependency updates and changelog generation.

Code Improvements:

Fixed migration issues by setting static names for repeat installations.
Improved api.php code and added tests.
Ensured all code is PHPStan error-free.

Documentation:

Updated README with a code style test badge, improved usage details, and social preview settings.
Added note on handling PHPUnit deprecations.
Encouraged users to star the repository on GitHub.

Other Updates:

Added LICENSE.md (MIT License) and new issue templates.
Set up GitHub Actions for automatic changelog updates and dependency management.

Additional Requests:

Enable Discussions: To foster community interaction and collaboration.
Set Social Media Preview: Add docs/package-social-preview.png for enhanced sharing on social platforms.

Good job, thank you for the PR

Thank you, it was a pleasure. Please remember to draft a new release, possibly a major version 4.0.0, as it no longer supports PHP 8 or Laravel 9.
Draft New Release

@n4ss1m Done


NimBLE OTA and Android app connect and instantly disconnect

Hi, I'm trying to get "esp32_nim_ble_ota.ino" and the Android app "ESP32 OTA BLE" working,
unfortunately, immediately after connecting to the ESP32,
"Connected (and one second after) disconnected" appears in the console,
and as a result, the new firmware cannot be uploaded.. the code is not modified in any way .. it's pure code from here and the app comes from the google store
Please help =( Tom

Looks like you had previously connected the esp32 to your phone using different BLE services which might have been cached. You will have to check using nRF Connect app and refresh the services.

wow that really was it =) sorry, I've only been playing with BT/BLE for a while and I don't know much about it
thank you for your help ;) Tom

so when I try to OTA update using BLE, I always have an incomplete file =(
Incomplete
Expected: 624384 Received: 615168
on the phone side, it looks like everything is in order .. the only change to the code (for bin for OTA test) is a change to the serial print text

@fbiego I am also getting this issue where the ESP32 disconnects almost immediately. I went into nRF connect app and can connected to the ESP32 just fine and then selected 'refresh services'. however, going back to the ESP32 BLE OTA app it still connects for a moment and then disconnects.
Is there anything else I can try out? this was working last Friday, but now for some reason it started dropping it. I'm using the same Android phone for testing.


Change date range

Implementing a option to choose whether you want your statistic for the last day, last week or last month.

Not gonna be part of this project
Gonna implement it on a different project with a little bit different scope


DPR2-208 batch job

@koladeadewuyi-moj I've brought up all the issues with @dominic-messenger-moj so that we can either raise Jira issues or add detail to existing issues. I'll also remove the FIXME and TODO comments I added from the code.


Callback function to batch task results and exceptions

Thanks Luke – I added just a couple of comments
From: Luke Ashworth @.>
Sent: Wednesday, May 17, 2023 9:05 PM
To: fransking/flink-statefun-tasks-embedded @.>
Cc: fransking @.>; Review requested @.>
Subject: Re: [fransking/flink-statefun-tasks-embedded] Callback function to batch task results and exceptions (PR #23)
@lukeashworth1 https://github.com/lukeashworth1  requested your review on: #23 https://github.com/fransking/flink-statefun-tasks-embedded/pull/23  Callback function to batch task results and exceptions.
—
Reply to this email directly, view it on GitHub https://github.com/fransking/flink-statefun-tasks-embedded/pull/23#event-9273268961 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHIOFDAXGPQPIQ4537NQ5DXGUVNHANCNFSM6AAAAAAYFSDJ7A .
You are receiving this because your review was requested.  https://github.com/notifications/beacon/ABHIOFBR2LKNYXYO6P272BDXGUVNHA5CNFSM6AAAAAAYFSDJ7CWGG33NNVSW45C7OR4XAZNWJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XKUY3PNVWWK3TUL5UWJTYAAAAAEKF23LQQ.gif Message ID: @.*** @.***> >


Update tested version

Currently, tox.ini has:
envlist = {py26}-{14,15,16},{py27}-{14,15,16,17},{py33,py34}-{15,16,17},docs,flake8

We should probably drop official support for Python 2.6 entirely, and start testing Django 1.8 and 1.9. We should also probably stop testing Django 1.4-1.7, since those are also EOL (see the docs). We should also start testing with Python 3.5.
This will help with work on #63.

Partially addressed by ff64fb8 - I still need to add tests for Django 1.9, and Python 3.5.

All set. I believe tox doesn't support Python 3.5 at present, so we'll leave this for now - we've got tests for Django 1.9 in, thanks to @edelvalle's work on #62.

It does not, but when it does, py35 can be added to the tox file.

Yup - thanks @edelvalle (my "I believe" should really have been written as "@edelvalle tells me" :)).


Package fmf root into the source tarball as well

Let's package .fmf as we'll be using the dist-git-source
feature to extract tests from the sources in the Fedora CI.
Also remove all .pytest_cache directories before archiving.

testing-farm:centos-stream-8 failed due old fmf missing Validate function. Since this PR is adding unit test it should set minimal fmf version accordingly, right?

Hmmm, the package just isn't there:
Extra Packages for Enterprise Linux 8 - x86_64   12 kB/s | 4.7 kB     00:00
No matching package to install: 'python3-fmf >= 1.1.0'
Not all dependencies satisfied
Error: Some packages could not be found.

Probably some outdated repo configuration in copr? I can install fresh fmf from epel just fine...

Ha, it's taking the fmf from the packit copr:
 python3-fmf                                  noarch  1.0.0-3.20220531193404927913.pr166.10.gdc4ecb0.el8          copr_base           68 k


Carousel

carousel not showing up in storybook.  could you help investigate?
added a couple of notes of what I believe sets a slide "active" and visible.

when you say animation is off. do you mean between the indicator dashes and the each slide coming into view?  or the animation is "janky" in general?


Update deprecation message of ToolbarActionItem["icon"]

Changes
This PR fixes #1006 by updating the deprecation message.
Testing
Added additional unit tests to ensure that iconNode is preferred over the deprecated icon property.

@Mergifyio backport release/4.16.x