metadata for ADO_CORINE_100m_3035

Hey,
I just had a quick look at your ADO_CORINE_100m_3035 collection while working on a web editor issue.
Some hints for improvements.

The metadata should not do those "No <...> Information Available" summaries. Instead, just remove them from the output.
The role "Producer" should be lower-cased.
If you provide an e-mail in a "url" field, add "mailto:" at the beginning.
eo:gsd doesn't exist anymore, it's now just "gsd"
citation doesn't exist, I think you meant to use "sci:citation"? In this case also add "scientific" to "stac_extensions".

Hi @m-mohr, is there a "validation" tool for the STAC metadata? Maybe I've missed it.

Yes, there's stac-node-validator (JS, for stac >= 1.0.0-rc.1) and stac-validator (Python, I think it works for STAC 0.9, too), but due to the extensibility of JSON/STAC errors such as gsd instead of eo:gsd will not be spotted, but it likely shows you some of the issues mentioned above.


There is no generic version of the Application.Current.TryGetFeature

Describe the bug
Error CS0619 : 'IActivatableApplicationLifetime' is obsolete: 'This interface has no effect. Instead use Application.Current.TryGetFeature<IActivatableLifetime>().'
To Reproduce
Use IActivatableApplicationLifetime and you will get compiler warning
Expected behavior
Either warning uses existing method or add generic version to code base
Avalonia version
11.1.0-beta1
OS
macOS
Additional context
No response

Yeah, it's the same for all TryGetFeature interface methods. Not just on Application.
Inconveniently, this extension method was misplaced initially.


Input forms are tiny on some systems

This was introduced as part of PR #59 .

Not sure if there are any easy fix while still maintain smooth scaling across resolutions. It's not a blocker.
I loosely assigned you @digitaltwinnn as I suspect you may have a better understanding of this.

Thanks for checking this. Found it and just pushed a fix for it (partially rolled back a small change I did in PR#59) with some other minor improvements. Let me know if this works better

Input forms are still very narrow on my system. However now the buttons align very nicely when reducing the size of the window. I love that!
Also noticed that the wallet image is very small.

I suppose they're scaling correctly with my resolution. Although I would still want to increase the size for the wallet image, as well as making the form groups a bit taller.
I guess the avatar image can simply be increased: https://github.com/grvlle/constellation_wallet/blob/cd6d8f9b8f5d6ccd0e2a6e8f1bd3704ebb993cb6/frontend/src/assets/sass/paper/_cards.scss#L65
Does it look good in size on your resolution? Will try on my 4k monitor tomorrow.

What resolution is your currently system? For anything wider than bootstrap xl (1200 pixel width) it now starts to upscale the fonts, however currently only slightly by 2x from 1200px to 4k (i.e. not with 1:1 ratio). You can play with the ratio and increase it closer to 1:1 to avoid still rather tiny fonts on higher resolutions.
https://github.com/grvlle/constellation_wallet/blob/d62bc9e2b2dc99b11c81f095fab33a0276e097e3/frontend/src/assets/sass/paper/_responsive.scss#L485
We may also need to add the $line-height variable here and apply the same ratio as well.

Regarding the sizing of the images I'll have a closer look as there are several ones like in the navigation bar, login page, avatar, etc. They should scale but they use size em (relative to parent) vs rem (relative to page). If em's are nested they are relative to eachother so they scale but not always with a 1:1 ratio like rem will always do.

What resolution is your currently system? For anything wider than bootstrap xl (1200 pixel width) it now starts to upscale the fonts, however currently only slightly by 2x from 1200px to 4k (i.e. not with 1:1 ratio). You can play with the ratio and increase it closer to 1:1 to avoid still rather tiny fonts on higher resolutions.
https://github.com/grvlle/constellation_wallet/blob/d62bc9e2b2dc99b11c81f095fab33a0276e097e3/frontend/src/assets/sass/paper/_responsive.scss#L485
We may also need to add the $line-height variable here and apply the same ratio as well.

Thanks @digitaltwinnn !
I opted in to change the font size in the form groups across all resolutions instead as part of this commit: https://github.com/grvlle/constellation_wallet/commit/f9578cc2bf6cecd25928bc6c22ef782d589cfa4f
Looks great now on both my 4k and 2k screen. Let me know if it looks poorly on yours and I'll adjust accordingly.

Regarding the sizing of the images I'll have a closer look as there are several ones like in the navigation bar, login page, avatar, etc. They should scale but they use size em (relative to parent) vs rem (relative to page). If em's are nested they are relative to eachother so they scale but not always with a 1:1 ratio like rem will always do.

Awesome! Thanks for looking into it. I'll go ahead and close this ticket for now as I've pushed a commit that should resolve the original issue.


Extension has been removed from Chrome Web Store

Well guys, looks like it was good while it lasted on Chrome.
The Google Support team just sent an email informing that the item was removed from the Google Chrome Web Store.
I'm trying to get in touch with them as soon as possible.
If anyone still has the item installed, enjoy it and don't uninstall it, because you might not have a chance to get it back :)
EDIT: As @seanbperiod has pointed out below, you can always download the source of the extension here and install via dev mode :)

Can this still be downloaded from here and installed via dev mode?

@seanbperiod Oh, that's good news. So at least we can install it like that. We are currently working on others ways to offer the extension on Chrome apart from the Web Store.

Another option would be to add it to the mozilla addon store. They are notably more lax when it comes to extensions published on their store as long as they aren't malicious and are supported (IIRC, double check just in case)

@IkeKap Yes, absolutely, that was the first thing that crossed my mind. I've worked today on porting the extension to Firefox and just published it on their store.
You can find it right here: https://addons.mozilla.org/pt-BR/firefox/addon/f-ck-youtube/
It is in an early access stage, Mozilla calls it the "experimental" phase, I haven't post anywhere yet. If anybody can give any feedback regarding if the extension is working correctly on Firefox as well, that would be great. It worked for me.
Thanks for your input :)

i think it show only for you, as long as it is an experimental phase, or for someone that you invite to test

@kudlatyamroth I've set the status of the extension to invisible for now, while I work on some issues that were happening on Firefox. It should be available again soon.


add task.pythonjob decorator

fix #166 .
from aiida_workgraph import WorkGraph, task

# decorator to define a pythonjob
@task.pythonjob()
def add(x, y):
    return x + y

wg = WorkGraph("first_workflow")
wg.tasks.new(add, name="add", x=1, y=2)
wg.submit()

Codecov Report
Attention: Patch coverage is 91.66667% with 2 lines in your changes missing coverage. Please review.

Project coverage is 75.10%. Comparing base (170b5e9) to head (eda0260).

Files
Patch %
Lines

tests/test_python.py
86.66%
2 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #170      +/-   ##
==========================================
- Coverage   75.10%   75.10%   -0.01%
==========================================
  Files          69       69
  Lines        4556     4580      +24
==========================================
+ Hits         3422     3440      +18
- Misses       1134     1140       +6

Flag
Coverage Δ

python-3.11
75.10% <91.66%> (+0.08%)
:arrow_up:

python-3.9
?

Flags with carried forward coverage won't be shown. Click here to find out more.

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


[5.4] Pass the condition value to "when"

So that this:
$role = $request->input('role');

$users = User::when($role, function ($query) use ($role) {
    return $query->where('role_id', $role);
})->get();

becomes this:
$users = User::when($request->input('role'), function ($query, $role) {
    return $query->where('role_id', $role);
})->get();

Kinda clever.

Cool! Thanks 👍

Love it! Really laravelish

This should have been added to the documentation. Came here through http://laraveldaily.com/less-know-way-conditional-queries/?utm_content=buffer39804&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer I am on my phone now. If I get time later I will make a PR to the docs.

Still not in docs..? :/

I am again on my phone 😬
I will (again) try to look at it in a few minutes once I am behind my desk :)

Hi, how can handle orwhere in when conditions, problem is - not adding brackets
->when($gender != '', function ($q) use ($gender) {
return $q->where('users.gender', '=', $gender);
})
->when($gender_choice == config('constants.ANSWERS.MEN'), function ($men) {
$men->where('option', '=', 95)
->orWhere('option', '=', 96);
})
It returns
-- where users.gender = 1 and option = 94 or options = 95
It should be
-- where users.gender = 1 and (option = 94 or options = 95)


Pay 4882 testing

Before creating a pull request make sure that:

[ ] commit messages are meaningful and follow good commit message guidelines
[ ] README and other documentation has been updated / added (if needed)
[ ] tests have been updated / new tests has been added (if needed)

Please remove this line and everything above and fill the following sections:
JIRA link (if applicable)
Change description
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[ ] No

Closing Pull as we have some merge issues in the pipeline....


hover effect added

changes the hover color effect of the button

hey hi i have came over your project and i like to fix this issue if you assign me i would like to  work and like to contribute to this

you can assign this issue to me.

i want to work please assign me issues

Hi @Kritika30032002 I would like to contribute to this issue; pls assign me

Hey, I would like to work on this.

@Tonystark121 are you working on this?

@Kritika30032002 if @Tonystark121 is not available I can work on this...

Issues are assigned on first come first serve
if @Tonystark121  is not available then @Touseef-md  will get the chance to work on this issue.


Option for registering for all elections in calendar year

[x] add checkbox to form templates
[x] re-enable in PDF-filler controller: https://github.com/eAbsentee/eAbsentee/blob/cb1771c68d91735743db6c60543db0735d9cf45f/eAbsentee/form/utils.py#L50-L51
[x] update affirmation statements (both English and Spanish)

closed by https://github.com/eAbsentee/eAbsentee/commit/676e7f610ab85ad8c7fe7cc534901d3837b05db4


jest 24.1 update

