Getting error: "The given key was not present in the dictionary"

I am getting this error when I ping the bot.
Would this be related to the startup args for oobabooga's text generation webui?
My current args are: --model TheBloke_airoboros-l2-7B-gpt4-m2.0-GPTQ --extensions api --loader exllama --listen-port 5000 --wbits 4 --groupsize 128
I put the args in the "CMD_FLAGS.txt"

I also noticed the above warning but the bot seems to start up fine its when I ping the bot it throws the error, but the warning could be related in some way?
Thanks!

ahh this first error in the CMD screenshot you sent, I used to get that while I was developing the bot and it was reading the json format incorrectly. are you using an old version of sallybot or oobabooga by chance?
Just note, if you update oobabooga today, as of last month, you need to download this snapshot of oobabooga, go into the extensions folder, and pull out the 'api' folder and replace your oobabooga's 'api' folder with that one.
https://github.com/oobabooga/text-generation-webui/archive/refs/tags/snapshot-2023-11-12.zip
^ That is the oobabooga snapshot with the old API in the extensions folder.
The reason you have to do this is because they updated to use OpenAI's API format and deprecated (totally removed) the old API that I built sallybot on, so you need to do those steps to get the old API back.

Gotcha yep using the old API seems to have fixed it the bot now responds to prompts!
The only other thing is when I request an image to be generated it says "Request Failed:" without any further info

Stable diffusion is running on port 7860 the bot is also set to the same port in the Functions.cs

It's possible I've updated my local bot to fix this issue and forgotten to carry over the change to the github. (not 100% sure though)
I will investigate

I can't see any differences between my local code and the github code so it should work. Are you using the --api arg in the SD launch args?

No problem thanks for taking a look!
I'll be away from my computer for a while but I'll double check everything tonight!
I think I only have the --extensions api not the --api arg

Yeah --extensions api is for text-gen-webui, text not pictures
You need --api in the Stable Diffusion launch args to generate pictures
I mix them up all the time, just clarifying to be sure

Yep adding --api to SD seems to have fixed everything, the bot sends images now!
I noticed depending on how long Stable Diffusion generation takes it looks like the request can timeout sometimes (after 100 seconds), do I need to change that somewhere?
Sry ik this is really off topic from the original issue at this point. Anyway this issue should be good to close just figuring out how to configure everything!

The 100 second timeout, yeah I get that too and I'm not 100% sure where to fix that. I am thinking it's an SD inbuilt timeout coded in the SD API. You could possibly even find the spot where it's written somewhere in the mess of .py files inside the SD folder if you're keen enough to increase the limit.
Good to see it's sorted now at least :)

Oh yeah I totally forgot to tell you, I figured out how to fix the timeout and pushed an update to the bot a few hours ago so if you pull the update you will have it automatically. I also included like nearly a year's worth of updates so that should be fun for you. Google API support (the gemini pro model is free for 60 requests per minute would you believe) and async messaging so the bot doesn't freeze while it generates a reply or an image now.

That's awesome! Thanks! :D
Haven't worked with Google's gemini API stuff before but I went ahead and generated an API key and added it to the new field though to test out later. After adding it to the field in MainGlobal.cs is there anything else I need to do to enable/set it up?

In order to turn on Gemini I made it so you have to type a specific enable phrase to prevent it using the API without your express knowledge. To enable it you have to be the server owner of the discord server and type enable gemini in the chat, then the bot will switch over to using the API.
I find the Gemini model is quite good, probably smarter or more practically useful in terms of reasoning than any open source model with the possible exception of mixtral 8 x 7b which seems pretty smart but takes up like 24GB of vram to run well. The only downside is the model has some built-in guardrails so if you shout at the bot too much it interprets it as harassment and it won't give you a response, etc. it's also not the most natural chatter, so it sounds a little robotic as most models do, not like the good RP models or airoboros llama 2, which I consider excellent at natural chatty flavour.


Add go.mod  files to  examples folder

Signed-off-by: penghuima<EMAIL_ADDRESS>When testing the examples, the user needs to initialize  locally to generate go.mod file，It is better to directly generate the created go.mod file in the folder

LGTM but I am not a maintainer or approver in go-sdk.


Unexpected token (1:1495)

When I upgraded to latest version, I've got an error now.
  ERROR in ./node_modules/vue2-dropzone/dist/vue2Dropzone.js 1:1495     Module parse failed: Unexpected token (1:1495)     You may need an appropriate loader to handle this file type.     > !function(a,b){typeof exports==='object'&&typeof module!=='undefined'?module.exports=b():typeof

Here in Japan, we have the same problem.
We are hoping fixing it !!

Hi @TuguldurJ & @Hiroshi-Tagami-789
I've just released<EMAIL_ADDRESS>- I think this resolves the issue (fingers crossed)

It still some as before. Please check it again :)

Here we go again, this time as 3.5.5-alpha.0

Same bug is happened. maybe, something minimize fails.

@rowanwins
Thank you!
Your library passed for running yarn dev on my product.
LGTM.
but, I'm wondering. What cause this error happened ?

@rowanwins
However, I confirmed vue2-dropzone doesn't happen error with yarn dev.
Would you update version information to 3.5.5 ?

Here we go again, this time as 3.5.5-alpha.0

When will this fix be released to master?

Hi @benrolfe
Have just published it as 3.5.5

Hi @Adan2JP
Basically the problem was caused by updating dependencies in #429 . Everything appeared to work, but for some reason the minification in particular caused issues. I'm now using terser instead of uglify, during the misfires I also tried butternut but that also caused some issues.

It works now.
@rowanwins Thank you!
btw, i've got a css issue which was fine in before.

Doh @TuguldurJ  - in having to tweak the build tooling I had to adjust the approach used for CSS. Can you perhaps open a new issue specific to the css, and perhaps just double check that it's not the cache or anything like that...

@rowanwins ok let me check for issue.

hi!
I can confirm the css problem (was fine before updating ...):

Hi @sanna-woo
Can you please open a new issue and perhaps describe your config.
Thanks


[Remove Scope Request] table 11401 "CBG Statement Line" - InitRecord and other functions

NL localization issue:
OnValidate of field Identification:
    ...
    CBGStatementLine := Rec;
    Init();
    InitRecord(CBGStatementLine);
    ...

the function called "InitRecord" has scope OnPrem
    [Scope('OnPrem')]
    procedure InitRecord(LastRecord: Record "CBG Statement Line")
    begin
        OnBeforeInitRecord(Rec, LastRecord, CBGStatement);
        GetCBGStatementHeader();
    ...

This is the case for multiple procedures.
Is this functionality not te be used OnPrem?
Would like to be able to use this with Target:Cloud

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 52209.


[firebase_messaging] Notification banner not showing on Android

When receiving an FCM from cloud functions in a Flutter app, on iOS the notification appears with a banner and in the system tray as expected. However, on Android the notification appears straight in the system tray without displaying a banner.
Shouldn't the behaviour be the same for both platforms when sending the exact same FCM?
Here is the FCM:
const payload = {
          notification: {
            title: 'You have a new message!',
            body: 'Tap to reply'
          },
          data: {
            click_action: 'FLUTTER_NOTIFICATION_CLICK',
            uid: sendingUserID
          }
        };

const options = {
      priority: 'high'
    };

admin.messaging().sendToDevice(token, payload, options);

Is there additional flag that I can set in options or the payload?

Hi @MichaelM97
could you please provide your flutter doctor -v
and your flutter run --verbose.
Thank you

For flutter run --verbose is there any specific information you're looking for? As the output for that is ~20000 lines
flutter doctor -v
[✓] Flutter (Channel stable, v1.9.1+hotfix.6, on Mac OS X 10.14.6 18G103, locale
    en-GB)
    • Flutter version 1.9.1+hotfix.6 at
      /Users/michaelmccormick/development/flutter
    • Framework revision 68587a0916 (8 weeks ago), 2019-09-13 19:46:58 -0700
    • Engine revision b863200c37
    • Dart version 2.5.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
    • Android SDK at /Users/michaelmccormick/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.0)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.0, Build version 11A420a
    • CocoaPods version 1.7.1

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 40.2.2
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[!] Connected device
    ! No devices available

! Doctor found issues in 1 category.

Hello, i am getting this exact same problem. What gives?

Any news on this? i am ran into the same problem.

FCM only displaying notifications when the app in the background or quit, not when in the foreground. You can use the https://pub.dev/packages/flutter_local_notifications to display a banner style notification - the channel must have a high priority.
Leaving open for documentation improvements.

I know all this @Ehesp Elliot. I cant even get it to show up high priority from the fcm console. Can you explain simply how to get it done with the least complication from fcm and ill get it working from whatever stack. Thanks.

I cant even get it to show up high priority from the fcm console.

What do you mean by show up high priority? Do you mean when on a different app on the device you want it to appear over the top (as a banner?)

Exactly. Trying for 3 weeks. Impossible.

@Ehesp Any way you can help me with this?

FCM only displaying notifications when the app in the background or quit, not when in the foreground. You can use the https://pub.dev/packages/flutter_local_notifications to display a banner style notification - the channel must have a high priority.
Leaving open for documentation improvements.

Hi @Ehesp, this issue was in relation to FCM not displaying notifications correctly even when the app is in the background or closed. The notification would appear in the notification tray, however, would not "pop down" or shown the notification banner on receiving the notification.
I haven't re-tested this since raising, so I'll give it another go across the coming week with the latest Flutter FCM package versions to see if it's fixed. If it isn't, I'll record the problem and attach it to this issue.

The notification would appear in the notification tray, however, would not "pop down" or shown the notification banner on receiving the notification.

This is because the channel it's using (defaulting to one FCM creates) has a "default" importance level. You need to create the channel with high importance via the local notifications plugin, then add the channel ID within the Android Manifest (see https://stackoverflow.com/questions/46047343/firebase-how-to-set-default-notification-channel-in-android-app).
That should then show it as a heads-up notification.

