[GStreamer] Unable to stream HTTP stream source using Raspberry Pi (Docker)

I'm unable to stream HTTP stream from an IP camera to KVS from a Raspberry using latest Docker image.
Device: Raspberry 0010 - Model B+ with 512M
KVS stream producer docker image:<PHONE_NUMBER>75.dkr.ecr.us-west-2.amazonaws.com/kinesis-video-producer-sdk-cpp-raspberry-pi:latest
Command use: GST_DEBUG=4 AWS_ACCESS_KEY_ID=AAA AWS_SECRET_ACCESS_KEY=BBB ./kvs_gstreamer_sample TEST<EMAIL_ADDRESS>From inside container, I can do wget on<EMAIL_ADDRESS>and get video feed as file without issue, so the stream URL is confirmed to be working.
Pi + Docker are at latest version.
The only change I did to get Docker installed successfully on the Model B+ was downgraded 1 package containerd.io so that it supports older arm processors. This version to be exact https://packagecloud.io/Hypriot/rpi/packages/raspbian/buster/containerd.io_1.2.6-1_armhf.deb/download.deb
DeviceResultEvent(): Create device result event.
[DEBUG] [22-11-2020 17:02:00:052.634 GMT] stepStateMachine(): State Machine - Current state: 0x0000000000000010, Next state: 0x0000000000000040
[DEBUG] [22-11-2020 17:02:00:053.117 GMT] clientReadyHandler invoked
[DEBUG] [22-11-2020 17:02:00:056.041 GMT] Client is ready
[INFO ] [22-11-2020 17:02:00:057.788 GMT] Creating Kinesis Video Stream TEST
[INFO ] [22-11-2020 17:02:00:059.183 GMT] createKinesisVideoStream(): Creating Kinesis Video Stream.

