databricks : Error: unexpected error handling request: json: cannot unmarshal number into Go struct field APIErrorBody.error_code of type string. This is likely a bug  in the Databricks SDK for Go or the underlying REST API[ISSUE]

I'm encountering an issue connecting Databricks to the Databricks CLI. Whenever I attempt to execute any command on Databricks, I receive the following error:
PS C:\Users> databricks catalogs list
databricks : Error: unexpected error handling request: json: cannot unmarshal number into Go struct field APIErrorBody.error_code of type string. This is likely a bug
in the Databricks SDK for Go or the underlying REST API. Please report this issue with the following debugging information to the SDK issue tracker at
https://github.com/databricks/databricks-sdk-go/issues. Request log:
At line:1 char:1

databricks catalogs list

  + CategoryInfo          : NotSpecified: (Error: unexpect...s. Request log::String) [], RemoteException
  + FullyQualifiedErrorId : NativeCommandError

GET /api/2.1/unity-catalog/catalogs
> * Host:
> * Accept: application/json
> * Authorization: REDACTED
> * User-Agent: cli/0.216.0 databricks-sdk-go/0.36.0 go/1.21.8 os/windows cmd/catalogs_list sdk-feature/pagination auth/pat
< HTTP/2.0 403 Forbidden
< * Content-Length: 75
< * Content-Type: application/json; charset=utf-8
< * Date: Wed, 27 Mar 2024 16:29:22 GMT
< * Server: databricks
< * Vary: Accept-Encoding
< * X-Databricks-Reason-Phrase: Unauthorized access to Org:<PHONE_NUMBER>429555
< {
<   "error_code": 403,
<   "message": "Unauthorized access to Org:<PHONE_NUMBER>429555"
< }

I have the same issue.

I'm getting the issue when triggering a PR from the CLI, it worked once and then it stopped working with the error:
`Error: unexpected error handling request: json: cannot unmarshal number into Go struct field APIErrorBody.error_code of type string. This is likely a bug in the Databricks SDK for Go or the underlying REST API. Please report this issue with the following debugging information to the SDK issue tracker at https://github.com/databricks/databricks-sdk-go/issues. Request log:
GET /api/2.0/preview/scim/v2/Me
> * Host:
> * Accept: application/json
> * Authorization: REDACTED
> * User-Agent: cli/0.212.2 databricks-sdk-go/0.29.1 go/1.21.6 os/linux cmd/bundle_validate auth/pat cicd/github
< HTTP/2.0 403 Forbidden
< * Content-Length: 126
< * Content-Type: application/json; charset=utf-8
< * Date: Tue, 30 Apr [20](https://github.com/kwulffert23/kw_mlops/actions/runs/8896718188/job/24430146666#step:4:21)24 14:41:36 GMT
< * Server: databricks
< * Vary: Accept-Encoding
< * X-Databricks-Reason-Phrase: Source IP address: <IP_ADDRESS> is blocked by Databricks IP ACL for workspace:<PHONE_NUMBER>810485
< {
<   "error_code": 403,
<   "message": "Source IP address: <IP_ADDRESS> is blocked by Databricks IP ACL for workspace:<PHONE_NUMBER>810485"
< }

Error: Process completed with exit code 1.`

When it worked once:

All the workflows actions triggered by the PRs after the first one are failing with the same error:

I'm getting the same issue, any news on a fix?

same error here. Any luck?
`Error: failed to compute file content for {{.project_name}}/databricks.yml.tmpl. template: :35:31: executing "" at <user_name>: error calling user_name: unexpected error handling request: json: cannot unmarshal number into Go struct field APIErrorBody.error_code of type string. This is likely a bug in the Databricks SDK for Go or the underlying REST API. Please report this issue with the following debugging information to the SDK issue tracker at https://github.com/databricks/databricks-sdk-go/issues. Request log:
GET /api/2.0/preview/scim/v2/Me
> * Host:
> * Accept: application/json
> * Authorization: REDACTED
> * Traceparent: 00-f7b14fbd0e1408e40c2f3bf8641ffdbe-3b77f17a3e2ec2bc-01
> * User-Agent: cli/0.220.0 databricks-sdk-go/0.41.0 go/1.21.10 os/linux cmd/bundle_init auth/pat
< HTTP/2.0 403 Forbidden
< * Content-Length: 52
< * Content-Type: application/json; charset=utf-8
< * Date: Wed, 05 Jun 2024 06:50:14 GMT
< * Server: databricks
< * Vary: Accept-Encoding
< * X-Databricks-Reason-Phrase: Invalid access token.
< {
<   "error_code": 403,
<   "message": "Invalid access token."`

Thanks @pedrojunqueira that solved it for me. Initially I tried putting the token in a local.tfvars file and initializing the databricks provider with it
provider "databricks" {
  alias = "workspace"
  host  = "https://dbc-XXXXXX-XXX.cloud.databricks.com"
  token = var.databricks_token
}

But terraform completely ignored it. Changing the token in my ~/.databrickscfg file did the trick. Does anyone know how to force terraform to ignore it and favor the variables?


Use multiple stacks to give blocks. This closes #2607

Contains
Makes the giveBlock command send multiple times, until quantity runs out. The command is limited to 99 blocks per stack, since that is the max stack size. Fixes #2607.
How to test
Press (F1) to bring up the console. Use the giveBlock command by typing give  . Pull up the inventory with (i) to see if none of the stack sizes are above 99 and if the correct number of blocks were given.

Can one of the admins please verify this patch?

Before you merge, would you like me to add a constant somewhere to reference the max stack size or call maxStackSize from ItemComponent?


Skip books with no highlights

This would address #2 for me.  Admittedly this is an edge case because of a duplicate article in my Readwise that has no highlights.

@hkgnp Take it if you like or if you prefer to solve this a different way, it doesn't bother me if you just close this PR.
Thanks for a great plugin!

Thanks for helping to work on the plugin for your edge case! Have done the merge :)


Bug in parsing

When parsing the response headers you do a split using "=". If the nonce contains "=" the extracted nonce will be incorrect.

The nonce should never contain a "=" because that's how headers are assigned.

Well, Toni filed this bug, because there are servers which indeed return a "=" in the nonce. Maybe they shouldn't, but I don't think it's illegal according to the spec, and anyway - they do. One example is the wildfly server admin interface (http://wildfly.org). So in order to be useful, the library should be able to deal with that.

@dukescript, this library has been very useful for me and lots of others. However, given your case, I rewrote how the script parses headers. So this issue should be fixed now. I also added logging so you can inspect what the parsed headers look like. To turn logging off, set loggingOn to false.
Could you and @eppleton please test this against your wildfly setup, to make sure it works, and let me know if everything is fine so I can re-close.


Possible Issue/Maybe Just a Question: Resuming Streamed Episodes

