x-scheme: custom schemes

Most standards that evolve quickly, follow innovation and adoption of the developers using those standards and the extensions they add.  I realise the AsyncAPI spec does already support extensions in the form x-*, which is a good common convention.
However, looking specifically at server.scheme, it states:
"REQUIRED. The scheme this URL supports for connection. The value MUST be one of the following: kafka, kafka-secure, amqp, amqps, mqtt, secure-mqtt, ws, wss, stomp, stomps, jms".
I have seen a lot of other popular protocols being used such as Socket.io (loosely equivalent to ws I suppose), Nats (similar to STOMP/AMQP), Faye etc. and even some proprietary protocols that are popular.
Do you think it would be sensible to change this to:
"REQUIRED. The scheme this URL supports for connection. The value MUST be one of the following: kafka, kafka-secure, amqp, amqps, mqtt, secure-mqtt, ws, wss, stomp, stomps, jms, or may include an unsupported scheme as an extension in the format x-[scheme]."
I would assume that there is really no need to even specify that x-[scheme] may not be supported by the consumer, as the spec itself does not require that every scheme is supported anyway by every consumer as that would make it impractical for anyone to implement a client.
WDYT?

That's a good point, Matt. I added a restriction on the number of protocols so that I could "control" how tooling evolves, but I don't think it makes sense anymore. Maybe it's time for server.scheme to be just a string without restrictions in its value, and it's gonna depend on your tooling if it's supported or not.
However, I must say that the idea of using the x-[scheme] sounds very good to me. After some time, we could grab a bunch of x-[scheme]'s and add them to the supported list.

@fmvilas 👍 for x-schemes until the naming at least is standardised.

Cool! You want it to be your first issue? :) Feel free to mark it for version 1.3.0 and create a PR. Also, don't forget to add it here and move it to In Progress whenever you're working on it.

Ok, here goes :)

@fmvilas I would like to add my 2 cts about tooling control. The way I see things, controlling code generators is the biggest mistake swagger ever made. Now (almost) every generator lives in a single repository under a single version. Trying to figure which version of the codegen is needed to generate code for a particular version of a framework for a particular version of a language is a nightmare.
Even more, first release of codegen supporting OAS 3.0 took 14 month (from spec release to codegen release) ! Reason for it is that every body needs to update their generator to OAS3 to make the release happen ... And guess what, not every generators in codegen is supporting OAS3.0. So in the end we have an official may-be supporting 'OAS3' codegen. I wont even bother try to figure how to use this thing ...
You probably noticed I have some personal grief with swagger codegen :D. I developed 4 generators at my company (kinda obsessed with api generation). And from this point of view I can tell you working with swagger 'tool control' is really really painful ... For the record the last generator I wrote only uses open api java model, everything else is custom (no mustache, no abstract codegen) and it is by far the cleanest of all. So I would advise you not to repeat the same pattern. I just discovered AsyncApi and I must admit it would be a great thing to have along OAS.
Other than that I am in favor of leaving scheme open to any value. User responsibility would be to pick  the right tooling. Minimal expected behavior is to clearly state that scheme: abc is not supported by the tool.

See also https://github.com/OAI/OpenAPI-Specification/pull/1812

@fmvilas sorry - it was more about the general approach of using custom as an enum entry and having a customType (or customScheme) property, rather than using x-* in the enum, which is difficult to validate.

Oh I see. Thanks for explaining!


Include conhost source code instead of binary

Including the Conhost source code instead of a precompiled binary would be

less legally problematic and
more trustworthy.

Take a look at the README:

This repository contains the source code for:

Windows Terminal
Windows Terminal Preview
The Windows console host (conhost.exe)

Okay, I will look into it.


ViewTasksActivity Layout

get layout from figma

I can start on this issue

I'll work on this issue

@tmoradi What's the status on this?

@galletti94 I am working on it. The problem is that we did not design a page like this on figma. I will get it done and if it needs to change I can fix those issues as well.

Sounds good to me but please coordinate with @rhodesrm just in case

@tmoradi I think having even a basic outline would be a good idea, we can always add to it/tweak it later! Thank you for your help!

@tmoradi Any luck with git?


docs: documented breaking changes release process

Overview

Moved documentation on breaking changes release process from Notion to this repository.

I don't think it makes sense anymore to include this stuff in the Frontend Platform onboarding because that's a very high-level overview to get people started.
PR Checklist

~[ ] Related to designs:~
[x] Related to JIRA ticket: WEB-1245
[x] I have run this code to verify it works
[x] This PR includes unit tests for the code change

🚀 Styleguide deploy preview ready!https://600b6ac31f0dc75f559aa4b3--gamut-preview.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://600b6ac31f0dc75f559aa4b3--gamut-preview.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://6012d656dd01faf69fbfb6cd--gamut-preview.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://6012d656dd01faf69fbfb6cd--gamut-preview.netlify.appDeploy Logs


version 0.3.1 has undeclared dependency on tower-util 0.3.1

I met same error.
If anyone confuse because of this, try insert below to dependencies section of Cargo.toml.
tower-util = "0.3.1"

Originally posted by @PG-kura in https://github.com/hyperium/tonic/issues/422#issuecomment-691827551
This error affects anyone directly depending on tonic without declaring a dependency on tower-util.

Sounds like we just need to bump this version in tonic?

running cargo update should fix this


DrawRectF, FillRectF are not working

This is my code:
package main

import (
	"fmt"
	"os"

	"github.com/veandco/go-sdl2/sdl"
)

func main() {
	//==============CREATE WINDOW==============
	window, err := sdl.CreateWindow("test", sdl.WINDOWPOS_UNDEFINED, sdl.WINDOWPOS_UNDEFINED, 500, 500, sdl.WINDOW_SHOWN)
	if err != nil {
		fmt.Fprintf(os.Stderr, "Failed to create window: %s\n", err)
	}
	defer window.Destroy()

	//==============CREATE RENDERER==============
	renderer, err := sdl.CreateRenderer(window, -1, sdl.RENDERER_ACCELERATED|sdl.RENDERER_PRESENTVSYNC)
	if err != nil {
		fmt.Fprintf(os.Stderr, "Failed to create renderer: %s\n", err)
	}
	defer renderer.Destroy()

	//==============MAIN LOOP==============
	running := true
	for running {
		//==============EVENT HANDLING==============
		for event := sdl.PollEvent(); event != nil; event = sdl.PollEvent() {
			if event.GetType() == sdl.QUIT {
				running = false
			}
		}

		//==============DRAWING==============
		renderer.SetDrawColor(255, 255, 100, 255)
		renderer.Clear() // clear the screen
		renderer.SetDrawColor(255, 100, 100, 255)

		/*
			These are working...

			err := renderer.DrawRect(&sdl.Rect{X: 100, Y: 100, W: 70, H: 50})
			if err != nil {
				fmt.Fprintf(os.Stderr, "Failed to render: %s\n", err)
			}
			err = renderer.FillRect(&sdl.Rect{X: 10, Y: 10, W: 50, H: 50})
			if err != nil {
				fmt.Fprintf(os.Stderr, "Failed to render: %s\n", err)
			}
		*/

		err = renderer.DrawRectF(&sdl.FRect{X: 100.0, Y: 100.0, W: 70.0, H: 50.0})
		if err != nil {
			fmt.Fprintf(os.Stderr, "Failed to render: %s\n", err)
		}
		err = renderer.FillRectF(&sdl.FRect{X: 10.0, Y: 10.0, W: 50.0, H: 50.0})
		if err != nil {
			fmt.Fprintf(os.Stderr, "Failed to render: %s\n", err)
		}

		renderer.Present()
	}
}

The methods DrawRectF and FillRectF are not rendering anything on the screen. Whereas, if I use just DrawRect and FillRect in place of them then I can see the expected results.
The CopyExF method is also not working. Am I doing something wrong here or it's a bug?

Hi @dev-abir, I can't seem to reproduce the issue on Linux, macOS, or Windows. Are you perhaps using an old version of SDL2? The functions are introduced on SDL 2.0.10.

Hi @dev-abir, I can't seem to reproduce the issue on Linux, macOS, or Windows. Are you perhaps using an old version of SDL2? The functions are introduced on SDL 2.0.10.

No.
According to my go.mod file, it is using go-sdl v0.4.1(which should use SDL 2.0.10)

Ah are you using the static compilation method? Unfortunately, the SDL2 included is at version 2.0.9. However, if you're using a standard go build command, it will use the SDL2 library of the system.

I used GetVersion(...) method to find the SDL version it is using.
I tried to build this way, and I found that it is using 2.0.9, it was previously using 2.0.8.
But still I am facing the same issue.

Hi @dev-abir, I'm so sorry. We will try to update the static library to match the latest version. In the meantime, perhaps you could use the go build method and install a more up-to-date version of SDL2 in your system? What operating system are you running? I could guide you on how to install it if you'd like.

I use an ubuntu-based distro, while developing my application.
I may cross-compile the application for Windows, Mac and other linux distros.
I don't want to mess with the SDL2 installed in my system. I would like to link the libraries statically (maybe by replacing the old libraries inside .go-sdl2-libs), and thanks for helping me :-)

I see.. in that case, it can't be helped. I will let you know here once the static libraries have been updated!

What is the other way?

The other way I can think of is to download the source from https://libsdl.org/download-2.0.php, extract the library archive and run make inside it. After that, set PKG_CONFIG_PATH so  it can find the sdl2.pc file which I believe should reside in the lib directory.
Another way is perhaps you can set PREFIX=$HOME/.local  and run make; make install and also set PKG_CONFIG_PATH=$HOME/.local/lib/pkgconfig:$PKG_CONFIG_PATH.
I haven't tried these methods myself but it might work!

Static libraries are now updated.

Thank you so much @gen2brain! I have tagged it as the next patch release :smiley:

Hi!
I've had similar behavior when trying to draw using FPoints. Turns out I was using SDL2 2.0.9 provided by Debian 10.
Using the static libraries provided by go-sdl2 (2.0.12 at this time), everything works just fine.


bacula: 5.2.13 -> 9.2.1

Motivation for this change
Update bacula from the older version (2013) to the newest version (2018).
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build bacula
/cc @domenkozar @lovek323

