Add 2i2c staff as admins to all hubs

Closes https://github.com/2i2c-org/pilot-hubs/issues/49
P.S I haven't modified all the hubs and I'm probably missing some staff members, because I first wanted to know what you think about having  extra_allowed_users and extra_admins under auth0 config :eyes:

@yuvipanda, I've just rebased this. Do you think this is good to go? Is there anything I can do to make it better?

Is there anything else to finish up here? Or can we merge? Maybe @yuvipanda can give a quick approval?

Another ping on this one @GeorgianaElena / @yuvipanda - or is this no longer relevant to merge?

Sorry for the late response, @GeorgianaElena. I'll mark this as WIP and rebase once #352 lands, since I think we can put the list of admins in the centralized config we're using for secrets there. Does that sound ok?

Here's a different pattern I suggest we employ:

Put list of staff admins in https://github.com/2i2c-org/pilot-hubs/blob/36e83a5c3c289750a75fb240455c3e8eb1bf9e98/hub-templates/base-hub/values.yaml, say under staff.names.google, staff.names.github, etc
Add a config item here that will get the list of staff names for the currently selected authenticator, and add them to c.Authenticator.admin_users

This lets us keep the code in hub.py simple, and uses z2jh specific (rather than 2i2c specific) mechanisms for doing this.

Sure! I will give this a try @yuvipanda! Thanks <3

@GeorgianaElena do you think that it would work if we just loaded the list of admin users from the YAML config in the __main__.py file, and then appended them to the list of admin users around here:
https://github.com/2i2c-org/pilot-hubs/blob/36e83a5c3c289750a75fb240455c3e8eb1bf9e98/deploy/__main__.py#L76-L83
Then I think we wouldn't need to write the custom authenticator stuff? But maybe I am not understanding this properly.

