documentation is too vague

Current behavior
I read the documentation, and get frustrated because it leaves out lots of information.
Expected behavior
I read the documentation, and I understand and know what to expect.
Your environment
two eyes, one brain, and my laptop and its react projects
API

[ x ] shallow
[ x ] mount
[ ] render

Version

library
version

enzyme
3.7.0

react
16.4.2

react-dom
16.4.2

react-test-renderer

adapter (below)

Adapter

[ X ] enzyme-adapter-react-16
[ ] enzyme-adapter-react-16.3
[ ] enzyme-adapter-react-16.2
[ ] enzyme-adapter-react-16.1
[ ] enzyme-adapter-react-15
[ ] enzyme-adapter-react-15.4
[ ] enzyme-adapter-react-14
[ ] enzyme-adapter-react-13
[ ] enzyme-adapter-react-helper
[ ] others ( )

Specific Questions

The documentation is too vague about a lot of its nouns.  I would gladly edit your doc pages if I knew answers to these questions.  (by wiki or by source?)  And, hurry up, I'm unemployed this month so I have time to work on it.
First of all, there needs to be a clear distinction between types of nodes:

DOM nodes, created from react nodes
React nodes, embedded inside wrapper nodes
Wrapper nodes, the main topic of enzyme.  These are 'enzyme wrappers' not 'react wrappers', right?

Wrapper nodes seem to be analogous to jQuery objects - a non-array array of ... some kind of nodes.  Maybe wrappers aren't nodes themselves, but they contain zero or more nodes as with a jQuery object?

What's the difference between at() and childAt()?  They look the same.

get(i) will return the React node for the slot i in the called wrapper.  If I want the wrapper for the Wrapper node at slot i, should I use an array index [i]?

What's a "host node" and what does hostNodes() do?

is first() the same as at(0) or childAt(0) or get(0)?  What's the 'current node' in the description?

if exists(no argument) returns false, does that mean that the wrapper it's called on has 0 nodes?  Again, it talks about "the current node" - except a wrapper is an array of nodes.

hasClass() is written as though the wrapper has exactly 1 node in it - is that a requirement?  What is the 'current node' again?

instance() returns an 'underlying instance' of a wrapper.  It says the return type is "ReactComponent | DOMComponent".  Does that only work on wrappers with one node?  Do you mean, for a ReactComponent it'll return the 'this' instance of the class?  and if it's a real dom element like
 it'll return the DOM node itself?  What if it's a functional react component?

matchesElement(node) says it "Returns whether or not a given react element matches the current render tree."  It's not clear whether the wrapper it's called on is the 'react element' or the 'current render tree'.  Do wrappers have a secret 'root node' hidden inside?

the .name() function should make a clear distinction that it's not returning the value of the 'name' attribute.

what's the overall difference between Shallow Rendering methods and Full DOM Rendering methods?  That is, if I say
let s = shallow(<MyComp selectedIndex='0' />);
let m = mount(<MyComp selectedIndex='0' />);

what's the difference between s.at(0) and m.at(0)?  Since the shallow wrapper doesn't have any enclosed nodes, shouldn't the first return null or something?

does find(selector) give up at a node once it's found, without traversing inside it?  Seems to be.  For instance if you find('strong') on , you will get only the outer-most strong node, right?  wasn't what I was expecting.

It's markdown files in the repo, and at release time, those are converted to the gitbook format. Definitely update the .md files :-)
Thanks!


LDYOM CAN BE TOGGLED ON/OFF FROM THE DESKTOP!

Ldyom can be toggled on/off with the "U" key on the pause menu, also the menu becomes un-clickable once toggled on.
Edit: If Ldyom is running in the background, it could be toggled on and off from the desktop itself!

Please specify the version of LDYOM, because the preview version has a different activation button and the code is completely rewritten, so you can't really tell if this bug still exists or not.

I am sorry I

Firstly, I am sorry. I didn't know about the other Beta 0.8.0 preview builds. This bug is from the stable release of Beta 0.7.2. But a kinda similar bug exists on the latest preview build, when pausing the game and pressing 'I' a bunch of times and resuming, the menu flashes the exact number of times.

Okay, i try fix this.


on OSX I had an issue running the sniffer after following the readme

on OSX I had an issue running sniffer.py due to dnet not being installed. This may be listed elsewhere in the repo, but it's nice to have all installation dependencies for a tool listed in
the readme for the tool.

Current coverage is 73.13% (diff: 100%)

Merging #831 into master will decrease coverage by 0.19%

@@             master       #831   diff @@
==========================================
  Files           109        108     -1
  Lines         16306      16297     -9
  Methods        2219       2214     -5
  Messages          0          0
  Branches       1953       1953
==========================================
- Hits          11956      11918    -38
- Misses         3706       3727    +21
- Partials        644        652     +8

Powered by Codecov. Last update 117ecaf...c303973

*I signed the CLA but I'm not sure how to regenerate the checks.

I signed it!

@develra, the commit author on your commit is:
Author: Michael Aaron<EMAIL_ADDRESS>I believe there's a typo in there...


It doesn't work

I have the extension installed and enables and I installed the MSI but it wont show it on discord in the add registered game area

The rich presence is supposed to show up on your Discord profile. It's not supposed to be a registered game, nor should it be showing up there in the first place.


Mapping for Xbox One Controller on macOS 14 Sonoma

Hi 👋,
I am using this DB through girls and experience a mismapping of my Xbox One Controller on macOS 14.5. I have created a new mapping with the SDL2 Gamepad Tool and tested it successful in gilrs by setting the mapping in the SDL_GAMECONTROLLERCONFIG environment variable. The mapping is as follows:
030000005e040000e002000003090000,Xbox One Controller,platform:Mac OS X,a:b0,b:b1,x:b2,y:b3,back:b6,guide:b10,start:b7,leftstick:b8,rightstick:b9,leftshoulder:b4,rightshoulder:b5,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,lefty:a1,rightx:a3,righty:a4,lefttrigger:a2,righttrigger:a5,
However, the same id is already registered in the DB with a different mapping:
030000005e040000e002000003090000,Xbox One Controller,a:b0,b:b1,back:b16,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b15,leftshoulder:b6,leftstick:b13,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b14,righttrigger:a4,rightx:a2,righty:a3,start:b11,x:b3,y:b4,platform:Mac OS X,
How can that be?

How can that be?

User error, driver change, or firmware change
Please open a PR overriding the incorrect mapping
Thanks

Done: https://github.com/mdqinc/SDL_GameControllerDB/pull/775
As I understand the mappings, the mapping applies for all versions of macOS the same. Perhaps there should be also a field indicating the macOS version the mapping has been tested with? Perhaps the old mapping is fine for macOS 13 etc. 😅


Reranking network

Thank you for the great work you do. It seems that your reranking network does not require training, and there is no corresponding loss. I used the same processing logic. It seems that the reranking network for my extracted global features is not very ideal.

You can finetune the hyper-parameters for reranking on a small validation datasets which can further boost the performance.


How to disable safe_checker in run_app and run_music_video_app

How can I disable the NSFW checking in the run_app.py and run_music_video_app.py scripts?
It detects NSFW in safe frames and leads to flickering black frames in output videos which is unwanted.

Never mind.  Worked it out.
pipeline = StableDiffusionWalkPipeline.from_pretrained(
    "CompVis/stable-diffusion-v1-4",
    torch_dtype=torch.float16,
	safety_checker = None,
	requires_safety_checker = False,
).to("cuda")


[Feature]: Ability to deploy changes made in one branch to other users

Is there an existing issue for this?

[X] I have searched the existing issues

Summary
When a user makes changes to one branch (like merge to master), trigger an automation to show the changes to other users (instead of relying on them to click on a button)
Why should this be worked on?
This will help in developing apps distributed among users easily

@pratapaprasanna  - Do you mean a user should see there are upstream changes on a branch is someone makes a commit to that branch?

Closing this issue


CIP-0030 | Events API

The events API was removed from CIP-30 before merging with the plan to
add it in a later revision. This commit simply contains the scaffolding
that was removed prior to merging #88 so we can start the discussion
again.

I would like to include an onBalanceChange(...) event. I've opened a similar Nami issue detailing the use case but will reiterate it here for clarity.
Copied from Nami issue
Motivation
My website https://native-asset.com/ would like access to such an endpoint since that would allow me to update the GUI whenever assets have been successfully minted/burned. For example, the app currently doesn't allow you to burn more tokens than you have in your wallet. However, this value becomes invalid after minting/burning and currently you need to refresh the entire app to get the correct values. A onBalanceChange(...) event would significantly improve the UX for the user, allowing the app to do this automatically.
Proposed Function Signature
cardano.onBalanceChange((balance : value) => void)

@honungsburk Thanks for the suggestion. When exactly would this be sent off? Would it be not until it is confirmed on-chain? Would we include pending utxo set changes? Both of these questions are also relevant for the getBalance/getUtxos endpoints too. Would we just define it to be consistent with the getbalance/getutxos calls? Would this double for just a general "the UTXO set has changed" (e.g. get sent off for any utxo changes even if the overall balance stays the same)?
Also related #171 we have some discussion there (and in the original #88 PR) about what balance/utxos entail, about whether we want multiple endpoints or a parameter for reward balance/deposit/spendable balance/etc.

I think an onUTxOChange(...) event makes sense. I don't have any opinions yet on exactly when they are supposed to trigger. I think what is important is that  onUTxOChange(...) and onBalanceChange(...) are consistent with getUTxO(...) and getBalance(...).
I would like the API to be such that you can define  onBalanceChange(...)  in terms of onUTxOChange(...)  and getBalance(...). And that onUTxOChange(...) can be defined in terms of onBalanceChange(...) and getUTxo(...)
Example
function onBalanceChange( onChange: (balance : value) => void): void {
  cardano.onUTxOChange( async _ => {
    const value = await getBalance()
    onChange(value)
  })
}

function onUTxOChange( onChange: (utxo : TransactionUnspentOutput[] | undefined) => void): void {
  cardano.onBalanceChange( async _ => {
    const res = await getUTxO()
    onChange(res)
  })
}

(MIght be errors in the code but you get the gist of it)
Another principle I'd like is for onBalanceChange(...) to be consistent with the balance shown in the wallet. I think inconsistencies between the wallet and the dApp will confuse users and have them lose trust.

Another principle I'd like is for onBalanceChange(...) to be consistent with the balance shown in the wallet.

I agree. Those two are potentially going to change due to the discussion I linked before(here is an exact link to the initial discussion in the original merged PR) which could give finer granularity to dApp devs about those endpoints which is something to keep in mind.

I think an onUTxOChange(...) event makes sense.

