remove id from the @cached directive

the id, ids fields are pretty useless & can use a pre-cached value causing source.id to come up undefined. It's not terrible, but it causes an extra render. Plus this makes for a smaller, more opinionated API.

I saw these changes reflected in the latest Action PR. Could you help illustrate how this works without id? I must admit, I've been a little foggy on the role of resolveCached.
Let's use an example:
const projectCardSubQuery = `
query {
  project @cached(type: "Project") {
    content
    id
    status
    teamMemberId
    updatedAt
    teamMember @cached(type: "TeamMember") {
      id
      picture
      preferredName
    }
    team @cached(type: "Team") {
      id
      name
    }
  }
}
`;

const mapStateToProps = (state, props) => {
  const userId = state.auth.obj.sub;
  const [teamId] = props.project.id.split('::');
  const projectId = props.project.id;
  const {project} = cashay.query(projectCardSubQuery, {
    op: 'projectCardContainer',
    key: projectId,
    variables: {projectId},
    resolveCached: {
      project: () => projectId,
      team: (source) => (doc) => source.id.startsWith(doc.id),
      // example of returning a string instead of a function so it runs in O(1)
      teamMember: (source) => source.teamMemberId
    },
  }).data;

So resolveCached for project returns a single parametric projectId; teamMember returns the id from the source document; and team returns a function that returns a bool.
How does this work? does the resolveCached project function work by indexing into the normalized collection of Projects? Then the source parameter passed to the resolvedCached teamMember function is a Project?  And then Team is found (O(n)) by ensuring that the Project id starts with the Team Id?
Is that right?

Yep! I could probably elucidate this a little better in the docs, but basically each method in resolveCached is a function that can return a string, an array of strings, or a function.
If it returns a string, in this case projectId, it with return store.getState().cashay.entities[type='Project'][projectId].
Next, look at the teamMember method. It also returns a string source.teamMemberId. The source is the parent object (just like in a GraphQL resolve function).
So in this case:
const id = `store.getState().cashay.entities[type='Project'][projectId].teamMemberId`
return store.getState().cashay.entities[type='TeamMember'][id]

Finally, just like you said, the team method returns a function, which will run in O(n) over every single Team entity. It returns a single value. For an array of values, the type would be type: [Team].

They way you just wrote about it here is super, super clear. This would be great for the docs!


Support for new unsaved files

Hi
Is it possible to add support for new unsaved files.
We use VS Code as our editor for HTML that we then copy and paste into a CMS, so we just use a new html file but never save it.
Thanks
Nick

Does the following help you: http://donovanbrown.com/post/How-to-change-the-language-mode-of-a-unsaved-file-in-VS-Code


Batch in the graph mean ?

I see you set batch_size=32 but input is only 1 subgraph, and label output is 32. I don't understand that.
And When I using drnl to label why in the graph have node label 0.

When you set batch_size = 32, the input should be 32 subgraphs. However, they are compressed into one large graph (with disconnected componenets) for batch processing. So you may see only 1 subgraph.

Node label 0 is for marking those nodes with infinite distance to one of the two target nodes.

Excuse me, the Model can't run multiple edges predict in one graph, your solution is to train many times with z_score different right?

That's right. For every new link to predict, you need to relabel the subgraph extracted for this link and apply the GNN. However, the training only happens once over all the training links.


Failed to receive trace information from dotnet autoinstrumentation

I am using kubernetes node bindplane agent to collect my dotnet core app. I configured a opentelemetry (OTLP) processor to retrieve log/metrics/traces. I could see log and metrics were successfully received in bindplane ops agent; however, the trace information is missing.
I sniffed the packet and confirmed the traceparent information is properly generated in the http header but my bindplane ops agent showed no traces was received from the app.
My bindplane version is 1.36.0

Shawn,
I assume you mean OTLP receiver, rather than processor. That is the first step. After that, the OTLP trace instrumentation, even autoinstrumentation, has to be pointed to that receiver correctly. The K8s endpoint is very specific (I'll be asking another engineer to respond with the correct endpoint information, as he knows it well), and if it is entered incorrectly you will see exactly what you are experiencing.
If my assumption is wrong, and you actually did add a processor instead of a receiver, that is also an issue.
I'll have the other engineer tag in with more detailed information about that endpoint now.

Hi @shawnho1018, if you are using the node agent with the OTLP source, you can reference this doc for the proper endpoints.
Can you confirm that your instrumented applications are targeting one of the endpoints outlined in that doc? Also, are you using gRPC or HTTP?

This issue has been stale for a while, so I'm going to close it for the time being. Please feel free to open a new issue if you are still running into problems, or feel free to reach out in our public Slack!


Error,Bug in Install fmt!

$ opam install fmt
The following actions will be performed:
  ∗  install fmt 0.8.2

=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[fmt] Archive in cache

=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[ERROR] The compilation of fmt failed at "ocaml pkg/pkg.ml build --dev-pkg false --with-base-unix true --with-cmdliner true".

#=== ERROR while installing fmt.0.8.2 =========================================#
# opam-version 1.2.2
# os           linux
# command      ocaml pkg/pkg.ml build --dev-pkg false --with-base-unix true --with-cmdliner true
# path         /home/guest/.opam/system/build/fmt.0.8.2
# compiler     system (4.02.3)
# exit-code    1
# env-file     /home/guest/.opam/system/build/fmt.0.8.2/fmt-17344-6d07ae.env
# stdout-file  /home/guest/.opam/system/build/fmt.0.8.2/fmt-17344-6d07ae.out
# stderr-file  /home/guest/.opam/system/build/fmt.0.8.2/fmt-17344-6d07ae.err
### stderr ###
# pkg.ml: [ERROR] key --dev-pkg: Unknown key.

=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The following actions failed
  ∗  install fmt 0.8.2
No changes have been performed

$ opam install base-unix cmdliner fmt
[NOTE] Package base-unix is already installed (current version is base).
[NOTE] Package cmdliner is already installed (current version is 1.0.0).
The following actions will be performed:
  ∗  install fmt 0.8.2
Do you want to continue ? [Y/n] y

=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[fmt] Archive in cache

=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[ERROR] The compilation of fmt failed at "ocaml pkg/pkg.ml build --dev-pkg false --with-base-unix true --with-cmdliner true".

#=== ERROR while installing fmt.0.8.2 =========================================#
# opam-version 1.2.2
# os           linux
# command      ocaml pkg/pkg.ml build --dev-pkg false --with-base-unix true --with-cmdliner true
# path         /home/guest/.opam/system/build/fmt.0.8.2
# compiler     system (4.02.3)
# exit-code    1
# env-file     /home/guest/.opam/system/build/fmt.0.8.2/fmt-17402-6d07ae.env
# stdout-file  /home/guest/.opam/system/build/fmt.0.8.2/fmt-17402-6d07ae.out
# stderr-file  /home/guest/.opam/system/build/fmt.0.8.2/fmt-17402-6d07ae.err
### stderr ###
# pkg.ml: [ERROR] key --dev-pkg: Unknown key.

=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
The following actions failed
  ∗  install fmt 0.8.2
No changes have been performed

how fix ?

Are you sure your packages are up-to-date ? It seems that you don't have the correct version of topkg, which is a bit odd since it is correctly constrained in the repo.
Could you please tell me what the following invocations output:
opam info topkg -f version
opam config report

May simply doing a:
opam upgrade
opam install fmt

will fix things.

Closing this since I can't reproduce. Please report if you solved the issue or provide more details if that's not the case.


Cannot get spider settings

I can set specific spider settings in the Scrapinghub UI but cannot get them with this library.
I use the spider settings to store some keys that need to match a database key, that are then used while loading the scraped data in an ETL.
I was expecting something like:
spider = project.spiders.get('myspider')
spider.settings()

or
spider = project.spiders.get('myspider')
spider.metadata.get('spider_settings')

Related issues:
Issue #84 was about accessing spider settings from the job that was possible through job.metadata.get('job_settings')

Yes, you can't do that now, it's not supported. There's some internal API for getting the settings, but it's unstable and unmaintained. We have plans to rework and unify existing API later this year: when it's ready, we'll update the python bindings correspondingly.

Closing this in favor of the entrypoint’s get_project_settings().


Is this an issue? functions should have cyclomatic complexity of less than 15, this has 18

see lintr message: https://github.com/Roche-GSK/admiral/pull/548
functions should have cyclomatic complexity of less than 15, this has xx
assertions.R/assert_varval_list()
utils.R/arg_name())

@kabis-ops @bundfussr I believe this is the result of having too many if/else statements in the code.  Could we simplify or rework these 2 functions?  Can we break down the existing functions into multiple functions?

Technically it should be no problem to put some of the code into separate function to reduce the cyclomatic complexity. However, I am not sure if it improves the readability of the code.

I'm only not sure what to think of this cyclomatic complexity lintr. It's indeed related to how much "branching" a function has. That included not only if and else but also logical operator like || and &&. I noticed that our assertions often exceed the limit of 15 but I do not see any value in breaking these functions apart. Thus, I'd say let's either icrease the limit to something like 20 or remove that check completly.


Support custom validation logic in api-model

Description
Some model has certain complicated business rules that is described in free text and cannot be easily described with Java annotation. E.g.,
"physicalAddresses": {
   "type": "array",
   "description": "Must contain at least one address. One and only one address may have the purpose of REGISTERED. Zero or one, and no more than one, record may have the purpose of MAIL. If zero then the REGISTERED address is to be used for mail",
   "items": {
      "$ref": "#/definitions/CommonPhysicalAddressWithPurpose"
   }
}

We need a way to validate a model with such complicated business rules.

Done


Problem with return type of Dv computation

I would expect the following code to work
val length : list 'a -> Dv (x:int{x >= 0})
let rec length l =
  match l with
  | [] -> 0
  | hd::tl -> 1 + length tl

but it raises
Subtyping check failed; expected type Prims.nat; got type Prims.int

It works when replacing Dv with Tot
Also, the following works
val length2 : list 'a -> Div int (requires (True)) (ensures (fun x -> x >= 0))
let rec length2 l =
  match l with
  | [] -> 0
  | hd::tl -> 1 + length2 tl

This also works fine:
val length : list 'a -> Dv (x:int{x >= 0})
let rec length l =
  match l with
  | [] -> 0
  | hd::tl ->
        let x = length tl in
        1 + x

Seems like a recent regression. We're getting a bogus forall (x:int). x >= 0 subformula in the query, which cannot be proven. I have a rough bisect and will look later today.
@lastland came across this just now, which might be an instance of the same issue:
assume val reg_t : Type
assume val range : n:nat -> list (m:nat{m < n})
assume val n_regtype : reg_t -> nat
type regtyp (t:reg_t) = n:nat{n < n_regtype t}

// works
(* let reglist (t:reg_t) : list (n:nat{n < n_regtype t}) = range (n_regtype t) *)

// doesn't work
// (Error 19) Subtyping check failed; expected type Prims.list (Yao.regtyp t); got type Prims.list (m: Prims.nat{m < Yao.n_regtype t}) (see also /home/guido/r/fstar/ulib/prims.fst(408,17-408,23))
let reglist (t:reg_t) : list (regtyp t) = range (n_regtype t)

Yao's example was actually #1345, now re-fixed. This is happening because we're elaborating some bad less-general annotations during monadic application. In essence, the program above is getting elaborated to:
val length : list 'a -> Dv nat
let rec length l =
  match l with
  | [] -> 0
  | hd::tl -> let r = length tl <: Dv int in 1 + r

Where the Dv int completely "forgets" that the let-bound term actually returns a nat. The int of course comes from the domain of (+) : int -> int -> int.
I'm working on it. I considered adding a postcondition to the annotation, basically Div int (requires True) (ensures (fun x -> x >= 0)) which, theoretically is just fine I think, but getting that formula from the unifier is gonna be a pain. Just keeping Dv nat should work, and subtyping should later take care of it, that's what I'm aiming at now.

Hi @mtzguido, all, looked into this issue a bit. Here is a smaller repro:
module Test

assume val aux (n:int) :Dv nat

let length (n:int) :Dv nat = 1 + aux n

My reading of what happens is as follows:
We start to typecheck op_addition 1 (aux n).  op_addition has type int -> int -> Tot int. Typechecking 1 is fine.
When we typecheck aux n, we compute its computation type to be Dv nat, from the return type of aux. But then we have to check that its type is a subtype of int, the argument type expected by op_addition. However, instead of just checking this subtyping, we actually go ahead and weaken the result type of aux n from nat to int. This is in TcUtil.weaken_result_typ (called from comp_check_expected_typ). And once we set the type of aux n to int, we are toast since after that we can't prove that the length function returns a nat.
A couple of explanations about observations made in some of the previous comments:
-- Changing the types from Dv to Tot works, because for Tot computations we also insert return in the wp which essentially tells the solver that length n == 1 + aux n, and then the solver can prove it.
-- Inserting a let binding also works, because then the addition term 1 + x is Tot and the type of x is also nat, and then the solver can again prove it.
As for the solution, my hypothesis is that we need to set the result type in weaken_result_typ for some cases, specifically in the case of ascriptions (see #1427 for an example). However, when we are checking for subtyping for the arguments in the case of function application, we need to just check the subtyping and not set the return type. So, may be one way to go about it is to add a flag to weaken_result_typ to say whether to modify the result type or not. We can unset the flag for function arguments.

Another possibility is to just compute the type of the argument, and check for subtyping in tc_args using Rel, but that might interfere with bidirectional typechecking, not sure.

Thanks Aseem! Trying your suggested fix about selectively updating the return type now. Curiously, this is also popping up in a tactics branch with Type and eqtype.


Add paths to exclude config option

The exclude config option "commentAnchors.workspace.excludeFiles" has this default:
"**/{node_modules,.git,.idea,target,out,build,vendor}/**/*"

I tried to add .gitignore file:
"**/{node_modules,.git,.idea,target,out,build,vendor}/**/*, .gitignore"

But that doesn't work - it just scans forever.

Hey, this seems more of a limitation of glob patterns and does not seem possible at this time. Adding a custom filtering solution may be implemented in the future, however it is not currently planned


Transaction List Improvement

Apply new designs to transactions list rows based on Mac designs and start including failed payments on list

https://github.com/stakwork/sphinx-kotlin-ui/assets/143194249/5e3e4722-c8d6-4883-9058-dd642d339d73
made the changes requested . @tomastiminskas

@turizspace thanks! I will test your changes tomorrow and approve the PR if they work/look as expected. Initially I would say you fixed all the issues I mentioned based on the video.

@turizspace the video looks perfect. But here are some last needed adjustments:

I saw you changed the hex code for some colors like md_theme_light_shadow, md_theme_dark_background, md_theme_dark_shadow, randomColor20. Those defined colors might be used somewhere else in the app, so by changing the hex color you might be affecting the UI of other views of the apps. If the hex color you need to use was not already defined in an existing color, then you need to create new colors.

It seems you did changes on TransactionDto on sphinx-kotlin-core submodule. But those changes were not included in the PR. Not sure how it works when working with submodules. But I guess you need to fork that repo as well and push here the reference of the commit on the sphinx-kotlin-core. Or if the changes are simple you can add a screenshot here so I can replicate them to test locally

Thanks in advance

@turizspace I added error_message on TransactionDto, so forget about item 2. As soon as you fixed item 1 I will merge PR and ask @tomsmith8 to process the pmt

@tomastiminskas i have made these changes . . :)


Update Readme.md

Adding Polynote notebook from Netflix that does have Apache Spark support

LGTM

If you're adding notebooks with Spark support, almond should probably find its way here.


Make health check parameters configurable for deployments

A successful deployment is dependent on health checks passing for the container and for the load balancer. Sometimes these health checks take longer which can lead to a "failure" even when the container is actually healthy. We want to allow these checks to be configurable for individual deployments so they can up the time between checks or other parameters to allow a deployment to succeed.
Container health check: https://github.com/civiform/cloud-deploy-infra/blob/9f3c34c81f62ef0bcdcb26242bef094a5126d776/cloud/aws/templates/aws_oidc/app.tf#L111
Load balancer health check: https://github.com/civiform/cloud-deploy-infra/blob/9f3c34c81f62ef0bcdcb26242bef094a5126d776/cloud/aws/modules/ecs_fargate_service/main.tf#L130

Related doc:

HealthCheck object for ECS: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_HealthCheck.html
HealthCheck for the LB: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lb_target_group#health_check


test Insert into more data when first insert into to make sure using sync mv

Proposed changes
Root Cause Analysis:
Currently, the statistics reported by BE (Backend) nodes have higher priority than those from ANALYZE statements. During the first INSERT INTO operation, the system waits for row count reports from all tablets before updating the table statistics.
Subsequent INSERT INTO operations cannot obtain the status of all tablets, so the system continues to use the statistical information from the first INSERT INTO operation. This leads to a lower estimated cost for the original table's query plan, resulting in the selection of the original table's query plan instead of the materialized view.
Conclusion:
The test case should be modified to include a larger dataset in the first INSERT INTO operation, which will increase the likelihood of utilizing the materialized view. This is because the cost estimation will better reflect the actual data distribution and size, leading to more accurate plan selection.

run buildall


fix: Add Origin header to all requests

WIP.

/ok-to-test sha=7d2b2e8

/ok-to-test sha=6d08a77

/ok-to-test sha=7219a92

/perf-test
Just testing perf infra.

/ok-to-test sha=dd8f508


netopeer server crashing

I want to share netopeer-server backtrace message. I can't find any clue from this crash message. Is there anyone meets this problem?
Communication SSH socket unexpectedly closed.
Communication SSH socket unexpectedly closed.
Communication SSH socket unexpectedly closed.
Communication SSH socket unexpectedly closed.
Session 1: failed to write reply.
Session 3: SSH channel poll error (Socket error: disconnected).
Session 4: SSH channel poll error (Socket error: disconnected).
Session 5: SSH channel poll error (Socket error: disconnected).
Session 3: Call Home thread failed to wake up in a timely manner, fatal synchronization problem.

Segmentation fault, backtrace: 3
STACK: Called by:
netopeer2-server(signal_handler+0x74) [0x105e8]
/lib/libc.so.6(__default_sa_restorer+0) [0x36839ed0]
/lib/libpthread.so.0(pthread_mutex_lock+0x8) [0x36f83778]
]

