Props not being sent to ActionButtonItem

After I pressed the main button, I get a message saying that this.props.anim.interpolate is undefined. After taking a look at the code, I have managed to realize the ActionButtonItem anim props was not set.
It seems like this section of code is not working (inside _renderActions):
{actionButtons.map((ActionButton, idx) => (
        <ActionButtonItem
          key={idx}
          anim={this.anim}
          {...this.props}
          {...ActionButton.props}
          parentSize={this.props.size}
          btnColor={this.props.btnOutRange}
          onPress={() => {
            if (this.props.autoInactive){
              this.timeout = setTimeout(this.reset.bind(this), 200);
            }
            ActionButton.props.onPress();
          }}
        />
      ))}

A log of the ActionButtonItem props shows this:
 { buttonColor: '#9b59b6',
                                                    title: 'New Task',
                                                    onPress: [Function: onPress],
                                                    active: true,
                                                    spaceBetween: 15,
                                                    useNativeFeedback: true,
                                                    activeOpacity: 0.85 }

Which are only the default values.
I cannot possibly find where this issue could be coming from. The props are OK before that map function but the do not appear on the Item itself.
This is Android 5, react native 0.44 and react 0.16-alpha6.

actually, the anim prop is passed down with this line anim={this.anim}
can you share the code of how you implemented the RNAB component?

Yeah, I mean it should have that prop, as you said, but it is not showing up. I added a couple of console.log inside the actual ActionButtonItem file, then I removed. Here is the snippet of code of my render method on my screen component:
render(){
  return (
    <View style={styles.beacon}>
    <ScrollView>
    <AlertList id_beacon={this.props.id_beacon} battery={this.props.battery}/>
    <LastReports navigator={this.props.navigator} id_beacon={this.props.id_beacon} updated={this.state.updated}/>
    </ScrollView>

    <View style={styles.botonera}>
    <TouchableHighlight style={styles.button} onPress={() => this.reporteAutomatico()}>
    <View><Text style={styles.buttonText}>Reporte Automático</Text></View>
    </TouchableHighlight>
    <TouchableHighlight style={styles.button} onPress={() => this.generarReporte()}>
    <View><Text style={styles.buttonText}>Generar Reporte</Text></View>
    </TouchableHighlight>
    </View>

   <ActionButton buttonColor="rgba(231,76,60,1)">
    <ActionButton.Item buttonColor='#9b59b6' title="New Task" onPress={() => console.log("notes tapped!")} />
    </ActionButton>

    </View>
  );
}

hm that's weird...

I'll create an empty screen tomorrow without any other dependency and see what happens. I'll try to isolate the issue.

I encountered the same error message on react-native: 0.40.0 in the emulator.
This modified version of the basic example (using text instead of icons) works correctly:
        <ActionButton buttonColor="rgba(231,76,60,1)">
          <ActionButton.Item buttonColor='#9b59b6' title="New Task" onPress={() => console.log("notes tapped!")}>
            <Text>A</Text>
          </ActionButton.Item>
          <ActionButton.Item buttonColor='#3498db' title="Notifications" onPress={() => {}}>
            <Text>B</Text>
          </ActionButton.Item>
          <ActionButton.Item buttonColor='#1abc9c' title="All Tasks" onPress={() => {}}>
            <Text>C</Text>
          </ActionButton.Item>
        </ActionButton>

This second modified version (removing <Text>A</Text>) displays the error:
        <ActionButton buttonColor="rgba(231,76,60,1)">
          <ActionButton.Item buttonColor='#9b59b6' title="New Task" onPress={() => console.log("notes tapped!")}>
          </ActionButton.Item>
          <ActionButton.Item buttonColor='#3498db' title="Notifications" onPress={() => {}}>
            <Text>B</Text>
          </ActionButton.Item>
          <ActionButton.Item buttonColor='#1abc9c' title="All Tasks" onPress={() => {}}>
            <Text>C</Text>
          </ActionButton.Item>
        </ActionButton>

So it seems like the error occurs when an ActionButton.Item has no child elements?
(I initially encountered the error when trying to use <ActionButton.Item .... /> while in the process of trying to make something work.)

Thank you! That fixed it. It is weird why this behavior happens. I can't think of something. Perhaps how the children work in > 0.40?

re: closing of this issue, was this issue fixed in the code somewhere?
What I supplied was more of an explanation/workaround rather than a fix.
I couldn't immediately see any recent code change that would handle an ActionButton.Item that had no child.

I'm not even sure if this is a bug or by design. does it make sense to allow ActionButton.item to have no child component?

Well, since the ActionItem have a Title, then I guess one use case is to show only text and no icon or label. It was actually what I was trying to do as I didn't need an icon.
Still the library shouldn't crash if the Item has no children.

My usage scenario was "just trying to get something to work" so I didn't want to muck around with specifying an icon or anything.
Agree that the library crashing in this scenario is a bug. I don't see there's anything to be gained by requiring a child so would favour allowing no child.

Same issue as of version 2.8.4.


Host the vagrant box

Currently, users must build the gem-master vagrant box. This takes a long time and does not provide the user experience needed. Create a public-facing site to host vboxes.
/cc: stephenrlouie

Should we still provide instructions on building an image for themselves, or just completely ignore that and always provide a golden image

We will want to remove the build instructions and just use the vbox image we host and manage. I'm making progress on hosting the image. It will most like be hosted here: https://bintray.com/
When I confirm, I will provide you instructions for accessing bintray.

I was looking to host on atlas, so we can plug into the vagrant infrastructure.

Been testing with this: https://atlas.hashicorp.com/stephenrlouie/boxes/gemini_master/

Hoping to have something soon

@danehans: Is there anything missing for this issue?

Nope, let me close.


Add application comments for voters

Addresses #109. Basic commenting functionality is added to the application voting view.

[x] Add model comment (application, user, text, auto_id)
[x] Show comments on vote view (make sure it shows below if mobile)
[ ] Add inline for admin model so that we can see it in Application admin view <- I'd need details on this @casassg, what does inline mean here?

Feel free to review (please!) but this PR is not meant to be accepted at least until we've discussed (and done) the third point. Other things:

I added the comments below the hacker application. I don't want them to be the first thing a reviewer sees, possibly "pre-biasing" their review. But now the comments might be completely ignored if you don't scroll down. Any thoughts or solutions on this? I've thought of adding an anchor link to the right of the application title (the lenny face) showing N comments and linking to the bottom area of the page (i.e. click = scroll down).

I like the scroll down option. I would do it on the side probably. Also instruct reviewers to only leave comments if 100% necessary. Design can be improved but it can be done later.
Regarding inline never mind. But it could be useful to have an admin model there to delete comments from people :hammer:


Fixed text selection in DrawTextRecEx()

Since the unicode patch, text selection didn't work as expected (see below), so i fixed it(easy fix :D).

Working on raygui textbox now so i'll probably find all the bugs related to drawing unicode text, if there are any... Lucky me!

Thanks @Demizdor! Great work! 👍


implement sharpening toggle

Closes #36
Implemented based on progressive (the p flag). I have more or less mimicked everything done with the progressive flag. The new sharpen flag is pulled into effect in isSharpeningDesired(). Basically, isSharpeningDesired() will return false if sharpening is turned off using s0 in the URL.
All the functions have @since 2.0 in the documentation (since I just copied from progressive), let me know if you want the number changed.

Thanks for the PR. This looks fine to me, but I haven't really looked at this codebase or worked in PHP for so long that I don't feel like I have enough context anymore to be confident in merging it. @ambroisemaupate would you take a look at this and add any feedback?


Upgrade dependencies: mkdocs-material & pymdown-extensions

As suggested in #58 this ups the requirements for mkdocs-material to ^5.0 and pymdown-extensions to ^7.0.
Since it changes the package's requirements, it may warrant a minor version bump for portray itself, but I'll let @timothycrosley be the judge of that.

Codecov Report

Merging #59 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master       #59   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            8         8
  Lines          282       282
=========================================
  Hits           282       282

Continue to review full report at Codecov.

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

This is great! Thank you!

1.4.0 has been pushed with the upgraded dependencies :)


Move MetaData button to main bar and move theme and font to Settings list

https://github.com/BabylonJS/Babylon.js/pull/2045


Fixed sourcing of piwik configuration

Fixes #1816
The problem was that env in the webpack config does not, in fact, contain the process environment but the webpack environment.
In addition to the fix, i relaxed the config a bit so any value can be passed to WON_DEPLOY_NODE_ENV and the corresponding config script is selected.

ok cool, i checked its working again on live


Website down

Your site is down, the link is Null

thanks for letting me know, seems to be up for me again.
can you check @ParzivalFR please? :)

If it suits you I will put your site on https://kitilib.com, is it good for you? 🙂

would be awesome, thanks alot 🔥


Changing max_tokens default value to some higher value may be 512/1024

Default value of max_tokens is set to 16, which does not generate good response for most of the scenario. Setting it to something higher value similar to openai can be helpful.
This is mostly my experience, obviously there might be other scenario where folks will prefer smaller values. Still 16 token does not even generate complete a sentence or two sometime.
Will love to hear your opinion on this.

same as #27


fix(blockifier_reexecution): fix get_contract_class signature and rem…

…ove duplicate

This change is

crates/blockifier_reexecution/src/state_reader/reexecution_state_reader.rs line 14 at r1 (raw file):
Previously, dorimedini-starkware wrote…
why is this the "correct" sig?
this trait is a reexecution trait, I would expect a reexecution result to be returned;
implementations can convert state errors to reexecution errors with ?

Because, it's called from the StateReader trait, so this is to avoid circular Error definition.


Task 19, Task 20 & Task 21

Compiling Task 19, Task 20 & Task 21 together

@shakeelabdull
This pull request (PR) has conflicts; please refrain from merging it on GitHub and avoid accessing others folders unrelated to the changes. I'm unable to merge the PR at this time.
(provide input file with code in necessary tasks)
Task -19
Code verified.
Task -20
Code verified.
Task -21
Code verified.


Add detailed example clarifying imports

Fixes #22
What
A more detailed example showing how to use this repo's opentracing package to create a global tracer to be set as a global tracing object with github.com/opentracing/opentracing-go.
Why

Ambiguity around package names could produce dev confusion here.
Documentation was referencing a deprecated function -- this PR fixes that too.

Codecov Report

Merging #23 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #23   +/-   ##
=======================================
  Coverage   76.02%   76.02%
=======================================
  Files          21       21
  Lines        2290     2290
=======================================
  Hits         1741     1741
  Misses        499      499
  Partials       50       50

