Dumb MLP example but I cannot parse the meaning of the error

Hi Patrick,  sorry to post this, but I must be dumb...
Based on the documentation, I am trying a simple training loop on a small model.
There are many subtle aspects I cannot parse (e.g. optim.init(eqx.filter(model, eqx.is_array)), and some decorators instead of others), which if not done as in the documentation, generate errors.
However the following code, which is almost one example you have in the documentation, generates an error at the training loop:
ValueError: You are using a transformation that requires the current value of parameters, but you are not passing `params` when calling `update`.

code
model = eqx.nn.MLP(X_train.shape[1], 1, 4, y_train.shape[1], key=key)

# Initialize model and optimizer
key = jax.random.PRNGKey(0)
batch_size = 10_000
optim = optax.adamw(0.001)
num_epochs = 100

# initialize model and optimizer
opt_state = optim.init(eqx.filter(model, eqx.is_array))    # obscure use of filter

@eqx.filter_value_and_grad
def loss_fn(model, x, y):
    pred_y = jax.vmap(model)(x)  # vectorise the model over a batch of data
    return jnp.mean((y - pred_y) ** 2)  # L2 loss

@eqx.filter_jit
def make_step(model, x, y, opt_state):
    loss, grads = loss_fn(model, x, y)
    updates, opt_state = optim.update(grads, opt_state)
    model = eqx.apply_updates(model, updates)
    return loss, model, opt_state

def dataloader(arrays, batch_size):
    """ Typical dataloader that shuffles the data and returns batches """
    dataset_size = arrays[0].shape[0]
    assert all(array.shape[0] == dataset_size for array in arrays)
    indices = np.arange(dataset_size)
    while True:
        perm = np.random.permutation(indices)
        start = 0
        end = batch_size
        while end <= dataset_size:
            batch_perm = perm[start:end]
            yield tuple(array[batch_perm] for array in arrays)
            start = end
            end = start + batch_size

train_dataset = dataloader((X_train, y_train), batch_size)
test_dataset = dataloader((X_test, y_test), batch_size)

for step, (x, y) in zip(range(num_epochs), train_dataset):
    loss, model, opt_state = make_step(model, x, y, opt_state)
    loss = loss.item()
    print(f"step={step + 1}, loss={loss}")

Is there any obvious thing?

This is an issue with Optax. Your choice of optimiser (adamw) needs to know the current value of the parameters (in this case, to do weight decay).
You want:
updates, opt_state = optim.update(grads, opt_state, eqx.filter(model, eqx.is_array))

i.e. to extract all the model parameters by filtering. (The same parameters as were passed to optim.init.)

I see. I took this line from one of your examples, maybe I made a typo.

Super fast, as usual. Thanks Patrick.
for completeness the working example
@eqx.filter_value_and_grad
def compute_loss(model, x, y):
    pred_y = jax.vmap(model)(x)
    # Trains with respect to binary cross-entropy
    return jnp.mean((y - pred_y) ** 2)

@eqx.filter_jit
def make_step(model, x, y, opt_state):
    loss, grads = compute_loss(model, x, y)
    # updates, opt_state = optim.update(grads, opt_state)
    # Some optimizers, e.g. adamw, need the model parameters (others don't)
    updates, opt_state = optim.update(grads, opt_state, eqx.filter(model, eqx.is_array))
    model = eqx.apply_updates(model, updates)
    return loss, model, opt_state

def dataloader(arrays, batch_size, shuffle=True):
    """ Typical dataloader that shuffles the data and returns batches """
    dataset_size = arrays[0].shape[0]
    assert all(array.shape[0] == dataset_size for array in arrays)
    indices = np.arange(dataset_size)
    while True:
        if shuffle:
            perm = np.random.permutation(indices)
        else:
            perm = indices
        start = 0
        end = min(batch_size, dataset_size)
        while end <= dataset_size:
            batch_perm = perm[start:end]
            yield tuple(array[batch_perm] for array in arrays)
            start = end
            end = start + batch_size

optim = optax.adamw(learning_rate)
# opt_state = optim.init(model)
opt_state = optim.init(eqx.filter(model, eqx.is_array))

train_dataset = dataloader((X_train, y_train), batch_size)
test_dataset = dataloader((X_test, y_test), batch_size)

