Gnome web (epiphany) on gtk4 from source build fails

Gnome web (epiphany) on gtk4 from source build fails
output:
this derivation will be built:
  /nix/store/9mbdhad6rafirnmh65fjkp8vjn9z38q5-epiphany-43.drv
building '/nix/store/9mbdhad6rafirnmh65fjkp8vjn9z38q5-epiphany-43.drv'...
unpacking sources
unpacking source archive /nix/store/8vdj6lbkrnw0xakxzjifq2khk8bk066s-epiphany-wip-exalm-gtk4.tar.gz
source root is epiphany-wip-exalm-gtk4
setting SOURCE_DATE_EPOCH to timestamp<PHONE_NUMBER> of file epiphany-wip-exalm-gtk4/third-party/readability/reader.css
patching sources
patching script interpreter paths in post_install.py
post_install.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/kwp97hvzh4dff613a4vhpbl6yblavshb-python3-3.9.11/bin/python3"
configuring
meson flags: --buildtype=plain         --libdir=/nix/store/b9033231xbmvxx0hz9gkl2ni0fn3aywl-epiphany-43/lib --libexecdir=/nix/store/b9033231xbmvxx0hz9gkl2ni0fn3aywl-epiphany-43/libexec         --bindir=/nix/store/b9033231xbmvxx0hz9gkl2ni0fn3aywl-epiphany-43/bin --sbindir=/nix/store/b9033231xbmvxx0hz9gkl2ni0fn3aywl-epiphany-43/sbin         --includedir=/nix/store/b9033231xbmvxx0hz9gkl2ni0fn3aywl-epiphany-43/include         --mandir=/nix/store/b9033231xbmvxx0hz9gkl2ni0fn3aywl-epiphany-43/share/man --infodir=/nix/store/b9033231xbmvxx0hz9gkl2ni0fn3aywl-epiphany-43/share/info         --localedir=/nix/store/b9033231xbmvxx0hz9gkl2ni0fn3aywl-epiphany-43/share/locale         -Dauto_features=enabled         -Dwrap_mode=nodownload         --prefix=/nix/store/b9033231xbmvxx0hz9gkl2ni0fn3aywl-epiphany-43 -Dunit_tests=disabled
The Meson build system
Version: 0.57.1
Source dir: /build/epiphany-wip-exalm-gtk4
Build dir: /build/epiphany-wip-exalm-gtk4/build
Build type: native build
Project name: epiphany
Project version: 42.beta
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.2
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /nix/store/00ipmxm9k10lqjklrb2rbsjgkg1bsx7c-pkg-config-wrapper-0.29.2/bin/pkg-config (0.29.2)
Run-time dependency iso-codes found: YES 4.6.0
Run-time dependency cairo found: YES 1.16.0
Found CMake: /nix/store/ilykjpp6m7brss45clmp2dxmlknvb2m4-cmake-3.21.2/bin/cmake (3.21.2)
Run-time dependency gcr-4-gtk4 found: NO (tried pkgconfig and cmake)

meson.build:81:0: ERROR: Dependency "gcr-4-gtk4" not found, tried pkgconfig and cmake

A full log can be found at /build/epiphany-wip-exalm-gtk4/build/meson-logs/meson-log.txt
error: builder for '/nix/store/9mbdhad6rafirnmh65fjkp8vjn9z38q5-epiphany-43.drv' failed with exit code 1;
       last 10 log lines:
       > Host machine cpu: x86_64
       > Found pkg-config: /nix/store/00ipmxm9k10lqjklrb2rbsjgkg1bsx7c-pkg-config-wrapper-0.29.2/bin/pkg-config (0.29.2)
       > Run-time dependency iso-codes found: YES 4.6.0
       > Run-time dependency cairo found: YES 1.16.0
       > Found CMake: /nix/store/ilykjpp6m7brss45clmp2dxmlknvb2m4-cmake-3.21.2/bin/cmake (3.21.2)
       > Run-time dependency gcr-4-gtk4 found: NO (tried pkgconfig and cmake)
       >
       > meson.build:81:0: ERROR: Dependency "gcr-4-gtk4" not found, tried pkgconfig and cmake
       >
       > A full log can be found at /build/epiphany-wip-exalm-gtk4/build/meson-logs/meson-log.txt
       For full logs, run 'nix log /nix/store/9mbdhad6rafirnmh65fjkp8vjn9z38q5-epiphany-43.drv'.

The package.nix:
{ lib
, stdenv
, meson
, ninja
, gettext
, fetchurl
, fetchpatch
, pkg-config
, gtk4
, glib
, icu
, cmake
, wrapGAppsHook
, gnome
, libxml2
, libxslt
, itstool
, webkitgtk
, libsoup
, glib-networking
, libsecret
, libnotify
, libarchive
, p11-kit
, sqlite
, gcr
, isocodes
, desktop-file-utils
, python3
, nettle
, gdk-pixbuf
, gst_all_1
, json-glib
, libdazzle
, libhandy
, buildPackages
, withPantheon ? false
}:

stdenv.mkDerivation rec {
  pname = "epiphany";
  version = "43";

  src = fetchurl {
    url = "https://gitlab.gnome.org/GNOME/epiphany/-/archive/wip/exalm/gtk4/epiphany-wip-exalm-gtk4.tar.gz";
    sha256 = "sha256-VFj/G6f91HWJl2vLSKsJX5hS1ukXPLrTVID94q1WBbM=";
  };

  patches = lib.optionals withPantheon [
    # Pantheon specific patches for epiphany
    # https://github.com/elementary/browser
    #
    # Patch to unlink nav buttons
    # https://github.com/elementary/browser/pull/18
    (fetchpatch {
      url = "https://raw.githubusercontent.com/elementary/browser/cc17559a7ac6effe593712b4f3d0bbefde6e3b62/navigation-buttons.patch";
      sha256 = "sha256-G1/JUjn/8DyO9sgL/5Kq205KbTOs4EMi4Vf3cJ8FHXU=";
    })
  ];

  nativeBuildInputs = [
    desktop-file-utils
    gettext
    itstool
    libxslt
    gcr
    meson
    cmake
    ninja
    pkg-config
    python3
    wrapGAppsHook
    buildPackages.glib
    buildPackages.gtk3
  ];

  buildInputs = [
    gdk-pixbuf
    glib
    gst_all_1.gst-libav
    gst_all_1.gst-plugins-bad
    gst_all_1.gst-plugins-base
    gst_all_1.gst-plugins-good
    gst_all_1.gst-plugins-ugly
    gst_all_1.gstreamer
    gtk4
    icu
    isocodes
    json-glib
    libdazzle
    libhandy
    libnotify
    libarchive
    libsecret
    libsoup
    libxml2
    nettle
    p11-kit
    sqlite
    webkitgtk
  ];

  # Tests need an X display
  mesonFlags = [
    "-Dunit_tests=disabled"
  ];

  postPatch = ''
    chmod +x post_install.py # patchShebangs requires executable file
    patchShebangs post_install.py
  '';

  passthru = {
    updateScript = gnome.updateScript {
      packageName = pname;
    };
  };

  meta = with lib; {
    homepage = "https://wiki.gnome.org/Apps/Epiphany";
    description = "WebKit based web browser for GNOME";
    maintainers = teams.gnome.members ++ teams.pantheon.members;
    license = licenses.gpl3Plus;
    platforms = platforms.linux;
  };
}

Technical details

system: "x86_64-linux"
host os: Linux 5.17.2, NixOS, 22.05 (Quokka)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.7.0
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

It looks like this is depending on an unreleased version of https://gitlab.gnome.org/GNOME/gcr. You could try changing the gcr package to point to master instead of the release.

so i have this package for gcr
{ lib, stdenv
, fetchurl
, fetchpatch
, pkg-config
, meson
, ninja
, gettext
, gnupg
, p11-kit
, glib
, libgcrypt
, libtasn1
, gtk4
, pango
, libsecret
, openssh
, systemd
, gobject-introspection
, wrapGAppsHook
, libxslt
, vala
, gnome
, python3
, shared-mime-info
}:

stdenv.mkDerivation rec {
  pname = "gcr-4-gtk4";

  src = fetchurl {
    url = "https://gitlab.gnome.org/GNOME/gcr/-/archive/master/gcr-master.tar.gz";
	sha256 = lib.fakeSha256;
  };

  patches = [
# Pull upstream fix for meson-0.60:
    #  https://gitlab.gnome.org/GNOME/gcr/-/merge_requests/81
    (fetchpatch {
      name = "meson-0.60.patch";
      url = "https://gitlab.gnome.org/GNOME/gcr/-/commit/b3ca1d02bb0148ca787ac4aead164d7c8ce2c4d8.patch";
      sha256 = "15gwxkcm5q5p87p5lrqwgykpzx5gmk179xd3481yak93yhbvy165";
    })
  ];

  nativeBuildInputs = [
    pkg-config
    meson
    python3
    ninja
    gettext
    gobject-introspection
    libxslt
    wrapGAppsHook
    vala
    shared-mime-info
  ];

  buildInputs = [
    gnupg
    libgcrypt
    libtasn1
    pango
    libsecret
    openssh
    systemd
  ];

  propagatedBuildInputs = [
    glib
    gtk4
    p11-kit
  ];

  checkInputs = [
    python3
  ];

  mesonFlags = [
    "-Dgtk_doc=false"
    # We are still using ssh-agent from gnome-keyring.
    # https://github.com/NixOS/nixpkgs/issues/140824
    "-Dssh_agent=false"
  ];

  doCheck = false; # fails 21 out of 603 tests, needs dbus daemon

  PKG_CONFIG_SYSTEMD_SYSTEMDUSERUNITDIR = "${placeholder "out"}/lib/systemd/user";

  postPatch = ''
    patchShebangs build/ gcr/fixtures/
    chmod +x meson_post_install.py
    patchShebangs meson_post_install.py
  '';

  passthru = {
    updateScript = gnome.updateScript {
      packageName = pname;
    };
  };

  meta = with lib; {
    platforms = platforms.unix;
    maintainers = teams.gnome.members;
    description = "GNOME crypto services (daemon and tools)";
    homepage = "https://gitlab.gnome.org/GNOME/gcr";
    license = licenses.lgpl2Plus;

    longDescription = ''
      GCR is a library for displaying certificates, and crypto UI, accessing
      key stores. It also provides the viewer for crypto files on the GNOME
      desktop.
      GCK is a library for accessing PKCS#11 modules like smart cards, in a
      (G)object oriented way.
    '';
  };
}

But when i type nix-build -E 'with import <nixos-unstable> {}; callPackage ./gcr4.nix {}' command, i have this issue:
error: derivation name missing
if i simply use nix-build command i have this:
error: cannot evaluate a function that has an argument without a value ('wrapGAppsHook')

       Nix attempted to evaluate a function as a top level expression; in
       this case it must have its arguments supplied either by default
       values, or passed explicitly with '--arg' or '--argstr'. See
       https://nixos.org/manual/nix/stable/#ss-functions.

       at /home/eog/tmp/gnome-epiphany/gcr/gcr4.nix:19:3:

           18| , gobject-introspection
           19| , wrapGAppsHook
             |   ^
           20| , libxslt

You need to set the version (below the pname).

After i put a version package successfully builds. But how to use this package like as dependency to build epiphany?

