What is the function of Trainval_Neg_all_part.pkl ？

I can understand that Trainval_GT_all_part.pkl provides a lot of info which is useful during training, but what is the function of Trainval_Neg_all_part.pkl? I debuged data loading process and found that sometimes one record is provided, sometimes 60 records are provided. I still can't figure it out. Look forward to your reply.
BTW, I can't find the source link to  Trainval_GT_10w.pkl.Can you tell me where to download it? Thank you very much.
    num_pos = Pos_augment
    if image_id in Trainval_Neg.keys():
        NEG = Trainval_Neg[image_id]
        if len(NEG) < Neg_select:
            List = range(len(NEG))
        else:
            List = random.sample(range(len(NEG)), Neg_select)
        for i in range(len(List)):
            Neg = NEG[List[i]]
            Human_augmented.append(np.array([0, Neg[2][0], Neg[2][1], Neg[2][2], Neg[2][3]]).reshape(1, 5))
            Object_augmented.append(np.array([0, Neg[3][0], Neg[3][1], Neg[3][2], Neg[3][3]]).reshape(1, 5))
            Relation_augmented.append(Generate_relation_bbox(Neg[2], Neg[3]))
            part_bbox.append(Neg[7][None, :, :])

Trainval_Neg_all_part.pkl provides additional negative samples to encourage the model to distinguish the differences between the human-object pairs with interaction and without interaction. You could refer to this link for how the negative samples are generated. Thus, there might be different number of negative samples for different images.
And we will upload Trainval_GT_10w.pkl and update the download links ASAP.

Thank you very much for your reply!

The files have been uploaded, and you could refer to https://github.com/DirtyHarryLYL/HAKE-Action/blob/9bbc87f2b16de12943bc852695194d184757daca/script/Download_dataset.sh#L27-L28 to download them.


Update Fnames on neynar community table

This is what the table preview currently returns

Have updated the docs to reflect the same

this is resolved with https://github.com/duneanalytics/dune-api-docs/pull/65


Provide macro_rules! to simplify manual implementation of Serialize/Deserialize for occasions where decorators are not suited?

Hi serders!
I'm new to using serde, so perhaps there is already a solution, WIP or discussion around this - please link them if you have them handy!
I have some crates that have a few types for which it would be useful to provide the ability to serialize/deserialize, however the crates don't really have anything to do with serialization themselves. As a result, I hope to write all the serialization trait implementations in a single module so that I can easily feature gate them.
Are there any existing macro_rules! helpers that simplify the process of manual trait implementation? If not, is this something you'd consider adding to serde? It might also be a useful stable alternative to the unstable decorators, at least until support for compiler plugins stabilises?

Can you share a few examples of types for which you think a helper macro could be useful?

@dtolnay all types - this would be a stable alternative to using the unstable decorators (i.e. #[derive(Serialize, Deserialize)]) that does not require syntex.
For example, if I have
pub struct Foo {
    bar: i32,
    baz: String,
}

it would be great if I could implement the serde Serialize and Deserialize traits using a provided macro_rules!, something like this:
impl_serde_serialization!(struct Foo {
    fields: {
        0 => bar: i32,
        1 => baz: String,
    },
});

A slightly more complicated type might look like this:
pub struct BezierPoint<X, Y>
    where X: Clone + Copy,
          Y: Spatial + Clone + Copy,
          <Y as Spatial>::Scalar: Float,
{
    x: X,
    y: Y,
    curve: <Y as Spatial>::Scalar,
}

impl_serde_serialization!(struct BezierPoint {
    generics: [X, Y],
    where: {
        X: Clone + Copy,
        Y: Spatial + Clone + Copy,
        <Y as Spatial>::Scalar: Float,
    },
    fields: {
        0 => x: X,
        1 => y: Y,
        2 => curve: Y::Scalar,
    },
});

There would be other patterns for enums, tuple structs, etc of course too. There could also be macros for only implementing either Serialize or Deserialize, i.e. impl_serde_serialize/deserialize (impl_serde_serialization could call both of these internally).
Note that these macro_rules! wouldn't define the struct as well, they only provide the implementations of the traits. This allows for separating the implementation of the serde traits from the struct definition, which is useful when the desire is to provide serde serialization behind a feature gate, or if the user just desires to keep all their serialization related code in a single module and not sprinkled throughout their entire code-base.
I realise the macro_rules! examples I have given above are still a little verbose compared to the decorators, but they are far less verbose than writing the entire implementations manually, which can easily reach 100+ LOC for a single type. After writing manual implementations for ~40 types last week, something like those examples I gave above would be a massive time-saver, despite their initial unfamiliarity/verbosity.
@DanielKeep has made a thorough start on something like this, however fell back to using unstable compiler plugins in order to handle lifetimes correctly (I think?). I think this might've been because he was attempting to achieve a much more natural looking macro invocation pattern (correct me if I'm wrong quxxy!) - I'd personally be willing to sacrifice some familiarity if it meant being able to land something like this that is compatible with stable.

Closing in favor of procedural macros 1.1. We cannot maintain two different codegen implementations so let's focus on getting the existing one into stable as soon as possible.


Fix another typo in README

Thanks, landed in https://github.com/oauthjs/express-oauth-server/commit/2274bf1d2b1f5af1914e567502b523525a68ddb1.


Request moderated?

Any idea why the rate limit on the api is so low? It feels like if I do more than a handful of image requests in a 10 minute period I get this:
ComfyUI Error Report
Error Details

Node Type: FLUX 1.1 [pro]
Exception Type: Exception
Exception Message: BFL API Message: Request Moderated

Is there a reason why there doesn't seem to be any support on something we're paying for here? A week goes by and no response.


Data Sampling using settings API doesn't show list of custom field functions

Settings API object for data sampling shows list of species used for data sampling that user can specify the list of species. But it doesn't show list of custom field functions as shown in this image. This would limit the users to specify specific custom field functions to be used for data sampling

TODO: create US

@gyeole We haven't created a user story for this at the moment. We need to direct a user story to the appropriate team

Now listed here https://github.com/ansys/pyfluent/issues/2006

Resolved.


isGroupNameHidden excluded from this release type

Category

[x] Question
[ ] Typo
[ ] Bug
[ ] Additional article idea

Expected or Desired Behavior
I want to create a web part property pane with a header and hyperlink, similar to the out-of-the-box Highlighted content web part.

After looking at the rendered HTML, I have found the web part doesn't use the header.description attribute. Instead, it defines the property pane page as displayGroupsAsAccordion set to true, and creates a property pane group to display a property pane label and link -- the first group in the array. The first group sets isGroupNameHidden to true to hide the group name -- which is why the first group looks like a property pane header rather than a property pane group with an accordion.
I should be able to set isGroupNameHidden to true on my property pane groups.
Observed Behavior
The isGroupNameHidden is not defined in the IPropertyPaneGroup interface.
When I look at the module, I noticed that the @microsoft/sp-property-pane the code says:
/* Excluded from this release type: isGroupNameHidden */

What release type(s) allows us to define isGroupNameHidden?
Steps to Reproduce

Create an SPFx web part using the 1.8.2 Yeoman generator.
In your web part's getPropertyPaneConfiguration, add isGroupNameHidden:true to the first property pane group.
You'll get an error.
Navigate to the definition of IPropertyPaneGroup interface, through IPropertyPaneConfiguration > IPropertyPanePage > IPropertyPaneGroup
Find the following line, just below the groupName prop:

/* Excluded from this release type: isGroupNameHidden */

My package.json dependencies section:
 "dependencies": {
    "@microsoft/sp-core-library": "1.8.2",
    "@microsoft/sp-lodash-subset": "1.8.2",
    "@microsoft/sp-office-ui-fabric-core": "1.8.2",
    "@microsoft/sp-property-pane": "1.8.2",
    "@microsoft/sp-webpart-base": "1.8.2",
    "@pnp/spfx-property-controls": "^1.15.0",
    "@types/es6-promise": "0.0.33",
    "@types/react": "16.7.22",
    "@types/react-dom": "16.8.0",
    "@types/webpack-env": "1.13.1",
    "office-ui-fabric-react": "6.143.0",
    "react": "16.7.0",
    "react-dom": "16.7.0"
  },

I would like to believe that third-party SPFx developers have access to the same tools than first-party developers. I assume that isGroupNameHidden will be available in an upcoming version of SPFx. I've also tried using the --plusbeta flag to see if that's what I was missing.
Any help is greatly appreciated!

fixed in 1.14 beta


CreateCollisionObject

Create a planning scene with BTs @captain-yoshi

@captain-yoshi , i changed the box and cylinder dimensions template


MD5 deprecated, Sha256 hash check

Since the HMAC-check isn't being done via md5 anymore, here's some new logic.
I've followed the rules from the documentation. $query_params would be equal to the full $_GET-object.

@sandeepshetty would it be possible to merge this? The complete deprecation of the legacy md5 signature will happen soon.

@sandeepshetty can you please merge this, deprecation of the legacy md5 signature will happen the day after tomorrow.

+1 I just temporarily fixed this for a couple legacy apps we had in our system that weren't Ruby based. I patched it directly in the Composer vendor folder but if this was merged and pushed to Composer, I could update it properly and that would be great!

The http_build_query will be removed from this snippet, because it's encoding too much. (overdoing it)
Decoding the builded query would result in other random flaws.
It seems that the documentation only wants us to decode 3 specific characters, and leave the rest alone.
A patch to my fork is coming from another coder, and I will pull it in when the pull request is in.

Please note: Corrected handling of the hmac has now been added by @marekgach

FYI the signature parameter has been completely removed as of last month so you no longer need the line
unset($query_params['signature']);

And it seems, that suddenly people, wake up contribute! (:

@xewl @EiNSTeiN- @hsleewis @ohmybrew feel free to give my version a try: https://github.com/LukeTowers/php-shopify-api

@LukeTowers I've been using my patch for soooo long now.. x)

@xewl You know what they say, don't fix what ain't broke 😉

@LukeTowers That's what they say -- 99% not what needs to be done :(

Closed due to lost repository.
Check @LukeTowers 's repo for a fix.


Least squares optimizers returned "cost" is not L2-norm

One would assume the "cost" value in the result from lsq_linear and least_squares is the L2-norm of the residuals. Currently the reported cost is half the sum of squared differences instead of the sqrt of the sum of squared differences.
This is trivial to fix in lsq_linear, but a little more involved for least_squares due to the loss function logic.

Least squares minimizes sum of squares, so I would never expect any square root there.
Why do you expect a square root, L2-norm?

Sure, I guess I would expect it to be the sum of squares or the L2-norm. However, I wouldn't expect it to be half the sum of squares.

Why is that important?
I don't know the specifics here, but in general it is quite common to add a factor to the objective function so that the derivative/gradient or first order condition have a nice algebraic form. In the sum of squares case the 2 from the derivative of the power cancels with the on half.
The point is whether the objective function is just for the minimization or is also directly used for, for example, F-tests or Likelihood ratio tests. In those cases having a consistent definition can be important.

Yes, I ran into this because I was using the "cost" to compute some other fit statistics. If nothing else, I think it should be documented as to what exactly "cost" is returning. If it just being used for internal purposes and we shouldn't care exactly what the definition is, then it shouldn't really be getting returned as part of the result.

http://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.least_squares.html#scipy.optimize.least_squares seems to have a factor of 0.5 in the formula. How else would want it documented?

Argh... I feed dumb...  Sorry for the noise.

Maybe (1/2)*... would be more prominent?

Maybe include a brief explanation of why that cost function was choosen?  Like what @josef-pkt posted above.

IMO it's not that obvious from the docs. There should probably be at least a sentance warning users of this factor of 0.5, because it might be missed from a quick glance over. I noticed it but didn't put two and two together until I inspected the output of "cost" compared to calculating it manually myself.

I also missed this and was accordingly perplexed until Googling revealed this issue.

feel free to suggest an improvement to the docs if you can think of one!


It is unclear which theme is currently selected

Storage Explorer Version: 1.7.0
Platform/OS: All
Architecture: All
Regression From: No
Bug description
There is no visual or audio indication on which theme is currently selected in the theme sub-menu. Comments from the user study "What I would expected is the selected theme to be marked as 'checked' and it is not"  (NVDA)
Expected:
The menu for the currently selected theme should be checked and read when the submenu is opened.

I happened to know how to do this when adding the accelerator.


Update dev_url to GNOME GitLab repo

Checklist

[x] Used a fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)