Continue to review full report at Codecov.

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


docs: add remote content example using next-mdx-remote and a GitHub Gist

next-mdx-remote seems to be the best way to load remote content into nextra - I've used it successfully for interactive content with Next-Auth, for example.
This example uses a GitHub gist to render the first part of the help page. Obviously, the gist should be switched for something hosted under this repo.

closing since it's preferable use compileMdx from nextra/compile https://nextra.site/docs/guide/advanced/remote


Added Language Tag as Input Parameter for Api.ai

Although the Api.ai recognition language is set when creating an agent in the web console, in the API query the parameter lang is also required (https://docs.api.ai/docs/query) which limited the ASR to English only.
With this pull request you can set your own language tag according to (https://docs.api.ai/v11/docs/languages)

Hi @jhoelzl,
Thanks for catching that! I implemented it a little differently in order to support Python 3 in 3d08398c07d59a617532cbe45b33d3ac499c39ff. Version 3.4.3 will be going live in a few minutes.


cmd/compile: constraint type inference for generic types is not implemented

What version of Go are you using (go version)?

$ go version
go version go1.19 linux/amd64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/mrfox131/.cache/go-build"
GOENV="/home/mrfox131/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/mrfox131/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/mrfox131/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.19"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build4107873395=/tmp/go-build -gno-record-gcc-switches"

What did you do?

https://go.dev/play/p/e4HeQf10djz
What did you expect to see?
According to https://go.googlesource.com/proposal/+/refs/heads/master/design/43651-type-parameters.md#pointer-method-example
I expected to see that constraint type inference will work for function type definitions too/
What did you see instead?
Constraint type inference does not work for type definitions where type is some function/

Title format was not really clear for me, so I apologize for the inappropriate title.

To be honest struct was not meant in docs, but I found out, that type inference for structs does not work too
https://go.dev/play/p/5JcVfw2zxxN

In Go 1.19 constraint type inference only applies to functions, not types.  See https://go.dev/cl/404875.  We can leave this issue open as a request to try to make this work in the future.
CC @griesemer @findleyr

Thanks for the reply. I think if this is implemented it will be much more logical than type inference only for functions. Most likely I will try to do this myself, I am already reading the guideline.

It turns out that type inference for types is much more complicated and difficult than type inference for functions. A function is not a type and thus cannot be used to instantiate another function or type (nor does it need to be inferred). But a type may be used to instantiate another type, and possibly itself. On top of that, if we combine this with type inference, there are all kinds of cycle problems that we currently can't handle correctly (and don't fully understand), and which may require significant (re-)engineering of the type checker. And it's not even clear that it's desirable as it may make code really difficult to read.

We don't plan to do this. Closing.


Fix type in data_adapter.py

This closes the issue #61204
The datatype has been moved, I assume the function _is_distributed_dataset has not been tested.
This simple code change resolves the import issue.
cc: @MichaelHudgins, @BrianWieder, @fionalang, @nitins17

Hi @franz101 It looks like your PR relates to the Keras component. Please submit it to the github.com/keras-team/keras repository instead. Thankyou.
@fchollet, @qlzh727

Thanks for the quick reply @gbaned, unfortunately i looked in the repos of keras-team and the type DistributedDatasetInterface is nowhere mentioned. I have opened a new issue in keras. Or do is there a specific build pipeline how tensorflow/python/keras/engine/ is created


move cached value computation into triggers

⬑ #3994
← #4037 — #4023 →
Punchlist

[ ] remake against master once #4037 lands

Here are the four given values:

i
name
property of
description

1
payment instruction
participant
amount of money the participant intends to pay a given team, weekly

2
ownership
participant
a team owned by the participant

All the other numbers we care about can be computed from those four:

i
name
property of
function

1
giving
participant
sum of payment instructions from the given participant

2
ngiving_to
participant
number of payment instructions from the given participant

3
receiving
team
sum of payment instructions to the given team

4
nreceiving_from
team
number of payment instructions to the given team

5
distributing
team
receiving

6
ndistributing_to
team
1

7
taking
participant
sum of receiving for all ownerships

8
ntaking_from
participant
count of ownerships

given values are bold
computed values are in italics

payment_instruction
    giving
    ngiving_to
    receiving
    nreceiving_from
receiving
    distributing
    taking
ownership
    taking
    ntaking_from

giving              payment_instruction
ngiving_to          payment_instruction
receiving           payment_instruction
nreceiving_from     payment_instruction
distributing        receiving
ndistributing_to
taking              receiving           ownership
ntaking_from        ownership

Key: https://github.com/gratipay/gratipay.com/pull/4023#issuecomment-219128785.

digraph G {
    "giving" -> "payment_instruction" [dir=back]
    "ngiving_to" -> "payment_instruction" [dir=back]
    "receiving" -> "payment_instruction" [dir=back]
    "nreceiving_from" -> "payment_instruction" [dir=back]
    "distributing" -> "receiving" [dir=back]
    "taking" -> "receiving" [dir=back]
    "taking" -> "ownership" [dir=back]
    "ntaking_from" -> "ownership" [dir=back]
}

http://www.webgraphviz.com/

How does this relate to https://github.com/gratipay/gratipay.com/issues/3727? For example -

i
name
property of
function

1
giving
participant
sum of payment instructions from the given participant not including broken payments.

https://github.com/gratipay/gratipay.com/issues/3727#issuecomment-193297891 for reference.

Hmm ... good question.

@aandis Over here @kaguillera and I are thinking that we should only tackle migration of existing cached values functionality in this PR. Then when we get to #3727 we would approach it by modifying the triggers that we introduce on this PR. Sound right to you?

:+1:

Hmm ... the present reality is already a bit more complicated:

digraph G {
    "is_funded" -> "last_bill_result" [dir=back]
    "funded payment instruction" -> "is_funded" [dir=back]
    "funded payment instruction" -> "amount" [dir=back]
    "giving" -> "funded payment instruction" [dir=back]
    "ngiving_to" -> "funded payment instruction" [dir=back]
    "receiving" -> "funded payment instruction" [dir=back]
    "nreceiving_from" -> "funded payment instruction" [dir=back]
    "distributing" -> "receiving" [dir=back]
    "taking" -> "receiving" [dir=back]
    "taking" -> "ownership" [dir=back]
    "ntaking_from" -> "ownership" [dir=back]
}

Closing in favor of a new PR against master, since we want this code before team preliminaries (#4037).

New PR is #4063.


defcal for reset

Currently, we do not support a defcal for reset.
options
add three gates, reset measurement
or
can we get it all under one defcal

Just to expand upon what Jay wrote a bit. The central issue here is: what is an acceptable target for a defcal. Right now it is gates + measure as a special case. However, that leaves open the question of how to handle reset, which definitely is problematic because we have typically said that defcals shouldn’t contain control flow, because that breaks the single-threaded control model that is implicit in OpenQASM3.
So, a couple options that were discussed:

Allow defcal to also target subroutines (def). Runs into the issue above about control flow.
Introduce a concept of a “operation” to QASM3 which is broader than gate  but narrower than def. Add measure and reset to this family but also allow the user to add other things.
Add an additional special case for reset to defcal .

Just to expand upon what Jay wrote a bit. The central issue here is: what is an acceptable target for a defcal. Right now it is gates + measure as a special case. However, that leaves open the question of how to handle reset, which definitely is problematic because we have typically said that defcals shouldn’t contain control flow, because that breaks the single-threaded control model that is implicit in OpenQASM3.
So, a couple options that were discussed:

Allow defcal to also target subroutines (def). Runs into the issue above about control flow.
Introduce a concept of a “operation” to QASM3 which is broader than gate  but narrower than def. Add measure and reset to this family but also allow the user to add other things.
Add an additional special case for reset to defcal .

As we discuss I initially preferred 3 but now like 2 as we can add operations to qasm and then define them to be used like gates. For instance I could envision that we may want to add D_phase(gamma) where we do a dephasing channel which could be implements by a defcal which could be done by adding white noise to a parameter that sets the qubit frequency or entangles with a second qubit and measures it there by doing this operation back on the qubit of interest.
I think we should start going this way (not sure of why for applications yet - maybe there is some bath engineering examples that could be interesting) but for studying noise effects could be interesting and as such I would add operation to qasm which is a bigger than a gate but less than a subroutine but it can not support conditional operations.

As we discuss I initially preferred 3 but now like 2 as we can add operations to qasm and then define them to be used like gates. For instance I could envision that we may want to add D_phase(gamma) where we do a dephasing channel which could be implements by a defcal which could be done by adding white noise to a parameter that sets the qubit frequency or entangles with a second qubit and measures it there by doing this operation back on the qubit of interest.
I think we should start going this way (not sure of why for applications yet - maybe there is some bath engineering examples that could be interesting) but for studying noise effects could be interesting and as such I would add operation to qasm which is a bigger than a gate but less than a subroutine but it can not support conditional operations.

In (2) there could also be additional measure-like operations that return level 0 or level 1 data, rather than a `bit.

In (2) there could also be additional measure-like operations that return level 0 or level 1 data, rather than a `bit.

In (2) there could also be additional measure-like operations that return level 0 or level 1 data, rather than a `bit.

This could add significant complexity - two potential use-cases:

Returning qudit measurements
Real-time control/measurement bootstrapping routines in OpenQASM3.

In (2) there could also be additional measure-like operations that return level 0 or level 1 data, rather than a `bit.

This could add significant complexity - two potential use-cases:

Returning qudit measurements
Real-time control/measurement bootstrapping routines in OpenQASM3.

To flesh out Blake's suggestion (2):
we could allow defcal to also target a new thing more general than unitary gate. Call it "foo" for now because choosing the correct name may be tricky. Just as
gate mygate(type1: param1, type2: param2 ) q1, q2
{
   <mygate_body>
}```
defines a unitary gate in order to teach the compiler what the meaning of mygate is, lets have

foo myfoo(type1: param1, type2: param2) q1, q2 -> c1, c2
{
<myfoo_body>
}
to define teach the compiler what myfoo does, where the parameters and output cbit part of the syntax can be skipped if unused.

For both a `foo` or a `gate` we can bind it to a concrete pulse-level implementation with a `defcal` instruction, which would have to have extended syntax for the cbits (already this is already defined in the spec as a special case for `defcal measure`)

defcal myfoo(type1: param1, type2: param2) %5, %6 -> c1, c2
{
   <myfoo_pulse_implementation>
}

Remaining questions:

Do we need gate and foo since gate is just the unitary subset of foo?
What to call foo? A foo is a POVM in general, so we could call it povm but in the case where you are defining something like a reset its a bit weird to call that a povm since it has a single effect: Id, and we are unlikely to allow arbitrary POVMs. Maybe a more neutral name is oper or instr?
What is allowed in the body of a foo? Consensus seems currently to be for keeping it quite restricted: straight line qasm with no loops, conditionals, qbit/cbit allocation. This would allow the obvious use cases: measurement in a new basis, destructive measurements, isometries. It would not allow things like arbitrary Kraus maps or weak measurements or noisy reset. We can always broaden the allowed contents in the future if needed. Probably the most general thing you can argue for is arbitrary qasm without qubit allocation, and with a guarantee that all paths through the body terminate after a finite time, allowing the compiler in the worst case to build a matrix representation by a brute-force enumeration of what are the operations/effects for the POVM as a function of the parameters. It's not clear that there would ever be demand for this and that the compiler would be anything useful for it anyway.

To flesh out Blake's suggestion (2):
we could allow defcal to also target a new thing more general than unitary gate. Call it "foo" for now because choosing the correct name may be tricky. Just as
gate mygate(type1: param1, type2: param2 ) q1, q2
{
   <mygate_body>
}```
defines a unitary gate in order to teach the compiler what the meaning of mygate is, lets have

foo myfoo(type1: param1, type2: param2) q1, q2 -> c1, c2
{
<myfoo_body>
}
to define teach the compiler what myfoo does, where the parameters and output cbit part of the syntax can be skipped if unused.

For both a `foo` or a `gate` we can bind it to a concrete pulse-level implementation with a `defcal` instruction, which would have to have extended syntax for the cbits (already this is already defined in the spec as a special case for `defcal measure`)

defcal myfoo(type1: param1, type2: param2) %5, %6 -> c1, c2
{
   <myfoo_pulse_implementation>
}

Remaining questions:

Do we need gate and foo since gate is just the unitary subset of foo?
What to call foo? A foo is a POVM in general, so we could call it povm but in the case where you are defining something like a reset its a bit weird to call that a povm since it has a single effect: Id, and we are unlikely to allow arbitrary POVMs. Maybe a more neutral name is oper or instr?
What is allowed in the body of a foo? Consensus seems currently to be for keeping it quite restricted: straight line qasm with no loops, conditionals, qbit/cbit allocation. This would allow the obvious use cases: measurement in a new basis, destructive measurements, isometries. It would not allow things like arbitrary Kraus maps or weak measurements or noisy reset. We can always broaden the allowed contents in the future if needed. Probably the most general thing you can argue for is arbitrary qasm without qubit allocation, and with a guarantee that all paths through the body terminate after a finite time, allowing the compiler in the worst case to build a matrix representation by a brute-force enumeration of what are the operations/effects for the POVM as a function of the parameters. It's not clear that there would ever be demand for this and that the compiler would be anything useful for it anyway.

What is allowed in the body of a foo? Consensus seems currently to be for keeping it quite restricted: straight line qasm with no loops, conditionals, qbit/cbit allocation

If this foo concept is added to cover reset then we still have to decide what actually goes in the body of the defcal reset, do we special case allow for an if statement as long as it has a well-defined time?

What is allowed in the body of a foo? Consensus seems currently to be for keeping it quite restricted: straight line qasm with no loops, conditionals, qbit/cbit allocation

If this foo concept is added to cover reset then we still have to decide what actually goes in the body of the defcal reset, do we special case allow for an if statement as long as it has a well-defined time?

do we special case allow for an if statement as long as it has a well-defined time?

I supposse control-flow only matters to the circuit compiler/scheduler insofar as the qubit instruction POVM can be reasoned about and the duration reported respectively. We might consider the circuit-level scheduling optional as well.

do we special case allow for an if statement as long as it has a well-defined time?

I supposse control-flow only matters to the circuit compiler/scheduler insofar as the qubit instruction POVM can be reasoned about and the duration reported respectively. We might consider the circuit-level scheduling optional as well.


Python package for OpenEI EULP downloads

Add Python package to SAM samples folder to provide a way for SAM users to get load data from OpenEI End User Load Profiles database to use in SAM.
Partially address #539
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[X] This change requires a documentation update
[ ] This change modifies variables in existing compute modules. Please see Checking for PySAM Incompatible API Changes.

Checklist:
If you have added a new compute module in a SSC pull request related to this one, be sure to check the Process Requirements.

[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[X] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
[X] I have checked my code and corrected any misspellings

@cpaulgilman The test failures look like they're due to a problem that's already been solved on patch. I think I might be able to fix it by cherry-picking the commits from 12/9 and 12/12 to a branch from the latest patch. Any objections to closing this PR and trying that approach?

I've moved the commits that aren't merge commits to https://github.com/NREL/SAM/pull/1331. Fingers crossed that the tests pass, closing this with a sense of optimism.


There is no need of Google Books API Credentials for Querying ? & How to Print ImageLinks from info List JSON?

No, you don't need credentials for querying (see this.
To print image links from info list:
for (final data in imageLinks) {
  data.forEach((key, value) {
    // Key is the link name
    // Value is the link
    print(value);
  });
}

No, you don't need credentials for querying (see this.
To print image links from info list:
for (final data in imageLinks) {
  data.forEach((key, value) {
    // Key is the link name
    // Value is the link
    print(value);
  });
}

@bdlukaa Thank's Buddy


Sorted fileName and order of CreateAssetMenu for better usability/consistency

Hey there,
I set up the default filenames when creating the ScriptableObjects and set their order across variables, constants, lists etc. so it looks consistently across the CreateAssetMenu-Navigation.

Looks like some great additions! Will look further into it later this week.

Merged! Thanks for the contribution!


Interface SHOULD support notifications (void functions)

As described in the official specification, JSON-RPC 2.0 does support Notifications.

A Notification is a Request object without an "id" member. A Request object that is a Notification signifies the Client's lack of interest in the corresponding Response object, and as such no Response object needs to be returned to the client. The Server MUST NOT reply to a Notification, including those that are within a batch request.

Notifications are not confirmable by definition, since they do not have a Response object to be returned. As such, the Client would not be aware of any errors (like e.g. "Invalid params","Internal error").

In fact, Barrister does not support notifications, but it should.
@coopernurse is there any reason about this choice?
/cc @devalecs and @brunobellissimo who are working with me using barrister

Thanks for doing this work and I agree that it should be supported.
Barrister has a conformance test suite that I use to ensure that all the language bindings interoperate uniformly.  It would be good to add a notification function call to the IDL that's used by these tests.
Since this IDL grammar change should be backwards compatible I'm not sure that we need to update the conformance suite before merging this PR, but I'd like to think about it a bit.
It's currently a bit challenging to get the test suite to run, and this is a great use case for Docker.  Let me know if you or your team has interest in assisting me in getting some Dockerfiles written.  I'll open separate issues for that work, but since this is the first major outside contribution to barrister it's the first time I've had an immediate need for other developers to run that suite.
Thanks

The other consideration for this PR is that language bindings that have code generators (currently Java and Go) will need to be updated to support this.  Currently those code generators expect return values for all functions.
Not a huge piece of work, but again, another thing to consider before merging the PR.

Thanks for your comments :)
Are you referencing the idl_parse_test.sh file? It now includes a new test IDL (cf. https://github.com/coopernurse/barrister/pull/7/files#diff-e4cb8358b3e34f6fb636c55b8bfe721fR1)
Anyway, about the conformance test / suite: in our humble opinion it would be great to switch to Travis CI, which supports Docker natively and has a free plan for public repos. I can support you in the switch, of course.
About the language bindings, I can help you with the code generator written in Go. Please provide me with all the pieces of information I need to start.
For further details we can have a quick chat using http://gitter.im, but you have to create the chatroom since you are the repo's owner :)

Thanks for your comments.  I've created a gitter room and added the badge to the barrister README:
https://gitter.im/coopernurse/barrister
I've also created a ticket to discuss the migration of the conformance tests to Docker:
https://github.com/coopernurse/barrister/issues/8


Update retention policy before saving database

Without this change, new shard group information is not persisted in the
metastore and only when the next database-save took place would this
update be persisted. If the server shutdown before the update, the new
shard group would be lost.

@benbjohnson

Green build.

I have updated the unit tests so it explicitly tests that shard groups are persisted to disk after a restart. With this change in place, I am now seeing this failure:
--- FAIL: TestServer_CreateShardGroupIfNotExist (1.15s)
panic: open: load: cannot open shard store: id=1, err=timeout [recovered]
        panic: open: load: cannot open shard store: id=1, err=timeout

goroutine 6 [running]:
testing.func·006()
        /home/philip/.gvm/gos/go1.4/src/testing/testing.go:441 +0x181
github.com/influxdb/influxdb_test.(*Server).Restart(0xc208044060)
        /home/philip/Dropbox/repos/influxdb/src/github.com/influxdb/influxdb/server_test.go:1132 +0x23a
github.com/influxdb/influxdb_test.TestServer_CreateShardGroupIfNotExist(0xc208060090)
        /home/philip/Dropbox/repos/influxdb/src/github.com/influxdb/influxdb/server_test.go:875 +0x370
testing.tRunner(0xc208060090, 0xa74470)
        /home/philip/.gvm/gos/go1.4/src/testing/testing.go:447 +0xbf
created by testing.RunTests
        /home/philip/.gvm/gos/go1.4/src/testing/testing.go:555 +0xa8b

goroutine 1 [chan receive]:
testing.RunTests(0x92f3f0, 0xa740e0, 0x30, 0x30, 0xa77c01)
        /home/philip/.gvm/gos/go1.4/src/testing/testing.go:556 +0xad6
testing.(*M).Run(0xc2080462d0, 0xa7f0a0)
        /home/philip/.gvm/gos/go1.4/src/testing/testing.go:485 +0x6c
main.main()
        github.com/influxdb/influxdb/_test/_testmain.go:148 +0x1d5

goroutine 5 [chan receive]:
code.google.com/p/log4go.ConsoleLogWriter.run(0xc20805c060, 0x7f95e0082e98, 0xc208044008)
        /home/philip/Dropbox/repos/influxdb/src/code.google.com/p/log4go/termlog.go:27 +0x7a
created by code.google.com/p/log4go.NewConsoleLogWriter
        /home/philip/Dropbox/repos/influxdb/src/code.google.com/p/log4go/termlog.go:19 +0x6b

goroutine 7 [select]:
github.com/influxdb/influxdb.(*Server).processor(0xc20805e500, 0x7f95e0083310, 0xc208034600, 0xc20805c360)
        /home/philip/Dropbox/repos/influxdb/src/github.com/influxdb/influxdb/server.go:2486 +0x5c8
created by github.com/influxdb/influxdb.(*Server).setClient
        /home/philip/Dropbox/repos/influxdb/src/github.com/influxdb/influxdb/server.go:319 +0x132
exit status 2
FAIL    github.com/influxdb/influxdb    1.158s
~/Dropbox/repos/influxdb/src/github.com/influxdb/influxdb (persist_policies)$ git add -p
diff --git a/server_test.go b/server_test.go
index b947841..5efbd06 100644

so this change may have brought out something else.

The shards aren't being closed in Server.Close(). Fixed: e417852

Shipt it from @benbjohnson


Rig calibration: allow different number of frames.

Main and witness camera videos do not necessarily have the same number of frames.
Sequences are shortened to the shortest length sequence.

Should we consider enabling squash merging for this repo?
https://github.com/blog/2141-squash-your-commits

Sorry I didn't see your comment until now! I actually did it and force pushed. But yes, it's better to have a neat history

Normally there is a option in Github UI when u merge to squash the commits but it was not the case here so i did it

Yeah, that UI element is optional in the repo settings. My question was if we should enable it? I guess it makes sense.

it's strange because the merge i did this morning poparteu/openMVG#148 had it (but i didn't use it)

ok silly me, you need to press the merge button once and then for confirmation you can choose between squash or normal merge. Good to know for the next time :-)


Check Google Compute Engine for project_id

The googleauth library detects when running on Google Compute Engine and
retrieves the authentication from the GCE environment.
Likewise, we should look to GCE to find the project_id.
[closes #211]

Looks good! Interesting how this works. Will merge soon.


exitWithDefaultSignalHandler() should block until signal handler returns

raise() system call does the same as kill() system call in a single-threaded program.
In a multithreaded program, it does the same as pthread_kill() which ensures that if the signal causes a handler to be called, raise() will return only after the signal handler has returned.
PULL REQUEST DESCRIPTION
In unix version of g3::internal::exitWithDefaultSignalHandler(), it rethrows the signal using the kill() system call.
This system call is per process basis.
In a multithreaded program, if the signal causes a handler to be called, the handler can be executed in any thread, not necessary by the thread that calls kill().
It means that the calling thread can continue and reach the exit() system call.
In the case of a signal that terminate the process and dump core, the coredump file may be corrupted because the exit() initiates the destruction of main objects, that could be useful for the crash analysis.
raise() sends a signal to the calling thread, if the signal causes a handler to be called, the thread execution will block until that handler returns, the exit() is never reached, core file integrity is preserved.
Testing

Tested in real environment with a multithreaded program

Call stack with kill() system call
(gdb) bt
#0  0x00007ff6bf8a685f in _dl_fixup (l=0x7ff6bf88fab0, reloc_arg=5518) at dl-runtime.c:67
#1  0x00007ff6bf893d5e in _dl_runtime_resolve_xsavec () at ../sysdeps/x86_64/dl-trampoline.h:126
#2  0x00007ff6bc54c3e6 in std::map<std::basic_string_view<char, std::char_traits<char> >, SdpMediaDescription::eProtocolType, std::less<std::basic_string_view<char, std::char_traits<char> > >, std::allocator<std::pair<std::basic_string_view<char, std::char_traits<char> > const, SdpMediaDescription::eProtocolType> > >::~map (
    this=0x7ff6bcac7c00 <protoFrom(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)::sc_protosMap>, __in_chrg=<optimized out>) at /usr/include/c++/11/bits/stl_map.h:302
#3  0x00007ff6b99b0a15 in __run_exit_handlers () from /lib64/libc.so.6
#4  0x00007ff6b99b0b90 in exit () from /lib64/libc.so.6
#5  0x00007ff6ba9aec79 in g3::internal::exitWithDefaultSignalHandler (level=..., fatal_signal_id=11) at /tmp/src/ng_src-fmk/extern/g3log/src/crashhandler_unix.cpp:240
#6  0x00007ff6ba9c2cbb in g3::LogWorkerImpl::bgFatal (this=0x1863e50, msgPtr=...) at /tmp/src/ng_src-fmk/extern/g3log/src/logworker.cpp:67
#7  0x00007ff6ba9c2f91 in operator() (__closure=0x7ff6a80065a0) at /tmp/src/ng_src-fmk/extern/g3log/src/logworker.cpp:109
#8  0x00007ff6ba9c3e4c in std::__invoke_impl<void, g3::LogWorker::fatal(g3::FatalMessagePtr)::<lambda()>&>(std::__invoke_other, struct {...} &) (__f=...) at /usr/include/c++/11/bits/invoke.h:61
#9  0x00007ff6ba9c3b86 in std::__invoke_r<void, g3::LogWorker::fatal(g3::FatalMessagePtr)::<lambda()>&>(struct {...} &) (__fn=...) at /usr/include/c++/11/bits/invoke.h:111
#10 0x00007ff6ba9c37d7 in std::_Function_handler<void(), g3::LogWorker::fatal(g3::FatalMessagePtr)::<lambda()> >::_M_invoke(const std::_Any_data &) (__functor=...) at /usr/include/c++/11/bits/std_function.h:291
#11 0x00000000004cd15b in std::function<void ()>::operator()() const (this=0x7ff6b9795cd0) at /usr/include/c++/11/bits/std_function.h:560
#12 0x00000000004c9e59 in kjellkod::Active::run (this=0x1863e80) at /tmp/build/g3log/include/g3log/active.hpp:40
#13 0x00000000004f4829 in std::__invoke_impl<void, void (kjellkod::Active::*)(), kjellkod::Active*> (__f=@0x18641c0: (void (kjellkod::Active::*)(kjellkod::Active * const)) 0x4c9db6 <kjellkod::Active::run()>, __t=@0x18641b8: 0x1863e80)
    at /usr/include/c++/11/bits/invoke.h:74
#14 0x00000000004f405f in std::__invoke<void (kjellkod::Active::*)(), kjellkod::Active*> (__fn=@0x18641c0: (void (kjellkod::Active::*)(kjellkod::Active * const)) 0x4c9db6 <kjellkod::Active::run()>)
    at /usr/include/c++/11/bits/invoke.h:96
#15 0x00000000004f397e in std::thread::_Invoker<std::tuple<void (kjellkod::Active::*)(), kjellkod::Active*> >::_M_invoke<0ul, 1ul> (this=0x18641b8) at /usr/include/c++/11/bits/std_thread.h:253
#16 0x00000000004f31d9 in std::thread::_Invoker<std::tuple<void (kjellkod::Active::*)(), kjellkod::Active*> >::operator() (this=0x18641b8) at /usr/include/c++/11/bits/std_thread.h:260
#17 0x00000000004f2bd3 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (kjellkod::Active::*)(), kjellkod::Active*> > >::_M_run (this=0x18641b0) at /usr/include/c++/11/bits/std_thread.h:211
#18 0x00007ff6ba6a1c84 in execute_native_thread_routine () from /lib64/libstdc++.so.6
#19 0x00007ff6b99f8da2 in start_thread () from /lib64/libc.so.6
#20 0x00007ff6b99989e0 in clone3 () from /lib64/libc.so.6
(gdb)

At frame 5, fatal_signal_id indicates that a SIGSEGV triggered the fatal log message.
At frame 2 a global std::map is destroyed.
Call stack with raise() system call
This is the exact same issue but the kill() system call is replaced by raise().
(gdb) bt
#0  0x00007f6bfee90aec in __pthread_kill_implementation () from /lib64/libc.so.6
#1  0x00007f6bfee442a6 in raise () from /lib64/libc.so.6
#2  0x00007f6bffe44c52 in g3::internal::exitWithDefaultSignalHandler (level=..., fatal_signal_id=11) at /tmp/src/ng_src-fmk/extern/g3log/src/crashhandler_unix.cpp:228
#3  0x00007f6bffe58cb1 in g3::LogWorkerImpl::bgFatal (this=0x90be50, msgPtr=...) at /tmp/src/ng_src-fmk/extern/g3log/src/logworker.cpp:67
#4  0x00007f6bffe58f87 in operator() (__closure=0x7f6bf4004890) at /tmp/src/ng_src-fmk/extern/g3log/src/logworker.cpp:109
#5  0x00007f6bffe59e42 in std::__invoke_impl<void, g3::LogWorker::fatal(g3::FatalMessagePtr)::<lambda()>&>(std::__invoke_other, struct {...} &) (__f=...) at /usr/include/c++/11/bits/invoke.h:61
#6  0x00007f6bffe59b7c in std::__invoke_r<void, g3::LogWorker::fatal(g3::FatalMessagePtr)::<lambda()>&>(struct {...} &) (__fn=...) at /usr/include/c++/11/bits/invoke.h:111
#7  0x00007f6bffe597cd in std::_Function_handler<void(), g3::LogWorker::fatal(g3::FatalMessagePtr)::<lambda()> >::_M_invoke(const std::_Any_data &) (__functor=...) at /usr/include/c++/11/bits/std_function.h:291
#8  0x00000000004cd15b in std::function<void ()>::operator()() const (this=0x7f6bfec2bcd0) at /usr/include/c++/11/bits/std_function.h:560
#9  0x00000000004c9e59 in kjellkod::Active::run (this=0x90be80) at /tmp/build/g3log/include/g3log/active.hpp:40
#10 0x00000000004f4829 in std::__invoke_impl<void, void (kjellkod::Active::*)(), kjellkod::Active*> (__f=@0x90c1c0: (void (kjellkod::Active::*)(kjellkod::Active * const)) 0x4c9db6 <kjellkod::Active::run()>, __t=@0x90c1b8: 0x90be80) at /usr/include/c++/11/bits/invoke.h:74
#11 0x00000000004f405f in std::__invoke<void (kjellkod::Active::*)(), kjellkod::Active*> (__fn=@0x90c1c0: (void (kjellkod::Active::*)(kjellkod::Active * const)) 0x4c9db6 <kjellkod::Active::run()>) at /usr/include/c++/11/bits/invoke.h:96
#12 0x00000000004f397e in std::thread::_Invoker<std::tuple<void (kjellkod::Active::*)(), kjellkod::Active*> >::_M_invoke<0ul, 1ul> (this=0x90c1b8) at /usr/include/c++/11/bits/std_thread.h:253
#13 0x00000000004f31d9 in std::thread::_Invoker<std::tuple<void (kjellkod::Active::*)(), kjellkod::Active*> >::operator() (this=0x90c1b8) at /usr/include/c++/11/bits/std_thread.h:260
#14 0x00000000004f2bd3 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (kjellkod::Active::*)(), kjellkod::Active*> > >::_M_run (this=0x90c1b0) at /usr/include/c++/11/bits/std_thread.h:211
#15 0x00007f6bffb37c84 in execute_native_thread_routine () from /lib64/libstdc++.so.6
#16 0x00007f6bfee8eda2 in start_thread () from /lib64/libc.so.6
#17 0x00007f6bfee2e9e0 in clone3 () from /lib64/libc.so.6
(gdb)

At frame 2, fatal_signal_id indicates that a SIGSEGV triggered the fatal log message.

Hello @KjellKod ,
I don't have a test example right now.
I observe the behavior in real conditions with our software at work.
I can extract some piece of code that should do the job to trigger the differences between those two system calls.
This can take a little time as i am a bit busy for the moment.
I keep you in touch and tell you when it's ready.
If the test app is in one of my repository on github is it ok for you ?
You'll can integrate it in your source code as a new test when it's done and ok for you.

That would be totally fine, the test example can even be in a private repository if you prefer that, as long as I have access.
I'll try to duplicate it also on my end so that its watertight. So far I've been unable to duplicate it on OSX. I will try this weekend on Linux.

tested on OSX without seeing any difference.
I'll try to test on Linux also -- this is the busiest time of the year from me and easy to be distracted so it might take some time but it will happen

(seeing no difference isn't necessarily bad, AFAIK this PR is good,  I just prefer to see the actual impact it has)

Hello,
I am working on it.
I reproduce the problem with a test app on Linux.
I go directly to the point, the code is not really clean but it does the job.
I have some days off, I expect to finalize it for next week.
I keep you in touch, have a nice week-end !

Hello,
I think I have finished the test application, it is available in public here: https://github.com/ablangy/log_mt_test/
I have written some notes to guide into the reproduction of the issue, let me know if it is not clear enough.
Have a nice day.

https://github.com/ablangy/log_mt_test/ was very informative, it only worked on linux, not OSX but I got old linux laptop up (the one that wrote g2log and g3log) and tested it.
Its likely platform dependent (server architecture?) to see this out-of-order behavior as I cannot reproduce it with our example either. Regardless, I am convinced that this change is good and I'll merge it and also kick off a 2.1.x g3log release that contains this important improvement. Thank you @ablangy for this very thorough bugfix

Release with this change: https://github.com/KjellKod/g3log/releases/tag/2.1

Hello,
Sorry I didn't detail the Linux distribution I use to reproduce this issue.
I am working on a Fedora 36 running on Linux kernel 5.19.16 (RPM 5.19.16-200) with "GNU C Library (GNU libc) stable release version 2.35".
Indeed I am working on a server architecture.
Thank you for your quick handling of this request. This will make our work easier about post mortem analysis.
See you ! :-)


Factory reset may not be needed

Hey, a week ago in my spare time I started doing the same thing that you're doing. I am using different technologies (such as pygatt) but I see that we have started from the self-same resources.
During my own research I have noticed something that I have not found written anywhere, so I thought I would share it. If you open the Hue BT app, then go to Settings -> Voice Assistants -> [Pick one assistant] -> Click on "Make visible", then the bulb can be paired. At that point you will be able to control the bulb from both the smartphone and the pc.
I have only tested this on one bulb so I'm not sure how much it is reliable. If you can try it yourself, let me know

That's a great tip, thank you! I just tried it with my Hue Go (LCT026) and it works. Now both my Raspberry Pi and my Computer are paired with the light, which makes debugging quite a bit easier.


EF Core provider gap: Provide proper synchronous version of various APIs

The following methods don't have synchronous equivalents:

CreateDatabaseIfNotExistsAsync()
CosmosDatabase.DeleteAsync()
CreateContainerIfNotExistsAsync()
CosmosResultSetIterator<>.FetchNextSetAsync()
CosmosQueryResponse<>.FetchNextSetAsync()
CreateItemAsync<>()
ReplaceItemAsync<>()
DeleteItemAsync<>()

Since EF Core provides both synchronous and asynchronous APIs, in the EF Core provider implementation we need to choose between throwing NotSupportedException and applying workarounds that can cause threads to block and deadlocks.
This issue existed in previous versions of the SDK, and still applies to Cosmos SDK version <IP_ADDRESS>-preview.
cc @AndriySvyryd @ajcvickers @kirillg

I think a better solution would be...
"Remove synchronous methods from EF Core"

@jackbond For local databases and scenarios without strict memory constraints synchronous methods are usually more performant.

@AndriySvyryd Dear Cosmos team, please supply an implementation of this SDK in machine language. Machine language is "usually more performant".
It's 2019, I'm dumbfounded that this is even a consideration.


fractions (math) inside functions

fractions ... or trig for that matter not working inside functions.

Can now do math inside functions... but evaluating is broken.  Really seems like it should still work but it needs a space to evaluate.  When its complicated it will not evaluate.

simple problem can't find it... 4*4 space  (needs the space to evaluate??)

You weren't catching the eval method somewhere, silly mistake haha done


No intellisense when extend prototype

I created myMethod in Number prototype, but after create variable Number type, the myMethod isn't exist in suggestion list:

VSC 1.21.0-insider / 2018-02-28T06:03:54.355Z

This issue was moved to Microsoft/TypeScript#22250


NotFoundError:  Resource localhost/_AnonymousVar29/N10tensorflow22SummaryWriterInterfaceE does not exist.

tf 2.4.1
---------------------------------------------------------------------------
NotFoundError                             Traceback (most recent call last)
<ipython-input-10-92bfedd73a83> in <module>
      2 tensorboard_callback = tf.keras.callbacks.TensorBoard(log_dir=log_dir, histogram_freq=1, update_freq='batch')
      3
----> 4 model.fit(x, y, initial_epoch=20, epochs=25, callbacks=[tensorboard_callback])

~/.local/lib/python3.8/site-packages/tensorflow/python/keras/engine/training.py in fit(self, x, y, batch_size, epochs, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, initial_epoch, steps_per_epoch, validation_steps, validation_batch_size, validation_freq, max_queue_size, workers, use_multiprocessing)
   1098                 _r=1):
   1099               callbacks.on_train_batch_begin(step)
