Support for USB Frame Input

Hello,
We currently have a use case for the BW1099 where we need to process live RGB camera data in another Linux SOM (like a Raspberry Pi) first before running some NN inference on the frames using the BW1099 module. The BW1099 is connected to the Linux SOM via USB.  We were just wondering if there's library support for this specific use case  or if the best approach is to just use OpenVINO and treat the BW1099 as a USB Neural Compute Stick. Thank you!

Yes, with Gen2 API it's possible to feed frames from host instead of camera. Here we have an example:
https://docs.luxonis.com/projects/api/en/gen2_develop/samples/17_video_mobilenet/

The example is using the host's opencv to crop the frame to the required (300, 300). Is there a way to just feed in the raw full resolution frame and let the module do the cropping? I can't seem to find any example that does it but from the API something like this should just work right?
xin = pipeline.createXLinkIn()
im = pipeline.createImageManip()
nn = pipeline.createNeuralNetwork()

im.setResize(300, 300)

xin.out.link(im.inputImage)
im.out.link(nn.input)

Yes, I think so.  I think that the ImageManip node can be used for this.  See here: https://docs.luxonis.com/projects/api/en/gen2_develop/references/python/?dummy=http://#ImageManip.
Also this may be relevant to making this work: https://docs.luxonis.com/projects/api/en/gen2_develop/samples/14_color_camera_control/
And sorry I'm not fully in the code otherwise I'd give more concrete examples.  I'll ask the team as well.
Thoughts?
Thanks,
Brandon

Hello Brandon,
I ended up in this thread looking for information for an unrelated project, but I would really love to take a look at the links you provided above, but it asks for a particular user or something like that. Should I be able to see those?
Thanks!

Hi @Davidsastresas ,
Great question.  I just fixed the links above.  Sorry about the broken/old/dead links there previously.
You should now be able to see them.
Thanks,
Brandon


autowaf.build_pc generates lilv-0.pc which is missing serd-0, sord-0, and sratom-0 dependency

The current build produces a lilv-0.pc pkg-config file , which looks like this:
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: Lilv
Version: 0.24.5
Description: Simple C library for hosting LV2 plugins
Requires: lv2
Libs: -L${libdir} -llilv-0  -ldl
Cflags: -I${includedir}/lilv-0

This is missing serd-0, serd-0 and sratom-0 in the Requires: line.
I think something must have changed in the autowaf.build_pc function when waflib was included as a git submodule instead of as a binary blob in the waf script, so the substitution of @PKG_serd_0@ @PKG_sord_0@ @PKG_sratom_0@ in the lilv.pc.in  no longer works correctly.

Or the way autowaf.build_pc() has to be called might have changed.

I'm using this workaround in the lilv-git AUR package: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=lilv-git#n42

Oops.
Fixed in 79a4549, thanks.


Minor updates

To encourage further improvements I suggest you to

Split Phan supplementary responsibilities (the part which works with ast and the part which works with files, etc)
Make Analyzer Traits to be just a static classes (they are alredy has only static methods, so there is no real need to make them traits)
Make Phan fully static as it currently has no internal state. I'm planning to add such state in the future.

Static state allows us to easily transfer functions to other places. And this does not infere anything as phan has no state.

@scaytrase Could you help me understand the split between \Phan\Phan and \Phan\PhanWrapper? It looks like PhanWrapper operates on lists of files and Phan operates on files and nodes. I worry that the distinction between those two things might not have enough benefit to outweigh having so many things named Phan (phan.php, Phan, PhanWrapper) lying around making the entry-point murky.

@scaytrase How would you feel about merging this patch in with those two files combined into \Phan\Phan.

@morria I've intendend to split ast-working classes (the thing which know how the analyzing happens internally) and service wrappers which do some other logic (like providing env etc).
Not sure what you mean abound combining as it was about 30% of idea of this patch.

@scaytrase Would it make sense to call them \Phan\AnalyzeFile and \Phan\AnalyzeAST to make the distinction more clear?

If moving this way I think this should be \Phan\Phan (for current PhanWrapper) and \Phan\AstAnalyzer (or something like this, I personally prefer nouns for classes) for the second one.
The Wrapper name is indeed temporary as it should descript its role - it wraps the left Phan logic with file operations, LOG and most of CLI output. So it could be easily renamed, but for extenal user it would be the Phan object as the thing exposed to user.

I've renamed them to show up last variant, but your decision is anyway is more preferred, so I need a final variant from you.

This has been merge in via https://github.com/etsy/phan/commit/014254375c7c57e880e80034ac6d75ee994cf18a


DCOS-41922: fix framework form to work with all jsons

This fixes an issue where the user in some cases with a invalid json was not able to use the form
but rather was limited to the json editor.
Closes DCOS-41922
Testing
For testing this, install a package from the catalog which does contain fields which are not present in the JSON Schema.
For convenience this is a configuration for marathon-lb:
{
    "service": {
        "secretName": "mlb-secret",
        "principal": "mlb-principal",
        "user": "nobody"
    },
    "marathon-lb": {
          "container-syslogd": true,
          "sysctl-params": "net.ipv4.tcp_tw_reuse=1 net.ipv4.tcp_fin_timeout=30 net.ipv4.tcp_max_syn_backlog=10240 net.ipv4.tcp_max_tw_buckets=400000 net.core.somaxconn=10000",
          "haproxy_global_default_options": "redispatch,http-server-close,dontlognull,httplog,dontlog-normal"
    }
}

put it into mlb-options.json and then use the cli: dcos package install --options=mlb-options.json marathon-lb --yes
This will install a service. Go to the detail package of the service and click edit. You should see the form and be able to change values. Your custom setting or service in the configuration from above should persist. Also, the form should not break.
Trade-offs
In fact, this is reducing trade-offs which we had before.
Screenshots

@Poltergeist It seems like the system tests are failing for a reason, please take a look

@Poltergeist too many integration tests fail hints to a legit problem

:tada: This PR is included in version 2.22.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


ERROR: compilation failed for package ‘ITKR’

HI
I'm trying to install ANTsRCORE for ANTsR and I get this message

install_github("stnava/ANTsRcore")
Downloading GitHub repo stnava/ANTsRcore@master
from URL https://api.github.com/repos/stnava/ANTsRcore/zipball/master
Installing ANTsRCore
Downloading GitHub repo stnava/ITKR@master
from URL https://api.github.com/repos/stnava/ITKR/zipball/master
Installing ITKR
'/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ --no-save
--no-restore --quiet CMD INSTALL
'/private/var/folders/xd/72k5wpp92f7bv1jzly65gbx80000gn/T/RtmpCMkym6/devtools15f4769dd3d1/stnava-ITKR-3c4a172'
--library='/Library/Frameworks/R.framework/Versions/3.4/Resources/library' --install-tests

installing source package ‘ITKR’ ...
Cloning into 'itks'...
Checking out files: 100% (15343/15343), done.
Already on 'master'
Your branch is up-to-date with 'origin/master'.
Note: checking out 'c5138560409c75408ff76bccff938f21e5dcafc6'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b
HEAD is now at c513856040... Merge topic 'FixGCC7BuildFailure'
./configure: line 42: cmake: command not found
** libs
clang++ -std=gnu++11 -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I"/Library/Frameworks/R.framework/Versions/3.4/Resources/library/Rcpp/include" -I/usr/local/include   -fPIC  -Wall -g -O2 -c dummy.cpp -o dummy.o
cd itkb && make -j 2 && make install && rm -rf ../itks
make[1]: *** No targets specified and no makefile found.  Stop.
make: *** [libs] Error 2
ERROR: compilation failed for package ‘ITKR’

removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/ITKR’
Installation failed: Command failed (1)
'/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ --no-save
--no-restore --quiet CMD INSTALL
'/private/var/folders/xd/72k5wpp92f7bv1jzly65gbx80000gn/T/RtmpCMkym6/devtools15f43bc4efa5/stnava-ANTsRCore-7427de1'
--library='/Library/Frameworks/R.framework/Versions/3.4/Resources/library' --install-tests

ERROR: dependency ‘ITKR’ is not available for package ‘ANTsRCore’

removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/ANTsRCore’
Installation failed: Command failed (1)
one.

It doesn't work on windows. Are you on Mac/ Linux
On Tue, Jul 11, 2017 at 9:22 AM annapbarnes<EMAIL_ADDRESS>wrote:

HI
I'm trying to install ANTsRCORE for ANTsR and I get this message
install_github("stnava/ANTsRcore")
Downloading GitHub repo stnava/ANTsRcore@master
from URL https://api.github.com/repos/stnava/ANTsRcore/zipball/master
Installing ANTsRCore
Downloading GitHub repo stnava/ITKR@master
from URL https://api.github.com/repos/stnava/ITKR/zipball/master
Installing ITKR
'/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file
--no-environ --no-save
--no-restore --quiet CMD INSTALL
'/private/var/folders/xd/72k5wpp92f7bv1jzly65gbx80000gn/T/RtmpCMkym6/devtools15f4769dd3d1/stnava-ITKR-3c4a172'
--library='/Library/Frameworks/R.framework/Versions/3.4/Resources/library'
--install-tests

installing source package ‘ITKR’ ...
Cloning into 'itks'...
Checking out files: 100% (15343/15343), done.
Already on 'master'
Your branch is up-to-date with 'origin/master'.
Note: checking out 'c5138560409c75408ff76bccff938f21e5dcafc6'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b
HEAD is now at c513856040... Merge topic 'FixGCC7BuildFailure'
./configure: line 42: cmake: command not found
** libs
clang++ -std=gnu++11 -I/Library/Frameworks/R.framework/Resources/include
-DNDEBUG
-I"/Library/Frameworks/R.framework/Versions/3.4/Resources/library/Rcpp/include"
-I/usr/local/include -fPIC -Wall -g -O2 -c dummy.cpp -o dummy.o
cd itkb && make -j 2 && make install && rm -rf ../itks
make[1]: *** No targets specified and no makefile found. Stop.
make: *** [libs] Error 2
ERROR: compilation failed for package ‘ITKR’

removing
‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/ITKR’
Installation failed: Command failed (1)
'/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file
--no-environ --no-save
--no-restore --quiet CMD INSTALL
'/private/var/folders/xd/72k5wpp92f7bv1jzly65gbx80000gn/T/RtmpCMkym6/devtools15f43bc4efa5/stnava-ANTsRCore-7427de1'

--library='/Library/Frameworks/R.framework/Versions/3.4/Resources/library'
--install-tests
ERROR: dependency ‘ITKR’ is not available for package ‘ANTsRCore’

removing
‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/ANTsRCore’
Installation failed: Command failed (1)
one.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/stnava/ANTsR/issues/175, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABBnriFWYcMiFhTffmDTynMQXPhinQj7ks5sM3cYgaJpZM4OUOdP
.

