Start in Unraid not working

Hi, I get this error while starting the docker container in Unraid:
I uploaded the model that you passed as URL in the model folder so I have it locally. But I laways get this error
/models/llama-2-13b-chat.bin model found.
stdout
02/09/2023 12:08:53
Initializing server with:
stdout
02/09/2023 12:08:53
Batch size: 2096
stdout
02/09/2023 12:08:53
Number of CPU threads: 16
stdout
02/09/2023 12:08:53
Context window: 4096
stderr
02/09/2023 12:08:58
/usr/local/lib/python3.10/dist-packages/pydantic/_internal/fields.py:127: UserWarning: Field "model_alias" has conflict with protected namespace "model".
stderr
02/09/2023 12:08:58
stderr
02/09/2023 12:08:58
You may be able to resolve this warning by setting model_config['protected_namespaces'] = ('settings_',).
stderr
02/09/2023 12:08:58
warnings.warn(
stderr
02/09/2023 12:08:58
llama.cpp: loading model from /models/llama-2-13b-chat.bin
stdout
02/09/2023 12:09:02
/models/llama-2-13b-chat.bin model found.
stdout
02/09/2023 12:09:02
Initializing server with:
stdout
02/09/2023 12:09:02
Batch size: 2096
stdout
02/09/2023 12:09:02
Number of CPU threads: 16
stdout
02/09/2023 12:09:02
Context window: 4096
stderr
02/09/2023 12:09:04
/usr/local/lib/python3.10/dist-packages/pydantic/_internal/fields.py:127: UserWarning: Field "model_alias" has conflict with protected namespace "model".
stderr
02/09/2023 12:09:04
stderr
02/09/2023 12:09:04
You may be able to resolve this warning by setting model_config['protected_namespaces'] = ('settings_',).

same error here

I think the Python error is just a warning. Regardless, here's my complete log. Says it starts up and then the container stops.

/usr/local/lib/python3.10/dist-packages/pydantic/_internal/fields.py:127: UserWarning: Field "model_alias" has conflict with >protected namespace "model".
You may be able to resolve this warning by setting model_config['protected_namespaces'] = ('settings_',).
warnings.warn(
llama.cpp: loading model from /models/llama-2-13b-chat.bin
/models/llama-2-13b-chat.bin model found.
Initializing server with:
Batch size: 2096
Number of CPU threads: 24
Context window: 4096
<EMAIL_ADDRESS>start
next start
ready - started server on <IP_ADDRESS>:3000, url: http://localhost:3000

The model path in the unraid docker settings is still wrong:
Download URL: https://huggingface.co/TheBloke/Nous-Hermes-Llama-2-7B-GGML/resolve/main/nous-hermes-llama-2-7b.ggmlv3.q4_0.bin
Local Model Path: /models/llama-2-7b.bin

I'm getting cuda out of memory errors when trying to load the CUDA version:
CUDA error 2 at /tmp/pip-install-p6rdknxd/llama-cpp-python_6cf58cabdb694a60bef40fdd1b9f4b5f/vendor/llama.cpp/ggml-cuda.cu:6301: out of memory
I get this with the 16b and 7b files. Server has 128GB of RAM.

I'm getting cuda out of memory errors when trying to load the CUDA version:
CUDA error 2 at /tmp/pip-install-p6rdknxd/llama-cpp-python_6cf58cabdb694a60bef40fdd1b9f4b5f/vendor/llama.cpp/ggml-cuda.cu:6301: out of memory
I get this with the 16b and 7b files. Server has 128GB of RAM.

Server memory makes no difference with cuda. Look at the life and you will see how much vram is needed vs available. I only have a 2gig p400 which wasn't enough.

Same issue with it just exiting after model is downloaded.

I'm getting cuda out of memory errors when trying to load the CUDA version:
CUDA error 2 at /tmp/pip-install-p6rdknxd/llama-cpp-python_6cf58cabdb694a60bef40fdd1b9f4b5f/vendor/llama.cpp/ggml-cuda.cu:6301: out of memory
I get this with the 16b and 7b files. Server has 128GB of RAM.

Server memory makes no difference with cuda. Look at the container log and you will see how much vram is needed vs available. I only have a 2gig p400 which wasn't enough but I'm also running CP.AI which is using 1400MB.

I'm running an RTX A2000 12GB so if it's running completely GPU I would at least think the 7b would start. I'll try switching to CPU and see if that makes a difference.

do we need to set up in docker template the gpu settings?
--runtime=nvidia
Container Variable: NVIDIA_VISIBLE_DEVICES
Container Variable: NVIDIA_DRIVER_CAPABILITIES

Container won't start, but no error logs are shown...
CUDA Version 12.2.0
Container image Copyright (c) 2016-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
This container image and its contents are governed by the NVIDIA Deep Learning Container License.
By pulling and using the container, you accept the terms and conditions of this license:
https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license
A copy of this license is made available in this container at /NGC-DL-CONTAINER-LICENSE for your convenience.
/models/llama-2-7b-chat.bin model found.
Initializing server with:
Batch size: 2096
Number of CPU threads: 24
Context window: 4096

Swapped for CPU version and still not starting

I’m using the CPU version as well. Just ends after image downloads. Sent from my iPhoneOn Sep 2, 2023, at 5:52 PM, tezgno @.***> wrote:
Swapped for CPU version and still not starting
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

What CPUs do you people have?
The error is illegal instruction, which to me seems like the CPU doesn't support specific instruction sets that this expects. I believe it currently expects AVX2 as a minimum.

What CPUs do you people have?
The error is illegal instruction, which to me seems like the CPU doesn't support specific instruction sets that this expects. I believe it currently expects AVX2 as a minimum.

I’m running on an AMD Ryzen 7 3700X, which is a Zen 2 architecture. Zen 2 supports AVX and AVX2.

What CPUs do you people have?

i9 10900 here

i5-8500

The model path in the unraid docker settings is still wrong:
Download URL: https://huggingface.co/TheBloke/Nous-Hermes-Llama-2-7B-GGML/resolve/main/nous-hermes-llama-2-7b.ggmlv3.q4_0.bin
Local Model Path: /models/llama-2-7b.bin
But even when these are correct, the docker still exits.

Yes I noticed that I had to fix the path of the URL, but yeah after I fixed the bug, downloaded the file manually, still the container does not start

i7-7700K

My docker will run, but when it starts it times out and says I do not have an openAI api linked. tells me to input in bottom left, but nowhere to be found

My docker will run, but when it starts it times out and says I do not have an openAI api linked. tells me to input in bottom left, but nowhere to be found

nevermind, I saw the logs and saw out of vram. changed the GPU layers under more settings in setup to 32 instead of 64 on a 2060.

So, I was able to get the CUDA version to work after cutting the number from 64 to 32. Looks like it’s using almost 4GB of vram in that configuration. Not sure why 64 doesn’t work on my card, but ok.
CPU version doesn’t work at all. It’s giving an error that complains about the CPU, but all of the ones listed here support AVX2. Can we confirm that the CPU version is for x86_64 or AMD64? I’m thinking it may be the wrong architecture.

Hi Guys, same problem here, cannot start after the model download. Also set it to 32 and nothing.
My CPU: Intel Xeon E5-2695 v2

i have an Itel CPU i3 8100 which seems to have AVX / AVX2
also i use an Nvidia GT 1030 on my NAS with 2gb vram.
it also failed , but when i set the GPU layers from 64 to 16 it seems to work now

Same issue here. Looks like its an issue from the pydantic library. Seen here and here. @uogbuji then replies and says the newer release fixed the issue.
I have no idea how to do this but comparing 0.1.69 to 0.1.70 for abetlen/llama-cpp-python might reveal a fix

Same issue here. Looks like its an issue from the pydantic library. Seen here and here. @uogbuji then replies and says the newer release fixed the issue.
I have no idea how to do this but comparing 0.1.69 to 0.1.70 for abetlen/llama-cpp-python might reveal a fix

That is the issue around the model warning error that you see inside of the docker logs, but that isn't what causes the docker container to not start. The container isn't starting due to EXIT Code 132 (you'll notice this on the right when the container shuts down). A Docker Exit Code 132 means that the docker container itself (not the app running inside of it) received an Illegal Instruction to the CPU. This is normally caused when your CPU doesn't contain the instruction sets that the docker is written for (usually an AVX, AVX2 or SSE instruction set). However, based on the CPU's that people have mentioned here, all of them would support AVX, AVX2, and SSE. My theory in this is that the docker container may be written for a different CPU architecture all together (such as AMD64_AVX, which isn't necessarily the same as AMD64 with AVX instructions).

Or just simply requires AVX512.

Or just simply requires AVX512.

That could be. Unfortunately it's difficult to see which at this point.

Is this  issue relevant?
When I try to start the Docker i get the Docker Exit Code 132 and this in the unraid log: traps: python3[15228] trap invalid opcode ip:14d65822c872 sp:7fffc70fbc50 error:0 in libllama.so[14d658211000+62000]

I'm getting cuda out of memory errors when trying to load the CUDA version:
CUDA error 2 at /tmp/pip-install-p6rdknxd/llama-cpp-python_6cf58cabdb694a60bef40fdd1b9f4b5f/vendor/llama.cpp/ggml-cuda.cu:6301: out of memory
I get this with the 16b and 7b files. Server has 128GB of RAM.

Can you lower the of number of GPU layers under the Show More Settings? It's set to 64 by default.

Same issue here. Looks like its an issue from the pydantic library. Seen here and here. @uogbuji then replies and says the newer release fixed the issue.
I have no idea how to do this but comparing 0.1.69 to 0.1.70 for abetlen/llama-cpp-python might reveal a fix

That is the issue around the model warning error that you see inside of the docker logs, but that isn't what causes the docker container to not start. The container isn't starting due to EXIT Code 132 (you'll notice this on the right when the container shuts down). A Docker Exit Code 132 means that the docker container itself (not the app running inside of it) received an Illegal Instruction to the CPU. This is normally caused when your CPU doesn't contain the instruction sets that the docker is written for (usually an AVX, AVX2 or SSE instruction set). However, based on the CPU's that people have mentioned here, all of them would support AVX, AVX2, and SSE. My theory in this is that the docker container may be written for a different CPU architecture all together (such as AMD64_AVX, which isn't necessarily the same as AMD64 with AVX instructions).

The CPU version is having this issue. Everything works as expected using the Docker image I built locally using Ubuntu but not on the Github version. Here's my script:
- run: docker buildx create --use
- run: docker buildx build --platform linux/amd64 -f Dockerfile-${{ matrix.type }} --tag $IMAGE_NAME:${{ github.ref_name }} --push .
- run: docker buildx build --platform linux/amd64 -f Dockerfile-${{ matrix.type }} --tag $IMAGE_NAME:latest --push .

I'm getting cuda out of memory errors when trying to load the CUDA version:
CUDA error 2 at /tmp/pip-install-p6rdknxd/llama-cpp-python_6cf58cabdb694a60bef40fdd1b9f4b5f/vendor/llama.cpp/ggml-cuda.cu:6301: out of memory
I get this with the 16b and 7b files. Server has 128GB of RAM.

Can you lower the of number of GPU layers under the Show More Settings? It's set to 64 by default.

I did and when lowered it does work. CPU version does not work.

I'm getting cuda out of memory errors when trying to load the CUDA version:
CUDA error 2 at /tmp/pip-install-p6rdknxd/llama-cpp-python_6cf58cabdb694a60bef40fdd1b9f4b5f/vendor/llama.cpp/ggml-cuda.cu:6301: out of memory
I get this with the 16b and 7b files. Server has 128GB of RAM.

Can you lower the of number of GPU layers under the Show More Settings? It's set to 64 by default.

Also by reducing to 1 does not work in my case
RTX 2080 ti

Same issue here. Looks like its an issue from the pydantic library. Seen here and here. @uogbuji then replies and says the newer release fixed the issue.
I have no idea how to do this but comparing 0.1.69 to 0.1.70 for abetlen/llama-cpp-python might reveal a fix

That is the issue around the model warning error that you see inside of the docker logs, but that isn't what causes the docker container to not start. The container isn't starting due to EXIT Code 132 (you'll notice this on the right when the container shuts down). A Docker Exit Code 132 means that the docker container itself (not the app running inside of it) received an Illegal Instruction to the CPU. This is normally caused when your CPU doesn't contain the instruction sets that the docker is written for (usually an AVX, AVX2 or SSE instruction set). However, based on the CPU's that people have mentioned here, all of them would support AVX, AVX2, and SSE. My theory in this is that the docker container may be written for a different CPU architecture all together (such as AMD64_AVX, which isn't necessarily the same as AMD64 with AVX instructions).

The latest build fixes the EXIT Code 132. I added libopenblas-dev and things appear to be working as expected.

how can i get an error log?
the container does not start and shows no indication, where the error could occur.
Only the cuda shows information
`CUDA Version 12.2.0
Container image Copyright (c) 2016-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
This container image and its contents are governed by the NVIDIA Deep Learning Container License.
By pulling and using the container, you accept the terms and conditions of this license:
https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license
A copy of this license is made available in this container at /NGC-DL-CONTAINER-LICENSE for your convenience.
/models/llama-2-7b.bin model found.
Initializing server with:
Batch size: 2096
Number of CPU threads: 24
Context window: 4096
** Press ANY KEY to close this window ** `

i7-7700K

The latest version of the image worked for me on CPU!

i7-7700K

The latest version of the image worked for me on CPU!

Same for me, very slow and the results were quite bad. Uninstalled again :/

very slow

I'm not sure what you expected

Yeah, CPU is slow tbh.

I stumbled upon this tonight and with the unraid template for cuda this is still an issue. Seeing the same @horphi0815 up there. Don't see anywhere that error logs would be stored but I did pull the repo and run it with docker compose and still don't see any logs 'find . -iname "log"'


Disallow creating a ZOS session when not at the top-level of project

Currently, a for a global ZOS installation, calling zos session ...... creates a zos.json file in whatever direction you call the command. Oversight leads to lots of hanging zos.json files around. Would be nice if the command only worked if you called from the top level of a ZOS project directly. Which is the only place it is actually effective, as the other ZOS commands seem to be directory-dependent.

Running oz session anywhere now leads to Could not find networks.js file, please remember to initialize your project.


Replace sha1 dependency with sha-1

This other crate is being maintained, and its API is simpler and more generic when using other RustCrypto crates as well.

With sha1 being the new upstream of sha-1, this change shouldn’t get merged any more, instead we should update sha1 to its 0.10 version.

This project seems abandoned, closing.


[1.16.1] Unable to start Jobs reborn

Hey, someone had to report it :)
[04:10:40] [Server thread/INFO]: [Jobs] Enabling Jobs v4.15.11
[04:10:40] [Server thread/INFO]: Your server version is not compatible with this plugins version! Plugin will be disabled: v1_16_R1
[04:10:40] [Server thread/ERROR]: Error occurred while enabling Jobs v4.15.11 (Is it up to date?)
java.lang.NullPointerException: null
	at com.gamingmesh.jobs.Jobs.onDisable(Jobs.java:785) ~[?:?]
	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:265) ~[spigot-1.16.1.jar:git-Spigot-758abbe-2b00831]
	at com.gamingmesh.jobs.Jobs.onEnable(Jobs.java:632) ~[?:?]
	at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:263) ~[spigot-1.16.1.jar:git-Spigot-758abbe-2b00831]
	at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:351) ~[spigot-1.16.1.jar:git-Spigot-758abbe-2b00831]
	at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:480) ~[spigot-1.16.1.jar:git-Spigot-758abbe-2b00831]
	at org.bukkit.craftbukkit.v1_16_R1.CraftServer.enablePlugin(CraftServer.java:488) ~[spigot-1.16.1.jar:git-Spigot-758abbe-2b00831]
	at org.bukkit.craftbukkit.v1_16_R1.CraftServer.enablePlugins(CraftServer.java:402) ~[spigot-1.16.1.jar:git-Spigot-758abbe-2b00831]
	at net.minecraft.server.v1_16_R1.MinecraftServer.loadWorld(MinecraftServer.java:436) ~[spigot-1.16.1.jar:git-Spigot-758abbe-2b00831]
	at net.minecraft.server.v1_16_R1.DedicatedServer.init(DedicatedServer.java:219) ~[spigot-1.16.1.jar:git-Spigot-758abbe-2b00831]
	at net.minecraft.server.v1_16_R1.MinecraftServer.v(MinecraftServer.java:808) ~[spigot-1.16.1.jar:git-Spigot-758abbe-2b00831]
	at net.minecraft.server.v1_16_R1.MinecraftServer.lambda$0(MinecraftServer.java:164) ~[spigot-1.16.1.jar:git-Spigot-758abbe-2b00831]
	at java.lang.Thread.run(Thread.java:834) [?:?]
