Add pwsh as an alias for Powershell

pwsh is the name of the shell binary for powershell core
powershell is the name of the shell binary for the old deprecated Windows PowerShell
Resolves #3235
Changes
adding pwsh in the alias list of powershell
Checklist
No clue how to do that yet, any hint ?

[x] Added markup tests, or they don't apply here because...
[ ] Updated the changelog at CHANGES.md

Nice. Please update changelog.


Monthly newsletter

I propose to start a monthly newsletter to summarize recent updates from the community. Current google group does not allow individual members to post but the requests could be included in a joint newsletter after inspection. This allows non-active members to also learn about ongoing activities. The scope can include:

Recent administrative decisions and updates from officers
Upcoming schedule of the reading group
Active work groups
Research and publications from community members (thesis projects, papers)
Job or scholarship announcements

Let me know please what you think and if you are interested in help curating this newsletter.

I'll help with publishing on GH and mailing list


Drop graph

Description
Drop graph functionality has been added which improves the deletion of everything in the current database in an efficient manner.
For v2.16
Pull request type
Please check what kind of PR this is:

[X] Fix or improvement of an existing page
[ ] New documentation page, release related

Related PRs and issues
PR this doc page is related to:
https://github.com/memgraph/memgraph/actions/runs/8249360695
Checklist:

[X] Check all content with Grammarly
[X] Perform a self-review of my code
[X] Make corresponding changes to the rest of the documentation (consult with the DX team)
[X] The build passes locally
[X] My changes generate no new warnings or errors
[X] Add a corresponding label
[X] If release-related, add a product and version label
[X] If release-related, add release note on product PR

I think DROP GRAPH shouldn't be documented under DELETE clause docs.

@kgolubic or @Josipmrden please don't forget to check my comment and update accordingly.


Onboarding fails

Just tried to onboard using Winds app
OS: El Capitan
Up attempting signup, I get the following response on the screen

This creates an account, but not with the entered password.
I then moved to the web version, (El Cap, Chrome) and attempted a password reset.
This sent a pass phrase, but when that was entered to the reset password screen with a new password, nothing happened, ie: no acknowledgement or redirect to another screen.

Are you able to reset your password and login? We're currently investigating authentication issues at the moment.

Hey @mkarliner, I'm not seeing your email. Can you try one more time with your console or network tab open? Thanks for the help!

Probably registered as<EMAIL_ADDRESS>

Are you behind a firewall by chance? Anything logging out in your console? I cannot seem to locate your user...

I've tried to start the application again and got the same result - see attached.

There is no firewall. My router is a stock DD-WRT
Opening the console gives this

Looks like your API is likely not up and running. Does the API output any
errors?
On Thu, May 24, 2018 at 4:01 PM Michael Karliner<EMAIL_ADDRESS>wrote:

I've tried to start the application again and got the same result - see
attached.
[image: image]
https://user-images.githubusercontent.com/1651042/40515788-1582ba90-5fa6-11e8-9c1b-f35742f3f20c.png
There is no firewall. My router is a stock DD-WRT
Opening the console gives this
[image: image]
https://user-images.githubusercontent.com/1651042/40515849-574cda6e-5fa6-11e8-93fc-3310ac93beab.png
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/GetStream/Winds/issues/294#issuecomment-391879792,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABRFBPhXavp42aOQww0hOxFALkcNavB5ks5t1y2sgaJpZM4UMgGv
.

--
Nick Parsons | Senior Developer Evangelist
GetStream.io http://getstream.io/ | Techstars NYC 2015
<EMAIL_ADDRESS>| LinkedIn https://www.linkedin.com/in/nparsons/ |
Twitter https://twitter.com/nickparsons | Quora
https://www.quora.com/profile/Nick-Parsons | StackOverflow
https://stackoverflow.com/users/638080/nick-parsons | GitHub
https://github.com/nparsons08
Learn how to implement Activity Feeds in your application
https://goo.gl/QCFjgF in minutes!

Now it seems we are talking at cross purposes.
All I've done is download the winds app for Macintosh and run it.
Am I supposed to be running a back end as well?
If so, it's completely unclear from any of the documentation I saw.

There are 3 ways to get Winds running on OSx:

DMG
App Store
Git clone & Running the frontend

Which setup are you using? In the meantime, these 2 versions of Winds work:

Web: https://winds.getstream.io/
App Store: itunes.apple.com/us/app/winds-by-getstream-io/id1381446741

I read this post and downloaded the app for Mac.
https://getstream.io/blog/winds-2-0-its-time-to-revive-rss/

I've tried the web version, password reset does not work, opening new issue

Were you able to get the app up and running
and
Thank you for reporting the issue – our team will look into it as soon as possibe

Closing this out as it has become stale. Please reopen if you would like to continue the discussion. Thank you!

Unless you have failed to replicate the bug, I see no that this is stale.

Hey @mkarliner, we've tried many times to replicate the issue; however, we have not been able to. Have you updated to the latest version?

I've now downloaded the new version. However, as per bug 357, reset password does not appear to work, so I'm unable to log into the account, as my previous actions resulted in account creation without a password being set.

Looping in @Nekuromento who has been doing some awesome work on making the auth and user endpoints more solid.


Do not show popup to sign

DES

This is my code, when I request eth_signTransaction on Metamask can't show pop to sign.

await _signClient!.request(
        topic :sessionData!.first.topic,
        chainId: 'eip155:1',
        request: SessionRequestParams(
            method: 'eth_signTransaction',
            params: [anything]
        ),
      );

[log] JsonRpcError(code: 5000, message: {"code":-32004,"message":"Method not supported."})

@Luzzotica Any update?

Method not supported means that the wallet doesn't support the eth_signTransaction method.
You could try eth_sendTransaction.
Other than that, I cannot help you here.
If you want the wallet to support that method, you will have to reach out to them directly.


Context based logging for rbd

Context-based logging for rbd
Signed-off-by: Madhu Rajanna<EMAIL_ADDRESS>

@humblec @ShyamsundarR @Daniel-Pivonka PTAL

@nixpanic @poornimag PTAL

LGTM besides what shyam said.

LGTM. Thanks @Madhu-1


Blog Post: Long-Term Support For Alex Gleason

Build Preview:

Long-Term Support For Alex Gleason

Social Preview:

Thank you!!

Looks good to me! Please do a quick sanity check if you have a minute @OpenSats/volunteers 🙏🧡

Reads well .. only thing I can see is that the "fediverse" links to activity.pub .. is that the best reference for Fediverse?

@Bayernatoor

The Fediverse link seems incorrect? @Arvin21M, unless you meant to link out to activitypub.rocks ?

@btcschellingpt

Only thing I can see is that the "fediverse" links to activity.pub .. is that the best reference for Fediverse?

Fediverse is essentially a general term coined several years ago to describe how several social networks can communicate with one another. ActivityPub is one these bridges for cross communication.
Since there is no "official" write up, as an alternative, we can include the Wikipedia description for it, or remove the URL all together.

Swapped the link in question.


Remove marshmallow from providers/

Summary
As a follow on to #3383 this continues the process of removing
marshmallow from the provider interface in an effort to stabilize it
before freezing it and introducing a new version. This commit removes
all the usage of marshmallow schemas and models from the providers/
directory and replaces all the classes using it with flat classes
and/or SimpleNamespace classes (if the models allowed arbitrary key
value pairs).
Details and comments
After this PR merges the only place left to remove marshmallow from is results/

Marshmallow used to provide some validation (data type etc). I assume it is now the responsibility of each provider to validate their own data against the schema?

Marshmallow used to provide some validation (data type etc). I assume it is now the responsibility of each provider to validate their own data against the schema?