-> 1100               tmp_logs = self.train_function(iterator)
   1101               if data_handler.should_sync:
   1102                 context.async_wait()

~/.local/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py in __call__(self, *args, **kwds)
    826     tracing_count = self.experimental_get_tracing_count()
    827     with trace.Trace(self._name) as tm:
--> 828       result = self._call(*args, **kwds)
    829       compiler = "xla" if self._experimental_compile else "nonXla"
    830       new_tracing_count = self.experimental_get_tracing_count()

~/.local/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py in _call(self, *args, **kwds)
    853       # In this case we have created variables on the first call, so we run the
    854       # defunned version which is guaranteed to never create variables.
--> 855       return self._stateless_fn(*args, **kwds)  # pylint: disable=not-callable
    856     elif self._stateful_fn is not None:
    857       # Release the lock early so that multiple threads can perform the call

~/.local/lib/python3.8/site-packages/tensorflow/python/eager/function.py in __call__(self, *args, **kwargs)
   2940       (graph_function,
   2941        filtered_flat_args) = self._maybe_define_function(args, kwargs)
-> 2942     return graph_function._call_flat(
   2943         filtered_flat_args, captured_inputs=graph_function.captured_inputs)  # pylint: disable=protected-access
   2944

~/.local/lib/python3.8/site-packages/tensorflow/python/eager/function.py in _call_flat(self, args, captured_inputs, cancellation_manager)
   1916         and executing_eagerly):
   1917       # No tape is watching; skip to running the function.
