DevMenu not showing up

Describe the bug
I am creating the DevMenu in the AppDelegate, just when the app starts and it never shows up, the console shows the following error:
[Presentation] Attempt to present <_TtGC7SwiftUI19UIHostingControllerV7Amplify11DevMenuList_: 0x10d03d210> on <test_ios.SplashViewController: 0x10a8797f0> (from <test_ios.SplashViewController: 0x10a8797f0>) whose view is not in the window hierarchy.
SplashViewController is the initial ViewController where the app starts, then after it loads the user and some other models from DataStore, it shows the HomeViewController :
nav.modalPresentationStyle = .fullScreen
self.present(nav, animated: true, completion: nil)```

The presentation provider`DevMenuPresentationContextProvider` looks like the following:

class DebugAmplify: DevMenuPresentationContextProvider {
    func devMenuPresentationContext() -> UIWindow {
        return UIApplication.shared.keyWindow!
    }
}

extension UIApplication {
    var keyWindow: UIWindow? {
        // Get connected scenes
        return UIApplication.shared.connectedScenes
            // Keep only active scenes, onscreen and visible to the user
            .filter { $0.activationState == .foregroundActive }
            // Keep only the first `UIWindowScene`
            .first(where: { $0 is UIWindowScene })
            // Get its associated windows
            .flatMap({ $0 as? UIWindowScene })?.windows
            // Finally, keep only the key window
            .first(where: \.isKeyWindow)
    }

}

I have confirmed through the console that:

The window exists
The window is the keyWindow (there's only 1 window in the whole app)

I would expect the DevMenu appear on top of the navigation view controller which is the foremost view controller in the window. It seems its looking for SplashViewController which is not the front VC at the time.
Steps To Reproduce
Steps to reproduce the behavior:
1. Create `DebugAmplify`: `self.obj1 = DebugAmplify()`
2. Enable DevMenu: `Amplify.enableDevMenu(contextProvider: self.obj1)`
3. Configure Amplify: `try Amplify.configure()`
4. Run the app
5. Long press in the main VC
6. Nothing happens - error message in the console

Expected behavior
Show the DevMenu on top of the foremost view controller
Amplify Framework Version
1.19.0
Amplify Categories
DataStore
Dependency manager
Cocoapods
Swift version
5.0
CLI version
10.0.0
Xcode version
13.4.1
Relevant log output
<details>
<summary>Log Messages</summary>

INSERT LOG MESSAGES HERE

```
Is this a regression?
No
Regression additional context
No response
Device
iPhone 13. Pro
iOS Version
15.4.1
Specific to simulators
No response
Additional context
No response

Thanks for opening this @nyeu. We're looking into it and will update here.

I was able to successfully access the DevMenu with the Xcode, iOS, and Amplify versions you're using by making a change to how the UIWindow is being provided.
class DebugAmplify: DevMenuPresentationContextProvider {
    let window: UIWindow

    init(window: UIWindow) {
        self.window = window
    }

    func devMenuPresentationContext() -> UIWindow {
        return window
    }
}

// In SceneDelegate.swift
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
    var debug: DebugAmplify?

    func scene(
        _ scene: UIScene,
        willConnectTo session: UISceneSession,
        options connectionOptions: UIScene.ConnectionOptions
    ) {
        // These two lines may vary slightly depending on your setup (storyboards vs programmatic)
        guard let windowScene = (scene as? UIWindowScene),
              let window = windowScene.windows.first
        else {
            return
        }

        do {
           // Add your plugins here.

            // Set up `DebugAmplify`
            let debugAmplify = DebugAmplify(window: window)
            // This step is important. `AmpfifyDevMenu` holds a weak reference to the `DevMenuPresentationContextProvider`.
            // If it's not strongly held somewhere, it will be immediately deallocated.
            debug = debugAmplify
            Amplify.enableDevMenu(contextProvider: debugAmplify)

            try Amplify.configure()
            print("🎉 Amplify configured")
        } catch {
            print("🙀 failed to configure Amplify with error: \(error)")
        }
    }
}

Please give this a try and let me know if it resolves your issue. Thanks!

It's important to mention that configuring Amplify in the SceneDelegate like above could be problematic if you are supporting multiple windows on iPad. If that's the case, you can configure Amplify in the AppDelegate as you are already and set up the DevMenu in the SceneDelegate.
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
    var debug: DebugAmplify?

    func scene(
        _ scene: UIScene,
        willConnectTo session: UISceneSession,
        options connectionOptions: UIScene.ConnectionOptions
    ) {
        guard let windowScene = (scene as? UIWindowScene),
              let window = windowScene.windows.first
        else {
            return
        }
        let debugAmplify = DebugAmplify(window: window)
        debug = debugAmplify
        Amplify.enableDevMenu(contextProvider: debugAmplify)
    }
}

We are not using SceneDelegate and we are doing it in the AppDelegate in didFinishLaunchingWithOptions. Everything else its exactly like you commented and the issue is persisting.

Is there a reason you can't use the SceneDelegate for this?
Can you show the relevant code in didFinishLaunchingWithOptions where you set up the dev menu? When I try to access the keyWindow in the AppDelegate like your extension does, it's nil for me. So I'd like to better understand how you're setting it up so that the window exists there. Thanks.

Closing due to inactivity.


flag/config for not ignoring node_modules

Description
Hi Ava team...I have some tests which are common to a lot of separate node modules I'm building. I would like to put those tests with some other utilities for said node modules in a common utilities node module (which has other stand-alone functionality as well.)
I see that last November a change was implemented to always ignore the node_modules directory. [issue #226 / pull request #260).
q: Would the Ava team be open to the addition of a flag/config setting which would allow triggering tests from within the node_modules directory?
-or-
q: Is there a workaround already available to allow triggering tests from within the node_modules directory?
thank you,
Scott

@scottnath - Scanning node_modules has all sorts of nasty implications, and it's really not where you want to be storing your tests (you shouldn't be packaging your tests when you deploy anyways).
Now, If you really have some test helper functionality that you want to reuse across modules, that's great. Just make them a utility you can require.
You could do something like this:
import test from 'ava';
import commonTests from 'my-common-tests';
import moduleUnderTest from '../';

commonTests(test, moduleUnderTest);

my-common-tests.index:
module.exports = function (test, moduleUnderTest) {
  test('it does this thing', function (t) {
     t.ok(...);
  });

  test('it does this other thing', function (t) {
     t.ok(...);
  });

  // ...
};

@jamestalmage that is excellent! Exactly the brain jog I needed. Closing this ticket...thank you for your help.


Refactored gaussian_euclidean and added some tests

Getting some mypy failures that I think are unrelated to the code change but can investigate later

Huh interesting I get errors locally but seems like were good in CI

Explicit is always better :)

Can I merge this now?

Will have a look this morning, I'm sorry for no having done this earlier.

It looks great! Would you mind removing the empty line after if ndim==2? You can merge once that's done.


Cant compile c# bindings on w10 vs2017

I can't compile C# bindings with VS2017 community on w10 64bit.
C++ samples works right. I have newest mono installed.
Tried 2 different ways:

started cmake-gui, checked URHO3D_CSHARP, setting manually MSBUILD and SN directories to C:\Program Files\Mono\bin  and then generate .sln and compiled, got errors.
started Developer Command Prompt for VS 2017 and started cmake-gui, checked URHO3D_CSHARP, and generated .sln and compiled, got same errors.

Mono is not exactly supported on windows. Install .net framework 4.7.1 and use that. If you insist on using Mono we will gladly accept PRs that fix the build :]

When used (2) Developer Command Prompt for VS 2017, it uses .net 4.7.1.
Tried
F:\CS_CPP\rbfx\build2>msbuild /t:restore ./Urho3D.sln
ont know what this did but now c# bindings works, thanks :)
Solved.

don't know what this did but now c# bindings works

It restores nuget packages. C# ecosystem madness \o/


Evaluate some String and Array instance methods at compile time

Ref #501.

Hey @j-f1! It looks like one or more of your builds have failed.

Node vnode - linux

Is there a way to find out what prettier doesn’t like about my code?

Just run npm run format and it ll format the code. You can check the diff.

Hey @j-f1! It looks like one or more of your builds have failed.

Node vnode - linux

@boopathi I’m still getting the error after running npm run format. What else should I do? It seems to work on my machine.
It could be because I’m spreads (f(...args) { /* code here */ }).

Can you rebase with master ? I upgraded prettier today and fixed those things in master.

Hey @j-f1! It looks like one or more of your builds have failed.

Node vnode - linux

@boopathi It looks like that didn’t fix the problem.

We can get to the formatting issue later. I'll review the PR.

can you rebase with master and fix the CI errors ?

Rebased and CI passing, @boopathi.

Interesting why the smoke tests didn't kick in.

@boopathi Do you want me to try and debug that?

Sure! 👍

🎉 Thanks!


Typescript Newrelic Browser agent don't have noticeError method

Description
NoticeError function is missing from BrowserAgent it's available inside api key but not typed.
Steps to Reproduce
I have following code
import { BrowserAgent } from '@newrelic/browser-agent/loaders/browser-agent';

export let newrelicWebClient: BrowserAgent;
  const options = {
    init: {
      distributed_tracing: { enabled: true },
      privacy: { cookies_enabled: true },
      ajax: { deny_list: ['*****'] },
    }, // NREUM.init
    info: {
      beacon: '*****',
      errorBeacon: '*****',
      licenseKey: '*****',
      applicationID: '*****',
      sa: 1,
    }, // NREUM.info
    loader_config: {
      accountID: '*****',
      trustKey: '*****',
      agentID: '*****',
      licenseKey: '*****',
      applicationID: '*****',
    }, // NREUM.loader_config
  };

  // The agent loader code executes immediately on instantiation.
  newrelicWebClient = new BrowserAgent(options);
  newrelicWebClient?.setApplicationVersion('*****' || null);

and i am calling it like

console.log(newrelicWebClient);
 newrelicWebClient?.noticeError(e,{some_key:'value'})

in console log i get

Your Environment

ex: Browser name and version - Chrome
ex: Operating System and version - Mac
Browser agent version involved (e.g., v1.229.0) - "@newrelic/browser-agent": "1.251.0",
APM language and version, if applicable (e.g., Dotnet 10.2.0), and auto|manual

Additional context

Hi @master96 and thanks for reaching out. Are you getting a specific error? The method is there, you just have to drill down the inheritance chain.

Hello Patrick,
Thanks for getting back to me.
I solved the problem but had to go through script route as my new relic
config needs to be fetched first and then initialized. My code is in react
so what happens is by the time my config is returned via API, DOM is
already loaded and newrelic doesn't get initialized properly.
I think this makes Lib bit difficult to use.
Thanks
On Fri, Feb 16, 2024, 15:44 Patrick Housley @.***>
wrote:

Hi @master96 https://github.com/master96 and thanks for reaching out.
Are you getting a specific error? The method is there, you just have to
drill down the inheritance chain.
image.png (view on web)
https://github.com/newrelic/newrelic-browser-agent/assets/3984979/55299063-8293-418e-9d27-ef8291d1d6c1
—
Reply to this email directly, view it on GitHub
https://github.com/newrelic/newrelic-browser-agent/issues/895#issuecomment-1948670026,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AC47SURVS7EYLELSDTDL6BTYT55HJAVCNFSM6AAAAABDKWBJ4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBYGY3TAMBSGY
.
You are receiving this because you were mentioned.Message ID:
@.***>

my new relic config needs to be fetched first and then initialized

Observation libraries make an assumption that it gets loaded as soon as possible on the page. In the event that it isn't, there is an increased likelihood of missing data. However, the agent should still function properly.

DOM is already loaded and newrelic doesn't get initialized properly.

Can you elaborate on how newrelic is not initialized properly? Are you getting an error or something?