Hello everyone,
Since I updated to jest 24.1 I had the following error
ReferenceError: reporter is not defined
  beforeEach(async () => {
reporter.startStep("Log in");
^
To fix this I add the following block to my jest.config.js
  setupFilesAfterEnv: [     '<rootDir>/jasmine.config.js'   ]
which contains the following code
import { registerAllureReporter } from "jest-allure/dist/setup";
registerAllureReporter();
But Now I'm having issue with the allure report, since one additional XML file is generated in allure-results.
Is it possible to remove the line 71 in setup.ts ?
registerAllureReporter();

@gaaliche, right, I'll fix readme.
Just do import "jest-allure/dist/setup"; in your file.

updated

Thanks for your help.


let AI be ion stormed

About the PR
title
Why / Balance
more fun gameplay and you have to be somewhat wary of the AI now
you can also reset the AI back to crewsimov or whatever using the law console
Media
untested
Requirements

[x] I have read and I am following the Pull Request Guidelines. I understand that not doing so may get my pr closed at maintainer’s discretion
[ ] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Changelog
:cl:

tweak: AI may now be ion stormed.

funny

Sovl

I was coming up with a system for ion storm AI
law boards currently make ion storms trivial because they can just be re-inserted to reset the laws back to what they were

I was coming up with a system for ion storm AI law boards currently make ion storms trivial because they can just be re-inserted to reset the laws back to what they were

yes but i think it's okay because you have to 1) know AI is ioned (hard) 2) get to AI core 3) get the law board and get it to an upload computer

Make the law boards ion storm targets as well so you have to pick the best one from a corrupted set :trollface:

Make the law boards ion storm targets as well so you have to pick the best one from a corrupted set :trollface:

Me when all 12 law boards get ion stormed while literally laying on the ground

ai malf

It's an interesting idea, but we need to make sure that the laws change like those of AI, as well as make cyborgs linked to AI

Hey, I brought this up for dicussion with the maintainers and admins and due to a huge influx of similar PRs we decided to freeze AI law changes until some basic requirements for AI are implemented. See #31924 for more details. Once these are addressed the mentioned PRs will be re-evalutated. Thank you for your contribution.


Member List Header (S)

Summary
Update Header on Member List according to designs.
AC

[x] Add background image
[x] Hide "Become Member Button" for members

Design:
https://xd.adobe.com/view/2e6dc275-76dc-4722-a922-cc60c5d7d653-7b3e/screen/da59cea8-a4c9-4f6f-81c5-208b16a1e12

@pugakn the "x" is not working when I try to close the header and the "become a member" button is hidden even when I am not a member


Running after --auto-gen-config does not ignore all convention offenses

I have a large codebase that I'm trying to make pass rubocop. However, while I work on that, I wanted to setup the .rubocop_todo.yml to ignore all existing offenses so that I can run it on CI and avoid having the rest of my team introduce new rubocop offenses. I understand that's one of the main purposes of --auto-gen-config.
When I run rubocop --auto-gen-config, it shows 16,000+ offenses and generates the proper .rubocop_todo.yml. However, after setting rubocop to inherit from that file and running rubocop, it still shows 4000+ offenses, all of which are C (convention) offenses.
I've run rubocop --format offenses and all of the cops reporting offenses are included in the .rubocop_todo.yml with the correct config so that they should be ignored, but they are not.
Do I need to be running it with a certain flag to ignore convention offenses in .rubocop_todo.yml? I do not want to ignore all convention offenses, just those listed in the todo file.
Unfortunately, this is a private repo so I cannot post code samples. If needed, I can spin up a new app and try to reproduce.

Expected behavior
I expected the auto generated config to ignore all errors, warnings, conventions, and everything else rubocop found if .rubocop_todo.yml is inherited from in .rubocop.yml.
Actual behavior
rubocop ignored all warnings but did not ignore conventions.
Steps to reproduce the problem

Run rubocop --auto-gen-config
Add inherit_from: .rubocop_todo.yml to top of .rubocop.yml
Run rubocop

RuboCop version
$ rubocop -V
0.42.0 (using Parser <IP_ADDRESS>, running on ruby 2.2.4 x86_64-darwin14)

I've done what you're currently attempting to do (start using rubocop on a large pre-existing codebase), and my experience was although rubocop is amazing & has been a massive help for us, the --auto-gen-config process can be a bit buggy. In my case there were several cops that would not correctly generate a todo file that would allow a subsequent rubocop run to pass, but it was quite cop-specific. So, I would suggest that you make groomed smallest possible test samples & file bug reports against each problematic cop, or look at manually tweaking the config in .rubocop.yml on top of whatever is in .rubocop_todo.yml to get it to pass. Good luck!

Here's the first one (new cop introduced in 0.43.0!) https://github.com/bbatsov/rubocop/issues/3568

Thanks @madwort, good suggestion. If I have time, I will try to work through the cops one at time.

Like I said, good luck, I think it's definitely worth it but the initial setup is annoying. Here's another one that's bitten me in the most recent version: https://github.com/bbatsov/rubocop/issues/2679

I actually stumbled on that one before I posted this issue, but all of the solutions suggested in it that I tried did not work for me. But yes, that one has bitten me as well :trollface:

Style/GuardClause:
 Enabled: false

in .rubocop.yml should do the trick, no?

Well, the goal is to have it enabled but ignore certain files, right? That way, we can ignore violations currently in the code but catch any new violations, then work through the excluded files at our own pace. It was my impression that is one of the main points of the --auto-gen-config option.

Yes, it absolutely should work that way, and hopefully that bug will get fixed soon. All I meant was, for me it was worth completely disabling some cops in order to get the process started fixing lots of other ones - GuardClause for example needs slightly more thought than things like how many spaces should something be indented. The default config for --auto-gen-config is that if over 25 files in your codebase violate a cop, the cop is disabled for all files (rather than adding an Exclude line for enormous lists of files), so depending on your codebase you may find that many cops are currently completely disabled.

Gotcha, I misunderstood.

I wrote a small script a while ago to generate a complete rspec todo if you guys are interested: https://gist.github.com/backus/00f0a34857208bf356af. No promises that it will work but you might be able to adapt it for what you want given that code. Basically it just iterates over all remaining offenses and adds excludes to your rubocop config file

Thanks @backus.
My issue was actually that even the files listed under Excludes were not being excluded for certain cops.

@supremebeing7 That could probably be because your .rubocop.yml was overriding the .rubocop_todo.yml? I've been just bitten by this behavior of --auto-gen-config and now trying to verify that it's a known issue which would be likely fixed at some point (I could try to contribute as well).

Hm, I had not checked that, but it's certainly possible.
I'm not sure if that is the case, because it's definitely excluding some of violations from the results, just not all of them. As in, I will run with --auto-gen-config, it will generate the .rubocop_todo.yml and spit out x number of violations, then when run again without --auto-gen-config, it spits out far fewer violations, presumably because it's reading the .rubocop_todo.yml and excluding/ignoring at least some of the violations in there.
Anyway, it's worth checking into either way. I'm not at a place where I can look into it right now, but will check it out.

I'm pretty sure you're experiencing the same problem that was discussed in #2839, a pull request that tried to solve it but was not accepted. My opinion is that we have a suggestion for a decent but imperfect solution there. The alternative is the bigger and more time-consuming overhaul of --auto-gen-config that @alexdowad hinted at. But if no-one is willing to work on that it's not really an alternative.


The API is too difficult to use

maybe it is a great library
But is it too bloated?
and the default UI is worse than the old version

yes,you are right.

Well, there are some alternatives out there that you can use instead. Some have simpler APIs. It's an old library and it tries to maintain some backwards capability.
The UI can be customized and there's also a legacy branch for the old version if you prefer that.
This is not an actionable ticket so I'm closing it.


Tweak emoji html to display images against darker color.

Included a few more tweaks to the tool.

LGTM


Received error 'csr_matrix' object has no attribute 'A'

Environment is Python 3.11. In order to avoid the issues of https://github.com/dswah/pyGAM/issues/337 I uninstall scikit-sparse. However, this then presents a new error from line 81 of utils.py:

File [~/micromamba/envs/ml/lib/python3.11/site-packages/pygam/utils.py:81]
(http://localhost:8888/~/micromamba/envs/ml/lib/python3.11/site-packages/pygam/utils.py#line=80), in cholesky(A, sparse, verbose)
 78     warnings.warn(msg)
 80 if sp.sparse.issparse(A):
 81     A = A.A
 83 try:
 84     L = sp.linalg.cholesky(A, lower=False)

AttributeError: 'csr_matrix' object has no attribute 'A'

As it stands now, PyGAM is no longer usable for "newer" version of Python Scipy. (As far as I can tell, this fails on versions of Scipy going back several years).

To fix this, I manually changed line 81 of utils.py to A = A.toarray(). You will also need to change line 783 of pygam.py to use toarry() instead of the .A syntax.

You can downgrade to scipy=1.13.1 to resolve the issue. I suspect it requires a new release to fix the dependency to scipy>1.14.0

An equally hack-y solution is a monkey patch:
import scipy.sparse

def to_array(self):
    return self.toarray()

scipy.sparse.spmatrix.A = property(to_array)

import pygam

To fix this, I manually changed line 81 of utils.py to A = A.toarray(). You will also need to change lines 706 and 783 of pygam.py to use toarray() instead of the .A syntax. There may be more places as well, depending on which models you use. The broad fix is just to replace .A with toarray() everywhere you get that error.

I did the same. Running Python 3.12.5.


SQL results not rendered with nteract data explorer

.NET Interactive
© 2020 Microsoft Corporation
Version: 1.0.355307+4cc71ae4e275fd80852b9c2faa317bc3a0033d2c
Library version: 1.0.0-beta.22553.7+4cc71ae4e275fd80852b9c2faa317bc3a0033d2c
Build date: 2022-11-28T21:03:16.1596190Z
https://github.com/dotnet/interactive
When executing a sql query, the result is rendered in a plain table (like html table). For example,
#!sql-mydb
select * from sys.databases
As opposed to multiple 'older' video showcase, the demo always shows that sql query rendered in nteract data explorer.
https://youtu.be/938jBJ-tK3c?t=1134
https://youtu.be/m5d6pG_R05M?t=1186
At one point in the first video, @jonsequitur mentioned that by default sql result should be rendered with nteract data explorer. Not sure if anything has changed since then or is there anything additional need to be installed or configured to have the sql query result in a better/richer format (eg. nteract data explorer)?

Hi.
I'm facing the same issue. "Change presentation" dialog on data result only offers text/plain as option.
I couldn't find a nteract extension. What am I missing?
Running Polyglot Notebooks v1.0.3606020.
Best Regards.

@colombod Thank you for your great helpful response.

@colombod thank you for the clarification. how do you exactly get to this data table view in your example? is that from nteract extension and how do you load that as default data explorer (instead of the sanddance example graphical view)?


fix(FileUploader): set label tabIndex to null if value is falsy

Closes IBM/carbon-components-react#1334
The FileUploaderButton was allowing users to focus both on the wrapper div and the label using the keyboard
Changelog
Changed

moved the button styles off of <FileUploaderButton>'s label and placed it on the wrapper div instead
set the value of the label's tabIndex to null if the prop value is falsy so that it won't be focusable

hi @asudoh after discussing with @joshblack it seems that part of the reason for assigning the role="button" to the wrapper div was for a11y. I am not against having the <label> act as a button, but I'd like some more input on whether or not this violates any a11y rules

Copy/pasting from our slack conversation:

Keyboard handlers should only be placed on elements with an interactive role. Things like label aren’t considered interactive because it is textual content that one would read but not really interact with. You also can’t switch the default role of label to an interactive one (like button) without then losing the label for the input (which is required)


Add Vault KeyStore implementation

This pull request adds Vault-based bccsp.KeyStore implementation. These changes make it possible to use Vault just as storage, not cryptoprovider (BCCSP is still doing this). Backward compatibility for other KeyStore options doesn't break.
All you need to use Vault storage:

Add new section to the SDK connection profile:

BCCSP:
     Default: SW
     SW:
       Hash: SHA2
       Security: 256
       # Location of Key Store in Vault
       VaultKeyStore:
         # If "", defaults to 'mspConfigPath'/keystore
         KeyStore: /opt/crypto/peerOrganizations/org/users/User1@org/msp

Run Vault.
Run client application that uses SDK with environment variables:
VAULT_ADDR - address of Vault server
VAULT_TOKEN - Vault token
VAULT_SPACE - root of the path in the Vault kv storage (all keys will be in this namespace)

I would prefer that vault support is created as a cryptosuite module rather than modifying bccsp, interfaces and creating dependencies to vault.

@troyronda Let me clarify the purpose of these changes. By making his own cryptosuite, the user assumes the obligation to implement the cryptoprovider. It's not a good idea to re-implement the cryptographic functionality that the bccsp already has. These changes make it easy to integrate another implementation of bccsp.KeyStore. Do you think this is not a necessary feature?

@vadimInshakov We provided a CryptoSuite interface so that implementors could inject their own crypto providers (such as vault).

@troyronda what if the user doesn't want to use an external cryptoprovider and at the same time he doesn't want to store keys in files on disk? This code only solves this problem, nothing else. BCCSP does all the cryptographic work and stores the keys in the vault.

@vadimInshakov As I said, you are able to create an injectable vault implementation. I prefer not to add each storage possibility into the forked BCCSP code. I also prefer to not add dependencies to the core SDK and also to not change the configuration.

@troyronda ok, thanks, PR can be closed.


Question for MMD loss

Hello, I have a question about MMD loss.
According to the flow in the paper, Minibatch Sampling from Discrepency Minimization doesn't go through backbone of GCN(CTR-GCN, ...).
However, the output from Model_GROUP is (self.fc(x), self.fc_person(xm)), xm also passes the backbone as x does.
That shows that MMD loss also affect the training of backbone as CE loss does.
Did I understand the code in right way?
Thank you.

Ah, I see. Thank you for your help.


Error minting in Preview network ( not happening in Emulator or YaCi )

I have a script with the following function:
async function mintMultipleNFTs(
  lucid: LucidEvolution,
  mintPolicy: Script,
  policyId: string,
  nftsMetadata: NFtMetadata[],
  address: string,
  amount: number,
) {
  try {
    const assetsToMint = nftsMetadata.reduce((acc, nft) => {
      const unit = `${policyId}${fromText(nft.name)}`;
      acc[unit] = BigInt(amount);
      return acc;
    }, {} as Assets);
    console.log("assetsToMint", assetsToMint);

    // Prepare metadata for NFTs
    // https://github.com/cardano-foundation/CIPs/tree/master/CIP-0025#version-1
    const metadata = {
      [policyId]: nftsMetadata.reduce(
        (acc, nft) => {
          acc[nft.name] = {
            name: nft.name,
            description: nft.description,
            image: nft.image,
          };
          return acc;
        },
        {} as { [key: string]: { [key: string]: string } },
      ),
    };
    console.log("metadata", metadata);

    const utxos = await lucid.wallet().getUtxos();
    // const redeemer = Data.to(new Constr(0, []));

    let tx = lucid.newTx().collectFrom(utxos).attach.MintingPolicy(mintPolicy);

    tx = tx.mintAssets(assetsToMint, Data.void());

    console.log("add rest");
    tx = tx.pay
      .ToAddress(address, assetsToMint)
      .attachMetadata(721, metadata)
      .addSignerKey(paymentCredentialOf(await lucid.wallet().address()).hash);

    console.log("completing");
    // Complete and sign transaction
    const completeTx = await tx.completeSafe({
      localUPLCEval: false,
    });

    if (isLeft(completeTx)) {
      console.log(completeTx.left);
      return;
    }
    const signedTx = await completeTx.right.sign.withWallet().complete();

    console.log("Submitting transaction...");
    const txHash = await signedTx.submit();
    console.log("Transaction submitted");
    return txHash;
  } catch (error) {
    console.error("Error in mintMultipleNFTs:", (error as Error).message);
    throw error;
  }
}

There is a strange effect happening, that I can't explain:

The transaction submits just fine using Emulator or YaCi.
The transaction have different outcomes per provider:

Blockfrost
For blockfrost, calling completeSafe, make things blow up:
[cause]: '{ Complete: Error: Could not evaluate the transaction: {"type":"jsonwsp/fault","version":"1.0","servicename":"ogmios","fault":{"code":"client","string":"Invalid request: failed to decode payload from base64 or base16."},"reflection":{"id":"42963c87-29e1-476b-8cca-9f35e2e7f0a6"}}. Transaction: 84aa00d90102828258205feed5778b7a80b2745213bf0099bb92091a6577d791383b7d69ec22ea003674008258205feed5778b7a80b2745213bf0099bb92091a6577d791383b7d69ec22ea00367401018282583900416c5b195e3ac0f8e97864f7b1388077c799a0cb14586e7b67bffbd720405b0c35b03c736b7be82f04b062ec37f55dcb1292b646fd5e4e52821a0013126ca1581c9f407c24ab61502a57f9281d66c784a54f98c6b75079d46eaafbb668a24e4779726f73204e46542076342031014e4779726f73204e465420763420320182583900416c5b195e3ac0f8e97864f7b1388077c799a0cb14586e7b67bffbd720405b0c35b03c736b7be82f04b062ec37f55dcb1292b646fd5e4e52821b00000001228cc436a1581cd33d864b1588acb98c9ccaa4f0a3de49169c62455fbfb8e26c3e1ec8a14e4779726f73204e4654207631203101021a000372d1075820deb87361cb9f35dea49fa70bc374362a0afcf76e3b9495767a50c9dbcdcc408b09a1581c9f407c24ab61502a57f9281d66c784a54f98c6b75079d46eaafbb668a24e4779726f73204e46542076342031014e4779726f73204e46542076342032010b582000000000000000000000000000000000000000000000000000000000000000000dd90102818258205feed5778b7a80b2745213bf0099bb92091a6577d791383b7d69ec22ea003674010ed9010281581c416c5b195e3ac0f8e97864f7b1388077c799a0cb14586e7b67bffbd71082583900416c5b195e3ac0f8e97864f7b1388077c799a0cb14586e7b67bffbd720405b0c35b03c736b7be82f04b062ec37f55dcb1292b646fd5e4e52821b000000012248321da1581cd33d864b1588acb98c9ccaa4f0a3de49169c62455fbfb8e26c3e1ec8a14e4779726f73204e4654207631203101111a004c4b40a300d901028182582000000000416c5b195e3ac0f8e97864f7b1388077c799a0cb14586e7b67bffbd7584000f899d39b17fd5d66c192c4b50d343e42f7235b30504c8ae7619f93c828dc6dce4568dd69177c551828492d777a6727fd66c2fbccbda8c2aeed92032c99790a0581840100d8798082000007d90102815901d15901ce010100332323232323232323232225333004323232323253323300a3001300c3754004264a6666660260082646464a66601c600a0022a66602460226ea801c00803454ccc038c00c00454ccc048c044dd500380100680698079baa00613232533300e30053010375400e2a66601c600660206ea8c050c044dd5006099800801118021bad301200114a2266002004466e1cdd69809000a400244646600200200644a66602a00229444cc894ccc04cc0140084cc010010004528180b800980c000992999806980118079baa00114bd6f7b63009bab30133010375400264660020026eacc04cc050c050c050c050c040dd50039129998090008a60103d87a80001323332225333012337220100062a66602466e3c02000c4cdd2a40006602e6e980092f5c02980103d87a8000133006006001375c60220026eacc048004c058008c050004dc3a40040140140140146eb8c040c034dd50011b87480005281807180780198068011806001180600098039baa001149854cc01524011856616c696461746f722072657475726e65642066616c73650013656153300249011272656465656d657220723a20416374696f6e00165734ae7155ceaab9e5573eae815d0aba2574898107d8799fd87a80ff0001f5a11902d1a178383966343037633234616236313530326135376639323831643636633738346135346639386336623735303739643436656161666262363638a26e4779726f73204e46542076342031a3646e616d656e4779726f73204e465420763420316b6465736372697074696f6e781e4465736372697074696f6e20666f72204779726f73204e4654207634203165696d616765782b68747470733a2f2f617661746172732e67697468756275736572636f6e74656e742e636f6d2f752f3430306e4779726f73204e46542076342032a3646e616d656e4779726f73204e465420763420326b6465736372697074696f6e781e4465736372697074696f6e20666f72204779726f73204e4654207634203265696d616765782b68747470733a2f2f617661746172732e67697468756275736572636f6e74656e742e636f6d2f752f343030 }'

Koios
This is not the case for Koios though. The completeSafe succeeds, and then it fails on Koios API side:
Error in mintMultipleNFTs: (FiberFailure) KoiosError: ResponseError: StatusCode: non 2xx status code (415 POST https://preview.koios.rest/api/v1/submittx)

Can anyone help me with that?

Why this is happening? What is this error, and if you can't tell, how I can obtain more useful information? What is the proper way to debug it?
Why there is this difference between the above, and local environment? Shouldn't that be the same? What am I missing here?

Thanks!

Blockfrost currently does not support the new transaction format, the issue is being tracked here for reference
https://discord.com/channels/826816523368005654/930311119959109673/1311746774926622740
Koios I can improve the error message
Why this is happening? What is this error, and if you can't tell, how I can obtain more useful information? What is the proper way to debug it?
The recommended way to debug is to add traces in your contract and remove them before deploying on the Mainnet.
Why there is this difference between the above, and local environment? Shouldn't that be the same? What am I missing here?

Only Koios and Kupmios use a type-safe approach and should provide consistent error messages unless the provider returns unexpected errors.
Blockfrost and Maestro are not type-safe yet. There is a Catalyst proposal aimed at addressing this issue.


Add ability to use custom component for day header

it would be great to be able to specify the custom component for the day header.
The overload method would receive the date as a param and render a component in the allocated space, as shown in the following screenshot.

Have you tried customizing the props headerStyle, headerTextStyle, dateFormatHeader and/or TodayHeaderComponent for your use case?

Yeah I have checked. Maybe I have missed someting, but my use case is the following:
As a user, I want to be able to see the total number of meetings I have during the day in the day header.
And I think this is currently not possible.

Thanks for the answer, that cannot be done at the moment.
A couple more observations:

If this custom component is provided, all the other header-related props mentioned will be ignored (which is fine)
The custom component could also receive a prop isToday, so the developer does not have to check this manually


Accept HTTP 202 status for creating new posts

My micropub endpoint creates posts asynchronously. Indigenous reports this as an error and has to be cleared afterwards.

Oops! I put that into the next build!

🎉


Add More Event Filters

Implemented by https://github.com/SpongePowered/SpongeCommon/pull/519
This PR adds an event filter for retrieving values from getters on the event type. This annotation annotates a parameter and acts as a source for the parameter value. The annotation specifies a method name which must be a method on the specified event type. The parameter's value is set to the result of calling the specified method on the event.
Example:
    @Listener
    public void onPlayerDamage(EntityDamageEvent event, @Getter("getTargetEntity") Player player) {
        // do something with player
    }

Here we have a Player parameter annotated with the Getter annotation. The value for the parameter will be the result of calling event.getTargetEntity(). You'll notice that the return type of getTargetEntity is Entity but our parameter is of type Player, in the case that the returned value is not a player (whenever a non-player is damaged) then the filter will silently fail and your event listener will not be called.
If the return type of the method is an Optional then your parameter type can either be Optional, or the type contained within the optional. If you specify your parameter as the type contained within the Optional then your event listener will not be called if the Optional was not present.

I don't know if this is in the scope of this PR, but it may be cool to be able to do this with the contents of a cause.
Eg, @CauseGetter(First) Player player

@me4502: That already exists :smiley:. Take a look at @First

How about with named causes? @CauseGetter(NamedCause.Whatever) ?

@me4502 You can easily just read the docs on what already exists here, here, and here.


[Bug] v2.5.3 raise AttributeError: module 'dspy' has no attribute 'settings'

Temporary solution: rollback to v2.5.2
Successfully built dspy-ai
Installing collected packages: dspy-ai
  Attempting uninstall: dspy-ai
    Found existing installation: dspy-ai 2.5.3
    Uninstalling dspy-ai-2.5.3:
      Successfully uninstalled dspy-ai-2.5.3
Successfully installed dspy-ai-2.5.2

error details:
File ~/Desktop/develop/dspy/dspy/evaluate/evaluate.py:169, in Evaluate.__call__.<locals>.wrapped_program(example_idx, example)
    167 def wrapped_program(example_idx, example):
    168     # NOTE: TODO: Won't work if threads create threads!
--> 169     thread_stacks = dspy.settings.stack_by_thread
    170     creating_new_thread = threading.get_ident() not in thread_stacks
    171     if creating_new_thread:

AttributeError: module 'dspy' has no attribute 'settings'

It's quite weird, because I can access dspy.settings in my codebase (seems this issue only exists inside dspy codebase). 🤔

Hey @SauceCat ! I just installed DSPy 2.5.3 afresh. Settings are there.
>>> import dspy
>>> dspy.settings
{'lm': None, 'adapter': None, 'rm': None, ....}

I also tried dspy.Evaluate since that seems to be where your error starts:
>>> dspy.Evaluate(devset=[dspy.Example(a=1).with_inputs('a')]*100, num_threads=8, metric=lambda x, y: True)(lambda a: dspy.Prediction())
100.0

Works fine with num_threads=8. Can you make sure you install dspy-ai in a fresh environment? Did you accidentally install dspy-ai and dspy and maybe they're conflicting with each other?

@okhat thanks for the quick reply! It seems so... as I install dspy through pip install -e .
Let me close the issue. 😹


Are you still working on this? If you are stuck somewhere you can discuss here, or probably I can assign someone else on this. @raji2004

Are you still working on this? If you are stuck somewhere you can discuss here, or probably I can assign someone else on this. @raji2004

I am stuck acctually

Cuz the checker I made works it's the display that's giving me some issues

Okay. For now, i am opening this issue for others as well.


Allow HyperbandScheduler to infer max_t from train_fn.args

Issue #, if available: #498
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Job PR-507-3 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-507/3/index.html

I'll rebase this one and extend it to the new content brought in with #501.
@Innixma It would be great to have this one as well, before making a new release.

Just to be clear: This induces one change in behaviour to before:

Before, if you created HyperbandScheduler without passing max_t, then it would silently just use
the default (50)
Now, in this case, and if max_t cannot be obtained from train_fn.args, there is an assertion

I find this a good change, but it is a change.

Job PR-507-4 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-507/4/index.html

BTW: In the future (but not in this PR), we should also try and infer resource_attr and time_attr from train_fn.args (if not given). This is another annoyance and source of potential errors.

Job PR-507-5 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-507/5/index.html

Job PR-507-6 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-507/6/index.html

I will still add a bit of content to course/mlp.md.

Job PR-507-8 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-507/8/index.html

Job PR-507-9 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-507/9/index.html

I'm don't have bandwidth to review this PR at present, but I am fine with merging once @zhreshold   approves.


2> version not working with helix

Vue - Official extension or vue-tsc version

VSCode version

Vue version
3.4.29
TypeScript version
5.4.0
System Info
System:
    OS: Linux Fedora 40 (Forty)
    CPU: (8) arm64 unknown
    Memory: 1.85 GB / 7.37 GB
    Container: Yes
    Shell: 5.2.26 - /bin/bash
  Binaries:
    Node: 20.15.1 - ~/.nvm/versions/node/v20.15.1/bin/node
    npm: 10.7.0 - ~/.nvm/versions/node/v20.15.1/bin/npm
    bun: 1.1.23 - ~/.bun/bin/bun
  Browsers:
    Brave Browser: beta

Steps to reproduce

Open editor (helix)
Open vue project
LS not working as expected

What is expected?
LS to work
What is actually happening?
Using @vue/language-server version 2> with helix-editor and default configuration doesn't work, but when downgrading to version 2< (1.8.27) it works.
I also tried using helix-editor recommended config (typescript plugin), but doesn't work well.
Link to minimal reproduction
No response
Any additional comments?
No response

You need both tsserver and vue-language-server in v2, see https://github.com/vuejs/language-tools/issues/4376#issuecomment-2109440806.

You need both tsserver and vue-language-server in v2, see #4376 (comment).

Already tried this config too, it interprets the whole doc as Typescript.

If tsserver apply typescript sytnex in entire vue file, to me seem you did not set up the plugin properly. Can you double check the vue plugin path

If tsserver apply typescript sytnex in entire vue file, to me seem you did not set up the plugin properly. Can you double check the vue plugin path

Ok now it works, I had to write the full absolute path, instead of ~/
Also, is there a way to highlight/underline components in <template> like in VSCode?

Yes custom components highlight can be achieved by semanticTokensProvider. Not sure if helix supports that.
VsCode: https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide#semantic-token-provider
Neovim: https://github.com/neovim/neovim/pull/21100

Yes custom components highlight can be achieved by semanticTokensProvider. Not sure if helix supports that.
VsCode: https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide#semantic-token-provider
Neovim: neovim/neovim#21100
disabled:
enabled:

It seems they don't: https://github.com/helix-editor/helix/pull/6102
Thanks for the help anyways.


Added gradle dependency scopes for ear plugin

What's changed?
Added deploy and earlib as gradle dependency handlers
What's your motivation?
Support version bumps in ear projects
Checklist

[ ] I've added unit tests to cover both positive and negative cases -> No existing test cases present, so no idea how to
[X] I've read and applied the recipe conventions and best practices
[ ] I've used the IntelliJ IDEA auto-formatter on affected files

Thanks both!


Add ‘createProxyForMainProcessModule’

This PR adds a new createProxyForMainProcessModule method that has similar ergonomics to createProxyForRemote, but makes it easier to call main process modules from a renderer.
The main difference is instead of evaling code, when the main process receives a request, it does:
const theModule = electron[receive.moduleName];
const methodToCall = get(theModule, receive.path);
receive.result = methodToCall.apply(theModule, receive.args);

This came about because I just want a Promisified version of remote, and createProxyForRemote doesn't get me quite there. E.g., if I do
const mainProcess = createProxyForRemote();

I can't call out to Electron modules in the main process without first defining some method on the global scope.

👍


Issue #1013 : Complete name of track title in collapsing toolbar fixed.

@the-dagger @mananwason Review and let me know if any changes required. :)

Please rebase your fork and send a pull request again.
This one seems to have way too many commits mixed up.


Invalid dependencies

minestom.net no longer exists

Eh minestom.net was never a repository.
The repository for the missing artifact is https://repo.minestom.com/repository/maven-public/ . I will have them on maven central soon.


Formula to calculate dimensions of output of Deconvolution filter given kernel filter size and stride.

Formula to calculate dimensions of output of Deconvolution filter given kernel filter size and stride
How the stride factor is related to the upsampling factor?
Kindly suggest

This issue is closed due to lack of activity in the last 90 days. Feel free to ping me to reopen if this is still an active issue. Thanks!
Also, do please check out our forum (and Chinese version) for general "how-to" questions.


Expose timeout parameter to packs.install on st2 client pack install

Added timeout parameter for pack install st2 client run to help with long running installs. This was already expose in packs.install action but st2client was not updated to reflect the change.

I believe you also need to update st2common/st2common/openapi.yaml.j2, specifically PacksInstall object and also the corresponding API handler code in st2api/st2api/controllers/v1/packs.py.

Thanks for the contribution.
Overall, I'm fine with this change, but as mentioned above, it needs some more work + ideally at least the unit test for the API layer (that one shouldn't be too hard to add).

We just reformatted the code with black. (Hooray!)  (Arrgh!)
Please merge master into your branch, resolve the conflicts (Ouch! Sorry!), and reformat with black (I recommend running pre-commit install after you've merged master so that black reformatting happens automatically on commit).

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

@hnanchahal I just merged in master and dealt with reformatting.
Would you please sign the CLA so we can move this PR forward?

Rephrasing what Kami said, to finish up this PR, you need to add the server-side / API changes.
Though the packs.install action has a timeout parameter, the API layer can't pass it on until it knows about it.
So, you've added the CLI changes and the spec changes, the last pieces are:

change st2api/st2api/controllers/v1/packs.py (PackInstallController)
add API tests in st2api/tests/unit/controllers/v1/test_packs.py

And sign the CLA :) If you can get this done within a week or two I'll merge it in time to release 3.7.0. Cheers!

any update here? We have a pack with a long installation process that takes longer than the default 600s. It would be nice to use this feature to set the timeout to a custom length.


ClangImporter: Fix diagnostics for NS* prefix stripping from generic types

Radar: rdar://problem/26206263

@swift-ci Please test

@DougGregor Can you please review?

@swift-ci test linux

Weird use of SubstitutedType, but it makes perfect sense to do this for Swift 3 preview 1. Thanks!


UI should not allow create two node with all roles

Rancher versions:
rancher:master 03/06
Steps to Reproduce:

Create a cluster with one node using DO.
after the cluster is active, go to the node page for that cluster, click "+" to add node. This leads to 2 nodes for etcd, which should be forbidden.  The same behavior is forbidden if I do it on "Edit cluster" page.

Results:
Node page:

Edit cluster page:

There's nothing fundamentally wrong with 2 (or 4) etcd nodes, it is just a waste of hardware because it doesn't increase the quorum until you have an odd number.
The add flow gets you a valid cluster; after it's up you can't prevent the creation of situations we don't like because things like deleting it registering machines from the provider directly.

The "Edit Cluster" button is on the "Node" page,  User can change the number of cluster clicking "edit cluster" or "+". I think the behavior should be consistent between the two places.

@vincent99 what should we do for this issue?

Nothing, it's fine..


Fixing #3493: Stop ignoring ValueErrors in fit_generator

As discussed in #3493, fit_generator could use locks for thread safety.

LGTM, thanks


Make a separate query for free plans until backend query can be fixed

Reason for change

The logic to determine whether a product had free plans was broken, because the backend doesn't know if the plan is free until after it's retrieved it from the database. We therefore need - at least for now - to make separate queries for all the plans in order to determine if any of them are free.
Testing

In the storybook site, the products that show up with a FREE badge should be the ones that actually have free plans.
Checklist

[ ] CHANGELOG: The Unreleased section of CHANGELOG was updated
[ ] Prop changes: docs were updated
[ ] Prop changes: E2E tests were updated, testing from the highest level possible
[ ] Platform testing: If this change should be tested against a platform, has it been?

We decided to hardcode free plans for now, until the API can be fixed, which has been prioritized.


Bug: v1.14.2 throws exceptions

Describe The Bug
After upgrading large amounts of the below log output appear and repeat frequently.  Downgrading to v1.14.1 fixes the issue.
To Reproduce
Upgraded to v1.14.2
Expected behavior
Log output doesn't appear
Relevant log output
processLeAdvertisingReport: Caught illegal packet (buffer overflow): TypeError: Cannot read properties of undefined (reading 'slice')

Config for homebridge-switchbot
{
            "name": "SwitchBot",
            "credentials": {
                "openToken": "<mytoken>",
                "notice": "Keep your token a secret!"
            },
            "options": {
                "devices": [
                    {
                        "deviceId": "DeviceId1",
                        "configDeviceName": "Backyard",
                        "hide_device": false,
                        "configDeviceType": "Curtain",
                        "ble": true,
                        "curtain": {
                            "hide_lightsensor": true
                        }
                    },
                    {
                        "deviceId": "DeviceId2",
                        "configDeviceName": "Verandah",
                        "hide_device": false,
                        "configDeviceType": "Curtain",
                        "ble": true,
                        "curtain": {
                            "hide_lightsensor": true
                        }
                    }
                ]
            },
            "platform": "SwitchBot"
        }

Screenshots
No response
Device & Model
2 x Switchbot Curtains 2
Node.js Version
v16.17.0
NPM Version
v8.15.0
Homebridge Version
v1.5.0
Homebridge Switchbot Plugin Version
v1.14.2
Homebridge Config UI X Plugin Version
v4.50.1
Operating System
Raspbian

Had the same problem and I agree that it's a dependency issue, but even after downgrading it persists for me, tried both using homebridge ui and manually downgrading as well, no dice. I previously reported it in this issue #444

same issue here.
had to rollback to previous release to avoid the error, 1.14.1.
waiting for a next release to have a fix.

Seems to only be a raspberryPI noisily log issue.

Has anyone tried this: https://github.com/OpenWonderLabs/homebridge-switchbot/issues/425#issuecomment-1190864279

Has anyone tried this: #425 (comment)

Unfortunately, this didn't work for me.

I'll chime in. I have the same issue (Raspberry Pi). I suspected SwitchBot since it started after I upgraded to 1.14.2 but when I rolled back the issue persisted. So I wasn't sure. Then I was away on vacation for two weeks. Came back to the issue still happening and I see others have reported the issue here.

Same issue here, running Homebridge on a Raspberry PI. Disabled the plugin and errors are gone. As I understand this is not resolved to the current latest 1.15 version...let's hope next release will have a fix.

Still very much an issue, not stale.

Fixed with v2.0.0, Once released.


[FEATURE] Add Multi-Language Support for Global Accessibility

Is your feature request related to a problem? Please describe.
Implement multi-language support , allowing users from different regions to interact with the website in their preferred language. This feature will enhance accessibility and usability, making it easier for non-English-speaking users to browse the site.
Describe the solution you'd like
Set up a language selection dropdown or toggle in the header/footer for easy switching.
Store language preferences using cookies or local storage.
Ensure that the translated content adapts dynamically based on the selected language.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
please assign this to me under gssoc-ext and hacktoberfest @MitulSonagara

@sezallagwal
Thanks for raising the issue to our repo... but i have no plans for adding feature like multi language support


[Core] ADAL to MSAL migration

Close #18944
Description
As ADAL has been deprecated, Azure CLI needs to be migrated from ADAL to MSAL.
How CLI authentication works
During initialization:
             _get_mgmt_service_client
             /                      \
          1 /    CredentialAdaptor   \ 2
           v                          v
get_login_credential                SDK client

The client factory azure.cli.core.commands.client_factory._get_mgmt_service_client calls azure.cli.core._profile.Profile.get_login_credentials to get an instance of CredentialAdaptor.
_get_mgmt_service_client feeds the CredentialAdaptor instance into the SDK client.

During invocation:
           Track 1/2 SDK client
                    |
                    v     signed_session/get_token
            CredentialAdaptor
                    |
                    v     get_token
UserCredential / ServicePrincipalCredential

CredentialAdaptor

When Track 2 SDK client makes an HTTP call, azure.core.pipeline.policies._authentication.BearerTokenCredentialPolicy calls the get_token method on the CredentialAdaptor.
When Track 1 SDK client makes an HTTP call, msrest.pipeline.requests.RequestsCredentialsPolicy calls the signed_session method on the CredentialAdaptor, signed_session calls get_token.

UserCredential/ServicePrincipalCredential
Since Azure Identity has been dropped for User and Service Principal authentication, the MSAL integration is implemented in src/azure-cli-core/azure/cli/core/auth/msal_authentication.py.
There are 2 kinds of credentials:

UserCredential (inherit from PublicClientApplication)
ServicePrincipalCredential (inherit from ConfidentialClientApplication)

They all expose get_token so that they implement azure.core.credentials.TokenCredential.
Cross-tenant authentication
Cross-tenant authentication is implemented by simply adding header x-ms-authorization-auxiliary by _prepare_mgmt_client_kwargs_track2.
There were asks (https://github.com/Azure/azure-sdk-for-python/issues/8313, https://github.com/Azure/azure-sdk-for-python/issues/17764) on Python SDK to implement cross-tenant authentication but it hasn't been implemented.
Previously, CLI considered implementing a custom policy ExternalAuthenticationPolicy to achieve it, but is not implemented either due to its unnecessary complexity. Querying long-running operation result doesn't need auxiliary token, so no need to implement the get_token callback.
BREAKING CHANGES

az account show/az ad sp create-for-rbac: --sdk-auth is removed (https://github.com/Azure/azure-cli/pull/19414).
ADAL token cache and service principal secrets are no longer written to ~/.azure/accessTokens.json

Changes on following objects are not considered breaking changes, but they may be used by end users or libraries:

azure.cli.core.adal_authentication is removed, including

AdalAuthentication

_token_retriever
_external_tenant_token_retriever

If you depend on them, consider using public methods:

azure.cli.core._profile.Profile.get_raw_token
azure.cli.core._profile.Profile.get_login_credentials

Testing Guide
Test for different account types

User

auth code flow
device code flow
username password flow

Service Principal

secret
certificate
client assertion (federated token)

Managed Identity

clientId
objectId
resourceId

Test for different SDK scenarios

mgmt plane SDK client

resource
storage account
vm
network
...

data plane SDK client

storage: blob, table, ...
keyvault: keys, secrets, ...
...

cross-tenant operations

resource: template deployment
network: vnet peering

Test for different clouds

AzureCloud
Sovereign clouds
Azure Stack

AAD authentication
ADFS authentication

References

{Identity} Identity new features: https://github.com/Azure/azure-cli/pull/14690
Old PRs related to Azure Identity and MSAL integration: https://github.com/Azure/azure-cli/pulls?q=is%3Apr+label%3AMSAL
ADAL to MSAL migration guide for Python: https://docs.microsoft.com/en-us/azure/active-directory/develop/migrate-python-adal-msal

MSAL migration

GitHub Action team will help test MSAL-based Azure CLI as tracked in https://github.com/Azure/github/issues/104.

If you are curious, the token cache and service principal entries are saved under ~/.azure folder:

encrypted
plaintext

MSAL token cache
msal_token_cache.bin
msal_token_cache.json

Service principal entries
service_principal_entries.bin
service_principal_entries.json

⚠ They are private to Azure CLI. Please don’t decrypt or read from them in any way.
We don’t use Azure Identity’s shared token cache ~\AppData\Local\.IdentityService\msal.cache anymore because we have dropped Azure Identity.

Why Azure Identity is dropped in the migration
Azure Identity has several limitations:
No logout
Azure Identity doesn't have a logout functionality which is required by az logout. Azure CLI has to directly talk to MSAL to call ClientApplication.remove_account.
No data parameter
Azure Identity can't pass data parameter to get_token method. This parameter is used to get VM SSH certificate.

Azure Identity moved the functionality of passing data argument to get_token for user account: https://github.com/Azure/azure-sdk-for-python/pull/16323#discussion_r566565254
Azure Identity rejected the proposed change of passing data argument to get_token for service principal: https://github.com/Azure/azure-sdk-for-python/pull/16397

Because of this limitation, Azure CLI has to directly talk to MSAL to get VM SSH certificate. As getting a certificate is a superset of setting an access token, once getting certificate with MSAL is implemented, there is no need to use Azure Identity to get access token. Doing so will make Azure CLI dual-stack and hard to maintain.
Not able to turn off token encryption
There are scenarios where encryption is available but not working as expected. Azure Identity uses the allow_unencrypted_storage approach which makes it impossible to force unencrypted token cache. Application using Azure Identity will be blocked in such case with no workaround.
Azure CLI adds an option core.token_encryption to disable token encryption so that Azure CLI can run without encryption (https://github.com/Azure/azure-cli/issues/19506).


Expand DropdownButton width based on isExpanded flag

Fixes #13135, #16606

Manually updated the CLA to yes since the other patch author consented for their commits to be contributed to this project in PR #19450.

 modulo comments.
Might be interesting to do a golden test for this.

From what I can tell the repaint boundary is used to crop the goldens to the size of the widget, so that's why I added it in to the test. l'll mention it in the commit message too.


fix: persists query param in redirect urls

Description
Fixes truncated query params in redirect URLs
Fixes #11422
Type of change

Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Manual
Cypress

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes

/ok-to-test sha=dc059d6


WW-4590 - Allow to use multiple names in result

Allow to use multiple values in result tag name attribute and in Result annotation name.
So this typical configuration:
<action name="save">
    <result>success.jsp</result>
    <result name="error">input-form.jsp</result>
    <result name="input">input-form.jsp</result>
</action>

Can be shorten to that:
<action name="save">
    <result>success.jsp</result>
    <result name="error, input">input-form.jsp</result>
</action>

And this annotations:
@Action(results = {
    @Result(name="error", location="input-form.jsp"),
    @Result(name="input", location="input-form.jsp"),
    @Result(name="success", location="success.jsp")
})

To that:
@Action(results = {
    @Result(name="error, input", location="input-form.jsp"),
    @Result(name="success", location="success.jsp")
})

Great idea!

Annotations allow multivalued attributes in the form of arrays. Using this makes it obvious that you can supply multiple result names for a single result configuration.
@Action(results = {
@Result(name={"error", "input"}, location="input-form.jsp"),
@Result(name="success", location="success.jsp")
})

@swiftelan I was thinking about that too, BUT:

It will break backward compatibility
I kind of like that annotation attributes looks the same as in xml configuration

@aleksandr-m
An annotation attribute that is defined as an array does not have to have the curly braces to define a single value for that attribute.
Basing a Java API for configuration on XML syntax is a poor implementation. Why not support the entire XML configuration syntax in the annotation? Java has APIs to express a collection of items. It is much easier to utilize an array than a comma separated value attribute. The array allows the developer to clearly express their intent. Utilizing an array does not require parsing when the configuration value is accessed.

@swiftelan So you are proposing to change only type? The name of the attribute will stay the same i.e name, right? There is still some chance that something going to break, note that ResultInfo depends on Result's name. But it is better than changing the name.
@lukaszlenart WDYT about changing Result's name to String[] name() default com.opensymphony.xwork2.Action.SUCCESS; and probably removing public ResultInfo(Result, PackageConfig, String, Class<?>, Map<String, ResultTypeConfig>) constructor?

@aleksandr-m I'm ok with that and I agree with @swiftelan - let's follow standards

I would like to merge this PR and start release process of BETA3 :)

Done. We should add notice in the release notes about breaking change in ResultInfo / @Result for those who use Result.name() or extend ResultInfo.


[Private graph] Schema based generic storage [Design doc]

Uploading here to be able to refer in docs


D3DDevice_SetTextureStageStateNotInline Signatures Needs Improvement

Due to what it seems like several different versions of D3DDevice_SetTextureStageStateNotInline function. Some has return, some don't. Plus need to determine which one are, possibility, inline'd into title's codebase and which are not. And some turns out doesn't have callee? Might be due to Ghidra didn't complete generate disassembly analysis. These errors came from finding symbols in .text section introduced in #186 pull request.
The following useful titles that are difficult to resolve for inspection:

The Thing (4627)
DDS9 (4928)
CrimsonSea (5120)
Speed Kings (5344)
The Italian Job (5344)
Freaky Flyers (5455)
Call of Duty 2: Big Red One (5849)

A version of SetTextureStageState seems to not be detected in various D3D8 3911 games.
D3DDevice_SetTextureStageState 3911 (fastcall)
halo ce:
jp
md5: fb9b5f83e17a2909298e05e8f0252507
Address: 0019bd80

2276
md5: c7869590a1c64ad034e49a5ee0c02465
Address: 001e9410

2276
md5: 37bf3f00a8915dc8423b35452fdb95a3 dd670b2af5f0c9af20b1c5106f2f01a2
Address: 00180810

us
md5: 7f6cc2900594c9e46c927d2d304b43da 5bcda9f44b0d67e8d60f133b6b0b973a e7b18148a665a13c6ed710f710e5c44b
Address: 00182150

Dead or Alive 3:
usa
md5: f502d8a89e5cda7df2e74b5d8e159b71
Address: 001b2440


File-context-printer has really long build paths.

This is mostly because of the library directory that everything exists in. It's causing builds to fail on windows when trying to make them relocatable. I think that removing the library directory may be sufficient.
The other issue is that the factories make really long path names during the build.

FCP 0.0.3 addresses this


Add basic support for the express firmware target

Coverage increased (+0.08%) to 27.41% when pulling 9b6af2f19eb47da2524f4081c44e8dc2ff36092a on express into 5c8b77a92427e375db466e1cff96df688a50bcc1 on next.


Error in Query Params

Description
Unexpected error in query string
Expected behavior
This is my route in Vue Component
 <a class="btn btn-default btn-xs" :href="route('posts.show', [{id: item.id}, {event: 1}, {venue: 2}, {page: 5}])">
And this is the Result:
posts/32?0[event]=1&1[venue]=2&2[page]=5
There are wrong characters like an array of params [0] event [1]venue
Environment

Laravel version: 8.0
Ziggy version: 0.9.4

Can you please share your route definition for that route and the relevant portion of the output when you run console.log(Ziggy.routes)?

This is the route generated with ziggyjs:
"posts.show":{"uri":"admin\/posts\/{post}","methods":["GET","HEAD"],"domain":null}
and this is the console log of that path:
posts.show:
domain: null
methods: Array(2)
0: "GET"
1: "HEAD"
length: 2
__proto__: Array(0)
uri: "admin/posts/{post}"

can I share anything else that may be useful?

I think the problem is when i call a route with id.
I try to change route with optional parameters but doesn't work
Route::get('/posts/{id?}', [UserController::class, 'show'])->name('posts.show');

Try passing all the params as just one object:
route('posts.show', { id: item.id, event: 1, venue: 2, page: 5 });

There was an issue with Ziggy v0.9.x at some point that had to do with passing params called id, so if the above doesn't work, I would suggest either updating to Ziggy v1 or separating out the query parameters like this:
route('posts.show', item.id).withQuery({ event: 1, venue: 2, page: 5 });

Resolved with
route('posts.show', item.id).withQuery({ event: 1, venue: 2, page: 5 });
Thank You!


minor version bump of azure-storage-blob to fix builds

It appears the version 12.6.0 of com.azure:azure-storage-blob has
been removed from the maven central repo.  Our builds have been failing
for about 3 days trying to download it.  Version 12.7.0 is available,
so hack around the build problems by upgrading one minor version.
A typical failing build is: https://app.travis-ci.com/github/apache/openwhisk-runtime-rust/jobs/531822834#L279

Codecov Report

Merging #5150 (39605e3) into master (209dc44) will increase coverage by 22.88%.
The diff coverage is n/a.

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


Have mvnd run for some popular Maven projects to show performance improvements

The project looks promising and it would make a good argument to know the performance improvement of running the builds with mvnd and without. That allows the developers to quantify the performance improvements, and take a much better call.
Projects for benchmarking

Apache Spark

Apache Flink

Guava

Apache Dubbo

Netty

More....

Quarkus

Someone should see if this is possible with Github Actions (not sure how "stable" the runs would be time-wise, but I doubt they differ much across runs).
I might take a look at this once I have the time.

How imporvenment  between mvnd  and  mvn parallel buld?  e.g. mvnd -T 1C
In my viewPoint，Mvnd benefit from daemon service rather than parallel build compared to maven3

Some caching is done in mvnd which provides some performance boosts even in multi-module projects.  But a large part of the reduced wall-time actually comes from running a parallel build, which is similar to mvn -T 1C, though the output looks much better I'd say...

How imporvenment between mvnd and mvn parallel buld? e.g. mvn -T 1C In my viewPoint，mvnd benefit from daemon service rather than parallel build compared to maven3

I withdraw what I said after read https://peter.palaga.org/2021/01/11/mvnd-parallel-builds.html#smart_builder_by_default , a little different with stardard maven parallel build

I did an experiments in a multi-module projects(43 sub-modules, sorry for not able to provide the internal code) on a machine with 128 cores, with build command:
mvnd -pl $MODULES -am spotless:apply clean --no-snapshot-updates install
vs
mvn -T 1C -pl $MODULES -am spotless:apply clean --no-snapshot-updates install

scala: 2.12.12
mvn: v3.6.0,  ~ 03:49min
mvnd: v0.8.2, ~ 03:50min
NO performance improvements found, though the output looks much better just during building project(it seems that the stdout output is almost same, which is just rendered by mvnd during build, i.e. non-rolling view).
considering building uber-jar with maven-shade-plugin:3.4.0, the performance bottleneck maybe the conflicts check and copy deps during assemble stage (offline-all)


Drop items are not necessarily deep copied

Issue https://github.com/codef0rmer/angular-dragdrop/issues/143 had been closed, but items still were deep copied even when settings were specifying not to do so.

@damrem Thanks man..! Can you add a unit test?

@codef0rmer Sure! I should find some time soon.

Hey, I've finally added tests.

@damrem Thanks for adding tests. I noticed that the direction animation breaks by not using deepCopy by default in https://github.com/codef0rmer/angular-dragdrop/blob/master/demo/dnd-insertInline.html.
I do not remember If I intentionally left it to deep copied for animation to work. Did you face any problem with that?


Use right semantic icon styles to fix star icon

Fix for #5208
Gogs: <IP_ADDRESS>6

Update font-awesome to latest 4.x version.
Restore content for fa-star(-o) styles. Which is overridden by semantic styles.

Thanks for the PR!

Please read https://github.com/gogits/gogs/wiki/Contributing-Code#coding-guidelines
Is updating Font Awesome to 4.7 not able to fix the fa-star style? But if the only solution is to override the style, I have no problem with that.

Sorry, forgot about less. I'll remake PR.
Nope, updating FW to 4.7 not fixed styles.
It's somehow messing with semantic syles.
So I override some styles.

Bump.
And no need to mess with css.

Can you take a screenshot of new change?

Clean:

With dev-tools:

Thanks, how about icons after change (starred, unwatch)?

Icons after change (starred, unwatch):

Got these classes from: https://semantic-ui.com/elements/icon.html

LGTM.


S7 [User Story] Add group transactions payloads to inbound queue

[User Story]
S7 [User Story] Add group transactions payloads to inbound queue

Epic Title
#333

User Story Title
Add group transactions payloads to inbound queue

T-shirt size: S(mall), M(edium), L(arge)
M

Story Points - Fibonacci (1,2,3,5,8,13)
5

User Story
Add group transactions payloads to inbound queue

Description

Business Need (the why):

Details

Additional User Story

Acceptance Criteria/Tests

Dependencies

Assumptions

Questions/Clarifications

included in #671


Add/Remove final Mods

Add
Astral Sorcery update
jei update
Refraction
Simple Covers
Animus
BBtweaks

Remove
Crafting Harmonics

This found its way out of the pack at some point. Needs to go back in. https://minecraft.curseforge.com/projects/mod-name-tooltip


Language Support

Hi a few questions, does this model work only on English?
If so, what would it take to train it on another language or script type?
Would it need to be pretrained again using self-supervision and how expensive is the pre-training process computationally?
Thank you!

+1

UDOP currently is English-only. To fully replicate this work on multilingual domain, you will need multilingual documents with OCR annotations, and labeled multilingual document for supervised pretraining.


Depend on joda-time directly instead of nscala-time

nscala-time should depend on joda time instead of nscala because
nscala is a wrapper around joda time
there is only one code statement in nscala-time that relies on nscala which can be replaced with a joda level library statement
some people use joda in scala who do not use nscala

+1 from me (random scalaz user)
The name of the root folder should be renamed to "joda-time", no?


Add default block_number parameter, fix return types

Please check if the PR fulfills these requirements

[x] The formatter, linter, and tests all run without an error
[x] Tests for the changes have been added (for bug fixes/features)
[x] Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Closes #152

What is the current behavior? (You can also link to an open issue here)

No block_hash or block_number is passed explicitly
What is the new behavior (if this is a feature change)?
Added a default block_number="latest" parameter
Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
Np

I'm unsure whether we should default to latest or pending. Waiting for the reply from StarkWare but this may need to be changed before review.

After consulting with StarkWare, I've decided to use "pending" as a default parameter.


Cookbook guide is inconsistent with latest template

The section Update repository-specific text currently says that "tags" and "thumbnail" should be edited in _config.yml but these fields are actually in _gallery_info.yml.

Also I think this line is not needed and should be removed:
Edit the notebooks/how-to-cite.md file with your Cookbook title in the line, “The material in is licensed …”

because the boilerplate text is just "The material in this Project Pythia Cookbook is licensed ..." and that's good enough for most.

In general I think that some of the steps in the Cookbook guide can be reordered. I don't think it makes sense to ask people to fill out the CITATION.cff file until after content development. The guide should focus on getting people building content as painlessly and possible, and then follow up with additional steps for getting the Cookbook reviewed and listed on the Gallery.

One more point: when the repo is transferred to ProjectPythia org, there are quite a few URLs that need updating across multiple files. In many ways it would be simpler to encourage people to reverse the order: transfer the repo immediately, before running the trigger-replace-links action.
We should encourage people to see parking the repo in the ProjectPythia org just a simple way to express intentions to eventually have the work appear in the Pythia gallery, as well as inviting collaboration.
Review and acceptance into the gallery is an entirely separate step.

I will attempt a PR that reorders the instructions and resolves the inconsistencies noted above.

Our current guide also says nothing about the testing and publishing infrastructure, and how to interact with Pull Requests, previews, etc. I'm adding detail about this to the revised guide.


Fix: detecting goroutine leak

Codecov Report
Patch coverage: 88.23% and no project coverage change.

Comparison is base (6c66a9b) 88.95% compared to head (788b1f3) 88.96%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #191   +/-   ##
=======================================
  Coverage   88.95%   88.96%
=======================================
  Files          18       18
  Lines        1059     1069   +10
=======================================
+ Hits          942      951    +9
- Misses         86       87    +1
  Partials       31       31

Impacted Files
Coverage Δ

input_spliter.go
87.50% <77.77%> (+4.16%)
:arrow_up:

pipeline_tree_grower.go
90.16% <100.00%> (+0.50%)
:arrow_up:

root_generator.go
79.12% <100.00%> (+0.71%)
:arrow_up:

... and 1 file with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


fix: Updating spec for member roles

Description

Updating spec for member roles

Fixes # (issue)
Type of change

Integration test update

How Has This Been Tested?

Cypress

Checklist:
Dev activity

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[ ] PR is being merged under a feature flag

QA activity:

[ ] Test plan has been approved by relevant developers
[ ] Test plan has been peer reviewed by QA
[ ] Cypress test cases have been added and approved by either SDET or manual QA
[ ] Organized project review call with relevant stakeholders after Round 1/2 of QA
[ ] Added Test Plan Approved label after reveiwing all Cypress test

/ok-to-test sha=0510056


Variables in Kotlin: Android Basics with Compose

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-compose-variables?hl=fr&continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-1-pathway-1%3Fhl%3Dfr%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-variables#5
In which task and step of the codelab can this issue be found?
6
Describe the problem
Les noms des variables doivent être en majuscule et commencer par une lettre minuscule
==> toutes les variable sont en minuscule.
Steps to reproduce?
NA

Hi @Benimacle
Thank you for reporting this issue.
It is a duplicate that is scheduled to be fixed so I will be closing this issue.
Hope you are enjoying the course!
Regards.


Use default theme

Hi @ezand, thanks for this fine addon - using it daily.
One wish from me is if you could adher to the theme standard instead of whats currently going on (where white background is forced)? Heres an pic to show you what I mean

The posten card kind of standsout, while it doesnt need to (IMHO). Perhaps make it optional?

I totally agree @jkaberg. This is actually in my plans to do when I get the time :-) This was kind of my first attempt on a Lovelace card, to experiment. So it definitely needs some improvements. I think I will make most part of it customizable, including the theme 👍

I totally agree @jkaberg. This is actually in my plans to do when I get the time :-) This was kind of my first attempt on a Lovelace card, to experiment. So it definitely needs some improvements. I think I will make most part of it customizable, including the theme 👍

Bump on support for dark/night mode.
Anyways - thanks for your efforts!


Colcon build fail on the package

Hello everyone,
When building this package, Colcon build failed and returned the following error message:
32:10: fatal error: tf2_geometry_msgs/tf2_geometry_msgs.hpp: No such file or directory
32 | #include "tf2_geometry_msgs/tf2_geometry_msgs.hpp"
|          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Summary: 1 package finished [21.6s]
1 package failed: ros2_ouster
1 package had stderr output: ros2_ouster
I'm guessing an tf2_geometry_msgs.hpp can be found somewhere, but where should I place it?
Is there a specific process for this driver when installing over ROS2? Anyone else getting the same error? How did you resolve it? HELP!

Foxy Fitzroy

Use the foxy branch. Ros2 is for bleeding edge


create controllers

create users and posts controller

create the 7Restful routes using resources
use nested resources; nesting the post resources inside the user resources
create the User controller and it view file
create the post controller

Hi @Tobby8629, Kindly fix the linter errors 👍🏿

i fixed them, thank you very much 🙏🏽


Unable to run the example

I am somehow unable to build and run the example with version 2.2.0
mvn clean spring-boot:run
I keep getting

Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'org.jadice.gwt.spring.demo.server.TimeServiceImpl' to required type 'jakarta.servlet.Servlet' for property 'servlet'; Cannot convert value of type 'org.jadice.gwt.spring.demo.server.TimeServiceImpl' to required type 'jakarta.servlet.Servlet' for property 'servlet': no matching editors or conversion strategy found

I tried with JDK 17 and JDK 21

I had to change gwt-servlet to gwt-servlet-jakarta and change RemoteServiceServlet as com.google.gwt.user.server.rpc.jakarta.RemoteServiceServlet and boom it works on JDK 17 and JDK 21


Update equinix terraform provider to v3.0.0

There is an issue. I will fix and get back,

There is an issue. I will fix and get back,

3.0.0 is not yet published in the terraform registry. The latest in 2.11.1

I confirm.

The version 3.0.0 is now available.
I'm trying it...


model.destroy foreign key

Hi,
How does one go about deleting nested resources that need to be authorized server-side? I'm using Backbone in a Rails app and I have multiple nested layers and I am obviously not going to just let anyone delete any resource without proper authorization.
So I have the standard current_user as my "session" method, which I scope everything through, but now I need to go two levels (or more) deep, this is when the issues arise.
Here's a basic example:  User > Post > Comment
Server-side controller
class CommentsController < ApplicationController
  respond_to :json

  def destroy
    respond_with current_user.posts.find(params[:post_id]).comments.find(params[:id]).destroy
  end
end

In CoffeeScript:
comment.destroy()

In the shell:
Started DELETE "/comments/4f52d3518aa92a91e4000003"

It hits the proper URL, but it would be nice to somehow be able to pass in the foreign key for the post model so I don't have to first load every Post by the current user in memory on the server just to map through them to find the comment.
So I tried something like this:
comment.destroy({data: { post_id: comment.get("post_id") }})

Then, printing out the params on the DELETE request: Parameters: {"object Object"=>nil, "id"=>"4f52d5878aa92a9203000004"}
I also tried it without nesting the params in data: but that didn't help:   Parameters: {"id"=>"4f52d5878aa92a9203000004"}
So if I didn't just overlook it, and this is not supported, can anyone tell me how one handles the deletion of nested resources?
Thanks!

One way I thought of getting around this would be to work my way backwards on the server-side. But would anyone recommend against doing this?

  def destroy
    @comment = Comment.find(params[:id])
    if @comment.post.user == current_user # verify that this user owns the comment
      respond_with @comment.destroy
    end
  end

Please advise.


Tap on TextField shouldn't rebuild whole StatefulWidget

@override
 Widget build(BuildContext context) {
   **print("rebuild context again");**
   int prevUserId;
   return Scaffold(
     body: Column(
       children: <Widget>[
         Expanded(
           child: ListView.builder(
             reverse: true,
             padding: EdgeInsets.all(20),
             itemCount: messages.length,
             itemBuilder: (BuildContext context, int index) {
               final Message message = messages[index];
               final bool isMe = message.sender.id == currentUser.id;
               final bool isSameUser = prevUserId == message.sender.id;
               prevUserId = message.sender.id;
               return _chatBubble(message, isMe, isSameUser);
             },
           ),
         ),
         **_sendMessageArea(),**
       ],
     ),
   );
 }

 _sendMessageArea() {
   return Container(
     padding: EdgeInsets.symmetric(horizontal: 8),
     height: 70,
     color: Colors.white,
     child: Row(
       children: <Widget>[
         IconButton(
           icon: Icon(Icons.photo),
           iconSize: 25,
           color: Theme.of(context).primaryColor,
           onPressed: () {},
         ),
         **Expanded(
           child: TextField(
             decoration: InputDecoration.collapsed(
               hintText: 'Send a message..',
             ),
             textCapitalization: TextCapitalization.sentences,
           ),
         ),**
         IconButton(
           icon: Icon(Icons.send),
           iconSize: 25,
           color: Theme.of(context).primaryColor,
           onPressed: () {},
         ),
       ],
     ),
   );
 }

I just sample short code but you can download full from here
Pradip Debnath
problem was every time we tab on TextField it rebuild whole widget.

@SokHo
Cloned your repo and tapped on textfield to type in a message, but didn't notice the screen being rebuild.
69689.mp4.zip
Also try this and see what actually is triggering a rebuild in your case. And see this comment for your reference.

@darshankawar
I mean you can add some print code to see rebuild,
@override
Widget build(BuildContext context) {
print("rebuild context again and again"); try print over here
int prevUserId;
....

flutter doctor -v
[✓] Flutter (Channel stable, 1.22.3, on Mac OS X 10.15.4 19E2269, locale en-IN)
    • Flutter version 1.22.3 at /Users/dhs/documents/Fluttersdk/flutter
    • Framework revision 8874f21e79 (6 days ago), 2020-10-29 14:14:35 -0700
    • Engine revision a1440ca392
    • Dart version 2.10.3

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
    • Android SDK at /Users/dhs/Library/Android/sdk
    • Platform android-30, build-tools 30.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.0.1, Build version 12A7300
    • CocoaPods version 1.9.3

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 46.0.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.50.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.15.1

[✓] Connected device (2 available)
    • Darshan's iphone (mobile)           •
      21150b119064aecc249dfcfe05e259197461ce23 • ios • iOS 14.0
    • iPhone SE (2nd generation) (mobile) • 6C85835D-FBFD-4AB3-8DE8-B4FAD35E5367
      • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-0 (simulator)

• No issues found!

flutter: rebuild context again and again
flutter: rebuild context again and again
flutter: rebuild context again and again
flutter: rebuild context again and again
flutter: rebuild context again and again
flutter: rebuild context again and again

flutter doctor -v
flutter: rebuild context again and again
flutter: rebuild context again and again
flutter: rebuild context again and again
flutter: rebuild context again and again
flutter: rebuild context again and again
flutter: rebuild context again and again

Yes, as you can see it's rebuild all the time when we tap on TextField.
So did you have solution for this?

Hi @SokHo, I verified the issue on the latest stable and the master channel and cannot reproduce the issue. I think this issue has been fixed.

code sample
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        body: Center(
          child: TestWidget(),
        ),
      ),
    );
  }
}

 class TestWidget extends StatefulWidget {
  const TestWidget({super.key});

  @override
  State<TestWidget> createState() => _TestWidgetState();
}