@choldgraf, it will probably work (this PR did something similar some time ago: https://github.com/2i2c-org/pilot-hubs/commit/9fa027c7237fbdc247e54640fb64ceff598e06ed).
This PR is blocked because I don't know how to achieve this:

This lets us keep the code in hub.py simple, and uses z2jh specific (rather than 2i2c specific) mechanisms for doing this. What do you think, @GeorgianaElena?

I don't know how to achieve the TODO comment I left here https://github.com/2i2c-org/pilot-hubs/blob/411df13b887cf0c14abde455d5a48ba1b62d16d6/hub-templates/basehub/values.yaml#L332
Givien, this configuration merging structure + dealing with allowed_user and username_pattern https://github.com/2i2c-org/pilot-hubs/blob/380a8bf3cfc8fbf1d3f5791cfebe0bc3a745227f/config/hubs/cloudbank.cluster.yaml#L387
:(

hmmm - OK thanks for this context. I think this is something that we should put on our next sprint, and make some time for intentional discussion so that we can figure out how to move past it.
My feeling is that we if we can't figure out how to do this the "right way" (using JupyterHub vs. 2i2c-specific config) within a couple of days, then we should just add this code into our deploy code as you had done before. We can always improve things with refactoring in the future!

This should be ready for review again. But the implementation might need to change potentially entirely depending on how we're going to solve the OAuthenticator issue.

This should be ready for review again, but FYI, the implementation changed entirely again :sweat_smile:
Now that CustomAuthenticator is gone and the other solution I had identified implied listing the extra admin users under a different key than Authententicator.allowed_users. I decided to go with @choldgraf's idea here which seemed more intuitive. LMK what you think.

Hmm, not sure if aliases will still work...

since our names do not make any sense if someone wants to replicate the stuff, right?

That's a good point - I like the idea that the configuration of a given hub is roughly copy/pasteable with minimal changes into a users's own jupyterhub config.

@choldgraf, my GitHub handle is wrong in that sheet :grimacing: Also, the order is different than what we thought, right? :laughing:

And then wget it and add the appropriate staff users as a part of the hub deployment. One benefit of this is that there would be a single list for the 2i2c engineering team and their relevant github/gmail/etc handles.

Hmm, there's should be another list in the repo that powers our website, right? :sweat_smile:

I can see pros/cons though, so feel free to tell me that this is making it way too complicated :-)

This isn't complicated, we would just need to parse the csv to get relevant info. However, I'm not very convinced that this is better than the current approach. One thing that I fear can happen, is someone changing a column name or order in that file that would cause things to fail :shrug: Also, I kind of like things being on GitHub as I feel they are more visible.
I don't have a strong opinion though. Curious what others think.

In the meeting today we agreed that we should just go with @GeorgianaElena's suggestion of embedding this list of usernames etc in the config.yml file instead of using a separate google sheet. I've deleted that google sheet (and sorry @GeorgianaElena for getting your username wrong 😬)
@GeorgianaElena is this one now ready to go?


Wrong/missing quick info in JSDoc @implements tag

Type: Bug
Hello! I found that JSDoc tags @implements are handled by VSCode differently than tsc does:

VSCode cannot parse a string like import('./protocol.js ').ClientProtocol inside @implements tag.
VSCode does not understand a string like /** @implements {_protocol.ClientProtocol} */ and shows that the ClientProtocol has type any.

I have prepared a repository with a bug demonstration – https://github.com/evgenymarkov/implements-example.
You can open it in VSCode, exec npm install and look at the IDE hints in the file ./lib/client.js.
Hint for type inside @implements tag:

Hint for type inside @typedef:

I think the behavior of the IDE for the @implements tag and for @typedef should be the same.
I also double-checked that tsc understands @implements correctly and throws an error if the class does not satisfy the interface:

VS Code version: Code 1.81.1 (Universal) (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:20:33.924Z)
OS version: Darwin arm64 22.6.0
Modes:

System Info

Item
Value

CPUs
Apple M1 (8 x 24)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabled

Load (avg)
1, 2, 2

Memory (System)
16.00GB (1.58GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (31)

Extension
Author (truncated)
Version

unique-lines
bib
1.0.0

vscode-eslint
dba
2.4.2

EditorConfig
Edi
0.16.4

prettier-vscode
esb
10.1.0

shell-format
fox
7.2.5

copilot
Git
1.108.376

go
gol
0.39.1

hcl
has
0.3.2

terraform
has
2.27.1

prettier-sql-vscode
inf
1.6.0

git-graph
mhu
1.30.0

vscode-docker
ms-
1.26.0

black-formatter
ms-
2023.4.1

isort
ms-
2023.10.1

python
ms-
2023.14.0

vscode-pylance
ms-
2023.8.50

jupyter
ms-
2023.7.1002162226

jupyter-keymap
ms-
1.1.2

jupyter-renderers
ms-
1.0.17

vscode-jupyter-cell-tags
ms-
0.1.8

vscode-jupyter-slideshow
ms-
0.1.5

remote-ssh
ms-
0.102.0

remote-ssh-edit
ms-
0.86.0

remote-explorer
ms-
0.4.1

vscode-yaml
red
1.14.0

LiveServer
rit
5.7.9

partial-diff
ryu
1.4.3

vscode-stylelint
sty
1.2.4

even-better-toml
tam
0.19.2

vscode-task
tas
0.3.1

vitest-explorer
Zix
0.2.42

Can confirm I'm experiencing this issue as well.

For clarity though, unlike the opening issue states, TypeScript cannot type check my JS files correctly if I use the import statement in the @implements tag at all. TypeScript simply says
Cannot find name 'import'.

TS version is 5.2.2.
MacOS is 13.5.1
Config is
{
  "compilerOptions": {
    "target": "ES2020",
    "module": "NodeNext",
    "moduleResolution": "NodeNext",
    "strict": true,
    "allowJs": true,
    "checkJs": true,
    "outDir": "build",
    "declaration": true,
    "esModuleInterop": true,
    "forceConsistentCasingInFileNames": true,
    "skipLibCheck": false
  }
}

#55650 fixes the second problem in this bug and will close the bug when it's merged; #49905 already tracks the first problem in this bug (thanks @ITenthusiasm for finding it).


Fix feature gate for a gate that is not documented

The ServiceNodePortStaticSubrange is listed but not documented.
This PR fixes the problem.

/lgtm


how to run it recursively to include the subfolders?

tsuml2 --glob "./src/**/!(*.d|*.spec).ts should work for subfolders because of the **


CMake Warning at /usr/lib/cmake/grpc/modules/Findre2.cmake:64

Describe your environment Describe any aspect of your environment relevant to the problem, including your platform, build system, version numbers of installed dependencies, etc. If you're reporting a problem with a specific version of a library in this repo, please check whether the problem has been fixed on main branch.

This is related to https://github.com/kubernetes/ingress-nginx/issues/8381
This problem blocked our attempt at building a new base image for the ingress-nginx project
As mentioned, building opentelemetry with alpine:3.14.X works but failed with alpine:3.15.X .

Steps to reproduce

clone https://github.com/kubernetes/ingress-nginx/
Run cd /images/opentelemetry/rootfs
run docker build -t myimage .

What is the expected behavior?

build should succeed

What is the actual behavior?

build fails

Additional context

The linked issue has the details

Hi @longwuyuan thanks for reaching out to us. Any reason for not installing re2?
I could get the build working by installing re2 and re2-dev.
You may consider upgrading to the latest version of opentelemetry 1.2.0.
Also clone was slow, you may consider using
git clone --branch v$OPENTELEMETRY_CPP_VERSION --depth=1 --recursive https://github.com/open-telemetry/opentelemetry-cpp opentelemetry-cpp-$OPENTELEMETRY_CPP_VERSION

@esigo thanks a lot. I added re2 and re2-dev to the apk add command in build.sh and that error was resolved.
However I am curious to know how you had a working build. I am getting below error when I run docker build -t my image .
#9 151.2   nginx http fastcgi temporary files: "fastcgi_temp"
#9 151.2   nginx http uwsgi temporary files: "uwsgi_temp"
#9 151.2   nginx http scgi temporary files: "scgi_temp"
#9 151.2
#9 151.2 make -f objs/Makefile modules
#9 151.2 make[1]: Entering directory '/tmp/build/nginx-1.19.10'
#9 151.2 cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
#9 151.2        -o objs/addon/src/agent_config.o \
#9 151.2        /tmp/build/opentelemetry-cpp-contrib-f48500884b1b32efc456790bbcdc2e6cf7a8e630/instrumentation/nginx/src/agent_config.cpp
#9 151.2 cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
#9 151.2        -o objs/addon/src/nginx_config.o \
#9 151.2        /tmp/build/opentelemetry-cpp-contrib-f48500884b1b32efc456790bbcdc2e6cf7a8e630/instrumentation/nginx/src/nginx_config.cpp
#9 151.3 cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
#9 151.3        -o objs/addon/src/otel_ngx_module.o \
#9 151.3        /tmp/build/opentelemetry-cpp-contrib-f48500884b1b32efc456790bbcdc2e6cf7a8e630/instrumentation/nginx/src/otel_ngx_module.cpp
#9 151.7 cc -c -fPIC -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
#9 151.7        -o objs/addon/src/propagate.o \
#9 151.7        /tmp/build/opentelemetry-cpp-contrib-f48500884b1b32efc456790bbcdc2e6cf7a8e630/instrumentation/nginx/src/propagate.cpp
#9 153.4 In file included from /usr/include/absl/synchronization/mutex.h:73,
#9 153.4                  from /usr/include/grpcpp/impl/codegen/sync.h:32,
#9 153.4                  from /usr/include/grpcpp/impl/codegen/client_context.h:55,
#9 153.4                  from /usr/include/grpcpp/impl/codegen/call_op_set.h:34,
#9 153.4                  from /usr/include/grpcpp/impl/codegen/server_context.h:35,
#9 153.4                  from /usr/include/grpcpp/impl/codegen/async_stream.h:26,
#9 153.4                  from /usr/include/grpcpp/impl/codegen/async_generic_service.h:26,
#9 153.4                  from /usr/local/include/opentelemetry/proto/collector/trace/v1/trace_service.grpc.pb.h:25,
#9 153.4                  from /usr/local/include/opentelemetry/exporters/otlp/otlp_grpc_exporter.h:11,
#9 153.4                  from /tmp/build/opentelemetry-cpp-contrib-f48500884b1b32efc456790bbcdc2e6cf7a8e630/instrumentation/nginx/src/otel_ngx_module.cpp:21:
#9 153.4 /usr/include/absl/synchronization/internal/per_thread_sem.h:84:10: error: reference to 'base_internal' is ambiguous
#9 153.4    84 |   friend absl::base_internal::ThreadIdentity* CreateThreadIdentity();
#9 153.4       |          ^~~~

Looks like the alpine 3.15 package repository comes with a newer abseil library. This can be causing conflict between the abseil library used internally in opentelemetry-cpp sdk and one coming from the repository. This can be resolved by changing the order of header includes in nginx instrumentation as described here.
As the change would be required in nginx instrumentation, would let @seemk to reply on that :)

Thanks @lalitb , will wait for @seemk comments

@longwuyuan Just to add, if you don't want to wait for fix in nginx instrumentation, the alternate solution would be to build opentelemetry-cpp using externally installed abseil library.  This can be achieved by adding -DWITH_ABSEIL=ON cmake option in opentelemetry-cpp build here.

@lalitb thank you very much for the update. We have, for now, used alpine v3.14.4 to release ingress-nginx-controller v1.1.3, to get the openssl & libxml CVE patches.
After this activity settles, I expect that an attempt at moving to alpine v3.15.X+ will occur in near future .
@dmathieu is working on https://github.com/kubernetes/ingress-nginx/pull/7621 so tagging here @rikatz

All done by "@esigo" in ingress-nginx


Translation Service and highchart-ng

Hi Guy
first at all nice work with this directive. This really save time. I am working in a application that should be translated to many languages so I need to have text in each language.  I am using angular-translate for the translation requirement.
I have many chart using your directive, how can I translate the title, legends and data names?
This is how I defined the charts
 $scope.chart= {
        options: {
            chart: {
                type: 'pie'

            },
            plotOptions: {
                pie: {
                    size: 200
                }
            }
        },
        title: {
            text: 'TITLE'
            },
        backgroundColor: '#cccccc',
        tooltip: {
        formatter: function() {
                return ''+ this.point.name +': '+ this.y +' %';
            }
        },
        series: [{
            name:"Farmers",
            data: [{name: 'Pending',y: 30,color: '#d9534f'},{name: 'In Progress',y: 30,color: '#C2D3F6'},{name: 'finalized',y: 40,color: '#5cb85c'}],
            showInLegend: true,
            allowPointSelect: true,
            cursor: 'pointer',
            dataLabels: {
                enabled: true,
                useHTML: true,
                distance:-1,
                formatter: function() {
                    if(this.y>0)
                        return '
'
                                + '
' + Math.round(this.y) + '%
'
                                + '
' + this.point.name + '
'
                                + '
';
                }
            }
        }]
    };

Thanks you very much
Best Regards

This is more of a highcharts/angular question rather than relating to this plugin. I'd try StackOverflow with a general question about handling translations in Angular.


Fix error detection in pfring.NewRing

Fixes #147
The cgo documentation states:

Any C function (even void functions) may be called in a multiple assignment context to retrieve both the return value (if any) and the C errno variable as an error

See: https://pkg.go.dev/cmd/cgo
Furthermore, the manpage for errno states:

The  value  in  errno is significant only when the return value of the call indicated an error (i.e., -1 from most system calls; -1 or NULL from most library functions); a function that succeeds is allowed to change errno. The value of errno is never set to zero by any system call or library function.

See: man 3 errno
Therefore, I believe the value of err MUST be ignored unless we have something else that reports an error.

Hello,
If the error is to be ignored, isn't it better to avoid assigning it in the first place?
Something like cptr, _ := C.pfring_open(dev, C.u_int32_t(snaplen), C.u_int32_t(flags)) would make it clear that we do not care about the error returned by pfring_open().

Hi @karlyeurl!
Actually, we do care about it when cptr is nil. This means the pfring_open() failed, and in that case we are allowed (and should) look at the C errno variable to have more details about which error occurred.


Noodle in and out manipulating same xy variables

Dragging a node with both input and output noodles do not work correctly. This is caused by both in and out solvers manipulating the same xy coords. This can be fixed by giving each a unique variable to work off.

This is no longer an issue with the new noodle/anchor system.


fix group conv test

Fix group convolution unit test.

retest Ubuntu-CPU please

retest Ubuntu-GPU-single please

retest Ubuntu-CPU please

retest Ubuntu-CPU please

retest  Ubuntu-GPU-single please

retest Ubuntu-GPU-single please

retest Ubuntu-GPU-single please

retest gpu-pycpp please


[improve](jdbc catalog) Add a variable to accommodate the final keyword in ClickHouse Jdbc Catalog queries

Proposed changes
Issue Number: close https://github.com/apache/doris/discussions/23130
https://clickhouse.com/docs/en/operations/settings/settings#final
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 45.34 seconds
stream load tsv:          540 seconds loaded<PHONE_NUMBER>9 Bytes, about 132 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select:          29.6 seconds inserted 10000000 Rows, about 337K ops/s
storage size:<PHONE_NUMBER>5 Bytes

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 48.03 seconds
stream load tsv:          559 seconds loaded<PHONE_NUMBER>9 Bytes, about 127 MB/s
stream load json:         21 seconds loaded<PHONE_NUMBER> Bytes, about 107 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select:          29.2 seconds inserted 10000000 Rows, about 342K ops/s
storage size:<PHONE_NUMBER>8 Bytes

run feut


How does GVFS work in disconnected environment?

I thought one of the benefits of git is that you have an entire copy of the repo so you can work disconnected.  Does this cause this git to not have a complete copy?  Does this cause git to be less distributed and more centralized?  I am not against this and see the benefit for large repos.  I am trying to understand what is the trade off.  What  happens if I am disconnected and try to checkout/commit files I do not already have touched?  I guess a more general question is how does GVFS work in a disconnected environment that git was designed for?

Those are great questions, and you're absolutely right about the tradeoffs. We are adding an online requirement in exchange for the ability to scale.
You can think of GVFS as two main pieces:

Only download contents when you need them. This adds an online requirement for first-time access to any contents, but you can also bypass it by prefetching the contents you want.
Make your git commands fast by not letting them scan all 3M+ files in the repo if you're only working with a small subset. This is all purely local logic and doesn't add any requirement to be online.

If you make use of the on-demand downloads (which is the default behavior of GVFS), then yes you need to be online the first time you access a new blob. However, all of your git commands like creating branches, checking status, committing, etc all work offline, as long as you're using contents you already have. And if you know you're going to be offline and want access to a set of files, we also provide a way to prefetch them.


Release/0.9.0

Coverage decreased (-2.1%) to 66.757% when pulling f671a49ae9032953d64b84f0015c496d7605278a on release/0.9.0 into 9b5eb11817902677713679f169010a6ab9482e5c on dev.


get token info from confluxscan.io

user can search token with token symbol
no need to use cfx-contract-metadata anymore

api spec http://yapi.conflux-chain.org/project/20/interface/api/455


vishal malyan

sir, i have created all the changes without deletion any file as you told in last email yesterday .

LGTM cc. @Shorya7

good


App crashing - Tracing. Press any key to quit...

Hi, I have been experiencing problems with jnitrace. Meanwhile, thank you for developing this great tool 🥇
Workspace:

macbook chip m2
Android Studio AVD Emulator (API 26 to 29 tested)
frida, frida-tools and frida-server 16.1.0
jnitrace 3.3.1

Tested App:
ViewerJNI from Google Drive Folder
You can also find a PoC, youtube video, here
My scenario:
run: jnitrace -l libnative-lib.so com.example.viewerjni and tools reply with: Tracing. Press any key to quit...
In the same time, app open and crash.
Logcat stacktrace info:
[...]
library "/vendor/lib64/egl/libGLESv1_CM_emulation.so" ("/vendor/lib64/egl/libGLESv1_CM_emulation.so") needed or dlopened by "/memfd:frida-agent-64.so (deleted)" is not accessible for the namespace: [name="(default)", ld_library_paths="", default_library_paths="/system/lib64", permitted_paths="/system/lib64/drm:/system/lib64/extractors:/system/lib64/hw:/system/product/lib64:/system/framework:/system/app:/system/priv-app:/vendor/framework:/vendor/app:/vendor/priv-app:/odm/framework:/odm/app:/odm/priv-app:/oem/app:/system/product/framework:/system/product/app:/system/product/priv-app:/data:/mnt/expand"]
[...]
Android/sdk_gphone_arm64/generic_arm64:9/PSR1.210301.009.B6/9767327:userdebug/dev-keys
[...]
channel 'dd8ad63 com.example.viewerjni/com.example.viewerjni.MainActivity (server)' ~ Channel is unrecoverably broken

Having this same issue. Attach does seem to work somewhat, but fails to hook onto other functions etc. Is there any status or workarounds for this at the moment? thanks.


Does not introduce transitive dependency of mockito per README

In the README.md, there is the following:
Note: The dependency on Mockito will be transitively included, so there's no need to specify both Mockito AND dexmaker-mockito
However, in dexmaker-mockito/build.gradle, mockito dependency is implementation, not API.
Therefore adding androidTestImplementation 'com.linkedin.dexmaker:dexmaker-mockito:2.25.1' does not introduce the mockito dependency transitively

This is probably left over from before api and implementation were a thing in Gradle.
Do you think we should change the documentation or should we change the dependency to api? I probably prefer the latter.

Latter is also preferred from me because clients need to keep the dexmaker version in sync with mockito's, which is difficult for dexmaker 2.28.0 because it really depends on mocktio 2.28.2


Skeleton: profile type not rendering properly

<goa-skeleton type="profile"></goa-skeleton>

@ArakTaiRoth Please get in touch if you have any questions.


Support DocC Xcode 13

Preview

Description
This year, apple release DocC with Xcode 13. DocC is new framework to generate documentation right inside Xcode.The generated documentation can be viewed from Help > Developer Documentation(⌘⇧0) or as webpage.
Add symbol link to relevant type on TCA

symbol link is a way to link certain type with wrapping it inside double backtick. on the generated document, it will become a link, and when pressed will redirect to respective page.
Wrap code snippet inside triple backtick swift, so the code style could be applied on doc preview

without wrapper
with wrapper

edit: fix grammer

let me try generate SwiftDoc from this branch, to see if this changes can works with SwiftDoc

@mbrandonw i think it will work

@mbrandonw i think it will work

Ok cool! We'll merge and try this out once tests pass.
Thanks again for taking this on!


Tmux underline color doesn't match diagnostic

I followed the instructions regarding setting up underlines with tmux.
I noticed that although undercurls work, they are still the same color of the text, instead of the color of the diagnostic. This does not occur outside of tmux.
I am using kitty as my terminal as well. Is this feature supposed to work in tmux?
Thanks.

it was my mistake, $TERM was set elsewhere in my config and being overwritten in tmux.


Weeb-List

Feature Description
A search engine where you can search anime using names and get links to the particular anime. This issue is under GSSoC'22 Contributions.
Steps Followed✅
Check the box with [x] If you followed all the steps.
-[ ] Is your feature request related to a problem? Please describe.
-[x] Describe the solution you'd like
-[ ] Describe alternatives you've considered
-[ ]Additional context
Code of Conduct✅
-[x] I agree to follow this project's Code of Conduct.
-[x] I checked the current issues for duplicate problems.
-[x] I have gone through project README.

Can you please assign me to this issue? @Astrodevil


[URL Protocol Handler Registration] Specify what "icons" are used for

The explainer specifies most manifest properties well, but I'm not immediately sure from the explainer what "icons" is used for.

(a sentence or so may be sufficient, but just worth having something describe it)


Url Shortner

Script Title - Url Shortner
Brief - The script with make the script smaller for easier usage
Instructions

Create a new folder for your script and file/folder name should be appropriate.
Create a README.md in your folder for program Instructions
add requirements.txt if needed

Programming Language

[x] Python

Happy Coding

same as #7

Can I work on this?


[ISSUE #1053]  Support request code UNLOCK_BATCH_MQ(42)

Which Issue(s) This PR Fixes(Closes)

Fixes #1053
Brief Description

How Did You Test This Change?

🚀Thanks for your contribution🎉. CodeRabbit(AI) will review your code first🔥


Syntax error

partitiontables_zabbix.sh: 29: partitiontables_zabbix.sh: Syntax error: "(" unexpected

Hi @nordz0r  maybe you not run it with bash,you can try it
shell#    bash partitiontables_zabbix.sh


LoadTask discards type parameter on asset load.

We're using a service where images are pulled without a file extension in the path name. PreloadJS allows for this by accepting a type parameter when requesting an asset. However, making an asset request using SpringRoll's Application.instance.load() method appears to discard the type parameter before the request is made to PreloadJS. For example:
            Application.instance.load({
                "awesome-asset": {
                    cache: true,
                    id: "awesome-asset",
                    src: "http://a.source/without?an=extension"
                }
            }, {
                type: AbstractLoader.IMAGE
            });

The behavior I would expect for the above would be that the asset would be preloaded as an image. Instead,  the following error is triggered by PreloadJS (since it doesn't receive the type property):
preloadjs.combined.js:5465 unable to get extension for http://a.source/without?an=extension&v=0.0.1
There's a bit of a discrepancy in the SpringRoll documentation concerning the type parameter, so I'm not sure if this is a "feature request", a "bug report", or if I'm misunderstanding the use of SpringRoll's type parameter. The documentation for the multiple assets above accepts a "type" parameter (but doesn't seem to work the way I would expect). The documentation for loading a single asset doesn't accept a type parameter at all.

On a related note, I think it may make sense to follow the PreloadJS convention and accept a type parameter for a given asset regardless of whether it's loaded singly or in a set via Application.instance.load():
            Application.instance.load({
                "awesome-asset": {
                    cache: true,
                    id: "awesome-asset",
                    src: "http://a.source/without?an=extension",
                    type: AbstractLoader.IMAGE
                }
            });

or
            Application.instance.load({
                cache: true,
                id: "awesome-asset",
                src: "http://a.source/without?an=extension",
                type: AbstractLoader.IMAGE
            });

Thoughts?

After spending more time looking into this, it seems that SpringRoll's type parameter is not analogous to PreloadJS's type parameter: I was just thoroughly confused. As such, my recommendation above would probably only serve to further confuse the two type's, although I still think some sort of parameter that handles a URL without a file extension would be useful.
I worked around it by using PreloadJS's LoadQueue apart from SpringRoll instead:
            request = new LoadQueue(true);
            request.addEventListener('fileload', handleLoadedImage);
            request.loadFile({
                id: "awesome-asset",
                src: "http://a.source/without?an=extension",
                type: AbstractLoader.IMAGE
            });


Refactor peer protocol handling

Should refactor RTCPeerComms.handleClientCall into some sort of host protocol handler.

Authenticate actor
Mode select

rest

peer-party
custom peer endpoints []

peer-socket

Document change - /dataparty/document/${type}/${id}

https://github.com/datapartyjs/dataparty-api/blob/540ae1784c1799645f515c16509edff7dbeaa180/src/comms/rtc-socket-comms.js#L29-L67

One approach could be to use express mock libraries
https://www.npmjs.com/package/mock-express-response


[support] Create a hotfix branch from tag instead of latest main

📝 Description
It's all in the title.
Update the GitHub action that creates the hotfix branch, to be able to do it from a tag instead of main's HEAD.
❓ Context

Impacted projects: ``
Linked resource(s): ``

✅ Checklist

[ ] Test coverage
[ ] Atomic delivery
[ ] No breaking changes

📸 Demo

🚀 Expectations to reach
Please make sure you follow these Important Steps.
Pull Requests must pass the CI and be internally validated in order to be merged.

Update the GitHub action that creates the hotfix branch, to be able to do it from a tag instead of main's HEAD.

Could you more specific about why we would want to allow that?


Material-UI website not loading

ADD ISSUE DESCRIPTION HERE
Version: 1.81.1
Commit: 6c3e3dba23e8fadc360aed75ce363ba185c49794
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
Embedder: codespaces

/question

We closed this issue because it is a question about using VS Code rather than an issue or feature request. Please search for help on StackOverflow, where the community has already answered thousands of similar questions. You may find their guide on asking a new question helpful if your question has not already been asked. See also our issue reporting guidelines.
Happy Coding!


TEP-0121: Example code for v1beta1.CustomRun

We need an example Custom Task Controller to show the right way to:

set ConditionSucceeded as False after exhausting all retries.
set Timeout for each retry attempt.
fill in RetriesStatus.

/assign

/kind feature


Add the iplen option to shaper rules

As discussed in #4132 and prompted by #528
This change enables users to set the maximum packet length a rule should be applied to. Tested on a production system.

@maxfield-allison looks good, thanks!


title warnings

The main question of bibcop rules for parsing is: Do we need all titles be the "each-word-capitalized"-style, or we need to use title as it is in original version of a paper?
If the answer is first one, then we need to make more complex rules of capitalizing letters: for example should we make the word after the "-" as uppercase? or do we need to make uppercase letters after ":", ";" or ""?

@yegor256 WDYT?

If the paper is published, it has its own doi, and usually on its site, there is a possibility to get the cite of this paper.
I don't know, can it be done via sending a request to this doi-site of each paper and try to get it from there. If not, we can just print the warning about titles, but don't change the tittles themselves, since it can violate the original title.

@MikhailLipanin see de8196b it helps?

@yegor256 yes


ImportError: bad magic number in 'utils': b'\x03\xf3\r\n'

I got the following error message.
File "E:/.../AnomalyDetection-Keras/main.py", line 1, in
from utils.import_lib import *
ImportError: bad magic number in 'utils': b'\x03\xf3\r\n'
I haven't solved this part ==>SuperClass.py line #7, from keras.backend.tensorflow_backend import set_session

Regarding the recent development of Tensorflow 2.0, the entire code has been modified to support the migration from Keras to Tensorflow 2.0. This update should resolve your second issue.
The first issue has also been considered in this recent update.


CocoaPods: Unable to find a specification for DyCI

Tried to update the installation with pod update and the message
Unable to find a specification for 'DyCI' appears
Same happens for pod install

@nickbit What string do you have in Podfile?

pod 'DyCI'

Where did you get this line from?

pod 'dyci', :git => 'https://github.com/DyCI/dyci-main.git'
OR
pod 'dyci'
These will work

Great, thank you.
I think I got this from the documentation. Can you check and correct if appropriate?

If you can me give a link where did you found this one, I will


chore: Apply new code style

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules
[x] I have checked my code and corrected any misspellings

Codecov Report
Patch coverage: 7.40% and project coverage change: +0.68 :tada:

Comparison is base (240b86d) 13.64% compared to head (7e4701a) 14.32%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #172      +/-   ##
==========================================
+ Coverage   13.64%   14.32%   +0.68%
==========================================
  Files         166      158       -8
  Lines        1766     1696      -70
  Branches      515      476      -39
==========================================
+ Hits          241      243       +2
+ Misses       1524     1452      -72
  Partials        1        1

Impacted Files
Coverage Δ

packages/elements/src/components/Alert/Alert.tsx
0.00% <ø> (ø)

...es/elements/src/components/Animation/Animation.tsx
0.00% <0.00%> (ø)

packages/elements/src/components/Avatar/Avatar.tsx
0.00% <ø> (ø)

packages/elements/src/components/Button/Button.tsx
0.00% <0.00%> (ø)

...ckages/elements/src/components/Caption/Caption.tsx
0.00% <0.00%> (ø)

...es/elements/src/components/DateInput/DateInput.tsx
0.00% <0.00%> (ø)

...ckages/elements/src/components/Divider/Divider.tsx
0.00% <ø> (ø)

...ts/src/components/InputGroup/InputTag/InputTag.tsx
0.00% <ø> (ø)

.../src/components/InputGroup/InputTags/InputTags.tsx
100.00% <ø> (ø)

packages/elements/src/components/Link/Link.tsx
0.00% <0.00%> (ø)

... and 39 more

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

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


Skip URLs from being traced via Pattern

closes #15

@objectiser @jpkrohling could you please review?

PR updated
added:

skip pattern can be specified in context attributes

Spring web using this feature: https://github.com/opentracing-contrib/java-spring-web/pull/14

@objectiser @jpkrohling thanks!


Recommend installing in the development group

Refills is not needed at runtime. The gem is used as a generator when
developing. Loading it in production contributes to memory use, which
can become a problem multiplied across several processes in low-memory
environments such as Heroku.

This seems reasonable to me.

I checked out suspenders, and we do have refills in the development group


Why is BDBCollection.xml used?

In puppet, we're configuring both BDBCollection.xml and CDXCollection.xml:
https://github.com/sul-dlss/puppet/blob/production/hieradata/project/wayback.eyaml#L20-L24
My understanding is that we should only be configuring CDXCollection.xml...

@tallenaz   is this part of the pupgrade?  oo

so we are not using that file at all?  seems like we don't need the pupgrade to install deployment-related files. we should be able to do all that with shared_configs and/or capistrano. also, my understanding is that VMs that have been pupgraded use the .eyaml files in hieradata.

if the maven approach I'm trying works for #22 and #21, we will still be building our own war, with our own config and local mods.   And we can stick to just CDXCollection.xml in there.    (maven will pull in the upstream code, but it won't be in our git repo)


How do you stop WSL from starting as you boot up Windows?

So every time I fire up my PC it seems WSL automatically starts running in the background (and I have to run wsl --terminate Ubuntu)
Is there like any setting for having it not start as I turn on my system?

Did you install Docker for Windows?

Did you install Docker for Windows?

Well no, I dont tend to use softwares with subscriptions

Is there like any setting for having it not start as I turn on my system?

There is no such setting that I am aware of.

Why would you close it? My question remains unanswered.
No software should start by itself out of the users control, and you certainly shouldnt need to setup a sandbox environment just to prevent something like that

Why would you close it? My question remains unanswered.
No software should start by itself out of the users control, and you certainly shouldnt need to setup a sandbox environment just to prevent something like that

As you probably already know, vmmem proc take lot of memory, so it could be nice to manually start wsl2 ourself in case we don't immediately need it, so we can save memory .

Use wsl.exe --shutdown and restart Windows. After restarting open cmd an post the output of wsl.exe -l -v

Well, I think this issue should be addressed. Really hits the battery life.
Thanks.

Well, I think this issue should be addressed. Really hits the battery life.
Thanks.

WSL does not automatically start after Windows boots, unless you set up that manually.

WSL does not automatically start after Windows boots, unless you set up that manually.

So why is this question closed?

So why is this question closed?

The question posed was asked and answered (there is no setting). Biswa96 elaborated: WSL does not start absent some externality. It does not take much for WSL to start. Docker desktop with the WSL backend will do it. Breathing on the Linux folder in Explorer will do it. Possibly other scenarios I haven't thought of.
Moving to discussion. If there is some actionable (read: unidentified issue causing WSL to start that requires resolution) comes of the discussion a new issue can be spun up. The OP submission didn't make it far out of the deleted template.

The question posed was asked and answered (there is no setting). Biswa96 elaborated: WSL does not start absent some externality. It does not take much for WSL to start. Docker desktop with the WSL backend will do it. Breathing on the Linux folder in Explorer will do it. Possibly other scenarios I haven't thought of.
Moving to discussion. If there is some actionable (read: unidentified issue causing WSL to start that requires resolution) comes of the discussion a new issue can be spun up. The OP submission didn't make it far out of the deleted template.

WSL2 will start on its own if have pinned any VM directory to anywhere in Explorer, such as in Quick Access, your Desktop, or if any file/folder is visible in 'Recent files'.  This how you're able to instantly access your VM directory despite not explicitly starting them.
You should be able to test this out by removing any reference to any VM files and rebooting, vmmem should no longer start on boot.
However, pinning or putting shortcut in Start does not seem to automatically start WSL2. I have tested this out myself.

WSL2 will start on its own if have pinned any VM directory to anywhere in Explorer, such as in Quick Access, your Desktop, or if any file/folder is visible in 'Recent files'.  This how you're able to instantly access your VM directory despite not explicitly starting them.
You should be able to test this out by removing any reference to any VM files and rebooting, vmmem should no longer start on boot.
However, pinning or putting shortcut in Start does not seem to automatically start WSL2. I have tested this out myself.

Explorer in windows 11 by default pins the location of installed WSL instances to the side panel. Any idea how to remove it?

WSL2 will start on its own if you have pinned any WSL2 directory to anywhere in Explorer, such as in Quick Access, your Desktop, or if any file/folder is visible in 'Recent files'. This how you're able to instantly access your VM directory despite not explicitly starting them.
You should be able to test this out by removing any reference to VM files/directory and rebooting, vmmem should no longer start on boot.
However, pinning or putting shortcut in Start does not seem to automatically start WSL2. I have tested this out myself.
Edit: I've found that if you've manually shutdown WSL2, i.e. wsl --shutdown, it will not start again automatically. Trying to access the file/directory will return "not accessible" error. Not sure if this is intentional or not. It doesn't seem like a consistent behaviour.

This is no longer the case, if there is "linux" directory in file explorer it will start wsl when file explorer is opened but will shutdown again soon after that if wsl dir is not accessed.

I believe if you have Docker desktop installed. It will start on bootup and thus activates wsl. I am quite sure that there will be a option to prevent Docker desktop to start on boot up.

@achintya-7 There is already an option not to start docker on boot up - it never starts for me unless I open it.

The question posed was asked and answered (there is no setting). Biswa96 elaborated: WSL does not start absent some externality. It does not take much for WSL to start. Docker desktop with the WSL backend will do it. Breathing on the Linux folder in Explorer will do it. Possibly other scenarios I haven't thought of.

For anyone coming here in Windows 11: collapse the "Linux" section in Explorer, otherwise WSL will start itself every time you open it.

For me there was a single file in the Recent files list in explorer,  thankfully you can right click it and go remove.

use services.msc (if on windows), stop the WSLService, set the startup type to disabled, create a batch file that has a net start WSLService command for starting, and one with net stop WSLService for stopping it.  Simples...

I had this issue too. It was especially bad for me, because whenever WSL started it stole the keyboard focus of the current application and this happened every few minutes, making it a nightmare to work with my computer.
I had to remove all references to files and folders in WSL from quick access, and disable recent files (just removing all recent files from Windows explorer was not enough).
To disable recent files I had to:

Open Settings.
Click on Personalization.
Click on Start.
Turn off the Show recently opened items in Jump Lists on Start or the taskbar and in File Explorer Quick Access toggle switch.

This fixed the issue for me.

I can confirm on my side it's due to the mapped network drive from WSL.
If you shutdown WSL with wsl --shutdown, the VmmemWSL process will stop immediately, but trying to access the WSL mapped network drive will start it again 😉

If you ask Windows to automatically try to map all network drives at startup, it will boot up WSL to let you access the drive.

Isn't that what we're talking about?

I mapped a drive letter to \WSL$ and that causes it to start. I deleted the drive letter (net use b: /delete) and now the vmmemWSL process no longer runs on startup. So, if you don't have a drive letter mapped to that, check to make sure that you don't have any other app or link or anything that touches that share.

No recent items...
Nothing in my quick access list (anymore, had one).
Yet, the moment I open file explorer, it still auto-starts WSL.
It tends to auto start directly again after shutdown like 1 in 5 times as well.
(type in wsl --shutdown, then directly enter wsl --list --running and the command stalls for a few seconds, then shows WSL running (again)).
I wish the on-demand startup could just be disabled, because this is horrible and lagging.

Same for me. No recent file lists ("Show recently opened items" in Settings was disabled), I had not pinned anything to Quick Access, no applications running except Chrome and I had not mounted any drives or made any other shortcuts to \wsl$. Still my WSL would spontaneously restart itself within 10 minutes after wsl --shutdown.
Turns out I missed something. *I* had not mounted any drives but apparently installing Ubuntu using the Store "helpfully" maps a network drive to U:. Deleting that mapping finally ended the restarts (fingers crossed).
Time for a rant. Funny how every single computer problem I've had for the last few years is a new problem directly created by Microsoft's misguided attempts at being "helpful" or "friendly". Hiding "unfriendly" items in the Explorer context menu behind "Show more options", Word and Excel saving to OneDrive by default instead of my local drive, simplifying Settings menus by outright removing anything complex and forcing me to use the registry, etc etc.
Just today an email I sent bounced back to me. Instead of showing me the error, Microsoft inserted a banner with the Office 365 logo and text in a large font: "WHEN OFFICE 365 TRIED TO SEND YOUR MESSAGE, THE RECEIVING EMAIL SERVER OUTSIDE OFFICE 365 REPORTED AN ERROR." Then there was a visualization of how my email was blocked, ending in a RED bar with "ACTION REQUIRED - POLICY VIOLATION OR SYSTEM ERROR". Then there were two paragraphs of text explaining how the email failed without saying what the problem was. Then a line "Was this helpful? Send feedback to Microsoft" (no it wasn't). Then a heading "More Info for Email Admins" with SIX more paragraphs of useless text entirely lacking technical info. Finally, then finally: Error Details - Error: [550 5.0.350] One or more of the attachments in your email is of a file type that is NOT allowed by the recipient's organization. That's all I wanted to know. Why not just put that at the top and call it a day?
Dear Microsoft, please stop being friendly.  We want the nasty messy Microsoft we know and love.
Sincerely, Everyone.

Same for me. No recent file lists ("Show recently opened items" in Settings was disabled), I had not pinned anything to Quick Access, no applications running except Chrome and I had not mounted any drives or made any other shortcuts to \wsl$. Still my WSL would spontaneously restart itself within 10 minutes after wsl --shutdown.
Turns out I missed something. I had not mounted any drives but apparently installing Ubuntu using the Store "helpfully" maps a network drive to U:. Deleting that mapping finally ended the restarts (fingers crossed).

Full of hope, I looked... but net use shows nothing. Just trying to use u: gives Location unavailable.
So that's not it....

I think I have found my cause.
Someone on SO came with the idea to use Procmon.exe and then filter on path containing \wsl. You then see processes which are accessing paths that way.
In my case, msedge came up with very old downloads or other types of access.
But my Asus (laptop) system software Armory Crate came up, which was accessing a file I once downloaded (for a virtual audio driver) that I downloaded to my WSL homedir by mistake.
No clue why Armory Crate wanted that file. But removing it and searching through my registry for other places accessing \wsl.localhost seems to have cleared it out (after rebooting again).
That Amory Crate 'user session service' is known for accessing mapped network drives out of the blue, at random as well. It's some plugin that can be disabled that scans for certain things, apparently.
More stuff to disable, more stuff to clean up. But WSL2 says shutdown now (so far).

In my case, it seemed to be activated by windows app Everything.
I've added the WSL directory to the index of Everything.

When I work, wsl auto runs when open explorer does not affect me.
When I was off duty and playing games, whenever I turned on the explorer, wsl would automatically turn on and eat up my 1 to 2G of memory. It makes me feel very repugnant(中文称作膈应).
So I have a bat script locally, and whenever I finish using the explorer, I will run this script (right-click-administrator mode execution)

wsl_fuckoff.bat

powershell -Command "Get-Process -Name 'wslservice' | Stop-Process -Force"
powershell -Command "Get-Process -Name 'wslhost' | Stop-Process -Force"

It is strongly requested that Microsoft can give wsl an option so that Linux folder in the explorer will not be turned on automatically and will only be displayed when wsl is turned on manually.

Its already been stated , if wsl starts the moment you open an explorer
window, you have a link to the wsl distro somewhere in your recent items,
your quick access, etc...
Otherwise does not autostart.
In my case it was Asus Armory Crate that had a service looking at downloads
or something , and one of those was a path to my wsl distro.
Use the tricks like procmon/procexp to look for processes accessing \wsl$
to find out which process it is causing wsl to autostart.
Looking through your registry for things named \wsl$ might also be a good
idea to find the recent items / MRU links that might cause explorer to
autostart wsl.
On Tue, Aug 8, 2023, 10:16 Aris @.***> wrote:

When I work, wsl auto runs when open explorer does not affect me.
When I was off duty and playing games, whenever I turned on the explorer,
wsl would automatically turn on and eat up my 1 to 2G of memory. It makes
me feel very repugnant(中文称作膈应).
So I have a bat script locally, and whenever I finish using the explorer,
I will run this script (right-click-administrator mode execution)
wsl_fuckoff.bat
powershell -Command "Get-Process -Name 'wslservice' | Stop-Process -Force"powershell -Command "Get-Process -Name 'wslhost' | Stop-Process -Force"
It is strongly requested that Microsoft can give wsl an option so that
Linux folder in the explorer will not be turned on automatically and will
only be displayed when wsl is turned on manually.
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/WSL/issues/5399#issuecomment-1669136123,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALMD2DRJ7RS2IYJG4TUYVUTXUHYWVANCNFSM4N44VU7Q
.
You are receiving this because you commented.Message ID:
@.***>

Actual Solution:

Create a .bat file "WSL Choice.bat" in notepad.

Input this:

@echo off
net session >nul 2>&1
if %errorLevel% == 0 (
powershell -Command "Add-Type -AssemblyName PresentationFramework; if((gsv wslservice).StartType -eq "Automatic") { $choice = [System.Windows.MessageBox]::Show('Disable WSL and Restart?', 'Version Choice', 'OKCancel', 'Information', 'Cancel');if ($choice -eq 'OK') {Set-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\WslService -Name Start -Value 0x00000004; Restart-Computer}} else { $choice = [System.Windows.MessageBox]::Show('Enable WSL and Restart?', 'Version Choice', 'OKCancel', 'Information', 'Cancel');if ($choice -eq 'OK') {Set-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\WslService -Name Start -Value 0x00000002; Restart-Computer}};"
) else (
echo "Right-Click Bat File And Run As Administrator."
)
pause
:: 0x00000000 = Boot
:: 0x00000001 = System
:: 0x00000002 = Automatic
:: 0x00000003 = Manual
:: 0x00000004 = Disabled

Save the file to your Desktop.

Right-Click, Run, Read, Choose, Restart, Enjoy.

Just adding to the heap.In the first photo, I recorded no actions between shutting down and it automatically starting by itself. However, after rerunning the test, I first just sat waiting in the console window clicking nothing outside. But then I've clicked on the Microsoft Edge window, scrolled this page a little, came back to console window, and distro shows running.[Yes, my system has software from ASUS installed.]

It has been known that most cases of wsl auto starting always boil down
back to a filename or link that points to the \wsl$ area.
Arnoury crate has a plugin that scans recently used files, it has been a
file in my download history in edge , or a shortcut in the quick access
folder... Searching the registry for \wsl$ has always proven to be a
solution when encountering this on a machine.
On Sat, Jun 22, 2024, 13:37 Eugene @.***> wrote:

Just adding to the heap.
In the first photo, I recorded no actions between shutting down and it
automatically starting by itself. However, after rerunning the test, I
first just sat waiting in the console window clicking nothing outside. But
then I've clicked on the Microsoft Edge window, scrolled this page a
little, came back to console window, and distro shows running.
[Yes, my system has software from ASUS installed.]
image.png (view on web)
https://github.com/microsoft/WSL/assets/35332515/7979f7ee-8859-46eb-b34e-eafe2b2fd388
image.png (view on web)
https://github.com/microsoft/WSL/assets/35332515/79ca8d3e-adb6-4d30-97eb-ce54a871617e
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/WSL/issues/5399#issuecomment-2183995145,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALMD2DU2CRVBQBG57FWE4MLZIVOWFAVCNFSM6AAAAABJXLYV66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBTHE4TKMJUGU
.
You are receiving this because you were mentioned.Message ID:
@.***>

Just write a bat file that flips the registry to either on or off, restart.
Double click the bat, if on, ask to turn off and restart, if off, ask to
turn on and restart.
On Sat, 22 Jun 2024, 13:53 Joris Mak, @.***> wrote:

It has been known that most cases of wsl auto starting always boil down
back to a filename or link that points to the \wsl$ area.
Arnoury crate has a plugin that scans recently used files, it has been a
file in my download history in edge , or a shortcut in the quick access
folder... Searching the registry for \wsl$ has always proven to be a
solution when encountering this on a machine.
On Sat, Jun 22, 2024, 13:37 Eugene @.***> wrote:

Just adding to the heap.
In the first photo, I recorded no actions between shutting down and it
automatically starting by itself. However, after rerunning the test, I
first just sat waiting in the console window clicking nothing outside.
But
then I've clicked on the Microsoft Edge window, scrolled this page a
little, came back to console window, and distro shows running.
[Yes, my system has software from ASUS installed.]
image.png (view on web)
<
https://github.com/microsoft/WSL/assets/35332515/7979f7ee-8859-46eb-b34e-eafe2b2fd388>

image.png (view on web)
<
https://github.com/microsoft/WSL/assets/35332515/79ca8d3e-adb6-4d30-97eb-ce54a871617e>

—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/WSL/issues/5399#issuecomment-2183995145,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/ALMD2DU2CRVBQBG57FWE4MLZIVOWFAVCNFSM6AAAAABJXLYV66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBTHE4TKMJUGU>

.
You are receiving this because you were mentioned.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/WSL/issues/5399#issuecomment-2184005081,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AONY5LCWANF3USUQOOEYGCDZIVQUJAVCNFSM6AAAAABJXLYV66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBUGAYDKMBYGE
.
You are receiving this because you commented.Message ID:
@.***>

It has been known that most cases of wsl auto starting always boil down back to a filename or link that points to the \wsl$ area. Arnoury crate has a plugin that scans recently used files, it has been a file in my download history in edge , or a shortcut in the quick access folder... Searching the registry for \wsl$ has always proven to be a solution when encountering this on a machine.

Okay, I've searched registry for \\wsl$ and found 1 entry under Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\IdListAliasTranslations\WSLLegacy. It has Source with value \\wsl$ and a Target that looks like ::{some hex numbers}. I thought about deleting ASUS software, but I don't think whether it impacts stability of a motherboard or not (fans in particular), so hesitate on this one.

You have to find the generic way to set a service status via registry.
Once you know how to set any service state apply it to the wsl service.
So you want to find "how to set service status via registry"
On Sat, 22 Jun 2024, 14:04 Eugene, @.***> wrote:

It has been known that most cases of wsl auto starting always boil down
back to a filename or link that points to the \wsl$ area. Arnoury crate has
a plugin that scans recently used files, it has been a file in my download
history in edge , or a shortcut in the quick access folder... Searching the
registry for \wsl$ has always proven to be a solution when encountering
this on a machine.
Okay, I've searched registry for \wsl$ and found 1 entry under
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\IdListAliasTranslations\WSLLegacy.
It has Source with value \wsl$ and a Target that looks like ::{some hex
numbers}. I thought about deleting ASUS software, but I don't think
whether it impacts stability of a motherboard or not (fans in particular),
so hesitate on this one.
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/WSL/issues/5399#issuecomment-2184007633,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AONY5LCNLZA2CQ5VKC5BLRLZIVR4ZAVCNFSM6AAAAABJXLYV66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBUGAYDONRTGM
.
You are receiving this because you commented.Message ID:
@.***>

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services<SERVICE NAME>.
To disable set Start registry DWORD to 4
Not on my pc or else I would post my bat script :)
On Sat, 22 Jun 2024, 14:08 Y., @.***> wrote:

You have to find the generic way to set a service status via registry.
Once you know how to set any service state apply it to the wsl service.
So you want to find "how to set service status via registry"
On Sat, 22 Jun 2024, 14:04 Eugene, @.***> wrote:

It has been known that most cases of wsl auto starting always boil down
back to a filename or link that points to the \wsl$ area. Arnoury crate has
a plugin that scans recently used files, it has been a file in my download
history in edge , or a shortcut in the quick access folder... Searching the
registry for \wsl$ has always proven to be a solution when encountering
this on a machine.
Okay, I've searched registry for \wsl$ and found 1 entry under
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\IdListAliasTranslations\WSLLegacy.
It has Source with value \wsl$ and a Target that looks like ::{some hex
numbers}. I thought about deleting ASUS software, but I don't think
whether it impacts stability of a motherboard or not (fans in particular),
so hesitate on this one.
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/WSL/issues/5399#issuecomment-2184007633,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AONY5LCNLZA2CQ5VKC5BLRLZIVR4ZAVCNFSM6AAAAABJXLYV66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBUGAYDONRTGM
.
You are receiving this because you commented.Message ID:
@.***>

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services<SERVICE NAME>. To disable set Start registry DWORD to 4 Not on my pc or else I would post my bat script :)
I see. Yes, I've found that entry. Can you elaborate on possible values of Start DWORD? Or could you point me towards docs? Thanks!

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services<SERVICE NAME>. To disable set Start registry DWORD to 4 Not on my pc or else I would post my bat script :)

Okay, I've found that entry. Could you elaborate on possible values of Start DWORD or point me towards some docs? Thanks!

Value: Start
Type: REG_DWORD
Data:
0x00000000 = Boot
0x00000001 = System
0x00000002 = Automatic
0x00000003 = Manual
0x00000004 = Disabled
if you need a source copy paste it into presearch or your fav search
engine
On Sat, 22 Jun 2024, 14:17 Eugene, @.***> wrote:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services. To
disable set Start registry DWORD to 4 Not on my pc or else I would post my
bat script :)
Okay, I've found that entry. Could you elaborate on possible values of
Start DWORD or point me towards some docs? Thanks!
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/WSL/issues/5399#issuecomment-2184011142,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AONY5LAA3PUF5YJXOEN7A5LZIVTNFAVCNFSM6AAAAABJXLYV66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBUGAYTCMJUGI
.
You are receiving this because you commented.Message ID:
@.***>

