How do I load a new image?

Hi,
Please can someone give me a code snippet for loading a new client side image using the <input type="file"> control?  I see that there is one in the demo, but I'm not expert enough to extract the code for my own use.
Thanks in advance,
Martin

Here is the example that am using, you have to listen changes on your , and on change you can attach the selected image to your  :
        $("#your_input_photo").change(function () {
            readURL(this);
        });

        function readURL(input) {
            if (input.files && input.files[0]) {
                var reader = new FileReader();

                reader.onload = function (e) {
                    $('#your_img').attr('src', e.target.result);
                }
                reader.readAsDataURL(input.files[0]);
            }
        }

Hope it helps,
Reda Makhchan

Thanks very much, makhchan - you're a star.  Your solution got me there with just one small change; I think our implimentations are slightly different as I had to change the line:
 $('#your_img').attr('src', e.target.result);

for
image_cropper.cropper('replace', e.target.result);

Just wish I had asked the question a week ago to save time on the hundreds of ways I found to successfully make it NOT work!

You're welcome, happy that it was useful for you.
For me my cropper is on Modal, and I have another objet img in my form, that's why I'm using src for that image, about replace yes it do the job too.

I did that and it's works fine.
var URL = window.URL || window.webkitURL,
    blobURL;

if(URL){
  $inputImage.change(function () {
      $('#edit-crop-image').fadeIn(300);
      $('#wrap-crop').removeClass('no-upload');
    var files = this.files,
        file;

    if (files && files.length) {
      file = files[0];

      if (/^image\/\w+$/.test(file.type)) {
        blobURL = URL.createObjectURL(file);
        $image.one('built.cropper', function () {
          URL.revokeObjectURL(blobURL); // Revoke when load complete
        }).cropper('reset', true).cropper('replace', blobURL);
      } else {
        showMessage('Please choose an image file.');
      }
    }
  });
} else {
  $inputImage.parent().remove();
}


envoy: Bump envoy version to v1.27.5

This is mainly to address the below CVE
https://github.com/envoyproxy/envoy/security/advisories/GHSA-3mh5-6q8v-25wj
Related release: https://github.com/envoyproxy/envoy/releases/tag/v1.27.5

/test-backport-1.13


Broken link in Tellurium Documentation

Hi folks,
The Test Models link on the Tellurium Documentation Modules page is broken.

We have updated the documentation.


Update Plugin Artifacts Links for v0.141.3

Automated changes by create-pull-request GitHub action

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


Docker (testcafe/testcafe): Can't connect to browser if concurrency is 2 or higher

Are you requesting a feature or reporting a bug?
Bug.
What is the current behavior?
When using the Testcafe docker image (testcafe/testcafe), running the following command will fail:
docker run -v path/to/tests/:/tests -it testcafe/testcafe 'firefox' ./tests/ --skip-js-errors --target=http://example.com --concurrency 2
with the following error message:

Running tests in:

Firefox 57.0.0 / Linux 0.0.0

Adlinks
ERROR The Firefox 57.0.0 / Linux 0.0.0 browser disconnected. This problem may appear when a browser hangs or is closed, or due to network issues.
Type "testcafe -h" for help.

When using chromium, the error message is slightly different:

ERROR Unable to establish one or more of the specified browser connections. This can be caused by network issues or remote device failure.
Type "testcafe -h" for help.

Both browsers work fine locally, with concurrency.
What is the expected behavior?
The tests should be run concurrently and the test run should complete when concurrency is set.
How would you reproduce the current behavior (if this is a bug)?
$ docker pull testcafe/testcafe
$ docker run -v path/to/tests/:/tests -it testcafe/testcafe 'firefox' ./tests/ --skip-js-errors --target=http://example.com --concurrency 2

Specify your

operating system: Windows
testcafe version: from testcafe/testcafe
node.js version: from testcafe/testcafe

Hi @dgieselaar, make sure that you've specified the --no-sandbox flag for chromium. Unfortunately I can't reproduce you problem with concurrency. You might have to change Docker's virtual machine settings to increase available RAM size. Do you use native Docker for Windows or Docker Toolbox/Docker Machine?

I'm also getting it hanged up even with concurrency of 1 running it on browserstack. Downgraded @0.20.2 to @0.19.2 and it starts to works without hanging up.
testcafe 'browserstack:IE@11:Windows 7' e2e-tests/test-suite.js --concurrency 1 --app 'yarn start' -q -e -S -s e2e-tests/logs.
In Browserstack I can only see the log below 👇🏻
2018-05-31 07:27:44:0 REQUEST [2018-05-31 07:27:44:0] POST /session/bc1c8a199b3b85269883d0a6ae9461defc5585c5/url {"url":"http://<IP_ADDRESS>:60328/browser/connect/v0bAX~t"}
2018-05-31 07:27:44:0 RESPONSE {"state":"success","sessionId":"bc1c8a199b3b85269883d0a6ae9461defc5585c5","status":0,"value":null}

@AndreyBelym i have exactly the same issue for chrome (testcafe docker image and macOS operation system). if the reason in Docker's virtual machine configuration, an you please specify which parameters is okay at least for concurrency 3?

@iegor-zabielin, likely it's due to high resources consumption by browsers in a virtual machine, especially if you use concurrency. Unfortunately I can't give you a specific configuration which is guaranteed to run fine. Try to increase available RAM size by using the --shm-size option:
docker run --shm-size=1gb


accuracy output wrong when having multiple binary outputs

There are use cases where it makes sense to have multiple binary outputs. Models like this can be currently set up in Keras using output_dim = dimension of data and choosing 'binary_crossentropy' as loss function. When running a model like this the following lines of code cause problems (models.py starting at line 525):
        # set class_mode, for accuracy computation:
        if self.output_shape[-1] == 1:
            class_mode = 'binary'
        else:
            class_mode = 'categorical'
        self.class_mode = class_mode

        if class_mode == 'categorical':
            train_accuracy = K.mean(K.equal(K.argmax(self.y, axis=-1),
                                            K.argmax(self.y_train, axis=-1)))
            test_accuracy = K.mean(K.equal(K.argmax(self.y, axis=-1),
                                           K.argmax(self.y_test, axis=-1)))
        elif class_mode == 'binary':
            if self.loss.__name__ == 'categorical_crossentropy':
                warnings.warn('Your model output has shape ' + str(self.output_shape) +
                              ' (1-dimensional features), but you are using ' +
                              ' the `categorical_crossentropy` loss. You ' +
                              'almost certainly want to use `binary_crossentropy` instead.')
            train_accuracy = K.mean(K.equal(self.y, K.round(self.y_train)))
            test_accuracy = K.mean(K.equal(self.y, K.round(self.y_test)))

With multiple outputs, output_shape [-1] would not be equal to 1 and 'binary' would have to apply. An easy hack is to just always set class_mode = 'binary' when dealing with a model with multiple binary outputs. Obviously, it will then break when there really is categorical data.
A related issue is that sometimes it would even make sense to have multiple categorical outputs (multiple softmax). It doesn't seem like Keras has been designed with this possibility in mind. It would be useful to be able to feed as input a 2-D array of integers in the range [1,number_categories] where each column of the array represents an output. Is that something that you are thinking about adding?

It doesn't seem like Keras has been designed with this possibility in mind.

I think I'm not understanding something.
If you have:
predictions1 = Dense(some_num, activation='softmax')(everything_before)
predictions2 = Dense(some_num, activation='softmax')(everything_before)
model = Model(inputs=whatever, outputs=[predictions1, predictions2])
model.compile(losses=['categorical_crossentropy', 'categorical_crossentropy'])

Doesn't this do two categorical outputs, two softmaxes, and expect two sets of y_pred variables?


Is this project still actively being developed?

