create schema problem

Hi,
I try to create schema ,and I follow the example code 'APILowLevel.md'.
create schema
curl -v --user "root:secret" -H "content-type: application/json" -XPUT -d'
{
"name": "tpy",
"dynamic_schema": "strict",
"partition_num": 2,
"replica_num": 1,
"engine": {"name":"gamma", "max_size":1000000,"nprobe":10,"metric_type":-1,"ncentroids":-1,".....
fails with the message:
E1103 13:16:54.846912   21292 cluster_api.go:340] [ERROR] createSpaceService err: revoke lease<PHONE_NUMBER>518300959 error :context deadline exceeded
Does anyone help me,how to fix this error?
Thanks,
celine

startup with vearch by what`s model? cluster or single
Recommend you take a look at the test cases。
the error means create by partition is time out .   This is usually due to a  partition  service crash

startup with vearch by what`s model? cluster or single
Recommend you take a look at the test cases。
the error means create by partition is time out . This is usually due to a partition service crash

hi
my model is single just like stand-alone mode conf.toml( 'https://vearch.readthedocs.io/en/latest/quick-start-guide.html')
I can create db,but I have the error when I create the space.
Here is my code:
~/go/src/github.com/vearch/vearch$ cat conf.toml
[global]
# the name will validate join cluster by same name
name = "vearch"
# you data save to disk path ,If you are in a production environment, You'd better set absolute paths
data = ["datas/"]
# log path , If you are in a production environment, You'd better set absolute paths
log = "logs/"
# default log type for any model
level = "debug"
# master <-> ps <-> router will use this key to send or receive data
signkey = "vearch"
skip_auth = true
if you are master you'd better set all config for router and ps and router and ps use default config it so cool
[[masters]]
# name machine name for cluster
name = "m1"
# ip or domain
address = "<IP_ADDRESS>"
# api port for http server
api_port = 8817
# port for etcd server
etcd_port = 2378
# listen_peer_urls List of comma separated URLs to listen on for peer traffic.
# advertise_peer_urls List of this member's peer URLs to advertise to the rest of the cluster. The URLs needed to be a comma-separated list.
etcd_peer_port = 2390
# List of this member's client URLs to advertise to the public.
# The URLs needed to be a comma-separated list.
# advertise_client_urls AND listen_client_urls
etcd_client_port = 2370
[router]
# port for server
port = 9001
[ps]
# port for server
rpc_port = 8081
# raft config begin
raft_heartbeat_port = 8898
raft_replicate_port = 8899
heartbeat-interval = 200 #ms
raft_retain_logs = 10000
raft_replica_concurrency = 1
raft_snap_concurrency = 1
create space:
~/go/src/github.com/vearch/vearch$
curl -XPUT -H "content-type: application/json" -d'
{
"name": "tpy",
"dynamic_schema": "strict",
"partition_num": 2,
"replica_num": 1,
"engine": {"name":"gamma", "max_size":1000000,"nprobe":10,"metric_type":-1,"ncentroids":-1,"nsubvector":-1,"nbits_per_idx":-1},
"properties": {
"image_type": {
"type": "keyword"
},
"fku": {
"type": "integer",
"index":"false"
},
"tags": {
"type": "keyword",
"array":true,
"index":"true"
},
"image_vec": {
"type": "vector",
"model_id": "img",
"dimension": 5000
}
}
}
' http://<IP_ADDRESS>:8817/space/db_name/_create
Please help me how to fix it.
Thanks.
celine

you can try by this
https://github.com/vearch/vearch/blob/master/test/test_vearch.py

create db

curl -XPUT -H "content-type: application/json" -d'
{
	"name":"test_vector_db"
}
' http://<IP_ADDRESS>:8817/db/_create

create space

curl -XPUT -H "content-type: application/json" -d'
{
	"name": "vector_space",
	"dynamic_schema": "strict",
	"partition_num": 1,
	"replica_num": 1,
	"engine": {
		"name": "gamma",
		"index_size": 9999,
		"max_size": 100000
	},
	"properties": {
		"string": {
			"type": "keyword",
			"index": "true"
		},
		"int": {
			"type": "integer",
			"index": "true"
		},
		"float": {
			"type": "float",
			"index": "true"
		},
		"vector": {
			"type": "vector",
			"model_id": "img",
			"dimension": 128,
			"format": "normalization"
		},
		"string_tags": {
			"type": "string",
			"array": true,
			"index": "true"
		},
		"int_tags": {
			"type": "integer",
			"array": true,
			"index": "true"
		},
		"float_tags": {
			"type": "float",
			"array": true,
			"index": "true"
		}
	}
}
' http://<IP_ADDRESS>:8817/space/test_vector_db/_create

It works!
Thanks a lot.
celine


mupdf 1.8

mupdf 1.8 is now available – formula has been updated accordingly.
I've also changed the link to point to the downloads/archive folder,
rather than the downloads folder – using the latter folder results in dead
links when a new version replaces the old version in the latter
folder.
brew test mupdf fails because the mudraw command is missing, even
though there are no build errors.
I'd appreciate help figuring this out – this is my first homebrew
commit/pull request.

Whoops. Didn't see there already was a pull request for this.


fixed the "KeyError: cs' issue

Purpose

...

Does this introduce a breaking change?

[ ] Yes
[ ] No

Pull Request Type
What kind of change does this Pull Request introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

Get the code

git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install

Test the code

What to Check
Verify that the following are valid

...

Other Information
 #10

That fixed the issue I had with the CLI, thanks Jomit! The file should be committed to the latest version to avoid that we all to apply the manual fix...


HasParam#doGetQueryParameterQualifier() returns malformed modifier.

HasParam#doGetQueryParameterQualifier() returns malformed modifier. Note the code refers to modifiers as qualifiers; however, I'm not fixing this presently.
For example, consider:
_has:Observation:patient:code=123

The modifier returned is:
Observation:code:123

It should be:
:Observation:patient:code

I'll fix it!

Working branch: https://github.com/hapifhir/hapi-fhir/tree/2458-hasparam-dogetqueryparameterqualifier-returns-malformed-modifier


JD_DATA on 8-pin STM32G0x0/1 packages sits at 2.5V

Describe the bug
I believe the BOOT0 pin is pulling the data line voltage down to 2.5V. Need to add code to jacdac-stm32x0 to disable the BOOT0 pin.

It was SWCLK with a pull down bringing the line to 2.5V. Addressed in: https://github.com/microsoft/jacdac-msr-modules/pull/30


Update misleading timeout documentation

Fixes #73.

Could mention they could use 0 for immediate recovery, in case anyone wants the previous behavior.

:+1: That's a good idea. You just missed the boat for this pull request, though. I'll add it in master.

:+1:


ModuleNotFoundError

No module named 'requests'.
This is the complete error message:
F:\epidemic-simulator-master>py fit_any_country.py China
Traceback (most recent call last):
File "fit_any_country.py", line 2, in
from data import get_data
File "F:\epidemic-simulator-master\data.py", line 3, in
import requests
ModuleNotFoundError: No module named 'requests'
NOTE: I have matplotlib & scipy installed.

Is this still an issue ? :-)

Fix in PR #2
We had requirements.txt to simplify Prerequisites

No.. I realized that I was missing python requests module. Installed it using pip.
Fault on my part. Sorry. :-)


Is it possible to also add information about which enum a variety comes from to the serialization and deserialization process ?

For example, in the Adjacently tagged section of https://serde.rs/enum-representations.html
we can do :
#[derive(Serialize, Deserialize)]
#[serde(tag = "tag", content = "content")]
enum Block {
    Para(Vec<Inline>),
    Str(String),
}

and get json :
{"tag": "Para", "content": [{...}, {...}]}
{"tag": "Str", "content": "the string"}

The question is :
Is it possible to also add information about which enum these Para and Str come from to the serialization and deserialization process ?
For example :
#[derive(Serialize, Deserialize)]
#[serde(enum = "enum", tag = "tag", content = "content")]
enum Block1 {
    Para(Vec<Inline>),
    Str(String),
}

#[derive(Serialize, Deserialize)]
#[serde(enum = "enum", tag = "tag", content = "content")]
enum Block2 {
    Para(Vec<Inline>),
    Str(String),
}

and get json :
{"enum": "Block1", "tag": "Para", "content": [{...}, {...}]}
{"enum": "Block2", "tag": "Str", "content": "the string"}

seeing this https://github.com/serde-rs/example-format/blob/master/src/ser.rs#L293
I think it is possible to achieve the named enum in serde

maybe I should not seeking for support of this named enum in serde_json ?
because json is naturally nested struct without enums (just like json in miniserde)


ci: auto build ci container if builds_container scripts change

It should be possible to build a new container automatically on master commit within Travis if we detect that the commit includes changes to files in that directory. Obviously this takes a long time so we should only do this if files in there change.
cc @junr03 @PiotrSikora @htuch

per @ryan-lane we could also trigger the container build if we manually tag a SHA "build-image-*" or something like that. Needs more thinking but we should make this automatic. Assigning over to @junr03 to take a look.

Fixed by https://github.com/lyft/envoy/pull/882


qmp: Add nvdimm support

ExecuteNVDIMMDeviceAdd can add a nvdimm disk to qemu.
Not implement NVDIMM device delete function because qemu doesn't support it.
Signed-off-by: Hui Zhu<EMAIL_ADDRESS>

Coverage decreased (-1.4%) to 79.025% when pulling 6c7f833bfd95f38d8cfe808a5b0b94f2fb24425b on teawater:nvdimm into dddf0f08ea14cd5a8b969235a0164b96038702c7 on intel:master.

@markdryan Pushed a new version according to your comments.

@devimc, @sboeuf, @mcastelino Could you one you take a quick look at this?

@sboeuf Pushed a new version according to your comments.

Thanks @teawater, let's merge it then :)


Running through the readme sequentially results in a warning

Currently, if you run through the label-maker readme example - with the togo country config.json, and running in order:
label-maker download
label-maker labels
label-maker preview -n 10
label-maker images
label-maker package

The last step produces a warning for a missing file:
Saving QA tiles to data/togo.mbtiles
   100%     26.6 MiB       1.9 MiB/s            0:00:00 ETA
Retiling QA Tiles to zoom level 12 (takes a bit)
174704 features, 10870707 bytes of geometry, 4 bytes of separate metadata, 2597853 bytes of string pool
  99.9%  12/2060/1976
Determining labels for each tile
---
Roads: 11 tiles
Buildings: 9 tiles
Total tiles: 12
Writing out labels to data/labels.npz
Writing example images to data/examples
Downloading at most 10 tiles for class Roads
Downloading at most 10 tiles for class Buildings
Downloading 11 tiles to data/tiles
Couldn't open data/tiles/2063-1978-12.jpg, skipping
Saving packaged file to data/data.npz

Admittedly I haven't done enough digging yet, but it would look like there's possibly an off-by-one error here.

Looks lke this is #63

Hmm.. I wonder if this is truly related to #63? I get that skipping error as well on my slightly altered run through of the README here , I chocked it up to being due to tiles that don't contain either of the classes not being downloaded. Could you check with previewing just 9 or 8 tiles (making sure you clear out the preview directories)?

