[BUG] JSONPath.set not working for array filter expressions

Problem description
We expect JSONPath.set to successfully set a value into the first segment of a array filter expression but nothing happens.
Environment information
Version info: Fastjson2 2.0.31
Steps to reproduce
Example JSON file:
{
  "posts": [
    {
      "id": 1,
      "title": "ABC"
    },
    {
      "id": 2,
      "title": "DEF"
    }
  ]
}

Example Java code:
import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONObject;
import com.alibaba.fastjson2.JSONPath;

public class JsonPathApp {
    public static void main(String[] args) {
        JSONObject posts = JSON.parseObject(Main.class.getResourceAsStream("/posts.json"));
        JSONObject target = new JSONObject();

        JSONPath jsonPath =<EMAIL_ADDRESS>== 1)]");
        Object source = jsonPath.eval(posts);
        jsonPath.set(target, source);

        System.err.println(target); // Actual: {} | Expected: {"posts":[{"id":1,"title":"ABC"}]}
    }
}

Expected correct result
In above code eval is evaluated correctly but set does nothing. Instead we have to call set using JSONPath.of("$.posts") which we do by modifying existing JSONPath string<EMAIL_ADDRESS>== 1)]", "["). This might be unstable in case of nested array (multiple '[' character) so we expect the library to handle this case.
We could have handled the case ourselves if JSONPathTwoSegment class would expose value first which in this case is partners. There are no methods in JSONPath abstract class to 1) expose all segment paths and 2) determine if it is an array filter expression either so everything is internal to the library with no access by users.

https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.32-SNAPSHOT/
update version to 2.0.32-SNAPSHOT, use setCallBack, such as:
public class Issue1469 {
    @Test
    public void test() {
        JSONObject posts = JSON.parseObject(STR);

        JSONPath jsonPath =<EMAIL_ADDRESS>== 1)]");
        jsonPath.setCallback(posts, e -> {
            JSONObject object = ((JSONObject) e).clone();
            object.put("title", "XXX");
            return object;
        });

        assertEquals(
                "{\"posts\":[{\"id\":1,\"title\":\"XXX\"},{\"id\":2,\"title\":\"DEF\"}]}",
                posts.toJSONString()
        );
    }

    static final String STR = "{\n" +
            "  \"posts\": [\n" +
            "    {\n" +
            "      \"id\": 1,\n" +
            "      \"title\": \"ABC\"\n" +
            "    },\n" +
            "    {\n" +
            "      \"id\": 2,\n" +
            "      \"title\": \"DEF\"\n" +
            "    }\n" +
            "  ]\n" +
            "}";
}

Thanks @wenshao, I see setCallback is supported for JSONPathFilter in this version but I am not sure if it can fix our issue. During setCallback I am not aware of current path in JSON tree so that I can put it in the according target JSONObject.

We basically try to achieve the opposite of JSONPath.remove because JSONPath.eval does return {"id":1,"title":"ABC"} instead of {"posts":[{"id":1,"title":"ABC"}]}. Is it possible for eval to return the matching JSON tree? Then we would not need support for set.

setCallback support BiFunction, such as :
  @Test
    public void test1() {
        JSONObject posts = JSON.parseObject(STR);

        JSONPath jsonPath =<EMAIL_ADDRESS>== 1)]");
        jsonPath.setCallback(posts, (parent, value) -> {
            JSONArray array = (JSONArray) parent;
            array.add(JSONObject.of("id", 3));
            return value;
        });

        assertEquals(
                "{\"posts\":[{\"id\":1,\"title\":\"ABC\"},{\"id\":2,\"title\":\"DEF\"},{\"id\":3}]}",
                posts.toJSONString()
        );
    }

@wenshao @akelsch 是我们同事，你可能没有理解我们的问题，我们能不能通过微信或者钉钉通话一下 给你解释一下; 如果方便的话，您可以留一下您的微信或者钉钉号吗

@wenshao @akelsch 是我们同事，你可能没有理解我们的问题，我们能不能通过微信或者钉钉通话一下 给你解释一下; 如果方便的话，您可以留一下您的微信或者钉钉号吗

我的微信： wenshaojin

https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.33-SNAPSHOT/ update version to 2.0.33-SNAPSHOT, JSONPath now support getParent, such as:
JSONPath path =<EMAIL_ADDRESS>== 1)]");
JSONPath p1 = path.getParent();
assertEquals("$.posts", p1.toString());

JSONPath p2 = p1.getParent();
assertEquals("$", p2.toString());

JSONPath p3 = p1.getParent();
assertNull(p3);

@akelsch is it what you want?

Actually yes, this is really useful because we can use JSONPath.getParent for JSONPath.set operation. I did quickly test it and it seems to work 👍  For<EMAIL_ADDRESS>== 1)]" is also returns "$.abc.posts" which is exactly what I would expect. Thank you!
How do you suggest should we determine if it is a array filter expression and we have to use getParent? We cannot use instanceof JSONPathFilter or similar because the class is not public right? We could check raw JSONPath string for "[" I guess.

https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.33-SNAPSHOT/
update snapshot version 2.0.33-SNAPSHOT, JSONPath now support endsWithFilter, such as:
JSONPath path =<EMAIL_ADDRESS>== 1)].id");

assertFalse(path.endsWithFilter());

JSONPath p0 = path.getParent();
<EMAIL_ADDRESS>== 1)]", p0.toString());

assertTrue(p0.endsWithFilter());

JSONPath p1 = p0.getParent();
assertEquals("$.posts", p1.toString());
assertFalse(p1.endsWithFilter());

JSONPath p2 = p1.getParent();
assertEquals("$", p2.toString());
assertFalse(p2.endsWithFilter());

@wenshao sorry for the delay. This works perfectly and covers our use case, thank you. Please release it to Maven Central for productive usage.

https://github.com/alibaba/fastjson2/releases/tag/2.0.33
2.0.23 released

@wenshao it seems not to work with published version anymore?
JSONPath p3 =<EMAIL_ADDRESS>== 1)]");
assertTrue(p3.endsWithFilter());

This fails because p3 is instance of JSONPathTwoSegment but implementation is only done for JSONPathMulti. Could you have a look?


Improve scrap amount calculation

Instead of a fixed chance to give a uniformly chosen amount of scrap, choose a range to simulate the true distribution which would occur for an independent scrap chance per ingredient item.

It seems there's some math issues with high ingredient amounts.  Please don't merge just yet, I'll fix those.

That commit fixes the math issue.


Observer for Sugar Orm (Like a LoaderCallback)

Hello everybody.
I need use an observer finds that my database was modified. This exists natively with Android cursor.
It is a LoaderCallback.
How I use this with SugarOrm? Does anyone have any examples?

I didn't manage to figure this out either. It is a pretty important feature, so any suggestions are welcome.

Yes it is weird how it is not implemented!


Refactor remaining tabs from rke2.vue into separate tabs

Is your feature request related to a problem? Please describe.

Refactor "Add on config", "Advanced", "Etcd", "Networking", "Registries", "Upgrade" tab into separate components.
Describe the solution you'd like

Describe alternatives you've considered

Additional context

Note for QA - This affects create/edit of RKE2 clusters for all providers

This is validated on Rancher v2.8.5 includeing: "Add on config", "Advanced", "Etcd", "Networking", "Registries", "Upgrade"
The pass on v2.8.5 helps identify possible regressions on the following:

There's still a pending quick pass left on v2.9-head after a backend fix.

This area is also covered by automation in the cluster manager specs.
Manual validation was done too on v2.9-637346f76ea2bb71a82ea6e00a2779f61610a2a4-head
Pass.


POC remote caching

Tested manually with https://github.com/buchgr/bazel-remote
$./bazel-remote-2.4.3-darwin-arm64 --dir dir --max_size 1 --disable_http_ac_validation

$ cp -R example/basic/1-simple-scala example/basic/1-simple-scala-copy

$ ./mill -i dev.run example/basic/1-simple-scala -i --remote-cache-filter __.compile --remote-cache-url http://localhost:8080 run --text hello

$ ./mill -i dev.run example/basic/1-simple-scala-copy -i --remote-cache-filter __.compile --remote-cache-url http://localhost:8080 run --text hello

This is a proof of concept that demonstrates the ability for multiple different checkouts of the same repo to share the remote cache. After running the commands above, we can look at 1-simple-scala-copy/out/mill-profile.json to see that compile was cached, despite being run on a "clean" repository.  Removing the --remote-cache-filter and re-doing the above steps after removing the out/ folders demonstrates that everything is cached except mill.scalalib.ZincWorkerModule.worker and run, which is to be expected. Not merge-ready, but it demonstrates the approach and can probably be cleaned up and fleshed out we decide to move forward with it.

