Error in loading weights of the models

I've got a problem when I try to load the model weights. I have tried with each model (tiny, small and base) and everytime there are some Missing key(s) for the architecture and  Unexpected key(s) in state_dict of the loaded weights.  I downloaded the weights in this repositary, their names are WTConvNeXt_tiny_5_300e_ema.pth, WTConvNeXt_small_5_300e_ema.pth, and WTConvNeXt_base_5_300e_ema.pth.
Any suggestion?

Did you use the script provided?
If not, can you share the code you use to load the weights?
Also, please share the error message (which keys are the issue)

Yes, I use train.py script and I load the weights using "load_checkpoint(model, path_to_weight)" from timm.models package (I've also tried to use torch.load and model.load_state_dict but I got the same error message).
Here the screen of the error message

You seem to be trying to create "convnext_tiny" instead of "wtconvnext_tiny".
Try adding the argument --model wtconvnext_tiny

yes I was using --model convnext_tiny, now with wtconvnext_tiny it seems to work.
Thank you :)


Fix to #1858 - Filter missing if wrong type passed in

Issue is for queries that use Equals(object) method for comparison. C# will return false whenever objects of different types are compared using this method, even if the underlying values are identical after conversion to one of the types.
If arguments are nullable (e.g. int?), nullability is ignored for the purpose of the comparison. E.g. 'int?' and 'int' may result in positive comparison, int? and int? as well, int? and long? will always return false.
Fix is to mimic this behavior, as well as log warning that use of Equals(object) on two objects of different types was probably not intentional.
Another fix is in the way we evaluate parameters. Before we if parameter was wrapped in the Convert node, we would evaluate it's type to the type it was converted to. In case of Equals(object), and probably other cases as well, this causes creation of parameters typed as object, which always get evaluated on the client (since we don't know how to translate parameter/constant of type 'object'.
Fix is to evaluate parameters to it's original type, and wrap the parameter into Convert node afterward. This way we preserver the intended typing but given parameters can be evaluated on the server.

@anpete @divega

ping

Looks :shipit: to me. Best to wait for @anpete though.

:shipit:


No longer compatible with Java 6?

It seems that as of version 1.1.1, Claypoole can no longer be used in Java 1.6 environments, even though Clojure itself still compiles to Java 6 compatible class files. There must be some other compiled code which is included and which is being compiled to a newer class file format?
I noticed because after upgrading my afterglow-max package to include my latest release of Afterglow, which included Claypoole 1.1.1, it would no longer load within Max/MSP (which is, sadly, forever stuck using Apple’s Java 6).
I was able to work around it by building with an exclusion and pulling in the 1.1.0 version of Claypoole for afterglow-max, but I was wondering if this was intentional?

Sorry, that's accidental. Let me see if I can rebuild easily for java 1.6.

Rebuilt as version 1.1.2. Does that work for you? Also, let me see if I can keep this from happening again.

Thanks, updating afterglow to depend on 1.1.2 did the trick, and I no longer need an exclusion to keep Claypoole back at 1.1.0 for afterglow-max.
I know Java 6 is ridiculously old, but there are still a few environments where it is the only option, much to my dismay. Cycling ’74, the creators of Max/MSP, are choosing to simply discontinue Java support entirely once the next Mac OS X release drops support for the old Apple Java 6 implementation, rather than invest in updating to a modern Oracle JVM. So afterglow-max will cease to be relevant at that point.


MicrosoftTeams v2.6.0 takes long time to import/load

Hi,
Is it just me,  or after updating to the powershell module 2.6.0 it takes around 2,5 minutes for the
import-module MicrosoftTeams to load after a Windows restart/sign-in?

I prefer not too, as MS support for incidents is a 'painful' process and I already got several long pending ones.
Since I don't need v2.6.0, I will use the older versions as they take <20 seconds to load


feat: Add S3 rename tool

This tool is used to delete table_uuid from the key of s3 objects. Only patterns like "root_prefix/table_uuid/part_uuid/key" will be renamed, other objects will keep like before.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.xiangwei.wei seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

hi @Alima777 , pls sign the CLA

Hi, @hustnn , it's signed now.


Standing Charge

This is a feature request rather than a bug report/issue
I find this integration very helpful for getting my charge rates from Octopus directly however I think its a massive shame that this integration doesn't pull through standing charge rates too
Is there a way standing charge rates for both gas and electricity could be added and pulled through too?
Thanks in advance

My mistake, this imformation is provided just not where I expected it to be, thanks

My mistake, this imformation is provided just not where I expected it to be, thanks

Where did you find the info? Thanks


Crash displaying text in NFText component

After the refactoring, problems with displaying text in the NFText component were noticed, we are trying to solve them as soon as possible.

More info: @wotori in https://github.com/wotori-studio/NFText/pull/20#pullrequestreview-906463636

There is a possibility that the blockchain server returns an error text, but it is also quite possible that we messed something up somewhere during the refactoring of the project. This is possible because the server was down during the refactoring and we couldn't run tests.


update libs

Codecov Report

Merging #3 (e1c1349) into master (ff86965) will decrease coverage by 0.63%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master       #3      +/-   ##
==========================================
- Coverage   61.18%   60.54%   -0.64%
==========================================
  Files           4        4
  Lines         152      147       -5
  Branches       25       23       -2
==========================================
- Hits           93       89       -4
+ Misses         59       58       -1

Impacted Files
Coverage Δ

vedro_pyppeteer/_screenshot_path.py
100.00% <ø> (ø)

vedro_pyppeteer/_vedro_pyppeteer.py
42.00% <0.00%> (-0.16%)
:arrow_down:

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


nixos/fcitx5: add config for tables, minor cleanup

Description of changes
Fixes #279349, also unifies everything to use pkgs.format.{ini,iniWithGlobalSection}.
Not yet tested because I don't use an IME that makes use of it (in fact I'm pretty sure I don't even have a table/ directory in my Fcitx 5 configs) — can anyone who uses Cangjie give this a shot?
cc @leana8959
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Thank you so much !
Sadly, I'm quite busy recently. I'll try it out when I can !


[documentation] What's the unit for maximumFileSize?

DDFileLogger's maximumFileSize property doesn't have an associated unit anywhere in the header or CocoaLumberjack docs.
Is it in bytes?

Given that it is an unsigned long long variable, it's probably safe to assume bytes.  The value is compared against NSFileHandle's -offsetInFile value, which is in bytes.

@carllindberg you are right, it is in bytes. I've added this to the docs in a9f54c9


Use dialer to make api call to alertmanager

https://github.com/rancher/rancher/issues/11756

@ibuildthecloud  I found  the dialer get from ClusterDialer always return net.Dial so the api call timeout.  For RKE cluster, the node.Imported is false so the original code will return net.Dial. I changed the factory.go by removing node.Imported in the condition so that f.NodeDialer will be returned. Please let me if this is the correct fix. thanks

LGTM


fix incorrect set-up of kafka property

@ryanjbaxter minor sanitization over here. whenever you get a chance.. thank you!


Opensuse testing on 42.3 because 15.0 doesn't give inspect tests

fix opensuse tests.

Thanks, @aboe76.  Must cross-reference this to identical https://github.com/saltstack-formulas/template-formula/pull/45.


profile-cycle-down special key not working

Information

ratbagd version (ratbagd --version): 0.12
Distribution: Ubuntu 19.10
Kernel version (ex. uname -srmo): Linux 5.3.0-26-generic x86_64 GNU/Linux

Describe the bug
special key profile-cycle-down does not appear to be working. Both profile-down, profile-up and profile-cycle-up works as expected, but using profile-cycle-down to switch from eg. profile0 to profile2 does not. It also doesn't work to cycle down from eg. 1 to 0, whicle profile-cycle-up works both from 0 to 1 and from 2 to 0.
To Reproduce
A device with multiple active profiles are needed. For this I'll use my setup which is a Logitech G815 (named singing-gundi) with three profiles (0-2) and buttons 5-7 which are the three M1-M3 profile selectors.

Run the following commands to set up the profile selection buttons for expected behavior

atbagctl singing-gundi profile 0 button 5 action set special unknown
ratbagctl singing-gundi profile 0 button 6 action set special profile-up
ratbagctl singing-gundi profile 0 button 7 action set special profile-cycle-down

ratbagctl singing-gundi profile 1 button 5 action set special profile-down
ratbagctl singing-gundi profile 1 button 6 action set special unknown
ratbagctl singing-gundi profile 1 button 7 action set special profile-up

ratbagctl singing-gundi profile 2 button 5 action set special profile-cycle-up
ratbagctl singing-gundi profile 2 button 6 action set special profile-down
ratbagctl singing-gundi profile 2 button 7 action set special unknown

Try the various profile buttons and note how all combinations except going from M1 to M3 work as expected.

Logs
Log from starting ratbagd --verbose=raw
libratbag-startup.log
Log from running ratbagctl singing-gundi profile 0 button 7 action set special profile-cycle-down which runs without error, but doesn't result in the key working as expected:
libratbag-failing-command.log
This error message is the same though for all of the above ratbagctl commands, working or not.
Here's a log of the working command ratbagctl singing-gundi profile 2 button 6 action set special profile-down:
libratbag--working-command.log

I recently started toying with my G915, and after accidentally unsetting the M/profile buttons I managed to find out that they can be set to back to their original setting in G HUB by enabling on-board mode and pressing "Restore all profile slots to default." This reveals that whatever function they actually are from the factory is definitely currently foreign to libratbag as all 3 show 'unknown' in every profile and pressing the button of the already active profile will restart the lighting effect which would suggest a direct "this button goes to profile #" assignment than a simple up down. Hopefully this is at least mildly useful info either to development or some poor soul like me fearing having to RMA their keyboard because they borked the memory buttons.


Openssl s_time does not work well，when I use netem to set loss rate，s_time will hang