--
John

oh sorry I forgot to say Mac OSX Sierra with R 3.4.1 El Capitan

Like it says in the error
./configure: line 42: cmake: command not found
You need Cmake
On Tue, Jul 11, 2017 at 9:28 AM annapbarnes<EMAIL_ADDRESS>wrote:

oh sorry I forgot to say Mac OSX Sierra with R 3.4.1 El Capitan
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/stnava/ANTsR/issues/175#issuecomment-314443432, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABBnrtsPzWqb9NhuUEmVbR8JVu9fVLPwks5sM3iUgaJpZM4OUOdP
.

--
John

I have Cmake
/Applications/Cmake

That doesn't mean it's in your PATH
See https://neuroconductor.org/neuroc-help-installing-antsr
@stnava - can be closed

oh right - forgot about that bit - thanks :)


Music player positioning of controls, play/pause, repeat

The play/pause buttons need to be moved to be visually centered instead of mathematically centered.

@samclaridge can you provide a screenshot of what this might look like? Thanks!

@johnthepink I think it'll be easier for me to fix this because it needs to be eye-balled.

awesome

Closed by #855


Port parse tests

Closes #393
Shoutout to Github Copilot!

I'm going to leave the redundant/incorrect hsl functions in the test names for now.
I don't think hsl is spec compliant so I'll open a new issue for that (#428). The tests can be corrected as part of dealing with that issue.


Running python file stuck on "Reactivating terminals" for global interpreters

Testing #22079
I opened a python file tried to run it.
My python environment is the default system python:

Fix should be out in the pre-release version of the extension, use the following to try it out:


Add support to jdk 9+

This is based on #91 with some minor fix and resolve conflicts.

I helped to improve some code.

Thanks for @wuchong help. LGTM.


Disable reactions when locked

Bug Report Dump (Auto-generated)

Version 1.17.0 (SEE BUILD PHASE)
Device: iPhone X (iOS 11.2)
TestFlight: false

Skipping


pantheon.switchboard-plug-parental-controls: init at 6.0.0

Motivation for this change
Close #138422

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

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

[ ] Fits CONTRIBUTING.md.

It currently fails to build.
@bobby285271 have you seen this issue before?
[davidak@gaming:~/code/nixpkgs]$ nix-build . -A pantheon.switchboard-plug-parental-controls
these derivations will be built:
  /nix/store/dvqi8cdzc21gg7qzjz1ccildgg4fjky2-switchboard-plug-parental-controls-6.0.0.drv
building '/nix/store/dvqi8cdzc21gg7qzjz1ccildgg4fjky2-switchboard-plug-parental-controls-6.0.0.drv'...
unpacking sources
unpacking source archive /nix/store/xwfd49jzdr7z3490zs6algqhln7cdxpa-source
source root is source
patching sources
configuring
meson flags: --buildtype=plain         --libdir=/nix/store/xz0lxir7iglzcw36zmcw3i6ldysbaz1x-switchboard-plug-parental-controls-6.0.0/lib --libexecdir=/nix/store/xz0lxir7iglzcw36zmcw3i6ldysbaz1x-switchboard-plug-parental-controls-6.0.0/libexec         --bindir=/nix/store/xz0lxir7iglzcw36zmcw3i6ldysbaz1x-switchboard-plug-parental-controls-6.0.0/bin --sbindir=/nix/store/xz0lxir7iglzcw36zmcw3i6ldysbaz1x-switchboard-plug-parental-controls-6.0.0/sbin         --includedir=/nix/store/xz0lxir7iglzcw36zmcw3i6ldysbaz1x-switchboard-plug-parental-controls-6.0.0/include         --mandir=/nix/store/xz0lxir7iglzcw36zmcw3i6ldysbaz1x-switchboard-plug-parental-controls-6.0.0/share/man --infodir=/nix/store/xz0lxir7iglzcw36zmcw3i6ldysbaz1x-switchboard-plug-parental-controls-6.0.0/share/info         --localedir=/nix/store/xz0lxir7iglzcw36zmcw3i6ldysbaz1x-switchboard-plug-parental-controls-6.0.0/share/locale         -Dauto_features=enabled         -Dwrap_mode=nodownload         --prefix=/nix/store/xz0lxir7iglzcw36zmcw3i6ldysbaz1x-switchboard-plug-parental-controls-6.0.0
The Meson build system
Version: 0.57.1
Source dir: /build/source
Build dir: /build/source/build
Build type: native build
Project name: parental-controls
Project version: 6.0.0
C compiler for the host machine: gcc (gcc 10.3.0 "gcc (GCC) 10.3.0")
C linker for the host machine: gcc ld.bfd 2.35.1
Vala compiler for the host machine: valac (valac 0.52.5)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /nix/store/abzvpq14cipsiv3nn7rx800na8ig1j3f-pkg-config-wrapper-0.29.2/bin/pkg-config (0.29.2)
Run-time dependency polkit-gobject-1 found: YES 0.119
Run-time dependency glib-2.0 found: YES 2.68.4
Run-time dependency gio-2.0 found: YES 2.68.4
Run-time dependency gio-unix-2.0 found: YES 2.68.4
Run-time dependency gobject-2.0 found: YES 2.68.4
Run-time dependency granite found: YES 6.1.1
Run-time dependency gtk+-3.0 found: YES 3.24.30
Run-time dependency gee-0.8 found: YES 0.20.4
Run-time dependency flatpak found: YES 1.10.2
Run-time dependency malcontent-0 found: YES 0.10.1
Run-time dependency libhandy-1 found: YES 1.4.0
Run-time dependency accountsservice found: YES 0.6.55
Run-time dependency systemd found: YES 249
Library posix found: YES
Run-time dependency dbus-1 found: YES 1.12.20
Configuring pantheon-parental-controls.service using configuration
Configuring screentime-limits.policy.in using configuration
Configuring org.pantheon.ParentalControls.service using configuration
Configuring pantheon-parental-controls-client.desktop using configuration
Configuring Constants.vala using configuration
Run-time dependency switchboard-2.0 found: YES 6.0.0
Build targets in project: 11

Found ninja-1.10.2 at /nix/store/dvdph40kdis6mgdi47w57pkmr00k5n5w-ninja-1.10.2/bin/ninja
meson: enabled parallel building
building
build flags: -j16 -l16
[17/44] Compiling Vala source ../src/plug/MainView.vala ../src/plug/Plug.vala ../src/plug/Views/AppsView.vala ../src/plug/Views/TimeLimitView.vala ../src/plug/Views/InternetView.vala ../src/plug/Widgets/UserList.vala ../src/plug/Widgets/UserItem.vala ../src/plug/Widgets/ControlPage.vala ../src/plug/Widgets/AppChooser.vala ../src/plug/Widgets/AppRow.vala ../src/common/Utils.vala src/common/Constants.vala ../src/common/PAM/Writer.vala ../src/common/PAM/Token.vala ../src/common/PAM/Reader.valaonstants.vala ../src/common/PAM/Writer.vala ../src/common/PAM/Token.vala ../src/common/PAM/Reader.vala
../src/plug/Widgets/UserItem.vala:98.13-98.38: warning: `Hdy.Avatar.set_image_load_func' has been deprecated since 1.2
Compilation succeeded - 1 warning(s)
[44/44] Linking target src/plug/libparental-controls.soo.p/meson-generated_Utils.c.oUtils.c.oKKDialog.c.on.c.o
glibPreInstallPhase
installing
install flags: install
[0/1] Installing files.
Installing data/io.elementary.switchboard.screentime-limits.policy to /nix/store/xz0lxir7iglzcw36zmcw3i6ldysbaz1x-switchboard-plug-parental-controls-6.0.0/share/polkit-1/actions/
Installing data/io.elementary.switchboard.parental-controls.appdata.xml to /nix/store/xz0lxir7iglzcw36zmcw3i6ldysbaz1x-switchboard-plug-parental-controls-6.0.0/share/metainfo
Installing src/client/pantheon-parental-controls-client to /nix/store/xz0lxir7iglzcw36zmcw3i6ldysbaz1x-switchboard-plug-parental-controls-6.0.0/libexec
Installing src/daemon/pantheon-parental-controls-daemon to /nix/store/xz0lxir7iglzcw36zmcw3i6ldysbaz1x-switchboard-plug-parental-controls-6.0.0/bin
Installing src/plug/libparental-controls.so to /nix/store/xz0lxir7iglzcw36zmcw3i6ldysbaz1x-switchboard-plug-parental-controls-6.0.0/lib/switchboard/system
Installation failed due to insufficient permissions.
Attempting to use polkit to gain elevated privileges...
pkexec must be setuid root
FAILED: meson-install
/nix/store/452pbrsanrjbz6zj5l7b5b6ywzhi5bw4-meson-0.57.1/bin/meson install --no-rebuild
ninja: build stopped: subcommand failed.
builder for '/nix/store/dvqi8cdzc21gg7qzjz1ccildgg4fjky2-switchboard-plug-parental-controls-6.0.0.drv' failed with exit code 1
error: build of '/nix/store/dvqi8cdzc21gg7qzjz1ccildgg4fjky2-switchboard-plug-parental-controls-6.0.0.drv' failed

Settings are there, but the backend service seem to be missing.
[davidak@gaming:~]$ io.elementary.switchboard

** (.io.elementary.switchboard-wrapped_:2492): WARNING **: 07:44:29.940: Reader.vala:41: Failed to open file “/etc/security/time.conf”: No such file or directory

** (.io.elementary.switchboard-wrapped_:2492): CRITICAL **: 07:44:29.941: Utils.vala:82: Error calling StartServiceByName for org.pantheon.ParentalControls: Unit pantheon-parental-controls.service not found., using dummy parental controls backend

** (.io.elementary.switchboard-wrapped_:2492): WARNING **: 07:44:29.966: AppsView.vala:232: Unable to get malcontent app filter: App filtering is globally disabled

** (.io.elementary.switchboard-wrapped_:2492): WARNING **: 07:44:41.506: AppsView.vala:189: Failed to set malcontent app filter: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: No such interface “com.endlessm.ParentalControls.AppFilter”

TL;DR I haven't manage to get this working yet.
Just tried this a little bit, but sorry I do not have time and interest to do deep into this yet, but I will post some of my findings.
By checking the build result I guess the package should be added to services.dbus.packages and systemd.packages. Then you should see pantheon-parental-controls.service starts.
After doing these, something like this will happen with probably requires services.malcontent.enable to be set.
AppsView.vala:232: Unable to get malcontent app filter: App filtering is globally disabled

Then this one, I found related file in linux-pam package but I am not sure how to deal with that.
Writer.vala:88: Failed to open file “/etc/security/time.conf”: No such file or directory

And FYI, I think this is hard coded in src/common/Constants.vala.in:
public const string PAM_TIME_CONF_PATH = "/etc/security/time.conf";

Then this one:
UserConfig.vala:76: Could not find daemon config file: /etc/pantheon-parental-controls/daemon.conf does not exist

Again from src/common/Constants.vala.in you can find:
public const string DAEMON_CONF_FILE = "<EMAIL_ADDRESS>
Looking at the build result, I think some NixOS options can be created for this but I am not sure if the GUI interface will be still useful since then, or maybe we should put the file in other places?
# This is main configuration file for pantheon parental controls daemon.
# It is used to restrict users and control whethever they can or cannot
# access a specified service.
#
# a simple example of how a configuration for user "username" would look like:
#  [username]
#  Active=false
#  Targets=/path/to/executable1;/path/to/executable2;
#  BlockUrls=website1.com;website2.com
#  Admin=false
#
# End of example file.

Then by checking the source code, I also noticed that in AccessControlLists.vala, there is:
Process.spawn_async (null,
    { "setfacl", "-m", r, target },
    null,
    SpawnFlags.SEARCH_PATH | SpawnFlags.DO_NOT_REAP_CHILD,
    null,
    null);

setfacl is in acl package and I think we probably need to fix the path.
And finally, like other Pantheon components, the locale of this is not set up correctly and you can apply https://github.com/elementary/switchboard-plug-parental-controls/commit/843005b570fc5a661fe6e3f79e3730bc0b1138e8 if you wish, but not that important now I guess.

I will continue the work later. Thanks for the input.

Just some progress notes:
I got the service, but it was not started.
[root@gaming:~]# systemctl status pantheon-parental-controls.service
○ pantheon-parental-controls.service - Pantheon Screen Time & Limits Daemon
     Loaded: loaded (/etc/systemd/system/pantheon-parental-controls.service; linked; vendor preset: enabled)
     Active: inactive (dead)

It is only started when the setting is enabled, which makes sense.
Then  i have seen some errors in the log, which i will figure out next.
[root@gaming:~]# journalctl -u pantheon-parental-controls.service
-- Journal begins at Tue 2021-08-03 01:49:06 CEST, ends at Sun 2021-10-10 07:09:02 CEST. --
Oct 10 07:08:42 gaming systemd[1]: Starting Pantheon Screen Time & Limits Daemon...
Oct 10 07:08:42 gaming pantheon-parent[7005]: UserConfig.vala:76: Could not find daemon config file: /etc/pantheon-parental-controls/daemon.conf does not exist
Oct 10 07:08:42 gaming pantheon-parent[7005]: UserConfig.vala:167: Failed to create file “etc/pantheon-parental-controls/daemon.conf.IUKEB1”: No such file or directory
Oct 10 07:08:42 gaming systemd[1]: Started Pantheon Screen Time & Limits Daemon.
Oct 10 07:08:42 gaming pantheon-parent[7005]: UserConfig.vala:136: Key file does not have key “BlockUrls” in group “davidak”
Oct 10 07:08:42 gaming pantheon-parent[7005]: UserConfig.vala:120: Key file does not have key “Targets” in group “davidak”
Oct 10 07:08:42 gaming pantheon-parent[7005]: UserConfig.vala:152: Key file does not have key “Admin” in group “davidak”
Oct 10 07:08:55 gaming pantheon-parent[7005]: UserConfig.vala:167: Failed to create file “etc/pantheon-parental-controls/daemon.conf.UTP6A1”: No such file or directory
Oct 10 07:08:55 gaming pantheon-parent[7005]: UserConfig.vala:136: Key file does not have key “BlockUrls” in group “davidak”
Oct 10 07:08:55 gaming pantheon-parent[7005]: Reader.vala:41: Failed to open file “/etc/security/time.conf”: No such file or directory
Oct 10 07:08:55 gaming pantheon-parent[7005]: UserConfig.vala:120: Key file does not have key “Targets” in group “davidak”
Oct 10 07:08:55 gaming pantheon-parent[7005]: UserConfig.vala:152: Key file does not have key “Admin” in group “davidak”
Oct 10 07:09:02 gaming pantheon-parent[7005]: UserConfig.vala:167: Failed to create file “etc/pantheon-parental-controls/daemon.conf.0170A1”: No such file or directory
Oct 10 07:09:02 gaming pantheon-parent[7005]: UserConfig.vala:152: Key file does not have key “Admin” in group “davidak”
Oct 10 07:09:02 gaming pantheon-parent[7005]: Writer.vala:88: Failed to open file “/etc/security/time.conf”: No such file or directory

Failed to create file “/etc/pantheon-parental-controls/daemon.conf

Services on NixOS usually have their state in /var/lib while /etc is declaratively configured using NixOS. So we should move it there.

Looking at the build result, I think some NixOS options can be created for this but I am not sure if the GUI interface will be still useful

yeah, that would make the GUI obsolete and that is what pantheon users would want to use

The daemon_conf_dir path is configured here:
https://github.com/elementary/switchboard-plug-parental-controls/blob/49355a30710be1d84e9241fd7b59e1e2d17a38ba/meson.build#L31
So i change sysconfdir, which seem to be a meson built-in option.
It's etc by default, so i change it to var/lib.
Now the error looks like this:
Oct 10 12:50:26 gaming systemd[1]: Starting Pantheon Screen Time & Limits Daemon...
Oct 10 12:50:26 gaming pantheon-parent[95630]: UserConfig.vala:76: Could not find daemon config file: /var/lib/pantheon-parental-controls/daemon.conf does not exist
Oct 10 12:50:26 gaming pantheon-parent[95630]: UserConfig.vala:167: Failed to create file “var/lib/pantheon-parental-controls/daemon.conf.UY40A1”: No such file or directory
Oct 10 12:50:26 gaming systemd[1]: Started Pantheon Screen Time & Limits Daemon.

I think it's actually the same path, but the output is messed up (https://github.com/elementary/switchboard-plug-parental-controls/issues/154).

I believe neither Rygel or Geoclue modify the config.
I agree that /etc is the domain of the system administrator and services should not modify it. When a daemon needs to change the data, it should be considered a state and it should probably go to /var/lib.
I think this is best done upstream so we should convince Elementary to change sysconfdir to localstatedir. (We would still need a patch adding localstatedir_install but that is something we need to resolve in Meson.)
It is also concerning that share/dbus-1/system-services/org.pantheon.ParentalControls.service sets the User to root (perhaps this is done to be able to edit the file). systemd supports StateDirectory, which allows it to write to /var/lib using unprivileged user. Or does it needs root for connecting to system bus?


can only list a directory

as title descibe

It is recommended that you use version 2.0, which is slightly different from 1.0 and may solve your problem
https://github.com/etcd-manage


Possible typo

On the call, I believe you called this "strict dump" with a P, but here, it's spelled "strict dumb", with a B:
https://github.com/strict-types/strict-types/blob/8f397c37fe12ed08605802f4080b2917a6daba85/src/ast/id.rs#L53-L55

It should be strict dum_b_, since it produces a value of the datatype which should be used as a dumb (i.e. not a memory dump, but a sort of default value with no meaning).


Remove lodash dependency

Still importing lodash here.

Still importing lodash here.

Sorry, rebase malfunction. Updated.


open_anndata unit test

Unit test for the open_anndata function.
The way I implemented fixtures for this test isn't very elegant but it's functional. Suggestions on how to improve it are welcome.

No concerns with the tests, but recommend adding a test for the other conditions the code must handle:

incorrect cellxgene schema version (drops the AnnData)
no raw layer

@bkmartinjr added a test for the incorrect schema version. Turns out the default datasets already have no raw layer, so that's already tested. I explicitly added a statement in the test description.

Turns out the default datasets already have no raw layer

Just want to confirm that we also test datasets with a raw layer as well?  I believe you do, but confirming....

Turns out the default datasets already have no raw layer

Just want to confirm that we also test datasets with a raw layer as well? I believe you do, but confirming....

Yes, that is tested by test_open_anndata_equalizes_raw_and_normalized. If you think it's worth it, I can add one test where the raw layer exists and has the same shape as the normalized one.


rebuild when the build type changes

Redux of https://github.com/jason-simmons/flutter/pull/1, rebuild the apk when the build type (or target device type) changes. Fix https://github.com/flutter/flutter/issues/3788.

Does this handle switching between locally built engines and cloud engines?

Does this handle switching between locally built engines and cloud engines?

No, it doesn't know about local engine builds; I'll add support for that in this PR.

PTAL, updated to take local engine builds into account.

landing...


about text aligner

Maybe the asr module(text aligner) can be replaced with vits's idea??

Yes it can, and it can be more easily adapted to other datasets, but in the original StyleTTS paper we showed that using a pretrained text aligner helps with the alignment accuracy and hence helps the performance. The alignment problem is one of the reasons VITS sometimes generates unnatural prosody (the duration is incorrect). Simply using TMA (pretrained aligner finetuned for TTS task) helps the naturalness of VITS.


Typo fixes and minor improvements

Thank you for your submission and taking the time to follow-up on it.


Docs: All contents below JSX are commented out

Page URL: https://www.typescriptlang.org/tsconfig
Issue: All contents below JSX are invisible.
Recommended Fix: The HTML source includes the following comment, but the closing --> is missing: <!-- This is blocked on https://github.com/microsoft/TypeScript-Website/issues/860. This kills all content below it.

haha, oops - thanks fix is shipped https://github.com/microsoft/TypeScript-Website/commit/24f32ee4a6c4be472f9052d77dc0d31e9e98b5d3 and being deployed now


Support flash attention flash-attn --no-build-isolation with uv sync

I get the following error despite installation flash attention was successful via uv add flash-attn --no-build-isolation. See https://github.com/astral-sh/uv/issues/6402. Is there anyway to honor the no-build-isolation when doing uv sync? I imagine the idea is to mark the flash-attn dependencies somehow and run it with no-build-isolation after all the other dependencies have been installed.
pyproject.toml and uv.lock are here: https://gist.github.com/vwxyzjn/fba2c7ffac8e6c923ffe912a872ec9a8
  open-instruct git:(uv) ✗ uv sync
Using Python 3.12.5
Creating virtualenv at: .venv
⠦ fire==0.6.0                                                                                error: Failed to download and build `flash-attn==2.6.3`
  Caused by: Build backend failed to determine extra requires with `build_wheel()` with exit status: 1
--- stdout:

--- stderr:
Traceback (most recent call last):
  File "<string>", line 14, in <module>
  File "/home/costa/.cache/uv/builds-v0/.tmpLR2n19/lib/python3.12/site-packages/setuptools/build_meta.py", line 332, in get_requires_for_build_wheel
    return self._get_build_requires(config_settings, requirements=[])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/costa/.cache/uv/builds-v0/.tmpLR2n19/lib/python3.12/site-packages/setuptools/build_meta.py", line 302, in _get_build_requires
    self.run_setup()
  File "/home/costa/.cache/uv/builds-v0/.tmpLR2n19/lib/python3.12/site-packages/setuptools/build_meta.py", line 502, in run_setup
    super().run_setup(setup_script=setup_script)
  File "/home/costa/.cache/uv/builds-v0/.tmpLR2n19/lib/python3.12/site-packages/setuptools/build_meta.py", line 318, in run_setup
    exec(code, locals())
  File "<string>", line 21, in <module>
ModuleNotFoundError: No module named 'torch'
---
  Caused by: This error likely indicates that flash-attn==2.6.3 depends on torch, but doesn't declare it as a build dependency. If flash-attn==2.6.3 is a first-party package, consider adding torch to its `build-system.requires`. Otherwise, `uv pip install torch` into the environment and re-run with `--no-build-isolation`.

You'll need to use uv sync --no-build-isolation-package flash-attn — it'd be great if we tracked this though!

Wow amazing that this feature already exists!

I just tested it out, and it seems to fail:
uv sync --no-build-isolation-package flash-attn
⠹ flash-attn==2.6.3                                                                                error: Failed to download and build `flash-attn==2.6.3`
  Caused by: Build backend failed to determine extra requires with `build_wheel()` with exit status: 1
--- stdout:

--- stderr:
Traceback (most recent call last):
  File "<string>", line 14, in <module>
  File "/home/costa/.cache/uv/builds-v0/.tmpEfmf64/lib/python3.12/site-packages/setuptools/build_meta.py", line 332, in get_requires_for_build_wheel
    return self._get_build_requires(config_settings, requirements=[])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/costa/.cache/uv/builds-v0/.tmpEfmf64/lib/python3.12/site-packages/setuptools/build_meta.py", line 302, in _get_build_requires
    self.run_setup()
  File "/home/costa/.cache/uv/builds-v0/.tmpEfmf64/lib/python3.12/site-packages/setuptools/build_meta.py", line 502, in run_setup
    super().run_setup(setup_script=setup_script)
  File "/home/costa/.cache/uv/builds-v0/.tmpEfmf64/lib/python3.12/site-packages/setuptools/build_meta.py", line 318, in run_setup
    exec(code, locals())
  File "<string>", line 21, in <module>
ModuleNotFoundError: No module named 'torch'
---
  Caused by: This error likely indicates that flash-attn==2.6.3 depends on torch, but doesn't declare it as a build dependency. If flash-attn==2.6.3 is a first-party package, consider adding torch to its `build-system.requires`. Otherwise, `uv pip install torch` into the environment and re-run with `--no-build-isolation`.

I think to make this work with uv sync, sadly you need to do something like uv pip install torch prior to running uv sync. The build dependencies have to be available in the virtual environment before you run the install.

I'm curious about what the recommended best practice is for including torch extensions in the project.
Here's my current approach:
uv sync  # torch is installed here
uv sync --extra build  # to keep things tidy: setuptools, wheel, and other stuff missing because of --no-build-isolation
uv sync --extra torchextensions --no-build-isolation  # torch extensions installed here

Previously, I did this, which is also not ideal:
uv sync  # torch is installed here
uv pip install setuptools wheel ...  # missing because of --no-build-isolation
uv pip install --no-build-isolation some_torch_extension

Your recommendation here is also not ideal, because you would need to manually make sure to pip install the exact torch version from the project dependencies:
uv pip install torch==2.3.1 --index-url https://download.pytorch.org/whl/cu121  #
uv pip install setuptools wheel ...  # missing because of --no-build-isolation
uv sync --extra extensions --no-build-isolation

You can include wheel and setup tools in uv add I think

I added some docs for this here: https://github.com/astral-sh/uv/pull/6607

Hi, I was following the suggested solution that was also introduced in the docs of specifying flash-attn as an extra dependency and use the following two commands
uv sync --extra build
uv sync --extra build --extra compile

My main challenge with that solution is from now on this required me to always remember to specify these flags when using uv for that project with the flash-attn dependencies. A different suggested solution was to separately use a uv pip install torch beforehand but I think that requires verifying I'm using the right torch versions in both the uv pip commands and sync ones and I wanted to avoid the uv pip syntax completely.
Instead, I managed to build the environment by specifying flash-attn alongside the other dependencies (while still defining it as a no-build-isolation-package) and then using the --no-install-package to create the environment the first time.
uv sync --no-install-package flash-attn
uv sync

If I understand correctly this allows me to use the regular uv sync once the project was initialized. I was wondering whether that is a valid solution or whether it has other downsides?


login doesn't work

login to an existing account with a email address doesn't work

Thanks for reporting this. This is a known issue and we're hard at work fixing it. Please read: https://github.com/FreeCodeCamp/FreeCodeCamp/wiki/August-2015-Improvements


Allow Player to ride shaped Player

If one Player is shaped as e.g. a horse, the other player should be able to ride him.

Works now, but the "as-horse-shaped-player" doesn't notice the change and is still able to hurt the "riding" player (screenshots).
As-Horse-Shaped-Player:

Riding-Player:

Other-Player:

I just found the startSeenBy and stopSeenBy methods on Entities... Maybe they'll fix this?

Finally I managed to fix the render bug!!!!!! (as of 0220a0e8adb5fe4c2952e159f47a536bf65c7b76). It's still looks a bit glitchy but works fine! :partying_face:


[Event Request] codeunit 6620 Copy Document Mgt. - Function CopySalesReturnRcptLinesToDoc

Dear ALAppExtensions Team,
We would like to request the following event publisher in codeunit 6620 function CopySalesReturnRcptLinesToDoc.
                        if CopySalesDocLine(
                             ToSalesHeader, ToSalesLine, FromSalesHeader, FromSalesLineBuf, NextLineNo, LinesNotCopied, false,
                             "Sales Document Type From".FromInteger(DeferralTypeForSalesDoc("Sales Document Type From"::"Posted Return Receipt".AsInteger())),
                             CopyPostedDeferral, FromSalesLineBuf."Line No.")
                        then begin
                            if CopyItemTrkg then begin
                                if SplitLine then
                                    ItemTrackingDocMgt.CollectItemTrkgPerPostedDocLine(
                                      TempItemTrkgEntry, TempTrkgItemLedgEntry, false, FromSalesLineBuf."Document No.", FromSalesLineBuf."Line No.")
                                else
                                    ItemTrackingDocMgt.CopyItemLedgerEntriesToTemp(TempTrkgItemLedgEntry, ItemLedgEntry);

                                ItemTrackingMgt.CopyItemLedgEntryTrkgToSalesLn(
                                  TempTrkgItemLedgEntry, ToSalesLine,
                                  FillExactCostRevLink and ExactCostRevMandatory, MissingExCostRevLink,
                                  FromSalesHeader."Prices Including VAT", ToSalesHeader."Prices Including VAT", true);
                            end;
                            OnAfterCopySalesLineFromReturnRcptLineBuffer(
                              ToSalesLine, FromReturnRcptLine, IncludeHeader, RecalculateLines,
                              TempDocSalesLine, ToSalesHeader, FromSalesLineBuf, CopyItemTrkg);
                        end;
                    until FromSalesLineBuf.Next() = 0
                end;
                // DINNL <<
                DINOnAfterCopySalesReturnRcptLinesToDoc(FromReturnRcptLine, ToSalesLine);
            // DINNL >>
            until Next() = 0;

local procedure DINOnAfterCopySalesReturnRcptLinesToDoc(FromReturnRcptLine: Record "Return Receipt Line"; ToSalesLine: Record "Sales Line")

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Update to ART 1.10.0

Description
This pull request merges the updates of ART 1.10.0 to branch main.

Codecov Report

Merging #1591 (5a213aa) into main (a0c9336) will decrease coverage by 67.32%.
The diff coverage is 10.91%.

@@             Coverage Diff             @@
##             main    #1591       +/-   ##
===========================================
- Coverage   89.77%   22.45%   -67.33%
===========================================
  Files         244      253        +9
  Lines       19789    20941     +1152
  Branches     3504     3437       -67
===========================================
- Hits        17766     4702    -13064
- Misses       1222    16183    +14961
+ Partials      801       56      -745

Impacted Files
Coverage Δ

...adversarial_texture/adversarial_texture_pytorch.py
11.55% <0.00%> (-76.82%)
:arrow_down:

art/attacks/evasion/auto_attack.py
22.22% <0.00%> (-63.18%)
:arrow_down:

...attacks/evasion/auto_projected_gradient_descent.py
7.45% <0.00%> (-79.17%)
:arrow_down:

art/attacks/evasion/brendel_bethge.py
10.09% <0.00%> (-77.82%)
:arrow_down:

art/attacks/evasion/carlini.py
7.59% <0.00%> (-87.04%)
:arrow_down:

art/attacks/evasion/dpatch.py
12.96% <0.00%> (-77.84%)
:arrow_down:

art/attacks/evasion/elastic_net.py
17.88% <0.00%> (-81.46%)
:arrow_down:

...n/feature_adversaries/feature_adversaries_numpy.py
24.07% <ø> (-72.23%)
:arrow_down:

art/attacks/evasion/frame_saliency.py
22.58% <0.00%> (-70.90%)
:arrow_down:

art/attacks/evasion/hclu.py
30.90% <ø> (-69.10%)
:arrow_down:

... and 326 more


Error on adding pkg under Julia 1.2

(v1.2) pkg> add VegaLite
  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
 Resolving package versions...
ERROR: Unsatisfiable requirements detected for package MathOptInterface [b8f27783]:
 MathOptInterface [b8f27783] log:
 ├─possible versions are: [0.1.0, 0.2.0, 0.3.0, 0.4.0-0.4.1, 0.5.0-0.5.1, 0.6.0-0.6.4, 0.7.0, 0.8.0-0.8.4, 0.9.0-0.9.1] or uninstalled
 ├─restricted by compatibility requirements with GLPK [60bf3e95] to versions: 0.9.0-0.9.1
 │ └─GLPK [60bf3e95] log:
 │   ├─possible versions are: [0.2.7-0.2.17, 0.3.0, 0.4.0-0.4.2, 0.5.0-0.5.1, 0.6.0-0.6.1, 0.7.0, 0.8.0-0.8.3, 0.9.0-0.9.1, 0.10.0, 0.11.0-0.11.1] or uninstalled
 │   └─restricted to versions 0.11.0 by an explicit requirement, leaving only versions 0.11.0
 └─restricted by compatibility requirements with LinQuadOptInterface [f8899e07] to versions: 0.8.0-0.8.4 — no versions left
   └─LinQuadOptInterface [f8899e07] log:
     ├─possible versions are: [0.1.0, 0.2.0, 0.3.0-0.3.1, 0.4.0-0.4.3, 0.5.0, 0.6.0] or uninstalled
     └─restricted by compatibility requirements with CPLEX [a076750e] to versions: 0.6.0
       └─CPLEX [a076750e] log:
         ├─possible versions are: [0.0.3-0.0.19, 0.1.0-0.1.7, 0.2.0-0.2.8, 0.3.0-0.3.3, 0.4.0-0.4.4, 0.5.0] or uninstalled
         └─restricted to versions 0.5.0 by an explicit requirement, leaving only versions 0.5.0

Closed by the v0.6.0 tag: https://github.com/JuliaOpt/CPLEX.jl/releases/tag/v0.6.0.


[9.x] Ability to attach multiple in-memory data in MailMessage

If we have an unknown number of elements to be attached, we have to do a foreach loop, which looks nasty.
The attachManyData() method is much cleaner.
    return (new MailMessage())
           ->attachManyData([
                [
                    $first_file,
                    'filename.pdf',
                    ['mime' => 'application/pdf']
                ],
                [
                    $second_file,
                    'filename.jpeg',
                    ['mime' => 'image/jpg']
                ],
            ]);

I would probably just do something like this:
return (new MailMessage)
        ->when(is_array($attachments), fn () =>
            collect($attachments)->each(fn ($a) => $this->attachData($a))
        );


Strip strings for attrs

There are spaces in genuses name, for example: "Lithops " and "Lithops" - looks like two different genuses.
Maybe good idea to clear (strip) name from spaces and other special symbols and lowercase.
Think about it.

Added script for fixing (cleaning from extra spaces) attributes in existing plants
7b80d84a3c01b08cc1f8cace7cd9fb377605eec8


ci(release): fix dependency installation

fix release.yml issues, ref: https://github.com/FeatureProbe/server-sdk-python/actions/runs/2845564065

Codecov Report

Merging #3 (8139371) into main (0bfcd33) will increase coverage by 0.55%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main       #3      +/-   ##
==========================================
+ Coverage   85.11%   85.66%   +0.55%
==========================================
  Files          34       34
  Lines        1196     1242      +46
==========================================
+ Hits         1018     1064      +46
  Misses        178      178

Impacted Files
Coverage Δ

featureprobe/hit_result.py
100.00% <0.00%> (ø)

featureprobe/http_config.py
100.00% <0.00%> (ø)

featureprobe/internal/semver.py
100.00% <0.00%> (ø)

featureprobe/model/segment.py
84.37% <0.00%> (+0.24%)
:arrow_up:

featureprobe/model/condition.py
83.89% <0.00%> (+0.27%)
:arrow_up:

featureprobe/config.py
96.66% <0.00%> (+0.66%)
:arrow_up:

featureprobe/context.py
96.77% <0.00%> (+0.77%)
:arrow_up:

featureprobe/access_recorder.py
92.30% <0.00%> (+0.92%)
:arrow_up:

featureprobe/data_repository.py
65.71% <0.00%> (+1.00%)
:arrow_up:

featureprobe/event.py
88.23% <0.00%> (+1.56%)
:arrow_up:

... and 3 more


How to add an operator as null check validation method?

I have hundreds of methods like this:
public static implicit operator bool (XYZ o) => o != null;

And I'm using
if (!xyz) return;
xyz.something();
...

How do I add those method as null check?

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

ID: d0ee01ce-a46f-74b6-eccc-9c9f69c74adf
Version Independent ID: c1d3f414-e493-d3a2-6b7c-729ff3fcc53b
Content: CA1062: Validate arguments of public methods (code analysis) - .NET
Content Source: docs/fundamentals/code-analysis/quality-rules/ca1062.md
Product: dotnet-fundamentals
GitHub Login: @gewarren
Microsoft Alias: gewarren

Also I'm not sure if I'm using the .editorconfig file correctly.
I have this extension method:
/// <summary>Shortcut for <see cref="string.IsNullOrEmpty(string)"/> method.</summary>
public static bool isEmpty(this string s)
	=> string.IsNullOrEmpty(s);

I've added following in .editorconfig file in solution:
dotnet_code_quality.CA1062.null_check_validation_methods =
	M:cnc.extensions.StringExtensions.isEmpty(string)

But following still gives me warning
if (name.isEmpty()) throw new ArgumentNullException(nameof(name));
var h = name.GetHashCode(); //CA1062

@mavasani It seems like there are two questions here, can you help?

Can you specify an operator as a "known" null-check validation method?
How to specify an extension method as a "known" null-check validation method.

@PawcioCNCProfi
I think what you want is to use the NotNullWhen attribute.  It's explained in some detail where we cover Nullable static analysis attributes. That article should help you find the right attribute for many different scenarios.
In your example above, this should work:
[NotNullWhen(true)]
public static implicit operator bool (XYZ o) => o != null;

I'll close this as an answered question. If this explanation doesn't solve your question, add a comment and we'll take a look.
/cc @mavasani @gewarren

@BillWagner I believe the question here is specific to CA1062 configuration, which can be used even if NRT is not enabled.

Thanks @Youssef1313 I didn't catch that. reopening

I think what you want is to use the [NotNullWhen]

Unfortunately this is not available in NET Framework :|


Visual Studio Debug IISExpress with FDE application

At least I think its an FDE application.  I have a .exe and I'm using
    <TargetFramework>netcoreapp2.2</TargetFramework>
    <RuntimeIdentifier>win10-x64</RuntimeIdentifier>

on my Web Application project.
Describe the bug
Moving From an out of process to an inprocess model  and uplifting the target framework from .net47  to .netcoreapp2.2   we ran into an issue where we could no longer launch in visual studio to debug via the IIS Express debug profile.  We would always get the 500.30 webserver error response.  ANCM In-Process Start Failure
event view log
Application '/LM/W3SVC/2/ROOT' with physical root 'C:\Users\A750501\git\csg-hie-broker\Src\Services\HieBroker\' hit unexpected managed exception, exception code = '0xe0434352'. Please check the stderr logs for more information.
exception in visual studio
Exception thrown: 'System.FormatException' in Microsoft.Extensions.Configuration.CommandLine.dll
when trying to run the lines
        public static IWebHost BuildWebHost(string[] args) =>
          WebHost.CreateDefaultBuilder(args)
            .UseStartup<Startup>()
            .UseIIS()
            .Build();

The args   array has one  entry   and the value is below.
%LAUNCHER_ARGS%
To Reproduce
Steps to reproduce the behavior:
1.Create an ASP.NET Core Web Application project
1.Open the .csproj file    and add in the      win10-x64
under the       netcoreapp2.2  node
1.Delete  the bin and obj  folder and run dotnet restore  in the solution directory

Add a web.config file  with the following content

<configuration>
  <system.webServer>
    <handlers>
      <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
    </handlers>
    <aspNetCore processPath="%LAUNCHER_PATH%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" arguments="%LAUNCHER_ARGS%" hostingModel="InProcess">
      <environmentVariables>
        <environmentVariable name="ASPNETCORE_HTTPS_PORT" value="44320" />
        <environmentVariable name="COMPLUS_ForceENC" value="1" />
        <environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" />
      </environmentVariables>
    </aspNetCore>
  </system.webServer>
</configuration>

update your project references to the ones below

 <PackageReference Include="Microsoft.ApplicationInsights" Version="2.10.0" />
    <PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.7" />
    <PackageReference Include="Microsoft.AspNetCore.Authentication" Version="2.2.0" />
    <PackageReference Include="Microsoft.AspNetCore.Authentication.Cookies" Version="2.2.0" />
    <PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="2.2.0" />
    <PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="2.2.5" />
    <PackageReference Include="Microsoft.AspNetCore.Mvc.Formatters.Json" Version="2.2.0" />
    <PackageReference Include="Microsoft.AspNetCore.Server.IIS" Version="2.2.6" />
    <PackageReference Include="Microsoft.Azure.Services.AppAuthentication" Version="1.2.0-preview2" />
    <PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="2.2.0" />
    <PackageReference Include="Microsoft.Extensions.Configuration.AzureKeyVault" Version="2.2.0" />
    <PackageReference Include="Microsoft.IdentityModel.Tokens.Saml" Version="5.5.0" />
    <PackageReference Include="Microsoft.Practices.ServiceLocation" Version="<IP_ADDRESS>" />
    <PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
    <PackageReference Include="Microsoft.AspNetCore" Version="2.0.2" />

Expected behavior
Be able to launch the webserver in debug mode with IISExpress and hit your breakpoints.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
---Easy Fix---
Remove the
   <RuntimeIdentifier>win10-x64</RuntimeIdentifier>
node in the csproj file of your web application.  This should change it from an FDE  application to either SCD or FDD application.  (I'm not exactly sure on the terminology)
--- Hard and dirty fix -----
I took some time to debug what was going on  in my .vs folder  in my applicationhost.config  file
I noticed  that  my  virtualDirectory@physicalPath was set to something like
{GitRepoLocation}{ProjectPath}
and not to
{GitRepoLocation}{ProjectPath}\bin\Debug\netcoreapp2.2\win10-x64
I set the value in the applicationhost.config   to the correct path which will allow me to edit my web.config file
In my web.config file   I update the following values
arguments="%LAUNCHER_ARGS%"    to   arguments=""
and I'm able to start debugging my application.
of course with this fix you will be updating your web.config every single build.

It also appears to fix this you can  use the nuget get reference
<PackageReference Include="Microsoft.AspNetCore.App"/>

but I'm not a big fan of pulling in a bunch of stuff that my application will not be using.

Ran into this issue as well and it had me guessing for a while. Our application runs a web host when no parameters are passed, otherwise it executes a command and then exits. Since %LAUNCHER_ARGS% is not a valid command in that context it complained and I didn't immediately recognize the error message as coming from our app.

@Frankwayne for your specific scenario, do you need to add a package reference to Microsoft.Extensions.Configuration.CommandLine? That may unblock the publish issue near term, however I'd like to clarify some things you are doing.
In general, since 2.1, we recommend publishing your application targeting Microsoft.AspNetCore.App. It guarantees that issues you hit like this won't happen when not targeting all necessary packages.
Also, based on the csproj, I don't think you are publishing FDE, rather SCD (self-contained). The only difference between a FDD and FDE is that there is an exe produced with FDE.
Why do you want to publish your application as standalone (SCD)? In general, we recommend publishing FDD or FDE as it allows the application to get patch updates without having to update the deployment. Especially if you are concerned about deployment size, FDD significantly reduces the size of your app if you are worried about that as well.
Let me know if you have other questions as well.

Exception thrown: 'System.FormatException' in Microsoft.Extensions.Configuration.CommandLine.dll

Is there a message associated with the exception at all? This error usually means the arguments couldn't be parsed properly. Could you dump out Environment.CommandLine to somewhere in your program main and see if anything looks suspicious there? (Share it with us if you can?)

%LAUNCHER_ARGS%

Oh, hang on. Is this the literal value in the args array? That would definitely cause the exception above. That variable is supposed to be filled in via environment variables when running F5, or during publish.

Is this the literal value in the args array?

Yup!

Adding @BillHiebert for VS thoughts.
@mjamin I'd like to get super clear about what's happening. Does this only occur when you F5-launch IIS Express in VS? What does the web.config look like if you publish to a file system path (via the Publish dialog or dotnet publish)? My suspicion is that it will work in that situation.
It could be the case that VS isn't setting the environment variable properly and that's why the token isn't getting replaced.

What happens if you get rid of the web.config? Unless you need customization, and I don't see any in the web.config above,  VS will configure ANCM in the applicationhost.config file it creates for the solution.

I can't reproduce this creating a new Asp.Net core 2.2 application, using the web.config above, and adding the win10-x64 RuntimeIdentifier.
Note that the physical path in the applicationhost.config file should point to the root of the project, not the bin folder.

@BillHiebert   You need to remove the packages and  use the ones I listed.

@jkotalik
Thanks for the response,  you are right its an SCD not FDE.  I would have to set the --self-contained false  on the dotnet publish command to get an FDE ( just learning about this stuff so thanks for the correction)
we will be moving to an FDD  deployment to take advantage of the patch updates.   We have also include the   .app nuget reference and removed the other ones since we only saw a .1kb  size increase of the application dll
this may be a random question, and I havent been able to find any good resources  on if   dotnet will only pull in the  nugets that are used  by the applications instead of all of the referenced ones like  .Net Framework used to.

@jkotalik
I just tested   adding in the  package
Microsoft.Extensions.Configuration.CommandLine      and it worked like a charm.  I'm going to close this case out.

Interesting, I get the exact opposite:

I presume you are launching in IIS Express? Can you share the project?

Here's the unmodified template project: WebApplication1.zip
I'd suspect it's a system/setup issue then, though. Maybe previously installed (and subsequently removed) previews of dotnet core 3? Or locale related (de-DE)?
C:\>dotnet --info
.NET Core SDK (gemäß "global.json"):
 Version:   3.0.100
 Commit:    04339c3a26

Laufzeitumgebung:
 OS Name:     Windows
 OS Version:  10.0.18362
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\3.0.100\

Host (useful for support):
  Version: 3.0.0
  Commit:  7d57652f33

.NET Core SDKs installed:
  3.0.100 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

Microsoft Visual Studio Professional 2019
Version 16.3.1
VisualStudio.16.Release/16.3.1+29324.140
Microsoft .NET Framework
Version 4.8.03752

Installed Version: Professional

ASP.NET and Web Tools 2019   16.3.283.64955
ASP.NET and Web Tools 2019

ASP.NET Web Frameworks and Tools 2019   16.3.283.64955
For additional information, visit https://www.asp.net/

C# Tools   3.3.1-beta3-19461-02+2fd12c210e22f7d6245805c60340f6a34af6875b
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

[...]

Something is indeed fishy here. I can't repro this with a brand new project but I can with the attached project. There's no web.config but there is a .vs/config/applicationHost.config with the following content related to ANCM
<configuration>
  <!-- ... -->
  <location path="WebApplication1" inheritInChildApplications="false">
    <system.webServer>
      <modules>
        <remove name="WebMatrixSupportModule" />
      </modules>
      <handlers>
        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
      </handlers>
      <aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" hostingModel="InProcess" startupTimeLimit="3600" requestTimeout="23:00:00" />
      <httpCompression>
        <dynamicTypes>
          <add mimeType="text/event-stream" enabled="false" />
        </dynamicTypes>
      </httpCompression>
    </system.webServer>
  </location>
</configuration>

@BillHiebert any thoughts here?

Deleting the applicationHost.config didn't fix anything.

I running into this same issue with an 3.0 application that was upgraded from 2.2.  When hitting F5 within visual studio and testing with Postman I get an ANCM In-Process Start Failure, with a log indicating that %launcher_args% is not a command.  Running with dotnet run in the console seems to work just fine.

added the win10-x64 runtimeIdentfier property

I didn't do that. That was what the original poster did but I don't believe it's what @mjamin did (this is part of what makes it confusing to post similar issues on closed issue threads 😉)

I couldn't reproduce it either way

Note that ANCM also logs errors to the Windows Event Application logs so you may want to check there. You can also enable Enhanced Diagnostics as described here

@BillHiebert I enabled logging on the ANCM and the error was similar to the original post. I get:

'%launcher_args%' is not a command.  See available commands.

I believe this error is coming from some of my code, which is attempting to look for runtime commands.  However, as I understand from this converation, the %launcher_args% should be replaced by visual studio when I launch the debugger.  As a short term work around, I added some code to my Program.Main, that filters the args[] for that specific argument.

However, as I understand from this converation, the %launcher_args% should be replaced by visual studio when I launch the debugger.

Yes, this is supposed to be happening.
I'll do a quick diff on my machine and see what's different between the attached project (which does repro on my machine) and my File > New project (which does not) and see what that leads to.
@BillHiebert wasn't able to repro with the attached project, which is suspicious to me.

I tried this again and can now repro it on a completely clean File > New Project for ASP.NET Core (the ASP.NET Core 3.0 Empty template, specifically).
I'm not sure why this is popping up now and seems to be hard to repro but the problem is pretty straightforward.
For whatever reason, VS launches iisexpress but only sets LAUNCHER_PATH, not LAUNCHER_ARGS. Possibly, this is because it doesn't need to provide any args. In 2.2 and earlier, there were always LAUNCHER_ARGS because the launcher was dotnet.exe and you had to specify the app dll as an argument. In 3.0, the app itself is an exe and there's no need for args.
Since VS isn't setting the variable, when we use ExpandEnvironmentStringsW in ANCM it doesn't expand %LAUNCHER_ARGS% at all and leaves it as-is. This results in the literal string %LAUNCHER_ARGS% from being added to the arguments.
We could consider trying to filter this out better.
@mjamin what I'm not seeing is an error when this happens. Is your site failing with the 500 error described above?

@BillHiebert did we stop setting %LAUNCHER_ARGS% if the variable would be empty? That the only thing I can see that would affect this behavior.

@jkotalik Not that I am aware of. If someone could share a repro that would be the best way to debug this.

I can consistently repro getting the %LAUNCHER_ARGS% string in args[0] like this:

In VS: Create New Project > ASP.NET Core Web App.
Choose "ASP.NET Core 3.0" and any template.
Set a breakpoint in Main
F5
Check the value of args[0] in the debugger

I think we know the issue, it's that pre-3.0 the F5 scenario always involved setting LAUNCHER_ARGS because the app you launched was dotnet WebApplication.dll. In 3.0, building produces an exe, so generally there is no need for arguments. VS is just launching WebApplication.exe. As a result, the LAUNCHER_ARGS value isn't set.
It's not clear to me the best way to go forward. I think all the components are working as expected. It sounds like VS is still "setting" LAUNCHER_ARGS, but of course it's setting it to an empty string since there are no args. ANCM is expanding environment variables, which in Windows means that empty vars are just not replaced.
None of the "solutions" I see are particularly clean... I don't know that VS can do anything to "force" the environment variable to exist even though it's empty. For ANCM to do something, it would have to completely rewrite the environment variable expansion (and it would be a risky breaking change).
I've yet to encounter an error in the default template when doing this though. So It may be that the best thing to do here is nothing. As long as whomever is reading the args is prepared to expect this value (and it seems our default template is), the scenario isn't broken.

At the very least that needs to be documented. And that's going to be a very ugly paragraph. 🤔

How about removing arguments="%LAUNCHER_ARGS%" from the applicationhost.config when there are no application arguments defined in the project settings? VS already seems to be updating the file on every launch anyway.

How about removing arguments="%LAUNCHER_ARGS%" from the applicationhost.config when there are no application arguments defined in the project settings? VS already seems to be updating the file on every launch anyway.

@BillHiebert would this be feasible? It seems like the only way to suppress this behavior
@mjamin I'd suggest, for now, adding logic to ignore this value. It's unfortunate but it's going to be a tricky fix.

I've confirmed that setting the environment variable to an empty string does not work:
#include <iostream>
#include <Windows.h>

int main()
{
    wchar_t buf[4096];
    auto size = ExpandEnvironmentStrings(L"%ENVVARTEST_FIRST%|%ENVVARTEST_SECOND%|%ENVVARTEST_THIRD%", buf, 4096);
    if (size == 0) {
        std::wcerr << L"Failed to expand strings" << std::endl;
    }
    else {
        std::wcout << L"Expanded string: " << buf;
    }
}

> $env:ENVVARTEST_SECOND=""
> .\x64\Debug\ConsoleApplication.exe
%ENVVARTEST_FIRST%|%ENVVARTEST_SECOND%|%ENVVARTEST_THIRD%

Trying in cmd doesn't even work because set ENVVARTEST_SECOND= is how you unset a variable.
So in general, I don't think there's anything we can do from the runtime/ANCM side to handle this better. Special-casing this feels wrong to me.
I think this might be better resolved as VS Feedback.

@Frankwayne can you open an issue on the VS feedback site for this issue? Thanks.

@BillHiebert     My issue was resolved and I attempted to close the case.  I have no idea why it continued  or the  issues that they were trying to work through here on.

@Frankwayne are you referring to an issue you opened on the VS Feedback site? Can you send me a link to it? Thanks.

No, @Frankwayne is the original poster and closed this issue earlier. @mjamin was discussing other things here.
In general, let's just say this. For anyone on this thread or who finds this thread and is encountering this problem: Please file a VS feedback item and link it here.

I opened an issue on the VS feedback site a few weeks ago: https://developercommunityapi.westus.cloudapp.azure.com/content/problem/845413/aspnet-core-web-project-gets-passed-a-launcher-arg.html

@mjamin thanks! I've found the internal tracking ticket for that and provided some additional context. We'll work to try and get some progress on it.


Rename scalacheck-binding to laws, etc.

This commit simply moves the files from one place to another.
The laws are now located in a laws module/directory, and will
be published as spire-laws.
It also removes the Arbitrary[_] instances from ArbitrarySupport
(located in the tests project) and instead moves the relevant logic
to Gen[_] instances inside of spire.laws.gen and Arbitrary[_]
instances inside of spire.laws.arb.
It updates some of the instances to be a bit more idiomatic
and removes some potential problems. It also beings the work of
creating a wide variety of flexible Gen[_] instances to remove the
need to create so many ad-hoc Arbitrary[_] instances in our tests.
Finally, it begins standardizing around the SpireTests and SpireProperties
traits. These traits disable ScalaTest's === to avoid conflicts, and
start to standardize on the use of ScalaTest's matchers (e.g. shouldBe)
over the use of assert().
(The difference between SpireTests and SpireProperties largely comes down to
whether you use test("xyz") or property("xyz"), and whether you are using
ScalaCheck to do property-based testing.)

Review by @tixxit, @rklaehn, and @InTheNow.

I had intended to completely standardize our tests (in terms of traits, package location, style, etc) before submitting a PR, but I realized that the results would be too big to review, and would hit conflicts with most future PRs. Hopefully a somewhat piecemeal approach will work to standardize our tests.

That's a good point. I'll update it to use either the current approach or one based on Double.

What's the purpose of disabling ScalaTest's ===? So you can use spires === instead?

@rklaehn Yes, I would prefer if we could do import spire.implicits._ (or similar) without having to worry about creating ambiguous implicits with ScalaTest.

(If everyone else disagrees I can remove this part though.)

Other than the rational gen, LGTM. I'm fine with disabling ScalaTests ===

@rklaehn Your suggestion to improve Gen[Rational] exposed a couple of minor bugs (that I fixed). So obviously it was an insightful and timely suggestion. Thanks!


Cloudflare Pages web app

[x] Bundle for deployment
[x] cloudflare branch
[x] github action to build and deploy
[x] Create Cloudflare page

Closing - deployed


Enable Apex Mocks for (free) Continuous Quality Metrics with Code Climate

This pull request only adds a few configuration files to this repository to allow Continuous Code Analysis with the Code Climate platform.
Code Climate integrates tightly into Github and validates code on every commit or pull-request. Code Climate is free forever for Open source repos and works instantly without even creating a code climate account.
We (a bunch of Salesforce developers working for Salesforce.com ISV Up2Go) recently built an open source validation engine for Apex classes and triggers (based on the famous Java tool PMD). We now want to make it known and accessible for as many projects as possible. We believe that not only private companies can improve their code base by continuous automatic code analysis but also Open source projects.
This is how Cumulus would look like:
GitHub UI (using the Chrome extension) showing overall grades per class and trigger:

Rule violations shown in the Github source view (using the Chrome extension):

The repo's Feed shows how code quality improves or degrades over time and where

Disclaimer: We are not connected to Code Climate in any way. This is not a commercial product of Up2Go but only a hobby sideproject of it's developers. We are just doing this for fun and to spread Clean Code in the Salesforce.com developer community. We don't get any money for our engagement.

Thanks @up2go-rsoesemann for this, i'm keen to adopt this new innovation you have brought to the community. Thanks for helping us along with adopting it. I'd like to also take some time to review the rule set you've attached. This will likely be in the coming weeks though. Lets see if we can for sure get this done for Dreamforce at the very latest! 👍

@afawcett - with Travis CI all configured, is this PR still applicable?

@frup42 oh yeah, travis is just running a deploy and the tests, its not doing analysis on the code.

@afawcett in case you need my help configuring this please get in touch.


Page freezes and return TimeoutError

Steps to reproduce

Puppeteer version: 5.2.1
Platform / OS version: MacOS Catalina 10.15.6
Node.js version: 13.13.0

What steps will reproduce the problem?
this.browser = await puppeteer.launch();
this.page = await this.browser.newPage();

await this.page.setRequestInterception(true);

// this.page.on('request', (request) => request.continue());

this.page.on('domcontentloaded', () => console.log('domcontentloaded'));
this.page.on('load', () => console.log('load'));

await this.page.goto(`http://localhost:8080/`);

Question?
Is it normal, if i try navigate to page with setRequestInterception(true); without request event and page freezes and return TimeoutError?

Yes. setRequestInterception requires you to handle the request event and either continue or abort it.

It was unexpected for me, and I spent some time on the solution,
thanks for the answer.


Rename renderMonth to renderMonthTitle and renderCaption to renderMonthElement

Does this make sense?
@GoGoCarl @ljharb @backwardok
@backwardok suggested renderMonthText and renderMonthHTML but I don't know that that's very inline with other props in react-dates. title matches the current nomenclature? renderTitleElement might be clearer? Idk.
I wanted to get this out with the latest breaking version.

Coverage remained the same at 84.785% when pulling 1d1f4d84fe0acb0babcd8606507d49d530d70bbb on maja-clean-up-caption-month-naming into ca3906b15cacab09351c07f9e57be1d58ea53ef7 on master.

@majapw FWIW I actually like the combination of renderMonthText and renderMonthElement, or even renderTitleText/renderTitleElement, as the method names associate the two together as related, with the suffix giving sufficient context of what's expected to be returned (I'd prefer "Element" over "HTML").