Recently (I don't think this has always been the case), when I am watching a video via my podcast app (I use Apple Podcasts), I have noticed an issue. I'll attempt to describe it below.
Say that I am watching a longer "video"/podcast episode and I choose to pause it and come back later. I have noticed that I can't reliably resume an episode. For example, consider the below video from Veritasium:

Note that I have my settings such that episodes aren't automatically downloaded -- I just stream them.
If I download the episode, I have no trouble continuing from the point where I left off.
Is this a characteristic of youtubecast, such that there is something about resuming a stream of a video that isn't quite hooked up with the correct parameters in the url? For example, I know I can edit the URL of a YouTube video by appending an &t=1m35s and start from that point in the video.
Curious about your thoughts. I haven't looked into the code yet, but maybe I will if I get some time.
Thanks for an amazing service! Truly valuable!

I’ve tested this out on Apple Podcasts and was able to reproduce the behavior. Unfortunately, it seems to be an issue on the client app side and not on the YouTubeCast side.
My best guess is that the client is trying to cache some of the streamed video and if you try to resume playback after closing the app, it tries to pick up from the cached version, which may be incomplete or corrupted. I can tell from testing that when this error pops up, the podcast app isn’t even making a call to the server to try and load the video.
There were two ways I found that work to get the video playing again — the first was deleting the Apple Podcasts app and re-downloading (this was suggested on a support thread for a similar issue and my guess is this clears away any broken cache) and the second way to get the episode to play was downloading the broken episode in the podcast app and then play it (this forces the app to do a full download of the file).
There doesn’t seem to be anything that could reasonably be done to avoid this behavior on the YouTubeCast side. I’ve personally been using Pocket Casts due to other issues I’ve had in the past with Apple Podcasts, and I haven’t experienced any issues with playback.


fwmt-2437 added kamon instrumentation

Trying a build now on "dev"

Been running for 11 minutes, will leave it for a bit longer...

37 minutes and counting, but it is downloading stuff, lots of.


feat(rpc): add starknet_simulateTransactions rpc

Feature Request
What to do?
We should add support for the starknet_simulateTransactions rpc

How to do it?
@m-kus did most of the work in #883, but we delayed the merge due to #992
You should probably start from a fresh branch, since so much has changed, but the flow developed there can probably be kept.

Related code
The specs: https://github.com/starkware-libs/starknet-specs/blob/59b838cdcc7b1cbf92f4249b00927185c93628e9/api/starknet_trace_api_openrpc.json#L41

I can pick this

Hey, All good?

👋

Hi @tdelabro . I haven't been able to continue on this due to time constraints. You can unassign me from this issue.
Sorry for the delay from my end!

closed by #1281


[.Net SDK, FB Messenger] .NET SDK AzureBotServiceClient.Channels.Update don't working

Bot Info

SDK Platform: >.NET
Active Channels: Facebook Messenger
Deployment Environment: Azure Bot Service

Issue Description
Hi,
I'm trying auto registre bots in azure channel registration.
I can use method (Create) :
azureBotServiceClient.Channels.Create(resourceGroupName,
                                      resourceName,
                                      ChannelName.FacebookChannel,
                                      botChannel);

It works.
But update method don't work, and result is only "internal server error".
Example:
azureBotServiceClient.Channels.Update(resourceGroupName: resourceGroupName,
                                                         resourceName: resourceName,
                                                         channelName: ChannelName.FacebookChannel,
                                                         properties: properties);

What do I need to send? do not have any documentation and did not find anything anywhere
The parameter properties, I get direct from the azure, with method "ListWithKeys"
"Create", "Delete", "Get" and "ListWithKeys" work perfectly, only "Update" not working

Sorry for the delay, I've reached out to one of the devs behind this SDK for further guidance.

Friendly ping to @carlosscastro 😄

Thank you for opening an issue against the Bot Framework SDK v3. As part of the Bot Framework v4 release, we’ve moved all v3 work to a new repo located at https://github.com/microsoft/botbuilder-v3. We will continue to support and offer maintenance updates to v3 via this new repo.
From now on, https://github.com/microsoft/botbuilder repo will be used as hub, with pointers to all the different SDK languages, tools and samples repos.
As part of this restructuring, we are closing all tickets in this repo.
For defects or feature requests, please create a new issue in the new Bot Framework v3 repo found here:
https://github.com/microsoft/botbuilder-v3/issues
For Azure Bot Service Channel specific defects or feature requests (e.g. Facebook, Twilio, Teams, Slack, etc.), please create a new issue in the new Bot Framework Channel repo found here:
https://github.com/microsoft/botframework-services/issues
For product behavior, how-to, or general understanding questions, please use Stackoverflow.
https://stackoverflow.com/search?q=bot+framework
Thank you.
The Bot Framework Team


[AutoPR eventhub/resource-manager] Add missing multi-api EventHub

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/6352

This PR has been merged into https://github.com/Azure/azure-sdk-for-go/pull/5019


Sparse DataGen support for regression models

Integrated new class that generates random synthesized dataset with sparse vector storage type in spark dataframes. Added in tests and benchmark training integration.

build

build

build

build

build

build

build

@Er1cCheng Thanks for putting the PR up. Great job! I have left all the comments and questions I have. Please take a look when you have time.

build

build

build

build

build


Invalid contraction is allowed

The following contraction is now allowed:

I think this is wrong and it definitely didn't use to be the case. I suppose we could fix this with typechecking, but we should investigate why our new contraction algorithm allows this to go through and whether that's avoidable.

I think I understand why this is happening. This contraction happens in two steps. Consider the first step: a contraction between an endomorphism $e$ next to an identity on some generator $f$, and a cup which also has its tip marked by the generator $f$. In this contraction, $e$ has dimension 2, and $f$ has dimension 1, so $e$ is going to be computed as the colimit, and you end up with a cup with tip $e$ with the $f$ folded into it (I think in the theories we care about, this is not well typed). The second contraction will proceed similarly. My guess is that neither contraction would work if instead you had an algebraic cup and cap instead, because then $e$ would not be the unique maximal dimension generator and no colimit would be computed. This kind of suggests that when $f$ appears as the tip of the cup or cap it should have dimension 2.

This used to be an invalid contraction, so it can't be because of the dimension.

Also the labels should not allow this contraction to go through, because this is a valid oriented contraction but an invalid framed contraction.

Here's a thought which might justify why such a contraction should exist: if instead you had the endomorphism wedged in the middle of the snake, instead of this bubble, then these two contractions would be how you construct the transpose.

I don't agree that this should contract (for framed generators). The example you just described is different and that's always used to contract. This used be an invalid contraction until recently, and I think that's the correct behaviour.
Also I remember you describing this as unsound when I discovered it for oriented generators 🤔

Yes I think you're right, the framing should preclude the second contraction but the first one is valid.

I think I have a clear understanding of why this is happening. It is directly related to the nondeterministic edge collapse that we discussed before in issue #798.
Let $E$ be the set of edges at a particular depth, and let $a,b \in E$ be two collapsible edges, with the property that collapsing $a$ makes $b$ non-collapsible. Then if we choose to collapse $a$, it follows immediately that the resulting collapse homotopy will not type-check, since the type-checking algorithm would try to collapse that triangle involving $b$, but we already know it does not collapse.
So, what do we need to do instead. Well at the moment, for a fixed depth, we collect all the collapsible edges, and then try to collapse them one by one. We keep checking each time if the edge is not collapsible, and if we find a non-collapsible edge, we skip over it and try the next one. Here is what we must do instead: if we discover one of the edges is no longer collapsible, we fail and declare the diagram non-contractible.
I suspect this will rescue all these examples Calin discovered in the early hours of this morning, where diagrams contract which shouldn't. However it may cause the example from #798 to not contract. But at least it will be a failure to contract rather than a crash, and we can then manually examine that example in detail to understand what needs to change in the algorithm. For example, maybe we need a more refined view of what the "depth" of an edge is.
This should be a very quick change to the algorithm, so if you guys are happy, could we please do this and then evaluate the results.
Nick or Calin, could you also post a very clear explanation of the current definition of "depth", and how we currently decide in what order to group the collapsible edges.

By the way, a very nice example of this phenomenon (two collapsible edges of the same depth, where collapsing one makes the other non-collapsible) arises from trying to collapse this second contraction above.

The definition of depth is very simple. We do it based on the coordinates. An edge from coordinate $x$ to coordinate $y$ has depth $i$ iff $i$ is the first index at which $x$ and $y$ differ (i.e. $x_j = y_j$ for $j < i$ and $x_i \neq y_i$).
Another way to think about this is the explode graph. The depth of an edge represents the step of the iterated explosion at which that edge was introduced for the first time. When you explode a rewrite into its subslices, the subslices will have the same depth as the original rewrite. I hope that makes sense.
In a 2D example, vertical edges have depth 0 and horizontal edges have depth 1 and we always collapse the edges in the reverse order of the depths.

Thanks Calin. What do you think about my comment this morning, does it make sense to you?
There clearly are ways we could refine the depth ordering on edges (lexicographic by start and end depth?) but it would be good to be motivated by an example rather than trying to do it arbitrarily.

And if we wanted to experiment with a different strategy to group edges, I have another idea.
Inside each depth group, we can further group the edges into subgroups which correspond to subslices of the whole diagram. For example, in the second contraction above, we can group the horizontal edges into five subgroups corresponding to the five heights of the diagram.
This is already what we do for calculating the orientation. Maybe by splitting the groups into more subgroups, we can fix this while also not breaking #798.

Yes using the subdiagram (ie the actual coordinate value) is a good idea for refining the groups.
The earlier algorithm we were using was not tested on such complex examples.

Well I have definitely tested the old algorithm on this particular example and it worked correctly, which is why I'm a bit confused.

Fixed by 1bdf7cea5e785cf635a0058dfb736a8f5a3c3d2e


v1.roots.cx 500 Internal Server Error

The documentation for V2 of roots is no longer online

Yeah I'm sorry about this!  If you still have a roots v2 project I'd recommend upgrading to a more recent version. If you have specific questions, I can try to help.

may I provide help on this issue? maybe those pages can run as static pages here, on github?

You can provide any help that you can! I just do not have any extra bandwidth that I can dedicate to this, unfortunately.

Were can I find the original docs in HTML? In which repo? I may be able to create a repo for them or fork them in my personal account and publish them in github as static pages, you can point v1.root.cx there. Would that be ok with you?

Yup! https://github.com/jescalan/roots-www-old

Here is the documentation for Roots  2, running on github, it took a while, but everything is working:
http://ganar.github.io/roots-www-v1-docs/
I think that you can point v1.roots.cx to this place, or maybe host the pages that I corrected in http://github.com/jescalan/roots-www-old, whatever feels right to you. The idea is to not lose the documentation, too keep it viewable online.
Thanks for all your efforts with root.
Cheers

You need to add a CNAME file to the repo for the domain to work when I point it there, see the docs here: https://help.github.com/articles/using-a-custom-domain-with-github-pages/

Hi Jeff:
I’m sorry for my delay in answering you. The CNAME configuration on my side is ready
Cheers!

On 15May, 2016, at 3:58 PM, Jeff Escalante<EMAIL_ADDRESS>wrote:
You need to add a CNAME file to the repo for the domain to work when I point it there, see the docs here: https://help.github.com/articles/using-a-custom-domain-with-github-pages/ https://help.github.com/articles/using-a-custom-domain-with-github-pages/
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub https://github.com/jescalan/roots/issues/712#issuecomment-219307053

@ganar the domain redirect is set up. CNAME for v1.roots.cx points to ganar.github.io

Great: It's working! I need to change a couple of things, but at least it is usable.


Add 8 new classes

Add 8 new classes: Anakin_Command, Anakin_NewDeckCommand, Anakin_DelDeckCommand, Anakin_ComponentManager, Anakin_AnakinChangedEvent, Anakin, Anakin_ModelManager, Anakin_VersionedAnakin
Modify Anakin_Card class

Pull Request Test Coverage Report for Build 54

0 of 71 (0.0%)  changed or added relevant lines in 9 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-3.9%) to 86.743%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/main/java/seedu/address/logic/Anakin_commands/Anakin_Command.java
0
1
0.0%

src/main/java/seedu/address/model/Anakin_deck/Anakin_Card.java
0
1
0.0%

src/main/java/seedu/address/commons/events/model/Anakin_AnakinChangedEvent.java
0
4
0.0%

src/main/java/seedu/address/model/Anakin.java
0
4
0.0%

src/main/java/seedu/address/model/Anakin_VersionedAnakin.java
0
5
0.0%

src/main/java/seedu/address/commons/core/Anakin_ComponentManager.java
0
8
0.0%

src/main/java/seedu/address/logic/Anakin_commands/Anakin_DelDeckCommand.java
0
13
0.0%

src/main/java/seedu/address/logic/Anakin_commands/Anakin_NewDeckCommand.java
0
13
0.0%

src/main/java/seedu/address/model/Anakin_ModelManager.java
0
22
0.0%

Totals

Change from base Build 51:
-3.9%

Covered Lines:
1433

Relevant Lines:
1652

💛  - Coveralls


Added documentation for 1.13 get all policies API

Description
Minor documentation improvement for GET /_opendistro/_ism/policies (PR IM 352)
Issues Resolved
n/a
Check List

[X] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Looks like Get Policy is already documented in ISM docs (https://opensearch.org/docs/latest/im-plugin/ism/api/#get-policy). Closing this PR.


Get a portable version for WINDOWS

Describe the feature
Hello, thanks for this work.
Would it be possible, please to have a windows release as a portable version (ZIP with exe & libs without installation setup) for people like me who don't have the admin rights to install ?
thank you.
best regards

Hey!
Thanks for the suggestion!
I added portable version to the latest version and uploaded it to releases.
You can download it from the latest release releases/tag/v2.0.6
or from here vibe_2.0.6_x64-setup_portable.zip
Let me know if it works for you :)

Missing again since 2.5.4


pull request for e2e test at 01/25/2017 07:15:08

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Change config.output.filename?

Hi!
Is it possible to change the location of the config.output.filename and config.output.chunkFilename so that it is the same as with the build on production?

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Document when authentication mechanisms apply in generated code

Problem statement
The authentication mechanism could be better documented in the generated code. It was not clear to me why api.APIKeyAuth wasn't being called and I spent way more time figuring it out than I care to admit.
Swagger specification
securityDefinitions:
  api_key:
    type: apiKey
    name: token
    in: query
  token_header:
    type: apiKey
    name: X-Token
    in: header

Steps to reproduce
Generate server from spec with the above global authentication mechanisms.
Suggestion for restapi/configure_project.go
Add comments like so:
    // Applies when the "X-Token" header is set
api.TokenHeaderAuth = func(token string).....

   // Applies when the "token" query parameter is set
  api.APIKeyAuth = func(token string).....

Where token and X-Token are names from the swagger spec.
Other suggestions
Although the authenticator is in  go-openapi/runtime I think debug level logging may be helpful.

The errors.NotImplemented("api key auth (api_key) token from query has not yet been implemented") is also a bit misleading. I was using ?api_key=asdfasdf instead of ?token=asdfasdf.


