[OAuth2] Failure to get token from login.microsoftonline.com (Azure AD)

Title: Get token from login.microsoftonline.com returns 503
Description:
I'm trying to use the OAuth2 filter to authenticate with Azure AD. The initial redirect to the authorization endpoint works as expected, as well as the callback redirect. But when the callback is being processed by the filter, the request to the token endpoint gets a 503 response, and the filter then fails with a 401 response.
httpbin-c6b85f985-zslgh istio-proxy 'location', 'https://login.microsoftonline.com/TENANT_ID/oauth2/v2.0/authorize?client_id=CLIENT_ID&redirect_uri=https%3A%2F%2FMYDOMAIN%2Foauth2%2Fcallback&response_type=code&scope=openid%20profile%20email&state=https%3A%2F%2FMYDOMAIN%2F'
httpbin-c6b85f985-zslgh istio-proxy [2024-10-04T13:37:04.248Z] "GET / HTTP/1.1" 302 - oauth.missing_credentials - "-" 0 0 0 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36" "56b28059-6984-932f-988b-eaaa80e155e0" "MYDOMAIN" "-" inbound|80|| - <IP_ADDRESS>:80 <IP_ADDRESS>:49514 outbound_.8000_._.httpbin.devops.svc.cluster.local -
httpbin-c6b85f985-zslgh istio-proxy ':path', '/oauth2/callback?code=<CODE>'
httpbin-c6b85f985-zslgh istio-proxy 2024-10-04T13:37:05.540894Z debug   envoy oauth2 external/envoy/source/extensions/filters/http/oauth2/oauth_client.cc:58    Dispatching OAuth request for access token.        thread=28
httpbin-c6b85f985-zslgh istio-proxy 2024-10-04T13:37:05.541213Z debug   envoy oauth2 external/envoy/source/extensions/filters/http/oauth2/oauth_client.cc:87    Oauth response code: 503   thread=28
httpbin-c6b85f985-zslgh istio-proxy 2024-10-04T13:37:05.541215Z debug   envoy oauth2 external/envoy/source/extensions/filters/http/oauth2/oauth_client.cc:88    Oauth response body: upstream connect error or disconnect/reset before headers. reset reason: connection failure, transport failure reason: immediate connect error: Network is unreachable        thread=28
httpbin-c6b85f985-zslgh istio-proxy 'referer', 'https://MYDOMAIN/oauth2/callback?code=<CODE>'
httpbin-c6b85f985-zslgh istio-proxy 'location', 'https://login.microsoftonline.com/TENANT_ID/oauth2/v2.0/authorize?client_id=CLIENT_ID&redirect_uri=https%3A%2F%2FMYDOMAIN%2Foauth2%2Fcallback&response_type=code&scope=openid%20profile%20email&state=https%3A%2F%2FMYDOMAIN%2Ffavicon.ico'
httpbin-c6b85f985-zslgh istio-proxy [2024-10-04T13:37:05.540Z] "GET /oauth2/callback?code=<CODE> HTTP/1.1" 401 -  - "-" 0 18 0 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36" "b16bcfd5-0616-9183-ad27-271de24665d6" "MYDOMAIN" "-" inbound|80|| - <IP_ADDRESS>:80 <IP_ADDRESS>:49514 outbound_.8000_._.httpbin.devops.svc.cluster.local -
httpbin-c6b85f985-zslgh istio-proxy [2024-10-04T13:37:05.717Z] "GET /favicon.ico HTTP/1.1" 302 - oauth.missing_credentials - "-" 0 0 0 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36" "0b8e360c-a942-9c0c-877e-77a792a21f21" "MYDOMAIN" "-" inbound|80|| - <IP_ADDRESS>:80 <IP_ADDRESS>:49514 outbound_.8000_._.httpbin.devops.svc.cluster.local -

Seems it can't connect to Azure to fetch the token:
upstream connect error or disconnect/reset before headers. reset reason: connection failure, transport failure reason: immediate connect error: Network is unreachable

filter config
---
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
  name: httpbin-auth
spec:
  workloadSelector:
    labels:
      app: httpbin
  configPatches:
  - applyTo: CLUSTER
    match:
      cluster:
        service: oauth
    patch:
      operation: ADD
      value:
        name: oauth
        connect_timeout: 10s
        lb_policy: ROUND_ROBIN
        load_assignment:
          cluster_name: oauth
          endpoints:
          - lb_endpoints:
            - endpoint:
                address:
                  socket_address:
                    address: login.microsoftonline.com
                    port_value: 443
        transport_socket:
          name: envoy.transport_sockets.tls
          typed_config:
            '@type': type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.UpstreamTlsContext
            sni: login.microsoftonline.com
        type: LOGICAL_DNS
  - applyTo: HTTP_FILTER
    match:
      context: SIDECAR_INBOUND
      listener:
        filterChain:
          filter:
            name: envoy.filters.network.http_connection_manager
            subFilter:
              name: envoy.filters.http.jwt_authn
    patch:
      operation: INSERT_BEFORE
      value:
        name: envoy.filters.http.oauth2
        typed_config:
          '@type': type.googleapis.com/envoy.extensions.filters.http.oauth2.v3.OAuth2
          config:
            token_endpoint:
              cluster: oauth
              uri: https://login.microsoftonline.com/TENANT_ID/oauth2/v2.0/token/
              timeout: 10s
            authorization_endpoint: https://login.microsoftonline.com/TENANT_ID/oauth2/v2.0/authorize
            redirect_uri: https://%REQ(:authority)%/oauth2/callback
            redirect_path_matcher:
              path:
                exact: /oauth2/callback
            signout_path:
              path:
                exact: /signout
            credentials:
              client_id: CLIENT_ID
              token_secret:
                name: token
                sds_config:
                  path: "/etc/istio/config/token-secret.yaml"
              hmac_secret:
                name: hmac
                sds_config:
                  path: "/etc/istio/config/hmac-secret.yaml"
            auth_scopes:
            - openid
            - profile
            - email
            forward_bearer_token: true
            # Bypass auth proxy for health check
            pass_through_matcher:
            - name: :path
              exact_match: /healthz/ready
            - name: authorization
              prefix_match: Bearer

where
# /etc/istio/config/hmac-secret.yaml
resources:
- "@type": "type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.Secret"
  name: hmac
  generic_secret:
    secret:
      # generated using `head -c 32 /dev/urandom | base64`
      inline_bytes: QBrUNBG/eB9hQJR4tZbcel7IzUImKgrTwWn3ZyqJZk8=

# /etc/istio/config/token-secret.yaml
resources:
  - "@type": "type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.Secret"
    name: token
    generic_secret:
      secret:
        inline_string: CLIENT_SECRET>

I understand this version of Envoy is archived, but wondering if something obvious stands out before we go the upgrade route and test again.
[optional Referenced Links:]

https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/oauth2_filter
https://github.com/envoyproxy/envoy/issues/20179
https://github.com/istio/istio/issues/43251

Istio Version: 1.17.5
Envoy Version: 1.25

It certainly looks like Envoy can't access "oauth2" upstream cluster. I don't think an upgrade would help much. The problem happens at TCP level (either DNS does not resolve or the IPs are blocked).

fyi @kyessenov Turning on "happy_eyeballs" showed the container trying to connect to IPv6 of login.microsoftonline.com, something our current subnets don't support.
Setting resolved the issue.
dns_lookup_family: V4_ONLY

Closing this.


mfcmapi abends -

During the deletion of the autocomplete entry in the page
https://support.microsoft.com/en-us/office/import-or-copy-the-autocomplete-list-to-another-computer-83558574-20dc-4c94-a531-25a42ec8e8f0
i was trying to DELETE an autocomplete 'msg' using the utility ... but everytime i try to delete the msg, the utility exits.  If I try importing the copy of the 'msg' of the autocomplete i'm trying to preserve, it shows up but only until the utility exits.  When i return to the outlook profile, the autocomplete msg i imported is gone.  I understand it's important to delete the existing autocomplete 'msg' before importing the new one. ... but how do you do that if the utility keeps exiting??

I was able to get around this by creating a new outlook profile ... and importing the exported msg contents into that new profile... the auto complete works there...


TheHive workflow error

Please how do I resolve the issue showing the error below.

@frikky Hi
I also encountered such an error
Help me solve it
ThiHive 5 versions

@frikky Hi I also encountered such an error Help me solve it ThiHive 5 versions

Hey!
Looks like the URL you are reaching may be wrong as it should be /api/v1/alert from what I can see in the App: https://shuffler.io/apps/edit/5fefa1911e01a005b54f94dcb6830d82

@frikky I fixed it. Thanks


Still not able to exclude nested entity long string property from indexes with lib verision 6.6.2

Environment details

OS: n/a
Node.js version:14.18.1
npm version:8.3.0
google-cloud-node version<EMAIL_ADDRESS>
Steps to reproduce

require google-cloud
create Datastore client for a project
prepare entity properties as list of property name/value/excludeFromIndexes records
call save with an entity having some nested entity with string known to be longer to 1500 bytes

{
"name": "some string",
"email"<EMAIL_ADDRESS>"bio": { "description": "Loooong string here",
"speciality":"3D Designer"
}
}

Result: error 3 INVALID_ARGUMENT about long property of nested entity
What had been tried so far:

saving entity as list of property/value/excludeFromIndexes applied to root property
saving the root entity as both list of property records and the list of excluded properties with full paths like bio.description as values for this excludeFromIndexes property
saving the root entity as both list of property records as the list of excluded properties with wildcards like bio.*.
saving entity as list of records with value, name, excludeFromIndexes, where value follow the Value structures described here https://cloud.google.com/datastore/docs/reference/data/rest/v1/projects/runQuery#Value
No success, always got that error 3 INVALID_ARGUMENT
Side note: there is NO official example so far that would explain how to exclude a long nested property in context of nodejs, e. g. here: https://cloud.google.com/datastore/docs/concepts/entities

This issue is becoming a show-stopper that would force us eventually (not today, but at some time point in not so far future) to migrate away from Datastore, if solution would not be found.
Migrating to python or other language where official library supports this (exclusion of nested entities properties from indexes) properly is not an option - too time consuming.
Writing brand new client lib which would use raw Value data structures as input is not an option - this new code will not be production-ready.
Please either give a working example both for case of property with nested entity and for case with property with array of nested entities, or make sure this fix is available via public NPM release like 6.6.3 if fix is done already....
I sure not alone who faced that problem.

I tried to make a fix in a fork, but I not sure whether I understood properly the low-level data format for JSON API, even after all existing tests and few my own work as expected (at least I did not broke something so far for tests where new wrapValue not used?).
Fix is in fork https://github.com/SakartveloSoft/nodejs-datastore at DatastoreValueAPI branch.
What sort of tests I should add and to which test sets to make sure it all work as expected?
Scenarios I want to ensure working are following:

nested entity property excluded from indexes - all scalar properties of nested entity must be excluded from indexes
array property of nested entities excluded from indexes - all entities with their properties must be excluded from indexes
nested entity property, entity with long string (surely longer from 1500 bytes) - that property should be excluded automatically if new API wrapValue used
nested array properties, with entities with a long string property - this property of nested entity excluded automatically if wrapValue used.
all values within data tree, either nested entity or array of nested entities, wrapped with wrapEntity(value, true) is fully excluded to any possible way, but saved to DS.

Just to make sure that we are aligned, do you mind posting the code snippet that actually does the steps that are listed under Steps to reproduce?

I looked at the fork and I see 2 test cases. If we have a full set of coded test cases with expected behaviour for all the situations you have described then we could consider making some changes.

Seems like there are some tests at https://github.com/googleapis/nodejs-datastore/blob/d854b57ed2b9b9f9ea148daedeb6d64e4d99de4d/system-test/datastore.ts#L130 (and below)

Do the tests address all the issues the reporter of the issue mentioned? I guess they likely don't because if they did then they would be passing in integration tests and there wouldn't be any issues. I am looking for a suite of tests that don't pass, but that describe the behaviour the user wishes to have. Feel free to reopen the issue when such tests are provided.


Add json sender

I found it difficult to test the json post handler so added these handlers.
Let me know if you want this broken down into smaller parts.

Hi Tim:
First of all. Thanks for contributing.

Set response body for post :100:
Proofreading :+1:
Add form handler: :+1: I don't like embedded html, but I'm starting looking into adding basic template engine support, so I think it will be a perfect sample to refactor.

I will merge this asap :)

Hi Janus,
A friend is looking for early adopters of his templating:
https://github.com/bensummers/safe-web-templates
best regards
Tim

I'll keep in mind :+1:


Add simple example for a threaded query

Add quick primer on using this with threads.

Coverage remained the same at 99.465% when pulling 66ff969a49eecfa52137c47bc311c6060873e2b5 on jcpunk:thread-doc into 01c8736784f39db63c2ec6e87409f5f82177fa89 on rbw0:branch-0.6.9.


didSignInWithUser is not being called when subclass of FIRAuthPickerViewController is used.

Hi, I am sorry, I posted this as a comment initially on the issue https://github.com/firebase/FirebaseUI-iOS/issues/87, but realized it is closed and posted a new one and erased the comment (I don't think I have privileges to reopen an issue - do I?)
I have created a subclass of FIRAuthPickerViewController which is presented by the delegate class and is shown correctly, but ever since I used the subclass to customize the UI of the authViewController, the didSignInWithUser method is no longer called upon signing in.
I use my app delegate to present the custom view controller. The app delegate is also the authUI delegate I have been using. I have implemented within the app delegate the following code, like suggested:
- (FIRAuthPickerViewController *)authPickerViewControllerForAuthUI:(FIRAuthUI *)authUI {
    return [[MyCustomLoginViewController alloc] initWithAuthUI:authUI];
}

and the app delegate uses the following code to present the view:
FIRAuthUI *authUI = [FIRAuthUI defaultAuthUI];
authUI.delegate = self; // Set the delegate to receive callback.
...
// adding Facebook and Google providers here
...
FIRAuthPickerViewController *myCustomLoginViewController = [self authPickerViewControllerForAuthUI:authUI];

 [self presentViewController:myCustomLoginViewController animated:YES completion:nil];

and everything is shown correctly in my custom view. But when I sign in, the didSignInWithUser is no longer being called.
(Also, the Cancel button is missing now that I subclassed the view, but that's not a problem :) )
Any ideas?
I am using Xcode 7.2, Objective-C, Cocoapods 1.0.0 and the following Firebase pods:
Using Firebase (3.5.2)
Using FirebaseAnalytics (3.3.1)
Using FirebaseAuth (3.0.4)
Using FirebaseDatabase (3.0.2)
Using FirebaseInstanceID (1.0.8)
Using FirebaseMessaging (1.1.1)
Using FirebaseUI (0.5.5)

yorgosg, try to replace your code (last 2 lines of comment):
FIRAuthPickerViewController *myCustomLoginViewController = [self authPickerViewControllerForAuthUI:authUI];
[self presentViewController:myCustomLoginViewController animated:YES completion:nil];

With:
UIViewController *controller = [authUI authViewController]; //returns your custom controller wrapped in UINavigationController
[self presentViewController:controller animated:YES completion:nil];

That worked yramanchuk! Thanks!
One more related question: I was trying to use a xib to customize the auth view (in my last question I wasn't using one), but I cannot get it to work, not even by the update you suggested in your last post.
I thought it would be by implementing the following code in the delegate:
- (FIRAuthPickerViewController *)authPickerViewControllerForAuthUI:(FIRAuthUI *)authUI {

    return [[MyCustomLoginViewController alloc] initWithNibName:@"MyCustomLoginViewController" bundle:nil authUI:authUI];
}

and then using the following code in my custom view controller:
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil authUI:(FIRAuthUI *)authUI {

    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil authUI:authUI];
    if (self) {
        // Custom initialization
    }
    return self;
}

but everything I have tried so far lead to crash when presenting the auth view controller.

Hi @yorgosg
Most of things you are doing seems to be right. Let's clarify some details.

Please notice that MyCustomLoginViewController must have UITableView as root controller view.
Currently there are no easy/flexible ways to customize AuthPickerViewController. But as a workaround you can add your components in controller root UITableView header or footer.
You can find example of custom AuthPickerViewController here: https://github.com/firebase/FirebaseUI-iOS/blob/v0.5.6/samples/objc/FirebaseUIChat/Samples/Auth/FIRAuthViewController.m#L123

@yorgosg What crash/error did you get?

Hi @yramanchuk, thanks for your reply. The crash was indeed because I wasn't using a UITableView:
-[UITableViewController loadView] loaded the "UserLoginViewController" nib but didn't get a UITableView.
I managed to use a UITableView as a root view of the custom class and make it work. Thanks again. I am closing this issue.

Hello, I'm facing a similar issue in Swift. I need to use my own AuthPickerViewController but it's not showing. I created a custom FIRAuthPickerViewController :
import UIKit
import Firebase
import FirebaseAuthUI
import FirebaseFacebookAuthUI
import FBSDKLoginKit
import FirebaseDatabase
import FirebaseGoogleAuthUI
import FirebaseFacebookAuthUI

class ScreenLoginViewController: FIRAuthPickerViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        self.navigationController?.setNavigationBarHidden(true, animated: true)
        self.view.backgroundColor = UIColor(patternImage: UIImage(named:"ic_today")!)
        self.view.backgroundColor =  UIColorFromRGB(ColorAmarillo1)
    }
}

And my View Controller
 import UIKit
import Firebase
import FirebaseAuthUI
import FirebaseFacebookAuthUI
import FBSDKLoginKit
import FirebaseDatabase
import FirebaseGoogleAuthUI
import FirebaseFacebookAuthUI
class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
         self.navigationController?.setNavigationBarHidden(true, animated: true)
                self.iniciarSesion()
        })
    }
    func authPickerViewControllerForAuthUI(authUI: FIRAuthUI) -> FIRAuthPickerViewController {
        return ScreenLoginViewController(authUI: authUI)
    }
    func iniciarSesion(VControll: UIViewController) {
        let authUI = FIRAuthUI.authUI()
        let googleAuthUI = FIRGoogleAuthUI(clientID: FIRApp.defaultApp()!.options.clientID)
        let facebookAuthUI = FIRFacebookAuthUI(appID: NSBundle.mainBundle().infoDictionary!["FacebookAppID"] as! String)
        authUI!.signInProviders = [googleAuthUI!,facebookAuthUI!]
       // let authViewController =  authPickerViewControllerForAuthUI(authUI!)
        let authViewController = authUI!.authViewController()
        self.presentViewController(authViewController, animated: true, completion: nil)
    }

But I cannot make it work because it's not appearing. If I use the default authviewcontroller works perfectly.
Thanks in advance.
Santiago.