@jreiberkyle yup, this is due to some lazy packaging scripts (it searches for an image for each tile even though, depending upon the config parameters, we don't download an image for each tile). Because the image download in the previous step is partially randomized (for background tiles), I think one of two approaches makes the most sense:

Keep the code as is, drop the warning
Glob the images directory and iterate over that instead of the full label/tile set

Any preferences? @jreiberkyle @tmcw @wronk

Do we want to support users to directly manipulate images directory (by adding or removing examples)? It seems like we might want (2) if that's the case. I'd also lean towards always alerting users to any mismatches.
Counter question to myself on (2): are there any risks of /images not matching up with /labels? Would that confuse users if we use a file list directly from /images but they expect something else based on their input to the labels command?

@wronk I think both options will create the same output in most cases, even if users manually edit the /images directory (in the first case, we skip the image, in the second, we never glob it)

Maybe the second one makes more sense then? I really don't have any strong opinions here, so whatever you think will make it easier for the user is okay with me.

(it searches for an image for each tile even though, depending upon the config parameters, we don't download an image for each tile).

@drewbo in which instances are image tiles not downloaded? Is this only the case for background tiles?

@jreiberkyle yup, either all background tiles or just a random portion of them (depending upon the background_ratio property).
I'm going to implement option 1 (drop the warning) and assume that everything in the images folder is what people want (if there were download issues, it will surface while downloading). If there are corrupt files (i.e. OSError as opposed to FileNotFoundError) then we can show a warning and skip (and probably resolve #43 in the process)


python312Packages.py-synologydsm-api: 2.4.5 -> 2.5.2

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python312Packages.py-synologydsm-api is: Python API for Synology DSM
meta.homepage for python312Packages.py-synologydsm-api is: https://github.com/mib1185/py-synologydsm-api
meta.changelog for python312Packages.py-synologydsm-api is: https://github.com/mib1185/py-synologydsm-api/releases/tag/v2.5.0
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 2.5.0 with grep in /nix/store/4950f6dwjic1f8qy6brciqmc4j9wip6y-python3.12-py-synologydsm-api-2.5.0
found 2.5.0 in filename of file in /nix/store/4950f6dwjic1f8qy6brciqmc4j9wip6y-python3.12-py-synologydsm-api-2.5.0

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)

4 package rebuild(s)

First fifty rebuilds by attrpath

home-assistant-component-tests.synology_dsm
python311Packages.py-synologydsm-api
python312Packages.py-synologydsm-api

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/4950f6dwjic1f8qy6brciqmc4j9wip6y-python3.12-py-synologydsm-api-2.5.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python312Packages.py-synologydsm-api https://github.com/r-ryantm/nixpkgs/archive/4cdbc4052583bbb2df84af64aeb0c985d2f80ac6.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/4cdbc4052583bbb2df84af64aeb0c985d2f80ac6#python312Packages.py-synologydsm-api

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/4950f6dwjic1f8qy6brciqmc4j9wip6y-python3.12-py-synologydsm-api-2.5.0
ls -la /nix/store/4950f6dwjic1f8qy6brciqmc4j9wip6y-python3.12-py-synologydsm-api-2.5.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package failed to build:

home-assistant-component-tests.synology_dsm

4 packages built:

python311Packages.py-synologydsm-api
python311Packages.py-synologydsm-api.dist
python312Packages.py-synologydsm-api
python312Packages.py-synologydsm-api.dist

Maintainer pings
cc @uvNikita for testing.

Add a :+1: reaction to pull requests you find important.

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python312Packages.py-synologydsm-api is: Python API for Synology DSM
meta.homepage for python312Packages.py-synologydsm-api is: https://github.com/mib1185/py-synologydsm-api
meta.changelog for python312Packages.py-synologydsm-api is: https://github.com/mib1185/py-synologydsm-api/releases/tag/v2.5.2
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 2.5.2 with grep in /nix/store/3nwk3s7i71y5fj6vk4p4707vs6d43gp7-python3.12-py-synologydsm-api-2.5.2
found 2.5.2 in filename of file in /nix/store/3nwk3s7i71y5fj6vk4p4707vs6d43gp7-python3.12-py-synologydsm-api-2.5.2

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)

4 package rebuild(s)

First fifty rebuilds by attrpath

home-assistant-component-tests.synology_dsm
python311Packages.py-synologydsm-api
python312Packages.py-synologydsm-api

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/3nwk3s7i71y5fj6vk4p4707vs6d43gp7-python3.12-py-synologydsm-api-2.5.2 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python312Packages.py-synologydsm-api https://github.com/r-ryantm/nixpkgs/archive/de6692bb4c19ac4cc8f2e3876de98faa16a03acf.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/de6692bb4c19ac4cc8f2e3876de98faa16a03acf#python312Packages.py-synologydsm-api

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/3nwk3s7i71y5fj6vk4p4707vs6d43gp7-python3.12-py-synologydsm-api-2.5.2
ls -la /nix/store/3nwk3s7i71y5fj6vk4p4707vs6d43gp7-python3.12-py-synologydsm-api-2.5.2/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package failed to build:

home-assistant-component-tests.synology_dsm

4 packages built:

python311Packages.py-synologydsm-api
python311Packages.py-synologydsm-api.dist
python312Packages.py-synologydsm-api
python312Packages.py-synologydsm-api.dist

Maintainer pings
cc @uvNikita for testing.

Add a :+1: reaction to pull requests you find important.

Already on master.


Custom font doesn't work

Description
Hi, I don't know either it's a bug or not. I have some font installed via fontsource while others I want to add manually, so I'm following this guide (https://chakra-ui.com/community/recipes/using-fonts) to do it but when I try to get custom font it doesn't work. Here it is my code.
my Fonts.tsx:
import { Global } from "@emotion/react";

export const Fonts = () => (
  <Global
    styles={`
      @font-face {
        font-family: "Quincy CF Regular";
        font-style: normal;
        font-weight: normal;
        font-display: swap;
        src: url('./assets/fonts/Quincy-CF-Regular.woff2') format('woff2'), url('./assets/fonts/Quincy-CF-Regular.woff') format('woff');
        unicode-range: U+20, U+21, U+23, U+26-29, U+2C-33, U+35-38, U+3A, U+3F, U+41-57, U+61-7A, U+A9, U+E9, U+2013, U+2014, U+2026, U+2AF6, U+1F44B;
      }
      @font-face {
        font-family: "Quincy CF Light";
        font-style: italic;
        font-weight: 300;
        font-display: swap;
        src: url('./assets/fonts/Quincy-CF-Light.woff2') format('woff2'), url('./assets/fonts/Quincy-CF-Light.woff') format('woff');
        unicode-range: U+20, U+21, U+23, U+26-29, U+2C-33, U+35-38, U+3A, U+3F, U+41-57, U+61-7A, U+A9, U+E9, U+2013, U+2014, U+2026, U+2AF6, U+1F44B;
      }
      @font-face {
        font-family: "Quincy CF Bold";
        font-style: bold;
        font-weight: 700;
        font-display: swap;
        src: url('./assets/fonts/Quincy-CF-Bold.woff2') format('woff2'), url('./assets/fonts/Quincy-CF-Bold.woff') format('woff');
        unicode-range: U+20, U+21, U+23, U+26-29, U+2C-33, U+35-38, U+3A, U+3F, U+41-57, U+61-7A, U+A9, U+E9, U+2013, U+2014, U+2026, U+2AF6, U+1F44B;
      }
    `}
  />
);

my theme.tsx:
import { extendTheme, type ThemeConfig, theme as base } from "@chakra-ui/react";
import "@fontsource/righteous";
import "@fontsource/montserrat";
import "@fontsource/source-code-pro";

const fonts: any = {
  heading: `'Righteous', ${base.fonts?.heading}, cursive`,
  body: `'Montserrat', ${base.fonts?.body}, sans-serif`,
  mono: `'Source Code Pro', ${base.fonts?.body}, monospace`,
  subHeading: `'Quincy CF Regular', ${base.fonts?.heading}, sans-serif`,
};

const theme = extendTheme({ fonts, config });

export default theme;

my App.tsx:
import * as React from "react";
import {
  ChakraProvider,
  Box
} from "@chakra-ui/react";
import theme from "./theme";
import { Fonts } from "./Fonts";

export const App = () => (
  <ChakraProvider theme={theme}>
    <Fonts />
    <Box fontSize="xl">
      ...
    </Box>
  </ChakraProvider>
);

my Component.tsx:
<Heading size="md" fontFamily={"subHeading"}>
    Lorem ipsum dolor sit
</Heading>

What am I wrong ?
Chakra UI Version
2.5.4

I just ran into a similar issue after I upgrade to framer-motion": "^10.16.1", downgrading back to `framer-motion": "^10.15.0" resolve the issue

For those who are still seeking a solution, this post resolved the issue for me. The information provided by the author of the Stack Overflow answer should unquestionably be included in the documentation, it would have saved me and others a lot of time.

I just want to share the solution i made that works for me.

First i created a css file to add the font faces (ex. fonts.css).

@font-face {
font-family: "Proxima Nova";
font-style: normal;
font-weight: 100;
font-display: swap;
src: url("./assets/fonts/ProximaNovaA-Light.ttf") format("ttf");
unicode-range: U+20, U+21, U+23, U+26-29, U+2C-33, U+35-38, U+3A, U+3F,
U+41-57, U+61-7A, U+A9, U+E9, U+2013, U+2014, U+2026, U+2AF6, U+1F44B;
}
@font-face {
font-family: "Proxima Nova";
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("./assets/fonts/ProximaNovaA-Regular.ttf") format("ttf");
unicode-range: U+20, U+21, U+23, U+26-29, U+2C-33, U+35-38, U+3A, U+3F,
U+41-57, U+61-7A, U+A9, U+E9, U+2013, U+2014, U+2026, U+2AF6, U+1F44B;
}
@font-face {
font-family: "Proxima Nova";
font-style: normal;
font-weight: 600;
font-display: swap;
src: url("./assets/fonts/ProximaNovaA-Semibold.ttf") format("ttf");
unicode-range: U+20, U+21, U+23, U+26-29, U+2C-33, U+35-38, U+3A, U+3F,
U+41-57, U+61-7A, U+A9, U+E9, U+2013, U+2014, U+2026, U+2AF6, U+1F44B;
}
@font-face {
font-family: "Proxima Nova";
font-style: normal;
font-weight: 700;
font-display: swap;
src: url("./assets/fonts/ProximaNovaA-Bold.ttf") format("ttf");
unicode-range: U+20, U+21, U+23, U+26-29, U+2C-33, U+35-38, U+3A, U+3F,
U+41-57, U+61-7A, U+A9, U+E9, U+2013, U+2014, U+2026, U+2AF6, U+1F44B;
}
@font-face {
font-family: "Proxima Nova";
font-style: normal;
font-weight: 900;
font-display: swap;
src: url("./assets/fonts/ProximaNovaA-Black.ttf") format("ttf");
unicode-range: U+20, U+21, U+23, U+26-29, U+2C-33, U+35-38, U+3A, U+3F,
U+41-57, U+61-7A, U+A9, U+E9, U+2013, U+2014, U+2026, U+2AF6, U+1F44B;
}

I imported the fonts.css to my main.jsx.

