gcc7 libstdc++ on darwin fails to compile

Describe the bug
While compiling gcc7 (or gcc8) in a non-sandboxed darwin enironment (as a Linux user I'm still trying to wrap my head around the sandboxing on darwin), I get compilation failures.
/nix/store/z4rsz8dl3s9qlvbvs9wbfk5ahwfhqrli-bash-4.4-p23/bin/bash ../libtool --tag CXX --tag disable-shared   --mode=compile /private/var/folders/9k/hr12t49132lgnpzq88w_h6740000gn/T/nix-build-gcc-8.3.0.drv-0/build/./gcc/xgcc -shared-libgcc -B/private/var/folders/9k/hr12t49132lgnpzq88w_h6740000gn/T/nix-build-gcc-8.3.0.drv-0/build/./gcc -nostdinc++ -L/private/var/folders/9k/hr12t49132lgnpzq88w_h6740000gn/T/nix-build-gcc-8.3.0.drv-0/build/x86_64-apple-darwin/libstdc++-v3/src -L/private/var/folders/9k/hr12t49132lgnpzq88w_h6740000gn/T/nix-build-gcc-8.3.0.drv-0/build/x86_64-apple-darwin/libstdc++-v3/src/.libs -L/private/var/folders/9k/hr12t49132lgnpzq88w_h6740000gn/T/nix-build-gcc-8.3.0.drv-0/build/x86_64-apple-darwin/libstdc++-v3/libsupc++/.libs -O2 -I/nix/store/b0wshq9a0b7x9kvw8ca0bhljgjp3vgyl-Libsystem-osx-10.12.6/include -B/nix/store/b0wshq9a0b7x9kvw8ca0bhljgjp3vgyl-Libsystem-osx-10.12.6/lib/ -idirafter /nix/store/b0wshq9a0b7x9kvw8ca0bhljgjp3vgyl-Libsystem-osx-10.12.6/include -Wl,-rpath,/nix/store/bgpnnbyxjkipldxhiwyx9pd7pysf6qzj-gcc-8.3.0-lib/lib -Wl,-L/nix/store/b0wshq9a0b7x9kvw8ca0bhljgjp3vgyl-Libsystem-osx-10.12.6/lib -Wl,-rpath -Wl,/nix/store/b0wshq9a0b7x9kvw8ca0bhljgjp3vgyl-Libsystem-osx-10.12.6/lib -Wl,-L/nix/store/b0wshq9a0b7x9kvw8ca0bhljgjp3vgyl-Libsystem-osx-10.12.6/lib    -I/private/var/folders/9k/hr12t49132lgnpzq88w_h6740000gn/T/nix-build-gcc-8.3.0.drv-0/gcc-8.3.0/libstdc++-v3/../libgcc -I/private/var/folders/9k/hr12t49132lgnpzq88w_h6740000gn/T/nix-build-gcc-8.3.0.drv-0/build/x86_64-apple-darwin/libstdc++-v3/include/x86_64-apple-darwin -I/private/var/folders/9k/hr12t49132lgnpzq88w_h6740000gn/T/nix-build-gcc-8.3.0.drv-0/build/x86_64-apple-darwin/libstdc++-v3/include -I/private/var/folders/9k/hr12t49132lgnpzq88w_h6740000gn/T/nix-build-gcc-8.3.0.drv-0/gcc-8.3.0/libstdc++-v3/libsupc++   -prefer-pic -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi  -fdiagnostics-show-location=once    -ffunction-sections -fdata-sections  -frandom-seed=del_opant.lo -O2 -I/nix/store/b0wshq9a0b7x9kvw8ca0bhljgjp3vgyl-Libsystem-osx-10.12.6/include -B/nix/store/b0wshq9a0b7x9kvw8ca0bhljgjp3vgyl-Libsystem-osx-10.12.6/lib/ -idirafter /nix/store/b0wshq9a0b7x9kvw8ca0bhljgjp3vgyl-Libsystem-osx-10.12.6/include -Wl,-rpath,/nix/store/bgpnnbyxjkipldxhiwyx9pd7pysf6qzj-gcc-8.3.0-lib/lib -Wl,-L/nix/store/b0wshq9a0b7x9kvw8ca0bhljgjp3vgyl-Libsystem-osx-10.12.6/lib -Wl,-rpath -Wl,/nix/store/b0wshq9a0b7x9kvw8ca0bhljgjp3vgyl-Libsystem-osx-10.12.6/lib -Wl,-L/nix/store/b0wshq9a0b7x9kvw8ca0bhljgjp3vgyl-Libsystem-osx-10.12.6/lib  -std=gnu++1z -c ../../../../gcc-8.3.0/libstdc++-v3/libsupc++/del_opant.cc
In file included from /private/var/folders/9k/hr12t49132lgnpzq88w_h6740000gn/T/nix-build-gcc-8.3.0.drv-0/build/x86_64-apple-darwin/libstdc++-v3/include/stdlib.h:36,
                 from ../../../../gcc-8.3.0/libstdc++-v3/libsupc++/new_opa.cc:27:
/private/var/folders/9k/hr12t49132lgnpzq88w_h6740000gn/T/nix-build-gcc-8.3.0.drv-0/build/x86_64-apple-darwin/libstdc++-v3/include/cstdlib:132:11: error: '::aligned_alloc' has not been declared
   using ::aligned_alloc;
           ^~~~~~~~~~~~~

/nix/store/z4rsz8dl3s9qlvbvs9wbfk5ahwfhqrli-bash-4.4-p23/bin/bash ../libtool --tag CXX --tag disable-shared   --mode=compile /private/var/folders/9k/hr12t49132lgnpzq88w_h6740000gn/T/nix-build-gcc-8.3.0.drv-0/build/./gcc/xgcc -shared-libgcc -B/private/var/folders/9k/hr12t49132lgnpzq88w_h6740000gn/T/nix-build-gcc-8.3.0.drv-0/build/./gcc -nostdinc++ -L/private/var/folders/9k/hr12t49132lgnpzq88w_h6740000gn/T/nix-build-gcc-8.3.0.drv-0/build/x86_64-apple-darwin/libstdc++-v3/src -L/private/var/folders/9k/hr12t49132lgnpzq88w_h6740000gn/T/nix-build-gcc-8.3.0.drv-0/build/x86_64-apple-darwin/libstdc++-v3/src/.libs -L/private/var/folders/9k/hr12t49132lgnpzq88w_h6740000gn/T/nix-build-gcc-8.3.0.drv-0/build/x86_64-apple-darwin/libstdc++-v3/libsupc++/.libs -O2 -I/nix/store/b0wshq9a0b7x9kvw8ca0bhljgjp3vgyl-Libsystem-osx-10.12.6/include -B/nix/store/b0wshq9a0b7x9kvw8ca0bhljgjp3vgyl-Libsystem-osx-10.12.6/lib/ -idirafter /nix/store/b0wshq9a0b7x9kvw8ca0bhljgjp3vgyl-Libsystem-osx-10.12.6/include -Wl,-rpath,/nix/store/bgpnnbyxjkipldxhiwyx9pd7pysf6qzj-gcc-8.3.0-lib/lib -Wl,-L/nix/store/b0wshq9a0b7x9kvw8ca0bhljgjp3vgyl-Libsystem-osx-10.12.6/lib -Wl,-rpath -Wl,/nix/store/b0wshq9a0b7x9kvw8ca0bhljgjp3vgyl-Libsystem-osx-10.12.6/lib -Wl,-L/nix/store/b0wshq9a0b7x9kvw8ca0bhljgjp3vgyl-Libsystem-osx-10.12.6/lib    -I/private/var/folders/9k/hr12t49132lgnpzq88w_h6740000gn/T/nix-build-gcc-8.3.0.drv-0/gcc-8.3.0/libstdc++-v3/../libgcc -I/private/var/folders/9k/hr12t49132lgnpzq88w_h6740000gn/T/nix-build-gcc-8.3.0.drv-0/build/x86_64-apple-darwin/libstdc++-v3/include/x86_64-apple-darwin -I/private/var/folders/9k/hr12t49132lgnpzq88w_h6740000gn/T/nix-build-gcc-8.3.0.drv-0/build/x86_64-apple-darwin/libstdc++-v3/include -I/private/var/folders/9k/hr12t49132lgnpzq88w_h6740000gn/T/nix-build-gcc-8.3.0.drv-0/gcc-8.3.0/libstdc++-v3/libsupc++   -prefer-pic -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi  -fdiagnostics-show-location=once    -ffunction-sections -fdata-sections  -frandom-seed=del_opva.lo -O2 -I/nix/store/b0wshq9a0b7x9kvw8ca0bhljgjp3vgyl-Libsystem-osx-10.12.6/include -B/nix/store/b0wshq9a0b7x9kvw8ca0bhljgjp3vgyl-Libsystem-osx-10.12.6/lib/ -idirafter /nix/store/b0wshq9a0b7x9kvw8ca0bhljgjp3vgyl-Libsystem-osx-10.12.6/include -Wl,-rpath,/nix/store/bgpnnbyxjkipldxhiwyx9pd7pysf6qzj-gcc-8.3.0-lib/lib -Wl,-L/nix/store/b0wshq9a0b7x9kvw8ca0bhljgjp3vgyl-Libsystem-osx-10.12.6/lib -Wl,-rpath -Wl,/nix/store/b0wshq9a0b7x9kvw8ca0bhljgjp3vgyl-Libsystem-osx-10.12.6/lib -Wl,-L/nix/store/b0wshq9a0b7x9kvw8ca0bhljgjp3vgyl-Libsystem-osx-10.12.6/lib  -std=gnu++1z -c ../../../../gcc-8.3.0/libstdc++-v3/libsupc++/del_opva.cc
../../../../gcc-8.3.0/libstdc++-v3/libsupc++/new_opa.cc:47:9: error: '::aligned_alloc' has not been declared
 using ::aligned_alloc;
         ^~~~~~~~~~~~~
../../../../gcc-8.3.0/libstdc++-v3/libsupc++/new_opa.cc: In function 'void* operator new(std::size_t, std::align_val_t)':
../../../../gcc-8.3.0/libstdc++-v3/libsupc++/new_opa.cc:128:20: error: '__gnu_cxx::aligned_alloc' has not been declared
   using __gnu_cxx::aligned_alloc;
                    ^~~~~~~~~~~~~
../../../../gcc-8.3.0/libstdc++-v3/libsupc++/new_opa.cc:129:33: error: 'aligned_alloc' was not declared in this scope
   while (__builtin_expect ((p = aligned_alloc (align, sz)) == 0, false))
                                 ^~~~~~~~~~~~~

To Reproduce
To reproduce this exactly like I did, is probably nonsense, since it will cause almost every package to recompile. Essentially this came after modification to libdispatch, where I added the following command at the end of the installPhase (I add here to rule out that these two may be connected).
# gcc compatability. Source: https://stackoverflow.com/a/28014302/3714556
    substituteInPlace $out/include/dispatch/object.h \
      --replace 'typedef void (^dispatch_block_t)(void);' \
                '#ifdef __clang__
                 typedef void (^dispatch_block_t)(void);
                 #else
                 typedef void* dispatch_block_t;
                 #endif'

Alternatively dummy modify nixpkgs/pkgs/development/compilers/gcc/7/default.nix and build nix-build . -A gcc7 on commit 6236cffa69757549207ad7d2001d96ac16ad1cdf or later.
Metadata
 - system: `"x86_64-darwin"`
 - host os: `Darwin 19.0.0, macOS 10.15`
 - multi-user?: `no`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.3.1`
 - channels(root): `"nixpkgs-20.03pre196811.7818f30cc4b"`
 - channels(hlolli): `"darwin, nixpkgs-20.03pre196811.7818f30cc4b"`
 - nixpkgs: `/Users/hlolli/.nix-defexpr/channels/nixpkgs`

ADDED: I can confirm that this bug has nothing to do with the change I did on libdispatch, since I reverted it and rebuilt, getting the same error.

I got  same issue

The Meson build system
Version: 0.51.2
Source dir: /build/fribidi-1.0.7
Build dir: /build/fribidi-1.0.7/build
Build type: native build
DEPRECATION: Duplicated values in array option is deprecated. This will become a hard error in the future.
DEPRECATION: Duplicated values in array option is deprecated. This will become a hard error in the future.
DEPRECATION: Duplicated values in array option is deprecated. This will become a hard error in the future.
Project name: fribidi
Project version: 1.0.7
meson.build:1:0: ERROR: Unknown compiler(s): [['/nix/store/38rh09iclvs97fisbgy8fg6wxr33ijr1-gcc-wrapper-8.3.0/bin/cc']]

I get the same issue on NixOS. I don't believe this is Darwin-specific.

Several of us on irc are seeing this issue as well, across diverse packages.
unpacking source archive /nix/store/s2fbsgci9j4rf1fjz9dvna9fmjj55p04-recode-3.7.6.tar.gz
source root is xorgproto-2019.1
setting SOURCE_DATE_EPOCH to timestamp<PHONE_NUMBER> of file xorgproto-2019.1/specs/xproto/Makefile.in
patching sources
configuring
meson flags: --buildtype=plain         --libdir=/nix/store/41yzass51vf1hg33q0s75sjlyzsm02p9-xorgproto-2019.1/lib --libexecdir=/nix/store/41yzass51vf1hg33q0s75sjlyzsm02p9-xorgproto-2019.1/libexec         --bindir=/nix/store/41yzass51vf1hg33q0s75sjlyzsm02p9-xorgproto-2019.1/bin --sbindir=/nix/store/41yzass51vf1hg33q0s75sjlyzsm02p9-xorgproto-2019.1/sbin         --includedir=/nix/store/41yzass51vf1hg33q0s75sjlyzsm02p9-xorgproto-2019.1/include         --mandir=/nix/store/41yzass51vf1hg33q0s75sjlyzsm02p9-xorgproto-2019.1/share/man --infodir=/nix/store/41yzass51vf1hg33q0s75sjlyzsm02p9-xorgproto-2019.1/share/info         --localedir=/nix/store/41yzass51vf1hg33q0s75sjlyzsm02p9-xorgproto-2019.1/share/locale         -Dauto_features=enabled         -Dwrap_mode=nodownload         --prefix=/nix/store/41yzass51vf1hg33q0s75sjlyzsm02p9-xorgproto-2019.1 -Dlegacy=true
source root is recode-3.7.6
setting SOURCE_DATE_EPOCH to timestamp<PHONE_NUMBER> of file recode-3.7.6/tests/Recode.c
patching sources
configuring
fixing libtool script ./build-aux/ltmain.sh
configure flags: --disable-static --disable-dependency-tracking --prefix=/nix/store/z3ra61zb6c9rfyh1r9hhraj1rf793qd9-recode-3.7.6
checking for a BSD-compatible install... /nix/store/gnw6yrqy249n62r4q8vy12ispviv3dav-coreutils-8.31/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /nix/store/gnw6yrqy249n62r4q8vy12ispviv3dav-coreutils-8.31/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
The Meson build system
Version: 0.51.2
Source dir: /build/xorgproto-2019.1
Build dir: /build/xorgproto-2019.1/build
Build type: native build
Project name: xorgproto
Project version: 2019.1

meson.build:21:0: ERROR: Unknown compiler(s): [['/nix/store/38rh09iclvs97fisbgy8fg6wxr33ijr1-gcc-wrapper-8.3.0/bin/cc']]

A full log can be found at /build/xorgproto-2019.1/build/meson-logs/meson-log.txt
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
builder for '/nix/store/d6i093f12nlbyfnaclh4xwr9lnc395fk-xorgproto-2019.1.drv' failed with exit code 1

https://gist.github.com/tbenst/30758ffed0d3c7b1a03515dd6b84e318

Several of us on irc are seeing this issue as well, across diverse packages.
unpacking source archive /nix/store/s2fbsgci9j4rf1fjz9dvna9fmjj55p04-recode-3.7.6.tar.gz
source root is xorgproto-2019.1
setting SOURCE_DATE_EPOCH to timestamp<PHONE_NUMBER> of file xorgproto-2019.1/specs/xproto/Makefile.in
patching sources
configuring
meson flags: --buildtype=plain         --libdir=/nix/store/41yzass51vf1hg33q0s75sjlyzsm02p9-xorgproto-2019.1/lib --libexecdir=/nix/store/41yzass51vf1hg33q0s75sjlyzsm02p9-xorgproto-2019.1/libexec         --bindir=/nix/store/41yzass51vf1hg33q0s75sjlyzsm02p9-xorgproto-2019.1/bin --sbindir=/nix/store/41yzass51vf1hg33q0s75sjlyzsm02p9-xorgproto-2019.1/sbin         --includedir=/nix/store/41yzass51vf1hg33q0s75sjlyzsm02p9-xorgproto-2019.1/include         --mandir=/nix/store/41yzass51vf1hg33q0s75sjlyzsm02p9-xorgproto-2019.1/share/man --infodir=/nix/store/41yzass51vf1hg33q0s75sjlyzsm02p9-xorgproto-2019.1/share/info         --localedir=/nix/store/41yzass51vf1hg33q0s75sjlyzsm02p9-xorgproto-2019.1/share/locale         -Dauto_features=enabled         -Dwrap_mode=nodownload         --prefix=/nix/store/41yzass51vf1hg33q0s75sjlyzsm02p9-xorgproto-2019.1 -Dlegacy=true
source root is recode-3.7.6
setting SOURCE_DATE_EPOCH to timestamp<PHONE_NUMBER> of file recode-3.7.6/tests/Recode.c
patching sources
configuring
fixing libtool script ./build-aux/ltmain.sh
configure flags: --disable-static --disable-dependency-tracking --prefix=/nix/store/z3ra61zb6c9rfyh1r9hhraj1rf793qd9-recode-3.7.6
checking for a BSD-compatible install... /nix/store/gnw6yrqy249n62r4q8vy12ispviv3dav-coreutils-8.31/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /nix/store/gnw6yrqy249n62r4q8vy12ispviv3dav-coreutils-8.31/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
The Meson build system
Version: 0.51.2
Source dir: /build/xorgproto-2019.1
Build dir: /build/xorgproto-2019.1/build
Build type: native build
Project name: xorgproto
Project version: 2019.1

meson.build:21:0: ERROR: Unknown compiler(s): [['/nix/store/38rh09iclvs97fisbgy8fg6wxr33ijr1-gcc-wrapper-8.3.0/bin/cc']]

A full log can be found at /build/xorgproto-2019.1/build/meson-logs/meson-log.txt
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
builder for '/nix/store/d6i093f12nlbyfnaclh4xwr9lnc395fk-xorgproto-2019.1.drv' failed with exit code 1

https://gist.github.com/tbenst/30758ffed0d3c7b1a03515dd6b84e318
edit: I can confirm that f5ddd10 does not have this issue
@hlolli maybe change the issue title to reflect that this Unknown compiler issue is broader than just libstdc++ & darwin?

It's fixed by https://github.com/NixOS/nixpkgs/pull/73423

Sorry late to the party. Will test and close, unless it's still broken then I'll change the title.

Tested few times again, rebases and darwin system update, and this but is still there. We must have been referring to a different bug. I'm clueless about why I encounter this. I'm not a heavy darwin user and I haven't done much to my MacBook Pro. I may add these warning that appear, if they mean anything
cc1plus: warning: -Wabi won't warn about anything [-Wabi]
cc1plus: note: -Wabi warns about differences from the most up-to-date ABI, which is also used by default
cc1plus: note: use e.g. -Wabi=11 to warn about changes from GCC 7
cc1plus: warning: -Wabi won't warn about anything [-Wabi]
cc1plus: note: -Wabi warns about differences from the most up-to-date ABI, which is also used by default
cc1plus: note: use e.g. -Wabi=11 to warn about changes from GCC 7
cc1plus: warning: -Wabi won't warn about anything [-Wabi]
cc1plus: note: -Wabi warns about differences from the most up-to-date ABI, which is also used by default
cc1plus: note: use e.g. -Wabi=11 to warn about changes from GCC 7
cc1plus: warning: -Wabi won't warn about anything [-Wabi]
cc1plus: note: -Wabi warns about differences from the most up-to-date ABI, which is also used by default
cc1plus: note: use e.g. -Wabi=11 to warn about changes from GCC 7
cc1plus: warning: -Wabi won't warn about anything [-Wabi]
cc1plus: note: -Wabi warns about differences from the most up-to-date ABI, which is also used by default
cc1plus: note: use e.g. -Wabi=11 to warn about changes from GCC 7
cc1plus: warning: -Wabi won't warn about anything [-Wabi]
cc1plus: note: -Wabi warns about differences from the most up-to-date ABI, which is also used by default
cc1plus: note: use e.g. -Wabi=11 to warn about changes from GCC 7
cc1plus: warning: -Wabi won't warn about anything [-Wabi]
cc1plus: note: -Wabi warns about differences from the most up-to-date ABI, which is also used by default
cc1plus: note: use e.g. -Wabi=11 to warn about changes from GCC 7

Hi from the distant future, 3 months later. I am experiencing this exact problem. GCC 9 and GFortran 9 also fail to compile with a similar error about aligned_alloc.
(Background: I have Nix installed to the nonstandard location /opt/nix to work around NixOS/nix#2925, so I have to compile everything from scratch.)
I've done some digging and I think I have a lead on what's causing this (but no solution yet). Having seen what's wrong, it's actually surprising to me that GCC builds on any Darwin computer. We really need to figure out why our systems are different from the Nix build farm.
Here are the relevant snippets, in order from "easiest to obtain" to "hardest to obtain".
GCC 9 failure when compiling libgomp:
libtool: compile:  /private/var/folders/d4/n6djsq8x5dv0jfx84hzl0v000000gn/T/nix-build-gfortran-9.2.0.drv-0/build/./gcc/xgcc -B/private/var/folders/d4/n6djsq8x5dv0jfx84hzl0v000000gn/T/nix-build-gfortran-9.2.0.drv-0/build/./gcc/ -O2 -I/opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/include -B/opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/lib/ -idirafter /opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/include -Wl,-rpath,/opt/nix/store/i88p6f3dznkc5n9i955m7z94icwp0gcd-gfortran-9.2.0-lib/lib -Wl,-L/opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/lib -Wl,-rpath -Wl,/opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/lib -Wl,-L/opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/lib -fno-checking -DHAVE_CONFIG_H -I. -I../../../gcc-9.2.0/libgomp -I../../../gcc-9.2.0/libgomp/config/bsd -I../../../gcc-9.2.0/libgomp/config/darwin -I../../../gcc-9.2.0/libgomp/config/posix -I../../../gcc-9.2.0/libgomp -I../../../gcc-9.2.0/libgomp/../include -Wall -pthread -Werror -O2 -I/opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/include -B/opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/lib/ -idirafter /opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/include -Wl,-rpath,/opt/nix/store/i88p6f3dznkc5n9i955m7z94icwp0gcd-gfortran-9.2.0-lib/lib -Wl,-L/opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/lib -Wl,-rpath -Wl,/opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/lib -Wl,-L/opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/lib -MT alloc.lo -MD -MP -MF .deps/alloc.Tpo -c ../../../gcc-9.2.0/libgomp/alloc.c  -fno-common -DPIC -o .libs/alloc.o
../../../gcc-9.2.0/libgomp/alloc.c: In function 'gomp_aligned_alloc':
../../../gcc-9.2.0/libgomp/alloc.c:69:9: error: implicit declaration of function 'aligned_alloc' [-Werror=implicit-function-declaration]
   69 |   ret = aligned_alloc (al, size);
      |         ^~~~~~~~~~~~~
../../../gcc-9.2.0/libgomp/alloc.c:69:9: error: incompatible implicit declaration of built-in function 'aligned_alloc' [-Werror]
../../../gcc-9.2.0/libgomp/alloc.c:32:1: note: include '<stdlib.h>' or provide a declaration of 'aligned_alloc'
   31 | #include "libgomp.h"
  +++ |+#include <stdlib.h>
   32 | #include <stdlib.h>
cc1: all warnings being treated as errors
make[5]: *** [Makefile:787: alloc.lo] Error 1
make[5]: *** Waiting for unfinished jobs....

With GCC 8 I get the same build failure in the original issue description, which is worded differently but is essentially the same.
One of the many messages printed when configuring libgomp:
checking for aligned_alloc... yes

Aha, now that's suspicious. The stdlib.h header in /opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/include/ actually doesn't have aligned_alloc!
~/Desktop $ fgrep -r aligned_alloc /opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/include/
~/Desktop $

How did the configure script find it?
Here's a look at libgomp's config.log file:
configure:15826: checking for aligned_alloc
configure:15826: /private/var/folders/d4/n6djsq8x5dv0jfx84hzl0v000000gn/T/nix-build-gfortran-9.2.0.drv-0/build/./gcc/xgcc -B/private/var/folders/d4/n6djsq8x5dv0jfx84hzl0v000000gn/T/nix-build-gfortran-9.2.0.drv-0/build/./gcc/ -O2 -I/opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/include -B/opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/lib/ -idirafter /opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/include -Wl,-rpath,/opt/nix/store/i88p6f3dznkc5n9i955m7z94icwp0gcd-gfortran-9.2.0-lib/lib -Wl,-L/opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/lib -Wl,-rpath -Wl,/opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/lib -Wl,-L/opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/lib   -fno-checking -o conftest -O2 -I/opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/include -B/opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/lib/ -idirafter /opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/include -Wl,-rpath,/opt/nix/store/i88p6f3dznkc5n9i955m7z94icwp0gcd-gfortran-9.2.0-lib/lib -Wl,-L/opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/lib -Wl,-rpath -Wl,/opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/lib -Wl,-L/opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/lib -pthread  -Wl,-rpath,/opt/nix/store/i88p6f3dznkc5n9i955m7z94icwp0gcd-gfortran-9.2.0-lib/lib -Wl,-L/opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/lib -Wl,-rpath -Wl,/opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/lib -Wl,-L/opt/nix/store/37cahk3ls7il678l1a3g015k59rgclf7-Libsystem-osx-10.12.6/lib conftest.c -ldl  >&5
conftest.c:70:6: warning: conflicting types for built-in function 'aligned_alloc'; expected 'void *(long unsigned int,  long unsigned int)' [-Wbuiltin-declaration-mismatch]
   70 | char aligned_alloc ();
      |      ^~~~~~~~~~~~~
conftest.c:58:1: note: 'aligned_alloc' is declared in header '<stdlib.h>'
   57 | # include <limits.h>
   58 | #else
configure:15826: $? = 0
configure:15826: result: yes

So, here's my hypothesis:

GCC recognizes aligned_alloc as a builtin procedure and handles it specially.
The bootstrap compiler xgcc uses GCC's special handling for aligned_alloc but also uses the standard library in [nix-store]/[hash]-Libsystem-osx-10.12.6.
During configuration, xgcc converts what should be an error about missing aligned_alloc to a warning about how it has been implicitly declared.
During compilation, xgcc properly throws an error about missing aligned_alloc.

New hypothesis: this issue is specific to MacOS 10.15 (Catalina). The 10.15 system libraries include aligned_alloc while the 10.14 and earlier libraries do not:
~/Desktop $ fgrep -r aligned_alloc /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr
~/Desktop $ fgrep -r aligned_alloc /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/malloc/_malloc.h:void    *aligned_alloc(size_t __alignment, size_t __size) __result_use_check __alloc_size(2) __OSX_AVAILABLE(10.15) __IOS_AVAILABLE(13.0) __TVOS_AVAILABLE(13.0) __WATCHOS_AVAILABLE(6.0);
[...many more results omitted...]

Ultimately, I think the problem is a disagreement between the version 10.12 headers that Nix uses and the actual binary API offered by the system libraries. GCC fails to build because aligned_alloc is linkable but not present in the headers.

Fixed by #82921


Onedrive folder not present on the sidebar

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here. Ex: What device type/UI layout and app version?

希望能在侧边栏显示OneDrive。望采纳，ᠪᠠᠨᡳᡥᠠ（巴尼哈/谢谢）

OneDrive directories are already being displayed in side bar.

@hez2010 I can't repro this exactly. It just takes several seconds for the Onedrive (personal) folder to be displayed on the sidebar

您好。
侧边栏只有iCloud，没有OneDrive
<EMAIL_ADDRESS>发送自 Windows 10 版邮件https://go.microsoft.com/fwlink/?LinkId=550986应用
发件人<EMAIL_ADDRESS>发送时间: 2021年2月21日 19:38
收件人<EMAIL_ADDRESS>抄送<EMAIL_ADDRESS><EMAIL_ADDRESS>主题: Re: [files-community/Files] 使用反馈 (#3659)
OneDrive directories are already being displayed in side bar.
―
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/files-community/Files/issues/3659#issuecomment-782843361, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMT7X2E7WJ5SQX7JQRFU3BDTADWEZANCNFSM4X6KTS4A.

@hez2010 I can't repro this exactly. For me it "just" takes several seconds for the Onedrive (personal) folder to be displayed on the sidebar

I waited for several minutes but still nothing showing up.
Note: I have multiple OneDrive folders.

@AndyMDoyle could you check?

~OneDrive directories are already being displayed in side bar.~
Can repro it.
@gave92 @yaichenbaum Seems that there's a regression since v1.3 which causes OneDrive directories not being displayed.

no problem in v1.3 with onedrive.

as he said, it may be an icloud drive problem.

您好，22日我在两台新设备上安装该应用，已正常显示。21日那一台不在身边，我没法确认。

OneDrive and SharePoint are okay here.
With the right empty iCloudDrive folder in place iCloud appears in the sidebar as expected as well.

您好，22日我在两台新设备上安装该应用，已正常显示。21日那一台不在身边，我没法确认。

please write in english...

That's weird...
I'll investigate on my machine later.

which version of windows 10 ?

dev insider 21318

i am in 20h2 / 19042.804 in insider. I am currently upgrading to 21h1. Maybe the problem is only in the most recent insider branch

@gave92 This should be resolved in main, right?

@yaichenbaum probably not, I haven't done anything for this as I can't reproduce this issue.

problem not present in 21h1 19043.844

@gave92 I can reproduce this on my device, it seems like the FullTrustProcess isn't working at all.

@yaichenbaum great news -.- I'll need some help to solve this as I can't reproduce it at all.

On my device FullTrustProcess just being terminated after launch

Thanks @hez2010 are you getting anything in the debug_fulltrust.txt? Does it crash also in Debug? Could you debug with VS and see what's the issue?

您好，22日我在两台新设备上安装该应用，已正常显示。21日那一台不在身边，我没法确认。

请用英语写字。。。

很抱歉，能力有限，也不懂什么英语，就浏览器翻译的各位的文字，由于是机器翻译，有些语句也看不懂表达的啥。ᠪᠠᠨᡳᡥᠠ

Thanks @hez2010 are you getting anything in the debug_fulltrust.txt? Does it crash also in Debug? Could you debug with VS and see what's the issue?

It turns out that FullTrustProcess does nothing after launch, even no logs produced in debug_fulltrust.txt.

It seems that FullTrustProcess can start and initialize connection with no issue, but there're no messages being received at all.

@hez2010 After additional testing with @gave92, we have confirmed that this is an issue with the recent Windows Insider builds.

@yaichenbaum Maybe we should report it via Feedback app to Microsoft.

can confirm that the issue persists,
Windows: Insider Dev 21327.1000

Heads up: I have reported this bug in Feedback Hub, please upvote: https://aka.ms/AAbgec7

This issue should be resolved in main.

I just updated my OS to:
Edition	Windows 10 Pro
Version	20H2
Installed on	12/11/2020
OS build	19042.870
Experience	Windows Feature Experience Pack 120.2212.551.0
I also updated the Files App to v1.5, and now my Work OneDrive is showing up in the Sidebar as it should. Thanks for getting this bug fixed!


[TextField] multiline does not throw " uncontrolled to controlled " error

Simple TextField does throw the famous "shouldn't switch between controlled and uncontrolled components".
But, the multiline TextField does not throw this error.
Perhaps it could be the react error, and not the material ui's. Didn't have time to check.

[X] The issue is present in the latest release.
[X] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

Expected Behavior 🤔

Steps to Reproduce 🕹

https://codesandbox.io/s/infallible-framework-b6u3s?file=/src/App.js
Steps:

Type something into simple TextField (left one)
Notice the error in the console
Refresh and type something in the multiline TextField (right one)
Observe there is no error in the console

Your Environment 🌎

`npx @material-ui/envinfo`
  System:
    OS: Linux 5.4 Ubuntu 20.04.2 LTS (Focal Fossa)
  Binaries:
    Node: 14.15.1 - ~/.nvm/versions/node/v14.15.1/bin/node
    Yarn: 1.21.1 - /usr/bin/yarn
    npm: 6.14.8 - ~/.nvm/versions/node/v14.15.1/bin/npm
  Browsers:
    Chrome: 88.0.4324.150    - Chrome is used
    Firefox: 85.0.1
  npmPackages:
    @material-ui/core: ^4.11.2 => 4.11.2
    @material-ui/icons: ^4.11.2 => 4.11.2
    @material-ui/lab: ^4.0.0-alpha.57 => 4.0.0-alpha.57
    @material-ui/pickers: ^3.2.10 => 3.2.10
    @material-ui/styles:  4.11.2
    @material-ui/system:  4.11.2
    @material-ui/types:  5.1.0
    @material-ui/utils:  4.11.2
    @types/react:  16.9.19
    react: ^17.0.1 => 17.0.1
    react-dom: ^17.0.1 => 17.0.1

A simplified reproduction: https://codesandbox.io/s/awesome-forest-j9f4z?file=/package.json. See https://github.com/facebook/react/issues/16342


[ko] Create docs/concepts/extend-kubernetes/_index.md

FROM https://github.com/kubernetes/website/edit/master/content/en/docs/concepts/extend-kubernetes/_index.md
LANG en → ko

@jmnote Thank you but it is duplicated with #19168

aha dup!


Question: recording 30fps vs 60fps?

I’ve looked through all the issues to see if someone already asked but could not find it.  Or are there any drawbacks to the accuracy of the analysis? Example: game capture at 60 fps with game locked at 30 fps. You get the occasional 31-32-33 fps count. Which I expect (no pixel-diff used)  as it an estimated fps count. If 30 fps is an hard lock on the game I wouldn’t want to show passing above 30 fps on the graph.
Recording with 30 fps would fix the “do not go above 30fps line on the graph”. On the other side of the story I don’t know how the software handles it if you’re outputting 60fps from source and recording at 30 fps and analyzing this recording. Maybe someone could elaborate on this? I know delta rendering and pixel diff can be used in this case but sometimes without the option used it is already in the range of lets say 28-32 fps. If I enable delta rendering and pixel-diff, am I not potentially missing out on frames on the lower count?
For making the graphs look better if recording at 30fps is NOT preferable maybe an option to “stop” counting at 30 for the graph would be an idea? Is the game locked at 30? Yes. Graph will not pass the 30 fps count.
Just trying to get the best possible and feasible results with trdrop and make the look more consistent. And understand how to better use the software.
Thanks.

It's a bad idea. The main reason to use 60 fps is 60Hz monitor. It's how your videcard or console puts frames in this 60Hz queue. Not always they put only in even or odd frames.

Ok I think I understand, so if they come in “the wrong” order I might be missing frames resulting in possible lower frame rate and at the same time making the analysis even more inaccurate? In that case the “topping off” at 30fps wouldn’t make sense neither.
Appreciate the reply.

Maybe a small note from my side here - I have a few assumptions that I follow when developing, and you have the hard job of interpreting the results based on those:

I do not trust any game rendering setting, nor any game that says it's "locked" to 30/60/magic number of framerate.
The only thing I can actually work with are the frames that are supplied. The other parameter in this setup is the recording time, or in other words, the actual recording framerate, on which I base the "real, elapsed time" on.
Barring major implementation bugs, I trust the framerate trdrop detects more compared to anything other extremely complicated, closed-source monolithic programs spit out (in this case games, game engines, renderers, etc.)
There are always insights generated through delta-rendering and pixel-difference from which you can infer why the framerate is the way it is. The only thing which is slightly more complicated is the tear-calculations, but I also explained how those work in other issues. I really have to create a bit more documentation about the algorithms...

I just thought about maybe coining a new term for the FPS I'm calculating, as it's not the actual Framerate per second, but a "detectable" FPS, or d-FPS.
This would maybe make a few people mad, but also open up the possibility of speaking about these issues, as games/renderers sell you a certain framerate, but can't actually deliver it consistently (at least visibly)
To come back to your original question, I'd never allow locking the graphs to a fixed range without showing overcapping, as this is not truthful. If you obviously record with a maximum of 30 FPS, then you will never get a higher framerate. But if the original game was not hitting the perfect 30 Hz refresh rate, you will have overlaps, due to the recording software not lining up with the refresh rate of the game software/console GPU. This, in turn, would lead to even less (d-)FPS, compared to your current range 28-32.
The issue you're describing with not-perfectly aligned frames should be seen in frame-time, first and foremost. Imagine a number is being a unique frame and we have a total time of 1s:

0 -> 0 -> 1 -> 1: this is 2 FPS with a frame-time of 0.5s for each frame
0 -> 0 -> 0 -> 1: this is 2 FPS with a frame-time of 0.75s for frame 0 and 0.25s for frame 1

As I'm thinking about it, I feel the (Nyquist Theorem)[https://en.wikipedia.org/wiki/Nyquist–Shannon_sampling_theorem] might even apply in this very scenario. To detect consistent 30 FPS, you'd need a recording of 60 FPS.

Appreciate how you take the time to make sure every single question is answered to your best knowledge. I truly do.
So in my mind d-FPS sounds good, not sure why people would get mad over that. It is an amazing piece of software which can be used without any payment and many are using to commercialise it on Youtube. On the other hand, people are people. I think this would even be helpful for new users who are looking at like I did at the beginning. "Why does it pass 30 fps?" Also I think there will always be scenes where even with pixel-difference more than 30 fps will be detected, going higher on pixel-diff will make the FPS go down to a too low (d-)FPS and going lower will give a too high result in (d-)FPS. Most of the times it will handle it, but those (edge) cases exist I guess. Maybe someday it could be automated with like a double pass analysis where the user has to provide the expected FPS. Algorithm could try to have a variable pixel-diff on first run. Of course it would need to be a video of which is visible not dropping frames and so, probably still difficult to judge. Don't know if would be even possible, just thinking (out loud)!
So from the hours I've spend trying to figure out the pixel-difference settings and how to work them. I might have a suggestion, probably won't fit in your time schedule but; Why not have the community provide you/the community with data? Pixel-difference data. Users can contribute by uploading a CVS and matching it to a game. Just have it exported by default maybe. So you'll know with this pixel-difference highest FPS was XX and lowest was XX for this game. Other users can benefit from not "trial-and-error" on the pixel-difference setting for games running at around 30 fps and those smudgy effects you mentioned. Just a simple portal with a db to your likings. Large data set could come in handy IF someday you decide to commercialise it and make it more "user-friendly". Ow you're trying to analyse this game? This settings seems to work best with most users, autofill pix-diff. I know you already wrote you're not planning on it but Youtube is literately FULL of trdrop-videos, so huge potential if you ask me. Maybe it could bring insights (patterns) you could take in consideration for future updates, again just thinking out load.
Also another suggestion, I saw it on a different issue/question; you should really consider a donate button or patreon. Like I said, many are commercialising and earning from it and would probably be more than happy to contribute to such a great piece of software.
 :)


api: prevent bucket creation on publish

Signed-off-by: Jiri Kuncar<EMAIL_ADDRESS>

Coverage remained the same at 94.828% when pulling 38901b06bd40f8c0133f4cbcba3cca2ee638e3ae on jirikuncar:no-bucket-on-publish into c7fc55ac86dc979140a68fd347fecb7fc4805c9b on inveniosoftware:master.

Coverage increased (+0.2%) to 95.066% when pulling d984790b39e80fc43c649eb7aa09039cfb9bf0a6 on jirikuncar:no-bucket-on-publish into c7fc55ac86dc979140a68fd347fecb7fc4805c9b on inveniosoftware:master.


HTTPUpgrade is not working

In common.connection.HTTPConnection.get_response (), there is no creating new request.
I think it should be added 3 or 4 lines:
def request(self, method, url, body=None, headers=None):

    +self._last_requested_args = (method, url, body, headers)
    ...

def get_response (self):

  ...
  self._conn._connect_upgrade(e.sock)

  +stream_id = self._conn.request (*self._last_requested_args)
  +return self._conn.get_response (stream_id)

We shouldn't need to create a new request: the _connect_upgrade should be sufficient. What problem are you bumping into exactly? Can you provide a traceback, please?

I misunderstood.
Very helpful for me, thanks.


Test Flutter Desktop on Big Sur

macOS 11 (Big Sur) comes out on November 12th. We should test it and ensure there are no major issues.
cc @cbracken @stuartmorgan

cc @csells

Is there a list of known issues with Flutter and Big Sur?

We don't yet have a list of issues for Flutter on Big Sur. I will be working on that when I get a Big Sur development machine, likely in a couple of weeks.

I haven't seen any issues from the community, and I personally haven't hit any on my own test Big Sur machine.  If you see issues, please file them.

I would argue this meta question issue should be closed, and individual issues addressed as reported.  And if there are enough issues to warrant it, create a meta issue like https://github.com/flutter/flutter/issues/61047 or https://github.com/flutter/flutter/issues/36290.

Actually, found one: https://github.com/flutter/flutter/issues/64961

I would argue this meta question issue should be closed

This isn't a meta question issue, this is tracking the work item of someone working on desktop doing a sanity check of desktop on Big Sur. The fact that there were (off-topic) meta questions asked here doesn't change the original goal of this issue.

🤷♀  @gw280 reached out and asked me.

Yep sorry for the confusion. I knew that @jmagman had been doing some work on Big Sur and Apple Silicon, so wanted to check if there were any resources from that effort that already existed. This issue was filed by me to do an initial test/bringup of Flutter Desktop on Big Sur to see what is/isn't broken and triage them accordingly.
Let's keep this thread on that topic from now on.

After updating to Big Sur, I get his when I try to run any flutter command:
Building flutter tool...
Unhandled exception:
Bad state: Future already completed
#0      _AsyncCompleter.complete (dart:async/future_impl.dart:43:31)
#1      _NativeSocket.startConnect.<anonymous closure>.connectNext.<anonymous closure> (dart:io-patch/socket_patch.dart:678:23)
#2      _NativeSocket.issueWriteEvent.issue (dart:io-patch/socket_patch.dart:1043:14)
#3      _NativeSocket.issueWriteEvent (dart:io-patch/socket_patch.dart:1050:12)
#4      _NativeSocket.multiplex (dart:io-patch/socket_patch.dart:1071:11)
#5      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)

Closing at this point -- Big Sur is out and lots of people are now using it as their primary desktop OS for desktop development.


Warning in service wiring because of missing "Twig_Environment"

I use Symfony Framerowk but no Twig, so I get this warning:
Warning: Class "Twig_Environment" not found in .../vendor/wouterj/eloquent-bundle/src/Twig/SqlFormatterExtension.php on line 18

The above-mentioned SqlFormatterExtension should be wired only if there is a presence of Twig being detected first.
No need for this in applications that don't have HTML rendering.\

Using the latest version 2.2.1

Hi! Can you share in which scenario you get this warning? The service should not be used when there is no WebProfilerBundle (and this bundle requires Twig to be installed), and unused services don't produce warnings IIRC.
As a test, I just did this and got no warning:
symfony new reproducer
cd reproducer/
composer require wouterj/eloquent-bundle
bin/console lint:container

@wouterj the lint:container doesn't show anything unusual, but when you run bin/console debug:container --no-debug --format=json you get the fatal error.


Can't install with pip

Error message:
ERROR: Could not find a version that satisfies the requirement brem
ERROR: No matching distribution found for brem

Closed by https://github.com/paskino/brem/pull/31


Installation not working

So I uploaded all the files in the ZIP to /var/www/html/ in my Debian 8 VPS but when I try to access the web page it just comes up blank. I have php5, apache2, MySQL, and phpmyadmin installed. What did I do wrong?

Check /var/log/apache2/error.log for details on what's not working. Also MySQL and PHPMyAdmin are not currently required for MCHostPanel, it stores user data in JSON files.
Most likely you'll have permissions issues on the /var/www/html/ folder contents, you should be able to work around that by running sudo chown -R www-data: /var/www/html.


HTML

HTML
User Story
As a boot camp student,
I want a Prework Study Guide website,
so that I can review all the information I learned throughout Prework.
Acceptance Criteria
GIVEN a Prework Study Guide website
WHEN I visit the website in my browser
THEN I see four boxes titled HTML, CSS, Git, and JavaScript with associated notes listed

CSS
User Story
As a boot camp student,
I want the prework notes to be structured on a webpage,
so that I can easily find and read the information.
Acceptance Criteria
GIVEN a Prework Study Guide website
WHEN I visit the website in my browser
THEN I see four boxes titled HTML, CSS, Git, and JavaScript with associated notes listed
WHEN I view the study guide
THEN I see a dark blue header and footer, and four boxes with a shadow
WHEN I open the console in my browser
THEN I can see the four topics I learned listed along with a suggestion on what I should study first
WHEN I visit the website using the URL
THEN I can access my website from any browser

JavaScript
User Story
As a boot camp student,
I want the prework notes to be structured on a webpage,
so that I can easily find and read the information.
Acceptance Criteria
GIVEN a Prework Study Guide website
WHEN I visit the website in my browser
THEN I see four boxes titled HTML, CSS, Git, and JavaScript with associated notes listed
WHEN I view the study guide
THEN I see a dark blue header and footer, and four boxes with a shadow
WHEN I open the console in my browser
THEN I can see the four topics I learned listed along with a suggestion on what I should study first
WHEN I visit the website using the URL
THEN I can access my website from any browser

README
User Story
As a boot camp student,
I want the prework notes to be structured on a webpage,
So that I can easily find and read the information.
Acceptance Criteria
GIVEN the prework project repository,
WHEN I view the README for the repository,
THEN I can see a professional README that provides information on the project and how to use it


feat: add auto-detection of unavailable master in replicated mode

In replicated mode, the ConnectionManager is checking periodically which node is the current master and does auto failover.
However, in a situation where none of the previous configured addresses points to a master of the cluster, Redisson silently keeps working without logging an error. This situation may happen for example in case of an horizontal scale up of the cluster not followed by a configuration change of the addresses. This may go undetected for a while, as the client can still read from Redis, only writes are impacted.
The proposal consist of:

add new master detection check inside scheduleMasterChangeCheck, gathering the roles of each node (which was already checked in existing code), and at least log an error when the master is not found.
add a new fail-fast configuration masterUnreachableTimeout, which will cause the client to throw a RedissonConnectionException if the master is unavailable for more than the configured amount of time. The default behaviour maintains retro-compatibility, so it doesn't throw.

Thanks for proposed changes. Master node availability is checked at ReplicatedConnectionManager:98

Thanks for proposed changes. Master node availability is checked at ReplicatedConnectionManager:98

This only checks the availability at creation, not afterwards

In this case you need to update Redisson configuration and restart application. New nodes can't be detected otherwise in replicated mode.

Sure, but I have some use cases where it is useful to have at least an error logged so that this kind of situations are promptly detected

@mrniko
I rebased the changes on top of the new master. I would like to know whether you could accept the new feature, if you want to change anything, and if the code is not satisfying I'm open to rework on it following your suggestions.
This would be desirable because normally with AWS reader and primary endpoint you do not need to worry about the actual number of replicas, however in replicated mode it is not possible to use those endpoints, which makes this last way of configuring the client unreliable, with problems that may go undetected for a long period of time (especially for long TTL entries) as the client is still capable of reading from Redis.
In case you have different services with clients configured in different ways for the same redis cluster, it might become hard and error prone to keep everything updated and such logging would be of great help.

+1

What is the difference between logging error and throwing exception? I think only error message can be retained

What is the difference between logging error and throwing exception? I think only error message can be retained

Ok I'll remove throwing the exception

@mrniko I did update the PR accordingly, let me know if there is something else you would like to change :)

Thanks for contribution!


host: Mount volumes when restoring from statedb

This changeset implements volume mounting when restoring the volume state db.
Previously it was assumed that some external process will ensure volumes would be mounted before they would be used by flynn-host. This behaviour turns out to be somewhat fragile and also non-portable as only Ubuntu ships with the modified version mountall designed to automount ZFS volumes.

LGTM


Update Issue - 98623203

default description
URL tested: http://ci.bsstag.com/welcome
Open URL on Browserstack

Property
Value

Browser
Chrome 38.0

Operating System
Windows XP

Resolution
1024x612

Screenshot Attached
Screenshot URL

Click here to reproduce the issue on Browserstack

Updated Screenshot Attached


Update filter, splitting, pinning feature

Update filter, splitting, pinning feature

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

Hi @rakeshrana44 - This pull request was opened in the public repo. Because you are making substantive changes to an article and submitting new images, the updates in the PR should be submitted in the private repository. We'll close this PR.
If you need information about working in the private repo, let me know and I'll send it to you in email. You generally aren't required to work in the private repo (instead of in the public repo), but certain kinds of updates need to pass the quality validations that are available in the private repo. Thanks!


TypeError: Cannot read property '0' of undefined

I just installed this yesterday. I worked fine. But, when I got up this morning I get the following error message:
TypeError: Cannot read property '0' of undefined
    at Server._createAccessory (/usr/local/lib/node_modules/homebridge/lib/server.js:390:17)
    at Server._loadAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:276:26)
    at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:86:38)
    at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
/usr/local/lib/node_modules/homebridge/lib/server.js:390
  if (!(services[0] instanceof Service)) {
                       ^

Here's my configuration file:
{
    "bridge": {
        "name": "Koratbridge",
        "username": "CC:22:3D:E3:CE:30",
        "port": 51826,
        "pin": "031-45-154"
    },

    "description": "Homebridge config file",

    "accessories": [
        {
            "accessory": "Http",
			"name": "Water Pump",
			"switchHandling": "realtime",
			"http_method": "GET",
			"on_url":      "http://<IP_ADDRESS>/cgi-bin/relaynew.cgi?on",
			"off_url":     "http://<IP_ADDRESS>/cgi-bin/relaynew.cgi?off",
			"status_url":  "http://<IP_ADDRESS>/cgi-bin/relaynew.cgi?state",
			"service": "Pump",
			"brightnessHandling": "no",
			"sendimmediately": "",
			"username" : "",
			"password" : ""
	  }
    ]
}

I should note that the device and cgi urls are working fine:
MrMuscle:.homebridge mnewman$ curl http://<IP_ADDRESS>/cgi-bin/relaynew.cgi?state
0
MrMuscle:.homebridge mnewman$ curl http://<IP_ADDRESS>/cgi-bin/relaynew.cgi?on
OK
MrMuscle:.homebridge mnewman$ curl http://<IP_ADDRESS>/cgi-bin/relaynew.cgi?state
1
MrMuscle:.homebridge mnewman$ curl http://<IP_ADDRESS>/cgi-bin/relaynew.cgi?off
OK
MrMuscle:.homebridge mnewman$ curl http://<IP_ADDRESS>/cgi-bin/relaynew.cgi?state
0

I solved this by changing:
"service": "Pump",
to:
"service": "Light",
I also tried
"service": "Outlet",
But that didn't work.


Update Dockerfile to upgrade search

See PR 281 https://github.com/kbase/KBaseSearchEngine/pull/281


I have delivered ikev2-vpn.mobileconfig to my iPhone, then what should I do?

When I do with ikev2-vpn.mobileconfig ,it said no appliation to open it.
Is your iOS8 devices means Mac?

How did you deliver the mobileconfig to your iPhone? please note that AirDrop is not supported.
I would suggest you to send mobileconfig file as an E-mail attachment to your iPhone, then by tapping the E-mail attachment, iOS will bring up the VPN setup screen.

through qq, I will try email attachment later
Mengdi Gao<EMAIL_ADDRESS>3:12 PM写道：

How did you deliver the mobileconfig to your iPhone? please note that
AirDrop is not supported.
I would suggest you to send mobileconfig file as an E-mail attachment to
your iPhone, then by tapping the E-mail attachment, iOS will bring up the
VPN setup screen.
—
Reply to this email directly or view it on GitHub
https://github.com/gaomd/docker-ikev2-vpn-server/issues/3#issuecomment-150898157
.

It's an known documentation issue, iOS 9 prompt for username & password, it's fine to simply skip these steps, we use shared secret (which was already provided inside the .mobileconfig file) instead of username / password combination.
If your are still unable to connect, chances are there were something broken on your server side. In that case, try docker logs -f ikev2-vpn-server on the server side for debug information.

【/usr/lib/ipsec/charon: error while loading shared libraries: libstrongswan.so.0: cannot open shared object file: Permission denied
charon has died -- restart scheduled (5sec)
charon refused to be started
】
I will try to solve it

I cannot reproduce your error messages, if you need further help, feel free to open an new issue focused on the error messages.
And I'v fixed various issues in version 0.2.1:

the Enter Username / Password screen now won't appear in iOS 9 anymore;
a better documentation for iOS 9 & OS X 10.11.

Well, I have encountered the exactly same situation with @frankmeten  and I find a proper solution.
tldr; execute the command below:
mv /etc/apparmor.d/usr.lib.ipsec.charon /etc/apparmor.d/disable
mv /etc/apparmor.d/usr.lib.ipsec.stroke /etc/apparmor.d/disable

The reason why charon got denied access to libstrongswan.so.0 is that the AppArmor in the host system denied the access to libstrongswan.so.0. Apparently the libstrongswan.so.0 is actually the file with the same name in the guest system, but because AppArmor is a kernel module and docker didn't replace the kernel. The AppArmor mistakenly think that the libstrongswan.so.0 is the host system libstrongswan.so.0. That's why it got denied.
The solution above should solve this problem. However, it may weaken the host system. I'm not very familiar with docker. I hope someone can find a better approach to solve this problem (Possibly making AppArmor to distinguish host system and guest system properly).

Thanks, @valkjsaaa. That's the hint I needed. Moving those files didn't help, but uninstalling Apparmor did the trick.
Is this a Docker bug? I don't think the host (in my case Ubuntu 16.04) should be telling containers which files who can access inside the container. It's like a race to the bottom with these platforms: coming up with security measures that break things in incomprehensible ways.


fix incomplete support for relative paths

This PR adds support to relative paths in work_dir and refactors the logic of writing run.param|toml to use relative paths.
Before they'd be written as:
run.param
# before
PDB_FILE1=WORK_DIR/ROOT_NAME/data/filename.pdb

# now
PDB_FILE1=../data/filename.pdb

run.toml
# before
molecules = [
    "WORK_DIR/ROOT_NAME/data/filename.pdb"
]

# now
molecules = [
    "../data/filename.pdb"
]

This should also avoid us going over the maximum number of characters in a string supported by CNS
For simplicity sake of the code, the executable now MUST be a absolute path, this might be problematic when running in clusters with stripe/scratch partitions and such, but let's fix that when we encounter it.

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

Coverage data is based on head (1427f3d) compared to base (12eec11).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #37   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            6         6
  Lines          816       822    +6
=========================================
+ Hits           816       822    +6

Impacted Files
Coverage Δ

dataset/dataset.go
100.00% <100.00%> (ø)

input/input.go
100.00% <100.00%> (ø)

runner/jobs.go
100.00% <100.00%> (ø)

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

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


2 inconsistencies in docs for Universal example

Should the bulleted list have a point for Universal following Async and preceding Real World? in https://github.com/rackt/redux#examples

Second part of npm command refers to script which does not exist and is not needed? in http://rackt.github.io/redux/docs/introduction/Examples.html#universal

npm start & npm run client

but the scripts object in package.json for the Universal example has only start but not client (and not sure what that would mean) so should this line be just like the other examples?
npm start

Both are right. PR is welcome.


Active text editor does not provide symbol information

with screen reader mode enabled, focus a text editor, cmd+shift+o, see quickpick that does not provide symbols. confusing because the correct command is being executed. probably introduced with https://github.com/microsoft/vscode/pull/177110

does not repro in oss


Consistent use for blocks given to client method calls

Client method signatures were redesigned in #82, but the block argument remains unchanged and is inconsistent across method types.
For example, if a block is given to a normal unary request it is passed on to the underlying API callable and exposes the raw gRPC operation to the caller. For an LRO operation, the block is instead used for the LRO's on_done instead, and it is ignored for server methods. Should this be made consistent across method types?

I am always :+1: for added consistency. 😁 If the LRO block worked like the normal blocks, I think users could still be able to configure the on_done callback. They would just have to add it to the object passes to the method's block instead.
I don't know how to support the block for streaming methods however.

I'd be +1 for make the LRO and normal methods consistent. I forget how it works for paged methods though so we need to think through that case too. The intent for the block was to give the caller a way to access the gRPC operation, so I think it should work the same but it would have to be repeated.
I'm not sure about streaming methods either. One idea would be to use a block to allow the caller to pass through to the raw gRPC interface for streaming and bypass the helpers that we plan to build on streaming methods. For the common case, without the block, they would use the helpers.

I can definitely see adding the options to pass a block to server and bidi methods instead of returning an enumerable. It would add support using blocks with server/bidi methods, but it wouldn't be consistent with how those blocks are used with unary/lro/client methods.

Some of these changes are made in #94.

#108 makes the LRO block usage consistent and adds blocks for server and bidi streaming methods. All methods now use blocks.

As of #143 all method blocks are consistent.


Sending a json request to "show"?

How can I send a a) json request b) to "show" which expects an id? I've tried this:
resource "MyRes" do
  let(:item) { create(:item) }
  get "/trips", params: {id: 1, format: :json} do

    parameter :id, ""
    response_field :name, ""

    example_request "Get an item" do
      # ...........

But it returns html, although in "show" I have respond_to with json to and the route "items/1.json" works well.

I think you're mixing up general controller tests with the DSL this gem uses. For html vs json, you either need to specify the .json in the url get uses or set the accept header. I would recommend the Accept header as it's more web standard. The :id also needs to be in the route that get accepts. Here is your example as I would expect it:
resource "Trips" do
  header "Accept", "application/json"

  let(:trip) { create(:trip) }

  get "/trips/:id" do
    response_field :name, ""

    let(:id) { trip.id }

    example_request "Get a trip" do
      expect(status).to eq(200)
    end
  end
end

Ok, but still:
   undefined method `create' for #<RSpec::ExampleGroups::Trips::GETTripsId:0x00005636101c8df0>

The factory "trip" exists.
FactoryGirl.define do
  factory :trip do
    name { Faker::Name.name }
  end
end

up


[FLINK-3772] [gelly] Graph algorithms for vertex and edge degree

Graph algorithms for annotating

vertex degree for undirected graphs
vertex out-, in-, and out- and in-degree for directed graphs
edge source, target, and source and target degree for undirected graphs

@greghogan, after your last commit, there are several gelly test cases failing on travis. Could you please take a look? Thanks!

@vasia I had looked at one of the failed tests and it wasn't due to bad logic but rather to running out of some minimal number of memory buffers. This results, I expect, from updating the Graph API's degree functions to translate the output of the degree algorithms. I think it is best to leave the Graph API as-is for now.

I've only left a minor comment @greghogan, otherwise I think it's good to merge.

Merging ...

Closed in 70181b28cf17e25b4b70f21f718ada2537cde2b6


"Gura Gârluței"is listed in the drop-down menu

Description:
"Gura Gârluței" is listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "Gura Gârluței" in the search bar.

Expected results
The location is listed in the drop-down menu as "Gura Gârluței, Brăila (Berteștii de Jos)".


Enable pretest linting for checklist

Ensures that all PRs pass lint checks during testing/CI

Friendly ping @alanorozco :upside_down_face:

@alanorozco Can you take a look at this please

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


Language support in kivy

Hello, everyone here! I am a kivy beginner in China. Kivy is wonderful in many aspects but it still seems to be incomplete in language support and internationalization. By default, it can't display characters in other language, unless one of a font file which support this language is set in kivy and python file. And the support for input these characters by an input method. For displaying text in a non-English language, is it possible to provide a gettext-like translator for kivy and render fonts with system default font which can display text in a local language? For inputing text in other language, I am trying to work out based on some solutions for inputing text in SDL and do you have some good solutions?
Another small question is kivy seems to base on pygame.Though pygame is a mature framework, it seems to be inactive for a long time (last update is in 2009), Is it possible that kivy developers modify pygame themselves or replace it with other library in the future?
Thank you for your attention.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/24026016-language-support-in-kivy?utm_campaign=plugin&utm_content=tracker%2F42681&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F42681&utm_medium=issues&utm_source=github).

