AsyncReturnType a utility type designed to obtain return type of an asynchronous function.

🔍 Search Terms
typescript ts get returntype of an async function
typescript ts utility class to get return type of an async function
typescript asyncreturntype
✅ Viability Checklist

[x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[X] This wouldn't change the runtime behavior of existing JavaScript code
[X] This could be implemented without emitting different JS based on the types of the expressions
[X] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
[ ] This isn't a request to add a new utility type: https://github.com/microsoft/TypeScript/wiki/No-New-Utility-Types
[X] This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals

⭐ Suggestion
There should be a way for developers to extract complex asynchronous function returns on the go.
I've already designed the code that should be put in, however, let me quickly walk you through my line of thought.
📃 Motivating Example
Although this is a new Utility Type suggestion, I believe this is something the entire developer community could agree on and actually like to be added to TypeScript.
Have a look at this:
// Consider this function below
function getFoo(): "foo" {
    return "foo";
}
// Let's say this was actually a complex function, and
// developers wanted to save time, and avoid duplication by using ReturnType<typeof getFoo> instead of "foo".
// This way, if the return type of getFoo changes, the return type of ReturnType<typeof getFoo> will change as well.

type fooReturn = ReturnType<typeof getFoo>; // "foo"

// However, when attempting the same approach with asynchronous functions,
// the ReturnType<typeof getUser> will not work as expected.
async function getLoo(): Promise<"loo"> {
    return "loo";
}

type looReturn = ReturnType<typeof getLoo>; // Promise<"loo">

// Now, there are definitely already some things that developers can do to avoid this, however
// all of them are not as clean as having a seperate brand new ReturnType for asynchronous functions.
// This is where the AsyncReturnType comes in. It is a utility type that
// allows developers to get the return type of an asynchronous function.

// An example of usage could be a developer using Prisma and including many custom parameters in their returning data.
// Prisma's types are autogenerated, and therefore the return type of the function would also be auto-generated, eliminating wasted development time.

// Here's the function.

type AsyncReturnType<T extends (...args: any) => Promise<any>> = T extends (
    ...args: any
) => Promise<infer U>
    ? U
    : never;

// Working similar to ReturnType, AsyncReturnType will return the type of the promise that the function resolves to.

//This is useful as developers don't have to keep doing TypeScript trickery like this...
type ExtractPromiseType<T> = T extends Promise<infer U> ? U : never;

// Example usage
async function getLoo(): Promise<"loo"> {
    return "loo";
}

type LooType = ExtractPromiseType<ReturnType<typeof getLoo>>; // "loo"

// ...to avoid those errors.

Something that would extremely helpful is if this one simple line could be added to TypeScript:
type AsyncReturnType<T extends (...args: any) => Promise<any>> = T extends (...args: any) => Promise<infer U> ? U : never;
Many thanks for your attention! ;)
💻 Use Cases
1. What do you want to use this for?
General development
2. What shortcomings exist with current approaches?
No shortcomings, just developer annoyance.
3. What workarounds are you using in the meantime?
The one described above.

Did you read No New Utility Types?

See also https://github.com/microsoft/TypeScript/wiki/FAQ#pre-declined-feature-requests or the checklist in the issue template

Clearly looks like you read the suggestion. Very well done.

I realize that you wrote this:

Although this is a new Utility Type suggestion, I believe this is something the entire developer community could agree on and actually like to be added to TypeScript.

but anyone wanting to add a utility type is going to think this is true of the type they're proposing, otherwise they wouldn't do it in the first place. The boundary we've set here is quite explicit and saying "Ah yes but this is a good one" isn't going to change that boundary.


watch bug?

@org.junit.Test
public void watch() throws Exception {
    Client client = null;
    Watch watch = null;
    Watch.Watcher watcher = null;
    try {
        client = Client.builder().endpoints("http://<IP_ADDRESS>:2379").build();
        watch = client.getWatchClient();
        watcher = watch.watch(ByteSequence.fromString("cc"));
        WatchResponse response = watcher.listen();
        for (WatchEvent event : response.getEvents()) {
            System.out.println(event.getEventType());
        }
    } catch (Exception e) {
        if (watcher != null) {
            watcher.close();
        }

        if (watch != null) {
            watch.close();
        }

        if (client != null) {
            client.close();
        }
    }

}

my etcd is not running in http://<IP_ADDRESS>:2379 but it still can listen and never throw a exception
    <!-- https://mvnrepository.com/artifact/com.coreos/jetcd-core -->
    <dependency>
        <groupId>com.coreos</groupId>
        <artifactId>jetcd-core</artifactId>
        <version>0.0.1</version>
    </dependency>

@cc861010  client = Client.builder().endpoints("http://<IP_ADDRESS>:2379").build()  never throw any connection error?

@cc861010 another question, did you start the etcd server at all?

i mean the junit test run in an environment that does not have etcd server @fanminshi

@cc861010 seems a bug to me. I would expect the client throw connection error.

cc/ @skyao @俊雄 could you take a look on this issue.

in WatchImpl#processError, if throwable is a io.grpc.StatusRuntimeException: UNAVAILABLE: Transport closed for unknown reason, we should throw it out?

@ScienJus that's expected behavior. the watch should retry on temporary connection error. I think issue is that building Client.builder().endpoints("http://<IP_ADDRESS>:2379").build() should return an error but it doesn't.

@fanminshi i see the https://github.com/coreos/etcd/tree/master/client also does not throw an error when building client. so i don't think it is a bug.

@ScienJus you should look clientv3 https://github.com/coreos/etcd/tree/master/clientv3.  in etcd go client, create client waits for a dail timeout as shown here https://github.com/coreos/etcd/blob/master/clientv3/client.go#L396-L416. jetcd client should have similar behavior.

cc/ @lburgazzoli

I think the implementation of processError should be improved as it may ends-up in an infinite loop, i.e. you are connected and listening and then the connection drops. So I think the call to listen should return in case of error and eventually re-established if the next call to listen().

Going top close this as watch interface will be rewrote, see #308


Development README fixes

As shown below, there is a missing tick mark for syntax highlighting around the presubmit tests location in DEVELOPMENT.md.

/ok-to-test


Implementation of PinRequests

Mobile login is not working with it.

Pls get more in detail - It's running at my app with the Companion App.