iter_train = zip(range(num_epochs), train_dataset, test_dataset)
for step, (x, y), (xt, yt) in iter_train:
        loss, model, opt_state = make_step(model, x, y, opt_state)
        loss = loss.item()
        test_loss = float(compute_loss(model, xt, yt)[0])
        print(f"step {loss}, {test_loss})


Added a kagi search extension

Description
This adds a search (with suggestions) extension to Raycast, for kagi.com. Invites to the search are available on their site. This extension requires a token you are provided when you sign up.
This is a difficult one to test, because you need to be in on the beta.
Type of change

New extension

Screencast
https://cln.sh/AmvPUA
Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast

There should be some information on how to get your token.

and the extension should be in the correct folder.  My apologies, I'll fix it.

Is list-icon.png used? If not, it should be deleted.

Also, command-icon.png should be 512x512, not 76x76.

Tested locally with changes and all is good.

This is great!
Just feedback: I think having search Kagi for ... subtitle is a bit redundant since the user already knows that they're searching using Kagi, and the title also already displays the suggestions

I think the solution is I change the "Results" title to be "Search Kagi for..." and then just list results.

Like so:
https://cloud.fearof.fish/ZOMG7y

Hi @fearoffish 👋
It seems like I can't find the command title correction, could you please provide it 😄

My mistake, I only pushed to my own extension repo!


⚠ AsianCinema has degraded performance

In a57d4ca, AsianCinema ($ACM) experienced degraded performance:

HTTP code: 525
Response time: 20499 ms

Resolved: AsianCinema performance has improved in c2771df.


feat: add get negotiation by agreement id endpoint

What this PR changes/adds
Adds an additional endpoint GET /v2/contractagreements/{id}/negotiation to obtain a negotiation given a contract agreement id
Why it does that
Seems to be a pretty needed functionality
Further notes

improved some api documentation

Linked Issue(s)
Closes #2316
Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

Codecov Report
Patch coverage: 50.00% and project coverage change: -0.01% :warning:

Comparison is base (f9f4bfb) 72.15% compared to head (c045b5a) 72.15%.
Report is 2 commits behind head on main.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3360      +/-   ##
==========================================
- Coverage   72.15%   72.15%   -0.01%
==========================================
  Files         803      803
  Lines       16543    16555      +12
  Branches      952      952
==========================================
+ Hits        11937    11945       +8
- Misses       4209     4213       +4
  Partials      397      397

Files Changed
Coverage Δ

.../management/configuration/ManagementApiSchema.java
0.00% <0.00%> (ø)

...dc/connector/api/management/asset/v3/AssetApi.java
0.00% <ø> (ø)

...nt/contractnegotiation/ContractNegotiationApi.java
0.00% <ø> (ø)

...ava/org/eclipse/edc/spi/response/StatusResult.java
0.00% <0.00%> (ø)

...ava/org/eclipse/edc/spi/result/AbstractResult.java
90.00% <ø> (+2.90%)
:arrow_up:

...n/java/org/eclipse/edc/spi/result/StoreResult.java
60.00% <0.00%> (-6.67%)
:arrow_down:

...lipse/edc/spi/system/health/HealthCheckResult.java
0.00% <0.00%> (ø)

...connector/dataplane/spi/pipeline/StreamResult.java
30.00% <0.00%> (-3.34%)
:arrow_down:

...ava/org/eclipse/edc/spi/command/CommandResult.java
62.50% <66.66%> (-8.93%)
:arrow_down:

...ontractagreement/ContractAgreementServiceImpl.java
84.61% <100.00%> (+4.61%)
:arrow_up:

... and 1 more

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


add method for unusedMocks

closes #227

Hey @WaleedAshraf , thanks for the PR. I think this makes sense.


Seems antiphish policies do not work when applied to groups.

Hi,
I've created am antiphish policy that is applied to some users and groups, the problem if users that are in the groups, they do not have for instance the "first contact safety tip", when they are added individually - all is good, so seems that there might be a problem with applying policies on people in groups. Could you please test this thing out at your end?
Kind regards,
Paweł Jarosz

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

ID: 70ea08aa-4520-8f48-93e2-0ce74cd43298
Version Independent ID: 7be23d3d-f72b-abd3-e2c4-96ff3998a59b
Content: Configure anti-phishing policies in Microsoft Defender for Office 365 - Office 365
Content Source: microsoft-365/security/office-365-security/configure-mdo-anti-phishing-policies.md
Product: m365-security
Technology: mdo
GitHub Login: @chrisda
Microsoft Alias: chrisda

Actually it has issues for us even when person is added individually - I have applied policy to myself as well to one employee -  I got the additional disclaimer while he didn't. I got a case at MS opened as well - you can find more details there (with example emails):
[Case #:28795396] - Seems antiphish policies do not work when applied to groups
And today a second one when I've found out it has not applied to one external email and person is added individually
[Case #:28845346] - Antiphish policy not applied to email

Got reply from support, but for me it is really odd:
"Regarding the rule which you created to apply Anti Phish policy, The rule is an "AND" rule, meaning that the recipient has to be listed AND has to be a member of the group, both at the same time, for this rule to work. Just being a member of the group isn't sufficient.  This rule logic is correct, and according to the current design of our product. So the rule has to be changed, or otherwise multiple rules can be created as alternative"

Ok I've just read carefully the documentation. There is AND indeed -> https://docs.microsoft.com/en-us/microsoft-365/security/office-365-security/set-up-anti-phishing-policies?view=o365-worldwide, I am just wondering how come "Just being a member of the group isn't sufficient" is true, will test that.


Some functions are missing in Dev17.

Environment

Actual result
1. Extract method and remove imports are missing.

Go to to Edit> Refactor
Observe

I believe these are no longer supported.

Looks like some of the docs on this page need to be revisited:
https://docs.microsoft.com/en-us/visualstudio/python/refactoring-python-code?view=vs-2022#extract-method
I'll go ahead and investigate these and close this when the PR is done

PR in for removing code


Need a way to retrieve flashes via AJAX

Have the code, need to test an add

Added: https://github.com/josephspurrier/gowebapp/commit/a2a52c4218e28207c916f634200ae37d57b68492


Update New-TenantAllowBlockListSpoofItems.md

Added 'verified DKIM domain' to SendingInfrastructure parameter

Docs Build status updates of commit 2b63f5a:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/New-TenantAllowBlockListSpoofItems.md
:white_check_mark:Succeeded
View (exchange-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Docker Jupyter Image

This PR must be merged after https://github.com/src-d/spark-api/pull/78
Changes:

Added rules to Makefile to run and build our jupyter-spark-api container and bblfsh easily.
Updated notebook example.
Notebooks examples are now under examples/notebooks.
Added siva-files for use from examples under examples/siva-files. They are some little repos that contain python and java files, so UAST extraction can be used.
bblfsh endpoint configuration is loaded in the container from the spark-defaults.conffile. Spark load from this file those keys which start by spark. so our tech.sourced.whatever variable has been renamed to spark.tech.sourced.whatever.
The bblfsh scala client version has been updated to v0.2.0 to be compatible with last bblfsh versions.
Updated README to show how to run jupyter and bblfsh containers.

rebase please.

@ajnavarro rebase accomplished

Note that the bblfsh version used (v.1.2.0) works because client-scala dependency is updated to v0.2.0 which is not a "stable" version. We should change the client-scala version to v.1.0.0 when it is ready.


Implement SWITCH

@ducthuy-ng Please check this code on other platforms

Can't find .Mjpeg files. glob is case-sensitive.


there are some data races when run go test -race

What happened:
there are some data races when run go test -race ./pkg/... on main branch
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?
Environment:

JuiceFS version (use juicefs --version) or Hadoop Java SDK version: m
Cloud provider or hardware configuration running JuiceFS:
OS (e.g cat /etc/os-release):
Kernel (e.g. uname -a):
Object storage (cloud provider and region, or self maintained):
Metadata engine info (version, cloud provider managed or self maintained):
Network connectivity (JuiceFS to metadata engine, JuiceFS to object storage):
Others:

the directories are pkg/chunk ,pkg/fs.

The races found are caused by test code or acceptable, we'll just leave them intact.


Origin Fifa - Mouse wont disappear

Hi,
I like and use OSOL a lot at my living room while my PC is in the cellar. It works mostly perfect, having only one issue with FIFA on Origin. I use FIFA 2018 but tested it on FIFA 2020 DEMO as well.
After launching it the mouse cursor wont disapper and sticks at the middle of the screen. The controllers (XBOX 360 Controllers connected to steam link) work fine.
Any help or info would be appreciated.
Sorry for my bad english since I am not a native speaker.
Greetings
ListGrey

You can use a steam chord press to move the mouse via the right stick. Just
hold the Xbox button and use the right stick to move the cursor, it should
work by default.
On September 21, 2019 6:43:54 AM ListGrey<EMAIL_ADDRESS>wrote:

Hi,
I like and use OSOL a lot at my living room while my PC is in the cellar.
It works mostly perfect, having only one issue with FIFA on Origin. I use
FIFA 2018 but tested it on FIFA 2020 DEMO as well.
After launching it the mouse cursor wont disapper and sticks at the middle
of the screen. The controllers (XBOX 360 Controllers connected to steam
link) work fine.
Any help or info would be appreciated.
Sorry for my bad english since I am not a native speaker.
Greetings
ListGrey
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Thx a lot, that solves the "issue" for me.
I dont know if the behaviour of OSOL in this case is interesting in any way for development - when starting the game from steam directly (with the nonsteam-shortcut) the mouse disappears - only when starting from big picture mode via steam link that happens.
Thx a lot for your excellent work,
Greetings


Add MIT License

On https://pypi.org/project/airtable/ this project is listed as having the MIT license but this is not apparent from the GitHub repo. If the project is intended to be MIT licensed could you accept this PR? This would make it easier for us to get permission to use this project in our company and make it clearer to others viewing this repo what the intended license is.

Here's an explanation over why to include a license if you intend people to be able to make use of your project: https://choosealicense.com/no-permission/


Manual policy routing configuration

Currently oor/data-plane/tun/tun.c always adds several policy routing rules. These are good for most standard systems, but sometimes give the opposite result when applied to complex network configurations.
Especially because the rules are such high-priority! Why does tun_add_datap_iface_addr() even use iface->iface_index as the priority value? For example, after starting oor I end up with this rule: 2: from 2a01:6f0:ffff:1::2 lookup 2 – which forces everything through the default gateway ignoring my tunnel and VPN routes.
Meanwhile, the rules from tun_register_lcl_mapping() are harmless... as long as they're cleaned up on shutdown. (Unfortunately current kernels don't check for duplicates, so every time oor crashes/restarts the rule list grows...)
So there should be an option to disable the two sets of policy rule additions, or at least to customize the rule priority used in tun_add_datap_iface_addr().

We need a different table for each iface to add the associated default address. This is the way we use to do traffic balancing between several interfaces.
We have done a quick fix to mitigate your requirements. Now, the table number / priority is calculated with the iface index plus RULE_IFACE_BASE_TABLE_PRIORITY. This value is set to 10 and is defined in the file routing_tables_lib.h. If you need bigger values you can recompile the code changing this value.


fix: upgrade "strict-event-emitter" to 0.5.1

Related to #432 (fixes the wrapping of .once() listeners so they can be awaited).

Released: v0.25.3 🎉
This has been released in v0.25.3!

📄 Release notes
📦 npm package

Make sure to always update to the latest version (npm i @mswjs/interceptors@latest) to get the newest features and bug fixes.

Predictable release automation by @ossjs/release.


Fix GuildName slice length on GuildCreateRequest struct

It's breaking the guild creation for names with 8 characters since it's adding an extra noise character

It's necessary to fix in the XML. That's file is auto generated.


modify api fuzzer code to disallow specification of grpc-timout metad…

Fixes (b/209281496). Prevents api fuzzer from including "grpc-timeout" metadata on the server side.
@drfloob

What's the outcome if it is specified?
I'd expect a call error be returned and the API fuzzer to handle that.
On Thu, Dec 23, 2021, 2:48 PM Vignesh Babu @.***> wrote:

@Vignesh2208 https://github.com/Vignesh2208 requested your review on:
#28419 https://github.com/grpc/grpc/pull/28419 modify api fuzzer code
to disallow specification of grpc-timout metad….
—
Reply to this email directly, view it on GitHub
https://github.com/grpc/grpc/pull/28419#event-5811777041, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACNG45LBWQPYBVPJSGSEZV3USORLNANCNFSM5KVTVSJA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because your review was requested.Message ID:
@.***>

What's the outcome if it is specified? I'd expect a call error be returned and the API fuzzer to handle that.
…
On Thu, Dec 23, 2021, 2:48 PM Vignesh Babu @.> wrote: @Vignesh2208 https://github.com/Vignesh2208 requested your review on: #28419 <#28419> modify api fuzzer code to disallow specification of grpc-timout metad…. — Reply to this email directly, view it on GitHub <#28419 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACNG45LBWQPYBVPJSGSEZV3USORLNANCNFSM5KVTVSJA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because your review was requested.Message ID: @.>

It causes a crash in the chttp2 transport code due to assertion failure: https://github.com/grpc/grpc/blob/f6d392b6238b8e242fddbc695d6368c3bf13070d/src/core/ext/transport/chttp2/transport/chttp2_transport.cc#L1593
It appears that for servers, the transport expects no "grpc-timeout" value to exist in the initial or trailing metadata

Should the grpc core code be changed here instead of api fuzzer ?

I think so yeah... This feels like "a misuse of API should not break grpc"
type issue.
We could probably just remove GrpcTimeoutMetadata in call.cc?
On Thu, Dec 23, 2021, 3:08 PM Vignesh Babu @.***> wrote:

Should the grpc core code be changed here instead of api fuzzer ?
—
Reply to this email directly, view it on GitHub
https://github.com/grpc/grpc/pull/28419#issuecomment-1000557557, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ACNG45NR2GJX53B6DAHY5ODUSOTX3ANCNFSM5KVTVSJA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because your review was requested.Message ID:
@.***>


Track potential discrepancies between matric and copairs

@alxndrkalinin noticed discrepancies beween matric and evalzoo.
The edges and similarities are identical, but the metrics differ.
We suspect there's a bug in matric in some edge cases.
We think this is a bug in matric and not copairs because something looks funky in the indices of the metrics_level_1_0 files – they don't match the indices of the collated_sim file.
Here's how we'd test it. The example below does not show any discrepancies. But some examples that @alxndrkalinin had did show discrepancies
l_1_0 <- read_parquet("results/10547453/metrics_level_1_0_non_rep.parquet")
csim <- read_parquet("results/10547453/collatedsim.parquet")
l_1_0_id1 <- l_1_0 %>% distinct(id1)
csim_id1 <- csim %>% distinct(id1)
# we expect all the `id1` in `metrics_level_1_0_non_rep` to be present in `collatedsim`
stopifnot(l_1_0_id1 %>% anti_join(csim_id1, by = "id1") %>% nrow() == 0)

@alxndrkalinin can you upload an example where there were discrepancies

Furher investigation showed that there were 2 main causes of these discrepancies:

evalzoo results were obtained on profiles loaded from parquet file that also contained row index as a column—a result of saving them with pandas.to_parquet() without specifying index=False, which by default stores index as a range in the metadata, but when read in evalzoo it becomes a feature column
evalzoo also do not re-calculate similarities/metrics if corresponding files are already present in the results directory, so to ensure a complete re-run of a specific param config, it's results directory should be deleted

After addressing both issues, AP values match exactly between evalzoo and coparis for all experiments in ORF plate layout correction, confirming that this is not a matric/evalzoo bug. The above should be kept in mind when using evalzoo for mAP calculations.


chore: release v0.3.16

:robot: I have created a release beep boop
0.3.16 (2024-04-07)
What's Changed

chore(cmd): remove logging primarily included for testing by @coffeebeats in https://github.com/coffeebeats/gdbuild/pull/131

Full Changelog: https://github.com/coffeebeats/gdbuild/compare/v0.3.15...v0.3.16

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/coffeebeats/gdbuild/releases/tag/v0.3.16 :sunflower:


Banyandb integration

[x] If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes #7412
[ ] Update the CHANGES log.

New Design
After discussion with @hanahmily and @wu-sheng , I present the following new storage plugin,
The banyanDB client sits in the org.apache.skywalking.banyandb.client package,

Provide general API for query and write, which are not related to the underlying protobuf anymore,
Provide high level client which implementes BanyanDBService interface,
Also the client does not care about the schema definitions

The plugin is now decoupled from H2/JDBC and other storage plugins. For those features unimplemented yet, blank APIs are given as stubs now.

I put many comments, but not all. @hanahmily I am not sure what code style is required in BanyanDB codebase, but this PR is not ready from main repo's requirements.
All API level methods should have formal comments to describe usage, and meaning of parameters and return value. Even include how and where should use this APIs.
My major requirements are for BanyanDB package, I would like to be very strict about this API review. Feel free even to submit a PR to submit this. Also, I recommend to move all BanyanDB client source codes as the root module of oap-server. It should be org.apache.skywalking:banyandb-java-client.

I have improved this PR following you comments.

The client package has been moved as a module in the oap-server
The typed API are introduced to avoid runtime type checking for performance issues
Docs are added to all interfaces and fields in the client package

I will provide a code prototype(most implementation) for you tonight.
You will see how we build official client jar.
I hope this could inspire you in the future.

@lujiajing1126 I open https://github.com/apache/skywalking/pull/7455/ for you.

@lujiajing1126 I open #7455 for you.

Sure. I will have a check. Thx


Additional EP600 values

EP600 additions:

Consumption values
Grid, Consumptions and Solar Totals (as displayed on the first page of the Bluetti APP)

Could you remove the IntelliJ directory?

Could you remove the IntelliJ directory?
Not sure if I understand what you want me to remove. I am not aware that I‘ve added an IntelliJ directory. Can you please be a little more specific about what you want me to remove ?

I mean the .idea directory


add support for multiple tenant migration path

Closes #598

Wouldn't casting the value to array be easier?

@luceos more readable in my opinion :)

Description edited to auto-close referenced issue

Laravel casts arguments to array everywhere. So if I have to choose between your personal preference and what the author of the framework we are working with does, then I'll go for the latter 😉

@luceos edited 👍

I will bug you once more 😞 Please reset to your initial proposal, it works out the best in this scenario.
Sorry for the troubles 🤗

@luceos haha its okay 👍


Fix Bug in im2col.

Fixes a minor bug which occurs if you use col2im without a batch dimension. This bug affects the backwards step of im2col.

thanks a lot!


Make GKEClusterCreateOperator idempotent

The idempotence is assured in hook. But I have other concerns regarding payload types. I thought that we expect users to pass dictionaries to operators as they are python generics and probably user will use them anyway (for example to convert them to Cluster or Job objects). I think it is the right approach.
This however leaves the question what type should be accepted in hook?
In my opinion we should expect proto objects. In this way we will enforce input verification in operators (like using ParseDict()). This will be easy to refactor with mypy. We can also add to GoogleBaseHook a small helper:
@staticmethod
def verify(payload: Dict, proto: Any) -> Any:
    return ParseDict(payload, proto())

WDYT @mik-laj @potiuk @TobKed @michalslowikowski00

Agree. Proto is good idea.

One more concern. Will veryfying an input in constructor be problematic due to templated fields?

@nuclearpinguin what do you mean by types? Is it about type annotations?

Exactly, now we use Union[Dict, Object] but if we want to go with only Dict then we should simplify annotations.

I agree, Dict type only in this case seems to be a good way.

This operators is idempotent:
[2019-11-19 13:38:18,628] {taskinstance.py:864} INFO - Executing <Task(GKEClusterCreateOperator): create_cluster> on 2019-01-01T00:00:00+00:00
[2019-11-19 13:38:18,656] {kubernetes_engine.py:231} INFO - Creating (project_id=polidea-airflow, zone=europe-north1-a, cluster_name=cluster-name)
[2019-11-19 13:38:18,657] {base.py:147} INFO - Getting connection using `google.auth.default()` since no key file is defined for hook.
[2019-11-19 13:38:19,004] {kubernetes_engine.py:243} INFO - Assuming Success: Already exists: projects/polidea-airflow/zones/europe-north1-a/clusters/cluster-name.
[2019-11-19 13:38:19,005] {base.py:147} INFO - Getting connection using `google.auth.default()` since no key file is defined for hook.
[2019-11-19 13:38:19,008] {kubernetes_engine.py:272} INFO - Fetching cluster (project_id=polidea-airflow, zone=europe-north1-a, cluster_name=cluster-name)


Pin nightly version

Today's nightly update broke integration tests somewhere in rusty-hermit.
This pins the nightly version.

bors try

Weird, I can't reproduce the failure locally. :thinking:

Maybe try another nightly?

Heureka! At least I can reproduce the issue now.

Closing in favor of https://github.com/hermitcore/uhyve/pull/178.


Add new option for selection of arrow symbols

Add a new option to allow selection of different symbols from the font awesome library.
List of icons:
http://fontawesome.io/icons/
Suggested configuration:
{{< gallery-slider dir="/img/portfolio/" arrow-left="fa-angle-double-left" arrow-right="fa-angle-double-right" >}}
Tasks:

Add necessary code
Update documentation
Update examples

Merged and solved.


Use annotation id for relationships

Relations to other arguments currently only store the annotation's zoteroKey which identifies the publiation or pdf, not the annotation.
Figure out if there's a global id we can use (shared also when syncing via groups), or if it should be zoteroKey + argument name/id.

This has been fixed, but we still have to find out if the key is stable across different users.


Set up GitHub Actions workflow

Add phpstan, PHPcs with wpcs and PHPCompat rules.

composer validate --strict etc.


Remove print statement

Introduced by mistake in https://github.com/lucuma/sqlalchemy-wrapper/commit/eb7aa01e90b4f4125be45828637ae601af7d0a41#diff-ac8a5cedde514a6c3394aa1164bbc166R94?

Thanks


Project cannot compile

The project cannot compile, it has 45 issues.  I'm using xcode 6.2
e.g. errors:
...
Artisan/src/Artisan.swift:355:125: Type of expression is ambiguous without more context
Artisan/src/Artisan.swift:127:13: Use of unresolved identifier 'ellipse_'
Artisan/src/Artisan.swift:172:62: Use of unresolved identifier 'rectangle'
Artisan/src/Artisan.swift:355:125: Braced block of statements is an unused closure
...

The code has been update for Swift 2.1 and Xcode 7.2 if you want to try again.


Package Versions / Install Requirements?

Dear Julian,
Thanks for sharing the code. Sorry if I missed it, but I haven't found any information about which packages (incl. versions) your code is relying on. Could you please share a list of install-requirements? That would be great, thanks!
Best,
Philipp

Please see issue 7


How is indexing handled by Azure search?

Assuming a standard tier with 3 replicas and 1 partition, how does Azure search handle indexing and also serve inbound requests?
Does Azure search ensure that indexes are applied to one replica at a time and that particular replica is not serving the inbound request?
If not, then how do we programatically handle the scenario when indexing is running during peak hours?

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

ID: a0c6e868-ae7b-d03b-17f9-0013fc1d3319
Version Independent ID: 3a3c24f7-0281-d6fc-a59b-def175b59fc2
Content: Deployment and performance optimization - Azure Cognitive Search
Content Source: articles/search/search-performance-optimization.md
Service: cognitive-search
GitHub Login: @LiamCavanagh
Microsoft Alias: liamca

@swagulkarni ,  Thanks for raising the issue.We will investigate the issue and update you.

@swagulkarni, There is no way to directly manipulate or manage which indexes run on a replica. One copy of each index on every replica is part of the service architecture. Each replica always hosts one copy of an index. Additional copies of the index are brought online to support bigger query workloads and to load balance the requests over the multiple replicas.

@AjayKumar-MSFT  - I understand that the a copy of index is stored on each replica. My question is to understand how Azure search handles the incoming search requests when indexing operation is also going on at the same time.
Is there a possibility that users might see inconsistent results depending on which replica the request?

@swagulkarni, Apologies for the delay!  All search nodes are capable of both indexing and serving requests simultaneously. If a node is being overloaded with requests (indexing or search), it will start queuing up the requests (which will increase the time it takes to complete them), and once the queue is full, it will start throttling additional requests (http code 503). There’s no fixed threshold for throttling, it depends on the number, type and complexity of requests each node receive.
In term of relation between indexing and search results, may experience inconsistent results shortly after indexing. In cases with multiple replicas, if a new document is indexed, the service will return an http 201 response to confirm the document was received. At this point you can be confident the document will “eventually” be available on all replicas (usually just a matter of seconds), however there’s a small window of time during which some (but not all) replicas will have the document, so the results might vary depending on which replica set is responding to your request. Hope this helps!


IndexError: list index out of range

When I run the code then it gives me the error....
Traceback (most recent call last):
File "", line 1, in
runfile('C:/Users/mark/CarSpeedDetection/vehicle_detection_main.py', wdir='C:/Users/mark/CarSpeedDetection')
File "C:\Users\Administrator\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile
execfile(filename, namespace)
File "C:\Users\Administrator\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Users/mark/CarSpeedDetection/vehicle_detection_main.py", line 124, in
object_detection_function()
File "C:/Users/mark/CarSpeedDetection/vehicle_detection_main.py", line 91, in object_detection_function
np.squeeze(scores), category_index, use_normalized_coordinates=True, line_thickness=4)
File "C:\Users\mark\CarSpeedDetection\utils\visualization_utils.py", line 304, in visualize_boxes_and_labels_on_image_array
use_normalized_coordinates=use_normalized_coordinates)
File "C:\Users\mark\CarSpeedDetection\utils\visualization_utils.py", line 74, in draw_bounding_box_on_image_array
display_str_list, use_normalized_coordinates)
File "C:\Users\mark\CarSpeedDetection\utils\visualization_utils.py", line 103, in draw_bounding_box_on_image
current_path + "/utils/color_recognition_module/" + "test.data")
File "./utils\color_recognition_module\knn_classifier.py", line 64, in main
neighbors = kNearestNeighbors(training_feature_vector, test_feature_vector[x], k)
File "./utils\color_recognition_module\knn_classifier.py", line 24, in kNearestNeighbors
neighbors.append(distances[x][0])
IndexError: list index out of range

