Customizing isPublic bahaviour doesn't always take effect.

I'm trying to reverse the bahaviour of the library. Instead of allow-listing, I want to implement deny-listing. I've read the README. I know it's not the ideal solution. But there's a restriction in our current setup that is forcing us to do deny-listing. At least for now.
So I started out by creating the type definitons for my new direction @undocumented:
directive @undocumented on OBJECT | FIELD_DEFINITION | ENUM | UNION | INTERFACE | INPUT_OBJECT | SCALAR | INPUT_FIELD_DEFINITION | ARGUMENT_DEFINITION

Then I customized the isPublic method to look for the existance of @undocumented instead of the default @public directive:
  return buildPublicSchema({
    schema: baseSchema,
    isPublic: (input: SharedExtensionAndDirectiveInformation): boolean => {
      const isPublic = !input.astNode?.directives
        ?.map((directive) => directive.name.value)
        .includes('undocumented');

      return isPublic;
    }
  });

And then I tried to annotate a type and a field defenition with @undocumented:
  type Lolo @undocumented {
    name: String
    dodo: Boolean
  }

  type Query {
    _empty: String @undocumented
  }

Expected behaviour: neither Query._empty nor  Lolo should be returned in the introspection schema.
Actual behaviour: Both fields are returned in the introspection schema.
If I remove my customization and use @public, the library is working as expected.

This is because the isPublic check will true for the ObjectType, which in return makes all the fields on the type public, due to the nature of how the library is implemented.
https://github.com/n1ru4l/graphql-public-schema-filter/blob/5169495f25d0c9009a0ebf388c9066dd8ad55c62/src/public-schema-filter.ts#L108-L115
This library's intension was never to inverse the isPublic behavior. I am willing to accept contributions that make this possible without breaking the existing behavior. Maybe it might be possible by providing more arguments to isPublic e.g. the type name.

Thanks for the quick response. I'll close this issue for now.


root_numpy dependency not documented, not easy to install