With current branch (without pull request) mobile login works fine. But with this branch
https://github.com/tringler/FIFA-Ultimate-Team-Toolkit/tree/PinRequests
it tells "Unable to login to WebApp" when I`m choosing Companion App. Login via Web App works fine.

I cannot verify at my client - Can you please debug it in LoginRequest.cs and tell me where exactly it breaks?

Problem is in LoginMobileRequest.cs in Task PerformRequestAsync()
in this part
if (_loginDetails.SendPinRequests == true)
{
var pinResponseCompanionAppAppOpened = await _pinEventRequestFactory(PinEventId.CompanionApp_AppOpened).PerformRequestAsync();
}
I had Object reference not set an instance of an object. If I set sendPinRequest to false login is working fine.

I can confirm that mobile login is not working.

Turned out that i'm not sending the last parameter sendPinRequest.

I will take a look that evening - Thanks for your feedback

Turned out that i did not send sendPinRequests parameter, but still you have to fix the app when you the overload method which dos not have the last parameter.

Turned out that i did not send sendPinRequests parameter, but still you have to fix the app when you the overload method which dos not have the last parameter.

The sendPinRequests parameter is not mandatory - It's just if you want to disable the PinRequests. Surely you can set it to true but then it's the same as you don't set it at all.

This's very strange case when i debug loginRequest returned _pinEventRequestFactory as null, but when you dive into _requestFactories.LoginRequestFactory and go step by step it return a value inside  _pinEventRequestFactory and everything are working.

Still no fix for mobile login?

Should be fixed with https://github.com/trydis/FIFA-Ultimate-Team-Toolkit/pull/260/commits/17629013e0e835f1b03797b0c2b5f2fd041e8f64

I had HttpRequestException very often when Im using CompanionApp. I think that PinRequests wiil helps but it didnt helps.

@A-VORONKIN Could it be you mean "ExpiredSession" - Try to wait about 5 seconds between each request - If not, please post the HTTP error codes - You should open a new issue, because it seems not touch this PR directly.

@tringler  No, HttpRequestException. Message: Response status code does not indicate success.
https://gyazo.com/78a528afad81c18418dd58d9bea1f175

@tringler can you please take a look apparently it failed some tests, this and the better handling of players ids.
https://ci.appveyor.com/project/trydis/fifa-ultimate-team-toolkit/build/12/tests

My hope is @trydis fixes that error, so I don't have a clue how to fix - At the time I pushed that PR I was able to compile.

well those are automated unit tests, nothing to do with compile, on a quick look, are related to exception handling, some functions doesn't throw the right exceptions.

@mtdx Any hint for me how I can debug this in the studio? I never have been used unit test so far.

Well you need to work in the second project of this repo (UltimateTeam.Toolkit.Tests) you need to install some nuggets, but visual studio should auto-install for you, if you open this project I think,  eg. https://www.nuget.org/packages/NUnit/ , https://www.nuget.org/packages/Moq/
After that you run the tests and see which fails, then you debug as normal and fix, a nunit tests panel should show.
Tests should be self explanatory for example
AssertEx.TaskThrows(async () => await _futClient.LoginAsync(null, null));
tests if LoginAsync Throws an ArgumentNullException exception when passed null arguments.

Will take a look at the remaining PRs during the next few days, have been AFK the entire weekend.

Do you have any stuck with pinrequest? like auctions, search or relist in trade pile?

I don't get you what you mean with stuck in that case

what's going on with this? since is not in vnext I can't test it.

@trydis When you plan to merge to vnext?

@tringler: This PR and #261 cause several of the tests to fail, so I'll have to fix that first unless you can take a look at it? It would certainly help me a lot, as i would only need to review/merge.

@tringler I would say to give up on #261 for now, I had quick look and it changes to many basic things that other stuff depends on, you can submit it later of course, after we merge all these pull requests.

I don't see that https://github.com/trydis/FIFA-Ultimate-Team-Toolkit/pull/261 is changing many basic things - It's just another handling of player ids - It even don't touch any web request

even small changes like replacing a scalar with a model, can ripple through, but atm it seems that is holding things from moving on.

Just the unit tests needs to be fixed in this and in https://github.com/trydis/FIFA-Ultimate-Team-Toolkit/pull/261 PR

I don't see that #261 is changing many basic things - It's just another handling of player ids - It even don't touch any web request

Correct, but it contains a backwards incompatible change (users must change their code after updating the lib), since long ResourceId is changed to PlayerId PlayerId. Even though the tests aren't up-to-date they failed, which is a good thing, since i'm trying to stick to semantic versioning.

OK - Feel free to reject the PR

So you're not interested in adjusting the test code so behaves correctly after your changes?
Don't get me wrong, I really appreciate the PRs you're contributing. It's just a lot less work for me if the code compiles and the tests are green.
If you're not interesting in doing it i can do it, i just don't know when. Looking at the build logs it should only require some small changes.

I'm out - You know I'm thinking unit tests doesn't make sense if you don't control the API or webserver Whatever - Goodbye and Thank you for the fish! - Feel free to reject all my PRs

Yes, I will stop working on this repo. Thanks for your great work & effort on this project.

I understand, thanks for your contributions :smiley:

@trydis when you will apply all this pull requests? I have some new requests but there is no sense to create them before you will apply current.

Besides not all tests running throuhg with this PR, is it working for some people?
@mtdx Do the PinRequests help out with banning of accounts in FUT17?


0.9.5b8: New icon on windows taskbar needs white background for dark themes

Super-mk does not stand out. Background inside circle needs to be white, circle probably needs to be contrasting colour like red.

Windows 10 dark theme.
MK pinned to taskbar but not opened i.e. shortcut icon:

MK opened i.e. executable icon:

The contrast on both of these is not great. Unopened it is white on white. Opened it is black/white on grey.
In both cases, my recommendation is to:

Shortcut icon: Make the Meerkat Black with red eyes just like the execution icon
Both icons: Make the circle red - and perhaps a tiny bit thicker - and fill with white background inside the circle to give contrast with meerkat and laser-eyes and circle.
Both icons: Background outside the circle either transparent or black or dark grey.

Sorry - still not great in <IP_ADDRESS>:

Icon when running too small and so it is VERY indistinct - it really does not do the brand recognition thing that it needs to do. I provided the Discord icon for comparison.

The shortcut icon is a better size, but the MK body is white rather than black.

Look at the one on github and validate your findings

Which one on Github? If you mean you want me to run from source, then sorry - but after I left the development community due to being abused I deleted my development environment.
But the above graphics are on the absolute latest executable from only last week.


add -M to amixer to fix volume mapping issues #117

Change-type: patch
Details of this are in the following issue comment.
https://github.com/balenalabs/balena-sound/issues/117#issuecomment-609097464

@tmigone it is failing again.

Right... so this is a failure I haven't seen before. I suspect this might be because of the # on the branch name because I'm seeing a "Branch does not exist error", but I'll contact the mantainer of our ci tool to see if he can figure it out.

Elated to know I'm breaking things hard :)

Elated to know I'm breaking things hard :)

Yes, thank you for that! It looks like indeed you broke our CI ;) There is an http request that the CI makes internally to the following URL:

https://api.github.com/repos/MatthewCroughan/balena-sound/branches/fix-amixer-volume-#117

Since the # is not url escaped (because our CI doesn't do that) that request fails, and the CI check fails! What the CI should be doing is escaping that URL to:

https://api.github.com/repos/MatthewCroughan/balena-sound/branches/fix-amixer-volume-%23117

Apparently you are the first one using our CI and a # on the branch name! I've raised this issue internally in our CI repo so we can fix it. Now, you could wait till that is fixed (uncertain timeline really, could be tomorrow or a few days out) or move your changes to a renamed branch, and resubmit the PR (maybe you can rename the branch and avoid having to create a new PR).  Hopefully we can improve this process soon.

Cannot quite figure out how to rename a branch in this manner. So am just going to submit a new PR.
https://linuxize.com/post/how-to-rename-local-and-remote-git-branch/


More fixes for logging -> Sentry

As per the sentry docs, metadata is passed in via extra['data'] argument to
log.* -- still unclear if this is searchable
We weren't actually logging unhandled build exceptions on the build
environments

I have gone through the documentation and it seems that we can search by tag. its possible to have custom tag.

@safwanrahman :+1:?


ci: really use python 3.9 on windows runners

Use python 3.9 on windows Jenkins runners.
Missed some python invocations in #82.

Seems to be all of them 👍

A final direct python in line 473 (outside of where I can add comments).
This one should be safe, our package.py doesn't have any external dependencies. I think it would even run with python2 :-).

A final direct python in line 473 (outside of where I can add comments).

This one should be safe, our package.py doesn't have any external dependencies. I think it would even run with python2 :-).

Wonderful 😸


undefined method `invoke_with_build_args' for nil:NilClass

i got below message when i run  gem install suspensers
$ gem install suspenders
ERROR:  Loading command: install (LoadError)
	dlopen(/Users/rhee/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-darwin18/openssl.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /Users/rhee/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-darwin18/openssl.bundle
  Reason: image not found - /Users/rhee/.rbenv/versions/2.6.3/lib/ruby/2.6.0/x86_64-darwin18/openssl.bundle
ERROR:  While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass

then i did run brew install openssl
https://stackoverflow.com/questions/23350388/cant-install-gems-because-undefined-method-invoke-with-build-args-for-nilni
but i can't solve
and i use rbenv and ruby 2.6.3
rbenv global 2.6.3

i found solution
sudo rm -rf ~/.rbenv
rbenv install 2.6.3
rbenv global 2.6.3

i want close issues


New search functionality using the ItemSearch class

As a user, I need to be able to search for content other than using a bounding box.
Currently, searching catalogs on a STAC endpoint requires using a bounding box. However, the ItemSearch class exposes additional search parameters that we can use.
Additional resources:

query parameter table

Exposing the intersects option would benefit some of the work being done in the gedi tutorials

Added in https://github.com/easierdata/ipfs-stac/commit/a26f805faf892684992609e99a938e0a69bf9602, used https://pystac-client.readthedocs.io/en/stable/_modules/pystac_client/item_search.html#ItemSearch as reference

Closed with PR https://github.com/easierdata/ipfs-stac/pull/46, collabed w/ Seth


When i open orange 3 After installing from Anaconda it shows black screen.......... Plz someone tell me solution

Issue Report Checklist

[ ] Searched the issues page for similar reports
[ ] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
[ ] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
[ ] Could not reproduce inside jupyter qtconsole (if console-related)
[ ] Tried basic troubleshooting (if a bug/error)

[ ] Restarted Spyder
[ ] Reset preferences with spyder --reset
[ ] Reinstalled the latest version of Anaconda
[ ] Tried the other applicable steps from the Troubleshooting Guide

[ ] Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description
What steps reproduce the problem?

What is the expected output? What do you see instead?
Paste Traceback/Error Below (if applicable)

PASTE TRACEBACK HERE

Versions

Spyder version:
Python version:
Qt version:
PyQt version:
Operating System name/version:

Dependencies

PASTE DEPENDENCIES HERE

@Aditya222002 this repository is for Spyder related questions. Also since you are using Anaconda, and Anaconda-Navigator, the place to ask this is:
https://github.com/ContinuumIO/anaconda-issues/issues/
Please make sure that your issues are related to Spyder next time ;-), cheers!


exposing private classes from graphics._features as part of the public API

Some things are useful as typechecks for dependent libs and for users, for example isinstance(ev, FeatureEvent). Other things in this API might be useful as well, we can think about what classes to expose.

A subclass of FeatureEvent for selectors would be useful too for type annotations so tab completion etc. can work without having to look at the docs :thinking:


Some thoughts on npm pakage-lock/cache in the VMR

I have been poking around the package-lock.json file and the npm cache that's included in the VMR and found a few things that I wasn't expecting. I am posting a list of thoughts and questions here to share this information and share some feedback. Please let me know if there's a better place to take this disscussion, or if I should file specific issues to get some things fixed.

It looks like all packages are restored from https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm.

Microsoft probably has equivalent or better supply chain security than npmjs.org, but I depending on this custom npm registry seems a bit odd.
Is there some way to fetch packages from npmjs.org instead?
If not, is there some way to validate that these are the same packages as those on npmjs.org

Some packages have a different version in pakcage-lock.json than what's available on npmjs.org. word-wrap caught my eye, bcause the version in package-lock.json is 1.2.6, but npmjs.com only has 1.2.5

There are dependencies marked as "dev": true. Are they for testing/linting/etc? Can we build ASP.NET Core without those? I

Are the non-dev dependencies actually embedded into the product?

Can we split dev vs product dependencies into separate caches? That would let distros delete (or not use) the devDependencies, reducing the need to worry about prebuilts, etc, and dev-only dependncies leaking into the product.

cc @wtgodbe, @javiercn


Disable template nodepool command for capi

What does this PR do?
This PR disables the kubectl gs template nodepool command when the release version specified by the --release flag is >= 20.0.0-alpha1. These versions use CAPI and with CAPI node pools are configured via cluster app bundles and not custom resources. Therefore, the command does not make sense anymore.
What is the effect of this change to users?
Users will be prevented from using the kubectl gs template nodepool command when the associated installation uses CAPI.
What does it look like?
Error: Invalid flag: --release must be < 20.0.0-alpha1, because Cluster API (CAPI) based workload clusters are not supported

Any background context you can provide?
https://github.com/giantswarm/roadmap/issues/1188
What is needed from the reviewers?

I added tests for the cases where kubectl gs prevents the user from using the command. However, I was unable to create tests for the opposite case (where kubectl gs allows to use the command), because I do not know how to mock the k8sclient. If anyone knows how to do this, I would add further tests.

Do the docs need to be updated?
Already done by marian.
Should this change be mentioned in the release notes?

[x] CHANGELOG.md has been updated (if it exists)

Is this a breaking change?
No, because only the command only worked for CAPZ and no customer is using CAPZ.

The current implementation is incorrect.
The command should always work when provided with the --provider aws/azure , disregarding the release version (specified by the --release flag).
It should not work with any other provider.
I will make these changes as soon as I have confirmation.


Fix ActiveRecord::Encryption protection

It's currently possible to override the encryption context set by console1984 to protect encrypted data. It looks like we intended to add a protection to this, but an unexisting constant was added to the protection list instead.
This commit fixes this protection by changing the protected constant from ActiveRecord::ActiveRecordEncryption to ActiveRecord::Encryption
Closes #120

Ohhh, great catch! 😅  Thanks so much 🙏

Released version 0.2.1 with this fix. Thanks again 🙏


Running README Example Fails

When I try and run the readme example
var imdb = require('imdb');

imdb('tt3659388', function(err, data) {
    if(err)
        throw err;

    console.log(data);
});

