palette_generator Bad state: Future already completed

I'm working with a package which is called palette_generator. I see an error when I run my app with a few line codes to use the package. I thought that the error might have caused by my code, but I couldn't figure it out. Finally, I tried to edit the source code of this package. Then, it worked without any error. However, I am not sure that the solution that I found is consistent. I'd like to share the issue and my solution in order to help other people and contribute the package.
The Issue
The error appears when I try to call the following function inside initState(). The function is the same with the one which is shown as an example in its documentation:
PaletteGenerator _paletteGenerator;

void initState() {
    super.initState();
    _updatePaletteGenerator(region);
}

Future<void> _updatePaletteGenerator(Rect newRegion) async {
    paletteGenerator = await PaletteGenerator.fromImageProvider(
      widget.image,
      size: widget.imageSize,
      region: newRegion,
      maximumColorCount: 20,
    );
    setState(() {});
}

The error looks this:
flutter: ══╡ EXCEPTION CAUGHT BY IMAGE RESOURCE SERVICE ╞════════════════════════════════════════════════════
flutter: The following StateError was thrown by an image listener:
flutter: Bad state: Future already completed
flutter:
flutter: When the exception was thrown, this was the stack:
flutter: #1      PaletteGenerator.fromImageProvider.imageListener (package:palette_generator/palette_generator.dart:188:22)
flutter: #2      ImageStreamCompleter.setImage (package:flutter/src/painting/image_stream.dart:282:17)
flutter: #3      MultiFrameImageStreamCompleter._emitFrame (package:flutter/src/painting/image_stream.dart:519:5)
flutter: #4      MultiFrameImageStreamCompleter._decodeNextFrameAndSchedule (package:flutter/src/painting/image_stream.dart:512:7)
flutter: <asynchronous suspension>
flutter: #5      MultiFrameImageStreamCompleter.addListener (package:flutter/src/painting/image_stream.dart:528:7)
flutter: #6      ImageStream.addListener (package:flutter/src/painting/image_stream.dart:156:25)
flutter: #7      PaletteGenerator.fromImageProvider (package:palette_generator/palette_generator.dart:200:12)
flutter: <asynchronous suspension>
flutter: #8      _TestScreenState._updatePaletteGenerator (package:test_app/screens/test_screen.dart:28:22)
flutter: #9      _TestScreenState.initState (package:test_app/screens/test_screen.dart:15:5)
flutter: #10     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3763:58)
flutter: #11     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3629:5)
flutter: #12     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14)
flutter: #13     Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12)
flutter: #14     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4666:14)
flutter: #15     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14)
flutter: #16     Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12)
flutter: #17     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16)
flutter: #18     Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5)
flutter: #19     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3634:5)
flutter: #20     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3629:5)
flutter: #21     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14)
flutter: #22     Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12)
flutter: #23     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4666:14)
flutter: #24     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14)
flutter: #25     Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12)
flutter: #26     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4666:14)
flutter: #27     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14)
flutter: #28     MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4771:32)
flutter: #29     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14)
flutter: #30     Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12)
flutter: #31     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16)
flutter: #32     Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5)
flutter: #33     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3634:5)
flutter: #34     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3781:11)
flutter: #35     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3629:5)
flutter: #36     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14)
flutter: #37     Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12)
flutter: #38     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4666:14)
flutter: #39     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14)
flutter: #40     Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12)
flutter: #41     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16)
flutter: #42     Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5)
flutter: #43     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3634:5)
flutter: #44     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3781:11)
flutter: #45     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3629:5)
flutter: #46     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14)
flutter: #47     Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12)
flutter: #48     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4666:14)
flutter: #49     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14)
flutter: #50     Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12)
flutter: #51     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16)
flutter: #52     Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5)
flutter: #53     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3634:5)
flutter: #54     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3781:11)
flutter: #55     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3629:5)
flutter: #56     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14)
flutter: #57     Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12)
flutter: #58     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4666:14)
flutter: #59     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14)
flutter: #60     Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12)
flutter: #61     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16)
flutter: #62     Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5)
flutter: #63     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3634:5)
flutter: #64     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3781:11)
flutter: #65     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3629:5)
flutter: #66     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14)
flutter: #67     Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12)
flutter: #68     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16)
flutter: #69     Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5)
flutter: #70     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3634:5)
flutter: #71     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3629:5)
flutter: #72     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14)
flutter: #73     Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12)
flutter: #74     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16)
flutter: #75     Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5)
flutter: #76     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3634:5)
flutter: #77     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3781:11)
flutter: #78     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3629:5)
flutter: #79     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14)
flutter: #80     Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12)
flutter: #81     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4666:14)
flutter: #82     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14)
flutter: #83     Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12)
flutter: #84     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16)
flutter: #85     Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5)
flutter: #86     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3634:5)
flutter: #87     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3629:5)
flutter: #88     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14)
flutter: #89     Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12)
flutter: #90     SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4666:14)
flutter: #91     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14)
flutter: #92     Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12)
flutter: #93     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16)
flutter: #94     Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5)
flutter: #95     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3634:5)
flutter: #96     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3781:11)
flutter: #97     ComponentElement.mount (package:flutter/src/widgets/framework.dart:3629:5)
flutter: #98     Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14)
flutter: #99     Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12)
flutter: #100    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16)
flutter: #101    Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5)
flutter: #102    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3634:5)
flutter: #103    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3629:5)
flutter: #104    Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14)
flutter: #105    Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12)
flutter: #106    SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:4666:14)
flutter: #107    Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14)
flutter: #108    Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12)
flutter: #109    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16)
flutter: #110    Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5)
flutter: #111    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3634:5)
flutter: #112    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3629:5)
flutter: #113    Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14)
flutter: #114    Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12)
flutter: #115    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16)
flutter: #116    Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5)
flutter: #117    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3634:5)
flutter: #118    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3781:11)
flutter: #119    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3629:5)
flutter: #120    Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14)
flutter: #121    Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12)
flutter: #122    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16)
flutter: #123    Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5)
flutter: #124    ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3634:5)
flutter: #125    StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:3781:11)
flutter: #126    ComponentElement.mount (package:flutter/src/widgets/framework.dart:3629:5)
flutter: #127    Element.inflateWidget (package:flutter/src/widgets/framework.dart:2919:14)
flutter: #128    Element.updateChild (package:flutter/src/widgets/framework.dart:2722:12)
flutter: #129    RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4449:32)
flutter: #130    MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4781:17)
flutter: #131    Element.updateChild (package:flutter/src/widgets/framework.dart:2711:15)
flutter: #132    _TheatreElement.update (package:flutter/src/widgets/overlay.dart:507:16)
flutter: #133    Element.updateChild (package:flutter/src/widgets/framework.dart:2711:15)
flutter: #134    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16)
flutter: #135    Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5)
flutter: #136    StatefulElement.update (package:flutter/src/widgets/framework.dart:3811:5)
flutter: #137    Element.updateChild (package:flutter/src/widgets/framework.dart:2711:15)
flutter: #138    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16)
flutter: #139    Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5)
flutter: #140    ProxyElement.update (package:flutter/src/widgets/framework.dart:3921:5)
flutter: #141    Element.updateChild (package:flutter/src/widgets/framework.dart:2711:15)
flutter: #142    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4673:14)
flutter: #143    Element.updateChild (package:flutter/src/widgets/framework.dart:2711:15)
flutter: #144    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16)
flutter: #145    Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5)
flutter: #146    StatefulElement.update (package:flutter/src/widgets/framework.dart:3811:5)
flutter: #147    Element.updateChild (package:flutter/src/widgets/framework.dart:2711:15)
flutter: #148    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4673:14)
flutter: #149    Element.updateChild (package:flutter/src/widgets/framework.dart:2711:15)
flutter: #150    SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4673:14)
flutter: #151    Element.updateChild (package:flutter/src/widgets/framework.dart:2711:15)
flutter: #152    ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3665:16)
flutter: #153    Element.rebuild (package:flutter/src/widgets/framework.dart:3507:5)
flutter: #154    BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2255:33)
flutter: #155    _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:653:20)
flutter: #156    _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5)
flutter: #157    _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
flutter: #158    _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
flutter: #159    _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5)
flutter: #160    _invoke (dart:ui/hooks.dart:128:13)
flutter: #161    _drawFrame (dart:ui/hooks.dart:117:3)
flutter: (elided one frame from package dart:async)
flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════

The Solution
I replaced this code in package:palette_generator/palette_generator.dart:188:22:
imageCompleter.complete(info.image);

With this:
if (!imageCompleter.isCompleted) {
    imageCompleter.complete(info.image);
}

cc @gspencergoog

Hey, when i call method then getting error: StatefulElement.update (package:flutter/src/widgets/framework.dart:3811:5)
@override
void initState() {
super.initState();
widget.storage.readCounter().then((String value) {
  setState(() {
    _counter = value;
  });
});

Future<String> datavalue = widget.storage.readCounter().then((String value) {
  print("Except Value: ${value.toString()}");
  addDataToList(value.toString());
});

}
void addDataToList(String data) async
{
if(data == null)
  {
    setState(() {

      _list = ListModel<String>(
        listKey: _listKey,
        initialItems: <String>[""],
        removedItemBuilder: _buildRemovedItem,
      );

    });
  }
  else {
  List<String> parts = _counter.split("::\n");
  _list = ListModel<String>(
    listKey: _listKey,
    initialItems: parts,
    removedItemBuilder: _buildRemovedItem,
  );
}

}

@MohdLucky, sorry, but your comment doesn't appear to have anything to do with the PaletteGenertor issue here.
Can you please create a new issue with more information? (I'm going to hide your comment here so it doesn't clutter up this issue.)

The PR was merged.
@afnx did this fix your issue?

Sorry, I meant to close this.  @afnx, please comment here and/or open a new issue if it doesn't solve your issue.