For displaying text in a non-English language, is it possible to provide a gettext-like translator for kivy and render fonts with system default font which can display text in a local language?

You can use normal python gettext methods for this, though it's not something I know about, other pepole may be able to help better. Not sure about system default fonts either, but again other people know more about this part of kivy.

Another small question is kivy seems to base on pygame.Though pygame is a mature framework, it seems to be inactive for a long time (last update is in 2009), Is it possible that kivy developers modify pygame themselves or replace it with other library in the future?

We used pygame as a default window (and other stuff) provider, but kivy never depended on it, and we recently deprecated its use as a backend. As of kivy 1.9, Kivy uses SDL2 for most things instead.
I'll note that pygame actually is still developed though - for some reason they haven't made a release for years, but their master branch is still active.
I'm closing this as it's not a technical issue and we don't really use these channels for user support. If you want to raise a specific technical bug then feel free (e.g. a feature request or pull request for an internationalised input method), or if you want to continue discussing more generally I suggest posting on the kivy-users mailing list.

H @ailisp!
I based my Cookiecutter template on the following approach and it seems to work just fine. https://github.com/jtownley/kivy-gettext-example It uses GNU gettext and it enables you to change the language during runtime.
Raphael

@hackebrot, thanks for the link. :kissing:


io: optimize WriteString with a pool of buffer