Add Spanish language

Thank you for translate. I'll review this later but it looks well.

Your translation should be compatible with theSpawn v1.7.0-dev. theSpawn v1.6.2 will be outdated soon, theSpawn v1.7.0-dev is also on poggit now.

Is everything correct now?

That isn't resolved.

That isn't resolved.

Its at the line 88 and 89 in https://github.com/MrBlasyMSK/theSpawn/blob/patch-1/resources/Languages/es_ES.yml
form-setWarp-menu-togglePermDescription: "¿Debe el nuevo warp tener un permiso? (opcional)"
form-setWarp-menu-inputIconPathDescription: "Icono del nuevo warp (opcional)"


Added some bean overrides for native compilation

Some default beans aren't compatible with Spring AOT when compiled to native. The resourceInjector now defaults to the ConfigurationResourceInjector, as it will also automatically consider Spring Beans as resources.

 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.


Option to restore terminal when interrupted

Add option ExitRawOnInterrupt (default off). When turned on, change
disposition of SIGTERM and SIGINT, so that we restore the terminal
mode before exiting. That way, prevents users from having to reset
the terminal themselves most of the time.

Hi, @nicollet
The current version has a bug that does not restore the terminal when receiving a SIGTERM/SIGINT.
But I think adding an option ExitRawOnInterrupt to the configuration is a bad idea because the configuration is changeable.
I have an implementation for fixing it in #200. You can check if that is what you want.
If not, you can reopen it.