I had similar issues running the code on python 3.5, had to change 'rb' flag to 'r' when it reads the data in knn_classifier.py. Also there was one instance there iteritems() was used, if you are using python 3 change it to items().


a serious problem about test.py

hello, I found a very serious problem. The val set and the test set are the same data set, but the test result is much smaller than the mAP during verification. The bbox that outputs the test results is also terrible.

I found that this problem occurred when I modified the structure of the original model. So how to solve this problem.

More specifically, this problem occurs when I directly add some attention mechanism modules to resnet or FPN based on the faster rcnn model.

This problem does not exist when I delete these modules and use the base model for training and testing

This problem does not exist when I delete these modules and use the base model for training and testing

I may know the problem. I didn't register the pytorch module, so the parameters were not saved.


Sharing buttons desappearing

In your demo, sharing buttons are appearing, and then dissapearing.
Tested on latest Google Chrome version 49.

Probably due to a RRSSB bug. I have Chrome 47 and latest Chromium/Canary 50 (OSX OS) and I don't see any issue. What's your operating system ? Could you be more specific?

Yes, I've verified and the problem is uBlock. It is blocking RRSSB. I don't know why, it's important because uBlock is well known.

Ok, so once RRSSB fix it I'll update the dependency.

Tks! I've opened an issue in RRSSB.