[WARN ] [22-11-2020 17:02:01:363.348 GMT] describeStreamResult(): Retention period returned from the DescribeStream call doesn't match the one specified in the StreamInfo
[WARN ] [22-11-2020 17:02:01:367.054 GMT] describeStreamResult(): Content type returned from the DescribeStream call doesn't match the one specified in the StreamInfo
[DEBUG] [22-11-2020 17:02:01:367.497 GMT] stepStateMachine(): State Machine - Current state: 0x0000000000000002, Next state: 0x0000000000000020
[INFO ] [22-11-2020 17:02:02:548.558 GMT] writeHeaderCallback(): RequestId: 6d0dd964-ec9b-4618-82d0-e301f11256f7
[DEBUG] [22-11-2020 17:02:02:557.179 GMT] getStreamingEndpointCurlHandler(): GetStreamingEndpoint API response: {"DataEndpoint":"https://s-670061c1.kinesisvideo.ap-southeast-1.amazonaws.com"}
[INFO ] [22-11-2020 17:02:02:591.804 GMT] getStreamingEndpointResultEvent(): Get streaming endpoint result event.
[DEBUG] [22-11-2020 17:02:02:599.852 GMT] stepStateMachine(): State Machine - Current state: 0x0000000000000020, Next state: 0x0000000000000010
[DEBUG] [22-11-2020 17:02:02:602.411 GMT] getStreamingTokenHandler invoked
[DEBUG] [22-11-2020 17:02:02:603.642 GMT] Refreshing credentials. Force refreshing: 1 Now time is:<PHONE_NUMBER>603510336 Expiration:<PHONE_NUMBER>
[INFO ] [22-11-2020 17:02:02:604.347 GMT] New credentials expiration is<PHONE_NUMBER>
[INFO ] [22-11-2020 17:02:02:607.689 GMT] getStreamingTokenResultEvent(): Get streaming token result event.
[DEBUG] [22-11-2020 17:02:02:608.681 GMT] stepStateMachine(): State Machine - Current state: 0x0000000000000010, Next state: 0x0000000000000040
[DEBUG] [22-11-2020 17:02:02:616.038 GMT] streamReadyHandler invoked
[DEBUG] [22-11-2020 17:02:02:617.976 GMT] Stream is ready
0:00:00.001238991    91   0x3bf000 INFO                GST_INIT gst.c:510:init_pre: Initializing GStreamer Core Library version 1.10.4
0:00:00.006423954    91   0x3bf000 INFO                GST_INIT gst.c:511:init_pre: Using library installed in /usr/lib/arm-linux-gnueabihf
0:00:00.006744952    91   0x3bf000 INFO                GST_INIT gst.c:522:init_pre: Linux 51b14c30f05e 5.4.72+ #1356 Thu Oct 22 13:56:00 BST 2020 armv6l
0:00:00.009554932    91   0x3bf000 INFO                GST_INIT gstmessage.c:126:_priv_gst_message_initialize: init messages
0:00:00.020975852    91   0x3bf000 INFO                GST_INIT gstcontext.c:83:_priv_gst_context_initialize: init contexts
0:00:00.030341786    91   0x3bf000 INFO      GST_PLUGIN_LOADING gstplugin.c:316:_priv_gst_plugin_initialize: registering 0 static plugins
0:00:00.036463743    91   0x3bf000 INFO      GST_PLUGIN_LOADING gstplugin.c:224:gst_plugin_register_static: registered static plugin "staticelements"
0:00:00.041125710    91   0x3bf000 INFO      GST_PLUGIN_LOADING gstplugin.c:226:gst_plugin_register_static: added static plugin "staticelements", result: 1
0:00:00.041647706    91   0x3bf000 INFO            GST_REGISTRY gstregistry.c:1738:ensure_current_registry: reading registry cache: /root/.cache/gstreamer-1.0/registry.arm.bin
0:00:00.234702346    91   0x3bf000 INFO            GST_REGISTRY gstregistrybinary.c:619:priv_gst_registry_binary_read_cache: loaded /root/.cache/gstreamer-1.0/registry.arm.bin in 0.192569 seconds
0:00:00.239885310    91   0x3bf000 INFO            GST_REGISTRY gstregistry.c:1594:scan_and_update_registry: Validating plugins from registry cache: /root/.cache/gstreamer-1.0/registry.arm.bin
0:00:00.292339940    91   0x3bf000 INFO            GST_REGISTRY gstregistry.c:1696:scan_and_update_registry: Registry cache has not changed
0:00:00.296367912    91   0x3bf000 INFO            GST_REGISTRY gstregistry.c:1773:ensure_current_registry: registry reading and updating done, result = 1
0:00:00.299843887    91   0x3bf000 INFO                GST_INIT gst.c:720:init_post: GLib runtime version: 2.50.3
0:00:00.300122886    91   0x3bf000 INFO                GST_INIT gst.c:722:init_post: GLib headers version: 2.50.3
0:00:00.300344884    91   0x3bf000 INFO                GST_INIT gst.c:723:init_post: initialized GStreamer successfully
[INFO ] [22-11-2020 17:02:02:924.286 GMT] Streaming from live source
0:00:00.302360870    91   0x3bf000 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:362:gst_element_factory_create: creating element "pipeline" named "live-kinesis-pipeline"
[DEBUG] [22-11-2020 17:02:02:926.918 GMT] Streaming with live source and width: 0, height: 0, fps: 25, bitrateInKBPS512
0:00:00.312112801    91   0x3bf000 INFO      GST_PLUGIN_LOADING gstplugin.c:842:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstcoreelements.so" loaded
0:00:00.321669734    91   0x3bf000 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:362:gst_element_factory_create: creating element "capsfilter" named "source_filter"
0:00:00.326042703    91   0x3bf000 INFO        GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:<GstBaseTransform@0x4a20e0> adding pad 'sink'
0:00:00.329280680    91   0x3bf000 INFO        GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:<GstBaseTransform@0x4a20e0> adding pad 'src'
0:00:00.332484658    91   0x3bf000 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:362:gst_element_factory_create: creating element "capsfilter" named "encoder_filter"
0:00:00.332986654    91   0x3bf000 INFO        GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:<GstBaseTransform@0x4a2310> adding pad 'sink'
0:00:00.333410651    91   0x3bf000 INFO        GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:<GstBaseTransform@0x4a2310> adding pad 'src'
0:00:00.335813634    91   0x3bf000 INFO      GST_PLUGIN_LOADING gstplugin.c:842:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstapp.so" loaded
0:00:00.341932591    91   0x3bf000 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:362:gst_element_factory_create: creating element "appsink" named "appsink"
0:00:00.344421573    91   0x3bf000 INFO        GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:<GstBaseSink@0x40b998> adding pad 'sink'
0:00:00.368161406    91   0x3bf000 INFO      GST_PLUGIN_LOADING gstplugin.c:842:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstvideoparsersbad.so" loaded
0:00:00.373161371    91   0x3bf000 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:362:gst_element_factory_create: creating element "h264parse" named "h264parse"
0:00:00.378911330    91   0x3bf000 INFO        GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:<GstBaseParse@0x40e760> adding pad 'sink'
0:00:00.379414327    91   0x3bf000 INFO        GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:<GstBaseParse@0x40e760> adding pad 'src'
0:00:00.382247307    91   0x3bf000 INFO               baseparse gstbaseparse.c:3951:gst_base_parse_set_pts_interpolation:<GstH264Parse@0x40e760> PTS interpolation: no
0:00:00.382666304    91   0x3bf000 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:460:gst_element_factory_make: no such element factory "vtenc_h264_hw"!
0:00:00.468519699    91   0x3bf000 INFO      GST_PLUGIN_LOADING gstplugin.c:842:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstomx-rpi.so" loaded
0:00:00.473503664    91   0x3bf000 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:362:gst_element_factory_create: creating element "omxh264enc" named "encoder"
0:00:00.476399644    91   0x3bf000 INFO        GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:<GstVideoEncoder@0x4c00b8> adding pad 'sink'
0:00:00.479752620    91   0x3bf000 INFO        GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:<GstVideoEncoder@0x4c00b8> adding pad 'src'
0:00:00.542332179    91   0x3bf000 INFO      GST_PLUGIN_LOADING gstplugin.c:842:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstvideo4linux2.so" loaded
0:00:00.548269137    91   0x3bf000 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:362:gst_element_factory_create: creating element "v4l2src" named "source"
0:00:00.564881020    91   0x3bf000 INFO        GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:<GstBaseSrc@0x4cc0a0> adding pad 'src'
0:00:00.569556987    91   0x3bf000 WARN                    v4l2 v4l2_calls.c:611:gst_v4l2_open:<source> error: Cannot identify device '/dev/video0'.
0:00:00.572585966    91   0x3bf000 WARN                    v4l2 v4l2_calls.c:611:gst_v4l2_open:<source> error: system error: No such file or directory
0:00:00.573117962    91   0x3bf000 INFO        GST_ERROR_SYSTEM gstelement.c:1890:gst_element_message_full_with_details:<source> posting message: Cannot identify device '/dev/video0'.
0:00:00.573535959    91   0x3bf000 INFO        GST_ERROR_SYSTEM gstelement.c:1917:gst_element_message_full_with_details:<source> posted error message: Cannot identify device '/dev/video0'.
0:00:00.576135941    91   0x3bf000 INFO              GST_STATES gstelement.c:2704:gst_element_change_state:<source> have FAILURE change_state return
0:00:00.576396939    91   0x3bf000 INFO              GST_STATES gstelement.c:2294:gst_element_abort_state:<source> aborting state from NULL to READY
Unable to set the source to ready state.
[INFO ] [22-11-2020 17:02:03:200.620 GMT] stopKinesisVideoStreamSync(): Synchronously stopping Kinesis Video Stream<PHONE_NUMBER>3b82b8.
[DEBUG] [22-11-2020 17:02:03:201.191 GMT] streamClosedHandler invoked for upload handle:<PHONE_NUMBER>3709551615
[INFO ] [22-11-2020 17:02:03:203.825 GMT] Freeing Kinesis Video Stream TEST
[INFO ] [22-11-2020 17:02:03:20
```4.383 GMT] freeKinesisVideoStream(): Freeing Kinesis Video stream.
[DEBUG] [22-11-2020 17:02:03:206.961 GMT] curlApiCallbacksShutdownActiveRequests(): pActiveRequests hashtable is empty
[INFO ] [22-11-2020 17:02:03:608.399 GMT] Freeing Kinesis Video Stream TEST
[INFO ] [22-11-2020 17:02:03:609.038 GMT] freeKinesisVideoClient(): Freeing Kinesis Video Client
[DEBUG] [22-11-2020 17:02:03:609.408 GMT] curlApiCallbacksShutdownActiveRequests(): pActiveRequests hashtable is empty
[DEBUG] [22-11-2020 17:02:04:011.468 GMT] freeKinesisVideoClientInternal(): Total allocated memory 0
[WARN ] [22-11-2020 17:02:04:012.111 GMT] curlApiCallbacksShutdown(): curlApiCallbacksShutdown called when already in progress of shutting down

From inside container, I can do wget on<EMAIL_ADDRESS>and get video feed as file without issue.

The logs clearly show that buoy are unable to open the camera device. You can search the RPi forums and the issues in KVS cpp repository for more info.
As is, this is not KVS sdk related issue. Removing tags

Closing the issue.

The producer repo has issue, refer here https://dev.to/rohansawant/the-story-of-how-i-kinda-fixed-aws-kinesis-producers-helped-a-student-and-saved-humanity-hundreds-of-man-hours-17e8


Add notifyUser flag to the FULFILLMENT_CREATED webhook payload

The FULFILLMENT_CREATED webhook is triggered via the orderFulfill mutation when a new fulfillment is created. Mutation accepts the notifyCustomer flag, which determines whether a notification should be sent to customer. This flag needs to be passed to webhook so that apps can read it and based on that send notifications.
Extend the FulfillmentCreated type with the notifyCustomer flag:
type FulfillmentCreated implements Event @doc(category: "Orders") {
  issuedAt: DateTime
  version: String
  issuingPrincipal: IssuingPrincipal
  recipient: App
  fulfillment: Fulfillment
  order: Order

	"""Informs whether a notification should be sent to the customer."""
  notifyCustomer: Boolean!
}

@maarcingebala should notifyCustomer be required? or rather a optional value with a default_value?

I would try to make it required and always determine a meaningful value that is easier to handle for consumers. Otherwise, it would be either a boolean or null, which adds additional logic to consumers.


⚠ Bofrost.at has degraded performance

In 5b59bee, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2659 ms

Resolved: Bofrost.at performance has improved in db845a0 after 1 hour.


cant find app-ID

cant find app-ID, where do i find it
i set the client id of the app and get this error:
https://www.sandbox.paypal.com/v1/payment-experience/web-profiles

You can read my readme and find the part where it says you can create one
on Paypal site
On Fri, Jun 1, 2018 at 2:55 gustavomc<EMAIL_ADDRESS>wrote:

cant find app-ID, where do i find it
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/thinhvo0108/react-paypal-express-checkout/issues/30,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AE-TmDO-odLAiB7AweSle-CZuqSk6Ehdks5t4C6mgaJpZM4UVeiw
.


Relocations missing/incorrect in shaded JARs

When releasing Gaffer 2.0.0-alpha-0.3 in gaffer-docker, there was a problem with the operation-runner not finding certain classes and using the wrong version of Jackson. Fixing this requires changes to Gaffer.
The missing classes are caused by the relocation for org.apache.commons:commons-lang3 (introduced in alpha 2) actually covering all of org.apache.commons (instead of just lang3) and the wrong Jackson version is caused by this relocation being applied only to the iterators JAR and not to the libraries (time,bitmap,sketches) which also use Jackson. For Jackson this caused a version clash with classes from the iterators JAR using a different version (which had been relocated and supplied in the shaded JAR) to the libraries JAR (which had not been relocated and so used the version supplied by Accumulo). For reference, the Jackson relocation is required because Accumulo 2 supplies a different version of Jackson to Gaffer. Accumulo 1 didn't use Jackson so this problem did not occur prior to Accumulo 2 support being added.
Normally when relocating a class in a shaded JAR, the relocated classes would be included inside that shaded JAR. This increases the size of the JAR significantly. In the past it was decided the shaded JARs for these libraries would only be used in combination with the iterators JAR. This allows the relocated classes to be supplied by that JAR and not included in each of the libraries JARs.
In addition to time,bitmap & sketches, there are other shaded JARs, some of which might need similar changes to the above to work correctly with Accumulo 2.

Fixed by https://github.com/gchq/Gaffer/pull/2746


Create room api endpoint

Good stuff, just found some typos that would need to be corrected (specially the ones the affect to rest-api url's, those ones will be used on the training.

Just realized rooms list is returning only an array of room names, should we rather return id and name?
something like
[
  {
    id: 1,
    name: 'random'
},
{
   id:2,
  name: 'pull requests'
}
]

I think having an ID could simulate better a chat list (e.g. you can change the name of a chat room, and should affect the internal id), what do you think?

There is no id for rooms because name matches with the generated socket.io channels, this is used for websocket routing. A bit a refactor it's need it to change it, but it's not a big deal. What about slack when you generate a channel can you change the name later? Bear on mind that room name and roomId, matches as well because it got not sense to have two channels with the same name at this level (maybe it's something to get on mind), although a server validation to not duplicate channels will be need it. So I'm completely open to use and id, but I think that has to match with the socket routing, so maybe a number it's not the best option.

I was thinking about having ID's, as you mentioned the guid solution makes a lot of sense to me, but it can be ok to have fixed rooms names if needed


SyntaxError: Use of reserved word 'import' when using ES6 with Babel

I'm having a really hard time trying to setup testing in my application. We are using Angular, Webpack, ES6 with Babel.
My relevant files are as follows:
karma.conf.js
require('babel-core/register');
module.exports = require('./karma.conf.babel').default;

karma.conf.babel.js
import webpackDevConfig from './webpackDevConfig'

export default (config) => {
  config.set({
    frameworks: [
      'jasmine'
    ],

    files: [
        'test/test_index.js'
    ],

    preprocessors: {
        'test/test_index.js': ['webpack']
    },

    browsers: [
      'PhantomJS',
    ],

    singleRun: true,

    webpack: webpackDevConfig,

    webpackMiddleware: {
      noInfo: true
    }
  });
};

webpackDevConfig.js
export default (config) => {
    return {
        module: {
            loaders: [
                {
                    test: /\.js?$/,
                    exclude: /(node_modules)/,
                    loader: 'ng-annotate?map=false!babel-loader?cacheDirectory=true&presets[]=es2015',
                },
        // ... other loaders
            ],
        },
        // ... other config
    }
}

test/test_index.js
import 'angular';
import 'angular-mocks/angular-mocks';

const testsContext = require.context('.', true, /.spec$/);
testsContext.keys().forEach(testsContext);

Error is:
10 06 2016 17:34:11.421:INFO [karma]: Karma v0.13.22 server started at http://localhost:9876/
10 06 2016 17:34:11.443:INFO [launcher]: Starting browser PhantomJS
10 06 2016 17:34:12.860:INFO [PhantomJS 2.1.1 (Mac OS X 0.0.0)]: Connected on socket /#4wX21ZNf-Gdt6B2nAAAA with id 30689295
PhantomJS 2.1.1 (Mac OS X 0.0.0) ERROR
  SyntaxError: Use of reserved word 'import'
  at /Users/rafael/myproject/test/test_index.js:47

npm ERR! Test failed.  See above for more details.

Having this same issue. Let me know if you find a fix.

@rafaeleyng I just resolved me issue. My default webpack config was not an object but an array of multiple configs, 1 for client and 1 for server.
in karma.conf.js I changed
    webpack: webpackConfig

to

I've run into this as well and ended up changing my imports to require inside my test_index. Just now, I also tried switching back from require but found that import is now working without errors 😖. @d3viant0ne or @goldhand  have either of you run into this before?

I've gotten the import syntax working with babel / AVA, haven't tried it with Karma yet. That said, given we are about to do this for karma-webpack we'll figure it out.

+1

I think this works with AVA because it supports es6 syntax natively. This won't work with karma tests because node doesn't support import statements yet.
A work around is to use babel-cli to run your tests.

"test": "NODE_ENV=test npm run babel -- ./node_modules/karma/bin/karma start",

I actually have this working with imports and karma at work,  I'll try and dig a bit deeper and figure out why it works

(I haven't been able to test any of the proposed solutions in my scenario yet, hope that someday I will)

If it helps, I'm running into a similar issue on one project, yet another one works like a charm. And I wrote them both this weekend.
Working project: https://github.com/tdukart/hue-colors (logs at https://travis-ci.org/tdukart/hue-colors/builds/154053186)
Broken project: https://github.com/tdukart/lightogram
I'm not sure if it's because lightogram depends on hue-colors and they're both ES6.

any news on this?

i found the error for, if you look at the looks you see that you are using karma 0.13.22. Try upgrade your dependency to karma 1.2.0 and it's working

I tested out upgrading to karma 1.2.0 and it's still happening for me in one of my projects

Ok I think I figured this out. After some testing on one of my projects I noticed import statements started to work after two requirements were met (not doing one of these results in an import error):

You must have a require('babel-register') in your karma.conf.js
You must have a loader active for the targeted entrypoint (example below)

karma-shim.js
import 'something'
import 'another-thing'

webpack.config.babel.js
export default {
   module: {
     loaders: [{
        test: /\.js$/,
        loader: 'babel',
        include: ['./karma-shim']
     }]
   }
}

Would anyone else be able to test this out? If this is the case I can add a note in the README

it seems to be that this is path issue. You have to set your basePath correctly to '.'. This worked out for me. You don't need babel-register

@hypery2k i do have basePath set like that. What language are you using? With typescript it doesn't seem to work without babel-register. I get ```
ERROR [config]: Invalid config file!
SyntaxError: Unexpected token import
with `babel-register` and  no loader I get

PhantomJS 2.1.1 (Mac OS X 0.0.0) ERROR
SyntaxError: Use of reserved word 'import'

didn't try it with typescript, just with ES6
But I saw errors with the import, if use absolute paths instead of relative to the package root

Can you define package root? Not quite sure what that is :3

I'm having the same issue with TypeScript, but only on Travis-CI. Locally, everything works fine.
Error in Travis-CI:
START:
ts-loader: Using<EMAIL_ADDRESS>and /.../tsconfig.json
16 09 2016 23:31:22.741:INFO [karma]: Karma v1.3.0 server started at http://localhost:9876/
16 09 2016 23:31:22.743:INFO [launcher]: Launching browser PhantomJS with unlimited concurrency
16 09 2016 23:31:22.750:INFO [launcher]: Starting browser PhantomJS
16 09 2016 23:31:24.080:INFO [PhantomJS 2.1.1 (Linux 0.0.0)]: Connected on socket /#ahv1Z7tbN807BGERAAAA with id 69888324
PhantomJS 2.1.1 (Linux 0.0.0) ERROR
  SyntaxError: Use of reserved word 'export'
  at webpack:///~/angularfire2/index.js:1:0 <- karma.entry.js:50462

Files

karma/webpack config

karma.conf.js
karma.entry.js
webpack.config.js

sources

vendor.ts
polyfills.ts

travis.yml and dependencies

.travis.yml
package.json

I'd appreciate any help.

@strike-sbolel try one of my suggested fixes above and let me know if it works for you

+1

Maybe this will be of use for someone: we have encountered this issue when running our karma tests on specific dev box. It was executing fine on all other boxes. After some investigation we've found out that build was failing when it was execuded in windows symlinked directory.

Any update on this issue on mac it is working fine but same code is giving error on ubuntu
SyntaxError: Use of reserved word 'import'   at webpack:///~/chai-enzyme/~/react-element-to-jsx-string/index.js:1:0 <- tests/test-bundler.js:24270

Same problem too, How fix on Mac OS?
When running test task and notice the error:
PhantomJS 2.1.1 (Mac OS X 0.0.0) ERROR
  SyntaxError: Use of reserved word 'import'
  at webpack:///test/unit/util/foo.spec.js:1:0 <- /Users/lee/WebstormProjects/uGraph/test/unit/index.js:85

I added babel loader to project of karma.config.js:
		loaders: [
			{
				test: /\.js$/,
				loader: 'babel',
				exclude: /node_modules/
			}
		]

I has been working on this problem two days . But the problem still can't fix.

Same problem here. Tried most of what's been written here.
Is it ES6 related? Since Typescript has problems too, I guess it's transpilation-related.
It's possible it's linked to https://github.com/babel/karma-babel-preprocessor

I started seeing this happening when I moved some folders around in my project. Updating the path in karma.conf.js fixed it.
preprocessors: {
      "../src/**/*.spec.ts*": ["webpack"]
    },

+1
Vuejs, Webpack, Karma -> No preprocessing of both .js and .vue files.

I ran into this issue today building a react starter kit for myself. I tried to configure it just like another application i got this working with.

https://github.com/juicyarts/vuejs-starter
** this is just an excerpt of something i built for a coding challange and needs some improvements..

I've built the foundation using the vue-loader which installs

"webpack": "^2.1.0-beta.25",

A usual Webpack installation installs version 1.14. Changing the Version to the mentioned 2.1.0-beta.25 fixed the issues i had with import statements, still it doesn't seem to be a good solution :/

Same here. I can't make it working.
karma.conf.js
const webpackConfig = require('./node_modules/laravel-mix/setup/webpack.config.js');

delete webpackConfig.entry;

module.exports = config => config.set({
    browsers: ['PhantomJS'],
    frameworks: ['jasmine'],
    // this is the entry file for all our tests.
    files: ['resources/assets/js/tests/index.js'],
    // we will pass the entry file to webpack for bundling.
    preprocessors: {
        '../resources/assets/js/**/*.js': ['webpack'],
        '../resources/assets/js/**/*.vue': ['webpack'],
    },
    // use the webpack config
    webpack: webpackConfig,
    // avoid walls of useless text
    webpackMiddleware: {
        noInfo: true,
    },
    singleRun: true,
});

tests/index.js
// test/index.js
// require all test files using special Webpack feature
// https://webpack.github.io/docs/context.html#require-context
const testsContext = require.context('.', true, /\.spec$/);
testsContext.keys().forEach(testsContext);

test/LoginForm.spec.js
// tests/LoginForm.spec.js
import Vue from 'vue';
import * as LoginForm from '../front/vue-components/LoginForm.vue';

describe('LoginForm.vue', () => {
    // asserting JavaScript options
    it('should have correct message', () => {
        expect(LoginForm.data().msg).toBe('Hello from Component A!');
    });

    // asserting rendered result by actually rendering the component
    it('should render correct message', () => {
        const vm = new Vue({
            template: '
<test></test>
',
            components: {
                test: LoginForm,
            },
        }).$mount();
        expect(vm.$el.querySelector('h2.red').textContent).toBe('Hello from Component A!');
    });
});

Result:
node node_modules/cross-env/bin/cross-env.js NODE_ENV=development node_modules/.bin/karma start karma.conf.js

DONE  Compiled successfully in 66ms
27 02 2017 18:57:24.054:INFO [karma]: Karma v1.5.0 server started at http://<IP_ADDRESS>:9876/
27 02 2017 18:57:24.056:INFO [launcher]: Launching browser PhantomJS with unlimited concurrency
27 02 2017 18:57:24.064:INFO [launcher]: Starting browser PhantomJS
27 02 2017 18:57:25.395:INFO [PhantomJS 2.1.1 (Mac OS X 0.0.0)]: Connected on socket 4AVsWe8dqE1lIneLAAAA with id 54540662
PhantomJS 2.1.1 (Mac OS X 0.0.0) ERROR
ReferenceError: Can't find variable: require
at resources/assets/js/tests/index.js:4

Require is a part of webpack require-context. Not sure why it can't find this symbol.

I'm experiencing this issue as well. Weird to see it hasn't been fixed for almost 2 years

I have integration tests with this scenario working on the latest version 5.0.0-alpha.6 If anyone is by chance still having this issue, please feel free to open another ticket with the relevant information!


Can you release new version of @oclif/core to npm?

I need to work with latest changes with the fix for #513 bug

done.


Private locks

Summary
A basic implementation for #4574.
The code could use some polish, and we'd need to make sure pip commands and workspace commands work consistently.
Otherwise I think it's good enough to review.
The basic implementation is in workspace.rs.
There is a new private_lock field in WorkspaceMember.
The following functions moved from Workspace to VirtualProject and depend on private_lock:
pub fn venv(&self) -> PathBuf
pub fn lockfile(&self) -> PathBuf
pub fn members_as_requirements(&self) -> Vec<Requirement>
pub fn constraints(&self) -> Vec<Requirement>
pub fn overrides(&self) -> Vec<Requirement>

The rest is some refactoring to make the calls possible.
These include changing the Workspace argument to VirtualProject for the following functions in mod.rs:

find_environment
FoundInterpreter::discover
get_or_init_environment

I split it in a few commits to make following the changes easier.
Test Plan
A sample workspace and unittest.

Sorry for not engaging with this sooner (apart from our conversation on the originating issue). I think something like this is interesting but I likely won't prioritize exploring it until after we get the initial workspace support out.
In the meantime... the intent is that you should be able to create a project outside of a workspace, and then use a path dependency to point to a member of a workspace that's it not part of, and it should "just work" -- which IIUC should achieve the same thing here? Since that separate project would get its own lock, venv, etc. Though not certain if we finished implementing that yet.

Though not certain if we finished implementing that yet.

I just confirmed that this does work by creating foo/pyproject.toml in the uv root with:
[project]
name = "foo"
version = "0.0.0"
dependencies = [
  "bird-feeder",
]
[tool.uv.sources]
"bird-feeder" = { path = "../scripts/workspaces/albatross-root-workspace/packages/bird-feeder" }

Which does correctly include the workspace dependencies.

In the meantime... the intent is that you should be able to create a project outside of a workspace, and then use a path dependency to point to a member of a workspace that's it not part of, and it should "just work"

It does work. I actually checked a few days ago, and closed two other PRs, because{path=... editable=true} solved the use-case perfectly.
And while you're right, path dependencies is a solution, I would still like to keep this one for future consideration.
I think it's a valid use-case, and I like that members and projects are defined next to each other without a clear preference which one is the right approach, the choice being left to the developer.
Workspaces, among other things, are a good way to share metadata, like default constraints, default versions etc. It would be nice if projects, even they're independent from each other, could take advantage of that.

Hi! Do you mind if I close this? We'll need more discussion in an issue before we can accept this kind of change and we're paying for these CI runs every time it is updated.

Hi! Do you mind if I close this? We'll need more discussion in an issue before we can accept this kind of change and we're paying for these CI runs every time it is updated.

Will it still run CI if we mark it as draft?
Also I can stop resolving conflicts for a while, it won't run builds then.

Yeah it'll still run CI if marked as a draft.

I'll stop pushing then, so it shouldn't be a problem.
If you'd like to close it, that's fine too.

Sorry for not engaging with this sooner (apart from our conversation on the originating issue). I think something like this is interesting but I likely won't prioritize exploring it until after we get the initial workspace support out.

@charliermarsh  any chance to giving this another look?
I've been resolving conflicts periodically in another branch, so can bring the PR up to date easily.
A couple of notes:

about the user-facing naming conventions: projects was first neutral term that came to mind, private_members may be more consistent/easier to explain?
the 1st commit can be merged with no side-effects in case you'd like to postpone the actual implementation till later


Move Mull to Browsers table

Changes
Each category's table promotes its items over those offhandedly mentioned elsewhere within the category, and some mobile browsers should also be highlighted there. Mull is currently the most viable privacy fork of Fenix and should be promoted alongside desktop browsers, and website breakage is only minimally worse than it is with Firefox in general.
Additionally, I'd recommend splitting the Notable Mentions of each category into separate lines. This would result in far cleaner behavior when dealing with multiple PR's which all alter the Notable Mentions section.

Supporting Material
Not adding new material.

Affiliation
None

Checklist

[x] I have read the Contributing guide, and confirmed my PR aligns with the requirements
[x] I have performed a self-review (valid markdown formatting, spelling and grammar)
[x] I have indicated whether I have any affiliation with any software/ services added
[x] I agree to follow the repositories Contributor Covenant Code of Conduct

/rebase

Does Mull count as a browser? Since it's really just a bunch of build scripts for FF.
I wonder if there should be a separate section for user.js's, build scripts and browser configs. Because there's also a lot of other really good projects in this category, which don't really fit neatly into the browser category.

I see what you mean, but it might also make sense from a simplicity standpoint to keep it as one category. Mull may make far fewer sweeping modifications to the base than something like Tor or Brave, but it's still its own app with its own branding and identity, and I'm not sure that most people will care whether it's a fancy build script with or a maintained fork of the source code. It also gets blurry in a few places. As an example, the Kiwi browser, which I definitely do not recommend now given its inclusion of invasive trackers, makes a lot of large changes to Chromium, but it does so through the application of different patches during the build step, rather than contributors manually modifying large parts of the source code. However you proceed, I believe this would also move Librewolf into the proposed category.


Unknown props found: throttle

react-dates version
<EMAIL_ADDRESS>Describe the bug
Getting an error in the console for both SingleDatePicker and DateRangePicker:
Warning: Failed prop type: withStyles(SingleDatePicker): unknown props found: throttle
Warning: Failed prop type: DateRangePicker: unknown props found: throttle
Source code (including props configuration)
Steps to reproduce the behavior:
<DateRangePicker
	disabled={disabled}
	customInputIcon={<img src={CalendarIcon} alt={label || 'Date Input'} />}
	withFullScreenPortal={isMobile}
	orientation={isMobile ? VERTICAL_ORIENTATION : HORIZONTAL_ORIENTATION}
	renderCalendarInfo={this.renderDatePresets}
	focusedInput={focused} />

Desktop (please complete the following information):

OS: MacOS Mojave 10.14.4
Browser: Chrome 73

I have no idea where that prop would come from; https://github.com/airbnb/react-dates/search?q=throttle&unscoped_q=throttle shows that we don't use it as a prop in this repo.


steps=True results in max_steps-sized array with Infs

Using the example ODE from the "Getting Started"page, I tried saving the timesteps of the solver via SaveAt(steps=True) and an adaptive solver. However, this returns a full 4096 (max_steps) array instead of num_accepted_steps which is 8.
import diffrax

def vector_field(t, y, args):
    return -y

term = diffrax.ODETerm(vector_field)
solver = diffrax.Tsit5()
t0, t1 = 0, 3
saveat = diffrax.SaveAt(steps=True)  # try to get steps of solver
stepsize_controller = diffrax.PIDController(
    rtol=1e-5,
    atol=1e-5,
)

sol = diffrax.diffeqsolve(
    term,
    solver,
    t0=t0,
    t1=t1,
    dt0=None,
    y0=1,
    saveat=saveat,
    stepsize_controller=stepsize_controller,
)

print(sol.ts.shape)
print(sol.ts)
print(sol.ts[:10])
print(sol.ys)
print(sol.stats)

Output:
(4096,)
[0.0457305  0.29292497 0.77122223 ...        inf        inf        inf]
[0.0457305  0.29292497 0.77122223 1.257972   1.774822   2.3287756
 2.929889   3.                inf        inf]
[0.9552993  0.7460782  0.46244872 ...        inf        inf        inf]
{'compiled_num_steps': None, 'max_steps': Array(4096, dtype=int32, weak_type=True), 'num_accepted_steps': Array(8, dtype=int32, weak_type=True), 'num_rejected_steps': Array(0, dtype=int32, weak_type=True), 'num_steps': Array(8, dtype=int32, weak_type=True)}

Is this expected behavior?

Gotcha thanks!


Migrate to Spotless from Checkstyle

Advanced Peripherals currently uses the gradle checkstyle plugin to be able to maintain a uniform code style in the project.
But there are two main reasons why I want to switch from checkstyle to spotless.

Spotless has way more features
Spotless has a wider range of features. One among them is the spotlessApply task to just fix the style issues automatically while maintaining license headers.
Advanced custom steps
If I need custom steps, I can create custom steps using FormatterStep and FormatterFunc using spotless, which also works for the spotlessApply task. Checkstyle "only" allows custom regex checks. Which isn't bad, but I just can do more with these java based custom steps.

Currently, there aren't any custom steps. The eclipse formatter used provides a decent code style I really like. But I will consider adding custom steps for our annotation and one-liner if statement guidelines

Currently waiting on any feedback of https://github.com/diffplug/spotless/issues/2095
I am unable to use https://github.com/diffplug/spotless/blob/main/plugin-gradle/README.md#retroactively-slurp-years-from-git-history


feat(deps): loosen flagsmith-flag-engine constraints

This allows to use flagsmith with flagsmiht-flag-engine >=5.0.0 as well, which would allow to use pydantic >=2.0
partially closes #55

Hello @matthewelwell since flagsmith-flag-engine 5.0.0 has been released, it should be possible to use the flagsmith python client with pydantic v2, right ? I could not see a breaking change apart from the pydantic upgrade in the changelog, so I guessed allowing both 4.x and 5.x versions here would be fine, and users would still be able to pick between pydantic 1 and 2.
A review would be welcome :smile:  if something is missing from this PR, please let me know!

Based on the changes necessary as per #69 , I'm not convinced this PR will work as expected. It will still not be possible to use flagsmith-flag-engine>=5. I'm going to close this for now but we are looking to merge in #69 very soon and it will be included in 3.5.0.

All right, thanks for the heads up :+1:


_try_put - Handle Disc quota exceeded Error

raise IOError(text)
IOError: Failure
Way over quota and just trying to write 969 bytes throws IOError.

Ideally should list n largest libraries / files so you know where to go to delete / drop.


Export error: "Backend header doesn't contain fields"

Hi everybody!
First of all thank you for your tool. OroPlatform is really a good tool!
I just migrated from version 2.0 to version 2.5 to fix an issue with email templates. It's now fixed!
But I now have another issue with the export of my entities. Some entities export without issues but other entites generate this error: batch.ERROR: Encountered an error executing the step: Backend header doesn't contain fields.
Entity configuration looks good and I reset it with the commands:
php app/console oro:entity-config:cache:clear --env=dev
php app/console oro:entity-config:update --force --env=dev
But nothing better... It looks like there is a kind of cache at the field level. Do you have an idea?
Thank you in advance!

Thank you! It's ok now.


Add inline documention and generate docs

I really need to get in there an add better documentation. Then ideally generate them into .md files to add to the repository.

Given this is such a small library, I think just having a README is fine.


"Challenge ___ solved!" push notifications

As a hacking student
I want to receive a push notification whenever I solved a challenge
so that I get immediate positive feedback
and do not have to continually check the score board myself.
Possible implementation options:

use express.io as backend push service (on different port?)
use Angular.UI Alert between navbar and page content to display notification

Reverted experiments with socket.io due to encountered problems:

using separate port (e.g. 3001) causes test execution problems (when firing up the server)
CORS problems when using different port
problems injecting io into utils properly where it is needed to emit challenge solved notifications
code quality issues, especially SRP and unwanted dependencies

[x] implemented server with socket.io as global instance
[x] emitting 'challenge solved' from utils.solved(challenge)
[x] add boilerplate for client using angular-socket-io
[ ] implement controller for listening on 'challenge solved' events
[ ] implement push notification as Alert using above controller (maybe write directive for that?)


Adds Link checker and fixes internal links

Description

Adds a Link checker plugin to the project website.
Fixes broken internal links in the project website

Note: A few files were also automatically linted by my editor. Left them as is because they kept the formatting consistent across the file.
Issues Resolved
#206
By submitting this pull request, I confirm that my contribution is made under the terms of the BSD-3-Clause License.

that looks awesome, @ashwin-pc! I'm a little worried that the linting is going to cause a lot of merge conflicts.

Sure thing, let me remove that and resubmit it

Closing this in place of #264 since the files that were touched cant be untouched


Updating to Phosphor 2.1

Hello! Phosphor released a new version (2.1) on the 31st of March. Would you be able to update the core reference to their release commit? I'm also happy to submit a PR for it if needed. Thanks!

This would be great!

Hey @maful, would you be open to adding it collaborators to the repo so they can take care of keeping the gem updated?

Hi @martrik, yes feel free to open a PR

Here you go @maful https://github.com/maful/ruby-phosphor-icons/pull/4

Hey all,
Released v0.3.0


Add a script to collect logs from all appliances

A utility for collecting logs from all appliances
TODO:

[x] Skip ssh+scp if on the current appliance
[x] Create directory to hold the files and tar that up

[root@manageiq vmdb]# ./tools/collect_logs/collect_all_logs
Collecting logs from all servers in Region 0...
Collecting logs from manageiq 1 of 1...
root@manageiq's password:
root@manageiq's password:
Collecting logs from manageiq 1 of 1...Complete - [/var/www/miq/vmdb/log/evm_current_manageiq_20220419_141805.tar.xz]
Collecting logs from all servers in Region 0...Complete - [/var/www/miq/vmdb/log/evm_current_region_1_20220419_181801.tar.xz]

[root@manageiq vmdb]# ./tools/collect_logs/collect_all_logs
Collecting logs from all servers in Region 0...
Collecting logs from manageiq.rb.nj.grare.com...
Collecting logs from manageiq.rb.nj.grare.com...Complete - [/var/www/miq/vmdb/log/evm_current_manageiq.rb.nj.grare.com_20220419_140157.tar.xz]
Collecting logs from all servers in Region 0...Complete - [/var/www/miq/vmdb/log/evm_current_region_1_20220419_180157.tar.xz]

Backported to najdorf in commit e1ab748acb141810a299aa681d4de47df31a24d4.
commit e1ab748acb141810a299aa681d4de47df31a24d4
Author: Jason Frey<EMAIL_ADDRESS>Date:   Wed Apr 20 11:44:38 2022 -0400

    Merge pull request #21808 from agrare/add_collect_all_logs_script

    Add a script to collect logs from all appliances

    (cherry picked from commit b601dd74f79f64ca5a82a3ca347781496e9d0bb4)


No route matches for inherited (create) action

Hi,
I have 2 versions of my API(1&2) the controller of api version 2 inherits from the controller of api version 1. The problem is, specs for version 1 are running fine, but when i run specs in version 2, it tells me

ActionController::UrlGenerationError: No route matches {:action=>"create", :controller=>"api/mobile/v2/samples"}

#version 1
class Api::Mobile::V1::SamplesController < ApplicationController
  def create
   #dummy
  end
end

#version 2
require "meta_data"
class Api::Mobile::V2::SamplesController < Api::Mobile::V1::SampleController
  include MetaData
end

#spec for version 1
require 'rails_helper'
RSpec.describe Api::Mobile::V1::SamplesController, type: :controller do
  describe "POST #create" do
    it "performs a post" do
      post :create
    end
  end
end

#spec for version 2
require 'rails_helper'
RSpec.describe Api::Mobile::V2::SamplesController, type: :controller do
  describe "POST #create" do
    it "performs a post" do
      post :create
    end
  end
end

Have you defined a route for V2?

yes, I am using this already in my production app and clients can successfully connect to my api v2 route

Your extracted snippets work for me on Rails 4.2, (once I corrected a typo), can you provide more information? This is typically handled by Rails anyhow, so you could try to see if you can make this work in minitest...

@JonRowe  thanks for your efforts, could the problem be, that I am using Rails 4.0.12 and Ruby 2.1.2
I've attached my Gemfile.lock
Gemfile.lock

Just double checking, but in your real app:
class Api::Mobile::V2::SamplesController < Api::Mobile::V1::SampleController thats Api::Mobile::V1::SamplesController and not Api::Mobile::V1::SampleController right?

@simonknoll  Thanks for the issue. We need a little more detail to be able to reproduce this.
Could you please provide us with a rails app that we can clone that demonstrates the issue. Specifically it'd be great if

you could rails new an application and commit
make all the changes necessary to reproduce the issue and commit

then, provide us with a description of how to clone your application and reproduce the issue.
Thanks :)