Cleanup docker hub

What piece of documentation is affected?
https://hub.docker.com/u/joshxt
What part(s) of the article would you like to see updated?
When there is time, remove all repositories except joshxt/agixt for limiting confusion and errors
Click the image, goto settings, scroll down to delete
(e.g. ppl pulling a -streamlit image that's not used nor built anymore)
Additional Information
No response
Acknowledgements

[X] My issue title is concise, descriptive, and in title casing.
[X] I have searched the existing issues to make sure this feature has not been requested yet.
[X] I have provided enough information for the maintainers to understand and evaluate this request.

Cleaned up dockerhub.


Hive registration: use full path, make it possible to disable

Use full path in table location
Make it possible to disable Hive registration by specifying an empty data.publisher.job.type

@chavdar can you review?

Coverage decreased (-0.01%) to 41.881% when pulling 7022770fb5287e3b2c89a35a5bebe7514ae8cfb0 on zliu41:hive into 5f9886cd7250fcaf714b57ee368246a405ce26a4 on linkedin:master.


feat(ui): Fix width of user profile page

fixes #533
I stretch the width to 100% on the user profile page to match navbar and footer, which are using 100% width. The font sizes in the user profile page will remain relatively larger since it's configured using wider predefined screen width - I will leave it for now.

@tschaffter let me know if you still have the messed texts for "ROCC user since" and "Profile last updated".

@tschaffter let me know if you still have the messed texts for "ROCC user since" and "Profile last updated" - it might not be fixed by just stretching the width of page.

I'm now on my MBP where the text is also buggy.

And are you using chrome browser?

I'm using the latest version of FF.

Thanks @tschaffter
I can reproduce what you have using Firefox browser


Idea: Increase performance by not doing unneccessary AST visits

This would need some performance testing / spike first, but we could investigate if it would be benefical to scan the source code for potentially interesting patterns before the run the AST visitor on them.
Similar to what Ben Newman is doing here: https://github.com/benjamn/module-imports/blob/92f3f0cabb50f9e3a3c0e7258f5ab4f373ae7b42/index.js#L8-L18

It could potentially be a part of the plugins (similar to shouldComponentUpdate)

I agree with you and had a short discussion with @marionebl about creating a minimal parser which only understands es6 modules and maybe the require-function.
That way everything else could be just skipped.
Shouldn't be too hard to create such a beast. And it would improve the AST walking very much.

The aproach of Ben Newman currently does not match the designed API of paeckchen, because there is no knowledge of the source-code but only the AST is transfered between internal modules.


Add Grid Following Model

Add Grid Following model and provides support for PSY 1.7. It eliminates the usage of CurrentController, for VoltageModeControl (for Grid Forming) and CurrentModeControl (for Grid Following).
Docs were also modified to include this change.

@m-bossart can you take a look at this PR to see if the model matches the ones in PSCAD?


Unable to generate docs

Missing code formatting on http://fsprojects.github.io/FSharp.Text.RegexProvider/
Running build GenerateDocs gave this error:
System.TypeInitializationException: The type initializer for 'Microsoft.FSharp.Metadata.AssemblyLoader' threw an exception.
---> System.TypeInitializationException: The type initializer for '<StartupCode$FSharp-PowerPack-Metadata>.$Metadata' threw an exception.
---> System.ArgumentException: could not produce an FSharpAssembly object for the assembly 'FSharp.Core' because this is not an F# assembly

Hi @forki, @vasily-kirichenko. Any ideas on how to fix this?
And since I'm hassling you already, do either of you know how to get the travis-ci build working again after moving this project to FSharp.Text.RegexProvider?

You should not copy Fsharp.Core.dll to target directory (bin).

Tried setting CopyLocal=False for FSharp.Core, but still get the same error.

works for me

@forki, i've no idea why my setup isn't working. Could you please build ReleaseDocs to sort the website out while I try to work out what the problem is on my machine?

let me convert to paket and update FSF ;-)

