Implement login feature

Add side menu for display login button and authenticated user information.
Integrate passport.js as auth library.
When login via Facebook will auto register as a website user.

:+1:


Refactor: Replace & Update Custom Element Mixin

I noticed when working on a separate issue that the default custom element styling / margin bottom styles for several components was missing (the block-list, ordered-list, and unordered-list to be specific).
Due to changes in how our code is compiled and distributed downstream, the original solution @mikemai2awesome and I came up with no longer works so I iterated to fix the issue itself + add a few new options discussed (including the ability to add default margin-bottom spacing + optionally embed normalize resets in the component itself).

@mikemai2awesome I realize the logic in this new mixin is (intentionally) simple but I figure since this isn't getting used in a ton of places we could start small and build this up as needed.

@mikemai2awesome looks great - thanks for the help getting this cleaned up!


repo.yml: Add balena-yocto-scripts upstream source

This allows to add nested changelogs from the balena-yocto-scripts repository
from version >= 1.14.1
Change-type: patch
Changelog-entry: Add balena-yocto-scripts upstream source
Signed-off-by: Alex Gonzalez<EMAIL_ADDRESS>

This change has already been merged.


Tests for base module -- captions and titles

Added tests for the base module, only the caption and title related methods so far (#36)

@kysolvik i just merged two or your PR's. Now there are several conflicts in this PR. can you please resolve these on your branch and in turn this PR will be updated? i'd suggest you check in on all of the open PR's to ensure things are as they should be given i just merged 2 other pr's !! please update all of your branches from master!

closing this as merge conflict and cleanup happened here #56 thank you again @kysolvik !!!


v3 .replaceAll breaks support for Node v14

For security requirements at work I must use Node v14.21.3.
This line in client.js breaks compatibility with versions of Node older than v15.
https://github.com/ldapjs/node-ldapjs/blob/67617fee4f24816fc60004f0ff7252548a784969/lib/client/client.js#L1252
Following the help here: https://stackoverflow.com/questions/1144783/how-do-i-replace-all-occurrences-of-a-string-in-javascript
I've added the function
function escapeRegExp(string) {
    return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
}

and changed the line to
event = (event[0].toLowerCase() + event.slice(1)).replace(new RegExp(escapeRegExp('Result'), 'g'), '');

And it seems to work fine, but I'm not sure all the test cases it may need.

Node.js v14 goes end-of-life on 2023-04-30 (https://github.com/nodejs/release#release-schedule). We decided to drop support for it in ldapjs@3 so that we don't have to release ldapjs@4 in such a short amount of time.
You can view the releases we actively support at https://github.com/ldapjs/node-ldapjs/blob/6ba15ed672fd1942c2e8a846a68decf9e915c959/.github/workflows/main.yml#L34-L37
The readme should be updated to indicate where to view our supported Node.js versions can be found.


Update README.md

Per @amclough we're waiting for some updated language here. Also, this change is now in conflict with the current README.md. @amclough can you rebase from master and send in a new language draft?

See #126.   I think this on can be closed.


Keras import : java.lang.ClassCastException between org.deeplearning4j.nn.conf.layers.recurrent.LastTimeStep and org.deeplearning4j.nn.conf.layers.FeedForwardLayer

Issue Description
I am importing a Keras model that you can find on this colab  using the following code :
// Import model
ComputationGraph model = KerasModelImport.importKerasModelAndWeights("/path/to/model.h5", true);
System.out.println(model.summary());

and it returns me
Exception in thread "main" java.lang.ClassCastException: class org.deeplearning4j.nn.conf.layers.recurrent.LastTimeStep cannot be cast to class org.deeplearning4j.nn.conf.layers.FeedForwardLayer (org.deeplearning4j.nn.conf.layers.recurrent.LastTimeStep and org.deeplearning4j.nn.conf.layers.FeedForwardLayer are in unnamed module of loader 'app')
	at org.deeplearning4j.nn.modelimport.keras.layers.recurrent.KerasLSTM.setWeights(KerasLSTM.java:449)
	at org.deeplearning4j.nn.modelimport.keras.utils.KerasModelUtils.importWeights(KerasModelUtils.java:302)
	at org.deeplearning4j.nn.modelimport.keras.KerasModel.<init>(KerasModel.java:183)
	at org.deeplearning4j.nn.modelimport.keras.KerasModel.<init>(KerasModel.java:96)
	at org.deeplearning4j.nn.modelimport.keras.utils.KerasModelBuilder.buildModel(KerasModelBuilder.java:307)
	at org.deeplearning4j.nn.modelimport.keras.KerasModelImport.importKerasModelAndWeights(KerasModelImport.java:155)
	at org.lara.rnn.Main.main(Main.java:10)

Version Information

Deeplearning4j version : 1.0.0-beta6
Platform information : Ubuntu 19.04 (64 Bits)
CUDA version : not used
NVIDIA driver version : not used

Additional Information
Where applicable, please also provide:

Full log or exception stack trace : https://gist.github.com/h2o64/7a1b9e6ac31869451512d01795326823
pom.xml : https://gist.github.com/h2o64/14762fb7a1b91c2c885f339980db5b2e

This has been tested in the 1.0.0-SNAPSHOT of today and still outputs the same

It is using tf.keras functionality, so it isn't unexpected that it doesn't work with beta6, but I would have expected it to work with SNAPSHOTS.
Do you get the exactly same stacktrace with snapshots?

Hi, thank you for such a fast answer. Here is the stacktrace with 1.0.0-SNAPSHOT
Exception in thread "main" java.lang.ClassCastException: class org.deeplearning4j.nn.conf.layers.recurrent.LastTimeStep cannot be cast to class org.deeplearning4j.nn.conf.layers.FeedForwardLayer (org.deeplearning4j.nn.conf.layers.recurrent.LastTimeStep and org.deeplearning4j.nn.conf.layers.FeedForwardLayer are in unnamed module of loader 'app')
	at org.deeplearning4j.nn.modelimport.keras.layers.recurrent.KerasLSTM.setWeights(KerasLSTM.java:449)
	at org.deeplearning4j.nn.modelimport.keras.utils.KerasModelUtils.importWeights(KerasModelUtils.java:302)
	at org.deeplearning4j.nn.modelimport.keras.KerasModel.<init>(KerasModel.java:183)
	at org.deeplearning4j.nn.modelimport.keras.KerasModel.<init>(KerasModel.java:96)
	at org.deeplearning4j.nn.modelimport.keras.utils.KerasModelBuilder.buildModel(KerasModelBuilder.java:307)
	at org.deeplearning4j.nn.modelimport.keras.KerasModelImport.importKerasModelAndWeights(KerasModelImport.java:155)
	at org.lara.rnn.Main.main(Main.java:10

which is very very similar. Here is the pom.xml that I use.

Why isn't LastTimeStep catched in this condition ?

So I fixed this bugs as follows,
diff --git a/deeplearning4j/deeplearning4j-modelimport/src/main/java/org/deeplearning4j/nn/modelimport/keras/layers/recurrent/KerasLSTM.java b/deeplearning4j/deeplearning4j-modelimport/src/main/java/org/deeplearning4j/nn/modelimport/keras/layers/recurrent/KerasLSTM.java
index d2b9f42ff9..739d8dde4f 100644
--- a/deeplearning4j/deeplearning4j-modelimport/src/main/java/org/deeplearning4j/nn/modelimport/keras/layers/recurrent/KerasLSTM.java
+++ b/deeplearning4j/deeplearning4j-modelimport/src/main/java/org/deeplearning4j/nn/modelimport/keras/layers/recurrent/KerasLSTM.java
@@ -446,6 +446,8 @@ public class KerasLSTM extends KerasLayer {
         FeedForwardLayer ffl;
         if(this.layer instanceof BaseWrapperLayer){
             BaseWrapperLayer bwl = (BaseWrapperLayer)this.layer;
+            while(bwl.getUnderlying() instanceof BaseWrapperLayer)
+                bwl = (BaseWrapperLayer) bwl.getUnderlying();
             ffl = (FeedForwardLayer)bwl.getUnderlying();
         } else {
             ffl = (FeedForwardLayer) this.layer;

and now I get this :
Exception in thread "main" org.deeplearning4j.nn.conf.inputs.InvalidInputTypeException: Invalid input: MergeVertex cannot merge activations of different types: first type = RNN, input type 2 = FF
	at org.deeplearning4j.nn.conf.graph.MergeVertex.getOutputType(MergeVertex.java:139)
	at org.deeplearning4j.nn.conf.ComputationGraphConfiguration.getLayerActivationTypes(ComputationGraphConfiguration.java:537)
	at org.deeplearning4j.nn.conf.ComputationGraphConfiguration.addPreProcessors(ComputationGraphConfiguration.java:450)
	at org.deeplearning4j.nn.conf.ComputationGraphConfiguration$GraphBuilder.build(ComputationGraphConfiguration.java:1202)
	at org.deeplearning4j.nn.modelimport.keras.KerasModel.getComputationGraphConfiguration(KerasModel.java:394)
	at org.deeplearning4j.nn.modelimport.keras.KerasModel.getComputationGraph(KerasModel.java:415)
	at org.deeplearning4j.nn.modelimport.keras.KerasModel.getComputationGraph(KerasModel.java:404)
	at org.deeplearning4j.nn.modelimport.keras.KerasModelImport.importKerasModelAndWeights(KerasModelImport.java:156)

It sounds very similar to https://github.com/eclipse/deeplearning4j/issues/4743, maybe @maxpumperla could help ?
Thank you

Thanks a lot for digging this deep.  Are you still using a beta6 based version? Or since you've actually did some changes to the code, have you moved to compiling from source and using master?
@AlexDBlack what do you think here?

Thanks a lot for digging this deep. Are you still using a beta6 based version? Or since you've actually did some changes to the code, have you moved to compiling from source and using master?
@AlexDBlack what do you think here?

I am using master as you advised. I'm compiling the library myself in order to debug.

Confirmed this doesn't happen anymore. Closing.

Confirmed this doesn't happen anymore. Closing.


If No Staged Files, Changed Files are Added to Commit

VSCode Version: 1.71
OS Version: Windows 10 Enterprise

Steps to Reproduce:

make changes / have changed files
do not stage any files
write commit message
submit commit

problem: all files that were changed (even though none were staged) are added to the commit.
expected: if no files are staged, the commit will not add any files (similar to other git tools).

This behavior is likely intentional, but after many revert-last-commit operations, I've come to really hate it.

This is intended.

when there are no changes, nothing happens
when there are no staged changes, all working tree changes are committed
when there are staged changes, only those are committed

Would you like a setting to disable that?

I would definitely like a setting to disable that, please.

In the case of Visual Studio, when there are no staged changes, but some changes, the content of the commit button comes "Commit All". So, user can know all changes will be committed even no changes staged.
vscode doesn't have button to commit (use ctrl+Enter instead), and it is difficult to know what happens when commit done.
I would like to add a setting to disable the behavior when no changes staged, or add some ingenuity to let user know what will happen.

Despite the fact that this is easily revertible after an accidental mass commit, the git CLI does not allow you to commit without staged files.
If it's not a setting that disables this functionality, then if there are no staged files, prompt the user that you cannot commit without staged changes and ask if the user would like to stage and commit all changes (with the default option to be No).
Forcing the user to look at the files and intentionally stage them is good practice.

Any progress on this issue? As @siegebell said before, I had to revert commit many times already as I either accidentally pressed CTRL+S or forgot to stage file. I'm hating it now.
@seesemichaelj suggestion is very good actually.

We're gonna go with the setting. Any one care to contribute a PR?

I'll give this a shot

I have been looking at this and related issues (before I saw you were too @seesemichaelj , sorry!) and have attempted a solution from a slightly different direction and I have raised PR #25855. I think there is value in trying to merge our two solutions which I will have a look at tomorrow if I can.

Sorry @ashirley, I've closed your PR. I really liked @seesemichaelj's fix, it's simpler to understand and maintain.

Fixed by #25364

No worries. I am a bit concerned that when you press "Always", it changes a file in the directory and then immediately commits it. I wouldn't be expecting this as a user and would want a chance to add the (potentially new) file to .gitignore. Even if I did want to commit this config change, I would want it in a separate commit.

@ashirley I agree and verified what you said. I have opened Issue #26169 to address this

Good detective work @seesemichaelj 😉


The event is not triggered when you click on the notification in background mode.

Description
According to the: https://docs.microsoft.com/en-us/appcenter/sdk/push/cordova-android
If the push is received in background, the event is NOT triggered at receive time. The event is triggered when you click on the notification, but it isn't. It works when app is off or is in foreground mode. In background notification comes but after click the event is not triggered.
I use Ionic 4 with this plugin: https://ionicframework.com/docs/native/app-center-push
Repro Steps
Please list the steps used to reproduce your issue.

Add listener for "notificationReceived" event
Go to background mode
Send notification
Click on notification
App is opened but event is not triggered

Details

Which SDK version are you using?
0.3.4
Which OS version did you experience the issue on?
Android 8, Android 9
What version of Cordova, Cordova platforms, Cocoapods, and Ruby are you using?
Cordova version 8.0.0
What device version did you see this error on?  Were you using a simulator or a physical device?
Nokia 7Plus, Huawei P10 Lite
What third party plugins are you using?
cordova-android-firebase-gradle-release 3.0.0 "cordova-android-firebase-gradle-release"
cordova-android-play-services-gradle-release 3.0.0 "cordova-android-play-services-gradle-release"
cordova-plugin-actionsheet 2.3.3 "ActionSheet"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-appcenter-analytics 0.3.4 "App Center Analytics for Cordova"
cordova-plugin-appcenter-push 0.3.4 "App Center Push for Cordova"
cordova-plugin-appcenter-shared 0.3.4 "App Center shared code for Cordova"
cordova-plugin-background-mode 0.7.2 "BackgroundMode"
cordova-plugin-browsertab 0.2.0 "cordova-plugin-browsertab"
cordova-plugin-camera 4.0.3 "Camera"
cordova-plugin-cocoapod-support 1.6.0 "Cordova CocoaPods Dependency Support"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-contacts 3.0.1 "Contacts"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-dialogs 2.0.1 "Notification"
cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 3.1.2 "cordova-plugin-ionic-webview"
cordova-plugin-ms-adal 0.10.1 "ADAL for Cordova"
cordova-plugin-network-information 2.0.1 "Network Information"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-sqlcipher-adapter 0.2.1 "Cordova sqlcipher adapter"
uk.co.workingedge.phonegap.plugin.launchnavigator 5.0.4 "Launch Navigator"

Hey, @maciejkoch, thanks for reporting this one; We've just checked out behaviour of the apps using sdk on cordova, and it seem to be an actual bug.
We will keep you updated in this thread.

Hi,
I'm really happy that you took care of the issue :) When can we expect the release with this fix?

Hi @maciejkoch, this will be included in the June release.

@maciejkoch the bugfix is released now, could you please verify if all works. Thank you!

It works perfect! Thank you.


Move tests for functional to dedicated directory

This PR tries to address issue #1231.
Here is the pytest summary I got, let me know if requires further look. Also I didn't prefix the file name with functional since it's already under the functional directory, not sure if it conforms to the repo's rule or not, let me know~
====================================== warnings summary ======================================
test/torchaudio_unittest/functional/consistency_cpu_test.py::TestFunctionalFloat32::test_create_fb_matrix
test/torchaudio_unittest/functional/consistency_cpu_test.py::TestFunctionalFloat32::test_create_fb_matrix
test/torchaudio_unittest/functional/consistency_cpu_test.py::TestFunctionalFloat64::test_create_fb_matrix
test/torchaudio_unittest/functional/consistency_cpu_test.py::TestFunctionalFloat64::test_create_fb_matrix
/Users/jieruan/Library/Python/3.8/lib/python/site-packages/torchaudio/functional/functional.py:340: UserWarning: At least one mel filterbank has all zero values. The value for n_mels (10) may be set too high. Or, the value for n_freqs (100) may be set too low.
warnings.warn(
test/torchaudio_unittest/functional/consistency_cpu_test.py::TestFunctionalFloat32::test_griffinlim
/Users/jieruan/Library/Python/3.8/lib/python/site-packages/torch/functional.py:654: UserWarning: istft will require a complex-valued input tensor in a future PyTorch release. Matching the output from stft with return_complex=True. (Triggered internally at ../aten/src/ATen/native/SpectralOps.cpp:787.)
return _VF.istft(input, n_fft, hop_length, win_length, window, center, # type: ignore
-- Docs: https://docs.pytest.org/en/stable/warnings.html
======================= 103 passed, 107 skipped, 5 warnings in 28.85s ========================

I kind of wonder if there is some good local tests to run before pushing. my way of testing via ci seems pretty inefficient to me...

Please rename
test/torchaudio_unittest/functional/functional_consistency_cpu_test.py into test/torchaudio_unittest/functional/torchscript_consistency_cpu_test.py and apply the same changes to currently called functional_consistency_*.py scripts.

Please rename
test/torchaudio_unittest/functional/functional_consistency_cpu_test.py into test/torchaudio_unittest/functional/torchscript_consistency_cpu_test.py and apply the same changes to currently called functional_consistency_*.py scripts.

Oh I see, I misunderstood the part, that's why I omit the prefix at first place... Sure I will fix it now

Thanks!

happy to help~

From: moto<EMAIL_ADDRESS>Sent: Thursday, February 4, 2021 12:16 PM
To: pytorch/audio<EMAIL_ADDRESS>Cc: Jie Ruan<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [pytorch/audio] Refactor tests for functional (#1237)
Thanks!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/pytorch/audio/pull/1237#issuecomment-773577603, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AST3DZN6RTRD4TN4CMBM3ULS5L6C3ANCNFSM4XBLNYDQ.


electron_bridge: Request dekstop app focus status on updating presence.

Webapp implementation part of zulip/zulip-electron#532
CZO discussion here

The circleci test fails because activity.js expects 100% test coverage. I don't think the electron_bridge send event requires a test. Any idea how to ignore that case in the tests?

We should add a unit test for this.  @lonerz can help you with figuring out how to write it.

Here's the test that I wrote:
diff --git a/frontend_tests/node_tests/activity.js b/frontend_tests/node_tests/activity.js
index ca5e901..dd52606 100644
--- a/frontend_tests/node_tests/activity.js
+++ b/frontend_tests/node_tests/activity.js
@@ -857,4 +857,18 @@ run_test('initialize', () => {
     };

     activity.initialize();
+
+    var event_sent = false;
+    window.electron_bridge = {
+        send_event: (param) => {
+            assert.equal(param, 'electron_presence_update');
+            event_sent = true;
+        },
+    };
+
+    activity.initialize();
+    assert(event_sent);
+
+    // reset window.electron_bridge back to undefined
+    window.electron_bridge = undefined;
 });

@timabbott  Updated the PR with tests.

ping @timabbott for review.


Verify Global plugin install

solidarity works when the plugin is installed locally... but what about globally?
Verify this is so!  Probably need to change the runner.

Just checked, and globals do NOT work.


build failed, by clang 8.0.0

hi,  Thank you for your work.
I compiled in stable version (<IP_ADDRESS> stable) wrong.
first, Download the code from LLVM and copy the code from the driver directory to compiler_8.0.0 and compiler_8.0.0svn.
second, The build code.
failed message:
CMake Error at dbms/programs/clang/Compiler-8.0.0svn/CMakeLists.txt:32 (add_clang_tool):
Unknown CMake command "add_clang_tool".

and copy the code from the driver directory to compiler_8.0.0

Verbatim copy wont work.

This is a duplicate of  #5169

Looks like it was fixed. Maybe in #5368
Is it still broken for you, @excitoon ?


Fix support for rendering pages whose content type isn't 'page'

e.g. compare
https://www-stage.wellcomecollection.org/guides/YL9OAxIAAB8AHsyv
https://www.wellcomecollection.org/guides/YL9OAxIAAB8AHsyv
This was a bug introduced in https://github.com/wellcomecollection/wellcomecollection.org/pull/7590, and caught before we deployed. Specifically, there's a bug lurking in here:
const pagesFetcher = fetcher<PagePrismicDocument>('page', fetchLinks);

export const fetchPage = pagesFetcher.getById;

When you call that getById method, it's doing a check on the content type – if it doesn't match the content type we expect, you get a 404. Because guides and projects are both rendered using the Page component (which was calling fetchPage()), we'd 404 them out for mismatched content type.
This patch updates the fetcher to support multiple content types, because we do the same thing for articles/webcomics. I've also added a complete list of content types to the list of URLs we check before deploying, to prevent any regressions.

Something weird is happening in CI: https://buildkite.com/wellcomecollection/experience/builds/5537#c4384aed-8128-4e78-9cba-e95114566ec0
Failed to compile.
  |
  | ../../node_modules/prismic-client-beta/dist/index.mjs
  | Attempted import error: 'asLink' is not exported from '@prismicio/helpers' (imported as 'prismicH').
  |
  |
  | > Build error occurred
  | Error: > Build failed because of webpack errors
  | at /app/node_modules/next/dist/build/index.js:397:19
  | at async Span.traceAsyncFn (/app/node_modules/next/dist/telemetry/trace/trace.js:60:20)
  | at async Object.build [as default] (/app/node_modules/next/dist/build/index.js:77:25)
  | error Command failed with exit code 1.
 ```

It looks like there's an import error coming from inside the Prismic library? But we haven't updated or changed our version of that in this PR. 🤔

Okay, so by bisecting I've identified this commit as the culprit: https://github.com/wellcomecollection/wellcomecollection.org/pull/7593/commits/5e2640462a95504bbecd9c90ea55175cfb374264

Not strictly relevant, but I think we should probably move off the beta now? https://www.npmjs.com/package/@prismicio/client

I eventually gave up trying to fix the type checker, and just backed that change out – it's not critical, and it might get sorted when we upgrade the Prismic client libs. I've left a comment to warn future devs.


AVD Export issue: [object Object]

I am having a problem while exporting the AVD.
In objectAnimator value of android:valueFrom and android:valueTo is coming as [object Object].
<objectAnimator
      android:propertyName="pathData"
      android:duration="100"
      android:valueFrom="[object Object]"
      android:valueTo="[object Object]"
      android:valueType="pathType"
      android:interpolator="@android:anim/linear_interpolator"/>

Thank you for reporting!  I just published a fix... you might have to CMD + SHIFT + R the page to see a difference (in order to clear the cached version). LMK if you still have issues!


Datasources not displayed on coordinator console

I am unable to view datasources on the Druid UI. When I check in the old coordination console, I see all the datasources have been disabled which is not the case because I am still able to query them in CLI.

This is the error displayed in the console:

I didn't quite figure out the issue but a redeploy of the coordinator node fixed it.


Consider enabling Travis CI's Auto Cancellation feature.

https://blog.travis-ci.com/2017-03-22-introducing-auto-cancellation
I'm not sure if our build is long enough for us to need this feature, but it could be useful when making multiple changes to a PR.

Reopening, since our build queue has been getting longer lately.

Auto cancellation is enabled for pull requests now.


Add aspire feature

You might want to consider using feature instead

Nice. this is just a playground for testing, but cool to see that...we should have done that ;-).  is there a way for dependsOn in your feature to have a minimum dotnet version (or I guess absent a version number it also reads as 'latest')

Absent number is a "latest" indeed. Unfortunately, I didn't find an easy way to pass the version of dotnet to dependsOn
E.g:
{
    "name": ".NET Aspire",
    "id": "dotnet-aspire",
    "version": "1.0.0",
    "description": "Installs the .NET Aspire. See: https://learn.microsoft.com/en-us/dotnet/aspire/fundamentals/setup-tooling",
    "options": {
        "version": {
            "type": "string",
            "proposals": [
                "latest",
                "lts",
                "none",
                "8.0",
                "7.0",
                "6.0"
            ],
            "default": "latest"
        }
    },
    "mounts": [],
    "dependsOn": {
        "ghcr.io/devcontainers/features/dotnet": {
            "version": "8.0" // I want it to be something like "$version"
        }
    }
}


fix enable button for spree

Possible solution for resolving #38
Disclaimer: Ruby newbie so take it for what it is.

Well, it passed travis, so hopefully it doesn't break rails 3.2 compatibility.  Will check tomorrow.

But this wont work on nothing but rails, right? I ment this gem should not be rails dependant

That is absolutely the goal.  Should work on vanilla rack and any rack based framework.  I just don't have much spare development time at the moment.

@phoenixek12 - I have rewritten the enable button class entirely, and released a new version of the gem, 0.6.2.  ALL of the specs in the gem are written against a Sinatra setup, so the gem is absolutely not Rails dependent.


fixing broken link to Visual E2E WebDriverIO example tests

Description
fixing broken link to Visual E2E WebDriverIO example tests
Motivation and Context
fixes a broken link (404)
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[x] Documentation fix (typos, incorrect content, missing content, etc.)

Checklist

[ ] I have read the contributing document.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

looks good, thanks!


Cant visit any site

System Details

OS: Arch Linux
Thorium Version 111.0.5563.111

Problem
Cannot visit any site other than chrome:// pages, other browsers like microsft-edge-dev and ungoogled-chromium work fine
Screenshots
If applicable, add screenshots to help explain your problem.
Additional Notes
Im using the thorium-browser-bin package from the AUR
Logs from command line launch
lel@Samsung ~ % thorium-browser
[574874:574898:0427/083542.044200:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.InvalidArgs: No such interface “org.freedesktop.portal.FileChooser”
[574874:574898:0427/083542.044258:ERROR:select_file_dialog_linux_portal.cc(274)] Failed to read portal version property
[574874:574874:0427/083542.976985:ERROR:network_service_instance_impl.cc(541)] Network service crashed, restarting service.
[574874:574874:0427/083544.735797:ERROR:network_service_instance_impl.cc(541)] Network service crashed, restarting service.
[574914:574914:0427/083546.268383:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[574874:574874:0427/083548.431676:ERROR:network_service_instance_impl.cc(541)] Network service crashed, restarting service.
[574914:574914:0427/083551.569238:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[574874:574874:0427/083553.362587:ERROR:network_service_instance_impl.cc(541)] Network service crashed, restarting service.

can you run this command:
/opt/chromium.org/thorium/thorium --disable-gpu-sandbox
and see what it does?

I get the same error and still cant visit any site

I am getting the same error of "Network service crashed, restarting service.'.
I tried both M111 and M112 from .deb for amd64 ( also with --disable-gpu-sandbox )
I get the same with Appimage
On Debian/bullseye


create MADR with list of metrics that we would like to collect and base our tests on

Fixed by https://github.com/Kong/mesh-perf/pull/19


How do I get the char_token after the new character.ai update?

I tried to follow the steps provided to get the char token but I doesn't exist, is there an alternative way?

You are using the new character.ai site (not beta.character.ai or plus.character.ai), aren't u? If so, just go back to the old site and login with the same account, the code will work again.

You are using the new character.ai site (not beta.character.ai or plus.character.ai), aren't u? If so, just go back to the old site and login with the same account, the code will work again.

that worked, thanks!

but they will close the old c.ai website soon?

I cannot access the old website anymore. When I enter "beta.character.ai" it redirects me to the new site. I cannot locate the char.token value from there, unless I am missing something?


Intero REPL often hangs emacs in IO

Evaluating a function in IO in the REPL often hangs emacs. Just a running a simple function calling getLine will usually (but not always) hang when typing some input to it, e.g:
main :: IO ()
main = do
  a <- getLine
  putStrLn "Hi"
  b <- getLine
  return ()

When it hangs the emacs process needs killing to recover.
Thanks
This is with:
Intero-20180331.1851
Emacs 25.2.2
Stack 1.6.5
on Ubuntu 17.10

Not sure if this is related, but if you try to enter multiline definition in the REPL, it hangs emacs everytime. Here's a example to hang emacs:
Starting:
  stack ghci --with-ghc ghci "--docker-run-args=--interactive=true --tty=false" --no-build --no-load concurrency
GHCi, version 8.2.2: http://www.haskell.org/ghc/  :? for help
Loaded GHCi configuration from /home/xp/.ghci
Loaded GHCi configuration from /home/xp/ws-hs/concurrency/.stack-work/intero/intero-script130374gQ
[1 of 1] Compiling Lib              ( /home/xp/ws-hs/concurrency/src/Lib.hs, interpreted ) [flags changed]
Ok, one module loaded.

> :{
> myFun a

As soon as I type myFun, before I got a chance to type the argument, or if I'm fast enough, after the first letter in the argument, emacs hangs. Reproducible every time.
Intero 0.1.32
Emacs 25.2
Stack 1.7.1
On Debian Buster

@renzhi  multiline input seems to work OK for me if I use :set +m right on the first line.
Process intero finished
Starting:
  stack ghci --with-ghc ghci "--docker-run-args=--interactive=true --tty=false" --no-build --no-load
GHCi, version 8.4.3: http://www.haskell.org/ghc/  :? for help
Loaded GHCi configuration from /Users/joe/.stack/global-project/.stack-work/intero/intero-scriptnqBGEw
λ λ :set +m
λ fooBar x = if x > 1
  then 2 else 5
Prelude| λ fooBar 3
2
λ

Just confirming that the getLine issue appears to still be a problem.
Intero 20190308.1634
Emacs 26.2
Stack <IP_ADDRESS>
On Manjaro, kernel 4.20

I am encountering the same problem. After some random testing i realized company freezes the repl when searching for completions on user input. I tried removing the delay on autocompletion which resulted in the buffer freezing on the first character press. This also happens when trying to enter multiline definitions. When i disable it the repl works as intended.
Intero 20190919.216
Emacs 26.3
Stack 2.1.3
On Manjaro, kernel 4.19


ocamlPackages.curses: 1.0.3 -> 1.0.4

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/ocaml-curses/versions.
meta.description for ocamlPackages.curses is: '"OCaml Bindings to curses/ncurses"'.

Checks done (click to expand)

built on NixOS

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 1.0.4 with grep in /nix/store/6c6ksfna3imx7cp01db1bj13mw4siabg-ocaml-curses-1.0.4

directory tree listing: https://gist.github.com/256070d516230579722fd43382bcacfe

du listing: https://gist.github.com/3c2e9a301eb6be2d3792e89627e06dfb

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

3 total rebuild path(s)
1 package rebuild(s)
1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)
First fifty rebuilds by attrpath
virt-top

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/6c6ksfna3imx7cp01db1bj13mw4siabg-ocaml-curses-1.0.4 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)
Or, build yourself:
nix-build -A ocamlPackages.curses https://github.com/r-ryantm/nixpkgs/archive/2d5545daaf8b86aeceacbc292ab8201b90f3007f.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/6c6ksfna3imx7cp01db1bj13mw4siabg-ocaml-curses-1.0.4
ls -la /nix/store/6c6ksfna3imx7cp01db1bj13mw4siabg-ocaml-curses-1.0.4/bin

cc @volth for testing.

@GrahamcOfBorg build virt-top


Documentation clean up. Moved back to RTD

List of changes:

Changed directories in vent/core/ to underscore from dashes
Changed setup.py to reflect those changes.
Removed docs/build. Basically, all HTML files are purged
Edited plugins.py so autodocs stops complaining about the spacing
Edited the Makefile so it correctly ignores the files inside rq_worker and rq_dashboard because those files don't need to be documented. Also ignores the various test files within the core files, such as test_file_drop

I really really hope this is the last time we need to deal with this.

Also, my computer is haunted. That invalid email is still me.

Ton of codeclimate issues because of the recent directory name changes?

re codeclimate issues - yeah, they're pre-existing, just moved.

Codecov Report

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

@@            Coverage Diff             @@
##           master     #667      +/-   ##
==========================================
+ Coverage   88.82%   88.88%   +0.05%
==========================================
  Files          47       47
  Lines        3419     3419
==========================================
+ Hits         3037     3039       +2
+ Misses        382      380       -2

Impacted Files
Coverage Δ

vent/api/plugins.py
89.94% <ø> (ø)
:arrow_up:

vent/core/rq_dashboard/test_rq_dashboard.py
100% <ø> (ø)

vent/core/rq_worker/settings.py
100% <ø> (ø)

...ent/core/rmq_es_connector/test_rmq_es_connector.py
100% <ø> (ø)

vent/core/network_tap/ncontrol/rest/start.py
100% <ø> (ø)

vent/core/network_tap/ncontrol/rest/create.py
38.46% <ø> (ø)

vent/core/network_tap/ncontrol/test_ncontrol.py
100% <ø> (ø)

vent/core/rq_worker/file_watch.py
53.48% <ø> (ø)

vent/core/rq_dashboard/rq_dash_settings.py
100% <ø> (ø)

vent/core/file_drop/test_file_drop.py
100% <ø> (ø)

... and 10 more

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 fec6f54...cdb31de. Read the comment docs.


Playbooks for sandbox & geotaste

This PR adds a playbook for geotaste, which is our first playbook deploying to the sandbox server; future apps will want to refactor this a bit.

Iceboxing the sandbox 🤣 for geotaste for now. Its nginx and related configs will be continued into/superceded by https://github.com/Princeton-CDH/cdh-ansible/pull/149


fix AppInsights keys

@xscript,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

Codecov Report

Merging #8 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master      #8   +/-   ##
======================================
  Coverage    63.8%   63.8%
======================================
  Files          20      20
  Lines         442     442
  Branches       70      70
======================================
  Hits          282     282
  Misses        140     140
  Partials       20      20

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 13fdd28...ed2d0e4. Read the comment docs.


Recommendation for value of SessionExpiryInSeconds needs explanation

The documentation states
"We recommend that you set the value of SessionExpiryInSeconds to be a short period (1200 seconds), while the value of KeepAliveInDays can be set to a relatively long period (30 days)"
The reason for the recommendation should be provided.

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

ID: 9627f2fa-6005-9c15-2824-03b7bcd4aae9
Version Independent ID: 619e1eea-ed67-994b-7eee-469123e9b7ef
Content: Configure session behavior - Azure Active Directory B2C
Content Source: articles/active-directory-b2c/session-behavior.md
Service: active-directory
Sub-service: b2c
GitHub Login: @kengaderdus
Microsoft Alias: kengaderdus

@rollandjb
Thanks for your feedback! I've assigned this issue to the author who will investigate and update as appropriate.


Incorrect handling of table.init with out-of-bounds element segment

Subject of the issue
iwasm fails to correctly handle table.init when attempting out-of-bounds table access, resulting in unexpected behavior or a failure to throw the expected exception.
Test case
(module
  (table 4 funcref)

  (elem (i32.const 0) funcref (ref.null func) (ref.null func))

  (func $main
    (table.init 0 (i32.const 0) (i32.const 0) (i32.const 1))
  )

  (export "main" (func $main) )
)

Your environment

OS: Ubuntu 20.04
CPU: amd64
WAMR version: iwasm 1.2.3
Commands:

iwasm --fast-jit -f main ./program.wasm
iwasm --multi-tier-jit -f main./program.wasm

Expected behavior
The WebAssembly runtime should detect the out-of-bounds table access during table.init and report the error. A valid error message should look like:
Out of bounds table access

fail to reproduce the result .

Could you please provide more details?

Which build of iwasm are you using? If it's built from source, which branch and commit are you on and your compilation combination?
What toolchain are you using to convert .wat files to .wasm?

Here are my steps:

Using main branch, commit https://github.com/bytecodealliance/wasm-micro-runtime/commit/04f1071f1c08b47d734acf0e74511bfeef7c5568
cmake -S . -B build -DWAMR_BUILD_FAST_JIT=1
/opt/wabt-1.0.36/bin/wat2wasm --no-check  ./test.wat -o test.wasm
$ /workspaces/wasm-micro-runtime/product-mini/platforms/linux/build/iwasm --fast-jit -f main ./test.wasm -> Exception: out of bounds table access


Make BodyPart can be requested on demand without loading whole bodypart into queue

In https://gist.github.com/kojilin/575fdeb752a22e6d6a328c5ce545d4a1, it doesn’t work, because https://gist.github.com/kojilin/575fdeb752a22e6d6a328c5ce545d4a1#file-multipartcollector-java-L45 trigger the first bodypart. And DecodedHttpStreamMessage will stop request upstream HttpData, because it thinks the downstream just need 1 bodypart. So it will stop without request/onNext anymore.
So even I subscribe the body part and request 1 HttpData, it’s just request the queue in memory of DefaultStreamMessage. What I want is keep reading DecodedHttpStreamMessage’s upstream, but not request next bodypart directly. IIUC, the code works like below now?

subscribe StreamMessage<BodyPart> and call request(1) on subscription.
After request 1 bodypart, MimeParser and MultipartDecoder will continue request until add BodyPart to queue. see https://github.com/line/armeria/blob/master/core/src/main/java/com/linecorp/armeria/common/multipart/MimeParser.java#L233-L237
The subscriber of BodyPart call request(1) on subscription. And it won't trigger the askUpstreamForElement of DecodedHttpStreamMessage but just request data fromDefaultStreamMessage made at https://github.com/line/armeria/blob/master/core/src/main/java/com/linecorp/armeria/common/multipart/MimeParser.java#L233.
Stream of DecodedHttpStreamMessage stuck.

If I want to force my code working, I need to do multipartSubscription.request(Long.MAX_VALUE);  to make it just keeping reading all bodypart items.
Not sure how to modify DecodedHttpStreamMessage & MimeParser yet. But looks like we may need to modify DefaultStreamMessage at https://github.com/line/armeria/blob/master/core/src/main/java/com/linecorp/armeria/common/multipart/MimeParser.java#L233 to make requesting of DefaultStreamMessage can trigger DecodedHttpStreamMessage requesting upstream and let it send more data to MimeParser and add data to queue at https://github.com/line/armeria/blob/master/core/src/main/java/com/linecorp/armeria/common/multipart/MimeParser.java#L251 ?

That sounds like a bug. We need to deliver a request of BodyPart.content() to the upstream StreamMessage that contains raw multipart data.

DecodedHttpStreamMessage seems to need a new API that can directly request elements to upstream such as:

public final class DecodedHttpStreamMessage<T> extends DefaultStreamMessage<T> implements HttpDecoderOutput<T> {
    /**
     * Directly requests n elements to the {@code streamMessage} that was specified when creating this
     * {@link StreamMessage}. It is useful when the {@link HttpDecoder} emits another {@link StreamMessage}s.
     * ...
     */
    // But not sure it is the best solution. 😅
    public void askUpstreamForElements(long n) {
        assert upstream != null;
        upstream.request(n);
    }
}

DefaultStreamMessage has a callback that can listen to a request.
https://github.com/line/armeria/blob/207e1d0597cce8548793f40bd7696ef4b8bdb3d8/core/src/main/java/com/linecorp/armeria/common/stream/DefaultStreamMessage.java#L169-L172
We get to override the onRequest() callback invoking askUpstreamForElements(n) that when creating DefaultStreamMessage in MimeParser`.
https://github.com/line/armeria/blob/cc416cf06682c2e200b9e77315719bedde66cb4d/core/src/main/java/com/linecorp/armeria/common/multipart/MimeParser.java#L233


[BACKEND] Mark Attendance, Attendance, Backend Logic, Routing, Controllers, Services Need To Be Created

As the title states.

Done.


Custom openssl config in ssl-opt.sh

ssl-opt.sh: supply custom OpenSSL configuration
This allows us to control default OpenSSL behaviour, in this case ensuring new versions of OpenSSL will accept 1024 bit DH keys. This is needed for some tests to pass on Ubuntu 20.04, e.g.:
ssl-opt.sh -f "Fallback SCSV: default, openssl server"

https://github.com/ARMmbed/mbedtls/pull/4429 made a simpler fix to handle dhparams variation. Is this pull request still useful?


WSL2: Virtual hard disk files must be uncompressed and unencrypted and must not be sparse

Please fill out the below information:

Your Windows build number:  Microsoft Windows [Version 10.0.18917.1000]

What you're doing and what's happening:
I am trying to launch new distro under WSL2. I did first wsl --set-default-version 2, went to the shop and downloaded Ubuntu. Then I went to Start and clicked Ubuntu. After couple of seconds I was greeted with following error:

What's wrong / what should be happening instead:

I should get a brand new distro under WSL2.

Attaching logs.
logs.zip

OK, I managed to resolve it by myself after some intensive Googling by running those two commands:
fsutil behavior set disableencryption 1
fsutil behavior set disablecompression 1

and rebooting.
Now it just works™
Nonetheless I dont remember changing anything about NTFS behavior myself. Could it be that my laptop manufacturer (Dell) did it? Maybe this should be handled more gracefully by WSL2. Could WSL2 set those properties per virtual hard disk file to prevent others from hitting this?

Thank you very much for filing this issue.  It's interesting that I'm not seeing that error in the logs, I'll have to dig into why that isn't showing up.  I am seeing an invalid parameter error when trying to mount the VHD, so I bet that's the inner error.
When creating the VHD's I'll make sure that compression and encryption are both disabled on them.

I can not update my existing distro, I am getting the same error in PS when trying to run the wsl --set-version. The workaround (set disableencryption and disablecompression, followed by reboot) did not help.
I can install a different distro and that works. I only tried that after I tried the workaround.

wsllogs.zip

Also, after hitting the error subsequent attempts give a different error: "The operation timed out because a response was not received from the virtual machine or container." unless I use hcdiag to kill the wsl container.

I'm encountering the same issue as @caffme. I assume this is because the folder the VHD is supposed to go into is marked as compressed or something, even though I've done the fsutil workaround. Where is the WSL2 VHD supposed to be located? I can't find any documentation on that, even though the "expand your VHD" documents mention putting in the path to it.

Okay, after some lucky guesses I've confirmed it and I have an addendum to the workaround (cc @caffme in case this works for you as well) - go to the Ubuntu directory in your profile folder (something like %USERPROFILE%\AppData\Local\Packages\CanonicalGroupLimited...), right click on "LocalState", Properties, Advanced, deselect "Compress contents" (and I suppose "Encrypt contents" as well if that's checked). When it asks whether you want to apply to just this folder or to all subfolders and files, you can say "just this folder", because all you're doing is clearing that "compress" flag. After that the wsl --set-version command should work.

I had the same error. Fixed with a combination of @squeaky-pl and @dmchurch solutions

@dmchurch Thanks, yes that worked for me. I wondered about checking that but had no idea where WSL stored anything, good hunting!

Thanks, the workaround of manually disabling compression on %localappdata%\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc worked for me. My guess is that the compression was enabled by the update that started doing that automatically a while ago to free up space for more updates (except from my experience it never actually decompresses them afterwards, unlike what the official website says)

Just wanted to drop in and say thanks to @dmchurch for the tip about uncompressing those folders (and everyone else in the discussion helping each other find answers)
And afterwards I got the error about timing out ... so I just restarted the computer and tried again and it worked just fine.

When creating the VHD's I'll make sure that compression and encryption are both disabled on them.

Shouldn't the more correct solution be to support compression/decompression and encryption/decryption like you would with any other VHD utility? I'd say disabling is a good hot fix, but will need revisiting.

@WSLUser - Indeed, we are looking into better solutions.

Here's what worked for me...
Go to this link: https://docs.microsoft.com/en-us/windows/wsl/install-win10
When you're installing linux distro, do option 3: Download and manually unpack and install (for Windows Server - instructions here)

I tried @dmchurch and @squeaky-pl solutions, and although I got rid of the "The requested operation could not be completed due to a virtual disk system limitation", now I am getting:

Exporting the distribution failed.
bsdtar: Write error

Just ran into this issue and had to restart the computer a few times before I saw my distro running under wsl -l -v, fwiw.  I ran through the fsutil commands, as well as manually decompressing the package in %localappdata%\Packages\CanonicalGroup... I'm guessing the VHD is compressed until it's started, at which point the conversion works?

OK, I managed to resolve it by myself after some intensive Googling by running those two commands:
fsutil behavior set disableencryption 1
fsutil behavior set disablecompression 1

and rebooting.
Now it just works™
Nonetheless I dont remember changing anything about NTFS behavior myself. Could it be that my laptop manufacturer (Dell) did it? Maybe this should be handled more gracefully by WSL2. Could WSL2 set those properties per virtual hard disk file to prevent others from hitting this?

Based on my experience, because of this command, I cannot install windows terminal from windows store, so I set it back to zero,
cheers!

@WSLUser - Indeed, we are looking into better solutions.

Is there any word on when WSL 2 will allow the virtual disk to be on a Bitlocker device?  I tried it last week (19037.1) and WSL 2 fails to start when the ext4.vhdx file is encrypted.
I'd rather not use Ubuntu disk encryption in the VM if I can use Bitlocker instead

Tried solutions from comments
https://github.com/microsoft/WSL/issues/4103#issuecomment-501511504
https://github.com/microsoft/WSL/issues/4103#issuecomment-501885534
by @squeaky-pl  and @dmchurch .
Didn't work.
Restarted a couple of times.
The error message is either

The requested operation could not be completed due to a virtual disk system limitation.  Virtual hard disk files must be uncompressed and unencrypted and must not be sparse.

or timing out.
Checked BIOS. The virtualization is enabled.
Laptop Dell XPS 15 9560.

I used @dmchurch method to solve the above problem, but I used this command instead of clicking
compact.exe /U /S  `
"$env:USERPROFILE\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows*"

Maybe faster

Thank you @dmchurch ! Great detective work.

Same issue with me.  ITome 's suggestion worked for me.  https://github.com/microsoft/WSL/issues/4394#issuecomment-520448141

Hi,
the sad news, I do not have a solution, but maybe a helpinng workaround, which helped me.
I tried all ideas over here (and some further ones from the whole web) without success.
For me creating a new folder %localappdata%\Packages\DebianWSL2 for the WSL2-version of my running Debian (WSL1) and executing the following helped
wsl --export Debian - | wsl --import DebianWSL2 %localappdata%\Packages\DebianWSL2 - --version 2

Okay - it took some time, but it worked. Good luck.
By the way - in the new folder the growing vhdx-file could be watched and the command wsl -l -v showed
  NAME            STATE           VERSION
* Debian          Converting      1
  DebianWSL2      Installing      2

while running.

Thank you @Barry1! It worked for me

OK, I managed to resolve it by myself after some intensive Googling by running those two commands:
fsutil behavior set disableencryption 1
fsutil behavior set disablecompression 1

and rebooting.
Now it just works™
Nonetheless I dont remember changing anything about NTFS behavior myself. Could it be that my laptop manufacturer (Dell) did it? Maybe this should be handled more gracefully by WSL2. Could WSL2 set those properties per virtual hard disk file to prevent others from hitting this?

Also, @squeaky-pl solution works, but after rebooting you have to uninstall and install again Ubuntu. Hope this helps.

same problem here fixed with @dmchurch solution

Problem solved using the @dmchurch solution, specifically:
"go to the Ubuntu directory in your profile folder (something like %USERPROFILE%\AppData\Local\Packages\CanonicalGroupLimited...), right click on "LocalState", Properties, Advanced, deselect "Compress contents"
Target:
Installing Ubuntu 20.04 onto wsl2

The problem seems to be that the NTFS file system cannot be compressed. I decompressed my user directory from file explorer -> properties -> advanced and everything worked.

Also could change location where apps install, in "Settings"→"Change where new content is saved"→"New apps will save to", select another partition.

Okay, after some lucky guesses I've confirmed it and I have an addendum to the workaround (cc @caffme in case this works for you as well) - go to the Ubuntu directory in your profile folder (something like %USERPROFILE%\AppData\Local\Packages\CanonicalGroupLimited...), right click on "LocalState", Properties, Advanced, deselect "Compress contents" (and I suppose "Encrypt contents" as well if that's checked). When it asks whether you want to apply to just this folder or to all subfolders and files, you can say "just this folder", because all you're doing is clearing that "compress" flag. After that the wsl --set-version command should work.

This fixed my issue

Okay, after some lucky guesses I've confirmed it and I have an addendum to the workaround (cc @caffme in case this works for you as well) - go to the Ubuntu directory in your profile folder (something like %USERPROFILE%\AppData\Local\Packages\CanonicalGroupLimited...), right click on "LocalState", Properties, Advanced, deselect "Compress contents" (and I suppose "Encrypt contents" as well if that's checked). When it asks whether you want to apply to just this folder or to all subfolders and files, you can say "just this folder", because all you're doing is clearing that "compress" flag. After that the wsl --set-version command should work.

This fixed my issue

Same for me. Did this get added to install instructions? I must have skimmed the page.

Thanks you

Thanks for the fixes above. I used @squeaky-pl and @dmchurch 's solutions, including rebooting. It still showed up the same error. I then reset the Ubuntu 20.04 app, and opened it, and it worked fine.

Same issue, slightly easier fix.

Upgraded from Windows 10 1909 to 2004
Removed an old Legacy distribution (via wsl --unregister)
Installed latest Ubuntu 20.x from store
Launched, received noted error
Right-clicked on %LOCALAPPDATA%\Packages\CanonicalGroupLimied.UnbuntuonWindows_
Properties->General->Advanced, unchecked 'Compress contents to save disk space', applied to all folders/subfolders
Re-launched without issue

In my case, no reboot or reinstall of the app was necessary (effectively, just @dmchurch's solution)

@dmchurch fix works for Ubuntu but not Fedora or Kali strangely enough.

@nmbecke Different distribution would have different package folders. Mine Debian is in
%LOCALAPPDATA%\Packages\TheDebianProject.DebianGNULinux_76v4gfsz19hv4\LocalState
How to find your distribution folder:

Go to %LOCALAPPDATA%\Packages
Search for fsserver
It will list all wsl distribution folder
Go to those folder and Un-Compress and/or Un-Encrypt that folder only. As in do not apply to children
Profit

@quangkieu yeah that’s understood, I’m stating that the fix does not work for the fedora release currently available on the MS store. It works on Ubuntu 18.04 and 20.04.

OK, I managed to resolve it by myself after some intensive Googling by running those two commands:
fsutil behavior set disableencryption 1
fsutil behavior set disablecompression 1

and rebooting.
Now it just works™
Nonetheless I dont remember changing anything about NTFS behavior myself. Could it be that my laptop manufacturer (Dell) did it? Maybe this should be handled more gracefully by WSL2. Could WSL2 set those properties per virtual hard disk file to prevent others from hitting this?

I did this and it did not work. The same problem remains.

Same issue, slightly easier fix.
* Upgraded from Windows 10 1909 to 2004

* Removed an old Legacy distribution (via wsl --unregister)

* Installed latest Ubuntu 20.x from store

* Launched, received noted error

* Right-clicked on %LOCALAPPDATA%\Packages\CanonicalGroupLimied.UnbuntuonWindows_

* Properties->General->Advanced, unchecked 'Compress contents to save disk space', applied to all folders/subfolders

* Re-launched without issue

In my case, no reboot or reinstall of the app was necessary (effectively, just @dmchurch's solution)

This Works!

Compressed disks are now supported in 20211.
Be aware there is a performance penalty for running in this configuration. We are investigating adding support for encrypted VHDs.

Okay, after some lucky guesses I've confirmed it and I have an addendum to the workaround (cc @caffme in case this works for you as well) - go to the Ubuntu directory in your profile folder (something like %USERPROFILE%\AppData\Local\Packages\CanonicalGroupLimited...), right click on "LocalState", Properties, Advanced, deselect "Compress contents" (and I suppose "Encrypt contents" as well if that's checked). When it asks whether you want to apply to just this folder or to all subfolders and files, you can say "just this folder", because all you're doing is clearing that "compress" flag. After that the wsl --set-version command should work.

Thank you for the solution. This works.

Upgrade Windows 10 version from 190x to 2004
Right-clicked on %LOCALAPPDATA%\Packages{yourPackgeName}
Properties->General->Advanced, unchecked 'Compress contents to save disk space', applied to this folder only
Fail to change wsl version to 2
Right-clicked on %LOCALAPPDATA%\Packages{yourPackgeName}\LocalState
Properties->General->Advanced, unchecked 'Compress contents to save disk space', applied to this folder only
Success to change wsl version to 2

ecause all you're doing

It worked using thi ssolution only after I  applied to all folders/subfolders. Applying to this folder only didn'y work.

Try checking the folder or drive if it was compressed to save disk space. Uncheck the box and try again. It worked for me.

Try checking the folder or drive if it was compressed to save disk space. Uncheck the box and try again. It worked for me.

Thanks for answers
pt., 1 sty 2021 o 17:46 lukasgodfrey<EMAIL_ADDRESS>napisał(a):

Try checking the folder or drive if it was compressed to save disk space.
Uncheck the box and try again. It worked for me.
[image: image]
https://user-images.githubusercontent.com/5653564/103442730-e45aee00-4c93-11eb-80c2-f5497a2f0187.png
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/WSL/issues/4103#issuecomment-753342610, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AOE3B22WDAP2G5NSK2BUQE3SXX357ANCNFSM4HXU5RAA
.

Thanks for answers
pt., 1 sty 2021 o 17:46 lukasgodfrey<EMAIL_ADDRESS>napisał(a):

Try checking the folder or drive if it was compressed to save disk space.
Uncheck the box and try again. It worked for me.
[image: image]
https://user-images.githubusercontent.com/5653564/103442730-e45aee00-4c93-11eb-80c2-f5497a2f0187.png
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/WSL/issues/4103#issuecomment-753342610, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AOE3B22WDAP2G5NSK2BUQE3SXX357ANCNFSM4HXU5RAA
.

Okay, after some lucky guesses I've confirmed it and I have an addendum to the workaround (cc @caffme in case this works for you as well) - go to the Ubuntu directory in your profile folder (something like %USERPROFILE%\AppData\Local\Packages\CanonicalGroupLimited...), right click on "LocalState", Properties, Advanced, deselect "Compress contents" (and I suppose "Encrypt contents" as well if that's checked). When it asks whether you want to apply to just this folder or to all subfolders and files, you can say "just this folder", because all you're doing is clearing that "compress" flag. After that the wsl --set-version command should work.

This fixed my issue

Same for me. Did this get added to install instructions? I must have skimmed the page.

This fixed my issue too

Okay, after some lucky guesses I've confirmed it and I have an addendum to the workaround (cc @caffme in case this works for you as well) - go to the Ubuntu directory in your profile folder (something like %USERPROFILE%\AppData\Local\Packages\CanonicalGroupLimited...), right click on "LocalState", Properties, Advanced, deselect "Compress contents" (and I suppose "Encrypt contents" as well if that's checked). When it asks whether you want to apply to just this folder or to all subfolders and files, you can say "just this folder", because all you're doing is clearing that "compress" flag. After that the wsl --set-version command should work.

This fixed my issue

Same for me. Did this get added to install instructions? I must have skimmed the page.

This fixed my issue too

OK, I managed to resolve it by myself after some intensive Googling by running those two commands:
fsutil behavior set disableencryption 1
fsutil behavior set disablecompression 1

and rebooting.
Now it just works™
Nonetheless I dont remember changing anything about NTFS behavior myself. Could it be that my laptop manufacturer (Dell) did it? Maybe this should be handled more gracefully by WSL2. Could WSL2 set those properties per virtual hard disk file to prevent others from hitting this?

I copied a pasted those commands, one at a time, into Powershell, restarted my pc and BAM! Every distro I wanted is now installing again. Thanks for the save!!

OK, I managed to resolve it by myself after some intensive Googling by running those two commands:
fsutil behavior set disableencryption 1
fsutil behavior set disablecompression 1

and rebooting.
Now it just works™
Nonetheless I dont remember changing anything about NTFS behavior myself. Could it be that my laptop manufacturer (Dell) did it? Maybe this should be handled more gracefully by WSL2. Could WSL2 set those properties per virtual hard disk file to prevent others from hitting this?

I copied a pasted those commands, one at a time, into Powershell, restarted my pc and BAM! Every distro I wanted is now installing again. Thanks for the save!!

i hade a problem to and i did not know how to fix it and it was a error code 0xc03a001a and i did not help with all the solutions of yours. so i searched up in apps from settings and searched kali linux or ubuntu and healed/ reinstalled it and now it works again and i can use kali linux or ubuntu
so for people that dont have a sultion anymore here you go

Microsoft should really do something about WSL, it often causes the problem with the docker specially.

WSL2 works perfectly last Friday, and It gave me this error just right after 2 days.
I don't know why this happened and why the system can update the file settings itself, compressing some of the files on my disk, which is ridiculous.
I can't work actually because of this issue.

I think they dropped an update for the WSL around that time. My stance on Open-Source software, especially something of this level: I can't complain, it is free, all I can do is submit feedback/bugs when I run into them and solider on!

Okay, after some lucky guesses I've confirmed it and I have an addendum to the workaround (cc @caffme in case this works for you as well) - go to the Ubuntu directory in your profile folder (something like %USERPROFILE%\AppData\Local\Packages\CanonicalGroupLimited...), right click on "LocalState", Properties, Advanced, deselect "Compress contents" (and I suppose "Encrypt contents" as well if that's checked). When it asks whether you want to apply to just this folder or to all subfolders and files, you can say "just this folder", because all you're doing is clearing that "compress" flag. After that the wsl --set-version command should work.

Just dropping by to say that this helped for me as well. I'm on a Surface Pro and disk space is becoming sparce. After a reboot, I got the error above. I suppose that due to the limited disk space, the compression of the virtual machine kicked in. Unchecking the "compress" flag, followed by wls --shutdown in powershell, enabled wls2 without the need of a compleet reboot.
Thanks!

I was worried BitLocker could be part of the problem with encryption part, but it was not a problem. I do have compression on the whole drive and partial setting turning off compression using file explorer for%USERPROFILE%\AppData\Local\Packages\<some linux os> works for me. I have to turn off compression on all folders below <some linux os> to get it to work.

If you find this error while googling and the file attributes are fine, the solution is to run
fsutil sparse setflag path/to/file.vhdx 0

Okay, after some lucky guesses I've confirmed it and I have an addendum to the workaround (cc @caffme in case this works for you as well) - go to the Ubuntu directory in your profile folder (something like %USERPROFILE%\AppData\Local\Packages\CanonicalGroupLimited...), right click on "LocalState", Properties, Advanced, deselect "Compress contents" (and I suppose "Encrypt contents" as well if that's checked). When it asks whether you want to apply to just this folder or to all subfolders and files, you can say "just this folder", because all you're doing is clearing that "compress" flag. After that the wsl --set-version command should work.

WORKING FOR ME !!!!

Install-Module -Force -Name Carbon
Import-Module 'Carbon'
Disable-CNtfsCompression -Path "$env:USERPROFILE\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu20.04onWindows_79rhkp1fndgsc\LocalState"

Okay, after some lucky guesses I've confirmed it and I have an addendum to the workaround (cc @caffme in case this works for you as well) - go to the Ubuntu directory in your profile folder (something like %USERPROFILE%\AppData\Local\Packages\CanonicalGroupLimited...), right click on "LocalState", Properties, Advanced, deselect "Compress contents" (and I suppose "Encrypt contents" as well if that's checked).

I just got the error mentioned in this issue after my computer was restarted from the latest Windows Update. I'm guessing the update process went and automatically compressed some folders to make space on the machine for updates? In any case clearing this flag on this folder did the trick, I was able to start Ubuntu 20.04 WSL2 again without having to restart the computer.

Same here. I got the error after updating Windows.

When it asks whether you want to apply to just this folder or to all subfolders and files, you can say "just this folder", because all you're doing is clearing that "compress" flag.

For me it only worked after I uncompressed all subdirectories and files (explicitly ext4.vhdx).

The most upvoted solution does not work for me, after attempting a reboot multiple times.
What did work was very similar, though:
Instead of unchecking the compression on LocalState within %localappdata%\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc, I actually unchecked compression at the Packages level: %localappdata%\Packages, applying to all subfolders.
I'd assume unchecking and applying to ``%localappdata%\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc` would work as well, but I was getting antsy.

uninstalling 18.04 and installing 20.4 solved my problem

Okay, after some lucky guesses I've confirmed it and I have an addendum to the workaround (cc @caffme in case this works for you as well) - go to the Ubuntu directory in your profile folder (something like %USERPROFILE%\AppData\Local\Packages\CanonicalGroupLimited...), right click on "LocalState", Properties, Advanced, deselect "Compress contents" (and I suppose "Encrypt contents" as well if that's checked). When it asks whether you want to apply to just this folder or to all subfolders and files, you can say "just this folder", because all you're doing is clearing that "compress" flag. After that the wsl --set-version command should work.

This worked for me too.
Also it would be better to uncheck File/Folder is ready for arciving either on root folder of your distro selecting apply to all files and subfolders or just on LocalState/ext4.vhdx to prevent this problem in future.

Decompressing the *.vhdx file won't work as you still won't be able to get the network connection from WSL2. Unless you don't plan to apt update ever again that is.

Okay, after some lucky guesses I've confirmed it and I have an addendum to the workaround (cc @caffme in case this works for you as well) - go to the Ubuntu directory in your profile folder (something like %USERPROFILE%\AppData\Local\Packages\CanonicalGroupLimited...), right click on "LocalState", Properties, Advanced, deselect "Compress contents" (and I suppose "Encrypt contents" as well if that's checked). When it asks whether you want to apply to just this folder or to all subfolders and files, you can say "just this folder", because all you're doing is clearing that "compress" flag. After that the wsl --set-version command should work.

Worked for me, thanks

Please in the error message at least tell me which file is wrong!
Yes, I have compressed LocalState\ext4.vhdx to save space, that was 2 years ago, and until recently everything just worked fine. Now, 2 years later,
I get a random error when starting Ubuntu, and I get a flash of a command line when starting bash. Please add some user facing error handling, compressing and encrypting disks nowadays is pretty commonplace, isn't it?

I have been working on an issue which relates to this and so far I have not been able to reproduce this in windows 11. Does this issue occur when only the vhdx is compressed or the entire drive is compressed?

Should be either. My drive was not compressed, only a select few space-wasting files.

Dropping in to say I had this issue and I couldn't solve it for the life of me until I realized the drive was set for "Compress this drive to save disk space" in Disk Management
Unchecked box and formatted drive solved it for me
Hope it helps someone :)

Ran into same error: 0xc03a0001a. Tried advice from @squeaky-pl
fsutil behavior set disableencryption 1
fsutil behavior set disablecompression 1
with restart
Then advice from @dmchurch to locate
%USERPROFILE%\AppData\Local\Packages\CanonicalGroupLimited...), right click on "LocalState", Properties, Advanced, deselect "Compress contents"
with restart
Still encountered error. Then...tried checking the "compress contents" and applying the change. Received an error that compression couldn't be applied since the location was de-compressed (from executing the fsutil command previously). So unchecked the box and applied (to all subfolders). Did the same for the other folder in the Packages folder (there were two CanonicalGroupLimited Ubuntu folders), restarted and the install went through...finally!
Wanted to let folks know in case it was helpful to someone who tried this advice already and was still running into the issue.
Thanks @dmchurch and @squeaky-pl. After combining your advice and undoing/redoing the folder compression, it worked!

Okay, after some lucky guesses I've confirmed it and I have an addendum to the workaround (cc @caffme in case this works for you as well) - go to the Ubuntu directory in your profile folder (something like %USERPROFILE%\AppData\Local\Packages\CanonicalGroupLimited...), right click on "LocalState", Properties, Advanced, deselect "Compress contents" (and I suppose "Encrypt contents" as well if that's checked). When it asks whether you want to apply to just this folder or to all subfolders and files, you can say "just this folder", because all you're doing is clearing that "compress" flag. After that the wsl --set-version command should work.

this worked for me as well!

Okay, after some lucky guesses I've confirmed it and I have an addendum to the workaround (cc @caffme in case this works for you as well) - go to the Ubuntu directory in your profile folder (something like %USERPROFILE%\AppData\Local\Packages\CanonicalGroupLimited...), right click on "LocalState", Properties, Advanced, deselect "Compress contents" (and I suppose "Encrypt contents" as well if that's checked). When it asks whether you want to apply to just this folder or to all subfolders and files, you can say "just this folder", because all you're doing is clearing that "compress" flag. After that the wsl --set-version command should work.

