Duplicate Values being pushed

Hi ,
Suppose i have set and interval of 60 seconds , and i am collecting metrics for login . First 60 seconds user logs in , and entry is pushed . now next 60 seconds , user does not do anything , still the same entry is pushed . how can i avoid duplicates ?

can i use ResetMetricsValues method to fix this ?

Hi!
Can you add more details: how you metric configured, how and what are you observe metric value?

I have solved the issue by using CounterValueSource , and resetting the value while reading it .


Dependency has GPL License

Our licence check failed after upgrading from coursier 2.0.0-RC3-4 to 2.0.0-RC6-15.
There is a problem with the following dependency:
def windowsAnsi = "io.github.alexarchambault.windows-ansi" % "windows-ansi" % "0.0.3"
The license of the referenced project is GNU GPL version 2.

This originates from a file in windows-ansi, that is adapted from a GPL2-licensed source. That file is only required when creating the GraalVM native-image of the coursier CLI (or when users of coursier create a native-image using some coursier-cache features).
This file (and the whole of windows-ansi actually) is subject to the class path exception though.

If it's really a problem, this file could be spinned out in a separate library, that would only be pulled when creating the native launcher. That way, it wouldn't appear in the coursier class path by default, and we would have no GPL2-licensed JAR in it.


Fix parsing of quoted identifiers in SHOW CREATE TABLE queries

Fixes #733

@kuba-- in this case SHOW CREATE TABLE ´a.b´ should not be split. Anything inside backticks is an identifier and can't be split. The only reason to have them separated would be a.b or a.b.

if it's a case (that it should not be split) we can just add a dot ('.'), here:
https://github.com/src-d/go-mysql-server/blob/master/sql/parse/util.go#L136
and problem looks as solved.

@kuba-- nope, because when the identifier is not quoted, the dot is not a valid rune for an identifier.


Change icon or text color

I using the widget with texts, don't used icon, but how I can change my selected text color? Or check current index selected?
I did not find this possibility in the documentation.
If I just set the color in my AppText component, your prop will change the text color of the selected and unselected index and I don't want that, I just need to change the color of the currently selected index
My source code:

  String currentFilterValue = '';
  List<String> listValues = ['Meus', 'Todos'];

  @override
  void initState() {
    super.initState();
    currentFilterValue = widget.isAllContactsFilter ? 'Todos' : 'Meus';
  }

  @override
  Widget build(BuildContext context) {
    return AnimatedToggleSwitch<String>.size(
      textDirection: TextDirection.rtl,
      current: currentFilterValue,
      values: listValues,
      borderRadius: BorderRadius.circular(6),
      indicatorSize: const Size.fromWidth(35),
      height: 30,
      customIconBuilder: (context, local, global) {
        return Row(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            AppText(
              text: local.value,
              fontSize: 10,
              fontWeight: FontWeight.w700,
            ),
          ],
        );
      },
      indicatorColor: Colors.white,
      colorBuilder: (i) {
        return AppColors.mainRed;
      },
      borderColor: Colors.transparent,
      onChanged: (i) {
        setState(() => currentFilterValue = i);
        widget.onChangeCallback(i);
      },
    );
  }

My toggle component:

I am sorry for the poor documentation. You can't find everything you need so quickly. Probably I should expand the README. Is the following working for you?
AppText(
    text: local.value,
    fontSize: 10,
    fontWeight: FontWeight.w700,
    color: Color.lerp(<standardColor>, <selectedColor>, local.animationValue),
),

If you want to control the colors completely, you have to disable the animated opacity, you can use iconOpacity: 1.

Sorry for my inattention, maybe I made a mistake due to the naming and my own use of the plugin :sweat_smile:
Working with iconOpacity and Color.lerp works fine for me.
The documentation is very good for work with icons :+1:
Thanks for the plugin and your answer :smiley: :wave:

@G-Luz That was not your fault. The parameters are relatively tricky. 😅
There is nothing wrong with using text with the Switch. I do that myself as well. But you have to give some name to the parameters and I have chosen icon. 🤷
No problem, I'm glad I could help.


feat(nexus): make ANA reporting configurable

Leave ANA reporting disabled when publishing a Nexus over NVMf unless
the environment variable NEXUS_NVMF_ANA_ENABLE is defined when
creating a Nexus.
Include a chore to switch away from deprecated spdk_nvmf functions.
Fixes CAS-789, CAS-791.

bors try

bors merge


[omnibus] pin and bump for openresty

see here

I still think we should get this sorted out. However, the code in this branch probably isn't the right way. So, the "Don't merge" is accurate. I propose we still keep it open for tracking purposes...


echo cancellation when running locally - the output audio is looping back into the input

Running on a Mac using the hosted version. It seems to get very confused by its own voice coming out of the speaker and being picked up by the microphone.
Using headphones seems to work much better.
https://user-images.githubusercontent.com/706944/228870594-8f1266a3-7ccf-428c-8d55-2d80b74f4bbc.mp4

This is an issue for me also, the mic is picking up the assistants voice, which is then being transcribed and replied to, it ens up having a very awkward conversation with it self.

Is there a way we can temporarily pause the input stream when the output stream is being played?

I think this is a hard problem. Amazon has a few articles on the topic. [1]
Two ideas:

Have a "wake word". For example, Google's "Hey Google".
Have the system learn your voice so it only responds to your voice

[1] https://www.amazon.science/tag/echo-cancellation

Headphones helped me with the choppy audio too.
Interested in how to handle simultaneous conversation. I want to interrupt the assistant as it's talking.

This is definitely a challenging implementation detail but I think it might be worth emphasizing this early on in the Quickstart documentation. It's not something that I could've intuitively troubleshot without coming to the Github Issues for the repo.

good idea @kevcmk, just added this to the docs: https://docs.vocode.dev/python-quickstart#a-note-on-echo-cancellation
I'll leave this issue open as we brainstorm more options here.

in the new version, you can have the transcriber stop listening while the agent is speaking. here's a code snippet:
async def main():
    (
        microphone_input,
        speaker_output,
    ) = create_streaming_microphone_input_and_speaker_output(
        use_default_devices=False, use_blocking_speaker_output=False
    )

    conversation = StreamingConversation(
        output_device=speaker_output,
        transcriber=DeepgramTranscriber(
            DeepgramTranscriberConfig.from_input_device(
                microphone_input,
                endpointing_config=PunctuationEndpointingConfig(),
                mute_during_speech=True,
            )
        ),
        agent=ChatGPTAgent(
            ChatGPTAgentConfig(
                initial_message=BaseMessage(text="What up"),
                prompt_preamble="""The AI is having a pleasant conversation about life""",
            )
        ),
        synthesizer=AzureSynthesizer(
            AzureSynthesizerConfig.from_output_device(speaker_output)
        ),
        logger=logger,
    )
    await conversation.start()
    print("Conversation started, press Ctrl+C to end")
    signal.signal(signal.SIGINT, lambda _0, _1: conversation.terminate())
    while conversation.is_active():
        chunk = microphone_input.get_audio()
        if chunk:
            conversation.receive_audio(chunk)
        await asyncio.sleep(0)

if __name__ == "__main__":
    asyncio.run(main())

another fix for this! If you install Krisp.AI[0] (which is already built into some meeting platforms like Discord), you can select the krisp virtual microphone and speaker on startup and feedback issue is solved[1]!
[0] https://krisp.ai/
[1] at reasonable levels of volume - if you blast it, the feedback won't work

Fix proposed by @ajar98 here: https://github.com/vocodedev/vocode-python/issues/16#issuecomment-1555295493 did not work for me so I also needed to change use_blocking_speaker_output flag from False to True and it started working correctly for my application.


Workfiles tool: Artists can see users

Changelog Description
Fixed implementation of users model in workfiles tool.
Additional info
Only admin and manager users can see all users, other users can see only other users assigned to same projects. It is necessary to add project name filtering to users GraphQl, which requires fix in ayon-python-api, for now the code from ayon api was copied next to users model.
Testing notes:

Create artist user and assign him to a project.
Start AYON launcher as the user.
Use host integration of your choice and open workfiles tool.
It should not crash, and should show user full name.

I can confirm this now works, thank you @iLLiCiTiT !


Question: How can I make the dropdown stay fixed where it popped up

Sorry - didn't find where to put a question. Please let me know so I won't create it in the issue section next time.

I want the popup to stay where it showed first instead of sliding as I type each character. Possible? So the end effect of this will be as the user is typing a word the dropdown is at the start of the word a little below. It can expand but not move its top/left.

Thanks!

Sorry, it is not supported.


[Feature] Number of players online

Description
I'd like to see a number of players online in Minecraft server for each instance.
Reason
It would be a nice feature to know how many players are online at the moment.

Duplicate of #1228

This is already in MCSM. You have to set the Minecraft Player Query to the port that your server runs on and it will show you the players of this instance

This is already in MCSManager


Selected service automatically moves when there are multiple services with the same config

Describe the bug
When there are multiple containers with the same config in docker-compose.yml like below, the selected service in the "Services" side panel automatically moves on every refresh, even though the user does not touch anything.
version: "3.9"
services:
  service-a:
    image: "nginx:latest"
  service-b:
    image: "nginx:latest"
  service-c:
    image: "nginx:latest"

To Reproduce
Steps to reproduce the behavior:

run docker-compose up -d with the docker-compose.yml above.
run lazydocker
wait for a few seconds, and see error

Expected behaviour
The selected service should be fixed when the user does not touch.
Screenshots
Following is the lazydocker monitor when the docker-compose.yml file shown above is used.
Even though I don't touch anything, the selected service moves (service-c -> service-b -> service-a).
https://user-images.githubusercontent.com/6212292/202889551-1f78209b-128e-42fc-9cf9-a1858f985130.mov
Desktop (please complete the following information):

OS: MacOS 13.0.1
Lazydocker Version:  0.20.0

Additional context
I encountered this problem during the development of a microservice system with similar docker-compose.yml pattern.
I guess the cause of the problem is:

when the config of the container is the same, the generated service ID becomes the same.
Then, the logic to see if the selected service has moved judges the service has moved, and re-selects the item.

Thanks. Yes, I'll try!

Sweet, let me know if you run into any issues :)


Container App/Container App Environment outbound IP limitations

This issue is a: (mark with an x)

[ ] bug report -> please search issues before submitting
[x] documentation issue or request
[ ] regression (a behavior that used to work and stopped in a new release)

Issue description
The following has recently been added to the documentation describing networking for container apps.

Outbound public IP: Used as the "from" IP for outbound connections that leave the virtual network. These connections aren't routed down a VPN. Outbound IPs aren't guaranteed and may change over time. Using a NAT gateway or other proxy for outbound traffic from a Container App environment is only supported on the workload profile environment.

Quote from: https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/container-apps/networking.md?plain=1#L106
I need clarification here regarding exactly what this means. Does this mean that the outbound IP that the container app gets from the container app environment can change? Because right now, as far as I can tell, the outbound IP-address of a container app in a managed container environment is determined by one of the IP addresses that can be found in a separate resource group with a generated name.
The reason I ask is because in my use case I need to guarantee that the outbound IP addresses don't change because of whitelisting.