-> 1918       return self._build_call_outputs(self._inference_function.call(
   1919           ctx, args, cancellation_manager=cancellation_manager))
   1920     forward_backward = self._select_forward_and_backward_functions(

~/.local/lib/python3.8/site-packages/tensorflow/python/eager/function.py in call(self, ctx, args, cancellation_manager)
    553       with _InterpolateFunctionError(self):
    554         if cancellation_manager is None:
--> 555           outputs = execute.execute(
    556               str(self.signature.name),
    557               num_outputs=self._num_outputs,

~/.local/lib/python3.8/site-packages/tensorflow/python/eager/execute.py in quick_execute(op_name, num_outputs, inputs, attrs, ctx, name)
     57   try:
     58     ctx.ensure_initialized()
---> 59     tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
     60                                         inputs, attrs, num_outputs)
     61   except core._NotOkStatusException as e:

NotFoundError:  Resource localhost/_AnonymousVar29/N10tensorflow22SummaryWriterInterfaceE does not exist.
	 [[{{node cond/then/_0/batch_loss}}]] [Op:__inference_train_function_9310]

Function call stack:
train_function

@GF-Huang
Please, fill issue template.
Please, share colab link or simple standalone code with supporting files to reproduce the issue in our environment.It helps us in localizing the issue faster.Thanks!

tf 2.4.1
---------------------------------------------------------------------------
NotFoundError                             Traceback (most recent call last)
<ipython-input-10-92bfedd73a83> in <module>
      2 tensorboard_callback = tf.keras.callbacks.TensorBoard(log_dir=log_dir, histogram_freq=1, update_freq='batch')
      3
----> 4 model.fit(x, y, initial_epoch=20, epochs=25, callbacks=[tensorboard_callback])

~/.local/lib/python3.8/site-packages/tensorflow/python/keras/engine/training.py in fit(self, x, y, batch_size, epochs, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, initial_epoch, steps_per_epoch, validation_steps, validation_batch_size, validation_freq, max_queue_size, workers, use_multiprocessing)
   1098                 _r=1):
   1099               callbacks.on_train_batch_begin(step)