[04:10:40] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
[04:10:40] [Server thread/INFO]: Done (14.956s)! For help, type "help"

>ver
[04:11:48] [Server thread/INFO]: This server is running CraftBukkit version git-Spigot-758abbe-2b00831 (MC: 1.16.1) (Implementing API version 1.16.1-R0.1-SNAPSHOT)
[04:11:48] [Server thread/INFO]: Checking version, please wait...
[04:11:48] [Thread-7/INFO]: You are running the latest version
>

I hope this helps you guys get started on making jobs working on 1.16.1

When will the plugin come out publicly for download?

There[s a 4.15.12 version that's in Discord dev-release channel you can download and play/test with. It's only updated to work and load on 1.16.1, but the're nothing updated in regards to 1.16.1 in it yet from what i gather.

Safe to use? Usually dev builds tend to changes things so I'd prefer to be on the safe side for production use (currently just for testing yet)

The SpigotMC build is 4.15.11 at the moment, this is for 1.15.2.
The Discord dev-build is 4.15.12 at the moment, this is for 1.16.1 and loads. I run it live now.
They are dev builds, they're meant for testing, finding bugs, configuration tests, etc.  (but i run it live to find bugs faster for zrips)


CustomScrollView tap statusBar can't scroll to top on iOS Simulator util relaunched the app.

Scaffold(
  appBar: ...
  body: SomeChild(
    CustomScrollView(
      primary:null, // default
      controller: null, //default
      slivers: []
    )
  )
)

firt time run, tap statusBar can't scroll to top, and func _handleStatusBarTap did not worked, reload & restart does't work too, BUT when i relaunched the app, and the feature 'scroll to top' WORKING

➜  ~ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.5, on macOS 13.1 22C65 darwin-x64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
[✓] Android Studio (version 2021.1)
[✓] VS Code (version 1.76.0)
[✓] Connected device (1 available)
[✓] HTTP Host Availability
• No issues found!

Can you please provide a completed and minimal reproducible code sample so that we may verify this? Or you can try below sample code as well.

Sample code
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        body: Center(
          child: CustomScrollView(
            slivers: <Widget>[
              const SliverAppBar(
                pinned: true,
                expandedHeight: 250.0,
                flexibleSpace: FlexibleSpaceBar(
                  title: Text('Demo'),
                ),
              ),
              SliverGrid(
                gridDelegate: const SliverGridDelegateWithMaxCrossAxisExtent(
                  maxCrossAxisExtent: 200.0,
                  mainAxisSpacing: 10.0,
                  crossAxisSpacing: 10.0,
                  childAspectRatio: 4.0,
                ),
                delegate: SliverChildBuilderDelegate(
                      (BuildContext context, int index) {
                    return Container(
                      alignment: Alignment.center,
                      color: Colors.teal[100 * (index % 9)],
                      child: Text('Grid Item $index'),
                    );
                  },
                  childCount: 20,
                ),
              ),
              SliverFixedExtentList(
                itemExtent: 50.0,
                delegate: SliverChildBuilderDelegate(
                      (BuildContext context, int index) {
                    return Container(
                      alignment: Alignment.center,
                      color: Colors.lightBlue[100 * (index % 9)],
                      child: Text('List Item $index'),
                    );
                  },
                ),
              ),
            ],
          ),
        ),
      ),
    );
  }
}

I check this on the latest master channel, it seems to be working normally.

flutter doctor -v (stable and master)
[✓] Flutter (Channel stable, 3.7.6, on macOS 13.0.1 22A400 darwin-x64, locale en-EE)
    • Flutter version 3.7.6 on channel stable at /Users/huynq/Documents/GitHub/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 12cb4eb7a0 (4 days ago), 2023-03-01 10:29:26 -0800
    • Engine revision ada363ee93
    • Dart version 2.19.3
    • DevTools version 2.20.1

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-33, build-tools 31.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14B47b
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio
    • Android Studio at /Applications/Android Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] Android Studio (version 2022.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)

[✓] IntelliJ IDEA Community Edition (version 2022.1.1)
    • IntelliJ at /Users/huynq/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/221.5591.52/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.75.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.60.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 13.0.1 22A400 darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 110.0.5481.177

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

[!] Flutter (Channel master, 3.9.0-1.0.pre.73, on macOS 13.0.1 22A400 darwin-x64, locale en-EE)
    • Flutter version 3.9.0-1.0.pre.73 on channel master at /Users/huynq/Documents/GitHub/flutter_master
    ! Warning: `flutter` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /Users/huynq/Documents/GitHub/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /Users/huynq/Documents/GitHub/flutter_master. Consider adding /Users/huynq/Documents/GitHub/flutter_master/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 9e5bec62eb (68 minutes ago), 2023-03-07 02:48:10 -0500
    • Engine revision 1c4aab7da9
    • Dart version 3.0.0 (build 3.0.0-300.0.dev)
    • DevTools version 2.22.2
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/huynq/Library/Android/sdk
    • Platform android-33, build-tools 31.0.0
    • ANDROID_HOME = /Users/huynq/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14B47b
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio
    • Android Studio at /Applications/Android Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    ✗ Unable to find bundled Java version.
    • Try updating or re-installing Android Studio.