I think this makes Lib bit difficult to use.

We want to make the package easier to use. Can you provide some specific feedback on how you would like to see the package or agent changed to make it work better for your needs?

Surely,
I like the lib approach better than script approach.
So as soon as app loads I have snippet like
This is my main.tsx in react app.
fetch('config.json').then((res) => {
const env= await res.json();
const options = env.newrelicConfig;
const newrelicClient = new BrowserAgent(options)
}
).finally(()=>
ReactDOM.createRoot(document.getElementById("root")).render())
This does initialize newrelicClient but it doesn't have any API methods
like noticeError. It looks like it's not properly initialized somehow.
Earlier when it was working I didn't have config in my backend so I used to
do something like
const options = hardcoded config;
const newrelicClient = new BrowserAgent(options)
ReactDOM.createRoot(document.getElementById("root")).render()
This works but I am guessing as fetch is async DOM gets loaded and newrelic
doesn't work properly.
On Fri, Feb 16, 2024, 18:45 Patrick Housley @.***>
wrote:

my new relic config needs to be fetched first and then initialized
Observation libraries make an assumption that it gets loaded as soon as
possible on the page. In the event that it isn't, there is an increased
likelihood of missing data. However, the agent should still function
properly.
DOM is already loaded and newrelic doesn't get initialized properly.
Can you elaborate on how newrelic is not initialized properly? Are you
getting an error or something?
I think this makes Lib bit difficult to use.
We want to make the package easier to use. Can you provide some specific
feedback on how you would like to see the package or agent changed to make
it work better for your needs?
—
Reply to this email directly, view it on GitHub
https://github.com/newrelic/newrelic-browser-agent/issues/895#issuecomment-1949100842,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AC47SUQEXVCSIXY2JAKWC2TYT6SNTAVCNFSM6AAAAABDKWBJ4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBZGEYDAOBUGI
.
You are receiving this because you were mentioned.Message ID:
@.***>

I am sorry @master96 but when you say the agent doesn't work, I really need concrete errors or messages that show what about the agent is not working. Or maybe provide a site where I can look and steps to reproduce. The only thing provided to prove the APIs are not present is a screen shot of the agent being console logged. Like I indicated above, you did not traverse the inheritance tree to find the functions. What happens when you try to call one of the API methods?

Hello Patrick,
Apologies I am writing email from my phone.
So I have console logged browserAgent object in screenshot. If you see type
definition of browserAgent there is no key as API inside it. So when I try
to access that I am getting typescript error.
If you want to reproduce can you try to react app with vite with above
snippet.
Try keeping config.json inside public directory.
Should be easy to reproduce. I don't have broken version deployed to any
link. Can spin up something once I have access to my laptop.
Thanks
On Fri, Feb 16, 2024, 19:12 Patrick Housley @.***>
wrote:

I am sorry @master96 https://github.com/master96 but when you say the
agent doesn't work, I really need concrete errors or messages that show
what about the agent is not working. Or maybe provide a site where I can
look and steps to reproduce. The only thing provided to prove the APIs are
not present is a screen shot of the agent being console logged. Like I
indicated above, you did not traverse the inheritance tree to find the
functions. What happens when you try to call one of the API methods?
—
Reply to this email directly, view it on GitHub
https://github.com/newrelic/newrelic-browser-agent/issues/895#issuecomment-1949153655,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AC47SUXRCOOPVTO6RO6CVETYT6VRVAVCNFSM6AAAAABDKWBJ4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBZGE2TGNRVGU
.
You are receiving this because you were mentioned.Message ID:
@.***>

@master96 We do not have the api object typed on purpose. You should use agent.noticeError and not agent.api.noticeError. The api object is not part of our public documented API.

Thanks for getting back to me Patrick.
That's what I thought, but If you see OP I don't have noticeError when I
logged object that's the problem. Can you try steps I sent or I can send
code sandbox. Unfortunately I had to fix it so don't have broken version on
link.
Thanks
On Fri, Feb 16, 2024, 19:31 Patrick Housley @.***>
wrote:

@master96 https://github.com/master96 We do not have the api object
typed on purpose. You should use agent.noticeError and not
agent.api.noticeError. The api object is not part of our public
documented API.
—
Reply to this email directly, view it on GitHub
https://github.com/newrelic/newrelic-browser-agent/issues/895#issuecomment-1949202083,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AC47SUSS4PHQNCVS2TBYFUTYT6XZHAVCNFSM6AAAAABDKWBJ4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBZGIYDEMBYGM
.
You are receiving this because you were mentioned.Message ID:
@.***>

@master96 Are you getting an error when you call newrelicWebClient?.noticeError(e,{some_key:'value'})?

Hey,
Yes as you can see in screenshot noticeError doesn't exist on
newrelicWebClient
I also tried to use global newrelic from chrome console to test it global
newrelic is able to send errors but I don't receive anything on console.
On Fri, Feb 16, 2024, 20:24 Patrick Housley @.***>
wrote:

@master96 https://github.com/master96 Are you getting an error when you
call newrelicWebClient?.noticeError(e,{some_key:'value'})?
—
Reply to this email directly, view it on GitHub
https://github.com/newrelic/newrelic-browser-agent/issues/895#issuecomment-1949281805,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AC47SUQG7ZX3HNZJCU457ALYT66AJAVCNFSM6AAAAABDKWBJ4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBZGI4DCOBQGU
.
You are receiving this because you were mentioned.Message ID:
@.***>

@master96 Did you look at the screenshot I posted? I am sorry but we seem to be going in circles. Please try calling the method and provide an actual error the agent is producing.

@master96 Are you still having issues with the API methods?

Closing this issue since there has not been any engagement in 4 days.


Tests for code used in competition

This issue is connected with #40

Serious progress was made by #93


Lazyload winners

Lazy load winners information on mouse hover.

Closed and reopened PR to trigger Travis rebuild.


Eviction of assets during hot reload is serial

https://github.com/flutter/flutter/blob/7c60b7405a911d37ccbedf120c59e84b74d6cec1/packages/flutter_tools/lib/src/run_hot.dart#L302-L303
We should be sending on vm service message that evicts all the assets at once, as opposed to sending serial messages to evict each asset one at a time.

Discovered during initial investigation into https://github.com/flutter/flutter/issues/17956

This has since been fixed: https://github.com/flutter/flutter/blob/master/packages/flutter_tools/lib/src/run_hot.dart#L910


Pivot data is not translated into the response

If a class has something like this:
public function someModel()
{
    return $this->belongsToMany(SomeModel::class)->withPivot('foo');
}

then an object (As an array) will look something like this:
    array (size=12)
      'id' => int 7
      'pivot' =>
        array (size=3)
          'this_class_id' => int 1
          'some_model_id' => int 7
          'foo' => string 'bar' (length=6)

The additional foo value is not returned in the response, so it is just completely lost.
I don't know how it should be implemented with the JSON API standard, but I hope we can figure out some way :)

Maybe this is how it should be returned?
"relationships": {
      "some_models": {
        "data": [
          {
            "type": "some_model",
            "id": "1",
            "type": "A type"
          }
        ]
      }
    }

or
"relationships": {
      "some_models": {
        "data": [
          {
            "type": "some_model",
            "id": "1",
            "pivot": [
              "type": "A type"
            ]
          }
        ]
      }
    }

Thoughts?

@OskarD  Must be second option because we cannot have 2 types in the same json object

@nilportugues "type" was a bad example, I have changed it to foo so it makes more sense.
But I guess it was also a good example, because now we can see why the first solution won't work. I suggest we implement the second one (With a pivot-key inside data)

Second still for me. I agree @OskarD

@nilportugues which component should handle this? Is it php-api-transformer?

"Pivot" should be "attributes".
Work from the https://github.com/nilportugues/php-api-transformer/tree/1.5.1 tag.
As 2.x will be PHP7 only. I intend to support 5.6 and 1.x. No worries.

@OskarD I'm actually brushing up rough edges in the API Transformer projects for a major release sometime this summer with fixes for all bugs reported that have not been solved.

@nilportugues Are you sure about the name of the field (attributes)? I feel like it might be confusing when loading the model and getting it together with the other attributes, as if it belonged to the original resource. Wouldn't it be better to have them inside a pivot field?


Question, usecase for this over eslint a11y?

in udacity's senior dev course the third project is all about accessibility.
Im wondering if this, or the eslint plugin is better to use, or will they both report the same info to me?
thx

What is the difference between this project and eslint a11y?
to top

Since no one has answered this yet.  This is what it says on the eslint-plugin-jsx-a11y repo:

Note: This project does not replace react-a11y, but can and should be used in conjunction with it. Static analysis tools cannot determine values of variables that are being placed in props before runtime, so linting will not fail if that value is undefined and/or does not pass the lint rule.

So one does not replace the other but they are probably used best together.

Thanks @erin-doyle !


Update release test to generate testing repo with Cocoapods tags.

Release testing will add release tag, e.g. Cocoapods-7.9.0, to podspecs without updating tag commit in the sdk repo.

For another PR: Now that everything we test and stage on GitHub is in the open, there is no longer the need for private repos and key management.

For another PR: Now that everything we test and stage on GitHub is in the open, there is no longer the need for private repos and key management.

Do you refer to the private testing repo?
(for prerelease workflow)https://github.com/FirebasePrivate/SpecsReleasing
(for release workflow)https://github.com/FirebasePrivate/SpecsTesting
One of reasons to make it private is a public repo requires a project in the repo and to follow go/releasing, and testing repos do not need to release. Do we need to change the repos to be public? One pro I can think of to make them public is this can enable release/prerelease or presubmit(in the future) workflow for external developers.

I was mostly thinking about reproducibility and being able to run the same scripts locally without needing to remove and adjust for the key, but allowing external people to run the workflows is another advantage. This isn't a huge priority and go/releasing isn't too big a hurdle, but I just wanted to raise it while I was thinking about it.


Add option to explicitly check that InResponseTo is not present

This case is relevant when the application has IdP initiated login flow enabled.
We know for sure in this case that we don't have an associated request_id
available and it must not be present in the assertion.
The proposed solution looks like this:
from onelogin.saml2.auth import OneLogin_Saml2_Auth
from onelogin.saml.response import OneLogin_Saml2_Response

auth = OneLogin_Saml2_Auth(req)
#   I am unsure with regard of location of NO_REQUEST_ID object
auth.process_response(OneLogin_Saml2_Response.NO_REQUEST_ID)

The request_id is an optional parameter, if you don't provide it, the response validator will not check it:
https://github.com/onelogin/python3-saml/blob/master/src/onelogin/saml2/response.py#L126

Hey @pitbulk thanks for taking the time to review the pr.
Please consider what happens in the following case. We provided expected request_id as an argument but there is no InResponseTo in attribute. Validation will be successful which is incorrect. We expected to receive a concrete response but received the something different one.

Extracted from SAML core specs
ID [Required]
An identifier for the request. It is of type xs:ID and MUST follow the requirements specified in Section
1.3.4 for identifier uniqueness. The values of the ID attribute in a request and the InResponseTo
attribute in the corresponding response MUST match.

InResponseTo [Optional]
A reference to the identifier of the request to which the response corresponds, if any. If the response
is not generated in response to a request, or if the ID attribute value of a request cannot be
determined (for example, the request is malformed), then this attribute MUST NOT be present.
Otherwise, it MUST be present and its value MUST match the value of the corresponding request's
ID attribute

InResponseTo [Optional]
The ID of a SAML protocol message in response to which an attesting entity can present the
assertion. For example, this attribute might be used to correlate the assertion to a SAML request that
resulted in its presentation