The current implementation of io.WriteString allocates a []byte if the writer doesn't implement StringWriter.
I think we can avoid this memory allocation by using a pool of buffer.
I wrote a proof of concept:
package writestring

import (
	"bytes"
	"io"
	"sync"
)

func WriteString(w io.Writer, s string) (n int, err error) {
	if sw, ok := w.(stringWriter); ok {
		return sw.WriteString(s)
	}
	if len(s) > maxBufSize {
		return w.Write([]byte(s))
	}
	buf := getBuf()
	_, _ = buf.WriteString(s)
	n, err = w.Write(buf.Bytes())
	putBuf(buf)
	return n, err
}

type stringWriter interface {
	WriteString(s string) (n int, err error)
}

const maxBufSize = 1 << 16

var bufPool = &sync.Pool{
	New: func() interface{} {
		return new(bytes.Buffer)
	},
}

func getBuf() *bytes.Buffer {
	buf := bufPool.Get().(*bytes.Buffer)
	buf.Reset()
	return buf
}

func putBuf(buf *bytes.Buffer) {
	if buf.Cap() <= maxBufSize {
		bufPool.Put(buf)
	}
}

A benchmark:
package writestring

import (
	"io"
	"strconv"
	"strings"
	"testing"
)

var nw io.Writer = new(nopWriter)