I create two namespaces, 'server' and 'client'. I am simulating network conditions using netem. When I set the loss rate, a problem arises - the openssl s_time program hangs. I suspect it is due to packet loss, but I'm unsure how to resolve this issue.When I do not set the packet loss rate, the messages for '-state' and '-msg' options are as follows:
state:
SSL_accept:before SSL initialization
SSL_accept:before SSL initialization
SSL_accept:SSLv3/TLS read client hello
SSL_accept:SSLv3/TLS write server hello
SSL_accept:SSLv3/TLS write change cipher spec
SSL_accept:TLSv1.3 write encrypted extensions
SSL_accept:SSLv3/TLS write certificate
SSL_accept:TLSv1.3 write server certificate verify
SSL_accept:SSLv3/TLS write finished
SSL_accept:TLSv1.3 early data
SSL_accept:TLSv1.3 early data
SSL_accept:SSLv3/TLS read finished
SSL_accept:SSLv3/TLS write session ticket
SSL_accept:SSLv3/TLS write session ticket
msg:
??? [length 0005]
TLS 1.3, Handshake [length 05c6], ClientHello
??? [length 0005]
TLS 1.3, Handshake [length 049a], ServerHello
??? [length 0005]
TLS 1.3, ChangeCipherSpec [length 0001]
??? [length 0005]
TLS 1.3 [length 0001]
TLS 1.3, Handshake [length 0022], EncryptedExtensions
??? [length 0005]
TLS 1.3 [length 0001]
TLS 1.3, Handshake [length 02c6], Certificate
??? [length 0005]
TLS 1.3 [length 0001]
TLS 1.3, Handshake [length 0108], CertificateVerify
??? [length 0005]
TLS 1.3 [length 0001]
TLS 1.3, Handshake [length 0034], Finished
??? [length 0005]
??? [length 0005]
TLS 1.3 [length 0001]
TLS 1.3, Handshake [length 0034], Finished
??? [length 0005]
TLS 1.3 [length 0001]
TLS 1.3, Handshake [length 00d9], NewSessionTicket
??? [length 0005]
TLS 1.3 [length 0001]
TLS 1.3, Handshake [length 00d9], NewSessionTicket
However, when I set the packet loss rate, the messages for the 'state' and 'msg' options stop at an abnormal point:
state:
SSL_accept:before SSL initialization
SSL_accept:before SSL initialization
SSL_accept:SSLv3/TLS read client hello
SSL_accept:SSLv3/TLS write server hello
SSL_accept:SSLv3/TLS write change cipher spec
SSL_accept:TLSv1.3 write encrypted extensions
SSL_accept:SSLv3/TLS write certificate
SSL_accept:TLSv1.3 write server certificate verify
SSL_accept:SSLv3/TLS write finished
SSL_accept:TLSv1.3 early data
msg:
??? [length 0005]
TLS 1.3, Handshake [length 05c6], ClientHello
??? [length 0005]
TLS 1.3, Handshake [length 049a], ServerHello
??? [length 0005]
TLS 1.3, ChangeCipherSpec [length 0001]
??? [length 0005]
TLS 1.3 [length 0001]
TLS 1.3, Handshake [length 0022], EncryptedExtensions
??? [length 0005]
TLS 1.3 [length 0001]
TLS 1.3, Handshake [length 02c6], Certificate
??? [length 0005]
TLS 1.3 [length 0001]
TLS 1.3, Handshake [length 0108], CertificateVerify
??? [length 0005]
TLS 1.3 [length 0001]
TLS 1.3, Handshake [length 0034], Finished
Below is a screenshot showing s_time being stuck. It remains stuck at this point and does not output the results of how many handshakes are performed per second.

what are you setting your loss rate to in netem, and do you have a tcpdump of the succesful and failing cases?  If you're using netem to drop packets, the above conditions could be expected.  For instance, if you're dropping enough packets, its possible that the tcp connection is getting reset underneath causing a failure in the tls exchange

Thanks for telling me this! But I have only set the packet loss rate to 5%. In this situation, I don't know how to resolve it because I need to assess the handshake speed under different packet loss rates. However, after setting the packet loss rate, the complete testing program gets stuck.

please don't!  Today I used tcpdump to capture packets on the server side，if I don't set the packet loss rate, the results of running s_time to capture packets are as follows:

If I set a packet loss rate, the s_time program gets stuck at a certain point, and the packet capture results are as follows:

In addition, without closing the server side, terminating the client, and immediately reconnecting to the server using s_time, the packet capture results are as follows：

I really want to know why this is happening, what could be the reasons for these situations. I would be immensely grateful if you could tell me. Could you provide some advice on resolving these issues，thank you!

what are you setting your loss rate to in netem, and do you have a tcpdump of the succesful and failing cases? If you're using netem to drop packets, the above conditions could be expected. For instance, if you're dropping enough packets, its possible that the tcp connection is getting reset underneath causing a failure in the tls exchange

please don't! Today I used tcpdump to capture packets on the server side，if I don't set the packet loss rate, the results of running s_time to capture packets are as follows:
image
If I set a packet loss rate, the s_time program gets stuck at a certain point, and the packet capture results are as follows:
image
In addition, without closing the server side, terminating the client, and immediately reconnecting to the server using s_time, the packet capture results are as follows：
image
I really want to know why this is happening, what could be the reasons for these situations. I would be immensely grateful if you could tell me. Could you provide some advice on resolving these issues，thank you!

what are you setting your loss rate to in netem, and do you have a tcpdump of the succesful and failing cases? If you're using netem to drop packets, the above conditions could be expected. For instance, if you're dropping enough packets, its possible that the tcp connection is getting reset underneath causing a failure in the tls exchange

please don't! Today I used tcpdump to capture packets on the server side，if I don't set the packet loss rate, the results of running s_time to capture packets are as the first Picture above.
If I set a packet loss rate, the s_time program gets stuck at a certain point, and the packet capture results are as the second Picture above.
In addition, without closing the server side, terminating the client, and immediately reconnecting to the server using s_time, the packet capture results are as the Third Picture above.
I really want to know why this is happening, what could be the reasons for these situations. I would be immensely grateful if you could tell me. Could you provide some advice on resolving these issues，thank you!

If you could attach the pcap file please in the other discussion at #23349 .  I'm not sure what the use is in having both this and the discussion open in parallel

If you could attach the pcap file please in the other discussion at #23349 . I'm not sure what the use is in having both this and the discussion open in parallel

I have closed #23349

If s_time gets stuck, the server's receiving queue remains unchanged with 1483 data, and the client's sending queue is 0.

If s_time gets stuck, the server's receiving queue remains unchanged with 1483 data, and the client's sending queue is 0.

This means that the server is unable to process the data packets in the receiving queue, and at the same time, the client has no data to continue sending. What could be the reason for this?

Has anyone figure out why is this happening?

again, please attach the full pcap file.  Additionally, running pstack on the s_time applet after it gets stuck will tell us more about where the application is hung

@nhorman thanks for your reply. Will try to get a pcap file as this is run on a minimal alpine docker. Not sure what you mean with "running pstack on the s_time applet". Can you give more details about this?

Pstack is a Linux utility that uses the ptrace syscall to gather the stack of a process at a moment in time.  Think of it like a lightweight version of gdb's backtrace command.  You would have to install it to your container, then exec into it when your application is hung to run it

@nhorman I am attaching the pcap file I captured.
I have not been able to install pstack in Alpine Linux as it is not available in apk. I also tried to compile it from source but had some issues with some packages. Will try to make it again and attach the trace asap.
tls.zip

@rubenrdpuma thank you.  The tcpdump is interesting, mostly for what I'm not seeing in it
Most notably, I think what I'm not seeing is any packet loss.  I dont see any missing sequence numbers in any of the connection streams at all.  That should be fine, but its odd, given that you've requested some packet loss via netem.
I'm working under the assumption here that the this dump was captured up to and slightly after the hang occurs, implying that the last connection is somehow triggering this condition
Looking at the following frames:
2041 - Client sends a syn to the server to establish a new connection
2043 - Server sends back a syn/ack
2044 - client sends back an ACK, completing the tcp handshake
2045 - client sends a client hello frame starting the tls handshake
2046 - server responds with an ACK of the client hello frame, but never sends a subsequent server hello with it.
So my guess, based on this, is that, while the server system received the client hello, the server application never read that data to receive the start of the handshake.  As a result, I'm guessing the client is stuck waiting to complete said handshake, and its never arriving.
So I suppose the next step here is to determine why the server isn't reading the client hello on that connection.  Is there any detail you can provide regarding the nature of the server in this use case?  Specifically is it code you can provide here for a reproducer?  If yes, great, if not, then its probably the server we need to start interrogating with pstack next to determine what state its in when this occurs

@nhorman thanks for your interest. This is an extract of our script (initialization of parameters has been removed):
openssl s_server -cert /opt/test/server.crt -key /opt/test/server.key -groups $DEFAULT_GROUPS -www -tls1_3 -accept localhost:4433&

i=1
while [ $i -le $NUM_RUNS ]
do
  echo "Execution $i"
  openssl s_time -connect :4433 -new -time $TEST_TIME -verify 1 -CAfile /opt/test/CA.crt  | grep connections
  i=$((i + 1))
done

@nhorman I had no success installing pstack on Alpine Linux, so this is all I have. Any other options I could try? Thanks

Best idea is to shell into your container while the process is hung, set ulimit -c unlimited, and run kill -QUIT .  That should force a core dump that you can export from the container which you can interrogate with gdb independently

@nhorman Please find attached the core dump. Lets see if you can figure out what happened. By the way I had to kill -QUIT the PID of openssl s_client because when I tried with openssl s_server it didn't kill the process.
Thanks in advance
core.openssl.zip

you're going to have to analyze it there, using debug enabled versions of your aplication and openssl library.  Otherwise gdb won't know how to unwind the stack


Use the displayName for stacks instead of the stack name

Later versions of the CDK CLI warn you not to use the stack name, and to
instead use the "path-like" displayName to identify stacks that you supply to the
command line.
For example, if you have:
Stack1:
  - Stack2

And you run:
cdk deploy Stack2

You will see the warning:
Selecting stack by identifier "Stack2". This identifier is deprecated and will be removed in v2. Please use "Stack1/Stack2" instead.

This commit changes this library's behavior to use the "path-like" displayName
identifiers.
If the "displayName" attribute is not present in the CDK manifest file (eg. older versions of
the CDK CLI), then we fall back to using the stack name.

I hit a RecursionError: maximum recursion depth exceeded while calling a Python object error when running the tests for this repo... Not sure if that's just my local setup bugging out or what.

Actually, yeah, I'm definitely missing something here...
Put this on hold until I get around to finding out what's going on here, sorry!


NFC scanning not working IOS

Hi,
I have the plugin setup properly it's loading, giving no errors tried also with different imports
import {NFC} from "@awesome-cordova-plugins/nfc/ngx";
import { NFC, Ndef } from '@ionic-native/nfc';
both give no errors but the same result.
the result is that NFC scanning session is started and I see the UI Ready to Scan.
I first thought it was my NFC tag that was not working but then I tried scanning it within shortcuts -> new automation -> Scan NFC tag and it worked instantly.
This is one a Iphone 13 pro on 15.4.1
We are using this plugin for a client, so hopefully this seems familiar to someone.

I don't know why, but the same happens on android version 12 and up. the reading screen appears, it also makes the reading sound, but no event is triggered

@Master244 hi, you solved? does anyone else have the same problem on android 12 SDK?