Also, apparently specific version(s) of ROOT and/or numpy might be required to get root_numpy to install. Please add info on which version(s) are "legal" to INSTALL.md and make some note of the dependency in the rooutils.py file EDIT: also in stages/unfold/roounfold.py). (I tried a quick pip install root_numpy and it failed asking for ROOTSYS, so if there is also a recipe for installing this, that'd be helpful.)

Also rooutils.py is gone, right, so closable, too..


Fixed a NPE where the SQL to format starts with a parentheses.

This can happen, for example, where there are two select statements
being union'ed together and the select statements are placed in
parentheses for readability.

For every Pull Request, we need:

A Jira issue so that we can track changes
A test case to replicate the problem the PR is fixing. Just take one test from hibernate-core and use it as a template for your test case.

Done: https://hibernate.atlassian.net/browse/HHH-12072

@ageery Thanks for creating the issue. Now, please provide a replicating test case.

It's attached to the JIRA ticket.
On Wed, Nov 1, 2017 at 9:31 AM, Vlad Mihalcea<EMAIL_ADDRESS>wrote:

@ageery https://github.com/ageery Thanks for creating the issue. Now,
please provide a replicating test case.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/hibernate/hibernate-orm/pull/2043#issuecomment-341106631,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAhN5IFiPG6xd_vVZGZyXGmZS-RVnQOlks5syHLKgaJpZM4QNWbw
.

@ageery Thanks, I'll take it from there,

Applied upstream, thanks


Missing argument from daemon config file: "metrics-addr"

File: engine/reference/commandline/dockerd.md, CC @mstanleyjones
I noticed the "metrics-addr" argument is not listed among the supported options in the section covering the allowed options in the linux config file for surfacing the prometheus endpoint.

@briantd , its there please check https://docs.docker.com/engine/reference/commandline/dockerd/#description

Yes, it is there. Sorry for the confusion.

@mstanleyjones -- apologies if my issue description didn't make sense.   I'm not talking about the description section at the TOP of the document, but rather the Linux and Windows daemon configuration files at the BOTTOM of the document: https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file

I see what you mean now. It's not really possible to keep those examples up to date manually. I filed an issue in moby/moby that may help.


Ambiguity on implicit conversions of UndefOr.

It looks like the merge of #2069 is making it impossible to write some expressions that could previously be written.
val a: UndefOr[String] = ...
a.orElse("b")

[error] ....: error: type mismatch;
[error]  found   : String("")
[error]  required: scala.scalajs.js.UndefOr[?]
[error] Note that implicit conversions are not applicable because they are ambiguous:
[error]  both method any2undefOrA in object UndefOr of type [A](value: A)scala.scalajs.js.UndefOr[A]
[error]  and method any2undefOrUnion in object UndefOr of type [A, B1, B2](a: A)(implicit ev: scalajs.js.|.Evidence[A,scala.scalajs.js.|[B1,B2]])scala.scalajs.js.UndefOr[scala.scalajs.js.|[B1,B2]]
[error]  are possible conversion functions from String("") to scala.scalajs.js.UndefOr[?]
[error]       a.orElse("")
[error]

A simple workaround that works in this case is:
val a: UndefOr[String] = ...
a.orElse("b": js.UndefOr[String])

Ouch. any2undefOrUnion should be made less prioritized than any2undefOrA, I suppose.

Probably.


Typing storybook shortcuts in inputs triggers them

For example, try typing s in an input: it opens / closes the storybook sidebar
Might be related to shadow dom? Because I don't remember having the same issues in other projects using storybook

I made some research and I think I understand why storybook triggers shortcut actions when typing in inputs.
I read this interesting article which reveals that:

Most of the standard UI events bubble and are composed with a few exceptions. There are a few exceptions like mouseenter and mouseleave that aren't bubbling and composed.

The key here is that composed events leak to the shadow dom when they bubble up the dom tree.
If add an event listener on the storybook root like this:
storybookRoot.addEventListener('keydown', (event) => { console.log(event.composedPath(), event.target)})

it gives this:

Therefore I suspect storybook to use the target property to know where the event originated from and if the event comes from within the shadow tree, the target element is the shadow host.
Will try to confirm that by searching in storybook's source code. Seems that could be fixable by using the result from composedPath()

Is it possible to block event bubbling so it doesn't exit the shadow dom (not sure we want that though) ?

Is it possible to block event bubbling so it doesn't exit the shadow dom (not sure we want that though) ?

Could work but only if the listener of the event which we want to prevent is not the shadow host. But I don't know if it's possible to change the bubbling behaviour of a standard event.

I wonder if the problem also affects storybook users who create custom elements (web components).

https://github.com/storybookjs/storybook/pull/24179

Fixed in storybook but also since we moved away from shadow dom.


JPA: Polymorphic classes with same field names being cast to incorrect class type

I have an object model I'm working with that features a set of polymorphic classes using the JPA joined inheritance strategy, so each subclass has its own table. The subclasses are not very normalized, so some classes and tables feature columns named the same, and this is the crux of the problem I've run into with QueryDSL.
When querying the base model and casting out to a subclass, the resulting SQL will incorrectly reference the first table in the join that features the column name queried. I have a simplified example of my issue.
Given this object model:
Post:

postId

ExpediaReview:

postId
rating
expediaUniqueField

HotelsReview:

postId
rating
hotelsUniqueField

You see both ExpediaReview and HotelReview have a field called rating. Now, if I want to write a query with a predicate on ExpediaReview I would do the following:
this.getQuerydsl().createQuery()
    .from(post)
    .where(
        post.instanceOf(ExpediaReview.class).and(post.as(QExpediaReview.class).rating.eq(5))
    )
    .list(post);

Here, I am querying the base object Post and writing a predicate clause on ExpediaReview. The QueryDSL looks good and compiles fine, however, the resulting SQL has an error:
select
    post1_.postId
from
    post post1_
left outer join
    hotels_review post1_3_
        on post1_.postId=post1_3_.postId
left outer join
    expedia_review post1_5_
        on post1_.postId=post1_5_.postId
where
    case
        when post1_3_.postId is not null then 27
        when post1_5_.postId is not null then 25
        when post1_.postId is not null then 'Post'
    end=?
    and (
        post1_3_.rating = 5
    )

You'll see, the actual where clause is referencing joined table post1_3_, which corresponds to HotelsReview and not ExpediaReview.
After playing around with the query, I've discovered that the issue is somehow related to both ExpediaReview and HotelsReview having a common field name. If I query a field like expediaUniqueField the where clause will reference the correct table.
The issue seems to stem from QueryDSL choosing the first polymorphic class with the field name in the query, which in this case is HotelsReview.
Obviously, everything works fine if I query ExpediaReview directly, but for my use case, I unfortunately have a complex query that will need to use the base table and reference into fields on each polymorphic table.
I'm using QueryDSL 3.7.4 with Hibernate 4.3.11.Final.
I'm unfamiliar with the source of QueryDSL, but I'd love to help track down this problem.

Adding also the Google Groups link for same issue: https://groups.google.com/forum/#!topic/querydsl/gGLolk4Khz8


[HIGH]: Decouple samples from prior/initial density

Feature Request

should be able to specify a distribution independent of a set of samples used for loading
three datasets should be packaged in 2D: uniform, normal with 95% of samples in (0,4), normal with 99% of samples in (0,4)
in 1D, same idea.
in 5D, just uniform
1000 samples for each, 100 sensors maximum
stop inferring distribution from filename
get rid of prefix handling

Must do:

default to log likelihoods in mud, don't compute the evidence for the posterior. It causes divide by zero errors.

Nice to haves:

decouple runner from pde example, make it entirely independent
pde 1D probably can be separated out since it has a different set of figures
can we attach the geometry study to the output as well?
check out contents of results.pkl and decide if it's worth keeping
refactor the experiment-handling methods to be more transparent in what they are doing. Use dictionaries as configs?

Other bugfixes:

[ ] matplotlib fontsize in comparison figures

mud_run_pde -d n --loc 0 --scale 1 -m 20 100 500  # unassuming prior
mud_run_pde -d n --loc -2 --scale 0.2 -m 20 100 500  # very nice comparison
mud_run_pde -d n --loc -2 --scale 0.1 -m 20 100 500  # too restrictive

I made extensive use of kwargs to support arbitrary distributions (so, this should work beyond just scipy in theory as long as methods .pdf exist).
if loc/scale not provided as kwargs, then we default to -2, 0.2 in Normal, -4, 4 in Uniform.
code not refactored yet, but the feature is working, and results can be put in front of Troy for review. Warrants a release candidate.
prefix handling is gone, prefix=results hard-coded into make_reproducible_without_fenics, shell scripts not updated.
still infer distribution from file name in order to pass sample_dist as an argument (if u (uniform), then use weighted KDE always... since if the prior/initial is uniform, it's fine, and if normal, beta, etc, then it's using the right tranformation with the weights set as the initial pdf evaluations).

also made some headway on moving functions around / modules. tests passing, see #33


Execution Platform Can Be Set for BPMN Diagrams

Similar to how the execution platform can be set for forms the execution platform version can be set for Platform and Cloud BPMN diagrams. The execution platform itself cannot be set before we introduce generic modeling (starting without execution platform).
Camunda Platform

As there are no linting rules for Camunda Platform planned so far setting the execution platform version wouldn't be necessary.

Camunda Cloud

[ ] exectution platform version can be set for Cloud BPMN diagrams (1.0, 1.1, 1.2)

Sketch

Child of https://github.com/camunda/camunda-modeler/issues/2464

@nikku Work in progress on https://github.com/camunda/camunda-modeler/tree/2464-bpmn-execution-platform-linting.


No published analyzer available for language version 2.14.0

Thank you for taking the time to file an issue!
This tracker is for issues related to:

Analyzer
Common Front End (CFE) and kernel
Dart core libraries ("dart:async", "dart:io", etc.)
Dart VM
dart2js
dev_compiler

Some other pieces of the Dart ecosystem are maintained elsewhere. Please
file issues in their repository:

Dart language: https://github.com/dart-lang/language
Dart website: https://github.com/dart-lang/site-www
Flutter: https://github.com/flutter/flutter
Linter: https://github.com/dart-lang/linter
dart format: https://github.com/dart-lang/dart_style

If you aren't sure, file the issue here and we'll find the right home for it.
In your issue, please include:

Dart SDK Version (dart --version)
Whether you are using Windows, MacOSX, or Linux (if applicable)
Whether you are using Chrome, Safari, Firefox, Edge (if applicable)

Missing some or all of the above might make the issue take longer or be
impossible to act on.
If you simply have a question, consider starting with Stack Overflow:
https://stackoverflow.com/questions/tagged/dart
For a real-time response, consider our Gitter channel:
https://gitter.im/dart-lang/sdk

I'm not able to reproduce this issue, based on the very scare information provided:
$ cat pubspec.yaml
name: foobar
description: A simple command-line application.
version: 1.0.0

environment:
  sdk: '>=2.12.0 <3.0.0'

dependencies:
  analyzer:

$ dart pub get
Resolving dependencies...
Got dependencies!

$ cat pubspec.lock
# Generated by pub
# See https://dart.dev/tools/pub/glossary#lockfile
packages:
...
  analyzer:
    dependency: "direct main"
    description:
      name: analyzer
      url: "https://pub.dartlang.org"
    source: hosted
    version: "2.0.0"


Update ESLint preset to disable the autofix

See https://github.com/facebook/react/issues/16313#issuecomment-587149109.

As far as I can see, react-scripts has a dependency on<EMAIL_ADDRESS>so that means the update from the issue you mentioned only works for apps that don't use react-scripts. I guess that's what you want to be addressed, correct?
Is there any blocker in making the update? I can't really find an exhaustive list of the changes in eslint-plugin-react-hooks to check that out.

For version 1* to 2.0.0:

Report Hook calls at the top level as a violation
https://github.com/facebook/react/pull/16528/files

In https://github.com/reactjs/reactjs.org/issues/2878 @gaearon mentions the changes from version 2* to 3.0.0

TLDR: the rule is stricter and flags usage in classes now

Would like to silence warning I'm receiving when trying to use latest version of eslint-plugin-react-hooks which is 3.0.0.
It's mentioned in https://github.com/facebook/create-react-app/pull/7790 that the update of the plugin will be a breaking change for react-scripts. Will it be ok in the meantime to update to allow:
    "eslint-plugin-react-hooks": "1.x || 2.x || 3.x"

Allow where? It is a dependency of react-scripts. No, it can't just be bumped. What needs to happen here is a bump to this dependency and a major bump of react-scripts.

Fixed in #8939.


Map

Type
Data-Structure
Directory
Data-Structures => Map => Map.extension
Description
Map or HashMap or Dict is a data structure that pairs keys to values.
Note : Please don't use any inbuilt library/function.
Programming Language

[ ] c++
[ ] c
[ ] python
[ ] java
[ ] kotlin
[ ] javascript
[ ] typescript
[ ] c#
[ ] swift
[ ] ruby
[ ] scala
[ ] go
[ ] php
[ ] haskell
[ ] bash

I would like to implement Hashmap in c++.

Hey @ahampriyanshu , I would like to work on hashmap in c++ and java.

Hello everyone, I would like to contribute with Maps on Python and Ruby.
Question: Is this repo really counting for Hacktoberfest 2021?
Question2: Should I send just one PR with 2 files or one PR per file (Python and Ruby)?

i want to contribute in  javascript

Hey everyone!! I would like to contribute with maps on cpp.
@ahampriyanshu

Hey everyone, i would like to contribute in maps on cpp language
@ahampriyanshu

Hey, I would like to contribute in maps in cpp language

Hello, I would like to contribute on this issue.
Kindly assign it to me

Hey @ahampriyanshu , I would like to work on hashmap in c++ and java.

Hi @deDSeC00720, go ahead with java.

I made the PR....
@ahampriyanshu #1875

@ahampriyanshu It was done by mistake...please assign me again


Add ERC: PLUME Signature in Wallets

ERC 7524
Ethmagicians Discussion: https://ethereum-magicians.org/t/erc-7524-plume-signature-in-wallets/15902
Moved to #242.

When opening a pull request to submit a new EIP, please use the suggested template: https://github.com/ethereum/EIPs/blob/master/eip-template.md
We have a GitHub bot that automatically merges some PRs. It will merge yours immediately if certain criteria are met:
The PR edits only existing draft PRs.
The build passes.
Your GitHub username or email address is listed in the 'author' header of all affected PRs, inside .
If matching on email address, the email address is the one publicly listed on your GitHub profile.

There has been no activity on this pull request for 2 weeks. It will be closed after 3 months of inactivity. If you would like to move this PR forward, please respond to any outstanding feedback or add a comment indicating that you have addressed all required feedback and are ready for a review.

I'm waiting on the htmlproofer mess to finish merging.

Hey! We are still working on this.

Hey! We are still working on this, but I do not have the permissions to re-open it. @SamWilsn

Really? That's infuriating. I'll look into it.

#242

Aaron Thornton


unable to write or read data from arduino

I am using arduino uno and i am able to connect to arduino via bluetooth but I am un able to read or write data to the device... Pls help.. I have tried changing the TX RX of bluetooth with aurdino both ways... My bound rate is 57600 in firmata and bluethooth....

I am sorry to Arduino not from Arduino (in the subject)

Hi abhishekdaya, can you please share more information about your setup?

Hey @akprog , I noticed you haven't mentioned which Bluetooth device you are using. Have you checked that the device both supports and is currently configured to use 57600? This is a special consideration you must make when using Bluetooth.

I figured this out... Thanks...


[#423] Add metrics for time and speed of each step of backup workflow

cc: @jesperpedersen

Other than that it looks good

@jesperpedersen Should I add different names for different compression types?
And different names for different remote types?
The difference between the two is that there can be multiple remote types. And I noticed that the code will not work right in case of multiple remote types. I think I would have to add remote_azure_elapsed_time, remote_s3_elapsed_time, etc. fields in struct backup for all remote types. How should I handle this?

@jesperpedersen updated the patch. I think this is better.  Exposing all INFO_XYZ is kind of redundant when I have already defined WORKFLOW_NAME_XYZ.

I have to check the Prometheus changes as there seems to be a lot of unrelated changes -- otherwise it looks good

@shikharish We have a lot on our wish-list for a new work flow architecture, planned for 0.17, unless you want to try and tackle after this task.
Timing is def part of that wish-list

You need to squash, and rebase

Why so many changes in prometheus.c ?

Why so many changes in prometheus.c ?

We need 2 metrics each for each part of the backup workflow. And I added different metrics for each compression type and remote type. Only the used compression and remote types will show any valid value, the unused ones will be zero.

Merged.
Thanks for your contribution !


0.21.0 documentation is missing

0.21.0 was released recently (~1 week ago).  It introduces several backward-incompatible changes, which are only mentioned in the release notes.
However the documentation has not been updated, and still references 0.20.0 and the old API:
https://googlecloudplatform.github.io/google-cloud-python/stable/
It is also unclear what version of the library the documentation is for by reading the docs, because the Sphinx flags for version numbering have not been used.

That's 100% my fault, I canceled the build: https://travis-ci.org/GoogleCloudPlatform/google-cloud-python/builds/175876145
Will send a PR to update the docs right meow.
Sorry for the confusion @micolous and big ups for filing the issue!

Docs updated, closing out issue. @micolous LMK if I should re-open.


Added pycodestyle action

Added a Github action to the list which leaves a comment on the PR with pycodestyle violations.

@ankitvgupta your changes have been merged, thanks for your contribution 👍


Variables in bijectors cannot be reused.

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Centos 6
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: N/A
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): 1.9.0 (tested in 1.10.0 too)
Python version: 3.6
Bazel version (if compiling from source): N/A
GCC/Compiler version (if compiling from source): N/A
CUDA/cuDNN version: 8.0
GPU model and memory: NVIDIA Tesla, 24GB
Exact command to reproduce: the code within the "Source code / logs"

Describe the problem
I am trying to reuse the weights and biases in the neural network within the MaskedAutoregressiveFlow bijector, by placing it within a tf.variable_scope with reuse=tf.AUTO_REUSE. But found that the weights and biases are not reused in practice.
Source code / logs
import tensorflow as tf
from tensorflow.contrib.distributions.python.ops import bijectors as tfb

def get_bijector(name='my_bijector', reuse=None):
  """Returns a MAF bijector."""
  with tf.variable_scope(name, reuse=reuse):
    shift_and_log_scale_fn = \
        tfb.masked_autoregressive_default_template([128])
    return tfb.MaskedAutoregressiveFlow(shift_and_log_scale_fn)

x = tf.placeholder(shape=[None, 64], dtype='float32', name='x')

bijector_0 = get_bijector(reuse=tf.AUTO_REUSE)
y_0 = bijector_0.forward(x)

bijector_1 = get_bijector(reuse=tf.AUTO_REUSE)
y_1 = bijector_1.forward(x)

# We were expecting that the `y_0` and `y_1` share the same dependent variables,
# since we used `tf.AUTO_REUSE` within the `tf.variable_scope`. However, the following
# will return a `False`.
print(get_dependent_variables(y_0) == get_dependent_variables(y_1))

wherein we have employed the function that gains all the variables a tensor depends on:
import collections

def get_dependent_variables(tensor):
  """Returns all variables that the tensor `tensor` depends on.

  Forked from: https://stackoverflow.com/a/42861919/1218716

  Args:
    tensor: Tensor.

  Returns:
    List of variables.
  """
  # Initialize
  starting_op = tensor.op
  dependent_vars = []
  queue = collections.deque()
  queue.append(starting_op)
  op_to_var = {var.op: var for var in tf.trainable_variables()}
  visited = {starting_op}

  while queue:
    op = queue.popleft()
    try:
      dependent_vars.append(op_to_var[op])
    except KeyError:
      # `op` is not a variable, so search its inputs (if any).
      for op_input in op.inputs:
        if op_input.op not in visited:
          queue.append(op_input.op)
          visited.add(op_input.op)

  return dependent_vars

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks.
Bazel version
CUDA/cuDNN version
GPU model and memory
Exact command to reproduce
Mobile device

It has been 17 days with no activity and the awaiting response label was assigned. Is this still an issue?

It has been 17 days with no activity and the awaiting response label was assigned. Is this still an issue?

Yes.

Nagging Assignee @asimshankar: It has been 15 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

@jvdillon : Could you triage?

Nagging Assignee @jvdillon: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @jvdillon: It has been 29 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @jvdillon: It has been 44 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

@shuiruge
We see that you are using old version of tensorflow 1.x which is not actively supported, We recommend that you upgrade to 2.4 or later version.Please have a look at the migration guide for reference to Migrate from TensorFlow 1.x to TensorFlow 2.Thank you!


this is more of a suggestion but

i have a suggestion to make a example of a discord integration with the api

This already exists here https://github.com/Terbau/fortnitepy/blob/master/examples/discord_integration.py

This already exists here https://github.com/Terbau/fortnitepy/blob/master/examples/discord_integration.py


leak memory

leak example:
create or replace test_lua_test(name text) RETURNS void AS $$
local cmd = 'select generate_series(1,150000)'
local plan = server.prepare(cmd)
local cur = plan:getcursor(nil, true)
while true do
local r = cur:fetch(1)
if r == nil then break end
end
cur:close()
$$ language pllua
in this case， when i call SPI_execute('select test_lua_test('hell0')... )  in server programer pointend, the memory is leak.

can you help me？

have someone in here？

What is the difference with #32   ?

the same as #32

Closing duplicate #32


Issue importing a CSV

When importing a certain CSV, Meilisearch throws an internal error. This must not happen.
To Reproduce
Send the following CSV into Meilisearch. Sending the content will create the index at the same time. Once the task has been accepted you can find in the tasks the internal error: keys must be inserted in order and only one time.
curl -X POST 'http://localhost:7700/indexes/stuff/documents' -H 'Content-Type: text/csv' -H 'Authorization: Bearer aSampleMasterKey' --data-binary @./myfile.csv

".100000","NEW","REF/RAW MATERIAL STEELS&METALS","","","",1/1/1901,,0,"EA","EA",1,0,0,0,0,0,1,0,0,0,0,0,0,76.89,0,0,0,76.89,0,0,1,0,0,"","",0,"","","","",0,"",2/28/2018 2:49:29 PM,0,"","",0,0,0,0,0,0,"",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"",0,0,"",,0,0,0
".101035","NEW","BAR, STL, HF, 1/8X1/2","","","",1/1/1901,,0,"IN","IN",40,0,0,0,0,0,240,0,0,0,0,0,0,0,0,0,0,.0104,0,21,1,0,0,"9042","",0,"","","","",0,"",6/20/2023 7:47:45 AM,0,"","",0,0,0,0,0,0,"",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"",0,0,"",,0,0,0

Expected behavior
In any case, the engine should not return an internal error. It can accept or refuse the content, but with a comprehensive error message.
Meilisearch version:
At least in v1.6.2 and until v1.7.0.
Additional content
The issue has originally been reported on Discord, and the user found a work around by fixing the primary key.

Initial investigation located that the culprit for the internal error is probably:
https://github.com/meilisearch/meilisearch/blob/1a083d54fc2840ac59530e5395397211cace35be/milli/src/documents/builder.rs#L167


Incorrect .queryParameters parsing?

I'm having some issues with .queryParameters, but i'm not sure where the problem is.
I'm using this route handler:

router.get("/query") { request, response, next
    defer {
        next()
    }

    let json = JSON([
        "query" : JSON(request.queryParameters)
    ])

    response.status(.OK).send(json: json)
}

And the result of request to localhost/query?param[]=a&param[]=b is following:
{
  "query": {
    "param%5B%5D": "b"
  }
}

While request to https://httpbin.org/get?param[]=a&param[]=b results with:
{
  "args": {
    "param[]": [
      "a",
      "b"
    ]
  },
  ...
}

Is there a problem in URLParser on Kitura-net or is this behavior intentional?

I've started implementing query parser in my Kitura-net fork.
Obtaining of query parameter looks like SwiftyJSON's value obtaining: example
It's not migrated to the latest swift snapshot (uses 07-25 atm) and not tested on linux, so it's not ready for PR.

@naithar Do you have Kitura updates for this as well?

@shmuelk at this moment I don't. But I'll migrate parser to 8-23 and make an update for Kitura too.

@shmuelk I've merged and updated Kitura to use new QueryParameters struct for http body.
Latest Kitura build on travis: link
Kitura-net build on travis: link
Kitura-net parsing tests and parameters example: link
I'll also try to refactor and clean up the code before I create PR.


Create a CONTRIBUTING.md document

Define code conventions
Create plugin template

@desyncr ..I will like to work on this and this will be my first contribution in open-source.

Great! If you need any help, let us know!

@harshaiitr Awesome!
There are plenty of CONTRIBUTING.md documents out there to checkout and take ideas from.
Remember to create a PR with your changes as soon as you start to work, so we can work together.
Any help you need where are here or in gitter.

@harshaiitr Do you need any help? Let me know how it's going :)

Here is a PR for this one.

Closed by #178


Merge https://github.com/clamsproject/template-repo-app-python/ into SDK

Summary
Currently we have a separate git repository https://github.com/clamsproject/template-repo-app-python/ , whose purposes are

providing an app developer with a skeleton codebase for new app development
providing an app developer with a cookiecutter app documentation template
working as a single place for holding app development documentation

However, having a separate codebase for the starter kit turned out to be quite inefficient to keep up with updates in SDK, so I insist merge that repository as a part of the clams-python SDK. App developers can run a clams CLI command to create a skeleton code in current working directory, instead of cloning the template repository.
Related
from #117

Is the separate "template" repository the best place to put the metadata.py template? If we do so, then when there's an update in the metadata scheme, we need to update two different codebase. I think that's probably not the best practice. We can maybe package the whole template repository inside the SDK and add a CLI command (like clams new-app) to release a local copy of the template on demand.

Alternatives
No response
Additional context
No response

Make sure https://github.com/clamsproject/clams-python/pull/118#issuecomment-1504214736 is included in an updated template.

I like having a clams command to initialize a new application.


Fix Rustup installation after update on 1.23.0

Description
Recently, Rustup was updated to 1.23.0. After this change $CARGO_HOME/env file is not presented anymore.
Removing invocation of this file, since brew adds $CARGO_HOME/bin to PATH without it
Related issue: https://github.com/actions/virtual-environments-internal/issues/1533
Check list

[ ] Related issue / work item is attached
[ ] Tests are written (if applicable)
[ ] Documentation is updated (if applicable)
[ ] Changes are tested and related VM images are successfully generated

/azp run macos1015, macos110


Remove ValueObject?

Hi!
I see that this project contains ValueObject (but doesn't use it anywhere). It seems to me that it is now made redundant by record types.
Perhaps it should be removed now?

No, there are good reasons not to use records as value objects, best explained here:
https://enterprisecraftsmanship.com/posts/csharp-records-value-objects/
However, I will try to add them to the default domain model since you're right, it would be good to see them in action.


Change behavior of buildAxis method to not automaticall constrain yTicks

The buildAxis method in line chart constrains the yTick count, but I think it would be better if it didn't.
Expected Behavior
See codepen for example. I'd expect the graph on the left to look the same as the graph on the right, but show ticks on 10%, 20%, 30%. However it doesn't because the domain of [0.1, 0.3] causes the tick count to be reduced to 1 from the default 5 automatically.
Current Behavior
In line charts, when the domain of the yScale in whole numbers is less than the yTickNumber (5 by default) the buildAxis method truncates the number of ticks to the domain extent.
Possible Solution
While I can understand the use case of a domain extent that is expected to be > 5 not vanishing down to nothing if data happens to be small, I think this is quite restrictive. Two potential solutions:

Remove the yTickNumber stuff in buildAxis and revert to the d3 default
Add an accessor to control the min and max extent (more complex, but gives ability to not crunch axes) - you could call this yExtentBounds for instance.

I'd go for the default behavior for simplicity. Happy to do PR.
Steps to Reproduce
https://codepen.io/bratter/pen/aqjQVM/.
Context
I was trying to display data as percentages on a line chart, but the yTicks were collapsing to 1. There are many use cases where the natural domain of the result is not whole numbers (percentages just being one of them)).
Your Environment

Version used: 2.5.1
Browser Name and version: Chrome 63

I @bratter , thanks for the issue!!
I will check this with more time, I think there was a reason for it, but can't recall it off the top of my head. I will get back to you soon.

Hi @bratter,
Just checked that logic and you are right, it is not working properly and overall it doesn't make a lot of sense. I know we added it to precisely deal with small value ranges, but obviously, it wasn't performing.
Changed in https://github.com/eventbrite/britecharts/pull/530
Thanks a lot, and good call!

Thanks! No problems.


internalTitle localization in PhotosViewController

Hi,
There is a small fix in fileprivate func updateOverlay(for photoIndex: Int)
517       self.overlayView.internalTitle = NSLocalizedString("(photoIndex + 1) of (self.dataSource.numberOfPhotos)", comment: "")
It must be somelike ...
self.overlayView.internalTitle = "(photoIndex + 1) " + NSLocalizedString("of", comment:"") +  " (self.dataSource.numberOfPhotos)"
... to get easy localized version. Or you can use String.localizedStringWithFormat to cover some difficult cases like Arabic language and so on.

Hey @DarkwingXL, thanks for the report -- I'll have this fixed in the next release

This is fixed in the latest commit, closing out this issue.

I was facing the same issue.
The line
String.localizedStringWithFormat("%d of %d", photoIndex + 1, self.dataSource.numberOfPhotos)
was not working.
I changed it to
String.localizedStringWithFormat(NSLocalizedString("%d of %d", comment: ""), photoIndex + 1, self.dataSource.numberOfPhotos)
and it worked.
I have this in my Localized.strings file
"%d of %d" = "%d من %d";


Nil pointer errors when using websockets

1. What version of Caddy are you running (caddy -version)?
0.9.5
2. What are you trying to do?
Setup Caddy as reverse HTTPS proxy over Rancher and its Kubernetes service.
3. What is your entire Caddyfile?
rancher.example.com
bind <IP_ADDRESS>
log stdout
errors stderr
tls<EMAIL_ADDRESS>timeouts 0
proxy / http://rancher:8080 {
  keepalive 30
  header_upstream Host {host}
  header_upstream X-Real-IP {remote}
  header_upstream X-Forwarded-For {remote}
  header_upstream X-Forwarded-Proto {scheme}
  websocket
}

4.
Docker-Compose section:
caddy:
    image: abiosoft/caddy
    command: ["-conf=/etc/Caddyfile", "-agree", "-http2=false"]
    ports:
      - 80:80
      - 443:443
    restart: always
    volumes:
      - ./caddy:/root/.caddy:rw
      - ./Caddyfile:/etc/Caddyfile:ro
    links:
      - rancher

5. What did you expect to see?
Rancher opening a WebSocket for its web-based kubectl console and Caddy proxying that to the backend.
6. What did you see instead (give full error messages and/or log)?
Caddy answered with a 500, the websocket was not passed to the backend, and Caddy logs showed this:
28/Feb/2017:21:50:02 +0000
[PANIC /v2-beta/projects/1a10/subscribe?eventNames=resource.change&limit=-1&sockId=12]
caddyhttp/proxy/reverseproxy.go:408 -
runtime error: invalid memory address or nil pointer dereference

(log message broken up on multiple lines for clarity)
This is where it's panicking: https://github.com/mholt/caddy/blob/v0.9.5/caddyhttp/proxy/reverseproxy.go#L408
7. How can someone who is starting from scratch reproduce this behavior as minimally as possible?
Not sure. I'll try setting up local caddy with a sample websocket server and see if I can replicate.

Right, the issue is with the keepalive 30 line. Removing it doesn't cause the error anymore.


issue #29: Tagarno API documentation and

Add documentation on Tagarno API objectives
Add get_picture_details function
Add manual test

Something that occurred to me following our discussions: the properties set in the image from the microscope device when capturing with the microscope and transferring the image are probaly not going to follow when we are capturing from the in-browser image canvas (where the microscope is working as a webcam source).

@rngadam
Yes, the webcam component we use in the front end is not capturing any metadata since we only took a screenshot of the canvas. I find this other component (Expo Camera). The component has a function call takePictureAsync that can get exif data if the image object record it.

Yes, the webcam component we use in the front end is not capturing any metadata since we only took a screenshot of the canvas. I find this other component (Expo Camera). The component has a function call takePictureAsync that can get exif data if the image object recorded it.

I'm somewhat skeptical this will work with our microscope and return the manufacturer exif but worth testing!

Pull Request Status Update
Summary
This PR was open to work on the Tagarno API integration into Nachet. As of today (April 25), the AI Lab doesn't have either a microscope or a license for the API. Meaning that the PR is blocked for now.
If the conditions to work on the PR are good again, here is what the dev should know:

Documentation was started and is located to /docs/tagarno-api-objective.md
Code is located at /microcscope/microscope_info.py
Test is located at /tests/test_microscope_info.py

However, there still work to be done, that why the PR is still in draft.

Unittest needs to be written
Code for Tagarno's API integration need revisit and work
Documentation will need to be update as you implement your solution


Check compiler version to determine if scoped imports are supported

We were checking for the language version, which is 5.10 for a Swift 6 compiler in Swift 5 mode (which is the default). But we don’t actually care about the selected language mode, but about the compiler’s version to check if scoped imports are supported.

Superseded by https://github.com/apple/swift-syntax/pull/2531


Unable to download media-utils

I'm unable to download media-utils from the manage pallete from the node red editor , any idea for how to download??

Do you have the error message?


Feature request: set default=None on optional input type fields

Consider the input type
input User {
    username: String!
    fullName: String
}

for which ariadne-codegen generates an input model looking something like:
class User(BaseModel):
    username: str
    full_name: Optional[str] = Field(alias="fullName")

If we try to instantiate this model using only a username, pyright complains:
u = User(username="jen") # Argument missing for parameter "fullName"

Note that this code does work fine at runtime - unfortunately pydantic uses a slightly different convention to standard python dataclasses and defaults optional fields to None automatically, but pyright treats it as a dataclass-like type and thus expects all fields without defaults to be passed explicitly.
When I'm writing my own pydantic schemas, I always add an explicit = None to optional fields to avoid these false positives - would there be any issue with modifying ariadne-codegen to include this when appropriate?

Hey, I looked into this, and it looks like this change won't cause any issues. I was concerned about behaviour of exclude_unset used in our base clients, but I did small test and adding = None didn't make a difference.
Tbh I think that this is something that should be handled by pyright or pydantic, as we don't generate "unusual" models. If it's not possible to solve there, I would suggest creating a plugin to codegen. You can use generate_input_field hook to easily alter default values of input fields, eg.
import ast

from ariadne_codegen import Plugin
from graphql import GraphQLInputField

class DefaultValuesPlugin(Plugin):
   def generate_input_field(
       self,
       field_implementation: ast.AnnAssign,
       input_field: GraphQLInputField,
       field_name: str,
   ) -> ast.AnnAssign:
       if not is_optional(field_implementation):
           return field_implementation

       # Cases to handle:
       # 1. there is no field_implementation.value
       # 2. field_implementation.value represents Field(...)
       #   2.1. there is `default=` keyword in Field(...)
       #   2.2. Field(...) doesn't have `default` keyword
       # 3. default value is already assigned

def is_optional(field_implementation: ast.AnnAssign) -> bool:
   ...

@mat-sop Thanks for looking into it! I agree that it's not really your problem. Unfortunately I don't think it's going to be solved in either pydantic (v1) or pyright  - it's a breaking change in pydantic to change the semantics to match dataclasses, and pyright's philosophy is to avoid "mypy-plugin" style custom support for individual libraries, so the pydantic constructor type inference is only available via claiming to be a dataclass.
Pydantic v2 (seemingly coming quite soon) is going to make the breaking change: Optional semantics will match dataclasses! Thus I think you'll probably want to make this change for compatibility with v2 anyway?

Let's wait for pydantic v2 actual release, to not modify our code basing on api that still might change. You're right, if this change with Optional semantics gonna be included then we will need to make this change anyway.

Fair enough. Thanks 🙂

FYI pydantic v2 has been released, and the change to required/optional semantics has gone through.


tracker: 3.0.4 -> 3.1.1

Motivation for this change
Update tracker, which fails to pass tests.
I updated it to latest, but any release include https://gitlab.gnome.org/GNOME/tracker/-/issues/275 fix should works
Should fix #118155 (also breaks today's master snapshot build -- all depends on gtk3 was broken)
Would be nice, if someone who have faster build machine than my builder will test it (I can prove only that it unbreak build).
Also this PR include python-tap module, which needed by tracker 3.1.1 test suite
Things done

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

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

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Duplicate of #118365 probably, found existing PR only after I tried my own

@avnik I'm closing this as duplicate of #118365


Migrate destination schema with --alter-table=add-columns,drop-not-nulls

dbcrossbar cp [...] --migrate=add-columns would add new columns to dest schema if necessary

removing faraday tag for now to register we don't need immediately


[do-not-merge] update readme for upcoming release

Signed-off-by: JENNIFER RONDEAU<EMAIL_ADDRESS>Change summary:

Fixes: #351
copyedit for clarity and succinctness
fix links for publishing to docs site

DO NOT MERGE UNTIL IMMEDIATELY BEFORE RELEASE. (contains link to new docs site, which does not yet exist and won't until release time.)

xref: #275


Configuration File Support for Statsd Client

Hey
Just noticed that you deved this on VS 2012 - I used 2013, so you may send back for that reason (but consider upgrading ;))

My only concern with this feature request is that this possibly prevents this library from being pcl some day)