So basically, if there is a request, it should be a response with InResponseTo value.
If is a IdP-initiated flow, there is no InResponseTo value.
If the SP initiates the flow, you can store the Request ID and then provide it to validate the InResponseTo value.
If you provide a request_id in order to validate the InResponseTo, but there is no InResponseTo, that means that meanwhile you generated the request, an IdP-initiated flow happened, that SAMLResponse is legit and it should not be invalidated by the request_id match, in my opinion.

I am a bit confused here:
If the response is not generated in response to a request, or if the ID attribute value of a request cannot be
determined (for example, the request is malformed), then this attribute MUST NOT be present.
Otherwise, it MUST be present and its value MUST match the value of the corresponding request's
ID attribute

In the case mentioned:
We provided expected request_id as an argument but there is no InResponseTo in assertion.
It seems the the ID attribute value should be able to be determined (we sent it) and it is not malformed. So it MUST be present, but it is not. Shouldn't that violation of a "MUST" not  trigger an error/assertion ?

pinging  @pitbulk


Give the app a little bit of styling

Just thought I'd give the app a little bit of polish

Before
After

Before
After

Let me know what you all think!
/cc @gjtorikian

I like it a lot! Are you happy with it? If so I can merge and release a newer version.
I am not sure sure about the Yarnfile to be honest. I like it, in theory. But will there need to be an update to the README or something to tell people to first brew install yarn? If people can get this project and use npm and yarn to manage dependencies side by side, that's cool.

I like it a lot!

💖

Are you happy with it?

I'm pretty happy with how it turned out. If I find more time I might do another iteration but this is good enough ™  in the meantime.

I am not sure sure about the Yarnfile to be honest. I like it, in theory. But will there need to be an update to the README or something to tell people to first brew install yarn?

I personally use yarn just because I like it better. You can use yarn or npm interchangeably for this app without any issues. But if you'd like me to remove the yarn.lock I'm totally fine with that.


UI: Copying logs from browser is very clunky

If I need to select all logs to get them copied locally, I can't really do that, because CMD+A selects the whole page. I think we need a button to save them as a file

downloading solved with #63. could still add a Copy button.


Save player selections when user selects a hero

This will involve a new endpoint for persisting changes in the composition form as well as the client-side code to hit that endpoint when a change occurs. For now, the endpoint + JS need only work with the hero select menus. Hooking up other parts of the form can come in a later branch. The server-side code will probably have to fill out some other fields in the new records to make them valid.

Done in #44.


What is the kernel function in the example？Can I use other functions？

Did you guys applied * Radial Basis Function * as default kernel function ?
This seems like no specifications for the kernel function in the docs.
RBF: https://en.wikipedia.org/wiki/Radial_basis_function_kernel

Default kernel is Matern 2.5 as suggested by the literature. You are free to change it by invoking the set_gp_params method which calls set_params from sklearn's GP.


Support aircon without /skyfi

Plugin detect my 2 aircon but give 404, because the url to be call is http://IP/common/basic_info without skyfi before common

Hi @lapoPaolacci ,
Could you please check the model number of your Daikin Wifi Module please?
This platform only supports BRP15B61 (the Daikin Airbase controller).

Hi,
I think I have BRP069B41 :(
Best regards

Ah too bad. Your Wifi Controller has a different API and feature set. There are other plugins available on npm for yours. Search for homebridge skyfi.
Sorry!


feat: add multi-provider discovery events

Changes:

Adds EIP-6963 like wallet announcing events for the web provider, so zkApps can select a specific provider (the same standard is followed by Pallad).

@lvshaoping007 bumping this one

@lvshaoping007 bumping this one

Okay, please change this PR to develop branch, thanks a lot


[Hacktoberfest Seoul] Add konsistlibrary to generatePasswordDomain

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Additional context
Add any other context or screenshots about the feature request here.

Hey @behzodhalil ! I will take this issue

130-konsisttogeneratepassword


angular 1.6.3 breaks batarang

Enabling batarang while working with angular 1.6.3 totally breaks the application to watch.
I don't know why, it's working fine in 1.6.2. I use angular via cdn but i don't think the problem comes from that.
Could someone investigate, if project is still alive? thanks.
Here is what chrome's console outputs:

Uncaught TypeError: ac(...).info is not a function
at Ce (angular.js:2793)
at angular.js:33194
at angular.js:6
Ce @ angular.js:2793
(anonymous) @ angular.js:33194
(anonymous) @ angular.js:6
angular-sanitize.js:555Uncaught TypeError: f.module(...).provider(...).info is not a function
at angular-sanitize.js:555
at angular-sanitize.js:6
(anonymous) @ angular-sanitize.js:555
(anonymous) @ angular-sanitize.js:6
angular-messages.js:267Uncaught TypeError: l.module(...).info is not a function
at angular-messages.js:267
at angular-messages.js:6
(anonymous) @ angular-messages.js:267
(anonymous) @ angular-messages.js:6
angular-cookies.js:24Uncaught TypeError: c.module(...).info is not a function
at angular-cookies.js:24
at angular-cookies.js:6
(anonymous) @ angular-cookies.js:24
(anonymous) @ angular-cookies.js:6
angular.js:38Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.6.3/$injector/modulerr?p0=ng&p1=Error%3A %5…udflare.com%2Fajax%2Flibs%2Fangular.js%2F1.6.3%2Fangular.min.js%3A22%3A277)
at angular.js:38
at angular.js:4920
at p (angular.js:402)
at g (angular.js:4880)
at eb (angular.js:4802)
at c (angular.js:1909)
at Object.Pc.ea.resumeBootstrap (angular.js:1938)
at maybeBootstrap (hint.js:569)

As far as I know this is no longer maintained, it was @btford's project and he left google a year ago...

Sorry, I haven't given batarang much love lately :grin:
We should definitely fix this issue, though. I'll look into it this week.

Great! as far as I know, there's no better chrome extension for Angular 1 apps. It would be awful if support stops at 1.6

Same here downloaded Batarang and it's not working.  Hope it will be fixed soon.

Last I heard, there was no one to handle releases to the chrome web store. Do we have someone now?

We have me :smiley:
I would like to merge angular/angular-hint#122 and angular/angular-hint#123 before cutting a new release. I hope to get it out early next week.

Update
angular/angular-hint#123 is in.
I have a better alternative to #122 (correctly detecting _and_tracking watched one-time expressions): angular/angular-hint#124
Once #124 is in (hopefully this week), we can cut the release.

0.10.8 is out, but it's broken. Tracking in #310.


Try a different trigger

Apparently that didn't work to push, so I am trying a different trigger here.

whose branch will win? probably yours, let's be honest.

🚀 success


Replace repeat kv with proper GQA handling.

Repeat kv in the original llama model will copy the data in some cases. Replace it with reshaping the number of heads dimension in the query to the number of tokens dimension (-2).

LGTM! Seems linter needs to be fixed

Smart change! So the q * k^t = [hkv, rep * seq_len, seq_len] and q * k *v = [hkv, rep * seq_len, d], you reshape the output to: [h, seq_len, d] in the end.

Correct. The reshape doesn't affect the result.

LGTM! Thank you for the change. Seems linter needs to be fixed
Yup, fixed!


user-data: move to node module

This moves the userdata resources into the node module.

And also fixes some bugs introduced in #20.

and #25


Please fix your bundle id

Please fill in the following fields:
Unity editor version: 2019.3.6f1
Firebase Unity SDK version: firebase_unity_sdk_6.14.1
Source you installed the SDK (.unitypackage or Unity Package Manager):unitypackage
Firebase plugins in use (Auth, Database, etc.):auth,database,storage
Additional SDKs you are using (Facebook, AdMob, etc.):
Platform you are using the Unity editor on (Mac, Windows, or Linux): windows
Platform you are targeting (iOS, Android, and/or desktop): android
Scripting Runtime (Mono, and/or IL2CPP):IL2CPP
Please describe the issue here:
(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)
Every time I sign in / use auth on my app, sign in goes successfully but then - I get the following message-
Provided authentication credentials are invalid. This indicates your FirebaseApp instance was not initialized correctly. Make sure your google-services.json file has the correct firebase_url and api_key. You can re-download google-services.json from https://console.firebase.google.com/.
Even though I redownloaded the google-services.json many times and even created a new one on the console.
I noticed someone had the same issue and they closed the ticket-https://github.com/firebase/quickstart-unity/issues/450#issuecomment-523096158
Please answer the following, if applicable:
Have you been able to reproduce this issue with just the Firebase Unity quickstarts (this GitHub project)?
What's the issue repro rate? (eg 100%, 1/5 etc)

OK I fixed it by 2 steps-

I copied an old "generate_xml_from_google_services_json.exe" from my previous project + the 4 files come with it.  Which made the "Please fix your bundle id" window disappear. That annoying message kept coming without even running my code.
But I still got "Provided authentication credentials are invalid" after signing
That was a mistake on my end-  FirebaseApp.DefaultInstance.SetEditorDatabaseUrl(*****) It was a wrong URL to my previous project

Hi @shlighter ,
Other people are seeing the repeated bundle ID dialog box errors.  To help us narrow this down, could you let me know which version of the Firebase Release the working generate_xml_from_services_json.exe came from?  Is it from 6.13.0?
Thanks!


file uploading isnt in order??

Hi,
this is the hooks.php
<?php

return [

    // Tasks
    //
    // Here you can define in the `before` and `after` array, Tasks to execute
    // before or after the core Rocketeer Tasks. You can either put a simple command,
    // a closure which receives a $task object, or the name of a class extending
    // the Rocketeer\Abstracts\AbstractTask class
    //
    // In the `custom` array you can list custom Tasks classes to be added
    // to Rocketeer. Those will then be available in the command line
    // with all the other tasks
    //////////////////////////////////////////////////////////////////////

    // Tasks to execute before the core Rocketeer Tasks
    'before' => [
        'setup'   => [],
        'deploy'  => [],
        'cleanup' => [],
    ],

    // Tasks to execute after the core Rocketeer Tasks
    'after'  => [
        'setup'   => [],
        'deploy'  => [
		function($task){
            $task->upload(base_path().'/configs/database_zoli.php', $task->releasesManager->getCurrentReleasePath().'/app/Config/database.php');
            $task->upload(base_path().'/configs/core_release.php', $task->releasesManager->getCurrentReleasePath().'/app/Config/core.php');
			$task->setPermissions($task->releasesManager->getCurrentReleasePath().'/app/Config/core.php');
			$task->setPermissions($task->releasesManager->getCurrentReleasePath().'/app/Config/database.php');
                }
	],
        'cleanup' => [],
    ],

    // Custom Tasks to register with Rocketeer
    'custom' => [],

];

during deploying, the files are created somehow, but during chmod commands it echos that the file doesnt exists.
on the server the file exists, but the permissions isnt set.

Well after.deploy will by definition run after deployment and the setting of permissions happens during the deploy so that makes sense no?

Ok i see. mea culpa
is there a way to set permission after deploy and after that upload?

Ok no wait I misread your custom task. Try removing $task->releasesManager->getCurrentReleasePath() from the setPermissions calls (setPermissions is already relative to the current release)

Also can you paste a log with -vvv from when your custom task tries and fails to set these permissions?

without
$task->releasesManager->getCurrentReleasePath()

its working now.
Thanks.


Status v3

Dear @lazaronixon ,
i noticed, that there is a v3-alpha release. Do you have an ETA for the 3.0 stable?
All the best,
Johannes

I'll be releasing it today since Rais 7.1 is done... 🎉

that is awesome. Will there be an upgrade-path, or is it simply running
rails g authentication --flagX --flagY --flagZ

and then merging changes one by one?
All the best

https://github.com/lazaronixon/authentication-zero/releases/tag/v3.0.0

No update command by now. 🙁. You can run the command again or check what changed in the version.

just a quick update on this one here:
I successfully updated my app from 2.x to 3.0.
I just re-ran my rails g authentication --my --custom --flags command and then go through the git-diff and resolved all my merge-conflicts. Took about 1h - works like a breeze..
Thanks a lot!