I was not able to fix it. Still want to fix it tho other options are dropping this library a premium one with proper support since it's not stable.

I was not able to fix it. Still want to fix it tho other options are dropping this library for a premium one with proper support.

@Master244 ok but there is another library to use NFC on Cordova? With a proper support...

There are many yea but I want to contribute to an open source community especially for these kind of multi applicable components projects should be available to the open source community.

Yes, is great, but if it will not be supported anymore.... I'll move to another plugin

People are working on it, just not at the pace we would like to see :)


Whether this product supports Chinese interface？

Whether this product supports Chinese interface？

@Sharlong-Wen thanks for your interest. We have a couple of feature to support other languages.
Take a look at the https://github.com/DefectDojo/django-DefectDojo/tree/master/dojo/locale/en/LC_MESSAGES folder.
You can add another language like Chinese

I'm new to this industry and I don't quite understand how to add it. Do I need to write the translated "msgid" into "msgstr"?

Yes. more details here: https://help.phrase.com/help/gettext-po-files


Add mikufan.page to Sites using Tabi section in README

Added mikufan.page into the Sites using Tabi section in the README

Thanks! 🫶


Changes to support unit test sql format

Support for resolving #9405
Handles sql strings in a unit test in addition to dictionaries and csv files

Oh I see tests here


Notification not sitting in notification center

Next one, when we receive a notification, its not staying in the notification center, just vanishes from the notification center after displaying. We need this to be fixed as well.

Try this:
https://www.guidingtech.com/fixes-for-notifications-banners-not-showing-windows-10/

I don’t think that’s the issue. Go lang build is working and staying in Notification Center but your build is not... on same machine

What's your windows version & build number, and also your powershell version?
I found an issue in Go-toast repo that maybe related to this:
https://github.com/go-toast/toast/issues/9

Nah i have seen that. In your case.. notifications are showing up but not sticking to nc. They are displayed and then vanished. We need them to sit in nc. Windows 10 and 2016 both have this issue

Try filling the app id with a real one, for example: "{1AC14E77-02E7-4E5D-B744-2EB1AE5198B7}\\WindowsPowerShell\\v1.0\\powershell.exe"

is that fix the problem? because in my machine (windows v. 2004) it works fine. the notification shows and stays in nc.
here's the screenshot

we can close this one, its working on another system, seems something wrong wtih those two systems.


Optional X-Consumer-Groups ACL Header Improvement

Summary
As discussed here : https://github.com/Kong/kong/issues/3609
One of my biggest concerns with Kong's ACL functionality as it stands today is including the arbitrarily growing in size list of a consumers entire ACL groups as a header. In our specific implementation of Kong every route gets is own ACL group as the routes existing uuid, so we can then give consumers access to specific routes by adding that uuid to their ACL, I suspect this will be a popular pattern going forward for many users who implement Kong.
I propose a boolean that will act as a switch and enable/disable sending the consumer groups as a header, as I suspect for plenty of use cases that the arbitrary group info in the header is not necessary and as it grows in size could one day break an otherwise working proxy by increasing the header size past what a API Provider will accept (since many API providers have a 8kb header size limit by default like Apache Tomcat). I would like a predictable header size going to the API provider that is static when it comes to size generally, and by enabling this functionality on the ACL plugin we can achieve that with Kong.
Full changelog

Modify schema.lua to include new boolean property 'hide_groups_header' defaulted to false as to not break existing functionality
Modify handler.lua to account for 'hide_groups_header' boolean setting.
Modify /spec/03-plugins/19-acl/02-access_spec.lua for false and true testcase.

PR to Documentation: https://github.com/Kong/docs.konghq.com/pull/822
Issues resolved
Fixes concern for growing Kong header size as ACL groups list grow. Also improves bytes across the wire to exclude potentially extraneous info of a consumers entire ACL group list.

@jeremyjpj0916 Awesome! Thank you!

Glad you took the initiative to squeeze this in so soon! Thanks a ton.

@Tieske All in for the flag to prevent the header from being constructed.
Regarding the migration, there has been some internal discussions in the last week. We might reconsider our policy to provide migrations for schema changes. In any case, I did not want to bother Jeremy with contributing a migration just yet anyway, especially if there might not be the need for it. We should have a chat.

@jeremyjpj0916 Yes, this is indeed scheduled to be part of 0.14.1, no problem.
If you are able to provide the subsequent improvement suggested by @Tieske by then (before next week), that’d be great, but not necessary.

@thibaultcha I'm wfh and have a few mins to tackle this before next meeting. Question is would "" be better for the setting or nil on mem 😆?
to_be_blocked = conf.hide_groups_header and "" or table_concat(consumer_groups, ", ")

Or
to_be_blocked = conf.hide_groups_header and nil or table_concat(consumer_groups, ", ")

If we want to get picky with it hah.

Strings in Lua are interned, so ”” is probably fine. But nil might be more appropriate to carry the intended meaning here; I’d probably go for nil.

👍 roger. Thx! PR for that incoming to master 2 mins.


now testing on 1.0 and nightly also

appveyor failure on 1.0 should be fixed once [this] is merged


Rollback or disallow WSL automatic updates

Windows Version
Microsoft Windows
WSL Version
2.0.9
Are you using WSL 1 or WSL 2?

[X] WSL 2
[ ] WSL 1

Kernel Version
No response
Distro Version
No response
Other Software
No response
Repro Steps
We have 1.2.5 installed in our enterprise, but for some reason a lot of people has faced today a bunch of issues that was not present before the weekend. Checking the version, it seems that all errors come from a non-wanted update, the WSL version just upgraded automatically from 1.2.5 to 2.0.9.
How can we rollback to the 1.2.5?
This is really a mess.
Expected Behavior
Dont push & force users this major update.
Actual Behavior
WSL updated automatically to 2.0.9 broke a lot of devs computers. Need to rollback urgently.
Diagnostic Logs
No response

Same problem here, WSL stopped worked today saying is finishing an update and aborting. No way to start WSL. Was running fine for several years without a problem until today

@borjamunozf can you please tell us what errors you are seeing? And can you collect logs for us (Instructions at aka.ms/wsllogs ) and attach them? This will help us roll out a fix as quickly as we can for these issues.

Because we are also experiencing issues since last week, I will allow myself to add few example issues that we are facing:
Suddenly WSLg stopped working for us - this is on a fresh Ubuntu distro install:
glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Microsoft Corporation (0xffffffff)
    Device: D3D12 (AMD Radeon(TM) Graphics) (0xffffffff)
    Version: 23.0.4
    Accelerated: yes
    Video memory: 16483MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.2
    Max compat profile version: 4.2
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.1
OpenGL vendor string: Microsoft Corporation
OpenGL renderer string: D3D12 (AMD Radeon(TM) Graphics)
OpenGL core profile version string: 4.2 (Core Profile) Mesa 23.0.4-0ubuntu1~22.04.1
OpenGL core profile shading language version string: 4.20
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.2 (Compatibility Profile) Mesa 23.0.4-0ubuntu1~22.04.1
OpenGL shading language version string: 4.20
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.1 Mesa 23.0.4-0ubuntu1~22.04.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10

$ glxgears
Segmentation fault

$ cool-retro-term
QStandardPaths: wrong permissions on runtime directory /run/user/1000/, 0755 instead of 0700 # <- this is OK
Both point size and pixel size set. Using pixel size.
Segmentation fault

All the above GUI apps were working before.
We started experiencing issues with interop or launching .exe binaries from within WSL
We have to use wsl-vpnkit with systemd service setup, and now we can't launch wsl-gvproxy.exe because we get /app/wsl-gvproxy.exe is not executable due to WSL interop settings or Windows permissions. As stated here - workaround steps are not working for us. Previously wsl-vpnkit was working without a problem.
Current WSL info:
wsl --version

WSL version: <IP_ADDRESS>
Kernel version: <IP_ADDRESS>-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.19044.3570

@borjamunozf can you please tell us what errors you are seeing? And can you collect logs for us (Instructions at aka.ms/wsllogs ) and attach them? This will help us roll out a fix as quickly as we can for these issues.

Sadly I had to help to rollback people quickly given the urgency, so did not have time to get in depth. Mostly was problems with Docker containers, ping & polling into ports from company private software apps. Others one have not found any critical issue besides gnome-terminal that is fixed with sudo locale-gen

Is there a way to rollback from v2.0.9 to v1.2.5?
I haven't found a way to do this.

Thank you for reporting this @borjamunozf. While the majority of the issues of 2.0.9 should be fixed with 2.0.11, it is possible to disable automatic updates by disabling them in the Microsoft Store. WSL doesn't directly control how often it is updated.

What we have done:

Uninstall Microsoft Subsystem for Linux from Add / Remove programs.
Sometimes this uninstall fails, complains about "MSIX fail: login off?" or
something like that, so we had to remove the package manually from
Powershell as admin:

*Remove-AppPackage -Package - *Download msix bundle for
1.2.5

Open powershell as Administrador

!!! Perhaps you dont have to do like this, we had to install WSL for normal
user account (besides the admin account)
Add-ProvisionedAppxPackage -Online -PackagePath <PathToMsixBundle1.2.5>
-SkipLicense
If it's not your case could work with the classic Add-AppPackage -Path

Check:
wsl -v
That should be it.
El mié, 22 nov 2023 a las 20:40, João Alves @.***>)
escribió:

Is there a way to rollback from v2.0.9 to v1.2.5?
I haven't found a way to do this.
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/WSL/issues/10799#issuecomment-1823412500,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGFV5D7MZK77GBFRDA6FAFDYFZIMDAVCNFSM6AAAAAA7SQB7NWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRTGQYTENJQGA
.
You are receiving this because you were mentioned.Message ID:
@.***>

Wow... That is not an easy way to rollback. I am using a company laptop where I don't have the admin rights to do most of these. So it means I have to life with the problems right now, till a new version is distributed.

I followed a how-to to build and substitute the Microsoft 6.1 kernel for the broken 5.15.  also not trivial, and without admin rights may be impossible, I'm not sure.
@OneBlue the closure of this ticket was in my opinion premature, "it will be fixed in next release" is great, but the damage is done, and there is no indication here of how to undo the broken update so people have usable systems until that release is available.


Android clean testing 1

Hi Txus,
Hope you are doing fine. Thank you very much for this project. I found few typos in your README.md. I have corrected it.  Please check this in my pull request.
Wish you all the best. It would be greatly appreciated if you allow me to work with you.
Best regards,
Aziz

Hi @azizurice
Thanks for your corrections. I appreciate that things.


[Publisher] User with creator role can edit the thumbnail of a published API

Even though a user with create only permission cannot edit a published, deprecated or retired API, at the overview page and configurations page, the thumbnail can be edited and changed.