Hi,
While adding palette_generator reference, I am getting an error like this.
Please suggest.
Compiler message:
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/palette_generator-0.1.1/lib/palette_generator.dart:188:29: Error: The argument type 'void Function(ImageInfo,
bool)' can't be assigned to the parameter type 'ImageStreamListener'.

'ImageInfo' is from 'package:flutter/src/painting/image_stream.dart' ('file:///C:/src/flutter/packages/flutter/lib/src/painting/image_stream.dart').
'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' ('file:///C:/src/flutter/packages/flutter/lib/src/painting/image_stream.dart').
Try changing the type of the parameter, or casting the argument to 'ImageStreamListener'.
stream.removeListener(imageListener);
^
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/palette_generator-0.1.1/lib/palette_generator.dart:194:31: Error: The argument type 'void Function(ImageInfo,
bool)' can't be assigned to the parameter type 'ImageStreamListener'.
'ImageInfo' is from 'package:flutter/src/painting/image_stream.dart' ('file:///C:/src/flutter/packages/flutter/lib/src/painting/image_stream.dart').
'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' ('file:///C:/src/flutter/packages/flutter/lib/src/painting/image_stream.dart').
Try changing the type of the parameter, or casting the argument to 'ImageStreamListener'.
stream.removeListener(imageListener);
^
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/palette_generator-0.1.1/lib/palette_generator.dart:201:24: Error: The argument type 'void Function(ImageInfo,
bool)' can't be assigned to the parameter type 'ImageStreamListener'.
'ImageInfo' is from 'package:flutter/src/painting/image_stream.dart' ('file:///C:/src/flutter/packages/flutter/lib/src/painting/image_stream.dart').
'ImageStreamListener' is from 'package:flutter/src/painting/image_stream.dart' ('file:///C:/src/flutter/packages/flutter/lib/src/painting/image_stream.dart').
Try changing the type of the parameter, or casting the argument to 'ImageStreamListener'.
stream.addListener(imageListener);

@jimbeveridge @jitheshkramesh Flutter update its api.
You should change that package calling style. But as for how, I do not know.
I am also got same error:
Try changing the type of the parameter, or casting the argument to 'ImageStreamListener'.
      stream.removeListener(imageListener);


New References - Feature flag

Context
We're developing a new references flow – we need to wrap this around a feature flag to allow us to build it in parallel the the existing references journey.
Changes proposed in this pull request
Add the new_references_flow feature flag
Link to Trello card
https://trello.com/c/r8VLtIc3/420-references-add-a-feature-flag
Things to check

[x] If the code removes any existing feature flags, a data migration has also been added to delete the entry from the database
[x] This code does not rely on migrations in the same Pull Request
[x] If this code includes a migration adding or changing columns, it also backfills existing records for consistency
[x] If this code adds a column to the DB, decide whether it needs to be in analytics yml file or analytics blocklist
[x] API release notes have been updated if necessary
[x] Required environment variables have been updated added to the Azure KeyVault

 References: Add a feature flag


HI what is the difference between examples and java folder's demo

Can anyone tell me which tensorflow lite demo is good,cuz i met problem with both
1.https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/java/demo/app
and the problem is Plugin with id 'com.android.application' not found.
2.https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/lite/examples/android
and this is more weird ,BUILD\android-profile
thx
as 3.0

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks.
Have I written custom code
OS Platform and Distribution
TensorFlow installed from
TensorFlow version
Bazel version
CUDA/cuDNN version
GPU model and memory
Exact command to reproduce

It has been 15 days with no activity and the awaiting response label was assigned. Is this still an issue?

This question is better asked on StackOverflow since it is not a bug or feature request. There is also a larger community that reads questions there.
If you think we've misinterpreted a bug, please comment again with a clear explanation, as well as all of the information requested in the issue template. Thanks!


Adjacency class can't accommodate directed matrix_types

Symmetrical matrices seem to be working well, but nonsymmetrical matrices are failing using squareform.

fixed.


ImGui mobile default settings

ImGui is a bit hard to use on mobile, it might make sense to set a different style (bigger elements, and 'touch-padding' etc...) by default in the ImGuiStyle settings.
Also: on Android, when HighDPI rendering is on, ImGui should render everything 2x bigger (on iOS this happens automatically since iOS has a fixed smaller virtual resolution even when the backbuffer is high-dpi-enabled.

not implemented, but closing this for now


Make directories more consistent

Hey @wooga, is there a way I can contribute to this library and help maintaining and improving it?


Flashing Nodemcu

Hello, I'm trying to flash a Nodemcu but I'm getting this error even if I press the flash button on the board:
A fatal error occurred: Timed out waiting for packet header

What am I doing wrong?
Thanks for putting so much effort into this project, I appreciate your help.

I usually get this error when the flash parameters are not correct or if the partition table is overwritten.
Maybe a full flash erase (before flashing the software) might solve your problem.
~/Arduino/hardware/espressif/esp32/tools/esptool.py --port /dev/ttyUSBx erase_flash

Change /dev/tty/USBx with the port your NodeMCU is connected to.

I did the full flash erase and lower flash speed but it doesn't work:

These are my settings:

I tried to change the port where my nodeMCU is connected:
~/arduino-1.8.10/arduino --board espressif:esp32:mhetesp32minikit --pref custom_DebugLevel=esp32_none --port /dev/cu.SLAB_USBtoUART  --pref upload.speed=921600 --preserve-temp-files --pref build.path=temp --pref build.partitions=default_ffat --pref build.flash_freq=80m -v --verify aquacontrol32.ino | grep  -e 'Using core' -e 'Using board' -e ' uses ' -e 'Using library' -e 'Compiling' -e 'Global'
rm gitTagVersion.h

and this:
~/arduino-1.8.10/arduino \
  --board espressif:esp32:mhetesp32minikit \
  --port /dev/cu.SLAB_USBtoUART \
  --preserve-temp-files \
  --pref build.path=temp \
  --pref upload.speed=921600 \
  --pref custom_DebugLevel=esp32_none \
  --pref build.partitions=default_ffat \
  --pref build.flash_freq=80m -v \
  --save-prefs \
  --upload aquacontrol32.ino \

But If I try to flash it with another code it works:

So I think it has something to do with the settings ...
I would really appreciate your help. :)

I guess it's because the board is not ESP32... :(
Is there a possibility to flash it with a ESP8266?

No that will nog work.


Window Spotlight not working as intended

Hello, I have installed Nilesoft Shell and am experiencing a problem regarding windows spotlight.
When Windows Spotlight is set as the source for wallpapers, it creates an icon on your desktop called "Learn about this picture" which you can right click allowing you to change the wallpaper.
However, with Nilesoft the right click menu for windows spotlight isn't showing up.
This is with Nilesoft Disabled.

This is with Nilesoft Enabled.

https://github.com/moudey/Shell/issues/354

https://nilesoft.org/download#canary
with the canary version you can achieve the following result

I see, thank you.

AverageBlank which version of windows do you have?