I'm going to close this, although this is really nice to have, this won't work with .NET Core.


Empty and redudant "assistant":"" message for external groq API calls

Version
1.53.1734584341
Describe the bug
I am aware that cody.dev.models is experimental feature but there is an issue with external OpenAI compatible (groq) API calls.
For example, given the following configuration:
    "cody.dev.models": [
        {
            "provider": "groq",
            "model": "llama-3.3-70b",
            "apiKey": "*************",
            "apiEndpoint": "https://api.venice.ai/api/v1/chat/completions"
        }
    ]

The Cody AI chat will fail, returning the 400 Bad Request satus from API provider with error that The last message must have the role "user" or "tool". @PriNova is aware of this issue because we had conversation about this on Discord.
As I debugged then the main cause of the mentioned issues is the fact that Cody AI always appends {"role":"assistant","content":""} as the last message of an API call although the most OpenAI compatible (groq) APIs expect the last message to be with role user.
This issue happens with Venice AI LLM provider..., I believe that some other API providers ignore this last, empty {"role":"assistant","content":""} message and works without problems. Anyways, it would be nice that API calls would be made in unified format, as expected from OpenAI compatible documentations.
Expected behavior
External groq API calls should not include the {"role":"assistant","content":""}  message in the messages array sent to the API end-point.
Additional context
Discord conversation: https://discord.com/channels/969688426372825169/1318523844788752386

