Add callback allowing to switch to single files compilation mode

For certain reasons this time I have to paste the below disclaimer:
THIS PROGRAM IS SUBJECT TO THE TERMS OF THE BSD 3-CLAUSE LICENSE.
  THIS SOFTWARE MAY BE REDISTRIBUTED TO OTHERS ONLY BY EFFECTIVELY USING THIS OR
ANOTHER EQUIVALENT DISCLAIMER IN ADDITION TO ANY OTHER REQUIRED LICENSE TERMS.
 NO OTHER SOFTWARE CODE OR MATERIALS ARE A CONTRIBUTION.

LGTM

Am I right that the goal is to bypass incremental recompilation entirely and recompile only the files that were modified? How is this different from AntStyle incremental compilation?

@Duhemm
You are right about the goal, but we cannot use AntStyle builder.
This pull request (as several others before and after it) is aiming to bring zinc to IntelliJ (you will be able to choose zinc as default compiler). So we need normal incremental compilation (including name hashing) which only sometimes need to be switched to single files compilation (namely when someone uses 'Compile'). Moreover if after compiling single file user will hit 'Make', zinc should have correct analysis in place and continue compilation from there.

Of course Intellij needs to handle all files that should be recompiled due to possible changes in compiled source (that is why incrementallyInvalided is passed to hook.

@pkukielka I see, thanks for the explanations. The only thing that worries me is that the incremental compiler is starting to have 2 different ways of being configured: IncOptions and ExternalHooks. Any reason not to put this setting in particular in IncOptions?

External hooks are part of IncOptions - however this is Java code (with possible nulls) so that is why it is also accessible by Lookup instance.
IncOptionsUtil.java#L87-L99 and incremental.json#L145-L149

LGTM


yubikey-agent can't find pinentry

Describe the bug
The new change to yubikey-agent here breaks yubikey-agent on NixOS. The upstream library used to be github.com/gopasspw/gopass and switched to github.com/gopasspw/pinentry. This new repo is a copy of the pinentry code of gopass, but without the commit history. Unfortunately the behavior of finding the pinentry binary changed here from just returning pinentry of the PATH variable to actually using gpgconf to determine the path.
gpgconf returns the (hard-coded) path to the relative pinentry binary in the gnupg folder. Since there is none (and the choice of pinentry flavor is left up to the gpg-agent so it didn't concern anyone), it now fails.
This is a known problem of gpgconf, and something that is probably not easily fixed. For reference, here are the somewhat related issues: #92084, #97861.
Steps To Reproduce
Steps to reproduce the behavior:

Enable yubikey-agent (services.yubikey-agent.enable)
start yubikey-agent

It returns PIN entry program "/nix/store/w1vdk0pi7jakzc8ndwgrzc2z9ic1x1wa-gnupg-2.2.27/bin/pinentry" not found!
Expected behavior
Yubikey-agent should start.
Additional context
I submitted an upstream PR with a small fix that allows the upstream library to fall back to the PATH pinentry when the path returned by gpgconf doesn't exist. See here.
If @dominikschulz agrees with the changes, and yubikey-agent uses the new version of the library, it should work again.
Notify maintainers
@philandstuff and @rawkode
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
 - system: `"x86_64-linux"`
 - host os: `Linux 5.10.76, NixOS, 21.11 (Porcupine)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.5pre20211007_844dd90`
 - channels(florian): `"agenix"`
 - channels(root): `"nixos-21.11pre328987.c935f5e0add, agenix, nixpkgs-21.11pre327990.4789953e5c1"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

Pinentry already approved the PR.
A PR for an updated yubikey-agent is underway.
For anyone interested in testing this, here is the snipped I use in my configuration.nix to override the yubikey-agent version with the commit of the PR:
nixpkgs.overlays = [
      (self: super: {
      # use PR commit here to use new version of pinentry
      yubikey-agent = super.buildGoModule {
        inherit (super.yubikey-agent.drvAttrs)
        pname doCheck nativeBuildInputs buildInputs
        buildPhase installPhase postPatch subPackages postInstall;
        inherit (super.yubikey-agent) meta;
        version = "0.1.5+pr";
        src = super.fetchFromGitHub {
          owner = "FiloSottile";
          repo = "yubikey-agent";
          rev = "962143a24de64cc91a8cf8f4d45f97cd44abf2e2";
          sha256 = "H1sGLOz3vqNcNkaCmxehuiTRXPojWjFVDSVUko4jWfE=";
        };
        vendorSha256 = "gTZERpmX/1bXXqjK5jTirXBEo+LAvoBdHF7ugsc0HkE=";
      };
    })
  ];

and yes, it works ;-)

Thanks for the clear bug report, @gador! I don't think there's much we can do until FiloSottile/yubikey-agent#107 is merged, and its maintainer can take months to approve PRs.

@philandstuff thanks for looking at the code! I updated my comment and I agree, now we wait.

Great, the upstream PR has been merged, now we just need to await a new version tag


Problems with Xamarin.Forms implementation

Again, thank you for your great work.
I downloaded the Xamarin.Forms implementation and get the following problems:

In the iOS renderer (MapViewRenderer.cs) I get an error in line 747. I assume, that there is a problem. The part is

 if (Element.MapStyle.CustomLayers is INotifyCollectionChanged notifiyCollection)
 {
   notifiyCollection.CollectionChanged += OnLayersCollectionChanged;
 }

Should the code be
 if (Element.MapStyle.CustomLayers is INotifyCollectionChanged)
 {
   var notifiyCollection = Element.MapStyle.CustomSources as INotifyCollectionChanged;
   notifiyCollection.CollectionChanged += OnLayersCollectionChanged;
 }

When compiling the demo for Android, I get the following error:

The "Xamarin.Build.Download.XamarinBuildAndroidAarProguardConfigs" task could not
be loaded from the assembly S:\Entwicklung\xf-mapbox-master\packages\Xamarin.Build.Download.0.4.6\build\Xamarin.Build.Download.dll.
Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are
available, and that the task contains a public class that implements
Microsoft.Build.Framework.ITask.

If I want to update to Naxam.Mapbox.Droid <IP_ADDRESS> as you suggested, than I get an error, because it needs Naxam.Mapzen.Lost.Droid 1.1.1

Perhaps I'm doing something wrong, but I downloaded only the project and tried to start the demo.
Thank you very much for your help.

Issue 1: Plz make sure your IDE is update to date. That's C# 7 syntax.
Issue 2: Plz try again, I updated the code to use Mapbox Android 5.1.0

Ok, thank you for your answer.

I use up to now VS 2015 with C# 6
and 3. are vanished with the new version.


Add support for blesh

See https://github.com/akinomyoga/ble.sh/wiki/Manual-§1-Introduction#user-content-fn-blehook for more details

Thank you for your work! 🎉


refactor/peer-dependencies

Make all types lib peerDependencies instead of optionalDependencies.
This will prevent installing both Yoga & Envelop.

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@398cfaf). Click here to learn what that means.
Patch has no changes to coverable lines.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the GitHub App Integration for your organization. Read more.
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #491   +/-   ##
=======================================
  Coverage        ?   95.10%
=======================================
  Files           ?       17
  Lines           ?      327
  Branches        ?       92
=======================================
  Hits            ?      311
  Misses          ?       16
  Partials        ?        0

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

Thanks for these changes.
Last week I was wondering why Apollo were shipped with Escape and it was only for types. So I were planning to open an issue about that ✅


Scroll cause image reposition

First, thanks for your awesome script. this is the second project I have pleasure to use Stellar.
When i do first scroll all elements with parallax, they jump to position causing a bad impression on page. After this, everything is ok. Code:
Index.html

<script src="http://maps.google.com/maps/api/js?sensor=false&libraries=geometry&v=3.7">
</script>
<script type="text/javascript" src="js/maplace-0.1.3.min.js"></script>
<script src="js/jquery.stellar.min.js"></script>
<script src="js/script.js"></script>

script.js
jQuery(document).ready(function ($) {
$(window).stellar({
responsive: true,
horizontalScrolling: false,
horizontalOffset: 0,
hideDistantElements: false
});
});

Try responsive:false


Output HTML-rendered UHDM progress output to github.io as part of CI

The Surelog tests generate surelog.uhdm.chk.html files that render input files with annotations about parts that are not covered yet. This helps estimate progress and drill down particular parts.
These are generated as part of running the Surelog tests.
It would be good to have these HTML files available as part of the CI output, copied to github.io pages for easy linking (similar to how we generate the sv-tests output).
@alaindargelas is the surelog.uhdm.chk.html the only one I need to look out for ? IIRC you also had an overview list that shows the coverage percentages.

Looks like I don't have permission to assign myself to the bug, can you do that ?

Hi Henner,
I added you in the group.
The html files contain % so that is all you need. You also have to bring
all the detailed chk.html files that reside next to it along with the
main one for detailed source navigation.
On Thu, Jun 18, 2020 at 9:14 AM Henner Zeller<EMAIL_ADDRESS>wrote:

Looks like I don't have permission to assign myself to the bug, can you do
that ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/alainmarcel/uhdm-integration/issues/25#issuecomment-646133657,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/APFYJ5GP2BVAZRE4JU7VF63RXI4OJANCNFSM4OB5OMDQ
.


chore(deps): [Snyk] Security upgrade python from 3.12 to 3.13.0a2-slim

This PR was automatically created by Snyk using the credentials of a real user.Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image.
Changes included in this PR

server/backend/Dockerfile

We recommend upgrading to python:3.13.0a2-slim, as this image has only 38 known vulnerabilities. To do this, merge this pull request, then verify your application still works as expected.
Some of the most important vulnerabilities in your base image include:

Severity
Priority Score / 1000
Issue
Exploit Maturity

263
Out-of-bounds Write SNYK-DEBIAN12-AOM-6140324
No Known Exploit

220
Inappropriate Encoding for Output Context SNYK-DEBIAN12-OPENSSH-1556053
Mature

263
CVE-2023-28531 SNYK-DEBIAN12-OPENSSH-3364257
No Known Exploit

264
Integer Overflow or Wraparound SNYK-DEBIAN12-ZLIB-6008963
No Known Exploit

264
Integer Overflow or Wraparound SNYK-DEBIAN12-ZLIB-6008963
No Known Exploit

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

python 3.13 is in pre release stage, don't feel we need to do the update now, and we're not using the docker in pipeline, the pipeline is using 3.8


Can not install the docker required

When I try to install the docker according to the README,there are some errors that I can not under stand

Could you try the following?
First, remove this line: https://github.com/NVlabs/motion-policy-networks/blob/3c3a632d238622477f29347dfd7b6df34bfe0d18/docker/Dockerfile#L152
Then add an additional RUN command in the docker (perhaps here: https://github.com/NVlabs/motion-policy-networks/blob/3c3a632d238622477f29347dfd7b6df34bfe0d18/docker/Dockerfile#L154). This command should say:
RUN git clone https://github.com/fishbotics/pointnet2_ops && cd pointnet2_ops && git checkout v3.2.0 && python3 setup.py install
I'm wondering if the method of doing version comparisons broke for a new version of Pip.

I have the same problem. I suspect it is the problem of the installed version of torch. Can you tell me which version of torch is installed in your environment

I think I fixed the issue over in Robofin--it seems that version specification for setuptools does not support + characters anymore. If you try rebuilding now, it should work.

This seems to work on my end so I will close the issue. Please re-open if it's not fixed for you.

Thanks for your help,It also works on my machine.By the way,could you please provide the code of the real-robot experiment?I am trying to deploy it on my Franka @fishbotics

Meanwhile,I can run the code after the above modification,but it seems that I have to execute "pip install -e ." in the directory of "pointnet2_ops" to make the program find that module.


Stripe plugin errors when process

Stripe errors seem to occur when sending the subscription event

Some fields don't seem to be mapped properly

Getting the same error!


[Feature Request] Declare a fallback unit in case it's missing from the query

I started using this package and I'm very happy with your work!
I'm trying to use it for implementing media queries in NativeScript. There, we can set values like width and height with or without specifying unit:
.title {
  font-size: 32;
  width: 200;
}

I'd like to use media queries the same way by specifying a default unit of my choice in case it's missing from the query.
@media only screen and (max-width: 600) {
  body {
    background-color: lightblue;
  }
}

I imagine something like this:
const testEnv = (widthPx = 1280, heightPx = 800) => ({
  widthPx,
  heightPx,
  deviceWidthPx: widthPx,
  deviceHeightPx: heightPx,
  dppx: 2,
  fallbackUnit: 'px' // Use this in case unit is not specified
});
console.log(matches(maxWidthQuery, testEnv(1280))); // false

My problem seems to be this check in getValue: https://github.com/tbjgolden/media-query-fns/blob/main/lib/units.ts#L476
I edited the following lines to make this work:
-   } else if (unit.type === "number" && unit.value === 0) {
-     return 0;
-   }

+   } else if (unit.type === "number") {
+     return unit.value;
+   }

Is there any easy way to customize this behaviour?


Apply numpy 2 migrations for _ types in tests

Description

Makes tests pass for numpy 2.0. Tests still pass with 1.26 too.
Applies these changes to update float_ and complex_ types
https://numpy.org/doc/stable//numpy_2_0_migration_guide.html#changes-to-namespaces
Motivation and Context

Prepare for numpy 2.0
Checklist:

[X] I am familiar with the Contributing Guidelines.
[X] I agree with the terms of the Contributor Agreement.
[X] My name is on the list of contributors.
[X] The changes introduced by this pull request are covered by existing or newly introduced tests.
[ ] I have updated the changelog and added any related issue and pull request numbers for future reference.

Error message for failing test on macos, 3.8, oldest
Run pip install -r .github/workflows/ci-oldest-reqs.txt
Collecting coverage==5.3.1 (from -r .github/workflows/ci-oldest-reqs.txt (line 1))
  Downloading coverage-5.3.1.tar.gz (684 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 684.5/684.5 kB 20.9 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'done'
Collecting numpy==1.19.0 (from -r .github/workflows/ci-oldest-reqs.txt (line 2))
  Downloading numpy-1.19.0.zip (7.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.3/7.3 MB 80.8 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'done'
  Preparing metadata (pyproject.toml): started
  Preparing metadata (pyproject.toml): finished with status 'error'
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [54 lines of output]

      Error compiling Cython file:
      ------------------------------------------------------------
      ...
                  self.rng_state.ctr.v[i] = counter[i]

              self._reset_state_variables()

              self._bitgen.state = <void *>&self.rng_state
              self._bitgen.next_uint64 = &philox_uint64
                                         ^
      ------------------------------------------------------------

      _philox.pyx:195:35: Cannot assign type 'uint64_t (*)(void *) except? -1 nogil' to 'uint64_t (*)(void *) noexcept nogil'. Exception values are incompatible. Suggest adding 'noexcept' to the type of the value being assigned.
      /private/var/folders/b3/2xm02wpd21qgrpkck5q1c6k40000gn/T/pip-install-n7iqo4lo/numpy_52542ff7e8a141d58676ab78eea8d7fe/tools/cythonize.py:73: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
        required_version = LooseVersion('0.29.14')
      /private/var/folders/b3/2xm02wpd21qgrpkck5q1c6k40000gn/T/pip-install-n7iqo4lo/numpy_52542ff7e8a141d58676ab78eea8d7fe/tools/cythonize.py:75: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
        if LooseVersion(cython_version) < required_version:
      Processing numpy/random/_bounded_integers.pxd.in
      Processing numpy/random/_philox.pyx
      Traceback (most recent call last):
        File "/private/var/folders/b3/2xm02wpd21qgrpkck5q1c6k40000gn/T/pip-install-n7iqo4lo/numpy_52542ff7e8a141d58676ab78eea8d7fe/tools/cythonize.py", line 235, in <module>
          main()
        File "/private/var/folders/b3/2xm02wpd21qgrpkck5q1c6k40000gn/T/pip-install-n7iqo4lo/numpy_52542ff7e8a141d58676ab78eea8d7fe/tools/cythonize.py", line 231, in main
          find_process_files(root_dir)
        File "/private/var/folders/b3/2xm02wpd21qgrpkck5q1c6k40000gn/T/pip-install-n7iqo4lo/numpy_52542ff7e8a141d58676ab78eea8d7fe/tools/cythonize.py", line 222, in find_process_files
          process(root_dir, fromfile, tofile, function, hash_db)
        File "/private/var/folders/b3/2xm02wpd21qgrpkck5q1c6k40000gn/T/pip-install-n7iqo4lo/numpy_52542ff7e8a141d58676ab78eea8d7fe/tools/cythonize.py", line 188, in process
          processor_function(fromfile, tofile)
        File "/private/var/folders/b3/2xm02wpd21qgrpkck5q1c6k40000gn/T/pip-install-n7iqo4lo/numpy_52542ff7e8a141d58676ab78eea8d7fe/tools/cythonize.py", line 77, in process_pyx
          subprocess.check_call(
        File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 364, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['/Library/Frameworks/Python.framework/Versions/3.8/bin/python', '-m', 'cython', '-3', '--fast-fail', '-o', '_philox.c', '_philox.pyx']' returned non-zero exit status 1.
      Running from numpy source directory.
      <string>:460: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
      Cythonizing sources
      Traceback (most recent call last):
        File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
          return hook(metadata_directory, config_settings)
        File "/private/var/folders/b3/2xm02wpd21qgrpkck5q1c6k40000gn/T/pip-build-env-vyemly7i/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 368, in prepare_metadata_for_build_wheel
          self.run_setup()
        File "/private/var/folders/b3/2xm02wpd21qgrpkck5q1c6k40000gn/T/pip-build-env-vyemly7i/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 497, in run_setup
          super().run_setup(setup_script=setup_script)
        File "/private/var/folders/b3/2xm02wpd21qgrpkck5q1c6k40000gn/T/pip-build-env-vyemly7i/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 313, in run_setup
          exec(code, locals())
        File "<string>", line 489, in <module>
        File "<string>", line 469, in setup_package
        File "<string>", line 274, in generate_cython
      RuntimeError: Running cythonize failed!
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Notice:  A new release of pip is available: 21.1.1 -> 24.0
Notice:  To update, run: python -m pip install --upgrade pip
Error: Process completed with exit code 1.

@cbkerr For the “oldest” tests, feel free to update the pinning to the oldest version for which wheels exist for all supported platforms / Python versions. We don’t want to have to compile NumPy from a source dist to run tests.
Also it is okay to drop Python 3.8, if 3.8 presents any challenges here. It has been dropped by NEP 29 / SPEC 0 and will only get security updates through October 2024.

I update the oldest numpy to 1.21.0, which is the first one that has an arm build that supports macos 11+.


requirements for AMI build

Hi
I tried to build AMI following the doc, and got some bash errors. I used MacOS.

MacOS doesn't support --dry-run option of mktemp
A little old bash doesn't support -v option.
a. -v option implemented in version 4.2
b. As far as I know, latest MacOS(13) is using bash 3.X.
c. We can use bash 5.x installing by homebrew, but path is /usr/local/bin/bash. Build script uses #!/bin/bash. #!/usr/bin/env bash may be better.

After all, I have successfully built AMI using ubuntu 22.04, but I think we should state prerequisites to build AMI or use portable syntax.

We have released v0.8.0 and mentioned in the doc that Debian is the preferred OS to run the build instructions:
https://github.com/privacysandbox/fledge-key-value-service/blob/main/docs/deploying_on_aws.md#build-the-keyvalue-server-artifacts


units on plot axis

Adding units  on plot axis

Added units by adding a column to the entities file.


Add support for adding markdown pages

Search Terms
pages, markdown, md
Problem
Similar issue was reported earlier as well. However, it was closed citing a plugin. However, the plugins developed for one version do not work with the other. Also, we don't want to be locked to lower version of TypeScript to use Typedoc with lower version.
Suggested Solution
Please create a feature to automatically pick up markdown files from specified directory or path and include that in documentation.

As of now, I just employed a quick hack - https://react18-tools.github.io/react18-global-store/
This suggests that it shouldn't be very difficult to add this feature with a little better aesthetics to the library.

Duplicate of #247, this is the feature I'm hoping to include in the next typedoc minor release.

Thanks. Let me know if I can help in any way. Do you have any open PR for this that I can review and see if I can add anything to it?

Nothing up yet, I'm hoping to get to a working POC this weekend, or possibly the next.

0.26.0-beta.0 is up with this, announcement at https://github.com/TypeStrong/typedoc/issues/2567


Module.Load throws Mismatched state_dict sizes exception on BatchNorm1d

When loading a model from a .dat file exported from python, the Module.Load method throws the exception below. I printed out all of the registered parameters, and the only ones that didn't show up are BatchNorm1d parameters: running_mean, running_var, and num_batches_tracked.
I tried to work around this problem by registering those parameters with the register_parameter function. That eliminates the exception below, but I run into a different issue where the bias is not loaded correctly after registering the other parameters. The bias parameter is still set to torch.zeros(N).
System.ArgumentException
  HResult=0x80070057
  Message=Mismatched state_dict sizes: expected 200, but found 300 entries.
  Source=TorchSharp
  StackTrace:
   at TorchSharp.torch.nn.Module.load(BinaryReader reader, Boolean strict)
   at TorchSharp.torch.nn.Module.load(String location, Boolean strict)
   at OpenHips.Scanners.TorchScanner.LoadFromFile(String fileName) in C:\Users\helpdesk\Desktop\Workspace\repos\open-hips\open-hips-cortex\Scanners\TorchScanner.cs:line 15
   at OpenHips.Program.HandleScan(FileInfo target, FileInfo model) in C:\Users\helpdesk\Desktop\Workspace\repos\open-hips\open-hips-scanner\Program.cs:line 33
   at System.CommandLine.Handler.<>c__DisplayClass2_0`2.<SetHandler>b__0(InvocationContext context)
   at System.CommandLine.Invocation.AnonymousCommandHandler.<>c__DisplayClass2_0.<.ctor>g__Handle|0(InvocationContext context)
   at System.CommandLine.Invocation.AnonymousCommandHandler.<InvokeAsync>d__3.MoveNext()

The load method should probably take into consideration the registered buffers if we are not going to consider running_mean and running_var parameters.
Here are the fixes I tried.
internal class BasicConv1d : Module {
        private readonly Sequential stack;

        public BasicConv1d(int in_channels, int out_channels, int kernel_size, int stride = 1, int padding = 0) : base(String.Empty) {
            BatchNorm1d temp = BatchNorm1d(out_channels);
            //temp.reset_running_stats();
            temp.running_mean = new Parameter(torch.zeros(out_channels, requiresGrad:false), requires_grad:false);
            temp.running_var = new Parameter(torch.zeros(out_channels, requiresGrad:false), requires_grad:false);
            temp.register_parameter("num_batches_tracked", new Parameter(temp.state_dict()["num_batches_tracked"], requires_grad: false));
            temp.register_parameter("running_mean", temp.running_mean);
            temp.register_parameter("running_var", temp.running_var);
            temp.bias = temp.get_parameter("bias"); // Without this line, temp.bias is all zeros after load. With this line, temp.bias is equal to temp.running_var
            this.stack = Sequential(
                Conv1d(in_channels, out_channels, kernel_size, stride:stride, padding:padding, bias:false),
                temp,
                ReLU(inPlace:true)
            );

            this.RegisterComponents();
        }

        public override torch.Tensor forward(torch.Tensor t) {
            return this.stack.forward(t);
        }
    }

Thanks for sharing that. Is there a small repro that exhibits the problem? I thought the repro I came up with for the previous BatchNorm1d bug covered it, but apparently not.

From my Python training code base:
class BasicConv1d(nn.Module):
    def __init__(self, in_channels, out_channels, **kwargs):
        super().__init__()

        self.stack = nn.Sequential(
            nn.Conv1d(in_channels, out_channels, bias=False, **kwargs),
            nn.BatchNorm1d(out_channels),
            nn.ReLU(inplace=True)
        )

    def forward(self, x):
        return self.stack(x)

if __name__ == '__main__':
    # Create model
    model = BasicConv1d(1, 32)

    #Export model to .dat file for ingestion into TorchSharp
    f = open(args.outfile, "wb")
    exportsd.save_state_dict(model.to("cpu").state_dict(), f)
    f.close()

Then import to TorchSharp.
#Create the model
BasicConv1d module = new BasicConv1d();

#Load the model from .dat file.
module.load("C:\model.dat"); #Exception occurs here

@FusionCarcass -- I have a fix in PR, and will release it with another important fix (parameter groups).

@FusionCarcass  Can you confirm that the bugs are addressed. If possible, do consider provide a simple example so others could expand the workflow of saving model from pytorch and loading that in TorchSharp

@NiklasGustafsson  Is this the FIRST (rather simple) example where bug identified when a pyTorch model is saved and attempted to be used in Torchsharp.  Do you think there is need for more tests to check the feasibility of consuming saved Pytorch model ( in typical sense) in TorchSharp?

@FusionCarcass  Can you please look into this previous issue and see if there something new you have done or we are re-visting the same challenges as discussed before in reusing pytorch saved dict_states in TorchSharp.

@FusionCarcass
Your example has been provided here as test to create the Pytorch saved states and the TorchSharp model to load the PyTorch save states

@FusionCarcass  Thank you for testing and if possible we need more use cases to load pytorch save dict states from with Torchsharp .

class BasicConv1d(torch.nn.Module):
    def __init__(self, in_channels, out_channels, **kwargs):
        super().__init__()

        self.stack = torch.nn.Sequential(
            torch.nn.Conv1d(in_channels, out_channels, kernel_size=3, bias=False, **kwargs),
            torch.nn.BatchNorm1d(out_channels),
            torch.nn.ReLU(inplace=True)
        )

    def forward(self, x):
        return self.stack(x)

internal class BasicConv1d: Module
{
    private readonly Module stack;

    public BasicConv1d(int in_channels, int out_channels, int kernel_size=3, int stride = 1, int padding = 0) : base(String.Empty)
    {
        var temp = BatchNorm1d(out_channels);
        this.stack = Sequential(
            Conv1d(in_channels, out_channels, 3, stride: stride, padding: padding, bias: false),
            temp,
            ReLU(inPlace: true)
        );

        temp.weight = Parameter(torch.randn(temp.weight.shape));
        temp.bias = Parameter(torch.randn(temp.bias.shape));
        if (temp.running_mean is not null) temp.running_mean = torch.randn(temp.running_mean.shape);
        if (temp.running_var is not null) temp.running_var = torch.randn(temp.running_var.shape);

        this.RegisterComponents();
    }

    public override torch.Tensor forward(torch.Tensor t)
    {
        return this.stack.forward(t);
    }
}

Loading save dict in pytorch
    # Create model
    model = BasicConv1d(1, 32)

Loading save dict in torchsharp
public void ValidateIssue510()
{
    // Create model
    var model = new BasicConv1d(1, 32);
    model.forward(torch.randn(16, 1, 32));

    var w0 = model.get_parameter("stack.0.weight").clone();
    var w1 = model.get_parameter("stack.1.weight").clone();
    var b1 = model.get_parameter("stack.1.bias").clone();
    var rm = model.get_buffer("stack.1.running_mean").clone();
    var rv = model.get_buffer("stack.1.running_var").clone();
    var nm = model.get_buffer("stack.1.num_batches_tracked").clone();

    model.load("bug510.dat");

    var w0_ = model.get_parameter("stack.0.weight");
    var w1_ = model.get_parameter("stack.1.weight");
    var b1_ = model.get_parameter("stack.1.bias");
    var rm_ = model.get_buffer("stack.1.running_mean");
    var rv_ = model.get_buffer("stack.1.running_var");
    var nm_ = model.get_buffer("stack.1.num_batches_tracked");

    Assert.NotEqual(w0, w0_);
    Assert.NotEqual(w1, w1_);
    Assert.NotEqual(b1, b1_);
    Assert.NotEqual(rm, rm_);
    Assert.NotEqual(rv, rv_);
    Assert.Equal(1, nm.item<long>());
    Assert.Equal(0, nm_.item<long>());
}

@FusionCarcass it seems num_batches_tracked was previously missing and now added.
//missing in the fixed codes
temp.register_parameter("num_batches_tracked", new Parameter(temp.state_dict()["num_batches_tracked"], requires_grad: false));


spriteFilename option not working properly

Do you want to request a feature, report a bug or ask a question?
I would like to report a bug
What is the current behavior?
spriteFilename option is not taken into consideration
What is the expected behavior?
The generated file should take the spriteFilename value in webpack configuration, output file always has sprite.svg as name
If the current behavior is a bug, please provide the steps to reproduce, at least part of webpack config with loader configuration and piece of your code.
module: {
    rules: [
      {
        test: /\.svg$/,
        include: path.resolve(__dirname, `${PATH.src}/icons`),
        use: [
          {
            loader: 'svg-sprite-loader',
            options: {
              extract: true,
              spriteFilename: 'assets-sprite.svg'
            }
          },
          {
            loader: 'svgo-loader'
          }
        ]
      }
    ]
  },
  plugins: [
    new SpriteLoaderPlugin()
  ]

Please tell us about your environment:

Node.js version: 6.11.3
webpack version: 3.6.0
svg-sprite-loader version: 3.2.6
OS type & version: Mac Os El Capitan

@cedrictahina couldn't reproduce with your webpack & loader version. Could you please create a git repo where I can reproduce described error?

After deep investigation, I noticed that the svg-sprite-loader was in conflict with image-webpack-loader when svg files are presents in the rule test.


$ENV doesn't work in Windows

Environment variables in portfile.cmake are not read in Windows. In macOS they are.
Environment

OS: Windows
Compiler: Visual 2022
Vcpkg package management program version 2022-03-30-692785ac944e81417840c6de244fb3e18a4b35eb

To Reproduce
add this line to the beginning of any portfile.cmake:
message( STATUS "MYVAR value is $ENV{MYVAR}" )

Define a value in the shell (powershell in my case) and install the port:
$env:MYVAR="SOME_VALUE"
vcpkg install modified-port

In macOS the line shows (as expected):
-- MYVAR value is SOME_VALUE

In Windows:
-- MYVAR value is

Using cmake directly shows the value correctly in Windows:
cmake -P portfile.cmake

It's not a bug, it's a feature: https://github.com/microsoft/vcpkg/blob/master/docs/users/triplets.md#vcpkg_env_passthrough 😄

@autoantwort Thanks but I cannot make it work. I have tried:
$env:MYVAR="SOME_VALUE"
$env:VCPKG_ENV_PASSTHROUGH_UNTRACKED="MYVAR"
vcpkg install modified-port

with no success. Any help is welcomed :)

with no success. Any help is welcomed :)