I get the following error
D:\Documents\GitHub\imdb\node_modules\imdb\lib\imdb.js:14
            var year = body.match(/\((\d+)<\/a>\)<\/span>/i)[1];
                                                                                ^

TypeError: Cannot read property '1' of null
    at Request._callback (D:\Documents\GitHub\imdb\node_modules\imdb\lib\imdb.js:14:120)
    at Request.self.callback (D:\Documents\GitHub\imdb\node_modules\imdb\node_modules\request\request.js:199:22)
    at emitTwo (events.js:87:13)
    at Request.emit (events.js:172:7)
    at Request.<anonymous> (D:\Documents\GitHub\imdb\node_modules\imdb\node_modules\request\request.js:1036:10)
    at emitOne (events.js:82:20)
    at Request.emit (events.js:169:7)
    at IncomingMessage.<anonymous> (D:\Documents\GitHub\imdb\node_modules\imdb\node_modules\request\request.js:963:12)
    at emitNone (events.js:72:20)
    at IncomingMessage.emit (events.js:166:7)
 Program node app.js -dev exited with code 1

Hi! This is due to imdb's website change making the old version incompatible. I plan on fixing this later today. I will close this issue once I update the module.
tldr;: It will be fixed later today.

Okay great thanks for the quick reply.

Something interesting to point out:
Some movies on imdb take different formats, for example yours: http://www.imdb.com/title/tt3659388/ and http://www.imdb.com/title/tt0066995/ look and are different. I'm working to figure out the 2 different formats and extract appropriately though.

Just a status update, I believe I have fixed it, I am just testing it out to make sure it works properly and that I won't run into any more problems

Make sure you update the module to version 1.0.0 and if you run into any further problems (which you shouldn't!) just create a new issue!

Oops! It seems that I've broken it again... when you use unreleased movies, my genre hack doesn't work. I'll fix it right away.

It's fixed.

Thanks for your quick and diligent work on this!

No problem. If you have any further issues, let me know.


fix: Navbar in Beta behaves glitchy on scroll

Thank you for your contribution to the KodaDot NFT gallery.
👇 _ Let's make a quick check before the contribution.
PR type

[x] Bugfix
[ ] Feature
[ ] Refactoring

What's new?

[x] PR closes #4145
[ ] Requires deployment <rubick/magick_issue>
[ ] <brief_description_of_what_I've_added>

Before submitting Pull Request, please make sure:

[x] My contribution builds clean without any errors or warnings
[x] I've merged recent default branch -- main and I've no conflicts
[x] I've tried to respect high code quality standards
[x] I've didn't break any original functionality
[x] I've posted a screenshot of demonstrated change in this PR

Optional

[ ] I've tested it at </rmrk/collection/26902bc2f7c20c546a-1FVG7>
[ ] I've tested PR on mobile and everything seems works
[ ] I found edge cases
[ ] I've written some unit tests 🧪

Had issue bounty label?

[x] Fill up your KSM address: Payout

Community participation

[x] Are you at KodaDot Discord?

Screenshot

[x] My fix has changed something on UI; a screenshot is best to understand changes for others.

At some point we will drop blur anyway I guess, doesn't fit with neobrutalism tho
wfm
pay 50 usd

😍 Perfect, I’ve sent the payout
💵 $50 @ 37.66 USD/KSM ~ 1.328 $KSM
🧗 Caiv9TbPz68q5dC8EcHu5xKYPRnremimGzqmEejDFNpWWLG
🔗 0x992c7f99a024e44ecd978a3d04bb0f5736c4a9ee24626539bee9267abd0c175a
🪅 Let’s grab another issue and get rewarded!
🪄 github.com/kodadot/nft-gallery/issues


Laravel 11.x Compatibility

This is an automated pull request from Shift to update your package code and dependencies to be compatible with Laravel 11.x.
Before merging, you need to:

Checkout the l11-compatibility branch
Review all comments for additional changes
Thoroughly test your package

If you do find an issue, please report it by commenting on this PR to help improve future automation.

:warning: The latest version of Laravel has a dependency for phpunit/phpunit of ^10.5. If you would like to also upgrade your tests, you may run the PHPUnit 10 Shift for free.

:warning: Shift detected a dependency for the laravel/framework. Unless you have a special requirement for depending on the entire Laravel framework, it's recommended to add dependencies for the specific illuminate packages instead.

:alembic: Using this package? If you would like to help test these changes or believe them to be compatible, you may update your project to reference this branch.
To do so, temporarily add Shift's fork to the repositories property of your composer.json:
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/laravel-shift/heimdal.git"
        }
    ]
}

Then update your dependency constraint to reference this branch:
{
    "require": {
        "optimus/heimdal": "dev-l11-compatibility",
    }
}

Finally, run: composer update


Vidstack Player fails to register on a clean install of SvelteKit

Current Behavior:
'vidstack/bundle' doesn't appear to register any styles or elements in the latest versions of SvelteKit. Importing each style/script manually has the same behavior.
Expected Behavior:
The video should be loaded and all UI elements should appear.
Steps To Reproduce:
Reproduction →

Set up a fresh SvelteKit project with create-svelte
Install vidstack and create a Player.svelte component according to the official documentation for SvelteKit
Ensure the Player.svelte element only imports/executes in the browser
Run the project and observe that media does not load, ui doesn't appear, and there are no errors thrown

Environment:

Framework: Svelte
Meta Framework: SvelteKit
Node: 18.19.x
Device: Macbook Pro M1 2021, iPhone 13
OS: macOS Ventura 13.4.1
Browser: Firefox 121.01, Arc 1.27.3, Safari 16.5.2

Anything Else?
Here is a simple reproduction. I observed this in my own project initially. In some cases, depending on which 'vidstack/...' files are imported, the vite dev server will hang until exited.

Turns out it's the order of the plugins. The Vidstack plugin must come before the SvelteKit plugin. I'll update docs accordingly.
import { sveltekit } from '@sveltejs/kit/vite';
import { vite as vidstack } from 'vidstack/plugins';
import { defineConfig } from 'vite';