-> 1100               tmp_logs = self.train_function(iterator)
   1101               if data_handler.should_sync:
   1102                 context.async_wait()

~/.local/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py in __call__(self, *args, **kwds)
    826     tracing_count = self.experimental_get_tracing_count()
    827     with trace.Trace(self._name) as tm:
--> 828       result = self._call(*args, **kwds)
    829       compiler = "xla" if self._experimental_compile else "nonXla"
    830       new_tracing_count = self.experimental_get_tracing_count()

~/.local/lib/python3.8/site-packages/tensorflow/python/eager/def_function.py in _call(self, *args, **kwds)
    853       # In this case we have created variables on the first call, so we run the
    854       # defunned version which is guaranteed to never create variables.
--> 855       return self._stateless_fn(*args, **kwds)  # pylint: disable=not-callable
    856     elif self._stateful_fn is not None:
    857       # Release the lock early so that multiple threads can perform the call

~/.local/lib/python3.8/site-packages/tensorflow/python/eager/function.py in __call__(self, *args, **kwargs)
   2940       (graph_function,
   2941        filtered_flat_args) = self._maybe_define_function(args, kwargs)
-> 2942     return graph_function._call_flat(
   2943         filtered_flat_args, captured_inputs=graph_function.captured_inputs)  # pylint: disable=protected-access
   2944