[✓] Android Studio (version 2022.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)

[✓] IntelliJ IDEA Community Edition (version 2022.1.1)
    • IntelliJ at /Users/huynq/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-0/221.5591.52/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.76.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.60.0

[✓] Connected device (4 available)
    • Pixel 3a (mobile)      • 964AY0WL20                           • android-arm64  • Android 12 (API 32)
    • iPhone 14 Pro (mobile) • AB2EBB55-6852-40A7-9A12-057128370920 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-1 (simulator)
    • macOS (desktop)        • macos                                • darwin-x64     • macOS 13.0.1 22A400 darwin-x64
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 110.0.5481.177

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.


New Media Player design improvements

Since the update to 0.18 (with the new Media Player design), some of my "Media Players" take up an huge amount of space for "nothing". See the example below:

This is one of my "Media Players": a Samsung TV. I (can) only use HA to switch the TV on/off and the new Media Player design takes a lot of space for just this functionality.
I think there should be a way to "revert" to the old way of displaying (some) media players.

:+1:
I have  exactly the same problem. An option for this would be great!

I would love this as well, I only use this to turn on my lights etc, not to control my media players themselves

Op 25 apr. 2016 om 21:57 heeft frelev<EMAIL_ADDRESS>het volgende geschreven:
I have exactly the same problem. An option for this would be great!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

Agree, I think we should split media player into different modules, so for example for TVs have the 'old' design. For me the play/pause button feels out of place in comparison with the rest of the design

👍 I use them only for controlling volume.

There are 1000 different variations about what a media player can be. The main UI is now focused on supporting a media player that is actually a media player.
We might want to introduce classes like we did for binary sensors and support different UIs. We're not going to be able to add a class for every different variation of media player, just a few common ones like speaker (on/off/volume). So what classes should there be?

Speaker/volume
Speaker/volume + current media
TV (TV controls like selecting the current source)
Set-top box (Android TV, Fire TV, Sky+ HD box)
Just a few I think would be nice. :-)

Set-top box shouldn't be a class, because how each set-top box is integrated is so different. I also think that volume + current media is an odd corner case.

Yeah I guess that's true :-P
I've got two speakers for example, one I can only control the volume on (can't see what's currently playing) and one where I can control the volume and see what is playing. :-)

umm what if we adapt the UI for each media_player depending on its capabilities? So for example Plex could show controls and image while my Panasonic TV will only show controls without image (not an empty image as it is now)

Classes will tell us the 'UI's that we have to support.
We can then map which supported capabilities can be mapped to which UI.
But the capabilities change as the state of an entity changes. A media player that is off can't do anything, and HA does not know if it might support something when it is turned on later. You don't want the UI to jump around either. A media player in off state now will transition beautifully to a media player that is being turned on with a cover.

What do you think about just adding the ability to choose between two UI (full or newer vs compact or older) from config ?

That's exactly what classes would do..
On Sun, May 1, 2016, 09:40 Hernán<EMAIL_ADDRESS>wrote:

What do you think about just adding the ability to choose between two UI
(full or newer vs compact or older) from config ?
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/home-assistant/home-assistant/issues/1915#issuecomment-216042706

Couldn't a known media players classes be added to the known_devices file? So when a device is off/unreachable we still have list of it's capabilities?

+1 to remove that useless empty space for certain media players
On pc it's ok, we have enough space but on the phone not that nice
PS: I've moved all my sensors above the media players in order to access them more easily

Agreed! Being able to choose the class with one being a slim on/off and volume slider would be ideal! In the meantime, is there a way to make something custom with the slider and automation?

I'd really love the ability to use a "compact" view for kodi. I'm not interested in controlling Kodi from Home Assistant (merely knowing if kodi is playing an item is enough for my automations).
In my case, I'd love to be able to display Kodi just like I have plex here:

I have 4 sonos players, 2 kodi players and 1 samsung tv media player and they take up all my screen estate. I would love some sort of addition compact-view for these things.

Agreed!! +! On helping the case for this..
4x sonos players need grouping and I'd love just the volume control for all separate..

This is still an issue, but I can imagine there are issues with (far) higher importance and priority. Maybe I can even start digging in the code and try to become a contributor ;)

This can probably be accomplished now with something like the Custom State Card:
https://home-assistant.io/developers/frontend_creating_custom_ui/

@ytilis is right so closing this issue.


Add warning banner for IE8 and below

Our charts currently don't work on IE8. While I did manage to get them
working it involved downgrading some libraries (e.g. the domready
package) and polyfilling various various missing Array methods.
Maintaining IE8 compatability therefore looks like it will be a
non-negligable future maintenance burden.
Currently IE8 represents about 1% of our total visitors and 1.7% of our
NHS visitors. So it doesn't seem worthwhile to spend our limited
resources on this. (IE9, by contrast, continues to work without issue.)
Example of the warning in action:

Looks good, but I think given the site is basically useless in IE8 it might as well be much shoutier - maybe the red-coloured error class, and double height or similar - what do you think?

Yes, you're right. I was being far too British about it. How about this?

Much better!


Publish artifacts to Pypi

There is currently a github action to build whl files.  This action should be made to publish to pypi.

Resolved by #63


ImageViewer [iOS]. Read images from Gallery

After implementing https://github.com/JetBrains/compose-jb/issues/2774, we need to show taked photos in the application.

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


Add open-epaper-link to latest

RE-CHECK!

@ticaki
@DutchmanNL
Did you notice the feedback? I do not see a comment thet the remarks have been processed and a re-review would be appropiate.

Hi, Urs seen it and Most of the already solves will Update the Review State as soon the last open item (onStateChange) is ready

Any news?
reminder 31.12.2023

@DutchmanNL
Happy New Year !
How shall we continue?
Please let me/us know if you encounter any problem and which timefram you expect to fix the mentionend issues.
mcm1957
reminder 15.01.2024

@DutchmanNL
How shall we continue?
Are you working in this?
Is someone else working on this adapter?
Please let me/us know if you encounter any problem and which timefram you expect to fix the mentionend issues.
mcm1957
reminder 21.01.2024

How should we continue?
Do you need any further help?
Please let me/us know (by adding a comment) when all issues noted earlier are processed by you and a new review seesm to be appropiate.
If there is no response until 28.2.2024 this PR might be closed.
reminder 15.2.2024

How should we continue?
Do you need any further help?
Please let me/us know (by adding a comment) when all issues noted earlier are processed by you and a new review seesm to be appropiate.
If there is no response until 28.2.2024 this PR might be closed.
reminder 22.2.2024

How should we continue?
Do you need any further help?
Please let me/us know (by adding a comment) when all issues noted earlier are processed by you and a new review seesm to be appropiate.
If there is no response until 28.2.2024 this PR will be closed.
reminder 28.2.2024


Remove unnecessary casts in SyntaxRewriter

This pull request removes unnecessary casts in SyntaxRewriter, i.e. funcs that look like this:
open func visit(_ node: AttributeListSyntax) -> AttributeListSyntax {
    return Syntax(visitChildren(node)).cast(AttributeListSyntax.self)
}

become this:
open func visit(_ node: AttributeListSyntax) -> AttributeListSyntax {
    return visitChildren(node)
}

It's more readable, and visitChildren(node) is guaranteed to return the same type as node anyway, so the cast is unnecessary. Thank you, @Matejkob, for filing the issue with pointers on how to get started!
Closes #2102.
Disclaimer: I'm here to learn, and just making my first steps. Please feel free to "well, actually" me.
TODOs

Tests crash locally without SKIP_LONG_TESTS. The crash is in SyntaxVisitor.visit and pretty deep. But, they also crash for me on main. 👀

Thank you, @natikgadzhi, for working on this! ❤

There! Much cleaner now.

@swift-ci Please test

@swift-ci Please test


Prisma doesn't resolve the names of docker containers from within other containers in OSX Docker

Bug description
Prisma works if I give it an ip address, but not a resolvable service name of a container
How to reproduce
docker-compose:
services:
  app:
    image: app
    platform: linux/arm64/v8
    ports:
      - "3000:3000"
    depends_on:
      - postgres
    environment:
      - "DATABASE_URL=postgresql://test:test@postgres:5432/test?schema=public"
    entrypoint: ["/usr/bin/dumb-init", "--", "./utils/wait-for-it.sh", "postgres:5432", "--"]
    command: [
        "/bin/bash",
        "-c",
        "pnpm run prisma-generate
        && pnpm exec prisma migrate dev
        && pnpm run dev -w",
      ]
    volumes:
      - $HOME/.aws:/root/.aws
  postgres:
    hostname: postgres
    image: postgres:14
    restart: always
    volumes:
      - postgres:/var/lib/postgresql/data
    environment:
      - "POSTGRES_PASSWORD=test"
      - "POSTGRES_DATABASE=test"
      - "POSTGRES_USER=test"
    ports:
      - "5432:5432"
volumes:
  postgres:
    name: db

This doesn't work.
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Datasource "db": PostgreSQL database "test", schema "public" at "postgres:5432"

Error: P1001: Can't reach database server at `postgres`:`5432`

BUT if I do an ip lookup in a shell and set DATABASE_URL=postgresql://test:test@<IP_ADDRESS>:5432/test?schema=public, it works.  Lit export DATABASE_HOST=$(nslookup ${DATABASE_HOST?} | awk '/^Address: / { print $2 ; exit }')
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Datasource "db": PostgreSQL database "test", schema "public" at "<IP_ADDRESS>:5432"

Already in sync, no schema change or pending migration was found.

And psql resolves this perfectly.
app# psql postgresql://test:test@postgres:5432/test
psql (14.2 (Debian 14.2-1.pgdg100+1))
Type "help" for help.

test=#

Expected behavior
Prisma needs to resolve my docker container's hostname to a valid ip address or I need a workaround that isn't hard-coding IP's all over the place.
Prisma information
Environment & setup

OS: OSX Monterey 12.3 running a Node:16-based Docker image.  Tried to replicate on Ubuntu 20.04 running latest Docker and I could not replicate at all.
Database: PostgreSQL
Node.js version: v16.14.2