@arvislacis
Thank you for reporting the issue and for the detailed discussion on Discord.


Skip serialization on None on a per record basis

Is it possible to optionally skip serialization?
Say I have a db query that is select * where I want all values to be serialized whether there is data or not
vs
a db query that specifies what I want selected where I only want to serialize the values that are not None...
I don't know if #[serde(skip_serializing_if = "Option::is_none")] is flexible enough for this case..
Maybe something like...
#[derive(Serialize, Deserialize)]
struct SomeStruct {
  value: Option<Value>
}

let mut val = SomeStruct::new();
val.skip_serialization(Option::is_none);

I don't understand what you're asking.
Do you have data like [{"value": "a"}, {"value": null}, {"value": "b"}] and want to deserialize this into [SomeStruct { value: "a" }, SomeStruct { value: "b" }], i.e. filter out the null entries?

@kangalioo no, if I do a select * query to the db I want to serialzie everything null or not, but if I select specific values from the db I only want to serialize those.

Hi @letto4135, sorry that no one was able to provide guidance here. If this is still an issue, you could try taking this question to any of the resources shown in https://www.rust-lang.org/community. This library is one of the most widely used Rust libraries and plenty of people will be able to provide guidance about it.

I forgot about this. I did end up figuring out a really terrible way to do this, but it's been a while and I don't remember what it was exactly... I think I ended up returning either the struct itself or a built up Json object with only the fields I wanted..


