worker: 3.15.0 -> 3.15.1

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/worker/versions.
These checks were done:

built on NixOS
/nix/store/m3af3zhrxravdkwq8fcsgqrqyywfbl20-worker-3.15.1/bin/worker passed the binary check.
1 of 1 passed binary check by having a zero exit code.
0 of 1 passed binary check by having the new version present in output.
found 3.15.1 with grep in /nix/store/m3af3zhrxravdkwq8fcsgqrqyywfbl20-worker-3.15.1
directory tree listing: https://gist.github.com/25a3c6e8ffd32fd4b88511e305669c51
du listing: https://gist.github.com/6f5f0c3dfcb21b2d414fafa466d13283

meta.description for worker is: '"A two-pane file manager with advanced file manipulation features"'.
cc @ndowens for testing.

Success on aarch64-linux (full log)
Attempted: worker
Partial log (click to expand)
/nix/store/vzwypzdzjkqx7x55g22x816ngdm98zk0-worker-3.15.1/share/worker/scripts/xeditor: interpreter directive changed from " /bin/bash" to "/nix/store/l4w7xwjy2nmk31fl5kgyy7gg8z7l9n8z-bash-4.4-p19/bin/bash"
/nix/store/vzwypzdzjkqx7x55g22x816ngdm98zk0-worker-3.15.1/share/worker/scripts/git_modified_files.sh: interpreter directive changed from " /bin/sh" to "/nix/store/l4w7xwjy2nmk31fl5kgyy7gg8z7l9n8z-bash-4.4-p19/bin/sh"
/nix/store/vzwypzdzjkqx7x55g22x816ngdm98zk0-worker-3.15.1/share/worker/scripts/cd2wav.sh: interpreter directive changed from " /bin/bash" to "/nix/store/l4w7xwjy2nmk31fl5kgyy7gg8z7l9n8z-bash-4.4-p19/bin/bash"
/nix/store/vzwypzdzjkqx7x55g22x816ngdm98zk0-worker-3.15.1/share/worker/scripts/cd2ogg.sh: interpreter directive changed from " /bin/bash" to "/nix/store/l4w7xwjy2nmk31fl5kgyy7gg8z7l9n8z-bash-4.4-p19/bin/bash"
/nix/store/vzwypzdzjkqx7x55g22x816ngdm98zk0-worker-3.15.1/share/worker/scripts/cd2mp3.sh: interpreter directive changed from " /bin/bash" to "/nix/store/l4w7xwjy2nmk31fl5kgyy7gg8z7l9n8z-bash-4.4-p19/bin/bash"
/nix/store/vzwypzdzjkqx7x55g22x816ngdm98zk0-worker-3.15.1/share/worker/scripts/cd2flac.sh: interpreter directive changed from " /bin/bash" to "/nix/store/l4w7xwjy2nmk31fl5kgyy7gg8z7l9n8z-bash-4.4-p19/bin/bash"
/nix/store/vzwypzdzjkqx7x55g22x816ngdm98zk0-worker-3.15.1/share/worker/scripts/aa.pattern_rename.sh: interpreter directive changed from "/bin/bash" to "/nix/store/l4w7xwjy2nmk31fl5kgyy7gg8z7l9n8z-bash-4.4-p19/bin/bash"
/nix/store/vzwypzdzjkqx7x55g22x816ngdm98zk0-worker-3.15.1/share/worker/scripts/displaywrapper_worker: interpreter directive changed from " /bin/sh" to "/nix/store/l4w7xwjy2nmk31fl5kgyy7gg8z7l9n8z-bash-4.4-p19/bin/sh"
checking for references to /build in /nix/store/vzwypzdzjkqx7x55g22x816ngdm98zk0-worker-3.15.1...
/nix/store/vzwypzdzjkqx7x55g22x816ngdm98zk0-worker-3.15.1


Update demos latest release

CC @mhatle
update demos (open-amp.inc) so that -shared demos are included in builds

ping for review @mhatle


Idea : display SVG

Hello,
I save svg images in git repo. It would be awesome to display them near the code, when viewing their source code.
For the moment, I can see them when clicking on the "raw" button, but I think this is not the right behaviour, as "raw" should display the raw svg code as text, and not as image.
Additionnal feature : when viewing diff of svg code, seeing both images with their code would be really nice.

Good point! But need time to work on it.
Do you have any idea how this been done on GitHub, or other websites?

Github made a blog post about it : https://github.com/blog/1902-svg-viewing-diffing linking to https://help.github.com/articles/rendering-and-diffing-images/
I am not asking for a such level of feature, but if you do, I'll be very glad !
I will be ok with just a 3rd button near "raw" and "history", maybe called "show image". On this "show image" page, .svg image would be shown the same way as .jpg or .png : embed raw "..." code in page

Great, thanks your info!

It would be nice, but keep in mind there are browsers which will not render svg native.

@xor-gate: Every single reasonably modern browser can display SVG natively: http://caniuse.com/#search=svg (this even includes)
--
While diffing, as @Mageti pointed out, would be great, an excellent first step is to simply display the images as-is.

Simply displaying SVG requires three things:

[ ] display inside the gogs view of the file
[ ] setting the mimetype for .svg and .svgz files (image/svg+xml)
[ ] inline displaying of svg files as images when referenced from markdown (https://github.com/gogits/gogs/issues/2636)

Note: As a point of reference, GitHub displays SVGs natively, instead of rendering to PNG. (This at least the case on Firefox — not sure if there is a PNG-based codepath for other browsers.)

GitHub has a double render/code view for SVG, but I'd be happy if they were only rendered in Gogs, there's always the Raw button to get to the source.

Markdown files use the raw format when an SVG. Like @garrett said, the Raw format should set the mime-type for SVG's to make them work as images in Markdown files as well.
@Mageti said that the Raw view previously showed the image. I cannot reproduce this behavior now. If the Raw SVG is wanted, you could use your browser's view-source feature to see the code from it's raw link.


Explicitly calling Exporter::import doesn't work

Explicitly calling Exporter::import doesn't work.  For example (from CGI::Carp):
Exporter::import($pkg,keys %routines);

Fixed in v1.027


Switching between advanced and general the map resets

It would be nice to not reset the map when switching because the user may have already selected a region

The key to fix this is to only have one view. Two modes.

done v0.0.31


Govee Smart Kettle H7173

Which model is this? Need the Hxxxx number.
H7173

Which type of device is this? Light, heater, leak sensor, etc.
Govee Smart Kettle

Which connection methods does this device have? Wifi? Bluetooth? LAN mode? All?
All

Anything else?
does not support this model

Full output from the plugin logs:
{
  "device": "21:65:60:74:F4:5E:5A:74",
  "deviceName": "Smart Kettle",
  "model": "H7173",
  "httpInfo": {
    "groupId": 0,
    "device": "21:65:60:74:F4:5E:5A:74",
    "sku": "H7173",
    "spec": "",
    "versionHard": "1.02.00",
    "versionSoft": "1.00.15",
    "deviceName": "Smart Kettle",
    "deviceExt": {
      "deviceSettings": "{\"wifiName\":\"2625VirginiaLane-PRO\",\"address\":\"60:74:F4:5E:5A:75\",\"bleName\":\"GVH71735A75\",\"topic\":\"GD/215761a2735a60fd5f0fef9e93eb090c\",\"wifiMac\":\"60:74:F4:5E:5A:74\",\"pactType\":1,\"pactCode\":1,\"wifiSoftVersion\":\"1.00.15\",\"wifiHardVersion\":\"1.02.00\",\"ic\":0,\"secretCode\":\"PpAWL+oKEFY=\",\"boilWaterExceptionNotiOnOff\":1,\"mcuSoftVersion\":\"1.00.10\",\"mcuHardVersion\":\"1.00.01\",\"boilWaterCompletedNotiOnOff\":1,\"completionNotiOnOff\":1,\"autoShutDownOnOff\":1,\"sku\":\"H7173\",\"device\":\"21:65:60:74:F4:5E:5A:74\",\"deviceName\":\"Smart Kettle\",\"versionHard\":\"1.02.00\",\"versionSoft\":\"1.00.15\",\"playState\":false}",
      "lastDeviceData": "{\"online\":false}",
      "extResources": "{\"skuUrl\":\"https://d1f2504ijhdyjw.cloudfront.net/sku-img/7ee4ef2469e8bfec6401ff933f80f10b-add_list_type_device_7173.png\",\"headOnImg\":\"\",\"headOffImg\":\"\",\"ext\":\"\",\"ic\":0}"
    },
    "pactType": 1,
    "pactCode": 1,
    "share": 0,
    "goodsType": 177,
    "attributesId": 0,
    "supportScene": 0
  }
}

Hi @adambomb1011 @seerocode @tradel
Apologies this github issue completely slipped me.
Some support for this model should be available in the beta version of the plugin.
The commands are based off other kettle models, so Im not sure how well it will work at this point.
Let me know how it goes!

Can confirm that the H7173 kettle appears to be working. I installed this plugin yesterday (for use with Home Assistant) and the kettle was correctly discovered. You could probably add it to the supported devices list.
Thanks for your work on this plugin!


Ensure namenode safemode check is performed on active ones and not only the first one

What changes were proposed in this pull request?
FsHistoryProvider of spark use an API to check if namenode is in safemode but only requesting the first namenode and then loop on this check.
This patch ensure namenode safemode check is performed on active namenodes and not only the first one
How was this patch tested?
Tested manually

Why are you making a PR against spark-cdh repo ?
De : Nicolas Fraison<EMAIL_ADDRESS>Envoyé : mercredi 19 octobre 2016 14:19
À : criteo-forks/spark-cdh<EMAIL_ADDRESS>Objet : [criteo-forks/spark-cdh] Ensure namenode safemode check is performed on active ones and not only the first one (#1)
What changes were proposed in this pull request?
FsHistoryProvider of spark use an API to check if namenode is in safemode but only requesting the first namenode and then loop on this check.
This patch ensure namenode safemode check is performed on active namenodes and not only the first one
How was this patch tested?
Tested manually

You can view, comment on, or merge this pull request online at:
https://github.com/criteo-forks/spark-cdh/pull/1
Commit Summary

Ensure namenode safemode check is performed on active ones and not only the first one

File Changes

M core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala https://github.com/criteo-forks/spark-cdh/pull/1/files#diff-0  (4)

Patch Links:

https://github.com/criteo-forks/spark-cdh/pull/1.patch
https://github.com/criteo-forks/spark-cdh/pull/1.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/criteo-forks/spark-cdh/pull/1 , or mute the thread https://github.com/notifications/unsubscribe-auth/ACHVEwdL9SNpFkhoMvy0jIwTqTZSUmRSks5q1grMgaJpZM4Ka5sa .  https://github.com/notifications/beacon/ACHVE7ep7s6KXKu7r7LX1W9UvtqDHhXTks5q1grMgaJpZM4Ka5sa.gif

Because the spark release deployed on our cluster is based on the cdh one and the history server is based on that release.
If it is validated I will then backport it to the criteo-1.6 and to the apache trunk

Checked in that adding the true 3rd argument ask setSafeMode to check the state of all active NN.  OK for me to merge :-)

+1


Allow fitting an intercept in Lasso.path()

It would be nice if Lasso.path() (celer_path()) could fit an intercept.

Hi @jolars ! The design of celer_path follows that of scikit-learn, in order to keep our Lasso class as simple as possible (we do not overwrite methods other than __init__ and path).
scikit-learn computes the intercept in the fit method, by centering X and y : https://github.com/scikit-learn/scikit-learn/blob/main/sklearn/linear_model/_coordinate_descent.py#L1008
then the intercept is computed after the coefficients have been computed : https://github.com/scikit-learn/scikit-learn/blob/main/sklearn/linear_model/_coordinate_descent.py#L1084
So I guess it would not be too complicated to wrap celer_path() in the same fashion

Indeed, it won't be difficult to implement such a feature in celer_path. Yet, since we expose the same API as scikit-learn, we better not do it so that to abide by their convention.
With that being said, here is a function that implements your requested feature
def custom_celer_path(X, y, **kwargs):
    X_cols_mean = X.mean(axis=0)
    y_mean = y.mean()

    X_cented = X - X_cols_mean
    y_cented = y - y_mean

    _, coefs, _ = celer_path(X_cented, y_cented, pb='lasso', return_n_iter=False,
                             return_thetas=False, **kwargs)
    intercepts = y_mean - coefs.T @ X_cols_mean

    return intercepts, coefs

One can show that solving a Lasso with intercept is the same as solving a problem with centered y and X (with regards to features) with the following link equation
\beta_0 = y_mean - \beta^T X_{centered}

Here is a little snippet to check/play with the function:
import numpy as np
from numpy.linalg import norm
from celer import celer_path, Lasso
from celer.datasets import make_correlated_data

# fix random state for reproducibility
random_state = 123
rnd = np.random.RandomState(random_state)

n_samples, n_features = 1000, 100
X, y, _ = make_correlated_data(n_samples, n_features, random_state=random_state)

# discenter X, y to make intercept != 0
for j in rnd.choice(n_features, 10):
    X[:, j] += rnd.uniform(5, 10)
y += rnd.uniform(5, 10)

tol = 1e-14
eps, n_alphas = 1e-3, 100
alpha_max = norm(X.T@y, ord=np.inf) / n_samples
alphas = alpha_max * np.geomspace(1, eps, n_alphas)

# fit with celer_path
intercepts, coefs = custom_celer_path(X, y, alphas=alphas, tol=tol)

# fit alphas individually with Lasso
ind_intercepts = []
for i, alpha in enumerate(alphas):
    model = Lasso(alpha=alpha, fit_intercept=True, tol=tol)
    model.fit(X, y)

    ind_intercepts.append(model.intercept_)

np.testing.assert_allclose(intercepts, ind_intercepts, atol=1e-7)

Note that the custom_celer_path is faster than fitting individually the alphas with Lasso since custom_celer_path solves sequentially the problems along the given path.

Thanks @Badr-MOUFAD ! For sparse datasets we can't center X as it breaks sparsity but the same kind of technique works. It has been done in https://github.com/jolars/benchmark_lasso_path/pull/3 for example


Adding CenterNet to Torchvision/detection

🚀 The feature
Add CenterNet to torchvision
Motivation, pitch
centernet is a better one-stage object detector than SSD and it is also very practical.This anchor-free detector is currently relatively popular.
Alternatives
No response
Additional context
No response
cc @datumbox

There are 2 centernet in the literature.
The most used I think is centernet objects as point that is the basis for many applications.
The nice thing about this model is that it is a generic architecture and many other models already in torchvision can be used for backbone, neck, and head.

@datumbox is there any plan on adding this new model?

@adamsau Thanks for checking.
Our intention is to prioritize the model on the future but not yet. The main issue at the moment is that we don't want to add more Keypoint detection models (I'm aware CenterNet supports normal bboxes too) until we have completed the Transforms v2 API. This is because in order to train the models properly, we need to have better support on the transforms side for Keypoints.