Hi @simonknoll I'm going to go ahead and close this. If you're able to provide a repo we can clone given the steps above to demonstrate this issue, we can totally re-open. Thanks so much once again ^_^


bionic Rockchip integrated ephy console spam

Fresh boot from emmc, bionic-minimal-rock64-0.6.25-193-arm64
update and upgrade.  shutdown, power off, power on
cli gets spammed with
Rockchip integrated EPHY stmmac-1:00: rockchip_integrated_phy_fixup_100M: reset phy
approx every 17 seconds
perhaps related
https://github.com/ayufan-rock64/linux-build/issues/121

Latest pre-release (0.6.27) should fix this, eth1 is now disabled by default...


Requsting to add advisory topics

We have thousands of devices connected to the broker, and each one publishes to a separate topic, and the the number of devices grow up from time to time.
In case there're topics that with no subscribers, the broker runs into problem sooner or later.
So appreciated that if advisory topics features from ActiveMQ can be implemented, especially the Advisory.NoConsumer.Topic

not apply at all.


Double else in train_net.py

After I clone the source code, I notice one error reported by IDE that there are double elses in train_net.py, please refer to https://github.com/yanxp/SSM/blob/master/tools/train_net.py#L232 and https://github.com/yanxp/SSM/blob/master/tools/train_net.py#L239 respectively. Maybe there is something wrong with the source code.
Thank you.