The actual validation it provided was pretty minimal, especially since all the objects almost all allow additional fields or are free form. When you weigh that against the overhead it definitely isn't worth it. Additionally, all the objects here are being returned by the backends, it shouldn't be terra's job to validate that a device returning it's configuration is actually valid. Like besides required fields (which are still enforced) what do you think terra should be checking?
That being said I honestly don't think the provider should be doing schema validation on the backend configuration, properties, etc either, it provides no value, either it's statically constructed (in the case of simulators or providers like aqt where device configuration isn't query-able), or in the case of ibmq it's just the api response de-serialized and encapsulated in the class (this will change in v2, but then it's dynamically constructed and will be looser anyway). What benefits does ensuring that the api response conforms to the structure defined in it's own schema? If the api breaks their contract and starts returning a structurally invalid response it will bubble up when something goes to use it and it's an issue with the API. Coming from the pov that the api response is potentially always invalid and that we need to structural validate it just wastes cpu cycles.

Like besides required fields (which are still enforced) what do you think terra should be checking?

Nothing. I'm not advocating that terra should be doing validation (as you said, it's not terra's job). I'm only pointing out that instead of the provider code blowing up, terra may now blow up due to invalid data. The performance gain from removing marshmallow still greatly outweighs this, but it's a small behavior change.


tf.Keras BatchNormalization layer causing impossible loss/accuracy in GAN training

System information

Have I written custom code: yes
OS Platform and Distribution: Windows 10, version 1809, os build 17763.1098
Mobile device if the issue happens on mobile device: N/A
TensorFlow installed from:  binary
TensorFlow version: 2.0.0
Python version: Python 3.7.6
Bazel version: N/A
GCC/Compiler version: N/A
CUDA/cuDNN version: 10.1, V10.1.105
GPU model and memory: GeForce RTX 2080 Ti, 11GB

I've been getting unusual losses and accuracies when training GANs with batch normalization layers in the discriminator using tf.keras. GANs have an optimal objective function value of log(4), which occurs when the discriminator is completely unable to discern real samples from fakes and hence predicts 0.5 for all samples. When I include BatchNormalization layers in my discriminator, both the generator and the discriminator achieve near perfect scores (high accuracy, low loss), which is impossible in an adversarial setting.
Without BatchNorm:
This figure shows the losses (y) per epoch (x) when BN is not used. Note that occasional values below the theoretical minimum are due to the training being an iterative process. This figure shows the accuracies when BN is not used, which settle at about 50% each. Both of these figures show reasonable values.
With BatchNorm:
This figure shows the losses (y) per epoch (x) when BN is used. See how the GAN objective, which shouldn't fall below log(4), approaches 0. This figure shows the accuracies when BN is used, with both approaching 100%. GANs are adversarial; the generator and discriminator can't both have 100% accuracy.
I suspect this has something to do with setting model.trainable = False.
Standalone code to reproduce and visualize can be found here; set BATCHNORM_MOMENTUM to 0.9 to enable batchnorm or None to disable it
Update: It seems that BatchNorm in the generator also causes this problem, but has been harder to reproduce.

@ConorLazarou, Will it be possible to provide the sample code snippet. Thanks!

hi @ConorLazarou . I haven't looked at your code yet but there is this paper
TOWARDS PRINCIPLED METHODS FOR TRAINING
GENERATIVE ADVERSARIAL NETWORKS
that talks about discriminator having a theoretically impossible loss. could you please have a look at that...
thanks.

@gadagashwini here it is
import numpy as np
from tensorflow.keras.layers import Input, Dense, BatchNormalization, Activation, LeakyReLU
from tensorflow.keras.models import Model
from tensorflow.keras.optimizers import Adam
import tensorflow as tf
import matplotlib.pyplot as plt

def build_G(batchnorm_momentum=0.9):
    input_layer = Input(shape=(2,))
    for i in range(4):
        X = Dense(64)(input_layer)
        X = Activation('relu')(X)
    output_layer = Dense(2)(X)
    model = Model(input_layer, output_layer)
    return model

def build_D(batchnorm_momentum=0.9):
    input_layer = Input(shape=(2,))
    for i in range(4):
        X = Dense(64)(input_layer)
        if batchnorm_momentum:
            X = BatchNormalization(momentum=batchnorm_momentum)(X)
        X = Activation('relu')(X)
    output_layer = Dense(1, activation='sigmoid')(X)
    model = Model(input_layer, output_layer)
    model.compile(Adam(lr=0.001, beta_1=0.5),
                  loss='binary_crossentropy',
                  metrics=['accuracy'],)
    return model

def build_GAN(G, D):
    D.trainable=False
    input_layer = Input(shape=(2,))
    X = G(input_layer)
    output_layer = D(X)
    model = Model(input_layer, output_layer)
    model.compile(Adam(lr=0.0002, beta_1=0.5),
                  loss='binary_crossentropy',
                  metrics=['accuracy'],)
    return model

def get_noise(num):
    return np.random.random((num, 2)) * 2 - 1

def get_samples(num):
    return np.random.normal(0, 1, (num, 2))

BATCHNORM_MOMENTUM = 0.9
# BATCHNORM_MOMENTUM = None
G = build_G()
D = build_D(batchnorm_momentum=BATCHNORM_MOMENTUM)
GAN = build_GAN(G, D)

EPOCHS = 100
BATCH_SIZE = 32
BATCHES_PER_EPOCH = 100
g_loss = []
g_accuracy = []
d_real_loss = []
d_real_accuracy = []
d_fake_loss = []
d_fake_accuracy = []
for epoch in range(EPOCHS):
    g_running_loss = 0
    g_running_accuracy = 0
    d_real_running_loss = 0
    d_real_running_accuracy = 0
    d_fake_running_loss = 0
    d_fake_running_accuracy = 0
    for batch in range(BATCHES_PER_EPOCH):
        real = get_samples(BATCH_SIZE)
        fake = G.predict(get_noise(BATCH_SIZE))
        l, a = D.train_on_batch(real, np.ones((BATCH_SIZE, 1)))
        d_real_running_loss += l
        d_real_running_accuracy += a
        l, a = D.train_on_batch(fake, np.zeros((BATCH_SIZE, 1)))
        d_fake_running_loss += l
        d_fake_running_accuracy += a

        l, a = GAN.train_on_batch(get_noise(BATCH_SIZE), np.ones((BATCH_SIZE, 1)))
        g_running_loss += l
        g_running_accuracy += a

        print(f'Epoch {epoch+1} [{batch+1}/{BATCHES_PER_EPOCH}]: '
              f'G={g_running_loss/(batch+1):.4f} [{g_running_accuracy/(batch+1):.2%}]; '
              f'Dr={d_real_running_loss/(batch+1):.4f} [{d_real_running_accuracy/(batch+1):.2%}]; '
              f'Df={d_fake_running_loss/(batch+1):.4f} [{d_fake_running_accuracy/(batch+1):.2%}]; '
              f'Overall={(g_running_loss + (d_real_running_loss + d_fake_running_loss) / 2) / (batch+1):.4f}',
              end='\r'
              )
    g_loss.append(g_running_loss / BATCHES_PER_EPOCH)
    g_accuracy.append(g_running_accuracy / BATCHES_PER_EPOCH)
    d_real_loss.append(d_real_running_loss / BATCHES_PER_EPOCH)
    d_real_accuracy.append(d_real_running_accuracy / BATCHES_PER_EPOCH)
    d_fake_loss.append(d_fake_running_loss / BATCHES_PER_EPOCH)
    d_fake_accuracy.append(d_fake_running_accuracy / BATCHES_PER_EPOCH)
    print()

g_loss = np.array(g_loss)
d_real_loss = np.array(d_real_loss)
d_fake_loss = np.array(d_fake_loss)
d_loss = (d_real_loss + d_fake_loss) / 2
plt.plot(np.arange(len(g_loss)) + 1, g_loss, label='G Loss')
plt.plot(np.arange(len(d_loss)) + 1, d_loss, label='D Loss')
plt.plot(np.arange(len(d_loss)) + 1, g_loss + d_loss, label='GAN Objective')
plt.plot([1, len(d_loss)], [np.log(4), np.log(4)], label='GAN Objective Theoretical Minimum')
plt.plot([1, len(d_loss)], [np.log(4)/2, np.log(4)/2], label='Equilibrium')
plt.title("With BatchNorm" if BATCHNORM_MOMENTUM else "Without BatchNorm")
plt.legend(loc='lower left')
plt.show()

g_accuracy = np.array(g_accuracy)
d_real_accuracy = np.array(d_real_accuracy)
d_fake_accuracy = np.array(d_fake_accuracy)
d_accuracy = (d_real_accuracy + d_fake_accuracy) / 2
plt.plot(np.arange(len(g_accuracy)) + 1, g_accuracy, label='G accuracy')
plt.plot(np.arange(len(d_accuracy)) + 1, d_accuracy, label='D accuracy')
plt.plot([1, len(d_accuracy)], [1, 1], label='100%')
plt.title("With BatchNorm" if BATCHNORM_MOMENTUM else "Without BatchNorm")
plt.ylim(-0.05, 1.05)
plt.legend(loc='lower left')
plt.show()

Hi @HopefulRational ,
I skimmed the paper but I'm not sure I understand what you're referring to. The problem here is that the GAN objective function, -log(D(x)) - log(1-D(G(z))) (where the range of D is [0, 1]) has a global minimum of log(4) (when D returns 0.5 for all inputs), but BatchNormalization results in values below much lower than the globabl minimum.

@ConorLazarou i was just referring to thing that even in the paper the issue with which the author starts discussion is that discriminator attains a loss far lower than the actual value...  please see the third page first paragraph  . so i thought maybe you can try the ideas mentioned in the paper like adding noise (if I remember it well) and tell us what is happening...
thanks for considering my option...
and  sorry for the confusion..

Ah yes thanks for pointing that out. Unfortunately, this issue has nothing to do with GAN stability. The issue that Arjovsky and Bottou describe results in the discriminator loss approaching 0 while the generator loss approaches infinity; the issue I'm describing involves the discriminator loss and the generator loss approaching 0, which shouldn't be possible.

@ConorLazarou oh yeah.... sorry I missed that.. we having an adversarial setting here.
so silly of me... ok will look at your code as well as tensorflow bn...
sorry again...
thanks for patience...

Hi @ConorLazarou . I ran the code as it was given by you. I get this error :
Traceback (most recent call last):
  File "GAN_issue.py", line 93, in <module>
    l, a = GAN.train_on_batch(get_noise(BATCH_SIZE), np.ones((BATCH_SIZE, 1)))
  File "/home/vsairaam/anaconda3/lib/python3.7/site-packages/tensorflow/python/keras/engine/training.py", line 1188, in train_on_batch
    outputs = self.train_function(ins)  # pylint: disable=not-callable
  File "/home/vsairaam/anaconda3/lib/python3.7/site-packages/tensorflow/python/keras/backend.py", line 3076, in __call__
    run_metadata=self.run_metadata)
  File "/home/vsairaam/anaconda3/lib/python3.7/site-packages/tensorflow/python/client/session.py", line 1439, in __call__
    run_metadata_ptr)
  File "/home/vsairaam/anaconda3/lib/python3.7/site-packages/tensorflow/python/framework/errors_impl.py", line 528, in __exit__
    c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.InvalidArgumentError: You must feed a value for placeholder tensor 'input_2' with dtype float and shape [?,2]
	 [[{{node input_2}}]]
	 [[{{node _arg_model_1_target_0_1}}]]

Tensorflow : 1.13.1
device 0 with properties: name: GeForce GTX TITAN X major: 5 minor: 2 memoryClockRate(GHz): 1.076

Hi @ConorLazarou . verified your claim. Yes, there is some issue. But it works well on tf 1.15 (current default version on colab).

Oh interesting, I suppose I'll downgrade. I did a bit more testing, and have confirmed what you found, that this does not occur when using tf 1.15 (on a CPU and on a GPU).
And that this does occur when using tf 2.1 (on a CPU and on a GPU).
Thank you so much for finding this workaround for me!

@ConorLazarou,
I tried with Tf 2.1.Please take a look at the colab gist and confirm whether the reported issue is reproduced or not. Thanks!

@gadagashwini
Yeah that's it reproduced. The objective shouldn't ever go much below the theoretical minimum.

There were some changes in the way trainable behaves between 1.x and 2.x; please take a look at the BatchNorm docs here under "About setting layer.trainable = False on a BatchNormalization layer", as this may be causing the discrepancy.

@karmel interesting. Using tensorflow.compat.v1.keras.layers.BatchNormalization instead appears to resolve the problem (although I haven't tested it extensively).

@ConorLazarou thanks for the info. It might be one workaround when working with Gan, however when using any type of tf.keras.Model you will run into issue, apparently you can not mix v1 and v2 layers in a model which kinda make sense.
But there is definitely something wrong with BatchNormalization layer.

Hello
when I train a GAN_model with tf.keras.layers.BatchNormalization(training=True), It is OK.

But, when I test the model (training=False), It is failed...

Is it related to this?
I think, In TF 2.1, for Inference mode in batch normalization(training=False), the model do not use moving_statistics learned during training.

Was able to reproduce your issue in Tf Nightly 2.6.0-dev20210524, please find the gist here. Thanks!

Was able to reproduce your issue in Tf 2.7.0, please find the gist here. Thanks!

Hi There,
This is a stale issue. As you are using an older version of tensorflow, we are checking to see if you still need help on this issue. Please test the issue with the latest TensorFlow (TF2.7 and tf-nightly). If the issue still persists with the newer versions of TF, please feel free to open it in keras-team/keras repository by providing details about the issue and a standalone code to reproduce the issue. Thanks!
Please note that Keras development has moved to a separate Keras-team/keras repository to focus entirely on only Keras. Thanks!


Interface for adaptive BH

I really like the new interface, it's really clean :D.
Here is an attempt to make it easy to specify adaptive (sometimes called α-exhaustive) BH procedures. For example now one could do:
adjust(pv, BenjaminiHochbergAdaptive(0.6)) # oracle procedure
adjust(pv, BenjaminiHochbergAdaptive(Storey())) #adaptive with Storey's estimator

This has too many parentheses though. What do you think?
Also, Happy New Year!

Happy 2016!
This looks great, I like the idea very much. And it doesn't strike me as too convoluted, it appears as a clear and straightforward interface. Can you adapt the tests to cover the changes? Replacing BenjaminiHochbergOracle with BenjaminiHochbergAdaptive should take care of most of it.

Happy 2016!
This looks great, I like the idea very much. And it doesn't strike me as too convoluted, it appears as a clear and straightforward interface. Can you adapt the tests to cover the changes? Replacing BenjaminiHochbergOracle with BenjaminiHochbergAdaptive should take care of most of it.

Ok done :).