export default defineConfig({
  plugins: [vidstack({ include: /player\// }), sveltekit()]
});

Awesome 🎉 yep that seems to fix it.
In my own project, all scripts and style are now loading except for 'vidstack/player/styles/default/theme.css'. It's causing this error in the browser:
TypeError: error loading dynamically imported module: src/lib/components/player/Player.svelte

Looks like a separate problem though so I'll create another issue for that one.


Welcome Hacktoberfest Participants!

(Note that our build was broken for a while on October 20. If you had problems with the linter then, close your PR and re-open it.)
We're proud of the many developers who've gotten their first taste of open-source contribution through free-programming-books and Hacktoberfest.
HOWEVER! We get a LOT of submissions during Hacktoberfest, so our review process does not get as much friendly helping care as it does during other months. Please have patience! There are a number of things you can do to facilitate efficient review and acceptance.

READ the CONTRIBUTING.md guidelines, and familiarize yourself with the existing content in the repo.
Check the linter results. If your PR has a red x beside it in the list of PRs, it means you need to fix it. We prioritize the review of PRs with green ✓s. Usually this is spacing or sorting.
Make atomic changes. It's much easier for us to review a PR that changes just one listing or a section of listing than a PR that makes several disparate changes. DO start each PR with a fresh branch!
If you get feedback on your PR, add commits to the PR instead of starting a new one. Please respect the work that reviewers do!
During October, we have an extra low tolerance for spammy PR's, including AI generated PR's, and these will be labelled as spam and/or get you banned.
Help others! Once you get familiar with our guidelines, you can contribute by explaining our policies.
To prioritize review, make sure your PR has an informative title.
Please respect the time of the reviewers. Once a PR has been reviewed, make changes on the same PR, so subsequent reviews can see what has be changed.

You don't need permission to work on something. Just do it.
Suggestions for things to work on:

look at PRs and issues that have been automatically closed due to inactivity. Often the suggested changes are good but the submitter gave up for some reason. If you do pick up one of these, be sure to include the old PR or issue number in your new PR. It's polite, and it helps facilitate our review process.
There are still many books whose authors are not including in the listing. We like to give them credit!
Check links! this repo has been around long enough that resources have disappeared. Removing the dead links is just as important as adding new ones.
New areas and languages tend to be thin on resources about them. But we don't like single-resource categories. Look for already-listed resources in growing fields that might benefit from being grouped together.

Hello sir I want to contribute this project Please assign me task.

Hello sir I want to contribute this project Please assign me task.

Kindly read the above comment? They have explained everything you need to know.

@akshaybharwani okay no issue.

How to check my contribution is accepted or not?

Hello , i Aldo want to contribute.

Please be patient, there are more than 150 PRs being managed. But it won't help to add comments asking for review, as the PR's that have been waiting longest are at the top of the review queue. BUT if you have a red x next to your PR, it means that our linter bot has found a problem, and you should fix it! Similarly, if a conflict has developed, you should fix it.

Sure thanks @eshellman


arrayify-stream versions 2.0.0 & 2.0.1, break N3.js - npm run spec = rdf-test-suite

arrayify-stream versions 2.0.0 & 2.0.1 break N3.js - npm run spec =<EMAIL_ADDRESS>To reproduce issue :-
git clone https://github.com/rdfjs/N3.js.git
cd N3.js
npm install
npx browserslist@latest --update-db # optional
npm install --save-dev<EMAIL_ADDRESS>npm run spec

@rubensworks Sorry my fault was at the end of an 11 hour day. You could put a semver badge on your README.md ;)

@rubensworks It is meant to pass all the spec tests, which it does with<EMAIL_ADDRESS>Could you please document the breaking changes as I could not find anything in the projects tests only the TypeScript update.

<EMAIL_ADDRESS>aaron@LG:~/GitHub/N3.js.new/node_modules/arrayify-stream$ cat index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function promisifyEventEmitter(event, result) {
    return new Promise((resolve, reject) => {
        event.on('end', () => resolve(result));
        event.on('error', reject);
    });
}
function arrayifyStream(stream) {
    const array = [];
    return promisifyEventEmitter(stream.on('data', data => array.push(data)), array);
}
exports.default = arrayifyStream;
//# sourceMappingURL=index.js.map

<EMAIL_ADDRESS>aaron@LG:~/GitHub/N3.js.new/node_modules/arrayify-stream$ cat index.js
module.exports = function(stream) {
  return new Promise(function(resolve, reject) {
    var array = [];
    stream.on('data', function(data) {
      array.push(data);
    });
    stream.on('error', reject);
    stream.on('end', function() {
      resolve(array);
    });
  });
};

looks like its broken the normal JS bindings.

something weird going on I cannot reproduce<EMAIL_ADDRESS>I'll close this now as its got confusing and leave N3.js with the NPM<EMAIL_ADDRESS>I intend to move it to move N3 to typescript and esmodules anyway.

The original npm 1.0.0 seems to be from https://github.com/rubensworks/arrayify-stream.js/tree/greenkeeper/initial


Error when installing Microsoft.DotNet.Interactive.SqlServer, 1.0.0-beta.22553.7

Describe the bug
I have tried this on Windows 11 and MacOS Ventura and the results are similar. I am using a .Net Interactive notebook that i wrote several months ago. I wanted to update it. When I run the initial command of
#r "nuget:Microsoft.DotNet.Interactive.SqlServer,*-*"
It will fail with the below on MacOS
Error: System.TypeLoadException: Could not load type 'Microsoft.DotNet.Interactive.Commands.SendValue' from assembly 'Microsoft.DotNet.Interactive, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
   at System.Reflection.RuntimeAssembly.GetExportedTypes()
   at System.Reflection.Assembly.get_ExportedTypes()
   at Microsoft.DotNet.Interactive.Extensions.AssemblyBasedExtensionLoader.LoadFromAssembly(FileInfo assemblyFile, Kernel kernel, KernelInvocationContext context) in D:\a\_work\1\s\src\Microsoft.DotNet.Interactive\Extensions\AssemblyBasedExtensionLoader.cs:line 112
   at Microsoft.DotNet.Interactive.Extensions.AssemblyBasedExtensionLoader.LoadFromAssembliesInDirectory(DirectoryInfo directory, Kernel kernel, KernelInvocationContext context) in D:\a\_work\1\s\src\Microsoft.DotNet.Interactive\Extensions\AssemblyBasedExtensionLoader.cs:line 74
   at Microsoft.DotNet.Interactive.Extensions.AssemblyBasedExtensionLoader.LoadFromDirectoryAsync(DirectoryInfo directory, Kernel kernel, KernelInvocationContext context) in D:\a\_work\1\s\src\Microsoft.DotNet.Interactive\Extensions\AssemblyBasedExtensionLoader.cs:line 47
   at Microsoft.DotNet.Interactive.CompositeKernel.LoadExtensionsFromDirectoryAsync(DirectoryInfo directory, KernelInvocationContext context) in D:\a\_work\1\s\src\Microsoft.DotNet.Interactive\CompositeKernel.cs:line 308
   at Microsoft.DotNet.Interactive.CompositeKernel.LoadExtensions(KernelCommand command, KernelInvocationContext context, KernelPipelineContinuation next) in D:\a\_work\1\s\src\Microsoft.DotNet.Interactive\CompositeKernel.cs:line 148
   at Microsoft.DotNet.Interactive.KernelCommandPipeline.<>c__DisplayClass6_0.<<BuildPipeline>g__Combine|2>d.MoveNext() in D:\a\_work\1\s\src\Microsoft.DotNet.Interactive\KernelCommandPipeline.cs:line 72
--- End of stack trace from previous location ---
   at Microsoft.DotNet.Interactive.KernelCommandPipeline.SendAsync(KernelCommand command, KernelInvocationContext context) in D:\a\_work\1\s\src\Microsoft.DotNet.Interactive\KernelCommandPipeline.cs:line 44

On Windows 11, it will fail with the below
Error: C:\Users\chris.lumnah.perf\.packagemanagement\nuget\Projects\8988--91204698-c34b-4d2f-a863-51ea2ec99ae4\Project.fsproj : error NU1101: Unable to find package Microsoft.DotNet.Interactive.SqlServer. No packages exist with this id in source(s): C:\Program Files\dotnet\sdk\6.0.403\FSharp\library-packs
Please complete the following:
Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ):

OS

[x] Windows 11
[ ] Windows 10
[x] macOS
[ ] Linux (Please specify distro)
[ ] iOS
[ ] Android

Browser

[ ] Chrome
[ ] Edge
[ ] Firefox
[ ] Safari

Frontend

[x] Jupyter Notebook
[ ] Jupyter Lab
[ ] nteract
[x] Visual Studio Code
[ ] Visual Studio Code Insiders
[ ] Visual Studio
[x] Other (please specify) Azure Data Studio

Screenshots
If applicable, add screenshots to help explain your problem.

Did you clear your NuGet package cache at some point? This looks like a bug that @KevinRansom just fixed and if it is, you can work around it by deleting this folder:  C:\Users\chris.lumnah.perf.packagemanagement.

It looks like you don't have the main NuGet.org package source enabled.  Can you look at %appdata%\NuGet\NuGet.Config?  It should look something like this:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
  </packageSources>
</configuration>

I'm having the same problem. My NuGet.Config is set exactly as described.


Hello 👋

Thank you very much for building this workflow, This would be very helpful.
Can you please let me know how I can add more languages to this?
I am Interested to add Marathi and Hindi to this.
Regards,

Add the following two lines to config/itc.config:
  "Marathi (मराठी)": "mr-t-i0-und",
  "Hindi (हिंदी)": "hi-t-i0-und"


Incorrect default Tile when using bucket fill

Godot version: 3.1 beta 9

OS/device including version: Linux (probably any)

Issue description:
When using bucket fill with auto-tile, all tiles bordering with others are being filled with tile represented as an icon and not the one with highest priority.

Steps to reproduce:

Create an auto-tile with several tiles set up for for fully filled (2x2) tiles

Assign some priority values
Assign an icon (not the tile with highest priority)  to auto-tileset
Create a close empty area of tiles with another tile-type
Try to fill it with tileset created earlier.

Hi, can you share a picture of your bitmask?

@MarianoGnu hi, yes, there you go. hope it's ok.

your bitmask looks wrong, since you are missing many variations, when the Editor tryes to draw the edges it uses the default tile on the borders, i undestand this texture doesn't matches what you intend, but the bitmask should look something like this (and work for an upper-level ground)

Autotiles doesn't work wrong, they just dont matches your usecase, i can help you do what you intend to do, but meanwhile i'm closing this issue since there's no bug.


view: create a markdown file of the action views

Produce a markdown specification detailing the essential information to be understood during the signing of a penumbra transaction. This requires enumerating the protobuf fields, categorizing them into visible and opaque groups, and providing a brief explanation on why the omitted fields are safely and desirably excluded and why the visible fields should be public. This is important because the UI rendering and approval policies are linked.

noting that these only include actions currently used by prax. The other actions can be audited separately


Inoreader: do not request token

API docs don't mention that token. I assume it's just leftovers from copy-paste of The Old Reader code.
I tested this and it still marks articles as read just fine.
(This fulfils a promise I made in https://github.com/newsboat/newsboat/issues/949#issuecomment-633143294).
Reviews are welcome as always. Otherwise I'll merge in three days.

Coverage increased (+0.08%) to 56.416% when pulling a307e2b43c5fc5131e8a481b628eef852fd452a2 on feature/949-drop-token-from-inoreader into d16892fec7855340a24b147a71898a86db761aa4 on master.

Let's merge this, then. Thanks for the review!


Project-less mode

Allow Renderchan to work in situation when no "project.conf" file found. This mode will have a limited functionality (for example, as there are no project resolution defined, it will use native resolution of a file).
Introducing this mode will expand use cases, will make RenderChan friendly for new users, and simplify integration into other tools (I plan to integrate it into Synfig, for example).

I suggest to use following schema to define location of rendered files in project-less mode:
For given file path:
/path/to/some/file.blend
Rendering path will be:
/path/to/some/render/file.blend.png
For rendering format I suggest to use "png", as it is most commonly supported by all apps and provides support for transparency.

@scribblemaniac maybe you will be interested to implement this feature? ^__^

I agree that this is a good idea for improving user friendliness. Even I have to look up things each time I want to start a new project just to know how to write the project.conf file. Alternatively there could be a way to easily or automatically generate a default project.conf file.
When running RenderChan, it could accept arguments for the options in the conf file. If there's no conf file it could use those arguments or default values if not provided, and if there is a conf file those could be used as overrides.
Unfortunately I will not have very much time to dedicate to open-source projects over the next few months, and even if I did, I don't think this is the first thing I'd be want to work on for RenderChan.

Got it! In any case, thank you for taking your time to write your thoughts! ^__^


[SPARK-41869][CONNECT] Reject single string in dropDuplicates

What changes were proposed in this pull request?
This PR proposes to reject the single string column in dropDuplicates to match the behaviour with regular PySpark.
Why are the changes needed?
For feature parity.
Does this PR introduce any user-facing change?
No, it's has not been released yet.
How was this patch tested?
Reenable the skipped test.

cc @zhengruifeng

merged into master


Dart IJ plugin should be changed to support 4.x version of dart vm service api

We seem to unable to increment major version of vm service api (as requested on https://dart-review.googlesource.com/c/sdk/+/57520/6/runtime/observatory/tests/service/external_service_disappear_test.dart#b35) because it will break IJ Dart plugin: https://github.com/JetBrains/intellij-plugins/blob/master/Dart/thirdPartySrc/vmServiceDrivers/org/dartlang/vm/service/VmServiceBase.java#L149.
We need to fix IJ Dart plugin so it can accommodate such major version increment.
cc @rmacnak-google

@aam, thinking about this a bit more, it's difficult for clients to know if they're going to be forward compatible with a major rev of the service protocol.
Perhaps the resolution here could be that we don't plan to rev the major version now, and when we do rev., we'll coordinate with clients to:

call out how v. n+1 is breaking from v. n
say when the next version will be released
clients can then update to accept either n+1 or n, release new versions
we wait for uptake of those versions, then rev the protcol

As of https://github.com/dart-lang/sdk/commit/70eb6996419 we no longer have a hard version check in the Java clients.


Sign up flow improvements

Fixes: https://github.com/twosigma/beaker-notebook/issues/2197

works perfectly


Do not require blank line before "try" by default

all other defaults are "single line control statements"
try is very commonly used with some preparation code that is prefered to be not put inside try block, like:
$writer = new Writer();
try {
    $writer->write();
} catch (\Exception $e) {
    throw new \Exception('Write failed', 0, $e);
}

or
$isReadOnlyBackup = $this->isReadOnly;
try {
    $this->isReadOnly = true;
    $this->writeLog();
} finally {
    $this->isReadOnly = $isReadOnlyBackup;
}

because I belive there are a lot of real-world uses that make more sense without a blank line before try, I propose to change the default of blank_line_before_statement to not include try in default configuration
as this change relaxes the fixer, there should be no impact on already fixed code
also, I belive die, exit, goto should be included by default to include all "jumping single line statements", please advise, if welcomed

Hi and thanks for the suggestion,
The default configuration is almost always a matter of opinion and preference.
I think the default that was picked here is OK.
The try constructs are no different than for example if statements that may have the same type of preparation code that is prefered IMO.
Changing the default configuration of a fixer is also considered a BC break by us so it cannot be done on 2.15/2.16.
If we change it than users have to make more changes to their configuration when updating to new versions.
As such I'm not in favor of this change. I'll leave this PR open for a bit to gather more opinions though.

The try constructs are no different than for example if statements that may have the same type of preparation code that is prefered IMO.

@SpacePossum that is true and the issue - if normally does not require a blank space before (with @Symfony:risky nor @PhpCsFixer:risky), in examples:
$writer = new Writer();
if ($write->valid) {
    $writer->write();
} else {
    throw new \Exception('Write failed', 0, $e);
}

is more or less equvalent to:
$writer = new Writer();
try {
    $writer->write();
} catch (\Exception $e) {
    throw new \Exception('Write failed', 0, $e);
}

but the code with try currently requires blank space before try like:
$writer = new Writer();

try {
    $writer->write();
} catch (\Exception $e) {
    throw new \Exception('Write failed', 0, $e);
}

which makes the code much less readable and this PR fixes it

Out of BC reasons alone we cannot and will not change the default on 2.15.  The first option would be the 3.0 release.
Given that most users of this tool that agree with you will already have configured to their liking there is not much of a need to change the default. Also; having as little as possible of upgrade instructions between 2.x and 3.x is of value for us.
As such I do truly appreciate your suggestion for change and can see your side, however I think the current and planned configuration options give the users all the options needed and combined with our BC promise I think there is no need for change at the moment.


Missing type declaration files

Hi, I've added this to a React Typescript project and am getting the following error:
Could not find a declaration file for module 'tw-elements'. '/Users/microsoft/code/Azure-Kusto-WebUX/node_modules/tw-elements/dist/js/index.min.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/tw-elements` if it exists or add a new declaration (.d.ts) file containing `declare module 'tw-elements';`ts(7016)

Of course, @types/tw-elements doesn't exist. Is there a plan to create it?

+1

Any updates on when will this get rolled out?


Version 2

refactor functions into other smaller and manageable files. (On going) - @idinium96
#154 add item name matching on buy/sell, Add js-levenshtein library - @Bonfire
#134 add Full Backpack information, Update getBackpackSlots method - @Bonfire
#162 add confirmation to !delete command - @Bonfire
#142 centralize options parsing and add testing framework - @joekiller
make most env variables configurable through commands without the need to restart the bot. (Ongoing) - @joekiller / @idinium96
#165 add time taken to complete the trade in the trade summary. - @idinium96

hurm

lols xD

Also
https://github.com/idinium96/tf2autobot/blob/c076e785e0670c12976ee7dd9dba1f61515be97d/src/classes/Options.ts#L506
and 507 should be removed and deprecated

ok

moved to #171


Introductory Offers Not Returning For Subscriptions With StoreKit2

Please use the Discussion board if you want to get some help. Please use issues to report bugs.

Description
When using Ios Storekit1 for retrieving subscriptions, information on the associated introductory offers populates onto the properties

introductoryPriceAsAmountIOS
introductoryPricePaymentModeIOS
introductoryPriceNumberOfPeriodsIOS
introductoryPriceSubscriptionPeriodIOS

This however does not seem to be the case when using Storekit2 and the properties do not seem to be exposed on any other interface
Expected Behavior
If backwards compatibility is being maintained the properties should populate with the same information
Environment:

react-native-iap: 12.10.5
react-native: multiple versions
Platforms (iOS: simulator & device):

To Reproduce
Steps to reproduce the behavior:

Create new or modify existing app with IAP configured
Create subscriptions and associated introductory offers in app store connect
Confirm that when using storekit1 the offers return on the correct properties after calling getSubscriptions
Alter setup to use storekit2
No introductory information is returned

[Optional] Additional Context
After debugging it would appear that the issue seems to stem from the function subscriptionSk2Map as it is missing property mapping for the introductory properties.
Suggested change would be the following if it is to maintain backwards compatibility with SubscriptionIOS type
export const subscriptionSk2Map = ({
  id,
  description,
  displayName,
  price,
  displayPrice,
  subscription,
}: ProductSk2): SubscriptionIOS => {
  const prod: SubscriptionIOS = {
    platform: SubscriptionPlatform.ios,
    title: displayName,
    productId: String(id),
    description,
    type: 'subs',
    price: String(price),
    localizedPrice: displayPrice,
    currency: '', // Not available on new API, use localizedPrice instead
    subscriptionPeriodNumberIOS: `${subscription?.subscriptionPeriod?.value}`,
    subscriptionPeriodUnitIOS:
      subscription?.subscriptionPeriod?.unit.toUpperCase() as SubscriptionIosPeriod,
    introductoryPriceAsAmountIOS:
      subscription?.introductoryOffer?.displayPrice,
    introductoryPricePaymentModeIOS:
      subscription?.introductoryOffer?.paymentMode.toUpperCase() as SubscriptionPeriod,
    introductoryPriceNumberOfPeriodsIOS:
      subscription?.introductoryOffer?.period?.value,
    introductoryPriceSubscriptionPeriodIOS:
      subscription?.introductoryOffer?.period?.unit as SubscriptionIosPeriod,
  };
  return prod;
};

Im happy to create a PR for this but looking to confirm the intent in terms of structure if it is remaining backwards compatible or if it is to follow more closely with the new IOS structure

check this link:
https://usmanabid477.medium.com/in-app-purchase-integration-in-react-native-app-96c0acd13649

@usmanabid94
Sorry I think there might be a misunderstanding. The article linked only showed a basic setup of IAP.
The issue relates specifically to the introductory offers returning in the JS.
In store kit 1 this all returns correctly and is mapped to the JS correctly.
In store kit 2 the native object also gets the information but is never mapped to the JS.
All my proposed modification does is add the properties to the mapping function in line with the current typescript.
My main query here is one of clarification from the maintainers as the two IOS implementations for introductory offers have quite a significant interface difference.

same here.
where is subscriptionSk2Map ? how to fix it ?

subscriptionSk2Map

I ended up forking the repo and making a package override as i heard nothing from the maintainers on the issue.
If you clone the repo and search for subscriptionSk2Map you should find the function definition. Replace with what I pasted above and it should start working.
As a word of caution i forked from 12.10.5 and there seems to be a few more patches since then.

subscriptionSk2Map

I ended up forking the repo and making a package override as i heard nothing from the maintainers on the issue. If you clone the repo and search for subscriptionSk2Map you should find the function definition. Replace with what I pasted above and it should start working.
As a word of caution i forked from 12.10.5 and there seems to be a few more patches since then.

I tried to add this and check
It works on the debug mode, but when tried to push the app on TestFlight to test...
the free trial details doesn't show up on the pop up.
Any idea on this?
@Shaw-Signaturize @andresesfm

subscriptionSk2Map

I ended up forking the repo and making a package override as i heard nothing from the maintainers on the issue. If you clone the repo and search for subscriptionSk2Map you should find the function definition. Replace with what I pasted above and it should start working.
As a word of caution i forked from 12.10.5 and there seems to be a few more patches since then.

I tried to add this and check It works on the debug mode, but when tried to push the app on TestFlight to test... the free trial details doesn't show up on the pop up.
Any idea on this? @Shaw-Signaturize @andresesfm

I had a similar issue as our build process runs the npm install and pod install before bundling to testflight. My best guess would be to check your node_modules and check that the version being used is your custom version and it hasnt pulled the one off the public npm.
I think as this problem seems to be hitting a few people I will try and get the change bundled into a PR and get feedback that way

@Shaw-Signaturize Sure, that would really help
Since it's the most high priority use case that anyone would want to get it implemented and working.
Looking forward to your PR

@Shaw-Signaturize Sure, that would really help Since it's the most high priority use case that anyone would want to get it implemented and working.
Looking forward to your PR

Cool ill see if i can get to it early next week

@Shaw-Signaturize Were you able to create PR for this ?

@Shaw-Signaturize  any update on this ?
Looking forward to this PR

@Shaw-Signaturize thanks for this PR
Also I have one more question....
I submitted my first version of app... was able to see the introductory offer with trial periods as configured properly, now when i'm trying to submit the next version of app with some loaded features... but with this new version, I'm not able to see the free trial details in payment sheet.
Any possible issues you can think of ?


RuntimeError: invalid argument 5: k not in range for dimension

Hi,
Thank you for sharing your work.
I ran into an issue running train_M.sh on the supplied  generated 3D data of the Market-1501 dataset

Number of training parameters: 2.34 M
Epoch #0 Validating
/ichec/home/users/niallomahony/.conda/envs/tfgpu/lib/python3.6/site-packages/numpy/core/fromnumeric.py:3335: RuntimeWarning: Mean of empty slice.
out=out, **kwargs)
/ichec/home/users/niallomahony/.conda/envs/tfgpu/lib/python3.6/site-packages/numpy/core/_methods.py:154: RuntimeWarning: invalid value encountered in true_divide
ret, rcount, out=ret, casting='unsafe', subok=False)
/ichec/home/users/niallomahony/.conda/envs/tfgpu/lib/python3.6/site-packages/numpy/core/fromnumeric.py:3335: RuntimeWarning: Mean of empty slice.
out=out, **kwargs)
/ichec/home/users/niallomahony/.conda/envs/tfgpu/lib/python3.6/site-packages/numpy/core/_methods.py:154: RuntimeWarning: invalid value encountered in true_divide
ret, rcount, out=ret, casting='unsafe', subok=False)