Current version
netopeer server 0.5.31
libnetconf2.so.0.11.48
Regards,
Boyong

Hi Boyong,
it seems the main problem is on the client side, it disconnects unexpectedly from the server. Anyway, you are using really old versions of both libnetconf2 and netopeer2, so even if there was a problem in our applications, you would have to reproduce it with the current versions.
Regards,
Michal


Wave Enhance support

Is your feature request related to a problem? Please describe.
I just receive the Wave Enhance support and it doesn't seem to be supported by this library
Describe the solution you'd like
I'd like to get the Wave Enhance support in this lib to get possibility to enable it in Home Assistant

This is under development, and will hopefully be released later this month

@LaStrada do you have any updates? I'd be happy to get my Wave Enhance sensors integrated

Also waiting for enhanced support. What is the problem to add it? Because it is mostly the same as any other wave device

@LaStrada any chance we could help to facilitate the testing and/or development?

Sorry for the delay. Will try posting what I have during the weekend. What's missing is a check for version when adding it (all devices needs to be updated) + improve code quality + tests.
So it should work now, except for some issues when adding a brand new device (old firmware). Will post it as a custom integration and link it here!

Looking forward to this as I'd like to get support added to ESPHome also.

Again, sorry for the delay. I made some fixes yesterday and will try to publish a beta of the framework, and then make a custom integration that can be imported using HACS or similar later today.
I've fixed the issue with adding devices with old FW, the user is now asked to upgrade using the Airthings app.
Will update here when it's available!

Looking forward to this as I'd like to get support added to ESPHome also.

I'm no expert in ESPHome development, but feel free to contact me on Discord (same username) if you, or anyone else, need any help in developing this!

beta of the framework

I tried it and it seems to work. I created a simple executable script to scan BLE devices and then call the lib for the communication


How do we implement async way in workflow

Hi dear,
No sure if this is right place to ask support.
We're using st2 as our workflow engine, there should be a very common for the scenario to implement async way to external tools.
a specific user case for instance as described below:

action to create a ticket in remedy
workflow should hold up until remedy close/approved ticket
remedy inform workflow
workflow continue

I tried to find kind of way to implement, but seems nothing details mentioned in official docs.
must appreciated if any help can get from your side.
Leo

Here's one design pattern:
1/ Action creates a ticket in remedy
2/ Some sort of approval/close ticket takes place in Remedy. If it is approved in Remedy, configure Remedy to send a webhook to StackStorm
3/ StackStorm then uses that webhook with a rule to kick off whatever workflow it is that you want.
So the initial action that creates a ticket does not have to be part of the same workflow that gets run later. You just have an action that creates a ticket, and another workflow/action that actually does something.

Dear LindsayHill,
Thank you very much for the prompt reply, would it possible for you to give an example code.
I attached my workflow for your reference.
In my workflow,  there's a  task"approval" which invoke subtask(sub-workflow) "approval", and it does approval in remedy.
pool-decommission.txt
Leo

I can't give you example code, because it's not a specific, contained example. Your overall workflow could contain any number of steps, specific to your organization.
But your overall workflow would look like what I described above:
1/ Your first workflow creates an ticket in remedy
2/ Approval happens in remedy, and it sends a webhook to StackStorm.
3/ StackStorm has a rule that matches that webhook, and runs your second workflow, that goes and does whatever it is that you need.

Thanks LindsayHill,
We will consider about this way, for now, we will use long time timeout in the workflow and let action take the waiting things.
Leo