Deselecting only the UbuntuonWindows's LocalState didn't solve it for me
C:\Users\%USERPROFILE%\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState
but also deselecting the Ubuntu's LocalState solved it.
C:\Users\%USERPROFILE%\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc\LocalState
I didn't even have to restart anything before running --set-version Ubuntu 2 again.
Thank you.

@krzys-h is spot on, that KB4023057 appears to compress that folder %USERPROFILE%\AppData\Local\Packages\ but the KB article says it will uncompress it when it's done, but that is false. It keeps everything compressed all the time, and thus this super long thread on why a simple command line prompt doesn't work.

bfolders and files, you can say "just this folder", because all you're doing is clearing that "compress" flag. After that the wsl --set-version command should work.

This worked for me too.

WORKS for me.  Thanks @dmchurch

Okay, after some lucky guesses I've confirmed it and I have an addendum to the workaround (cc @caffme in case this works for you as well) - go to the Ubuntu directory in your profile folder (something like %USERPROFILE%\AppData\Local\Packages\CanonicalGroupLimited...), right click on "LocalState", Properties, Advanced, deselect "Compress contents" (and I suppose "Encrypt contents" as well if that's checked). When it asks whether you want to apply to just this folder or to all subfolders and files, you can say "just this folder", because all you're doing is clearing that "compress" flag. After that the wsl --set-version command should work.