Do we think it's necessary to have separate events or should we just have one single one? They would both be dispatched at the same time.
Also as for the utxo endpoint there's the pagination issue (there's discussion in #171 about potentially changing that) about whether it makes sense to return all of them as part of the event.
I guess as far as the events API goes there's no final decision about how they will be implemented so it's possible we could go with a way that doesn't return the changed utxo set and instead just returns that it has changed and lets the dApp user use the regular endpoints to figure it out, although I'm not sure if that would be significantly less convenient for dApp devs or not.
My first reaction is that if we end up having multiple balance/utxo endpoints or have them have a parameter to specify that extra granularity (e.g. include reward? pending? etc) that it might make sense to have a single event that says that the UTXO set has changed and then from there you can call the relevant endpoint with the relevant parameter to get the info you want. We'll obviously want to have a general discussion on this though and have other devs (especially dApp devs) opine on this.

Yeah, an onUtxoChange event might be a good place to start. It is easier to add endpoints rather than remove them.
Something like this would work for my use case:
onUtxoChange( onChange: () => void): void

Should it trigger when a user change from testnet to mainnet? Should it trigger on account change? I guess they should. Out of convenience, we should keep onNetworkChange and onAccountChange since those events include more changes than just the utxo set.

Here's my proposal:
Add api.on(eventName, callback) and api.removeListener(eventName, callback) as primary functions to CIP-0030.
The actul events I would add are:
enabled : () => void
disabled : () => void
accountChanged: () => void
networkChanged : networkId => void
utxoChanged : () => void (as suggested by @honungsburk)
For the disabled event, we would also need to implement the endpoint api.disable().
Events can easily be implemented with either Event or CustomEvent in JavaScript: https://developer.mozilla.org/en-US/docs/Web/Events/Creating_and_triggering_events

Hi.
It's been a year since this PR was opened/actively discussed, and as someone trying to interface with a lot of different wallet providers, I would say events are really needed. @alessandrokonrad's suggestion makes sense, but at the very minimum, it would be great if on("networkChange" | "accountChange") was supported. While it is possible to achieve this with some interval long polling hack, I found it to be very inconsistent with a lot of raise conditions. Not being able to listen to wallet and network changes, makes building good UX a lot harder than it should be.
What are the blockers here, and how could we move this forward? Is it lacking consensus, is it hard to implement, do we need a new CPS? I'm not a wallet provider, but a consumer, so not sure how I'd be able to help out, but I would really like to see this move forward, so if there's anything that could be done, please let me know.


I can't get data after login.

Hi everyone,
I am using Firebase on 7-10 days and it is life saver but i have a little problem.
I can GET and SAVE data. It's working. But when i login...
Firebase database rules,
{   "rules":   {     ".read": true,     ".write": true   } }
( I know i know it's looks terrible but i am testing on firebase. )
I was used Facebook Login and Email login. I am login succesfully and i am getting display name ...etc.
But when i use childAdded or GetValueAsync methods it's not working. I want get /questions/Mat/
IMPORTANT: I am login successfull and now pressing button "Get Data" and waiting. 10 seconds after i am pressing "Signout Button" = Signout Successfull and coming data... Working childAdded. It's very interesting, isn't ?
Thanks for all and sorry for my English :)

Sorry for the delay.  Are you using the database quickstart as it is or have you made any other changes?
And the problem you see is that when you enable Auth by signing in, there is a problem?  One thing you should be aware of is that Firebase Authentication is not currently supported in the Unity Editor.  So if you can provide where you are running the same (editor/android/ios) that would help as well.

No response for a few months, closing.  Please reopen if you still have a problem.


Update repl to later version of Fable

As suggested, I am opening this issue to flag the fact that the Repl currently works only against an older version of fable and netstandard, and some things don't work as expected as a result.
Ideally, the repl should be in sync with the currently documented and available stable version of Fable...
I suppose when Fable 2 comes out it would be even nicer to have two versions, one for 2 and one for the currently stable 1.x branch until 2 is ready to replace 1

There was a regression in the REPL reported for 1.3.8 that I couldn't investigate yet. That's why I was holding the upgrade.
About keeping the two repls, that's a very nice idea. The problem is usually the limited resources we have for implementation and maintenance. Right now I'd like to add a Fulma page-loader so the REPL doesn't look frozen at te beginning, and move type checking to a web worker, but being focused on Fable 2 development, I never find the time to do it :/

See https://github.com/fable-compiler/repl/commit/a3704d9e564a4118679bad4b1d361d85db5a6999#commitcomment-27996861


Admission webhook ignores wrong pod specs

Expected Behavior
Admission webhook return error if pod spec is wrong
Current Behavior
Admission webhook ignores the wrong pod spec.
Input config example
	v1.Pod{
		ObjectMeta: v12.ObjectMeta{
			Name: name,
			Annotations: map[string]string{
				"ns.networkservicemesh.io": "icmp-responder?app=icmp",
			},
		},
		TypeMeta: v12.TypeMeta{
			Kind: "Deployment",
		},
		Spec: v1.PodSpec{
			Containers: []v1.Container{
				{
					Name:            "alpine-img",
					Image:           "alpine:latest",
					ImagePullPolicy: v1.PullIfNotPresent,
					Command: []string{
						"tail", "-f", "/dev/null",
					},
				},
			},
			InitContainers: []v1.Container {
				{
					Name:            "nsm-init",
					Image:           "nsm-init:latest",
					ImagePullPolicy: v1.PullIfNotPresent,
				},
			},
		},
	}

Steps to Reproduce
Deploy Input config example.

@edwarnicke , @nickolaev , @haiodo
My point is user should know that manually adding nsm-init-container is redundant if he has nsm annotation. For now, we ignoring case if the user has manually added nsm-init container and nsm annotation.
Is current behavior OK?
Please share your thoughts.

PR merged, thanks


Fix bug with overmatching on slash quote conversions

Who is this PR for?
developers, educators
What problem does this PR fix?
Addresses import errors in https://github.com/studentinsights/studentinsights/issues/1777, step towards resolving problem with attendance import job aborting and not completing.  This also blocked work on https://github.com/studentinsights/studentinsights/issues/1657.
What does this PR do?
Fixes a bug introduced in https://github.com/studentinsights/studentinsights/pull/1778 which was trying to address this problem originally.  The regex cleanup would overmatch on particular escape sequences and cause the cleaner to produce unparseable strings.
It adds test cases and also has each test case verifying that the output of ParseableCsvString is in fact parseable.
Checklists

[x] Author improved specs for code in need of better test coverage
[x] Author included specs for new code

selfie


Using default import in an ESM project results in an error

When running a project as ESM (either by having "type": "module" in package.json or using .mjs extension for Rollup config, see docs for more info), using a default import of this plugin results in an error:

Changing preserveDirectives() to preserveDirectives.default() fixes this issue:
// rollup.config.mjs
import preserveDirectives from "rollup-plugin-preserve-directives";

export default {
  output: {
    preserveModules: true,
  },
  plugins: [preserveDirectives.default()],
};

I believe this is due to how TypeScript bundles the library code when the esModuleInterop option is set (as is the case in that plugin):

I'm not familiar with how TS compiles the final bundle, but I believe that changing to named exports will fix this issue, and make it work the same in both CommonJS and ESM.

TS2339: Property 'default' does not exist on type '({ supressPreserveModulesWarning, }?: PreserveDirectivesOptions) => Plugin'.


CC: Figure out release notes process

Want to dedicate some time to find out more about the release process/cadence and based on the findings, make a decision about versioning for CC docs.

Update:

Josh and Amruta to sync every week in Feb to manually categorize CC PRs.
Josh to discuss automation process with Kendra
Slack convo with Lakshmi: First CC release notes tentatively planned for end of Feb.

From CC Platform weekly: We support 19.2 and 20.1 for CC. So we need docs for these versions on the site (which is what we currently have, so no change required).

Update: Process discussion with Josh (02/12):

Once a week, we release to production (=available to customers) if the feature is not behind a feature flag.
Once it’s merged, it gets to staging right away. Then in a week or so, it gets pushed to prod (available to all)
Feature flags are optional.
If something needs to be retroactively documented, add the needs docs tag.
If something needs proactive docs, add Amruta as a reviewer

Closing this issue since we figured out the process. Will open follow-up issues to track monthly release notes.


Authorization header should be customizable

@niftylettuce when after login  there is a token key dispatched from the server and it should be saved in the device.
Can I use auth('123123123ggg') as the one string for future? Can i expect to see the header contains
Authorization: 123123123ggg as the authorised token? Is  it a way to store this piece of string into frisbee for future header use?

Also it'd be nice to have the option of authorisation header, custom header or even query string.
For example my application accept either a JWT in the authorisation header or api_key= in the url.

Once you set auth(str) it saves it for the API for future requests.  If you call auth() again without a value it unsets it.  Similarly I believe api.jwt() or api.jwt(null) will also unset value.  See the docs API section for more info.   I think that api_key= in URL is non-standard.  But it could be added, you can simply set default query string parameters with your own custom logic.  PR is welcome if you want to add support for default query string parameters.  You can already set default headers.


Does it support coordinates

Hi,
Thank you for the great library.
I attached a complex Geojson, which also has coordinates and other types such as description and so on; do you think your library supports those?
mygeodata.zip

It looks like a regular GeoJson. The properties contain some attributes like "Name" and  "description" which contains kind of a HTML encoded text. I think you can use this parser for displaying the contents of this file.  Juste be carefule
"features": [
{ "type": "Feature", "properties": { "Name": "Faults", "description": "Detailed description
Fault, sense of displacement unknown or undefined, certain

" },
"geometry": { "type": "MultiLineString", "coordinates": [ [ [ -72.82442968, 41.32537404 ], [ -72.82531825, 41.32245646 ] ] ] } },
...
...]


Weird extra drag line at extreme right of page

@coolshaurya commented on Wed Jun 06 2018
This weird extra drag line appears at the extreme right of  the page. It can be confused with the console drag line which changes the width of the console. When dragging this line , it fills the console with errors -

Browser and operating system -

Browser Name:  Google Chrome
Browser Version: 66.0.3359.181 (Official Build) (64-bit)
Operating System: Windows 10 Fall Creators Update

Screenshot -

@scissorsneedfoodtoo, any ideas?

@Bouncey This splitter is the one between the editors and the preview pane. Because we don't conditionally render it, it's still there and gets pushed to the right when the preview pane is null.
I will submit a PR shortly.
https://github.com/freeCodeCamp/learn/blob/03c7a76fb7e40ec4ad6f6a1eea9fe4af2fbc719c/src/templates/Challenges/classic/Show.js#L229-L237

@huyenltnguyen, thank you for taking this on! I think that's exactly what's going on. Let us know if you run into any problems and I'll be happy to QA your PR when it's ready.


When using subcommand it's unclear how to list out profiles

When I try to using the command envio list I get an Error: Invalid number of arguments exception.
The command works properly when listing the variables in an existing environment but I cannot figure out how to get is to list the available profiles.

To list the available profiles pass in profiles as the argument
So the command would be:
envio list profiles

@humblepenguinn would you be open to returning usage suggestions for incomplete commands? This is something I'd be willing to take on.

@humblepenguinn would you be open to returning usage suggestions for incomplete commands? This is something I'd be willing to take on.

Sure, that sounds like a great idea.
Open a issue and submit a PR when your done
Good luck!


[Bug]: Resolving one-offs doesn't clear the player's frozen card

Bug Summary
Playing an untargeted one-off (a 2 or a 9) on an opponent's card in play doesn't correctly unfreeze the cards in your hand.
Detailed Description
When your opponent plays a 9 on one of your cards that card can't be played on your next turn. Making any move is supposed to 'unfreeze' the card in your hand so that it's playable again. This doesn't work correctly if your next move is to play a targeted one-off.
If your next move after your opponent returns one of your cards to your hand is to play a targeted one-off i.e. a 2 or a 9, the card that your opponent returned to your hand remains frozen the next turn.
Addressing this issue requires 1) a test case and 2) a code fix
The test case should live in the one-offs.spec.js test file inside the existing describe() block for 9's and essentially