https://github.com/fsprojects/FSharp.Text.RegexProvider/pull/13 <- worked for me and I was able to update the docs

I take that back. somethign went wrong

ok now it looks good

Works on my machine :tm: . Thanks a lot @forki!


510 fix print view

Resolves #510

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

6 of 6 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.001%) to 95.089%

Totals

Change from base Build<PHONE_NUMBER>:
0.001%

Covered Lines:
6670

Relevant Lines:
6789

💛  - Coveralls


How to customize IdentityUser

Hi,
i'am using the AspNetIdentity Sample and it works so far (user is created).
Now I have tried to customize the User : IdentityUser with a new property "Group".
public class User : IdentityUser
{
    public string FirstName { get; set; }
    public string LastName { get; set; }
    public string Group { get; set; }
}

Now this message comes into play:
The model backing the 'Context' context has changed since the database was created. Consider using Code First Migrations to update the database
I know EF a little bit and added migrations to the project with this command:
Enable-Migrations -ContextTypeName SelfHost.AspId.CustomContext
In Migrations/Configuration.cs i've change AutomaticMigrationsEnabled = true.
Then: update-database results with:
There is already an object named 'AspNetRoles' in the database.
How can i change the users data?
Thanks for any hints !

This is an EF issue, not an IdSvr issue. Check with Microsoft's support on how to handle this. But yes, I think you're on the right track with doing migrations.