I have created a git repo with some work on this, just clone it and run nix-build (you will have to build webkitgtk, which will probably take quite a while).

The repo mentioned above: https://github.com/ReplayCoding/epiphany-gtk4
By the way, webkitgtk_5_0 is packaged in Nixpkgs now but Epiphany moved to WebKitGTK 2.39.3 development release.


CI: bump react-native-android docker image to 5.1

Summary
CI: bump react-native-android docker image to 5.1
Changelog
[Internal] [Changed] - CI: bump react-native-android docker image to 5.1
Test Plan
Android CI is green

@cortinico please review and merge 👍


[noBUG] - Xiaomi Xiaofang 1S user wanted -> working video stream

Hi,
is here anyone around whos using this project with a Xiaomi Xiaofang 1S?

I am a searching for a working setup where also streaming is working.
First only snapshots worked and ffmpeg always exited with error code 1,
then with the help of @renedivx: https://github.com/sahilchaddha/homebridge-dafang/issues/27
I could compile a ffmpeg version that at least starts streaming for a little while without exiting with error code 1 but in the end the rtsp server on the camera crashes.
Before it crashes video starts for a little second, i can hear a sound flick and then the picture stucks or it moves like in slomotion for 1-3 seconds and then it stops finally...
So is someone here with this cam were streaming is working and if yes can you please report your steps and post your configuration settings?
Regards X23

Hi,
i started to use camera-ffmpeg streaming is working there with the S1 while audio vise versa isn't working. Anyway the audio i receive when i enable audio is some kind of broken, i just hear cracks no matter which audio settings i try.
The auto switching between day and night only started to work after you at least on time hit the safe button in the auto night settings on the camera webif, i you don't do that no configuration is written to make the service work (there should be a default config).
with camera-ffmpeg there is also no need to reduce the stream quality i can leave everything at max but it seems that homekit uses its own streaming settings when watching the camera live, same for the still picture... you can see it in the homebridge log the dimensions still pictures are nothing i have configured for home, it seems home has fixed values for this and home is forcing them.

I use the same camera with the plugin. Heres my Config for 1S ===>
 {
                    "cameraName": "My XiaoFang Camera",
                    "cameraRTSPStreamUrl": "rtsp://<IP_ADDRESS>:8554/unicast",
                    "mqttTopic": "kshome/xiaofang/#",
                    "folder": "/Users/sahilchaddha/Documents/XiaoFang",
                    "segmentLength": 60,
                    "maxDirSize": 8192,
                    "checkStorageSizeInterval": 300,
                    "videoConfig": {
                        "source": "-rtsp_transport tcp -i rtsp://<IP_ADDRESS>:8554/unicast",
                        "stillImageSource": "-rtsp_transport http -i rtsp://<IP_ADDRESS>:8554/unicast -vframes 1 -r 1",
                        "maxStreams": 5,
                        "maxWidth": 1280,
                        "maxHeight": 720,
                        "maxFPS": 30,
                        "debug": true,
                        "audio": true
                    },
                    "accessories": [
                        {
                            "name": "Fang Motion",
                            "type": "motionSensor",
                            "threshold": 15000
                        },
                        {
                            "name": "Fang Rich Motion",
                            "type": "richMotionSensor",
                            "threshold": 15000
                        },
                        {
                            "name": "Fang Night Vision",
                            "type": "nightVisionSensor"
                        },
                        {
                            "name": "Fang Night Vision Switch",
                            "type": "nightVisionSwitch"
                        },
                        {
                            "name": "Fang Auto Night Vision",
                            "type": "autoNightVisionSwitch"
                        },
                        {
                            "name": "Fang Clear Storage",
                            "type": "clearStorage"
                        },
                        {
                            "name": "Fang Capture Image",
                            "type": "captureImage"
                        },
                        {
                            "name": "Fang Record Video",
                            "type": "recordVideo"
                        },
                        {
                            "name": "Fang Record Audio",
                            "type": "recordAudio"
                        },
                        {
                            "name": "Fang RPi Storage",
                            "type": "storageSensor"
                        },
                        {
                            "name": "Fang Motion Detection",
                            "type": "motionDetection"
                        },
                        {
                            "name": "Fang RTSPSwitch",
                            "type": "rtspSwitch"
                        },
                        {
                            "name": "Fang Restart",
                            "type": "restartSwitch"
                        },
                        {
                            "name": "Fang ReMount",
                            "type": "remountSwitch"
                        }
                    ]
                }


Feature/issue127 rule exception handling

Coverage remained the same at 93.861% when pulling 03438bb1c475f2448ad3b57e24b0a15fa87c1948 on feature/issue127_RuleExceptionHandling into f2e4f815975b063c75fcb6c5952fd2779da62f04 on develop.


Add repository metadata to Cargo.toml

Summary
It was pretty hard to navigate to this repository after finding out about this package on crates.io since no metadata were given. This PR simply adds repository key to cargo manifest to associate the crates.io package with this repository.
Preflight checklist

[ ] Code formatted with rustfmt
[ ] Relevant tests added
[ ] Any new documentation added

Pipeline fails due to clippy, I submitted #182 to fix it.


react-use-gesture is deprecated

Hey, I noticed this log message this morning:
warning leva ><EMAIL_ADDRESS>This package is no longer maintained. Please use @use-gesture/react instead

Fixed in latest release ;)


Add key path support for methods on Mockable

This pull request fixes a small annoyance that I've come across when using MockingKit: having to duplicate the name of the mock whenever you invoke a method on it that accepts a ref. For example, consider the following snippet:
someMockableInstance.hasCalled(someMockableInstance.someMockedMethodRef)

Since the ref is in 99% of cases a property of the same mockable instance that we invoke the MockingKit method on, having to specify the mockable instance twice is redundant information. Instead, it would be useful if we could specify the ref using a key path:
someMockableInstance.hasCalled(\.someMockedMethodRef)

So that's what this pull request implements! :-) It adds key path support to the following Mockable methods:

registerResult(for:result:)
calls(to:)
resetCalls(to:)
hasCalled(_:)
hasCalled(_:numberOfTimes:)

I opted not to add key path support to the call(…) methods since those are typically called from inside the implementation that conforms to Mockable, and so they can reference the ref property directly without duplicating anything.
I should note that when making use of this support in the BookBeat code base, I did run into a handful of instances where using the key path variant of the method would crash the Swift compiler… So keeping the non-key path variants around is probably a good idea!

Hi @Boerworz
Really happy to see this addition, thank you for sharing!
I'll merge this and prepare a new version 👍

Hooray! Thanks for building MockingKit! 🙏

1.3 is now out :)

@Boerworz
Hey, I just wanted to say that I love the keypath approach 🎉
I'm actually thinking that we should perhaps remove the non-keypath variants altogether, since they open up to bugs.
What do you think?

@Boerworz
Hey, I just wanted to say that I love the keypath approach 🎉
I'm actually thinking that we should perhaps remove the non-keypath variants altogether, since they open up to bugs.
What do you think?

Great to hear! We're finding it very nice as well :-) Removing the non-keypath variants would be cool, BUT like I wrote in the description, I did run into some issues with the Swift compiler crashing when I tried to replace all our calls with the keypath-based ones. I haven't investigated exactly what causes the crashes—I just reverted the changes made to the problematic files—but I think it might have something to do with generics. Soooo, maybe keep the non-keypath variants around for a while?

@Boerworz Sounds good, thanks for clarifying! 👍


Fixed the reversed prompt and incrementally highlighting

evil-snipes' prompt and incremental highlighting appears backwards when the search term's length has been extended with <tab>. They appear backwards because elisp's push adds to the front of the list. This PR puts the prompt and highlighting in the correct order.
An example of searching for abcd with sa<tab><tab>bcd.

Ah, good catch, thanks!


Numpy: FATAL  Error, failed to find path @rpath/libffi.7.dylib

Environment:
MACOS Monterey
Python:Anaconda 3.7.12
Nuitka:1.2rc6
How did you install Nuitka and Python
pip
The specific PyPI names and versions
numpy  1.21.6
Provide in your issue the Nuitka options used
sudo python -m nuitka --run --standalone  --enable-plugin=numpy,pyside2 --noinclude-pytest-mode=nofollow --noinclude-setuptools-mode=nofollow --python-flag=no_site main.py; date
Error during nuitka standalone compilation:
Nuitka-Plugins:INFO: numpy: Found 11 files DLLs from numpy installation.
FATAL: Error, failed to find path @rpath/libffi.7.dylib (resolved DLL to /Users/emre/opt/anaconda3/envs/object_detection/lib/python3.7/site-packages/libffi.7.dylib) for /Users/emre/opt/anaconda3/envs/object_detection/lib/python3.7/site-packages/_cffi_backend.cpython-37m-darwin.so, please report the bug.

This seems to be missing a script to reproduce, and maybe a conda environment file. Also please always use --version output of Nuitka instead of writing up a subset of its output.

Hi Kay,
Oppss. Sorry.
Environment:
environment.txt
Script: (pygame 2.1.2)
import pygame
Version:
(object_detection) emres-Air:tests emre$ python -m nuitka --version
1.2rc6
Commercial: None
Python: 3.7.12 | packaged by conda-forge | (default, Oct 26 2021, 05:57:50)
Flavor: Anaconda Python
Executable: /Users/emre/opt/anaconda3/envs/object_detection/bin/python3
OS: Darwin
Arch: x86_64

I didn't manage to import the environment file, Anaconda gives me a crash report trying that, something with the json being wrong, but I am pretty sure it ought to be OK.
I didn't find the 3.7.12, but only 3.7.13 and I didn't find pygame, not even on conda forge, so I pip installed it, and it just works.
I guess, thanks to the fluent nature of Anaconda, your environment is not reproducible. Can you update your conda environment to existing versions?