Prisma Version
prisma                  : 3.8.1
@prisma/client          : 3.8.1
Current platform        : linux-arm64-openssl-1.1.x
Query Engine (Node-API) : libquery-engine 34df67547cf5598f5a6cd3eb45f14ee70c3fb86f (at ../../node_modules/.pnpm/@prisma+engines<EMAIL_ADDRESS>Migration Engine        : migration-engine-cli 34df67547cf5598f5a6cd3eb45f14ee70c3fb86f (at ../../node_modules/.pnpm/@prisma+engines<EMAIL_ADDRESS>Introspection Engine    : introspection-core 34df67547cf5598f5a6cd3eb45f14ee70c3fb86f (at ../../node_modules/.pnpm/@prisma+engines<EMAIL_ADDRESS>Format Binary           : prisma-fmt 34df67547cf5598f5a6cd3eb45f14ee70c3fb86f (at ../../node_modules/.pnpm/@prisma+engines<EMAIL_ADDRESS>Default Engines Hash    : 34df67547cf5598f5a6cd3eb45f14ee70c3fb86f
Studio                  : 0.452.0
Preview Features        : interactiveTransactions

Where you run psql, can you run npx prisma db pull --url postgresql://test:test@postgres:5432/test and report what that returns?

% npx prisma db pull --url postgresql://test:test@postgres:5432/test
Need to install the following packages:
  prisma
Ok to proceed? (y) y

Introspecting …

Error: P1001

Can't reach database server at `postgres`:`5432`

Please make sure your database server is running at `postgres`:`5432`.

If that is both in the same location an terminal, that is super weird. How long does the psql take to run?

If that is both in the same location an terminal, that is super weird. How long does the psql take to run?

Pretty instant.

That excludes a timeout.
This is super weird. Prisma does not use any special DNS resolution logic usually. (And as I write this, something pops up in the back of my head that we had a similar problem in the past caused by a weird temporary Docker bug in its DNS resolution)
Are you also running latest docker in the environment where this fails?

Yes, I am using latest Docker Desktop.
And I'd guess it was that except that it only happens in Prisma.
On Thu, Mar 31, 2022 at 7:45 PM Jan Piotrowski @.***>
wrote:

That excludes a timeout.
This is super weird. Prisma does not use any special DNS resolution logic
usually. (And as I write this, something pops up in the back of my head
that we had a similar problem in the past caused by a weird temporary
Docker bug in its DNS resolution)
Are you also running latest docker in the environment where this fails?
—
Reply to this email directly, view it on GitHub
https://github.com/prisma/prisma/issues/12598#issuecomment-1085239896,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADEUGSBRUFM43OK4S6A7PLVCY2IPANCNFSM5SD2WMEA
.
You are receiving this because you authored the thread.Message ID:
@.***>

+1 to this. I am also unable to use prisma within a docker container. Getting the same error is I use prisma with container-name.

I just ran into this same issue, and fixed it by renaming my database service to something other than "postgres". Might be worth giving that a try, @meyerkev?

I just ran into this same issue, and fixed it by renaming my database service to something other than "postgres". Might be worth giving that a try, @meyerkev?

Tried it and nope.

@meyerkev I was facing the same issue. For now, what I have done is that I have created 2 docker compose files: one of db and the other one for my backend service. I first run the db container, gets it's gateway and sends it backend container as an argument. But still, I believe this is an open issue for prisma.

@meyerkev I was facing the same issue. For now, what I have done is that I have created 2 docker compose files: one of db and the other one for my backend service. I first run the db container, gets it's gateway and sends it backend container as an argument. But still, I believe this is an open issue for prisma.

export DATABASE_HOST=$(nslookup ${DATABASE_HOST?} | awk '/^Address: / { print $2 ; exit }') cd "$(dirname $(dirname $0) )" also works.

@meyerkev I was facing the same issue. For now, what I have done is that I have created 2 docker compose files: one of db and the other one for my backend service. I first run the db container, gets it's gateway and sends it backend container as an argument. But still, I believe this is an open issue for prisma.

export DATABASE_HOST=$(nslookup ${DATABASE_HOST?} | awk '/^Address: / { print $2 ; exit }') cd "$(dirname $(dirname $0) )" also works.

Does this work with a single compose file?

Well, it works with a single compose file if you drop it into your the top of the scripts you're using to run things.  With  if-statements, I could drop it into my /etc/profile

@meyerkev I was facing the same issue. For now, what I have done is that I have created 2 docker compose files: one of db and the other one for my backend service. I first run the db container, gets it's gateway and sends it backend container as an argument. But still, I believe this is an open issue for prisma.

export DATABASE_HOST=$(nslookup ${DATABASE_HOST?} | awk '/^Address: / { print $2 ; exit }') cd "$(dirname $(dirname $0) )" also works.

Does this work with a single compose file?

In the bash script we're using to run things yes.  When I get some free time, I'll try it in the /etc/profile with some if-statements to avoid the double-lookup problem.

I got around this by writing a new entrypoint script for the containers:
#!/bin/bash
export PSQL_CONTAINER_HOST=$(dig psql +short)
export DATABASE_URL="postgresql://postgres:${POSTGRES_PASSWORD}@${PSQL_CONTAINER_HOST}:${POSTGRES_PORT}/dev"
/bin/bash $@

Though this is not used by our VSCode devcontainer, so used a .bashrc and helper script file to set them on every shell:
# ~/.bashrc
. ~/set_database_url.sh

set_database_url.sh
export PSQL_CONTAINER_HOST=$(dig psql +short)
export DATABASE_URL="postgresql://postgres:${POSTGRES_PASSWORD}@${PSQL_CONTAINER_HOST}:${POSTGRES_PORT}/dev"

It also seems to have been an issue even into last year, with the suggestion that it is M1 specific (I am also using an M1 mac).

I'm also seeing issues with Prisma resolving the hostname for another Docker container on an M1 Pro machine, and it does appear to be specific to Prisma, since I'm able to successfully resolve the hostname with ping and friends. I've got an older Intel MacBook at home as well so will test the same application on that and report back.

I can confirm this is happening on Windows as well. Running npx prisma generate in my Dockerfile seems to succeed, but actually trying to connect to the database later on fails.
I am getting:
```Error: Can't reach database server at mysql:`3306````
It is definitely Prisma-specific because I tried basic code using TypeORM, same exact credentials and it works without issues.

I'm having this issue as well..  MacOS
Error: Can't reach database server at mysql:3306`

My solution to this was to define a bridge network and assign a static IP to the mysql container.  Previously the containers were using the default bridge network, so there's really no change to networking other than to specify the IP for the mysql container.
I had mixed results with defining hostnames and chanding the service name from mysql.  Sometimes it would work, sometimes not.  I noticed some inconsistencies with node's dns.lookup which leads me to think this is an issue with Docker's dns rather than an issue with Prisma itself, although I can't be certain.
I'm on macOS 12.2.1 (M1 Pro), Prisma 3.12.0 running on a node 16.13 container with a mysql:5.7 container.

Update: it works on node 16.17.0 if I use ?connect_timeout=300 at the end of my DB connection string.

I wasn't even able to get this to work on Linux. I eventually got it working on Linux by using the docker0 virtual network interface <IP_ADDRESS>.
No such luck figuring things out on Mac yet... :{

Same as all the others (OSX M1). The workaround is to provide static IP addresses to the containers instead of relying on name lookup resolution.
See https://stackoverflow.com/questions/39493490/provide-static-ip-to-docker-containers-via-docker-compose for understanding how to configure your docker-compose file.

- docker-compose -f docker-compose-db.yml up -d
- export DB_URL=$(docker inspect -f '{{range.NetworkSettings.Networks}}{{.Gateway}}{{end}}' db)
- DB_HOST=${DB_URL} docker-compose -f docker-compose.yml up --abort-on-container-exit
- docker-compose down --remove-orphans -v

I am using these commands for my CI. It starts the container of MySQL, extracts the IP for that container and then passes the IP as an env variable for the next container.

I was facing the same problem. I am using node 16.13. I tried multiple options including the ones mentioned above. Placing static up in mysql container did solve the problem but I didn't like that solution. What worked for me is adding network_mode: host in docker-compose file. And then using localhost instead of container name in the connection string. However, with this I cannot access mysql from my host machine.

Hi @meyerkev, like other users have shared in the comments, I confirm that this is just a docker-compose misconfiguration, and not a problem caused by Prisma.
The easiest way of letting one Docker service see another one - as I have just double checked - is to place these services within the same virtual network, as the following:
services:
  app:
    ...
    networks:
      - backend

  postgres:
    ...
    networks:
      - backend

networks:
  backend:

You can easily verify this by:

running the Postgres instance via docker-compose up postgres
spawning a shell into app: docker-compose run app /bin/sh

In app's shell, you can:

make sure the DATABASE_URL is set: echo $DATABASE_URL
use Prisma to introspect postgres' content: npx<EMAIL_ADDRESS>db pull --url $DATABASE_URL

I'm closing this as it's not a Prisma issue. Feel free to add a new comment to this issue should you need further help from us. Thanks!

I disagree with the last answer. Sharing the same network (bridged internal OR external) and having the services in the same dockerfile both do not work. When passing in the environment value (DATABASE_URL) for Prisma Schema generation:
datasource db {
  provider = "mongodb"
  url      = env("DATABASE_URL")
}

via docker-compose:
  depends_on:
      mongodb:
        condition: service_healthy
    container_name: api
    build:
      dockerfile: ../../apps/api/Dockerfile
      context: ../../apps/api
      cache_from:
        - nx-base-image:latest
      args:
        NODE_ENV: "development"
        BUILD_FLAG: ""
        DATABASE_URL: "mongodb://XX:XX@mongodb:27017/XX?authSource=admin"

        ```

Prisma will always fail to resolve the Docker DNS. This has nothing todo with incorrect docker configurations. I can confirm this as I have a setup with were both mongo-express and an api service that calls `prisma generate` have environment values injected with a docker service name in the URL values. `mongo-express` parses it correctly, `prisma` fails todo this just like other users have mentioned already in this thread.

Can we please reopen this issue? It is still a problem on Apple Silicon with Docker Desktop 4.25.1.

Please open a new issue and provide a full description of the problem, optimally with a reproduction that we can use to confirm the problem. Thank you.

Adding connect_timeout=300 as in this StackOverflow issue worked for me, but I have no idea why that works.

This is still broken with node18-alpine.  Not sure how to validate the actual issue at hand.  connect_timeout=300 also doesn't appear to be working. :/


Fix Doxygen in CI.

As mentioned in discord by @tannergooding , Doxygen is currently broken in the CI builds. It works otherwie.
This should be addressed for easier website automation.

This was previously addressed when switching to the docker container for Linux builds - closing.

This was previously addressed when switching to the docker container for Linux builds - closing.


Reloader drops datas after tables creation

After tables creation, I want to populate them with initial datas (fixtures). For that I use sqlalchemy.event like in the code below. But in DEV mode, the automatic reloader "removes" these fixtures and lets the tables empty.
import os

from flask import Flask
from flask_sqlalchemy import SQLAlchemy, event

db = SQLAlchemy()

class Test(db.Model):
    __tablename__ = 'test_table'
    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String, unique=True, nullable=False)

INITIAL_TABLES = {
    Test: [
        {'name': 'NAME1'},
        {'name': 'NAME2'},
        {'name': 'NAME3'},
    ],
}

def initial_datas():
    def create(param):
        def callee(table, connection, **kwargs):
            for values in INITIAL_TABLES[param]:
                t = param(**values)
                db.session.add(t)
        return callee

    for table_class in INITIAL_TABLES:
        event.listen(table_class.__table__, 'after_create', create(table_class))

    db.session.commit()

class Config(object):
    ENV = 'dev'
    DEBUG = True
    DB_NAME = 'test.db'
    APP_DIR = os.path.abspath(os.path.dirname(__file__))
    PROJECT_ROOT = os.path.abspath(os.path.join(APP_DIR, os.pardir))
    DB_PATH = os.path.join(PROJECT_ROOT, DB_NAME)
    SQLALCHEMY_DATABASE_URI = 'sqlite:///{0}'.format(DB_PATH)
    SQLALCHEMY_TRACK_MODIFICATIONS = True

if __name__ == '__main__':
    app = Flask(__name__)
    app.config.from_object(Config)
    # if os.path.exists(Config.DB_PATH):
    #     print('drop db')
    #     os.remove(Config.DB_PATH)
    app.app_context().push()
    db.init_app(app=app)
    initial_datas()
    db.create_all(app=app)
    print(Test.query.all())

    app.run()

The resulting output shows the table is empty after reload:
[<Test 1>, <Test 2>, <Test 3>]
 * Running on http://<IP_ADDRESS>:5000/ (Press CTRL+C to quit)
 * Restarting with stat
[]
 * Debugger is active!
 * Debugger PIN: 110-171-224

As a fix, app.run(use_reloader=False) does the trick, or uncommenting the last lines for dropping the db...
Environment

Python version: 3.5
Flask version: last
Werkzeug version: last

Database population doesn't belong in this part of the code. It should usually be done in a separate CLI command. Also, app.app_context().push() is wrong. Instead, wrap the call of initial_datas()  in a with app.app_context(): ... block.
Anyway, closing this since this is a support question that belongs on IRC or Stack Overflow.


User doesn't exists

This scraper works until 16.09.2019 at 16 o clock. But now it's not working. I am getting user doesn't exist error. Any idea?

This scraper works until 16.09.2019 at 16 o clock. But now it's not working. I am getting user doesn't exist error. Any idea?

Did you type in the username of the person in question, correctly?

Thanks, now it works again.
If i run this command
instagram-scraper --profile-metadata <user> -u <username> -p <pass>
the scraper should scrap only profile metadata. However the scraper download also images. i don't want images.
Any idea? Thanks

Thanks, now it works again.
If i run this command
instagram-scraper --profile-metadata <user> -u <username> -p <pass>
the scraper should scrap only profile metadata. However the scraper download also images. i don't want images.
Any idea? Thanks

When you specify a login via Username and Password, it will download stories as well. Those are images/videos that I'm guessing you don't want. Add the extra parameter that excludes stories from the scraping process.


Support for Adaptive Lighting

Is your feature request related to a problem? Please describe:
While the LIFX app supports "Day-to-Dusk" I really prefer to keep all of my configuration/interaction in the Home app. I was very excited when Apple announced Adaptive Lighting but LIFX seems never to implement it. Can it be done through your bridge plugin? If so is there a way to support you to make that happen?

Hello @joelrichards,
I am happy to announce that the plugin in its latest version (0.2.0) now supports adaptive lighting.

Thank you, thank you, thank you! So far this works great. So seamless! Thank you!

Thank you for your support and this great idea! Hope you have a lot of fun with your bulbs


Memory View

Hi,
Thank you for this nice extension! It's been rock solid so far.
I wonder if it's also going to be possible to have a memory view while debugging?

Unfortunately, VSCode does not provide an API for creating complex UIs.
You can view a memory dump via the 'read memory' lldb command.

Oh, wow. I did not realize that you can't have access to the DOM. That kind of makes sense, since they are probably doing some fancy non-standard stuff with it to make it as fast as it is, but it's definitely a bummer.

Is this still true?

It would be cool to have an always open memory view that updated on step/break etc

I bet this feature will never be implemented since it could have negative impact on Visual Studio IDE market share.
(If VS code is as powerful as VS IDE, who will pay for VS IDE???)

Isn't Memory View part of Visual Studio Community? If some users will migrate from the free version of VS to VS Code, it's a zero sum game for MS.

One goal of " Visual Studio Community" is to push for  Visual Studio Pro/ENT. VS code never has such goal.

"Visual Studio Community" is only for org up to 5 perso and none ENT only, while VS Pro/ENT is very expensive :)

True. Perhaps they could combine the efforts somehow. There is a lot of duplicate functionality. And even more is in the pipeline to implement features in VS Code that VS already has.

@vadimcn Now, vscode have webview API, allow to create complex UI. Does this feature will landing in future?

So, would memory view look like this?

Implemented in VSCode as of v1.64, supported by CodeLLDB as of v1.7.0

How should we do?
I try  LLDB: show memory, get following

@iamwwc: "Show Memory" was an experimental entry point, which I forgot to remove.   VSCode now has a native memory viewer.

Correct me if I am wrong, but should I use this steps to see memory? :

run debug
click on binary
hex editor (extension) will open
then hit step over/continue
again click binary (2x time, becuse first one only make it active)
etc

So is it possible to add some kind of auto update?


chore: remove unnecessary sync

Description
I removed the unnecessary sync anymore

Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.

[x] I've confirmed the contribution guidelines.
[x] The PR follows the pull request guidelines.

In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.

[ ] The PR follows the pull request guidelines.

Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.

[ ] There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

@kminoda Could you review the PR.
(I should have created a PR only for awf/autoware_launch instead of both awf/ and tier4/. Sorry about that.)

@kminoda ping


rename ViewerResponsive to ViewerAutosize

https://github.com/chrvadala/react-svg-pan-zoom/commit/869cd149c24ad668340c86fbb7ec994f0a438dd2


x/pkgsite: Invalid license Artistic-1.0-Perl

What is the URL of the page with the issue?
<EMAIL_ADDRESS>https://github.com/kivilahtio/go-re
What is your user agent?
Ubuntu 20.04
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0
What did you do?
According to your license policy:
https://pkg.go.dev/license-policy
I implemented a release test to check that the license is free to distribute using the same library you do:
https://pkg.go.dev/github.com/google/licensecheck
https://github.com/kivilahtio/go-re/blob/master/xt/LICENSE_test.go
What did you expect to see?
I expected the following license to be recognizable as a distributable license:
Artistic-1.0-Perl
Could you add the Artistic-1.0-Perl license as a freely distributable one?
I chose the Perl-variant specifically because the library uses strong Perl idioms.
Basically it is the artistic license with an acknowledgement to previous generations' of work.

I'll ask if we can accept it.
https://opensource.org/licenses/Artistic-Perl-1.0 says that it has been superseded by v2. Any reason not to use v2?

We already accept Artistic-2.0 so it seems like the best course of action is to use the non-deprecated version of the license. It doesn't seem good for the community to proliferate obsolete licenses.

Hi!
Thanks for investigating. I switched to using Artistic-2.0


Add strategy v2 with multiple limit algorithms supported

This change is

Only time window and token bucket limit algorithms are supported for now.


Documentation: onSubmit doesn't describe the arguments passed to it

I've slowly learned about the useful arguments passed to the onSubmit function, namely dispatch and props in addition to the mandatory values. I've taken this knowledge for granted, however I just realized the arguments passed to onSubmit are not documented.

Added this information to the docs here: https://github.com/erikras/redux-form/pull/2077


Speed - Some aspects are a little slow

Seems necessarily slow for drop down menu to update at and loading is slow, looks like part to do with text samp code?

profiling required
tool bar edits via curdoc?

as fasts a going to be with in scope of project


upgrading new version

Hi everyone my boxee box is doing nothing after upgrading to new version, it upgrades and restarts and after screen goes black.
can someone help me through this please?

Did you try Factory reset ? turn off - Push button 10 sec - release and it will show you the menu for factory reset.

Mine has loaded fine. It will scan my media but will not identify anything.

Btw, do you guys have problem with Boxee or Boxee-Hack recently ? My Boxee scan my drive and doesn't see any movie or new .mov
I've own the Boxee since 2011, i had many problems that always been fix with factory reset...

And I've install Boxee-hack last night and i have the same problem !

it is with the latest build of boxee hacks


'ng-file-select' since it isn't a known native property.

Hi,
Thanks for the nice directive,
I am new to angular 2
I am getting this exception Can't bind to 'ng-file-select' since it isn't a known native property.
even though I am  adding following in my component
import {UPLOAD_DIRECTIVES} from 'ng2-uploader/ng2-uploader';
and added directive too
directives: [UPLOAD_DIRECTIVES]
Please help.

Can you show me the template? Actually there is a demo on the webpage where all the code is shown, maybe take a look at there.

Hey Thanks For Your Support,
Here is my template,

Thanks & Regards,
Satish Pokala
Engineering UI Lead
Contact No:<PHONE_NUMBER>
www.everteam.com
On Sat, Mar 5, 2016 at 1:32 AM, Jan Kuri<EMAIL_ADDRESS>wrote:

Can you show me the template? Actually there is a demo on the webpage
where all the code is shown, maybe take a look at there.
—
Reply to this email directly or view it on GitHub
https://github.com/jkuri/ng2-uploader/issues/11#issuecomment-192442167.

@satish-pokala right now I really can't see what can be wrong, can you please prepare the plunkr or demo?

Thanks again for coming back
Finally I have resolved the issue and it is working fine now
But I need some clarification
When we install ng2-uploader it does not have .js files in it.
When be build it through tsc my out put folder is build and all .js files goes
to build folder along with my files and ng2-uploader files.
If we see at ng2-uploader.js file it has line
require("ng2-uploader/ng2-uploader")
There I have changed the code to
require("../nodemodules/ng2-uploader/ng2-uploader")
Then it is working otherwise it is giving me 404 ng2-uploader
May be becuase i am using different out put folder for my typescript files
Sent using CloudMagic Email
[https://cloudmagic.com/k/d/mailapp?ct=pa&cv=8.1.32&pv=5.1.1&source=email_footer_2] On Sat, Mar 05, 2016 at 3:32 pm, Jan Kuri <<EMAIL_ADDRESS><EMAIL_ADDRESS>> wrote:
@satish-pokala [https://github.com/satish-pokala] right now I really can't see what can be wrong, can you please prepare the
plunkr or demo?
—
Reply to this email directly or view it on GitHub
[https://github.com/jkuri/ng2-uploader/issues/11#issuecomment-192615274] .[https://github.com/notifications/beacon/ABrUix8utXqpx7S57jDlUx1lJncYNtycks5pqVS1gaJpZM4HpqqJ.gif]

If we see other npm packages it contains .js files also in it.
I am not sure whether it is making sense because i am very new to typescript and
angular.
Sent using CloudMagic Email
[https://cloudmagic.com/k/d/mailapp?ct=pa&cv=8.1.32&pv=5.1.1&source=email_footer_2] On Sat, Mar 05, 2016 at 3:47 pm, Satish Pokala <<EMAIL_ADDRESS><EMAIL_ADDRESS>> wrote:
Thanks again for coming back
Finally I have resolved the issue and it is working fine now
But I need some clarification
When we install ng2-uploader it does not have .js files in it.
When be build it through tsc my out put folder is build and all .js files goes
to build folder along with my files and ng2-uploader files.
If we see at ng2-uploader.js file it has line
require("ng2-uploader/ng2-uploader")
There I have changed the code to
require("../nodemodules/ng2-uploader/ng2-uploader")
Then it is working otherwise it is giving me 404 ng2-uploader
May be becuase i am using different out put folder for my typescript files
Sent using CloudMagic Email
[https://cloudmagic.com/k/d/mailapp?ct=pa&cv=8.1.32&pv=5.1.1&source=email_footer_2] On Sat, Mar 05, 2016 at 3:32 pm, Jan Kuri <<EMAIL_ADDRESS><EMAIL_ADDRESS>> wrote:
@satish-pokala [https://github.com/satish-pokala] right now I really can't see what can be wrong, can you please prepare the
plunkr or demo?
—
Reply to this email directly or view it on GitHub
[https://github.com/jkuri/ng2-uploader/issues/11#issuecomment-192615274] .[https://github.com/notifications/beacon/ABrUix8utXqpx7S57jDlUx1lJncYNtycks5pqVS1gaJpZM4HpqqJ.gif]

It is recommended that you have compiled files separated from the source
files. Maybe take a look at the angular-cli tool, it has that functionality.
On Saturday, 5 March 2016, Satish POKALA<EMAIL_ADDRESS>wrote:

Thanks again for coming back
Finally I have resolved the issue and it is working fine now
But I need some clarification
When we install ng2-uploader it does not have .js files in it.
When be build it through tsc my out put folder is build and all .js files
goes
to build folder along with my files and ng2-uploader files.
If we see at ng2-uploader.js file it has line
require("ng2-uploader/ng2-uploader")
There I have changed the code to
require("../nodemodules/ng2-uploader/ng2-uploader")
Then it is working otherwise it is giving me 404 ng2-uploader
May be becuase i am using different out put folder for my typescript files
Sent using CloudMagic Email
[
https://cloudmagic.com/k/d/mailapp?ct=pa&cv=8.1.32&pv=5.1.1&source=email_footer_2]
On Sat, Mar 05, 2016 at 3:32 pm, Jan Kuri <<EMAIL_ADDRESS><javascript:_e(%7B%7D,'cvml','notifications@github.com');> [
<EMAIL_ADDRESS><javascript:_e(%7B%7D,'cvml','notifications@github.com');>] > wrote:
@satish-pokala [https://github.com/satish-pokala] right now I really
can't see what can be wrong, can you please prepare the
plunkr or demo?
—
Reply to this email directly or view it on GitHub
[https://github.com/jkuri/ng2-uploader/issues/11#issuecomment-192615274]
.[
https://github.com/notifications/beacon/ABrUix8utXqpx7S57jDlUx1lJncYNtycks5pqVS1gaJpZM4HpqqJ.gif]
—
Reply to this email directly or view it on GitHub
https://github.com/jkuri/ng2-uploader/issues/11#issuecomment-192616538.

@satish-pokala getting this error.. Please comment how to resolve this.
Can't bind to 'uploader' since it isn't a known native property ("rimary">
Browse
][uploader]="uploader" (change)="browse($event.target.value)" >
"):


protocolbuffers.inc.php error

Something stop work, or i did smth wrong? yesterday was working ok.
Fatal error:  Uncaught exception 'Exception' with message 'skip((1) 64-bit): Error seeking' in PokemonGoAPI-PHP/vendor/nicklasw/pogoprotos-php/src/protocolbuffers.inc.php:844
Stack trace:
#0 PokemonGoAPI-PHP/vendor/nicklasw/pogoprotos-php/src/POGOProtos/Data/PlayerData.php(163): Protobuf::skip_field(Resource id #58, 0)
#1 PokemonGoAPI-PHP/vendor/nicklasw/pogoprotos-php/src/protocolbuffers.inc.php(84): POGOProtos\Data\PlayerData->read(Resource id #58, 6)
#2 PokemonGoAPI-PHP/vendor/nicklasw/pogoprotos-php/src/POGOProtos/Data/PlayerData.php(31): ProtobufMessage->__construct(Resource id #58, 6)
#3 PokemonGoAPI-PHP/vendor/nicklasw/pogoprotos-php/src/POGOProtos/Networking/Responses/GetPlayerResponse.php(49): POGOProtos\Data\PlayerData->__construct(Resource id #58, 6)
#4 PokemonGoAPI-PHP/src/Requests/GetPlayerRequest.php(54): POGOProtos\Networking\Responses\GetPlayerResponse->read('\x08\x01\x12Y\x08\ in PokemonGoAPI-PHP/vendor/nicklasw/pogoprotos-php/src/protocolbuffers.inc.php on line 844

Same thing happened to me.
I guess it's because of Niantic banning most of cloud ISPs.
If you run this locally it should work, right ?

Nope. After some digging it looks like PlayerResponse packet got additional field.

Any idea how to fix this ?

PokemonGoAPI-PHP/vendor/nicklasw/pogoprotos-php/src/POGOProtos/Data/PlayerData.php
after case 14 add another one:
          case 15:
            if($wire !== 0) {
              throw new \Exception("Incorrect wire format for field $field, expected: 0 got: $wire");
            }
            $tmp = Protobuf::read_signed_varint($fp, $limit);
            if ($tmp === false) throw new \Exception('Protobuf::read_varint returned false');
            if ($tmp < Protobuf::MIN_INT32 || $tmp > Protobuf::MAX_INT32) throw new \Exception('int32 out of range');
              // echo $tmp;
            break;

@Gandaflux You're awesome. Thanks for the quick reply. It worked :)

I have updated the pogoprotos-php repo. Thanks for the help @Gandaflux


Textual definition update: GO:0042351 de novo' GDP-L-fucose biosynthetic process

The  Xref for output and input are missing.

GO term ID and label for which you request a definition update
GO:0042351 de novo' GDP-L-fucose biosynthetic process

New proposed definition (genus-differentia pattern, plus additional information if needed)
intersection_of: has_primary_input CHEBI:57527 ! GDP-α-D-mannose(2−)
intersection_of: has_primary_output CHEBI:57984 ! GDP-L-fucose(2-)

Added has_primary_input CHEBI:57527 ! GDP-α-D-mannose(2−).
'biosynthetic process' and ('has primary output' some 'GDP-L-fucose(2-)') is already the logical definition of parent GDP-L-fucose biosynthetic process.
thanks.


UNIX Socket/Win Pipe authentication support

Both windows and unix provides some means of authenticating clients. It's so called peer authentication on UNIX.
UNIX gives uid gid of user of other side. Windows allows to impersonate user(given proper flags was passed on socket creation and connection from client). After that user id and name could be retrived.
And both OSes allows to get PID of the client.
I've looked through the docs and haven't find above functionality.

The functionality exists for Unix in the form of AncillaryData::Credentials: you can both send and receive those with ease, and impersonation is actually supported because you can fill out arbitrary values there if you're the root user.
If I remember correctly, there's also another way on Unix which does not require cooperation between two ends, where one end can simply query the PID of the peer, without support for impersonation. It's not supported yet, but it would be easy to implement it.
On Windows, named pipes require some cleaning up in the documentation and are missing the peer authentication feature entirely, which shouldn't be too hard to improve as well.
It would also be pretty neat to expose this functionality in local_socket itself, which should just be a matter of boilerplate.

The functionality exists for Unix in the form of AncillaryData::Credentials: you can both send and receive those with ease, and impersonation is actually supported because you can fill out arbitrary values there if you're the root user.
If I remember correctly, there's also another way on Unix which does not require cooperation between two ends, where one end can simply query the PID of the peer, without support for impersonation. It's not supported yet, but it would be easy to implement it.
On Windows, named pipes require some cleaning up in the documentation and are missing the peer authentication feature entirely, which shouldn't be too hard to improve as well.
It would also be pretty neat to expose this functionality in local_socket itself, which should just be a matter of boilerplate.

This functionality is implemented on the master branch but not yet released, since I want a few other things in 1.1.0 which aren't quite ready. I'm finishing those really soon, so it's almost done.

This functionality is implemented on the master branch but not yet released, since I want a few other things in 1.1.0 which aren't quite ready. I'm finishing those really soon, so it's almost done.

1.1.0 has been released, you can check the release notes for more details on how to use this feature.

1.1.0 has been released, you can check the release notes for more details on how to use this feature.


I can't configure wifi , the version errata file can't be downloaded...

I can't configure wifi , the version errata file can't be downloaded...
also i tried to configure wifi networking i setup the rc.conf and loader.conf the wifi manager starts then but it doesn't show any networks !
Maybe i should try with another wifi adapter ? my adapter is fully compatible with freebsd without any configuration.
--Also because i'm greek and i can't even login if i select greek language please make the lighdm login so it uses only english/latin characters as input cause i can't login ! or setup the keyboard to change layout with alt+shift.

Hi @christhegreek,

I can't configure wifi , the version errata file can't be downloaded...

Sorry for that. The mentioned link in the errata has just been corrected. If you still can't get your wifi to work, send us the output of
pciconf -lv | grep -B3 -i network

--Also because i'm greek and i can't even login if i select greek language please make the lighdm login so it uses only english/latin characters as input cause i can't login ! or setup the keyboard to change layout with alt+shift.

Good point. Indeed, we were talking about the possibility to change the keyboard layout on the fly.

Also i have another question when i install nomadbsd on my disk the graphics card auto configuration will still popup every time i boot ?

Also i have another question when i install nomadbsd on my disk the graphics card auto configuration will still popup every time i boot ?

From the handbook:

If you want to disable the graphics driver menu, add
initgfx_menu="NO" to /etc/rc.conf.

Help guys ! how on earth i connect to wifi ?? the wifi manager does nothing
at all sees no networks if i create wpa supplicant it show up there but
does nothing how do i connect to internet ???????
Tried everything on freebsd guide but i can't see any wireless adapters
with ifconfig -a
Can you help cause i'm pretty stuck there !
Στις Τετ, 20 Νοε 2019 στις 2:13 μ.μ., ο/η mrclksr<EMAIL_ADDRESS>έγραψε:

Closed #14 https://github.com/nomadbsd/NomadBSD/issues/14.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/nomadbsd/NomadBSD/issues/14?email_source=notifications&email_token=AF52IL6JUPB7WTJTFETFEQTQUUSXLA5CNFSM4H2XSBZKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOU7E67XA#event-2815029212,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AF52IL6LWNQMP6SMOGBAO2TQUUSXLANCNFSM4H2XSBZA
.

Could you please post the output of the following commands?:
# grep -E 'wlan|ifconfig' /etc/rc.conf
# sysctl -n net.wlan.devices
# pciconf -lv | grep -B3 network


TryDisctinctByAndTake

I have an ordered list of items and I want to take the 5 first items from it:
list.Take(5)
However, I also want to get unique items before by the property:
list.DistinctBy(x => x.MyProperty).Take(5)
The solution I'm looking for is a combination of the above methods, which will try to get as many as possible unique items and fill the resulted list with the rest.
It can be called something like TryDisctinctByAndTake()

Thanks for your examples and sharing your implementation.

I need to get as many unique elements as possible.

I see, but curiously, do you have an example of practical use case or problem it solves? I am not able to imagine one based on your description/examples.


marketplace

Issue Type: Bug
i have just downloaded visual studio on my mac . And it does not want to download anything from the marketplace .
VS Code version: Code 1.47.2 (17299e413d5590b14ab0340ea477cdd86ff13daf, 2020-07-15T18:18:50.054Z)
OS version: Darwin x64 19.5.0

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz (4 x 1700)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledviz_display_compositor: enabled_onviz_hit_test_surface_layer: disabled_off_okwebgl: enabledwebgl2: enabled

Load (avg)
2, 2, 1

Memory (System)
4.00GB (0.02GB free)

Process Argv
-psn_0_397409

Screen Reader
no

VM
0%

Extensions: none

Please follow these steps

Help -> Toggle Developer Tools -> Network
Then check for any network failed requests while browsing and installing the extensions if found all requests fails then its probably a proxy or DNS issue at your end.
To confirm its a DNS issue check if you can access this page https://ms-python.gallerycdn.vsassets.io/extensions/ms-python/python/2019.8.29288/1565127378610/Microsoft.VisualStudio.Services.Icons.Default, if you cannot please try configuring your DNS like pointing to <IP_ADDRESS> as suggested here? https://<IP_ADDRESS>/dns/. Otherwise please contact your network administrator.
If it is not a network issue, please share the logs from the following locations

Help -> Toggle Developer Tools -> Console
View -> Command Pallette... -> Toggle Shared Process -> Console
View -> Open View… -> Log (Shared)
View -> Open View… -> Log (Window)


Use +new Date shorthand notation

Use +new Date instead of Date.now().
http://afuchs.tumblr.com/post/23550124774/date-now-in-ie8

in old browsers w/o Date.now (IE8), +new Date() is 100% faster


Generic modifications for Linux and macOS builds

The upnpDiscover() calling spec was changed at this version.

When this patch is merged, it makes building easier. Thank you!

I have confirm successful builds of sandegod and sandego-qt with Qt 5.10.1 on Ubuntu 16.04 gcc/g++ 5.4.0 and macOS 10.12 clang/clang++ 8.1.0.


[YUNIKORN-2723] Append wordwrap queuename in QueuesV2 (Beta) page

What is this PR for?
Append wordwrap queuename in QueuesV2 (Beta) page
What type of PR is it?

[x] - Bug Fix

What is the Jira issue?
https://issues.apache.org/jira/browse/YUNIKORN-2723
Screenshots (if appropriate)

Before
Wordwrap
Ellipsis & Tooltip

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 38.77%. Comparing base (7f8c742) to head (abd7800).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #208   +/-   ##
=======================================
  Coverage   38.77%   38.77%
=======================================
  Files           2        2
  Lines          49       49
=======================================
  Hits           19       19
  Misses         27       27
  Partials        3        3

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

I think it would be far better to not wrap the queue name, and instead use ellipsis at the beginning. For example, if queue is root.level1.level2.level3.level4, this could be displayed as ...level3.level4 or something, and then have a hover tooltip with the full queue name.

I think it would be far better to not wrap the queue name, and instead use ellipsis at the beginning. For example, if queue is root.level1.level2.level3.level4, this could be displayed as ...level3.level4 or something, and then have a hover tooltip with the full queue name.
Alternatively, the queues could be displayed with their short names, since we already show the tree:
root ->
  level1 ->
    level2 ->
      level3 ->
        level4

Sounds great. it will not consider card dynamic height problem.
I have updated it to use Ellipsis and Tooltip, as shown above.

I think it would be far better to not wrap the queue name, and instead use ellipsis at the beginning. For example, if queue is root.level1.level2.level3.level4, this could be displayed as ...level3.level4 or something, and then have a hover tooltip with the full queue name.
Alternatively, the queues could be displayed with their short names, since we already show the tree:
root ->
  level1 ->
    level2 ->
      level3 ->
        level4

Sounds great. it will not consider card dynamic height problem. I have updated it to use Ellipsis and Tooltip, as shown above.

I guess I wasn't very clear. Each queue has a parent queue, so a queue such as root.level1.level2.level3.level4 needs to only show level4 in the tree (in other words, only the last component after the final period). When shown in a graph, there's no need to display the fully-qualified queue name, only the short version. That component might still be too wide, so truncating with ellipsis and a tooltip is still useful, but shouldn't be necessary most of the time.

I guess I wasn't very clear. Each queue has a parent queue, so a queue such as root.level1.level2.level3.level4 needs to only show level4 in the tree (in other words, only the last component after the final period). When shown in a graph, there's no need to display the fully-qualified queue name, only the short version. That component might still be too wide, so truncating with ellipsis and a tooltip is still useful, but shouldn't be necessary most of the time.

Okay, I got it!
I have updated it, as shown above video.

The test coverage steps seem to be broken by this change.

oh, miss handle queueName undefined or null case
I have fixed it.


scripts: check-compliance: Allow to run from any path

Allow check-compliance.py to be run from any path with a valid Git tree,
removing the unnecessary and artificial limitation imposed in the case
of gitlint.
Signed-off-by: Carles Cufi<EMAIL_ADDRESS>

Codecov Report

Merging #7861 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #7861   +/-   ##
=======================================
  Coverage   55.02%   55.02%
=======================================
  Files         483      483
  Lines       53968    53968
  Branches    10501    10501
=======================================
  Hits        29694    29694
  Misses      19986    19986
  Partials     4288     4288

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e9174c6...4bd9e1d. Read the comment docs.


Doesn't sync correctly after use adb shell wm size.

[x] I have read the FAQ.
[x] I have searched in existing issues.

Environment

OS: Ubuntu 18.04
scrcpy version: 1.14
installation method: apt
device model: Redmi note 8 pro (begonia) <- 1080x2336 default.
Android version: 10

Describe the bug

start scrcpy
run adb shell wm size 1080x2336 or  adb shell wm size 1080x1920
scrcpy stdout nothing and the copied screen was not fully displayed.

terminal 1(scrcpy):
sodiumaluminate@AlsPad:~$ scrcpy
INFO: scrcpy 1.14 <https://github.com/Genymobile/scrcpy>
/usr/local/share/scrcpy/scrcpy-server:...shed. 5.7 MB/s (33142 bytes in 0.006s)
[server] INFO: Device: Xiaomi Redmi Note 8 Pro (Android 10)
INFO: OpenGL shaders: ENABLED
INFO: Created renderer: opengl
INFO: Renderer: opengl
INFO: OpenGL version: 4.6.0 NVIDIA 450.80.02
INFO: Trilinear filtering enabled
INFO: Initial texture: 1080x2336
^CWARN: Device disconnected
sodiumaluminate@AlsPad:~$

terminal 2(adb wm):
sodiumaluminate@AlsPad:~$ adb shell
begonia:/ $ wm
Window manager (window) commands:
  help
      Print this help text.
  size [reset|WxH|WdpxHdp] [-d DISPLAY_ID]
    Return or override display size.
    width and height in pixels unless suffixed with 'dp'.
  density [reset|DENSITY] [-d DISPLAY_ID]
    Return or override display density.
  folded-area [reset|LEFT,TOP,RIGHT,BOTTOM]
    Return or override folded area.
  overscan [reset|LEFT,TOP,RIGHT,BOTTOM] [-d DISPLAY ID]
    Set overscan area for display.
  scaling [off|auto] [-d DISPLAY_ID]
    Set display scaling mode.
  dismiss-keyguard
    Dismiss the keyguard, prompting user for auth if necessary.
  set-user-rotation [free|lock] [-d DISPLAY_ID] [rotation]
    Set user rotation mode and user rotation.
  set-fix-to-user-rotation [-d DISPLAY_ID] [enabled|disabled]
    Enable or disable rotating display for app requested orientation.
255|begonia:/ $ wm size 1080x1920
begonia:/ $ wm size reset
begonia:/ $ wm size 1080x1920
begonia:/ $ wm size reset
begonia:/ $

But if you restart scrcpy, does it have the correct size?
AFAIK there is no way to be notified of window size changes.

But if you restart scrcpy, does it have the correct size?

yes, it can be corrected by restart scrcpy.

AFAIK there is no way to be notified of window size changes.

but maybe we can check it evey few seconds?

but maybe we can check it evey few seconds?

Polling is ugly, it's not worth it for a thing which almost never happens in practice.

but maybe we can check it evey few seconds?

Polling is ugly, it's not worth it for a thing which almost never happens in practice.
If there is a proper way to be notified by a callback, I'll add it, but no polling.

well… you are right, unless we hook the wm or adb, or create an Android activity in front end, there may be no way to watch it.

Refs:

https://github.com/aosp-mirror/platform_frameworks_base/blob/e191d8d958307ff182e463c1058a0ac25eb78225/core/java/android/view/IWindowManager.aidl#L477
https://github.com/aosp-mirror/platform_frameworks_base/blob/e191d8d958307ff182e463c1058a0ac25eb78225/core/java/android/view/IPinnedStackListener.aidl#L71


Check fetched status before creating comment.replies

Feature Summary and Justification
Before the fix, if I create the Comment by id and then invoke replies, None would be returned.
Now the method check if the data is already fetched, if not invoke the _fetch method.

Thanks for noticing this bug.
PRAW should be handling the "if not fetched then fetch" routine already, so I don't believe the fix is to do it manually here. I believe that maybe the @property decorator should be changed to a @cachedproperty decorator, though I'm not certain of this
In addition, we should add a test to check for this bug in the future.

A .fetch() doesn’t retrieve the replies at all, although it seems to make .replies return [] which I think is a bit strange.
The .refresh() method is supposed to be used to populate the .replies attribute (as is documented), not the fetch mechanism, so, @timendum, did you mean to do a .refresh() instead?
If a refresh is implicit like fetch is then the .refresh() method would, of course, be redundant.

@jarhill0 self._replies is used in other places in the class, hence .replies can’t be safely made into a @cachedproperty.

@timendum thanks for the PR. I'm going to close this one in favor of @Pyprohly's #1103 as Reddit's API is very inconsistent with what [] means with respect to a comment.


usleep deviation was too large

1 sec =1,000 millisec=1,000,000 microsec=1,000,000,000 nanosec
I have a code like this:
start = get_start_time();
usleep(100000);   // sleep 100000 microsecond (or 100 millisecond).
end = get_end_time();
diff = end - start;
assert(80000 < diff && diff < 120000);  // I think the deviation should be (-20%, 20%).

This code always runs successfully on my own computer (Linux, Windows and Mac).
On travis-CI, it only succeeded on Linux and Windows, but not on Mac.
The test code is here, and the CI result is here.
Why failed on MacOS?  Are there any issues with the clock of Mac virtual machine?

To be honest I have no experience with Mac virtual machines so I don't know. I do know that travis runs multiple tests on the same machines so they might sometimes be slower or faster. This is why it's a broad range of deviations that are already allowed.
Looks like the pull request you made (https://github.com/erikdubbelboer/node-sleep/pull/102) ran fine so it doesn't always fail. If you restart your job it might also succeed this time?

The travis-CI always fails in my fork project of node-sleep, I think the reason is that I added two test cases in test.js.  In these two test cases, I used process.hrtime() (more accurate then Date() ) to measure the time.

I have just made a pull request where I switch all timing code to use process.hrtime(): https://github.com/erikdubbelboer/node-sleep/pull/103
Here everything seems to be working fine: https://travis-ci.org/erikdubbelboer/node-sleep/builds/630569802?utm_source=github_status&utm_medium=notification
My guess is 100 milliseconds is just too little for a virtual machine on a server that is probably busy doing other things as well (travis servers are probably very busy). The VM not getting the CPU for 100ms is maybe very likely.

Any virtual machine can have extensive time variation, this is core to virtualization design and function.  The recommendation from Microsoft for Hyper-V, from VMware for ESXi, etc., is that if you have time critical requirements, you either don't use virtual machines, or you make sure the virtual machines have assigned resources as needed.  All virtual machines exhibit time stretching issues.


[AsyncKernel] Add dependent events to kernel submission

@ZzEeKkAa can the ticket be closed after the merging of #1249?

Resolved with https://github.com/IntelPython/numba-dpex/pull/1249 merge


feat(example): Copy svg to clipboard

Thanks a bunch for developing this super fun library. While using your repo's example app for a recent project of mine I needed to copy the drawn svg element into Sketch to build out a design.
I thought it'd be super handy to have a copy to clipboard button so that you can copy and paste directly into a design tool like Figma/Sketch. Check out a gif below.

I tried to make the feature code idiomatic of how you've been building it using your state library (a neat little rabbit hole of investigation) while making sure not to add any extra dependencies.
I wasn't sure precisely whether I could include the async util fn for clipboard copying to the createState object. First I tried simply putting it an action but the proxy to the data was revoked. I then tried using the asyncs example in the docs, but couldn't figure out how to directly invoke the async function using on event chains.
So, I settled on just dispatching the action after the async clipboard utility returned the appropriate message.
I also created a small accessible alert component for letting the user know the result of the copy request. It color adjusts appropriately for light and dark mode.
Hopefully this might be of interest for adding to the example, let me know. If not, thanks again for building these libraries. 👍

This is excellent! I've improved the copy function a bit so that it clips down to just  the current viewBox (with some padding). Otherwise looks great, thank you!

Neat changes, thanks for merging! 👍

Also, congrats for giving the state management a try—the docs are somewhat lacking, especially around async stuff. If you're still interested in seeing how it would be done, I'll bring it into the state machine so that we can call it from a keyboard shortcut, too.

That'd be great, I was messing around with it for a little while so it'd be cool to see how you'd do it.


Installing gsutil on arm just broke (again)

This is very odd - ci is now failing when the arm vms try to install gsutil - complaining that it requires python < 3.12
What is odd is that nothing has changed on our side, and there have been no new pip packages for gsutil
gsutil always had the python version set but for whatever reason pip wasnt enforcing it so the install worked fine
kinda frustrating also as it would require so little effort on gsutil side to resolve this (pending prs including one of mine)
not sure how to workaround this issue rn

seems its not the installing that broke - its the pre-installed github gsutil - https://github.com/actions/runner-images/issues/11089
trying to think how best to resolve

we have a reasonable workaround for this - problem has been acknowledged here https://github.com/actions/runner-images/issues/11089

keeping this open - hopefully we can remove the workaround once upstream is fixed


Configuration Help

Describe your desired configuration
A clear and concise description of what your desired effect and/or speed controller configuration is. Make sure you include how many controllers you have and what devices are connected to each controller.
I have no idea how to do this , I bought a pc online, and i got ThermalTake 120mm Pure Plus 12 LED RGB Radiator Fan TT Premium Edition PWM 500~1500rpm (3 Fan Pack) w/ Software Controller inside them, right now they are jus running at however i got them from the pc company, i would like the aurora effect please, just any effect that isnt this ugly rgb at all times. My processor is a ryzen 9 3900x and 2070 super gpu on a 570 motherboard, with the original software it showed could not find controller.
if aurora is the default that comes with it , please give me a profile with flow, but if aurora is not default ill take that..
Hardware info
Replace this text (between ``` characters) with a debug report.
You can generate it by going to "Main Menu -> Debug -> Report" in the command line menu.

Make sure no official software is not running at the same time.

Current configuration
If applicable, replace this text (between ``` characters) with contents of your current configuration here.

I would need that debug report first.
Run TTController.Service.exe and go to Debug -> Report and post the output.

»
»        OS: Windows 10 Home 1909 [18362.1.amd64fre.19h1_release.190318-1202]
»        Build: 0.10.0-alpha+Branch.master.Sha.a826afd7df70a522c78f4785f357baa124b6a937
»
Controllers
»
»
Sensors
»
»  Nuvoton NCT6798D:
»        Temperature:
»                Temperature #1 (/lpc/nct6798d/temperature/1): 33.0 °C
»                Temperature #2 (/lpc/nct6798d/temperature/2): 28.0 °C
»                Temperature #3 (/lpc/nct6798d/temperature/3): 26.0 °C
»                Temperature #4 (/lpc/nct6798d/temperature/4): 45.0 °C
»                Temperature #5 (/lpc/nct6798d/temperature/5): 2.0 °C
»                Temperature #6 (/lpc/nct6798d/temperature/6): 25.0 °C
»
»  AMD Ryzen 9 3900X:
»        Temperature:
»                Core (Tctl/Tdie) (/amdcpu/0/temperature/2): 51.9 °C
»                CCD1 (Tdie) (/amdcpu/0/temperature/3): 41.0 °C
»                CCD2 (Tdie) (/amdcpu/0/temperature/4): 37.3 °C
»                CCDs Max (Tdie) (/amdcpu/0/temperature/5): 41.0 °C
»                CCDs Average (Tdie) (/amdcpu/0/temperature/6): 39.1 °C
»
»  NVIDIA GeForce RTX 2070 SUPER:
»        Temperature:
»                GPU Core (/gpu/0/temperature/0): 38.0 °C
»
»  WDC WD30PURZ-85GU6Y0:
»        Temperature:
»                Temperature (/hdd/2/temperature/0): 27.0 °C
»
»  WDC WDS480G2G0A-00JH30:
»        Temperature:
»                Temperature (/hdd/1/temperature/0): 33.0 °C
»
»  WDC WDS100T2B0C-00PXH0:
»        Temperature:
»                Temperature (/nvme/0/temperature/0): 34.0 °C
doesnt seem to show anything for controllers?

Yes, if TTController and the official software do not detect the controller then I cant really do much.
Either the controller is bad, or it is not connected correctly to the motherboard. It should be connected to one of the usb headers on the motherboard.

I will close this for now since I cant really help.
If you manage to make the official software detect the controller, reply here if you still want to use TTController and I will reopen.


Backup is not broken on disk full [BF-2051]

Mainly two things in this PR:

When restoring a backup fails because of Disk Full, the backup is no longer marked as broken.
Developer experience on M1/arm: make build-setup-specific-image now works on more architectures than x86_64.

BF-2051

Codecov Report
Patch coverage: 71.42% and project coverage change: -0.75 :warning:

Comparison is base (de5af5b) 78.83% compared to head (fe487fd) 78.08%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #160      +/-   ##
==========================================
- Coverage   78.83%   78.08%   -0.75%
==========================================
  Files          17       17
  Lines        4351     4376      +25
  Branches      984      976       -8
==========================================
- Hits         3430     3417      -13
- Misses        688      727      +39
+ Partials      233      232       -1

Impacted Files
Coverage Δ

myhoard/controller.py
79.83% <33.33%> (-0.44%)
:arrow_down:

myhoard/basebackup_restore_operation.py
85.59% <62.50%> (+4.68%)
:arrow_up:

myhoard/errors.py
63.63% <100.00%> (+3.63%)
:arrow_up:

myhoard/restore_coordinator.py
78.04% <100.00%> (-3.69%)
:arrow_down:

myhoard/util.py
89.00% <100.00%> (+0.05%)
:arrow_up:

... and 3 files with indirect coverage changes

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


Is node-cron stop when server die? i mean is node-cron a deamon scripts

I have this same doubt. Node-Cron is still running even though the node server is stopped using ctrl+c.

@amalan-shenll in my tests, I have seen all of my cron jobs destroyed if I restart the node server. Either full system reboot, or just using pm2 stop I use Process Manager to start, stop my node apps and monitor the process. So for me, Yes node-cron stops completely and destroys all jobs in memory.


Show solar radiation on solar panel tool

What I currently have is the incident radiation
Conversion from incident radiation to module radiation:
https://www.pveducation.org/pvcdrom/properties-of-sunlight/arbitrary-orientation-and-tilt


Check log file creation before starting big BAP batch job

We want to make sure we aren't running into algorithm errors when running BAP. Make sure the BAP is generating a clean log file which can easily be used for debugging.

Created a new log.mat file format.
The code change is made here: https://github.com/amedwards/NICUHDF5Viewer/commit/2be41fed4ad9d4a07b474bac0ccaaac52be761eb
I created a wiki page about the new log files here


Photos broken at https://crimethinc.com/2016

When I go to https://crimethinc.com/2016 many of the images don't display properly on the left side.

just to add to @biofilo's comment.
The issue seems to be something wrong in cloudfront.
The error I see is:
<?xml version="1.0" encoding="UTF-8"?>
<Error>
  AccessDenied
  <Message>Access Denied</Message>
  <RequestId>E731D47286809078</RequestId>
  <HostId>Ld98r01ITkVd4V//PwMV6KoD1G+BYRzVeML5tVc944uq5IATjTUrcVevX9DiWi5woWW7SRFWS7g=</HostId>
</Error>

I don't see any difference between the requests that 200 and the requests that 403

I'm on it.

Fixed.


feat: Add support timeouts in milliseconds for HTTP client

Adds support for having timeout and connection timeout in milliseconds for HTTP client

Why do you see the need to reduce the timeout below 1s?

So is CURLOPT_TIMEOUT only an integer? Meaning this CURLOPT_TIMEOUT_MS would also be needed to configure 1.5 seconds?