Converted the flattened JSON structure to all lowercase, prettified it and removed an incorrect mapping

I've taken the flattened JSON structure provided by @yash1994 , converted the whole json to lowercase and prettified it.
I also saw that there was a mapping where the key China is mapped to Taiwan. I have removed that mapping.
This would make it easier to use as a lookup to eliminate map acronyms with their countries

Thanks for the prettify!
What is the intent behind normalize to lowercase?

I plan to use this JSON to map acronym to place name. So, when the NLP
extraction is done am passing the extracted travel location to a function
that uses this JSON as a lookup. While passing the extracted travel
location, I'm passing it in lowercase and hence it wouldn't matter if the
location is U.K. or u.k. or U.k. I would still be mapping it to
United Kingdom.
On Thu, 2 Apr, 2020, 7:07 am Nirant<EMAIL_ADDRESS>wrote:

Thanks for the prettify!
What is the intent behind normalize to lowercase?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/NirantK/coronaIndia/pull/21#issuecomment-607571960,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAMAZPZE37Z7EIPIVCFSC6TRKPT5HANCNFSM4LZAK3VQ
.

I feel we can avoid adding interim datasets which are computationally cheap to make. It makes the data flow hard to understand for myself and other developers.
We can consider this as a cheap one-off step which can be done at start of webapp, given the small dictionary size. Code also makes the transformation more explicit and weakly documented.
Closing the PR for now. Please raise a separate PR if we need Prettify'd JSON.


CI failure: linear search algorithm, string array and recursive algorithm.

Currently, CI fails due to the linear search algorithm.
There is an issue with the recursive algorithm for string arrays.
proc recursiveLinearSearch*[T](arr: openArray[T], key: T, idx: Nat = arr.low.Nat): OptNat=
  # Recursion is another method for linear search.
  # Recursive calls replace the for loop.

  # `none(Natural)` is returned when the array is traversed completely
  # and no key is matched, or when `arr` is empty.
  if idx > arr.high:
    return none(Natural)
  if arr[idx] == key:
    return some(idx)
  echo idx, " ", arr[idx], " ", key
  recursiveLinearSearch(arr, key, idx + 1)

for the test:
var arr = ["0", "c", "a", "u", "5", "7"]
check recursiveLinearSearch(arr, "5") == some(Natural(4))

outputs:
0  5
1  5
2  5
3  5
4  5
5  5

Expected output:
0 0 5
1 c 5
2 a 5
3 u 5

We could maybe fix it by converting the example test array to a sequence:
var arr = @["0", "c", "a", "u", "5", "7"]

Currently the testcase "Search in a string array matching with a string matching value" is failing, returning None, due to openArray of arr resolving to array of empty strings, inside the recursive search it's ["", "", "", "", "", ""].
Changing the arr to const or to a variable seq (instead of array) fixes execution.
I'll try to investigate and post an upstream issue.

Thanks for the minimal repro and upstream reports, and sorry for the duplicate issue.
For the linear search script, it felt fine to convert to a variable seq. I am uneasy to statically allocate an array of dynamically allocated strings. I did not even thought changing arr to const to be fair.
Is it due to the default argument depending from another argument?

Yeah, although I'm not sure why it consistently resolves to an array of empty strings.
Using consts with strings or other dynamically allocated types, such as tables, is perfectly fine in Nim. Personally, if it's a literal, it goes into a const, because it's what literal is. On the other hand, if all the test cases used consts we wouldn't have found this bug, so it's win-win situation all around!

To be fair arr.low will always be 0 and an int, openArray[T] does not keep index information.

@beef331 Thanks, I am going to change this.


Stream does not implement Send

I get the below error,
future cannot be sent between threads safely
the trait `Send` is not implemented for `(dyn Stream<Item = Result<ListDocumentsResponse<workspace::WorkSpace>, azure_core::error::Error>> + 'static)`
required for the cast to the object type `dyn Future<Output = Vec<workspace::WorkSpace>> + Send`rustc
cosmos_service.rs(57, 20): future is not `Send` as this value is used across an await
cosmos_service.rs(53, 19): consider moving this into a `let` binding to create a shorter lived borrow

Code:
let respo = self             .client             .list_documents()             .into_stream::<WorkSpace>()             .next()             .await             .unwrap().unwrap().documents;
Could someone please help me?