Success on x86_64-linux (full log)
Attempted: bacula
Partial log (click to expand)
/nix/store/h9d9kyl8b4bm7ciaylpm5k868isb1i6m-bacula-9.0.6/etc/update_bacula_tables: interpreter directive changed from "/bin/sh" to "/nix/store/q1g0rl8zfmz7r371fp5p42p4acmv297d-bash-4.4-p19/bin/sh"
/nix/store/h9d9kyl8b4bm7ciaylpm5k868isb1i6m-bacula-9.0.6/etc/make_bacula_tables: interpreter directive changed from "/bin/sh" to "/nix/store/q1g0rl8zfmz7r371fp5p42p4acmv297d-bash-4.4-p19/bin/sh"
/nix/store/h9d9kyl8b4bm7ciaylpm5k868isb1i6m-bacula-9.0.6/etc/grant_bacula_privileges: interpreter directive changed from "/bin/sh" to "/nix/store/q1g0rl8zfmz7r371fp5p42p4acmv297d-bash-4.4-p19/bin/sh"
/nix/store/h9d9kyl8b4bm7ciaylpm5k868isb1i6m-bacula-9.0.6/etc/drop_bacula_tables: interpreter directive changed from "/bin/sh" to "/nix/store/q1g0rl8zfmz7r371fp5p42p4acmv297d-bash-4.4-p19/bin/sh"
/nix/store/h9d9kyl8b4bm7ciaylpm5k868isb1i6m-bacula-9.0.6/etc/drop_bacula_database: interpreter directive changed from "/bin/sh" to "/nix/store/q1g0rl8zfmz7r371fp5p42p4acmv297d-bash-4.4-p19/bin/sh"
/nix/store/h9d9kyl8b4bm7ciaylpm5k868isb1i6m-bacula-9.0.6/etc/make_catalog_backup: interpreter directive changed from "/bin/sh" to "/nix/store/q1g0rl8zfmz7r371fp5p42p4acmv297d-bash-4.4-p19/bin/sh"
/nix/store/h9d9kyl8b4bm7ciaylpm5k868isb1i6m-bacula-9.0.6/etc/delete_catalog_backup: interpreter directive changed from "/bin/sh" to "/nix/store/q1g0rl8zfmz7r371fp5p42p4acmv297d-bash-4.4-p19/bin/sh"
checking for references to /build in /nix/store/h9d9kyl8b4bm7ciaylpm5k868isb1i6m-bacula-9.0.6...
moving /nix/store/h9d9kyl8b4bm7ciaylpm5k868isb1i6m-bacula-9.0.6/sbin/* to /nix/store/h9d9kyl8b4bm7ciaylpm5k868isb1i6m-bacula-9.0.6/bin
/nix/store/h9d9kyl8b4bm7ciaylpm5k868isb1i6m-bacula-9.0.6

Success on aarch64-linux (full log)
Attempted: bacula
Partial log (click to expand)
/nix/store/liq62x216lhz0xzdaq9x59k1mcqv9f2r-bacula-9.0.6/etc/bacula-ctl-dir: interpreter directive changed from " /bin/sh" to "/nix/store/3gg2p6n4kv2f0lsxd41f5iz1ivkbzyzr-bash-4.4-p19/bin/sh"
/nix/store/liq62x216lhz0xzdaq9x59k1mcqv9f2r-bacula-9.0.6/etc/tapealert: interpreter directive changed from "/bin/sh" to "/nix/store/3gg2p6n4kv2f0lsxd41f5iz1ivkbzyzr-bash-4.4-p19/bin/sh"
/nix/store/liq62x216lhz0xzdaq9x59k1mcqv9f2r-bacula-9.0.6/etc/bacula_config: interpreter directive changed from "/bin/sh" to "/nix/store/3gg2p6n4kv2f0lsxd41f5iz1ivkbzyzr-bash-4.4-p19/bin/sh"
/nix/store/liq62x216lhz0xzdaq9x59k1mcqv9f2r-bacula-9.0.6/etc/bacula: interpreter directive changed from " /bin/sh" to "/nix/store/3gg2p6n4kv2f0lsxd41f5iz1ivkbzyzr-bash-4.4-p19/bin/sh"
/nix/store/liq62x216lhz0xzdaq9x59k1mcqv9f2r-bacula-9.0.6/etc/bconsole: interpreter directive changed from "/bin/sh" to "/nix/store/3gg2p6n4kv2f0lsxd41f5iz1ivkbzyzr-bash-4.4-p19/bin/sh"
/nix/store/liq62x216lhz0xzdaq9x59k1mcqv9f2r-bacula-9.0.6/sbin/btraceback: interpreter directive changed from "/bin/sh" to "/nix/store/3gg2p6n4kv2f0lsxd41f5iz1ivkbzyzr-bash-4.4-p19/bin/sh"
/nix/store/liq62x216lhz0xzdaq9x59k1mcqv9f2r-bacula-9.0.6/sbin/bacula: interpreter directive changed from " /bin/sh" to "/nix/store/3gg2p6n4kv2f0lsxd41f5iz1ivkbzyzr-bash-4.4-p19/bin/sh"
checking for references to /build in /nix/store/liq62x216lhz0xzdaq9x59k1mcqv9f2r-bacula-9.0.6...
moving /nix/store/liq62x216lhz0xzdaq9x59k1mcqv9f2r-bacula-9.0.6/sbin/* to /nix/store/liq62x216lhz0xzdaq9x59k1mcqv9f2r-bacula-9.0.6/bin
/nix/store/liq62x216lhz0xzdaq9x59k1mcqv9f2r-bacula-9.0.6

It would be better to modify the directory paths to the following in order to store logs in /var/log/bacula and keep working directory in /var/lib/bacula instead of nix store.
  configureFlags = [
    "--with-sqlite3=${sqlite.dev}"
    "--with-postgresql=${postgresql}"
    "--with-logdir=/var/log/bacula"
    "--with-working-dir=/var/lib/bacula"
  ];

However, this will fail with the following issue due to the Makefile wanting to create a directory itself, which obviously doesn't have permission to do so.
./autoconf/mkinstalldirs
./autoconf/mkinstalldirs /var/log/bacula
mkdir -p -- /var/log/bacula
mkdir: cannot create directory '/var/log/bacula': Permission denied
make: *** [Makefile:208: installdirs] Error 1

That's against Nix's principles. You'll have to set the logdir at runtime or patch the Makefile so that the directory isn't created.

The package is now built using the proper parameters and I've also modified the service nix package with LogsDirectory/StateDirectory in order for the /var/log/bacula and /var/lib/bacula to be properly created by systemd.
The program builds just fine, but didn't actually test the service with the new LogsDirectory/StateDirectory settings, since I would need to rebuild my system out of my local nixpkgs, which is quite cumbersome and something that I don't have time for.

OK thanks! Given the ancien-ness of the current version of bacula I think this could get merged without testing… Ideally there'd be a NixOS test that validates that bacula appears to work correctly, but… :/
Actually upon further investigation current version is vulnerable to CVSS3 9.5 (!) CVE-2017-15367, so I think this should even be backported ASAP.

Actually I withdraw my assertion this fixes CVE-2017-15367: the nixpkgs bacula package doesn't include bacula-web, and therefore is not vulnerable.
Backporting is thus likely a bad idea, given it'd be a big major version bump.


:DistantLaunch command fails

When I try to start distant with the command ":DistantLaunch <IP_ADDRESS>", I got this error:

The plugin ask successfully for the password, but crashes just after.
I'm using Ubuntu 20.04.3 LTS and have installed distant.nvim with the option "1. Download a prebuilt lib" and choosed the version "1. v0.15.0".

Seems like an issue with our underlying ssh client library.
@wez, have you seen this error before when using ssh2-rs?

@JulienLecoq for the time being, until we figure out some of these ssh issues and what workarounds/fixes can be made on the Rust side, you can use the newly-added DistantConnect command available in https://github.com/chipsenkbeil/distant.nvim/commit/06de9e1d2203880d99aeb8cbcc9716a3dbe33e1f.
You would need to start the distant server yourself via something like distant listen --host any on the server you want to connect to. Then copy the key and port to supply when you connect.

@chipsenkbeil Thanks for the response!
I now have the newly-added command DistantConnect but I do not have the command distant in the terminal. Should this command be available after the installation of distant.nvim? Or do I have to add it to the PATH after the installation?

@JulienLecoq DistantConnect is used to have neovim connect to a running server on your remote machine. You need to start that server yourself whereas DistantLaunch attempts to start the server for you. 😄 You will need to have distant (the CLI binary) on that machine and start it by using distant listen --host any.
DistantLaunch also provides an alternative mode where it connects and communicates with the remote server using only ssh, but since your issue is with ssh, that isn't an option for you! That's why I recommended connecting to a running distant server. 😄
You don't actually need the server on your path. All you need to do is be able to start it and see which port it attaches to and the key that it generates for you.
The distant binary won't be on your machine after you run DistantInstall as you only need that binary on the server you want to connect to. In your case, since you are connecting to your own machine using <IP_ADDRESS>, you will also need the distant binary running on your local machine.

@chipsenkbeil Thanks for your great explanations, I installed the distant binary and now it works perfectly when started manually 😃.
I was wondering where I could get this binary but it is one of your repo haha, here it is for those who are searching for it:
https://github.com/chipsenkbeil/distant


function  removeItem

function  removeItem doesn't delete a key in indexeddb.
var indexdb = localforage.createInstance({
driver: localforage.INDEXEDDB,
name: 'Rox'
});
indexdb.setItem("key", "value3");
indexdb.removeItem('key').then(function() {
// Run this code once the key has been removed.
console.log('Key is cleared!');
}).catch(function(err) {
// This code runs if there were any errors
console.log(err);
});
UserAgent:  "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36"

You probably are missing a then chaining.
Couldn't reproduce, seems to work for me.
Please fork if I have diverged from your use case.

If you're unfamiliar with promises, you may want to check out my blog post on the subject. As @thgreasi says, you'll need to put removeItem() inside the then() call for setItem(), i.e.:
indexdb.setItem("key", "value3").then(function () {
  return indexdb.removeItem('key');
}).then(function() {
  // done
}).catch(function(err) {
  console.log(err);
});


Incorrect jpg resizing when using dpr equal to 0.5 or less

First of all thank you for a great product!
I use dpr values less than zero to shrink images while preserving original aspect ratio. This approach works fine for png, but for some reason it doesn't for jpg images and dpr values less or equal than 0.5.
I've prepared a reproduction scenario, here are results:

You can reproduce test case above by starting imgproxy docker on 8080 port and opening code below in a browser:

I've tried different png and jpg images and get the same results for all of them, so I think that the problem lies in either jpg library imgproxy is using or in a way imgproxy pass params to this library. I've also looked through this repo's source code, but haven't found anything connected to problems I'm facing.
One more interesting thing I've noticed – jpg with dpr 0.5 is actually a 0.25 version of the original image.
Thank you!

My bad. Fixed in the latest build

Thanks!


BUG: scipy 1.9 build issue

Describe your issue.
We build scipy and scikit-learn from source.
With scipy 1.9, scikit-learn build always failed immediately with log below.
We also tried python3 -c 'from scipy.lib import _ccallback_c' and that failed in the same way.
This wasn't an issue in 1.8 or even earlier version.
If we build lower version first and gradually upgrade, it works fine, indicating probably some file is left there.
Reproducing Code Example
Bascially python3 -m pip install on locally cloned repo of scipy/scikit-learn

Error message
#12 247.1   Traceback (most recent call last):
#12 247.1     File "/usr/local/lib/python3.9/dist-packages/scipy/__init__.py", line 166, in <module>
#12 247.1       from scipy._lib._ccallback import LowLevelCallable
#12 247.1     File "/usr/local/lib/python3.9/dist-packages/scipy/_lib/_ccallback.py", line 1, in <module>
#12 247.1       from . import _ccallback_c
#12 247.1   ImportError: cannot import name '_ccallback_c' from 'scipy._lib' (/usr/local/lib/python3.9/dist-packages/scipy/_lib/__init__.py)
#12 247.1
#12 247.1   The above exception was the direct cause of the following exception:
#12 247.1
#12 247.1   Traceback (most recent call last):
#12 247.1     File "setup.py", line 200, in check_package_status
#12 247.1       module = importlib.import_module(package)
#12 247.1     File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
#12 247.1       return _bootstrap._gcd_import(name[level:], package, level)
#12 247.1     File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
#12 247.1     File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
#12 247.1     File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
#12 247.1     File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
#12 247.1     File "<frozen importlib._bootstrap_external>", line 790, in exec_module
#12 247.1     File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
#12 247.1     File "/usr/local/lib/python3.9/dist-packages/scipy/__init__.py", line 171, in <module>
#12 247.1       raise ImportError(msg) from e
#12 247.1   ImportError: The `scipy` install you are using seems to be broken, (extension modules cannot be imported), please try reinstalling.
#12 247.1   Traceback (most recent call last):
#12 247.1     File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
#12 247.1       main()
#12 247.1     File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
#12 247.1       json_out['return_val'] = hook(**hook_input['kwargs'])
#12 247.1     File "/usr/local/lib/python3.9/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 164, in prepare_metadata_for_build_wheel
#12 247.1       return hook(metadata_directory, config_settings)
#12 247.1     File "/usr/local/lib/python3.9/dist-packages/setuptools/build_meta.py", line 188, in prepare_metadata_for_build_wheel
#12 247.1       self.run_setup()
#12 247.1     File "/usr/local/lib/python3.9/dist-packages/setuptools/build_meta.py", line 281, in run_setup
#12 247.1       super(_BuildMetaLegacyBackend,
#12 247.1     File "/usr/local/lib/python3.9/dist-packages/setuptools/build_meta.py", line 174, in run_setup
#12 247.1       exec(compile(code, __file__, 'exec'), locals())
#12 247.1     File "setup.py", line 329, in <module>
#12 247.1       setup_package()
#12 247.1     File "setup.py", line 305, in setup_package
#12 247.1       check_package_status("scipy", min_deps.SCIPY_MIN_VERSION)
#12 247.1     File "setup.py", line 227, in check_package_status
#12 247.1       raise ImportError(
#12 247.1   ImportError: scipy is not installed.

SciPy/NumPy/Python version information
Latest/Latest/3.8

1.9.0 may also work, but not 1.9.1 and 1.9.2

Hi @xkszltl thank you for reporting. Can you give more details about your setup and how you are building SciPy? Are you following our development instructions?

Can you add -vv to your pip install command so that we can see the actual issue in the full build log?

from . import _ccallback_c

That is what is failing. Does scipy/_lib/_ccallback_c.cpython-<xxx>.so actually exist? If so, can you import it directly (e.g., cd scipy/_lib; python -c "import _ccallback_c")?

We also tried python3 -c 'from scipy.lib import _ccallback_c' and that failed in the same way.

As mentioned the import is failing regardless of manually done or as part of scikit-learn build.
The .so file is not there.
For -vv I can do that but where should I look for the error?
scipy build itself completed successfully but without generating that file, the one failing is scikit-learn build and the error msg is simply the import failure above.

Hi @xkszltl thank you for reporting. Can you give more details about your setup and how you are building SciPy? Are you following our development instructions?

These lines:

https://github.com/xkszltl/Roaster/blob/387bd9c052b6964042affbefd80773444fc61514/pkgs/utils/fpm/distro_cc.sh#L16
export GIT_REPO=https://github.com/scipy/scipy.git GIT_TAG=v1.9.2
https://github.com/xkszltl/Roaster/blob/387bd9c052b6964042affbefd80773444fc61514/pkgs/utils/pip_install_from_git.sh#L116
https://github.com/xkszltl/Roaster/blob/387bd9c052b6964042affbefd80773444fc61514/pkgs/utils/pip_install_from_git.sh#L132

Basically sudo -E CC=gcc-10 CXX=g++-10 FC=gfortran-10 python3 -m pip install --no-clean -Uv ./scipy with a freshly re-cloned dir every time.

For -vv I can do that but where should I look for the error?
scipy build itself completed successfully but without generating that file,

The extension module must have been built, but then failed to install somehow. There's lots of lines like this:
  [1/2] Generating scipy/generate-version with a custom command
  fatal: bad revision '^v1.8.0'
  [2/2] Generating scipy/generate-config with a custom command
  Installing scipy/__config__.py to /home/runner/work/scipy/scipy/.mesonpy-2_3ry3af/install/usr/lib/python3/dist-packages/scipy
  Installing scipy/version.py to /home/runner/work/scipy/scipy/.mesonpy-2_3ry3af/install/usr/lib/python3/dist-packages/scipy
  Installing scipy/_lib/_ccallback_c.cpython-310-x86_64-linux-gnu.so to /home/runner/work/scipy/scipy/.mesonpy-2_3ry3af/install/usr/lib/python3/dist-packages/scipy/_lib
...
<one line per installed file, ~1200 files>

There will be warnings visible there (capitalized, WARNING ...) if something is not installed.
Posting the full install log would be helpful.

Basically sudo -E CC=gcc-10 CXX=g++-10 FC=gfortran-10 python3 -m pip install --no-clean -Uv ./scipy with a freshly re-cloned dir every time.

Ah, sudo is an untested thing here. Best practice is to never do that. Perhaps something is going wrong due to that.

I know python community generally suggest to use venv or whatever isolated env and discourage the use of sudo, but in our cases we often need to interact with native libs or talk with other non-python component in system, so we prefer to use the distro-stock python and sudo install to /usr{,/local}/lib{,64}/python3.*/{dist,site}-packages.