func BenchmarkWriteString(b *testing.B) {
	for p := 0; p <= 20; p++ {
		size := 1 << uint(p)
		s := strings.Repeat("a", size)
		b.Run(strconv.FormatInt(int64(size), 10), func(b *testing.B) {
			b.Run("Old", func(b *testing.B) {
				for i := 0; i < b.N; i++ {
					_, _ = io.WriteString(nw, s)
				}
			})
			b.Run("New", func(b *testing.B) {
				for i := 0; i < b.N; i++ {
					_, _ = WriteString(nw, s)
				}
			})
		})
	}
}

type nopWriter struct{}

func (w *nopWriter) Write(b []byte) (n int, err error) {
	return len(b), nil
}

The benchmark result:
➜  writestring go test -bench=. -benchmem
goos: linux
goarch: amd64
pkg: _test/writestring
BenchmarkWriteString/1/Old-12         	50000000	        31.1 ns/op	       8 B/op	       1 allocs/op
BenchmarkWriteString/1/New-12         	50000000	        33.5 ns/op	       0 B/op	       0 allocs/op
BenchmarkWriteString/2/Old-12         	50000000	        31.4 ns/op	       8 B/op	       1 allocs/op
BenchmarkWriteString/2/New-12         	50000000	        34.7 ns/op	       0 B/op	       0 allocs/op
BenchmarkWriteString/4/Old-12         	50000000	        30.1 ns/op	       8 B/op	       1 allocs/op
BenchmarkWriteString/4/New-12         	50000000	        36.0 ns/op	       0 B/op	       0 allocs/op
BenchmarkWriteString/8/Old-12         	50000000	        28.8 ns/op	       8 B/op	       1 allocs/op
BenchmarkWriteString/8/New-12         	50000000	        32.9 ns/op	       0 B/op	       0 allocs/op
BenchmarkWriteString/16/Old-12        	50000000	        49.7 ns/op	      16 B/op	       1 allocs/op
BenchmarkWriteString/16/New-12        	50000000	        33.4 ns/op	       0 B/op	       0 allocs/op
BenchmarkWriteString/32/Old-12        	50000000	        70.6 ns/op	      32 B/op	       1 allocs/op
BenchmarkWriteString/32/New-12        	30000000	        33.5 ns/op	       0 B/op	       0 allocs/op
BenchmarkWriteString/64/Old-12        	30000000	       110 ns/op	      64 B/op	       1 allocs/op
BenchmarkWriteString/64/New-12        	50000000	        34.3 ns/op	       0 B/op	       0 allocs/op
BenchmarkWriteString/128/Old-12       	30000000	       144 ns/op	     128 B/op	       1 allocs/op
BenchmarkWriteString/128/New-12       	50000000	        36.2 ns/op	       0 B/op	       0 allocs/op
BenchmarkWriteString/256/Old-12       	20000000	       198 ns/op	     256 B/op	       1 allocs/op
BenchmarkWriteString/256/New-12       	50000000	        39.3 ns/op	       0 B/op	       0 allocs/op
BenchmarkWriteString/512/Old-12       	10000000	       291 ns/op	     512 B/op	       1 allocs/op
BenchmarkWriteString/512/New-12       	30000000	        42.0 ns/op	       0 B/op	       0 allocs/op
BenchmarkWriteString/1024/Old-12      	 5000000	       490 ns/op	    1024 B/op	       1 allocs/op
BenchmarkWriteString/1024/New-12      	30000000	        45.6 ns/op	       0 B/op	       0 allocs/op
BenchmarkWriteString/2048/Old-12      	 3000000	       500 ns/op	    2048 B/op	       1 allocs/op
BenchmarkWriteString/2048/New-12      	20000000	        52.3 ns/op	       0 B/op	       0 allocs/op
BenchmarkWriteString/4096/Old-12      	 2000000	      1091 ns/op	    4096 B/op	       1 allocs/op
BenchmarkWriteString/4096/New-12      	20000000	        68.3 ns/op	       0 B/op	       0 allocs/op
BenchmarkWriteString/8192/Old-12      	 1000000	      1709 ns/op	    8192 B/op	       1 allocs/op
BenchmarkWriteString/8192/New-12      	20000000	       103 ns/op	       0 B/op	       0 allocs/op
BenchmarkWriteString/16384/Old-12     	 1000000	      3446 ns/op	   16384 B/op	       1 allocs/op
BenchmarkWriteString/16384/New-12     	 5000000	       328 ns/op	       0 B/op	       0 allocs/op
BenchmarkWriteString/32768/Old-12     	  500000	      3281 ns/op	   32768 B/op	       1 allocs/op
BenchmarkWriteString/32768/New-12     	 2000000	       653 ns/op	       0 B/op	       0 allocs/op
BenchmarkWriteString/65536/Old-12     	  300000	      5022 ns/op	   65536 B/op	       1 allocs/op
BenchmarkWriteString/65536/New-12     	 1000000	      1566 ns/op	       0 B/op	       0 allocs/op
BenchmarkWriteString/131072/Old-12    	  100000	     25294 ns/op	  131072 B/op	       1 allocs/op
BenchmarkWriteString/131072/New-12    	   50000	     25332 ns/op	  131072 B/op	       1 allocs/op
BenchmarkWriteString/262144/Old-12    	   30000	     50864 ns/op	  262144 B/op	       1 allocs/op
BenchmarkWriteString/262144/New-12    	   30000	     50697 ns/op	  262144 B/op	       1 allocs/op
BenchmarkWriteString/524288/Old-12    	   10000	    103603 ns/op	  524288 B/op	       1 allocs/op
BenchmarkWriteString/524288/New-12    	   10000	    104370 ns/op	  524288 B/op	       1 allocs/op
BenchmarkWriteString/1048576/Old-12   	   10000	    205753 ns/op	 1048576 B/op	       1 allocs/op
BenchmarkWriteString/1048576/New-12   	   10000	    206086 ns/op	 1048576 B/op	       1 allocs/op
PASS
ok  	_test/writestring	92.576s