@tommyjiang Thank you for reminding, we have revised the error. You can also see the version of https://github.com/yanxp/SSM-pytorch which is right.

Thanks for your work.


update results example to return dataframes from functions, optionally write to file

@WPringle perhaps we can move these functions into the library, and also make a dedicated CLI entry point, maybe combine_results --output_directory ./runs or something

console output of script:
(enembleperturbation)  Zachary.Burnett@hfe07  /scratch2/COASTAL/coastal/save/shared/working/zach/nems_adcirc/run_20210720_large_ensemble
 > python ensemble_results_parser.py

                                   cross_track  along_track  radius_of_maximum_winds  max_sustained_wind_speed
vortex_4_variable_perturbation_1     -0.220716     1.059494                 0.168378                 -1.140257
vortex_4_variable_perturbation_2     -0.447978     0.274827                 0.651191                 -1.614475
vortex_4_variable_perturbation_3     -0.934847     0.191482                 0.030533                 -0.914144
vortex_4_variable_perturbation_4      0.007890     0.059201                 0.909304                 -0.159048
vortex_4_variable_perturbation_5      1.431040    -1.431809                 0.059425                  1.766594
vortex_4_variable_perturbation_6      1.679410    -0.357124                 0.563604                  2.014533
vortex_4_variable_perturbation_7      0.461829     0.620333                 0.682850                 -2.341930
vortex_4_variable_perturbation_8     -0.682090    -2.454760                 0.971933                  0.375695
vortex_4_variable_perturbation_9      0.827994     1.164105                 0.062004                  1.280453
vortex_4_variable_perturbation_10    -2.196805     0.800147                 0.783648                  2.728787
/scratch2/COASTAL/coastal/save/shared/working/zach/nems_adcirc/run_20210720_large_ensemble/runs/vortex_4_variable_perturbation_9.22/maxele.63.nc
/scratch2/COASTAL/coastal/save/shared/working/zach/nems_adcirc/run_20210720_large_ensemble/runs/original.22/maxele.63.nc
/scratch2/COASTAL/coastal/save/shared/working/zach/nems_adcirc/run_20210720_large_ensemble/runs/vortex_4_variable_perturbation_10.22/maxele.63.nc
/scratch2/COASTAL/coastal/save/shared/working/zach/nems_adcirc/run_20210720_large_ensemble/runs/vortex_4_variable_perturbation_7.22/maxele.63.nc
/scratch2/COASTAL/coastal/save/shared/working/zach/nems_adcirc/run_20210720_large_ensemble/runs/vortex_4_variable_perturbation_4.22/maxele.63.nc
/scratch2/COASTAL/coastal/save/shared/working/zach/nems_adcirc/run_20210720_large_ensemble/runs/vortex_4_variable_perturbation_2.22/maxele.63.nc
/scratch2/COASTAL/coastal/save/shared/working/zach/nems_adcirc/run_20210720_large_ensemble/runs/vortex_4_variable_perturbation_5.22/maxele.63.nc
/scratch2/COASTAL/coastal/save/shared/working/zach/nems_adcirc/run_20210720_large_ensemble/runs/vortex_4_variable_perturbation_6.22/maxele.63.nc
/scratch2/COASTAL/coastal/save/shared/working/zach/nems_adcirc/run_20210720_large_ensemble/runs/vortex_4_variable_perturbation_3.22/maxele.63.nc
/scratch2/COASTAL/coastal/save/shared/working/zach/nems_adcirc/run_20210720_large_ensemble/runs/vortex_4_variable_perturbation_1.22/maxele.63.nc
/scratch2/COASTAL/coastal/save/shared/working/zach/nems_adcirc/run_20210720_large_ensemble/runs/vortex_4_variable_perturbation_8.22/maxele.63.nc
                x          y  vortex_4_variable_perturbation_8.22  ...  original.22  vortex_4_variable_perturbation_9.22      depth