You need to make your ViewController class conform to the FIRAuthUIDelegate protocol.
class ViewController: UIViewController, FIRAuthUIDelegate {

Great!! It worked, thanks. But now I'm facing a related issue, I cannot hide the Navigation Control (that says welcome) to be more precise this line is not working apparently:
self.navigationController?.setNavigationBarHidden(true, animated: true)
and also the next screen that asks the email and subsecuent screens remain with the default UI, how can I change it as to fit the style I'm using for the ScreenLoginViewController?
Thanks again.
Santiago.

The same issue that Santiago
Can someone help me?
Thanks in advance.
Maximiliano.

Actually, I am faced with this issue myself (hiding / customizing the nav bar in the login view). I was going to deal with it later, but since more people are asking about it then +1.
There is one more thing though that we need to figure out: If we remove the nav bar from the login view, then we need to somehow re-show it in the screens of signing in via email/password. But, we won't have access to this code, right? Any thoughts?

Yes that's true. But at least it could be great to hide the Cancel button set a color to the Nav Bar instead of hiding it.
What do you suggest?
Thanks @yorgosg !

Guys, you can get reference to navigation bar (but this is not official way).
But please notice that right now we are discussing customization feature with other FirebaseUI platforms to make all changes synchronous.
As it was mentioned previously in this thread
replace this:
UIViewController *controller = [authUI authViewController]; //returns your custom controller wrapped in UINavigationController
[self presentViewController:controller animated:YES completion:nil];

with this:
    UIViewController *controller = [self.authUI authViewController];
    ((UINavigationController *)controller).navigationBar.hidden = YES; // hide navigation bar
    [self presentViewController:controller animated:YES completion:nil];

Please notice that in this case you will have navigation issues with 'Sign in with email' flow. So I'm not sure it's really good idea.

We have extended customization in 0.6.2

whole email flow is customizable (change buttons, toolbars etc)
added ability to hide bottom bar (check obj-c demo sample app)


Generate header file

I think this would be a little more convenient to use if it generated a header file with just DocoptArgs and docopt(). The use case for this would be a program that deals with parsed arguments in many places.
If the parsed arguments (DocoptArgs) are needed in different files that are eventually linked together, we can't just do #include "docopt.c" like in the main file, since we would be redefining various variables and functions. We would instead have to redefine just the struct in each file that the parsed arguments are needed.

I wouldn't mind taking this on myself, if I knew what CLI options I should add.
I was thinking of -H <path> and --output-header <path> that would set the destination for the header. The question then would be the path that .c file uses to include the header (should it be relative? assume it's in the same directory?).
Another option would be that if -o (or --output-name) is used, then we swap the extension with .h for the header and let the .c file assume it's in the same directory.
This is more of a brainstorm, but any thoughts are appreciated.

I decided to take the second option and put it in my fork. I'm not going to submit a PR because I think I didn't really follow the exiting code style.
See https://github.com/docopt/docopt.c/compare/master...kroq-gar78:master


support of multibyte delimiters

if delimiter is e.g. greek question mark(http://www.fileformat.info/info/unicode/char/037e/browsertest.htm) ; then it ends up with error
Delimiter must be a single character. ";" received
https://github.com/keboola/php-csv/blob/master/src/Keboola/Csv/CsvFile.php#L49

not supported by the underlying fgetcsv - fgetcsv(): delimiter must be a single character -> no reasonable to implement this currently


Having troubles with Get-VM using sudo

sudo Get-VM doesn't get any response.
Powershell version: 7.0.3
Running Windows Terminal as Administrator will get correct result.

Hello.
I noticed the same problem, but found a workaround.
Please try this.
$ sudo pwsh -c 'Get-VM'
or
$ sudo pwsh
$ Get-VM
I'm reading sudo.ps1, but I'm not sure what the root cause is.


Question : accuracy

Hello, have you tested the position accuracy achevied ?
Thanks !

I would be interested in this as well!


Improve "Domains & DNS Configuration" page

https://github.com/postalhq/postal/wiki/Domains-&-DNS-Configuration

The assumed IP for tracking is <IP_ADDRESS> but then is <IP_ADDRESS> in the "Tracking domain" section.

For this documentation we will assume you have allocated some IP addresses:
...

<IP_ADDRESS> - IPv4 address for the "fast" web server (used for tracking)
...
Tracking domain - to configure click & link tracking you'll need to configure a domain that will be used in rewritten links. This will point to the second IP address on your host. The second IP is used to distinguish traffic which is aimed at the management web server and that destined for the tracking web server.
track.mail.yourdomain.com.    IN    A     <IP_ADDRESS>

The "Route domain" section creates an MX record pointing to _mx._mail.yourdomain.com but that's not previously defined in the page. I would think that should be pointing to mail.yourdomain.com instead?

Route domain - if you wish to receive incoming e-mail by sending messages directly to created routes in Postal, you'll need to configure a domain for this just to point to your MX servers.
routes.mail.yourdomain.com.   IN    MX    10 mx.mail.yourdomain.com

How is the status of tracking in 2.0?

I think the original issue has been dealt with in the new documentation https://docs.postalserver.io/install/dns-configuration
The underlying handling of tracking has completely changed and requires you to manage the web server virtualhost and SSL certificate yourself https://docs.postalserver.io/features/click-and-open-tracking#configuring-your-web-server


[election dApp] doesn't show anything in case Guardians setup phase has failed - user can try to cast a vote

In case user tries to cast a vote while Guardians setup was incomplete, dapp confirm button looks like it keeps loading but it never completes.
To reproduce:

Setup election but don't complete Guardian setup.
After the voting has started cast a vote.

Actual result:
Everything looks fine until use tries to vote. Then, confirmation dialogue keeps loading but it doesn't complete within some minutes.
Console log:
worker-weS67Rxg.js:1 Uncaught Error: Could not compute joint election public key: Guardian(s) Map { iter: Enumerate { iter: Iter([1, 2]), count: 0 } } are not represented in the guardian public keys
at q (worker-weS67Rxg.js:1:2622)
at electionguard_bindings_bg-mtr79lDX.wasm:0x1c980
at electionguard_bindings_bg-mtr79lDX.wasm:0x2da1e
at R (worker-weS67Rxg.js:1:2219)
at onmessage (worker-weS67Rxg.js:1:5815)
index-Tw2OsIMx.js:545 Uncaught (in promise) Uncaught Error: Could not compute joint election public key: Guardian(s) Map { iter: Enumerate { iter: Iter([1, 2]), count: 0 } } are not represented in the guardian public keys

Expected result:
User would be informed or prevented earlier in the process that election setup has failed.

Will change the status text under the election title to "Voting window to be determined", as the result of an incomplete setup phase is to reset the entire election, at which point the user  (i.e. voter) will have to wait for the voting dapp to be redeployed with a new election contract target.


JSON load request data when presigning

This attempts to json load request data that isn't already a dict
during presigning. As a result, rest-json services can now be
presigned.
cc @kyleknap @jamesls @stealthycoin

Current coverage is 97.63% (diff: 100%)

Merging #1090 into develop will increase coverage by <.01%

@@            develop      #1090   diff @@
==========================================
  Files            44         44
  Lines          6968       6976     +8
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           6803       6811     +8
  Misses          165        165
  Partials          0          0

Powered by Codecov. Last update 7866e79...3353623


Custom subtitle styling

Simple code that adds a setting in the Appearance tab to apply custom CSS to subtitles.
Changes are saved and applied instantly.
Doesn't seem to be any conflict with pre-existing styles.
The only caveat I've found is the Animebook Anki Export extension will trigger if I press the E key while focusing in the text box. This issue doesn't seem to happen with the other shortcuts.
A very simple workaround for this has been applied in frontend.js
Example:

Addresses this feature request #65

Nice! I tried it out a little, and interesting enough, if you put garbage in the textarea it doesn't actually show up in the inline style attribute. I assume that's Vue being smart.


Test build new dataset

Created test files
Updated code to match our style guideliens
Updated gitignore, requirements and test files to work with updated code

Great work @Lukasaurus11! Looks like the addition of the Google drive DB is well implemented, All library helper functions are well documented and commented, and you added an adequate amount of tests

Cant really take all credit though, @maudhelen did most of the code, I just went through it and organized it :D


Crash when setting an environment map during interactive rendering

Presumably fixed in #493.

Doesn't crash,. but now it doesn't update either


Support for licenses property

Ran into this on with corsify.
{"licenses": [
    {
      "type": "MIT",
      "url": "http://github.com/Raynos/corsify/raw/master/LICENSE"
    }
  ]
}

I didn't even know about this property and style of format but apparently it's in use :/
<EMAIL_ADDRESS>(Invalid license metadata)

I believe this is malformed, even under the ancient RubyGems / CommonJS convention. npm will warn about it. The package.json spec went to the current, string value years ago.
If you want to whitelist manually, you can do --whitelist<EMAIL_ADDRESS>or add to .licensee.json:
{
  "license":"...",
  "whitelist": {
    "corsify":"2.1.0"
  }
}

Could also send him a patch.  Will definitely shorten the file.  Uber & co. have their own license tools written to the spec. They seem to take this kind of thing pretty seriously.

So the only way to describe multiple licenses now is to use the single string syntax from SPDX?
How would someone describe a package is dual licensed where one license is custom? I'm not a fan of this approach but it is a question I got today.

The package.json spec is for an SPDX expression. Any single identifier is a valid expression. So are compound expressions: (GPL-2.0 OR MIT), (MIT AND CC-BY-3.0).
npmjs.com will also display compound expressions: https://www.npmjs.com/package/spdx-expression-parse.
There is doc on package.json. With examples.

SPDX expressions describe standard licenses. If you have a custom license, there is a SEE LICENSE IN ____ npm magic value.
If you dual license under a standard license and a custom one, you have your choice of the magic value or just listing the standard license. There was much debate on this.


Oredictifionificator 3 filters only [old issue]

In the newest version of Mekanism, you can add only three filters, trying to add a new one results in modifying the third filter. This seems to be related to #2676 and #3124
It would be awesome if you could fix this bug so you dont have to use the NBT-method described in issue 2676.
Keep up the good work and im looking forward to playing v9!

Fixed!

Nice!


Images in Google Drive Picker return 403 error on preview

Hi team,
First, thank you for the great work on the Google Drive Picker web component! I'm currently testing it and encountered an issue related to image previews.
When trying to preview some images using the Google Drive Picker, the request for the image files returns a 403 Forbidden error. This behavior is inconsistent as some images load without issues, while others fail.
Steps to reproduce:
Integrate the Google Drive Picker web component into a web application as per the documentation.
Open the Picker and select an image file for preview.
Notice that some image previews fail to load, showing a 403 error in the browser's developer console.
Expected behavior:
All accessible images should load correctly in the preview without throwing a 403 error.
Actual behavior:
Some image files return a 403 error when attempting to preview them, making the feature unreliable.
Additional context:
The issue might be related to file permissions or the way the component handles access tokens.
Tested in Chrome Version 131.0.6778.140 (Official Build) (arm64)
The drive.file scope was used during testing.
Please let me know if there's additional information I can provide or if there's a workaround for this issue.
Thanks again for your efforts!

This is expected given https://issuetracker.google.com/208855070?
I don't believe this is related to the web component wrapping the library. Going to close with this assumption, but comment here if this is not the case.
Thanks!


Add tabs to registers show

Changes proposed in this pull request
Split registers#show into tabs
Guidance to review
Visit registers#show and click through each tab

These tabs don't seem to be keyboard tab-able?

Feels kinda weird that Details is the same size/weight as the stuff below but acts like a higher heading? CC @conordelahunty

You are right @gidsg. The aim of this work is to just get the structure in and then there will be a full design review with Connor. The work is behind closed doors so we can afford to be abit informal with it.


Possible memory leak in validation while training efficientnet_es

Thanks for the great code!
Somehow I run out of GPU memory during validation at 6th epoch, despite using modest amounts of GPU memory in the first 2 epochs.
 GPU Memory [MB]

0
8,572
8,576

1
8,846
9,306

2
11,572
12,026

3

4
13,976
14,430

Of course the total allocated GPU memory usage (as reported by nvidia-smi) includes the pytorch "cache". It is interesting that the total memory usage jumps always happen during validation.
I have run this a couple of times, and eventually (after 10 and 6 epochs, respectively), I get this sort of error during validation:
Train: 6 [1250/1251 (100%)]  Loss:  3.605053 (3.7637)  Time: 0.672s, 1524.61/s  (0.357s, 2872.34/s)  LR: 6.022e-02  Data: 0.389 (0.016)                                                           [227/1137]

File "train.py", line 643, in <module>
    main()
  File "train.py", line 451, in main
    eval_metrics = validate(model, loader_eval, validate_loss_fn, args)
  File "train.py", line 597, in validate
    output = model(input)
  File "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 541, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/apex/parallel/distributed.py", line 560, in forward
    result = self.module(*inputs, **kwargs)
  File "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 541, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/ubuntu/github/pytorch-image-models/timm/models/efficientnet.py", line 286, in forward
    x = self.forward_features(x)
  File "/home/ubuntu/github/pytorch-image-models/timm/models/efficientnet.py", line 279, in forward_features
    x = self.blocks(x)
  File "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 541, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/nn/modules/container.py", line 92, in forward
    input = module(input)
  File "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 541, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/nn/modules/container.py", line 92, in forward
    input = module(input)
  File "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 541, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/ubuntu/github/pytorch-image-models/timm/models/efficientnet_blocks.py", line 387, in forward
    x = self.conv_exp(x)
  File "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 541, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/nn/modules/conv.py", line 345, in forward
    return self.conv2d_forward(input, self.weight)
  File "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/nn/modules/conv.py", line 342, in conv2d_forward
    self.padding, self.dilation, self.groups)
  File "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/apex/amp/wrap.py", line 28, in wrapper
    return orig_fn(*new_args, **kwargs)
RuntimeError: CUDA out of memory. Tried to allocate 4.88 GiB (GPU 6; 15.75 GiB total capacity; 3.62 GiB already allocated; 3.67 GiB free; 7.39 GiB cached)

Running again now without ema to see if that makes a difference.

@andravin this isn't a leak per se, I believe this is similar behaviour to what I've seen before with other, smaller models, especially ones built from the InvertertedResidual/DepthwiseSeperable blocks. I believe it's PyTorch' cudnn backend algo search hunting for an optimal config in the transition between the validation and training batch sizes. Sometimes it blows up.
Some workarounds..

On the line linked below, lower the validation to train batch size ratio, I have it fixed a 4. It works well with larger models but seems to bring about this issue on smaller ones. Try 2 or 1. https://github.com/rwightman/pytorch-image-models/blob/master/train.py#L391
Bring back the main batch size a bit, sometimes if it's close to the edge it'll oscillate while training doing it's cudnn backend auto-tuning
If all else fails, set torch.backends.cudnn.benchmark = False to stop the backend auto-tuning, this will likely reduce performance overall though

I'll leave this open until I add an arg to adjust that validation ratio. If none of the above fixes the issue, I'll look closer for an actual leak. I've done many multi-week experiments with this code so pretty sure it's the auto-tuning.

I remembered something, I think I first ran into this issue when I started using Apex AMP (possibly only with, so that is likely a factor as well although I never really got to the bottom of it, I just work around by fiddling with that batch size ratio.
I filed an issue a while back, https://github.com/NVIDIA/apex/issues/258

Thanks, the validation batch size multiplier workaround makes sense. I added a --validation-batch-size-multiplier command line argument, and will check if setting it equal to 1 works for me.
As you noted in NVIDIA/apex#258, the validation memory usage seems excessive. For me (see above table), the first 2 epochs have a peak GPU memory usage < 60% of the 16 GB capacity. Nothing should happen in the remaining epochs that cause it to run out of memory.

Validation is actually faster with --validation-batch-size-multiplier=1.  4.0  seconds, as opposed to ~12 seconds with the default value (4).
Total GPU memory used continues to grow, just more slowly.

Whatever the problematic operation is, it is really slow when it happens, often a long pause before the blow up happens (when it does) .
There is usually some growth of the total memory used as reported by nvidia-smi for the first few train-validation cycles and then tends to stabilize a few epochs in (if it doesn't blow up). Curious if you see something different than that....

The validation times I reported are stable (with reasonable variance) across all epochs (that don't crash) for both batch size multipliers 4 and 1.  Not sure how long the exploding validation takes.
So far, with multiplier = 1, total GPU memory use has grown steadily from a reasonable value to 13.5 GB / GPU after 10 epochs.
Whether or not it does eventually blow, this is not the behavior one would expect from a well behaved program. Total memory usage should stabilize after 1 epoch; ideally it would stabilize after just a few batches.
After Test: 10 memory usage is now  14.0 GB / GPU.

Okay, so looks like it'll live? I've seen that climbing climbing, and then clear the cache when at limit pattern. I don't usually see it though. Has your apex been updated/compiled recently? No warnings about not being compiled with --cuda-ext, Fused kernels not available and all that fun stuff?
One note --model-ema-force-cpu ... I almost never test this one, I usually like to see the EMA validation as I go and find it doesn't use much extra GPU memory compared to everything else.
I haven't found empty_cache to help much

I suspect it is more likely to live simply because the large allocation that amp requests during validation is now 4x smaller, so it is less likely to fail due to memory fragmentation when the pytorch memory manager is near capacity. Still flaky.
My apex version is noted above, I compiled it from master a few days ago. Didn't notice any warnings. But I don't particularly remember --cuda-ext either.
I just turned on --model-ema-force-cpu after the first out of memory crash, obviously it didn't help.
Anyway, thanks a lot for your help! Just would be great to get to the bottom of this so I could run at larger batch sizes with confidence.

Since this is mostly an amp + pytorch problem, might I suggest that the fix for this particular issue is just to introduce the --validation-batch-size-multiplier as you suggested, but make the default value equal to 1?
The worst case for imagenet validation time seems to be about 1% of training time, so there appears to be no reason to "optimize" it by using a larger batch size, especially if it has the potential to crash certain workloads.

Just another data point here.
After a forced restart of my EC2 instance, I resumed training, this time with --validation-batch-size-multipler=4. Training continued through several cycles of using 8GB > 15.5 GB memory, before finally crashing during validation of the 39th epoch (since restart) with the same error as before.
As I suspected, more memory usage during validation just makes it more likely that the pytorch memory manager will fail to find a contiguous block of unallocated memory large enough to fill the allocation request. Every time total memory usage reaches the memory manager capacity, it must clear the memory cache just to fill the amp request for validation memory. Eventually even this fails, probably because the available memory is too fragmented.
Using a smaller validation batch size makes it easier to fill the request, and the memory manager stabilizes after a couple of epochs.
Perhaps this would be understandable if training alone used almost all of the available GPU memory. But my first epoch uses just 55%.
Another note: I am not using ema for this training run; I disabled it earlier to see if it helped avoid the crashes. It doesn't.
Traceback (most recent call last):
  File "train.py", line 643, in <module>
    main()
  File "train.py", line 451, in main
    eval_metrics = validate(model, loader_eval, validate_loss_fn, args)
  File "train.py", line 597, in validate
    output = model(input)
  File "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 541, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/apex/parallel/distributed.py", line 560, in forward
    result = self.module(*inputs, **kwargs)
  File "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 541, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/ubuntu/github/pytorch-image-models-rwightman/timm/models/efficientnet.py", line 286, in forward
    x = self.forward_features(x)
  File "/home/ubuntu/github/pytorch-image-models-rwightman/timm/models/efficientnet.py", line 279, in forward_features
    x = self.blocks(x)
  File "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 541, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/nn/modules/container.py", line 92, in forward
    input = module(input)
  File "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 541, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/nn/modules/container.py", line 92, in forward
    input = module(input)
  File "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 541, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/ubuntu/github/pytorch-image-models-rwightman/timm/models/efficientnet_blocks.py", line 387, in forward
    x = self.conv_exp(x)
  File "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 541, in __call__
    result = self.forward(*input, **kwargs)
  File "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/nn/modules/conv.py", line 345, in forward
    return self.conv2d_forward(input, self.weight)
  File "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/torch/nn/modules/conv.py", line 342, in conv2d_forward
    self.padding, self.dilation, self.groups)
  File "/home/ubuntu/anaconda3/envs/pytorch_p36/lib/python3.6/site-packages/apex/amp/wrap.py", line 28, in wrapper
    return orig_fn(*new_args, **kwargs)
RuntimeError: CUDA out of memory. Tried to allocate 4.88 GiB (GPU 6; 15.75 GiB total capacity; 3.62 GiB already allocated; 3.75 GiB free; 7.31 GiB cached)


961 | N-Repeated Element in Size 2N Array | C++

N-Repeated Element in Size 2N Array -
What will change - Add solution for problem 961. N-Repeated Element in Size 2N Array in C++
Type of Issue -
Please add/delete options that are not relevant.

[x] Adding New Code

Programming Language
Please add/delete options that are not relevant.

[x] C++

Self Check

Ask for issue assignment and wait to get assigned to it before making Pull Request.
Add your file in the proper folder
Clean Code and Documentation for better readability
Add Title and Description of the program in the file

:star2: Star it :fork_and_knife:Fork it :handshake: Contribute to it!
Discord server ✉ - https://discord.gg/CXksGdn
Happy Coding,

please assign this issue to me


Update CONTRIBUTING.md, Added How to Develop Odigos Locally Section

Hi @idrismusa4 , thank you so much for the contribution.
As #672 is merged, this one need a quick rebase 🙏


scipy.special.erf or scipy.stats.norm.cdf support in numba

With reference to  https://github.com/numba/numba/pull/2318#discussion_r110958769
Black-Scholes code would be simpler if scipy.special.erf or scipy.stats.norm.cdf was supported by Numba.

See "scumba" discussion here: https://github.com/numba/numba/issues/4292

Closing, https://github.com/numba/numba-scipy is the place for SciPy support discussion.


Add Video media core element into Topic

@jaccomeijer We need to rename the core element image.tsx into media.tsx and import video and image in core element media.

Keep in mind we need to rename image: to media: in our contentfulFieldDefinitions


Add compact comparer

I don't know if this is something you might be interested in or not. As noted in VerifyTests/Verify#425, I often have verified files that are a couple hundred lines long. Both the default output from Verify and the default output from Verify.DiffPlex wind up being very long and difficult to sift through.
What I've done is add a "compact" comparer that only outputs the actual changed lines, plus one line of context before and after. You can see the output here. I find this splits the difference between the default Verify.DiffPlex and the other solution I came up with using Assert.Equals(), which fails fast and only shows the first difference.
The compact comparer is used by calling VerifyDiffPlex.Initialize(compact: true), though that could be changed to something like VerifyDiffPlex.InitializeCompact(). I'm happy to revise as needed.

sorry for the delayed reply.
can you add some documentation for this feature?

Sure -- do you want it just in the REAMDE for this repo?

yep. in the readme is fine

Changing this to a draft -- I have a few edge cases I want to work through.

Dealt with edge cases, taking PR out of draft status.
I've made 3 changes:

If first or last line of file is changed, display [BOF] or [EOF] as context line
Handle the case where two change sections are separated by a single unchanged line
Reduce leading whitespace

Example of no.2:
5 Unchanged line
- Before
+ After
7 Another unchanged line
- Another before
+ Another after
9 Still another unchanged line

For no.3, the +/- symbols are now right-aligned with the line numbers for unchanged lines, instead of being further indented. You can see above what happens with files with fewer than 10 lines. If the file has more than 10 but fewer than 100 lines:
// Original version
53   Unchanged line
   - Before
   + After
55   Unchanged line

// New version
53 Unchanged line
 - Before
 + After
55 Unchanged line

Seems to me a little tidier and easier to read.

@SimonCropp Can you please review?

this is now deployed


If PATH were to be not, program doesn't work.(on windows)

When I commit above command, I got no answer.
PS C:\Users\twice\Desktop\XXX> pt http

But I were to commit under command, it work without problem.
PS C:\Users\twice\Desktop\XXX> pt html ./
./\html\game.html
1:<!DOCTYPE html>
2:
97:

./\html\index.html
1:<!DOCTYPE html>
2:
19:

development environment
OS:windows 10 Home
version: 1803
software: visual studio code (power shell)

The function givenStdin has a special case for Windows when it should not. Removing the OS check fixes the bug.

This issue still persists, although I don't think it's neccesarily an issue, specifying path shouldn't be a problem. Can you please add it to the README.md? Just a simple note under windows that for windows users PATH option is required.
I installed from github


goverlay: 0.6 → 0.6.3

Motivation for this change
Update to the latest version: https://github.com/benjamimgois/goverlay/releases/tag/0.6.2
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 137011 run on x86_64-linux 1

1 package built:

goverlay


Set object and function properties directly

Had an idea this afternoon and was surprisingly simple to implement. Wanted to get folks' thoughts.
This allows you to pass objects and functions as if they were attributes, and they'll be set directly on the element rather than as an attribute, which would convert them to a string (rendering them useless). There's probably some utility for this on regular elements, but there'd be a lot of utility with custom elements.
const html = require('bel')

const foo = 'lol'
const bar = { a: 1 }
const baz = () => 'woah'

const tree = html`<div foo=${foo} bar=${bar} baz=${baz}></div>`

console.log(tree.getAttribute('foo')) // lol
console.log(tree.bar) // Object {a: 1}
console.log(tree.baz) // () => 'woah'
console.log(tree.baz()) // 'woah'

Hmmmm, this does cause bel properties to be different from how the DOM does it though - personally I wouldn't expect an attribute to be accessible as a property, because I know the way to access them is using .getAtrribute()
I'd say this is cool if we have a strong use case leading this feature, but if there's none then it feels like an addition that has the potential to become a future footgun

I agree, unless there is a really strong use case for this, I'd rather not. Currently it's easy to add custom properties to elements:
const html = require('bel')

const foo = 'lol'

const tree = html`<div foo=${foo}></div>`
tree.bar = { a: 1 }
tree.baz = () => 'woah'

console.log(tree.getAttribute('foo')) // lol
console.log(tree.bar) // Object {a: 1}
console.log(tree.baz) // () => 'woah'
console.log(tree.baz()) // 'woah'

Closing; think this is not critical and there hasn't been any new activity for a while


Angular 2.3.0 not available on npm

runnning ... npm show @angular/common versions
gives ...
[ ...
'2.2.4',
'2.3.0-beta.0',
'2.3.0-beta.1',
'2.3.0-rc.0' ]
but you are using 2.3.0 that is not yet publicly available. Please release 2.3.0 to the public if you are using it in the quickstart. thanks

@danday74 it is available:
$ npm info @angular/common dist-tags
{ latest: '2.3.0', next: '2.3.0-rc.0' }

Perhaps you are using a cached version of npm?

thx fixed this by ...
npm config rm proxy
npm config rm https-proxy


Possible Problem with current background subtraction method

The current background subtraction method calculates the median for every column (spatial direction) and then it subtracts it from the whole column. It is possible that cosmic rays will affect the median calculation.
Possible solutions

Get the cosmic ray rejection mask before the background subtraction.
Do classic background-region-sum subtraction method. Although this would be affected by cosmic rays anyways so the cosmic ray problem must be addressed anyways.

This supposed to be less important now since the new cosmic ray rejection method has been changed see #85 but I would say we review it anyways.

The current method for doing background subtraction is wrong. In fact I get better results without it.

I have updated the background subtraction method that uses a small portion of the detector outside the target spectrum area.


x/mobile: gobind: warnings from compiling generated code for ios

I ran this script while debugging an XCode problem with Apple:
git clone https://github.com/robpike/ivy.git
git clone https://github.com/golang/mobile.git
#brew install golang  # Already had it installed, but this was in the original script.
go install golang.org/x/mobile/cmd/gomobile@latest
go install golang.org/x/mobile/cmd/gobind@latest
export PATH=~/go/bin/:$PATH
mkdir work; cd work
go mod init work
go get -d golang.org/x/mobile/bind@latest
go get -d robpike.io/ivy/mobile
gomobile bind -target=ios,iossimulator,maccatalyst,macos robpike.io/ivy/mobile
cd ../mobile/example/ivy/ios
ditto ../../../../work/Mobile.xcframework/ Mobile.xcframework/
open ivy.xcodeproj

After this, even though all was clean and up to date, the compiled binary ran but there were warnings:
Lexical or Preprocessor issue
Double-quoted include ref.h in framework header, expected angle-bracketed include instead.
Mobile obc.h
/Users/r/apple/mobile/example/ivy/ios/ivy/DocsController.m:6:9: While building module 'Mobile' imported from /Users/r/apple/mobile/example/ivy/ios/ivy/DocsController.m:6:
/<module-includes>:2:9: In file included from <module-includes>:2:

/Users/r/Library/Developer/Xcode/DerivedData/ivy-blgeokabvnwvsgfxypexcadtustr/Build/Products/Debug-iphonesimulator/mobile.framework/Headers/Mobile.objc.h:11:10: Double-quoted include "Universe.objc.h" in framework header, expected angle-bracketed instead
/Users/r/apple/mobile/example/ivy/ios/ivy/DocsController.m:6:9: While building module 'Mobile' imported from /Users/r/apple/mobile/example/ivy/ios/ivy/DocsController.m:6:
/<module-includes>:2:9: In file included from <module-includes>:2:

/Users/r/Library/Developer/Xcode/DerivedData/ivy-blgeokabvnwvsgfxypexcadtustr/Build/Products/Debug-iphonesimulator/mobile.framework/Headers/Mobile.h:10:10: Double-quoted include "Mobile.objc.h" in framework header, expected angle-bracketed instead
/Users/r/apple/mobile/example/ivy/ios/ivy/DocsController.m:6:9: While building module 'Mobile' imported from /Users/r/apple/mobile/example/ivy/ios/ivy/DocsController.m:6:
/<module-includes>:4:9: In file included from <module-includes>:4:

go version devel go1.18-a1938435d6 Mon Sep 6 19:10:15 2021 +0000 darwin/amd64
<EMAIL_ADDRESS>
% go env
GO111MODULE=""
GOARCH="amd64"
GOBIN="/Users/r/bin"
GOCACHE="/Users/r/Library/Caches/go-build"
GOENV="/Users/r/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS="-ldflags=-w"
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/r/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/r"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/Users/r/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/Users/r/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="devel go1.18-a1938435d6 Mon Sep 6 19:10:15 2021 +0000"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/r/apple/mobile/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/hs/fxh5g1g977x6bvfxsk5vc27w0000gn/T/go-build1182204920=/tmp/go-build -gno-record-gcc-switches -fno-common"

CC @hyangah via https://dev.golang.org/owners

I sent CL 369198 that simply turn off the warning from the project settings. This is the same approach from the widely used CocoaPods who had to face the same issue since Xcode 12. See large discussions in  https://github.com/CocoaPods/CocoaPods/issues/9902, https://github.com/CocoaPods/CocoaPods/pull/9905, https://github.com/CocoaPods/cocoapods-integration-specs/pull/287/files, https://github.com/firebase/firebase-ios-sdk/issues/5987.


url = f"https://auth0.openai.com/u/login/identifier?state={state}"       Where {state} was obtained?

Thank you for your help

https://github.com/acheong08/OpenAIAuth/blob/24886c94597d6535402c7eba9d3bef95de95ba76/src/OpenAIAuth/OpenAIAuth.py#L184


TileMapLayer doesn't have an option to sort tiles horizontally

Tested versions
4.3 beta 1, 4.3 dev 6
System information
Windows 11 - Godot 4.3.beta1 - Forward+
Issue description
If you need to overlap tiles that have 4 cells (2x2) there is no option to set which way to align them horizontally. It is by default from left to right, but if you use y-sorting it somehow turns right to left. There are even some places in which this alignment will not be consistent. This is shown in the minimal reproduction project.
I found this while searching the internet, but it makes the tile map invert its y-sorting too, so it does not solve the problem.
This issue does not let me put walls, which are bigger than one cell, to be put horizontally like shown below.

P.S. This also happens in the TileMap class for godot 4.2.1 stable
Steps to reproduce
Create a TileMapLayer, set a tileset atlas which takes 4 cells for each of its tiles and overlap them horizontally. They will be sorted from left to right (right is in front), and if you turn y-sort ON, it aligns them from right to left.
Minimal reproduction project (MRP)
minimal_reproduction_project.zip

This is a missing feature not a bug.

Indeed, must have missed the title and just gone off the vauger description in the post, I could have sworn the title had changed

Yep, my bad, it was a feature proposal

This is a missing feature not a bug.

Although the tilemap, when it is not y-sorted it aligns from right to left, which is what I need, and when y-sorted it aligns from left to right, could that count as a bug?

@agrimminck If it is a feature proposal please move it to the correct repository

@agrimminck If it is a feature proposal please move it to the correct repository

I've searched how to do that but I haven't found it

You'll need to close this issue and open new one here:
https://github.com/godotengine/godot-proposals


Fix boolean and empty string value handling

Previously if a value was of type boolean, then the header entry would be added regardless of the boolean value (such that false would still get included).
Values of empty string would result in the header entry being output with no second argument. It makes more sense to skip the entry if the second half of the pair is empty.

Thanks a lot. Nice catch.


[Feature request] Link into *.so instead of *.a

Hi,
building on linux produces two files: vk_mem_alloc.h and VulkanMemoryAllocator.a .
Could you enable support to dynamically link into a .so library ? .a library files are considered kinda deprecated. Currently there is not way to build a .so.

Hi,
I am sorry, but this library is developed mostly on and for Windows. I don't have a development environment to test it.
CMake script is an external contribution provided for convenience. The library is a single header file and it is recommended to just include it in your project codebase, so you can build it however you want.

Currently there is not way to build a .so.

You can always do:
$ cmake (...) -DBUILD_SHARED_LIBS=ON


Populate 2D texture array from image asset

We only accept feature requests that are discussed on the BabylonJS forum
Is your feature request related to a problem? Please describe.
WebGL supports TextureArrays. This is an indexable array of textures, widely used as a replacement for a texture atlas. In contrast to using one texture and use parts of it by using UV-coordinates, texture arrays allow:

Using texture repetition by using UV-coordinates > 1.
Indexing them directly, e.g. for drawing them with thin instances and using the instance id as index

Babylon JS added support for texture arrays using the RawTextureArray2D class. However, it only accepts a raw buffer to populate the content. This makes it hard to use for day to day usecases such as loading a texture array from an image file or using a canvas to prepare 2D content.
Describe the solution you'd like
A simple way of populating a texture array from both a loaded Image and a canvas. In my current application, I have both usecases.
Discussion
https://forum.babylonjs.com/t/populate-2d-texture-array-from-image-asset/35140/1

FYI, this is what i've done in this demo. The only missing part is the same support for WebGPU. Note: the playground is break since V7.0, but this is only declarativ, the code is still valid and used into other demo such this mapping one.

Check status of feature request here: https://forum.babylonjs.com/t/populate-2d-texture-array-from-image-asset/35140

Did you implement it?


run bundle install error

--- ERROR REPORT TEMPLATE -------------------------------------------------------

What did you do?
I ran the command /usr/local/bin/bundle install

What did you expect to happen?
I expected Bundler to...

What happened instead?
Instead, what actually happened was...

Error details
Errno::EHOSTUNREACH: Failed to open TCP connection to <IP_ADDRESS>:3128 (No route to host - connect(2) for "<IP_ADDRESS>" port 3128)
  /usr/local/lib/ruby/2.3.0/net/http.rb:882:in `rescue in block in connect'
  /usr/local/lib/ruby/2.3.0/net/http.rb:879:in `block in connect'
  /usr/local/lib/ruby/2.3.0/timeout.rb:91:in `block in timeout'
  /usr/local/lib/ruby/2.3.0/timeout.rb:101:in `timeout'
  /usr/local/lib/ruby/2.3.0/net/http.rb:878:in `connect'
  /usr/local/lib/ruby/2.3.0/net/http.rb:863:in `do_start'
  /usr/local/lib/ruby/2.3.0/net/http.rb:858:in `start'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/vendor/net/http/persistent.rb:700:in `start'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/vendor/net/http/persistent.rb:965:in `reset'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/vendor/net/http/persistent.rb:628:in `connection_for'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/vendor/net/http/persistent.rb:994:in `request'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/fetcher/downloader.rb:48:in `request'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/fetcher/downloader.rb:16:in `fetch'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/fetcher/dependency.rb:9:in `available?'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/fetcher.rb:154:in `use_api'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/source/rubygems.rb:331:in `block in api_fetchers'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/source/rubygems.rb:331:in `select'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/source/rubygems.rb:331:in `api_fetchers'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/source/rubygems.rb:336:in `block in remote_specs'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/index.rb:10:in `build'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/source/rubygems.rb:335:in `remote_specs'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/source/rubygems.rb:82:in `specs'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/definition.rb:211:in `block (2 levels) in index'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/definition.rb:209:in `each'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/definition.rb:209:in `block in index'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/index.rb:10:in `build'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/definition.rb:206:in `index'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/definition.rb:200:in `resolve'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/definition.rb:140:in `specs'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/definition.rb:129:in `resolve_remotely!'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/installer.rb:195:in `resolve_if_need'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/installer.rb:70:in `run'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/installer.rb:22:in `install'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/cli/install.rb:102:in `run'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/cli.rb:175:in `install'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/cli.rb:11:in `start'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/exe/bundle:27:in `block in <top (required)>'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/friendly_errors.rb:98:in `with_friendly_errors'
  /usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/exe/bundle:19:in `<top (required)>'
  /usr/local/bin/bundle:23:in `load'
  /usr/local/bin/bundle:23:in `<main>'

Environment
Bundler   1.12.5
Rubygems  2.5.1
Ruby      2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
GEM_HOME  /usr/local/lib/ruby/gems/2.3.0
GEM_PATH  /usr/local/lib/ruby/gems/2.3.0:/home/vishu/.gem/ruby/2.3.0
Git       1.9.1
  Bundler settings

orig_path
Set via BUNDLE_ORIG_PATH: "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/vishu/.rvm/bin:/home/vishu/.rvm/bin"
--- TEMPLATE END ----------------------------------------------------------------

This looks like some sort of network error. Are you running bundle install behind a firewall or some other kind of restricted network environment?

This will yield a better error message about bundler being unable to reach the host on master


Cloudwatch-s3-forwarder split variable

It seems that the default value for split doesn't fit with the related ternary.
I.e. if split is true (or "true") the ternary becomes false, as it expects 1.
Thus, even if you explicitly pass split=true to the module, it still becomes false in the resulting state.
NOTE: This is with terraform 0.12-rc1

Seems to be related to terraform 0.12 as the docs for 0.11 have an explanations for this


Gulp pipeline

Following up PR #54, a Gulp pipeline would make SCSS/SASS and LESS compilation easier.

@Blue-EyesWhiteDragon Thanks for your contribution mate!
Please check #56.
I just publish the latest update to npm.


ModuleList not showing up in summary

Hi,
it looks like modules wrapped in a ModuleList don't show up in the summary (looks like the params are counted in the total though).
Minimal example:
import torch
from torchsummary import summary

class TestModule(torch.nn.Module):
    def __init__(self):
        super().__init__()
        self._layers = torch.nn.ModuleList()
        self._layers.append(torch.nn.Linear(5,5))
        self._layers.append(torch.nn.Linear(5,5))

    def forward(self, x):
        out = x
        for l in self._layers:
            out = l(x)
        return out

if __name__ == "__main__":
    my_module = TestModule()
    summary(my_module, (5,))

Gives
------------------------------------------------------------------------------------------
Layer (type:depth-idx)                   Output Shape              Param #
==========================================================================================
==========================================================================================
Total params: 60
Trainable params: 60
Non-trainable params: 0
Total mult-adds (M): 0.00
------------------------------------------------------------------------------------------
Input size (MB): 0.00
Forward/backward pass size (MB): 0.00
Params size (MB): 0.00
Estimated Total Size (MB): 0.00
------------------------------------------------------------------------------------------

Whereas the print(str(model)) gives
TestModule(
  (_layers): ModuleList(
    (0): Linear(in_features=5, out_features=5, bias=True)
    (1): Linear(in_features=5, out_features=5, bias=True)
  )
)

Is this expected behavior? I could probably work on a PR if you think this should be changed and you have no quick fix for it.

This should be changed! If you would like to start a PR, that would be awesome!

Alright. I'll work on a PR.

I also encountered the same problem and there was no network information.

So I started looking into this, and this happens when the parent module is not called. As a quick workaround passing branching=False works as a workaround to see the nested layers, but removes the hierarchical output.
@TylerYep I'm not sure what the 'right' way to handle this would be. I made a fix where I store the parent of each module and print its full hierarchy from the point where the current hierarchy is different. The question is how to handle indexing correctly. Currently it assigns one index for each call to a layer, but now some layers are not called. If I instead assign an index on creation, that would print the same index, if a layer is called twice (breaking the tests, not sure if this would be better though?) For now I made it so that these layers will not show an index, and otherwise indexing is unchanged.

The changes look really great! I left a few minor comments on the PR. Functionality-wise it looks good to merge, but it would be great if you could add tests for all of the models you tried.
To do so, just add models to fixtures/models.py, and add each call to torchsummary_test.py. Output tests are optional, since the ModuleList output is subject to change.
I will think about the indexing strategy a bit more, but seeing as none of the previous test cases have broken, these changes seem good to merge - I'll add a note that Sequential and ModuleList support is in-progress.


#5: Remove extra pipe

An extra pipe in values.yaml was creating an unmarshal error.

@mkrueger12 did it cause any trouble? The pipe is a system char in YAML that helps to treat the value after it as a string rather than another piece of YAML

It's super strange it was working for my local k3d cluster 🤔


Adding pdftotext for PDF support in Hypercube

GitHub Issue: https://github.com/Islandora-CLAW/CLAW/issues/933
What does this Pull Request do?
Adds pdftotext support for Hypercube.
What's new?
Hypercube now checks the content type of the resource and uses pdftotext if it receives a PDF.
How should this be tested?

sudo apt-get install pdftotext
Pull this down into crayfish
Update the executable entry in config.yaml to be tesseract_executable and pdftotext_executable as per config.example.yaml.
Upload a PDF
Hit hypercube with something like this: curl -H "Authorization: Bearer islandora" -H "Apix-Ldp-Resource: http://localhost:8080/fcrepo/rest/2019-09/my-file.pdf" localhost:8000/hypercube/
Watch the lovely extracted text get blurted out onto your console.

Additional Notes:
Updated ansible role coming soon.
Interested parties
@Islandora-CLAW/committers

@dannylamb you need to update all the tests as the constructor now has additional required arguments.

Kk, no prawb

@whikloj Travis is appeased.


Make options be a ThumborServiceApp dictionary

Stop using tornado's options since they work at the thread level. Start using app-level options, since the App object is available to all handlers.

Done!


refactor: HTTP Source

Changes:

refactor HTTP Source close #89

What's the feature of the HTTP source support?

any HTTP method and put it into the event attribute
any URL and put it into the  event attribute
the headers, query args, and body put into the event data
the special headers such as source, id, type, subject as event attribute
others?

What's the feature of the HTTP source support?

any HTTP method and put it into the event attribute
any URL and put it into the  event attribute
the headers, query args, and body put into the event data
the special headers such as source, id, type, subject as event attribute
others?

I think the main problem is users when to use HTTP Sink. so far I can only figure out is webhook scenario. If users make HTTP Requests by themself, why do they use HTTP Sink instead of CloudEvents?


check if the treemap is empty during metircscache purge process

check if the treemap is empty during purge process

if (!cacheMetric.isEmpty()) {
for ( ;; /this may throw exception/ ) {
// remove changes map
}
}
i do not think puting the for loop inside if block can handle the exception throw from for loop.
the loop changes the collection and the exception may be thrown from inside if block.

Can you clarify the excepton and what causes it? It's not clear from your description, so based on the code I assumed it was caused when calling cacheMetric.firstKey() when cacheMetric.isEmpty() == true. Putting that check outside the for loop would keep that from happening no?

The for loop changes the treemap. After entering the if block, the treemap may change to empty.

Could we do this then instead? I'm suggesting for readability. Trying to decipher the reasoning for the null checks make the code harder to understand.
while (!cacheMetric.isEmpty()) {
  Long firstKey = cacheMetric.firstKey()
  if (firstKey < now - maxIntervalMilliSecs) {
    break;
  }
  cacheMetric.remove(firstKey);
}

updated


Line breaks are removed from comments

Prerequsities

[x] I'm on the latest version of the plugin: develop (fa16905fab17f5f655f959d469a22d0ef5cbf91b)
[x] I've installed the required dependencies
[x] I've run :h gitlab.nvim.troubleshooting and followed the steps there

Bug Description
New lines are removed from the text of a comment/note - in Neovim the line breaks are correct:

Whereas in Gitlab online, all the lines are concatenated:

Two consecutive new lines are retained, though:

This is strange, I'm actually able to replicate this with cURL like this:
$ curl -X PUT -H "PRIVATE-TOKEN: $GITLAB_TOKEN" -H "Content-Type: application/json" -d '{"note":"This is a multiline\nComment with\nSome line breaks","position":{"base_sha":"","head_sha":"","start_sha":"","position_type":"text"}}' https://gitlab.com/api/v4/projects/YOUR_PROJECT_ID/merge_requests/YOUR_MERGE_ID/draft_notes/DRAFT_NOTE_ID

It seems that a single \n character is not respected in their APIs?

Further confirming this is actually a Gitlab bug, you can see this if you toggle between rich text and regular editing for a comment with the exact same text:
https://github.com/harrisoncramer/gitlab.nvim/assets/32515581/1aaad832-2a8d-464d-9447-8972695fbd67

Oh my, I just realized, this is not a bug but normal markdown behaviour 🤦


Matrix multiplication operator

Not · or dot because of scalar product.
Not @ because of proximity to [-4 4<EMAIL_ADDRESS>

I think we should

Keep v dot m for val-maps-monzo action.
Implement x vdot y for array product evaluating to a linear scalar.
Implement A mdot B for array of arrays matrix multiplication.

For new operators, missing entries are interpreted as zeros. Non-number entries raise a runtime error.
If possible to detect, vdot should map over arrays of arrays and mdot over n-arrays where n > 2.


It is not possible to see any error output from crashed debug adapter extension

VSCode Version: Code 1.18.1 (929bacba01ef658b873545e26034d1a8067445e9, 2017-11-16T18:34:22.110Z)
OS Version: Linux x64 4.10.0-42-generic
Extensions:

Extension
Author (truncated)
Version

swagger-viewer
Arj
1.5.0

Bookmarks
ale
0.18.0

cpptools
ms-
0.14.4

swaggitor
qns
0.1.1

qore-vscode
qor
0.2.6

cmake
twx
0.0.17

(2 theme extensions excluded)

I am developing a debug adapter extension but even through extensive logging, it's sometimes hard to find problems when the debug adapter crashes because VS Code just shows an error message Debug adapter process has terminated unexpectedly. There's no output in any of the terminals and debug consoles. It would be very useful if VS Code showed the exit code and stderr output which was produced by the debug adapter.
Steps to Reproduce:

Create a debug adapter extension.
Start debugging it.
Try to debug some file using it.
Make the debug adapter crash.

Reproduces without extensions: Yes

Just found out that in the [Extension Development Host] window, in the Extensions tab of the Output terminal, there's stderr output. I guess this makes this issue solved.
But nonetheless, if VS Code opened this terminal tab in case of extension crash automatically, it would be useful. Or if it somehow made it more visible that there's a tab of the terminal with new unread output.


Context menu on hover / clickable tooltips

It would be great to be able to bring up a context menu just by hovering an element. It would act similar to a tooltip, but a tooltip you can interact with (it won't go away when you move the mouse).

For anyone looking into implementing this, this would probably be an abstraction over the trigger mechanism for bringing up a stationary menu, i.e. a menu created at some other element (represented by response):
https://github.com/emilk/egui/blob/2d2022fb7290bf4fcca373ad3a0dc98b680a9203/egui/src/menu.rs#L284-L308
the menu doesn't really have a mechanism for configuring it yet, but I suppose this could be easily added with some enums and a MenuConfig struct or something like that.

It would also be interesting to be able to open a context menu with a left click or through some other action programmatically.

This could also be implemented as "Tooltips stay put when you move the mouse onto them"

This could also be seen as a Window that is anchored to a Response and closes when you click outside it, like the solution proposed for #4463. This is called a Popup in other UI libraries, but egui already uses popup to refer to the ComboBox drawer.


Jenkins Redhat repo certificate has expired

Affected Puppet, Ruby, OS and module versions/distributions

Puppet: Bolt 2.13.0
Ruby: jruby <IP_ADDRESS> (2.5.7)
Distribution:
Module version:  'puppet-jenkins', '2.0.0'

How to reproduce (e.g Puppet code you use)
class { 'jenkins':
version => '2.235.1',
.....
}
What are you seeing
Package[jenkins]: change from 'purged' to '2.235.1' failed: Could not update: Execution of '/bin/yum -d 0 -e 0 -y install jenkins-2.235.1' returned 1: One of the configured repositories failed (Jenkins),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
   1. Contact the upstream for the repository and get them to fix the problem.

   2. Reconfigure the baseurl/etc. for the repository, to point to a working
      upstream. This is most often useful if you are using a newer
      distribution release than is supported by the repository (and the
      packages for the previous distribution release still work).

   3. Run the command with the repository temporarily disabled
          yum --disablerepo=jenkins ...

   4. Disable the repository permanently, so yum won't use it by default. Yum
      will then just ignore the repository until you permanently enable it
      again or use --enablerepo for temporary usage:

          yum-config-manager --disable jenkins
      or
          subscription-manager repos --disable=jenkins

   5. Configure the failing repository to be skipped, if it is unavailable.
      Note that yum will try to contact the repo. when it runs most commands,
      so will have to try and fail each time (and thus. yum will be be much
      slower). If it is a very temporary problem though, this is often a nice
      compromise:

          yum-config-manager --save --setopt=jenkins.skip_if_unavailable=true

failure: repodata/repomd.xml from jenkins: [Errno 256] No more mirrors to try.
https://pkg.jenkins.io/redhat-stable/repodata/repomd.xml: [Errno 14] curl#60 - "Peer's Certificate has expired."
When going to https://pkg.jenkins.io/redhat-stable/
WARNING: The gpg key use to sign our packages has been updated on 16th of April 2020, therefore you need to reimport it if you imported before this date.
What behaviour did you expect instead
Jenkins installed
Output log
See above
Any additional information you'd like to impart
more /etc/yum.repos.d/jenkins.repo
[jenkins]
name=Jenkins
baseurl=https://pkg.jenkins.io/redhat-stable/
enabled=1
gpgcheck=1
gpgkey=https://pkg.jenkins.io/redhat/jenkins-ci.org.key

IIRC, the problem is the Reimport.
the yum module doesn't support that

Given it works on fresh installs and it was rotated a while back, I'm going to assume this is no longer a problem.


getMostPrecise CoordinateOperation

fixes https://github.com/dbeaver/dbeaver/issues/5729#issuecomment-489536801
use most precise CoordinateOperation, not all

Thanks for fixing this!
I didn't had a chance to test against multi-operational CRSes.


Disable grammarly differently.

I'll get someone who uses it to compare.

Closing without merging. I cannot get Grammarly's Chrome extension to break anything with things as they are. It's also really easy to disable on a per site basis. Closing, will revisit if we get user reports.


Custom css style for web component

Hello, I am using agora-react-web-uikit web component in a Vuejs application. Are there any ideas to add StyleProp using web component approach? Thank you

Hi, this is definitely something we'd like to add. If you have ideas please feel free to submit a PR and I'll be happy to review and give my feedback.


JSS importer return duplicate ID error when try to import component with param fields defined as

Description
This issue actually occurs when I have used RenderingParameterDefinition way of defining Params instead of just using String. Ex:
params: [
      { name: 'small', displayName: "Small", type: CommonFieldTypes.Number }
    ],

And when I try to import this into Sitecore, it throws following mention error for the first time. Then if I ran it for the second time, it goes successfully.
NOTE: after second import everything works fine but issue occurs when try to import it for the first time ONLY.

Exception thrown while importing JSS app Exception: System.InvalidOperationException Message: The ID {066A79EA-C450-5853-B44E-7125E977BDF0} has been used more than once during import. This likely means two imported items have the same id value, or two items of the same type (e.g. templates) share the same name. Details: template Body1ColRow Rendering Parameters, template Body1ColRow Rendering Parameters Source: Sitecore.JavaScriptServices.AppServices at Sitecore.JavaScriptServices.AppServices.Data.IdManager.AssertIdIsUnused(ID id, String idUsageDescription) at Sitecore.JavaScriptServices.AppServices.Pipelines.Import.ProcessTemplates.CreateTemplate(TemplateDef templateDef, Item parent, Item multilistRoot, AppConfiguration app, IdManager idManager) at Sitecore.JavaScriptServices.AppServices.Pipelines.Import.ProcessTemplates.d__11.MoveNext() at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source) at Sitecore.JavaScriptServices.AppServices.Pipelines.Import.ProcessTemplates.Process(ImportPipelineArgs args) at (Object , Object ) at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain, Boolean failIfNotExists)
at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain) at Sitecore.JavaScriptServices.AppServices.Pipelines.Import.ImportPipeline.Import(ImportPipelineArgs args) at Sitecore.JavaScriptServices.AppServices.ImportService.ImportJob.ProcessRetries(ImportPipelineArgs args) at Sitecore.JavaScriptServices.AppServices.ImportService.ImportJob.StartImportInternal()
Import is complete.
IMPORT ERROR(S) OCCURRED! Exception thrown while importing JSS app Exception: System.InvalidOperationException Message: The ID {066A79EA-C450-5853-B44E-7125E977BDF0} has been used more than once during import. This likely means two imported items have the same id value, or two items of the same type (e.g. templates) share the same name. Details: template Body1ColRow Rendering Parameters, template Body1ColRow Rendering Parameters Source: Sitecore.JavaScriptServices.AppServices at

Expected behavior
Import should not throw duplicate ID error for the first time import also
Steps To Reproduce

Create a jss component with Param field defined using RenderingParameterDefinition
run jss deploy app -c -d
See error
run jss deploy app -c -d
doesn't throw any error

Possible Fix
When we import it for the second time (without wipe out the content), importer doesn't return any errors and gets imported successfully
Your Environment

Sitecore Version: 9.0.2 (rev. 180604)
JSS Version: 11.0.1
Browser Name and version: Chrome
Operating System and version (desktop or mobile): Windows 10

This issue seems to be already fixed. I'm closing this one as I'm unable to reproduce it on the latest code.

Hi everyone,
I find the same issue.
But this time I have not created any templates with params.
There is an existing template that has the params that causes the issue it is the styleguide templates when your try to setup new JSS app.
And actually I am not using it. When the JSS import kicks in it post an issue something like this

I have the same issue. I ran the commend twice but the issue still exists.


add dependencies to result

see also https://github.com/sveltejs/svelte-loader/issues/72 and https://github.com/sveltejs/svelte-loader/pull/75

Oh, awesome! :tada: Thanks!

Released in v2.5.0


Implementation for OnUnlockGenerator

Im sadly not able to code this my self because I'm to stupid to clone the repo and help coding it, but this might be a good Idea :)

Because the NWAPI PlayerUnlockGeneratore event is executed when a player has a Keycard to unlock a generator, I need an Event that is PlayerInteractGenerator which I already did a PullRequest in NWAPI (https://github.com/northwood-studios/NwPluginAPI/commit/648f60e1ff3b389b56f977211eefdf0fc6804113) when NWAPI is updated to Release 6 I will be able to do this