0%|          | 0/1617 [00:00<?, ?it/s]
Traceback (most recent call last):
File "train_M.py", line 298, in
train(model, optimizer, scheduler, train_loader, dev, epoch)
File "train_M.py", line 129, in train
logits = model(xyz.detach(), rgb.detach(), istrain=True)
File "/ichec/home/users/niallomahony/.conda/envs/tfgpu/lib/python3.6/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/ichec/home/users/niallomahony/.conda/envs/tfgpu/lib/python3.6/site-packages/torch/nn/parallel/data_parallel.py", line 150, in forward
return self.module(*inputs[0], **kwargs[0])
File "/ichec/home/users/niallomahony/.conda/envs/tfgpu/lib/python3.6/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/ichec/work/iecom001b/person-reid-3d/model.py", line 171, in forward
g = self.nng(xyz, istrain=istrain and self.graph_jitter)
File "/ichec/home/users/niallomahony/.conda/envs/tfgpu/lib/python3.6/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/ichec/work/iecom001b/person-reid-3d/KNNGraphE.py", line 102, in forward
return knn_graphE(x, self.k, istrain)
File "/ichec/work/iecom001b/person-reid-3d/KNNGraphE.py", line 51, in knn_graphE
k_indices = F.argtopk(dist, k, 2, descending=False)
File "/ichec/home/users/niallomahony/.conda/envs/tfgpu/lib/python3.6/site-packages/dgl/backend/pytorch/tensor.py", line 132, in argtopk
return th.topk(input, k, dim, largest=descending)[1]
RuntimeError: invalid argument 5: k not in range for dimension at /opt/conda/conda-bld/pytorch_1579027003190/work/aten/src/THC/generic/THCTensorTopK.cu:23<
I followed all the installation steps but had to use cuda 10.0 (and cudatoolkit 10.0 and dgl-cu100 as that is what is available on the hpc.

Hi @niallomahony93
The error appears in the KNNGraph Building.
There are three things that needs to be checked:

Use one small k value. For example, k=9.   add --k 9
Print the input shape. Is the input right? You may add some print function in KNNGraphE.py to check it.
Check the pytorch version and some libraries. When you install them, is there any warning or error?

Thanks @layumi
The issue was due to an old version of open3d (0.6) which was not loading any of the points from the .obj files. I upgraded to open3d 0.9 and training started successfully.


Created common type v4 where changed string to uuid

What has been changed:

Update the subscription parameter to use format “uuid”
Update the Id property to use format “arm-id”
Update the Tenant property to use format “uuid”
Update the PrincipalId property use format “uuid”

MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Changelog
Add a changelog entry for this PR by answering the following questions:

What's the purpose of the update?

[ ] new service onboarding
[ ] new API version
[ ] update existing version for new feature
[ ] update existing version to fix swagger quality issue in s360
[x] Other, please clarify

When are you targeting to deploy the new service/feature to public regions? Please provide the date or, if the date is not yet available, the month.
When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month.
If updating an existing version, please select the specific language SDKs and CLIs that must be refreshed after the swagger is published.

[x] SDK of .NET (need service team to ensure code readiness)
[x] SDK of Python
[x] SDK of Java
[x] SDK of Js
[x] SDK of Go
[x] PowerShell
[x] CLI
[x] Terraform
[ ] No refresh required for updates in this PR

Contribution checklist:

[ ] I commit to follow the Breaking Change Policy of "no breaking changes"
[ ] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and errors have all been fixed in this PR. How to fix?

If any further question about AME onboarding or validation tools, please view the FAQ.
ARM API Review Checklist

Applicability: :warning:
If your changes encompass only the following scenarios, you should SKIP this section, as these scenarios do not require ARM review.

Change to data plane APIs
Adding new properties
All removals

Otherwise your PR may be subject to ARM review requirements. Complete the following:

[ ] Check this box if any of the following appy to the PR so that the label "ARMReview" and "WaitForARMFeedback" will be added by bot to kick off ARM API Review.  Missing to check this box in the following scenario may result in delays to the ARM manifest review and deployment.

Adding a new service
Adding new API(s)
Adding a new API version
-[ ] To review changes efficiently, ensure you are using OpenAPIHub to initialize the PR for adding a new version. More details, refer to the wiki.

[ ] Ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

[ ] If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist
If any of the following scenarios apply to the PR, request approval from the Breaking Change Review Board as defined in the Breaking Change Policy.

[ ] Removing API(s) in a stable version
[ ] Removing properties in a stable version
[ ] Removing API version(s) in a stable version
[ ] Updating API in a stable or public preview version with Breaking Change Validation errors
[ ] Updating API(s) in public preview over 1 year (refer to Retirement of Previews)

Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.
Please follow the link to find more details on PR review process.

/azp run

hi @raych1 and @jianyexi,
Since @JeffreyRichter and @m-nash don't have objections, can you please re-review the PR? Thanks!!

@jianyexi, @raych1, @akning-ms ping, please

Could you update the v3 reference to v4 in the other swaggers under https://github.com/Azure/azure-rest-api-specs/tree/0f31358af120f2f43a67e904f11df553fe51d0a7/specification/common-types/resource-management/v4

@jianyexi sorry, can you please clarify what should I do?

@abatishchev  I mean the reference should be replaced with v4/types.json https://github.com/Azure/azure-rest-api-specs/blob/0f31358af120f2f43a67e904f11df553fe51d0a7/specification/common-types/resource-management/v4/privatelinks.json#L122

@jianyexi ah, got it. Done!

@jianyexi ping on this PR, please.

@jianyexi ping on this PR, please.

@akning-ms please re-review.


Use URL in many cases where we used AbsolutePath

We made quite a few fixes recently to make sure that path handling works correctly using URL on Windows. Use URL in most places to have a single type that represents file paths instead of sometimes using AbsolutePath.
While doing so, also remove usages of TSCBasic.FileSystem an InMemoryFileSystem. The pattern of using InMemoryFileSystem for tests was never consistently used and it was a little confusing that some types took a FileSystem parameter while other always assumed to work on the local file system.

@swift-ci Please test

@swift-ci Please test Windows


MAC OS Sierra: com.github.facebook.watchman.plist for write

Description
I am not able to create a sample project in my MAC OS Sierra please help me.
All I just follow the react-native documentation but it's look like the .plist file is not created and I don't know why I have folder /Users/anilyadav/Library/LaunchAgents on same path but didn't get the com.github.facebook.watchman.plist because the file is not there.
Error on npm start
><EMAIL_ADDRESS>start /Users/anilyadav/AwesomeProject
> node node_modules/react-native/local-cli/cli.js start

(node:2437) DeprecationWarning: Using Buffer without `new` will soon stop working. Use `new Buffer()`, or preferably `Buffer.from()`, `Buffer.allocUnsafe()` or `Buffer.alloc()` instead.
Scanning 711 folders for symlinks in /Users/anilyadav/AwesomeProject/node_modules (339ms)
 ┌────────────────────────────────────────────────────────────────────────────┐
 │  Running packager on port 8081.                                            │
 │                                                                            │
 │  Keep this packager running while developing on any JS projects. Feel      │
 │  free to close this tab and run your own packager instance if you          │
 │  prefer.                                                                   │
 │                                                                            │
 │  https://github.com/facebook/react-native                                  │
 │                                                                            │
 └────────────────────────────────────────────────────────────────────────────┘
Looking for JS files in
   /Users/anilyadav/AwesomeProject

[Hot Module Replacement] Server listening on /hot

React packager ready.

2016-12-05T23:36:00,866: [cli] Failed to open /Users/anilyadav/Library/LaunchAgents/com.github.facebook.watchman.plist for write: Not a directory

2016-12-05T23:36:00,866: [cli] Failed to open /Users/anilyadav/Library/LaunchAgents/com.github.facebook.watchman.plist for write: Not a directory

Watchman:  watchman--no-pretty get-sockname returned with exit code null 2016-12-05T23:36:00,866: [cli] Failed to open /Users/anilyadav/Library/LaunchAgents/com.github.facebook.watchman.plist for write: Not a directory

 ERROR  watchman--no-pretty get-sockname returned with exit code null 2016-12-05T23:36:00,866: [cli] Failed to open /Users/anilyadav/Library/LaunchAgents/com.github.facebook.watchman.plist for write: Not a directory

Error: watchman--no-pretty get-sockname returned with exit code null 2016-12-05T23:36:00,866: [cli] Failed to open /Users/anilyadav/Library/LaunchAgents/com.github.facebook.watchman.plist for write: Not a directory

    at ChildProcess.<anonymous> (/Users/anilyadav/AwesomeProject/node_modules/fb-watchman/index.js:198:18)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:885:16)
    at Socket.<anonymous> (internal/child_process.js:334:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at Pipe._handle.close [as _onclose] (net.js:501:12)

See http://facebook.github.io/react-native/docs/troubleshooting.html
for common problems and solutions.

npm ERR! Darwin 16.1.0
npm ERR! argv "/usr/local/Cellar/node/7.2.0/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v7.2.0
npm ERR! npm  v3.10.9
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>start: `node node_modules/react-native/local-cli/cli.js start`
npm ERR! Exit status 11
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script 'node node_modules/react-native/local-cli/cli.js start'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the AwesomeProject package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node node_modules/react-native/local-cli/cli.js start
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs AwesomeProject
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls AwesomeProject
npm ERR! There is likely additional logging output above.
npm ERR! Darwin 16.1.0
npm ERR! argv "/usr/local/Cellar/node/7.2.0/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v7.2.0
npm ERR! npm  v3.10.9
npm ERR! path npm-debug.log.2423895624
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall open

npm ERR! Error: EACCES: permission denied, open 'npm-debug.log.2423895624'
npm ERR!  { Error: EACCES: permission denied, open 'npm-debug.log.2423895624'
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'open',
npm ERR!   path: 'npm-debug.log.2423895624' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/anilyadav/AwesomeProject/npm-debug.log

Additional Information

React Native version: [latest --HEAD]
Platform: [ iOS]
Operating System: [ MacOS]

install watchman。
install the latest build from github:
brew install --HEAD watchman

Thanks but the problem was different after debugging i found that *mysql.plist file is pointing to  LaunchAgents folder so I remove the linking between  *mysql.plist file and  LaunchAgents folder and move the *mysql.plist LaunchAgents and errors are goes away.

Where was this file? I am having this same issue with just creating a project with react-native init Project followed by react-native run-ios


doc: update develop.md

Fixing https://github.com/apache/apisix-ingress-controller/issues/30.

Codecov Report

Merging #129 (83c16d6) into master (38d98a7) will increase coverage by 0.56%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #129      +/-   ##
==========================================
+ Coverage   61.22%   61.79%   +0.56%
==========================================
  Files          16       16
  Lines         539      547       +8
==========================================
+ Hits          330      338       +8
  Misses        185      185
  Partials       24       24

Impacted Files
Coverage Δ

pkg/api/server.go
74.07% <0.00%> (+10.91%)
:arrow_up:

Continue to review full report at Codecov.

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

@membphis Please take a look when you have time.


Fix IAM policy to also work for role without a region in its name

Fixed

Fix IAM policy to also work for role without a region in its name

Does it actually help to leave the aws-region in there?

Now that you mention it, the * would probably get the new role name pattern to still match role names that do include the region. However, I'm going to leave both role name patterns in place for now, because I want to be sure I avoid any breaking changes.


establishment

Hi,
I habe MQTT server installed on Synology NAS and work fine.
I have the oublishing phpMQTT.php Script an work fine to.
But the subscrib script give error:
Fatal error: Maximum execution time of 60 seconds exceeded in C:\Inetpub\vhosts\user.com\httpdocs\phpMQTT.php on line 309
Can you help me set up correctly?
Thank you in advance
David

I am restarting this project so having a clear out of old issues (If you believe this is still valid please reopen)

Canned Response: Subscribe is not designed for web requests, it should be used in a long running process.
I do plan to add a subscribeAndWaitForMessage() function #95


/ not escaped

Swagger2Markup version: 1.3.1
Problem description:
I am unable to re-open this issue #28, so I'm creating a new one here.
The fix for #28 is not enough for / to be rendered correctly in HTML or PDF using AsciiDoc. If you try this in AsciiDocLive, you'll see that you need to add an escape character before the starting * symbol for it to render correctly.
*/*

Hi,
does a MediaType */* really makes sense for an API?

An interesting philosophical question. Not sure that I'm qualified to answer it, but the wildcard media type is included in the JAX-RS spec, so we're bound to come across when documenting RESTful APIs:
http://docs.oracle.com/javaee/7/api/javax/ws/rs/core/MediaType.html#WILDCARD

Is your Swagger Spec handcrafted or generated from code?

Generated from code

Anyway it's a bug in Swagger2Markup, I'm just asking so that you have a workaround ;)

A new SNAPSHOT version should be available now: 1.3.2-SNAPSHOT. Do you use Maven/Gradle or CLI?
Can you try the new SNAPSHOT version and tell me if it works for you?

Many thanks. That works.
I use Maven in some projects and Gradle in others.
I wasn't sure how to get your snapshot, so I built from the swagger2markup source and installed it in my local Maven repo using the publishToMavenLocal Gradle task.
I'll have to wait for a full release before I can consume it in my project. Any idea when the next release will be?

How to get SNAPSHOTS is described in the user guide: http://swagger2markup.github.io/swagger2markup/1.3.1/#_snapshot

@RobWin This is fixed now, right? Should the issue be closed?

Don't remember 😐 Does it work? 😀

I was waiting for the 1.3.2 release of the Gradle plugin.

I had some problems with bintray while releasing. You can already use the new S2M 1.3.2 with the last gradle plugin. You can just overwrite the transitive dependency.

See buildscript section in https://github.com/Swagger2Markup/swagger2markup-gradle-project-template/blob/master/build.gradle

Great. That works. So this can be closed. Thanks

Awesome. Thx


Improve logic and config for tile configuration loading

The current solution:
if wdglance.json's "tiles" entry contains (a) a string, then it is considered a filesystem path with a JSON file. In case it is (b) an object we expect it to contain the tiles right away. In case it is (c) missing completely and there is a server.json's "tileDb" defined we load it from CouchDB.
The new solution:
a) the same as before
b) if the object is TileDbConf (test this via user defined type guards) then load just like in case of the old (c), otherwise assume it is an "inline" tile config
c) removed