Great, thanks!


Documentation addition: Revise README.md (and/or the "help"/"how to use" feature from the CLI) with new instructions

General list of additional information / instructions to add:

If the user does not have models--pyannote--speaker-diarization-3.1 located in their .cache folder, then the CLI would download it first. This leads to a progress bar (with no label) showing up). Users should be made aware about this.

Picture reference:

If the user does not have the desired whisper .pt file in their local .cache folder, then a progress bar would show up during the running of method define_whisper_model. There is no label to this progress bar, so users should be aware about what this progress bar is.

Picture for reference:

The README.md needs to be updated with the following:
The CLI currently supports the following options:

-howtouse: Explains how to use tool  (To use this, run the following command: ./streetwhisperapp -howtouse (if with generated exe) or python streetwhisperapp -howtouse (if directly interacting with the script))
-credits: Credits section (To use this, run the following command: ./streetwhisperapp -credits (if with generated exe) or python streetwhisperapp -credits (if directly interacting with the script))
--help: Shows all the options available (To use this, run the following command: ./streetwhisperapp --help (if with generated exe) or python streetwhisperapp --help (if directly interacting with the script))

To start up the app, run the following command: ./streetwhisperapp (if running the generated exe) or python streetwhisperapp (if running the script).


Group by time is different ?

Hello,
one question when I go through the dashboard I realise that under
CHEAPEST --> WHERE $timeFilter GROUP BY time (5m) fill(none)
MOST EXPENSIVE --> WHERE $timeFilter GROUP BY time (7d) fill(none)
If I understand it correctly it should be shown what is the most expensive or cheapest value the last 7 days or ?
Is this then correct ?

I See that you made it via Query Options ?
Doesnt it affect it each other ?

That should have no impact at all, because you still use the max/min. Value in the last 7days as set in the Query Options. If you want to display a graph, then it would make a difference because the Query witht the GROUP BY 5m will return much more Datapoints than the query with GROUP BY 7d, which will return just one.


TextField: Suggestion menu flickering in some keyboards on Android

Steps to Reproduce

Tap TextField (or TextFormField) and open keyboard
Type something
Suggest menu flickering

Expected results:
On native app

Actual results:
On Flutter app

Keyboard app used in results:
Mozc (https://github.com/google/mozc)
Builds on F-Droid: https://f-droid.org/en/packages/org.mozc.android.inputmethod.japanese/
The Android client of Mozc is already deprecated. But it only happens on Flutter, and there're some apps based with Mozc on Play Store, so I opened this issue.

Hi @kaksgu
Thanks for filing the issue, I can reproduce using the Mozc keyboard, whille using other apps
Preview

code sample
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      home: Scaffold(
        appBar: AppBar(
          title: Text('Material App Bar'),
        ),
        body: Center(
          child: Container(
            child: TextField(),
          ),
        ),
      ),
    );
  }
}

flutter doctor -v
[✓] Flutter (Channel stable, 2.0.4, on Microsoft Windows [Version 10.0.19042.870], locale en-US)
    • Flutter version 2.0.4 at C:\Users\Taha\Code\flutter_stable
    • Framework revision b1395592de (11 days ago), 2021-04-01 14:25:01 -0700
    • Engine revision 2dce47073a
    • Dart version 2.12.2

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Taha\Code\SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = C:\Users\Taha\Code\SDK
    • Java binary at: C:\Users\Taha\Code\android-studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.9.2)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.9.31112.23
    • Windows 10 SDK version 10.0.19041.0

[✓] Android Studio (version 4.1.0)
    • Android Studio at C:\Users\Taha\Code\android-studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[✓] IntelliJ IDEA Community Edition (version 2021.1)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.3.3
    • Flutter plugin version 55.0.5
    • Dart plugin version 211.6693.108

[✓] VS Code (version 1.55.1)
    • VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.21.0

[✓] Connected device (4 available)
    • RMX2001 (mobile)  • EUYTFEUSQSRGDA6D • android-arm64  • Android 10 (API 29)
    • Windows (desktop) • windows          • windows-x64    • Microsoft Windows [Version 10.0.19042.870]
    • Chrome (web)      • chrome           • web-javascript • Google Chrome 89.0.4389.114
    • Edge (web)        • edge             • web-javascript • Microsoft Edge 89.0.774.68

! Doctor found issues in 1 category.

[✓] Flutter (Channel master, 2.1.0-13.0.pre.574, on Microsoft Windows [Version 10.0.19042.870], locale en-US)
    • Flutter version 2.1.0-13.0.pre.574 at C:\Users\Taha\Code\flutter_master
    • Framework revision 02efffc134 (2 days ago), 2021-04-10 03:49:01 -0400
    • Engine revision 8863afff16
    • Dart version 2.13.0 (build 2.13.0-222.0.dev)

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Taha\Code\SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = C:\Users\Taha\Code\SDK
    • Java binary at: C:\Users\Taha\Code\android-studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.9.2)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.9.31112.23
    • Windows 10 SDK version 10.0.19041.0

[✓] Android Studio (version 4.1.0)
    • Android Studio at C:\Users\Taha\Code\android-studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[✓] IntelliJ IDEA Community Edition (version 2021.1)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.3.3
    • Flutter plugin version 55.0.5
    • Dart plugin version 211.6693.108

[✓] VS Code (version 1.55.1)
    • VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.21.0

[✓] Connected device (4 available)
    • RMX2001 (mobile)  • EUYTFEUSQSRGDA6D • android-arm64  • Android 10 (API 29)
    • Windows (desktop) • windows          • windows-x64    • Microsoft Windows [Version 10.0.19042.870]
    • Chrome (web)      • chrome           • web-javascript • Google Chrome 89.0.4389.114
    • Edge (web)        • edge             • web-javascript • Microsoft Edge 89.0.774.68

! Doctor found issues in 1 category.

whille using other apps

@TahaTesser: Did you mean other non-Flutter apps?

