Keyframes infinite animation doesn't work well with rerendering

I wanted to make an infinite animation that keeps going forever. The example uses Keyframes and set reset to true.
However, it always resets when the component gets re-rendered.
See the example below:
https://codesandbox.io/s/8lk3l18mo2
The animation looks broken because I have a setState called every 100 milliseconds. If you remove the setInterval inside the componentDidMount function, the animation went well.
You can't prevent the parent component from getting updated by state/props. Is there any other way to do infinite animation?

That's what reset does though, it resets. The interval now causes it to reset more often. One way would be to remove reset and animate to: https://codesandbox.io/s/94173yryzr

Thanks for the reply.
Basically using math to create the infinite loop. I guess for animations of which the beginning and the ending do not continue, we have to reset the variable in the Keyframes.Spring.
To be honest, I think the reset option is a bit dangerous here, as it introduces interruption to animation from the update of the parent component.
Thanks.

It's an escape hatch and due to the way it works it can be risky b/c if anything re-renders the component outwards it resets. It can be useful in situations where you want it to reset conditionally, but it's otherwise seldomly used.


introduce low-cost low-power IOT board

Is this request related to a missing driver support for a particular hardware platform, SoC or board? Please describe.
Describe in details the hardware support being requested and why this support benefits Zephyr.
I have scoured the board supported list and couldn't find any viable hobbyist level affordable (<$10) IOT board... The ESP chips are infamous for their poor performance on power efficiency (probably due to focusing on WIFI). The BL702 chips looked promising; but I experienced poor SDK maintenance and couldn't even debug on chip! Feather boards look great but clock in at >$40!
This made me look into this minimalist breakout board for the nRF52833 module sold on AliExpress outlet for $6.
I'm further intending to restock these to ship from China at reduced rate (sold via this portal) to bring the total cost down to less than $10.
Thus enable tinkerers/hobbyists to access a cheap low-power solution to deploy into their diy IOT/smart-home projects. I believe they are all the rage nowadays! And hope the community will pick-up interest. It's all open-sourced and transparent linked to original source; anyone can improve upon if they wish...
If this is a new board or SoC, please state whether you are willing to maintain the Zephyr support for it if it is included in the main tree
I'm a beginner in Zephyr; but ultimately plan to add BSP for this board. Hopefully this will be acceptable by upstream Zephyr?
Additional context
Add any other context or graphics (drag-and-drop an image) about the hardware here.

there is one issue regarding that breakout board. jlcpcb only does oneside assembly and the module is underneath so the user will have to hand solder... but there's two rows of smt pads (ie. under the pcb) making it hard to handsolder...
so need to bring the module all to one side to be factory soldered...
will update here once done!


Fix unit tests calling jobq.delete()

Now JobQ returns HTTP status 400 if client tries to delete non-finished jobs.

Yeah, that's expected

:+1: does the library report the reason of 400 to the user?

no, just a requests.exceptions.HTTPError is raised with a 400 Bad Request-like message without specific reason.

Ok, I have created #68 to address the problem of unhelpful 400 Bad Request errors, this PR looks good without it.


Latest KVS repo fixes openssl issue

Issue https://github.com/aws-samples/amazon-kinesis-video-streams-demos/issues/241

Factory Details:
  Rank                     primary + 10 (266)
  Long-name                KVS Plugin
  Klass                    Sink/Video/Network
  Description              GStreamer AWS KVS plugin
  Author                   AWS KVS<EMAIL_ADDRESS>
Plugin Details:
  Name                     kvsplugin
  Description              GStreamer AWS KVS plugin
  Filename                 /home/saurav/volt_ws/amazon-kinesis-video-streams-demos/gst/gst-kvs-plugin/build/libgstkvsplugin.so
  Version                  1.0
  License                  Proprietary
  Source module            kvspluginpackage
  Binary package           GStreamer
  Origin URL               http://gstreamer.net/

GObject
 +----GInitiallyUnowned
       +----GstObject
             +----GstElement
                   +----GstKvsPlugin

Pad Templates:
  SINK template: 'video_%u'
    Availability: On request
    Capabilities:
      video/x-h264
          stream-format: avc
              alignment: au
                  width: [ 16,<PHONE_NUMBER> ]
                 height: [ 16,<PHONE_NUMBER> ]
      video/x-h265
              alignment: au
                  width: [ 16,<PHONE_NUMBER> ]
                 height: [ 16,<PHONE_NUMBER> ]

  SINK template: 'audio_%u'
    Availability: On request
    Capabilities:
      audio/mpeg
            mpegversion: { (int)2, (int)4 }
          stream-format: raw
               channels: [ 1,<PHONE_NUMBER> ]
                   rate: [ 1,<PHONE_NUMBER> ]
      audio/x-alaw
               channels: { (int)1, (int)2 }
                   rate: [ 8000, 192000 ]
      audio/x-mulaw
               channels: { (int)1, (int)2 }
                   rate: [ 8000, 192000 ]
      audio/x-opus

Element has no clocking capabilities.
Element has no URI handling capabilities.

Pads:
  none

Element Properties:
  absolute-fragment-times: Use absolute fragment time
                        flags: readable, writable
                        Boolean. Default: true
  access-key          : AWS Access Key
                        flags: readable, writable
                        String. Default: "access_key"
  adapt-cpd-nals      : Adapt CPD NALs
                        flags: readable, writable
                        Boolean. Default: false
  adapt-frame-nals    : Adapt Frame NALs
                        flags: readable, writable
                        Boolean. Default: false
  avg-bandwidth-bps   : Average bandwidth bps
                        flags: readable, writable
                        Unsigned Integer. Range: 0 -<PHONE_NUMBER> Default: 4194304
  aws-region          : AWS Region
                        flags: readable, writable
                        String. Default: "us-west-2"
  buffer-duration     : Buffer duration. Unit: seconds
                        flags: readable, writable
                        Unsigned Integer. Range: 0 -<PHONE_NUMBER> Default: 120
  channel-name        : Name of the signaling channel
                        flags: readable, writable
                        String. Default: "DEFAULT_CHANNEL"
  codec-id            : Codec ID
                        flags: readable, writable
                        String. Default: "V_MPEG4/ISO/AVC"
  connect-webrtc      : Whether to connect to WebRTC signaling channel
                        flags: readable, writable
                        Boolean. Default: true
  connection-staleness: Connection staleness. Unit: seconds
                        flags: readable, writable
                        Unsigned Integer. Range: 0 -<PHONE_NUMBER> Default:<PHONE_NUMBER>
  content-type        : content type
                        flags: readable, writable
                        String. Default: null
  credential-path     : Credential File Path
                        flags: readable, writable
                        String. Default: ".kvs/credential"
  disable-buffer-clipping: Set to true only if your src/mux elements produce GST_CLOCK_TIME_NONE for segment start times.  It is non-standard behavior to set this to true, only use if there are known issues with your src/mux segment start/stop times.
                        flags: readable, writable
                        Boolean. Default: false
  enable-streaming    : Whether to enable streaming frames to KVS
                        flags: readable, writable
                        Boolean. Default: true
  file-start-time     : Epoch time that the file starts in kinesis video stream. By default, current time is used. Unit: Seconds
                        flags: readable, writable
                        Unsigned Integer64. Range: 0 -<PHONE_NUMBER>3709551615 Default:<PHONE_NUMBER>
  fragment-acks       : Do fragment acks
                        flags: readable, writable
                        Boolean. Default: true
  fragment-duration   : Fragment Duration. Unit: miliseconds
                        flags: readable, writable
                        Unsigned Integer. Range: 0 -<PHONE_NUMBER> Default: 2000
  frame-timecodes     : Do frame timecodes
                        flags: readable, writable
                        Boolean. Default: true
  framerate           : Framerate
                        flags: readable, writable
                        Unsigned Integer. Range: 0 -<PHONE_NUMBER> Default: 25
  iot-certificate     : Use aws iot certificate to obtain credentials
                        flags: readable, writable
                        Boxed pointer of type "GstStructure"
  key-frame-fragmentation: If true, generate new fragment on each keyframe, otherwise generate new fragment on first keyframe after fragment-duration has passed.
                        flags: readable, writable
                        Boolean. Default: true
  log-level           : Logging Verbosity Level
                        flags: readable, writable
                        Unsigned Integer. Range: 1 - 8 Default: 4
  log-path            : Specifying the directory where the file-based logger will store the files.
                        flags: readable, writable
                        String. Default: ""
  max-latency         : Max Latency. Unit: seconds
                        flags: readable, writable
                        Unsigned Integer. Range: 0 -<PHONE_NUMBER> Default:<PHONE_NUMBER>
  name                : The name of the object
                        flags: readable, writable
                        String. Default: "kvsplugin0"
  parent              : The parent of the object
                        flags: readable, writable
                        Object of type "GstObject"
  recalculate-metrics : Do recalculate metrics
                        flags: readable, writable
                        Boolean. Default: true
  replay-duration     : Replay duration. Unit: seconds
                        flags: readable, writable
                        Unsigned Integer. Range: 0 -<PHONE_NUMBER> Default:<PHONE_NUMBER>
  restart-on-error    : Do restart on error
                        flags: readable, writable
                        Boolean. Default: true
  retention-period    : Length of time stream is preserved. Unit: hours
                        flags: readable, writable
                        Unsigned Integer. Range: 0 -<PHONE_NUMBER> Default: 2
  rotation-period     : Rotation Period. Unit: seconds
                        flags: readable, writable
                        Unsigned Integer. Range: 0 -<PHONE_NUMBER> Default: 3600
  secret-key          : AWS Secret Key
                        flags: readable, writable
                        String. Default: "secret_key"
  storage-size        : Storage Size. Unit: MB
                        flags: readable, writable
                        Unsigned Integer. Range: 0 -<PHONE_NUMBER> Default: 128
  stream-create-timeout: Stream create timeout. Unit: seconds
                        flags: readable, writable
                        Unsigned Integer. Range: 0 -<PHONE_NUMBER> Default: 0
  stream-name         : Name of the destination stream
                        flags: readable, writable
                        String. Default: "DEFAULT_STREAM"
  stream-stop-timeout : Stream stop timeout. Unit: seconds
                        flags: readable, writable
                        Unsigned Integer. Range: 0 -<PHONE_NUMBER> Default: 0
  stream-tags         : key-value pair that you can define and assign to each stream
                        flags: readable, writable
                        Boxed pointer of type "GstStructure"
  streaming-type      : KVS Producer streaming type
                        flags: readable, writable
                        Enum "STREAMING_TYPE" Default: 0, "realtime"
                           (0): realtime         - streaming type realtime
                           (1): near-realtime    - streaming type near realtime
                           (2): offline          - streaming type offline
  timecode-scale      : Timecode Scale. Unit: milliseconds
                        flags: readable, writable
                        Unsigned Integer. Range: 0 -<PHONE_NUMBER> Default: 1
  trickle-ice         : Whether to use tricle ICE mode
                        flags: readable, writable
                        Boolean. Default: true
  webrtc-connection-mode: WebRTC connection mode - Default, Turn only, P2P only
                        flags: readable, writable
                        Enum "WEBRTC_CONNECTION_MODE" Default: 0, "default"
                           (0): default          - Default connection mode allowing both P2P and TURN
                           (1): turn             - TURN only connection mode
                           (2): p2p              - P2P only connection mode