0      -77.547573  35.839343                                  NaN  ...          NaN                                  NaN  -9.261350
1      -77.551062  35.829987                                  NaN  ...          NaN                                  NaN  -7.806330
2      -77.549422  35.834698                                  NaN  ...          NaN                                  NaN  -9.252210
3      -77.541917  35.835456                                  NaN  ...          NaN                                  NaN -10.394100
4      -77.552008  35.825088                                  NaN  ...          NaN                                  NaN -10.484900
...           ...        ...                                  ...  ...          ...                                  ...        ...
628912 -80.832467  32.044860                             1.256547  ...     1.256547                             1.256547   7.250000
632915 -80.860455  32.052438                             1.266166  ...     1.266166                             1.266166   1.714286
633209 -80.755243  32.025054                             1.232645  ...     1.232645                             1.232645   8.125000
633864 -80.845800  32.080978                             1.262864  ...     1.262864                             1.262864   2.000000
633865 -80.844697  32.086670                             1.262682  ...     1.262682                             1.262682   1.500000

[280928 rows x 14 columns]

@zacharyburnettNOAA Your suggestion about creating a CLI sounds great to me.

@zacharyburnettNOAA My other request would be if we can allow for subsetting by a polygon instead/in addition to the bounding box. Can keep min_depth I suppose and make that infinity by default. Then for passing with CLI could use a .txt file or other to define the polygon.

Codecov Report

Merging #56 (8572522) into main (ab3575a) will increase coverage by 0.04%.
The diff coverage is 86.95%.

@@            Coverage Diff             @@
##             main      #56      +/-   ##
==========================================
+ Coverage   47.72%   47.76%   +0.04%
==========================================
  Files           8        8
  Lines        1075     1076       +1
==========================================
+ Hits          513      514       +1
  Misses        562      562

Flag
Coverage Δ

python3.9-Linux
47.76% <86.95%> (+0.04%)
:arrow_up:

python3.9-Windows
?

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

Impacted Files
Coverage Δ

ensembleperturbation/parsing/adcirc.py
67.56% <75.00%> (ø)

ensembleperturbation/perturbation/atcf.py
86.41% <89.47%> (+0.03%)
: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 0e4e193...8572522. Read the comment docs.

@WPringle I've updated the combine_results command to fix a bunch of problems, and made the following output:
(ensembleperturbation)  Zachary.Burnett@hfe07  /scratch2/COASTAL/coastal/save/shared/working/zach/nems_adcirc/run_20210816_florence_multivariate_besttrack_250msubset_5members
 > du output.h5 -csh
651M    output.h5

TODO:

[ ] handle the variable fields that are not data frames (zeta and u-vel and v-vel that exist on a 2D field)
[ ] find and handle duplicate records using the same mesh node

@WPringle I've updated the combine_results command to fix a bunch of problems, and made the following output:
(ensembleperturbation)  Zachary.Burnett@hfe07  /scratch2/COASTAL/coastal/save/shared/working/zach/nems_adcirc/run_20210816_florence_multivariate_besttrack_250msubset_5members
 > du output.h5 -csh
651M    output.h5

I will also copy this run to Orion in the working/hera folder.

This is great thank you I will check out that .h5 you produced once on Orion

@WPringle here:
/work/noaa/nosofs/share/working/hera/nems_adcirc/run_20210816_florence_multivariate_besttrack_250msubset_5members

moved TODO to #58


Can I get a hand?

Also happens with ViewBot
can i get some help?

you need to open cmd and download

happens for me to

what should i download

Type exactly this,
pip install requests

try that : pip install requests pystyle
to install all required lib


Add parameters to az restore-point create to support Encryption Input

Preconditions

[X] No need to upgrade Python SDK or the Python SDK is ready.

Related command
az restore-point create
Resource Provider
Microsoft.Compute
Description of Feature or Work Requested

When a restore point is created using 'az restore-point create' be it a local restore point or a remote restore point, customer should be able to specify Encryption details for the new disk restore point. For each source disk / disk restore point that user wants to change encryption for, they should be able to pass encryption type and/or disk encryption set id.

These are optional parameters, if they are not specified by the customer, the default encryption is used for the new restore point.

Minimum API Version Required
2023-03-01
Swagger PR link / SDK link

Restore Points in the REST API specs repo: https://github.com/Azure/azure-rest-api-specs/blob/main/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-07-01/restorePoint.json
Corresponding PR: https://github.com/Azure/azure-rest-api-specs/pull/23303 (included in https://github.com/Azure/azure-rest-api-specs/pull/22885)
SDK Docs: https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.management.compute.models.restorepoint?view=azure-dotnet-legacy&viewFallbackFrom=azure-dotnet

Request Example
There are 2 scenarios
a) Local Restore Point

--source-restore-point is not passed
In this case, the source-data-disk-resource should have one or more Disk ARM ID's.
For each Disk ARM ID, its corresponding EncryptionSetId or/and EncryptionType must be passed.
For Example, if the cli request contains the following values for the new parameters

az restore-point create --resource-group "linurg" --collection-name "rpc-1" --name "rp-1" --source-os-resource "/subscriptions/{sub}/resourceGroups/linurg/providers/Microsoft.Compute/disks/vm1_osDisk" --os-restore-point-encryption-set "/subscriptions/{sub}/resourceGroups/linurg/providers/Microsoft.Compute/diskEncryptionSets/des1" --source-data-disk-resource "/subscriptions/{sub}/resourceGroups/linurg/providers/Microsoft.Compute/disks/vm1_DataDisk_0 /subscriptions/{sub}/resourceGroups/linurg/providers/Microsoft.Compute/disks/vm1_DataDisk_2" --data-disk-restore-point-encryption-set "/subscriptions/{sub}/resourceGroups/linurg/providers/Microsoft.Compute/diskEncryptionSets/des1 /subscriptions/{sub}/resourceGroups/linurg/providers/Microsoft.Compute/diskEncryptionSets/des2"

The Restore Point API request body should look like the following:
{
  "name": "rp-1",
  "properties": {
    "sourceMetadata": {
      "storageProfile": {
        "osDisk": {
          "managedDisk": {
            "id": "/subscriptions/{sub}/resourceGroups/linurg/providers/Microsoft.Compute/disks/vm1_osDisk"
          },
          "diskRestorePoint": {
            "encryption": {
              "diskEncryptionSet": {
                "id": "/subscriptions/{sub}/resourceGroups/linurg/providers/Microsoft.Compute/diskEncryptionSets/des1"
              }
            }
          }
        },
        "dataDisks": [
          {
            "managedDisk": {
              "id": "/subscriptions/{sub}/resourceGroups/linurg/providers/Microsoft.Compute/disks/vm1_DataDisk_0"
            },
            "diskRestorePoint": {
              "encryption": {
                "diskEncryptionSet": {
                  "id": "/subscriptions/{sub}/resourceGroups/linurg/providers/Microsoft.Compute/diskEncryptionSets/des1"
                }
              }
            }
          },
          {
            "managedDisk": {
              "id": "/subscriptions/{sub}/resourceGroups/linurg/providers/Microsoft.Compute/disks/vm1_DataDisk_1"
            },
            "diskRestorePoint": {
              "encryption": {
                "diskEncryptionSet": {
                  "id": "/subscriptions/{sub}/resourceGroups/linurg/providers/Microsoft.Compute/diskEncryptionSets/des2"
                }
              }
            }
          }
        ]
      }
    }
  }
}

b) Remote Restore Point

--source-restore-point is passed
In this case, the source-data-disk-resource should have one or more Disk ARM ID's.
For each Disk ARM ID, its corresponding EncryptionSetId or/and EncryptionType must be passed.
For Example, if the cli request contains the following values for the new parameters