Of course, the type for ClientStaticConf.tiles will be LanguageAnyTileConf|string|TileDbConf which is going to introduce some additional complications.
We should probably also define a type alias for this, something like
type MultiSourceTyleConf = LanguageAnyTileConf|string|TileDbConf and use it instead so we are able to refactor/extend this in the future.

It should be OK but please make sure no password goes into the client-side configuration variables.
The "written/static" configuration is in ClientStaticConf (where the password may occur) and it is transformed to the ClientConf which has already the tile config expanded to actual values but it is better to check this twice.


added Dockerfile

Should we use this instead of the existing Dockerfile?

I did not see that there was already one in the master. Disregard, it's pretty much the same.

ok cool, thx!

Reopening this as there seem to be issues with the current Dockerfile.


Windows 11 AMD64 cannot install with errors.

Description
Hi I'm running a Intel Core i7 13700KF on Windows 11, Python 3.11.
I'm trying to install PyCoral per the instructions here:
https://coral.ai/docs/m2/get-started/#pycoral-on-win
The issue I'm running into is that running this command gets an error,.
python3 -m pip install --extra-index-url https://google-coral.github.io/py-repo/ pycoral~=2.0
ERROR: Could not find a version that satisfies the requirement pycoral~=2.0 (from versions: 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9, 0.1.0)
ERROR: No matching distribution found for pycoral~=2.0