error on my python flask project

hello friends am having this error SyntaxError was unhandled by user code
Message: invalid syntax (routes.py, line 56) my python flask project please needs urgent help

Hi, you just need to remove the semi colon (;)
Besides, Why are you importing routes? it is already taken care of when you import the flask and define app

@Daralm thanks for responding to my question,
I remove the from routes import *; then here am having the error 404 (Not Found
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
)

here is my code
"""
This script runs the application using a development server.
It contains the definition of routes and views for the application.
"""
from flask import Flask
app = Flask(name)
Make the WSGI interface available at the top level so wfastcgi can get it.
wsgi_app = app.wsgi_app
if name == 'main':
import os
HOST = os.environ.get('SERVER_HOST', 'localhost')
try:
PORT = int(os.environ.get('SERVER_PORT', '5555'))
except ValueError:
PORT = 5555
app.run(HOST, PORT)


Link from IstioObject to Service

There is an open discussion on https://issues.jboss.org/browse/KIALI-2251 related if we need to add an additional link from Istio Object page to Services page (when it is possible).
A Service can be linked with several Istio Objects (VirtualServices and DestinationRules).
From Service page there are two tabs with the links to these objects.
From a VirtualService/DestinationRule we have added the same conterpart link to not loose the relation:

But we show this link only from the "Overview" page.
Question to UX is if we want to add a global "Back to service" that involves to "Overview" / "YAML" tabs.
Note that this link could not be available always as it depends from the VS/DR so I think that probably the links from the "Overview" tab are Ok.
But it's an usability question, so better to have some guidance here about what is more appropiate.

I think the feedback from UX was to not re-introduce the back to the service, but maintain the links per host as we show today.


Describe a proposed solution
Implement the missing mutation: collectionBulkCreate.
Other solutions I've tried and won't work
Using productCreate to automatically create the collections for me.

It is actually the same issue for most mutations. We don't actually have that many bulk creation mutations which can be problematic when we want to have a transaction.


Get link of html trigger KeyError.

I want to visit a web site qq sport whose<base> tag without href Coincidentally.
It's base tag: <base target="_blank">
sess = HTMLSession()
r = sess.get('http://sports.qq.com/nba/')
r.html.base_url

Error message:
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/home/g10guang/PycharmProjects/projects/interviewSpider/env/lib/python3.6/site-packages/requests_html.py", line 339, in base_url
    result = base.attrs['href'].strip()
KeyError: 'href'

I think no every HTML with correct <base> tag.

thanks for the report


#748: Class diagram not working with StackEdit

This is related to #748 which I see has been closed and marked as resolved.
However, I just tried StackEdit and the class diagram did not work with it. I'm guessing the issue is more on the Stack Edit side though.