you need to set the variable in the triplet. Otherwise it will not have any effect.

@Neumann-A  Thanks, it works as expected :)
Note to self: My triplet was x64-windows, the triplet file was $VCPKG_ROOT/triplets/x64-windows.cmake and the line to add was: set(VCPKG_ENV_PASSTHROUGH_UNTRACKED MYVAR)


Content appears only after clicking link inside tooltip.

hi, I have read older thread regarding kinda like this issue but i can not get it working, i have set height and width of image too. I have attached issue gif.

this is query i am using
$(document).ready(function() {
$('.tooltip').tooltipster({
trackTooltip:true,
trackerInterval:200,
    functionInit: function(instance, helper){
        var content = $(helper.origin).find('.tooltip_content').detach();
        instance.content(content);
 },
animation: 'grow',
delay: 200,
theme: 'tooltipster-shadow',
repositionOnScroll:true,
interactive:true,
delayTouch:300,
trigger: 'custom',
   triggerOpen: {
      mouseenter: true,
       touchstart: true
    },
    triggerClose: {
	 mouseleave: true,
        tap: true
    }
});
});

Thanks.

This is probably be due to your gallery library for some reason. If you tried with mere images, I'm sure it would work.

Try to init your gallery once the tooltip is open and see what happens.

I init as your said. now it is appearing but there is issue in other plugin. anyways thanks a lot sir.