WORKS for me . Thanks @dmchurch

Okay, after some lucky guesses I've confirmed it and I have an addendum to the workaround (cc @caffme in case this works for you as well) - go to the Ubuntu directory in your profile folder (something like %USERPROFILE%\AppData\Local\Packages\CanonicalGroupLimited...), right click on "LocalState", Properties, Advanced, deselect "Compress contents" (and I suppose "Encrypt contents" as well if that's checked). When it asks whether you want to apply to just this folder or to all subfolders and files, you can say "just this folder", because all you're doing is clearing that "compress" flag. After that the wsl --set-version command should work.

Works for me as of today. Difference was that I uncompressed all subfolders from the distro folder but finally got a "Conversion complete" message when setting version to 2.

This error might also occur if you have manually set your WSL instance into sparse mode.
Turns out there are two ways to do it: in .wslconfig and in terminal via wsl --manage Ubuntu-20.04 --set-sparse true.
To check whether your vhd is in sparse mode you should go to its LocalState folder and check if ext4.vhdx size on disk is smaller than its actual size.
To unsparse it you should remove sparseVhd=True from .wslconfig and do wsl --manage Ubuntu-20.04 --set-sparse false.

I deleted the entire CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc folder and my Ubuntu no longer works at all. I've tried everything, the error that appears in the Ubuntu application is Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070002
Error: 0x80070002 The system cannot find the specified file.
and the other terminal error when I try to run a command such as: wsl
this other error message appears
The system cannot find the specified path.
Error code: Wsl/CallMsi/ERROR_PATH_NOT_FOUND

