Unable to install toolchain with rustup install

For some reason, cargo-msrv now refuses to run in any project on my computer:
$ cargo new foobar
     Created binary (application) `foobar` package
$ cd foobar/
$ cargo msrv
Fetching index
Determining the Minimum Supported Rust Version (MSRV) for toolchain x86_64-unknown-linux-gnu
Using check command cargo check --all
Unable to install toolchain with `rustup install 1.56.1-x86_64-unknown-linux-gnu`.
$ cargo msrv --bisect
Fetching index
Determining the Minimum Supported Rust Version (MSRV) for toolchain x86_64-unknown-linux-gnu
Using check command cargo check --all
Unable to install toolchain with `rustup install 1.56.1-x86_64-unknown-linux-gnu`.

This happens both when installing the latest released version of cargo-msrv, and installing directly from the main branch.
This is particularly weird because when I run the listed command myself, it works without issue:
$ rustup install 1.56.1-x86_64-unknown-linux-gnu
info: syncing channel updates for '1.56.1-x86_64-unknown-linux-gnu'
info: latest update on 2021-11-01, rust version 1.56.1 (59eed8a2a 2021-11-01)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-docs'
info: downloading component 'rust-std'
info: downloading component 'rustc'
 52.9 MiB /  52.9 MiB (100 %)  23.9 MiB/s in  2s ETA:  0s
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
 17.3 MiB /  17.3 MiB (100 %)  11.5 MiB/s in  1s ETA:  0s
info: installing component 'rust-std'
 23.5 MiB /  23.5 MiB (100 %)  14.3 MiB/s in  1s ETA:  0s
info: installing component 'rustc'
 52.9 MiB /  52.9 MiB (100 %)  16.0 MiB/s in  3s ETA:  0s
info: installing component 'rustfmt'

  1.56.1-x86_64-unknown-linux-gnu installed - rustc 1.56.1 (59eed8a2a 2021-11-01)

$ rustup toolchain list
stable-x86_64-unknown-linux-gnu (default)
beta-x86_64-unknown-linux-gnu
nightly-2020-02-28-x86_64-unknown-linux-gnu
nightly-x86_64-unknown-linux-gnu
1.31.1-x86_64-unknown-linux-gnu
1.32.0-x86_64-unknown-linux-gnu
1.34.0-x86_64-unknown-linux-gnu
1.35.0-x86_64-unknown-linux-gnu
1.36.0-x86_64-unknown-linux-gnu
1.38.0-x86_64-unknown-linux-gnu
1.40.0-x86_64-unknown-linux-gnu
1.42.0-x86_64-unknown-linux-gnu
1.48.0-x86_64-unknown-linux-gnu
1.56.1-x86_64-unknown-linux-gnu
$ cargo +1.56.1 check --all
    Finished dev [unoptimized + debuginfo] target(s) in 0.00s

System info:
$ uname -a
Linux xpanse 5.14.16-arch1-1 #1 SMP PREEMPT Tue, 02 Nov 2021 22:22:59 +0000 x86_64 GNU/Linux
$ cat /etc/issue
Arch Linux \r (\l)
$ rustup --version
rustup 1.24.3 (2021-06-08)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.56.1 (59eed8a2a 2021-11-01)`

Thanks for the detailed report!
I've tried to reproduce this issue but was unable to.

What is your current cargo-msrv version?: cargo msrv --version
Do you have an idea what the last working cargo-msrv version was (or possibly the last time you used it and it worked, date wise)?

Possibly,  cargo-msrv 0.10.0 which was released about a month ago might work for you as an intermediate solution:  `cargo install cargo-msrv --version "0.10.0"

Yeah, it's weird, I only have this issue on this computer.
$ cargo msrv --version
cargo-msrv 0.12.0
$ cargo install cargo-msrv --version 0.10.0
$ cargo msrv
# same error as before

However, I did discover that, weirdly enough,
$ cargo-msrv msrv

work just fine! It's just when invoked through Cargo that it fails.
Digging some deeper, I do have CARGO_TARGET_DIR set, and I have $CARGO_TARGET_DIR/bin on my path, so:
$ which -a cargo-msrv
/home/jon/.cargo/bin/cargo-msrv
/home/jon/.cargo-target/release/cargo-msrv