You're welcome.


Form layouts

Please add layouts / examples because any back office app uses Forms.
Thanks!

Hi
Thanks for the feedback!
We have a lot of components in the Full version of RMA.
You can check out the demo
Best regards


Alpine Linux build

Describe the feature
Provide an Alpine Linux build or instructions on how to build one.

Ahh, I found the linux-musl build. But some instructions would be nice on the docs pages:
To use on Alpine Linux, also install the `@swc/core-linux-musl` npm package.

Thanks, I added it.


Fix ESLint config & boilerplate files

New stricter TS ESLint rules caused a lot of errors, due to implicit any use. Also the ESLint config is now separated between .js and .ts files, so the TS rules only apply to .ts files. The new rules also caused a lot of unfixable errors when applied to .js files.

:+1:


Proposal(feat): support multipart/byteranges

Is your feature request related to a problem? Please describe.
I see hertz only support Single part ranges, i think it's better to support Multipart ranges
Describe the solution you'd like
Describe alternatives you've considered
Additional context
golang std http support it
https://github.com/golang/go/blob/be0b2a393a5a7297a3c8f42ca7d5ad3e4b15dcbe/src/net/http/fs.go#L870

After reading how hertz handle single part , i found it's quite different  from go http。
the core difference is go http read the bytes once but hertz read the bytes may in serval times
i think how hertz support multipart/byteranges needs talking， i‘m writing a doc now。


