OnResume from background, all my notification disappear but no Event Call Back

Hi
I am wondering how do i handle onResume functions.
When i resume the app by either clicking on the Icon, the push notifications from the tray, all get wiped, but there are no event call back, none of the message get appeneded, they just disappeared.
For the foreground
if (e.foreground)               {
            $("#app-status-ul").append('<li>--INLINE NOTIFICATION--' + '</li>');

            // if the notification contains a soundname, play it.
            var my_media = new Media("/android_asset/www/"+e.soundname);
            my_media.play();
            }

For Resume
would i do
function onResume() {
onNotificationGCM = function(e) {
$("#app-status-ul").append('--INLINE NOTIFICATION--' + '');
}
}
document.addEventListener("resume", onResume, true);
??

Your onNotification function should be called when your app isn't active and you click the notification icon. From what I understand, e.foreground will be true if the app is open when the notification is received. Otherwise, e.coldstart will be true if the app hasn't been started. If the app has been started but has been minimised, e.coldstart and e.foreground will both be false. The onNotification function in the example code demonstrates this well.

@samvrlewis But what happen when i click the App Icon to resume the App? I am still confused because in some of the comment like https://github.com/phonegap-build/PushPlugin/issues/423, the last comment by Gionni, he said in 2.4.0, the issue has been fixed? So i should be able to just click the App icon to resume to the app and by using onResume, i should be able to trigger a ECB? Because at the moment, when i resume the App by clicking the App icon, it clears my notification Tray, but there is no ECB.

I have  window.onNotificationGCM = function(e) {} then i call   if (e.foreground)               {} else{      if (e.coldstart){}else{}
Not sure how am i supposed to call for ECB or if i am able to do so when i resume by clicking the App icon but not the notification.
When i resume the App(by clicking the App Icon), it doesnt do anything and when i put the App back to the background, it clears the tray. So i never receives the notification(if i click on the App icon), and i have to click on the notification to resume, but i want to be able to allow the users to click the App icon to resume and still have an ECB.

Sorry, misunderstood what you were asking. If you're developing for Android can you modify the plugin as Gionni does here: https://github.com/phonegap-build/PushPlugin/issues/423#issuecomment-67211763 ?

@samvrlewis
No prob, there are 2 points.
1.) I want to see/confirm if a fix on the Java is needed or not(as i am not sure on the standard behavior for version 2.4.0) Gionni first mentioned the fix(comment link you attached) will fix it, but in the end of that thread,he mentioned the fix is not needed, as the ECB for onResume should be a standard behavior. marek1 say 2.4.0 solved all. If it's standard behavior, what is to fix?(I am very confused, and no indication on Read.me)
2.) I also need this for IOS and Win Moible(possibly).

It's hard to be sure but maybe 2.4.0 fixed it on iOS? I'm only using
android so can't tell. I don't think it is working for android at the
moment. Would be good if anyone could confirm the behavior in iOS.
On Tue, 7 Apr 2015 15:59 clarklight<EMAIL_ADDRESS>wrote:

@samvrlewis https://github.com/samvrlewis
No prob, there are 2 points.
1.) I want to see/confirm if a fix on the Java is needed or not(as i am
not sure on the standard behavior for version 2.4.0) Gionni first mentioned
the fix(comment link you attached) will fix it, but in the end of that
thread,he mentioned the fix is not needed, as the ECB for onResume should
be a standard behavior. marek1 say 2.4.0 solved all. If it's standard
behavior, what is to fix?(I am very confused, and no indication on Read.me)
2.) I also need this for IOS and Win Moible(possibly).
—
Reply to this email directly or view it on GitHub
https://github.com/phonegap-build/PushPlugin/issues/525#issuecomment-90376398
.

@samvrlewis  Ahh ok, no problem. But just wondering if that deletes your notification tray as well when you put the App back to the background(if you resume the App by App Icon) but not notification tray.

For me if I have a notification then open the app through the app icon the notification remains. However, if I minimise the app again the notification disappears. Definitely not ideal behaviour!
I am using Cordova instead of PhoneGap though.

@samvrlewis yes, when you minimise it(the "Pause") action triggers the "clear" function. By the way, i was doing some research and found that a few people forked this version and made some changes, and made it into phonegap builds plugin. https://build.phonegap.com/plugins.
I havent tested out any of it, but maybe its worth a look at(if you are interested).

Ah yep, just found that too. Removing notificationManager.cancelAll() makes it work as expected (why would you want the notifications to disappear if the app is paused??). Thanks for the tip about the forked versions; it's a shame nobody is maintaining this project.

@samvrlewis Just wondering where is that line? notificationManager.cancelAll() I am still trying to figure out what i gotta do, because i am using phonegap build. And i am trying to find a way, if there are any of those phonegap build version has this notificationManager.cancelAll() line in. So i dont have to transfer everything through CLI(as i will have to move all my files etc).

That line is line 134 of PushPlugin.java, I commented out lines 134 and 135.
I agree that it is very weird that it's not maintained, would have thought it would've been a priority as well. The Android code even uses a depreciated API from Google. It might be worth asking on the PhoneGap support forums why this plugin isn't being maintained?
BTW, this pull request might be useful for you as well but I haven't tested it: https://github.com/phonegap-build/PushPlugin/pull/279

@samvrlewis Thanks! I will read up that thread, by the way http://stackoverflow.com/questions/29204334/how-to-handle-push-notification-when-application-is-resumed
PushPlugin.sendExtras(extras); this line, move that out from the ifinForeground, then the message will pass thru without clicking, so even on Resume the message will go into the ECB if you need it. I will try to dig deeper if i can find anything for IOS and Win Mobile(Maybe if they do have something for it).
I actually opened a Thread on Phonegap Forum, about this onResume issue. No reply.

Yep I think that's similar to Gionni's solution that I linked to before?
I think alerting PhoneGap that the plugin isn't being maintained at all might be more useful than telling them this specific issue. It may be the intended behaviour that the notification isn't received until the notification icon is pressed.
I did see that someone else posted on the support forums about this plugin not being maintained/pull requests not being accepted: http://community.phonegap.com/nitobi/topics/official-pushplugin-plugin-have-many-issues-and-pull-requests-must-to-fix-it-and-merge-it. It may be worth raising an issue in the PhoneGap build repo like this one https://github.com/phonegap/build/issues/298 as suggested.
I did test taking out those two lines. When the lines are removed it just stops the notification disappearing when the app is paused, it doesn't change the onResume behaviour. To get the onNotification event to fire when the app is resumed I think you'll have to use either that StackOverflow solution or Gionni's solution.

Ahh ok, i was actually digging into the Java, i dont really have much experience in Java, just some experience in AS3. I was thinking if for the public void onResume set the         PushPlugin.sendExtras(extras); in there, maybe it triggers the ECB passthru. But i am really bad in OOP so.
i will keep this fix for now. And also raise the "alert" on Phonegap Forum.
The problem with the stackoverflow fix, is that it turns it into a silent passthrough, i assume. The best behavior would be the one they have on Gmail/Gchat. When on resume the ECB is triggered. But for now. I will have to deal with it for Android, then figure something out for IOS.
Do you have any experience in submitting plugins in phonegap?

I just tested it and calling PushPlugin.sendExtras(extras) always in onMessage (in GCMIntentService.java) works as described in the StackOverflow question. If the app isn't in the foreground/active then the extras will be cached and then your ECB is called once the app is open. It's not a silent pass through.
I don't have any experience in submitting plugins, sorry. Building the app myself with Cordova wasn't very hard though, I assume it's similar for PhoneGap.

Ahh ok, thanks! I was thinking it has something with silent pass-thru.
It shouldnt be too hard to build it with Phonegap using CLI, i just dont really have much time at the moment to switch things over. So trying to find the quickest way to get everything working.
So it means that by calling PushPlugin.sendExtras(extras) in onMessage, that fixed everything(just want to 100% clarify). So the foreground and background(by clicking the notification tray) and ALSO onResume by App Icon, all 3 scenarios works? Its a good fix?

Yep, so the ecb fires for me if I:

Click the notification icon to open the app
Open the app through the app icon after a notification is received and the app is paused
Open the app through the app icon after a notification is received and the app is not running at all

The only slight problem is that if you have a notification, open the app through the app icon and then click the notification icon, the ecb will fire both times. If this isn't desired behaviour you could fix by cancelling the notifications when the cached extras are sent.
Also, you'll still need the other fix I mentioned in https://github.com/phonegap-build/PushPlugin/issues/525#issuecomment-90799252 if you don't want notifications cancelled when the app is paused.
I'd be very interested to hear what the behaviour is on iOS, let me know how you go with it. I have a feeling it may be totally different to Android and just work as we expected. I think this project was merged in from multiple different plugins so each platform probably has different behaviour.

Also, if you want a notification icon to appear while the app is in the foreground (this doesn't happen by default), you should add createNotification(context, extras); in after line 68 of GCMIntentService.java.
Also not sure if you've noticed but if you send the phone a second notification then it overwrites the first one. This is as notId is always set to 0 in createNotification. You can change by setting it to something different each time (maybe current UNIX time in ms or something?).

ok. So 2/3 points
-) Double ECB firing - when you open the App thru App icon then clicking the notification icon
(BUT CAN BE FIXED?? by Adding  final NotificationManager notificationManager = (NotificationManager) cordova.getActivity().getSystemService(Context.NOTIFICATION_SERVICE);
notificationManager.cancelAll();
In the public void onResume part in Pushplugin.Java??
That should remove the notification tray on resume but also keeping the ECB. As you add in the stackoverflow fix.
-) Then by removing the above part(notificationManager.cancelAll(); ) from onPause.
Then that should mean, when you onResume(whatever way) the ECB fires, then deletes the Push Notification tray. And on Pause it does nothing(So it doesnt cause any conflict, thinking there are something to delete).
The notID part, yes thats a problem for Android. I heard its not a problem for IOS. But i had been just generating an ID n+1 each time and when it hits 10,000, it starts back from 0. So it kind of patches it up.

Yep, I guess cancelling them in onResume would work as well. I think cancelling them in the if block starting on line 74 of PushPlugin.java might be a bit better as you're calling that function a bit less (rather than every time you resume)? But it probably doesn't matter too much.
The only issue is that I guess it's a bit confusing for the user. If I'm using an app I don't expect my notifications to disappear when I open the app. I guess it depends on what your app is doing though. A better way might be to not put the extras with the notification intent. That way the notification remains but just acts as a way to open your app. I'll have to have a think about the best way to implement it for what I'm working on.

Haha yer sorry, i had a plan in my mind, i was only wanting to pay the 9.99 is that i can submit 2 versions for this into Phonegap if they allow me.
1.) is that for the notification to pass thru when on resume, and the notification disappears( this is the version i need, so i can use phonegap build for it).
2.)And the second version i will keep the notification in the tray and delete the clear tray when onPause.
So the notification won't be passed through only until it is clicked(to avoid the double fire issue).
Then the users can have a choice to what they need!
I will keep you updated and on the IOS version as well.