Hi!
I'm super-excited about trying out Zarr with Rust! I was just curious if you plan to continue developing this project?
(Absolutely no pressure! I totally know how hard it can be to sustain maintenance effort with multiple projects!)
(A tiny bit of background on me: I've been using Zarr in Python for several years. I'm only just learning Rust now. So I'm definitely not good enough with Rust to help yet. But I might be able to help with this Zarr Rust project if I continue learning Rust!)

I am also keen to follow this effort. I see a lot of potential here. We could even bind to this implementation from Python if there are big performance benefits.

Python bindings are in progress, generalizing the python bindings that already exist for the n5 library this evolved from. I don't know if speed will be a factor given there's certain to be more eyes on the reference python impl, but I'm mostly motivated in having a single, consistent backend for rust/ffi/cli/wasm and python, which has proved valuable for me for n5.

For anyone watching this, I have a very rough end-to-end implementation of the accepted ZEP1 zarr v3 spec here, to be discussed here: https://github.com/zarr-developers/zarr-specs/discussions/244
I wouldn't anticipate getting significant speed gains out of a rust implementation as the slowest bits are going to be IO and (en|de)coding blocks, which in "python" are practically written in native code. But as said, a single implementation which could be bound to from different frontends is valuable, and trying to push the envelope on rust so we don't have to touch any C++ would be great.

Sounds awesome, thank you!
On the topic of speed: I definitely agree that, when reading a single chunk, there are unlikely to be any speed increases.
But, when the user requests multiple chunks, my understanding is that zarr-python (when used on its own) currently reads chunks in series, and the most common way to parallelise Zarr in Python is to use zarr-python plus dask. But dask is an enormously heavy-weight bit of kit, and in my limited experience, often spends hundreds of milliseconds computing its plan of action. (Which rules it out for my use-case of loading Zarr on-the-fly during ML training).
So I guess my naive hope was that a Rust implementation of Zarr might read and decompress chunks in parallel, without dask (similar to how tensorstore , TileDB, and caterva parallelise reads).
I only mention this for context, and to test if my understanding is correct or not! I don't mean to put you under pressure to build a parallelised Zarr reader!!! I'm enormously grateful for all the work you've done already!

FYI, the same capability - parallel chunk fetching and decompression - is being discussed in zarr python (https://github.com/zarr-developers/zarr-python/issues/1398). There is a debate going on over whether the main performance opportunity is from

asynchronous fetching of chunks from a remote store (already supported in python somewhat via fsspec) - doesn't necessarily require true parallelism, just async concurrency
actual parallel (e.g. multithreaded) decompression of chunks

I'd be keen to get some evidence one way or another.

Zarr.js is basically the style api for getting chunks I would want to use from a rust implementation, where there is control over the fetching of the chunks via concurrency.

When writing zarr3, I have so far stayed synchronous for reasons of simplicity. Because rust doesn't have an async runtime built-in, library authors need to decide which async library's ecosystem all of their users will have to buy into, which is a decision I was happy to punt on while trying to bash out an exploratory prototype...

When writing zarr3, I have so far stayed synchronous for reasons of simplicity, as it was intended as a "does the spec work for strict languages" exploration rather than a production library from the outset. Because rust doesn't have an async runtime built-in, library authors need to decide which async library's ecosystem all of their users will have to buy into, which is a decision I was happy to punt on while trying to bash out an exploratory prototype...

Makes a ton of sense, sorry if I came off annoying! Just thinking out loud about the future, tons of excitement how this could be built upon


Fix kick off

I can confirm that with the updated PR the instrument finally works as expected so simply getting rid of kick_off this way is probably a good idea.


New-MgServicePrincipal parameters not in sync with properties listed in the API reference doc

The current PowerShell reference doc for New-MgServicePrincipal shows that the PublisherName name is supported but it is not listed in the API reference doc.
The PowerShell reference doc needs to be updated.
Related issue: https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/2520

Hey @csmulligan,
This is a bug on the pipeline responsible for doing the updates. I am currently troubleshooting the issue.
Thanks


Does Homebrew installed rbenv supported?

I am using Mac OS X as server and not Linux. I am wondering if using Homebrew to install rbenv, will it be supported? I can't seems to get it done no matter what rbenv_custom_path I use
/usr/local/bin/rbenv
/Users/mech/.rbenv/shims/ruby
/Users/mech/.rbenv/versions/2.1.4/bin/ruby

If I set as this:
set :rbenv_ruby, '2.1.4'
set :rbenv_custom_path, '/Users/mech/.rbenv'

I am unable to make it work with these:
set :rbenv_custom_path, '/usr/local/Cellar/rbenv/0.4.0'
set :rbenv_path, '/usr/local/Cellar/rbenv/0.4.0' # Is there such a thing?

I always will encounter this:
bash: /Users/mech/.rbenv/bin/rbenv: No such file or directory

It is quite obvious that I do not have this path: ~/.rbenv/bin/

@mech Try this: ln -s /usr/local/Cellar/rbenv/0.4.0/bin ~/.rbenv/bin
(I used this for test deploying to a development osx machine https://github.com/standout/rails_db_dump_restore/blob/master/test/dummy/config/deploy.rb, so that I could make sure my cap db:pull task works. :)

I had to set
set :rbenv_prefix, "RBENV_ROOT=#{fetch(:rbenv_path)} RBENV_VERSION=#{fetch(:rbenv_ruby)} /usr/local/bin/rbenv exec"
in my deploy.rb - this way its not tied to a version specific rbenv, if Homebrew updates it

@scmx said (thank you) .../0.4.0/... but my version is 1.1.1
Check your version with ls /usr/local/Cellar/rbenv/
This was the answer for me:
ln -s /usr/local/Cellar/rbenv/1.1.1/bin ~/.rbenv/bin
I don't know if this is the best long-term solution (what happens when rbenv is updated?) but it works now.
@dombarnes, that didn't work for me. I got
bundle stderr: bash: /usr/local/bin/rbenv: No such file or directory even though /usr/local/bin/rbenv symlinks to ../Cellar/rbenv/1.1.1/bin/rbenv
I'm using ZSH, maybe that's why? @mech, are you using ZSH?


Authentication

got Authentication service working

I've not commented on callingNumbers and numberService - some of the comments from the first PR still apply.

I've created a new pull request called ProxyAndAuthUpgrade which covers the api calls with token service. Done this to solve merge issues.


Add support for >, <, ! and type

Closes #27

Thanks for the contribution! I'll be publishing it soon alongside a better filters guide.


Pack wallet extensions for E2E in a single archive

After trying to adapt Eternl for E2E for a while, I think we should change our approach to extension data packing. Instead of packing each extension state separately, we should maintain a single archive.
One reason is that "$CHROME_PROFILE"/Default/Extension\ State is shared between the extensions, so it's hard to keep the state consistent. Another is that there is some state we want to keep that does not belong to any extension.
The settings file is going to occupy about 1.6 MB, which I think is acceptable, because my best attempt to pack Eternl separately resulted in having an archive of roughly the same size (because it stores the settings in indexeddb blob)

@klntsky I believe this was resolved in the E2E rewrite PR: https://github.com/Plutonomicon/cardano-transaction-lib/pull/1075


Work on fixing address clashing issue

https://github.com/xd009642/tarpaulin/issues/769

Fixes #769


.customview() method removed

Are there any workarounds? Anything that does the same thing?

Did you read the release notes? The one you were using was deprecated months ago.
There's a second variation that accepts two parameters.

See the docs for more info: https://github.com/afollestad/material-dialogs#custom-views


Installed assertive.types manually, but when installing Rnssp, vignette build failed

I was able to download and install assertive.base, assertive.properties, and assertive.types from CRAN archives and install them manually. I also had to install ggside separately. When I tried to install Rnssp after that, I was able to install it without vignettes, but not with vignettes. When I tried to install with vignettes, I got the following error.
> devtools::install_github("cdcgov/Rnssp", build_vignette = TRUE)
Downloading GitHub repo cdcgov/Rnssp@HEAD
Skipping 1 packages not available: assertive.types
── R CMD build ───────────────────────────────────────────────────────────────────────────
✔  checking for file 'C:\Users\ajstamm\AppData\Local\Temp\RtmpkfB0xK\remotes4bbc78167a45\CDCgov-Rnssp-afbcb80/DESCRIPTION' ...
─  preparing 'Rnssp': (533ms)
✔  checking DESCRIPTION meta-information ...
─  installing the package to build vignettes
E  creating vignettes (12.9s)
   --- re-building 'Rnssp_intro.Rmd' using rmarkdown

   Quitting from lines 54-55 [load] (Rnssp_intro.Rmd)
   Error: processing vignette 'Rnssp_intro.Rmd' failed with diagnostics:
   cannot open the connection
   --- failed re-building 'Rnssp_intro.Rmd'

   --- re-building 'Rnssp_rstudio_addins.Rmd' using rmarkdown
   --- finished re-building 'Rnssp_rstudio_addins.Rmd'

   --- re-building 'Rnssp_text_mining.Rmd' using rmarkdown

   Quitting from lines 51-52 [load] (Rnssp_text_mining.Rmd)
   Error: processing vignette 'Rnssp_text_mining.Rmd' failed with diagnostics:
   cannot open the connection
   --- failed re-building 'Rnssp_text_mining.Rmd'

   --- re-building 'Rnssp_trend_alert_detection.Rmd' using rmarkdown

   Quitting from lines 43-45 [load] (Rnssp_trend_alert_detection.Rmd)
   Error: processing vignette 'Rnssp_trend_alert_detection.Rmd' failed with diagnostics:
   cannot open the connection
   --- failed re-building 'Rnssp_trend_alert_detection.Rmd'

   SUMMARY: processing the following files failed:
     'Rnssp_intro.Rmd' 'Rnssp_text_mining.Rmd'
     'Rnssp_trend_alert_detection.Rmd'

   Error: Vignette re-building failed.
   Execution halted
Error: Failed to install 'Rnssp' from GitHub:
  ! System command 'Rcmd.exe' failed

Dear @ajstamm
Thank you for opening this issue. It is understandable that installing Rnssp with vignettes will fail as they require user's credentials to build successfully. Therefore, vignettes' builds can not be completed during package installation.
Please proceed to its installation without building the vignettes.
Renders of the Rnssp vignettes are available on the Rnssp online documentation.

Dear @ajstamm ,
We just released Rnssp v0.3.0 which among other features, updates, and , resolves the assertive.types dependency issue.
Please, feel free to check the new release note for an exhaustive list of the novelties.
You may install the newly released version by running:
devtools::install_github("cdcgov/Rnssp")

If you still want to build Rnssp with vignettes, here is how to do it with this version:

Create an  NSSP user profile and call it myProfile. You can do it with the create_profile() function of the Rnssp package (myProfile <- create_profile()). Then enter your BioSense credentials.
Save the myProfile object to your home directory as an .rds file (saveRDS(myProfile, "~/myProfile.rds")) and as an .rda file (save(myProfile, file = "~/myProfile.rda)).
Then build the package with vignettes.

Thank you for your interest in this project and for your contribution.

I was able to install the package and create a profile, but I still can't install vignettes. My error:
> devtools::install_github("cdcgov/Rnssp", build_vignettes = TRUE)
Downloading GitHub repo cdcgov/Rnssp@HEAD
── R CMD build ────────────────────────────────────────────────────────────
✔  checking for file 'C:\Users\stamma1\AppData\Local\Temp\Rtmp6tIN7l\remotes23b45d0f729\CDCgov-Rnssp-f09bedb/DESCRIPTION' (341ms)
─  preparing 'Rnssp': (659ms)
✔  checking DESCRIPTION meta-information ...
─  installing the package to build vignettes
E  creating vignettes (23.9s)
--- re-building 'Rnssp_intro.Rmd' using rmarkdown
--- finished re-building 'Rnssp_intro.Rmd'
--- re-building 'Rnssp_rstudio_addins.Rmd' using rmarkdown
--- finished re-building 'Rnssp_rstudio_addins.Rmd'
--- re-building 'Rnssp_text_mining.Rmd' using rmarkdown
--- finished re-building 'Rnssp_text_mining.Rmd'
--- re-building 'Rnssp_trend_alert_detection.Rmd' using rmarkdown
Quitting from lines 73-76 [hhs] (Rnssp_trend_alert_detection.Rmd)
Error: processing vignette 'Rnssp_trend_alert_detection.Rmd' failed with diagnostics:
no applicable method for 'group_by' applied to an object of class "list"
--- failed re-building 'Rnssp_trend_alert_detection.Rmd'
SUMMARY: processing the following file failed:
'Rnssp_trend_alert_detection.Rmd'
Error: Vignette re-building failed.
Execution halted
Error: Failed to install 'Rnssp' from GitHub:
! System command 'Rcmd.exe' failed

Hi @ajstamm ,
Looking at your log, I can see that the Rnssp_intro.Rmd vignettes builds successfully. Have you also saved your myProfile object in your home folder as myProfile.rda? If not, do it with save(myProfile, file = "~/myProfile.rda") and try it again. You will need to have both the myProfile.rds and myProfile.rda  files saved in your home directory to successfully build Rnssp with vignettes.
Please, let me know how it goes.
Best,


Add check of cert when uploading root.json

We should check that the name in the cert matches the provided GUN when a user uploads a root.json.

@endophage is this still not true?

I believe so. I don't see a check for the certificate being correct within the server validation code.

@endophage It seems like the keystoremanager already sort of has this:  https://github.com/docker/notary/blob/master/keystoremanager/keystoremanager.go#L217
However, it to be fine with the root.json having some invalid certificates, so long as there is at least one valid one?  Is the root.json allowed to have invalid certs?  Even certs with the wrong GUN?
(Although as per #181 maybe we should try to unify some of this code?  Is there a reason the client should not check all the things that the server checks?)

Is this for a security purpose, or just ease of use?
AFAICS if the client to the Notary server is properly authorized to upload for a specific GUN, and they want to upload garbage to the server to screw up their repo, well, we can let them; the important thing is that garbage served by the Notary server to clients (whether caused by a malicious server operator or by a malicious uploader) can not attack the clients (e.g. by planting trusted certificates for different GUN, which is what the keystoremanager bit quoted above prevents).
That’s not to say that code shouldn’t be added when it improves “only” ease of use but not security; I’d just like it to be clear which of these is being addressed (both for the general design and for individual lines of code). Otherwise, sooner or later, someone will add a $security_feature which, for security, relies on an $ease_of_use_functionality, and later someone else will improve, replace or otherwise remove the $ease_of_use_functionality, breaking $security_feature.

@mtrmac I'm of the opinion that the server should not accept data that a client will not be able to successfully pull. Especially in the case where the publish action essentially does a rebase, this could leave a repository in a state where manual cleanup is required to enable the owner to continue to be able to publish. Given I also maintain Docker's instance of Notary, I have an aggressive interest in data integrity and cleanliness.
@cyli It would be better if all the certs have the right GUN. Failing that, as long as we only use certs with the correct GUN to validate signatures (and I'm not sure we're consistent about this but we get away with it by doing root validation in 2 places) we should be OK.

@endophage Ok.  I am happy to change that function, and to use it in the server check too (yay same code in both places!) if you don't think there'd be any backwards compatibility issues.  (if the user had some broken repo already that they wouldn't be able to pull or push anymore)

@cyli only people that have manually messed with their repo would be in a bad state afaik, and I don't have much pity for them...


Can't train when a column name is 'next'

So, I was training a tensorflow model using keras api and one of the column names that the dataframe had was 'next'. Running model.fit on the data threw the following error:
RuntimeError: Data adapters should be mutually exclusive for handling inputs. Found multiple adapters [<class 'tensorflow.python.keras.engine.data_adapter.TensorLikeDataAdapter'>, <class 'tensorflow.python.keras.engine.data_adapter.GeneratorDataAdapter'>] to handle input: <class 'pandas.core.frame.DataFrame'>, <class 'pandas.core.series.Series'>
The whole issue is recreated below:
import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from tensorflow.keras import Sequential
from tensorflow.keras.layers import Dense

X = pd.read_csv('X_train_1.csv', index_col=0) # inputs of the training set
y = pd.read_csv('y_train.csv', index_col=0, squeeze = True)
X.head()

Output:

X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.20, random_state=13)
n_words = X_train.shape[1]

model = Sequential()
model.add(Dense(5, input_shape=(n_words,), activation='relu'))
model.add(Dense(1, activation='sigmoid'))
# compile network
model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['accuracy'])
# fit network
model.fit(X_train,y_train)

Error Traceback:
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-13-73e838216e84> in <module>
      7 model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['accuracy'])
      8 # fit network
----> 9 model.fit(X_train,y_train)

~\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\keras\engine\training.py in fit(self, x, y, batch_size, epochs, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, initial_epoch, steps_per_epoch, validation_steps, validation_batch_size, validation_freq, max_queue_size, workers, use_multiprocessing)
   1048          training_utils.RespectCompiledTrainableState(self):
   1049       # Creates a `tf.data.Dataset` and handles batch and epoch iteration.
-> 1050       data_handler = data_adapter.DataHandler(
   1051           x=x,
   1052           y=y,

~\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\keras\engine\data_adapter.py in __init__(self, x, y, sample_weight, batch_size, steps_per_epoch, initial_epoch, epochs, shuffle, class_weight, max_queue_size, workers, use_multiprocessing, model, steps_per_execution)
   1097       self._steps_per_execution_value = steps_per_execution.numpy().item()
   1098
-> 1099     adapter_cls = select_data_adapter(x, y)
   1100     self._adapter = adapter_cls(
   1101         x,

~\AppData\Local\Programs\Python\Python38\lib\site-packages\tensorflow\python\keras\engine\data_adapter.py in select_data_adapter(x, y)
    964             _type_name(x), _type_name(y)))
    965   elif len(adapter_cls) > 1:
--> 966     raise RuntimeError(
    967         "Data adapters should be mutually exclusive for "
    968         "handling inputs. Found multiple adapters {} to handle "

RuntimeError: Data adapters should be mutually exclusive for handling inputs. Found multiple adapters [<class 'tensorflow.python.keras.engine.data_adapter.TensorLikeDataAdapter'>, <class 'tensorflow.python.keras.engine.data_adapter.GeneratorDataAdapter'>] to handle input: <class 'pandas.core.frame.DataFrame'>, <class 'pandas.core.series.Series'>

Renaming column and training
X_train = X_train.rename(columns={'next': 'new_column'})
model.fit(X_train,y_train)

Output:
25/25 [==============================] - 0s 1ms/step - loss: 0.7535 - accuracy: 0.4763

<tensorflow.python.keras.callbacks.History at 0x275388cc520>

@tariqph ,
Can you please take a look at this SO link with the similar error.Also please re-name the column and test your code.It helps.Thanks!

@tariqph , Can you please take a look at this SO link with the similar error.Also please re-name the column and test your code.It helps.Thanks!

Yes, renaming the column does work as I have shown in the post above. Just odd that I can't use this particular word as a column name.

@tariqph ,
The next() function returns the next item in an iterator. You can add a default return value, to return if the iterable has reached to its end.
As suggested please try to re-name the column.It helps.Thanks!

The column name change works as stated before. Does it mean that this is something to do with the implementation and column name 'next' can never be used in this context?

@tariqph ,
As stated above next() is a function which returns the next item in an iterator.If we provide same name it will leads to ambiguity.So please provide different name which helps to resolve the issue.Thanks!


Update portuguese translations

Hello!
The motivation for this PR is to translate the language 'pt-pt' and 'pt-br' to keep up-to-date with the English version. I updated the Brazilian version in the best way I know, to mitigate the gap between them ('pt-br' and 'en').
This isn't the best benchmark since languages can change drastically between them, but... :)

The English translation file currently has 422 lines.

Before:

Portuguese (Portugal) -> 301 lines
Portuguese (Brazil) -> 183 lines

After:

Portuguese (Portugal) -> 419 lines
Portuguese (Brazil) -> 419 lines

I've not tested the length of the word/sentences on "a screen" but I believe they are roughly the same as in English, but please let me know if something needs to be changed!
Thank you very much!

Hello!
I misspelled the word "mnemónica" in the Brazilian translation. Updated!


Ng serve should compile only the lazy loaded module change and not the whole app

Please provide us with the following information:

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Mac OSX: El Capitan

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:
angular-cli: 1.0.0-beta.18
node: 6.3.0

Repro steps.
Create Module to lazy load.
Change code and save
Wait for ng serve to reload
The log given by the failure.
It does not fail. However the time to reload for a complex app does not seem to be reduced between an app without lazy loading and an app with lazy loading.
I would be great if any modification to a component into a lazy loaded module would trigger only the compilation of the changed module and not the whole app.
I'm not sure if it's already the case.
Mention any other details that might be useful.

Thanks! We'll be in touch soon.

We do this now.


Fixed without GPU using cpu

i was intentionally set default gpu='0' since cpu could be extremely slow on these networks

close this PR as per @mli 's comment

@mli I have to say that that's not user friendly :( even simple warning could prevent users from hassle figuring out what's wrong with them.. I think that's why @linkerlin made PR at first place..

@christallire i think you are right. we can use cpu as default but generate a warning such as "you'd better to use gpu"


Add a page for super admin usage

https://casbin.org/docs/en/rbac-with-domains#comment-5280258735

Fixed by: https://github.com/casbin/casbin-website/pull/203


Documentation

Please do the documentation (auto doc included) part of the project.

Done and generated.


Users retrieving different versions of the solution after an update for a certain time

Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
None
What browser(s) / client(s) have you tested

[ ] 💥 Internet Explorer
[X] 💥 Microsoft Edge
[X] 💥 Google Chrome
[ ] 💥 FireFox
[ ] 💥 Safari
[ ] mobile (iOS/iPadOS)
[ ] mobile (Android)
[ ] not applicable
[ ] other (enter in the "Additional environment details" area below)

Additional environment details
SPFx

1.16.1

Browsers

Edge beta: 116.0.5845.187
Chrome: 117.0.5938.92

Describe the bug / error
For a while now, we have been experiencing issues when updating a solution on the app catalog and users retrieving older versions of the solution.
Some users instantly retrieve the new version, while others are left with the older version for hours.
Example - User 1

Example - User 2

As you noticed, the two IDs are different for the loaded files. It happens at random, meaning that user 1 can retrieve the other file all of a sudden and, on the next refresh the old file.
It happens both with the CDN and without it.
Steps to reproduce

Create a SPFx
Bundle and package it
Upload it to SP
Test it out on a page
Do an update and package it
Upload it and see if the issue occurs

Expected behavior
Once the solution has been updated in the app catalog, I would like the files are updated for all instances at once.

@estruyf - could you please share correlationId for both working and non working requests? Also would be nice if you could share the tenant url.

Hi @AJIXuMuK thank you for looking into it.
It is happening on various tenants, but using the following to reproduce it: involvstaging
User 1
Loads file: involv-property-tagger-application-customizer_f34c797ce1f86115b22c.js
Request ID: 112adea0-8009-7000-5793-73c9ab2b33be
User 2
Loads file: involv-property-tagger-application-customizer_a572ffd5e169babd1eb7.js
Request ID: 53f2dca0-80e8-7000-4fbb-f225cdb08663

Here is a video of a couple of refreshes where it loads the old file at the last refresh. This is what happens randomly.
https://github.com/SharePoint/sp-dev-docs/assets/2900833/4cdc55c0-cc61-4e3f-acb2-acd218da9464
Also, when updating the files, the customer mentioned that the localization strings file could not be retrieved.

This started happening today for us and has occurred for several tenants for one of our SPFX web parts. I'm able to see specific files that are being requested, so I am manually creating those files and deploying them to our CDN. This is an effective workaround for now. I'm assuming these are older copies of the current js file or control strings file (seen both missing in some cases) but I don't know for sure.

This is still a significant problem. We are seeing the localized strings files being affected across multiple customer tenants as well as the main solution files.
I'm really concerned about how this is going to impact future deployments. What is happening here?

It is getting worse as it seems to take longer to provide the right files.

@estruyf - sorry for the delay.
Thanks for sharing the correlation ids.
We're working on checking what's going on.

@estruyf - could you also send the correlation Ids for the page load itself (both working and not working).
I need this because that's where the component's manifest with loader config is stored.
Thanks!

Working page:
Request-Id: 26b6e2a0-40f9-7000-5793-7961136fdd89

Failing page:
Request-Id: 23b6e2a0-f036-7000-5793-7bff3c6faf6b

Update: we have found the reason for the behavior.
There were some additional fixes needed that are still rolling out.
The issue should be fixed by end of the next week.

The fix has rolled out worldwide


Intersmash does not support Infinispan operator latest version

Is your feature request related to a problem? Please describe.
Intersmash provisioning tooling currently supports Infinispan operator channel 2.3.x.
This channel has been the latest until recently, and is bound to Infinispan 14.z.
The related community integration tests are currently failing since the default channel (i.e. stable) is now deploying Infinispan 15.x.
The failing test is signaling that:

Intersmash implementation for Infinispan provisioning is not aligned with latest community version, but it is aligned with latest productized version (i.e. Red Hat DataGrid, which is based on Infinispan 14.z")
The Intersmash e2e tests should configure the supported Infinispan Operator channel to match 2.3.x explicitly

Describe the solution you'd like

short-term: freeze supported InfinispanOperator channel version to 2.3.x, make e2e tests work again, freeze documentation and be aligned with the support for productized latest
medium-term, in parallel: evaluate the best choice for allowing the provisioning tooling to support latest in both configuration, i.e. when provisioning either the community or the productized versions, e.g. by splitting the Infinispan provisioning implementation to support both the product and the community latest versions, in a similar (but most likely more easy) way it's done for Keycloak/RH-SSO.

Describe alternatives you've considered
See above
Additional context
N/A

Now the prod variant of the e2e tests fail similarly, so one more reason to let the Infinispan provisioning implementation support the latest version.


fix test coverage

use single tests as workaround for Issue 16397
fix single tests (broken sed command)

Only running the single tests (against a libphobos2.a w/o -cov) means we're no longer gathering coverage that happens from executing unittests of other modules, e.g. std.net.curl might use std.conv.
That seems actually like a saner model to work with, but might be problematic for unittests in external files (do we have that in phobos). That also explains why coverage for some modules decreased a bit.

Btw in these modules it decreases the coverage:

and in these it increases the coverage:

(not a complete screenshot)
I will have a look if coverSetMerge can help here to get the best from both worlds.

I will have a look if coverSetMerge can help here to get the best from both worlds.

That doesn't sound like the right approach.
If the change increases coverage in some places but decreases it in others, isn't it essentially replacing one broken  solution with another broken solution?

That doesn't sound like the right approach.

Better ideas are welcome!

If the change increases coverage in some places but decreases it in others, isn't it essentially replacing one broken solution with another broken solution?

Yes.

@rainers Perhaps you could help us out with this one?

How on earth would only running the tests from a module when measuring its code coverage increase its code coverage? Does it have something to do with having fewer template instantiations? Regardless, it makes seem like there's a problem with the coverage analyzer.

@rainers Perhaps you could help us out with this one?

I'm not sure I can. I think Martin's assessment in https://issues.dlang.org/show_bug.cgi?id=16397#c1 sounds correct. I don't have a solution to that.
Always generating coverage instrumentation of templated code will only work if you cover all linked libraries, though. For example, coverage from druntime modules might leak into the report, just as well as that it might provide template instances without coverage instrumention.

@wilzbach, @CyberShadow, @jmdavis, @rainers
Seems like noone read https://github.com/dlang/phobos/pull/5579#issuecomment-313875232, explains the decrease in some places. We no longer account for coverage as a collateral of running other module's tests. I think that's a sane behaviour but might run into issues for externalized tests such as std.regex.internal.tests.

Seems like noone read #5579 (comment), explains the decrease in some places.

The decrease makes sense to me (e.g. the tests for SysTime are primarily in std.datetime.timezone because of how tied they are to the time zones, and they were all in one module originally, so a decrease in std.datetime.systime's coverage wouldn't surprise me). It's the increase that doesn't make sense to me.

It's the increase that doesn't make sense to me.

Read the explanation in the bug report https://issues.dlang.org/show_bug.cgi?id=16397#c1, the linker picked non-instrumented template instantiations in various places.

Read the explanation in the bug report https://issues.dlang.org/show_bug.cgi?id=16397#c1, the linker picked non-instrumented template instantiations in various places.

Ah, okay. That makes sense. LOL. Some of this stuff is just way more complicated than it seems like it should be.

Seems like noone read #5579 (comment),

Sorry Martin, you're right, I only skimmed over the explanations. At the moment I was a bit overwhelmed and didn't grok it.
I guess then we have two ways going forward:

Change DMD's coverage behaviour for external modules as described in issue 16397
Improve direct test coverage and don't rely on other modules' tests for coverage
Build a libphobos.a with -cov so that we measure indirect test coverage as well? Would that work?


Consistently initialise JavaScript using govuk namespaced data-module attributes

We want to change the way that JavaScript in GOV.UK Frontend is initialised against elements in the DOM.
We're doing this to help users avoid conflicts in their application.
This would be a breaking change in the 3.0.0 release.

📖  Read the proposal
💬 Add comments to this pull request, or on the proposal itself
✉ If you prefer, send feedback to<EMAIL_ADDRESS>👍 You can also +1 this pull request if you agree with the proposal and have no other feedback to give

We've been thinking of doing something like this on GOV.UK.

This is also consistent with our guidance on extending and modifying components: https://design-system.service.gov.uk/get-started/extending-and-modifying-components/


SQL request with API from outside local

Good morning,
This is the SQL request that show me as example my custom CARTO to read private: (fake api-key)
https://<IP_ADDRESS>:3000/user/icetorm/api/v2/sql?q=SELECT * FROM viales&api_key=1231324532132132132135432132132123
This is the SQL request that show me as example your CARTO to read private: (fake api-key)
https://icetorm.carto.com/api/v2/sql?q=SELECT * FROM viales&api_key=121151132121243123123151231321232132
The first one doesn't load, but the second one as normal it works perfectly. Could it be an error installing CARTO? I need it to configure QGIS cartodb plugin to comunicate with my carto domain.
Thanks for your help and your time.

Hey again @icetorm!
Throwing some ideas here:

Have you started the SQL API? You can find all the commands you need to get all the CARTO components running here: http://cartodb.readthedocs.io/en/latest/run.html#running-all-the-processes

If it is started, can you access your datasets from the CARTO Editor? If you can, you might want to check the developer tools of your browser, specially the Network tab, while you load the dataset. You'll see there the request that the application does to the SQL API to retrieve your data. It could be useful for you to take a look at how the request is performed, although the sample request you're using looks good to me at first sight.

Hi again @iriberri ^^
Well i think that i explained wrong my issue.  I want to connect QGIS to a local CARTO, thats why i'm using QGIS plugin (QGISCARTODB). Carto can supply requests to SQL API  because he loads and shows the dataset perfectly. The problem is that when i issue request of reading/writing from outside with the API KEY.
If you can throw me more ideas to help me detect the source of this issue, i would greatly appreciate it.
Thanks for your time and help.

Oh, thanks for the clarification!
While looking at the plugin docs, I saw that you already opened an issue in the plugin project: https://github.com/gkudos/qgis-cartodb/issues/46. Unfortunately we can't help you much from here because the pulgin wasn't developed by us, but by our partners at GKudos.


test: run linux package tests nightly against latest contrib main

This PR enables nightly testing of the otelcol-contrib linux packages based on the latest main branch version of otelcol-contrib built in https://github.com/open-telemetry/opentelemetry-collector-contrib.
This change was made possible by splitting the otelcol-contrib gorelease config into 2 separate files, one for building and one for packaging/archives/docker images/etc.
(The split goreleaser build is a goreleaser pro feature)
Using the split building approach was the only viable option to achieve this. I did lots of research on this, it was talked about in the Collector SIG meeting and I also asked the GoReleaser folks for their help.
Consequences of this change:

better testing
slightly less maintainability of the goreleaser files and generator code for otelcol-contrib since they have special handling now

Fixes #659

I have re-run the CI but it keeps failing, can you take a look? Do you think it is related to the 2.4.6 update?

yes i think it's related somehow. there were some changes to folder naming that i need to adapt to I believe. This will also be needed on the renovate PR

Maybe i will wait until we merge the updated goreleaser version in main. That will require some manual changes as well I think. Maybe you could retrigger CI there and then let's see what happens.
PR link: https://github.com/open-telemetry/opentelemetry-collector-releases/pull/752

@mx-psi i believe i'm done with all the review comments and refactoring etc.
would appreciate a re-review when you have time :)

you mean merging this only after the next release?
doing a release on my fork sounds good

you mean merging this only after the next release?

Yep

doing a release on my fork sounds good

Alright, if you find the time, I suppose it will fail when pushing to the Docker registry but if it passes until then that's a good test for me

Sounds good, I'll do the test release next week

i tried to do a test release but it's hard to do with so many otel specific things. Even after removing the container registry login steps, goreleaser needs the pro key for example. But here are the test runs that ran until the requirement for the goreleaser-pro key:
Builder
Core
Contrib
k8s
OTLP
In any case, this PR doesn't touch any of the release pipelines anyways.

@mx-psi so now it was still merged before the collector release 😅

@mx-psi so now it was still merged before the collector release 😅

Sorry, should have said something here before merging: I spoke with Antoine (this week's release manager) about this and he was fine to merge this before the release :smile:

ah okok 😄


editor underline button gets in wrong state in Chrome

This issue was imported from Closure Library's previous home at http://closure-library.googlecode.com
The link to the original issue is:
https://code.google.com/p/closure-library/issues/detail?id=144

This issue is being closed as a preparation step before archiving the repository.  See the README for more detail.


ntlk unsafe deserialization vulnerability

NLTK through 3.8.1 allows remote code execution if untrusted packages have pickled Python code, and the integrated data package download functionality is used. This affects, for example, averaged_perceptron_tagger and punkt.

Resolved rhrough #3290 and #3307, so that NLTK 3.9.1 is no longer vulnerable.


Directly handle global keys In ViewFrame

Codecov Report

Merging #83 (632d0bd) into main (9d63b21) will increase coverage by 0.08%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #83      +/-   ##
==========================================
+ Coverage   87.89%   87.97%   +0.08%
==========================================
  Files          82       82
  Lines        2750     2745       -5
  Branches      343      341       -2
==========================================
- Hits         2417     2415       -2
+ Misses        258      257       -1
+ Partials       75       73       -2

Flag
Coverage Δ

test-macOS-latest-3.8
?

test-ubuntu-latest-3.8
87.97% <100.00%> (+0.08%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

src/pyfx/view/keymapper/keymapper.py
90.19% <ø> (-0.19%)
:arrow_down:

src/pyfx/view/view_manager.py
78.57% <ø> (+4.28%)
:arrow_up:

src/pyfx/view/json_lib/json_listwalker.py
92.85% <100.00%> (ø)

src/pyfx/view/view_frame.py
87.50% <100.00%> (+0.46%)
:arrow_up:

src/pyfx/view/view_frame_keymapper.py
100.00% <100.00%> (ø)

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


api,client: use shorter API summaries

Codecov Report

Merging #472 into master will decrease coverage by 0.10%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #472      +/-   ##
==========================================
- Coverage   58.44%   58.33%   -0.11%
==========================================
  Files         112      112
  Lines        8302     8302
==========================================
- Hits         4852     4843       -9
- Misses       2730     2735       +5
- Partials      720      724       +4

Impacted Files
Coverage Δ

internal/filetransfer/controller.go
58.43% <0.00%> (-3.62%)
:arrow_down:

internal/filetransfer/outgoing.go
51.12% <0.00%> (-0.76%)
:arrow_down:

Continue to review full report at Codecov.

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


Add deps.edn for easier library consumption.

As an alternative to using the library from Maven, adding a deps.edn will enable one to use the latest version of the library directly from github.

Thanks, @dimovich - sadly, I'm out of the loop on such modern things :)

I'd propose to first work on the color updates (e.g. clamping) and then release both...

I'd propose to first work on the color updates (e.g. clamping) and then release both...

That's the beauty of deps.edn, it allows to use a git commit as dependency, so the 'official' release is not needed to continue using the latest features of the library.


UI : Update Payment screen for other wallets

Acceptance Criteria:

[ ] Modify the payment screen to add the button Pay with other wallets.
[ ] Make it mobile responsive

https://www.figma.com/design/4lf3oRr7TQk57VZrJF52Gw/pangea.web4.world?node-id=2648-797&t=JAwIeUUgow9O64DW-4

Added this in payment UI task


Process Output

Greetings -
Perhaps I'm missing something, but I am trying to see if it is possible to see the stdout of each process that is run in the pool.
Thanks,
C

Hi,
Thanks for the comment!
Not out of the box, but that is a good idea. Currently there is the onProgress call but it doesn't guarantee to get every line (it probably should, and it should determine the difference between stderr and stdout).
Ill look into adding something.
Currently you can do:
$pool = new Pool([$p1, $p2]);
$pool->setOnProgress(function (Process $process, float $duration, string $last) {
    printf("[pid:%d] %s", $process->getPid(), $last);
});

But it might miss some output, and will not differentiate between stdout and stderr.
I think I might change it to:
$pool = new Pool([$process1, $process2]);
$pool->setOnProgress(function (Process $process, float $duration, string $type, string $data) {
    printf("[pid:%d] (%s) %s", $process->getPid(), $type, $data);
});
$pool->run();

Which would produce something like:
[123] (err) Some text
[2412] (std) Some standard output

And add a different type of Console Output class to write it out with different colours and tags for each process.

Thanks for the quick response! I'll see what I can do with these examples.
Thinking through my use case... running 10 simultaneous processes, one would not necessarily know the PID of each process. So maybe at the beginning also have a way to print the pid:process command relationships?
Thank you again!
C

The PR: #12 should do what you need to do... You supply a set of tags for each process you add, these then get outputted for each process so you can tell them apart.

This looks good to me so far! Thank you!


guard_interpreter not triggered when powershell command is used

Hi,
There seems to be a bug on guard_interpreter when is set to powershell_script.
The guard is not triggered when the following code is used:
chocolatey_package 'KB2534366' do
  guard_interpreter :powershell_script
  not_if "$CHOCOLATEY_LIST = choco list -l -idonly | Select-String -Pattern \"KB2534366\"; $CHOCOLATEY_LIST -Match \"KB2534366\""
# or
  not_if "If ((Get-CimInstance -ClassName Win32_QuickFixEngineering | Where-Object HotFixID -eq \"KB2534366\") -ne $null) { $true } else { $false }"
end

Also, the guard is not working when used Ruby too:
chocolatey_package 'KB2534366' do
  not_if { ::Mixlib::ShellOut.new('powershell "choco list -l -idonly | Select-String -Pattern \"KB2534366\""').run_command.stdout.match(/.*KB2534366.*/m) }
# or
  not_if { ::Mixlib::ShellOut.new('powershell "Get-CimInstance -ClassName Win32_QuickFixEngineering | Where-Object HotFixID -eq \'KB2534366\' | Select-Object -ExpandProperty HotFixID"').run_command.stdout.chomp.match("KB2534366") }
# and so on.. I've tried several things, using .delete, .chomp, .strip and nothing works
end

The only way when the guard is triggered is when there is no guard_interpreter set and the code is under EOH block:
chocolatey_package 'KB2534366' do
  not_if <<-EOH
    If ((Get-CimInstance -ClassName Win32_QuickFixEngineering | Where-Object HotFixID -eq \"KB2534366\") -ne $null) { $true } else { $false }
  EOH
end

And is working if there is used something else than a powershell command:
chocolatey_package 'KB2534366' do
# something like this
  not_if { ::File.exist?("C:\\flag.txt") }
end

Maybe somebody can take a look and make this work.
I've spend 2 days to try all combinations in order find a way to use this and I hope this will help others too.
Thank you.
System Info:
chef_version=13.4.24
platform=windows
platform_version=6.1.7601
ruby=ruby 2.4.2p198 (2017-09-14 revision 59899) [x64-mingw32]
program_name=C:/opscode/chef/bin/chef-client
executable=C:/opscode/chef/bin/chef-client
Windows 7 SP1, PowerShell 5
Test Kitchen (v1.16.0)
Vagrant 1.9.6
VBoxManage 5.1.26r117224

@nicutor , Could you please provide debug level logs so that we can debug?
However I ran the recipe code in Windows 7  SP1, PowerShell 3, chef-client v13.5.3 and getting log snippet below:
Recipe code
chocolatey_package 'KB2952664' do
  guard_interpreter :powershell_script
 not_if "If ((Get-CimInstance -ClassName Win32_QuickFixEngineering | Where-Object HotFixID -eq \"KB2952664\") -ne $null) { $true } else { $false }"
end

Output
# Print STDOUT for the script execution
Write-Output $chefscriptresult

# If this script is launched with -File, the process exit
# status of PowerShell.exe will be $exitstatus. If it was
# launched with -Command, it will be 0 if $exitstatus was 0,
# 1 (i.e. failed) otherwise.
exit $exitstatus

  If ((Get-CimInstance -ClassName Win32_QuickFixEngineering | Where-Object HotFixID -eq "KB2952664") -ne $null) { $true } else { $false }

True
[2017-12-28T16:33:40+05:30] INFO: powershell_script[Guard resource] ran successfully
[2017-12-28T16:33:40+05:30] INFO: powershell_script[Guard resource] ran successfully
 (skipped due to not_if)

-- Package installed
PS D:\Chef_Repo\chef> Get-CimInstance -ClassName Win32_QuickFixEngineering | Where-Object HotFixID -eq "KB2952664"

Source        Description      HotFixID      InstalledBy          InstalledOn
------        -----------      --------      -----------          -----------
              Update           KB2952664     PM-138-2016\Admin... 12/28/2017 12:00:00 AM


Deprecation warning: moment().add(period, number) is deprecated.

I'm getting this warning in the console:

Deprecation warning: moment().add(period, number) is deprecated. Please use moment().add(number, period).

I'm not sure with which Moment.js version this came with, but should probably be updated.

:+1:

+1
Deprecation warning: moment().add(period, number) is deprecated. Please use moment().add(number, period).

I had to downgrade my moment.js


fix(monitoring): set resource limits for unbounded pods

The Prometheus Operator as well as the ElasticSearch exporter currently run with no resource limits set. We should limit them from guarding against unwanted runaway resource usage.

This does not affect us right now, but it seems there is no way to pass resources to Grafana in the chart we're using (yet).


Is it possible to fix the GPS of certain frames during bundle adjustment?

I filmed a short video using insta360 and add GPS information of 4 key frames, which is search from google map.
Following the suggestions in https://www.opensfm.org/docs/using.html and  https://github.com/mapillary/OpenSfM/issues/544, I set set the dop=0.0001 in the exif_overrides.json. (Also tried dop=0.0000000000001, but it did get better...)
After running bin/opensfm export_geocoords, I found that the location of these 4 key frames drifted and the coordinates of all frames in video just clustered together.
Does it possible to fix GPS info during bundle adjustment?

Bundle adjustment will use the GPS position in the exif. If you set them in the exif_overrides.json, then they will get used.
Can you check what is the value of shots -> image_name -> gps_position in reconstruction.json for the images that you set the GPS position?
If it is 0, please, be sure to run extract_metadata after creating or modifying exif_overrides.json file. You need to remove the exif to be sure that it gets recreated with the new data.

No...it's not 0.
Is it possible that the GPS information is not strong enough to spread out all the points? Is the whole process guarantee the GPS in reconstruction.json the same as the GPS in exif?
BTW, I tried adding GCP and it works better.

Hard to know what is going on. Could you share a small dataset that reproduces the problem?

Sure! I will email you a link. Thanks lot.


[Draft] [Do not merge]Add support for deploying artifacthub models via Helm URL

Notes for Reviewers
This PR adds support for deploying models registered from artifacthub which do not have their controllers already running in the cluster. Deployment will trigger the installation of the appropriate controllers/operators with the helm chart followed by component installation.
Signed commits

[ ] Yes, I signed my commits.

Codecov Report
Patch coverage has no change and project coverage change: -0.01 :warning:

Comparison is base (7f59813) 16.12% compared to head (5a798e8) 16.12%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7472      +/-   ##
==========================================
- Coverage   16.12%   16.12%   -0.01%
==========================================
  Files         119      119
  Lines       16633    16637       +4
==========================================
  Hits         2682     2682
- Misses      13464    13468       +4
  Partials      487      487

Flag
Coverage Δ

gointegrationtests
5.60% <0.00%> (-0.01%)
:arrow_down:

unittests
11.98% <0.00%> (-0.01%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

server/cmd/main.go
0.00% <ø> (ø)

server/handlers/k8sconfig_handler.go
1.84% <0.00%> (-0.02%)
:arrow_down:

server/handlers/oam_handler.go
0.00% <0.00%> (ø)

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 in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


State resets after saving changes

OS: osx 13.4.1
gleam version: 1.1.0
lustre version: 4.2.2
https://github.com/xpressivecode/lustre-state-hydration
This above uses the example from the lustre repo. If you click the increment button a few times and add a new paragraph tag, the counter  resets to 0 after saving your changes.

Hey there, I think you're talking about lustre_dev_tools' live reloading feature. This is totally expected, it's not a bug.
Implementing hot module replacement (HMR) is a very difficult problem, I'd welcome someone taking a look at it though ^..^


How to solve Redis timouts solution using aspnet core Kestrel

I'm running into the following issue using redis with aspnet core kestrel and redis.
There is a solution mentioned here, but I wonder what is the recommended way to solve this with Kestrel.
https://github.com/StackExchange/StackExchange.Redis/blob/master/Docs/Timeouts.md

Thread pool count which can be done with environment variable
e.g.
export ComPlus_ThreadPool_ForceMinWorkerThreads=2000 (linux)
or
set ComPlus_ThreadPool_ForceMinWorkerThreads=2000 (windows)

I'm confused. What's this issue asking? Are you asking how to change thread pool settings on CoreCLR? If so, this has nothing to do with Kestrel per se and should be moved to github.com/dotnet/coreclr

I'm running my webapi product using kestrel. The project I created in visualstudio does contain a web.config. Does Kestrel use this web.config, or is this only for the IIS debug options? @davidfowl you might be right it is just a coreclr question if there is no specific Kestrel config option.

.NET Core does not read the web.config, it's only for IIS settings.

Kestrel has options but you haven't provided enough details of the actual problem you are experiencing.


Debug console doesn't report problem.

Try with the following code snippet:
<< JavaGraphics`
g[x_,y_]:= 6 Exp[x^3] Sin[y]
Plot[g,{x,-20,20,{y,-20,20},PlotRange=All}]

In vscode:

In MMA notebook:

It doesn't because I haven't figure out how to capture the messages during evaluation in another kernel. But if you open the log panel, it will emit something.

But if you open the log panel, it will emit something.

How to open the log panel? I can't see anything on my side:

I think this can be partially done by wrapping the evaluation with EvaluationData, but I cannot keep the same order as FrontEnd, but it's the most worthy approach that I can think of. Same for messages.


Privacy Notice Statement

https://docs.google.com/document/d/1_J-Vb45O4WBAoK7H9uBMBUvQJ0SvJ8HAeLCEojJxql0/edit

[ ] Identify where a Security Statement would be helpful in IA
[ ] Draft https://docs.google.com/document/d/1_J-Vb45O4WBAoK7H9uBMBUvQJ0SvJ8HAeLCEojJxql0/edit
[ ] Review with the team
[ ] Translate into French

Shared for review.

Awaiting review from @bryan-robitaille.

Sent for translation. Hoping for return early next week.

Received from Translation: https://docs.google.com/document/d/1osqSjcExl6XvYumb8WYbvk7NFmQ1E4aYr6Xj1PcpHP8/edit

Next steps:
Work with Jose to build out a page on the marketing site. Goal would be to replace the privacy link in the footer.

Sounds good! Thanks for clarifying! :D
Contents are staged here for final review before adding to footer (cc: @sarahpiovesana @srtalbot @jose-cds)

EN: https://articles.alpha.canada.ca/forms-formulaires/privacy-notice-statement/
FR: https://articles.alpha.canada.ca/forms-formulaires/fr/declaration-sur-la-protection-des-renseignements-personnels/

Made one change to the EN version to keep the heading for the "Questions?"
heading consistent with the FR. Other than that, it looks good!
Jose
On Mon, Jul 24, 2023 at 12:06 PM Anik Brazeau @.***>
wrote:

Sounds good! Thanks for clarifying! :D
Contents are staged here for final review before adding to footer (cc:
@sarahpiovesana https://github.com/sarahpiovesana @srtalbot
https://github.com/srtalbot @jose-cds https://github.com/jose-cds)

EN:
https://articles.alpha.canada.ca/forms-formulaires/privacy-notice-statement/
FR:
https://articles.alpha.canada.ca/forms-formulaires/fr/declaration-sur-la-protection-des-renseignements-personnels/

—
Reply to this email directly, view it on GitHub
https://github.com/cds-snc/platform-forms-client/issues/1626#issuecomment-1648200514,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMGCLMFCPRHOI5T5AIA37BTXR2MPBANCNFSM6AAAAAAU5DZPUU
.
You are receiving this because you were mentioned.Message ID:
@.***>


Multilayer import warning

Related PR: https://github.com/CartoDB/cartodb/pull/5933

@saleiva u like it?
/cc @gfiorav

Looks great @josecruz!
Just a few things:

The max layers change with the account type, so the message should tell you that you have a limit of 4 (or whatever) layers
We do import the datasets, it's just that we don't add them as layers. So the title shouldn't say "Unable to import"
Id change the message to some thing like "Since you have a limit of 4 layers per map, the following layers were not added to the map:..."

That list... Can you try different methods for showing the affected data?

Idk if we can use this template (because the limit of files that can appear on that list):

For copy maybe @CartoDB/copywriters can bring us some help.

Suggested edits:
original: "We have 4 layers limit for each map"
edited: "There is a 4 Layer limit for each map"
original:  "Due you can only add 4 layers per map, the following layers were imported as datasets:"
edited:  "You have reached the maximum number of Layers allowed for this map. The following Layers were imported as datasets."

Doesnt work I think.... Lets see this on monday
On Oct 16, 2015 7:24 PM, "csobier"<EMAIL_ADDRESS>wrote:

Suggested edits:
original: "We have 4 layers limit for each map"
edited: "There is a 4 Layer limit for each map"
original: "Due you can only add 4 layers per map, the following layers
were imported as datasets:"
edited: "You have reached the maximum number of Layers allowed for this
map. The following Layers were imported as datasets."
—
Reply to this email directly or view it on GitHub
https://github.com/CartoDB/cartodb/issues/5947#issuecomment-148777960.

Thanks @csobier for the copy!! Tried to reuse in this version:

Better?

Sure, that works.

Forget this approach. Doesn't make sense.

dunno who should help with the markup. It's easy enough to do it yourself I guess

@saleiva Ok. I'm not an expert in Backbone to say the least... I hope I'm not messing models up too much. It would help if someone could review it as soon as I'm done with it.

@gfiorav we can get someone with more FE experience to review it when done.
Thank you guys!

OK @saleiva this is how it looks:

There are two different things from your proposal:

The continue button text is lighter (the default color in the error pages)
Our pricing info is linked to "Upgrade your account"

If you like it were done here. So, please, DR.


Codecs for bik, smk, mov, qt, riff, ts video formats.

Hi all! I need to play bik, smk, mov, qt, riff, ts video formats. What type of encoders, decoders, muxers, demuxers i need to add into build_android.sh script to be able to play them. I executed commands --list-encoders, --list-decoders, but there is a very big list of them, what of them i need to add?

Please ask ffmpeg guys


Ha Doan: workflow, week 1

Learning Objectives

Priorities: 🥚, 🐣, 🐥, 🐔 (click to learn more)

There is a lot to learn in this repository. If you can't master all the material
at once, that's expected! Anything you don't master now will always be waiting
for you to review when you need it. These 4 emoji's will help you prioritize
your study time and to measure your progress:

🥚: Understanding this material is required, it covers the base skills you'll
need for this module and the next. You do not need to finish all of them but
should feel comfortable that you could with enough time.
🐣: You have started all of these exercises and feel you could complete them
all if you just had more time. It may not be easy for you but with effort you
can make it through.
🐥: You have studied the examples and started some exercises if you had time.
You should have a big-picture understanding of these concepts/skills, but may
not be confident completing the exercises.
🐔: These concepts or skills are not necessary but are related to this module.
If you are finished with 🥚, 🐣 and 🐥 you can use the 🐔 exercises to push
yourself without getting distracted from the module's main objectives.

🥚 0. Local Development Without Git
Practice the foundational workflows of software development by learning to write
Markdown locally on your own computer using Visual Studio Code (VSCode), the
Command Line Interface (CLI), and NPM scripts to automate your code's quality
(formatting, linting and spell checking).

[x] 🥚 Folder Structures: You can explain how files and folders are stored
in your computer and can find, open or create files in your computer
without using the Command Line Interface.
🥚 Command Line Interface (CLI): In a Unix shell you can ...

[x] open a new terminal window
[x] navigate up and down directories using cd
[x] list the contents of a directory using ls
[x] view the contents of a file using cat
[x] create new files using touch
[x] create new folders using mkdir

[x] 🥚 Markdown: You can write a document in Markdown with no syntax
mistakes that renders into a well-formatted document.
🥚 VSCode: You can complete these workflows in VScode, and can use
keyboard shortcuts to complete them all:

[x] Opening a repository in a new window
[x] Opening the VSCode terminal
[x] Adding a new file
[x] Adding a new folder
[x] Deleting a file
[x] Deleting a folder
[x] Previewing a Markdown File
[x] Formatting a Markdown document

[x] 🥚 READMEs: You can write a README file that describes the project you
are working on, why it's helpful, and how someone can use it.
🥚 NPM: You can use NPM commands to verify your code's quality, this
includes ...

[x] using npm install to install a project's dependencies
[x] reading a package.json file to find which scripts are available for
the project
[x] use npm run <script> to execute an npm script

🥚 Formatting Code: You can use Prettier to make sure all the code in your
project is well-formatted:

[x] You can use the Prettier VSCode extension to format a document while you
are writing it
[x] You can use npm run format to format all of the documents in your
project
[x] You can use npm run format:check to make sure all files are
well-formatted

🥚 Linting Code: You can ...

[x] use npm run lint:md to check all Markdown files in your folder for
linting mistakes
[x] you can fix all linting mistakes reported by npm run lint:md

🥚 Spell Check: You can ...

[x] use the Code Spell Checker VSCode extension to correct spelling mistakes
in your Markdown documents while you are writing
[x] use npm run spell-check to check the spelling in all the files of your
project
[ ] update .cspell.json to add words that should be allowed in your
project

🥚 File and Folder Naming Conventions: You can ...

[x] identify and follow the naming conventions for the project you are
working on.
[x] use npm run lint:ls to check that all files and folders follow the
project's naming conventions.
[x] you can correct any file and folder names to make them match the project
conventions.

[ ] 🐣 File Extensions: You can identify all of the languages covered at
HYF and give the correct file extension. You don't need to know the
languages, just recognize them.
[ ] 🐣 Touch Typing: You can write a Markdown file without looking at your
keyboard to find any letters, numbers or special characters. (slowly is
ok!)

🥚 1. Local Development With Git
Practice using Git to save and organize your development process. You will learn
how you can use Git to go back to previous versions of your project, and to work
on different changes in parallel.

🥚 Git: Using the CLI you can ...

[x] Initialize a new git repository with git init
[x] stage changes using git add <path>
[x] commit changes using git commit -m <message>
[x] display your repository's git history using git log
[x] create a new branch using git branch <branch-name>
[x] check out a branch using git checkout <branch-name>
[x] create a new branch and check it out using
git checkout -b <branch-name>
[ ] merge changes from one branch to another using git merge <branch-name>
[x] return to a previous version of your project with git log and
git checkout <commit-hash>
[x] stash and retrieve uncommitted changes with git stash and git pop

🥚 .gitignore: You can use a .gitignore file to describe which files
you don't want included in your git history.
🥚 VSCode: You can ...

[x] use the Git Graph extension to to visualize your repo's commit history
[x] use the Git Lens extension to investigate your repository's commit
history
[x] explain how the file tree in VSCode can show you which files have
uncommitted changes

[x] 🥚 Atomic Commits: You can save your development progress using small
commits with clear and helpful message.
[ ] 🐣 Feature Branches: You can organize your development process using
branches. You can create a new branch for each part of your project and
merge those changes to main when they are finished.

🥚 1. Local/Remote Development
Learn how you can connect your local Git repositories with a GitHub repository
to add more structure to your development process and to share your projects.

🥚 Licenses: You can ...

[x] explain why it's important to include a license for your code on GitHub
[x] choose a license for your projects that matches how you want others to
use your code

[x] 🥚 GitHub SSH Key: You can connect your computer to your GitHub
account using an SSH key, clone using the SSH link, and push/pull using
your SSH connection.
🥚 GitHub Repositories: You can ...

[x] create new repository on GitHub
[x] write a description for your repository
[x] turn on GitHub Pages
[x] configure your repository to block pushing to main
[x] configure your repository to block merging to main until Continuous
Integration (CI) checks have passed

🥚 Git Remote/Local Connection: You can ...

[x] clone a remote repository to your computer
[x] initialize a new repository locally and connect it to an empty remote
repository
[x] push and pull changes between remote & local branches

[x] 🥚 Pull Requests: You can create a pull request between two branches
in your repository and merge changes without causing any conflicts.
[x] 🥚 PR templates: You can use a PR template to add a checklist to all
of your PRs so you are sure the code is great before merging to main.
[x] 🥚 Continuous Integration: You can use GitHub Actions to check your
code's quality before merging a pull request to the main branch.
[x] 🐣 Local/Remote Branching Workflow: You can use a branching workflow
that keeps mistakes away from the main branch and prevents conflicts
from happening in GitHub. For each contribution to the project you can ...

Check out a new local branch and write your code
Check out main on your local machine
Pull changes from remote main to local main
Merge changes locally from main to your new branch

Fix any conflicts on your new branch before pushing!

Format and lint your code
Push your new local branch to your remote repository
Open a Pull Request from the new branch to main

Go through the PR's checklist to make sure everything is correct
Make sure all CI checks pass!

Merge your new remote branch to main

You can delete the branch after it's merged if you want to

🐣 3. Remote Collaboration
Learn how to collaborate with a group on a single project hosted in a GitHub
repository. Practice using GitHub's project management features to organize your
group's tasks and to double-check your project's code quality.

[x] 🥚 Contributor Guidelines: Your group can define contributor
guidelines that describes how everyone can add their work to the project.
[x] 🥚 Code of Conduct: Your group can write a code of conduct for your
project that describes how everyone should communicate and what behavior
is considered unproductive.
[x] 🥚 Repository Contributors: You can add group members as collaborators
in a repository.
[x] 🥚 Issue Templates: Your group can use issue templates to make sure
all issues are complete and relevant to the project. in your repository
and merge changes without causing any conflicts.
[x] 🥚 Code Review: You can use the PR Template and CI checks to review
another group member's code before merging it to main.
🐣 GitHub Project Management: You can ...

[x] use issues to define tasks in a group project. Each issue should have a
helpful title, complete description, and helpful labels.
[x] use a Project Board to organize a project's issues
[x] claim issues and track your progress with the project board
[x] link a PR to your claimed issue
[x] assign someone to review your PR
[x] use GitHub code review features to discuss your code with your reviewer

[ ] 🐣 Fixing Merge Conflicts: You can fix merge conflicts by selecting
which change to keep, or deciding how to combine them. If a conflict
occurs in a GitHub PR you can pull both branches and fixh the conflict
locally.

🐥 4. Open Source Development
Explore the wider world of Open Source software by learning how communities of
independent developers write and maintain the code we all rely on.

[x] 🥚 Finding Issues: You can read through an open source project's
issues and determine if there is one you can help with.

[x] 🐣 Commenting in Issues: You can productively join the conversation in
an open source projects' issues.

[x] 🐥 Opening Issues: You can open a helpful issue in an open source
repository, following their contributor guidelines and code of conduct.

[x] 🐔 Contributing: You can create a fork of an open source project and
open a PR that contributes something helpful and follows the Contributor
Guidelines and Code of Conduct.

Week 2
I Need Help With:
locating where the readme.md file was
What went well?

clone the repository
add a file to student-bios in local machine
commit the changes
push branch to class repository
pull request has been initiated

What went less well?

I re-named the original readme.md and got confused so such a long time. Attended the call and got helped quickly thanks to the coaches
How to update the file after pushing

Lessons Learned

Always check git status and use git pull origin main
How to add image into the right folder
Link the created issue to the readme file

Sunday Prep Work

I will start prepping on Saturday

Week 3
Model 1 - week 2
I Need Help With:

I have not got a chance to run git merge, I will ask my teammates about this
So far, I could not run the npm run <scripts>. This is what it shows: bash: syntax error near unexpected token newline'`

When I did the npm install once again, it shows this:

What went well?

Create a repo using a template
Create a folder
Add personal info md file
Commit the changes
Push branch to class repository
Pull request has been initiated
Then moved the issue to the project board after assigning myself
Fixed all the errors before pushing the branch (as I forgot to run one in the npm scripts)

What went less well?
npm :(
Lessons Learned

When add GIF, check the url to see whether it has .gif
Always 'git push origin main' , first before adding changes to the upload md file
Create the issue before the pull request so that it easy to link the PR to the issue

Sunday Prep Work

Did some reading about Agile
Will do an online course: Build your first web pages with HTML and CSS

Morning @hadoan149,  you only need to do npm install once at the beginning of the project.  It will install all of the dependencies in node_modules. Once this is done you can move on, you don't need to look inside that folder.  And the warnings you shared aren't a problem.
Then to run the npm scripts you will need to use the script's name, not just <scripts>.  You can find the names of these scripts in the "scripts" section of your package.json file:

to lint your code: npm run lint:md
to check the spelling: npm run spell-check
to fix the formatting: npm run format
to check the formatting: npm run format:check

This is a lot to figure out at once in the first weeks, but you will use NPM like this forever so if you figure it out now you'll have an easier time later on.

@hadoan149 please make sure to add the appropriate module Milestone to the issue next time, so it shows up when looking at the team issues 🙂

Thank you so much @colevandersWands and @danielhalasz! Note taken!


Fix macos ip/route setup for ipv6 nets

When using innernet with an IPv6 network as internal network, installation and running up fails on MacOS.
I believe this is due to usage of inet instead of inet6 and a slightly different syntax when assigning the address to the interface.

Thanks! Nice catch. I'll put this in the upcoming patch release.


Could not find a delaraction file for module @react-native-ml-kit/text-recognition

What happened?
Hi @a7medev, currently I couldn't find declaration files and couldn't import the interface/datatypes. Is there any way for me to import it correctly?

Version
@react-native-ml-kit/text-recognition:^1.2.0
Which ML Kit packages do you use?

[ ] @react-native-ml-kit/barcode-scanning
[ ] @react-native-ml-kit/face-detection
[ ] @react-native-ml-kit/identify-languages
[ ] @react-native-ml-kit/image-labeling
[X] @react-native-ml-kit/text-recognition
[ ] @react-native-ml-kit/translate-text

What platforms are you seeing this issue on?

[X] Android
[ ] iOS

System Information
System:
    OS: Linux 5.15 Ubuntu 20.04.5 LTS (Focal Fossa)
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
    Memory: 955.81 MB / 15.33 GB
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 16.13.2 - ~/.nvm/versions/node/v16.13.2/bin/node
    Yarn: 3.2.0 - ~/.nvm/versions/node/v16.13.2/bin/yarn
    npm: 8.19.1 - ~/.nvm/versions/node/v16.13.2/bin/npm
    Watchman: 4.9.0 - /usr/bin/watchman
  SDKs:
    Android SDK:
      API Levels: 25, 26, 27, 28, 29, 30, 31, 32, 33
      Build Tools: 30.0.2, 30.0.3, 31.0.0, 32.0.0, 32.1.0, 33.0.0
      System Images: android-29 | Google APIs Intel x86 Atom_64, android-30 | Google APIs Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: Not Found
  Languages:
    Java: 11.0.16 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: ^7.0.3 => 7.0.3
    react: 17.0.2 => 17.0.2
    react-native: ^0.68.3 => 0.68.3
  npmGlobalPackages:
    *react-native*: Not Found

Steps to Reproduce

Install from yarn, yarn add @react-native-ml-kit/text-recognition
Import in .tsx file

Hi @j-elmer123, Thanks for bringing this up! The issue was that the index.d.ts file wasn't uploaded to NPM on publishing, I fixed that in v1.2.1.


[FLINK-15504] Allow output to stdout/stderr during execution of PackagedProgram

What is the purpose of the change
We suppress the output to stdout/stderr during plan extraction via
PackagedProgram. This has unintended consequences for users who are looking into
debugging their Flink programs during JobGraph creation.
Brief change log
This change removes the suppression of output when we run the JARs. The plan
preview still suppresses the output to avoid spaming the logs during plan
preview.
Verifying this change
This change added tests and can be verified as follows:
Please see JarHandlerTest and OptimizerPlanEnvironmentTest
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (no)
The public API, i.e., is any changed class annotated with @Public(Evolving): ( no)
The serializers: (no)
The runtime per-record code paths (performance sensitive): (no)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: ( no )
The S3 file system connector: (no )

Documentation

Does this pull request introduce a new feature? ( no)
If yes, how is the feature documented? (not applicable)

Thank you for the quick review! 🎉  I'll leave this open until tomorrow.


Missing a lot of newer UWP APIs

For example:
Console -> could point to newer UWP Console apps approach in https://docs.microsoft.com/en-us/windows/uwp/launch-resume/console-uwp
DWM -> Windows.UI.Composition
MDI -> Windows Community Toolkit Tabs control, AppWindow
IPC mechanisms like named pipes -> point to general IPC approach with App Services, etc.
Some of these aren't 1:1 replacements and won't work for some uses of those APIs, but would still be worth pointing people towards them (maybe with caveats)

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

ID: 6d4b0781-eddc-d60c-db62-5e2e50ffad6a
Version Independent ID: 0c885553-52a1-a380-e6be-adeeab59d367
Content: Alternatives to Windows APIs in Universal Windows Platform (UWP) apps - Windows UWP applications
Content Source: winrt-related-src/win32-and-com/alternatives-to-windows-apis-uwp.md
Product: uwp
Technology: winrt-reference
GitHub Login: @GrantMeStrength
Microsoft Alias: jken

Thanks for your suggestions - they've been integrated into the referenced document and you should see them live within 24 hours.


[Scheduling Tool] Mandatory Description

I believe we should make the Description field mandatory when scheduling a meeting with the scheduling tool. I often see meetings from partner teams with no description and no materials which makes it very difficult to determine the context for the meeting.

@JonathanCrd because the Description comes from a library component, is it correct to say that we either do Description required for all or we won't be able to do this?

@JonathanCrd because the Description comes from a library component, is it correct to say that we either do Description required for all or we won't be able to do this?

No, we can require it for specific meeting types, since the check logic is in the submit button of each app.

But what about UI? can we add the text Required or the * to some but not all?
I honestly think it should be ok to make it required for all, but was wondering....

You have a good point. Adding the required * mark is not a substantial change anyway, we can just simply add it on top of the component or make it a property of the component itself.
To be honest, I don't think we will need this component at all in the future once we start working on the full UI/UX redesign. I'm thinking of better approaches now that I have more experience with the platform.


Translation preparation

These changes help the pxt gendocs tool pick up all strings.
Add generated strings files.
Translate unknown in the event that the extension cannot be removed from the MakeCode search results.

LGTM


Fix permission issue catched by GAS Scanner

Coverage remained the same at 55.309% when pulling 045b5a1c633f18cb6f8fadcdf7c23043672a1234 on wy65701436:gas-scanner into a4a5ff6c604f09af2f8db9430226fc76cf8fad2f on vmware:master.


app support for new iPhone devices(iPhone XR, iPhone XS, iPhone XS MAX)

iPhone new device models does not exist in deviceNamesByCode list (iPhone XR, iPhone XS, iPhone XS MAX)

In RNDeviceInfo.m, find deviceNamesByCode dict and append these somewhere:
@"iPhone11,8":@"iPhone XR",       // (model A1984, A2105, A2106, A2108)
@"iPhone11,2":@"iPhone XS",       // (model A1920, A2097, A2098, A2100)
@"iPhone11,4":@"iPhone XS Max",   // (model A1921, A2101, A2102)
@"iPhone11,6":@"iPhone XS Max",   // (model A2104)


SetState is not updating the body in Scaffold, how to fix this?

I'm making an app that shows images from a subreddit and I want to change these images based on the subreddit names entered through the alert dialog. I have implemented everything as follows but when I set the state, the images are not showing. How to fix this? Here is my code.
import 'package:flutter/material.dart';
import 'package:memes/screens/memes_screen.dart';

void main() {
  runApp(
    MaterialApp(
      debugShowCheckedModeBanner: false,
      home: HomePage(),
    )
  );
}

class HomePage extends StatefulWidget {
  const HomePage({ Key? key }) : super(key: key);

  @override
  State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {

  final TextEditingController textEditingController = TextEditingController();
  String subs = "memes";

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Color.fromARGB(255, 255, 254, 241), //Color(0xffdedede),

      appBar: AppBar(title: Text("Memes"), backgroundColor: Color(0xff008b00)),

      body: MemesScreen(subreddits: subs),

      floatingActionButton: FloatingActionButton(
        child: Icon(Icons.add),

        backgroundColor: Color(0xff008b00),

        onPressed: (){
          _showDialog();
        },
      ),
    );
  }

  void _showDialog() {
    showDialog(
      context: context,
      builder: (BuildContext context) {
        // return object of type Dialog
        return AlertDialog(

          backgroundColor: Color.fromARGB(255, 255, 254, 241),

          title: Text("Enter subreddits"),

          content: TextField(
            controller: textEditingController,
          ),

          actions: <Widget>[
            // usually buttons at the bottom of the dialog
            TextButton(
              child: new Text("Close", style: TextStyle(color: Color(0xff008b00))),
              onPressed: () {
                Navigator.of(context).pop();
              },
            ),

            TextButton(
              child: new Text("Get", style: TextStyle(color: Color(0xff008b00))),
              onPressed: () {
                String newSubs = textEditingController.text;
                setState(() {
                  subs = newSubs;
                });
                Navigator.of(context).pop();
              },
            ),
          ],
        );
      },
    );
  }
}

The string subs is passed to the MemesScreen that shows an image. If I change this subs value on a button press in _showDialog method and set the state, the screen is not reloading. How to fix this? Any help would be highly appreciated.

@stackbuffer
Your question is better suited for support channels like StackOverflow, so please ask the same there.
Closing from here as this is more of a how to question rather than a bug report.


Keyboard navigation for the dialogues with option buttons

Type: Feature Request
VS code has several different types of message boxes, or dialogues, with option buttons. I don't know what their proper name is. I find it frustrating that there is no keyboard navigation for these dialogues (except for the Escape key, to dismiss them).
It would be good to be able to select an option in these dialogues via the keyboard, without needing a mouse. I suggest a new command: "Focus next dialogue" and then be able to cycle through focussing the option buttons via the Tab key.
I give a repro below for opening one of these dialogues.

Create a read-only test file and open it in VS Code, via the following PowerShell script

$filePath = 'c:\temp\test.txt'
New-Item -Path $filePath -ItemType File -Force
Set-ItemProperty -Path $filePath -Name IsReadOnly -Value $true
& code $filepath

In VS Code, enter some text in the file and attempt to save it. Get a dialogue with option buttons like this:

It should be possible to select one of the options (Overwrite / Save As... / Discard) with the keyboard (Tab and Enter keys)

VS Code version: Code 1.70.2 (e4503b30fc78200f846c62cf8091b76ff5547662, 2022-08-16T05:35:13.448Z)
OS version: Windows_NT x64 10.0.19044
Modes:

"F1 > show notifications". Tab key to move focus between buttons.
You can also assign a keyboard shortcut to this command.
@goplayerjuggler is there something that is missing in this flow? If yes, what are your suggestion for improvements? Thanks

@isidorn thanks, it's fine. I missed that. So I'm closing this issue.

Ok. If you have other suggestions on how to improve here do let us know. Thanks


fromJson (toJson .Chart) does not have reflexive behavior

Output of helm version:
version.BuildInfo{Version:"v3.14.2", GitCommit:"c309b6f0ff63856811846ce18f3bdc93d2b4d54b", GitTreeState:"clean", GoVersion:"go1.21.7"}

When I evaluate .Chart.Name, it goes through the Go exported field. But when I evaluate (fromJson (toJson .Chart)).Name, it becomes null, because toJson emits Name as the alias name instead, and fromJson would not unmarshal it back to the tagged struct and I have to write .name instead of .Name.

I know it was weird of me to toJson a .Chart. I did so simply because I was passing an enormous dictionary as argument to another template, and I thought it was easier to format it as YAML and (include "internal-template" . | include "library-template"), and I tried to write the .Chart inside the YAML.

@SOF3 do you have a complete, but minimal example which I can look at and test the failure scenario? It's a bit unclear (to me) what is happening here.

$ cat templates/example.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: abc
data:
  release: {{include "show-keys" (toJson .Release) | toJson}}
  chart: {{include "show-keys" (toJson .Chart) | toJson}}

{{- define "show-keys" -}}
{{keys (fromJson .)}}
{{- end}}

$ helm template .
---
# Source: demo/templates/example.yaml
apiVersion: v1
kind: ConfigMap
metadata:
  name: abc
data:
  release: "[Revision Service IsInstall IsUpgrade Name Namespace]"
  chart: "[version description apiVersion appVersion type IsRoot name]"

This issue is still valid, and it is not a support request.

.Chart and .Release are structs ... this will not work as expected. You need to convert it first to map[string]{}.

yeah and this is a bit counterintuitive. Would it be a good idea to make the marshal/unmarshal of these structs use AsMap by default? It doesn't make sense to couple users' helm chart logic (especially generic code that doesn't know whether it is a struct or a map) with helm's internal implementation details (structs vs maps).


Removed strategy brainfuck and turned it into a more proper solution.

Long story short: PathingRuleSet nolonger maintains the PathfinderStrategy. It is now passed via the Pathfinder.findPath method. With this change we grant the Pathfinder and -strategies more flexibility

I had a look through... So I thought that the thought process before was to avoid having the user creating a tonne of throwaway strategy objects. Also, if the contact with the user is the expectation that each path find will have a new strategy, why is it that it defaults to a common instance. I suppose that it doesn't really matter for direct.


Dates not correctly updated

The function used to update dates in docbuilder.py does not correctly update a user provided date.  Specifically, the datecalc function does not handle the date delta correctly.

location of issue datecalc line 40

fixed!


TE-264 Use checked arithmetics for encoded size

Not sure if it is possible to add any tests for testing usize overflow though...

@akoptelov
merged, close please jira

@akoptelov
merged, close please jira


Tgibson/m66 msidl moved clang fix

Fixes webrtc win32 builds - needs cryptopp PR as well

Is there a possibility you can give a pull request just for the "moved" part? I'd like to accept it but I'm not ready to put the fix on master because there's a lot of dependencies.

Whoa, sorry about that, I didn't realize it wasn't just the single commit