Is this in process of merging to master?

Would love to see this in master also!
Marry Christmas to you @disa6302 @sauravkumar-volt

Are you able to build this?
I am able to build libgstkvsplugin.so but get undefined symbol: signalingClientFetchSync upon gst-inspect-1.0 kvsplugin
Tried building this PR unsuccessfully.
Manually updating the CMakeLists FetchContent_Declare to:
GIT_REPOSITORY https://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-c
#GIT_TAG v1.7.3
GIT_TAG ced19d02ed6fbc1e59dd63bc19d847c5ec5ebf47

GIT_REPOSITORY https://github.com/awslabs/amazon-kinesis-video-streams-producer-c
#GIT_TAG v1.4.0
GIT_TAG 1204f14081caf300b4e9bbb93e0a8824cb67cd22

Breaks the build:
[ 46%] Linking C shared library libkvsWebrtcSignalingClient.so
/usr/bin/ld: cannot find -lkvsCommonLws
collect2: error: ld returned 1 exit status
make[2]: *** [_deps/webrtc-build/CMakeFiles/kvsWebrtcSignalingClient.dir/build.make:181: _deps/webrtc-build/libkvsWebrtcSignalingClient.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:229: _deps/webrtc-build/CMakeFiles/kvsWebrtcSignalingClient.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

not sure how to trigger the build for this missing lib;
or if the error is on something else.
My goal is to build kvsplugin to stream to kvs webrtc directly from a gtreamer pipeline
https://github.com/aws-samples/amazon-kinesis-video-streams-demos/tree/master/gst/gst-kvs-plugin

Closing with 280


<IP_ADDRESS>.0

This PR updates the partner version to <IP_ADDRESS>.0 for release.

Outdated/obsolete.  Closing.


with.md: Add Fibonacci example

Add Fibonacci example for developers unfamiliar with CTEs, so they could see CTEs being used to solve a problem they're already familiar with.

Note that this was roughly inspired by the code from https://www.codeproject.com/Tips/811924/Fibonacci-sequence-using-SQL-Server-CTE , but needed to be rewritten to be compatible with duckdb

@moshekaplan Thanks, this looks great! I added the output to the PR and it's good to go.

@moshekaplan Thanks, this looks great! I added the output to the PR and it's good to go into main.

Good catch, sorry for that omission.


Errors output when testing

These errors are spit out to the console (and on travis) even though the tests pass. Do we know the cause of these?
.Debug: internal, implementation, error
    Error: Internal Server Error
    at process.nextTick (/home/travis/build/nearform/labs-authorization/test/routes/public/authorizationTest.js:20:19)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickDomainCallback (internal/process/next_tick.js:122:9)
.Debug: internal, implementation, error
    Error: Internal Server Error
    at process.nextTick (/home/travis/build/nearform/labs-authorization/test/routes/public/authorizationTest.js:43:19)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickDomainCallback (internal/process/next_tick.js:122:9)
..Debug: internal, implementation, error
    Error: Internal Server Error
    at Immediate.setImmediate (/home/travis/build/nearform/labs-authorization/test/routes/public/policiesTest.js:22:19)
    at runCallback (timers.js:649:20)
    at tryOnImmediate (timers.js:622:5)
    at processImmediate [as _immediateCallback] (timers.js:594:5)
.Debug: internal, implementation, error
    Error: Internal Server Error
    at process.nextTick (/home/travis/build/nearform/labs-authorization/test/routes/public/policiesTest.js:47:19)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickDomainCallback (internal/process/next_tick.js:122:9)
.Debug: internal, implementation, error
    Error: Internal Server Error
    at process.nextTick (/home/travis/build/nearform/labs-authorization/test/routes/public/teamsTest.js:21:19)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickDomainCallback (internal/process/next_tick.js:122:9)
.Debug: internal, implementation, error
    Error: Internal Server Error
    at process.nextTick (/home/travis/build/nearform/labs-authorization/test/routes/public/teamsTest.js:46:19)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickDomainCallback (internal/process/next_tick.js:122:9)
.Debug: internal, implementation, error
    Error: Internal Server Error
    at process.nextTick (/home/travis/build/nearform/labs-authorization/test/routes/public/teamsTest.js:80:19)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickDomainCallback (internal/process/next_tick.js:122:9)
.Debug: internal, implementation, error
    Error: Internal Server Error
    at process.nextTick (/home/travis/build/nearform/labs-authorization/test/routes/public/teamsTest.js:109:19)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickDomainCallback (internal/process/next_tick.js:122:9)
.Debug: internal, implementation, error
    Error: Internal Server Error
    at process.nextTick (/home/travis/build/nearform/labs-authorization/test/routes/public/usersTest.js:21:19)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickDomainCallback (internal/process/next_tick.js:122:9)
.Debug: internal, implementation, error
    Error: Internal Server Error
    at process.nextTick (/home/travis/build/nearform/labs-authorization/test/routes/public/usersTest.js:46:19)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickDomainCallback (internal/process/next_tick.js:122:9)
.Debug: internal, implementation, error
    Error: Internal Server Error
    at process.nextTick (/home/travis/build/nearform/labs-authorization/test/routes/public/usersTest.js:70:19)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickDomainCallback (internal/process/next_tick.js:122:9)
.Debug: internal, implementation, error
    Error: Internal Server Error
    at process.nextTick (/home/travis/build/nearform/labs-authorization/test/routes/public/usersTest.js:98:19)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickDomainCallback (internal/process/next_tick.js:122:9)
.Debug: internal, implementation, error
    Error: Internal Server Error
    at process.nextTick (/home/travis/build/nearform/labs-authorization/test/routes/public/usersTest.js:124:19)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickDomainCallback (internal/process/next_tick.js:122:9)

Yes, it's the "unit" tests on the api https://github.com/nearform/labs-authorization/blob/master/test/routes/public/teamsTest.js#L20

@p16 How would you feel about me squashing these errors? They make it looked like the build is borked. I can simply deref console.log and reref when the action is complete.

@mcdonnelldean ok, go ahead

Completed on #334


Animating bodies from current position to specific x, y coordinates

I already saw the manipulation code example.
But I need to move the body from a given current position to specific  x, y coordinates.
I'm aware of Matter.Body.setPosition(body, position) but this methods moves instantly the body to the coordinates.
Is there a way to achieve this?

If someone is wondering how to to achieve it:
Create a function that manages to calculate the distance from the current position to the desired one in a gradual way, based on this answer
function forceMove(body, endX, endY, pct) {
    // dx is the total distance to move in the X direction
    let dx = endX - body.position.x;

    // dy is the total distance to move in the Y direction
    let dy = endY - body.position.y;

    // use dx & dy to calculate where the current [x,y] is at a given pct
    var x = body.position.x + (dx * pct) / 100;
    var y = body.position.y + (dy * pct) / 100;
    console.log(body.angle);

    let j = 0;
    let startAngle = 0;

    if (pct === 90) {
        startAngle = body.angle;
    }
    if (pct > 90) {

        Body.setStatic(body, true);

        j = j + 1;
        let sign = Math.sign(startAngle);
        let amount = Math.abs(startAngle);
        let increment = amount / 10;
        let angle = (sign === 1) ? startAngle - (increment * j) : startAngle + (increment * j)
        Body.setAngle(body, angle);
    }

    Body.setPosition(body, {
        x: x,
        y: y
    });
}

then in a engine before update
Events.on(engine, "beforeUpdate", function (event) {
    if (move && pct < 101) {
        pct = pct + 1;
        forceMove(boxA, targetX, targetY, pct);
    }
});

Closed: found the solution

may I ask, what is move in
 if (move && pct < 101) {
        pct = pct + 1;
        forceMove(boxA, targetX, targetY, pct);
    }


common: implemented paint-order

In the svg_loader the paint-order attrib
is hanlded now. Can be reached also by api
'order' (get and set).
Supported for fill and stroke (not for markers).
@issue: https://github.com/thorvg/thorvg/issues/1340

In the renderer the 'above' is a property of a stroke, since we decided to implement it this way.
the the svg loader the 'paint-order' is a paint property since that how it is in the svg std.
I think it's ok, just highlighting it to you

Here, you could create two atomic patches:

A feature addition at common/engine.
An SVG enhancement through the new API.

Good programmers always create patches to get reviewed easier.

duplicated: https://github.com/thorvg/thorvg/pull/1371


Add a caveat about default_scope to the README?

I just spent way too long trying to figure out why closure_tree wasn't working for me; it turns out that I had declared
default_scope { order('id asc') }
in my model and it was causing trees to misbehave when they contained children whose IDs where less than that of their parent.  Perhaps my blunder can be documented to help others avoid similar headaches.

@mceachen would it be an idea to prefix the order calls used for closure_tree with reorder('') to clear any orders set by default? I ran into this problem when calling self_and_ancestors while having a default scope ordering on a custom attribute on my model.

I've come here from the README. But I don't really get the point: what exactly is the problem? I'm in the process of choosing a gem for creating trees, and I'd like to choose closure_tree, but first I'd like to know what the caveat is with this issue.
Thanks for explaining a bit deeper.

My experience with default_scope is that there are so many gotchas with
this misfeature that it's generally good advice to avoid it.
The issue with closure_tree is that the quite complicated query generation
in this gem can't incorporate arbitrary SQL from the default scope and
generate valid queries.

I suspect this is the problem I'm having too. I've got a default scope thanks to the paranoia gem, and even though none of the records I'm trying to add to a hierarchy it seems like the whole thing isn't working properly with the scope set 😢
I wonder if this could be made to work by having an option to has_closure_tree that would make it always use #unscoped.


Update default IPFS node address

Proposed changes
Update the default IPFS node address
Types of changes
What types of changes does your code introduce to agents-aea?
Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist
Put an x in the boxes that apply.

[ ] I have read the CONTRIBUTING doc
[ ] I am making a pull request against the develop branch (left side). Also you should start your branch off our develop.
[ ] Lint and unit tests pass locally with my changes and CI passes too
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have checked that code coverage does not decrease.
[ ] I have added necessary documentation (if appropriate)
[ ] Any dependent changes have been merged and published in downstream modules

Further comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

Codecov Report

Merging #212 (a03acae) into main (1e4d9c0) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #212   +/-   ##
=======================================
  Coverage   94.60%   94.60%
=======================================
  Files         311      311
  Lines       24992    24993    +1
=======================================
+ Hits        23644    23645    +1
  Misses       1348     1348

Flag
Coverage Δ

unittests
94.60% <100.00%> (+<0.01%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

aea/cli/init.py
93.42% <100.00%> (ø)

aea/cli/registry/settings.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


sync from other browsers

Description
sync from firefox, chromium browsers.
Who's implementing?

[ ] I'm willing to implement this feature myself

The problem
When I switched from Firefox to ungoogled chromium there was no sync.
Possible solutions
Do what other browsers do for Firefox and for chromium based browsers copy the User Data directory which is in %appdata%/../Local/Google/Chrome/User Data/ on Windows for Google Chrome
Alternatives
No response
Additional context
No response

Duplicate of #667?

Duplicate of #667?

yes


Bug fix missing from 1.0.2 Release

In the release notes for 1.0.2 this is mentioned.

Handle negative arc sizing in chart segments

But the fix for this is missing in the actual release. Which was committed here https://github.com/nnnick/Chart.js/commit/1df2b37bc5b3f66ed38d53d4a12b96f1d3a4fb9a
Could we possibly get a 1.0.3 release with this fix included?

Released a 1.1 version today.


Add legendas.tv bigger PT-BR Subtitle Provider

Hi @Diaoul, you told that would be better develop add providers when release subliminal 0.7, and we are on 7.0.4 now :)
Legendas.tv was totally remodeled a few months ago and does not require authentication anymore. In fact, many things changed and it's now much simpler to make the provider since the URLs are straight links and not a mess of javascript and redirections like before. Bigger problem told by @Diaoul before, was fact that would be necessary user/pass to download subtitles from legendas.tv provider, now does not need anymore.. Can download any subtitle without need user and pass.. Hope develop it..
i think that could help: https://github.com/MestreLion/legendastv
Thank you for great work !

I have started some experimental work on this. Subliminal architecture is awesome, I must say.
Legendas.tv has a really poor API/interface. The data is not exposed in a structured way and it makes a little bit harder than other providers. Other providers are much easier since they either use hashes or known ids (imdb_id or tvdb_id). Legendas.tv does not even distinguish between movies and shows and they have a lot of duplicated entries (duplicated movie entries, duplicated shows entries).
One thing that I noticed: Subliminal scoring system does not have a field related to the "subtitle quality". Is this by design?
If I have several subtitles that matches exactly my release, then we could use some information from the provider (number of downloads, user rating, or any other field) to choose the one with best quality.
Just to give an example:
Subtitle 1:
Show A S01E01 720p HDTV DIMENSION.srt
Rate: 3 stars, 5 downloads

Subtitle 2:
Show A S01E01 720p HDTV DIMENSION.srt
Rate: 9 stars, 230192 downloads

Their score will be the same, but I would rather prefer to get Subtitle 2

I will add this feature for 1.2 and update the providers accordingly.

Hi, your work to add legendas.tv provider is awesome!!!
It is full developed (seems To be) ?
It already was added and is available to any one ? I think not because o cant see legendastv in providers files and also actual version is 1.0.1, You said that it would be added in 1.2 version, if Yes, do You know when You will release it ?
Thanks for Great work !

Fixed with 9785bc9746c24c8c28c4ed20812f103a070ca357


Develop

SUMMARY

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

Mergin dynamic branch into Develop

Temporarly quit trying to make it dynamic (to mutch trouble)
Fist create the FULL control panel with 3 Segments


Scanpy 1.5 compatibility

AnnData >= 0.7 stores (n_obs x n_obs) matrices in adata.obsp. We should adapt our graph data storage accordingly, while maintaining backwards compatibility. This adds some first utility functions.

Is this more or less done?

Closing, will be handled in #226


Email verification takes you to the "we've sent you an email" page instead of the "success" page

Doesn't seem to be the behaviour that everyone sees.

I didn't see this on my last account creation so I'm going to close it for now. We'll open it again if it comes up.


swagger: remove 'format: hex' from tenant IDs

Problem
TenantId is changing to TenantShardId in many APIs.  The swagger had format: hex attributes on some of these IDs.  That isn't formally defined anywhere, but a reasonable person might think it means "hex digits only", which will no longer be the case once we start using shard-aware IDs (they're like <tenant_id>-0001).
Summary of changes