Seems that EF has problem with the two different context in the sample.
Removed one and it works now.


Investigate the effect of "treefrog leapjoin"-ing more than one Variable

Right now, the TFLJ algorithm reduces the need for temporary variables, when there is one dynamic data source (one Variable) and "leapers" over Relations only.
In some situations, this can mean a temporary relation is still required if one needs to join more than one variable. It would be interesting to investigate how/if being able to remove such temporaries would help the polonius benchmarks.
This might open the possibility to "inline" intermediate relations themselves (and not just the "steps" or indices) completely, for instance the big subset and requires relations, and whose tuples might not all need be produced in the first place.
Some details on how to do this are in this comment by Frank.
(Note: this might need to wait for TFLJ to land on master, polonius using it, and having more diverse benchmarks, checking with the rustc-perf benchmarks as well, or also having datafrog-specific benchmarks)

A quick comment here: the reason the current implementation uses only one variable (and as many relations as you like) is that the logic only correctly implements "updates resulting from updates to the source variable". Changes to the source variable drive the determination of output changes.
Responding to changes to multiple variables will almost certain require as many calls to the current leapjoin_into as there are variables involved. They will probably also require differently indexed inputs (because the variables probably bind different values, which means that other participating variables and relations will need to respond to different subsets of values).
Not fundamentally hard to do, but might be a bit of a head-scratcher about how to get it to look good, and whether the overhead (e.g. multiple indices for participating variables) actually improves over using a temporary (I'm not sure either way).

Some missing context: this issue was created as a possible avenue of exploration for the people who wanted to work on NLLs at the last "impl Days" for RustFest Paris. As Frank mentioned before, it is uncertain it would actually improve things, and there are surely more actionable things to try before even considering this; so I think we can close this issue for now as it doesn't represent a problem in 🐸 per se.


UTM can't start a virtual mips machine

I have downloaded a iso (debian-10.8.0-mips64el-xfce-CD-1.iso), and plan to install it with UTM. But it won't work. When I build it with mips64(little endian) and MIPS Malta Core LV, it just black screen , nothing shows up in the application window.(no matter I load the iso or not, it still the same. I think it just can't boot up)
If it needs a special way to run the special arch，please inform me. Thankyou.
PS: I have run iso with x86_64 and aarch64 successfully. And I run mips64el at the same way, but it won't work.(of course I have selected with different arch and cpu model)