add clause for monitoring hierarchy (#124)

Fixes #124

As discussed during today's TT-WISMD teleconference, here are may first thoughts (slightly more composed actually):

Using topics like monitor/a/wis2/ca-eccc-msc-global-discovery-catalogue/fr-meteo-france means that subscribers who now put wildcard (*) as the first element of the topic (because they do not care if the data is in the cache or not) will need to adjust. It is not a big issue, just a certain discomfort, not only now but also in the future.
If I understand it right that the payload is not going to be WNM then it is questionable if it shall be in WTH because the two have been (until now) considered coupled. That is includes also the version part of the WTH.
The fact that the level 6 is not going to be data-policy is also not very nice.

To be constructive, what about keeping the first levels without change (probably as origin or would there be a caching of it?) and just adding a new value for the level 5 (notification-type)? At this level all the (data) subscribers use data and the GDC listens to metadata so a third option monitoring (or report, or monitoring-report?) should not cause any confusion. I am still not fully OK with misusing the level 6, but I agree that putting there some bogus value is not nice either.
BTW, why do we need both centre IDs, originator of the report as well as the target/subject of the monitoring, in the topic? As a center being monitored, I would probably want reports from all Global monitoring centres, so perhaps origin/a/wis2/my-centre-that-is-monitored/monitoring-report would be enough (Not perfect, I know, the meaning of centre-id is kind of reversed here).


Styling for CFR stars context expansion

Style context expansion with stars
Widen content area a bit and move write comment link to the right to fill white space

eregs/notice-and-comment#125

The color of the expandable context bar is darker than it should be, the color variable is set in N&C repo so once this is merged I can make that change there.

@donjo heads up, some small positioning tweaks in here


feat: dotenv loader will assign env variables to process.env

PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our guidelines: https://github.com/Nikaple/nest-typed-config/blob/main/CONTRIBUTING.md
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: #13
What is the new behavior?
Variables from .env will be assigned to process.env automatically, and will not override the variables that exists on process.env
Does this PR introduce a breaking change?
[ ] Yes
[x] No

Other information

@latipun7 Can you help review this PR and check if it meets your needs?

@latipun7 Can you help review this PR and check if it meets your needs?

ok thank you.
what your reason it will not override the variables that exists on process.env? IMO the .env files should be treated as legit way to setup the environment variables. The files just exist to ease up the development, so we don't need to change the actual environments 👍


Warm and Cold Storage

Will the warm storage and cold storage which are based on object storage (e.g. AWS S3) be implemented in OpenSearch?

Hi @dnlchen !
If it is a feature request please use the template.
For an open discussion the community is active on https://discuss.opendistrocommunity.dev/c/forking-elasticsearch-kibana/50
Please post your question there in order to refine the issue you wish to put in the roadmap.
Also, since it is kind of a roadmap question, check out the roadmap :)

Related, https://github.com/opensearch-project/OpenSearch/issues/740

As suggested by @reta in this comment I'm adding a comment to this  discussion.
It would be very useful to have a way to limit search to a particular tier or tiers (hot/warm/cold) with a filter in the query like the elastic _tier.

Have a look at https://github.com/opensearch-project/OpenSearch/issues/1968

@jkowall I think https://github.com/opensearch-project/OpenSearch/issues/1968 (durability) is quite different from this one (tiered storage).

@jkowall I think #1968 (durability) is quite different from this one (tiered storage) - but there is an intersection indeed

This is basically a redesign of the way that UltraWarm is designed, which was “outside” of the database. This new architecture would be part of the database and be more highly performant due to the distributed nature of the implementation. I have had this discussion with folks working on it, and this is, in fact, the first step towards a more modern design of UltraWarm.

I'm going to resolve this in favor of the new issues covering usage of remote storage in OpenSearch: #2578 #2900


Use tables of tables as enums

This PR is incomplete. I have been writing it for a couple of days but I can't make it work, so I'd like some pointers on how to proceed with the implementation so that I can finish it and add it to the project. I thought that this was a nice contribution for the hacktoberfest, but it's proving more daunting than I first thought. Still, I want to finish it because it would be beneficial for many projects.
Motivation for this PR
Right now, enums are defined as table of integer or string literals. Sometimes, more complex elements may want to be added to the enum table so that a field can be limited to complex values:
---@enum LogLevels
local log_levels = {
    trace = { hl = "Comment",    level = vim_log_levels.TRACE },
    debug = { hl = "Comment",    level = vim_log_levels.DEBUG },
    info  = { hl = "None",       level = vim_log_levels.INFO },
    warn  = { hl = "WarningMsg", level = vim_log_levels.WARN },
    error = { hl = "ErrorMsg",   level = vim_log_levels.ERROR },
    fatal = { hl = "ErrorMsg",   level = 5 },
}

---@class LogConfig
---@field level LogLevels #Any messages above this level will be logged.
local default_config = {
    level = log_levels.warn,
}

What I've tried so far
I've first added tests to check that the PR is functional and they pass. Admittedly, they just define table as the description for the table field. It is good enough but it could be more descriptive. The tests pass, but the completions are not functional.
To make the tests pass, I've removed some type restrictions to accept all types in a couple of enum-related functions and extended it in others to also accept the table type. I'm still playing with these restrictions and seeing how they can be corrected.
I'm sure I'm missing a big piece of the puzzle and if you could tell me where to look I would add the functionality to the program in a moment :)

Thanks for your PR.
The core code is very complex, and I cannot determine the best way to modify it myself until I go deep into it.
I will find a more general way to solve this problem later, including #1411


fix: resolve dropdown menu disappearing for #11410

Description
Currently, if a dropdown menu contains an input field which displays suggestions to select from a dropdown (such as an email input on Chrome), the mouseleave event is triggered if the user hovers over one of the choices, causing the entire dropdown to disappear. This adds a check for the case of e.relatedTarget === null which will be the case when one of the input options is hovered over, but not when the mouse leaves through another event.

Closes https://github.com/zurb/foundation-sites/issues/11410

Motivation and Context
Allows users to choose an input option when their dropdown menu contains an input without the entire dropdown disappearing, which can be a bad user experience.
Types of changes

Dropdowns containing input fields that offer suggestions will now stay open long enough for the user to choose one. I have found one bug with this change, which is that in Firefox, if a user hovers over one of the input suggestions and then uses the keyboard to navigate to a different window, the dropdown will remain open. The dropdown will auto close again once focus is returned to the browser window, but will remain open until then. However, since current functionality is for the dropdown to disappear when one of those suggestions is hovered over, I wouldn't consider this change to break existing functionality.

[ ] Documentation
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing
functionality to change)

Checklist (all required):

[x] I have read and follow the CONTRIBUTING document.
[x] There are no other pull request similar to this one.
[x] The pull request title is descriptive.
[x] The template is fully and correctly filled.
[x] The pull request targets the right branch (develop or develop-v...).
[x] My commits are correctly titled and contain all relevant information.
[x] My code follows the code style of this project.
[ ] I have updated the documentation accordingly to my changes (if relevant).
[ ] I have added tests to cover my changes (if relevant).
[ ] All new and existing tests passed.

Thank you @arloduff! I'll take a look at this.

Thanks @ncoden! Appreciate it!

Hi @arloduff.
I cleaned this a bit and added some comments. I'll check if there is the same bug on others components.

[compatible with v6.5.0]


import in Client.init doesn't make request visible to rest of class

I ran into an import-related problem using v 0.7 of census, which I document in https://github.com/rdhyee/working-open-data-2014/blob/postscript/notebooks/Day_XX_census_0.7_import_issue.ipynb
In summary: I think the problem comes in how the requests module is imported. The requests module is imported inside the Client.__init__ method to be subsequently used in the fields method.  However, it doesn't seem requests is visible in that context and hence the exception. (My hypothesis is corrobarated in Python import in __init__() - Stack Overflow.)

Just ran into this issue too!

@rdhyee: long overdue, but this has been fully fixed in 0.8, which was just released to PyPI. Thanks!

OK, I'll close https://github.com/sunlightlabs/census/pull/16.


Jupyter Survey Notification popping up again and again

Environment data

VS Code version: 1.51.1
Jupyter Extension version: v2020.11.392013122
Python Extension version: v2020.11.371526539
OS (Windows | Mac | Linux distro) and version: Windows 10
Python and/or Anaconda version: 3.9.0
Type of virtual environment used: N/A
Jupyter server running: Local

Expected behaviour
After selecting no or yes from the survey popup on bottom right, it should not show again
Actual behaviour
It keeps popping up again and again. Sometimes even after running a cell.
Steps to reproduce:

Open a Notebook.
Click on no on survey popup.

Thanks for the bug. Unfortunately we can't repro the issue. Can you do the following?

Change "jupyter.logging.level":"debug" in your settings
Reload VS code
Reproduce the issue
Copy the contents of the 'Jupyter' output tab to this bug (or in a file and upload the file to the bug)

Thanks.

I also get exact same behavior.  I even did the survey, and now when I click yes it tells me I already filled out the survey.  and it happens constantly

@mra-financial-com @jla2w
We believe we have identified the cause of the issue and will be submitting a fix asap.

I can't repro but I couldn't before. Nobody has reported this since though so closing.

I can't repro but I couldn't before. Nobody has reported this since though so closing.


Labels displayed 3 times on the X axis on 3.3.2

Hello,
I noticed a strange bug on version 3.3.2. This chart is displayed correctly on 2.8.0 but on 3.3.2 the labels are tripled on the X axis :
https://jsfiddle.net/nagix/bL8hpk6n/
Thank you.
Lorris

You have to specify position bottom and then its looking fine: https://jsfiddle.net/Leelenaleee/02bsykf6/2/

You have to specify position bottom and then its looking fine: https://jsfiddle.net/Leelenaleee/02bsykf6/2/

Thank's a lot! :) But do you have a solution for this one? Position bottom doesn't seem to work :
https://jsfiddle.net/nagix/n6gozqmt/

Please provide a v3 fiddle, instead with whats wrong instead of only a v2 fiddle as you did in your main report

Sure :)
https://jsfiddle.net/amerieu/t1b8o7wg/

Your scale object is wrong as it was in the first one, you did not try to migrate to v3, please check my fiddle how I changed the scales and read the migration guide first: https://www.chartjs.org/docs/master/getting-started/v3-migration.html

Thank's a lot !! :)


Update UG

Codecov Report

Merging #56 (c1e79b7) into master (680418f) will decrease coverage by 0.09%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master      #56      +/-   ##
============================================
- Coverage     69.97%   69.87%   -0.10%
  Complexity      441      441
============================================
  Files            78       78
  Lines          1442     1444       +2
  Branches        154      155       +1
============================================
  Hits           1009     1009
- Misses          385      387       +2
  Partials         48       48

Impacted Files
Coverage Δ
Complexity Δ

src/main/java/seedu/address/model/person/Date.java
77.77% <ø> (ø)
3.00 <0.00> (ø)

...java/seedu/address/logic/commands/SendCommand.java
0.00% <0.00%> (ø)
0.00% <0.00%> (ø%)

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 680418f...c1e79b7. Read the comment docs.