Yes, I know there's reasons you may have to use sudo. If that's the cause, I do want to fix it. Just saying that it's untested so far, so may be the root cause somehow.

Emmm, even though it was stably reproducible the day I filed this issue, across multiple machines and dockers, it's gone the next day and I cannot repro it at all.
So at this point I'm very confused and have no idea what's going on.
The only "timely" thing I recall that day is numpy tagged 1.23.4 but haven't push wheel to pypa, we built numpy from source and use the latest release tag, and some pip install <git_repo> calls complained about numpy 1.23.4 doesn't exists.
Another possibly related thing is, we manually cleared ccache used by some docker build, although that cannot explained what happened elsewhere.

Another possibly related thing is, we manually cleared ccache used by some docker build, although that cannot explained what happened elsewhere.

That could indeed explain an issue going away. You filed the issue on Oct 9th, while there were bug fix releases for both meson and meson-python on Oct 5th with fixes relevant to SciPy builds.
Do you want to test more, or close this issue now and reopen in case it comes back?

I can close now and reopen if I got this again, thanks again for the quick help~!


Is it possible to update icon in status bar?

Hi! Is it possible to update the icon in the status bar? I am trying to make an app that updates the icon every x seconds, but I can't make it work. Help is much appreciated!

Definitely! Try this,
import rumps

app = rumps.App('Test Change Icon', ':)')

@rumps.timer(2)
def change(_):
    app.title = ':(' if app.title == ':)' else ':)'

app.run()


Trouble connecting to MINA DAEMON

To whom it may concern... I am using docker on a Mac to connect to MINA. I've followed all of the steps and verified my password, however I keep getting a message that I am unable to connect. Then when I checked the logs I received the following:
2021-04-19 22:24:49 UTC [Warn] Shutdown before Coda instance was created, not saving a visualization

echo 'Mina process exited with status code 1'

Mina process exited with status code 1

sleep 10

☠ Mina Daemon crashed.
The Mina Protocol developers would like to know why!
Please:
mina-log.txt
Open an issue:
https://github.com/MinaProtocol/mina/issues/new
Briefly describe what you were doing and attach the crash report /root/.mina-config/coda_crash_report_2021-04-19_22-24-48.956002.tar.gz

kill 14

'[' '!' -f stay_alive ']'

exit 0

mkdir -p .mina-config

touch .mina-config/mina-prover.log

same poblem. seems like a lot of people have same issue but nobody knows how to solve it.

Thank you... At least I know I am not crazy

This is most likely was caused by the lack in resources (RAM specifically).
Closing this one because of no activity for a long time and I hope that the most recent versions of Mina Daemon behave more stable for you.
Please feel free to report new issues should you face any.
Thank you.


CapturePreview.Native.dll couldn´t be loaded on a fresh installed Win 8.1 - x64 machine, please help!

Hi, i hope you can help me out!
It seems that trying to open the C++-Projects of your Source in Visual Studio 2015 doesn´t work for some reason. (Only possible when (re)installing VS 2013).
I even couldn´t get the executable (build in VS 2013) to run on a machine without Visual Studio 2013 installed. Am I missing importand dependencies, that comes with the VS installation routine?
Thanks in advance!

That feels like a VClib issue. Did VS pop up a dialog too update the C++/CLI compiler when opening the solution?

I opened the solution in VS2015 and was able to build and run the app. I have both VS 2013 and 2015 installed with C# & C++ compilers.

Thanks for your quick reply!
As you have VS 2015 AND 2013 installed on your machine everything works fine!
If you now uninstall VS 2013 (keep VS2015) you´ll run into my exact problem.
(To your question: The popup didn´t occure, as VS2015 is able to load the projects, when vs 2013 is installed. You can see it in the Solution Explorer in VS 2015: Next to the project folders of the C++-Projects, it says "(Visual Studio 2013)".

I´ve also tried to run your project as it is on a machine without any VS installed. (MS Surface Pro 3, Win 8.1 Pro).
I took the Test-App´s output folder "Debug" and copied it to the tablet. Unfortunately the app crashes on startup.

I'm having the same issue (I only have VS 2015), except I do get the option update VC++ Compiler and Libraries. I upgrade them, but then the only problem I have is that I get "Error CS0246-The type or namespace name 'CapturePreviewNative' could not be found (are you missing a using directive or an assembly reference?) in CapturePreview.cs, even after trying a full rebuild.
Is it due to being in VS2015, same issues with the VC++ that this would occur?

i thing you must rebuild your project


docker service doc is broken #71

Fix #71

coverage: 95.242%. remained the same
when pulling e41cd3371350336b9bfdb96cac1a119491298b12 on 71-docker-service_doc-is-broken
into 67d613bc1211cf036dfebde81e5a7c45e25ae0f5 on main.


#4699: analyzer/npm :: Add usage of --ignore-scripts parameter to "npm ci" in order to prevent unnecessary and risky script execution

PR attempts to use --ignore-scripts parameter also in npm ci cases, not only for npm install.
(cmp. #4699 for respective issue description)

Quoting @rockebee from #4699:

Caveat: ignore-scripts was introduced with NPM 5.7.0 (together with npm ci itself), but was not supported in NPM versions 7.0.0 < 7.4.0 (link)

So, should we change the code to only pass --ignore-scripts to npm ci for version 5.7.0 to 7.0.0, or versions above 7.4.0?

Quoting @rockebee from #4699:

Caveat: ignore-scripts was introduced with NPM 5.7.0 (together with npm ci itself), but was not supported in NPM versions 7.0.0 < 7.4.0 (link)

So, should we change the code to only pass --ignore-scripts to npm ci for version 5.7.0 to 7.0.0, or versions above 7.4.0?

I understood the PR so that the option was still present but simply not working from 7.0.0-7.4.0.

I understood the PR so that the option was still present but simply not working from 7.0.0-7.4.0.

Ah, ok. Then of course the code should be fine as-is.

@mnonnenmacher @sschuberth, thx for feedback. Commit message is now signed properly and commit message modified as suggested.
I agree that IMHO there is no need to exclude NPM versions 7.0.0 to < 7.4.0, as npm ci itself is properly working, just the --ignore-scripts flag was not working and ignored.

Nit: There needs to be a blank line between
Fixes #4699.
Signed-off-by: Stefan Schwenkenbecher<EMAIL_ADDRESS>
to separate the body from the footer.


Transpose of a matrix

Is your feature request related to a problem? Please describe.
I want to write a code to give the transpose of a matrix.
Describe the solution you'd like
Take input of a matrix and will print the transpose of that matrix.
I will write the code in Java.
Do you want to work on it
I am a GSSOC'21 participant and would like to work on this issue.

Hello,
I would like to work on this issue. I can code in Python, C++ and Java .I am a participant of GSSoC'21 .
Will you please assign this issue to me.

@tarun26091999 @rudrakshi99 @plazzy99 @nakul-19, I would like to contribute to the above problem in CPP. am a GSSoC'21 participant. Kindly assign this to me.

@rudrakshi99 Can I work on this ?

Hi there, I would like to work on this issue

I would like to contribute to the above problem in java as I am a participant of GSSOC'21. Kindly assign this to me.


Setup CI?

Any chance we could setup some CI for this? I've some notion to submit a PR that would allow you to build with an install of LLVM (rather than the versions we currently track), and at least that way we could run it on Travis CI / Appveyor?
Happy to submit the patches to do this, but think I'd need @dneto0 to enable CI on travis/appveyor for this repo?

Yes, would be happy to set up Travis-CI and AppVeyor.
That was on my TODO list, but it's not next for me.  I would have started with the SPIRV-Tools or Shaderc setup.

I had filed project cards, but now have converted them to issues, so they can be claimed. :-)
See #32 and #33

Looks like I can't assign issues to myself (I'm just a peon on this repo it looks like) - feel free to assign #32 and #33 to me though (I'll do as you say and take the Shaderc ones and start hacking).