Will try it right now thank you so much.

@MichaelM97 Michael, why would we need a nother flutter package when this is not handle by flutter at all? What does this package do? The setup code from firebase cloud messaging already handles the bridging from android to the flutter portion of the app. Our problem is located between the phone os layer and app background which is not related to flutter. Please clarify. @Ehesp Elliot, what do you think about that reasoning?

What i don't understand here is that it seems a lot of this code is related to android channels which we can't easily do in flutter: https://medium.com/exploring-android/exploring-android-o-notification-channels-94cd274f604c
in that android code i do see how we can create a notification channel and assign it a "high" priority.
int importance = NotificationManager.IMPORTANCE_LOW;

this is what i think we need but like i said this code is android code.

Okay, I've got this working. Thanks for the help @Ehesp
IMO the below steps should be added to the README, as I presume most people will assume that heads up notifications are configured "out of the box" on Android as they are on iOS

Add the following to your strings.xml. Of course you'll want to customise these for your own app, and be aware that the channel name and channel description are what the user will see in their notification settings.

<string name="notification_channel_id" translatable="false">my_unique_fcm_id</string>
<string name="notification_channel_name">The name of this notification</string>
<string name="notification_channel_desc">A description of the notification.</string>

Register the new notification channel by adding the following code to your app (Java version here). This should be done as early as possible, for example, after calling super.onCreate in MainActivity.kt (or .java).

// Create the NotificationChannel, but only on API 26+ because
// the NotificationChannel class is new and not in the support library
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
     val channelID = getString(R.string.notification_channel_id)
     val name = getString(R.string.notification_channel_name)
     val descriptionText = getString(R.string.notification_channel_desc)
     val importance = NotificationManager.IMPORTANCE_HIGH
     val channel = NotificationChannel(channelID, name, importance).apply {
          description = descriptionText
      }
      // Register the channel with the system
      val notificationManager: NotificationManager =
           getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
      notificationManager.createNotificationChannel(channel)
}

Pay attention to the line which sets the importance, as this is what causes notifications sent on this channel to appear as a "Heads Up" notification. (See the docs here)
val importance = NotificationManager.IMPORTANCE_HIGH

Add the following to your AndroidManifest.xml under the <application> tag. This will ensure that any FCM's sent without a notification channel set in their payload will use this one.

<meta-data
    android:name="com.google.firebase.messaging.default_notification_channel_id"
    android:value="@string/notification_channel_id" />

Clean and rebuild

Send a test FCM. It should use your newly created channel by default, and show up as a "Heads Up" notification.

(Optional) You can repeat these steps to set up more notification channels for each type of notification you plan on sending. Just make sure each has a unique ID, and that you bundle the channel ID with the notification payload when you send it.

The full docs are here.

Thank you @MichaelM97 I feel like i am very close but i keep getting an error. Also some of the code had to be a bit changed for me as it was throwing a bunch of errors concerning line termination (missing:)
Any idea what i am doing wrong here?
		if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {

			CharSequence channelID = getString(R.string.notification_channel_id);
			CharSequence name = getString(R.string.notification_channel_name);
			String descriptionText = getString(R.string.notification_channel_desc);
			int importance = NotificationManager.IMPORTANCE_HIGH;

			NotificationChannel channel = new NotificationChannel(channelID, name, importance);
			channel.setDescription(descriptionText);

			// Register the channel with the system

            //I TRIED ALL OF THESE WITH NO LUCK

            //THIS ONE HAD THE LEAST NUMBER OF ERRORS
            //1 error (missing ;)
			NotificationManager notificationManager = getSystemService(NOTIFICATION_SERVICE) as NotificationManager;

			val notificationManager: NotificationManager = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager;

            NotificationManager notificationManager: NotificationManager = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager;

			//from instructions online https://developer.android.com/training/notify-user/channels#java
			NotificationManager notificationManager = getSystemService(NotificationManager.class);

			//added context
			NotificationManager notificationManager = getSystemService(Context.NotificationManager.class);

			NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);

			val notificationManager: NotificationManager = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager;

			//6 errors
			NotificationManager notificationManager = getSystemService(NOTIFICATION_SERVICE);

			//7 errors
			NotificationManager notificationManager = getSystemService(Context.NOTIFICATION_SERVICE);

			//1 error still  (missing ;)
			// NotificationManager notificationManager = getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager;

			// 1 error
			// NotificationManager notificationManager = context.getSystemService(NOTIFICATION_SERVICE) as NotificationManager;

			// 6 errors
			NotificationManager notificationManager = getSystemService(NOTIFICATION_SERVICE);

			//1 error
			NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);

			notificationManager.createNotificationChannel(channel);

		}

@nicolasvahidzein The channel configuration code I posted was for Kotlin, if you are using Java you will need to do the following
private void createNotificationChannel() {
    // Create the NotificationChannel, but only on API 26+ because
    // the NotificationChannel class is new and not in the support library
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
        CharSequence channelID = getString(R.string.notification_channel_id);
        CharSequence name = getString(R.string.notification_channel_name);
        String description = getString(R.string.notification_channel_desc);
        int importance = NotificationManager.IMPORTANCE_HIGH;
        NotificationChannel channel = new NotificationChannel(channelID, name, importance);
        channel.setDescription(description);
        // Register the channel with the system; you can't change the importance
        // or other notification behaviors after this
        NotificationManager notificationManager = getSystemService(NotificationManager.class);
        notificationManager.createNotificationChannel(channel);
    }
}

If you are still having issues, make sure that you are calling this code from somewhere with access to the Context, e.g. MainActivity.java. Let me know if this helps.

 I can't figure it out. I'm no longer getting an error but i still get an error.  Can i PM you?

I finally got it. God has a sense of humour. I was about to give up if it didn't work on this last try. Thanks you @MichaelM97 i owe you so much.

Okay, I've got this working. Thanks for the help @Ehesp
IMO the below steps should be added to the README (I've raised #2487 for this), as I presume most people will assume that heads up notifications are configured "out of the box" on Android as they are on iOS

Add the following to your strings.xml. Of course you'll want to customise these for your own app, and be aware that the channel name and channel description are what the user will see in their notification settings.

<string name="notification_channel_id" translatable="false">my_unique_fcm_id</string>
<string name="notification_channel_name">The name of this notification</string>
<string name="notification_channel_desc">A description of the notification.</string>

Register the new notification channel by adding the following code to your app (Java version here). This should be done as early as possible, for example, after calling super.onCreate in MainActivity.kt (or .java).

// Create the NotificationChannel, but only on API 26+ because
// the NotificationChannel class is new and not in the support library
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
     val channelID = getString(R.string.notification_channel_id)
     val name = getString(R.string.notification_channel_name)
     val descriptionText = getString(R.string.notification_channel_desc)
     val importance = NotificationManager.IMPORTANCE_HIGH
     val channel = NotificationChannel(channelID, name, importance).apply {
          description = descriptionText
      }
      // Register the channel with the system
      val notificationManager: NotificationManager =
           getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
      notificationManager.createNotificationChannel(channel)
}

Pay attention to the line which sets the importance, as this is what causes notifications sent on this channel to appear as a "Heads Up" notification. (See the docs here)
val importance = NotificationManager.IMPORTANCE_HIGH

Add the following to your AndroidManifest.xml under the <application> tag. This will ensure that any FCM's sent without a notification channel set in their payload will use this one.

<meta-data
    android:name="com.google.firebase.messaging.default_notification_channel_id"
    android:value="@string/notification_channel_id" />

Clean and rebuild
Send a test FCM. It should use your newly created channel by default, and show up as a "Heads Up" notification.

(Optional) You can repeat these steps to set up more notification channels for each type of notification you plan on sending. Just make sure each has a unique ID, and that you bundle the channel ID with the notification payload when you send it.

The full docs are here.

where can i  find the strings.xml file in my flutter project, also what do i give the ID? any srting?

The strings.xml is located in the Android portion of your app, i.e.
{yourFlutterProject}/android/app/src/main/res/values/strings.xml

The default ID can be any string that you want :)

where can i find the strings.xml file in my flutter project, also what do i give the ID? any srting?

The strings.xml is located in the Android portion of your app, i.e.
{yourFlutterProject}/android/app/src/main/res/values/strings.xml

The default ID can be any string that you want :)

I dont have strings.xml , can you show me your full code for strings please because when i make it its wrong

where can i find the strings.xml file in my flutter project, also what do i give the ID? any srting?

The strings.xml is located in the Android portion of your app, i.e.
{yourFlutterProject}/android/app/src/main/res/values/strings.xml

The default ID can be any string that you want :)

thankyou so much, the MainActivity is giving me errors, i havent imported the strings so it doesnt read get string or the channel ID etc.. how do i import it?

thankyou so much, the MainActivity is giving me errors, i havent imported the strings so it doesnt read get string or the channel ID etc.. how do i import it?

When in MainActivity, click "Open for Editing in Android Studio".
Then use Alt + Enter (or Option + Enter on Mac) to see what imports the IDE suggests

thankyou so much, the MainActivity is giving me errors, i havent imported the strings so it doesnt read get string or the channel ID etc.. how do i import it?

When in MainActivity, click "Open for Editing in Android Studio".
Then use Alt + Enter (or Option + Enter on Mac) to see what imports the IDE suggests

thankyou so much, but my channel id and description and name are still red and not recognized altho i initialized it in strings.xml, what do i do ?

@azheennn contact me directly on skype ill help you. “Nzein19” is my handle

@azheennn contact me directly on skype ill help you. “Nzein19” is my handle

did!