@datumbox thanks for the update, definitely need some fast model to detect keypoints since the keypoint rcnn is too slow for real world applications. Hope there will be new models coming soon!

Makes sense. Can certainly ping you once we are ready in case you are willing to contribute it. :)


Refactor sudt with registry address

CHANGES
Related PRs

https://github.com/nervosnetwork/godwoken-scripts/pull/116
https://github.com/nervosnetwork/godwoken-polyjuice/pull/135

Rebased

FeeQueue benchmark test is failing. Otherwise LGTM.

Fixed the benchmark test. @sopium @keroro520


Incorrent encoding error meessage

Create a new Python file with Chinese comment in it.
Add: # -- coding:UTF-8 --
And the error message here:
file has both Unicode marker and PEP-263 file encoding.  You must use "utf-8" as the encoding name when a BOM is present.
While the file has no BOM at all.
Also the parse seems not work well with "UTF-8" as the encodig name.

Thanks! Same root issue as https://github.com/Microsoft/PTVS/issues/4433


Fix:Fixed css selector name and comment name

.codehilite seems odd it should be .codehighlight

Thanks for working on this @Biki-das!  I'm closing this, since codehilite is a third-party name and I don't think it makes sense to override names in third-party interfaces. https://python-markdown.github.io/extensions/code_hilite/.

Yeah make sense, i actually didn't knew about that! Anyway thanks for the feedback


Can MQTTnet support websocket？

hi,
I want to create a  mqtt server that supprts websocket with MQTTnet，and I wonder if MQTTnet can do that？provide an example if you support it.
Thank.

Hi,
yes this is possible. Please have a look at the Wiki. There is an example how to use ASP.NET Core 2.0 together with the MQTTnet server.


Any plans for new Docker Image Release?

Any plans for a new release in Docker Hub? Last image was pushed over 7 months ago.

sorry, i'm totally, completely out of time to devote to this project... in fact, i'm not even using it myself anymore.

@rojer need some help?

Happy to be that person. My OSS experience includes: one of the project leads for Gitea (21K+ stars), maintain several other projects, plus contribute to even more.

thanks! i invited to the project. please attend to issues and pull request. if that goes well, i'll give you push access.

Looking forward to all new fixes/updates!

Thanks @rojer :)

@rojer What would be required to push a new image to Docker Hub? Do you still have the creds to that account?

In addition to the github action I wrote for testing GO, I could also write one that automates the publishing of the image on merge to master (where it will use the "lastest" label) and on tag (where the image will be named the same as the git tag.
The credentials could be managed in GH settings so I wouldn't need access to them.

@techknowlogick That would be an ideal solution!

sounds good, go ahead

@gabrielcalderon A new image has now been pushed.

@techknowlogick Thanks you! 👍🏻


Adds location accuracy aware camera overlay

Adds a camera overlay view which shows a warning message and current location accuracy to the nearest 1m. This warning currently appears when resolution is over 5m. The warning does not prevent an image being taken, nor does it appear on the taken photo.

Ref #44


utopia-actix-web Scope is not working as shown in the Example

Hey there, I am currently building a password manager backend API, here is the source code:
https://github.com/Letgamer/rsPass
I have the following problem, and hopefully it isn't a dumb error on my side😅:
I have in the main.rs:
.into_utoipa_app()
            .service(route_health)
            .service(route_email)
            .service(route_login)
            .service(route_register)
            .service(
                scope("/api/v1/accounts")
                    .wrap(auth.clone())
                    .route("/changepwd", web::post().to(route_changepwd))
                    .route("/logout", web::get().to(route_logout))
                    .route("/delete", web::get().to(route_delete))
            )
            .service(
                scope("/api/v1/sync")
                    .wrap(auth)
                    .route("/fetch", web::get().to(route_fetch))
                    .route("/update", web::post().to(route_update))
            )
            .split_for_parts();

and in the routes.rs I have:
#[utoipa::path(
    post,
    path = "/api/v1/accounts/changepwd",
    request_body = ChangeRequest,
    responses(
        (status = 200, description = "Password changed successfully!"),
        (status = 400, description = "Invalid payload"),
        (status = 401, description = "JWT Token is invalid"),
        (status = 500, description = "Database Error or JWT Generation Error")
    ),
    tag = "accounts",
    security(
        ("jwt_auth" = [])
    )
)]
pub async fn route_changepwd(req: HttpRequest, req_body: web::Json<ChangeRequest>, auth: BearerAuth) -> impl Responder {
    debug!("authenticated for token: {}", auth.token());
    if let Some(claims) = req.extensions_mut().get::<Claims>() {
        info!("Change Password of: {}", &claims.sub);
        match user_changepwd(&claims.sub, &req_body.password_hash){
            Ok(()) => HttpResponse::Ok().finish(),
            Err(e) => handle_db_error(&e),
        }
    }
    else {
        HttpResponse::Unauthorized().finish()
    }
}

I then wanted to change the routes in the scopes to also automatically determine the path and request type as at the routes outside the scope, I tried using your example and changed the main.rs to:
.into_utoipa_app()
            .service(route_health)
            .service(route_email)
            .service(route_login)
            .service(route_register)
            .service(
                scope::scope("/api/v1/accounts")
                    .wrap(auth.clone())
                    .service(route_changepwd) // changed here!
                    .route("/logout", web::get().to(route_logout))
                    .route("/delete", web::get().to(route_delete))
            )
            .service(
                scope("/api/v1/sync")
                    .wrap(auth)
                    .route("/fetch", web::get().to(route_fetch))
                    .route("/update", web::post().to(route_update))
            )
            .split_for_parts();

And I added the macro to the route in routes.rs:
#[utoipa::path(
    request_body = ChangeRequest,
    responses(
        (status = 200, description = "Password changed successfully!"),
        (status = 400, description = "Invalid payload"),
        (status = 401, description = "JWT Token is invalid"),
        (status = 500, description = "Database Error or JWT Generation Error")
    ),
    tag = "accounts",
    security(
        ("jwt_auth" = [])
    )
)]
#[post("/changepwd")]
pub async fn route_changepwd(req: HttpRequest, req_body: web::Json<ChangeRequest>, auth: BearerAuth) -> impl Responder {
    debug!("authenticated for token: {}", auth.token());
    if let Some(claims) = req.extensions_mut().get::<Claims>() {
        info!("Change Password of: {}", &claims.sub);
        match user_changepwd(&claims.sub, &req_body.password_hash){
            Ok(()) => HttpResponse::Ok().finish(),
            Err(e) => handle_db_error(&e),
        }
    }
    else {
        HttpResponse::Unauthorized().finish()
    }
}

So that is now exactly the same as shown in your README.md:
https://github.com/juhaku/utoipa/blob/master/utoipa-actix-web/README.md
The Route is correctly registered under /api/v1/accounts/changepwd but not in the openapi.json/swagger-ui.
There the path is:

So the scope is completely ignored.
I would appreciate any help, thanks in advance :)

Hey, I appreciate the Answer, thanks for the help :)

However the web::get().to(...) does not show up in the openapi.json as that is by design.

Just wanna point out that I am aware of that and that it is not my problem, I am talking about the:
.service(
                scope::scope("/api/v1/accounts")
                    .wrap(auth.clone())
                    .service(route_changepwd)

That's from your example, that's the one I mean, so I am specifically talking about the .service that isn't working.
I am closing this issue as it seems more likely to be an issue on my side.
If I figure out the problem, I will post a solution here for the sake of completeness👍


pre release v2.0.0-rc1

Is it ok to use it already?
What are the main benefits in front of the old version 1.4.17?
Thank you

This should be the branch that merged a ton of bitcoin core main branch code; so, there are a ton of updates/improvements.
That said, it is a release candidate and shouldn't be considered stable.

better to wait than,
I was curious about more details from the dev, should be @dooglus am I right?

I am using it, and apart from the initial discovery of peers, its working flawless. Using approximately the same RAM and cpu time, but the initial sync is much faster (and this is a well-known problem in clam for a lot of time). Staking and transfering funds works as expected

Thanks, @dooglus and @xploited for hacking away at this! If you ever need any JavaScript or Python help, please let me know

Closing issue, unrelated to client v2.1.0


Suggestions for better documentation on RAT inputs

Thank you for such a fantastic tool.
I have been trying to get RAT to work. Your documentation specifies "Currently, RAT supports single read files as well as paired-end read files. Interlaced read files are currently not supported."

Would you consider clarifying how to use RAT with single read files? I would assume something like:

reads --mode cr -c 5002.filtered.fasta -1 reads_to_map.fastq -d $DB -t $TAX --c2c 5002_CAT.contig2classification.txt
But that throws an error:
File "[...]reads.py", line 442, in run
    make_unclassified_seq_fasta(reads_files[1], unmapped_reads['rev'],
IndexError: list index out of range

Im terrible at python...but in looking at reads.py, I could not see how the -2 flag could be optional (ie in the case of single read files).
For troubleshooting, I tried supplying an empty -2 reads_to_map_2.fastq file seemed to get it to run further. I think this is because the process looks like it appends the reads and unidentified contigs all in one big file, and the pairing doesn't really matter?

Would you consider clarifying if there is a requirement to the read files? Do they have to be fastq? Line ~435 of reads.py appears to hard encode 'fastq' in the make_unclassified_seq_fasta() function. Again, I am very very weak with python though, I might be wrong. If they do have to be fastq, it might be helpful to highlight that requirement in the documentation and help.

 I encountered an error related to the input. From what I understand, my FASTQ headers must be present in the contigs. My contigs were generated by MEGAHIT, and they only have names like >k127_10000, without any FASTQ names. What do you think I should do?
./CAT_pack reads --mode cr -c contigs.fa -1 R_1.fastq -2 R_2.fastq -d /path/to/20240422_CAT_nr/db/ -t /path/to/200422_CAT_nr/tax/ -o lala -p out.CAT.predicted_proteins.faa -a out.CAT.alignment.diamond --c2c out.CAT.contig2classification.txt

<frozen genericpath>:39: RuntimeWarning: bool is used as a file descriptor
# CAT_pack v6.0.

[2024-10-11 09:41:47] samtools found: samtools 1.21.
[2024-10-11 09:41:47] bwa found: Version: 0.7.18-r1243-dirty.

RAT is running. Mapping reads against assembly with bwa mem.

[2024-10-11 09:41:47] Running bwa mem for read mapping. File fastq.bwamem.sorted will be generated.Do not forget to cite bwa mem and samtools when using RAT in your publication!
[2024-10-11 09:41:47] Contigs fasta is already indexed.
[2024-10-11 09:41:47] Running bwa mem...
...
[main] Version: 0.7.18-r1243-dirty
[main] CMD: bwa mem -t 24
[main] Real time: 118.429 sec; CPU: 2701.163 sec
[2024-10-11 09:43:52] Sorting bam file...
[bam_sort_core] merging from 0 files and 24 in-memory blocks...
[2024-10-11 09:44:00] Read mapping done!

[2024-10-11 09:44:00] contig2classification file supplied. Processing contig classifications.
[2024-10-11 09:44:00] Loading file 20240422_CAT_nr/tax/nodes.dmp.
[2024-10-11 09:44:03] Processing mapping file(s).

[2024-10-11 09:44:32] Chosen mode: cr. Classifying unclassified contigs and unmapped reads with diamond if no classification file is supplied.
[2024-10-11 09:44:32] No unmapped2classification file supplied .Grabbing unmapped and unclassified sequences...
[2024-10-11 09:44:33] Contigs written! Appending forward reads...
Traceback (most recent call last):
  File "CAT_pack/CAT_pack/./CAT_pack", line 101, in <module>
    main()
    ~~~~^^
  File "CAT_pack/CAT_pack/./CAT_pack", line 85, in main
    reads.run()
    ~~~~~~~~~^^
  File "CAT_pack/CAT_pack/reads.py", line 435, in run
    make_unclassified_seq_fasta(reads_files[0], unmapped_reads['fw'],
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                uncl_unm_fasta, 'fastq', 'a','_1')
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "CAT_pack/CAT_pack/reads.py", line 1260, in make_unclassified_seq_fasta
    fasta_dict[seq]))
    ~~~~~~~~~~^^^^^
KeyError: 'FT100012261L1C013R00202177739'


Extend diagnostic api with worker status info

ref https://github.com/zalando-incubator/postgres-operator/issues/119

Changes Unknown when pulling 7361a2ae47418e7eb61c89198edcde45be8f23cf on monitoring-api into ** on master**.

Changes Unknown when pulling 9391397c3e3c125c225f36383e51080b49fd64df on monitoring-api into ** on master**.

Changes Unknown when pulling 8060988e369d6d50416a075a47fdc45813d297e8 on monitoring-api into ** on master**.

The whole business of setProcessName scattered all over the code seems unnecessary ugly. Is it possible to abuse the logrus hook once again? We could do logger.WithFields('scope', 'ProcessName') in order to filter this out in a Fire callback and send to the special clusterStatus map. That might also allow us to avoid exposing cluster to the controller?

Current process name of the cluster belongs to the cluster object and must be stored there.
I don't like the idea of using logrus as a means of setting process name as ProcessName does not belong to logging anyhow.

Changes Unknown when pulling bc8385dd2e1dbe641bfab8e89429c9034dcc6947 on monitoring-api into ** on master**.

Well, in fact we  don't care about what does the current cluster do, we care about what does our worker of choice do, and the cluster is just a place to report that activity, since most of the tasks the workers are doing involve the cluster. So to me that activity belongs to the controller that manages workers.

If we are interested in what worker does we will end up with four processes: ADD, UPDATE, DELETE, SYNC of the cluster.
The whole Worker idea is to parallelize cluster operations. So worker status per se is the status of the cluster the worker is currently dealing with

Coverage decreased (-0.1%) to 8.631% when pulling a604ae71f60471586c79a95ff01b681315404edd on monitoring-api into 4bc2284b57812eb3eb46096e785547135fed81fb on master.

👍

👍


Ideas: Implementation of iOS Control Center-esque flyout

I think it is a great solution for the missing (?) shortcut for Battery, Volume, conjoining search and other essential utility (I know the action center does this, but I think this can be expanded for basic utilities (slider brightness) to custom framework) 👍. Besides, the older Windows 7 and 8 users could also benefit this :)

copy pasting my input with slight modifications from https://github.com/ChrisAnd1998/TaskbarX/issues/791

Any way to modify the default action center of windows 10?
It is implemented sooo poorly. it is thing of an utter disgrace in my opinion. Considering all the following points, i'd really like a way to tweak/replace windows action center. Similar to how i wanted to do to Taskbar before finding TaskbarX.

Date & Time not shown:
It becomes crucial soo many times when giving online exams - which are often held in full screen where taskbar and systray is inaccessible.
No redirect to the dedicated settings:
There's no way to go to dedicated setting of wifi/bluetooth etc. so, to change them, it requires going to system tray again. - although this aspect is fixed in windows 11
Doesnt stick with taskbar location - always appears on right.
The "All Settings" tile is just wasting space there.

^

Action Center can be potentially made more aligned with system tray:
both things have soo much potential to be unified. giving an awesome clean look AND better UX.
W.r.t. point 1, 4, 5, 2 take android ≥ 9 for example:

shows time/battery status
Settings icon (not tile) is shown besides it
Tap and hold opens dedicated settings
smooth UX flow.

Action Center:

System Tray:


Add exceptions messages to Resource file

the PR has been updated

:shipit:

Rebased, squashed, and merged.

Thanks @Tratcher


New package: JuMoMo v1.0.0

Registering package: JuMoMo
Repository: https://github.com/sveekelen/JuMoMo.jl
Created by: @sveekelen
Version: v1.0.0
Commit: 042147a956cccef2ee576dc75e5f252e9f96a5e2
Reviewed by: @sveekelen
Reference: https://github.com/sveekelen/JuMoMo.jl/issues/1#issuecomment-1971501610
Description: Mortality models for the Julia programming language

PopulationMortalityModels (or MortalityModels) would be the preferred name for this. People coming to Julia from other languages often bring “short package name” expectations with them, but in the Julia community “long and explicit” is very much the norm.

You can check out the official package naming guidelines before choosing a new name. Also, I see you have tagged the version as 1.0.0, but this seems like a very preliminary package with only one function exported, so perhaps a 0.1.0 or 0.0.1 release would be better (see the versioning guidelines).

Closing in favor of https://github.com/JuliaRegistries/General/pull/102008


Release ytt v0.33.0

Release Checklist

[x] Create release in Github

[x] Bump Version
[x] Create an OSM Release
[x] Create a Github release
[x] Create the Release Notes
[x] Generate Binaries and Checksum

[x] Ask Dmitriy to deploy this release to the Playground.
[x] Close any GitHub issues that have been delivered.

[x] Add a link to the release on the issue.

[x] Update the packaging repositories

[x] Update Homebrew
[x] Update Github Action
[x] Update Website Installation Script

[x] Create TanzuNet product
~[ ] Push any artifacts to a registry~ (skipped this step)
[x] Add announcement in community meeting
~[ ] Confirm Playground has the new version.~ (never happened)
[x] Communicate in Slack

Post Release:

[x] update ytt docs 😬
[ ] attach OSL file to TanzuNet Product
[ ] Notify Chocolatey maintainer of new release

OSL file in hand. Requesting TanzuNet Admins to make product mutable: https://vmware.slack.com/archives/C055G2ZGW/p1623274217086600


Obviously much better way to do nested enums

I ran generate_confs.sh on it and it produced the same output as before.
supersedes #128

Btw, how often do you run the --runslow and --rungpu tests?

Btw, how often do you run the --runslow and --rungpu tests?