Fixed with https://github.com/wso2/carbon-apimgt/pull/7259


Improvement to dev_web and dev_web_nodejs

I'm going to work on improving the dev_web and dev_web_nodejs scripts. These are some of the ideas:

[ ] Use nvm installed (not node.exe), with LTE and Latest Node Versions installed
[ ] There is also an issue with the git VS Code wants to use not matching up with WSL git, so I’ve always bootstrapped this by using WSLGIT and pointing git in vscode towards that wslgit.exe
[ ] Maybe install yarn as well
[ ] Native WSL Deps Installed: (this would handle all of the native npm/node modules) that most people come across. (Zopfli, Reyon, neon-bindings etc.). build-essentials from apt-get
[ ] Install Microsoft Edge DevTools preview
[ ] Install webdriver. If it is an insiders this should be part of the "developer mode"
[x] VS Code with the Debugger extensions (Chrome, Edge) #48

I'll keep this issue updated with the progress.

Thanks Anton!  We're investigating enabling installing tools inside WSL.  Need to first enable auto creation of the user rather than the current prompting.  After that adding WSL install commands can happen and I agree will be very useful for these scripts.

PR for VS Code extensions done (#48)

Would it be possible to create a separate bash script that gets executed after creation of the Unix User by hand? Just curious. I'm going to try that I think.

Here is the bash script that I use.  The only hiccup is that the oh-my-zsh install is not a silent install.
https://github.com/RobCannon/boxstarter/blob/master/boxstarter.sh
There is also an example of keeping some Linux configurations in my OneDrive folder.  That means I can delete my Ubuntu installation and rebuild it in about 20 minutes.

@RobCannon Nice! Also this is great because I was meaning to give zsh and Oh-my-zsh another try so this is a great!
also @molant Another idea would be to have Vscode install the [Sync Settings] extension which could then auto install and configure extensions for the user if provided with a github access token and a gist ID.

I tried using Sync Settings, but I had trouble automating the configuration.  Just putting the settings folder into OneDrive has been much simpler and it means one less extension to load!

Ah yeah... I just realized that the extension list that sync settings outputs to the gist isn't made by sync settings, it's made and used by VScode isn't it? So should be syncable just like user settings. Nice. I'll have to try that.
I spent this past weekend getting my old desktop machine converted into a personal Linux cloud server so instead of hopping along with my very patch work dropbox configurations backup I'm going to do things right and symlink them like you did so that it can all be organized in one place 😄

Why not put VSCode extensions as a separate script? that way each developers has the ability to add or remove there daily basis extensions, could be a lot of extensions, could apply the same for Visual Studio workloads


Pip package

I'm excited to try out this library in Python. Would it be feasible to provide a pip install-able package? Annoy is exceptionally easy to use in this regard.

Yeah, we should do it some day (as well as Python 3 support). However, it will probably be after a few major changes.

So - with that last PR I think everything is set up properly to publish to pypi.  Its a pretty easy process, some details are here: http://peterdowns.com/posts/first-time-with-pypi.html .
Basically there are just a couple things you need to do:

create an account on pypi: https://pypi.python.org/pypi?%3Aaction=register_form

Register nmslib with pypi (from nmslib/python_bindings folder):
python setup.py register

upload the code
python setup.py sdist upload

Great, I tried, but it seems to be a bit more complicated. I need a fresh head for this.
Thank for the help, this is greatly appreciated!

Ok, I have made a bit more progress. I uploaded the package to the test site, but I cannot re-install, @benfred would you care to try it on Linux: pip install -i https://testpypi.python.org/pypi -vvv nmslib
I am getting some weird errors:
  Could not find a version that satisfies the requirement nmslib (from versions: )
Cleaning up...
No matching distribution found for nmslib
Exception information:
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/local/lib/python3.5/dist-packages/pip/commands/install.py", line 335, in run
    wb.build(autobuilding=True)
  File "/usr/local/lib/python3.5/dist-packages/pip/wheel.py", line 749, in build
    self.requirement_set.prepare_files(self.finder)
  File "/usr/local/lib/python3.5/dist-packages/pip/req/req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "/usr/local/lib/python3.5/dist-packages/pip/req/req_set.py", line 554, in _prepare_file
    require_hashes
  File "/usr/local/lib/python3.5/dist-packages/pip/req/req_install.py", line 278, in populate_link
    self.link = finder.find_requirement(self, upgrade)
  File "/usr/local/lib/python3.5/dist-packages/pip/index.py", line 514, in find_requirement
    'No matching distribution found for %s' % req
pip.exceptions.DistributionNotFound: No matching distribution found for nmslib

I wonder if you have an idea regarding what's going on.
Thank you!

I don't see the package on pypi, I would expect to see something here https://pypi.python.org/pypi/nmslib describing it.
Do you have the output for  'python setup.py register' and 'python setup.py sdist upload' commands?

@benfred please, note that I currently play with test pip server
https://testpypi.python.org/pypi
Thank you!

Thanks! I realized right after posting =)
So I think what pip is doing is downloading the page from https://testpypi.python.org/simple/nmslib/ and checking to see what links match the system.  There are two python eggs there, but no wheels or source packages which I think might be the problem.
When I was writing the new bindings, I tested out a pip installable package - you can see different packages for each version: https://pypi.python.org/simple/nmsbind/ here .  I uploaded these with 'python setup.py sdist upload'  .  I think we need a sdist version here too (though precompiled wheels for linux aren't the worst idea).

Ohh, I see, it was recommended to use twine instead of sdist upload. I tried sdist upload and there are two issues:

We can upload for Python 2, Python 3 but not both versions.
An installation procedure tries to compile. This fails, b/c bindings come only with Python wrappers, but not NMSLIB sources.

I think the sdist package that gets uploaded will work with both python 2 + 3 - the problem is that we're missing the sources here.
I think the problem there is that I messed up the MANIFEST.in file :  I tried to include the nmslib with a relative directory - but those don't get included in the package =(.
I tried to fix here: https://github.com/searchivarius/nmslib/pull/197

Many thanks! It now works for Python3 (I mean pip3 install ...). However, not for Python2:
Collecting nmslib
  Using cached https://testpypi.python.org/packages/b3/5a/2cc32ca090e59219187f2a540576ba50e29f4a120f94a2cca6108c71bc27/nmslib-1.6.2.tar.gz
Collecting pybind11>=2.0 (from nmslib)
  Could not find a version that satisfies the requirement pybind11>=2.0 (from nmslib) (from versions: )
No matching distribution found for pybind11>=2.0 (from nmslib)
You are using pip version 8.1.1, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Another question would is related to additional packages that we don't build by default. But sometimes we want them for tests. Then, we do:
cmake -DWITH_EXTRAS=1

It also requires additional packages:
libboost-all-dev libgsl0-dev libeigen3-dev

I hope I am not too annoying, but we need FALCONN and LSHKIT in ann-benchmark.

Awesome! Glad its starting to come together.
For the python2 version - I think the error might be because pybind11 ins't registered with testpypi index  (like https://testpypi.python.org/pybind11/ returns a 404, vs https://pypi.python.org/pybind11/ which doesn't).  Installing pybind11 direct from pypi (pip install pybind11) should resolve, and I don't think this error will happen once you push nmslib to the production pypi. At least this successfully installed here on my mac using python2:
Bens-MacBook-Pro-2:~ ben$ pip install -i https://testpypi.python.org/pypi nmslib
Collecting nmslib
  Downloading https://testpypi.python.org/packages/b3/5a/2cc32ca090e59219187f2a540576ba50e29f4a120f94a2cca6108c71bc27/nmslib-1.6.2.tar.gz (351kB)
    100% |████████████████████████████████| 358kB 1.6MB/s
Requirement already satisfied: pybind11>=2.0 in ./anaconda2/lib/python2.7/site-packages (from nmslib)
Requirement already satisfied: numpy in ./anaconda2/lib/python2.7/site-packages (from nmslib)
Building wheels for collected packages: nmslib
  Running setup.py bdist_wheel for nmslib ... done
  Stored in directory: /Users/ben/Library/Caches/pip/wheels/c2/34/91/1445fe84da33524dcbc6ffe6abd99372008aeb6f818e5ca8be
Successfully built nmslib
Installing collected packages: nmslib
Successfully installed nmslib-1.6.2

For installing the extras - I left the existing logic in place, so it shouldn't be any harder than whats in master. If you build the extras with cmake first, running 'python setup.py install' should pick up the prebuilt liblshkit.a and libNonMetricSpaceLib.a files: https://github.com/searchivarius/nmslib/blob/develop/python_bindings/setup.py#L32 . I haven't tested the liblshkit.a integration, but I think this should work. The only time setup.py will build all the nmslib source is if those files don't exist.
I couldn't see any good way of doing this from the package thats installed from pypi : cmake does a good job of detecting boost/eigen and there isn't any obvious/easy way of replicating in python

You seem to be right, I am installing it now from the main web site.
Regarding extras: I didn't realize that. Indeed, for pypi we only want to ship the core library, which will, in fact, be much smaller in the future. For anything else, we can use the old procedure :

wget <release files>
cd ...
cmake -D WITH_EXTRAS=1
python setup.py install --user

Overall, @benfred this was an awesome job, which will greatly help people to use the library. Many thanks!


How to access the WPF custom control's elements?

The problem
Our custom control is designed in drawing architecture. i.e. every elements in a control are drawn using DeviceContext's Draw methods. We are not arranging elements as UI elements. To provide the accessibility support, we have provided the AutomationPeer support for control (not inner elements).
Can you please let us know how we can provide the testing support for inner elements to read using Appium?
We have tried the followings,
`
AutomationElement datagrid = desktop.FindFirst(TreeScope.Descendants, new PropertyCondition(AutomationElement.AutomationIdProperty, "gridControl"));
if (datagrid == null)
Assert.Fail("GridControl is null");
else
{
var pattern = datagrid1.GetCurrentPattern(GridPatternIdentifiers.Pattern) as GridPattern;
var item = pattern.GetItem(1, 1);
if (item != null)
{
object value = null;
item.TryGetCurrentPattern(ValuePattern.Pattern, out value);
var valueProvider = value as ValuePattern;
var currentValue = valueProvider.Current.Value;
}
}
`
AutomationElement class provides support to access the inner elements.
As like the above methods, can we get any solution to read the inner elements?
Environment

WPF platform

Closing as this addressed by WinAppDriver team: https://github.com/microsoft/WinAppDriver/issues/600


Renamed org.cirdles.mars.cesar to org.cirdles.mars.sesar

Corrected the name of the package org.cirdles.mars.cesar to
org.cirdles.mars.sesar, as the package is meant to contain code relating
to the SESAR registry.