Okay, I've got this working. Thanks for the help @Ehesp
IMO the below steps should be added to the README (I've raised #2487 for this), as I presume most people will assume that heads up notifications are configured "out of the box" on Android as they are on iOS

Add the following to your strings.xml. Of course you'll want to customise these for your own app, and be aware that the channel name and channel description are what the user will see in their notification settings.

<string name="notification_channel_id" translatable="false">my_unique_fcm_id</string>
<string name="notification_channel_name">The name of this notification</string>
<string name="notification_channel_desc">A description of the notification.</string>

Register the new notification channel by adding the following code to your app (Java version here). This should be done as early as possible, for example, after calling super.onCreate in MainActivity.kt (or .java).

// Create the NotificationChannel, but only on API 26+ because
// the NotificationChannel class is new and not in the support library
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
     val channelID = getString(R.string.notification_channel_id)
     val name = getString(R.string.notification_channel_name)
     val descriptionText = getString(R.string.notification_channel_desc)
     val importance = NotificationManager.IMPORTANCE_HIGH
     val channel = NotificationChannel(channelID, name, importance).apply {
          description = descriptionText
      }
      // Register the channel with the system
      val notificationManager: NotificationManager =
           getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
      notificationManager.createNotificationChannel(channel)
}

Pay attention to the line which sets the importance, as this is what causes notifications sent on this channel to appear as a "Heads Up" notification. (See the docs here)
val importance = NotificationManager.IMPORTANCE_HIGH

Add the following to your AndroidManifest.xml under the <application> tag. This will ensure that any FCM's sent without a notification channel set in their payload will use this one.

<meta-data
    android:name="com.google.firebase.messaging.default_notification_channel_id"
    android:value="@string/notification_channel_id" />

Clean and rebuild
Send a test FCM. It should use your newly created channel by default, and show up as a "Heads Up" notification.

(Optional) You can repeat these steps to set up more notification channels for each type of notification you plan on sending. Just make sure each has a unique ID, and that you bundle the channel ID with the notification payload when you send it.

The full docs are here.

what did u do to youre index.js file? can you share your code

I solved my problem with the help of @nicolasvahidzein and by following the steps that @MichaelM97 mentioned. I just didnt have the full code for my MainActivity thats why i was having problems. so for everyone whos looking for the missing piece.. here you go:
[package com.tamataonline.tamatafresh;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.os.Build;
import android.os.Bundle;
import io.flutter.embedding.android.FlutterActivity;
import io.flutter.plugins.GeneratedPluginRegistrant;
public class MainActivity extends FlutterActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);

    // Create the NotificationChannel, but only on API 26+ because
    // the NotificationChannel class is new and not in the support library
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
        String channelID = getString(R.string.notification_channel_id);
        CharSequence name = getString(R.string.notification_channel_name);
        String descriptionText = getString(R.string.notification_channel_desc);
        int importance = NotificationManager.IMPORTANCE_HIGH;

        NotificationChannel channel = new NotificationChannel(channelID, name, importance);
        channel.setDescription(descriptionText);

        // Register the channel with the system; you can't change the importance
        // or other notification behaviors after this
        NotificationManager notificationManager = getSystemService(NotificationManager.class);

        notificationManager.createNotificationChannel(channel);

    }

    //////////////////GeneratedPluginRegistrant.registerWith(this);
    // FlutterFirebaseMessagingService.setPluginRegistrant(this);

}

}
](url)

i am getting (18, 43): Unresolved reference: R error when running. ANy idea .?

i am getting (18, 43): Unresolved reference: R error when running any idea ?

It's been almost a year since this issue was opened and still, it's open !! Sometimes, I hate using Flutter.

@omishah it's not a bug it's just a documentation problem. Read the different comments here and pay close attention. If you can't fix it contact me on skype i'll help you. nzein19 is my skype handle.

i am getting (18, 43): Unresolved reference: R error when running any idea ?

no idea, sorry.

i am getting (18, 43): Unresolved reference: R error when running any idea ?

Sounds like you’re missing imports, open the android portion of your application in Android Studio and check the recommended imports

@omishah it's not a bug it's just a documentation problem. Read the different comments here and pay close attention. If you can't fix it contact me on skype i'll help you. nzein19 is my skype handle.

Ahh I see. Thanks but I don't a help at the moment. 🚀☺

Hey all 👋
As part of our roadmap (#2582) we've just shipped a complete rework of the firebase_messaging plugin that aims to solve this and many other issues. We've added a ton of documentation as well as an example for a high priority channel in the example app.
If you can, please try out the dev release (see the migration guide for upgrading and for changes) and if you have any feedback then join in the discussion here.
Given the scope of the rework I'm going to go ahead and close this issue in favor of trying out the latest plugin.
Thanks everyone.


Upgrade AppEngine VM type

Some important requests often take a long time to handle: >500ms for /new-gcs-urls, >300ms for /dispatch...
Current config for instance classes is F1 (600 MHz, 128MB).
Try F4 (2.4 GHz, 512MB) and measure performance gains, if any.

The backend code is written in go, doesn't use much memory and is usually not very CPU-intensive.
It may well be that the latency bottleneck lies somewhere in the services RPC calls, in which case we would not gain speed trying to improve the GAE instance VMs...

See https://cloud.google.com/appengine/docs/standard/#instance_classes

The config instance_class: F4 in app.yaml is a little obscure ; it seems not possible to read the class of a given instance via web console or via gcloud app instances describe.

Instance classes are displayed in Versions page, or with gcloud app versions ...

Signed URLs for GCS generation does seem to be CPU-intensive.

Benchmark shows a speedup of /new-gcs-urls from 237ms with F1 down to 126ms with F4_1G.
This is in the critical path only when "scan" happens before "end of upload", shaving ~100ms.
Note that F4_1G is 6x the price of F1, though.


Provide web endpoint to query Webhook Registry

Duplicate of https://github.com/camunda-community-hub/spring-zeebe/issues/342


fromnumeric.py compatibility with GroupBy, Window, and tslib functions

In #12810, it was decided that compatibility for groupby (including resample.py) and window functions would be left for a separate PR / discussion, which seems reasonable given how massive #12810 already is.  This issue serves a reminder to tackle this after landing #12810, as it seems like this can be easily addressed afterwards.

@jreback : Adding timestamps and timedeltas as well to this issue given my question about tslib.pyx.

With my initial fromnumeric.py PR merged, it seems like a good idea to revisit this.  The major files that I think merit examination for numpy compatibility are:
pandas/core/window/window.py
pandas/tseries/resample.py
pandas/core/groupby.py
pandas/tslib.pyx

how so, I don't really care to be compat with numpy for anything beyond very basic stuff. pls show an example.

Examples:
tslib.round(self, freq)
window.max(self, how=None, **kwargs)
resample.var(self, ddof=1)
groupby.mean(self)
All I was thinking of doing was putting validation calls in the implementation, similar to what was done in my previous PR and nothing more than that.

In [1]: df = DataFrame({'A' : [1,2,1], 'B' : [1,2,3]})

In [2]: g = df.groupby('A')

In [3]: g.mean()
Out[3]:
   B
A
1  2
2  2

In [4]: np.mean(g)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-4-fdcd38489fcb> in <module>()
----> 1 np.mean(g)

/Users/jreback/miniconda/lib/python2.7/site-packages/numpy/core/fromnumeric.pyc in mean(a, axis, dtype, out, keepdims)
   2878         try:
   2879             mean = a.mean
-> 2880             return mean(axis=axis, dtype=dtype, out=out)
   2881         except AttributeError:
   2882             pass

TypeError: mean() got an unexpected keyword argument 'axis'

ok that doesn't seem unreasonable

Do we actually want something like np.mean(g) to work?
A groupby object is not an array-like such as a Series. IMO we shouldn't put effort in enabling such usage

@jorisvandenbossche : I'll leave that for you to debate with @jreback .  To reiterate, I am perfectly fine either way.  This is not a serious compatibility issue as the previous one I raised in #12644.


Add missing require to the example script

The example reads better with the require. @morganherlocker, please 👀 and merge.

Thanks @bkowshik!


feat(auto-migrate): implement auto migration

This PR implements auto-migration, i.e. moving unschedulable pods to another cluster automatically.
To do so, the replica planner needs to be aware of the max number of pods that can be run in each cluster (estimatedCapacity) and plan accordingly. estimatedCapacity is calculated as status.replicas - count(replicas unschedulable beyond a certain threshold).
The KubeFed planner was estimatedCapacity aware, but had 2 issues:

replica distribution will deviate significantly from preferences when rebalance = false and scaling down
need to cache all pods from all clusters, which becomes a significant memory bottleneck

The later refinedplanner addressed these issues, but is unfortunately not aware of estimatedCapacity.
This PR is an attempt at creating a new replica distribution algorithm by combining the two planners, without having to cache all pods from all clusters. An auto-migration controller detects estimatedCapacity changes, and triggers a rescheduling. On rescheduling, the scheduler takes in the latest estimatedCapcity information and calculates the optimal replica distribution using the new algorithm.
This PR also fixes a few issues with the scheduler:

sort taints correctly in scheduling trigger
use a more idiomatic way to sort maps
remove cluster ready conditions from scheduling trigger
on cluster change, only enqueue objects if labels or taints have changed
standardise logging levels
fix incorrect handling of pending controllers resulting in spurious updates

This PR also improves infra:

support post-generation CRD patches
AssertForItems async matcher for e2e tests

Looks good other than the small issues that I raised. It would also be nice if we can formalize the algorithm, and have a doc to explain the feature to users.


Guidelines for Python code examples in derivative tests.

A good practice has been exercised over the past few months in adding layer tests: we add a Python TensorFlow reproducer.
What has really helped in assuring our layers' correctness is adding a Python reproducer per layer test like (this). Thank you @eaplatanios, @Shashi456, @jon-tow and @t-ae for doing this! As we make more progress towards finishing #402, we need to make sure all the reproducers we add are high-quality (@dan-zheng also mentioned this to me earlier). I propose that we follow the following guidelines in future Python code examples:

Use TensorFlow 2.0 and tf.keras.
Include all code necessary for reproducing the gradients. This includes any import statements.
Leave no blank lines.
Call print() on the gradient, so that reproducing is as easy as copy-paste.
Zero base indentation. Currently I'm seeing:// ```
//   maxpool2D = tf.keras.layers.MaxPool2D(strides=(2, 2))
//   with tf.GradientTape() as t:

... which should be changed to:// ```
// import tensorflow as tf
// maxpool2D = tf.keras.layers.MaxPool2D(strides=(2, 2))
// with tf.GradientTape() as t:

Add a sentence above the code block:// The expected value of the gradient was computed using the following Python code:

What about adding the variable used in the code as well? We don't exactly add x/input to the reproducers.

Yes, good point. Updated.


expand: fixes and tests

Fix expand() in order to emit each next value only once. It was previously emitting those values
multiple times when a concurrency limit was set.
Add subscription assertions on expand tests. Add concurrency-related tests.

Fix expand() in order to emit each next value only once. It was previously emitting those values
multiple times

: :+1: I was hitting while I try to add test coverage for this operator, hadn't look in detail at the moment.

btw, huge PR combos :)