Looking online I see someone with a M1 Mac had this issue last year and one of the recommendation was to install form the wheel files so I downloaded the latest version:
pycoral-2.0.0-cp39-cp39-win_amd64.whl
But running
 python3 -m pip install pycoral-2.0.0-cp39-cp39-win_amd64.whl
results in:
ERROR: pycoral-2.0.0-cp39-cp39-win_amd64.whl is not a supported wheel on this platform.
Odd, because I'm on a windows with ARM64 platform:
C:\>echo %PROCESSOR_ARCHITECTURE%
AMD64

Is this because of Python 3.11? Or I'm still missing something else?
Click to expand!
Issue Type
Build/Install
Operating System
Windows 10
Coral Device
M.2 Accelerator B+M
Other Devices
No response
Programming Language
Other
Relevant Log Output
No response

Is this because of Python 3.11? Or I'm still missing something else?

yes, the issue is with python 3.11. Please try with python3.9..

Well I tried to install with WSL but now my computer wouldn't boot into windows.
I'll try removing WSL in safemode and see if that helps tonight.
It just spins forever right after bios.

Recovered my windows install. But whenever I try to install Coral's drivers it'll cause the system to not boot up regardless of which Python version I try to use.
I will try moving it to a different M.2 Slot next time. Which may take a while as I'm planning to travel for a while.

Is this because of Python 3.11? Or I'm still missing something else?

yes, the issue is with python 3.11. Please try with python3.9..

What is different with Python 3.11 vs Python 3.9?

Same issue with Python 3.9.2. Windows wouldn't let me install the drivers. As soon the drivers are installed, Windows refuses to boot. Only restoring to a prior restore point allows me to boot.


fix(ios): preserve logs after device.resetContentAndSettings()

Description
Fixes --record-logs ... artifact issue after calling device.resetContentAndSettings().
Regression caused by #4173.

✅  The fix is available in<EMAIL_ADDRESS>


Icon ldentification?

Hi,
I cannot seems to find a list of all icons used in Visual Studio and what they mean, especially for the solution explorer. Does this exist, if not then why not?
Thanks,
Charlie

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

ID: c1f9dc4a-d8a6-6642-635c-6c6204467b3e
Version Independent ID: 05f0ffc9-109a-43bc-d9f3-55d14242db33
Content: Learn about Solution Explorer - Visual Studio (Windows)
Content Source: docs/ide/use-solution-explorer.md
Service: visual-studio-windows
Sub-service: general-ide
GitHub Login: @anandmeg
Microsoft Alias: meghaanand

@crhammon
If you hover over an icon that's a button, you see a tooltip which tells you what the button does.
The only icon reference I can think of is this one:
https://learn.microsoft.com/en-us/visualstudio/extensibility/ux-guidelines/visual-language-dictionary-for-visual-studio?view=vs-2022

Thanks for that. It really seems like that should solve my problem, but it doesn't! Here is a screenshot. I am now inferring that the box with the ++ means a project with C++ code and that just a ++ means cpp code, but I can't find that anywhere in the dictionary your provided. I am just a beginner trying to sort out what everything means in Visual Studio.


Unit tests fail in dependencies environment

