Confuse with simulate mouse move and click

Some case, we have to simulate moues events move or click random bypass the analysis script.
Because this analysis script record mouse parameters and send to server as a 1pix*1pix gif.
For example:
http://example.com/1.gif?mouse-x=200&mouse-y=300&width=1024&height=768

According some previous posts, it was difficult to click an element using splash:runjs(snippet).
But splash:runjs/splash:evaljs/splash:jsfunc are script level.
Is it possible develop some mouse feature on pyqt level?
e.g. splash:mouse_move(x, y) splash:mouse_click(x, y).

@genius001 yes, that'd be good to expose 'real' events to splash; implementation could use http://doc.qt.io/qt-5/qinputevent.html subclasses like QMouseEvent and QKeyEvent.

I started to play around with this (as I also need this functionality recently) and done this: https://github.com/scrapinghub/splash/compare/master...pawelmhm:hover-click?expand=1 it adds unit test and sample implementation on browser_tab object. Selecting element is easy but seems like mouse click event is not fired properly when I do _qtapp.postEvent(view, event) perhaps I'm missing something there? Comments are welcome.

@pawelmhm phantomjs implements clicking as two separate events (mousedown and mouseup), maybe you could try that: https://github.com/ariya/phantomjs/blob/842715be9d2bb27865c179c12761290fa3f2929c/src/webpage.cpp#L1545 (also the rest of that function might give you some ideas of what's wrong)

Hi, @pawelmhm
I'm Agree with @Youwotma
QMouseEvent(QEvent.MouseButtonPress, pos, Qt.LeftButton, Qt.LeftButton, Qt.NoModifier)
QMouseEvent(QEvent.MouseButtonRelease, pos, Qt.LeftButton, Qt.LeftButton, Qt.NoModifier)

This code worked for me.

@genius001 https://github.com/scrapinghub/splash/pull/438 is merged, so I'm closing this ticket. splash:mouse_hover, splash:mouse_click, splash:mouse_press and splash:mouse_release methods will be available in Splash 2.1. Thanks!


"the paper"

src/specialized/pclmulqdq.rs references "the paper" several times, and as far as i can tell, none of the files in this repo mentions any paper whatsoever.

Based on the source code comments about the algorithm's implementation on Linux, the listed steps, and the values of the Kx constants, it seems very likely that "the paper" refers to "Fast CRC Computation for Generic Polynomials Using PCLMULQDQ Instruction", an influential 2009 whitepaper by V Gopal, E Ozturk, J Guilford, G Wolrich, W Feghali, et al., most of which were Intel engineers at the time.

Yep, that's correct @AlexTMjugador! If you want to send a PR to adjust the docs, would be happy to merge it!

Fixed via #40.


publish<EMAIL_ADDRESS>

Requested by: @szokeasaurusrex
Merge target: (default)
Quick links:

View changes
View check runs

Assign the accepted label to this issue to approve the release.
Leave a comment containing #retract under this issue to retract the release (original issuer only).
Targets

[ ] pypi
[ ] github
[ ] sentry-pypi

Targets marked with a checkbox have already been executed.  Administrators can manually tick a checkbox to force craft to skip it.

#retract


zero output

I want to use this to evaluate my own videos, but it's strange that the output is all 0.

the code i use:
python evaluate.py \
 --videos_path /home/data/workgroup/wudi.wd/code_utils/VBench/11_29_3s \
 --dimension "motion_smoothness" \
 --mode "custom_input"

