 [20:05:54] Fatal: All server authorizations failed.

Authorizing, please be patient, it may take upto 300 seconds...
Authorizing with the Heroku server ...
Heroku server failed, authorizing with the Heroku1 server ...
Heroku1 server failed, authorizing with the Vercel server ...
Vercel server failed. Last resort: authorizing with the GAE server ...
 [20:05:54] Fatal: All server authorizations failed.
 [20:05:54] ----------------------------------------------------------------
 [20:05:54] This is most likely caused by authorization errors.
Possible causes:

You didn't run this program for a long time (more than a month).
You changed your Baidu password after authorizing this program.
You didn't give this program the 'netdisk' access while authorizing.
...
Possible fixes:

Remove the authorization token by running with the parameter '-c', and then re-run this program.
If (1) still doesn't solve the problem, you may have to go to:
https://passport.baidu.com/accountbind
and remove the authorization of this program, and then re-run this program.

Thanks for feeding back.
However, I just tried myself, both authorisation and token refreshing work fine. Are all these servers blocked at your network?

[root@iZwz990gu55chz6pucdrd5Z bin]# ./bypy info
Please visit:
https://openapi.baidu.com/oauth/2.0/authorize?client_id=q8WE4EpCsau1oS0MplgMKNBn&response_type=code&redirect_uri=oob&scope=basic+netdisk
And authorize this app
Paste the Authorization Code here within 10 minutes.
Press [Enter] when you are done
57dddd4420494d54995d511e40a7d46f
Authorizing, please be patient, it may take upto 300 seconds...
Authorizing with the Heroku server ...
Heroku server failed, authorizing with the Heroku1 server ...
Heroku1 server failed, authorizing with the Vercel server ...
Vercel server failed. Last resort: authorizing with the GAE server ...
 [23:12:16] Fatal: All server authorizations failed.
 [23:12:16] ----------------------------------------------------------------
 [23:12:16] This is most likely caused by authorization errors.
Possible causes:

You didn't run this program for a long time (more than a month).
You changed your Baidu password after authorizing this program.
You didn't give this program the 'netdisk' access while authorizing.
...
Possible fixes:

Remove the authorization token by running with the parameter '-c', and then re-run this program.
If (1) still doesn't solve the problem, you may have to go to:
https://passport.baidu.com/accountbind
and remove the authorization of this program, and then re-run this program.
[root@iZwz990gu55chz6pucdrd5Z bin]#

Thank you for your reply!The above are complete informations.I am in China.Are all these servers blocked by Great Wall?

Not sure. You can run bypy -dv and and post the result here.


[Rails][Bug] Birthplace field for Speakers is not updating via the Speaker edit form

Describe the bug
For Speakers, it is possible to assign a Birthplace. This works upon initial creation.
However, when trying to update the Birthplace via the dashboard Speaker edit view from location A to location B, the form will successfully be saved, however the speaker will continue to have location A.
To Reproduce
Steps to reproduce the behavior:

As a logged in Terrastories community admin, create a new Speaker and assign it a birthplace.
Then, edit the Speaker, and assign it a different birthplace.
See that the birthplace will continue to be the original value.

Expected behavior
In the above example, the speaker birthday is set to location B.

@rudokemper Can I work on this?

Sure! I assigned you.


[Feature] To add Karpenter Do Not Disrupt policy for Karpenter 1.x version

Problem Statement
Currently, we are using this Kyverno policy to add the "karpenter.sh/do-not-evict" tag to Kubernetes resources. This tag is not supported in Karpenter version 1.x and has been replaced by the "karpenter.sh/do-not-disrupt" tag. To ensure a smooth upgrade from Karpenter 0.37 to version 1.x, we will need to apply the additional Kyverno policy for add-karpenter-donot-disrupt.
Reference for this change from Karpenter - https://karpenter.sh/v1.0/upgrading/v1-migration/
Solution Description
Adding the policy document for add-karpenter-donot-disrupt to support the Karpenter 1.x version upgrade.
Alternatives
No response
Additional Context
No response
Slack discussion
No response
Research

[X] I have read and followed the documentation AND the troubleshooting guide.
[X] I have searched other issues in this repository and mine is not recorded.

@realshuting Hi I accidentally committed this directly to the main repo instead of my fork. Could you please help remove this commit? I will submit it properly through a PR from my fork afterwards. Really sorry for the confusion!


Revocation of access token was fixed

I'm fixing the bug in the method revokeAccessToken(), in AccessTokenRepository.
Incorrect behavior: the revokeAccessToken() method doesn't change the revoked field to 1.
New expected behavior:   the revokeAccessToken() method changes the revoked field to 1.
Provide a narrative description of what you are trying to accomplish:

@debugger84 thanks!


Remove Microsoft.Extensions.TaskCache.Sources

Addresses https://github.com/aspnet/Common/issues/238?

https://github.com/aspnet/RazorVSEditorBinaries/blob/dev/src/Microsoft.AspNetCore.Razor.Runtime/Microsoft.AspNetCore.Razor.Runtime.csproj#L23

We don't build that repo any more, it was meant to be a point-in-time clone of Razor. I'll follow up with folks to see if we can remove it.


openpose has no effect on img2img

if i use txt2img with openpose , it works, however, it has no effect when i use on img2img.
the posture is different from my reference img. i try to switch to canny and other processor, it doesn't work too.
I have tried to update to the latest version ( sd-webui-controlnet ), switch it on and off , restart, anything else i can do to fix this error? thanks

Do we know if controlnet in its current iteration is compatible with webui 1.4? I think initially there were some issues because control that hadn't been updated.

ask here: https://github.com/Mikubill/sd-webui-controlnet/issues

I'm having the same problem


Angular Type Checking not the same as previous logic

Hi there,
The logic that checks whether the inputted in/out transition objects is an array/function/object has changed. Previously, you had:
dataOptsType === '[object Object]'
which would only match if the dataOpts object was truly an object. But now with this code:
angular.isObject(dataOpts)
the function runs for situations where dataOpts is an object or an array because an Array is an object with this check. This is causing the following error to occur in our production app:
Error: [$injector:strictdi] function($state) is not using explicit annotation and cannot be invoked in strict mode https://errors.angularjs.org/1.7.8/$injector/strictdi?p0=function(%24state)     at angular.js:138     at Function.annotate [as $$annotate] (angular.js:4303)     at injectionArgs (angular.js:5100)     at Object.invoke (angular.js:5133)     at angular-gsapify-router.js:130     at Array.forEach (<anonymous>)     at getOpts (angular-gsapify-router.js:125)     at Object.enter (angular-gsapify-router.js:195)     at Function.enter (angular-gsapify-router.js:517)     at executeAnimationFn (angular-animate.js:1937)
because the isArray check is fine, but the isObject check also matches and then tries to run each array element on its own, which means the second part of our array being just a function gets flagged because of the strictDI requirement.

Hey! Could you submit a PR please?


mgmt, iothub, add live tests

relate to https://github.com/Azure/azure-sdk-for-java/issues/35316
Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:

[ ] The pull request does not introduce [breaking changes]
[ ] CHANGELOG is updated for new features, bug fixes or other significant changes.
[ ] I have read the contribution guidelines.

General Guidelines and Best Practices

[ ] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

API change check
API changes are not detected in this pull request.

/azp run prepare-pipelines

/azp run java - iothub - mgmt - tests

/azp run java - iothub - mgmt - test

/azp run java - iothub - mgmt - tests

/azp run prepare-pipelines

/azp run java - iothub - mgmt - tests

Could you locally regen iothub with a stable api-version (don't commit, don't check-in, we just need the code of a working api-version to run test), and test locally that your live test passes?
api-version problem raised in https://github.com/Azure/sdk-release-request/issues/3974, but we need to make sure your live tests works on at least one api-version.


State management

This is a big topic. We started with easy-peasy, because we made good experience with that library. After some time we realized that it's a bit of an overhead so we dropped it. Since it's built on redux, we switched to redux. Now we would really like to get rid of the reducer, action creator boilerplate stuff and find a state management library that helps us to optimize renderings and get a better performance. Zustand, Recoil and Mobx are on our list but we are open for suggestions.

I personally would lean to Zustand. I think it is a great library, which is easy to use and performant. Another option could be XState. It uses a state machine to manage the state.

A common timewaster I've witnessed a lot is jumping back and fourth between state libraries. They will all come with their own overhead and boilerplate. The question is is it really worth it to change it? Also consider that redux will make it much easier to implement an internal undo/redo stack than some of those other libraries.

What about Jotai? It is similar to recoil and looks very promising.

I started a while ago with EasyPeasy (which was great up to a point) - but after a while we switched to Recoil and it has been pretty good on the whole. There are a few cases that are a little tricky to work with that seem to be solved in another lib called hookstate - so maybe add that to the consideration list.
PS. I LOVE this library

Documentation still states that easy-peasy is under the hood.

https://hookstate.js.org/ is consistent with the school of thought that prefers consequential libraries like a state manager to, "Think in React" and to remain consistent and build upon what users already know from knowing React.

We know you will learn the Hookstate library API very quickly without reading much (if any) of the documentation. The following will help you get started in minutes:

#Getting started (from Docs)
Intuitive API. Most things will be self-explanatory. More in depth description will always be there.
Code samples in each section are self-contained, complete and interactive. So, jump to the relevant section, copy-paste a sample to your app and extend it as needed.
Intellisense by IDE. If your project is in Typescript, you will benefit a lot as type inference of the API functions supports any complexity of data structures of your states. Of course, you can also use it from plain javascript.
Complete demo application. There is a Todo-list-like complete demo application built with Hookstate. It uses and demonstrates most of the core features of Hookstate. It gives an example of how to organise your project. You may follow the example or use any other module-composition structure. Here it is running in an iframe:

I've implemented copy/paste and undo/redo, in my project, using the Zustand and Zundo libraries. It was very straightforward and intuitive. However, since that for each change, that I perform in the diagram, I'm storing the whole diagram information over and over again in an array. Thus, the browser's memory consumption skyrockets after a while, and the whole user experience suffers from this. For the copy/paste I would suggest that we only store the delta, i.e. the diff between one change and another. Since the library uses Redux, it should be feasible. As we can see, the redux-devtools already has this behavior. Perhaps we can extrapolate some ideas from it? Would be glad to help.

@pf-costa It depends on how aggressively you use your global state. Zundo just sticks every change in there some things should be context sensitive. The undo stack should also have a practical limit. Because no one really "undoes" 2000 changes. It only becomes an issue if you store large things in your node state like audio or images but 50 undos is more than enough for most users, though that could be configurable just not unbounded by default.

valtio


Add NT-5890K profile. added features: paperPartCut and paperFullCut