If I execute either of those directly (with the argument msrv) they both work though, so that seems unrelated.
I don't know why executing through cargo would make a difference here. It does mean it'll run through Rustup (whereas it won't when run directly as cargo-msrv), which might change the execution environment (e.g., RUSTUP_HOME and RUSTUP_TOOLCHAIN will be set when invoked through cargo).

Hi @Freyskeyd, thanks for the detailed report!
I'm currently working on implementing this for the next release.

I have the same problem on Mac.
As a workaround, this worked for me:
docker run --platform=linux/amd64 -t -v "$(pwd)/Cargo.toml":/app/Cargo.toml foresterre/cargo-msrv

I have the same problem on Mac.
As a workaround, this worked for me:
docker run --platform=linux/amd64 -t -v "$(pwd)/Cargo.toml":/app/Cargo.toml foresterre/cargo-msrv

Although it actually doesn't work because
  [Meta]   cargo-msrv 0.16.0-beta.18

Compatibility Check #1: Rust 1.37.0
  [FAIL]   Is incompatible

  ╭────────────────────────────────────────────────────╮
  │ error: failed to read `/app/crates/api/Cargo.toml` │
  │                                                    │
  │ Caused by:                                         │
  │   No such file or directory (os error 2)           │
  │                                                    │
  ╰────────────────────────────────────────────────────╯

Compatibility Check #2: Rust 1.56.1
  [FAIL]   Is incompatible

  ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
  │ error: failed to parse manifest at `/app/Cargo.toml`                                                                                │
  │                                                                                │
  │ Caused by:                                                                                │
  │   feature `strip` is required                                                                                │
  │                                                                                │
  │   The package requires the Cargo feature called `strip`, but that feature is not stabilized in this version of Cargo (1.56.0 (4ed5d137b 2021-10-04)). │
  │   Consider trying a newer version of Cargo (this may require the nightly release).                                                                    │
  │   See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#profile-strip-option for more information about the status of this feature.     │
  │                                                                                │
  ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Compatibility Check #3: Rust 1.66.1
  [FAIL]   Is incompatible

  ╭───────────────────────────────────────────────────────────────────────╮
  │ error: failed to load manifest for workspace member `/app/crates/api` │
  │                                                                       │
  │ Caused by:                                                            │
  │   failed to read `/app/crates/api/Cargo.toml`                         │
  │                                                                       │
  │ Caused by:                                                            │
  │   No such file or directory (os error 2)                              │
  │                                                                       │
  ╰───────────────────────────────────────────────────────────────────────╯

Compatibility Check #4: Rust 1.71.1
  [FAIL]   Is incompatible

  ╭───────────────────────────────────────────────────────────────────────╮
  │ error: failed to load manifest for workspace member `/app/crates/api` │
  │                                                                       │
  │ Caused by:                                                            │
  │   failed to read `/app/crates/api/Cargo.toml`                         │
  │                                                                       │
  │ Caused by:                                                            │
  │   No such file or directory (os error 2)                              │
  │                                                                       │
  ╰───────────────────────────────────────────────────────────────────────╯

Compatibility Check #5: Rust 1.73.0
  [FAIL]   Is incompatible

  ╭───────────────────────────────────────────────────────────────────────╮
  │ error: failed to load manifest for workspace member `/app/crates/api` │
  │                                                                       │
  │ Caused by:                                                            │
  │   failed to read `/app/crates/api/Cargo.toml`                         │
  │                                                                       │
  │ Caused by:                                                            │
  │   No such file or directory (os error 2)                              │
  │                                                                       │
  ╰───────────────────────────────────────────────────────────────────────╯

Compatibility Check #6: Rust 1.74.1
  [FAIL]   Is incompatible

  ╭───────────────────────────────────────────────────────────────────────╮
  │ error: failed to load manifest for workspace member `/app/crates/api` │
  │                                                                       │
  │ Caused by:                                                            │
  │   failed to read `/app/crates/api/Cargo.toml`                         │
  │                                                                       │
  │ Caused by:                                                            │
  │   No such file or directory (os error 2)                              │
  │                                                                       │
  ╰───────────────────────────────────────────────────────────────────────╯

Compatibility Check #7: Rust 1.75.0
  [FAIL]   Is incompatible

  ╭───────────────────────────────────────────────────────────────────────╮
  │ error: failed to load manifest for workspace member `/app/crates/api` │
  │                                                                       │
  │ Caused by:                                                            │
  │   failed to read `/app/crates/api/Cargo.toml`                         │
  │                                                                       │
  │ Caused by:                                                            │
  │   No such file or directory (os error 2)                              │
  │                                                                       │
  ╰───────────────────────────────────────────────────────────────────────╯

Result:
   Considered (min … max):   Rust 0.11.0 … Rust 1.75.0
   Search method:            bisect
   MSRV:                     N/A
   Target:                   x86_64-unknown-linux-gnu

Unable to find a Minimum Supported Rust Version (MSRV).

If you think this result is erroneous, please run: `cargo check --target x86_64-unknown-linux-gnu` manually.

If the above does succeed, or you think cargo-msrv errored in another way, please feel free to
report the issue at: [https://github.com/foresterre/cargo-msrv/issues](https://github.com/foresterre/cargo-msrv/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc)

Thank you in advance!

Although it's werid that the workspace manifest did work.

I was not able to reproduce this. Could you please explain how I can reproduce this?


User Defaults

I am attempting to set a Genome.Node.array value to user defaults. Is this even possible via Genome? I have looked into extending Genome and Node to conform to NSCoding but have not found a unsuccessful as they are not classes.
Suggestions? Thank you.

Closing as I figured out the solution with the NodeConvertible Data extension in the Genome module.


Cannot support more than 3 options

I have this following schema
{
  "type": "object",
  "properties": {
    "secret_code": {
      "oneOf": [
        {
          "type": "integer",
          "title": "Numeric value"
        },
        {
          "type": "string",
          "title": "String value"
        },
        {
          "type": "boolean",
          "title": "boolean value"
        },
        {
          "type": "list",
          "title": "list value",
          "items": {
            "type": "string"
          }
        }
      ]
    }
  }
}

When I copy the schema and try to select boolean value in the playground. It doesn't allow me to select. It changes to numeric value. However, when I remove one of the options from the list, it works perfectly fine.

Problem
The number and boolean types get null as the default value in the output.
To generate UI for oneOf, we look at the data and then try to find the matching subschema.
The problem here is that when you select boolean value, in the output you can see it gets the null value. The UI generator matches this null value to the numeric value.
It's a hard problem to solve.

Temporary solution
Provide a default value for the boolean value input:
{
    "type": "boolean",
    "title": "boolean value",
    "default": false
}


Query available versions of a project

Is it possible to query a list of available versions for a specified project?
I would like to write some clean-up script which deletes all but the X newest versions.

Yes, querying the /api/projects/{NAME} api should yield all versions of the project.

@randombenj  Thanks a lot, works :+1:


Merge branch v4 into feat/support-web3js

Breaking Changes
N/A
Changes

feat:
fix:
chore:

Associated Issues
closes #...

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.2 out of 11 committers have signed the CLA.:white_check_mark: xiaoxianBoy:white_check_mark: luu-alex:x: chris13524:x: tomiir:x: lukaisailovic:x: enesozturk:x: gooxpf:x: ganchoradkov:x: svenvoskamp:x: nikosrossolatos:x: tienYou have signed the CLA already but the status is still pending? Let us recheck it.


Is there a way to set training = True after the model is trained?

There are similar questions that I have it now, such as this: #36936.
I did not find a solution or answer.
I have a model that have Batch Normalization and Dropouts. As a result, I always have to set training = True to perform image segmentation, etc. For instance;
import tensorflow as tf
my_model = tf.keras.models.load_model("model")
result = my_model(inputImage, training = True)

If I donot provide training = True, the result.numpy() is nan values.
In addition in Python, I want to use this in tensorflow/java. As a result, I donot know how to provide training = True in tensorflow java and I opened a new issue for tensorflow/java #284 for this question as well.
I wonder if there is a way to hack or set the trained_model such that, it does not requiretraining = Trueanymore? I thought if I can do this in Python and save the model again, I may not need it in tensorflow/java again.

@micosacak
Can you share more details for us to analyse, simple stand alone code to replicate the issue faced or a colab gist with the code and error. Thanks

Here is the Python code below or from here:
import tensorflow as tf
import glob
import imageio
import matplotlib.pyplot as plt
import numpy as np
import os
import PIL
from tensorflow.keras import layers
import time

from IPython import display

(train_images, train_labels), (_, _) = tf.keras.datasets.mnist.load_data()

train_images = train_images.reshape(train_images.shape[0], 28, 28, 1).astype('float32')
train_images = (train_images - 127.5) / 127.5  # Normalize the images to [-1, 1]

BUFFER_SIZE = 60000
BATCH_SIZE = 256

# Batch and shuffle the data
train_dataset = tf.data.Dataset.from_tensor_slices(train_images).shuffle(BUFFER_SIZE).batch(BATCH_SIZE)

def make_generator_model():
    model = tf.keras.Sequential()
    model.add(layers.Dense(7*7*256, use_bias=False, input_shape=(100,)))
    model.add(layers.BatchNormalization())
    model.add(layers.LeakyReLU())
    model.add(layers.Reshape((7, 7, 256)))
    assert model.output_shape == (None, 7, 7, 256)  # Note: None is the batch size
    model.add(layers.Conv2DTranspose(128, (5, 5), strides=(1, 1), padding='same', use_bias=False))
    assert model.output_shape == (None, 7, 7, 128)
    model.add(layers.BatchNormalization())
    model.add(layers.LeakyReLU())
    model.add(layers.Conv2DTranspose(64, (5, 5), strides=(2, 2), padding='same', use_bias=False))
    assert model.output_shape == (None, 14, 14, 64)
    model.add(layers.BatchNormalization())
    model.add(layers.LeakyReLU())
    model.add(layers.Conv2DTranspose(1, (5, 5), strides=(2, 2), padding='same', use_bias=False, activation='tanh'))
    assert model.output_shape == (None, 28, 28, 1)
    return model

generator = make_generator_model()

noise = tf.random.normal([1, 100])
generated_image = generator(noise, training=False)

plt.imshow(generated_image[0, :, :, 0], cmap='gray')

def make_discriminator_model():
    model = tf.keras.Sequential()
    model.add(layers.Conv2D(64, (5, 5), strides=(2, 2), padding='same', input_shape=[28, 28, 1]))
    model.add(layers.LeakyReLU())
    model.add(layers.Dropout(0.3))
    model.add(layers.Conv2D(128, (5, 5), strides=(2, 2), padding='same'))
    model.add(layers.LeakyReLU())
    model.add(layers.Dropout(0.3))
    model.add(layers.Flatten())
    model.add(layers.Dense(1))
    return model

discriminator = make_discriminator_model()
decision = discriminator(generated_image)
print (decision)
# This method returns a helper function to compute cross entropy loss
cross_entropy = tf.keras.losses.BinaryCrossentropy(from_logits=True)

def discriminator_loss(real_output, fake_output):
    real_loss = cross_entropy(tf.ones_like(real_output), real_output)
    fake_loss = cross_entropy(tf.zeros_like(fake_output), fake_output)
    total_loss = real_loss + fake_loss
    return total_loss

def generator_loss(fake_output):
    return cross_entropy(tf.ones_like(fake_output), fake_output)

generator_optimizer = tf.keras.optimizers.Adam(1e-4)
discriminator_optimizer = tf.keras.optimizers.Adam(1e-4)

checkpoint_dir = './training_checkpoints'
checkpoint_prefix = os.path.join(checkpoint_dir, "ckpt")
checkpoint = tf.train.Checkpoint(generator_optimizer=generator_optimizer,
                                 discriminator_optimizer=discriminator_optimizer,
                                 generator=generator,
                                 discriminator=discriminator)

EPOCHS = 50
noise_dim = 100
num_examples_to_generate = 16

# You will reuse this seed overtime (so it's easier)
# to visualize progress in the animated GIF)
seed = tf.random.normal([num_examples_to_generate, noise_dim])

# Notice the use of `tf.function`
# This annotation causes the function to be "compiled".
@tf.function
def train_step(images):
    noise = tf.random.normal([BATCH_SIZE, noise_dim])
    with tf.GradientTape() as gen_tape, tf.GradientTape() as disc_tape:
      generated_images = generator(noise, training=True)
      real_output = discriminator(images, training=True)
      fake_output = discriminator(generated_images, training=True)
      gen_loss = generator_loss(fake_output)
      disc_loss = discriminator_loss(real_output, fake_output)
    gradients_of_generator = gen_tape.gradient(gen_loss, generator.trainable_variables)
    gradients_of_discriminator = disc_tape.gradient(disc_loss, discriminator.trainable_variables)
    generator_optimizer.apply_gradients(zip(gradients_of_generator, generator.trainable_variables))
    discriminator_optimizer.apply_gradients(zip(gradients_of_discriminator, discriminator.trainable_variables))

def train(dataset, epochs):
  for epoch in range(epochs):
    start = time.time()
    for image_batch in dataset:
      train_step(image_batch)
    # Produce images for the GIF as you go
    display.clear_output(wait=True)
    generate_and_save_images(generator,
                             epoch + 1,
                             seed)
    # Save the model every 15 epochs
    if (epoch + 1) % 15 == 0:
      checkpoint.save(file_prefix = checkpoint_prefix)
    print ('Time for epoch {} is {} sec'.format(epoch + 1, time.time()-start))
  # Generate after the final epoch
  display.clear_output(wait=True)
  generate_and_save_images(generator,
                           epochs,
                           seed)
  return generator

def generate_and_save_images(model, epoch, test_input):
  # Notice `training` is set to False.
  # This is so all layers run in inference mode (batchnorm).
  predictions = model(test_input, training=False)
  fig = plt.figure(figsize=(4, 4))
  for i in range(predictions.shape[0]):
      plt.subplot(4, 4, i+1)
      plt.imshow(predictions[i, :, :, 0] * 127.5 + 127.5, cmap='gray')
      plt.axis('off')
  plt.savefig('image_at_epoch_{:04d}.png'.format(epoch))
  plt.show()

generator = train(train_dataset, EPOCHS)
#checkpoint.restore(tf.train.latest_checkpoint(checkpoint_dir))

generator.save("model")
myModel = tf.keras.models.load_model("model")

predict = myModel(test_input, training = True)

Now, everytime we have to provide training = True . Is there a way after loading the model again and change some values in the loaded model, which will not require training = True . By this way, we may do not have to feed in any flags.


Assistant not working when having models in custom folder

As the title says,  The assistant is not working when having models in custom folder. It doesn't find a single one of them.

I was able to fix the problem by making a mkling /j and the folders.
But upon clicking on Download Cover for Listed Models, I get this:
` File "C:\Users\Abmereslo\Desktop\StableDiffusionWebUI\extensions\miaoshouai-assistant-main\scripts\runtime\msai_runtime.py", line 399, in set_all_covers
img_list, l1, htmlDetail, h2 = self.get_model_info(model)
ValueError: too many values to unpack (expected 4)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Abmereslo\Desktop\StableDiffusionWebUI\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict
output = await app.get_blocks().process_api(
File "C:\Users\Abmereslo\Desktop\StableDiffusionWebUI\venv\lib\site-packages\gradio\blocks.py", line 1431, in process_api
result = await self.call_function(
File "C:\Users\Abmereslo\Desktop\StableDiffusionWebUI\venv\lib\site-packages\gradio\blocks.py", line 1103, in call_function
prediction = await anyio.to_thread.run_sync(
File "C:\Users\Abmereslo\Desktop\StableDiffusionWebUI\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "C:\Users\Abmereslo\Desktop\StableDiffusionWebUI\venv\lib\site-packages\anyio_backends_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "C:\Users\Abmereslo\Desktop\StableDiffusionWebUI\venv\lib\site-packages\anyio_backends_asyncio.py", line 807, in run
result = context.run(func, *args)
File "C:\Users\Abmereslo\Desktop\StableDiffusionWebUI\venv\lib\site-packages\gradio\utils.py", line 707, in wrapper
response = f(*args, **kwargs)
File "C:\Users\Abmereslo\Desktop\StableDiffusionWebUI\extensions\miaoshouai-assistant-main\scripts\runtime\msai_runtime.py", line 416, in set_all_covers
print(model[1], cover_url, dst, str(e))
UnboundLocalError: local variable 'cover_url' referenced before assignment`
why does this happen?


Jquery and Boostrap previous release configuration issue

Laravel Mix Version: 0.12.1
Node Version : 6.9.1
NPM Version :  3.10.8
OS: Windows

Description:
Hello Experts
I am a newbie to use web-pack and laravel-mix. I have an old project and with old javascript libraries...
If I use default laravel-mix setting than jquery not loaded and when I add these both libraries manually in the laravel.mix.js file than bootstrap not working...
I have fought since last week but no success.
Steps To Reproduce:
I have uploaded an example in github repository.
link: https://github.com/whfamily2006/laravel-mix-jquery-bootstrap

You are using scripts() and styles() methods, it means you are not using webpack.
Default laravel-mix config that comes with laravel won't work for you for sure.
What do you meant by bootstrap not working ? Any error ?
Did you include all of your build files in welcome.blade.php correctly and in-order ?

Thank @ankurk91 for the response. please view the javascript console for error.
I have used the old version of jquery and bootstrap so that's why I can't use the default laravel-mix settings. so that's why I was creating an example repository if anyone wants to review.

Your order of js files in webpack.mix.js is wrong.
You should include jquery before bootstrap.
So here is the order -

jQuery (because bootstrap requires jquery to be loaded first)
Bootstrap
jQuery plugins
Your custom code - main.js

Also you have included bootstrap css twice.

Here is my webpack.mix.js file
const RESOURCE_PATH = `resources/assets/custom`;
const NODE_MODULES_PATH = `node_modules`;

mix
    .scripts(
        [
            **`${RESOURCE_PATH}/js/jquery-2.0.2.min.js`**,
            **`${NODE_MODULES_PATH}/bootstrap/dist/js/bootstrap.js`**,
            `${RESOURCE_PATH}/js/jarvis.widget.min.js`,
            `${RESOURCE_PATH}/js/smoothscroll.js`,
            `${RESOURCE_PATH}/js/mousescroll.js`,
            `${RESOURCE_PATH}/js/jquery-ui-1.10.3.min.js`,
            `${RESOURCE_PATH}/js/HoldOn.min.js`,
            `${RESOURCE_PATH}/js/jquery.inview.min.js`,
            `${RESOURCE_PATH}/js/jquery.isotope.min.js`,
            `${RESOURCE_PATH}/js/jsUKpostcode.js`,
        ], `public/js/app.js`)

    .scripts(
        [
            `${NODE_MODULES_PATH}/bootstrap-select/dist/js/bootstrap-select.js`,
            `${RESOURCE_PATH}/js/SmartNotification.min.js`,
            `${NODE_MODULES_PATH}/sweetalert/dist/sweetalert.min.js`,
            `${RESOURCE_PATH}/js/pace.min.js`,
            `${NODE_MODULES_PATH}/owl.carousel/dist/owl.carousel.min.js`,
            `${NODE_MODULES_PATH}/wowjs/dist/wow.min.js`,
            `${RESOURCE_PATH}/js/jquery.prettyPhoto.js`,
            `${RESOURCE_PATH}/js/datatables.bootstrap.js`,
            **`${RESOURCE_PATH}/js/main.js`**,
        ], `public/js/packages.js`)
    .styles(
        [
           `${NODE_MODULES_PATH}/bootstrap/dist/css/bootstrap.css`,
            `${RESOURCE_PATH}/css/main.css`,
            `${RESOURCE_PATH}/css/flag-icon.css`,
            `${RESOURCE_PATH}/css/owl.transitions.css`,
            `${RESOURCE_PATH}/css/segmented-control.css`
        ], `public/css/custom.css`)

    .styles(
        [
            `${NODE_MODULES_PATH}/bootstrap/dist/css/bootstrap.min.css`,
            `${NODE_MODULES_PATH}/animate.css/animate.min.css`,
            `${NODE_MODULES_PATH}/owl.carousel/dist/assets/owl.carousel.css`,
            `${NODE_MODULES_PATH}/hover.css/css/hover.css`,
            `${NODE_MODULES_PATH}/bootstrap-select/dist/css/bootstrap-select.css`,
            `${NODE_MODULES_PATH}/sweetalert/dist/sweetalert.css`,
            `${NODE_MODULES_PATH}/sweetalert/themes/twitter/twitter.css`
        ], `public/css/vendor.css`)

    .sourceMaps();

@ankurk91 I have changed according to your suggestions.

Jquery already at the top of the first scripts function.
Bootstrap added now after jquery line in first scripts function too.
Jquery plugins
my custom code main.js file at the end of 2nd scripts function.
and in the last but not the least before now I have not included the bootstrap file but now I added and others bootstrap files are included for select2, and datatable package.

but the error is still there.
##TypeError: false is not a function,
** please clone the repo and have a look, I need your kind help.**

Your webpack.mix.js file is too messy.
You should be having app.js to handle this:
For example:
window.$ = window.jQuery = require('jquery')

Then in your webpack.mix.js file do this:
mix.scripts('resources/js/app.js, 'app.js')

@ankurk91 thank you for an explanation, I know this is not the relevant forum for my silly questions, but I search these since last one and half week and don't understand still.
Please also explain these following:

window and window.select2 (select2 is package but what is window and what is window.select2) if we write window.select2 that's mean select2.js and if select2.css exists then it's included automatically, if not included automatically then we add it in app.scss?
Please also explain window.$ why we need to .$ ?
If I have Jquery old version mean not npm supported version than how can I include that version
is this work window.$ = window.jQuery = require('./../custom/js/jquery-2.0.2.min') ?

webpack tutorials,
JS tutorials

@whfamily2006 In layman terms, window is basically global. So you can use select() at any pages of your code.
As @ankurk91 mentioned, yeah you should watch some of the tutorials on Webpack. Laracasts is a good place to start. https://laracasts.com/series/webpack-for-everyone

@ruchern thank you for explanation. just last thing if I have old version of jquery (jquery.js file downloaded) which not installed via npm so how can I include that download jquery js file in app.js window.$ = window.jQuery = require('jquery')
I have seen webpack-for-everyone, laravel-mix on laracast and then I was trying to configure.

In your webpack.mix.js
mix.scripts('path/to/jquery.min.js', 'public/js')

You can install old version through npm like this -
npm install<EMAIL_ADDRESS>--save

Thank you @ruchern, @ankurk91 for your time and tolerating me.
@ankurk91 I have used jQuery v2.0.2 and npm not support this version.

seems like they have not published that version on npm.
You can install colser version.
npm has these jQuery version available-
npm ERR! notarget 3.2.1, 3.2.0, 3.1.1, 3.1.0, 3.0.0, 3.0.0-rc1, 3.0.0-beta1, 3.0.0-alpha1, 2.2.4, 2.2.3, 2.2.2, 2.2.1, 2.2.0, 2.1.4, 2.1.3, 2.1.2, 2.1.1, 2.1.1-rc2, 2.1.1-rc1, 2.1.1-beta1, 2.1.0, 2.1.0-rc1, 2.1.0-beta3, 2.1.0-beta2, 1.12.4, 1.12.3, 1.12.2, 1.12.1, 1.12.0, 1.11.3, 1.11.2, 1.11.1, 1.11.1-rc2, 1.11.1-rc1, 1.11.1-beta1, 1.11.0, 1.11.0-rc1, 1.11.0-beta3, 1.9.1, 1.8.3, 1.8.2, 1.7.3, 1.7.2, 1.6.3, 1.6.2, 1.5.1

@ankurk92 And they are unlikely to publish 2.0.2.

well, it doesn't work totally for me.
first, my
webpack.mix.js
let mix = require('laravel-mix'); mix.js('resources/assets/back/js/app.js','public/js/back.js') 	   .sass('resources/assets/back/scss/app.scss','public/css/back.css') 	   .disableNotifications();
app.js
`
/**

Load Main Component of Javascript
*/
window.$ = window.jQuery = require('jquery');
require('bootstrap-datepicker') // or window.datepicker = require('bootstrap-datepicker')
`

it will cause this error
$(...).datepicker is not a function
@ankurk91 @ruchern am i making mistake here?

@endrureza
Please follow
https://github.com/JeffreyWay/laravel-mix/blob/master/docs/autoloading.md

I've done that before
webpack.mix.js
mix.autoload({
   jquery: ['$', 'window.jQuery']
});

let mix = require('laravel-mix');

mix.js('resources/assets/back/js/app.js','public/js/back.js')
	   .sass('resources/assets/back/scss/app.scss','public/css/back.css')
	   .disableNotifications();

app.js
window.$ = window.jQuery = require('jquery');

require('bootstrap-datepicker') // or window.datepicker = require('bootstrap-datepicker')

it caused this error
$ is not a function

@ankurk91 @ruchern i'm getting more confused


batch vs schedule

It looks like the wording of the Mode options for Synapse Link have changed from "Batch" to "Schedule".
If that is correct, please update the doc accordingly to use the term "scheduled" instead of "batch".

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

ID: 9aa67463-9c48-2681-9bcb-7ff7f7b15d96
Version Independent ID: 005e5548-83a2-aa2f-d1f8-c08b15785fc5
Content: Azure Synapse Link for Azure SQL Database - Azure Synapse Analytics
Content Source: articles/synapse-analytics/synapse-link/sql-database-synapse-link.md
Service: synapse-analytics
Sub-service: synapse-link
GitHub Login: @SnehaGunda
Microsoft Alias: sngun

@dcbrown16
Thanks for your feedback! We will investigate and update as appropriate.

@dcbrown16
Thanks for reporting this! We have created a PR for this issue and the changes should go live soon.


Cannot access 'WEBPACK_DEFAULT_EXPORT' before initialization

Bug report
stackoverflow: https://stackoverflow.com/questions/71911726/chrome-dev-tool-bug-for-cannot-access-webpack-default-export-before-initi
What is the current behavior?
I am using webpack to upgrade from 4.44 to 5.6.
The project files are getting error "Cannot access 'WEBPACK_DEFAULT_EXPORT' before initialization" while packaging.
I compared the packaged files before and after the upgrade and found that the error appeared in the 5.56 version of webpack with an extra line for the definition of default.
The source code works fine in the lower version and works fine.
If the current behavior is a bug, please provide the steps to reproduce.
error.jpg

util.ts
import Logger from '../../core/libs/logger';
import $ from 'jquery';
import {globalArray} from './jscdkClient';

const util = {
  brokerSupportApplication: function () {}
}

export default util;

b.js
import { isTitanClient } from "@html-core";
import Logger from "../../../../core/libs/logger";
import JSCDKBrokerError from "../../model/jscdk-broker-error.consts";
import util from "../../util";
const defaultErrorMessage = util
   ? util._("Fail connect to VMware Unified Access Gateway.")
   : "Fail connect to VMware Unified Access Gateway";
...
...

a.js
import {b} form "b.js";
import util from "../../util";
import { globalArray } from "../jscdkClient";
export default function  a() {
  let getDesktopsObject;
  getDesktopsObject = util.getObject(globalArray, "get-desktops");
}

What is the expected behavior?

Under normal circumstances, there should be no such problem. I have checked many sources and they all say that it is about cyclic dependency which causes it. But I have tried globalizing the util.ts and still can't solve it.

Other relevant information:
package.json
{
"dependencies": {
    "@angular/animations": "13.2.4",
    "@angular/common": "13.2.4",
    "@angular/compiler": "13.2.4",
    "@angular/core": "13.2.4",
    "@angular/forms": "13.2.4",
    "@angular/localize": "^13.2.4",
    "@angular/platform-browser": "13.2.4",
    "@angular/router": "13.2.4",
    "@auth0/angular-jwt": "^5.0.2",
    "@ng-bootstrap/ng-bootstrap": "^12.0.2",
    "@popperjs/core": "^2.11.5",
    "@types/lodash": "^4.14.175",
    "big-integer": "^1.6.50",
    "bootstrap": "^5.1.3",
    "buffer": "^6.0.3",
    "core-js": "2.6.9",
    "crc-32": "^1.2.0",
    "crypto-browserify": "^3.12.0",
    "file-saver": "^2.0.5",
    "jquery": "3.6.0",
    "jquery-ui-dist": "1.12.1",
    "jssha": "3.1.2",
    "lodash": "^4.17.21",
    "popper.js": "^1.16.1",
    "resize-observer-polyfill": "^1.5.1",
    "rxjs": "~6.6.7",
    "snappyjs": "^0.6.0",
    "style-loader": "^3.3.1",
    "tslib": "^2.0.0",
    "webpack": "^5.67.0",
    "zone.js": "~0.11.4"
  }
}

webpack version:  5.56
Node.js version: 14.17
Operating System: chrome 98

please reduce this to reproducible repo.. I didn't understand from description what could cause this.

I think you have circular dependencies

please reduce this to reproducible repo.. I didn't understand from description what could cause this.

I'm sorry I didn't make that clear. With version 5.56 of webpack, when packaging the output, there is one more line defining default ,than in version 4.44. This line of code causes an error to be reported
"default": () => (__WEBPACK_DEFAULT_EXPORT__)

@JesonAnne Sorry without code it is hard to say there is a problem

@alexander-akait I'm experiencing the same issue with a dependency of a dependency. @spinnaker/core depends on react-virtualized. I've created a sample repo. Instructions for reproducing are in the Readme https://github.com/abannachZen/test-deck-plugin
Key point I think here is that I'm not really in control of the codebase that contains the circular dependency. It's two layers removed, and the repo owner is unresponsive. See https://github.com/bvaughn/react-virtualized/issues/1308 and stale PR https://github.com/bvaughn/react-virtualized/pull/1609

Yep, in this case two solutions:

Do fork and fix it (makse sense because if developer doesn't response it means this package can be outdated and it will be a problem in future - new features/fixes/security problems)
Build react-virtualized using ts in separate command and use JS version inside your code


Azure Structured Firewall Logs is GA

Azure Structured Firewall Logs went GA in June 2023 https://techcommunity.microsoft.com/t5/azure-networking-blog/announcing-azure-firewall-structured-logs-general-availability/ba-p/3847154
Removing the preview tag

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

ID: 302f3a2e-e179-d918-c219-0e79f65227ad
Version Independent ID: 7a60b50f-409b-9dae-a002-a82396cc690c
Content: Enable Top flows and Flow trace logs in Azure Firewall
Content Source: articles/firewall/enable-top-ten-and-flow-trace.md
Service: firewall
GitHub Login: @vhorne
Microsoft Alias: victorh

working on a PR to remove the preview tag


Failed to create the WebView control

This error message comes directly after installation via the msi and clicking the tray icon. Also coming again, when doubleclick again the tray icon.

Screenshots

Thanks for reporting, issue #243 is tracking issue


Provide a way to access auto-generated rowid on dataclasses

From the sqlite docs:

The rowid (and "oid" and "rowid") is omitted in WITHOUT ROWID tables. WITHOUT ROWID tables are only available in SQLite version 3.8.2 (2013-12-06) and later. A table that lacks the WITHOUT ROWID clause is called a "rowid table".

This poses an issue if one wants to access rowid on a table with a custom primaryKey, but not as a user-defined column

FWIW this has gotten a bit better now:

In selects, you can access the rowid column in Dart and add it via a join or selectOnly.
Recently (see the linked PR), the rowid would also be exposed on companions so it can be set to custom values for inserts or updates.

@simolus3 Is there a concise way to use selectOnly to get a select rowId, * from table?
That said, I don't entirely remember what I wanted rowId for in  and haven't touched the Flutter app I was working on in a while, so I can't say if that solves my issue. Though, I'm guessing I explicitly wanted to access rowId from companions.

Is there a concise way to use selectOnly to get a select rowId, * from table?

select(table).addColumns([table.rowId]) should work. You'll get a TypedResult back on which you can use readTable(table) to get the row class for the table and read(table.rowid) to get its rowid.


Question about the code of the class GaborLayerLearnable(nn.Module)

Hi, great work! I have a question about the code of the class GaborLayerLearnable(nn.Module). In the following code,
why did you set the self.gabor_kernels'  requires_grad=False? Thanks!

Hi there,
Thank you for your interest in our work!
I believe you are asking for this line of code. This part of the implementation is for the class GaborLayerLearnable instead of GaborLayer. The GaborLayerLearnable class was an experimental class on which we ran preliminary experiments, and is not the implementation whose results we report in the paper.
The intent of this class was to learn the orientations (the theta parameter of the Gabor function) along with all the other parameters. Our experiments with this class did not work sufficiently well, and so we stopped experimenting with it. The code you see regarding these experiments is rather a "vestige", and so it may, unfortunately, now contain some errors. These errors, however, do not affect the reported results.
Please let us know if there is anything else we can help with!

Got it！Thanks for your quick reply！


feat(storagenode): restore the status of a log stream replica by using the latest commit context

What this PR does
This patch changes how to restore the status of a log stream replica after
#162. Previously, the log stream replica reads a sequence of all commit
contexts to decide whether it can work well after restoring. However, since the
replica will maintain only the latest commit context, we should change the
previous approach to reloading a replica.
The log stream replica reads the latest commit context and boundary of log
entries and checks if it recovers its status. The replica runs if the recovery
completes. However, if there is something wrong, its reportCommitBase will be
invalid. In that case, the metadata repository will ignore its report, and
cloning the log entries from the other replica will occur.
Which issue(s) this PR resolves
Updates #125
Anything else

Codecov Report
Base: 63.05% // Head: 62.87% // Decreases project coverage by -0.18% :warning:

Coverage data is based on head (d869711) compared to base (afa6fa4).
Patch coverage: 60.37% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #170      +/-   ##
==========================================
- Coverage   63.05%   62.87%   -0.19%
==========================================
  Files         126      126
  Lines       17137    17156      +19
==========================================
- Hits        10806    10787      -19
- Misses       5773     5814      +41
+ Partials      558      555       -3

Impacted Files
Coverage Δ

internal/storage/config.go
66.35% <0.00%> (-2.58%)
:arrow_down:

internal/storage/testing.go
25.80% <0.00%> (-74.20%)
:arrow_down:

internal/storagenode/logstream/committer.go
79.18% <23.07%> (-2.67%)
:arrow_down:

internal/storage/recovery_points.go
95.91% <77.77%> (-4.09%)
:arrow_down:

internal/storage/storage.go
88.03% <83.33%> (+5.32%)
:arrow_up:

internal/storagenode/logstream/executor.go
79.79% <100.00%> (+0.46%)
:arrow_up:

...ternal/storagenode/logstream/log_stream_context.go
100.00% <100.00%> (ø)

internal/storagenode/replication_server.go
77.00% <0.00%> (-6.00%)
:arrow_down:

internal/metarepos/report_collector.go
77.85% <0.00%> (-0.27%)
:arrow_down:

internal/metarepos/raft_metadata_repository.go
71.71% <0.00%> (-0.27%)
:arrow_down:

... and 2 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


How to draw shadow at one side a path alone

Hi Team,
I have drawn a semi-circular path. In that, I wanted to apply the shadow or elevation at end of its rounded corner. But if I apply elevation using canvas.drawShadow(), the output does not come as excepted. Is there any way to achieve my requirement?
class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: CustomPaint(painter: MyPainter()),
      ),
    );
  }
}