~/.local/lib/python3.8/site-packages/tensorflow/python/eager/function.py in _call_flat(self, args, captured_inputs, cancellation_manager)
   1916         and executing_eagerly):
   1917       # No tape is watching; skip to running the function.
-> 1918       return self._build_call_outputs(self._inference_function.call(
   1919           ctx, args, cancellation_manager=cancellation_manager))
   1920     forward_backward = self._select_forward_and_backward_functions(

~/.local/lib/python3.8/site-packages/tensorflow/python/eager/function.py in call(self, ctx, args, cancellation_manager)
    553       with _InterpolateFunctionError(self):
    554         if cancellation_manager is None:
--> 555           outputs = execute.execute(
    556               str(self.signature.name),
    557               num_outputs=self._num_outputs,

~/.local/lib/python3.8/site-packages/tensorflow/python/eager/execute.py in quick_execute(op_name, num_outputs, inputs, attrs, ctx, name)
     57   try:
     58     ctx.ensure_initialized()
---> 59     tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
     60                                         inputs, attrs, num_outputs)
     61   except core._NotOkStatusException as e:

NotFoundError:  Resource localhost/_AnonymousVar29/N10tensorflow22SummaryWriterInterfaceE does not exist.
	 [[{{node cond/then/_0/batch_loss}}]] [Op:__inference_train_function_9310]

Function call stack:
train_function

@GF-Huang, have you found a solution to this issue. If so, kindly share your solution here. I'm facing similar issue.

I forget what's the problem, maybe restart the python kernel will be help.

I've got a similar issue:
tensorflow 2.8.0
context:
For some reasons, I need to call successively 2 times model.fit(..., callbacks=callbacks).
In callbacks, I have a tf.keras.callbacks.TensorBoard.
In the first fit everything is going well, but the second time I have this error:
 tf.summary.histogram('similarities', pos_scores, step=0)
    File "/Users/bleguay/.pyenv/versions/deepranker/lib/python3.10/site-packages/tensorboard/plugins/histogram/summary_v2.py", line 194, in histogram
      return tf.summary.write(
Node: 'similarities/write_summary'
Resource localhost/_AnonymousVar0/N10tensorflow22SummaryWriterInterfaceE does not exist.
         [[{{node similarities/write_summary}}]] [Op:__inference_train_function_49222]

Since I defined it multiple times in fit, It seems tf.summary has difficulty finding the current tf.summary.SummaryWriter. I tried to re-instantiate the tf.keras.callbacks.TensorBoard object before feeding it to the second fit or to remove the callbacks from the second fit but the same error occured.
How can I solve that ? what is the good practice in order to call fit multiples times and to keep the tf.keras.callbacks.TensorBoard working.
If you need more information please tell me :)
Thank you.

Ok I just found this, it seems the issue has been resolved in tensorflow 2.9.1.
I'll update my version and keep you in touch.

I managed to solve my issue using this issue. However, it does not feel very natural to need to re-compile to model in order to solve a Tensorboard issue, should it be solved ?
Of course, I might not understand the underlying reason, if yes I'm eager to learn it.
Thanks !


Dart WebSocket Connection to webserver Exhibits Inconsistent Behavior and Premature Closure

Issue Description:
When attempting to use Dart's WebSocket class to establish a WebSocket connection to the server wss://mob-backdev.dentro.ru:444, unexpected behavior occurs. Although the server is expected to echo the sent messages, the received data is inconsistent, and sometimes the connection closes prematurely with a SocketException.
Steps to Reproduce:

Run the provided Dart code to establish a WebSocket connection to the server.
Send five messages sequentially to the server with a delay of 1 second between each message.
Listen for incoming messages and track the count.
Observe the received data and the behavior of the connection.

Expected Behavior:

All five messages are successfully sent to the server.
The server echoes each message back to the client.
The connection remains open until all messages have been received.
The connection closes gracefully after receiving all echoed messages.

Actual Behavior:

The received data is inconsistent and sometimes includes unexpected characters.
The connection occasionally closes prematurely with a SocketException.
The observed behavior varies between runs.

Additional Information:

Dart SDK version: 3.4.0 (stable)
Operating System: macOS
Tested with other WebSocket servers (e.g., wss://echo.websocket.org) without encountering similar issues.
A recorded video demonstrates testing the WebSocket server using Postman without issues.

Code Snippet:
import 'dart:io';

void main() async {
  try {
    final socket = await WebSocket.connect(
      'wss://mob-backdev.dentro.ru:444',
      headers: {'dentro-token': '86F1A241876A2B46BFEFED38C88936D8'},
    );

    var receivedCount = 0;
    socket.listen(
      (data) {
        print('Received: $data');
        receivedCount++;
        if (receivedCount == 5) {
          socket.close();
        }
      },
      onError: (error) {
        print('Error: $error');
      },
      onDone: () {
        print('Connection closed by server!');
      },
    );

    Future.delayed(Duration(seconds: 1)).then((_) {
      socket.add('Message 1');
      Future.delayed(Duration(seconds: 1)).then((_) {
        socket.add('Message 2');
        Future.delayed(Duration(seconds: 1)).then((_) {
          socket.add('Message 3');
          Future.delayed(Duration(seconds: 1)).then((_) {
            socket.add('Message 4');
            Future.delayed(Duration(seconds: 1)).then((_) {
              socket.add('Message 5');
            });
          });
        });
      });
    });
  } catch (e) {
    print('Error connecting to the WebSocket server: $e');
  }
}

Outputs:
➜  ws git:(main) ✗ dart lib/test.dart
Received: Message 0
Received: Message 1
Connection closed by server!

➜  ws git:(main) ✗ dart lib/test.dart
Received: 5gn5gn5
Connection closed by server!

➜  ws git:(main) ✗ dart lib/test2.dart
Received: Message 0
Connection closed by server!
Unhandled exception:
SocketException: Reading from a closed socket
#0      _RawSecureSocket.read (dart:io/secure_socket.dart:779:7)
dart-lang/io#1      _Socket._onData (dart:io-patch/socket_patch.dart:2448:28)
dart-lang/io#2      _RootZone.runUnaryGuarded (dart:async/zone.dart:1594:10)
dart-lang/io#3      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:365:11)
dart-lang/io#4      _BufferingStreamSubscription._add (dart:async/stream_impl.dart:297:7)
dart-lang/io#5      _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:784:19)
dart-lang/io#6      _StreamController._add (dart:async/stream_controller.dart:658:7)
dart-lang/io#7      _StreamController.add (dart:async/stream_controller.dart:606:5)
dart-lang/io#8      _RawSecureSocket._sendReadEvent (dart:io/secure_socket.dart:1116:19)
dart-lang/io#9      Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:18:15)
dart-lang/io#10     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398:19)
dart-lang/io#11     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)
dart-lang/io#12     _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)

➜  ws git:(main) ✗ dart lib/test2.dart
Received: Message 1
Received: .\sm.\sm.
Received: G嚕G嚕G
Connection closed by server!

Test in Postman
https://github.com/dart-lang/io/assets/43540889/236c4804-d3be-43ee-9894-567a5fdd40d4

/cc @brianquinlan

I think this is a bug in the server implementation of WebSocket protocol which is used by wss://mob-backdev.dentro.ru:444 backend. Do you know what kind of library that uses?
I managed to narrow it down to the following intrinsic behavior of Dart's WebSocket: when forming a WebSocket frames we don't send header and payload "atomically", instead we write them out separately and whatever buffering happens in the bottom layers might merge things together or not.
I think whatever
If I replace the following lines of code https://github.com/dart-lang/sdk/blob/698bf0846b7ebf3f399db0a1ff2e10ca5460eaa3/sdk/lib/_http/websocket_impl.dart#L838 with
      Uint8List result = Uint8List(header.length + data.length);
      result.setRange(0, headerSize, header);
      result.setRange(headerSize, headerSize + data.length, data);
      return [result];

Then server starts behaving correctly.
I actually think the server might be reading out of bounds from input buffers when it receives "split" frames (e.g. it expects that if WebSocket frame header says it has 80 bytes then it actually tries to read 80 bytes from the buffer that does not have enough data). So there might even be a vulnerability on the server side.

Dear @mraleph,
Thank you for your detailed analysis of the WebSocket behavior in Dart and your observations regarding our server implementation. We appreciate your effort in narrowing down the issue and proposing potential solutions.
Our server is written probably in pure C++. I asked some piece of code from backend. Here I provided them below.
wsServer.hpp
wsServer.cpp

@vfiruz97 Thanks. Yeah, the bug in the server is exactly what I would have expected: here the code assumes that recv would have returned the whole frame, but there is nothing that guarantees this.
I would recommend to use some C++ WebSocket library rather than hand-coding this stuff.


[interop] NFC, bump up the experimental version in the JSON file

@swift-ci please test and merge

@swift-ci please smoke test macOS


upgrade required zend framework modules

Thanks for the updates, James! On last request, let's go ahead and removing that unused use statement that you found referencing Zend\Db.

I forgot to check that in, whoops

Looks good! Once merged you can create a v2.0.0 tag.


Bower package repo reports 404 not found

bower install angular-flowchart
bower angular-flowchart#*   not-cached git://github.com/tobiasoberrauch/angular-flowchart.git#*
bower angular-flowchart#*      resolve git://github.com/tobiasoberrauch/angular-flowchart.git#*
bower angular-flowchart#*      ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/tobiasoberrauch/angular-flowchart.git", exit code of #128 fatal: remote error:    Repository not found.

This isn't available on bower. It's not a general purpose UI control. It's just an example. Please clone or download it and modify it as you wish.


crypto_aead_xchacha20poly1305_ietf false nonce length

I tried to run the ChaCha2020-Poly1305 IETF encryption/decryption but it failed with 3rd party data.
According to https://tools.ietf.org/html/rfc7539 the nonce length for the IETF-version of the ChaCha2020-Poly1305 algorithm is 96 bit = 12 byte * 8.
Your implementation limits the nonce to the length of 64 bit = 8 byte * 8 - see here in encrypt:
File: https://github.com/tabrath/libsodium-core/blob/master/src/Sodium.Core/SecretAeadChaCha20Poly1305IETF.cs
private const int NPUBBYTES = 8;
<param name="nonce">The 8 byte nonce.</param>
//validate the length of the nonce
            if (nonce == null || nonce.Length != NPUBBYTES)
                throw new NonceOutOfRangeException("nonce", (nonce == null) ? 0 : nonce.Length,
                  string.Format("nonce must be {0} bytes in length.", NPUBBYTES));

Are you being able to fix it to 12 ?
private const int NPUBBYTES = 12
As I'm working on a cross-platform encryption I need to get the IETF-"standard" nonce-length of 12.
Thanks and kind regards
Michael

I recommend forking the library and fixing that since this library probably isn't being maintained anymore. I'm working on a fork, but I haven't tested anything yet. There are several mistakes like this in libsodium-core.

Unfortunately I am not able to fork and maintain the library because I'm just "consuming" existing libraries for my project (I'm working "only" with a C# online compiler. In the meantime I found another library that handles the nonce as it should be, thanks for your information.

Sorry, I didn't mean becoming the maintainer, just using your own fork. That's good to hear. I wasn't aware there was another library that had the IETF version. Almost all of the .NET bindings aren't maintained. The ones that are maintained aren't complete.

At the moment I can't fork, change some chars and then "new compile" the library as I don't use a IDE like Visual Studio doing that part of the job - my only chance is to take a library and append it within my Online-compiler.
The NSec-lib does the IETF-encryption with ChaCha20-Poly1305 and the result is compatible to Java, PHP, Python, NodeJs/Crypto and Javascript+Nacl.js:
https://www.nuget.org/packages/NSec.Cryptography version 20.2.0
documentation: https://nsec.rocks/
https://github.com/ektrah/nsec


Deliver a reference implementation of function-level similarity

Parent objective:  #2
Progress: 0%

[ ] [P0] XXX Need proper key results for the R&D
[ ] [P0] Update the Code Annotation tool for function-level support #57
[ ] [P0] Annotate the dataset of XXX pairs of functions

@vmarkovtsev please set proper key results for this particular objective.

@vmarkovtsev would be great to still update the key results here.

The hyperparameter optimization was run at the very end of the Q2. Considering this as done.


Resetting stub settings between tests

Hi,
I would like to reset the stub settings between test methods, so that I can start the server once (per test class) and run multiple tests independantly. This will help us cut down the time taken by our test suites. Is this supported in some way?
I was thinking of something like ActualHttpServer.reset().
   @BeforeClass
    public void beforeAll() {
        server = httpserver(9999);
        runner = runner(server);
        runner.start();
    }

    @BeforeMethod
    public void beforeEach() {
       server.reset();
    }

I noticed that ActualHttpServer class has settings field, to which new settings can be added; but existing ones cannot be deleted.
Thx

I have a large test suite with ParameterizedRunner, then I hacked the code.
    @BeforeClass
    public static void setUpBeforeClass() throws Exception {
        server = (ActualHttpServer) httpserver(12306);
        runner = Runner.runner(server);
        Field f = ActualHttpServer.class.getDeclaredField("settings");
        f.setAccessible(true);
        settings = (List) f.get(server);
        runner.start();
    }

    @AfterClass
    public static void tearDownAfterClass() {
        runner.stop();
    }

    @Before
    public void clearSettings() {
        settings.clear();
    }

    @Test
    public void MiddleServerShouldBeOK() throws Exception {
        settings.clear();
        server.request(new XmlRequestMatcher(data.getReqXml())).response(data.getRespXml());
        ...
    }


Describe the feature or problem you’d like to solve

Describe the feature or problem you’d like to solve
In Github Action
$ gh pr edit --add-reviewer [login]
error fetching organization teams: Resource not accessible by integration

The Github Action TOKEN does not provide this permission
Don't acquire organizational teams if it's not necessary
Proposed solution
Better integration with Github Actions
Additional context
Originally posted by @wzshiming in https://github.com/cli/cli/issues/4844


Arrow-keys camera-flight sudden turn-around

When flying forward with the up-arrow-key through the origin or focal-point or whatever, the camera suddenly turns around and you continue flying backward.
In this video I am holding the UP-Arrow all the time (additionally CTRL which doesn't change the general-behavior... it's just slower)
https://github.com/user-attachments/assets/f286e2a8-1ee7-4d93-82e2-5f5b89ad2834

Hilarious! We left a surprise singularity at the center of the world!

Lets hope this singularity can record all data of all time :)


add library

add Matrix Color Sensor / Matrix Motion Sensor / Matrix Ultrasonic Sensor / Matrix Controller / Matrix Motor Extension / Matrix Servo Extension

@DCisHurt looks like this repo has now disappeared:
https://github.com/Matrix-Robotics/MatrixUltrasonicSensor
Do you have any background about why?


Create 802.15.4.md

Setup on 802.15.4

fix spelling mistakes
you have code for client server that link out to python scripts please include the scripts or remove from your explination

updated! assuming I have all the spelling corrections

closed per request


some ideas...

Thanks for taking the time to open a pull request - unfortunately this tool has been unmaintained for some time and thus we've made the decision to officially deprecate it.


Improve the "device is not supported message"

If the user is using Desktop Chrome, we should mention that they should check their settings for "Hardware acceleration". See #12 for an example of where this would have helped.

@dsmilkov Hi, I would like to take this one up and fix. I have the development environment setup and have signed the CLA. I believe we need to specifically check for WebGL being enabled after device support check and provide the solution shared here. Code where changes need to be made is here:
https://github.com/PAIR-code/deeplearnjs/blob/master/demos/homepage/assets/support.js#L58


[CP Staging] Fix/37253: Console log error when opening thread

Details

Web - Thread - Console error shows up when opening message in thread

Fixed Issues

$ https://github.com/Expensify/App/issues/37253
PROPOSAL: https://github.com/Expensify/App/issues/37253#issuecomment-1965792048
Tests

Go to staging.new.expensify.com
Go to any chat
Send a message
Right click on the message > Reply in thread
Verify that no error message

[x] Verify that no errors appear in the JS console

Offline tests

QA Steps

Go to staging.new.expensify.com
Go to any chat
Send a message
Right click on the message > Reply in thread
Verify that no error message

[x] Verify that no errors appear in the JS console

PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If the PR modifies the form input styles:

[x] I verified that all the inputs inside a form are aligned with each other.
[x] I added Design label so the design team can review the changes.

[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native

Android: mWeb Chrome

Screencast from 27-02-2024 16:02:31.webm

iOS: Native

iOS: mWeb Safari

Screencast from 27-02-2024 16:03:47.webm

MacOS: Chrome / Safari

Screencast from 27-02-2024 14:24:42.webm

MacOS: Desktop

Screencast from 27-02-2024 14:41:10.webm

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

🚀 Cherry-picked to staging by https://github.com/Beamanator in version: 1.4.44-1 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
cancelled 🔪

🕸 web 🕸
success ✅

@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes.

🚀 Cherry-picked to staging by https://github.com/Beamanator in version: 1.4.44-1 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
failure ❌

🕸 web 🕸
success ✅

@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes.

🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.44-13 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


Pre-trained models

Excellent work!
Thanks you for providing the code.
In the pre trained models section, the google drive links for:
MAET-COCO
and
MAET-EXDark (77.7)
Point to the same file.
could you please fix the links for the weights on google drive?

Thank you for the fast reply!
I did not manage to load the pre-trained model, with the following error code -
(tools\test.py - line 164  -   checkpoint = load_checkpoint(model, args.checkpoint, map_location='cpu')
Traceback (most recent call last):
File "/home/~/.conda/envs/MAET/lib/python3.7/site-packages/torch/serialization.py", line 585, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "/home/~/.conda/envs/MAET/lib/python3.7/site-packages/torch/serialization.py", line 755, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: A load persistent id instruction was encountered,
but no persistent_load function was specified.
For the model argument i was giving the "MAET-EXDark/data.pkl" path.
Any idea on how to solve the issue?
Thanks!


ProblemSolver is now a container of LockedJointPtr_t

Formerly, LockedJointPtr_t where handled by manipulation::ProblemSolver. This modification enables us
to move some interface methods from hpp-manipulation-corba to hpp-corbaserver.
This will give rise to pull requests in hpp-corbaserver, hpp-manipulation and hpp-manipulation-corba.

For logging purpose:
https://github.com/humanoid-path-planner/hpp-corbaserver/pull/34
https://github.com/humanoid-path-planner/hpp-manipulation/pull/22
https://github.com/humanoid-path-planner/hpp-manipulation-corba/pull/20


Removed Duplicate voidtools.everything v<IP_ADDRESS>5

closes #14381

[X] Have you signed the Contributor License Agreement?
[X] Have you checked that there aren't other open pull requests for the same manifest update/change?
[X] Does your manifest conform to the 1.0 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

@arjun-msft or @ChuckFerring please approve, my repo is going crazy because there is a duplicate under 2 different folder names
how did voidtools.everything get past validation when the folder is voidtools.Everything?

@OfficialEsco Thanks! We'll need to investigate how to do that, one way would be #13861.
For this one, you're removing x86 but we actually don't have an x86 entry in the Everything installers, so until we have that we shouldn't remove this even due to the casing issue.

funny story, #14381 removed the x86, i am also reverting that -_-

Ha! OK let's see how this goes.

Thaaaank yooou


Updated world border release

now actually uses world border instead of arbitrary number

so it grabs the number from WB? Nice, but as far as random convenient features go auto turning off/on pearl feeding would be much much nicer.
But thanks anyways, we will probably find this helpful.

What do you mean off and on pearl feeding?
On Monday, April 13, 2015, ttk2<EMAIL_ADDRESS>wrote:

so it grabs the number from WB? Nice, but as far as random convenient
features go auto turning off/on pearl feeding would be much much nicer.
But thanks anyways, we will probably find this helpful.
—
Reply to this email directly or view it on GitHub
https://github.com/Civcraft/PrisonPearl/pull/41#issuecomment-92510190.

if we restart outside of schedule pearl feeding might be run, this could
cause pearls to be incorrectly freed, so we have to manually turn it off
for unscheduled restarts, we often forget to turn it back on for days at a
time (because we are restarting the server several times and never sure
when we will be done until we are), or worse we forget to turn it off in
the first place and have to repearl people.
On Mon, Apr 13, 2015 at 4:46 PM biggestnerd<EMAIL_ADDRESS>wrote:

What do you mean off and on pearl feeding?
On Monday, April 13, 2015, ttk2<EMAIL_ADDRESS>wrote:

so it grabs the number from WB? Nice, but as far as random convenient
features go auto turning off/on pearl feeding would be much much nicer.
But thanks anyways, we will probably find this helpful.
—
Reply to this email directly or view it on GitHub
https://github.com/Civcraft/PrisonPearl/pull/41#issuecomment-92510190.

—
Reply to this email directly or view it on GitHub
https://github.com/Civcraft/PrisonPearl/pull/41#issuecomment-92510358.

Looks good.    @WildWeazel can you add a worldborder pom to jenkins or tell me how to do it.

@WildWeazel So i got a wget into the lib-setup.  How do I get it to build the maven repos?

@rourke750 can you merge this so i can send a pull for the auto disable thing?

@TealNerd You've already included the pull.

Oh yeah I didn't realize I did that lol

what would merging this do to jenkins?
On Tue, Apr 14, 2015 at 10:24 AM biggestnerd<EMAIL_ADDRESS>wrote:

Oh yeah I didn't realize I did that lol
—
Reply to this email directly or view it on GitHub
https://github.com/Civcraft/PrisonPearl/pull/41#issuecomment-92907368.

I don't know what's happening. Why are we building WB? It's a soft runtime dependency.

because its a dependency for PrisonPearl if we want to grab it.
On Tue, Apr 14, 2015 at 9:16 PM Travis Christian<EMAIL_ADDRESS>wrote:

I don't know what's happening. Why are we building WB? It's a soft runtime
dependency.
—
Reply to this email directly or view it on GitHub
https://github.com/Civcraft/PrisonPearl/pull/41#issuecomment-93154148.

Can you show me how to get it to do the thing where we can add a reference
to it so it builds?
On Apr 14, 2015 10:22 PM, "ttk2"<EMAIL_ADDRESS>wrote:

because its a dependency for PrisonPearl if we want to grab it.
On Tue, Apr 14, 2015 at 9:16 PM Travis Christian<EMAIL_ADDRESS>
wrote:

I don't know what's happening. Why are we building WB? It's a soft
runtime
dependency.
—
Reply to this email directly or view it on GitHub
https://github.com/Civcraft/PrisonPearl/pull/41#issuecomment-93154148.

—
Reply to this email directly or view it on GitHub
https://github.com/Civcraft/PrisonPearl/pull/41#issuecomment-93155548.

It's not a build dependency though, at least according to this pull. It just asks Bukkit if it's loaded at runtime.
If you do need to build with it, just follow the Maven install targets for the other jars in lib-setup. It doesn't need its own pom.

It doesn't have to be installed to run the plugin but it is a dependency to build

There are imports from wb in pp now because of that pull.  Jenkins will
fail at compiling with no reference.  I added the wb jar to lib set up but
I didn't see in the log do anything besides download it. Is that all it
needs to do?
On Apr 15, 2015 11:01 AM, "Travis Christian"<EMAIL_ADDRESS>wrote:

It's not a build dependency though, at least according to this pull. It
just asks Bukkit if it's loaded at runtime.
If you do need to build with it, just follow the Maven install targets for
the other jars in lib-setup. It doesn't need its own pom.
—
Reply to this email directly or view it on GitHub
https://github.com/Civcraft/PrisonPearl/pull/41#issuecomment-93435378.

It sounds like that's all it needs. Merge the pull and see if it builds?

You have to install it to the local repo. That's what the all Maven steps after the download script are doing.

If you look here: http://<IP_ADDRESS>:8080/job/lib-setup/28/console  it
downloads but it doesnt install.
On Wed, Apr 15, 2015 at 11:41 AM, Travis Christian<EMAIL_ADDRESS>
wrote:

You have to install it to the local repo. That's what the all Maven steps
after the download script are doing.
—
Reply to this email directly or view it on GitHub
https://github.com/Civcraft/PrisonPearl/pull/41#issuecomment-93454756.

@TealNerd Make those changes and ill merge

Make which changes?

Scroll up maybe.

Oh didn't see that, will do

actually @rourke750 it should be com.wimbli.WorldBorder because that's the main package. the main class is then com.wimbli.WorldBorder.WorldBorder

@TealNerd How I've set it up, you need to do what I said

Yeah alright
On Wednesday, April 15, 2015, rourke750<EMAIL_ADDRESS>wrote:

@TealNerd https://github.com/TealNerd How I've set it up, you need to
do what I said
—
Reply to this email directly or view it on GitHub
https://github.com/Civcraft/PrisonPearl/pull/41#issuecomment-93486766.

http://civcraft.co:8080/job/PrisonPearl-master/73/

on civtest.
On Wed, Apr 15, 2015 at 9:05 PM Travis Christian<EMAIL_ADDRESS>wrote:

http://civcraft.co:8080/job/PrisonPearl-master/73/
—
Reply to this email directly or view it on GitHub
https://github.com/Civcraft/PrisonPearl/pull/41#issuecomment-93617454.


chore: temporary branch for IOx update (12-08-2023 to 12-09-2023)

⚠ This draft PR is not intend to merge. This is a temporary branch for the purpose of updating DataFusion in InfluxData IOx.
The head of this branch is at:

Dec. 7https://github.com/apache/arrow-datafusion/commit/c0c9e8888878c5d7f2586cf605702430c94ea425 / https://github.com/apache/arrow-datafusion/pull/8455

Cherry-picked bug fixes:

Dec. 14 https://github.com/apache/arrow-datafusion/commit/5909866bba3e23e5f807972b84de526a4eb16c4c / https://github.com/apache/arrow-datafusion/pull/8520
Dec. 14 https://github.com/apache/arrow-datafusion/commit/974d49c907c5ddb250895efaef0952ed063f1831 / https://github.com/apache/arrow-datafusion/pull/8533
Dec. 26 https://github.com/apache/arrow-datafusion/commit/26a8000fe2343e6a187dcd6e4e8fc037d55e213f / https://github.com/apache/arrow-datafusion/pull/8629
Jan. 8 https://github.com/apache/arrow-datafusion/commit/ff27d9073421d527439e6e338f31fb568227bbb2 / https://github.com/apache/arrow-datafusion/pull/8740

Merged commits from the main branch:

DataFusion Commits between Dec. 8 to Dec. 9 https://github.com/apache/arrow-datafusion/commits/main/?since=2023-12-08&until=2023-12-09

Closing this as the update is done


Update choose-domain-to-create-groups.md

Managedfilter option is only available in new-emailaddresspolicy
made changes accordingly
Fixes#https://github.com/MicrosoftDocs/microsoft-365-docs/issues/10964

@JohanFreelancer9 Please copy review


Pass options with rootUri to createMonacoServices

createMonacoServices should accept options as the second optional argument to pass rootUri to the workspace service now and additional options in the future
https://github.com/TypeFox/monaco-languageclient/blob/b901301fe10c7a51e3b6faa35863bb69c93fcd11/src/services.ts#L12

Fixed with #31, thanks @cdietrich


DefaultOutputOrder not working

I installed a zebra GC420t to print labels, each label has default side.
I need to set the print side of the labels.
I tried:
*DefaultOutputOrder: Reverse
in .ppd, but didn't work.
(if I change darkness in ppd, it works fine)
I'm printing by mono in raspibian.
I need help please

Which version of cups-filters are you using? Please try the current version as there were done some fixes on the output order recently.
If the problem still occurs with the newest version, please attach the PPD file (add .txt to the end of the file name so that GitHub acceps the upload) and also provide a CUPS error_log in debug mode of a print job.

I am using v 2.2. But I got it with a work around. I set up the printer in Ubuntu, so in Ubuntu there is an option in the GUI that allows you to change the paper order. Then I copied Ubuntu's .ppd to raspibian and it worked. It wasn't the best way, but it worked

This is probably a problem in the Zebra printer driver which is part of CUPS. You should report a bug at CUPS.


Vernam cipher implementation in C

🚀 Feature
Through this code, I will be implementing Vernam cipher in the C language. It is a symmetric key cryptographic algorithm in which the size of the plain-text and the key is the same.
Have you read the Contributing Guidelines on Pull Requests?
Yes
Motivation
Vernam cipher also known as a one-time pad follows the principle of perfect secrecy. I would like to implement this in the C language.
Pitch
Please assign this to me under GSSOC'21.

@bhav09 @gat786 @iamrajiv @Apoorve73 I would like to work on this issue...please assign it to me.

@bhav09 When are you going to assign?


on [https://howto.p2pu.org/modules/tutorial/setup/]

In the p2pu tutorial session;
Who is the course for & what will they learn?
Will they be building something during the course.  To update the info on the front page, go to the file:
https://github.com/ebonsi/course-in-a-box/blob/gh-pages/index.markdown
It is leading to:
404: Page not found
I tried to change the url following the previous url semantics but that did not help either.
https://github.com/ebonsi/course-in-a-box/edit/gh-pages/index.markdown
Could anyone that is following this development chime on this issue,
Thanks!

This issues has been fixed somehow!


update loop in ger

Code that wasn't included in #9

Why the inversion of logic?
do while?

Yeah while this does remove some duplication I'm not convinced it's actually clearer

Updated.

Any chance for new release?

Because of this?

True, it doesn't change result of function.
(but here already 7 commits from last release, but I'm ok if new release doesn't happen)


feat: Movement memory when changing camera space

Feature suggested by @Dedado3000 and @MacXxs when testing the game

Old frustum space is saved
The movement directions remains the same even when entering a new sample point
The movement is adapted to the new camera space when the keys pressed change

Thanks for this, really usefull


hey, it's me again!

you should use a python venv to install your requirements for the script and then do a pip freeze > requirements.txt and upload that aswell. Also, in your readme at the bottom, you have pyinstaller -F -w simple-dcwebhook-keylogger.py although the script you provide is called main.py. You should rename it :)

Added a PR here: #4

Pr merged :)


api of version 0.0.7 is not the same as the source code from github

Hello, I found your plugin in pub so I want to have a try. But I can not run my code with issue #3 . To find what is going wrong, I cloned source code from github and run example, it works. So I compared code from pub with the one from github, I found there is some difference between them. For example, class AppWindows is not exposed in pub but exposed in github. The first parameter "title" of member function "initSystemTray" is normal in pub but named in github.
I think issue #3 might be solved but you have not updated the code, would you please have a look?

try v0.0.8