or use chat gpt / antropic claude / ollama's local gpt option with model of
your choice
On Sat, 22 Jun 2024, 14:20 Y., @.***> wrote:

Value: Start
Type: REG_DWORD
Data:
0x00000000 = Boot
0x00000001 = System
0x00000002 = Automatic
0x00000003 = Manual
0x00000004 = Disabled
if you need a source copy paste it into presearch or your fav search
engine
On Sat, 22 Jun 2024, 14:17 Eugene, @.***> wrote:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services. To
disable set Start registry DWORD to 4 Not on my pc or else I would post my
bat script :)
Okay, I've found that entry. Could you elaborate on possible values of
Start DWORD or point me towards some docs? Thanks!
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/WSL/issues/5399#issuecomment-2184011142,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AONY5LAA3PUF5YJXOEN7A5LZIVTNFAVCNFSM6AAAAABJXLYV66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBUGAYTCMJUGI
.
You are receiving this because you commented.Message ID:
@.***>

Value: Start Type: REG_DWORD Data: 0x00000000 = Boot 0x00000001 = System 0x00000002 = Automatic 0x00000003 = Manual 0x00000004 = Disabled if you need a source copy paste it into presearch or your fav search engine

I see, thanks!

Services can also be managed by 'services.msc' right ?
Anyway, the whole idea of WSL starting on demand is nice. Setting the
service to disabled means you need to go through hoops to get it running.
Would be a deal breaker for me.
Used it on two asus laptops, a Thinkpad and my own desktop at home without
it auto starting.
So whatever works for you.
That one wsl$ entry you found in the registry didn't look like it should
affect things and looks like it needs to be there.
If you find out t happens with edge running, it's something in there. If it
also happens without edge running , it might be the plugin of armoury
crate. Shrugging . Good luck.
On Sat, Jun 22, 2024, 14:20 Yannis @.***> wrote:

Value: Start
Type: REG_DWORD
Data:
0x00000000 = Boot
0x00000001 = System
0x00000002 = Automatic
0x00000003 = Manual
0x00000004 = Disabled
if you need a source copy paste it into presearch or your fav search
engine
On Sat, 22 Jun 2024, 14:17 Eugene, @.***> wrote:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services. To
disable set Start registry DWORD to 4 Not on my pc or else I would post
my
bat script :)
Okay, I've found that entry. Could you elaborate on possible values of
Start DWORD or point me towards some docs? Thanks!
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/WSL/issues/5399#issuecomment-2184011142,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AONY5LAA3PUF5YJXOEN7A5LZIVTNFAVCNFSM6AAAAABJXLYV66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBUGAYTCMJUGI>

.
You are receiving this because you commented.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/WSL/issues/5399#issuecomment-2184011949,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALMD2DWQW66QGHLIQNNKJVLZIVT2DAVCNFSM6AAAAABJXLYV66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBUGAYTCOJUHE
.
You are receiving this because you were mentioned.Message ID:
@.***>

You can manage services through services.msc, through set-service
PowerShell, through sc.exe and to some extent through task manager or
server manager.
The problem is that the wsl service cannot be disabled "on the go" on
Windows 10 because the status option is greyed out... so you are left with
registry hacks...
Would it be better if Microsoft made it easier? Sure! Will they today? Nope.
I would love it if MS before this issue would make /etc/environment work
properly too.
So yeah, we agree :)
On Sat, 22 Jun 2024, 14:28 Joris Mak, @.***> wrote:

Services can also be managed by 'services.msc' right ?
Anyway, the whole idea of WSL starting on demand is nice. Setting the
service to disabled means you need to go through hoops to get it running.
Would be a deal breaker for me.
Used it on two asus laptops, a Thinkpad and my own desktop at home without
it auto starting.
So whatever works for you.
That one wsl$ entry you found in the registry didn't look like it should
affect things and looks like it needs to be there.
If you find out t happens with edge running, it's something in there. If
it
also happens without edge running , it might be the plugin of armoury
crate. Shrugging . Good luck.
On Sat, Jun 22, 2024, 14:20 Yannis @.***> wrote:

Value: Start
Type: REG_DWORD
Data:
0x00000000 = Boot
0x00000001 = System
0x00000002 = Automatic
0x00000003 = Manual
0x00000004 = Disabled
if you need a source copy paste it into presearch or your fav search
engine
On Sat, 22 Jun 2024, 14:17 Eugene, @.***> wrote:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services. To
disable set Start registry DWORD to 4 Not on my pc or else I would
post
my
bat script :)
Okay, I've found that entry. Could you elaborate on possible values of
Start DWORD or point me towards some docs? Thanks!
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/WSL/issues/5399#issuecomment-2184011142,

or unsubscribe
<

https://github.com/notifications/unsubscribe-auth/AONY5LAA3PUF5YJXOEN7A5LZIVTNFAVCNFSM6AAAAABJXLYV66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBUGAYTCMJUGI>