`import React from "react";
import ReactDOM from "react-dom/client";
import { ChakraProvider } from "@chakra-ui/react";
import { Provider } from "react-redux";
import App from "./App.jsx";
import theme from "@/theme";
import "./index.css";
import "./fonts.css";
import { store } from "@/store";
ReactDOM.createRoot(document.getElementById("root")).render(
<React.StrictMode>

</React.StrictMode>
);`

I created an extended theme and added the fonts.

`
import { extendTheme , theme as base} from "@chakra-ui/react";
const config = {
initialColorMode: "light",
useSystemColorMode: false,
};
const theme = extendTheme({
config,
styles: {
global: (props) => ({
'html, body': {
fontFamily: 'Proxima Nova', ${base.fonts?.body}, sans-serif !important,
},
'h1, h2, h3, h4, h5, h6': {
fontFamily: 'Proxima Nova', ${base.fonts?.heading}, sans-serif !important,
}
}),
}
});
`
Hope this helps!


Fixed a typo in the spec filename

I just noticed that the README i submitted last week was referring to the wrong filename...sorry :(

Good catch 😄


feature request: on file created hook

Did you check existing requests?

[X] I have searched the existing issues

Describe the feature
When i create new files with oil, i want the file to be filled with some basic content. A hook which takes the file path would be perfect. I can handle writing to the file in the hook. This makes it a bit more versatile as you're not locked into writing content to the file, it can be used for anything else where you might need the file path or just the filetype.
Provide background
When creating .cs files i (almost) always want it to contain a line with the namespace that c# code in the file should exist within. In the most popular IDEs this just happens by itself, but since nvim is a text editor, i have to manually write it in. I just want to avoid that because its boilerplate and i don't really care about it, but it has to be done. Adding a hook which is invoked after a file is created will allow me to do this with a little configuration on my part.
I tried using an autocmd with "BufNewFile", but that falls short because its only when
What is the significance of this feature?
strongly desired
Additional details
I would say this is strongly desired for me, but i'm betting its a nice to have for most.
i imagine the configuration like this:
{
    file_created_hooks = {
        lua = function(path) ... end,
        cs = function(path) ... end,
    }
}

the key (lua, cs) is the neovim filetype and the path is the full path to the file

There is a User autocmd that is dispatched after performing file mutations
https://github.com/stevearc/oil.nvim/blob/3c2de37accead0240fbe812f5ccdedfe0b973557/lua/oil/mutator/init.lua#L423-L426
The type definition for actions is above
https://github.com/stevearc/oil.nvim/blob/3c2de37accead0240fbe812f5ccdedfe0b973557/lua/oil/mutator/init.lua#L19-L49
You'll need to process the urls to get the actual filename, but it should be relatively straightforward

There is a User autocmd that is dispatched after performing file mutations
https://github.com/stevearc/oil.nvim/blob/3c2de37accead0240fbe812f5ccdedfe0b973557/lua/oil/mutator/init.lua#L423-L426
The type definition for actions is above
https://github.com/stevearc/oil.nvim/blob/3c2de37accead0240fbe812f5ccdedfe0b973557/lua/oil/mutator/init.lua#L19-L49
You'll need to process the urls to get the actual filename, but it should be relatively straightforward

:o huge new, ty :)


I can use this in angular version 11?

I am trying to use this package in angular 11, but I have issue.

I hope to get solution.

I have used this component for angular 11 and 12 and works as intended.
How did you require the component?

You have to import the module which is parent to your current component.
import { AngularMultiSelectModule } from 'angular2-multiselect-dropdown';

I've also struggled with this error message. I missed the following from the usage instruction:

Angular's FormsModule is also required.

After adding
imports: [
        ...
        FormsModule,
        ...
]

to app.module.ts the error was gone.


mount a path as root /

What is the problem you're trying to solve
containerd does not allow mounting external path to /
Describe the solution you'd like
allow mount a path as root / and bypass all the content of image
Additional context
No response

We already have nerdctl run --rootfs DIR /bin/sh

sorry, i know --rootfs but i wonder if this can be done in the dockerfile

This should be proposed to BuildKit:

https://github.com/moby/buildkit/issues


Specifying ca cert

Hi, good night.
Is it possible to specify ca-file in this plugin? I want to connect to mariadb cluster configured as SSL-only that uses a self-signed certificate of my own CA.
Thank you so much.

Hi, @manolodd, for now, sorry this plugin does not support to specify cacert. But we'll take it into consideration and support this feature in the future. Thanks for you feedback !

Ohhh, what a pity!! Thank you so much anyway, @Gilbert-Wong. I've already my emqx cluster operating also in TLSv1.2 only.
Thaks for considering this as a desiderable feature.
Best regards.


Add doc mode

Show only the desc on output.
It can be good if we can generate an html or md output for repository do :)

maybe we can use a .dr_spec file


Network writable and free packet slots

Top level programs and TCP itself needs to use a round-robin algorithm to write content out on the network, but only when the network is writable
Idea:
So, the network says it has 48 packet slots free, this is propagated maybe to Ethernet then Arp
Arp writes its packets and subtracts from total free the number of new packets sent. If there is still free packet slots, the IP4 layer is called with the number, and it again uses round-robin to send one packet from each connection until either no packets can be sent or the number of free slots is 0.
No connection should be able to hog the entire bandwidth
We also need to account for virtio wanting to kick only when X packets are scheduled in some time limit (TCP window) to avoid context switches
On the userland end:
The user gets callback "writable," and the user then tries to write data from bytestream. The write function returns how many bytes were written as usual, and the user knows nothing of any "number of free packet slots."

This sounds like a good idea. So do the TCP just shove packets down to the network layer (IP), or will the TCP receive some kind of signal/callback? From whom?

TCP got updated with something along the lines what you're suggesting:
Event for when there is free packets or write directly if none waiting
Connection get an offer with available packets
(There is an logical error where connection doesnt get poped and put in back of queue, update on the way)

Solved https://github.com/hioa-cs/IncludeOS/issues/475 with https://github.com/hioa-cs/IncludeOS/pull/476


Highlight lines of code in block

@firasm Did you find a way to highlight certain lines within a code block?

Nope - not as of yet....it's not supported by any official markdown specs, so would have to write some CSS and create something ourselves.

@firasm @apdcode , I don't think this is feasible either and maybe not worth our time trying to write our own CSS, unless you want to take another stab at this. Otherwise, I'll close this issue.
Let me know what you prefer.

Keeping this open so Firas can work on it later.

Note to self: Look into this https://codehike.org/


update Name struct and corresponding usage

Currently the name struct is defined as:
struct Name {
    bytes32 schema;
    bytes32 domain;
    bytes32 name;
}