I am still playing with the pushplugin, and i am not sure if it is me, or if it is a general conflict. But my pushplugin doesn't work with Single Instance Launch Mode, only works with SingleTop.

Hi, it's been a while, i am just wondering if anyone has any experience/knowledge on silent pass through for Android(for phonegap push plugin)?
I see that there are work done for IOS https://github.com/phonegap-build/PushPlugin/issues/288
But seems like they have not mentioned anything about Android.

Fairly straight forward on Android as you need to explicitly create a notification. Look at GCMIntentService.java. If you just want your Javascript callback function to fire without a notification popping up on the device, just remove the call to createNotification. If you want to create the notification only sometimes you'll have to include some sort of flag in your notification and then check that in the onMessage Java function.

Cool, thanks, but i am not 100% sure on it though, i am thinking to have the Event call back to trigger even when the phone is in the background,(The phone receives the notification, the user does not touch the phone, but ecb still fires and trigger an Ajax in the App). Also creating a notification and put into the notification tray. Do you mean that? I am a little confused sorry.

I am having similar problems with the plugin too. I noticed that the android clear on pause issue might have been a simple mistake on the devs part. I believe the two clear lines (134-135) should be in the resume event instead (which would make for more standard functionality).

i did the PushPlugin.sendExtras(extras)  in GCMIntentService.java and it worked!! Thanks guys this saved my life!... i just im a little confuse about what the Extras mean??? in the documentation of the plugin there is no explanation, i cant find it.... what exactly im sayin to the PushPlugin to do when i put the sendExtras??

I fixed this issue here #314
I have explained in detailed

This issue is fixed in the new plugin
For Android, you need to set clearNotifications:false, which is default true.

Hi everyone,
I am new to ionic and using pushPlugin for push notifications. I want to call a function when I receive notification. Currently I am receiving notification and calling function when user tap the notification. How can I achieve this to call a function when I receive notification (means without tapping notification) irrespective of app in foreground/background? any help will be appreciated. Thanks

@arshad104 go here

@pawarkishor Thank you for quick response. Can I just clone and replace this plugin?

@kishorpawar Where can I put the following code?
if(ALREADY_REGISTERED) {       pushNotification.setECB(success, error, { "senderID" :"SENDER_ID_HERE","ecb": "window.onNotificationGCM" });    } else {      pushNotification.register(success, error, { "senderID" :"SENDER_ID_HERE","ecb": "window.onNotificationGCM" });    }
My code is:
`pushNotification = window.plugins.pushNotification;
window.onNotification = function(e) {

  //alert('notification received');

  switch(e.event){
    case 'registered':
      if(e.regid.length > 0) {
        device_token = e.regid;
        //alert(device_token);
        NotificationService.register(device_token).then(function(response){
           console.log('registered!');
        });
      }
    break;

    case 'message':
      //alert('msg received');
      NotificationService.acknowledge(e.payload.msg_key).then(function(response){
        console.log('acknowledged!');
        //alert(JSON.stringify(response));
      });
    break;

    case 'error':
      console.log('error occured');
    break;

  }
};

window.errorHandler = function(error){
  console.log('an error occured');
};

pushNotification.register(onNotification, errorHandler, config);`
I am confused at this point. Please help?

Last line where you register
On Tue, 13 Dec 2016 at 12:31, arshad104<EMAIL_ADDRESS>wrote:

@kishorpawar https://github.com/kishorpawar Where can I put the
following code?
if(ALREADY_REGISTERED) { pushNotification.setECB(success, error, {
"senderID" :"SENDER_ID_HERE","ecb": "window.onNotificationGCM" }); } else {
pushNotification.register(success, error, { "senderID"
:"SENDER_ID_HERE","ecb": "window.onNotificationGCM" }); }
My code is:
`pushNotification = window.plugins.pushNotification;
window.onNotification = function(e) {
//alert('notification received');
switch(e.event){
case 'registered':
if(e.regid.length > 0) {
device_token = e.regid;
//alert(device_token);
NotificationService.register(device_token).then(function(response){
console.log('registered!');
});
}
break;
case 'message':
  //alert('msg received');
  NotificationService.acknowledge(e.payload.msg_key).then(function(response){
    console.log('acknowledged!');
    //alert(JSON.stringify(response));
  });
break;

case 'error':
  console.log('error occured');
break;

}
};
window.errorHandler = function(error){
console.log('an error occured');
};
pushNotification.register(onNotification, errorHandler, config);`
I am confused at this point. Please help?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/phonegap-build/PushPlugin/issues/525#issuecomment-266662495,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEJnWzq0wBqoDfbZC2piJTZRKuTJDXhZks5rHkLBgaJpZM4D5AUT
.

--
Thanks & Regards
Kishor Pawar
The Trouble with the world is that Stupids are Full of Confidence and
The Intelligent are Full of Doubts.

@kishorpawar Thank you for your help. I am unable to get notification, just getting vibration when notification received, no notification on status bar? what could be the fix? any idea?


"Keyboard Do" feature

Description of the new feature / enhancement
That feature (name can be changed) will allow the user to make a physical key combination start a command or run an application and with args if you want
Scenario when this would be used?
A lot of scenarios like automating some work as running a python script when you want with no need to go to certain path or keep it on the desktop
Supporting information
No response

Duplicate of #5668

Issue is a duplicate
Thank you for your issue! We've linked your report against another issue to centralize the thread.
Thanks for helping us to make PowerToys a better piece of software.


Iterable fails to build using Carthage