This pull requests adds profile for NT-5890K
Specification
Also this pull request introduces two new capabilities:

paperFullCut
paperPartCut

The reason to introduce these capabilities, beacuse some printers, like mentioned one, have not automatic cutter, and not all printers that have automatic cutter, support partial cut.

Your new profile looks good, but I believe this printer may already be included under the name POS-5890 (It is sold by many companies under their own brand).
The POS-5890 profile is based on simple, because the printer doesn't support QR codes, or the newer graphics commands either. The only other difference i can see is Thai output at code page 70, which is not present on the model I use.
Would you consider updating this to either add the paperFullCut, paperPartCut entries, media and fonts to POS-5890, or do you think there are enough differences for two separate profiles?
--
Diff below for full context-
2,7c2,21
< POS-5890:
<   name: POS5890 Series
<   vendor: Zjiang
<   inherits: simple
<   notes: >
<       POS-5890 thermal printer series, also marketed under various other names.
---
> NT-5890K:
>   # Specification: http://www.gzxlscan.com/ru/product-detail/nt-5890k-58mm-thermal-receipt-printer/
>   name: NT-5890K
>   vendor: Netum
>   inherits: default
>   notes: ""
>   features:
>     paperFullCut: false
>     paperPartCut: false
>   fonts:
>     0:
>       name: Font A
>       columns: 32
>     1:
>       name: Font B
>       columns: 42
>   media:
>     width:
>       mm: 57.5
>       pixels: 384
10c24
<     1: CP932
---
>     1: Unknown  # Katakana
15c29
<     # West Europe
---
>     # Western Europe
21c35
<     # East Europe
---
>     # Eastern europe
31c45
<     # Latvian
---
>     # latvian
39c53,54
<     27: CP1258
---
>     # Vietnam
>     27: Unknown
43a59,60
>     # Thai
>     255: Unknown
61a79
>     70: CP874
85c103
<     # Thai 2
---
>     # Thai2
87,89d104
<     # Thai
<     255: Unknown
< ...

Encoding with code 70, is my mistake(
And You seems to be right. I will try to rebase this profile on POS-5890, and test it...

POS-5890 is based on profile simple, which have disabled image printing(bitImageColumn, graphics), but, my NT-5890K can print images (bitImageRaster, bitImageColumn)

Does POS-5890 supports barcodes, I've used python-escpos, trying to print barcodes, but it seems that it does not support them?
May be, in addition to barcodeB feature add barcodeA feature?

Good idea, raised a new ticket as #26. Thanks for your contribution katyukha!


[BUG]: Permission denied using migrate client

What version of drizzle-orm are you using?
0.30.6
What version of drizzle-kit are you using?
0.20.14
Describe the Bug
While using the migrate client I'm getting:
PostgresError: permission denied for database *****, code: "42501"
I'm able to connect to the database using the drizzle client just fine, can also connect to the database using DBeaver and run the my migration SQL file manually.
If it means anything it's a DigitalOcean database using ssl so the clients look like this:
import { drizzle } from 'drizzle-orm/postgres-js';
import postgres from 'postgres';
import * as schema from '@/db/schema';

const user = process.env.DB_USER;
const password = process.env.DB_PASSWORD;
const host = process.env.DB_HOST;
const port = process.env.DB_PORT;
const name = process.env.DB_NAME;

const url = `postgresql://${user}:${password}@${host}:${port}/${name}`;

// for migrations
export const migrationClient = postgres(url, {
  max: 1,
  ssl: 'require',
});
// migrate(drizzle(migrationClient), ...)

// for query purposes
const queryClient = postgres(url, { ssl: 'require' });
export const db = drizzle(queryClient, { schema });

my migrate.ts file
import { migrationClient } from '@/db/drizzle';
import { drizzle } from 'drizzle-orm/postgres-js';
import { migrate } from 'drizzle-orm/postgres-js/migrator';

console.log('Running migrations...');
try {
  await migrate(drizzle(migrationClient), {
    migrationsFolder: './src/db/migrations',
  });
} catch (error) {
  console.error('Error running migrations:', error);
  process.exit(1);
}

console.log('Migrations ran successfully!');
process.exit(0);

Expected behavior
No response
Environment & setup
I'm using:
{
  "drizzle-kit": "^0.20.14",
  "drizzle-orm": "^0.30.6",
  "pg": "^8.11.5",
}

With bun 1.1.3 on windows 10 if it matters

migrate uses the same queries as drizzle-orm query runner, so not sure if drizzle is the issue

I was having this issue as well on DigitalOcean. For me, the problem was occurring due to this query CREATE SCHEMA IF NOT EXISTS "drizzle"
I was not using the initially created doadmin user from digitalocean. I was able to resolve the issue by running the following on my database GRANT CREATE ON DATABASE "<db-name>" TO "<db-username>". This gave permission to the user to create schemas
Ideally I could have found a way tell drizzle-kit to not try to create a schema. I went ahead and manually created the drizzle schema but the error still occurred and blocked the rest of the migrations, so I could only run migrations with a user with the correct permissions, even though I didn't need to create a schema anymore

Trying out drizzle for the first time, running in to the same issue .  I'm able to take the generated migration and run it manually via any SQL client, and it works, but doesn't work via migrate()
I believe it's the same issue @Ukucanz brought up.  I only have permission to create tables on the "public" schema.
Is there a way to override the default "drizzle" schema name? @AndriiSherman

Is there a way to override the default "drizzle" schema name? @AndriiSherman
Or configure it to skip the schema creation step entirely
You can override it by adding

migrations: {
schema: “public”
}

to drizzle.config.ts
https://orm.drizzle.team/kit-docs/config-reference#migrations
But I believe it will still run CREATE IF NOT EXISTS and fail unless your user has create schema permissions

Thanks!

But I believe it will still run CREATE IF NOT EXISTS and fail unless your user has create schema permissions

Yep, you were right, still failing.

Seeing as this is something related to permissions, I've relabeled this as a documentation issue as I think the docs should make it clear what permissions are required to run these migrations

Seeing as this is something related to permissions, I've relabeled this as a documentation issue as I think the docs should make it clear what permissions are required to run these migrations

I think it would be helpful to be able to run the migrations without needing permission to be able to create a schema, when the schema already exists. Some users may have permission to add new database tables, but might not have permission to create the schema, and if the schema already exists, being able to skip over CREATE SCHEMA IF NOT EXISTS "drizzle" without being blocked would be helpful (or perhaps the documentation could just describe where to remove this from the migration file)

you can use custom schema name for migrations, and use public one(if you don't have a way to change permissions)
  await migrate(drizzle(migrationClient), {
    migrationsFolder: './src/db/migrations',
    migrationsSchema: 'public'
  });


[subscriber] log full of getsockopt: connection refused entries

InfluxDB starting, version 1.1.1, branch master, commit e47cf1f2e83a02443d7115c54f838be8ee959644
Ubuntu xenial
kapacitor not installed and not used
subscriber in false
journalctl -u influxdb.service full of entries getsockopt: connection refused
[subscriber] 2016/12/29 13:16:00 Post http://localhost:9092/write?consistency=&db=_internal&precision=ns&rp=monitor: dial tcp <IP_ADDRESS>:9092: getsockopt: connection refused

influxd config output:
reporting-disabled = true
bind-address = "<IP_ADDRESS>:8088"

[meta]
  dir = "/var/lib/influxdb/meta"
  retention-autocreate = true
  logging-enabled = true

[data]
  dir = "/var/lib/influxdb/data"
  wal-dir = "/var/lib/influxdb/wal"
  query-log-enabled = true
  cache-max-memory-size =<PHONE_NUMBER>
  cache-snapshot-memory-size = 26214400
  cache-snapshot-write-cold-duration = "10m0s"
  compact-full-write-cold-duration = "4h0m0s"
  max-series-per-database = 1000000
  max-values-per-tag = 100000
  trace-logging-enabled = false

[coordinator]
  write-timeout = "10s"
  max-concurrent-queries = 0
  query-timeout = "0s"
  log-queries-after = "0s"
  max-select-point = 0
  max-select-series = 0
  max-select-buckets = 0

[retention]
  enabled = true
  check-interval = "30m0s"

[shard-precreation]
  enabled = true
  check-interval = "10m0s"
  advance-period = "30m0s"

[admin]
  enabled = false
  bind-address = ":8083"
  https-enabled = false
  https-certificate = "/etc/ssl/influxdb.pem"

[monitor]
  store-enabled = true
  store-database = "_internal"
  store-interval = "10s"

[subscriber]
  enabled = false
  http-timeout = "30s"
  insecure-skip-verify = false
  ca-certs = ""
  write-concurrency = 40
  write-buffer-size = 1000

[http]
  enabled = true
  bind-address = "<IP_ADDRESS>:8086"
  auth-enabled = true
  log-enabled = true
  write-tracing = false
  pprof-enabled = true
  https-enabled = true
  https-certificate = "/etc/ssl/influxdb.pem"
  https-private-key = ""
  max-row-limit = 10000
  max-connection-limit = 0
  shared-secret = ""
  realm = "InfluxDB"
  unix-socket-enabled = false
  bind-socket = "/var/run/influxdb.sock"

[[graphite]]
  enabled = false
  bind-address = ":2003"
  database = "graphite"
  retention-policy = ""
  protocol = "tcp"
  batch-size = 5000
  batch-pending = 10
  batch-timeout = "1s"
  consistency-level = "one"
  separator = "."
  udp-read-buffer = 0

[[collectd]]
  enabled = false
  bind-address = ":25826"
  database = "collectd"
  retention-policy = ""
  batch-size = 5000
  batch-pending = 10
  batch-timeout = "10s"
  read-buffer = 0
  typesdb = "/usr/share/collectd/types.db"

[[opentsdb]]
  enabled = true
  bind-address = ":myport"
  database = "opentsdb"
  retention-policy = ""
  consistency-level = "one"
  tls-enabled = false
  certificate = "/etc/ssl/influxdb.pem"
  batch-size = 1000
  batch-pending = 5
  batch-timeout = "1s"
  log-point-errors = true

[[udp]]
  enabled = false
  bind-address = ":8089"
  database = "udp"
  retention-policy = ""
  batch-size = 5000
  batch-pending = 10
  read-buffer = 0
  batch-timeout = "1s"
  precision = ""

[continuous_queries]
  log-enabled = true
  enabled = true
  run-interval = "1s"

Whats the output of show subscriptions?

Weird. I wonder how it got there. You can drop the subscription by running
drop subscription "kapacitor-id" on "_internal"."monitor"


Offset and scale settings for portraits should be per-picture.

The problem
From a character description file:
	[...]
	"offset_x":0,
	"offset_y":-200,
	"portraits":[
		{"name":"Default", "path":"res://Assets/Graphics/1262274531.thesheatechnique_sslaxxheadcomm500.png"}
	],
	"scale":85
}

This means that portrait files must all be the same resolution in order for offset and scale settings to work. And true, all portrait files should be the same resolution. But sometimes they may not be, and if so then there's no way in editor to set an individual portrait's scale and/or offset.
To Reproduce
Just add more than one portrait to a character.
Expected behavior
Being able to set scale and/or offset settings for individual portraits.
Solutions
Workaround
Editing the portraits in software like GIMP, Krita etc.
Possible fixes
Editing the portraits in software like GIMP, Krita etc.

An improvement to portraits would be nice. This could be one of the options for each portrait for sure :)