Not very often. I only run them when I'm convinced something is broken. Also, the --rungpu flag triggers both run slow and run gpu. I don't know how to make that not be the case

I have discovered a problem with this: it doesn't work for dataclasses/attrs classes. At least not if you want to use the TypeAlias annotation, which I think we do.

There is a workaround, but it's not very nice. The trick is to not use TypeAlias and to wrap the Enum type in Union:
from dataclasses import dataclass
from enum import Enum, auto
from typing import Union

class ASplit(Enum):
    x = auto()
    y = auto()

@dataclass
class A:
    Split = Union[ASplit]

    split: Split = Split.x

a = A(split=A.Split.y)

but pyright is actually not completely happy with this.

Miraculously, the following solution satisfies both mypy and pyright:
from dataclasses import dataclass
from enum import Enum, auto
from typing import TYPE_CHECKING, TypeAlias

class LongEnumName(Enum):
    x = auto()
    y = auto()

@dataclass
class A:
    if TYPE_CHECKING:
        ShortName: TypeAlias = LongEnumName
    else:
        ShortName = LongEnumName

    var: ShortName = ShortName.x

a = A(A.ShortName.y)
print(a.var)


IsNavigating is false, Page Being Navigated to Still Isn't Opened

In Android (at least), NavigationService.IsNavigating property is false even if NavigationService.NavigateAsync(navigationParameters, isAnimated) is still opening a page.
This is the case in Android, but could also happen in other platforms.

The 'IsNavigating' property within Nucleus is currently set to 'true' when Shell triggers the 'ShellNavigating' event and 'false' again when the 'ShellNavigated' event is finished. This means that there will be some time between the calling of the specific NavigationService function and the callback.
Is this what you're referring to, or have you encountered an issue where the value is never changed into a true at all? Can you share more details?
The benefit of the current construction is that it'll work even when directly using Shell, although that is not exactly recommended. But we can fix the above gap by setting these values directly from within the NavigationService, as long as we ensure that all paths lead to it eventually being set to 'false' again.

Is this what you're referring to, or have you encountered an issue where the value is never changed into a true at all? Can you share more details?

Let me get back to you on this, Erik. Let me check if it at least turns true.

One thing's surely happening though, await NavigationService.NavigateAsync finishes executing even if the page being navigated to isn't shown. It causes an issue when the app is running slow to open a page, the user tends to tap on the button or list row multiple times, therefore opening multiple instances of the page being opened.
For the meanwhile I did a workaround for this on the viewmodel instead and it seems to work.

I will investigate a little on how Shell handles the navigation calls, as well as implement some improvements of the navigation logic (specifically surrounding the IsNavigation property) I have in mind.

Hi @turdmaggot , I've changed the logic for the 'IsNavigating' logic. Can you please validate these changes and confirm they work as expected on your end as well? I've added logging and an event to validate the moments this value changes.
You can either test these changes by including Nucleus with the branch /features/isNavigatingImprovements, but I've also release a nuget package 0.2.6-alpha.

Let me test this out and get back to you. Just one question, should we check IsNavigating before calling NavigateAsync? Is the feature IgnoreNavigationWhenInProgress enabled by default or should we still set that somewhere?
Thanks!

Let me test this out and get back to you. Just one question, should we check IsNavigating before calling NavigateAsync? Is the feature IgnoreNavigationWhenInProgress enabled by default or should we still set that somewhere?
Thanks!

See https://github.com/EGoverde/Mvvm.Nucleus.Maui?tab=readme-ov-file#configuration for the default values. The value for IgnoreNavigationWhenInProgress is currently by default 'false'. This might become enabled by default in a future release though.
If you use the feature, you should not need to check the IsNavigating value before triggering a navigation request. If you want your own implementation, you should be able to rely on it better after the changes mentioned above, as it should be set to 'true' as soon as you've started another one.
Note that it's best combined with an AsyncRelayCommand, as that will ensure the command itself is only run once, after which the value should be set correctly.

Hi @EGoverde
I've just tested 0.2.6-alpha on Android. I made sure that IgnoreNavigationWhenInProgress is set to true, then I double-clicked the control calling the AsyncRelayCommand that calls up the NavigateAsync. It still opens up 2 instances of the same page. I could also see from the logs that IsNavigating is being set to false while the page being navigated to hasn't opened up yet.
If this gets fixed though, I think IgnoreNavigationWhenInProgress should also prevent the nucleus popup service from executing ShowPopupAsync when IsNavigating is set to true. We're currently having issues in which both pages and popups show up multiple times as users get tired or frustrated when waiting for the page or popup to load so they tend to tap multiple times.
Thanks!

Hi @turdmaggot I have some changes in mind to further improve this functionality, I'll get back to that. If this is an urgent issue you could consider either subclassing the NavigationService and add logic to the overrides, then registering it in IoC. Or PR a full implementation that works as expected. But I'll try to get this one done.

Hi @EGoverde,
This isn't such an urgent issue for now if we're talking about page to page navigation as we are still able to make workarounds for it on a per View or ViewModel implementation. This involves having a boolean isClicked value that gets to a value that prevents the AsyncRelayCommand from executing any further, and the value of this boolean property gets reset on the OnAppearing callback, once the user navigates back to the page navigated from. Popups are a different thing, but I think a similar mechanism where in a boolean property can be set before awaiting the ShopPopupAsync command. I'll try your suggestions though, if time still permits.
Yeah, anyways issue #2 is still the more pressing issue on our project's plate right now as it affecting multiple things.
Thanks for looking at this.
-Enneth

Hello @turdmaggot , I have released Nucleus 0.3.0 that has additional logic for avoiding multiple navigation requests. It features two approaches - one is a check for the IsNavigating value when starting a request, the other is a 'cooldown' of sorts that ignores requests shortly after one has started. Let me know if this solves your issue.
I have looked into a similar approach for popups, but decided against it. In the PopupService you await a result, so even if we 'ignore' a request, it would still have to return a value. In this case it would be better to avoid triggering the service at all.
Perhaps a value, similar to IsNavigating, in the PopupService, could be useful for projects to check before showing a popup. I will experiment a bit with that, but it would still require logic on the client side to be useful.

Thanks!
I suggest maybe a mechanism in the popup service, upon instantiating a popup, and before showing it, we can set a boolean property called AllowMultiple which could be true by default. When this is set to false, as long as the same popup hasn't been closed/dismissed, showing it would be ignored?
Apologies for the late reply. I am currently assigned to support, which involves multiple context switching in between issues.

Ahh yeah I forgot about that, unlike NavigateAsync(), ShowPopupAsync() needs to return a value as a callback result.
I'll take note of the AsyncRelayCommand and CanExcute, and I do remember converting most of what I've touched to use [RelayCommand]. I'm not sure though if this automatically wraps those calls into a IAsyncRelayCommand in the process.
Either way, I think you could close this. I've already did an additional project-level provision in which the base class of our ViewModels have this newly-added property called IsBusyNavigating which is set to true whenever NavigateAsync is called. It only gets set to false once the calling ViewModel's OnAppearing lifecycle callback has been fired. This should supplement your update on nucleus and I believe our team has just upgraded the nucleus package from their end as well today.
I think you can close this, but if you still want me to test for confirmation, I can do so. For the popups, I'll try to check on your suggestion, by utilizing IAsyncRelayCommand and CanExcute.
Just to add though, I've also did a few reading on a few issues from MAUI's repo, and I think there's still an issue with Android's command calls being executed more than twice.
Once again, thanks for looking at this.

One last thing btw,
I just got an idea for the popups, maybe future improvements? I would put this on my "nucleus wishlist" :D
Maybe we can have another implementation of ShowPopupAsync() which should return a hypothetical PopupResult object, which contains 2 properties:

Result - Probably returns from an enum (e.g. Result.Cancelled, Result.Done, etc.)
Data - Probably an obj. This is the payload or actual result data.

This idea was inpsired from:
https://developer.android.com/reference/android/app/Activity#onActivityResult(int, int, android.content.Intent)

Noted @turdmaggot, I'll give it some thought. I'd like to keep things simple and even this approach would mean that when you call the popupservice you'd then always have to check for the situation that something has triggered multiple times (which would be different from a 'dismissal' of the popup).
That seems a bit tedious and messy from the perspective of the implementing project, it seems better to ensure you only call this service when you're not already doing it elsewhere.
I'll close this for now.
Best to avoid calling the service when you're still awaiting


Example of creating a node through code

I'd like to setup the control so that it starts with a 'Starter' node by default every time the control is loaded. I assume I need to set nodesControl1.Context.CurrentProcessingNode to a new Node but it isn't clear through the NodeVisual class how this is done.

Hi
Did you eventually find a  way of how to get the node creation with code?

@mercurial-moon - No, I gave up on this. Can't even recall what project I was working on with this library!


Fix types

Added method for fetching correct types for data

I dont see the full test results because I dont have access to the Azure DevOps project anymore, but I assume 11/12 test failures are caused by "No mock address".
This is because whenever requests_mock is used in a test, one has to provide a mock for all api requests made in the test. The three getDataBy...() methods now make a call to the types api (through _getData() and getTypes()), and it is now complaining about not finding these mock addresses.
This can be fixed by adding this piece of code to all tests testing a getDataBy...() function:
requests_mock.request(
    "GET",
    MockURLs.types_url,
    json=MockResponses.mock_types
)

Some tests also require a mock for the call to the instances api. This can be added in a similar way.
You might need to edit the mock responses as well, depending on the use. You can find the mock responses in tests/mock_responses.py in the MockResponses class. See whether mock_types and mock_instances contain all the info you need. So far I just copied a basic example from the Azure documentation, but this might not be sophisticated enough.
Let me know if you need help on this.
Cheers, Rafael

Cheers @rafaelschlatter.  @SiriOvregard  can you implement and send new PR.

Thanks @rafaelschlatter! You are right, tests fails with "NoMockAddress" presumably because I changed the output type of getTypes(). I will look into it :)

Thanks @rafaelschlatter! You are right, tests fails with "NoMockAddress" presumably because I changed the output type of getTypes(). I will look into it :)

The changed output of getTypes() is only causing one test to fail I think.
All the ones with "NoMockAddress" fail because some api calls are not mocked in the tests. Try adding the above code snippet to the tests that complain about missing a mock address. You will find a lot of examples in the tests already. Depending on whether it complains about instances or types, you need to add them accordingly (maybe both :)). You need to fake all api calls made in a test.
You can run tests locally with python -m pytest -v, so you see whether the tests fail or pass before pushing a commit.

Great work @SiriOvregard. Thank you @rafaelschlatter for guidance!

@rafaelschlatter @srudaa Thanks guys! :)
Yes, I had to match a type id in the mock query response with a type id in the mock type response due to the new structure for identifying type in the code. Great if there are additional advantages :) And thank you for guidance Rafael, it was really helpful!


Uncaught Error: Missing parameter. You must specify input.

Steps to reproduce:

Type some letters into the field
Hold down the delete key to delete the letters
The error appears when all the letters have been deleted

Reproducible on the demo page:

@negomi Thank you for reporting this issue! Just added a patch, please install the latest version which includes the fix 👍

Perfect, thank you for the quick response! 😃


[now dev] Fix creating duplicate blocking builds upon bootup

PR #2562 caused an issue with blocking builds at bootup being built twice, which is problematic when i.e. running yarn simultaneously on the same directory causing cache corruption issues.

Codecov Report

Merging #2618 into canary will decrease coverage by 0.29%.
The diff coverage is 0%.

@@           Coverage Diff            @@
##           canary   #2618     +/-   ##
========================================
- Coverage    8.25%   7.95%   -0.3%
========================================
  Files         258     258
  Lines        9477    9402     -75
  Branches     1100    1068     -32
========================================
- Hits          782     748     -34
+ Misses       8644    8605     -39
+ Partials       51      49      -2

Impacted Files
Coverage Δ

src/util/dev/server.ts
11.26% <0%> (-0.02%)
:arrow_down:

src/util/metrics.ts
68.18% <0%> (-11.13%)
:arrow_down:

src/util/dev/builder-cache.ts
29.54% <0%> (-2.3%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c0b5a01...76e1375. Read the comment docs.


fix: build with default export

this is likely a breaking change for commonjs+JS users.
closes #136

This seems fine to me, but I'd like @krisselden to sanity check as well.
It will definitely need to be a breaking change release when we do land it...


can't use Array in firebase.firestore.CollectionReference | firebase.firestore.Query why ?

 const list = this.afs.collection( 'City').ref;
let queryCollection: firebase.firestore.CollectionReference | firebase.firestore.Query &  Array = list;
for (let _i = 0; _i < this.data.areaList.length; _i++) {

            if (this.data.areaList) {  queryCollection[_i] = queryCollection.where('areaList', '==', this.data.areaList[_i]);

          }
            console.log(this.data.areaList[_i]);
      }

Note: can't use let  only const why and how to change bug ?
I wanna use let queryCollection .

Array: You must specify the type of the array, like string[] for example.
Const: You will be allowed to use let instead of const, after you have a statement that assigns a new value:
let queryCollection = something;
queryCollection = somethingElse;

I can't because I will get snapshot of multiple Method this is example I have more one for loop
and I need get specific data .
array = [ ];
`queryCollection .get().then(snapshot => {
snapshot.forEach(action => {
array .push(action.data());
       console.log(array );
      }); });`

Note: my website need advanced filter :)
Note2: const get data redundancy , if I push this data in array .

the array is actually a const in your original code sample--you never modify the array reference itself. modifying items in the array does not a new array make, so the const is correct.
(fwiw, i will rewrite code obsessively to avoid using let variables. the results are almost always worth it for legibility and maintainability.)

yes please help me , I'm first time create website

@Omar-Qalei sorry, this is not the place for advice on building web apps. the internet (especially StackOverflow) is full of useful information in this domain. best of luck!


WIP for cabal show-build-info

Use features from https://github.com/haskell/cabal/pull/7478
Starts work on #269

I'm curious, with upstream support in Cabal seemingly now implemented, is there anything blocking this? There are a lot of issues in HLS which mention this as the solution.

Yeah, there are unfortunately a couple of open issues :sweat_smile: Also, #255 essentially implements proper multi-home unit support without show-build-info.

But #409 doesn't solve the issue of the user having to manually load all the right components to prevent errors like https://github.com/haskell/haskell-language-server/issues/1370. I thought the point of show-build-info was that it finally gives us the information we need in order to know which components to load.

But #409 doesn't solve the issue of the user having to manually load all the right components to prevent errors like haskell/haskell-language-server#1370.

Or maybe it does? I just noticed from https://github.com/haskell/haskell-language-server/issues/3738 that the latest HLS release doesn't incorporate those commits yet.

But https://github.com/haskell/hie-bios/pull/409 doesn't solve the issue of the user having to manually load all the right components to prevent errors like https://github.com/haskell/haskell-language-server/issues/1370. I thought the point of show-build-info was that it finally gives us the information we need in order to know which components to load.

It does! Conceptually, cabal repl --enable-multi-repl computes all the components you need to load into ghci, invokes ghci via ghci @args.unitA.txt @args.unitB.txt and HLS simply looks at these args and sets up the session appropriately.
Currently, the only advantage seems to be that show-build-info uses a well-defined interface instead of the hacky cabal repl -w hie-bios-ghc solution.

Aha, awesome! Well then, I very much look forward to HLS being released with the new hie-bios.


fix: get username for access key and access secret

ref https://github.com/casdoor/casdoor/pull/1971
It's currently not possible to authenticate by Access key and Access secret if there is no session set with an empty username

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@lmk02 you'd better create an issue first, I don't know what you are doing here


Craft items with custom names

What does your feature do?
Plugin can't detect when user is crafting custom item, configured using plugin Oraxen
Item could have custom name with colors and lore
If it is already exist, please let me know how to configure it. My item data is
needle:
  itemname: <yellow>Голка
  material: PAPER
  lore:
  - <yellow>Використовуйте даний предмет для крафту теплої броні
  Pack:
    generate_model: true
    parent_model: item/generated
    textures:
    - default/needle.png
    custom_model_data: 1026

There are how I was trying to catch it, using your plugin
'000001':
    name: Зимовий мор
    ask-message: Challenge objectives!
    finish-message: Well done!
    npc-giver-uuid: 2c53e5fc-028f-4092-9b82-fa3f6411b1eb
    stages:
      ordered:
        '1':
          items-to-craft:
          - ==: org.bukkit.inventory.ItemStack
            v: 3953
            type: PAPER
            amount: 4
            meta:
              ==: ItemMeta
              meta-type: UNSPECIFIC
              display-name: '{"text":"","extra":["§eГолка"]}'
              lore:
              - '{"text":"","extra":[{"text":"Використовуйте даний предмет для крафту
                теплої броні","obfuscated":false,"italic":false,"underlined":false,"strikethrough":false,"color":"yellow","bold":false}]}'

How would people use it?
From my perspective, it will allow people to use custom crafts, created by other plugins (like in my case) or using datapacks (also could be implemented in this way)

This seems to be similar to #2234
While it's not within the scope of Quests to handle objects from other plugins (that's what modules and such are for), I'm curious if it's possible to find a general solution using just the Bukkit API.
@S4r3ss Can you provide some more details on how to replicate this with Oraxen? What sort of item you created, how you added the crafting recipe, how to get the item in your hand, etc.?

@PikaMug exist 2 ways of creating custom items. I have explained one of them on description, using oraxen and other one is in native minecraft, but little bit harder to do
I will create steps to reproduce for both of them, and if you will have some questions, don't forget to ping me.
For Native minecraft
_5e851004caa47a0c199a00d1-Create a new texture for native minecraft-201124-185448.pdf
For oraxen plugin is much easier. It already has custom items and you can just modify them as you want. But, it's supporting additional plugin, so would be better to implement it at least for native minecraft

Ohh, and also, I forget about crafting receipt. You can use this guide to impelent it
https://www.youtube.com/watch?v=XUrKD7K1U7o&t=171s
You just need to modify the result item, to give him custom_model_data and that's it. Crafting receip for custom item is created

I will create steps to reproduce for both of them, and if you will have some questions, don't forget to ping me.

That would be appreciated. Still unsure of how to create an item with Oraxen. If you'd rather I use your 'needle' item data instead, then I need to know where to put it and how to then acquire it in-game.

@PikaMug okay, you want to proceed with oraxen then
Open plugins/Oraxen/items/items.yml
Inside this file you should add
needle:
Enchantments:
sharpness: 1
ItemFlags:
- HIDE_ENCHANTS
itemname: Голка
material: PAPER
lore:
- Використовуйте даний предмет для крафту теплої броні
Pack:
generate_model: true
parent_model: item/generated
textures:
- default/needle.png
custom_model_data: 1026
Next, open plugins/Oraxen/recipes/shaped.yml
There you should add next code
needle:
result:
oraxen_item: needle
ingredients:
A:
minecraft_type: IRON_NUGGET
shape:
- OAO
- AOO
- OOO
And don't forget to fix tabs, in plugin it uses two spaces (IDK why in github comments it ignores my spaces)
And also, add texture inside plugins/Oraxen/pack/textures/default. This texture should have name "needle". There are example of our picture, you can use it

And now you can give this needle in minecraft using command
/o give @p needle
or craft it, using iron nuggets, like you craft shears

Thank you. I gave that a try, but the quest seemed to work fine. The only strange thing was server chat displaying the item as 'Paper' but that's likely because it does not have a displayname.

@PikaMug but what if you set display name, quest will still keep working?

@S4r3ss I did not see a reason to test that, as the bottomline is it worked fine. Not sure what the issue could be on your end. If you'd like to share the quest you're using I could try to identify a difference, but if that checks out then all I can do is recommend that you investigate potential plugin conflicts.


Add a hosting abstraction to provide a location on disk that components can use to read data from

IHosting application data
Motivation

There are components/libraries in our platform that require of a predefined location on disc to read/store data.

DataProtection keys.
Default kestrel HTTPS certificates.
User secrets.
ASP.NET Core buffering. BufferingHelper.cs#L25

Right now every component chooses their own locations for storing state, which increases the footprint of every
application on the machine.
Like our own frameworks, other frameworks may have the need to read or store some state on a well-known location
on disk, in order to avoid the need to avoid configuring an explicit path on disk.

Proposed solution

We can introduce at the hosting level the concept of IHostingApplicationData.
This service defines a location where components in the framework can search for files that they need to work.

For example, certificates for HTTPS, keys for data protection, etc.

This location should be considered GLOBAL for the machine, components requiring more isolation for their data
MUST further namespace the data by using the application name (for example, caching).
The existence of this folder must not be required by any component to work, nor it is the ability to write to
that folder.

For example, with DataProtection we will just fallback to ephemeral if the location is not available.

Compoments on the framework must provide the ability to override this folder if they require a location on disk
to work.

For example, with the default kestrel HTTPS certificate users can provide the path to the certificate explicitly.

Options
There are a couple of ways we can go about with this service:
Make it something meant for ASP.NET Core components internal comsumption.

We follow the same pattern HostingEnvironment has for other locations on disk like ContentRoot.
We use the same set of folders data protection uses to store the keys plus an additional fallback folder APP_DATA.

public interface IHostingApplicationData
{
    /// <summary>
    /// Gets or sets the absolute path to the directory that applications use to
    /// store data outside of the content root of the application.
    /// </summary>
    string ApplicationDataPath { get; set; }

    /// <summary>
    /// Gets or sets an <see cref="IFileProvider"/> pointing at <see cref="ApplicationDataPath"/>.
    /// </summary>
    IFileProvider ApplicationDataFileProvider { get; set; }
}

Make it something all our components and user applications can use to optimistically read/store state.