So I've been looking at this on and off - TL;DR unless we could use travis-ci.com (EG. one of the paid plans) I don't think we'll be able to build this using CI. LLVM/Clang just take too darn long to compile.
The alternative is that we use an LLVM/Clang install - my worry there is we'll be testing against an entirely different version of LLVM/Clang to the one that we fetch in the repository.
Non-obvious what the path forward is.

https://travis-ci.org/sheredom/clspv/jobs/267483202 was my last attempt (and notice it timed out about 2/3 through the LLVM build).

Thanks for the update.  I'll start exploring other options.
Google Cloud Build is attractive but I think it's only for Linux builds. :-(
I suspect the build system used by https://github.com/google/gapid is a good fit.  I'll look into it.


RTL Support

First of all, I would like to thank you for your great work .
I want to render this calendar from right to left .
Any help plz ..

+1

You're talking about RTL, as in arabic RTL, or just reverse the presentation order of the domain, and keeping the subdomain order ?

yes arabic RTL


Fixing format and copyright.

mako_renderer.py needs a copyright fix

Updated, with a few others. #5315 for instance.

still one more clangfmt needed... merged anyway


Is this a copy-paste typo?

https://github.com/raspofabs/dodbooksourcecode/blob/master/KeyLookup.cpp#L120
The var h is not used in that function and looks like a copy-paste typo. In the book, there's no context for the function, so it looks more puzzling.

Oh, well spotted. Thanks.
Sent from TypeApp
On 9 Jan 2020, 6:30 am, at 6:30 am, Valentin Simonov<EMAIL_ADDRESS>wrote:

https://github.com/raspofabs/dodbooksourcecode/blob/master/KeyLookup.cpp#L120
The var h is not used in that function and looks like a copy-paste
typo. In the book, there's no context for the function, so it looks
more puzzling.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/raspofabs/dodbooksourcecode/issues/7

Those two lines can be removed. They must be there from when it did a binary chop after skipping. Thank you again.
Sent from TypeApp
On 9 Jan 2020, 8:07 am, at 8:07 am, Richard Fabian<EMAIL_ADDRESS>wrote:

Oh, well spotted. Thanks.
Sent from TypeApp
On 9 Jan 2020, 6:30 am, at 6:30 am, Valentin Simonov
<EMAIL_ADDRESS>wrote:

https://github.com/raspofabs/dodbooksourcecode/blob/master/KeyLookup.cpp#L120
The var h is not used in that function and looks like a copy-paste
typo. In the book, there's no context for the function, so it looks
more puzzling.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/raspofabs/dodbooksourcecode/issues/7


Allow generation without library files

When using multiple protocols in multiple projects there can be collisions with the generated library files:
icmp.gpr:2:09: unit "rflx_lemmas" cannot belong to several projects
icmp.gpr:2:09:   project "icmp", "/.../icmp/generated/rflx_lemmas.adb"
icmp.gpr:2:09:   project "gneiss_protocol", "/.../gneiss_protocol/generated/rflx_lemmas.adb"

So there should be an option to generate a specification without the library files.

Fixed by #274.


Missing Document of extra params in Amplify Api

Would you mind provide some documentation about what options are available in extra params of Amplify Api?
Based on the Doc of Amazon DynamoDB https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/LegacyConditionalParameters.html
The DynamoDB Api supports KeyConditionExpression and FilterExpression. We can query '>' based on sorted column. Any documentation about how those expressions can be used in Amplify Api?

Hi @espelancer currently we don't have built in support for directly querying dynamodb via the client. The recommended approach is to use API module and a lambda proxy for this right now so that you get the benefits of edge / cdn and benefit from context within lambda for extra security. That said, you could use Amplify to do this via manual configuration and query via the aws-sdk, see here, and I would recommend using the DocumentClient
Auth.currentCredentials()
  .then(credentials => {

    // setup the document client
    const db = new DynamoDB.DocumentClient({
      apiVersion: '2012-08-10',
      credentials: Auth.essentialCredentials(credentials)
    });

    // query parameters for table
    var params = {
          TableName : 'Table',
           Key: {
               HashKey: 'hashkey'
       }
    };

    // make the db query
    db.get(params, function(err, data) {
      if (err) console.log(err);
      else console.log(data);
    });

@espelancer we are closing this issue. If you still have any question about it please feel free to reopen it. Thanks!


Driver returns false in acceptsURL for URL prefixed by jdbc:redshift://

Lost a couple hours to this misleading Exception. 🤦 Though the fault was as much mine as the driver's.
Driver version

com.amazon.redshift:redshift-jdbc42:<IP_ADDRESS>
Client Operating System

MacOS
JAVA/JVM version

OpenJDK Runtime Environment Temurin-17.0.6+10
Problem description

Expected behaviour:  Driver should return true in acceptsURL for URLs with jdbc:redshift:// prefix, even if the rest of the  URL is malformed.
Actual behaviour: acceptsURL returns false when presented with a URL missing a DB name or port, or has some other malformed part.  That means the user sees a misleading Exception from java.sql about "No suitable driver found"
Error message/stack trace:

java.sql.SQLException: No suitable driver found for jdbc:redshift://mydb.asdkfjh.us-east-1.redshift.amazonaws.com:5439

Any other details that can be helpful:

The code below demonstrates how to get the "No suitable driver" error.  The URL is missing the DB name at the end, but is otherwise correct. Importantly, it includes the jdbc:redshift:// prefix which indicates the protocol.  I would expect that the prefix alone should identify a URL as belonging to the redshift driver.  That's also the assumption I see in the code for the driver's acceptsUrl
  /**
   * Returns true if the driver thinks it can open a connection to the given URL. Typically, drivers
   * will return true if they understand the subprotocol specified in the URL and false if they
   * don't. Our protocols start with jdbc:redshift:
   *...
   */

It should also be noted that I successfully executed the same code with a proper URL.  The driver is successfully recognized and I can run queries.  So this isn't an issue with the driver being absent.
Reproduction code

This code was created, following the example in the docs.  I obviously was mistaken on the URL by leaving off the DB name at the end.
Class.forName("com.amazon.redshift.jdbc42.Driver")    // This confirms the driver is loaded
Properties props = new Properties();
dbURL = "jdbc:redshift://mydb.asdfasdf.us-east-1.redshift.amazonaws.com:5439";
props.setProperty("user", username);
props.setProperty("password", password);
Connection conn = DriverManager.getConnection(dbURL, props);         // This raises "No suitable driver found"

Thanks for opening this issue @Indigenuity . We will take a look and get back to you once we have an update!

This seems compliant with the JDBC spec:
https://github.com/openjdk/jdk/blob/fd7fddb6ed24e0ae4b5e18fb27fd80230941dc0b/src/java.sql/share/classes/java/sql/Driver.java#L94-L106

Typically drivers will return {@code true} if they understand the sub-protocol specified in the URL and {@code false} if they do not.

@ash211 thank you for your contribution!
@Indigenuity , as mentioned, this functionality works as intended and is compliant with the JDBC spec.
Retrieves whether the driver thinks that it can open a connection
* to the given URL.  Typically drivers will return {@code true} if they
* understand the sub-protocol specified in the URL and {@code false} if
* they do not.

I don't quite follow how this is compliant.  According to the quote, the driver should return true if it understands the given sub-protocol.  Doesn't this driver understand the redshift sub-protocol?
The mysql drivers I've used accept jdbc:mysql:// URLs, even if upon closer inspection the URL is malformed. This postgres driver is between the two approaches, returning false for any kind of malformed URL, but it at least logs the fact that it has inspected the URL
Don't get me wrong, I don't think it's a big deal, so perhaps I shouldn't have even raised the issue. And clearly there are other big players that return false even when they understand the sub-protocol, so the current behavior isn't entirely out of the norm

Definitely understand your concerns here @Indigenuity . However if the URL is malformed driver thinks it cannot open a connection and therefore returns false. You have a good suggestion in that we should log that the url was inspected. We will add that to forthcoming driver releases. We greatly appreciate you bringing this to our attention and thank you for your contribution to the Redshift JDBC driver.


Add direction sub-command

with support for glyph contour CW / CCW direction reporting

released in v0.2.0


firebase_auth/cloud_firestore plugins: Incompatible plugins firebase_auth and cloud_firestore

Describe the bug
Android, Flutter/Firebase/cloud_firestore plugin version incompatibleresults in errors
Issue detailed in
https://github.com/flutter/website/issues/3333
To Reproduce
set the following versions in pubspec.yaml
Page URL: https://flutter.dev/docs/development/data-and-backend/firebase.html
Page source: https://github.com/flutter/website/tree/master/src/docs/development/data-and-backend/firebase.md
Found a typo? You can fix it yourself by going to the page source and clicking the pencil icon. Or finish creating this issue.
PLEASE DEFINE FOR FLUTTER APP, VERSIONS TO USE IF firebase_auth credential verification has to be executed. THANKS!
firebase_core: ^0.4.0+9
firebase_auth: ^0.8.0
cloud_firestore: ^0.7.0+1
Description of issue:
Versioning incompatible errors:
firebase_core: ^0.4.0+9
firebase_auth: ^0.8.0
cloud_firestore: ^0.7.0+1
depends on cloud_firestore ^0.7.0+1 which depends on firebase_core ^0.2.2, firebase_core ^0.2.2 is required.
So, because programApp depends on firebase_core ^0.4.0+9, version solving failed.
pub get failed (1)
Process finished with exit code 1
Tried changing to:
based on https://codelabs.developers.google.com/codelabs/flutter-firebase/#3
dependencies:
flutter:
sdk: flutter
cloud_firestore: ^0.11.0+1 # new
And observe more errors:
Because firebase_auth >=0.8.0+1 <0.10.0 depends on firebase_core ^0.3.0 and no versions of firebase_auth match >0.8.0 <=0.8.0, firebase_auth >0.8.0 <0.10.0 requires firebase_core ^0.3.0.
And because firebase_auth 0.8.0 depends on firebase_core ^0.2.5+1, firebase_auth >=0.8.0 <0.10.0 requires firebase_core ^0.2.5+1 or ^0.3.0.
So, because programApp depends on both firebase_core ^0.4.0+9 and firebase_auth ^0.8.0, version solving failed.
pub get failed (1)
Process finished with exit code 1
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.
firebase_auth: ^0.15.0+1
cloud_firestore: ^0.12.9+5
removed firebase_core
observe following errors
Launching lib/main.dart on Redmi Note 6 Pro in debug mode...
Initializing gradle...
Resolving dependencies...
Running Gradle task 'assembleDebug'...
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)

FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':app:preDebugBuild'.
Android dependency 'android.arch.lifecycle:runtime' has different version for the compile (1.1.0) and runtime (1.1.1) classpath. You should manually set the same version via DependencyResolution

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 15s
Finished with error: Gradle task assembleDebug failed with exit code 1

If the version number changed to:
firebase_auth: 0.11.1+12
observe code errors of the plugin
final PhoneVerificationCompleted verificationCompleted =
(AuthCredential phoneAuthCredential) async {

  AuthResult authResult = await _auth.signInWithCredential(phoneAuthCredential);

Tried the following changes: build.gradle as specified in
https://firebase.google.com/docs/flutter/setup?platform=android

dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
//classpath 'com.google.gms:google-services:3.2.1'
classpath 'com.google.gms:google-services:4.3.3'
//classpath 'com.google.gms:google-services:4.3.0'
}

What went wrong:
Execution failed for task ':app:preDebugBuild'.

Android dependency 'android.arch.lifecycle:runtime' has different version for the compile (1.1.0) and runtime (1.1.1) classpath. You should manually set the same version via DependencyResolution

It will be helpful if using firebase_auth plugin, the dependencies related to cloud_firestore and phoneVerification are detailed
Thank you!

issue detailed here https://github.com/FirebaseExtended/flutterfire/issues/1103

Hey, as part of our on-going work for #2582, this has been resolved in our Firebase Firestore rework (#2913) - which has now been merged into master. We'll look at publishing some prereleases in the next few days. Thank you


FAM-API - Add Application / Client

In order to be able to get to select an application (Post MVP), an application type needs to exist in the FAM api.
Two options to add the a application / client:

Define end point
Define a migration fixture

Relates to:
https://github.com/bcgov/nr-forests-access-management/issues/20
AC:
-tests included

Close it for now, need to discuss the process when adding a new application


Routines table had some incorrect escaping and hard-coded HTML

Some routine names, eg <?>, were not HTML escaped
The routines dataset was no generic enough
Dataset created in secondaries and used in tablemanager
Refactored secondaries and tablemanager plugins.

@dontlaugh The changes here are to make the data from the routines page available for an sqlite database.
But these changes include needed updates for main.
Compare new raku routines with the production routines tab. You will see that the first two entries in the docs.raku.org tab have blanks in top two slots. This is due to an escape error.
A PR to create sqlite text is next

Looks good. I will deploy to prod this weekend

This should be deployed now to prod.


Frame timing API should not do anything in release mode

Especially https://github.com/flutter/engine/blob/14521782d9624c3a99389e4ce3af92af2a3aff10/shell/common/shell.cc#L1139-L1149, which is grabbing a mutex unconditionally on every frame.
/cc @iskakaushik

Lowering the priority on this - a quick test in profile mode on a Moto G4 is showing this typically takes in the few microsecond range.

We have customers running benchmarks in release mode and this is the only way to get frame timings in that case. We also may need aspects of this API to correctly report timings to the OS for patches like https://github.com/flutter/engine/pull/29727
Closing this.


Conditionally disabling the Twig Cache Extension

If I wanted to completely disable the partial cache method (Twig Cache Extension) – say, in a local environment's config file – what would be the best/easiest way to accomplish this?
In staging/production I have the deploy script call a method to clear the cache for me – but locally it gets really old manually clearing the cache whenever I tweak the markup :)