I introduced a --remote-cache-filter to allow the user to select what targets they want to cache. Caching is not always a win - e.g. making a HTTP request can be more expensive than locally computing a small target - so this exposes a knob to tune the cache usage for the targets that really benefit from it. There are probably other ways we could try and tune things e.g. setting minimum-durations or max-output-sizes for cache uploads.

--remote-cache-salt allows the user to pass in whatever they want as an additional cache key, to substitute anything that Mill is not able to itself detect. e.g. we may want different Java version to not share the cache, or not share cache between dev/staging/prod environments, or whatever.

It took some fiddling to make input hashes consistent across different folders.

I made JsonFormatters.pathReadWrite to serialize relative paths whenever the path is within os.pwd
I tweaked the CodeSig logic to ignore any string literals that et passed to sourcecode.File, similar to how it already ignores integer literals passed to sourcecode.Line, since most of these are just logging. I then had to wrap a few usages where we actually care about the paths in T.inputs, e.g. millBuildRootModuleInfo

We currently bundle up the entire .dest folder if present and ship it to the remote cache. This can probably be optimized to only upload things referenced via PathRefs

We need some way to annotate things like resolvedIvyDeps to ensure they are not remote cached, so they can be downloaded anew on each machine.

We use --disable_http_ac_validation to allow us to store unstructured blobs in the remote cache, rather than following the official bazel remote cache protobuf protocol (https://github.com/bazelbuild/remote-apis/blob/6c32c3b917cc5d3cfee680c03179d7552832bb3f/build/bazel/remote/execution/v2/remote_execution.proto). We can probably adopt that if necessary, but I skipped it for this POC because wiring up the .proto files into Mill was pretty troublesome

The remote cache will likely need a lot more configuration in future: certificates, authentication, HTTP proxy config, etc.. This stuff cannot live in any build.sc, even a meta-build, since it is necessary to evaluate the build.sc's tasks, unless we accept that the meta-build is never going to be remote-cached. The alternative is to put it in some JSON/YAML file somewhere

How does you deal with absolute paths? I though, we need to adapt PathRef before consideing any remote caching.

From what I can tell, PathRef already ignores the enclosing path; it only cares about relative paths within the destination folder
That's not to say this already works across different folders though.  Should be fixable

@lefou I've got this working end-to-end(-ish). Still pretty rough, but it would be great if you could take a look. Seems like a pretty small change overall, but it raises some questions (Is this the correct way of handling PathRefs? How do we mark targets as do-not-cache? How should we configure the remote cache client?) that are probably worth discussing

I never used bazel or bazel-remote, but am interested into this topic as well. How is the cache handling older results? Is it only storing the latest result or all until some space/count criteria is met? Does that mean, git bisecting may always find cached results in the best case?
I think a sub-goal of getting remote caching to work is making the out directory relocatable. So when we're going to decide some implementation details, we should favor those that also improve this goal.

  * I made `JsonFormatters.pathReadWrite` to serialize relative paths whenever the path is within `os.pwd`

Without having inspected that change yet, I think we should always encode paths as "relative" to some "base", and the first "base" I can imagine is the local workspace. Another it the (relocateable) out dir. Coursier caches are good candidates, too. We should specify supported bases and encode their standardized name in the serialized path. Results pointing to other paths shouldn't be cacheable by default.

  * I tweaked the `CodeSig` logic to ignore any string literals that et passed to `sourcecode.File`, similar to how it already ignores integer literals passed to `sourcecode.Line`, since most of these are just logging. I then had to wrap a few usages where we actually care about the paths in `T.input`s, e.g. `millBuildRootModuleInfo`

I'm not really sure, this is the right thing. This seems like an acceptable trade to avoid recompilation in Mill's buildscripts, but for shared users code, this is probably wrong. This may result in wrong log messages in production code, for example. Instead, we should strive for some alternative to sourcecode.File containing a relative path (to the source root), or something like that. (Here I assume, the issue is the changing paths due to different absolute location of source files on the developer machine.)

* We currently bundle up the entire `.dest` folder if present and ship it to the remote cache. This can probably be optimized to only upload things referenced via `PathRef`s

Agreed, the latter may reduce size and avoid leakage of temporary results. Persistent targets are probably a special case, as we can't reason about what is needed by an persistent target to fulfill it's requirement to be transparent.

* We need some way to annotate things like `resolvedIvyDeps` to ensure they are not remote cached, so they can be downloaded anew on each machine.

Here, the returned result contains PathRefs pointing outside the out dir. We either ignore those (as not cachable by default) or try to match them to other known base directories like a coursier cache. But even in that case, it's probably enough to just cache the json and distribute the coursier via some dedicated shared cache, in neccesary. We already have support in the Evaluator to deal with PathRef which can't sucessfully revalidate when de-serialized. This should be enough to try to re-use coursier cached artifacts but re-evaluate then in case they are missing or inconsistent.

* The remote cache will likely need a lot more configuration in future: certificates, authentication, HTTP proxy config, etc.. This stuff cannot live in any `build.sc`, even a meta-build, since it is necessary to evaluate the `build.sc`'s tasks, unless we accept that the meta-build is never going to be remote-cached. The alternative is to put it in some JSON/YAML file somewhere

I think, this should be part of a local Mill configuration. We already have the plan to introduce a Mill config file (https://github.com/com-lihaoyi/mill/discussions/1226). If we apply best practices for Linux tools, we could have some system-wide / user-specific / project-specific override concept, so the user can keep this configuration in a separate safe place.

I never used bazel or bazel-remote, but am interested into this topic as well. How is the cache handling older results? Is it only storing the latest result or all until some space/count criteria is met? Does that mean, git bisecting may always find cached results in the best case?

It's up to the cache, but yes, git bisect, and in general checking out old branches should hopefully hit the cache. bazel-remote lets you configure the cache size, after which it evicts things from the cache. It can also be configured to have cloud storage backends e.g. S3

Hey there. We make Buildless, I saw your comment in the discussion. We'd love to help test this on the server implementation side. Our gRPC services for Bazel should be up and running soon. Would it be helpful to build locally and give it a shot, or is it too early?
We spend a lot of time on build caching, so we may be able to provide some resources. For instance, we published the Bazel remote APIs as a Buf module, which might let you depend on the generated protos through a Maven dependency if you want to. This is generated directly from the protos and can be updated from that repo, which has now been handed over to the Buf and Bazel teams to maintain.
On the headers and auth side, certainly adding regular headers would cover any auth needs (we support HTTP basic, Authorization with bearer, X-API-Key, etc., since some tools are more customizable than others). Whatever is easiest there would work for us if there is interest in enabling integration with our service and local tools.
Anyway, this looks awesome, obviously great work. I'm a lay follower of Mill but this gets me more interested 😄


Fix projections tests

Investigate why projection doesn't work as it should and fix TestQueryProjection

Is this still an existing issue? Some of the existing tests seem to pass.


Documentation Integration

⚠ Please verify that this feature request has NOT been suggested before.

[X] I checked and didn't find similar feature request

🏷 Feature Request Type
UI Feature
🔖 Feature description
As a Administrator I want the possibility to get - in case of an incident - as fast es possible to the corresponding documentation, to reduce downtime as much as possible
✔ Solution
In my use case a notes-section inside each monitor would be more than helpfull. This section should interpret markdown-code to enable deeper integration via hyperlinks.
❓ Alternatives
Add some text into the description of the monitor.
But:

The idea of this fiel is to descripe the service and its intention in 1-2 sentences
No Markdown / hyperlinks possible

📝 Additional Context
EXAMPLE
Typical issues and solutions

This is the issue: Typical soultion

Main Dokumentation

Configuration

I think this should be is a part of #646 => closing as a duplicate
Related #3008


CryptoProviderFactory.IsEcdsaAlgorithmSupported() doesn't ensure algorithms are compatible with the curves used by ECDSA keys

IsEcdsaAlgorithmSupported returns true if the algorithm corresponds to ES256, ES384 or ES512 but doesn't ensure the curve type of the ECDSA key is compatible with the specified algorithm.
ES256 -> P-256 (= ECCurve.NamedCurves.nistP256)
ES384 -> P-384 (= ECCurve.NamedCurves.nistP384)
ES512 -> P-521 (= ECCurve.NamedCurves.nistP521)
/cc @brentschmaltz @polita

moving to 5.1.4

@mafurman why was this thread closed? I don't see in the PR diff any chance impacting the APIs mentioned in this ticket.

@PinpointTownes @mafurman Yes, we need a check between 'algorithm' and 'CRV'. I would argue this is not a IsEcdsaAlgorithmSupported function. As this describes what the runtime is capable of.
The check you are looking for is matching CRV with Algorithm. I think this is covered with the combination of GetKeySize and ValidateECDSAKeySize.

Let me remind you what the requirement is, in case you'd have missed it (well, this ticket was opened almost 2 years ago so...):
I need CryptoProviderFactory.IsSupportedAlgorithm(string algorithm, SecurityKey key) to return false if key is an ECDSA key AND algorithm an ECDSA algorithm that uses a curve different than the one associated with key.

We will add tests to make sure that contract is enforced.


[ASan] Handle the (invalid) return value of posix_memalign

With ASan enabled, posix_memalign returns -1 upon invalid parameters or when not enough memory is available. This bug is reported with compiler-rt here: https://bugs.llvm.org/show_bug.cgi?id=36510
Still, if we deal with the invalid -1 return value in Phobos, we can continue testing with ASan enabled.
I'll keep an eye on the compiler-rt bug, and will remove the Phobos workaround when a fix lands in compiler-rt.
It looks like this workaround is only needed on OSX.
Test code:
import std.stdio;

void main()
{
    import core.sys.posix.stdlib : posix_memalign;

    void* result;
    auto code = posix_memalign(&result, 1, 0);
    writeln(code);

    auto code2 = posix_memalign(&result, 32, size_t.max);
    writeln(code2);
}

Test with: ASAN_OPTIONS=allocator_may_return_null=1  ldc2 -fsanitize=address -run memalign_testcase.d

@andralex would something like this be upstreamable?

@JohanEngelen Not sure I understand the context and question. Upstream to where? Please advise, thx!

@andralex Upstreamable into Phobos (dlang)

@JohanEngelen affirmative!

https://github.com/dlang/phobos/pull/6242


Prototype of library changes for self-signed JWTs

This assumes:

ChannelPool has a constructor with an additional Boolean parameter
ClientBuilderBase has a protected Boolean property of UseJwtAccessWithScopes

The generated classes for both Speech and Shell have been modified
in the same way (indicating what we'd need to do in the generator).
Additionally, a manual partial class in SpeechClient shows what we'd
need to do in order to disable self-signed JWTs for a specific API.
(I'm assuming we don't have this information in the generator. If
we ever do know it in the generator, we can just generate the
right thing and remove the partial method.)

cc @TimurSadykov - I'm now working on the generator change for this.

Closing now this is implemented in #6965

@jskeet Many thanks!


Fixed issue with precomilation

This PR resolves issue https://github.com/domaindrivendev/rswag/issues/68
I am not a big expert in swagger-ui, but what found in:

https://github.com/d4be4st/swagger-ui_rails/blob/master/lib/swagger-ui_rails/engine.rb
https://github.com/kendrikat/grape-swagger-ui

o2c.html is outside precompilation

Great catch & thx


Set TSConfig Lib Defaults

Let's just turn on everything. Something like ['dom', 'dom.iterable', 'esnext']?

As long as that doesn't confuse people about what browser APIs are actually available in their target browsers. You could also set target to es6 and it would infer some reasonable libs for you (but again APIs would probably break in IE11)

We keep getting issues of people confused why TypeScript is telling them about valid errors. 😅
I figure if people know about lib and how it works, they'll know to switch it to what they actually want.

Yeah good call. I actually ran into an obscure error reported because of it yesterday when porting to react-scripts since I was using async / await. It complained about Promise not being available but the formatting was really strange.

May want to double check what's included in esnext lib, because i think it includes stage 0 proposals?

Eh, they're just browser APIs I don't think it's a big deal.

Thanks for this! It would be really awesome if this could be released in a new create-react-app version, because I just spent a really long time trying to figure out why I was getting type errors with Array.includes, etc. It would have been awesome if my default tsconfig.json had these libs by default. But oh well, it was a great way to learn how it all works.


Add and fix typescript types for recursive

please add a  test usage in typescript tests

I have moved on to other things since this was created. Sorry.


DISTINCT in SQL FIELDS causes Parser Error

Hi,
I have the following SQL statement.
SELECT
    FROM some_table
    FIELDS DISTINCT
           fieldname AS name
    INTO CORRESPONDING FIELDS OF TABLE @result.

which is valid but I am getting the following message with the latest abaplint release.
Statement does not exist in ABAPv755(or a parser error), "SELECT" (parser_error) [E]
The message dissappears when the DISTINCT is removed, or if I rewrite the query to
SELECT DISTINCT
       fieldname AS name
    FROM some_table
    INTO CORRESPONDING FIELDS OF TABLE @result.

Regards,
Ludwig

I'm on it

@stockbal try again, 2.102.53 published

Looks good 👍.
Thanks for the fast fix.


lambda.Alias does not expose the role associated with the lambda.Function

The lambda.Alias should set its role property to the underlying lambda function's role.
Say you have existing code which creates a lambda function with some basic grants:
const myFunction = new lambda.Function(this, 'Function', { .. } );
myBucket.grantReadWrite(myFunction.role);

And then you change this to use an Alias (which implements IFunction) because you want to start using traffic shifting deployments:
const myFunction = new lambda.Alias(this, 'Alias', {
  version: new lambda.Version(this, 'version', {
    lambda: new lambda.Function(this, 'Function', { .. } )
  }
}
myBucket.grantReadWrite(myFunction.role);

I'd expect the function's role to still have the policies granted by the s3 bucket, but they don't because the role associated with the aliased function is never exposed by the alias.

Actually, I'd even venture that the Alias should probably implement IFunction

It does.


Error during install and Reporter unexpected keyword argument 'border'

ArcGIS 10.6.1 Py 2.7.14 install issues and reporter error. Setup.py installs completely until numpy-1.16.2\numpy\core\setup.py.  Presents Error 32. The process cannot access the file because it is being used by another process. Attempted several times and after reboot.
Upon run attempt receive 4 traceback errors shown in attached screencap.

Hi @ErikHiCoGIS, thanks for posting the issue. This error is because you have pandas version that is lower than 0.20.1 required. The border argument was added in later versions. Try running pd.version upon import to verify this. Can you import numpy? pandas relies on numpy so it's worth checking.


Fix resourceName with regex patterns

Choose a PR Template
Switch to "Preview" on this description then select one of the choices below.
Click here to open a PR for a Data Plane API.
Click here to open a PR for a Control Plane (ARM) API.

@ZianWang02 This commit is resolve ResourceName Errors.
Please merge this in to your branch to proceed with ARM swagger review.


Need better documentation for DrawShadow (what is elevation?)

Neither the Dart side Canvas.drawShadow nor the engine side Canvas::drawShadow, i.e. flutter::PhysicalShapeLayer::DrawShadow have any information on how elevation works exactly and I could also not find out what values do what exactly at different scales etc.
The only thing I can say for sure is that the Flutter web implementation of the method behaves completely different than the native version.
Needs better documentation
I think that better documentation for this function is needed in general, but more specifically I would like to know how elevation works exactly - from the native code I would have concluded that values from 0 to 600 make sense because the light source is positioned at z = 600, however, that does not exactly line up with my experiments in native (I gave up on web behavior).
Additionally, it would be useful to know where the light source is positioned - I would assume that it is positioned at (0, 0, 600 * dpr), but I have no idea at this point.

I also asked a question about this - if anyone can answer it, it would already be something because we would have some information about it on the web. Also found this clueless Google Groups topic.


Dedicated Server crash when player tries to use Better End sign as a sign shop

AoF 2.5.9 NA Server.
https://paste.lucko.me/8HGIpPwUSc
Description: Ticking entity
java.lang.ClassCastException: ru.betterend.blocks.entities.ESignBlockEntity cannot be cast to net.minecraft.block.entity.SignBlockEntity
at io.github.gunpowder.entities.GunpowderEvents$init$1.trigger(GunpowderEvents.java:46)
at net.minecraft.server.network.ServerPlayerInteractionManager.handler$zdp000$breakCallback(ServerPlayerInteractionManager.java:1049)
at net.minecraft.server.network.ServerPlayerInteractionManager.tryBreakBlock(ServerPlayerInteractionManager.java:248)
at net.minecraft.server.network.ServerPlayerInteractionManager.update(ServerPlayerInteractionManager.java:103)
at net.minecraft.server.network.ServerPlayerEntity.tick(ServerPlayerEntity.java:379)
at net.minecraft.server.world.ServerWorld.tickEntity(ServerWorld.java:621)
at net.minecraft.world.World.tickEntity(World.java:561)

This issue exists because BetterEnd's ESignBlockEntity does not extend Minecraft's SignBlockEntity. I've opened an issue here to track it, but this is not a bug on our end.


improve nn.checkpoint docs

What does this PR do?
Fixes #2808. Improves the docs for nn.checkpoint/remat by adding an example and adding more context for the methods argument.

Codecov Report

Merging #2837 (211c48e) into main (dfb55c4) will decrease coverage by 0.17%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #2837      +/-   ##
==========================================
- Coverage   81.37%   81.20%   -0.17%
==========================================
  Files          53       54       +1
  Lines        5717     5742      +25
==========================================
+ Hits         4652     4663      +11
- Misses       1065     1079      +14

Impacted Files
Coverage Δ

flax/jax_utils.py
42.85% <0.00%> (ø)

flax/linen/transforms.py
94.14% <ø> (ø)

flax/linen/linear.py
96.89% <0.00%> (-0.67%)
:arrow_down:

flax/training/checkpoints.py
66.17% <0.00%> (-0.25%)
:arrow_down:

flax/linen/partitioning.py
78.94% <0.00%> (-0.13%)
:arrow_down:

flax/linen/spmd.py
84.68% <0.00%> (ø)

flax/linen/__init__.py
100.00% <0.00%> (ø)

flax/linen/recurrent.py
100.00% <0.00%> (ø)

flax/training/orbax_utils.py
55.55% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Automatic Layout Changes Across Multiple Screens

Given the limitations on using separate windows imposed by Electron (the most upvoted feature), maybe an alternative would be to facilitate automatic resizing of windows across multiple screens.
For example, I have two horizontal monitors. I currently maximize VS code across both screens. The screen on the left has my explorer sidebar, and then remainder of the screen is the script I'm working on. On the second monitor (on the right), I manually resize my windows so half is taken up by a workspace segment that displays figures, help, etc. And then the other half is my terminal.
It would be great to have something internal in VS Code similar to Snap Assist on Windows to facilitate working across multiple monitors.
Just an idea. Thanks for working on such an amazing product :)
EDIT: Upon further thought. The feature would do the following (a) active window area across multiple screens, and then (b), split the editors evenly on each screens. Right now the "split editor on right" button will split the editor across the multiple screens.

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


Add Table.create

This isn't finished yet, but I figured making a PR for feedback etc would be a good idea. It needs a docstring, first of all, which I just forgot, but also it doesn't work at all when there's a foreign key in the table. Or maybe I just keep making foreign keys wrong, who knows.

For what it's worth, here's some dummy schemas I was trying to use to test this with, showing me using relationships to the best of my ability.
class Person(Table):
    id = Column(Integer, primary_key=True)
    name = Column(Text)
    cars = Relationship(id, 'car.owner_id')

class Car(Table):
    id = Column(Integer, primary_key=True)
    owner_id = Column(Integer, foreign_key=ForeignKey(Person.id))
    owner = Relationship(owner_id, Person.id, load='joined', use_iter=False)


vkdt: use nativeBuildInputs

Description of changes
make use of nativeBuildInputs. ping @paperdigits
Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

You may set strictDeps = true; in addition, to make sure all inputs are set correctly.

fails to build on darwin and aarch64-linux, can you set meta.platforms and meta.broken as needed ?
Also does the package need both clang and gcc or can it use clangStdenv instead of adding clang in nativeBuildInputs?

thats how it got merged... https://github.com/NixOS/nixpkgs/pull/209803
but sure I added it.


Bug bounty test - PLEASE DO NOT APPROVE. wsdvxx

Bug bounty test - PLEASE DO NOT APPROVE. wsdvxx

Closing this PR as it seems malicious. Please comment if you think otherwise.


Add filtering options to Dashboard view

Is your feature request related to a problem? Please describe.
While it is nice to be able to sort by relevance of the papers, it sorts by relevance from the beginning on. But  to check the most relevant papers of the current year or the last month (or something similar) is not possible. I think this renders the feature of sorting by relevance less useful than it could be.
Describe the solution you'd like
An option in the Dashboard settings where one can choose filters such as "Year published".
Describe alternatives you've considered
I checked if I could search for an empty string and then sort the results by relevance and filter those. But as
issue #49 hints, filtering is apparently not possible/easy(?).

Hi @alexloebel
I've looked into this a bit. From what I found with the arxiv api
https://arxiv.org/help/api/user-manual#query_details
I can't find anything to filter based on date (or anything similar). With the current implementation of this app using this api, I don't think it's currently possible. Unless there is any other suggestions

I looked at the API manual you linked and you are right that they do not give the option of setting a filter in the request.
But they do give the XML fields

element
explanation

<published>
The date that version 1 of the article was submitted.

<updated>
The date that the retrieved version of the article was submitted. Same as <published> if the retrieved version is version 1.

in the returned entries.
Could it be possible to make the request and then filter the returned results? (I suppose that it should not introduce a significant slowdown since one does not need to sort the results for this. I believe one only needs to go through each entry and don't show it if the date of the article is older than wished for by the user(?))
I have really no clue about Java or Android programming. Otherwise, I would have tried to include some prototype.


VTable memory should be handled by Type not Object

The following table:
https://github.com/microsoft/CsWinRT/blob/fab6067c83e9063a8c0eda387b4c250ca5a4da62/WinRT.Runtime/ComWrappersSupport.net5.cs#L161
stores memory for vtables on the object level instead of the Type level. This is creating an enormous amount of unnecessary memory pressure on the application. Converting this to be on the Type rather than object would make CCW creation faster and reduce memory usage.
/cc @jkoritzinsky

I was just reminded we created a new API in .NET 5 for this very purpose - RuntimeHelpers.AllocateTypeAssociatedMemory().


4M request to my DNS server in the last 30 days

What is appening?

But not twice per second ahahah
And it has been doing it since the last update

But not twice per second ahahah And it has been doing it since the last update

Only after the update to 0.2.0?

But not twice per second ahahah And it has been doing it since the last update

Only after the update to 0.2.0?

It seems


No solution to convex QCP when an extra, irrelevant binary variable is added

Hi,
I've ran into a puzzling issue with cplex / docplex. I've built a convex QCP using docplex, which CPLEX can solve. But when I rebuild the problem from scratch and add a single, mathematically inconsequential binary variable, the CPLEX solver responds with "integer infeasible". (The same issue happens also if the binary variable plays a meaningful role in the problem.) Furthermore, when I linearize all the quadratic constraints with a fairly tight polyhedral relaxation technique (thus turning the MIQCP into an MILP), CPLEX can again solve the problem.
As a check, I've tried all of the above with Gurobi, too. It has solved the exact same problems without any glitches.
You can reproduce the issue from the two MPS model files at this gist. (It also shows up when using the cplex API only.)
Any ideas?

Hello,
I reproduce the issue under cplex interactive optimizer (20.1, windows) only, so it is clearly not a docplex issue but a cplex one. The xtra binary issue causes infeasi ility as soon as it appears in the objective, whether its coefficient is zero or not. If I remove it from the objective it solves fine. This is indeed very strange.

The model is feasible if the presolve is off.
But interestingly, if you write the model to its presolve version, and solve this presolved version, then presolved model is feasible.

The MIQCP presolve does some strange things, indeed. E.g.: it leaves 3 fewer quadratic constraints in the problem than the QCP presolve.
When I turn off presolve (for a problem with meaningful binary variables), the solver gives back "integer optimal, tolerances", which is not as ideal as "integer optimal", but still much better than no solution at all. And the result is identical to what Gurobi calculates. Good enough.
Thanks for the quick help, guys!


Overcompilation when no files have changed

Version(s)
1.5.0
Describe the bug
When doing scala-cli run . --native, it seems that the project is being recompiled (I can see warnings being re-emitted) even though nothing has changed:
/v/f/j/4/T/tmp.d938Ip9W80 > scli run . --native
Compiling project (Scala 3.5.1, Scala Native 0.5.5)
[warn] ./test.scala:6:7
[warn] unused local definition
[warn]   val x = 25
[warn]       ^
Compiled project (Scala 3.5.1, Scala Native 0.5.5)
[info] Linking (multithreadingEnabled=true, disable if not used) (1046 ms)
[info] Discovered 888 classes and 5362 methods after classloading
[info] Checking intermediate code (quick) (41 ms)
[info] Multithreading was not explicitly enabled - initial class loading has not detected any usage of system threads. Multithreading support will be disabled to improve performance.
[info] Linking (multithreadingEnabled=false) (317 ms)
[info] Discovered 510 classes and 2557 methods after classloading
[info] Checking intermediate code (quick) (23 ms)
[info] Discovered 487 classes and 1958 methods after optimization
[info] Optimizing (debug mode) (396 ms)
[info] Produced 9 LLVM IR files
[info] Generating intermediate code (395 ms)
[info] Compiling to native code (932 ms)
[info] Linking with [pthread, dl]
[info] Linking native code (immix gc, none lto) (138 ms)
[info] Postprocessing (0 ms)
[info] Total (3314 ms)
yes
/v/f/j/4/T/tmp.d938Ip9W80 > scli run . --native
[warn] ./test.scala:6:7
[warn] unused local definition
[warn]   val x = 25
[warn]       ^
yes
/v/f/j/4/T/tmp.d938Ip9W80 > scli run . --native
[warn] ./test.scala:6:7
[warn] unused local definition
[warn]   val x = 25
[warn]       ^
yes

This adds overhead to the command, where actually running the binary takes 2ms on my laptop, but running scala-cli run . --native takes 30ms, even though it literally just runs the binary (or at least should). A user reports even higher overhead on a non-trivial program.
I don't know if Bloop actually compiles anything, but this certainly takes quite a bit of time (in relative terms)
To Reproduce
//> using toolkit default
//> using option -Wunused:all
//> using scala 3.5.1

@main def hello =
  val x = 25
  println("yes")

Then run scala-cli run . --native a bunch of times. Warnings are re-emitted every time. Running with -v -v actually shows the bloop request being sent.
Expected behaviour
When no input files or parameters have changed, I expect the overhead of scala-cli run to be much lower.

I think we always send last warnings and do not compile anything inside Bloop. This is a correct behaviour in my opinion.
On the other hand though, I don't really understand the overhead. If we have no warnings present is it still an issue?

Heh, the overhead is even larger :D
/v/f/j/4/T/tmp.d938Ip9W80 > time scli run . --native
yes

________________________________________________________
Executed in  398.86 millis    fish           external
   usr time   46.06 millis    0.18 millis   45.89 millis
   sys time   36.60 millis    1.74 millis   34.86 millis

Actually here's a better view:
Benchmark 1: scala-cli run . --native
  Time (mean ± σ):     425.3 ms ±   8.0 ms    [User: 45.1 ms, System: 32.2 ms]
  Range (min … max):   413.3 ms … 438.0 ms    10 runs

Benchmark 2: ./.scala-build/tmp_e396f26dc8/native/main
  Time (mean ± σ):       1.7 ms ±   0.6 ms    [User: 0.6 ms, System: 0.6 ms]
  Range (min … max):     0.7 ms …   4.8 ms    561 runs

  Warning: Command took less than 5 ms to complete. Note that the results might be inaccurate because hyperfine can not calibrate the shell startup time much more precise than this limit. You can try to use the `-N`/`--shell=none` option to disable the shell completely.

Summary
  ./.scala-build/tmp_e396f26dc8/native/main ran
  244.94 ± 85.66 times faster than scala-cli run . --native

Seems to me this is a duplicate of #3158. Let's track it there.


Fur (Cutout) + AO

I've remarked two problems, when using Fur (Cutout) with the AO setting. In my setup I use it on head and partially on body with an alpha mask (neck).
First problem:
When a AO value > 0 is applied, black artifacts becomes visible, depending of distance of camera. In VR, the number of black pixels is a lot higher (depends probably on FOV).
Example near (Desktop):

Example far (Desktop):

(in VR, the head would be completely black for this distance)
Second problem:
When Fur is only applied partially with an alpha map, AO is also applied on transparent parts. Is it possible, to add on option, which allows AO to respect the alpha map?

With opaque shader, the result looks like this:

With fur shader, the transparent parts looks too dark (to better show the effect, I have increased the AO value):

These bugs have been fixed.
Black artifacts
This problem was caused by MSAA. Fixed this by weakening the effect of AO when fur is rendered small.
AO is applied ignoring the alpha mask
This is my mistake. Fixed this by weakening the AO based on the alpha mask.


Payment failed

Hello,
Site shows 'Your payment for the order failed' after a successful payment. It seems that the plugin is not handling successful transactions properly.
What could be the issue.
Best regards,

Hello @slickit
Deep apologies for the tardy response to this issue, I've not had time to work on this in a while.
Considering the payment was successful, you got the error because the plugin was unable to verify the transaction. Here are two reasons why that could happen:

The secret key you used was incorrect.
Your server was unable to make a CURL request to Paystack's server to verify the transaction.

If you're sure it's not the first, please send an email to<EMAIL_ADDRESS>they'll be happy to help you debug the issue with your CURL requests.

Hi Steve,
I have already installed the plugin but after payment,
there is redirection error, Can you advise with this?
On Tue, May 8, 2018 at 2:22 PM, Stephen Amaza<EMAIL_ADDRESS>wrote:

@seyi-adetunji https://github.com/seyi-adetunji you can use the plugin
for Prestashop 1.7 https://github.com/PaystackHQ/paystack-gateway-for-
prestashop-1.7
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/PaystackHQ/paystack-gateway-for-prestashop-1.6/issues/4#issuecomment-387400295,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AL8rYjeeSoKhhW6vlby-UqlF9UGbS8fgks5twZwygaJpZM4ORo8A
.

Please open an issue on the respective plugin and provide as much information as possible so we can understand what the problem is

Paystack Request failed with response:
400 Bad Request
cloudflare
' PLEASE WHATCOULD BE THE PROBLEM I AM TESTING IT USING TEST KEYS

@ikeogu please open a separate issue for this providing as much information as possible about your site including the link


HADOOP-18890. Better to have explicit dependency on httpclient jar

Description of PR
https://issues.apache.org/jira/browse/HADOOP-18890
A previous PR for this issue removed okhttp usage and used Apache HttpClient instead. The dependency on HttpClient is indirect (a transitive dependency). I think it is better to make the dependency explicit in hadoop-hdfs-client - the only project that was significantly modified.
How was this patch tested?
For code changes:

[x] Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')?
[ ] Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE, LICENSE-binary, NOTICE-binary files?

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 28s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  0s

codespell was not available.

+0 :ok:
detsecrets
0m  0s

detect-secrets was not available.

+0 :ok:
xmllint
0m  0s

xmllint was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

-1 :x:
test4tests
0m  0s

The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
31m 56s

trunk passed

+1 :green_heart:
compile
0m 42s

trunk passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04

+1 :green_heart:
compile
0m 37s

trunk passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

+1 :green_heart:
mvnsite
0m 41s

trunk passed

+1 :green_heart:
javadoc
0m 39s

trunk passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04

+1 :green_heart:
javadoc
0m 32s

trunk passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

+1 :green_heart:
shadedclient
55m 39s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 33s

the patch passed

+1 :green_heart:
compile
0m 35s

the patch passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04

+1 :green_heart:
javac
0m 35s

the patch passed

+1 :green_heart:
compile
0m 30s

the patch passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

+1 :green_heart:
javac
0m 30s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
mvnsite
0m 31s

the patch passed

+1 :green_heart:
javadoc
0m 26s

the patch passed with JDK Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04

+1 :green_heart:
javadoc
0m 25s

the patch passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

+1 :green_heart:
shadedclient
22m 29s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1 :green_heart:
unit
1m 56s

hadoop-hdfs-client in the patch passed.

+1 :green_heart:
asflicense
0m 29s

The patch does not generate ASF License warnings.

86m 27s

Subsystem
Report/Notes

Docker
ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6130/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/6130

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint

uname
Linux efed86dfc86c 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / 53ef15d1e4a83bdcc95d45648ce8f6a19031d446

Default Java
Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.20+8-post-Ubuntu-1ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6130/1/testReport/

Max. process+thread count
555 (vs. ulimit of 5500)

modules
C: hadoop-hdfs-project/hadoop-hdfs-client U: hadoop-hdfs-project/hadoop-hdfs-client

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6130/1/console

versions
git=2.25.1 maven=3.6.3

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 27s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  0s

codespell was not available.

+0 :ok:
detsecrets
0m  0s

detect-secrets was not available.

+0 :ok:
xmllint
0m  0s

xmllint was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

-1 :x:
test4tests
0m  0s

The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
39m 35s

trunk passed

+1 :green_heart:
compile
0m 45s

trunk passed with JDK Ubuntu-<IP_ADDRESS>+1-post-Ubuntu-0ubuntu120.04

+1 :green_heart:
compile
0m 38s

trunk passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

+1 :green_heart:
mvnsite
0m 43s

trunk passed

+1 :green_heart:
javadoc
0m 39s

trunk passed with JDK Ubuntu-<IP_ADDRESS>+1-post-Ubuntu-0ubuntu120.04

+1 :green_heart:
javadoc
0m 34s

trunk passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

+1 :green_heart:
shadedclient
67m 35s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 41s

the patch passed

+1 :green_heart:
compile
0m 32s

the patch passed with JDK Ubuntu-<IP_ADDRESS>+1-post-Ubuntu-0ubuntu120.04

+1 :green_heart:
javac
0m 32s

the patch passed

+1 :green_heart:
compile
0m 34s

the patch passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

+1 :green_heart:
javac
0m 34s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
mvnsite
0m 32s

the patch passed

+1 :green_heart:
javadoc
0m 24s

the patch passed with JDK Ubuntu-<IP_ADDRESS>+1-post-Ubuntu-0ubuntu120.04

+1 :green_heart:
javadoc
0m 33s

the patch passed with JDK Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

+1 :green_heart:
shadedclient
29m 38s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1 :green_heart:
unit
1m 58s

hadoop-hdfs-client in the patch passed.

+1 :green_heart:
asflicense
0m 29s

The patch does not generate ASF License warnings.

106m 10s

Subsystem
Report/Notes

Docker
ClientAPI=1.43 ServerAPI=1.43 base: https://ci-hadoop.apache.org/job/hadoop-multibranch-windows-10/job/PR-6130/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/6130

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint

uname
Linux 67dba32f4ba3 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / 53ef15d1e4a83bdcc95d45648ce8f6a19031d446

Default Java
Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-<IP_ADDRESS>+1-post-Ubuntu-0ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_382-8u382-ga-1~20.04.1-b05

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch-windows-10/job/PR-6130/1/testReport/

Max. process+thread count
558 (vs. ulimit of 5500)

modules
C: hadoop-hdfs-project/hadoop-hdfs-client U: hadoop-hdfs-project/hadoop-hdfs-client

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch-windows-10/job/PR-6130/1/console

versions
git=2.25.1 maven=3.6.3

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@steveloughran @ayushtkn @slfan1989 Would any of you have time to review this? I think this tidies up the changes in https://github.com/apache/hadoop/pull/6057

Thanks @ayushtkn - I have created HDFS-17450

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
18m 25s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  0s

codespell was not available.

+0 :ok:
detsecrets
0m  0s

detect-secrets was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

-1 :x:
test4tests
0m  0s

The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
33m 24s

trunk passed

+1 :green_heart:
compile
0m 31s

trunk passed

+1 :green_heart:
mvnsite
0m 35s

trunk passed

+1 :green_heart:
javadoc
0m 34s

trunk passed

+1 :green_heart:
shadedclient
19m 17s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 26s

the patch passed

+1 :green_heart:
compile
0m 22s

the patch passed

+1 :green_heart:
javac
0m 22s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
mvnsite
0m 29s

the patch passed

+1 :green_heart:
xmllint
0m  0s

No new issues.

+1 :green_heart:
javadoc
0m 23s

the patch passed

+1 :green_heart:
shadedclient
19m 25s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1 :green_heart:
unit
1m 50s

hadoop-hdfs-client in the patch passed.

+1 :green_heart:
asflicense
0m 26s

The patch does not generate ASF License warnings.

99m  2s

Subsystem
Report/Notes

Docker
ClientAPI=1.45 ServerAPI=1.45 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6130/3/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/6130

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint

uname
Linux 7a04230a69df 5.15.0-94-generic #104-Ubuntu SMP Tue Jan 9 15:25:40 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / 2efcd9b20e3b514c8734318c23bbc93ded41ab25

Default Java
Red Hat, Inc.-1.8.0_402-b06

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6130/3/testReport/

Max. process+thread count
565 (vs. ulimit of 5500)

modules
C: hadoop-hdfs-project/hadoop-hdfs-client U: hadoop-hdfs-project/hadoop-hdfs-client

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6130/3/console

versions
git=2.9.5 maven=3.6.3 xmllint=20901

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
0m 47s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  1s

codespell was not available.

+0 :ok:
detsecrets
0m  1s

detect-secrets was not available.

+0 :ok:
xmllint
0m  1s

xmllint was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

-1 :x:
test4tests
0m  0s

The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
50m 53s

trunk passed

+1 :green_heart:
compile
1m  6s

trunk passed with JDK Ubuntu-11.0.22+7-post-Ubuntu-0ubuntu220.04.1

+1 :green_heart:
compile
0m 56s

trunk passed with JDK Private Build-1.8.0_402-8u402-ga-2ubuntu1~20.04-b06

+1 :green_heart:
mvnsite
1m  3s

trunk passed

+1 :green_heart:
javadoc
0m 50s

trunk passed with JDK Ubuntu-11.0.22+7-post-Ubuntu-0ubuntu220.04.1

+1 :green_heart:
javadoc
0m 40s

trunk passed with JDK Private Build-1.8.0_402-8u402-ga-2ubuntu1~20.04-b06

+1 :green_heart:
shadedclient
95m 53s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 48s

the patch passed

+1 :green_heart:
compile
0m 53s

the patch passed with JDK Ubuntu-11.0.22+7-post-Ubuntu-0ubuntu220.04.1

+1 :green_heart:
javac
0m 53s

the patch passed

+1 :green_heart:
compile
0m 43s

the patch passed with JDK Private Build-1.8.0_402-8u402-ga-2ubuntu1~20.04-b06

+1 :green_heart:
javac
0m 43s

the patch passed

+1 :green_heart:
blanks
0m  0s

The patch has no blanks issues.

+1 :green_heart:
mvnsite
0m 47s

the patch passed

+1 :green_heart:
javadoc
0m 33s

the patch passed with JDK Ubuntu-11.0.22+7-post-Ubuntu-0ubuntu220.04.1

+1 :green_heart:
javadoc
0m 31s

the patch passed with JDK Private Build-1.8.0_402-8u402-ga-2ubuntu1~20.04-b06

+1 :green_heart:
shadedclient
41m 34s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1 :green_heart:
unit
2m 29s

hadoop-hdfs-client in the patch passed.

+1 :green_heart:
asflicense
0m 37s

The patch does not generate ASF License warnings.

150m  7s

Subsystem
Report/Notes

Docker
ClientAPI=1.44 ServerAPI=1.44 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6130/4/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/6130

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient codespell detsecrets xmllint

uname
Linux da369d703a79 5.15.0-94-generic #104-Ubuntu SMP Tue Jan 9 15:25:40 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / 2efcd9b20e3b514c8734318c23bbc93ded41ab25

Default Java
Private Build-1.8.0_402-8u402-ga-2ubuntu1~20.04-b06

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.22+7-post-Ubuntu-0ubuntu220.04.1 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_402-8u402-ga-2ubuntu1~20.04-b06

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6130/4/testReport/

Max. process+thread count
531 (vs. ulimit of 5500)

modules
C: hadoop-hdfs-project/hadoop-hdfs-client U: hadoop-hdfs-project/hadoop-hdfs-client

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-6130/4/console

versions
git=2.25.1 maven=3.6.3

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.


[BUG] Upload image button always enabled

Describe the bug

The upload image botton is always enabled, even if you disable the feature. Check captures.

Screenshots

Setup

Flowise Version is up to date.

Additional context

When the feature is enabled, it works as expected. When the feature is disabled, the upload button is still present, but the agent does not what to do with the image, get bugged trying to use tools with it.

It looks like it is solved now.


Easy way to tell whether I'm running my DoltLab in Enterprise mode

There is no way to tell once you've started DoltLab with proper Enterprise creds whether it works. I suggest changing the logo to say "DoltLab Enterprise" (unless a custom logo is specified) and add "ENTERPRISE" to the version string at the bottom.

Added to DoltLab v2.1.3


Using with NestJS

I'm getting some errors trying to use the SDK lib in NestJS (v8)
[4:01:21 PM] File change detected. Starting incremental compilation...

node_modules/@types/node/constants.d.ts:12:5 - error TS2309: An export assignment cannot be used in a module with other exported elements.

12     export = exp;
       ~~~~~~~~~~~~~

src/app/feature-flags/feature-flags.service.ts:1:26 - error TS2306: File<EMAIL_ADDRESS>is not a module.

1 import * as harness from '@harnessio/ff-nodejs-server-sdk';
                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[4:01:21 PM] Found 2 errors. Watching for file changes.

Any examples on how to use with TS or Nest?

@geraldyeo I'll create some samples soon


Want to add Particle Background Animation

Describe the feature
I want to add particle background animation in different pages of the website.
Add any other context about the problem here.
Some examples of how website will look after adding it to background are as :-

Go Ahead @ROHAN842 :)

Hey @kanak22 kindly attach  the LGMSOC and Level(whichever) to this issue

Sure


Add WebView2 sample

Hello I would like to help. But I couldn't find any types/structs in the generated docs. Is there any extra step need to do?

The WebView2 component is not included in the Windows API as it is shipped separately:
https://www.nuget.org/packages/Microsoft.Web.WebView2
You can download the nuget package (it's just a zip file) and extract the DLLs and winmd file. There are two APIs, a WinRT API described in the winmd and a COM API described in IDL.
You should already be able to use the WinRT API with the windows crate but I am also exploring options for importing the COM API by converting it to a winmd first.

I've been experimenting with this, starting from a forked branch of webview/webview_rust: https://github.com/wravery/webview_rust/tree/windows-rs. It uses a build.rs script to pull down the NuGet package automatically and CXX for a thin wrapper with 1:1 projections of the interfaces/methods/APIs. I got to the point where I was able to remove the webview-official-sys crate/submodule and all of the samples still ran.
I wanted to jump straight to windows-rs generated bindings, and I was able to hack together support for WebView2 in microsoft/win32metadata, but I wasn't able to generate usable results with that and the current version of windows-rs. WebView2 requires implementing a lot of COM interfaces for callbacks and such. #429 The CXX bindings I wrote are a small sub-set of what WebView2.h includes, and they're meant to replicate what I think windows-rs might generate, because eventually I want to throw it out and auto-generate it.
It also uses UTF-16 PCWSTR throughout instead of UTF-8. Since I needed to implement my own bindings module for this library, and Rust already has support for conversion back and forth, I decided not to use MultiByteToWideString/WideToMultiByteString from windows-rs. I wrote my own safe utility functions to convert from String/&str back and forth to Vec<u16>/&[u16]. If I were just using windows-rs I might do the same thing, it would be really handy to have implementations of From/Into for wide string types built-in to windows-rs. #645
@wusyong, coincidentally the next step in the experiment would have been to try injecting it in Tauri, but I noticed too late that your tauri-apps/wry component replaced webview/webview_rust. It looks much nicer to me than the webview/webview_rust bindings, even if it does mean I need to change directions. :smile: So instead, I'll try building a separate crate with just my bindings (the replacement for webview-official-sys) and see if I can wrap that in a look-alike API to the sopium/webview2 crate you're using right now. There's nothing wrong with that implementation, my only goal is to experiment with windows-rs + WebView2.

Thanks for experimenting! Note also that WebView2 ships with both a COM and a WinRT API and they largely provide the same functionality. You may have better luck with the WinRT API in the short term. I am now starting to focus on #81 which includes implementing COM interfaces so eventually you'll be able to use either API.

I think the .winmd was included in a previous version of WebView2 by accident, or maybe it just broke something and will be re-added: https://github.com/MicrosoftEdge/WebView2Feedback/issues/668. It was removed in the latest version of the package though, at least in the release version (1.0.774.44)[https://docs.microsoft.com/en-us/microsoft-edge/webview2/releasenotes#1077444]. I haven't found a way to use the WinRT API without falling back to the older package.

It's available in the latest prerelease: https://www.nuget.org/packages/Microsoft.Web.WebView2/1.0.824-prerelease

Thanks, I found your https://github.com/kennykerr/webview2-rs repo, and I was able to re-build my windows-rs bindings based on that with the latest pre-release .winmd. I'll see if I can get the samples working again based on the WinRT bindings, that would certainly simplify the implementation.
I'm not sure, but I think I'll still need a Win32 message loop and parent HWND. This should mean I don't need the CXX bindings, and a lot of the unsafe windows::win32 code other than that can go too. If I simplify it a bit and cleanup the dependencies, I may make a PR resolving this issue by adding a working barebones example.

Yes, you'll still need a desktop window. You can copy that code from here if you need a head start:
https://github.com/microsoft/windows-rs/blob/master/examples/clock/src/main.rs
Thanks!

It's working. :smile: Now I just need to boil it down to a simpler sub-project to add to the examples.

Woohoo, can't wait to see it! 🙃


OpenAI GPT-3.5-turbo not supported?

I'm trying to use GPT-3.5-turbo, but receiving this error message:
raise self._make_status_error_from_response(err.response) from None
openai.NotFoundError: Error code: 404 - {'error': {'message': 'This is a chat model and not supported in the v1/completions endpoint. Did you mean to use v1/chat/completions?', 'type': 'invalid_request_error', 'param': 'model', 'code': None}}

I'm importing OpenAi from langchain_openai.
It seems that v1 of OpenAI python package had some breacking changes, I'm wondering if it's related.
Thank you.

hey @williamgurzoni it should just work, can you share some of code around the issue?
Here is some examples on conneting with multiple LLMs: https://joaomdmoura.github.io/crewAI/how-to/LLM-Connections/

@williamgurzoni I dont know if this solution will be suited to you, but you can set the llm like this:
llm = ChatOpenAI(openai_api_base=os.environ.get("OPENAI_API_BASE_URL"),
                 openai_api_key=os.environ.get("OPENAI_API_KEY"),
                 model_name=os.environ.get("MODEL_NAME")
                 )

and have in your .envfile the following configs:
OPENAI_API_KEY=<your-api-key>
OPENAI_API_BASE_URL="https://api.openai.com/v1"
MODEL_NAME ="gpt-3.5-turbo"

Dont foget to import the dotenv (pip install python-dotenv) package (and to invoke in the code using load_dotenv())
from langchain.chat_models.openai import ChatOpenAI
from dotenv import load_dotenv

load_dotenv()

#os.environ["OPENAI_API_KEY"] = os.getenv("OPENAI_API_KEY")

llm = ChatOpenAI(openai_api_base=os.environ.get("OPENAI_API_BASE_URL"),
                 openai_api_key=os.environ.get("OPENAI_API_KEY"),
                 model_name=os.environ.get("MODEL_NAME")

This works for me, hope that helps!
p.s: The link that @joaomdmoura shared helpped me to get into this solution, thx

Perfect! That makes total sense @rmgravina. Thank you very much you both for adding so much info here!
I was able to get it working with your example.
I think I got stuck because of the example in the Readme:
  ...
  # llm=OpenAI(model_name="gpt-3.5", temperature=0.7)
  # For the OpenAI model you would need to import
  # from langchain_openai import OpenAI
  ...

I was trying to use OpenAI instead of ChatOpenAI.
As soon as I learn more about the project I'll be happy to contribute to a PR.
Great project guys, thanks.


Make strings translateable

Can we make strings in the project translateable for use in the HASS add-on?
https://developers.home-assistant.io/docs/internationalization/custom_integration

Woo, thanks :)


Have CTExplainer leverage TupleBundler

As of right now, CTExplainer's explainRow and explainCell methods rely on a hack to compute statistical metrics for values.  Now that we have TupleBundler and compileForSamples() (at least in the TupleBundler branch), it would make sense to start leveraging this functionality to produce samples in the backend.
One quick caveat is that most databases will freak out with respect to schemas changing in the middle of a query, so this task is really dependant on #193 happening first.

This is going to be a longer-term problem.  Tuple Bundling is the wrong way to go in many cases.  Once #216 is complete, this should be way easier.


New release?

Hi,
it would be nice if you could push the latest release (0.8) to PyPI?
Thanks for this

done. thanks for the reminder.


Create Dockerfile for container deployed through Portainer

Hi there,
Firstly sorry if this is a stupid question - I just haven't been able to find an answer from googling.
I've created/deployed several containers by pulling in the image[s] from dockerhub via the Portainer web interface, however after using said containers for a while I find myself wanting to modify things on the containers that you'd normally do in a Dockerfile or docker-compose.yml file.
What do people normally do in this situation?
I mean, obviously you can edit the container within Portainer and redeploy it, but I feel like I've done something stupid here and instead should have started with the above, and used Portainer for gui management after I've already deployed the container.
Thanks,
Matt

Hi @mattie47
This questions is a bit too generic for us to help you with a particular answer. You might want to ask/discuss with the community in https://portainer.io/slack/


Whitelisting doesn't work (for me)

Before #792
Before this patch, whitelisting was working properly except situation when config.filter_parameters was set for Rails application. config.filter_parameters is supposed to list fields that are blacklisted and should be excluded/scrubbed from logs, reports, etc. Pre #792 code adds content of config.filter_parameters to blacklist as well as whitelist what can lead to passing sensitive data into report.
so, for configuration like this:
# application.rb
config.filter_parameters = [:password, :api_key]

# initializers/rollbar.rb
config.scrub_whitelist = true
config.scrub_fields = [:user_id, :name, :surname]

I would expect that only fields [:user_id, :name, :surname] keep real values and any other field is scrubbed. But, because [:password, :api_key] are added to the list also password and api_key values are whitelisted and get reported.
After #792
it seems to not work. I started with following config:
# initializers/rollbar.rb
config.scrub_whitelist = [:password]

I would expect all fields except password to be scrubbed but all values are preserved. For:
# initializers/rollbar.rb
config.scrub_whitelist = [:password]
config.scrub_fields = []

again, all except password should get scrubbed but again all are preserved. When I use:
# application.rb
config.filter_parameters = [:utf8, :commit]

# initializers/rollbar.rb
config.scrub_whitelist = [:password]
config.scrub_fields = [:username]

I get utf8, commit & username scrubbed and everything else is whitelisted. It seems like whitelist is applied to blacklist and then blacklisted fields get scrubbed. My understanding of whitelisting is slightly different - we let pass only things that are on the whitelist and anything else get scrubbed. That's also what documentation says:
scrub_whitelist

Set to true to switch scrubbing mode to whitelist. In whitelist mode, everything but the fields provided in scrub_fields gets scrubbed. The values will be replaced with a "*" before being sent.

Pull request #794
I've made a PR based on master before #792 was applied. It does following things:

changes specs so they test whitelist behaviour instead of blacklist
changes Url & Params scrubbers
makes necessary changes to RequestDataExtractor to support whitelist in urls
properly ignores filter_parameters when whitelisting is used

What you are describing is the scrub_all option. The scrub_whitelist indeed does not work correctly with this option as I just realized. scrub_whitelist is the list of things not to scrub, but it does not imply to scrub everything but what is on that list. It is intended as a means of excluding from scrubbing things that are already set in scrub_fields most often by including some framework pre-defined keys.

I'm going to make the whitelist work with scrub_all before the next release. To get the behaviour you are describing you would set scrub_all to true, then specify the scrub_whitelist to have the keys you do not want scrubbed. If scrub_all is not set to true, then scrub_whitelist will be keys that do not get scrubbed even if they are in scrub_fields.

Thanks @rokob, use of scrub_all + scrub_whitelist makes perfect sense. I have no idea how often scrub_all is used but mutually exclusive white/black lists feel more common and simpler to understand. Intuitively, to scrub all fields I would simply use empty white list.

@ArturMoczulski  @rokob should we still consider this PR or was this already addressed in 2.18.2?

I believe this has been addressed in #795 and the changes are included in v2.18.2


Desired behavior
Enforcing --timeout with a hardkill instead of sending a CTRL+C to console
Config to reproduce
Run a test session with a while(true) loop and a short enough global timeout
Versions
0.48.1

Ought to be addressed with the newest patch release: https://github.com/saucelabs/saucectl/releases/tag/v0.48.2
Please check it out!


fix(env): stop filtering process.env

We should not be removing GIT_ values from the environment if the user
has set them.  All we now do is set two defaults if they were not
already set by the end user.
References
Fixes https://github.com/npm/cli/issues/3048

Merging this so I can submit the WIP linting PR that built off of this branch


Class not found

Hi,
I just reinstalled the application and currently in IPS version v<IP_ADDRESS> and i have this error when I want to update the profiles.
Error: Class "IPS\steam\API" not found (0) #0 /var/www/vhosts/clan-rmg.com/httpdocs/applications/steam/sources/Update/Update.php(156): IPS\steam\_Update->getSteamId() #1 /var/www/vhosts/clan-rmg.com/httpdocs/applications/steam/sources/Update/Update.php(117): IPS\steam\_Update->updateSingleProfileSummary() #2 /var/www/vhosts/clan-rmg.com/httpdocs/applications/steam/modules/front/steam/steamProfile.php(76): IPS\steam\_Update->updateFullProfile() #3 /var/www/vhosts/clan-rmg.com/httpdocs/system/Dispatcher/Controller.php(107): IPS\steam\modules\front\steam\_steamProfile->update() #4 /var/www/vhosts/clan-rmg.com/httpdocs/applications/steam/modules/front/steam/steamProfile.php(49): IPS\Dispatcher\_Controller->execute() #5 /var/www/vhosts/clan-rmg.com/httpdocs/system/Dispatcher/Dispatcher.php(153): IPS\steam\modules\front\steam\_steamProfile->execute() #6 /var/www/vhosts/clan-rmg.com/httpdocs/index.php(13): IPS\_Dispatcher->run() #7 {main}
#0 /var/www/vhosts/clan-rmg.com/httpdocs/init.php(1034): IPS\_Log::log() #1 [internal function]: IPS\IPS::exceptionHandler() #2 {main}
And ACP > Community > Steam > Manage not exist:

Manage was intentionally removed.


How to change the MAC address of coordinator?

I'm using CC2531 as the coordinator to add my smart Lock device into Home Assistant.
Currently everything works fine, except for remote Unlock failed (while using vendor's coordinator is OK to Unlock with the same PIN code).
I doubt the Lock device may have verified the MAC address of coordinator, and fail the Unlock request from any other coordinators not belong to the vendor.
How to change the MAC address of CC2531 coordinator? (so I'm able to crone the MAC)
Per the TI doc it shall be able to change the MAC address of CC2531 by modifying firmware.

Please see the following doc on how to clone a cc2531. In that section you will find how to write a IEEE address (=MAC) of your choice to the CC2531.
https://github.com/andreasbrett/zigbee2mqtt.io/blob/patch-1/information/cc2531_backup_stick.md#how-to-clone-your-stick-windows-only-currently

@andreasbrett I followed your guidelines, and successfully written the new MAC into my CC2531 as Secondary MAC.
Now my CC2531 has two MAC:
Primary MAC: 0x00124b001936a4f9
Secondary MAC: 0x00124b0018eed067
But zigbee2mqtt still read the Primary MAC, here is the debug log:
  zigbee2mqtt:info 4/22/2019, 7:19:19 PM Starting zigbee2mqtt version 1.3.1 (commit #39d6a8e)
  zigbee2mqtt:info 4/22/2019, 7:19:19 PM Starting zigbee-shepherd
  zigbee2mqtt:info 4/22/2019, 7:19:25 PM zigbee-shepherd started
  zigbee2mqtt:info 4/22/2019, 7:19:25 PM Coordinator firmware version: '20190223'
  zigbee2mqtt:debug 4/22/2019, 7:19:25 PM zigbee-shepherd info: {"enabled":true,"net":{"state":"Coordinator","channel":11,"panId":"0xd067","extPanId":"0xdddddddddddddddd","ieeeAddr":"0x00124b001936a4f9","nwkAddr":0},"firmware":{"transportrev":2,"product":0,"version":"2.6.3","revision":20190223},"startTime":1555931965,"joinTimeLeft":0}

And screenshots of using CC Debugger to read Primary/Secondary MAC from my CC2531:

Is there any config needed for zigbee2mqtt to enable using the Secondary MAC?

So current zigbee2mqtt only use the Primary MAC instead of Secondary MAC.
Is it a zigbee2mqtt bug or firmware bug?

After re-flashed the firmware, the zigbee2mqtt uses the Secondary MAC as expected now!
  zigbee2mqtt:info 4/24/2019, 11:38:21 PM Coordinator firmware version: '20190223'
  zigbee2mqtt:debug 4/24/2019, 11:38:21 PM zigbee-shepherd info: {"enabled":true,"net":{"state":"Coordinator","channel":11,"panId":"0xd067","extPanId":"0xdddddddddddddddd","ieeeAddr":"0x00124b0018eed067","nwkAddr":0},"firmware":{"transportrev":2,"product":0,"version":"2.6.3","revision":20190223},"startTime":1556120301,"joinTimeLeft":0}

Per the TI doc, Z-Stack uses the following four-level hierarchy to determine the IEEE address that will be used for the device when it operates:
1. Read from Z-Stack non-volatile memory
2. Look-up from Secondary IEEE location
3. Look-up from Primary IEEE location
4. Create temporary using random number generation
Looks like the non-volatile memory on CC2531 has a copy of the Primary MAC --- who did it?
The re-flash of firmware has clean-up the non-volatile memory, thus goes to the 2nd level (the Secondary MAC).

So why didn't it work the first time after reflashing?

The first time was not with reflashing, since my CC2531 had already with zigbee2mqtt firmware.
What I did in the first time was just to write MAC into the Secondary slot.
The second time, I did the reflashing.

So the non-volatile memory on CC2531 has a copy of the Primary MAC?
Curiously, which app did such copy? Is it by zigbee2mqtt?
If so, is it able to change the MAC by modifying non-volatile memory on CC2531 via zigbee2mqtt?
(without go through CC Debugger)

I have an issue to, well i have a new stick, using the last version of Z2M on home assistant.
I did not change something at all, only put old stick out and new in, and work as expected.
But here is the thing, i re-flashed the old coordinator as a router, and now when i want to paor it pairs, but as an coordinator.. so i did change the second IEEE but doesnt work, still keeps the first and still acting as a coordinator, even when the firmware is router firmware.
any advice ?
regards

I have an issue to, well i have a new stick, using the last version of Z2M on home assistant. I did not change something at all, only put old stick out and new in, and work as expected.
But here is the thing, i re-flashed the old coordinator as a router, and now when i want to paor it pairs, but as an coordinator.. so i did change the second IEEE but doesnt work, still keeps the first and still acting as a coordinator, even when the firmware is router firmware.
any advice ?
regards

Same for me... :(
Do you have a solution?

See related discussion here -> https://github.com/Koenkk/zigbee2mqtt/discussions/20724


getting this error when using from_dataframe: cannot handle a non-unique multi-index

I am trying to convert a dataframe to an xarray. The functions I am using are df.to_xarray() and xr.DataSet.from_dataframe()
But I am getting Exception: cannot handle a non-unique multi-index for both cases.
here is the first couple rows of my dataframe. It is an multi-index dataframe.

Thank you very much.

I answered this on stackoverflow: https://stackoverflow.com/questions/54028365/what-does-this-mean-xarray-error-cannot-handle-a-non-unique-multi-index/54028628#54028628


Buttons on board#edit display at weird heights in Firefox

"New Post", "New Section", "Delete" display consistently, but "Edit" and "Favorite" are at a different one – it could be related to the former ones having just text and no icons, and the latter having icons? Investigate.
Impacts UI in quite an ugly way.

Looks like there was a previous attempt to fix this which ended up doing so incompletely; #603 seems to do it more thoroughly, pending testing on other browsers.