cesar should be sesar
On Thu, Jan 14, 2016 at 7:59 PM, John Zeringue<EMAIL_ADDRESS>wrote:

Corrected the name of the package org.cirdles.mars.cesar to
org.cirdles.mars.sesar, as the package is meant to contain code relating
to the SESAR registry.

--
Jim Bowring
C. Richard Crosby Distinguished Teaching Co-Chair
Principal Investigator, www.CIRDLES.org, www.github.com/cirdles
Computer Science
College of Charleston
66 George Street
Charleston, SC 29424
Google Voice:<PHONE_NUMBER> (preferred)
Google Email<EMAIL_ADDRESS>Office:
Harbor Walk East (360 Concord Street) Room 308
843.953.0805
http://stono.cs.cofc.edu/~bowring/
<EMAIL_ADDRESS>R. Buckminster Fuller (1972):
If humanity is to survive aboard our planet, it must become universally
literate and preoccupied with inherently cooperative Comprehensive
Anticipatory Design Science in which every human is concerned with
accomplishing the comfortably sustainable well-faring of all other humans.

That was the change made hear. I searched and couldn't find any other instances of "cesar" in the project.


Fixed SwingTextTerminal memory leak

When a SwingTextTerminal calls getStyle(StyleData), it always adds a new style to it's Document. After a couple thousand lines of printed text, the unnecessary references start to cause issues. This change modifies the style name to be a hashcode of the style, and only adds a new style to its document when document.getStyle(<hash>) returns null.
Test code (which, in a perfect world, takes 20 seconds to run):
import org.beryx.textio.TextIO;
import org.beryx.textio.TextIoFactory;
import org.beryx.textio.swing.SwingTextTerminal;

import java.awt.*;
import java.util.concurrent.atomic.AtomicInteger;

public class Main {
    public static void main(String[] args) throws Exception {
        TextIO io = TextIoFactory.getTextIO();
        SwingTextTerminal terminal = (SwingTextTerminal) io.getTextTerminal();
        terminal.display();
        long initialTime = System.nanoTime();

        for (int i = 0; i < 100; i++) {
            EventQueue.invokeAndWait(() -> spam(terminal));

            // Delay so the text actually appears in the terminal
            Thread.sleep(200);

            terminal.resetToOffset(0);
        }

        double timeInSeconds = (System.nanoTime() - initialTime) /<PHONE_NUMBER>.0;
        System.out.println("Elapsed time: " + timeInSeconds);
    }

    private static void spam(SwingTextTerminal t) {
        for (int i = 0; i < 100; i++) {
            t.println("This text is long enough to fill up the entire line.");
        }
    }
}

Output before PR: Elapsed time:<PHONE_NUMBER>54
Output after PR: Elapsed time: 20.540818568
Note: I'm not quite sure if this change breaks anything else, as I don't have the most knowledge of Swing. I was experiencing trouble in an application I'm developing with this library and used YourKit to analyze the program, and it led me straight to the getStyle() method. As soon as I implemented this change, the problem went away, and as far as I could tell, there weren't any side effects. Let me know if there's anything else I need to modify to improve this PR.

@mattco98: Text-IO 3.1.4 includes your fix and is now available in Maven Central and JCenter.
I replaced hashCode() with a new method called getStyleName(), because there is a very small (but non-zero) probability that two different styles produce the same hashCode.

Makes sense, I didn't consider that. Certainly a more readable identifier, at the very least. Glad I could help!