I just had the same question and if someone is interested here is my solution (here I just use the constant "WP_DEBUG" defined in wp-config.php):
if ( WP_DEBUG ) {
add_filter( 'timber/cache/mode', function ( $title ) {
return 'none';
} );
}

Nice one, @nexxome! Thanks.


Do not rely on file extension to figure its content type

What would you like to be added:
Do not rely on file extension to figure its content type.
Why is this needed / describe a real-world scenario:

For example in Hugo files may have extension html, because commonly IDEs are relying on this to match editors for content, but it's still treated like MD if it starts with frontmatter.
Markdown can come from any API, not only GitHub, and the resource path may not necessarily include file extension.

How to categorize this?:
/kind enhancement
/priority normal

This will not be implemented for now
/close


Update command: m365 login, remove the need to pass in --thumbPrint

Usage
m365 login [options]
Description
Allow to login, but remove the need to pass in the thumbprint parameter when using certificate based authentication
Options
Would leverage the existing set of options and remove:

Option
Description

-thumbprint [thumbprint]
Certificate thumbprint. Required when authType is set to certificate

Additional Information
I believe we should be able to determine the thumbprint from the passed in certificate. This would remove the need to pass it in, simplifying the usage experience in situations when the thumbprint is not readily available (like when fetching the certificate from an Azure Key Vault).

If it's possible to derive the thumbprint from the cert, we should definitely do it to simplify things. Let's look into this and implement if possible.

I have a POC for this running, so I can confirm it is possible.

Awesome, thank you @YannickRe it's all yours 👍🏻

Hero! 👏

The code for calculating the thumbprint is simple (the effort that went into it is inversely proportional tho 😅), but I lost code coverage and cannot for the life of me figure it out. I submitted the PR, if someone has insights I'd really appreciate it.


[Misc]: vllm ONLY allocate KVCache on the first device in CUDA_VISIBLE_DEVICES

KVCache usage
it seems like the KVCache is only allocated on the first device in CUDA_VISIBLE_DEVICES, even if using tensor-parallel-size > 1. Is there any plan to support full KVCache allocated in all devices?
cache_engine.py
        # Initialize the cache. # line 56
        self.gpu_cache = self._allocate_kv_cache(self.num_gpu_blocks, "cuda")

same issue, marked.

Can you share your launch command so I can look?
There are N Workers which have N CacheEngines...

sry for the late response.
Here is the vllm version used:

For example, we want to deploy a certian LLM deepseek-coder-6.7b-instruct on 2T4 card, which have 32GB memory total(216GB)
CUDA_VISIBLE_DEVICES=0,1 python -m vllm.entrypoints.api_server --model="/cm/deepseek-coder-6.7b-instruct/" --tensor-parallel-size=2 --trust-remote-code --dtype="float16"

vllm  returns error log
INFO 06-12 08:12:23 distributed_gpu_executor.py:45] # GPU blocks: 507, # CPU blocks: 1024
ERROR 06-12 08:12:23 worker_base.py:145] Error executing method initialize_cache. This might cause deadlock in distributed execution.
ERROR 06-12 08:12:23 worker_base.py:145] Traceback (most recent call last):
ERROR 06-12 08:12:23 worker_base.py:145]   File "/root/miniconda3/envs/vllm026/lib/python3.11/site-packages/vllm/worker/worker_base.py", line 137, in execute_method
ERROR 06-12 08:12:23 worker_base.py:145]     return executor(*args, **kwargs)
ERROR 06-12 08:12:23 worker_base.py:145]            ^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR 06-12 08:12:23 worker_base.py:145]   File "/root/miniconda3/envs/vllm026/lib/python3.11/site-packages/vllm/worker/worker.py", line 172, in initialize_cache
ERROR 06-12 08:12:23 worker_base.py:145]     raise_if_cache_size_invalid(num_gpu_blocks,
ERROR 06-12 08:12:23 worker_base.py:145]   File "/root/miniconda3/envs/vllm026/lib/python3.11/site-packages/vllm/worker/worker.py", line 340, in raise_if_cache_size_invalid
ERROR 06-12 08:12:23 worker_base.py:145]     raise ValueError(
ERROR 06-12 08:12:23 worker_base.py:145] ValueError: The model's max seq len (65536) is larger than the maximum number of tokens that can be stored in KV cache (8112). Try increasing `gpu_memory_utilization` or decreasing `max_model_len` when initializing the engine.

It means that, KVCache for 2*T4 Card, there are only 8112 context length for LLM.
But, if we deploy the model on 1*V100 (32GB) card:
 CUDA_VISIBLE_DEVICES=0 python -m vllm.entrypoints.api_server --model="/cm/deepseek-coder-6.7b-instruct/" --tensor-parallel-size=1 --trust-remote-code --dtype="float16"