Hi @752228595, thanks for the detailed explanation. However, I can't reproduce this on macOS - instead I get a crash. Are you on Mac or iOS?
I tried running a blank MPS64 (little endian) machine on my Mac (macOS 11.2.2) in UTM (2.0.23). This results in a crash when starting the VM:
BUG IN CLIENT OF LIBPLATFORM: Trying to recursively lock an os_unfair_lock in libsystem_platform.dylib.
VM is attached.
MIPS64.utm.zip
I am unfamiliar with this type of system, so not sure if e. g. a firmware file needs to be supplied to make it work.

Hi @conath , thanks for replying.
I am using utm on Mac with apple silicon. And I have tested your vm just now, it still the same --- black screen.
About the firmware, I think it might need it.
Here is the url , I have tested successfully in qemu. Hope it would help.
https://markuta.com/how-to-build-a-mips-qemu-image-on-debian/

Ok, here's how you "translate" the commands to UTM configuration. You need to import the kernel and ramdisk image files as Drives and then change the Image Type.

Please let me know if it works.

No, it still won't work.

Are you trying to get a Desktop OS running or console mode? In case of console only, you will need to switch to "Console Only" in the Graphics configuration.

When i run it with qemu, it doesn't have gui.(Console mode)
And I have tried "Console Only" mode in UTM. But it still won't work, nothing shows up (black screen).(Different : A small red vertical line is in the upper left corner.)