Does anyone know what to do?

Wow; I did not know this was a thing.
So, my ext4.vhdx for Docker Desktop was a bit big and I figured I'd enable NTFS compression on it. Didn't save much anyway, but then I started having WSL issues after, hadn't used Docker Desktop in a few days but after rebooting after a Windows Update (which was the first thing I blamed, of course) WSL instances weren't starting up (non-Docker ones, I wasn't even using Docker at the time) and I was able to kill WSL in task manager and get my Ubuntu instance running. I couldn't even kill WSL using wsl --shutdown or by stopping it in services.msc or even PS Get-Service WSLService | Stop-Service (though I could stop/restart LxssManager with PS.
Didn't think about it for a few days and needed Docker today and it wouldn't start, just hung. Tried the usual, Windows Update, Reboot, restart services, nothing.
Checked Event Viewier:

Dunno if anything broke while it was compressing after enabling compression; 7-zip seems to read it file other than mentioning a header error.
Can't disable compression on the file either now:

Same error using compact.exe.. Figured I'd copy it to another drive and copy back to disable compression; just as I was typing this I got an error about not enough disk space, the target drive definitely has enough space so I was thinking 'WTF' again but now my C: is completely filled (I guess it decompressing it on the same drive before copying?), space isn't being reclaimed after the copy failure and I don't even know where to start looking to purge the cache.
Note to self and anyone else; Don't ever use NTFS compression on WSL VHDX files! Ever!
I'm about to just obliterate it, it's 99.99% Docker cache and ephermal stuff, but I'd still rather not.

For me, nothing above was working, I just kept getting the "must not be encrypted or compressed" error. Even wsl --manage Ubuntu-20.04 --set-sparse false as mentioned by @nexus-chebykin didn't seem to work until I manually set sparseVhd=false in the .wsl_config file. Then, since I'm on Windows 10 home, proceeding with:
wsl --shutdown
diskpart
open window Diskpart
select vdisk file="C:\WSL-Distros\…\ext4.vhdx"
attach vdisk readonly
compact vdisk
detach vdisk

My situation was a little different than @leodagostino.

I had been using sparseVhd=true in my .wsl_config file.
I was getting the error about "encrypted or compressed"
I tried setting it to "false" and tried restarting WSL (wsl --shutdown then rebooting linux).
Was still getting the error
I ran wsl --manage Ubuntu --set-sparse false
When it completed, I was able to attach the vdisk without error

I solved this issue by runnig the following from here:
fsutil sparse setflag “C:\Users\Public\Documents\Hyper-V\Virtual hard disks\testserver.vhdx” 0

https://learn.microsoft.com/windows/wsl/wsl-config
C:\Users\[user]\.wslconfig
[experimental]
sparseVhd=false

I solved this issue by runnig the following from here: fsutil sparse setflag “C:\Users\Public\Documents\Hyper-V\Virtual hard disks\testserver.vhdx” 0

Been searching for a while how to recover a .vhdx drive that was made Windows-unmountable by nbd (in Linux). Thank you.


onClick in dataFormat() fires without actual 'clicking'

I define my TableHeaderColumn as follows:
<TableHeaderColumn dataField="someData" dataFormat={this.valueFormatter}>Value</TableHeaderColumn>

As the valueFormatter I have following code:
valueFormatter(cell, row){
  return (

{cell}

    );
}

The table generates without errors but in the console I see value clicked 10x (as much as there are rows).
What I want: The function (in the above example a simple console.log()) should be called only if I click on the element.
What is wrong with my code, or is there another way to solve this?

Hello,
Try
valueFormatter(cell, row){
  return (

 console.log('value clicked')}>{cell}

    );
}

It worked for me.

This should be good for your case,
class ValueFormatter extends React.Component{

  handleClick(e){
    console.log('value clicked');
  }

  render(){
    return (

{this.props.data}

    );
  }
};

function valueFormatter(cell, row){
  return (
    <ValueFormatter data={cell}/>
  );
}

or that :stuck_out_tongue:

thanks @staminaloops :) your is more better :+1:

Np, tell me if I can help you in anything more in this project, its great (you have my twitter) :smile:

@staminaloops, coool, I'll contact you :)

This would be great to document as well.

thank you guys! :) :+1:
I go with the solution of @staminaloops, much shorter and easy to understand.


the converage question about blob_loss

I have been following your blob_loss recently. My dataset is CT plaque data. When I apply blob_loss to my dataset, for each conected domain the applied loss is dice_loss for each conected domain, and I find that the blob_loss does not converge with 200 epoch. I hope you can give me some advice. and the code is as follow:
class bblob_loss(nn.Module):
def init(self):
super(bblob_loss, self).init()
self.dice=DiceLoss()
def forward(self, network_outputs, multi_label):
#输出不同的output
network_outputs = torch.sigmoid(network_outputs)
	batch_length = multi_label.shape[0]
	element_blob_loss = []
	# loop over elements
	for element in range(batch_length):
		if element < batch_length:
			end_index = element + 1
		elif element == batch_length:
			end_index = None

		element_label = multi_label[element:end_index, ...]
		element_output = network_outputs[element:end_index, ...]
		from skimage import measure
		element_label = element_label.squeeze(0).cpu().numpy()
		element_label = element_label.squeeze(0)
		element_label = measure.label(element_label)
		element_label = torch.from_numpy(element_label)
		element_label = element_label.unsqueeze(0)
		element_label = element_label.unsqueeze(0).cuda()

		element_output = element_output.squeeze(0).detach().cpu().numpy()
		element_output = element_output.squeeze(0)
		element_output = measure.label(element_output)
		element_output = torch.from_numpy(element_output)
		element_output = element_output.unsqueeze(0)
		element_output = element_output.unsqueeze(0).cuda()
		# print('element_output', len(torch.unique(element_output)))
		# print('label',element_label.size())
		unique_labels = torch.unique(element_label)
		blob_count = len(unique_labels) - 1
		label_loss = []
		for ula in unique_labels:
			if ula != 0:
				label_mask = element_label > 0
				label_mask = ~label_mask
				label_mask[element_label == ula] = 1
				the_label = element_label == ula
				the_label_int = the_label.int()
				masked_output = element_output * label_mask
				# print('masked_output',masked_output.size(),'the_label_int',(the_label.float()).size())
				try:
					blob_loss = self.dice(masked_output, the_label_int)
					# print('bblos',blob_loss)
				except:
					# if int does not work we try float
					blob_loss = self.dice(masked_output, the_label.float())
					# print('bblos111', blob_loss)
				label_loss.append(blob_loss)
				# print('label_loss',label_loss)

			if not len(label_loss) == 0:
				mean_label_loss = sum(label_loss) / len(label_loss)
				element_blob_loss.append(mean_label_loss)
				# print('element_loss',element_blob_loss)

	if not len(element_blob_loss) == 0:
		mean_element_blob_loss = sum(element_blob_loss) / len(element_blob_loss)
	return mean_element_blob_loss