Do I have to increase the build number? Is there a way we can skip deployment of this, since it doesn't seem necessary to deploy new binaries to https://anaconda.org/conda-forge/pango?

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


[bitwardenrs] Update version in readme

Version has been update to chart version in the readme.

Hi 👋 @dynamicat we use helm-docs to generate README.mds
You can install that tool and then run ./hack/gen-helm-docs stable bitwardenrs to make the update.

Is that okay?

You should also bump the patch version in Chart.yaml


docs: Update python docs

Added missing imports to the examples
Added a warning for something a beginner might miss
Corrected some text references to match latest

:tada: This PR is included in version 2.10.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


chore(release): v0.10.0

:robot: I have created a release beep boop
0.10.0 (2023-06-10)
Features

add kbd base styles. (1dd4dc4)
add popover component. (a6770b3)
add progress component. (4981296)
add skeleton component. (2bef7b8)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/sira-design/sira/releases/tag/v0.10.0 :sunflower:


Cannot run fh init as instructed by Zero-to-Nix

FYI, as I was following zero-to-nix, I ran nix run "https://flakehub.com/f/DeterminateSystems/fh/*.tar.gz" -- init (as instructed) and got this error message:
error: builder for '/nix/store/sigk6kxwq1rqldkrb41ysva45bqmjbp4-fh-20231111-9ee4cc0-0.1.8.drv' failed with exit code 101;
       last 10 log lines:
       >     cli::cmd::convert::test::test_nixpkgs_from_registry
       >     cli::cmd::eject::test::flakehub_nixpkgs_to_github
       >     cli::cmd::eject::test::flakehub_to_github
       >     cli::cmd::eject::test::test_flake8_eject
       >     cli::cmd::eject::test::versioned_flakehub_to_github
       >
       > test result: FAILED. 7 passed; 9 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.50s
       >
       > error: test failed, to rerun pass `--bin fh`
       > /nix/store/zv9jfmqy3lwknq5y3mxhp99r9n50ykjl-stdenv-darwin/setup: line 1608: pop_var_context: head of shell_variables not a function context
       For full logs, run 'nix log /nix/store/sigk6kxwq1rqldkrb41ysva45bqmjbp4-fh-20231111-9ee4cc0-0.1.8.drv'.

Output of nix log /nix/store/sigk6kxwq1rqldkrb41ysva45bqmjbp4-fh-20231111-9ee4cc0-0.1.8.drv

Works fine with 0.1.6 but not 0.1.7 (and not 0.1.8, as seen above).

@yacinehmito Which system are you on? Any other context you can provide? I haven't been able to reproduce.

I wonder if it's this: https://github.com/NixOS/nixpkgs/issues/214822

I am on macOS. Ventura 13.6 specifically, and I have nix-darwin installed. What command can I run to provide you with more info?

@cole-h Does this ring a bell to you? I've been able to reproduce this.

Could you try using nix run "github:DeterminateSystems/fh/disable-some-tests-on-darwin" -- init and tell me if that fixes it for you?


Some players see themselves in the tab 2 times

Some players see themselves 2x in the tab, the server is running on version 1.20 with viaversion, I personally have 1.20.1 and I see myself once, one of those who see themselves 2x has 1.20 and the other one also has 1.20.1
Version: v1.5.1

can you try with the latest alpha release of Velocitab? https://modrinth.com/plugin/velocitab

also; are you using the API to change user names at all?

also; are you using the API to change user names at all?

No no, and I'll try the alpha build tomorrow.

Are you still using the build I gave you for the other issue?

Are you still using the build I gave you for the other issue?

If you mean a build that includes luckperms recalculation event then yep

Did this problem occur also with the previous version that were you using?

Did this problem occur also with the previous version that were you using?

If you mean v1.5.1 (latest), yes

Can you please open a ticket on Discord? We can discuss the problem further there.

Can you please open a ticket on Discord? We can discuss the problem further there.

Okay, sorry for late response

I have this problem too version 1.5.2

Maybe it's because my server uses an offline uuid?

i tried all versions 1.5.2 and all of them have double nickname problem in version 1,5,1 no such problem but custom nickname is not formatted.
Plugins: azlink, cmiv, discord, floodgate, geyser, leaf, protocolize, librelogin, limboapi, litebans, luckperms, papiproxybridge, plasmovoice, pv-addon-broadcast, pv-addon-groups, skinsrestorer, velocitab, velocityresourcepacks

My issue is with LimboAuth and /premium feature:

My issue is with LimboAuth and /premium feature:

you use floodgate, geyser?Because I don't use LimboAuth but have the same problem

i'm using librelogin and i have /premium enabled

My issue is with LimboAuth and /premium feature:

you use floodgate, geyser?Because I don't use LimboAuth but have the same problem

nope, i dontuse geyser and floodgate.

i'm using librelogin and i have /premium enabled

try to disable premium

when premium is off everything works fine

This bug seems to only occur with servers using cracked setups with auth plugins doing weird stuff. If we find a fix for it then we'll add it, but to be honest this is gonna be low priority to investigate as I don't really support non-premium setups :)


Adjust chain-following code to account for collateral inputs

The purpose of this PR is to modify the the code that follows the blockchain to adjust the Wallet's UTxO when collateral inputs are lost due to a transaction that fails phase-2 script validation (Plutus scripts).
I have:

Add valid script field to MkApiTransactionParams, ApiTransaction, TxMeta, Tx, and TransactionInfo.
Modify state transition logic (when a Tx is applied to a UTxO) to account for collateral inputs.
Add integration test for collateral inputs.
Add property tests for state transition logic.
Add is_valid_script field to API specification.

Issue Number
ADP-1036

@sevanspowell and I had a discussion about the representation of a transaction's script validity (currently represented by the Tx.txScriptValidity :: TxScriptValidity field).
After consideration, we both feel that it doesn't make sense to talk about the script validation status of a transaction that is still in the pending set: after all, transactions in this state have not yet been subjected to phase-2 validation, so we can't yet know what the outcome will be.
Therefore, we propose to:
* [ ]  Change the type of `Tx.txScriptValidity` to `Maybe TxScriptValidity`.
  (This makes it possible to assign pending transactions with a script validity of `Nothing`.)

* [ ]  Change the type of `TxInfo.txInfoScriptValidity` to `Maybe TxScriptValidity`.

* [ ]  Change the definition of `TxScriptValidity` to:
  ```haskell
  data TxScriptValidity
      = TxScriptValid
      | TxScriptInvalid
  ```

* [ ]  Change the API definition of `txScriptValidity` to:
  ```yaml
  x-txScriptValidity: &txScriptValidity
    type: string
    enum:
      - valid
      - invalid
  ```

The absence of a validity means that either:
* script validity is not supported for this type of transaction (for example, if the transaction was created in an era prior to Alonzo); or

* this transaction has not yet been subjected to script validation.

We both feel that this representation is still not completely satisfactory. Even under the revised representation, the Tx type still make it possible to represent a pending transaction that has a script validity, which of course doesn't make sense.
Ideally, we'd want to represent pending transactions with a type that doesn't have a script validity field, so it would not be possible to represent this invalid state.
However, the Tx type is deeply embedded in multiple places, and replacing this with a PendingTx type would likely be a lot of work, and almost certainly cause us to exceed our time budget for this task. So we propose to:
* [ ]  Create an item of technical debt: represent pending transactions with a type that doesn't include script validity.

https://input-output.atlassian.net/browse/ADP-1116

@sevanspowell and I had a discussion about the representation of a transaction's script validity (currently represented by the Tx.txScriptValidity :: TxScriptValidity field).
...

755da3b

bors r+


Discord or meeting group?

I think it would be cool to have a discord or meeting group to discuss developments here or somewhere.

That's a nice idea! We're a bit in a rush with the RSS deadline at the moment, but it could be cool to do a virtual Octo meetup with folks using the model some time after the RSS deadline, so please stay tuned :)


Compilation errors running on AIken v1.0.29

What Git revision are you using?
git version 2.39.5 (Apple Git-154)
What operating system are you using, and which version?

[ ] Linux / Ubuntu
[ ] Linux / Other
[x ] macOS M1 Pro
[ ] Windows

Describe what the problem is?
When I use Aiken version v1.0.29-alpha and I run the command aiken check , I receive several parser errors.

However, if I switched to aiken v1.1.2 I don't get any compilationi errors but it recommends me to switch to the alpha version mentioned above.
What should be the expected behavior?
I would not expect any parser errors.

I resolved this issue. I deleted .aiken folder and went with a fresh install.
That seemed to resolve my issues.


Incorrect indentation following Dict comprehensions

Dictionary comprehensions in IJulia notebooks cause extra indentation on following lines, e.g.
Dict(a=>a for a=1:5)
    # next line of codes starts here

Looks like this happens with any generator expression:
sum(x for x=1:5)
     # next line of codes starts here

Could this be a CodeMirror issue?

Yes, it would be a problem with the codemirror mode; cc @malmaud

codemirror/codemirror#4356


Scalers crash when run locally on Macs but not on PCs

This issue is a:

[X] documentation issue or request

Issue description
This issue is a documentation suggestion, but I'm not sure where to add it so I wasn't able to just submit a PR.
When running an ACA project locally under OSX for development and testing purposes, Scalers like the one in the Azure Container Apps Orleans sample crash while reporting:
"HTTP/2 over TLS is not supported on macOS due to missing ALPN support.

The Silo itself runs fine, and the various minimal web api projects that interact with the silo also work fine, but the Scaler wont run on macOS. The Scaler project is crashing because the gRPC KEDA service it hosts is trying to bind to a port using HTTP/2 over TLS which is not possible on a Mac (and also not possible on Windows 7 or earlier). This exception does not get thrown when running the same solution under current versions of Windows.
A resolution to the issue is to add the following code to Scaler/program.cs:
//
// NOTE - ONLY USE THIS CODE FOR LOCAL DEVELOPMENT
// NOTE - DO NOT USE THIS CODE TO TURN OFF TLS IN PRODUCTION
//
// NOTE - This code is only needed on Macs and on Windows 7 or earlier
//
// NOTE - You need to edit the port number (7122 below) to match whatever is in your launchSettings.json
//
builder.WebHost.ConfigureKestrel(options =>
{
    // Setup a HTTP/2 endpoint without TLS.
    options.ListenLocalhost(7122, o => o.Protocols =
        HttpProtocols.Http2);
});