.
You are receiving this because you commented.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/WSL/issues/5399#issuecomment-2184011949,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/ALMD2DWQW66QGHLIQNNKJVLZIVT2DAVCNFSM6AAAAABJXLYV66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBUGAYTCOJUHE>

.
You are receiving this because you were mentioned.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/WSL/issues/5399#issuecomment-2184014689,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AONY5LD5D4JI6XE5GNRTHCLZIVUVZAVCNFSM6AAAAABJXLYV66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBUGAYTINRYHE
.
You are receiving this because you commented.Message ID:
@.***>


adds game command

@kabaru
Wanted to make it so that new commands are put through a PR so we can both review stuff. This should only really be done for new commands or large changes.
Make sure to update the wiki any time you add a command!

Looks good. Will look into decorators soon to make adding commands easier.


Compilation fails with Node 12.3.1

make: Entering directory '/root/board/node_modules/inotify/build'
  CXX(target) Release/obj.target/inotify/src/bindings.o
In file included from ../src/bindings.cc:2:0:
../src/bindings.h:10:27: error: ‘Handle’ has not been declared
    static void Initialize(Handle<Object> target);
                           ^~~~~~
../src/bindings.h:10:33: error: expected ‘,’ or ‘...’ before ‘<’ token
    static void Initialize(Handle<Object> target);
                                 ^
../src/bindings.cc:11:27: error: variable or field ‘Initialize’ declared void
  void Inotify::Initialize(Handle<Object> exports) {
                           ^~~~~~
../src/bindings.cc:11:27: error: ‘Handle’ was not declared in this scope
../src/bindings.cc:11:40: error: expected primary-expression before ‘>’ token
  void Inotify::Initialize(Handle<Object> exports) {
                                        ^
../src/bindings.cc:11:42: error: ‘exports’ was not declared in this scope
  void Inotify::Initialize(Handle<Object> exports) {
                                          ^~~~~~~
../src/bindings.cc:313:1: error: expected ‘}’ at end of input
 }//namespace NodeInotify
 ^
inotify.target.mk:106: recipe for target 'Release/obj.target/inotify/src/bindings.o' failed
make: *** [Release/obj.target/inotify/src/bindings.o] Error 1
make: Leaving directory '/root/board/node_modules/inotify/build'
gyp ERR! build error

There are v8 changes. Here is a working fix:
https://github.com/ldilov/node-inotify/commit/63a03cd995878c445ec9d6594c97892b9773fbdb

Fixed by https://github.com/c4milo/node-inotify/pull/73


(OraklNode) Add missing index

Description
add indexes to the table
Type of change
Please delete options that are not relevant.

[ ] 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 not work as expected)
[ ] This change requires a documentation update

Checklist before requesting a review

[ ] I have performed a self-review of my code.
[ ] If it is a core feature, I have added thorough tests.

Deployment

[ ] Should publish npm package
[ ] Should publish Docker image

I wonder why we are dropping feeds_config_id_idx 🤔

🙏 good catch! wrote in opposite for up and down file there


Create a simple React component that calls the ping API and shows the response

User Story

As a developer,
I want to create an HTTP request in React
So our front-end application can retrieve and display data from an API.

Acceptance Criteria:

Add an HTTP request using a fetch API inside a file and then display returned data to the page.

Estimated time to complete:

5 hours

Activities Documentation

Date
Activity
Time Spent

1/20/22
Git cloned the repo, then tested the Pull Request of front-end with react framework on my VS Code
5 minutes

1/20/22
Researched on the GET request for fetch API and wrote the codes in the file
1 hour

1/20/22
Tested fetch API for the GET request to display the data in the browser with some adjustments
10 minutes

1/21/22
Researched on fetch API for the POST request and searched for a fake API to use
50 minutes

1/21/22
Created a form with a table and added the POST request to the file
1.30 hours

1/21/22
Tested the POST request to check if the responses show up in the console window
15 minutes

1/22/22
Replaced the old URL with Crystal's URL in the code for the GET request, but there were errors
30 minutes

1/22/22
Researched on the errors and looked for the solutions Tried to add the cors method to my codeAdded 'Access-Control-Allow-Origin' to the header of my codeBoth didn't work due to restrictions, particularly the CORS issue from the URL.Possible that Crystal needed to enable permission or CORS for that URL in API Gateway/Lambda
2.15 hours

1/23/22
Crystal gave the new URL, but came up with the same errors, researched why the solutions still weren't working Updated: Crystal solved the problem with CORS for her another new URL allowing fetch API to have access to that URL
1.20 hours

1/23/22
Adjusted and clean my codes to make it readable for others
20 minutes

1/24/22
Crystal informed me that she enabled POST request for her URL, so I tested it which didn't work
20 minutes

Documentation (step-by-step):

cd frontend to get to that directory

If you hadn't before when entering into the frontend folder, then type this command npm install to install the dependencies

npm start (to run/execute the project)

Wait for the server to open up on your browser Could be http://localhost:3000/ that shows a button and a form

Under the 'GET Request', click on the button to display data from https://9u4xt4nqr1.execute-api.us-west-2.amazonaws.com/default/simplePing