INFO 06-04 09:52:20 model_runner.py:175] Loading model weights took 12.5708 GB
INFO 06-04 09:52:32 gpu_executor.py:114] # GPU blocks: 1406, # CPU blocks: 512
[rank0]: Traceback (most recent call last):
[rank0]:   File "<frozen runpy>", line 198, in _run_module_as_main
[rank0]:   File "<frozen runpy>", line 88, in _run_code
[rank0]:   File "/root/miniconda3/envs/vllm026/lib/python3.11/site-packages/vllm/entrypoints/api_server.py", line 107, in <module>
[rank0]:     engine = AsyncLLMEngine.from_engine_args(
[rank0]:              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[rank0]:   File "/root/miniconda3/envs/vllm026/lib/python3.11/site-packages/vllm/engine/async_llm_engine.py", line 366, in from_engine_args
[rank0]:     engine = cls(
[rank0]:              ^^^^
[rank0]:   File "/root/miniconda3/envs/vllm026/lib/python3.11/site-packages/vllm/engine/async_llm_engine.py", line 324, in __init__
[rank0]:     self.engine = self._init_engine(*args, **kwargs)
[rank0]:                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[rank0]:   File "/root/miniconda3/envs/vllm026/lib/python3.11/site-packages/vllm/engine/async_llm_engine.py", line 442, in _init_engine
[rank0]:     return engine_class(*args, **kwargs)
[rank0]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[rank0]:   File "/root/miniconda3/envs/vllm026/lib/python3.11/site-packages/vllm/engine/llm_engine.py", line 172, in __init__
[rank0]:     self._initialize_kv_caches()
[rank0]:   File "/root/miniconda3/envs/vllm026/lib/python3.11/site-packages/vllm/engine/llm_engine.py", line 262, in _initialize_kv_caches
[rank0]:     self.model_executor.initialize_cache(num_gpu_blocks, num_cpu_blocks)
[rank0]:   File "/root/miniconda3/envs/vllm026/lib/python3.11/site-packages/vllm/executor/gpu_executor.py", line 117, in initialize_cache
[rank0]:     self.driver_worker.initialize_cache(num_gpu_blocks, num_cpu_blocks)
[rank0]:   File "/root/miniconda3/envs/vllm026/lib/python3.11/site-packages/vllm/worker/worker.py", line 172, in initialize_cache
[rank0]:     raise_if_cache_size_invalid(num_gpu_blocks,
[rank0]:   File "/root/miniconda3/envs/vllm026/lib/python3.11/site-packages/vllm/worker/worker.py", line 340, in raise_if_cache_size_invalid
[rank0]:     raise ValueError(
[rank0]: ValueError: The model's max seq len (65536) is larger than the maximum number of tokens that can be stored in KV cache (22496). Try increasing `gpu_memory_utilization` or decreasing `max_model_len` when initializing the engine.

the avalible KVCache sizes are very different between 2T4 and 1V100, although they both have 32GB memory


Support ToastProgressUpdate and add unittests to validate the functionality

Support ToastProgressUpdate and add unittests to validate the functionality

Will be raising a PR against WNP_ToastNotifications_L1 branch for the same.


[portaudio] Enable debug output

This is enabled by default in the original MSVC project in the PortAudio distribution, but not in their CMake build. This commit fixes the regression.
I don't think there are any performance concerns with this, as PortAudio (AFAICT) does not log from performance-critical code.
Note that this change might still be somewhat controversial, because PortAudio will by default dump its debug output directly to stderr, which is not particularly nice. However, the alternative is not having any way for end users to troubleshoot PortAudio issues at all, which IMHO is worse. Applications can always call PaUtil_SetDebugPrintFunction() to redirect the output away from stderr, and I encourage them to do so.

Thanks for the PR!
I notice that this enables the debug output in release and debug -- was it enabled in release mode in the MSVC project?

Yes, it was enabled in both modes in the original MSVC project. I think it makes sense to have it in Release mode, because the performance implications are negligible and in my experience it provides very useful output for troubleshooting on end user machines.

Thanks!

Not sure I agree with this. That function PaUtil_SetDebugPrintFunction() can't be called via the headers installed by VCPKG so you're stuck with debug logging even in release builds. At least reduce it to only debug builds. This is not the kind of thing that should be enabled by default imo.


Is it possible to listen on NFC availability?

Hi, thanks for your work!
I would ask you if it could be possible to listen on NFC status changes (ON - OFF). I didn't find any reference to this in the code but I could be wrong.. Is it something that you already implemented? If not, it could be possible to do so?
I would like to show different screens based on the current NFC status and I don't think it's a good idea calling every 'n' seconds isAvailable() method.
Thanks in advance!
Max

I want do same thing. Could you?

Currently not supported.
But we could implement a dart stream receives the ACTION_ADAPTER_STATE_CHANGED. (Android only)

Is there a roadmap planned for this feature ?


Prevent logged in users from visiting /signin or /signup

Should redirect to home or something like that.

I wrote a function invertedRestrict that was similar to the function restrict in lib/utils that would redirect to home if the user was logged in.
Then I called it inside app.get('/signin', invertedRestrict, require('lib/layout') on line 11 of lib/signin/index.js. However, it seems that, according to the log in terminal, the token is deciphered after that line is run, so that the line always thinks that no one has logged in. I tried calling the function in a few other places including lib/boot/index.js's route to signin, but that prevented a user from actually signing in instead of taking them to the signing page.
Is this the right approach? What code/documentation should I be looking at to understand why the page is rendered before the token is deciphered?

Hi @ben-pr-p, thanks for the help!
That's because you're trying to do the redirect on the backend side, and we are handling the routes on frontend (in this case, at /lib/signin/signin.js). You should add a middleware on that route.
For example, we are using citizen.required here: https://github.com/DemocracyOS/app/blob/a7b3e7702393f610ba569b4ab0e8c179249051cc/lib/signup/signup.js#L50
You should add something like citizen.restricted and add it to signin.js.


Channel viewing when idle

Would it be possible to be able to add channels to watch if there are no drops to get? It could go automatically go back to watching drops when one is available and vice versa. Once again, I'm not a coding genius so I'm sorry if that's asking for too much.

This is a duplicate of #128 and #70. The current stance remains the same - right now, there's no point to watch any channels if said watching does not result in progressing a drop.


@popperjs/core is no longer maintained, should be floating-ui

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Steps to reproduce 🕹
Popperjs is now Floating-UI, and there are resolved bugs in Floating-UI in the past few months (when Popperjs didn't receive updates).

@popperjs/core leads to floating-ui
@popperjs/core doesn't receive any more updates
whereas floating-ui reports bugfixes

Current behavior 😯
@mui/base depends on @popperjs/core
Expected behavior 🤔
@mui/base should depend on, probably, @floating-ui/react-dom
Your environment 🌎
@mui/base 5.0.0-alpha.112 (currently latest)

Oups, sorry, missed already reported issue https://github.com/mui/material-ui/issues/32587


Increase fuzzines of search results

When using the "Search Expenses" capabilities, some results do not match because of special characters.
Example if the transaction contains an accent é and you input e in the search box, the transaction will not appear.

Seems like the filtering implementation is here.
I will clone the project and contribute with this improvement.

Proposal change is here


Traffic Server: Cluster support

We're running API Umbrella in a multi server setup and we'd like to make us of API Umbrella's caching feature. Due to the multi server setup, requests are only cached if they are routed to the same router instance by the load balancer.
I've read that Apache Traffic Server supports Clustering. (https://docs.trafficserver.apache.org/en/5.3.x/admin/cluster-howto.en.html)
I couldn't find anything around that in the documentation. Is there any way to use this specific feature at the moment?

Sorry for the very belated response. Traffic Server's clustering isn't something I've personally tried running in API Umbrella, but theoretically it should be possible. We allow setting arbitrary Traffic Server records config via the trafficserver.embedded_server_config.records configuration setting in api-umbrella.yml. So you might be able to do something like:
trafficserver:
  embedded_server_config:
    records:
      - "CONFIG proxy.config.proxy_name STRING MyCluster"
      - "CONFIG proxy.local.cluster.type INT 1"

That being said, it's worth noting that I think clustered mode has gone away in newer versions of TrafficServer (or is going away in 8.0), so you might want to look into slightly different alternatives. We're hoping to upgrade the bundled version of TrafficServer sometime soon, so this type of direct configuration for clustering may not work once we upgrade. I'm not exactly sure whether clustering got removed from 7.0 or not, but here's some threads about it<EMAIL_ADDRESS>https://issues.apache.org/jira/browse/TS-4026 So you may want to look into parent caching instead (which I think you could still configure manually through similar means), which is sort of like clustering, but a bit different in implementation: https://docs.trafficserver.apache.org/en/latest/admin-guide/configuration/hierachical-caching.en.html
If you get this working, it would be interesting to know about and document the steps for. Or if you run into any issues or things you can't configure properly in the bundled version of API Umbrella, I'd be interested in trying to fix those.


redis client is not as fast as it claims to be.

I have made some tests and figured out that curretly on my machine client can made  3000 operations per second (SET or GET for example). One issue I found is response parser, were it does much of unecessary copying.
I made my own parser and client (just for curiosity - i am just learning dart) and was able to get 50k operations per second.
It is just proof of concept and lot of optimisations remains open. I can merge it in redis_client but I wonder whatever it is accepted to have such code change and what you think about it.
https://github.com/ra1u/redis_parser
Edit -
I fixed tested claims

I  have also made some improvements and current master is now as fast as https://github.com/ra1u/redis-dart. Thanks also  to patefacio there is performance improvement from 3000 operations per second to 100000 operations per second. I think this issue can be closed now.

@ra1u Great just published the latest version with your latest changes on Pub: https://pub.dartlang.org/packages/redis_client
Thanks for the PR's!


Remove 11.4 tests

This removal was discussed on Slack, but would probably like approval from at least both @ajschmidt8 and @raydouglass before proceeding in case there is some other reason we need this job.

See also https://github.com/rapidsai/docs/pull/436#issuecomment-1749660780
We're planning to deprecate CUDA 11.2.

Just to make sure we're on the same page - what will our new lower bound be (minimum support CUDA version) when we drop CUDA 11.2?


I'm afraid that Roslyn does not support Visual Basic scripting (see dotnet/roslyn#13523) so not much can be done about it before.


Accordion slams when the module with the Accordion opening

Description
When opening a module with an accordion, the accordion is opened for a few milliseconds, then it closes. Inside the accordion, there is a lot of empty space.  This is repeated when choosing DO for Volume Creation and when opening a modal with some error.
Steps to reproduce

Login by user
Go to Storage
Click Create volume
Click Select DO

Actual result
Accordion is opened for a few milliseconds
Expected result
For opening the modal the accordion is closed
Environment

Browser:
- [x] Chrome version XX
- [x] Firefox version XX
- [x] Safari version XX
- [x] Opera version XX
- [x] IE version XX
- [x] Edge version XX

Connected requirement IDs
REQ_STORAGE_LIST_012
Screenshots

TO TEST:
REQ_STORAGE_LIST_012

I hide content on loading accordion, but it can't be fully fixed because of https://github.com/angular/material2/issues/13870


Fix code scanning alert - Flask app is run in debug mode

Tracking issue for:

[ ] https://github.com/pshongwe/Orda_v1.0/security/code-scanning/1

Fixed issue


Pip package (Python 3.8) is missing codecs/init.py file

Hello, I installed this module from pip using this command:
$ pip3.8 install --user dahuffman

I get the following error:
   from dahuffman import HuffmanCodec
  File "/home/sevagh/.local/lib/python3.8/site-packages/dahuffman/__init__.py", line 5, in <module>
    from dahuffman.codecs import (
ImportError: cannot import name 'load_shakespeare' from 'dahuffman.codecs' (unknown location)

I think it's missing in the package:
sevagh:warped-linear-prediction $ tree ~/.local/lib/python3.8/site-packages/dahuffman/
/home/sevagh/.local/lib/python3.8/site-packages/dahuffman/
├── codecs
│   ├── json-compact.pickle
│   ├── json.pickle
│   ├── shakespeare-lower.pickle
│   ├── shakespeare.pickle
│   ├── shakespeare-raw.pickle
│   └── xml.pickle
├── huffmancodec.py
└── __init__.py

Finally, if I install the wheel directly from github it works:
$ cat requirements.txt
-e git://github.com/soxofaan/dahuffman.git#egg=dahuffman

thanks, good catch
I will have a look later today, fix should be fairly simple.
(Note to self: start using tox)

still to do: make new release on pypi

version 0.4.1 should be available now on PyPI for pip install

Verified and 0.4.1 is good, thanks.

thanks for reporting and verifying


prepDE.py error: sample file not generated by -e option

I assembled the transcripts using stringtie and re-generated the quantification file using the merged gtf file.

cat ../accessionlist | while read id; do echo "stringtie ../${alignment_dir}/${id}.sorted.bam -p 24 -Be -G stringtie_merged.gtf -o ${id}/${id}.stringtie_merged.gtf -A ${id}.gene_abund_merged.tab"; done |sh

But when I was preparing the count matrix using prepDE.py, an error occurred named

prepDE.py -i sample_list.txt  -g gene_count_matrix.csv  -t transcript_count_matrix.csv

Error: sample file ./HL-PBS-1/HL-PBS-1.stringtie_merged.gtf was not generated with -e option!
while it was indeed generated from the -e option, how did this error occur?
Thank you!

me to.Have you solved it yet?

me to.have anyone solved this problem,I used -e before but I still reported this error when using prepDE.py later on.thanks


Issue in the website

Describe the bug
In the create react app website the copyright year is wrong
Did you try recovering your dependencies?

Not relevant
Which terms did you search for in User Guide?

Not relevant
Environment

Environment Info:
current version of create-react-app: 4.0.1
running from C:\Users\aadit\AppData\Roaming\npm-cache_npx\6152\node_modules\create-react-app
System:
OS: Windows 10 10.0.19042
CPU: (6) x64 AMD Ryzen 5 3500 6-Core Processor
Binaries:
Node: 14.15.4 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
npm: 6.14.10 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: 87.0.4280.141
Edge: Spartan (44.19041.423.0), Chromium (87.0.664.75)
Internet Explorer: 11.0.19041.1
npmPackages:
react: Not Found
react-dom: Not Found
react-scripts: Not Found
npmGlobalPackages:
create-react-app: Not Found
Steps to reproduce

Visit the website https://create-react-app.dev/
Scroll Down to the very bottom of the page

Expected behaviour

The copyright notice should show Copyright © 2021 Facebook, Inc.
Actual behavior

It is showing Copyright © 2020 Facebook, Inc.
Reproducible demo

Hello, I'm happy to help with that, can you assing that issue to me ?

Hello, I'm happy to help with that, can you assing that issue to me ?

Hello, I'm happy to help with that, can you assing that issue to me ?

Sorry I can't understand what you mean

Hello, I'm happy to help with that, can you assing that issue to me ?

Sorry I can't understand what you mean

Hello, I'm happy to help with that, can you assing that issue to me ?
@ealvarez968 If you are going to solve this then you can make a PR according to the code of conduct

Hello, I'm happy to help with that, can you assing that issue to me ?
@ealvarez968 If you are going to solve this then you can make a PR according to the code of conduct

Hello, I'm happy to help with that, can you assing that issue to me ?

@ealvarez968 If you are going to solve this then you can make a PR according to the code of conduct

Oh, ok, thanks

Hello, I'm happy to help with that, can you assing that issue to me ?

@ealvarez968 If you are going to solve this then you can make a PR according to the code of conduct

Oh, ok, thanks


Share Pre-trained weight with Google Drive

Thanks for sharing your great works.
I tried to download your ImageNet pretrained weight file with baidu. But I failed to it.
Could you share pre-trained weight with Google drive?

@yjh0410
Finally, I downloaded the pretrained weight file with Baidu. If you are okay, I can upload this to my Google Drive and  share the link on this repository.

Oh, thanks a lot!
If you don't mind to upload it to your Googld Drive, just do it. I'll appreciate it！
I tried the whole day but failed to upload ...
------------------ 原始邮件 ------------------
发件人: "Yonghye<EMAIL_ADDRESS>发送时间: 2020年3月13日(星期五) 下午3:51
收件人<EMAIL_ADDRESS>抄送: "ら ．Secret"<1394571815<EMAIL_ADDRESS>主题: Re: [yjh0410/pytorch-yolo-v2] Share Pre-trained weight with Google Drive (#2)
@yjh0410
Finally, I downloaded the pretrained weight file with Baidu. If you are okay, I can upload this to my Google Drive and  share the link on this repository.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.


SwiftLanguageServer: correct path detection on Windows

Correct the polarity of the check.  The path being a UNC path or having a drive letter indicates that it is a path, as opposed to the inverted representation that was accidentally committed.

@swift-ci please test


[QUERY] Azure Cosmos Db Distinct values across all pages

Issue Transfer
This issue has been transferred from the Azure SDK for .NET repository, #33341.
Please be aware that @ssghoda is the author of the original issue and include them for any questions or replies.
Details
Library name and version
Microsoft.Azure.Cosmos 3.30.0
Query/Question
Is there a way to get distinct values for a field/subdocument in a partition across all pages? I have been using DISTINCT keyword in our queries but since the documents volume is high in our Cosmos Db Container, we get same values more than once. Any help/pointers would be very helpful.
Environment
No response

@ssghoda Could you provide examples or some form of repro that can help understand the scenario?

@ealsur So think of a Cosmos Db Container of all US Hotels with partition key of State. Each document has a field for City. Now we want to get distinct cities across a partition. Now if the document volume is huge then even after doing a DISTINCT, you would get same city more than once.
Currently, I am getting all distinct cities from query and then again doing DISTINCT using LINQ in my code so that no same city appears more than once. But I was wondering if this whole thing can be done in Cosmos Db how we do it in T-SQL.

Now if the document volume is huge then even after doing a DISTINCT, you would get same city more than once.

Did you experience this? Having a DISTINCT query return duplicate results? Or is this a hypothetical scenario? If you did experience this, please share the code snippets or some example of what is the query you are using.
If it's hypothetical, maybe @jcocchi / @neildsh could chip in to help answer the conceptual question.

I hope I am not the first person to come across this. I have seen this for a long time. But like I said, I have been getting results from Cosmos Db and then doing another Distinct using LINQ in-memory. I just thought to ask this time if there was a way to do this.

@ssghoda Thanks for this valuable details. When you run the query on the .NET SDK, do you get the same behavior?

Maybe then it is the issue on Azure Portal / Azure Storage Explorer.

Definitively looks like it.

So if someone has to create an Azure Search Index using this query, which SDK would it use to generate documents in Azure Search?

Are you asking about the Azure Search Indexer? (https://learn.microsoft.com/en-us/azure/search/search-howto-index-cosmosdb)
If yes, they use the .NET SDK as far as I know.

Definitively looks like it.

Is there any way to inform team for Azure Portal / Azure Storage Explorer to make changes in their side to reflect .NET SDK version so that even in there, we get proper results?

Are you asking about the Azure Search Indexer? (https://learn.microsoft.com/en-us/azure/search/search-howto-index-cosmosdb)
If yes, they use the .NET SDK as far as I know.

Yes, awesome. Thanks a lot for your help in confirmation.

Is there any way to inform team for Azure Portal / Azure Storage Explorer to make changes in their side to reflect .NET SDK version so that even in there, we get proper results?

NodeJS SDK is maintained on https://github.com/Azure/azure-sdk-for-js/issues, I'd recommend reporting it there.
I will close this issue now as the problem is not present in this SDK.


错误: 找不到或无法加载主类 org.xbib.tools.Runner

i download version=<IP_ADDRESS> then go to path bin create my.bat content is

`@echo off
set DIR=%~dp0
set LIB=%DIR%..\lib*
set BIN=%DIR%..\bin
REM ???
echo {^
"type" : "jdbc",^
"jdbc" : {^
"url" : "jdbc:mysql://<IP_ADDRESS>:3306/gg?useSSL=true&useUnicode=true&characterEncoding=utf-8",^
"user" : "root",^
"password" : "asdf1234.",^
"sql" :  "SELECT * FROM hotel",^
"treat_binary_as_string" : true,^
"elasticsearch" : {^
"cluster" : "elasticsearch",^
"host" : "localhost",^
"port" : 9300^
},^
"bulk_size" : "100",^
"index": "gg",^
"type": "hotel"^
}^
}^ | "%JAVA_HOME%\bin\java" -cp "%LIB%" -Dlog4j.configurationFile="%BIN%\log4j2.xml" "org.xbib.tools.Runner" "org.xbib.tools.JDBCImporter"
`
cmd prompt : 错误: 找不到或无法加载主类 org.xbib.tools.Runner
not find org.xbib.tools.Runner
i need you help~~~

Sorry, I am not familiar with Windows.

eh~~~~ok ok,i want sure e thing ..

path lib is on this zip ? or on path lib is elasticsearch file  ?
*I try to version 2.3.1 of the lib folder into the next version 2.3.3 can be executed successfully, but my database table 20 million rows, I suggest
java.lang.OutOfMemoryError:Java heap space
but now im try set path is absolute path ...
good luck~~~~

eh~~~

** if you on the github releases download .zip is not lib folder,so do you want to
http://xbib.org/repository/org/xbib/elasticsearch/importer/elasticsearch-jdbc/<IP_ADDRESS>/
download version-dist.zip  the zip have lib folder
**


tflite custom Bazel build for wasm target

I am using tflite in  c++ cross platform library. I plan to build  them with emscripten for wasm. I wish to use the shared libraries (emscripten).  I am new to bazel but i didnt find any custom build for emscripten target in  the repository.
I can see that xnnpack helps us with building  optimized kernels for  all targets(including wasm).
Media pipe also claims to use wasm and it supports both tensorflow and tflite but i dont find any emscripten build in their repository as well.
I need flatbuffer &  inference portion of tflite in wasm

@dsmilkov
I was  going through your old  old ported repo on https://github.com/dsmilkov/tflite-wasm.
I was curious to know if its possible to use emscripten with bazel for current tflite/tensorflow c++ source code to a emscripten static library(.a).

@dsmilkov
I was  going through your old  old ported repo on https://github.com/dsmilkov/tflite-wasm.
I was curious to know if its possible to use emscripten with bazel for current tflite/tensorflow c++ source code to a emscripten static library(.a).

@jdduke might have some idea on this. Could you take a look?

@jdduke might have some idea on this. Could you take a look?

The CmakeLists  for tflite doesn't  support emscripten. I am building the tflite with emscripten. I am able to build all the static needed libraries of libtensorflowlite. I need a delegate to launch the interpreter. But emscripten build also have source code dependencies on xnnpack_delegates.h/cc .
So can you please guide me on how to build xnnpack and xnnpack_delegate.cc so that i could register the xnnpack as delegate using low level delegate api(or any other means) listed in https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/delegates/xnnpack

The CmakeLists  for tflite doesn't  support emscripten. I am building the tflite with emscripten. I am able to build all the static needed libraries of libtensorflowlite. I need a delegate to launch the interpreter. But emscripten build also have source code dependencies on xnnpack_delegates.h/cc .
So can you please guide me on how to build xnnpack and xnnpack_delegate.cc so that i could register the xnnpack as delegate using low level delegate api(or any other means) listed in https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/delegates/xnnpack

@annxingyuan may be able to offer some guidance.

@annxingyuan may be able to offer some guidance.

I m forcing the xnnpack_delegate.cc  commenting on find_package(xnnpack)
its failing on "fp16.h' file not found"I see that this is half float library. Is this supported  like numpy(not at cpu/compiler level)
If I am able to build xnnpack_delegate.o then I can use emcc to link it  with libxnnpack.a(from bazel) ??

I m forcing the xnnpack_delegate.cc  commenting on find_package(xnnpack)
its failing on "fp16.h' file not found"I see that this is half float library. Is this supported  like numpy(not at cpu/compiler level)
If I am able to build xnnpack_delegate.o then I can use emcc to link it  with libxnnpack.a(from bazel) ??

Is there any news on building tensorflow lite with xnnpack for webassembly?

I think @Maratyszcza could shed more light on this. Thx!

AFAIK, the recent Emscripten SDK releases feature Bazel support, and everything should build out of the box. Look at the scripts in https://github.com/tensorflow/tfjs/tree/master/tfjs-tflite for examples.

@Maratyszcza If I understand correctly, those scripts only download pre-built wasm binaries of TFlite from Google cloud. Can you please point me to actual build configs from which those modules are built? It doesn't look like they are part of this repo.

Hello @dhirajnitk ! Could you please tell me if you succeed building TFLite for WASM? I am struggling with the same issue, and I also do not understand how to fetch TFLite libraries from tensorflow.js either.

i try this works in nodejs runtime
https://github.com/seanchas116/node-tflite

Hi,
Thank you for opening this issue. Since this issue has been open for a long time, the code/debug information for this issue may not be relevant with the current state of the code base.
The TFLite team is constantly improving the framework by fixing bugs and adding new features. We suggest you try the latest TensorFlow version with the latest compatible hardware configuration which could potentially resolve the issue. If you are still facing the issue, please create a new GitHub issue with your latest findings, with all the debugging information which could help us investigate.
Please follow the release notes to stay up to date with the latest developments which are happening in the TFLite space.


A Sprint function for services that use json logging

Hello,
In the services that we run we utilise json logging for all of our error logs, I had a peruse and it seems that the current print functions either require a writer or go straight to os.Stderr.
I think it would be very helpful for us, as well as for other users of this package, if there was a function that performs the same as fprint but returns a string for use.
I've created a proof of concept here: https://github.com/jimah/errors/blob/master/errors.go#L253
For example output please see the tests.
Thank you for your time!

Can you use
var b bytes.Buffer
errors.Fprint(&b, err)

?

Similarly I'd like to be able to pass the print output to golang/glog in a single line of code like:
glog.Error(err.Sprint())
IMHO using multiple lines could mean a lot of boiler plate for something frequent like a log statement.

If you want a different presentation I recommend copying the body of Fprint
and altering to your specification, there is nothing in that function that
requires knowledge of the types in the errors package.
On Sat, 7 May 2016, 17:34 jd3nn1s<EMAIL_ADDRESS>wrote:

Similarly I'd like to be able to pass the print output to golang/glog in a
single line of code like:
glog.Error(err.Sprint())
IMHO using multiple lines could mean a lot of boiler plate for something
frequent like a log statement.
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/pkg/errors/issues/20#issuecomment-217613709

Hi guys,
var b bytes.Buffer errors.Fprint(&b, err)
Unless I'm mistaken this would involve processing the string after the fact to ensure that it is single line for JSON logging which is unideal for performance considering how many logs can be churned out.
Copying the body of Fprint and altering is essentially what this function is, however I believe this is not an edge case and is common enough to warrant being in the main package. If you disagree can we discuss the following alternatives?

A function that returns the errors as a string array
An additional parameter passed to fprint to specify the separator rather than \n

Thank you

@jimah

Unless I'm mistaken this would involve processing the string after the fact to ensure that it is single line for JSON logging which is unideal for performance considering how many logs can be churned out.

If logging errors is such a bottleneck in your application, you may have other problems.

Copying the body of Fprint and altering is essentially what this function is, however I believe this is not an edge case and is common enough to warrant being in the main package. If you disagree can we discuss the following alternatives?

I agree, but this package will only support one string format. If you'd like to propose a single line format for this extended output, I'm happy to discuss changing it, but it will not be configurable.

I should clarify that I meant multiple lines of code.
I don't have a problem with multi-line log statements in my use-case, if there are more than a few levels of wrapped errors it could be pretty unreadable on a single line.
If the error message is used in JSON it should be encoded/escaped anyway in case something logs a quote.

I'm sorry, I'm no very confused. Could you please explain to me what would
be a good resolution to this issue for you. Thanks.
On Sun, 8 May 2016, 09:30 jd3nn1s<EMAIL_ADDRESS>wrote:

I should clarify that I meant multiple lines of code.
I don't have a problem with multi-line log statements in my use-case, if
there are more than a few levels of wrapped errors it could be pretty
unreadable on a single line.
If the error message is used in JSON it should be encoded/escaped anyway
in case something logs a quote.
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/pkg/errors/issues/20#issuecomment-217676710

A function that returns a string containing what .Fprint() writes to w.

A function that returns a string containing what .Fprint() writes to w.

func printErrors(err error) string {
    var b bytes.Buffer
    errors.Fprint(&b, err)
    var s string
    // Format it however you'd like
    // ...
    return s
}

Would this wrapper not achieve what you are asking for? Right now there are already multiple conflicting requests—one to simply write out a string, and another to concatenate it with custom separators. All of this seems to be better suited to a simple helper function in your own application since it doesn't need to access any private types.

I'm suggesting something simpler:
func Sprint(err error) string {
    var b bytes.Buffer
    errors.Fprint(&b, err)
    return b.String()
}

Sure, it could be implemented outside as a helper function. IMHO it is useful enough to be part of the library the same way Print() is. It doesn't introduce any new string format either, it reuses the one established by Fprint().

You are suggesting that, but @jimah is not—hence the issue (there's not even consensus, which is an indicator that this is better left outside of this package).

I think that's a false dichotomy. The question of changing the format is separate from making the existing format available as a string. @davecheney has also said that the package will only support one string format, so I'm not sure even that is in contention.

@jd3nn1s I'm sorry but I won't be adding the function you described in https://github.com/pkg/errors/issues/20#issuecomment-217751374, it's not unique or important enough to add to this package. Fprintf is more general and can be used to implement the three line helper you suggested.
Thank you for your understanding.

@jimah I'm concerned this issue is going around in circles. Could you please reply to https://github.com/pkg/errors/issues/20#issuecomment-217629390 with your thoughts. Thanks

@davecheney Hi Dave,
I believe the string representation should be separated by > symbols to indicate the failure path of the code. I agree that a helper function which only returns the string representation of the current format should stay outside of the package.

As a note, the one line suggestion could also be created as a helper function outside of the package in a fairly straightforward way as follows:
	var b bytes.Buffer 	Fprint(&b, err) 	exploded := strings.Split(b.String(), "\n") 	exploded = exploded[:len(exploded)-1] 	return strings.Join(exploded, " > ")
Including this within the package would encourage a standardised one line format.

@jimah why don't we just change the output from errrors.New().Error() and friends to include location information, ie
 readfile.go:27: could not read config: readfile.go:14: open failed: open /Users/dfc/.settings.xml: no such file or directory

Then we can drop Print and Fprint entirely.

@davecheney I like this idea a lot, I do think that the separator between error causes needs to be something other than a colon though in case people want to transform it within their own applications.
Maybe a semicolon?

Sorry, it has to be a colon, that's the tradition established by fmt.Errorf and gopl.io

@jimah alternatively, would you prefer something like this
StackTrace(err error) []string

Ah ok, that makes sense.

Apologies for closing and reopening, they put those buttons so close together!
A Stacktrace would be more flexible and won't interfere with people's current implementations, that may be the best path forward. It would also be better for our implementation as we could split the errors out into different json keys.

@jimah i'm having trouble following your use case. In https://github.com/pkg/errors/issues/20#issuecomment-217817067 you propose transforming \n's to >'s, now you're talking about turing a []string into JSON.
It would be helpful if you could describe the end result, preferably in JSON.

The first, single line solution would result in this (excluding any other data):
{
  "error": "readfile.go:27: could not read config: readfile.go:14: open failed: open /Users/dfc/.settings.xml: no such file or directory"
}

Whereas the alternative stacktrace approach would result in this:
{
  "errors": [
    "readfile.go:27: could not read config",
    "readfile.go:14: open failed",
    "open /Users/dfc/.settings.xml: no such file or directory"
  ]
}

I'm open to implementing either result, I think the stacktrace approach would be easier to read especially if there are many errors chained.

Why can't you just do this
var b bytes.Buffer
errors.Fprint(&b, err)
stack := strings.Split(b.String(), "\n")

That would work and I'm happy to go with it as a helper function outside of the package.
Do you think there is value in offering this as a part of this package? It's not much code and it may prove useful to other people offering it out of the box.

Do you think there is value in offering this as a part of this package? It's not much code and it may prove useful to other people offering it out of the box.

None, for two reasons.

if this package stands a chance of being included in the standard library, it must be small, much smaller than it is now.

All this helper would begat is another helper with a slightly different syntax, which would open the floodgates to a third, and so on.

Alright, good stuff.
Thank you for your time. I'm happy to close the issue if the other participants are.

Not surprised to see Print() removed after this discussion - I'm also fine with this issue being closed. Thank you for your work to improve error handling in Go!

Thank you for helping me clarify the purpose of this package. It needs to
either offer all the bells and whistles, every helper, every formatter, and
so on, or offer none of them. And in the spirit of the lanaguge I've chosen
the latter.
On Tue, 10 May 2016, 14:10 jd3nn1s<EMAIL_ADDRESS>wrote:

Not surprised to see Print() removed after this discussion - I'm also fine
with this issue being closed. Thank you for your work to improve error
handling in Go!
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/pkg/errors/issues/20#issuecomment-218054578

Hello,
I wanted to draw your attention to #37 as a possible replacement for Fprintf and others. #37 is not a complete implementation, but the plan is to defer any formatting or layout decisions to the fmt package, controlled by various formatting modifiers.


Add Portuguese (Brazil) wordlist

Obtained from https://github.com/MetacoSA/NBitcoin.
More exactly, here: https://github.com/MetacoSA/NBitcoin/blob/5e276cd2bff413bb46513092ea7083db1fbc6362/NBitcoin/BIP39/IWordlistSource.cs#L26

Please help me
https://github.com/iancoleman/bip39/archive/master.zip
1/ Open index.html
2/ BIP39 Mnemonic < input wordslist.txt in "wide close make then easily gasp day portion giant erode release walnut"
3/ Save results.txt < address+ private key "1MwKu9VMVEbM6qecTNWtEE34qQy8bTxgGo L38HJoA9GrosBRJC4QZDxVP8gCtydpSXivtSkHbxeQFB3SUkZoDp"
For Coin 1:BTC-Bitcoin | 2:BCH-Bitcoin Cash | 3:BTCP-Bitcoin Private | 4:ETH-Ethereum | 5:ETC-Ethereum Classic | 6:LTC-LiteCoin or allcoin can be customized
For Derivation Path BIP32 BIP44 BIP49 BIP84 BIP141 custom selection
run software not through the browser
runs command .bat or console / C++


modal dismissal  needs to scroll all the way to top first

Description
Describe your issue here.
Thank you for this amazing library - it took all of 10 minutes to convert my regular pop ups to panModal and it looks fabulous!
I have a web view in my view controller with a title view. The title view remains on the top, while the web view scrolls. This works perfectly with panModal with one behavior that I've not been able to modify -- If I scroll down in the web view, then swipe down on the title or the drag indicator, it doesn't drag...
How do I get the modal to dismiss if the user drags the handle (or part of the view controller that's not the scroll view?)
What type of issue is this? (place an x in one of the [ ])

[ ] bug
[ ] enhancement (feature request)
[x ] question
[ ] documentation related
[ ] testing related
[ ] discussion

Requirements (place an x in each of the [ ])

[ x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
[ x] I've read and agree to the Code of Conduct.
[x ] I've searched for any related issues and avoided creating a duplicate issue.

Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
PanModal version:
iOS version:
Steps to reproduce:

Expected result:
What you expected to happen
Actual result:
What actually happened
Attachments:
Logs, screenshots, screencast, sample project, funny gif, etc.

Hi @ghubaddole
Apologies for the delayed response. If you want to set an area that the PanModal gesture recognizers will ignore you can use func shouldPrioritize(panModalGestureRecognizer: UIPanGestureRecognizer) -> Bool.
This should have the opposite effect of this issue mentioned here: https://github.com/slackhq/PanModal/issues/9#issue-422934156
You can check if the touch processed by the PanModal is within the frame of the handle and use that to return true
Let me know if this fixes it for you,
Stephen


Add initial structure for migration implementation

This introduces Migrator interface which can be implemented for
different providers in suitable way.
Azure implementation stub is accompanied as an example of how provider
specific implementation could look like in the high level.

As per initial structure, I'm now happy with this. Let's refine it over time further.