Related to https://github.com/coppolaemilio/dialogic/issues/820

In 2.0 offset, scale and mirror are per-portrait.
Ther is also a global scale setting. I think a global offset and mirror would be good as well.


[stable/minio] Allow to add custom labels on Ingress

Is this a new chart
NO
What this PR does / why we need it:
Allow to add custom labels on Ingress
Which issue this PR fixes
None
Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/chart])

/assign @nitisht

/approve

/lgtm

/ok-to-test


Would it be possible to transfer .NES game environment to gym soon?

This is really an exciting project. I just wonder whether it would be get Nintendo game as next  to train with OpenAi Gym.

This is available on the https://github.com/openai/retro/tree/develop branch,


Add new team member to team page

There's no portrait here, so you'll have to ask for a picture and whether she has her own website or so.

The offending build instruction is in the netlify.toml file, so it is this that needs to be updated.


Design - Gov. of Canada signature Component

Summary: Design of the Gov. of Canada Signature component.
Design on component branch and push to main Figma file when approved.
Acceptance Criteria:

[x] Component Kickoff
[x] Sync with Dev and Design
[x] Research and consulting other design libraries
[x] WCAG Goal can be completed using a screen reader.
[x] WCAG Visual elements observe color contrast requirements.
[x] WCAG Manual accessibility testing meets WCAG 2.1 AA requirements.
[x] Provides equal service in French and English.
[x] Sync with Dev and Design
[x] Comparison with official policy, documented reasons for deviation if any
[x] Design review
[x] Policy review
[x] Design - Different screen sizes
[x] Design - Short content / long content (text overflow etc.)
[x] Design - Error state (if applicable)
[x] Design - Empty state (if applicable)
[x] Component anatomy
[ ] Write draft of design guidance
[ ] Handoff from draft dev guidance to documentation author/lead
[ ] Update Figma version

component anatomy
https://www.figma.com/file/mh2maMG2NBtk41k1O1UGHV/Canadian-Digital-Service
---GC-Design-System?type=design&node-id=1862-5581&mode=design&t=RuxakLTwSZ41AqZJ-0

Content
https://docs.google.com/document/d/1M_wtvVaaYjE175OY18hi0hVRriHynm9p-gR5wrBY8sg/edit


Enable declarative validation for core group (1/3)

enable declarative validation is strategies
enable  ~50/150 of multi-version testing in validation_test.go (this requires converting test to validate from root, which is tedious)
turn off enum generation for the core API group since it breaks the tests (this is a good demo of migration capabilities working)
turn off generation of apps API group because there is a bug where it triggers enum generation for core (tracked in TODO)

@thockin I can break this into smaller groups if that would help.  For example, I could split this into PRs that are per-root-Kind.

I'm going to merge this, but I wonder if, before we show this to others, we might break it down so there's a small set of commits which shows one or two types and tests, and then "everything else".
LGTM


Continued Maintenance

Q: For how long are you going to maintain the script?
A: As long as I use Windows 10.

Thank you for making this and maintaining. It's made my switch to Win 10 bearable. I've tried holding out switching from Win 7 for as long as I could and I've used your script on about 5 machines.
I run Windows update manually and have it disabled otherwise. I also use your script with https://github.com/crazy-max/WindowsSpyBlocker and block all MS IP's, domains on every level and stack.
Would be nice to see a donate method to show extended appreciation. Thanks.

Glad you like the script. The best kind of donation would be to help me develop the script even further as there are still few things worth automation. But I guess you're talking about different kind of donation :) In such case, feel free to use this PayPal link. I'll add it also to the FAQ. Thanks for suggestion.

Yes. I can contribute to this project, I work with PS a fair amount. If I see anything I can add I'll contribute. Thank you.


Autos should have application delays

Autos may be like "instant" casts, but they have application delays. Put in the application delays.

All "attack" autos, regardless of class, seem to have an application delay around 0.532s. All "shot" autos, regardless of class, seem to have ~0.758s application delay. Updated.


[Bug]: wandb yolov8 integration showing unused COCO class labels

Describe the bug
Bug
I am doing a transfer-learning training using the pre-trained COCO YOLOv8 checkpoint. I create a custom data.yaml which passes 7 labels to predict. A print(model.names) also shows the expected (not COCO) classes.
The logs correctly show:
4 Overriding model.yaml nc=80 with nc=7
However, when I check the produced Validation-Table in the WandB web app, I see that the Validation-Table table images are showing other COCO class labels that were excluded during training, with their original COCO names.
My 7 classes are named and labeled with bounding-boxes accurately in the Validation-Table but there are also bounding-boxes with unused labels. See screenshot below. I don't want labels like car and bus showing up in the bounding boxes, but they still do even though the COCO labels are not shown on the right.
This is a known issue over in the ultralytics Github issues page (see here and here).
Not sure if it's an issue in the add_wandb_callback() function or in the web app?
Code
wandb.init(project=config["project"], entity=config["entity"])

# Load a model
model = YOLO(config["model"])

# Set up callbacks
add_wandb_callback(model, enable_model_checkpointing=True)

# Train the model
model.train(
        data=config["data"],
        epochs=config["epochs"],
        imgsz=config["imgsz"],
        device=config["device"],
        project=config["model_save_dir"],
        # callbacks=[custom_callback],
    )

model.val()

model(image_file_paths)

Environment
WandB version:
0.16.6
OS:
Apple M1
Python version:
3.10.14
Versions of relevant libraries:
ultralytics 8.3.9
YOLO v8

hi! following up on this issue. Has anyone on the wandb side been able to reproduce? Thanks!

Hi Jason,
Thanks for checking in. We did try the code using the following library versions but the problem still persists. Thanks!
ultralytics==8.0.238 and wandb==0.18.3


Fix zap logger with field & caller

I have not test my code, my fault 😢. Now it fixed!

merged


v4.0.0 Incompatible with Xamarin.Forms v2.3.4 & v2.3.5: java.lang.IllegalArgumentException

Microsoft.Azure.Mobile.Client v4.0.0 is incompatible for Android builds with the current version of Xamarin.Forms, v<IP_ADDRESS>. It is also incompatible with the next version of Xamarin.Forms, v<IP_ADDRESS>-pre3.
Microsoft.Azure.Mobile.Client v4.0.0 is dependent on Xamarin.Android.Support.CustomTabs v25.3.1, but the current version of Xamarin.Forms, v<IP_ADDRESS>, requires v23.3.0 of the Xamarin.Android Support Libraries.
Reproduction

Download the reproduction sample
Open FormsIllegalArgument.sln in Visual Studio of Visual Studio for Mac
Build FormsIllegalArgument.Droid

Build Error

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(3,3): Error: java.lang.IllegalArgumentException: already added :  Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat; (dihei_empty_node.Droid)

Work-Around
Update the Xamarin.Android.Support.v4 NuGet Package to v25.3.1.
Note: This will eliminate the java.lang.IllegalArgumentException error, but it may cause run-time crashes in your Xamarin.Forms Android App, because Xamarin.Forms does not yet support any Xamarin.Android.Support library above v23.3.0

MonoAndroid 7.0 support >=23.3.0 I'm running 4.0.0 client since from preview and no issue with 25.*
I think for this issue a better title could be 4.0.0 client incompatible with Xamarin.Android.* 23.3.0

Hi @brminnick!
Why do you think that Xamarin.Forms does not support Xamarin.Android.Support.* library above v23.3.0?
From your link https://www.nuget.org/packages/Xamarin.Forms/<IP_ADDRESS> :

MonoAndroid 7.0
Xamarin.Android.Support.v4 (>= 23.3.0)

25.3.1 >= 23.3.0

Hi @brminnick, I agree with what @MatkovIvan has said. Microsoft.Azure.Mobile.Client v4.0.0 depends onXamarin.Android.Support.* v25.3.1. If you upgrade Xamarin.Android.Support.v4 to 25.3.1 in your FormsIllegalArgument.Droid project, the build error should disappear.

@dhei @MatkovIvan
Will Microsoft.Azure.Mobile.Client work with Xamarin.Android.Support.CustomTabs v23.3.0? If it does, we should lower the NuGet Dependancy to "Xamarin.Android.Support.CustomTabs (>= 23.3.0)".
It is a poor user experience to create a File -> New Xamarin.Forms app, add the Microsoft.Azure.Mobile.Client NuGet package, compile, then get a compilation error.
We have many customers who are still using older versions of Xamarin.Forms who cannot now update their Microsoft.Azure.Mobile.Client to v4.0.0. Xamarin.Forms only recently introduced support for the Xamarin.Android.Support Libraries above 23.3.0 in Xamarin.Forms v2.3.4 on March 29th 2017.

@brminnick A little earlier (February 1, 2017) ;)
But this doesn't change the meaning of your words

Haha - whoops! Good catch!

Just noticed this issue. The downgrade breaks LoginAsync.

I ran into the same issue on a different third party library, but it was a matter of configuration to get it working. Hopefully it works for this as well.
First, you must have Android SDK for API 25 installed. Next, you need to go into your Android project settings and under General/Build make sure you select Android 7.0 or newer and then go into your Manifest and set the Target to 25, as well.
As long as you Target API 25 and build against Android 7.0 or newer, you can update the support libraries to 25.3.1 with Xamarin Forms v<IP_ADDRESS>.
If you don’t do this you will see an error when trying to install the Android NuGet that you aren’t targeting the correct version of Android. After doing this, you should no longer get this error.

Closing this issue as its fixed in v4.0.1.

a

I am trying to install geolocator plugin in xamarin form nuget package. bt i getting the error like
Error: java.lang.IllegalArgumentException: already added :  Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat
pls someone hlp me


Torrent completed event before torrent completed