class _TestWidgetState extends State<TestWidget> {

   _sendMessageArea() {
   return Container(
     padding: EdgeInsets.symmetric(horizontal: 8),
     height: 70,
     color: Colors.white,
     child: Row(
       children: <Widget>[
         IconButton(
           icon: Icon(Icons.photo),
           iconSize: 25,
           color: Theme.of(context).primaryColor,
           onPressed: () {},
         ),
         const Expanded(
           child: TextField(
             decoration: InputDecoration.collapsed(
               hintText: 'Send a message..',
             ),
             style: TextStyle(color:Colors.black),
             textCapitalization: TextCapitalization.sentences,
           ),
         ),
         IconButton(
           icon: const Icon(Icons.send),
           iconSize: 25,
           color: Theme.of(context).primaryColor,
           onPressed: () {},
         ),
       ],
     ));
 }

  @override
  Widget build(BuildContext context) {
    print('Widget rebuilds');
    return Scaffold(
     body: Column(
       children: <Widget>[
         Expanded(
           child: ListView.builder(
             reverse: true,
             padding: EdgeInsets.all(20),
             itemCount: 20,
             itemBuilder: (BuildContext context, int index) {
                return ListTile(
                  title: Text('User $index'),
                  onTap: () {
                   FocusScope.of(context).unfocus();
                  },
                );
             },
           ),
         ),
        _sendMessageArea(),
       ],
     ),
   );
  }
}