The issue is that the Stream returned from list_documents().into_stream() does not implement Send (i.e., in other words, it cannot be safely transferred between threads. I opened a PR #758 that requires that creating a stream in the SDK makes a stream that is thread safe and implements Send. With that fix, this issue should hopefully go away. Sorry for the headache!

Similar issue, for QueryDocumentResponse

@kamlesh-nb I'm not seeing that. I opened #773 to confirm.


license didn’t get recognized

Describe the bug
Licenses were created in the ambassador cloud and applied to the pod but continuous restarts were observed and upon seeing the logs it was the license server that was shutting down due to an invalid license.
Timeline - 19th OCT to 20th OCT.
To Reproduce
Steps to reproduce the behavior:

Create a license on Ambassador cloud
Start the pod with this license (version 3.8.x)
wait for a few days to observe the license failure.
Attaching logs here for your reference

{"CMD":"entrypoint","PID":1,"THREAD":"/envoy","file":"/go/vendor/github.com/datawire/dlib/dgroup/group.go:375","func":"github.com/datawire/dlib/dgroup.(*Group).goWorkerCtx.func1.1","level":"debug","msg":"goroutine \"/envoy\" exited without error","time":"2023-10-20 03:50:17.0160"}
[2023-10-20 03:50:17 +0000] [28] [INFO] Worker exiting (pid: 28)
[2023-10-20 03:50:17 +0000] [14] [INFO] Shutting down: Master
{"CMD":"entrypoint","PID":1,"THREAD":"/diagd","dexec.pid":14,"file":"/go/vendor/github.com/datawire/dlib/dexec/cmd.go:255","func":"github.com/datawire/dlib/dexec.(*Cmd).Wait","level":"info","msg":"finished successfully: exit status 0","time":"2023-10-20 03:50:17.2662"}
{"CMD":"entrypoint","PID":1,"THREAD":"/diagd","file":"/go/vendor/github.com/datawire/dlib/dgroup/group.go:375","func":"github.com/datawire/dlib/dgroup.(*Group).goWorkerCtx.func1.1","level":"debug","msg":"goroutine \"/diagd\" exited without error","time":"2023-10-20 03:50:17.2664"}
{"CMD":"entrypoint","PID":1,"THREAD":":shutdown_status","file":"/go/vendor/github.com/datawire/dlib/dgroup/group.go:84","func":"github.com/datawire/dlib/dgroup.logGoroutineStatuses","level":"info","msg":"  final goroutine statuses:","time":"2023-10-20 03:50:17.2666"}
{"CMD":"entrypoint","PID":1,"THREAD":":shutdown_status","file":"/go/vendor/github.com/datawire/dlib/dgroup/group.go:95","func":"github.com/datawire/dlib/dgroup.logGoroutineStatuses","level":"info","msg":"    /amb-sidecar             : exited with error","time":"2023-10-20 03:50:17.2667"}
{"CMD":"entrypoint","PID":1,"THREAD":":shutdown_status","file":"/go/vendor/github.com/datawire/dlib/dgroup/group.go:95","func":"github.com/datawire/dlib/dgroup.logGoroutineStatuses","level":"info","msg":"    /ambex                   : exited without error","time":"2023-10-20 03:50:17.2667"}
{"CMD":"entrypoint","PID":1,"THREAD":":shutdown_status","file":"/go/vendor/github.com/datawire/dlib/dgroup/group.go:95","func":"github.com/datawire/dlib/dgroup.logGoroutineStatuses","level":"info","msg":"    /diagd                   : exited without error","time":"2023-10-20 03:50:17.2667"}
{"CMD":"entrypoint","PID":1,"THREAD":":shutdown_status","file":"/go/vendor/github.com/datawire/dlib/dgroup/group.go:95","func":"github.com/datawire/dlib/dgroup.logGoroutineStatuses","level":"info","msg":"    /envoy                   : exited without error","time":"2023-10-20 03:50:17.2667"}
{"CMD":"entrypoint","PID":1,"THREAD":":shutdown_status","file":"/go/vendor/github.com/datawire/dlib/dgroup/group.go:95","func":"github.com/datawire/dlib/dgroup.logGoroutineStatuses","level":"info","msg":"    /external_snapshot_server: exited without error","time":"2023-10-20 03:50:17.2668"}
{"CMD":"entrypoint","PID":1,"THREAD":":shutdown_status","file":"/go/vendor/github.com/datawire/dlib/dgroup/group.go:95","func":"github.com/datawire/dlib/dgroup.logGoroutineStatuses","level":"info","msg":"    /healthchecks            : exited without error","time":"2023-10-20 03:50:17.2668"}
{"CMD":"entrypoint","PID":1,"THREAD":":shutdown_status","file":"/go/vendor/github.com/datawire/dlib/dgroup/group.go:95","func":"github.com/datawire/dlib/dgroup.logGoroutineStatuses","level":"info","msg":"    /memory                  : exited without error","time":"2023-10-20 03:50:17.2668"}
{"CMD":"entrypoint","PID":1,"THREAD":":shutdown_status","file":"/go/vendor/github.com/datawire/dlib/dgroup/group.go:95","func":"github.com/datawire/dlib/dgroup.logGoroutineStatuses","level":"info","msg":"    /snapshot_server         : exited without error","time":"2023-10-20 03:50:17.2669"}
{"CMD":"entrypoint","PID":1,"THREAD":":shutdown_status","file":"/go/vendor/github.com/datawire/dlib/dgroup/group.go:95","func":"github.com/datawire/dlib/dgroup.logGoroutineStatuses","level":"info","msg":"    /watcher                 : exited without error","time":"2023-10-20 03:50:17.2669"}
{"CMD":"entrypoint","PID":1,"file":"/go/pkg/busy/busy.go:87","func":"github.com/emissary-ingress/emissary/v3/pkg/busy.Main","level":"error","msg":"shut down with error error: exit status 1","time":"2023-10-20 03:50:17.2669"}

Expected behavior
Smooth running of ambassador pods
Versions (please complete the following information):

Ambassador - 3.8.0 (is what we tried)
Kubernetes environment - EKS AWS
Version - 1.27

Hi @roundssai , when was the license created - believe you said in our Slack channel that was Oct 9th.   Were you continually connected to Ambassador Cloud between Oct 9th and when you started observing these errors on Oct 19th?

@cindymullins-dw Yes, between OCT 9th to 18th we faced no issues. we suddenly started facing issues on that day and had to revert.

Hi @roundssai , I'm not finding an Ambassador Cloud outage during the time in question.  Also, if Edge Stack cannot reach Cloud because of an outage, Edge Stack won’t shut itself down - it continues to operate as normal and will check again for Cloud availability.  So I think we can rule out Cloud server availability as the cause.
Considering other possibilities, did you try to reapply your existing license after getting errors and did it work or continue to fail?  Did you create a new license?  Were you using a Community license - how did you create the license that failed?  If you can share (DM me if you prefer) the license key I may be able to check whether it perhaps expired or see the status history.

@cindymullins-dw Right now we have rolled back to the older version after that issue.
The license was created by following the exact same steps mentioned in the document. One difference I noticed is that in the dashboard I see that it says the key never expires but during the outage period, I was able to see the expiry as 29th OCT or so. I can DM you the account details and you could probably check if there an issue.

We are experiencing restarts every 2 day or so. In Ambassador Cloud it's stated that our licences are valid for two days as well. In logs of the edge-stack pod we see the following messages:
level=error msg=“license manager shutdown with err: unlicensed: a valid unexpired license is required”

and
license-manager	licensemgt/manager.go:227	license manager shutdown initiated

So, a pod is definitely restarted due to the licence issues.
The following is shown in our Ambassador Cloud(I made a screenshot a few minutes ago):

We are having the same issue -
Amazon EKS 1.24 and edge-stack 3.11.1  deployed using Helm chart version 8.11.1
logs below:
github.com/datawire/apro/v3/cmd/amb-sidecar.Main                                                                                │
│     github.com/datawire/apro/v3/cmd/amb-sidecar/main.go:96                                                                                │
│ github.com/emissary-ingress/emissary/v3/pkg/busy.Main                                                                                │
│     github.com/emissary-ingress/emissary/v3@v3.10.0-dev.0.20240626224556-5f7ac3008006/pkg/busy/busy.go:86                                    │
│ main.main                                                                                │
│     github.com/datawire/apro/v3/cmd/busyambassador-edge-stack/main.go:43                                                                     │
│ runtime.main                                                                                │
│     runtime/proc.go:271                                                                                │
│ time="2024-07-10 15:04:26.0474" level=error msg="shut down with error error: unable to get a valid license during start-up, shutting down" f │
│ 2024-07-10 15:04:26 diagd 3.11.1 [P28TAEW] INFO: EnvoyConfig: Generating V3                                                                  │
│ time="2024-07-10 15:04:26.0520" level=info msg="finished with error: exit status 1" func="github.com/datawire/dlib/dexec.(*Cmd).Wait" file=" │
│ time="2024-07-10 15:04:26.0521" level=error msg="goroutine "/amb-sidecar" exited with error: exit status 1" func="github.com/datawire/dlib │
│ time="2024-07-10 15:04:26.0522" level=info msg="shutting down (gracefully)..." func="github.com/datawire/dlib/dgroup.(*Group).launchSupervis │
│ time="2024-07-10 15:04:26.0528" level=info msg="sending SIGINT" func="github.com/datawire/dlib/dexec.(*Cmd).Start.func1" file="/go/vendor/gi │
│ time="2024-07-10 15:04:26.0529" level=info msg="sending SIGINT" func="github.com/datawire/dlib/dexec.(*Cmd).Start.func1" file="/go/vendor/gi │
│ time="2024-07-10 15:04:26.0530" level=info msg="shutting down (gracefully)..." func="github.com/datawire/dlib/dgroup.(*Group).launchSupervis │
│ time="2024-07-10 15:04:26.0531" level=info msg="shutting down (gracefully)..." func="github.com/datawire/dlib/dgroup.(*Group).launchSupervis │
│ [2024-07-10 15:04:26 +0000] [13] [INFO] Handling signal: int


Does chef provisioning loadbalancer driver support elbv2

Hi ,
I am trying to create an application loadbalancer with load_balancer resource but it does not recognise the latest loadbalancer options as per aws doc. I get an error as below:
ArgumentError
-------------
unexpected option type

Resource Declaration:
---------------------
# In /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/dsl/chef_provisioning.rb

 43:             self.#{method_name}(*args, &block)
 44:           end

Compiled Resource:
------------------
# Declared in /opt/chefdk/embedded/lib/ruby/gems/2.3.0/gems/chef-12.17.44/lib/chef/dsl/chef_provisioning.rb:43:in `load_balancer'

load_balancer("pub-elb") do
  action [:create]
  retries 0
  retry_delay 2
  default_guard_interpreter :default
  chef_server {:chef_server_url=>"chefzero://localhost:8889", :options=>{:client_name=>"ip-x-y-x-o", :signing_key_filename=>nil, :api_version=>"0"}}
  driver "aws"
  load_balancer_options {:subnets=>["xxxxxx", "xxxxxx"], :security_groups=>["pub_elb_sg"], :scheme=>"internet-facing", :type=>"application", :attributes=>[{:key=>"idle_timeout.timeout_seconds", :value=>"60"}, {:key=>"deletion_protection.enabled", :value=>"false"}]}
  declared_type :load_balancer
  cookbook_name "infra"
  recipe_name "create_public_elbv2"
end

Platform:
---------
x86_64-linux

========================================================
Is there a support for the application load balancer in the driver

There is no support for ALBs yet. I opened https://github.com/chef/chef-provisioning-aws/issues/502 for adding the feature.


Empty Runtime never replaced

I'm trying to integrate the pluging in the angular2-seed template but I always get the default "empty" runtime in the build:
/***/ 711:
/***/ function(module, exports) {

	var warn = "offline-plugin: runtime.install() was executed without OfflinePlugin being added to webpack.config.js. " +
	  "The installation of offline-plugin has not been performed. " +
	  "You can ignore this message if you are skipping the OfflinePlugin during development. " +
	  "Otherwise, you may have a configuration issue.";

	if (console.warn) {
	  console.warn(warn);
	} else if (console.log) {
	  console.log(warn);
	}

	exports.install = function() {};
	exports.applyUpdate = function() {};

/***/ }

The plugin is actually properly configured, since I do see changes when I provide more options (ex. not providing AppCache output), and I do see the ServiceWorker output file (sw.js) in the dist folder.
What else could I be missing?

Hi @unsafecode.

What else could I be missing?

Maybe nothing, it's weird in webpack and depends on how you run it. How do you run the build: 1) with cli webpack?; 2) programmatically in node.js?; 3) with webpack-dev-server?

Hi @NekR,
I'm using the CLI:
webpack --inline --colors --progress --display-error-details --display-cached
Also tried the --production switch - was thinking that the plugin might activate in PROD mode only.
Additionally, I also use webpack-dev-server when live coding.

What do the --inline switch? I don't see it in any docs. Is it webpack 2?

Additionally, I also use webpack-dev-server when live coding.

Well, this plugin doesn't work with hot-reloading, if something.

@NekR OK, fine for the dev server - it doesn't really matter while developing.
AFAIK, I could not find the --inline docs as well (it was already in the template). Yet still, I tried to remove it but nothing changes.

@unsafecode I'll check it of course, but basically this plugin cannot adequately work with hot-reloading. It can probably work with normal webpack-dev-server, but I'm not sure if it makes sense.

@NekR I also believe hot-reloading w/ SW does not really make sense.
On the other hand, what can I change for the regular build?

Hi @unsafecode, sorry for delay.

On the other hand, what can I change for the regular build?

I'm not sure because everything supposed to work. I didn't have time to test with that template yet, I'll do as soon as I can.
Also, you didn't answer my question before: do you use webpack 2 or 1? _angular2-seed template )seems to depend on wepback 1, but I ask just to be sure.

Hi @unsafecode, I just checked the angular2-seed project and found that awesome-typescript-loader is the problem here -- by some reason webpack cannot resolve offline-plugin/runtime when that loader is used.
This is how it looks when I build it:

I'll try to investigate what is going on there, but clearly, that loading is doing something wild with modules resolving.

Okay, I just checked and it works with:
require('offline-plugin/runtime').install();

but doesn't with:
import OfflinePlugin from 'offline-plugin/runtime';

OfflinePlugin.install();

which is correct because there is no TypeScript definition for offline-plugin.
Does it work for you with require? Maybe you want to contribute TS definition to this repo? (Can it be defined here instead of on DefinitelyTyped?)

@NekR Nice, thanks for your findings! Maybe you can try with:
import * as OfflinePlugin from 'offline-plugin/runtime';

And sure, I can contribute to the typings definition for this repo.

TypeScript should import the module anyway and error is on build time, not runtime, so it's purely loader + TypeScript situation. So, did require worked for you?

@NekR Yes, require worked


memory mapped file or similar windowing support

Does this view support separation of scrollbar from contents?
I'm thinking of large file support here. Has this been tested for displaying large files, or with scroll-handlers for loading fixed-size buffers
https://github.com/Dax89/QHexView/tree/master/document/buffer looks promising, but as there are no tests I thought it might be easier to ask

The widget will paint only the visible area according to the scrollbar's position, so it's pretty fast.
Editing a large file is a bit tricky, you need to inherit from this class: https://github.com/Dax89/QHexView/blob/master/document/buffer/qhexbuffer.h, and implement the abstract methods with some large file support algorithm (gap buffer, piece chains etc).

I'll close this.

Editing a large file is a bit tricky, you need to inherit from this class: https://github.com/Dax89/QHexView/blob/master/document/buffer/qhexbuffer.h, and implement the abstract methods with some large file handling algorithm (gap buffer, piece chains etc).

exactly what I was asking I think, so this is presentation and implementing that would be what controlled implementation specifics :+1:
Very cool library btw


Added API Documentation using Doxygen 1.8.13

Ready for Review

Thanks for this! Can we remove all generated docs from source control? Feel free to add a script that triggers generation when needed.

This is looking good! Thanks! 👍


Add 'delete-instances' option to RDS Cluster 'delete' action

Add unit tests and documentation for RDS Cluster 'delete'/'delete-instances' action option
Also tidied up various Flake8 issues with rdscluster.py
Fixes #371

Made changes and rebased.

could update this pull request

Will do...

Rebased.

lgtm


Minor edits for personalisation.

Changed to global light theme, changed general font to Inconsolata, switched out Unicode icons for text, made window borderless.

Thank you


react-native and "SyntaxError: 'import' and 'export' may appear only with 'sourceType: module' (1:0)"

I am getting the above error from babylon when running a react-native app in the simulator (debug mode).
SyntaxError: 'import' and 'export' may appear only with 'sourceType: module' (1:0)
    at Parser.pp$5.raise (/path-to/node_modules/babylon/lib/index.js:4246:13)
    at Parser.pp$1.parseStatement (/path-to/node_modules/babylon/lib/index.js:1749:16)
    at Parser.pp$1.parseBlockBody (/path-to/node_modules/babylon/lib/index.js:2133:21)
    at Parser.pp$1.parseTopLevel (/path-to/node_modules/babylon/lib/index.js:1645:8)
    at Parser.parse (/path-to/node_modules/babylon/lib/index.js:1537:17)
    at Object.parse$1 [as parse] (/path-to/node_modules/babylon/lib/index.js:6466:37)
    at extractDependencies (/path-to/node_modules/react-native/packager/react-packager/src/JSTransformer/worker/extract-dependencies.js:29:23)
    at transform (/path-to/node_modules/react-native/packager/react-packager/src/JSTransformer/worker/index.js:53:9)
    at module.exports (/path-to/node_modules/react-native/packager/transformer.js:130:3)
    at transformCode (/path-to/node_modules/react-native/packager/react-packager/src/JSTransformer/worker/index.js:27:3)
transformed 35/139 (25%)/path-to/node_modules/babylon/lib/index.js:4249
  throw err;

I'm currently using the babel-preset-react-native-stage-0 package, in order to use decorators with MobX.
Babylon/Babel Configuration
my package.json:
  "dependencies": {
    "apsl-react-native-button": "^3.0.0",
    "babel-preset-react-native-stage-0": "^1.0.1",
    "mobx": "^2.7.0",
    "mobx-react": "^3.5.5",
    "react": "15.3.2",
    "react-native": "0.38.0",
    "react-native-autogrow-textinput": "^2.0.3",
    "react-native-awesome-button": "^1.6.0",
    "react-native-couchbase-lite": "git://github.com/adamski/react-native-couchbase-lite.git#gradle-experimental",
    "react-native-keep-awake": "git://github.com/adamski/react-native-keep-awake.git#experimental-gradle",
    "react-native-keyboard-aware-view": "^0.0.11",
    "react-native-keyboard-dodging-view": "git://github.com/adamski/react-native-keyboard-dodging-view#upper-text-inputs",
    "react-native-modalbox": "^1.3.4",
    "react-native-navigation": "git://github.com/adamski/react-native-navigation.git#gradle-experimental-update",
    "react-native-searchbar": "^0.4.2",
    "react-native-simple-store": "^1.0.1",
    "react-native-swipe-list-view": "^0.3.1"
  },

and my .babelrc:
{
  "presets": ["react-native", "react-native-stage-0/decorator-support"]
}

Expected Behaviour
No error message, debug builds
Current Behaviour
Error message comes up on npm start and app fails to load
Your Environment

software
version

Babylon
6.11 - 6.14

node
6.8.0

npm
3.10.8

yarn
0.17.9

Operating System
OSX 10.11

Also ag babylon yields
yarn.lock
200:    babylon "^6.11.0"
885:    babylon "^6.11.0"
896:    babylon "^6.11.0"
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>913:  resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.14.1.tgz#956275fab72753ad9b3435d7afe58f8bf0a29815"
3478:    babylon "^6.13.0"
3555:    babylon "^6.13.1"

which suggests a conflict among different versions of babylon?
I asked the question on SO a few days ago: http://stackoverflow.com/questions/41424631/syntaxerror-import-and-export-may-appear-only-with-sourcetype-module-1/41472361#41472361 (and also put a bounty on it!)

Please ask in the react-native tracker or maybe you already fixed it by now. But we cannot help you here as we do not know how babylon is used and which package is using it.

To those who may have found this post, I solved this problem by changing my .babelrc to
{
  "presets": ["babel-preset-react-native"]
}


Move Google Maps enabled check in settings

Make to Frappe as well

Made at https://github.com/frappe/frappe/pull/6052


𝔻𝔼ℍℝ𝔸𝔻𝕌ℕ 𝔼𝕊ℂ𝕆ℝ𝕋𝕊 🐌 ⋆.:**:.7⃣0⃣7⃣8⃣8⃣☆9⃣2⃣6⃣0⃣1⃣*.:｡⋆🐐 H̾i̾g̾h̾-̾E̾n̾d̾ ⋆ℂ𝔸𝕃𝕃 𝔾𝕀ℝ𝕃𝕊 I̷N̷ 𝔻𝔼ℍℝ𝔸𝔻𝕌ℕ

Satisfaction is the first basic need , every person deserves Just By Catching @eric  ☎70788-926-01 at Dehradun Call Girls anytime when needed. Nothing matter most for the new selected President of America @Donald Trump , he just wanted to improve the quality of luxurious Call Girls In Dehradun. Immediately after winning the Presidents Election he contact X CEO ELON MUSK to have a look at what Dehradun Escorts are going through. Are they getting proper treatment and care by the persons they are meeting.
Uploading call girls dehradun .pdf…
No matter what , but you can anytime check the INSTAGRAM GMAIL ID'S of adult services providing Escorts In Dehradun  Just By Catching @eric  ☎70788-926-01 . You are very lucky , as we are there for you at any phase of your growing from boy to an adult.
Meeting proper clean and hygienic Call Girls Dehradun are the by results of the efforts made by our most trust Escorts Service In Dehradun Providing Agency. You can also get Dehradun Call Girl phone number and whatsup number just by visiting our site.
No one can cheat now Catching @eric  ☎70788-926-01 , as best Call Girl In Dehradun Service providing agency is on your side.

Call/ Whatsapp- Dehradun Call Girls Call Girls in Dehradun Call Girls Service, Indian Call Girls in Dehradun, Russian Call Girls in Dehradun, Independent Call Girls in Dehradun Cheap Price Call Girls in Dehradun Russian Call Girls in Dehradun, Dehradun Call Girls. I've Used the Service from this agency history in Dehradun Area. The Call Girl was so corporative and Fashionable. She Came Into my hostel room. I got This Dubai Call Girl figures from Dehradun so straightway I communicated her. I'm so happy after using this agency service. This is largely recommended if you're a caller in Dubai and you do n’t have an idea how to get the Call Girls In Dubai. This agency is having a big collection of Indian Call Girls In Dubai and Pakistani Call Girls In Dubai and the stylish thing about it's they all are vindicated, staff.
Indeed They've a huge variety of Independent Call Girls In Dehradun as well. This agency is holding a verified Staff which is a great occasion for every stoner in Dubai or any part of Dehradun, After reading numerous positive reviews about this company i've decided to give it a chance. I communicate on this Call Girl number mentioned in the snippet. The whole process was veritably transparent and clear. I entered the Call Girls prints I chose one of them if I ’m not wrong she belongs from Pakistan. She came in my hostel near Al rigga coming hum Dubai area. I paid her 2500 aed for 4 hrs. We spent together veritably good time. She was neat and clean and she was wearing full black dress. I really liked her sense of humor. After the 8 hrs she gave me 30 mins redundant for some gossip. i'll always flash back that Golden Shower. This is how my date ended up. Everything was great. This is called a quality service. I'll always consider this Call Girl agency in future. Cheers A good option for practical people. Real girls with real Call Girls prints Dehradun. It’s social nature if you pay for commodity you bear the stylish results from it. This same synopsis happed in my case. After numerous attempts eventually I've set up an established Call Girls Agency in Dehradun.. I prefer them to use their Call Girls because they're vaccinated and taking care of hygiene as well. they're clean and have a positive station. It was simple for me I was searching Dubai Call Girls figures and set up this profile on proven Expert. also I communicate their Tele frequenter he suggested Sam in 4 hrs for 2500 and guess what it was lovely moments being with her. Now I don't need to go anywhere or to anyone differently.


feat: allow multiple sql statements in query string

I hereby agree to the terms of the GreptimeDB CLA
What's changed and what's your intention?
This patch makes all internal sql handler to treat input sql query string as multiple statements. Key changes includes:

frontend and datanode sql handler returns Result<Vec<Output>>
query engine parses sql string to Result<Vec<LogicPlan>>
grpc api still treats sql as one single statement
prometheus remote read still treats sql as one single statement

Residual discussions:

Should we make this mechanism an API-tier concept so we can keep 1:1 mapping of sql string to logic plan in query engine? And is it viable without massive refactoring?
Should we return Result<Vec<Output>> or Vec<Result<Output>>? What happens if one statement errors in execution, abort remaining execution? Should results of previous successful execution be returned?

Checklist

[ ]  I have written the necessary rustdoc comments.
[ ]  I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

Fixes #468
Fixes https://github.com/GreptimeTeam/dashboard/issues/19

There are some conflicts @sunng87

Updated, PTAL @evenyag @waynexia @MichaelScofield


Show stack labels 167250651 attempt 2

This PR builds on top of #1740 Please make sure it is merged first.
Implements cf labels stack STACKNAME
Use only commit 2c8c22eba3363c991aaf1f02cbc24721fdf51e66
Diff for this PR on its actual base branch:
git diff origin/unset-buildpack-labels-166986384 origin/show-stack-labels-167250651-attempt-2
Implements story https://www.pivotaltracker.com/story/show/167250651

This was merged into master on 2019-08-21


[Clojure] (ndarray/* ndarray num) resulting in zero ndarray

Description
ndarray/* results in zero ndarray when second arg is float in range (0,1). For example: 0.3 or 0.9
Environment info
----------Python Info----------
('Version      :', '2.7.16')
('Compiler     :', 'GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1<IP_ADDRESS>)')
('Build        :', ('default', 'Mar  4 2019 09:02:22'))
('Arch         :', ('64bit', ''))
------------Pip Info-----------
('Version      :', '19.0.3')
('Directory    :', '/usr/local/lib/python2.7/site-packages/pip')
----------MXNet Info-----------
No MXNet installed.
----------System Info----------
('Platform     :', 'Darwin-18.5.0-x86_64-i386-64bit')
('system       :', 'Darwin')
('node         :', 'DmitrijeevsMBP3.guest')
('release      :', '18.5.0')
('version      :', 'Darwin Kernel Version 18.5.0: Mon Mar 11 20:40:32 PDT 2019; root:xnu-4903.251.3~3/RELEASE_X86_64')
----------Hardware Info----------
('machine      :', 'x86_64')
('processor    :', 'i386')
machdep.cpu.brand_string: Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM PBE SSE3 PCLMULQDQ DTES64 MON DSCPL VMX EST TM2 SSSE3 FMA CX16 TPR PDCM SSE4.1 SSE4.2 x2APIC MOVBE POPCNT AES PCID XSAVE OSXSAVE SEGLIM64 TSCTMR AVX1.0 RDRAND F16C
machdep.cpu.leaf7_features: SMEP ERMS RDWRFSGS TSC_THREAD_OFFSET BMI1 HLE AVX2 BMI2 INVPCID RTM SMAP RDSEED ADX IPT SGX FPU_CSDS MPX CLFSOPT
machdep.cpu.extfeatures: SYSCALL XD 1GBPAGE EM64T LAHF LZCNT PREFETCHW RDTSCP TSCI
----------Network Test----------
Setting timeout: 10
Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.0826 sec, LOAD: 1.3385 sec.
Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0584 sec, LOAD: 2.5662 sec.
Timing for FashionMNIST: https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.0633 sec, LOAD: 0.7552 sec.
Timing for Conda: https://repo.continuum.io/pkgs/free/, DNS: 0.0978 sec, LOAD: 0.5505 sec.
Timing for Gluon Tutorial(en): http://gluon.mxnet.io, DNS: 0.1293 sec, LOAD: 1.4447 sec.
Timing for Gluon Tutorial(cn): https://zh.gluon.ai, DNS: 0.1585 sec, LOAD: 1.0627 sec.

Package used (Python/R/Scala/Julia):
Clojure
Clojure 1.10.1
java version "1.8.0_211"
Java(TM) SE Runtime Environment (build 1.8.0_211-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.211-b12, mixed mode)
MXNet:
org.apache.mxnet.contrib.clojure/clojure-mxnet-osx-cpu "1.4.1"
Minimum reproducible example
Please clone mul-bug branch from github: https://github.com/deem0n/deep-book-clojure/tree/mul-bug
Download MNIST files and run lein run
Check update-mini-batch function in core.clj
This is line where weird thing happens!
Steps to reproduce

git clone https://github.com/deem0n/deep-book-clojure.git
cd deep-book-clojure
git checkout mul-bug
utils/get_mnist_data.sh
lein run

Example output
INFO  MXNetJVM: Try loading mxnet-scala from native path.
WARN  MXNetJVM: MXNet Scala native library not found in path. Copying native library from the archive. Consider installing the library somewhere in the path (for Windows: PATH, for Linux: LD_LIBRARY_PATH), or specifying by Java cmd option -Djava.library.path=[lib path].
WARN  MXNetJVM: LD_LIBRARY_PATH=null
WARN  MXNetJVM: java.library.path=/Users/deem0n/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
INFO  org.apache.mxnet.util.NativeLibraryLoader: Replaced .dylib with .jnilib
Just started training...
[11:45:30] src/io/iter_mnist.cc:110: MNISTIter: load 60000 images, shuffle=1, shape=(10000,784)
[11:45:30] src/io/iter_mnist.cc:110: MNISTIter: load 10000 images, shuffle=1, shape=(5000,784)
WARN  org.apache.mxnet.WarnIfNotDisposed: LEAK: [one-time warning] An instance of org.apache.mxnet.NDArray was not disposed. Set property mxnet.traceLeakedObjects to true to enable tracing
WARN  org.apache.mxnet.WarnIfNotDisposed: LEAK: [one-time warning] An instance of org.apache.mxnet.io.MXDataIter was not disposed. Set property mxnet.traceLeakedObjects to true to enable tracing
Mini batches:  5000
.INTERMEDIATE 0.23711163 * 0.3 = 0.0
INTERMEDIATE 0.6643658 * 0.3 = 0.0
INTERMEDIATE 0.3021536 * 0.3 = -0.0
INTERMEDIATE 0.6497877 * 0.3 = 0.0
.INTERMEDIATE 0.20036256 * 0.3 = 0.0
INTERMEDIATE 0.80026126 * 0.3 = 0.0
INTERMEDIATE 0.20262644 * 0.3 = -0.0
INTERMEDIATE 0.847942 * 0.3 = 0.0
.INTERMEDIATE 0.21089189 * 0.3 = 0.0
INTERMEDIATE 0.7596359 * 0.3 = 0.0
INTERMEDIATE 0.21294513 * 0.3 = -0.0
INTERMEDIATE 0.8713788 * 0.3 = 0.0
.INTERMEDIATE 0.21063924 * 0.3 = 0.0
INTERMEDIATE 0.7280767 * 0.3 = 0.0
INTERMEDIATE 0.21684752 * 0.3 = -0.0
INTERMEDIATE 0.7300375 * 0.3 = 0.0
.INTERMEDIATE 0.18669352 * 0.3 = 0.0
INTERMEDIATE 1.0009404 * 0.3 = 0.0
INTERMEDIATE 0.1816474 * 0.3 = -0.0
INTERMEDIATE 1.0679908 * 0.3 = 0.0
.INTERMEDIATE 0.17094775 * 0.3 = 0.0
INTERMEDIATE 0.83719015 * 0.3 = 0.0
INTERMEDIATE 0.18325534 * 0.3 = -0.0
INTERMEDIATE 0.85101455 * 0.3 = 0.0
.INTERMEDIATE 0.27498227 * 0.3 = 0.0
INTERMEDIATE 0.8912646 * 0.3 = 0.0
INTERMEDIATE 0.30358908 * 0.3 = -0.0
INTERMEDIATE 0.9557106 * 0.3 = 0.0
.INTERMEDIATE 0.2489399 * 0.3 = 0.0
INTERMEDIATE 0.8362016 * 0.3 = 0.0
INTERMEDIATE 0.2548548 * 0.3 = -0.0
INTERMEDIATE 0.83855635 * 0.3 = 0.0
.INTERMEDIATE 0.24952362 * 0.3 = 0.0
INTERMEDIATE 0.7708196 * 0.3 = 0.0
INTERMEDIATE 0.25566715 * 0.3 = -0.0
INTERMEDIATE 0.77132565 * 0.3 = 0.0
.INTERMEDIATE 0.32142815 * 0.3 = 0.0
INTERMEDIATE 0.95997936 * 0.3 = 0.0
INTERMEDIATE 0.32541075 * 0.3 = -0.0
INTERMEDIATE 0.9632486 * 0.3 = 0.0

Epoch 0: 107 / 1000
INFO  org.apache.mxnet.util.NativeLibraryLoader: Deleting /var/folders/jn/q10st3jd7ngb24nckb0cv49r0000gp/T/mxnet3086131443089653112/mxnet-scala
INFO  org.apache.mxnet.util.NativeLibraryLoader: Deleting /var/folders/jn/q10st3jd7ngb24nckb0cv49r0000gp/T/mxnet3086131443089653112/libmxnet.so
INFO  org.apache.mxnet.util.NativeLibraryLoader: Deleting /var/folders/jn/q10st3jd7ngb24nckb0cv49r0000gp/T/mxnet3086131443089653112

Notes
Strangely enough when I run code:
(def a (ndarray/* (ndarray/array [0.01 0.02 0.03 0.045 0.05 0.06][2 3]) 0.3))
(ndarray/->vec (ndarray/max a))

it runs correctly in REPL. But even constant ndarray get zero result, if I put it into update_mini_batch
         calc (fn [w nw] (let [ ;m (ndarray/div nw (/ 1.0 eta_by_minibatch_cnt))
                                m  (ndarray/* (ndarray/array [0.01 0.02 0.03 0.045 0.05 0.06][2 3]) 0.3); this one will result in zero matrix !!!
                                _ (println "INTERMEDIATE"  (ndarray/to-scalar (ndarray/max nw)) "*" eta_by_minibatch_cnt "=" (ndarray/to-scalar (ndarray/max m)))
res (ndarray/- w m)]

Even this code will result in zero ndarray !
What have you tried to solve it?

I am using ndarray/div as workaround

Thanks @deem0n for reporting the issue and also for providing a nice repro case 💯

@gigasquid Can you check which function call to the Scala portion. It might be a scala problem

Sorry it took me so long to get back to this.
First, thanks so much for the detailed steps and github/branch to reproduce 💯
Now for the weird news - I did the exact steps outlined to reproduce and didn't get 0 😕
Here is my output (tested on my mac MacBook Pro (Retina, 15-inch, Late 2013) and also MacBook Pro (15-inch 2018)
Just started training...
[10:52:29] src/io/iter_mnist.cc:110: MNISTIter: load 60000 images, shuffle=1, shape=(10000,784)
[10:52:30] src/io/iter_mnist.cc:110: MNISTIter: load 10000 images, shuffle=1, shape=(5000,784)
WARN  org.apache.mxnet.WarnIfNotDisposed: LEAK: [one-time warning] An instance of org.apache.mxnet.NDArray was not disposed. Set property mxnet.traceLeakedObjects to true to enable tracing
WARN  org.apache.mxnet.WarnIfNotDisposed: LEAK: [one-time warning] An instance of org.apache.mxnet.io.MXDataIter was not disposed. Set property mxnet.traceLeakedObjects to true to enable tracing
Mini batches:  5000
.INTERMEDIATE 0.16412103 * 0.3 = 0.049236313
INTERMEDIATE 1.065679 * 0.3 = 0.3197037
INTERMEDIATE 0.1732387 * 0.3 = 0.05197161
INTERMEDIATE 1.069547 * 0.3 = 0.32086414
.INTERMEDIATE 0.25935003 * 0.3 = 0.07780501
INTERMEDIATE 0.75463897 * 0.3 = 0.2263917
INTERMEDIATE 0.2725639 * 0.3 = 0.081769176
INTERMEDIATE 0.84347457 * 0.3 = 0.25304237
.INTERMEDIATE 0.13788064 * 0.3 = 0.041364193
INTERMEDIATE 0.42585567 * 0.3 = 0.1277567
INTERMEDIATE 0.14192675 * 0.3 = 0.042578027
INTERMEDIATE 0.42733985 * 0.3 = 0.12820196
.INTERMEDIATE 0.11281382 * 0.3 = 0.033844147
INTERMEDIATE 0.7060675 * 0.3 = 0.21182026
INTERMEDIATE 0.10053872 * 0.3 = 0.030161617
INTERMEDIATE 0.72622657 * 0.3 = 0.21786799
.INTERMEDIATE 0.13522136 * 0.3 = 0.04056641
INTERMEDIATE 0.5249011 * 0.3 = 0.15747033
INTERMEDIATE 0.13516489 * 0.3 = 0.04054947
INTERMEDIATE 0.52688986 * 0.3 = 0.15806696
.INTERMEDIATE 0.14416938 * 0.3 = 0.043250814
INTERMEDIATE 0.31797385 * 0.3 = 0.09539216
INTERMEDIATE 0.14395727 * 0.3 = 0.043187182
INTERMEDIATE 0.31797716 * 0.3 = 0.09539315
.INTERMEDIATE 0.062895596 * 0.3 = 0.01886868
INTERMEDIATE 0.18372236 * 0.3 = 0.05511671
INTERMEDIATE 0.063012555 * 0.3 = 0.018903768
INTERMEDIATE 0.18413597 * 0.3 = 0.055240795
.INTERMEDIATE 0.052791305 * 0.3 = 0.015837392
INTERMEDIATE 0.54763573 * 0.3 = 0.16429073
INTERMEDIATE 0.0560796 * 0.3 = 0.01682388
INTERMEDIATE 0.5777395 * 0.3 = 0.17332184
.INTERMEDIATE 0.07229043 * 0.3 = 0.02168713
INTERMEDIATE 0.19547275 * 0.3 = 0.058641825
INTERMEDIATE 0.07235214 * 0.3 = 0.021705642
INTERMEDIATE 0.19866998 * 0.3 = 0.059600998
.INTERMEDIATE 0.07617488 * 0.3 = 0.022852464
INTERMEDIATE 0.07070907 * 0.3 = 0.021212723
INTERMEDIATE 0.07607305 * 0.3 = 0.022821916
INTERMEDIATE 0.053693853 * 0.3 = 0.016108157

Epoch 0: 97 / 1000

Very weird! Wondering what Mac model you have? Can you share your specs, OS ?

Also - wondering if it still happens if you upgrade to the latest 1.5.1 jar? https://search.maven.org/search?q=clojure-mxnet


StaticPathHandler not sending the javascript and css files for multiple viewers

Hi,
I have deployed the neuroglancer tornado server behind an Nginx reverse proxy. There is a home page that let us choose the dataset and sends this information back to the tornado server. In tornado, a token handler is created that receives the dataset information, creates a random token and starts a viewer instance with that token.
The problem is when multiple users simultaneously choose and submit the dataset in the browser, only some viewer instances are successfully launched and others result in a 404 error. For the latter, I see that the viewers are not registered i.e the token and the viewer object is not present in the Server.viewers dictionary. This was weird because register_viewer is called for each viewer instance. At first, I thought this is due to some blocking effect and therefore, I used an asynchronous decorator together with ThreadPoolExecutor in the token handler. But the problem still persisted.
Recently, I found out that the StaticPathHandler is throwing the 404 errors whenever the viewer_token is not the same as Server.token. I commented the token generation part in the Server constructor and just used if viewer_token not in self.server.viewers: as a conditional check in StaticPathHandler. This led to a confusing behaviour. For the viewer instances that resulted in a 404, the StaticPathHandler sends the text/html file alright but not the text/css and application/javascript files. Sometimes the CSS is sent but not the javascript while other times, even the HTML is not sent. And for the viewers that were launched successfully, the handler doesn't throw any error and sends all the web files.
I am starting the tornado server by launching start() in server.__main__ like this:
if __name__ == "__main__":
    ap = argparse.ArgumentParser()
    add_server_arguments(ap)
    args = ap.parse_args()
    set_server_bind_address(args.host, args.port)

    initialize_server()
    config.dev_environ = args.dev

    start()
    logger.info(f"Neuroglancer server running at {get_server_url()}")

With this, I have commented start() in the register_viewer() and defer_callback() methods.
Here is the token handler:
class TokenHandler(BaseRequestHandler):
    def post(self):
        logger.info("TokenHandler invoked")
        from neuroglancer.config import params

        try:
            # get dataset information from the frontend
            params.acquisition = self.get_argument("acq_name")
            params.version = self.get_argument("data_version")
            print(params.acquisition)
            print(params.version)

        except tornado.web.MissingArgumentError as e:
            logger.error(e.args[0])
            self.send_error(404)
            return

        token = make_random_token()
        # create a neuroglancer.Viewer() object with the created token
        pf = PropertyFilter(params, ['mi', 'vc', 'sj'], token)
        logger.info(pf.viewer.get_viewer_url())

        try:
            # redirect to the viewer url
            self.redirect(pf.viewer.get_viewer_url())
        except Exception as e:
            self.send_error(404, message=e.args[0])
            return

and the slightly modified static path handler:
class StaticPathHandler(BaseRequestHandler):
    def get(self, viewer_token, path):
        logger.info("StaticPathHandler invoked")
        # if viewer_token != self.server.token and viewer_token not in self.server.viewers:
        if viewer_token not in self.server.viewers:
            logger.error("viewer not registered")
            self.send_error(404)
            return
        try:
            data, content_type = global_static_content_source.get(path)
            logger.warning(f"Data sent by StaticPathHandler {content_type}")
        except ValueError as e:
            self.send_error(404, message=e.args[0])
            return
        self.set_header('Content-type', content_type)
        self.finish(data)

Following are the error and output logs for two viewer instances that resulted in a 404:

None of the files with any mime-type sent

HTML, CSS and javascript sent but some other javascript file is missing

To summarize, I have the following questions in mind:

Why the register_viewer method is called twice, once in Viewer and _ViewerHelper constructors?
Is a viewer instance coupled with the server in any other way?
Why is there a token generation in the Server constructor? Consequently, why the conditional check if viewer_token != self.server.token is done in StaticPathHandler when it is highly likely that the tokens will always be different?

Thanks & regards,
Hashir

The issue is that Server.viewers is a WeakValueDictionary, which means that as soon as the Viewer object itself is no longer referenced from Python, the viewer will not be registered anymore.
For your purpose, you could solve that by saving a reference to the Viewer objects somewhere else for as long as you want them to remain valid.  If you just add each Viewer object to a global list they will remain valid indefinitely, though eventually the server may run out of memory.  Alternatively you could set up something so that they remain valid for a certain period of time after last use.
In regards to your questions:

Why the register_viewer method is called twice, once in Viewer and _ViewerHelper constructors?

I think this is just a mistake, but is harmless.

Is a viewer instance coupled with the server in any other way?

No, but note the weakref issue.

Why is there a token generation in the Server constructor? Consequently, why the conditional check if viewer_token != self.server.token is done in StaticPathHandler when it is highly likely that the tokens will always be different?

I think this might be a remnant from a previous version before the per-viewer tokens were used, and can probably be removed.

The WeakValueDictionary was indeed creating the issue but I didn't understand why some of the viewer instances were dereferenced as soon as creating them. Anyhow, I am using a normal dict to store the viewers attached to the server and dereferencing them when the connection is closed.
You mentioned that I could let the viewer instances remain valid for some time after last use. You do not mean after the connection is closed, right?
And lastly thank you for answering the questions, I have made the changes at my end.

With web servers it can be tricky to define exactly what it means for the connection to close.  Normal HTTP requests are stateless, so there is no specific "connection close" event --- hence the reason for an inactivity timeout.  Neuroglancer does maintain a websocket connection to the server, which does have a well-defined close event, but that can sometimes close spuriously and will attempt to reconnect automatically.  I think it would not be desirable to delete the state any time the websocket closes.


fix: tests errors and warnings - iteration 1 (#12212)

SUMMARY
Remove tests errors and warnings to improve results readability.
#12212
@rusackas @junlincc @villebro
ADDITIONAL INFORMATION

[x] Has associated issue:
[ ] Changes UI
[ ] Requires DB Migration.
[ ] Confirm DB Migration upgrade and downgrade tested.
[ ] Introduces new feature or API
[ ] Removes existing feature or API

thanks for the PRs @michael-s-molina! is there a test plan for them?

thanks for the PRs @michael-s-molina! is there a test plan for them?

thanks for the PRs @michael-s-molina! is there a test plan for them?

We just need to run the tests and verify that the errors and warnings are decreasing. Most of the changes are in spec files and the ones that change a component are covered by a test.

thanks for the PRs @michael-s-molina! is there a test plan for them?

We just need to run the tests and verify that the errors and warnings are decreasing. Most of the changes are in spec files and the ones that change a component are covered by a test.

Codecov Report

Merging #12213 (e4da213) into master (f3ab1f4) will decrease coverage by 2.63%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #12213      +/-   ##
==========================================
- Coverage   66.20%   63.56%   -2.64%
==========================================
  Files         996      485     -511
  Lines       49174    29797   -19377
  Branches     4993        0    -4993
==========================================
- Hits        32554    18940   -13614
+ Misses      16476    10857    -5619
+ Partials      144        0     -144

Flag
Coverage Δ

cypress
?

javascript
?

python
63.56% <ø> (-0.66%)
:arrow_down:

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

Impacted Files
Coverage Δ

superset/db_engines/hive.py
0.00% <0.00%> (-85.72%)
:arrow_down:

superset/db_engine_specs/hive.py
54.61% <0.00%> (-29.62%)
:arrow_down:

superset/db_engine_specs/presto.py
70.56% <0.00%> (-12.78%)
:arrow_down:

superset/db_engine_specs/mysql.py
79.59% <0.00%> (-12.25%)
:arrow_down:

superset/db_engine_specs/sqlite.py
65.62% <0.00%> (-9.38%)
:arrow_down:

superset/utils/celery.py
96.42% <0.00%> (-3.58%)
:arrow_down:

superset/examples/world_bank.py
97.10% <0.00%> (-2.90%)
:arrow_down:

superset/examples/birth_names.py
96.51% <0.00%> (-2.33%)
:arrow_down:

superset/views/database/mixins.py
80.70% <0.00%> (-1.76%)
:arrow_down:

superset/result_set.py
96.69% <0.00%> (-1.66%)
:arrow_down:

... and 505 more

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 f3ab1f4...e4da213. Read the comment docs.

Codecov Report

Merging #12213 (e4da213) into master (f3ab1f4) will decrease coverage by 2.63%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #12213      +/-   ##
==========================================
- Coverage   66.20%   63.56%   -2.64%
==========================================
  Files         996      485     -511
  Lines       49174    29797   -19377
  Branches     4993        0    -4993
==========================================
- Hits        32554    18940   -13614
+ Misses      16476    10857    -5619
+ Partials      144        0     -144

Flag
Coverage Δ

cypress
?

javascript
?

python
63.56% <ø> (-0.66%)
:arrow_down:

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

Impacted Files
Coverage Δ

superset/db_engines/hive.py
0.00% <0.00%> (-85.72%)
:arrow_down:

superset/db_engine_specs/hive.py
54.61% <0.00%> (-29.62%)
:arrow_down:

superset/db_engine_specs/presto.py
70.56% <0.00%> (-12.78%)
:arrow_down:

superset/db_engine_specs/mysql.py
79.59% <0.00%> (-12.25%)
:arrow_down:

superset/db_engine_specs/sqlite.py
65.62% <0.00%> (-9.38%)
:arrow_down:

superset/utils/celery.py
96.42% <0.00%> (-3.58%)
:arrow_down:

superset/examples/world_bank.py
97.10% <0.00%> (-2.90%)
:arrow_down:

superset/examples/birth_names.py
96.51% <0.00%> (-2.33%)
:arrow_down:

superset/views/database/mixins.py
80.70% <0.00%> (-1.76%)
:arrow_down:

superset/result_set.py
96.69% <0.00%> (-1.66%)
:arrow_down:

... and 505 more

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 f3ab1f4...e4da213. Read the comment docs.

Could you comment on each change on which errors/warnings they are supposed to solve if you still remember?

Could you comment on each change on which errors/warnings they are supposed to solve if you still remember?

@ktmud I updated the PR description with the fixed errors and warnings. I'll do the same with the other PRs.

@ktmud I updated the PR description with the fixed errors and warnings. I'll do the same with the other PRs.

Thanks so much!

Thanks so much!

@ktmud Accepted suggested changes. I did a force push to preserve commit history.

@ktmud Accepted suggested changes. I did a force push to preserve commit history.


feat(tutorial): complete step 2

Closes #
{{short description}}
Changelog
New

{{new thing}}

Changed

{{change thing}}

Removed

{{removed thing}}

hi @changshunwang May I now how to created the pull request? i'm can't raise the pull request. if you please give me the steps to create the pull request. it will me verymuch helpful for me. I have raised my issue here - https://github.com/carbon-design-system/carbon-tutorial/issues/2429 please check once.
Thanks in advance.


Make the serialize unit tests runnable again

This involves

renaming them to the ut_MODULE_TEST tests naming scheme,
adding a #pragma repy,
using dylink, and
replacing RepyV1's print with RepyV2's log throughout.

Thanks a lot!


[QUESTION] Delay the gstreamer stream

Hi.
I'm using a gstreamer pip, that has an h264 rtspsrc and a kvssink.
In order to sync my stream with another stream, I need to delay the stream upload for ~1 sec.
I use producer timestamp in my web app when I read the stream, so no buffer inside the pipe helps me because I always get the old producer timestamp, before the delay. Is there any way to delay the timestamp as well?
Or any other solution?
Thanks.

You may add an appsink element there you can retrieve the buffer and modify the timestamp then have an appsrc to consume the buffers with the modified timestamps.


Feature Request ESPNow Racing timing data on goggle OSD

Just watched a TBS Lounge where they announced a new functionality with the Fusion module where it uses the ESPNow functionality to display race timer data on the OSD.
Was wondering since the goggle has a ELRS backpack, could this functionality also be incorporated into the goggle?
This would be fantastic for racing to allow the pilot to see race timing and position information directly in the goggles.

tbs-fusion-espnow-integration.pdf

Have a look at this plugin for RotorHazard: https://github.com/i-am-grub/VRxC_ELRS
I think your issue can be closed 😉


Add an option to force a normal context on Lambda

Detect in check_in_lambda if an environment variable (SDK config level) is set and return early if its value is normal.
This will make the recorder use a plain Context object, instead of a LambdaContext object.
The rationale for this: I need to report the URL in the top segment for a server-less application I'm working on. I want to analyse some GraphQL queries in the console and I need their name in the URL, to classify them. If I enable X-Ray reporting in the Lambda console, a top segment is created and I'm unable to change its URL field (as said in the docs). But if I disable X-Ray to create the segment by myself (loosing cold-start info is ok in my case) the SDK still thinks a LambdaContext should be used. With a LambdaContext you cannot create top segments. This change allows the user of the SDK to override the kind of context used.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Hey,
while this work around may work for the time being, we do not recommend using this for the long run as any changes made to the lambda service may break this implementation. Therefore, we will need to decline this pull request. We still really appreciate your contributions and would wish to possibly revisit this in the future if changes are made in the long run to allow this support.
We currently do support the Serverless Architecture, where if your API is fronted with API Gateway and computed using Lambda, the downstream calls made from your lambda function will all be connected.
But it seems like you're attempting to aggregate downstream GraphQL queries. Have you considered using filter expressions to help aggregate your queries? If you need more help with this, we recommend opening a github issue for further discussions.

Thanks for the feedback!
What we wanted with this is to have the option to change the URL metadata field. This way we can choose 'URL' in the 'Group by' selector under the 'Trace overview' header in the 'Traces' section.
We can't find a way to use filters to have this information (percentage of traces + average response time). And we can't use the default X-Ray integration in Lambda because we can not edit the top level segment (the one used to populate the URL field in the X-Ray interface).
The problem with check_in_lambda is that it uses an environment variable available in all Lambda functions. Even if we wanted to create our own segment, we can not do it because the SDK always think that a segment was created by the Lambda integration and disallow the creation of other top segments (see LambdaContext).
We will stick to our workaround because we need this information now. We are studying other solutions more focused on APMs but we want to have this option available in X-Ray.


Can't create a username just after installing Ubuntu and can't switch to WSL 2

Version
Edition	Windows 10 Pro Version	21H2 Installed on	7/6/2021 OS build	19044.1706 Experience	Windows Feature Experience Pack 120.2212.4170.0
WSL Version

[X] WSL 2
[ ] WSL 1

Kernel Version
5.10.16
Distro Version
Ubuntu 20.04
Other Software
No response
Repro Steps
wsl --install -d ubuntu
Expected Behavior
Ubuntu asks me to create a Username but give me this instead.

adduser: Please enter a username matching the regular expression configured
via the NAME_REGEX[_SYSTEM] configuration variable.  Use the `--force-badname'
option to relax this check or reconfigure NAME_REGEX.

Actual Behavior
wsl --install -d ubuntu
Diagnostic Logs
No response

I found out you can't use capital letters in username.
Windows WSL site doesn't mention that.

If anyone is still following this thread, is there a way to return to the automated "enter username" prompt?
I received this error and "CTRL-C'd" out of the prompt thinking I could come back and start over once I'd figured out what was going on.

I found out you can't use capital letters in username. Windows WSL site doesn't mention that.

Thank you random user for solved the problem with your statement! :)