You can do that pattern if you like, although I would not want to have large numbers of long-running actions hanging around.


Update app name in README integration example

Thanks for keeping this project alive! There was still a reference to the old project in the README, from the integration example.

Thanks you for your contribution @benwad. I shall be publishing the newest release very soon.


Archived workflows can't be searched by name anymore

Pre-requisites

[X] I have double-checked my configuration
[X] I can confirm the issue exists when I tested with :latest
[X] I have searched existing issues and could not find a match for this bug
[ ] I'd like to contribute the fix myself (see contributing guide)

What happened/what did you expect to happen?
Since the Archived Workflows have been unified to the Workflow main page, it is not possible to search by name of prefix anymore
Version
v3.5.5
Paste a small workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflows that uses private images.
Any workflow

Logs from the workflow controller
kubectl logs -n argo deploy/workflow-controller | grep ${workflow}

Logs from in your workflow's wait container
kubectl logs -n argo -c wait -l workflows.argoproj.io/workflow=${workflow},workflow.argoproj.io/phase!=Succeeded

Duplicate of #12161


[Question] error[E0412]: cannot find type DateTime in module super

Hi guys, I have a problem with my github example
This is my query_1.graphql and my schema.graphql
query RepoView($owner: String!, $name: String!) {
  repository(owner: $owner, name: $name) {
    homepageUrl
    stargazers {
      totalCount
    }
    pullRequests(first: 20, states: OPEN) {
      nodes {
        number
        closed
        createdAt
      }
    }
  }
}

pullRequest(
    "The number for the pull request to be returned."
    number: Int!

    closed: Boolean

    createdAt: DateTime

  ): PullRequest

But i just got some error when i run it
error[E0412]: cannot find type `DateTime` in module `super`

If i missed something, remind me please!
Thanks any help!!

DateTime is not standard type. If you want use it, you should define custom type like this.
https://github.com/graphql-rust/graphql-client/blob/master/examples/github/examples/github.rs#L8

@h-michael
yes, you are right , thanks!

type DateTime = String; 👍


feat: support for taskfile

A task runner / simpler Make alternative written in Go
repo: https://github.com/go-task/task
homepage: https://taskfile.dev/

Awesome, thanks for the PR!


Support for multiple Github Organizations

In the properties, the plugin supports one Github org only.
It would be nice if a single Nexus could accept authentication from multiple orgs.
Proposed config:
github.org=org1,org2,org3

Cool idea! Will look into your PR later tonight!


feat(toast)!: remove from tamagui, add toast to starter

This PR:

Removes toast exports from tamagui
Updates docs
Adds toast boilerplate to next-expo-solito starter

BREAKING CHANGE: users should change toast imports from tamagui to @tamagui/toast after the release this change is included in

Merged to the other toast branch for one merge to master.


Add Metabit Trading logo to adopters list

Current Behavior
Metabit Trading is Meshery's latest adopter (see https://github.com/meshery/meshery/pull/7433)
Desired Behavior
Metabit Trading logo should be displayed alongside others.

Contributor Guides and Resources

🎨 Wireframes and designs for Meshery Site in Figma
🖥 Contributing to Meshery Website
🙋🏾🙋🏼 Questions: Discussion Forum and Community Slack

Hey @leecalcote, can you assign this to me? Want to work on this.

Would like to work on this issue if possible

Hi, @leecalcote I would love to work on this.

Thanks! Note that finding an SVG of this logo might prove difficult. Ask Gen Yang for one, if needed. Note the opacity effect and difference between light and dark modes.
Assigning the issue in chronological order… @therajatrai
@Mayaleeeee now is a good time to build and run this site in preparation for other issues.

Hi

@leecalcote I have raised a PR
https://github.com/meshery/meshery.io/pull/1102
Kindly review it


window.history.replaceState vulnerabilities potential in foundation.reveal

What should happen?
What happens instead?
manipulation of browser history
Possible Solution