:sunglasses:

In general change looks good to me.

Merged with 01f86e5, thanks @staltz


make pip-tools fails in Windows

I use Windows 10 with a couple of GPUs and conda. I wanted to run lab 1 on my local computer instead of colab. So I installed make using choclately
Command: choco install make
And I ran make conda-update, it worked and installed all the dependencies.
Activated the conda environment using conda activate fsdl-text-recognizer-2021
Then I ran make pip-tools
It throws the following error:
pip._internal.exceptions.DistributionNotFound: No matching distribution found for torchvision==0.8.2 (from -r requirements/prod.in (line 11))
make: *** [Makefile:13: pip-tools] Error 1
I am not sure how to resolve this? If you could help me with these that would be awesome
Traceback just in case:

I don't have Windows so won't be able to test solution or support it. But the error here is that the torchvision package doesn't seem to exist for the windows environment.
Maybe relevant: https://stackoverflow.com/questions/50812838/error-in-pip-install-torchvision-on-windows-10


feat(ssl): allow users to specify custom ssl cert/key

Allow users to take advantage of the latest features of the Mock Service.

Upgraded to latest Mock Service (v0.10.1)
Allow users to specify a custom ssl cert/key for the mock

I'm currently looking at it and updating a few things, including some extra checks, tests and actually updating the pact-mock-service dependency in the package.json file :P

I also noticed that the version of the pact-mock-service-npm is now out of sync with the actual pact-mock-service :/

@mefellows Alright, I've added my bit of code for extra checks and fixing a few issues along the way and updating the package.json to reflect latest and greatest.  Mind checking it over to make sure you're happy? then will merge and deploy.

Muchos gracias, will check this all on train tonight!

@mefellows
Did you get a chance to look over my changes?

I sure did. Your suggestions are all completely sane, I'm wondering why my changes to package.json didn't go up in the first place. In any case we're good to 🚀

@mefellows 4.7.0 going out as we speak :)


content not showing view page source

view page source is always showing landing page info/content for all routes. Can someone help me how to overcome this? Thanks in advance!

Refresh the page, or open links in a new tab, or disable JavaScript. This is not a bug.
What happens is that you're experiencing JavaScript Router based navigation when you're clicking them in your browser, so the initial page source isn't updated nor is it supposed to.


JWKS caching question

What's your question?
Is it expected that jwt::jwks can't be cached?
Additional Context
As far as I understand, relying parties are expected to cache retrieved key sets indefinitely (or until a kid is seen which is not present in the key set). I've been forced to cache the raw JSON and re-parse with jwt::parse_jwks every time a request comes in because attempting to cache the parsed jwt::jwks fails to compile with an error indicating that the underlying jwt::jwk is non-copyable.
This:
auto jwks = jwt::parse_jwks(jwksJson);
std::map<std::string, jwt::jwks<jwt::traits::kazuho_picojson>> xs;
xs[issuerUrl] = jwks;

Results in this:
15>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vector(1485,27): error C2280: 'jwt::jwk<jwt::traits::kazuho_picojson> &jwt::jwk<jwt::traits::kazuho_picojson>::operator =(const jwt::jwk<jwt::traits::kazuho_picojson> &)': attempting to reference a deleted function
15>\libraries\jwt-cpp\jwt.h(3565,1): message : compiler has generated 'jwt::jwk<jwt::traits::kazuho_picojson>::operator =' here
15>\libraries\jwt-cpp\jwt.h(3565,1): message : 'jwt::jwk<jwt::traits::kazuho_picojson> &jwt::jwk<jwt::traits::kazuho_picojson>::operator =(const jwt::jwk<jwt::traits::kazuho_picojson> &)': function was implicitly deleted because a data member 'jwt::jwk<jwt::traits::kazuho_picojson>::jwk_claims' has either no appropriate copy assignment operator or overload resolution was ambiguous
15>\libraries\jwt-cpp\jwt.h(3373,45): message : see declaration of 'jwt::jwk<jwt::traits::kazuho_picojson>::jwk_claims'
15>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vector(1561,1): message : see reference to function template instantiation 'void std::vector<jwt::jwk<jwt::traits::kazuho_picojson>,std::allocator<jwt::jwk<jwt::traits::kazuho_picojson>>>::_Assign_counted_range<jwt::jwk<jwt::traits::kazuho_picojson>*>(_Iter,const unsigned __int64)' being compiled
15>        with
15>        [
15>            _Iter=jwt::jwk<jwt::traits::kazuho_picojson> *
15>        ]
15>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vector(1561,30): message : see reference to function template instantiation 'void std::vector<jwt::jwk<jwt::traits::kazuho_picojson>,std::allocator<jwt::jwk<jwt::traits::kazuho_picojson>>>::_Assign_counted_range<jwt::jwk<jwt::traits::kazuho_picojson>*>(_Iter,const unsigned __int64)' being compiled
15>        with
15>        [
15>            _Iter=jwt::jwk<jwt::traits::kazuho_picojson> *
15>        ]
15>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\include\vector(1545,1): message : while compiling class template member function 'std::vector<jwt::jwk<jwt::traits::kazuho_picojson>,std::allocator<jwt::jwk<jwt::traits::kazuho_picojson>>> &std::vector<jwt::jwk<jwt::traits::kazuho_picojson>,std::allocator<jwt::jwk<jwt::traits::kazuho_picojson>>>::operator =(const std::vector<jwt::jwk<jwt::traits::kazuho_picojson>,std::allocator<jwt::jwk<jwt::traits::kazuho_picojson>>> &)'
15>\libraries\jwt-cpp\jwt.h(3632,1): message : see reference to function template instantiation 'std::vector<jwt::jwk<jwt::traits::kazuho_picojson>,std::allocator<jwt::jwk<jwt::traits::kazuho_picojson>>> &std::vector<jwt::jwk<jwt::traits::kazuho_picojson>,std::allocator<jwt::jwk<jwt::traits::kazuho_picojson>>>::operator =(const std::vector<jwt::jwk<jwt::traits::kazuho_picojson>,std::allocator<jwt::jwk<jwt::traits::kazuho_picojson>>> &)' being compiled
15>\libraries\jwt-cpp\jwt.h(3582,1): message : see reference to class template instantiation 'std::vector<jwt::jwk<jwt::traits::kazuho_picojson>,std::allocator<jwt::jwk<jwt::traits::kazuho_picojson>>>' being compiled
15>\libraries\jwt-cpp\traits\kazuho-picojson\defaults.h(73,101): message : see reference to class template instantiation 'jwt::jwks<jwt::traits::kazuho_picojson>' being compiled

Is this a case of me missing something obvious? Or is this actually an issue?

It's been awhile but you understanding seems correct, why not just move it? I guess my question is why do you need copies?
My expectations is that it would be saved in an object and you could move it to the member variable and just reference that?
Does that not fit you use case?

Copying can very often be a required thing to do (especially in multithreaded code), so it definitely should be possible.
Looking at the error it seems like it fails to copy the claims member in jwk_claims, which is of type map_of_claims, which is really just a wrapper around the json_traits::object_type however both picojson::value and map_of_claims have a copy constructor, so I don't quite get why msvc complains.

I assume you solved this but there is some example code in https://github.com/Thalhammer/jwt-cpp/pull/345 about how this could be done


Detected blocking call to open with args