First some context on my setup:
I use OpenTracker (tracker) and Transmission(seeder) as docker containers on an cloud.  I upload video files to that cloud and add them as torrents to Transmission which will start seeding. I get a magnet url of that torrent and sent it to my android app that uses this project.
I am using a singleton instance of this torrent module for a React Native bridge(less important)
I implemented the events interface
init {
        // Init using context argument
        this.reactContext = reactContext
        this.torrentSession = TorrentSession(torrentSessionOptions)

        this.torrentSession.listener = object : TorrentSessionListener {
            override fun onAddTorrent(torrentHandle: TorrentHandle, torrentSessionStatus: TorrentSessionStatus) {
                Log.i(thorLoggerName, "started a torrent ${torrentHandle.name()}")
            }

            override fun onTorrentFinished(torrentHandle: TorrentHandle, torrentSessionStatus: TorrentSessionStatus) {
                Log.i(thorLoggerName, "torrent completed ${torrentHandle.name()}")
            }

            override fun onPieceFinished(torrentHandle: TorrentHandle, torrentSessionStatus: TorrentSessionStatus) {
                Log.i(thorLoggerName, "down: ${torrentSessionStatus.bytesDownloaded} of ${torrentSessionStatus.bytesWanted}")
                Log.i(thorLoggerName, "progress ${torrentSessionStatus.progress}")
            }
        }
    }

When I add a new torrent to download the onAddTorrent fires.
After that I will expect to see some logging from the onPieceFinished event then eventually a onTorrentFinished.
What happens is that:

onAddTorrent fires after torrent is started;
onTorrentFinished fires as soon as Transmissions sees the peer (soon after onAddTorrent);
some time passes;
torrent starts downloading and multiple onPieceFinished fire;
eventually download completes with another onTorrentFinished;

On first onTorrentFinished file has 0mb. On second onTorrentFinished file was properly downloaded and can be played back.
To overcome this I had to do a double check in the onTorrentFinished event
            override fun onTorrentFinished(torrentHandle: TorrentHandle, torrentSessionStatus: TorrentSessionStatus) {
                Log.i(thorLoggerName, "torrent completed ${torrentHandle.name()}")

                if(torrentSessionStatus.bytesDownloaded == torrentSessionStatus.bytesWanted){
                    // know for sure that torrent downloaded
                    emit("fileName", torrentHandle.name(), "thor_completed")
                }
            }

Is this expected? Note that I am using magnet torrents.

Hi @mirceaciu,
Thanks for reporting this. I don't think this behavior should be expected. According to the documentation, https://libtorrent.org/manual.html the torrent_finished_alert should only be emitted once, on download completion:

torrent_finished_alert
This alert is generated when a torrent switches from being a downloader to a seed. It will only be generated once per torrent. It contains a torrent_handle to the torrent in question.

I suspect the problem is occurring, here. I vaguely recall adding the call to resume in relation to downloads started using magnet links (it's been awhile since I've worked on this library). This might be triggering the finished alert when the torrent is added.
I'm glad you were able to find a low cost work-around. I will try to find time to do some research and figure out what's going on sometime over the weekend. If you figure out what's causing it sooner than that, pull requests are always welcome.
Are you able to reproduce the issue when using a torrent file?

Unfortunately my Java/Kotlin skills are limited to basics as I just started using this language so it's unlikely that I will be able to do PR.
I will test using torrent files and maybe some other torrent providers (other trackers and stuff). Maybe that will help.

It seems that this issue occurs for downloads started with both a torrent and a magnet.
Without the call call to the resume method both fail to start. I feel like this call to resume on torrent added shouldn't be required and that I'm doing something wrong.
I've opened a ticket, here to try to get some insight as to what might be causing this and why downloads aren't starting as expected.

Hi, i am facing similar issue and when i try to resume a torrent which was partially downloaded earlier, instead of resuming or restarting it just don't do anything however i see method onTorrentResumed method is getting called. Is this happening because of this issue or i am doing something wrong.
I just start torrent normally but it won't work.
  torrentSession
                    .get()
                    ?.start(ExoApplication.getContext(), magnetUri)

Please help if there is any workaround for this.

@sidsaxena0 What you're seeing doesn't seem related to this issue. Are you using a magnet or torrent file to start and resume the download? Do you have your torrent session in a foreground service? Does the demo application included in this repository successfully resume for you?

@masterwok I am using magnet link for start and resume download and yes demo application of the project is working fine. Even if i kill the app it starts again from the point where it left but not in case of my code. Can you please help?

@sidsaxena0 onTorrentResume() is called once when a torrent is added to a session or when you resume downloading a torrent after you have paused it. This can help you better: https://libtorrent.org/reference-Core.html#save_resume_data()


Bug: Refreshing stats page throws error

What happened?
When I refresh the stats page this happens:
https://user-images.githubusercontent.com/72705182/227186515-3b2c40a7-3134-4b21-a016-7994ac487038.mp4
Just navigating to the page works.
Version
upstream (ghcr.io/diced/zipline:trunk)
What browser(s) are you seeing the problem on?
Chromium-based (Chrome, Edge, Brave, Opera, mobile chrome/chromium based, etc)
Zipline Logs
No response
Browser Logs
No response
Additional Info
No response

Seems like the error may have something to with hooks being rendered incorrectly. Unfortunately I can't reproduce it while in development mode so any fix may not work.

Ah, nevermind. This issue persists within versions before 3.7.0's RCs (it was fixed in one of the 3.7.0 RC's). Please make sure when making an issue you select the correct version, as you have selected "upstream" instead of stable.


slight correction to Oberon

Rochus Keller's dialect of Oberon is called Oberon+ and has some non-standard language extensions.

👍


Is it possible to retrieve totalCount asynchronously?

Is your feature request related to a problem?
During app debugging, I noticed that totalCount retrieval as part of offest paging is synchronous.
https://github.com/ChilliCream/hotchocolate/blob/4f49949fcc4532c87c2a5603696f9d55f54aca21/src/HotChocolate/Core/src/Types.OffsetPagination/QueryableOffsetPagingHandler.cs#L62
        if (IncludeTotalCount &&
            context.Selection.Type is ObjectType objectType &&
            context.Selection.SyntaxNode.SelectionSet is not null)
        {
            var selections = context.GetSelections(objectType, null, true);

            for (var i = 0; i < selections.Count; i++)
            {
                if (selections[i].Field.Name is "totalCount")
                {
                    totalCount = source.Count(); // <----- here
                }
            }
        }

The same is applicable to cursor pagination handler.
The solution you'd like
Could you please make totalCount retrieval async if possible?
Suggestion:
totalCount = await Task.Run(query.Count, cancellationToken).ConfigureAwait(false);
P.S. I think it is also possible to apply one small optimization here: if totalCount is retrieved, there is no need to iterate through all the remaining selections.
Suggestion:
                if (selections[i].Field.Name is "totalCount")
                {
                    totalCount = source.Count();
                    break;
                }

Product
Hot Chocolate

Do you want to do a PR?


Background always dark after upgrading to OSX Big Sur

VSCode Version: 1.51.1
OS Version: Big Sur (11.0.1 (20B50))

Steps to Reproduce:

Upgrade to Big Sur (11.0.1)
Wait some time (or maybe just until your first post-install system restart)
Open vscode and try to use a light theme

Basically, the background colors remain dark* no matter what theme is chosen, while the text and highlight colors correctly update. As a result, light themes are unusable (since they typically feature dark text, expecting a light background). My system is set globally to light mode, and this problem did NOT start happening immediately after my Big Sur upgrade, it took a day or two.
*Aside from being dark, the backgrounds are semi-transparent (only when not in a full screen window, and when focused)
I've seen the recent dark font issue, and this almost seems to be an inverse of that.

Does this issue occur when all extensions are disabled?: Yes

Update: Upon opening a new project, my background colors have now become grey, except my current line, which is rendered white...

Does stating code with --disable-gpu help ?

It does not :(

Can you try forcing a color profile following https://github.com/microsoft/vscode/issues/106756#issuecomment-722494532

Just tried, none of those worked

Just tried, none of those worked

There's a chance that --force-color-profile <value> is somewhat be broken. For me it seems to always produce the same result as putting "force-color-profile": "srgb" into argv.json.
See: https://github.com/microsoft/vscode/issues/106756#issuecomment-724720529


Feature windows mutable

Suggested new feature or improvement
Basically all feature windows in the app don't allow user to interact by moving. Honestly it's terrible when I resizable the main window and the feature window like "Report a bug" or "Widgets window" are moved to the right-top or right-bottom and I can't move from there.
Scenario
When the main window is resized the "Report a bug" or whatever window is opened it's gone to the right or bottom. The user is not allowed to move the window, but with this feature the user should move the window.
Additional details
No response

I'm still hitting this in 0.17, can't drag from the title bar after snapping with the "report a bug" dialog open


Unpacked rgba format

Cheers for a great lib weblas is. Very good stuff, learned quite a lot wrt webgl thanks to it.
I introduced some modifications to better suit my needs. But before begining PRs I wanted to let you know about the direction I am giving them: give a look at the initial weblas fork and the latter weblas-unpacked which evolved into a plugin depending on weblas.
The main modification is in respect to the texture format. Weblas-unpacked opts for a single value per texel format. This prevents packing and unpacking, both transfering to and from GPU at the cost of increased memory (which can be recovered to an extent). The aim being to simplify shader logic and packing/unpacking operations when algorithms encourage multiple stages within the GPU. It also provides direct float values reading, preventing encoding. This does imply that shaders cannot be shared between both formats (facilities to convert between them are provided though). Check the project for more details.
Currently integration of both is a bit hacky (overwriting some class methods, bad I know), I might focus a bit in easing this and suggest some PRs towards that. Hopefully I am not deviating too much from your aims, and my very lean coding experience won't boil your head (really, don't look at my gl-compute at all, this is mainly a hobby for me).
Thanks again for this great library.

Looking forward to checking this out!


Cleanup

Add any context about the cleanup here.

This seems like a test or a mistake. Closing.  Please reopen with any details if needed.


Kmom04

Assignment for kmom04, Databasdrivna modeller.

Wrong intention. Should make pull request to own fork, not to mosbth.


[DOC]:  How to directly use fork and join

What are you missing in the docs
I see in docs lots of them describe to use fork_join with decision or switch.
Is there anyway I can use directly use fork_join task and join to make my tasks run parallel.
what I want to accomplish is:
I have a - (b, c, d)
workflow starts with task a then b, c,d runs in parallel. There's no decision-making or switch scenario, so I avoid using switch and decision.
I tried use fork_join task and join task alone. Conductor complaint with validation error.
Can anyone help me with this workflow  definition example. Thanks
Proposed text

Hi @ishallbethat take a look at this:
https://play.orkes.io/workflowDef/fork_join_example


Use meaningful error messages instead of error code in the script