If alpha is set to 1 and beta to 0 blob loss is essentially deactivated. If your training does not converge in this state the problem is somewhere else. I am facing a bit of trouble understanding your problem description. What do you want to demonstrate with the code snippet above? Most of it seems to be copy paste from the code here? :)

The code I am using now is the code posted above, and I have modified it for my problem. I don't know what the problem is, very emo. I'll keep trying, thanks

closed until more information is provided.


sanity tests for autotune

Signed-off-by: Shruthi<EMAIL_ADDRESS>

@dinogun - Can you please merge this. Thanks.


Hooks not re-added after v-if optimization in options API

Vue version
3.5.7
Link to minimal reproduction
https://play.vuejs.org/#eNp9VE1v2zAM/SuELmmBJim2njInwzZ0QHbYhq23aQfVphO1smRIdJog8H8f5a84Qdf4EOmR1Hv8kI7iU1nOdhWKhUhC6nVJK2n5I9yXzhNkmKvKEBwjJsmqAhcgxQMGkuKmBVNXlM6ipbCAY92BmSJ1dd3HSfJIlbenfQyzmSbtrDLrrwvIlQnYBccv12iyyDXwSKo/tKueBAsdSf/8HSmpCDls4DFoN7Rdh9uxmEEObXWYNUyz1hGWyyXcdjQnov4/9aj4/NNZvUGFg02hcJU9M0tqGM5ShSWQr3DgaDw2SF9YvLKHtc3d1fVFogXS1mWxvn3UZUC0QPcLSA+6QFfRFRuWq3HiHV+TMyuRQkFsKlj3wqW+dLsU3jSJtfVM9Q28u369WLFXyXw0Uwm3qzRcvrijJNM7SI0KYSlFMb2TooE7w26qc8bP6Nkj1z4QPBqXPsOL5m5ZBx5z9GhTBHLQDwCU3pXJnI86PxVZfocwpi07M1q4DA3TNUWRAuaDy/EIwwBBXQ+RY/GPFZGzHLbokVPIR5hkOqhHw5LSygfnp9bRVBnjXjCbwAImE85LMbhFH8fRbs5kD+t+lczHZbRJoINBCKkrMVtxveN2JW4EMWRzvZk9BWf5djfjEStalNqg/1HGsgYpmpGKreRJiKq+NVgcUO5ii6dbTJ9fwZ/CPmJS/PQY0O+wuamtjZTnCW3N97+/4759Lloj17sy7P2G8RcGZ6qosXX7XNmMZY/8GrVrfnk8cdEewv2e0IY+qSg0esZZjN78xMXr8r/UT3Lfz+6aOGlrUf8D14/M9Q==
Steps to reproduce
Open the link, look at the output. lengthIs0 is showing true
What is expected?
lengthIs0 should have been recomputed after the setTimeout - however, it appears after initial optimization related to the v-if statement, the hook is not being added back on conditional change.
This worked in 3.4 - and works in composition api, however, is not working foroptions in 3.5.7 (or 8)
What is actually happening?
Computed, is not, in fact, computed.
System Info
No response
Any additional comments?
I upgraded from 3.4 ==> 3.5.7 and a unit test broke, upon investigation, this is where I landed.