@rafaelbenavent  I think its stackEdit problem in parsing the string
I just tried clas diagram on liveedit and its working:
live edit
in stackedit, try not to leave any new line or space between the 3 quote marks(```) and the text like in here :  #794

Please add a graph that will reproduce this as well as the version of mermaid you are currently using


the LLAMA model doesn't seem to remember the previous questions

The model doesn't seem to remember previous questions and answers

The Q&A Chain model doesn't take into account the previous answers, so we need to change the chain model itself if possible

Should be working with commit https://github.com/FCL-LM/privateGPT/commit/353e5a81a8658bc633cd3d0104caec622b6907ca, using the Q&A chain with a Retrivial Chain with Buffered Memory

Problem "resolved" 353e5a8 , even though we need to understand the use case of the users, closing the issue for now.

To add a prompt if needed https://stackoverflow.com/questions/76175046/how-to-add-prompt-to-langchain-conversationalretrievalchain-chat-over-docs-with


more faqing stuff

Can I activate the bot on the phone?

Can I activate the bot on the phone?

@Muhammed0122 you are 💯 in the incorrect place to ask a question like that.

Closing testnet gone.


Make structlog wrapper class configurable for the loggers

A hook like this would allow me to inject arbitrary data into the messages when they are recorded through subclassing structlog's BoundLoggers. Also bumped the version, so that it's ready for a quick PyPI release, if you're happy with the changes.

👍


Running kitchen create multiple times creates multiple VMs

Ahoy hoy,
I've recently switched from the now discontinued kitchen-vsphere driver to this one and came across an issue today: If you run kitchen create multiple times, it clones a new VM every time, leaving the one created before in a state that is no longer manageable with testkitchen commandline tools. You need to login to the vSphere Client and shutdown/delete the previously created machines by hand.
I originally stumbled across it because I changed the "memory_mb" and wondered if it would change the allocated memory on an already created machine. I then tested it with no changes to the .kitchen.yml, but it still creates a new VM every time I run kitchen create.
Here is my (redacted) .kitchen.yml:
---
driver_plugin: vsphere
driver_config:
  driver_options:
    host: ***
    user: ***
    password: ***
    insecure: true
  machine_options:
    start_timeout: 600
    create_timeout: 600
    ready_timeout: 90
    bootstrap_options:
      datacenter: ***
      resource_pool: 'Test'
      template_folder: 'Test/Chef-Testumgebung/Testkitchen/Templates'
      vm_folder: 'Test/Chef-Testumgebung/Testkitchen'
      memory_mb: 2048
      ssh:
        user: ***
        password: ***
        paranoid: false

provisioner:
  name: chef_zero

platforms:
  - name: sles11
    driver_config:
      machine_options:
        bootstrap_options:
          template_name: 'testkitchen-sles11-chef11-minimal'

Steps to reproduce: Use the testkitchen driver as described here and run kitchen create twice without running kitchen destroy in between.

Just pushed a dev gem 0.6.0.dev.1 with this fix. Thanks a bunch for raising this!


chat message while composing

Hi.
I'm using version 5.1.2 in business environment.
All is working correctly but I've noticed that if I'm composing a message and in the meantime I receive a chat message and try to open it I cannot close the composing window.
It's responsive, I can save the message as draft BUT I cannot close the window of CC to reply at the chat message.
The only way is to close Teams totally

That is a known issue. You need to finish the compose operation before switch over to chat.


Add feature "[data-export] Delete button"

Hi! I've created this PR to implement the feature described in #134.
Test evidence after opening the test-framework page:

Thank you!

Thank you very much @ogomezba  !
This is great job 👍
Could you use the "linkTarget" variable used in props to define if the link must open in a new tab or the current one ?
The goal is to let users decide it based on a custom setting

Optional parts which can be done after (and if you want to) :

add tests in data-export-test and data-import-test to cover this new functionality
delete only filtered records from data export page (WIP here)

Thank you @tprouvot for the great suggestions! I was not sure about what was the best way to include the changes in the other branch for the filtered records to make them work with my changes. I've included what I needed directly in my changes. Should I have merged the branch into mine instead?
Also, if you have any suggestions for the tests, please feel free to comment.

Hi @ogomezba
Thanks for the updates and sorry for the delay ⌛  !
I'll add those improvements in the CHANGES.md which is used to describe the release updates.
FYI when doing the tests on this feature, I created a new one pretty much linked to it, which goal is to .... undelete records 😄
Good job on this PR 👏  happy to welcome you to the team !


Forwarding user access tokens to mirrored private repos

Request details
Currently we're using Artifactory, but we're looking for an alternative that's lightweight, simple and less crashy. Reposilite seems like a good alternative, though it looks like we can't replicate our current setup with it. Our Artifactory setup is as follows:

Public repos that store public artifacts.
Private repos that store private artifacts.
A bunch of remote repos to mirror content from public external Maven repos.
The public virtual repo, let's call it all, that includes all of the above.

The point of the repo all is that we can slap it in the pom.xml of all our public and private projects to handle dependency management without any fuss. Artifactory will only allow access to our private artifacts if a user has valid credentials for the private repos, even if the artifacts are accessed through the repo all.
I've perused the documentation and other discussions on here, but it seems it's not possible to replicate this kind of setup in Reposilite? If I create a public repo in Reposilite that mirrors the private repos, it seems the private artifacts aren't available through it, even if a user with valid credentials for the private repos attempts to retrieve them. And if I set mirror credentials for the private repos, the private artifacts effectively become public through the mirroring repo.
In our case, users have access to all private repos or none, so I suppose we could create two separate repos all-private and all-public that mirror all private and public repos respectively. Then we can use those two repos in all our projects for dependency management. However, that's a bit less convenient than using a single all repo and also requires additional pom.xml editing if we ever add more fine-grained access control to the private repos.
It may also be worthwhile to note that some of our public projects depend on private artifacts. We're not legally allowed to host these private artifacts publically, but everyone can compile these JARs themselves. They're in a private repo so CI and our dev team don't need to compile them.
I don't know if there are plans to support this kind of setup or if you would be willing to support this kind of behaviour. I'm up for attempting a pull request that implements it. I've also noticed there's a plugin API, though I haven't really looked into it. Is it possible to implement this kind of thing with a plugin?

Currently, we don't support mirroring user's credentials. The reason behind it is quite simple - it's a relatively simple way to leak credentials to 3rd party repositories, and there's no straightforward workaround for that right now. Of course, in the mirror config, you can set credentials to the private repo that will be just shared between all users.
In general, I think it'd be safer if you'd just keep these repositories separated. As long as it might be not that convenient, it should be healthier from the security perspective.

I don't know if there are plans to support this kind of setup or if you would be willing to support this kind of behaviour. I'm up for attempting a pull request that implements it.

I'm currently shifting my priorities into 4.x, so I'll most likely not handle it on my own. If you'd like to explore it on your own, feel free to take a look at it. Even if it'll require too many changes on our side, you could just use your fork. We don't expect many changes in the 3.x, so it should be fairly simple to sync it with master from time to time.

I've also noticed there's a plugin API, though I haven't really looked into it. Is it possible to implement this kind of thing with a plugin?

Speaking about the plugin API - you can sneak in your own implementation, ResolvedFileEvent would be the first candidate there:

https://github.com/dzikoysk/reposilite/blob/a805475f31666ac569b813fea47406a679ed16f2/reposilite-backend/src/main/kotlin/com/reposilite/maven/RepositoryService.kt#L139-L143

Of course, in case of any API limitations, we can for sure add more events as it usually costs us nothing.


Add a "known issues" section

e.g.

crows feet at large stroke widths look weird

use labels for reserved

html in markdown has to be semantic (e.g. no unclosed tags): https://github.com/terrastruct/d2/issues/805


fix print

Codecov Report

Merging #328 (271776d) into breaking-02 (bf88859) will decrease coverage by 0.30%.
The diff coverage is n/a.

@@               Coverage Diff               @@
##           breaking-02     #328      +/-   ##
===============================================
- Coverage        85.62%   85.32%   -0.31%
===============================================
  Files               17       17
  Lines             1858     1833      -25
===============================================
- Hits              1591     1564      -27
- Misses             267      269       +2

Impacted Files
Coverage Δ

src/pairwise.jl
71.17% <ø> (ø)

src/blended_cg.jl
84.00% <0.00%> (-0.91%)
:arrow_down:

src/abstract_oracles.jl
86.45% <0.00%> (-0.80%)
:arrow_down:

src/types.jl
84.69% <0.00%> (-0.36%)
:arrow_down:

src/callback.jl
95.65% <0.00%> (-0.19%)
:arrow_down:

src/utils.jl
80.00% <0.00%> (-0.19%)
:arrow_down:

src/active_set.jl
93.33% <0.00%> (-0.11%)
:arrow_down:

src/polytope_oracles.jl
92.22% <0.00%> (-0.09%)
:arrow_down:

src/norm_oracles.jl
95.53% <0.00%> (-0.08%)
:arrow_down:

src/linesearch.jl
89.43% <0.00%> (-0.08%)
:arrow_down:

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 bf88859...271776d. Read the comment docs.


[v2 branch] The way of exporting module seems not friendly in package.json

Description
In my project, I use typescript(v4.7) with config "module": "esnext", "moduleResolution": "node".
If I use the lasted release of the tauri plugin package(eg: @tauri-apps/plugin-log). I will get type error which says can't recognize package @tauri-apps/plugin-log. Then I check the package.json of the plugin, I notice below code.
https://github.com/tauri-apps/plugins-workspace/blob/5a8bbe296704f679063ef8b820d582d7f728400b/plugins/log/package.json#L9-L14
After some research, they told me should use typescript(v5) with config "module": "esnext", "moduleResolution": "bundler". They are right. The plugin package now are recognizable.
But new type error appears. tsc now can't recognize subpath of package. Eg:
// Cannot find module '@zing/helpers/dist/tippy' or its corresponding type declarations.
import { getTippy } from '@zing/helpers/dist/tippy';

// package.json of @zing/helpers
{
  ...
  "main": "dist/index.js",
  "module": "dist/index.js",
  "types": "dist/index.d.ts",
  "files": ["dist"],
  "exports": {
    ".": "./dist/index.js",
    "./dist/": "./dist/"
  },
}

Hope
Change the way of exporting module to a more friendly one.
Here is a example. https://github.com/ProseMirror/prosemirror-model/blob/master/package.json#L5-L12

Well, I switch back to typescript(v4.7) with config "module": "esnext", "moduleResolution": "node".
Find an alternative way to avoid type error.
// before (will get type error)
import log from '@tauri-apps/plugin-log';

// after
import log from '@tauri-apps/plugin-log/dist-js/index';

The released plugin uses these exports: https://github.com/tauri-apps/plugins-workspace/blob/d4d1633c4d0b63b26db987037d1ed7e57d5cefbe/plugins/log/package.json#L9-L17
Which to me looks similar to the prosemirror example right?
The package.json you linked will be used in the next release (unless we find issues with it now of course) - maybe the new one actually works better for you? You can try the unreleased version by pulling the npm package from git: https://github.com/tauri-apps/tauri-plugin-log/tree/v2#Usage - for example yarn add https://github.com/tauri-apps/tauri-plugin-log#v2
If neither the old version, nor the new one work i really don't understand what we have to change to make it work tbh.

In my project, I already use v2 branch.
  "dependencies": {
    ...
    "@tauri-apps/api": "^2.0.0-alpha.11",
    "@tauri-apps/plugin-clipboard-manager": "github:tauri-apps/tauri-plugin-clipboard-manager.git#v2",
    "@tauri-apps/plugin-dialog": "github:tauri-apps/tauri-plugin-dialog.git#v2",
    "@tauri-apps/plugin-fs": "github:tauri-apps/tauri-plugin-fs.git#v2",
    "@tauri-apps/plugin-log": "github:tauri-apps/tauri-plugin-log.git#v2",
    ...
}

It seems this commit (https://github.com/tauri-apps/plugins-workspace/commit/1b98b85a1f7b580bc6605a3a274b6a0a86530bd9) delete the normal export way.

looks like moduleResolution: "node" doesn't handle the exports field well, gonna add these fields back then I guess


go2rtc source with api password

Hi!
I'm trying to add a webrtc source (go2rtc), the instance that I am trying to source the video from has an API password. This prevents me from connecting to it.
I tried
webrtc:ws://admin:pass@<IP_ADDRESS>:1984/api/ws?src=camera1
But it did not work, is there anything else I can try?
If I remove the api password then it works fine.

@AlexxIT could you please let me know if logs would be helpful for this? It's possible I am not encoding the password in the URL the correct way, so just want to make sure the example above is correct.

It may not work if you have special symbols in password

It may not work if you have special symbols in password

Hi @AlexxIT I tried making my password "password" but it still does not work, were you able to make it work?

I have no problems with any symbols in password

You right. This wasn't supported earlier.

Thank you for confirming, and I see your commit has added this feature, thank you very much!


Added new Cluster then EDIT & change name starting w/special character -service error

Server Error in '/' Application.
Validation failed for one or more entities. See 'EntityValidationErrors' property for more details.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.Entity.Validation.DbEntityValidationException: Validation failed for one or more entities. See 'EntityValidationErrors' property for more details.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

I updated" Agriculture Cluster" to "© Agriculture Cluster ©"  and then to "≤ Agriculture Cluster ≤" without any issue.  What character was used?
I did notice that it throws ClusterAlreadyExistsException(); if you click update without changing anything.  Does anyone have any preference on how they'd like that to fail more gracefully?  Can we just have it ignore the action and continue on like nothing happened instead of failing?


woff table missing IE10

http://caniuse.com/#feat=woff

It isn't missing, IE10 just isn't shown by default. Click "show all" to see it.

Yup, duplicate of #2436


raspberry support ?

how compile client for raspberry pi 3 ? #

The easiest way is to compile it directly on your raspberry pi.

Hi I also try to compile it. Fails right now because of missing licwnse for android sdk.
Trying to install sdk manager on laptop with ubuntu and copy the license to the pi.

Facing some problems on Pi3 with stretch:
without root access i get this error when building:
´´´
pi@raspberrypi:~/scrcpy/x $ ninja
[1/1] 'Generating scrcpy-server with a custom command.'
FAILED: server/scrcpy-server.jar
'/home/pi/scrcpy/server/./scripts/build-wrapper.sh' '../server/.' 'server/scrcpy-server.jar' 'release'
Starting a Gradle Daemon (subsequent builds will be faster)
Observed package id 'platform-tools' in inconsistent location '/usr/lib/android-sdk/platform-tools' (Expected '/usr/lib/android-sdk/platform-tools/platform-tools')
Observed package id 'platform-tools' in inconsistent location '/usr/lib/android-sdk/platform-tools' (Expected '/usr/lib/android-sdk/platform-tools/platform-tools')
Observed package id 'platform-tools' in inconsistent location '/usr/lib/android-sdk/platform-tools' (Expected '/usr/lib/android-sdk/platform-tools/platform-tools')
File /home/pi/.android/repositories.cfg could not be loaded.
Checking the license for package Android SDK Build-Tools 27.0.3 in /usr/lib/android-sdk/platform-tools/licenses
License for package Android SDK Build-Tools 27.0.3 accepted.
Preparing "Install Android SDK Build-Tools 27.0.3 (revision: 27.0.3)".
Warning: Failed to read or create install properties file.
Checking the license for package Android SDK Platform 27 in /usr/lib/android-sdk/platform-tools/licenses
License for package Android SDK Platform 27 accepted.
Preparing "Install Android SDK Platform 27 (revision: 3)".
Warning: Failed to read or create install properties file.
FAILURE: Build failed with an exception.

What went wrong:
A problem occurred configuring project ':server'.

Failed to install the following SDK components:
platforms;android-27 Android SDK Platform 27
build-tools;27.0.3 Android SDK Build-Tools 27.0.3
The SDK directory is not writable (/usr/lib/android-sdk/platform-tools)

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

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

BUILD FAILED in 35s
ninja: build stopped: subcommand failed.
´´´
with root access it says:
´´´
root@raspberrypi:/home/pi/scrcpy/x# ninja
[1/1] 'Generating scrcpy-server with a custom command.'
(not invoking gradle, since we are root)
´´´
and can't launch:
´´´
[0/1] 'Running external command run.'
adb: error: cannot stat '/home/pi/scrcpy/x/server/scrcpy-server.jar': No such file or directory
ERROR: "adb push" returned with value 1
FAILED: run
'/usr/bin/python3' '/usr/share/meson/meson' '--internal' 'commandrunner' '/home/pi/scrcpy' '/home/pi/scrcpy/x' '' 'scripts/run-scrcpy.sh'
ninja: build stopped: subcommand failed.
´´´

sudo chmod +w /usr/lib/android-sdk/platform-tools
ninja

Right already did this and had this error after chmod:
[1/1] 'Generating scrcpy-server with a custom command.'
FAILED: server/scrcpy-server.jar
'/home/pi/scrcpy/server/./scripts/build-wrapper.sh' '../server/.' 'server/scrcpy-server.jar' 'release'
Observed package id 'platform-tools' in inconsistent location '/usr/lib/android-sdk/platform-tools' (Expected '/usr/lib/android-sdk/platform-tools/platform-tools')
Observed package id 'platform-tools' in inconsistent location '/usr/lib/android-sdk/platform-tools' (Expected '/usr/lib/android-sdk/platform-tools/platform-tools')
Checking the license for package Android SDK Build-Tools 27.0.3 in /usr/lib/android-sdk/platform-tools/licenses
License for package Android SDK Build-Tools 27.0.3 accepted.
Preparing "Install Android SDK Build-Tools 27.0.3 (revision: 27.0.3)".
Warning: Trying to install into /usr/lib/android-sdk/platform-tools/build-tools/27.0.3/ but package "Android SDK Platform-Tools" already exists at /usr/lib/android-sdk/platform-tools/. It must be deleted or moved away before installing into a child directory.
Checking the license for package Android SDK Platform 27 in /usr/lib/android-sdk/platform-tools/licenses
License for package Android SDK Platform 27 accepted.
Preparing "Install Android SDK Platform 27 (revision: 3)".
Warning: Trying to install into /usr/lib/android-sdk/platform-tools/platforms/android-27/ but package "Android SDK Platform-Tools" already exists at /usr/lib/android-sdk/platform-tools/. It must be deleted or moved away before installing into a child directory.

FAILURE: Build failed with an exception.

So i copied content of platform-tools to another folder and renamed the original one.
Now i get this error...
pi@raspberrypi:~/scrcpy/x $ ninja
[1/1] 'Generating scrcpy-server with a custom command.'
FAILED: server/scrcpy-server.jar
'/home/pi/scrcpy/server/./scripts/build-wrapper.sh' '../server/.' 'server/scrcpy-server.jar' 'release'
Observed package id 'platform-tools' in inconsistent location '/usr/lib/Android-sdk/platform-tools/platform-tools1' (Expected '/usr/lib/Android-sdk/platform-tools/platform-tools')
Observed package id 'platform-tools' in inconsistent location '/usr/lib/Android-sdk/platform-tools/platform-tools1' (Expected '/usr/lib/Android-sdk/platform-tools/platform-tools')
Checking the license for package Android SDK Build-Tools 27.0.3 in /usr/lib/Android-sdk/platform-tools/licenses
License for package Android SDK Build-Tools 27.0.3 accepted.
Preparing "Install Android SDK Build-Tools 27.0.3 (revision: 27.0.3)".
Warning: An error occurred while preparing SDK package Android SDK Build-Tools 27.0.3: Remote host closed connection during handshake.:
javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1002)
	at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1385)
	at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1413)
	at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1397)
	at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:162)
	at com.android.sdklib.repository.legacy.remote.internal.DownloadCache.openUrl(DownloadCache.java:249)
	at com.android.sdklib.repository.legacy.remote.internal.DownloadCache.openDirectUrl(DownloadCache.java:333)
	at com.android.sdklib.repository.legacy.LegacyDownloader.downloadFully(LegacyDownloader.java:90)
	at com.android.repository.impl.downloader.LocalFileAwareDownloader.downloadFully(LocalFileAwareDownloader.java:82)
	at com.android.repository.impl.installer.BasicInstaller.doPrepare(BasicInstaller.java:70)
	at com.android.repository.impl.installer.AbstractPackageOperation.prepare(AbstractPackageOperation.java:306)
	at com.android.builder.sdk.DefaultSdkLoader.installRemotePackages(DefaultSdkLoader.java:354)
	at com.android.builder.sdk.DefaultSdkLoader.installBuildTools(DefaultSdkLoader.java:306)
	at com.android.builder.sdk.DefaultSdkLoader.getTargetInfo(DefaultSdkLoader.java:148)
	at com.android.build.gradle.internal.SdkHandler.initTarget(SdkHandler.java:182)
	at com.android.build.gradle.BasePlugin.ensureTargetSetup(BasePlugin.java:879)
	at com.android.build.gradle.BasePlugin.createAndroidTasks(BasePlugin.java:700)
	at com.android.build.gradle.BasePlugin.lambda$null$4(BasePlugin.java:650)
	at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:81)
	at com.android.build.gradle.BasePlugin.lambda$createTasks$5(BasePlugin.java:646)
	at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:91)
	at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:80)
	at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:42)
	at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch.java:230)
	at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch.java:149)
	at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:58)
	at org.gradle.internal.event.BroadcastDispatch$CompositeDispatch.dispatch(BroadcastDispatch.java:324)
	at org.gradle.internal.event.BroadcastDispatch$CompositeDispatch.dispatch(BroadcastDispatch.java:234)
	at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:140)
	at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:37)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
	at com.sun.proxy.$Proxy25.afterEvaluate(Unknown Source)
	at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:76)
	at org.gradle.configuration.project.LifecycleProjectEvaluator.doConfigure(LifecycleProjectEvaluator.java:70)
	at org.gradle.configuration.project.LifecycleProjectEvaluator.access$100(LifecycleProjectEvaluator.java:34)
	at org.gradle.configuration.project.LifecycleProjectEvaluator$ConfigureProject.run(LifecycleProjectEvaluator.java:110)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
	at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:50)
	at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:666)
	at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:135)
	at org.gradle.execution.TaskPathProjectEvaluator.configure(TaskPathProjectEvaluator.java:35)
	at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:62)
	at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:38)
	at org.gradle.initialization.DefaultGradleLauncher$ConfigureBuild.run(DefaultGradleLauncher.java:249)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
	at org.gradle.initialization.DefaultGradleLauncher.configureBuild(DefaultGradleLauncher.java:167)
	at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:126)
	at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:109)
	at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:78)
	at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:75)
	at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:152)
	at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:100)
	at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:75)
	at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
	at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
	at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32)
	at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$1.run(RunAsBuildOperationBuildActionRunner.java:43)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
	at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:40)
	at org.gradle.tooling.internal.provider.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:51)
	at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:47)
	at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:30)
	at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:39)
	at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:25)
	at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:80)
	at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:53)
	at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:57)
	at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:32)
	at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:36)
	at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:25)
	at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:43)
	at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:29)
	at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:69)
	at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:30)
	at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:59)
	at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:44)
	at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:45)
	at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:30)
	at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)
	at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
	at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
	at org.gradle.util.Swapper.swap(Swapper.java:38)
	at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:62)
	at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:82)
	at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
	at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
	at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:295)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.EOFException: SSL peer shut down incorrectly
	at sun.security.ssl.InputRecord.read(InputRecord.java:505)
	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:983)
	... 118 more
"Install Android SDK Build-Tools 27.0.3 (revision: 27.0.3)" failed.
Checking the license for package Android SDK Platform 27 in /usr/lib/Android-sdk/platform-tools/licenses
License for package Android SDK Platform 27 accepted.
Preparing "Install Android SDK Platform 27 (revision: 3)".
"Install Android SDK Platform 27 (revision: 3)" ready.
Installing Android SDK Platform 27 in /usr/lib/Android-sdk/platform-tools/platforms/android-27
"Install Android SDK Platform 27 (revision: 3)" complete.
"Install Android SDK Platform 27 (revision: 3)" finished.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':server'.
> Failed to install the following SDK components:
      build-tools;27.0.3 Android SDK Build-Tools 27.0.3
  Install the missing components using the SDK manager in Android Studio.

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

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

BUILD FAILED in 7m 40s
ninja: build stopped: subcommand failed.

Observed package id 'platform-tools' in inconsistent location '/usr/lib/Android-sdk/platform-tools/platform-tools1' (Expected '/usr/lib/Android-sdk/platform-tools/platform-tools')

There is a problem with your Android SDK instalation. Just for info why did you install it in /usr/lib/?
Anyway, you can use the prebuilt server so that you don't have to build it with the Android SDK.

Thx that worked.
Just another problem with input. From mouse on pi i can control my phone but from touchpanel on pi there is no reaction.
Mouse moves on pi but nothing happends.

Thx that worked.

:+1:

from touchpanel on pi there is no reaction.
See https://github.com/Genymobile/scrcpy/issues/22

Hello,
I have tried this on windows and like it been looking for something like this for a while. Im now trying to use this with raspberry pi. whats the best way to do this??? Could someone give me a simple basic guide to get this going on a Pi. Im runninga fresh latest raspbian at the moment. Thanks in advance any help would be great.

@scott87 I had luck on the Raspberry Pi 3 with this tutorial:
https://www.linuxuprising.com/2019/03/control-android-devices-from-your.html
I was was using scrcpy for a silly hardware project to get video streaming from the OculusQuest VR headset to the back of my head:
https://www.youtube.com/watch?v=Wm-bfn3tqLM
That said I had to set the RasPi to 800x600 and go full screen to get decent framerate. I launched scrcpy with the following settings for that video:
scrcpy --fullscreen --no-control --bit-rate 2M --crop 1024:768:288:336


Supported Node Version

I recently encountered the following error after updating to v3.
error<EMAIL_ADDRESS>The engine "node" is incompatible with this module. Expected version ">=5".

This error was thrown in a node 4 environment and it looks like #1086 switched to rst-selector-parser which only supports node 5+ according to this file. Given that node 4 is no longer active (node release schedule) I am curious if enzyme has officially dropped support for node 4??? If so, would it make sense to update package.json to reflect this?

No, it hasn't. rst-selector-parser needs to fix its engines field. @aweary?

I removed the engines field in https://github.com/aweary/rst-selector-parser/pull/10 and just published the 2.2.3 patch release, which should fix this.

That is fantastic, this should fix the issue once enzyme is using the new version, thank you ✨
I wondering if the engines field should still be specified to document the version of node that your stuff works on. That was my original intent of this ticket as I was unable to find out what versions of node is supported by enzyme.
If the engines field is specified and the node version does not match yarn will throw an error and stop whereas npm will throw a warning and continue. I guess which one you prefer is a personal preference but I think documenting the supported versions makes life easier when stuff isn't working.
For example, @aweary determined that rst-selector-parser test suite passes all the way back to 0.12 but that information is not easily available for new users of the library. They would have to either a test it themselves or did through all the PRs to find what versions of node are supported.

@samit4me fwiw enzyme doesn't need to update for you to get the new version; run npm update or rm -rf node_modules && npm install.

You are correct @ljharb removing node_modules and re-installing does work. What are your thoughts on documenting the supported node versions?

If yarn didn't error out, I'd do it - but because yarn errors out, I'd rather just not specify "engines" at all, and let users figure out if it works or not on their own.

Yeah, that's cool I totally get that. I think I on the other side of the fence and like how it errors out on node mismatch as it doesn't waste any more time than necessary.
CI config has node 4, 6 and 8, so I guess these are the supported versions of node, not sure why I didn't look earlier. Thanks for your help guys.


Backup of Azure Files with Storage Firewall enabled?

This is related to the question"File share backup with firewall enabled"
Above it states that you cannot backup Azure files when you have the following:
"You can't protect Azure file shares in storage accounts that have Virtual Networks or Firewall enabled."
Given the limitation related to authentication with Azure Files and needing to use the main account key you almost must need to enable the firewall.
Is this still correct? It looks like Backup is counted as one of then items related to allowing "Trusted Microsoft Services"
Thanks
Hass

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

ID: 61c0f8e6-5a57-58aa-ecd6-2bf83809c44d
Version Independent ID: ee8b8f60-bffd-e6ec-5f21-bfd3208fc511
Content: Back up Azure File Shares
Content Source: articles/backup/backup-azure-files.md
Service: backup
GitHub Login: @markgalioto
Microsoft Alias: markgal

@hassanbabaie Thank you for the valuable feedback,we are investigating the issue.

@hassanbabaie Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

@markgalioto @Adam-Smith-MSFT just checking if you're able to confirm if this is still true or not. Obviously I'm hoping note.
Thanks
Hass

@hassanbabaie Hi. Currently the limitation still applies. Thanks!
#please-close

@hassanbabaie We will now proceed to close this thread. If there are further questions regarding this matter, please comment and we will gladly continue the discussion.


Warn users that an adapter may overwrite the build.format config

📝 Issue Description
The Vercel Static Adapter overwrites the user-supplied Astro config with format: directory (as well as redirects: false).
updateConfig({
	outDir,
	build: {
		format: 'directory',
		redirects: false,
	},

https://github.com/withastro/astro/blob/211bfe3b00c2e77e3647a6e1f1644ddc1ab7fda8/packages/integrations/vercel/src/static/adapter.ts#L87-L92
The dev server works fine with the 'file' format, but Vercel's adapter doesn't. This thus leads to an unexpected divergence between the dev & production environments.
I'm not sure if format: 'directory', is forced by the adapter because of a technical limitation that prevents format: 'file' from working, but assuming it is, the docs could be clearer.
📋 On which page(s) it occurs
https://docs.astro.build/en/reference/configuration-reference/#buildformat
Also https://docs.astro.build/en/reference/configuration-reference/#buildredirects (but the line This option is mostly meant to be used by adapters there already serves as a kind of warning).
🤔 Expected Behavior
Ideally, https://docs.astro.build/en/reference/configuration-reference/#buildformat would have warned me that an adapter may overwrite this setting (I'm not sure if Vercel Static is the only adapter that does this).
👀 Current Behavior
https://docs.astro.build/en/reference/configuration-reference/#buildformat is the documentation I looked up first. There is no warning there that adapters can influence these settings.
The adapter readme mentions:

This will install the adapter and make the appropriate changes to your astro.config.mjs file in one step [..]

However, I only found that while writing this report.
🖥 Browser
Chrome 116.0.5845.187
📄 Additional Information
As a precedent, https://docs.astro.build/en/reference/configuration-reference/#buildserverentry mentions:

Specifies the file name of the server entrypoint when building to SSR. This entrypoint is usually dependent on which host you are deploying to and will be set by your adapter for you.

Thanks for this comment! I have marked this for exploration with our platform devs to confirm whether this is in fact expected behaviour that should be documented, or whether this might be a bug and this is not in fact supposed to happen. We'll need to explore before we know whether this is something to document!

An adapter, or any integration for that matter, can override any particular config. That's often a primary purpose of an integration, to bundle a bunch of configuration changes together rather than doing them all individually. So if I was going to document this, that's what I would document.
As far as what the Vercel adapter is doing in this case, I'm not sure if it was an intentional decision based on a limitation or if was incidental. If some one is willing to try making the change in a PR and confirming that it still works, we could possibly change it.

I've addressed this in the config reference docs! https://github.com/withastro/astro/pull/9502 Thank you for your comment!

Thank you @sarah11918! That note surely would have helped me understand my issue more quickly (or even prevented it).

An adapter, or any integration for that matter, can override any particular config. That's often a primary purpose of an integration, to bundle a bunch of configuration changes together rather than doing them all individually.

@matthewp reconsidering my issue with this in mind, it would perhaps be helpful if it's the adapter's responsibility to warn/error at build time when it overrides a particular config.
Like:
WARN: You have set `build.format` to "file" in astro.config.mjs, but this output format isn't supported by the Vercel Static adapter. It will be set to "directory".

Additionally, the limitations of the adapter could be pointed out in its documentation.
My main issue here was that my Vercel production deployment behaved differently from my local development server (I had broken links/404s), and I had to dive into the adapter code to figure out why exactly.


Docs recommend using an encryption key with 192-bits of random data for aes-256-gcm

Summary
This section of the docs recommends using 24 random bytes encoded as base64 for an aes-256-gcm encryption key. aes-256-gcm requires a 256 bit key, but users following the docs are effectively using a 192 bit key.
See caveats when using strings as inputs to cryptographic APIs
It looks like the npm library actually decodes the encryption key as latin1 here, so a 32 character latin1 string should work for a 256 bit key.

@sbking 24 bytes in base64 is 32 characters, are we missing something else?

@sbking Aah I see what you mean, thanks.

@sbking Thanks for noticing this, we'll keep backwards compatibility for a 32-character string and also support the bas64 conversion when a 44-character string is passed as the key (openssl rand -base64 32).

@sbking const encryptionKey = Buffer.from(options.encryptionKey, 'base64') should be enough right? When I try the .toString('latin1') I get a key length error for some reason even though the length is technically 32.

@sbking encryptionKey is expected to be a buffer rather than a string

@sbking I am also thinking openssl rand -base64 33 might be better for randomness, openssl rand -base64 32 always ends with a = char for padding.


PTS listing or custom port support

It would be really helpful if we could list /dev/pts/X ports. They support the same interface and would be easy to implement.
Another option to quickly achieve this is allowing the user to specify the port (just a text input?)
For more advanced users you could also add a port glob setting, maybe defaulting to:

^\/dev\/tty(USB|S|ACM)\d+$ on linux
^COM\d+$ on windows.

That way the user can filter their options (and add other ports not currently included).
For reference, my use-case is:

Embedded project with a USB serial port
Native/simulator project that uses the same code, but replaces the USB with a pseudo-terminal instead
This allows the embedded and native projects to behave nearly identically and is very helpful vs stdin.

@Twistedsnail Thanks for the feature request! We've taken note of this and will add it to the backlog.