Size mismatch error occurs when loading models quantized by GPTQ

Hi, thanks for building this wonderful open-source project!
I am using GPTQ to first quantize a llama2-7b-chat-hf model:
python quantize.py --checkpoint_path checkpoints/meta-llama/Llama-2-7b-chat-hf/model.pth --mode int4-gptq --calibration_tasks wikitext --calibration_seq_length 2048

, and it works perfectly. However, when I then using the quantized model for generation:
python generate.py --compile --checkpoint_path checkpoints/meta-llama/Llama-2-7b-chat-hf/model_int4-gptq.g32.pth --prompt "Hello, my name is"

, a size mismatch error occurs:
RuntimeError: Error(s) in loading state_dict for Transformer:
        size mismatch for layers.0.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.0.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.1.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.1.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.2.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.2.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.3.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.3.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.4.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.4.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.5.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.5.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.6.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.6.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.7.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.7.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.8.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.8.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.9.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.9.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.10.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.10.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.11.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.11.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.12.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.12.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.13.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.13.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.14.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.14.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.15.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.15.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.16.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.16.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.17.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.17.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.18.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.18.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.19.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.19.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.20.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.20.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.21.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.21.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.22.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.22.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.23.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.23.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.24.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.24.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.25.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.25.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.26.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.26.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.27.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.27.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.28.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.28.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.29.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.29.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.30.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.30.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).
        size mismatch for layers.31.feed_forward.w2.weight: copying a param with shape torch.Size([512, 88, 32, 4]) from checkpoint, the shape in current model is torch.Size([512, 86, 32, 4]).
        size mismatch for layers.31.feed_forward.w2.scales_and_zeros: copying a param with shape torch.Size([352, 4096, 2]) from checkpoint, the shape in current model is torch.Size([344, 4096, 2]).

Any solutions to fix or possible clues would be appreciated!

BTW, llama2-13b-chat-hf and llama2-70b-chat-hf models ran into the same mismatch problem.

@sdc17 Were you able to solve this issue?


StyledTaskDialog Component Issue

At design time using 'Test dialog', I can't get the ExpandButton to show, nor the Expanded Text if I set tfExpandedByDefault true.
Regards,
Ian

Because the exapand button is not implemented, at the moment...