The unit tests fail when run in the updated specifications in the dependencies branch. They also fail in my local environment I was running previously. Given that the dependencies fail to install following the instructions (in particular pandas won't install), it is not possible to test whether these tests are failing because of the environment or whether they were failing anyway.
================================================================ short test summary info ================================================================ FAILED tests/test_attacks.py::TestAttacks::test_mia_logreg - ValueError: at least one array or dtype is required FAILED tests/test_attacks.py::TestAttacks::test_mia_randforest - ValueError: at least one array or dtype is required FAILED tests/test_attacks.py::TestAttacks::test_mia_svc - ValueError: at least one array or dtype is required FAILED tests/test_gms.py::TestGenerativeModel::test_bayesian_net - AssertionError: BayesianNet requires at least 2 attributes(i.e., columns) in dataset. FAILED tests/test_gms.py::TestGenerativeModel::test_ctgan - ValueError: Invalid columns found: {'Job', 'Sex', 'Purpose', 'Risk', 'Saving accounts', 'C... FAILED tests/test_gms.py::TestGenerativeModel::test_independent_histogram - KeyError: 'Age' FAILED tests/test_gms.py::TestGenerativeModel::test_priv_bayes - AssertionError: BayesianNet requires at least 2 attributes(i.e., columns) in dataset. FAILED tests/test_sanitisation.py::TestSanitisation::test_sanitise_nhs - ValueError: at least one array or dtype is required ============================================================ 8 failed, 80 warnings in 6.85s =============================================================

There is at least one significant change between pandas 0.25.3 and pandas 1.4.1 that causes the method MIAttackClassifier.attack to fail when test_linkage=True. This can't be the source of all the failed unit tests, but could be the source of the attack ones failing.

This had nothing to do with pandas and was entirely because I did not havegit-lfs. I have replaced the germancredit_test dataset with texas in the unit tests.


Completion, Validation, Transformation as Interfaces

Summary of the new feature/enhancement
I have in multiple situations wished for a way to create an attribute that was able to provide validation and completion, or validation and transformation, so that an attribute is able to provide more than one functionality in conjunction, and prevent me from needing to define a set of 2-3 attributes every time I define a specific parameter.
Because argument completion, argument validation, and argument transformation are currently provided by three separate base attributes that must be derived to acquire any functionality, the following statements are true:

We cannot define a "standard" completion for a specific parameter type.
We cannot require any two attributes to be provided in conjunction with another.
We cannot derive from an existing attribute to provide PowerShell validation functionality (such as an existing validation attribute derived from System.ComponentModel.DataAnnotations.ValidationAttribute).

Proposed technical implementation details (optional)
I propose that the current validation, transformation, and completion attributes are functionally replaced with interfaces, where the existing attributes are modified to be a base implementation of the interfaces. This would allow an attribute to perform completion and validation, or transformation and then validation, etc..
Ideally, these interfaces would provide additional details for the implementation. This is what I have envisioned:
namespace System.Management.Automation {

    /// <summary>
    /// Defines methods used for validating an argument passed to a parameter, variable, or property.
    /// If this is implemented by a type that also implements <see cref="IArgumentTransformation"/>,
    /// transformation will be invoked before validation.
    /// <para>
    /// Note that the System.ComponentModel.DataAnnotations.ValidationAttribute and derived classes
    /// may also be used for argument validation without inheriting this method. If this interface
    /// is implemented by a class derived from the ValidationAttribute, both validation methods will
    /// be invoked, beginning with <see cref="ValidateArgument"/>.
    /// </para>
    /// </summary>
    internal interface IArgumentValidation
    {
        /// <summary>
        /// <see langword="true"/> indicates that each parameter, if enumerable, should be provided separately
        /// to <see cref="ValidateArgument"/>. <see langword="false"/> indicates that the entire value provided
        /// to the parameter should be passed to <see cref="ValidateArgument"/> as a single object.
        /// </summary>
        bool ProcessEnumeratedArgumentsSeparately { get; }
        /// <summary>
        /// Performs validation on an argument. This method should throw an exception
        /// when an input value is invalid for the given parameter.
        /// <para><paramref name="command"/> and <paramref name="parameter"/> may be null
        /// if this validation is not being invoked during parameter binding.</para>
        /// </summary>
        /// <param name="argument">The argument provided to the instance being monitored.</param>
        /// <param name="engineIntrinsics"><inheritdoc cref="EngineIntrinsics" path="/summary"/></param>
        void ValidateArgument(object argument,
            EngineIntrinsics engineIntrinsics,
            CommandAst? command,
            ParameterAst? parameter
            );
    }
    /// <summary>
    /// Defines methods used for transforming an argument from one type to another.
    /// If this is implemented by a type that also implements <see cref="IArgumentValidation"/>,
    /// this contract's implementation will be invoked first on any arguments before
    /// they are validated.
    /// </summary>
    internal interface IArgumentTransformation
    {
        /// <inheritdoc cref="IArgumentValidation.ProcessEnumeratedArgumentsSeparately"/>
        bool ProcessEnumeratedArgumentsSeparately { get; }
        /// <summary>
        /// Provides transformation on an argument. This method should return a value
        /// that can be assigned to the parameter - such as an instance of the type
        /// defined by <see cref="ParameterAst.StaticType"/>.
        /// <para><paramref name="command"/> and <paramref name="parameter"/> may be null
        /// if this transformation is not being invoked during parameter binding.</para>
        /// </summary>
        /// <param name="argument">The argument provided to the instance being monitored.</param>
        /// <param name="parameter">The type required by the parameter.</param>
        /// <param name="engineIntrinsics"><inheritdoc cref="EngineIntrinsics" path="/summary"/></param>
        /// <returns></returns>
        object TransformArgument(object argument,
            EngineIntrinsics engineIntrinsics,
            CommandAst? command,
            ParameterAst? parameter);
    }
    /// <summary>
    /// Defines methods used for offering argument completion, such as when a user types in
    /// a partial parameter value and presses the "Tab", "Ctrl + ," or other key binding
    /// to complete an argument for a given parameter.
    /// <para>
    /// </summary>
    internal interface IArgumentCompletion
    {
        uint? MinimumCachedCompletionCount { get; }
        /// <summary>
        /// Offers argument completion suggestions. This method should not throw any exception
        /// (exceptions will be ignored). Values are only requested when argument completion is
        /// requested. The first returned value will be suggested immediatly; as many as
        /// <see cref="MinimumCachedCompletionCount"/> values will be cached asynchronously so
        /// that the next completion requested is ready, without loading all completions before
        /// any values are suggested.
        /// </summary>
        /// <param name="argument">The value defined when completion was requested.</param>
        /// <param name="engineIntrinsics"><inheritdoc cref="EngineIntrinsics" path="/summary"/></param>
        /// <param name="commandName">The name of the command for which completion was requested.</param>
        /// <param name="parameterName">The name of the parameter for which completion was requested.</param>
        /// <param name="commandAst"><inheritdoc cref="CommandAst" path="/summary"/></param>
        /// <param name="fakeBoundParameters">Current values bound to the command.</param>
        /// <returns></returns>
        IEnumerable<CompletionResult> CompleteArgument(
            string? argument,
            string commandName,
            string parameterName,
            CommandAst commandAst,
            IDictionary<string, object?> fakeBoundParameters,
            EngineIntrinsics engineIntrinsics);
    }
}

At run time, instead of looking for if typeof(ValidateArgumentsAttribute).IsAssignableFrom(type) a check could be made for if typeof(IArgumentValidation).IsAssignableFrom(type). All transformations would occur before any validations.
This would allow any attribute to provide multiple of these functionalities. The following example could simultaneously provide transformation, validation, and completion for a parameter that requires an IPv4 instance of System.Net.IPAddress.
public class IPv4Attribute : Attribute, IArgumentTransformation, IArgumentValidation, IArgumentCompletion
{
    public bool ProcessEnumeratedArgumentsSeparately => true;
    public IPAddress? InitialCompletionIfNull { get; }
    public IPv4Attribute() {}
    public IPv4Attribute(string initialCompletionIfNull)
    {
      if (IPAddress.TryParse(initialCompletionIfNull, out var ip) && ip.AddressFamily == AddressFamily.InterNetwork)
      {
        InitialCompletionIfNull = ip;
      }
      else
      {
         throw new ArgumentException("The IP address was invalid or not an IPv4 address.", nameof(initialCompletionIfNull));
      }
    }

    public IEnumerable<CompletionResult> CompleteArgument(string wordToComplete, string commandName, string parameterName, EngineIntrinsics engineIntrinsics, CommandAst commandAst, IDictionary<string, object?> fakeBoundParameters)
    {
        IPAddress ip = IPAddressHelper.ParsePartialAddress(new WildcardPattern(wordToComplete + "*", startingAddress: InitialCompletionIfNull), AddressFamily.InterNetwork);
        IEnumerable<CompletionResult> results = IPAddressHelper.OfferNext(ip, 100, AddressFamily.InterNetwork);
        return results;
    }

    public object TransformArgument(object argument, Type parameterType, EngineIntrinsics engineIntrinsics)
    {
        IPAddress ip;
        if (argument is IPAddress)
        {
            ip = (IPAddress)argument;
            try
            {
                return ToType(ip.MapToIPv4(), parameterType);
            }
            catch
            {
                return ToType(argument, parameterType);
            }
        }
        else if (LanguagePrimitives.TryConvertTo<long>(argument, out var ipLong))
        {
            var octets = new byte[4];
            octets[0] = (byte)Math.Truncate((double)ipLong / 16777216);
            octets[1] = (byte)Math.Truncate((double)ipLong % 16777216 / 65536);
            octets[2] = (byte)Math.Truncate((double)ipLong % 65536 / 256);
            octets[3] = (byte)Math.Truncate((double)ipLong % 256);
            return ToType(new IPAddress(octets), parameterType);
        }
        else if (IPAddress.TryParse(argument.ToString(), out ip))
        {
            try
            {
                return ToType(ip.MapToIPv4(), parameterType);
            }
            catch
            {
                return ToType(ip, parameterType);
            }
        }
        else if (LanguagePrimitives.TryConvertTo(argument, out ip))
        {
            return ToType(ip, parameterType);
        }
        else
        {
            return argument;
        }
    }
    /// <summary>
    /// May convert an instance to <paramref name="resultType"/>.
    /// </summary>
    /// <param name="argument"></param>
    /// <param name="resultType"></param>
    /// <returns></returns>
    private object ToType(object argument, Type resultType)
    {
        if (LanguagePrimitives.TryConvertTo(argument, resultType, out var result)) {
            return result;
        }
        else
        {
            return argument;
        }
    }

    public void ValidateArgument(object argument, EngineIntrinsics engineIntrinsics)
    {
        IPAddress ip;
        if (argument is IPAddress isIp)
        {
            ip = isIp;
        }
        else if (IPAddress.TryParse(argument.ToString(), out var parsedIp))
        {
            ip = parsedIp;
        }
        else
        {
            throw new ValidationMetadataException($"The value {argument} is not an IP address.");
        }
        if (ip.AddressFamily != System.Net.Sockets.AddressFamily.InterNetwork)
        {
            throw new ValidationMetadataException($"The value {ip} is not an IPv4 address (the address family is {ip.AddressFamily}).");
        }
    }
}

We discussed this in the Engine Working Group, and we don't see any reason against the proposed API and that it's a proposal in the right direction.
We think more discussion should be had in this issue around:

The demand for such an API (is it worth the complexity or the maintenance burden?)
Whether the shape of the API is right (does it fit all use cases we imagine? how easy is it to use incorrectly? are there possibly simpler alternatives? could we envisage making a breaking change in this?) (in particular the use of interfaces on attributes is less conventional in C# and it might be worth exploring or suggesting an alternate implementation)

Essentially this is a fairly large proposed API and we need to stress test the proposal somewhat, in the form of things like counter proposals, exploration of invalid configurations or implementations, a look at performance implications, etc.
Once some discussion is had here, we can then discuss a prototype, RFC, and/or PR.


Need help testing the lib on multiple platforms.

I have released fastapi-tailwind on pypi with wheels for each platform and CPU arch just like tailwind releases it's binaries.
Now I need some people to do me a big favour and test the library on their platform.
Here's the list of platforms that need to be tested:

[ ] Windows

[x] x86_64 (aka x64, amd64)
[ ] arm64

[ ] Linux

[x] x86_64
[x] arm64 (aka aarch64) (all I know is that the install works, lmao)
[ ] armv7 (aka armv7l)

[ ] MacOS

[ ] x86_64
[ ] arm64

How to test?

Install the lib from pypi with pip:

pip install fastapi-tailwind

If that is successful, you have two options:

Use the instructions in the readme to quickly write up a FastAPI program: https://github.com/THEGOLDENPRO/fastapi-tailwind?tab=readme-ov-file#how-to-add

or

Clone the repo then run the ready made examples (this might take a long while as it will also pull the binaries)

git clone https://github.com/THEGOLDENPRO/fastapi-tailwind
cd fastapi-tailwind

cd examples/hello-world-app
fastapi dev

If this all runs that means it's all working so let me know.

@r3tr0ananas windows works right?

I posted a bug report for the install on Mac but the project file does not mention it explicitly
 'Operating System :: Microsoft :: Windows :: Windows 11',
 'Operating System :: Microsoft :: Windows :: Windows 10',
 'Operating System :: POSIX :: Linux',

Happy to help if needed.