where name is the hash of the full representation of the Name, such as<EMAIL_ADDRESS>which means the name already contains the information of schema and domain. However, since only the hash of schema/domain/name passed in, it's hard to check if name is with the proper schema and domain. e.g. it's hard to detect the following invalid input on-chain {schema: keccak256("mailto"), keccak256("gmail.com"), keccak256("alice@outlook.com)}
The new Name is defined as:
struct Name {
    bytes32 schema;
    bytes32 domain;
    bytes32 handle;
}

where handle doesn't contain the schema/domain info. We will calculate the name hash dynamically on-chain by:
keccak256(abi.encode(schema, domain, handle));

latest hexlink implementation is deployed at 0x852fb628ec80cE35f0a6bcF382e9485d8397cb80 and the hexlink proxy has been upgraded to the new implementation at nitro/nova/goerli/mumbai


[Q]KeyError between pytorch lightning and wandb

I tried using WandbLogger in pytorch lightning.
I use WandbLogger to record metrics and ModelCheckpoint to save models.
There is no problems in training and the wandb project's state is Finished.
But it shows an KeyError during testing when i use model.load_from_checkpoint(checkpoint_path) to load.
This error is pointing step by step:
self.save_hyperparameters()  -> wandb.sdk.service.server_sock.py

the key is 2oxzo496,  but I can find it in web pages and local folders.

Hello @hml1996-fight !
Could you provide the code snippet that you are using to load the checkpoint? It seems that your multithreading is attempting to create multiple threads but it is running issues at that step. How are you using multithreading in your code?
Also, it looks like the KeyError is referring to the run id 2oxzo496. Can you verify that this run exists?


add note about v2

I had a hell of a day trying to figure this out so I am hoping to save others a lot of time by adding this note.

I have signed the CLA!

I have signed the CLA!

Hi, @bj97301 - thanks for the PR!
This sounds like an issue with Reanimated and not RN Skia? REA is not a required dependency for RN Skia.
But after doing some quick tests I think you might be wrong - Latest REA on npmjs.com is set to 3.3.0 which is also the one I got when trying to install using yarn add react-native-reanimated in a blank new project.
Closing this for now.

New pr with a note about expo if your interested:
https://github.com/Shopify/react-native-skia/pull/1677
Thanks again for all your help.  ♥


dotnet command error

Problem encountered on https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/install
Operating System: windows
Provide details about the problem you're experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.
The term 'dotnet' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
How can i resolve this?

Did you try to open a new command prompt after you installed the .NET SDK @RaduTM-spec?


Confusion with the action id name

Feature or Bug?
We have 3 next_action action. But let's focus on the initial 2 without the comments in the mobile_navigation.xml.
    <fragment
        android:id="@+id/flow_step_one_dest"
        ...
        <action
            android:id="@+id/next_action"
            ...
    </fragment>

and
    <fragment
        android:id="@+id/flow_step_two_dest"
        ...
        <action
            android:id="@+id/next_action"
        ...
    </fragment>

These 2 actions have the same id and are used in the same FlowStepFragment.kt. Though in the demo actions are working correctly. However, the same id is actually different depending on the context (i.e: the flowStepNumber a.k.a the current fragment is displaying). Is this coded this way to demo the flexibility of navigation component or a simple shortcut for code reuse?
class FlowStepFragment : Fragment() {

    ...
    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        // depends on the flow and fragment, this R.id.next_action means differnt flow
        view.findViewById<View>(R.id.next_button).setOnClickListener(
            Navigation.createNavigateOnClickListener(R.id.next_action)
        )
    }
}

I think it is not very clear and can cause some confusion initially. Isn't it better to use 2 completely separate fragments for demo purposes? Unless this is intended then this issue should be closed.

Well. It is a feature, I jump to conclusion without reading Chpt 7. Closing issue


[feat] code completion for wiki links to headline

e.g. [[another-notes#_]] when cursor on _, it should list all headlines in another-notes, bellow is marksman behavior

While oxide treats # inside a wiki link as tag, so the result is a bit confusing

I'm sorry that you are experiencing this! It shouldn't happen, however. Make sure that you have nvim-cmp configured properly, as this would cause the issue. Also make sure you have the latest version
{
name = 'nvim_lsp',
  option = {
    markdown_oxide = {
      keyword_pattern = [[\(\k\| \|\/\|#\)\+]]
    }
  }
},

Thanks, after updating the nvim-cmp setup. It works now.
Just wondering why extra config is necessary in this case. But I am happy to close the issue.

(Wierdly) Unlike other completion engines (VSCode, Zed, ...), nvim-cmp will end a completion after you type a space. I think it assumes that only keywords (variable names, constants, ...) will be completed, and so any characters that are not typical of a keyword will cause completions to end. One of these characters is # and another is space  . Others relevant to this are in that keyword_pattern.
It is very odd behavior and is made even worse by having to use a vim pattern (which is not very intuitive to me). The creator of Obsidian.nvim had a similar struggle, which he helped me with a few months ago. Also, be on the lookout for an RFC proposing markdown-oxide as a backend for Obsidian.nvim -- offloading performance-intensive tasks like completions etc. I have been in contact with the creator recently, and he gave me the go-ahead to make the proposal!
In addition to this, nvim-cmp has odd behavior with tags for some reason #17 . I really think that it is a bottleneck for neovim LSP ecosystem (and beyond) and it deserves a rewrite.
Just some thoughts!

I think this is a setup on the lsp side. The specification has this:
/**
 * How a completion was triggered
 */
export namespace [CompletionTriggerKind](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#completionTriggerKind) {
	/**
	 * Completion was triggered by typing an identifier (24x7 code
	 * complete), manual invocation (e.g Ctrl+Space) or via API.
	 */
	export const Invoked: 1 = 1;

	/**
	 * Completion was triggered by a trigger character specified by
	 * the `triggerCharacters` properties of the
	 * `CompletionRegistrationOptions`.
	 */
	export const TriggerCharacter: 2 = 2;

	/**
	 * Completion was re-triggered as the current completion list is incomplete.
	 */
	export const TriggerForIncompleteCompletions: 3 = 3;
}
export type [CompletionTriggerKind](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#completionTriggerKind) = 1 | 2 | 3;


Need support for building arm64 images

Can the base images which are used for building the scylla-operator & manager images be enabled to provide support for arm64?

we build for arm64 now as well


fix: broken helm chart ingress

Allow setting ingress hosts directly through yaml
fix: Remove incorrectly added helm configuration for ingress.extraHostsRaw

Fixes the issue I had introduced in https://github.com/apache/superset/pull/23446


VectorOf* is unsound

https://github.com/kali/opencv-rust/blob/master/gen_rust.py#L977-L986 implements for VectorOfMat a deref to &[Mat] for example. But the Mat type is just a struct with a pointer, so it's basically just a pointer to the C++ type. The values accessible through the slice are the C++-Type, not the Rust-Type.
I'm working on this. Probably simply removing the deref and adding an Index impl

okay, my solution doesn't work... is there any way to differentiate between types that have a ptr: *c_void member and those that are directly represented like DMatch?

i think something in the line of
if isinstance(a.type, BoxedClassTypeInfo) or a.type.is_by_ptr

should do the trick

DMatch and the like are SimpleClassTypeInfo or ValueStructTypeInfo


Getting Started

I am struggling to get started with this gem.
I have 2 initial setup questions and then 2 functionality questions.

Setup question - model requirement.

In my model, am I supposed to include both of these lines, or is acts_as_taggable replaced by acts as taggable_on if the latter is specified?
# acts_as_taggable
  acts_as_taggable_on :randd_maturities, :randd_fields, :randd_purposes, :randd_activities

Setup question - helper requirement.

In my proposal helper, I have this method (currently doesnt work).
def display_maturity_tag(proposal)
		return unless proposal.randd_maturities.count < 0
		render 'proposals/maturity_tags'
	end

I have seen documentation which says I should include this in my helper:
include ActsAsTaggableOn::TagsHelper
Am I supposed to be using this include statement? If I do I get an error pointing at that line. Am I supposed to define a TagsHelper myself?

Functionality question - use case

I am trying to use:
acts_as_taggable_on :randd_maturities, :randd_fields, :randd_purposes, :randd_activities
In each of these models, I have an attribute called 'title'.  I want to use those titles as tags. In my proposal form, I want users to be able to select titles as tags.
I can't figure out how to do this (or whether I can do this with this gem). I don't want users to create their own tags.  The tag options should be limited to the respective 'titles' saved in each of the taggable models.

Functionality question - displaying the tags

I can't figure out how to display the tags. In my view, I have tried each of these:
		<%= display_maturity_tag(@proposal) %>
			<%# @proposal.randd_maturities.each do |test| %>
			<%= @proposal.randd_maturity_list %>

<%= @proposal.randd_maturies %>
The only one of these that does anything is the last one. It doest return the instances. Instead, it prints:
#<ActsAsTaggableOn::Tag::ActiveRecord_Associations_CollectionProxy:0x007ff20c7900f8>
How do I print the list of tags?

Does anyone know if this gem still works? Someone said it isn't being maintained anymore and isn't suitable for my use case outlined above because no one is using rails for this sort of thing anymore. Is that true?

Hey, looks like code got committed a few days ago, so the gem doesn't look that dead, however, I just found this gem, so I can't be of any help, sorry :(

Hi, I can only help you with number 4, to display the tags you have to use in your case:
<%= @proposal.randd_maturity_list %>
and it'll be displayed as a comma separated list.


Add a lint for 'static impl shenanigans

This applies on top of #264 because I'm lazy. Edit: not anymore
It basically works but needs more testing and docs. I've decided to handle it by detecting the impl ... for <something that contains 'static in here> pattern, which should be pretty rare.

Okay, I'm pretty confident this is the right approach (and that trying to solve it by additional analysis passes is more trouble than its worth).

I think the CI failure is just aws flakiness. (CC @BradyBonnette)

Yes. Will rerun those tests when it settles.


write_verilog -attr2comment outputs bad comments

The output of
write_verilog -attr2comment

is not always a comment.  For example I get a line like
 /* src = "../folder/*srcfile.v */:3" */

Which has an extra  */ in the middle of it.

That is interesting. How does it look like without -attr2comment? (all the option does is changing (* .. *) to /* .. */. The string inside is unchanged. I would guess the "*/" is actually the value or the src attribute. So the question is: where does it come from? What output do you get for the following command?
./yosys -qp 'synth; write_verilog -attr2comment' tests/simple/fiedler-cooley.v | grep src

I have now fixed printing of strings with */ in them for -attr2comment in commit 756b4064b29cf07bf0870f06dd538b34763f3cdd. This will now be printed as *\/ which when interpreted with the verilog rules for strings will still be the string *\.

The output of the command you posted is
/* src = "tests/simple/fiedler-cooley.v:3" */
  /* src = "tests/simple/fiedler-cooley.v:14" */
  /* src = "tests/simple/fiedler-cooley.v:14" */
  /* src = "tests/simple/fiedler-cooley.v:14" */
  /* src = "tests/simple/fiedler-cooley.v:14" */
  /* src = "tests/simple/fiedler-cooley.v:9" */
  /* src = "tests/simple/fiedler-cooley.v:9" */
  /* src = "tests/simple/fiedler-cooley.v:6" */
  /* src = "tests/simple/fiedler-cooley.v:12" */
  /* src = "tests/simple/fiedler-cooley.v:8" */
  /* src = "tests/simple/fiedler-cooley.v:5" */
  /* src = "tests/simple/fiedler-cooley.v:6" */
  /* src = "tests/simple/fiedler-cooley.v:9" */
  /* src = "tests/simple/fiedler-cooley.v:6" */

As for how that became part of the source string, I'm not sure.  I read in the file using
  Pass::call(design,"read_verilog ../folder//srcfile.v");

Perhaps this is where the bug is coming from?  I figured the extra slash wouldn't change anything, as it found the file properly.

Ah! The double slash is the problem. I can reproduce it with that:
./yosys -qp 'synth; write_verilog -attr2comment' tests/simple//fiedler-cooley.v | grep src

Looking into it now..

Fixed in commit ef151b0b30c7b7253aceba6d184e7721a4eff0c0. Thanks for bringing this issue to my attention.

Thanks!


Support Scalajs

Hey, are you planning  to support scalajs?
Thanks

At the moment I'm focusing more in the core functionality. So currently scalajs is not a priority, but as soon as library stars to take a good shape I may look into it. There is also a bit more info in the google groups about it: https://groups.google.com/forum/m/#!topic/sangria-graphql/oxiZwUXDG74
Just out of curiosity, what use-cases do you see for sangria scalajs support?

My main goal is to substitute a small single page app with scalajs.
Right now it is a JS React code base and I think GraphQL/Relay would be of great help, so I was just assessing if that would be possible :)

The thing is, main goal of sangria project is to provide a schema definition DSL and an GraphQL execution engine for the server side applications. I can imagine some scenarios where one can reuse some parts of it on the client side (like the query validator in combination with the schema materializor that may come in future). I can imagine some use-cases where these parts can be useful, but thy all more focused around tooling, rather than actual applications, that use for instance relay.
As far as I can tell, in your case you actually need a relay scalajs library. And it's out of scope of sangria project. Since relay framework establishes a data protocols between server and client (it defines some standard types like Node, Connection, Edge, etc) it can be helpful to provide these standard types in a library. That's the purpose of sangria-relay. But it's not a relay framework implementation itself. So I doubt that it will be helpful in your case, even if sangria and sangria-relay were published as scalajs libraries.

closing this issue for now. If scalajs support would be added, then it will start in the main library and propagated here.


Perps v2

Release branch for Perps V2. This branch will act as the base branch for adding Perps V2 features until the release. There are a number of TODO comments left in the code to replace before release.
Description
MVP:

[x] Use size input when submitting trade (current hard-coded to 1 unit)
[x] Add a close position transaction
[x] Disable next price order type
[x] Fetch price for given size
[x] Get a gas estimate (currently hard-coded to 1 wei)
[x] Set up default price impact delta
[x] Submit delayed orders
[x] Track delayed orders in the "orders" tab
[x] Disable cross margin
[x] Add fixed buffer to order execution
[x] Trades show "Delayed" order type
[x] Fees are displayed properly
[x] Position card preview data is displayed properly
[ ] Reenable margin preview
[ ] Debounce preview calls from leverage slider changes
[ ] Set up configurable price impact delta
[ ] Display slippage in order confirmation
[x] Show estimated fees on order submission
[ ] Friendly display of expired orders
[ ] Display commit deposit warning
[ ] Handle errors with friendly messages
[ ] Add loading state for cancelling orders
[ ] Add loading state for executing orders
[ ] Fix closing via delayed orders leaving small position open
[ ] Do gas estimation for execution and cancellation of delayed orders

Nice to haves:

[ ] Estimate order execution gas, use as condition for display
[ ] Fetch recent price from Pyth price feed into state
[ ] TV Chart subscribes to Pyth price updates
[ ] Execute delayed offchain orders using pyth signature
[ ] Calculate fees for trade preview and store in state

How Has This Been Tested?
Final testing checklist:

[ ] Deposit margin
[ ] Test max buttons on deposit/withdraw
[ ] Withdraw margin
[ ] Open 1x long position
[ ] Close long position
[ ] Open 5x short position
[ ] Close short position
[ ] Open max leverage long order
[ ] Close max leverage long order

Listing all kind of details, might not all be relevant for the mvp release:
Landing Page

[ ] Once mainnet contracts are up, make sure available v2 markets populate landing page

Dashboard

[ ] Portfolio value also counts in (hidden) cross margin balance

Markets
Confirm Delayed Order Modal

[ ] Remove Network Gas Fee
[ ] Change Ξ symbol to ETH (Confirm Order Modal) to show Size like 0.6364 ETH
[ ] Total Deposit = Total Fees? If amount equal remove one?


Minimum working example

Hi!
It will be great to have a minimum working example to start with. Right now, I've tried example from README, but it outputs just
Page with examples is also of little help since it contains several examples and all the code is organized to accommodate these examples.
HTML page that I used.
Thanks!

A tree can be rendered in any form, it depends on how you implement your rowRenderer.
Check out this for a bare minimum example of rowRenderer:
https://github.com/cheton/infinite-tree/blob/master/examples/default/renderer.js

Why some nodes do not display?
Thank you!

@cheton Thanks! I struggle to run it though. What kind of Javascript is it? I have syntax errors on 'import' keyword.


some confusions

i have read the code in run_model.py, i find that num_labels variable, Is it possible to do word-level experiments by setting this variable？
I wonder if you offer word-level experiments?
thank you man .

At the moment, it is not possible to do word-level experiments.
Hopefully in the future! 😊

We now support word-level quality estimation with the latest release - 1.0.0 😊

We now support word-level quality estimation with the latest release - 1.0.0 😊

We now support word-level quality estimation with the latest release - 1.0.0 😊

thank you man. However, these two tasks are carried out separately, which is not multi task learning.
This is a pity.

@leileilin yeah, we understand that, However, in order to support multi-task learning, the architecture needs to be changed in such a way that it has to implement multiple heads.
We are working on this in a future release

font{
    line-height: 1.6;
}
ul,ol{
    padding-left: 20px;
    list-style-position: inside;
}

    thank you man.
    I'm looking forward to it.

<PHONE_NUMBER>

<EMAIL_ADDRESS>

    签名由
    网易邮箱大师
    定制

On 3/20/2021 19:49，Tharindu<EMAIL_ADDRESS>wrote：

@leileilin yeah, we understand that, However, in order to support multi-task learning, the architecture needs to be changed in such a way that it has to implement multiple heads.
We are working on this in a future release
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.


feat: Adding raw blocks as leafs in DirectoryBuilder

In my case I need to manually craft directories, namely adding pre-existent nodes as children for new directory. Here are changes to support adding blocks in DirectoryBuilder

I have refactored code here as you suggested @rklaehn. Take a look plz when you'll have a time

Hello! The code that was previously hosted in this repository has been moved to n0-computer/beetle. beetle is in maintenance mode, but will still accept PRs.
If you are still interested in getting your PR merged, please re-open your PR on n0-computer/beetle.
Check out our blog post for more info on our new direction for iroh: https://n0.computer/blog/a-new-direction-for-iroh/


php7  error bug?

ale_sign_error
ale_sign_style_error
They are same.

1~3   should be style error
4 is syntax error

I'm trying to understand what you're saying. Do you want to change the signs for some of the problems, so some are style errors?
Please include the output of :ALEInfo, as mentioned in the issue template. Then I will be able to see the output of the program, which will be useful for making any changes needed to the linter.

yeh,
This shuold be style error.

This shuold be syntax error

sign symbol are same.
I just set
let g:ale_sign_error = '✗' let g:ale_sign_warning = '⚠' let g:ale_sign_style_error  = '>>' let g:ale_sign_style_warning  = '>' let g:ale_statusline_format = ['✗ %d', '⚠ %d', '✔ OK']
:ALEInfo  return
`
(finished - exit code 255) ['/bin/zsh', '-c', 'php -l -d error_reporting=E_ALL -d display_errors=1 -- < ''/tmp/vzYYyf6/3/a.php''']
<<>>
Parse error: syntax error, unexpected ',', expecting end of file in - on line 4
Errors parsing -
<<>>
(finished - exit code 2) ['/bin/zsh', '-c', '''phpcs'' -s --report=emacs --stdin-path=''/home/u/a.php''  < ''/tmp/vzYYyf6/4/a.php''']
<<>>
/home/u/a.php:2:1: error - Missing file doc comment (PEAR.Commenting.FileComment.Missing)
/home/u/a.php:2:1: error - Missing function doc comment (PEAR.Commenting.FunctionComment.Missing)
/home/u/a.php:2:17: error - Opening brace should be on a new line (PEAR.Functions.FunctionDeclaration.BraceOnSameLine)
`

Okay, thank you for clarifying. Maybe someone who knows PHP well can have a look at this.

If we refer to autoload/ale/sign.vim, ale tries to grep pattern from output to determine the level :
for l:item in a:sublist
    if l:item.type is# 'I'
        let l:item_priority = s:info_priority
    elseif l:item.type is# 'W'
        if get(l:item, 'sub_type', '') is# 'style'
            let l:item_priority = s:style_warning_priority
        else
            let l:item_priority = s:warning_priority
        endif
    else
        if get(l:item, 'sub_type', '') is# 'style'
            let l:item_priority = s:style_error_priority
        else
            let l:item_priority = s:error_priority
        endif
    endif

    if l:item_priority < l:priority
        let l:priority = l:item_priority
    endif
endfor

PHPCS output /home/u/a.php:2:1: error - Missing file doc comment (PEAR.Commenting.FileComment.Missing) seems to not starting by a I, nor a W, and does not contains style str, so it seems legit it goes for an error_priority

Yes. If an error or warning is to be reported as a style error or warning, the sub_type key has to be set to 'style'.

phpcs is a code style checker, I simply add sub_type field in phpcs.vim. The syntax error is reported by php.
function! ale_linters#php#phpcs#Handle(buffer, lines) abort
    " Matches against lines like the following:
    "
    " /path/to/some-filename.php:18:3: error - Line indented incorrectly; expected 4 spaces, found 2 (Generic.WhiteSpace.ScopeIndent.IncorrectExact)
    let l:pattern = '^.*:\(\d\+\):\(\d\+\): \(.\+\) - \(.\+\) (\(.\+\))$'
    let l:output = []

    for l:match in ale#util#GetMatches(a:lines, l:pattern)
        let l:code = l:match[5]
        let l:text = l:match[4] . ' (' . l:code . ')'
        let l:type = l:match[3]

        call add(l:output, {
        \   'lnum': l:match[1] + 0,
        \   'col': l:match[2] + 0,
        \   'text': l:text,
        \   'type': l:type is# 'error' ? 'E' : 'W',
        \   'sub_type': 'style',
        \})
    endfor

    return l:output
endfunction


Added lxml to requirements

Added lxml requirement, since it is used as the bs parser in app.py:getCommits(). Otherwise if you don't have lxml installed, that func will fail and throw an exception, resulting in no git commits showing up.
Another option would be just to remove lxml and just use the builtin default html parser in BeautifulSoup

Looks good to me.

I know this is 3 years old but I'm reviewing the PR. If LXML is used, it should be added to requirements.txt.


FOR RUSLAN: app/interactors/add_collaborator.rb in send_collaboration_email! at line 73 Aws::SQS::Errors::InternalError: We encountered an internal error. Please try again.

https://app.getsentry.com/bit-zesty-client-apps/qae/group/63682510/

@matthewford looks like we can ignore it?
https://github.com/aws/aws-sdk-ruby/issues/185
As it Aws::SQS::Errors::InternalError an will be fixed by retry of scheduled job

So was AWS Internal issues. closing


Add KCC port of fortigate-tutorial-gcp example - backport collaboration - while we integrate into the KCC Landing zone

We will be integrating as our 4 VPC base the example repo https://github.com/fortinet/fortigate-tutorial-gcp
into https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/tree/dev/solutions/landing-zone
Fortinet Team, this tutorial is excellent and deploys/runs without issue - thank you
In collaboration with your team, our team would like to add a 3rd port to use the kubernetes config controller to deploy the solution. We will contribute the kubernetes yaml code as we port it from both of your gcloud and terraform examples
Config Controller GCP component reference in use https://cloud.google.com/config-connector/docs/reference/overview
Documentation
https://github.com/GoogleCloudPlatform/pubsec-declarative-toolkit/blob/dev/solutions/landing-zone/architecture.md#fortigate-ha-active-standby-poc
Shadow Github Issues
Deploying the 4 nic 6 vpc example
https://github.com/fortinet/fortigate-tutorial-gcp/issues/1
Mirror
https://github.com/fortinet/fortigate-tutorial-gcp/issues/5

merge with #166

Add FortiEDR integration https://www.fortinet.com/content/dam/fortinet/assets/data-sheets/fortiedr.pdf


autocomplete="on" on input fields levels custom styles with browser styles

Using autocomplete="on" on an input field overrides custom styles on an input field with browser default styles. The code to reproduce below:

        Full Name

      <input id="full-name" type="text" placeholder="Jane Doe" autocomplete="on" class="form-input bg-teal-300 border border-blue-600 rounded w-full py-2 px-4 text-grey-800 leading-tight">

I can make it work with https://css-tricks.com/snippets/css/change-autocomplete-styles-webkit-browsers/ but that's basically duplicating my styles in non-tw manner.

Yep, this is slightly annoying
It makes sense from a UX perspective the autocomplete style is intended to prompt the user to double-check the fields that were autocompleted. It would be nice if tailwind provided a convenient means to clear these styles and apply our own.


Add simulator

I've already seen 2 pull request for "animation viewer" or "preview" features to make it easier to write animations.
Having looked at both in my opinion they're not very good, both are very slow to update and either require running in a web browser or significant modifications to the original code.
This pull request implements a better solution, it:

is self contained in a seperate file of only 25 lines
performs better than other implementations
is a drop in replacement for hardware neopixel, only requiring you to change 2 imports
does not modify the original code at all

To use it you just need to change 2 lines of code:
    # use real leds
    import board
    import neopixel

    # use simulator
    from sim import board
    from sim import neopixel

This seems to be the best simulator so far 👍

Hi @DutChen18, thanks for opening this PR! Matt asked me to help with maintaining this repository, and I think having a simulator available would be nice. I love some of the others which all look really polished - but this one stood out for its simplicity.
A few thoughts:

It would be great if the simulator could be run without changing the code. Would it be possible to add a command line argument? We could then conditionally import the simulator similar to https://github.com/standupmaths/xmastree2020/pull/8.
It would be great if the simulator ran automatically for anyone without neopixel, which I assume will be the vast majority of people.
Just a little nit but there's a newline missing at the bottom!

Would you be willing to make a few changes based on those? Alternatively, with your permission, I'd be happy to jump in and add a few extra commits. I appreciate that you may not have more time to spend on this.

Hi @DutChen18, thanks for opening this PR! Matt asked me to help with maintaining this repository, and I think having a simulator available would be nice. I love some of the others which all look really polished - but this one stood out for its simplicity.
A few thoughts:

It would be great if the simulator could be run without changing the code. Would it be possible to add a command line argument? We could then conditionally import the simulator similar to https://github.com/standupmaths/xmastree2020/pull/8.
It would be great if the simulator ran automatically for anyone without neopixel, which I assume will be the vast majority of people.
Just a little nit but there's a newline missing at the bottom!

Would you be willing to make a few changes based on those? Alternatively, with your permission, I'd be happy to jump in and add a few extra commits. I appreciate that you may not have more time to spend on this.


NGINX Config Update Needed To Get Forwarded IP

I'd like to be able to get access to the actual IP address without creating a fancy ingress service.  I've done some digging and it appears the following needs to be added to the nginx.config.
set_real_ip_from <IP_ADDRESS>;
set_real_ip_from <IP_ADDRESS>;
real_ip_header X-Forwarded-For;

But, I'm not sure what the IP addresses should be?  All of the traffic trusted? <IP_ADDRESS>/0?  For my deployment, I'm on GCP.
Here's the NGINX doc for reference:  http://nginx.org/en/docs/http/ngx_http_realip_module.html
And here's how to do it with Cloudflare: https://support.cloudflare.com/hc/en-us/articles/200170706-How-do-I-restore-original-visitor-IP-with-Nginx-

Actually, I realize this is only reverse proxy for the console, not GCP itself. False alarm!


Move Grammar cache to user's cache directory

blib2to3.pygram assumes that blib2to3's directory is writeable. This is
not the case for global installation of black on Linux distributions.
Fixes: https://github.com/ambv/black/issues/192
Signed-off-by: Christian Heimes<EMAIL_ADDRESS>

Alternative approach for #203
If you like the approach, I'll add some unit tests for the cache, too.

Pull Request Test Coverage Report for Build 382

123 of 126 (97.62%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.1%) to 95.754%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

black.py
123
126
97.62%

Totals

Change from base Build 376:
0.1%

Covered Lines:
2210

Relevant Lines:
2308

💛  - Coveralls

Pull Request Test Coverage Report for Build 382

123 of 126 (97.62%) changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.1%) to 95.754%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

black.py
123
126
97.62%

Totals

Change from base Build 376:
0.1%

Covered Lines:
2210

Relevant Lines:
2308

💛  - Coveralls

I like this approach! I used a different technique to minimize the number of changes to black.py and blib2to3 but your idea is what inspired it! Thanks.


Step missing assign workitem

"Set the Link type to Parent and search for “credit card” ". The work item first needs to be assigned, by default it's unassigned and therefore the workitem will not appear in the search results. The step of assigning the workitem is missing.

The suggested items to link are pulled from your most recently edited items. if you make any change to the target work item (like assigning ownership), the feature should then show up at the top of the default suggestions.
However, this isn't necessary for the lab. If you run the search for "credit card" (explicitly clicking the search), the target feature should appear. I just confirmed it in a test project, so if that's not working for you, it's probably due to an issue during project creation.
We have had it happen where no work items for this particular project will show up during a query. This seems to have something to do with a silent failure somewhere during the automated demo project creation and was resolved by just re-creating the project.


Remove /var/log//.log after all components are stopped

Fixes https://github.com/code-ready/snc/issues/295
It will remove around 300MB of logs uncompressed.

It works fine if I remove everything. PTAL.


kube_pod_container_status_restarts_total | to filter the last 3 created pods

Hi,
I need help in filtering the query on the last 3 most recently created pods. Any help will be appreciated.
Thanks
Neha

Thanks for your report. It looks as if this is actually a question about usage and not development.
It makes more sense to ask questions like this on the prometheus-users mailing list rather than in a GitHub issue. On the mailing list, more people are available to potentially respond to your question, and the whole community can benefit from the answers provided.


parted: error while loading shared libraries

Describe the bug
While I am trying to install NixOS and following the install manual with the command parted (the very first command) then I got the following error.
parted: error while loading shared libraries: /nix/store/rmc7nwnzcbzbrah6ma9xfi26jpzrhx9s-readline-6.3p08/lib/libreadline.so.6: cannot read file data: Input/Output error

To Reproduce

I am using rufus to boot with an USB on to my old Vaio laptop.
Start Konsole and enter command parted.

Additional context
Just cannot install NixOS properly. 😕

I cannot reproduce, neither on 20.03 nor or master. Can you run nix-info and report the output ?

I think this is something do to the USB drive? While I am installing NixOS, I assume I cannot eject USB. I think that is the issue, and now I know I should not eject the USB even though NixOS is already boot up. Sorry for disturbing! Close this for now.


Problem setting  root directory with Wix Setup editor

When I create a WiX merge module project and attempt to use the WiX setup editor to configure it, the root directory is "MergeRedirectFolder" in the initial wxs file, and the editor will not recognise this as a root directory. A red warning icon is next to the Root Directory entry, and this prevents me from setting anything else up with the editor.  I am presuming that Wax can be used to configure merge module Wix projects?

No, I never have tried it with a merge module. The problem seems to be the special "MergeRedirectFolder" does not have a name attribute. Wax ignores directory entries without name, since in a regular setup project you always have an explicit directory where you want to install. I'll see if this restriction can be relaxed so it also works with merge modules.
As a workaround you could add a temporary name to the "MergeRedirectFolder" and then remove it after editing.

Hi Tom
Thanks for the quick reply. I tried the same thing with Setup Library project and I had the same problem, but from what you have said that is to be expected as in a blank wix library project there are no directory entries at all.
I’d be really interested in seeing restrictions lifted – Wax takes the heavy lifting out of Wix, and quite apart from that is excellent way of learning how to do things in Wix.
Best regards
Robert
From: tom-englert<EMAIL_ADDRESS>Sent: 08 December 2016 08:49
To: tom-englert/Wax<EMAIL_ADDRESS>Cc: Robert Jack<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [tom-englert/Wax] Problem setting root directory with Wix Setup editor (#12)
No, I never have tried it with a merge module. The problem seems to be the special "MergeRedirectFolder" does not have a name attribute. Wax ignores directory entries without name, since in a regular setup project you always have an explicit directory where you want to install. I'll see if this restriction can be relaxed so it also works with merge modules.
As a workaround you could add a temporary name to the "MergeRedirectFolder" and then remove it after editing.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/tom-englert/Wax/issues/12#issuecomment-265686021, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AXTgpZfW474lf8jl1YBiMpw_LBoeiSWDks5rF8SUgaJpZM4LGupp.
Click herehttps://www.mailcontrol.com/sr/8vF95olOlVHGX2PQPOmvUlRg0f8c3ZDC7eBP6palgg5uGwbCy9oxXTWhegOXgujUifdNby6mqu1kxH4nYzTQYQ== to report this email as spam.

Thanks Tom
From: tom-englert<EMAIL_ADDRESS>Sent: 11 December 2016 16:16
To: tom-englert/Wax<EMAIL_ADDRESS>Cc: Robert Jack<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [tom-englert/Wax] Problem setting root directory with Wix Setup editor (#12)
Closed #12https://github.com/tom-englert/Wax/issues/12 via fce4a83https://github.com/tom-englert/Wax/commit/fce4a83fbc8302ede3980d645272b4c2f6c38b0d.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/tom-englert/Wax/issues/12#event-889607284, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AXTgpddYEgWhGvQjjKBVQa75DJED--flks5rHCGqgaJpZM4LGupp.
Click herehttps://www.mailcontrol.com/sr/5Dq!MuQwc0nGX2PQPOmvUujshICbHL2siPko2XsiGTtozTptKOO5y5FJVAq6KYRjn1FonbjgRHCMQcgptJ50Pg== to report this email as spam.

Hi Tom
I've noticed that the latest Wax releases no longer seem to work under VS2010 - the extension manifests have changed and it appears that VS2010 is no longer supported. Is there anyway to get the latest Wax versions to work with VS2010?
Best regards
Robert

Hi Robert,
I had to drop this since 2010 does not support the V2.0 manifests, but this is required to support VS2017.
However I think it should work if you build your own version with the latest sources; just rollback the .vsixmanifest to make it work with 2010 again.

Thanks Tom
From: tom-englert<EMAIL_ADDRESS>Sent: 24 December 2016 12:42
To: tom-englert/Wax<EMAIL_ADDRESS>Cc: Robert Jack<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [tom-englert/Wax] Problem setting root directory with Wix Setup editor (#12)
Hi Robert,
I had to drop this since 2010 does not support the V2.0 manifests, but this is required to support VS2017.
However I think it should work if you build your own version with the latest sources; just rollback the .vsixmanifest to make it work with 2010 again.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/tom-englert/Wax/issues/12#issuecomment-269082944, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AXTgpdilsC1KbtRPjb_Not4YDYpU4g8iks5rLRMagaJpZM4LGupp.
Click herehttps://www.mailcontrol.com/sr/fheUVqmcVgvGX2PQPOmvUqrlA1!9RTN2bBZeNuPPIKivDKlOubDQX6uaM9QhxjA2wGgE27XohKOzR1Lppn2zgQ== to report this email as spam.


Lang.choice not working properly.

https://github.com/rmariuzzo/Laravel-JS-Localization/issues/64

Released: https://github.com/rmariuzzo/Lang.js/releases/tag/v1.1.4

@rmariuzzo great job! :+1:


Wrap Tokio types in a configurable runtime

Hi LiveKit devs,
This is an initial implementation of the feature-flag mechanism we discussed earlier today. So far it's not been too much trouble to wrap Tokio types in a separate crate and only use the portable subset of Tokio. I'm opening this draft so y'all can follow along if you're interested, but will make it as ready for review once it's further along :)

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


Beginning of Board as Resource

What if the board size and shape was set at startup and was passed around as a Resource, instead of static?

I'll note that it doesn't compile at the moment.

Lets move development of this subject to #9, I fixed your code and added a window module. should close this PR.

Sketch only.


How to run Identity on multiple servers under a load balancer?

We currently have Identity server running on two web servers under a load balancer. We have a single client application and single resource API, both running in .net core, running on two web servers under a load balancer as well.
We have an issue when authenticating with the client application it returns a 400 error. We think it is because the request is hopping between the two identity servers and is getting confused. The client application and resource API authenticate fine when Identity is running on a single server under the load balancer with the exact same settings.
An unhandled exception occurred while processing the request.

HttpRequestException: Response status code does not indicate success: 400 (Bad Request).
MoveNext

AggregateException: Unhandled remote failure. (Response status code does not indicate success: 400 (Bad Request).)
MoveNext

We have double checked return URLs and other client settings on all our applications and it appears to be fine hence it working with a single instance of our Identity server.
We have a log output from a basic authentication request between the our client application and Identity server below.
Concatenated logs from both servers

And you've read this? https://identityserver.github.io/Documentation/docsv2/advanced/deployment.html

Yeah we've read the docs and many other blog posts etc and are still a little confused. In the documentation it covers certs and we are currently using the default test certs (idsvr3test.pfx) on both servers due to being unsure of where we are meant to keep them. Also we aren't sure if we should have a single shared cert or multiple machine specific certs (or if this just our choice and it makes no difference).
We are currently loading the cert (.pfx) directly from the file system, not from a cert store.
var cert = new X509Certificate2(Path.Combine(_environment.ContentRootPath, "idsvr3test.pfx"), "idsrv3test");

You need an SSL cert for HTTPS and that's used by IIS and that needs to be from a trusted CA. You need another cert for signing and that's used by IdentityServer and that can be a self-signed cert. You should not use the SSL cert for signing -- you want 2 distinct certs. Both are typically stored in the windows certificate store.

We got SSL setup no problem. The part we are confused about is the .pfx file we load in using the line of code above which as far as we're aware doesn't have anything to do with SSL.
Our question is what if anything do we have to do with that second cert (signing cert) to get it working on production or more specifically on multiple servers?
Did you manage to whiz through the log attached above. We have the following, does this mean that there is an issue with the signing cert setup?

...
2016-09-23 15:09:47.443 +01:00 [Error] Authorization code cannot be found in the store: d2912c5e46194cd8a22cbafb3423e286
...

which as far as we're aware doesn't have anything to do with SSL

You're right, it doesn't.

Our question is what if anything do we have to do with that second cert (signing cert) to get it working on production or more specifically on multiple servers

Just share it across all the servers. Or if you're using the cert store, export it from one, and import it to the other (and ensure the private key is included).

When you say share what exactly do you mean? The idsvr3test.pfx currently resides on all the Identity servers.
Also if possible we want to avoid using the windows cert store, are there any downsides to not using the cert store?

The cert store is the most secure location on a Windows machine to store key material.

Ok, but is there a way to avoid using cert store (windows, azure keyvalut, etc.) or it is a must have? and if it is avoidable what are the steps to get it working on multiple instances of identityserver?

It is not a must have. Just a recommendation for situations where you have access to it. In Azure you can e.g. deploy the cert via the portal.
Any other mechanism of securely storing the cert is fine as well.

Wait why did this get closed my original question hasn't been answered.
I have a situation where I have "shared" copied the .pfx file to all the servers where Identity is running so each one has access to it (not sure if this what you meant by share since you didn't specify) and it doesn't work (not sure if it's the cert at this point).
I was hoping you would point me in any other direction than, or elaborate on, the documentation that I have read but maybe not entirely understood.

Can't see any cert related problems in your logs. Rather there seems to be an issue with auhorization codes. How do you store them?

Thank you. That question pointed us in the right direction and we now have it running on multiple servers and successfully authenticating 👍
The way we were storing the operational data particularly the authorization codes... we weren't. So we looked at the Identity Server Entity Framework implementation and learned what we needed to implement from that, used the JSON serialization stuff to avoid storing a big ol' object and the rest from there was easy SQL.

So we can close this now?

Yeah 👍

Thanks guys for your help!

Hi all,

And you've read this? https://identityserver.github.io/Documentation/docsv2/advanced/deployment.html
it's an old post but
@brockallen is3 documentation ? Will we consider is3 documentation
or is4 version, or both?
http://docs.identityserver.io/en/release/topics/deployment.html
About the second; how can I determine the required Forwarded Headers ? By checking LB brand?
regards.


Increase testing

Codecov Report

Merging #50 into master will increase coverage by 3.93%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #50      +/-   ##
==========================================
+ Coverage   67.35%   71.28%   +3.93%
==========================================
  Files          22       17       -5
  Lines         242      101     -141
  Branches       31       14      -17
==========================================
- Hits          163       72      -91
+ Misses         68       26      -42
+ Partials       11        3       -8

Impacted Files
Coverage Δ

src/firebase/firebase.ts

src/githubapi.ts

src/dlog.ts

src/pubsub/pubsub.ts

src/firebasekick.ts

Continue to review full report at Codecov.

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


Autocomplete dupilicate value when have more than 1 obj in page

Bug, feature request, or proposal:
Bug: Autocomplete dupilicate value when have more than 1 obj in page
What is the expected behavior?
When i have more autocomplete obj i need to use un'dupilicate object same i declare
What is the current behavior?
autocomplete tool , state and project dupilicate value
What are the steps to reproduce?
Plunker template: link https://plnkr.co/edit/8ogCzPZeoUr33zc9qho8?p=preview
What is the use-case or motivation for changing an existing behavior?
In one page i want to use more than one Autocomplete
Which versions of Angular, Material, OS, browsers are affected?
windows 10 , GoogleChrome
Is there anything else we should know?

should have more example in this link
https://material.angular.io/components/component/autocomplete
if you have more example you will see more bug before
2)
I need to filter more than one properties in  my link plnkr show filter only name but if i want to filter name and lastname how can i do? use //   new RegExp(val, 'gi').test(s.namex + s.lastnamex)) // ?? its will be ok?
//--//--//--//
thank to much.

@uopeydel Each autocomplete needs a unique template variable. Currently you are using the same template variable for both autocomplete triggers. If you rename one of them, it should work.
Example: https://plnkr.co/edit/ggUOK1MAZ4NfFXzOzBXF?p=preview

ok this mean i will change [mdAutocomplete]="auto"  to  [mdAutocomplete]="stateAuto" when i have more than one Autocomplete  BUT  now i test to change no one is [mdAutocomplete]="auto" it will be error , i dont want to use "auto" word how do i can ? it not make sense to use auto at lest one ...


Fixed position orientationchange bug

I would like to notify that there is a bug on device orientationchange if the marzipano container is fixed position or inside an element with fixed position. Why use fixed position? Because it is necessary when creating a modal panorama viewer that opens when visitor clicks a link in a scrollable page.
Example
Try opening in iOS and rotating device after load:
https://panorama.photo.gallery/test/fixed.html

Current hack
It seems to work fine when using width: 100vw; height: 100vh instead of width: 100%; height: 100%. I'd prefer to avoid vw and vh though, as they do not take scrollbar into consideration. In my production, I am applying this fix only for devices that support orientationchange.
https://panorama.photo.gallery/test/fixed-fixed.html

Interesting. We do listen for the window resize event and update the stage size by reading the clientWidth and clientHeight properties of the viewer element (code here).
So either a) window resize is not fired when you rotate the phone, or b) our logic produces incorrect width/height values.
I don't have an iOS device to test on at the moment. Could you try and figure out which one is it?

iOS definitely triggers resize event on device orientation change. Also, the issue is corrected when executing viewer.updateSize() after a timeout on orientationchange, so it's not directly related to Marzipano width/height logic either.
window.addEventListener('orientationchange', function() {
  setTimeout(function(){
    viewer.updateSize();
  }, 500);
}, false);

I think it's safe to conclude that with position: fixed, the resize event somehow triggers before the elements clientWidth and clientHeight are updated. Or to be more precise, the elements relative width:100%; height: 100% are updated after the resize event triggers. Somehow, this is remedied by using width:100vw; height: 100vh.
Considering the above, I was wondering how this was handled in Photoswipe, and it seems there is a _orientationChangeTimeout fix for iOS devices.
dimsemenov/PhotoSwipe#1315
https://github.com/dimsemenov/PhotoSwipe/issues/1315
https://github.com/dimsemenov/PhotoSwipe/commit/d8762097918bddf4afb45be4414ac6289a9cade8

Thanks for investigating.
I did some testing today and it appears that only iOS 10.x is affected; iOS 11.x and 12.x aren't. This was on the Xcode simulator, so results may differ from an actual device. Did you manage to reproduce this on the latest iOS?
There's also a bug report on Open Radar (https://openradar.appspot.com/radar?id=5040881597939712) suggesting that the required timeout value is dependent on page layout. This puts me on the fence about baking the workaround into Marzipano.

Chrome and Firefox on iOS use Safari's rendering engine. I suspect that they are still using an older version where the bug hasn't been fixed.
I'm closing this bug as this is best worked around by library clients. Thanks for looking into it.


⚠ Bofrost.fr has degraded performance

In a4a93ae, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1064 ms

Resolved: Bofrost.fr performance has improved in 16b3ae2 after 11 minutes.


Out of Memory / Invalid allocation in lmfArray resizeErase (72828572, 72837441)

Hello OpenEXR team,
As part of our fuzzing efforts at Google, we have identified an issue affecting
OpenEXR (tested with revision * develop 165dceaeee86e0f8ce1ed1db3e3030c609a49f17).
To reproduce, we are attaching a Dockerfile which compiles the project with
LLVM, taking advantage of the sanitizers that it offers. More information about
how to use the attached Dockerfile can be found here:
https://docs.docker.com/engine/reference/builder/
TL;DR instructions:

mkdir project
cp Dockerfile.OpenEXR /path/to/project/Dockerfile
docker build --no-cache /path/to/project
docker run -it image_id_from_docker_build

From another terminal, outside the container:
docker cp /path/to/attached/reproducer running_container_hostname:/fuzzing/reproducer
(reference: https://docs.docker.com/engine/reference/commandline/cp/)
And, back inside the container:
/fuzzing/repro.sh /fuzzing/reproducer
Alternatively, and depending on the bug, you could use gcc, valgrind or other
instrumentation tools to aid in the investigation. The sanitizer error that we
encountered is here:
==28==WARNING: AddressSanitizer failed to allocate 0xffffffffffffffff bytes
==28==AddressSanitizer's allocator is terminating the process instead of returning 0
==28==If you don't like this behavior set allocator_may_return_null=1
==28==AddressSanitizer CHECK failed: /build/llvm-toolchain-3.9-Qw1aQB/llvm-toolchain-3.9-3.9.1/projects/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cc:199 "((0)) != (0)" (0x0, 0x0)
    #0 0x4db5ff in __asan::AsanCheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) (/fuzzing/openexr_fuzz_tiles+0x4db5ff)
    #1 0x4f5325 in __sanitizer::CheckFailed(char const*, int, char const*, unsigned long long, unsigned long long) (/fuzzing/openexr_fuzz_tiles+0x4f5325)
    #2 0x4e0596 in __sanitizer::ReportAllocatorCannotReturnNull() (/fuzzing/openexr_fuzz_tiles+0x4e0596)
    #3 0x428d0c in __asan::asan_memalign(unsigned long, unsigned long, __sanitizer::BufferedStackTrace*, __asan::AllocType) (/fuzzing/openexr_fuzz_tiles+0x428d0c)
    #4 0x5087d8 in operator new[](unsigned long) (/fuzzing/openexr_fuzz_tiles+0x5087d8)
    #5 0x7f41c23d3557 in Imf_2_2::Array<char>::resizeErase(long) /fuzzing/openexr/OpenEXR/IlmImf/./ImfArray.h:196:14
    #6 0x7f41c23d3042 in Imf_2_2::OpaqueAttribute::readValueFrom(Imf_2_2::IStream&, int, int) /fuzzing/openexr/OpenEXR/IlmImf/ImfOpaqueAttribute.cpp:100:11
    #7 0x7f41c23b820b in Imf_2_2::Header::readFrom(Imf_2_2::IStream&, int&) /fuzzing/openexr/OpenEXR/IlmImf/ImfHeader.cpp:1219:9
    #8 0x7f41c24de3d6 in Imf_2_2::MultiPartInputFile::initialize() /fuzzing/openexr/OpenEXR/IlmImf/ImfMultiPartInputFile.cpp:316:16
    #9 0x7f41c24df0e0 in Imf_2_2::MultiPartInputFile::MultiPartInputFile(Imf_2_2::IStream&, int, bool) /fuzzing/openexr/OpenEXR/IlmImf/ImfMultiPartInputFile.cpp:161:9
    #10 0x7f41c2481cbc in Imf_2_2::TiledInputFile::compatibilityInitialize(Imf_2_2::IStream&) /fuzzing/openexr/OpenEXR/IlmImf/ImfTiledInputFile.cpp:862:32
    #11 0x7f41c24813d1 in Imf_2_2::TiledInputFile::TiledInputFile(char const*, int) /fuzzing/openexr/OpenEXR/IlmImf/ImfTiledInputFile.cpp:714:6
    #12 0x7f41c24b0efa in Imf_2_2::TiledRgbaInputFile::TiledRgbaInputFile(char const*, int) /fuzzing/openexr/OpenEXR/IlmImf/ImfTiledRgbaFile.cpp:773:21
    #13 0x50bada in fuzzImage(char const*) /fuzzing/security-research-pocs/autofuzz/openexr_fuzz_tiles.cc:135:14
    #14 0x50b9c5 in LLVMFuzzerTestOneInput /fuzzing/security-research-pocs/autofuzz/openexr_fuzz_tiles.cc:178:3
    #15 0x514d3c in fuzzer::Fuzzer::ExecuteCallback(unsigned char const*, unsigned long) (/fuzzing/openexr_fuzz_tiles+0x514d3c)
    #16 0x5144fe in fuzzer::Fuzzer::RunOne(unsigned char const*, unsigned long) (/fuzzing/openexr_fuzz_tiles+0x5144fe)
    #17 0x50e36d in fuzzer::RunOneTest(fuzzer::Fuzzer*, char const*) (/fuzzing/openexr_fuzz_tiles+0x50e36d)
    #18 0x50f83f in fuzzer::FuzzerDriver(int*, char***, int (*)(unsigned char const*, unsigned long)) (/fuzzing/openexr_fuzz_tiles+0x50f83f)
    #19 0x50e21c in main (/fuzzing/openexr_fuzz_tiles+0x50e21c)
    #20 0x7f41c0fbf2b0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202b0)
    #21 0x4210e9 in _start (/fuzzing/openexr_fuzz_tiles+0x4210e9)

One immediate suggestion is to ensure that APIs such as resizeErase and
resizeEraseUnsafe reject negative values and propagate an error status back to
callers (or if this is only used internally, modifying all call sites to perform
similar checks).
We will gladly work with you so you can successfully confirm and reproduce this
issue. Do let us know if you have any feedback surrounding the documentation.
Once you have reproduced the issue, we'd appreciate to learn your expected
timeline for an update to be released. With any fix, please attribute the report
to "Google Autofuzz project".
We are also pleased to inform you that your project is eligible for inclusion to
the OSS-Fuzz project, which can provide additional continuous fuzzing, and
encourage you to investigate integration options.
Don't hesitate to let us know if you have any questions!
Google AutoFuzz Team
artifacts_72828572.zip

Duplicate of #248, and now fixed in PR #436


serde: Only executables and rlibs can be compiled with -Z sanitizer

I'm not able to use the sanitizer with one of my program since it uses serde and serde_derive won't build using -Z sanitizer. I'm able to reproduce with:
#[macro_use]
extern crate serde_derive;

extern crate serde_json;

#[derive(Serialize, Deserialize, Debug)]
struct Point {
    x: i32,
    y: i32,
}

fn main() {
    let point = Point { x: 1, y: 2 };

    // Convert the Point to a JSON string.
    let serialized = serde_json::to_string(&point).unwrap();

    // Prints serialized = {"x":1,"y":2}
    println!("serialized = {}", serialized);

    // Convert the JSON string back to a Point.
    let deserialized: Point = serde_json::from_str(&serialized).unwrap();

    // Prints deserialized = Point { x: 1, y: 2 }
    println!("deserialized = {:?}", deserialized);
}

rustc 1.17.0-nightly (0e7727795 2017-02-19)
$ RUSTFLAGS="-Z sanitizer=thread" cargo run
   Compiling dtoa v0.4.1
   Compiling itoa v0.3.1
   Compiling quote v0.3.13
   Compiling unicode-xid v0.0.4
   Compiling serde v0.9.7
   Compiling num-traits v0.1.36
   Compiling synom v0.11.0
   Compiling syn v0.11.6
   Compiling serde_json v0.9.7
   Compiling serde_codegen_internals v0.13.0
   Compiling serde_derive v0.9.7
error: Only executables and rlibs can be compiled with `-Z sanitizer`

error: aborting due to previous error

error: Could not compile `serde_derive`.

RUSTFLAGS="-Z sanitizer=thread" cargo run

Use --target x86_64-unknown-linux-gnu.
$ RUSTFLAGS="-Z sanitizer=thread" cargo run --target x86_64-unknown-linux-gnu

This is in the README:

Be sure to always pass --target x86_64-unknown-linux-gnu to Cargo or else you'll end up sanitizing the build scripts that Cargo runs or run into compilation error if your crate depends on a dylib.

It's fine with --target x86_64-unknown-linux-gnu. Sorry about that. I should have known.


Fixed CBL-511 that resolves 2 deleted docs

If both local and remote doc are deleted doc, automatically resolve by using the deleted remote doc.

The PR validation fails are due to the revID format revert change in LiteCore.

Beside the PR validation failure which is sort of unrelated, this PR is ready to review.

The reason that I didn't move the logic down to the resolveConflict(resolver, docID, localDoc, remoteDoc) because it doesn't call resolver to resolve the conflict.


Visual Studio 2019 Build does not currently work without call to premake5/slang-llvm

At present, the existing .SLN files for Visual Studio 2019 do not work without slang-llvm being installed via premake5. slang-llvm is not, at present, installed by running a git submodule init. Consequently, when building out of the box, MSVC produces the following errors:
2>------ Build started: Project: slang, Configuration: Release x64 ------
2>slang.vcxproj -> D:\academia\slang\bin\windows-x64\release\slang.dll
2>File not found - slang-llvm.dll
2>File not found - slang-glslang.dll
2>D:\Program Files (x86)\Microsoft Visual
Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5):
error MSB3073: The command "IF EXIST
..\..\..\external\slang-llvm\bin\windows-x64\release\slang-llvm.dll\
(xcopy /Q /E /Y /I
..\..\..\external\slang-llvm\bin\windows-x64\release\slang-llvm.dll
..\..\..\bin\windows-x64\release > nul) ELSE (xcopy /Q /Y /I
..\..\..\external\slang-llvm\bin\windows-x64\release\slang-llvm.dll
..\..\..\bin\windows-x64\release > nul)
2>D:\Program Files (x86)\Microsoft Visual
Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5):
error MSB3073: IF EXIST
..\..\..\external\slang-glslang\bin\windows-x64\release\slang-glslang.dll\
(xcopy /Q /E /Y /I
..\..\..\external\slang-glslang\bin\windows-x64\release\slang-glslang.dll
..\..\..\bin\windows-x64\release > nul) ELSE (xcopy /Q /Y /I
..\..\..\external\slang-glslang\bin\windows-x64\release\slang-glslang.dll
..\..\..\bin\windows-x64\release > nul)
2>D:\Program Files (x86)\Microsoft Visual
Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5):
error MSB3073: :VCEnd" exited with code 4.
2>Done building project "slang.vcxproj" -- FAILED.
========== Build: 1 succeeded, 1 failed, 14 up-to-date, 0 skipped ==========

I would suggest that either:
a) premake be a requirement for building on Windows, and the documentation be changed appropriately; or
b) when this is fixed, a test be added to the Windows CI Buildbot to make sure that both the versions with, and without, premake work; or
c) slang-llvm is included as an external (Theresa suggested in conversation that there was a deliberate design decision not to do this, which is cool.)

Closing due to low priority and we may consider switching to CMake in the future.


Query with Group with table name

Your issue may already be reported! Please search on the issue track before creating one.
To report a bug, your issue have to include an GORM playground pull request link, for general questions, please delete below line.
GORM Playground Link: https://github.com/go-gorm/playground/pull/7
2020/06/25 19:01:09 /opt/go/apps/playground/main_test.go:31 no such column: users.name
[0.296ms] [rows:0] SELECT AVG(age) as age, name FROM users WHERE name LIKE "subquery_having%" AND users.deleted_at IS NULL GROUP BY users.name HAVING AVG(age) > (SELECT AVG(age) FROM users WHERE name LIKE "subquery_having%")

Hi @efrengarcial
Thank you for your report, fixed that, please upgrade the database driver to latest version.


Add graphics to pages

[x] Backround
[x] Climateroleaccordion
[x] Summarypage
[x] Groupsummarypage
[x] navbar compass
[x] favicon compass
[x] Landingpage cards
[x] Landingpage climate compass
[x] Factquiz summary page
[ ] FAQ page
[ ] Climate compass to survey pages? If it looks good

Waiting on Landingpage card visuals from Inka. After this is done, change priority to small.

Climate compass to survey pages & FAQ is not priority

Landing page card visuals have been added as part of #453, priority of task has been moved from medium to small.

Changed size to small, only a few changes to be made if we feel like it.


add structured json-ld organization, twitter link

Thank you for contributing!Preview these changesLink expires: Sun Oct  7 06:48:20 UTC 2018Note: it may take a moment for the branch to deploy. Check all pending travis builds have completed

Thank you for contributing!Preview these changesLink expires: Sun Oct  7 06:53:22 UTC 2018Note: it may take a moment for the branch to deploy. Check all pending travis builds have completed

Thank you for contributing!Preview these changesLink expires: Sun Oct  7 07:02:54 UTC 2018Note: it may take a moment for the branch to deploy. Check all pending travis builds have completed


[OpenAI Translator] Dynamic OpenAI & Ollama Model List

Description

Added dynamic retrieval of OpenAI & Ollama model lists. Fixed #14619
Fixed issue where custom models were lost when re-editing the provider
Fixed Missing languages #14618

Screencast
Checklist

[X] I read the extension guidelines
[X] I read the documentation about publishing
[X] I ran npm run build and tested this distribution build in Raycast
[X] I checked that files in the assets folder are used by the extension itself
[X] I checked that assets used by the README are placed outside of the metadata folder

Hi 👋
Looks good to me, approved 🔥


Plot characteristics for shocks and rarefactions in nonconvex notebook.

This is implemented in a fairly crude way for now -- I just take the solution q(xi) and try to detect where it is constant, continuous, or discontinuous.  Then shocks are plotted at points of discontinuity and rarefaction fans over continuously-varying regions.  It's somewhat sensitive to how many points one chooses to sample, since it's trying to determine smoothness based on differences.
Here's a screenshot:

@rjleveque regarding your comments on this update: I agree, there are several issues with the plots.  I just wanted to check whether you thought this was the right general direction before I spent time fine-tuning things.


Unlock issue #2016

The issue was locked without any comment, and without addressing https://github.com/serde-rs/serde/issues/2016#issuecomment-1019423610, which imho deserves a response.

serde_derive is in maintenance mode and only gets critical bug fixes or whatever maintainers find the intrinsic motivation and time for. There are workarounds for this, so it's not something to spend valuable time on


DRJ-156 - Update dependencies

Instead of adding new dependencies, I suggest to upgrade the root dependencies installing the problematic nested ones.
You can use npm ls [dependency] to find what dependencies are using the problematic ones so we can upgrade them.

So I had to upgrade Cypress to v5, which requires to remove the sourceMap config to make the test work


chore: Update to Smithy 1.44.0

Issue #
#1332
Description of changes
Update to use Smithy 1.44.0 (latest release).
New/existing dependencies impact assessment, if applicable
No new dependencies were added to this change.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Approved pending integration tests / CI passes


Fix for Appium Settings app install and network state change

Please merge the PR after https://github.com/appium/appium-adb/pull/208 and https://github.com/appium/io.appium.settings/pull/7 are merged and published

Published in<EMAIL_ADDRESS>