I'm seeing build failures when attempting to use the Iterable SDK via Carthage:
/Users/jason.pepas/gitlab/everlywell/ios-app/Everlywell/Carthage/Checkouts/swift-sdk/swift-sdk/swiftui/IterableInboxView.swift:73:27: error: cannot find type 'View' in scope
    public var body: some View {
                          ^~~~
/Users/jason.pepas/gitlab/everlywell/ios-app/Everlywell/Carthage/Checkouts/swift-sdk/swift-sdk/swiftui/IterableInboxView.swift:11:34: error: cannot find type 'View' in scope
public struct IterableInboxView: View {
                                 ^~~~
/Users/jason.pepas/gitlab/everlywell/ios-app/Everlywell/Carthage/Checkouts/swift-sdk/swift-sdk/swiftui/InboxViewRepresentable.swift:22:40: error: cannot find type 'Context' in scope
    func makeUIViewController(context: Context) -> IterableInboxViewController {
                                       ^~~~~~~
/Users/jason.pepas/gitlab/everlywell/ios-app/Everlywell/Carthage/Checkouts/swift-sdk/swift-sdk/swiftui/InboxViewRepresentable.swift:34:91: error: cannot find type 'Context' in scope
    func updateUIViewController(_ uiViewController: IterableInboxViewController, context: Context) {
                                                                                ^~~~~~~
/Users/jason.pepas/gitlab/everlywell/ios-app/Everlywell/Carthage/Checkouts/swift-sdk/swift-sdk/swiftui/InboxViewRepresentable.swift:11:32: error: cannot find type 'UIViewControllerRepresentable' in scope
struct InboxViewRepresentable: UIViewControllerRepresentable {
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

** BUILD FAILED **

This is on an M1 mac.

Note: as an experiment, I forked this repo and bumped the all of the deployment targets to 13.6, and it then works with Carthage.
(Cartfile entry: github "pepas-everly/swift-sdk" == 99.2)
So for some reason, when Carthage builds, it appears the preprocessor directives aren't working correctly.  It attempts to build the SwiftUI code, but fails because the deployment target is below 13.

Should be fixed with version 6.4.2. Please open a ticket with your CSM if you are still seeing issues.


Expose Table's current sort order

A Table input's current sort order is only tracked internally. This poses a problem if a notebook author wants to persist the current sort state, e.g. via a permalink.
Suggested solution
When the sort column or order is changed, dispatch a custom sort event:
new CustomEvent('sort', {bubbles: true, detail: {sort: currentColumnName, reverse: currentReverse}})

Workaround
The instantiating cell can listen to click events and parse order and column name from event.target.textContent. This technique is error prone and expected to break once additional features (like custom table names) have been added.
The workaround is currently implemented here: https://observablehq.com/@mootari/sortable-notebook-list#selection

Not sure if this is the same, but I think I was just experiencing this need. If I create a table like this:
viewof selected = Inputs.table(data)

selected won't change when I change the order of the element of the table by clicking on one of the columns. However, if selected some or all the rows using the checkboxes then the table order will be reflected on selected. It would be nice for the table to trigger an input whenever the table visual order changes

To follow up on this discussion, here is a video demonstrating my view of the problem. Inputs.Table should trigger the input event when the order changes. At least it should be configurable via options
https://observablehq.com/d/297b6d84743974ae

@john-guerra's suggestion would be consistent with what Inputs.table does when passed a sort option; I wonder if we couldn't just do the following:
index bd2df74..451d73a 100644
--- a/src/table.js
+++ b/src/table.js
@@ -238,6 +238,7 @@ function initialize(
     while (tbody.firstChild) tbody.firstChild.remove();
     appendRows(0, n = minlengthof(rows * 2));
     anchor = head = null;
+    root.dispatchEvent(new CustomEvent('input', {bubbles: true, detail: {sort: column, reverse: currentReverse}}));
     reinput();
   }

demo at https://observablehq.com/@fil/table-sort-115 ; this also allows to listen to the input event and check if it's a sort event, addressing @mootari's request.

@Fil I don’t think that’s quite enough; if there’s a selection, the selection should appear sorted, too. But currently it looks like the selection is ordered by the order in which rows were clicked.


Refresh feeds on clicked Snackbar reload button

Issue

close #290

Overview (Required)

Call FeedRepository#refresh when click reload button of SnackBar

Links
none
Screenshot
none

👀


ElkM1 Configuration Requires All Settings (contrary to documentation)

Home Assistant release with the issue:
0.81.0
Last working Home Assistant release (if known):
N/A - Introduced in 0.81.0
Operating environment (Hass.io/Docker/Windows/etc.):
VMDK Hass.io
Component/platform:
ElkM1
Description of problem:
The ElkM1 component requires all parts of the configuration to exist or it will not load. This is contrary to the documentation.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
Does not work:
elkm1:
  host: elks://<IP_ADDRESS>
  username: reallygood
  password: security
  area:
    exclude: [5-8]
  plc:
    exclude: [a1-p16]

Only way to make it work:
elkm1:
  host: elks://<IP_ADDRESS>
  username: reallygood
  password: security
  temperature_unit: C
  area:
    exclude: [5-8]
  counter:
    exclude: []
  keypad:
    exclude: []
  output:
    exclude: []
  setting:
    exclude: []
  task:
    exclude: []
  thermostat:
    exclude: []
  zone:
    exclude: []
  plc:
    exclude: [a1-p16]

Thanks for this, I was wondering why I was getting errors for not providing key/value pairs that I did provide.


Display empty sections in Metadata Editor

There are cases where we may want to show placeholders when there are no records yet.
E.g. for authors we could have: No authors yet. Create Author
However editors and affiliations are optional and i guess those sections should not be shown.
Thoughts?

My suggestion would be not to hide things magically for the beginning. Just have a good representation for empty sections.
Later on we can discuss then if and how we want to hide empty cards.

The problem with a different approach is, that we do not solve this consistently, very much like it is right now.

Agree with that approach. Will provide a UI sketch for empty sections.


Update LICENSE

Just update Copyright.
Could you update License file. It become easy to make software license agreement.

Hi, thanks for the PR, please see a previous discussion about this at https://github.com/lovell/detect-libc/pull/12#issuecomment-581632602 for why this change is not required.
I notice you've opened a number of similar PRs on other repos. For MIT licensed software your proposed changes appear valid, thank you, but for Apache 2.0 licensed software these PRs should be closed as the proposed changes will prevent automated license checkers from working.


[LiveComponent] _willDataFitInUrl does not calculate correctly

Based on my findings:

It doesn't properly serialize to string value when this.dataValue contains nested objects, because in my case it Object.values(this.dataValue).join(',') returns: [object Object],form_builder,[object Object],false,form_builder.slug,form_builder.title,NJQRgieAbBmGi0vFxpGlGJVYTrJpA0se7rz4rDTl4N8=
It doesn't take into account params and only uses this.dataValue to determine it

So in my case when editing a big form with a LiveComponent it always fails to render because it does GET requests with too long query string

Interesting, what are the downsides of always using POST?
I guess this will be a problem for component_url() as well?

From my side I don't see any difference, it's just a different request method so currently just overrode that method to always return false :)

Oh maybe I see a problem with GET request: it wouldn't allow to send an attached file in form

I believe the primary reason for allowing GET was to make the component_url() work with Turbo but @weaverryan can speak more to that.
I think, at least when using the live-controller, we should always use POST but maybe there are some reasons we can't do that I'm not aware of.
@weaverryan, what do you think about dropping component_url() entirely? Then we can only support POST. It isn't documented and it was basically broken since day-1 until yesterday 😄.

GET request is much more proper. When we make a re-render ajax call, we are saying “given this data, please give me the appropriate html”. That should be GET :). That also makes the request cacheable (not realistic likely for very dynamic components, but certainly realistic for less dynamic).
But, of course, eventually GET can’t work because there is too much data (and also file uploads - that is not something I’ve checked into yet). In that case, we fallback for POST.
Also, this bug seems fixable, right? I haven’t quite digested the problem, but we should be able to determine how long the query params are before making the request and switch accordingly. That’s how it works now… except that it apparently doesn’t work quite right yet ;).

Would it be a good solution then to use JSON.stringify for serializing this.dataValue and then concatenating it with params.toString() and checking total length or do you have something other in mind?


radare2: 2.0.1 -> 2.1.0

drop patch, now included
drop r2-docker/r2-indent fixups, no longer installed
(see https://github.com/radare/radare2/commit/a09d6dae925ab381ed9eeb9d11ad595b1a83e4c5)

Motivation for this change
Package update
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

why were the r2-docker and r2-indent binaries dropped?


Handle standup edits

We have to pass full event to handle message function. This is because edits come a little bit another way. Edit messages is part of event and not part of slack.Message

Implemented


RuntimeError: Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND with OAK-D Pro PoE

Check if issue already exists
I found this post, but I couldn't solve my issue.
Describe the bug
I run the simple python scripts in this section but I got following error.
Traceback (most recent call last):
  File "sample.py", line 16, in <module>
    with dai.Device(pipeline, device_info) as device:
RuntimeError: Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND

To Reproduce
[Environment]
PoE Hub: NETGEAR GS108PE (15.4W/port)
Architecture: x86_64
OS: Ubuntu 20.04.4 LTS
IP address and subnet mask: <IP_ADDRESS>, <IP_ADDRESS> (Success to ping to <IP_ADDRESS>)
Python version: 3.8.10
Depthai version (installed by pip): <IP_ADDRESS>
Run following scripts.
import cv2
import depthai as dai

pipeline = dai.Pipeline()

camRgb = pipeline.createColorCamera()

xoutRgb = pipeline.createXLinkOut()
xoutRgb.setStreamName("rgb")
camRgb.preview.link(xoutRgb.input)

device_info = dai.DeviceInfo("<IP_ADDRESS>")
device_info.state = dai.XLinkDeviceState.X_LINK_BOOTLOADER
device_info.protocol = dai.XLinkProtocol.X_LINK_TCP_IP

with dai.Device(pipeline, device_info) as device:
    qRgb = device.getOutputQueue(name="rgb", maxSize=4, blocking=False)
    while True:
        cv2.imshow("rgb", qRgb.get().getCvFrame())
        if cv2.waitKey(1) == ord('q'):
            break

Expected behavior
A window show images captured by camera should be given.

I am running into the same issue with the ROS example (stereo inertial node) on jetson Xavier. I can run the camera just fine using the depthai_demo python script.
For the ROS node, the camera is detected, and it prints the "Device Mx ID" but then fails after with the exact same runtime error mentioned above.

I would like to mention, I have tried the ROS example on an x86 computer and it was fine. Could this be related to the fact that the jetson platform is ARM based?

Asking.  Sorry about the trouble.

@hamzaMahdi  similar issue was seen here will be following up in that issue on ROS side..

@YoshiyasuIzumi  is static IP set in this ?
cc: @Erol444

@saching13 Thank you for your response. I don't change OAK-D Pro PoE's ip adress and I set my laptop's ip address to <IP_ADDRESS> (static). Please check attached image.

@saching13 I've tried with windows 10 environment as well but I reproduced same error. I can ping with camera successfuly but I got same error as well.

@YoshiyasuIzumi
Do you mind running the following example under depthai-python repository: examples/calibration/calibration_dump.py and post back the results

@themarpe
I ran this code. Then I got following error. Could this code run with OAK-D Pro PoE?
Traceback (most recent call last):
  File "calibration_dump.py", line 7, in <module>
    with dai.Device(dai.OpenVINO.VERSION_2021_4, dai.UsbSpeed.HIGH) as device:
RuntimeError: Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND

Sorry about the trouble.
Would you mind shooting an email to<EMAIL_ADDRESS>We'd like to send you equipment that should help to debug what is going wrong here.

@YoshiyasuIzumi
Sorry for the issue - do you mind checking out the branch eeprom_version_v7_multi_cam_support_4lane in depthai-python repository, then run the python3 examples/install_requirements.py and afterwards the python3 examples/calibration/calibration_dump.py
Also, do still shot over an email to support, referencing this issue, so we can debug this down further.
Thanks!

@Luxonis-Brandon @themarpe
I am having the same issue with Oak-D-Pro.
I can run depthai_demo without any problem. Here is the output when I run depthai_demo.py
home/xavier/depthai/myenv/lib/python3.6/site-packages/jwcrypto/jwa.py:8: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release.
  from cryptography.exceptions import InvalidSignature
Using depthai module from:  /home/xavier/depthai/myenv/lib/python3.6/site-packages/depthai.cpython-36m-aarch64-linux-gnu.so
Depthai version installed:  <IP_ADDRESS>
/home/xavier/depthai/myenv/lib/python3.6/site-packages/jwcrypto/jwa.py:8: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release.
  from cryptography.exceptions import InvalidSignature
Setting up demo...
Available devices:
[0] 14442C10C1663FD700 [X_LINK_BOOTLOADER]
Enabling low-bandwidth mode due to connection mode... (protocol: XLinkProtocol.X_LINK_TCP_IP)
Setting PoE video quality to 50 to reduce latency...
^CStopping demo...
=== TOTAL FPS ===
[color]: 21.8
[disparity]: 21.0
[disparityColor]: 21.0
[nn]: 9.9

However, when I try to launch stereo_inertial_node.launch on Jetson Xavier, I am having the following error
started roslaunch server http://xavier-desktop:38535/

SUMMARY
========

PARAMETERS
 * /depth_image_to_rgb_pointcloud/queue_size: 10
 * /robot_description: <?xml version="1....
 * /rosdistro: melodic
 * /rosversion: 1.14.13
 * /stereo_inertial_publisher/LRchecktresh: 5
 * /stereo_inertial_publisher/angularVelCovariance: 0
 * /stereo_inertial_publisher/confidence: 200
 * /stereo_inertial_publisher/depth_aligned: True
 * /stereo_inertial_publisher/dotProjectormA: 200.0
 * /stereo_inertial_publisher/enableDotProjector: False
 * /stereo_inertial_publisher/enableFloodLight: False
 * /stereo_inertial_publisher/enableSpatialDetection: True
 * /stereo_inertial_publisher/extended: False
 * /stereo_inertial_publisher/floodLightmA: 200.0
 * /stereo_inertial_publisher/imuMode: 1
 * /stereo_inertial_publisher/linearAccelCovariance: 0
 * /stereo_inertial_publisher/lrcheck: True
 * /stereo_inertial_publisher/mode: depth
 * /stereo_inertial_publisher/monoResolution: 720p
 * /stereo_inertial_publisher/mxId:
 * /stereo_inertial_publisher/nnName: x
 * /stereo_inertial_publisher/poeMode: False
 * /stereo_inertial_publisher/rectify: True
 * /stereo_inertial_publisher/resourceBaseFolder: /home/cassie/dai_...
 * /stereo_inertial_publisher/stereo_fps: 15
 * /stereo_inertial_publisher/subpixel: True
 * /stereo_inertial_publisher/syncNN: True
 * /stereo_inertial_publisher/tf_prefix: oak
 * /stereo_inertial_publisher/usb2Mode: False

NODES
  /
    depth_image_convertion_nodelet (nodelet/nodelet)
    depth_image_to_rgb_pointcloud (nodelet/nodelet)
    nodelet_manager (nodelet/nodelet)
    oak_state_publisher (robot_state_publisher/robot_state_publisher)
    stereo_inertial_publisher (depthai_examples/stereo_inertial_node)

auto-starting new master
process[master]: started with pid [144]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 7da2a408-0c2e-11ed-86eb-48b02d2ff54a
process[rosout-1]: started with pid [157]
started core service [/rosout]
process[oak_state_publisher-2]: started with pid [160]
process[stereo_inertial_publisher-3]: started with pid [175]
process[nodelet_manager-4]: started with pid [201]
[ INFO] [1658762938.925620962]: Initializing nodelet with 8 worker threads.
 nnPath ,, /home/cassie/dai_ws/src/luxonis/depthai-ros-examples/depthai_examples/resources/yolov4_tiny_coco_416x416_openvino_2021.4_6shave_bgr.blob
process[depth_image_convertion_nodelet-5]: started with pid [202]
process[depth_image_to_rgb_pointcloud-6]: started with pid [265]
Listing available devices...
Device Mx ID: 14442C10C1663FD700
terminate called after throwing an instance of 'std::runtime_error'
  what():  Failed to find device after booting, error message: X_LINK_DEVICE_NOT_FOUND
================================================================================REQUIRED process [stereo_inertial_publisher-3] has died!
process has died [pid 175, exit code -6, cmd /home/cassie/dai_ws/devel/lib/depthai_examples/stereo_inertial_node __name:=stereo_inertial_publisher __log:=/root/.ros/log/7da2a408-0c2e-11ed-86eb-48b02d2ff54a/stereo_inertial_publisher-3.log].
log file: /root/.ros/log/7da2a408-0c2e-11ed-86eb-48b02d2ff54a/stereo_inertial_publisher-3*.log
Initiating shutdown!
================================================================================
[depth_image_to_rgb_pointcloud-6] killing on exit
[depth_image_convertion_nodelet-5] killing on exit
[nodelet_manager-4] killing on exit
[stereo_inertial_publisher-3] killing on exit
[oak_state_publisher-2] killing on exit
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
done

However, same launch file works on my own x86 machine, so I am a bit suspicious it is about arm64 & ROS.

Hi,
I'm facing the exact same issue as @samialperen, with an OAK-D POE, on Ubuntu 20.04.
After installing requirements from v3.1.0 branch, as suggested in issue #751, I'm now able to run depthai_demo without any problem (I was experiencing the issue on the main branch).
> git checkout v3.1.0
> python3 install_requirements.py
> python3 depthai_demo.py
> ```

But launching stereo_inertial_node.launch from depthai-ros package fails with the following error

started roslaunch server http://laptop-Precision-5540:35403/
SUMMARY
PARAMETERS

/depth_image_to_rgb_pointcloud/queue_size: 10
/robot_description: <?xml version="1....
/rosdistro: noetic
/rosversion: 1.15.14
/stereo_inertial_publisher/LRchecktresh: 5
/stereo_inertial_publisher/angularVelCovariance: 0
/stereo_inertial_publisher/confidence: 200
/stereo_inertial_publisher/depth_aligned: True
/stereo_inertial_publisher/detectionClassesCount: 80
/stereo_inertial_publisher/dotProjectormA: 200.0
/stereo_inertial_publisher/enableDotProjector: False
/stereo_inertial_publisher/enableFloodLight: False
/stereo_inertial_publisher/enableSpatialDetection: True
/stereo_inertial_publisher/extended: False
/stereo_inertial_publisher/floodLightmA: 200.0
/stereo_inertial_publisher/imuMode: 1
/stereo_inertial_publisher/linearAccelCovariance: 0
/stereo_inertial_publisher/lrcheck: True
/stereo_inertial_publisher/mode: depth
/stereo_inertial_publisher/monoResolution: 720p
/stereo_inertial_publisher/mxId:
/stereo_inertial_publisher/nnName: x
/stereo_inertial_publisher/poeMode: False
/stereo_inertial_publisher/rectify: True
/stereo_inertial_publisher/resourceBaseFolder: /home/laptop/OAK/...
/stereo_inertial_publisher/stereo_fps: 15
/stereo_inertial_publisher/subpixel: True
/stereo_inertial_publisher/syncNN: True
/stereo_inertial_publisher/tf_prefix: oak
/stereo_inertial_publisher/usb2Mode: False

NODES
/
depth_image_convertion_nodelet (nodelet/nodelet)
depth_image_to_rgb_pointcloud (nodelet/nodelet)
nodelet_manager (nodelet/nodelet)
oak_state_publisher (robot_state_publisher/robot_state_publisher)
rviz (rviz/rviz)
stereo_inertial_publisher (depthai_examples/stereo_inertial_node)
auto-starting new master
process[master]: started with pid [62116]
ROS_MASTER_URI=http://localhost:11311
setting /run_id to 19fa05ee-0cc0-11ed-ac10-4758c22567a8
process[rosout-1]: started with pid [62137]
started core service [/rosout]
process[oak_state_publisher-2]: started with pid [62144]
process[stereo_inertial_publisher-3]: started with pid [62145]
process[nodelet_manager-4]: started with pid [62146]
process[depth_image_convertion_nodelet-5]: started with pid [62147]
process[depth_image_to_rgb_pointcloud-6]: started with pid [62152]
process[rviz-7]: started with pid [62154]
[ INFO] [1658825473.964176871]: Initializing nodelet with 12 worker threads.
nnPath ,, /home/laptop/OAK/catkin_ws/src/luxonis/depthai-ros-examples/depthai_examples/resources/yolov4_tiny_coco_416x416_openvino_2021.4_6shave_bgr.blob
Listing available devices...
 So please check it as well.
But let me share current situation.
I cloned depthai-python repository and checkout it to "eeprom_version_v7_multi_cam_support_4lane" branch.
Then I ran "examples/install_requirements.py", I got the following error.
Traceback (most recent call last):
  File "install_requirements.py", line 39, in <module>
    import find_version
ModuleNotFoundError: No module named 'find_version'

So I tried the steps on README of depthai-python repo, then I successed to run "examples/install_requirements.py" and "examples/calibration/calibration_dump.py". Please check this output. response.txt
In this environment, when I run the simple python script in this section, I get the following error.
Traceback (most recent call last):
  File "examples/sample.py", line 12, in <module>
    device_info = dai.DeviceInfo("<IP_ADDRESS>")
TypeError: __init__(): incompatible constructor arguments. The following argument types are supported:
    1. depthai.DeviceInfo()

Invoked with: '<IP_ADDRESS>'

Please give me advice to setup.
Thank you!

Will check.  Sorry about the delay.

@YoshiyasuIzumi
Do you mind running some other script like so: DEPTHAI_LEVEL=debug python3 examples/ColorCamera/rgb_preview.py
And if it doesn't work, post the log of that as well.
Otherwise, looks good on the output of calibration_dump.py

@themarpe @Luxonis-Brandon
Thank you for your help.
This script run successfuly provide color images!
DEPTHAI_LEVEL=debug python3 examples/ColorCamera/rgb_preview.py

Great - thanks for the follow up @YoshiyasuIzumi !

Changing depth-ai version worked for me.
https://github.com/luxonis/depthai-ros-examples/issues/57

I'm running into this same issue when running the DepthAI demo on Windows10, connecting to the .  When starting DepthAI, I hear an audible click in the camera, then this error dialog opens.

Hi @calebc01, which OAK camera are you using? Which depthai version and which depthai repo commit?
Thanks, Erik

Hi @calebc01, which OAK camera are you using? Which depthai version and which depthai repo commit? Thanks, Erik

I'm using the OAK-1 PoE camera (link lights are on and I can ping it from the computer).  I actually used the Windows installer to run all the setup, so maybe that's related.  Looks like the default branch is labelled v3.2.0, on commit eefc4dfd77a6dc0a41010c098561268be74a07c1.

Hi @calebc01 ,
This is interesting. I would first try to update depthai (pip install depthai -U) and skipping version check with depthai-demo (python depthai_demo.py --skipVersionCheck). If that doesn't work, I would suggest looking at POE troubleshooting docs. Let us know if the issue will persist.
Thanks, Erik

Thanks for your help!
It looks like the issue was that we had the machine on WiFI and the camera on a cable.  It shares a network, but maybe something caused the TCP connection to fail.

@calebc01 how to deal with it, my error may be is this , thank you

This was the problem for me:

It looks like the issue was that we had the machine on WiFI and the camera on a cable. It shares a network, but maybe something caused the TCP connection to fail.


Add Token tests

I've added the fllowing Token function tests.

is_mixed
is_mixed_null
get_location
set_location

LGTM
@Sharktheone

However, it seems that not all commits are signed. This is a requirement for this repo. For more information about signing commits: https://docs.github.com/authentication/managing-commit-signature-verification/about-commit-signature-verification


Fix jira links for emtpy

Releases with empty jira links were causing a Index error

Skipping snyk due to urgency


web.config modification

Is there a plan to create a resource module to update web.config of web apps?
Thanks
Tony Huang

For settings that go to the "AppSettings" part of the config file, you can use xWebConfigKeyValue from xWebAdministration to do this. For more complex modifications, we have thrown some ideas around about how to tackle this and whether or not they should be in xSharePoint or xWebAdministration. Is there a specific type of modification you want to make?

I was mainly talking about SPWebConfigModification which can apply changes to every node at one time.
I guess xWebAdministration probably can do the job. thanks a lot.

The problem with SPWebConfigModification is that you will find that it won't enforce a desired state as well as DSC would when someone makes manual changes to a web.config file after the SPWebConfigModification class applies its changes. So if you are going to be changing web.config files, I would look in to what xWebAdministration can do and whether or not that needs extending. I'm closing this one off, thanks @tonyhxh

The issue with the xWebAdministration module is that it uses the IIS to change the web.config. However SharePoint settings are changed by SharePoint itself and are therefore not known to IIS. So you cannot change all settings in the web.config via IIS.
I tested this earlier via appcmd:
When running “appcmd list config acme /section:system.web/customErrors”, appcmd returns the following output:
<system.web>

</system.web>
This is fine and exactly what is in the web.config.
However if I then try a SharePoint setting like “appcmd list config acme /section:SharePoint/BlobCache”, appcmd returns the following message:
ERROR ( message:Unknown config section "SharePoint/BlobCache".  Replace with ? for help. )
The same goes for all entries in the SharePoint section, so the CallStack can’t be changed this way.
Therefore you need to do this either via SharePoint (SPWebConfigModifications, but with the issues mentioned by Brian) or directly on the XML file. In the latter case, you would have to do this change on each of the servers that is running the Web Application role in order to keep the web.config files in sync.

@ykuijs I would be leaning towards doing it directly in the XML, as it would then maintain desired state more accurately afterwards by watching the actual file, as opposed to ensure that an spwebconfigmodification exists because that won't track that a change has been manually made to the file (it will reapply when other automated changes that SharePoint is aware of are made, but it won't stop manual intervention with the file directly). So I don't want to set the wrong expectation that xSharePoint is controlling the desired state of the config file, when it's not really directly doing that. I feel like something that manipulates the file directly (without appcmd's involvement) that is made generic enough for the entire config file would be more at home in xWebAdministration than in xSharePoint.

@BrianFarnhill Agree, this does however mean we:

Create a resource that changes it on the local server and the user of the resource has to create a config for all servers with the web application role. This might not be real user friendly.
or
Create a resource that changes it on all servers, but that means we have to: Request the server list from the ConfigDB, connect to all servers via SMB or Remote Powershell (assuming this is not prevented e.g. by a firewall) and change the web.config on all servers. This can become quite complex.

@ykuijs Looping back on this one - in regards to your options, the first one actually does make sense because we should already have a config for all servers that have the web app role anyway for things like SSL bindings through xWebSite, for service instances that run on them through xSPServiceInstance and other things that are specific to an individual server - so I don't think we are introducing something new here in terms of a new config for that role specifically. I am extremely hesitant to create a resource that will change them all from one server as it would take longer to run and have more moving parts, where as a local one could change the file quite quickly.

While I can see the concern of using the SharePoint webconfigmodification methods not truly enforcing the state of the web.config file if it is manually edited, or changed through another method, I've always followed the practice of "thou shall not edit web.config files" and used the webconfigmodification method of the web application for SharePoint to push those changes out. I'm kinda torn on this one at the moment.

Agree with your comment @MikeLacher448, over the past years I have pushed many developers towards using the WebConfigModifications class. The reasons behind this was first consistency, I have seen many environments where server1 would have different settings then server2, etc. Second, preventing manual changes (which may lead to the first issue). Many installation instructions contained manual steps for changing the web.config.
The WebConfigModifications class solved both of these issues.
However from that perspective: This DSC resource does exactly the same as the WebConfigModifications class: It prevents manual actions and makes sure the settings are configured the way you want them to be. Even better: If you manually change the XML, the DSC resource detects and corrects this, where the WebConfigModifications class doesn't.
The only "risk" I see is that the config isn't targeted to all WFE servers in the farm, which can cause inconsistent settings between different servers. So we have document this really well in our documentation, so our users are aware.

any concerns with SharePoint pushing a config, that the DSC config is not aware of, and getting stuck in a loop of SharePoint updating web.config, DSC reverting it, etc.. ?

Just had a chat about this with my core architecture/planning guys for this, and they both tend to agree that we should avoid SPWebConfigModification because it wont enforce the desired state in the config file themselves and it has a history of being unreliable.
As @ykuijs stated above the DSC resource will ensure the XML files always match the desired state and automates the changes for consistency, so if the only concern is making sure we tell everyone that you need to apply the settings to every server, then lets make sure we put that in the doco (in our schema.mof doco so it hits the PowerShell module and the wiki doco) and make sure the example for the small farm matches how it should be done as well.
@MikeLacher448 in regards to concerns about SharePoint pushing a config that the DSC is not aware of and us getting stuck in a "loop" yes this could happen in theory, but I don't think it's something that would happen as a common scenario. I can't think of something where SharePoint would be pushing a configuration to the web.configs that you would override with DSC on a regular basis - maybe if you have some devs that aren't talking to the IT pros about how the config should be done, but I can't think of any specific things that would be different. Can you think of a specific scenario here that would warrant taking a different approach or doing something different with it?

The way the WebConfigModifications class works is it only pushes changes to the web.config file once. Either when a new WebConfigModification is added or when the WFE role is added to a (new) server, essentially creating a fresh web.config file. It won't monitor the web.config file after that.
So even when you change something using the WebConfigModifications method which conflicts with the DSC state, DSC will change it back to the desired state after which SharePoint won't bother with it anymore. So you never end up in a loop.

I've seen the changes registered in the WebConfigModifications get pushed out when you make other changes to the SharePoint web application settings, and sometimes after patching.
I guess the main thing is having the resource that is editing the web.config work so that it only cares about the change it made. For example, with the blob cache, the resource would need to only test that the changes required for blob cache are present, and not fail if another part of the web.config has been modified since the last update.


No captions in YouTube livestreams

Checklist

[x] I'm reporting a site feature request
[x] I've verified that I'm running youtube-dl version 2019.09.28
[x] I've searched the bugtracker for similar site feature requests including closed ones

Description

I'm not sure whether this is a bug report or a feature request, but there are no captions in livestreams, even though I can see them in the browser. Example:
 ~/ytdlvenv/bin/youtube-dl --write-sub --write-auto-sub --sub-lang en --write-info-json --sub-format vtt -f 'mp4[height=360]' -o "%(id)s.mp4" https://www.youtube.com/watch?v=rVH3vmpoOVA
[youtube] rVH3vmpoOVA: Downloading webpage
[youtube] rVH3vmpoOVA: Downloading video info webpage
[youtube] rVH3vmpoOVA: Downloading m3u8 information
WARNING: video doesn't have subtitles
[youtube] rVH3vmpoOVA: Looking for automatic captions
WARNING: Couldn't find automatic captions for rVH3vmpoOVA
[youtube] rVH3vmpoOVA: Downloading MPD manifest
[info] Writing video description metadata as JSON to: rVH3vmpoOVA.info.json
[download] rVH3vmpoOVA.mp4 has already been downloaded
[download] 100% of 1.36MiB

I am attaching the .info.json, which says the same thing:
"subtitles": {},
"automatic_captions": {},

rVH3vmpoOVA.info.json.txt
If I am missing something or doing it wrong, please let me know!

It's not like I did not search for this with multiple keywords; I simply can't find anything. Could you point me to the relevant issue? Thanks!


Feature Request: Code highlighting for Apache Velocity

I'd like to request that Apache's Velocity gets code highlighting support in Brackets. Thank you.

Hi @stantonl33,
is this the correct Velocity: https://codemirror.net/mode/velocity/?
If it is, creating an extension adding it is relatively simple, like: https://github.com/petetnt/brackets-codemirror-go


File(s) opens in wrong window

When having two atom windows open, one with a project and one without. If you want to open a file that belongs to the project opened in window 1, and opens the file in window 2, it will be opened in window 1 instead.
Reproduction Steps:

Open a project / folder, refered to as window 1
Open another atom window, refered to as window 2
Open a file in window 2 that belongs to the project / folder opened in window 1

Expected behavior:
When opening a file from a window, it is expected that the file will open in the window you try to open it in.
Observed behavior:
When opening a file from window 2, the file was added to the view of window 1.
This happens both when drag-and-dropping* and using the open file dialog
* from the explorer window. I can drag-and-drop from a atom window to another when dragging from tab to tab
Atom version: 1.3.2
OS and version: Window 7 Enterprise 64-bit
Installed packages:
<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Additional information:

Problem can be reproduced in safe mode: Yes
Problem started happening recently, didn't happen in an older version of Atom: Unknown
Problem can be reliably reproduced, doesn't happen randomly: Yes
Problem happens with all files and projects, not only some files or projects: Yes

Thanks for the feedback! Some of the people here want to overhaul the file opening experience. This would most likely be part of that effort when it happens. :+1:

I wrote these up for another Issue (https://github.com/atom/atom/issues/10724) and I think they're a little clearer on what the problem is.
I was able to reproduce this using Atom v1.6.0-dev-ed43eda on Mac OS X 10.11.3. Here are some more detailed repro steps:

Change to the directory where the atom/atom repo is stored locally (on my system it is in ~/Source/atom)
Launch normal mode Atom with the command: atom .
Go back to the terminal using Cmd+Tab
Launch Atom in Safe Mode with the command: atom --safe (note: do not include the period)
Open the File Open dialog with Cmd+O
Navigate to the appveyor.yml file in the root of the repository and double-click it

Expected: appveyor.yml to open in the Safe Mode window
Actual: appveyor.yml opens in the normal mode window


RedBlackTree should internally use null instead of Empty tree

We can achieve this by

make RedBlackTree a final class (currently it is an interface)
remove Node and Empty (RedBlackTree stores Comparator instead of Empty)
move all static private methods to an internal class RedBlackTreeOps
RedBlackTreeOps should not make use of isEmpty(). Instead null represents the empty node. (this is important for left and right subtree)

We expect that this change will boost the performance of SortedSets and SortedMaps.
See also this comment.
This change should be done before pulling #1317!

These changes sound very good, specially replacing the Empty node for null (yeah, null, I know, but sometimes it is ok to embrace "evil" in a controlled manner if "you know what you are doing"!).
The only issue I see with making RedBlackTree a final class instead of an interface is that it might not work if you want to support sub trees efficiently (i.e. as a view of another tree as my implementation in #1317).  To support sub views, it would make more sense for RedBlackTree to continue being an interface, and then have two implementing classes: Node and SubTreeView.
Of course, if you are thinking in implementing sub views by just creating a brand new tree, then this design will work. However. creating a sub view will be a very expensive operation, and in my view javaslang will be at a disadvantage versus the java.util implementation.


Charts with min/max no longer work in master-head

What kind of request is this (question/bug/enhancement/feature request):
bug
Steps to reproduce (least amount of steps as possible):

try to deploy eks cluster or other system chart with a min or max

Result:
logs contain template system-library-rancher-eks-operator allowed rancher version not match current server, requeuing
Other details that may be helpful:
This is happening because of this server version format has changed for master-head: template system-library-rancher-eks-operator allowed rancher version not match current server, requeuing
min/max fields in questions.yaml are only ignore if the server version is "master", "dev", "", or has the suffix "head". The server version is now of the following format does not match any of them: https://github.com/rancher/rancher/commit/e2de9d4192ab227c2530916472b7fc512342bcb8

On latest master-head - commit id: 28ea6d4b1

HA setup, run a CIS scan on a user cluster
Scan is stuck in "Creating"
Error seen in rancher logs

2020/08/11 16:15:52 [INFO] cisScanHandler: Create: deploying helm chart
2020/08/11 16:15:52 [ERROR] error syncing 'c-6grq7/cis-1597162532055677189': handler cisScanHandler: cisScanHandler: Create: error deploying app: cisScanHandler: deployApp: failed to find cis system catalog "": template system-library-rancher-cis-benchmark allowed rancher version not match current server, requeuin

master-head (08/11/2020) 28ea6d4b1

HA setup k8s
Single node cluster DO and local HA.

Ember UI is stuck and can't continue install.

master-28ea6d4b1bfd5369f9d4d4454256a5537ed3996d
the available versions of monitoring show in the dropdown list contain only 0.0.1 - 0.0.3, but the latest version is 0.1.3

master-head (08/11/2020) 28ea6d4b1
Logging.v1
Logging chart gets deployed but the fluentd version installed is 0.1.17 I was expecting 0.1.19 as per https://github.com/rancher/rancher/issues/26543#issuecomment-666762821.
The deployed workload has config issues:
[error]: config error file="/fluentd/etc/config/entry/fluent.conf" error_class=Fluent::ConfigError error="Unknown parser plugin 'multi_format'. Run 'gem search -rd fluent-plugin' to find plugins"

master-head (08/11/2020) 28ea6d4b1
cluster-alerting
Failed to install app cluster-alerting. Error: validation failed: [unable to recognize "": no matches for kind "Alertmanager" in version "monitoring.coreos.com/v1", unable to recognize "": no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1"]

Chart app versions shown in UI: 0.0.1, 0.0.2, 0.0.3. With 0.0.3 selected by default

Rancher version master-head (08/11/2020) 44caa5889

Logging.v1 works, fluentd v0.1.19 is installed and the app version is 0.2.1
Alerting is also working App version is 0.1.3

Verified on master-head - commit id: d19f179c4

User is able to run CIS scan on an RKE cluster. Scan report is generated.

The bug fix is validated on master-d19f179c4ff15bb782e27ed50d33d169dad79f80-head

provision an EC2 cluster
go to the cluster page -> monitoring

results:

all available versions of the chart are in the dropdown list
enabling monitoring with the latest chart succeeds
monitoring apps are deployed and work as expected


is this d-vector embedding input "GE2E Speaker Verification" is moreover same as UIS-RNN or not?

sir i have one doubt.
is this d-vector embedding PyTorch implementation of "Generalized End-to-End Loss for Speaker Verification" is moreover common as UIS-RNN or not?
accuracy for d-vector embeddings?
is it satisfying continuous d-vector embeddings(as sequences) or not?
sir one you saw this url. i did TIMIT dataset to generated the d-vector embeddings. but how to feed or initialize this embeddings i don't know.
https://github.com/google/uis-rnn/issues/6#issuecomment-439789103
https://github.com/google/uis-rnn/issues/6#issuecomment-439967734
Some of the libraries are only able to produce per-utterance d-vector embeddings, while for UIS-RNN, we require continuous d-vector embeddings (as sequences). We have no guarantee which third-party library supports this
can you help me sir? thank you

The embeddings produced by this code are currently "utterance" level embeddings, not "segment" level. To go from utterance to segment level d-vectors, the steps under section 2 of https://arxiv.org/abs/1710.10468 will have to be implemented.
Accuracy was 95% when differentiating between 4 speakers at a time.

Thank you very much sir.
On Tue 20 Nov, 2018, 7:48 AM HarryVolek<EMAIL_ADDRESS>wrote:

The embeddings produced by this code are currently "utterance" level
embeddings, not "segment" level. To go from utterance to segment level
d-vectors, the steps under section 2 of https://arxiv.org/abs/1710.10468
will have to be implemented.
Accuracy was 95% when differentiating between 4 speakers at a time.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/HarryVolek/PyTorch_Speaker_Verification/issues/5#issuecomment-440112488,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AiT-IFyzbJOYZbarp_sKeXeBWI2tjyJ6ks5uw2ZigaJpZM4YpltQ
.

The embeddings produced by this code are currently "utterance" level embeddings, not "segment" level. To go from utterance to segment level d-vectors, the steps under section 2 of https://arxiv.org/abs/1710.10468 will have to be implemented.
Accuracy was 95% when differentiating between 4 speakers at a time.

Hi,
Could you be more specific about the segment level embeddings? So do we need to implement this for training, or does it only happen during inference (i.e. while using pretrained model to create the embedding features for an arbitrary length audio input)?
Thanks,
Xin

Only during inference.

Sir inference means, in UIS-RNN their using d-vector embeddings with
cluster ids for training input.
Sir if we create continues segment and LSTM to get embeddings, apply L2
norms. Then we will easily succeeded UIS-RNN.
Sir any package is there to split up sliding window medhod for the audio
input.?
Thank you so much sir.
On Wed 21 Nov, 2018, 1:49 AM HarryVolek<EMAIL_ADDRESS>wrote:

Only during inference.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/HarryVolek/PyTorch_Speaker_Verification/issues/5#issuecomment-440415949,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AiT-INy6rZVkxphVE1R-b_-JYIv4tP3wks5uxGPXgaJpZM4YpltQ
.

Only during inference.

sir @HarryVolek  and @xinli94
only during inference, we apply clustering to segmenting the utterence, seperating speakers via d-vector embeddings.
is this correct or not? can you help me sir?

sir once again explain segment vs utterance. i have only basic knowledge about these concepts.
how can i change utterance level to segment level embedding?
where i have to change?
sir can you help me for this concept?
give me some suggestions sir.
thank you.

Accuracy was 95% when differentiating between 4 speakers at a time.

sir in utterance level is an TD-SV. so it will satisfy for wake-work technique.
in different speakers wake-word like 'ok google'. will it differentiating speakers at a time?
thank you sir.

I added a script to create embeddings compatible with https://github.com/google/uis-rnn.

thank you so much sir.


Question: Can I align card image overlay to be centered?

When I have a really thin card with image overlay, the image is not centered:

Is there any way how to make the image be vertically centered? 🤔
Thanks for any hint!

You can add place-content-center to card
And add self-center to card-body:
https://play.tailwindcss.com/A0XapdKwRT

Shoes!

If a dog chews shoes whose shoes does he choose?

      <button class="btn btn-primary">Buy Now</button>

Thanks a lot, sir!!! 🙏♥


Modification of agent version for Lodestar

Reference: https://github.com/ChainSafe/lodestar/issues/4465
Lodestar is looking to modify the agent version gossiped from the default libp2p string js-libp2p/0.36.2 to lodestar/version. We are requesting an update to your crawler on how you identify Lodestar nodes for better tracking and referencing of Lodestar peers on the network for debug/stats purposes.

Hey @philknows thanks for letting us know about the change! I'm afk until Monday, but will take care of it 😁

Hey @philknows , I also discovered that Grandine also upgraded from rust-libp2p/{version} to Grandine-{version}.
Updating them both in this commit

Closed with #50


[Feature Request] Profile form add Select to it

What is your enhancement?
Hi,
am using this nice template, and I would like to use Select inside of the profile section. I can see that form was done using CustomInput component, I would like to know if there is something similar for Select field.
thanks in advance

Hello there, @alebeta90 ,
Unfortunately, the Select is part of our PRO paid version.
You can check it here:

https://www.creative-tim.com/product/material-dashboard-pro-react
https://demos.creative-tim.com/material-dashboard-pro-react/#/admin/extended-forms

Hope you are ok with me closing this issue.
Best,
Manu


Create a NIFI Processor called AttributesToThingsboardDevice

From @vilasdeshmukh on January 18, 2018 0:11
Rename / enhance JSONConverter nifi processor to publish attributes to thingsboard via MQTT gateway. The input and output are defined below:
INPUT:
Device Name: (required and single name)
Attributes: (list of comma separated attribute names)
publishing structure:
{
"value of device name attribute" : [
"attribute name": "attribute value"
]
}
Copied from original issue: hashmapinc/Timeseries#133

From @mrathore07 on January 18, 2018 21:43
New pocessor "AttributesToThingsBoardDevice" created under "nifi-tempus-bundle"


material-buttons does not have default space between them in v6.0 as they have in v5.0

Bug
What is the expected behavior?
It should have space between them as they have in v5.0
What is the current behavior?
What are the steps to reproduce?
Providing a StackBlitz reproduction is the best way to share your issue.
StackBlitz starter: https://goo.gl/wwnhMV
What is the use-case or motivation for changing an existing behavior?
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Is there anything else we should know?

This has nothing to do with the buttons of angular material. The difference is, that Angular 6 changed preserveWhitespaces to false in the default.
This changes your your generated HTML from something like this <button></button> <button></button> to <button></button><button></button> (observe the missing whitespace here)
For details read the Angular changelog found here: https://github.com/angular/angular/blob/master/CHANGELOG.md, specifically this point:

core: set preserveWhitespaces to false by default (#22046) (f1a0632), closes #22027

But why when we add @Component{preserveWhitespaces: true} we don't have the space?
Since have update to 6.0 i have no space between buttons.

Yes it looks like we need to add :
@Component({preserveWhitespaces: true}) to have the space between buttons now.

Closing as this is likely the result of preserveWhitespaces

The problem for me is that I also created a css rule to add margin.
Of course it gets overridden by default material styling (yes, my rules are loaded after the material theme, but still).
I had to wrap all buttons in divs. Horrible.


Full width option in the editor

Hello, is it possible to add "Full width" option in global settings like in Notion?
Focus mode is nice but I prefer working in full width mode if is possible. Below some screenshots what I mean.

Regards

Hey, Thanks for your feedback! I'm familiar with notion's full width option and I believe we could implement something similar in Beaver.

I've added a toggle in settings to enable full width. The new feature will be available in version 3.0.0 which will be released in a week.
With full width on:

Without full width on (default):

Thank you :D


Tenho algumas sugestões (gostaria muito de ter esses recursos) Opção de download em mp4. Em vídeos dual áudio, ter opção de escolher o áudio desejado ou download dos 2 áudios. Baixar vídeos do play plus e netflix

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.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

so i think downloading from netflix is not possible because of the encryption, or am I wrong?


Import from Wordpress to Staticman support

Hi,
Like you, I think using a static generator like Jekyll could be a good way to replace all kinds of blogs made with WordPress.
To help new comers have already a WordPress blog wanting to use Staticman, there was no real well-documented export/import tool.
I've taken some time to work on this tool who keep your _data/comments/blog-slug/comment-timestamp.md structure.
I hope this can be helpful for someone.

[ ] This is a question about using the theme.
[x] This is a feature request.
[ ] I believe this to be a bug with the theme.

[ ] I have updated all gems with bundle update.
[ ] I have tested locally with bundle exec jekyll build.

Very nice. I'll add a link to your tool in my theme docs under the Staticman section.

Thank you 👍


SetPagingItem not called when tapped (not scrolled).

Hi, just a minor issue. I have a custom PagingCell and this method isn't called when the title is tapped and not scrolled.
override func setPagingItem(_ pagingItem: PagingItem, selected: Bool, options: PagingOptions) { }
So what happens is that the tapped title does not get highlighted and the last scrolled title or last selected title stays highlighted though it's not selected anymore (and the indicator is not below that last selected title anymore). I hope my explanation is clear enough :) Starred this control, btw.
Demo:

Thank you!

GIF/Demo: https://im4.ezgif.com/tmp/ezgif-4-55ec7e1c6c.gif

My colleague has fixed this issue. He adjusted the threshold, like so:
// Thresholds to update view layouts call delegates
if (progress >= 0.99 && self.afterViewController != nil) {
self.didFinishScrolling(to: self.afterViewController!)
scrollView.setContentOffset(CGPoint(x: self.view.bounds.width, y: 0), animated: true)
} else if (progress <= -0.99  && self.beforeViewController != nil) {
self.didFinishScrolling(to: self.beforeViewController!)
scrollView.setContentOffset(CGPoint(x: self.view.bounds.width, y: 0), animated: true)
} else if (progress == 0  && self.selectedViewController != nil) {
self.didFinishScrolling(to: self.selectedViewController!)
}
I'll keep this open though, for the contributors to notice this.

Thanks for the report! Will look into getting this fixed 🙂

@glennposadas I looked a bit more into this and I'm not able to reproduce the issue. The setPagingItem method gets called both when an item is tapped and after a scroll has finished.
If you need to update the cell while the user is scrolling, you need to override apply(layoutAttributes:). E.g: https://github.com/rechsteiner/Parchment/blob/master/Parchment/Classes/PagingTitleCell.swift#L64
Are you sure this is an issue with Parchment? If so, could you provide some ways of reproducing this?

Thanks @rechsteiner for taking time to check this issue out. I believe it has to do with how I'm using the Parchment. The layout of my controller is a bit complicated, with lots of child controllers. We can close this for now since I'm the only one whos experiencing such an issue.

I had a similar problem. When I used a button to trigger select (pagingItem: PagingItem, animated: Bool = false), I printed progress in the isScrollingFromItem currentPagingItem of the delegate and found that it did not become 1 or -1, but 0.99. As a result, item has no selection state, so it is not possible to call serelct again. Forgive me for poor english


Cannot open file/folder on windows 10

What system are you running Yazi on?
Windows
What terminal are you running Yazi in?
Wezterm & Windows Terminal
Yazi version
yazi 0.2.3
Did you try the latest main branch to see if the problem has already been fixed?
Tried, but the problem is still present
Describe the bug
Cannot use <ENTER>/<C-ENTER>/o/O to open a file/folder. There is no response when press these buttons.
Expected Behavior
The file/folders can be opened.
To Reproduce
I install yazi using cargo as illustarted from installing page.
All other dependences, including file (works normaly when test using file -v), is installed using chocolatey.
Configuration
No customized configuration. All default.
Anything else?
No response

Please use the file that comes with Git for Windows, which we only recommend.
See docs here https://yazi-rs.github.io/docs/installation/#requirements

Great, it works, thanks!

Please use the file that comes with Git for Windows, which we only recommend.
See docs here yazi-rs.github.io/docs/installation/#requirements

I have an inquiry regarding this, is there a way to use or separate only the file.exe so I don't have to include all of the other .exe files in git /usr/bin/ folder. Although atm, its working properly for me but at some point I may encounter an issue 'cos of the exe files that I have included in my path I do not know of. I actually tried to workaround this altho this is maybe a dumb moment, First, I separate the file.exe to try if it works, the file.exe works in terminal, then 2nd time, I created a bat file that is calling the git file.exe,but unfortunately those two does not work inside yazi when trying to edit specific file 'cos maybe there is obviously something going on that's why you recommended adding the path specifically with git usr/bin/ folder.

Hi @jeeeem, if you have Scoop installed, you can do this with the scoop shim command:
scoop shim add file PATH_TO_GIT_EXE_FILE

Hi @jeeeem, if you have Scoop installed, you can do this with the scoop shim command:
scoop shim add file PATH_TO_GIT_FILE_EXE

Yup, this is what I wanted. Thanks for the tip. Didn't know I can do that in scoop. Maybe a good idea to add this on the docs.


Multilanguage not working

Laravel Version: 5.5.*
Voyager Version: 1.0.7
PHP Version:
Database Driver & Version:
MySQL

Description:
I just installed a fresh Laravel with Voyager. Once all is well and i can enter to /admin, i change:
'multilingual' => [
/*
* Set whether or not the multilingual is supported by the BREAD input.
*/
'enabled' => true,
    /*
     * Select default language
     */
    'default' => 'es',

    /*
     * Select languages that are supported.
     */
    'locales' => [
        'es',
        'en',
        'fr'
    ],
],

But the dashboard and pages remains in english, and i cannot see the lang selector, it only appears in pages and cats sections.
I also tried to clear config and view caches ;)
Some help would be appreciated! Thanks!
Steps To Reproduce:
Install Laravel with Voyager
Change multilingual in voyager.php
See if selector and texts/captions changes to another lang

If i can help with more info... it's strange, because if i change for example 'prefix' => 'panel', in voyager.php, it doesn't work when i try to access to /panel instead of /admin... Even when i stop the php artisan serve command, clear all caches and run it again...

IN
/config/app.php
SET
'locale' => 'es',

Sorry for that obvious issue! Today is really not my day.
Thanks @COTIGA !!!


Error: deletion completed with 2 error(s)

I have three releases in Tiller, which I find myself unable to delete:
# helm list
NAME            REVISION        UPDATED                         STATUS  CHART           NAMESPACE
bilging-numbat  1               Fri Sep  9 22:55:24 2016        FAILED  zabbix-0.1.0    zabbix
foppish-sasqua  1               Fri Sep  9 22:54:52 2016        FAILED  zabbix-0.1.0    zabbix
oldfashioned-s  1               Fri Sep  9 22:55:31 2016        FAILED  zabbix-0.1.0    zabbix
# helm delete foppish-sasqua
Error: deletion completed with 2 error(s): error validating "": error validating data: [expected type int, for field spec.replicas, got string, expected type string, for field spec.template.spec.containers[0].env[1].value, got map, expected type string, for field spec.template.spec.containers[0].env[2].value, got map]; error validating "": error validating data: [expected type int, for field spec.replicas, got string, expected type string, for field spec.template.spec.containers[0].env[0].value, got map, expected type string, for field spec.template.spec.containers[0].env[1].value, got map, field claimName: is required, found invalid field name for v1.PersistentVolumeClaimVolumeSource, field claimName: is required, found invalid field name for v1.PersistentVolumeClaimVolumeSource]
# helm delete --purge foppish-sasqua
Error: release: not found
# helm version
Client: &version.Version{SemVer:"v2.2.0", GitCommit:"fc315ab59850ddd1b9b4959c89ef008fef5cdf89", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.2.0", GitCommit:"fc315ab59850ddd1b9b4959c89ef008fef5cdf89", GitTreeState:"clean"}
# kubectl version
Client Version: version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.2", GitCommit:"08e099554f3c31f6e6f07b448ab3ed78d0520507", GitTreeState:"clean", BuildDate:"2017-01-12T04:57:25Z", GoVersion:"go1.7.4", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.2+coreos.2", GitCommit:"a94d2e8a306048aa45b3b60635ab44b0f3b25cd1", GitTreeState:"clean", BuildDate:"2017-02-04T02:14:31Z", GoVersion:"go1.7.4", Compiler:"gc", Platform:"linux/amd64"}

After helm delete --purge foppish-sasqua, what is the output of helm ls --all?

helm ls --all
NAME            REVISION        UPDATED                         STATUS  CHART           NAMESPACE
bilging-numbat  1               Fri Sep  9 22:55:24 2016        FAILED  zabbix-0.1.0    zabbix
foppish-sasqua  1               Fri Sep  9 22:54:52 2016        FAILED  zabbix-0.1.0    zabbix
oldfashioned-s  1               Fri Sep  9 22:55:31 2016        FAILED  zabbix-0.1.0    zabbix

Hmmm... in rare cases, re-running the delete --purge will fix it.
But in this state you might have to use kubectl delete pod -n kube-system bilging-numbat

@urzds I am closing this issue due to inactivity. Please re-open if you need further assistance with this issue. Thanks!

The cluster was reinstalled and thus contains no traces of the broken releases anymore. Will reopen, if this happens again.


torch-directml can't use lazy_layer ！

code
>>> import torch
>>> import torch_directml
>>> torch_directml.is_available()
True
>>> dml=torch_directml.device(torch_directml.default_device())
>>> cpu_t = torch.rand((3,8,8)).to("cpu")
>>> cpu_l = torch.nn.LazyConv2d(3,3).to("cpu")
/home/bingo/wslCoding/py_lang/pdmProject/torch-gpu/__pypackages__/3.8/lib/torch/nn/modules/lazy.py:180: UserWarning: Lazy modules are a new feature under heavy development so changes to the API or functionality can happen at any moment.
  warnings.warn('Lazy modules are a new feature under heavy development '
>>> cpu_l(cpu_t).shape
torch.Size([3, 6, 6])
>>> dml_t = torch.rand((3,8,8)).to(dml)
>>> dml_l = torch.nn.LazyConv2d(3,3).to(dml)
>>> dml_l(dml_t).shape
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/bingo/wslCoding/py_lang/pdmProject/torch-gpu/__pypackages__/3.8/lib/torch/nn/modules/module.py", line 1194, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/bingo/wslCoding/py_lang/pdmProject/torch-gpu/__pypackages__/3.8/lib/torch/nn/modules/conv.py", line 463, in forward
    return self._conv_forward(input, self.weight, self.bias)
  File "/home/bingo/wslCoding/py_lang/pdmProject/torch-gpu/__pypackages__/3.8/lib/torch/nn/modules/conv.py", line 459, in _conv_forward
    return F.conv2d(input, weight, bias, self.stride,
RuntimeError: weight should have at least three dimensions

LazyLinear meet same question.
Expectation
please support lazy layer! Thanks!
Environment
amd-gpu 6650xt, driver version 22.11.2
➜ wsl --version
WSL 版本： <IP_ADDRESS>
内核版本： <IP_ADDRESS>
WSLg 版本： 1.0.47
MSRDC 版本： 1.2.3575
Direct3D 版本： 1.606.4
DXCore 版本： 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows版本： 10.0.19045.2486

python==3.8.10
torch-directml <IP_ADDRESS>.dev230119 [ required: >=0.1.13.dev221216 ]
├── torch 1.13.1+cpu [ required: ==1.13.1 ]
│   └── typing-extensions 4.4.0 [ required: Any ]
└── torchvision 0.14.1+cpu [ required: ==0.14.1 ]
    ├── numpy 1.24.1 [ required: Any ]
    ├── pillow 9.4.0 [ required: !=8.3.*,>=5.3.0 ]
    ├── requests 2.28.2 [ required: Any ]
    │   ├── certifi 2022.12.7 [ required: >=2017.4.17 ]
    │   ├── charset-normalizer 3.0.1 [ required: <4,>=2 ]
    │   ├── idna 3.4 [ required: <4,>=2.5 ]
    │   └── urllib3 1.26.14 [ required: <1.27,>=1.21.1 ]
    ├── torch 1.13.1+cpu [ required: ==1.13.1 ]
    │   └── typing-extensions 4.4.0 [ required: Any ]
    └── typing-extensions 4.4.0 [ required: Any ]

Hi @bingoct, thanks for reaching out. You can check our Operator Roadmap to see what operators we currently support. Since lazy modules are still under heavy development in PyTorch, it will likely be a while before lazy ops come off the backlog for torch-directml.


Regarding Subscription

Sorry if this was duplicated post in the past, I couldn't find the old post I've made.
Can you confirm the [Subscription] for the Limit call rate and Set usage quota is [Azure Subscription] instead of [APIM Subscription?]
Unfortunately, I've forgot where I was told, I was explained it's Actually a limit per [Azure Subscription].
Is my assumption are correct or wrong?
Related Links
Limit call rate by subscription
https://docs.microsoft.com/en-us/azure/api-management/api-management-access-restriction-policies#LimitCallRate
Set usage quota by subscription
https://docs.microsoft.com/en-us/azure/api-management/api-management-access-restriction-policies#SetUsageQuota
Create subscriptions in Azure API Management
https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-create-subscriptions

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 248a0753-0fa7-1cc0-d13a-d378ab182e95
Version Independent ID: 7efa247a-7184-6e7f-c1f5-3ff2531df357
Content: Azure API Management access restriction policies
Content Source: articles/api-management/api-management-access-restriction-policies.md
Service: api-management
GitHub Login: @vladvino
Microsoft Alias: apimpm

@KeiroKamioka0000 Thanks for the comment! We will check on this ask and get back to you with an update soon.

@KeiroKamioka0000 The APIM gateway is neither aware of nor requires an Azure Subscription to be accessed.
Subscriptions mentioned here are APIM subscriptions.

@KeiroKamioka0000 Just following up here... Hope me previous comment helps

Sorry I thought I post something here.
It helped me!
Thanks for quick response!


Add soundcloud streaming progress bar

soundcloud streaming progress bar will give more information to the users about the current status of the currently playing sound from alkitab suara.

Kind of confused. Can you provide some more details? Also, are you on Gitter?

@mdew192837 I already create PR here #8 thanks


Update to support Rust 1.18 visibility restrictions (see #80)

Obviously, if there's something dire that needs to be changed or fixed, please let me know (or fix it). The one concern I had was the weirdness that pub(in module) produces with the macros, because it adds an extra argument. I've added a special rule to __lazy_static_internal that allows for a workaround.

@Kimundi do you have any thoughts on this?

Sorry for the late response. This patch looks good, thanks!


Handle when service alias doesn't match the name of the API

Attempted to build the AWS Step Functions  (SFN) service controller this morning.
The first thing I ran into was the fact that there is no API mode for a service with an alias of sfn:
jaypipes@thelio:~/go/src/github.com/aws/aws-controllers-k8s$ ./scripts/build-controller.sh sfn
Building Kubernetes API objects for sfn
Error: open ~/.cache/aws-controllers-k8s/src/aws-sdk-go/models/apis/sfn: no such file or directory
Usage:
  ack-generate apis <service> [flags]

Flags:
  -h, --help             help for apis
  -o, --output string    path to directory for service controller to create generated files. Defaults to /$service
      --version string   the resource API Version to use when generating API infrastructure and type definitions (default "v1alpha1")

Global Flags:
      --cache-dir string               Path to directory to store cached files (including clone'd aws-sdk-go repo) (default "/home/jaypipes/.cache/ack-generate")
      --dry-run                        If true, outputs all files to stdout
      --generator-config-path string   Path to file containing instructions for code generation to use
      --services-dir string            Path to directory to output service-specific code (default "/home/jaypipes/go/src/github.com/aws/aws-controllers-k8s/services")
      --templates-dir string           Path to directory with templates to use in code generation (default "/home/jaypipes/go/src/github.com/aws/aws-controllers-k8s/templates")

open ~/.cache/aws-controllers-k8s/src/aws-sdk-go/models/apis/sfn: no such file or directory

After some digging, turns out that the AWS Step Functions API models are actually aliased as the "states" API in the aws-sdk-go/models/apis directory.
So, I generated the "states" controller:
jaypipes@thelio:~/go/src/github.com/aws/aws-controllers-k8s$ ./scripts/build-controller.sh states
Building Kubernetes API objects for states
Generating deepcopy code for states
Generating custom resource definitions for states
Building service controller for states
Generating RBAC manifests for states
activity/descriptor.go:26:2: no matching versions for query "latest"
activity/manager_factory.go:24:2: no matching versions for query "latest"
Error: not all generators ran successfully
run `controller-gen rbac:roleName=ack-controller-role paths=./... output:rbac:artifacts:config=/home/jaypipes/go/src/github.com/aws/aws-controllers-k8s/scripts/../services/states/config//rbac -w` to see all available markers, or `controller-gen rbac:roleName=ack-controller-role paths=./... output:rbac:artifacts:config=/home/jaypipes/go/src/github.com/aws/aws-controllers-k8s/scripts/../services/states/config//rbac -h` for usage

Quite predictably, there are failures. If I open up the generated files being complained about above, the import code shows the errors clearly:
jaypipes@thelio:~/go/src/github.com/aws/aws-controllers-k8s$ head -n 30 services/states/pkg/resource/activity/descriptor.go
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"). You may
// not use this file except in compliance with the License. A copy of the
// License is located at
//
//     http://aws.amazon.com/apache2.0/
//
// or in the "license" file accompanying this file. This file is distributed
// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
// express or implied. See the License for the specific language governing
// permissions and limitations under the License.

// Code generated by ack-generate. DO NOT EDIT.

package activity

import (
	acktypes "github.com/aws/aws-controllers-k8s/pkg/types"
	"github.com/google/go-cmp/cmp"
	"github.com/google/go-cmp/cmp/cmpopts"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	k8sapirt "k8s.io/apimachinery/pkg/runtime"
	k8sctrlutil "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"

	svcapitypes "github.com/aws/aws-controllers-k8s/services/sfn/apis/v1alpha1"
)

const (
	finalizerString = "finalizers.sfn.services.k8s.aws/Activity"

The import paths all refer to the "sfn" service alias that has been discovered by reading the api-2.json models file for the "states" API, but the directory created by ack-generate is services/states/ not services/sfn.
The solution to this is two-fold:

Change the logic in ack-generate and pkg/model.Helper to fall back on looking for an API by its Service ID in the api-2.json model file when a directory in aws-sdk-go/models/apis/ with the supplied alias doesn't exist.

Modify ack-generate to replace any supplied service alias on the command line with the discovered Service ID after finding the API model file.

Upon running ./scripts/build-controller.sh states, getting an error similar to #296. Should I log a separate issue for this one?
Error:
template: pkg/crd_sdk:129:3: executing "pkg/crd_sdk" at <GoCodeRequiredFieldsMissingFromReadOneInput .CRD "r.ko" 1>: error calling GoCodeRequiredFieldsMissingFromReadOneInput: GENERATION FAILURE! there's a required field ActivityArn in Shape DescribeActivityInput that isn't in either the CR's Spec or Status structs!

@ChaturvediSulabh the issue you're encountering should be solved in #312 :)
building states using #312 branch looks good on my machine
GOPROXY=direct make build-controller SERVICE=states
go build -tags codegen -ldflags "-X main.version="v0.0.0" -X main.buildHash=22b1c9302630006e42bea22946a83e30abc9b842 -X main.buildDate=2020-09-16T19:31:53Z" -o bin/ack-generate cmd/ack-generate/main.go
./scripts/build-controller.sh states
Building Kubernetes API objects for states
Generating deepcopy code for states
Generating custom resource definitions for states
Building service controller for states
Generating RBAC manifests for states
activity/descriptor.go:27:2: no matching versions for query "latest"
activity/manager_factory.go:24:2: no matching versions for query "latest"
Error: not all generators ran successfully
run `controller-gen rbac:roleName=ack-controller paths=./... output:rbac:artifacts:config=/Users/hilalymh/source/github.com/aws/aws-controllers-k8s/scripts/../services/states/config//rbac -w` to see all available markers, or `controller-gen rbac:roleName=ack-controller paths=./... output:rbac:artifacts:config=/Users/hilalymh/source/github.com/aws/aws-controllers-k8s/scripts/../services/states/config//rbac -h` for usage
Running gofmt against generated code for states

@jaypipes I'd like to take this as a first issue and start contributing if you're still looking for help here.

Hi @zacharya! Actually, we're merged a fix for this already (PR#329). How about finding me on Kubernetes Slack provider-aws channel and we can chat about areas you can contribute in ACK? :)


Fix wrong table format in client-libraries-go.md

Motivation
The official markdown table is a misplaced layout .
fix go docs markdown table layout.

Modifications
fix go docs markdown table layout.
Verifying this change

[x] Make sure that the change passes the CI checks.

(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
If yes was chosen, please highlight the changes

Dependencies (does it add or upgrade a dependency): (no)
The public API: (no)
The schema: (no)
The default values of configurations: (no)
The wire protocol: (no)
The rest endpoints: (no)
The admin cli options: (no)
Anything that affects deployment: (no)

Documentation
Check the box below or label this PR directly.
Need to update docs?

[ ] doc-required
(Your PR needs to update docs and you will update later)

[ ] doc-not-needed
(Please explain why)

[x] doc
(Your PR contains doc changes)

[ ] doc-complete
(Docs have been already added)

@xuthus5 thanks for contributing to Pulsar docs! I've updated the doc label from doc-required to doc.


KAFKA-17451: Remove deprecated consumer#committed

Remove deprecated consumer#committed

Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

@mingyen066 Could you please add this change to upgrade.html?
Change added

@mingyen066 could you please rebase code?

rebased


Internal code suggestion: add explicit call signatures for RuleListener node types?

Found when looking into https://github.com/ota-meshi/jsonc-eslint-parser/issues/184: this package's rules seem to completely ignore estree types, and instead replace node types with their own AST.JSON* types.
https://github.com/ota-meshi/eslint-plugin-jsonc/blob/247c013126fbbaa8eb169527c7b5cdf8e8987bab/lib/types.ts#L3-L5
https://github.com/ota-meshi/eslint-plugin-jsonc/blob/247c013126fbbaa8eb169527c7b5cdf8e8987bab/lib/rules/no-bigint-literals.ts#L25
Would you be open to a PR that adds a few explicit call signatures that have a type for the RuleListener's node? We use this strategy in typescript-eslint to remove the need for most node: ... type annotations in our rules.
export interface RuleListener {
  JSONBinaryExpression: ((node: AST.JSONBinaryExpression) => void) | undefined;
  JSONLiteral: ((node: AST.JSONLiteral) => void) | undefined;
  // ...
  [key: string]: ((node: never) => void) | undefined;
}

In theory this could be automated with TypeScript type magicks. I haven't looked into it.

Would you be open to a PR that adds a few explicit call signatures that have a type for the RuleListener's node? We use this strategy in typescript-eslint to remove the need for most node: ... type annotations in our rules.

Thank you for posting the issue!
Yeah, I think it would be useful to have that type annotations. I think it would be useful if jsonc-eslint-parser provided type annotations so that each plugin would be easier to use.


Lower temperature control

Hello,
I am interested in repurposing this for some wet-lab stuffs, we have limited space inside a box, and inside that box, I want to heat up a vial of liquid to 37 degrees Celsius mostly or higher but like 60 degrees celsius or something like that. I am not a software/computer scientist so i am wondering if it is possible to change the temperature setting to lower or allow user to edit?
Thanks.

Hello yes you can do that open the code and got to the line byte maxTempArray
and add the temperate you want and upload your new code i show you example
byte maxTempArray[] = { 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180 };


feat: Add @react-navigation/material-top-tabs package and refactor IndicatorsListPreview component

[…](feat: Add @react-navigation/material-top-tabs package and refactor IndicatorsListPreview component)

:tada: This PR is included in version 1.14.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


WIP & blocked: don't tag layers with names by default

Fixes #59

Sadly, buildah does not allows this: image name argument of commit command is required:
$ buildah commit prgcont
an image name must be specified
ERRO[0000] exit status 1

Seems like a bug in buildah.

@jamescassell yup!
But it works now with buildah 1.8
$ buildah from python:3-alpine
python-working-container

$ buildah commit python-working-container
Getting image source signatures
Copying blob 767f936afb51 skipped: already exists
Copying blob b211a7fc6e85 skipped: already exists
Copying blob 8d092d3e44bb skipped: already exists
Copying blob 492c5c55da84 skipped: already exists
Copying blob 6f55b6e55d8a skipped: already exists
Copying blob 5f70bf18a086 skipped: already exists
Copying config d11913f691 done
Writing manifest to image destination
Storing signatures
d11913f6916d266a7b85cbeda28fc2305e5188bcf0a653d9af41221b18e427b4

will merge & release soon