Hi Carlo,
Ahhh.  That will do it every time.  😊
I await with bated breath.
Regards,
Ian
The Programmer’s Credo:  We do these things not because they are easy, but because we thought they were going to be easy… @.*** - 05/08/2016)
From: Carlo Barazzetta @.>
Sent: Wednesday, 9 October 2024 19:02
To: EtheaDev/StyledComponents @.>
Cc: ijbranch @.>; Author @.>
Subject: Re: [EtheaDev/StyledComponents] StyledTaskDialog Component Issue (Issue #51)
Because the exapand button is not implemented, at the moment...
—
Reply to this email directly, view it on GitHubhttps://github.com/EtheaDev/StyledComponents/issues/51#issuecomment-2401619906, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABEPZPLTIK72ETZCXUFS2STZ2TPGVAVCNFSM6AAAAABPTTY47WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBRGYYTSOJQGY.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>

Fixed in 3.6.9 version


Do not add trailing zero byte for abstract paths.

Resolves #24.

Thanks for reporting the issue and opening the PR!
I also added simple tests and ensured that trailing null-bytes are preserved when reporting the local address of a listening socket.
Will merge once CI passes.

I did a major version bump as it changes the observable behavior of the listener and the socket.
So released as v0.8.0. Thanks again! :rocket:


License for package Android SDK Platform 27 not accepted.

i have tried the following:
flutter doctor --android-licenses
and
PS C:\Users\aiqin\AppData\Local\Android\Sdk\tools\bin> ./sdkmanager --licenses
Steps to Reproduce/Logs
PS C:\Users\aiqin> cd D:\git\myflutter
PS D:\git\myflutter> flutter run
Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling
software rendering with "--enable-software-rendering".
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...                                       1.1s
Resolving dependencies...
* Error running Gradle:
ProcessException: Process "D:\git\myflutter\android\gradlew.bat" exited abnormally:

> Configure project :app
Checking the license for package Android SDK Platform 27 in C:\Users\aiqin\AppData\Local\Android\sdk\licenses
Warning: License for package Android SDK Platform 27 not accepted.

FAILURE: Build failed with an exception.

* Where:
Build file 'D:\git\myflutter\android\build.gradle' line: 24

* What went wrong:
A problem occurred evaluating root project 'android'.
> A problem occurred configuring project ':app'.
   > Failed to install the following Android SDK packages as some licences have not been accepted.
        platforms;android-27 Android SDK Platform 27
     To build this project, accept the SDK license agreements and install the missing components using the Android
     Studio SDK Manager.
     Alternatively, to transfer the license agreements from one workstation to another, see
     http://d.android.com/r/studio-ui/export-licenses.html

     Using Android SDK: C:\Users\aiqin\AppData\Local\Android\sdk

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with
--scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 5s
  Command: D:\git\myflutter\android\gradlew.bat app:properties

Please review your Gradle project setup in the android/ folder.`

PS C:\Users\aiqin\AppData\Local\Android\Sdk\tools\bin> flutter doctor -v
[√] Flutter (Channel stable, v1.0.0, on Microsoft Windows [Version 10.0.17763.253], locale zh-CN)
    • Flutter version 1.0.0 at D:\flutter
    • Framework revision 5391447fae (7 weeks ago), 2018-11-29 19:41:26 -0800
    • Engine revision 7375a0f414
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at C:\Users\aiqin\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[√] Android Studio (version 3.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[√] VS Code (version 1.30.2)
    • VS Code at C:\Users\aiqin\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 2.21.1

[√] VS Code, 64-bit edition (version 1.30.2)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 2.21.1

[√] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator)

• No issues found!`

PS C:\Users\aiqin\AppData\Local\Android\Sdk\tools\bin> flutter --verbose doctor -v
[  +34 ms] executing: [D:\flutter\] git rev-parse --abbrev-ref --symbolic @{u}
[ +112 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[   +4 ms] origin/stable
[   +2 ms] executing: [D:\flutter\] git rev-parse --abbrev-ref HEAD
[  +61 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +1 ms] stable
[   +1 ms] executing: [D:\flutter\] git ls-remote --get-url origin
[  +62 ms] Exit code 0 from: git ls-remote --get-url origin
[   +1 ms] https://github.com/flutter/flutter.git
[   +1 ms] executing: [D:\flutter\] git log -n 1 --pretty=format:%H
[  +63 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[   +1 ms] 5391447fae6209bb21a89e6a5a6583cac1af9b4b
[   +1 ms] executing: [D:\flutter\] git log -n 1 --pretty=format:%ar
[  +61 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[   +1 ms] 7 weeks ago
[   +1 ms] executing: [D:\flutter\] git describe --match v*.*.* --first-parent --long --tags
[  +68 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[   +3 ms] v1.0.0-0-g5391447fa
[ +743 ms] java -version
[  +28 ms] [√] Flutter (Channel stable, v1.0.0, on Microsoft Windows [Version 10.0.17763.253], locale zh-CN)
[   +5 ms]     • Flutter version 1.0.0 at D:\flutter
[   +1 ms]     • Framework revision 5391447fae (7 weeks ago), 2018-11-29 19:41:26 -0800
[   +1 ms]     • Engine revision 7375a0f414
[   +3 ms]     • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)
-[   +4 ms] executing: C:\Users\aiqin\AppData\Local\Android\sdk\platform-tools\adb devices -l
[  +52 ms] Exit code 0 from: C:\Users\aiqin\AppData\Local\Android\sdk\platform-tools\adb devices -l
[   +1 ms] List of devices attached
           emulator-5554          device product:sdk_gphone_x86 model:Android_SDK_built_for_x86 device:generic_x86
           transport_id:6
[  +29 ms] C:\Users\aiqin\AppData\Local\Android\sdk\platform-tools\adb -s emulator-5554 shell getprop
|[ +163 ms] ro.hardware = ranchu
[  +45 ms] executing: C:\Users\aiqin\AppData\Local\Android\sdk\tools\bin\sdkmanager --licenses
[+4109 ms] [√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[   +1 ms]     • Android SDK at C:\Users\aiqin\AppData\Local\Android\sdk
[   +1 ms]     • Android NDK location not configured (optional; useful for native profiling support)
[   +1 ms]     • Platform android-28, build-tools 28.0.3
[   +3 ms]     • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
[   +3 ms]     • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[   +1 ms]     • All Android licenses accepted.
[   +2 ms] [√] Android Studio (version 3.2)
[   +3 ms]     • Android Studio at C:\Program Files\Android\Android Studio
[   +1 ms]     X Flutter plugin not installed; this adds Flutter specific functionality.
[   +1 ms]     X Dart plugin not installed; this adds Dart specific functionality.
[   +1 ms]     • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[   +2 ms] [√] VS Code (version 1.30.2)
[   +2 ms]     • VS Code at C:\Users\aiqin\AppData\Local\Programs\Microsoft VS Code
[   +1 ms]     • Flutter extension version 2.21.1
[   +1 ms] [√] VS Code, 64-bit edition (version 1.30.2)
[        ]     • VS Code at C:\Program Files\Microsoft VS Code
[   +1 ms]     • Flutter extension version 2.21.1
[   +1 ms] [√] Connected device (1 available)
[   +1 ms]     • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator)
[   +2 ms] • No issues found!
[  +12 ms] "flutter doctor" took 5,104ms.

This might be of help. It's your java version, anything above version 8.
https://stackoverflow.com/questions/46402772/failed-to-install-android-sdk-java-lang-noclassdeffounderror-javax-xml-bind-a

run inside your Flutter App command terminal:
1. flutter run

2. flutter doctor --android-licenses
   and press "yes” to all licenses agreements
   after that your android emulator will work fine

the flutter doctor command solved my problem! Ubuntu 18.04 on VSCode, no need to use android studio and install some SDKs

None of the command line stuff worked for me on Windows, but going to Tools -> SDK and downloading another SDK prompts you to accept licenses. Took hours of searching...

All Possible solution added [Solved] Flutter run error: You have not accepted the license agreements


Adds favicon

Adds favicons and head tags based on the recomendations from
https://realfavicongenerator.net.
Fixes PeopleForBikes/PeopleForBikes.github.io#7

I agree with @lalver1.


VSIX titles/descriptions mention templates and VS versions

This updates the titles and descriptions of our VSIXs to clarify that they hold templates for C++/C#, and which version of Visual Studio they target.

/azp run


ValueError: color_mode must be "grayscale", "rbg", or "rgba"

While running image_emotion_gender_demo.py i'm getting error statement as ValueError: color_mode must be "grayscale", "rbg", or "rgba"
Like this:

C:\Users\o.hemant.pawaskar\Downloads\EMOTION_RECOGNITION_ALL_DATA\face_classification-master\src>python C:\Users\o.hemant.pawaskar\Downloads\EMOTION_RECOGNITION_ALL_DATA\face_classification-master\src\image_emotion_gender_demo.py C:\Users\o.hemant.pawaskar\Desktop\happy.jpg
Using TensorFlow backend.
2018-10-22 14:48:39.056701: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
Traceback (most recent call last):
File "C:\Users\o.hemant.pawaskar\Downloads\EMOTION_RECOGNITION_ALL_DATA\face_classification-master\src\image_emotion_gender_demo.py", line 42, in
rgb_image  = load_image(image_path, grayscale=False)
File "C:\Users\o.hemant.pawaskar\Downloads\EMOTION_RECOGNITION_ALL_DATA\face_classification-master\src\utils\inference.py", line 7, in load_image
pil_image = image.load_img(image_path, grayscale, target_size)
File "C:\Users\o.hemant.pawaskar\AppData\Local\Continuum\anaconda3\envs\py36\lib\site-packages\keras_preprocessing\image.py", line 509, in load_img
raise ValueError('color_mode must be "grayscale", "rbg", or "rgba"')
ValueError: color_mode must be "grayscale", "rbg", or "rgba"

Can somebody please help??
Thank you

hi @omkarhp
please add color_mode="rgb" in load_image() in inference.py file located in utils folder
def load_image(image_path, grayscale=False, color_mode='rgb', target_size=None):
pil_image = image.load_img(image_path, grayscale, color_mode, target_size, )
return image.img_to_array(pil_image)

change to these lines in inference.py to work with the latest keras:
def load_image(image_path, grayscale=False, target_size=None):
    color_mode = 'grayscale'
    if grayscale == False:
        color_mode = 'rgb'
    else:
        grayscale = False
    pil_image = image.load_img(image_path, grayscale, color_mode, target_size)
    return image.img_to_array(pil_image)

It's still not working for me


BBCA: Playlist support for a series

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like that [x])
Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.06.05. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

[ x] I've verified and I assure that I'm running youtube-dl 2017.06.05

Before submitting an issue make sure you have:

[x ] At least skimmed through README and most notably FAQ and BUGS sections
[ x] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[ ] Bug report (encountered problems with youtube-dl)
[x ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

I am trying to download Dr Who from BBCA.
I can get single episodes.
I cannot get the whole season.
This is a request for playlist support from the series page.
Attempting to fetch the season:
keybounceMBP:BBCA michael$ ./yt-dl -v --get-filename -a dl-list
[debug] System config: []
[debug] User config: ['-k', '-o', '%(series)s/s%(season_number)02d-e%(episode_number)02d-%(title)s.%(ext)s', '-f', '\nbest[ext=mp4][height>431][height<=576]/\nbestvideo[ext=mp4][height=480]+bestaudio[ext=m4a]/\nbest[ext=mp4][height>340][height<=431]/\nbestvideo[ext=mp4][height>360][height<=576]+bestaudio/\nbest[height>340][height<=576]/\nbestvideo[height>360][height<=576]+bestaudio/\nbestvideo[height=360]+bestaudio/\nbest[ext=mp4][height>=280][height<=360]/\nbest[height<=576]/\nworst', '--ap-mso', 'Dish', '--ap-username', 'PRIVATE', '--ap-password', 'PRIVATE', '--write-sub', '--write-auto-sub', '--sub-lang', 'en,enUS,en-us', '--sub-format', 'ass/srt/best', '--convert-subs', 'ass', '--embed-subs', '--recode-video', 'mkv', '--mark-watched', '--download-archive', 'downloaded-videos.txt']
[debug] Custom config: []
[debug] Command-line args: ['-o', '%(series)s/s%(season_number)02d-e%(episode_number)02d-%(title)s.%(ext)s', '-v', '--get-filename', '-a', 'dl-list']
[debug] Batch file urls: ['http://www.bbcamerica.com/shows/doctor-who', 'http://www.bbcamerica.com/shows/doctor-who/full-episodes/season-10/episode-02-smile']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.06.05
[debug] Python version 3.6.1 - Darwin-13.4.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.2.4, ffprobe 3.2.4, rtmpdump 2.4
[debug] Proxy map: {}
WARNING: Falling back on generic information extractor.
ERROR: Unsupported URL: http://www.bbcamerica.com/shows/doctor-who
Traceback (most recent call last):
  File "/Users/michael/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 761, in extract_info
    ie_result = ie.extract(url)
  File "/Users/michael/bin/youtube-dl/youtube_dl/extractor/common.py", line 433, in extract
    ie_result = self._real_extract(url)
  File "/Users/michael/bin/youtube-dl/youtube_dl/extractor/generic.py", line 2795, in _real_extract
    raise UnsupportedError(url)
youtube_dl.utils.UnsupportedError: Unsupported URL: http://www.bbcamerica.com/shows/doctor-who

In comparison, fetching just single episodes - http://www.bbcamerica.com/shows/doctor-who/full-episodes/season-10/episode-02-smile - works fine.

This site uses DRM now, so this issue should probably be closed.

Issue should be closed, URL is dead:
https://www.bbcamerica.com/shows/doctor-who/full-episodes/season-10/episode-02-smile


BLE not available in iOS simulator

Describe the bug
Can't seem to get this to work in iOS, not sure what steps to take to begin debugging? I can't get the lib to work at all
To Reproduce
I have a capacitor app with the correct Info.plist parameters added (as specified by the readme in this repo), and have written the following simple react component:
import { BleClient } from '@capacitor-community/bluetooth-le';
import { Bluetooth } from '@mui/icons-material';
import React from 'react';

export const DashboardPage = () => {
  return (
    <div>
      <button
        onClick={() => {
          BleClient.initialize()
            .then(() => {
              alert('BLE available');
            })
            .catch(() => {
              alert('BLE not available');
            });
        }}
      >
        Scan for bluetooth devices
      </button>
    </div>
  );
};

Expected behavior
When clicking the button, it alerts that ble is not available
Plugin version:
    "@capacitor-community/bluetooth-le": "^3.0.0",
    "@capacitor/android": "^5.1.1",
    "@capacitor/app": "^5.0.5",
    "@capacitor/browser": "^5.0.5",
    "@capacitor/core": "^5.1.1",
    "@capacitor/ios": "^5.1.1",

Smartphone (please complete the following information):
iPhone 14 simulator
Additional context
Add any other context about the problem here.

Smartphone (please complete the following information):
iPhone 14 simulator

Bluetooth is not available in the iOS simulator. You have to test with a real device.

Oh, didn't realize that. Might be nice to mention it in the docs. Thanks!

Good idea. Thanks!


mana() won't work properly when using !percentage

To correctly display health/mana and since the protocol limits the health and mana to be 65535 at maximum (uint16), some players use !percentage to display health/mana in percentages instead of values. This does however also affect the current health, current mana ,max health and max mana to be in percentages instead of the actual value. This also means that mana() will return the current mana in percentages and calculating cost will no longer work properly.
https://github.com/EvoluniaCommunity/OTClientV8-Modules/blob/62460fda8ebeb98408b0cab49815a949fd969330/game_bot/default_configs/WoofTools/Core/Heals/Heals.Conditions.lua#L188

Removed the conditions manager for now. It seems with this issue, it'll cause the client to slowly lag more and more until it's nearly unusable, causing deaths in cavebot. -- Will look for a fix.

I figured the easiest / safest route here is to remove the check for mana since it's negligible in Evolunia.
It's running this way on the 2.2.0 branch currently.
A separate issue with this same tool is the isBurning() portion, which throws errors in the console if looking for the condition.

Fixed in v2.2.0


SGIVE - bigger PR

fixed ML
doing SWEB config
optimalization
config is more reactive
logic update && optimalization

lgtm


Guenp/18375 syndrome

Add PseudoSyndrome sample based on @apaetz's version in the private repo. Modified to use a Python script as application layer and CLI script instead of C#.
This is still a Draft PR - one way to enrich this sample would be to introduce random errors and show how this affects the auxiliary qubit. @cgranade @rmshaffer @msoeken  I'm curious to hear your thoughts on this, based on how we know these samples are being used and by whom, it may or may not be useful.

Can this sample run on IonQ or Honeywell?
What will be the result in that case?

Thanks @cgranade @msoeken @efratshabtai  @rmshaffer  for the thorough code review! The purpose of the draft was really to discuss if we need to extend the sample to include random simulated errors (as to make the Syndrome usage more clear), however it looks like we prefer to leave the sample as-is and revisit after we make a decision on implementing noisy simulators. I'll convert this to a PR now, would appreciate a final pass from one of you.
@cgranade based on your comments it looks like there are some additions to make to the standard libraries. Where do you suggest to follow up on this? would this be a topic for our api review meeting or shall I just create a GH issue?

Can this sample run on IonQ or Honeywell?
What will be the result in that case?

@efratshabtai we should be able to run this on hardware depending on some pieces of the stack that are currently in development. The expected result is a measurable error on the syndrome, depending on the noise in the system.

Thanks, @cgranade ! I've implemented your suggestions. I would appreciate a read of the README when you have a moment.


Update common files

Also fixes a couple lint errors

@howardjohn: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

manifest-apply_operator
121da565332a8565a2f67944c36314d41d5be247
link
/test manifest-apply

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


Skip secure boot test on Rocky Linux which doesn't yet support it.

Note that Rocky Linux will support secure boot soon - just not yet.

/lgtm


Build in TestFlight - App closes immediately after opening

I use cordova version: 6.3.1
Only iOS , android works normal.
Without making any call plugin code in the error happens . Just load the library plugin already happens the error.
It works perfectly on iOS Simulator 9.3 and running on the device, also 9.3.
Only when I make the file to start the production process, the error happens in TestFlight.
Whenever I build ios the cord , and open the project in Xcode , I am asked to convert the code to the new standard Swift.
If I say yes, build error. If I say do not build works and error in TestFlight .
I've read all repository issues have not found anything like it.
I tried to include , without success: <preference name="deployment-target" value="7.0" />
Device log:
Sep 13 06:25:47 iPhone-de-Ricardo-Pedrosa SpringBoard[54] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Sep 13 06:25:47 iPhone-de-Ricardo-Pedrosa SpringBoard[54] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Sep 13 06:25:47 iPhone-de-Ricardo-Pedrosa SpringBoard[54] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Sep 13 06:25:47 iPhone-de-Ricardo-Pedrosa securityd[89] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Sep 13 06:25:47 iPhone-de-Ricardo-Pedrosa securityd[89] <Error>:  secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Sep 13 06:25:47 iPhone-de-Ricardo-Pedrosa amfid[179] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Sep 13 06:25:47 iPhone-de-Ricardo-Pedrosa kernel[0] <Notice>: xpcproxy[962] Container: /private/var/mobile/Containers/Data/Application/335409B2-A379-416F-824B-3F33B1EB5F39 (sandbox)
Sep 13 06:25:47 iPhone-de-Ricardo-Pedrosa com.apple.xpc.launchd[1] (UIKitApplication:com.brave.garupa[0xd966][962]) <Notice>: Service exited due to signal: Trace/BPT trap: 5
Sep 13 06:25:47 iPhone-de-Ricardo-Pedrosa assertiond[63] <Warning>: Unable to obtain a task name port right for pid 962: (os/kern) failure (5)
Sep 13 06:25:47 iPhone-de-Ricardo-Pedrosa SpringBoard[54] <Warning>: Unable to register for exec notifications: No such process
Sep 13 06:25:47 iPhone-de-Ricardo-Pedrosa SpringBoard[54] <Warning>: Unable to obtain a task name port right for pid 962: (os/kern) failure (5)
Sep 13 06:25:47 iPhone-de-Ricardo-Pedrosa SpringBoard[54] <Warning>: Unable to obtain a task name port right for <FBApplicationProcess: 0x130e62bb0; com.brave.garupa; pid: 962>
Sep 13 06:25:47 iPhone-de-Ricardo-Pedrosa SpringBoard[54] <Warning>: Application 'UIKitApplication:com.brave.garupa[0xd966]' crashed.
Sep 13 06:25:47 iPhone-de-Ricardo-Pedrosa SpringBoard[54] <Warning>: Application '(null)' exited for an unknown reason.
Sep 13 06:25:47 iPhone-de-Ricardo-Pedrosa ReportCrash[963] <Notice>: Formulating report for corpse[962] Garupa
Sep 13 06:25:47 iPhone-de-Ricardo-Pedrosa ReportCrash[963] <Warning>: Saved type '109(109_Garupa)' report (1 of max 25) at /var/mobile/Library/Logs/CrashReporter/Garupa-2016-09-13-062547.ips.beta

If you remove the plugin does the test flight build then run successfully?
I have an application in test flight that is still workin with the plugin installed.

Yes, i upload a lot test versions, all failed.
If remove only plugin, nothing more. Works perfectly.

It's possible that its because of the new swift version. I'm working on converting it over if you want to give it a try after I'm finished.

I have a friend  problem, I already have this service running biuen; but the problem is I have a function called AutoUpload that is in javascritp that only runs once when the application will give background .. tell me how to make this application by sensing the ubivaciones and both the sending my function this AutoUpload
  My role AutoUpload is in an interval of every 3 minutes and only do it once cuyando close the application and not working when the application is in background

Check variable EMBEDDED_CONTENT_CONTAINS_SWIFT must be YES in your info.plst

Fixed in new verison.


Reconsider subclassing WebSocket

Is it appropriate for SpeechToTextWebSocket to subclass WebSocket (defined in Starscream)?
A helpful resource may be Design Principles and Design Patterns, in particular the section on "The Liskov Substitution Principle (LSP)" that starts on page 8.
This issue was originally raised by @almassapargali in this comment.

The new Speech to Text implementation does not subclass the WebSocket class.


BREAKING CHANGE: add esm ('import') support in Node.js

Hopefully not an unwelcome intrusion to ping, and if so, apologies, but here we go: @dfabulich I followed your instructions in https://redfin.engineering/node-modules-at-war-why-commonjs-and-es-modules-cant-get-along-9617135eeca1 but had to modify some things because Node.js 10.x does not support import maps. Does this look approximately correct to you?

I'm confused as to what bug you're trying to fix, and especially confused about what you think the Node 10.x bug is. (Node 10.x doesn't even have ESM support. It's new in Node 14.)
slug only has a default export, and luckily that's exactly the case that Node 14's native import(cjs) support already supports. As far as I can tell, you literally don't need to do anything at all to slug; you can safely delete this PR.
When I create this file as main.mjs:
import slug from 'slug';

console.log(slug('i ♥ unicode'));

and run it with Node 14.8, it just works:

i-love-unicode

I'm confused as to what bug you're trying to fix, and especially confused about what you think the Node 10.x bug is. (Node 10.x doesn't even have ESM support. It's new in Node 14.)

Node.js 10.x has ESM support if you invoke node with --experimental-modules. I was trying to work around the apparent lack of support for export maps in 10.x. Admittedly, that's quite an edge case given that someone would need to use --experimental-modules for things to work anyway.

slug only has a default export, and luckily that's exactly the case that Node 14's native import(cjs) support already supports. As far as I can tell, you literally don't need to do anything at all to slug; you can safely delete this PR.

Well, now don't I feel foolish. Yep, totally works, including with Node.js 10.x with the flag. Thanks for taking the time to set me straight. 🎩


Dart analyze emits extra output on JSON

Hey there,
It seems that when you run analysis using the dart CLI and choosing output format JSON, you can't pipe it to a parser without cleaning the output a little
Running the command dart analyze . --format json
Would yield the following if there are no errors
Analyzing ....
No issues found!

If there are errors, this would yield
Analyzing ....
{JSON omitted for brevity}

A quick inspection into the command source led me to understand that it's already being done on machine output and it's unclear to me why not also on JSON
Thanks
Eli

The issue should have been fixed by #54877.


[Bug] Getting error code 500 when trying to send api requests to outside

API requests to a local server in the same network works fine but as soon as I want to send API requests to the outside, for example https://jsonplaceholder.typicode.com/todos I'm always facing an "error getting response from XYZ"

Unfortunately I can't find any more detailed error informations even the log level is set to debug.

Grafana version : 8.1.5 (first tried on 7.3.6 but because of the error we upgraded up top 8.1.5)
Plugin version : 0.7.9 (same error with 0.7.8)

Additional context

Grafana running behind NGINX
If I log into the server with the grafana user I can normaly curl to the API an everything works, environment variables are set
Working with a proxy but as described, curl with the grafana user works just fine
Tried many different JSON APIs, same for all

Any ideas on whats going wrong?

I have the same issue after upgrading the plugin to latest version (v0.7.10) with grafana 8.2


make label_image.py v2 compatible

Update tensorflow/examples/label_image/label_image.py to make it V2 compatible.

@freedomtan Could you please resolve the conflicts? Thanks!

@freedomtan Could you please check failed build errors? Thanks!

@gbaned it seems none of them are relevant. Maybe the master branch happened to have problems. E.g., in the Ubuntu Python3 PIP log, the problem is in LLVM related code.

@freedomtan Thank you. Can you please check Ubuntu Sanity failures?

I don't know how to check it. I can see logs of Ubuntu Python3 PIP, Ubuntu contrib, and Windows Bazel GPU. But not Ubuntu Sanity and Windows Bazel. See the figure below

@freedomtan Sorry for the late response. Can you please check Ubuntu Sanity failures now? Thank you.

@gbaned Thanks. Yes, I saw them. Fixed pylint Cs.

Can one of the admins verify this patch?

@caisq Can you please take a look on this PR? Thanks!

Adding @MarkDaoust to reviewers. He's looking into the examples directory recently.

@freedomtan, thanks for taking the time to put together this PR.
But even with these updates, this is not the sort of code we want to encourage:
1. Nobody should be using raw GraphDef's anymore.
2. I'd rather not have any examples directly using Session.

How did you get pointed to this example? someone should update that link.
Modern examples of how to do something like this is included in:
https://github.com/tensorflow/docs/blob/master/site/en/tutorials/images/transfer_learning_with_hub.ipynb
https://github.com/tensorflow/docs/blob/master/site/en/guide/saved_model.ipynb
I'm working on deleting this examples/ directory. Please submit future PRs to https://github.com/tensorflow/examples

@MarkDaoust I wrote it originally :)

I wrote it originally :)

😲
I do appreciate you taking the time to come back and update it.
And I hope you understand that I mean no disrespect to you or your work.

i use  label_image.py to predict a lot of picture .however the memory leak. anyone find it ?

Hi @nanshihui please see the examples I linked to previously for a modern way to do this.

i turn hub.Module params    trainable to True,
it return
tensorflow.python.framework.errors_impl.InvalidArgumentError: You must feed a value for Placeholder  with dtype float and shape [?,299,299,3]

do you have any ways? @MarkDaoust


dont assume .exe is the only executable extension on windows

This should probably be a search over PATH_EXT in the future, but that may still have some edge cases. For instance, emscripten generates .js files which are intended to be executed and the user would likely not have in her PATH_EXT.

Does this actually fix anything? I'm not against merging this; I'd just like to understand what impact it would have. Did you change this because it fixes an actual problem you were facing?
(On a side note: this function is kinda broken by design, and I'd love to remove it completely, but that would require that https://github.com/rust-lang/cargo/issues/3670 gets fixed; alternatively we could always launch cargo with the --message-format json parameter and format the user-facing messages ourselves, but that seems like a huge amount of work for something as basic as printing out the filename of the file which cargo just generated.)

Does this actually fix anything? I'm not against merging this; I'd just like to understand what impact it would have. Did you change this because it fixes an actual problem you were facing?

Ya cargo-web on windows doesn't detect .js files as executable so test and start don't pickup the built artifacts.

Hmm... well, right now I don't entirely understand why this would work, but as I currently have no way of verifying it I'm going to take your word on it and merge it. (Setting up appveyor for cargo-web is already on my very long TODO list.)
Thanks!


Native Menu Support

Allow user to manipulate OS menu
By passing in JSON for initialization
Still need an API to add, remove, disable, etc.

I'd like to work on this, and systray/notification area integration on all three platforms. I may need some help figuring out what changes I need to make to both Photino.Net and Photino.Native.

@stevesobol That's fantastic. Thank you. I believe the notifications are already implemented in the latest builds, so it's just the native menus remaining.

I believe notifications are implemented too, but what I want to see is native notifications. Not sure if that's been implemented. I'll try to check this weekend.

So, let's jump back to the discussion about menus. Bullet list of things we should implement:

Add/mod/delete (obviously) :)
Menu separators
Checked menu items
Menu items with icons; this may be a Windows-only feature. I've never seen it on macOS or Linux.
Submenus
Context/popup menus, but that functionality already exists and I don't know whether it's worth the time to implement native context menus.

Am I missing anything?
On Linux, do we want to use Gtk to implement the native UI?
I have access to native development environments on all three platforms...

All we can think of in addition to your list is disabling or hiding menus and/or menu items. Thank you!


orchestra.connect: do not override user/host from ~/.ssh/config

I don't know why this was ever the case, but ignoring user@host
from the targets list just seems like a bad idea, and causes
problems, because tasks/ansible/etc. assume that the user to use
is ubuntu.  If that's not what .ssh/config says, there's just
going to be trouble...but there's no reason to pay attention
to .ssh/config there; if you really want to play tricks, edit
your target list accordingly.
Fixes: http://tracker.ceph.com/issues/17125
Signed-off-by: Dan Mick<EMAIL_ADDRESS>

I just tried to use teuthology-kill (and thus teuthology-nuke) using this branch and bad things happened.
2016-10-10 14:53:43,018.018 INFO:teuthology.kill:2016-10-10 14:53:43,017.017 ERROR:teuthology.nuke:Could not nuke {'smithi078.front.sepia.ceph.com': 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD6xd+indcBVYVA2VHa+KwsdWBZ9LcH/eX7gmOu/uArXmX03lHarbz2otPqLF4sWbflJXWA8XPFjMv/3LFHE6L+aHJe9ZwFpt+91/EMDjSWd9pp4IJiFpZUAX/0ULSZFsSVK0Wz6iZK6x55BdNUaJNtRAqMwKTeXWicMvlbxhyNrbVL4WjC4cRJhTYIIBTg9XvRemt+UiIGJNNxUqMCIpqfAjHY/LlAHL0pSFc+jrp10ReB30kc/EEOjXiysU16kVqcNmbaS13yXhTr5wHFLn0EJ58KlrzhoIrYZOTLxVgDcE0ZC3Fhs0VB99EUyzj8JVMde5A1olhnT5Yuc+1/nGed'}
2016-10-10 14:53:43,018.018 INFO:teuthology.kill:Traceback (most recent call last):
2016-10-10 14:53:43,018.018 INFO:teuthology.kill:  File "/home/dgalloway/src/teuthology/teuthology/nuke/__init__.py", line 281, in nuke_one
2016-10-10 14:53:43,018.018 INFO:teuthology.kill:    nuke_helper(ctx, should_unlock)
2016-10-10 14:53:43,018.018 INFO:teuthology.kill:  File "/home/dgalloway/src/teuthology/teuthology/nuke/__init__.py", line 319, in nuke_helper
2016-10-10 14:53:43,018.018 INFO:teuthology.kill:    connect(ctx, None)
2016-10-10 14:53:43,018.018 INFO:teuthology.kill:  File "/home/dgalloway/src/teuthology/teuthology/task/internal.py", line 346, in connect
2016-10-10 14:53:43,019.019 INFO:teuthology.kill:    rem.connect()
2016-10-10 14:53:43,019.019 INFO:teuthology.kill:  File "/home/dgalloway/src/teuthology/teuthology/orchestra/remote.py", line 59, in connect
2016-10-10 14:53:43,019.019 INFO:teuthology.kill:    self.ssh = connection.connect(**args)
2016-10-10 14:53:43,019.019 INFO:teuthology.kill:  File "/home/dgalloway/src/teuthology/teuthology/orchestra/connection.py", line 92, in connect
2016-10-10 14:53:43,019.019 INFO:teuthology.kill:    connect_args['key_filename'] = os.path.expanduser(key_filename)
2016-10-10 14:53:43,019.019 INFO:teuthology.kill:  File "/home/dgalloway/src/teuthology/virtualenv/lib/python2.7/posixpath.py", line 254, in expanduser
2016-10-10 14:53:43,019.019 INFO:teuthology.kill:    if not path.startswith('~'):
2016-10-10 14:53:43,019.019 INFO:teuthology.kill:AttributeError: 'list' object has no attribute 'startswith'

agh.  one can have multiple identity filenames, in which case paramiko returns a list.  WIll fix.

I think the old code also did not handle this properly, but did not raise an exception (it would look for '~' in the item, and if it were a list, that would always fail, so the passed list would be unmodified, and presumably then fail).  I'd like to know what you had in your .ssh/config for the host you tested, and how the auth ultimately worked (because paramiko will continue to search .ssh for keys anyway).

When we (eventually and finally) stop using the ubuntu user everywhere, will this PR make that harder?

@zmc it shouldn't; in that case the lock db ought to have  instead of 'ubuntu', and thus the list-targets etc. should have @

Works for me now.

Repushed/squashed.  @zmc, can you review plz

ping @zmc

@dmick Sorry, I totally failed to see your pings here. Thanks for the fix!


I use your tps-resnet-bilstm-attn code to train my handwriten data，the acc is 0.729;if I use the tps-resnet-bilstm-attn code of deep-text-recognition-benchmark,the acc is 0.805.Meanwhile,the acc of small_satrn is only 0.09

the result of tps-resnet-blistm-attn

I think you should check the hyperparameters first. For example, i think you should change the lr-scheduler of small-satrn. Besides, can you paste the training log of tps-resnet-bilstm-attn of deep-text-recognition-benchmark?

The training log of tps-resnet-bilstm-attn of deep-text-recognition-benchmark,the same data

This accuracy is not the training accuracy. The accuracy in the log of vedastr with prefix "Train, Epoch" is the train infomations. So you should check the validation accuracy by searching 'validating' in training log.

The code of deep-text-recognition-benchmark:

Is it possible for you to show me the whole training log by Vedastr? Can you upload it?

I did not add the validation data during training, but I tested it on test data with the latest model. The accuracy is 0.709,the picture is the result of the test, and I uploaded the training log.

20201029_183221.log

I'm not sure what's the problem now. Can you add the group chat?

We have talk about this problem.and the reasons are summarized as follows:

shuffle=True. If you don't use balace sampler or other defined sampler, you should add shuffle=True in train dataloader. This is same with the behavior of dataloader in pytorch.
Different data filtering condition. If you use the code of deep-text-recognition-benchmark, you should carefully check the filtering condition when test. For more infomation, you can check the filter condition in vedastr/datasets/base.py or deep-text-recognition-benchmark/blob/master/dataset.py.
After solved these two problems, the accuracy of vedastr is 75.16 while deep-text-recognition-benchmark is 74.58.


refactor: remove redundant --disable-workload-identity

This pull request removed the redundant --disable-workload-identity flag from az aks create|update commands. Existing user can use --enable-workload-identity False to archive such functionality.

This checklist is used to make sure that common guidelines for a pull request are followed.

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
The precondition is to put your code inside this repository and upgrade the version in the pull request but do not modify src/index.json.

AKS

Please resolve CI conflicting files first.

Updated, PTAL @yonzhan

Will removing parameter --disable-workload-identity directly have a great impact on users?
If so, can we consider using c.deprecate(hide=True) to hide this parameter first? When most users migrate to parameter --enable-workload-identity False, then we remove it completely, so as to avoid big breaking change.

Will removing parameter --disable-workload-identity directly have a great impact on users? If so, can we consider using c.deprecate(hide=True) to hide this parameter first? When most users migrate to parameter --enable-workload-identity False, then we remove it completely, so as to avoid big breaking change.

@zhoxing-ms
Thanks for the concern. Removing these flags won't impact current user as in AKS, this feature is not being enabled yet, only a small group of testers have access to it. So, removing it won't cause breaking change.

@zhoxing-ms @yonzhan could you help merge this pr? Thanks!


Mail Message List view button labels

I feel that button labels in the mail view are missing. It might not be obvious right away which icon does what so it'd be nice to include labels next to them or at least give an option to.
Here is an example (by modifying /rainloop/v/x.x.x/app/templates/Views/User/MailMessageList.html)

There is a tooltip when hovering the buttons. Does it not show up for you?

I feel like tooltip is not enough. My users want to know what each button does immediately not guess or hover to find out. It's an UX issue. Kind of subjective but the trend in minimalist icon buttons is bad, the interface is much less newb-friendly


Only rolling poke in a specific channel

In a few servers I am in poke rolls can only be used in a certain channel separate from the character rolls, I was wondering if there was any way to configure the bot to only roll pokemon in a certain channel.

You would have to basically create another separate array variable that hold channel ids to send in to the poke_roll function as each rolling channel is a separate thread that is created that would be a way to do that
Sent from my iPhone

On Sep 24, 2021, at 12:58 PM, Owen S. @.***> wrote:

In a few servers I am in poke rolls can only be used in a certain channel separate from the character rolls, I was wondering if there was any way to configure the bot to only roll pokemon in a certain channel.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.


Router does not pass through the host header correctly

The generated Nginx config has this line:
proxy_set_header Host $host;
In Nginx, the value of $host is the value of the incoming host header with the port number stripped off. Stripping off the port number is not the desired behavior. The line should be:
proxy_set_header Host $http_host;

@mpnally Looks like Jeremy changed this on Sep 13. https://github.com/30x/k8s-router/commit/4c2def24326596848859e8bd9d43fa5b26de5b4a
Looks like something needs to be updated somewhere.

That is interesting. As far a s I can tell, that change did not get deployed to e2e. Here is an excerpt from the log of a public router on E2E on 2016/10/26:
events {
  worker_connections 1024;
}
http {
  # http://nginx.org/en/docs/http/ngx_http_core_module.html
  types_hash_max_size 2048;
  server_names_hash_max_size 512;
  server_names_hash_bucket_size 64;

  # Force HTTP 1.1 for upstream requests
  proxy_http_version 1.1;

  # When nginx proxies to an upstream, the default value used for 'Connection' is 'close'.  We use this variable to do
  # the same thing so that whenever a 'Connection' header is in the request, the variable reflects the provided value
  # otherwise, it defaults to 'close'.  This is opposed to just using "proxy_set_header Connection $http_connection"
  # which would remove the 'Connection' header from the upstream request whenever the request does not contain a
  # 'Connection' header, which is a deviation from the nginx norm.
  map $http_connection $p_connection {
    default $http_connection;
    ''      close;
  }

  # Pass through the appropriate headers
  proxy_set_header Connection $p_connection;
  proxy_set_header Host $host;
  proxy_set_header Upgrade $http_upgrade;

Do we know what version is deployed to e2e and what code commit/tag that Docker image was built from?
This I found to be an issue in the past when you manually create Docker images from your laptop for use in production. It's hard to map what was actually used to create the image. On the Link team we moved all our Docker images to auto builds based on github commits and tags so there would always be a reliable mapping.

Yes, indeed. We need to get onto a proper process for deployment. I think there is already and issue for this. Mamu/Jordan have already defined a process with tools—we need to use it.

k8s-router is already using $http_host instead of $host: https://github.com/30x/k8s-router/blob/master/nginx/config.go#L77  And this should be deployed to both e2e and prod.  I will do some digging.
As for the labeling of Docker builds against the git revision, we can do that.


feat: add oci8 3.4.0 release

update oci8 with release 3.4.0

:tada: This issue has been resolved in version 1.323.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Flow implicitly casts to any when accessing a property in a conditional from an imported type with indexable signature

This is a pretty weird one; discovered after an obvious type error was not caught by flow.
Please see the reproduction repository.
We have noticed the following losses of type information.
The type:
export type StringMap = {
  [key: string]: string;
};

Assume foo is of type StringMap.
if (foo.bar) {
  // due to the above conditional, `foo` is now the `any` type
  const a:number = foo.bar; // Bug: not an error!
}

However, this does not happen in the following situations:
const {bar} = foo;
if (bar) {
  // `foo` has maintained its type
  const a:number = foo.bar; // error as expected
}

Or even when explicitly casting to Boolean:
if (Boolean(foo.bar)) {
  // `foo` has maintained its type
  const a:number = foo.bar; // error as expected
}

This issue does not appear to occur without the indexable signature.
Please see https://github.com/STRML/flow-refinement-bug for a reproduction with 0.38.0.

Added a failing test PR in #3320.

Looks like this has been fixed ¯_(ツ)_/¯
https://flow.org/try/#0KYDwDg9gTgLgBDAnmYcDKMoEsB2BzAWQEMw4BeOAbwCg44BtAa2EQC44BnTXPAXXa7Z8AbmoBfUdQAmwAMYAbIlFQA3JXABmECOwxDCJSVg1wAFFogA6AEZKAlFVpwA9M7hSArqhgQEAC1QiawgVVFkIHCksGCwIonkAGjgAAwtkuCwOOBwIAHd-VGSiHER0pBQncJwuOCJWHA8AW2tgKHJNbRslYRc3ACEPPHYc+GK4VqhoAEJxIA


ARM for autoscale recurrence hour and minute only accepts one input

Seeing error when deploying autoscaling recurrence using ARM, from this document https://docs.microsoft.com/en-us/azure/templates/microsoft.insights/2015-04-01/autoscalesettings#recurrentschedule-object the hours and minutes should be array.
However when i deploy it through ARM, it is complaining "he autoscale setting that you provided has an invalid recurrence schedule with invalid count for minutes specified. Specify only one value for minutes."
With one input for hours and minutes, only start time is created and no end time there for recurrence.
Tested from portal as well, created recurrence with start time to be 6:00 and end time to be 18:00, the auto generated template only shows below.  I believe this is a bug.
"recurrence": {
"frequency": "Week",
"schedule": {
"timeZone": "Eastern Standard Time",
"days": [
"Monday",
"Tuesday",
"Wednesday"
],
"hours": [
18
],
"minutes": [
0
]
}
}

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

ID: 99b4970a-4b60-1c58-2af1-f095972a42f5
Version Independent ID: e514f651-067b-045d-5065-3891e29e97b7
Content: Understanding autoscale settings in Azure Monitor
Content Source: articles/azure-monitor/platform/autoscale-understanding-settings.md
Service: azure-monitor
Sub-service: autoscale
GitHub Login: @anirudhcavale
Microsoft Alias: ancav

Thanks for your comment. We are actively investigating and will get back to you shortly. Thanks for your patience.

@femsulu can you please assign this to @rboucher ?

#reassign:sshams79

@rboucher @sshams79 Any updates on how to define a schedule in ARM with start AND end date?

In the ARM recurring profiles (profiles that should run on particular day(s) of the week) will only have start time. The recurring profile will run until the next profile is designated to start or when the fixed profile date is set to start. The below documentation reiterates what is mentioned:
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/autoscale-understanding-settings#autoscale-profiles
I would like to understand a little more about your scenario and see how not having an end date is impacting how you set your scaling conditions.

@sshams79  It is about the time aspect of the end rather than the date itself. With that, the ARM has two weird profiles where the 2nd profile reference the 1st profile in the name via "{\"name\":\"ScaleProfile\",\"for\":\"Offline\"}" just so that I can define a profile where the scaleset scales down to zero on all days during out of business hours. This is a really bad API design.
{
            "type": "Microsoft.Insights/autoscaleSettings",
            "apiVersion": "2015-04-01",
            "name": "autoscalehost",
            "location": "[parameters('location')]",
            "properties": {
                "name": "autoscalehost",
                "targetResourceUri": "[concat('/subscriptions/',subscription().subscriptionId, '/resourceGroups/',  resourceGroup().name, '/providers/Microsoft.Compute/virtualMachineScaleSets/', variables('vmssName'))]",
                "enabled": true,
                "profiles": [
                    {
                        "name": "Offline",
                        "capacity": {
                            "minimum": "0",
                            "maximum": "0",
                            "default": "0"
                        },
                        "rules": [
                        ],
                        "recurrence": {
                            "frequency": "Week",
                            "schedule": {
                                "timeZone": "GMT Standard Time",
                                "days": [
                                    "Monday",
                                    "Tuesday",
                                    "Wednesday",
                                    "Thursday",
                                    "Friday",
                                    "Saturday",
                                    "Sunday"
                                ],
                                "hours": [
                                    "[parameters('offlineStartHour')]"
                                ],
                                "minutes": [
                                    0
                                ]
                            }
                        }
                    },
                    {
                        "name": "{\"name\":\"ScaleProfile\",\"for\":\"Offline\"}",
                        "capacity": {
                            "minimum": "1",
                            "maximum": "3",
                            "default": "1"
                        },
                        "rules": [
                            {
                                "metricTrigger": {
                                    "metricName": "Percentage CPU",
                                    "metricNamespace": "",
                                    "metricResourceUri": "[concat('/subscriptions/',subscription().subscriptionId, '/resourceGroups/',  resourceGroup().name, '/providers/Microsoft.Compute/virtualMachineScaleSets/', variables('vmssName'))]",
                                    "timeGrain": "PT1M",
                                    "statistic": "Average",
                                    "timeWindow": "PT5M",
                                    "timeAggregation": "Average",
                                    "operator": "GreaterThan",
                                    "threshold": 50
                                },
                                "scaleAction": {
                                    "direction": "Increase",
                                    "type": "ChangeCount",
                                    "value": "1",
                                    "cooldown": "PT1M"
                                }
                            },
                            {
                                "metricTrigger": {
                                    "metricName": "Percentage CPU",
                                    "metricNamespace": "",
                                    "metricResourceUri": "[concat('/subscriptions/',subscription().subscriptionId, '/resourceGroups/',  resourceGroup().name, '/providers/Microsoft.Compute/virtualMachineScaleSets/', variables('vmssName'))]",
                                    "timeGrain": "PT1M",
                                    "statistic": "Average",
                                    "timeWindow": "PT5M",
                                    "timeAggregation": "Average",
                                    "operator": "LessThan",
                                    "threshold": 5
                                },
                                "scaleAction": {
                                    "direction": "Decrease",
                                    "type": "ChangeCount",
                                    "value": "1",
                                    "cooldown": "PT1M"
                                }
                            }
                        ],
                        "recurrence": {
                            "frequency": "Week",
                            "schedule": {
                                "timeZone": "GMT Standard Time",
                                "days": [
                                    "Monday",
                                    "Tuesday",
                                    "Wednesday",
                                    "Thursday",
                                    "Friday",
                                    "Saturday",
                                    "Sunday"
                                ],
                                "hours": [
                                    "[parameters('offlineEndHour')]"
                                ],
                                "minutes": [
                                    0
                                ]
                            }
                        }
                    }
                ]
            }
        }

May need documentation.
#label:"CreateAzMonWIFeb2021"

Thank you for your contribution to the Azure Monitor documentation. We have created a workitem for this issue in our internal backlog database. We will prioritize it and make any necessary changes as we are able.
#please-close


tour: [REPLACE WITH SHORT DESCRIPTION]

Context: https://tour.golang.org/moretypes/5
Change the title above to describe your issue and add your feedback here, including code if necessary
Great stuff - maybe change the comments to the following for simplicity for noobs?:
package main
import "fmt"
type Vertex struct {
X, Y int
}
var (
v1 = Vertex{1, 2}  // has type Vertex
v2 = Vertex{X: 10}  // Y == 0 is implied
v3= Vertex{Y: 5}  // X == 0 is implied
v4 = Vertex{}      // X:0 and Y:0
p  = &Vertex{1, 2} // has type *Vertex
)
func main() {
fmt.Println(v1, v2,v3, v4, p)
}

Any suggestions?
I actually tried to add more comments on that page and my update was rejected.
PS: Please change the issue title with something like "Improve Struct Literals code"

Sure - I think what I put in the original post would help?  Also welcome to suggestions there  as well.  Awesome work on the tutorials!


I think typescript is useful for this project

Hello, Do you have plan to make index.d.ts?

Hi @jihokim2 yes, it's part of the migration improvement.
If you have some experience with Typescript, feel free to open a PR with this .d.ts while migration is still in progress :)

work is getting done here #10

TS definititons are released with version 4.1.0
https://github.com/thebergamo/react-native-fbsdk-next/releases/tag/v4.1.0


How can I generate pose-variant 2d-pictures and perform expression changes with your code?

As is described in the title, have you provided some easy way to transform a 2d image to images with different poses?
Also, is it possible to use the 3dmm model your code generates to perform facial-expression changes with your code?
Thanks a lot

I have found a face3d library, and it needs the 3dmm mesh data as the input. Is your code compatible with its interface? https://github.com/YadiraF/face3d


Fixed Permissions

I hope it works with iOS and the permissions are ok.

Thank you for doing this! I will merge and push this update once I verify that it's working!


Trying to run an old model results in an error

ubuntu@ip-Address:~$ hypergan train faceCrop/ -s 128x128x3 -f png -b 32 --config rmsprop-lsgan --sample_every 5
[loader] ImageLoader found 8003 images with 4 different class labels
Traceback (most recent call last):
  File "/usr/local/bin/hypergan", line 90, in <module>
    gan = hg.GAN(config=config, inputs=inputs)
  File "/usr/local/lib/python3.5/dist-packages/hypergan/gan.py", line 14, in gan_factory
    return StandardGAN(*args, **kw_args)
  File "/usr/local/lib/python3.5/dist-packages/hypergan/gans/standard_gan.py", line 43, in __init__
    BaseGAN.__init__(self, *args, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/hypergan/gans/base_gan.py", line 30, in __init__
    GANComponent.__init__(self, self, config)
  File "/usr/local/lib/python3.5/dist-packages/hypergan/gan_component.py", line 33, in __init__
    self.create_ops(config)
  File "/usr/local/lib/python3.5/dist-packages/hypergan/gan_component.py", line 43, in create_ops
    self.ops = self.gan.ops_backend(config=self.config, device=self.gan.device)
  File "/usr/local/lib/python3.5/dist-packages/hypergan/ops/tensorflow/ops.py", line 19, in __init__
    self.dtype = self.parse_dtype(dtype)
  File "/usr/local/lib/python3.5/dist-packages/hypergan/ops/tensorflow/ops.py", line 107, in parse_dtype
    raise Exception("dtype not defined: "+str(dtype))
Exception: dtype not defined: {'_type_enum': 1}

Hi, this may be related to older versions of hypergan.  0.10 does not support old models but new models will not experience this issue.


Improvements to power management

I think we can start with the recommendation to run powertop --auto-tune via systemd, as shown here:
http://loicpefferkorn.net/2015/01/arch-linux-on-macbook-pro-retina-2014-with-dm-crypt-lvm-and-suspend-to-disk/
(also note he recommends powerdown.git which redirects to tlp docs).
other wants/todos:

warning message when battery low and a suspend when battery critical.
any other tlp tweaks
do we need to disable rfkill? (see https://wiki.archlinux.org/index.php/TLP) .. it's still enabled on my laptop

I haven't noticed any issue with rfkill running with TLP, but if the wiki says we should disable it, it must be so.
I've never heard of powertop. It doesn't run for me:
# powertop
Failed to mount debugfs!
exiting...

Now that I look, we do disable rfkill. What is the output of systemctl status systemd-rfkill.service?

I was able to run powertop on the vanilla kernel. Grsecurity blocks it. I do want to support grsec, so running powertop on boot won't work.
We also need to be careful about conflicts in the settings. For instance, one of the things powertop suggests I do is enable power management for audio. However, we already manage this with TLP. (I ran powertop while on AC, so as far as it is concerned the setting is not enabled.) It also wants me to change my power management policy from performance to min power, but TLP does that too.

I ran powertop in the vanilla kernel again, this time on battery. Here's the relevant part of the CSV output:
____________________________________________________________________
 *  *  *   Software Settings in Need of Tuning   *  *  *

Description;Script
VM writeback timeout;echo '1500' > '/proc/sys/vm/dirty_writeback_centisecs';
Runtime PM for I2C Adapter i2c-9 (DPDDC-D);echo 'auto' > '/sys/bus/i2c/devices/i2c-9/device/power/control';
Runtime PM for I2C Adapter i2c-7 (DPDDC-B);echo 'auto' > '/sys/bus/i2c/devices/i2c-7/device/power/control';
Runtime PM for I2C Adapter i2c-8 (DPDDC-C);echo 'auto' > '/sys/bus/i2c/devices/i2c-8/device/power/control';
Runtime PM for I2C Adapter i2c-5 (i915 gmbus dpb);echo 'auto' > '/sys/bus/i2c/devices/i2c-5/device/power/control';
Runtime PM for I2C Adapter i2c-6 (i915 gmbus dpd);echo 'auto' > '/sys/bus/i2c/devices/i2c-6/device/power/control';
Runtime PM for I2C Adapter i2c-3 (i915 gmbus panel);echo 'auto' > '/sys/bus/i2c/devices/i2c-3/device/power/control';
Runtime PM for I2C Adapter i2c-4 (i915 gmbus dpc);echo 'auto' > '/sys/bus/i2c/devices/i2c-4/device/power/control';
Runtime PM for I2C Adapter i2c-1 (i915 gmbus ssc);echo 'auto' > '/sys/bus/i2c/devices/i2c-1/device/power/control';
Runtime PM for I2C Adapter i2c-2 (i915 gmbus vga);echo 'auto' > '/sys/bus/i2c/devices/i2c-2/device/power/control';
Runtime PM for I2C Adapter i2c-0 (SMBus I801 adapter at efa0);echo 'auto' > '/sys/bus/i2c/devices/i2c-0/device/power/control';
Autosuspend for USB device USB Receiver [Logitech];echo 'auto' > '/sys/bus/usb/devices/2-1.1/power/control';
Runtime PM for PCI Device Intel Corporation 7 Series/C210 Series Chipset Family KT Controller;echo 'auto' > '/sys/bus/pci/devices/0000:00:16.3/power/control';
Runtime PM for PCI Device Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller;echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.3/power/control';
Runtime PM for PCI Device Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode];echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.2/power/control';
Runtime PM for PCI Device Intel Corporation QM77 Express Chipset LPC Controller;echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.0/power/control';
Runtime PM for PCI Device Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1;echo 'auto' > '/sys/bus/pci/devices/0000:00:1d.0/power/control';
Runtime PM for PCI Device Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2;echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.1/power/control';
Runtime PM for PCI Device Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3;echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.2/power/control';
Runtime PM for PCI Device Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1;echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.0/power/control';
Runtime PM for PCI Device Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2;echo 'auto' > '/sys/bus/pci/devices/0000:00:1a.0/power/control';
Runtime PM for PCI Device Intel Corporation 3rd Gen Core processor Graphics Controller;echo 'auto' > '/sys/bus/pci/devices/0000:00:02.0/power/control';
Runtime PM for PCI Device Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller;echo 'auto' > '/sys/bus/pci/devices/0000:00:14.0/power/control';
Runtime PM for PCI Device Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1;echo 'auto' > '/sys/bus/pci/devices/0000:00:16.0/power/control';

I know I don't want to do that thing in the middle about enabling autosuspend for the Logitech USB receiver. I've tried USB autosuspend on input devices in the pre-TLP days and it always caused me problems.
The rest of the stuff I haven't looked through to see what it would actually mean or do. If any of it makes a meaningful impact, we may want to see if we can make it generic enough to have spark make the changes itself.

I saw your note in a commit about hibernate not working, looks like grsec again,
also see the note about tlp in here:
The following incompatibilities require building a custom kernel with fewer features enabled:

    hibernation is not supported (conflicts with CONFIG_GRKERNSEC_KMEM, CONFIG_PAX_MEMORY_SANITIZE and CONFIG_RANDOMIZE_BASE)
    Xen and virtualbox are not supported (conflicts with CONFIG_PAX_KERNEXEC and CONFIG_PAX_MEMORY_UDEREF)
    CONFIG_GRKERNSEC_KMEM is incompatible with software altering the CPU MSR, such as power saving configuration tools like cpupower, powertop and x86_energy_perf_policy (optionally used by tlp). Rather than disabling the option, you could recompile the kernel with your desired defaults.

Known incompatibilities with other packages:

    pkgstats - tries to list the loaded modules as non-root and treats it as a fatal error when it fails
    broadcom-wl-dkmsAUR - fails to be compiled with linux-grsec-headers due to illegal memory access

My rfkill:
deere:spark john$ systemctl status rfkill.service
● rfkill.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)
deere:spark john$ lsmod | grep rfk
rfkill                 20480  3 cfg80211

Whoops, I meant systemctl status systemd-rfkill.service. Anyway, it is disabled for reals now.
I did try hibernating on the vanilla kernel. It doesn't work for me. My guess was something to do with the LVM/LUKS encrypted swap setup.

Relevant: http://linrunner.de/en/tlp/docs/tlp-faq.html#powertop


Removed redundant public and extended a little JavaDoc.

Really minor non functional stuff - @greghaskins please hit merge if that's ok...

Coverage remained the same at 100.0% when pulling bb09b238f43d453c07b2c6c171ec084668f70674 on ashleyfrieze:minor-fixup-docs-and-public into d6d5c6edb1b8d3c1099e648a17de90e63f9c942a on greghaskins:master.


Test Issue created at Thu, 03 Jun 2021 09:21:00 GMT

Test issue body  Thu, 03 Jun 2021 09:21:00 GMT

Comment on issue at Thu, 03 Jun 2021 09:21:02 GMT


Juliaup doesn't create config file automatically

I downloaded the tarballs for 1.5.31 and extracted it to /root/.local/bin. I then get the following error when I start julialauncher:
root@localhost:~# julialauncher
Error: The Julia launcher failed to load a configuration file.

Caused by:
    Could not open self configuration file "/root/.local/juliaupself.json": Os { code: 2, kind: NotFound, message: "No such file or directory" }

I thought Juliaup should create that file automatically if it doesn't exist, no?

I think the root problem is that we need to compile one version for download from the github release page that doesn't include the selfupdate feature. Versions that include selfupdate really need to be installed via juliainstaller, so we shouldn't have those versions on the github release page.

Hello, thanks for working on this issue! I'm running into this as well after running juliaup self update, and the error now occurs every time I run julialauncher.
What would be the temporary fix for this? Should we re-install juliaup and then not use the self update command until this is resolved?
Thank you.

@cailinw so just to be clear: if you install via curl -fsSL https://install.julialang.org | sh, then self update should just work, and I would recommend that (or brew install juliaup if you are on Mac).
If you download juliaup from the github release page here, just don't use self update, that will never work. I just need to make sure that the version of the files that we host on github don't even support that command.

I had the same problem as @cailinw. I had an old version of juliaup on Ubuntu 21.10. I installed it some time ago when @davidanthoff released the first easy install version for Linux in https://github.com/JuliaLang/juliaup/issues/84#issuecomment-975185070 (worked like a charm btw).
Today, I ran juliaup self update and got the issue with the missing config file. Unfortunately, I'm not sure how to install that old version again to reproduce and the current installer only seems to install the current version, so juliaup self update does nothing.
Anyway, I removed ~/.juliaup and re-installed with curl -fsSL https://install.julialang.org | sh. Works fine again.

I'm going to close this, I think this was essentially a problem that we distributed some binaries incorrectly.


Failed to submit extrinsic: Extrinsic verification error: Execution(ApiError("Could not convert parameter tx between node and runtime: Error decoding field Call :: GenericAsset.0"))

when i use the module "generic-asset", the function that  i create it can run successfully, but other functions can't run and show "Failed to submit extrinsic: Extrinsic verification error: Execution(ApiError("Could not convert parameter tx between node and runtime: Error decoding field Call :: GenericAsset.0"))". why?

there are my code:
in lib.rs :1234:
impl generic_asset::Trait for Runtime { 	type Event = Event; 	type Balance = Balance; 	type AssetId = u32; }
GenericAsset: generic_asset::{Module, Call, Storage, Event<T>, Config<T>},
in chain-spec.json:
let assetid: Vec<u32> = vec![1,2,3,4,5].into();
`generic_asset: Some(GenericAssetConfig{
endowed_accounts: endowed_accounts.iter().cloned().collect::<Vec<_>>(),
initial_balance:<PHONE_NUMBER>MILLICENTS,
assets: assetid,  // 已经解决
next_asset_id: 6u32,
spending_asset_id:1u32,
staking_asset_id: 4u32,
	}),`

@wjy19990622 what version of the Substrate node are you using here?

@wjy19990622 what version of the Substrate node are you using here?
substrate --version or equivalent.

substrate 2.0.0-8cb06da98-x86_64-linux-gnu

@wjy19990622 what version of the Substrate node are you using here?
substrate --version or equivalent.

substrate 2.0.0-8cb06da98-x86_64-linux-gnu

command:
./target/debug/substrate  --version

@wjy19990622 what version of the Substrate node are you using here?
substrate --version or equivalent.

substrate 2.0.0-8cb06da98-x86_64-linux-gnu

command:
./target/debug/substrate --version

@wjy19990622 what version of the Substrate node are you using here?
substrate --version or equivalent.

substrate 2.0.0-8cb06da98-x86_64-linux-gnu

command:
./target/debug/substrate --version

i use the command: cargo build , WASM_BUILD_TYPE=release cargo run  purge-chain  --dev -y, WASM_BUILD_TYPE=release cargo run -- --dev.
and change the Version for example 'authoring_version: 11'，'spec_version: 200', 'impl_version: 200'.
but it didn't work.

Did you purged your db?

Did you purged your db?

yes， when i run the code, i use the command "WASM_BUILD_TYPE=release cargo run purge-chain --dev -y" allways.

You still having the problem? Do you have a link to your project to try it locally?

I have the same problem
node-template 2.0.0-8b6fe66-x86_64-macos
https://github.com/kuronyago/substrate-assets

cc @xlc

A quick look it seems like mismatch codec issue
https://github.com/paritytech/substrate/blob/bd540a67464ccfd24e0fec9081171dab7857183e/frame/generic-asset/src/lib.rs#L211
https://github.com/polkadot-js/api/blob/fc4cbb608ce4076e9a2c51f3c060448045035951/packages/types/src/interfaces/genericAsset/definitions.ts#L8

Add this to polkadot apps Settings -> Developers temporary workaround the issue.
{
  "AssetOptions": {
    "initalIssuance": "Compact<Balance>",
    "permissions": "PermissionLatest"
  }
}


Add Secret validation

As a user I would like to know if the secret found is valid or not so I would be able to prioritize and remediate accordingly.
Description:
Associate the following data with the secret found:

Verification Status - if the secret could be check as it won't always be possible
Secret validity result (if the secret has found to be valid)

Secrets to add validation to:

[ ] AWS secrets
[ ] Azure secrets
[ ] Google Cloud Platform secrets

Some of the secrets (such as Github) are stand-alone tokens, but some of them can be used only by combination (of Access Token and Secret Token, such as on AWS Console).
I need to think about how to validate those.

AWS secrets need first to be supported on gitleaks, see https://github.com/gitleaks/gitleaks/pull/1356.

To validate gcp-api-key, I'm not sure what will be the complete process, but try this:
curl \
  'https://youtube.googleapis.com/youtube/v3/search?part=snippet&key=YOUR_GCP_KEY' \
  --header 'Accept: application/json' \
  --compressed

It may return a message like: YouTube Data API v3 has not been used in project 123456 before or it is disabled which means this key is related to a project.


diffoscope: add dependency on python xattr package

Motivation for this change
To be able to diffoscope 2 directories
Things done

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

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

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Notify maintainers
cc @dezgeg

Thank you @raboof


Add NuGet Packages to Microsoft.UI.Xaml.2.8 version 8.2310.30001.0

Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:

2024-02-28T21:24:19.4107151Z ##[error] Manifest Error: Failed to process installer. [InstallerUrl] Value: https://www.nuget.org/api/v2/package/Microsoft.UI.Xaml/2.8.6

(Automated response - build 849.)

Yep, makes sense


Why are we bundling bootstrap?

I've noticed we're bundling all the scss files for bootstrap.
I understand from #12 that we can't use the CDN because we're compiling the template with custom variables - but why aren't we pulling bootstrap in via npm?
This would ensure a more consistent experience, as it currently stands a user could submit a PR editing the core bootstrap files and suddenly CoreUI is no longer "bootstrap compatible".
Summary: Please consider loading bootstrap via npm rather than bundling it with the template.

I asked myself the same question today. +1 for pulling BS via NPM and importing it into coreUI via the appropriate node_module subfolder.

Taking advantage of the question from the colleague above, I would really like to know if I could for example import the traditional bootstrap rather than using boostrap-vue, although I have seen that boostrap-vue is pretty cool. Could I have the 2 running at the same time?

@farnetani there's no reason you actually need to use the bootstrap-vue components.
You can write the markup using standard bootstrap markup if you wish.

Fixed in v1.0.4


Some problem with @Counted and @Gauge annotation

Hi,
I'm in a process of evaluation of metrics 3rd party library for our next project.
Therefore I've assembled one small web application (WAR), based on Java, Spring and SpringMVC.
You can found project(code) on following URL: https://github.com/staleks/metrics
While JVM works fine, I'm troubling with @Counted and @Gauge annotations.
Here is the relevant part of Console log:
jvm.memory.total.max
             value =<PHONE_NUMBER>
jvm.memory.total.used
             value = 246296672
jvm.thread-states.blocked.count
             value = 0
jvm.thread-states.count
             value = 14
jvm.thread-states.daemon.count
             value = 5
jvm.thread-states.deadlock.count
             value = 0
jvm.thread-states.deadlocks
             value = []
jvm.thread-states.new.count
             value = 0
jvm.thread-states.runnable.count
             value = 5
jvm.thread-states.terminated.count
             value = 0
jvm.thread-states.timed_waiting.count
             value = 6
jvm.thread-states.waiting.count
             value = 3
rs.in.staleksit.metrics.web.controller.IndexController.someProperty
             value = null

-- Counters --------------------------------------------------------------------
rs.in.staleksit.metrics.web.controller.IndexController.handle-counted
             count = 0

-- Timers ----------------------------------------------------------------------
rs.in.staleksit.metrics.web.controller.IndexController.handle-timed
             count = 13
         mean rate = 0.44 calls/second
     1-minute rate = 0.17 calls/second
     5-minute rate = 0.04 calls/second
    15-minute rate = 0.01 calls/second
               min = 0.00 milliseconds
               max = 18.53 milliseconds
              mean = 1.32 milliseconds
            stddev = 4.75 milliseconds
            median = 0.00 milliseconds
              75% <= 0.00 milliseconds
              95% <= 18.53 milliseconds
              98% <= 18.53 milliseconds
              99% <= 18.53 milliseconds
            99.9% <= 18.53 milliseconds

As you can see
someProperty value is NULL, and handle-counted count is 0, while later @Timed part gives correct number of counts = 13.
Project is fully buildable, and runnable, so you can clone it to reproduce issue.
Thank You in advance for your help

Correct. @Counter defaults to counting the currently active method invocations, so the counter is incremented when the method is invoked, and decremented when the method returns. If you want it to count total invocations (increment on invocation, noop on return), you can set the attribute @Counted(monotonic = true). Also I don't see any interactions with the someProperty field, and being an Integer and not an int, the null value of the gauge is correct.


Fix vulnerabilities from dependencies in 1.3.28

In zerocode 1.3.28 there are listed 11 vulnerabilities from dependencies (See https://mvnrepository.com/artifact/org.jsmart/zerocode-tdd/1.3.28):
CVE-2022-23221
CVE-2021-42550
CVE-2021-42392
CVE-2021-29425
CVE-2021-22569
CVE-2020-36518
CVE-2020-15250
CVE-2020-13936
CVE-2017-5929
Can you update them to fix it?

Hi! I would like to help in this issue if someone hasn't already taken it... but I will need some time because I'm new with Maven  :sweat_smile: I've found these vulnerabilities in version 1.3.29 too

Hi! I would like to work on this issue if someone hasn't already taken it...

Can you assign me this task


CDN: source map no longer applied expectedly since 1.120 with Chromium browsers

URL (minimal example if possible)
https://embed.plnkr.co/NKOfisfY7w0MOiX8?show=manifest.json,preview:?sap-ui-xx-componentPreload=off
Steps to reproduce the problem

Open the browser console (F12) in the sample above.
Let the framework throw an Error, e.g. by adding a space to the manifest.json section /sap.ui5/commands/MyRefresh/shortcut: "F5" --> "F5 " which is not an allowed character there.
Ensure that the preview is reloaded. Observe the error reported in the console.

What is the expected result?
The error in the console includes a link to the place via the source map where the Error was thrown. In the sample above, the link should lead to the ShortcutHelper-dbg.js. This is currently the case until UI5 1.119.
What happens instead?
The error shows a link to the library-preload.js instead since UI5 1.120, but only if the framework is bootstrapped from the CDN URL. Building the UI5 SDK from rel-1.120 and bootstrapping from http://localhost:8000/resources/sap-ui-core.js shows the ShortcutHelper-dbg.js link in the console expectedly.
Any other information? (attach screenshot if possible)
The library-preload.js.map content from the CDN seems to differ from the locally built library-preload.js.map.

I assume that "locally built" means built with the ui5 cli alone? There's indeed a difference between the library-preload.js.map when it's built locally (with ui5 cli on openui5/src/sap.ui.core) compared to the version on the CDN.
But that difference is caused by differences between the public and the SAP internal build. Internally, we merge a few legacy sources into the build result for sap.ui.core (and others). Those sources are legacy and have been deprecated before UI5 went open source. We therefore decided to omit them from the OpenUI5 repository and only kept them internally for compatibility reasons.
I can confirm that the source maps work as expected for 1.119.0 and don't work as expected in 1.120.0. But I could not easily confirm that source maps work when build locally.
Only when I used @ui5/cli 3.4.0 (which was used in 1.119.0), the source maps show ShortcutHelper-dbg.js in the stack trace again. With more recent tooling, a local build for me shows the same behaviour as the CDN.
Another observation: with Safari, source maps even work in 1.120 when loaded from the CDN.

Hi @boghyon ,
thank you for your submission! I have created an internal ticket (DINC0139775) for colleagues to observe the addressed issue.
Best regards,
Petya Markova.
(UI5 Dispatcher)

I created a fix on UI5 Tooling side: https://github.com/SAP/ui5-builder/pull/1014
For sap.ui.core this is ultimately caused the added handling for input source maps (since @ui5/cli v3.7.0) in combination with a file containing only comments (for which the minify task will create a source map with no mappings) in OpenUI5 1.118.0: sap/ui/model/odata/v4/ts.js

Fix in UI5 Tooling got released with<EMAIL_ADDRESS>and<EMAIL_ADDRESS>All affected and currently maintained UI5 code lines have been updated to use this version for their next patch release, as well as the next UI5 minor release. Therefore closing this issue for the time being. Thanks for spotting this!


Pasting text into Replace-in-File Search field removes editor selection

This prevents you from proceeding with doing a search/replace in the selection.

VSCode Version: Code 1.16.1 (27492b6bf3acb0775d82d2f87b25a93490673c6d, 2017-09-14T16:24:39.530Z)
OS Version: Darwin x64 16.7.0
Extensions:

Extension
Author (truncated)
Version

vscode-docker
Pet
0.0.18

php-formatter
Sop
0.2.4

sort-lines
Tyr
1.3.0

githistory
don
0.2.3

javadebugger
don
0.1.3

python
don
0.7.0

phpunit
ema
2.1.1

git-project-manager
fel
1.4.0

php-debug
fel
1.11.1

php-intellisense
fel
1.5.1

code-runner
for
0.7.1

vscode-javac
geo
0.0.46

phpcs
ika
0.7.0

Go
luk
0.6.65

prettify-json
moh
0.0.3

mssql
ms-
1.1.0

cpptools
ms-
0.12.4

Ruby
reb
0.15.0

rewrap
stk
1.5.0

gitblame
wad
2.2.0

vscode-proto3
zxh
0.1.2

Steps to Reproduce:

Select text.
Edit > Replace.
Shift-Tab to focus the Search field.
Select All text in the Search field.
Paste a substring that exists in the selected text.
Your text selection is gone.

Reproduces without extensions: Yes

Dup of https://github.com/Microsoft/vscode/issues/17563, let's track it there.


Download failing immediately doesn't update UI

Describe the bug
When requesting a download that immediately fails, UI stays stucked on the "download in progress" state.
It might happen using iOS when episode URLs are non-SSL http://.
There might be other cases where download fails as soon as it starts.
To Reproduce

Using iOS
add the following podcast : https://feeds.feedburner.com/LaperoDuCaptain
request any episode download.
Episode in list keeps displayed as a download in progress. But download is actually stopped because OS refused http request.

Analyse
mobile_download_service.dart
  @override
  Future<bool> downloadEpisode(Episode episode) async {
 // ....
        final taskId = await downloadManager.enqueueTask(episode.contentUrl, downloadPath, filename);

        // Update the episode with download data
        episode.filepath = episodePath;
        episode.filename = filename;
        episode.downloadTaskId = taskId;
        episode.downloadState = DownloadState.downloading;
        episode.downloadPercentage = 0;

        await repository.saveEpisode(episode);
// ...
  }

Starting a download sequentially :

Enqueues a download task in FlutterDownloader
Gets the FlutterDownloader task id -> persists it in sembast Episode.downloadTaskId
On download update, DownloadService

looks for matching Episode.downloadTaskId in Sembast
If episode is found, it is updated with new download progress.

In the case where download immediately fails, the download status changes before step 2. is done.
Then, a download update event arrives but DownloadService is unable to find the matching Episode in sembast.
=> Sembast episode is not updated
=> Repository.episodeListener is not updated
=> PodcastBloc is not updated
Screenshots
https://user-images.githubusercontent.com/375723/222785098-f3ee7f5b-48b9-4c38-a986-0cfda6ae84c6.mp4
Smartphone (please complete the following information):

Device: iPhone11
OS: iOS 16

A solution would be to make step 2 synchronous. That way, we would be certain that Episode.downloadTaskId is changed on time.
I see two ways of implementing that :

Replace Sembast by Isar which makes all read/write operations synchronous (by lazily doing actual persistence).
Add a hand written memory cache on SembastRepository to make read/write operations synchronous (just like Isar does).

I will give this issue some thought. I have been thinking about db solutions as I feel that Anytime is starting to outgrow Sembast. Sembast is an excellent package and has made it very easy to incorporate a pure Dart data store solution, but its strengths are now starting to limit Anytime: I have to be very conscious of what data we store with Sembast being an in-memory store and with it not being cross isolate safe implementing background data fetching will be challenging. It may be that Sembast is replaced or complemented with another solution such as Isar, Objectbox or Realm. Replacing the entire DB layer is no small task.

I might be helpful on this kind of task.
a thought : Is null-safety migration prior to SGBD migration ?