kni-labs/rrssb#164


System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.Collections.Generic.HashSet`1.Enumerator.MoveNext()

I'm occasionally getting the below exception. All my code is doing is the following:
using (var context = new DbContext())
{
     context.Update(entity); //entity is a disconnected entity
     await context.SaveChangesAsync(token).ConfigureAwait(false);
}

This is happening in a multi-threaded environment, but each thread creates its own context independently. Is there some shared state between instances of DbContext?
Exception message:
System.InvalidOperationException: Collection was modified; enumeration operation may not execute
Stack trace:
at System.Collections.Generic.HashSet`1.Enumerator.MoveNext()
at System.Collections.Generic.HashSet`1.UnionWith(IEnumerable`1 other)
at System.Collections.Generic.HashSet`1..ctor(IEnumerable`1 collection, IEqualityComparer`1 comparer)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.SnapshotFactoryFactory.SnapshotCollection(IEnumerable`1 collection)
at lambda_method(Closure , InternalEntityEntry )
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry.RelationshipsSnapshot..ctor(InternalEntityEntry entry)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry.EnsureRelationshipSnapshot()
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntrySubscriber.SnapshotAndSubscribe(InternalEntityEntry entry)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.StartTracking(InternalEntityEntry entry)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.InternalEntityEntry.SetEntityState(EntityState oldState, EntityState newState, Boolean acceptChanges)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityGraphAttacher.PaintAction(EntityEntryGraphNode node, Boolean force)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityEntryGraphIterator.TraverseGraph[TState](EntityEntryGraphNode node, TState state, Func`3 handleNode)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntityEntryGraphIterator.TraverseGraph[TState](EntityEntryGraphNode node, TState state, Func`3 handleNode)
at Microsoft.EntityFrameworkCore.DbContext.SetEntityState[TEntity](TEntity entity, EntityState entityState)