The outbound IP can change since there is no guarantee from the underlying infrastructure to have to same IP. The only way to guarantee it is to add a NAT gateway to your subnet or any other egress control appliance like Azure Firewall.
Note that this solution applies for Workload Profiles (Consumption + Dedicated) mode. You cannot use NAT gateway in Consumption only mode.

@torosent thank you.
So, this comment is not relevant anymore?
Because, at this moment, I see approx 30 outbound IP addresses for my ACA with ACA Environment using Workload Profiles and Consumption plan and custom VNET.
Another question. So, I can configure NAT Gateway if I use Consumption plan in Workload Profile?

Hello Did you guys find any solution for this ?, I need static outbound ip for my ACA as well


Missing class in previuos PR

I'm blocking this pull request because our copy/pasting of module code is out of control. @hreinking stick with local development on a topic branch for now, but let's not merge this.

This is a first commit; I'm planning to add more packages in the future and test the performance, without affecting the hypervisor role.


GEODE-7978: Improve tests for Redis Module SREM Command

Thank you for submitting a contribution to Apache Geode.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[ ] Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?

[ ] Has your PR been rebased against the latest commit within the target branch (typically develop)?

[ ] Is your initial contribution a single, squashed commit?

[ ] Does gradlew build run cleanly?

[ ] Have you written or updated unit tests to verify your changes?

[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?

Note:
Please ensure that once the PR is submitted, check Concourse for build issues and
submit an update to your PR as soon as possible. If you need help, please send an
email to<EMAIL_ADDRESS>

This PR fixes a prior breaking change that was caused by 2 separate commits merging at the same time. It has already been approved in https://github.com/apache/geode/pull/4937


typo: web/resource-manager/Microsoft.DomainRegistration

Succesfully -> Successfully
identifider -> identifier
availablility -> availability

Automation for azure-sdk-for-ruby

Automation for azure-sdk-for-python

Can one of the admins verify this patch?

Automation for azure-sdk-for-js

Automation for azure-sdk-for-go

Automation for azure-sdk-for-java


[Android] Running an app with debug scene when the device is locked cause a black screen on Android

Flutter runs with a black screen when the device is locked and the screen is off on Android. It's reproducible almost 100% on some OnePlus devices.
Searched for relevant issues showing that some apps do have the same behavior when the app is left in the background for a while. All these might be related.
Steps to Reproduce

flutter create test_example.
flutter run --verbose and make sure your device is locked and the screen is off.
Wait until you see the Syncing files to device... appeared, and hang it for a couple of seconds.
Unlock your devices.
App is a completely black screen.

To recover the normal behavior

Push the app to the background.
Pull it back from the background.

Verbose logs
I'll explain the behavior along with the log.
[  +10 ms] executing: /Volumes/T5/android-sdk/platform-tools/adb -s f8e67ce3 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true --ez verify-entry-points true --ez start-paused true com.example.flutter_test_app/com.example.flutter_test_app.MainActivity
[ +128 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.flutter_test_app/.MainActivity (has extras) }
[        ] Waiting for observatory port to be available...
[+1160 ms] Observatory URL on device: http://<IP_ADDRESS>:38541/F76tt4cIexk=/
[   +1 ms] executing: /Volumes/T5/android-sdk/platform-tools/adb -s f8e67ce3 forward tcp:0 tcp:38541
[  +18 ms] 64028
[        ] Forwarded host port 64028 to device port 38541 for Observatory
[  +10 ms] Caching compiled dill
[ +116 ms] Connecting to service protocol: http://<IP_ADDRESS>:64028/F76tt4cIexk=/
[  +32 ms] W/FlutterActivityAndFragmentDelegate( 9430): A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps.
[ +499 ms] Launching a Dart Developer Service (DDS) instance at http://<IP_ADDRESS>:0, connecting to VM service at http://<IP_ADDRESS>:64028/F76tt4cIexk=/.
[ +369 ms] DDS is listening at http://<IP_ADDRESS>:64031/5vM-8dHEa5Q=/.
[  +76 ms] Successfully connected to service protocol: http://<IP_ADDRESS>:64028/F76tt4cIexk=/
[ +204 ms] DevFS: Creating new filesystem on the device (null)
[  +83 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.flutter_test_app/code_cache/flutter_test_appITIYOQ/flutter_test_app/)
[   +2 ms] Updating assets
Debug service listening on ws://<IP_ADDRESS>:64031/5vM-8dHEa5Q=/ws
[  +67 ms] Manifest contained wildcard assets. Inserting missing file into build graph to force rerun. for more information see #56466.
Syncing files to device ONEPLUS A6010...
[   +8 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[        ] Processing bundle.
[        ] <- recompile package:testapp/main.dart 6d8be2ea-8af1-4012-9eb2-0d789c346a04
[        ] <- 6d8be2ea-8af1-4012-9eb2-0d789c346a04
[   +2 ms] Bundle processing done.
[  +90 ms] Updating files.
[        ] DevFS: Sync finished
[   +1 ms] Synced 0.0MB.
[   +2 ms] <- accept
[  +13 ms] Connected to _flutterView/0x70e0a65a70.

The phone is still locked, now let's unlock it.
[+43519 ms] D/PhoneWindow( 9430): setNavigationBarColor: 0
[  +15 ms] D/DecorView( 9430): onWindowFocusChangedFromViewRoot hasFocus: true, DecorView@960c24b[MainActivity]
[   +2 ms] D/ViewRootImpl[MainActivity]( 9430): windowFocusChanged hasFocus=true inTouchMode=true

The device is now unlocked and presented with a black screen.
[+11249 ms] D/ViewRootImpl[MainActivity]( 9430): windowFocusChanged hasFocus=false inTouchMode=true
[+2006 ms] D/PhoneWindow( 9430): setNavigationBarColor: 0
[   +4 ms] D/ActivityThread( 9430): pid:9430 tid:9430 doframe Callback
[  +14 ms] E/lutter_test_ap( 9430): Invalid ID 0x00000001.
[  +17 ms] D/DecorView( 9430): onWindowFocusChangedFromViewRoot hasFocus: true, DecorView@960c24b[MainActivity]
[   +1 ms] D/ViewRootImpl[MainActivity]( 9430): windowFocusChanged hasFocus=true inTouchMode=true

After pushing it into the background and pulling it back, a doframe Callback method seems to be called, then the app displayed correctly.
Environment
Device: OnePlus A6010 (OnePlus 6T)
System version: Android 11
[✓] Flutter (Channel master, 2.6.0-12.0.pre.976, on macOS 12.0.1 21A559 darwin-x64, locale zh-Hans-CN)
    • Flutter version 2.6.0-12.0.pre.976 at /Users/alex/Documents/flutter-master
    • Upstream repository https://github.com/AlexV525/flutter
    • Framework revision ca7b823d93 (66 minutes ago), 2021-12-09 02:54:08 -0500
    • Engine revision 716d1b0998
    • Dart version 2.16.0 (build 2.16.0-85.0.dev)
    • DevTools version 2.9.1
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Volumes/T5/android-sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /Volumes/T5/android-sdk
    • ANDROID_SDK_ROOT = /Volumes/T5/android-sdk
    • Java binary at: /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (build 11.0.11+9)
    • All Android licenses accepted.

[✓] Connected device (1 available)
    • ONEPLUS A6010 (mobile) • f8e67ce3                  • android-arm64  • Android 11 (API 30)

• No issues found!

Add in MainActivity. Flutter will use texture for rendering. It won't have this problem again. But if you reinstall the app, it may crash at the first startup.
override fun getBackgroundMode(): BackgroundMode {
      return if (intent.hasExtra("background_mode")) {
          BackgroundMode.valueOf(intent.getStringExtra("background_mode")!!)
      } else {
          BackgroundMode.transparent
      }
  }

But if you reinstall the app, it may crash at the first startup.

That doesn't sound like a valid solution...

But if you reinstall the app, it may crash at the first startup.

That doesn't sound like a valid solution...

It will crash only at the first startup, and after reinstalling the app. Weird...

Hi @AlexV525, Thanks for filing the issue. I see there is a similar issue describing this case  https://github.com/flutter/flutter/issues/93276.
Closing this issue as a duplicate, since the linked issue has been already prioritized.
If you disagree feel free to write in the comments and I will reopen it.
Thank you.

The same problem, the log has not been crawled, and the most found in Huawei mobile phones at present, please solve it

I can reproduce this issue 100% on my OnePlus 6T (Android 11, Hydrogen OS). I've made a screen record for this. From the recording, we can see the screen is totally black (or blank since my background is black) but it's actually responsive to the input. After I triggered a route push, everything works fine. Also, after discussing with @ColdPaleLight offline, this is not related to images loading.
(Once you see the black screen, skip to the 16 seconds of the video.)
https://user-images.githubusercontent.com/15884415/149314497-89fdc019-a083-4fa8-b4dc-7bce2393fedf.mp4
/cc @dnfield

FWIW, The other issue I linked above seems to show that the users are able to reproduce this issue on the Oneplus device.

FWIW, The other issue I linked above seems to show that the users are able to reproduce this issue on the Oneplus device. So they could be very much related and device specific.

Agreed in such high relavance, but I saw Dan said it should be easy to fix, which probably means that can be improved somewhere.

Once https://github.com/flutter/engine/pull/30590 lands can you check if it resolves this?

Once flutter/engine#30590 lands can you check if it resolves this?

I've checkout 9e9a728 with flutter/engine@f121c1fe and unfortunately, it still exists. /cc @ColdPaleLight

I've verified https://github.com/flutter/engine/pull/30897 solved this issue by updating the activity like this:
import android.view.View
import io.flutter.embedding.android.FlutterActivity

class MainActivity: FlutterActivity() {
    override fun onStart() {
        super.onStart()
        window.decorView.visibility = View.VISIBLE
    }

    override fun onStop() {
        window.decorView.visibility = View.GONE
        super.onStop()
    }
}

I've verified flutter/engine#30897 solved this issue by updating the activity like this:
import android.view.View
import io.flutter.embedding.android.FlutterActivity

class MainActivity: FlutterActivity() {
    override fun onStart() {
        super.onStart()
        window.decorView.visibility = View.VISIBLE
    }

    override fun onStop() {
        window.decorView.visibility = View.GONE
        super.onStop()
    }
}

have you try Huawei phone？ this issue still exists.  HUAWEI Mate40 Pro HarmonyOS

have you try Huawei phone？ this issue still exists. HUAWEI Mate40 Pro HarmonyOS

@fine1021 Is your case the same as the issue? Start the app when screen locked?

have you try Huawei phone？ this issue still exists. HUAWEI Mate40 Pro HarmonyOS

@fine1021 Is your case the same as the issue? Start the app when screen locked?

start app
push app to background
locked screen and wait some time
unlock screen and click app icon to start app, see black screen，but some times is ok

when this happen, the app is not crash,  it can be recovery like follow
back to homescreen then start app again, everything is ok

when this happen, the app is not crash, it can be recovery like follow back to homescreen then start app again, everything is ok

Please refer to #93276 which is a certain case from your description.

have you try Huawei phone？ this issue still exists. HUAWEI Mate40 Pro HarmonyOS

@fine1021 Is your case the same as the issue? Start the app when screen locked?

start app
push app to background
locked screen and wait some time
unlock screen and click app icon to start app, see black screen，but some times is ok

when this happen, the app is not crash, it can be recovery like follow back to homescreen then start app again, everything is ok

@fine1021 Can you modify your MainActivity/FlutterActivity like this? Then execute flutter run, and then post the Log here when the screen is black.
import android.os.Bundle
import android.view.View
import io.flutter.Log
import io.flutter.embedding.android.FlutterActivity

class MainActivity: FlutterActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        Log.setLogLevel(2)
    }

    override fun onStart() {
        super.onStart()
        window.decorView.visibility = View.VISIBLE;
    }

    override fun onStop() {
        super.onStop()
        window.decorView.visibility = View.GONE;
    }
}