Using more meaningful error messages increases script sizes, but trace should be disabled on mainnet anyway (especially with https://input-output.atlassian.net/browse/PLT-859 which makes it easier to debug the script locally), so it doesn’t really matter.

@zliu41 do you happen to know what the status of this issue is?

This should be done after PLT-859 but the latter hasn't been done yet, so it is on hold.


Update fixes for command injections at bulletin_generator

🗣 Description
Sanitize input from input variables.
💭 Motivation and context
Based on the input that is possible it is a best practice to remove the chance of command execution.
✅ Pre-approval checklist

[x] This PR has an informative and human-readable title.
[x] Changes are limited to a single goal - eschew scope creep!
[x] All future TODOs are captured in issues, which are referenced
in code comments.
[x] All relevant type-of-change labels have been added.
[x] I have read the CONTRIBUTING document.
[x] These code changes follow cisagov code standards.
[x] All relevant repo and/or project documentation has been updated
to reflect the changes in this PR.
[x] Tests have been added and/or modified to cover the changes in this PR.
[x] All new and existing tests pass.

✅ Pre-merge checklist

[x] Revert dependencies to default branches.
[x] Finalize version.

✅ Post-merge checklist

[x] Create a release.

coverage: 26.269% (-0.02%) from 26.288% when pulling 7ada3b05fd511bf5c834370c9bb1baa8d221133e on CD-command-injection-fixes into 14755187fbf5fb4af7c447c5cdd8b6cfdd4de576 on develop.

@dav3r ,
The other changes are third part libs, so we just removed them to pass the checks. Its not our evaluation, that is all of the information that I have at this point.

@dav3r ,
The other changes are third part libs, so we just removed them to pass the checks. Its not our evaluation, that is all of the information that I have at this point.

Which third party libraries are you removing?  I was referring to the HTML changes here, here, and here.  Regardless, you should update the content in the PR's description to document why these changes are included.

@dav3r ,
I have updated the PR description. The third-party js lib is HTMX js.

I have updated the PR description. The third-party js lib is HTMX js.

@cduhn17 I don't see any updates to this PR's description - it looks like there haven't been any edits in 2 days.

@dav3r ,
Should be updated now.


Validation issue with +966563531111

Please read the "guidelines for contributing" (linked above) and fill in the template below.
Country/region affected (e.g., "US"):
Example number(s) affected ("+1<PHONE_NUMBER>"): +966563531111
The phone number range(s) to which the issue applies ("+1 555 555-XXXX"):
The type of the number(s) ("fixed-line", "mobile", "short code", etc.):
The cost, if applicable ("toll-free", "premium rate", "shared cost"):
Supporting evidence (for example, national numbering plan, announcement from mobile carrier, news article): IMPORTANT - anything posted here is made public. Read the guidelines first!
link to demo

Can you provide more information.
What is it that's "wrong" with this number?
What do you think should be changed?

sorry I posted the issue by mistake there is nothing wrong with it .. I'm so sorry

@MuhammadAdelA ,
Thanks for the confirmation. Closing this issue as working as intended.
For your next metadata issue, we invite you to file issues in Google's new
Issue Tracker, which we're currently testing.


Fixed to be able to get xx_wait_time from environment variable

Description
The following constants can now be set as environment variables

maxJobCreationWaitTimeInSeconds
maxJobRunWaitTimeInSeconds

Checklist
Please check if applicable

[x] Tests have been added (if applicable, ie. when operator codes are added or modified)
[ ] Relevant docs have been added or modified (if applicable, ie. when new features are added or current features are modified)

Relevant issue #
https://github.com/st-tech/gatling-operator/issues/76

@ksudate @banatt
Thanks for the review.


The current SDK bundles target framework '7.0' which is not supported by MSBuild.Sdk.SqlProj. Either install a .NET Core SDK that supports 3.1, 5.0 or 6.0

Hello,
I couldn't build the project due to below error
Build Error
Severity	Code	Description	Project	File	Line	Suppression State
Error		The current SDK bundles target framework '7.0' which is not supported by MSBuild.Sdk.SqlProj. Either install a .NET Core SDK that supports 3.1, 5.0 or 6.0, or file an issue at https://github.com/rr-wfm/MSBuild.Sdk.SqlProj/ to add support. If you have preview SDKs installed, you may have to use a global.json file: https://docs.microsoft.com/dotnet/core/tools/global-json	LLamasoft.Tableau.Integration.Tests.Database	C:\Users\Krishnan Thirumalai.nuget\packages\msbuild.sdk.sqlproj\2.0.0\Sdk\Sdk.targets
My Project file
<Project Sdk="MsBuild.Sdk.SqlProj/2.0.0">

    <PropertyGroup>
        <TargetFramework>netstandard2.1</TargetFramework>
        <SqlServerVersion>Sql140</SqlServerVersion>
        <!-- For additional properties that can be set here, please refer to https://github.com/rr-wfm/MSBuild.Sdk.SqlProj#model-properties -->
    </PropertyGroup>

    <PropertyGroup>
        <!-- Refer to https://github.com/rr-wfm/MSBuild.Sdk.SqlProj#publishing-support for supported publishing options -->
    </PropertyGroup>

    <PropertyGroup>
        <IsPackable>false</IsPackable>
        <GeneratePackageOnBuild>false</GeneratePackageOnBuild>
    </PropertyGroup>

    <ItemGroup>
        <Content Include="..\sourece\test1.sql" Link="test1.sql" />
        <Content Include="..\sourece\test2.sql" Link="test2.sql" />
        <Content Include="..\sourece\test3.sql" Link="test3.sql"" />
    </ItemGroup>
</Project>

Error Source
<!--     Validates that the environment is setup correctly for the DacpacTool to run. Currently we target .NET Core 3.1, 5.0 or 6.0 and we pick the version based on     the BundledNETCoreAppTargetFrameworkVersion property. This property is set by the SDK, so we'll need to ensure that the SDK that is being used is compatible with one     of the supported target frameworks.   -->   <Target Name="ValidateEnvironment">     <PropertyGroup>       <DacpacToolTfm Condition="'$(BundledNETCoreAppTargetFrameworkVersion)' == '3.1'">netcoreapp$(BundledNETCoreAppTargetFrameworkVersion)</DacpacToolTfm>       <DacpacToolTfm Condition="'$(BundledNETCoreAppTargetFrameworkVersion)' != '3.1'">net$(BundledNETCoreAppTargetFrameworkVersion)</DacpacToolTfm>       <DacpacToolExe>$(MSBuildThisFileDirectory)../tools/$(DacpacToolTfm)/DacpacTool.dll</DacpacToolExe>     </PropertyGroup>     <Error Condition="!Exists($(DacpacToolExe))"            Text="The current SDK bundles target framework '$(BundledNETCoreAppTargetFrameworkVersion)' which is not supported by MSBuild.Sdk.SqlProj. Either install a .NET Core SDK that supports 3.1, 5.0 or 6.0, or file an issue at https://github.com/rr-wfm/MSBuild.Sdk.SqlProj/ to add support. If you have preview SDKs installed, you may have to use a global.json file: https://docs.microsoft.com/dotnet/core/tools/global-json" />     <Message Importance="High" Text="Using target framework $(DacpacToolTfm) to run DacpacTool" />   </Target>
Other Information
installed sdks

installed runtime

IDE : Visual Studio 2022.

We just released a new version that resolves this, please make sure you're using our latest and that should fix the issue!

Update your SDK:
<Project Sdk="MsBuild.Sdk.SqlProj/2.3.0">

Thank you sorted now

Looks like this has been resolved. Closing.


New Project Structure Proposal

The problem
We generate a lot of boilerplate code (the ios/ and android/ folders containing the native app code) into people's projects / repositories. This is not uncommon, a lot of frameworks do this, but they generally do it for other reasons. They do it to impose a certain structure that they then expect when running the app. We only expect an index.js file, the rest of the stuff that we generate is just boilerplate that most people never change and/or have a hard time maintaining.
The solution
Generate the Android / iOS apps in a hidden, vcs-ignored folder (e.g. .reactnative/). This will remove the boilerplate from people's projects and give us greater control over the app templates. It also gives us the freedom to re-generate the templates whenever we please (e.g. when you switch to a newer version of React Native), since they will never be touched by developers. This also means no more upgrade command, making switching to a new React Native version much easier.
Essentially, the new structure would look something like this:
.
├── .node_modules
│   └── react-native
│       └── ...
├── .react-native
│   ├── android
│   │   └── [generated]
│   └── ios
│       └── [generated]
├── index.js
└── package.json

Challenges

Project meta-data (e.g. name/label, package name etc.): we would need to store these in package.json (can we, or do we have to invent another file?) and read them at generation time.
Managing dependencies: this actually makes it easier. We can scan for rnpm dependencies and add them at generation time. This means we would regenerate every time you add a dependency or even when you execute e.g. run-android.
Allowing people to write native code: since the developer doesn't have access to the native projects anymore, this is significantly harder. We can let people supply a “main” rnpm module that lives in the same project and is simply linked at generation time. However, this limits developers to writing native modules and view managers (on Android it would be possible to write secondary Activities and other components like Services, too; not sure about iOS). If they need to change the main entry point (MainActivity / AppDelegate (?)) it would be kinda impossible. However, if you need to do that, your project starts to fall into the “embedding React Native into existing apps” category.
Embedding React Native into existing apps: we have to continue supporting this. It shouldn't be hard: simply don't use any of the generation stuff and link to the libraries bundled in the node module, write your own MainActivity / AppDelegate using the samples provided.
We'd have to solve all of these problems on both platforms and in one go, and provide a clear migration path come release time.

Going forward
First, I'm curious what people's thoughts are. Would this be valuable? Are there any huge blockers that I'm not seeing? For example, I'm worried about all rnpm modules having to match a project's react-native dependency version making upgrading hard. But I'm guessing this is already an issue.
Second, I will not have time to work on this anytime soon. I might in the future, but no guarantees. I'd be thrilled to have someone in the community own this though and more than happy to review PRs.

Honestly, to me, the only real issue was these two extra folders living at the root. As projects get bigger and new tools are added, I like to keep the structure sleek w/o two extra folders on top of that. In all my projects I've been successfully changing the structure and moving them to native folder, so it looks just like in the snippet above. Having said so, that would've been my main motivation. From rnpm side (since I see it mentioned), it does not matter what's the structure since we infer folders during runtime (in fact, lots of native android module authors come up with different structures, not always mirroring the preferred one).
I am mainly concerned about limitations this means for native code there's usually laying in the app. Sometimes you have to perform extra actions in AppDelegate (well, we could wrap that in a yet another package, called Main), but having entire .xcodeproj being automatically generated sounds a little hard to get into production stage. Most importantly, stuff like Cocoapods or even changing the application splash xib with your custom (not always an image) view is going to be definitely harder.
On the other hand, the current state of things is far from perfect, mainly when it comes down to running upgrade command. This is by the way an issue I was going to work on next week - e.g. when you have different linker_flags than the default specified, upgrade command will completely overwrite them. In practice, that means if you are using Cocoapods - you get lots of build errors because we should not strip $(inherited) flag.
Regarding point 5, I think it could be just a matter of a flag in rn-cli.config.js, e.g. autoGenerated: false to turn this off (which means you can safely operate on initial content of react-native folder that's been generated with react-native init). That also means we can at least bring this partially to production and add auto_generation later on (or even in smaller chunks)

@grabbou thanks for your comments. I don't have much context on iOS (I mostly work on Android) -- it sounds like we've got some unique challenges there but it also sounds like they could be solved by adding more configuration to the generation process?

Regarding point 5, I think it could be just a matter of a flag in rn-cli.config.js, e.g. autoGenerated: false to turn this off

That's pretty smart, I like it.

I'm writing a React Native project focusing on iOS to start. I consider this a "pure" RN project as opposed to just "RN embedded" because the vast majority of it has been implemented in React Native, but even so I've had to make changes to my AppDelegate.m to support the following behaviors:

Add exception monitoring/logging with Sentry.
Customized the location of the JS bundle in development for debugging on-device.
Add CodePush support for upgrading the bundle in production.
Add code to initialize the RN-controlled RootView with my LaunchScreen to avoid a white flash at startup (detailed in https://github.com/facebook/react-native/issues/1402).
Implement handleEventsForBackgroundURLSession to perform actions when an upload I've started in the background finishes.

I've also made some minor customization to my build process, specifically allowing for local/staging/prod builds with different endpoints, that I wouldn't want to be overwritten.
All of these (maybe with the exception of 5) are pretty common needs even in "pure RN" apps, and I think it would be good for a solution to keep those things easy to do.
Anecdotally, I haven't had too much trouble with the current react-native upgrade process, I just manually review the diff for every conflicting file and figure out whether I should accept the change or not. Of course it would be nice not to have to do that if we can figure out a clean way to make that happen.

Not entirely sure what's the best approach. But I'll share my thoughts.
I think changing the Native files is very common for lots of people. For example, on Android, say you want to add push notifications, analytics etc. you cannot do that without touching native files. Often third party plugins require changes to native files to work. And many other cases @corbt and @grabbou mentioned. So people often actually need to change certain files.
Another use case is to change package name of the project. Currently we generate the package name from the package.json's name field, which may or may not be appropriate. And I think that's one thing which causes problem while react-native upgrade, at least for me. (Related #6238).
If we solve the package name problem, now comes the auto-generated bolierplate issue. I think the first thing we should do is try to move as many files into the library itself, for example, what we did with the ReactActivity. Another such file is the react.gradle. Can it be inside node_modules/react-native instead of the project? (I dunno the answer)
Once we do that, it should be pretty trivial to upgrade I think. We could still move the android and ios folders into a react-native folder though.

It would be great to have an easier upgrade process. Writing custom stuff is my main concern in this. Using rnpm to do this seems fine. Regarding the app delegate and root view controller, perhaps there can be a programmatic way to hook into it from a custom rnpm module middleware style to help attach launch screens, change the dev server ip, etc?

custom rnpm module middleware style to help attach launch screens, change the dev server ip, etc?

Yeah, we can actually write everything, just needs thinking what, how long and whether it's a good move. I'd like to get an update on Nuclide progress and how's FB doing in open sourcing the rest of announced at F8 things as we might need a decent IDE at some point as well.

Echoing the comments above, it's very common to change your AppDelegate/Info.plist and MainActivity/AndroidManifest.xml. I'm afraid that if we try to hide these through a leaky abstraction we will add more complexity than we are shaving off by simplifying the upgrade process.

@brentvatne +1 that, for instance - we add custom fonts with rnpm to Info.plist since that's easy, but there might be some other cases we simply don't think about at the moment which will lead users to fill in an issue/feature request later.

Hiding core react-native project stuff in .react-native will make it harder for folks to edit code in that space, some of which is required.
I like the idea, but maybe just rename it to native or react-native.

@facebook-github-bot label For Discussion

Currently it's extremely easy to add native code to a react app. Anything that makes this more difficult will be a step backwards in my opinion.

For AndroidManifest.xml / Info.plist we could add a system where rnpm modules can provide custom data to write into those files. They have a pretty standard format so it shouldn't be super hard. We can also let people configure these files via package.json (e.g. adding <meta-data> to AndroidManifest.xml for Google Maps API keys).
MainActivity / AppDelegate - we should just make these super easy to hook into. E.g. we can have MainActivity look for extra ReactPackages on the classpath and automatically register them with the react instance (using reflection or annotation processing at build time, or just having rnpm modules specify the FQNs of their package classes in their package.json and using that at generation time). I figure iOS should have something similar.

For AndroidManifest.xml / Info.plist we could add a system where rnpm modules can provide custom data to write into those files. They have a pretty standard format so it shouldn't be super hard. We can also let people configure these files via package.json (e.g. adding  to AndroidManifest.xml for Google Maps API keys).

We are already working on that with @Kureev so plugins can specify custom config they ask users for (e.g. Google Analytics token) and we will use prompt module to display a nicely formatted interactive question during rnpm link so they can answer and we will update their constructor on android e.g. where you define your package to be new GoogleAnalytics(<read_config_from_android_manifest>) for instance.

I appreciate the discussion about project structure but the proposal is very narrow. Projects structures are what they need to be for a variety of reasons and increasingly due to the fact they must also fit into devops scenarios with continuous integrations and deployment.
In general I think you will find developers don't want:

react-native to alter the way in which node_modules are managed in projects since react native is often combined for simultaneous development for web, other platforms and tooling that relies on conventional node module loading.
to wall access with dotted files to what they may need to do with the code.
to abstracts away anyones ability to modify their project in any language.
to impair our ability to examine and get at anything that allows us our work done. Keep in mind boilerplates as such are good starting points - but it ends there. Please do not assume everyone needs training wheels or should be guarded from the software, or a clear understanding of the software driving their projects because it has been obfuscated under layers of abstraction.

What I believe we'd like to see generally:

More flexibility in the packager and bundling process to provide for more configuration in paths to allow for alternate project structures without breaking builds.
Efforts to extract the packager from react native allow for alternate building and bundling scenarios and implementations to compete with the experience we currently have. ie webpack, browserify, rollup, etc.
Efforts to normalize modules and move away from Haste. It was communicated earlier that there would be efforts to move away from the proprietary haste module system and expose the modules in JavaScript so they could be more easily consumed by any JavaScript developer and systems. I don't see movement in this direction. Rather, there is perpetuation that is working contrary to this. Haste modules are not standard and this is really the elephant in the room that makes the existing packager a necessity.

Since this is "for discussion" and the discussion seems to have petered out I am closing this issue.


Feature/no websocket

Reads Pyth price data from a solana web3 connection. This class uses a single HTTP call.
Use the method refreshData() to update prices values.

This looks good to me! Are you done making changes? If so, I'll merge your PR.
Thank you for your contribution!

This looks good to me! Are you done making changes? If so, I'll merge your PR.
Thank you for your contribution!

I'm done! If this code can help the project, merge!
Thanks for your suggestions :)
Regards


Suggestion list jumps between below and above position

VSCode Version: Code - Insiders 1.13.0-insider (afe47dc84467b487ce0079ff72f55e7ef4f7ebca, 2017-05-30T10:34:18.253Z)
OS Version: Darwin x64 15.6.0
Extensions: none

Testing #27315
It seems to be triggered by an entry with a long doc:

well yes. The long docs cannot be fit under the cursor, so the widget moves above.
This behavior exists today as well without the docs expanded.
Just above the bottom of the editor, type something that gives you say 4 suggestions and all fit below the cursor. Now keep backspacing, suggestion list grows and widget goes above the cursor.
One thing we can do here is, that once the widget moves above the cursor, it remains above even if the next docs is small enough to fit below the cursor.
Thoughts?

Sounds good, that would improve these cases.

From @roblourens in #28140


Initial version

[x] Add a basic editor class
[x] Diff all added and removed numbers from the text on each stop-changing event
[x] Attach markers to ranges from step 2
[ ] Decorate markers from step 3 and add DOM elements above numbers which have the necessary mouse events
[ ] Properly increase and decrease the number based on scrolled distance

Number overlays seem to be working well

Stable and working


How to encode ID?

This is probably a very silly question. But how do I encode an ID into the HashID?
I've added the initializer with my own seed. But I can't seem to find out how to do this

For all the other newbies like me, its via Model.to_param (e.g location.to_param)


renamed test source files

Changes Unknown when pulling 329b9b8f51e26ae7a0722457a6260555c2e2cb43 on edit-failing-tests into ** on master**.

Squashing commits and merging into master


(KeepassXC) Upstream doesn't provide 32 bit versions any more

Description
Upstream is not providing 32 bit versions any more which was making the AU based automated update.ps1 process fail due to malformed 32 bit URL (obviously). This patch fixes this.
Motivation and Context
Package not automatically updated to 2.7.0. Fix this.
How Has this Been Tested?
Local dev env.
Screenshot (if appropriate, usually isn't needed):
N/A
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Migrated package (a package has been migrated from another repository)

Checklist:

[x] My code follows the code style of this repository.
[ ] My change requires a change to documentation (this usually means the notes in the description of a package).
[ ] I have updated the documentation accordingly (this usually means the notes in the description of a package).
[ ] I have updated the package description and it is less than 4000 characters.
[x] All files are up to date with the latest Contributing Guidelines
[x] The added/modified package passed install/uninstall in the chocolatey test environment.
[x] The changes only affect a single package (not including meta package).

:white_check_mark: Package verification completed without issues. PR is now pending human review

Just saw that another PR has been published before me at #1831 Sorry for the noise. Closing.


ould not generate JSON, error code 5

Laravel 5.5

Clearing cache and config after installing everything fixes the issue.


[FEATURE] Distribution size of app that uses langchain4j with in-process embedding models

Is your feature request related to a problem? Please describe.
I've been developing an app that uses langchain4j.
We have found a problem, that the distribution size of our app is too big.
I was studying the modules inside distribution to see why app changed it's size so much.
It turns out onnxruntime module takes up 376M:

(Windows takes up the most space)
It seems there are several versions inside 1 package for different OSes.
Describe the solution you'd like
Is there any way to remove unused modules for OS-arch?
Alternatives
Currently, I'm investigating the issue, maybe there are other ways to solve this

OMG they put .pdb inside a release???
Similar issue: https://github.com/microsoft/onnxruntime/issues/12084

UPDATE: I've successfully used Deep Java Library for embedding generation and the distribution size is very small.
I could try to make a new langchain4j package for in-process models that uses not ONNX, but djl

@InAnYan hmm, that is interesting, where can I see/run the code?

@langchain4j you can take a look at this example: https://github.com/deepjavalibrary/djl-demo/blob/master/huggingface/nlp/src/main/java/com/examples/TextEmbedding.java
And also available models: https://github.com/deepjavalibrary/djl/discussions/3357#discussioncomment-10103163

@InAnYan looks nice! I have nothing against a new package, but I have lots of other things right now and I won't be able to help an/or commit to maintain it afterwards. If you plan to maintain it, go ahead and we can add it on https://github.com/langchain4j/awesome-langchain4j page and in the documentation


Hospital Overload flag can get cut off.

summary: Search for Vigo County, IN
screenshot (you can copy/paste images directly in):

Note that this is even more of a problem with the new embeddable charts (https://github.com/covid-projections/covid-projections/pull/467)


Upload Excel results in 404 error

In v1.2.0, when clicking "Upload Excel"
Expected results
It should open normally.
Actual results
Browser creates an alert with message "ERROR: undefined"
Screenshots
How to reproduce the bug

Click on "Upload Excel"

Container Error logs:
404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

2021-07-27 00:44:35,147:WARNING:superset.views.base:404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

Environment

superset version: v1.2.0
python version: 3.7
node.js version: node -v

Using official docker image of 1.2.0
Checklist
Make sure to follow these steps before submitting your issue - thank you!

[x] I have checked the superset logs for python stacktraces and included it here as text if there are any.
[x] I have reproduced the issue with at least the latest released version of superset.
[x] I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context
Add any other context about the problem here.

Issue resolved in 1.3


feat: add option to change base url of github

Hey, I just saw that, would you like to finish this? I see there are some problems with the workflows, I can fix that!

Hey @BlackDark I've fixed some of the workflows, to make them run correctly when there's a fork, could you rebase with main? thanks!

Hey @BlackDark I've fixed some of the workflows, to make them run correctly when there's a fork, could you rebase with main? thanks!
Also please add a description of the use case you are trying to get this feature for? thanks,

Hi @gagoar, thanks for the response. Rebased the branch onto the main.
If I need to do sth else I am happy to help!

Hey @BlackDark I've fixed some of the workflows, to make them run correctly when there's a fork, could you rebase with main? thanks!
Also please add a description of the use case you are trying to get this feature for? thanks,

Hi @gagoar, thanks for the response. Rebased the branch onto the main. If I need to do sth else I am happy to help!

yea, it seems like sadly the DeepSource is failing because the error on the try-catch doesn't have a type. are you familiar with TS to include it in your review? I can wip up a PR fixing that first as well.
Also please add a description to the PR when you get a chance. Is very useful to know the use-case you are optimizing for.
Thanks again.

The error:

Can be solved with:
setFailed(`something went very wrong ${JSON.stringify((e as Error).message)}`);

Hey @BlackDark I've fixed the issue you see here coming from DeepSource if you please can rebase your branch and add a description to the PR* we will be good to go!
I can help with  the action that uses this package as well so we can release things in tandem.


remove unattended-upgrades on microvm instances

What does this PR do?
Removes the unattended-upgrades package on boot of the metal instances during the microvm scenario.
Which scenarios this will impact?
aws/microVMs
Motivation
A failure installing packages due to unattended-upgrades already holding the dpkg lock.


panic when attempting to dump state via osmosisd export

I'm trying to export state for a few specific heights after the most recent upgrade and the process always ends up stopping due to a panic with the same error message at the same LOC.

Can you try again on v7.0.3?

Gonna give it a try right now!

Okay seems to be working properly now for both historical and current heights :+1:
Closing this issue now

Awesome!


DELETED TAG BUG

If the voter has a tag "Deleted", it crashes the program. List indices go out of range.

If the voter has a tag "Deleted", it crashes the program. List indices go out of range.

Hello, is code executed for u or not


Allow more advanced conditions on triggers

Need to be able to support both AND and OR operators on triggers (and possibly more advanced combinations).  Currently if I want to run a recipe on 2 different data types, I have to create 2 different recipes that are exactly the same.

NOT operations would also be useful.  Jared could also use this functionality.

Update both trigger JSONs (ingest and parse) to version 1.1 and accept two new fields under "condition":
"any_of_data_types" - optional array of strings that match the condition if the file has at least one of the data types in this array (must still match the "media_type" and "data_types" fields if provided for condition to match)
"not_data_types" - optional array of strings where the condition does not match if the file has at least one of the data types in this array
New JSON:
{
   "version": "1.1",
   "condition": {
      "media_type": "text/plain",
      "data_types": [
         "foo",
         "bar"
      ],
      "any_of_data_types": [
         "this_one",
         "or_this_one"
      ],
      "not_data_types": [
         "not_this_one",
         "nor_this_one"
      ]
   },
   "data": {
      "input_data_name": "my_file",
      "workspace_name": "my_workspace"
   }
}


Notification: copy and URLs changes

Invert order of arguments for hasChanged: https://lit.dev/docs/components/properties/#haschanged
Change the copy from the content to be different from the title and easier to understand what the links mean
Reduce the font-size for the content

Example,

I ended up removing the hasChanged complexity for now because it's not required for our current use case. The addon is initialized with the whole config object and it does not change after that; requiring no refresh render again. So, I'm changing the this.urls field insie the loadConfig for now which makes the WebComponent to render properly with the correct URLs.


[Bug]: pnpm install command not found

What happened?
I found a BUG 🐞
followed the install instructions exactly as stated:
pnpm install
pnpm : command not found !
used Bash for windows and well as the cmd application.
node -v : 18.18.1
npm -v : 10.2.0
nvm -v :  1.1.11
I have tried this on three separate occasions; doesn't work! Why?
I have checked the PATH of node in the environment variables
This is very frustrating!

Add screenshots
Add screenshots
What browsers are you seeing the problem on?
Firefox
Code of Conduct

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

@goobric Thanks for opening the issue I will look into it, Have you tried using npm install?

@goobric I too am facing the same issue on my windows Os using Gitbash , yes @shyamtawli i tried with npm install but the same Err!

@shyamtawli i think i found the solution for the bug the thing is there is no  "packageManager": "pnpm@-v",  added in the package.json file and by default its considering it to be an yarn project so just adding that line would work for everyone using windows and gitbash would be fine i feel.

see @goobric after adding the line package.json i am able to install pnpm and after using pnpm install i am able to see nodemodules folder
but this is only for people using windows and gitbash i feel idk if its like that maybe its better to update the readme file adding few comments about this would be helpful for everyone ......maybe can i do that ????

@JeraldRoyJ18 Thanks for sharing.


Typing with converters not working

Using attrs 19.1.0 on Python 3.6.7,
from typing import Any, Iterable, List, Tuple, TypeVar

from attr import attrs, attrib

T = TypeVar("T")

def to_tuple(val: Iterable[T]) -> Tuple[T, ...]:
    return tuple(val)

def to_list(val: Iterable[T]) -> List[T]:
    return list(val)

@attrs
class C:
    elements: Tuple[str, ...] = attrib(converter=to_tuple)

@attrs
class D:
    elements: Tuple[str, ...] = attrib(converter=tuple)

@attrs
class E:
    elements: List[str] = attrib(converter=list)

@attrs
class F:
    elements: List[str] = attrib(converter=to_list)

if __name__ == "__main__":
    l = ["a", "b", "c"]
    c = C(l)
    d = D(l)
    e = E(l)
    f = F(l)

gives
32: error: Argument 1 to "C" has incompatible type "List[str]"; expected "Iterable[T]"
33: error: Argument 1 to "D" has incompatible type "List[str]"; expected "Iterable[_T_co]"
34: error: Argument 1 to "E" has incompatible type "List[str]"; expected "Iterable[_T]"
35: error: Argument 1 to "F" has incompatible type "List[str]"; expected "Iterable[T]"

This may be related to https://github.com/python/mypy/issues/5738, but the issue goes back as far as mypy 0.610.

That looks like exactly @euresti's comment in that mypy bug?

That mypy bug appears to have been fixed, but I'm seeing something that looks like a similar problem with dict. The example in @berquist's original comment is also still failing for me

my minimal example with `dict`
import attrs

@attrs.frozen
class C:
    foo: dict = attrs.field(factory=dict, converter=dict)

C(foo={"a": 1})

$ mypy t.py
t.py:9: error: Argument "foo" to "C" has incompatible type "dict[str, int]"; expected "_VT | SupportsKeysAndGetItem[_KT, _VT] | SupportsKeysAndGetItem[str, _VT] | Iterable[tuple[_KT, _VT]] | Iterable[tuple[str, _VT]] | Iterable[list[str]] | Iterable[list[bytes]]"  [arg-type]
Found 1 error in 1 file (checked 1 source file)

$ python --version
Python 3.11.5

$ pip freeze
attrs==23.1.0
mypy==1.5.1
mypy-extensions==1.0.0
typing_extensions==4.7.1

I just ran into the same problem in an essentially analogous situation to @berquist's. (Hiya, Eric! Been a while, hope all is well.)
I was able to satisfy mypy by wrapping the list conversion in a lambda, instead of just passing the raw type itself.
Toy example:
import attrs

@attrs.define(kw_only=True)
class ClassConverter:
    my_list: list[int] = attrs.field(converter=list)

    def evolve_my_list(self, new_list: list[int]):
        return self.__class__(my_list=new_list)

@attrs.define(kw_only=True)
class LambdaConverter:
    my_list: list[int] = attrs.field(converter=lambda v: list(v))

    def evolve_my_list(self, new_list: list[int]):
        return self.__class__(my_list=new_list)

mypy output:
9: error: Argument "my_list" to "ClassConverter" has incompatible type "list[int]"; expected "Iterable[_T]"  [arg-type]

And no typing error on LambdaConverter.
I don't know if this is a good or right way to address this, but it's semantically correct and makes mypy happy, sooooo.... ¯_(ツ)_/¯

Hi @bskinn, you need to use a dedicate converter function for typing to work correctly, because list is not Callable[[Any], list[int]].  You should also use the @classmethod decorator for your factory functions.
The following code works with Python 3.12 and mypy 1.8:
from typing import Any, Self, Type

import attrs

def to_int(v: Any) -> list[int]:
    return [int(item) for item in v]

@attrs.define(kw_only=True)
class ClassConverter:
    my_list: list[int] = attrs.field(converter=to_int)

    @classmethod
    def evolve_my_list(cls: Type[Self], new_list: list[int]) -> Self:
        return cls(my_list=new_list)

@attrs.define(kw_only=True)
class LambdaConverter:
    my_list: list[int] = attrs.field(converter=lambda v: list(v))

    @classmethod
    def evolve_my_list(cls: Type[Self], new_list: list[int]) -> Self:
        return cls(my_list=new_list)

Thanks, @sscherfke!
I was wondering if a function with an explicit internal int cast would be the most correct way to do it.
And you're right, for that toy example, @classmethod is the way to go. For my actual use-case (private code, unfortunately), I'm defining custom __add__ and __mul__, so as best I understand I do need instance methods and self.__class__(...).
(FWIW I also need runtime checks to be sure that the incoming argument is actually isinstance(addend, int), so there's yet further difference there, but that's all implementation-specific. Didn't want to clutter my proposed solution with all that.)


Doesn't work in webpack: Can't resolve '../xlsx.js'

look this:
WARNING in ./~/xlsx/ods.js
Module not found: Error: Can't resolve '../xlsx.js' in 'F:\gittest\js-office-demo\node_modules\xlsx'

 @ ./~/xlsx/ods.js 10:9-30
 @ ./~/xlsx/xlsx.js
 @ ./src/index.js

ERROR in ./~/xlsx/dist/cpexcel.js
Module not found: Error: Can't resolve './cptable' in 'F:\gittest\js-office-demo\node_modules\xlsx\d
ist'
 @ ./~/xlsx/dist/cpexcel.js 808:16-41
 @ ./~/xlsx/xlsx.js
 @ ./src/index.js

right now, you can suppress those in the webpack config.  The webpack demo (in the demos/webpack subdirectory of the git repo) has the following
	externals: [
		{
			'./cptable': 'var cptable',
			'../xlsx.js': 'var _XLSX'
		}
	]

Soon we will rework the codepage library to omit the require statement and fold the ODS code into the main script.  Keep the issue open until then.

Dear, thank you very much. The problem has been solved! @SheetJSDev

https://github.com/SheetJS/js-xlsx/issues/285 is also tracking the issue

Failed to compile.
./node_modules/tempa-xlsx/ods.js
Module not found: Can't resolve 'xlsx' in 'D:\OFFICE\workspace\geo\node_modules\tempa-xlsx'
please can solve this issue I am not getting what to do?????

Hi Pranaydp
install this package  npm install xlsx  it's working

Failed to compile.
./node_modules/tempa-xlsx/ods.js
Module not found: Can't resolve 'xlsx' in 'D:\OFFICE\workspace\geo\node_modules\tempa-xlsx'
please can solve this issue I am not getting what to do?????

install this package npm install xlsx it's working

I've read tons of related topics and tried everything. But in my case this helped:
In webpack config in externals replace  { "../xlsx.js": "var _XLSX" } with { "../xlsx": "var _XLSX" }


Allow dontCacheBustURLsMatching to accept an array

Library Affected:
workbox - InjectManifest
Browser & Platform:
N/A
Issue or Feature Request Description:
Could dontCacheBustURLsMatching please accept an array of regex patterns?

I presume you must have a reason for not wanting to join them into a single expression, [/foo/,/bar/]->/(foo|bar)/ but I can't come up with a case where that would not be possible from the top of my head.

I was thinking about our bundles. These are primarily located:
/static/modern/bundles/scenes/checkout/summary/summary.c4485ndf5k9b.js
/static/modern/bundles/scenes/checkout/complete/complete.c4485ndf5k9b.js
/static/modern/bundles/components/common-component.we9n4589c45dffg7.js
/static/modern/bundles/components/map/map.c489fneai8f4gfs.js
So, if we are required to target these bundles, the regex gets fairly busy:
/^static/modern/bundles/(scenes|components)/[a-z0-9-]?/[a-z0-9-]?//[a-z0-9-]./[a-z0-9].js$/
... and this is just for bundles.

With https://github.com/GoogleChrome/workbox/pull/2673 in place, most of the time you shouldn't need to use dontCacheBustURLsMatching with workbox-webpack-plugin v6+. So if you're using webpack, this shouldn't be as much of an issue.
Assuming you're not using webpack, you don't need to match the entire URL in your RegExp. I think you could get away with using /\.[0-9a-f]{16}\.js$/ as the RegExp for your examples, instead of your more involved RegExp. (That assumes that your hashes are 16 hex characters, surrounded by ., and immediately followed by 'js'.)


add some unit test in package pkg

Signed-off-by: Liucw<EMAIL_ADDRESS>
What type of PR is this?
/kind feature

What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes https://github.com/kubeclipper/kubeclipper/issues/481
Special notes for reviewers:

Does this PR introduced a user-facing change?

None

Additional documentation, usage docs, etc.:

@zhuzhenfan @x893675

Codecov Report

Merging #513 (9af76fb) into master (5519546) will increase coverage by 0.29%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #513      +/-   ##
==========================================
+ Coverage   13.02%   13.32%   +0.29%
==========================================
  Files         123      124       +1
  Lines       19335    19340       +5
==========================================
+ Hits         2519     2577      +58
+ Misses      16539    16478      -61
- Partials      277      285       +8

Impacted Files
Coverage Δ

pkg/utils/wssstream/conn.go
100.00% <0.00%> (ø)

pkg/query/query.go
41.83% <0.00%> (+20.40%)
:arrow_up:

pkg/utils/sliceutil/sliceutil.go
81.81% <0.00%> (+39.39%)
:arrow_up:

/lgtm

/approve


WIndows release mode does not launch with go route redirect

Thanks in advance!
My application runs fine in debug mode on windows, but will not launch in release mode.
Below is what I found causing the issue which might be helpful.
GoRoute(
      path: Paths.home,
      redirect: (context, state) => authenticationRedirect(context, state),
      routes: [
        dashboardRoute,
        streamsRoute,
        poolsRoute,
        catalogRoute,
        solutionsRoute,
        modulesRoute,
        tasksetsRoute,
        usersRoute,
        userRoute,
        hmdsRoute,
      ],
    ),

and authenticationRedirect looks like
String? authenticationRedirect(BuildContext context, GoRouterState state) {
  final isAuthenticated = AuthenticationService.to.isAuthenticated;
  return isAuthenticated ? null : Paths.loginRoute;
}

however if I completely remove  redirect: (context, state) => authenticationRedirect(context, state), line, the application will launch in release mode.
PS: media_kit in pubspec.yaml only. No actual code anywhere in lib.

Below is flutter doctor -v
[√] Flutter (Channel stable, 3.24.3, on Microsoft Windows [Version 10.0.22631.4317], locale en-US)
    • Flutter version 3.24.3 on channel stable at C:\Users\caooo\scoop\apps\flutter\3.24.3
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2663184aa7 (5 weeks ago), 2024-09-11 16:27:48 -0500
    • Engine revision 36335019a8
    • Dart version 3.5.3
    • DevTools version 2.37.3

[√] Windows Version (Installed version of Windows is version 10 or higher)

[X] Android toolchain - develop for Android devices
    X Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/to/windows-android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.11.5)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.11.35327.3
    • Windows 10 SDK version 10.0.22621.0

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/to/windows-android-setup for detailed instructions).

[√] VS Code (version 1.94.2)
    • VS Code at C:\Users\caooo\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.98.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22631.4317]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 129.0.6668.101
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 129.0.2792.89

[√] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.

https://github.com/media-kit/media-kit/pull/967

Thanks!
Will post on results.


confirmed-cases date_confirmed are all empty

Thanks for the report. Didn't notice it. They deleted it from ArcGIS during the update last night. 😨
I might have to do a manual correction for this.


chore: update nixpkgs to 22.11

This brings a newer nvme-cli and thus we don't need to make it special.

bors merge

bors merge

bors cancel

bors merge


🐛[BUG]

🐛 bug 描述
Hey, I discovered a bug in versions after v.1.6.0
Context: When I first make a selection (img below)

and then I select another row. (img below)

For a second isSelecting prop for previously selected values will be true. (img below)

const { setNodeRef, isSelected, isSelecting } =
    useSelectable({
      value,
    });

console.log(value, console.log(value, isSelected, isSelecting););

Could you please take a look as it's casing an issue in my project?
Many thanks

It's not a bug, it's expected, you want isAdding?

I can't understand why isSelecting is true for previously selected values? I'm not selecting them atm. It started happening in version 1.6.0
https://github.com/linxianxi/react-selectable-box/assets/117638958/492b4c7c-3915-4420-871f-ed48db56084f

In your video, your console.log is isSelected && isSelecting. I tested isSelecting in the latest version and it is false.

That's what I did. I opened a codesandbox and forked it.
See another video
https://github.com/linxianxi/react-selectable-box/assets/117638958/0b1df42e-a438-4746-b2ea-f7d3d5cd70ba

https://codesandbox.io/p/sandbox/sad-sky-lcg3qc?file=%2FApp.tsx&layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522clsygp6r100063b6jpjnltvgi%2522%252C%2522sizes%2522%253A%255B100%252C0%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522clsygp6r100023b6jqmc6y0lz%2522%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522clsygp6r100033b6jphm8qf1s%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522clsygp6r100053b6joz3d9v6f%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%252C%2522sizes%2522%253A%255B50%252C50%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522clsygp6r100023b6jqmc6y0lz%2522%253A%257B%2522id%2522%253A%2522clsygp6r100023b6jqmc6y0lz%2522%252C%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clsyli0za00023b6jieojkq26%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522%252FApp.tsx%2522%252C%2522state%2522%253A%2522IDLE%2522%257D%255D%252C%2522activeTabId%2522%253A%2522clsyli0za00023b6jieojkq26%2522%257D%252C%2522clsygp6r100053b6joz3d9v6f%2522%253A%257B%2522id%2522%253A%2522clsygp6r100053b6joz3d9v6f%2522%252C%2522activeTabId%2522%253A%2522clsyuf61z00ia3b6jd7lxs2ky%2522%252C%2522tabs%2522%253A%255B%257B%2522type%2522%253A%2522UNASSIGNED_PORT%2522%252C%2522port%2522%253A0%252C%2522id%2522%253A%2522clsyuf61z00ia3b6jd7lxs2ky%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522path%2522%253A%2522%252F%2522%257D%255D%257D%252C%2522clsygp6r100033b6jphm8qf1s%2522%253A%257B%2522tabs%2522%253A%255B%255D%252C%2522id%2522%253A%2522clsygp6r100033b6jphm8qf1s%2522%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Afalse%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D

In the docs it says: isSelecting | Whether it is currently being selected | boolean
But elements 0,1,2 from the video are not being selected when I select elements 10,11,12. Then why isSelected is still true for them?

The issue disappears if I downgrade the version to 1.5.0. Please, see the video
https://github.com/linxianxi/react-selectable-box/assets/117638958/13c93695-48c1-458a-8d6c-151e61678b17

Thanks, it's been solved for me :)