Further technical details
EF Core version: 2.2
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system: Windows 10
IDE: VS 2017

@MgSam This stack trace indicates that a collection on an entity is being modified while EF is iterating over it. Is it possible that the same entity instances are being shared by multiple threads, even though each of these is using a different context instance?

Thanks. Yes, that is what is happening, though I'm attempting to use an AsyncLock from Nito.AsyncEx to guard against it happening concurrently. Seems something isn't working the way I'm expecting.
To give a little more background, imagine a class Foo which has many Bars. Each Bar is getting updated in its own thread. I'm locking on Foo prior to doing the update I illustrated above.
Would making a clone of Foo for each thread resolve this? Or am I still going to run into trouble because each Bar on different threads has a Foo with the same PK?

@MgSam It's hard to make concrete statements without knowing your domain model and application constraints, but some thoughts are:

Locking for all the time that EF may be using the entity instance is going to be hard, especially without introducing the potential for deadlock.
Cloning the object graph before using it with EF seems like a reasonable approach. This would also need locking, but the locking can be localized to the cloning, making it easier and safer to implement.
It hard to know whether cloning will cause issues, but if it does, then it likely means that these are real issues of multiple conflicting updates, for which the application must have a plan regardless of whether EF is doing the updates or not.
All of this would be simpler if the threads were not sharing the same object graphs. Of course, this is an architectural change, but I mention it because avoiding concurrent accesses in the first place though using different object instances in different units of work can be a lot cleaner than using locking further down the line.

Closing this since this is not fundamentally an EF issue.


Question: MenuFlyout from resource and the XamlRoot

I started working with WinUI3 and together with that I started working with XAML (that's why I'm pretty sure, that this here is my fault). Now... as long as I can use XAML to define everything and only implement the callbacks from buttons and things like that it works just fine. But now I want to create a CommandBarFlyout and a MenuFlyout ... once "attached" to a button, once just in the middle of the screen without a parent window.
How can I do this? Well, first I thought I have to load the flyout resource. So I do this:
winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase pFlyout =
Application::Current().Resources().Lookup(winrt::box_value(L"FlyoutResource")).aswinrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutBase();
(I have 2 resources defined in the App.xaml which are of type "MenuFlyout" and "CommandBarFlyout")
That's working and I get this element (pFlyout is not nothing).
Then I tryed to adapt the example code I found like this:
winrt::Microsoft::UI::Xaml::Controls::Primitives::FlyoutShowOptions options;
// fill those options somehow...
pFlyout.ShowAt(sender.aswinrt::Microsoft::UI::Xaml::FrameworkElement(), options);
(sender is the sender parameter I get inside my click-handler for a button I made...)
and then it crashes with the information
This element is already associated with a XamlRoot, it cannot be associated with a different one until it is removed from the previous XamlRoot.
... so. Fine... what does this mean? What is a XamlRoot? Why do I need it? Why is it set? Who did set it? Is this XamlRoot set in this pFlyout? When does this happen? When I call the Lookup? Do I have to do it differently?
oh, and by the way... when I'm building the MenuFlyout with code, then it works... but not as resource... and setting XamlRoot="{x:Null}" does not compile... so... no idea what's wrong