Remove these format attributes from all tenant_id fields in the swagger definition

Checklist before requesting a review

[ ] I have performed a self-review of my code.
[ ] If it is a core feature, I have added thorough tests.
[ ] Do we need to implement analytics? if so did you add the relevant metrics to the dashboard?
[ ] If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section.

Checklist before merging

[ ] Do not forget to reformat commit message to not include the above checklist

I think in the long run, it might sense to rename these fields to tenant_shard_id to stay consistent with internal naming, but that's a long term project and probably involves a v2 API or such.


Update crate version to 0.2.153

Hey,
This version would contain the SOMAXCONN constant for the vita (added in https://github.com/rust-lang/libc/pull/3552), required to compile std

Thanks! But this is a duplicate of #3554 and I'm going to close in favor of that.


Activity event with timetstamp not having milli seconds results in com.fasterxml.jackson.databind.exc.InvalidFormatException

Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Version
4.14.2
Describe the bug
We some time receive activity event with timetstamp not having milli seconds like 2022-09-23T09:19:29Z which results in the following error
Resolved [org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize value of type `java.time.OffsetDateTime` from String "2022-09-23T09:19:29Z": Failed to deserialize java.time.OffsetDateTime: (java.time.format.DateTimeParseException) Text '2022-09-23T09:19:29Z' could not be parsed at index 19; nested exception is com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type `java.time.OffsetDateTime` from String "2022-09-23T09:19:29Z": Failed to deserialize java.time.OffsetDateTime: (java.time.format.DateTimeParseException) Text '2022-09-23T09:19:29Z' could not be parsed at index 19 at [Source: (PushbackInputStream); line: 1, column: 57] (through reference chain: com.microsoft.bot.schema.Activity["timestamp"])]

To Reproduce
Steps to reproduce the behaviour:
Run the following unit test to reproduce the error
import static org.junit.jupiter.api.Assertions.assertNotNull;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.datatype.jsr310.JSR310Module;
import com.microsoft.bot.schema.Activity;
import java.io.IOException;
import org.junit.jupiter.api.Test;

class ActivityTest {

  @Test
  void testActivityDeserialize() throws IOException {
    ObjectMapper objectMapper = new ObjectMapper();
    objectMapper.registerModule(new JSR310Module());
    String json =
        "{\"fromStreamingConnection\":false,\"teamsActivity\":false,\"type\":\"message\",\"timestamp\":\"2022-09-23T09:19:29Z\",\"historyDisclosed\":false}";
    assertNotNull(objectMapper.readValue(json, Activity.class));
  }
}

Expected behaviour
The Activity object should be deserialised without any error
Screenshots
NA
Additional context
NA

Changing the annotation on Activity timestamp field should help resolve the issue
@JsonProperty("timestamp")
@JsonInclude(Include.NON_EMPTY)
@JsonFormat(
  shape = Shape.STRING,
  pattern = "yyyy-MM-dd'T'HH:mm:ss[.n]XXX",
  timezone = "UTC"
)
private OffsetDateTime timestamp;

Please go ahead and submit a PR for your proposed fix, linking it to this issue. Thanks.


Test-DBATempDbConfig

The Test-DBATempDbConfig command checks if trace flag 1118 is set. But for SQL Server 2016 and onwards versions this trace flags is not longer required. But if you run the cmdlet it will show in the output, if the SQL server is 2016 or above, that you have te set the trace flag.
Is it possible for SQL Server 2016 and above the output will show that the trace flage is set correctly.
Below a example on SQL server 2019:
ComputerName   : SQL2019
InstanceName   : MSSQLSERVER
SqlInstance    : SQL2019
Rule           : TF 1118 Enabled
Recommended    : True
CurrentSetting : False
IsBestPractice : False
Notes          : KB328551 describes how TF 1118 can benefit performance. SQL Server 2016 has this functionality enabled
by default.
The CurrentSetting and IsBestPractive should give the value True.

Whoever works on this, please see https://github.com/sqlcollaborative/dbatools/issues/6509 also.

Was fixed with #7356.


action withText support

Items without icon are always displayed in the overflow menu.
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">
    <item
        android:id="@+id/action_heart"
        android:title="heart"
        app:showAsAction="always|withText" />
</menu>

my list item view is configured correctly
listItemView.setMenuItemsRoom(2)

It would be cool when menu items without icon could be displayed as text only flat buttons.

Sounds like a nice improvement. Will have a little bit more time this month, and can think about it. BTW any PR is always welcome.

Items without icon are always displayed in the overflow menu.
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">
    <item
        android:id="@+id/action_heart"
        android:title="heart"
        app:showAsAction="always|withText" />
</menu>

my list item view is configured correctly
listItemView.setMenuItemsRoom(2)

It would be cool when menu items without icon could be displayed as text only flat buttons.


Range to verify it's a "SNAPSHOT" Version

Hi,
I have a Version like this:
semver.MustParse("2.0.5-SNAPSHOT+a9b5fb82")

Now I want to define a "range" that accepts any Version containing "SNAPSHOT" anywhere.
e.g.
range = semver.MustParseRange("???")

range(semver.MustParse("2.0.5-SNAPSHOT+a9b5fb82")) //  == true
range(semver.MustParser(2.0.5))  //  == false

Is there already something to reflect that case? Or is anything planned?

Probably nothing is "planned" because this repo has seen its last change ~4y ago.
As for limiting a range by pre-release identifier, see what vendir did: https://github.com/carvel-dev/vendir/blob/1ccbd2548aa3656996c3c5b070ae7cf8153abacd/pkg/vendir/cmd/sort_semver.go#L38


Stop automatically excluding non-existent packages directories

Pub no longer generates a packages directory (by default) and users should be deleting those directories and using .packages files instead. Automatically excluding these directories forces the analysis server to pattern match against a long list of exclusions for every file that might be analyzed.
For bonus points, you could offer to delete any existing packages directories (unless they contain non-sym-link directories) and, if there isn't already a .packages file, run pub to generate it. This would help users transition away from packages directories.

/cc @alexander-doroshko @jwren

@bwilkerson Dart plugin doesn't include numerous excluded packages folders in the analysis_setAnalysisRoots request, does it?

Yes, it does.
It is possible, however, that the behavior I've been seeing is an artifact of my having had these modules defined for a very long time and that they were not automatically cleaned up from changes made by earlier versions. So perhaps if users start with a fresh project they won't see this behavior.

If pubspec.yaml file is in its place then paths to the packages folders should not be sent to the server. Otherwise it is a bug, but I can't reproduce it.
I guess related log that you have in mind is something like this one. In that case, note that dev_compiler folder doesn't contain pubspec. So probably

pubspec has been there at some moment,
IDE auto-excluded dozens of corresponding packages folders but has not been sending these paths to server,
pubspec file has been removed but excluded  packages paths remained in IntelliJ's project model,
so IDE started to send these paths to the server as they are not associated with any pubspec anymore.

This case has to be addressed manually: open Project Structure dialog and remove unneeded excluded paths. If you have any other questionable case, let's discuss. So far I do not see what should be fixed at the IDE end.
P.S. At some moment we need to forget about those old packages folders and stop auto-excluding them. We do not want to do it now because otherwise 1% of users who still have these symlinks will have to wait while IntelliJ indexes the Universe multiple times. We are safe to make this change when:

Dart SDK drops support of --generate-symlinks flag (do not remember exact option name)
IntelliJ declares that the minimal supported Dart SDK is the one from the above item

This is tracked as WEB-25293

This has been fixed quite a while ago, feel free to close.


Add inline loading messages while image pull as well as command execution

Resolves #137

Codecov Report

Merging #147 into develop will increase coverage by 1.71%.
The diff coverage is 75%.

@@             Coverage Diff             @@
##           develop     #147      +/-   ##
===========================================
+ Coverage     63.2%   64.92%   +1.71%
===========================================
  Files            7        8       +1
  Lines          568      630      +62
===========================================
+ Hits           359      409      +50
- Misses         153      163      +10
- Partials        56       58       +2

Impacted Files
Coverage Δ

pkg/docker/docker.go
67.53% <75%> (+2.39%)
:arrow_up:

internal/settings/settings.go
100% <0%> (ø)

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 3ed75f0...25e7c1e. Read the comment docs.


Incorrectly accepts form-feed

prv_skip_blank has the following comment:
Skip all characters that are considered *blank* as per RFC4627
However, \f has never been considered a whitespace character in RFC4627.
Also applies to streaming mode.

I am not sure I understand where the problem is - you have test JSON that fails?

Sure. Your library will parse "{\f}" as an empty object, but it's not valid JSON. (Here the \f denotes the form-feed character, i.e. if you used that string literal in C or JS to make the test case, it should fail.)


Provider 1.3.0 Release

Description
Updated Readme, version, and Changelog

API change check
API changes are not detected in this pull request.


Consider adding optional port field to InteractiveBrowserCredential

Some users might want to use a specific port.

Fixed in #14052

Fixed in #14052


databroker_demo.ipynb missing imports

On running the databroker_demo.ipynb on https://try.nsls2.bnl.gov/user/f8D3gbaSucUU/tree/Talks I receive the following import error:
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-9a2f091a130c> in <module>()
     21 # databorker imports
     22 # Use a local sqlite + mongoquery based MDS to ease
---> 23 from portable_mds.sqlite.mds import MDS
     24 from databroker import Broker
     25

ModuleNotFoundError: No module named 'portable_mds'

Fixed by archiving deprecated notebooks. Current material does not use this deprecated library.
Thanks for the report @robmarkcole.


Update zcash_client_sqlite to fix potential note commitment tree corruption.

As part of this change, the zcashlc_get_nearest_rewind_height FFI method is removed. The return type of zcashlc_rewind_to_height has been changed to an i64 that represents the height to which the database was actually rewound, or -1 if the rewind was unsuccessful. Additionally, zcashlc_rewind_to_height now takes an output parameter that the Rust backend can use to set the minimum valid rewind height, if any.

Subsumed by #154


Add analytics to vue app

It would be nice to add analytics to the gui.
we can use this tracker: UA-146135810-2
here is a vue package that seems to allow richer integration: https://matteo-gabriele.gitbook.io/vue-gtag/#add-plugin-to-your-application
and here is the standard html method, which as a first pass could be put in the footer:
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-146135810-2"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'UA-146135810-2');
</script>

@waxlamp - we should add this. we need to be reporting where people are coming to dandi from. this should not be complicated.


would you please add as in /macros/materializations/test.sql

https://github.com/silentsokolov/dbt-clickhouse/blob/f1b1b4575c124ccfe46415be8cef699e430f5fca/dbt/include/clickhouse/macros/materializations/test.sql#L11
Sorry being picky. It'll be great if you add the as before dbt_internal_test.
One of our internal tools will review all SQL statements and show warning when the as is missing

thank you!


Is there any plan to welcome contribution for this project

It's wonderful using golang to implement the HE, it there any plan for discussion and chat like slack?
Take for example, I want to make a distributed computation engine like Spark, which using the lattigo as the Engine,
but I do not know how to begin make contribution to this project at first.

Hi, @libratiger
Thanks for your interest in the library; we are always happy to learn about new uses of Lattigo. The only communication channels that we have at the moment are GitHub issues and the contact email contact[at]listes.epfl.ch.
Take into account that Lattigo is a working prototype that we developed and extended to support our laboratory's research on HE and multiparty-HE, with limited resources. In this regard, the roadmap is still significantly impacted by internal research projects, and backward compatibility/API stability across versions is not something we can ensure yet.
I hope this helps!

Thanks! @ChristianMct what's the difference between the issue and email?
is there some discussion in the email group? if so, I would like to join into this.

We use issues to keep track of bugs and feature requests as well as questions of general interest. The email is a private alternative to issues. At this stage, I'm afraid we have no public channel of discussion about the development of the library.
For updates regarding the project, you can track the releases page and the CHANGELOG.md file which we keep in sync with all newly released changes and features.


Sync to release form Engine Hackathon

Defer to: https://github.com/UCSF-IGHS/openmrs-esm-ohri/pull/1450


allEvents and eventsByTag query implementation for Persistence Query

Currently only eventsByPersistenceIds is implemented. Need All Events and EventsByTag Queries as well.

This is covered by #77.

eventsByTag is included in upcoming cassandra-3x 0.6 version


New App Submission - Mask Network

App Logo (Required)

App Details (Required)
Type: Wallet and Dapp
Name: Mask Network
Description: The portal to the new, open internet.
Homepage Url: https://mask.io/
Chains supported: Ethereum, BSC, Polygon/Matic Network, Arbitrum, xDai
Versions supported: 2
App Url (Required - at least one)
Browser Url: https://mask.io/download-links
iOS Url: https://mask.io/download-links
Android Url: https://mask.io/download-links
Mac Url:
Windows Url:
Linux Url:
Mobile Linking (Optional)
Deep Link: mask:
Universal Link:
Desktop Linking (Optional)
Deep Link:
Universal Link:
Metadata (Optional)
Short Name: Mask
Primary Color:
Secondary Color:

Added to the cloud registry


Support threads(cluster) suspension/resume

Motivation
Some applications/scenarios require that the threads in a cluster run into the suspension state, or is to suspend all threads except the thread which is requesting the suspension. Normally it is named the Stop The World event, meaning that all application threads are stopped until the operation completes. These scenarios may include:

A thread is doing Garbage Collection and requests other threads to stop
A thread enters into Breakpoint and requests other others to stop
A standalone thread (not in the cluster) is to dump the snapshot (checkpoint) and request all threads in the cluster to stop

Current Status
Currently WAMR implements several APIs:
void wasm_cluster_suspend_all(WASMCluster *cluster);
void wasm_cluster_suspend_all_except_self(WASMCluster *cluster, WASMExecEnv *exec_env);
void wasm_cluster_suspend_thread(WASMExecEnv *exec_env);
void wasm_cluster_resume_thread(WASMExecEnv *exec_env);
void wasm_cluster_resume_all(WASMCluster *cluster);

but the implementation is simple and cannot meet the requirements: thread A can send the suspension request to thread B, but it doesn't wait until thread B actually stops, and thread B doesn't notify thread A when it stops.
Approach
Introduce new locks/conds in cluster and new fields in exec_env:
WASMCluster.thread_state_lock:
    The lock for thread_safe_cond, thread_resume_cond and the below fields of exec_env:
         suspend_flags, suspend_count, current_status, thread_ret_value

WASMCluster.thread_safe_cond:
    Condition variable for notifying threads that are waiting for threads to go to a safe state.
    All threads waiting for this condition share this one condition variable, so when waken up,
    they must check whether the waited threads are really in a safe state. It's protected by
    thread_state_lock since it involves operations of thread states.

WASMCluster.thread_resume_cond:
    Condition variable for notifying threads that are waiting for resumption that their suspend
    counts have changed and they may be able to resume (i.e. change to RUNNING state).
    All suspended threads share this one condition variable, so when waken up, they must
    recheck their suspend counts to check whether they are really able to resume. It's protected
    by thread_state_lock since it involves operations of suspend counts.

WASMExecEnv.wait_lock:
    The lock for protecting wait_cond, wait_count and thread_is_detached of this exec_env.

WASMExecEnv.wait_cond:
    Conditional variable for this thread to wait.

When a thread requests to suspend other threads, it firstly increases the suspend_count of other threads, and then try to acquire the lock for the exec_env_list, and then checks whether there is other thread suspending it, if yes, it must release the lock, suspend himself and wait until other thread wakeup it. And only when there isn't thread suspending it, can it lock the exec_enc_list, wait until all other threads are suspended, and then continue to perform the operation, e.g. Garbage Collection.
Thread status
A thread can run into some status:

Running: WASM_THREAD_RUNNING
Waiting: WASM_THREAD_VMWAIT, thread is waiting for resource
Suspended: WASM_THREAD_SUSPENDED, thread is suspended
Zombie: WASM_THREAD_ZOMBIE, thread is detached or thread exited
And more status to support source debugging (TODO).

do you have any plan how to "suspend" blocking threads?

Not sure whether this meets your requirements: the thread can call the related API e.g. wasm_runtime_enter_safe_state() to enter into safe state before blocking, so other thread will ignore it when suspending other threads. And the former can call wasm_runtime_exit_safe_state() to go back into running state.
The feature is WIP, refer to: https://github.com/bytecodealliance/wasm-micro-runtime/pull/2320

Not sure whether this meets your requirements: the thread can call the related API e.g. wasm_runtime_enter_safe_state() to enter into safe state before blocking, so other thread will ignore it when suspending other threads. And the former can call wasm_runtime_exit_safe_state() to go back into running state.
The feature is WIP, refer to: #2320

ah, i see.
i thought those functions were just unused leftover.
for some use cases, the approach should be ok.
btw, it has a wrong name. (jeff_runtime_exit_safe_state)
copy-and-paste mistake?
it reminded me that i have never understood what "jeff" in app manager is.

Yes, it is a typo, part of the code were ported from an internal project.

Yes, it is a typo, part of the code were ported from an internal project.

does the internal project have a similar mechanism?
does it work well there?

Yes, is has a similar mechanism and works well.


version naming in commands

The command arguments take in different schemes for the version names.
For rancheros-install, it doesn't need the prefix "rancher/os:".
rancheros-install -v v0.2.1
rancherctl os upgrade -i rancher/os:v0.2.1
We should make it consistent.

Also, it'd be nice if we were consistent with the -i and -v
in rancheros-install, we use -v
in rancherctl os upgrade, we use -i
But both are referring to the version images.


Changing DISABLE_ZFS_IN_INSTALLER doesn't take effect

If I change the DISABLE_ZFS_IN_INSTALLER in the docker-compose.yml file after having ran run.sh once the setting doesn't take effect. For some reason it chooses not to rebuild the docker image. After running the clean up command everything worked.
./run.sh down --rmi all -v

Not that big of a deal, but I was a little confused as to why it kept trying to build zfs. Maybe the README should mention this.

Hey Casey,
thank you! That looks weird to be fair, I thought that docker-compose would have been able to infer the necessity of a rebuild when changing a build argument.
I'll try to see if I can sort it out otherwise I'll add a note to the README. Thanks again!

Update: apparently, that's expected behavior as docker-compose only builds if the built image doesn't already exist. Note though that you can use --build without having to remove everything from scratch.
Will update the docs!

Awesome. Thanks!


JobResult infixes compatible with Job infixes

Job infixes are very useful for concurrent development and would be ideal if JobResult had the same infix implementations. For example, <*> infix is used to pair jobs into a single job, sort of Task.WhenAll. From Hopac documentation, implemented infixes are:
module Infixes =
  // Query-Reply
  val ( *<+->= ): Ch<'q> ->   (Ch<'r> -> Promise<unit> -> #Job<'q>) -> Alt<'r>
  val ( *<+->- ): Ch<'q> ->   (Ch<'r> -> Promise<unit> ->      'q)  -> Alt<'r>
  val ( *<-=>= ): Ch<'q> -> (IVar<'r>                  -> #Job<'q>) -> Alt<'r>
  val ( *<-=>- ): Ch<'q> -> (IVar<'r>                  ->      'q)  -> Alt<'r>
  val ( *<+=>= ): Ch<'q> -> (IVar<'r>                  -> #Job<'q>) -> Alt<'r>
  val ( *<+=>- ): Ch<'q> -> (IVar<'r>                  ->      'q)  -> Alt<'r>
  // Message passing
  val ( *<-  ):      Ch<'x> -> 'x  -> Alt<unit>
  val ( *<+  ):      Ch<'x> -> 'x  -> Job<unit>
  val ( *<=  ):    IVar<'x> -> 'x  -> Job<unit>
  val ( *<=! ):    IVar<'x> -> exn -> Job<unit>
  val ( *<<= ):    MVar<'x> -> 'x  -> Job<unit>
  val ( *<<+ ): Mailbox<'x> -> 'x  -> Job<unit>
  // After actions
  val ( ^=>  ): Alt<'x> -> ('x -> #Job<'y>) -> Alt<'y>
  val ( ^->  ): Alt<'x> -> ('x ->      'y)  -> Alt<'y>
  val ( ^=>. ): Alt<_>  ->         Job<'y>  -> Alt<'y>
  val ( ^->. ): Alt<_>  ->             'y   -> Alt<'y>
  val ( ^->! ): Alt<_>  ->             exn  -> Alt<_>
  // Choices
  val ( <|>  ): Alt<'x> -> Alt<'x> ->     Alt<'x>
  val ( <|>* ): Alt<'x> -> Alt<'x> -> Promise<'x>
  val ( <~>  ): Alt<'x> -> Alt<'x> ->     Alt<'x>
  val ( <~>* ): Alt<'x> -> Alt<'x> -> Promise<'x>
  // Sequencing
  val ( >>=   ): Job<'x> -> ('x -> #Job<'y>) ->     Job<'y>
  val ( >>=*  ): Job<'x> -> ('x -> #Job<'y>) -> Promise<'y>
  val ( >>-   ): Job<'x> -> ('x ->      'y)  ->     Job<'y>
  val ( >>-*  ): Job<'x> -> ('x ->      'y)  -> Promise<'y>
  val ( >>=.  ): Job<_>  ->         Job<'y>  ->     Job<'y>
  val ( >>=*. ): Job<_>  ->         Job<'y>  -> Promise<'y>
  val ( >>-.  ): Job<_>  ->             'y   ->     Job<'y>
  val ( >>-*. ): Job<_>  ->             'y   -> Promise<'y>
  val ( >>-!  ): Job<_>  ->             exn  ->     Job<_>
  val ( >>-*! ): Job<_>  ->             exn  -> Promise<_>
  // Composition
  val ( >=>   ): ('x -> #Job<'y>) -> ('y -> #Job<'z>) -> 'x ->     Job<'z>
  val ( >=>*  ): ('x -> #Job<'y>) -> ('y -> #Job<'z>) -> 'x -> Promise<'z>
  val ( >->   ): ('x -> #Job<'y>) -> ('y ->      'z)  -> 'x ->     Job<'z>
  val ( >->*  ): ('x -> #Job<'y>) -> ('y ->      'z)  -> 'x -> Promise<'z>
  val ( >=>.  ): ('x -> #Job<_>)  ->         Job<'z>  -> 'x ->     Job<'z>
  val ( >=>*. ): ('x -> #Job<_>)  ->         Job<'z>  -> 'x -> Promise<'z>
  val ( >->.  ): ('x -> #Job<_>)  ->             'z   -> 'x ->     Job<'z>
  val ( >->*. ): ('x -> #Job<_>)  ->             'z   -> 'x -> Promise<'z>
  val ( >->!  ): ('x -> #Job<_>)  ->             exn  -> 'x ->     Job<_>
  val ( >->*! ): ('x -> #Job<_>)  ->             exn  -> 'x -> Promise<_>
  // Pairing
  val ( <&> ): Job<'x> -> Job<'y> -> Job<'x * 'y>
  val ( <*> ): Job<'x> -> Job<'y> -> Job<'x * 'y>
  val ( <+> ): Alt<'x> -> Alt<'y> -> Alt<'x * `'y>

I understand all (by now) are not implementable (there is no AltResult, nor ChResult, etc.) but the Job related infixes would be interesting and useful.

I have severe reservations about adding too many infix operators. The general consensus in the F# community seems to dislike the use of large amounts of operators and is deemed confusing.   Even Don Syme would like to see applicative operators reduced in usage. Although there are exceptions to having operators be used heavily (like >=> Giraffe) I'd shy away from adding any more operators.

I'm thinking the same, I just copied their docs. But the most common would be great, like pairing ones or the basic ones for sequencing or composition. The other ones maybe are too much, but you can use them with Job objects, so maybe experienced Hopac developers would be happy with those as a fully compatible library, so they doesn't need to do more coding than needed.

Unless other maintainers think otherwise, I'm going to put this in the "wont-fix" category.


Fix Codacy integration

This broke when I had to recreate the repo for issue tracker mirroring. Will also have to update the README badge.

Done.


Your Quick-Chat app crash

When I run the app it crashes in launch screen ? Ca you please check why it happen like this ?

did you follow the installation steps? Please check the "readme" for setup


Support JsonWebKeys with the Elliptic Curve key type (#1143)

Cherry-picked from the dev5x branch.
Had a couple of conflicts, hence the PR.
Conflicts were in these files:
src/Microsoft.IdentityModel.Tokens/LogMessages.cs (one log message removed and one edited)
src/Microsoft.IdentityModel.Tokens/JsonWebKeySet.cs (constructor that takes Newtonsoft.Json object in 5x)
test/Microsoft.IdentityModel.Tokens.Tests/JsonWebKeySetTests.cs (related to the JsonWebKeySet constructor)

Refactored JsonWebKeySet.GetSigningKeys() method and added support
for JWKs with 'kty' = 'EC'.
Unresolved JsonWebKeys will be skipped by default.
SkipUnresolvedJsonWebKeys flag controls whether unresolved JsonWebKeys
will be included in the resulting collection of GetSigningKeys method.
Adding only the first certificate from the x5c certificate chain as a
SecurityKey.

@GeoK did you mean "string, JsonSerializerSettings"?

@GeoK did you mean "string, JsonSerializerSettings"?

@GeoK did you mean "string, JsonSerializerSettings"?

@brentschmaltz  - Yes. I made these remarks only to make it easier for the review as the conflicts are minor and there are 11 changed files.
We removed that constructor here: https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/commit/b0867057c1b98ead823eed37869b5656ed2ba695#diff-f7389f0863c7a832e457a9c1420b9c9d

:shipit:


Fix search URL in Schema.org markup

Close #1455
Search URL was incorrect, containing double slash
Before:
http://demo.getsaleor.com//search/?q={search_term}
After:
http://demo.getsaleor.com/search/?q={search_term}

Codecov Report

Merging #1454 into master will increase coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1454      +/-   ##
==========================================
+ Coverage   83.41%   83.43%   +0.01%
==========================================
  Files         128      128
  Lines        5795     5800       +5
  Branches      665      665
==========================================
+ Hits         4834     4839       +5
  Misses        803      803
  Partials      158      158

Impacted Files
Coverage Δ

saleor/core/context_processors.py
90.32% <100%> (+1.86%)
:arrow_up:

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 8ee14e1...f73c574. Read the comment docs.


Store request without waiting and get estimate

Is it possible using this library to actually just return the time the user has to wait before doing another request instead of actually wait for such time in php?

Sure, you can use the getEstimate for that purpose.

The problem with that is that it never stores the last request, if you try this code:
<?php

$loader = require_once __DIR__.'/app/bootstrap.php.cache';

$throttle = new Stiphle\Throttle\LeakyBucket;
$identifier = 'dave';
while(true) {
    // the throttle method returns the amount of milliseconds it slept for
    echo $throttle->throttle($identifier, 5, 10000);
    echo "\n";
}

it correctly throttles, this one instead:
<?php

$loader = require_once __DIR__.'/app/bootstrap.php.cache';

$throttle = new Stiphle\Throttle\LeakyBucket;
$identifier = 'dave';
while(true) {
    // the throttle method returns the amount of milliseconds it slept for
    echo $throttle->getEstimate($identifier, 5, 10000);
    echo "\n";
}

always returns 0 since it doesn't store the last ratio and last request informations. So you can't actually just say to the user, "you've to wait for x seconds" without actually waiting for such time.

So I think my initial intention for this was to have something along the lines of:
if ($throttle->getEstimate($identifier, 5, 10000) > 1000) {
    return new Response('Too many requests', 429);
}

$throttle->throttle($identifier, 5, 10000);

return $resource;

That is, if you don't want to actually throttle in process, tell the client to wait, but don't give them the resource. Getting denied doesn't count towards the quota.
If that doesn't suit your needs, we could probably have a look at injecting or making configurable the sleep part?

Oh I haven't thought about that, in that case it could work, since when getEstimate is 0 throttle won't wait. Sorry for the question then :+1:

No problem, hope it works out! I haven't used this lib or given it any love for a while, but it certainly served it's purpose when I did :)


Support API v17 for SDP Operator

Operator Changes:

Fix the discriminator parser so it can read the updated Identity Provider API spec
Support v14 ~ v17 API spec
Add bunch of unit testing for API v14 ~ v17
Add version suffix to CRDs

Helm Chart Changes:

Decouple .sdp.operator.image.tag and .sdp.operator.version so that you can specify a customized image when testing the operator in k8s environment
Convert 0/1 values into true/false for boolean values
Add JSON schema validation for values.yaml
Update and reorganize values.yaml into required and optional values

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.0 out of 2 committers have signed the CLA.:x: lepiolet:x: mandopalooozaYou have signed the CLA already but the status is still pending? Let us recheck it.


bump(core): version 0.6.0

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#56  👈
#55
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @Atternatt and the rest of your teammates on  Graphite

Pull Request Test Coverage Report for Build #148
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 92.749%

Totals

Change from base Build #147:
0.0%

Covered Lines:
307

Relevant Lines:
331

💛  - Coveralls

Merge activity

Sep 17, 11:15 AM EDT: @Atternatt merged this pull request with Graphite.


YAML Lint error

YAML Lint error due to "trailing spaces". There is a blank line above all template files.

"trailing spaces" error on YAML Lint Action


[FLINK-2721] [Storm Compatibility] Add Tuple meta information

@mxm I would like to get this into 1.0 release. Would be great if you could review it.

@mjsax Would be good to merge this. I'll take a look later.

Looks like the meta data is now completely available :). +1 for merging this.

Extended VerifyMetaDataBolt.java to check if the message ID is of "type" unanchored and fixed the typos.
Merging this.


fix: removed custom dev server middlware

This middleware prevented Vite from handling the incoming connections which broke features such as backend proxying.
This change should be treated as breaking because although the unit tests pass, It could definitely cause a change to downstream projects' development servers behaviour if they are using this plugin.
Closes #38

Can we please get this merged, @anncwb?

在使用vue-vben-admin中遇到相同的问题，当使用 iframe 时，或者浏览器直接访问 vite proxy 地址时，vite-plugin-html 中的 connect-history-api-fallback 会优先vite proxy 执行，当header 中存在 text/html 中会导致 get 参数被替换掉。

This change was fixed in release 3.2.0. I still don't understand why the middleware logic is needed as I discussed in #38, however I'm sure it has a purpose.


Edge browser is not supported

Hi Denys,
Looking through the code I noticed that on your factory classes do not support selecting Edge browser through environment variables. Is there a chance for adding support for Edge ?

Hello,
Will add this as enhancement that needs to be implemented.
Thank You!


Exception in requests not catchable

Describe the bug
I try to use submission.mark_visited() and get prawcore.exceptions.Forbidden: received 403 HTTP response from /prawcore/sessions.py", line 265, in _request_with_retries raise self.STATUS_EXCEPTIONS[response.status_code](response)
I can't seem to catch the exception with PRAWException, but rather the script crashes
To Reproduce
Steps to reproduce the behavior:
authenticated reddit session
use submission.mark_visited()
get a 403 error (for whatever reason, not the point here)
Edit: You need reddit premium to use the /api/store_visits endpoint.
Expected behavior
exception gets caught and printed (well actually I expected the mark_visited to work but whatever)
Code/Logs
import praw
from praw.exceptions import PRAWException
reddit = praw.Reddit("<some stuff>")

submission = reddit.submission('<some id>')

print(submission.visited)
try:
    submission.mark_visited()
except PRAWException as e:
    print(e)
print(submission.visited)

System Info

OS: Win10 / Debian 10
Python: 3.7.7
PRAW Version: 7.1.0

Am able to catch it with
from prawcore import exceptions
except exceptions.ResponseException as e:

Is it expected behaviour that praw can't catch prawcore exceptions?

Am able to catch it with
from prawcore import exceptions
except exceptions.ResponseException as e:

Is it expected behaviour that praw can't catch prawcore exceptions?

I am not getting any exceptions with your code. Could it be that you don't have the adequate scopes or the post be from a private subreddit?
As for the exception behavior, praw doesn't usually catch prawcore exceptions (it does in some spots, however that is to specifically handle the error)

I am not getting any exceptions with your code. Could it be that you don't have the adequate scopes or the post be from a private subreddit?
As for the exception behavior, praw doesn't usually catch prawcore exceptions (it does in some spots, however that is to specifically handle the error)

Thanks for answering...
Subreddit is public and the code given above is my actual test script to get a submission I can inspect in the debugger.
On my machine as well as my Server I get the crash. Do you use Reddit Premium by any chance? Because then the mark_visited() works and doesn't raise an exception

Thanks for answering...
Subreddit is public and the code given above is my actual test script to get a submission I can inspect in the debugger.
On my machine as well as my Server I get the crash. Do you use Reddit Premium by any chance? Because then the mark_visited() works and doesn't raise an exception

I do have Reddit Premium. I forgot that was a premium feature. Let me test this on a non premium account.

I do have Reddit Premium. I forgot that was a premium feature. Let me test this on a non premium account.

Okay I have tested this. It raises prawcore.exception.Forbidden. To catch this you would need to do:
from prawcore import Forbidden
submission = reddit.submission('l3k4ex')

print(submission.visited)
try:
    submission.mark_visited()
except Forbidden:
    print("Does not have premium")
print(submission.visited)

Okay I have tested this. It raises prawcore.exception.Forbidden. To catch this you would need to do:
from prawcore import Forbidden
submission = reddit.submission('l3k4ex')

print(submission.visited)
try:
    submission.mark_visited()
except Forbidden:
    print("Does not have premium")
print(submission.visited)

I could use the generic PrawcoreException as well... I just thought that praw would still catch this.
It gets called in reddit.py as return self._core.request even with a except BadRequest as exception: which then raises a RedditAPIException.
 Well since I'm not getting Premium for my bot this problem doesn't really affect me, just thought it was some odd behaviour

I could use the generic PrawcoreException as well... I just thought that praw would still catch this.
It gets called in reddit.py as return self._core.request even with a except BadRequest as exception: which then raises a RedditAPIException.
 Well since I'm not getting Premium for my bot this problem doesn't really affect me, just thought it was some odd behaviour

Ah I see. The BadRequest exception is only raised when the response has a status code of 400.

Ah I see. The BadRequest exception is only raised when the response has a status code of 400.

Yeah exactly. Any other HTTP Status gets ignored here.
In session.py there are 15 options in STATUS_EXCEPTIONS, but only one gets caught. Maybe the exception in prawcore should be more broad.

Yeah exactly. Any other HTTP Status gets ignored here.
In session.py there are 15 options in STATUS_EXCEPTIONS, but only one gets caught. Maybe the exception in prawcore should be more broad.

Those exceptions all correspond to different HTTP status codes. The handler for BadRequest in reddit.py is to build a clearer exception from the error info that is sometimes returned from the API. Since the error info that the API returns is usually only in 400 responses, it wouldn't make sense to catch those errors in PRAW only to re-raise them without modification.

Those exceptions all correspond to different HTTP status codes. The handler for BadRequest in reddit.py is to build a clearer exception from the error info that is sometimes returned from the API. Since the error info that the API returns is usually only in 400 responses, it wouldn't make sense to catch those errors in PRAW only to re-raise them without modification.

If you want me to, sure

If you want me to, sure

Well it got a lot of errors in the pipeline, but there it is.

Well it got a lot of errors in the pipeline, but there it is.

PRAW doesn't wrap all prawcore exceptions, so this is expected behaviour. Need to use more prawcore exceptions

PRAW doesn't wrap all prawcore exceptions, so this is expected behaviour. Need to use more prawcore exceptions


Expose instance of marked.

Convenience so that you don't have to install/require marked yourself if you're using metalsmith-markdown.

Decided I didn't like this pattern.


Add cursor benchmarks

This adds a sum benchmark that is being split out from this PR: https://github.com/microsoft/FluidFramework/pull/11610. Also adds a perimeter benchmark for measuring access to known fields rather than enumeration.

Can you post the results of a benchmark run including these new tests?

Can you post the results of a benchmark run including these new tests?


Add documentation for insert functions

Since these functions are generated dynamically, we don't have any docs for them. Ecto solves this with the @callback directive: https://github.com/elixir-ecto/ecto/blob/v2.1.3/lib/ecto/repo.ex#L735

Additionally, the documentation for the build functions should also use the @callback spec, since right now the function signature of, for example, ExMachina.build/3 does not mach the code samples, since it's not the same same as the build/2 which is injected to a module with use ExMachina.


getTables() does not return views

The method getTables queries the information_schema.tables which originally had both tables and views inside, I believe.
Now the views are separated into information_schema.views and are no longer returned by the query.
The method should be amended to also bring the views.

Actually, I think this is a Databend issue, not driver. I think the views should be included in the information_schema.tables view


[output] catch requests timeout exceptions

to: @ryandeivert or @javuto
cc: @airbnb/streamalert-maintainers
size: small
resolves N/A
Background
During an internal triage, I found out we need to catch ReadTimeout and ConnectTimeout while sending requests post request. requests.execptions.Timeout will catch both ReadTimeout and ConnectTimeout.
Changes

Add requests.exceptions.Timeout to default exceptions in output base class
Update unit test cases.

Testing

Unit test

./tests/scripts/unit_tests.sh
...
Ran 548 tests in 9.324s

OK

Rule test

python manage.py lambda test --processor all
...
StreamAlertCLI [INFO]: (61/61) Successful Tests
StreamAlertCLI [INFO]: (33/33) Alert Tests Passed
StreamAlertCLI [INFO]: Completed

Coverage increased (+0.001%) to 95.757% when pulling d50dba6ae98cdd65021c01c441a6b5e5c00906ef on catch_requests_read_timeout into e8151bf86541fe605fa94520a0bc36714071e649 on master.

🚢


Correct typo in annalyns_infiltration exercise

There are only three characters in total (not counting the player and the player's dog, who do not sleep), so if the prisoner is awake then there are only two characters remaining (the knight and the archer).

A PR for this was already opened: https://github.com/exercism/go/pull/1478

Duplicate of #1478


music-player.js - changed a bit

Improvements -
The emptyChannel event could be improved by adding a leaveOnEmpty property to the ctx object. This property would indicate whether the bot should automatically leave the voice channel after the empty channel threshold has been reached.
The emptyQueue event could be improved by adding a playAgain property to the ctx object. This property would indicate whether the bot should automatically play another song after the queue has finished.

Am I correct that the contents of this pull request is only formatter changes?

more or less yes


During finetuning, I'm running out of GPU memory during the checkpoint saving step (save_pretrained)

Looks like GPU usage almost doubles during saving (save_pretrained - get_peft_model_state_dict function). Is there a way to avoid this?
stack trace:
    main(args)
  File "finetune_starcoder.py", line 332, in main
    run_training(args, train_dataset, eval_dataset)
  File "finetune_starcoder.py", line 323, in run_training
    trainer.train()
  File "/home/ubuntu/.local/lib/python3.8/site-packages/transformers/trainer.py", line 1662, in train
    return inner_training_loop(
  File "/home/ubuntu/.local/lib/python3.8/site-packages/transformers/trainer.py", line 2006, in _inner_training_loop
    self._maybe_log_save_evaluate(tr_loss, model, trial, epoch, ignore_keys_for_eval)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/transformers/trainer.py", line 2291, in _maybe_log_save_evaluate
    self._save_checkpoint(model, trial, metrics=metrics)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/transformers/trainer.py", line 2348, in _save_checkpoint
    self.save_model(output_dir, _internal_call=True)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/transformers/trainer.py", line 2830, in save_model
    self._save(output_dir)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/transformers/trainer.py", line 2873, in _save
    state_dict = self.model.state_dict()
  File "/home/ubuntu/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1818, in state_dict
    module.state_dict(destination=destination, prefix=prefix + name + '.', keep_vars=keep_vars)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1818, in state_dict
    module.state_dict(destination=destination, prefix=prefix + name + '.', keep_vars=keep_vars)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1818, in state_dict
    module.state_dict(destination=destination, prefix=prefix + name + '.', keep_vars=keep_vars)
  [Previous line repeated 4 more times]
  File "/home/ubuntu/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1815, in state_dict
    self._save_to_state_dict(destination, prefix, keep_vars)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/bitsandbytes/nn/modules.py", line 268, in _save_to_state_dict
    self.weight.data = undo_layout(self.state.CxB, self.state.tile_indices)
  File "/home/ubuntu/.local/lib/python3.8/site-packages/bitsandbytes/autograd/_functions.py", line 100, in undo_layout
    return outputs.reshape(rows, cols).contiguous()
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 36.00 MiB (GPU 0; 39.56 GiB total capacity; 36.25 GiB already allocated; 24.56 MiB free; 37.79 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
  0%|      ```

thank you that solved !

Closing as it seems solved!


panic: Your test failed

I git clone the latest code, then run the test case error
--- export GOPATH=$HOME/hm-workspace
--- export PATH=$HOME/hm-workspace/bin:$PATH
--- gem install eventmachine -v 0.12.10
--- gem install thin -v 1.4.1
-- gem install nats -v 0.4.28
--- export PATH=$HOME/bin/zookeeper/bin:$HOME/hm-workspace/bin:$PATH
---root@wangping-vm02:~/hm-workspace/src/github.com/cloudfoundry/hm9000# ginkgo -r  --randomizeAllSpecs --failOnPending --skipMeasurements
[1413482271] Metricsaccountant Suite - 12/12 specs ?⑩?⑩?⑩?⑩?⑩?⑩?⑩?⑩?⑩?⑩?⑩??SUCCESS! 2.43233ms PASS
--- FAIL: TestHM9000 (0.00 seconds)
panic:
Your test failed.
Ginkgo panics to prevent subsequent assertions from running.
Normally Ginkgo rescues this panic so you shouldn't see it.
But, if you make an assertion in a goroutine, Ginkgo can't capture the panic.
To circumvent this, you should call
defer GinkgoRecover()

at the top of the goroutine that caused this panic.
[recovered]
panic:
Your test failed.
Ginkgo panics to prevent subsequent assertions from running.
Normally Ginkgo rescues this panic so you shouldn't see it.
But, if you make an assertion in a goroutine, Ginkgo can't capture the panic.
To circumvent this, you should call
defer GinkgoRecover()

at the top of the goroutine that caused this panic.
goroutine 22 [running]:
runtime.panic(0x6d0720, 0xc208000ae0)
/usr/local/go/src/pkg/runtime/panic.c:279 +0xf5
testing.func路006()
/usr/local/go/src/pkg/testing/testing.go:416 +0x176
runtime.panic(0x6d0720, 0xc208000ae0)
/usr/local/go/src/pkg/runtime/panic.c:248 +0x18d
github.com/onsi/ginkgo.Fail(0xc208003e60, 0x116, 0xc2080010b0, 0x1, 0x1)
/root/hm-workspace/src/github.com/onsi/ginkgo/ginkgo_dsl.go:229 +0xeb
github.com/onsi/gomega/internal/assertion.(*Assertion).match(0xc208042c00, 0x7f58fb796848, 0x9db760, 0x0, 0xc208000e20, 0x1, 0x1, 0x7f58fb60bda8)
/root/hm-workspace/src/github.com/onsi/gomega/internal/assertion/assertion.go:69 +0x324
github.com/onsi/gomega/internal/assertion.(*Assertion).ShouldNot(0xc208042c00, 0x7f58fb796848, 0x9db760, 0xc208000e20, 0x1, 0x1, 0xc208042c00)
/root/hm-workspace/src/github.com/onsi/gomega/internal/assertion/assertion.go:31 +0x9a
github.com/cloudfoundry/storeadapter/storerunner/etcdstorerunner.(*ETCDClusterRunner).start(0xc2080425c0, 0x1)
/root/hm-workspace/src/github.com/cloudfoundry/storeadapter/storerunner/etcdstorerunner/etcd_cluster_runner.go:142 +0xa7d
github.com/cloudfoundry/storeadapter/storerunner/etcdstorerunner.(*ETCDClusterRunner).Start(0xc2080425c0)
/root/hm-workspace/src/github.com/cloudfoundry/storeadapter/storerunner/etcdstorerunner/etcd_cluster_runner.go:40 +0x2c
github.com/cloudfoundry/hm9000/hm_test.TestHM9000(0xc20804e1b0)
/root/hm-workspace/src/github.com/cloudfoundry/hm9000/hm/hm_suite_test.go:18 +0xbd
testing.tRunner(0xc20804e1b0, 0x9d00a0)
/usr/local/go/src/pkg/testing/testing.go:422 +0x8b
created by testing.RunTests
/usr/local/go/src/pkg/testing/testing.go:504 +0x8db
goroutine 16 [chan receive]:
testing.RunTests(0x88bd88, 0x9d00a0, 0x1, 0x1, 0x88bc01)
/usr/local/go/src/pkg/testing/testing.go:505 +0x923
testing.Main(0x88bd88, 0x9d00a0, 0x1, 0x1, 0x9e04e0, 0x0, 0x0, 0x9e04e0, 0x0, 0x0)
/usr/local/go/src/pkg/testing/testing.go:435 +0x84
main.main()
github.com/cloudfoundry/hm9000/hm/_test/_testmain.go:47 +0x9c
goroutine 19 [finalizer wait]:
runtime.park(0x413440, 0x9dac30, 0x9d8e69)
/usr/local/go/src/pkg/runtime/proc.c:1369 +0x89
runtime.parkunlock(0x9dac30, 0x9d8e69)
/usr/local/go/src/pkg/runtime/proc.c:1385 +0x3b
runfinq()
/usr/local/go/src/pkg/runtime/mgc0.c:2644 +0xcf
runtime.goexit()
/usr/local/go/src/pkg/runtime/proc.c:1445
goroutine 20 [syscall]:
os/signal.loop()
/usr/local/go/src/pkg/os/signal/signal_unix.go:21 +0x1e
created by os/signal.init路1
/usr/local/go/src/pkg/os/signal/signal_unix.go:27 +0x32
Ginkgo ran 9 suites in 19.537042993s
Test Suite Failed
my go version: go version go1.3.3 linux/amd64
What's the problem?

Closing due to inactivity.


Allow for spaces within direct channel author names.

Referring to issue #21 I changed the sources a little to allowing spaces within author names. The altered version is running like a charm in our corporate Jenkins.

I released a new version (2.4.0)

:+1: Thank you. Updated the plugin from official repository. It's still working. :)


I changed line 48 grammar.

Changed the grammar on line 48 to include an article in the correct.
Description of the change: Added an article to the phrase
Reason for the change: Correction in grammar
Link to original source:https://sendgrid.com/docs/for-developers/sending-email/stopping-a-scheduled-send/

Closes #

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Hey @CassiB! Thanks for the PR! Can you please sign the CLA so I can merge in your changes? Thanks!


Not starting on Mac OS M1

when I try to run it on terminal it just crashes

I've closed this issue because it is lacking in information about your issue. I've assumed that, by now, you've resolved this on your end with support from somewhere else.


Issue when trying to extend the Link class in react-router-native

Here is the detailed log:
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
Check your code at App.js:26.
in Route (at App.js:20)
in RCTView (at View.js:34)
in View (at App.js:18)
in Router (created by MemoryRouter)
in MemoryRouter (at NativeRouter.js:11)
in NativeRouter (at App.js:17)
in App (at renderApplication.js:45)
in RCTView (at View.js:34)
in View (at AppContainer.js:106)
in RCTView (at View.js:34)
in View (at AppContainer.js:132)
in AppContainer (at renderApplication.js:39)
Here is the Link class which is extended:
import React from 'react';
import {Link} from 'react-router-native';
export default class Link1 extends Link {
}
Can someone please suggest what went wrong here

Just don't do it. Use composition instead.

Just don't do it. Use composition instead.

Just don't do it. Use composition instead.

I don't think composition will resolve my problem because I have to use this Link at multiple places.
Any ideas on the above error.

Just don't do it. Use composition instead.

I don't think composition will resolve my problem because I have to use this Link at multiple places.
Any ideas on the above error.

Yeah, I don't think you got the concept of composition right: create a new wrapping component that uses Link internally and then use the wrapping component everywhere you need it.

Yeah, I don't think you got the concept of composition right: create a new wrapping component that uses Link internally and then use the wrapping component everywhere you need it.


Update peer-chaincode-devmode.rst

Thanks for the contribution! However, this is a read-only mirror. please read the contribution guide. Also, feel free to join us on chat!


Rename resin-logo.png to balena-logo.png

The OS is rebranding the splash image file from v2.51 onwards.
Change-type: patch
Signed-off-by: Alex Gonzalez<EMAIL_ADDRESS>

the CLI still hardcode that name and this means it will break for them.
@shaunmulligan the CLI was updated in https://github.com/balena-io/balena-cli/issues/1993

making the logo settable from the dashboard
I assume the changes will get tested with recent releases and those already use balena-logo. Anyway I will ping them just in case.

@balena-ci retest

@alexgg is this good to go? I am rebasing your branch and the tests will end up passing to now that we have patched the builds but please do remove the merge commit (https://github.com/balena-io/docs/pull/1552/commits/ff7258faaaafb8497e7b6c34d5ef6b45027df0a6) before merging

@alexgg is this good to go? I am rebasing your branch and the tests will end up passing to now that we have patched the builds but please do remove the merge commit (https://github.com/balena-io/docs/pull/1552/commits/ff7258faaaafb8497e7b6c34d5ef6b45027df0a6) before merging

@balena-ci rebase

@balena-ci rebase


Unchecked dependencies on ASN1_PARSE_C in various modules

Description

Type: Bug
Priority: Major

Various modules (pkparse, asn1write, pkcs12, pkcs5) try to call functions from asn1_parse without checking that it is enabled. This should be fixed either by making the modules depend on ASN1_PARSE_C in check_config.h or making specific functions withing the modules depend on it.
Bug
OS
Any.
mbed TLS build:
Try to build with the following disabled:
BEDTLS_KEY_EXCHANGE_DHE_PSK_ENABLED
MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED
MBEDTLS_KEY_EXCHANGE_RSA_ENABLED
MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED
MBEDTLS_KEY_EXCHANGE_ECDHE_RSA_ENABLED
MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED
MBEDTLS_KEY_EXCHANGE_ECDH_ECDSA_ENABLED
MBEDTLS_KEY_EXCHANGE_ECDH_RSA_ENABLED
MBEDTLS_SSL_SERVER_NAME_INDICATION
MBEDTLS_ASN1_PARSE_C
MBEDTLS_DHM_C
MBEDTLS_ECDSA_C
MBEDTLS_X509_USE_C
MBEDTLS_X509_CRT_PARSE_C
MBEDTLS_X509_CRL_PARSE_C
MBEDTLS_X509_CSR_PARSE_C

Peer device TLS stack and version
Any.
Expected behavior
The build succeeds, or fails at compile-time with a clear error message from check_config.h.
Actual behavior
Bunch on linker errors when building tests, output of make -C tests 2>&1 | grep function is:
../library/libmbedcrypto.a(pkparse.c.o): In function `mbedtls_pk_parse_subpubkey':
../library/libmbedcrypto.a(pkparse.c.o): In function `pk_get_pk_alg':
../library/libmbedcrypto.a(pkparse.c.o): In function `pk_use_ecparams':
../library/libmbedcrypto.a(pkparse.c.o): In function `pk_parse_key_pkcs1_der':
../library/libmbedcrypto.a(pkparse.c.o): In function `pk_parse_key_sec1_der':
../library/libmbedcrypto.a(pkparse.c.o): In function `pk_parse_key_pkcs8_unencrypted_der':
../library/libmbedcrypto.a(pkparse.c.o): In function `pk_parse_key_pkcs8_encrypted_der':
../library/libmbedcrypto.a(asn1write.c.o): In function `mbedtls_asn1_store_named_data':
../library/libmbedcrypto.a(pkcs12.c.o): In function `pkcs12_pbe_derive_key_iv':
../library/libmbedcrypto.a(pkcs5.c.o): In function `mbedtls_pkcs5_pbes2':

Steps to reproduce
See above.

ARM Internal Ref: IOTSSL-2529

Suggestion:

For the ASN.1-write module, only mbedtls_asn1_store_named_data() needs mbedtls_asn1_find_named_data() from the ASN.1-parse module. I suggest the introduction of an MBEDTLS_ERR_ASN1_FEATURE_UNAVAILABLE error code that's returned from mbedtls_asn1_store_named_data() when ASN1_PARSE_C is not defined.
For the PK-parse module, every function needs the ASN.1-parsing module, so I suggest to add the dependency of MBEDTLS_PK_PARSE_C on MBEDTLS_ASN1PARSE_C to check_config.h.
For PKCS-12, mbedtls_pkcs12_pbe() builds on ASN.1-parsing, while mbedtls_pkcs12_derivation() doesn't. I suggest to guard mbedtls_pkcs12_pbe_xxx() by MBEDTLS_ASN1PARSE_C and return the existing error code MBEDTLS_ERR_PKCS12_FEATURE_UNAVAILABLE if it's unset.
For PKCS-5, mbedtls_pkcs5_pbes() needs ASN.1-parse, while mbedtls_pkcs5_pbkdf2_hmac() doesn't, so again I suggest to have mbedtls_pkcs5_pbes() return MBEDTLS_ERR_PKCS5_FEATURE_UNAVAILABLE if MBEDTLS_ASN1PARSE_C is unset.
Unless there are objections, I'll create a PR with the corresponding changes.

I agree about point 2, but for the others I'm not sure why we should return an error at runtime rather than just remove the function at compile time. If we know at compile time that a particular function will never work, then we should indicate that by throwing an error at compile. OTOH, if the function may or may not work depending on what data is passed to it an runtime, then a runtime error is OK.
(I don't think removing a function in some configurations is a violation of our API stability promise if it never worked before. Our promise is that if your code works and is correct with a version, it will keep working an being correct with any later version, until the major version number is bumped. We're not promising anything about code that never worked in the first place.)

@mpg Thank you for your feedback! I will go forward removing the respective functions at compile time if they cannot work in a certain configuration.

@mpg The current implementation of mbedtls_asn1_store_named_data() creates a dependency of asn1_write.c on asn1_parse.c because of the use of mbedtls_asn1_find_named_data(), which doesn't to anything ASN.1 related but essentially searches through a list of strings. This dependency then propagates to e.g. a dependency of X509_CREATE_C on ASN1_PARSE_C, which is counter intuitive. Given that mbedtls_asn1_find_named_data() doesn't do any ASN.1 parsing and is very short, I'd suggest to duplicate it statically in asn1_write.c to remove the dependency. What do you think?

I agree, duplicating a small portion of generic code seems better than having those counterintuitive dependencies.


No module named 'qiskit'

Following QISKit Basics tutorial. This import failed:
import numpy as np
from qiskit import QuantumCircuit, ClassicalRegister, QuantumRegister
from qiskit import execute

ModuleNotFoundError                       Traceback (most recent call last)
 in ()
1 import numpy as np
----> 2 from qiskit import QuantumCircuit, ClassicalRegister, QuantumRegister
3 from qiskit import execute
ModuleNotFoundError: No module named 'qiskit'

It looks like you have not install qiskit. Did you try pip install qiskit

great. Yes, it only works with python 3.

Same error here as well, I have Python 3.7.4 and I am using Jupyter notebook to execute Qiskit. However, I am getting the same error :
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-8-578b7f7e9727> in <module>
----> 1 import qiskit

ModuleNotFoundError: No module named 'qiskit'

I have done the pip install qiskit and pip install qiskit[visualization] commands both.
I have added the path to qiskit folder that is created under Python3, which strangely has only 1 file inside it to the path variables as well.
Any insight as to why this is happening? Your help is much appreciated!


Api build

In this branch, we were able to achieve the following:
✅ Create an API endpoint to list all posts for a user.
✅ Create an API endpoint to list all comments for a user's post.
✅ Create an API endpoint to add a comment to a post, keeping in mind that the owner of the comment is the user that makes it.
✅ Ensure the API endpoints receive JSON and respond JSON as well.

Thank you.


dbcast Seg Fault

Running the dbcast command and I encounter a segfault;  I'm using a main node to manage two worker nodes, and the crash has so far always occurred on the second worker. The first worker is successful.
Command from main node is
mpirun -np 128  --hostfile hostfile --mca btl_tcp_if_exclude virbr0,lo,ib0  dbcast /home/mpiuser/cloud/128-files.0.0 /home/mpiuser/dbcastfile.0.0
Every process backtrace has the same pattern; looks like some kind of crash in shared memory. I can try to recompile with debug symbols. Will post a response as I gather more data.
Oct  5 16:14:50 localhost systemd-coredump[89949]: Process 89887 (dbcast) of user 1000 dumped core.

Stack trace of thread 89887:
0x00007f0b1d841187 strmap_unset (libmfu.so.3.0.0)#012#1
0x00007f0b1d841421 strmap_unsetf (libmfu.so.3.0.0)#012#2
0x0000000000402b04 GCS_Shmem_free (dbcast)#012#3
0x00000000004060c7 main (dbcast)#012#4
0x00007f0b1c4d1493 __libc_start_main (libc.so.6)#012#5
0x000000000040226e _start (dbcast)#012#012

Stack trace of thread 89910:#012#0
0x00007f0b1c59fa41 __poll (libc.so.6)#012#1
0x00007f0b1bd73015 poll_dispatch (libopen-pal.so.40)#012#2
0x00007f0b1bd6a5d9 opal_libevent2022_event_base_loop (libopen-pal.so.40)#012#3
0x00007f0b1bd26e4e progress_engine (libopen-pal.so.40)#012#4
0x00007f0b1b2af14a start_thread (libpthread.so.0)#012#5
0x00007f0b1c5aadc3 __clone (libc.so.6)#012#012

Stack trace of thread 89915:#012#0
0x00007f0b1c5ab0f7 epoll_wait (libc.so.6)#012#1
0x00007f0b1bd6653d epoll_dispatch (libopen-pal.so.40)#012#2
0x00007f0b1bd6a5d9 opal_libevent2022_event_base_loop (libopen-pal.so.40)#012#3
0x00007f0b13d646be progress_engine (mca_pmix_pmix3x.so)#012#4
0x00007f0b1b2af14a start_thread (libpthread.so.0)#012#5
0x00007f0b1c5aadc3 __clone (libc.so.6)

Crash occurs in strmap_unset when the node to be removed as two children and replacement == node->left, which is the case when the right-most child of the node's left is the very first node.
In this case the call to strmap_node_extract_single will set node->left to NULL which causes a crash when dereferenced on line 778
Not sure the best way to go about fixing this; but will leave the for the authors


Use the git tags to release versions

Hi, I just found out about this library, it looks really good, but I have a question. Is there a reason why you aren't locking releases with git tags?

Hey @j3j5 , thanks for writing! :)
I have a few more features to develop before version 1.0.0, and simultaneously I develop the documentation at http://t-regx.com.
But of course you're right, I guess i could use tags 0.7, 0.11, etc :) In fact, I'm gonna start using them now :)

Awesome!! If I may, would you consider using semver? It is common practice and makes other people lives easier :)
Anyway, great work, you save my life yesterday on a battle to death I had against PREG_OFFSET_CAPTURE and multibyte strings.
Thanks for the good work!

Didn't plan it, but I'll definitely use semver, it seams like consistency is a big thing in T-Regx :)
I'm very glad you liked it :D I'm proud to announce you're T-Regx's first user, hooray!

I just saw the alpha release, I think we can close this issue!!
Congrats!!

Oh my God, did you really keep an eye for my release? Thank you very much :)


Update dependencies: node-gyp stills using v6 it is currently in v8

When you will update dependebcies?
It now works with visual studio 2022 on github actions.

All you need to do is to change "node-gyp": "^6.0.1" to "node-gyp": "^8.0.0" in package.json.
API interface not changed and it just works.

Two separate PRs are welcome:

Replace Travis (and Appveyor) with a GitHub Actions workflow, because our CI is currently broken and we'd like to test all of this. Also replace the badges in the README.
Bump node-gyp, and also:

Go over the programmatic internals of node-gyp that we use here, which are not expected to be documented in the changelog of node-gyp
Update engines.node in package.json according to the minimum version supported by node-gyp
Update the Node.js version matrix in the GItHub Actions workflow. We may want to drop Node.js 10 at this time.

Please update node-gyp. The latest version of prebuild can't build packages for Electron 20:
  CXX(target) Release/obj.target/tree_sitter_runtime_binding/src/binding.o
In file included from ../src/binding.cc:1:
/var/folders/n_/mxm2h0s50k3991k3s7kzydxc0000gn/T/prebuild/electron/20.0.0/include/node/node.h:27:2: error: "It looks like you are building this native module without using the right config.gypi.  This normally means that you need to update electron-rebuild (>=3.2.8) or node-gyp (>=8.4.0) if you're building modules directly."
#error "It looks like you are building this native module without using the right config.gypi.  This normally means that you need to update electron-rebuild (>=3.2.8) or node-gyp (>=8.4.0) if you're building modules directly."
 ^

Go over the programmatic internals of node-gyp that we use here, which are not expected to be documented in the changelog of node-gyp

Please just update it instead of making me update it manually with overrides.

PR for part 2 at https://github.com/prebuild/prebuild/pull/304

prebuild v12.0.0 now available with dependency on node-gyp v9.4.0
https://github.com/prebuild/prebuild/blob/1398629bc8debb33d2c3ab62253217d41b0f32f3/package.json#L34