baseline repo groups

Description
[Describe what this change achieves]
Issues Resolved
Fix #643
Check List

[ ] New functionality includes testing.

[ ] All tests pass, including unit test, integration test and doctest

[ ] New functionality has been documented.

[ ] New functionality has javadoc added
[ ] New functionality has user manual doc added

[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Ready to merge. CODEOWNER is green.


sequencer of sequencer

Hi, guys,
I am building a model with one 2-to-1 LSTM block. (The LSTM block is for 2 time-step data)
I want to apply the output of the 2-to-1 LSTM block with the next time-step data to the LSTM block repeatedly.
Input sequence, for example:
LSTM block:
Input 1, Input 2,   output,  ground truth
i0           i1           o1          g1
o1          i2           o2          g2
o2          i3           o3          g3
                    ......

I met one problem using sequencer of sequencer.
The minimized code is provided below.
When rho =1, both forward and backward work.
However, when rho is larger than 1, only forward works.
I have searched the issue lists and found no related solutions.
Can anyone help point me the problem and potential solution?
Thanks
require 'rnn'

rho = 2  -- if 1, it works
outputsize = 48

   lstm_model = nn.Sequential()
   lstm_model:add(nn.LSTM(outputsize, outputsize))

   inner=nn.Sequential()
   inner:add(nn.Sequencer(lstm_model))
   inner:add(nn.SelectTable(-1))

   model= nn.Sequencer(
              nn.Recurrence(inner, outputsize, 1)
          )

inputs = {}
targets = {}
for step=1, rho do
 table.insert(inputs , torch.randn(outputsize))
 table.insert(targets, torch.randn(outputsize))
end

criterion = nn.SequencerCriterion(nn.MSECriterion())

model:training()
outputs = model:forward(inputs)
err = criterion:forward(outputs,targets)
gradOut = criterion:backward(outputs, targets)

model:backward(inputs, gradOut)
model:updateParameters(0.0000001)
model:zeroGradParameters()

@Henry214 You need to tell the inner to Sequencer(LSTM) to remember its state :
require 'rnn'

rho = 2  -- if 1, it works
outputsize = 48

lstm_model = nn.Sequential()
lstm_model:add(nn.LSTM(outputsize, outputsize))

seq = nn.Sequencer(lstm_model)
seq:remember('both') -- this will allow it to remember hidden state between calls to forward

inner = nn.Sequential()
   :add(seq)
   :add(nn.SelectTable(-1))

model= nn.Sequencer(
           nn.Recurrence(inner, outputsize, 1)
       )

inputs = {}
targets = {}
for step=1, rho do
 table.insert(inputs , torch.randn(outputsize))
 table.insert(targets, torch.randn(outputsize))
end

criterion = nn.SequencerCriterion(nn.MSECriterion())

model:training()
outputs = model:forward(inputs)
err = criterion:forward(outputs,targets)
gradOut = criterion:backward(outputs, targets)

model:backward(inputs, gradOut)
model:updateParameters(0.0000001)
model:zeroGradParameters()

seq:forget() -- make sure you call forget on the sequence after each update (unless the next sequence is contiguous to the previous one)

Check out my above two comments in-line.

@Henry214 Very nice use-case by the way :)


Getting error despite closing driver using graph._driver.close()