Go under ‘POST Request,’ where you can see a form. This is the link https://jsonplaceholder.typicode.com/comments to use for POST request.
Open console window (two ways to go there that you can either do it on Chrome since to get to console window may differ among the browsers) Use the shortcut control-shift-C in Windows or command-option-C in macOS then go to ‘Console’ section OR Go to the upper-right to click on the three vertical dots, select More Tools > Developer Tools, which should open up, and go to the ‘Console’ section.
Go back to the form
Fill out the form however you like, and when you click on the ‘Create Post’ button, you should see your information/details in the console window. (We don't have a database or place to send to yet).


[BUG] Live upgrade fails from v1.2.0 to v1.2.1-rc1

Describe the bug
Live upgrade fails if upgraded from v1.2.0 to v1.2.1-rc1
To Reproduce
Steps to reproduce the behavior:

Install Longhorn v1.2.0.
Create some rwo and rwx volumes. (With parameter migratable:true and without the parameter.)
Upgrade to v1.2.1-rc1
Upgrade the volumes
Observe the upgrade stuck in progress

Expected behavior
Live upgrade should succeed.
Log
longhorn-support-bundle_31ac3144-3ee9-4f59-86f5-3f9051e009b8_2021-09-22T18-48-07Z.zip
Environment:

Longhorn version: v1.2.x-head
Installation method (e.g. Rancher Catalog App/Helm/Kubectl): kubectl
Kubernetes distro (e.g. RKE/K3s/EKS/OpenShift) and version:

Number of management node in the cluster: 3
Number of worker node in the cluster: 3

As per @Shuo, the problem i not happening with master. So, may be the fix is not backported

Encouter the same problem when upgrading from release v1.1.1.
Here are the exact steps that I can reproduce this:
Steps:

Deploy cluster with k3s ( 1 + 3 worker nodes, 1 act as control node )
Install v1.1.1
Create some volumes
Install v1.1.2
Create some volumes
Install v1.2.0
Create some volumes
Install v1.2.1-rc1
Create some volumes
Change concurrent engine image automatic upgrade to 3 (if set to 1 it will may had chance stuck with the one with problem)
Wait for the upgrading finish

Result:
volumes with v1.1.1 engine image will stuck with upgrading spinning circle and seeing this error message repeatly showing up:
level=warning msg="Error syncing Longhorn volume longhorn-system/v111" controller=longhorn-volume error="fail to sync longhorn-system/v111: no old replica for the volume" node=c1-worker1

Logs:
longhorn-support-bundle_26cce7d8-8b4d-46a9-b97c-7fd543c5e000_2021-09-23T00-40-34Z.zip

If upgrading to longhorn-manager master branch(1d2093a8) from the situation in my last comment,
both engine image from v1.1.1(was not finish upgrading to v1.2.1-rc1 ei) and v1.2.1-rc1 will be stuck in upgrading.

If upgrading to longhorn-manager master branch(1d2093a8) from the situation in my last comment,
both engine image from v1.1.1(was not finish upgrading to v1.2.1-rc1 ei) and v1.2.1-rc1 will be stuck in upgrading.

As we discussed, I would not suggest continuous testing from an problematic situation, because this will cause some misunderstanding.

The cause of this issue:

The volume live upgrade starts.
Longhorn creates and launches new replicas based on the old replicas.
Then Longhorn tries to activate the new replicas, clean up all old replicas, and ask the engine to switch to the new replicas
The activation and cleanup succeed. But the engine switch fails due to an update conflict.
Longhorn (volume controller) retries the switch. Since the old replica does not exist now, the sync loop will wrongly fail at this check.

That is why the error log like the following is printed:
level=warning msg="Error syncing Longhorn volume longhorn-system/v111" controller=longhorn-volume error="fail to sync longhorn-system/v111: no old replica for the volume" node=c1-worker1

Need to re-test the live migration feature after merging the fix.

Validated with v1.2.1-rc2
Validation - In Progress
On v1.2.1-rc2, things looked good. Continuing testing all the scenarios of upgrade.


rl-1909: make services.gnome3 links sensible

Motivation for this change
https://github.com/NixOS/nixpkgs/pull/67522#discussion_r320481049
Things done
Built manual, clicked those links.

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

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

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

Notify maintainers
cc @

Thanks.


[Backport 2.5] CleanupDuplicateBindings blocks rancher startup

This is to backport the fix fo https://github.com/rancher/rancher/issues/32792
Rancher 2.5.8
The call to https://github.com/rancher/rancher/blob/master/pkg/multiclustermanager/app.go#L217 needs to be done in a goroutine. In a setup that has thousands of duplicates this is a blocking call and stops rancher startup from completing until the cleanup is done.
gz#16062

This needs to be checked for the v.2.5.9-RC and v2.5.-head.

https://github.com/rancher/rancher/pull/32870

available for testing in rancher v2.5.9-rc1

Reproduced the issueon rancher v2.5.8
Before upgrade Rancher version: v2.5.6
After upgrade Rancher version: v2.5.8

Created a rancher server on v2.5.8
Created a cluster c1 with 3 worker nodes, 1 etcd node,1 cp
Created a standard user user1 and created a project in the cluster c1 as P1 and added the user1 as both project owner and project member
Created 10k duplicates for the user1 from the project owner template created above with the yaml:

apiVersion: "rbac.authorization.k8s.io/v1"
kind: RoleBinding
metadata:
 labels:
  "cattle.io/creator": norman
  "p-g9lm4_prtb-w2kdj": "membership-binding-owner"
 name: "text2000"
 namespace: "c-z8ntn"
roleRef:
 apiGroup: "rbac.authorization.k8s.io"
 kind: Role
 name: "p-g9lm4-projectowner"
subjects:
- apiGroup: "rbac.authorization.k8s.io"
  kind: User
  name: "u-xdr67"

Duplicates seen in the rancher server:

DEBU[0000] running deduperbs command
DEBU[0000] kubeConfig: kubeconfig.yaml
DEBU[0000] using kubeconfig: kubeconfig.yaml
DEBU[0000] groups of duplicate role bindings: 1
DEBU[0000] total duplicate role bindings: 10002
DEBU[0000] groups of duplicate cluster role bindings: 1
DEBU[0000] total duplicate cluster role bindings: 2

Upgraded the server to rancher v2.5.8, the duplicates were seen cleaned up and the rancher server took more than 2 minutes to come up:

Verified the issue on 2.5.9-rc2
before upgrade : v2.5.6

Created a node driver rke1 cluster on ember on server version 2.5.6 and create a standard user
Once the cluster is active, create a project P1 and add the user member created in the above step as project owner and member.
Created 10k duplicates for the user1 from the project owner template created above.
Verified there were 10k duplicates on the rancher server
Upgraded the server from 2.5.6 to 2.5.9-rc2
Rancher server startup completed in 1 minute and the duplicate cleanup script has started after the rancher server has started and verified all the duplicates were removed from the server:

2021/06/14 23:40:23 [INFO] Rancher version v2.5.9-rc2 (c22c65acb) is starting
2021/06/14 23:41:57 [INFO] Rancher startup complete
2021/06/14 23:41:57 [INFO] CleanupDuplicateBindings, checking configmap
2021/06/14 23:41:57 [INFO] Calling Duplicate CRB and RB cleanup
2021/06/14 23:41:57 [INFO] Starting bindings cleanup
2021/06/14 23:43:26 [INFO] PRTB prtb-wcjq2 label:p-tl8lb_prtb-wcjq2=membership-binding-owner Duplicates: CRB:0 RB:10008
2021/06/14 23:43:26 [INFO] Total PRTB duplicate clusterRoleBindings 1, roleBindings 10008
2021/06/14 23:43:27 [INFO] Done Duplicate CRB and RB cleanup

The duplicates were removed from the server:
DEBU[0000] rb: kube-system/system::extension-apiserver-authentication-reader has multiple subjects
DEBU[0000] rb: kube-system/system::leader-locking-kube-controller-manager has multiple subjects
DEBU[0000] rb: kube-system/system::leader-locking-kube-scheduler has multiple subjects
DEBU[0000] crb: /system:public-info-viewer has multiple subjects
DEBU[0000] no dupe rbs found
DEBU[0000] no dupe crbs found


increased transcription factor activation

I need a term to describe increased transcription factor activation.
We must have described this, but I can't remember how?

What does "transcription factor activation" mean in this context? IOW what's going on at the molecular level?
There isn't a GO term for "transcription factor activation", so we'll need some other way of defining what it means if a new term is warranted.
Could the discussion in #1199 be what you're thinking of?

What does "transcription factor activation" mean in this context? IOW what's going on at the molecular level?
There isn't a GO term for "transcription factor activation", so we'll need some other way of defining what it means if a new term is warranted.
Could the discussion in #1199 be what you're thinking of?

Yes!  #1199  solution works
Given that transcriptional factor Rst2 regulates gene expression via
the STREP motif (Higuchi et al., 2002), we previously constructed
reporter plasmid containing three tandem repeats of STREP fused to
Renilla luciferase (3xSTREP::Renilla), and found that Rst2 transcriptional
activity in deletion cells of trx2+ gene encoding mitochondrial
thioredoxin, was approximately five times higher than that in
wild-type cells under both glucose-rich and glucose-deprived conditions
(Kato et al., 2013)

Yes!  #1199  solution works
Given that transcriptional factor Rst2 regulates gene expression via
the STREP motif (Higuchi et al., 2002), we previously constructed
reporter plasmid containing three tandem repeats of STREP fused to
Renilla luciferase (3xSTREP::Renilla), and found that Rst2 transcriptional
activity in deletion cells of trx2+ gene encoding mitochondrial
thioredoxin, was approximately five times higher than that in
wild-type cells under both glucose-rich and glucose-deprived conditions
(Kato et al., 2013)

increased/decresed/ normal STREP motif

increased/decresed/ normal STREP motif

erm, increased/decreased/normal what at STREP motif?

erm, increased/decreased/normal what at STREP motif?

transcription from STREP promoter
following solution in #1199

transcription from STREP promoter
following solution in #1199

increased transcription from STREP promoter STREP motif in response to NO

increased transcription from STREP promoter STREP motif in response to NO

increased transcription from STREP promoter FYPO:0007612
decreased transcription from STREP promoter FYPO:0007613
normal transcription from STREP promoter FYPO:0007614
increased transcription from STREP promoter during cellular response to nitric oxide FYPO:0007615

increased transcription from STREP promoter FYPO:0007612
decreased transcription from STREP promoter FYPO:0007613
normal transcription from STREP promoter FYPO:0007614
increased transcription from STREP promoter during cellular response to nitric oxide FYPO:0007615


Add Demo for EC keygen

Fixes #14112

Checklist

[ ] documentation is added or updated
[ ] tests are added or updated

Probably should have a Fixes #14112 note

Last force push was to fix the commit message.

This pull request is ready to merge

Thanks. Merged to master.


Support more configuration for console

Supports configuring toggle key, max message count, font and font size

Inspired by this, decided to switch to KeyCode + StringEnumConverter.


Unable to load raw images in V2

In v1 I would use your file2byteslice program and convert an image into []byte. I would then load the image similar to this:
func readImage(asset []byte) (*ebiten.Image, error) {
	rawIMG, _, err := image.Decode(bytes.NewReader(asset))
	if err != nil {
		return nil, err
	}
	newImage, _ := ebiten.NewImageFromImage(rawIMG, ebiten.FilterDefault)
	return newImage, nil

In v2 Ebiten I am attempting to read an image in the same manner but with slightly different signature:
func readImage(asset []byte) (*ebiten.Image, error) {
	rawIMG, _, err := image.Decode(bytes.NewReader(asset))
	if err != nil {
		return nil, err
	}
	newImage := ebiten.NewImageFromImage(rawIMG)
	return newImage, nil
}

I can see in the migration guide that the signature changed for the NewImageFromImage() method.  But I seem to get an error: image: unkown format when trying to load a raw image.
I also noticed that image/png and image/gif is no longer supported, so I converted my image to JPG. However I am still unable to load the JPG as raw []byte. Is this still possible?
EDIT: As a side note, I am still able to load the fonts and audio as raw []byte. I just cannot load JPEGs in the same manner...

My apologies an import was pointing at V1 for some reason but was not highlighting as an error in my editor.


Bug: Metrics aren't being refreshed appropriately

Seems like the cron job isn't kicking off each day. Need to investigate.

I've noticed that many of the entries on metrics.openssf.org are many months out of date.  In the meantime could you do a manual run (I've made a change to Apache default security files which should change every ASF project, for example)?

@iamamoose This should be fixed now, would you mind taking a look for Apache to see if the updated data is available? IIRC, the latest scorecard snapshot was from July 27, so if you made the changes after that, it might not be in until that data refreshes first.

Am I looking in the right place?
I made the change https://github.com/apache/.github/commit/c5e16821126392a9613ee5def9d1cce56a1f64bf on Jul 19th which should cause all ASF scorecards to get a pass on security.md (by inheritance).
https://metrics.openssf.org/search?q=apache still shows all the entries as being updated 4 months ago, although the scorecard scores have changed upwards since last week (although the security.md tests are not showing passed)

Ahh, yes, you're looking in the right place, but I'm not showing the right data. I'll get a fix out shortly, you'll be able to view within the Grafana UI on the right, "Recorded" boxes - for scorecard and criticality, those will show a date.

Long, uninteresting story: A "project" has a last updated date, which is updated whenever that project is updated. A "metric" is the actual data, has a foreign key to the project, and also has a last updated date. When I reload data, I look for a project, then update the metrics. I don't update the project itself (because it only has a package url). So on that screen, I really want to show "last time metrics were refreshed" but it's instead showing "last time the project object was changed", which is effectively "when the project was first seen", hence 4 months ago when we last did a full wipe/refresh.

Also the issue I was facing (scorecards not taking account of organisation wide policy files) was a bug so the Apache scorecards will all update appropriately once https://github.com/ossf/scorecard/pull/837 is merged and everything reruns


Add DocumentType in common constants

Following PR adds a DocumentType constant in common constants. Request you to review and approve the PR

  public static final String EVENT_ACCESS = "event-access";
  public static final String QUERY_ROLE = "query";
  public static final String ID = "ID";
  public static final String USERINFO = "userinfo";
  public static final String SUB = "sub";
  public static final String CAPTURED_BY = "capturedBy";
  public static final String ROLES_ALLOWED = "rolesAllowed";
  public static final String SUBSCRIPTION_INTERVAL_PATH = "app.subscription.streaming-interval";

Please check if these constants really belong here. In my opinion these are very much related to the repository and might be located elsewhere in some common artifact used by those parts of the implementation using this
@tnahddisttud can you please pick this up as an additional cleanup
I have accepted you PR to not break build pipelines


Netatmo Healthy Home Coach not visible

Hi,
When installing the module, I no longer have access to the data of my netatmo healthy home coach.
This equipment does not go up in Home Assistant

Fixed


[Doc] doc builds should switch to main branch

As of now when we merge PR on the master, doc build happen since we are now shifted to main branch so we need to sync that build with main branch now.

https://github.com/code-ready/crc/pull/3017

This is fixed by #3017


Parse nested array failed

How can I parse a nested array JSON type?
Error Messages

Type '[Exercise.Reference]' does not conform to protocol 'Decodable'

Sample JSON
{
    "exercise": {
        "analyses": [
            [
                {
                    "type": 0,
                    "content": "주스"
                }
            ]
        ]
    }
}

Models
All models involved, including their Decodable implementations.
struct Exercise {
    var analyses: [[Reference]]?

    struct Reference {

        var type: ReferenceType

        var content: String

        var width: Int?

        var height: Int?
    }

    enum ReferenceType: Int {
        case text = 0
        case pic = 1
        case audio = 2
        case unknown = 3
    }
}

extension Exercise: Decodable {
    return curry(Exercise.init)
        <^> json <||? "analyses"
}

extension Exercise.Reference: Argo.Decodable {

    static func decode(_ json: JSON) -> Decoded<Exercise.Reference> {
        return curry(Exercise.Reference.init)
        <^> json <| "type"
        <*> json <| "content"
        <*> json <|? "width"
        <*> json <|? "height"
    }
}

extension Exercise.ReferenceType: Argo.Decodable {
    public static func decode(_ json: JSON) -> Decoded<Exercise.ReferenceType> {
        switch json {
        case let .number(type):
            return .success(Exercise.ReferenceType(rawValue: Int(type)) ?? .unknown)
        default:
            return .failure(.typeMismatch(expected: "Int", actual: json.description))
        }
    }
}

Argo Version
example: Argo 3.0.0
Dependency Manager
examples: Carthage, Cocoapods, git submodules, copied code, etc.

Good news! This will Just Work in the next release! I'm going to close this now in anticipation of that release, but feel free to re-open this if you have any other questions.


Failing to upload larger files

I have been trying a 283 MB and 107 MB file one at a time. But have not been able to upload them after multiple attempts. Each time I try to upload them it takes a few minutes and I see an update on Pattypan saying it has failed to upload. Any particular reason?

Well, it probably should work. Per discussion on facebook, have you tried again?

Yup, it's working now. Maybe it was a server issue.


MudTabs: Vertical tabs headers now stretch to fill available horizontal space

Description

fixes #8253
Prior to this PR, if you have vertical tabs and one or more tabs is oversized, then those tabs which have less width than the largest tab will not fill the available space within the tab header container. This fixes that, so that the entire area is once again clickable (which I think most users would expect) and the hover / ripple zone looks correct also.
How Has This Been Tested?

Visually - its a small css change and nothing more
Types of changes

[x] 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 not work as expected)