Hi Kay,
I tried to update my Anaconda to current version as you mentioned above, I got an json either. I guess there were something wrong with my Anaconda installation from the beginning but anyway I will keep going to work with CPython(with the reason that #1841 is solved now.) So you can close this issue. Thanks a lot.

Sorry, this didn't resolve. I believe there is some sort of bug in Nuitka still for a corner case, but this is not how we find it. Thanks for reporting, this can happen.


feat(format): introduce AdbcDriver110

Fixes #317.

Passing tests here: https://github.com/lidavidm/arrow-adbc/tree/spec-1.1.0


Implement multi-users and account permissions

Re-implement this feature essentially:
https://www.linode.com/docs/platform/accounts-and-passwords#setting-permissions
Feature request: include the ability to grant permissions for bunches of Linodes as defined by a group label.

The basic idea behind the new manager is that all features in the existing manager will be implemented (at some point). We haven't gotten into parity with the manager concerning users and permissions quite yet, but when we do we'll keep this in mind. Thanks!

Just a brief checkin: we're going to be working on these sets of features pretty soon. Feel free to follow along on changes to #1190. I also spun your feature request into another issue, #1194. Thanks again!


Sso sessions ui

SSO Sessions Report UI. See screenshot.
This is a pretty modest, simple decoration with jQuery UI. Adopters can later on choose to get fancy with bootstrap, and etc.

+1 with a comment


Memory leak?

Hi!
I've been using this project for a couple of months now. I've been experiencing lots of memory usage by the screen saver in the background even when it's not shown - around 1 to 1.5GB. Sometimes I have to kill the program to free up some memory.
I don't know how to debug this, as I don't have many experience with Apple APIs and software overall. I would love to help though!

Is the Legacy Screen Saver? I've seen it myself, eating up the memory. But I think it can't be this screen saver since the process itself is stopped, after leaving the screensaver.

Yes, legacy screen saver. Finally caught it after forgetting to start Amphetamine today.

What could cause this?

Idk. The ScreenSaver itself is already pretty old, but I noticed this issue coming up recently (maybe in the last 2 years).
Maybe its a bug from Apple side. Hard to tell.

No idea. I've been using a Macbook for less than a year, and have always had this
Will keep an eye on it then. Thanks for your feedback!

Its definitely a problem with the LegacyScreenSaver.
https://discussions.apple.com/thread/255256761


How do I use a required and a not validated error message on an email field?

Hi,
As I understand it, this is the way I should add custom error messages:
<input type="email" data-parsley-trigger="change" data-parsley-email-message="Not validated" data-parsley-required-message="This is required" required>
Unfortunately this doesn't work. I see the 'This is required' message, but when validation fails I get the standard 'This value should be a valid email.' message. How should I use this?
Thanks!

You can use data-parsley-type-message for now, although this might change (see #840)


Add progress report for backup

https://github.com/longhorn/longhorn/issues/45

[ ] The progress circle covered the snapshot name.


Plugin to make online stores!

It would be a great idea to have a plugin like woocommerce to do online stores.

Hi @mrhdias
The first beta version of an online store is available here: https://github.com/ThomasTJdev/nimwc_basket


Fix spline temp container size in make_interp_spline

See https://github.com/cupy/cupy/pull/8290#issuecomment-2175220453
This prevents the d_boor kernel from performing an out-of-bounds array access, this was caused due to the size of temp in make_interp_spline, which was shorter than the expected value. After this PR, the confirmed segfault caused when running the following test no longer appears:
compute-sanitizer --tool memcheck --padding 32 python -m pytest -v  tests/cupyx_tests/scipy_tests/interpolate_tests/test_bspline2.py  -k test_minimum_points_and_deriv

/test mini

CI failures are not related. Thanks, @andfoy!


Google Account setting problem.

I had set up the Google Cloud project. But when I add google account, my account is not added. I don't know the problem by looking at the log in console. I need help.

just going by the console output, it seems the query to fetch your own email address is not returning anything.

when you were prompted with the oauth login for the app, did you make sure to check every box in order to give permissions to all required scopes?
one thing that could help also is going here and hit the Execute button on the right.  This does the same query against your account.  If successful, paste in the response here

Thanks you ntawileh.

I checked every chekbox in oauth login for permissions.
Here is the response of query. (Method: people.get). I think the response is successful.

{
"resourceName": "people/116199907237833642413",
"etag": "%EggBAgkKLjc9PhoEAQIFByIMbWhoNTF0MGxndmc9",
"names": [
{
"metadata": {
"primary": true,
"source": {
"type": "PROFILE",
"id": "116199907237833642413"
},
"sourcePrimary": true
},
"displayName": "Jaeseong Park",
"familyName": "Park",
"givenName": "Jaeseong",
"displayNameLastFirst": "Park, Jaeseong",
"unstructuredName": "Jaeseong Park"
}
],
"emailAddresses": [
{
"metadata": {
"primary": true,
"verified": true,
"source": {
"type": "ACCOUNT",
"id": "116199907237833642413"
},
"sourcePrimary": true
},
"value"<EMAIL_ADDRESS>}
]
}

yeah so I would take a look at the google client you created again.  seems like it is not allowed to fetch some sensitive scopes yet?
have you set the status of your client as 'Testing' and added your gmail account as a tester?

@ntawileh
In fact, I tested it with all scopes granted. But the result was the same.

And I added my account as a tester with the publishig status as testing.

I think I've tried everything that can be changed in the settings, but I still don't know the cause...

Thanks for sharing your credentials. I tested it, but the result was the same. There seems to be a problem with my Google Account, but I still don't know.

I have the same issue.

I think I've the same problem as @ParkJaeSeong - it seems, that google account is not added at all in Obsidian's settings, although an attempt to add an account is successful in the browser ("OK - You can close this tab and go back to Obsidian!" - I named my Google App 'Obsidian').

I am also having the same issue. Has anyone found a fix for this yet?

Same problem as @ParkJaeSeong and @panberbelek. The page shown can close this tab and go back, but actually, no account has been added to the plug-in setting page.  Tried all way, hoping can provide a solution for the issue. Thanks a lot!

could I get one (or more :) ) of you to test this out since the issue isn't reproducible for my google accounts?  if the issue is the same as @ParkJaeSeong, it appears that the call to fetch your own account info does not return an email address.  I've made a small change in the attached build that ignores the unknown email and just assigns a generic name to the account in Settings (i.e. account#1 account#2...etc)
if you want to try this out, please unzip the contents of this file into your .obsidian/plugins/obsidian-google-lookup directory.  after that, you can reload or restart obsidian.
confirm please that you are trying the latest build by checking the version of the plugin and making sure it is 1.2.1
obsidian-google-lookup_1.2.1.zip

Success! It works for me at least with contact info now. I don't use it for Events, so I can't say anything about that.

Wow! It works!

My events and addresses have been successfully fetched. Thanks for great plugin!

nice thank you both for testing.  will make a release with this fix


Personalized album cover quiz (using openai and new database design)

Added openai dependencies and created simple controller for album cover quiz generation.
Added method getTopTracks that returns list of 10 top tracks (couldn't test it, unsure whether it works or not)
Refactored AlbumCoverQuiz and created new database that keeps track of user's answers, quiz session, each question in quiz Currently did not fully implemented personalized quiz
Created Database Design for new Quiz Workflow.
Modified Track model to contain album name.

Created functional personalized album cover quiz. It has some conflicts with existing code and models, but shouldn't be problematic.
Current endpoints to use (Iteration 2):
Get top 10 tracks from user, to generate quiz based on user's preferences. Includes album name, album cover URL.
Open-AI is being used as generative tool to create new quizzes based on received top 10 tracks and later they are added to the database.
Quiz data, retrieves quizzes from database to show it in all quiz page.
Personalized Album Cover Quiz stories:
Generating personalized album cover quiz (Iteration 2) - The user clicks generate button and gets redirected to all quiz page, where user can choose generated quizzes.
Does the user have enough track history?
->True: Quiz is properly generated, and user gets generated to all quiz page.
->False: Quiz is not generated, and user gets redirected to error page.
User clicks "Generate Quiz" button.
(New) A loading indicator appears while the application fetches tracks and generates questions.
(New) If there's insufficient track history, a modal or message explains the issue and offers suggestions (e.g., "Listen to more music to generate a personalized quiz").
If successful, the user is redirected to the all quiz page.
Personalized album cover quiz (Iteration 2) - The user wishes to try quizzes. User can see generated quizzes
Does the user want to try quiz?
->True: User can choose generated quizzes from the all quiz page and start the quiz.
->False: User can leave to main pages of harmonIQ.
Database design (Iteration 2):
There will be separate relations (tables) for Album Cover Quizzes, for Album Cover Quiz Questions.
Album Cover Quiz Questions table will have foreign key that references Album Cover Quizzes id, so there will be many to one relationship between questions and quiz.
Database design (future iteration 3):
There will be implemented Session table, Answer table and Album Cover Quiz table will have relationship with Users table.
Session table will record a time when user started a quiz. It will consist the time when user started and completed the quiz, it will also have foreign keys from user table (uid) and quiz table (qid). User will have one specific session with quiz.
Answer table will record the answers that were inputted by user during session. So it will have foreign key from session table (sid) and question table (queId), so we can later check for correctness.
Album Cover Quiz table will be connected with foreign key to Users table. So every user have their own quizzes that they generated. Later, there can be implemented scoreboard feature by adding new column.

New implementation in #81


cypress-slack-reporter requires peer even though it is installed

Hi  @YOU54F
Theres a warning for cypress-slack-reporter:
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.

I created an issue here too.

Hey bud! Yeah I spotted that earlier today when I was testing the changes in mochawesome-merge. For now, you should be able to ignore but I’ll get a new version pushed up that loosens the peer dependency requirement.
Thank you for letting me know!

Thank you @YOU54F. Appreciate the effort.

@deane187
should be sorted in #103
I've tested in one of my other projects against the branch with
    "cypress-slack-reporter": "YOU54F/cypress-slack-reporter#correctPeerDeps",

and now no longer gives a warning.
I will merge it and release a new version once the CI run has passed, thank you for the heads up!

v0.4.0 is going through the release pipeline now so should be available in 5 minutes or so

Issue resolved!!! Thank you @YOU54F

Would you be able to please glance at my circleCi yml and guide as to where i need to add the following steps:
combine-reports:
	npx mochawesome-merge --reportDir cypress/reports/mocha > mochareports/report.json

generate-report:
	npx marge mochareports/report.json -f report -o mochareports

slack-alert:
	npx cypress-slack-reporter --logger

Config.yml:
version: 2.1
orbs:
  cypress<EMAIL_ADDRESS>
workflows:
  build:
    jobs:
      - cypress/run:
          command: "npm run report" Tests run here
          store_artifacts: true
          post-steps:
            - store_artifacts:
                path: mochawesome-report
            - store_test_results:
                path: cypress/results

  nightly:
    triggers: #use the triggers key to indicate a scheduled build
      - schedule:
          cron: "0 0 * * *" # use cron syntax to set the schedule
          filters:
            branches:
              only:
                - add-cypress
    jobs:
      - cypress/run:
          command: "npm run report" Tests run here
          store_artifacts: true
          post-steps:
            - store_test_results:
                path: cypress/reports
            - store_artifacts:
                path: mochareports
            - store_artifacts:
                path: mochawesome-report
            - store_test_results:
                path: cypress/results

Awesome, glad thats sorted.
I've not tried it with orb yet but you will need commands after you have run cypress (and therefore generated your multiple mochawesome reports). Cypress circle ci docs state you can run a custom command here
Should be something like this after your jobs that run the tests
      - cypress/run:
          command: npx mochawesome-merge --reportDir cypress/reports/mocha > mochareports/report-$$(date +'%Y%m%d-%H%M%S').json

      - cypress/run:
          command: npx marge mochareports/*.json -f report-$$(date +'%Y%m%d-%H%M%S') -o mochareports

      - cypress/run:
          command: npx cypress-slack-reporter --logger

You the best man.
Thanks again.
CPT.
South Africa.

no worries chap, i've just created a repo to test out your config so I'll keep you posted
https://github.com/YOU54F/cypress-circleorbtest

sorted @deane187, got it working with the orb :) although I think it needs awhen: always in the steps for the reporting, so it reports when the cypress run fails
see ci run here = https://circleci.com/gh/YOU54F/cypress-circleorbtest/11
and the repo here = https://github.com/YOU54F/cypress-circleorbtest
circleci config
version: 2.1
orbs:
  cypress<EMAIL_ADDRESS>
workflows:
  build:
    jobs:
      - cypress/run:
          post-steps:
            - run: npx mochawesome-merge --reportDir cypress/reports/mocha > mochareports/report.json
            - run: npx marge mochareports/*.json -f report -o mochareports
            - run: npx cypress-slack-reporter --logger
            - store_artifacts:
                path: mochareports
            - store_test_results:
                path: cypress/reports

  nightly:
    triggers: #use the triggers key to indicate a scheduled build
      - schedule:
          cron: "0 0 * * *" # use cron syntax to set the schedule
          filters:
            branches:
              only:
                - add-cypress
    jobs:
      - cypress/run:
          post-steps:
            - run: npx mochawesome-merge --reportDir cypress/reports/mocha > mochareports/report.json
            - run: npx marge mochareports/*.json -f report -o mochareports
            - run: npx cypress-slack-reporter --logger
            - store_artifacts:
                path: mochareports
            - store_test_results:
                path: cypress/results

Amazing! its working in circleCI. The html report is generated but it seems as though the tests ran twice when circleCI claims it ran once.
CircleCI: 3 Tests

Html report: 6 Tests

That is weird! seems to be OK on my end with that example repo,
I have 8 tests across 2 files

looking at your screenshots in the report, the duplicate tests have different timings suggesting that potentially it has ran twice and are not actually duplicates
ps, I've updated the config so it will now report even if the cypress tests fail.

Would you be able to share with me, a screenshot of your artefacts tab and a screenshot of the circleci run? ps, are you running against the add-cypress branch? as I noticed your config has a cron trigger in it and the are two jobs sections. although I would expect that they would run separately

Yes I am running against the add-cypress branch.
Before I added all the new config it would run every time I commit and then once at midnight. although the reason I added the mochawesome-merge config was because the html report would only show the last run spec, 1 of 3 tests.

Ok so ran another test and all is well.

I think I committed to branch add-cypress with 3 existing json files in the mocha folder, So when it ran the merge command it merged 3 old with 3 new.

Your work is much appreciated @YOU54F .Many others will find this helpful.

Awesome mate, I’ll will try and get the examples added to the cypress circleci orb page
I always add the report folders to my .gitignore file to avoid them being checked in to the repo. Easy mistake to make though, glad we are all sorted! Enjoy 🤙


The BC5CDR dataset result

Hello!
When I run your code with cdr dataset,get the result like this

Do you know why it's so high compared to your paper result and previous works!
Looking forward for your reply!
Thanks~

Hi, after the paper submission, we tune the hyper-parameters (more training steps, different learning rate, larger batch sizes, and so on) and also obtain better results on BC5CDR; so it is ok to obtain better results.

OK, thank you very much!


"Delay Before Cleaning" doesn't work well

Hi,
I'd like to give 20 seconds before clearing the cookies of a closed tab.
1 minute is the default value

When I put 0.5 the field becomes empty (wrong format)
When I put 0,5 the new value is saved but the cookies are deleted right after closing the tab. No delay.

When I put 0.5 the field becomes empty (wrong format)
Interesting so when you type in 0.5 and click save, the field just disappears? Maybe it's a different character set that you are using that's not compatible with the HTML input field because I don't have this issue.

Where are you living? The dot may work in your country but not in France.
Is the comma working on your end?
Here is a video

Is the comma working on your end?

No, but I think I found the issue. I had to change where it was creating the timer from parseInt to parseFloat. I validated the change on a fr locale version of Firefox.

Cookie-AutoDelete_Firefox_Dev_051917_1244.zip
This is a fresh build off the Development branch. Rename this to .xpi and go to about:debugging and load this extension temporary and see if it fixes for you. :)

Yeah, fixed! :)


Production settings typo

(testing basic pull request before submitting more)

@yunti please add your name and github username to https://github.com/pydanny/cookiecutter-django/blob/master/CONTRIBUTORS.txt

I've added my name to the contributors list.   Thanks.

@yunti Thanks :ship: :+1:


code checker: failed capture service state

What happened?
if the capture service fails it shows as empty
@exezbcz can you make failed state design
thanks :D

Oh, anyway, since we had this issue previously (postmortem section), we changed how capture works. right now we are capturing images from https://iframe-to-blob.pages.dev/iframe?url=art_url. We can't depend on capture service on a serverless environment yet (vercel, cf-worker)
e.g: https://iframe-to-blob.pages.dev/iframe?url=https://pub-adc77a8fecb9405b9573442870905a67.r2.dev/codeChecker/48f4fa1f-22b1-4152-8cc0-2e1ff24c44d1.html?hash=0x9b2e00389a9bbac95965d89a70a91038881ccc8933ac903d28893c863d3588b1


Some example pages in documentation is blank

This is a readthedocs issue.

This issue was partially addressed by the readthedocs devs. Closing it since siibra-python docs currently functions as intended even without a full patch.


idklu solver for convert_to_casadi=True

Summary
The current idklu solver goes back to python whenever it needs to calculate the rhs, algebraic or event equations. It also runs very slow when using convert_to_casadi=True. This issue aims to develop a new idklu solver that directly calls casadi functions from C++, with ideally no memory copying to/from casadi arrays
Motivation
We want to get the superior event handling capabilities of the ida solvers with efficient casadi evaluation of equations

this largely seems to be working ok now and scaling as expected. Its faster than the casadi solver with events, but there are still some things to do to speed it up further:

serialising the casadi functions takes a fair bit of time, need to do this in the solver setup, not the solve itself
we're allocating memory for return vectors in the solve, again this could be done in solver setup
also we initialise ida_mem and everything every time, could do this once when solver is created, or only on the 1st solve etc
need to play around with ida sundials settings: create an options dict to pass to the solver to choose various things. A major addition here would be to look at the iterative solvers

we're allocating memory for return vectors in the solve, again this could be done in solver setup

On this subject, an idea to consider is to have the option to calculate some scalar variables (voltage would be the main one but could be anything) at each time step, and then not store the y vector.

A major addition here would be to look at the iterative solvers

Iterative solvers only start to outperform direct solvers at relatively large matrix sizes, right? (don't know how large)

Yes, iterative solvers can give speed benefits at the very large matrix sizes, as long as you have a decent preconditioner (i.e. a good approximation to the jacobian that you can solve easily).

This is largely finished, see pr #2002, here is my todo list for subsequent issues:

[ ] we're allocating memory for return vectors in the solve, this could be done in solver setup
[ ] we initialise ida_mem and everything every time, could do this once when solver is created, or only on the 1st solve etc
[ ] create an options dict to pass to the solver, e.g. option to print solver stats,  don't/do use jacobian
[ ] add option to use iterative solvers
[ ] add option to use other linear solvers in ida
[ ] add option to use dense jacobian
[ ] benchmarks for all of the above solver options
[ ] investigate if we need to densify the rhs_algebraic casadi evaluation, could it return a sparse vector?
[ ] investigate if constructing a new casadi function for the residual (rather than doing it manually in c++) is faster
[ ] investigate if constructing a new casadi function for the sensitivity calculations (rather than doing it manually in c++) is faster
[ ] we calculate consistent initial conditions at the start of the idklu solve, so we might not need to do it in the BaseSolver setup


Initial Feedback

I saw in the README you were looking for some initial feedback so I wanted to quickly drop some thoughts here as someone very interested in the Dart gRPC ecosystem.
❤ What I Love

The benchmarks speak for themselves when it comes to performance improvements.
The idea of relying on a more feature complete, better staffed networking stack that is more closely aligned with modern standards.

🤔 Questions and Concerns

Looking at Cronet's README I see it talks about only supporting iOS and Android platforms.

Where would this leave traditional server based applications for example built with standard dart compile exe and running in a container on a system like Cloud Run?

Similarly, where would this leave gRPC-web support for Flutter web applications?

I saw some chatter somewhere that there was also a plan to do something similar there and move to use the JavaScript implementation under the hood. Are these efforts connected in some way?

I see a substantial amount of work happening in the protobuf.dart repository happening but the wider support for gRPC and gRPC-web (at least within the Dart ecosystem specifically) seems much less clear.

Are you able to talk at all about the future of these projects in the Dart and Flutter ecosystems?
Specifically, in your personal opinion would I be likely setting myself up for a happy or sad future if I started moving towards a gRPC-centric approach for client <---> server and server <---> server communications?

Thank you for the feedback! It's appreciated!

Looking at Cronet's README I see it talks about only supporting iOS and Android platforms.

Where would this leave traditional server based applications for example built with standard dart compile exe and running in a container on a system like Cloud Run?

Conceptually Cronet works on the server, so in principle can be used by Dart server apps(with caveat that technology for smooth distribution of native (cronet) libraries with Dart packages is still being worked on).
To get better answer from Cronet team regarding their focus I would raise a question on https://bugs.chromium.org/p/chromium/issues/list?q=component:Internals>Network>Library

Similarly, where would this leave gRPC-web support for Flutter web applications?

I saw some chatter somewhere that there was also a plan to do something similar there and move to use the JavaScript implementation under the hood. Are these efforts connected in some way?

This effort is not related to ongoing grpc-web work. I see it uses Envoy, which is different tech stack from Cronet.

I see a substantial amount of work happening in the protobuf.dart repository happening but the wider support for gRPC and gRPC-web (at least within the Dart ecosystem specifically) seems much less clear.

Are you able to talk at all about the future of these projects in the Dart and Flutter ecosystems?

https://github.com/grpc/grpc-dart is what is currently broadly used, is reliable solution for Dart apps when it comes to gRPC and Dart. This grpc_cronet effort is an attempt to explore some ways to improve the performance. From what I know grpc is an area of active investigation (cc @mraleph )

Specifically, in your personal opinion would I be likely setting myself up for a happy or sad future if I started moving towards a gRPC-centric approach for client <---> server and server <---> server communications?

I think you can safely bet on using gRPC protocol for your Dart apps.


stylelint config

We have a custom JS lint config in a separate repo; need the same for our sass linting?

This now exists at https://github.com/bitcrowd/frontend/tree/master/linting/stylelint-config-bitcrowd, we should use that in bitstyles.


Add icon URLs for NuGet packages

Closes #199.

LGTM

Should I add this to the metadata library as well?

Yes please :)

Done. #286 is updated with the URL.


Commonize more shim module files [databricks]

This commonizes the majority of the rest of the shim module files excluding shuffle and the main Spark3XXShim file.
I tried to keep this easy to review and mostly moved files, a few functions in SparkBaseShims had to move to the respective Spark3XX file to make it common.

build

wait to build until https://github.com/NVIDIA/spark-rapids/issues/3580 fixed

build


Humanoid tracking

Hey folks,
Here's a proof of concept for humanoid motion tracking with MJPC. Would love to get some feedback on whether the implementation makes sense and if anyone has ideas on how to make the tracking work with faster simulation (see my note on speed below). Shoutout to @thowell for helping me with this.
Dependencies
This PR includes some commits that should probably be merged in separate PRs:

5c037dc6e28348be7c43be64b33573807b7795d8...f7817839c01b0c284a4b2e22f29e0a1a6a164715: for loading initial qvel values from the home-keyframe. These correspond to #38.
d628361b44481417607c1d2874032a7ea85518e3: for calling the Transition function within planner. This is required because otherwise the keyframes are not set correctly.
6436aac9786af57b88d8d380ada5010851586af5: restructures the humanoid tasks into their own corresponding folder. Let me know if you would prefer to keep everything within one file though and I can revert it.

Examples
The videos shown here are run with 2019 Macbook Pro 2.4GHz 8-core Intel Core i9.
Jumping:

@ 1% real-time: CMU-CMU-02-02_04_poses.webm
@ 0.1% real-time: CMU-CMU-02-02_04_poses-v2.webm

Backwards cartwheel

@ 0.25% real-time: CMU-CMU-88-88_08_poses.webm
@ 0.1% real-time: CMU-CMU-88-88_08_poses-v2.webm

Running:

@ 1% real-time: CMU-CMU-108-108_13_poses.webm
@ 0.1% real-time: CMU-CMU-108-108_13_poses-v2.webm

Assumptions and TODOs
Initialization
Right now, we assume that the walker's qpos is initialized s.t. the cartesian joints positions match the first keyframe positions (see inline comment below). It would be really useful to enable random initialization s.t. the task requires first getting to the initial position and the tracking starts from there. We would need to figure out a condition for "getting to the initial position" and add the logic to the transition function.
Speed
Right now, the tracking is pretty slow. On my 2019 Macbook Pro 2.4GHz 8-core Intel Core i9, the maximum speeds are <=1% in real-time. It would be nice to figure out how to make this closer to real time.  My machine is pretty slow so just using a bit beefier machine might speed up things, but there might be other ways to speed things up. Taylor implemented CMA-ES method which might help, but I wasn't able to get it working as reliably as the ILQG shown here.
CMUHumanoid
The SimpleHumanoid used now is pretty weak and has some clear limitations with its joints (e.g. there are some shoulder-elbow-hand configurations in the mocap data that are unreachable because of the way the shoulder and elbow joints are set up). I'm in the progress of adding a CMUHumanoid tracking setup, which would hopefully resolve some of these issues.
Frame rate
The code currently assumes that all the sequences are running with 30 fps. We should probably provide a setting to enable different frame rates.
License
All the mocap sequences in my commits are from the CMU mocap dataset and based on their website, it looks like the motions can be distributed without any problems:

How can I use this data?
The motion capture data may be copied, modified, or redistributed without permission.

CC @thowell @VincentYu68 @Alescontrela

I've been playing with the knobs to understand how the parameters affect the tracking performance/speed. I noticed the following:

The agent_timestep and agent_horizon are really critical for getting the more difficult motions to work.
By default, physics_timestep=2e-3 and the tracking works fine if I set the agent_timestep=4e-3 (as shown in the videos above).
If I keep the default physics_timestep=2e-3 and increase agent_timestep e.g. to 2e-2, the tracking fails completely.
Now, if I increase both physics_timestep=2e-2 and agent_timestep=2e-2, the tracking again works pretty well. There's a lot of jitter but the motions overall looks good and I'm now able to run this on 5% of real-time speed on my MacBook Pro (compared to <=1% when agent_timestep=4e-3).

I don't understand why the physics_timestep affects things so much. I may have misunderstood how the planner timestep works but I would've expected that if agent_timestep > physics_timestep, then the physics_timestep wouldn't matter too much. For some reason it does though.
Here are two examples:

physics_timestep=2e-2, agent_timestep=2e-2
physics_timestep=2e-3, agent_timestep=2e-2

The physics timestep needs to be fairly small in order for the simulation to not diverge (this is just a property of MuJoCo). A reasonable value is around dt = 1e-3. You can go smaller but there isnt much improvement in terms of stable simulation. You can go bigger, maybe dt = 1e-2, but then the simualtion may occassionally fail. The reason to go bigger is that you want to match the agent timestep with the physics step. Bigger timesteps means less engine calls for the same planning horizon which typically improves control.
Recommendation: match the physics and agents timesteps. If possible, make the physics timestep bigger, but not so big that simulation is unstable.

Hi @hartikainen,
Today we submitted an important bug fix, before which the derivative calls were incrementing time. TBH I don't understand how your task could have worked at all before this... 😝
See how things work now?

Add a README.md to tracking/keyframes/ that contains the following text:

The data in this directory was obtained from mocap.cs.cmu.edu.
The database was created with funding from NSF EIA-0196217.

Done.

@hartikainen #59 should make it easy to switch between motions in the GUI


[5.4][Property Wrappers] Correct StorageImplInfo for local property wrappers.

Cherry-pick of https://github.com/apple/swift/pull/35713
Reviewed by @slavapestov

Local property wrappers don't have a modify coroutine, so always use StorageImplInfo::getMutableComputed().
This fixes a SILGen crash when using a local wrapped variable as an inout argument.
Resolves: rdar://73900943

@swift-ci please test

@swift-ci please test Windows platform


Host initated file operations like add, rename, or delete do not update file explorer on the guest's side

This is related to #44.  Currently hosts can perform file operations during a collaboration session that are not automatically reflected in the Solution Explorer / File Explorer on the guest's side. As with #44, the protocol to enable this is not yet implemented but the result is bug-like, so flagging as both.

When my team and I were using VS Live Share we noticed that clicking refresh on the File Explorer in VS Code would result in files added by the host showing up but clicking refresh on the solution explorer / file explorer does not make the file appear in VS17. Does this have something to do with the protocol mentioned not yet being implemented or is that a bug?

@RyanWilsonBIBend Both of those behaviors are bugs tracked by this issue. The VS Code refresh support is a semi-workaround of the problem, but ideally, both environments would automatically propagate file system changes to all participants without any explicit action (such as refreshing).

Closing as we're merging this with #45 to avoid spreading out feedback and votes.


Use StandardCharsets.US_ASCII in favour of string

Codecov Report

Merging #855 into dev will increase coverage by 0.04%.
The diff coverage is 0%.

@@             Coverage Diff             @@
##               dev     #855      +/-   ##
===========================================
+ Coverage     48.6%   48.64%   +0.04%
- Complexity    2796     2798       +2
===========================================
  Files          116      116
  Lines        27885    27882       -3
  Branches      4651     4651
===========================================
+ Hits         13553    13563      +10
+ Misses       12124    12108      -16
- Partials      2208     2211       +3

Flag
Coverage Δ
Complexity Δ

#JDBC42
48.22% <0%> (+0.12%)
2759 <0> (+8)
:arrow_up:

#JDBC43
48.42% <0%> (-0.05%)
2781 <0> (-10)

Impacted Files
Coverage Δ
Complexity Δ

...rc/main/java/com/microsoft/sqlserver/jdbc/dtv.java
62.45% <0%> (-0.01%)
0 <0> (ø)

...va/com/microsoft/sqlserver/jdbc/SQLServerClob.java
35.58% <0%> (ø)
12 <0> (ø)
:arrow_down:

...n/java/com/microsoft/sqlserver/jdbc/Parameter.java
64.12% <0%> (-0.21%)
64% <0%> (ø)

...n/java/com/microsoft/sqlserver/jdbc/DataTypes.java
79.28% <0%> (-0.2%)
4% <0%> (-1%)

...om/microsoft/sqlserver/jdbc/SQLServerBulkCopy.java
52.58% <0%> (+0.12%)
264% <0%> (+1%)
:arrow_up:

...in/java/com/microsoft/sqlserver/jdbc/IOBuffer.java
56.26% <0%> (+0.13%)
0% <0%> (ø)
:arrow_down:

...m/microsoft/sqlserver/jdbc/SQLServerResultSet.java
33.11% <0%> (+0.19%)
260% <0%> (+1%)
:arrow_up:

...c/main/java/com/microsoft/sqlserver/jdbc/Util.java
61.42% <0%> (+0.64%)
90% <0%> (+1%)
:arrow_up:

Continue to review full report at Codecov.

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


[2fa code generator extention]: Add otpauth links parsing

Description
Add otpauth links parsing
Remove sorting preference (now alphabetical sorting is the default behavior)
Fix remove item hotkey
Type of change

Bug fix / improvement for somebody else's extension. Extension author: @cjdenio

Screencast
https://user-images.githubusercontent.com/13866979/146212521-2c5b0b92-0265-469e-9146-46eb1ae77136.mov
Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing

Hi @cjdenio can you take a look on this PR and give some feedback?

This looks great to me!


Made text edits message is not very informative

Testing #208409

In the end everything will be text edits. So not sure how useful this message is. My be we can combine it with the Accept or Discard info. Something like
Made one textual changes. Please Accept or Discard them.

related to https://github.com/microsoft/vscode/issues/208586

Agree, it's merely a placeholder and needs tweaking. I like the idea of combining and I would like to but the diff-toggle there

I tweaked the working but we aren't in a position to make this more rich. The message "Made changes" is defined by the data model, the number of hunks is defined by the view model which also does the progressive typing

Closing this as duplicate of https://github.com/microsoft/vscode-copilot/issues/5672. The "Made changes" messages only shows when not other textual reply was provided and we wanna change things so that the extension spells out what it did, like /fix already does it today


Overflow text truncates. Can we use css ellipsis formatting

When text overflow from funnel, it truncates. Can we use css ellipsis formatting to trim and add ... in end.
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;

Thanks

One option you do have is to introduce line breaks (e.g., "Some really\nlong label").


Fixes #66

I have added day 4 content,"Operators in cpp".

I will suggest. No to add Title like i.e Fixes #66


isnt it FLAG_IMMUTABLE ?

A latest version of this package has a big problem with FLAG_MUTABLE.
error: cannot find symbol
this, actionSourceId, actionIntent, PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_MUTABLE);
^
symbol:   variable FLAG_MUTABLE
location: class PendingIntent
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
return PendingIntent.getBroadcast(
this, actionSourceId, actionIntent, PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_MUTABLE);
} else {
return PendingIntent.getBroadcast(
this, actionSourceId, actionIntent, PendingIntent.FLAG_UPDATE_CURRENT);
}
}

I can build without any problem using latest version.
I'm using PendingIntent.FLAG_MUTABLE (Added in API level 31) because otherwise, the ActionBroadcastReceiver will not be called on Android.
Try to clean and build again your project. Or maybe setting in your build.gradle the compileSdkVersion to 31

I'm facing same problem.any solution ? @millie-molly

I had the same issue, and updated buildToolsVersion to fix it.


[CRASH REPORT] Calculating max long fails with fuzz bots and random agents

Crash Report
We've been seeing crashes on max long with random bot tests and fuzz bots.
Description
The rollbar for the fuzz crashes can be found here.
We added some guardrails in agent0 via pr agent0/#771 that resolved the problem, but they're basically just canceling the trade if the calc_max fails. The random bot crashes can be replicated in the tests if we remove these guardrails.
Expected Behavior
calc_max should always return a valid trade amount, even if it is zero.
Actual Behavior
it exhibits underflow/overflow errors
Steps to Reproduce
see crash report
Possible Solution
This might be addressed by the "high 2" issue found in the rust audit report https://github.com/delvtech/hyperdrive/issues/774
although that issue is only regarding the first guess, not the rest of the iterative process.
Environment

Hyperdrive Version: last confirmed on 0.7.1
Agent0 Version: edge

Related Issues
This is possibly related to the max short issue, https://github.com/delvtech/hyperdrive-rs/issues/42

Closing this issue; the rust calc_max functions have several new guardrails / short-circuits and we haven't seen these bugs in fuzz testing for quite a while.


Fixed issue #43

Constructor receives an ID for the LinearLayout.
Allows more flexibility, multiple Toasts in different locations and
different active fragments, eg tabbed view.

dazito,
Thank you for the input. This functionality has been added to SuperActivityToasts in version 2.0.

John


Fix bug 723142

Better commit messages are nice, like ones that briefly explain what the code is like.

This should have a test as well proving that the redirect happens as intended.


make 'vak prep' command work with PREDICT section in config

Currently if durations for train / val / test sets are not specified, then prep assumes the entire data directory is a training set -- which is a problem when it's the data for which you want to predict annotation.
New behavior should be to identify whether config.ini has TRAIN, LEARNCURVE or PREDICT section -- if there are no train / val / test set durations, and there's a TRAIN section, assume it's TRAINing data, and if there's a PREDICT section, assume it's PREDICTion data

done in #83


[Bug report] Anchor links broken since 2.0-rc1

Description
Anchor links were working fine on 2.0-rc0, but I cannot get them to work on any version newer than this.
Reproduction
Use the VuePress starter
Used Package Manager
npm
System Info
Last known working config

System:
    OS: macOS 14.3
    CPU: (12) arm64 Apple M2 Pro
    Memory: 2.61 GB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.17.0 - ~/.nvm/versions/node/v18.17.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v18.17.0/bin/yarn
    npm: 9.8.1 - ~/.nvm/versions/node/v18.17.0/bin/npm
  Utilities:
    Git: 2.39.3 - /usr/bin/git
  Browsers:
    Chrome: 121.0.6167.160
    Edge: 121.0.2277.112
    Safari: 17.3
  npmPackages:
    @vuepress/bundler-vite:  undefined (2.0.0-rc.0)
    @vuepress/bundler-webpack: Not Found
    @vuepress/cli: ^2.0.0-rc.2 => 2.0.0-rc.2 (2.0.0-rc.0)
    @vuepress/client:  2.0.0-rc.0 (2.0.0-rc.0)
    @vuepress/core:  2.0.0-rc.0 (2.0.0-rc.0)
    @vuepress/markdown:  2.0.0-rc.0 (2.0.0-rc.0)
    @vuepress/plugin-active-header-links:  2.0.0-rc.0
    @vuepress/plugin-back-to-top:  2.0.0-rc.0
    @vuepress/plugin-container:  2.0.0-rc.0
    @vuepress/plugin-docsearch: 2.0.0-rc.0 => 2.0.0-rc.0
    @vuepress/plugin-external-link-icon:  2.0.0-rc.0
    @vuepress/plugin-git:  2.0.0-rc.0
    @vuepress/plugin-google-analytics: Not Found
    @vuepress/plugin-medium-zoom:  2.0.0-rc.0
    @vuepress/plugin-nprogress:  2.0.0-rc.0
    @vuepress/plugin-palette:  2.0.0-rc.0
    @vuepress/plugin-prismjs:  2.0.0-rc.0
    @vuepress/plugin-pwa: Not Found
    @vuepress/plugin-pwa-popup: Not Found
    @vuepress/plugin-register-components: Not Found
    @vuepress/plugin-search: Not Found
    @vuepress/plugin-shiki: Not Found
    @vuepress/plugin-theme-data:  2.0.0-rc.0
    @vuepress/plugin-toc: Not Found
    @vuepress/shared:  2.0.0-rc.0 (2.0.0-rc.0)
    @vuepress/theme-default:  2.0.0-rc.0
    @vuepress/utils:  2.0.0-rc.0 (2.0.0-rc.0)
    vue:  3.4.15
    vue-loader: Not Found
    vue-router:  4.2.5
    vuepress: 2.0.0-rc.0 => 2.0.0-rc.0
    vuepress-vite:  2.0.0-rc.0
    vuepress-webpack: Not Found

If https://v2.vuepress.vuejs.org/ is not working and so is https://theme-hope.vuejs.press/, then
Describe what is not working
If both of them are working,
Check your own issue and provide a valid reproduction


Use gpr_subprocess in fling_stream_test

Amazing :)
On Mon, Mar 6, 2017, 3:21 PM Yang Gao<EMAIL_ADDRESS>wrote:

@yang-g approved this pull request.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/grpc/grpc/pull/10001#pullrequestreview-25393401, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJpudcFwn-XD6NPV6TN6sKG_LVOxUAliks5rjJUGgaJpZM4MU0_u
.

Known issues:
Msan C: #9976
gRPC_interop_pull_requests: #9956, #9937, #9878


Ensure that python used to run client is used to create virtualenv.

This avoid problems in systems with multiple python versions avoiding that you run client with python2 and virtualenv can be created with python3.
Discovered the problem when running aldryn-client installed via python 2.7 and when checking code it creates virtualenv with python 3.4.
The error appear when setting up the workspace: https://gist.github.com/chronossc/b09533c8732c12833960

No more virtualenv since https://github.com/aldryn/aldryn-client/pull/49 :)


Macbook Pro HDMI out requires 'inputX on' to work

Observed repeatedly during LCA.
Macbook Pro (at least my 2013 Retina but observed over a ton of different models) HDMI port doesn't work until 'input1 on' (if using input1) is typed in.  Unplug laptop, plug back in, same issue.
Works perfectly without this using mDP adapter.

Can you get the HDMI2USBmond output when doing this?

Just to be sure,  if you activate debug on hdmi_in:
https://github.com/mithro/HDMI2USB-litex-firmware/blob/nextgen/firmware/hdmi_in0.c#L399
do you get the "dvisamplerX: connected" message when you plug the laptop?
If not, the the laptop is faulty, if yes then we can investigate on the enable sequence.

It isn't a single laptop, it's most/all of presenters Macbook's they're plugging in.  This is a constant issue (almost all of us have do 'input1 on' in all rooms for all talks with presenters that have macs during this conference)

I was asking that juste to  be sure it's not related to the hotplug detection with Macbook.
At least that the first thing to look at.


[SILGen] Fix a crash when a closure is converted to a pointer to a function returning a non-trivial C++ type

When emitting a native-to-foreign thunk, pass the thunk's result address parameter to the native function if both the thunk and the native function return their results indirectly and the thunk is not for an async function.
Also, remove an outdated assertion.
rdar://124501345
(cherry picked from commit 1b0df4eefe2513f193349afbbaa07ccfc46f0181)

@swift-ci please test

Explanation: Swift compiler crashes when a closure is converted to a pointer to a function returning a non-trivial C++ type. This patch fixes bugs in SILGen that were causing the crash.
Scope: The change I made impacts SILGen.
Original PR: https://github.com/apple/swift/pull/73561
Risk: Low.
Testing: Added a compiler test.
Reviewer: @rjmccall


Navigation bar scroll was not working.

I wanted to use the navigation bar of the material ui. But I noticed that the navbar scroll was not working. So, I set my issue. and also creating the pull request. So, check it out. It is working fine now.

This is not an bug. Limited to only 5 items for this component. If you want to show more you can use your way.


docs: clarify possible values of 'priority' field in circuit breaker runtime configuration

Hi. Please consider this pull request. Ideally, it would be nice to make envoy consistent with naming priorities (i.e., use default/high instead of 1/0). But looking into the code, I don't see an easy way how to achieve this without breaking compatibility.

closed because of missing requirements, resubmit shortly


sets up bridge controller for upcoming API changes

Handles both packed and unpacked cluster detail
Removes any processing of total_count, used for paging

Pulled into #35


[Suggestion] Add option to save icons settings on normal/md file

It would be nice to add an option to configure a folder to save the icon settings, instead of just being able to save them in the .obsidian
This makes it easier for some ways of sync between different devices (For example: Obsidian Live-Sync it only sync no setting folders (it also sync plugins, but it doesn't work very well) or use github but only with normal/md files/folders to have different configuration in mobile and PC)
Extra: Hide this config file like Folder Notes description notes

Alternatively, it would be nice to define the icon for each note within the frontmatter. This would make it very useful for my importer plugin to be able to set the correct icon on each note without requiring it to edit a file within the .obsidian folder.
Also, support to able to read the folder icon from the folder note that is used by "AidenLX's Folder Notes" plugin (the folder note is just a note inside the folder with the same name as the folder, but with ".md" added :)  )

It would be nice to set default icons for folders and files. That way, each time you create a new file or folder, it automatically adds an icon.
Is there a way to do this with Regex already, and I'm just not aware of how to use Regex for this purpose?

It would be nice to set default icons for folders and files. That way, each time you create a new file or folder, it automatically adds an icon.
Is there a way to do this with Regex already, and I'm just not aware of how to use Regex for this purpose?

Yes it is. There is a functionality called Custom Rules where you can specify your own Regex or string where it will add a default icon.

It would be nice to set default icons for folders and files. That way, each time you create a new file or folder, it automatically adds an icon.
Is there a way to do this with Regex already, and I'm just not aware of how to use Regex for this purpose?

Yes it is. There is a functionality called where you can specify your own Regex or string where it will add a default icon.Custom Rules

But the function doesn't seem to be used to match specific file types, e.g. \w+.md

Anyone have a working rule to automatically add an icon to new .md files?

\.md$ worked for me to set icons on all md files.

This does not seem to work with colors though :/

Closing because it seems similar to #142.


Theme: Change Typography members to type BaseTypography

Reverts #9423 which reverts #9368 aka restoring the original PR.
Resolves #4800
Makes BaseTypography abstract to avoid accidents with new()

As this is technically a breaking change (more info in the linked PRs) this will be a part of v8.x.x, not v7.x.x.

@ScarletKuro I think you had another idea for this but I don't remember what it was.

@ScarletKuro I think you had another idea for this but I don't remember what it was.

just make BaseTypography abstract, then it will give a compiler error when new unspecified type is used.

@jperson2000 What do you think about this remark?

Can we also rename this pls:
https://github.com/MudBlazor/MudBlazor/blob/b614357a4e63f6f2d40e9546d55fa55e2b87c307/src/MudBlazor/Themes/Models/Typography.cs#L133
from Default to DefaultTypography.
The problem I'm facing is that I want to use JSON source generator in ThemeManager as it the deepclone fails when trimming / aot used. But I can't use sourcegen as the generator fails on this part because the class and property have the same name :/

Wondering if we should add ICloneable to whole MudTheme considering that it's very logical to have it deep clonable and it would be faster than STJ sourcegenerator

Added to v8.0.0 Migration Guide https://github.com/MudBlazor/MudBlazor/issues/9953

@ScarletKuro If Default became DefaultTypography, should the others gain this suffix? H3 -> H3Typography

@ScarletKuro If Default became DefaultTypography, should the others gain this suffix? H3 -> H3Typography

That makes sense to me. It feels odd to have common names like Default, Button, and Input under the root (MudBlazor namespace), as there’s a good chance of conflicts.
However, I’ll leave that decision up to @henon. I wouldn’t want to do too many renamings here and there.
I only renamed Default because it broke the STJ source generator for some reason. I'm not sure why. My initial thought was that the source generator creates nested code like this:
public class Generated
{
    public Default Default { get; set; } = new();

    public class Default {}
}

This would throw an exception in C#, but it doesn’t for other classes like H1, H2, etc. So only the necessary part was renamed and I couldn’t find a better name than DefaultTypography, since Typography was already taken.

@ScarletKuro Is this available in 7.9.0?  I see it in the commit but  doesn't seem to be present or in the change log?

@ebendorland it's not part of v7.9.0, it's for next major version.


Can't resolve Error 1062

Details:
Ubuntu 16.04
wandb 0.10.27
python 3.6.13
I accidentally created two runs with the same run id (I know this is not normally possible). I now periodically receive the following error in my terminal:
wandb: ERROR Error while calling W&B API: Error 1062: DUplicate entry '232268-lxly74ya' for key 'PRIMARY' (<Response [409]>)
I have already tried the following:

deleting my local wandb directory (with the local run directories)
reinstalling wandb with pip
deleting the run from the wandb web dashboard

However, I still keep getting the error! Any help would be appreciated.

Unfortunately, you have 2 options.

resume the existing run by adding resume="allow" to your wandb.init call
Use a different id by calling wandb.util.generate_id() and passing it into wandb.init

We have plans to free up deleted run ids, but currently we soft delete the run so the id remains in our database.

So I have already deleted the run on the dashboard, and I'm not trying to re-run anything using the duplicate run id. Despite this, I keep getting the same error pop up in my terminal. Would I still be able to resume a run after I delete it?

@adamoyoung if you send me a link to the original run we can un-delete it for you if that's what you'd like.  I'm curious if you're able to use a different id in this case?  What's making you need to use the same id as the one you once deleted?

Hm, I don't have a link to the original run because I deleted it from my dashboard (or at least, I thought I did). To be clear, I am not trying to use that id again: rather, every time I run something on my client, it gives me this error message over and over again, like in the image below. The id that is giving me trouble is "232268-lxly74ya"

Ahh, I see.  You just need to remove the file located at: wandb/wandb-resume.json

Where is this file? I deleted my entire wandb/ directory in my repo for this project (~/msms) but I was still not able to stop the messages/

If you're not setting the id argument of wandb.init, then it's either reading a file named wandb/wandb-resume.json (relative to your script) or you have set the WANDB_RUN_ID environment variable.  Try typing env | grey WANDB to see if that's set in your environment.
If all else fails, you can run wandb.init(id=wandb.util.generate_id()) to force the run to use a new id.

OK, I tried running another script using wand.init(id=wand.util.generate_id()). This script worked (as it has previously). I also deleted the entire wandb directory in my folder. However, I am still periodically getting this error.

Since the problem persists even after I delete the wandb directory and reinstall everything, I suspect that it is an issue on the server side, although I may be wrong.

I tried deleting the project on the wandb dashboard, I think it solved the problem. It gave me the error message in the first screenshot below (presumably because I deleted the project, msms_pred, to which the bad run belonged). However, I noticed that after this error message was created, the previously-deleted msms_pred project was recreated on the dashboard, with the bad run being there (see second screenshot).

@adamoyoung I'm really confused as to what's happening.  Are you able to run new runs now?  If not it must be one of the following issues:

WANDB_RUN_ID is set in your environment
id=XXX is being set in your script
A file named wandb/wandb-resume.json exists relative to your script

If you're still seeing this issue, have you confirmed none of these things are true?

I was always able to run new runs, it's just that I would get the error message that I posted (https://github.com/wandb/client/issues/2112#issuecomment-827199363) in my terminal, regardless of whether or not I was running anything. This message would appear periodically even when all my wandb runs were finished.
I checked all of the things that your mentioned. The error occurred when I was not even running anything, so I think 1. and 2. do not apply. I deleted the entire wandb directory and reinstalled wandb. I also searched my entire computer for wandb-resume.json and I could not find anything.
Just to reiterate: I am no longer seeing this issue. The only way I could solve it was by deleting the entire project (that contained the bad run_id) on the dashboard.

Ahhh, yeah there's likely a old process that's still running.  Do a ps aux | grep python and find the PID then send kill -9 $PID.  Or you could just restart the machine.  Glad to hear it's working now 👍


Corrupted data with Swift 2.0 / Xcode 7 beta 3

So, I'm not sure how much this is a FastCoding issue vs a Swift 2.0 issue, but I figured you'd want to know about it either way:
I've been migrating a project to Swift 2.0, I skipped the first couple of betas but dived into Xcode 7 beta 3, and I've run into an issue where data is being corrupted when passed from Swift into FastCoding.
What appears to be happening is that the caching system is incorrectly identifying cache hits, and writing aliases to the previous entries, when in fact the data is different.
I'm not familiar enough with the internals of FastCoding or Swift to be sure, but I think this may be because Swift is wrapping some of its data structures in temporary objects when they get passed to Obj-C, and those might get recycled within one archiving operation?
This gist shows a minimal repro for the issue (tested with FastCoding version 3.2.1, Swift version 2.0 swiftlang-700.0.45 clang-7<IP_ADDRESS>)
https://gist.github.com/Canis-UK/2409f367bbef978b43c3
If you create a new iOS Single View Application project in Xcode 7b3, and paste the gist code into its ViewController.swift, it'll attempt to encode and then decode a test dictionary (containing a couple of TestObject instances) when the app is launched, and compare what it decoded against the original.
If you flip the #define to use NSKeyed(Un)Archiver, it's fine -- but with FastCoder the two separate object instances end up with identical values.
The encoder for TestObject writes an array, which gets passed into FastCoder's encodeObject:forKey: as type "Swift._SwiftDeferredNSArray", which I'm guessing is a handle that points to the original Swift array and creates an NSArray on-demand with a reference to the same data; this deferred object then turns up in the cache -- a breakpoint in FCWriteObjectAlias shows it getting hit on the second instance.
(Irritatingly, certain debugging explorations cause the code to work correctly, making this tricky to discover. I'm guessing that poking at the objects in the debugger can cause the deferred objects to be instantiated or something like that, but I'm kinda shooting in the dark on that one. Just giving you a heads up that its a bit of a Heisenbug)
If it turns out to be strictly a Swift bug, I'll cheerfully file a radar :) but other folks using FastCoding should probably be warned!

Some additional notes on reproing this:

To repro, you also need to (obviously) add FastCoder.m/.h to the project along with a Swift bridging header that includes FastCoder.h
As recommended, I set it to compile with ARC disabled
I was testing on the "iPhone 6" simulator, not that it likely makes any difference (but it was a 64-bit Intel build, anyway).

Having poked around in FastCoder some more, I think I see what's happening. The CFDictionary in which objects are cached is initialised with null keyCallbacks, so the objects used as keys are just treated as bare pointers. If the objects get freed after being cached, of course those pointer addresses may be reused by subsequent allocations. (Turning on the Xcode 7 Address Sanitiser made the problem go away, suggesting this is indeed the issue: Mike Ash writes that amongst other things "Address Sanitizer defends against [use-after-free errors] by placing newly freed memory into a recycling queue that keeps it unallocated for a while before it can be reused.".
My guess is that previously, the issue wasn't arising because the objects were autoreleased, and thus kept alive until the autoreleasepool terminated, which would be beyond the scope of the coding operation (either the pool in -dataWithRootObject: or one outside it depending on when the objects were created), but I'm guessing that now Swift 2 is more aggressive about optimising object lifetimes, doing an immediate release on them in more circumstances.
As a temporary hack, I've modified FCCacheWrittenObject():
static inline NSUInteger FCCacheWrittenObject(__unsafe_unretained id object, __unsafe_unretained NSMutableDictionary *cache)
{
    NSUInteger count = (NSUInteger)CFDictionaryGetCount((CFMutableDictionaryRef)cache);
    CFDictionarySetValue((CFMutableDictionaryRef)cache, (const void *)(object), (const void *)(count + 1));
#if FC_RETAIN_RELEASE_HACK_ENABLED
    [[object retain] autorelease];
#endif
    return count;
}

...where FC_RETAIN_RELEASE_HACK_ENABLED is defined based on ARC status. Obviously, this is kind of kludgy, and has performance implications on both speed and working set size, but it was effective in solving the problem. An alternative might be to set appropriate keyCallbacks on the cache dictionary?
Anyway, hope that helps.

Nice find, I confirmed your test case on Xcode 7.2, swift 2, with ARC enabled on fastcoder.m. It fails as you described.

Can anyone confirm if this is still happening in the latest releases? A test case would be extremely helpful.

Unfortunately, I was never able to reproduce the issue in a stand-alone test case and we now moved to a different structure where the issue never occurred. It happened with a dictionary where the keys were custom objects that implemented NSCoding and stored some small (only a couple of bytes) NSData instances.
The dictionary only contained objects of type ComplexObject for its values and keys (!). Maybe this is the reason. NSDictionary copies its keys, whereas CFDictionarySetValue() in FCCacheWrittenObject() doesn't (I believe).

NSDictionary
-- ComplexObject
-- NSUInteger
-- NSData
-- NSArray

If I ever run into the issue again, I'll let you know.

@fabiankr ah, good point about me not copying the keys. That's a bug on its own regardless of any other side-effects.


Rename mesh_material to mesh_subgroup

I feel like mesh_material is an incorrect name for the class considering that it is responsible for mesh data of sub-parts of another, bigger mesh.

@h4570  What do you think about this issue, is it worth changing or should we keep the name as is?

Resolved in Tyra 2.0.0


do not HTML-escape prompt

The html/template package automatically HTML-escapes interpolated strings in templates. This behavior is undesirable because it causes prompts like
hello to be escaped to <h1>hello before being passed to the LLM.
The included test case passes, but before the code change, it failed:
--- FAIL: TestModelPrompt
    images_test.go:21: got "a<h1>b", want "a
b"

This is a great catch. Thanks so much for finding it!


Comment here to be added as a collaborator

Comment below - you can say anything
We will all be using this repository today. Even though it's public right now, you will not be able to make changes until you're given the correct permissions. We've automated this process via the GitHub API and some fancy chatops. Once you comment, we will add you as a collaborator.
You'll also start to receive a lot of emails. (:exclamation:) You can slow these down immediately by clicking the 'Unwatch' button and selecting either the 'Not watching' or 'Ignoring' option.

anything :)

Hi

👍

Hi!

Hello!

comment

:beers:

Hey

💯

Hello

hi

now!

Hi, please add me

Hello :octocat:

hey

comment

Hello


[BUG] Export with export_media=False overwrites original data directory

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 20.04
FiftyOne installed from (pip or source): pip
FiftyOne version (run fiftyone --version): FiftyOne v0.16.5,
Python version: Python 3.8.10

Commands to reproduce
import fiftyone.types as fot

path = "/some/path"
# dataset
# - is loaded with ImageSegmentationDirectory
# - the ground truth segmentation mask is saved under the label_field "segmentation"
# - has proper mask with array of type uint8

label_type = "segmentation"
dataset_type = fot.ImageSegmentationDirectory
dataset.export(
    export_dir=path,
    dataset_type=dataset_type,
    label_field=label_type,
    data_path="data",
    labels_path=label_type,
    export_media=False,
    overwrite=False,
)

Describe the problem
When exporting a dataset of type ImageSegmentationDirectory with the parameter export_media=False

the output path stays empty
the directory with the original data from the dataset gets corrupted: the images in the folder with the original raw images (e.g. mydataset/data) get overwritten with the segmentation masks.
In effect, the folder with the original data is destroyed and the original data lost.

What areas of FiftyOne does this bug affect?

[ ] App: FiftyOne application issue
[x] Core: Core fiftyone Python library issue
[ ] Server: Fiftyone server issue

Willingness to contribute
The FiftyOne Community encourages bug fix contributions. Would you or another
member of your organization be willing to contribute a fix for this bug to the
FiftyOne codebase?

[ ] Yes. I can contribute a fix for this bug independently.
[ ] Yes. I would be willing to contribute a fix for this bug with guidance
from the FiftyOne community.
[x] No. I cannot contribute a bug fix at this time.

I'm not quite following what you're saying the issue is, but the ImageSegmentationDirectory exporter is  working as expected.
In the example below, dataset2 is a segmentation dataset with its contents written to /tmp/segmentations on disk, but there's no issue after exporting (only) its masks using export(..., export_media=False)
import fiftyone as fo
import fiftyone.zoo as foz

TEST_DIR = "/tmp/segmentations"

dataset = foz.load_zoo_dataset(
    "coco-2017",
    split="validation",
    label_types="segmentations",
    max_samples=51,
)

dataset.export(
    export_dir=TEST_DIR,
    dataset_type=fo.types.ImageSegmentationDirectory,
    overwrite=True,
)

"""
$ ls /tmp/segmentations
data    labels

$ ls /tmp/segmentations/data | head -3
000000000139.jpg
000000000285.jpg
000000000632.jpg

$ ls /tmp/segmentations/labels | head -3
000000000139.png
000000000285.png
000000000632.png
"""

dataset2 = fo.Dataset.from_dir(
    dataset_dir=TEST_DIR,
    dataset_type=fo.types.ImageSegmentationDirectory,
)

# Now export only the masks to a new `segmentations/` subdirectory of `TEST_DIR`

dataset2.export(
    export_dir=TEST_DIR,
    dataset_type=fo.types.ImageSegmentationDirectory,
    labels_path="segmentations",
    export_media=False,
)

"""
$ ls /tmp/segmentations
data        labels      segmentations

$ ls /tmp/segmentations/data | head -3
000000000139.jpg
000000000285.jpg
000000000632.jpg

$ ls /tmp/segmentations/labels | head -3
000000000139.png
000000000285.png
000000000632.png

$ ls /tmp/segmentations/segmentations | head -3
000000000139.png
000000000285.png
000000000632.png
"""

# The dataset still loads fine in the App
session = fo.launch_app(dataset2)

Sorry, I think I must be more specific:
Case 1: Export to a new segmentations/ subdirectory of TEST_DIR

everything works fine as you showed above

Case 2: Export to a totally new directory EXPORT_DIR

change the dataset2 export above to save to EXPORT_DIR:

EXPORT_DIR = "/tmp/coco_export"
dataset2.export(
    export_dir=EXPORT_DIR,
    dataset_type=fo.types.ImageSegmentationDirectory,
    labels_path="segmentations",
    export_media=False,
)

Result
# output path empty
$ ls /tmp/coco_export/segmentations/

# the data folder of the TEST_DIR is unwanted populated with the segmentation masks
$ls /tmp/segmentations/data
000000000139.jpg<PHONE_NUMBER>85.jpg<PHONE_NUMBER>32.jpg<PHONE_NUMBER>24.jpg
000000000139.png<PHONE_NUMBER>85.png<PHONE_NUMBER>32.png<PHONE_NUMBER>24.png
...

Hope you reproduce it now.

Hmm, I'm still not following what output you're looking for. Here's all the variations I can think of:

Export images only:

dataset2.export(
    export_dir="/tmp/images",
    dataset_type=fo.types.ImageDirectory,
)

Export masks only:

dataset2.export(
    labels_path="/tmp/masks",
    dataset_type=fo.types.ImageSegmentationDirectory,
    export_media=False,
)

Render masks as colored overlays on the images themselves (docs):

dataset2.draw_labels("/tmp/rendered-masks")

I want to do export masks only to a location different than the original dataset (what you showed as 2. point above). However, as pointed out in my last comment (under Case 2), when doing this (using export_media=False) my original dataset directory gets messed up and the goal directory stays empty.
But seems like you can not reproduce this problem...

Ah thank you, now I understand! I am able to reproduce this bug on fiftyone==0.16.5 and have verified that it will be fixed in fiftyone==0.17.0 which will be released in the next couple days.
In the meantime, you can achieve the output you'd like on your existing install by passing an absolute path to labels_path rather than providing both export_dir and a relative labels_path:
dataset2.export(
    dataset_type=fo.types.ImageSegmentationDirectory,
    labels_path="/tmp/coco_export/segmentations",
    export_media=False,
)

It seems that the current FiftyOne release is getting confused when trying to join export_dir and labels_path when the syntax you're trying is in use.


Fix typos

@fabiocorreia95 Found few misspellings, mainly that exception.
https://github.com/crate-ci/typos
➕ One more thing: half of the exception messages is in Portuguese, the other half is in English ...

@szepeviktor Thank you for your contribution dealing with typos in code :)
Regarding the messages in Portuguese/English, it may vary a bit.
We do have our most common API errors translated, while others that don't happen that often, or that can vary in English, but they are easy to interpreter.

Glad to contribute.


Background image aspect ratio and display

I've played with the 'image' tag, which is working quite well but, I'd like to know

what is the recommended size/aspect ratio?
why is there a gray area on the left (see photo)?
would it be easy to have the same image in the 'knobs screen'?

In this photo I used a 2.5:1 aspect ratio PNG:

Ok I see this image visibility is controlled here: https://github.com/sfztools/sfizz/blob/ae42f4a8822bb433f72912158e07d28331d0a447/plugins/editor/src/editor/Editor.cpp#L1901

FYI image tag is not supported in sforzando:

If you use this tag then you will need separate .sfz files for sforzando vs sfizz :(

Background image dimensions for sfizz are 790x285 as seen in code here:
https://github.com/sfztools/sfizz/blob/develop/plugins/editor/layout/main.fl#L10
For a 2x version you can use 1580x570, but as mentioned file will error in Sforzando if you use the image tage

If you import a Decent Sampler instrument, the background image is supported:

Sometimes you have to switch tabs for the image to load properly (a known bug)

Hello! sorry for the long delay.

I've played with the 'image' tag, which is working quite well but, I'd like to know
* what is the recommended size/aspect ratio?

* why is there a gray area on the left (see photo)?

* would it be easy to have the same image in the 'knobs screen'?

The aspect ratio is the original, 1:1 adapted to fit in the image container
in the kmturley posted link you see a xywh {90 110 790 285}; for convenience it was decided to use that 110 pixels offset
I'll try something ASAP, although I think it would look ugly if the image don't span the full width

My opinion:

Removing the offset is a good idea, looks better to have a full width image
Using the same image for Home and Controls looks cluttered

Instruments loaded into sforzando, use two separate images to avoid this issue.

Otherwise you are asking every instrument maker to create separate image crops for sforzando vs sfizz

Otherwise you are asking every instrument maker to create separate image crops for sforzando vs sfizz

No-one is forcing you or instrument makers to do anything. If you choose to make a sfizz compatible instrument, or choose to make a sforzando compatible instrument, that is your choice.
The layout choices for sfizz are suboptimal, and I would not think that currently this represents the best sfizz plugin has to offer.
Personally, I would like an interface that sample lib makers can easily adapt. However scope creep moves in very fast, and simple controls become full blown ARIA-XML situations.
I would like at some point if we revisited a simpler, more instrument focused approach. Where the graphical tools were simply there to give a patch a bit of spice, as opposed to the main event.

Instruments loaded into sforzando, use two separate images to avoid this issue

We don't have the UI system sforzando have, we can only set a single image when image opcode is set in sfz, the video demo was just to propose a solution to the OP.

Let me know what do you think about this solution:

no bg image on controls page unless a "controls_background.imgext" (or better name) is found
replace the info panel with a semitransparent overlay (like the about dialog) over the home page
remove the "about sfizz" button in settings and replace it with the sfizz logo (as it was previously) being orange on mouse hover

The full-width image change is applied in develop, the image container size is now 800x300. If the image can't fit with a 1:1 aspect ratio, it will be rescaled (as previously) and now centered.
I'll try to make the other 2 changes (possibly together with #1132) before the next release, planned for the next weekend.

Sometimes you have to switch tabs for the image to load properly (a known bug)

@kmturley is this on both lv2 and vst3 or vst3/au only? It happened to me 2 or 3 times only with VST. I see that vmeters doesn't work there. With LV2 when loading a sfz file it starts from the plugin contents directory instead from the user folder.
Anyway, this is what I got:
https://user-images.githubusercontent.com/1171962/231317175-683a9964-86ce-4a05-aa84-e02bc37643dd.mp4


crash with cotton 1.14.3 pre 2

it happens just before loading a world https://pastebin.com/cagcYHTz

Cotton doesn’t yet support this version of Minecraft.

This is a yarns issue, so it's luckily an easy fix, but we're going to only target non-snapshot versions of 1.14.x from here on out.

This should be fixed now (in 720e021).


Update/tests

Added test case for Model Controller and updated an existing test case in Snapshot Reducer

Awesome! :+1:


Improve responsiveness from intermediate page to category-specific page

Sample link (protein)
Sample link (reaction)
Issue is likely caused by a combination of round-about api calls and the performance of the underlying python queries.

I'm marking this as "future", because I don't think this is a big problem. For an innovative academic tool, I think the responsiveness is pretty good.
The bottleneck is the REST calls. In my experience, the slowest call is the REST call which gets the UniProt ids for the proteins in the ortholog group. This is ~8s.
Many of the REST calls are retrieving more data than necessary for the pages. One potential way to reduce the latency is to implement more limited queries that only return the needed information. With the refactored code, it should be easier to understand what data actually needs to be returned.

The bottleneck is the REST calls. In my experience, the slowest call is the REST call which gets the UniProt ids for the proteins in the ortholog group. This is ~8s.

I think this would be a good starting point to try modularizing data retrieval and at the same time, avoiding problems with async from react.

Since UniProt is released every 4 weeks and is a known fairly stable format, why not just download the file and parse into a means that can be queried locally? I know you are using REST, but federated search might be of value here.
In a proof of concept with UniProt I downloaded the file and parsed using Prolog DCGs. Granted the data as Prolog facts are rather large, but using Quick Load Files they load relatively fast.
See: Quick Load Files
While on the topic of federated search, Neo4j recently added that ability. See: Extending the Graph Database with Data Federation
Not suggesting you change anything just dropping some ideas.

The issue refers to two queries to our API which we should refactor. The data is downloaded and processed locally, in part for performance and in part because many of the data sources don't support federation.

Thanks for the added info.

I'm closing this because it seems to be working pretty well.


New ad

Please create an image the same size as https://landscape.cncf.io/images/kubecon.jpg that has Shanghai on the left (with dates) and Seattle on the right. You probably want a single KCCNC image at the top.

Done.


Two question

Hello,
I think it is a nice little utility library. However, I have two questions
1.> What is its own overhead while trying to collect the stats?
2.> I checked the code and saw that you are using subprocess to launch cli commands from your python code, I was wondering if you know about invoke It is a well maintained library and may help you in doing this kind of things.

Any added advantage of using invoke?


🚀 [Feature] : Implement GA4 Tags

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

No need to have anymore, because we are not planning to use GA4