Could you see if this happens on master (specifically, after https://github.com/flutter/flutter/commit/9de26095feb29088c7760724258617c7e1d915b4)?

@chinmaygarde
Yes, like Google Play or Slack

It also reproduced on the master channel in https://github.com/flutter/flutter/issues/80218#issuecomment-817776760 and today tried again, the same result. I am hoping https://github.com/flutter/flutter/commit/9de26095feb29088c7760724258617c7e1d915b4 is already is landed on master

some issue here.

Using git bisect, I've found that this bug was introduced in #76653 / b0d4d44, in particular with the addition of this block:
https://github.com/flutter/flutter/blob/2528fa95eb3f8e107b7e28651a61305d960eef85/packages/flutter/lib/src/widgets/editable_text.dart#L4195-L4205
Calling _handleSelectionChanged here ultimately causes InputMethodManager.showSoftInput() to be called on every change in the textfield, causing the problem. As I understand it, calling showSoftInput() on every input like this goes against the documentation for it, which says:

Call this if the user interacts with your view in such a way that they have expressed they would like to start performing input into it.


Add mapping for Final Fantasy XIV game controller

Please add the mapping for Final Fantasy XIV game controllers to your DB.
You can find images of the controller here:
https://user-images.githubusercontent.com/3684359/224511314-e715dced-d11d-47b1-9cdd-6a13da67466b.jpg
https://user-images.githubusercontent.com/3684359/224511311-4ac27d93-ce0a-4ea8-86d4-40d20e6645ee.jpg
Mapping produced with SDL2 Gamepad Mapper:
03005036852100000201000010010000,Final Fantasy XIV,a:b1,b:b2,x:b0,y:b3,back:b8,start:b9,leftshoulder:b4,rightshoulder:b5,leftstick:b10,rightstick:b11,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2,leftx:-a0,+leftx:+a0,-lefty:-a1,+lefty:+a1,-rightx:-a2,+rightx:+a2,righty:a3,lefttrigger:b6,righttrigger:b7,platform:Linux,
The mapper tool asked for each button. I was not able to assign a button to the black circle in the middle of the controller image shown by the tool. I skipped it. Hope the mapping makes sense.
Are the "FUNCTION", "ANALOG" and "VIB ON/OFF" buttons of any interest for this purpose?
Is this information sufficient?

Thanks ! Would love mappings for other platforms as well, if you're able. I didn't know they sold this with XIV branding -- the same device is available as a FFXI gamepad ! Always thought it looked kind of like this guy https://i.imgur.com/ajQPJDC.png 😂

Are the "FUNCTION", "ANALOG" and "VIB ON/OFF" buttons of any interest for this purpose?

If you can get a mapping off FUNCTION it'd suit guide I think; no problem if not.

Easy GUID port to Windows since the Linux indices match the button labels. b7e5701da82fc97beeede64d3818ef0f4d015aba

If you can get a mapping off FUNCTION it'd suit guide I think; no problem if not.

If I could, sure. However the mapping tool did not react to the FUNCTION button. Should it react to that button?

Always thought this pad kind of looks like this guy https://i.imgur.com/ajQPJDC.png joy

LOL, I can see it too :-D

the mapping tool did not react to the FUNCTION button

no problem

Even after loading the gamecontrollerdb.txt the controller is still recognized as "FUJIWORK CO., FF-GP1" and SDL_IsGameController() returns false. (https://github.com/HurricanGame/Hurrican/issues/35#issuecomment-1541528933)
The configuration string in the SDL2 internal DB is
"03000000852100000201000000000000,FF-GP1,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,",
Any clue on what's going on?
Also noticed that SDL_GameControllerAddMappingsFromFile returns 273 lines loaded even if the file contains more than five hundred entries for Linux.
Using SDL 2.24.0

Sounds like an issue for the SDL2 project.


Syntactic sugar for outputting capture variable

A common pattern we use is storing the result of a %%sql cell in a variable using the << operator so it can be used for further processing later, but then also immediately outputting that variable in the cell below to look at the results.
[1] %%sql MYRESULT <<
    SELECT * FROM MYTABLE WHERE x = "y"
[1] (No cell output)

[2] MYRESULT # display result
[2] <result output>

It would be nice if jupysql would support some syntactic sugar so this could be done in a single cell:
[1] %%sql MYRESULT= <<
    SELECT * FROM MYTABLE WHERE x = "y"
[2] <result output>

Notice the use of the = sign after the variable name (so MYRESULT= instead of MYRESULT). This is just a suggested syntax, inspired by similar python f-strings expressions.
Alternative ways could be:

Using a global config flag:
%config SqlMagic.outputVariables = False  # Probably use a better config name?

Use a cell-magic flag, e.g. --print (more verbose, but less esoteric than using the = syntax)
%%sql --print MYRESULT= <<
SELECT * FROM MYTABLE WHERE x = "y"

Other?

I'm not sure whether the %sql (single %) magic would benefit from a similar capability?
I had a quick look at the code, and I think the logic here just needs to be changed to return result in case the variable outputting is enabled.
https://github.com/ploomber/jupysql/blob/a456c3a66477b7ddd8967b8353b95d3c99d3739f/src/sql/magic.py#L399-L401
In case we we want to use special syntax with = (as opposed to %%sql flags or global config options), I think that detection of whether variable outputting is enabled would happen here:
https://github.com/ploomber/jupysql/blob/a456c3a66477b7ddd8967b8353b95d3c99d3739f/src/sql/parse.py#L53-L54
Thanks for considering!

This makes sense, although I'm unsure if the = << or the config is better.
@jorisroovers: have you encountered cases where you do not want to display the data preview? I think a config makes sense if you always want to show it, and the = << makes sense if in a given notebook, there's a high chance that users want the preview in some cells  but not in others
One consideration is how many rows we should display, but I think those are separate issues: https://github.com/ploomber/jupysql/issues/419

@jorisroovers: have you encountered cases where you do not want to display the data preview? I think a config makes sense if you always want to show it, and the = << makes sense if in a given notebook, there's a high chance that users want the preview in some cells but not in others

Yes, I think there use-cases for both scenarios.
I personally like the = << syntax as it allows me the choice and quickly enable/disable output formatting while working on a specific query while not "poluting" the notebook with output of variables I don't want.
I can look into submitting PR(s) for either or both approaches if you want (might take a bit, depending on how quickly I can make the time).

Have not forgotten! Hopefully this week :)


Design improvement: Use of numeric data vs boxes

Thanks for creating an issue! Please fill out this form so we can be sure to have all the information we need, and to minimize back and forth.

What are we trying to do?

@eheintzelman has very astutely pointed out that it's kinda clunky to us a toggle-spinner-deal for dropdowns (per below), and that a downward facing chevron would be better here.

vs

What feature or behavior is this required for?

A clean design where it's clear what certain inputs are looking for, datatype wise.

How could we solve this issue? (Not knowing is okay!)

Conveniently, I have no idea! I'd like to avoid some jquery-ui plugin if possible but am not opposed if that's the path of least resistance.

Anything else?

When we settle on a styling, we'll want to apply this in particular to input boxes on patient information, abortion information, and pledge fulfillment tabs, as well as the create patient form.
See this comment for origins. https://github.com/DCAFEngineering/dcaf_case_management/issues/1242#issuecomment-328695235
I'm tagging as UX/question because I don't have a terribly clear strategy/path to victory on this one, and would like people's opinions.

After I wrote this comment in #1242, I started seeing this 'toggle-spinner' like dropdown used all over the place on other websites. So clearly, I was wrong and this is a common signifier for a dropdown. Stylistically, I prefer the simple downward chevron (as in original @mebates design), but from a usability standpoint, what we have works just great. It also looks different enough from the spinner that is currently used in a few fields (see 'Abortion Cost' field for example), and I don't imagine there will be any confusion. That's my two cents.

Are you also looking to discuss the dropdown vs. spinner for some form fields?
The control used for the cost fields is useful for numeric fields - quick entry by typing or option to use the spinner to increase/decrease value.

Applicable fields:

Age
Minors in household
Adults in household
Weeks (LMP)
Days (LMP)


Won't build for platform=android, JDK version too new?

Hi there, I'm stuck in a loop between adding and being unable to use Corber with the Android platform. Long post, as I try to document it as well as I can.
When I try to use the platform, corber says it's not installed:
$ corber start --platform=android
[[...removed: deprecation warning*...]]
Corber Starting
Corber:
        You are passing platform=android which is not installed.
        Try running corber platform add android

However, it IS installed. Trying to add the platform yields:
$ corber platform add android
[[...removed: deprecation warning*...]]
Preparing to add platform android
Using cordova-fetch for<EMAIL_ADDRESS>Corber: Platform android already added.

And when I then try to start it again, it still doesn't work:
$ corber start --platform=android
[[...removed: deprecation warning*...]]
Corber Starting
Corber:
        You are passing platform=android which is not installed.
        Try running corber platform add android

Et cetera et cetera.
When I run corber build --platform=android I get a little bit more information though:
(... building Ember app code..)
Built project successfully. Stored in "dist/".
corber: Setting up corber/cordova/www/index.html...

Android Studio project detected
config file *-Info.plist requested for changes not found at /Users/eelke/Documents/Werk/Server/mondriaan-route/corber/cordova/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /Users/eelke/Documents/Werk/Server/mondriaan-route/corber/cordova/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /Users/eelke/Documents/Werk/Server/mondriaan-route/corber/cordova/platforms/android/*-Info.plist, ignoring
ANDROID_HOME=/Users/eelke/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home
Corber: Requirements check failed for JDK 1.8

I have a brand new Ember project + a new installation of Corber. I have also followed all the steps in the Android Setup: Android Studio is installed, with a virtual machine, and I have actually been able to compile and run another project inside the VM.
corber start does work with iOS and the iOS simulator. And I have also been able to build a project (using corber build – no specific platform set), followed by manually importing and building the project from corber/cordova/platforms/android/ into Android Studio.
My setup:
ember-cli: 3.5.0
node: 8.12.0
os: darwin x64

corber -v
[[...removed: deprecation warning*...]]
corber (global): 1.3.2
corber (package.json): ^1.3.2
corber (node_modules): 1.3.2
node: 8.12.0

I have added the to ~/.profile:
export PATH=$PATH:/Users/eelke/Library/Android/sdk/platform-tools
export PATH=$PATH:/Users/eelke/Library/Android/sdk/tools
export ANDROID_HOME=/Users/eelke/Library/Android/sdk

And these show up correctly when I run both echo $PATH and echo $ANDROID_HOME.
Any suggestions?

*)  The deprecation warning is: DEPRECATION: An addon is trying to access project.nodeModulesPath. This is not a reliable way to discover npm modules. Instead, consider doing: require("resolve").sync(something, { basedir: project.root }). Accessed from:   new NPMDependencyVersionChecker (/Users/eelke/.config/yarn/global/node_modules/ember-cli-version-checker/src/npm-dependency-version-checker.js:11:33)

Thanks for reporting this - updating the documentation now.


add property type

It's not allowed to have a different signature for these properties than defined in the Laravel Command class. As you can see, this doesn't work and all checks are failing.

Yes, I got it.
Thanks for the explanation


[ISSUE]-Solved

Solves #6
Added all submissions from user code-chaser (all verdicts)

Closes #6


Django commands work with pipenv run, but not in pipenv shell activated environment

I believe this is a unique concern after checking through open issues and reviewing the diagnose documentation, including the No module named  section.
I have pipenv 2018.7.1 (latest) installed according to the Pragmatic Installation of Pipenv instructions in a debian/contrib-stretch64 Vagrant VM running Python 3.7 (same issue in 3.6 as well). Django version 2.0.7 (latest) is installed with pipenv.
Issue description
I am able to run Django commands using pipenv run python manage.py ..., but with pipenv shell a ModuleNotFoundError exception is thrown.
Expected result
pipenv run <command> and pipenv shell + <command> should produce the same result.
$ pipenv run python manage.py check
System check identified no issues (0 silenced).

$ pipenv shell
(vagrant) $ python manage.py check
System check identified no issues (0 silenced).

Actual result
pipenv run <command> works as expected but pipenv shell + <command> produces ModuleNotFoundError
$ pipenv run python manage.py check
Loading .env environment variables...
System check identified no issues (0 silenced).

$ pipenv shell
Loading .env environment variables...
Launching subshell in virtual environment…
$  . /vagrant/.venv/bin/activate
(vagrant) $ python manage.py check
Traceback (most recent call last):
  File "manage.py", line 8, in <module>
    from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "manage.py", line 14, in <module>
    ) from exc
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment var
iable? Did you forget to activate a virtual environment?

Steps to replicate
$ python3 -m pip install --user pipenv
$ cd myproject
$ pipenv install django
$ pipenv shell
(myproject-gKDsaKU3) $ python manage.py check

$ pipenv --support
Pipenv version: '2018.7.1'
Pipenv location: '/home/vagrant/.local/lib/python3.7/site-packages/pipenv'
Python location: '/usr/bin/python3.7'
Other Python installations in PATH:

2.7: /usr/bin/python2.7

2.7: /usr/bin/python2.7

3.6: /usr/bin/python3.6m

3.6: /usr/bin/python3.6

3.7: /usr/bin/python3.7m

3.7: /usr/bin/python3.7

2.7.15: /usr/bin/python

2.7.15: /usr/bin/python2

3.6.6: /usr/bin/python3

PEP 508 Information:
{'implementation_name': 'cpython',
 'implementation_version': '3.7.0',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '4.9.0-6-amd64',
 'platform_system': 'Linux',
 'platform_version': '#1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07)',
 'python_full_version': '3.7.0',
 'python_version': '3.7',
 'sys_platform': 'linux'}

System environment variables:

LS_COLORS
ALLOWED_HOSTS
PROJECT_NAME
SSH_CONNECTION
LANG
OLDPWD
DEBUG
SECRET_KEY
XDG_SESSION_ID
USER
PIP_PYTHON_PATH
PWD
HOME
SSH_CLIENT
POSTGRES_PORT
POSTGRES_DB
PIPENV_ACTIVE
SSH_TTY
MAIL
EMAIL_HOST_USER
SHELL
TERM
POSTGRES_PASSWORD
EMAIL_HOST
POSTGRES_USER
PYTHONDONTWRITEBYTECODE
SHLVL
LOGNAME
XDG_RUNTIME_DIR
EMAIL_PORT
PATH
PS1
POSTGRES_HOST
EMAIL_HOST_PASSWORD
_

Pipenv–specific environment variables:

PIPENV_ACTIVE: 1

Debug–specific environment variables:

PATH: /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/vagrant/.local/bin:/home/vagrant/.local/bin
SHELL: /bin/bash
LANG: en_US.UTF-8
PWD: /vagrant

Contents of Pipfile ('/vagrant/Pipfile'):
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
django = "*"
"psycopg2" = "*"

[dev-packages]

[requires]
python_version = "3.7"

Contents of Pipfile.lock ('/vagrant/Pipfile.lock'):
{
    "_meta": {
        "hash": {
            "sha256": "0350b2d3dd5c14854a848f6456f7d0a4f0079a4b2a6a3b79bf68366faa70c6eb"
        },
        "pipfile-spec": 6,
        "requires": {
            "python_version": "3.7"
        },
        "sources": [
            {
                "name": "pypi",
                "url": "https://pypi.org/simple",
                "verify_ssl": true
            }
        ]
    },
    "default": {
        "django": {
            "hashes": [
                "sha256:97886b8a13bbc33bfeba2ff133035d3eca014e2309dff2b6da0bdfc0b8656613",
                "sha256:e900b73beee8977c7b887d90c6c57d68af10066b9dac898e1eaf0f82313de334"
            ],
            "index": "pypi",
            "version": "==2.0.7"
        },
        "psycopg2": {
            "hashes": [
                "sha256:0b9e48a1c1505699a64ac58815ca99104aacace8321e455072cee4f7fe7b2698",
                "sha256:0f4c784e1b5a320efb434c66a50b8dd7e30a7dc047e8f45c0a8d2694bfe72781",
                "sha256:0fdbaa32c9eb09ef09d425dc154628fca6fa69d2f7c1a33f889abb7e0efb3909",
                "sha256:11fbf688d5c953c0a5ba625cc42dea9aeb2321942c7c5ed9341a68f865dc8cb1",
                "sha256:19eaac4eb25ab078bd0f28304a0cb08702d120caadfe76bb1e6846ed1f68635e",
                "sha256:3232ec1a3bf4dba97fbf9b03ce12e4b6c1d01ea3c85773903a67ced725728232",
                "sha256:36f8f9c216fcca048006f6dd60e4d3e6f406afde26cfb99e063f137070139eaf",
                "sha256:59c1a0e4f9abe970062ed35d0720935197800a7ef7a62b3a9e3a70588d9ca40b",
                "sha256:6506c5ff88750948c28d41852c09c5d2a49f51f28c6d90cbf1b6808e18c64e88",
                "sha256:6bc3e68ee16f571681b8c0b6d5c0a77bef3c589012352b3f0cf5520e674e9d01",
                "sha256:6dbbd7aabbc861eec6b910522534894d9dbb507d5819bc982032c3ea2e974f51",
                "sha256:6e737915de826650d1a5f7ff4ac6cf888a26f021a647390ca7bafdba0e85462b",
                "sha256:6ed9b2cfe85abc720e8943c1808eeffd41daa73e18b7c1e1a228b0b91f768ccc",
                "sha256:711ec617ba453fdfc66616db2520db3a6d9a891e3bf62ef9aba4c95bb4e61230",
                "sha256:844dacdf7530c5c612718cf12bc001f59b2d9329d35b495f1ff25045161aa6af",
                "sha256:86b52e146da13c896e50c5a3341a9448151f1092b1a4153e425d1e8b62fec508",
                "sha256:985c06c2a0f227131733ae58d6a541a5bc8b665e7305494782bebdb74202b793",
                "sha256:a86dfe45f4f9c55b1a2312ff20a59b30da8d39c0e8821d00018372a2a177098f",
                "sha256:aa3cd07f7f7e3183b63d48300666f920828a9dbd7d7ec53d450df2c4953687a9",
                "sha256:b1964ed645ef8317806d615d9ff006c0dadc09dfc54b99ae67f9ba7a1ec9d5d2",
                "sha256:b2abbff9e4141484bb89b96eb8eae186d77bc6d5ffbec6b01783ee5c3c467351",
                "sha256:cc33c3a90492e21713260095f02b12bee02b8d1f2c03a221d763ce04fa90e2e9",
                "sha256:d7de3bf0986d777807611c36e809b77a13bf1888f5c8db0ebf24b47a52d10726",
                "sha256:db5e3c52576cc5b93a959a03ccc3b02cb8f0af1fbbdc80645f7a215f0b864f3a",
                "sha256:e168aa795ffbb11379c942cf95bf813c7db9aa55538eb61de8c6815e092416f5",
                "sha256:e9ca911f8e2d3117e5241d5fa9aaa991cb22fb0792627eeada47425d706b5ec8",
                "sha256:eccf962d41ca46e6326b97c8fe0a6687b58dfc1a5f6540ed071ff1474cea749e",
                "sha256:efa19deae6b9e504a74347fe5e25c2cb9343766c489c2ae921b05f37338b18d1",
                "sha256:f4b0460a21f784abe17b496f66e74157a6c36116fa86da8bf6aa028b9e8ad5fe",
                "sha256:f93d508ca64d924d478fb11e272e09524698f0c581d9032e68958cfbdd41faef"
            ],
            "index": "pypi",
            "version": "==2.7.5"
        },
        "pytz": {
            "hashes": [
                "sha256:a061aa0a9e06881eb8b3b2b43f05b9439d6583c206d0a6c340ff72a7b6669053",
                "sha256:ffb9ef1de172603304d9d2819af6f5ece76f2e85ec10692a524dd876e72bf277"
            ],
            "version": "==2018.5"
        }
    },
    "develop": {}
}

Here is a project with all of the relevant code and Vagrant configuration: https://gitlab.com/ryangallen/vagrant-django

Hmmm I can't actually replicate this....

Any chance you can give me a dockerfile that can reproduce this? I don't really use vagrant so it's hard to know whats going on in that

I get the impression the virtual environment may be broken, similar to #2493.

@techalchemy - I can try to create a Dockerfile for you
@uranusjr - I will give that a shot
Thank you for the quick replies

Any updates @ryangallen?

Tried using installing python3.7-dev and python3.7-pip, the pip package doesn't exist though. After installing python3.7-dev, the error persists.

@ryangallen is pipenv installing the correct django version here? I can't actually replicate this (copied your manage.py exactly and ran pipenv install django followed by pipenv shell) -- python manage.py --help works just fine for me
not sure if this is still a problem, closing for now but feel free to file a new issue if this persists

For anyone stumbling upon this issue, i got this exact error because I was aliasing python to python3 and pip to pip3. Removing the aliases did it for me.

For anyone stumbling upon this issue, i got this exact error because I was aliasing python to python3 and pip to pip3. Removing the aliases did it for me.

Thank you. This helped me as well

For anyone stumbling upon this issue, i got this exact error because I was aliasing python to python3 and pip to pip3. Removing the aliases did it for me.

Yes ! This worked for me too (I had an alias to another python thing). Thanks

For anyone stumbling upon this issue, i got this exact error because I was aliasing python to python3 and pip to pip3. Removing the aliases did it for me.

Yes ! This worked for me too (I had an alias to another python thing). Thanks


Colormap

Description:
Hi Francesco,
I was wondering if it would be possible to implement some of these features regarding the colormaps of the segmentation masks:

adding more options like 'tab20';
saving a custom made colormap;
adding a color scheme based on four color theorem.

Thanks!
Ciro

Hi Ciro, I just added the tab20 colormap. I will soon add the possibility to save the colormap, have a good weekend!

Hi Alex,
I just released v1.2.6 where you can save the colourmap and shuffle it in an optimised way. Both of these new options are available from the right-click menu of the colorbar.
To update, activate the acdc environment and run the command pip install --upgrade cellacdc.
Let me know if it works, thanks!
Cheers,
Francesco


Log for mediator's probs

Hi Dmitry, I hope this message finds you well!
I've been reading your paper, Mediated Multi-Agent Reinforcement Learning. The idea is fascinating, and I'm currently attempting to reproduce the results using the code provided on GitHub. However, I've encountered a discrepancy between the logs for the mediator and the agents. Specifically, the action mapping seems inconsistent: for the environmental agents, action 0 is "defect," 1 is "cooperate," and 2 is "commit." Meanwhile, for the mediator, action 0 is "cooperate," and 1 is "defect," which appears to be opposite to the agents.
In the controller.py file, I noticed that the mediator's moves are set to correspond to the environmental agents' moves when they choose to commit, as indicated by actions_to_env[i] = actions_mediator[i].
Could there be an issue with the logging, or is there a misunderstanding on my part? I would appreciate your clarification on this matter.
Thank you very much!

Hi, @Sophiakkk, thanks for your interest in this work. Agent's actions have the following correspondence:

0 -- defect
1 -- cooperation
2 -- choosing mediator

Regarding the issue, logs indeed have been written in wrong order: action names for mediator should be switched. Now, as changes to tabular-games/env/log.py have been applied, it should output correct policy info.


GPUParticles: Add use_physics_step option to synchronize to physics simulation

Enabling this new option fixes GH-97160
When inheriting a high velocity from the particle emitter, we run into situations where the particles becomes desynced from the physics simulation, either traveling far ahead or lagging behind. To fix this I added an optional checkbox (default: false) to update the particle at the same rate as the physics simulation.
When this is enabled, the fixed_fps is ignored, and instead we update the particles the same number of times that the physics simulation was updated this frame. This keeps the particle's simulation in sync with the physics simulation.
With use_physics_step = true. Note that the particles are at the correct placement relative to the rocket barrel.

With use_physics_step = false:

Updated docs and now passing tests
I consider renaming this option to use_physics_ticks or synchronize_to_physics_simulation but decided to stay with the current name for now. Am certainly open to feedback for what would be a descriptive & discoverable name.

Nice!
Looks like the review process is going to be a long one. Please could you rebase on 6th/7th of January, that'll ensure build artifacts are around for when people get back from holidays.


S3 source

Hi,
I am trying apex and I think it is a good idea. In particular, I need to load data from S3 (ELB logs, for instance) to RedShift.
I started with an apex init creating a dummy function, and for sure I need to add an Event Source to trigger the function.
Something like

I guess this is an issue related to this topic, my question is:

Would it be possible to support event source? Right now if I run apex deploy the Event source is deleted.
Alternatively, would it be possible to not delete it and keep the one configured on AWS?

I don't know which option feet better with apex project goals, but, I would like to contribute. Even if am not a skilled golang programmer, it should be easy for me to test and eventually propose some modification if   I recieve some hint before diving into the code.
Please let me know any hint.

Oops this should be closed actually. We're advocating the use of existing tools like CloudFormation / Terraform to manage non-Lambda infrastructure, at least for now! I use Apex + Terraform for my projects personally

Can you give an example? As a user that is trying apex, if when I updated the lambda with apex deploy it overrides the S3 source and there is no hint in the documentation, it is a limit that makes me write a lambda from the AWS interface.

Oh I see it's overriding? That definitely should not be the case, anything you configure manually or via another tool should remain. The only parts that an apex deploy should override is the actual function's config such as role and timeout.

Sorry, it does not override neither delete: it works.
I tryed again and it worked. I got confused cause I created my very first lambda function with AWS, then my second one with apex, with a similar name.
Thanks.

ahhh cool, had me confused :D glad it's not doing strange things


[DRAFT] adding demo files to build_and_test.sh run

I added a run_all_demos.py file and added that to the build_and_test.sh file. Not sure if it's working properly yet. @calbaker @kylecarow let me know if there's anything you notice is wrong right off the bat. Otherwise, I'll continue checking out the demo files to see if they run, and then note any errors and try running the sh file again (first time it got stuck trying to run the second or third demo file).

For the accel_demo.py file, running the file gives these warnings (not sure if the warnings are ok or not):

for cav_demo.py, it ran successfully (RAN_SUCCESSFULLY = True), but had the following warning:

demo_abc_drag_coef_conv.py ran with the following warnings:

demo.py ran with the following warnings:

fusion_thermal_demo.py was not able to run due to the following error:

mp_parallel_demo.py ran with the following warning:
2023-10-04 16:31:26.248007
Running with 4 pool processes.
:42: UserWarning: Unknown arguments: ['--ip=<IP_ADDRESS>', '--stdin=9013', '--control=9011', '--hb=9010', '--Session.signature_scheme="hmac-sha256"', '--Session.key=b"b751cf54-1710-4444-92d2-6af34db5352e"', '--shell=9012', '--transport="tcp"', '--iopub=9014', '--f=c:\Users\rsteutev\AppData\Roaming\jupyter\runtime\kernel-v2-1832nG2N0vD4uUgT.json']
warnings.warn(f"Unknown arguments: {unknown}")
Elapsed time: 36.17

time_dilation_demo.py ran with the following warnings:

test_demo.py failed to run with the following error:

test_cav_demo.py failed to run with the following error:

The following files run with warnings:
accel_demo.py
cav_demo.py
demo_abc_drag_coef_conv.py
demo.py
mp_parallel_demo.py
time_dilation_demo.py
The following files ran without any warnings or errors:

@calbaker I think I successfully created a file run_all.py which finds all files in the demos folder which have 'demo' in the title and end in .py and runs them. I added this file to the build_and_test.sh so that it runs whenever the build_and_test.sh file is run. A couple things: right now, each of the demo files runs fully, which leads to many lines of output, making it hard to tell which files have run and, if the overall build_and_test.sh doesn't run, which file caused the error. Would it be better to figure out a way to run each file which only returned whether or not the file successfully ran, rather than all the demo file's outputs? Not sure how to do this off the top of my head but happy to work on this if you think it would be helpful. Also, is there anything I should do in order to make it so that the demo folder doesn't get downloaded with the program when fastsim is installed with pip, and instead is downloaded separately like in altrios?

The latest commit implements altrios-style demos testing in the build_and_test.sh file. The sh file now runs all of the demos files, without showing the plots (a SHOW_PLOTS variable is used to determine whether or not the plots are shown, with the variable being false for the sh tests). Also partially implemented is a function in the utilities file that downloads the demos files (so that users can download and modify demos files). @calbaker how do I add the demos check to the github tests? Not sure how to get started with that.

Most recent commit adding "requests" python library to pyproject.toml made it so all the github checks passed (before, none of them did).

Not sure why, but my fastsim code stopped being able to compile today, with this error:
#![feature] may not be used on the stable release channel
This was referring to line of code 238 in lib.rs:
#![cfg_attr(error_generic_member_access, feature(error_generic_member_access))]
Not sure why this error is coming up now, since there have been no changes on this branch to the lib.rs file. This means I can't test/troubleshoot the copy_demo_files function -- or at least, I haven't figure out a way around this in order to do so. I tried commenting out this one line of code, but it just added more errors. Any idea what is going wrong @calbaker @kylecarow ?

@robinsteuteville , I think you could actually probably figure this one out based on spending ~20 minutes doing initial troubleshooting

@robinsteuteville , is this one ready to go?

@robinsteuteville , is this one ready to go?

@calbaker I believe so. I fixed the issues that you noted earlier -- perhaps check to make sure they seem good to you, and if so, it should be ready to merge.


Fixed Customer parse

When parsing Customer data from Braspag API, the ApiServices class was injecting Address model data into Customer model.

Thank you!
I'm going to merge this now!


better single-qubit gate optimization workflow

What should we add?
There has been some work recently in https://github.com/Qiskit/qiskit-terra/pull/7579 and https://github.com/Qiskit/qiskit-terra/pull/8178 to enable optimization of chains of single-qubit gates when they contain parameters. Previously qiskit only did this optimization for numeric values.
While useful, the current procedure is still a bit ad-hoc. It enables optimizing:

a chain of rz
a chain of rx
a chain of ry
a chain of p
a chain of u1
a chain of u2 (plus possible u1)

Instead I suggest the following workflow:

For one, we should not have two passes for this Optimize1qGates and Optimize1qGatesDecomposition. The former should be deprecated.

Then, the pass should collect and consolidate any chain of single-qubit gates into a 2x2 unitary matrix. Regardless of what the underlying gates are (rx, ry, rz, u, u2, s, t, ...), the chain should be represented as a single 2x2 matrix. This should be fast to compute even for symbolic math.

Then we build synthesis routines to go from a 2x2 matrix to any of the basis of interest:

U1 or RZ/P in case the result is a diagonal
U2 or RZ-SX-RZ in case the matrix is of a particular shape
U3 or U in case the matrix is general
RZ-RX-RY or RX-RZ-RX or RZ-RY-RZ  or ...(any combination of two pauli rotations), in case this decomposition is desired. We already have code for this in quantum_info/synthesis/one_qubit_euler_decomposition
RZ-SX-RZ-SX-RZ or RZ-SX-RZ in case these gates are in the basis
Clifford + T in case a fault-tolerant basis is required

The point is that single qubit gate synthesis is easy and known. It's also small and efficient to compute the full matrix. So instead of lots of ad-hoc rules for combining gates, we should just make a generic U, then go to the desired basis from there.

I agree the single qubit gate chain path should be unified and improved and doing things on an ad-hoc basis just leads to us missing things. For the specific steps:

I'm fine with this, but we've been reluctant to deprecate transpiler passes in general though even if they've been superseded by something better. This came up recently again with CSPLayout vs VF2Layout and we decided to just keep CSPLayout even if it's not as good as people might be depending on it. We don't have to use it in the preset passmanagers. I think for optimize 1q gates though, there really isn't a use case unless you have a target basis with u and then it might be marginally faster.

This mostly already exists as it's what Optimize1qGatesDecomposition does internally. The thing that's missing is support for parameters. The fundamental issue around doing this is that the matrix is represented as a numpy array and we're not able to mix types in a numpy array. Also numpy doesn't have support for dealing with ParameterExpression as a numeric element (we can put it in an object dtype array but that limits what it can be used for as it's just an array of pointers to python objects and isn't really useful here). There really isn't a good array representation that supports symbolic elements. Sympy has representations of this but it's super slow in my experience and I'm not sure we'd want to go down that path and I'm pretty sure that symengine doesn't offer equivalent functionality.

Ideally I'd like to make this pluggable somehow too so that backends with custom basis don't have to rewrite the synthesis pass from scratch and can just leverage the machinery around the pass and insert a custom target basis to the pass directly.

Maybe we can change in the Quaternion class (qiskit.quantum_info.synthesis.quaternion) to support symbols. In that case, we can convert any gate to u3, and then using Euler angles we can merge gates. The final u3 can be in easy way decomposed into base gates.

So yeah one could do that, but then you would really need to have a way of symbolically having a function vec3 = f(vec2, vec1) that can be expressed in string form and using vectors that are passed around.  Otherwise you couldn't lazy eval the expression at the end.  If this is used generically then the only symbolics one needs is the parameter names to bind to.  Other than that, the insertion order of something like a list tells you how to compose the unitaries.  After binding this could just be iteratively evaluated.  Because these are all effectively small matrix / vector computations, doing the final numerics in rust (or the like) is going to be beneficial to remove function call overheads.


PHP support

Hello
Thanks for your effort
Does this plugin support PHP (symphony) ?
if yes , how i can integrate them ?

there is exprimental composer support but not symphony as you can see in the docs: https://jeremylong.github.io/DependencyCheck/analyzers/index.html

Hello
how i can start scan on php ?

If using composer you can run:
$ dependency-check.sh --enableExperimental -s [path/to/scan] -o [path/to/generated/reports]


LoginForm redirects to ?BackURL on empty submission

Example: http://www.silverstripe.org/Security/login?BackURL=/home
If you navigate to a login form with a BackURL specified in the URL and then submit the form without entering any data, the form redirects you to the BackURL location.
This is due to Controller::redirectBack() looking at BackURL for the current request and Form::getValidationErrorResponse() not taking into account a failed validation should probably redirect to the page with the form, rather than the BackURL

NB: to replicate you need to turn off HTML5 browser validation on inputs

This is actually a setting in src/Forms/Form.php#183 called redirectToFormOnValidationError which is by default set to false. Do you think this should be changed? I agree that redirecting back to the form is the more logical behaviour and I couldn't find any occurrences of the property being used, at least in framework.

redirectToFormOnValidationError  controls if the ID of the form is added to the URL as an anchor, I believe, and not whether to ignore the BackURL or not. the fact the BackURL is used of form failure in either case is an error.

I'm pretty sure that's not the case, first of all the comment on that var:
Should we redirect the user back down to the
the form on validation errors rather then just the page

Then it's use in getValidationErrorResponse:
// Determine redirection method
if ($this->getRedirectToFormOnValidationError() && ($pageURL = $this->getRedirectReferer())) {
    return $this->controller->redirect($pageURL . '#' . $this->FormName());
}
return $this->controller->redirectBack();

I read this as:
If redirectToFormOnValidationError (False) and referrer set (getRedirectReferer this is the referrer which is set by the form controller to the page containing the form.)
Then redirect to the referrer (Form) with fragment FormName
Else redirect to the back url
It's possible I'm mistaken here, but I'm pretty sure I'm not.

Reproduced on SS 4.3.x-dev


Remove fixtures when input has value

Short description
I'm trying to remove the fixtures when the input has value.
Expected results
The fixtures should be removed
Actual results
The fixtures are still there
Additional Information
I saved the input value into the state using onChange method, and I tried the following methods:
const [value, setValue] = useState('');

Using the fixtures prop and the state to filter the fixtures.

<Geosuggest
        fixtures={fixtures.filter(({ label }) => label.loLowerCase().includes(value))}
        onChange={(v) => {
             setValue(v.toLowerCase());
         }}

or
<Geosuggest
        fixtures={value ? null : fixtures)}
        onChange={(v) => {
             setValue(v.toLowerCase());
         }}

Using the skipSuggest prop (as suggested here: https://github.com/ubilabs/react-geosuggest/issues/371)
Note: there is no isFixtures property on the skipSuggest parameter, but only the fixtures have label

<Geosuggest
        skipSuggest={({ label }) => !!(value && label)}
        fixtures={fixtures}
        onChange={(v) => {
             setValue(v.toLowerCase());
         }}

I even tried changing maxFixtures base on the value, but it didn't work.
Is there any solution to this problem ? Or is there something wrong in my code ?
Thank you for your time!

Im running into the same issue, any updates on this @Alin13

Nothing yet. And it seems no one will ever read those issues, 👎

+1

@Alin13 @jalanga fork and fix? who is down?

Will be fixed by Ubilabs upcoming week

I try to reproduce this. For me it works as expected when I use your second suggestion. But instead of null I pass in undefined because TypeScript.  😃
So this is the minimal example that works:
/* global google */

import React, {useState} from 'react';
import ReactDOM from 'react-dom';
import Geosuggest from 'react-geosuggest';

const App = () => {
  const [suggestValue, setSuggestValue] = useState('');

  /**
   * When the input got changed
   */
  const onChange = (value) => {
    setSuggestValue(value);
    console.log(`input changes to : ${value}`);
  };

  const fixtures = [
    {label: 'New York', location: {lat: 40.7033127, lng: -73.979681}},
    {label: 'Rio', location: {lat: -22.066452, lng: -42.9232368}},
    {label: 'Tokyo', location: {lat: 35.673343, lng: 139.710388}}
  ];

  return (
    <Geosuggest
      fixtures={suggestValue ? undefined : fixtures}
      onChange={onChange}
      location={new google.maps.LatLng(53.558572, 9.9278215)}
      radius="20"
    />
  );
};

ReactDOM.render(<App />, document.getElementById('app'));

Can you provide a complete not-working example? Would love to figure this out!

Hey,
Thank you for your response. Your example works just fine.
I think the problem is when you also use the minLength prop. If suggestValue's length is smaller than the minLength, the change handler is called, but the fixtures are not rerendered. They are rerendered only when the text length is greater than or equal to the minLength value.
I don't know if this is a bug or the expected behavior. Thanks!

Ah, thanks! Could reproduce it and fixed it. When the PR went through I’ll publish later today.


dts: arm: st: move can2 definition to stm32h7.dtsi

All STM32H7 variants seems to have two fd-can interfaces available. Add a can2 definition in stm32h7.dtsi, drop the current one in stm32h723.dtsi. Also drop the override of address/size cells, this node is not supposed to have any child node so they are not needed.

LGTM
PS: shouldn't can3 be defined within bosch,m_can-base as well? That seems to be required for can_mcan driver.

Yeah it is, it's under can {, which is indeed the m_can-base node.


Redundant memory allocated by NetKvm rx path

For review
https://github.com/ybendito/kvm-guest-drivers-windows/tree/rx_memory

Merged: https://github.com/virtio-win/kvm-guest-drivers-windows/pull/1105


DRP Change visible month with onDatesChange()

Hello I am working on application in which user should be able to select very broad date range like from 01/01/2007 to 01/01/2017, it would be usefull for me to change the visible month focus in this way:
Let's say the default startDate is 01/01/2007 and the default endDate is 01/01/2017. When user clicks on the start date the visible month should be January 2007, as it is the focus of start date. But when he/she finally picks the start date and is prompted to pick the end date visible month should immediately switch to January 2017 to be focused on the currently picked end date (perfectly if it worked without closing the calendar).
I tried something like this:
class ParentComponent extends React.Component {
    constructor(props){
        super(props);
        this.state = {
            startDate:  moment('01-01-2007'),
            endDate: moment("01-01-2017"),
            initialVisibleMonth: moment('01-01-2007'),
        }
    }

    onDatesChange(startDate, endDate) = () => {
        this.setState({
            startDate: startDate,
            endDate: endDate,
            initialVisibleMonth: this.state.startDate !== startDate ? endDate : startDate
        })
    }

    render () {
        return(
            <DateRangePicker
                startDate={this.state.startDate}
                endDate={this.state.startDate}
                onDatesChange = ({startDate, endDate}) => this.onDatesChange(startDate, endDate)
                initialVisibleMonth: () => {this.state.initialVisibleMonth}
            />
        )
    }
}

So basically I tried to change initialVisibleMonth prop value with using onDatesChange() method but it clearly does not work. Is it possible to deal with my issue in other way?

I ran into a similar issue in my project - I would expect the selected month to change to show whatever date input is selected (i.e. if the start date is focused, show the month of the current start date, if the end date is focused, show the month of the end date).

+1 on this. There doesn't seem to be a good way to put the end date always on the right side of the DateRangePicker.

I don't know if there's a better way but you could hack this to work by forcing the DateRangePicker to remount by changing its key.
constructor(props) {
  this.state = {
    key: 'random_string'
    initialVisibleMonth: whatever
  }
}
onDatesChange(startDate, endDate) = () => {
  this.setState({
    key: 'new_random_string'
    initialVisibleMonth: whatever
  })
}
render() {
  return (
    <DateRangePicker
      key={this.state.key}
      initialVisibleMonth={this.state.initialVisibleMonth}
    />
  )
}


Submit ${IMAGE_NAME} ${IMAGE_VERSION}

id: ${IMAGE_ID}
version: ${IMAGE_VERSION}
specificationsUrl: https://raw.githubusercontent.com/${repository}/${version}/biosimulators.json
validateImage: true

- Your simulator could not be verified. Please edit the first block of this issue to re-initiate this validation.
- - A simulator name must be provided.
- - Your submission should only use the keys "name", "version", "specificationsUrl", and "validateImage". The following keys are not valid:
-   - id


[Bug]: License page in mobile mode

Give a brief about the bug ✍
In mobile mode, the UI is bad.
What is the expected behavior? 🤔
The main content should have more width.
Provide step by step information reproduce the bug 📄

Select program in which you are contributing
GSSoC24
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

@ayush-t02 please have a look at this.


[FEATURE] Enable Discord Unix Timestamps

Description
Allow discord timestamp syntax to be passed in &timestamp to make time correct for each user that sees it
https://gist.github.com/LeviSnoot/d9147767abeef2f770e9ddcd91eb85aa - may help when adding the feature.

While this would be awesome, sadly Discord doesn't support it through web-based embeds


OpenVX OCL GPU backend - Fix offset values for image/pyramid data types

This PR fixes the seg fault occurring with laplacian pyramid tests

@hansely - this pr is failing the below test on U18
[ ======== ]
[ ALL DONE ] 5820 test(s) from 69 test case(s) ran
[ PASSED   ] 5819 test(s)
[ FAILED   ] 1 test(s), listed below:
[ FAILED   ] vxConvertDepth.BitExact/5/WRAP/1x1 U8->S16
[ DISABLED ] 8190 test(s)


Bugfix/curlopt capath

This should resolve issue #1683

When will this fix be committed and merged with master (released)?
I am having an issue right now that this solution would resolve.

If you need an immediate solution you can copy the propsed factory to your code base and use it in your curl handler.
This PR will be reviewd shortly.

Hi Just checking in on this fix again. Any chance it can go in the next push? Thank you again in advance.

@geradt  i will try to make it in the next (6.3) release, but I would like to check if the file/dir checks are correct first.

Thank you! The sooner you can get this in the better. I appreciate it. Do you have any kind of target date in mind? I see the 6.3 milestone but it doesn't have a due date.
Thanks!

I would like to get it done asap, but time is a factor I have to take into account sadly.

Thanks for your patience and work. 6.3 is not so far.

Thanks sagikazarmark!! Looking forward to it!


Add rename_interface_variable

This exposes spirv_cross_util::rename_interface_variable on Compiler. More detail about this feature can be found in SPIRV-Cross upstream, but it's especially useful to match varying names across shaders (i.e. necessary for GL on macOS).

bors r+


Divide by zero error for segment-segment collisions.

There is a divide by zero error when two line segments collide and exactly share an endpoint.

Might need to try and reproduce this issue on ARM. Doesn't fail on x64, but it might be some platform specific ffast-math gobledygook.


Two node_modules directories need to be added to.gitignore

What happened?
When I installed the dependency using 'npm install', I found that git changes have added a number of new entries in the node_modules directorys(packages/engine/node_modules and packages/widgets/node_modules). Obviously, these files don't need to be managed by git.

I found a way to fix, just like this:

Is there any one can fix this? Or by other ways to fix?
Reproduction steps
1.npm install
2.check the git changes
Sandcastle example
No response
Environment
Browser: none
CesiumJS Version: 1.116
Operating System: windows 11

Hi @Hiwen! Thanks for reporting this!
The way npm handles workspaces usually means that that all dependencies are installed at the root level node_modules directory, unless there are conflicting dependency versions.
Did you make any changes before installing? If you delete all node_modules directory and re-run npm install does it happen again?
I'm hesitant to make this change, as it usually is a signifier that something else went wrong. Making the suggested change would hide the issue instead of making it aparent.

@ggetz Thanks for your suggestion. When I delete all node_modules  and re-run npm install, I found git changes works very well. I used cnpm install cause the Original problem。
I think this Issue can be closed! And I'm really sorry for wasting time.


Why do requests need to add a request header named Host

Hi @ZhangSetSail please refer to the RFC for HTTP/1.1 https://www.rfc-editor.org/rfc/rfc2616#page-128
It is a required header


NuGet packages for Microsoft.Analytics.xxx

Any chance that you will be providing nuget packages for the core Microsoft.Analytics.xxx assemblies rather than having to install tooling to get at them?

What's the status of this one? Is everything included in this NuGet package nowadays?

Think this one can be closed @MikeRys & @saveenr?

Yes; Will close.
https://www.nuget.org/packages/Microsoft.Azure.DataLake.USQL.Interfaces/


Update ACK runtime to v0.16.4

Fixes https://github.com/aws-controllers-k8s/community/issues/1160
Description of changes:
Updates the ACK runtime dependency to v0.16.4. Adds CustomDBEngineVersion to ignored resources since it does not currently support a ReadOne or ReadMany operation.
By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license.

/lgtm


Field is not serializable with binary formats

This one took some time to track down. I was working on snapshotting some state in my system and it kept throwing errors while deserializing. I eventually determined this is because of the skip_serializing_if on the Field::metadata. Specifically, it seems to be triggering https://github.com/serde-rs/serde/issues/1732.
As best I can tell, the issue is that the binary format needs to have something written to say "this is None" so it can know to move on to other things.
Sure enough, with both bincode and postcard (didn't test others) the following tests fail 2 out of 3:
    #[cfg(feature = "serde")]
    fn assert_binary_serde_round_trip(field: Field) {
        let serialized = postcard::to_stdvec(&field).unwrap();
        let deserialized: Field = postcard::from_bytes(&serialized).unwrap();
        assert_eq!(field, deserialized)
    }

    #[cfg(feature = "serde")]
    #[test]
    fn test_field_without_metadata_serde() {
        let field = Field::new("name", DataType::Boolean, true);
        assert_binary_serde_round_trip(field)
    }

    #[cfg(feature = "serde")]
    #[test]
    fn test_field_with_empty_metadata_serde() {
        let field = Field::new("name", DataType::Boolean, false)
            .with_metadata(Some(BTreeMap::new()));

        let field = Field::new("name", DataType::Boolean, true);
        assert_binary_serde_round_trip(field)
    }

    #[cfg(feature = "serde")]
    #[test]
    fn test_field_with_nonempty_metadata_serde() {
        let mut metadata = BTreeMap::new();
        metadata.insert("hi".to_owned(), "".to_owned());
        let field =
            Field::new("name", DataType::Boolean, false).with_metadata(Some(metadata));

        let field = Field::new("name", DataType::Boolean, true);
        assert_binary_serde_round_trip(field)
    }

This may be "working as intended" if the only use of serde on Fields is supposed to be JSON and other "self describing" formats. But I thought I would at least file this for discussion to see if it would be better to drop the skip_serializing_if from the metadata (although given that the empty case also fails, that may not be enough).

Removing the skip_serializing_if changes the output from
{"Struct":[{"name":"first_name","data_type":"Utf8","nullable":false,"dict_id":0,"dict_is_ordered":false,"metadata":{"k":"v"}},{"name":"last_name","data_type":"Utf8","nullable":false,"dict_id":0,"dict_is_ordered":false},{"name":"address","data_type":{ ...

To
{"Struct":[{"name":"first_name","data_type":"Utf8","nullable":false,"dict_id":0,"dict_is_ordered":false,"metadata":{"k":"v"}},{"name":"last_name","data_type":"Utf8","nullable":false,"dict_id":0,"dict_is_ordered":false,"metadata":null},{"name":"addres ...``

I see no issue with this

Also possibly related, filed https://github.com/apache/arrow-rs/issues/3086

label_issue.py automatically added labels {'arrow'} from #3126


[question] New release

Since #191 was solved, I would like to use this in our CI, what are the current plans for a new release? Otherwise using the current git commit is alright too.

I've published tapli-cli 0.5.0 which includes the changes.

Amazing, thank you!


Cannot compile with Xcode 13b3: 'shared' is unavailable

Raising this whilst I'm not sure I'd recommend fixing yet. Follow this thread for a better explanation of the issue.
The following common code is unavailable in iOS app extensions. Code using this code no longer compiles via SPM.
UIApplication.shared

Xcode 13b3 is requiring that frameworks use the following annotation for code using unavailable code.
@available(iOSApplicationExtension, unavailable)

Affected lines of code:
https://github.com/ninjaprox/NVActivityIndicatorView/blob/master/Sources/Extended/NVActivityIndicatorPresenter.swift#L309
https://github.com/ninjaprox/NVActivityIndicatorView/blob/master/Sources/Extended/NVActivityIndicatorPresenter.swift#L325

It seems like this is no longer an issue as of Xcode 13 Beta 5.  I can confirm that NVActivityIndicatorView is building correctly for me again.  The relevant change in the Xcode 13 release notes:

Swift Packages
Resolved in Xcode 13 Beta 5
You don’t need to annotate code as unavailable for use in application extensions if it references APIs annotated as unavailable for use in application extensions. This reverts a requirement that Xcode 13 Beta 3 introduced. (80615922) (FB9332020)


I have a problems with mask input, I can't input Ukraine phone +380(XX)XXX-XX-XX

You can find this problem on you demo website. There is also problems with some other codes. I can't write three characters begining with +38. Can anyone help to find where is the problem. Thanks.

$("#phone").inputmask("+38(099)9999999", { greedy: false,
"onincomplete": function(){ $(this).addClass("input-unvalid");},
"oncleared": function(){ $(this).removeClass("input-unvalid");},
"oncomplete": function(){ $(this).removeClass("input-unvalid");}
});

Thanks, but I need to use other codes too, so I need all functionality of mask, but mask for Ukraine and some other countries with codes +38.. is not working. I can't put third symbol to the input field besides "(". This is main problem. I need to use phone-codes.js file in my app. But input mask do not working with that file correctly.

@snizhok ,
I will have a look why the alternation fails.
also see #1051 & #1019

@snizhok ,
With the latest commit you can enter Ukraine numbers.  (+380)
Best regards,
Robin


changes groupId to io.javaslang

Current coverage is 100.00%

Merging #43 into master will not affect coverage as of b281b13

@@            master     #43   diff @@
======================================
  Files           24      24
  Stmts          248     248
  Branches        54      54
  Methods          0       0
======================================
  Hit            248     248
  Partial          0       0
  Missed           0       0

Review entire Coverage Diff as of b281b13

Powered by Codecov. Updated on successful CI builds.


Error when resampling with Gaussian interpolation when employing streaming

Regarding #668, exercising Gaussian interpolation (including #958) still leads to an error in my test case (using ITK @ 8f67778c95) employing streaming:
https://gitlab.com/romangrothausmann/ITK-CLIs/-/jobs/223961167
itk::ExceptionObject (0x7fc848002c90)
Location: "unknown"
File: /opt/itk/include/ITK-5.1/itkImageConstIteratorWithIndex.hxx
Line: 86
Description: itk::ERROR: Region ImageRegion (0x7fc8c9b11a18)
  Dimension: 3
  Index: [0, 0, 80]
  Size: [8, 8,<PHONE_NUMBER>3709551596]
 is outside of buffered region ImageRegion (0x1594768)
  Dimension: 3
  Index: [0, 0, 64]
  Size: [217, 202, 60]

Relating to https://github.com/InsightSoftwareConsortium/ITK/pull/958#issuecomment-495614411 @dzenanz any idea what could still be wrong?

If you boil it down to a minimal example, I could look into it.

I tried to create a minimal example:
#include <itkImageFileReader.h>
#include <itkResampleImageFilter.h>
#include <itkGaussianInterpolateImageFunction.h>
#include <itkImageFileWriter.h>

using ImageType = itk::Image<int, 3>;
using ReaderType = itk::ImageFileReader<ImageType>;
using FilterType = itk::ResampleImageFilter<ImageType, ImageType>;
using InterpolatorType = itk::GaussianInterpolateImageFunction<ImageType>;
using WriterType = itk::ImageFileWriter<ImageType>;

int main(int argc, char** argv)
{
  ReaderType::Pointer reader = ReaderType::New();
  reader->SetFileName(argv[1]);
  reader->UpdateOutputInformation();
  ImageType::Pointer input = reader->GetOutput();

  FilterType::Pointer filter = FilterType::New();
  filter->SetInput(reader->GetOutput());
  filter->SetInterpolator(InterpolatorType::New());
  filter->SetSize(input->GetLargestPossibleRegion().GetSize());
  filter->SetOutputOrigin(input->GetOrigin());

  WriterType::Pointer writer = WriterType::New();
  writer->SetFileName("out.vtk");
  writer->SetInput(filter->GetOutput());
  writer->SetNumberOfStreamDivisions(4);
  writer->Update();
}

Also, the very large size reminds me of #734.

Many thanks @maekclena for the minimal example, I'm sorry my response time is quite reduced at the moment. I was planning to create a test case for the test suit but won't be able to do so till end of next week.
In contrast to the example above, my resample CLI also sets:
    typedef itk::IdentityTransform<TCoordRep, Dimension> TransformType;
    typename TransformType::Pointer transform= TransformType::New();
    transform->SetIdentity();

    filter->SetTransform(transform);
    filter->SetOutputSpacing(outputSpacing);
    filter->SetOutputDirection(input->GetDirection());
    filter->SetDefaultPixelValue(itk::NumericTraits<InputPixelType>::Zero);
    filter->ReleaseDataFlagOn();

https://github.com/romangrothausmann/ITK-CLIs/blob/f146e2f5100564052f1f5080fc26dd51bc31516d/resample.cxx#L80-L90
Can images be stored in VTK files? I always only used VTI so far. In the failing test case of mine, uncompressed MHD is used for input and uncompressed MHA for output.

I tried this with a random input image on my computer and it worked fine:
#include <itkImageFileReader.h>
#include <itkResampleImageFilter.h>
#include <itkGaussianInterpolateImageFunction.h>
#include <itkImageFileWriter.h>

using ImageType = itk::Image<int, 3>;
using ReaderType = itk::ImageFileReader<ImageType>;
using FilterType = itk::ResampleImageFilter<ImageType, ImageType>;
using TransformType = itk::IdentityTransform<double, 3>;
using InterpolatorType = itk::GaussianInterpolateImageFunction<ImageType>;
using WriterType = itk::ImageFileWriter<ImageType>;

int main(int argc, char** argv)
{
    ReaderType::Pointer reader = ReaderType::New();
    reader->SetFileName(argv[1]);
    reader->UpdateOutputInformation();
    ImageType::Pointer input = reader->GetOutput();

    typename TransformType::Pointer transform = TransformType::New();
    transform->SetIdentity();
    typename ImageType::SpacingType outputSpacing;
    outputSpacing.Fill(1.0);

    FilterType::Pointer filter = FilterType::New();
    filter->SetInput(reader->GetOutput());
    filter->SetInterpolator(InterpolatorType::New());
    filter->SetSize(input->GetLargestPossibleRegion().GetSize());
    filter->SetOutputOrigin(input->GetOrigin());

    filter->SetTransform(transform);
    filter->SetOutputSpacing(outputSpacing);
    filter->SetOutputDirection(input->GetDirection());
    filter->SetDefaultPixelValue(0);
    filter->ReleaseDataFlagOn();

    WriterType::Pointer writer = WriterType::New();
    writer->SetFileName("C:/Misc/Tester/out.mha");
    writer->SetInput(filter->GetOutput());
    writer->SetNumberOfStreamDivisions(4);
    writer->Update();
}

I tested ACN_speed.mhd and a random image and both failed.

OK, that image triggers the exception for me.

BoundingBox is not updated with streaming, so end ends up being smaller then begin.
Now off to fixing this.

Many thanks @dzenanz and @maekclena for looking into this.

The bug was not trivial as I first thought, but I didn't want to give up halfway through. It is almost ready - I have to adjust the derived LabelImageGaussianInterpolateImageFunction class too.

#998 should fix this.


Sublime Text 3

Hi,
I've just installed this package and I can't open Sublime Text 3 anymore... I'll be force to uninstall this package.
Regards.

Since you didn't bother to provide any error messages or details, and this is not a problem that is occurring for everyone, I'm sorry, but there's really not enough info for me to debug this.

Hi @marijnh,
Unfortunately, I couldn't provide any further error message as I couldn't even open ST3 after the installation of this package...
It just gets frozen, I've tried it few times with the same result every time, it just looks it runs out of memory or similar. I'm currently working with an Angular JS project in a Mac with 8GB of RAM memory.
Not sure what further details you would like me to provide...
Regards.

I looked at the ST docs and couldn't find any way to make it spit its internal console output to stdout, so I guess that, indeed, if the app hangs without error messages and without allowing you to open the ctrl-~ console, there's no clear way to get diagnostic information out of it.
You could see if there's a Tern (node) process active during the hang, and you could try running the server manually (by starting the Tern binary in your project directory, with the --verbose flag) before starting ST, to see if any requests are being made to it.


Cleanup point cloud implementation

Followup pr to #136 which introduced a insert implementation.

@wjwwood I did not create ci jobs for this one as the current ci jobs fail due to rosidl_generator_py.

CI:

Linux
Linux-aarch64
macOS
Windows