2024-08-24 06:19:58.256 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open with args ('/config/custom_components/sonoff/init.py', 'rb') inside the event loop by custom integration 'sonoff' at custom_components/sonoff/core/xutils.py, line 20: with open(path, "rb") as f: (offender: /config/custom_components/sonoff/core/xutils.py, line 20: with open(path, "rb") as f:), please create a bug report at https://github.com/AlexxIT/SonoffLAN/issues
For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#open
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/usr/src/homeassistant/homeassistant/main.py", line 223, in
sys.exit(main())
File "/usr/src/homeassistant/homeassistant/main.py", line 209, in main
exit_code = runner.run(runtime_conf)
File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run
return loop.run_until_complete(setup_and_run_hass(runtime_config))
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
self.run_forever()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
self._run_once()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once
handle._run()
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/src/homeassistant/homeassistant/setup.py", line 165, in async_setup_component
result = await _async_setup_component(hass, domain, config)
File "/usr/src/homeassistant/homeassistant/setup.py", line 461, in async_setup_component
await asyncio.gather(
File "/usr/src/homeassistant/homeassistant/setup.py", line 463, in
create_eager_task(
File "/usr/src/homeassistant/homeassistant/util/async.py", line 37, in create_eager_task
return Task(coro, loop=loop, name=name, eager_start=True)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 752, in async_setup_locked
await self.async_setup(hass, integration=integration)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/sonoff/init.py", line 170, in async_setup_entry
await system_health.setup_debug(hass, _LOGGER)
File "/config/custom_components/sonoff/system_health.py", line 62, in setup_debug
info[DOMAIN + "_version"] = f"{integration.version} ({xutils.source_hash()})"
File "/config/custom_components/sonoff/core/xutils.py", line 20, in source_hash
with open(path, "rb") as f:
"home_assistant": {
"installation_type": "Home Assistant OS",
"version": "2024.8.2",
"dev": false,
"hassio": true,
"virtualenv": false,
"python_version": "3.12.4",
"docker": true,
"arch": "x86_64",
"timezone": "Europe/London",
"os_name": "Linux",
"os_version": "6.6.44-haos",
"supervisor": "2024.08.0",
"host_os": "Home Assistant OS 13.0",
"docker_version": "26.1.4",
"chassis": "vm",
"run_as_root": true
"sonoff": {
  "documentation": "https://github.com/AlexxIT/SonoffLAN",
  "version": "3.7.3",
  "requirements": [
    "pycryptodome>=3.6.6"
  ]

Having similar issue, log below:
Logger: homeassistant.util.loop
Source: util/loop.py:136
First occurred: 12:34:56 (4 occurrences)
Last logged: 21:07:58
Detected blocking call to walk with args ('/config/custom_components/sonoff',) inside the event loop by custom integration 'sonoff' at custom_components/sonoff/core/xutils.py, line 14: for root, dirs, files in os.walk(path): (offender: /config/custom_components/sonoff/core/xutils.py, line 14: for root, dirs, files in os.walk(path):), please create a bug report at https://github.com/AlexxIT/SonoffLAN/issues For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#walk Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/main.py", line 223, in  sys.exit(main()) File "/usr/src/homeassistant/homeassistant/main.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/setup.py", line 165, in async_setup_component result = await _async_setup_component(hass, domain, config) File "/usr/src/homeassistant/homeassistant/setup.py", line 461, in async_setup_component await asyncio.gather( File "/usr/src/homeassistant/homeassistant/setup.py", line 463, in  create_eager_task( File "/usr/src/homeassistant/homeassistant/util/async.py", line 37, in create_eager_task return Task(coro, loop=loop, name=name, eager_start=True) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 752, in async_setup_locked await self.async_setup(hass, integration=integration) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/sonoff/init.py", line 170, in async_setup_entry await system_health.setup_debug(hass, _LOGGER) File "/config/custom_components/sonoff/system_health.py", line 62, in setup_debug info[DOMAIN + "_version"] = f"{integration.version} ({xutils.source_hash()})" File "/config/custom_components/sonoff/core/xutils.py", line 14, in source_hash for root, dirs, files in os.walk(path):
Detected blocking call to scandir with args ('/config/custom_components/sonoff',) inside the event loop by custom integration 'sonoff' at custom_components/sonoff/core/xutils.py, line 14: for root, dirs, files in os.walk(path): (offender: , line 366: ?), please create a bug report at https://github.com/AlexxIT/SonoffLAN/issues For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#scandir Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/main.py", line 223, in  sys.exit(main()) File "/usr/src/homeassistant/homeassistant/main.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/setup.py", line 165, in async_setup_component result = await _async_setup_component(hass, domain, config) File "/usr/src/homeassistant/homeassistant/setup.py", line 461, in async_setup_component await asyncio.gather( File "/usr/src/homeassistant/homeassistant/setup.py", line 463, in  create_eager_task( File "/usr/src/homeassistant/homeassistant/util/async.py", line 37, in create_eager_task return Task(coro, loop=loop, name=name, eager_start=True) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 752, in async_setup_locked await self.async_setup(hass, integration=integration) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/sonoff/init.py", line 170, in async_setup_entry await system_health.setup_debug(hass, _LOGGER) File "/config/custom_components/sonoff/system_health.py", line 62, in setup_debug info[DOMAIN + "_version"] = f"{integration.version} ({xutils.source_hash()})" File "/config/custom_components/sonoff/core/xutils.py", line 14, in source_hash for root, dirs, files in os.walk(path):
Detected blocking call to open with args ('/config/custom_components/sonoff/init.py', 'rb') inside the event loop by custom integration 'sonoff' at custom_components/sonoff/core/xutils.py, line 20: with open(path, "rb") as f: (offender: /config/custom_components/sonoff/core/xutils.py, line 20: with open(path, "rb") as f:), please create a bug report at https://github.com/AlexxIT/SonoffLAN/issues For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#open Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/main.py", line 223, in  sys.exit(main()) File "/usr/src/homeassistant/homeassistant/main.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/setup.py", line 165, in async_setup_component result = await _async_setup_component(hass, domain, config) File "/usr/src/homeassistant/homeassistant/setup.py", line 461, in async_setup_component await asyncio.gather( File "/usr/src/homeassistant/homeassistant/setup.py", line 463, in  create_eager_task( File "/usr/src/homeassistant/homeassistant/util/async.py", line 37, in create_eager_task return Task(coro, loop=loop, name=name, eager_start=True) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 752, in async_setup_locked await self.async_setup(hass, integration=integration) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/sonoff/init.py", line 170, in async_setup_entry await system_health.setup_debug(hass, _LOGGER) File "/config/custom_components/sonoff/system_health.py", line 62, in setup_debug info[DOMAIN + "_version"] = f"{integration.version} ({xutils.source_hash()})" File "/config/custom_components/sonoff/core/xutils.py", line 20, in source_hash with open(path, "rb") as f:
Detected blocking call to open with args ('/usr/local/lib/python3.12/site-packages/pytz/zoneinfo/Africa/Abidjan', 'rb') inside the event loop by custom integration 'frigate' at custom_components/frigate/media_source.py, line 469: ) - (dt.datetime.now(pytz.timezone(timezone)).utcoffset() or dt.timedelta()) (offender: /usr/local/lib/python3.12/site-packages/pytz/init.py, line 108: return open(filename, 'rb')), please create a bug report at https://github.com/blakeblackshear/frigate-hass-integration/issues For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#open Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/main.py", line 223, in  sys.exit(main()) File "/usr/src/homeassistant/homeassistant/main.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 190, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 462, in _handle_request resp = await request_handler(request) File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 537, in handle resp = await handler(request) File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 114, in impl return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 85, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware response = await handler(request) File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle result = await handler(request, **request.match_info) File "/usr/src/homeassistant/homeassistant/components/websocket_api/http.py", line 54, in get return await WebSocketHandler(request.app[KEY_HASS], request).async_handle() File "/usr/src/homeassistant/homeassistant/components/websocket_api/http.py", line 438, in async_handle async_handle_str(command_msg_data) File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 229, in async_handle handler(self.hass, self, schema(msg)) File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 47, in schedule_handler hass.async_create_background_task( File "/usr/src/homeassistant/homeassistant/core.py", line 862, in async_create_background_task task = create_eager_task(target, name=name, loop=self.loop) File "/usr/src/homeassistant/homeassistant/util/async.py", line 37, in create_eager_task return Task(coro, loop=loop, name=name, eager_start=True) File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response await func(hass, connection, msg) File "/usr/src/homeassistant/homeassistant/components/media_source/init.py", line 209, in websocket_resolve_media media = await async_resolve_media(hass, msg["media_content_id"], None) File "/usr/src/homeassistant/homeassistant/components/media_source/init.py", line 172, in async_resolve_media return await item.async_resolve() File "/usr/src/homeassistant/homeassistant/components/media_source/models.py", line 84, in async_resolve return await self.async_media_source().async_resolve_media(self) File "/config/custom_components/frigate/media_source.py", line 575, in async_resolve_media server_path = identifier.get_integration_proxy_path( File "/config/custom_components/frigate/media_source.py", line 469, in get_integration_proxy_path ) - (dt.datetime.now(pytz.timezone(timezone)).utcoffset() or dt.timedelta())

#1426


[BUG] readme says to use ValidationRule on ReactiveValidationObject but it doesn't exist

Describe the bug
The readme says has tells you that for INotifyDataErrorInfo you can inherit ReactiveValidationObject and call this.ValidationRule to add validation rules.
However ReactiveValidationObject doesn't have a ValidationRule method and so the example does not compile:
It can be seen from https://github.com/reactiveui/ReactiveUI.Validation/blob/main/src/ReactiveUI.Validation/Helpers/ReactiveValidationObject.cs which doesn't have a method called ValidationRule
public class SampleViewModel : ReactiveValidationObject
{
    public SampleViewModel()
    {
        // this line from the readme doesn't compile because ValidationRule doesn't exist.
        this.ValidationRule(
            viewModel => viewModel.Name,
            name => !string.IsNullOrWhiteSpace(name),
            "Name shouldn't be null or white space.");
    }

    private string _name = string.Empty;
    public string Name
    {
        get => _name;
        set => this.RaiseAndSetIfChanged(ref _name, value);
    }
}

Steps To Reproduce
Us the sample from the readme
-> notice it doesn't compile because it uses a method that doesn't exist.
Expected behavior
I should be able to follow the readme and have a working validation example
Environment

OS:  ubuntu 20.04
Device:   Linux desktiop
Version:  2.2.1
UI toolkit: Avalonia

https://github.com/reactiveui/ReactiveUI.Validation/blob/9146f19e26b7b0595bf0355dd23e1c7d9f7c3663/src/ReactiveUI.Validation/Extensions/ValidatableViewModelExtensions.cs#L35

It exists as a extension method so make sure you include the correct namespaces

Oh, thanks.
The problem with extension methods is that they look like normal methods and are completely undiscoverable, (ctrl . reactoring doesn't find it) So you have to just know that it's an extension method, and you have to just know what namespace it's in.
I think it would be helpful if the example in the readme example included the using statement. This would go a long way to helping with the on boarding experience for new users.
I would also suggest rethinking using extension methods like this as it will trip up a lot of new users.

Good idea in regards to the readme.
Extension methods are used pretty extensively throughout the entire ReactiveUI suite. Visual Studio 2022 has become a lot better at picking up when you should use an extension method these days.
Reason for the extension method it allows you to provide your own object types to validate against since not everyone will want to use the ReactiveValidationObject class.


Update crates.io version

Could you please update the crates.io version of this crate? Looks like it hasn't been updated in 3 years.

I see you took care of dependency updates. If you can help fixing the CI, so that we know it works, we'd be happy to publish an update!

That PR was actually for collision-rs; this is genmesh. I don't think I've contributed to this library, it's just a dev dependency of collision-rs.
For fixing the CI, I'm guessing we'll need to switch to GitHub actions; both this library and collision-rs are still using Travis, which probably won't work anymore. I've never used GitHub actions before so I'm not really sure where to start with that, though.

Ok, fair enough


feat: add onSelect, show focus of grid rows

Description
Add a new onSelect which calls function with this.selected
Changes

Testing

@anthony9187 - can you finish this up with some prettier colors for the row highlight 👍

@anthony9187 - This should all be working. LMK your thoughts. I have an idea to just export ElementNode in the future rather than having a duplicate interface which causes headaches. I also noticed there is another issue with the paths when we build...
types/interfaces.js isn't found - TS doesn't complain but when we build the TS definitions aren't found. I'll have another PR to fix that


New layout for the blueprint composer

This allows to:

add multiple visualisations, if we wish to. Will be added as tabs
customise palettes. Add/remove sections, they are on the left side
separate the palette from the configuration screen, less confusing for users
hide both the palette and spec editor for showing off the blueprint fullscreen

Here is how it looks (Sorry, GitHub does not support video upload in comments)
https://drive.google.com/file/d/1-6b-q6K4mxy3-HSSmRqDLamkVgTliCdZ/view?usp=sharing

and it works great.  huge improvement!
one thing, the palette looks odd now not filling the vertical space at left.  can we set it up to do jquery-style math e.g. set the number of items to be Math.max(16, 4 * ((int)paletteAvailableItems.height / 32)) ?
apart from that, and comments above, good to merge.  (and the palette filling could be pushed to another PR if you're pressed for time.)

@ahgittin Are you talking about the action palette (as in where the items are displayed) or the toolbar on the left to switch between palette sections?
The former actually takes all the vertical space, but as we display only 26 items, it might not look like that. The latter would feel odd IMO if we were to even out the sections, as it has only icons there. Sidebar menus don't tend to do this even though they don't take all vertical space. Do you have any example app that do this?
I'm happy to discuss this point here but you probably right, it can be addressed within another PR.

the action palette.  it's the limit of 26 (or 24?) that should be replaced by the formula noted above IMO.  i don't know any paginated view that displays fewer items per page than space allows, i think pretty clear that's weird and suboptimal.

@ahgittin This PR does change the behaviour for the catalog-selector, it was already doing this before my change. Agree it's not optimal but it get really complicated to check for the actual space available in Javascript, because it depends of the actual screen size, as well as each item size (defined in CSS)
You didn't see this before because the palette was built with multiple accordions, making it bigger than the screen height in almost every occasion

yes, that's obvious :) -- my point is that this behaviour which was reasonable is now strange and i'd say a defect, and requires some ingenuity to fix.  but can do as another PR.
so two minor changes.  i'll make them and merge.

scratch the btn-outlline suggestion -- it's called btn-ouline [sic] everywhere.  so one minor change (required fields).  merging with that.


Add support for reading from HAR files

Deserializer for HAR files.  A serializer would require information the Request class doesn't contain (like timing data), and would be intrusive to add at this point.

@sirpengi ping.

This has been inactive for too long


Parameter can't be NULL

It is possible to pass NULL to query if it is written straight in to query, but if it is passed through parameter it doesn't work.
Maybe a empty string could indicate that parameter is NULL? Atm empty string gives compile time time warning "Parameter 'PARAM' must have its value set". "Parameter 'PARAM' must have its value set", so that would not break anything.  Or just convert string "NULL" to NULL.

NULL can be passed by settings the parameter to DBNull.Value .

Yeah, C# null to DBNull.Value conversion sounds best to me

Fixed issue by creating parameter.Value check and converting it to DBNull.Value if null. #7


[misc] Repo clean up

Current repo cloning size is 600+ mbs

Goal: Clear tree history to current latest commit and remove all garbage maps that were once within the repo.

Not really necessary anymore because anyone who knows how to clone can clearly see the depth command in README.


If you tap the drawer as it's opening or closing, it stops and doesn't settle open or closed.

Stocks:

Slow down animations from the popup menu.
Open drawer.
As the drawer opens, tap the radio buttons.

Drawer stays half-open.

cc @abarth who was last in this code

The problem is that we stop the drawer in PointerDown and settle it in DragEnd.  If we lose in the gesture arena, we won't settle.

So we need a DragDown/DragCancel pair or some such, similar to TapDown/TapCancel?

Exactly.


Amanda rp patch 1

Added amanda.rbind.io blog. @Athanasiamo

Thank you for adding your blog to the list and for making free and open R content 😊 🥳 🎉


libs/libc:Openlibm adds exp10 and exp10f function implementations

Note: Please adhere to Contributing Guidelines.
Summary
Update this section with information on why change is necessary,
what it exactly does and how, if new feature shows up, provide
references (dependencies, similar problems and solutions), etc.
Openlibm adds exp10 and exp10f function implementations
Impact
Update this section, where applicable, on how change affects users,
build process, hardware, documentation, security, compatibility, etc.
no impact
Testing
Update this section with details on how did you verify the change,
what Host was used for build (OS, CPU, compiler, ..), what Target was
used for verification (arch, board:config, ..), etc. Providing build
and runtime logs from before and after change is highly appreciated.
ostest

[Experimental Bot, please feedback here]
The PR summary is missing crucial information like:

Reason for change: Is it a bug fix, optimization, or a new feature?  This is essential for reviewers.
Functional change description: Simply stating "Openlibm adds exp10 and exp10f function implementations" is insufficient. Explain what these functions do and how they are implemented. Mention if any algorithms or data structures were used.
References: Are there any related issues in the NuttX or NuttX Apps repositories? Linking them provides context.

The impact section is overly brief. While "no impact" might be true for some aspects, you should consider and explicitly address:

User impact:  Will users need to change their code or configuration? Even if the answer is no, state it explicitly.
Documentation impact: Does this change require documentation updates? If so, have you updated the documentation?

The testing section lacks detail:

Host details: Specify the OS, CPU architecture, and compiler version used for building.
Target details:  Provide information about the target architecture, board, and configuration used for testing.
Testing logs: Instead of just "ostest", include relevant snippets of logs from before and after the change. This helps demonstrate the change's effect.

In conclusion, this PR does not meet the NuttX requirements in its current form.  You need to provide more context and details in the Summary, Impact, and Testing sections.  Refer to the contributing guidelines for specific examples and formatting suggestions.


v7.0.0 missing core-js definition file

When using ag-grid-ng2 version 7.0.0, we are seeing the following error:
Cannot find type definition file for 'core-js'
We have tried installing the core-js typescript definitions as a workaround, but this does not resolve the issue.

I have the same problem. It happens in the file agGridColumn since it's referencing core-js with
///
Error:
node_modules/ag-grid-ng2/lib/agGridColumn.d.ts:1:0
Cannot find type definition file for 'core-js'.

I can confirm removing the line that @scic mentions does get rid of webpack compilation errors. However, I then run into issues at run time. In particular, I receive the following error:
No provider for Ng2FrameworkFactory!

I'll take a look at the core-js issue today
@dylabar With regards tot he no provider issue, can you please supply your module definition?

7.0.1 released to fix the typing issue - let me know if its still a problem for you
thanks

Thanks @seanlandsman. This fixes the issue for me.


Typed Mesh vbo data

In the compilation step of the typed mesh, make sure that the data is cleared from the CPU after compilation. Also reduce copy by using references.

Didn't know about this trick :)
Thanks @hjanetzek!

Yup, I just read about it here: ... http://www.gotw.ca/gotw/054.htm. Thanks


ES5048 export limit settings with <IP_ADDRESS>

After updating to the latest version, <IP_ADDRESS>, I noticed the setting for export power limit had changed to % (from an amount in W), as my automations were throwing up a bunch of errors. I converted all my W values to % of 5000 (I have 5048D_ES). Should be right?
The slider for Export power limit can now only go up to 100. Ok...!
However... the inverter now behaves as if it is getting sent an export limit of 0-100W ... not percent... :O so even at 100% set in HA via the slider or automation, it only exports 50-100W (it tends to undershoot the export limit by a little).
Not sure what the problem there is, also not mentioned in the changelog? I rolled back to .16 and everything is OK again (back to W, not %). I have not tried rebooting the inverter or anything, but anyone else seen this bug?
thx

I have exactly the same problem: export limits in automations in my case switched between 50W (almost no export)  and 10000W (full export / no limit), all my  automations failed. This because from version <IP_ADDRESS> on, percentage was used as export limit instead of watts. When I tested this, I set my export limit at 100% in HA but it shows 100W export limit in the goodwe app, so this is not implemented correctly.
I also had to roll back to v<IP_ADDRESS>
I'm not able to fix this myself but if someone needs testing a fix, let me know!
Goodwe inverter ES5048
HA 2024.4.3

good to see its not just me :) on the plus side, <IP_ADDRESS> was the first version where the Eco mode SOC actually worked for me (previously had no effect), so thats a big improvment... the export issue is a bit of a problem tho heh.

Sorry guys, something must went wrong there.
The % vs W is there for ages (the DT family is using %).
Please revert to <IP_ADDRESS> until I figure out what went wrong ...

Fixed in v<IP_ADDRESS>


Feature request: When a user initially clicks on the searchbar, the autocomplete displays all possible options.

For scenarios where you don't have that many options it's actually useful to be able to see the different options before you input, so you know the options that are hopefully going to return some results.
I believe that right now this if check:
https://github.com/kadoshms/ionic2-autocomplete/blob/master/src/autocomplete.component.ts#L77
Would prevent that because the keyword is empty on initial click.
Thoughts on adding this kind of feature? Most likely behind some option flag?

Yes, why not, I can totally add this feature soon.

Added (4884ce0da0174047beb15f20a16861b023305bad)


proxy support

$status = $client->post('statuses/update', array('status' => 'Proxy Tweet.'),'https://111.222.333.444:8080');
Proxy Not Supporting .. :(

I'm sorry, but there are no TwistOAuth-style configurations anymore. In Cowitter, it is done with
$client = new ([...], [CURLOPT_PROXY => 'https://111.222.333.444:8080']);

or
$client = new ([...]);
$client = $client->withOptions([CURLOPT_PROXY => 'https://111.222.333.444:8080']);


feature(loki): implement deep clone as default clone option

remove file utils

PR Checklist
Please check if your PR fulfills the following requirements:

[ ] The commit message follows our guidelines: https://github.com/LokiJS-Forge/LokiJS2/blob/master/CONTRIBUTING.md#commit
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
[ ] Yes
[ ] No

Other information

Coverage decreased (-0.02%) to 91.975% when pulling cd4e09b64104a3603b83d9926df2c974db77abf2 on deep_copy into dde34edacdbaf643a56d016147326e6a51e98cc7 on master.


I want to add Java resources under language section and we can add even more languages

Description
THere are currently 4 languages in this section, so I am willing to add the section of Java as well as Nodejs, so it will be even more helpful if all language resources are in one place, and that is the only aim of LINKSHUB.  So, please Assign this to me! @rupali-codes
Screenshots
No response
Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I am willing to work on this issue (optional)
[X] I am a GSSoC'23 contributor

Okay!

Okay!

Sure

Thank you!

Done with this addition of java resouces and created the PR for the same with #880


Update README.md

Hi Zening, thank you for the PR. We are in the process of migrating all content (examples, documentation) to NL4DV's webpage for better maintainability.
Since this PR is no longer applicable, I am closing it. Feel free to raise new ones as and when you find issues / have a feature request, etc. More guidelines on hows and whens of those are coming soon. :)

Awesome! Thanks for pointing me to the new website! Looking cool!


New Outputs!

This isn't really an issue as much as an output question:  I just updated to the newest version of rosella (hadn't done so in a bit) and was excited to see a bunch of new outputs I didn't have previously!  These include:
rosella_refined_0_"number"
rosella_refined_0_single_contig_refined_0_"number"
rosella_refined_0_unbinned
rosella_bin_small_unbinned
rosella_bin_unbinned
Most of them are pretty obvious as to what they are - I would think rosella_refined_0_unbinned would have unbinned contigs above a certain threshold, then "small_unbinned" would contain contigs below that threshold.  I also would hypothesize that "single_contig_refined" contains maybe very large contigs that didn't have many otherwise clusters?  But are clustered together? (I realize it says "single contig" but when I open the files they seem to contain at least 3 very large contigs).  I'm not entirely sure what the "refined_0_"number"" bins are though, are these refined versions of the original output bins?  I ran recover but is the program also running refine?
Any clarification would be greatly appreciated, I'm excited for the extra bit of data!

Hello @aljazdzy,
Apologies for delayed response here, I've been on break.
I'll add some documentation in future to clarify these outputs, but yes your deductions are all correct.
The refined_ bins are normal output from rosella, they were just produced from putative bins (that aren't included in the final output) during the initial round of refinement that rosella performs. They have the "refined_" tag just to show that they were produced from the second step and not the first.
I am kind of confused about that bin called "single_contig" that has 3 contigs in it, when reviewing the code that shouldn't necessarily happen. Would you be able to provide some additional information about it?
Additionally, in general were the bins of similar quality to previous rosella runs? This update is a fairly large refactor to address some speed issues but I'm working on this in my spare time, so I just want to make sure I haven't missed any bugs.
Cheers,
Rhys

No issues, I apologize for my delay as well!  Yes when I run those contigs through checkm2 I get output that looks like this:
rosella_refined_0_single_contig_refined_0_1	93.4	43.98	Gradient Boost (General Model)	11	0.89	562115<PHONE_NUMBER>228145	3648733	0.47	3752	None

rosella_refined_0_single_contig_refined_0_2	68.71	8.97	Gradient Boost (General Model)	11	0.903	712182<PHONE_NUMBER>015572	2688388	0.52	2633	None

rosella_refined_0_single_contig_refined_0_3	44.11	3.47	Gradient Boost (General Model)	11	0.868	298476<PHONE_NUMBER>806746	1498363	0.45	1423	None

rosella_refined_0_single_contig_refined_0_4	28.29	1.04	Neural Network (Specific Model)	11	0.916	281267<PHONE_NUMBER>5242165	772218	0.44	702	None

rosella_refined_0_single_contig_refined_0_5	99.99	7.88	Neural Network (Specific Model)	11	0.886	2946550<PHONE_NUMBER>48513	3206005	0.47	3127	None

rosella_refined_0_single_contig_refined_0_6	17.88	0.17	Neural Network (Specific Model)	11	0.89	254714<PHONE_NUMBER>4945294	499452	0.43	457	None

rosella_refined_0_single_contig_refined_0_7	11.84	0.03	Neural Network (Specific Model)	11	0.844	298451<PHONE_NUMBER>630037	298451	0.48	273	None
``

So some of them are quite decent but others have some significant issues.  I would like to say the bins were in general of higher quality that previous runs, but I'll admit I don't have a quantitative analysis on that quite yet.  My bins in general haven't been of great quality but that's more-to-do with my data.  I'm hoping to change that soon though.


Implement AccessControl on FileInfo

Turns out that MockFileInfo.GetAccessControl/SetAccessControl just need to be proxied through to MockFile.GetAccessControl/SetAccessControl, as already done with MockDirectoryInfo and MockDirectory. So this resolves #330
I also took the liberty of adding a unit test for the proxied access control methods of DirectoryInfo, because  those were missing code coverage.

Couple things. Thanks @hangy !

Thanks!


arrayfire-js security issue

@unbornchikken
Can you look into fixing this https://nvd.nist.gov/vuln/detail/CVE-2016-10598 ?

I don't get it. There is nothing to get donwloaded by ArrayFire.js itself. NPM downloads the module from the registry during the installation but it's part of the very standard Node.js module infrastructure. For the build process CMake.js downloads headers and lib files but it's been using https urls only, please refer to this file: https://github.com/cmake-js/cmake-js/blob/master/lib/es6/runtimePaths.js.

@unbornchikken looks like the CVE is from 2016? but it only got published recently. I am not sure what is happening :-/

Looks like this is the original report: https://nodesecurity.io/advisories/192


Minify CSS

Would be good if the compiled css would be minified or at least have the comments stripped/use scss only comments. That way the site is more responsive...

@rogerbarton this is a feature of Jekyll itself, not this theme.  See the docs for how to setup output style in your _config.yml file.

ah thanks that was a quick fix, didn't know jekyll could do that


hello

dear we want to create a web site just for test , but we want to replace PayPall with another payment system for example cash delivery , please let us know > how to change it and the codes .
best regards .

Hello
Were you able to fix this ? Am doing the same thing.
Thank you


Not all trait items implemented, missing: Response, Error, Future [E0046]

Not all trait items implemented, missing: Response, Error, Future [E0046]

@fmnisme  You can describe it carefully, read it many times do not know what problem is being described...:slightly_frowning_face:

I guess you mean something related to Volo ? Can you be more specific or at least add the corresponding link to the doc.


⚠ GitLab Server has degraded performance

In 4146adf, GitLab Server (https://gitlab01.its-telekom.eu) experienced degraded performance:

HTTP code: 200
Response time: 11553 ms

Resolved: GitLab Server performance has improved in 5eee763.


[CELEBORN-856] Add mapreduce integration test

What changes were proposed in this pull request?
Why are the changes needed?
Does this PR introduce any user-facing change?
How was this patch tested?

ping @FMX please take a look at this PR

LGTM overall. I'll merge this PR to the main after minor improvements are applied and UTs are OK.

@cxzl25 Hi, what's your JIRA ID?

The "dzcxzl" might be your JIRA ID. So I just assign this JIRA to this user.

Thank you all for your help!


Support CTRL+N/CTRL+P keybindings in fuzzy finder

Common keybindings for "next" (CTRL+N) and "previous" (CTRL+P) are helpful alternatives to using the arrow keys.
BTW, I'm loving tab so far!

Sure!  This would be simple to add and would be a nice improvement.

@austinjones I would like to take a stab at this one.  Any guidance you can share would be awesome!


Added Serenity Index and modified UPI calc

Hi I've added to the metrics the Serenity index from this papar:
https://www.keyquant.com/Download/GetFile?Filename=\Publications\KeyQuant_WhitePaper_APT_Part1.pdf also in attachment.
KeyQuant_WhitePaper_APT_Part1.pdf
I've also modified the UPI calculation, invoking the ulcer index function, removing copied code and calculating the drawdown on prices and not on daily returns
Ciao,
Giuseppe

Did you also code the Smart Sharpe Ratio maybe?
See here:
https://www.keyquant.com/Download/GetFile?Filename=%5CPublications%5CKeyQuant_WhitePaper_APT_Part2.pdf

@cryptocoinserver - added on 0.0.38

Awesome! You are incredible 💪🏻


Brew bundle hangs - nothing happens

Hello,
I got a new Macbook Pro, installed homebrew and added this tap. However, when I run brew bundle in the directory which contains my Brewfile nothing happens it just hangs.
How can I diagnose this?
Thanks

Nvm, turns out I just needed a -v. Sorry abou thtat.


sdss_id list from search string

Gets a list of sdss_ids from a search string, and with added pagination. Can help with the Vue server-side-table component.

closing this in favor of https://github.com/sdss/valis/pull/17


[OSS-ONLY] Finalize BABEL_3_8_STABLE

This commit includes the following changes:

Disable TDS fault injection flag and tests
Update DEFAULT_BRANCH to point to stable branch
Update workflows to point to stable branch

Signed-off-by: Sharu Goel<EMAIL_ADDRESS>Check List

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is under the terms of the Apache 2.0 and PostgreSQL licenses, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>6
Details

0 of 0   changed or added relevant lines in 0 files are covered.
214 unchanged lines in 3 files lost coverage.
Overall coverage decreased (-0.4%) to 73.346%

Files with Coverage Reduction
New Missed Lines
%

contrib/babelfishpg_tds/src/backend/tds/tdsutils.c
1
70.26%

contrib/babelfishpg_tds/src/backend/fault_injection/fault_injection_tests.c
62
0.0%

contrib/babelfishpg_tds/src/backend/fault_injection/fault_injection.c
151
1.79%

Totals

Change from base Build<PHONE_NUMBER>5:
-0.4%

Covered Lines:
42820

Relevant Lines:
58381

💛  - Coveralls


[proposal] Call res.serverError if a controller function returns a rejected Promise

At the moment, if a controller function throws a synchronous error, res.serverError is called automatically. This is useful because it ensures that a response always gets sent back to the client, and it removes the need for boilerplate try-catch statements.
However, this functionality does not currently exist for asynchronous controller functions. As a result, it's possible for an async function to silently throw an error, without ever sending a response.
Here's an example of a controller file to demonstrate why this can be an issue:
// SomeController.js

exports.function1 = function (req, res) {
  // This automatically calls res.serverError under the hood
  throw 'something bad happened.';
};

exports.function2 = async function (req, res) {
  /* At the moment, this does not automatically call res.serverError.
  Instead, the error gets swallowed and no response is sent.
  A workaround is to wrap the entire function in a try-catch, but that leads to a lot of boilerplate code.
  (This example uses ES7 async functions, but the issue applies to any code that runs asynchronously.) */
  throw 'something bad happened asynchronously.';
};

To resolve this inconsistency, I propose that controller functions should be able to return a Promise. If that Promise ends up rejecting, res.serverError is automatically called with the rejection reason, as if an error was thrown synchronously. If this proposal were implemented, function1 and function2 above would both result in a call to res.serverError.
Mocha allows a similar type of thing, e.g.
it('does some asynchronous test', function () {
  // The test suite succeeds if somePromise fulfills, and fails if somePromise rejects
  return somePromise;
});

I think this behavior would get rid of boilerplate controller code and help prevent silent errors, with no significant downsides.

Not to rush the process if this is still being reviewed, but would this proposal be accepted if I implemented it and made a PR? I'd like to try and implement this if the proposal is a good idea, but I'd rather not waste time implementing it if the proposal itself is rejected.

Hi @not-an-aardvark, thanks for following up.  The basic rule here is, "if it's going to be a significant amount of work, and you haven't already started, then don't write any code until the proposal is merged into the backlog."  My instincts tell me that the amount of changes to core here would be significant.  Am I wrong on that?  Can this be done additively, without major changes to existing functionality?

@not-an-aardvark This is an interesting feature that is a valid approach to writing actions, particularly for those that are promise-inclined.  And while it could be done in an additive way, I'm hesitant-- mainly because of my personal experience with the request/response lifecycle in other frameworks.  I remember getting pretty confused in Grails with when the response was actually going to be sent- and since Node is asynchronous, I think that relying on a return value in core would be potentially confusing for many users, and could result in unexpected behavior when promises are inadvertently returned.
That said, this could definitely be implemented in a separate package, as an override for the controllers hook (e.g. sails-hook-controllers-promises).  And as long as compatibility for standard usage was maintained, blueprints and other core features would continue to work.  If there's interest in working on this, I'll spend some time making an example.

Thanks for the replies. I see what you mean with regard to how mixing callbacks and returned Promises can get confusing, so I'll close this PR then.

For anyone viewing this in the future, here's a workaround I made that implements this functionality:
var Promise = require('bluebird');

// (this function is the same for every controller/policy, so it could be used as a service)
var funcMapper = func => (req, res, next) => Promise.method(func)(req, res).asCallback(next);

module.exports = _.mapValues({
  function1 (req, res) {
    doSomeLogic();
  },
  async function2 (req, res) {
    doSomeMoreLogic();
  }
}, funcMapper);

@not-an-aardvark, @mikermcneil
How about this workaround?
It is a hook:
/**
 * Handles async function errors
 * if they apper in controller`s actions
 *
 */
module.exports = function(sails) {
  return {
    initialize(cb) {

      var controllers = sails.hooks.controllers;
      controllers.middleware = _.mapValues(controllers.middleware, controller => {
        return _.mapValues(controller, action => {
          return async function(req, res) {
            try {
              await action.apply(this, arguments);
            }
            catch (err) {
              return res.serverError(err);
            }
          };
        });
      });

      return cb();
    },
  };
};


ensemble_runner.RegionalInput and more use of Region

This PR
This PR is part of https://trello.com/c/nYgDEl3M/385-ability-to-query-raw-data-by-msa

Adds ensemble_runner.RegionalInput, wrapping access to data used by the ensemble_runner code
Moves Region further up the stack in pyseir/cli.py so we're closer to using it between stages of the pipeline. In this process, removed some _run... methods that added a list region parameter where the call in the main pipeline has only one region.
Adds some more constructors making it easier to make RegionalInput objects from an existing Region instead of FIPS
Deletes unused generate_empirical_distancing_policy_by_state
Adds an exception when RunMode.DEFAULT is used, because it seems to be not used and isn't tested.

No test changes? :P
but looks good to me!

Then obviously I didn't break anything :-)


Disabling reader mode parsing (and Firefox Screenshots?)

Two options that I have a habit of tweaking on my installations of Firefox have been the following:
reader.parse-on-load.enabled = false
&
extensions.screenshots.disabled = true
I believe that disabling the reader more page parsing would be beneficial for performance purposes. Additionally, assuming that Screenshots is not deprecated (I couldn't find any up-to-date documentation on the subject), also disabling that feature should free up a miniscule amount of resources in exchange for disabling a feature that likely sees very little usage. (You can also still take screenshots from the developer console with :screenshot).

Surely the reader parsing would add some delay to page loading?
I thought so with the screenshots feature, though.
How do you disable reader entirely?

Did you CTRL+F in Fast/Secure/Pesky and search for reader.parse-on-load.enabled?
https://github.com/yokoffing/Betterfox/blob/099fe168bac91b67e493a97b26f9fd4103be1a78/Peskyfox.js#L454-L457
Line 456 should say "disable", but same difference. (I corrected the word in the next update.)


feat: Allow setting the engine and compiler and the configuration

Closes #104

bors try

bors try

@Hywan for now on the engines/compilers, I only added the method for the ones I got working with the standard Wasmer buid.
I think it could be usefull to add something directly in Wasmer, yes, like a feature managed panic on not-available engines and compilers.

@Hywan for now on the engines/compilers, I only added the method for the ones I got working with the standard Wasmer buid.
I think it could be usefull to add something directly in Wasmer, yes, like a feature managed panic on not-available engines and compilers.

bors r+

bors r+


Image disappear on Live Update

I just started to look at Fabulous and tested Live Update with Android and its awesome, but I discovered a problem with Images.  The following image from an embedded resource will disappear on reload.
  View.Image(source=ImageSource.FromResource("SqueakyLiveImageProblem.iamatest.jpg"))

I recreated it in the Squeaky template app. Diff here -> magnushammar/SqueakyLiveImageProblem

Thanks for the report. We'll take a look.
But this wouldn't surprise me it's a limitation of Live Update.
The interpreter recompiles on the fly the source code, not the whole project so the image might be ignored in the process.

Without knowing the bigger picture, I see this more like a feature request than a bug. It would be great to get the Live Debugger to work with embedded resources but...

The Library works just fine.
FromUrl works in the debugger
FromFile works in the debugger

LiveUpdate has been abandoned in v2. Might come back in the future


sharedStorage not available in worklet JS

I'm trying to put together a toy example that sets some ID in Shared Storage, then uses the selectURL() function to choose a url based on that ID.  This is pretty much the AB-test use-case here.

I can see that my (key, value) gets set into Shared Storage from the Chrome dev tools
From my server logs, the worklet JS code gets fetched

However, I get the following error in the console logs:
TypeError: Cannot read properties of undefined (reading 'get')

This happens inside my worklet's run(urls, data) function where I simply follow the example and perform await this.sharedStorage.get(myKey).  Am I missing something here?  Any help would be greatly appreciated.  Thanks.

In an object method, this refers to the object rather than the global object. I think you want globalThis, or, you can use sharedStorage directly.

Thanks @xyaoinum, this fixes the problem.  I see that the docs are getting updated as we speak :)


Not getting Instance stopped time in aws_ec2_instance table to validate below mentioned use case

Is your feature request related to a problem? Please describe.
As per the AWS foundation security best practices
This control checks whether any EC2 instances have been stopped for more than the allowed number of days. An EC2 instance fails this check if it is stopped for longer than the maximum allowed time period, which by default is 30 days.
Stopped EC2 instances should be removed after a specified time period and the `allowedDays: 30`. But not getting any column storing the value when the instance got stopped.
Describe the solution you'd like
Would like to know if there is any column storing this stopped time for an ec2 instance.
Additional context
https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-fsbp-controls.html#ec2-4-remediation

@debabrat-git We have added a new column state_change_time, which will store the date and time when the instance is being stopped.
You can use the following query to get the instances have been stopped for more than allowed days (i.i. 30 days)
select
  instance_id,
  instance_state,
  launch_time,
  state_change_time
from
  aws_ec2_instance
where
  instance_state = 'stopped'
  and state_change_time <= (current_date - interval '30' day);