Setup the game as P1
Load a game fixture so both players have a king on the board, and a 9 in hand
Have the opponent play a 9 one-off on the player's king
Have the player play a 9 one-off on the opponent's king
Have the opponent draw a card
Have the player attempt to play the king that was returned to their hand
Assert the expected game state where the 9 was successfully played

The fix should live in api/controllers/game/targeted-one-off.js which handles playing 9's and 2's. Whether a card is frozen in the player hand is controlled via a frozenId variable on the users with the frozen card. We need to set that value to null when playing a targeted one-off. Essentially it should mirror the setup in the complimentary api/controllers/game/untargeted-one-off.js file, where we declare a variable to define the playerUpdate and then make an update call which persists that change to the database like
// This variable needs to be added to define the change
const playerUpdates = {
  frozenId: null,
};
const updatePromises = [
  Game.updateOne(game.id).set(gameUpdates),
  User.removeFromCollection(player.id, 'hand').members([card.id]),
  User.updateOne(player.id).set(playerUpdates), // adding this to the existing update promises will persist the change
];

Cleanup
In addition to the fix itself, we should remove two stale lines from api/controllers/game/resolve.js which are about the same issue but are not actually used:
      const playerUpdates = {};

and
        playerUpdates.frozenId = null;

are both unnecessary as the playerUpdates variable isn't actually used. The two lines above can be deleted as a part of the fix.

Expected Behavior
The card that your opponent returned to your hand remains frozen after you play a 2 or 9.
Steps to Reproduce

Start a game
Play a point card or royal
Have your opponent play a point card or royal
Have your opponent play a 9 to return the card to your hand (resolve it)
Play a 9 on your opponent's point card to return it to their hand
Have your opponent resolve your 9
Have your opponent make any move
You should now be able to play the card that was previously frozen in your hand, but it remains frozen

I'm going to take a look at this.


xfsprogs: fix musl build

Motivation for this change
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 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

[ ] Fits CONTRIBUTING.md.

This is a lot of rebuilds, would it be better to apply to musl only?

If the number of rebuilds on this PR is an issue, I have no problem with sending it to staging.
If a patch works on all platforms, best practice is to apply it unconditionally. We have quite a few musl-conditional patches in nixpkgs which simply don't apply and fail the build, because they weren't tested on musl when upgrading.


Controlling frequency of Outline view and CodeLens rendering

Our extension (vscode-go) uses a language server that implements providers of DocumentSymbol, CodeLens, ....
I noticed that VS Code sends DocumentSymbol, CodeLens requests almost for every key stroke. The go language server is pretty responsive, and often times, it quickly recomputes the results based on the updated document.
Unfortunately, sometimes recovery from invalid syntax gets hard, and the server returns incomplete DocumentSymbol/CodeLens results. This problem causes UI elements that depend on CodeLens and DocumentSymbol responses to bounce and flicker. Some users reported that is distracting.
I tested if returning an empty array (one way to signal lack of a result according to API doc) while user is typing makes any difference.  But that just cleared up the Outline view and all code lenses, so I guess there is no reuse of previous response.
Is there a way to tell VS Code to reuse the previous results? Or is there a way to control the frequency of DocumentSymbol/CodeLens queries (e.g. recompute only on save) from the client side?
How do other language servers and DocumentSymbol/CodeLens providers avoid this problem?

I tested if returning an empty array (one way to signal lack of a result according to API doc) while user is typing makes any difference. But that just cleared up the Outline view and all code lenses, so I guess there is no reuse of previous response.

No, there is no re-use. Only the outline has a heuristic that compares the amount of textual changes with the amount of symbol-tree changes. If that's fishy it will debounce a little further

Is there a way to tell VS Code to reuse the previous results? Or is there a way to control the frequency of DocumentSymbol/CodeLens queries (e.g. recompute only on save) from the client side?