class MyPainter extends CustomPainter {
  @override
  void paint(Canvas canvas, Size size) {
    final rect = Rect.fromLTWH(30, 50, 50, 50);
    final paint = Paint()
      ..style = PaintingStyle.stroke
      ..color = Colors.red
      ..strokeWidth = 3;

    final path = Path()..addArc(rect, -math.pi / 2, math.pi);
    canvas.drawPath(path, paint);
    canvas.drawShadow(path, Colors.grey, 5, false);
  }

  @override
  bool shouldRepaint(CustomPainter old) {
    return false;
  }
}

Expected output

Actual output

Regards,
Devi

@DeviArunaMurugan
Same as above per this comment.
Please ask support questions on StackOverflow.
Closing from here.

@darshankawar : I have raised the query in stack overflow before raising the query here.
https://stackoverflow.com/questions/67815613/how-to-apply-shadow-at-end-corner-of-the-circular-path-in-flutter
But the solution provided there is not applied to our scenario. Could you check our query again and suggest if any possible solution?
Regards,
Devi


The term 'Get-MgServicePrincipalCount' is not recognized as the name of a cmdlet,"

Describe the bug
Hi,
I just ran this for the first time, running the latest version of MSIdentityTools.
Am I missing a dependency?
Running on Windows 10 with PS version 5.1
PS C:\temp> Install-Module -Name MSIdentityTools                                                                                PS C:\temp> Install-Module -Name ImportExcel                                                                                PS C:\temp> Connect-MgGraph -Scopes Application.Read.All                                                                                Welcome to Microsoft Graph!
....
PS C:\temp> Export-MsIdAppConsentGrantReport -ReportOutputType ExcelWorkbook -ExcelWorkbookPath .\appaccess.xlsx
Get-MgServicePrincipalCount : The term 'Get-MgServicePrincipalCount' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or   if a path was included, verify that the path is correct and try again.                                                                                At C:\Program Files\WindowsPowerShell\Modules\MSIdentityTools\2.0.52\MSIdentityTools.psm1:2900 char:18

    $count = Get-MgServicePrincipalCount -ConsistencyLevel eventu ...

             ~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : ObjectNotFound: (Get-MgServicePrincipalCount:String) [], CommandNotFoundException