short
XAML Controls Gallery -> Menus and Toolbars -> CommandBarFlyout
-> do this with WinUI3 ... I have no idea how I can do this
detailed
In the end I want to use a CommandBarFlyout inside a shell namespace extension... (which might be impossible because of the shell interfaces... but I'm still not sure... and that's an other problem).
I know these properties of the button (and other elements)... but the problem is, that it crashes, when I try to use this with a "CommandBarFlyout" and I have no idea why (an interface is not supported I think... but I haven't understood it yet). That's why I started to investigate things... first thing was "can I load the resource"? Next thing was "can I use some other function to display it?" ... and what I found is, that all the samples for older flyouts (non WinUI3) which seem to do it from code (at least almost, because they're loading the resources from the page-resources instead of the app-resources), don't work anymore because of this strange XamlRoot that's already associated.
And... setting the XamlRoot to NULL doesn't work. The error is somehing like "XamlRoot cannot be set to something else if it has been set once". Which means, that... a flyout cannot be used from a resource, if it's not associated with an other element? ... I know, that there are a lot of sources saying, that I first have to remove it from the parent/root where it has been added to before I can use it in an other place... but... how can I remove it from the current parent/root? ... I don't know how I can find this parent/root...
And... putting it into the flyout property of a button and then try to use it from there (from code), does also not work... also because of the already set XamlRoot.
So... it seems, that a flyout resource cannot be used at all from code... it only works, when it's associated with an other element and when I let the generated code do its stuff... but as soon as I want to do anything with it from code, it crashes with the XamlRoot already set error... ??


Merge with omniauth-constantcontact gem

@Asanghi, I'm the developer of the omniauth-constantcontact gem. I see little reason to maintain both OAuth1 and OAuth2 gems for ConstantContact, especially now that CC has depreciated support for OAuth1. How about replacing my 'omniauth-constantcontact' gem with your version?

Just wondered if you guys were still planning to merge these two gems or keep them separate. I'm going to incorporate this into a project and am looking for a heads-up on whether to expect a deprecation due to the merging of the two gems.

Well there has been no conversation around this for over two years now. I'm not using this gem myself. Happy to let someone else take ownership and merge.

I don't use the gem either, but I'm happy to hand off whatever is needed for the merge.

Hi @asanghi - I'm happy to take ownership of this gem if you are still looking for someone to help with maintenance.

Sounds great! Added @pcai to the repo. Do as you please!

@asanghi Thanks! Would you be able to add me as an owner on the rubygem as well, so I can publish new releases?

@pcai i think i need your email address for that.

Right! Sorry. My email is<EMAIL_ADDRESS>Thanks

..and done!

@calebclark I am a new collaborator on this gem and I agree it would be good to merge with yours, can you add me to it on github and rubygems? My gmail username is linker.error. I would be happy to take care of it for you. Or we can discuss details here if you like.

@pcai I have added you to both github and rubygems. Let me know if you need anything else.


Outdated Linux instructions?

The page "Installing .NET Core on Linux" at the URL http://dotnet.github.io/docs/getting-started/installing/installing-core-linux.html is still up, but so far as I can tell has been replaced by the URL https://dotnet.github.io/docs/getting-started/installing/installing-core-ubuntu.html. The former also doesn't seem to be in the repository. Am I right in thinking that those instructions should be considered outdated?

@blackdwarf can @mwilliamson use the instructions on http://dotnet.github.io/getting-started for a Linux install?

@mwilliamson sorry, which instructions are you referring to? The ones on the Getting Started page are most surely up-to-date.

@blackdwarf he's talking about an article in the repo: http://dotnet.github.io/docs/getting-started/installing/installing-core-linux.html

@mairaw ahhhhh...yeah, this should be removed, this page.

@blackdwarf how do we do that since that file is not in the repo?

Wait...if its not in the repo, how is it then getting built?

No clue. Maybe a bug with docfx? You seem to have renamed that file in January but somehow the old built html one wasn't removed from the build.
/cc @chenkennt

Hmm...renamed it...so the build server must have not cleaned before re-build.

Seems to be a bug in build server, @MarzinZ to take a look.

Since we moved to a new site, this no longer repros. Closing this issue.


Update Table 2 of QA Feedback Reports for No Errors Submissions

The QA Submission Feedback Reports for submissions that include QA files that evaluated with no errors do not list the correct test/ QCE/ TEE information in Table 2.
Acceptance Criteria: All tests submitted should be listed, regardless of their evaluation status.
ORIS 7900, SH4 Linearity test LINE-Q32023-422-8 was submitted with no errors (Submission ID b72a9e3b-1648-40b0-bb6d-3a07316edcb1). This test does not appear in Table 2.

ORIS 7900, SH3 Linearity LINE-Q32023-013-5 was submitted with informational messages and RATA RATA-Q32023-NOX-1 was submitted with admin overrides (Submission ID c6e94aeb-5e2d-4f07-a8ce-fe6ed713af63). Both tests appear in Table 2.

 The linearity was does not appear in Table 2.

Issue resolved.
Here are the screenshots of the feedback report email I received now:
For ORIS 7900, SH4 Linearity test LINE-Q32023-422-8, the test appeared on the Table 2, means test passed.

For ORIS 7900, SH4 RATA RATA-Q32023-NX4-1 and Linearity LINE-Q32023-412-7, both of the tests appeared on the Table 2, means test passed.


Vercel 部署错误

错误如下
[23:00:05.963] Running build in Washington, D.C., USA (East) – iad1
[23:00:06.096] Cloning github.com/YangguangZhou/hexo-circle-of-friends (Branch: main, Commit: 6bb3106)
[23:00:06.427] Cloning completed: 330.91ms
[23:00:06.481] Previous build cache not available
[23:00:06.750] Running "vercel build"
[23:00:07.203] Vercel CLI 34.1.7
[23:00:07.446] Installing required dependencies...
[23:00:15.773] Failed to run "pip3.12 install --disable-pip-version-check --target . --upgrade -r /vercel/path0/requirements.txt"
[23:00:15.773] Error: Command failed: pip3.12 install --disable-pip-version-check --target . --upgrade -r /vercel/path0/requirements.txt
[23:00:15.774]   error: subprocess-exited-with-error
[23:00:15.774]
[23:00:15.774]   × Getting requirements to build wheel did not run successfully.
[23:00:15.774]   │ exit code: 1
[23:00:15.774]   ╰─> [4 lines of output]
[23:00:15.775]       <string>:67: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
[23:00:15.775]       Building lxml version 4.6.4.
[23:00:15.775]       Building without Cython.
[23:00:15.775]       Error: Please make sure the libxml2 and libxslt development packages are installed.
[23:00:15.775]       [end of output]
[23:00:15.775]
[23:00:15.776]   note: This error originates from a subprocess, and is likely not a problem with pip.
[23:00:15.776] error: subprocess-exited-with-error
[23:00:15.776]
[23:00:15.776] × Getting requirements to build wheel did not run successfully.
[23:00:15.776] │ exit code: 1
[23:00:15.776] ╰─> See above for output.
[23:00:15.776]
[23:00:15.776] note: This error originates from a subprocess, and is likely not a problem with pip.
[23:00:15.776]
[23:00:15.777] Collecting leancloud==2.9.7 (from -r /vercel/path0/requirements.txt (line 1))
[23:00:15.777]   Downloading leancloud-2.9.7-py2.py3-none-any.whl.metadata (1.3 kB)
[23:00:15.777] Collecting fastapi==0.68.0 (from -r /vercel/path0/requirements.txt (line 2))
[23:00:15.777]   Downloading fastapi-0.68.0-py3-none-any.whl.metadata (23 kB)
[23:00:15.777] Collecting uvicorn==0.14.0 (from -r /vercel/path0/requirements.txt (line 3))
[23:00:15.777]   Downloading uvicorn-0.14.0-py3-none-any.whl.metadata (4.5 kB)
[23:00:15.777] Collecting requests (from -r /vercel/path0/requirements.txt (line 4))
[23:00:15.777]   Downloading requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
[23:00:15.778] Collecting PyMySQL==1.0.2 (from -r /vercel/path0/requirements.txt (line 5))
[23:00:15.778]   Downloading PyMySQL-1.0.2-py3-none-any.whl.metadata (5.1 kB)
[23:00:15.781] Collecting SQLAlchemy==1.4.31 (from -r /vercel/path0/requirements.txt (line 6))
[23:00:15.784]   Downloading SQLAlchemy-1.4.31.tar.gz (8.0 MB)
[23:00:15.784]      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.0/8.0 MB 163.0 MB/s eta 0:00:00
[23:00:15.784]   Installing build dependencies: started
[23:00:15.784]   Installing build dependencies: finished with status 'done'
[23:00:15.784]   Getting requirements to build wheel: started
[23:00:15.784]   Getting requirements to build wheel: finished with status 'done'
[23:00:15.785]   Installing backend dependencies: started
[23:00:15.785]   Installing backend dependencies: finished with status 'done'
[23:00:15.785]   Preparing metadata (pyproject.toml): started
[23:00:15.785]   Preparing metadata (pyproject.toml): finished with status 'done'
[23:00:15.785] Collecting lxml==4.6.4 (from -r /vercel/path0/requirements.txt (line 7))
[23:00:15.785]   Downloading lxml-4.6.4.tar.gz (3.2 MB)
[23:00:15.785]      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.2/3.2 MB 97.0 MB/s eta 0:00:00
[23:00:15.785]   Installing build dependencies: started
[23:00:15.785]   Installing build dependencies: finished with status 'done'
[23:00:15.785]   Getting requirements to build wheel: started
[23:00:15.786]   Getting requirements to build wheel: finished with status 'error'
[23:00:15.786]
[23:00:16.039]

因为缺少了 libxml2 和 libxslt 的开发包。

在vercel的环境里，这个要怎么下载呢

去vercel仓库的设置里把nodejs的版本调为18.xz试试。

解决了，谢谢佬@ciraos (^🙏^)

解决了，谢谢佬@ciraos (^🙏^)

ok，部署过程中遇到了同样的问题，请问下是如何解决的呢


Fix code coverage reporting

Fixes #3977

@sebastienvas: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-unit-tests.sh
8a06e6505f21dea2db53f592be72f75c542ac1dc
link
/test istio-unit-tests

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@sebastienvas: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-unit-tests.sh
8a06e6505f21dea2db53f592be72f75c542ac1dc
link
/test istio-unit-tests

prow/istio-presubmit.sh
8a06e6505f21dea2db53f592be72f75c542ac1dc
link
/test istio-presubmit

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


Wasm sample broken

When I try to compile the Wasm sample with bazel run samples/wasm/src/main/java/com/google/j2cl/samples/wasm:jsapp_dev_server, I get the following error:
ERROR: /home/seb/wasm/j2cl/samples/wasm/src/main/java/com/google/j2cl/samples/wasm/BUILD:38:19: Compiling to WASM (stage 1) failed: (Exit 1): binaryen failed: error executing command bazel-out/k8-opt-exec-2B5CBBC6/bin/third_party/binaryen --enable-exception-handling --enable-gc --enable-reference-types --enable-sign-ext --enable-strings --enable-nontrapping-float-to-int --nominal ... (remaining 11 arguments skipped)
Unknown option '--closed-world'

Binarien 111 which is the latest version seems to be used as expected:
bazel-out/k8-opt-exec-2B5CBBC6/bin/third_party/binaryen --version
wasm-opt version 111

Any chance this could be fixed?

I think --closed-world is not in the latest released version of binaryen and was added to the binaryen later. You can either build binaryen from source or remove the flag from j2wasm_application.bzl:219.
See #174

Thanks for your feedback.
The sampe has been fixed by Binaryen 112 kindly released by @kripken after this discussion on Twitter.
As a consequence, I close this issue.


Custom End Option

Hi,
I used your plugin in one of my projects for an online shop. It works great, but (and I know that this has been asked before) there is a problem I encountered.
The Plugin loads everything just fine until it reaches the last page. Then it continues to reload the first page! This is due to the fact that the system I'm installing it on has a built in fallback for any page number greater than the highest available. It just delivers the first page instead. Ending in a loop for your plugin (real infinite-scrolling).
I am not able to change the systems behavior here for it is needed for other things to work. So I was wandering if there was any custom way to make the plugin stop.
I did find the following Issue: https://github.com/paulirish/infinite-scroll/issues/32
The following is mentioned there and seems to be a solution, but I'm not sure how to use it!
$('div').infinitescroll('stop', 'A variable to pass along'); // calls stop method and ending message
Edit: Maybe there is a way to make the plugin check the nextSelector on every page. That way I could simply alter the last, making the plugin stop!
Thank you,
SirSketch

Hey everyone,
I found a solution to my problem. I still would appreciate an option to be able to manually stop the plugin, but for now this works for me:
All my Content is generic, so what I did is I let the system dynamically generate an item on the last page (the item is also the last of all items) that fits the ìtemSelector (in my case '#IS a.e') without any Content, set an inline style display:none, and an id="STOPINFINITY".
Within the Options I used the optional callback when new content is successfully loaded in:
$(document).ready(function(){
    $('#IS').infinitescroll({
            navSelector  : "div.ist",
               // selector for the paged navigation (it will be hidden)
            nextSelector : "div.ist a:first",
               // selector for the NEXT link (to page 2)
            itemSelector : "#IS a.e",
               // selector for all items you'll retrieve
            loading: {
               msgText : '',
               img : '/images/loading.gif'
             }
    },
    function(arrayOfNewElems){
    // optional callback when new content is successfully loaded in.
    //In this case: Look for an Item id=STOPINFINITY and then tell the plugin that its done!
         if (document.getElementById('STOPINFINITY')) {
            $('#IS').infinitescroll ({state:{isDone: true}}); // Hey look, we`re done!
            }
         }
    );
});

So, whenever the callback function finds an element with the id=STOPINFINITY it tells the plugin to be done.
I am far away from being sure that this is in anyway the intended use for this option and my English is a little rusty, but I think the method is understandable. Maybe someone else can make use of this.
Thanks for your work on this plugin.

There's also the destroy method which you can use.
$(#IS').infinitescroll('destroy');


updated articles in career page

I've added two articles to the career page

https://www.business.com/articles/best-careers-tech-geeks/
https://www.freecodecamp.org/news/how-to-choose-the-best-tech-career-path-for-you-61c4d5ff9a77/

please provide feedback so that I can do better


Wrong value in Staking.Bonded event after Staking.Rebond extrinsic

If Staking.Rebond extrinsic was executed with a value greater than the current / available balance, the resulting Staking.Bonded event should contain only the actual bonded value (currently it does not).
I see 2 solutions:

the transaction fails due to insufficient balance
the value ist interpreted as max_additional like in Staking.BondExtra extrinsic (here the Staking.Bonded event provides the actual bonded value)

Example 1 (Westend):
Stash 5D9x7E3f7VT2RqdpA54V8MJSh5xBr7pUV6bCDmGbpjZ9mi75 with balance of 178 WND
Staking.Rebond with 200 WND: https://westend.subscan.io/extrinsic/7435449-2
Example 2 (Kusama):
Stash DcAgRyM7BCEToY43W3WesEtPKWDBJ5RDDc5FEE38pbP25AD with balance of 2768 KSM
Staking.Rebond with 27 million! KSM: https://kusama.subscan.io/extrinsic/9008712-3

CC @kianenigma

In which runtime it will be active?

hmm, seams not
tested in westend with runtime 9111, old behavior


Roll engine dc0187f21777..58889f9241a3 (2 commits)

https://github.com/flutter/engine/compare/dc0187f21777...58889f9241a3
git log dc0187f21777..58889f9241a3 --first-parent --oneline
2019-12-26<EMAIL_ADDRESS>Roll src/third_party/skia 3d3150c89c5f..05eb83be171c (3 commits) (flutter/engine#14800)
2019-12-24<EMAIL_ADDRESS>Roll src/third_party/skia a2d7225c0fc1..3d3150c89c5f (1 commits) (flutter/engine#14680)
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/+/master/autoroll/README.md

PullRequest is not longer mergeable. Closing it.

PullRequest is not longer mergeable. Closing it.

Commit queue failed; closing this roll.

PullRequest is not longer mergeable. Closing it.


[Bug]: js_image_layer does not play nice with external workspaces

What happened?
The js_image_layer.mjs file assumes the root is always going to be found in the realp, but that isn't always the case, so o comes from taking a .slice(-1) .
                console.log(`root: ${root}`);
		const realp = await realpath(dest);
		console.log(`realp: ${realp}`);
		const rootIndex = realp.indexOf(root);
		const output_path = realp.slice(rootIndex);
		console.log(`rootIndex: ${rootIndex}`);
		console.log(`output_path: ${output_path}`);
		console.log(`dest: ${dest}`);
		if (output_path != dest) {

root: bazel-out/darwin_arm64-fastbuild/bin
realp: /private/var/tmp/_bazel_pcj/d7e82b68b84ece06dc82c3639a1eabcf/execroot/unity/bazel-out/darwin_arm64-fastbuild/bin/examples/helloworld/greeter/server/simple/server_js_layer_launcher.sh
rootIndex: 76
output_path: bazel-out/darwin_arm64-fastbuild/bin/examples/helloworld/greeter/server/simple/server_js_layer_launcher.sh
dest: bazel-out/darwin_arm64-fastbuild/bin/examples/helloworld/greeter/server/simple/server_js_layer_launcher.sh
root: bazel-out/darwin_arm64-fastbuild/bin
realp: /private/var/tmp/_bazel_pcj/d7e82b68b84ece06dc82c3639a1eabcf/external/com_google_protobuf/src/google/protobuf/descriptor.proto
rootIndex: -1
output_path: o
dest: bazel-out/darwin_arm64-fastbuild/bin/external/com_google_protobuf/_virtual_imports/descriptor_proto/google/protobuf/descriptor.proto

This manifests as an error like:
Error: couldn't map 'o' to a path. please file a bug at https://github.com/aspect-build/rules_js/issues/new/choose
    at findKeyByValue (file:///private/var/tmp/_bazel_pcj/d7e82b68b84ece06dc82c3639a1eabcf/sandbox/processwrapper-sandbox/23/execroot/unity/bazel-out/darwin_arm64-opt-exec-C7777A24/bin/external/aspect_rules_js/js/private/js_image_layer_builder.sh.runfiles/aspect_rules_js/js/private/js_image_layer.mjs:9583:8)

Version
macos, bazel 5.1.1, aspect_rules_js:
    # Release: v1.30.0
    # TargetCommitish: main
    # Date: 2023-07-11 17:16:03 +0000 UTC
    # URL: https://github.com/aspect-build/rules_js/releases/tag/v1.30.0
    # Size: 2237384 (2.2 MB)
    http_archive(
        name = "aspect_rules_js",
        sha256 = "e3e6c3d42491e2938f4239a3d04259a58adc83e21e352346ad4ef62f87e76125",
        strip_prefix = "rules_js-1.30.0",
        urls = ["https://github.com/aspect-build/rules_js/archive/v1.30.0.tar.gz"],
    )

How to reproduce
see above

Any other information?
No response

I have not tested it yet, but I suspect a minimal repro would be to add @com_google_protobuf//:timestamp_proto (or similar) to the ts_project.data attribute of your e2e test for js_image_layer.

Actually that didn't repro:
diff --git a/e2e/js_image_oci/WORKSPACE b/e2e/js_image_oci/WORKSPACE
index 7b9c37d..7d54fde 100644
--- a/e2e/js_image_oci/WORKSPACE
+++ b/e2e/js_image_oci/WORKSPACE
@@ -87,3 +87,18 @@ http_archive(
 load("@container_structure_test//:repositories.bzl", "container_structure_test_register_toolchain")

 container_structure_test_register_toolchain(name = "container_structure_test_toolchain")
+
+###
+# Setup protobuf
+###
+
+http_archive(
+    name = "com_google_protobuf",
+    sha256 = "bf0e5070b4b99240183b29df78155eee335885e53a8af8683964579c214ad301",
+    strip_prefix = "protobuf-3.14.0",
+    urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.14.0.zip"],
+)
+
+load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
+
+protobuf_deps()
diff --git a/e2e/js_image_oci/src/BUILD.bazel b/e2e/js_image_oci/src/BUILD.bazel
index 35c4b63..435a2fe 100644
--- a/e2e/js_image_oci/src/BUILD.bazel
+++ b/e2e/js_image_oci/src/BUILD.bazel
@@ -9,6 +9,7 @@ js_binary(
     data = [
         "ascii.art",
         "//:node_modules/chalk",
+        "@com_google_protobuf//:any_proto",
     ],
     entry_point = "main.js",
 )

√ js_image_oci % bazel build src:layers
INFO: Analyzed target //src:layers (1 packages loaded, 13 targets configured).
INFO: Found 1 target...
Target //src:layers up-to-date:
  bazel-bin/src/layers_app.tar.gz
  bazel-bin/src/layers_node_modules.tar.gz
INFO: Elapsed time: 6.559s, Critical Path: 5.20s
INFO: 9 processes: 7 internal, 1 darwin-sandbox, 1 local.
INFO: Build completed successfully, 9 total actions
√ js_image_oci % tar -tvzf bazel-bin/src/layers_app.tar.gz
drwxr-xr-x  0 0      0           0 Dec 31  1969 app
drwxr-xr-x  0 0      0           0 Dec 31  1969 app/src
-r-xr-xr-x  0 0      0          78 Dec 31  1969 app/src/main
drwxr-xr-x  0 0      0           0 Dec 31  1969 app/src/main.runfiles
drwxr-xr-x  0 0      0           0 Dec 31  1969 app/src/main.runfiles/aspect_rules_js
drwxr-xr-x  0 0      0           0 Dec 31  1969 app/src/main.runfiles/aspect_rules_js/js
drwxr-xr-x  0 0      0           0 Dec 31  1969 app/src/main.runfiles/aspect_rules_js/js/private
drwxr-xr-x  0 0      0           0 Dec 31  1969 app/src/main.runfiles/aspect_rules_js/js/private/node-patches
-r-xr-xr-x  0 0      0       32507 Dec 31  1969 app/src/main.runfiles/aspect_rules_js/js/private/node-patches/fs.js
-r-xr-xr-x  0 0      0        1698 Dec 31  1969 app/src/main.runfiles/aspect_rules_js/js/private/node-patches/register.js
drwxr-xr-x  0 0      0           0 Dec 31  1969 app/src/main.runfiles/com_google_protobuf
-r-xr-xr-x  0 0      0         231 Dec 31  1969 app/src/main.runfiles/com_google_protobuf/any_proto-descriptor-set.proto.bin
drwxr-xr-x  0 0      0           0 Dec 31  1969 app/src/main.runfiles/js_image_oci
drwxr-xr-x  0 0      0           0 Dec 31  1969 app/src/main.runfiles/js_image_oci/src
-r-xr-xr-x  0 0      0         281 Dec 31  1969 app/src/main.runfiles/js_image_oci/src/ascii.art
-r-xr-xr-x  0 0      0         660 Dec 31  1969 app/src/main.runfiles/js_image_oci/src/main.js
-r-xr-xr-x  0 0      0       21903 Dec 31  1969 app/src/main.runfiles/js_image_oci/src/main.sh
drwxr-xr-x  0 0      0           0 Dec 31  1969 app/src/main.runfiles/js_image_oci/src/main_node_bin
-r-xr-xr-x  0 0      0         133 Dec 31  1969 app/src/main.runfiles/js_image_oci/src/main_node_bin/node
drwxr-xr-x  0 0      0           0 Dec 31  1969 app/src/main.runfiles/nodejs_darwin_amd64
drwxr-xr-x  0 0      0           0 Dec 31  1969 app/src/main.runfiles/nodejs_darwin_amd64/bin
drwxr-xr-x  0 0      0           0 Dec 31  1969 app/src/main.runfiles/nodejs_darwin_amd64/bin/nodejs
drwxr-xr-x  0 0      0           0 Dec 31  1969 app/src/main.runfiles/nodejs_darwin_amd64/bin/nodejs/bin
-r-xr-xr-x  0 0      0    80432480 Dec 31  1969 app/src/main.runfiles/nodejs_darwin_amd64/bin/nodejs/bin/node

possibly fixed by #1081

@pcj could try with that patch and see if the issue persists?

@thesayyn this issue is no longer present when using:
    # Commit: f560b93b8e8355d20b330bf7654fd705dd41e47a
    # Date: 2023-05-23 21:32:11 +0000 UTC
    # URL: https://github.com/aspect-build/rules_js/commit/f560b93b8e8355d20b330bf7654fd705dd41e47a
    #
    # fix: don't follow symlinks to execroot
    # Size: 2260496 (2.3 MB)
    http_archive(
        name = "aspect_rules_js",
        sha256 = "701272205fdc97b6d8a937e076dacf82bb80551e63d29b91429014dc0356a7b0",
        strip_prefix = "rules_js-f560b93b8e8355d20b330bf7654fd705dd41e47a",
        urls = ["https://github.com/aspect-build/rules_js/archive/f560b93b8e8355d20b330bf7654fd705dd41e47a.tar.gz"],
    )

Looks like this issue will close when that PR lands.  Thanks!


Comm

Please provide a succinct description of the issue.
Repro steps
Provide the steps required to reproduce the problem

Step A

Step B

Expected behavior
Provide a description of the expected behavior.
Actual behavior
Provide a description of the actual behavior observed.
Known workarounds
Provide a description of any known workarounds.
Related information
Provide any related information

Programming language used
Links to source

newcomm

Not sure why this issue was created - no info was provided?


Does not work on iOS in combination with jQuery 3.1.0

If rangeslider.js is used in combination with jQuery 3.1.0, the slider is unresponsive in Safari for iOS.
Demo here: http://misc.avoid.org/rangeslider/
(Tried to make a jsFiddle, didn't work, hence this demo page)

@av01d using the latest version or at least v2.2.0 should fix that!

Thanks, it does indeed!
Can you please update the download link on this page http://rangeslider.js.org/ ?
It should point to the latest stable version, which seems to be 2.2.0 now...?


[Bug] Marketplace - User: Star button does not work

Star button within courses does not work (shows error) while share button does not work, no specific action basis it

Pushed the fix, need to be deployed.


fix(admin) - disable form buttons when editing [EP-3161]

Signed-off-by: Vlad Tomsa<EMAIL_ADDRESS>All boxes should be checked before the PR can be accepted. Exceptions can be made, but they need to be argumented and discussed with the reviewer

BUGFIX
Required

[x] Ran Unit Tests and they pass successfuly
[x] Ran the linter with yarn lint
[x] No TypeScript warnings are introduced

Not Needed

[ ] Translated all the user facing text (static & dynamic)
[ ] I have made corresponding changes to the documentation

References

Include any links supporting this change such as a:

GitHub Issue/PR number addressed or fixed
StackOverflow post
Support forum thread
Related pull requests/issues from other repos

If there are no references, simply delete this section.

By submitting a PR to this repository, you agree to the terms within the Code of Conduct. Please see the contributing guidelines for how to create and submit a high-quality PR for this repo.

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

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