window.history.replaceState('', document.title, window.location.href.replace(#${this.id}, ''));
replace state shouldnt be assigned directly from the href url
Test Case and/or Steps to Reproduce

Test Case:
Discoverd by Burp Suite , you can manipulate the history by passing query string or hash

How to reproduce:
1.
2.
3.
Context

Your Environment

Foundation version(s) used: 6.4.3
Browser(s) name and version(s): chrome
Operating System and version (desktop or mobile): mac

Checklist (all required):

[yes ] I have read and follow the CONTRIBUTING.md document.
[ yes] There are no other issues similar to this one.
[yes ] The issue title is descriptive.
[ yes] The template is correctly filled.

window.history.replaceState('', document.title, window.location.href.replace(#${this.id}, ''));
replace state shouldnt be assigned directly from the href url

This is not a security vulnerability imho. Also this depends on the html and is the same way how it is done in other frameworks and libraries who do deeplinking.

Discoverd by Burp Suite , you can manipulate the history by passing query string or hash

Not true as this is only controllable from the html, not in the browser url. Also this just replaces the URL.

{this.id}

This is the id of the reveal.

See https://github.com/ReactTraining/history/issues/371

We do not use the search param or any other user controlled value ;-)
I see no real security issue. Just a replacement with the id from the DOM.

Closing as we did not receive any further information.


Increase aws provider version to 3.50.0 for compatability with s3 module v2.9.0

Increase aws provider version to 3.50.0 for compatability with s3 module v2.9.0

I've tested that aws provider version 3.50.0 works with hashicat-aws including the s3 module with v2.9.0 with both TF 0.14.9 and 1.0.7

also tested 3.60.0 which is what we will actually upgrade to


OpenUrlInPlace behavior issue since BI platform upgrade

Hello,
I have a recent issue with OpenUrlInPlace. It is following the upgrade of BI platform from BI4.1 SP7 PL11 up to 4.1 SP9 PL6.
SAP BuisnessObjects Design Studio: 16.2.2
plug-in: Design Studio SCN Community Utils:  <IP_ADDRESS>604022052
I did two simple DS application. The first one, application A includes a button which is supposed to open and be replaced by an application B when we click on the button via OpenUrlInPlace.
I am describing the process to reproduce the issue below:
Step 1: Open an application A via document link.
Step 2 : Clicking on the button linking to the application B (document link), the application A is loaded.
Step 3:  Clicking on the button linking to the application B (document link), the application B is loaded.
I tried to use "APPLICATION.openNewWindow( document link application B)", there is no issue, the application B is opened in a new window.
Please let me know if you know the reason for this behavior and how to fix it.
Thanks a lot,

I'm encountering this issue as well.

Hello Donralz,
We solved the issue by switching the position of our sIDtype and iDocID in the document link (iDocID in first position).

Hello,
I am facing exactly the same issue but changing position of  sIDtype and iDocID is also not solving the problem.
Can anyone please suggest if some other workaround has been done?
Regards,
Nikunj


downwards recoil with mw sweps

idk if you already know this but the recoil goes down when using mw weapons for some reason, forced compatibility and and didn't see any errors in console so...

cl_screenshake_shake_pitch_mult 0


Scroll to keep search results in the middle of the viewport

Issue Report Checklist

[x] Searched the issues page for similar reports
[x] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
[x] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
[x] Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description
Searching for text tends to put a search result at the penultimate line of the viewport rather than in the middle where one's eyes will be more likely to be looking, and where there will be a good amount of context both before and after the located text.
What steps reproduce the problem?

search for a text string that occurs after the currently visible text
hit F3 if needed
observe that the highlighted result is at the bottom of the editor viewport rather than the middle

What is the expected output? What do you see instead?
Where possible, text should scroll so that the search result is near the middle of the editor window. There could be an option so that text will always scroll, even if the search result is only a few lines below the middle, but it should always jump to the middle if the search result is outside of the current text. I am often searching and it takes a while to find the search result, particularly when it's right at the bottom of the viewport, and then having to scroll to see the text that comes after the search result and get it nearer the middle.
Versions

Spyder 4.2.3
Python 3.7.6 64-bit | Qt 5.9.6 | PyQt5 5.9.2 | Windows 10

Hey @nickion, thanks for reporting. This is a good suggestion and we'll try to implement it in a future release.


[Update Request]: dotPDNLLC.paintdotnet 5.0.8 -> 5.0.9

What type of update are you requesting?
A new version of an existing package
Current Package Identifier
dotPDNLLC.paintdotnet
Package Version
5.0.9
Please describe the changes you would like to see
Also:  older versions are removed  and can't be downloaded anymore
InstallerUrl: https://github.com/paintdotnet/release/releases/download/v5.0.9/paint.net.5.0.9.install.x64.zip
InstallerUrl: https://github.com/paintdotnet/release/releases/download/v5.0.9/paint.net.5.0.9.install.arm64.zip
InstallerUrl: https://github.com/paintdotnet/release/releases/download/v5.0.9/paint.net.5.0.9.winmsi.x64.zip
InstallerUrl: https://github.com/paintdotnet/release/releases/download/v5.0.9/paint.net.5.0.9.winmsi.arm64.zip
InstallerUrl: https://github.com/paintdotnet/release/releases/download/v5.0.9/paint.net.5.0.9.portable.x64.zip
InstallerUrl: https://github.com/paintdotnet/release/releases/download/v5.0.9/paint.net.5.0.9.portable.arm64.zip

If older versions are still provided by the publisher, they should be available as a historical reference - in case someone wants to install and troubleshoot an issue with another program, recreate a beneficial bug, or to see what an older version of software was like. Is there a specific reason to remove the older versions of these packages?

#116078

Personally, I feel that if older versions are still provided by the publisher, they should be available as a historical reference - in case someone wants to install and troubleshoot an issue with another program, recreate a beneficial bug, or to see what an older version of software was like. Is there a specific reason to remove the older versions of these packages?

They can't be downloaded anymore.   Installing 5.0.8 (the latest at the time of writing)  of this package gave me 404 error.   Hence I opened this issue: https://github.com/paintdotnet/release/releases/download/v5.0.8/paint.net.5.0.8.install.x64.zip => 404

this issue can be closed now

Personally, I feel that if older versions are still provided by the publisher, they should be available as a historical reference - in case someone wants to install and troubleshoot an issue with another program, recreate a beneficial bug, or to see what an older version of software was like. Is there a specific reason to remove the older versions of these packages?

The author of this package will remove old version immediately when a new version is released.

Close with reason: Newer version available in repo;


Create stale.yml

Too many issues and PRs in this repo. This will help admin(s) attend to important issues and PRs.
Description of PR
Type of PR

[x] New feature

Relevant Issues
Fixes NA
Checklist

[x] Compiles and passes lint tests
[x] Properly formatted
[x] Tested on desktop
[x] Tested on phone

Screenshots

We're doing our best to attend to all the PRs and issues, a reminder wouldn't be of much help at this point :/


Transcode errors

Hi,
I'm trying to post video to a story, but I'm always getting this error:

POST /api/v1/media/upload_finish/?video=1 - 400 Bad Request; Transcode error: b'3tqjrEEcyU'

I've tried re-encoding the file, tried every possible codec & size, tried with example mp4's and tried on multiple accounts. But nothing seems to work.
This is the file type info of ffmpeg:

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '00000_1.mp4':
Metadata:
major_brand     : mp42
minor_version   : 0
compatible_brands: mp42mp41
creation_time   : 2019-11-08T12:45:35.000000Z
Duration: 00:00:12.58, start: 0.000000, bitrate: 9985 kb/s
Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709), 1080x1920 [SAR 1:1 DAR 9:16], 9869 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 48k tbc (default)
Metadata:
creation_time   : 2019-11-08T12:45:35.000000Z
handler_name    : ?Mainconcept Video Media Handler
encoder         : AVC Coding
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 32000 Hz, stereo, fltp, 126 kb/s (default)
Metadata:
creation_time   : 2019-11-08T12:45:35.000000Z
handler_name    : #Mainconcept MP4 Sound Media Handler

When trying a horizontal file (1920x1080 - Big Buck Bunny sample file) I get a different error:

POST /api/v1/media/configure_to_story/?video=1 - 403 Forbidden;

See #875 . Else try link the video and I'll look at it.

For example this one:
00004.mp4.zip
But the same thing happens with this example file found online:
lake.zip
Thanks for looking into this!

I've tried some settings now, but they are all not working. Even reencoding in VLC didn't work (it crashed). There has to be something wrong with the video.

Can you share a video that works?

Can you share a video that works?

This file works.

I tried the file provided, but now I get a different error:

IgConfigureVideoError: POST /api/v1/media/configure_to_story/?video=1 - 403 Forbidden;

This is my code:
 const file = `videos/sample.mp4`;

  console.log(`Posting ${file}`);

  await ig.simulate.preLoginFlow();
  const loggedInUser = await ig.account.login(
    process.env.INSTAGRAM_USERNAME,
    process.env.INSTAGRAM_PASSWORD
  );

  const video = await S3.getObject({
    Bucket: process.env.S3_BUCKET,
    Key: file
  }).promise();

  const image = await S3.getObject({
    Bucket: process.env.S3_BUCKET,
    Key: file.replace("mp4", "jpg")
  }).promise();

  try {
    const publishResult = await ig.publish.story({
      video: video.Body,
      coverImage: image.Body
    });

    console.log(publishResult);
  } catch (e) {
    console.log("Error:");
    console.log(e);
  }

I have the same error for me:

IgResponseError: POST /api/v1/media/configure_to_story/?video=1 - 403 Forbidden

let uploadId = Date.now().toString();

await this.ig.upload.video({
    uploadId: uploadId,
    video: videoBuffer,
    duration: attachment.item.duration,
    width: width,
    height: height
});

await this.ig.upload.photo({
    file: await this.urlToBuffer(attachment.item.preview.url),
    uploadId: uploadId
});

const params = {
    upload_id: options.uploadId, // Date.now().toString();
    length: options.duration,
    width: options.width,
    height: options.height
}

let publish = await ig.media.configureToStoryVideo(params);

Have you tried using ig.publish.story({video, coverImage})?

Have you tried using ig.publish.story({video, coverImage})?

Yes I have.
await this.ig.media.uploadFinish({
      upload_id: uploadId,
      source_type: '3',
      video: { length: attachment.item.duration }
});

Then, I have error:

POST /api/v1/media/upload_finish/?video=1 - 400 Bad Request; Transcode error: b'3tqjrEEcyU'

Make sure your video is h.264 and AAC.

@Nerixyz, I am not sure. This is the same video file.
video.zip

I solved it.
For some reason the video needs to be uploaded with for_album: "1".
To do this in the current version, you'll need to patch the library directly. You can do this by modifying
node_modules/instagram-private-api/dist/services/publish.service.js
Go in async uploadAndConfigureStoryVideo(options, configureOptions) {
and add forAlbum: true to  await Bluebird.try(() => this.client.upload.video(Object.assign({ video: options.video, //here
This will be fixed in future versions.
(This also allow the upload of these files.)

@Nerixyz, Ok when I use ig.publish.story() it`s works. But what I need to do If I want to do ig.media.configureToStoryVideo(params) like this:
let uploadId = Date.now().toString();

await this.ig.upload.video({
    uploadId: uploadId,
    video: videoBuffer,
    duration: attachment.item.duration,
    width: width,
    height: height
});

await this.ig.upload.photo({
    file: await this.urlToBuffer(attachment.item.preview.url),
    uploadId: uploadId
});

const params = {
    upload_id: options.uploadId, // Date.now().toString();
    length: options.duration,
    width: options.width,
    height: options.height
}

let publish = await ig.media.configureToStoryVideo(params);

I need to add option forAlbum to ig.upload.video method? Then call method ig.media.uploadFinish? And something else?

You'll need to add the option to ig.upload.video()

look at this video: https://hooppy.ru/files/video1.mp4
it throw error: { message: 'Transcode error: b'3tqjrEEcyU'', status: 'fail' }
post as video-post - error
post as video-story - ok
why?

Your video isn't in the right aspect ratio.  I cropped it to 500x500 and it worked fine.

Your video isn't in the right aspect ratio. I cropped it to 500x500 and it worked fine.

how can i see this text of error? i can't, but it would be helpful
this: "Transcode error: b'3tqjrEEcyU'" not understandable

Sadly I don't know. b'abc' is from python as I know but this doesn't make any sense here. It would be nice if anyone knows how to convert it.

forAlbum: true
Thank you, i works your a life saver

Just to note, I got the same issue on uploading an igtv video. The fix for me was to reduce framerate from 50fps to 25fps. otherwise video was standard 1080p, cover image 492x762px


add timestamp to db nodes

useful for resolving conflicts etc

This feels like a heavy thing to add at the hyperdb layer. Not all applications will benefit, and it's a non-zero cost to incur per node. I like the idea of hyperdb not pushing opinions like whether it thinks that higher layers might want timestamps or not -- maybe this makes more sense at the hyperdrive/etc layer?

Since timestamps could be added at the user level for puts (and as @bnewbold mentioned in the DEP they can't be used for security/trust in the protocol), an alternative would be to support a custom tombstone object in delete.
With that approach, you could add a boolean deleted field to Entry instead of using a null value to signify deletion. If deleted, optionally return tombstone. Get some space savings (bool vs. timestamp), but that wouldn't be an opt-in cost.

digging @andrewosh's idea. i'll impl this at some point unless someone wants to do a PR before me :)

I'm curious @andrewosh @mafintosh how would you go about implementing userland timestamps? For instance, if I want to browse the history of a file in a dat archive by time instead of by version?
This proposal would be very helpful to me personally but it may be possible to write some kind of layer on top of hyperdb that handles that kind of thing without touching the protocol.

I wonder if it might be nice to use a separate stream of metadata, for those use-cases when it is changing more frequently than the data (e.g. if you wanted access times recorded).
With regard to timestamps, I have a use that could benefit from a more custom format:: I'd like to pair my streams with a blockchain, and include blockchain hashes to prove that the data was created after the given block time.  I'd also like to post signatures to a blockchain and reference them, to prove that the data was created prior to the given block time.

@xloem: the metadata and content feel pretty separate to me already, do you mean some additional abstraction layer? It sounds like your blockchain timestamps/signatures would have different semantics from what is proposed here; maybe you could open a new thread of discussion?

Sorry, I had seen the linked DEP, and I think I missed a few things when I made that comment; I wanted the use-cases to be included in design work.
I see now that I can wrap my values in a data structure that has metadata, or make metadata keys that pair with value keys.  It would make implementations easier if there were an optional field for both puts and deletes that could hold arbitrary data, but I think the solution of the user creating paired keys is much more robust and would even make tombstone unnecessary.

We support userland timestamps now cause 3.0.0 uses "semantic deletes" instead of implicit ones which means they are just puts with a "deleted" flag set to true. Therefore you can attach any value to that, that will be available in a conflict resolution scenario


[ZEPPELIN-2113] Remove border and margin of Link this paragraph window

What is this PR for?
This PR is for removing border and margin of paragraph shape in new window which is created by "Link this paragraph" operation.
It would be nice and neat to be removed such like that is suggested at this comment.
What type of PR is it?
[Improvement]
What is the Jira issue?
ZEPPELIN-2113
How should this be tested?

Click Link this paragraph
Check a paragraph shape

Screenshots (if appropriate)
[ Before ]

[ After ]

Questions:

Does the licenses files need update? No
Is there breaking changes for older versions? No
Does this needs documentation? No

My CI is green! (https://travis-ci.org/soralee/zeppelin/builds/204074604)

I will review and comment soon. Thanks for fixing bug @soralee!

@1ambda Thanks for taking a look this!
Regarding text layout, I don't consider left-pending because it already fixed #1983.

LGTM

@1ambda Thanks for review :+1:

LGTM

@prabhjyotsingh Thanks for review!

Merging this if no more discussion.


PhotoTaken event?

I've searched and searched and can't find anything in the documentation or google about how to be told that a photo was taken successfully.
I see this in the source code of photo_camera_state.dart:
@override
  CaptureMode get captureMode => CaptureMode.photo;

  /// Photos taken are in JPEG format. [filePath] must end with .jpg
  ///
  /// You can listen to [cameraSetup.mediaCaptureStream] to get updates
  /// of the photo capture (capturing, success/failure)

I don't think I can get to cameraSetup.mediaCaptureStream as a consumer of CameraAwesomeBuilder, right? What am I missing? Seems like this is a pretty typical use case?

Hi we recently merged it on the main branch.
You can now add a callback to the "takePicture" function (See #401 ).
As this is only available for the 1.4.0 branch for now I have to do the same on the 2.0.0.
This is one of the latest things to do before releasing the 2.0.0 version.

Fabulous! Thanks so much for this plug-in. I'm looking forward to using it.


Use only string values from the cookiecutter context

fix: #166

I need to add tests for having 100% code coverage, but it's difficult to do it locally as I don't succeed to run tests session with nox. Most of the tests fail with a _pygit2.GitError: reference 'refs/heads/main' not found error
I suspect an error due to git version or configuration (as it's the only thing not pinned by poetry/nox). But I have no clue to find a solution.

I was right the command git config --global init.defaultbranch master allows to run the nox session without failure.
I'm using main as default. Do I need to track this error in this repository or should it be open in pygit2 repository ?


Errors in the author information of a paper in README

Errors in the author information of paper: Masked Retraining Teacher-student Framework for Domain Adaptive Object Detection
Hi, thanks for your excellent work. I am the author of the paper:
Masked Retraining Teacher-student Framework for Domain Adaptive Object Detection
Thanks for citing our work.
I found that the author information of the paper is incorrect in the README file:
Masked Retraining Teacher-student Framework for Domain Adaptive Object Detection
Yuan Liu, Songyang Zhang, Jiacheng Chen, Zhaohui Yu, Kai Chen, Dahua Lin
The correct author information should be:
Zijing Zhao, Sitong Wei, Qingchao Chen, Dehui Li, Yifan Yang, Yuxin Peng, Yang Liu
Hope you can correct it. Thanks again for your great work!

Hi, @JeremyZhao1998. Thanks for your attention and for reporting typos in your repo! We have fixed this error in the latest commit. Feel free to open a new issue or pull a request if you find other typos or want to add a new paper for the masked modeling topic. I will close this issue if there are no more problems.


router->pathfor fullpath param for subRequests. #1521

I assume with this you could do something like this:
$app->get('/', function ($request, $response, $args) use ($router) {
    $sub = $this->subRequest('GET', $router->pathFor('hello', [], [], false));
})->setName('home');

$app->get('/hello', function ($request, $response, $args) use ($router) {
    $response->write("hellorequest ");
    return $response;
})->setName('hello');

However i'm not sure $router-pathFor is expected to be used with app->subRequest, since it simply returns the path. Perhaps an owner can jump in and clarify, or maybe you can use this change.
Best.

Can you explain the issue that you're fixing please?

Hi @akrabat i was referring to issue #1521. Altough now that i think about it, perhaps it would be better to have another method to return the route to work with subRequests.

Superseded by #1552 which implements internalPathFor()


GPRS::isCallActive fix

Currently: GPRS::isCallActive sends AT+CPAS\r\n, reads back the response and then waits for OK\r\n. So, even when a call is in progress, it can miss the +CPAS response and return false by default.

This PR switches the wait and read commands.

Fixes #10 for me.

@jackdunger  Thank you for dragging this bug out, I fixed this bug by adding functionality  sim900_read_string_until, it will miss all content if using sim900_wait_for_resp for OK\r\n before read the response.
A new demo showing the effect:
https://github.com/Seeed-Studio/GPRS_SIM900/tree/master/examples/GPRS_Show_Incoming_Call


No longer possible to use secret-manager injected secret in @ConfigMapping class

I have a simple application with the following setup:
quarkus:
  google:
    cloud:
      project-id: ${GOOGLE_CLOUD_PROJECT}

# omitted irrelevant configurations

"%secret-manager":
  abc:
    xyz:
      keys:
        - id: some-key-id
          key: ${sm//some-key}
        - id: some-other-key-id
          key: ${sm//some-other-key}
        # etc ...

and a following @ConfigMapping interface:
@ConfigMapping(prefix = "abc.xyz")
public interface AbcXyzProperties {

    // other fields ...

    @NotEmpty
    List<Key> keys();

    public interface Key {
        String id();
        String key();
    }
}

Everything was working fine in the version 2.2.0 but since version 2.3.0 application startup ends with the following error:
2023-09-02 11:11:23,132 ERROR [io.qua.run.Application] (Quarkus Main Thread) Failed to start application (with profile [secret-manager]): java.lang.RuntimeException: Failed to start quarkus
	at io.quarkus.runner.ApplicationImpl.doStart(Unknown Source)
	at io.quarkus.runtime.Application.start(Application.java:101)
	at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:111)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:71)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:44)
	at io.quarkus.runtime.Quarkus.run(Quarkus.java:124)
	at com.vodeno.dragon.Main.main(Main.java:15)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at io.quarkus.runner.bootstrap.StartupActionImpl$1.run(StartupActionImpl.java:104)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: io.smallrye.config.ConfigValidationException: Configuration validation failed:
	java.lang.RuntimeException: Error injecting io.quarkiverse.googlecloudservices.common.GcpConfigHolder io.quarkiverse.googlecloudservices.secretmanager.runtime.SecretManagerProducer.gcpConfigHolder
        java.lang.RuntimeException: Error injecting io.quarkiverse.googlecloudservices.common.GcpConfigHolder io.quarkiverse.googlecloudservices.secretmanager.runtime.SecretManagerProducer.gcpConfigHolder
	at io.smallrye.config.ConfigMappingProvider.mapConfigurationInternal(ConfigMappingProvider.java:1003)
	at io.smallrye.config.ConfigMappingProvider.lambda$mapConfiguration$3(ConfigMappingProvider.java:959)
	at io.smallrye.config.SecretKeys.doUnlocked(SecretKeys.java:28)
	at io.smallrye.config.ConfigMappingProvider.mapConfiguration(ConfigMappingProvider.java:959)
	at io.smallrye.config.ConfigMappings.mapConfiguration(ConfigMappings.java:91)
	at io.smallrye.config.SmallRyeConfigBuilder.build(SmallRyeConfigBuilder.java:647)
	at io.quarkus.runtime.generated.Config.readConfig(Unknown Source)
	at io.quarkus.runtime.generated.Config.createRunTimeConfig(Unknown Source)
	at io.quarkus.deployment.steps.RuntimeConfigSetup.deploy(Unknown Source)
	... 13 more

which is a result of
  java.util.NoSuchElementException: SRCFG00027: Could not find a mapping for io.quarkiverse.googlecloudservices.common.GcpBootstrapConfiguration
  	at io.smallrye.config.ConfigMappings.getConfigMapping(ConfigMappings.java:111)
  	at io.smallrye.config.SmallRyeConfig.getConfigMapping(SmallRyeConfig.java:412)
  	at io.quarkus.arc.runtime.ConfigMappingCreator.create(ConfigMappingCreator.java:30)
  	at io.quarkiverse.googlecloudservices.common.GcpBootstrapConfiguration_a3a2a72d1f7f6e52c8a965e44841c94f0dd0f329_Synthetic_Bean.createSynthetic(Unknown Source)
  	at io.quarkiverse.googlecloudservices.common.GcpBootstrapConfiguration_a3a2a72d1f7f6e52c8a965e44841c94f0dd0f329_Synthetic_Bean.doCreate(Unknown Source)
  	at io.quarkiverse.googlecloudservices.common.GcpBootstrapConfiguration_a3a2a72d1f7f6e52c8a965e44841c94f0dd0f329_Synthetic_Bean.create(Unknown Source)
  	at io.quarkiverse.googlecloudservices.common.GcpBootstrapConfiguration_a3a2a72d1f7f6e52c8a965e44841c94f0dd0f329_Synthetic_Bean.get(Unknown Source)
  	at io.quarkiverse.googlecloudservices.common.GcpBootstrapConfiguration_a3a2a72d1f7f6e52c8a965e44841c94f0dd0f329_Synthetic_Bean.get(Unknown Source)
  	at io.quarkus.arc.impl.CurrentInjectionPointProvider.get(CurrentInjectionPointProvider.java:48)
  	at io.quarkiverse.googlecloudservices.common.GcpConfigHolder_Bean.doCreate(Unknown Source)
  	at io.quarkiverse.googlecloudservices.common.GcpConfigHolder_Bean.create(Unknown Source)
  	at io.quarkiverse.googlecloudservices.common.GcpConfigHolder_Bean.create(Unknown Source)
  	at io.quarkus.arc.impl.AbstractSharedContext.createInstanceHandle(AbstractSharedContext.java:113)
  	at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:37)
  	at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:34)
  	at io.quarkus.arc.impl.LazyValue.get(LazyValue.java:32)
  	at io.quarkus.arc.impl.ComputingCache.computeIfAbsent(ComputingCache.java:69)
  	at io.quarkus.arc.impl.AbstractSharedContext.get(AbstractSharedContext.java:34)
  	at io.quarkiverse.googlecloudservices.common.GcpConfigHolder_Bean.get(Unknown Source)
  	at io.quarkiverse.googlecloudservices.common.GcpConfigHolder_Bean.get(Unknown Source)
  	at io.quarkiverse.googlecloudservices.secretmanager.runtime.SecretManagerProducer_Bean.doCreate(Unknown Source)
  	at io.quarkiverse.googlecloudservices.secretmanager.runtime.SecretManagerProducer_Bean.create(Unknown Source)
  	at io.quarkiverse.googlecloudservices.secretmanager.runtime.SecretManagerProducer_Bean.create(Unknown Source)
  	at io.quarkus.arc.impl.AbstractSharedContext.createInstanceHandle(AbstractSharedContext.java:113)
  	at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:37)
  	at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:34)
  	at io.quarkus.arc.impl.LazyValue.get(LazyValue.java:32)
  	at io.quarkus.arc.impl.ComputingCache.computeIfAbsent(ComputingCache.java:69)
  	at io.quarkus.arc.impl.AbstractSharedContext.get(AbstractSharedContext.java:34)
  	at io.quarkiverse.googlecloudservices.secretmanager.runtime.SecretManagerProducer_Bean.get(Unknown Source)
  	at io.quarkiverse.googlecloudservices.secretmanager.runtime.SecretManagerProducer_Bean.get(Unknown Source)
  	at io.quarkiverse.googlecloudservices.secretmanager.runtime.SecretManagerProducer_ProducerMethod_secretManagerClient_da0d037e46ea741b638dc55997e8c2b5dd43f779_Bean.doCreate(Unknown Source)
  	at io.quarkiverse.googlecloudservices.secretmanager.runtime.SecretManagerProducer_ProducerMethod_secretManagerClient_da0d037e46ea741b638dc55997e8c2b5dd43f779_Bean.create(Unknown Source)
  	at io.quarkiverse.googlecloudservices.secretmanager.runtime.SecretManagerProducer_ProducerMethod_secretManagerClient_da0d037e46ea741b638dc55997e8c2b5dd43f779_Bean.create(Unknown Source)
  	at io.quarkus.arc.impl.AbstractSharedContext.createInstanceHandle(AbstractSharedContext.java:113)
  	at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:37)
  	at io.quarkus.arc.impl.AbstractSharedContext$1.get(AbstractSharedContext.java:34)
  	at io.quarkus.arc.impl.LazyValue.get(LazyValue.java:32)
  	at io.quarkus.arc.impl.ComputingCache.computeIfAbsent(ComputingCache.java:69)
  	at io.quarkus.arc.impl.AbstractSharedContext.get(AbstractSharedContext.java:34)
  	at io.quarkiverse.googlecloudservices.secretmanager.runtime.SecretManagerProducer_ProducerMethod_secretManagerClient_da0d037e46ea741b638dc55997e8c2b5dd43f779_Bean.get(Unknown Source)
  	at io.quarkiverse.googlecloudservices.secretmanager.runtime.SecretManagerProducer_ProducerMethod_secretManagerClient_da0d037e46ea741b638dc55997e8c2b5dd43f779_Bean.get(Unknown Source)
  	at io.quarkus.arc.impl.ArcContainerImpl.beanInstanceHandle(ArcContainerImpl.java:557)
  	at io.quarkus.arc.impl.ArcContainerImpl.beanInstanceHandle(ArcContainerImpl.java:537)
  	at io.quarkus.arc.impl.ArcContainerImpl.beanInstanceHandle(ArcContainerImpl.java:570)
  	at io.quarkus.arc.impl.ArcContainerImpl.instanceHandle(ArcContainerImpl.java:532)
  	at io.quarkus.arc.impl.ArcContainerImpl.instance(ArcContainerImpl.java:279)
  	at io.quarkiverse.googlecloudservices.secretmanager.runtime.config.SecretManagerClientProvider.get(SecretManagerClientProvider.java:18)
  	at io.quarkiverse.googlecloudservices.secretmanager.runtime.config.SecretManagerConfigSource.getValue(SecretManagerConfigSource.java:46)
  	at io.smallrye.config.ConfigValueConfigSourceWrapper.getConfigValue(ConfigValueConfigSourceWrapper.java:20)
         ...

It seems like a direct cause of this error was a ConfigPhase change for GcpBootstrapConfiguration.
Do you plan to still support something like described above? Is there any known workaround for my case?

@radcortez with the new way to load config source, it is no longer possible to inject config from the Google Cloud Secret Manager inside a config mapping. Is it a known limitation? Is there a fix or a workaround?

Configs loaded by the Factories are available in the mappings phase, but looking into the stacktrace, there shouldn't be a call to io.quarkiverse.googlecloudservices.common.GcpConfigHolder during configuration init.
@jaworskib can you please provide a small reproducer so I can look into it? Thanks!

@radcortez sure, here you have a small reproducer: https://github.com/jaworskib/secret-manager-config-mapping
Unfortunately I cannot provide you GCP project id with secret manager access.
Thanks for looking into it!

Thanks. I'll have a look.

@jaworskib any chance to try out #493?

I'll try it tomorrow, but to be honest I'm not sure about the approach.
It seems like this approach requires adding some additional permissions to SA to be able to list all secrets in the project and list all secret versions. Furthermore - this will require to effectively give SA access to all secrets in the project because otherwise it will raise an exception while trying to access secret version.
TLDR: It won't work if SA is given an access only to a subset of secrets (on a secret level).

Thanks!
It's a bit hard to test this. I couldn't find a proper way to emulate the SM, so I created my own and did some tests. Unfortunately, I'm not aware of all the options available.
We removed the ability that allowed us to use CDI during source creation because it caused many issues. It created chicken and egg scenarios, where you need config to start something, but you require something to create the config.
The previous implementation relied on CDI to provide the client, which CDI managed and closed. The Config components do not have a way to clean up resources, meaning that we either have to do it in the factories (as proposed), or we would need to create and close the client on each value lookup. I guess from what you describe there is no other option.
I'll have look again.

I had to update my previous comment as it was only a partially true.
Maybe the proposed approach isn't that bad at all but it definitely should be a well documented that this extension will try to access all secrets (and all it's versions) that can be listed by the credentials used and additional permissions are required (in the ideal world secretmanager.secretAccessor should be enough). However, it may lead to problems if someone will give SA secretmanager.viewer role on a project level and secretmanager.secretAccessor role only on a some subset of secrets on a secret level.
The other approach I can think of (beside the one with creating and closing the client on each value lookup) would be to scan all the properties with the sm// value format and and load in factory only the used ones. Disclaimer: I'm not sure how feasible it is, I'm quite new in the quarkiverse.

Hi, thanks @radcortez for the proposed fix and @jaworskib for the explanation.
I'll try to review it tomorrow and made some test on a real GCP project.
If I understand it correctly, the main difference is that now all secrets are retrieved at first call when previously they was retrieved one by one when needed.

The other approach I can think of (beside the one with creating and closing the client on each value lookup) would be to scan all the properties with the sm// value format and load in factory only the used ones. Disclaimer: I'm not sure how feasible it is, I'm quite new in the quarkiverse.

This seems a good idea as otherwise we will access secrets that are not needed, and API calls have cost in the cloud.

The other approach I can think of (beside the one with creating and closing the client on each value lookup) would be to scan all the properties with the sm// value format and load in factory only the used ones. Disclaimer: I'm not sure how feasible it is, I'm quite new in the quarkiverse.

Unfortunately, I don't think this is feasible, because the sm// part is in the value and not in the property name, meaning that you have to evaluate every configuration for its value to find such patterns. While technically possible, I think it may cause a major performance hit.
Also, some configuration sources, do not expose all of their value, in the sense that if you query for a name you may get a value, but if you query for the list of names you get an empty list. In that case, we may be missing values that contain the sm// prefix.
Anyway,  I have another idea to be able to have the client and clean it properly. I'll send a new update soon.

Ok, I reverted to the old source, still without CDI, and added a way to close the client on shutdown. It should work for most cases.
The only problem is if an application is playing with Config instances (which they shouldn't), then these are required to do the cleanup themselves.


Added comments

I just added some more comments. Once other PRs are merged I want to comment pyprojects.toml as well.

Everything should be good? I resolved the merge conflicts, but it was really weird. It was like main already had some of my changes? Did we already merge another branch based off of this one into main?


Handling of spoken "newline"

When I speak "newline", speech recognition returns "\n" (a newline) rather than the word.  Unfortunately results[i].trim(); deletes the newline character so I can't match it.  One possible fix, which I've been using, is results[i].replace(/^[ \t]*/, '').replace(/[ \t]*$/, ''); to trim spaces but not newline characters.

Hi @idupree
My apologies for the long time it took me to get back to you.
I am not sure I understand your request? If this is still relevant, please reopen the issue and provide more information... preferably with a code sample.
Thank you.

@TalAter: Yes, I have tried that. It does not help because, as you can see from https://github.com/TalAter/annyang/blob/24f6ee218091e/annyang.js#L103-111 , trim() is called on the input before the regexp is exec()'ed on the trimmed input.


fix: visible range isn't updated when measurements change

closes #112

@tannerlinsley 👋 once you have a moment, please take a look on this. Thanks.
About isScrolling... I know that it's adds an extra render after scroll, but having it included in lib would be more useful. We can document that in most cases user should add pointerEvents: none while scrolling for perfomance reasons.
<div
  ref={parentRef}
  style={{ height, width: '100%', overflow: 'auto', willChange: 'transform', position: 'relative' }}
>
  <div
    style={{
      height: `${rowVirtualizer.totalSize}px`,
      width: '100%',
      pointerEvents: isScrolling ? 'none' : 'auto',
    }}
  >
    {...}
  </div>
</div>

Hi @tannerlinsley any updates on this? Sorry to ping you again 🙈  Maybe i can help and sort any question you have or add more tests 🤔 Would really love to get this released, as it's fixes few issues. Thanks 🙏

Any news about this? 😉 Would be useful to have some time range when it will be review or what's it holding this back?
Maybe other contributors also help resolve the issue 🙏

Rebased with master, cc @tannerlinsley 😉 🙏
Having isScrolling would allow in future to optimize overscan only in direction user is scrolling 👍


BasicFormat adds extra whitespace

Description
BasicFormat should not add a mandatory leading space if one already exists on the previous trailing or there is no previous. Similarly it should not add a trailing space if one already exists on the next leading or there is no next.
A good example of this is when combining refactorings. Placeholder expansion may want to format the returned closure. But if that closure is then used by a trailing closure conversion, we'll end up with two spaces between the arg label and the closure.
Steps to Reproduce
Format a simple closure ({ <#code#> }). That produces -
 {
    <#code#>
}

Then if that is added in a call as an additional trailing closure and that call is formatted we end up with two spaces, since we also add a space after : -
call {
    <#code#>
}arg2:  {
    <#code#>
}

rdar://107808566

Fixed by https://github.com/apple/swift-syntax/pull/1550


IndexError: index out of range in self

I am typing to run same code for language translation transformer but betting this error please help
@ajhalthor
Epoch 0
IndexError                                Traceback (most recent call last)
 in <cell line: 6>()
12         encoder_self_attention_mask, decoder_self_attention_mask, decoder_cross_attention_mask = create_masks(eng_batch, kn_batch)
13         optim.zero_grad()
---> 14         kn_predictions = transformer(eng_batch,
15                                      kn_batch,
16                                      encoder_self_attention_mask.to(device),
12 frames
/usr/local/lib/python3.10/dist-packages/torch/nn/functional.py in embedding(input, weight, padding_idx, max_norm, norm_type, scale_grad_by_freq, sparse)
2549         # remove once script supports set_grad_enabled
2550         no_grad_embedding_renorm(weight, input, max_norm, norm_type)
-> 2551     return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse)
2552
2553
IndexError: index out of range in self

I had similar error in a different context. FWIW I increased the vocab size and it worked. In my case the input ID was larger than vocab size. I added an assert statement to catch the error in future.  Good luckWith kind regards ..On Dec 26, 2024, at 11:23 PM, Aniket Thorat @.***> wrote:
I am typing to run same code for language translation transformer but betting this error please help
@ajhalthor
Epoch 0
IndexError                                Traceback (most recent call last)
in <cell line: 6>()
12         encoder_self_attention_mask, decoder_self_attention_mask, decoder_cross_attention_mask = create_masks(eng_batch, kn_batch)
13         optim.zero_grad()
---> 14         kn_predictions = transformer(eng_batch,
15                                      kn_batch,
16                                      encoder_self_attention_mask.to(device),
12 frames
/usr/local/lib/python3.10/dist-packages/torch/nn/functional.py in embedding(input, weight, padding_idx, max_norm, norm_type, scale_grad_by_freq, sparse)
2549         # remove once script supports set_grad_enabled
2550         no_grad_embedding_renorm(weight, input, max_norm, norm_type)
-> 2551     return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse)
2552
2553
IndexError: index out of range in self
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

I had similar error in a different context. FWIW I increased the vocab size and it worked. In my case the input ID was larger than vocab size. I added an assert statement to catch the error in future.  Good luckWith kind regards ..On Dec 26, 2024, at 11:23 PM, Aniket Thorat @.> wrote: I am typing to run same code for language translation transformer but betting this error please help @ajhalthor Epoch 0 IndexError Traceback (most recent call last) in <cell line: 6>() 12 encoder_self_attention_mask, decoder_self_attention_mask, decoder_cross_attention_mask = create_masks(eng_batch, kn_batch) 13 optim.zero_grad() ---> 14 kn_predictions = transformer(eng_batch, 15 kn_batch, 16 encoder_self_attention_mask.to(device), 12 frames /usr/local/lib/python3.10/dist-packages/torch/nn/functional.py in embedding(input, weight, padding_idx, max_norm, norm_type, scale_grad_by_freq, sparse) 2549 # remove once script supports set_grad_enabled 2550 no_grad_embedding_renorm(weight, input, max_norm, norm_type) -> 2551 return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse) 2552 2553 IndexError: index out of range in self —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.>

I Tried but not able to figure out
here is code for which i am trying can you help me with that
https://github.com/a2aniket/small-LLM/blob/main/kn.ipynb
Thanks


SectionList with sticky headers scrolls jumpy when virtualization is enabled

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

Environment
React Native Environment Info:
System:
OS: macOS 10.14
CPU: x64 Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz
Memory: 201.34 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 8.12.0 - ~/.nvm/versions/node/v8.12.0/bin/node
Yarn: 1.10.1 - ~/.nvm/versions/node/v8.12.0/bin/yarn
npm: 6.4.1 - ~/.nvm/versions/node/v8.12.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.0, macOS 10.14, tvOS 12.0, watchOS 5.0
Android SDK:
Build Tools: 22.0.1, 23.0.1, 23.0.3, 25.0.0, 25.0.1, 26.0.1, 26.0.2, 26.0.3, 27.0.3, 28.0.2, 28.0.3
API Levels: 22, 23, 25, 26, 27, 28
IDEs:
Android Studio: 3.2 AI-181.55<IP_ADDRESS>14246
Xcode: 10.0/10A255 - /usr/bin/xcodebuild
npmPackages:
@storybook/react-native: ^4.0.0-alpha.21 => 4.0.0-alpha.23
react: 16.5.0 => 16.5.0
react-native: ^0.57.1 => 0.57.1
Description
After upgrading from RN 54 to 57 scrolling of section list becomes jumpy when virtualization kicks in, see video. We traced this issue to change list e0c73633cfc0a62df9d39991b0df65fa5875609a, reverting the change locally fixes the issue.
Reproducible Demo
Create a SectionList with sticky headers, populate it with a long items list with multiple sections, scroll down until virtualization kicks in, watch items jump all other the place (there should be a few sections present in the virtualized space.

Relates to #21198

Issue still exist.

Hey, I was running into this too and found a workaround.  I ended up setting a few additional properties, these in particular:
     initialNumToRender={50}
     maxToRenderPerBatch={50}
     windowSize={41}

I opted out of RN's defaults (because I am dealing with a large list) and this seems to fix the headers from jumping all over when scrolling.  Your mileage may vary.


Add SupportOptions component and utm_source for links

This PR also moves to yarn for docs package management for improved speed, security, and developer experience. Docusaurus prefers yarn.
Refs firezone/marketing#126

Pull Request Test Coverage Report for Build 549a993619577d769b72d5880bea541e8f704d37-PR-1219

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 66.13%

Totals

Change from base Build ed6784d5986b681d9262f0b5241513c12dfd3b9b:
0.0%

Covered Lines:
1191

Relevant Lines:
1801

💛  - Coveralls

Merging to fix broken Publish Docs workflow...


Define a memmap from an indexable object + allow it to be done in parallel.

Wrote this for myself but figured I'd open a PR if you want to merge it.
Main addition is base.from_indexable_base which allows the construction of a memmap from an object that supports __getitem__. The advantage of this is that you can parallelize batch collection, which is useful if loading samples into memory is slow or you have an expensive preprocessing step.
Also supports a callable function of the form f(i: int) -> np.ndarray.

Thanks for the pull request! I'll take a closer look at it these days and we'll decide on how the public interface will look - I love the general idea, much appreciated 👏

I like it very much. Will you be able to add unit tests for from_indexable_base ?

Added a few tests (https://github.com/hristo-vrigazov/mmap.ninja/pull/17/commits/3b05ed168bd45f9bfd4550d9bc219a310bb63b7c).

Great work, thanks! Your contribution will be added to v0.8.0!


Fix breakage with Obsidian v15.4 and add customizable review buttons

The workspace methods have changed leading to a few funny bugs. This PR should address the important ones at least.

Should fix #468.

I've gone ahead and added a commit that closes #273 since it was an easy fix.

Hey @AB1908, thanks for the fixes! I'll add the localization support for the custom labels.

Hey man! Happy to help out here, I love this plugin dearly and it's well written enough that I'm able to read and understand it. Thanks for all your work!


Cannot run the command: gold: error: cannot open ./...: No such file or directory

Hi,
I've followed the documentation to obtain gold using go get but once I try to run it I getting some errors:
$ export GO111MODULE=on
$ gold std
gold: error: cannot open std: No such file or directory
$ gold ./...
gold: error: cannot open ./...: No such file or directory
$ go version
go version go1.14.7 linux/amd64

I'm trying to see documentation of this package, v2 branch.
Can you help me?

Could you show the result of which gold and gold -h?
It looks there is another gold program installed in your machine.
If this is true, you can install Gold as other names suggested in the readme file.

You were totally right! Another gold command was colliding. Thanks!


DOC: add animation.css in css/assets

What's wrong with the existing documentation
For custom animations and transitions.
Add ScreenShots
No response
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

please assign me as soon as possible i want to work on it


Dark mode CSS for Agda

The syntax highlighting for Agda is the same regardless of whether the book is viewed in light mode or dark mode. It would be nice to have a dedicated CSS style for dark mode.

Fixed by #710


[dnm]adding validation to signIn to de-confuse the user

putting description on jira ticket.
addressing: https://nanopay.atlassian.net/browse/CPF-3659

DNM until product confirms the changes.


XMLHttpRequest Post times out

When importing
import org.scalajs.macrotaskexecutor.MacrotaskExecutor.Implicits._

I get the following timeout problem when doing a XMLHttpRequest Post:
/Users/mg/github/marcgrue/MacrotaskExecutor-post-test/node_modules/jsdom/lib/jsdom/living/helpers/events.js:15
  const event = createAnEvent(e, target._globalObject, eventInterface, attributes);
                                        ^

TypeError: Cannot read properties of undefined (reading '_globalObject')
    at fireAnEvent (/Users/mg/github/marcgrue/MacrotaskExecutor-post-test/node_modules/jsdom/lib/jsdom/living/helpers/events.js:15:41)
    at Timeout._onTimeout (/Users/mg/github/marcgrue/MacrotaskExecutor-post-test/node_modules/jsdom/lib/jsdom/living/post-message.js:36:7)
    at listOnTimeout (node:internal/timers:564:17)
    at process.processTimers (node:internal/timers:507:7)

Node.js v19.3.0

Client code:
// Fails
import org.scalajs.macrotaskexecutor.MacrotaskExecutor.Implicits._

// Works
//import scala.concurrent.ExecutionContext.Implicits.global

lazy val post: Future[String] = {
  val req     = new dom.XMLHttpRequest()
  val promise = Promise[dom.XMLHttpRequest]()
  req.onreadystatechange = { (_: dom.Event) =>
    if (req.readyState == 4) {
      if ((req.status >= 200 && req.status < 300) || req.status == 304) {
        promise.success(req)
      } else {
        promise.failure(new Exception(req.toString))
      }
    }
  }
  req.open("POST", "http://localhost:8080/post/test")
  req.timeout = 0
  req.setRequestHeader("Content-Type", "application/json")
  req.send()
  promise.future.map(_.response.asInstanceOf[String])
}

lazy val tests = Tests {
  "exception test" - {
    for {
      _ <- post.map(_ ==> "hello world")
    } yield ()
  }
}

Server code:
  implicit val system           = ActorSystem(Behaviors.empty, "actorSystem")
  implicit val executionContext = system.executionContext

  Http()
    .newServerAt("localhost", 8080)
    .bind {
      cors() {
        path("post" / "test").apply {
          post {
            extractRequest { _ =>
              complete("hello world")
            }
          }
        }
      }
    }
    .onComplete {
      case Success(b) => println(s"Ajax server is running ${b.localAddress} ")
      case Failure(e) => println(s"there was an error starting the server $e")
    }

Switching back to the standard import
import scala.concurrent.ExecutionContext.Implicits.global

solves the problem (but creates the other usual problems that is warned about).
Here's a minimal reproduction project with the above code:
https://github.com/marcgrue/MacrotaskExecutor-post-test
Shouldn't the macrotaskExecutor work for this scenario?

Thanks for the report. This seems to be an issue specific to JSDOM when used with Node.js 19.
Perhaps try Node.js 18 (the current long-term-support version)?

Ah, I was able to replicate this issue in CI with Node.js 18 as well :( sorry.

No problem :-) I've been trying to install Node.js 18 for the project without success. Also, jsdom is at version 20.0.3. Could downgrade jsdom with npm install jsdom@18. But when I try npm install node@18 it still turns up as version 19 at runtime (also tried installing 18 with nvm, but still at 19). Anyway, maybe this doesn't matter so much, since the problem persists across multiple versions.
Thanks for looking into this!


Update to 1.0.5

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

a few commits went to upstream instead of my fork. Ignore those failed pieces

@conda-forge-admin, please rerender


\let handled incorrectly

Issue Summary
MathJax aliases let to \newcommand, but this breaks code which uses \let and \renewcommand together.
Minimal example:
\let\test\approx
\renewcommand{\approx}{\test\test}
$\approx$

In LaTeX this will produce ≈≈. In MathJax however, it causes a stack overflow due to infinite recursion.
Related to https://github.com/James-Yu/LaTeX-Workshop/issues/2035

MathJax aliases let to \newcommand

This statement is incorrect.  MathJax processes \let differently than \newcommand, and does handle your situation correctly in both v3 and v2.
Of course, MathJax only processes macros in math mode, so would not process that \let and \renewcommand as they are in your example (outside of math mode), so I suspect some other system is being used to turn the original LaTeX into something that is eventually sent to MathJax, and it is that system that is treating \let as \newcommand.
When you obtain your final HTML page, you might check the source (via view source) to see if it uses \let or \newcommand.
In any case, you can test that MathJax handles your situation using one of the demo pages that allow arbitrary input, say the tex2chtml demo by entering
\let\test\approx
\renewcommand{\approx}{\test\test}
\approx

(with no dollar signs, as what you enter is already in math mode).
So I'm not sure where the problem you are having originates, but it is not from MathJax, and is most likely from LaTeX-Workshop's processing of the definitions\ prior to sending them to MathJax.

My bad, before making this issue I tested it in https://www.mathjax.org/#demo to confirm the problem and the demo there threw a "MathJax maximum macro substitution count exceeded; is there a recursive macro call?", however, testing it again, it seems like it's merely a problem with the page, since refreshing the page makes it start working, but clicking "Render HTML" again will break with the aforementioned error.

The MathJax demo is just a very simple thing, and the definitions from previous runs will still be in effect.  So when you render it a second time, \approx has been redefined as \test\test and you are letting \test equal to that, so when \approx is replaced by \test\test, that becomes \test\test\test\test and then \test\test\test\test\test\test\test\test and so on, infinitely.  You would have to reload the page to clear the definitions.


New Help panel

Companion to https://github.com/GreenInfo-Network/nyc-crash-mapper-chart-view/issues/89. Reuse About modal container to make room for client-produced how-to videos
Content

Crashmapper Navigation
Analyze crash data like a pro. With a few clicks, master the information contained in the NYC Open Data Collision dataset, collected by NYPD.  Choose a data view,  filter by dates, geographies and crash type and get maps, charts and information summaries. Share with others.

Crashmapper Custom Map
How is my area of focus (corridor, school zone, business improvement district) fairing in terms of traffic safety?

Crashmapper Trend
How does my neighborhood compares to others and to the borough in terms of traffic safety.

Crashmapper Compare
How has traffic safety changed in my neighborhood since a past period? Are the traffic calming measures working?

Crashmapper Rank
How is this dangerous intersection ranked in the district, borough or city overall ?  Are we concentrating our efforts on the most dangerous intersections?
Basic mockup

Looking good and coming along well. Actual screenshot:


Chr import

when import 8kb mario.chr,only import the first 4kb. import all maybe better. and import auto add two bank

Done!
Compiled binaries in the development build.


Support for async action creators

http://redux.js.org/docs/advanced/AsyncActions.html#async-action-creators

an action creator can return a function instead of an action object.

It seems that at least #79, #88, #97 are related to this

@vitvad Aren't async action creators supposed to be handled by the appropriate middleware? I don't think redux handles an action creator returning a function by default.

Finally, how do we use the synchronous action creators we defined earlier together with network requests? The standard way to do it with Redux is to use the Redux Thunk middleware. It comes in a separate package called redux-thunk. We'll explain how middleware works in general later; for now, there is just one important thing you need to know: by using this specific middleware, an action creator can return a function instead of an action object. This way, the action creator becomes a thunk.
Documentation

@newyork-anthonyng hm, good point...
but after 2 days I spent trying to understood why I got Actions may not have an undefined "type" property. Have you misspelled a constant? Action: undefined it seems that at least something like this should be included:
   if (typeof action === 'function') {
           throw new Error(`
 Actions may not be a function.
 Probably you forgot to include middleware to in configureMockStore.
 Example:
   import configureMockStore from 'redux-mock-store';
   import thunk from 'redux-thunk';
   const mockStore = configureMockStore([thunk]);

   ${JSON.stringify(action)}
`)
    }

or highlight this moment in documentation :(

@vitvad Agreed!
I think most of the issues I've been seeing are users having misunderstandings with redux itself. redux-mock-store simply mimics the behavior and API of redux.
   if (typeof action === 'function') {
           throw new Error(`
             Actions may not be a function.
             Probably you forgot to include middleware to in configureMockStore.
             Example:
             import configureMockStore from 'redux-mock-store';
             import thunk from 'redux-thunk';
             const mockStore = configureMockStore([thunk]);
             ${JSON.stringify(action)}
          `)
    }

This error message would be super helpful, but I don't think this solution would scale well. Imagine all the error messages that we would add for all the issues users run into.
I think having a section in the documentation would be awesome though. Do you want to create a new issue for this?

In redux-mock-store we throw only exactly the same errors that redux itself throws


Add base book transactions to adjustment only book

Adds transaction lines from base book onto related adjustment only book. 'converted_amount' translated at the book-specific consolidated exchange rate. Fixes downstream joins to include accounting_book_id.

@rwang-lyra Please review.


fixed broken execute button

@chaudum please review

please update changelog entry. otherwise ok. please also backport!


Add getting-started/deploy-app/with-the-cli

Adds the getting-started/deploy-app/with-the-cli page.
Uses the asciinema player described and added in this PR:  https://github.com/nitindermohan/oak-new-docs/pull/8
Screenshots

Please see commit: 5953d6c
Also updated the high level setup doc to link the CLI support

Thank you for committing your preferred changes
Is there anything else you would like to have changed? Otherwise, why did you set your review as Request Changes (if you already committed them)? - or is this just for my sake to have a look at the committed changes?

Only for your sake to check the commits. I did not have any review comments for your PR so you can ignore it.


How to get the access token/refresh token

I read the documentation and tried some things but Im unable to find a a way to get the access token.
Is there some way to get it. I kinda need for some server side verifcations.
Thanks

as a work around, you could use the graphql api to get the access token. https://docs.mongodb.com/realm/reference/authenticate-http-client-requests/#std-label-authenticate-http-client-requests

@matthewwong525 I will look for it and add support

@matthewwong525 @LeonManolo it will be available at  v2.2.0


A more accurate description of the tutorial on Monday.

yip

thanks!

LGTM +1 for big merge :)

Are you sure? Shouldn't we wait for the CI to test this?
On Sun, Jun 14, 2015 at 6:45 PM, eickenberg<EMAIL_ADDRESS>wrote:

LGTM +1 for big merge :)
—
Reply to this email directly or view it on GitHub
https://github.com/ohbm/brain-hacking-101/pull/3#issuecomment-111897548.

=)
On Sun, Jun 14, 2015 at 3:51 PM, Ariel Rokem<EMAIL_ADDRESS>wrote:

Are you sure? Shouldn't we wait for the CI to test this?
On Sun, Jun 14, 2015 at 6:45 PM, eickenberg<EMAIL_ADDRESS>wrote:

LGTM +1 for big merge :)
—
Reply to this email directly or view it on GitHub
<https://github.com/ohbm/brain-hacking-101/pull/3#issuecomment-111897548
.

—
Reply to this email directly or view it on GitHub
https://github.com/ohbm/brain-hacking-101/pull/3#issuecomment-111897882.

Argh, true! I hope the space inconsistency  1 PM, 2PM, 3 PM doesn't break the conference!


Reveiw documents

Bonjour Olivier,
I manage a couple of things for now (experiments and anonymization_privac).
I revised some writing, added some explanations, and left some comments for you @olivierabz .
I will try to do the rest tomorrow and/or beginning of next week.
Cheers
BK

Ideally, this would need to be merged after https://github.com/octopize/octopize-linkage/pull/33

I have integrated most suggestions. Note that I chose not to add the subtitles "Graph x" because they are not referenced in the text and managing the numbering manually is not practical.

looks like hard wrapping was removed I'll add it back in a new PR

I resolved conflicts from gh. Is hard wrapping performed through a linter ? If so, we just need to re-run it.

opened #34 to deal with this

[like]  Basheer Kalash reacted to your message:

From: olivierabz @.>
Sent: Wednesday, December 11, 2024 8:36:04 AM
To: octopize/octopize-linkage @.>
Cc: Basheer Kalash @.>; Author @.>
Subject: Re: [octopize/octopize-linkage] Reveiw documents (PR #32)
I have integrated most suggestions. Note that I chose not to add the subtitles "Graph x" because they are not referenced in the text and managing the numbering manually is not practical.
—
Reply to this email directly, view it on GitHubhttps://github.com/octopize/octopize-linkage/pull/32#issuecomment-2535037078, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BLUXK2IAKVV6CBQCFQKNS232E72PJAVCNFSM6AAAAABTC5VLG6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMZVGAZTOMBXHA.
You are receiving this because you authored the thread.Message ID: @.***>


Compatibility with ruby versions

There is currently no promise about the compatibility or libbuildtool with different ruby versions. There is nothing I believe we have done that is specific to a newer ruby version.
Two things need to be done:

Verify currently if it runs on 1.8, 1.9, 2.0, 2.1
Determine what is the base ruby version to support

To determine which ruby version we should support, we should build a matrix of the default ruby versions for different platforms. For Windows, we should check common ruby distribution methods.
We should factor-in how hard it would be to keep the base tool compatible if it isn't.
In-line with this effort, more specs should be added allowing for easier testing of compatibility.

It has been decided that ruby 1.9.1 is the target version for libbuildtool. This specific version has been selected since it is the version available in Debian stable (7, wheezy). Next up would be 1.9.3 used for Ubuntu 14.04 LTS.
Otherwise, Mac OS X 1.9 and greater are shipping with ruby 2.0, and the later versions of the Linux distributions verified are either using or going to use 2.X.
There is an issue with rspec and 1.9.1, I had to install a previous version (I tried 2.0 and it worked). The tests will not run as is, but it is possible to change them for it. This is not a solution and the specs will not work as-is on 1.9.1. The current tests are passing, though, when adapted for the older rspec.


Replaces REGEXP_CONTAINS with ~ in pivoted-gcs.sql

Rewrite REGEXP_CONTAINS(nursingchartvalue, '^[-]?[0-9]+[.]?[0-9]*$') as nursingchartvalue ~ '^[-]?[0-9]+[.]?[0-9]*$' for compatibility with Postgres.
Fixes Issue #117.

Thanks @tnaumann, it looks like BigQuery doesn't support ~ (this raises "Syntax error: Unexpected "~" at [9:30]").
physionet-data.eicu_crd.nursecharting
The main issue is that we need a better way of dealing with different dialects (see also the discussion at: https://github.com/MIT-LCP/mimic-code/issues/717).
It feels like the best approach is to organize content into different folders, so in this case we should probably reorganize before merging.


Updated CODEOWNERS

Signed-off-by: Nick Avramoussis<EMAIL_ADDRESS>

Seeing as you're changing this - can we also update this to remove Peter and add Andre?

Seeing as you're changing this - can we also update this to remove Peter and add Andre?

I believe this is better done in a single PR with everyone's approval


WORKPLACE HAZARDS (1/2)

Merge the first 3 additions (new damage sources) into Main.
Currently a draft.
Progress reflected in #14

"looks" good to me (I haven't looked at it)

it compiles, so that's good enough

let's gooooooo

time to mess up all the people working on Main right now with uncommitted unpushed changes

time to mess up all the people working on Main right now with uncommitted unpushed changes

thats why you shouldnt work on main... just merge into it :]
If in doubt... Blame the ore gen people 😈


[PE-D] Edit command might not work as intended

The edit command does not edit any fields of the person added. I tested out each fields (from address, name, contacts, and also email). If you type in only edit _prefix_/ it would work as intended. The error message is updated accordingly as well. However, when you type in the value e.g. edit n/John Doe it will return the error message Please enter a valid prefix. I tried out the input from the user guide as well and it is still not working. Here is a short capture of what I tested.

Labels: severity.High type.FunctionalityBug
original: HalphasX/ped#2

Fixed by #199


v2 401 Error Help

Hi,
I am trying to onboard to the new v2 API. I only need the backend, which I have already deployed. I have also set up a new Identity Provider for the Functions by creating an AAD app according to the instructions.
I am able to successfully acquire a bearer token for the AAD app using the ADAL library, but when I pass in the token in the authorization header to call the UrlShorten API, the response I get is a 401 with message = "You do not have permission to view this directory or page."
Not sure why this is happening. Please let me know if you need any more information for debugging.

@2xOu7,  version 3 will simplify the Identity. Note however that all management functionalities are now part of the TinyBlazorAdmin project.


bug(ModalDialog): missing the return value check

https://github.com/dotnetcore/BootstrapBlazor/blob/b2adaf2d53ab056d07188a75c2aaecb5abe77329/src/BootstrapBlazor/Components/Modal/ModalDialog.razor.cs#L288
The return value of OnClickSave was not assigned to the ret variable, causing OnClickSave to have no internal control over whether to close the window.

@yuanan Hi. can you give the project a star? thanks