By way of additional background, TLS issues on macOS seem to be a well-known aspnetcore 6 issue, discussed for example here.
Steps to reproduce

Use a Mac
Clone https://github.com/Azure-Samples/Orleans-Cluster-on-Azure-Container-Apps.git
Edit one line in Scaler/program.cs to read .UseLocalhostClustering(); instead of .UseAzureStorageClustering(...); (so you can run that example locally rather than in the cloud)
Set the Scaler as the startup project for the solution (you only need to run the Scaler to see the exception occur)
Run the debugger
See the error
As a general note, if you happen to want to run the entire solution (which isn't needed to see this issue) you need to convert all the projects to use local clustering and you need to introduce some sleeps in the client projects because (at least on my machine) they try to connect to the silo before it's ready and throw cannot connect exceptions as a result.

Expected behavior

Project runs without error

Actual behavior

An exception popup reports

System.IO.IOException has been thrown
Failed to bind to address https://localhost:7122

Click on Details in the error popup and drill down to the nested System.NotSupportedException
See that the Message property of the NotSupportedException is HTTP/2 over TLS is not supported on macOS due to missing ALPN support.

Hi- this seems to be an issue with a specific code base stored in a different repository. This is unrelated to the container apps service and appears to be a note related to the repo cc: @bradygaster I recommend opening the issue on that repository @yoDon

Agreed with Kendall - can you file this issue in that sample's repository rather than on the service team?

Also, take a look at this documentation page, as I think it summarizes the crux of the issue you're having and how to work around it. the TL/DR is this:

It's of course your call, but given the criticality of gRPC-based scalars to ACA projects and the cross-platform nature of the local dev-and-test story for ACA, it feels to me like there should be a tracked issue for this at the platform level, even if there's not currently an approach you can see to finding a fix.
Again, it's your call, but it's hard for me to see how the fix should be the responsibility of some random sample I happened to pick that happened to exhibit this issue so there'd be an easy repro in the issue report. To me this feels like a hard-to-fix ACA platform local dev-and-test issue.

@yoDon - we do have an issue tracking this part of the experience over in the ASP.NET Core repo. Probably good to track progress on this part of the experience there, and to close this issue as, again, it has little-to-nothing to do with the ACA team. I agree, it's a development experience opportunity for .NET developers using Macs to build their apps, but that's not the responsibility of the ACA team to fix it. :)
https://github.com/dotnet/runtime/issues/27727


Swagger and healthchecks

Component
server, other
Describe the bug
I accidentally found (not yet documented) that swagger is built into "next". I have been trying to use it to get server healthchecks.
I'm documenting my findings here. I realise it's still WIP, but hope it will help keep track of some things.

FEATURE: The swagger interface is very useful. But in production it is a risk. Please consider:

adding a setting to disable it
adding a custom path so we can hide it from prying eyes (e.g. woodpecker.example.com/foo/bar/swagger)