We provide a set of abstractions designed to read and write state to this location, with application scoping by default and optionally global scoping.
We prioritize local/app scoped folders like APP_DATA over other more global/machine scoped folders like %HOME% or %USERPROFILE%
We might provide different folders instead of a single one for different kinds of data.

Global folders use the same conventions as data protection.
Local folders prioritize an APP_DATA folder relative to the app and fall-back to
a global folder with automatic namespacing.

We might provide three categories of data:

Data that is exclusively local and can live in a folder along side your app. (Caching data, etc.)
Data that is exclusively global and should be shared across the machine. (Data protection keys)
Data that is exclusively local but can't live in a folder along side your app. (User secrets)

public interface IHostingApplicationData
{
    string LocalApplicationDataPath { get; set; }
    string GlobalApplicationDataPath { get; set; }

    Stream GetApplicationDataStream(
        string path,
         /* options: read, write, create if not exists, */,
          /* local, global, global-namespaced */);
}

public enum StreamCreationOptions
{
    Read,
    Write,
    CreateIfNotExists
}

public enum DataKind{
    Local,
    Global,
    ApplicationScopedGlobal
}

Details

By default we try to find the folder to use following the same criteria as data protection, plus an additional fallback location:

Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)/ASP.NET (For windows only).
%LOCALAPPDATA%/ASP.NET.
%USERPROFILE%/AppData/Local/ASP.NET
%HOME%/.aspnet
Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)/ASP.NET
AppContext.BaseDirectory/APP_DATA

The location used can be overriden through configuration.

Closing this one.
@javiercn please work with @shirhatti and @glennc to define the customer scenario for this if you want to bring it back.


Error: jsonschema.exceptions.ValidationError: Invalid schema