i am using neo4j with langchain i have closed the driver but with logging enabled getting the following error . my python version is 3.9
[DEBUG   ] MainThread(140019755107392) 2024-08-13 03:42:12,049  [#0000]  _:  close
[DEBUG   ] MainThread(140019755107392) 2024-08-13 03:42:12,049  [#A408]  C: GOODBYE
[DEBUG   ] MainThread(140019755107392) 2024-08-13 03:42:12,050  [#A408]  C:
[DEBUG   ] MainThread(140019755107392) 2024-08-13 03:42:12,050  [#A410]  C: GOODBYE
[DEBUG   ] MainThread(140019755107392) 2024-08-13 03:42:12,050  [#A410]  C:
driver closed
[DEBUG   ] MainThread(140019755107392) 2024-08-13 03:42:12,182  [#0000]  _:  close
[DEBUG   ] MainThread(140019755107392) 2024-08-13 03:42:12,182  [#A41C]  C: GOODBYE
[DEBUG   ] MainThread(140019755107392) 2024-08-13 03:42:12,182  [#A41C]  _:  error: SSLError(0, 'Underlying socket connection gone (_ssl.c:2411)')
[ERROR   ] MainThread(140019755107392) 2024-08-13 03:42:12,182  Failed to write data to connection ResolvedIPv4Address(('<IP_ADDRESS>', 7687)) (ResolvedIPv4Address(('<IP_ADDRESS>', 7687)))
[DEBUG   ] MainThread(140019755107392) 2024-08-13 03:42:12,182  [#A41C]  _:  ignoring failed close SessionExpired("Failed to write data to connection ResolvedIPv4Address(('<IP_ADDRESS>', 7687)) (ResolvedIPv4Address(('<IP_ADDRESS>', 7687)))")
[DEBUG   ] MainThread(140019755107392) 2024-08-13 03:42:12,182  [#A41C]  C:
[DEBUG   ] MainThread(140019755107392) 2024-08-13 03:42:12,182  [#A420]  C: GOODBYE
[DEBUG   ] MainThread(140019755107392) 2024-08-13 03:42:12,182  [#A420]  _:  error: SSLError(0, 'Underlying socket connection gone (_ssl.c:2411)')
[ERROR   ] MainThread(140019755107392) 2024-08-13 03:42:12,183  Failed to write data to connection IPv4Address(('a164f0c4.databases.neo4j.io', 7687)) (ResolvedIPv4Address(('<IP_ADDRESS>', 7687)))
[DEBUG   ] MainThread(140019755107392) 2024-08-13 03:42:12,183  [#A420]  _:  ignoring failed close SessionExpired("Failed to write data to connection IPv4Address(('a164f0c4.databases.neo4j.io', 7687)) (ResolvedIPv4Address(('<IP_ADDRESS>', 7687)))")
[DEBUG   ] MainThread(140019755107392) 2024-08-13 03:42:12,183  [#A420]  C:

Hi and thanks for reaching out.
There's nothing to worry about here. To quote the API docs:

The driver offers logging for debugging purposes. It is not recommended to enable logging for anything other than debugging. For instance, if the driver is not able to connect to the database server or if undesired behavior is observed.
This includes messages logged on WARNING level or higher. They are logged to help understand what is going on inside the driver. All relevant information is passed through return values, raised exceptions, warnings, etc. The logs are not the right place to look for actionable information.

As you can see the next log line states

ignoring failed close

The lower levels of the driver experienced an error namely that a pooled connection broke/got closed. However, there are more layers than just plain connectivity in the driver. Those might decide to either retry or ignore (as in this case) the error later on.
If you have questions, please feel free to keep commenting.


Run process_schemas, etc. successfully on latest schemas repo

Get rid of all the errors in the schemas repo by running a modified process_schemas (and other tests) on it, and fixing all the errors.
Depends on #366

Fixed in #515


[#111590274] implement nat

What
Implement new AWS NAT gateways and use them for CF subnets. story.
Testing
Deploy new environment or apply against existing. Verify that:

NAT gateway was created in each zone and placed into infrastructure subnet
CF subnet routing table has <IP_ADDRESS>/0 route pointing to the NAT gateway in the same zone
CF VMs have internet connectivity. You can ssh into the VMs and do e.g. curl google.com

Reviewing
Not @mtekel or @combor who worked on this story.

Tested end-to-end successfully.

Good PR - small and descriptive commits, plus tidying up small pieces of related tech debt :+1:


Support scanning inverted QR-codes. White on black canvas

Certain wallets, in example ZAP wallet displays QR codes white on black.
It is impossible to scan payment requests these from Eclair wallet. Maybe it is a quick fix?

Great worl


Chore/typescript esmodule interop

Problem:
We never enabled esModuleInterop but I think it's time we do
(edit: I'll write a less snarky PR description once the tests pass)

Should this be closed?


上传提示：ValueError: Unterminated string starting at: line 292 column 7 (char 12132)

系统：Ubuntu 14.04.5 LTS
在Python2.7 和Python3.4下执行
bypy upload -v

报的错都是
Loading Hash Cache File '/home/download/.bypy/bypy.hashcache.json'...
Hash Cache File loaded.
<E> [08:26:09] Exception occurred:
Exception:
<class 'ValueError'> - Unterminated string starting at: line 292 column 7 (char 12132)
Stack:
  File "/usr/local/bin/bypy", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.4/dist-packages/bypy/bypy.py", line 3226, in main
    perr("Exception occurred:\n{}".format(formatex(ex)))
  File "/usr/local/lib/python3.4/dist-packages/bypy/util.py", line 70, in formatex
    type(ex), ex, ''.join(traceback.format_stack()))

Abort
Traceback (most recent call last):
  File "/usr/local/bin/bypy", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.4/dist-packages/bypy/bypy.py", line 3212, in main
    result = getattr(by, args.command[0])(*uargs)
  File "/usr/local/lib/python3.4/dist-packages/bypy/bypy.py", line 1516, in upload
    return self.__upload_dir(lpath, rpath, ondup)
  File "/usr/local/lib/python3.4/dist-packages/bypy/bypy.py", line 1429, in __upload_dir
    thisresult = self.__walk_upload(localpath, remotepath, ondup, walk)
  File "/usr/local/lib/python3.4/dist-packages/bypy/bypy.py", line 1413, in __walk_upload
    fileresult = self.__upload_file(lfile, rfile, ondup)
  File "/usr/local/lib/python3.4/dist-packages/bypy/bypy.py", line 1465, in __upload_file
    result = self.__upload_file_slices(localpath, remotepath, ondup)
  File "/usr/local/lib/python3.4/dist-packages/bypy/bypy.py", line 1230, in __upload_file_slices
    progress = jsonload(const.ProgressPath)
  File "/usr/local/lib/python3.4/dist-packages/bypy/util.py", line 229, in jsonload
    return json.load(f)
  File "/usr/lib/python3.4/json/__init__.py", line 268, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "/usr/lib/python3.4/json/__init__.py", line 318, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.4/json/decoder.py", line 343, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.4/json/decoder.py", line 359, in raw_decode
    obj, end = self.scan_once(s, idx)
ValueError: Unterminated string starting at: line 292 column 7 (char 12132)

请问怎么解决呢，谢谢。

打开~/.bypy/bypy.parts.json看一下是否是合法的json文件？如果问题还在可以删掉这个文件再试试。

嗯，就是因为~/.bypy/bypy.parts.json不是合法的json文件造成的，我删除这个文件就好了，谢谢。


PushPageModel(null, true, true) two times result in empty page

Just noticed that calling PushPageModel(null, true, true) two times result in empty page.
in FirstPageModel.cs
await CoreMethods.PushPageModel(null, true, true);
in SecondPageModel.cs
await CoreMethods.PushPageModel(null, true, true);
ThirdPage is shown but is completely empty.
Is that a Xamarin issue or one of the FreshMvvm framework?

I'm not experiencing the issue. Can you post a sample project showcasing it?


docs: update new key types in DID tutorials [skip ci]

Description:
Summarize the changes you're submitting in a few sentences, including Jira ticket ATL-xxxx if applicable.
Link to any discussion, related issues and bug reports to give the context to help the reviewer understand the PR.
Alternatives Considered (optional):
Link to existing ADR (Architecture Decision Record), if any. If relevant, describe other approaches explored and the selected approach. Documenting why the methods were not selected will create a knowledge base for future reference, helping prevent others from revisiting less optimal ideas.
Checklist:

[ ] My PR follows the contribution guidelines of this project
[ ] My PR is free of third-party dependencies that don't comply with the Allowlist
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have checked the PR title to follow the conventional commit specification

coverage: 52.962%. remained the same
when pulling f4d378e55b6be7bed3ed310ad1af5808a8573c64 on docs/tuts-new-key-types
into db10c9ce7d9026e9d076229c424b02c6f6ee76c9 on main.


[CELEBORN-400] Add RPC metrics for OpenStream

What changes were proposed in this pull request?
Add RPC metrics for OpenStream
Why are the changes needed?
Does this PR introduce any user-facing change?
How was this patch tested?

ping @waitinfuture @FMX


db.AutoMigrate is not working as expected.

Your Question
We are using the gorm package: "github.com/jinzhu/gorm" but noticed that db.AutoMigrate is not working as expected.
We noticed this when we tried to create two new columns example :

info string
metrics map[string]float64

We are using the following code snippet:
transaction := db.Begin()  ---- We are using Postgres db
transaction.AutoMigrate(m...)
transaction.Commit()
Error:
pq: Could not complete operation in a failed transaction
Expected answer
We expect that AutoMigrate creates the two new columns in the table. But Instead we are facing the above error. Please assist if you have encountered such thing before.
Thanks in advance !

The error is pretty clear? and we don't handle GORM v1 issues here ;)

The error is pretty clear? and we don't handle GORM v1 issues here ;)

Even without any transaction error occurring, we noticed that db.AutoMigrate(m...) is not creating the missing columns.
It would be of much help if you let us know on where can we raise gorm v1 issues. Thanks !!

Even without any transaction error occurring, we noticed that db.AutoMigrate(m...) is not creating the missing columns.
It would be of much help if you let us know on where can we raise gorm v1 issues. Thanks !!


⚠ Processors has degraded performance

In 4c64a34, Processors ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 40 ms

Resolved: Processors performance has improved in 6695e77.


Show peer approvers from the group only to which the requester belongs to

Based on the Multi Party Approval documentation, "If two users are granted an MPA-eligible role binding for, say roles/compute.admin on project-1, then they can approve each other’s requests."
In short, the qualified approvers will be those who the requester shares the MPA-eligible role binding.
However, it has been observed, when the same condition is set for more than one group on a given scope, but with different description, only the first found group's members are listed as approvers.
Steps to reproduce

Apply a multi-part approval IAM condition for a role on two different groups on the same level, using different description.
Elevate the user's permission using the configured JIT role.

Peer approvals will be visible from the first found group only.
What would be expected?
Peers should be listed from the group only, that grants the eligibility to the user.
How we think this could be achieved?
The description of the set condition should be taken into consideration when listing the potential approvers.
Our use-case is that we give JIT roles based on group membership and we define in the condition's description which group membership gives access to a certain role, however if a different group's members can elevate their privileges to the same role (using JIT), when listing for approvers only one of the group members will be shown - unless the two conditions are identical (including description).
Currently this configuration forces us not to use unique descriptions in the condition, that lists approvers from all the groups that has access to the same type of JIT role.
Scenario to image
A Logging Admin role is granted both to group A and group B through the same JIT condition on the organization scope. A member in group A wants to elevate its privileges, that requires peer approval. When listing the approvers, peers will be visible both from group A and group B, whereas approvers should be listed from the group, that made the requester eligible to a certain role.

Sorry for the delayed response.

when the same condition is set for more than one group on a given scope, but with different description, only the first found group's members are listed as approvers.

This is interesting. The title and description of the IAM condition shouldn't have any impact -- but evidently they do, and I was able to reproduce the behavior you described. This doesn't seem to be a bug in JIT Access though. Instead, it's the underlying Cloud Asset API (analyzeIamPolicy) that seems to produce an incomplete result in this scenario. I internally filed a bug for that.
What I'd expect to happen in the scenario is to see approvers from both groups. It really shouldn't matter how somebody has been granted an MPA-eligble role binding (via the same or a different group or directly): If they are MPA-eligble for the same project and role, they should show up as a approver.
Is that also what you'd expect?

I don't have any news to share on the underlying the PolicyAnalyzer API. However, the (new) AssetInventory catalog should be unaffected by this problem, so I think the best path forward would be to change the configuration of JIT Access to use that instead.


[dbus] enhance external route support

Add ExternalRoute structure
Add ExternalRouteTable property
Enhance tests for the external route.

is updating openthread submodule necessary?

Accidentally added, already removed.


🐛 [Bug]: Picker第一个节点没有children导致级联失效

Which React Vant packages are impacted?

[ ] react-vant (React Vant core)
[ ] react-vant-icons(React Vant Icon)

What version of React Vant are you using?
3.2.7
Reproduce live demo(codesandebox or stackblitz)?
https://stackblitz.com/edit/stackblitz-starters-xmazgj
Descripition

兄弟江苏省成自治市啦😄

兄弟江苏省成自治市啦😄

我这里实际用的是自定义类型树


Customize "setting tabs" for admin & developers

Laravel Version: 5.5.*
Voyager Version: Last v.
PHP Version: 7
Database Driver & Version:

Description:
Hello awesome people.
I have a question about settings section. In here, we can set our configurations by default "site" and we can add more tabs.
Think about i have "admin" tab. Site tab for admins, "admin" tab for developers. Developers can saw 2 tab. But admins can just saw "site" tab. How can we do that easily?
I made this once time previously project, but it didn't seem a cool solution and has a lot of bugs. If there no such a thing like that. I can write better solutions and i can publish with voyager team. I think this is a very important thing.

If you want to have a solution for you, you can write your own Policy to exclude/include things for roles.
If you want a solution at the core, this could be a many-to-many relationship between roles and settings-group

Hi, this is an interesting idea, will be great if somebody can make a tutorial to explain on how to do this. I am struggling to solve a quit similar problem I described here.

This is working for me right now. But warning, there could be bugs, missing somethings. I don't improve yet.
in the settings/index.php go to row 218
change inside the  like that:
Now admin section displaying for admin role. (Other roles like supervisor can't see)
@if(!auth()->user()->hasRole('admin'))         @php             $settings = array_except($settings,['Admin']);         @endphp     @endif     @foreach($settings as $group => $setting)
first ? 'active' : null}}">             {{ $group }}
     @endforeach

please, Please, PLEASE! don't change any files under vendor/.  They are package-controlled and will be overwritten when you upgrade next.
You're free to copy that file to your project (following the Overriding Views section in our docs) and edit it to your heart's content.

@fletch3555 Thank you for the advice. But i changed this in resources/views/vendor/voyager/settings/index
if an error exist in future time, i will remove this safely.


Support dynamic change user.yaml ?

I deployed Milvus with config here
apiVersion: milvus.io/v1beta1
kind: Milvus
metadata:
  name: my-release
  labels:
    app: milvus
spec:
  mode: cluster
  dependencies: {}
  components:
    updateConfigMapOnly: true
  config:
    common:
      ttMsgEnabled: false

then I changed ttMsgEnabled: true and kubectl apply. But I can't search, insert or delete with error Deadline Exceeded.
So How can it work?

Hi @anhnch30820 Which version of Milvus are you using? This only works for Milvus v2.4.0 or later version. And it takes some time (about a minute or so) for kubelet to change the file and for Milvus to reload config.

@haorenfsa
I use version 2.4.4 with operator 0.9.16. My workflow:
Create milvus with ttMsgEnabled: false --> change ttMsgEnabled: true and apply --> create collection --> create index --> load collection.

Currently, load collection stuck at 0%. I don't know how to fix?

@anhnch30820 Milvus will prioritize user.yaml if it's different from milvus.yaml.
Could you please provide the log of the Milvus Pod?

milvus-milvus-proxy-6c98fb49c4-622fp_proxy.log

Hi @anhnch30820, it's an known issue in milvus https://github.com/milvus-io/milvus/issues/33461. Team Milvus plan to fix this in v2.4.5

@haorenfsa I hope it will be released soon, thank you.

@anhnch30820 milvus v2.4.5 is released, please help us verify if you got time.

@haorenfsa it doesn't work.

track it in https://github.com/milvus-io/milvus/issues/33461


Manage to make it work for Google Colab !

As it was unclear if it was working for Google Colab, I test it and I manage to install it for ComfyUi without anaconda or anything using this :
!pip install pytorch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 pytorch-cuda=12.1 -c pytorch -c nvidia
!git clone https://github.com/MrForExample/ComfyUI-3D-Pack.git
%cd ComfyUI-3D-Pack
!pip install -r requirements.txt
!git clone --recursive https://github.com/ashawkey/diff-gaussian-rasterization
!pip install ./diff-gaussian-rasterization
!pip install ./simple-knn

!git clone --recursive https://github.com/NVlabs/nvdiffrast/
!pip install ./nvdiffrast

# Install pointnet2_ops
%cd tgs/models/snowflake/pointnet2_ops_lib
!python setup.py install
%cd ../../../../

!pip install git+https://github.com/rusty1s/pytorch_scatter.git
!pip install 'git+https://github.com/facebookresearch/detectron2.git'
import sys
import torch
pyt_version_str=torch.__version__.split("+")[0].replace(".", "")
version_str="".join([
    f"py3{sys.version_info.minor}_cu",
    torch.version.cuda.replace(".",""),
    f"_pyt{pyt_version_str}"
])
!pip install --no-index --no-cache-dir pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/{version_str}/download.html

Its working perfectly on my side. Let me know ;)

Thanks for your effort my friend, I'll add that into install instructions soon, cheers :)

When I run this in Google Colab, I get the following error:
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'pytorch'
Could you please advise on how to fix this?

Ooook guys, good news !! I made a fully functionnal Google Colab here : https://colab.research.google.com/drive/1i9wTQhO8MkuXJjiUiIG4b0N4uITiJpX2?authuser=1#scrollTo=EXGAVghD0Wfu
check my twitter :  https://x.com/OdinLovis/status/1795934072520282263


Added e2e tests for examples bot

Proposed changes:

Added e2e tests for mood bot

Status (please check what you already did):

[ ] added some tests for the functionality
[ ] updated the documentation
[ ] updated the changelog (please check changelog for instructions)
[ ] reformat files using black (please check Readme for instructions)

Thanks for submitting a pull request 🚀 @tttthomasssss will take a look at it as soon as possible ✨

@tttthomasssss Can you merge this?

Can someone merge this?

ah, sorry that we missed merging this! I'm afraid that format for end to end tests is now out of date since we're moving to the new yaml format with the 2.0.
There is docs on how the new e2e format looks like here - if you're up for it, then we'd love to accept an updated version of those tests. But I also understand if you don't have the time to do that.

ah, sorry that we missed merging this! I'm afraid that format for end to end tests is now out of date since we're moving to the new yaml format with the 2.0.
There is docs on how the new e2e format looks like here - if you're up for it, then we'd love to accept an updated version of those tests. But I also understand if you don't have the time to do that.

Ohhh cool will do the change with yaml format. Thanks

Thanks a lot for the effort, but this has already been implemented when we added the support for the yaml format. I am sorry, we should have been clearer about that.

Ohh cool no problem 😄


use default console exception template instead of empty string

tests failed but that's not my fault. Tests pass with locked versions.

@weierophinney if you think tests failed because of my PR i will fix them. But i don't see how they are related also a little bit strange that they fail for latest and lowest but pass with locked.

@svycka I know that the issue is: the tests were relying on components that were pulled in via zend-mvc, and now no longer are. I'll do a separate PR to fix that, and then merge your changes.


optimizing the solution for diff-Arrays challenge

Checklist:

[x] I have read and followed the contribution guidelines.
[x] I have read and followed the how to open a pull request guide.
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

I optimized the Diff-Two-arrays function to help the website check user code for the challenge faster.
I used a set instead of a hashmap because it generally takes less memory, and I removed the first two iterations from the original code since they are unnecessary when using a set.
Overall, the time complexity of the new code is O(n), where n is the combined size of arr1 and arr2. The space complexity is O(n), as the newArr is also included in this complexity.

Can anyone explain why i am getting a test fails at CI - Node.js / Test (20.x) (pull_request)??
i literally did not change anything important, i just optimized the solution

It's not necessary for you to keep merging main into the branch, it only runs again the tests. That's needed only if there are merge conflicts, thank you!


/blob/master/contributing.md 404

https://github.com/ipfs/community/blob/master/contributing.md
gives a 404... linked in many https://github.com/ipfs-shipyard/...README.md docs, like : https://github.com/ipfs-shipyard/ipfs-desktop through a gif like this:

I already fixed that in a few libp2p repos, but there's a lot more work to do...

is there a way to let the org (https://github.com/ipfs-shipyard/ ) owners know to start patching this up?

@alanshaw @daviddias @fsdiogo @hacdias @lgierth @marcooliveira @olizilla @satazor @travisperson @vasco-santos @victorb
hate to ping you for something minor, but a lot of repos need a tiny fix :point_up:
~https://github.com/ipfs/community/blob/master/contributing.md~ => https://github.com/ipfs/community/blob/master/CONTRIBUTING.md

Thanks for the heads up @NukeManDan, I'll go through the main repos in Shipyard and fix that!

I have some repos with that url outdated, thanks @NukeManDan
Regarding some libp2p modules, @mgoelzer we are using the contribute gif of IPFS in several ones, such as libp2p/js-libp2p-connection-manager. We do not have a libp2p gif. Should we ask for one and point to libp2p/community/CONTRIBUTE.md?

@vasco-santos Yes, thanks for raising it.  For all libp2p repos, we should be at a minimum be deleting the "Contribute to IPFS" image now, and ideally we should get our own libp2p image.
For the time being, I've just been inserting these in libp2p repos as I come across them (the suggestion of @daviddias):
[![](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/)
[![](https://img.shields.io/badge/pm-waffle-yellow.svg?style=flat-square)](http://github.com/libp2p/libp2p)
[![](https://img.shields.io/badge/freenode-%23libp2p-yellow.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23libp2p)

You can see an example of them at the top of go-libp2p-crypto/README.md which were added by PR #52.


Can't receive mail using PHP Mail instead of SMTP

Sir its me again.. LOL
Sorry if I have a lot of question/issue raising to you because I'm a newbie on HESK and codings.
My question is I can't receive any email when I'm using PHP Mail instead of SMTP. I used PHP Mail because I'm using HESK locally and most of our client doesn't have internet access and their email is just INTRAMAIL. We are just using POP3 here in our company to send and receive mail.
Any solution or answer to this?

Does this issue not occur on a regular HESK 2.5.5 install? (without Mods for HESK)

I'm not yet testing on the regular HESK. But based on forums that I searched, WAMP can't send email locally or using PhpMail. SMTP is really needed, is that true?

I honestly don't know the answer to that question. However, if the problems isn't Mods for HESK related, then unfortunately I cannot be of much help here.

Perhaps this might help? http://blog.techwheels.net/send-email-using-wamp-server/

ok thanks for that!


Add the missing u0E15 for Thai layout

Description
There are two \u0E05 (ฅ) in Thai layout. One of them should be \u0E15 (ต).
Checks

[x] Tests ( npm run test ) are passing

Sorry for the delay, and thank you for this enhancement!


Sphinx docs

Added auto-documentation

Codecov Report

Merging #22 (b06acdc) into main (9be59f2) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head b06acdc differs from pull request most recent head acf2007. Consider uploading reports for the commit acf2007 to get more accurate results

@@           Coverage Diff           @@
##             main      #22   +/-   ##
=======================================
  Coverage   63.11%   63.11%
=======================================
  Files          10       10
  Lines         450      450
=======================================
  Hits          284      284
  Misses        166      166

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


(PDB-1564) Change documentation headings to 3.0

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://jenkins.puppetlabs.com/job/platform_puppetdb_intn-sys_pr/1389/


500 on add profile pic - bug or not implemented yet?

Is it me or is profile image functionality not working yet?

More context needed.

Can you share the traceback that would have dumped to the logs?
How is your media storage configured? E.g. what value for TAKAHE_MEDIA_BACKEND? Is the backend configured properly?

Sorry -
I'm using docker, so:
- "TAKAHE_MEDIA_BACKEND=local"

I am able to add image to my identity by the admin but not via the frontend.

This should be fixed by #19 - let us know if not and paste the traceback you get when you try and upload via the frontend.
(uploading via the admin backend doesn't resize it, which might not be great if you give it a massive image)

pulled latest changes and 😬

Ah, you're using the docker-compose file - see discussion on #18, we should get that fixed shortly. For now, change "production" to "development" in the compose file and things should be alright again.


[MSI installer] fix WIX build warnings

Summary of the Pull Request

factor out shortcut for toasts into a separate component
remove Impersonate attribute, since Wix was warning it'd be ignored anyway.

What is this about:
What is include in the PR:
How does someone test / validate:
Quality Checklist

[x] Linked issue: #9169
[ ] Communication: I've discussed this with core contributors in the issue.
[ ] Tests: Added/updated and all pass
[ ] Installer: Added/updated and all pass
[ ] Localization: All end user facing strings can be localized
[ ] Docs: Added/ updated
[ ] Binaries: Any new files are added to WXS / YML

[x] No new binaries
[ ] YML for signing for new binaries
[ ] WXS for installer for new binaries

Contributor License Agreement (CLA)
A CLA must be signed. If not, go over here and sign the CLA.

I verified that not having the "impersonate" working causes the uninstaller to prompt a warning when PowerToys.exe (and PowerToys.Settings.exe) are running as admin.
The code that tries to terminate these processes may be the cause:
https://github.com/microsoft/PowerToys/blob/013be4bbb8745dfc7cde51401e6a5b0b95deb521/installer/PowerToysSetupCustomActions/CustomAction.cpp#L607-L611

The warning only shows if PowerToys.Settings.exe is running.


[indexer] Compatibility check using migration records

Description
Previously we check DB compatibility by making sure that we could make select query on all columns to the DB based on the locally known schema. This doesn't cover all cases, for instance, there could be tables in the DB that does not exist in the local schema.
This PR changes how we do the compatibility check by fully leveraging the migration records. It checks that the migration records in the DB must fully match with the locally known one.
It also moves the code to sui-indexer crate, so that we could do this check on the startup of both indexer and graphql server.
This does require that from now on we fully respect the migration scripts, and don't do adhoc modifications on the existing migration.
Test plan
CI

Release notes
Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.
For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

[ ] Protocol:
[ ] Nodes (Validators and Full nodes):
[ ] Indexer:
[ ] JSON-RPC:
[ ] GraphQL:
[ ] CLI:
[ ] Rust SDK:
[ ] REST API:

Addressed feedback.
The migration now only run on the writer startup path.
For reader we only check for consistency.
Also added a dedicated command to run migrations in case we need to do so without starting up a writer.


ImportError after pip install

I've installed tinynumpy in Python 3.4 using "pip install tinynumpy".
In interactive Python 3.4, the following happens:
>>> import tinynumpy
>>> dir(tinynumpy)
['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__']
>>> from tinynumpy import tinynumpy as tnp
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python34\lib\site-packages\tinynumpy\tinynumpy.py", line 48, in <module>
    import tinylinalg as linalg
ImportError: No module named 'tinylinalg'

Seems to be fixed as of 1.2.1, I installed Python 3.4 and repeated these steps and did not get the error.


Additional Ingredients

[ ] Add garlic to ingredients
[ ] Add crush, mince, add garlic to instructions

This is a great idea. I like to use garlic salt instead of regular salt in my guacamole.


Angular 'Duplicates in a repeater are not allowed' error

here is the error

which means that there is a duplicated key in  http://localhost:3000/api/v1/routes/list

Here is the test (execution run) that shows the problem

Here is the test (now modified to pass on the wrong behaviour) that confirms the bug
Server  = require '../../src/server/Server'
request = require 'supertest'

describe '_supertest | Api-File', ->
  server  = null                       # these are tests that use supertest, which mean they need to be feed the actual Server object
  app     = null
  version = '/api/v1'

  before ->
    server = new Server().setup_Server().add_Controllers()
    app    = server.app

  it 'Issue 63 - Angular "Duplicates in a repeater are not allowed" error', ->
    it '/file/list', ->
    request(app)
      .get version + '/file/list'
      .expect (res)->
        list        = res.body
        raw_Size    = list.size()
        unique_Size = list.unique().size()
        raw_Size.assert_Is_Bigger_Than 15
        unique_Size.assert_Is_Not raw_Size  # these should be the same

found the bug, the prob is caused by multiple 'maturity-model' files (which shouldn't be there)
  it 'Issue 63 - Angular "Duplicates in a repeater are not allowed" error', ->
    it '/file/list', ->
    request(app)
      .get version + '/file/list'
      .expect (res)->
        list        = res.body
        raw_Size    = list.size()
        unique_Size = list.unique().size()
        raw_Size.assert_Is_Bigger_Than 15
        unique_Size.assert_Is_Not raw_Size                # these should be the same
        list.duplicates().assert_Is ['maturity-model']    # this file should not be there

here a good example of applying the fix which breaks the test that was capturing the bug

fixed, here is regression test that confirms the fix (note how different it is from the original one)
  it 'Issue 63 - Angular "Duplicates in a repeater are not allowed" error', ->
    request(app)
      .get version + '/file/list'
      .expect (res)->
        list        = res.body
        list.duplicates().assert_Is []              # check there are no duplicates
        list.assert_Not_Contains ['maturity-model'] # check this file is not there

here is the original page now working ok again


Fix recursive glob on MockFs

Recursive globs on MockFs were ending up in an unmocked os.Lstat
call in walkAllDirs.  Move walkAllDirs into the FileSystem interface
as ListDirsRecursive.
Also duplicate the glob tests on both the real filesystem and on
MockFs.
Test: glob_test.go
Change-Id: Ia6b6b5eecdd17955a49d684a0fd5e55df05cfe62

Want to rebase onto github/master but otherwise looks good to me


Dependency check fails with exit code 242 since 5.3.2 version

Hi,
We only recently added this to our build pipeline and all was working find on version 5.3.0, but doesn't appear to work any more with 5.3.2.
Here's the step from our azure-pipelines.yaml:
- task: OWASPDependencyCheck@0
  displayName: OWASP Dependency Check
  inputs:
    outputDirectory: '$(Agent.TempDirectory)/dependency-scan-results'
    scanDirectory: '$(Build.SourcesDirectory)'
    outputFormat: 'ALL'
    useSonarQubeIntegration: true

And here's the log file:
owasp-dependency-check-5-3-2-error.log
Please let me know if I can try something or provide any further information.

Aha, seems the build agents are no longer getting .NET Core 2.x SDK by default.  I only discovered this because Sonarqube also failed but produces an error message indicating that it needs 2.x, leading me to add the following in the pipelines yaml as a workaround (I still want to build my app in 3.1 so have to install both SDK versions side by side):
- task: UseDotNet@2
  displayName: 'Install .net core 2.x'
  inputs:
    packageType: sdk
    version: '2.x'
    installationPath: $(Agent.ToolsDirectory)/dotnet

Thank you for following up. I'm going to leave this issue here so other folks running into this can find the problem / solution. @jeremylong do you want me to open an issue in the main dependency check repo for upgrading to .net core 3.1?


A question on mu_loss

Hi,
Thanks for the code. I have a question on mu_loss defined here:
https://github.com/liuzhen03/ADNet/blob/main/graphs/loss/muloss.py#L21
It seems the code uses norm_perc to scale the predicted image and ground truth image for tone mapping. But norm_perc is obtained from the predicted image. Since the predicted image changes with epochs, the target that the network approximate also changes with epochs. Would it cause the training process less stable? Why not use the ground truth image to get norm_perc?
Thank you very much for your answer and help.

Hi,
Thanks for your suggestion.
Either using the GT image or the predicted image is ok to get the
norm_perc'. Actually, it wouldn't hurt the convergence. You can also have a try by using the GT image to calculate the norm_perc'.
Best Regards,
Zhen Liu
cyh767 @.***> 于2022年2月22日周二 10:00写道：

Hi,
Thanks for the code. I have a question on mu_loss defined here:
https://github.com/liuzhen03/ADNet/blob/main/graphs/loss/muloss.py#L21
http://url
It seems the code use norm_perc to scale the predicted image and ground
truth image for toning mapping. But norm_perc is obtained from the
predicted image. Since the predicted image changes with epochs, the target
that the network approximate also change with epochs. Would it cause the
training process less stable? Why not use the ground truth image to get
norm_perc?
Thank you very much for your time and help.
—
Reply to this email directly, view it on GitHub
https://github.com/liuzhen03/ADNet/issues/15, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AENO3NU3UR7OA2BHUYIO3Z3U4LU5TANCNFSM5PAA6JQQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

I see. Thanks for your reply.


New version: Malwarebytes.Malwarebytes version <IP_ADDRESS>1

Pull request has been created with Komac v1.11.0 :rocket:
Microsoft Reviewers: Open in CodeFlow

/azp run

Hi @PckgrBot,
Is this a duplicate of <IP_ADDRESS>0, or is the ISV releasing this version again?


Is BiDAF in this repo already trained? Where can I get one in PyTorch version?

There is a pytorch version in the allennlp repo, and I didn't find a BiDAF code in this issue. Anyway, I;m closing this issue. :)


Linker fail __RCTLogFormat undefined symbol

React-native 0.51
react-native-share 1.0.24
Undefined symbols for architecture arm64:
"__RCTLogFormat", referenced from:
-[RNShare shareSingle:failureCallback:successCallback:] in libRNShare.a(RNShare.o)
ld: symbol(s) not found for architecture arm64
Imo it is a path issue, struggling to fix it though, it this a known issue ?

@tirrorex can you test in the master branch version?

@enieber Sorry i forgot to close the issue, i moved to something else.


KITTI ground truth labels provide poor quality

Hi @darrenjkt,
Hope you are doing fine!
I have been using several detectors (pv_rcnn_plusplus and voxel_rcnn models trained on waymo,nuscenes and lyft) in order to label KITTI frames. Then, I noticed that, there are several frames that has missing ground truth boxes even though our detectors were able to label them correctly which made me curious if there is something I am doing wrong or KITTI ground truth is really bad?
Kind regards,
Gorkem

Yeah that's correct. From memory, KITTI ground truth labels do not label objects that are smaller than 25 pixel height. This tends to exclude far range objects that lidar can pick up which is why kitti lidar ground truth is missing labels.
Waymo and nuScenes on the other hand, will label any objects with at least one lidar point in them regardless of image pixel size.

Hi @darrenjkt, thanks a lot for your reply!
Then, for the quantitative evaluation purposes; is it a good approach to discard these object somehow? Because this results in a lot of false positives which significantly affects the results.
Exactly, using the waymo dataset I was able to get reasonable results both quantitative and qualitative...
Best,

Not sure if the openpcdet kitti evaluation already does some filtering but you could dig into their code first.
If not, you could filter the predictions based on their 3d bounding box pixel height after projecting into the image frame.
Make sure you re-run this modified evaluation on other algorithms for fair comparison.

Alright, thanks for your help!


Design new favicon for v10 website

Need to update this

I think that's perfect for now 👍

32x32 png

design file for 32x32 png - https://ibm.ent.box.com/file/359705365442

@laurenmrice can you close this issue if done?


Wasmtime: missing trampolines for declarative element segments (should be treated as possibly exported).

Test Case
Repro to run with main:
use wasmtime::*;

fn main() {
    let engine = Engine::default();

    let module = Module::new(
        &engine,
        r#"(module
        (import "" "callback" (func $callback (param funcref)))
        (elem declare func $f)
        (func $f (param externref))
        (func (export "g")
          (call $callback (ref.func $f))
        )
      )"#,
    )
    .unwrap();

    let store = Store::new(&engine);

    let callback = Func::wrap(&store, |funcref: Option<Func>| {
        funcref
            .unwrap()
            .typed::<Option<ExternRef>, ()>()
            .unwrap()
            .call(Some(ExternRef::new("some data")))
            .unwrap();
    });

    let instance = Instance::new(&store, &module, &[callback.into()]).unwrap();

    let g = instance
        .get_typed_func::<(), ()>("g")
        .unwrap();

    g.call(()).unwrap();

    println!("success!");
}

This is a paired down test case that is currently causing the wasmtime-dotnet CI to fail.
Steps to Reproduce
On Windows:

cargo new --bin repro
cargo add wasmtime (change path to local wasmtime repo)
cargo run

Expected Results
success! should be printed.
Actual Results
Panic due to failure to find trampoline (for signature (externref) -> (), i.e. the funcref passed to callback):
thread 'main' panicked at 'trampoline missing', C:\Users\Peter\src\wasmtime\crates\wasmtime\src\store.rs:272:14
stack backtrace:
   0: std::panicking::begin_panic_handler
             at /rustc/2fd73fabe469357a12c2c974c140f67e7cdd76d0\/library\std\src\panicking.rs:493
   1: core::panicking::panic_fmt
             at /rustc/2fd73fabe469357a12c2c974c140f67e7cdd76d0\/library\core\src\panicking.rs:92
   2: core::option::expect_failed
             at /rustc/2fd73fabe469357a12c2c974c140f67e7cdd76d0\/library\core\src\option.rs:1292
   3: core::option::Option<unsafe extern "C" fn(mut wasmtime_runtime::vmcontext::VMContext*, mut wasmtime_runtime::vmcontext::VMContext*, const wasmtime_runtime::vmcontext::VMFunctionBody*, mut u128*)>::expect<unsafe extern "C" fn(mut wasmtime_runtime::vmcontex
             at C:\Users\Peter\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\option.rs:349
   4: wasmtime::store::Store::lookup_trampoline
             at C:\Users\Peter\src\wasmtime\crates\wasmtime\src\store.rs:268
   5: wasmtime::func::Func::from_wasmtime_function
             at C:\Users\Peter\src\wasmtime\crates\wasmtime\src\func.rs:919
   6: wasmtime::func::Func::from_caller_checked_anyfunc
             at C:\Users\Peter\src\wasmtime\crates\wasmtime\src\func.rs:551
   7: wasmtime::func::typed::{{impl}}::from_abi
...

Versions and Environment
Wasmtime version or commit: main
Operating system: Windows 10
Architecture: x86-64
Extra Info
I believe this is caused by #2806.
I think the problem here is that we're failing to determine that $f may be possibly exported from the module as the element segment is declarative and not active or passive.  Right now the section translator does nothing for declarative element segments; with the changes from #2806 we should consider all declarative elements as potentially exported functions as the reference might escape the module.
Note: by changing $f to have a signature of () -> (), it runs to completion because it uses the trampoline of g.

cc: @alexcrichton

Also, this failure was first observed in wasmtime-dotnet's CI 13 days ago when #2806 was merged but was masked with other failures (just tests that needed updating so I put off resolving them until last night).

Whoops I completely missed that declarative element segments were skipped entirely in the translation phase, that's definitely a bug! I'll look to fix.


[EG] Update tests

/azp run python - eventgrid - tests

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-eventgrid

/azp run python - eventgrid - tests

/azp run python - eventgrid - tests

/azp run python - eventgrid - tests

/azp run python - eventgrid - tests


Images sent with text fail to send

Not a bug android side

I think this had to do with the server issue. Closing.


Surface configuration failed

Describe the bug
The sample code provided and examples fail with:
[2024-04-18T08:41:47Z ERROR wgpu_core::device::global] surface configuration failed: Native window is in use
thread 'main' panicked at C:\Users\xxxxx.cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-0.19.4\src\backend\wgpu_core.rs:724:18:
Error in Surface::configure: Validation Error
Caused by:
Invalid surface
To Reproduce
Steps to reproduce the behavior:

Open example (https://docs.rs/blue_engine/latest/blue_engine/) or demos.
Cargo build
Cargo run
Error as above, a window is briefly shown on screen.

Expected behavior
Should show a window on screen.
Screenshots
N/A
Desktop (please complete the following information):

OS: Linux (Fedora 38) and Windows 10.

could be driver issue such as https://github.com/gfx-rs/wgpu/issues/1492. Try running with a different backend through selecting it from Engine::new_config(WindowDescriptor {backend: ..., ..Default::default()})
related docs for backends available: https://docs.rs/blue_engine/latest/blue_engine/struct.WindowDescriptor.html#structfield.backends

Tried GL, VULKAN and DX12 (currently on a Windows 10 machine). I'm getting slightly different errors for each, can I check I've done this right before reporting the errors?
use blue_engine::{
    header::{ Engine, ObjectSettings, WindowDescriptor, Backends},
    primitive_shapes::triangle
};

fn main() {
    let window_descriptor = WindowDescriptor {
        width: 1280,
        height: 720,
        title: "My Awesome Render",
        backends: Backends::BROWSER_WEBGPU,
        ..Default::default() // To keep other details to default values
    };

    // set config
    let _ = Engine::new_config(window_descriptor);

    // initialize the engine
    let mut engine = Engine::new().expect("engine couldn't be initialized");

    // create a triangle
    triangle("my triangle", ObjectSettings::default(), &mut engine.renderer, &mut engine.objects).unwrap();

    // run the engine
    engine
        .update_loop(move |_, _, _, _, _, _| {})
        .expect("Error during update loop");
}

I found some issues with the unsafe surface creation discussed at https://github.com/AryanpurTech/BlueEngine/blob/b9481b92bf5a3d85b5140e7927544420b1196359/src/window.rs#L263-L280
which should now be fixed.


V2.0.1 MinSize and MaxSize not Working

Hi, MinSize and MaxSize not Working. Thanks.
https://stackblitz.com/edit/angular-cdk-portal-simple-example-kryycg

Normal, not there in 2.x
Only in beta 3.x currently.


[BUG] You can't import a single node Harvester cluster into Rancher running on the same cluster

Describe the bug

You can't import a single node Harvester cluster into Rancher when it's running on the same Harvester cluster
To Reproduce
Steps to reproduce the behavior:

Deploy a single node Harvester cluster
Set up a VM network running on the management interface
Create a VM running Rancher as a single node docker instance
Import Harvester into the rancher instance
Try to add the Rancher cluster to the cluster-registration-url

Expected behavior

The import should complete and get set to active
Support bundle

supportbundle_37afb7f8-8815-43f9-a3eb-56e59d576053_2024-12-19T19-06-54Z.zip
Environment

Harvester ISO version: v1.4.0
Underlying Infrastructure (e.g. Baremetal with Dell PowerEdge R630): Single node DL360

Additional context

On further investigation the issue seems to be showing up on some single node bare metal environments, but not all of them. It also isn't happening in virtualized KVM environments. After boot of the node
sysctl net.bridge.bridge-nf-call-iptables should be set to 0, but it's being set to 1. On boot it's set to 1, but then gets set to 0 when the cluster gets set to active in the status page on the server. This can also be reset if RKE2 gets restarted on the Harvester cluster (the local RKE2 cluster).
Workaround

Run sysctl net.bridge.bridge-nf-call-iptables=0 on the Harvester node as root

related to: https://github.com/harvester/harvester/issues/7041


Duet ai code prompts  for gcloud services

Duet ai code prompts  for gcloud services:
PubSub
BigQuery
BigTable
Spanner

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

thanks @dariabezkorovaina all your comments are addressed

Hi @damccorm this one is also ready for your review


udev rules stage should add commas between elements in expression

https://github.com/osbuild/osbuild-composer/pull/2648#pullrequestreview-973913015

This was fixed in #1026.


Orange cornmeal scones

wouldn't that be tasty? I think it would be tasty.

UGH I can't believe joy of baking already did this! And it's probably a great recipe because they know what's up. http://joyofbaking.com/SconesCornmeal.html

also, without egg, http://www.geniuskitchen.com/recipe/cornmeal-scones-14835


feat: new sensor types

remove PM1, PM2.5 and PM10 sensor types without unit
add weight, dewpoint, counter and moisture sensor types

FYI @rbaron


Documentation incomplete for Helm implementation

Documentation in the README is incomplete when it comes to adding this to an existing Prometheus cluster (deployed with Helm).
Following should be added:
server:
  extraVolumeMounts:
    - name: config-out
      mountPath: /etc/prometheus/config_out

  extraVolumes:
    - name: config-out
      emptyDir: {}

Without defining an extra volume to create, this volume cannot be shared between 2 containers in a pod. You also to need to mount this volume into the Prometheus server container.
Be aware this is related to the chart in the Prometheus community Helm chart repository.
https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus

I'd also like to add that additionalScrapeConfig is also meant to be extraScrapeConfigs
It is also necessary to rename containers to sidecarContainers.
This may be due to the Helm chart you used, however based on what seems the official chart, this is likely something that should be referenced.

Hey Mike,
The documentation is tailored towards configuring the tool on a Helm installation of the kube-prometheus-stack chart, which (at least according to artifacthub.io) is a bit more popular than the base Prometheus Helm chart.
Realistically though, that part of the documentation was meant more of a point in the right direction rather than explicit instructions to integrate the tool for every possible way that Prometheus can be run.

That makes sense. I was just surprised that there was no volume defined, I assume now that is something they have as standard.
Feel free to close this issue, it may help someone else by them just being able to find these notes in the future.

Yeah, that's fair enough. I'll leave it open for the time and I'll add a more general note to the README about what's actually required if you're using a different method of installation for Prometheus.


little extension on the tutorial

Hey there, great software this is!
I'm a complete newbie, trying to implement.
The tutorial is great, just a couple things I didn't get.

If I want to use my own SIP server, not the addon, is this possible? Can there be another tutorial brach for this scenario, explaining how to connect the parts?

"WSS requires SSL for security reason."
What is WSS?

Who listens on port 8089?

Is it possible to make a diagram of the whole final working parts?

DNS rewrite.
If I have an actual DNS server, what exactly is the domain or IP I should be adding?
I already have HA with a domain, pointing to local address, and works great. Pihole points the domain to local address. Outside connections go through a Reverse proxy, and this handles the certificates too.

thanks!

Yes it is. There is a FreePBX guide under card guides, but it's a bit outdated with chan_sip configuration. I also tried a way to have sections specific for the add-on or a custom pbx like freepbx which you can find a example of here. But I still have to do that on other places.

WSS stands for Secure WebSocket. Should be SWS but that didn't sound good I guess.

The card. Port 8089 is the default for WSS.

That would be helpful indeed. Will do that later.

The domain can be whatever you want, as long as it points to the pbx server and matches the certificate.

Will add these things, so will leave this open.

The domain can be whatever you want, as long as it points to the pbx server and matches the certificate.

Will add these things, so will leave this open.

I have the same issue, my local HA has no https but its tunneled through cloudflare which has the https certificate and the domain (nameserver). So do i need to install a local certificate here or how can i proceed? Im stuck at Tutorial -> Card -> SSL. If i try to open "https://:8089/ws" with my webpage i.e. "https://yourwebsite.com:8080/ws" that doesn't work.


Get Flushbar Height

Is it possible to get the height of the Flushbar widget as shown in the UI and move other widget using that value instead of covering them?

i don’t think this is possible. The height is computed automatically