DOCS: At some point some docs should be added so users know swagger exists at woodpecker.example.com/swagger. And that for secured endpoints, the API token can be retrieved from the woodpecker ui at "User Settings" > "Your Personal Token". (As a new user it wasn't obvious to me.)

BUG: All endpoints respond with an "empty" page and 200. Even ones which do not exist. So for example, I can access woodpecker.example.com/foo and woodpecker.example.com/api/bar and neither of those responds with 404.

The ramification of (3), is that the api/healthz endpoint doesn't actually work - it will always respond with 200, even if the container is "unhealthy". That means it is an "I'm alive" check rather than a "health" check.

BTW for healthchecks, the typical approach (in an alpine container which lacks curl but has wget) is something like:
docker-compose.yml:
healthcheck:
  start_period: 5s
  interval: 30s
  timeout: 10s
  retries: 3
  test: 'wget --no-verbose --tries=1 --spider http://localhost:8000/api/healthz || exit 1'

System Info
version "next"
dockerised

Additional context
No response
Validations

[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Checked that the bug isn't fixed in the next version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]
[X] Check that this is a concrete bug. For Q&A join our Discord Chat Server or the Matrix room.

created issues  #1943 &  #1944

to it's own issue ...


[ BUG ] wrong lastmod W3C Datetime ISO8601 format

Description
The supported datetime format for the lastmod tag ('2019-07-22T05:58:37.037Z') doesn't seem to actually be in ISO8601. Since the ISO8601 states:

Year:
YYYY (eg 1997)
Year and month:
YYYY-MM (eg 1997-07)
Complete date:
YYYY-MM-DD (eg 1997-07-16)
Complete date plus hours and minutes:
YYYY-MM-DDThh:mmTZD (eg 1997-07-16T19:20+01:00)
Complete date plus hours, minutes and seconds:
YYYY-MM-DDThh:mm:ssTZD (eg 1997-07-16T19:20:30+01:00)
Complete date plus hours, minutes, seconds and a decimal fraction of a
second
YYYY-MM-DDThh:mm:ss.sTZD (eg 1997-07-16T19:20:30.45+01:00)

And when i pass a datetime format in the lastmod tag like this "2019-07-22T05:58+01:00" it always gets converted to something like "2019-07-22T05:58:37.037Z". I'm not quite sure if this is an actual bug or just some behaviour I don't understand.
Expected behavior
Passed lastmod datetime should not be converted.
Desktop:

Library Version [4.1.1]

@patrickmartin0 As documented in https://github.com/ekalinin/sitemap.js#sitemap-item-options we use the official w3c subset of ISO8601. Basically we take the date (new Date('what you passed in')).toISOString() This is a function of javascript. Although there are libraries out there that preserve the full ISO8601, as this is supported natively and has no impact on the accuracy of the timestamp, this was consciously chosen. You do lose offset information but that isn't really relevant to crawlers.
And just to be clear in the example you gave  (new Date('2019-07-22T05:58+01:00')).toISOString() converts out to 2019-07-22T04:58:00.000Z. So the offset is accounted for.

Ah okay now I get it! thanks for your help!


404 broken link in docs

This is a...

[ ] Feature Request
[x] Bug Report

Problem:
link for [api-reference] in opening line at
https://kubernetes.io/docs/concepts/services-networking/network-policies/#the-networkpolicy-resource leads to a 404 error https://kubernetes.io/docs/api-reference/networking/v1/definitions/#_v1_networkpolicy
Proposed Solution:
update to correct link
Page to Update:
https://kubernetes.io/docs/concepts/services-networking/network-policies/#the-networkpolicy-resource

@bobsky seems to be working for me. can you try again?


Ethan: Watch getprocrackhere.com

Ethan requests the watch of the watch_keyword getprocrackhere\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

getprocrackhere\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Makyen in Charcoal HQ


uploading image in Lucid Hooks

in laravel we can upload image in model hooks by something like :
Category::create($request->only(['name', 'image']);

.
.
.
self::saving(function($model) {
    if($model->image instanceof UploadedFile) {
        // UPLOADING IMAGE AND SET TO MODEL PROPERTY
        $model->image = $fullPath;
    }
});
.
.
.

is possible having something like in adonis ? it's useful for avoid duplicate code
currently in adonis request.only(['name', 'image']) not detect file field

Something to be discussed on the forum or discord server

@thetutlage i searched before create feature request, can you give me link ?
thanks

@DJafari I closed the issue, coz it's not a bug and neither a feature request. I suggest asking questions on the Forum or discord, since it helps me and the team focus on real issues on Github


max() function is not supported self define start row in window funcition

Enhancement

currently not supported, we will support it right away

currently not supported, we will support it right away

Thanks for supporting max function . and could you support min function with specific start row as well ?

thanks


HTTP content length exceeded

Hi,
I am seeing this exception when using the BulkAPI: org.elasticsearch.common.netty.handler.codec.frame.TooLongFrameException: HTTP content length exceeded 104857600 bytes.
It seems to be related to this: https://github.com/elastic/elasticsearch/issues/2237
The accepted suggestion seems to be "break the bulk requests yourself to chunks.". I have fairly strict limits set (BulkMaxBuffer is .5 mb and BulkMaxDocs is 10000). I am wondering why with these settings it still seems to go to 104857600 bytes when flushing.
Thanks!

I am sorry, i was completely wrong about this exception, it was not caused by your library


⚠ Bofrost.at has degraded performance

In 97a3c15, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2227 ms

Resolved: Bofrost.at performance has improved in 1ea8906 after 6 minutes.


Parameterize query to prevent SQL injection

howdy! I just ran across this tool on the twitters and it's pretty sweet
But I also noticed that whatportis "hello' OR 1 = 1;--hello" dumps the whole database.
It's not a huge problem, but it's easily fixed, so I fixed it :) This was literally a 5 minute hackjob (mostly trying to test that my fix fixed it), so do with it what you will. As far as I can tell, this changes no behavior otherwise.
Edit: In another world I'd prefer no dynamically constructed queries, but I figure this is a pretty minimal change, so easy to review!

Actually the ports.db file is self hosted, so you can easily display all the data in it without the SQLi :
$ sqlite3 ~/.virtualenvs/whatportis/lib/python3.4/site-packages/whatportis/ports.db.
As you can see there is no sensible information in this file. But i'm totally agree with you, it's better to make a safe query, even if it's not dangerous, so thank you for this PR.
However the tests are not validated. It does not work with the --like option :
$ python test_whatportis.py
F.F...
======================================================================
FAIL: test_search_int_like_port (__main__.WhatportisTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_whatportis.py", line 54, in test_search_int_like_port
    self.assertEqual(result.output.count('mysql'), 3)
AssertionError: 2 != 3

======================================================================
FAIL: test_search_str_like_port (__main__.WhatportisTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_whatportis.py", line 47, in test_search_str_like_port
    self.assertEqual(result.output.count('mysql'), 11)
AssertionError: 2 != 11

----------------------------------------------------------------------
Ran 6 tests in 0.015s

FAILED (failures=2)

Can you fix it before the merge plz ?

Ah yes, sorry about that! Wasn't reading clearly last night and glazed over those tests. Should be good now, they all pass again!
I don't know sqlite's nitty gritty so well but my motivation is having seen things like being able to system() or exec() in some very silly databases before :)

Thank you :thumbsup:


Strange type narrowing with Discriminated union types

TypeScript Version:
nightly (1.9.0-dev.20160619-1.0)

Expected behavior:
Type of shape should be never or Shape so that we can still access type to throw an Error.
  throw new Error('Unknown type. Type: ' + shape.type);

Actual behavior:
Type of shape is { type: 'rectangle'; width: number; height: number }.

Duplicate of #9246. This is working as intended because of #8548, but it is obviously causing some confusion.

@ahejlsberg how do the conditions of #8548 come up with this example? The control flow type is (or should be?) narrowed to never after the two type guards in the if/else if block. But then there is no third type guard that conflicts with that narrowed type, so why should #8548 apply?

Fixed in #10118.


add support to import configlets into blueprints

The configlets are imported into blueprints by reposting the configlet data from the catalog and adding a label and an optional set of conditions, that are used to associate the configlet with a device or set of devices.

Closed by #63


Include plugin versions for javadoc and antrun in pluginManagement

It looks like the commit
https://github.com/spring-cloud/spring-cloud-build/commit/61bd0522fdf2347f5aa15e054bbf2af1c8d5bbee
resulted in us not getting versions specified for javadoc and antrun plugins.  There are probably a couple other common ones that would be good to have as well.
This was noticed as we got another older version for antrun and our .zip file for docs in dataflow was not being generated anymore...  See https://github.com/spring-cloud/spring-cloud-dataflow/commit/f9fca1a38b6b4a9d9be2366e1db60c5faf93803a

@markpollack are you going to do a PR?

No.  I feel like I'm looking through a small peephole in terms of the effects of this change.   We also now have a lot of warning errors wrt to plugin versions in the build.  Trying to make it through a release and then hope to circle back again.

Fixed in af055cf.


FEA-f Structure - Different Implementation

Hey, thank you for this great study!
I have a question about the structure of FEA-f which you mentioned in the paper.
You mentioned that after achieving the scores from the activation function and Q_tild, K_tild we need to multiply it by the V_tild. But actually, in the code, there is no use in V at all and the multiplication is with V_tild which we already used.
So why is the change or/and what is the idea behind using the keys as values?
Thank you!
https://github.com/MAZiqing/FEDformer/blob/306add595141d262f02570b0150b5f9c2fbad0de/layers/FourierCorrelation.py#L118

We used the same learnable weight here for K and V, it helps stabilize the training a little bit, you can use xv_ft_ here as you noticed; it might give better results with careful tuning.


Graceful Shutdown of Windows Server Containers

The ability to stop and start containerized workloads is critical for minimizing cost and unnecessary resource usage. Once a container is deployed there is a high probability that it will eventually need to be shut down for servicing, migration, or some other domain specific reasoning. Thus, a container must not be shut down forcibly without notifying the containerized application first. Failing to do so can cause unwanted side effects and allow for the accumulation of corrupted and useless data.
Windows Server containers currently have limited support for graceful shutdown. The -t parameter passed to docker stop is effectively ignored, and the user has little control over when the container is forcibly terminated. The fix for this issue will give the user a greater range of control over this scenario

In our case, we developed a workaround ourselves for this issue. We are using windows-kill (https://github.com/alirdn/windows-kill), which uses the CreateRemoteThread API (https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-createremotethread).
This tool mimics some critical Unix process signal itself. Windows will not make timeout expiration about the call to extend a reasonable time to process the shutdown process for our purposes. In the VM context, we can increase our shutdown waiting time with cloud providers' policy.

@brasmith-ms could this issue be related to https://github.com/microsoft/Windows-Containers/issues/37 and possibly https://github.com/docker-library/mongo/issues/435 that prevent proper MongoDB operation inside Windows containers? If containers are not gracefully shut down, that would explain a lot.
Can you give an update on this? It is a critical issue that has been lingering on for years, and we really, really need to get working containerized MongoDB databases on Windows Server. A lot of customers wish to use Windows and won't accept switching to Linux just to run containers.

I believe graceful shutdown now works with Containerd via HCS v2 api. Don't know the status for Docker.  A couple sample apps: https://github.com/marosset/windows-container-graceful-shutdown

@jsturtevant that's very interesting, it would mean there are some upstream fixes already, I just have no idea if there is a way to get an up to date version of Docker that would use it. Is it even possible to rebuild Docker for Windows with the latest upstream code?

@brasmith-ms can confirm, but I dont think there are plans to fix it for docker container runtime. Since docker uses HCS v1, it probably wont be possible. Is there something stopping you from moving to containerd?

@immuzz to be honest I only learned yesterday that it was possible to run Windows containers without Docker yesterday. I don't mind switching to containerd as long as it is officially supported on Windows Server 2019? My software basically just calls the Docker CLI, if you can point me to more information on how to switch to containerd for Windows containers, I'd be more than happy to take a closer look at it.

Per https://github.com/moby/moby/issues/41455, it's likely that Docker will continue to use HCS v1 for the 20.x series (as it's too late to switch), and perhaps will drop it (by moving to use containerd on Windows, as they have on Linux) in a 21.x series, which brings in the HCS v2 API.
One issue for Docker is that HCS v2 requires RS5 (LTSC 2019), and they still support RS1 (LTSC 2016) in the 20.x series, so they cannot move to containerd. There doesn't seem to be much appetite for supporting both direct HCS calls and containerd at the same time.
As far as official support, containerd themselves support Windows, but containerd is not the full solution, e.g., you need to bring your own CNI plugin for networking, and that's a surprising hassle to set up by hand, if you need anything more complex than NAT. Even NAT was a minor hassle to work out how to do it. (It's possible that there was an easy way to do this that I overlooked, of course. And that was a while ago, maybe this has been streamlined since.)
Containerd itself is designed to be used by other services, the direct CLI (ctr) is more of a debugging tool, I understand. So normally you'd consumer it via Docker (there used to be an env-var for this, but it's probably bitrotted, hence the above-mentioned issue) or as a CRI plugin for Kubernetes. In both cases, the wrapping software is taking care of things like setting up the CNI networking integration, and generally bundles or supplies the appropriate plugins.
So Microsoft would formally support Docker (using containerd) via the existing msftdocker install source once Docker includes containerd. As of Kubernetes 1.20, containerd/CRI is an officially supported kubernetes-on-Windows runtime, and since the Docker shim is deprecated, that makes it the only supported option.

@TBBle so let me summarize what I understand of the situation:

Docker on Windows Server 2016 / 2019 currently uses HCS v1
HCS v2 + containerd is affected by critical issues like this one
HCS v2 + containerd could work for 2019, but not for 2016
containerd is not complete on its own, we need CNI plugins
containerd is not really dealt with "directly" like the Docker CLI
while we're figuring this out, Docker is plain broken on Windows?

Is it me or Kubernetes is slowly becoming the new Docker? What appears to matter now is the container runtime which is way too complex to deal with directly unless you use something on top of it like the Docker CLI or Kubernetes, and the world is slowly moving away from the Docker CLI. That would be a nightmare vision of the future because Kubernetes is absolutely overkill for a lot of use cases and I wouldn't recommend it to anyone unless they really need it.

@TBBle @immuzz if we restrict the scope to Windows Server 2019 specifically, is there a way one could grab and run an upstream version of the Docker CLI and engine that uses HCS v2 + containerd? I currently instruct my customers to grab the official msftdocker, but I would be fine with giving them instructions to migrate to another Docker distribution that is not affected by ungraceful shutdown issues.
I already require Windows Server 2019 instead of Windows Server 2016 because 2016 has limited docker networking support among other things, so we decided not to bother with it. In most cases, customers just buy a new Windows Server 2019 Standard license to create a dedicated VM to run our multi-container product.
What worries me is to learn that while containerd is much better, there appears to be a lot of features that would require "manual assembling" like networking, etc. Maybe it could help to point out what I actually use and need from the Docker CLI:

Docker networks
Docker volumes
Graceful shutdown

There is a lot I can handle outside of the Docker CLI because I wrap everything in a PowerShell module. If I have to inject 10 additional parameters to each container because an upstream Docker CLI + engine wouldn't provide as much helper functions, it would be annoying, but I can still do it. For instance, I recall doing some experimentation with podman on RHEL8, which lacked proper docker networking. It can work if I manually specify a complete list of IPs and hostnames to all containers: annoying, but still doable.
I can meet HCS v2 + containerd halfway, as long as I can figure out a way to get started using it on Windows Server 2019. If it means losing all a lot of helpful features that are automatic in the Docker CLI then so be it, I'll just add a whole lot of PowerShell scripting on top of it to inject a lot more parameters to each container.
My question is, how would I get started running containers on Windows Server 2019 using containerd, knowing that it is supposed to support graceful shutdowns, unlike HCS v1?
Also, just pointing out the obvious elephant in the room: why not fix HCS v1 even if it apparently has no future? After all, 2016/2019 are long-term support releases, and I can't believe that things like a lack of graceful shutdown would not be considered a critical bug that needs a backported fix. Either backport fixes to HCS v1, or bring HCS v2 to 2019, all that matters really is having containers that can be shutdown gracefully.

HCS v2 + containerd is affected by critical issues like this one

I assume you meant "HCS v2 + containerd is not affected by critical issues like this one".

The most recent instructions on using Containerd in Windows with Docker is the "How to use" on https://github.com/moby/moby/pull/38541 from January 2019.
I checked and the env-var still exists, but a recent enabling of this config on the Docker Jenkins CI instance (https://github.com/moby/moby/pull/41479) saw lots of test failures, so it's quite possible that your use-case will also hit issues.
You can grab Win64 containerd builds from https://github.com/containerd/containerd/releases. Helpfully, if you grab the cri-containerd-cni Win64 package as well, that contains the binaries you need from hcsshim, so you won't need to download that hcsshim's CI system. You shouldn't need the CNI binaries from that package, because Docker takes care of the networking setup itself, but if you want to run containerd without Docker, then those're the CNI binaries you need.

@TBBle installing the containerd service on Windows wasn't too hard, but I didn't get a chance to try using the experimental Docker containerd support. At a bare minimum, it is good news to hear that there is such experimental support meant to facilitate the eventual migration to containerd. However, it looks like there is still no clear plan as to what is going to happen with regards to HCSv1, HCSv2 + containerd, and the future of Docker for Windows.
My understanding is Azure Kubernetes Services supports Windows containers through containerd, and I assume all the focus is on Azure, but that doesn't mean Docker is suddenly dead outside of Kubernetes.

The Docker for Windows plan seems reasonably clear to me: Per https://github.com/moby/moby/issues/41455, it seems the current thinking is that Docker 21.x (or later, if not done in-time) will use containerd on Windows (as it has done on Linux for years) and consequently drop RS1 (Windows Server 2016) support.

@TBBle while Docker for Windows has a plan, what I'm not so sure about is the plan for the Microsoft Docker distribution. Will they simply go along with the plan described in https://github.com/moby/moby/issues/41455 and leave Windows Server 2016 with an older version of Docker that uses HCSv1? I'm all for it, as I really only care about Windows Server 2019.

Ah, I see. Since the person who opened https://github.com/moby/moby/issues/41455 is a Microsoft employee, I am assuming that this reflects the MS plan for Docker on Windows Server.

The bot has already poked @brasmith-ms 3 times for an update... So, can we get a status update on this? Is a switch to containerd in Docker for Windows the chosen solution to the problem?

Hi all, @awakecoding, apologies for the delay in my response here! As mentioned previously, we have confirmed that containers operating over HCSv2 do not exhibit the graceful shutdown issues described here. Our focus is centered around the development of HCSv2 so we do not have plans to fix this in HCSv1. This will require a switch to containerd in Docker for Windows going forward. HCSv2 fully supports Windows Server 2019 (and later) containers, so today you can use WS2019 containers on HCSv2 with the ability to gracefully shutdown the container. Per https://github.com/moby/moby/issues/41455 it is expected that docker will add HCSv2 support in 21.x
I'm going to close this, but if you have any additional questions please feel free to reach out to me.


crate.io uses poorly designed custom badges based on Shields

I reached out them here.

Resolved!


how to get the hostname / domain name of the request header?

how to get the hostname / domain name of the request header?

Do you mean "c.Request.Header.Host()"?


Pre-Requisite permissions to send to a WebHook

Hello,
Please can the pre-requisites for permissions to send to a webhook be covered?
I have a process that sends an actionable message to a Webhook in one of our Private Teams Channels. When this process is run by my user account with an O365 license and mailbox then it sends the message ok. If I use a Service Account, which has no O365 license, or mailbox then it does not work.
Thanks

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

ID: 28316a67-22fa-8a05-1ae0-fbe1c5720ef9
Version Independent ID: 8a250e46-2a30-af86-839d-9f83a8b48041
Content: Sending messages to Connectors and Webhooks - Teams
Content Source: msteams-platform/webhooks-and-connectors/how-to/connectors-using.md
Product: msteams
GitHub Login: @laujan
Microsoft Alias: lajanuar

@leebow55 , Are you referring incoming webhook?

Hello, Yes I am.
From: Subhasish<EMAIL_ADDRESS>Sent: 07 July 2020 06:39
To: MicrosoftDocs/msteams-docs<EMAIL_ADDRESS>Cc: Bowman, Lee<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/msteams-docs] Pre-Requisite permissions to send to a WebHook (#1848)
@leebow55https://github.com/leebow55 , Are you referring incoming webhook?

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/msteams-docs/issues/1848#issuecomment-654614455, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AED5KBADBHRPUXGNYWI7PWTR2KYIVANCNFSM4ORT7TZA.
M&G plc - Restricted
This email is confidential and should not be used by anyone who is not the original intended recipient. PGDS cannot accept liability for statements made which are clearly the sender's own and not made on behalf of the company. In addition no statement should be construed as giving investment advice within or outside the United Kingdom.
PGDS (UK ONE) LIMITED, 10 Fenchurch Avenue, London EC3M 5AG. Incorporated and registered in England and Wales. Registered Office as above. Registered number 1967719.
"PGDS" is the trading name of certain subsidiaries of M&G; plc (registered in England, number 11444019), whose registered office is at 10 Fenchurch Avenue, London EC3M 5AG, some of whose subsidiaries are authorised and regulated, as applicable, by the Prudential Regulation Authority and the Financial Conduct Authority. PGDS (UK One) Limited is part of the same corporate group as the Prudential Assurance Company. The Prudential Assurance Company is a direct/indirect subsidiary of M&G; plc, a company incorporated in the United Kingdom. The Prudential Assurance Company is not affiliated in any manner with Prudential Financial, Inc, a company whose principal place of business is in the United States of America or Prudential plc, an international group incorporated in the United Kingdom.
An e-mail reply to this address may be subject to interception or monitoring for operational reasons or for lawful business practices.

@leebow55 , incoming webhook generates a public URL and anyone can post a Json message to it. It does not require any permission to send message. Are you getting any error while sending message from service account.
You could also test the connector using Postman/Fiddle doing a POST request to the connector URL.


fix: tries passing the single required header to the projects api

:pencil: Description
:link: Related Issues

I think this is the header we need!
application/vnd.github.starfox-preview+json

Closing it in favor of https://github.com/ExpediaGroup/github-helpers/pull/59


feat: better $HOME detection

Specifically, trust $HOME if it's set

@dimaqq this apparently breaks jhack if snapped.
also, TIL,  Path("~").expanduser() internally uses the HOME envvar so the code I had before is functionally equivalent, only we swapped the priority of USER and HOME.
I'm switching that back hoping it will solve the issue.

in the case of snapped jhack I'm afraid HOME will be set to the snap home dir, which we don't care about, so instead looking up USER first seems to give the desired behaviour.
Was the priority swapping intentional, and if so, what were you trying to solve?

Oh, that's a problem...
I'm running a colima VM, and it's default is to create a user same as my host user, so dima, but the home dir is /home/dima.linux which means concatenating /home/ and username doesn't do the right thing.
I wonder if expanding ~ yields real home dir or snap home dir...
Or would it help to select a few candidate directories and test if they actually exist?

Looking at https://snapcraft.io/docs/home-interface if jhack snap declares the home plug, should it not just work?

we already have

and

so I was expecting it would work out of the box

dot files are not part of the home interface
home interface is not the same as personal files interface.

See e.g. https://github.com/juju/juju/blob/3.6/snap/snapcraft.yaml#L58-L59

Anyway, if jhack doesn't need arbitrary files from user's home, then the personal files plug/interface should be enough. It's then only a matter of guessing the path to the config files consistently when snapped or not... right?

correct. I'm not convinced requesting home is the solution here

also, turns out we already have the home plug too

Should check $SNAP_REAL_HOME first?
Here's the environment from snapped juju:
root@colima-ahh:/home/dima.linux# cat /proc/3015028/environ | tr \\0 \\n | grep -i home
HOME=/home/dima.linux/snap/juju/27226
OLDPWD=/home/dima.linux
SNAP_USER_DATA=/home/dima.linux/snap/juju/27226
SNAP_USER_COMMON=/home/dima.linux/snap/juju/common
PWD=/home/dima.linux
SNAP_REAL_HOME=/home/dima.linux

huh, if that's guaranteed to be set...


1840: check for concurrent edits from database grade events

Hi @steveswinsburg,
I've had a go at refactoring the isAnotherUserEditing API to be cluster friendlier by moving the check from notifications in memory to instead hit the database and return any GradingEvent made after a particular timestamp.
This is how it works:

Add new service method to return all grading events for a set of assignments after a given timestamp
Mark the time the grade matrix was build and make it known to the javascript
The JavaScript polls isAnotherUserEditing with the timestamp
isAnotherUserEditing hits the new service API getGradingEvents to view any events made after the given timestamp.
We filter the events to those made by other users i.e. not the current user
And lastly, morph those GradingEvent objects into the GbGradeCell model as expected by the isAnotherUserEditing service and JavaScript.

I've made the getGradingEvents take a list of the assignments, which I think makes it TA friendly - so only changes for assignments the TA can see are returned via the isAnotherUserEditing entity service call.
Does this all seem ok?
Thanks,
Payten
Delivers #1840.

My main concern about this is the number of db reads increases significantly.
Could you turn on hibernate.show_sql=true and capture the DB reads whenever this is invoked? Maybe we can tune some stuff in GBNG business to reduce this.

Sure thing.  I'll observe the exact DB reads and report back.

I've just pushed up a patch.. and with that each call to isAnotherUserEditing invokes 12 SQL queries; 6 to return the assignments for current user and another 6 to return the grading events since a particular timestamp.  Here's a list of the SQL commands when there is one GradeEvent returned:
getViewableAssignmentsForCurrentUser:
Hibernate: select gradebook0_.ID as ID15_, gradebook0_.VERSION as VERSION15_, gradebook0_.GRADEBOOK_UID as GRADEBOOK3_15_, gradebook0_.NAME as NAME15_, gradebook0_.SELECTED_GRADE_MAPPING_ID as SELECTED5_15_, gradebook0_.ASSIGNMENTS_DISPLAYED as ASSIGNME6_15_, gradebook0_.COURSE_GRADE_DISPLAYED as COURSE7_15_, gradebook0_.COURSE_POINTS_DISPLAYED as COURSE8_15_, gradebook0_.TOTAL_POINTS_DISPLAYED as TOTAL9_15_, gradebook0_.COURSE_AVERAGE_DISPLAYED as COURSE10_15_, gradebook0_.ALL_ASSIGNMENTS_ENTERED as ALL11_15_, gradebook0_.LOCKED as LOCKED15_, gradebook0_.GRADE_TYPE as GRADE13_15_, gradebook0_.CATEGORY_TYPE as CATEGORY14_15_, gradebook0_.IS_EQUAL_WEIGHT_CATS as IS15_15_, gradebook0_.IS_SCALED_EXTRA_CREDIT as IS16_15_, gradebook0_.DO_SHOW_MEAN as DO17_15_, gradebook0_.DO_SHOW_MEDIAN as DO18_15_, gradebook0_.DO_SHOW_MODE as DO19_15_, gradebook0_.DO_SHOW_RANK as DO20_15_, gradebook0_.DO_SHOW_ITEM_STATS as DO21_15_, gradebook0_.DO_SHOW_STATISTICS_CHART as DO22_15_, gradebook0_.COURSE_LETTER_GRADE_DISPLAYED as COURSE23_15_ from GB_GRADEBOOK_T gradebook0_ where gradebook0_.GRADEBOOK_UID=?
Hibernate: select grademappi0_.ID as ID23_3_, grademappi0_.VERSION as VERSION23_3_, grademappi0_.GRADEBOOK_ID as GRADEBOOK4_23_3_, grademappi0_.GB_GRADING_SCALE_T as GB5_23_3_, grademappi0_.OBJECT_TYPE_ID as OBJECT2_23_3_, gradebook1_.ID as ID15_0_, gradebook1_.VERSION as VERSION15_0_, gradebook1_.GRADEBOOK_UID as GRADEBOOK3_15_0_, gradebook1_.NAME as NAME15_0_, gradebook1_.SELECTED_GRADE_MAPPING_ID as SELECTED5_15_0_, gradebook1_.ASSIGNMENTS_DISPLAYED as ASSIGNME6_15_0_, gradebook1_.COURSE_GRADE_DISPLAYED as COURSE7_15_0_, gradebook1_.COURSE_POINTS_DISPLAYED as COURSE8_15_0_, gradebook1_.TOTAL_POINTS_DISPLAYED as TOTAL9_15_0_, gradebook1_.COURSE_AVERAGE_DISPLAYED as COURSE10_15_0_, gradebook1_.ALL_ASSIGNMENTS_ENTERED as ALL11_15_0_, gradebook1_.LOCKED as LOCKED15_0_, gradebook1_.GRADE_TYPE as GRADE13_15_0_, gradebook1_.CATEGORY_TYPE as CATEGORY14_15_0_, gradebook1_.IS_EQUAL_WEIGHT_CATS as IS15_15_0_, gradebook1_.IS_SCALED_EXTRA_CREDIT as IS16_15_0_, gradebook1_.DO_SHOW_MEAN as DO17_15_0_, gradebook1_.DO_SHOW_MEDIAN as DO18_15_0_, gradebook1_.DO_SHOW_MODE as DO19_15_0_, gradebook1_.DO_SHOW_RANK as DO20_15_0_, gradebook1_.DO_SHOW_ITEM_STATS as DO21_15_0_, gradebook1_.DO_SHOW_STATISTICS_CHART as DO22_15_0_, gradebook1_.COURSE_LETTER_GRADE_DISPLAYED as COURSE23_15_0_, grademappi2_.ID as ID23_1_, grademappi2_.VERSION as VERSION23_1_, grademappi2_.GRADEBOOK_ID as GRADEBOOK4_23_1_, grademappi2_.GB_GRADING_SCALE_T as GB5_23_1_, grademappi2_.OBJECT_TYPE_ID as OBJECT2_23_1_, gradingsca3_.ID as ID19_2_, gradingsca3_.VERSION as VERSION19_2_, gradingsca3_.SCALE_UID as SCALE4_19_2_, gradingsca3_.NAME as NAME19_2_, gradingsca3_.UNAVAILABLE as UNAVAILA6_19_2_ from GB_GRADE_MAP_T grademappi0_ inner join GB_GRADEBOOK_T gradebook1_ on grademappi0_.GRADEBOOK_ID=gradebook1_.ID left outer join GB_GRADE_MAP_T grademappi2_ on gradebook1_.SELECTED_GRADE_MAPPING_ID=grademappi2_.ID left outer join GB_GRADING_SCALE_T gradingsca3_ on grademappi0_.GB_GRADING_SCALE_T=gradingsca3_.ID where grademappi0_.ID=?
Hibernate: select defaultbot0_.GRADING_SCALE_ID as GRADING1_19_0_, defaultbot0_.PERCENT as PERCENT0_, defaultbot0_.LETTER_GRADE as LETTER3_0_ from GB_GRADING_SCALE_PERCENTS_T defaultbot0_ where defaultbot0_.GRADING_SCALE_ID=?
Hibernate: select grades0_.GRADING_SCALE_ID as GRADING1_19_0_, grades0_.LETTER_GRADE as LETTER2_0_, grades0_.GRADE_IDX as GRADE3_0_ from GB_GRADING_SCALE_GRADES_T grades0_ where grades0_.GRADING_SCALE_ID=?
Hibernate: select grademap0_.GRADE_MAP_ID as GRADE1_23_0_, grademap0_.PERCENT as PERCENT0_, grademap0_.LETTER_GRADE as LETTER3_0_ from GB_GRADE_TO_PERCENT_MAPPING_T grademap0_ where grademap0_.GRADE_MAP_ID=?
Hibernate: select assignment0_.ID as ID16_, assignment0_.VERSION as VERSION16_, assignment0_.GRADEBOOK_ID as GRADEBOOK4_16_, assignment0_.NAME as NAME16_, assignment0_.REMOVED as REMOVED16_, assignment0_.SORT_ORDER as SORT7_16_, assignment0_.CATEGORIZED_SORT_ORDER as CATEGORI8_16_, assignment0_.POINTS_POSSIBLE as POINTS9_16_, assignment0_.DUE_DATE as DUE10_16_, assignment0_.NOT_COUNTED as NOT11_16_, assignment0_.EXTERNALLY_MAINTAINED as EXTERNALLY12_16_, assignment0_.EXTERNAL_STUDENT_LINK as EXTERNAL13_16_, assignment0_.EXTERNAL_INSTRUCTOR_LINK as EXTERNAL14_16_, assignment0_.EXTERNAL_ID as EXTERNAL15_16_, assignment0_.EXTERNAL_APP_NAME as EXTERNAL16_16_, assignment0_.IS_EXTRA_CREDIT as IS17_16_, assignment0_.ASSIGNMENT_WEIGHTING as ASSIGNMENT18_16_, assignment0_.RELEASED as RELEASED16_, assignment0_.CATEGORY_ID as CATEGORY20_16_, assignment0_.UNGRADED as UNGRADED16_, assignment0_.IS_NULL_ZERO as IS22_16_, assignment0_.HIDE_IN_ALL_GRADES_TABLE as HIDE23_16_ from GB_GRADABLE_OBJECT_T assignment0_ where assignment0_.OBJECT_TYPE_ID=1 and assignment0_.GRADEBOOK_ID=? and assignment0_.REMOVED=0

And then getGradingEvents:
Hibernate: select gradingeve0_.ID as ID18_, gradingeve0_.GRADABLE_OBJECT_ID as GRADABLE2_18_, gradingeve0_.GRADER_ID as GRADER3_18_, gradingeve0_.STUDENT_ID as STUDENT4_18_, gradingeve0_.DATE_GRADED as DATE5_18_, gradingeve0_.GRADE as GRADE18_ from GB_GRADING_EVENT_T gradingeve0_ where gradingeve0_.DATE_GRADED>=? and (gradingeve0_.GRADABLE_OBJECT_ID in (? , ? , ? , ?))
Hibernate: select gradableob0_.ID as ID16_4_, gradableob0_.VERSION as VERSION16_4_, gradableob0_.GRADEBOOK_ID as GRADEBOOK4_16_4_, gradableob0_.NAME as NAME16_4_, gradableob0_.REMOVED as REMOVED16_4_, gradableob0_.SORT_ORDER as SORT7_16_4_, gradableob0_.CATEGORIZED_SORT_ORDER as CATEGORI8_16_4_, gradableob0_.POINTS_POSSIBLE as POINTS9_16_4_, gradableob0_.DUE_DATE as DUE10_16_4_, gradableob0_.NOT_COUNTED as NOT11_16_4_, gradableob0_.EXTERNALLY_MAINTAINED as EXTERNALLY12_16_4_, gradableob0_.EXTERNAL_STUDENT_LINK as EXTERNAL13_16_4_, gradableob0_.EXTERNAL_INSTRUCTOR_LINK as EXTERNAL14_16_4_, gradableob0_.EXTERNAL_ID as EXTERNAL15_16_4_, gradableob0_.EXTERNAL_APP_NAME as EXTERNAL16_16_4_, gradableob0_.IS_EXTRA_CREDIT as IS17_16_4_, gradableob0_.ASSIGNMENT_WEIGHTING as ASSIGNMENT18_16_4_, gradableob0_.RELEASED as RELEASED16_4_, gradableob0_.CATEGORY_ID as CATEGORY20_16_4_, gradableob0_.UNGRADED as UNGRADED16_4_, gradableob0_.IS_NULL_ZERO as IS22_16_4_, gradableob0_.HIDE_IN_ALL_GRADES_TABLE as HIDE23_16_4_, gradableob0_.OBJECT_TYPE_ID as OBJECT2_16_4_, gradebook1_.ID as ID15_0_, gradebook1_.VERSION as VERSION15_0_, gradebook1_.GRADEBOOK_UID as GRADEBOOK3_15_0_, gradebook1_.NAME as NAME15_0_, gradebook1_.SELECTED_GRADE_MAPPING_ID as SELECTED5_15_0_, gradebook1_.ASSIGNMENTS_DISPLAYED as ASSIGNME6_15_0_, gradebook1_.COURSE_GRADE_DISPLAYED as COURSE7_15_0_, gradebook1_.COURSE_POINTS_DISPLAYED as COURSE8_15_0_, gradebook1_.TOTAL_POINTS_DISPLAYED as TOTAL9_15_0_, gradebook1_.COURSE_AVERAGE_DISPLAYED as COURSE10_15_0_, gradebook1_.ALL_ASSIGNMENTS_ENTERED as ALL11_15_0_, gradebook1_.LOCKED as LOCKED15_0_, gradebook1_.GRADE_TYPE as GRADE13_15_0_, gradebook1_.CATEGORY_TYPE as CATEGORY14_15_0_, gradebook1_.IS_EQUAL_WEIGHT_CATS as IS15_15_0_, gradebook1_.IS_SCALED_EXTRA_CREDIT as IS16_15_0_, gradebook1_.DO_SHOW_MEAN as DO17_15_0_, gradebook1_.DO_SHOW_MEDIAN as DO18_15_0_, gradebook1_.DO_SHOW_MODE as DO19_15_0_, gradebook1_.DO_SHOW_RANK as DO20_15_0_, gradebook1_.DO_SHOW_ITEM_STATS as DO21_15_0_, gradebook1_.DO_SHOW_STATISTICS_CHART as DO22_15_0_, gradebook1_.COURSE_LETTER_GRADE_DISPLAYED as COURSE23_15_0_, grademappi2_.ID as ID23_1_, grademappi2_.VERSION as VERSION23_1_, grademappi2_.GRADEBOOK_ID as GRADEBOOK4_23_1_, grademappi2_.GB_GRADING_SCALE_T as GB5_23_1_, grademappi2_.OBJECT_TYPE_ID as OBJECT2_23_1_, category3_.ID as ID27_2_, category3_.VERSION as VERSION27_2_, category3_.GRADEBOOK_ID as GRADEBOOK3_27_2_, category3_.NAME as NAME27_2_, category3_.WEIGHT as WEIGHT27_2_, category3_.DROP_LOWEST as DROP6_27_2_, category3_.REMOVED as REMOVED27_2_, category3_.IS_EXTRA_CREDIT as IS8_27_2_, category3_.IS_EQUAL_WEIGHT_ASSNS as IS9_27_2_, category3_.IS_UNWEIGHTED as IS10_27_2_, category3_.CATEGORY_ORDER as CATEGORY11_27_2_, category3_.ENFORCE_POINT_WEIGHTING as ENFORCE12_27_2_, category3_.DROP_HIGHEST as DROP13_27_2_, category3_.KEEP_HIGHEST as KEEP14_27_2_, gradebook4_.ID as ID15_3_, gradebook4_.VERSION as VERSION15_3_, gradebook4_.GRADEBOOK_UID as GRADEBOOK3_15_3_, gradebook4_.NAME as NAME15_3_, gradebook4_.SELECTED_GRADE_MAPPING_ID as SELECTED5_15_3_, gradebook4_.ASSIGNMENTS_DISPLAYED as ASSIGNME6_15_3_, gradebook4_.COURSE_GRADE_DISPLAYED as COURSE7_15_3_, gradebook4_.COURSE_POINTS_DISPLAYED as COURSE8_15_3_, gradebook4_.TOTAL_POINTS_DISPLAYED as TOTAL9_15_3_, gradebook4_.COURSE_AVERAGE_DISPLAYED as COURSE10_15_3_, gradebook4_.ALL_ASSIGNMENTS_ENTERED as ALL11_15_3_, gradebook4_.LOCKED as LOCKED15_3_, gradebook4_.GRADE_TYPE as GRADE13_15_3_, gradebook4_.CATEGORY_TYPE as CATEGORY14_15_3_, gradebook4_.IS_EQUAL_WEIGHT_CATS as IS15_15_3_, gradebook4_.IS_SCALED_EXTRA_CREDIT as IS16_15_3_, gradebook4_.DO_SHOW_MEAN as DO17_15_3_, gradebook4_.DO_SHOW_MEDIAN as DO18_15_3_, gradebook4_.DO_SHOW_MODE as DO19_15_3_, gradebook4_.DO_SHOW_RANK as DO20_15_3_, gradebook4_.DO_SHOW_ITEM_STATS as DO21_15_3_, gradebook4_.DO_SHOW_STATISTICS_CHART as DO22_15_3_, gradebook4_.COURSE_LETTER_GRADE_DISPLAYED as COURSE23_15_3_ from GB_GRADABLE_OBJECT_T gradableob0_ inner join GB_GRADEBOOK_T gradebook1_ on gradableob0_.GRADEBOOK_ID=gradebook1_.ID left outer join GB_GRADE_MAP_T grademappi2_ on gradebook1_.SELECTED_GRADE_MAPPING_ID=grademappi2_.ID left outer join GB_CATEGORY_T category3_ on gradableob0_.CATEGORY_ID=category3_.ID left outer join GB_GRADEBOOK_T gradebook4_ on category3_.GRADEBOOK_ID=gradebook4_.ID where gradableob0_.ID=?
Hibernate: select gradingsca0_.ID as ID19_0_, gradingsca0_.VERSION as VERSION19_0_, gradingsca0_.SCALE_UID as SCALE4_19_0_, gradingsca0_.NAME as NAME19_0_, gradingsca0_.UNAVAILABLE as UNAVAILA6_19_0_ from GB_GRADING_SCALE_T gradingsca0_ where gradingsca0_.ID=?
Hibernate: select grademap0_.GRADE_MAP_ID as GRADE1_23_0_, grademap0_.PERCENT as PERCENT0_, grademap0_.LETTER_GRADE as LETTER3_0_ from GB_GRADE_TO_PERCENT_MAPPING_T grademap0_ where grademap0_.GRADE_MAP_ID=?
Hibernate: select defaultbot0_.GRADING_SCALE_ID as GRADING1_19_0_, defaultbot0_.PERCENT as PERCENT0_, defaultbot0_.LETTER_GRADE as LETTER3_0_ from GB_GRADING_SCALE_PERCENTS_T defaultbot0_ where defaultbot0_.GRADING_SCALE_ID=?
Hibernate: select grades0_.GRADING_SCALE_ID as GRADING1_19_0_, grades0_.LETTER_GRADE as LETTER2_0_, grades0_.GRADE_IDX as GRADE3_0_ from GB_GRADING_SCALE_GRADES_T grades0_ where grades0_.GRADING_SCALE_ID=?

It looks like, correctly, there is only one query against the GB_GRADING_EVENT_T table without any inline joins - hurray!  However, hibernate proceeds to expand the gradable_object, which isn't required for this particular workflow.  Is there are way we can avoid that?
I'm sure we could create some our own SQL query to avoid hitting the getAssignments etc, but that would need to bypass Hibernate and it's expensive magic.
And you're right, we'd need to add some indexes to the GB_GRADING_EVENT_T table to ensure it doesn't chug, currently there's only indexes on the id and foreign key (gradable_object_id).

OK those first 5 are from the call to getGradebook as a result of the getAssignments call. I am wondering if we can cache the gradebook object, or whether its worthwhile. If we did then we could save a heap of DB hits, just wondering if its worth the complexity.
How about we raise a separate ticket to improve the performance of getGradebookEvents without expanding the rest of the data (I think if we use plain HQL it would work) and we can look at it later.
I checked the explain plan and it's using the index 💛

If this is good to go I can merge it, was there anything else to add?

I've just updated the userCache attribute and this should be right go.  Thanks @steveswinsburg 🍻

Ok, here we go!


NPM version requires ^3.0.0

Description
This library requires the carat (^) of npm for 3.0.0 -> ^3.0.0
this causes issues for any packages consuming this library that require newer versions of npm because the ^ indicates that the left-most (major) version cannot be increased.
is there any reason we can't remove this restriction? or do newer versions of npm break this library?

details on the caret operator -> https://docs.npmjs.com/misc/semver#caret-ranges-123-025-004

have the same question, too.

@SKOLZ
On my dev, sure, I can do that.
But some CI/CD process are untouchable.

haha yes @rzfang I don't know how to make it work with a CI/CD without creating a PR to this lib to remove this kind of dependency. I used it and had to do that manually while developing and although I know it's a really horrible way to bypass the issue that's what worked for me. sorry for not being helpful enough :(

thanks @mcallegari10

@SKOLZ no worry. You gave a useful information. Thanks.
And thanks @mcallegari10, too.

Issue still persist even after 2 years.
 Unsupported engine for<EMAIL_ADDRESS>wanted: {"npm":"^3.0.0"} (current: {"node":"14.16.1","npm":"6.14.12"})

Same here!

same problem here:
npm WARN notsup Unsupported engine for<EMAIL_ADDRESS>wanted: {"npm":"^3.0.0"} (current: {"node":"14.15.2","npm":"6.14.9"})
npm WARN notsup Not compatible with your version of node/npm<EMAIL_ADDRESS>

hi pro, i have a same problem. do you have any idea to solve it, please?

npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package<EMAIL_ADDRESS>npm WARN EBADENGINE   required: { npm: '^3.0.0' },
npm WARN EBADENGINE   current: { node: 'v16.9.1', npm: '7.24.0' }
npm WARN EBADENGINE }

The same error

How about using react-lottie-player?

I had this issue when deploying to heroku, so using this in my package.json worked

  "engines": {
    "npm": "6.x",
    "node": "14.x"
  }

Unsupported engine {
package<EMAIL_ADDRESS>required: { npm: '^3.0.0' },
current: { node: 'v16.13.0', npm: '8.1.0' }
}

@chenqingspring Update this or deprecate the package.

Almost 4 years and this is still not updated.
I managed to fix but I also had to change the peerDependencies.
And then I was able to deploy it.
"node_modules/react-lottie": {       "version": "1.2.3",       "resolved": "https://registry.npmjs.org/react-lottie/-/react-lottie-1.2.3.tgz",       "integrity": "sha512-qLCERxUr8M+4mm1LU0Ruxw5Y5Fn/OmYkGfnA+JDM/dZb3oKwVAJCjwnjkj9TMHtzR2U6sMEUD3ZZ1RaHagM7kA==",       "dependencies": {         "babel-runtime": "^6.26.0",         "lottie-web": "^5.1.3"       },       **"engines": {         "npm": "6.x",         "node": "14.x"**       **},       "peerDependencies": {         "react": "*"       }**     },

To everyone who is complaining about the npm version issue,
Copy the src/index.js file and uninstall this package.
Thanks.

To fix this, you can just use this fork:
npm uninstall react-lottie
npm install Amelixx/react-lottie


Cannot disconnect properly

There's a bug when someone disconnects bot from server, the bot will keep playing without stopping. I will fix it soon!

There's a bug when someone disconnects bot from server, the bot will keep playing without stopping. I will fix it soon!


[BUG] dark mode dropdown issues

Description
added this package and was expecting dark mode to work out of the box. But as you can see the options are not visible. Any idea how i can style the options background manually? Can't seem to select it using inspect element

chakra-react-select Version
4.0.0
Link to Reproduction
No response
TypeScript?

[ ] Yes I use TypeScript

Steps to reproduce

Go to '...'
Click on '...'
Scroll down to '...'
See error

Operating System

[ ] macOS
[ ] Windows
[ ] Linux
[ ] iOS/iPadOS
[ ] Android

Additional Information
No response

I tested this out and I'm not seeing anything causing this.  See here for a working example: https://codesandbox.io/s/chakra-react-select-demo-65ohb?file=/package.json
I'd need a reproduction to figure out what's causing this.

The only thing I would think might be causing this would be that you have modified colors in your chakra theme. If you have any theme customizations, can you post them?

I am also facing this issue, happy to share my usage! I'll link the relevant pieces of information, please let me know if there is anything else you might need.
Here is my theme config
This is the component I am working on (pushed early so I can showcase what's happening). I set menuIsOpen so I can inspect it, @lanbau that should help you out debugging since you said you can't select it to inspect it.
chakra-react-select Version
4.0.0
TypeScript?

[x]  Yes I use TypeScript

Operating System

[x]  macOS
[ ]  Windows
[ ]  Linux
[ ]  iOS/iPadOS
[ ]  Android

Hi, I am also facing this issue, I think it might be the css. I've noticed that in the demo you provided @csandman
The button has --chakra-colors-whiteAlpha-300

This is what I imported in my project, it uses --chakra-colors-gray-100

This is my theme config file, I just enabled dark mode https://gist.github.com/edulanasca/71679919953fcb4cee88506393ab62f4
Hope this can help

Another update, a friend of mine tried on a windows machine on a Firefox browser and it was working:

i overcame it with a hack...
import type { ChakraStylesConfig } from "chakra-react-select";

const chakraStyles: ChakraStylesConfig = {
    dropdownIndicator: (provided, state) => ({
      ...provided,
      background: state.isFocused ? "blue.100" : "002C5C",
      p: 0,
      w: "40px",
    }),
    option: (provided, state) => ({
      ...provided,
      background: "#002C5C",
    }),
  };

<Select<any>
                  {...field}
                  chakraStyles={chakraStyles}
                  isMulti
                  options={options}
                  placeholder="Select countries"
                  closeMenuOnSelect={false}
                />

I can see that multiple people are having this issue so I believe that there is some common thread that's causing it, but for some reason I still can't seem to make the issue happen.
I think the biggest clue is the comment from @edulanasca about how the styling is using gray.100 instead of whiteAlpha.300 on his local version.  This confuses me however, specifically because I'm not setting that value manually.  It is coming directly from the theme styles for the addon component from the Input's multi-part component theme.
The same goes for the dropdown part, which is using the theme styles from list component from the Menu's theme. So if it's happening for this, I'd think it would also be happening for the normal menu component/input addon component? It would be good to know if anyone could confirm that.
Besides that, it would also be very helpful to know what specific package versions of chakra, emotion, etc. that people are on so I can try and reproduce this more easily.  I'll continue trying to reproduce this in the meantime.

I just tested your develop branch on my machine (M1 MacBook Air, with Chrome) and it appears to be working correctly for me

Super strange! If I come across anything that helps resolve this issue I can update the thread here, otherwise I'm okay keeping the manual styling I've added for now.
Also, thanks!! It's a long ways away until a release, but I'm glad you liked it and that you got it up and running! I was a little worried people would have issues after helping my friend get it running on windows 😅

Good to know!  If anyone else is running into this issue after updating everything, try doing a clean install.

Yup, it's working now, I forgot to mention I'm on Windows, with Chrome. Thanks @csandman

@edulanasca glad to hear it!
And @aaronleopold I realized that this might be an issue because I noticed in your package.json in your main branch you had these dependency versions:
"@chakra-ui/react": "^1.8.8",
"chakra-react-select": "^4.0.0",
"react": "^18.1.0",
"react-dom": "^18.1.0",

So there's a fair chance you ended up with your main dependencies while on your development branch.

I'm going to convert this to a discussion so I can highlight the answer


add pipx as installation method #677

pipx is a new project similar to pipsi, but with more features and actively maintained

Hi @cs01. The commit subject is misleading. It's about replacing pipsi with pipx.
Also, pipx is registered for another project on PyPI : https://pypi.org/project/pipx/
Welcome to piphell ;-)

Anyway, your pipx looks nice !

pipx is registered for another project on PyPI

I'm aware. We've had a lot of discussion about this in https://github.com/cs01/pipx/issues/2. This pipx can be installed from PyPI with pipx-app.

Thanks!


Rkyv: Failed compilation on s390x and armv7hl

error[E0412]: cannot find type AtomicI16_be in this scope
--> src/impls/rend.rs:91:19
|
91 | impl_rend_atomic!(AtomicI16_be, i16_be);
|                   ^^^^^^^^^^^^ not found in this scope
Rkyv is not compilable on version 0.7.26 on these architecture. Was working in 0.7.24
https://kojipkgs.fedoraproject.org//work/tasks/2272/79802272/build.log
https://kojipkgs.fedoraproject.org//work/tasks/2277/79802277/build.log

Thanks for the bug report. rkyv recently expanded atomics support to more platforms, which appears to be the source of this issue. It looks like the specific platform is armv7h1, is that correct?

Yes, with s390x also.

I was able to reproduce this issue. It looks like rkyv does specify its rend dependency strictly enough since atomics support was expanded to more platforms. This is fixed in the following commits:

https://github.com/rkyv/rkyv/commit/7f8506ee0c5fee3f650710bfbcec357c388331a6
https://github.com/rkyv/rend/commit/ceb0ab1243469bf99c290b4a318984fe10e03676

rend has been updated to v0.3.6 and rkyv will require it as of the next release (v0.7.27),


Docker app build

- What I did
Introduce support for "build" in docker app relying on buildx
- How I did it
Mostly by vendoring buildx bake command.
bundle command has been removed as obsolete
push command has been updated
- How to verify it
includes a dedicated e2e test
- Description for the changelog
Introduce docker app build command
- A picture of a cute animal (not mandatory but encouraged)

Please sign your commits following these rules:
https://github.com/moby/moby/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "build" git@github.com:ndeloof/app.git somewhere
$ cd somewhere
$ git rebase -i HEAD~842353997936
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.


not clear about the  parameter  --rescale_size  nshift，could you please give an example ?

Thanks for your wonderful tools ~
I am confused about the parameter --rescale_size and the nshift , even I read the paper Coolpup.py – a versatile tool to perform pile-up analysis of Hi-C data. could you please give some example ?

Hello, and thank you for your interest in coolpuppy!
--rescale_size is used for rescaled pileups, e.g. when you are averaging features of different sizes, but want their edges to align. For example, for averaging TADs. This parameter defines the final size of rescaled features, e.g. 99 will rescale all features to 99×99 squares, and the output will be 99×99 pixels.
--nshifts determines how many random shifts are used for estimation of background level of interactions. I usually just use --expected instead, since it's faster and results are the same, but in some cases (e.g. single cell analysis) you need to use random shifts.
Please let me know whether this helps!

I'll close this, feel free to reopen if still anything is unclear.

Sorry, it's too late to reply.Thank you very much for your reply, it makes sense to me.
Ruby
At 2019-12-20 22:36:00, "Ilya Flyamer"<EMAIL_ADDRESS>wrote:
I'll close this, feel free to reopen if still anything is unclear.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


Add languages and samples browser links to "What's new in .NET" landing page

Add languages and samples browser links to "What's new in .NET" landing page

Closed by #20685


kernel_require.rb:133:in `require': cannot load such file -- colored2 (LoadError)

New Issue Checklist

[X] Updated fastlane to the latest version
[X] I have read the Contribution Guidelines

Issue Description
When ever I run any fastlane command I get a stack trace. This just started when I upgraded yesterday to fastlane 2-14
Complete output when running fastlane, including the stack trace and command used

You can use: --capture_output as the last commandline argument to get that collected for you

 /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:133:in` `require': cannot load such file -- colored2 (LoadError)
	from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:133:in `rescue in require'
	from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:40:in `require'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.14.1/fastlane_core/lib/fastlane_core/helper.rb:2:in `'
	from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:68:in `require'
	from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:68:in `require'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.14.1/fastlane_core/lib/fastlane_core.rb:10:in `'
	from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:68:in `require'
	from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:68:in `require'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.14.1/fastlane/lib/fastlane.rb:1:in `'
	from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:68:in `require'
	from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:68:in `require'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.14.1/fastlane/lib/fastlane/cli_tools_distributor.rb:14:in `take_off'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.14.1/bin/fastlane:15:in `'
	from /usr/local/bin/fastlane:22:in `load'
	from /usr/local/bin/fastlane:22:in `'

Environment
Please run fastlane env and copy the output below. This will help us help you :+1:
If you used --capture_output option please remove this block - as it is already included there.
Can't, get the stack trace from above. I'm running fastlane-2.14.1,

I've got the same error

As noted above, when I run 'fastlane env', I also get the exception message.

fastlane env
/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:133:in `require': cannot load such file -- colored2 (LoadError)
	from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:133:in `rescue in require'
	from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:40:in `require'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.14.1/fastlane_core/lib/fastlane_core/helper.rb:2:in `'
	from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:68:in `require'
	from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:68:in `require'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.14.1/fastlane_core/lib/fastlane_core.rb:10:in `'
	from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:68:in `require'
	from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:68:in `require'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.14.1/fastlane/lib/fastlane.rb:1:in `'
	from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:68:in `require'
	from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:68:in `require'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.14.1/fastlane/lib/fastlane/cli_tools_distributor.rb:14:in `take_off'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.14.1/bin/fastlane:15:in `'
	from /usr/local/bin/fastlane:22:in `load'
	from /usr/local/bin/fastlane:22:in `'

Probably gem install colored2 fix problem but I'm going to test it ASAP

No it doesn't help. I have the same issue

Can't reproduce with fastlane 2.13.0

sudo gem uninstall fastlane
sudo gem install fastlane -v 2.12
This is solution for now

With 2.13 I still have crash

Unfortunately I'm using a deploy task from visual studio team services which install the lastest version of fastlane (ie 2.14.1). I've no hand on it ;(

@isigui @mike011 Please could you try running gem uninstall colored2 (if this prompts for a version to uninstall, select all), then run gem install colored2 --version 3.1.1?

Hello @DanToml , Just tried what you propose. I uninstall colored2 (it was already version 3.1.1) and reinstall colored 2 version 3.1.1.
Still have the same issue.

Thx @KrauseFx 👍

Hey everyone, really sorry about this, just added a PR that reverts the change https://github.com/fastlane/fastlane/pull/8117

@KrauseFx Hey man, I am the author of colored2 — I am really surprised about this issue, and would love to help. I'll see if I can reproduce this problem on my system. Any suggestions on how to repro are much appreciated. Thanks!

gem install fastlane -v 2.12
thats the perfect solution

Hey @kigster, sorry for the late reply - I can't read all GitHub notifications, so it's easy to miss some sometimes. When rolling out colored2 everything worked perfectly on our machines, however we've got multiple issues being submitted with all kinds of weird error messages. We had to quickly rollback the change to do some damage control.
It seems like lots of setups are very different (maybe different platforms, shell environments, ...), I don't know, but for us it's too risky to try to roll this out again, we'll have to stay with colored for now.
@samratBasra Please don't do that, we've already rolled out a patch a while ago, please update to the most recent release, which also fixes that problem, just update using fastlane update_fastlane

@KrauseFx Do what you must, but the issue has been identified and fixed. It was a simple permissions issue that ONLY comes into the effect when ruby is installed as root.
For most folks that use rbenv or rvm and install ruby as the user that uses it, the issue was not even there.
But the permissions problem has been fixed in the last version of colored2.

Please note that version 3.1.1 has been yanked, and replaced with 3.1.2 that should work everywhere.

For most folks that use rbenv or rvm and install ruby as the user that uses it, the issue was not even there.

Most fastlane users use System Ruby as they're iOS and Android developers and often not familar with Ruby.
I'll close this issue for now, thanks everyone for helping on this

@KrauseFx, also i've seen with xcode tools if using not system Ruby.

Like I mentioned before the issue has been fixed.
Feel free to continue using original colored gem, but for those who prefer a more up to date version colored2 should no longer have any permissions issues, afaik.
Thanks!

I have also faced this issue on 2.35.1 version. But after using command sudo fastlane it's working fine.


A frequency option for sounds

Hello!
Little feature request: add an option to set the frequency of the sounds. I think the birds sounds from DynamicSurroundings for example are too rare, I love them.
I would love to see the birds sounds from the old mAtmos return they were so beautiful.
Lastly, I don't hear any wind sound in the forests (like in the old mAtmos), it would be nice to have those to improve immersion.

https://dynamicsurroundings.readthedocs.io/en/master/tutorials/config_files.html
The vast majority of the sounds in the mod are live recordings from various places around the world.  The Forest tracks do have a little bit of wind, but nothing that stands out as wind.  In biomes with the HILL attribute get additional wind - I think Minecraft's Birch Forest falls into this category.
Bird sounds and the like are considered "spot sounds" - sounds that have a chance of playing based on the player's current biome.  For example, the Loon can only be heard in biomes similar to Taiga, and the Raptors (bald eagle and red tailed hawk) won't be heard in swamps.


Can't download Windows Terminal

On clicking "Install Windows Terminal" button, page jumps to another page that says "Not Available for bots to index".
Happens on Chrome and Edge.
Thank you.
[Enter feedback here]

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

ID: ee133b07-2c89-7f9e-4ab4-dd682c21c37a
Version Independent ID: d7838521-160a-6b6e-6795-a8049f18ede6
Content: Windows Terminal installation
Content Source: TerminalDocs/install.md
Product: dev-environment
Technology: windows-terminal
GitHub Login: @cinnamon-msft
Microsoft Alias: cinnamon

Same here

Seems to have resolved. If the issue continues for you, please re-open. Apologies for the temporary error.


properties.offset not working in the newest version?

I had this problem too.  The offset MUST be a subdirectory of the root, or else the error_dir gets used instead.


"Plugin project :url_launcher_web not found. Please update settings.gradle" in dev/benchmarks/macrobenchmarks

The current version of dev/benchmarks/macrobenchmarks gives warning message when compiling.
Plugin project :url_launcher_web not found. Please update settings.gradle.

The settings.gradle is no difference with what we can get from flutter create.

cc @liyuqian @yjbanov

possible solution
related to https://github.com/flutter/flutter/issues/46304

The problem is no longer there.


Meeting habits Questions + Roadmap

Hello all,
From the document, I can see that myanalytics shows only the total number of meetings you organized or accepted to attend, but what about if the meeting was organized by another user (assistance) on behalf of me, would it count? as at the moment it doesn't.
My second question, I couldn't find any details if you are willing in the future to let customers manager myanalytics and customize the data inside, is there any information on that?
Thanks all!

@AhmedBar93 - You're correct, MyAnalytics does not currently include events created and accepted on your behalf by your assistant in your MyAnalytics data. I'll pass this idea to the team to consider as a setting/feature enhancement for a future release.
About your second question, can you give me an example? Are you asking if a manager can customize the data for their direct reports? Or who would customize what MyAnalytics data for an individual? MyAnalytics is designed to only be seen by an individual about their personal, private data, which is for their eyes only. So how could it be customized and kept private?
Thanks for your feedback!

Hello Michele,
Thank you so much for the prompt response!
About my second questions, I totally agree that in order to keep the data private no should have access to view them, if I may explain my question was whether the IT admins can customize the data and change the shown reports, let's say for example if the management sees that they want to add other statics for the management team which are not shown in the collaboration section, I know it doesn't sound logical to add something there out of the blue, but my question, at the moment is there any plan to let the IT admins manage the data and add other statics other then one shown.
Thank you again and sorry if my question sounds silly to you.

@AhmedBar93  - It's a great question, not silly at all. Ok, I understand. No, there's nothing currently available for IT Admins to add or customize. However, your analysts or managers can use Workplace Analytics Teamwork plans, such as for Focus or Collaboration goals, for a specific team, which adds a custom section for tracking those specific goals in an individual's MyAnalytics data.  What type of statistics does your company want to add? And I'll pass your feedback to the team to consider for future releases. Thanks again for your questions and feedback!

Hello Michele,
Thank you for your response and sorry for the late reply!
I am completely satisfied with the information you provided! Thank you so much
Enjoy the weekend and I wish you a pleasant week ahead!