Before:

After:

Checklist:

[x] The PR is submitted to the correct branch (dev).
[x] My code follows the code style of this project.
[x] I've added relevant tests.

Thanks @pingu2k4


MINOR: Use annotationProcessor instead of compile for JMH annotation processor

This fixes the following Gradle warning:

The following annotation processors were detected on the compile classpath:
'org.openjdk.jmh.generators.BenchmarkProcessor'. Detecting annotation processors
on the compile classpath is deprecated and Gradle 5.0 will ignore them. Please add
them to the annotation processor path instead. If you did not intend to use annotation
processors, you can use the '-proc:none' compiler argument to ignore them.

With this change, the warning went away and ./jmh-benchmarks/jmh.sh continues
to work.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

I am observing below error with Grade 5.0. looks like now we need Gradle 4.6+ to bootstrap and download the wrapper. We may need to  update README.
* Where:
Build file '/Users/mkumar/workspace/kafka/build.gradle' line: 1201

* What went wrong:
A problem occurred evaluating root project 'kafka'.
> Could not find method annotationProcessor() for arguments [org.openjdk.jmh:jmh-generator-annprocess:1.21] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

@omkreddy, Gradle 5.0 is not out yet, I suspect you mean something else? @lindong28, we should probably just make this change in trunk. Generally, we only backport critical fixes to older branches.

Sorry..I was referring gradle 4.5.

Raised #5606 incase we want to update README

Since we have already merged this all the way back to 1.0, we can probably leave it now. I have merged #5606 to the same branches.

@ijuma Ah I see. Initially I thought this issue affected all branches because we want to better support Gradle 5.0 on all branches. Will double check and ask before merging such patches to non-trunk branches in the future.


UniFi component is not operating asynchronously

Home Assistant release with the issue:
0.70.0
Last working Home Assistant release (if known):
N/A
Operating environment (Hass.io/Docker/Windows/etc.):
Linux, N/A
Component/platform:
unifi.py:
https://github.com/home-assistant/home-assistant/blob/bff1e1ff6c9bbb223c0df959fd62f78aedb22e2e/homeassistant/components/device_tracker/unifi.py#L61-L73
Description of problem:
The device tracker component should not be performing a try/except statement. This leads to the behavior outlined in #7498 (pyunifi.controller seems to be blocking HASS start up.)
Additional information:
Proper asynchronous handling (as well as distributed system design) dictates that the instantiation of the class should have nothing to do with the connection to the service.  Additionally, logging should be moved into the UniFiScanner class and not performed in the get_scanner definition.

The file still has the try/except statement, so there will have been no
change.
On Wed, Sep 5, 2018, 12:10 PM balloobbot<EMAIL_ADDRESS>wrote:

There hasn't been any activity on this issue recently. Due to the high
number of incoming GitHub notifications, we have to clean some of the old
issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check
if that solves the issue. Let us know if that works for you by adding a
comment 👍
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/home-assistant/home-assistant/issues/14663#issuecomment-418847157,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADgxk1sfBdpcfVAT-5jtD6UJq8ff2Lpks5uYCGQgaJpZM4UP93e
.

Same block, different line numbers
https://github.com/home-assistant/home-assistant/blob/b6a799499a9679e9b76f5fdb40b97fc56f641aa1/homeassistant/components/device_tracker/unifi.py#L76-L88

Still not resolved.

Hello, can you please make sure you're running the latest HA version and report back if you're still experiencing the issue? Thanks!


Typo in "Why Wagmi"

What is the type of issue?
Something else
What is the issue?
[...] to ensure compatbility with the latest releases [...]
It should be compatibility.
Maybe run a grammar checker on the documentation as a whole?
Where did you find it?
https://wagmi.sh/react/why

Feel free to submit a PR


Fixed:  Animated useNativeDriver was not specified

rn-content-loader outputs the following warning message form React Native v0.62.

Animated: `useNativeDriver` was not specified

Thanks!


Fonts not working on zsh themes

I installed the fonts as described (fallback strategy), used antigen for oh-my-zsh, oh-my-git and themes) but still haven't got the fonts working, even though I can see the characters when using echo.

I'm using CentOS and RedHat on that (tested on multiple servers).

I guess this is more an issue of oh-my-git than the fonts, try to open an issue on oh-my-git referring this