Unfortunately, the problem persists. I have no "Switch to next picture" option in the context menu from Shell :(
Canary version 1.9.14, Windows 11 Pro 23H2 22631.3085


Request for amd support

Please consider adding support for consumer grade amd gpu like 7900xtx

@Wintoplay It should work with the pytorch compile backend. Have you tried it?

Out of memory for cpu part. (32 gb)
Use only 13 gb for gpu vram.

Oh, I see.that's why cpu goes OOM. It is mixtral 8x7 4bit for router and 2 bit for experts.

Use this pre-quantized model instead: https://huggingface.co/mobiuslabsgmbh/Mixtral-8x7B-Instruct-v0.1-hf-attn-4bit-moe-2bitgs8-metaoffload-HQQ


Missing parent class name in message context while extract nested class data annotation

As title, while working with nested class and using DisplayAttribute, it's only append child class name and ignore parent class name in msgctxt

This could be done after 1.0,0, it would be great if you want to implement this

Yeah sure


[ENH] add easy access to googlenet layer names

Addresses issue raised in this tweet
The layer names are always accessible in sklearn_theano.feature_extraction.caffe.googlenet.fetch_googlenet_architecture, but this is very much hidden and isn't explained anywhere. However, easy access to the layers is necessary in order to be able to choose from them for the GooglenetTransformer/Classifiers.
This PR adds the attributes GooglenetTransformer.layers and GooglenetClassifier.layers for easy browsing.

CC @kastnerkyle OK for .layers or should it be .layer_names ?

I think .layer_names is clearer


Creating CRUD Services for Instances

[ ] The current functionalities of creating ,retrieving ,updating and deleting the instance under the templates should be available as a service.
[ ] There should be automated tests for this service

The services should be defined explicitly for all the end points.So, there should be separate services for
Templates,Instances and About endpoints talking to the main controller.
Also, the unit test for each services and the main controller should be defined separately.

@IshmeetKaur it seems that the function for changing the template is missing:

It is probably because of instCtrl.dropdown.templates being empty. Because the code in newInstanceModal.html is still there.
<div class="input-group" ng-if="instCtrl.dropdown.templates != null">


Mainnet nodes are making >4mm rpc calls / day over rpc to base. Why?

An operator is noticing >4mm rpc calls / day to Base (non-tx calls). Questions follow below.
How do Base rpc calls scale in the stream node and by which system are they constrained ? It seems there's a chain monitor in chain_monitor.go that runs for xchain against Base chainId 8453 with a poll loop that calls eth_getFilterLogs to process callbacks, but it's unclear whether the ChainMonitor polling loop constrains eth_call (non-transactional) rpc calls to Base from the stream node or whether there's another part of the system responsible for this level of throughput.
Also, which prom metrics should be used to isolate this network activity by chainId 8453 ?
Is it:

chain_monitor_pollcounter

Do we need to add lower level counters for eth calls made to base ?

The chain monitor performs eth_getBlockByNumber and eth_getLogs. It doesn't call eth_call. chain_monitor_pollcounter is plotted in a DD dashboard which shows that the chain monitor is making the expected amount of calls (~0.55 per second) on chain metrics that we have access to. I expect that this is also the case for that node.
Recently stream scrubbing was introduced. Each scrub task requires multiple eth_calls for each channel member. There is caching logic that prevents doing the same check too often but maybe there is some misconfiguration, a bug or there are simply a lot of channel and members.
Here is a trace that makes 1246 eth_calls in a single scrub task.

The chain monitor performs eth_getBlockByNumber and eth_getLogs. It doesn't call eth_call. chain_monitor_pollcounter is plotted in a DD dashboard which shows that the chain monitor is making the expected amount of calls (~0.55 per second) on chain metrics that we have access to. I expect that this is also the case for that node.
Recently stream scrubbing was introduced. Each scrub task requires multiple eth_calls for each channel member. There is caching logic that prevents doing the same check too often but maybe there is some misconfiguration, a bug or there are simply a lot of channel and members. I suspect that stream scrubbing it the major contributor to the high amount of calls.
Here is a trace that makes 1246 eth_calls in a single scrub task.

There are 415 people in this channel. Therefore 1246 calls is 3 * # of people + 1.
Every linked wallet calculation is a maximum of two calls, and for a user with no linked wallets, the space membership will be another call. So 3x the # of users is expected if each user has no linked wallets. The extra call would probably be fetching channel entitlements for the READ permission.
I checked the space itself and all roles are user entitlement roles, so once the entitlement is fetched, there should be no eth calls required to evaluate it.

eth_call volume likely originating from scrubber as per @clemire . Will explore a positive/negative cache which will eliminate ~1/3 of call volume (excl linked wallets) and increasing scrubber interval as well.

A change was deployed to increase scrubbing duration by 4x, and isMember caching was also deployed. linked wallets caching is in progress. I am also working on metrics now.

LInked wallets caching was merged, metrics also merged today. I will solicit RPC metrics from Unit410 after they deploy but I expect at least 4x reduction due to the frequency change for scrubbing, so I'm not worried about this.

I will check in again with unit410 on this one, but after a day of deployment it looks like eth calls went down about 75%, indicating that the caching didn't help much, but the scrubbing interval change was successful.

The decrease may have been > 75%, it's a bit hard to tell, but rpc counts for unit410s nodes have dropped to about 1 million a day, which looks reasonable. From them, "I think you can close it."
cc @jterzis, I'm closing this one out but please reopen if you have concerns.


graphviz: Make derivations pure on non-NixOS systems.

Motivation for this change
Without these flags the graphviz configure script will look for libltdl in /usr/lib (and will likely find it on non-NixOS systems). Making these paths explicit makes the graphviz derivations pure on non-NixOS systems.
Things done

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

[x] NixOS
[ ] macOS
[x] Linux

[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Mention bot didn't kick in. @bjornfor and @raskin are listed as maintainers.

Pushed to master (528d353b654e66f310f7544cf7a1bff913cf3c0d). Thanks!


[Bug] Reactive systems don't response on to events that are generated with IUpdateSystem implementations

Bug report
When some entity was changed within an updateable system a reactive one doesn't response to the event.
Environment
Win 10 (x64) / Visual Studio 2017 / Unity3D 2018.3.0f2
Steps to reproduce the issue

Define some system that's executed every frame

class TestSystem: IUpdateSystem
{
    protected IWorldContext mWorldContext;

    public TestSystem(IWorldContext worldContext)
    {
         mWorldContext = worldContext;
    }

    public void Update(float deltaTime)
    {
        IEntity e = mWorldContext.GetEntityById(mWorldContext.CreateEntity());

        e.AddComponent<TestComponent>();
    }
}

Define some reactive system:

public TestReactiveSystem: BaseReactiveSystem
{
    public TestReactiveSystem()
    {
    }

    public bool Filter(IEntity entity)
    {
         return entity.HasComponent<TestComponent>();
    }

    public void Update(List<IEntity> entities, float deltaTime)
    {
         // this code won't be executed
    }
}

Register these systems in a system manager in any order.

What's the expected result?
All reactive systems should react in some way on to all occurred events and filter them.
What's the actual result?
Reactive systems don't response to events that are generated with updatable systems that implements IUpdateSystem interface.

Fixed in 696b557b0286e4a1718510f227dbfacd482d3723


Allow custom extension for brotli files

As discussed here there is no official extension for brotli files yet. Furthermore files with the .br extension introduce issues in Apache since .br is the ISO 639 language code for Breton.
Therefore I have added support for custom extensions.
This PR includes:

Necessary code changes
A test for the added functionality
Updated README file

I have used more or less the same approach as the gulp-gzip plugin.

While it's true there is no official extension yet, `.br. already has momentum:

https://github.com/madler/brotli/blob/master/br-format-v3.txt
There's this proposal for the brotli framing format using .br.
https://github.com/google/ngx_brotli#brotli_static
Google's brotli module for nginx checks for the .br file extension.

This also needs to document that decompress can accept an optional options object.
### compress([options])
#### Default compression
#### Custom compression
### decompress([options])
#### Default decompression
#### Custom decompression

Thanks for your review. I have updated the PR based on your feedback and squashed my commits.
Since the extension now is a subproperty of the options object the README has been reworded. I'm not entirely satisfied with how it is now though. Feel free to change this or suggest changes.

Thanks! I'll do the last fixes myself.


kargo install breaks glusterfs

Is this a BUG REPORT or FEATURE REQUEST? (choose one):
bug report
Environment:

bare metal
ubuntu 14/16.04/centos 7

Version of Ansible
<IP_ADDRESS>
**Kargo version **
ac96d5c
Network plugin used:
calico, also tried flannel
Anything else do we need to know:
glusterfs-server install via native apt-get performs correctly before kargo deploy. post kargo deploy, glusterfs stops working. have tried disabling all iptables rules, killing all services installed via kargo, still glusterfs fails. it seems kargo is affecting linux sockets? tcpdump show packets traveling over interface correctly preinstall. tcpdump post kargo deploy shows no packets across any interface.
i've tried debugging this to every extent i and google knows of, yet somehow gluster breaks after kargo install.
** Steps to reproduce **
deploy ubuntu 14/16 or centos 7 to 2+ nodes.
install glusterfs-server
peer probe external gluster server...success.
deploy kargo to nodes
peer probe same external gluster server, either native os package management or to docker deployed glusterfs container...timeout ensues.
as far as i have been able to debug, it seems something is wrong with the host's sockets, but i don't know how to debug this further.
see https://github.com/gluster/gluster-kubernetes/issues/215

has anyone been able to figure out how to get glusterfs working on kargo-bootstrapped nodes?
I'm getting Request timed out on ubuntu nodes and on centos7 nodes it simply shuts down the glusterd service.

so here's what I found. Specifically this setting is the one that breaks glusterfs compatibility with kargo:
Kargo adds two lines to sysctl.conf. This is the offending line that causes glusterfs to break:
/etc/sysctl.conf
net.ipv4.ip_local_reserved_ports=30000-32767
Without digging too much into it - my guess is that this means that kargo sets up a limited access to allow those ports only, and gluster is failing to connect to 24007-24008 after that.
Is there a way to make kargo and glusterfs to be more friendly to each other? How would I need to do this?
Thank you for any help.

Stuck in the same issue.. Request timed out while trying to probe the peers.
any help will be much appreciated...

This was supposedly fixed in gluster3.10 though im having this issue as well.

@kwtalley were you able to resolve this?

I managed to get over it by setting an ansible group variable:
kube_apiserver_node_port_range:

@AlterEgo7 What range did you happen to use? Glusterfs ports, atleast for me, are all over the place.

Found the root cause on this one. It's a gluster bug. Gluster is using a short int for net.ipv4.ip_local_reserved_ports and gets a seg fault with the 30000-32767 range
https://bugzilla.redhat.com/show_bug.cgi?id=1454418
https://review.gluster.org/#/c/17359/

@kwtalley I've created a gluster-centos image with glusterfs 3.12 which solves this issue, you can use this branch as a workaround for now.
https://github.com/gluster/gluster-kubernetes/pull/347

closing, it's fixed on glusterfs side


Weird Chart Editor Event Behavior (Latest Experimental Commit)

Describe your bug here.
When adding an event, the event works completely fine. But when clicking or doing an action in the 0 noteData (1 note for BF side) the event disappears as if the event was being the note. And when locking the event section, the note makes a new one over the old and and this behavior can also be done with event notes, both end up stacking up a lot.
https://github.com/user-attachments/assets/eedd600e-8b0a-459c-9fa0-2742ad2e783a
Command Prompt/Terminal logs (if existing)
No response
Are you modding a build from source or with Lua?
Source
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
No. All code from PE experimental.

I've noticed that indeed the chart editor is not completed, there is still few things that are not complete, and I suppose that's why this bug happened.

Fixed!


error no configs given

i try to log in and error says no configs given please fix this asap its urgent

i need the answer on how to fix pls

i am having the same problem, pls tell me what to do

how we can fiz it please tell us


[BrainPOP] Add extractors

IMPORTANT: PRs without the template will be CLOSED
Description of your pull request and other information

Adds BrainPOP movie extractor for the main website, localized spanish/french/hebrew websites, alongside BrainPOP Jr. and BrainPOP ELL.
Solves https://github.com/ytdl-org/youtube-dl/issues/10000
Template

Before submitting a pull request make sure you have:

[x] At least skimmed through contributing guidelines including yt-dlp coding conventions
[x] Searched the bugtracker for similar pull requests
[x] Checked the code with flake8 and ran relevant tests

In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[x] I am the original author of this code and I am willing to release it under Unlicense
[x] I am not the original author of this code but it is in public domain or released under Unlicense (I might've been influenced by https://github.com/ytdl-org/youtube-dl/pull/10025?)

What is the purpose of your pull request?

[ ] Fix or improvement to an extractor (Make sure to add/update tests)
[x] New extractor (Piracy websites will not be accepted)
[ ] Core bug fix/improvement
[ ] New feature (It is strongly recommended to open an issue first)

I believe there are a more localised versions of brainPOP, although I don't have time to find them right now

Nevermind, there aren't any other localisations (although https://science.brainpop.com/ might have videos)


Test storage pool usage when RBAC is enabled

Signed-off-by: gprasath<EMAIL_ADDRESS>
What this PR does / why we need it:
Testing the storage pool usage when RBAC is enbaled with 4 different conditions
operator-ns  PVC Namespace	 Path	Storage pool uses
default	    default	   /mnt/openebs	 /mnt/openebs
default	    non-default	   /mnt/openebs	 /mnt/openebs
non-default  default	   /mnt/openebs	 /mnt/openebs
non-default  non-default   /mnt/openebs	 /mnt/openebs
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #1264
Special notes for your reviewer:
Karthik please review this PR.

@ksatchit please review this PR.


Add env var to allow TB profiler plugin to check if it was started in VS Code

/cc @nbcsm @gaoteng-git

Ping @paulacamargo25, would appreciate your review on this PR!

Thanks @karrtikr @karthiknadig 😊


[lit-html] Add spread directive and attr templates

This needs more tests and I'm not entirely happy with using the private object this way, but the general approach works and is small.
Tests needed:

[ ] - AsyncDirective lifecycle in all binding types
[x] - Multiple spread directives on an element
[x] - Removing the spread directive
[x] - Collisions between spread and normal bindings

How do you feel about having a directive which spreads only properties, and one that spread binding like the current implementation? A very common use case is spreading an object of properties, often coming from some other source. Right now users would need to always transform the object to have all keys start with a .. Or they won't notice and always set attributes, which isn't great.

I think that's a good idea, but hopefully can be well expressed as a wrapper on this:
spreadProps = (props) => spread(Object.fromEntries(Object.entries().map(([k, v]) => ['.' + k, v])));

If the Object.fromEntries(Object.entries()..) bit is too much work we can look at customizing the name->part mapping with a callback.

@justinfagnani that wrapper would do quite a lot of work each render though, so would be nice to make that more convenient.

Is there news on this? Thanks in advance!
The Carbon team is interested in use it:
https://github.com/carbon-design-system/carbon-web-components/issues/657#issuecomment-902666314
It's one of the main things they are waiting to update to Lit v2.
cc @jeffchew

any chance this is going to happen within January 2022?
we are thinking about waiting or hacking our own version for now 😅

It'd be great to have this feature soon. I had upgraded without realizing it was missing and now I'll need to downgrade back.
If figuring out how to be deterministic when there are multiple objects with duplicate keys, why not simply limit it to a maximum of one spread operation per object and let them merge objects before. Then you don't have to try and come up with a deterministic approach for everyone, as they can solve it beforehand themselves.
This PR was started back 7 months ago and we still don't have a solution. =S


feat: Github receiver - implementation for enterprise logs

Proposed Change
GitHub's audit logs are used to keep track of events in an enterprise, organization, or user events. In order to access these logs, one must have a GitHub Enterprise Cloud account.
(https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/audit-log-events-for-your-enterprise)
Because there is an extensive amount of logs that GitHub provides, I first implemented a solution with Enterprise logs. I would like feedback on the receiver logic and what I can do better. I will continue to work on implementing logic that supports Organization and User logs. For now, this is the first iteration of the githubreceiver.
I still have yet to hear back from the people on opentelemetry-collector-contrib on their thoughts on my implementation of audit logs. Their implementation uses web hooks and metrics, both of which I am not using yet.
Checklist

[x]  Changes are tested
[x] CI has passed

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

You will also need to make some small changes in the docs/receivers.md file and factories/receivers.go similar to this PR: https://github.com/observIQ/bindplane-agent/pull/1814/files
But I see this is a draft pr and you are waiting on a few other parts & open source so no biggie just wanted to make sure you were aware


Support using AVX and even AVX512

Nowadays, most mainstream x86 CPUs support AVX, which supports doing integer computation on 256bit. I believe that would further improve the performance.
Intel may start shipping CPUs which support AVX512 in the coming year. AVX512, as its name indicates, supports computation on 512bits. This should probably be considered as well I guess.

Not sure whether the reference implementation already takes the advantage of AVX, but it seems on my machine, it is much faster than this Rust implementation:
running 2 tests
test bench_argon2rs_i ... bench:  10,646,195 ns/iter (+/- 764,309)
test bench_cargon_i   ... bench:   7,329,629 ns/iter (+/- 132,919)

(This is > 30% difference, while the difference shown in the README is only ~20%)

It seems the reference implementation doesn't take the advantage of AVX either. Even if compiled with -march=nocona, it is still much faster.

So I discovered this afternoon that using codegenning AVX is a simple matter of:
$ export RUSTFLAGS='-C target-feature=+avx'
$ cargo clean
$ cargo bench --features simd
$ objdump -d target/release/argon2rs-*7 | grep vpalignr | head -n 2  # confirm.
   1644d:       c4 e3 51 0f e7 08       vpalignr $0x8,%xmm7,%xmm5,%xmm4
   16453:       c4 e3 41 0f ed 08       vpalignr $0x8,%xmm5,%xmm7,%xmm5

which does wonders for the cross-swap operations in the Argon2 permutation function.

It seems the reference implementation doesn't take the advantage of AVX either. Even if compiled with -march=nocona, it is still much faster.

In fact, the ref-impl does try to exploit AVX. See, for instance, blamka.
The ifdef is keyed to SSSE3, but according to https://software.intel.com/sites/landingpage/IntrinsicsGuide/#expand=80,2369,547,228&techs=MMX,SSE,SSE2,SSE3,SSSE3,SSE4_1,SSE4_2,AVX,AVX2&text=vpalign , vpalignr is AVX2. Go figure.
Unfortunately, cargon's build.rs was compiling without -march=native, which would be necessary for the above ifdef to pass. This has been fixed in 045a54 of the go-faster branch.

And on the topic of go-faster, would you mind re-running the benches with +avx and --features simd on that branch? The numbers I'm getting are quite favorable now:
23:11:48 ~/argon2rs/> RUSTFLAGS='-C target-feature=+avx' cargo bench --features simd
     Running target/release/versus_cargon-9211de8e436df972

running 3 tests
test ensure_identical_hashes ... ignored
test bench_argon2rs_i ... bench:   8,488,636 ns/iter (+/- 32,292)
test bench_cargon_i   ... bench:  10,011,768 ns/iter (+/- 491,314)

test result: ok. 0 passed; 0 failed; 1 ignored; 2 measured

It seems whether AVX is enabled doesn't change things a lot.

$ cargo bench --features=simd
test bench_argon2rs_i ... bench:   8,380,176 ns/iter (+/- 584,836)
test bench_cargon_i   ... bench:   7,336,689 ns/iter (+/- 264,857)
$ RUSTFLAGS="-C target-feature=+avx" cargo bench --features=simd
test bench_argon2rs_i ... bench:   8,356,828 ns/iter (+/- 784,442)
test bench_cargon_i   ... bench:   7,317,043 ns/iter (+/- 319,753)

Although it is still not as fast as the reference implementation here, it is indeed much faster than before, good job!

Looks like the only difference is not calling crossbeam when not needed :)


modify term file

For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md
Commit Message:
Additional Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Deprecated:]

@majinghe 小马哥，我修改了下术语表，你看下可以不

@scilla0531  well done。👍。以后这种你自己可以直接merge。


SwedishCoordinationNumberTestData, potentially invalid numbers in Skatteverkets test data

The test data provided for coordinationnumbers from Skatteverket contains several numbers where the "month" part is 0. This is to my understanding invalid. All the links with information on coordination numbers (see #13) state that the 6 digits of the 10-digit coordination number follow the same rules as in a personal identification number with the exception that 60 is added to the date.
I have sent a question to Skatteverket asking for clarification, but in the meantime I will remove any such numbers from the test data set.
So depending on what we find out, we either need to fix our implementation for coordination number to allow for month=0. And re-add these numbers to the test data set. Or in the other cas we can close this issue.

And when I filtered out the numbers with month=0 then the validation fails on the day, for which there are several numbers with coordination day=60. Which should not be possible since that means the real day is 0. (Coordination day is calculated as day + 60).


create Readme for Others section

How to create a Readme for others?
1.Copy each component code and paste it in Tailwind Playground
2.Take a screenshot of that. (Make sure to have a proper aspect ratio. 16:9 will be good) and add it to the readme in the table format
3.Make sure to enclose the screenshot under anchor tag so that one can just choose the stats and after clicking that image will be redirected to the code of that component.
NOTE:- Make sure each component screenshot is of equal size so that it fits in the layout.
For Reference you can see Button Readme

assign me @Rajdip019


[bugfix] initialize "module->retain_function" for wasm_mini_loader

Before resolving the module function's export in wasm_mini_loader,
"module->retain_function" need to be initialized, otherwise,
the "__new" function export will lead to abort.
issue: https://github.com/bytecodealliance/wasm-micro-runtime/issues/1332

The failing cases seem unrelated to this commit, PTAL @wenyongh @XuJun2019 @xwang98

LGTM


Add maximum_terraform_version

Our stuff doesn't support the newer terraform 0.7 stuff.

Credit goes to @alexmuller


Bad results in the task of city2city_foggy

Thanks for amazing work.
I have a problem when i run the demo in the task of city2city_foggy, the map of the results is only 21% after 24 epochs, which is much lower than the result in the paper. It seems that the model didn't converge.
Since I use only one GPU, i didn't use the distributed training mode. I simply ran main_da.py --hda 1 --cmt --with_box_refine --two_stage,
and i changed the lr and lr backbone to 5e-5 and 5e-6 because my batch_size is 1.
i also tried  lr =1e-4 and lr backbone=1e-5,  however it seems that the result is still bad.
I wonder whether there is a pretrained model used in deformable detr.

Hi, thank you for your interest.
Firstly, following existing domain adaptive object detection methods, we adopted AP50 as the evaluation metric. The AP is a much more strict metric than AP50, thus it should be lower than AP50. Please track the AP50 performance for a fair comparison.
Secondly, all our experiments are implemented with a batch size of 4, thus I would suggest you try SFA using the same batch size. A batch size of 1 is probably too small for training detection transformers.
Thirdly, both SFA and the source-only Deformable DETR are trained with ImageNet-1K pre-trained ResNet50 backbone. The transformer part, however, is trained from scratch, as did in the original Deformable DETR.
Hope these answers could help you.

Thanks for amazing work. I have a problem when i run the demo in the task of city2city_foggy, the map of the results is only 21% after 24 epochs, which is much lower than the result in the paper. It seems that the model didn't converge. Since I use only one GPU, i didn't use the distributed training mode. I simply ran main_da.py --hda 1 --cmt --with_box_refine --two_stage, and i changed the lr and lr backbone to 5e-5 and 5e-6 because my batch_size is 1. i also tried lr =1e-4 and lr backbone=1e-5, however it seems that the result is still bad. I wonder whether there is a pretrained model used in deformable detr.

Single GPU will not work which is similar to DeformableDETR.You should try larger batch_size, but larger batch_size employed in Single GPU may be out of Cuda memory


extension version rollback in terminal failed.

vscode version:1.59.1
date:2021/08/19
chrome:91.0.4472.124
OS:Windows_NT x64 10.0.19043
description(operating with ms-vscode.cpptools as an example) :
I want to update cpptool from 1.6.0 to 1.5.1 in terminal with command: code --install-extension<EMAIL_ADDRESS>The command executes successfully.
After I reopen the vscode, extension manager show that the version of cpptools is still 1.6.0.
picture as follow:
1.update command

2.reopen the vscode, cpptools still 1.6.0

Thanks for Any Suggestion!

Do you have auto update enabled for extensions? If so you are hitting a limitation when installing specific version from CLI - https://github.com/microsoft/vscode/issues/63903
You can always install a specific version from the gear icon > Install Specific Version in extensions UI

Do you have auto update enabled for extensions? If so you are hitting a limitation when installing specific version from CLI - #63903
You can always install a specific version from the gear icon > Install Specific Version in extensions UI

Yes,auto updating is turned on.
Thank You！
problem solved.


Add a "create-plugin-template" command

We should add a command to our CLI which generates a plugin template from which a developer can start working.

Superseded by #242


Unstable functionality in Serde

Currently unstable

[ ] Never type https://github.com/rust-lang/rust/issues/35121

Serialize and Deserialize impls for !

[ ] core::error::Error https://github.com/rust-lang/rust/issues/103765

used as the implementation for serde::{ser,de}::StdError

Stabilized

[x] Serialize and Deserialize for NonZero* https://github.com/rust-lang/rust/issues/49137

Stabilized in 1.0.60 #1278

[x] Deserialize for Box<CStr> https://github.com/rust-lang/rust/issues/40380

Requires CString::into_boxed_c_str
Stabilized in 1.0.61 #1284

[x] Deserialize for dynamically sized Rc / Arc https://github.com/rust-lang/rust/issues/40475

Requires From<Box<T>> for Rc<T> / Arc<T>
Stabilized in 1.0.61 #1285

Removed

[x] Specialization https://github.com/rust-lang/rust/issues/31844

The default collect_seq and collect_map used to specialize for ExactSizeIterator.
Removed in #1841.

Feature zero_one just died. Can we have new versions on both 0.9 and 1.0?

Submitted https://github.com/serde-rs/serde/pull/898 for zero_one.

Thanks so much for the clarification, I didn't realize I was using an outdated nightly!

I updated the list to reflect functionality that was stabilized in Serde 1.0.60 and 1.0.61. These are no longer behind the "unstable" cfg.

Added never_type in #1302.

Added error_in_core in #2344.

Would it be appropriate to add support for Vec<T, A: Allocator>/Box<T, A: Allocator> under this feature flag?
If so, I can submit a PR in some near future.

Error in core has been stabilized. Would it be appropriate to make StdError = core::error::Error when minor >= 81?


[Bug Report] inline-style in element-ui conflicts with "unsafe-inline" CSP policy

Element UI version
2.7.0
OS/Browsers version
Mac OS High Sierra - Google Chrome
Vue version
2.6.6
Reproduction Link
https://jsfiddle.net/9wyp53dm/
Steps to reproduce

Start a project with Vue CLI 3. This will contain a 'yarn build' script which triggers 'vue-cli-script build'
Add CSP headers in "index.html" of the form: "style-src: 'self' " ( so WITHOUT 'unsafe-inline')
Run "NODE_ENV=production yarn build" with element-ui included in sources
The production build will include a "chuck-vendor.js" file, also containing the element-ui output
In this "chunck-vendor.js" file, there will be a line containing inline-styles ("... setAttribute("style", ,s ";" $) ")
(This can be found in the element-ui files 'input > src > calcTextareaHeight.js' line 70: "hiddenTextarea.setAttribute('style', ${contextStyle};${HIDDEN_STYLE});")
(This line are UNSAFE_INLINE styles. CSP headers will not allow this.)
Serve your "dist" folder with "serve -s dist" command
Google Chrome signals CSP problems with unsafe-inline styles

What is Expected?
To be able to build for production without unsafe-inline styles so I can use CSP directives.
What is actually happening?
CSP directives are blocking the production build because there is unsafe-inline style from element-ui sources.

We won't fix it.
Inline css is required for some functions. (e.g. textarea auto resize, dialog popup overlay, loading overlay).

Ok, too bad. Gotta find another way then.

This plugin is not affected by this problem and works better than the Element UI version. Maybe it could be integrated. https://www.npmjs.com/package/vue-textarea-autosize


Fix typo for log.

This aligns with unary_float.cpp.

Address https://github.com/KhronosGroup/OpenCL-CTS/issues/1994.

@svenvh , @bashbaug , thanks for reviewing the PR.


es6 prop checks work for React but not React Native

In the same React Native project, the following works:
import { Component } from 'react';

class MyText extends Component<void, {text: string}, void> {
  render() { return <Text>{this.props.text}</Text> }
}

// Correctly throws a flow error for the missing "text" prop
const renderedText = <MyText />;

and the following doesn't:
import { Component } from 'react-native'; // <- This is the only difference

class MyText extends Component<void, {text: string}, void> {
  render() { return <Text>{this.props.text}</Text> }
}

// Throws no error
const renderedText = <MyText />;

The only difference is if I import Component from React or React Native. Would it be possible to expand Flow's built-in React definitions to cover React Native as well for proptype validation?

Never mind, I think this can be easily solved within the RN repo.


Missing images and code

I thank the authors for their great work! However, some of the images in the dataset are unavailable now. For example, '5616_15602534299_2c05a69cdf_o.jpg' and '9_8451_8032464156_50e0b58cd9_o.jpg' are missing in the eval split, and much more in the train split. Can you share the missing images? Also, the link to the code to reproduce the experiments is not working.

I believe all the missing images are real images from Open Images. We are working with on fixing those unavailable images because there could be legal issues. The link should be working now.


Function Timers

Adding some kind of timer for individual functions to more readily identify hotpots in both Numba and Python mode. Working fork and branch
Obj mode in numba screws us over and the timing doesn't seem to be correct when comparing total wall clock runtime.
Things todo:

[ ] Investigate numba mode timing functions
[ ] Make run on multiple processors

To use the function timer add the argument --use_timer=True to your terminal command. Ex: python input.py --use_timer=True or python input.py --use_timer=True --mode=numba.
The timing functionality uses wrappers, located in decorators.py, to place timing calls before and after a function call.  The wrapper must go into objmode()  to use call  MPI.Wtime() for any numba-fied function. This places significant overhead on small functions that are called many times.
As jpmorgan98 listed. There are two TODO items:

The timing calls are not configured for multiple processors. So each processor will record its own times but there is no compilation at the end.
There is significant discrepancy between the decorator and native runtime reports when in numba mode. See the example outputs below

Below are example outputs from the Slab Absorbium example with N=1e5. The first image is from a pure Python run, notice the discrepancy between the native runtime report and decorator runtime report is 1.0 seconds for a 244 second run.

Here is an output of the same problem in Numba mode. In this case, the discrepancy is 92.8 seconds. The decorator seems to be ignoring compilation time? But I'm not sure how that's possible.


Who is down for a minDepth option?

This would complement maxDepth in a coherent way.
minDepth
Number of nested objects to skip before flattening others.
var flatten = require('flat')

flatten({
    key1: {
        keyA: 'valueI'
    },
    key2: {
        keyB: 'valueII'
    },
    key3: { a: { b: { c: 2 } } }
}, { minDepth: 1 })

// {
//   key1: { keyA: 'valueI' },
//   key2: { keyB: 'valueII' },
//   key3: { a: { 'b.c': 2 } }
// }

Would love to see this option as well.

I'm looking for this option as well. I intend to convert my data to csv, and need to keep first level as headers, but the default flatten everything using the index 0,data 1.data ... etc


Reset mocks for EventHubReactorConnectionTest.

Fixes large memory usage when running Event Hubs tests that caused Linux CI to fail.

Used to be 800MB but is now around 200MB.

/azp run java - core


Out of date dependencies

Describe the bug
Several dependencies are out of date
Additional context
May be worthwhile implementing dependabot to automate updates.
version: 2
updates:
  - package-ecosystem: "docker" # See documentation for possible values
    directory: "/" # Location of package manifests
    schedule:
      interval: "daily"

  - package-ecosystem: "gomod" # See documentation for possible values
    directory: "/" # Location of package manifests
    schedule:
      interval: "daily"

  - package-ecosystem: "github-actions"
    directory: "/"
    schedule:
      # Check for updates to GitHub Actions every weekday
      interval: "daily"

@modem7 Very good idea, I will create a PR for this. Thanks!

Done: https://github.com/omegion/ssh-manager/network/updates


Dropbox native support

Fixes #1577

Seems restcountries.com is down. I'll work ok #1538 and add the fix to this PR.


Next release? Almost 2 years no new release.

it's not any change between now from two years ago?
maybe needs new release to fix some issue and completes updates?

Yeah that's fair, I'll check the current state of bugs and see if I can roll a release soon.
Closing this off since yes, I'm aware that a new release hasn't been rolled for a while.


ISStreamer failed to create or find bucket after a number of attempts

My sense hat_wunderground.py was working, now there is an error "ISStreamer failed to create or find bucket after a number of attempts"
I don't know why this error has occurred. Is this an issue with wunderground?
Thank you

You reached your stream limit in January (25K events) and, for some reason, it didn’t get reset for February.  This is fixed now.  Let me know if you have anymore issues.
Jamie Bailey
Founder/CEO
Initial State
tel<PHONE_NUMBER>

On Feb 14, 2016, at 3:00 AM, perrycannon<EMAIL_ADDRESS>wrote:
My sense hat_wunderground.py was working, now there is an error "ISStreamer failed to create or find bucket after a number of attempts"
I don't know why this error has occurred. Is this an issue with wunderground?
Thank you
—
Reply to this email directly or view it on GitHub https://github.com/InitialState/wunderground-sensehat/issues/2.

same for me today....
thanks!
Stefania

My sense hat_wunderground.py was working, now there is an error "ISStreamer failed to create or find bucket after a number of attempts"
Is this an issue with wunderground?  Any help would be appreciated.  Thanks

This message is typically associated with a connection issue with your device. Make sure you have a solid internet connection.

Okay.  Thanks for quick response.


gnustep: move to by-name and propagate dependencies

Description of changes

Moves the GNUstep packages into by-name and makes the chain of make -> base -> gui -> back use propagatedBuildInputs because a build depending on one of these also needs to include its dependencies because the paths to all the makefiles need to be in the environment.
todo/need advice:

[ ] Add hook to gnustep-gui so that it complains when gnustep-back isn't in the environment since without it your package will build but not run due to gnustep-back being the windowing implementation
[ ] gnustep-libobjc is only called that because there is already a libobjc on darwin. Should there be a platform-dependent alias, like for stdenv being gccStdenv or clangStdenv?

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

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

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review

x86_64-linux

:x: 2 packages failed to build:

portmod
portmod.dist

:white_check_mark: 54 packages built:

bazarr
bookworm
bottles
bottles-unwrapped
datalad (python312Packages.datalad)
datalad-gooey (python312Packages.datalad-gooey)
datalad-gooey.dist (python312Packages.datalad-gooey.dist)
datalad.dist (python312Packages.datalad.dist)
facetimehd-calibration
gnustep-back
gnustep-base
gnustep-base.dev
gnustep-base.lib
gnustep-gui
gnustep-libobjc
gnustep-make
gnustep-systempreferences
gorm
gworkspace
hopper
libsForQt5.ark
libsForQt5.ark.dev
llvmPackages.stdenv
openvpn-auth-ldap
owl-compositor
patool (python312Packages.patool)
patool.dist (python312Packages.patool.dist)
pikopixel
projectcenter
python311Packages.datalad
python311Packages.datalad-gooey
python311Packages.datalad-gooey.dist
python311Packages.datalad-next
python311Packages.datalad-next.dist
python311Packages.datalad.dist
python311Packages.heudiconv
python311Packages.heudiconv.dist
python311Packages.patool
python311Packages.patool.dist
python311Packages.pyunpack
python311Packages.pyunpack.dist
python312Packages.datalad-next
python312Packages.datalad-next.dist
python312Packages.heudiconv
python312Packages.heudiconv.dist
python312Packages.pyunpack
python312Packages.pyunpack.dist
sogo
sope
unar
unrar-wrapper
unrar-wrapper.dist
wrapGNUstepAppsHook
xarchiver

This looks pretty good to me but I'm not comfortable approving the entire change; the only gnustep-related thing that I've touched is the openvpn ldap auth module.

I think i was added here as a reviewer in error.

@Enteee I can't find it right now which one but I assume you're a maintainer of one of the packages this touches. (Maybe not anymore?)
@benley Me moving GNUstep from nativeBuildInputs to buildInputs is fine for that package, I hope? Or is it actually used during build.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/4927

Me moving GNUstep from nativeBuildInputs to buildInputs is fine for that package, I hope? Or is it actually used during build.

I think that should be fine.


merge_generated_metadata.py Timestamp and Work_Flow options

Add flags so that users can choose to make Timestamps or Workflow_version the option that will determine which is the best analysis_type to add into the schema, when there are duplicates.

Ya, I think the most generic is to say, for that analysis_type and workflow_name, just choose the most recent timestamp'd workflow analysis event for inclusion in the index.  An alternative, based on what flag you give it, would look at the analysis_type, workflow_name, and most recent workflow_version and only use timestamp if there are multiple identical analysis_type, workflow_name, and workflow_version.


Refactor the Recipes page to include examples from the example repository

Are you requesting a feature or reporting a bug?

What is your Test Scenario?

What is the Current behavior?

What is the Expected behavior?

How would you reproduce the current behavior (if this is a bug)?


[systemd] drop "Start getty on lxc" / 8967446c29e0fa1a8a641989b59e1c8f61b392e7

This probably became obsolete due to https://github.com/systemd/systemd/blob/master/src/getty-generator/getty-generator.c#L109.

This has been dropped in https://github.com/NixOS/nixpkgs/pull/85334/commits/1ad4accdafd29bd998f121dbda8f9c4e3df090b0.


Remove ocamlbuild from the build do to many quasi-linux dependencies

Replaces oacmlbuild with a dedicated build script. Required for build without cygwin64 or mingw64

bors try

bors try

@anakrish yeah, Bruce is handling it

bors try

bors try

Superseded by #989


The results of matsqrt are not very accurate

Hi, KingJamesSong.  When I use the pade approximation, the matSqrt result is wrong, but when I use the Taylor approximation the result is closer to the scipy sqrtm....

Hi,
Thanks for your interest in our work!
Could you please give more detailed results and descriptions of your setting and input data?
Unless the matrix is (close) singular, the pade approximation should have better results than the Taylor counterpart.

Hi,
Thanks for your interest in our work!
Could you please give more detailed results and descriptions of your setting and input data?
Unless the matrix is (close) singular, the pade approximation should always have better results than the Taylor counterpart.

This is my current test code that follows scipy's sqrtm.https://docs.scipy.org/doc/scipy/reference/generated/scipy.linalg.sqrtm.html

Hi,
The matrix square root is principal (unique) only when the input matrix is symmetric positive definite.
That means, in your case, you should first compute the covariance and then compute the square root:
rand_cov = rand_matrix.bmm(rand_matrix.transpose(1,2))
rand_cov_sqrt = FastMatSqrt(rand_cov)

Let me know if you have further questions!

Hi,
The matrix square root is principal (unique) only when the input matrix is symmetric positive definite.
That means, in your case, you should first compute the covariance and then compute the square root:
rand_cov = rand_matrix.bmm(rand_matrix.transpose(1,2))
rand_cov_sqrt = FastMatSqrt(rand_cov)

Let me know if you have further questions!

Hi,
rand_matrix = torch.tensor([[1,2],[3,4]]).unsqueeze(0)
FastMatSqrt = MPA_Lya.apply
rand_cov = rand_matrix.bmm(rand_matrix.transpose(1,2))
rand_cov_sqrt = FastMatSqrt(rand_cov)

What is the use of rand_cov_sqrt...After testing, it looks like this
[[[[ 5.7116117 10.685205 ]]
[[10.685205  25.139256 ]]]]
rand_sqrt = FastMatSqrt(rand_matrix)

taylor's result:
[[[[1.2864267 1.8689806]]
[[2.8034706 4.0898967]]]]

Hi,
I tried to run the code for input [[1,2],[3,4]] and the MPA result is:
tensor([[[1.3820, 1.8062],
        [1.8062, 4.6660]]])

where the accurate square root is:
tensor([[[ 1.2005    1.8865
   1.8865    4.6305]]])

The MPA is closer to the accurate results in terms of Frobienius norm.
Could you please check where the code goes wrong? The results you show look like the covariance instead of the square root.

Hi,
I tried to run the code for input [[1,2],[3,4]] and the MPA result is:
tensor([[[1.3820, 1.8062],
        [1.8062, 4.6660]]])

where the accurate square root is:
tensor([[[ 1.2005    1.8865
   1.8865    4.6305]]])

The MPA is closer to the accurate results in terms of Frobienius norm.
Could you please check where the code goes wrong? The results you show look like the covariance instead of the square root.
Hi,
Should I use the eigenvalues and cov_sqrt, But this also does not give accurate results?....maybe the right answer is
array([[ 0.75592895,  1.13389342],
[ 0.37796447,  1.88982237]])

Hi,
I tried to run the code for input [[1,2],[3,4]] and the MPA result is:
tensor([[[1.3820, 1.8062],
        [1.8062, 4.6660]]])

where the accurate square root is:
tensor([[[ 1.2005    1.8865
   1.8865    4.6305]]])

The MPA is closer to the accurate results in terms of Frobienius norm.
Could you please check where the code goes wrong? The results you show look like the covariance instead of the square root.

I remembered that this algorithm in my state estimator it is accurate.I do not have such a deep knowledge of matrix theory, so I'm sorry to have wasted so much of your time.

Hi,
I tried to run the code for input [[1,2],[3,4]] and the MPA result is:
tensor([[[1.3820, 1.8062],
        [1.8062, 4.6660]]])

where the accurate square root is:
tensor([[[ 1.2005    1.8865
   1.8865    4.6305]]])

The MPA is closer to the accurate results in terms of Frobienius norm.
Could you please check where the code goes wrong? The results you show look like the covariance instead of the square root.

Hi,
Should I use the following formula?

Hi,
Yes, the formula is correct. The covariance step is to make the matrix symmetric and positive definite such that there would be only one principal matrix square root.
No problem! Let me know if you have further questions!

Hi,
Yes, the formula is correct. The covariance step is to make the matrix symmetric and positive definite such that there would be only one principal matrix square root.
No problem! Let me know if you have further questions!

Hi,
Thanks for you answer


Issue319 file path

Summary: closes #319
Related issue:
Suggested reviewer(s):
Reviewer checklist:

[ ] The headers of all files contain a reference to the repository license (i.e., "License: This file is part of py-mmd-tools, licensed under the Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0)")
[ ] 100% test coverage of new code - meaning:

[ ] The overall test coverage increased or remained the same as before
[ ] Every function is accompanied with a test suite
[ ] Tests are both positive (testing that the function work as intended with valid data) and negative (testing that the function behaves as expected with invalid data, e.g., that correct exceptions are thrown)
[ ] Functions with optional arguments have separate tests for all options

[ ] Examples are supported by doctests
[ ] All tests are passing
[ ] All names (e.g., files, classes, functions, variables) are explicit
[ ] Documentation (as docstrings) is complete and understandable

The checklist is based on the S-ENDA conventions and definition of done (see https://s-enda-documentation.readthedocs.io/en/latest/general_conventions.html). The above points are not necessarily relevant to all contributions. In that case, please add a short explanation to help the reviewer.

@Teddy-1000 - setter pris på om du kan følge opp denne

As discussed in the chat, we may want to calculate the file size in the nc_wrapper. Also, maybe we could calculate a check_sum also, then? We skipped that earlier because it takes a lot of time, but we could maybe calculate it from parts of the nc-file instead of the whole?

If you are going to calculate a partial checksum for the file, you will need to find a way to accurately communicate to the end user what part of the file is included in the checksum. Or else the checksum will be useless for the end user, and again there would be no need for it.

As discussed in the chat, we may want to calculate the file size in the nc_wrapper. Also, maybe we could calculate a check_sum also, then? We skipped that earlier because it takes a lot of time, but we could maybe calculate it from parts of the nc-file instead of the whole?

If you are going to calculate a partial checksum for the file, you will need to find a way to accurately communicate to the end user what part of the file is included in the checksum. Or else the checksum will be useless for the end user, and again there would be no need for it.

I see.. Ok, let's skip that for now and focus on the current issue #319 - I think I have answered your comments?

Det dukket opp en del lokale endringer her som jeg ikke har gjort ferdig. Mulig de skal inn her... Må sjekke

@Teddy-1000 - jeg hadde begynt på en forenkling som jeg hadde glemt å gjøre ferdig. Sorry... Siste versjon er hakket enklere og bør løse #319 for API'et. Dette gir ikke mulighet for å legge inn alternativ lagringsplass i MMD fremfor faktisk filnavn+mappe.


Russound Rio not working in 0.88.0

Home Assistant release with the issue:

version | 0.88.0
Last working Home Assistant release (if known):
0.87
Operating environment (Hass.io/Docker/Windows/etc.):

latest docker build (.88) running on QNAP 251+ NAS via container station
Component/platform:

https://www.home-assistant.io/components/media_player.russound_rio/
Description of problem:
Russound_rio not working in .88.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
- platform: russound_rio
  host: <IP_ADDRESS>
  name: Russound

Traceback (if applicable):
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform
    SLOW_SETUP_MAX_WAIT, loop=hass.loop)
  File "/usr/local/lib/python3.7/asyncio/tasks.py", line 416, in wait_for
    return fut.result()
  File "/usr/src/app/homeassistant/components/media_player/russound_rio.py", line 39, in async_setup_platform
    from russound_rio import Russound
  File "/usr/local/lib/python3.7/site-packages/russound_rio/__init__.py", line 1, in <module>
    from .rio import (
  File "/usr/local/lib/python3.7/site-packages/russound_rio/rio.py", line 8
    from asyncio import async as ensure_future
                            ^
SyntaxError: invalid syntax

Additional information:

I would like to add that this also affected me and I have the exact same trace-back.

I fixed this by modifying the rio.py file inside the docker container.
I removed these lines -
try:     from asyncio import ensure_future except ImportError:     from asyncio import async as ensure_future
I then did a find on all instances of "ensure_future" and replaced it with "asyncio.ensure_future" (6 total instances in the file).
I then restarted my Home Assistant docker container and the plugin was working again.
Here's a pastebin of the modified file you can replace yourself -
https://pastebin.com/UX5GGZLd
I think the russound_rio plug-in is no longer maintained so we're probably going to be stuck fixing these bugs ourselves unfortunately.  Hopefully these don't pop up again.

thank you. I'm new to docker though so I'm not sure I know how to find and replace that file. I have the /config folder mounted to a local folder so I can edit files there, but wouldn't know where to find the current rio.py file. Any guidance?

you can use docker exec:
https://docs.docker.com/engine/reference/commandline/exec/
and with docker exec, run the command "apt-get install nano"
then
"nano /usr/local/lib/python3.7/site-packages/russound_rio/rio.py"
I didn't do it that way though.  If you have portainer installed, you have the option of accessing the commandline of a particular container by simply clicking a button from the GUI.  So I did all the file modifications through the portainer-accessed container commandline.

nano is a text editor of some kind? I tried to look at portainer recently but after starting an image in my nas container station, it wasn't clear what to do with it to get it to talk to my docker install. I don't know if the fact that I'm running in this qnap container station app prevents that kind of thing

also, got portainer working and can get to a command line from within it, but wasn't sure next step. the apt-get command above returns unable to locate package nano

try running the command "apt-get update", then "apt-get install nano".  Yes it's a text editor.  Just happens to be my editor of choice.  The container is "light weight" and doesn't seem to come with any text editors built in, so you need to install one yourself.  Though I'm no expert either and may be missing something myself.

awesome. that last bit did it. I could then install nano and fumbled my way through the file update. restarted Hass and it looks like it might be corrected. Thank you. I am grateful for your help. Guess we'll have to do this with each new release going forward? wonder if there is a way to get that fix into the main code base.

one other thought. Home Assistant counts russound as one of their integrated components built in. I can't imagine they'd want to leave something broken in core that could be fixed, right?

Oh for sure.  You did the right thing by filing this bug report though.  Hopefully the devs see this and implement the fix into the main code base.  Otherwise yeah we'd just have to apply this fix after every update, unfortunately.

Why not create a pr if you have a fix?

think that's a question for Hisma.

  Yeah I can do that though.   I'll do it right now.

well now I feel like i have to google it too so I"m not the only one in the dark.

The issue actually is that this is a plugin problem, not a "home assistant" problem.  So I actually have to do a pr with the original author, which looks like he's abandoned the project as the last update is from 2 years ago.
I'll try anyway though and see where it goes.

I actually was able to modify the "rio.py" file in the russound_rio master branch directly, didn't need to do a pr.
https://github.com/Hisma/russound_rio/blob/master/russound_rio/rio.py
What we can do is wait until the next HA release and see if this change gets picked up.  If it does we can close this issue.
I'm obviously new to this stuff as well :).  Though I think we're on the right track now.  If anyone else has anything to add though let me know.  I'm willing to contribute just need a little guidance.

Perhaps you could take it over as new owner?
From: nickrout<EMAIL_ADDRESS>Sent: Friday, February 22, 2019 3:50 PM
To: home-assistant/home-assistant<EMAIL_ADDRESS>Cc: mikerenna<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [home-assistant/home-assistant] Russound Rio not working in 0.88.0 (#21283)
Why not create a pr if you have a fix?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fhome-assistant%2Fhome-assistant%2Fissues%2F21283%23issuecomment-466559911&data=02|01||2902af78d36440cffb4908d6990fa6d9|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636864689827112195&sdata=p9F%2FczoI%2FILxDsTEbO5Zf91rqODlpFeWkMhiLlqGS2c%3D&reserved=0, or mute the threadhttps://eur04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAqxzxlTGeZ39LNBlIHXrEcaNklUY5ShTks5vQGX1gaJpZM4bINBV&data=02|01||2902af78d36440cffb4908d6990fa6d9|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636864689827122203&sdata=eKKSalOEdnTetK7t1cNKQprJJvJAgcA7R5G%2FlCRU3%2Fs%3D&reserved=0.

you can use docker exec:
https://docs.docker.com/engine/reference/commandline/exec/
and with docker exec, run the command "apt-get install nano"
then
"nano /usr/local/lib/python3.7/site-packages/russound_rio/rio.py"
I didn't do it that way though. If you have portainer installed, you have the option of accessing the commandline of a particular container by simply clicking a button from the GUI. So I did all the file modifications through the portainer-accessed container commandline.

Whenever I run this in the Docker cli via portainer it just resets to after I restart HA. What the heck am I  doing wrong?

i wish I could help and return the previous favor you did me but this is out of my area of expertise. With any luck @Hisma will have some insight.
You're using nano to modify the file? I had a slew of issues getting that to edit and save correctly, but none manifested in a return to the original file. (in fact i would have to redeploy the container to get original back once I jacked up beyond recognition)

Yup, I can use nano no problem. I am running debian so its a little different. I can save the file but when I restart HA, the changes are gone.

Man min was weird. But I think it's because I never restarted the container, I would reboot HA from inside HA. This was an easy copy command too I used:
root@ANON-DEB:/tmp# docker cp rio.py homeassistant:/usr/local/lib/python3.7/site-packages/russound_rio/
root@ANON-DEB:/tmp# docker restart homeassistant

It's seems to be working this way? It's cp a local file to the docker image
root@ANON-DEB:/tmp# docker cp rio.py homeassistant:/usr/local/lib/python3.7/site-packages/russound_rio/
root@ANON-DEB:/tmp# docker restart homeassistant

so restarting HA wouldn't pick up the change until you restarted the container? but you ultimately used a file copy tp pull in a new version of the file?  that actually would be helpful until a real fix is made since we have to do this every time we load a new docker image/HA release

Yes. The file was copied to my Debian server, then I used the cp command to send it to the container. I could easily automate that or just write a script if need be.

thanks for the info. Hisma submitted his fix to get added to the build so I hope it'll get fixed so we won't ha t do this much longer.

Agreed. This was a hard one to figure out for some reason.

It's not looking promising that this is going to get fixed, unfortunately.  As I mentioned, this isn't a problem with HA, this is a problem with the plugin itself, and it appears the plugin author is MIA and has permanently abandoned this project.  The only hope is that someone like myself can fork it and HA uses my forked (fixed) version of the plugin, rather than the original author's.
Glad to see there's an easier way to deal with this though using "docker cp".  Didn't know that was possible.  It's so simple it can be added as a quick extra step during the upgrade process, if this doesn't get resolved soon.  We haven't seemed to have gotten attention from the HA devs so not sure what to do at this point.

i'm still holding out hope. surely they'd hate to have take russound off the list of components.

We might be able to close this soon.  The russound rio dev responded to my bug report and closed the issue, saying he addressed it.
Next version let's see if the component works without any modification.  If so we can finally close this.

That would be so great.
-------- Original message --------
From: Hisma<EMAIL_ADDRESS>Date: 5/18/19 10:47 PM (GMT-06:00)
To: home-assistant/home-assistant<EMAIL_ADDRESS>Cc: mikerenna<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [home-assistant/home-assistant] Russound Rio not working in 0.88.0 (#21283)
We might be able to close this soon. The russound rio dev responded to my bug report and closed the issue, saying he addressed it.
Next version let's see if the component works without any modification. If so we can finally close this.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fhome-assistant%2Fhome-assistant%2Fissues%2F21283%3Femail_source%3Dnotifications%26email_token%3DAKWHHRUZDWB2JIE2JRRHBFTPWDETPA5CNFSM4GZA2BK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVW2GKI%23issuecomment-493724457&data=02|01||96b993f604b546e5eb8b08d6dc0ca952|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636938344266390237&sdata=nvs%2BseNbdNqW3h2GMengRoVQDBWFjApYRR1tRYcGXeo%3D&reserved=0, or mute the threadhttps://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAKWHHRRUMSZGLF7265HOOSDPWDETPANCNFSM4GZA2BKQ&data=02|01||96b993f604b546e5eb8b08d6dc0ca952|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636938344266400236&sdata=2AVT6xEzIzq2WC1SVn5L1XRGC0PvnUeCSHZqgZCijr8%3D&reserved=0.

I believe it has been solved. It has not been necessary to do the manual source modification for the last few releases.
Get Outlook for Androidhttps://aka.ms/ghei36

From: stale[bot]<EMAIL_ADDRESS>Sent: Friday, August 16, 2019 11:44:36 PM
To: home-assistant/home-assistant<EMAIL_ADDRESS>Cc: mikerenna<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [home-assistant/home-assistant] Russound Rio not working in 0.88.0 (#21283)
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fhome-assistant%2Fhome-assistant%2Fissues%2F21283%3Femail_source%3Dnotifications%26email_token%3DAKWHHRXY6MJHPXTUQZOXNFLQE563JA5CNFSM4GZA2BK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4QDILY%23issuecomment-522204207&data=02|01||a55a2808f5b14f78d3d908d722cd9b9c|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637016138778504011&sdata=KXV3VBHMq2Jiz3Xi%2F8N2ey13g1BL6gn8tbDK9D9gQKc%3D&reserved=0, or mute the threadhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAKWHHRV2K3XSNDV5ASTQLELQE563JANCNFSM4GZA2BKQ&data=02|01||a55a2808f5b14f78d3d908d722cd9b9c|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637016138778524009&sdata=WKB23IpnL5nnorSv2zg7IhkbmkXwkl0UIev79w88L6Y%3D&reserved=0.


Update msoffice.md

Added useful Microsoft excel shortcuts
Change Summary
Provide summary of changes with issue number if any.
Checklist
If you haven't fulfilled the below requirements or even delete the entire checklist, your PR won't be reviewed and will be closed without notice.
General

[x] This Pull Request is all my own work. (You'll be blacklisted if you are caught for plagiarism.)
[x] I've read CONTRIBUTING.md
[x] I've made some valid changes to the CheatSheet, and they are not just minor changes.

Changes

[x] I've read and followed the Solution Template

Note: To mark the checkbox, put an x inside the [ ] (like this: [x]).

These are some minor changes so not eligible for the tag


Cross projects jobs view

Describe the feature you'd love to have in Orchest
Having a general understanding of what jobs are running or are going to run (and when) becomes difficult as the number of projects and jobs increases. A way to having a cross projects view of that would help. Things that should be easier to know with the blink of an eye:

how many active cronjobs are there?
what's the timeline for the next cronjobs that are going to be triggered? (i.e. the N closest cronjobs that are going to run)
how many jobs have some runs that are running right now?
...

Duplicate of #485.
I do like extending the scope of the dashboard though and showing additional information, e.g. not only running jobs but also a timeline for next running jobs.


Is there a way to use classic BT instead of BLE to receive the file?

I'm worrying about the file transfer speed of BLE, so I'd like to use classic BT to receive the file. But I've seen no reference about OBEX or OPP or FTP on classic BT.
It is better for me to use the OS native way to send the file (e.g. Android blutooth sharing & Windows bluetooth transfer)
Could you please tell me what I can refer to, or this is totally impossible for now?

Hi @BrandonStudio,
I understand you want to use the “old” Bluetooth, but I won't recommand it. First, iOS devices are not compatible with it any more, which can be an inconvenient for some people. Second, BLE is the evolution of the older version of Bluetooth, which means it is an improved version. Third, in the current implementation, the BLE is quite verbose, which slows down the transmission (see https://github.com/fbiego/ESP32_BLE_OTA_Arduino/issues/19#issuecomment-1252684032 about this issue).
BLE alone should be able to attaint speed of 2 Mbps (or at least 1 Mbps, like the previous generation). I'm not sure the ESP32 is able to attaint these speeds, since the BLE stack is quite huge (so maybe the classic Bluetooth could be faster).
The OTA update is indeed quite slow, but Bluetooth is not used for its speeds but for its simplicity and low energy consumption (it's also more cost-effective than adding a physical programming port and easier to use for IoT devices). If you really need a fast flashing speed, you should use a wired update technique and esptool (it takes under 20 s to upload the code). Using Wi-Fi is probably the middle ground (not faster than a wired connection, but faster than using BLE).
If you have ideas to improve the speed of the update, they are welcome. @vovagorodok has implemented some changes to create an Arduino library (https://github.com/fbiego/ESP32_BLE_OTA_Arduino/issues/19#issuecomment-1252684032). I did not follow the project, so I don't know its current state.
For the pure technical question, yes, it is possible to use Bluetooth to transmit an update file over the air. You “just” need to cut it in chunks of bytes and write the complete file in memory chunk by chunk before performing your update.
Using the native transmission means is not recommanded either, because they are not meant to handle an update process. No return about the state of the update, no control over what file has been sent (you can send anything, which could corrupt your device easily), no return about the current firmware version, etc.
You can however explore the concept of DFU (https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.0%2Flib_dfu_transport_ble.html). That way, you could directly use the nrf tool to update your firmware.
Best,
Vincent Stragier

@vovagorodok has implemented some changes to create an Arduino library (https://github.com/fbiego/ESP32_BLE_OTA_Arduino/issues/19#issuecomment-1252684032). I did not follow the project, so I don't know its current state.

Library fully tested and deployed to projects. Currently uploading works using python script and I'm trying to find someone or time to implement mobile app. I think that 12kB/s is maximum for BLE stack of ESP32


Adding swagger for Microsoft.OperationsManagement RP

This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
Ran the "autorest" tool to make sure there is no error.
PR information

[ x] The title of the PR is clear and informative.
[x ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
[ ] Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
[ ] If applicable, the PR references the bug/issue that it fixes.
[x ] Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

[x ] I have read the contribution guidelines.
[x ] My spec meets the review criteria:

[x ] The spec conforms to the Swagger 2.0 specification.
[ x] The spec follows the guidelines described in the Swagger checklist document.
[x ] Validation tools were run on swagger spec(s) and have all been fixed in this PR.

@dashimi16,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

Looking at this now..

@dashimi16 -- please note that the PR needs to be against current, we don't take PRs against master branch.

Closing this pull request. Will open another one against current branch as suggested by the code reviewer.