az restore-point create --resource-group "linurg" --collection-name "rpc-1" --name "rp-1" --source-restore-point "/subscriptions/{sub}/resourceGroups/linurg/providers/Microsoft.Compute/restorePointCollections/rpc-1/restorePoints/rp-1" --source-os-resource "/subscriptions/{sub}/resourceGroups/linurg/providers/Microsoft.Compute/restorePointCollections/rpc-1/restorePoints/rp-1/diskrestorepoints/vm1_osDisk_9e82d2fe-7001-40dc-8bfb-57fc191f182f" --os-restore-point-encryption-set "/subscriptions/{sub}/resourceGroups/linurg/providers/Microsoft.Compute/diskEncryptionSets/des1" --os-restore-point-encryption-type EncryptionAtRestWithCustomerKey --source-data-disk-resource "/subscriptions/{sub}/resourceGroups/linurg/providers/Microsoft.Compute/restorePointCollections/rpc-1/restorePoints/rp-1/diskrestorepoints/vm1_DataDisk_0_9e82d2fe-7001-40dc-8bfb-57fc191f182f /subscriptions/{sub}/resourceGroups/linurg/providers/Microsoft.Compute/restorePointCollections/rpc-1/restorePoints/rp-1/diskrestorepoints/vm1_DataDisk_1_9e82d2fe-7001-40dc-8bfb-57fc191f182f" --data-disk-restore-point-encryption-set "/subscriptions/{sub}/resourceGroups/linurg/providers/Microsoft.Compute/diskEncryptionSets/des1 /subscriptions/{sub}/resourceGroups/linurg/providers/Microsoft.Compute/diskEncryptionSets/des2" --data-disk-restore-point-encryption-type  "EncryptionAtRestWithCustomerKey EncryptionAtRestWithCustomerKey"

The Restore Point API request body should look like the following:
{
  "name": "rp-1",
  "properties": {
    "sourceRestorePoint": {
      "id": "/subscriptions/{sub}/resourceGroups/linurg/providers/Microsoft.Compute/restorePointCollections/rpc-1/restorePoints/rp-1"
    },
    "sourceMetadata": {
      "storageProfile": {
        "osDisk": {
          "diskRestorePoint": {
            "sourceDiskRestorePoint": {
              "id": "/subscriptions/{sub}/resourceGroups/linurg/providers/Microsoft.Compute/restorePointCollections/rpc-1/restorePoints/rp-1/diskrestorepoints/vm1_osDisk_9e82d2fe-7001-40dc-8bfb-57fc191f182f"
            },
            "encryption": {
              "type": "EncryptionAtRestWithCustomerKey",
              "diskEncryptionSet": {
                "id": "/subscriptions/{sub}/resourceGroups/linurg/providers/Microsoft.Compute/diskEncryptionSets/des1"
              }
            }
          }
        },
        "dataDisks": [
          {
            "diskRestorePoint": {
              "sourceDiskRestorePoint": {
                "id": "/subscriptions/{sub}/resourceGroups/linurg/providers/Microsoft.Compute/restorePointCollections/rpc-1/restorePoints/rp-1/diskrestorepoints/vm1_DataDisk_0_9e82d2fe-7001-40dc-8bfb-57fc191f182f"
              },
              "encryption": {
                "type": "EncryptionAtRestWithCustomerKey",
                "diskEncryptionSet": {
                  "id": "/subscriptions/{sub}/resourceGroups/linurg/providers/Microsoft.Compute/diskEncryptionSets/des1"
                }
              }
            }
          },
          {
            "diskRestorePoint": {
              "sourceDiskRestorePoint": {
                "id": "/subscriptions/{sub}/resourceGroups/linurg/providers/Microsoft.Compute/restorePointCollections/rpc-1/restorePoints/rp-1/diskrestorepoints/vm1_DataDisk_1_9e82d2fe-7001-40dc-8bfb-57fc191f182f"
              },
              "encryption": {
                "type": "EncryptionAtRestWithCustomerKey",
                "diskEncryptionSet": {
                  "id": "/subscriptions/{sub}}/resourceGroups/linurg/providers/Microsoft.Compute/diskEncryptionSets/des2"
                }
              }
            }
          }
        ]
      }
    }
  }
}

Target Date
2023-10-31
PM Contact
aarthiv
Engineer Contact
linugeorge
Additional context
Github Issue for Powershell which has more details: https://github.com/Azure/azure-powershell-cmdlet-review-pr/issues/1379

Thank you for opening this issue, we will look into it.

The release time of this sprint is 11-15. Does this release time meet your expectations?

@zhoxing-ms Yes, that works for us.

Hi @linugeorgeofficial, These two descriptions are almost the same. Are there any errors that need to be corrected?
a) Local Restore Point

--source-restore-point is not passed
In this case, the source-data-disk-resource should have one or more Disk ARM ID's.
For each Disk ARM ID, its corresponding EncryptionSetId or/and EncryptionType must be passed.

b) Remote Restore Point

--source-restore-point is passed
In this case, the source-data-disk-resource should have one or more Disk ARM ID's.
For each Disk ARM ID, its corresponding EncryptionSetId or/and EncryptionType must be passed.

@Jing-song
I've corrected the description for Remote Restore Point to the following.
b) Remote Restore Point

--source-restore-point is passed
In this case, the source-data-disk-resource should have one or more Disk  Restore Point ARM ID's.
For each Disk Restore Point ARM ID, its corresponding EncryptionSetId or/and EncryptionType must be passed.
For Example, if the cli request contains the following values for the new parameters

The difference is that disk restore point ARM ID's are being passed instead of Disk ID's.


command pallete: kernel interrupt/restart

https://github.com/nteract/hydrogen/issues/266
Kernel restart and interrupt commands now in command pallet and can be assigned to keymap.

Awesome.


Need Update for Lord of Nothing Patch

As per description, it would be great if you can update the mod to be working on latest game version

What issue is occurring? I'm able to use it fine on current patch

Mod is updated with newest release, closing issue


Command only channel and delete non commands in that channel

Is your feature request related to an existing command or feature?
Yes, it's related to the !lfg command.
Describe the solution you'd like
To set an LFG channel for the command to be used in, such as !settings lfg lfgchannel #lfg and another command such as !settings lfg commandonly true to only allow commands in that channel, can be turned off.
Additional context
Spoke to you via Discord about this so a lot of the information is there

I think it'd be useful in general to have channels as a type in !settings, that way people can make settings that expect channels as inputs. Then we can leverage that to make certain channels for commands only

Made the ability to have text channels and users as types in !settings in #85
gonna take a look at this as a bot setting


Remove deprecation warnings in test

Removing deprecation warnings emitted during pytests. This will also prepare us for 0.9.0 release
Fix these errors in make-test:

tests/table/test_name_mapping.py::test_mapping_lookup_by_name
Call to find, deprecated in 0.8.0, will be removed in 0.9.0. Please use apply_name_mapping instead.
tests/expressions/test_parser.py::test_is_null
Deprecated in 0.8.0, will be removed in 0.9.0. Parsing expressions with table name is deprecated. Only provide field names in the row_filter.
tests/catalog/test_sql.py:
Deprecated in 0.8.0, will be removed in 0.9.0. Support for parsing catalog level identifier in Catalog identifiers is deprecated. Please refer to the table using only its namespace and its table name.
tests/catalog/test_rest.py:
Deprecated in 0.8.0, will be removed in 1.0.0. Iceberg REST client is missing the OAuth2 server URI configuration
DeprecatedConstants.DEFAULT_MAX_SNAPSHOT_AGE_MS & DeprecatedConstants.DEFAULT_MIN_SNAPSHOTS_TO_KEEP

@kevinjqliu can you rebase this one? :)

done! @Fokko can you take another look? ran locally no warnings in make-test


Cleanup GitHub history

Summary of the Pull Request
What is this about?
PR Checklist

[ ] Applies to work item: #xxx
[ ] CLA signed. If not, go over here and sign the CLI.
[ ] Tests added/passed
[ ] Requires documentation to be updated
[ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Info on Pull Request
What does this include?
Validation Steps Performed
How does someone test & validate?

Codecov Report

Merging #3544 (8c1cae7) into main (2a88838) will decrease coverage by 3.57%.
Report is 41 commits behind head on main.
The diff coverage is 38.04%.

@@            Coverage Diff             @@
##             main    #3544      +/-   ##
==========================================
- Coverage   34.42%   30.86%   -3.57%
==========================================
  Files         299      135     -164
  Lines       36253    14659   -21594
==========================================
- Hits        12479     4524    -7955
+ Misses      23774    10135   -13639

Files
Coverage Δ

src/ApiService/ApiService/Functions/Jobs.cs
75.72% <100.00%> (ø)

src/ApiService/ApiService/OneFuzzTypes/Enums.cs
32.39% <ø> (ø)

src/ApiService/ApiService/OneFuzzTypes/Events.cs
74.16% <100.00%> (+0.10%)
:arrow_up:

src/ApiService/ApiService/OneFuzzTypes/Model.cs
70.44% <100.00%> (+0.06%)
:arrow_up:

...Service/ApiService/Functions/QueueNodeHeartbeat.cs
0.00% <0.00%> (ø)

...Service/ApiService/Functions/QueueTaskHeartbeat.cs
0.00% <0.00%> (ø)

src/ApiService/ApiService/OneFuzzTypes/Requests.cs
58.91% <0.00%> (ø)

...ce/ApiService/onefuzzlib/NotificationOperations.cs
23.07% <0.00%> (ø)

src/ApiService/ApiService/onefuzzlib/Reports.cs
49.20% <0.00%> (-7.16%)
:arrow_down:

...piService/ApiService/onefuzzlib/RetentionPolicy.cs
40.00% <40.00%> (ø)

... and 2 more

... and 165 files with indirect coverage changes


Process Street - connector updates v1.1.5

When submitting a connector, please make sure that you follow the requirements below, otherwise your PR might be rejected. We want to make you have a well-built connector, a smooth certification experience, and your users are happy :)
If this is your first time submitting to GitHub and you need some help, please sign up for this session.

[x] I attest that the connector doesn't exist on the Power Platform today. I've verified by checking the pull requests in GitHub and by searching for the connector on the platform or in the documentation.
[x] I attest that the connector works and I verified by deploying and testing all the operations.
[x] I attest that I have added detailed descriptions for all operations and parameters in the swagger file.
[x] I attest that I have added response schemas to my actions, unless the response schema is dynamic.
[x] I validated the swagger file, apiDefinition.swagger.json, by running paconn validate command.
[x] If this is a certified connector, I confirm that apiProperties.json has a valid brand color and doesn't use an invalid brand color, #007ee5 or #ffffff. If this is an independent publisher connector, I confirm that I am not submitting a connector icon.

If you are an Independent Publisher, you must also attest to the following to ensure a smooth publishing process:

[ ] I have named this PR after the pattern of "Connector Name (Independent Publisher)" ex: HubSpot Marketing (Independent Publisher)
[ ] Within this PR markdown file, I have pasted screenshots that show: 3 unique operations (actions/triggers) working within a Flow. This can be in one flow or part of multiple flows. For each one of those flows, I have pasted in screenshots of the Flow succeeding.
[ ] Within this PR markdown file, I have pasted in a screenshot from the Test operations section within the Custom Connector UI.
[ ] If the connector uses OAuth, I have provided detailed steps on how to create an app in the readme.md.

I see that "Swagger and Change Validation" step is failing but we don't need backward compatibility as it was not published yet

Thanks for a quick review. I updated the version and formatted the file.

Hi @mwysokinski,
Your pull request is approved and merged. Please submit the files to ISV Studio using your latest commit id, please allow us up to 1-2 weeks to review your submission, and our Engineers will notify you in the “Activity Control” area in ISV Studio.
Please Create an environment in the Preview region. You will use this environment later to test your connector after Microsoft is done with the functional verification for your connector.
We expect all tests to be completed within 1-2 weeks.
If your connector passes all tests, the deployment process begins, and it typically takes up to 3 to 4 weeks to deploy your connector to all of our regions.
Please let me know if you have any questions.
Thank you very much for working with us.


CherryPy requires Python '>=3.5' but the running Python is 2.7.13