I know we can't import bytes in io.
A real implementation would require to copy a private implementation of bytes.Buffer to io.

Your new implementation degrades performance for small string sizes. And we must be careful not to use sync.Pool everywhere as it is very workload dependent. Maybe this can live as a separate library which has workloads suitable for a sync.Pool ?
/cc @ianlancetaylor @bradfitz for decision.
FYI - you can use benchstat to compare benchmarks.

Your new implementation degrades performance for small string sizes.

Yes, slightly.
Maybe I can add a check:
	if len(s) < threshold || len(s) > maxBufSize {
		return w.Write([]byte(s))
	}

According to my benchmark, the threshold could be 16.

Seems like this is taking code that the compiler could potentially optimize and turning it into code that the compiler can't optimize.
I also think that this should be postponed until after some decision is made on generics, as that may affect this part of the standard library.


torch.cuda.is_available() should be True but is False. xformers' memory efficient attention is only available for GPU

Getting this error since yesterdays update. Tried running on kaggle, colab, saturncloud.every where same error
(T4-XLarge - 4 cores - 16 GB RAM - 1 GPU - 40Gi Disk) aslo tried on kaggles p100 gpu.
Working fine 3-4 days ago

INFO    Namespace(version=False, model='stabilityai/stable-diffusion-xl-base-1.0', revision=None, tokenizer=None, image_path='/home/jovyan/workspace/images/imgs/', class_image_path=None, prompt='hallow33n ', class_prompt=None, num_class_images=100, class_labels_conditioning=None, prior_preservation=None, prior_loss_weight=1.0, project_name='halloweenn', seed=42, resolution=1024, center_crop=None, train_text_encoder=True, batch_size=1, sample_batch_size=4, epochs=1, num_steps=1500, checkpointing_steps=100000, resume_from_checkpoint=None, gradient_accumulation=4, gradient_checkpointing=True, lr=0.0001, scale_lr=None, scheduler='constant', warmup_steps=0, num_cycles=1, lr_power=1.0, dataloader_num_workers=0, use_8bit_adam=True, adam_beta1=0.9, adam_beta2=0.999, adam_weight_decay=0.01, adam_epsilon=1e-08, max_grad_norm=1.0, allow_tf32=None, prior_generation_precision=None, local_rank=-1, xformers=True, pre_compute_text_embeddings=None, tokenizer_max_length=None, text_encoder_use_attention_mask=None, rank=4, xl=None, fp16=True, bf16=None, token='******************', repo_id='****/', push_to_hub=True, validation_prompt=None, num_validation_images=4, validation_epochs=50, checkpoints_total_limit=None, validation_images=None, logging=None, username=None, func=<function run_dreambooth_command_factory at 0x7f04278fbb80>)
INFO    Running DreamBooth Training
WARNING Parameters supplied but not used: version, func
You are using a model of type clip_text_model to instantiate a model of type . This is not supported for all configurations of models and can yield errors.
You are using a model of type clip_text_model to instantiate a model of type . This is not supported for all configurations of models and can yield errors.
{'dropout', 'attention_type'} was not found in config. Values will be initialized to default values.
{'clip_sample_range', 'thresholding', 'dynamic_thresholding_ratio', 'variance_type'} was not found in config. Values will be initialized to default values.
INFO    Enabling xformers
ERROR   train has failed due to an exception:
ERROR   Traceback (most recent call last):
File "/opt/saturncloud/envs/saturn/lib/python3.9/site-packages/autotrain_advanced-0.6.37.dev0-py3.9.egg/autotrain/utils.py", line 280, in wrapper
return func(*args, **kwargs)
File "/opt/saturncloud/envs/saturn/lib/python3.9/site-packages/autotrain_advanced-0.6.37.dev0-py3.9.egg/autotrain/trainers/dreambooth/main.py", line 110, in train
utils.enable_xformers(unet, config)
File "/opt/saturncloud/envs/saturn/lib/python3.9/site-packages/autotrain_advanced-0.6.37.dev0-py3.9.egg/autotrain/trainers/dreambooth/utils.py", line 315, in enable_xformers
unet.enable_xformers_memory_efficient_attention()
File "/opt/saturncloud/envs/saturn/lib/python3.9/site-packages/diffusers/models/modeling_utils.py", line 287, in enable_xformers_memory_efficient_attention
self.set_use_memory_efficient_attention_xformers(True, attention_op)
File "/opt/saturncloud/envs/saturn/lib/python3.9/site-packages/diffusers/models/modeling_utils.py", line 251, in set_use_memory_efficient_attention_xformers
fn_recursive_set_mem_eff(module)
File "/opt/saturncloud/envs/saturn/lib/python3.9/site-packages/diffusers/models/modeling_utils.py", line 247, in fn_recursive_set_mem_eff
fn_recursive_set_mem_eff(child)
File "/opt/saturncloud/envs/saturn/lib/python3.9/site-packages/diffusers/models/modeling_utils.py", line 247, in fn_recursive_set_mem_eff
fn_recursive_set_mem_eff(child)
File "/opt/saturncloud/envs/saturn/lib/python3.9/site-packages/diffusers/models/modeling_utils.py", line 247, in fn_recursive_set_mem_eff
fn_recursive_set_mem_eff(child)
File "/opt/saturncloud/envs/saturn/lib/python3.9/site-packages/diffusers/models/modeling_utils.py", line 244, in fn_recursive_set_mem_eff
module.set_use_memory_efficient_attention_xformers(valid, attention_op)
File "/opt/saturncloud/envs/saturn/lib/python3.9/site-packages/diffusers/models/modeling_utils.py", line 251, in set_use_memory_efficient_attention_xformers
fn_recursive_set_mem_eff(module)
File "/opt/saturncloud/envs/saturn/lib/python3.9/site-packages/diffusers/models/modeling_utils.py", line 247, in fn_recursive_set_mem_eff
fn_recursive_set_mem_eff(child)
File "/opt/saturncloud/envs/saturn/lib/python3.9/site-packages/diffusers/models/modeling_utils.py", line 247, in fn_recursive_set_mem_eff
fn_recursive_set_mem_eff(child)
File "/opt/saturncloud/envs/saturn/lib/python3.9/site-packages/diffusers/models/modeling_utils.py", line 244, in fn_recursive_set_mem_eff
module.set_use_memory_efficient_attention_xformers(valid, attention_op)
File "/opt/saturncloud/envs/saturn/lib/python3.9/site-packages/diffusers/models/attention_processor.py", line 203, in set_use_memory_efficient_attention_xformers
raise ValueError(
ValueError: torch.cuda.is_available() should be True but is False. xformers' memory efficient attention is only available for GPU

did you run autotrain setup command?

A quick edit the code works on colab but fails on both kaggle and saturn cloud.Can you please provide the fix.
Thankyou

then from the error it looks like the gpu is not available. you may try updating pytorch.

https://www.kaggle.com/code/jsram09/autotrain  this is the code i am running. Also update pytorch. still getting the same error.


Messaging update for the most part

Updating commands to use the messaging system.
A few areas of formatting also updated, but the focus is on messaging updates.
Hopefully, I didn't break the commands 😁

yay! thank you 🙇


Move storage of lifecycle into the DistributedActorContext, stored in identity

This is a dupe of https://github.com/apple/swift-distributed-actors/issues/926


How can I solve  highload of my wallet

Yes
On Sat, Nov 9, 2024, 10:44 PM AfeworkShalom09 @.***>
wrote:

—
Reply to this email directly, view it on GitHub
https://github.com/ton-blockchain/highload-wallet-contract-v3/issues/34,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BLRP3KVKTPEXFAVNB5XCBX3Z7YNUBAVCNFSM6AAAAABRPGCZJWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGY2DMMJXGU2DGOA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Providing MLSQL Query Proxy Application

In many cases, we will deploy multi MLSQL instances as load balance. this means we should know which one is idle(or  the one who have most free cores available) and then request that one. Also when the system is not busy, we may reduce the number of instances and vice versa.
The best way to implement this is to provide an MLSQL proxy,  and the instances will report related resources information to the proxy. MLSQL should support reporting to multi proxy instances.

Maybe a batter idea is put Query Proxy into the MLSQL client side.


Develop Branch: Face index error when no face detected and index error when retargeting beyond index 0

Hello,
I'm getting this error when setting up two LivePortraitCropper nodes, one index set to 0 the other to 1. Obviously its throwing an error when not detecting a second face. But would love some workaround to allow it to still work even if a face isn't detected. Maybe a button for skip if not detected. So that if you are going through many frames with many different scenes that the amount of characters changes often it doesn't stop every time the index loses track. Not sure if theres a way to do this currently with a condition statement that if no extra faces are detected then always return 0 or something so that it could continue. I've attached some screenshots of my setup trying to get two cropper nodes to work simultaneously with only one face being detect (but two faces are coming up later the frame count)
So the issue is as soon as eyes_retargetting and lips_retargetting are enabled, the index that is anything above 0 throws this error
Error occurred when executing LivePortraitCropper:
list index out of range
File "C:\Users\admin\pinokio\api\comfyui.git\app\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "C:\Users\admin\pinokio\api\comfyui.git\app\execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "C:\Users\admin\pinokio\api\comfyui.git\app\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "C:\Users\admin\pinokio\api\comfyui.git\app\custom_nodes\ComfyUI-LivePortraitKJ-develop\nodes.py", line 414, in process
driving_crop_dict = self.cropper.crop_single_image(driving_images_np[i], dsize, scale, vy_ratio, vx_ratio, face_index, rotate)
File "C:\Users\admin\pinokio\api\comfyui.git\app\custom_nodes\ComfyUI-LivePortraitKJ-develop\liveportrait\utils\cropper.py", line 59, in crop_single_image
src_face = src_face[face_index] # choose the index if multiple faces detected
and if the opt_driving_image isn't connected then this error:
Error occurred when executing LivePortraitCropper:
list index out of range
File "C:\Users\admin\pinokio\api\comfyui.git\app\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "C:\Users\admin\pinokio\api\comfyui.git\app\execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "C:\Users\admin\pinokio\api\comfyui.git\app\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "C:\Users\admin\pinokio\api\comfyui.git\app\custom_nodes\ComfyUI-LivePortraitKJ-develop\nodes.py", line 408, in process
crop_info = self.cropper.crop_single_image(source_image_np[i], dsize, scale, vy_ratio, vx_ratio, face_index, rotate)
File "C:\Users\admin\pinokio\api\comfyui.git\app\custom_nodes\ComfyUI-LivePortraitKJ-develop\liveportrait\utils\cropper.py", line 59, in crop_single_image
src_face = src_face[face_index] # choose the index if multiple faces detected
so as you can see from my test setup here with multiple faces the detection of multiple faces is working, but when it tries to retarget those faces the index suddenly breaks, or requires the separate opt_driving_image but that throws the error that the index is out of range.
I'm trying to change many faces in a single pass, but there seems to be conflict when having multiple cropper nodes if I had to guess. So as soon as any try to to retarget everything breaks. But the index with retargeting off works as you can see from the screenshots, but retargeting can only be done correctly with the index if only one cropper is in the scene. Hope thats not too confusing.
Thanks for the help!

Hello,
Yes, I also have a similar problem, I was gonna make the same thread, but saw this....

So, I am testing it on Video2Video lip swap, It's working as expected when faces of both source and reference videos are visible 100% of the duration.
Even if 1 single frame has a hand covering the face, or face is turned around, it gives an error.
Maybe we can skip these "no_face_detected" frames without throwing any error and continue with the process ? @kijai

If it's just one frame sure, skipping or just re-using previous one should work well enough. I'm not sure how to go about interpolating the keypoints, could be an option as well though.

I have some idea for this... I hope it helps
### For Face Detection:

What I observed during course of making face workflows, that the bbox face yolo models have the best detection success, say 95% detection rate even if the face is partially covered by some object, far or near,

The MediaPipe Face has , say 60-70 percent success rate, if faces are far away it fails,
But it has the option to segment elements of faces like eyes, mouth...etc

So, What I did is that combined the face detection of 1, cropped the faces by it's detection mask, so we have close up of faces, then apply the mediapipe face 2,  and segment the lips and eyes of the faces.
By combining 1 and 2, the overall success rate of the face detection and applying increased to about 80-90 percent.
Example: https://www.reddit.com/r/StableDiffusion/comments/1b355tu/make_better_dialogues_with_this_new_lip_sync/
### Applied Solutions:
Say: 100 frames (20 frames partial face, 5 frames with no face)
A: For Heads which is turned over and no face is detected, no "LivePortrait" is applied and are those frame are entirely skipped. Same frame is skipped from the driving frames also so It is synced properly.
B: For Partial Visible Face like Only lips or Only eyes... "Partial LivePortrait" is applied accordingly. Like the mediapipe options to isolate those elements.
C: For Fully Visible Faces "LivePortrait" is applied as usual.
So after render, the final video will look like
(C + B +A).mp4 [100 frames] = 75 Frames (LivePortrait Applied) + 20 (Partial LivePortrait) + 5 (No LivePortrait)
So, it can run smoothly without detection error.

Problem for any partial solution is probably that the model excepts certain amount of keypoints, I don't know if it can work with different amounts. I have some ideas for that and to try with other detection models besides insightface.

Problem for any partial solution is probably that the model excepts certain amount of keypoints, I don't know if it can work with different amounts. I have some ideas for that and to try with other detection models besides insightface.

Hey @kijai
Yes that makes sense. If there is a way to skip the frame if full keypoints aren't found that could be useful. One idea I had was to possibly have it work like the React node pictured here with the index. In this case rather than the index being a separate node possibly combine the index functionality in to a single node. (and always reverting to 0 and 0 if only a single face is detected)

A feature that would be cool, is if adding more face selections (like an index) created more node inputs for separate drivers inputs.
But I wanted to point out that the "index out of range" issue seems to be centered around the opt_driving_images node input. Once that becomes active the indexing of faces breaks entirely. Wanted to point out that this issue seems unrelated to the face detection missing a frame. They are two different class of crashing.
Since I am still yet to get two faces independent faces in the same frame working. As it will find all of the faces and detect them fine AS LONG as lip retargeting and eye retargeting remain false. As soon as an index is above 0 and eye retargeting and lip retargeting are true. That error is thrown. Just to clarify that the problem may be two fold.
Thanks for the workaround suggestion will give these ideas a shot @jerrydavos

@kijai
one last follow up to clarify. So in this particular screenshot here the reason the detection is actually working is because all nodes eye and lip retargeting are set to false. As soon as any one of these nodes retargeting are actually enabled the error is thrown at that node.

Yeah the eye/lip retargeting mode changes things up a bit as it needs to process the driving video as well, it's one of the reasons I don't want to merge this to main yet, I think that mode needs to be in separate node at least partly.

@kijai yea seems like a lot is happening under the hood there. It's not all that hard to set up separately anyways. Thanks for the information and good luck developing.


[Bug] compile error

Search before asking

[X] I had searched in the issues and found no similar issues.

Version
commit ce7fa5d6d9454d3b89e75859690fb216ca68167b (HEAD -> master, origin/master, origin/HEAD)
Author: renzhimin7<EMAIL_ADDRESS>Date:   Mon Nov 22 14:47:00 2021 +0800
[typo] Update multi-tenant.md (#7162)

A double quote is missing

What's Wrong?
compilation using docker image failed.
docker image: apache/incubator-doris:build-env-1.4.1
sh build.sh --clean --be --fe --ui
we got error:
ninja: error: '/var/local/thirdparty/installed/lib64/libbreakpad_client.a', needed by 'src/service/palo_be', missing and no known rule to make it

What You Expected?
compilation success
How to Reproduce?
docker pull apache/incubator-doris:build-env-1.4.1
git clone git@github.com:minghong/talent-plan.git
docker run -it -v ~/.m2:/root/.m2 -v ~/work/incubator-doris/:/root/incubator-doris-DORIS-x.x.x-release/ apache/incubator-doris:build-env-1.4.1
inside docker container:
[root@7eec959b89ab incubator-doris-DORIS-x.x.x-release]# sh build.sh --clean --be --fe --ui
We got following error message
-- The ASM compiler identification is GNU
-- Found assembler: /opt/rh/devtoolset-10/root/usr/bin/gcc
-- Looking for sys/random.h
-- Looking for sys/random.h - not found
-- Some symbols from glibc will be replaced for compatibility
-- Configuring done
-- Generating done
-- Build files have been written to: /root/incubator-doris-DORIS-x.x.x-release/be/build_Release
[0/2] Re-checking globbed directories...
ninja: error: '/var/local/thirdparty/installed/lib64/libbreakpad_client.a', needed by 'src/service/palo_be', missing and no known rule to make it
Anything Else?
No response
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

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

Remove thirdparty/installed/ and create a empty dir thirdparty/installed/.

It may caused by image.
apache/incubator-doris:***  -> apache/doris:***

If you compile by docker, It may caused by image. apache/incubator-doris:*** -> apache/doris:***

Which image can I use to build, apache/doris:build-env-for-1.0.0 or other tags?