FullyQualifiedErrorId : CommandNotFoundException

Get-MgServicePrincipal : The term 'Get-MgServicePrincipal' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path
was included, verify that the path is correct and try again.
At C:\Program Files\WindowsPowerShell\Modules\MSIdentityTools\2.0.52\MSIdentityTools.psm1:2904 char:37

    $script:ServicePrincipals = Get-MgServicePrincipal -ExpandPro ...

                                ~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : ObjectNotFound: (Get-MgServicePrincipal:String) [], CommandNotFoundException
FullyQualifiedErrorId : CommandNotFoundException

The variable '$script:ServicePrincipals' cannot be retrieved because it has not been set.
At C:\Program Files\WindowsPowerShell\Modules\MSIdentityTools\2.0.52\MSIdentityTools.psm1:2971 char:29

    foreach ($client in $script:ServicePrincipals) {

                        ~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidOperation: (script:ServicePrincipals:String) [], RuntimeException
FullyQualifiedErrorId : VariableIsUndefined

The variable '$script:servicePrincipals' cannot be retrieved because it has not been set.
At C:\Program Files\WindowsPowerShell\Modules\MSIdentityTools\2.0.52\MSIdentityTools.psm1:3013 char:30

    $servicePrincipals = $script:servicePrincipals

                         ~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidOperation: (script:servicePrincipals:String) [], RuntimeException
FullyQualifiedErrorId : VariableIsUndefined

The variable '$script:servicePrincipals' cannot be retrieved because it has not been set.
At C:\Program Files\WindowsPowerShell\Modules\MSIdentityTools\2.0.52\MSIdentityTools.psm1:3021 char:16

    $job = $script:servicePrincipals | ForEach-Object -AsJob -Thr ...

           ~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : InvalidOperation: (script:servicePrincipals:String) [], RuntimeException
FullyQualifiedErrorId : VariableIsUndefined

The property 'State' cannot be found on this object. Verify that the property exists.
At C:\Program Files\WindowsPowerShell\Modules\MSIdentityTools\2.0.52\MSIdentityTools.psm1:3042 char:16

    while ($job.State -eq 'Running') {

           ~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : NotSpecified: (:) [], PropertyNotFoundException
FullyQualifiedErrorId : PropertyNotFoundStrict

An error occurred while retrieving app consent grants. Please try again.
At C:\Program Files\WindowsPowerShell\Modules\MSIdentityTools\2.0.52\MSIdentityTools.psm1:2891 char:13

        throw "An error occurred while retrieving app consent gra ...

        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : OperationStopped: (An error occurr...ease try again.:String) [], RuntimeException
FullyQualifiedErrorId : An error occurred while retrieving app consent grants. Please try again.

I was able to resolve this by running:
install-module Microsoft.Graph.Applications


Cant disable touch controls on android.

Pretty much as the title says. Can't disable touch controls. I'm playing on a retroid pocket 3+ if that matters.

I think Sam disabled the ability for mobile devices to disable touch controls to prevent softlocks; this may or may not get changed in the future.

Solution:

open pokerogue in chrome on mobile
tap on the 3 dots to open the menu
switch to desktop view
after you got desktop view tap the 3 dots again
click on install app
now you can open pokerogue directly from you home screen and it wont have the chrome bezels
log in and open the menu, you will now be able to disable the mobile touch controls
Make sure your controller works before since this can softlock you if it dosen't and do not disable controller as that will also cause a softlock. If you got softlocked you would have to uninstall the app, clear the data and just redo it from step 1

while not a fix its atleast a way around it

click on install app

On Ayn Odin 2 for example we don't have this option.
This is why we use the app.
It could be nice to be able to disable touch control, then display a window with this message :
Touch control are disable, if you don't confirm this operation, they will be back in 10s...9s...8s...

[Cancel] [Confirm]

This window will ensure the user that the D-pad controller work and the confirm button works too.
It will avoid soft locks

Yeah this is the suggestion I gave myself, although it hasn't been implemented by anyone yet.

I understand ! If I have some time I will create a pull request with this feature.
Thank you for your work

I searched how to change the game menu settings, in the JS files I only saw the menus for the desktop app.
How can you change the in-game menu like Daily Run (Beta) ?

Yeah, my app itself doesn't modify the game's source code at all (besides bypassing login), so any changes along these lines would have to be on the main game repo.

I wonder if I just find a chromium style app that's designed for kiosks if that'd be a decent work around as well. I was hoping to do Offline runs honestly.
`Touch control are disable, if you don't confirm this operation, they will be back in 10s...9s...8s...
[Cancel] [Confirm]`
This seems like the way to do it honestly.


SPARK-35243 has introduced support for ANSI interval types

Add cache support for ANSI Interval types as in SPARK-35243

It's duplicated with #4148, and it has been fixed.
@razajafri  can we close it?

It's duplicated with #4148, and it has been fixed.
ANSI Interval types includes year-month and day-time.
Note:  Only day-time is supported now.
@razajafri can we close it?

Issue #4148 is for PCBS only. This ticket is a general one and for all the types introduced in Spark 3.3 including YearMonthIntervalType

Both ANSI year month type and ANSI day time type were supported.


Structures are generated floating in the air.

Forge: 1.18.2-40.1.19
Biome Makeover: 1.18.2-1.4.19
Architectury API: v4.4.59
See the screenshot:

In the Dark Forest

This is essentially a vanilla issue, you see the same things with modern MC structure. It's just more noticeable since the mansion is so large.
I think it looks kinda cool anyway.


fix(runtime-core): TypeError: oldBindings[i] is undefined

Related issues:

https://github.com/vuejs/core/issues/6658
https://github.com/vuejs/core/issues/6573
https://github.com/vuejs/core/pull/4443
https://github.com/vuetifyjs/vuetify/issues/15779
https://github.com/vuetifyjs/vuetify/issues/15755
https://github.com/vuetifyjs/vuetify/issues/15724

https://github.com/vuejs/core/pull/4443#issuecomment-1259205410


Upgrading from 2.1.7 to 2.2.0 - Broken Functionality

The function below was adding new cards without any problem in 2.1.7 version. However, it started to fail after the new version 2.2.0. Doesn't raise any exception but sometimes doesn't display the new cards. However, new cards appear after the selected card index is changed.

private void ButtonAddNew_Clicked(object sender, EventArgs e)
{
    var o = (CarouselSampleScrollViewModel)BindingContext;

    if (o == null)
        BindingContext = new CarouselSampleScrollViewModel(new dynamoQuestion());

    o = (CarouselSampleScrollViewModel)BindingContext;

    var item = new QuestionChoice();

    if (o.Items.Count < 0) {
        item.Number = 1;
        o.Items.Add(item);
    }
    else {
        item.Number = _carouselView.ItemsCount + 1;
        o.Items.Insert(o.Items.Count, item);
    }

    _carouselView.SelectedIndex = _carouselView.ItemsCount - 1;
}

Hi
Could you please create a small sample project?

the best approach would be to fork my repository and add sample there

cannot reproduce on iOS simulator with CardsView
It must be you updates something else. Or just missed providing something
I wait for sample from you :)

QuestionChoice is it class or struct ?
Well, just crate sample and I will help you)