I'm getting Invalid Schema running against the Swagger 2.0 spec for a project I work on.  The swagger can be found at https://dev-onboardingapi.na.bambora.com/v1/boarding/swagger/2016-08-18
The same Swagger is accepted without error in the Live Demo editor at Swagger.io (https://editor.swagger.io/)  (ie if I copy the swagger data at that URL and paste into the editor at Swagger.io it reports no errors).
However, schemathesis is saying it's an invalid schema, and the --show-errors-tracebacks only seems to indicate there's a typeerror somewhere that gets encountered:
$ schemathesis run https://dev-onboardingapi.na.bambora.com/v1/boarding/swagger/2016-08-18 --show-errors-tracebacks
An internal error happened during a test run
Error: Traceback (most recent call last):
  File "/Users/pzelnip/.virtualenvs/schemathesis/lib/python3.8/site-packages/schemathesis/loaders.py", line 160, in _maybe_validate_schema
    jsonschema.validate(instance, schema)
  File "/Users/pzelnip/.virtualenvs/schemathesis/lib/python3.8/site-packages/jsonschema/validators.py", line 932, in validate
    error = exceptions.best_match(validator.iter_errors(instance))

... many lines ...

  File "/Users/pzelnip/.virtualenvs/schemathesis/lib/python3.8/site-packages/jsonschema/_utils.py", line 98, in find_additional_properties
    if patterns and re.search(patterns, property):
  File "/Users/pzelnip/.pyenv/versions/3.8.2/lib/python3.8/re.py", line 199, in search
    return _compile(pattern, flags).search(string)
TypeError: expected string or bytes-like object

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/pzelnip/.virtualenvs/schemathesis/lib/python3.8/site-packages/schemathesis/runner/__init__.py", line 163, in execute_from_schema
    schema = load_schema(

... many lines ...

  File "/Users/pzelnip/.virtualenvs/schemathesis/lib/python3.8/site-packages/schemathesis/loaders.py", line 162, in _maybe_validate_schema
    raise ValidationError("Invalid schema") from exc
jsonschema.exceptions.ValidationError: Invalid schema

Add this option to your command line parameters to see full tracebacks: --show-errors-tracebacks

You can disable input schema validation with --validate-schema=false command-line option
In this case, Schemathesis can not guarantee proper behavior during the test run

I'm rather puzzled what the error is, or what part of my schema would be producing it (ie what part is invalid).
In case it matters:
Python version 3.8.2
Schemathesis version: 1.7.0

Hi @pzelnip !
Thank you for reporting this! I assume that the problem is that inside the schema the status codes for responses are integers but should be strings according to the spec and jsonschema can't handle validation correctly.
Similar issue - https://github.com/kiwicom/schemathesis/issues/513
I forgot to submit a bug report upstream to jsonschema :( so the error is more clear

Closing this issue, since the schema provided doesn't comply with the spec - the HTTP status codes should be strings. It is not noted specifically in the Open API, but the relevant JSON Schema has patternProperties keyword to describe it and this keyword can be applied only to strings because JSON spec requires object keys to be strings. The problem is with YAML, that has a lot of implicit conversions and apparently that Swagger.io is less strict on this matter (however all the examples they have contain HTTP codes as strings) and accept such YAML document. I suggest converting all these codes to strings in the schema or using --validate-schema=false in the CLI.
Our policy is being as close to the strict schema compliance as possible with optional disabling of certain checks (e.g. the --validate-schema option or fixups for FastAPI). I'll create an issue in jsonschema shortly

And it was already discussed in jsonschema here.
In short - there were multiple PRs to improve these, but they were closed. The intend is that the input should be deserialized valid JSON, and any transformations should be done before passing it to validate, however, pyyaml implicitly allows it :/ Maybe it could be done with some more user-friendly message on the jsonschema side or schemathesis side


CMAKE_INSTALL_RPATH_USE_LINK_PATH does not play well with "set(CMAKE_INSTALL_RPATH" commands in Packages.cmake

I ended up commenting out all of the "set(CMAKE_INSTALL_RPATH" commands, which appears to have done what I want:
$ readelf -d /ccs/home/nicurtis/sw/omnitrace-devel/lib/libomnitrace.so

Dynamic section at offset 0x2035d38 contains 45 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libgotcha.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [librt.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libpthread.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libunwind.so.8]
 0x0000000000000001 (NEEDED)             Shared library: [libdl.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [libamdhip64.so.5]
 0x0000000000000001 (NEEDED)             Shared library: [libroctracer64.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libdrm.so.2]
 0x0000000000000001 (NEEDED)             Shared library: [libdrm_amdgpu.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libnuma.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [librocprofiler64.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libhsa-runtime64.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [librocm_smi64.so.5]
 0x0000000000000001 (NEEDED)             Shared library: [libxpmem.so.0]
 0x0000000000000001 (NEEDED)             Shared library: [libm.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libstdc++.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [ld-linux-x86-64.so.2]
 0x000000000000000e (SONAME)             Library soname: [libomnitrace.so.1.3]
 0x000000000000000f (RPATH)              Library rpath: [$ORIGIN:$ORIGIN/omnitrace:]

I think that CMAKE_INSTALL_RPATH_USE_LINK_PATH isn't playing harmoniously with those.
Originally posted by @arghdos in https://github.com/AMDResearch/omnitrace/issues/92#issuecomment-1199910504

Sorry for all the noise @jrmadsen.  This ended up being my fix to my ongoing "can I instrument the HSA library that Omnitrace & libfabric are using".
Basically, comment out all the: "set(CMAKE_INSTALL_RPATH" commands in Packages.cmake, e.g.:
https://github.com/AMDResearch/omnitrace/blob/main/cmake/Packages.cmake#L172
IMO, this probably should be conditional on the value of "CMAKE_INSTALL_RPATH_USE_LINK_PATH".
I think once this is resolved, I should be able to instrument libfabric using the header only MPI support.

@arghdos
FYI, I am going to have to partially revert this for ROCm < v5.2.0. Until v5.2+, only librocprofiler64.so was symlinked in /opt/rocm/lib which bc the linker embeds the SOVERSION library name (i.e. librocprofiler64.so.1) this means that, basically, everyone using omnitrace would have to manually add /opt/rocm/rocprofiler/lib to the LD_LIBRARY_PATH, even just to run omnitrace-avail.

[AMD Official Use Only - General]
Gotcha, makes sense.

From: Jonathan R. Madsen @.>
Sent: Tuesday, August 2, 2022 12:24 PM
To: AMDResearch/omnitrace @.>
Cc: Curtis, Nicholas @.>; Mention @.>
Subject: Re: [AMDResearch/omnitrace] CMAKE_INSTALL_RPATH_USE_LINK_PATH does not play well with "set(CMAKE_INSTALL_RPATH" commands in Packages.cmake (Issue #121)
[CAUTION: External Email]
Reopened #121https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAMDResearch%2Fomnitrace%2Fissues%2F121&data=05|01|nicholas.curtis%40amd.com|c8e5d176969d4033b46d08da74a378b8|3dd8961fe4884e608e11a82d994e183d|0|0|637950542748983373|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=t64vLs6tW2gra%2Frp1WWb5Vt1sUnI4fZYICjwHUbWZ0c%3D&reserved=0.
—
Reply to this email directly, view it on GitHubhttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAMDResearch%2Fomnitrace%2Fissues%2F121%23event-7111466514&data=05|01|nicholas.curtis%40amd.com|c8e5d176969d4033b46d08da74a378b8|3dd8961fe4884e608e11a82d994e183d|0|0|637950542748983373|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=I4vT4F%2BGh2S2cIqAJHu88%2BjoP18Yl2e6G%2BfkAiNqi64%3D&reserved=0, or unsubscribehttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABRKDCN6N5DUHFOJZNMOXXTVXFDTNANCNFSM55B22RSQ&data=05|01|nicholas.curtis%40amd.com|c8e5d176969d4033b46d08da74a378b8|3dd8961fe4884e608e11a82d994e183d|0|0|637950542748983373|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=O1Q%2BxUW0dW7Htupxd7%2BSYu2walY4kFYnJZIG745xAOs%3D&reserved=0.
You are receiving this because you were mentioned.Message ID: @.***>


Make rpass inline test output verbose

This should help debugging #57

OK, I found the issue anyway :)


Inconsistent compile time type errors for async streams

Consider the following snippet:
import 'dart:async';

class D<T> {
  Stream<Future<T>> add(T n) async* {
    print(n);
    yield n;
  }
}

main() async {
  D<num> d = new D<int>();
  d.add(4);
}

Analyzer (and thus DDC) throws a compile-time error:
The type 'Stream<T>' implied by the 'yield' expression must be assignable to 'Stream<Future<T>>'
But the VM defers this type check until after the stream's listened to.
What should be the expected behavior here?

Following up here based on our discussion: I think the underlying issue is that the VM doesn't report this compile-time error because the test doesn't "exercise" the code inside the body of the async* method. It calls the method, but because the returned stream isn't subscribed to, my hunch is that it never actually gets around to compiling the body.
In all of the other language tests, we're careful to ensure the code containing a compile-time error is actually executed because the VM is "lazy" about detecting compile time errors. If you change the test to subscribe to the returned stream, hopefully the VM will then behave like analyzer.

It is a compile-time error, a type error where you yield a T where a Future<T> is needed. There is no automatic coercion from T to Future<T> (like in the return of an async function).
I believe the CFE intends ot display all such compile-time errors, so it's missing one here.


text_on_image_60

I have solved the text_on_image #60, Please review my request.

Solved Issue text_on_image #60


Add pt translation

Thanks!

@0wain
Thank you. But it's not correct. I will send a correction. This is what happens when you don't listen to medical advice and drink 1 liter of coffee every 12 hours.


Add support for XmlSchema annotation during model generation

The goal of this PR is to enable Model resolver of swagger-core to extract the XML namespace from XmlRootElement if no namespace attribute has been set, but an XmlSchema annotation is present in the java package where the class annotated with XmlRootElement exists
I had to add these changes, as we utilize have a XSD schema file -> JAXB Generator -> OpenAPI Model generation flow.
Changing the annotation directly is unfortunately not an option for us, hence this PR.
Please let me know if there are further questions / requests.

@frantuma your thoughts on this PR?

Thanks!


[L515] I want to see the distance of a specific coordinate of a color image, although the resolution is different

Required Info

Camera Model
L515

Firmware Version
<IP_ADDRESS>

Operating System & Version
Ubuntu18

Kernel Version (Linux Only)
4.9.140-tegra

Platform
NVIDIA Jetson NX

SDK Version

Language
Python,Opencv

Issue Description
Hi
I am currently using JetsonNX, RealsenseL515 and pyreansense2.
Previously, I used the D435i to fix the distortion and did the following:
(The resolution of color images and depth images is the same)
1, Detect a person in a color image and get the coordinates
2, get the distance from the depth of the same coordinates
However, in L515, the resolutions of the color image and the depth image do not seem to match.
https://github.com/IntelRealSense/librealsense/issues/6684
The current resolution is 1280 x 720 in color and 1024 x 768 in depth.
Therefore, when you run processes 1 and 2, they will see different positions because they have different coordinates.
How can I see the distance of the location shown in a color image if the resolutions are different?
Thank you.

Hi @nkanbe
You are right the color and depth for the L515 are in different resolutions.  You can have a look at our examples that take into consideration how to align the two streams.  The rs-align (https://github.com/IntelRealSense/librealsense/tree/master/examples/align) and rs-align-advanced (https://github.com/IntelRealSense/librealsense/tree/master/examples/align-advanced)
There are no plans to have common resolutions between the depth stream and the color stream.

Thank you.
I found that the resolutions do not match


do not merge - Unfinished migration to flutter 2.2.1

As mentioned in Issue 5 here is the PR.

closing PR. it has been addressed by https://github.com/Flagsmith/flagsmith-flutter-client/pull/9  !


Forge Gradle hangs when using Sugarcane Mappings

Whenever sugarcane mappings are used, Ender IO's builds stall infinitely until they are stopped and re-run, this breaks GitHub Actions. I'm providing 2 build logs from Actions to show you where this fails.
Using parchment: https://github.com/SleepyTrousers/EnderIO-Rewrite/runs/7889663799
Using sugarcane: https://github.com/SleepyTrousers/EnderIO-Rewrite/runs/7889774021
Happy to provide any more information if required :)

See https://github.com/MinecraftForge/ForgeGradle/issues/886

The reason, why the deadlock does not occur with parchment in most cases is that librarian only uses MavenArtifactDownloader very early in the method that resolves the mappings.
For downloading the actual mappings zip file, it has some custom logic that is used to support snapshots. However as SugarCane has no snapshots, it just uses MavenArtifactDownloader (which is also the fallback option in librarian).

Fixed in ForgeGradle


api docs: Add an API changelog page.

I imagine this can be improved in various ways, but I've initialized
this with all the Changes entries recorded in either zulip.yaml or
the rest of the API documentation, and I expect we'll be able to
iterate on this effectively.

Thanks for collecting these!
Did you see my reply to you at https://github.com/zulip/zulip/pull/14658#issuecomment-617411240 ?

@gnprice what are your thoughts on whether we want the API documentation to be just a long bullet on the /server_settings page, or e.g. a separate "changelog" page entirely? If it's the latter, we should probably take the opportunity to initialize that page; if we're happy as-is, then we don't need to do that.

I think the place I most want it is inline where the respective features appear in the API docs. At least for myself and mobile, I don't think there's a strong need to have a changelog collected in one place. (So long as we continue to have a protocol where you mention new changes that we should be aware of, anyway -- I think the issues you've been filing with label "api migration" have been working pretty well, and we can continue to iterate as needed.)
For that, I think the initialization that's useful to do is, in the handful of places that now mention things new in Zulip 2.2, to edit that to like "Zulip 2.2 (feature level 1)", provided that's accurate. A grep like git grep -C8 "Zulip 2.2" templates/zerver/api/ finds two, in get-messages and get-all-users.

I could see this central list being helpful in the workflow of keeping these changes documented -- it can provide a handy place for you to compare to your mental tracking of what's changed, as well as to compare to other forms of changelog. But I think from the perspective of writing client code, I'd still like to have it mentioned inline where the respective features appear in the API docs.

Pushed an update to this, that adds a bunch of extra things to the Changelog section for Zulip 2.1 (E.g. new organization settings that would appear in responses).

I think the place I most want it is inline where the respective features appear in the API docs.

I've added (Zulip feature level 1) notices everywhere 2.2 is mentioned that isn't "deprecated" type notices (where the feature level doesn't really apply).  Note that we just moved the description content into zerver/openapi/zulip.yaml; the actual templates/zerver/api pages are increasingly becoming shells for the REST endpoints.  So remember to include zerver/openapi/zulip.yaml in any greps for content.
I'll add a reference to https://github.com/zulip/zulip/issues/14100 for the current near-term master OpenAPI TODO list, which for the moment focuses on making our OpenAPI docs standards-compliant and easy to work with.  One of the most important pieces if making the response data have a system like the one for parameters that makes it maintainable so that we can make it actually useful.
@akashaviator @shubhamgupta2956 @orientor FYI.

Merging this so that others can continue iterating on top of it.


1.1.4: Cannot find module 'cssify' from 'node_modules/react-spinkit'

I'm using Browseify to build my app, and because cssify is only a devDependency it does not appear to install.
As a result, trying to build my app always results in the following error:
Cannot find module 'cssify' from 'node_modules/react-spinkit'

Cssify is in devdependencies for the demo. You're expected to install and configure cssify yourself for your application.

Hmm, okay, well in that case it would probably be good to make that a bit more obvious in the docs or something. Getting a missing dependency error when building does not make it obvious that this is the expected behavior.


Bidirectional kinding

Implements a bidirectional algorithm for kinding

Looking great.
You had:
  -- TODO: Should this be checkKind?
  (k2, _) <- synthKind s (tyVarContext st) t2

in Compile.hs. I believe that this would make sense, obviating the need for joinKind. Could you try it?
It looks like a similar thing happens on l.640 of SubstituteAndKinding.hs so it could be tried there too?

In the kinding algorithm:
https://github.com/granule-project/granule/pull/155/files#diff-f910722024cb62797bd522031c0c33b1R854-R859
This part I think needs to also recurse with checkKind s ctxt t k
You could avoid joinKind again by doing checkKind s ctxt t k' as well?
(I'm wondering if we can eliminate all occurrences of joinKind?)


Improve installation instructions

No need to have multiple mentions of where to get an API key. Just state it once and then show the two different ways the package can be installed.

@Saturn Thanks merged!


create github account for internal service-account use

Do we have more details on this?
I believe we already addressed if it was an account for the runner, if it is something else. I am not clear on what need to be done.

@6za this was indeed an account for the actions runner to use, let's close this issue out


Move Icon

I'm trying to move the icon to a less intrusive location, preferably the footer.
I've added the following config:
"INSERT_BEFORE": "</footer>",

and while it does move it from a DOM perspective into the footer, it still displays on the side due to the css.  Is there a way to either override the css or an option to put it somewhere else?

The toolbar doesn't offer a setting to do this, but you can of course override the CSS with your own. There's no documented (or supported) way to do this either but we won't just go ahead and change CSS classes without a good reason.

yea, I tried that but since it's loaded into the dom after page load, the css won't apply... unless I'm doing something wrong.

You have to increase the specificity of the CSS somehow, e.g. by using html #djDebugToolbarHandle instead of only #djDebugToolbarHandle

By the way, you know that you can drag the handle along the right hand side of the browser window and that it stays there?

I was using the wrong css file facepalm thanks for your help.

Nice :) this happens to me all the time 😂
Glad it works.

I haven't looked, but I want to point out you should be able to drag it
up/down.
On Tue, Mar 22, 2022, 6:44 PM Mike Schem @.***> wrote:

I'm trying to move the icon to a less intrusive location, preferably the
footer.
I've added the following config:
"INSERT_BEFORE": "",
and while it does move it from a DOM perspective into the footer, it still
displays on the side due to the css. Is there a way to either override the
css or an option to put it somewhere else?
—
Reply to this email directly, view it on GitHub
https://github.com/jazzband/django-debug-toolbar/issues/1600, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJYZPZH6RZ6PYCUXH55Z4TVBJLNFANCNFSM5RMMD5MQ
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


[blogUserPoolId] do not exist in the template

Before opening, please confirm:

[X] I have installed the latest version of the Amplify CLI (see above), and confirmed that the issue still persists.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
No response
Amplify CLI Version
7.6.2
What operating system are you using?
Mac
Amplify Categories
function
Amplify Commands
push
Describe the bug
The pull is working fine, but when I am doing some changes (even any comment in the code) and pushing, then it is failing.
UPDATE_FAILED               functionBlogbackendBlogTable                   AWS::CloudFormation::Stack Fri Dec 03 2021 21:34:59 GMT+0530 (India Standard Time) Parameters: [authBlogbackendUserPoolId] do not exist in the template
UPDATE_FAILED               functionBlogbackendUserTable                   AWS::CloudFormation::Stack Fri Dec 03 2021 21:34:59 GMT+0530 (India Standard Time) Parameters: [authBlogbackendUserPoolId] do not exist in the template

Expected behavior
It should push the local changes to backend.
Reproduction steps

I upgraded amplify cli to 7.6.2 earlier I think it was 7.5.2.
amplify pull
amplify push
ERROR

GraphQL schema(s)

# Put schemas below this line

Log output

# Put your logs below this line

Additional information
No response

Hey @hackrx :wave: thanks for raising this! To clarify, are these functions custom resolvers for a GraphQL API, which have access to the auth resource?

These functions are not custom resolvers, these are Dynamodb CRUD trigger functions, which have auth access.

Thanks @josefaidt  for the hint, first I removed auth access from both of these functions, then I tried  amplify push and it worked.


Change X.509 test case to not rely on asn1parse limitation

Tweak test data for one test case to not rely on mbedtls_asn1_get_int lacking support for leading zeros.
Tweak test data for one test case to not rely on mbedtls_asn1_get_bitstring_null rejecting bitstrings shorter than two octets.

Needed for bug fixes in mbedtls_asn1_get_int and mbedtls_asn1_get_bitstring_null in https://github.com/ARMmbed/mbed-crypto/pull/75. The updated test data works both with the current ASN.1 implementation and with the fixes from https://github.com/ARMmbed/mbed-crypto/pull/75.
One new test (empty Signature) is commented out because it needs the fix from https://github.com/ARMmbed/mbed-crypto/pull/75. I included it in this PR because it's natural to have it given the other test data, but currently mbedtls_x509_crt_parse would return an erroneous error code due to the mbedtls_asn1_get_bitstring_null limitation.

@k-stachowiak I'm sorry, I don't understand your comment. This PR is not supposed to replace a negative test by a positive test. Each test is still supposed to exercise a case where a particular call to an mbedtls_asn1_xxx function returns an error. What changes is that those two tests relied on a bug in that mbedtls_asn1_xxx function. I've changed the test data to trigger the same error legitimately rather than due to a bug.

@Patater Why "needs: preceding PR"? This PR needs to go in before https://github.com/ARMmbed/mbed-crypto/pull/75.


Roll Engine from 892034dc6a7c to 8844aff58442 (7 revisions)

https://github.com/flutter/engine/compare/892034dc6a7c...8844aff58442
2020-12-29<EMAIL_ADDRESS>Roll Skia from 52130b09093d to d1b593f446d3 (1 revision) (flutter/engine#23320)
2020-12-28<EMAIL_ADDRESS>Roll Skia from 16d86135b739 to 52130b09093d (2 revisions) (flutter/engine#23319)
2020-12-28<EMAIL_ADDRESS>Roll Skia from f94348fdd528 to 16d86135b739 (5 revisions) (flutter/engine#23316)
2020-12-28<EMAIL_ADDRESS>[web] Prevent recycling canvas twice due to paint queue (flutter/engine#23315)
2020-12-28<EMAIL_ADDRESS>fixes text area transitions both for mobile and desktop (flutter/engine#23256)
2020-12-28<EMAIL_ADDRESS>[web] Reland - Switch web-render option default to auto (flutter/engine#23313)
2020-12-28<EMAIL_ADDRESS>Roll Skia from 9a27566e0cbc to f94348fdd528 (11 revisions) (flutter/engine#23312)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/master/autoroll/README.md

Gold has detected about 2 untriaged digest(s) on patchset 7.
View them at https://flutter-gold.skia.org/cl/github/73068

Commit queue failed; closing this roll.


Add 'runbook' for adding admin users from freshdesk

Each time I handle a ticket on freshdesk, if one doesn't already exist, I'm going to try to write a clear, step by step 'runbook' that anyone doing support can follow whenever a specific kind of request comes in via freshdesk.
This is such a runbook for adding admins to a hub, for https://2i2c.freshdesk.com/a/tickets/1279 that led to https://github.com/2i2c-org/infrastructure/pull/3659

@GeorgianaElena oooh yes i agree that's a good place for them. I'd like for runbooks to be a top-level category, with a template. I'll work on that.

Going to merge this and not wait on https://github.com/2i2c-org/team-compass/pull/797, because there's a big merge conflict there i need to fix.


End users need human readable text when asked to approve a wallet popup

This is a huge UX issue has been brought up a number of times in the Flow Discord, and it was suggested I raise the issue here so everyone can put their heads together. Here is the one conversation for example:
https://discord.com/channels/613813861610684416/699275726704083064/858690789081350185
In short, when users are asked to sign a transaction, there needs to be some human readable text for what the user is approving.
Currently, the actual transaction code is provided to the user in the wallet modal. The actual code is great to have, and necessary. However, this is not enough, as very few mainstream users can read Cadence code (and this is all the info FCL currently offers to the wallet maker).
So without a solution, the mainstream user will face a cryptic dialog from wallet providers, which force the users to reject or approve something. This is a huge hurdle for mainstream users who really just want the TopShop user experience, and it could drive dapp makers to make custody wallet solutions instead.
The suggestion to allow dapp makers to pass a custom text field in FCL.send was quickly thrown out due to the concern a malicious app maker would say one thing and the transaction would do another ex. "Create Collection" could actually be draining your account of tokens.
The best solutions I've heard so far revolve around template transactions that have been verified by someone "trusted" (like the wallet provider). These transactions can go in an open source repo and/or in a smart contract as a hash or the full transaction code (the wallet providers can then verify code against the transaction hashes in the contract). This also has some cons, and custom transactions would still show up as unverified/untrusted to end users (which is bad for the dapp maker).

What recourse do user's have if the do sign and submit code that does something other than what they expected?

I'm thinking about managing a repository like this:
https://github.com/portto/flow-transactions
Basically anyone can submit a PR with transaction templates like this
https://github.com/portto/flow-transactions/blob/main/transactions/FlowToken/sendFlowToken.cdc
And provide the corresponding message to be shown for the transaction like
{
"arguments": [
"amount",
"to"
],
"messages": {
"en": "Send {amount} FLOW to {to}",
"zh_CN": "发送 {amount} FLOW 代币至 {to}",
"zh_TW": "發送 {amount} FLOW 代幣至 {to}"
}
}
We will then review the transactions and merge the PR if everything looks fine
Once they're merged, the transaction templates will be processed to create actual transaction scripts for both mainnet and testnet with corresponding hash values. dapps should use the exact same transaction script as the processed file (we can also provide hex encoded version as well)
https://github.com/portto/flow-transactions/blob/main/build/FlowToken/sendFlowToken.mainnet.cdc
When dapp initiates transaction, Blocto popup will hash the script and see if there's a match with
https://github.com/portto/flow-transactions/blob/main/build/messages.mainnet.sha3.json
If it's a match, Blocto will display the message defined in the authorization popup
Also there's a managed list of contracts, to prevent people from creating a contract with the same name but different purposes, to steal users funds.
https://github.com/portto/flow-transactions/blob/main/config.json
And this process is optional for dapps. It's just that if they do this, the users can trust the signature request a little bit more.

I really like this approach. I'd say let's move forward with this solution as a good initial step.
Also, I was trying to think of a way to also provide transaction re-use across contracts, but maybe we don't need to get that fancy out the gate.   For example, TransferNFT.cdc transaction will likely look exactly the same for all apps:
import NonFungibleToken from 0xNON_FUNGIBLE_ADDRESS
import _GENERAL_NFT from 0xGENERAL_NFT_ADDRESS

// This transaction is for transferring and NFT from
// one account to another

transaction(recipient: Address, withdrawID: UInt64) {
    prepare(acct: AuthAccount) {

        // get the recipients public account object
        let recipientAccount = getAccount(recipient)

        // borrow a reference to the signer's NFT collection
        let collectionRef = acct.borrow<&_GENERAL_NFT.Collection>(from: _GENERAL_NFT.CollectionStoragePath)
            ?? panic("Could not borrow a reference to the owner's collection")

        // borrow a public reference to the receivers collection
        let depositRef = recipientAccount.getCapability(_GENERAL_NFT.CollectionPublicPath)!.borrow<&{_GENERAL_NFT._GENERAL_NFTCollectionPublic}>()!

        // withdraw the NFT from the owner's collection
        let nft <- collectionRef.withdraw(withdrawID: withdrawID)

        // Deposit the NFT in the recipient's collection
        depositRef.deposit(token: <-nft)
    }
}

In the above, your solution would already string replace the contract addresses in Lines 1 and 2 using the config.json file, so the only other string replace needed would be for the actual contract name _GENERAL_NFT.  If you can think of a simple solution for this, it might help for standardization of similar transactions and for scaling assuming there could be thousands of separate ex. TransferNFT.cdc transactions being submitted for all the various NFT contracts on Flow.

It would be nice if cadence-docgen was expanded to handle transactions as well. So that the developer can add some words on what is going on in it.

I think the ultimate solution (to custom transactions etc) is to cover all mutations on the chain with transaction post conditions.
But showing that in a user-friendly manner which my mom can understand is totally different story.


LinePaginator

Adds line pagination.

LGTM 👍

Lovely to see some reviews coming in! Have you tested this @ShakyaMajumdar @RohanJnr? It’s totally fine if not, but I need to know before merging 😄

Lovely to see some reviews coming in! Have you tested this @ShakyaMajumdar @RohanJnr? It’s totally fine if not, but I need to know before merging 😄

Yep, tested and works fine for me.

Lovely to see some reviews coming in! Have you tested this @ShakyaMajumdar @RohanJnr? It’s totally fine if not, but I need to know before merging 😄

works fine

Perfect, thanks. I’ll merge!

Not much will happen with the reviews. Still, maybe we could update the code to your reviews? @codephile1221 @Shivansh-007 Would you like to create a new PR to update/refine this, or do you have any other ideas?


License

Hello, @pexcn Do you agree to change the open source license of this project to GPLv3?
Thanks!

Yes~


refactor(transformer/class-properties): do not take mut ref when immut ref will do

#8042
#8041
#8040  👈 (View in Graphite)
main

How to use the Graphite Merge Queue
Add either label to this PR to merge it via the merge queue:

0-merge - adds this PR to the back of the merge queue
hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

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


Start Utilizing Jobs

Requests currently have to wait for emails to fire off so having some of that being async would be really nice

Relevant Link


[Add] Heroicons

Fixes Issue
Closes #528

Changes proposed
Heroicons  link is added to frontend category

Screenshots

Note to reviewers

Please, what's the meaning of "lgtm"

Please, what's the meaning of "lgtm"

Looks good to me

Please, what's the meaning of "lgtm"

Looks good to me
Oh thanks


Find 12.2, how to use simpleVariables array in home/customization/style.json

Dear Sirs
I tried to override some "core" less variables in style.json as fiollows:
{
	"simpleVariables": {
		"@hpegreen": "#47695b",
		"@hpegreen-hover": "#62746c",
		"@hpegreen-active": "#71a992",
		"@disabled-color": "#EDEDED"
	}
}

but no override took place... what is the correct mode to use that style.json file?
[other than the example I can find in the Pdf documentation, page 60 "Change Highlights color"]

to be a little more precise: what is the correct way to use these (see pict) customization files?

The "Find_12.2_Administration_en.pdf" is scarcely explaining their use, by poor examples


fork again this repo and resubmit my homework

Good Job!!!   @WTLleo
Python homework:

Total questions: 108
Correct answers: 106
Score: 98.00%

Numpy homework:

Total questions: 10
Correct answers: 10
Score: 100.00%

Pandas homework:

Total questions: 12
Correct answers: 11
Score: 91.00%

Good Job!!! @WTLleo
Python homework:

Total questions: 108
Correct answers: 106
Score: 98.00%

Numpy homework:

Total questions: 10
Correct answers: 10
Score: 100.00%

Pandas homework:

Total questions: 12
Correct answers: 11
Score: 91.00%

@WTLleo
把Python基础作业和拓展作业做到100%我再给你记成绩如何？