Hi
I have a fresh install of rasbian stretch when i follow the instructions from this : https://github.com/alexa-pi/AlexaPi/wiki/Installation.
I get this "CherryPy requires Python '>=3.5' but the running Python is 2.7.13" error and I can´t complete the installation. (scandisc 32Gb)
I did the the installation on a different sd-card (samsung 32Gb) but same RPI 3b+ with MagicMirror2 and i got everything to work.  I´m novice in this please help!
From last section
Reading https://pypi.python.org/simple/pip/
Downloading https://files.pythonhosted.org/packages/69/81/52b68d0a4de760a2f1979b0931ba7889202f302072cc7a0d614211bc7579/pip-18.0.tar.gz#sha256=a0e11645ee37c90b40c46d607070c4fd583e2cd46231b1c06e389c5e814eed76
Best match: pip 18.0
Processing pip-18.0.tar.gz
Writing /tmp/easy_install-PPKB7S/pip-18.0/setup.cfg
Running pip-18.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-PPKB7S/pip-18.0/egg-dist-tmp-Eyp0R5
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.mailmap'
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files found matching 'appveyor.yml'
warning: no previously-included files found matching 'src/pip/_vendor/six'
warning: no previously-included files found matching 'src/pip/_vendor/six/moves'
warning: no previously-included files matching '*.pyi' found under directory 'src/pip/_vendor'
no previously-included directories found matching '.github'
no previously-included directories found matching 'docs/build'
no previously-included directories found matching 'news'
no previously-included directories found matching 'tasks'
no previously-included directories found matching 'tests'
no previously-included directories found matching 'tools'
creating /usr/local/lib/python2.7/dist-packages/pip-18.0-py2.7.egg
Extracting pip-18.0-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding pip 18.0 to easy-install.pth file
Installing pip script to /usr/local/bin
Installing pip2.7 script to /usr/local/bin
Installing pip2 script to /usr/local/bin
Installed /usr/local/lib/python2.7/dist-packages/pip-18.0-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip
Peace!

I am having this issue as well. I changed the default python to 3.5 as well as installed CherryPy using python 3 but to no avail.

For the cherrypy issue, you need to manually install cherrypy thats greater than the error.
Type this:
cd
sudo pip install CherryPy==10.2.1
It will then install cherrypy without the python error.
You can then start the set up again.

When I tried @neils84's tip, I was able to complete the installation but had trouble authorising the app via localhost:5050. I kept getting error 500 responses even though I double-tripple checked my config file. Eventually I found out the problem was with CherryPy.
It turns out the installation script forces the use of pip2, which is based on Python 2.
To solve it, I edited /src/scripts/inc/common.sh to call pip3 in the run_pip method. Everything installed fine, although I had to manually run the authorisation script using sudo python3 auth_web.py to get through.

I just did sudo
pip install CherryPy==10.1.1
The install script then passed this by as an already met dependency

@isilher
You can also channge python2 with python 3 in the run_python script. Then you don't have to run the auth_web.py manually.

@henriz are you referring to the run_python fuction within https://github.com/alexa-pi/AlexaPi/blob/master/src/scripts/inc/common.sh ?


mceval not working past 999

@Rick-Methot-NOAA I am working with the newest executable of the output_to_separate_files branch and I cannot get samples in the mceval phase past 999. Here is a screen shot; but, I am guessing there is some index counter that is not allowing the mceval to finish. The mcmc_counter object is working because it will print that to the screen but the Report_mce_1000.ss was not written. I tried using a few cout statements but I was unsuccessful in finding where this is occurring. Previous tests were with less than 1000 samples so the issue was not appearing.

working on it.  strings can be tricky

'''()'''''
That's me pulling last of my hair out.  Still a mystery as to why I can get it to create the output filename once with 4 character, but it dies second time through..

got it.  strings are tricky.
will work on dynamic Bzero Thursday

This was fixed by @Rick-Methot-NOAA in a32b29d / pull request #218. Tested on the hake model with 1002 samples and it was successful.


Si/feat/sign up benefit on right hand side

Very basic for now
Not covering conditional based on login status

@pablisch Changed!

This looks loads better! I think the benefits content needs to be aligned left personally as depending on width, there can be large misalignments.  Above is how it appeared to me. I think it would be good to pull into main and make decisions on these small things together. See how it looks, maybe even sit with and have ongoing niggles and minor edits lists.
The issue is it doesn't run for me which is confusing as presumably it runs for you. I get all sorts of errors in the feed which stop any of the page from rendering. I notice there is still a Post folder so it must be behind main. Is everything pushed? Do you need to merge main?

Very strange. I've merged main so try now?

This looks loads better! I think the benefits content needs to be aligned left personally as depending on width, there can be large misalignments.  Above is how it appeared to me. I think it would be good to pull into main and make decisions on these small things together. See how it looks, maybe even sit with and have ongoing niggles and minor edits lists.
The issue is it doesn't run for me which is confusing as presumably it runs for you. I get all sorts of errors in the feed which stop any of the page from rendering. I notice there is still a Post folder so it must be behind main. Is everything pushed? Do you need to merge main?

Very strange. I've merged main and aligned the text to left. Try now?


[AutoPR datamigration/resource-manager] Fix incorrect discriminator for Oracle to PostgreSQL scenario

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

(message created by the CI based on PR content)

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


parseInt/parseFloat don't work for percentages

eg. Globalize.parseFloat("50%") always returns NaN
In the Number Formatting section, docs state that "Parsing with parseInt and parseFloat also accepts any of these formats."

but it’s nontrivial to do it right - and not particularly useful if you ask me

Agreed that it's nontrivial, but I think it's quite useful. In general I think it's very important to be able to "round trip" any values that may be output.


Expand children of currently selected item in documentation

I think it's more convenient like this. When you click on an item in documentation and it has sub-nodes, why not expand it? Another nice property of doing the change this way is that if you haven't manually expanded it, it will not stay expanded.
Try this in action

@oprypin Awesome, thanks! ❤


Binary Tree Traversal

Hey, I want to add code to traverse a binary tree in different ways. Please assign me this issue .

Add to code and create a pr


Update SCRIPT_SRC to work with<EMAIL_ADDRESS>

Otherwise, it would throw errors:
../node_modules/haul/src/utils/haul-integrate.sh: line 5: cd: ../node_modules/haul/src/utils/../../../react-native/packager: No such file or directory

sed: /react-native-xcode.sh: No such file or directory

../node_modules/haul/src/utils/haul-integrate.sh: line 12: /packager.sh: Permission denied

Hey, looks like this is already fixed in https://github.com/callstack-io/haul/commit/870753d1df5f2d6f878584adb95a370bc2b5b169. Make sure you are using latest version :)


strong naming the component

is it a possibility to strong name the component and push to the nuget server?

Looks like the package is signed - we see a .sha512 file downloaded.
What we are looking for is either the dll being signed and/or the dll having a strong name.
e.g.

or

@mwan1 I will see what I can do, but the dotnet pack command does not support strong naming, as far as I can tell: https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-pack
I will see if I can find a way to accomplish this.

@mwan1 I have still been unable to find any way to add strong name signing to the dotnet packaging flow.  In order to maintain cross-platform compatibility I want to stick to their standard tooling, so I don't think we can accomplish this.
As far as I can tell, the general consensus is that end users who need strong named assemblies need to do that on their own, for example see some approaches in https://joshuachini.com/2017/07/12/how-to-assign-a-strong-name-to-unsigned-3rd-party-assemblies-during-the-build-process/.
Sorry we were unable to help with this, and thanks for using Duo.

dotnet pack still does not support strong name signing, so we will be unable to do this.


Expanded captive dependency check

Captive dependency checking checked for singletons being dependent upon a scoped dependency. However, depending on a dependency which lifetime is shorter than its parent is not specific to that relation. This PR adds checks for Singleton -> Transient and Scoped -> Transient.

So the issue here is that nesting a transient in a singleton does not fail.
So singleton > scoped > transient (in lifetime)
So nesting a scoped in a singleton expands the lifetime of the scoped dependency and crashes
Nesting a transient in a singleton also expands the lifetime but doesn't crash
The line above is what this PR addresses

@hvanbakel  Did you try running MVC with your additional check enabled?