Going by the instructions listed, make sure you have "malta" selected as your system target. Then make sure you have the drives set up as Linux Kernel and Linux RAM Disk. Finally, in QEMU tab add append "root=/dev/sda1 console=ttyS0 nokaslr" as an additional argument on the bottom. This should generate a QEMU argument that is the same as the one in the guide (with other added arguments). You can also debug by exporting the arguments to get the full QEMU command and running it.
MIPS/other architectures are not fully supported yet so they require a bit more work to get running. Right now the focus is on x86, arm, ppc which are the ones most people are using.


Feature request: Inverse of C417: check for f(x) for x in iterable

Description
(Thanks for flake8-comprehensions, it's a good plugin)
Check for f(x) for x in iterable in any comprehension, and suggest replacing it with map(f, iterable).
This is not objectively better like some other rules are, but IMO this is cleaner.

Personally I find the generic syntax more readable, it means one less function the reader has to know about. So I'm not sure right now, maybe if others weigh in we could add this.

Sorry, what do you mean with "the generic syntax"? The comprehensions?
This could also be an optional (enable in the config, disabled by default) rule, because I think this would be a good addition to this package, even if this is a thing that you or other people disagree with.
The same thing applies to x for x in iterable if condition(x) and f(x) for x in iterable if condition(x) for filter(condition, iterable) and map(f, filter(condition, iterable))
IMO map+filter is ugly, but that could also be an optional rule.

The same could apply in reverse, you could make a rule that detects usage of map and filter and suggests converting it to a generator expression/list comprehension depending on if you wrap it in list or not

Sorry, what do you mean with "the generic syntax"? The comprehensions?

Yes, it's generic in that you can use list comprehensions for many different purposes.
Anyway I don't think we can consider the conversion between map and comprehensions, because map is lazy whilst comprehensions aren't. I have removed rules in the past due to changing laziness, since it's not always safe to do.

because map is lazy whilst comprehensions

This is not true for generator expressions, only for list/set comprehensions.
Anyway, I'm fine with this plugin not supporting that, both ways are pretty opinionated.

This is not true for generator expressions, only for list/set comprehensions.

Ah yes, that's true. But still I think map isn't cleaner, as you say, it's opinion at that point.


Broken link to Git credentials API docs

At the bottom of http://git-scm.com/docs/gitcredentials:

CUSTOM HELPERS
You can write your own custom helpers to interface with any system in which you keep credentials. See the documentation for Git’s credentials API for details.

The link points to http://git-scm.com/docs/technical/api-credentials.html which redirects to the much less helpful http://git-scm.com/docs landing page.
The same issue is also present on http://git-scm.com/docs/git-credential

FYI: I figured out where it should point: https://www.kernel.org/pub/software/scm/git/docs/technical/api-credentials.html
I haven't figured out yet how to fix it :-| but it might be even a bigger issue if those types of links are not replaced properly.
Perhaps i will find time on the weekend or someone else.

The issue is that the git-scm page does not pull in Documentation/technical at all. It would probably be reasonable to import them, but not link directly from the main index page (so as not to clutter it). It would need some hacking of the preindex rake task.
I'm not sure how much work that would be, but it probably makes sense to hold off until we see what's happening with #942, as the whole import process will likely need re-written.

Closing since #994 describes this better.


Incorrect Page URL visited when running tests in parallel in one file

What is your Test Scenario?
With a concurrency >1, running multiple fixtures / tests in one file that have different page URLs will fail due to the incorrect URL being visited.
Issue seems to have been introduced in 1.9.2-rc.1 as 1.9.1 does not exhibit this bug.
What is the Current behavior?
Tests are visiting wrong page URLs
What is the Expected behavior?
Tests should visit page URLs they are given.
What is your web application and your TestCafe test code?
import { ClientFunction, Role, Selector, t } from "testcafe";

const setAuthCookie = ClientFunction(auth => {
  return new Promise(resolve => {
    document.cookie = `demo_auth=${auth}; path=/`;
    resolve();
  });
});

const roleWrapper = USER => {
  return Role(
    'https://en.wikipedia.org/',
    async () => {
      await setAuthCookie(USER.auth);
      await t.eval(() => window.location.reload());
      await t.expect(Selector('.mp-topbanner').exists).notOk();
    },
    t,
    { preserveUrl: false, USER }
  );
};

const DEMO_ROLE = roleWrapper({auth: '123456'});

fixture`F1`
  .page('https://en.wikipedia.org/wiki/United_States')
  .beforeEach(async t => {
    await t.useRole(DEMO_ROLE).wait(1000);
  });

test('T1', async t => {
  const location = await t.eval(() => window.location.pathname)
  await t.expect(location).eql('/wiki/United_States');
});

fixture`F2`
  .page('https://en.wikipedia.org/wiki/Canada')
  .beforeEach(async t => {
    await t.useRole(DEMO_ROLE).wait(1000);
  });

test('T2', async t => {
  const location = await t.eval(() => window.location.pathname)
  await t.expect(location).eql('/wiki/Canada');
});

Steps to Reproduce:
npx testcafe 'chrome' -c 2 examples/testURLCollisions.js

Your Environment details:

testcafe version:                   1.12.0
node.js version:                    v14.15.5
command-line arguments:  'chrome' -c 2 examples/testURLCollisions.js
browser name and version: Chrome 88
platform and version:          Linux
other:

I reproduced the problem, and now we need some time to figure out what is wrong. Please stay tuned. In the meantime, you can use a workaround and split the fixtures into 2 different files, and run both using concurrency.


Test

Created a Unit Test to cover the profile module fully, the test fails to click the previous games button.

Great job with these!


Feature Request: Key Bindings

Right arrow is full hint completion #244
It would be great if the end user could have the ability...
to make TAB the full hint completion instead of Right arrow...
Personally for me on my macbook pro keyboard the tab is a much
easier keystroke to complete than the right arrow which is far way
in the right side of my keyboard where as TAB is right there and quick...
And everyone has a different preference so with that in mind...
This is an example of something that ideally would be configurable.

i think this is already configurable. it's up to the host of reedline to configure it i believe. so e-q in our case.

@fdncred ok cool...
so should this be an issue be in engine-q instead so that I can set my TAB
to accomplish the full hint completion ?

yes, it should be an issue in e-q. there may already be one there - not sure.