and the output be like:
{
"subject_consistency": [
0.0,
[
{
"video_path": xxx,
"video_results": 0.0
},
{
"video_path":xxx,
"video_results": 0.0
},
{
"video_path": xxx,
"video_results": 0.0
},

same problem here https://github.com/Vchitect/VBench/issues/87

same problem here #87
I track the bug found a strange thing is that, the image_features of the clip is all 0, which leads to the result of compute_background_consistency be zero. I don't know what's the problem, maybe the version of package?

Can you provide ls -lh ~/.cache/vbench/* and version here? Seems like the problem is not specific to CLIP as subject_consistency does not use it (https://github.com/Vchitect/VBench/issues/87).


How to change default File Permissions correctly

Hello! I would like to change the Permissions which are assigned to new Files. As of Nginx Documentation this can be done with the dav_access configuration Parameter. I have done this successfull by editing the nginx.conf manually. I am curious if there is a more elegant way for doing this, as editing manual is either not persistent, or is cutting me off of further changes to the File in the Image.

Hello, as this is not part of the customized settings I am allowing, you should copy /etc/nginx.conf to your host, edit as required, then mount it to the running container.
A more elegant alternative: create your own Docker image based on mine, which copies my nginx.conf with any added configuration you wish to add.
I hope I understood your issue correctly. If that is the case, please close this issue. Otherwise, feel free to comment further!

Hi! Thanks for your response. I just forked this Repository in my GitLab Account, will keep in sync with this Repository and adopt as needed.

@Akjo4712 sure, feel free! What I meant was also this:
Create a Dockerfile that contains (or is) this:
FROM dgraziotin/nginx-webdav-nononsense:latest
COPY nginx.conf /etc/nginx/ # this is your nginx.conf

And your image will sync from mine, all features included.
Another alternative is to look at LinuxServer custom scripts. They should work just fine in my image (I think?) In particular, see /config/custom-cont-init.d and place any scripts that modifies nginx.conf (my nginx.conf) in there.


Feature/stdmutex

duplicate #360

@avilleret @jcelerier : Can one of you merge master into this branch first so that I can then handle the pull request?  When I merge master into feature/stdmutex there are conflicts and I'm not 100% sure how some of them should be resolved.  Thanks!


Open CustomEvent missing

For some reason, the open event is suddenly missing for the open & showModal methods; are there particular reason for its removal? I'm almost certain this is a very recent change (or I'm too familar with various dialog implementations that I didn't catch this sooner when using this polyfill the past few years).
Nonetheless, I've created a PR #90 in case it is missing without a good reason and it is in fact something that is to be expected with the dialog element.

Closed as not part of spec.


First implementation for ZMQ

Implement a push/pull and pub/sub pattern using ZMQ as possible communicators. Currently, the producer has to be a single process. This is to avoid having to deal with multiple ports on the same host. Could still happen in the case of multiple ports on the same machine.
Still to-do:

zmq unit test for the cpp side
Add security when processing the communicators to check that two port are not binding to the same address.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

9 of 107 (8.41%)  changed or added relevant lines in 5 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-13.7%) to 69.072%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/mpi/godrickMPI.cpp
3
4
75.0%

src/communicatorFactory.cpp
3
7
42.86%

src/zmq/communicatorZMQ.cpp
0
93
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-13.7%

Covered Lines:
402

Relevant Lines:
582

💛  - Coveralls


nodePackages.prisma: 3.12.0 -> 3.13.0

Description of changes
Changelog: https://github.com/prisma/prisma/releases/tag/3.13.0
Things done

Built on platform(s)

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

[x] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

LGTM

Can we take this opportunity to improve the troubleshooting documentation for prisma-engines to avoid the case of #170550?
I suggest adding troubleshooting information to bottom of file, like:
`
Troubleshooting
Here's an example application using Prisma with Nix: https://github.com/pimeys/nix-prisma-example
At example's flake.nix at shellHook, notice the requirement of defining environment variables for prisma, those variables have to be defined. And will list on prisma --version.
Read the example's README.
Prisma requires 2 packages, prisma-engines and nodePackages.prisma, to be at exact same versions.
Certify at package.json that dependencies "@prisma/client" and "prisma" are equal, meaning no caret (^) in version.
Configure NPM to use exact version: npm config set save-exact=true
Delete package-lock.json and rebuild it by running npm install.
Run prisma client from node_modules/.bin/prisma.
Run ./node_modules/.bin/prisma --version and check if both prisma packages versions are equal, current platform should be linux-nixos, and other keys equal to the prisma environment variables you defined for prisma.
Test prisma with generate, db push, etc. It should work. If not, open an issue.
`
@pimeys Feel free to improve on it. I haven't covered everything. You know this better than I. :-)

No, this text covers everything. I added it to the last commit.

I've been thinking about a test. The simplest thing it could do is to have a data model, such as:
datasource db {
  provider = "sqlite"
  url = "file:test.db"
}

model A {
  id Int @id
}

Then we'd run prisma db push and if exit 0 then a green test. If we don't want to create database files, we could just run prisma generate instead...


Set TreeQueryset.delete.queryset_only = True

Fixes wagtail/wagtail#5937
This reverts Wagtail's behaviour to match Django's, where an error is
raised as a safety mechanism.
Projects relying on the non-safe behaviour should update e.g.
MyModel.objects.delete() to MyModel.objects.all().delete().

Do the tests still pass? (https://docs.wagtail.io/en/latest/contributing/developing.html#testing) Yes.
Does the code comply with the style guide? (Run make lint from the Wagtail root) Yes.
For Python changes: Have you added tests to cover the new/fixed behaviour? Yes.

Merged in 555adccc2a6ff22db63f5d943a2ded48688936cf


refactor: type safe metric labels

See https://github.com/ChainSafe/lodestar/pull/6201 for motivation / rationale

Codecov Report
Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (eb53ea9) 81.38% compared to head (086efa0) 81.34%.

Files
Patch %
Lines

src/metrics.ts
80.00%
4 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #479      +/-   ##
==========================================
- Coverage   81.38%   81.34%   -0.04%
==========================================
  Files          48       48
  Lines       12275    12261      -14
  Branches     1292     1291       -1
==========================================
- Hits         9990     9974      -16
- Misses       2285     2287       +2

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


[Release Automation] Make sure jitexecutor-native publishing signs the JARs

It's only valid for snapshots uploads now, given you mean GHA env.


Dependency with angular-cli

Hi,
The doc says there's nothing to do while loading the built library from angular-cli. However we need to configure all external dependencies in the downstream app' .angular-cli.json, no? Or maybe there's something I'm doing wrong.
Basically I use this library-starter to build a component library, and need moment.js imported. My downstream app doesn't explicitly require moment.js, it's just needed for the library. But if I don't manually add the link in angular-cli.json it won't load it. So, am I missing something, or is it like I suspect, all 'transitive' dependencies must be explicitly linked downstream?

we need to configure all external dependencies in the downstream app angular-cli.json

No, you don't need, just import what you need:
import { ArithmeticModule } from 'angular-library-starter';
If your library depends on a javascript library (moment.js), you need a further configuration: here you can find an example: https://github.com/damienbod/angular-auth-oidc-client. In this library, we manage a javascript library (jsrsasign): see in particular what was done in the package.json and rollup.config.js files. But maybe with moment.js it is still different if it provides the typescript definition file.
In any case the host app must install the javascript library, unless you do not want to include it in your  library (not recommended).
Greetings

I see, I tried to go through rollup.config.js before, but I wasn't using the right format to add the lib (was writing "moment/moment": "moment" instead of "moment": "moment" ; the latter works fine and I can see moment.js correctly included in my output UMD file.
Thanks @robisim74 !


Can't fetch schema

Hello. I am using latest version spqr on kotlin and when I try to fetch using postman, it not work.  I use sample code from here https://codersee.com/graphql-spqr-with-spring-boot-and-kotlin/ and change spring boot version on 2.7.2 and kotlin version on 1.7.10. Also i need to add this dependency
implementation("com.graphql-java:graphql-java:16.2")
It's possible to fetch schema? or it need to do other way

How could I possibly know what the problem is if you never even say what is the error you're getting?


Credit Card Validation Support

With the new changes and inclusion of the CardParser Library, SwiftValidator is now able to check credit/debit card numbers for validity using LUHN algorithm. Verve card from Interswitch Nigeria has also been added and it can verify interswitch cards too. cool huh?

Codecov Report

Merging #217 into master will increase coverage by 1.07%.
The diff coverage is 75.8%.

@@            Coverage Diff             @@
##           master     #217      +/-   ##
==========================================
+ Coverage   72.14%   73.22%   +1.07%
==========================================
  Files          27       29       +2
  Lines         298      422     +124
==========================================
+ Hits          215      309      +94
- Misses         83      113      +30

Impacted Files
Coverage Δ

SwiftValidator/Parsers/CardParser.swift
73.07% <73.07%> (ø)

SwiftValidator/Rules/CardNumberRule.swift
90% <90%> (ø)

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 2d03c54...4aaa5e7. Read the comment docs.


Pyclust

What does this implement/fix? Explain your changes.
Implements pyclust, automatic model selection for Gaussian mixture models. It sweeps through Agglomerative clustering initialization and Gaussian mixture model options to find the best GMM clustering according to BIC. Clusters with only a single member are never produced.
Any other comments?
class and pytests closely mimic that of gclust

Codecov Report

Merging #247 into master will decrease coverage by 0.71%.
The diff coverage is 94.05%.

@@            Coverage Diff             @@
##           master     #247      +/-   ##
==========================================
- Coverage   86.14%   85.43%   -0.72%
==========================================
  Files          33       34       +1
  Lines        1935     2677     +742
==========================================
+ Hits         1667     2287     +620
- Misses        268      390     +122

Impacted Files
Coverage Δ

graspy/cluster/pyclust.py
94.05% <94.05%> (ø)

graspy/plot/plot.py
50% <0%> (-1.81%)
:arrow_down:

graspy/simulations/simulations.py
95.08% <0%> (-0.08%)
:arrow_down:

graspy/models/rdpg.py
100% <0%> (ø)
:arrow_up:

graspy/inference/latent_distribution_test.py
100% <0%> (ø)
:arrow_up:

graspy/embed/lse.py
100% <0%> (ø)
:arrow_up:

graspy/inference/latent_position_test.py
100% <0%> (ø)
:arrow_up:

graspy/models/er.py
100% <0%> (ø)
:arrow_up:

graspy/embed/ase.py
100% <0%> (ø)
:arrow_up:

graspy/embed/mase.py
100% <0%> (ø)
:arrow_up:

... and 3 more

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 bf673e6...d934d4c. Read the comment docs.

replaced by #256


fix #36: limit to 64 selectors on Windows

The skepticoin client has not been working at all on Windows for the last few days. (See #36)
This quick fix is probably not ideal but at least it restores functionality for now.

It has always bothered me that I missed my opportunity to Get Rich Quick (TM) when the bitcoin client came out but I skipped on it because it was Windows only and who would subject themselves to that? This is my revenge.
Slightly more seriously:

See #31 for a broader context.
I get this is a quick-fix, but even then: shouldn't there be similar code handling incoming connections?

2. I get this is a quick-fix, but even then: shouldn't there be similar code handling incoming connections?

My Windows machine only has outbound connectivity, so that's not a use-case that I've encountered. I suggest merging this temporary fix to give Windows users some minimal functionality until bigger changes are made under #31.

@sashimi-houdini @lk16 can we get this one merged?

I'll merge this, but hopefully we get a nicer solution to replace this one.


Question about Migration tool

[Enter feedback here]
Hi
It's about Migration tool - Azure Database for PostgreSQL Single Server to Flexible Server.
According to the document, "You can migrate databases of sizes up to 1 TB by using this tool. To migrate larger databases or heavy write workloads, contact your account team to reach out to us or file a support ticket." https://learn.microsoft.com/en-us/azure/postgresql/migrate/concepts-single-to-flexible#size
The customer uses 7392 GB so far, and they have concern that it will probably reach the sizes up to 1 TB.
If they reach this  sizes up to 1 TB, what kind of specific actions should the customer take? Or what kind of specific actions should we (CSS) take?

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

ID: f1381cf6-4bbf-e135-f64f-b5621e21a8f2
Version Independent ID: 0e977674-c02e-16ea-55ff-5015865a6e76
Content: Migration tool - Azure Database for PostgreSQL Single Server to Flexible Server - Concepts - Azure Database for PostgreSQL Flexible Server
Content Source: articles/postgresql/migrate/concepts-single-to-flexible.md
Service: postgresql
GitHub Login: @shriram-muthukrishnan
Microsoft Alias: shriramm

Hi, 7392 GB is roughly 7.3 TB and this is going to take a long time for the database migration to complete using the migration tool. From CSS team, please file an incident and we will route it to the right team to engage with the customer. This might require other migration tools to handle migrations for such large databases.

Hi, thank you for your reply.
You mean, the customer will raise SR when they start the database migration, and CSS will create ICM and route it to the right team to engage with the customer, am I correct?
Naoki Takeda
From: shriram-muthukrishnan @.>
Sent: Thursday, September 29, 2022 6:00 PM
To: MicrosoftDocs/azure-docs @.>
Cc: Naoki Takeda @.>; Author @.>
Subject: Re: [MicrosoftDocs/azure-docs] Question about Migration tool (Issue #99205)
Hi, 7392 GB is roughly 7.3 TB and this is going to take a long time for the database migration to complete using the migration tool. From CSS team, please file an incident and we will route it to the right team to engage with the customer. This might require other migration tools to handle migrations for such large databases.

Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2Fazure-docs%2Fissues%2F99205%23issuecomment-1261981981&data=05|01|naoki.takeda%40microsoft.com|0f9f198dd594444cd82008daa1f8f538|72f988bf86f141af91ab2d7cd011db47|1|0|638000387931920629|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=gQRa4CAgammWhqkdPaOFooihk2tZpFQdoAlPevglYWs%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAX2QPEOE62SLYKM75NEI7P3WAVLAFANCNFSM6AAAAAAQYQKTJA&data=05|01|naoki.takeda%40microsoft.com|0f9f198dd594444cd82008daa1f8f538|72f988bf86f141af91ab2d7cd011db47|1|0|638000387931920629|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=jGIY2mBJjXLRmQKQHn0s%2FX5pZBdjim6oxltzADcMOoM%3D&reserved=0.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>

Thats correct.

Closing this as it has been answered.

@naokitakeda14
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion, and we will reopen the issue. To ask a question directly to our Q&A environment, please visit https://docs.microsoft.com/en-us/answers/support/ for more information on asking questions about the product or service.
Thank you.
#please-close


use manual fold function for list of hosts

mapAttrs'/listToAttrs doesn't merge outputs properly. This creates a function, foldHosts, that combines the hosts into their respective flake outputs properly and doesn't cut hosts.

Merging this PR since I miss having a stable staging branch :D Let's keep in mind the "considerations" above for future code changes


Remove Vocabulary Styleguide

Description
The Vocabulary Styleguide is still online:
https://cc-vue-vocabulary.netlify.com/styleguide/
Let's remove this. If we can set a redirect on the URL, let's send it to the Storybook instead. It's confusing to have the Styleguide still live.

Seeing as @panchovm has been crafting detailed rules for design usage in Figma, the styleguide has been rendered redundant. I'll take my words back and re-activate the issue.

This has been fixed in 37ebcf1c.


changing AWS_PROFILE value does not appear to change the authentication used to get information

Describe the bug
When a command like AWS_PROFILE=<some-profile> steampipe query "<some-query>" is run and the operator changes the profile between invocations the results remain the same and the new profile is never used or the results are never updated with values from the new account. When running .cache clear and then trying again, they still remain the same. It's like the credential used is cached and is not removed. In this specific setup the profiles are assuming a role to target different aws accounts from a technically third common federated access account.
Steampipe version (steampipe -v)
Steampipe v0.19.4
Plugin version (steampipe plugin list)
+--------------------------------------------+---------+-----------------+
| Installed Plugin                           | Version | Connections     |
+--------------------------------------------+---------+-----------------+
| hub.steampipe.io/plugins/turbot/aws@latest | 0.103.0 | aws_sometestaccount,aws |
+--------------------------------------------+---------+-----------------+
To reproduce

Configure two profiles that assume roles in different AWS accounts
Run AWS_PROFILE=<profile-1> steampipe query "<some-query>"
Run AWS_PROFILE=<profile-2> steampipe query "<some-query>"

Expected behavior
Clearing the cache and/or changing the profile should result in data being read from the new account and not from the previous account

Hi @jpcope , can you please share your ~/.steampipe/config/aws.spc file?
Also, do you have any other AWS env vars currently set (env | grep AWS)?

00:~ $ cat ~/.steampipe/config/aws.spc
connection "aws" {
  plugin = "aws"
}

connection "aws_sometestaccount" {
  plugin  = "aws"
  profile = "sometestaccount"
  regions = ["us-east-1"]
}
00:~ $ env | grep AWS
AWS_PAGER=
AWS_SDK_LOAD_CONFIG=true
AWS_PROFILE=sometestaccount
00:~ $

Hey @jpcope
Sorry to see you're not getting what you need... I did a quick test and as you can see, I get what I expected to see.

Note: sq is just a convenience alias in my shell for steampipe query (alias sq="steampipe query")

❯ aws s3 ls --profile=dd | wc -l
     121
❯ aws s3 ls --profile=grz | wc -l
       1
❯ AWS_PROFILE=dd sq "select count(*) from aws_s3_bucket"
+-------+
| count |
+-------+
| 121   |
+-------+
❯ AWS_PROFILE=grz sq "select count(*) from aws_s3_bucket"
+-------+
| count |
+-------+
| 1     |
+-------+
❯ cat ~/.steampipe/config/aws.spc
connection "aws" {
  plugin = "aws"
}
❯ env | grep AWS
AWS_SDK_LOAD_CONFIG=true

I then noticed you had a second connection in your Steampipe config, so added a similar one to mine and retested:
❯ cat ~/.aws/config
[default]
region = eu-west-2
[profile grz]
region = eu-west-2
output = json
[profile dd]
region = eu-north-1
output = json
❯ cat ~/.steampipe/config/aws.spc
connection "aws" {
  plugin = "aws"
}

connection "aws_dd" {
  plugin  = "aws"
  profile = "dd"
  regions = ["eu-north-1", "us-east-1"]
}
❯ env | grep AWS
AWS_SDK_LOAD_CONFIG=true
❯ aws s3 ls --profile=grz | wc -l
       1
❯ aws s3 ls --profile=dd | wc -l
     121
❯ AWS_PROFILE=grz sq "select count(*) from aws_s3_bucket"
+-------+
| count |
+-------+
| 1     |
+-------+
❯ AWS_PROFILE=dd sq "select count(*) from aws_s3_bucket"
+-------+
| count |
+-------+
| 121   |
+-------+

Full disclosure I'm using the newest version of Steampipe:
❯ steampipe --version
Steampipe v0.20.3

Addition Notes
If you define multiple connections (one per profile), you don't need to utilise the AWS_PROFILE environment variable to utilise them, you can prefix the table with the connection name in your query, in example below using env var for grz profile but using the connection I set up for dd to utilise the prefix approach. Here is the documentation on querying multiple accounts.
❯ AWS_PROFILE=grz sq "select count(*) from aws_s3_bucket"
+-------+
| count |
+-------+
| 1     |
+-------+
❯ sq "select count(*) from aws_dd.aws_s3_bucket"
+-------+
| count |
+-------+
| 121   |
+-------+

You may sometimes wish to gather information from multiple profiles at the same time, for this you can utilise aggregators. For example if I extend my aws.spc config to be the following:
connection "aws_dd" {
  plugin  = "aws"
  profile = "dd"
  regions = ["eu-north-1", "us-east-1"]
}

connection "aws_grz" {
  plugin  = "aws"
  profile = "grz"
  regions = ["eu-west-2"]
}

connection "_all_aws" {
  type        = "aggregator"
  plugin      = "aws"
  connections = ["aws_dd", "aws_grz"]
}

Then when I execute the query against the aggregator I can obtain results from both my other connections...
❯ sq "select count(*) from aws_s3_bucket"
+-------+
| count |
+-------+
| 122   |
+-------+

❯ sq "select count(*) from _all_aws.aws_s3_bucket"
+-------+
| count |
+-------+
| 122   |
+-------+

Note: unqualified (no connection prefix on table) will default to first loaded in the search path - iirc this is alphabetical, hence the _ prefix on the aggregator making it first loaded, but as you can see in example above could always specify it as the prefix to table to ensure its usage.

I apologise this is a long response but I thought it best to provide information I could on attempting to replicate the issue and other approaches to obtain the information you require.
HTH!

In the two profiles used to test, were they using a third and same source_profile with two different role_arns? I am pretty sure this plays a factor in this issue.
If the profiles tested with don't specify these attributes but use different key id and secret keys I do not think you will see the issue.
https://docs.aws.amazon.com/cli/latest/topic/config-vars.html

Thanks for taking a look at this! Frustratingly I cannot recreate the issue at this time either though I've shown it to my peers at the time.
In my workflow I'm often using the interactive cli to build a query on one account, then drop out to run it on specific accounts where it's relevant rather than the larger set of all of them (for speed reasons).
I'll look out for it again and post some cleaner screenshots in a new issue if it ever resurfaces. I've gone ahead and updated my versions of everything to hopefully keep the issue away!
😄

I thought I was experiencing this, but ultimately determined my real issue was here: https://github.com/turbot/steampipe/issues/4155.  TL;DR my local AWS_PROFILE was not being honored because I had left a an open steampipe query session going in another window.
Dropping this note for future readers as one more thing to check.


Timeline of a material / document: appending Git commit messages to notes section

My needs:

give temporal context to the thing being viewed (how long ago it was changed)
show what was changed during the thing's last change (ie the exact thing you say in your Git commit message).

My thinking is that I need a way to append Git commits to the notes section of something being modified (when it has the notes display capability). This way I don't have to create an additional workflow which duplicates the things I've already expressed in a Git commit.
Any ideas on how I might achieve this? Maybe a hook that listens for new git commits, and appends the message text to the specified document?
😷 Bleh. Feels messy as I type it. But I dunno.

This is a tough one. I've heard this request before (#51), but I'm not convinced it fits in the scope of this project because it assumes a lot about how a team works.
The best I can offer is an example of what's worked well for my teams. Its a more traditional approach:

Use semver to manage versioning of your toolkit
Create a changelog.html and changelog/ dir (similar to docs) that are just markdown docs with Changelog information for each release. End-users can read those docs and compare their version against the current version.

Thanks for the suggestion!


fix(Tearsheet): implement focus trapping within tearsheets

Contributes to #3499
This is to fix the focus trap issue in the Tearsheet component
What did you change?

File: packages/ibm-products/src/components/Tearsheet/TearsheetShell.js

Implement a 'keydown' event handler handleKeyDown() function that handles the 'Tab' key operations. The function checks for focusable elements inside the Tearsheet component and properly navigates the users to the focusable elements in the Tearsheet.
Change in the logic of focus claim function claimFocus()

File: packages/ibm-products/src/components/CreateTearsheet/preview-components/MultiStepWithIntro.js

Add tabIndex property conditionally to the RadioTile component
How did you test and verify your work?
Storybook tested in Chrome, Safari, Firefox, and Edge

@amal-k-joy @makafsal worth checking this utility https://github.com/carbon-design-system/ibm-products/blob/431e041534aa1151e2f3b622e111c97c4591cbfc/packages/ibm-products/src/global/js/utils/wrapFocus.js. This is used in SidePanel

@Ratheeshrajan @elycheea @lee-chase
I have tried this wrapFocus() utility function. Here are my observations from that:

When using the usePortalTarget hook to render the ComposedModal component, the onBlur() event is not firing, so I used the onKeydown() event to experiment with the wrapFocus() function. It is working in a few cases, but it is not solving the issue in stacked narrow tearsheet and tearsheet with error state.
In addition, focusing on dummy 'focus sentinal' elements may confuse users using screen readers.

However, I am trying to improve my current solution to make it more efficient, and reusable.


Rules don't evaluate on Visual Studio 2022

I was working with a customer that was trying to implement these rules with Visual Studio 2022. When done through the VS GUI the rules were successfully evaluated, but when done from msbuild.exe, the rules were essentially ignored. The problem was determined to be that the SqlServer.Rules solution was compiled with DacFx 150. It appears this causes issues with the Microsoft Entity Framework such that when MEF tries to match the rules with the required condition, it can’t match the types in 150 and 160. We downloaded the source code of the SqlServer.Rules and compiled it using DacFx 160 and were able to get Visual Studio 2022 to recognize the custom rules and evaluate them when run from msbuild.exe.
If you want to make these custom rules compatible with VS 2022, please rebuild the solution with DacFx 160. This should be backwards compatible such that the new release still works with previous Visual Studio version as well.
Please see https://github.com/microsoft/DacFx/issues/364 for reference.

@NathanMSFT FWIW, I have published a NuGet package with an updated .dll file: https://www.nuget.org/packages/ErikEJ.DacFX.SqlServer.Rules/

Thanks guys, I have been away for a while, I will get right on it.

@tcartwright just FYI I have forked the rules and published NuGet packages with rules that work in VS 2022 and also .NET 6 and later
https://erikej.github.io/dacfx/codeanalysis/sqlserver/2024/04/02/dacfx-codeanalysis.html

Also updated some rules to work well with temporal tables


Update GC from CoreCLR

https://github.com/dotnet/coreclr/tree/master/src/gc a1775a988af161a8268d7269c432246aad486a93

@schellap All Unix CI jobs are failing with No executable found matching command "dotnet-compile". Could you please take a look?

@dotnet-bot test this please


Regenerate all APIs

The expectation is that the difference here is just in terms of a
lot of partial methods on the ClientImpl classes.
(I'll check this myself.)

Looks fine to me apart from a couple of methods being removed from BigtableAdminClient. I'm checking that with @evildour.
Looks like it was deliberate though

Yup, you beat me to it. I was going to regenerate after my other PR was merged. Guess I don't have to now :)

Always happy to be of service :) Will merge on green.


Change docs from using wget to curl, and using images on S3

Change docs from using wget to curl -O, and using images on S3 - this will make a more consistent and simple user experience.
Example, in top level readme.md:
wget -O kitten.jpg \
  https://upload.wikimedia.org/wikipedia/commons/8/8f/Cute-kittens-12929201-1600-1200.jpg
curl -X POST http://<IP_ADDRESS>:8080/squeezenet/predict -F<EMAIL_ADDRESS>

fixed


Adopt Jakarta EE 10

This application uses Java EE 8 and it is out of date. I would like this application to be updated to Jakarta EE 10 as @bbenz and I will need to demo this at DevNexus at the Jakarta EE track. I don't think using a Java EE 8 app is appropriate for a Jakarta EE talk. I am happy to do a PR with the namespace transform. Please let me know what you think.

@edburns @majguo please let me know what you think

Iterating in #44 .

Hello @Emily-Jiang ,
I am working on your #43.
I am trying to configure it for use with Liberty <IP_ADDRESS>. There is a problem in the pom.xml/server.xml. Even with a carefully vetted set of <feature> elements in the <featureManager> I still get this error at build time.
[ERROR] Failed to execute goal io.openliberty.tools:liberty-maven-plugin:3.10:install-feature (package-server) on project javaee-cafe: Error installing features for server defaultServer: CWWKF1299E: The following features could not be obtained: jaxb-4.0 restfulws-3.0 enterprisebeanslite-4.0 cdi-4.0 persistence-3.0 faces-4.0 io.openliberty.emptyHandleListContext-1.0 com.ibm.websphere.appserver.ejbliteJNDI-1.0 com.ibm.websphere.appserver.javaeePlatform7.0-jndi1.0 io.openliberty.ejbliteJPA-2.0 io.openliberty.restfulWS3.0-xmlBinding3.0 com.ibm.websphere.appserver.ejbComponentMetadataDecorator-1.0 com.ibm.websphere.appserver.jakarta-transactionContext-1.0 com.ibm.websphere.appserver.classloaderContext-1.0. Ensure that the features are valid for Open Liberty. -> [Help 1]

Can you please take a look at the pom.xml and server.xml and see if anything jumps out to you?

Problem https://github.com/Azure-Samples/open-liberty-on-aks/issues/43#issuecomment-1947605954 was fixed in c8d92a1 .

I need help getting past this error: Could not find MessageBodyWriter for response object of type: java.util.Vector of media type: application/json. Please feel free to push code to the ranch.
Deployment details See attachment 20240216-ibm-569-deployment-details.md.
Steps to reproduce

Clone this repo and checkout this branch: https://github.com/azure-javaee/open-liberty-on-aks/tree/edburns-msft-ibm-524-update-to-ee-10
Set your JDK to be JDK 17.
Set your environment variables as in 20240216-ibm-569-deployment-details.md.
cd java-app
mvn clean install
mvn liberty:run
curl -H "Accept: application/xml" http://localhost:9080/rest/coffees

Note that it provides a correct result:<?xml version="1.0" encoding="UTF-8" standalone="yes"?><collection><coffee><id>256</id><name>decaf</name><price>1.0</price></coffee></collection>

curl -H "Accept: application/json" http://localhost:9080/rest/coffees

Note that it provides an incorrect result:

Could not find MessageBodyWriter for response object of type: java.util.Vector of media type: application/json

Measures tried so far

Verified that Cafe.getAllCoffees() has the same problem as with the simple cURL.
Verified I can POST a coffee
curl -X POST -H "Content-Type: application/xml" -d @coffee.xml http://localhost:9080/rest/coffees<coffee>
    <id>256</id>
    <name>decaf</name>
    <price>1.0</price>
</coffee>

Try to force it to have a provider for Json from the resteasy-json-binding-provider.  I believe the provider is already there, but it's not being found for some reason. I backed out these changes.


What should the default command be?

Right now it's cat ~/.config/rat/ratrc.
However, the location of ratrc is no longer hard-coded. At the very least we should make the command consistent with that.
But perhaps there's a better default? Perhaps it's better to have no default, just a usage message?

Maybe user could specify default command per mode?

I actually see this verbosity problem being solved by aliases and other wrapper scripts. I have a couple I use locally: search and git-rat.
I think cmd could just be a required arg for now.

It's not about verbosity but about easy configuration sharing. Currently you have git example - and I don't know how to use it since I don't know default command. I have no problem with wrapper scipts but I think default command per mode will be common pattern.

Currently you have git example - and I don't know how to use it since I don't know default command

The idea with git-rat is that there is no default command. You can call it with any git command and it will run that command with mode git.misc which tries to annotate all kinds of git things.

I think default command per mode will be common pattern.

I'm not personally convinced of this but if you make a PR for it I'll likely merge as Rat is still at a prototype/experimental stage where I think we should try out things to see if they stick.


Use new .wellcome_project format

Use new project format & use new version of deploy tool in build.

Merging so I can deploy from master.


Generate Equatable and Hashable in Swift

extension Country: Equatable, Hashable {
  static func == (lhs: Country, rhs: Country) -> Bool {
    return lhs.name == rhs.name &&
    lhs.capital == rhs.capital &&
    lhs.visited == rhs.visited
  }

  var hashValue: Int {
    return name.hashValue ^ capital.hashValue ^ visited.hashValue
  }
}

Generating the methods, e.g. static func == (lhs: Country, rhs: Country) -> Bool might not be necessary since Swift 4.1 will synthesize conformance to Equatable and Hashable: https://github.com/apple/swift-evolution/blob/master/proposals/0185-synthesize-equatable-hashable.md
If I read the proposal correctly, you only need to opt-in by declaring conformance without implementing the methods, so this would be sufficient:
extension Country: Equatable, Hashable { }

Wow! That’s fantastic.

fyi, Swift 4.1 will be out around Spring 2018 or later.


High CPU utilization

Hi,
This is really good project, but when I ran this demo and opened few tabs I saw the CPU utilization increased to 100% and it creates new process for every tab I open. I am beginner with electron and was trying something like this.But performance is the issue. Can you help in this regard.
I created the build with this app and ran on Windows 64 bit 4gb RAM machine, app slow downs the whole system when excel and chrome is opened, same is the case with linux ubuntu 64bit 4gb ram machine
Thanks

Hi @simply-coded ,
Can you please help me with this.


Apply coupon to order

Issue: https://github.com/RailsEventStore/ecommerce/issues/35
Now clients can use coupons by entering the coupon code in the form.
Currently clients can apply only one coupon and the coupon cannot be changed or deleted. I think we should add changing/deleting coupon from order in another PR.
https://github.com/user-attachments/assets/9fe95310-2e11-441e-a887-a137c7c9099c

@marlena-b We have some conflicts related to arbre refactoring from another PR. Could you help with resolving them? All else looks perfect, thanks!


feat(listing): filter listing updates per user

AMLOS-712
Description
It appears that the current /api/listings/activity API only returns results to users that are admins/stewards (bigbrother for example can see results, but betaraybill receives a forbidden error).  It could be worthwhile to check permissions of the user and filter the results from the API to show updates to any listing that the user has access to.
For example, remove updates for private apps that the user is not in the same org, but show updates for apps that the user can view.
If filtering the current API is too much of a hassle, then a new API, or a 'self' API, could be used in its place.
Acceptance Criteria
An API is available that returns updates to apps/listings that is filtering to only listings the user is allowed to see.  No user is forbidden from receiving data from the API.
How to test code
make test_parallel
Please Review
@aml-development/ozp-backend-team
Checklist

[x] Read CONTRIBUTING.md
[x] Write code to complete task
[x] Python Code is PEP8 Compliant
[x] Add unit tests for new code
[x] All tests must pass before merging the pull request
[ ] At least 2 people reviewed code

General users can see updates, and only updates to listings they have access to (ie: not private listings)
:+1:

I think it's a good idea to use the built-in filtering logic and expose this endpoint to all users.  The Updates section of storefront uses this endpoint, so now that will have data for all users.
:+1:


⚠ Fetchers has degraded performance

In c90c485, Fetchers ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 310 ms

Resolved: Fetchers performance has improved in 30bdc9d.


Simplifying and Guiding in the Assistant Builder

Figma: https://www.figma.com/file/QOxHwppG64GtPocpDhS6Y7/Product?type=design&node-id=3366%3A31345&mode=design&t=wSxZbV0YnNftStEP-1

Description
In order to make the Assistant Builder easier to use, we want to:

Split what is essentially one scrollable screen into 4 tabs
Use LLMs to assist the writing of assistants

Testing
At any point in time, user can open a side modal and chat with the assistant as is with current instructions.
Instruction Tab

Adding "Use a template" opens the Assistant Gallery and will use the selected assistant as a base for the new one
"Help me make it better" opens a special assistant taking the Instruction if there is one in input and propose alternative / ask questions (See @promptGeek as an example)

Data Source & Actions
No fondamental change.
We could experiment on:

Capacity to suggest data in data sources given instructions
An assistant that would help choosing the right action (search, process, …) given the prompt

Identity

Make suggestions on the basis of instructions

Use a model ?

Oh… Idea is that you can select any assistant as a model.


Add filename and content-type

This adds the filename and content-type to the payload that goes to wassup.

👍


My characters suddenly doesn't work

Describe your bug here.
I was porting Tabi into psych. I wanted to unite the old et new version into one so I do both version in a different folder in mod
And when I finish both of them I start modifying some files name and moving the different icons, sprite sheet etc...
And from nowhere in the character editor the character disappear and there is error everywhere even though the folder with the xml and character is still present and hasn't changed. I try to play a song to see and I got this message error.

Help wanted pls
Command Prompt/Terminal logs (if existing)
No response
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
The build itself no... just the mod folder

THIS IS HAPPENING TO ME TO

0.6.1 or 0.6.2?

Add a 6 before the issue number :trollface:


cmd/doc: add example support

To go along with #25443, #25595, and #18807, it would be nice to get support for godoc's -ex flag in go doc.

CC @robpike

Punting to 1.13.

I've recently started working on implementing this.
I'm wonder whether gating the example output behind the -ex argument is best, or whether go doc should show examples by default. I'd prefer the latter, personally, as if I'm looking up a function or whatever, chances are that if there's an example it's useful and relevant to my understanding how to use the code.
On the other hand, examples can be quite long, particularly whole file examples demonstrating a package (e.g. see the examples of sort: https://pkg.go.dev/sort).
One option could be to always show examples for specific symbols which have been requested, but not for the whole package unless -ex is passed. However that would probably be surprising behavior to most people.
Anyone have any opinions as to what would be best. If not I'll probably proceed with examples only shown when -ex is passed, as it's reasonable, but as I say I personally would prefer always printing them.

@nickjwhite
I think that examples should not be shown without the -ex flag, as usually when I'm looking something up it's a quick reference to the documentation or the ordering of the arguments and/or returns or something. I'm not usually looking for a full explanation every time, and I think it makes more sense to not show the examples by default than to require a flag to suppress them instead if they'd be annoying. That being said, I think that it should say if there are examples available, and maybe how many, if the flag isn't passed both for an entire package and when looking up a specific.

Thanks for your thoughts @DeedleFake, very helpful to hear. I implemented a modified version of your suggestion in the latest change I submitted for review, based on feedback from Rob Pike. Take a look there if you're interested.

There has been significant discussion in the CL about how examples would appear in go doc output, with no clear resolution.
With no -ex flag present, should the command say when examples exist?
You could put a line of commentary after the type/function/method saying there are examples, but that will get repetitive and unhelpful. The original draft was to suggest the command to get them, but that is also repetitive, repeating most of the information every time, and possibly many times in a given invocation.
You could also annotate each type with the functions that exist. That has the advantage of similarity with the rest of the output, but it too has issues. Consider bytes.Buffer:
$ go doc bytes.Buffer
package bytes // import "bytes"

type Buffer struct {
	// Has unexported fields.
}
    A Buffer is a variable-sized buffer of bytes with Read and Write methods.
    The zero value for Buffer is an empty buffer ready to use.

func NewBuffer(buf []byte) *Buffer
func NewBufferString(s string) *Buffer
func (b *Buffer) Bytes() []byte
func (b *Buffer) Cap() int
func (b *Buffer) Grow(n int)
func (b *Buffer) Len() int
func (b *Buffer) Next(n int) []byte
func (b *Buffer) Read(p []byte) (n int, err error)
func (b *Buffer) ReadByte() (byte, error)
func (b *Buffer) ReadBytes(delim byte) (line []byte, err error)
func (b *Buffer) ReadFrom(r io.Reader) (n int64, err error)
func (b *Buffer) ReadRune() (r rune, size int, err error)
func (b *Buffer) ReadString(delim byte) (line string, err error)
func (b *Buffer) Reset()
func (b *Buffer) String() string
func (b *Buffer) Truncate(n int)
func (b *Buffer) UnreadByte() error
func (b *Buffer) UnreadRune() error
func (b *Buffer) Write(p []byte) (n int, err error)
func (b *Buffer) WriteByte(c byte) error
func (b *Buffer) WriteRune(r rune) (n int, err error)
func (b *Buffer) WriteString(s string) (n int, err error)
func (b *Buffer) WriteTo(w io.Writer) (n int64, err error)
$

There are many examples for this type:
example_test.go:17: func ExampleBuffer() {
example_test.go:25: func ExampleBuffer_reader() {
example_test.go:33: func ExampleBuffer_Bytes() {
example_test.go:40: func ExampleBuffer_Cap() {
example_test.go:50: func ExampleBuffer_Grow() {
example_test.go:59: func ExampleBuffer_Len() {
example_test.go:67: func ExampleBuffer_Next() {
example_test.go:80: func ExampleBuffer_Read() {
example_test.go:98: func ExampleBuffer_ReadByte() {

The first two are bound to the type, so you might get
func NewBuffer(buf []byte) *Buffer
    func ExampleBuffer()
    func ExampleBuffer_reader()

(I indented them for clarity, and maybe that's what should happen.) But what about all the others? They really gum up the output, with every method getting an example,
func (b *Buffer) Bytes() []byte
   func ExampleBuffer_Bytes()
<continuing like this for every method>

And in fairness, the boilerplate isn't adding much. Maybe it would be better to just annotate the default listing, like this:
func NewBuffer(buf []byte) *Buffer     <X>
func NewBufferString(s string) *Buffer    <X>
func (b *Buffer) Bytes() []byte    <X>

with some suitable symbol for <X>.
All this is just one line of inquiry. There is another option, which is to say nothing about examples by default. (I probably prefer that but am far from certain.) Having an -ex flag to trigger them is fine, but consider this plan:
The 'go doc' command excludes the tests, always. What if it sometimes didn't? Then you could ask,
$ go doc -src ExampleBytes

for instance. Or even,
$ go doc -src TestBufferGrowth

and similarly for benchmarks. That possibility should be factored into the way examples (and maybe tests and benchmarks) should be displayed.
There is too much undesigned here to jump to a CL.

This proposal has been added to the active column of the proposals project
and will now be reviewed at the weekly proposal review meetings.
— rsc for the proposal review group

Why not show examples when you are looking for docs on a specific function, and otherwise never show them? Usually the go doc for a single function is pretty short so there’s room to fill and since it’s more targeted the examples are much more likely to be helpful

What if we show examples when you are looking for docs on a specific function, and otherwise never show them? Usually the go doc for a single function is pretty short so there’s room to fill and since it’s more targeted the examples are much more likely to be helpful

This doesn't take into account package level examples, which do exist.
Also, just to point out that while it is often true that function level documentation is short, that's not always the case - take time.Parse for example, which prints 48 lines in total, and the associated example for it is 51 lines (including output). This is unusual, but is not unprecedented. That said, I do personally agree with you that always printing examples when doing go doc pkg func would be my preference. When I'm looking up specific documentation, an example is a useful component of that.

It's unclear how to annotate the lines in an unobtrusive manner. The best we came up with in a discussion is:
type Buffer struct {  // example available
	// Has unexported fields.
}
    A Buffer is a variable-sized buffer of bytes with Read and Write methods.
    The zero value for Buffer is an empty buffer ready to use.

func NewBuffer(buf []byte) *Buffer
func NewBufferString(s string) *Buffer
func (b *Buffer) Bytes() []byte  // example available
func (b *Buffer) Cap() int  // example available
func (b *Buffer) Grow(n int)  // example available
func (b *Buffer) Len() int  // example available
func (b *Buffer) Next(n int) []byte  // example available
func (b *Buffer) Read(p []byte) (n int, err error)  // example available
func (b *Buffer) ReadByte() (byte, error)  // example available
func (b *Buffer) ReadBytes(delim byte) (line []byte, err error)
func (b *Buffer) ReadFrom(r io.Reader) (n int64, err error)
func (b *Buffer) ReadRune() (r rune, size int, err error)
func (b *Buffer) ReadString(delim byte) (line string, err error)
...

but that's still pretty obtrusive. If instead we require -ex to start telling about examples, then it would make sense for go doc -ex bytes.Buffer to say:
func NewBuffer(buf []byte) *Buffer
    func ExampleBuffer()
    func ExampleBuffer_reader()
func (b *Buffer) Bytes() []byte
   func ExampleBuffer_Bytes()
...

and then go doc -src ExampleBuffer could print that example, as go doc -src bytes.NewBuffer prints the code for that function today.
The downside is you'd need to know about and use -ex. We thought about things like // -ex but that's pretty cryptic.

How about this for the way to add example support?
(1) The new flag -ex adds examples to the output, with examples attached to the API in the type, like go doc -ex bytes.Buffer writes:
func NewBuffer(buf []byte) *Buffer
    func ExampleBuffer()
    func ExampleBuffer_reader()
func (b *Buffer) Bytes() []byte
   func ExampleBuffer_Bytes()
...

Note that (not shown) methods or other things with no examples still get printed too, showing the full API and that they have no examples.
(2) If you say go doc bytes.ExampleBuffer (where ExampleBuffer is an actual example function), that prints the example source code along with any comment. This would mean go doc would have to load *_test.go files, both for the -ex flag and when the symbol name requested begins with Example.

What about the probably rare but technically possible case where a regular function that's not in a _test.go file starts with Example, and possibly even has the same name as an actual example? Default to regular one and then show example if -ex is given, maybe?

@rsc So with no -ex flag, the command behaves as before? I like that, but one of the desires was to find a way to express the existence of examples in that case. However, I am leaning towards thinking that sounds good in theory but won't work well in practice.

@robpike, yes, exactly.
@DeedleFake you're right, that can happen, even the conflict if the second one is in a package foo_test file.
I don't think it's going to happen but I suppose we could say -ex -src forces the use of the example.
By default go doc -src should continue to behave as it does today, which is to say it should print the non-test function.
Does anyone object to the proposal from last week? https://github.com/golang/go/issues/26715#issuecomment-1379294635

Sorry for taking so long to look at and respond to this. I like the above proposal, @rsc. To be clear, then, -ex in this proposal only affects whether examples are listed as existing for the symbol, and isn't needed to list the actual examples, as you'd just use e.g. go doc bytes.ExampleBuffer. Is that correct?
Your example output seems slightly incorrect to me, as ExampleBuffer() and ExampleBuffer_reader() are examples of Buffer, not NewBuffer(), so it would look more like this:
func ExampleBuffer()
func ExampleBuffer_reader()
func NewBuffer(buf []byte) *Buffer
func (b *Buffer) Bytes() []byte
   func ExampleBuffer_Bytes()
...

The lack of indentation to mark out these symbol-level examples is not ideal, as it doesn't clearly differentiate them as not part of the package API, but then starting the function list with indented Example functions would look odd too (though it would be in line with the preceding descriptive text). I'm unsure on which option would be preferable.

@nickjwhite, yes, -ex only controls printing the examples in the usual list.

Based on the discussion above, this proposal seems like a likely accept.
— rsc for the proposal review group

No change in consensus, so accepted. 🎉
This issue now tracks the work of implementing the proposal.
— rsc for the proposal review group

A question. Does -all also imply -ex?


it' skip seeds constraints when I pass pda array to accounts

1
#[account(
        init,
        payer = signer,
        space = 8 + MyAccount::INIT_SPACE,
        seeds = [b"bank"],
        bump
    )]
    pub my_account: Account<'info, MyAccount>,

2
const [myAccount] = anchor.web3.PublicKey.findProgramAddressSync(
      [Buffer.from("bank")],
      program.programId
)

3
const myAccount = anchor.web3.PublicKey.findProgramAddressSync(
      [Buffer.from("notbank")],
      program.programId
)

4
const tx = await program.methods
    .initialize()
    .accounts({
      myAccount: myAccount
    })
    .rpc();
    console.log("Your transaction signature", tx);

3 can pass test with wrong seed.


Set the correct auth database in connection string

Hey,
This is related to https://github.com/jenssegers/laravel-mongodb/pull/971
I've just realised that the connection string should be using the auth database from the options array, rather than the main database.
This PR corrects that problem. Sorry, only just noticed after you merged my previous PR 😞

Thanks Jens ❤

No problem! Will tag new version after some more fixes/tweaks.


fix(config): remove context on config template

👋 Hey
I'm new around here, so I may have done some mistakes, sorry!

Context
On a fresh Gitea install, when I go to the config admin page I had a 500 error page.
The logs:
2022/12/10 20:08:47 ...s/context/context.go:232:HTML() [E] [6394d93f] Render failed: template: admin/config:180:22: executing "admin/config" at <.Service.DefaultAllowOnlyContributorsToTrackTime>: DefaultAllowOnlyContributorsToTrackTime has arguments but cannot be invoked as function
2022/12/10 20:08:47 [6394d93f] router: completed GET /admin/config for [::1]:43800, 500 Internal Server Error in 5.1ms @ admin/config.go:99(admin.Config)

The fix
I removed the $.Context on the .Service.DefaultAllowOnlyContributorsToTrackTime to fix the 500 error page happening. It could be a mistake, and I don't fully understand what I've done!
Signed-off-by: Restray<EMAIL_ADDRESS>

caused by #22071


I want path block with weights.

#spam

I’ve blocked the OP, but I don’t know if that only affects my view or the repository.


Setting the default on MonitorField

Looking at MonitorField, the default will always be django.utils.timezone.now:
    def __init__(self, *args, **kwargs):
        kwargs.setdefault('default', now)

However, when creating a new object, could it make more sense for this to be null in some common situations? For example, in the docs, published_at = MonitorField(monitor='status', when=['published']) would put the created datetime in published_at, even when status has never been set to published.

Sure, that's why the code you pasted uses setdefault, not a normal dict-set; so that you can override. By default MonitorField is non-nullable, if you want a nullable MonitorField that defaults to null, just say mymonitor = MonitorField(monitor=..., null=True, default=None)

Sorry, misunderstood it, thanks!


Feature Request: Commits since a specific branch (vs just master)

:clipboard: Description
Would like to request ability to define a non-master branch when adding "commits since" badge.
Line below shows that it is hardcoded to only compare with master.
https://github.com/badges/shields/blob/24bc7bcfc341c044c9ec815487fa07585b038ec2/services/github/github-commits-since.service.js#L73

Sounds like a good idea!
That badge is one of the last to be refactored, so that should happen first! Alternatively if one of the maintainers decides to pick that up, maybe this could be rolled in.
If you're interested in helping with the refactor, you're welcome to! See #2863 for more information on that.

Hey @desimaniac!
Thanks for your feature request, I've taken care of the implementation. Here is the new badge in action on our staging environment:
https://shields-staging.herokuapp.com/github/commits-since/badges/shields/d533bbd559fb6cfc7c2c8be13678529c0449e749/gh-pages.svg

It will be available on our live servers in the next few days. 😉
Cheers,
Pyves


[FLINK-30176] Fix assert_available_slots when curl is returning empty response

What is the purpose of the change
The condition is simply wrong, please see the following case:
$ expected=0
$ actual=""
$ if [[ expected != actual ]] then echo "Not same"; else echo "Same"; fi
Same

In this PR I've fixed this edge case.
Brief change log
Fixed the bash logic.
Verifying this change
Existing e2e tests.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changes to the CustomResourceDescriptors: no
Core observer or reconciler logic that is regularly executed: no

Documentation

Does this pull request introduce a new feature? no
If yes, how is the feature documented? not applicable

cc @gyfora


Update outdated reference to gpt-4-turbo

Looks like this alias was overlooked in 8171c9a. This commit makes it
match with the usage of gpt-4o in the associated example.

Thanks for this.


Extension download issue

Type: Bug
For the past many months, i am not able to download any sort of extensions on vs code. I had also uninstalled and installed again, tried downloading the extension manually but nothing works. Currently i am running vs code on windows 11 and vs code version 1.87.2. In the log file it shows Error: EPERM: operation not permitted, rename ..  . Pls anyone help me with this.
VS Code version: Code 1.87.2 (863d2581ecda6849923a2118d93a088b0745d9d6, 2024-03-08T15:20:17.278Z)
OS version: Windows_NT x64 10.0.22631
Modes:

Hi @arijit-15 ,
Thanks for reaching VS Marketplace Team, as this issue looks specific to VS Code, could you please reach out to the VS Code Team https://github.com/microsoft/vscode/issues for further assistance.
Regards,
VS Marketplace Team


Undefined labels cv::Exception::Exception(int, std::__1::...

Here is an issue I have, I read previous posts and added -lc++ to my OTHER_LINKER flags and I still see the same issue.
I also tried to modify best_line_for_sample and llcv_equalize... making them a dummy methods. Build icc project and use new library, still see the same issue. I am getting out of ideas, what could I do ? I have no issue with building icc and deploying it on iPhone 6.
I am thankful for any help to resolve linker issues.
Thanks,
--eugene
"cv::Exception::Exception(int, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, int)", referenced from:
best_line_for_sample(IplImage, unsigned char) in libCardIO.a(dmz_all.o)
llcv_equalize_hist(IplImage const, _IplImage*) in libCardIO.a(dmz_all.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Same issue here!


Add Material Design Icons and icon sizing to IconButton Component

you can now use material design icons with the IconButton component using the md-icon flag. The sizing and spacing is a little different and md-icons tend to be a bit smaller, and so making the size match tends to make the buttons a little larger.
Font Awesome Icon Size fa-size takes sm | ls | xs | xl | 2xs | 2xl | 3xl  size, while md-size takes standard css units and x-small, small, default, large, x-large (as defined in the VIcon docs)
<icon-button
  fa-icon="circle"
  :color="accentColor"
  tooltip-text="FontAwesome Circle"
>
</icon-button>
<icon-button
  md-icon="circle"
  :color="accentColor"
  tooltip-text="Material Design Circle"
  md-size="default"
>

This works for me, so I'm going to merge. @Carifio24, if there's anything about this you'd like to update, we can do that in a new branch.


ORCID Authorship Assignment: Define Acceptable Distance

Currently, the assignment of an ORCID profile to a DOI (DOI is listed in an ORCIC profile) requires an exact match of first and last name of an author with the metadata provided by the DOI RA.
 # match ORCID profiles by name
    author_orcid = list(
        filter(lambda orcid: orcid.family_name == family_name and orcid.given_name == given_name, orcid_info))

To improve the chance of a match, an argument could be introduced defining the acceptable distance, i.e. what would still be considered a match also if the strings are not identical.
Choices:

levensthein distance algorithm
thefuzz, see https://gitlab.switch.ch/connectome/rdf2rdf/-/issues/65#note_180235

Also integrate provenance information from ORCID profile (how the DOI was imported/assigned):
curl -L -H "Accept: application/orcid+json" "https://orcid.org/0000-0002-9016-1013" > orcid.json
."activities-summary".works.group[]."work-summary"[].source."source-name"
-> instead of requesting JSON-LD, request the ORCID native JSON format.
Get DOIs from native ORCID JSON: [."activities-summary".works.group[]."work-summary"[]."external-ids"."external-id"[] | select(."external-id-type" == "doi") | ."external-id-value"]

eval cordis:

for doi in `jq -c '.[]' doi.json`; jq .$doi formatted.json >> eval.txt;


add more tests and make changes to IntegrationTest and TaskServletTest

Changes some of the implementation of IntegrationTest to accomodate recent changes in master branch
Adds two new tests in IntegrationTest, one to test the scroll to bottom feature that loads more tasks and another one to test the searchbox feature that allows users to search by a different location
Adds 4 new tests to the TaskServletTest file to test the doGet functionality, one tests a doGet for less than 10 tasks, another one for more than 10 tasks, another one with missing neighborhood information, and lastly one that tests the use of category filters.

Resolves #96

Tests seem more stable now (were there any other changes)? I needed to refresh a couple of times but got a clean run on first attempt!

This has been my experience as well! I think it has to do with the new version of the web driver I am using (it's the alpha version needed to access chrome dev tools to fake a location). 🎉


Display of the pending pull requests in repository widget

Display all the pending pull requests of a bitbucket repository with title of the repo, name of the branch and creation date of the pull request

@r-petre Good effort and we really appreciate your interest. We would appreciate if you could add more documentation explaining your changes preferably with any supporting screenshots on how the widget would appear post merging this PR?

@r-petre can you also update the PR to only include files you actually make changes to? No need to include the formatting for all the files.


Binary installation not working

I used "sudo apt-get ..." command to install this package. And it is not running out of the box.
The files that  I can see in the /opt/ros/... location is just 'cmake' folder and package.xml. Also the roslaunch follow_waypoints is not producing anything after autocomplete.

I have the same issue, is there any other way that I can do an installation manually?

Hey @chugoh, yes there should be a way to manually install. I don't have a way to test this right now, but something like this might work.
cd ~/catkin_ws/src
git clone https://github.com/danielsnider/follow_waypoints
cd ~/catkin_ws
catkin_make
source ~/catkin_ws/devel/setup.bash
rosrun follow_waypoints follow_waypoints.py

I don't remember if catkin_make is a required step or not.


extended bash completion for commands

restic 0.17.0
it would be nice if bash completion would work for stats --mode to complete the different modes.
and maybe for snapshot ids in snapshot command or alternatively support for short ids (like in docker where the first characters are enough to define images or containers)
this works already - maybe I did something wrong last time

There's no autocompletion for --mode and several other options so far. We'd have to inform cobra about the list of valid options.
I've built a proof of concept PR for cat and stats --mode according to the steps described at https://github.com/spf13/cobra/blob/main/site/content/completions/_index.md . See https://github.com/restic/restic/pull/4951 .
If someone wants to extend this to other commands, feel free to open further PRs :-) .

I am working on extending this to other commands.

Many of commands take snapshot ID as argument. It would be possible to complete these IDs by opening the repository and listing snapshots in ValidArgsFunction (see cobra docs), however in some cases connection to the repository requires checking some extra arguments.
For example, my cat snapshot command looks like:
$ restic snapshots -r rclone:backup/rominf/passwords --option rclone.program="ssh hetzner-backup rclone" --option rclone.args="serve restic --stdio --config=/dev/null"

While it is probably possible to parse and pass required --options, I would avoid this, since it would complicate the code.
A better solution would be to specify these options in config file or in environmental variables (see: https://github.com/restic/restic/issues/4404 and https://github.com/restic/restic/issues/1233).

Many of commands take snapshot ID as argument

Retrieving the snapshot IDs from the repository is probably too complex for now. It might be interesting though to at least signal to the shell completion that the following argument is not a filepath but rather some other text. However, I'm not sure how much work that would be.


release purepython py3 wheel

@r0fls We should set this up for the 0.5.3 release

you don't need to make a new release, you can go back and release it for all the old versions.

Pure python wheels are released as of 0.5.3!


Make vanished player don't take slots on the playerlist

Hi again!
Not sure if I explained myself correctly in the title (or if what I'm suggesting is even possible), but I think it would be a good addition if there was a way (perhaps a config setting) to make vanished players not count on the maxPlayer server setting.
That way, people don't realise there's someone vanished when the server shows (for example) 11/12 players connected but they still can't join due to the server being full

Thank you from the AQM Team!


Handle self invoked anonymous function

:+1:

Current coverage is 100.00%

Merging #26 into master will not affect coverage as of 379761a

@@            master     #26   diff @@
======================================
  Files           80      80
  Stmts          822     826     +4
  Branches       105     107     +2
  Methods          0       0
======================================
+ Hit            822     826     +4
  Partial          0       0
  Missed           0       0

Review entire Coverage Diff as of 379761a

Powered by Codecov. Updated on successful CI builds.


cross-compile fails at commit f33d152400c5a8acd9b8b00efd91a59328388d9a

Hello. It used to cross-compile under mingw64/ubuntu with target windows.
Now it fails on and after commit f33d152400c5a8acd9b8b00efd91a59328388d9a
Log:
[13:42:50][DEBUG] ninja -j 6
[13:42:50][DEBUG] Running 'ninja -j 6 ' in '/home/u/Desktop/_working/workdir/x86_64/spirv-tools/_build'
[0/1] Re-running CMake...

Fixed by #5002

Thanks


CAShapeLayer does an end run around CALayer rendering

Instead of keeping track of whether it is dirty and using the CALayer rendering pipeline, it renders its own bitmap into its own bitmap context and splats that into ANOTHER layer inside it.
Additionally, it does its own state-keeping to determine whether it is dirty instead of using setNeedsDisplay.
Active impediment to work on #2038.

Also, it does this rendering in layoutSublayers.
CAShapeLayer is written as though CALayer didn't provide callbacks for subclasses to render themselves.

Identified another bug with this approach:
When you use a CAShapeLayer, you are expected to set a contentsScale (as far as I can tell) to match your desired rendering scale; it defaults to 1.0 even when the screen is !1.0.
If you set the screen scale appropriately, the sub-layer extends beyond the bounds of the parent layer instead of rendering at higher depth.


ai: Add GitHub Actions workflow for automated testing

Add GitHub Actions workflow for automated testing
Changelog
Added a new GitHub Actions workflow in the main.tf file to automate testing processes for the GitHub repository.

Fallback plan
In case of any issues with the workflow, we will revert the changes and investigate the root cause further.

asdfasdf


Get Started with ASP.NET, your first application in 5 minutes.

5 minutes have passed and I can't even build! It's stuck in the first page of the tutorial that tells me to hit F5 to build and debug it doesn't even do that! it's a big claim to build your first app in 5 minutes when the first page of the tutorial leads to a setback.
Link to the tutorial page here

Try the Razor Pages version. It's much easier to follow.

it's a big claim to build your first app in 5 minutes

I'd like to get that fixed. That's a big claim.


sourcemap url missed

In my case, I use:
discardComments: false,

Other comments are kept. However, the sourcemap url at the end of the css file disappeared.
/*# sourceMappingURL=main.3c8bd9cc.css.map*/

What should I to keep my sourcemap url, please?

@tangshuang which build tool? webpack, if yes your should disable source map using webpack.config.js


Colour API proposal

The changes in this PR are the additions needed to implement the proposal as a usable API. More things might need to be added later. Breaking changes are described below but not included in the PR so that reading the code is easier.
Keep in mind that this is a proposal and while the commits in this PR could be merged, they exist more to demonstrate the API as code. I don't mind changing stuff.
API overview

ColourInfo: Semantically unchanged. Describes the colours of the four vertices of a quad.
SRGBColour: Main single-colour type that framework users interact with. Contains a gamma-corrected sRGB colour. Thin wrapper around Colour4. The type discourages invalid things like gamma-incorrect colour math[^1].
LinearColour (new): Secondary colour type for framework users. Contains a linear-light sRGB colour[^2]. Thin wrapper around Colour4. Basically only exists to do colour math.
Colour4: Should rarely be used directly. Low level, raw colour values, no inherent colour space. This is where the real math (and optimization) should happen so that all abstractions can benefit.
Color4: Semantically the same as Colour4. Colour4 (no osuTK dependency, uses System.Numerics.Vector4 which should optimise better) should always be preferred over Color4 unless interacting with an osuTK API that requires it.

Implementation notes

Turning MultiplyAlpha into a pure method is a hidden trap for existing usage ([Pure] should help with this, but not sure it's enough). Renaming it is an alternative, but making it pure is a requirement for a readonly SRGBColour.
The colour constants Color4.Red etc. are copies of the CSS <named-color> values and are defined to be in the sRGB colour space, so they should live in SRGBColour. This is also necessary to remove the implicit conversions Color4/Colour4 <-> SRGBColour later on.
The change from Color4 to Colour4 inside SRGBColour is most likely going to have performance implications. I am not sure how to test this because colours are used everywhere, and I do not have enough insight into the renderer implementations to know how this impacts them.

Next steps
This list is mostly unordered.

[X] Update Colour4 and ColourInfo docs
[X] Make SRGBColour readonly and extend API to cover common usage
[X] Implement LinearColour
[ ] Remove SRGBColour.Linear (breaking with low impact)

Returns a Colour4 which loses colour space information
ToLinear() should be used instead

[ ] Remove SRGBColour operator overloads (*, /, +) (breaking with low impact)

Use ToLinear() and LinearColour instead
Make the expensive sRGB<->linear conversions explicit
Chaining the SRGBColour operators is slow and imprecise and turns the operators into a footgun[^3]

[ ] Replace Color4 and Colour4 in public API with SRGBColour or maybe Colour4 instead (breaking with very high impact)

can be done in steps
Notable: OsuColour, Color4Extensions

[ ] Remove implicit conversions between Color4/Colour4 and SRGBColour (see #5714) (breaking with high impact)
[ ] Remove implicit conversions between Color4/Colour4 and ColourInfo (breaking with very high impact)

This is going to be a huge change (drawable.Colour = Color4.Red must be replaced with drawable.Colour = SRGBColour.Red), but can often be done with search-and-replace.
Benefit: Removes osuTK from a lot of places.

[ ] Figure out what to do with colour-related Bindable types
[ ] Figure out what to do with colour pickers
[ ] Maybe move hexcode parsing and related code to SRGBColour (these are also semantically sRGB)
[ ] Maybe remove colour constants in Colour4

[^1]: Gamma-incorrect operations could be done with helper functions.
[^2]: As described here (search for "srgb-linear"). Can also be called "linear sRGB" or "gamma-expanded sRGB". This is usually called "linear colour"/"linear colour space" in and around o!f, which is why the struct is named LinearColour.
[^3]: For example, a * b * c will: Convert a and b to linear. Multiply those two. Convert the result back to sRGB. Convert the first result and c to linear. Multiply those two. Convert that result back to sRGB.

The type discourages invalid things like gamma-incorrect colour math
(...)
Gamma-incorrect operations could be done with helper functions.

I immediately disagree with these premises. They sound like ivory tower thinking to me.
As discussed multiple times to death in discord, like it or not, in 99% of use cases we want gamma "incorrect" to match every other graphics program that is gamma "incorrect". So we're going to have to sprinkle these "helpers" everywhere just to get what we want to match everything else, in 99% of use cases.

Without spending too much time on this for now, my preliminary thought is that SRGB doesn't make sense to think about and use directly. It's only really useful when interpolating/blending colours. For anything else, I'd prefer the user to not have to think about SRGB unless it needs to be resolved into a colour space for the purpose of doing some sort of maths.
It's unintuitive because we never think of colours in SRGB - when we translate an RGB value from figma or want "red", we're basically dealing with the "linear" colour space, though colour spaces are actually irrelevant at this instant in time.
Eventually, the question will arise (from a new o!f consumer): "which colour should I use, SRGBColour or LinearColour?" To, which the correct response will be "use either as they're identical, unless you're doing interpolation".  But really, the user shouldn't have to think about this or ask this at all.
So... I would actually be in favour of using Color4 more, and SRGBColour less. The considerations, imo, only need to be around:

Interpolation.ValueAt(): Perhaps this needs Color4 and SRGBColour variants, with the user required to cast to perform gamma-correct interpolation.
Drawable.FadeColour(): This hides the underlying interpolation and needs some sort of special support - perhaps a parameter bool gammaCorrect is fine but it will also need its own transform.


Bug: LocaFree

Which crate is this about?
windows
Crate version
master
Summary
LocalFree has incorrect error handling. LocalFree returns NULL on success. This will return an error when LocalFree succeeds:
https://github.com/microsoft/windows-rs/blob/2e7f99d9ca80bb8f1216db7964062daf42e80158/crates/libs/windows/src/Windows/Win32/System/Memory/mod.rs#L465-L472
Toolchain version/configuration
No response
Reproducible example
No response
Crate manifest
No response
Expected behavior
No response
Actual behavior
No response
Additional comments
No response

See #2392

I understand the sentiment, it's certainly an odd use case.

On the other hand, the only reason LocalFree would fail is if you passed an invalid handle, so checking the result isn't particularly useful.

Some find it useful to catch invalid handle errors. The way LocalFree is handled it's impossible to do this.
I think it would as simple as a 1 character change to conform to the LocalFree contract.
-::windows_core::imp::then(!result__.is_invalid(), || result__).ok_or_else(::windows_core::Error::from_win32)
+::windows_core::imp::then(result__.is_invalid(), || result__).ok_or_else(::windows_core::Error::from_win32)

Sure, but the code is generated from metadata and I prefer to influence this through the metadata if needed.
https://kennykerr.ca/rust-getting-started/how-are-crates-built.html

Perhaps the metadata generation isn't aware of SAL? LocalFree is decorated with _Success_(return=0):
https://github.com/microsoft/win32metadata/blob/main/generation/WinSDK/RecompiledIdlHeaders/um/WinBase.h#L1301-L1308
With all due respect, I believe instances like this should be labeled as "bugs"/"tooling defects"/etc. The work here is already adopted my many and Microsoft should ensure correctness. Dismissing or ignoring the these types of problems are going to reach a critical mass and will reflect poorly on Microsoft+Rust.

If the metadata marks the function as PreserveSig = true then we could avoid the transformation. I'll forward to the Win32 metadata repo for their consideration.


Add supports for labels?

Hello!
Wonder if there is any plans to add support for labels? It would be great if we could extend IFeatureManager with a new method of IsEnabledAsync. For example:
_featureManager.IsEnabledAsync("feature", "label");
Best regards
David Stark

There are no plans to add such an API. Do you mind describing the scenario in which you find such an API to be helpful. We are planning an improvement to the library, and if I'm guessing what you would want to use that API for correctly, then it may help.

Hello,
I want to be able to target feature flags with a specific label. The label can be a specific user, country or something else.
For example i have three feature flags that is named awesomeButtonForEditing and they have the label person1, person2, usergroup1 or country1.
_featureManager.IsEnabledAsync("awesomeButtonForEditing ", "person1");
_featureManager.IsEnabledAsync("awesomeButtonForEditing ", "person2");
_featureManager.IsEnabledAsync("awesomeButtonForEditing ", "usergroup1");
_featureManager.IsEnabledAsync("awesomeButtonForEditing ", "country1");
Now with the SDK i can only toggle on awesomeButtonForEditing and not be able to use the labels in the service.
Best regads
David Stark

Thank you for describing the scenario. This is a common one, and the main way to do it would not be to have multiple feature flags across different labels, but rather to have a single feature flag with parameters.
Feature flags can have feature filters that dynamically enable a feature based off some contextual data. In this case it looks like you have some contextual data about what user is using the app, where they are from, and what groups they are in. This is a perfect use case for a feature filter, and it might fit in perfectly with our built in targeting filter.

Big thanks for the explanation !

After reading the documentation I dont get how i´m suppose to the Target filter to work with a console application? Every example is for ASP.Net Core?
What i can find is "In console applications there is no ambient context such as HttpContext that feature filters can acquire and utilize to check if a feature should be on or off."
Is there any more demos/examples how to communicate with the App Config ? And just compare a string value from the "context" ? Should i still use ITargetingContextAccessor ?

After reading the documentation I dont get how i´m suppose to use the Target filter to work with a console application? Every example is for ASP.Net Core?
What i can find is "In console applications there is no ambient context such as HttpContext that feature filters can acquire and utilize to check if a feature should be on or off."
Is there any more demos/examples how to communicate with the App Config Features with a console applications ? In my case all i need to compare is a string value with the group or user. Do i still use
ITargetingContextAccessor ?


Hello, why is this question?

I'm running the source code and I have this problem, there is no good solution, I hope I can answer my doubts, thanks.
Traceback (most recent call last):   File "/home/ws/Desktop/Diffusion-based-Segmentation-main/guided_diffusion/train_util.py", line 179, in run_loop     batch, cond = next(data_iter)   File "/home/ws/.conda/envs/unet/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 517, in __next__     data = self._next_data()   File "/home/ws/.conda/envs/unet/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 556, in _next_data     index = self._next_index()  # may raise StopIteration   File "/home/ws/.conda/envs/unet/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 508, in _next_index     return next(self._sampler_iter)  # may raise StopIteration StopIteration

Hi
Does your script stop due to this StopIteration error?
If not, you are fine. If yes, you need to adapt your data loader not to stop once it loaded all images of the training set.

yes, you need to adapt the file bratsloader.py to your dataset, or store the data as indicated in the folder /data.

But what I am using is . /data/training that you provided.

could you give me the detailed error message? where does this error occur?

`Traceback (most recent call last):
File "/home/ws/Desktop/Diffusion-based-Segmentation-main/guided_diffusion/train_util.py", line 179, in run_loop
batch, cond = next(data_iter)
File "/home/ws/.conda/envs/unet/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 517, in next
data = self._next_data()
File "/home/ws/.conda/envs/unet/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 556, in _next_data
index = self._next_index()  # may raise StopIteration
File "/home/ws/.conda/envs/unet/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 508, in _next_index
return next(self._sampler_iter)  # may raise StopIteration
StopIteration
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ws/Desktop/Diffusion-based-Segmentation-main/scripts/segmentation_train.py", line 90, in
main()
File "/home/ws/Desktop/Diffusion-based-Segmentation-main/scripts/segmentation_train.py", line 63, in main
lr_anneal_steps=args.lr_anneal_steps,
File "/home/ws/Desktop/Diffusion-based-Segmentation-main/guided_diffusion/train_util.py", line 184, in run_loop
batch, cond = next(data_iter)
File "/home/ws/.conda/envs/unet/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 517, in next
data = self._next_data()
File "/home/ws/.conda/envs/unet/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 556, in _next_data
index = self._next_index()  # may raise StopIteration
File "/home/ws/.conda/envs/unet/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 508, in _next_index
return next(self._sampler_iter)  # may raise StopIteration
StopIteration   This is the running error message。 and then I set the breakpointdata = self._next_data()，It came up with this error {AttributeError}'_SingleProcessDataLoaderIter' object has no attribute 'seqtypes_set'`

Can you print the length of your BRATS dataset in the script segmentation_train.py?

Hi, I am printing out a length of 0, which means that I am not getting the file in the dataset.

Hi, I am printing out a length of 0, which means that I am not getting the file in the dataset.

ok, did you set all paths to the dataset correctly?  The error message happens because your data loader cannot find any files in the dataset.

I tried to set the absolute path, but I can't read the data I want.

I don't seem to be able to get into the loop to read the file        for root, dirs, files in os.walk(self.directory):             # if there are no subdirs, we have data             # print("root: ",root)             print(1)             if not dirs:                 files.sort()                 datapoint = dict()                 # extract all files as channels                 for f in files:                     seqtype = f.split('_')[3]                     datapoint[seqtype] = os.path.join(root, f)                 assert set(datapoint.keys()) == self.seqtypes_set, \                     f'datapoint is incomplete, keys are {datapoint.keys()}'                 self.database.append(datapoint)


remove logging.basicConfig from submodules/files

Remove logging.basicConfig from local files, as its a global setting which takes effect at the first call, while subsequent calls are ignored.
for example, It introduces lots of unexpected DEBUG logs to my code when gadget_utils.pipeline_utils is imported to my code, as it has level=logging.DEBUG defined.

tested and confirmed that only first basicConfig takes effect:

no need


Manual review request to add coingeckoID for Solabrador

I'm submitting a manual review request
[ ] bug report
[x] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project

For some reason its not possible to add coingeckoID to your existing token, i can see the reason but it leaves me with little to no choice on what to do, i can't ping anyone in discord and i'm barely allowed to write about it, so i'll just post here instead.

https://github.com/solana-labs/token-list/pull/5797

The pull request above should work and it does not alter any other code, it simply adds my id which is the same id as my project name. I hope someone can add this manually, i'd appreciate it a lot.

@leoluk
I see you've done this in the past, perhaps you could help us out aswell?
Any help would be greatly appreciated

confirmed coingeckoid
confirmed serum address
confirmed decimals=9 on https://solscan.io/token/GLmaRDRmYd4u3YLfnj9eq1mrwxa1YfSweZYYZXZLTRdK
merged.
side note, as a matter of hygiene it'd be better to squash your commits before requesting this


Acceptance Tests Timeout

Hi,
I have been doing some acceptance tests, and i had some problems with the jwt authenticator, your tests never finish, if you dont put in your testing environment:
ENV['ember-simple-auth-token']['refreshAccessTokens'] = false;
It's not a bug, but i spent some time in resolve that was the problem with my tests.... so maybe it will be useful for other.
Thanks for the plugin.

Confirmed, I've run into this as well.  Do we want to update the docs to put in this info or would recommending that lead to other bugs?

Hi @acorncom @asantiago , thanks for pointing this out. I think we could add it to the docs until we find a solution for this bug. If you guys have a solution for this please feel free to make a PR. Let me know if you'd like to make a PR for the docs or if I should add it.

I'll have time next Thursday, but if someone wants to beat me to it, that's fine on my end ;-)

Can you share your acceptance test where you use the authenticateSession?
I can't pass any test in the protected area ... thanks

This might be fixed in master.


Support expressions on ng-switch-when

I tried myself to do this and I was able to implement it but I couldn't make the test to work. Please refer to this Stackoverflow question: http://stackoverflow.com/questions/20482653/testing-angularjs-scope-variables

This is not going to happen, the main reason is that allowing expressions into ngSwitchWhen will requiere a watch on the expression, and this defeats the entire purpose of ngSwitchWhen

Yeah, would be awesome to have just once-resolved values. Similar use-case for me.

Also useful for supporting TypeScript enums exposed via controller

Even an NgIf/NgElse would solve this, I think.


Ubuntu 16.04 - Command "runtime" is not defined

Got following error after following the instructions on Ubuntu 16.04 VPS
root@blockchain:~/Energy/Decentralized-Energy-Composer/dist# composer runtime install --card PeerAdmin@hlfv1 --businessNetworkName decentralized-energy-network
Do not run Composer as root/super user! See https://getcomposer.org/root for details
[Symfony\Component\Console\Exception\CommandNotFoundException]
Command "runtime" is not defined.

issue closed. Missed  a few steps during installation.


TableViewCell memory leak in pod >= 0.8.0

There is a memory issue with TableViewCell when TableViewCell is kept in memory by NotificationCenter when the TableViewCell object should have been deallocated. This issue is reproducible on versions >= 0.8.0 (I can't reproduce it for 0.7.0 version).
Environment Information

Platform:

[x] iOS
[ ] macOS

Package version(s): CocoaPods; MicrosoftFluentUI/PopupMenu_ios pod version >= 0.8.0

Please provide a reproduction of the bug:

FluentUITableCellMemoryLeak.zip

open attached project
run the project
tap "Show drawer" button
tap "Close" button
(optional) repeat 3-4 to see that NotificationCenter keeps strong references on all TableViewCells
click on "Debug Memory Graph" button in Xcode
check TableViewCell objects references in Xcode Memory Graph

Actual behavior:
NotificationCenter keeps strong references on TableViewCell objects.
Expected behavior:
No memory leaks.
Priorities and help requested:
Products/applications affected: AzureCommunicationUICalling

Fixed in main and in released version 0.8.9. Fix will also be coming to the next 0.9.z release.


add missing assertions of some test cases

add missing assertions of some test cases

Hi @SparkLee ,
Don't forget to import the corresponding package for your changes.

It's done.

Hi @SparkLee ,
Don't forget to import the corresponding package for your changes.

It's done.

Codecov Report

Merging #4860 (b70f48f) into develop (96fd4f5) will decrease coverage by 1.29%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             develop    #4860      +/-   ##
=============================================
- Coverage      44.80%   43.50%   -1.30%
- Complexity      7637     7661      +24
=============================================
  Files            982      982
  Lines          68253    68253
  Branches        9023     9023
=============================================
- Hits           30580    29693     -887
- Misses         33884    34825     +941
+ Partials        3789     3735      -54

Impacted Files
Coverage Δ

...rocketmq/test/client/rmq/RMQBroadCastConsumer.java
0.00% <0.00%> (-100.00%)
:arrow_down:

.../apache/rocketmq/test/message/MessageQueueMsg.java
0.00% <0.00%> (-94.74%)
:arrow_down:

...ava/org/apache/rocketmq/test/util/RandomUtils.java
0.00% <0.00%> (-92.86%)
:arrow_down:

...etmq/test/listener/rmq/order/RMQOrderListener.java
0.00% <0.00%> (-85.19%)
:arrow_down:

...est/listener/rmq/concurrent/RMQNormalListener.java
0.00% <0.00%> (-80.77%)
:arrow_down:

...he/rocketmq/test/client/rmq/RMQNormalProducer.java
0.00% <0.00%> (-80.62%)
:arrow_down:

...rocketmq/test/client/rmq/RMQAsyncSendProducer.java
0.00% <0.00%> (-80.51%)
:arrow_down:

...pache/rocketmq/test/client/rmq/RMQSqlConsumer.java
0.00% <0.00%> (-80.00%)
:arrow_down:

...a/org/apache/rocketmq/test/factory/TagMessage.java
0.00% <0.00%> (-74.47%)
:arrow_down:

...pache/rocketmq/test/listener/AbstractListener.java
0.00% <0.00%> (-74.08%)
:arrow_down:

... and 57 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Sample of video interpolation

Here the sample of video you suggested,  interpolated to  768fps using RIFE.
https://youtu.be/mFU8z-DSTds

Thank you. That looks pretty good. I'm noticing a significant loss of detail - especially noticeable if you compare the section of the videos -- both VFIformer and EMA VFI do a better job maintaining the car grill detail compared to your example, with EMA VFI doing the best of the three.
My understanding is EMA VFI is based in part on RIFE so I may be already reaping the benefits.


Methods should be alphabetized

How is anyone supposed to find anything?
Your code is like this cat currently:

Every line of cod should be alphbetized. It might no longer be parsable by a computer, but we all know that cod is not really meant to be read by computers.

Agreed, this is a sensible request.

Following PR#XVIII, all methods have been renamed in cyrillic and alphabetized. Closing for now.


[FLINK-3335] [runtime] Fix DataSourceTask object reuse when disabled

When object reuse is disabled, DataSourceTask now copies objects received from the InputFormat to prevent the collection of reused objects.
An example where this is necessary is a DataSet created from a user implementation of Iterator which reuses a local object returned from Iterator.next.
Also, when object reuse is enabled, the cycling among three objects has been removed. I had added this a few months ago when starting to resolve an issue with reduce drivers.

I am very hesitant to introduce an "always copy" step in the data sources.
Some data sources create Avro or Thrift types which are incredibly expensive to copy.
I personally would prefer to accept that inconsistency at this point and make sure it is documented well (that source implementers should not emit the same internal elements multiple times).
A user that wants to optimize the data source can actually check the object reuse config flag (the ExecutionConfig can be obtained from the RuntimeContext) and depending on that flag reuse objects differently in the code.
What do you think?

Considering this and other recent discussions I agree that introducing a high-level copy would be detrimental and that there are better solutions. I would still like to include the other cleanup but will do so under a new ticket so that we can close this idea.