logs
Restarted application in 356ms.
flutter: Widget rebuilds

Closing, Incase you still encounter the issue. Feel free to write in the comments and we will reopen it.
Thank you.


Investigate verifying EDDN Senders

A scheme has been proposed to know who is sending data to EDDN and thus give the ability to ban the game account if needs be.

Require a one-time Frontier oAuth2 verification on an EDDN server.
When that succeeds generate some form of token for the user.  This will be passed back to the calling application (Sender <-> EDDN token server <-> Frontier oAuth2).
The Sending software will then set this token as extra information in the /upload/ request.
The EDDN Gateway will in some manner verify it's both a valid token and that the token hasn't been banned.

There are lots of details to work out with this.  Some issues:

The user should not be able to simply re-initiate verification to get a new token.  So the 'token server' would need to be storing something like the FID that comes back to know if to allow this or not.  This FID is already readily available (along with actual PII) to any application performing Frontier oAuth2, or indeed the FID is right there in the Journal files in the Commander event.
Either the EDDN Gateway will need access to the list of valid tokens, or the tokens will need to be cryptographically verifiable in some manner.  The Frontier oAuth2 'bearer tokens' themselves use such a scheme, being an RSA encrypted string (presumably the private key is only on the auth server and the CAPI servers have the public key in order to decrypt and verify them).
Third-party websites that retrieve CAPI data and send it to EDDN will need special handling.  This could take the form of their tokens being special and site-wide.  They're already taking the data directly from Frontier so there are no worries about its authenticity.
At least during the rollout phase, and there's no reason not to continue it later, the EDDN Gateway/Relay will add some indication of "this message is from a verified sender".  Listeners can then use that indication when deciding whether or not to use the data.