cannot reproduce


How to use extraTemplates?

I'm trying to add extra templates but I can't seem to get it to work.
await generateApi({
  ...,
  extraTemplates: [
    path.resolve(process.cwd(), './src/generated/templates/extra/template.eta')
  ],
})

const foo = 'extra template';

Error: ❌ https://host.com/service/v2/api-docs [FAILED CODEGEN]

Hi @christo8989 , I forgot add more documentation about this field.
First of all, extraTemplates has struct like
{ name: string, path: string }[];

it generates one ts\js file per one extra template
See more examples here: https://github.com/acacode/swagger-typescript-api/tree/next/tests/spec/extra-templates

Thank you!


Refactor: Improve Documentation and Remove Unused Code

This pull request encompasses several improvements and housekeeping tasks aimed at enhancing the overall quality and maintainability of the project.
Here's a breakdown of the changes included:

Documentation Enhancement:

Updated the project README to provide clearer instructions and information about the project.

Codebase Cleanup:

Removed leftover code artifacts to declutter the codebase and ensure no unused components remain, promoting a more streamlined and efficient project structure.

Documentation Implementation:

Introduced comprehensive documentation and comments within the codebase to enhance code readability and maintainability.
This pull request is crucial for maintaining code quality and ensuring a smoother development experience.

Thank you for flagging this, and I appreciate the diligence of GitGuardian! Rest assured, these secrets are for development purposes only and won't be used in production. I'll investigate the findings and make sure to remediate them accordingly.


Client.get_partial_messageable().send() is not sending a message

Summary
The PartialMessageable object send method does not send message.
Reproduction Steps
Steps that I did:

partial_channel = Client.get_partial_messageable(my dm_channel ID, type = ChannelType.private)
await partial_channel.send(embed = some embed)

In the source code, this looks like

bot.get_partial_messageable creates a PartialMessageable object
The PartialMessageable has an attribute channel which is initialized as Object(id = id)
PartialMessageable.send calls ConnectionState.create_message(channel, data) where channel is the Object and data is stuff from await state.http.send_message
ConnectionState.create_message creates a new Message object with Message(state, channel, data)
Message.__init__ attempts to get the guild attribute and type attribute from channel (which is an Object object).

Traceback can be found here: https://paste.nextcord.dev/?id=1652901053415284
Minimal Reproducible Code
bot = commands.Bot()
user = bot.get_user(MY ID)
dm_channel = user.dm_channel if user.dm_channel else await user.create_dm()
partial_channel = bot.get_partial_messageable(dm_channel.id, type = ChannelType.private)
await partial_channel.send(embed = some embed)

Expected Results
I expected the message to be sent with the PartialMessageable object.
Actual Results
The Message.__init__ attempts to check the guild attribute and type attribute of the "channel" object, but channel is an Object object.
Intents
nextcord.Intents.default() with intent.members = True
System Information

Python v3.10.1-final
nextcord v2.0.0-alpha

nextcord pkg_resources: v2.0.0a10

aiohttp v3.8.1
system info: Windows 10 10.0.19043

Checklist

[ ] I have searched the open issues for duplicates.
[X] I have shown the entire traceback, if possible.
[X] I have removed my token from display, if visible.

Additional Context
No response

bot = commands.Bot()
user = bot.get_user(MY ID)
dm_channel = user.dm_channel if user.dm_channel else await user.create_dm()
partial_channel = bot.get_partial_messageable(dm_channel.id, type = ChannelType.private)
await partial_channel.send(embed = some embed)

Side note... can't you just use user.send()? As the docs say, create_dm() should rarely be called.


Move from test cafe to Cypress

I want to merge this change because...
https://app.clickup.com/t/6a5w4z
Now dashboard and storefront have the same test stack.
Screenshots

Pull Request Checklist

[x] All visible strings are translated with proper context.
[x] All data-formatting is locale-aware (dates, numbers, and so on).
[x] Translated strings are extracted.
[x] Number of API calls is optimized.
[x] The changes are tested.
[x] Type definitions are up to date.
[x] Changes are mentioned in the changelog.

Task linked: CU-6a5w4z Add tests for basic warehouses feature

@michalina-graczyk Objective here was to enable cypress in this repo and create example test for warehouse, not cover whole section with automatic tests


Use go modules as part of official build pipeline

https://github.com/segmentio/aws-okta/pull/87 gets us part way there.
Like https://github.com/segmentio/chamber/pull/144

Pretty sure this is as done as it's gonna get.


Context Menu on demo site does not function

Describe the bug
On click with either of the three buttons no context menu displays regardless of browser.
https://blazor.radzen.com/contextmenu
To Reproduce
Steps to reproduce the behavior:

Go to 'https://blazor.radzen.com/contextmenu'
Click on 'show context menu.'
Nothing occurs

Screenshots

Desktop (please complete the following information):

OS: Win 10
Browser [e.g. chrome, safari] Chrome, Brave, Edge

Works as expected with all tested browsers (the context menu shows on right click):

Oh. @oppknox did you try to click with right mouse button? Because that was exactly what I was doing wrong (clicking left) when I tried for the first time...

I did and of course it works. Feels kinda dumb, but is a good learning opportunity. Thank you


Uncaught TypeError: $(...).modal is not a function

Laravel Mix Version: #.#.# (npm list --depth=0)