+1, I've also experienced this same issue.

It works in v3.5.6

+1.  I've also experienced the same.


Access private User metadata through dashboard

What I'm trying to achieve
After introducing private metadata to User model there might be need for staff to edit/delete/add metadata manually.
Describe a proposed solution
Component to access metadata for User and other future objects with meta.

I think we can close this one sine we also have #195, which talks about the same issue - having a UI for metadata in the dashboard.


Fix #31191: duplicated "scope" parameter

Fix #31191. duplicated "scope" parameter.
Root Cause Analysis
This bug is caused by https://github.com/Azure/azure-sdk-for-java/pull/30456/commits/a79493d3c8d54117a89c8135d8c079075474c244

AbstractOAuth2AuthorizationGrantRequestEntityConverter#addParametersConverter is not idempotent, AbstractOAuth2AuthorizationCodeGrantRequestEntityConverter#convert execute multiple times will cause duplicated parameters.
How To Fix
Move the following code into constructor to make sure they only execute once.
addHeadersConverter(this::getHttpHeaders);
addParametersConverter(this::getHttpBody);

API change check
API changes are not detected in this pull request.


Imagine stealing from bitzel and giving no credits

I assume you are referring to the following video: https://www.youtube.com/watch?v=2_VWUkZH06g
My generated profile pictures and Bitzel’s art have only the theme "Pixel Art" in common. The true inspiration for this project came from when I used to do Fiverr and saw the amount of “Minecraft Pixel Art Profile Pictures” which were all incredibly similar to my now-generated PFPs. Because I am a programmer, I thought of a way to automate it.
I figured out the stitching of the skin myself and can prove so with older versions of the project along with a lot of testing screenshots from an old discord chat. If you really feel the need to prove your point, I can link said files.
My work is my own and is only inspired by works of multiple people and not one individual. One person does not own an art style, and seemingly Bitzel didn't create it either (and neither am I claiming to be the original creator.) My program simply automates the creation of a style of profile pictures.
Hopefully you understand me.
Evidence
My Fiverr page: https://www.fiverr.com/maurits_wilke/make-you-a-minecraft-pixel-art-profile-picture
Example of referenced Fiverr stores:

Been a week without reply, closing issue

@MauritsWilke not going to go into what I fully think here, as I doubt I'm going to be able to change what you think regarding the originality of these profile pictures, but your point about people being "unable to own art styles" is completely invalid and inconsistent with how artists work. art existing through

@MauritsWilke not going to go into what I fully think here, as I doubt I'm going to be able to change what you think regarding the originality of these profile pictures, but your point about people being "unable to own art styles" is completely invalid and inconsistent with how artists work. pixel art existing doesn't make it inherently more 'simple' or easier to draw, and i feel like there is some intentional negligence by refusing to acknowledge the origin of the art you're creating programmatically. i find it interesting how you linked to a video and fiverr pages made well after the popularity of this specific iteration of profile picture, but haven't acknowledged the original design done by bitzel, nor the video that he made in detail to explain how to draw it by hand. the strange irony is that the picture you chose from fiverr uses a creator whose profile image is blatantly inspired by bitzel's own skin. am i saying that automating such a process is unethical? no, not necessarily. but i think making something that is undeniably inspired by a creator's art style (as i've discussed above) and then deciding to monetize it through adsense without giving any passing reference to its inspiration ( https://github.com/MauritsWilke/mcpfp/commit/e016b7299b03ffb95090c9e4fed1db803d817952 ) is incredibly dodgy. especially when mitigation is -- in its simplest form -- just giving basic credit and acknowledgement to a single person. i just find it genuinely difficult to imagine that you're unaware of this style's origins. i can only hope that this brings light to it and inspires you to give proper credit where it's due. thanks!

I have already responded to this, closing issue.


Unable to add description when submitting a one-off transation

While the  general API documentation mentions you can pass in a 'description' when submitting a new one-off transaction, the .Net Recurly-Api-Client v. <IP_ADDRESS> doesn't allow you to do so.  Neither of the two provided constructors support including a description.  Further, it doesn't appear that there is a public description field on the class so I am unable to add it after initialization either.
The documentation I’m referring to can be found here:  https://docs.recurly.com/api/transactions under “Create transaction.”

Hi @geekexplorer,
Please see https://github.com/recurly/recurly-client-net/pull/90.

This should have been taken care of by https://github.com/recurly/recurly-client-net/pull/90


Spark Compatible Runic altar

I would love to see the Runic altar made compatible with sparks or an upgraded version of the runic altar, especially since MythicBotany adds the mana collector, which basically removes the need for spreaders entirely.

This won't come in MythicBotany. However, botanical machinery has that feature.


redis prefix may cause MessageReceiver not working as expected

see code
private handleIncomingMessage = async (channel: Buffer, pattern: Buffer, data: Buffer) => {
    const channelName = pattern.toString()
    const [_, documentName, identifier] = channelName.split(':')
    const document = this.documents.get(documentName)

    if (identifier === this.configuration.identifier) {
      return
    }

    if (!document) {
      return
    }

    new MessageReceiver(
      new IncomingMessage(data),
      this.logger,
    ).apply(document, undefined, reply => {
      return this.pub.publishBuffer(
        this.pubKey(document.name),
        Buffer.from(reply),
      )
    })
  }

note  the line below:
https://github.com/ueberdosis/hocuspocus/blob/476898bfb892227ea9fbd18433e01e9717b9d549/packages/extension-redis/src/Redis.ts#L268
In this line of code, the format of channelName is similar to prefix:documentName:hostIdentity, where the prefix is allowed to be customized. When the prefix contains ":", it may become the format which like  prefix::documentName:hostIdentity , note that there is an extra ":", which will cause the value of this code to not meet expectations, it will cause MessageReceiver to never work normally. It is recommended to deal with prefix. Remove the ":"

Also, if there is ":" in documentName, this will also happen. Of course, this value will not appear in most cases.

Thanks for the report!
Not sure what's the best fix here, if you are hitting this bug right now feel free to open a PR with a proposed change :-) The easiest would probably just taking a longer/better delimiter, but maybe we can just move the documentName to the message itself. I did this in feature/multiplexing (not for redis though), but probably something similar could be done.

Perhaps the convention could be better. Add some explanations in the documentation. It is recommended not to use strings with ":". When users really need ":" in the prefix, let users choose a separator other than ":" character as a configuration input parameter. But the default separator is still ":"
Or use some special characters as the default separator. For example
"hocuspocus", the overall purpose is also to avoid conflicts with user-defined prefixes as much as possible


Can it use with local model?

i wanna to use it with local XL models, can it do it?

It should be possible! But the current version doesn't support sdxl. Some people are trying to build that version and we will merge it soon


!>(STREAMs!) Italy v Argentina Rugby LIVE Coverage 09. 11. 2024

Italy vs Argentina live rugby: TV schedule, dates
The Italy vs Argentina live stream takes place today (Nov. 9).
► Time: 5:40 p.m. GMT / 12:40 p.m. ET / 9:40 a.m. PT / 4:40 a.m. AEDT
Italy vs Argentina live score (and video online live stream*) starts on 9 Nov 2024 at 17:40 UTC time in International Friendlies - Rugby Union. Here on Sofascore livescore you can find all Italy vs Argentina previous results sorted by their H2H matches. Links to Italy vs. Argentina video highlights are collected in the Media tab for the most popular matches as soon as video appear on video hosting sites like Youtube or Dailymotion. We're not responsible for any video content, please contact video file owners or hosters for any legal complaints.
You can watch Italy vs. Argentina live stream online if you are registered member of U-TV, the leading online betting company that has streaming coverage for more than 140.000 live sports events with live betting during the year. If this match is covered by U-TV live streaming you can watch Rugby match Italy Argentina on your iPhone, iPad, Android or Windows phone. It's also easy to find video highlights and news from the most popular sports leagues in the world. Live U-TV odds are viewable in Sofascore's team.about.sportLivescore section. We don't offer a TV schedule here, if you would like to watch this match on TV you'll probably find it it on some more popular channels like iTV, BBC, Al Jazeera Sports, Sky Sports, Gol TV, Canal+, SportTV, FOX Soccer, Setanta, ESPN, etc.
More details:
Italy live score, schedule and results
Argentina live score, schedule and results
Sofascore livescore is available as iPhone and iPad app, Android app on Google Play and Windows phone app. You can find us in all stores on different languages as "Sofascore". Install Sofascore app on and follow Italy Argentina live on your mobile!

fghftt

💻Best RUGBY Streams for PC/MAC 1080p/720p 👇👇
🔴Full HD:🏉 Today Rugby Live Streams For fRee
📲Mobile friendly 1080p/720p 👇👇
🔴Mobile Free:🏉 https://tinyurl.com/Today-Rugby-Live
🏉England vs Australia Live Streams For fRee
🏉USA vs Portugal Live Streams For fRee
🏉Italy vs Argentina Live Streams For fRee
🏉France vs Japan Live Streams For fRee
💻Best RUGBY Streams for PC/MAC 1080p/720p 👇👇
🔴Full HD:🏉 Today Rugby Live Streams For fRee
📲Mobile friendly 1080p/720p 👇👇
🔴Mobile Free:🏉 https://tinyurl.com/Today-Rugby-Live
🏉England vs Australia Live Streams For fRee
🏉USA vs Portugal Live Streams For fRee
🏉Italy vs Argentina Live Streams For fRee
🏉France vs Japan Live Streams For fRee
💻Best RUGBY Streams for PC/MAC 1080p/720p 👇👇
🔴Full HD:🏉 Today Rugby Live Streams For fRee
📲Mobile friendly 1080p/720p 👇👇
🔴Mobile Free:🏉 https://tinyurl.com/Today-Rugby-Live
🏉England vs Australia Live Streams For fRee
🏉USA vs Portugal Live Streams For fRee
🏉Italy vs Argentina Live Streams For fRee
🏉France vs Japan Live Streams For fRee
💻Best RUGBY Streams for PC/MAC 1080p/720p 👇👇
🔴Full HD:🏉 Today Rugby Live Streams For fRee
📲Mobile friendly 1080p/720p 👇👇
🔴Mobile Free:🏉 https://tinyurl.com/Today-Rugby-Live
🏉England vs Australia Live Streams For fRee
🏉USA vs Portugal Live Streams For fRee
🏉Italy vs Argentina Live Streams For fRee
🏉France vs Japan Live Streams For fRee
💻Best RUGBY Streams for PC/MAC 1080p/720p 👇👇
🔴Full HD:🏉 Today Rugby Live Streams For fRee
📲Mobile friendly 1080p/720p 👇👇
🔴Mobile Free:🏉 https://tinyurl.com/Today-Rugby-Live
🏉England vs Australia Live Streams For fRee
🏉USA vs Portugal Live Streams For fRee
🏉Italy vs Argentina Live Streams For fRee
🏉France vs Japan Live Streams For fRee
💻Best RUGBY Streams for PC/MAC 1080p/720p 👇👇
🔴Full HD:🏉 Today Rugby Live Streams For fRee
📲Mobile friendly 1080p/720p 👇👇
🔴Mobile Free:🏉 https://tinyurl.com/Today-Rugby-Live
🏉England vs Australia Live Streams For fRee
🏉USA vs Portugal Live Streams For fRee
🏉Italy vs Argentina Live Streams For fRee
🏉France vs Japan Live Streams For fRee
💻Best RUGBY Streams for PC/MAC 1080p/720p 👇👇
🔴Full HD:🏉 Today Rugby Live Streams For fRee
📲Mobile friendly 1080p/720p 👇👇
🔴Mobile Free:🏉 https://tinyurl.com/Today-Rugby-Live
🏉England vs Australia Live Streams For fRee
🏉USA vs Portugal Live Streams For fRee
🏉Italy vs Argentina Live Streams For fRee
🏉France vs Japan Live Streams For fRee


Fix LUID related replay crash

Map the IDXGIAdapter LUID values recorded at capture to the values retrieved at replay. This addresses a replay crash caused by swapchain creation failure when swapchain creation depends on an adapter retrieved with IDXGIFactory4::EnumAdapterByLuid.

CI gfxreconstruct build queued with queue ID 309245.

CI gfxreconstruct build # 5382 passed.

@dgraves please verify this merged correctly.  Thank you for the PR!