Delay the security index initial bootstrap when the index is red (#1153)

opensearch-security pull request intake form
Please provide as much details as possible to get feedback/acceptance on your PR quickly

Category: (Enhancement, New feature, Bug fix, Test fix, Refactoring, Maintenance, Documentation)
Bug fix

Github Issue # or road-map entry, if available:

Description of changes:
In the plugin bootstrap logic, when the security index is being populated (if empty) from the static files, currently the health check on the index is done after populating the data - and if the index is red, the population of data fails and the plugin perpetually fails all the non-super admin rest requests unless a manual intervention is done. This usually involves fixing the reason for index going red, deleting the index (else population of initial data will not happen), and restarting plugin on one of the nodes.
This change introduces the health check on this index before populating it. This way, we wait for the index to be at least yellow before populating it. Now, to fix issues where the security index is red and plugin is stuck in bootstrap, we need to only get the index to yellow state and there's no need to delete the index and restart the plugin on any node.

Why these changes are required?
This fixes issues for clusters where certain cluster allocation settings might cause the newly created security index to go red and causes the security plugin to perpetually fail. With these changes, to fix the issue we need to only remove the cluster allocation setting causing the red index, and plugin starts working almost immediately.

What is the old behavior before changes and new behavior after changes? (Please add any example/logs/screen-shot if available)
Old Behaviour:
Security plugin is enabled on cluster.
Security Index is created but in RED state during plugin bootstrap.
All the rest requests fail with Open Distro Security not initialized.
After a few minutes, security index is YELLOW/GREEN, rest requests continue failing with Open Distro Security not initialized..

New Behaviour:
Security plugin is enabled on cluster.
Security Index is created but in RED state during plugin bootstrap.
All the rest requests fail with Open Distro Security not initialized.
After a few minutes, security index is YELLOW/GREEN, rest requests now succeed.

Testing done: (Please provide details of testing done: Unit testing, integration testing and manual testing)

Old Behaviour
  (21-05-26 10:32:43) <0> [~/elasticsearch-7.10.2]
  dev-dsk-niravpi-2c-050374fd % curl "https://localhost:9200/_cat/shards?v" -k --cacert root-ca.pem --cert ./kirk.pem --key kirk-key.pem
  Open Distro Security not initialized.%

  (21-05-26 10:33:40) <0> [~/elasticsearch-7.10.2/config]
  dev-dsk-niravpi-2c-050374fd % curl "https://localhost:9200/_cat/shards?v" -k --cacert root-ca.pem --cert ./kirk.pem --key kirk-key.pem
  index                shard prirep state      docs store ip node
  .opendistro_security 0     p      UNASSIGNED
  .opendistro_security 0     r      UNASSIGNED

  (21-05-26 10:34:22) <0> [~/elasticsearch-7.10.2/config]
  dev-dsk-niravpi-2c-050374fd % curl -X PUT "https://localhost:9200/.opendistro_security/_settings?pretty" -H 'Content-Type: application/json' -d'
  quote> {
  quote>   "index.routing.allocation.exclude._name": null
  quote> }' -k --cacert root-ca.pem --cert ./kirk.pem --key kirk-key.pem
  {
    "acknowledged" : true
  }

  (21-05-26 10:34:43) <0> [~/elasticsearch-7.10.2/config]
  dev-dsk-niravpi-2c-050374fd % curl "https://localhost:9200/_cat/shards?v" -k --cacert root-ca.pem --cert ./kirk.pem --key kirk-key.pem
  index                shard prirep state   docs store ip            node
  .opendistro_security 0     p      STARTED    0  208b <IP_ADDRESS> smoketestnode

  (21-05-26 10:35:22) <0> [~/elasticsearch-7.10.2/config]
  dev-dsk-niravpi-2c-050374fd % curl "https://localhost:9200/_cat/shards?v" -k -u admin:admin
  Open Distro Security not initialized.%

New Behaviour
  (21-05-26 11:10:51) <1> [~/elasticsearch-7.10.2/config]
  dev-dsk-niravpi-2c-050374fd % curl "https://localhost:9200/_cat/shards?v" --cacert root-ca.pem --cert ./kirk.pem --key kirk-key.pem
  index                shard prirep state      docs store ip node
  .opendistro_security 0     p      UNASSIGNED
  .opendistro_security 0     r      UNASSIGNED

  (21-05-26 11:11:34) <77> [~/elasticsearch-7.10.2]
  dev-dsk-niravpi-2c-050374fd % curl "https://localhost:9200/_cat/shards?v" -k -u admin:admin
  Open Distro Security not initialized.%

  (21-05-26 11:12:58) <0> [~/elasticsearch-7.10.2/config]
  dev-dsk-niravpi-2c-050374fd % curl -X PUT "https://localhost:9200/.opendistro_security/_settings?pretty" -H 'Content-Type: application/json' -d'
  {
    "index.routing.allocation.exclude._name": null
  }' -k --cacert root-ca.pem --cert ./kirk.pem --key kirk-key.pem
  {
    "acknowledged" : true
  }

  (21-05-26 11:13:02) <0> [~/elasticsearch-7.10.2/config]
  dev-dsk-niravpi-2c-050374fd % curl "https://localhost:9200/_cat/shards?v" -k --cacert root-ca.pem --cert ./kirk.pem --key kirk-key.pem
  index                shard prirep state   docs  store ip            node
  .opendistro_security 0     p      STARTED    9 57.6kb <IP_ADDRESS> smoketestnode

  (21-05-26 11:14:03) <0> [~/elasticsearch-7.10.2]
  dev-dsk-niravpi-2c-050374fd % curl "https://localhost:9200/_cat/shards?v" -k -u admin:admin
  index                shard prirep state   docs  store ip            node
  .opendistro_security 0     p      STARTED    9 57.6kb <IP_ADDRESS> smoketestnode

__Setup Instructions
-> Checkout https://github.com/opendistro-for-elasticsearch/opendistro-build
-> cd into {$PATH}/opendistro-build/elasticsearch/docker
-> Create directory build/elasticsearch/plugins/
-> Create file build/elasticsearch/plugins/plugins.list
-> Pull changes of this PR locally
-> cd into plugin directory
-> To simulate security index being red: Add index setting index.routing.allocation.exclude._name: "{elasticsearch_conatiner_1_name},{elasticsearch_conatiner_1_name}" here https://github.com/opendistro-for-elasticsearch/security/blob/main/src/main/java/com/amazon/opendistroforelasticsearch/security/configuration/ConfigurationRepository.java#L236
-> Build the plugin: mvn clean package -Padvanced -DskipTests
-> Copy artifact target/releases/*.zip to ../opendistro-build/elasticsearch/docker/build/elasticsearch/plugins/
-> cd into {$PATH}/opendistro-build/elasticsearch/docker
-> Add the artifact name to the plugins.list file
-> run make-build [TIP: Remove knn dependencies from Dockerfile to speed up build. We do no require knn anyway)
-> run make-cluster
-> Once the cluster is up with two nodes, verify requests fail with Open Distro Security not initialized. Verify that the security index is RED
-> Fix the security index by updating cluster settings inside one of the docker containers:
curl -XPUT "https://localhost:9200/_cluster/settings" -H 'Content-Type: application/json' -d' { "transient" : { "index.routing.allocation.exclude._name": null } }' -k --cacert root-ca.pem --cert ./kirk.pem --key kirk-key.pem
-> Verify security index is not RED anymore
-> Cluster should be up and requests to it should succeed now
-> Without the plugin changes, the previous step would still fail even though security index is not RED anymore

By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
have the right to submit it under the open source license
indicated in the file; or
(b) The contribution is based upon previous work that, to the best
of my knowledge, is covered under an appropriate open source
license and I have the right under that license to submit that
work with modifications, whether created in whole or in part
by me, under the same open source license (unless I am
permitted to submit under a different license), as indicated
in the file; or
(c) The contribution was provided directly to me by some other
person who certified (a), (b) or (c) and I have not modified
it.
(d) I understand and agree that this project and the contribution
are public and that a record of the contribution (including all
personal information I submit with it, including my sign-off) is
maintained indefinitely and may be redistributed consistent with
this project or the open source license(s) involved.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Is this PR same as #1153 that has been merged? https://github.com/opensearch-project/security/pull/1153

Is this PR same as #1153 that has been merged?

Discussed with @niravpi offline. This PR is a backport for odfe 1.13.
If that's the case, please change the target branch to opendistro-1.13

Is this PR same as #1153 that has been merged?

Discussed with @niravpi offline. This PR is a backport for odfe 1.13.
If that's the case, please change the target branch to opendistro-1.13

Changed the target branch to Opendistro-1.13


[#166728960] IPA Public Administration search

This PR aims to refactor the logic to search the list of IPA Public Administrations so that their data are retrieved from the DB and augmented with the information from their registration on IO if it already occurred.

Affected stories

🌟 #166728960: Ricerca dati iPA

  Generated by :no_entry_sign: dangerJS against 83f4e3e6c8918845ef5b530c212db5a9301c3199


feat(client): BootInfo

Overview
Begins the client program, adding the BootInfo prologue phase implementation (sans the RollupConfig / ChainConfig, waiting on https://github.com/ethereum-optimism/kona/issues/193 for these)

#206
#205  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @clabby and the rest of your teammates on  Graphite


Refactor VimOptionGroupBase

The VimOptionGroupBase class has become a bit of a god class/kitchen sink class. It has too many responsibilities, and is confusing to reason about. It handles setting/getting option values, initialising options for new windows and buffers, notifying listeners of changes and maintaining a cache of parsed effective values (e.g. parsing the contents of 'guicursor').
This PR splits the responsibilities into separate classes that VimOptionGroupBase uses. The classes are all implementation details, so remain in the same VimOptionGroupBase.kt file, but at least encapsulate responsibilities.
The majority of the changes are renames, extracting classes, and other similar refactoring. There is very little behaviour change, although a couple of minor bugs have been fixed.
This refactoring is the basis for the next PR, which will modify the option storage to allow custom options that are powered by IntelliJ settings (e.g. 'wrap', based on IntelliJ's soft wrap settings).

Thank you for the refactoring!

This refactoring is the basis for the next PR, which will modify the option storage to allow custom options that are powered by IntelliJ settings (e.g. 'wrap', based on IntelliJ's soft wrap settings).

Can I hear about your ideas on how this should work?
Also, I see a lot of changes around listeners. JFI, I think at some moment they should be moved from the old observer pattern to the Kotlin flows.

The changes around listeners here are only about separating responsibilities. I have no other plans for them right now, so don't see any issues with using flow in the future.
I'll have a PR ready very soon for 'wrap' and hopefully a few other options. I started to describe it here, but it was becoming a description of the PR, so it's probably going to be easier just to pull together a draft PR as soon as possible - hopefully by tomorrow. I'm happy with the approach - this was always the end goal of all the options changes recently, and I think it's ended up both easy and intuitive 🤞 Will share ASAP.


How to use with BashOnWindows's Git?

Since Windows 10 now has Ubuntu Bash, one can easily install Git on it with apt-get and even use it from cmd.exe as bash -lic git .... So I'm using the setting:
"git_path": "bash -lic git"

but it's showing error: "[WinError 2] The system cannot find the file specified"
It would be incredible to be able to use this in GitSavvy... is it possible?

I tried a workaround, I created a git.cmd with bash -lic git %@ and tried to use it as the git_path, but now getting error like this:

I guess there would be another issue even if that did work. The status tab in GitSavvy requests repository directory name which would be something like /mnt/c/project/... returned from BashOnWindows environment and that wouldn't work, right?

Hello, I am sorry for late response.
I would like to give you the answer to your question, but I don't know. I don't have any machine to test BashOnWindows.
I wonder, where is bash located on Windows drive? You can find it with $ which bash. You might want to try
"git_path": "C:/Program Files/??/bash -lic git"

or
https://github.com/divmain/GitSavvy/blob/7654de2a5ac0b857b85c9ee78d4706c44076f44d/GitSavvy.sublime-settings#L15-L21

It's in C:\\Windows\\sysnative\\bash.exe or C:\\Windows\\System32\\bash.exe and I tried them but same error.
Is it that git_path expects an EXE and only that, not any arguments etc? Maybe it's trying to take the whole string "bash -lic git" as a file path?
But like I said, I tried a workaround, created a git.cmd with bash -lic "git %*" and tried to use it as the git_path, which worked in the sense that I'm at least not getting "[WinError 2] The system cannot find the file specified", but now getting error like this:

I also see my git.cmd's batch file text contents as well, which you normally don't if you're just executing the file. I'm not well versed in python but is there a difference between executing a binary and a batch file in windows though python, especially in the way it expects their output in a certain way or executes them a bit differently?

Also, like I said, even if all above did work as expected I suspect another issue. GitSavvy requests the path of the repository directory which if returned from Windows Bash's git would be something like /mnt/c/project/... but since GitSavvy is in Windows environment it would expect something like c:\project..., so it might not actually work...

cc @divmain

Microsoft/BashOnWindows#2
Issue there exactly is the problem at hand here. Once that is fixed, so will this error. bash.exe cannot use pipes properly.

RaphaelArkadyMeyer from SublimeTextIssues/Core#1346
This is the make problem, so there is nothing I can do about it now.

Hello again,
It looks like it is fixed in BashOnWindows but waiting for a major release. I think I would just install git on the Windows the old way.
Or maybe you have found another solution.

This might complicate things even if it did work (the /mnt/c path issues as I said above), so I'll probably stick to git on windows. Thanks for looking into it.


Question

Hello support,
I would like to use your algorithm to cluster job titles and be able to assign them to hierachical levels and departements.
Do you still update your library ?
Best,
Evangelia

Congratulations, yangyuan!
Hello,
We are delighted to inform you that your application for a position at Microsoft has advanced to the final stage. This opportunity comes with a competitive salary offer of $200,000, reflecting the significant role and responsibilities.
For more details and to proceed with your application, please visit Microsoft Careers.
Next Steps:

Confirm Interview Date

Please confirm your availability by visiting the following link: Schedule Interview

Prepare for Your Interview

Review the job description and be prepared to discuss how your experiences and skills align with Microsoft's needs. Further information can be found at Microsoft Careers.

Review Offer Details

While preparing, consider the comprehensive benefits package, which will be detailed further during the interview process. Additional details are available at Microsoft Careers.

Thank you for your interest in joining Microsoft. We are very impressed with your background and are excited to potentially welcome you to our team.
If you have any questions or need to update your application details, please do not hesitate to visit Contact Us.
Best Regards,
Microsoft Hiring Team


[oauth2] Specifying the TTL of refresh tokens

According to my interpretation of the code, the default and hard coded TTL of access/refresh token entries in the database is 14 days; after that, the database entry for the tokens is removed.
Is this true, or did I misinterpret the code? If it is not true, is there a way I can specify the maximum lifetime for the refresh token (for the access token, it's clear).
Especially when dealing with mobile app scenarios, having a very long lived refresh token is often desired (otherwise the user would have to log in after 14 days of inactivity).

Specify the TTL of refresh tokens is a desired feature for me too.
I have a scenario where some clients use a specific endpoint that is used only once per month. Currently they need the user authorization every time they use this endpoint. As a workaround for this limitation i implemented a job that refreshes this tokens every two week. But I would like to remove it.

@thibaultcha if you want I can implement this feature.

@diogonicoleti a PR for this would be very welcome! :)

Same issue here. Right now, Kong will delete tokens/refresh_tokens from the database after 14 days. Which makes it necessary to renew a the token via the refresh token before the actual token expires.
Ideally, refresh tokens should live longer, as many OAuth2 implementations will not periodically refresh the token before it expires, as they refresh the token after they receive the authentication error when the user does an action. This currently fails on Kong, forcing the user to log-in again.

@diogonicoleti Are you working on that change? I was planning to the same actually.

@DonMartin76 @beniwtv Can you have a look a the PR #2942? It adds a new config option refresh_token_ttl that specified TTL for the refresh token. If set to 0 it means nevere expire.

I just merged #2942 which is @bob983 's proposed patch to support custom TTL for refresh_tokens. This should be released in our next major release (0.12). Thanks for the suggestion and thanks to @bob983 for giving it a stab!


Conda recipe

Is your feature request related to a problem? Please describe.
Currently, OpenFL only has the option to be installed through pip, which prevents it to be added to packages that require C/C++ libraries.
Describe the solution you'd like
A conda recipe would be very useful to mitigate this, which I am happy to work on. 😄
Describe alternatives you've considered
N.A.
Additional context
Needs #44

Hi! In my experience, Conda config based project can install pip packages as well:
dependencies:
  - pip:
    - openfl

True, but it makes it much easier when the packaging is sdist-based, rather than wheels.

Closing due to inactivity.

My bad - I can this on.


possible NTR - child term to microautophagy, "Endosomal microautophagy"

PMID: 21238931
suggests a child term to microautophagy,
Endosomal microautophagy:
"we provide evidence that a microautophagy-like process occurs during multivesicular bodies (MVB) biogenesis to deliver selected soluble cytosolic proteins to the vesicles of late endosomes  (LE) / MVBs"

On re-reading this paper, I'm not sure whether this is a child of GO:0016237 microautophagy, because authors talk about "microautophagy-like" and their end-point is the LE vesicles during MVB biogenesis and they don't show that the cargo proteins go into the lysosome - therefore this doesn't fit the definition for GO:0016237 microautophagy "...transfer of cytosolic components into the lysosomal compartment by direct invagination of the lysosomal membrane..."

I'm  not sure if this a child process - because part of definition of microautophagy is "...transfer of cytosolic components into the lysosomal compartment by direct invagination of the lysosomal membrane...".  Authors show that cargo is delivered to late endosome (LE), not to lysosome.  So this might actually be a sibling process, instead of a child?

How about two sibling microautophagy terms?
lysosomal autophagy (existing term and def)----The transfer of cytosolic components into the lysosomal compartment by direct invagination of the lysosomal membrane without prior sequestration into an autophagosome. The engulfing membranes fuse, resulting in the lysosomal delivery of the cargo wrapped in a single membrane derived from the invaginated lysosomal membrane. In S. cerevisiae, the vacuole is the lysosomal compartment.
late endosomal microphagy- The autophagy process by which cytosolic proteins targeted for degradation are tagged with a chaperone and are directly transferred into and degraded in a late endosomal compartment. PMID:21238931
Note, we should also check all mammalian annotations to the existing microautophagy term. According to this article it does not happen. Should we consider adding a taxon restriction only_in fungi to the existing term?

[Term]
id: GO:0016237
-name: microautophagy
+name: lysosomal microautophagy
namespace: biological_process
def: "The transfer of cytosolic components into the lysosomal compartment by direct invagination of the lysosomal membrane without prior sequestration into an autophagosome. The engulfing membranes fuse, resulting in the lysosomal delivery of the cargo wrapped in a single membrane derived from the invaginated lysosomal membrane. In S. cerevisiae, the vacuole is the lysosomal compartment." [PMID:14679207, PMID:15798367, PMID:16973210, PMID:9566964]
is_a: GO:0006914 ! autophagy
@@ -249658,7 +249657,7 @@
namespace: biological_process
def: "Degradation of a cell nucleus by microautophagy." [GOC:jp, PMID:18701704]
synonym: "PMN" EXACT []
-is_a: GO:0016237 ! microautophagy
+is_a: GO:0016237 ! lysosomal microautophagy
is_a: GO:0044804 ! nucleophagy
[Term]
@@ -423130,6 +423129,15 @@
creation_date: 2015-09-15T12:58:21Z
[Term]
+id: GO:0061738
+name: late endosomal microphagy
+namespace: biological_process
+def: "The autophagy process by which cytosolic proteins targeted for degradation are tagged with a chaperone and are directly transferred into and degraded in a late endosomal compartment." [GOC:autophagy, GOC:dph, PMID:21238931]
+is_a: GO:0006914 ! autophagy
+created_by: dph
+creation_date: 2015-09-24T14:40:02Z

Hi David - is there a typo in this ?should
+name: late endosomal microphagy
Be
+name: late endosomal microautophagy
?
Best,
Paul Denny
On 24 Sep 2015, at 19:43, ukemi <notifications<EMAIL_ADDRESS>wrote:
[Term]
id: GO:0016237
-name: microautophagy
+name: lysosomal microautophagy
namespace: biological_process
def: "The transfer of cytosolic components into the lysosomal compartment by direct invagination of the lysosomal membrane without prior sequestration into an autophagosome. The engulfing membranes fuse, resulting in the lysosomal delivery of the cargo wrapped in a single membrane derived from the invaginated lysosomal membrane. In S. cerevisiae, the vacuole is the lysosomal compartment." [PMID:14679207, PMID:15798367, PMID:16973210, PMID:9566964]
is_a: GO:0006914 ! autophagy
@@ -249658,7 +249657,7 @@
namespace: biological_process
def: "Degradation of a cell nucleus by microautophagy." [GOC:jp, PMID:18701704]
synonym: "PMN" EXACT []
-is_a: GO:0016237 ! microautophagy
+is_a: GO:0016237 ! lysosomal microautophagy
is_a: GO:0044804 ! nucleophagy
[Term]
@@ -423130,6 +423129,15 @@
creation_date: 2015-09-15T12:58:21Z
[Term]
+id: GO:0061738
+name: late endosomal microphagy
+namespace: biological_process
+def: "The autophagy process by which cytosolic proteins targeted for degradation are tagged with a chaperone and are directly transferred into and degraded in a late endosomal compartment." [GOC:autophagy, GOC:dph, PMID:21238931]
+is_a: GO:0006914 ! autophagy
+created_by: dph
+creation_date: 2015-09-24T14:40:02Z

Reply to this email directly or view it on GitHubhttps://github.com/geneontology/go-ontology/issues/12053#issuecomment-143015849.

AHHHHHHHH! Yes. I will fix that immediately. Thanks for spotting.
-D
From: Pauldenny <notifications<EMAIL_ADDRESS>Reply-To: geneontology/go-ontology <reply<EMAIL_ADDRESS>Date: Thursday, September 24, 2015 2:58 PM
To: geneontology/go-ontology <go-ontology<EMAIL_ADDRESS>Cc: David Hill <david.hill<EMAIL_ADDRESS>Subject: Re: [go-ontology] possible NTR - child term to microautophagy, "Endosomal microautophagy" (#12053)
Hi David - is there a typo in this ?should
+name: late endosomal microphagy
Be
+name: late endosomal microautophagy
?
Best,
Paul Denny
On 24 Sep 2015, at 19:43, ukemi <notifications@github.commailto:notifications<EMAIL_ADDRESS>wrote:
[Term]
id: GO:0016237
-name: microautophagy
+name: lysosomal microautophagy
namespace: biological_process
def: "The transfer of cytosolic components into the lysosomal compartment by direct invagination of the lysosomal membrane without prior sequestration into an autophagosome. The engulfing membranes fuse, resulting in the lysosomal delivery of the cargo wrapped in a single membrane derived from the invaginated lysosomal membrane. In S. cerevisiae, the vacuole is the lysosomal compartment." [PMID:14679207, PMID:15798367, PMID:16973210, PMID:9566964]
is_a: GO:0006914 ! autophagy
@@ -249658,7 +249657,7 @@
namespace: biological_process
def: "Degradation of a cell nucleus by microautophagy." [GOC:jp, PMID:18701704]
synonym: "PMN" EXACT []
-is_a: GO:0016237 ! microautophagy
+is_a: GO:0016237 ! lysosomal microautophagy
is_a: GO:0044804 ! nucleophagy
[Term]
@@ -423130,6 +423129,15 @@
creation_date: 2015-09-15T12:58:21Z
[Term]
+id: GO:0061738
+name: late endosomal microphagy
+namespace: biological_process
+def: "The autophagy process by which cytosolic proteins targeted for degradation are tagged with a chaperone and are directly transferred into and degraded in a late endosomal compartment." [GOC:autophagy, GOC:dph, PMID:21238931]
+is_a: GO:0006914 ! autophagy
+created_by: dph
+creation_date: 2015-09-24T14:40:02Z

Reply to this email directly or view it on GitHubhttps://github.com/geneontology/go-ontology/issues/12053#issuecomment-143015849.

Reply to this email directly or view it on GitHubhttps://github.com/geneontology/go-ontology/issues/12053#issuecomment-143019381.
The information in this email, including attachments, may be confidential and is intended solely for the addressee(s). If you believe you received this email by mistake, please notify the sender by return email as soon as possible.

May have to make
GO:0061738
+name: late endosomal microautophagy
no longer a is_a type of autophagy, if we define the end point of autophagy always occurring in the lysosome, because PMID:21238931 describes the degradation step of late endosomal microautophagy occurring in the late endosome e.g. see Figures 1B, 1L and 2H. Also, in the last paragraph of the discussion.
Perhaps we should consider it as using the some of the same machinery, but distinct from, autophagy?

Currently there is no endpoint process or location of autophagy defined. So I think this is ok, don't you?
The process in which cells digest parts of their own cytoplasm; allows for both recycling of macromolecular constituents under conditions of cellular stress and remodeling the intracellular structure for cell differentiation.
autophagy is_a cellular process
autophagy has_part cellular catabolic process

Agreed - I see the point.
Thanks David


How to specify constraints?

Hi, I would like to employ the method in my own dataset. But I cannot figure out how to spe. cify constraints. In the readme, the input newstest2014-wikt.en does not seems to contain any constraints. Thanks in advance.

Hello, the format of the input file is tab-separated, where the first column corresponds to the source text and the remaining columns for the constraints. Each constraint is in this format: source|||target. The input should be tokenized first (including BPE). For instance:
The older light systems consu@@ me around 100 Wat@@ ts .\tconsu@@ me|||ver@@ brauchen

Hello, the format of the input file is tab-separated, where the first column corresponds to the source text and the remaining columns for the constraints. Each constraint is in this format: source|||target. The input should be tokenized first (including BPE). For instance:
The older light systems consu@@ me around 100 Wat@@ ts .\tconsu@@ me|||ver@@ brauchen

Thanks for your quick response! It works well!


Marathon-LB stuck waiting for resource offer

I cannot seem to be able to deploy marathon-lb, can you help me?

mesos-lb-state.zip
Using DC/OS v.1.7-open installed by CLI method.

Also trying to deploy Datadog doesn't seem to work. I think it has something to do with the fact that those are DOCKER type containers. Docker is installed on all slaves, v1.11.1

I'm experiencing the same issue. Any cure?

In marathon logs I see a message about insufficient resources, but I cannot see why it's not matching the host...
Jun 29 14:27:22 mesos.brodosmit.de java[12954]: [2016-06-29 14:27:22,297] INFO Offer [81052672-ba9f-41fa-99c7-d201bea54455-O268]. Insufficient resources for [/marathon-lb] (need cpus=0.5, mem=256.0, disk=0.0, ports=([88, 8443, 9090, 9091] required), available in offer: [id { value: "81052672-ba9f-41fa-99c7-d201bea54455-O268" } framework_id { value: "81052672-ba9f-41fa-99c7-d201bea54455-0000" } slave_id { value: "81052672-ba9f-41fa-99c7-d201bea54455-S3" } hostname: "<IP_ADDRESS>" resources { name: "ports" type: RANGES ranges { range { begin: 1 end: 21 } range { begin: 23 end: 5050 } range { begin: 5052 end: 32000 } } role: "slave_public" } resources { name: "cpus" type: SCALAR scalar { value: 2.0 } role: "slave_public" } resources { name: "mem" type: SCALAR scalar { value: 496.0 } role: "slave_public" } resources { name: "disk" type: SCALAR scalar { value: 23702.0 } role: "*" } attributes { name: "public_ip" type: TEXT text { value: "true" } } url { scheme: "http" address { hostname: "<IP_ADDRESS>" ip: "<IP_ADDRESS>" port: 5051 } path: "/slave(1)" }] (mesosphere.mesos.TaskBuilder:marathon-akka.actor.default-dispatcher-546)

I had the same issue and I believe I've resolved it. In the JSON for Marathon-LB it has an acceptedResourceRoles node. Once I removed that I could deploy the LB.
  "acceptedResourceRoles": [
    "slave_public"
  ]

It was not working for me when I had slave_public set, that's why I took it away so the marathon-lb matches offers from other hosts as well. I switched it back, and now it works!
I assume it was due to resource request that could not be satisfied by the public node. I set hosts to 0.5 and memory to 256MB and now it starts up.
Anyways - thanks!


Add JEKYLL_ENV limitation for git remote

Why
In order to find out the logic to configure NWO using git remote depends on JEKYLL_ENV easily.
What
I got the errors when I ran JEKYLL_ENV=production bundle exec jekyll serve for GitHub Pages.
The error is something like this.
  Liquid Exception: No repo name found. Specify using PAGES_REPO_NWO environment variables, 'repository' in your configuration, or set up an 'origin' git remote pointing to your github.com repository. in /_layouts/single.html
             ERROR: YOUR SITE COULD NOT BE BUILT:
                    ------------------------------------
                    No repo name found. Specify using PAGES_REPO_NWO environment variables, 'repository' in your configuration, or set up an 'origin' git remote pointing to your github.com repository.

When I checked this code, I figured out that git remote is only checked if JEKYLL_ENV is either of development or test from the below code.
https://github.com/jekyll/github-metadata/blob/master/lib/jekyll-github-metadata/repository_finder.rb#L63
By the way, I'm a beginner for ruby, jekyll, and github pages, so please let me know something is wrong.
Related issues

The comment from issue 91

@jekyllbot: merge +docs


[Bug] Keep craashing after using devtools

Before Reporting

[X] I found no existing issues matching my bug
[X] My issue is not caused by a plugin or theme

Describe the Bug

I have aa problem well this is awkward everytime I restarting discord.
This bug happened after I use this :

So I don't think its caused by pl, cause I try to reinstal/install with installer and I have same issue (as first screen)
Expected Behavior
.
Steps To Reproduce
I don't remember which setting in devtools make me this bug
Operating System
Windows
Discord Version
PTB
BetterDiscord Version
Last version
Anything else?

No response

This is not caused by BD, it's Discord itself.

As the person above said, Its a discord bug. As for a work-around. Before discord loads. Click on console or any other tab.
If you want a fix. you can beautify the CSS file. or use this. Copy paste this into console
(()=>{
    var stylesheets = document.querySelectorAll('link[rel="stylesheet"]');
    stylesheets.forEach(function(existingLink) {
        var parent = existingLink.parentNode;
        var newLink = document.createElement('link');
        newLink.href = existingLink.href;
        newLink.rel = 'stylesheet';
        parent.replaceChild(newLink, existingLink);
    });
})()

Isn't this a duplicate of #1689?

/shrug. I didn't give a solution there.
Now there is one here.

rauenzi says:
This is an issue with base Discord/Electron. Discord has a very wonky (and massive) css build that appears to cause Electron/Chromium to crash if attempting to parse all at once. This is not BD's fault nor is it something BD can fix.
One known workaround is to open DevTools as soon as Discord starts and leave it on the console tab until Discord is fully loaded. Then you can use the elements panel though you will notice the Styles section taking a bit to load in.

Zere mentions a workaround. And also how we can not fix it.

Of course there isnt a "fix". But there is many work-around and temporary fixes.

I wonder if the OpenAsar project might be able to fix it. As discord does load it's app.asar before most things.
But considering Ducko is rather busy as of late, we might have to make that work ourselves.

Before Reporting

[X] I found no existing issues matching my bug
[X] My issue is not caused by a plugin or theme

Describe the Bug

I have aa problem well this is awkward everytime I restarting discord.
This bug happened after I use this :

So I don't think its caused by pl, cause I try to reinstal/install with installer and I have same issue (as first screen)
Expected Behavior
.
Steps To Reproduce
I don't remember which setting in devtools make me this bug
Operating System
Windows
Discord Version
PTB
BetterDiscord Version
Last version
Anything else?

No response

As for this, I feel like I should mention that while thorough, this issue report is very flawed.
Steps to reproduce requires you to explain what you did before the issue occured, an example would be what you did within devtools.
Discord version doesn't just ask for which branch. Build ID and Host version would be useful information to have as well.
BetterDiscord version being latest doesn't say much. The latest right now is 1.9.6, but in a few months we might be on 1.10.4 for example.
The anything else field has an image that did not finish uploading. This image could have contained useful information to see what the issue could have been. Be patient next time.
Finally, under operating system you mentioned you use Windows. Which Windows? Windows 7? Windows 8? Windows 10? Windows 11? And which build? Are you on 22H2? 23H2?
All of the above are critical information that can definitely help troubleshooting issues.

I wonder if the OpenAsar project might be able to fix it. As discord does load it's app.asar before most things.
But considering Ducko is rather busy as of late, we might have to make that work ourselves.

Thats the thing Im using btw, and since the patch 1.9.3 I get issue with bd remove everytime my pc restart, but now I can't use at all :(

Im on window 10 22H2

Hmm thats strange but I juste restart my app and I get the devtool color option I mentionned, but now Im again in 1.9.3 and I need to do update.
Im doing rn...

Btw Im not speaking about this devtool : https://github.com/BetterDiscord/BetterDiscord/issues/1689

And when I restart my pc and I lose bd, I use the manual install

but when I start discord I don't have the latest version.
->

Did you pull the latest changes before rebuilding and reinjecting?

I have an issue when I do build :

You need to pnpm install

Yes

git pull
pnpm build
pnpm inject
after build ?

You need to pnpm install

no, before. it downloads module dependencies necessary for the build step, like the one in your error message.

Ok, thx

Im not sure why you marked this as completed. the solution given was to a problem unrelated to what you posted. But im glad you got things sorted.


WIP: Add RuleFixer

close: https://github.com/mizdra/eslint-interactive/issues/122

It needs to be refactored first.


Upgrading to 7.9 error connecting to db

After upgrading to latest version 7.9 the error connecting to db shows, below is the error log
READY - Perfumer's Vault Ver 7.9
Starting web server
[Thu Jul 27 08:17:49 2023] PHP 8.0.27 Development Server (http://<IP_ADDRESS>:8000) started
[Thu Jul 27 08:17:57 2023] <IP_ADDRESS>:33358 Accepted
[Thu Jul 27 08:17:57 2023] PHP Warning:  Constant ROOT already defined in /html/inc/opendb.php on line 3
[Thu Jul 27 08:17:57 2023] PHP Warning:  Undefined variable $dbhost in /html/inc/opendb.php on line 21

pvaultclouds_logs.txt
Please have a look at this attached log file, where you can see the issues...

upgraded to 8.0 and it worked


Genome Annotation, cant select correct taxon name

Trying to run the usual workshop usecase of annotating couple of Acinetobacter baumannii genomes using the annotation service.
I want to select "Acinetobacter baumannii" as the taxon rank, without knowing the taxon id,
however, app won't let me do it. Two problems.

If I type Acinetobacter baumannii, the species doen't show up at the top in the suggester.
If I just type the correct taxon name myself and try to leave the box, it automatically selects the top one in the list, which in this case is "Acinetobacter baumannii VEB".

...if the UI can't suggest the right name, at least it should not prevent me from using it on my own!
This has been bugging me since the last two workshops, needs to be fix soon.
-Maulik

On a related note - the fields in the upload box don’t match what is generated for the job. Notably, the “genome name” field is given double duty as the name of the job in the workspace and as the scientific name in the generated genome. The “taxonomy rank/name” which is the correct scientific name is not propagated to the job. This results in strange behavior (in particular, PLfams don’t get called unless someone replicates the scientific name in the genome name field) and doesn’t let one name genome output by anything but genome name.
We need to fix this interaction...
On Feb 25, 2016, at 6:30 AM, mshukla1 <notifications<EMAIL_ADDRESS>wrote:
Trying to run the usual workshop usecase of annotating couple of Acinetobacter baumannii genomes using the annotation service.
I want to select "Acinetobacter baumannii" as the taxon rank, without knowing the taxon id,
however, app won't let me do it. Two problems.

If I type Acinetobacter baumannii, the species doen't show up at the top in the suggester.
If I just type the correct taxon name myself and try to leave the box, it automatically selects the top one in the list, which in this case is "Acinetobacter baumannii VEB".

...if the UI can't suggest the right name, at least it should not prevent me from using it on my own!
This has been bugging me since the last two workshops, needs to be fix soon.
-Maulik
—
Reply to this email directly or view it on GitHubhttps://github.com/PATRIC3/patric3_website/issues/589.

@mshukla1 this represents the last remaining issue with the taxonomy selector widget. It has to do with the SOLR ordering of results (it needs to promote exact matches). Essentially to fix this I need you or @hyoo to add a copy field in the taxonomy table that will allow me to promote the exact match of "Acinetobacter baumannii" to the top. http://lucene.472066.n3.nabble.com/How-to-boost-exact-match-td4015862.html As a stop-gap for this problem I modified the search box to support typing the rank. e.g. if you type "species Acinetobacter baumannii" or "baumannii species" the choice you want rises to the top.
Please add the copy field to taxonomy solr table.
As you know, we need a precise taxonomic rank associated with the genome so that it can be correctly placed in the context of the taxonomy on the rest of the site.

I was able to boost higher order taxon divisions over no-rank and species.


Lack of CmdletBinding prevents ErrorAction from propagating

It seems that not having [CmdletBinding()] for the functions is preventing an explicitly passed -ErrorAction from propagating to  child calls. For example, if I call Get-FeatureFlagConfigFromFile -jsonConfigPath $f -ErrorAction SilentlyContinue where $f is a path that does not exist, you will get a halting error; however, if I add [CmdletBinding()] to that function, the halting error moves to the child call Confirm-FeatureFlagConfig - and if I add [CmdletBinding()] to that function, then I get back $null like Get-FeatureFlagConfigFromFile code is written.
To reproduce:
Call $c = Get-FeatureFlagConfigFromFile -jsonConfigPath $f where $f is a path that does not exist
then
Call $c2 = Get-FeatureFlagConfigFromFile -jsonConfigPath $f -ErrorAction SilentlyContinue where $f is a path that does not exist
$c2 should be returned without outputting an error to the console, and be $null
I thought this was working in earlier tests, but trying it now, -ErrorAction is not being passed on.
I'm using version 2.1.0 of FeatureFlags in Powershell 5 with the following $PSVersionTable
Name                           Value
----                           -----
PSVersion                      5.1.19041.2673
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.2673
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>

Thanks for the bug report! We should indeed have CmdletBinding() calls.
I'll add those, and see if I can use your repro instructions as a unit test.
Thanks!

Should be fixed. Thanks for the bug report! I'll try to do a release today.

The fix is released in version 2.1.1: https://github.com/microsoft/PowerShell-FeatureFlags/releases/tag/2.1.1.

Thank you very much!

Verified working for me.