npm list --depth=0
+--<EMAIL_ADDRESS>(github:niftylettuce/bootstrap-social#f7d456c7982cdd865a8ac75025a5e68b4c71c925)
+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>`--<EMAIL_ADDRESS>

Node Version (node -v):

node -v
v8.9.4

NPM Version (npm -v):

npm -v
5.6.0

OS:  Windows with HomeStead ( npm / node running on the host )

Description:
Steps To Reproduce:
With a fresh laravel install i'm trying to display a bootstrap modal but i get this error :
(index):181 Uncaught TypeError: $(...).modal is not a function
    at (index):181

    $('#exampleModalCenter').modal({
        show: true
    });

I'm new to webpack / laravel-mix / ... And i don't know how to get more information.
In app.js I found this :

But still doesn't work.
php artisan --version
Laravel Framework 5.5.28

Thanks for your help.

@Crupuk have you solved this issue?  also experiencing this one.  the modal will open when using data parameters in the button, but the show.bs.modal is never triggered.  when i try to manually call the modal, i also get the error you are experiencing.

@imonoid  not yet, and for now i'm trying to learn webpack on laracast.
Already try to make a project from scratch and still not working.
If you find something , please tell me :-p

Hi @Crupuk,
Bootstrap 4 no longer uses module definitions for the core JavaScript, instead, you now need to explicitly expose each static module by using the below.
const webpack = require('webpack')

mix.webpackConfig({
  plugins: [
    new webpack.ProvidePlugin({
      $               : 'jquery',
      jQuery          : 'jquery',
      'window.jQuery' : 'jquery',
      Popper          : ['popper.js', 'default'],
      Alert           : 'exports-loader?Alert!bootstrap/js/dist/alert',
      Button          : 'exports-loader?Button!bootstrap/js/dist/button',
      Carousel        : 'exports-loader?Carousel!bootstrap/js/dist/carousel',
      Collapse        : 'exports-loader?Collapse!bootstrap/js/dist/collapse',
      Dropdown        : 'exports-loader?Dropdown!bootstrap/js/dist/dropdown',
      Modal           : 'exports-loader?Modal!bootstrap/js/dist/modal',
      Popover         : 'exports-loader?Popover!bootstrap/js/dist/popover',
      Scrollspy       : 'exports-loader?Scrollspy!bootstrap/js/dist/scrollspy',
      Tab             : 'exports-loader?Tab!bootstrap/js/dist/tab',
      Tooltip         : "exports-loader?Tooltip!bootstrap/js/dist/tooltip",
      Util            : 'exports-loader?Util!bootstrap/js/dist/util',
    }),
  ],
})

This could be adapted to mix.autoload but I haven't had a chance to test it fully.

I will try . Thx @cshawaus

I have a similar problem, mind, however, is with the $(' ...').carousel() function in my code.
I think @cshawaus has a point. I will try that.

hi, i have similar problem and put code in webpack.min.js, type in terminal npm run watch but the error persists @cshawaus

Thanks , guys

jquery/dist/jquery.slimchange to jquery/dist/jquery will work

The $(…).modal is not a function is usually caused because scripts are loaded in the wrong order . The browser will execute the scripts in the order it finds them. If in a script you attempt to access an element that hasn't been reached yet then you will get an error. Make sure that you don't have a script above one that it requires.

In your JS file add this:
require('bootstrap/js/dist/modal');

Thanks @cshawaus
My problem solved:)

@cshawaus it display an error
ReferenceError: webpack is not defined
    at Object.

even when I changed it to
mix.webpackConfig(webpack => {
    return {
        plugins: [
            new webpack.ProvidePlugin({
                $: 'jquery',
                jQuery: 'jquery',
                'window.jQuery': 'jquery',
                Popper          : ['popper.js', 'default'],
                Alert           : 'exports-loader?Alert!bootstrap/js/dist/alert',
                Button          : 'exports-loader?Button!bootstrap/js/dist/button',
                Carousel        : 'exports-loader?Carousel!bootstrap/js/dist/carousel',
                Collapse        : 'exports-loader?Collapse!bootstrap/js/dist/collapse',
                Dropdown        : 'exports-loader?Dropdown!bootstrap/js/dist/dropdown',
                Modal           : 'exports-loader?Modal!bootstrap/js/dist/modal',
                Popover         : 'exports-loader?Popover!bootstrap/js/dist/popover',
                Scrollspy       : 'exports-loader?Scrollspy!bootstrap/js/dist/scrollspy',
                Tab             : 'exports-loader?Tab!bootstrap/js/dist/tab',
                Tooltip         : "exports-loader?Tooltip!bootstrap/js/dist/tooltip",
                Util            : 'exports-loader?Util!bootstrap/js/dist/util',
            })
        ]
    };
});

it still not working, I use bootstrap 4 and I can't load any component until now :(

const mix = require('laravel-mix');
const webpack = require('webpack'); // Import webpack
mix.webpackConfig(webpack => {
return {
plugins: [
new webpack.ProvidePlugin({
// Your ProvidePlugin configuration
})
]
};
});
use this to solve


Multiple ProfileServiceNotBound errors when trying to write to a Peripheral

Hello,
I have the following code:
    private suspend fun enableDescriptorNotification(descriptor: Descriptor) {
        try {
            peripheral.write(descriptor, ENABLE_NOTIFICATION_VALUE)
        } catch (e: GattWriteException) {
            Timber.w(e, "[enable descriptor notification]: GattWriteException - Result: ${e.result}")
        }
    }

And for some weeks already this code is producing a lot of ProfileServiceNotBound types of exception, the log is the following:

Non-fatal Exception: f7.N: Write failed: ProfileServiceNotBound
at com.juul.kable.BluetoothGattKt.writeCharacteristicOrThrow(BluetoothGatt.kt:58)
at com.juul.kable.BluetoothDeviceAndroidPeripheral$write$$inlined$execute$1.invokeSuspend(Connection.kt:126)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at android.os.Handler.handleCallback(Handler.java:959)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loopOnce(Looper.java:232)
at android.os.Looper.loop(Looper.java:317)
at android.os.HandlerThread.run(HandlerThread.java:85)

As you can see from these 3 screenshots issues started in early June:

In case that helps, our app producing those is Open Source.
Based on what I read in your writeResultFrom and in the Android-related code:
    /**
     * Error code indicating that the profile service is not bound. You can bind a profile service
     * by calling {@link BluetoothAdapter#getProfileProxy}.
     */
    public static final int ERROR_PROFILE_SERVICE_NOT_BOUND = 9;

Any chance you can catch this error without letting it fail? What is this related to? As there aren't any logs producing it in the past and we've been using Kable for around 2 years already.

Can you provide a breakdown of the failure rate per Android version?
I'm wondering if this is the result of behavior changes in newer versions of Android?

Can you provide a breakdown of the failure rate per Android version? I'm wondering if this is the result of behavior changes in newer versions of Android?

Sure, here it is:

Thanks for the info. We'll seeing this on our apps as well. I'll try to allocate some time soon to investigate.

@PavlosTze I'm currently investigating this issue. Do you happen to know what version of Kable you first saw this issue in?

@twyatt It started with 0.31.1.

Thanks, I believe I've tracked down the cause:
I believe it was introduced in #648, when a bug was fixed (whereas Kable would silently ignore failures to write to a characteristic). In #648, that behavior was fixed (to now throw an exception if the write failed).
Unfortunately, some might be relying on the bug where it didn't propagate a failure when the write fails.
I'm trying to determine what the best API might be for this situation. I'll follow up soon.

Sure, I just want to mention that this is a non-crash failure. Which means that if it failed before in the same way, the only thing happening now is that it's been showing up in the logs, not that big of a deal.
I'm wondering if we can solve it in the background based on what it says here?
    /**
     * Error code indicating that the profile service is not bound. You can bind a profile service
     * by calling {@link BluetoothAdapter#getProfileProxy}.
     */
    public static final int ERROR_PROFILE_SERVICE_NOT_BOUND = 9;

Is it possible to bind a profile service if we get across this failure?

I believe the failure happens when a write occurs after a connection is lost / disposed; because the connection was disposed, the underlying Android GATT object no longer has a "profile service" (essentially a reference to the underlying Android BLE system) and so propagates that failure. I believe it is unrelated to getProfileProxy; perhaps Android just re-used this failure case for multiple failure conditions. 🤷
I think in most cases it is safe to ignore the failure (in the cases where it happens because the connection was recently disposed). The case where it might be problematic is where BluetoothAdapter#getProfileProxy is being utilized (I suspect this isn't common though).

The connection management, especially around I/O has been refactored. Can you try 0.35.0-rc and see if the issue has been resolved?

Hey, unfortunately I couldn't reproduce the error, but there are numerous crashlytics logs from our users. But...As I saw the changes of 0.35.0-rc and there are plenty of them, I can try to find some time in the next few days to test it myself and come back with any issues I may found (or just communicate that everything looked OK). How does that sound?

That sounds great. I appreciate you taking the time to help test. ❤

That sounds great. I appreciate you taking the time to help test. ❤

Hey, I tested it thoroughly today, I opened some issues. FYI our project is open-source, in case you want to have a look at how we use Kable, you can view our BluetoothConnectionManager:

Version supporting 0.35.0-RC
Version up to 0.34.0

Feel free to ask me if anything, happy to help.

Thanks for reporting all those issues! Super helpful!

Removed milestone, as I believe Kable 0.35.x releases provide a means to properly shutdown tasks with a connection, and should provide a means to avoid these failures.
Leaving open for a while for further feedback/validation.


Selection

Hi,
What are the equivalent of
*Selection.Start
*Selection.Length
in v3 code base?
Regards,

Selections.First() does it.

As you've discovered, v3 supports multiple selections. When there is only a single selection doing Selections.First() as you did should be what you want. For safety you might also check the Selections.IsEmpty and/or Selections.Count property before doing that. When there are multiple selections you can use the Scintilla.MainSelection property to identify which selection in the collection is the "main" selection. i.e.
Selection sel = null;
if (!scintilla.Selections.IsEmpty)
    sel = scintilla.Selections[scintilla.MainSelection];

That being said, I think there is still a lot of people who are not using multiple selections and will want to use simple properties to get the selection start and selection end. So In commit 94ccd92ad53567be91b160fb7d20d97235834b80 I've added support for SelectionStart and SelectionEnd properties. Be sure to read the remarks for each to make sure you understand their usage.


Detail view is not uniform

Describe the bug
If the task text is short, the spacings on the detail view do not match the spacing of the other posts.
To Reproduce
Steps to reproduce the behavior:

Go to 'https://cai-einander-helfen.fbi.h-da.de/posts?q=&location=&radius=&page=1'
Click on post '10.000 Kirchenvorstandmitglieder gesucht'
Click on post '2. Geschäftsführer/in'
The spacings in the detail view do not match

Expected behavior
The spacings are equal on all posts
Screenshots

Desktop (please complete the following information):

OS: Windows 10
Browser Firefox
Version 77

Smartphone (please complete the following information):
Not used.
Additional context
None

Issue seems to only occur on large and extra large devices. May have something to do with available space in detail view
Same behaviour on these posts:
https://cai-einander-helfen-staging.fbi.h-da.de/posts/f61d4a2586044dd3cb2be60c7ee08a39?q=Beisitzer im Vorstand für unseren Verein gesucht&location=&radius=&page=1
https://cai-einander-helfen-staging.fbi.h-da.de/posts/140fe53efb2657043ac87725d0af3e39?q=Zumba&location=&radius=&page=1
https://cai-einander-helfen.fbi.h-da.de/posts/8d6679043e84104fe3181fa233a4b568?q=&location=&radius=&page=181
In fact the spacings on those posts are similar on same larger devices+. The bug seems to occur when there is only max. one line of text in the task field. Might more complex but thats what it seems

Maybe I have found a solution. I changed the v-simple-table to a div and added a "padding right" to the categories. I also changed the color to black and if you look at the posts 1 and 2 on the second page, it seems to work compare to the staging version.

Is this still working with different resolutions?
sgrobarek<EMAIL_ADDRESS>schrieb am Di., 7. Juli 2020, 11:03:

Maybe I have found a solution. I changed the v-simple-table to a div and
added a "padding right" to the categories. I also changed the color to
black and if you look at the posts 1 and 2 on the second page, it seems to
work compare to the staging version.
[image: Screen Shot 2020-07-07 at 04 53 12]
https://user-images.githubusercontent.com/64202529/86754627-063e2580-c00f-11ea-93ee-addda44d9b13.png
[image: Screen Shot 2020-07-07 at 04 53 16]
https://user-images.githubusercontent.com/64202529/86754656-0d653380-c00f-11ea-8953-1f6af7c35389.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/hochschule-darmstadt/einander-helfen/issues/126#issuecomment-654708796,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADC5IDN5M5RG37H3EHAOXR3R2LQGVANCNFSM4OOB6EDQ
.

Yes, it seems to work with different resolutions. I tried 4k, 1080p and 720p. On mobile view we can use the v-simple-table, because I copied in issue #76 the "table" for the mobile view to get the detail view under the selected post.

@KaiDrieHda @DianaPankratz  please check if this is use still an issue.

@xcaverxiii yes this bug still exists. For example search for the location "Maierhöfen" and comapre the posts "Gemeinde Gestratz - Bauhof" and "Westallgäuer Waldkindergarten"


Creating a plan for H2020 gives me different version of template (institutional customisation error?)

As noted in #334, when I create a plan for EC H2020 and Sheffield Hallam Uni, I get an old, unpublished version of the template. You can tell this as it asks people to describe things on a 'dataset by dataset' level.
Checking the H2020 template on the admin interface, all seems well. The previous versions are showing in the history table as unpublished. Unfortunately I can't view these to check content as clicking to do so brings up the Edinburgh error message.

The strange thing is that if I create a H2020 plan with no organisation, I get the correct, current version of the template. Could the fact that Sheffield Hallam have added a section be the cause of users getting the wrong version? It shouldn't be as they've added their section to both new and old versions of the template on the live site so data for both cases should have transferred.
There are display issues with the H2020 template (when the right version comes up). The phases are out of sequence and the progress bar is calculating on all questions, rather than by phase which would make more sense. Again I can't view this on the admin side as I get a 404 so I don't know if the phase is mis-numbered or if this is a data migration issue.

This bug is most likely due to the plan creation interaction selecting an old, customized template.  It was originally the intention that out of date (funder has published a newer version) customizations would not get selected by the create plan page.

The correct template seems to be being pulled in all cases now, but there are still a couple of outstanding issues.

Any sections added from any org are presented, not just your own (screengrab 1)
The guidance from SHU is listed as 'EC guidance' This doesn't seem to occur for KU Leuven so maybe a one-off? (screengrab 2)

Additional sections issue fixed on dmponline-test as of last migration

Closing out. The outstanding issue that SHU guidance is being mislabelled as EC is being addressed by @xsrust in #371


[Suggestion] Can you add the ability to fall backwards with any weapons as an option in the menus

I really liked when we could fall backwards and shoot people with guns and I was a bit dissapointed when the feature was made exclusive to runner hands, could you add the feature back please, id be grateful. also great work on the addon

um, this is a thing, jump backwards in the air and press right click and it makes you fall backward just like with runner's hands

it doesnt work for me though, i can only fall backwards with the runner's hands and I don't know why

it doesnt work for me though, i can only fall backwards with the runner's hands and I don't know why

Because I made it so

How are you gonna use scopes while jumping?

How are you gonna use scopes while jumping?

that's why they said "add it as a option in the menu"

Question still remains

How are you gonna use scopes while jumping?

that's why they said "add it as a option in the menu"

just don't?

Question still remains

How are you gonna use scopes while jumping?

that's why they said "add it as a option in the menu"

i mean if you have it on you're gonna be fully aware you can't use your optics while jumping right

Question still remains

How are you gonna use scopes while jumping?

that's why they said "add it as a option in the menu"

You could have it for the middle mouse button so you can still use optics while jumping.

i also really liked this feature, i thought i was having issues on my end

Fine, I'll add this option today

Added in https://github.com/JonnyBro/beatrun/commit/f3dbf0b2de7d0f0d896d264c8f7948a73d55d46b

thanks man


[TF-TRT] Refactoring Top Level init file for TF-TRT

Builds on #50782

Applies final cleaning and refactoring on TRT version checking
@bixia1 : for review

@bixia1 the refactoring commit is the following: 1cea6a041b19b6265dcde7f4b4650cd75b069386

@bixia1 the refactoring commit is the following: 3aa8b946c1b85ab2660ce6f47104068150228dcb

@DEKHTIARJonathan Can you please check @bixia1's comments and keep us posted ? Thanks!

@DEKHTIARJonathan  Any update on this PR? Please. Thanks!

@DEKHTIARJonathan Any update on this PR? Please. Thanks!

Please do not close

@bixia1 all comments have been addressed. Please review

Please update the PR description, and describe that this PR does.

@bixia1 I had to add this line: https://github.com/tensorflow/tensorflow/pull/50884/files#diff-0de5f087b61e9a3572b30a6a3ac6f7cbc88f96de81c733334784077646b9f198R51
Otherwise CPU builds would fail. Please re-approve

@DEKHTIARJonathan Can you please check @bixia1's comments and keep us posted ? Thanks!

@DEKHTIARJonathan Any update on this PR? Please. Thanks!

@DEKHTIARJonathan Any update on this PR? Please. Thanks!


⚠ Bofrost.at has degraded performance

In 7134d3b, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1662 ms

Resolved: Bofrost.at performance has improved in 7211425.


Test not working

Last test to work were
https://github.com/openclimatefix/ocf_datapipes/actions/runs/3315186683

THis was using pytest-7.1.3, since then pytest 7.2 came out, which might be casuing a problem

New version of torchdata and torch too

Reduced torch to 0.12.1 and torchdata to 0.4.1
https://github.com/openclimatefix/ocf_datapipes/actions/runs/3379671610/jobs/5611529255 passed


Flagd CrashLoopBackOff

Bug Report
Which version of the demo you are using?
Version 1.9.0, deployed on a kind cluster
Symptom
Flagd deployment in CrashLoopBackOff
What is the expected behavior?
Flagd does not crash
What is the actual behavior?
Flagd in CrashLoopBackOff
Reproduce
Deploy the demo helm chart with Elastic values as per https://github.com/elastic/opentelemetry-demo
Additional Context
I suspect it is a issue of the memory limit being set to 20Mi, I bumped it to 100Mi and the issue was mitigated.

Can you do a kubectl describe pod <flagd-pod> and paste the output here?

I was running into the same problem.  It looks like it's getting OOM killed because of the 20M limit.  I upped it to 400M just to be safe and it starts fine.


devmapper: remove unused var

devmapper relies on Driver.DeviceSet.Status().BaseDeviceFS
Signed-off-by: Antonio Murdaca<EMAIL_ADDRESS>

daemon/graphdriver/devmapper/driver.go:35: fsMagic declared and not used

@cpuguy83 fixed

LGTM

LGTM 🐰

Build failure on Windows not related, merging


Development plan

@DaveSkender I wanted to share the broader roadmap and vision that I am slowly churning towards.

trading assets - currently dependent on a platform where QuanTAlib runs on, but I have simple classes for YahooFinance, Binance and Oanda half-baked already
Indicators - typically work on one data series (we are here now)
Signals - use indicators and generate buy/hold/sell signals (threshold, crossings)
Trades - use signals to generate trade instructions and track drag and commissions
Portfolios - use trades to generate a re-balanced list of assets (+ cash) owned and track performance
Strategy - a collection of parameters from asset selection to portfolio composition

Success of portfolio is measured by Sharpe or Sortino ratio (or any other performance measures for portfolio); an optimization algo can then fine-tune the strategy to find the highest-yielding portfolio possible within strategy constraints.
For example, a strategy could be defined as:

assets: use US-based ETFs in technology sector
indicators: use family of moving averages + family of oscillators
signals: use a crossover of two MAs + confirmation from an oscillator
trades: no more than 1 trade per day, avoid triggering PDT rule, no shorting
portfolios: keep at least 10 assets in the portfolio, the largest asset cannot be >25% of total value

Strategies should be re-optimized regularly to find the new possible maxima for the porftolio.

These are all very cool.  I'm doing much of this in my private trading system, but have started to break these out into discrete modules for separation of concerns.  That's how I started the indicator library.  From an open-source perspective, it's tough to do an all-inclusive platform -- not everyone wants Binance data, for example.
Signals + Trades combines in two larger features: 1) backtesting and 2) account management.  Backtesting, at least in my system, is just a simulated account.  Portfolio is an overlay on account management for asset allocations, ideally using best practices around risk management.
There's a lot of ocean to boil here, so I'm just taking it slow and trying to mature pieces in a logical order and trying to build them as separate concerns that can be pieced together later (rather than one monolithic app).  I think I'll tackle signals next.  Here's my opinion on what a "full" trading system includes:

market data - there's lots of existing APIs and packages out there, so this is more of a "buy" than "build" for me; though, this can include much more than asset price data (e.g. options data, economic data, sentiment data, etc.)
indicators - prerequisite data for analysis
signals and conditions - defined triggering events and market conditions
strategy management - which combinations of signals define a discrete strategy?
backtesting - of signals and/or strategies, scoring metrics, etc.
asset picking - which symbols are good to use?
account management - trades, margin, and cash management
portfolio - risk management and asset allocation (rebalancing), health metrics
charting and visualization - makes it easier to see what's happening
broker integration - live trading

I have a few other "unique" attributes that I'm happy to share privately.

@DaveSkender So, we both have indicators 'under control' at the moment (you have 5 times more indicators than me). Are you interested we collaborate on signals, trades and portfolio rebalanging classes? I analyzed what Kevin did in Pandas-TA, and what Oleg is doing in his VectorBT library (both are written in Python).
If yes, any suggestions how we approach the task?

I'm game.  Let's setup a separate GitHub org and have some private team design convos.  You want me to set that up?  I have lots of experience.  We can debate/rename it before we meaningfully rely on any name.

sounds perfect!

I've invited you as a co-Owner.  Once you accept, add yourself to both the leadership and contributors teams.
Organization-level discussions are enabled and private.
https://github.com/bartrade


Updates to QA protocol necessary for switch to Jekyll site

This is a list of updates/additions to the weekly QA protocol that could be useful (or are necessary) when the site is switched over to the Jekyll site.
For the transition period when both sites are live (Jekyll site is primary):

Idea: Add a step at the beginning of the QA track to:

explain that pathway edits are reviewed on the "classic" wiki site, and not on the Jekyll site (to avoid confusion)
ask curators to perform the Update Approval tags multiple times during the week, mainly minimize the delay for users to see their recent edit on the new site. Also this behavior is more similar to what will be expected of the weekly curators once everything works through Github.
We could even switch the order of tasks so that the Update Approval tags task comes first.

When "classic" site is retired and edits happen directly at GitHub:

Updates to QA additional tasks:

Test search: update for Jekyll site, or remove if not needed.
Pathways for deletion: Update to reflect how delete works on Jekyll site, or remove if not needed.
Instructions for passing the torch: update how to find who's next in the rotation

One more task, merged from a different issue:

Send email in response to notifications in the new-users Slack channel. These are not really new users, but rather users who's pathways/edits have been included in the Approved collection for the first time (i.e. new to GitHub). Email template.

Status:

explain that pathway edits are reviewed on the "classic" wiki site, and not on the Jekyll site (to avoid confusion) => added to front page of QA protocol.

Test search: update for Jekyll site, or remove if not needed. => we've decided to keep this as-is for now (test search on classic)

Pathways for deletion: Update to reflect how delete works on Jekyll site, or remove if not needed. => Unclear how to handle this on new site. Leave as-is for now (meaning delete on classic).

Instructions for passing the torch: update how to find who's next in the rotation => Skip this for now. The rotation is listed on the index page of WP, but only usernames are listed. Google calendar sends a reminder anyway so no need to do this. Removed from the protocol.

Instructions on qaprotocol.html (intro page) have been made more clear. Closing for now.


Use serverReadyAction in django/flask to start the web browser

This is a pattern that works for Django/Flask:
            "serverReadyAction": {
                "pattern": ".*(https?:\\/\\/\\S+:[0-9]+\\/?).*",
                "uriFormat": "%s",
                "action": "openExternally"
              }

There is a issue when using subProcess: true. This results in multiple tabs being opened. This is because for every debug adapter it launches a separate tab. we either need to block that, or remove serverReadyAction when we attach to the sub-process.
Full Dajngo config:
        {
            "name": "Django",
            "type": "python",
            "request": "launch",
            "program": "${workspaceFolder}/manage.py",
            "args": [
                "runserver",
                "--noreload",
                "--nothreading"
            ],
            "django": true,
            "serverReadyAction": {
                "pattern": ".*(https?:\\/\\/\\S+:[0-9]+\\/?).*",
                "uriFormat": "%s",
                "action": "openExternally"
              }
        }

Full Flask Config:
        {
            "name": "Flask",
            "type": "python",
            "request": "launch",
            "module": "flask",
            "env": {
                "FLASK_APP": "app.py",
                "FLASK_ENV": "development",
                "FLASK_DEBUG": "0"
            },
            "args": [
                "run",
                "--no-debugger",
                "--no-reload"
            ],
            "jinja": true,
            "serverReadyAction": {
                "pattern": ".*(https?:\\/\\/\\S+:[0-9]+\\/?).*",
                "uriFormat": "%s",
                "action": "openExternally"
              }
        }

Duplicate of #1058


Handle json column in pdo reflector

~Expect this to fail (in more places than intended).~
The significant failing job is: PHPUnit (8.0, mysql:8.0, pdo, recording), the rest is failing because of cache mismatch (I believe?).
Closes: #357

This looks great, thank you.
Can the same bug be reproduced with PGSQL?

Can the same bug be reproduced with PGSQL?

Kind of. PdoPgQueryReflector does not crash in case of json, because the extension fallbacks to selecting TYPNAM from PG_TYPE and the way phpstan-dba works will make it just return MixedType.
This still possibly may not return native_type, but I am unaware of when this could happen, therefore leaving this until reproducible crash scenario is found, which will make it easier to fix 😎

Additionally it would be cool if you could add a new testcase for the DbaInferenceTest which contains sql queries using the JSON column, to make sure it also works in non trivial SELECT * FROM x cases

Yes, I could, but do you have something specific in mind? As SELECT c_json FROM ... is probably just the same thing as the SELECT * ...? 🤔

Yes, I could, but do you have something specific in mind? As SELECT c_json FROM ... is probably just the same thing as the SELECT * ...? 🤔

I am thinking about very simple json sql select queries which involve the json columns with e.g. WHERE conditions working on the json column with e.g. json functions.
a few real world statements so we can be sure phpstan-dba does not detect syntax errors etc

as this is really useful as is, I will merge for now.
would be great you could add the JSON tests we talked about in a separate PR


fix(runtime-dom): ensure customElement handles empty props correctly. (fix #6361,#6895)

If a component wrapped with defineCustomElement() did not hae any props defined, and was passed any custom attribute (such as, in #6361, a data-v attribute), it would throw an error.
closes #6163,#6895

@antfu small ping? 😅


Queue blocking on .pop() when empty

Tantivy implements its pool of Searcher using a MsQueue.
By default, it populates the pool with num cpus searchers, the user borrows one to perform a search query,
and the query is pushed back into the queue on Drop.
In the context of a search server with a one thread per request model, this has the benefit of increasing throughput by avoiding everyone to try to perform computation on the index at the same time.
This relies heavily on the idea that .pop() blocks efficiently when the queue is empty, and returns when a searcher is released back into the pool.
According to the documentation, SegQueue's pop() does not offer the same semantics. It returns an error when the queue is empty. Is my understanding correct, or does it return an error only when the producer is dropped?
If so, is there something in crossbeam that can address my problem?
Granted, using a queue as a pool of object might be an abuse of queues. Feel free to point me to another solution/crate.

Why doesn't crossbeam-channel work for you?

Ah, yes that seems to be what I need. Thanks.


Improving the HOME Page and making the website responsive.

The cards, Newsletter and footer are not responsive and I will make it responsive and will surely improve the UI also
git@github.com:samriddhitiwary/SCROLLME--ECOMMERCE-WEBSITE.git

@vivekvardhan2810 Could please assign this issue to me under the GSSoC-ext and Hactoberfest label

hey kindly assign this to me i try my best to make it responsive and attractive...

@samriddhitiwary this issue was fixed, so i am closing this issue.


update-checks for Cake Tool only works with .NET 5 installed

as discussed on stream, currently the update check (from #460 ) is done using dotnet tool search cake.tool . dotnet tool search is only available on .NET 5.
While the code is not visibly failing, no version check is performed as long as .NET 5 is not available.
An alternative to checking existing versions using dotnet could be accessing either
https://azuresearch-usnc.nuget.org/autocomplete?id=cake.tool&prerelease=false or https://azuresearch-usnc.nuget.org/query?q=Cake.Tool&prerelease=false

@nils-a I am not going to assign this to the milestone, since this is related to #460, which is already part of the milestone.


Multiple mutations in one request

I have multiple mutations of the same kind that I want to execute in a single transaction. Can I do this?
`type Mutation {
editAuthor(author: String!, book: String!): Boolean
}
mutation updateDetails {
editAuthor(author: "Stephen King", book: "Castle Rock")
editAuthor(author: "Kurt Vonnegut", book: "Cat's Cradle")
}`

Yes, you can do that using aliases: https://graphql.org/learn/queries/#aliases
mutation updateDetails {
    king: editAuthor(author: "Stephen King", book: "Castle Rock")
    vonnegut: editAuthor(author: "Kurt Vonnegut", book: "Cat's Cradle")
}


Back 21

Explanation of why this is necessary as well as inspiration for the code:
https://github.com/MONEI/Shopify-api-node/issues/292

N.B. We are choosing to ignore the failing checks rather than configure and set up Travis for this repo at this time.

When will this be merged?


double-click not selecting @ in variable name

SQL Operations Studio Version: 0.23.6
Steps to Reproduce:
DECLARE @var int;
double-click on @var, only 'var' is selected

You can fix this by removing the @ character in the editor.wordSeparators setting. I would agree that this should probably be excluded by default though.

that worked. thanks!

Thanks folks. I've reached out to the VSCode team to see if we can override this on a per-language basis. Ideally we'd just handle the fact SQL uses the @var pattern but most other languages treat this separately. Will keep the issue open until we hear back. We could override the default if necessary, but I'd prefer a more targeted fix.

FWIW Python uses @ as the first character of a decorator name

I've created https://github.com/Microsoft/vscode/issues/39218 as a tracking issue for this. Ideally we should be doing this on a per-language basis rather than changing a global default. We can still consider changing this for all of Operations Studio but I think the "correct" solution is in that issue and is upstream of Ops Studio.

Please also investigate the '$. issue discussed in https://github.com/Microsoft/sqlopsstudio/issues/224 when resolving this issue.


Add a default kernel option to settings.json

Perhaps the wrong venue to request this, but it would be great to have a default kernel setting for the settings.json file.
see this SO question: https://stackoverflow.com/questions/67516550/vs-code-how-do-i-select-jupyter-kernel-for-a-workspace

Thanks for the suggestion we'll discuss this in our next triage meeting.


Update Helm release rancher to v2.6.9

This PR contains the following updates:

Package
Update
Change

rancher (source)
patch
2.6.8 -> 2.6.9

⚠ Dependency Lookup Warnings ⚠
Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information.

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Renovate Bot.

Renovate Ignore Notification
As this PR has been closed unmerged, Renovate will now ignore this update (2.6.9). You will still receive a PR once a newer version is released, so if you wish to permanently ignore this dependency, please add it to the ignoreDeps array of your renovate config.
If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened.


Strange formatting for monster boxes split across columns

I've noticed that the monster box formatting does not work correctly when broken across a column. I've attached my source and the PDF generated from it. Notice how the portion in the next column no longer uses red text for the languages and challenge rating.
My specific use case also involves being able to float monster boxes. In my actual code, this results in extra blank lines after the hlines, but I'm still working on reducing that to a reproducible example.
The PDF was generated with this command: pdflatex  -file-line-error   -interaction=nonstopmode "\input" main.tex
test.tar.gz

@kwvanderlinde Sorry for taking so long to respond. This issue and #97 are likely related.
The documents you attached to this issue, #97, and #98 are good minimum working examples (MWE). For the benefit of other maintainers, would you please create gists for them? That way we can read the code without unpacking the tarballs.

Unfortunately this is a known issue with tcolorbox. According to the tcolorbox 4.11 manual (p. 362):

If your text content contains some text color changing commands, your color will not survive the break to the next box. But, with the fontspec package and xelatex or lualatex, you can use \addfontfeatures{Color=mycolor} to add a font color which survives the break.

If you can use LuaLaTeX, then using its colour package will preserve colour across the break1:
\usepackage{dnd}
\usepackage{luacolor}

I confirmed LuaLaTeX/luacolor does fix colour across the break in your example document. However I don't use LuaLaTeX personally, so I don't know if this has other consequences. I compiled the example document with lualatex and it looks alright to my eyes.

https://tex.stackexchange.com/a/268920

Thanks for the info @benwebber! Unfortunately, I'm not a LuaLaTex or XeLaTax user either. I'll see if there is another approach I can take.

Even if I litter the description and \item definitions (from #99) with \color{titlered}, some text loses colouring:

For what it's worth, using LuaLaTeX is really easy. Just download luatex, depend on luacolor, and compile the document with lualatex:
tlmgr install luatex  # or `sudo apt-get install texlive-luatex`, etc.
lualatex --output-format=PDF main.tex

latexmk supports it too:
latexmk -pdflua main.tex

I think this is worth documenting as a known issue, and possibly loading luacolor with \ifluatex.

It is probably not what you are looking for, but if you instead use \monsterboxnobg, the header sections are in black and there is no color change to worry about.


Turn into Template

Can you turn these into templates, so people can copy/create a repository from them more easily? The setting is under the repository settings and looks like:

It just bypasses the need to download, remove origin, add new origin, reppush to private, etc, and makes it a one-button to clone into a private github org

Great idea - thanks @rorychatterton this is now updated