Fixed by https://github.com/flutter/engine/pull/30897


Quickstart should have a step to add styles.css

Although this is really tangential to the quickstart, we should have a step where we add it so the user doesn't get an error.
migrated issue from https://github.com/angular/angular/issues/9307 @fadiwissa

Current behavior
The quick start guide is missing the Styles.css file. This file is referenced but no where in the "walkthrough" is it described. I got it from the Plunker version of the demo.
Expected/desired behavior
The Styles.css file should be created as one of the steps of the walkthrough.
Reproduction of the problem
Just walk through the walkthrough steps and the browser will throw an error due to its inability to find the referenced Styles.css file (referenced in Index.html)
What is the expected behavior?
The file should simply exist and no error should be thrown.

@naomiblack I see a section regarding adding styles in the quickstart: https://angular.io/docs/ts/latest/quickstart.html#!#add-some-style.
It seems to have been there since May 13, introduced on https://github.com/angular/angular.io/commit/6ca1ac2c45a26bb7857e94a6dc92b669c1ecc6db.

I should have been more specific; the issue exists in the JavaScript version of the walkthrough. That's where the styles.css step is missing.
On Sun, Jun 19, 2016 at 2:24 AM, Filipe Silva <<EMAIL_ADDRESS><EMAIL_ADDRESS>> wrote:
@naomiblack [https://github.com/naomiblack] I see a section regarding adding styles in the quickstart: https://angular.io/docs/ts/latest/quickstart.html#!#add-some-style [https://angular.io/docs/ts/latest/quickstart.html#!#add-some-style] .
It seems to have been there since May 13, introduced on 6ca1ac2 [https://github.com/angular/angular.io/commit/6ca1ac2c45a26bb7857e94a6dc92b669c1ecc6db] .
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub [https://github.com/angular/angular.io/issues/1684#issuecomment-226972384] , or mute the thread [https://github.com/notifications/unsubscribe/ACJTI9SDqB0jKF5xuJyXiEG_vydehPPQks5qNIw4gaJpZM4I4opY] .

@fadiwissa right you are, I only checked the TS one.
#1699 should fix it. Thanks for finding this!


Add support for showing created and updated information to Glossary Term in the UI

Feature
#2517
Describe the task
Add the following information Create on, Created by and Updated on, Updated by information to Business Glossary.

@vivekratnavel fyi ^

Hi to support this on UI side we need support from the backend, From API we are getting information for Updated on, Updated by but Create on, Created by is still missing.
cc @harshach


Cleanup S3 storage bucket when Baltrad-algorithm properly working

When the vol2bird algorithm is running properly, the following actions should be performed:

Cleanup current S3 bucket file listing
Bulk file transfer from the Dutch server to the S3 bucket
Restart the daily transfer cron-job

These actions are provided by the AWS boto3 package or the custom-provided functions of the datamover Python module.
@plieper, when you give a green light, I'll make sure these actions are taken.

meanwhile: daily job is running with new data.
closing here, discussion on archiving old files, see #46


AnomynousRecord is missing whenReady event

The AnomynousRecord should raise a whenReady event to have the same behaviour as a normal Record.
It's worth noting that since setName effectively changes the record used underneath which means whenReady can be called more than once, which should be explicitly stated in the docs.

I'm still a bit edge on implementing this with the premise of whenReady being called multiple times.
We could call the method.. whenReadyMultipleCallbacks() * we won't, but like, explicitness? *

Let's proxy the underlying record's ready event, but a whenReady method doesn't really make sense in this context

Fixed


added a note section - Dev Sku has downtime

Added the note section : The process of assigning the certificate may take 15 minutes or more depending on size of deployment. Developer SKU has downtime, while Basic and higher SKUs do not.

@SherrySahni : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@ktoliver : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#label:"aq-pr-triaged"

#sign-off


⚡ Receive sstore 0 gas refund before reverting

Description
Weird optimization: when you are going to revert, storing 0 in warm slots costs 100 or 2900 gas but gives a 4800 gas refund, if the value was not already 0. This cannot be the case for owner, because the ownership cannot be transferred to address(0).
I would understand if you don't want this kind of optimizations 😄
cc @Vectorized
Checklist

[x] Ran forge snapshot?
[x] Ran npm run lint?
[x] Ran forge test?

wow, lemme think about it. hehe

Yes that's true.
The only case where it is important, is when the contracts is expected to revert often. I notably think about liquidation or arbitrage smart-contracts, that reverts when the execution conditions are the ones that were expected.

After some marinating, I think with the consideration that small bytecode size is one of the goals of solady, such that complex contracts can still fit under the contract size limit, it is better to omit this gas refund trick that isn’t applicable for most use cases.
Many thanks for this PR.
I’ll credit you if solady ever has functionality in the future that greatly benefits from this trick.

Cool, no pb ! It is great that you follow precise guidelines to maintain this repo, and know what to merge or not.


Moved XHR GET in another file.

From unknown reason the href and callback params` are undefined.

@all-contributors please add  @cosminpopescu14  for  Code
Moved XHR GET in another file.


Enhance VPC to TGW attachment name tag

Please up-vote if you want this feature. Do not submit a new feature request.

Please see the following PR -> https://github.com/awslabs/serverless-transit-network-orchestrator/pull/32

Please see the following PR -> https://github.com/awslabs/serverless-transit-network-orchestrator/pull/32


[PiranhaJava] Fail hard in the presence of configuration errors.

This makes PiranhaConfigurationException a runtime exception,
and gets rid of the disabled checker state. In general, it doesn't
make much sense to run Piranha with invalid configuration and
it's better to show the issue to users as visibly as possible,
since either way the tool behavior will be broken in this case.
This resolves #76 and #77.

This doesn't resolve #76 completely. Needs to fix missing config file in sample.

Are you sure? I see that the author of that issue says it's resolved in Piranha 0.1.0. And looking at sample, this task is succeeding and properties.json is being passed. Also, no crash is introduced there by this change.
Am I missing something?

This doesn't resolve #76 completely. Needs to fix missing config file in sample.

Are you sure? I see that the author of that issue says it's resolved in Piranha 0.1.0. And looking at sample, this task is succeeding and properties.json is being passed. Also, no crash is introduced there by this change.
Am I missing something?

Here are the things being found on sample right now: https://travis-ci.com/github/uber/piranha/jobs/361875475#L454

This doesn't resolve #76 completely. Needs to fix missing config file in sample.
Are you sure? I see that the author of that issue says it's resolved in Piranha 0.1.0.

Yes. They were able to resolve it after specifying the full path (see here).
And looking at sample, this task is succeeding and properties.json is being passed. Also, no crash is introduced there by this change.

Am I missing something?

Here are the things being found on sample right now: https://travis-ci.com/github/uber/piranha/jobs/361875475#L454

https://github.com/uber/piranha/issues/76#issuecomment-655667800


deadlock when using batch with flatMap and mongo stream as source (node >= 10)

The following test deadlocks (toCallback never gets called):
/* eslint-disable no-unused-vars, no-shadow, no-redeclare */
var _, EventEmitter = require('events').EventEmitter,
    through = require('through'),
    // sinon = require('sinon'),
    Stream = require('stream'),
    streamify = require('stream-array'),
    concat = require('concat-stream'),
    // Promise = RSVP.Promise,
    transducers = require('transducers-js'),
    bluebird = require('bluebird'),
    runTask = require('orchestrator/lib/runTask'),
    fl = require('fantasy-land'),
    bufferFrom = require('buffer-from');

if (global.highland != null) {
    _ = global.highland;
}
else {
    _ = require('../lib/index');
}

// Use bluebird cancellation. We want to test against it.
bluebird.config({
    cancellation: true,
    longStackTraces : true
});

var MongoClient = require('mongodb').MongoClient

exports['batch - mongodb'] = function (test) {
    test.expect(1);

    MongoClient.connect('mongodb://localhost:27017')
    .then(async (client) => {

        var db = client.db("test")
        var col = db.collection("test")
        const docs = Array.from(Array(22).keys()).map( _id => { return { _id } })
        await col.removeMany({})
        await col.insertMany(docs)

        cursor = col.find()
        cursor.batchSize(2)
        // Changing batch size to 3 causes the test to pass.
        // cursor.batchSize(3)

        _(cursor.stream())
        .batch(11)
        // Changing batch size to 12 causes the test to pass.
        // .batch(12)
        .flatMap( x => {
            console.log("x:", x)
            return _(x)
        })
        // If flatMap above is replaced with .map, the test passes.
        // .map( x => {
        //     console.log("x:", x)
        //     return x
        // })
        .reduce(
            (acc, x) => {
                console.log("conc", acc, x)
                return acc.concat(x)
            },
            []
        )
        .toCallback((e, xs) => {
            console.log("xs",xs)
            test.same(xs, docs);
            test.done();
        })
    })

};

You save save the above in tests/batch_deadlock.js, install mongo drives with npm i mongodb and finally run it with npx nodeunit tests/batch_deadlock.js. It should deadlock when running with node version >= 10, but passes when ran with node 8.x.
I've also left a few comments in the code which show some tweaks that make the deadlock go away.

Created a small github repo with Travis on it with a similar test case:
https://github.com/szabolcs-szilagyi/highland-node-12
https://travis-ci.org/szabolcs-szilagyi/highland-node-12

Setup Travis to build it daily, so the above image should go green once its fixed.

interestingly if you use the ratelimit function before calling the batch on the stream with some settings it can finish. Think it might be a timing issue on setting some internal state. E.g. if in the test project I put:
        hl(mongoStream)
          .ratelimit(110, 0)
          .batch(300)

it will actually finish, while if I put 120 for the amount it will hang.

what I've found sofar:
it is able to pull data from the mongo stream 4 times, but then it forgets to resume/pull from it again. Tried to run it with the --inspect flag to see - after lots of console.logs - but of course like all timing bugs it runs perfectly when you start it in debug mode. :/
Tried to reproduce the bug with file streams, but those ran okay. Another case that mitght be related is when I stream http requests using the got library, it also hangs. (node@12, got@10).
I'm tempted to give up at this point and just start on a big project of replacing all highland usages with some other solutions. :(

I took a quick look at your test repo and saw you are using highland 3 which if I recall, is missing some work around when resources are destroyed which may be affecting this. What happens if you use the stable Highland 2.13.5? https://www.npmjs.com/package/highland
Also what happens if you use .toPromise(Promise) instead of .toCallback()?
Lastly, looking at the source:
https://github.com/caolan/highland/blob/3.0.0/lib/index.js#L2785-L2792
It has a clause to close the stream when the source stream closes. That suggests it may be the mongo node stream that is not triggering the completion because it's also batching and will not close until it's satisfied.
Could you try adding an event listener to the mongo stream to see if it dispatches a finish or close event?

Hmm with version 2.13.5 it finishes nicely with out the issue. That is cool, now just need to see why did we started to use 3. :D
In regards to the finish and close events, I've added them, but they don't get triggered. (updated the repo with the event listeners too.

Thanks for that info! I'm going to dig in today and see if I can pinpoint if it's a highland issue specifically or something with the batched mongo stream.
As for take, I wasn't sure what the intention was looking at the example. Based on the use of .toCallback and the fact that this example batches it into an array then flattens it out again, I was wondering if the goal was to get a finite stream out of an infinite stream.

Made some progress.
async function main () {
  const client = await MongoClient.connect(url, opts);
  const db = client.db("test");
  const col = db.collection("test");
  await col.removeMany();
  await col.insertMany(docs);

  // This function will explode in six seconds
  timeout(6000)
    .done(() => {
      throw new Error("APPLICATION TIMED OUT");
      client.close();
      process.exit(1);
    });

  return _.of(col)
    .flatMap(fetchDocs)
    .batch(11)
    .consume(logStream)
    .flatMap(_)
    .reduce(append, [])
    .toCallback((err, xs) => {
      client.close();

      if (err) {
        console.error(err);
        process.exit(1);
      }

      assert.deepEqual(xs, docs, `DOCS WERE NOT RETUREND. INSTEAD FOUND "${xs}"`);

      console.log("Completed!", xs);
      process.exit(0);
    });
}

That works, the main different being _(cursor.stream()) -> _.of(x).flatMap(() => _(cursor.stream)).
My next step is to create a new Node Readable stream that kinda simulates the cursor.stream.
My progress is at https://github.com/eccentric-j/highland-batch-repro which includes a docker-compose file to make it easier to run.

wow interesting, tried to use
  const mongoStream = hl.of(collection.find().stream()).flatMap(hl);

instead of the
  const mongoStream = collection.find().stream();

in my tests and indeed the streaming works if wrapped like this.

Tried _(mockMongoStream(docs)) with a custom subclass of Stream.Readable and it worked without issue https://travis-ci.com/eccentric-j/highland-batch-repro/builds/151668807. I also tried _(_(docs).toNodeReadable({ objectMode: true })) and it also worked without issue https://travis-ci.com/eccentric-j/highland-batch-repro/builds/151663566.
This has me leaning towards the issue residing in mongodb's cursor.stream() method. The next step is to use the mongo db stream and try consuming it in a batch Node Transform stream to see if I can reproduce the error without using Highland.

has anyone managed to make any further progress on this?

@adrian-gierakowski unfortunately no, personally I started to move away from using highland utilizing async-await, for await of and nodejs' built in pipeline method.
There is a helper lib that a collegue of mine made - called aih - have a look into the lib folder you can see some good examples on how you can use await with streams.


MudAutocomplete: navigation via keyboard allows to select disabled items

Bug type
Component
Component name
MudAutocomplete
What happened?
Component allows to disable item selections via "ItemDisabledFunc". You are not able to select those options via mouse. However, you are able to do so via keyboard navigation (ArrowUp, ArrowDown). Seems like it is an issue specifically with first and last items in the list. In the gif can see that when disabled item is not first nor last, then it is being skipped when navigating and not selectable as expected.

Expected behavior
Disabled items shouldn't be selectable via keyboard navigation.
Reproduction link
https://try.mudblazor.com/snippet/GamxbvQBqymutnlK
Reproduction steps

Prepare an options list for autocomplete where first and last items are disabled
Open autocomplete menu
Navigate (with keyboard arrows) to first or last item (which is disabled).
Press enter

Relevant log output
No response
Version (bug)
6.11.1
Version (working)
No response
What browsers are you seeing the problem on?
Chrome
On what operating system are you experiencing the issue?
Windows
Pull Request

[ ] I would like to do a Pull Request

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Hello everyone. Can I fix this one ?

+1

Hello everyone. Can I fix this one ?

Yeah, go for it. Perfect.

Closing, this is fixed in V8


bug: Patch request for basic-auth credential returns 404 incorrectly

Summary
When password specified in a patch request is same as the one currently stored in DB(hashed), patch request return a 404.
This could be due to the hashing logic on the password field.
Steps To Reproduce
$ http :8001/consumers username=foo
HTTP/1.1 201 Created
Access-Control-Allow-Origin: *
Connection: keep-alive
Content-Length: 115
Content-Type: application/json; charset=utf-8
Date: Mon, 12 Aug 2019 15:39:19 GMT
Server: kong/1.3.0rc1

{
    "created_at":<PHONE_NUMBER>,
    "custom_id": null,
    "id": "6a3c317e-daa9-4934-89be-10fc4a04e703",
    "tags": null,
    "username": "foo"
}

$ http post :8001/consumers/foo/basic-auth username=bar
HTTP/1.1 201 Created
Access-Control-Allow-Origin: *
Connection: keep-alive
Content-Length: 197
Content-Type: application/json; charset=utf-8
Date: Mon, 12 Aug 2019 15:39:32 GMT
Server: kong/1.3.0rc1

{
    "consumer": {
        "id": "6a3c317e-daa9-4934-89be-10fc4a04e703"
    },
    "created_at":<PHONE_NUMBER>,
    "id": "8b80904a-68c9-432c-a7e9-f308d5ab860a",
    "password": "ea809177afb40b62a34582080b8a876b9056cbf5",
    "username": "bar"
}

# Please note that specifying the hashed password as the password should again hash it

$ http patch :8001/consumers/foo/basic-auth/8b80904a-68c9-432c-a7e9-f308d5ab860a password=ea809177afb40b62a345820
80b8a876b9056cbf5 username=new-bar
HTTP/1.1 404 Not Found
Access-Control-Allow-Origin: *
Connection: keep-alive
Content-Length: 23
Content-Type: application/json; charset=utf-8
Date: Mon, 12 Aug 2019 15:40:43 GMT
Server: kong/1.3.0rc1

{
    "message": "Not found"
}

$ http patch :8001/consumers/foo/basic-auth/8b80904a-68c9-432c-a7e9-f308d5ab860a password=any-other-password username=new-bar
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Connection: keep-alive
Content-Length: 201
Content-Type: application/json; charset=utf-8
Date: Mon, 12 Aug 2019 15:45:31 GMT
Server: kong/1.3.0rc1

{
    "consumer": {
        "id": "6a3c317e-daa9-4934-89be-10fc4a04e703"
    },
    "created_at":<PHONE_NUMBER>,
    "id": "8b80904a-68c9-432c-a7e9-f308d5ab860a",
    "password": "bda1183766a0e94b1ea14f7733f9c21ffade8805",
    "username": "new-bar"
}

Additional Details & Logs

Kong version ($ kong version) 1.3.0rc1

Exactly:
https://github.com/Kong/kong/blob/master/kong/plugins/basic-auth/basicauth_credentials.lua#L6-L7

Btw. I tried this with next and could not reproduce.

@hbagdi can you check it with next if it is not an issue anymore, can you then close this?

Verified that this is till an issue in next at a169bcf354f3ac67aa5.

The dao transformations got merged, so I will close this. Please reopen if it didn't fix the issue.


Update http4s-core to 0.21.20

Updates org.http4s:http4s-core from 0.21.6 to 0.21.20.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.http4s", artifactId = "http4s-core" } ]

labels: library-update, semver-patch

Superseded by #103.


Birds Section UI Issue

The Play Sound button and the arrows on either side of it are not aligned well. Please allow me to correct it.

I am a gssoc'24 contributor. Please assign this issue to me.

Hey, Khushi Soni this side, I'm a GSSoC contributor and would love to handle this issue

#79


Why are you store bin/phar/codacycoverage.phar in git repo? If I want modify some of files, I need regenerate this phar file. It's not hard, but really duplicate your code and seem ugly.
I don't know projects, that use phar like you. Many projects has phar.builder script, that can generate phar in they repo, but doesn't store phar.
Why I need download 21Kb (your phar size) unusefull traffic, when install dependency from composer?
I have looked your documentation for word phar (in this project and in http://docs.codacy.com) and have n't find any requirements or code example that use this phar.
Could you remove it from your repo?

Remove in https://github.com/codacy/php-codacy-coverage/commit/ceefe5649b4940b35651095fcb1506b55d39de39.


Add release generation process

Fixes #152 assuming the next release includes the generated binaries and sha256sum files.
This adds a script to generate release assets for Twirp. The script internal/release_gen.sh generates a binary for each of Darwin/Linux in x86_64 along with a sha256sum file, and then verifies the sha256sum. It does this in a platform-independent manner.
The Makefile target release_gen calls git clean xdf to make the repository pristine (not strictly necessary, but not a bad practice overall), and calls this script inside a Docker container, both to make sure no external dependencies are being used, and to make sure that if either binary panics, the file paths are printed out as /go/src/... not /Users/whoever/go/src etc.
It would be best to get #153 merged first as this makes the most sense with that.

Ping on this


Hide app in multitasking doesn't work on Android 11

When this option is activated on Android 11 it doesn't do anything

It works for me (also Android 11),
Whats your device model?
Have you tried turning the setting on and off?
Does this work in other apps? (Such as incognito mode in chrome, it hides itself when you are in an incognito page)

Moto G 5g
Yes
Works in Chrome and Hendroid (makes that function available)
Em qua., 26 de jan. de 2022 16:01, hmaltr @.***>
escreveu:

It works for me (also Android 11),
Whats your device model?
Have you tried turning the setting on and off?
Does this work in other apps? (Such as incognito mode in chrome, it hides
itself when you are in an incognito page)
—
Reply to this email directly, view it on GitHub
https://github.com/Dar9586/NClientV2/issues/384#issuecomment-1022500065,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AU67SUKD2DUQNMFE6R4FVSTUYBAIBANCNFSM5L74E3TA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID:
@.***>


Side effects from init_model

Environment info
Operating System: macOS 10.15.3
CPU/GPU model: CPU
C++/Python/R version: Python 3.7.6
LightGBM version or commit hash: 2.3.1
Reproducible examples
import lightgbm as lgb
import sklearn.datasets
import sklearn.metrics
import sklearn.model_selection

X, y = sklearn.datasets.load_boston(return_X_y=True)
X_train, X_test, y_train, y_test = sklearn.model_selection.train_test_split(
    X, y, random_state=7054)
train_data = lgb.Dataset(X_train, label=y_train, free_raw_data=False)
val_data = lgb.Dataset(
    X_test, label=y_test, reference=train_data, free_raw_data=False)

def train(**kwargs):
    params = {
        'objective': 'mse',
        'seed': 8798,
        'num_threads': 1,
        'num_leaves': 7
    }
    model = lgb.train(
        params, train_data, num_boost_round=5,
        valid_sets=[val_data, train_data], **kwargs
    )
    y_pred = model.predict(X_test)
    print('Error on validation set:',
          sklearn.metrics.mean_squared_error(y_pred, y_test))
    return model

model = train()          # (1)
train(init_model=model)  # (2)
train()                  # (3)

This produces the following output:
[LightGBM] [Info] Total Bins 973
[LightGBM] [Info] Number of data: 379, number of used features: 13
[LightGBM] [Info] Start training from score 22.378628
[1]	training's l2: 72.0021	valid_0's l2: 73.5376
[2]	training's l2: 61.9825	valid_0's l2: 64.1764
[3]	training's l2: 53.7874	valid_0's l2: 55.9661
[4]	training's l2: 47.0542	valid_0's l2: 49.8698
[5]	training's l2: 41.3178	valid_0's l2: 43.6972
Error on validation set: 43.69720560654287
[LightGBM] [Info] Total Bins 973
[LightGBM] [Info] Number of data: 379, number of used features: 13
[6]	training's l2: 36.7413	valid_0's l2: 39.2157
[7]	training's l2: 32.7703	valid_0's l2: 34.7654
[8]	training's l2: 29.5448	valid_0's l2: 31.2327
[9]	training's l2: 26.7785	valid_0's l2: 28.5636
[10]	training's l2: 24.4583	valid_0's l2: 25.6796
Error on validation set: 25.67962013250864
[LightGBM] [Info] Total Bins 973
[LightGBM] [Info] Number of data: 379, number of used features: 13
[1]	training's l2: 36.7413	valid_0's l2: 39.2157
[2]	training's l2: 32.7703	valid_0's l2: 34.7654
[3]	training's l2: 29.5448	valid_0's l2: 31.2327
[4]	training's l2: 26.7785	valid_0's l2: 28.5636
[5]	training's l2: 24.4583	valid_0's l2: 25.6796
Error on validation set:<PHONE_NUMBER>586528

It seems to me there are two problems with these results:

The training in (3) continues training from where (1) stopped, while I expected it to start from scratch.
The error after the third training (569.4…) is unrealistically large and somehow different from the last validation error in the training log (25.6796).

If I comment out (2), the outputs from (1) and (3) are identical, as expected:
[LightGBM] [Info] Total Bins 973
[LightGBM] [Info] Number of data: 379, number of used features: 13
[LightGBM] [Info] Start training from score 22.378628
[1]	training's l2: 72.0021	valid_0's l2: 73.5376
[2]	training's l2: 61.9825	valid_0's l2: 64.1764
[3]	training's l2: 53.7874	valid_0's l2: 55.9661
[4]	training's l2: 47.0542	valid_0's l2: 49.8698
[5]	training's l2: 41.3178	valid_0's l2: 43.6972
Error on validation set: 43.69720560654287
[LightGBM] [Info] Total Bins 973
[LightGBM] [Info] Number of data: 379, number of used features: 13
[LightGBM] [Info] Start training from score 22.378628
[1]	training's l2: 72.0021	valid_0's l2: 73.5376
[2]	training's l2: 61.9825	valid_0's l2: 64.1764
[3]	training's l2: 53.7874	valid_0's l2: 55.9661
[4]	training's l2: 47.0542	valid_0's l2: 49.8698
[5]	training's l2: 41.3178	valid_0's l2: 43.6972
Error on validation set: 43.69720560654287

The dataset will remember the init_model too. So in (3), you should use a new lgb.Dtatset, instead of old one.

I see. And the reason for the difference between the errors computed using lgb.Booster.predict and reported in the training log is because lgb.Booster.predict, being applied to a NumPy array and not an lgb.Dataset, doesn't have access to init_score (somewhat related to #1978). Thank you for the explanation.


Beginner-level guide for using Yew with wasm-pack and webpack.

Is your feature request related to a problem? Please describe.
The problem is that someone (like me) unfamiliar with web front-end tooling can't easily get started with Yew, especially while trying to follow the preferred way (webpack + wasm-pack instead of cargo-web).
Describe the solution you'd like
It would be nice to have a beginner-level guide, describing basics of Yew-only (I.e. for project starting with Yew from day 0) minimal set-up with webpack and wasm-pack, one stylesheet and one resource (Like image or favicon). It also would be nice to have minimal instructions for where and how to get webpack and how to use it. This may seem like it's out of scope of Yew documentation, but otherwise users like me will have to learn how webpack works (With JS and stuff) and then bridge this knowledge with knowledge of how to use Yew. This might be a long process, what is not good in my opinion.
Describe alternatives you've considered
Learn how to use webpack with JS? Don't mean to be rude, but no, thanks.
Additional context
None.

Hey @L117 thanks for the issue! This is what we intend for https://github.com/yewstack/yew-wasm-pack-template but ultimately the yew docs should explain this very clearly.

@jstarry I finally figured out what happens in that example. Actually it helped a lot to strip it down. Most confusing parts were (As Q/A for future viewers):

What is Netlify and is it required?

No, it is not. The netlify directory can be safely removed.

How module structure is different from ordinary bin/lib crate?

It's exactly the same as in any other lib crate, app.rs is just a sub-module.

What is yarn?

It's a cargo (a dependency and build system) of JS folks.

Where do I get yarn?

From repository of your distribution (For Linux).

Do I need npm as well?

No, you don't. At least you don't have to install it manually, or interact with it in any manner.

What is webpack?

It's a resource manager. It's job is to transform (or just copy) one resources into another (E.g. rust -> wasm, scss -> css)

Where do I get webpack?

You don't need to, it's in the project's yarn dev dependencies and will be installed into project-local node_modules on build.

How does webpack work?

Flawlessly so far (:

Actually, I have no idea, and do not care much at this point.

Where do I put resources?

static directory is the web root in that example, just drop some files there.

I also spent an entire day figuring out how to make Yew work with web-sys and wasm-pack.
The parts that were most confusing to me as a beginner (feel free to reuse them in a documentation):

there has to be a function in lib.rs that looks like:

#[wasm_bindgen(start)]
pub fn run_app() {
    yew::start_app::<Model>();
}

especially to make the examples work, I understand that they have to be able to compile with the stdweb too, so this cannot be in the sources, but at least some comment or a BIG note in docs should exist

wasm-pack build command needs --target web argument to generate a usable .js file

and the index.html needs to look like this:

<!doctype html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>Yew example</title>
        <script type="module">
			import init from "./wasm.js"
			init()
		</script>
    </head>
    <body></body>
</html>

Where the wasm.js should be replaced with whatever the name of the .js file in the pkg directory created by wasm-pack build is.

https://github.com/yewstack/yew/issues/1139#issuecomment-619594999 - This list is also very Documentation FAQ worthy.

Some more Q/A:

Is it possible convert HTML &str into VNode (Aka Html)? (Or anything else, what would render as normal HTML).

Yes, it is! There is no single universal function to do this, though. CRM Example has more info, but this snippet is enough to get started:use web_sys;
use web_sys::Node;
use yew::prelude::*;
use yew::virtual_dom::VNode;

/* Inside render function */
let div = {
    let div = web_sys::window()
        .unwrap()
        .document()
        .unwrap()
        .create_element("div") // It is not required to be "div".
        .unwrap();
    div.set_inner_html(&self.html_data);
    div
};
let node = Node::from(div);
let v_node = VNode::VRef(node);
v_node

Is it required for my components to own ComponentLink<Self> with name link, Callbacks, services, etc?

ComponentLink<Self> is required. Anything else seems to obey ownership rules (E.g. if timer service gets dropped, it won't call bound callback anymore. If you won't mind such behavior - go ahead). But will likely change soon.

+1 to this -- @tommket I also had difficulty understanding what was a good way to Yew work with building and running a WASM app.
Also for whatever it's worth, I looked at wasm-pack, cargo-web, and I ended up going with https://github.com/thedodd/trunk -- I thought this was a nice way to get Yew up and running. Would love to see documentation for that as well included alongside wasm-pack.

+1 to this -- @tommket I also had difficulty understanding what was a good way to Yew work with building and running a WASM app.
Also for whatever it's worth, I looked at wasm-pack, cargo-web, and I ended up going with https://github.com/thedodd/trunk -- I thought this was a nice way to get Yew up and running. Would love to see documentation for that as well included alongside wasm-pack.

trunk is the recommended build tool to use so I'm not sure if there's a need for a tutorial for wasm-pack/webpack now. I can't think think of a reason why you wouldn't use trunk.  There's a tutorial on getting started with trunk which you can find here. There is also a template for getting started with trunk. I'm not sure what more is needed. Is there anything that doesn't exist yet that should?

trunk is the recommended build tool to use so I'm not sure if there's a need for a tutorial for wasm-pack/webpack now. I can't think think of a reason why you wouldn't use trunk.  There's a tutorial on getting started with trunk which you can find here. There is also a template for getting started with trunk. I'm not sure what more is needed. Is there anything that doesn't exist yet that should?

I agree that Trunk has mostly superseded the wasm-pack/webpack combo so I guess this issue can be closed.

I agree that Trunk has mostly superseded the wasm-pack/webpack combo so I guess this issue can be closed.


Use Secrets Manager instead of Parameter Store for username/password

Currently, wso2apim.user and wso2apim.pass support either 'hardcoded' or Serverless parameter syntax (which includes ${ssm:/...), however, it only can grab values from AWS Systems Manager -> Parameter Store.
However, some teams might want to preserve credentials in AWS Secrets Manager as a secret and the plug-in shall source its values and use it for execution. Use AWS Managed Keys here, for general use.
NOTE: AWS SDK code sample to retrieve secret values from AWS Secrets Manager. : https://docs.aws.amazon.com/code-samples/latest/catalog/javascript-secrets-secrets_getsecretvalue.js.html

It seems possible to get access to the AWS Secrets Manager secrets using the ${ssm:/...} syntax, by prefixing it with /aws/reference/secretsmanager/.
For example for the secrets oh-so-secret, you can use ${ssm:/aws/reference/secretsmanager/oh-so-secret}

Thanks @ckuijjer for the tip!


Create tags (friendly names) for MAC addresses in ARP table

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
[-] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
Yes
[-] I have searched the existing issues and I'm convinced that mine is new.
Yes
Is your feature request related to a problem? Please describe.
Looking through the IP/MAC/Mfg in the Arp table when chasing down wayward hosts is sometimes hard to do without an Excel sheet or similar. Once I've traced one down, I have no way to update  the record.
Describe the solution you'd like
I would like to be able to edit the records in /ui/diagnostics/interface/arp    and/or in      /status_dhcp_leases.php       so that I can add a friendly tag to the record (presumably using the MAC as the key here would be one way). I wouldn't want to overwrite the Hostname or other fields provided back by the host; I'd prefer to let the host tell me what it is with the ability for me to add metadata in OPNSense.
Describe alternatives you've considered
I'm concerned with this that VLANs or virtualization might get wonky with this -- perhaps several hosts would show up with the same information about themselves in some edge cases. Still, I think having this would be useful.
Additional context
Add any other context or screenshots about the feature request here.

This issue has been automatically timed-out (after 180 days of inactivity).
For more information about the policies for this repository,
please read https://github.com/opnsense/core/blob/master/CONTRIBUTING.md for further details.
If someone wants to step up and work on this issue,
just let us know, so we can reopen the issue and assign an owner to it.


Create a binary distribution of trestle for airgapped / environments which have 'allowed software' lists.

Compliance is most important in sensitive environments. One property of those environments is that applications (and source code) typically must be vetted before use (e.g. https://www.cyber.gov.au/acsc/view-all-content/essential-eight/essential-eight-explained)

Create an approach to creating binary distributions of trestle such that one object (not trestle and all dependencies) needs to be approved.

Previous reviews had identified the approach taken by the aws cli (see quoted content below) as a good approach.

Explore whether code can also be signed.

Objectives:
We need to package trestle cli so that it is easier for end user to download and use rather than going through usual complex process of setting up python requirements as outlined here: https://packaging.python.org/tutorials/installing-packages/#installing-requirements
As said here: Python’s flexibility is why the first step in every Python project must be to think about the project’s audience and the corresponding environment where the project will run. It might seem strange to think about packaging before writing code, but this process does wonders for avoiding future headaches. https://packaging.python.org/overview/
Findings
AWS-CLI is the best role model for us and we can follow their approach on delivering the python based cli to end-users:
AWS CLI github: https://github.com/aws/aws-cli
AWS CLI has the install script and self contained installer script here: https://github.com/aws/aws-cli/tree/develop/scripts (edited)
Mac: https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-mac.html
Linux: https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html
windows: https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-windows.html

Closing as not a priority. Will reassess as required.


Strikethrough price displayed even if no discounted price

Even when a product has priceBefore: "", the strikethrough price is still displayed:

I've already fixed this in my fork, so expect a PR soon.

Hey there, Thanks for your contribution, I merged your PR.


Write a Windows desktop app based on the WinUSB template 2

I'm an hobbyist and don't know if I'll be able to reach my goal. I anyway don't need answers.

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

ID: 5852b021-94d2-1a19-17f3-7dc54d4cb409
Version Independent ID: 031f5cb8-db62-4a2d-9ea4-939eb0fd0ade
Content: Write a Windows desktop app based on the WinUSB template - Windows drivers
Content Source: windows-driver-docs-pr/usbcon/how-to-write-a-windows-desktop-app-that-communicates-with-a-usb-device.md
Product: windows-hardware
Technology: windows-devices
GitHub Login: @billlattimer
Microsoft Alias: billla

Hi @seacock, thanks for the feedback.  Closing this out since it doesn't look like you have any questions - please re-open if we can help in any way!


dynamic allocation executor pending for addition flood fix

Overview
Issue :
Currently with dynamic allocation for executors there are too many executors pending to be added while the actual number of max executor is far less
Solution:
This will check with dynamic auto scale no additional pending executor actor added more than max executors count
as this result in executor even running after job completion

@kira-lin Can you please take a look at this

Sorry for the late reply. I have a question: do you mean that the executors killed by Spark due to dynamic resource allocation will try to restart?

Sorry for the late reply. I have a question: do you mean that the executors killed by Spark due to dynamic resource allocation will try to restart?

With dynamic resource allocation the amount of pending executor creation is way greater than actual number of executor , so even after completion of spark job the executor is alive for much longer

@kira-lin Can you help with the review and merge?


Feature/ast 12643 sca panel

Checkmarx AST – Scan Summary & Details – b96ca034-3197-4185-bd40-d2995912c18f
No New Or Fixed Issues Found


textbox margin colour issue in search bar in mobile view

Bagisto Version

[ ] master branch

Steps To Reproduce

go to search bar in velocity in mobile view

Actual Result

It's mostly negligible as margins in most of the devices are equal. So no need any change here.


[WIP] Replicate blob

Codecov Report
Base: 73.18% // Head: 53.59% // Decreases project coverage by -19.59% :warning:

Coverage data is based on head (d84f6b0) compared to base (6bc4194).
Patch coverage: 26.66% of modified lines in pull request are covered.

Additional details and impacted files
@@              Coverage Diff              @@
##             master    #2366       +/-   ##
=============================================
- Coverage     73.18%   53.59%   -19.59%
+ Complexity    10708     7223     -3485
=============================================
  Files           767      767
  Lines         59619    59629       +10
  Branches       7307     7311        +4
=============================================
- Hits          43630    31959    -11671
- Misses        13587    24857    +11270
- Partials       2402     2813      +411

Impacted Files
Coverage Δ

.../java/com/github/ambry/router/DeleteOperation.java
52.17% <0.00%> (-41.07%)
:arrow_down:

...ava/com/github/ambry/router/NonBlockingRouter.java
48.43% <0.00%> (-32.49%)
:arrow_down:

...com/github/ambry/router/OperationQuotaCharger.java
28.57% <0.00%> (-65.88%)
:arrow_down:

...om/github/ambry/router/ReplicateBlobOperation.java
0.00% <0.00%> (-73.25%)
:arrow_down:

...va/com/github/ambry/router/TtlUpdateOperation.java
42.02% <0.00%> (-49.76%)
:arrow_down:

.../github/ambry/router/NonBlockingRouterMetrics.java
71.23% <100.00%> (-18.27%)
:arrow_down:

...in/java/com/github/ambry/router/CryptoService.java
0.00% <0.00%> (-100.00%)
:arrow_down:

.../java/com/github/ambry/clustermap/PartitionId.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...rc/main/java/com/github/ambry/utils/MockClock.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...ava/com/github/ambry/config/JsonAccountConfig.java
0.00% <0.00%> (-100.00%)
:arrow_down:

... and 402 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


[5.7 Sooner] Set up an externally installed config file to specify block list for certain driver features

Instead of embedding a block list of module names to disable a certain feature, we should set up an externally installed config file for that purpose. Therefore, we don't need to rebuild swift-driver when the block list needs an update.
rdar://92407381

@swift-ci please test


[VS Code] The Visual Studio Live Share service is unavailable at this time. Please try again later.

<!--
For Visual Studio problems/feedback, please use the Report

@Crouw2 Thanks for reporting this. We’re looking into it, and will keep folks updated via this issue.

I would take an assumption being that the VS MarketPlace is down along with other Azure services that Live Share is hosted within that same DC that is having problems?

@wsmelton Yeah, it appears like there are some Azure service outages that are impacting Live Share. We're continuing to look into this, and apologies for the inconvenience here! We'll keep folks posted via this issue.

By way of an update, we believe we know where the issue is and are working with partner teams to resolve the issue.

Update: Live Share is now back and ready for collaboration! Thanks everyone for being patient here, and please let us know if you run into any other issues 👍

Now if only we could get to the market place to install it 🤣


Create a Flash Loan contract

Project title
Flash Loan
Project Description
Flash Loan contract using aave defi protocol
Domain

[x] Solidity

Are you contributing under any open-source program ?
Hacktoberfest

@Vikash-8090-Yadav I want to work on this UNDER HACKTOBERFEST program.

Looking great . Start  working  on this .

@Vikash-8090-Yadav in which folder do I need to keep the contract folder?

@nirban256  .Keep  this in level1 folder


Can't deploy static resources

sfdx --version
sfdx-cli/7.112.1 darwin-x64 node-v14.17.4

and
 sfdx force:source:deploy --sourcepath force-app/main/default/staticresources/illustrations/Desert.svg
*** Deploying with SOAP API ***
ERROR running force:source:deploy:  Component conversion failed: Cannot read property 'contentType' of undefined

Could be because it's in a nested folder. Even though the command takes a file path.

Hi @AndrewRayCode I confirmed that it's due to the StaticResource being inside of a directory

Hi @AndrewRayCode was this working for you on 7.110.0? I'm unable to deploy a static resource inside of a directory like above
 ➜  sfdx which force:source:deploy
=== force:source:deploy
plugin: salesforce-alm
➜  dreamhouse-lwc git:(main) ✗  hub:(DevHub<EMAIL_ADDRESS> ➜  sfdx force:source:deploy -p force-app/main/default/staticresources/test/pic.jpeg
ERROR running force:source:deploy:  We're unable to complete this action due to a missing source file. Verify that the source file name that corresponds to the /var/folders/28/dmr8rt4d5f5bq_ttscbspz580000gp/T/sdx_sourceDeploy_pkg_1629218383285/staticresources/pic.resource exists and is correct, and try again.

and with plugin-source
➜  dreamhouse-lwc git:(main) ✗  hub:(DevHub<EMAIL_ADDRESS> ➜  sfdx which force:source:deploy
=== force:source:deploy
plugin: @salesforce/plugin-source
➜  dreamhouse-lwc git:(main) ✗  hub:(DevHub<EMAIL_ADDRESS> ➜  sfdx force:source:deploy -p force-app/main/default/staticresources/test/pic.jpeg
*** Deploying with SOAP API ***
ERROR running force:source:deploy:  Component conversion failed: Cannot read property 'contentType' of undefined

Hi @AndrewRayCode this should be fixed in the latest-rc build of the cli 1.115.0, you can get it by either sfdx update stable-rc or npm install sfdx-cli@latest-rc --global depending on your preferred install method.
Please let us know if you're still seeing this in 1.115.0 of the CLI


cheat wrong version

after i all i could compile but i am getting cheat wrong version

cosmine ghive me you r discord . :))


Make this run faster?

I am trying to replace the contact switches with magnetic reed switches connected to my Raspberry Pi.  I am having some delay in getting the lights to come on when the door is opened.  It takes about 7 seconds for the lights to respond when I open or close the door. I'm thinking lines 24-26 and 48-50 should be somewhere else (bulbS1 etc. assignments), so that their state is already known before the change in state is to be made. Like, instead of checking them when the door opens, already know what they are (on or off).
from gpiozero import Button, LED
from signal import pause
from time import sleep
from datetime import datetime
from datetime import timedelta
import requests
from wyze_sdk import Client
from wyze_sdk.errors import WyzeApiError
client =<EMAIL_ADDRESS>password="********")
garagepassage = Button(20)  # Input from garage passage door
stairspassage = Button(18)  # Input from door at top of stairs
now = datetime.now()
current_time = now.strftime("%H:%M:%S")
print("Door Started at ", current_time)
r = requests.post("https://autoremotejoaomgcd.appspot.com/sendnotification?key=APA9SecretAutoRemoteCodeo8V75nUXCU8solLv-Y2mbzGOzkybqKGibberishO2Ody2SsXjiC&title=Just Saying&text=Switch monitoring has begun")
def open():
#now = datetime.now()
#current_time = now.strftime("%H:%M:%S")
#print("Door open at " + current_time)
bulbS1 = client.bulbs.info(device_mac='2CAA8E5B0550')
bulbS2 = client.bulbs.info(device_mac='2CAA8E5B13B1')
plugSLED = client.plugs.info(device_mac='7C78B2717462')
if bulbS1.is_on:
client.bulbs.turn_off(device_mac=bulbS1.mac, device_model=bulbS1.product.model, after=timedelta(hours=.5))
else:
client.bulbs.turn_on(device_mac=bulbS1.mac, device_model=bulbS1.product.model)
bulbS1 = client.bulbs.info(device_mac=bulbS1.mac)
if bulbS2.is_on:
client.bulbs.turn_off(device_mac=bulbS2.mac, device_model=bulbS2.product.model, after=timedelta(hours=.5))
else:
client.bulbs.turn_on(device_mac=bulbS2.mac, device_model=bulbS2.product.model)
bulbS2 = client.bulbs.info(device_mac=bulbS2.mac)
if plugSLED.is_on:
client.plugs.turn_off(device_mac=plugSLED.mac, device_model=plugSLED.product.model, after=timedelta(hours=.5))
else:
client.plugs.turn_on(device_mac=plugSLED.mac, device_model=plugSLED.product.model)
print("on")
def closed():
#now = datetime.now()
#current_time = now.strftime("%H:%M:%S")
#print("Door closed at " + current_time)
bulbS1 = client.bulbs.info(device_mac='2CAA8E5B0550')
bulbS2 = client.bulbs.info(device_mac='2CAA8E5B13B1')
plugSLED = client.plugs.info(device_mac='7C78B2717462')
if bulbS1.is_on:
client.bulbs.turn_off(device_mac=bulbS1.mac, device_model=bulbS1.product.model, after=timedelta(hours=.05))
if bulbS2.is_on:
client.bulbs.turn_off(device_mac=bulbS2.mac, device_model=bulbS2.product.model, after=timedelta(hours=.05))
if plugSLED.is_on:
client.plugs.turn_off(device_mac=plugSLED.mac, device_model=plugSLED.product.model, after=timedelta(hours=.05))
print("off")
stairspassage.when_pressed = closed
stairspassage.when_released = open
garagepassage.when_pressed = closed
garagepassage.when_released = open
pause()

I could be wrong, but in my experience it looks like what's holding you up is creating all the Wyze objects (bulbS1 = client.bulbs.info(device_mac='2CAA8E5B0550')) inside your functions.  I've been coding a Discord bot that does various Wyze bulb things, and initializing all the 30+ bulbs is what takes the longest.
You could make a loading function that you call when the program starts, that initializes all of those and then appends them to a list, you can also just keep the existing names.  Really, you could just move all the lines creating Wyze objects outside of a function so they're run by default first.
I was just fiddling with this, and I set it up haphazardly to work with threading.  I'll post it here in case it helps someone-
`from wyze_sdk import Client
import threading
global client
client =<EMAIL_ADDRESS>password='Akranes@INK45)')
Make empty list for house
Room names cooresponding with house list
house_text = ["lab","bed","foyer","kitchen", "library"]
Empty variable for all the lights
house = [[],[],[],[],[]]
Initializes a bulb
def getLight(mac,num):
global house
house[num].append(client.bulbs.info(device_mac=mac))
Manually added MACs in lists for rooms, because lazy
Create a thread for creating each bulb object
These objects all dumps to the house list
def load():
lights_lab = ['MAC','MAC','MAC']
lights_bed = ['MAC','MAC','MAC']
lights_foyer = ['MAC','MAC','MAC','MAC','MAC','MAC']
lights_kitchen = ['MAC','MAC','MAC']
light_library = ['MAC']
list = [lights_lab,lights_bed,lights_foyer,lights_kitchen,light_library]
for i in range(0,len(list)):
for j in range(0,len(list[i])):
new_thread = threading.Thread(target=getLight, args=[list[i][j],i])
new_thread.start()
new_thread.join()`

I could be wrong, but in my experience it looks like what's holding you up is creating all the Wyze objects (bulbS1 = client.bulbs.info(device_mac='2CAA8E5B0550')) inside your functions. I've been coding a Discord bot that does various Wyze bulb things, and initializing all the 30+ bulbs is what takes the longest.
You could make a loading function that you call when the program starts, that initializes all of those and then appends them to a list, you can also just keep the existing names. Really, you could just move all the lines creating Wyze objects outside of a function so they're run by default first.
I was just fiddling with this, and I set it up haphazardly to work with threading. I'll post it here in case it helps someone-
`from wyze_sdk import Client
import threading
global client
client = Client(email='[email]', password='password')
Make empty list for house
Room names cooresponding with house list
house_text = ["lab","bed","foyer","kitchen", "library"]
Empty variable for all the lights
house = [[],[],[],[],[]]
Initializes a bulb
def getLight(mac,num):
global house
house[num].append(client.bulbs.info(device_mac=mac))
Manually added MACs in lists for rooms, because lazy
Create a thread for creating each bulb object
These objects all dumps to the house list
def load():
lights_lab = ['MAC','MAC','MAC']
lights_bed = ['MAC','MAC','MAC']
lights_foyer = ['MAC','MAC','MAC','MAC','MAC','MAC']
lights_kitchen = ['MAC','MAC','MAC']
light_library = ['MAC']
list = [lights_lab,lights_bed,lights_foyer,lights_kitchen,light_library]
for i in range(0,len(list)):
for j in range(0,len(list[i])):
new_thread = threading.Thread(target=getLight, args=[list[i][j],i])
new_thread.start()
new_thread.join()`

Thanks for your reply.  I found that moving the "bulbS1 = client.bulbs.info(device_mac='2CAA8E5B0550')" and other assignments to the top of the code (with the passage door button assignments) to be the fix.  The lights now turn on almost instantly.  Previously, they took 5-8 seconds.  Last step is to add a PIR to the code so that motion in the stairway keeps the lights on.

You guys are awesome. It makes me so happy to know people found this useful. I wish I had more time to keep tinkering with it. I'm trying to keep up with al the devices and requests.


The training accuracy of imagenet data set is not up to standard

I conducted the three expert training according to the readme method, and the training result of ImageNet-LT can only reach about 51.8%. May I ask why?

Hi, could you please share your training settings? If you use the same training commands and settings (batch size, learning rate, epochs, etc) as we did, you should be able to reproduce our results, and in many cases, even achieve better performance than what was reported in our paper. We have tested the reproducibility of our model on local runs, and it matches the reported results. Furthermore, many subsequent works such as SADE [NeurIPS 2022], LTR [CVPR 2022], and ACE [ICCV 2021], have used RIDE, and the reproducibility has been confirmed by them.

The configuration I use is the configuration file config_imagenet_lt_resnet50_ride.json, the only difference is that I use one GPU instead of eight

Hi! I think you are using the wrong config file. The results in the paper are produced with config_imagenet_lt_resnet50_distill_ride.json. Without distillation, the performance should be approximately 1% worse.
To further assist you in resolving the reproducibility issue, could you please provide us with the training log file as well? As we did not experience this issue during our own experiments with the default settings (8 or 4 GPUs), it is difficult to identify the issue without additional information.
Additionally, since you are using only one GPU, I guess you have to decrease the batch size. We recommend adjusting the learning rate accordingly. A smaller batch size may require a smaller learning rate to achieve optimal results.

Thank you very much for your reply. My batch is indeed set small. I will try to set batch larger and use 4 GPUs or modify the learning rate。The result of the paper is that distillation is used, right? If not, the accuracy will be reduced by about 1%, right? I still want to confirm this。

Yes, that's correct.

Thank you very much for your reply


Fix background color for disabled fields in dark mode

Added a better background color for disabled fields in dark mode and also removed a duplicate dark:border-gray-600 for select fields.

Codecov Report
Base: 77.61% // Head: 77.61% // No change to project coverage :thumbsup:

Coverage data is based on head (5a104ab) compared to base (255b3bb).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #86   +/-   ##
=======================================
  Coverage   77.61%   77.61%
=======================================
  Files          25       25
  Lines        1050     1050
=======================================
  Hits          815      815
  Misses        235      235

Impacted Files
Coverage Δ

lib/petal_components/form.ex
68.72% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

👍 thanks!


API implementation not working - ie, sheet not actually updating.

The API implementation may be missing something because its not working.

This issue is no longer relevant, as we have changed our persistence method.


mochawesome reporter: Error: mocha.passes is not iterable

Hello,
I tried to run the example ./reports/mochawesome/
but the GH action test-reporting fails with the error: Error: mocha.passes is not iterable
Here is the log of the error:
in Run phoenix-actions/test-reporting@v8
Check runs will be created with SHA=2e3f46489bc63dabde89e4c218c27e5dda1961b9
Listing all files tracked by git
Found 66 files tracked by GitHub
Using test report parser 'mocha-json'
Creating test report Report Tests
Processing test results from integ-tests2/mochawesome-json.json
Error: mocha.passes is not iterable
My workflow is quite simple:
- name: Checkout Tests
uses: actions/checkout@v3
- name: Install Dependencies
run: npm ci
working-directory: ./integ-tests2/
- name: Run Test
run: npm run test
working-directory: ./integ-tests2/
- uses: phoenix-actions/test-reporting@v8
if: success() || failure()
id: test-report                     # Set ID reference for step
with:
name: Report Tests                  # Name of the check run which will be created
path: 'integ-tests2/*.json'                     # Path to test results (inside artifact .zip)
reporter: mocha-json
Any help would be appreciated since I try to get nice reports inside GitHub Actions (i'm working with cypress and mochawesome seems the right reporter)

@AlexBeehave , can you update to the latest version and try again to see if you encounter the same issue?
I'll close for now, but will re-open again if you'd like to test again


Should if (err) throw err be if (err) throw done(err)?

http://mochajs.org/#asynchronous-code
Asynchronous code

Testing asynchronous code with Mocha could not be simpler! Simply invoke the callback when your test is complete. By adding a callback (usually named done) to it() Mocha will know that it should wait for completion.

describe('User', function(){
  describe('#save()', function(){
    it('should save without error', function(done){
      var user = new User('Luna');
      user.save(function(err){
        if (err) throw err;
        done();
      });
    })
  })
})

Just thinking if (err) throw err; should be if (err) throw done(err);, right?
(PS: Can't find the correct file to create a pull request)

It should work either way: you can let Mocha catch the error that you are throwing asynchronously, or you can pass it directly to the done callback.

Cool, great to know that

No worries, let us know if you bump into any issue. :)


Added more tests

Coverage increased (+2.7%) to 95.345% when pulling 8d6a664fb2db68669af24e99705e4f5f42047e9a on more-tests into d32db01a21a20e2345535b480882b3c35ce91f59 on master.


Added svg files for 'Manila' and 'Our sponsors'

lel

kindly double check for mobile! :) thanks.

checked the code. variants seem good. merging

that's one for a hacktoberfest shirt! Thank you for contribution.


[Bug / Compatibility] AutoPlant for Mod Saplings

Could you add the possibility to autoplant mod saplings. Your mod does not plant e.g. Forestry or Pam's Harvestcraft saplings. AutoPlant does this Job. As you are already having that Option i'd like to not download an extra mod for this Task. AutoPlant seems to be able to make this pretty easy, as forestry and Pams both extend the Sapling Class (whatever this is).

I couldnt think of a good way to do this before, but actually it should be easy by matching to the Ore Dictionary

Fix version Cyclic-1.12.2-1.10.0


Fix that set not-accurate multipart header

According to RFC2046, multipart/* content-type do not need to have charset parameter.
Currentry, When I create multipart mail, mail library append charset="UTF-8" in content-type header automatically.
This patch fixes 2 issues.

When create multipart content-type header, mail library appends charset parameter.
When call Message#convert_to_multipart, mail library ignores original header. I think Content-Type, Content-Disposition, Content-Transfer-Encoding andContent-Description should move to part header.

Agreed on both points.


string array support ?

reading a v7.3 or v6 matfile with A = ["Nelson" "is" "open"] returns MAT_T_UNKNOWN
string_array.zip
(tested with matio master)
What are really supported types ?
My Soft nelson can have all equivalent variables available in mat file and I would like to use matio...
Thanks

How and in which MATLAb version did you generate this MAT-file?

do you support string array ?

Yes, character array is supported.

string array != character array
since 2016 string is available. It is as a cell of characters
https://fr.mathworks.com/help/matlab/ref/string.html
So, matio did support or not ?

Not yet supported. Let me see what I can do.
Can you save your MAT file also as v7 and v6 please.

string_array = ["Matio" "will" "support"; "string" missing() "array"]
save('d:/string_array-v7.3.mat','string_array','-v7.3')
save('d:/string_array-v7.mat','string_array','-v7')
save('d:/string_array-v6.mat','string_array','-v6')

string_array.zip

Related to #77 and the undocumented opaque type for MCOS. At least, we have the reverse engineering available by @mbauman at https://nbviewer.jupyter.org/gist/mbauman/9121961.


APIKA: In Account page, Account Details pane texts need Finnish traslations

@bajiat Verified it on nightly. it's reproduced. I'm researching the problem

@bajiat This form doesn't have tags. The labels was hard coded. Fixed it. It will need another translation round


aws-amplify-angular example

Is there a full aws-amplify-angular example ? Because with no types, I do not manage to use it.

Sorry but these two project do not use aws-amplify-angular.
See package.json.

So, no reason to close this issue.


adding a first pass at more info

Per conversations with @ctb and @willingc , this adds a "more info" section where we can link to community posts, information that doesn't fit clearly into the docs, etc. Let me know if I should add other links etc!

I like it!

Nice! @choldgraf thanks.


Delete the extra files. PEP8. Code formatting.

Good evening, Rahman. How do you do?
I'm interested in your career achievements.
Can I ask you some questions:

How old are you?
Where do you study?
Which self-development books do you read? (our interests coincide)
Are you currently working on any project or startup?

Best regards, Hojagulyyev.
On Fri, 27 Oct 2023 at 15:54, Rahman Begjanov @.***>
wrote:

Reopened #37 https://github.com/Hojagulyyev/rysgally-project/pull/37.
—
Reply to this email directly, view it on GitHub
https://github.com/Hojagulyyev/rysgally-project/pull/37#event-10790299852,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AZPLDDCVKM2LJWJLFRDDIDTYBOHHJAVCNFSM6AAAAAA6STBRRSVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJQG44TAMRZHE4DKMQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***
com>

Good evening, Rahman. How do you do?

Hi! :)

How old are you?

Well, I am 17...

Where do you study?

I am in high school, but I also visit IT meydancha sometimes :)))

Which self-development books do you read? (our interests coincide)

Usually it's psychology, money, time management etc. But currently I am reading "Getting Things Done" by David Allen.

Are you currently working on any project or startup?

Yeah, I work on my small project called Growth Point :)


feat: implement string representation for PartitionFilter

Description
Implement string representation for PartitionFilter and add it to optimize command commit info for a TODO.
Following json representations of CommitInfo from delta scala project were found:
"operationParameters":{"predicate":"[\"(id#480 < 50)\"]"}
"operationParameters":{"predicate":"[\"(col1#1939 = 2)\"]"}
"operationParameters":{"predicate":"[\"`col2` LIKE 'data-2-%'\"]"}
"operationParameters":{"predicate":"[\"(id#378L < 2)\"]"}
"operationParameters":{
  "predicate":"[\"(spark_catalog.delta.`/table-uuid`.id IN (0, 180, 308, 225, 756, 1007, 1503))\"]"
}

So I think representing predicate as a list of filters in string representation would be logical, for example:
// single PartitionFilter
"operationParameters":{"predicate":"[\"date = '2022-05-22'\"]"}
// two filters
"operationParameters":{"predicate":"[\"date = '2022-05-22'\", \"country = 'US'\"]"}

Related Issue(s)
implement TODO in #607

@rtyler @ion-elgreco: oops, sorry there were test fix that was local. I pushed them.


MAT-6817: Multiple QDM Test Case Measure Observation Output

MADiE PR
Jira Ticket: MAT-6817
(Optional) Related Tickets:
Summary
All Submissions

[ ] This PR has the JIRA linked.
[ ] Required tests are included
[ ] No extemporaneous files are included (i.e Complied files or testing results)
[ ] This PR is into the correct branch.
[ ] All Documentation as needed for this PR is Complete (or noted in a TODO or other Ticket)
[ ] Any breaking changes or failing automation are noted by placing a comment on this PR.

DevSecOps
If there is a question if this PR has a security or infrastructure impact, please contact the Security or DevOps engineer assigned to this project to discuss it further.

[ ] This PR has NO significant security impact (i.e Changing auth methods, Adding a new user type, Adding a required but vulnerable package)
[ ] All CDN/Web dependencies are hosted internally (i.e MADiE-Root Repo)

Reviewers
By Approving this PR you are attesting to the following:

Code is maintainable and reusable, reuses existing code and infrastructure where appropriate, and accomplishes the task’s purpose
The tests appropriately test the new code, including edge cases
If you have any concerns they are brought up either to the developer assigned, security engineer, or leads

This branch is bugged out somewhere, remade


Metamask 10+ support

Add support for metamask post-EIP1559 (metamask >9).

This was the first blocker that I came across here otherwise working with this was a dream. I got here because I am forking mainnet to test preexisting tokens that were launched after eip1559. Would be good if there was a way to download selectors for versions of metamask to a file or scripts that gets read so that support can be enabled buy updating a selectors file or even installing an npm package.

@kathodler Thanks for feedback! I will make sure to update synpress with metamask@10 until end of the week.


Bug when I try to evaluate a model on my own dataset

Hi,
I think I found a bug when I run the following command (suggested by you):
python3 -m compressai.utils.eval_model checkpoint /path/to/images/folder/ -a $ARCH -p $MODEL_CHECKPOINT...
The bug is the following:
Traceback (most recent call last):
File "/opt/conda/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/opt/conda/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/opt/conda/lib/python3.7/site-packages/compressai/utils/eval_model/main.py", line 310, in
main(sys.argv[1:])
File "/opt/conda/lib/python3.7/site-packages/compressai/utils/eval_model/main.py", line 286, in main
model = load_func(*opts, run)
File "/opt/conda/lib/python3.7/site-packages/compressai/utils/eval_model/main.py", line 150, in load_checkpoint
return architectures[arch].from_state_dict(state_dict).eval()
File "/opt/conda/lib/python3.7/site-packages/compressai/models/google.py", line 157, in from_state_dict
N = state_dict["g_a.0.weight"].size(0)
KeyError: 'g_a.0.weight'
I think also that the error comes from the fact that you should pass the actual state_dict of the net, which is state_dict["state_dict"], not only state_dict; in my opinion, we should have something like:
N = state_dict["state_dict"]["g_a.0.weight"].size(0)
Maybe I miss something in my previous command.
Alberto

This error usually occurs when the model hasn't been updated via compressai.utils.update_model after training. See here for an example. Currently, this removes one layer of the "state_dict" (i.e. ckpt <- ckpt["state_dict"]) and also updates the Gaussian CDFs. (Note: if you want to do further training, please create a copy of the checkpoint as a backup before running update_model.)

I download a pretrained model with the following command:
net = bmshj2018_factorized(quality=8, pretrained=True).eval().to(torch.device("cpu"))
net.update(force=True)
The I try to print out the quantized cdf and I have something like this (I show only the first dimension):
quantized_cdf = Tensor([    0,     1,     2,     3,     4,     5,     6,     7,     8,     9,
10,    11,    12,    13,    14,    15, 65536,     0, ...,0])
tail_mass = 1.
Moreover, all dimensions have tail_mass equal to 1...what does it mean? should it equal to (or similar to) 1e-9? what is the domain of the quantized cdf if I want to plot it?
thanks in advance for the answers.
Alberto


MSBuild TaskLoggingHelper is not respecting \r

Repro steps -
dotnet new console
dotnet add package newtonsoft.json
edit csproj to change the newtonsoft versionto 12.0.0
run msbuild /t:Restore on the project
Expected -
Shows errors
Actual -
Shows errors with \r at the end of the line
"C:\Users\anmishr\Source\Repos\ConsoleApp21\ConsoleApp21\ConsoleApp21.csproj" (restore target) (1) ->
(Restore target) ->
  E:\NuGet.Client\src\NuGet.Core\NuGet.Build.Tasks\NuGet.targets(102,5): error : TESTING restore\r [C:\Users\anmishr\Source\Repos\ConsoleApp21\ConsoleApp21\ConsoleApp21.csproj]
E:\NuGet.Client\src\NuGet.Core\NuGet.Build.Tasks\NuGet.targets(102,5): error : this is new line [C:\Users\anmishr\Source\Repos\ConsoleApp21\ConsoleApp21\ConsoleApp21.csproj]
  C:\Users\anmishr\Source\Repos\ConsoleApp21\ConsoleApp21\ConsoleApp21.csproj : error NU1102: Unable to find package newtonsoft.json with version (>= 12.0.0)\r
C:\Users\anmishr\Source\Repos\ConsoleApp21\ConsoleApp21\ConsoleApp21.csproj : error NU1102:   - Found 57 version(s) in nuget.org [ Nearest version: 10.0.3 ]\r

Notes -
Here NuGet is sending messages through TaskHelper.LogError. I have verified that the messages contain both \r\n as is. So it doesn't seem to be an issue with NuGet.
Versions -
dotnet cli - 2.0.0-preview2
msbuild - Microsoft (R) Build Engine version 15.3.406.54721 for .NET Framework

cc: @rainersigwald @emgarten

This happens because the log event (with an embedded CRLF) filters down to a point where CR is explicitly filtered out if the current log output device is a character device like the console. The filtering works by escaping \r to \\r.
That's a pain for a multi-line error message that wants to just use Environment.NewLine, because within the task that's emitting an error, you can't know what loggers are attached. You'd like to emit \r\n to be friendly to text logs, but it produces this artifact for console logs.

It's worse than I thought. There's code that splits the user message on newlines, reassembles it back using our preferred newlines, returns as a string, then splits again (using a different split method), and emits a log message for each line, possibly split across multiple lines.
So there's a bunch of unnecessary allocations happening and ALSO it would be totally fine to call LogError(stringWithEmbeddedCRLF).
I'm removing all of the escaping stuff, but not currently tackling the split-join-split problem.

@rainersigwald thanks for digging deeper in this. Do we have a timeline for fixing this?

@mishra14 I've got #2325 out to get this fixed but it's in our 15.5 branch. Based on mail, we don't think it's a good idea to take the change right now--I'm pretty sure I understand all the implications but we're pretty late in the cycle.