I did, so now I get:
+		$exception	{System.InvalidOperationException: Cannot consume transient service 'Microsoft.Extensions.Options.IOptionsFactory`1[Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions]' from singleton 'Microsoft.Extensions.Options.IOptions`1[Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerOptions]'.
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteValidator.VisitTransient(TransientCallSite transientCallSite, CallSiteValidatorState state)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(IServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteValidator.VisitConstructor(ConstructorCallSite constructorCallSite, CallSiteValidatorState state)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(IServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteValidator.VisitSingleton(SingletonCallSite singletonCallSite, CallSiteValidatorState state)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(IServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteValidator.VisitConstructor(ConstructorCallSite constructorCallSite, CallSiteValidatorState state)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(IServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteValidator.VisitSingleton(SingletonCallSite singletonCallSite, CallSiteValidatorState state)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(IServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteValidator.ValidateCallSite(IServiceCallSite callSite)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceProviderEngineCallback.OnCreate(IServiceCallSite callSite)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.CreateServiceAccessor(Type serviceType)
   at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureServer()
   at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()}	System.InvalidOperationException

which is good. Because this signals that Microsoft.Extensions.Options.IOptionsFactory now has singleton lifetime inside of Microsoft.Extensions.Options.IOptions.
It's a bit odd to crash for singleton wrapping a scoped but not for this though as it is essentially the same problem of 1 component with a long lifetime wrapping a component with a short lifetime.


Add support for launching rosbridge server on a different port

@brentyi, please review
I'm launching multiple arms on different ROS masters on the same computer but they attempt to launch the rosbridge_server all on the same port.

Can we name this something more descriptive? Perhaps rosbridge_port? There's lots of ports being used for lots of things.

Yes, I agree! I went ahead and renamed the variable to rosbridge_port!

thanks :)


How to update with habtm when products have conditions?

Hi there,
I've some troubles get your gem running in my app:
Product has_and_belongs_to_many Categories through CategoriesProducts
But only "visible" products should be counted.
This is what I've so far (straight forward):
class Product < ApplicationRecord
  scope :visible, -> { where(visible: true) }

  has_many :categories_products
  has_many :categories, through: :categories_products, class_name: 'Category'
end

class Category < ApplicationRecord
  has_many :categories_products
  has_many :products, through: :categories_products, class_name: 'Product'

  has_many :category_children, class_name: "Category", foreign_key: :category_parent_id
  belongs_to :category_parent, class_name: "Category", optional: true
end

class CategoriesProduct < ApplicationRecord
  belongs_to :category #, class_name: 'Category'
  belongs_to :product #, class_name: 'Product'

  counter_culture :category,
                  # column_name: 'products_count', # works but does not filter my products by "visibility"
                  column_name: ->(model) { model.product.visible? ? 'products_count' : nil }
                  column_names: {
                    ['categories_products.visible', true] => 'products_count',
                  }
                  # also tried , but none of them are working.
                  column_names: {
                    Product.visible => 'products_count',
                  }
end

Do I have some extra scopes/queries in the relation model?
Totally hung up. A point into the right direction whould save my day
Thank you

Nothing looks wrong at first glance. Are you inserting CategoriesProduct without callbacks in some way perhaps? In that case counter_culture wouldn't work.

Ive got an almost identical set up configuration and  counter_culture using column_names and a specific scope is not changing when the product_category relation is destroyed or created
counter_culture :product_category, column_name: 'active_products_count', execute_after_commit: true, column_names: -> { {     ['products.active_sales_channel = TRUE'] => :active_products_count   } }
would also appreciate any assistance

Nothing looks wrong at first glance. Are you inserting CategoriesProduct without callbacks in some way perhaps? In that case counter_culture wouldn't work.

Nothing special:
Product.update(categories: Category.all.sample(2)
The new relations in CategoriesProduct are created, the old ones deleted. The new entries are properly counted, but the counter does not update the old entries.
When I do a Product.unscoped.destroy_all the products_count in the Category model wont get updated. ONLY a
CategoriesProduct.counter_culture_fix_counts will solve the problem and results in this
{:entity=>"Category", :id=>5811, :what=>"products_count", :wrong=>1, :right=>0}

Does Product.update call callbacks? I haven't ever used that class-level method before. Have you tried Product.find_each { |product product.update!(categories: Category.all.sample(2)) }

Does Product.update call callbacks?

sorry for not beeing clear enough, it's NOT a class level method, you can take any product instance:
Product.last.update(categories:[ Category.find(2547)])
And yes they are fired in that order:

categories
| id 2547 | product_count: 0 |

Product.unscoped.last.categories << Category.find(2547)

  Product Load (2.3ms)  SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT $1  [["LIMIT", 1]]
  Category Load (2.2ms)  SELECT "categories".*  FROM "categories" INNER JOIN "categories_products" ON "categories"."id" = "categories_products"."category_id" WHERE "categories_products"."product_id" = $1 /* loading for inspect */ LIMIT $2  [["product_id", 429], ["LIMIT", 11]]
=> #<ActiveRecord::Associations::CollectionProxy [#<Category id: 2547, name: "Tischsets", created_at: "2022-09-01 10:38:07.796610000 +0000", updated_at: "2022-09-01 19:42:40.669052000 +0000", ancestry: "536/4171/601", ancestry_depth: 3, gid: nil, slug: "tischsets", children_count: 0, products_count: 1, path_de_de: "Heim & Garten > Bett- und Haushaltswäsche > Tischw...", path_en_uk: "Home & Garden > Linens & Bedding > Table Linen > P...", path_en_us: "Home & Garden > Linens & Bedding > Table Linens > ...", category_parent_id: 601, subtree_count: nil, categories_count: 0>]>

categories
| id 2547 | product_count: 1 |

categories_products
| category_id: 2547 | product_id: 429 |

> Product.unscoped.last.update(categories:[ Category.find(2548)])

  Product Load (1.8ms)  SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT $1  [["LIMIT", 1]]
  Category Load (1.3ms)  SELECT "categories".* FROM "categories" WHERE "categories"."id" = $1 LIMIT $2  [["id", 2548], ["LIMIT", 1]]
  TRANSACTION (1.2ms)  BEGIN
  Category Load (2.0ms)  SELECT "categories".* FROM "categories" INNER JOIN "categories_products" ON "categories"."id" = "categories_products"."category_id" WHERE "categories_products"."product_id" = $1  [["product_id", 429]]
  CategoriesProduct Destroy (1.1ms)  DELETE FROM "categories_products" WHERE "categories_products"."product_id" = $1 AND "categories_products"."category_id" = $2  [["product_id", 429], ["category_id", 2547]]
before_save CategoriesProduct id:  category_id: 2548 product: 429
before_create CategoriesProduct id:  category_id: 2548 product: 429
  CategoriesProduct Create (1.1ms)  INSERT INTO "categories_products" ("category_id", "product_id") VALUES ($1, $2) RETURNING "id"  [["category_id", 2548], ["product_id", 429]]
  Category Update All (1.1ms)  UPDATE "categories" SET "products_count" = COALESCE("products_count", 0) + 1 WHERE "categories"."id" = $1  [["id", 2548]]
after_create CategoriesProduct id: 119 category_id: 2548 product: 429
after_save CategoriesProduct id: 119 category_id: 2548 product: 429
  Shop Load (1.0ms)  SELECT "shops".* FROM "shops" WHERE "shops"."id" = $1 LIMIT $2  [["id", 264], ["LIMIT", 1]]
  Product Exists? (1.1ms)  SELECT 1 AS one FROM "products" WHERE "products"."ean" = $1 AND "products"."id" != $2 AND "products"."shop_id" = $3 LIMIT $4  [["ean",<PHONE_NUMBER>310], ["id", 429], ["shop_id", 264], ["LIMIT", 1]]
  Product Exists? (1.0ms)  SELECT 1 AS one FROM "products" WHERE "products"."sku" = $1 AND "products"."id" != $2 AND "products"."shop_id" = $3 LIMIT $4  [["sku", "GoodDiscount817882"], ["id", 429], ["shop_id", 264], ["LIMIT", 1]]
  Product Exists? (1.1ms)  SELECT 1 AS one FROM "products" WHERE "products"."gtin" = $1 AND "products"."id" != $2 AND "products"."shop_id" = $3 LIMIT $4  [["gtin", "5454010867118"], ["id", 429], ["shop_id", 264], ["LIMIT", 1]]
before_save Product id: 429
  Product Exists? (1.1ms)  SELECT 1 AS one FROM "products" WHERE "products"."ean" = $1 AND "products"."id" != $2 AND "products"."shop_id" = $3 LIMIT $4  [["ean",<PHONE_NUMBER>310], ["id", 429], ["shop_id", 264], ["LIMIT", 1]]
  Product Exists? (1.3ms)  SELECT 1 AS one FROM "products" WHERE "products"."sku" = $1 AND "products"."id" != $2 AND "products"."shop_id" = $3 LIMIT $4  [["sku", "GoodDiscount817882"], ["id", 429], ["shop_id", 264], ["LIMIT", 1]]
  Product Exists? (1.2ms)  SELECT 1 AS one FROM "products" WHERE "products"."gtin" = $1 AND "products"."id" != $2 AND "products"."shop_id" = $3 LIMIT $4  [["gtin", "5454010867118"], ["id", 429], ["shop_id", 264], ["LIMIT", 1]]
before_update Product id: 429
after_update Product id: 429
after_save Product id: 429
  TRANSACTION (1.5ms)  COMMIT
after_commit Product id: 429
after_commit CategoriesProduct id: 119 category_id: 2548 product: 429
=> true

categories
| 2547 | product_count: 1 | ---> is still "1" should be "0"
| 2548 | product_count: 1 | ----> is one, so it's correct

categories_products
| category_id: 2548 | product_id: 429 |
|                   |                 | ---> there is no 2547 anymore, as expected

Let's try to fix it:

>> CategoriesProduct.counter_culture_fix_counts

=> [{:entity=>"Category", :id=>2547, :what=>"products_count", :wrong=>1, :right=>0},
    {:entity=>"Category", :id=>2548, :what=>"products_count", :wrong=>1, :right=>0}]

Now the counter should be fixed, but fixes it wrong:
There is still a relation (2548 should be 1) but is counted as "0" (zero):

categories
| 2547 | product_count: 0 |
| 2548 | product_count: 0 | ---> is "0" after "fixing" should be now "1"

Creating a CategoriesProduct relation counts up properly in the categories table, only when I "overwrite" via some_product.update(categories: [Category.find(1)]) it does not decrease the counter.
ONLY when I use "destroy" the counter counts down as expected:
> Product.unscoped.last.categories.destroy(Product.unscoped.last.categories.last)

  Product Load (3.5ms)  SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT $1  [["LIMIT", 1]]
  Product Load (1.4ms)  SELECT "products".* FROM "products" ORDER BY "products"."id" DESC LIMIT $1  [["LIMIT", 1]]
  Category Load (1.8ms)  SELECT "categories".* FROM "categories" INNER JOIN "categories_products" ON "categories"."id" = "categories_products"."category_id" WHERE "categories_products"."product_id" = $1 ORDER BY "categories"."id" DESC LIMIT $2  [["product_id", 429], ["LIMIT", 1]]
  TRANSACTION (0.9ms)  BEGIN
  CategoriesProduct Load (1.2ms)  SELECT "categories_products".* FROM "categories_products" WHERE "categories_products"."product_id" = $1 AND "categories_products"."category_id" = $2  [["product_id", 429], ["category_id", 2547]]
  Category Load (1.3ms)  SELECT "categories".* FROM "categories" WHERE "categories"."id" = $1 LIMIT $2  [["id", 2547], ["LIMIT", 1]]
  Category Update All (1.2ms)  UPDATE "categories" SET "products_count" = COALESCE("products_count", 0) - 1 WHERE "categories"."id" = $1  [["id", 2547]]
before_destroy CategoriesProduct id: 116 category_id: 2547 product: 429
  CategoriesProduct Destroy (1.0ms)  DELETE FROM "categories_products" WHERE "categories_products"."id" = $1  [["id", 116]]
after_destroy CategoriesProduct id: 116 category_id: 2547 product: 429
  TRANSACTION (1.4ms)  COMMIT
after_commit CategoriesProduct id: 116 category_id: 2547 product: 429

The readme says:

Updates counter cache when values change, not just when creating and destroying
It seems counter_culture does not recognize this kind of updates.

How sovle this usecase when also "counter_culture_fix_counts" does not fix properly

I've created a rspec test for this in one file, to observe this case:
just run ruby test.rb to see the results.
https://gist.github.com/exocode/6d635f226f008e4c0e35c45e5b332de9
Maybe I'm doing it wrong, I don't know
Thank you in advance

Can you open a PR with a failing spec within the existing counter culture specs? I'm not in a place where I can provide support for this gem, but if you can come up with a failing spec I'm certainly happy to look at it.

@magnusvk I've added the PR with example specs (the very last one, is the failing one, others are only sanity checks)


Doc Suggestion

It would be nice if the docs has a search bar.  I'd recommend looking into Fuma docs https://fumadocs.vercel.app/.  It was easy to setup and has build in search functionality.

Thanks for the suggestion! @WesternConcrete can we add this? We might even want to switch to fumadocs in general. Have heard good things

For sure - will get this set up! 🫡

Could you all have a section that explains a comparison to tRPC and if there's a use case for using this outside NextJs? I'm more familiar with using tRPC with SPAs so curious to learn more.


MINOR: Update the ORC Chair to William

What changes were proposed in this pull request?
This PR aims to update the ORC Chair information on the ORC committers page

https://orc.apache.org/develop/committers/

Why are the changes needed?
To make the website up-to-date.

https://lists.apache.org/thread/h41xhrs0dc44mnk3rjb7psmx4kvrhb5d

How was this patch tested?
N/A

cc: @dongjoon-hyun @omalley

According to the committers mailing list, ASF approved. Congratulation, @williamhyun .

The following resolutions were passed unanimously:
Change the Apache ORC Project Chair (William Hyun, VP)


feat: Storing arrays v0

In this example, we will demonstrate how we can actually store arrays in Storage by implementing our own implementation of the StorageAccess trait for the Array<T> type.
We can get inspiration from Chqrles work.
In this first version, we will only focus on storing arrays that have up to 255 members.
This limitation is due to how storage is managed on Starknet:

If it is mapping to complex values (e.g., tuples or structs), then this complex value lies in a continuous segment starting from the address calculated in the previous point. Note that 256 field elements is the current limitation on the maximal size of a complex storage value.

To store bigger arrays, we would need to use multiple continuous segments of storage whose base addresses are different.

Closed by #26


Fix Assembly GetTypes() throwing exceptions

Fix #5
Assembly GetTypes() can return errors when an assembly depends on a type from another assembly that is not yet loaded. There are other scenarios where GetTypes() can return errors.
This PR fix an issue where trying to instantiate a TranslationProvider can cause an exception.
In the PR I added an extension method that will get types that are loadable. The code contain a try/catch on ReflectionTypeLoadException.

@tinohager do you think you can take a look this week? I'm really looking forward to use your package and this bug is the only thing preventing me ;)

@Tri125 We are also happy about a star  ⭐