s3 backend?

Hi @emattiza
Looking at porting some hcl to dhall-tf and it looks like we use an s3 backend.
The typing here seems to be local/remote only? is that right?  Would s3 just be a 3rd option there?
Are you the only person here?
Thanks
Alex

looks like theres a dozen back ends possible. these arent generated from schema somewhere?

they're not, they were hand coded at the time, and not exposed in the mk function. I am finding the s3 backend though in https://github.com/hashicorp/terraform/blob/main/internal/backend/remote-state/s3/backend.go, so those and that folder would likely be a great place to start automating against.

Go give dev a shot now that it has s3, and let me know if it works

Apologies, wasn't type checking with those changes. dev branch has the following example with s3 backend functioning.
https://github.com/dhall-terraform/dhall-terraform-stdlib/blob/dev/examples/s3.dhall
Links can be converted to use rawcontent or even a github cdn


Does Sleuth 2.0 work with Spring Boot 1.5.*

Hi there,
I have an Spring Boot 1.5.13 app that uses RestTemplate as well as 3rd party lib that uses AsynHttp from https://github.com/AsyncHttpClient/async-http-client. As far as I know Spring Sleuth does not auto configure tracing for AsynHttp. In order to support tracing I probably need Brave dependencies, however it may clash with the way Sleuth leverages Brave pre Sleuth 2.0. Any suggestions?

Sleuth 2.x doesn't work with Boot 1.5


Support get topic applied policy for MaxUnackedMessagesPerSubscription

Master Issue: #9216
Modifications

Fix the unackedMessagesExceededOnSubscription at the namespace level cannot be disabled
Added applied interface

Verifying this change
test applied api : testMaxUnackedMessagesOnSubApplied
test priority : testMaxUnackedMessagesOnSubscriptionPriority

Sorry for the late response @315157973 Could you please help resolve the conflicts? I think after this PR merged, all the applied policy is done right? Please help update the state https://github.com/apache/pulsar/issues/9216 thanks.

Sorry for the late response @315157973 Could you please help resolve the conflicts? I think after this PR merged, all the applied policy is done right? Please help update the state #9216 thanks.

Sorry, there are 3 left, I will finish it as soon as possible this week


TypeError: CSS.supports is not a function while running test

I met this TypeError: CSS.supports is not a function when writing a test file for my feature using Codeflask

I also try to bypass this by using global.CSS, but it does not seem to work on my side.
import React from 'react';

import { render, screen } from '@testing-library/react';
import { setupServer } from 'msw/node';

import { defaultConfigurationProps } from '@applets/ImportManager/__helper__/ConfigurationDialogWrapper';
import { setMockAuthToken } from '@util/testhelpers/init';
import NewColumnDialog from '.';
import { setDocumentHeight } from '../../../../../../../config/jest/jestHelpers';
import { AGGREGRATE, LOGICAL, MATHEMATICAL } from './MenuOption';

global.CSS = { supports: jest.fn(), escape: jest.fn() }; // Add this to bypass the CSS.supports is not a function

const server = setupServer();

beforeAll(() => {
	setMockAuthToken();
	server.listen();
});
...etc

Do you guys know any way to resolve or at least bypass this? Thanks.
Version:

React: 17.0.2
Codeflask: 1.4.1
Jest: 29.2.2
@testing-library/react: 12.1.5
@testing-library/jest-dom: 5.16.5

Same Problem for me, for a temporary workaround I added
Object.defineProperty(global.CSS, 'supports', {
    value: () => jest.fn()
});

to my jest setup file.


Add SCREENS constants. Navigate without linkTo from drawer component.

Details
Pretty weird issue, but starting to think the navigation ref linkTo() is in some cases unreliable (at least when navigating from within the drawer). Switched to passing a navigation object to the drawer component using navigationRef.navigate(screen, params) and URL handling works as intended on mobile web.
Push state issue still remains.
Fixed Issues
Fixes https://github.com/Expensify/Expensify.cash/issues/2188
Tests
QA Steps

Login with an account that has multiple conversations
Click on one chat
Verify the reportID changes in the URL
Go back to the LHN
Click on another chat
Verify the reportID changes in the URL
Verify the reportID does not quickly change back to the wrong id in the URL
Re-test on all platforms to make sure navigation works normally.

Tested On

[x] Web
[x] Mobile Web
[x] Desktop
[x] iOS
[x] Android

Screenshots

Web

Mobile Web

Desktop

iOS

Android

Gonna throw this back into draft actually I think maybe the important bit is that we are not using the linkTo() method. Something is up with it.

This one is ready for a review.

There are no visual changes but I will go test this on various platforms.

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

🚀 [Deployed](https://github.com/Expensify/Expensify.cash
/actions/runs/765130740) 🚀 to
staging on Mon Apr 19 2021 at 22:41:56 GMT+0000 (Coordinated Universal Time)

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


chore: DRAFT for API migration tests

Description of changes
This set of tests adds coverage for the following API sub categories:

Basic REST API w/ dynamodb
Lambda functions + Rest APIs
Serverless REST APIs
GraphQL v1 w/ functions
GraphQL v2 w/ overrides

The approach for all of these tests is the same:

Build up with v10
Pull down with vLatest
Compare CFN & validate assertions that should also be true

TODO: Working on snapshots and some commits needed from another PR

Issue #, if available

Description of how you validated changes
Checklist

[x] PR description included
[ ] yarn test passes
[ ] Tests are changed or added
[ ] Relevant documentation is changed or added (and PR referenced)
[ ] New AWS SDK calls or CloudFormation actions have been added to relevant test and service IAM policies
[ ] Pull request labels are added

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

Merging #11655 (a4d1893) into cdkv2 (468c0ad) will increase coverage by 0.00%.
The diff coverage is n/a.

@@           Coverage Diff           @@
##            cdkv2   #11655   +/-   ##
=======================================
  Coverage   50.18%   50.18%
=======================================
  Files         702      702
  Lines       33976    33976
  Branches     6976     6976
=======================================
+ Hits        17050    17051    +1
+ Misses      15447    15446    -1
  Partials     1479     1479

Impacted Files
Coverage Δ

packages/amplify-cli/src/index.ts
66.10% <0.00%> (+0.84%)
:arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Ced

Why is "ced" not available in PostcodeResult?
When we lookup ex. OX14 3PF we would like to use. "Abingdon East". When we use Postcodes.io website this is returned in ced, but the property is not included in PostcodeResult.