No, we want to be in charge of the UI and how it refreshes. We do adopt to the actual speed of providers, e.g we debounce requests in proportion to the time it takes to fulfil requests for a file.
We have some prior art with semantic tokens where we allow providers to throw a cancellation error which is then understand as "try to re-use the existing result" (see https://github.com/microsoft/vscode/issues/93686). However, we didn't adopt that in other places.
I am unsure how other language brains deal with that and this request is fair. You, as the extension obviously have control in this by

keep the last good result yourself
artificially delay the result in the hope for a subsequent request against a "better state"


Markdown help page

Addresses issue #1195 .
A new page added in recordedit app. The page opens in a new window with static help content.

mdHelp.html
mdhelpStyle.min.css
mdHelp.controller.js

Example: Link

@amitjha21 It seems like you're not markdown-container class here for the markdown results. It's not showing the bullet points.

Added li styling for bullets.

By default, the privacy statement should never show up unless there is a
footerMarkdown config. Not all deployments have the privacy statement
present.
On Thu, Jul 20, 2017 at 2:10 PM, Josh Chudy<EMAIL_ADDRESS>wrote:

@jrchudy commented on this pull request.
In test/e2e/specs/default-config/recordedit/add-defaults.spec.js
https://github.com/informatics-isi-edu/chaise/pull/1206#discussion_r128631779
:

@@ -168,7 +177,37 @@ describe('Record Add with defaults', function() {
expect(foreignKeyInput.getText()).toBe(values.foreign_key_value, "Foreign key input default is incorrect");
expect(foreignKeyDisabledInput.getText()).toBe(values.foreign_key_disabled_value, "Foreign key disabled default is incorrect");
});

   //mdhelp page

default-config is more specifically meant to test features that are
affected by config options when those options are not defined. In this
case, the markdown page will always show up regardless of any
configuration. It almost doesn't matter what config set this test goes in.
So we should focus on putting this test in a spec that seems appropriate.
With that being said, we actually don't have a test that is meant to just
test the presentation of the recordedit app. We test that presentation as
part of the add spec (/specs/all-features-confirmation/recordedit/add.
spec.js). This seems like the most appropriate place for this test case.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/informatics-isi-edu/chaise/pull/1206#discussion_r128631779,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAZUDHFG072JKE-weefMKM5-WAOGe8gwks5sP8JIgaJpZM4Ob83v
.[image: Web Bug from
https://github.com/notifications/beacon/AAZUDNtJFWDQVwOzn9F5LRPvltkVxOvXks5sP8JIgaJpZM4Ob83v.gif]
{"api_version":"1.0","publisher":{"api_key":"
05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":
{"external_key":"github/informatics-isi-edu/chaise","
title":"informatics-isi-edu/chaise","subtitle":"GitHub
repository","main_image_url":"https://cloud.githubusercontent.com/assets/
143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","
avatar_image_url":"https://cloud.githubusercontent.com/
assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png
","action":{"name":"Open in GitHub","url":"https://github.
com/informatics-isi-edu/chaise"}},"updates":{"snippets":[{"
icon":"PERSON","message":"@jrchudy commented on
#1206"}],"action":{"name":"View Pull Request","url":"https://
github.com/informatics-isi-edu/chaise/pull/1206#discussion_r128631779"}}}

@hongsudt this is about the markdown page, not the footer privacy policy.


Password Reset

There's no really easy way to reset a password. In the interim, you can do this via command line.  It would be really nice if this feature was built in. Instead I'm documenting the process of doing it the hard way...

You'll need  the UUID of the player.
2: (assuming default BCRYPT) a new password. Generate one here: https://www.bcrypt-generator.com/

access to sqlite.
sqlite3 plugins/LoginSecurity/users.db
==================================
to reset a person's password to 'password'
==================================
UPDATE users set password="$2a$08$7wBP1so3I/F2OFvJedmrqembWkjey1LjT2b.HnUgg9YMVyAwNgrT6" where unique_user_id="enter_uuid_here_no_punctuation";

==================================
to reset everyone's password to password
UPDATE users set password="$2a$08$7wBP1so3I/F2OFvJedmrqembWkjey1LjT2b.HnUgg9YMVyAwNgrT6";
.exit

2.0.13
/lac rmpass


Update Fluentd Loki plugin to latest

Is your feature request related to a problem? Please describe.
The new fluentd plugin using new Loki API endpoint we should test and switch for it.

This has been updated already in the latest 1.7 and 1.9 fluentd images


Checklist for 2.0.1?

Just to know when it will be out basically.

2.0.1 released:  https://github.com/NYTimes/Store/commit/0ff02895c64740e94151855aa573937fab4a79af


Add upgrade guide for Multi-cluster

Signed-off-by: Lan Luo<EMAIL_ADDRESS>

Codecov Report

Merging #3374 (97aab41) into main (b147eb2) will decrease coverage by 18.70%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             main    #3374       +/-   ##
===========================================
- Coverage   60.89%   42.19%   -18.71%
===========================================
  Files         268      200       -68
  Lines       26753    24178     -2575
===========================================
- Hits        16292    10201     -6091
- Misses       8655    12921     +4266
+ Partials     1806     1056      -750

Flag
Coverage Δ

kind-e2e-tests
?

unit-tests
42.19% <ø> (+0.02%)
:arrow_up:

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

Impacted Files
Coverage Δ

pkg/ovs/openflow/default.go
0.00% <0.00%> (-100.00%)
:arrow_down:

pkg/util/runtime/runtime.go
0.00% <0.00%> (-100.00%)
:arrow_down:

pkg/agent/openflow/groups.go
0.00% <0.00%> (-100.00%)
:arrow_down:

pkg/agent/nodeportlocal/k8s/annotations.go
0.00% <0.00%> (-93.55%)
:arrow_down:

pkg/ovs/openflow/logs.go
9.52% <0.00%> (-90.48%)
:arrow_down:

pkg/apis/controlplane/register.go
0.00% <0.00%> (-90.00%)
:arrow_down:

pkg/agent/controller/networkpolicy/reject.go
0.00% <0.00%> (-87.91%)
:arrow_down:

pkg/agent/client.go
0.00% <0.00%> (-77.42%)
:arrow_down:

pkg/ovs/ovsconfig/ovs_client_linux.go
0.00% <0.00%> (-76.93%)
:arrow_down:

pkg/flowaggregator/certificate.go
0.00% <0.00%> (-76.58%)
:arrow_down:

... and 182 more

Hi @jianjuns @Dyanngg @aravindakidambi Could you help to review this PR? thanks!

@jianjuns do you have any new comments for this PR? thanks.

/skip-all

/skip-all

DCO check is missing somehow, ignore it as the PR is signed appropriately apparently


PTX-1790 add support to install flush cache service

tests passing https://jenkins.portworx.co/job/Torpedo/job/tp-dev-test/90/console


using different project file other than tsconfig.json

I have a project that comes with many flavour, I use different tsconfig file, es: tsconfigMobile.jsons tsconfig.Desktop and compile them with tsc and -p option.
Seem that Typedoc do not use -p switch, and try to use tsconfig.json in local directory.

Interesting, the project flag has been around since TS 1.8 so I'm surprised this hasn't been mentioned before. If you run typedoc --help it does list the TypeScript project option but I haven't tried it.

Yep if you run typedoc --help it show all tsc options, despite seems unable to correctly use the -p
if I copy my tsconfig$somename$.json as tsconfig.json and launch typedoc (without -p switch) it works like a charm.
but if I try to run typedoc -p tsconfig$somename$.json he just print the help screen.
mv tsconfig.json tsconfig_temp.json
typedoc --out /tmp/test -p tsconfig_temp.json
Usage:
typedoc --mode modules --out path/to/documentation path/to/sourcefiles
[omiss]
mv tsconfig_temp.json tsconfig.json
typedoc --out /tmp/test
Using TypeScript 2.3.2 from ...
Rendering [========================================] 100%
Documentation generated at /tmp/test
if I use -p switch with a nonexistent .json he still work if tsconfig.json is provided
ls -al my_little_fairy.json
ls: cannot access 'my_little_fairy.json': No such file or directory
ls -al tsconfig.json
-rw-r--r-- 1 test test 2036 giu 26 11:37 tsconfig.json
typedoc --out /tmp/test -p my_little_fairy.json
Using TypeScript 2.3.2 from ...
Rendering [========================================] 100%
Documentation generated at /tmp/test

Fixed by #588


UnicodeEncodeError: 'charmap' codec can't encode character '\xe8' in position 442: character maps to

(venv) PS C:\Users\den25\PycharmProjects\tense\mkdocs-theme> mkdocs build INFO     -  Cleaning site directory INFO     -  Building documentation to directory: C:\Users\den25\PycharmProjects\tense\mkdocs-theme\site ERROR    -  Error building page 'C:\Users\den25\AppData\Local\Temp\mkdocs_mdpo_q39usco_\fr\index.md': 'charmap' codec can't encode character '\xe8' in position 442: character maps to             <undefined> Traceback (most recent call last):   File "C:\Users\den25\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main     return _run_code(code, main_globals, None,   File "C:\Users\den25\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code     exec(code, run_globals)   File "C:\Users\den25\PycharmProjects\tense\venv\Scripts\mkdocs.exe\__main__.py", line 7, in <module>   File "C:\Users\den25\PycharmProjects\tense\venv\lib\site-packages\click\core.py", line 1130, in __call__     return self.main(*args, **kwargs)   File "C:\Users\den25\PycharmProjects\tense\venv\lib\site-packages\click\core.py", line 1055, in main     rv = self.invoke(ctx)   File "C:\Users\den25\PycharmProjects\tense\venv\lib\site-packages\click\core.py", line 1657, in invoke     return _process_result(sub_ctx.command.invoke(sub_ctx))   File "C:\Users\den25\PycharmProjects\tense\venv\lib\site-packages\click\core.py", line 1404, in invoke     return ctx.invoke(self.callback, **ctx.params)   File "C:\Users\den25\PycharmProjects\tense\venv\lib\site-packages\click\core.py", line 760, in invoke     return __callback(*args, **kwargs)   File "C:\Users\den25\PycharmProjects\tense\venv\lib\site-packages\mkdocs\__main__.py", line 192, in build_command     build.build(config.load_config(**kwargs), dirty=not clean)   File "C:\Users\den25\PycharmProjects\tense\venv\lib\site-packages\mkdocs\commands\build.py", line 314, in build     _build_page(file.page, config, doc_files, nav, env, dirty)   File "C:\Users\den25\PycharmProjects\tense\venv\lib\site-packages\mkdocs\commands\build.py", line 220, in _build_page     output = config['plugins'].run_event(   File "C:\Users\den25\PycharmProjects\tense\venv\lib\site-packages\mkdocs\plugins.py", line 102, in run_event     result = method(item, **kwargs)   File "C:\Users\den25\PycharmProjects\tense\venv\lib\site-packages\mkdocs_mdpo_plugin\plugin.py", line 736, in on_post_page     f.write(output)   File "C:\Users\den25\AppData\Local\Programs\Python\Python310\lib\encodings\cp1251.py", line 19, in encode     return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\xe8' in position 442: character maps to <undefined>
&&
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcf in position 0: invalid continuation byte
I completely copied these two examples:
https://github.com/mondeja/mkdocs-mdpo-plugin/tree/master/examples/material-theme
https://github.com/mondeja/mkdocs-mdpo-plugin/tree/master/examples/mkdocs-theme
But each gave the same error when mkdocs build / mkdocs serve
I don't understand what is causing the error

Fixed in v0.0.27


Webview codicons: styling and interactions with codicons

Added some more representative example of codicons usage:

styling codicons
interacting with codicons

I also took the liberty to remove the references to uninvolved animals and replaced the demo.gif.

Gate keepers, I have another sample I would like to push as a PR (in the same fork branch), so thought this one would be fairly quick to get in. Is there something I need to do in order to get this reviewed and merged?

Simplicity and conciseness is indeed most important for samples. I will be happy to enlighten it again. I would welcome feedback about what is most useful.
My motivation was two fold:

the sample had nothing to do with cats, so needed some cleaning up
the sample missed an important value of icon fonts in vscode webviews: the font is automatically styled into the light/dark theme, so the extension developer does not need to band over backwards to achieve the same effect with svg icons.
They are great looking and may be used in multiple different UX scenarios, not just visualized as part of text (which is the only thing the orig sample was showing).

the sample had nothing to do with cats, so needed some cleaning up

this is fair, I believe this was inherited by the previous webview examples

the sample missed an important value of icon fonts in vscode webviews: the font is automatically styled into the light/dark theme, so the extension developer does not need to band over backwards to achieve the same effect with svg icons.

the current sample does use color tokens for icons so they are automatically styled
https://github.com/microsoft/vscode-extension-samples/blob/master/webview-codicons-sample/media/styles.css#L32

Plus they are great looking and may be used in multiple different UX scenarios, not just visualized as part of text (which is the only thing the orig sample was showing).

this is probably where I have hard time adding these additional scenarios. it makes assumptions and adds additional files the a user may not want. this is where I prefer it to be "simplified" and only show how to add the icons. There are so many different ways that you can use the icon that we can't possibly cover, which is why a lot of our samples have basic examples.
Will leave some more feedback in the PR.


Relative path for serving assets and code

At the moment I am using a test application to see if streamsocket is a fit for our purpose. We are deploying the application behind a small PaaS and all requests are being proxied as path-based. Tjis is currently by-design. This means that applications would have to be served using a proxy-rewriting... or be served using a relative path option. I was wondering if SS provides a relative path option... in my search in the code I have not found this. If not, where could I enable this easily?

The HTTP side is intended to be essentially static in production. You generate bundles for HTML,CSS and JS. On demand JS is currently only supported on the server, but will be static as well in 0.6 or 0.8
So in production the only thing to proxy is the websocket connection and fallback support from SockJS/Engine.io
What I'm essentially saying is that there is nothing in SocketStream itself that needs to be handled in production. You just need to serve the static and assets directories from your HAProxy/Nginx frontend and proxy to the SocketStream server for the connection.
There is no particular support for configuring the path for where the fallback XHRs go. You'd have to refer to the transport documentation for that.

Hmm, did you just mean the /assets/ URL? Can't you just monkey patch the bundler or make a new one? the function to patch is htmlTags

@gbraad Is the issue solved for you?

btw why would proxy rewrite be an issue, it's pretty standard

I haven't been able to look into this further in recent time. The proxy rewrite would not be a problem, but having the flexibility from within socketstream to define the paths would be appreciated, although not essential. It would be considered advanced functionality. Note: the proxy-ing in question is really lightweight and does not involve nginx as it is done on a simple ARM-based device using only Node.js

As mentioned above you can already do that with the CDN configuration for assets. It isn't clear to me what you are trying to achieve though as all HTTP traffic in production should be static assets or SockJS/Engineio traffic.
If there is no clear requirement or issue I will have to close this


animationName should also take multiple animations

Is your feature request related to a problem? Please describe.
I want to output the following css:
.container {
  animation-name: grow, shrink;
}

Note the two successive animations.
But in respect to https://stylexjs.com/docs/api/javascript/keyframes/, animationName can take only one animation.
Describe a solution you'd like
I suggest animationName could take an array of animations.

This will work:
const grow = stylex.keyframes(...);
const shrink = stylex.keyframes(...);

const styles = stylex.create({
  container: {
    animationName: `${grow}, ${shrink}`,
    // Also:
    animationName: [grow, shrink].join(', '),
  },
});


Can I use this with vantage?

I’m not sure how I’d use this with vantage. I tried adding it as a regular vantage plugin:
vantage.use(require('vorpal-less'));

But all I get is the following exception:

TypeError: vorpal.command(...).option(...).hidden(...).help is not a function

It seems there is a function called helpInformation but not help.

Unfortunately, vorpal-less uses Vorpal's UI methods, which aren't currently supported in Vantage. Hoping to put together a future version that does!


Add /animequote command using the Anime-chan API

Command Name
/animequote
Public API Resource
https://animechan.vercel.app/
Description
The bot will reply with a random anime quote when the command /animequote is called.
Also, the bot will reply with a random anime quote from a given anime when the command is called with an anime name.
eg: /animequote Bakemonogatari
Implementation Details

Add a new javascript file in the commands folder
Implement a API request with the help of axios to your public API
Format the data in a readable way and send it to the user
Use the discord.js docs to get started

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Please assign this issue to me

Please Assign the issume

@androlover98   Assign me this issue. I'm a full-stack developer (MERN Stack). HTML CSS JS NodeJs ExpressJs Bootstrap Figma Tailwindcss

@androlover98 Nice idea! I'll assign this issue to you :)

@androlover98 Well done! I reviewed your pr #75 and labeled it with the hacktoberfest-accepted label.
Keep contributing ❤


Surport Vs2019

I wonder whether have plan for vs2019 vsix ,thx

Thanks for reporting this. I will provide.

Thanks for your help

Hi,
this looks like an interesting project!
Is there any update on a VS 2019 compatible vsix? Thanks! :)
Take care,
Martin

@David-Desmaisons the SPA demos are also broken in 2019!

@jmecosta What exactly is broken?

The spa demo doesnt seem to work... upgrading nugets there makes the c#
compile. However the dist folder where index.html should be installed is
not created with npm install.
Npm run serve says it fallsback to index outside dist.
I assume this was working in 2017 but i cant check it
On Fri, 6 Dec 2019, 01:39 David Desmaisons<EMAIL_ADDRESS>wrote:

@jmecosta https://github.com/jmecosta What exactly is broken?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/NeutroniumCore/Neutronium/issues/123?email_source=notifications&email_token=AAH6HSF6MG3VBPGTDCEBV7TQXGGKXA5CNFSM4IMDIQYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGCQWLA#issuecomment-562367276,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAH6HSCFP2Z66BXQYVURSNLQXGGKXANCNFSM4IMDIQYA
.

to be exact, wanted to use vuetify in my application (that doest have the same layout as the spa demo), becuase only found  #124 decided to try the SPA demo and move my app on top of that so could be more inline with neutronium templates.. but then those are not compiling :(

It doesn't seem to be linked to Neutronium in itself. What is the compilation error?

nevermind seems to work! after running

didnt read the all thing until the end

any update on the 2019 vsix?

check my fixes, works for me


make_texture: allow existing DateTime to remain

When creating a texture, the old logic was to set the file metadata "DateTime" to the current time, unless update mode was used, in which case it was set to the file's write timestamp of the input file.
But that made it impossible to explicitly set that metadata, and also a big PITA for testing because it meant the metadata of any written texture would be the time of its writing, and so appear different every time.
This change alters the logic: update mode still sets DateTime to the last update time of the input file, as before; other cases will only set DateTime if it isn't already set, but not alter it if the input carries that metadata already.

Glimpse's entire automated texture conversion system is based on DateTime
data, but we use this data from the operating system file data itself, not
the metadata of the image.
Not sure how useful that info is to you, but it's another data point to
note.
And for that data we rely on it being the write-time since we use it as a
time stamp to figure out when a texture was re-saved by an artist, which
then automatically creates a mip-map texture file in a global cache.
Though this is all generally from files saved from an image editor, not
OIIO itself.
On Mon, 28 Nov 2022 at 17:45, Larry Gritz @.***> wrote:

When creating a texture, the old logic was to set the file metadata
"DateTime" to the current time, unless update mode was used, in which case
it was set to the file's write timestamp of the input file.
But that made it impossible to explicitly set that metadata, and also a
big PITA for testing because it meant the metadata of any written texture
would be the time of its writing, and so appear different every time.
This change alters the logic: update mode still sets DateTime to the last
update time of the input file, as before; other cases will only set
DateTime if it isn't already set, but not alter it if the input carries
that metadata already.
You can view, comment on, or merge this pull request online at:
https://github.com/OpenImageIO/oiio/pull/3692
Commit Summary

86c429d
https://github.com/OpenImageIO/oiio/pull/3692/commits/86c429dfedfcccbbc54fa79dadb5340d4e0648c4
make_texture: allow existing DateTime to remain

File Changes
(1 file https://github.com/OpenImageIO/oiio/pull/3692/files)

M src/libOpenImageIO/maketexture.cpp
https://github.com/OpenImageIO/oiio/pull/3692/files#diff-a9468b8f6faf683ed90b9c12130d667469ed81105fdcf7493f450a5680984c41
(13)

Patch Links:

https://github.com/OpenImageIO/oiio/pull/3692.patch
https://github.com/OpenImageIO/oiio/pull/3692.diff

—
Reply to this email directly, view it on GitHub
https://github.com/OpenImageIO/oiio/pull/3692, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAKWGRJRI73ZXUPEGFN4ARTWKRIIVANCNFSM6AAAAAASM7LG5E
.
You are receiving this because you are subscribed to this thread.

In most other contexts within OIIO, a DateTime metadata from the input will propagate to the output.
maketx (really, any call to IBA::make_texture) was actually the exception -- it was writing over the DateTime field from the input. I think that this change is just making make_texture work the same as any other oiio-based copy of files.

As an aside, the whole DateTime thing is a house of cards, on very unsteady ground. Some file formats have multiple metadata date fields, for example, distinguishing when the image was captured versus when it was digitized, and that may be different from the time at which various image transformations happened, or when the file was last altered, let alone the date/time of the event that the image is intended to depict.

But just to be 100% unambiguous, @etheory, this change is ok with you? I won't be breaking anything for you?
The old behavior can easily be simulated simply by erasing any DateTime metadata, and then the "stamp it with NOW" behavior will still happen.
The main reason I'm doing this now is simply because it makes certain testing a lot easier, because every time you run the test it won't be changing metadata to something new and unique.

I'm good with that thanks.
I assume this will be added to the documentation clearly?
Thanks.
On Tue, 29 Nov 2022 at 18:15, Larry Gritz @.***> wrote:

But just to be 100% unambiguous, @etheory https://github.com/etheory,
this change is ok with you? I won't be breaking anything for you?
The old behavior can easily be simulated simply by erasing any DateTime
metadata, and then the "stamp it with NOW" behavior will still happen.
The main reason I'm doing this now is simply because it makes certain
testing a lot easier, because every time you run the test it won't be
changing metadata to something new and unique.
—
Reply to this email directly, view it on GitHub
https://github.com/OpenImageIO/oiio/pull/3692#issuecomment-1330186338,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAKWGROHM6AF36OTKOELQE3WKWUPVANCNFSM6AAAAAASM7LG5E
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Luke Emrose
aka evolutionary theory
www.evolutionarytheory.com
www.soundcloud.com/evolutionarytheory
www.reverbnation.com/evolutionarytheory
http://www.facebook.com/pages/evolutionary-theory/110717958952413

Well, the old quirky behavior wasn't documented, this make it more regular.
But the other parallel conversation happening in #3693 makes me think that the rules for metadata propagation should be spelled out somewhere, yes. I just need to figure out where.


Need to clean up icons directory

In fixing #421, a few unused icons were left around. Need to clean those up once the feature is solidified.

Cleaned up.


Implementing package-wise decompile feature

Few months ago I found jadx more useful than dex2jar+jad, since then I frequently use jadx-cli for research purposes. :smile:
The only problem I hate is that it takes a lot of time to decompile the entire dex/jar file. Maybe this is because the jadx also decompiles a lot of android.* and other sdk packages(if included).
It would be very great if the package-wise decompilation feature is implemented on jadx-cli.
the package-wise decompilation feature exists in jad, so why not in jadx? :+1:
jad -o -r -d ./some_directory/ -sjava -dsrc com/package/name/**/*.class.

@stypr,
Please refer to this explanation https://github.com/skylot/jadx/issues/139#issuecomment-256658207
More over, a lot of errors were fixed, so the decompilation process takes now less time


Verification Resend is not Functional

http://beta.hydroshare.org/hsapi/_internal/resend_verification_email/

Fix pushed to github and a pull request has been created to merge into release-candidate-1.4.0 branch.

It is working and ready for testing on alpha.hydroshare.org now.

Tested by creating an account and verifying that the resend email works.


Add PHP Version Audit

Intro
PHP Version Audit: A tool to programmatically check a PHP version for known CVEs and support end dates. Great for CI/CD builds.

Project page
Repo

Why should it be included?
I've been running this repo for over three years. One of the coolest things about it (IMO), is that it self-updates, sourcing directly from the PHP changelog twice a day. Over the past three years, I put together some stats and found that PHP Version Audit has discovered CVE announcements on median of 5 hours after the Changelog update. The NVE CVE database gets updated with the CVEs on median of 260 hours - or almost 11 days after the Changelog update. That makes PHP Version Audit 98% faster at notifying of new CVEs than other tools that source from the CVE Database. I think that is pretty cool!
Beyond all that, its designed to be used programmatically. Set it up in your CI/CD to get notified when its time to bump that PHP version in your Dockerfile.
Usage
Using the docker image, you could check a vulnerable docker version (8.1.11):
$ docker run --rm -t lightswitch05/php-version-audit:latest --fail-security --version=8.1.11
{
    "auditVersion": "8.1.11",
    "hasVulnerabilities": true,
    "hasSecuritySupport": true,
    "hasActiveSupport": true,
    "isLatestPatchVersion": false,
    "isLatestMinorVersion": false,
    "isLatestVersion": false,
    "latestPatchVersion": "8.1.15",
    "latestMinorVersion": "8.2.2",
    "latestVersion": "8.2.2",
    "activeSupportEndDate": "2023-11-25T00:00:00+0000",
    "securitySupportEndDate": "2024-11-25T00:00:00+0000",
    "rulesLastUpdatedDate": "2023-02-13T02:56:21+0000",
    "vulnerabilities": {
        "CVE-2022-31630": {
            "id": "CVE-2022-31630",
            "baseScore": 7.1,
            "publishedDate": "2022-11-14T07:15:00+0000",
            "lastModifiedDate": "2022-12-23T17:05:00+0000",
            "description": "In PHP versions prior to 7.4.33, 8.0.25 and 8.2.12, when using imageloadfont() function in gd extension, it is possible to supply a specially crafted font file, such as if the loaded font is used with imagechar() function, the read outside allocated buffer will be used. This can lead to crashes or disclosure of confidential information."
        },
        "CVE-2022-37454": {
            "id": "CVE-2022-37454",
            "baseScore": 9.8,
            "publishedDate": "2022-10-21T06:15:00+0000",
            "lastModifiedDate": "2022-12-08T15:41:00+0000",
            "description": "The Keccak XKCP SHA-3 reference implementation before fdc6fef has an integer overflow and resultant buffer overflow that allows attackers to execute arbitrary code or eliminate expected cryptographic properties. This occurs in the sponge function interface."
        },
        "CVE-2022-31631": null
    }
}

Or, you could pipe in the Host's PHP version directly:
$ docker run --rm -t lightswitch05/php-version-audit:latest --fail-security --version=$(php -r 'echo phpversion();')
{
    "auditVersion": "8.2.2",
    "hasVulnerabilities": false,
    "hasSecuritySupport": true,
    "hasActiveSupport": true,
    "isLatestPatchVersion": true,
    "isLatestMinorVersion": true,
    "isLatestVersion": true,
    "latestPatchVersion": "8.2.2",
    "latestMinorVersion": "8.2.2",
    "latestVersion": "8.2.2",
    "activeSupportEndDate": "2024-12-08T00:00:00+0000",
    "securitySupportEndDate": "2025-12-08T00:00:00+0000",
    "rulesLastUpdatedDate": "2023-02-13T02:56:21+0000",
    "vulnerabilities": {}
}

Any thoughts on this PR?


[Feature][Connector-V2] Add sentry sink connector #2244

Purpose of this pull request
Add sentry sink connector
Check list

[x] Code changed are covered with tests, or it does not need tests for reason:
[ ] If any new Jar binary package adding in your PR, please add License Notice according
New License Guide
[x] If necessary, please update the documentation to describe the new feature. https://github.com/apache/incubator-seatunnel/tree/dev/docs

Hi, great, could you add some pictures of the corresponding test results? I don't have the corresponding environment

@CalvinKirs  maybe you want this? this is the result of running SeaTunnelSentryExample.main()

Can you add connector-v2 e2e-testcase & update docs
reference：
e2e: https://github.com/apache/incubator-seatunnel/pull/2499
docs : https://github.com/apache/incubator-seatunnel/pull/2625

Can you add connector-v2 e2e-testcase & update docs
reference： e2e: #2499 docs : #2625

I think Sentry Sink can not run e2e.

Can you add connector-v2 e2e-testcase & update docs
reference： e2e: #2499 docs : #2625
finish updating doc.
ad for e2e-test ,I agree with @EricJoy2048 , sentry need user acoount to create config to run the test

Document is ok.


Fix docstrings.

On the sphinx config we declare to be using the google style docstrings, however, we're not using that type of docstrings.

Fixed in https://github.com/saltstack/pytest-shell-utilities/pull/25


Rollup creates broken path binding

I've been having trouble using these modules with bundlers other than rollup (e,g, webpack). I kept receiving an error about problems with the path module, which is bundled. I've found that using the published ESM I need to do the following to make the bundled path module work:
  const wasi = new WASI({
    // Bindings that are used by the WASI Instance (fs, path, etc...)
    bindings: {
      ...WASI.defaultBindings,
      fs: wasmFs.fs,
      // the current WASI bundle of path is broken!
      path: WASI.defaultBindings.path.default,
    },
  });

Notice that the path object is exposing a default property instead of just an object. I have a feeling this has something to do with this issue: https://github.com/rollup/plugins/issues/481

The @wasmer/wasi package was rewritten and renamed to @wasmer/sdk, so I don't believe this is an issue any more.


[FancyZones] One-handed activation feature for disabled people

Hello PowerToys team,
At first, I’d like to thank you for your PowerToys Tool, it’s a great help for me! It’s working perfectly with my new 49 inch screen.
I have a little suggestion on how to improve the tool even further:
Due to the fact that I’m a disabled person, it is hard for me to operate the mouse and keyboard at the same time. Therefore it would be better for me to use the Image Resizer without pressing the Shift button (it would probably be more intuitive for other people, too).
I already found the option to use it without „Shift“ and that’s working good. But there is the little disadvantage that all windows that I just want to move a bit (like e.g. little pop-up windows) directly activate the Image Resize function. If I want to just move it, I have to use „Shift“ again.
My suggestion for improvement would be to only activate Image Resizer when the windows is dragged towards the upper/lower edge of the screen (similar to the original Microsoft function). Maybe it would be possible to include this behaviour as an option?
So with this activated, a simple mouse drag would not resize the window until I move the mouse close to the edges. With this solution, it would be a perfect one-handed function without use of the keyboard.
I wouldn’t change the functionality of the Image Resizer itself, I use it all the time to resize the windows to 1/3 of the screen. I would just change the activation event for this function.
Thank you very much and keep on with the good work!
(Sorry for my english, I'm a native german speaker)

If you'd like to see this feature implemented, add a 👍 reaction to this post.

Hello and welcome.
Two things:

I believe you are talking about FancyZones, not Image Resizer.
FancyZones has a lot of options in the settings have you "checked" them? The first two are related to the activation.

Hello,
Thanks for your answer - you're correct, I was talking about FancyZones.
I already checked the options but can not find the possibility for one-handed operation without directly activating the FancyZones. As far as I know it's only possible to activate FZ directly when dragging a window, or you deactivate the option but then you can't use FZ without using the keyboard. When using just the mouse, it is either always activated or always deactivated. It would be much easier if it would be deactivated until I drag the window close to the screen edges and then FZ would activate.
I hope my english and my suggestion are understandable.
Thanks and greetings!

@Werner63
if you set your settings like this:

you will be able to activate the zones pressing a secondary mouse button, without having to use the keyboard.

@Werner63
I would like figure out an ideal behavior that would be good in general. Some users might not want to activate the zones for all screen edges. We can add "activation areas" that are configurable, or a list of presets to choose from:

near all 4 edges
near the 4 corners
near the top edge
near the right or left edge

Hello enricogior,
thanks for your response. You surely know the functionality of MS windows, where you can drag a window to the left/right corner and when you drop, the window fits itself in the left/right half of the screen.
In my opinion, it would be the most convenient and intuitive way to keep this basic functionality but extend it to 3 possible window positions, so not just left/right, but left/middle/right. I would separate the top edge of the screen into 3 virtual areas, where you can drag your window and when dropped, it adjusts to the corresponding third of the screen.
Thank you very much for your help, I'm looking forward to the update ;)
Greetings

I personally find the suggested method confusing. First, it's not obvious at all to check both those boxes to accomplish this, and then once I do it still doesn't work well. I would assume the RMB would be a "non-primary mouse button," but only the middle button works, and not very well (it turns zone selection on ok, but turning it back off doesn't work so well, taking multiple attempts), not to mention it's difficult to click it while holding down the LMB and moving it (using a ThinkPad with a TrackPoint, but even with an actual mouse this wouldn't be the easiest maneuver). There are a few other possible ways of doing this that I can think of off the top of my head:

activate it by a slow double-click of the taskbar, so instead a fast double-click that would cycle between maximize and restore, click, release, then ~half a second later click and drag, and then zone selection would be active
use right-click and drag instead of left-click
only snap to a zone if the title bar if released in a certain hotspot in the zone (this has potential issues, though)
cycle the zone selection by dragging the window to the top of the screen, as if intending to maximize it, then back away (this might be the best method, since it would be the easiest and least likely to result in unexpected results, though it would have the downside of having to drag windows to the top of the screen first, but considering probably >90-95% of the time when moving windows I'd want to do so without FZ, that would be more than acceptable)
only snap to the zone if released within a (preferably user-customizable) time limit, since if they user wants it snapped, they'd likely drag it into the zone and release right away, whereas if they don't they're going to take a bit of extra time putting it where they actually want it


Reformat assembly display in AddressCodeTab

Description
This reformats the assembly view so it keeps hex characters (PUSH parameters) on the same line.
Before:

(Notice how there's a newline between the PUSH1 and 0xE0)
After:

(Now, PUSH1 and 0xE0 are on the same line).
Additional Information

[x] I have read the contributing docs (if this is your first contribution)
[x] This is not a duplicate of any existing pull request

Related Issues
N/A
Your ENS/address: 0x598cb95773D9b66a27a5780DB5EED2d018685879

My apologies - I should have the formatting corrected now!


Fix log shipping error handling for sander

Type of Change

[ ] Bug fix (non-breaking change, fixes #)
[ ] New feature (non-breaking change, adds functionality)
[ ] Breaking change (effects multiple commands or functionality)
[ ] Ran manual Pester test and has passed (`.\tests\manual.pester.ps1)
[ ] Adding code coverage to existing functionality
[ ] Pester test is included
[ ] Nunit test is included
[ ] Documentation
[ ] Build system

Purpose

Approach

Commands to test

Screenshots

Learning

thanks bawwww!


Error creating wixobj file.

Im getting the following error when the compile() method runs:
Unhandled rejection Error: Could not create wixobj file.
Code: 103 StdErr:
StdOut: candle.exe : error CNDL0103 :
The system cannot find the file 'dist\electronwin.wxs' with type 'Source'.

The create method runs and does make a .wxs file though.
Here is repo I'm working with: https://github.com/trevwaddell/electron-wix-test
I'm running this in a windows 10 vm with virtual box. I installed wix toolset and added them to my class path.

Same for me, but running on a native windows 10.

@felixrieseberg any idea?

Hey, Guys any luck so far?

I was having this problem, then I changed [outputDirectory: './build'] to [outputDirectory: 'C:/FullpPath/build'], and now it doesn't throw this error.
But I still not running fine by other problems =[

Had same problem, changing paths to absolute path names solves it


about Master's degree thesis

Hello Ew Wang, I come here from zhihu, and in the issue you give the link of github, someone said that  the Master's degree thesis of you is also in this link, and I want to know  more detial about it ,but i can't find the thesis, could you give me the link or the title? My english is not very well, thanks!

You can actually go to "history" and dig it up, if you really want to.


OnReady vars null on initial enter state

Using vars that are set with @onready (or in _ready()) are still unset when the Initial State is first Entered.
Only workaround I have found, for nodes use $Node/Path or get_node(). For dynamic vars, would need to be hard-coded.
I have not found an elegant way around this to "fix", and there may not be. A note or warning may be nice about the load order of when in runs the initial state enter signal.

I think this is caused by the recent change that ensures that state changes happen in the same frame. It could be fixed by delaying entering the initial state of the state chart by one frame, to ensure that the full tree is ready.
I'll build a new release with this change as i think this makes more sense than the current implementation but I will not be able to do it today. As a temporary workaround you can change this line in state_chart.gd which should delay the state entering by one frame:

I always forget that call_deferred() exists. Tested and can confirm this works.

Released 0.4.3 which has the fix built-in.


Impossible to upload file instead of deleted file

Version: master - 5dbb5fe.
How to reproduce:

Upload file info.json to pod
Delete file info.json from pod
Upload new or the same file with name info.json. Get the error:

{
  Responses: [ { file_name: 'info.json', message: 'error uploading data' } ]
}

Try to download info.json. Get the error:
{"message":"download: file not present","code":500}

If try to delete already deleted file, then get error:
rm failed:  file delete: invalid character '_' looking for beginning of value


Practice Exam 4 Q38

The question asking to choose 2 option, there is only one option mentioned and the option is also wrong about the moving of customers to AWS .
The correct answer: C , E

@ponakalaneha
Thank you for pointing out. We apologize for the mistake and will correct it. Your feedback is much appreciated!😊


Connection of the WSL with the normal Windows system

The connection of the WSL with ADB and Fastboot fails. This can be rectified by linking the .exe installed under Windows to the system.
Information:

OS: Windows 11
OS version: 23H2
Program version: v.0.5.4.beta

fix this with the wsl_config


Added for-loop-if-else solution

JS solution using combination of for loop and if else statements

Thank you for your PR!
Unfortunately a solution similar to yours has already been submitted :/
The goal is to find creative/abstract new solutions to FizzBuzz.
Please consult the readme for more information and see The top 5 samples here.
Thanks anyway! :)

that's totally ok, I understand 😉


About parameters

I'm trying this project recently,and have found some unexpected(not good) moves generated by akochan.For example,sometime (mostly when player is rank 3) it can't distinguish the diffirence between moves.
  2m 3m 3m 5m 7p 1s 2s 3s 6s 6s 7s 8s 9s E
  [6s] 期望[-55.90, -55.90, 0.002%, -137.63]
  [3m]期望[-55.90, -55.90, 0.002%, -137.63]
  [2s] 期望[-55.90, -55.90, 0.001%, -137.63]
  [8s] 期望[-55.90, -55.90, 0.001%, -137.63]
  [7s] 期望[-55.90, -55.90, 0.001%, -137.63]
  [2m] 期望[-55.90, -55.90, 0.001%, -137.63]
  [7p] 期望[-55.90, -55.90, 0.002%, -137.63]
  [1s] 期望[-55.90, -55.90, 0.001%, -137.63]
  [3s] 期望[-55.90, -55.90, 0.002%, -137.63]
  [9s] 期望[-55.90, -55.90, 0.001%, -137.63]
  [5m] 期望[-55.90, -55.90, 0.002%, -137.63]
  [E] 期望[-55.90, -55.90, 0.000%, -137.63]
It seems that akochan's behavior is highly depended on parameters in "setup_mjai.json".Can you give me some advices on how to set these parameters to improve it? thank you very much! #

You should ask this in critter-mj/akochan.


Background Colour Of Horizontal Selection List replaces the colour set in story board can we add images.

I created a view in storyboard with my desired colour. But the horizontal selection list doesn't retain its colour set in story board but is replacing the colour. If we want our preferred colour, our only option is to set it manually. Can we add images?

@GABHISEKBUNTY I'm not sure what you mean by "can we add images?".  You can add background images to each button (each item in the selection list).
Setting the background color in your interface or storyboard file is currently not working; it will be overwritten as you are noticing.  I'm not sure if there is a simple way to extend the initWithCoder implementation, but feel free to submit a PR if you have any ideas.  Maybe this line:
    self.backgroundColor = [UIColor whiteColor];

in -commonInit could be conditional and only set background if it is unset?

Going to close this issue; HTHorizontalSelectionList does not fully support styling in storyboards.  If you have an idea on how this could be improved for storyboard support, please send a PR :)


refetch in useQuery will auto merge the previous variable with current variable

Describe the bug
refetch in useQuery will auto merge the previous variable with current variable
To Reproduce
Steps to reproduce the behavior:
see the code below
const testGql = gql`
  query lossList($query: String){
  }
`
const { refetch } = useQuery(testGql, params, options)
refetch({ query:"first time" })    // the first time with variable  query: first time
refetch({})    //  the second time, I don't want to pass any variable to backend, but it will still merge the privious variable into the current varible

** Reason **
it is caused by the code this line. I think this is a bug, sometimes the server do need a empty request variable.

Expected behavior
the second time's request should request with no varibale
Versions
vue: 3.4.21
vue-apollo: 4.0.2
@apollo/client: 3.9.9

I think this is a feature rather than a bug, I've recently encountered this too. It's a bit hidden but the docs state the following:

If you provide new values for some of your original query's variables but not all of them, refetch uses each omitted variable's original value.

What fixed it for me was explicitly setting the property value to null.

@tristandubbeld that is correct, we should probably try to be more explicit in the docs about it.


feat(Music): Command Fixes

Tested these files on current master branch. Performs as expected. Recommend merge!


Missing RobotoCondensed-Medium

Hey, is there a way you could include RobotoCondensed-Medium into the project? Thanks

You can add instances yourself by editing scripts/build-v2.py and running the tools! Here's something I quickly came up with my adding the following (somewhere after bdcnq is assigned and the last call to proj.generateTTFs() is called):
proj.generateFont(Mix([cn1, bdcn1], 0.35),
                  "%s Condensed/Medium/Regular/Lt"%FAMILYNAME,
                  swapSuffixes=[".cn"])

0.35 interpolation may not be the best parameter, however. I don't think we have any plans to add a proper target for this ourselves.
RobotoCondensed-Medium.zip

thank you


Update README.md

Discovered when working on https://github.com/dotnet/docs-aspire/pull/218.
Microsoft Reviewers: Open in CodeFlow

/backport to release/8.0-preview2


Match groups showing up in match result box

Expression:
class \([^ ]*\)\( {\_.\{-}\)__New

Text:
# base class for StockSizeTrail and CutSizeTrail
class SizeTrail {
  __ew {code quantity size length grade = ""} {
    this.code     := code                # the code for all stock trails
    this.quantity := quantity            # the quantity of stock pieces
    this.size     := size                # e.g. "FL1/8X2" or "SH16GA*48" or "C2118"
    this.length   := length              # a Length object  {either LongProductLength or FlatProductLength as appropriate}
class
__New {

Match Result:
# base class for StockSizeTrail and CutSizeTrail
class SizeTrail {
  __ew {code quantity size length grade = ""} {
    this.code     := code                # the code for all stock trails
    this.quantity := quantity            # the quantity of stock pieces
    this.size     := size                # e.g. "FL1/8X2" or "SH16A*48" or "C2118"
    this.length   := length              # a Length object  {either LongProductLength or FlatProductLength as appropriate}
class
__NewA*48" or "C2118"
    this.length   := length              # a Length object  {either LongProductLength or FlatProductLength as appropriate}
class

\3:  {

The following text is repeated after the end of the matched text for some reason.

A*48" or "C2118"
this.length   := length              # a Length object  {either LongProductLength or FlatProductLength as appropriate}
class

There should only be two match groups (unless there's something I don't know about match groupings) but for some reason a third group appears, and in the Match Result box, rather than the Match Groups box.

\3:  {

Match Groups:
\1: SizeTrail
\2:  {
  __ew {code quantity size length grade = ""} {
    this.code     := code                # the code for all stock trails
    this.quantity := quantity            # the quantity of stock pieces
    this.size     := size                # e.g. "FL1/8X2" or "SH16

The third match group does not appear in this box.

Thanks for the super clear bug report!
I haven't really looked at this in a year or so. ^^;; I'll look into it when I get a chance, though if you have time first and want to try your hand at fixing it, that'd be cool too.
So awesomely detailed! :sparkling_heart: This is the very best kind of bug report, thank you so much!


pyFlakes linting wrong detection with line continuation

Only a minor bug.
When using the 3.6-style formatting, the variable detection works fine

however, when the format statement is stretched over two lines, pyFlakes reports local variable 'bar' never used.

I'm using Spyder 4.0.1

my bad, need to put f also in front of the next string...


File utilities

Add bindings for selected utils of werkzeugkiste::files:

[ ] AsciiFileIterator to process large files line-by-line
[ ] Filename sorting (once available in wzk)

The files submodule should be removed (FileIterator is not a killer feature; the filename comparator/sorting functionality should be added to the strings module)


Error on AuthorizationService

I am using asp.net core 3.1.
In the example above the JwtClaimTypes.Role, VS says JwtClaimTypes does not exist in current context and I couldn't find any reference for it. Using just ClaimTypes.Role though seemed to work but I get the following error at runtime:
InvalidOperationException: No policy found: IsAdmin.
Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, object resource, string policyName)
Sampql.Pages.Shared.Pages_Shared__LoginPartial.ExecuteAsync() in _LoginPartial.cshtml
@if ((await AuthorizationService.AuthorizeAsync(User, "IsAdmin")).Succeeded)

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

ID: 431df4fc-4168-cc8f-d053-9b264d2971c1
Version Independent ID: cd157d04-d596-83fa-6edb-24d52193eb34
Content: Add, download, and delete user data to Identity in an ASP.NET Core project
Content Source: aspnetcore/security/authentication/add-user-data.md
Product: aspnet-core
Technology: aspnetcore-security
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

Try ...
using IdentityModel;

Well, didn't need IdentityModel as I could use ClaimsTypes.Role defined in System.Security.Claims. However, for the other error I needed to add the "IsAdmin" policy in ConfigureServices. This should perhaps be mentioned. I am adding it below:
        services.AddAuthorization(options =>
            {
                options.AddPolicy("IsAdmin",
                     policy => policy.RequireRole("admin"));
            });

Hello, i have added the code from @alij but my code seems not working. No error but when i have IsAdmin setted to 'true' no Successded with the code below.
@if ((await AuthorizationService.AuthorizeAsync(User, "IsAdmin")).Succeeded)
anyone a idea why it is not working?

So i found a solution, this is working but not with RequireRole ?!
options.AddPolicy("IsAdmin", policy => policy.RequireClaim("role", "admin"));


Cannot Launch llama2-70b-chat-hf on Multiple GPUs Server

Hi there,
I am trying to launch an OpenAI server with dockerhub image on my server(4*A6000).
$ docker run --runtime nvidia --gpus all     \
  -v ~/.cache/huggingface:/root/.cache/huggingface    \
  -p 1234:8000     \
  --env "HUGGING_FACE_HUB_TOKEN=..."   \
  --shm-size=10.24gb  vllm/vllm-openai \
  --model meta-llama/Llama-2-70b-chat-hf \
  --tensor-parallel-size 4 \
  --tokenizer hf-internal-testing/llama-tokenizer

But the server only show it's initializing, for more than 15 minutes. I have reload for many times, and every time I interrupt the container, it shows same logs.
INFO 12-02 12:54:55 api_server.py:638] args: Namespace(host=None, port=8000, allow_credentials=False, allowed_origins=['*'], allowed_methods=['*'], allowed_headers=['*'], served_model_name=None, model='meta-llama/Llama-2-70b-chat-hf', tokenizer='hf-internal-testing/llama-tokenizer', revision=None, tokenizer_revision=None, tokenizer_mode='auto', trust_remote_code=False, download_dir=None, load_format='auto', dtype='auto', max_model_len=None, worker_use_ray=False, pipeline_parallel_size=1, tensor_parallel_size=4, block_size=16, seed=0, swap_space=4, gpu_memory_utilization=0.9, max_num_batched_tokens=None, max_num_seqs=256, max_paddings=256, disable_log_stats=False, quantization=None, engine_use_ray=False, disable_log_requests=False, max_log_len=None)
2023-12-02 12:54:57,075 INFO worker.py:1673 -- Started a local Ray instance.
INFO 12-02 12:54:57 llm_engine.py:72] Initializing an LLM engine with config: model='meta-llama/Llama-2-70b-chat-hf', tokenizer='hf-internal-testing/llama-tokenizer', tokenizer_mode=auto, revision=None, tokenizer_revision=None, trust_remote_code=False, dtype=torch.float16, max_seq_len=4096, download_dir=None, load_format=auto, tensor_parallel_size=4, quantization=None, seed=0)
^CTraceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/workspace/vllm/entrypoints/openai/api_server.py", line 646, in <module>
    engine = AsyncLLMEngine.from_engine_args(engine_args)
  File "/workspace/vllm/engine/async_llm_engine.py", line 486, in from_engine_args
    engine = cls(parallel_config.worker_use_ray,
  File "/workspace/vllm/engine/async_llm_engine.py", line 269, in __init__
    self.engine = self._init_engine(*args, **kwargs)
  File "/workspace/vllm/engine/async_llm_engine.py", line 305, in _init_engine
    return engine_class(*args, **kwargs)
  File "/workspace/vllm/engine/llm_engine.py", line 108, in __init__
    self._init_workers_ray(placement_group)
  File "/workspace/vllm/engine/llm_engine.py", line 181, in _init_workers_ray
    self._run_workers(
  File "/workspace/vllm/engine/llm_engine.py", line 704, in _run_workers
    all_outputs = ray.get(all_outputs)
  File "/usr/local/lib/python3.10/dist-packages/ray/_private/auto_init_hook.py", line 24, in auto_init_wrapper
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/ray/_private/client_mode_hook.py", line 103, in wrapper
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/ray/_private/worker.py", line 2557, in get
    values, debugger_breakpoint = worker.get_objects(object_refs, timeout=timeout)
  File "/usr/local/lib/python3.10/dist-packages/ray/_private/worker.py", line 769, in get_objects
    data_metadata_pairs = self.core_worker.get_objects(
  File "python/ray/_raylet.pyx", line 3211, in ray._raylet.CoreWorker.get_objects
  File "python/ray/_raylet.pyx", line 449, in ray._raylet.check_status
KeyboardInterrupt

What should I do? Is there bug?
And btw, here is my nvidia-smi log, when the container stuck.
$ nvidia-smi
Sat Dec  2 20:53:45 2023
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 545.23.08              Driver Version: 545.23.08    CUDA Version: 12.3     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA RTX A6000               On  | 00000000:01:00.0 Off |                  Off |
| 30%   43C    P2              92W / 300W |    813MiB / 49140MiB |    100%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
|   1  NVIDIA RTX A6000               On  | 00000000:21:00.0 Off |                  Off |
| 30%   42C    P2              96W / 300W |    797MiB / 49140MiB |    100%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
|   2  NVIDIA RTX A6000               On  | 00000000:41:00.0 Off |                  Off |
| 30%   41C    P2              96W / 300W |    813MiB / 49140MiB |    100%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
|   3  NVIDIA RTX A6000               On  | 00000000:42:00.0 Off |                  Off |
| 30%   40C    P2              96W / 300W |    797MiB / 49140MiB |    100%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A   3940675      C   ray::RayWorker.execute_method               804MiB |
|    1   N/A  N/A   3940676      C   ray::RayWorker.execute_method               788MiB |
|    2   N/A  N/A   3940677      C   ray::RayWorker.execute_method               804MiB |
|    3   N/A  N/A   3940678      C   ray::RayWorker.execute_method               788MiB |
+---------------------------------------------------------------------------------------+

I encountered similar problem, and solved it with NCCL_P2P_DISABLE=1 environment variable. You can try it.

@chenxu2048  Thank you very much! I'll try it.

I set NCCL_P2P_DISABLE=1, but encounter other problem here ;(
$ docker run --runtime nvidia --gpus all     -v ~/.cache/huggingface:/root/.cache/huggingface     -p 1234:8000     --env "HUGGING_FACE_HUB_TOKEN=...
    "  --env "NCCL_P2P_DISABLE=1" vllm/vllm-openai --model meta-llama/Llama-2-7b-chat-hf --tensor-parallel-size 4
INFO 12-12 06:41:50 api_server.py:638] args: Namespace(host=None, port=8000, allow_credentials=False, allowed_origins=['*'], allowed_methods=['*'], allowed_headers=['*'], served_model_name=None, model='meta-llama/Llama-2-7b-chat-hf', tokenizer=None, revision=None, tokenizer_revision=None, tokenizer_mode='auto', trust_remote_code=False, download_dir=None, load_format='auto', dtype='auto', max_model_len=None, worker_use_ray=False, pipeline_parallel_size=1, tensor_parallel_size=4, block_size=16, seed=0, swap_space=4, gpu_memory_utilization=0.9, max_num_batched_tokens=None, max_num_seqs=256, max_paddings=256, disable_log_stats=False, quantization=None, engine_use_ray=False, disable_log_requests=False, max_log_len=None)
2023-12-12 06:41:52,563 WARNING services.py:1996 -- WARNING: The object store is using /tmp instead of /dev/shm because /dev/shm has only 67108864 bytes available. This will harm performance! You may be able to free up space by deleting files in /dev/shm. If you are inside a Docker container, you can increase /dev/shm size by passing '--shm-size=10.24gb' to 'docker run' (or add it to the run_options list in a Ray cluster config). Make sure to set this to more than 30% of available RAM.
2023-12-12 06:41:52,685 INFO worker.py:1673 -- Started a local Ray instance.
INFO 12-12 06:41:53 llm_engine.py:72] Initializing an LLM engine with config: model='meta-llama/Llama-2-7b-chat-hf', tokenizer='meta-llama/Llama-2-7b-chat-hf', tokenizer_mode=auto, revision=None, tokenizer_revision=None, trust_remote_code=False, dtype=torch.float16, max_seq_len=4096, download_dir=None, load_format=auto, tensor_parallel_size=4, quantization=None, seed=0)
INFO 12-12 06:41:53 tokenizer.py:31] For some LLaMA V1 models, initializing the fast tokenizer may take a long time. To reduce the initialization time, consider using 'hf-internal-testing/llama-tokenizer' instead of the original tokenizer.
 To troubleshoot the problem, check the logs for the dead worker. RayTask ID: ffffffffffffffff3f78dccf15bed4fc346d1ba801000000 Worker ID: dcc1fe99229fa3175d321d3a2df7e17500d0b19d7e4189b61fbae770 Node ID: c71549abb658c41cb6b645c8936f9108b9aa5a9167fb575f893276e4 Worker IP address: <IP_ADDRESS> Worker port: 44737 Worker PID: 1918 Worker exit type: SYSTEM_ERROR Worker exit detail: Worker unexpectedly exits with a connection error code 2. End of file. There are some potential root causes. (1) The process is killed by SIGKILL by OOM killer due to high memory usage. (2) ray stop --force is called. (3) The worker is crashed unexpectedly due to SIGSEGV or other unexpected errors.
Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/workspace/vllm/entrypoints/openai/api_server.py", line 646, in <module>
    engine = AsyncLLMEngine.from_engine_args(engine_args)
  File "/workspace/vllm/engine/async_llm_engine.py", line 486, in from_engine_args
    engine = cls(parallel_config.worker_use_ray,
  File "/workspace/vllm/engine/async_llm_engine.py", line 269, in __init__
    self.engine = self._init_engine(*args, **kwargs)
  File "/workspace/vllm/engine/async_llm_engine.py", line 305, in _init_engine
    return engine_class(*args, **kwargs)
  File "/workspace/vllm/engine/llm_engine.py", line 108, in __init__
    self._init_workers_ray(placement_group)
  File "/workspace/vllm/engine/llm_engine.py", line 181, in _init_workers_ray
    self._run_workers(
  File "/workspace/vllm/engine/llm_engine.py", line 704, in _run_workers
    all_outputs = ray.get(all_outputs)
  File "/usr/local/lib/python3.10/dist-packages/ray/_private/auto_init_hook.py", line 24, in auto_init_wrapper
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/ray/_private/client_mode_hook.py", line 103, in wrapper
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/ray/_private/worker.py", line 2565, in get
    raise value
ray.exceptions.RayActorError: The actor died unexpectedly before finishing this task.
        class_name: RayWorker
        actor_id: 3f78dccf15bed4fc346d1ba801000000
        pid: 1918
        namespace: 818512fd-0107-4005-83ff-1a559cffbeab
        ip: <IP_ADDRESS>
The actor is dead because its worker process has died. Worker exit type: SYSTEM_ERROR Worker exit detail: Worker unexpectedly exits with a connection error code 2. End of file. There are some potential root causes. (1) The process is killed by SIGKILL by OOM killer due to high memory usage. (2) ray stop --force is called. (3) The worker is crashed unexpectedly due to SIGSEGV or other unexpected errors.
2023-12-12 06:41:57,337 WARNING worker.py:2074 -- A worker died or was killed while executing a task by an unexpected system error. To troubleshoot the problem, check the logs for the dead worker. RayTask ID: ffffffffffffffffd2c19e8b58578c27b00407c901000000 Worker ID: 8f733721512d609517408774f7f111b8b4967a11fe3e481395c799e9 Node ID: c71549abb658c41cb6b645c8936f9108b9aa5a9167fb575f893276e4 Worker IP address: <IP_ADDRESS> Worker port: 36171 Worker PID: 1919 Worker exit type: SYSTEM_ERROR Worker exit detail: Worker unexpectedly exits with a connection error code 2. End of file. There are some potential root causes. (1) The process is killed by SIGKILL by OOM killer due to high memory usage. (2) ray stop --force is called. (3) The worker is crashed unexpectedly due to SIGSEGV or other unexpected errors.
2023-12-12 06:41:57,352 WARNING worker.py:2074 -- A worker died or was killed while executing a task by an unexpected system error. To troubleshoot the problem, check the logs for the dead worker. RayTask ID: ffffffffffffffff4b0c7b37c8946adbeae0a86b01000000 Worker ID: 86d4922a864a27f47970b0a14f8ad2d30edcbac2e74485bb7c9ec487 Node ID: c71549abb658c41cb6b645c8936f9108b9aa5a9167fb575f893276e4 Worker IP address: <IP_ADDRESS> Worker port: 37199 Worker PID: 1916 Worker exit type: SYSTEM_ERROR Worker exit detail: Worker unexpectedly exits with a connection error code 2. End of file. There are some potential root causes. (1) The process is killed by SIGKILL by OOM killer due to high memory usage. (2) ray stop --force is called. (3) The worker is crashed unexpectedly due to SIGSEGV or other unexpected errors.
2023-12-12 06:41:57,366 WARNING worker.py:2074 -- A worker died or was killed while executing a task by an unexpected system error. To troubleshoot the problem, check the logs for the dead worker. RayTask ID: ffffffffffffffff66c32679ae0f01ba4037504901000000 Worker ID: 381b4a501ad69df25425d67c4be2e34785372958956031020ba1da79 Node ID: c71549abb658c41cb6b645c8936f9108b9aa5a9167fb575f893276e4 Worker IP address: <IP_ADDRESS> Worker port: 35105 Worker PID: 1917 Worker exit type: SYSTEM_ERROR Worker exit detail: Worker unexpectedly exits with a connection error code 2. End of file. There are some potential root causes. (1) The process is killed by SIGKILL by OOM killer due to high memory usage. (2) ray stop --force is called. (3) The worker is crashed unexpectedly due to SIGSEGV or other unexpected errors.
(RayWorker pid=1919) *** SIGBUS received at time=1702363316 on cpu 14 *** [repeated 3x across cluster] (Ray deduplicates logs by default.


Update easylist filter lists

See https://paper.dropbox.com/doc/Android-updating-easylist-files-in-WebLayer--BrOIOt~XJq1ZEBGczjXzzuE1Ag-N7Ov3syRhK0B92hp8wXGi for details on how this PR was created.