Wanted to point out, this is something Canonn had proposed many years ago and there was a passport package created just for Frontier: https://www.npmjs.com/package/passport-frontier
Since this is something we proposed a while ago, there was some concerns about GDPR and it's why we opted to enable our own "blacklist" system on the Canonn API previously. Personally I think it's a great idea and would go leaps and bounds to improve data integrity or at the very least to prevent abuse.

It does not stop journal spoofing.
Its just a means of making it more painful for a detected scamster.
Only if EDDN spamming gets out of control we should implement it.

In order to prevent spoofing of data we'd need to tie the messages sent to EDDN with a verified FID,  We'd need to get the sending app to generate a key and have it signed by the fdev authentication service and then have the sender sign the EDDN messages with this key.  This would probably break GDPR because we'd be able to track the whole game session for a very long time.


tutorial_sine_wave.py fails

System config:

Ubuntu 14.04 x86_64
Python 3.4
InfluxDB 0.9.0-rc18
influxdb-python 1.0.2

Attempting to run the tutorial_sine_wave.py programme produces this output:
python3 tutorial_sine_wave.py
Create database: tutorial
Traceback (most recent call last):
  File "tutorial_sine_wave.py", line 66, in <module>
    main(host=args.host, port=args.port)
  File "tutorial_sine_wave.py", line 35, in main
    client.write_points(data)
  File "/usr/local/lib/python3.4/dist-packages/influxdb/client.py", line 255, in write_points
    retention_policy=retention_policy)
  File "/usr/local/lib/python3.4/dist-packages/influxdb/client.py", line 289, in _write_points
    expected_response_code=200
  File "/usr/local/lib/python3.4/dist-packages/influxdb/client.py", line 200, in write
    expected_response_code=expected_response_code
  File "/usr/local/lib/python3.4/dist-packages/influxdb/client.py", line 191, in request
    raise InfluxDBClientError(response.content, response.status_code)