It's not available because it's newer than the current version of the library (i.e. the API didn't used to have it).
I'm working on a new version which adds this (commit 72be9b7731d3a15ad144ac85fa22a7d56ec9bf74), along with a whole load of other new API additions, a major overhaul of how it all works, and much better tests.
You're welcome to wait for the next release ,although I can't guarantee when that will be as I work on this in my (very limited) free time. Alternatively, if you can't wait and don't mind building your own version from source, take a look at the vnext-wip branch. It should build and be usable, it's just not got the test coverage I wanted before releasing.

Hi Mark
Thanks for your prompt reply. Sounds good, looking forward for the next
release.
/Karsten
Den ons. 26. jun. 2019 kl. 11.35 skrev Mark Embling <
<EMAIL_ADDRESS>
It's not available because it's newer than the current version of the
library (i.e. the API didn't used to have it).
I'm working on a new version which adds this (commit 72be9b7
https://github.com/markembling/MarkEmbling.PostcodesIO/commit/72be9b7731d3a15ad144ac85fa22a7d56ec9bf74),
along with a whole load of other new API additions, a major overhaul of how
it all works, and much better tests.
You're welcome to wait for the next release ,although I can't guarantee
when that will be as I work on this in my (very limited) free time.
Alternatively, if you can't wait and don't mind building your own version
from source, take a look at the vnext-wip branch. It should build and be
usable, it's just not got the test coverage I wanted before releasing.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/markembling/MarkEmbling.PostcodesIO/issues/20?email_source=notifications&email_token=AKHI3YDXTYQMB6SZHEXSV73P4MZ5DA5CNFSM4H3QHCDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYS6GCI#issuecomment-505799433,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AKHI3YHSZNWFSV52SR4CVNLP4MZ5DANCNFSM4H3QHCDA
.

--
Med venlig hilsen | Best Regards
Karsten Grau RasmussenDeveloper, Co-owner
Speedware ApS | Nørrekobbel 7B
https://maps.google.com/?q=Nørrekobbel+7B | DK-6400+Sønderborg&entry=gmail&source=g
|
https://maps.google.com/?q=Nørrekobbel+7B | DK-6400+Sønderborg&entry=gmail&source=gDK-6400
Sønderborg
https://maps.google.com/?q=Nørrekobbel+7B | DK-6400+Sønderborg&entry=gmail&source=g
| CVR: 34590176
Tlf: (+45) 42 44 45 44
Tlf: (+47) 23 96 66 15
Tlf: (+46) 31 30 88 377
Tel: (+44) 20 80 687 615
Email<EMAIL_ADDRESS>Web: www.speedadmin.com
http://www.speedadmin.com/

Sorry to say that for various reasons, I never found time to finish the rewrite I wanted and in the meantime, the library has got more and more out of date, including this missing CED field.
I'm now hoping to dedicate some time to the work I wanted to do back in 2019 and finish the overhaul to modernise things and improve the API, then release a v1.0.0.
In the meantime though, I've made a few minor updates to the library (including adding the CED field) and have released v0.0.12 which resolves this issue. That is available on Nuget now.


Unable to compile using AIRFacebook-ANE

I have followed your guide to add AIRFacebook.ane, support and cardview anes. I am using AIR SDK 23 and followed your guide to replace adt.jar and runtimeClasses.jar from air sdk patch available on your repo. I am getting "already added: Landroid/support/annotation/ColorRes;" error and "java.lang.OutOfMemoryError: Java heap space" error at so many java.util.Arrays methods and other dx classes.
Please help me how can I successfully use your facebook ane.
Note: I am using Animate CC 2015.2 with AIR SDK 23 (also tried with AIR SDK 24)
on Windows 10 64 bit PC.

Are you also using AccountKit ANE? You do not need to patch the SDK if you are using only AIRFacebook.
Show me the list of ANEs that you are including in your app.

Apart from your anes, I am using my own ANE which includes android-support-v13.jar. Is this causing the problem? If yes, how can I solve it?

I need to know exactly what ANEs you're using, even if they're mine.
android-support-v13 library shouldn't cause a problem.

You misunderstood my reply. I said I am using following ANEs:

TWShare.ane
com.marpies.ane.facebook.ane

That's it.  You know TWShare.ane? This ANE was created by me, myself. I have used android-support-v13.jar in it. I included android-support-v13.jar while building the ANE.
I rebuilt my TWShare.ane by removing android-support-v13.jar from it as it's included in your facebook.ane, then it compiled without any error. Thank you for this reply.
Can you tell me how can I provide EventListeners to AIRFacebook.init() function if I am writing my action script code in conventional timeline method. I am not using ActionScript classes.
Thank you.

Android-support-v13.jar is not included in com.marpies.ane.facebook.ane. Android-support-v4.jar is included in com.marpies.ane.androidsupport.ane. If you need v13 then use that but do not include my support ANE.
You said you replaced your adt.jar and runtimeclasses.jar but it's only required for AccountKit ANE. You should use default AIR SDK files with this Facebook ANE.
If you're not using classes then use the traditional event system:
AIRFacebook.addEventListener( AIRFacebookCachedAccessTokenEvent.RESULT, onCachedAccessTokenResult );
AIRFacebook.addEventListener( AIRFacebookBasicUserProfileEvent.PROFILE_READY, onBasicUserProfileReady );
AIRFacebook.addEventListener( AIRFacebookEvent.SDK_INIT, onFacebookSDKInit );

AIRFacebook.init( ... );

function onFacebookSDKInit( event:AIRFacebookEvent ):void {
    AIRFacebook.removeEventListener( AIRFacebookEvent.SDK_INIT, onFacebookSDKInit );
}

function onCachedAccessTokenResult( event:AIRFacebookCachedAccessTokenEvent ):void {
    AIRFacebook.removeEventListener( AIRFacebookCachedAccessTokenEvent.RESULT, onCachedAccessTokenResult );
}

function onBasicUserProfileReady( event:AIRFacebookBasicUserProfileEvent ):void {
    AIRFacebook.removeEventListener( AIRFacebookBasicUserProfileEvent.PROFILE_READY, onBasicUserProfileReady );
    trace( event.basicUserProfile );
}

You are right. facebook.ane has android-supportv4.jar. TWShare.ane was bundled with android-support.v13 and this in-turn contains v4 also. So, it worked if I remove support-v13.jar from TWShare.ane.
Yes, I didn't repace adt.jar and runtimeclasses.jar after you replied to the first question.
And thanks a lot for traditional code method example.


can't run in the backend

Have you considered about the circumstance when app is running in the backend?
I happened to find that it would stop calculating seconds when the system changed to be locked.

Hi @MarkShawn2020 , thanks for being interested in the library.
Not 100% sure what you mean, but the library pretty much works from "direct" interactions (either via setting the value, or manually interacting with the widget). Happy to help if you can provide details about the use case for the widget.

Hi, thanks for you reply. I mean if the app goes to the backend, then the component of this app would be slept / locked, so that doesn't work.
Didn't you notice this? Or maybe I should force app not to constraint by the power charge?

closed since not foucused now.


Bug fix for applying pT5 r-z chi2

We would like to apply r-z chi2 only for pT5 < 5GeV in the algorithm. However, the original check in the code is problematic: it uses the pixelRadius < 5*kR1GeVf, but the pixelRadius is not defined yet. Bug fix and the efficiency is improved by not applying r-z cut on high pt pT5 tracks.

this is the slides comparing the effect before and after the PR.
https://indico.cern.ch/event/1410982/contributions/5930990/attachments/2860991/5005504/first study of cut difference at low and high pt.pdf
Although the overall efficiency doesn't change much, the pT5 efficiency is increased.
before bug fix:
http://uaf-10.t2.ucsd.edu/~yagu/SDL_GPU_plots/T3_remove_redundant/pT3_pt_redef/new_def_PU200_NEVT-1_a9bf9a-PU200/compare/TC_base_0_0_eff_pt.html
after bug fix:
http://uaf-10.t2.ucsd.edu/~yagu/SDL_GPU_plots/high_pt_cuts/pT5_rz_low_pt_new_pt_def_PU200_NEVT-1_ac7ce5D-PU200/compare/TC_base_0_0_eff_pt.html

Checking with a large sample, PU200 1000 events. Color codes are reverted with the CI check: red is after this PR, black is the master before. This is very hard to see the efficiency change for the highest pt bin.

The full comparison is linked here.
http://uaf-10.t2.ucsd.edu/~yagu/SDL_GPU_plots/high_pt_cuts/large_samples_comparison_PR405_1e1ebc-PU200_f2dfe2-PU200/compare/TC_eff_base_0.html

The full comparison is linked here.
http://uaf-10.t2.ucsd.edu/~yagu/SDL_GPU_plots/high_pt_cuts/large_samples_comparison_PR405_1e1ebc-PU200_f2dfe2-PU200/compare/TC_eff_base_0.html

the same folder following up from this link apparently shows large changes in the fake rate
while the bot tests show no difference
https://github.com/SegmentLinking/TrackLooper/pull/405#issuecomment-2125007216
Does the comparison include also the pt definition change?
Is the idea that it doesn't affect the sim-pt-based efficiency plot?

The full comparison is linked here.
http://uaf-10.t2.ucsd.edu/~yagu/SDL_GPU_plots/high_pt_cuts/large_samples_comparison_PR405_1e1ebc-PU200_f2dfe2-PU200/compare/TC_eff_base_0.html

the same folder following up from this link apparently shows large changes in the fake rate
while the bot tests show no difference #405 (comment)
Does the comparison include also the pt definition change? Is the idea that it doesn't affect the sim-pt-based efficiency plot?

The full comparison is linked here.
http://uaf-10.t2.ucsd.edu/~yagu/SDL_GPU_plots/high_pt_cuts/large_samples_comparison_PR405_1e1ebc-PU200_f2dfe2-PU200/compare/TC_eff_base_0.html

the same folder following up from this link apparently shows large changes in the fake rate
while the bot tests show no difference #405 (comment)
Does the comparison include also the pt definition change? Is the idea that it doesn't affect the sim-pt-based efficiency plot?

sorry, I forgot to rebase the master after the pt change PR get merged. I will update a new comparison

Sorry, I forgot to rebase the master after the pt change PR get merged.New link here and also updated in previous comments
http://uaf-10.t2.ucsd.edu/~yagu/SDL_GPU_plots/high_pt_cuts/large_samples_comparison_PR405_4d67cf-PU200_bf5196-PU200/compare/


Remove Clan Menu and Clan object from chat user list

Describe the bug
Currently the clan api call takes a very long time and ends up blocking other messages as well as causing high cpu usage.
If this is removed there is no need for the clan api call and could potentially reduce client cpu usage.

Not needed

Not needed


Memory leak on WSL

reproduce:

create script.php with the following content:

<?php

declare(strict_types=1);

use Revolt\EventLoop;

require __DIR__ . '/../../vendor/autoload.php';

$write_line = static fn(string $m, ...$args) => printf($m . "\n", ...$args);

$write_line('Server is listening on http://localhost:3030');

// Error reporting suppressed since stream_socket_server() emits an E_WARNING on failure (checked below).
$server = @stream_socket_server('tcp://localhost:3030', $errno, $_, flags: STREAM_SERVER_BIND | STREAM_SERVER_LISTEN, context: stream_context_create([
    'socket' => [
        'ipv6_v6only' => true,
        'so_reuseaddr' => false,
        'so_reuseport' => false,
        'so_broadcast' => false,
        'tcp_nodelay' => false,
    ]
]));
if (!$server || $errno) {
    throw new RuntimeException('Failed to listen localhost 3030.', $errno);
}

$watcher = null;
EventLoop::unreference(EventLoop::onSignal(SIGINT, static function () use ($server, &$watcher) {
    EventLoop::cancel((string) $watcher);
    fclose($server);
}));

$watcher = EventLoop::onReadable($server, function ($watcher, $resource) {
    $stream = @stream_socket_accept($resource, timeout: 0.0);
    if (false === $stream) {
        EventLoop::cancel($watcher);

        return;
    }

    stream_set_read_buffer($stream, 0);
    stream_set_blocking($stream, false);
    $suspension = EventLoop::createSuspension();
    $watcher = EventLoop::onReadable($stream, function () use ($suspension) {
        $suspension->resume();
    });
    $suspension->suspend();
    EventLoop::cancel($watcher);
    $request = stream_get_contents($stream);
    $suspension = EventLoop::createSuspension();
    $watcher = EventLoop::onWritable($stream, function () use ($suspension) {
        $suspension->resume();
    });
    $suspension->suspend();
    EventLoop::cancel($watcher);
    fwrite($stream, "HTTP/1.1 200 OK\n");
    $suspension = EventLoop::createSuspension();
    $watcher = EventLoop::onWritable($stream, function () use ($suspension) {
        $suspension->resume();
    });
    $suspension->suspend();
    EventLoop::cancel($watcher);
    fwrite($stream, "Server: TCP Server\n");
    $suspension = EventLoop::createSuspension();
    $watcher = EventLoop::onWritable($stream, function () use ($suspension) {
        $suspension->resume();
    });
    $suspension->suspend();
    EventLoop::cancel($watcher);
    fwrite($stream, "Connection: close\n");
    $suspension = EventLoop::createSuspension();
    $watcher = EventLoop::onWritable($stream, function () use ($suspension) {
        $suspension->resume();
    });
    $suspension->suspend();
    EventLoop::cancel($watcher);
    fwrite($stream, "Content-Type: text/html; charset=utf-8\n\n");
    $suspension = EventLoop::createSuspension();
    $watcher = EventLoop::onWritable($stream, function () use ($suspension) {
        $suspension->resume();
    });
    $suspension->suspend();
    EventLoop::cancel($watcher);
    fwrite($stream, "
Hello, World!
");
    $suspension = EventLoop::createSuspension();
    $watcher = EventLoop::onWritable($stream, function () use ($suspension) {
        $suspension->resume();
    });
    $suspension->suspend();
    EventLoop::cancel($watcher);
    fwrite($stream, "
" . htmlentities($request) . "
");
    $suspension = EventLoop::createSuspension();
    $watcher = EventLoop::onWritable($stream, function () use ($suspension) {
        $suspension->resume();
    });
    $suspension->suspend();
    EventLoop::cancel($watcher);
    fwrite($stream, sprintf('memory usage: %dMiB
', round(memory_get_usage() / 1024 / 1024, 1)));
    $suspension = EventLoop::createSuspension();
    $watcher = EventLoop::onWritable($stream, function () use ($suspension) {
        $suspension->resume();
    });
    $suspension->suspend();
    EventLoop::cancel($watcher);
    fwrite($stream, sprintf('peak memory usage: %dMiB
', round(\memory_get_peak_usage() / 1024 / 1024, 1)));
    @fclose($stream);
});

EventLoop::run();

$write_line('');
$write_line('Goodbye 👋');

run php script.php

memory keeps going up with each request ( noticeable with a request batch of 10k )
It seems suspensions are not being destructed properly and taking space in memory?
I'm not really sure what is happening, i first noticed the leak in https://github.com/azjezz/hack-php-async-io/blob/main/src/server.php, and went on simplifying the code to isolate it, until i reached this step, where no PSL code was involved, which means the leak is happening in revolt, or I'm doing something wrong.

Memory usage stays the same for me:
memory usage: 3MiB
peak memory usage: 4MiB

Not for me :D ( using stream select driver )
PHP 8.1.1 (cli) (built: Jan 11 2022 14:39:53) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.1, Copyright (c) Zend Technologies

Good point, I was using ext-uv, but same with REVOLT_DRIVER=Revolt\\EventLoop\\Driver\\StreamSelectDriver php test.php
Lifting the server siege...
Transactions:		      251743 hits
Availability:		       99.98 %
Elapsed time:		       99.61 secs
Data transferred:	       62.66 MB
Response time:		        0.02 secs
Transaction rate:	     2527.29 trans/sec
Throughput:		        0.63 MB/sec
Concurrency:		       56.48
Successful transactions:      251743
Failed transactions:	          52
Longest transaction:	       69.14
Shortest transaction:	        0.01

@kelunik Are you using dev-main and @azjezz is using 0.1.1?

i'm using dev-cache-suspensions ( same problem for me with dev-main, and v0.1 )
> composer show revolt/event-loop
name     : revolt/event-loop
descrip. : Rock-solid event loop for concurrent PHP applications.
keywords : async, asynchronous, concurrency, event, event-loop, non-blocking, scheduler
versions : * dev-cache-suspensions
type     : library
license  : MIT License (MIT) (OSI approved) https://spdx.org/licenses/MIT.html#licenseText
homepage :
source   : [git] https://github.com/revoltphp/event-loop.git 8f4a8e9fcbaf22106613abbf2a0bfb9dfe59f854
dist     : [zip] https://api.github.com/repos/revoltphp/event-loop/zipball/8f4a8e9fcbaf22106613abbf2a0bfb9dfe59f854 8f4a8e9fcbaf22106613abbf2a0bfb9dfe59f854
path     : /home/azjezz/Projects/php-standard-library/vendor/revolt/event-loop
names    : revolt/event-loop

support
issues : https://github.com/revoltphp/event-loop/issues
source : https://github.com/revoltphp/event-loop/tree/cache-suspensions

autoload
psr-4
Revolt\ => src

requires
php >=8.0.7

requires (dev)
ext-json *
jetbrains/phpstorm-stubs ^2019.3
phpunit/phpunit ^9
psalm/phar ^4.7

Also to note, i'm using WSL2, but i really hope that's irrelevant :D
> php --version && php -m && neofetch
PHP 8.1.1 (cli) (built: Jan 11 2022 14:39:53) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.1, Copyright (c) Zend Technologies
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
exif
fileinfo
filter
ftp
gettext
gmp
hash
iconv
intl
json
ldap
libxml
mbstring
memprof
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
pgsql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
soap
sockets
sodium
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlwriter
xsl
zip
zlib

[Zend Modules]

            .-/+oossssoo+/-.               azjezz@Lua
        `:+ssssssssssssssssss+:`           ----------
      -+ssssssssssssssssssyyssss+-         OS: Ubuntu 20.04.3 LTS on Windows 10 x86_64
    .ossssssssssssssssssdMMMNysssso.       Kernel: <IP_ADDRESS>-microsoft-standard-WSL2
   /ssssssssssshdmmNNmmyNMMMMhssssss/      Uptime: 3 hours, 8 mins
  +ssssssssshmydMMMMMMMNddddyssssssss+     Packages: 2050 (dpkg)
 /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Shell: zsh 5.8
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Terminal: /dev/pts/2
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   CPU: AMD Ryzen 7 3750H with Radeon Vega Mobile Gfx (4) @ 2.295GHz
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   Memory: 117MiB / 9959MiB
ossyNMMMNyMMhsssssssssssssshmmmhssssssso
+sssshhhyNMMNyssssssssssssyNMMMysssssss+
.ssssssssdMMMNhsssssssssshNMMMdssssssss.
 /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/
  +sssssssssdmydMMMMMMMMddddyssssssss+
   /ssssssssssshdmNNNNmyNMMMMhssssss/
    .ossssssssssssssssssdMMMNysssso.
      -+sssssssssssssssssyyyssss+-
        `:+ssssssssssssssssss+:`
            .-/+oossssoo+/-.

@trowski Can you reproduce it?
@azjezz Maybe WSL 2 doesn't handle mmap correctly? Just a thing that comes to my mind.

No, I get similar results to you after thousands of requests.
memory usage: 2MiB
peak memory usage: 4MiB

I can reproduce it on WSL, but also get lots of errors logged from siege:
[error] unable to set close control sock.c:141: Invalid argument
[error] unable to set close control sock.c:141: Invalid argument
[error] unable to set close control sock.c:141: Invalid argument
[error] unable to set close control sock.c:141: Invalid argument

I can reproduce it on Windows with WSL 1 and directly without WSL at all.

I simple script like the following does not reproduce any leak for me:
<?php

$i = 0;

while (true) {
        $fiber = new Fiber(function () {
                while (true) {
                        Fiber::suspend();
                }
        });

        $fiber->start();
        $fiber->resume();

        if (++$i % 100000 === 0) {
                print \memory_get_usage(true) . PHP_EOL;
        }
}

I have the same bug on Linux/Ubuntu. If you comment out the readHeaders it is not leaking. Here is my example:
<?php

use Revolt\EventLoop;

require __DIR__ . '/vendor/autoload.php';

function readHttpLine($stream): string
{
    $stop = false;
    $chars = '';
    $suspension = EventLoop::getSuspension();
    $watcher = EventLoop::onReadable($stream, fn () => $suspension->resume());
    while(!feof($stream) && !$stop) {
        do {
            $byte = fread($stream, 1);
            $chars .= $byte;
        } while($byte && $byte != "\n");
        $stop = (strlen($chars) > 1 && $chars[-1] == "\n");
        if (!$stop) {
            $suspension->suspend();
        }
    }
    EventLoop::cancel($watcher);
    return $chars;
}

function readHeaders($stream)
{
    $stop = false;
    while(!$stop) {
        $line = readHttpLine($stream);
        echo trim($line) . PHP_EOL;
        // end-of-headers is one line with \r\n
        $stop = (strlen($line) == 2 && $line[0] == "\r" && $line[1] == "\n");
    }
}

function run()
{
    // start TCP/IP server on localhost:8080
    // for illustration purposes only, should use socket abstracting instead
    $server = \stream_socket_server('tcp://<IP_ADDRESS>:8000');
    if (!$server) {
        exit(1);
    }
    \stream_set_blocking($server, false);

    echo "Visit http://localhost:8080/ in your browser." . PHP_EOL;

    // wait for incoming connections on server socket
    EventLoop::onReadable($server, function ($watcher, $server) {
        $conn = \stream_socket_accept($server);
        \stream_set_blocking($conn, false);
        readHeaders($conn);
        $data = "HTTP/1.1 200 OK\r\nConnection: close\r\nContent-Length: 3\r\n\r\nHi\n";
        EventLoop::onWritable($conn, function ($watcher, $conn) use (&$data) {
            $written = \fwrite($conn, $data);
            if ($written === \strlen($data)) {
                \fclose($conn);
                EventLoop::cancel($watcher);
            } else {
                $data = \substr($data, $written);
            }
        });
    });

    EventLoop::repeat(2, function () {
        $memory = \memory_get_usage() / 1024;
        $formatted = \number_format($memory) . ' KiB';
        echo "Current memory usage: {$formatted}\n";
    });

    EventLoop::run();
}

run();

I have the same issue on Linux/Ubuntu. if you comment out readHeaders it is not leaking. Here is my example:
<?php

use Revolt\EventLoop;

require __DIR__ . '/vendor/autoload.php';

function readHttpLine($stream): string
{
    $stop = false;
    $chars = '';
    $suspension = EventLoop::getSuspension();
    $watcher = EventLoop::onReadable($stream, fn () => $suspension->resume());
    while(!feof($stream) && !$stop) {
        do {
            $byte = fread($stream, 1);
            $chars .= $byte;
        } while($byte && $byte != "\n");
        $stop = (strlen($chars) > 1 && $chars[-1] == "\n");
        if (!$stop) {
            $suspension->suspend();
        }
    }
    EventLoop::cancel($watcher);
    return $chars;
}

function readHeaders($stream)
{
    $stop = false;
    while(!$stop) {
        $line = readHttpLine($stream);
        echo trim($line) . PHP_EOL;
        // end-of-headers is one line with \r\n
        $stop = (strlen($line) == 2 && $line[0] == "\r" && $line[1] == "\n");
    }
}

function run()
{
    // start TCP/IP server on localhost:8080
    // for illustration purposes only, should use socket abstracting instead
    $server = \stream_socket_server('tcp://<IP_ADDRESS>:8000');
    if (!$server) {
        exit(1);
    }
    \stream_set_blocking($server, false);

    echo "Visit http://localhost:8080/ in your browser." . PHP_EOL;

    // wait for incoming connections on server socket
    EventLoop::onReadable($server, function ($watcher, $server) {
        $conn = \stream_socket_accept($server);
        \stream_set_blocking($conn, false);
        readHeaders($conn);
        $data = "HTTP/1.1 200 OK\r\nConnection: close\r\nContent-Length: 3\r\n\r\nHi\n";
        EventLoop::onWritable($conn, function ($watcher, $conn) use (&$data) {
            $written = \fwrite($conn, $data);
            if ($written === \strlen($data)) {
                \fclose($conn);
                EventLoop::cancel($watcher);
            } else {
                $data = \substr($data, $written);
            }
        });
    });

    EventLoop::repeat(2, function () {
        $memory = \memory_get_usage() / 1024;
        $formatted = \number_format($memory) . ' KiB';
        echo "Current memory usage: {$formatted}\n";
    });

    EventLoop::run();
}

run();

@sorenbronsted Thanks for the example, I've been able to reproduce it and reduce it to a simpler one:
<?php

use Revolt\EventLoop;

require __DIR__ . '/../vendor/autoload.php';

EventLoop::repeat(0.01, function () {
    $suspension = EventLoop::getSuspension();
    EventLoop::defer(fn () => $suspension->resume());
    $suspension->suspend();
});

EventLoop::repeat(2, function () {
    $memory = \memory_get_usage() / 1024;
    $formatted = \number_format($memory) . ' KiB';
    echo "Current memory usage: {$formatted}\n";

    \gc_collect_cycles();
});

EventLoop::run();

It happens if callbacks suspend.

@sorenbronsted Your example works fine on 8.1 with the latest release now, but it does weird things with 8.0 and the extension.
@azjezz Could you please retry your example as well?

The script i shared initially doesn't leak memory anymore, however, PSL TCP server is still leaking memory, i'm trying to simplify it and identifying where the leak is coming from.

The memory leak in PSL is unrelated, this issue seems to be fixed.
Thank you @trowski and @kelunik 🎉


error in npm install under server dir.

Hello, Thank you for sharing this code for learners.
I'm deploying this package under fabricsamples/basicnetwork.
There is lot of errors while do npm install under Server folder,,  specific while installing  grpc packages and download error and compile errors.
Ignored and started to service by runnnng node server.js,  and ended with below errors.
Note :1,  I'm not using VSC code extension for this.
2,  Ubuntu 18 vm
3,  npm -v
6.14.4
4, node -v
v12.16.3
5. fabric versions 1.4.4
/application/server$ node server.js
internal/modules/cjs/loader.js:960
throw err;
^
Error: Cannot find module 'fabric-ca-client'
Require stack:

/opt/ksbc/fcabac/application/server/utils.js
/opt/ksbc/fcabac/application/server/server.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:957:15)
at Function.Module._load (internal/modules/cjs/loader.js:840:27)
at Module.require (internal/modules/cjs/loader.js:1019:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object. (/opt/ksbc/fcabac/application/server/utils.js:12:26)
at Module._compile (internal/modules/cjs/loader.js:1133:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
at Module.load (internal/modules/cjs/loader.js:977:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
at Module.require (internal/modules/cjs/loader.js:1019:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/opt/ksbc/fcabac/application/server/utils.js',
'/opt/ksbc/fcabac/application/server/server.js'
]
}

you can change the version of your node to the v8.x in my case 8.17.0 solved the problem.

I Recommend to use the IBM Blockchain Platform VSCode Extension code to prevent the problem occured, like mentioned before by @cyamac1993 try to change the node to version 8, to make it easier switching between node version I recommend to use NVM if you still don't use it.
From the error you mentioned the fabric-ca-client still don't properly installed.
The Basic-Network is not updated again by Hyperledger Fabric Developers try to use test-network, but I still don't test the compatibility of this code into newest Fabric 2.0 I think we need to upgrade the ChainCode first but from what I read in the documentation it's still possible to use it without changing the code, but without the latest function available.

Thanks  @ElangSBP  @cyamac1993
I was able to  fix the fabric-ca-client by manuall  install npm install<EMAIL_ADDRESS>Post to that, I did a small  update to MSPID corrections to address my MSPID in server/utils.js for admin user creation
var identity = X509WalletMixin.createIdentity('Org1MSP', enrollment.certificate, enrollment.key.toBytes());
Rest everything works perfect.   A  awesome learning.


Add FLAG_ACTIVITY_NEW_TASK to intent before starting LibsActivity

Fix #383.
Add FLAG_ACTIVITY_NEW_TASK to intent so that the apps don't die
while starting LibsActivity on older Androids.

Looks good. Thanks for the PR. and sorry for the super late merge..

 Thank you for the cool library! Don't worry about the delay.
Nice! Now I can show my libraries to people with older Androids :smile:


Feedback results of community prioritisation exercise to the design community

what
We need to provide the design community with the results of the community prioritisation exercise
why
We need the community to feedback on the top five items, including those who voted for them so that we can make sure they are ready for moving into a forthcoming service manual sprint
done when

[ ] A presentation is the exercise and results is created
[ ] The presentation is shared with the community

@henocookie can we close this, I feel like this is done?


Should not be able to create undefined datafile

Saw this in console logs:

Not sure if its just that the player object wasn't loaded yet, but it shouldn't happen...

With the new client-side participant ID validation, this should never occur. But, added a check in createNewParticipant that will still create a participant id, but will display a non-thrown error.


Updated Gson to 2.8.9 and protobuf-java-util to 3.19.4

Description
Require that gson version 2.8.9 or higher be used.
The gson dependency is a transitive dependency of protobuf-java-util, so I also updated all occurrences to the latest version of 3.19.4.
Issues Resolved
Resolves #989
Check List

[x] New functionality includes testing.
[x] New functionality has been documented.

[x] New functionality has javadoc added

[x] Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #1012 (8b3ee86) into main (ed42667) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main    #1012   +/-   ##
=========================================
  Coverage     91.36%   91.36%
  Complexity      683      683
=========================================
  Files            84       84
  Lines          1993     1993
  Branches        168      168
=========================================
  Hits           1821     1821
  Misses          132      132
  Partials         40       40

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 ed42667...8b3ee86. Read the comment docs.


Here are another two usefull tools in single-cell analyses

https://github.com/ChenMengjie/VIPER
https://github.com/ChenMengjie/Citrus

Are you OK with doing a pull request? That helps keep track of who did what and also ensures that explanations are correct. If not, just let me know and I can add when I get a moment.

Sorry, I just understood how it works. I will do a pull request. Thank you!


Cannot "Launch an Eclipse application"

Hello,
I would like to contribute to dbeaver and then I followed the wiki to configure Eclipse to launch DBeaver.product. The project is built but when I launch the product file I get this error :
An internal error occurred during: "Launching DBeaver.product".
org.eclipse.jdt.launching.JavaRuntime.isModularJava(Lorg/eclipse/jdt/launching/IVMInstall;)Z

I use Eclipse Oxygen.1 Release (4.7.1) on Windows 10 Creators.
Did anyone meet this problem ?

What is your Java version?
In some cases Java 9 is not really working with Oxygen.

Thanks for the pointing me this out. I tried the following solutions :

Change default installed JREs from JRE 1.8.0_74 to JDK 1.8.0_121
Add -vm parameter to point to this JDK in eclipse.ini

The problem is still the same.

Looks like you have wrong Eclipse version.
Try Eclipse for RCP and RAP developers (https://www.eclipse.org/downloads/packages/eclipse-rcp-and-rap-developers/oxygen1a)

@Bludwarf , please provide more details regarding your environment.
The JRE that answers you in batch shell may be different from that is used during .product launch.
Please review preferences "Window -> Preferences" then "Java->Installed JREs"

Thank you @serge-rider that was just a problem with Eclipse installation.
I installed a fresh Eclipse from your link and followed the wiki. The application starts now... and crashes but this is another problem.
Sorry for the silly question !

The other problem was fixed by following this post : https://stackoverflow.com/a/13575823/1655155


deliver

https://github.com/colinhumber/itunes_transporter_generator#attention

sorry if that's a duplicate

sorry I've put that issue in the wrong repo!


Pane vs Row/Column building

I'm struggling to understand why I would use Pane instead of just using Row and Column to build up a pane. The docs pages on the two are completely exclusive of any mention of one other.

Can I mix and match?
What benefit is one over the other?

Anything that you put into a Row and Columns will get turned into a Pane if it isn't already  a Widget,Layout or Pane instance. The reason why you might want to construct a Pane manually is that you want to pass some options to that Pane since the Row/Column will just construct a Pane with the default settings.

True; only useful if not using Row and wanting it to be displayable as a Pane nonetheless.

Ok. I'm going to read through that 3 more times, but I think I'm coming to an understanding.

Also - I feel like there is analogy to a paned glass door in here somewhere.

There is definitely an analogy to window panes, yes.  But don't get too comfortable; we just agreed this afternoon to overhaul our terminology to make it more consistent and I think more clear, which has the downside of confusing you if you figure out the above!

@jbednar In that case, I'll hold off spending too much time on terminology at this point!


TypeError: 'module' object is not callable (Python 3.11)

Current behaviour
Script returns an error while sending notification as follows. Execution is aborted and notification is not being sent.
Log entry:
[1733758284] wproc:   stderr line 01: Traceback (most recent call last):
[1733758284] wproc:   stderr line 02:   File "/usr/local/nagios/libexec/send-service.py", line 56, in <module>
[1733758284] wproc:   stderr line 03:     main(sys.argv)
[1733758284] wproc:   stderr line 04:   File "/usr/local/nagios/libexec/send-service.py", line 29, in main
[1733758284] wproc:   stderr line 05:     host = urllib.parse(data["host"])
[1733758284] wproc:   stderr line 06:            ^^^^^^^^^^^^^^^^^^^^^^^^^^
[1733758284] wproc:   stderr line 07: TypeError: 'module' object is not callable

Environment
Raspberry Pi 5, Raspbian 12
Nagios Core Version 4.4.14
Python 3.11.2
Behaviour on different Python versions is unknown.
Possible solution
Script tries to call urllib.parse as a function, but it’s actually a module, not a callable object.  However it can be called by specific functions from the module, such as urllib.parse.quote or urllib.parse.unquote. For instance lines:
host = urllib.parse(data["host"])
serv = urllib.parse(data["servdesc"])

can be changed to:
host = urllib.parse.quote(data["host"])
serv = urllib.parse.quote(data["servdesc"])

This fixes the issue and makes notifications being sent as usual. This applies in the same manner to send-host.py.

Thanks for bringing this to my attention. I'll work on it when time permits 😄

Modified per your suggestion. I don't actively use Nagios anymore, so I am unable to test it. However, based on the doc I read for urllib and your input, I've made the changes which should correct the problem. Please give feedback if you see anything else wonky happening.


[CI] Move gpu docker binary to cuda10

Staging for binary-image change cuda10.

After this PR confirms the testcases pass, we can merge https://github.com/dmlc/tvm/pull/4228


[image_picker] pickImage 0.6.0+9

Having this issue on IOS:
[VERBOSE-2:ui_dart_state.cc(148)] Unhandled Exception: MissingPluginException(No implementation found for method pickImage on channel external_custom_packages.plugins.flutter.io/image_picker)
#0 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:300:7)
#1 ImagePicker.pickImage (package:image_picker/image_picker.dart:53:40)
#2 _AvatarNameComponents._getPicture (package:swopda_frontend/widgets/editcontact/avatar_name_components.dart:85:23)
#3 _AvatarNameComponents._settingCustomModalBottomSheet.. (package:swopda_frontend/widgets/editcontact/avatar_name_components.dart:141:21)
#4 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:511:14)
#5 _InkResponseState.build. (package:flutter/src/material/ink_well.dart:566:30)
#6 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:166:24)
#7 TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:240:9)
#8 TapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:211:7)
#9 GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27)
#10 _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:225:20)
#11 _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:199:22)
#12 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156:7)
#13 _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7)
#14 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7)
#15 _rootRunUnary (dart:async/zone.dart:1136:13)
#16 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#17 _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#18 _invoke1 (dart:ui/hooks.dart:233:10)
#19 _dispatchPointerDataPacket (dart:ui/hooks.dart:154:5)
using:
image_picker: ^0.6.0+9
in pubspec.yml
using flutter project -i swift -a kotlin
[✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Mac OS X 10.14.5 18F132, locale de-DE)
• Flutter version 1.5.4-hotfix.2 at /Users/alange/development/flutter/flutter
• Framework revision 7a4c33425d (7 weeks ago), 2019-04-29 11:05:24 -0700
• Engine revision 52c7a1e849
• Dart version 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/alange/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_SDK_ROOT = /Users/alange/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.2.1, Build version 10E1001
• ios-deploy 1.9.4
• CocoaPods version 1.7.2
[✓] Android Studio (version 3.4)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 36.1.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
[✓] IntelliJ IDEA Ultimate Edition (version 2019.1.2)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 35.3.3
• Dart plugin version 191.7141.49
[✓] Connected device (1 available)
• PivotalMobile • 32c1ad6310195ce0d99e3bf1e4611a3b15265e8e • ios • iOS 12.3.1
• No issues found!

Solved it by fully removing the plugin from my mac incl. cache.
registering:

(void)registerWithRegistrar:(NSObject *)registrar {
FlutterMethodChannel *channel =
[FlutterMethodChannel<EMAIL_ADDRESS>binaryMessenger:[registrar messenger]];
UIViewController *viewController =
[UIApplication sharedApplication].delegate.window.rootViewController;
FLTImagePickerPlugin *instance =
[[FLTImagePickerPlugin alloc] initWithViewController:viewController];
[registrar addMethodCallDelegate:instance channel:channel];
}
was not called proper.

After getting the plugin and using it, everything worked...
Still I am not sure why it happened.


Add arguments to rkt run and start as daemon

Hello rkt-team,
i am trying out rkt and now a have two questions about rkt run. The example container i build is just a container which starts a node server. The command is node /src/index.js. This server takes a port as an argument (node /src/index.js --port=3000) or uses a standard port (80).

Question: Can i pass the port to the exec command? The exec command in the manifest ist:

    "exec": [
      "/bin/sh",
      "-c",
      "\"node\" \"/src/index.js\""
    ],

I tried to override the command with --exec with something like that:
sudo ./rkt-v0.9.0/rkt run --insecure-skip-verify --port=80-tcp:80 --mds-register=false helloworld-latest.aci --exec="/bin/sh -c 'node /src/index.js --port=3000'"

sudo ./rkt-v0.9.0/rkt run --insecure-skip-verify --mds-register=false helloworld-latest.aci --exec="/usr/local/bin/node /src/index --port=3000"

Also i tried:
sudo ./rkt-v0.9.0/rkt run --debug --insecure-skip-verify --port=80-tcp:80 --mds-register=false helloworld-latest.aci -- --port=3000

Without the port it works perfect:
$ sudo ./rkt-v0.9.0/rkt run --debug --insecure-skip-verify --port=80-tcp:80 --mds-register=false helloworld-latest.aci
rkt: using image from local store for image name coreos.com/rkt/stage1-coreos:0.9.0
rkt: using image from file helloworld-latest.aci
2015/10/16 11:09:47 Preparing stage1
2015/10/16 11:09:48 Writing image manifest
2015/10/16 11:09:48 Loading image sha512-7e326661f6ec896f89b2057347f7f2c311983bd965fb1587990f8784e9ab8586
2015/10/16 11:10:06 Writing image manifest
2015/10/16 11:10:06 Writing pod manifest
run: group "rkt" not found, will use default gid when rendering images
2015/10/16 11:10:07 Setting up stage1
2015/10/16 11:10:07 Wrote filesystem to /var/lib/rkt/pods/run/2a936584-a61c-454c-84fc-f00caed7fe02
2015/10/16 11:10:07 Pivoting to filesystem /var/lib/rkt/pods/run/2a936584-a61c-454c-84fc-f00caed7fe02
2015/10/16 11:10:07 Execing /init
2015/10/16 11:10:07 Loading networks from /etc/rkt/net.d
2015/10/16 11:10:07 Loading network default with type ptp
Spawning container rkt-2a936584-a61c-454c-84fc-f00caed7fe02 on /var/lib/rkt/pods/run/2a936584-a61c-454c-84fc-f00caed7fe02/stage1/rootfs.
Press ^] three times within 1s to kill container.
Failed to create directory /var/lib/rkt/pods/run/2a936584-a61c-454c-84fc-f00caed7fe02/stage1/rootfs/sys/fs/selinux: No such file or directory
Failed to create directory /var/lib/rkt/pods/run/2a936584-a61c-454c-84fc-f00caed7fe02/stage1/rootfs/sys/fs/selinux: No such file or directory
/etc/localtime is not a symlink, not updating container timezone.
systemd 222 running in system mode. (-PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT -GNUTLS -ACL +XZ -LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD -IDN)
Detected virtualization systemd-nspawn.
Detected architecture x86-64.
Running with unpopulated /etc.

Welcome to Linux!

Initializing machine ID from container UUID.
Populated /etc with preset unit settings.
Failed to install release agent, ignoring: Read-only file system
[  OK  ] Created slice -.slice.
[  OK  ] Listening on Journal Socket.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Created slice system.slice.
[  OK  ] Started Pod shutdown.
         Starting Pod shutdown...
[  OK  ] Created slice system-prepare\x2dapp.slice.
         Starting Journal Service...
[  OK  ] Started helloworld Reaper.
         Starting helloworld Reaper...
[  OK  ] Started Journal Service.
         Starting Prepare minimum environment for chrooted applications...
[  OK  ] Started Prepare minimum environment for chrooted applications.
[  OK  ] Started Application=helloworld Image=helloworld.
         Starting Application=helloworld Image=helloworld...
[  OK  ] Reached target rkt apps target.
[ 5445.267258] sh[4]: Server running at http://<IP_ADDRESS>:80

Question: Is it possible to start the container in the background? At the moment i have to kill the process with pressing three times ^].

Thanks in advance!
matthaias

You can pass arguments to your executable as described over here https://github.com/coreos/rkt/blob/master/Documentation/subcommands/run.md#passing-arguments.
Here's the example with the absolute path to node with the correct syntax:
sudo ./rkt-v0.9.0/rkt run --insecure-skip-verify --mds-register=false helloworld-latest.aci --exec=/usr/local/bin/node -- /src/index --port=3000

For running rkt as a daemon, we have some documents over here https://github.com/coreos/rkt/blob/master/Documentation/using-rkt-with-systemd.md#systemd-run, if you happen to use systemd.

Thanks for your answer.
Your example for passing arguments works. I knew that i just don't get the correct syntax.
For running rkt as a daemon i hoped there is something like dockers -d options. At the moment i am not using systemd, but i think i will change then.
Thanks, you helped me a lot!

This is coming up a lot (#1311, https://groups.google.com/d/msg/rkt-dev/TNDFMMAieR0/gsOkRLxLBAAJ) so I think we should come up with some better documentation/guidance here, at a minimum. For non-systemd users let's point to alternatives like daemonize.

https://github.com/coreos/rkt/pull/1684

Documentation on how to run rkt as a daemon merged (#1684), closing.


Trouble with new empire passing shell to meterpreter

kali rolling
empire 2
im having trouble with the injectshellcode module with new empire syntax, i cant figure out how to open a meterpreter shell from empire ?
(Empire: neco1target) > injectshellcode listener pid
i cant change the payload
"Payload   False       reverse_http              Metasploit payload to inject
(reverse_http[s])."
and when i try to see what are there with tab autocomplete it dose not work....
i've set my   Lhost,Lport and the process id
but im confused with the option to set a listener. bc if empire listens on a specific port then metasploit cant

The meterpreter listener in Empire is essentially a foreign listener. Meaning, you will need to setup a separate metasploit instance and then configure the meterpreter listener in Empire to point to your metasploit listener.

When i try to make my empire metasploit listener point to my metasploit listener i cant my listener to work cuz the port is already in use

ty it was helpfull


Cleanup and mimize build size

I used the new webpack 5 features to separate the workers from the main package https://webpack.js.org/guides/web-workers/
The library is no longer bundled by webpack.
It provides the javascript compiled by tsc and the css compiled by tailwind.
Bundling and minimization should be done by the importer.
This allows optimization of dependencies on their end. (Eg otherwise all codemirror code was loaded twice in dodona)
I used file-loader instead of url-loader in order to not make the whole python zip inlined in javascript.
The scope of the serviceworker had to move to the root as some parts of the code are now served from /assets in dodona
To test the impact of these build changes I made a pr in dodona https://github.com/dodona-edu/dodona/pull/5204
As can be seen there, the changes here cause some required changes there.

Old  dodona package size:

New dodona package sizes:

The new js does not yet include the 2.4MB zipped python code, but it is already a major reduction


[request-pull] [ElsevierBridge] fix time extraction

The following changes since commit 251d7646b7f4766e0fc5bd4f07beaeec1065c0db:
[index] Fix loading of metadata (2016-08-19 14:46:22 +0200)
are available in the git repository at:
https://framagit.org/peetah/rss-bridge/ ElsevierBridge
for you to fetch changes up to 490c5094f56b73f56981c59d402a083229d0d5b7:
[ElsevierBridge] fix time extraction (2016-08-19 18:50:50 +0200)

Pierre Mazière (1):
[ElsevierBridge] fix time extraction
bridges/ElsevierBridge.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Merged.
Related commits:

490c5094f56b73f56981c59d402a083229d0d5b7 [ElsevierBridge] fix time extraction - by @pmaziere


Delete Widget Dynamically

is it possible to delete widgets dynamically from a job ?

Please direct support requests to Stack Overflow: stackoverflow.com/questions/tagged/dashing

Yes. I wrote a simple example job that can do just that here:
http://www.mapledyne.com/ideas/2015/6/30/delete-a-dashing-dashboard-widget
You basically just want to manipulate the Sinatra::Application.settings.history variable, but the code in that link should get you most of the way to where you want to be.
Or skip the post and go right to the gist file:
https://gist.github.com/mapledyne/6fb671c17c3f865309f3#file-delete-widget-rb

Forcing a refresh, in my opinion, is a hack.

Forcing a refresh may be a hack, as what I do there (I'd agree on both counts, frankly), but what I describe above doesn't refresh the whole stack - in our situation, we only delete the widgets we're wanting deleted. We dynamically create dashboards that look to see what widgets exist to decide what to display. Having certain widget deleted, then, change the look of the dashboards as appropriate.
If there was an API call or similar to delete widgets individually, I'd love to hear it. Until then, manually removing them from the history variable has been very successful for us.
In other words: do you have a non-hack solution to the problem of removing a widget? I'd love to learn.

Well, I'm not sure that Dashing is really well suited for Dynamic Dashboards. Not without a lot of work.
However, a component itself could be dynamic. This can be achieved by the component JS manipulating the DOM to create and remove tiles which represent the data.
You have only one component, but it dynamically generates tiles for each data point.
I've been meaning to explore the possibility of creating a Meta-Component which comprehends lists of data-points compatible with other widgets. This would allow you to nest other components inside of the container and it would marshal the data automagically to update/create/delete sub-components. This should be possible, though it might not be as nice to use as I'm imagining.

We use it for dynamic dashboards lots, quite successfully, and I didn't find it to be a lot of work. It actually turned out to be much less than I expected. A job symlinks the appropriate dashboards to a template erb file (essentially one for every environment/set of VMs). This erb then looks up its filename which due to the symlink is the id of the environment. It looks up what VMs belong to that VM, then creates a row for each VM - in each row are all widgets with the appropriate VM id.
This way we can create new environments, and dashing doesn't need to know about them (other than the job creating the new symlink automatically), and the template doesn't even need to know what widgets are present for a given VM, so it can report information that's only appropriate to itself.
We then deploy with puppet a script to each VM that in turn updates the widgets for the given VM.
Ultimately, QA builds a new set of VMs and within minutes there's a living dashboard for all of the systems in there, all without our intervention.
Hundreds of dashboards and thousands of widgets, and it works fantastically. Sure there's a hack here and there, but as we discover better ways, we can implement them pretty easily - all of those widgets and dashboards are ultimately a result of only three files, all reasonably small in size for the work they do for us.