influxdb.client.InfluxDBClientError: 500: {"error":"fields required"}

Is there currently a working way to write multiple samples (using the 'columns' and 'points' keys) or are we stuck writing single points, using 'fields' and 'timestamp'?

But then using the web interface to write this JSON:
[{
  "name" : "hd_used",
  "columns" : ["value", "host", "mount"],
  "points" : [
    [23.2, "serverA", "/mnt"]
  ]
}]

which is taken directly from the 'Writing data through HTTP' section of the documentation, also fails, with an HTTP 500.

I've confirmed that the version of Python involved is not important - the same error happens with Python 2.7.

Hello!
This tutorial is outdated! Sorry :(
An updated example of the new points format can be found here: http://influxdb.com/docs/v0.9/concepts/reading_and_writing_data.html
There is also an example in the README of this repo.
I will update tutorial_sine_wave as soon as I find time.

See https://github.com/influxdb/influxdb-python/commit/120d4db1e32768d8ff911447aab11ce7d6c43a16 . I should commit this soon.

So, if I've read that right, then to insert multiple points, I have to do this:
data = [ {
    'name' : 'cpu',
    'tags' : { ... },
    'fields': { 'value': 90 }
  }, {
    'name' : 'cpu',
    'tags' : { ... },
    'fields': { 'value': 80 }
  }, {
    'name' : 'cpu',
    'tags' : { ... },
    'fields': { 'value': 70 }
  }
]
client.write_points(data)

Is that right?  If so, it seems rather a step back from the old way:
data = [ {
    'name' : 'cpu',
    'tags' : { ... },
    'columns' : { 'value' },
    'points' : [ [90], [80], [70] ]
} ]
client.write_points(data)

Or am I missing something?

That is not quite right @tomkcook. Take a look at:
http://influxdb.com/docs/v0.9/concepts/reading_and_writing_data.html#writing-multiple-points
to see how to write multiple points in one POST, and if the tags are the same, they can be pushed up to the top of the batch, reducing the size of the POST body.

Okay, but the series name and column names have to specified for every sample?  Also, it seems precision has to be specified for every sample (in InfluxDB 0.9.0-rc20, at least).

No, as per the link, timestamp details can be common too. The format of that "common" timestamp can be either with precision, or be in RFC3339Nano format.

Oh, I think I see; so precision has to be specified alongside timestamp.  I can't specify common precision but timestamp per-sample.  Is that right?

That is correct, though I have opened a ticket to fix that: https://github.com/influxdb/influxdb/issues/2207.

@otoolep What about the serie name?
Specifying it as a common attribute got me "error: bucket name  required"

@tomkcook as of 3ab875aa70b117208746d3b21f76ae038e7cf657, you can easily write top-level tags with write_points.

Fixed in 941b5eb45647e03038b50a28f63580a088723349