Don't enumerate emulators unless --emulator flag is provided

See https://github.com/bitcoin-core/HWI/issues/652#issuecomment-1340149342 for motivation.
And https://github.com/bitcoin-core/HWI/issues/628.
I think there are other issues reported here which are caused by stalled enumerations where there is something else than an emulator running on a scanned port.

+1 on this - it's a common problem that is often time-consuming to diagnose.

Since that would be a breaking change to the interface, would it be acceptable to do the inverse - a --no-emulators option to explicitly ignore emulators?

Yes, that would work for me.

Since emulators are only used by developers and not regular users, I would be OK with changing the default. It would be also the most straightforward way how to fix weird issues easily in the whole ecosystem.
However, if you feel strongly about not changing it, I am fine with the --no-emulators option. But we would need to reach out to all downstream projects (wallets that use HWI), to add the option into their stack.

Mainly I don't want to change the default behavior since SemVer (which I'm trying to follow) requires bumping the major version for that.

Mainly I don't want to change the default behavior since SemVer (which I'm trying to follow) requires bumping the major version for that.

So why not bump the major version then?

So why not bump the major version then?

I suppose I could. Just feels weird to do that when there's nothing else going on.

I suppose I could. Just feels weird to do that when there's nothing else going on.

Yes. That is SemVer :-)


Component shows as never deployed even though it has been "deployed"

Component in the Component search screen shows as never having been deployed while the detail screen (and the related application) shows that it has indeed been deployed. Note that I used the default 'Deploy to environment' option to deploy manually.

The component was manually deployed to the environments so there is no log file to show.  The Last Deployment column shows the deployment log number for deployments that have been performed by the deployment engine.  "Never deployed" is trying to say that the deployment engine has not been used to deploy the component version.
Any ideas on how to re-word this?  Maybe "Never deployed", "Manual Deployment" or the deployment number.

I think it should be as consistent as possible with what would happen if the deployment engine had performed the task. So, if the deployment engine normally  puts a number there, a manual deployment should do the same thing if possible

The hard part is that a manual deployment doesn't have a deployment number.  So all we can do is use "Manual Deployment" in that column.  Do you think that will be clear enough?

'Manual deployment' is definitely  better than 'Never deployed' for sure.


⚠ Bofrost.at has degraded performance

In 510bb08, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 963 ms

Resolved: Bofrost.at performance has improved in d097b6e.


Fixed issue where windows paths broke xslimport

Fixed issue where windows paths broke xslimport.

@jensscherbl Why does the PAGES is not used anymore ?

Why does the PAGES is not used anymore ?

It is, it's already in the $page['filelocation'] (has previously been removed and then readded).

Oh ok great then.

Even with nested dev environment inside WAMP/XAMPP? i.e. http:\localhost\wamp\sym26/workspace/pages/page.xsl

If this can be confirmed this can be merged.

If this can be confirmed this can be merged.

What do you mean ?


Migrate CockroachDBConfigStore to @configu/integrations

Suggestion
Migrate the CockroachDBConfigStore from its current setup to the new @configu/integrations module as part of the major restructuring. The goal is to move all third-party integrations, including stores, expressions, and libraries, to @configu/integrations.
Motivation
This migration is part of a larger effort to better organize and modularize the product. Moving the CockroachDBConfigStore will align with the new structure, making the system cleaner and more maintainable.
Context
You can refer to the already migrated stores for guidance:
Migrated stores in integrations.
Base stores implementations from @configu/ts can be found here:
Base stores in TS.
The old node-based stores were previously in @configu/node:
Node stores.
The old browser-based stores were previously in @configu/browser:
Browser stores.

Interested , please assign @rannn505

All yours @gagandeepp


image size and density map size

Dear @flyinglynx
In your dataloader code, I see that img will be resized (in a range), but I dont see where you change the density map's size as well ?
Do I miss anything here :-?

Sorry, I used the provided density maps. I see some relevant issues in "https://github.com/cvlab-stonybrook/LearningToCountEverything". Maybe their discussion can help you.


Add pluggable HTTP backends

What:
Currently Crawly uses HTTPoison to perform requests. We want to make it more dynamic, to be able to use other HTTP clients, and headless browsers.
Why:
All currently known HTTP clients have some specific behaviors. Some sites would ban everything which does not look like a browser. Some sites would use JS to render web pages. We need to be able to address all these problems by dynamically configuring which backend to use in each concrete situation.

Done in #34


Change Default

Is there a way to make :safe the default behavior? I have a GEM that is failing and would rather not hack it.

IIRC this gem currently does not support default settings (unless you count re-aliasing one of the internal methods). My other gem does support defaults though.
- Felix


🔍 Pass-through MyST search JSON from content-server (1 of 2)

This PR adds some simple routing logic to handle myst.search.json. Whilst it does not add a UX for consuming this data, third-party tools can use it to search MyST sites.

Closing this; the contents are in #470


[zh] Localize feature-gates/v*.md

Related to issue #44410. Localize these v*.md:

validate-proxy-redirects.md
validating-admission-policy.md
volume-attributes-class.md
volume-capacity-priority.md
volume-pvc-data-source.md
volume-scheduling.md
volume-snapshot-data-source.md
volume-subpath-env-expansion.md
volume-subpath.md

/lgtm


Failed to Remove contents

Describe the bug
WARNING: Failed to remove contents in a temporary directory 'C:\Users\User\Desktop\pysilon-malware\pysilon\Lib\site-packages~=l'.
You can safely remove it manually.


group env vars are lost after action "merge selection to group"

Current Behavior
No response
Expected Behavior
No response
Steps To Reproduce
No response
Example flow
paste your flow here

Environment

Node-RED version:
Node.js version:
npm version:
Platform/OS:
Browser:

I'm going to close this as it doesn't contain any useful information, without the details (e.g. what version of Node-RED you are using, or a proper description of the problem and how to reproduce it) there is nothing we can do to solve the problem.
Please open a new issue and complete all the values in the template.

Of course you can close! Close all you want! you just makes the community miss the opportunity to get a bug fixed. And you're saying me not to spend some time to fill the issue next time.
The title is self explaining: make a group, add env vars to it. Add a node outside the group. Select both and choose "merge selection to group": all env vars are lots in the newly created group.

I know. As I am a Redmine / Bugzilla / Jira user I know the usual questions. But the more you ask, the less bug reports you'll get....


Enable PowerApps MDA Display controls Control for Custom Pages with Test Engine Support

Pull Request Template
Description
Enable PowerApps MDA Display controls for Custom Pages with Test Engine Support. This update involves creating a Power Apps MDA Custom page with all Display controls, and developing a test plan to verify runtime and design time control properties. Additionally, code changes have been made to support asserting blank values for each control.
Checklist

[x] The code change is covered by unit tests. I have added tests that prove my fix is effective or that my feature works
[x] I have performed end-to-end test locally.
[x] New and existing unit tests pass locally with my changes
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I used clear names for everything
[x] I have performed a self-review of my own code

@v-nabalasubr please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
@microsoft-github-policy-service agree [company="{your company}"]

Options:

(default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.

@microsoft-github-policy-service agree

(when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.

@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@v-nabalasubr please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
@microsoft-github-policy-service agree [company="{your company}"]

Options:

(default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.

@microsoft-github-policy-service agree

(when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.

@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree company="Microsoft"


Deprecating set-output command

Per https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Thanks @xinbenlv. However, I'll close this in favor of https://github.com/sidx1024/report-nyc-coverage-github-action/pull/37 which addresses another issue as well.

Thanks @xinbenlv. However, I'll close this in favor of https://github.com/sidx1024/report-nyc-coverage-github-action/pull/37 which addresses another issue as well.


Create a logo

Notree needs a logo!
There are some things to consider with the logo:

Color palette
Simplicity
How easy it is to remember
How unique it is

Once we've agreed on a logo, we should:

[ ] update the branding on the readme for notree and add the logo in
[ ] update the org "avatar" in Github

I'm going to throw out some options here, and we can collaborate to pick which specific options we like, or which themes we like and then iterate

@jollyjerr
I generated a few ideas above, let me know if you like any in idea or execution, and we can iterate. I'm stuck on a purple palette for some reason but if you're picturing a different color/palette system let me know!

omg I LOVE all of these

Let's roll forward w/ this one:


feat: include response data in error

Improved the onError callback, so that response data can be consumed:

onError (error: { code: string | number, message: string, { [key: string]: unknown }) => void
A callback that's invoked when the form errors on the server side. Can be used to show an error message.
If the error originates from the server, code will default to response.status, and message to response.statusText. The error object gets merged with the json returned from the server. So the defaults can be overwritten.
If the error originates from the client, code will be Error.name, and message the Error.message.

resolves #19

Closing, things will be better in #22


chore: rework the PWT page [sc-13458]

Affected Components

[ ] Content & Marketing
[ ] Pricing
[ ] Test
[x] Docs
[ ] Learn
[ ] Other

Pre-Requisites

[ ] Code is linted (npm run lint)

Notes for the Reviewer

TDB:

add new PWT steps UI when finished

New Dependency Submission

Screenshots

@miliberlin Could you resolve the conflicts here and re-push for a new preview?

@adamwardecki done 👍


TN-3125 oow_completion_date in adherence report

Look for the extension within QuestionnaireResponses defining the "actual" completion date, and if found, use in the adherence report in a new "oow_completion_date".

Hello @pbugni! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file portal/models/qbd.py:

Line 156:80: E501 line too long (94 > 79 characters)

In the file portal/models/reporting.py:

Line 250:80: E501 line too long (83 > 79 characters)


Several issues when I install the walletconnectv2 dependency into the new project

I have created a new Xcode project with version 15.2. When I install WalletConnectV2 dependency into the project and then build the code, then I get several issues. Can someone provide me the solution and also probably a demo on connecting to metamask in ios swift. I am also having this issue "Type 'SignClient' does not conform to protocol 'SignClientProtocol'". Also I have integrated the package with SPM and it gives me so much error. But the same thing I install with Cocoapods, it doesnt give me error. In the latter case how would i access WalletConnectModal. I dont how do i integrate this in ios swift project. Version 1 was easy to understand. Basically I want to connect to the metamask, sign the transaction, return to the dapp

"Type 'SignClient' does not conform to protocol 'SignClientProtocol'"
you are not suppose to init SignClient, take a look at out dapp usage docs
https://docs.walletconnect.com/2.0/api/sign/dapp-usage?platform=ios

@nick70007 WalletApp in our code is more relevant integration example now


added some Polish province names

The question arises: should I categorize all remaining province names in this file into regional groups, just as I did with all these new names?

So, I managed to group all these province names. All authors were moved to the beginning of the file so as not to delete them. All provinces were checked with the map forked from Github, so newer one than that available through Steam Workshop.

Thanks for your contribution!


Create Multithreading in Java

I have created a documentation on the topic of multithreading in Java, which includes core concepts and some pratical instructions.

This is a very detailed explanation of multithreading. However, from my current understanding, data sharing between threads is a key point in correctly utilizing multithreading to its max potential. As you mentioned above, thread share file, heap, and code. Can you dive deeper into how threads share data between each other?

Thank you for your advice and I agree with you. To utilize the full power of multithreading, how threads communicate with each other is crucial. I will provide a more detailed description on this aspect.

Changes have been made to include a more detailed instruction of how threads communication.

The introduction to Multithreading is very detailed and is a helpful documentation to refer to when using multithreading. However, I think the majority of the documentation is conceptual, please consider adding some code examples in Java so that we can have a better understanding of how multithreading is implemented in code.

This is a very detailed explanation of multithreading. However, from my current understanding, data sharing between threads is a key point in correctly utilizing multithreading to its max potential. As you mentioned above, thread share file, heap, and code. Can you dive deeper into how threads share data between each other?

Thank you for your advice and I agree with you. To utilize the full power of multithreading, how threads communicate with each other is crucial. I will provide a more detailed description on this aspect.

Hi! No problem! Also, I forgot to mention there is a type in the word "thread" in your "thread class" section

The introduction to Multithreading is very detailed and is a helpful documentation to refer to when using multithreading. However, I think the majority of the documentation is conceptual, please consider adding some code examples in Java so that we can have a better understanding of how multithreading is implemented in code.

Thank you for the suggestion, I will add some coding example and usage to my documentation.

I think this is already a very helpful documentation. I have used multithreading in the past and I encountered some problems. For example, it is very common that we see race condition when multiple threads are accessing a shared resource. Consider adding some content about some common issues that programmers might face using multithreading, and its solution.

I think this is already a very helpful documentation. I have used multithreading in the past and I encountered some problems. For example, it is very common that we see race condition when multiple threads are accessing a shared resource. Consider adding some content about some common issues that programmers might face using multithreading, and its solution.

You are correct, racing condition and deadlock are a common issues people might face during development. I will do some research on this part and update my documentation.

Changes have been updated on the topic of common issues.


Application Credentials Support

Feature request
If I implemented support for Application Credentials, would you accept the PR?
What version of the integration are you using?
0.1.0
Anything in the logs that might be useful for us?
No response
Additional information
No response

Absolutely! Please go ahead

Here's a draft PR: #160

(it contains the devcontainer config, too, so it's kinda messy right now)

Thank you. That was quick!
I am away from keyboard for a few days so I cannot test the dev container nor make a proper review of this PR right now.


Scores are almost the same for RF-Score-VS on PDBbind

Dear developer,
When I use your binary RF-Score-VS to dock multiple complexes in PDBbind2019, they just get almost the same score (near 6), which is unbelievable terrible!
pdb_id,prot_name,rf_score_vs_v2,ref_affinity
1a1e,1a1e_pocket,6.00580229596,6.00
1a4k,1a4k_pocket,6.00794721751,8.00
1a4r,1a4r_pocket,6.20134056292,6.66
1a4w,1a4w_pocket,6.38927082738,5.92
1a9m,1a9m_pocket,6.1346691244,6.92
1a9q,1a9q_pocket,5.97711068812,6.17
1a28,1a28_pocket,7.25402944261,8.29
1a69,1a69_pocket,6.15717254042,5.30
1a94,1a94_pocket,6.76315462617,7.85
1a99,1a99_pocket,5.98602117631,5.70
1aaq,1aaq_pocket,6.08011277506,8.40
1add,1add_pocket,6.31263890627,6.74
1adl,1adl_pocket,5.97653251803,5.36
1ado,1ado_pocket,5.62528809888,6.00
1afk,1afk_pocket,6.07168576653,6.62
1afl,1afl_pocket,6.14445310932,6.28
1ai4,1ai4_pocket,6.06714064078,2.50
1ai5,1ai5_pocket,6.01511559545,3.72
1ai7,1ai7_pocket,5.97128016745,4.09
1aid,1aid_pocket,6.00623191904,4.82
1aj7,1aj7_pocket,6.04805370093,3.87
1ajn,1ajn_pocket,6.01279242565,2.63
1ajp,1ajp_pocket,6.12961282626,2.23

The following is part of my code:
    for prot_ in os.listdir(datasets_pro_dir):
        prot_name = prot_[:-4]
        pdb_id = prot_[:4]
        pocket_file = os.path.join(datasets_pro_dir, prot_)
        ligand_file = os.path.join(datasets_lig_dir, f'{pdb_id}_ligand.mol2')

        if pocket_file and ligand_file:
            command = f'./rf-score-vs --receptor {pocket_file} {ligand_file} -o csv --field "name" --field "RFScoreVS_v2"'
            output = subprocess.check_output(command, shell=True).decode('utf-8')
            rf_score = output.split('\n')[1].split(',')[1]
            writer.writerow({'pdb_id': pdb_id, 'prot_name': prot_name,'rf_score_vs_v2': rf_score})

I don't believe the RF-Score could be so awful, is there any potential bug about my code? Is this binary rf-score-vs unable to score any more?


Use from font CDN?

Not a deal breaker but it would be nice to have Departure Mono on Google Fonts and/or Bunny Fonts.
More so interested in installing Departure Mono with Fontsource, noted here maintainer/s may want it on Google Fonts first.
Being able to use it on Figma without the font installer and on Google Docs is also nice to have.

+1 for this, would love to have this in google fonts.

We're working on submitting to Google Fonts 👍


Suggestion: Add Compatibility with Dungeons and Taverns

I really like what this mod does to change phantoms. It's just that this doesn't really work well with Dungeons and Taverns which has a phantom boss and phantom enemies in one of its dungeons. Maybe you could disable the phantom rework for phantoms that spawn from trial spawners?

Sure thing

added as of 1.4.1 for both 1.20 and 1.21


Feature request: Italian ("Tutti i commenti" in place of "All comments") :)

The title says it all!
Thanks for this wonderful tool
very useful

Done.
http://com.hemiola.com/bookmarklet/


Remove database flush command to make database persistent

Short description of the changes:

Check list for the pull request

[ ] I have read the [CONTRIBUTING]
[ ] I have read the [CODE_OF_CONDUCT]
[ ] I have added tests for my changes
[ ] I have updated the documentation accordingly

Check list for the reviewer

[ ] I have read the [CONTRIBUTING]
[ ] I have verified the proposed changes
[ ] best software practices

[ ] all internal functions have an underbar, as is python standard
[ ] clearly named variables (better to be verbose in variable names)
[ ] code comments explaining the intent of code blocks

[ ] All the tests are passing
[ ] The documentation is up to date
[ ] code comments added when explaining intent

Manual test for the reviewer

References

I am merging this since this was the change added to fix production Live Data Server.


cordova prepare ios fails if deployment-target is set to a 3 number version, like 12.3.0

Bug report

CHECKLIST

[X] I have read the issue reporting guidelines

[X] I confirm this is a suspected bug or issue that will affect other users

[X] I have reproduced the issue using the example project or provided the necessary information to reproduce the issue.

[X] I have read the documentation thoroughly and it does not help solve my issue.

[X] I have checked that no similar issues (open or closed) already exist.

Current behavior:

With version 16.1.0-cli of this plugin, if you have a deployment-target specified in your app with 3 numbers, like 12.3.0:
<preference name="deployment-target" value="12.3.0" />
when you run cordova prepare ios it will fail with:
Cannot read properties of null (reading '1')
This is happening in scripts/ios/helper.js on line 190:
IPHONEOS_DEPLOYMENT_TARGET = podFile.match(iosDeploymentTargetPodRegEx)[1];
due to a regex issue not matching 12.3.0
This regex could be a potential fix: /platform :ios, '(\d+\.\d+\.?\d?)'/, as it matches both 12.0 and 12.3.0, but I haven't done more testing.
Expected behavior:

Using plugin version 14.2.1-cli a deployment-target of 12.3.0 worked fine
Steps to reproduce:

See this fork of the firebaseex test repo: https://github.com/ndrake/cordova-plugin-firebasex-test/tree/bug/deployment-target-issue
Basically:

Set deployment-target to 12.3.0
Update package.json to use version 16.1.0-cli of this plugin
Update package.json to use cordova-ios 7.0.0
cordova platform add ios
cordova prepare ios

Screenshots

Environment information

Cordova CLI version

12.0.0<EMAIL_ADDRESS>

Cordova platform version

cordova platform ls

Installed platforms:
  ios 7.0.0
Available platforms:
  android
  browser
  electron

Plugins & versions installed in project (including this plugin)

cordova plugin ls

cordova-custom-config 5.1.1 "cordova-custom-config"
cordova-plugin-androidx-adapter 1.1.3 "cordova-plugin-androidx-adapter"
cordova-plugin-customfcmreceiver 1.0.0 "Custom FCM Receiver"
cordova-plugin-dialogs 3.0.0-dev "Notification"
cordova-plugin-enable-multidex 0.2.0 "Enable Multidex"
cordova-plugin-facebook-connect 3.2.0 "Facebook Connect"
cordova-plugin-firebasex 16.1.0-cli "Google Firebase Plugin"
cordova-plugin-hello-c 1.1.1 "Hello"
cordova.plugins.diagnostic 7.1.1 "Diagnostic"

Dev machine OS and version, e.g.

OSX

sw_vers

ProductName:		macOS
ProductVersion:		13.5
BuildVersion:		22G74

Runtime issue

Device details

e.g. iPhone X, Samsung Galaxy S8, iPhone X Simulator, Pixel XL Emulator

OS details

e.g. iOS 12.2, Android 9.0

Android build issue:

Node JS version

node -v

Gradle version

ls platforms/android/.gradle

Target Android SDK version

android:targetSdkVersion in AndroidManifest.xml

Android SDK details

sdkmanager --list | sed -e '/Available Packages/q'

iOS build issue:

Node JS version

node -v

v16.15.0

XCode version

14.3.1

Related code:
insert any relevant code here such as plugin API calls / input parameters

Console output

console output

cordova-custom-config: Skipping auto-restore of config file backup(s)
Overwriting existing resource file at platforms/ios/FirebaseTest/Resources/res/ios/sound/blackberry.caf
Overwriting existing resource file at platforms/ios/FirebaseTest/Resources/res/ios/sound/crystal.caf
Overwriting existing resource file at platforms/ios/FirebaseTest/Resources/res/ios/sound/msn.caf
Overwriting existing resource file at platforms/ios/FirebaseTest/Resources/res/ios/pn-actions.json
cordova-plugin-firebasex: Preparing Firebase on iOS
Cannot read properties of null (reading '1')

Other information:

Hey, have you found a solution to this? It happens to me with:
Deployment Target: 13.0.0
Firebasex: 16.1.0
ios: 6.1.1

Thanks! I changed mine to 13.0 and it worked. However in the future it might pose an issue if we need a minor version (13.0.1 etc).

same problem here:
in config.xml updated:

to:

and it worked as @Rafayon suggested


Information density: spacious/snug mode

Prototypes

Snug listing
Snug editor

Community comments:
LB
5 days ago
Random idea.
With the theme work happening in the next release https://github.com/wagtail/roadmap/issues/65
I wonder if a future step could be for the theming of spacing. Many applications have a 'comfy/compact' or 'cosy/compact' setting to control the visual density of layouts.
It may be possible to do this with CSS custom properties and an approach similar to dark mode.
Might come in handy for universal listings and pages with a lot of content.
scotchester
3 days ago
Yes! If memory serves, I actually chatted with Thibaud about such an idea at DjangoCon. I think it would please a lot of people who feel that they would like more "information density" for managing large amounts of content in Wagtail.
Michael Trythall
18 hours ago
Tighter theme is probably my #1 request. Good suggestion.
:rainbow:
1
Thibaud (he/him)
2 hours ago
thanks LB! I think my point might be a bit of a red herring too. I was thinking too much about what we did for color themes where you do need variables everywhere for it to work. For spacing, it feels like we’d get 95% of the value of having it configurable just by making it customizable across 3-5 places in the UI (edited)

For anyone interested in this – just noting this is now on the roadmap for Wagtail’s May 2024 release.

Design decisions discussion with @laymonage and @lb- – what variables do we introduce to allow this to be customized across the admin?

Variables specific to universal listings (or any other view)
Generic variables on specific views only


Chip Widget Causes Layout Constraints Assertion Failure in Latest Flutter Version

Steps to reproduce
I'm encountering an issue with the Chip widget in Flutter when using it within a ListTile's trailing property. The widget fails to layout properly, leading to repeated assertion errors related to missing size constraints.

Create a ListTile with a Chip widget placed in the trailing property.
Apply constraints using a Container around the Chip widget.
Run the app and observe the error logs related to layout and rendering.

Expected results
The Chip widget should layout correctly within its parent ListTile and render without any assertion failures or errors.
Actual results
The Chip widget causes an assertion failure during layout, specifically related to the RenderObject missing a size. The following error is observed repeatedly:
 The following RenderObject was being processed when the exception was fired: _RenderChip#9eac7
  relayoutBoundary=up48 NEEDS-LAYOUT
   NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE:
   ...
  Another exception was thrown: Assertion failed:
    file:///Users/j/Documents/flutter/packages/flutter/lib/src/rendering/box.dart:2164:12

Code sample
    import 'package:flutter/material.dart';
    import 'package:auto_size_text/auto_size_text.dart';

      class ChipIssueExample extends StatelessWidget {
       const ChipIssueExample({Key? key}) : super(key: key);

      @override
       Widget build(BuildContext context) {
         const Color colorPrimary = Colors.blue;  // Replace with your desired color

       return Scaffold(
         body: Center(
        child: ListTile(
          trailing: Container(
            constraints: const BoxConstraints(
              maxWidth: 98.0,
              minWidth: 98.0,
            ),
            child: Chip(
              backgroundColor: colorPrimary,
              label: const AutoSizeText(
                "Verified",
                maxFontSize: 18,
              ),
            ),
          ),
          title: const AutoSizeText(
            "KYC Information",
            maxFontSize: 24,
           ),
          ),
         ),
      );
      }
    }

     void main() {
          runApp(MaterialApp(
           home: ChipIssueExample(),
       ));
    }

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
packages/flutter/src/rendering/binding.dart 468:5                            [_handlePersistentFrameCallback]
packages/flutter/src/scheduler/binding.dart 1397:7                           [_invokeFrameCallback]
packages/flutter/src/scheduler/binding.dart 1318:9                           handleDrawFrame
packages/flutter/src/scheduler/binding.dart 1040:9                           <fn>
dart-sdk/lib/_internal/js_dev_runtime/private/isolate_helper.dart 48:11      internalCallback

The following RenderObject was being processed when the exception was fired: _RenderChip#23b2f relayoutBoundary=up48 NEEDS-LAYOUT
NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE:
  creator: _ChipRenderWidget ← Builder ← Padding-[GlobalKey#5f34d] ← Ink ← AnimatedBuilder ← Listener
    ← RawGestureDetector ← GestureDetector ← Semantics ← DefaultSelectionStyle ← Builder ← MouseRegion
    ← ⋯
  parentData: offset=Offset(0.0, 0.0) (can use size)
  constraints: BoxConstraints(0.0<=w<=96.0, 0.0<=h<=46.0)
  size: MISSING
This RenderObject had the following descendants (showing up to depth 5):
    avatar: RenderStack#b51a3 NEEDS-LAYOUT NEEDS-PAINT
    label: _RenderLayoutBuilder#fa221 NEEDS-LAYOUT NEEDS-PAINT
    deleteIcon: RenderStack#824ea NEEDS-LAYOUT NEEDS-PAINT
════════════════════════════════════════════════════════════════════════════════════════════════════
Another exception was thrown: Assertion failed:
file:///Users/j/Documents/flutter/packages/flutter/lib/src/rendering/box.dart:2164:12
Another exception was thrown: Assertion failed:
file:///Users/j/Documents/flutter/packages/flutter/lib/src/rendering/box.dart:2164:12

Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.0, on macOS 13.6.7 22G720 darwin-x64, locale
    en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[!] Xcode - develop for iOS and macOS (Xcode 14.3.1)
    ! Flutter recommends a minimum Xcode version of 15.
      Download the latest version or update via the Mac App Store.
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] VS Code (version 1.91.0)
[✓] Connected device (2 available)
[✓] Network resources

! Doctor found issues in 1 category.
j@MacBook-Pro ~ %

Hi @muhammed-amein, I see that you're using the auto_size_text package in your code sample. I tested your code sample with just the Text widget and I can't seem to reproduce the issue. Can you try without the auto_size_text widget to see if you still experience the issue? If you do, please provide a sample that does not use that package.
Thank you

Hi @danagbemava-nc
Thank you for your response. I've implemented the auto_size_text substitution and the issue has been resolved. However, I want to clarify that this problem only occurred in Flutter version 3.24.0. Previous versions of Flutter built the project without any issues.

It is very likely that something has changed either within the framework or engine that led to this issue but since this happens when a third party package is used, the author of the package may need to update the package to support the latest version of flutter. Please keep in mind that the package has not been updated in about 2 years, so relying on it isn't advisable.
Given that this was caused by a third-party package, I'll be closing this as resolved. If you are able to use flutter only code to reproduce the issue, please file a new issue and provide the relevant code sample so that we can properly investigate this.
Thank you


Disabling web features

Importance: 7
Problem:
On startup, AutoPlug asks for a server key and doesn't continue until something is entered, blocking a restart if it self-updates.
Solution:
Either have the option to disable the web features in the config, or have a timeout for entering the server key.

You can enter something random at the first start (or in the general config) to fix this.
Also, individual web features can be disabled in the web-config.yml.


Request for an old feature

Please provide old feature of spacing between clock and day, date. Spacing between these two looks a quite odd. If possible please provide it.

You can find a clock bottom margin feature in the beta version of the app.


Azure Devops not showing as Required Field (icon missing)

Here components and client platform are multiselect values set as required. But it does not show the red icon as it shows for other fields while creating new epic(for example fix version in the image
Thanks

I believe this is a known issue in older versions of TFS. What version are you using?

As i mentioned it is on Azure devops/VSTS. I installed it from market
place. It says latest version 2.2 or something like that
On Tue, 4 Jun 2019 at 10:21 PM, Matthew Manela<EMAIL_ADDRESS>wrote:

I believe this is a known issue in older versions of TFS. What version are
you using?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vsts-extension-multivalue-control/issues/108?email_source=notifications&email_token=AK2HRORO6MJ6WGEQ5A6RJCLPY2MQDA5CNFSM4HS3W6KKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODW5GDEY#issuecomment-498753939,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AK2HROWJJBGCKBLUKMJJX7TPY2MQDANCNFSM4HS3W6KA
.

--
Thanks,
Prashanth
Hand Phone-9844730107
<EMAIL_ADDRESS>

I have latest version installed on Azuredevops services. Is it still a bug in VSTS/Azure devops services. Please clarify

Thanks, I confirmed there is a bug here which we will fix soon

I met the same issue, is there any solution for this problem now?

@v-yanfga and @prashanthbv12, We fixed this issue and currently getting released.

Thanks, bcarthic, That's really a good news, I've install this custom control from azure Devops marketplace,
so I think I don't need to re-install this extension after your deploy latest version, am i correct？

@v-yanfga Yes, it will get automatically updated. Once it gets deployed, refreshing the page will get you the updated version.

I notice that this issue has been fixed, Thanks very much!!

Looks Good. Thank you very much


RBBSpringAnimation animation doesn't work properly with AVPlayerLayer

Not sure whether this is animation's or Apple's fault but if you attach a RBBSpringAnimation to an AVPlayerLayer weird stuff happens. Same animation works fine everywhere else.

Funny thing - this hack works:
RBBSpringAnimation* animation = [RBBSpringAnimation animationWithKeyPath: keyPath];
animation.fromValue = fromValue;
animation.toValue = toValue;
animation.velocity  = velocity;
animation.mass      = mass;
animation.damping   = damping;
animation.stiffness = stiffness;
animation.duration = [animation durationForEpsilon: epsilon];

CAKeyframeAnimation* keyframeAnimation = [CAKeyframeAnimation animationWithKeyPath: keyPath];
keyframeAnimation.values   = animation.values;
keyframeAnimation.keyTimes = animation.keyTimes;
keyframeAnimation.duration = animation.duration;
return keyframeAnimation;


Add RTPTransceiver func

Hi there! I want to use RTPTransceiver in on track func. RTP TRANSCEIVER is provided in the ON TRACK WEB API, but when I looked at it, it was difficult to access the RTP TRANSCEIVER in PION's ON_TRACK. I'm raising the PR because I would like to add a function to get the TR from the receiver rather than changing the supplied arguments of the ON_TRACK FUNC.
Description:

Add Transceiver func in rtp receiver
on_track api https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/track_event

@do-hyung-kim tagged v3.2.14


(maint) Allow setting credentials info via env vars

Prior to this a user could set the credential information (username,
password, and url of the forge) via a file located at
~/.puppetforge.yml.
This commit allows users to set the environment variables

BLACKSMITH_FORGE_URL
BLACKSMITH_FORGE_USERNAME
BLACKSMITH_FORGE_PASSWORD
to set the url, username, and password values respectively.

This eases publishing under multiple usernames on the forge as well as
pushing to multiple forges by users (and CI systems) by allowing a
method of setting variables that is not per user wide (an issue with a
credentials file in the user's home directory).
Environment variables will take precedence over values set in a
credentials file.

:+1:

This looks good to me. I'm not sure why it has (maint) on it because this seems like a feature.
I'd like to see some docs in the README as well.

I'll go ahead and add some docs.
The (maint) is because the work doesn't have an internal ticket, but is something I did in some free time (is that like corporate PTSD?). Looking at the previous few commits I don't see a pattern to how their prefaced, so I'll just remove the (maint) unless you have a recommendation for how it should be worded.

:+1:

I added a mention in the README, updated the tests to catch the issue that @flosell found, and then fixed the issue itself. I squashed it back into one commit and then removed the "(maint)" in the commit message (and PR title). Though now I have to figure out why I didn't catch the issue earlier in my environment....
Apologies for the delay.

This LGTM.


Participant.getId() conflicts with ORMs

We're using greenDAO ORM for abstracting the users in our database as objects. The generated entity classes define the method getId() with a Long return type. This is the local database primary key ID for these entities. This conflicts with the getId() with a String return type defined in the com.layer.atlas.provider.Participant interface, which would make sense for our User objects to implement directly. Can this method be renamed to something that won't conflict with ORMs? Maybe getLayerId()?

The Participant interface has been removed and replaced with the Identity feature in Layer sdk
https://docs.layer.com/sdk/android/identities


Adding new characters causes error

When I add extra character(for instance standard length of symbols was 35) or remove one letter, I get this error. But if I just replace one letter with another everything is okay. How to fix this?(I'm using russian alphabet, upper and lower characters)
(I checked a lot of issues, but didn't find mine)
PS E:\VScodeProjects\draft> py deep-text-recognition-benchmark\train.py --train_data lmdb_output --valid_data lmdb_output --select_data "/" --batch_ratio 1.0 --Transformation TPS --FeatureExtraction ResNet --SequenceModeling BiLSTM --Prediction Attn --batch_size 2 --data_filtering_off --workers 0 --batch_max_length 80 --num_iter 100 --valInterval 5 --saved_model TPS-ResNet-BiLSTM-Attn.pth
--------------------------------------------------------------------------------
dataset_root: lmdb_output
opt.select_data: ['/']
opt.batch_ratio: ['1.0']
--------------------------------------------------------------------------------
dataset_root:    lmdb_output     dataset: /
sub-directory:  /.       num samples: 10
num total samples of /: 10 x 1.0 (total_data_usage_ratio) = 10
num samples of / per batch: 2 x 1.0 (batch_ratio) = 2
--------------------------------------------------------------------------------
Total_batch_size: 2 = 2
--------------------------------------------------------------------------------
dataset_root:    lmdb_output     dataset: /
sub-directory:  /.       num samples: 10
--------------------------------------------------------------------------------
model input parameters 32 100 20 1 512 256 76 80 TPS ResNet BiLSTM Attn
Skip Transformation.LocalizationNetwork.localization_fc2.weight as it is already initialized
Skip Transformation.LocalizationNetwork.localization_fc2.bias as it is already initialized
loading pretrained model from TPS-ResNet-BiLSTM-Attn.pth
Traceback (most recent call last):
  File "E:\VScodeProjects\draft\deep-text-recognition-benchmark\train.py", line 319, in <module>
    train(opt)
  File "E:\VScodeProjects\draft\deep-text-recognition-benchmark\train.py", line 88, in train
    model.load_state_dict(torch.load(opt.saved_model,map_location='cpu'))
  File "E:\python\lib\site-packages\torch\nn\modules\module.py", line 2153, in load_state_dict
    raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for DataParallel:
        size mismatch for module.Prediction.attention_cell.rnn.weight_ih: copying a param with shape torch.Size([1024, 294]) from checkpoint, the shape in current
model is torch.Size([1024, 332]).
        size mismatch for module.Prediction.generator.weight: copying a param with shape torch.Size([38, 256]) from checkpoint, the shape in current model is torch.Size([76, 256]).
        size mismatch for module.Prediction.generator.bias: copying a param with shape torch.Size([38]) from checkpoint, the shape in current model is torch.Size([76]).

I only get that there's something wrong in architecture when I do this.

@dysff  maybe setting new_prediction: True could fix the issue

also faced with this problem.
@dysff were you able to solve this problem?
if so, i will be grateful for your answer 🙏🏻


Add isNotFinite and isNotInfinite assertions for float and double

Check List:

Fixes #2120
Unit tests : YES
Javadoc with a code example (on API only) : YES

Integrated, thanks @jcttrll!


Move vim special variables and script variables to evalvars.c

Codecov Report

Merging #4874 into master will decrease coverage by 0.15%.
The diff coverage is 88.74%.

@@            Coverage Diff             @@
##           master    #4874      +/-   ##
==========================================
- Coverage   81.57%   81.42%   -0.16%
==========================================
  Files         122      122
  Lines      146079   143441    -2638
==========================================
- Hits       119171   116795    -2376
+ Misses      26908    26646     -262

Impacted Files
Coverage Δ

src/eval.c
86.4% <87.5%> (-0.18%)
:arrow_down:

src/evalvars.c
89.94% <88.79%> (-0.66%)
:arrow_down:

src/libvterm/src/unicode.c
87.17% <0%> (-7.7%)
:arrow_down:

src/if_cscope.c
75.5% <0%> (-0.93%)
:arrow_down:

src/search.c
81.12% <0%> (-0.85%)
:arrow_down:

src/move.c
86.9% <0%> (-0.7%)
:arrow_down:

src/tag.c
77.63% <0%> (-0.69%)
:arrow_down:

src/viminfo.c
75.06% <0%> (-0.58%)
:arrow_down:

src/misc1.c
80.09% <0%> (-0.57%)
:arrow_down:

src/screen.c
82.07% <0%> (-0.57%)
:arrow_down:

... and 98 more

Continue to review full report at Codecov.

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


Feature to change Stable Diffusion checkpoint from the webui

Can you please rebase this against dev? Not against main. I'll take a look then.

Hello, I see you've rebased against Dev but I do not see your changes in the files. Maybe something went wrong?
Please manually ping me here when this PR is ready for a review.

@HugoSega Looks like you have rebased against invoke-development - please instead rebase against development. Thanks for working on this feature.

Are there really 230 commits? This doesn't look right.

Are there really 230 commits? This doesn't look right.

It's not. It's a nearly made PR and I can't actually find the feature itself coz it was rebased incorrectly. The best way to actually implement this is to rework the CLI to support this and have the frontend call that instead.

Can we reject this, or figure out the correct branch to merge into? I'd like to remove invoke-development and just leave the one active "node" branch.


Many lexer errors do not have a location

Description
Many errors emitted by the lexer do not set the error.index property, so they point to the start of the document by default.
Steps to reproduce
Input a GraphQL document with unexpected characters:
type Query {
  // Some invalid characters
  user: User
}

Expected result
Syntax errors point to the correct position
Actual result
rror: syntax error: Unexpected character "/"
   ╭─[q.graphql:1:1]
   │
 1 │ type Query {
   │ ┬
   │ ╰── Unexpected character "/"
───╯
Error: syntax error: Unexpected character "/"
   ╭─[q.graphql:1:1]
   │
 1 │ type Query {
   │ ┬
   │ ╰── Unexpected character "/"
───╯

I’d be in favor of eventually removing the Error::new constructor that sets the index to zero, making the index always provided by the caller.


Change graph node shape + add status + add cluster name

Closes #1866
Closes #1874
Closes #1880

Here's the screenshot:

Graph nodes did not correctly display status changes and the circle shape did not use space efficiently.

This looks too much like Argo.

@mmoulian and I can propose round nodes in the style of #1880 that fit three lines of text. The rest of the info will be displayed in a tooltip.

Why is the Git Repository a child of flux-system instead of the parent?

The round nodes do not show the status and information efficiently.  The round circles truncate too much text and don't offer enough insights into how the application is laid out.  In addition, hovering over each node to get info such as which namespace is time consuming.
Just because Argo uses an appropriate shape doesn't mean we should have to choose some other form factor.  Android phones aren't circular because the iPhone was a rectangle.  While I like the design of the circles more there is less utility by going that route.
Per the image below, the KustomizationAutomation is truncated.  It's hard to read each node.  I don't know which namespace they are in.  Ideally, we would also show the images running on the pods or some other useful info to look into at a glance.

route.

Also @joshri it has a Default/ before every object.  Can that be removed?  Can you also provide a screenshot with some "flux" object suspended as well as something failing.

Also @joshri it has a Default/ before every object. Can that be removed? Can you also provide a screenshot with some "flux" object suspended as well as something failing.

Default is the cluster name - like in the figma:

Easy to remove if you'd like!

We should probably remove the default/ for now, as it will be confusing as default is also used to describe the default namespace in Kubernetes.

Also, @joshri it looks like the top node is not showing a status.

Agree, I didn't even notice I did that with the labels when I did the designs.

@JamWils screenshot of suspended and failed apps on graph


add influx style tag parsing, add tests for invalid tag data

Cherry-pick for the master-2.0 branch

Merged in another PR by mistake.


Using AWS profiles for accessing SSM

Hey,
are there any way to instruct vals to use some AWS profile? IIUC from documentation golang SDK should support that, if AWS_SDK_LOAD_CONFIG is set to true and then profile could be selected with AWS_PROFILE or AWS_DEFAULT_PROFILE, but I can't get it working. My use case is to retrieve SSM parameter values in helmfile templates.
➜  ~/pr/q/eks-addons git:(aws-roles) ✗ aws sts get-caller-identity
{
    "UserId": "AIDADEADBEEF",
    "Account": "123",
    "Arn": "arn:aws:iam::123:user/artem.kajalainen"
}
➜  ~/pr/q/eks-addons git:(aws-roles) ✗ aws --profile example-dev-env sts get-caller-identity
{
    "UserId": "AROADEADBEEF:botocore-session-1584441505",
    "Account": "456",
    "Arn": "arn:aws:sts::456:assumed-role/circle-ci/botocore-session-1584441505"
}
➜  ~/pr/q/eks-addons git:(aws-roles) ✗ export AWS_DEFAULT_PROFILE=example-dev-env
➜  ~/pr/q/eks-addons git:(aws-roles) ✗ export AWS_PROFILE=example-dev-env
➜  ~/pr/q/eks-addons git:(aws-roles) ✗ export AWS_SDK_LOAD_CONFIG=true
➜  ~/pr/q/eks-addons git:(aws-roles) ✗ helmfile -e dev lint
Adding repo stable https://kubernetes-charts.storage.googleapis.com
"stable" has been added to your repositories

Adding repo bitnami https://charts.bitnami.com/bitnami
"bitnami" has been added to your repositories

Updating repo
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "traefik" chart repository
...Successfully got an update from the "bitnami" chart repository
...Successfully got an update from the "stable" chart repository
Update Complete. ⎈ Happy Helming!⎈

Fetching stable/traefik
Fetching bitnami/external-dns
in ./helmfile.yaml: 2 errors:
err 0: failed to render values files "config/traefik1.7/dev-values.yaml": expand awsssm://dev/eu-north-1/eks/example-apps-cluster/public-ingress/lb-dns-name?region=eu-north-1: get parameter: AccessDeniedException: User: arn:aws:iam::123:user/artem.kajalainen is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:eu-north-1:123:parameter/dev/eu-north-1/eks/example-apps-cluster/public-ingress/lb-dns-name
        status code: 400, request id: eb691d42-7f66-42fd-ae83-40528185b8be
err 1: failed to render values files "config/external-dns/dev-values.yaml": expand awsssm://dev/eu-north-1/eks/example-apps-cluster/external-dns/role-arn?region=eu-north-1: get parameter: AccessDeniedException: User: arn:aws:iam::123:user/artem.kajalainen is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:eu-north-1:123:parameter/dev/eu-north-1/eks/example-apps-cluster/external-dns/role-arn
        status code: 400, request id: 9f680a2f-fd01-4882-a60f-abb830bdc8ab

are there any way to instruct vals to use some named aws profile or to assume role?
Thanks!

@Art3mK Hey! Thanks for your report.
I have not yet tested it myself but does https://github.com/variantdev/vals/commit/6c8d9cf188b8e0223f3ba7bb49a94c9c63c3289c fix the issue for you?

Hey @mumoshu, thanks for fast reply!
Yeah, it does work! However not in my use case, I'm exporting CI AWS creds in env variables, and tried to assume IAM role using those creds, but looks like SDK doesn't work this way. Looks like I'll be forced to assume role myself and then just expose temp STS credentials in env :)
However this works fine when profiles are configured "right" and credentials are stored in ~/.aws/credentials file.
I think this could be closed then?
Thanks!

Here (see Credential and config loading order) is exactly my case:

The Environment variables for credentials will have precedence over shared config even if SharedConfig is enabled. To override this behavior, and use shared config credentials instead specify the session.Options.Profile, (e.g. when using credential_source=Environment to assume a role).

  sess, err := session.NewSessionWithOptions(session.Options{
	  Profile: "myProfile",
  })

Not sure how if this could be added to vals somehow

maybe you could read some env variable to set that session.Options.Profile to env AWS_PROFILE value, if that var is set?
like if USE_AWS_PROFILE==1 -> set session.Options.Profile to AWS_PROFILE?

@Art3mK Thanks! Ah, so are you saying that AWS_PROFILE doesn't get loaded automatically by the aws go sdk?
Then, I think I'm fine to enhance vals to check for the existence of AWS_PROFILE and set it to session.Options.Profile` when existed.
Would that solve your problem?

However this works fine when profiles are configured "right" and credentials are stored in ~/.aws/credentials file.

To be extra sure - which profile was loaded for you in this case? The profile pointed by AWS_PROFILE or the default one?

However not in my use case, I'm exporting CI AWS creds in env variables, and tried to assume IAM role using those creds,

Oh, well interesting. I didn't know that that's possible with awscli(so it works with awscli, right?)

Well AWS_PROFILE and AWS_DEFAULT_PROFILE seems to be already considered.
type Options struct {
	// Provides config values for the SDK to use when creating service clients
	// and making API requests to services. Any value set in with this field
	// will override the associated value provided by the SDK defaults,
	// environment or config files where relevant.
	//
	// If not set, configuration values from from SDK defaults, environment,
	// config will be used.
	Config aws.Config

	// Overrides the config profile the Session should be created from. If not
	// set the value of the environment variable will be loaded (AWS_PROFILE,
	// or AWS_DEFAULT_PROFILE if the Shared Config is enabled).
	//
	// If not set and environment variables are not set the "default"
	// (DefaultSharedConfigProfile) will be used as the profile to load the
	// session config from.
	Profile string

Maybe what we need is to somehow "tweak" the selected profile to use credentials from AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY?

yeah, AWS_PROFILE works fine, if AWS_SDK_LOAD_CONFIG==true and there is no static credentials in environment. But if you will expose static credentials via AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, then those are used by SDK and AWS_PROFILE is ignored. AWS CLI works also exactly like that, but you can force aws cli to use specific profile for role assuming with --profile, and that profile could use credentials from environment (credential_source = Environment). So, to force SDK to use profile in this case, we need to pass session.Options.Profile to session.
So my proposal is to introduce new env variable for vals to check, for example USE_AWS_PROFILE or FORCE_AWS_PROFILE to control that session.Options.Profile.
So use cases:
AWS_SDK_LOAD_CONFIG=true
AWS_PROFILE=example
---
SDK will use named profile example to obtain credentials

AWS_SDK_LOAD_CONFIG=true
AWS_PROFILE=example
AWS_ACCESS_KEY_ID=abc
AWS_SECRET_ACCESS_KEY=abc
---
SDK will ignore AWS_PROFILE and shared config and use static credentials

AWS_SDK_LOAD_CONFIG=true
AWS_PROFILE=example
AWS_ACCESS_KEY_ID=abc
AWS_SECRET_ACCESS_KEY=abc
FORCE_AWS_PROFILE=true
---
vals will set session.Options.Profile to AWS_PROFILE, SDK will use example profile to obtain credentials.

How does it look you?

yeah, AWS_PROFILE works fine, if AWS_SDK_LOAD_CONFIG==true and there is no static credentials in environment. But if you will expose static credentials via AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, then those are used by SDK and AWS_PROFILE is ignored. AWS CLI works also exactly like that, but you can force aws cli to use specific profile for role assuming with --profile, and that profile could use credentials from environment (credential_source = Environment). So, to force SDK to use profile in this case, we need to pass session.Options.Profile to session.

Thanks a lot for your explanation. That makes total sense. I have never realized that --profile paired with credentials_source could be used like that!
FORCE_AWS_PROFILE=true seems better to me.

@Art3mK I've implemented it in 9d65f55. Could you give it a try?

works like a charm ❤ 🎉
➜  ~/pr/fu/v/bin git:(master) echo "foo: ref+awsssm://dev/eu-north-1/eks/example-apps-cluster/external-dns/role-arn?region=eu-north-1" | ./vals eval -f -
expand awsssm://dev/eu-north-1/eks/example-apps-cluster/external-dns/role-arn?region=eu-north-1: get parameter: AccessDeniedException: User: arn:aws:iam::123456789012:user/artem.kajalainen is not authorized to perform: ssm:GetParameter on resource: arn:aws:ssm:eu-north-1:123456789012:parameter/dev/eu-north-1/eks/example-apps-cluster/external-dns/role-arn
	status code: 400, request id: b369e180-bc8e-470b-aa19-cbc4575c80f2
➜  ~/pr/fu/v/bin git:(master) export FORCE_AWS_PROFILE=true
➜  ~/pr/fu/v/bin git:(master) echo "foo: ref+awsssm://dev/eu-north-1/eks/example-apps-cluster/external-dns/role-arn?region=eu-north-1" | ./vals eval -f -
SSM: successfully retrieved key=/dev/eu-north-1/eks/example-apps-cluster/external-dns/role-arn
foo: arn:aws:iam::062474522373:role/example-apps-cluster-external-dns

Thanks a lot!
Will that be available in helmfile soon?

@Art3mK It's in Helmfile since v0.103.0 which has just been released 😃

Thanks a lot @mumoshu! I owe you a 🍺 🙂

It is possible to add a cfg variable with the profile name:
if os.Getenv("FORCE_AWS_PROFILE") == "true" || profile != "" {
if profile != "" {
opts.Profile = profile
} else {
opts.Profile = os.Getenv("AWS_PROFILE")
}
}
I have already tested with
`echo "foo: ref+awsssm://dev/dov/token?profile=account" | bin/vals eval -f -
and it works.
Modified also the ssm.go and awssec.go..
...
p.Profile = cfg.String("profile")
...
sess := awsclicompat.NewSession(p.Region,p.Profile)

@marcportabellaclotet-mt Yes, I believe that's a valid feature request! Would you mind submitting a pull request for that?

mmm, sure... but I do not have rights to create branches or PR on this repo....

Thanks for merging @mumoshu ! It would be nice that this is ported to helmfile.


MSID: 99858 Version: 1 DOI: 10.1101/2<IP_ADDRESS>0845

MSID: 99858
Version: 1
Preprint DOI: https://doi.org/10.1101/2<IP_ADDRESS>0845
Step 1. Awaiting reviews
Editorial to post reviews via hypothesis
Useful links:

DocMap: https://data-hub-api.elifesciences.org/enhanced-preprints/docmaps/v2/by-publisher/elife/get-by-manuscript-id?manuscript_id=99858
New model tracking: https://docs.google.com/spreadsheets/d/1_fHaoOy7hjyocptKtVJRijeNpUY4hBS7Ck_aVmx6ZJk/
Reviews on sciety: https://sciety.org/articles/activity/10.1101/2<IP_ADDRESS>0845

For trouble shooting (e.g. no Docmaps available):

DocMap issue addressing: https://miro.com/app/board/uXjVNCwK6EI=/
Explore DataHub DocMaps API: https://lookerstudio.google.com/reporting/4c2f0368-babb-4beb-b5b3-497e7e7b0f08/page/ejphD
Unmatched submissions and preprints: https://lookerstudio.google.com/u/0/reporting/9f86204f-3bf7-477c-9b18-5c5ef141bf69/page/p_gxi57ha93c
Unmatched manuscripts spreadsheet: https://docs.google.com/spreadsheets/d/15QcK8w-ssB7109RQEDtFpJPZ0J5HTGxoHa_2TtpMBbg/edit#gid=1336081641

Step 2. Preview reviewed preprint
Production QC content ahead of publication
Instructions:

QC preview: https://prod--epp.elifesciences.org/previews/99858v1
Update ticket with any problems (add blocked label)
When QC OK, add QC OK label to ticket and add publication date and time to https://docs.google.com/spreadsheets/d/1amAlKvdLcaDp5W8Z8g77NmkwbMF5n_u89ArSqPMO8jg
Move card to next column
(At end of the day post link in #enhanced-preprint and ask for PDF to be generated)

Useful links:

Preprint DOI :  https://doi.org/10.1101/2<IP_ADDRESS>0845
Confirm reviews returned by EPP: https://prod--epp.elifesciences.org/api/reviewed-preprints/99858/v1/reviews
To update the MECA path in the docmap: https://docs.google.com/spreadsheets/d/1mctCQuNFBjSn97Lihy7_vBO6z7-N-oqyLv4clyi6zHg

Step 3: Awaiting search reindex
This step adds the reviewed preprint to the homepage: https://elifesciences.org
The search reindex is triggered once an hour. We need the reviewed preprint to be indexed as the search application serves the journal homepage.
Useful links:

Jenkins pipeline to reindex search can be triggered sooner or monitored here: https://alfred.elifesciences.org/job/process/job/process-reindex-reviewed-preprints/

Step 4: Published! PDF requested
Waiting for PDF to be generated
Useful links:

PDF tracking: https://docs.google.com/spreadsheets/d/106_XeDjmuBae7gexOTNzg60lapeqjl2aRn9DzupGyS8/

Step 5: Introduce PDF to data folder and git repo
Upload PDF to relevent folder in git repo https://github.com/elifesciences/enhanced-preprints-data/
Step 6: Done!

[ ] Kettle is on!

warn: [mixed-citation-other-publication-flag] mixed-citation in reference (id=c54) has a publication-type='other'. Is that correct?


Not installing, Laravel Container issue

Im trying to install this package with a fresh install of the latest Laravel and i keep getting a error in the console
Problem 1     - payum/payum-laravel-package dev-master requires illuminate/container ^4|^5.1|^6.0|^7.0|^8.0 -> found illuminate/container[v4.0.0-BETA2, ..., 4.2.x-dev, v5.1.1, ..., 5.8.x-dev, v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev] but these were not loaded, likely because it conflicts with another require.
Really like to use this package as a solution for a new billing portal im building for a friend. Thanks for the help.

also the payum core is out of date and doesnt support php8

clearly this package is abandoned.


sig-operator: clustered failure occured

What happened:
We observed a clustered failure (47 test failures including AfterSuite) 1 on a test run, where clearly no involvement of the code changes was responsible.
Initial error log:
Tests Suite: [Serial][sig-operator]Operator [rfe_id:2291][crit:high][vendor:cnv-qe@redhat.com][level:component]should update kubevirt [release-blocker][test_id:3145]from previous release to target tested release by updating virt-operator expand_less	4m37s

{ Failure tests/operator/operator.go:1418
Error from server (InternalError): error when creating "/tmp/ginkgo103783789/vm-v1.yaml": Internal error occurred: failed calling webhook "virtualmachines-mutator.kubevirt.io": failed to call webhook: Post "https://virt-api.kubevirt.svc:443/virtualmachines-mutate?timeout=10s": context deadline exceeded

Unexpected error:
    <*errors.errorString | 0xc0066c4b90>:
    command failed: cannot run command "/home/prow/go/src/github.com/kubevirt/kubevirt/_ci-configs/k8s-1.28/.kubectl -n kubevirt-test-default1 create -f /tmp/ginkgo103783789/vm-v1.yaml --cache-dir /tmp/ginkgo103783789/oldclient": exit status 1
    {
        s: "command failed: cannot run command \"/home/prow/go/src/github.com/kubevirt/kubevirt/_ci-configs/k8s-1.28/.kubectl -n kubevirt-test-default1 create -f /tmp/ginkgo103783789/vm-v1.yaml --cache-dir /tmp/ginkgo103783789/oldclient\": exit status 1",
    }
occurred
tests/operator/operator.go:1223}

Remaining tests failed with timeout, except one failing for a missing snapshot that was expected to be there for deletion.
What you expected to happen:
A clear and concise description of what you expected to happen.
How to reproduce it (as minimally and precisely as possible):
Steps to reproduce the behavior.
Additional context:
/kind flake
/sig ci
Environment:

KubeVirt version (use virtctl version): N/A
Kubernetes version (use kubectl version): N/A
VM or VMI specifications: N/A
Cloud provider or hardware configuration: N/A
OS (e.g. from /etc/os-release): N/A
Kernel (e.g. uname -a): N/A
Install tools: N/A
Others: N/A

/sig compute

We saw a similar occurrence of this last Monday on the sig-ci meeting: https://prow.ci.kubevirt.io/view/gcs/kubevirt-prow/pr-logs/pull/kubevirt_kubevirt/11857/pull-kubevirt-e2e-k8s-1.30-sig-operator/1797702598988402688

/sig ci

Has been observed again: https://prow.ci.kubevirt.io/view/gcs/kubevirt-prow/pr-logs/pull/kubevirt_kubevirt/12315/pull-kubevirt-e2e-k8s-1.30-sig-operator/1811301262184943616
Related PR was this: https://github.com/kubevirt/kubevirt/pull/12315

Another clustered failure from today's SIG CI meeting:
https://prow.ci.kubevirt.io/view/gcs/kubevirt-prow/pr-logs/pull/batch/pull-kubevirt-e2e-k8s-1.29-sig-operator/1838774597382574080

@xpivarc @jean-edouard do you happen to know whether someone has been investigating this failure?

I am not aware of anyone looking into this.
Looking at the latest entry, the upgrade tests fails (and that messes up the cluster...).
The problem seems to be deployment of virt-handler that shows
{
     "type": "Initialized",
      "status": "False",
      "lastProbeTime": null,
      "lastTransitionTime": "2024-09-25T03:45:37Z",
      "reason": "ContainersNotInitialized",
      "message": "containers with incomplete status: [virt-launcher]"
},`

Unfortunately I can't say why this happens because we don't collect the node logs... We should change this (opt-in scrape)

Seems like a control runtime issue, this time the node didn't run in the vm, so we didn't get the logs.
There's no reason for this to happen.
Let's create a low prio issue on the node collection.
Other than that we didn't see this one, is a low prio flake.
/close
So this is a special case where no vmi is running on the node, in which case the node logs aren't collected. We should change this
Apparently a change by Maya, which we might think about rolling back. We should scrape all nodes in case we need it, this should be controlled by an env parameter that the k8s collector respects.


Dumb question about this_node_obj.is_controlle_or_mycontroller

Where is that value even set in renderer.js

That's a method in the node class defined in scripts/helpers.js that just checks whether the node is controller or mycontroller. We have two methods that mark a node as controller, i.e. mark_as_my_controller()  and mark_as_controller() .

In the mud.js line 777 for instance sets the node as controller. Line 298 sets it as my-controller.

Got it!


Missing discussions docs

Pin discussion
Lock discussion
Comment edit history
Disable discussions

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


Getting an error

Hi Gavin,
I found your project and think it looks like what I need.  I am having some trouble getting it working though and want to know what state it is in.  I am using python 2.7 and Tornado 4.3.  Here's my error:
2016-03-13 11:25:21,367 ERROR   : pid=06727 Exception in callback <functools.partial object at 0xb6282c84>
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado/ioloop.py", line 600, in _run_callback
ret = callback()
File "/usr/local/lib/python2.7/dist-packages/tornado/stack_context.py", line 275, in null_wrapper
return fn(*args, **kwargs)
File "build/bdist.linux-i686/egg/tornado_aws/client.py", line 479, in on_response
awz_error = self._awz_error(exception)
File "build/bdist.linux-i686/egg/tornado_aws/client.py", line 179, in _awz_error
if error.code == 400:
AttributeError: 'exceptions.TypeError' object has no attribute 'code'
and my code:
   dynamodb = tornado_dynamodb.DynamoDB(
                    region='us-east-1',
                    access_key = 'accesskey',
                    secret_key = 'skey',
                    max_clients = 1000
                )

    # TODO: add yield
    response = yield dynamodb.get_item(
                                'file_record',
                                {'shorthash': hash[:3], 'sha256': hash}
                            )

I get the same error when using tornado-aws directly.

Hey, sorry for the delay in response. I should close this down as all development has been moved to https://github.com/sprockets/sprockets.clients.dynamodb.  That being said, this is an error in tornado-aws and I'll look to get an update out shortly.


Define a loss funciton

When we define our own loss function in keras2, such as :
Define the smooth L1 loss
def l1_smooth_loss(y_true, y_pred):
x = K.abs(y_true - y_pred)
x = tf.where(tf.less(x, 1.0), 0.5 * x ** 2, x - 0.5)
return K.sum(x, axis=-1)
Dose the loss function return a scalar or a  tensor of shape (batch_size? ,  dimension_per_sample_reduce_to_1)?
In keras losses.py,  the defined losses return a tensor, but in the example document, the defined losses return a scalar.

Hi.  This might answer your question, if I understand it correctly:  From file:
https://github.com/fchollet/keras/blob/master/keras/backend/tensorflow_backend.py
def sum(x, axis=None, keepdims=False):
"""Sum of the values in a tensor, alongside the specified axis.
# Arguments
x: A tensor or variable.
axis: An integer, the axis to sum over.
keepdims: A boolean, whether to keep the dimensions or not.
If keepdims is False, the rank of the tensor is reduced
by 1. If keepdims is True,
the reduced dimension is retained with length 1.
# Returns
A tensor with sum of x.
"""
axis = _normalize_axis(axis, ndim(x))
return tf.reduce_sum(x, reduction_indices=axis, keep_dims=keepdims)

Hope that helps.  Thanks.

@td2014
Thank you for you replying!
What you have explain is exactly where the issue rely. As for K.mean or  tf. reduce_mean, the loss results are the same no matter whether I set axis=-1 or axis=None.  It's so strange.
The fellowing two function act different results when it comes to K.sum. And it's reasonable.
case1
def l1_smooth_loss(y_true, y_pred):
x = K.abs(y_true - y_pred)
x = tf.where(tf.less(x, 1.0), 0.5 * x ** 2, x - 0.5)
return K.sum(x)
case2
def l1_smooth_loss(y_true, y_pred):
x = K.abs(y_true - y_pred)
x = tf.where(tf.less(x, 1.0), 0.5 * x ** 2, x - 0.5)
return K.sum(x, axis=-1)
Hence, I still can't figure out the problem. For example, from keras/losses.py
mean_absolute_error
def mean_absolute_error(y_true, y_pred):
return K.mean(K.abs(y_pred - y_true), axis=-1)
The loss return a tensor, because of the setting axis=-1 which is different from your explain if I understand correctly.

I did a quick bit of checking, and it seems that the tf sum and mean functions are equivalent to numpy.  So, I did a quick code up:
import numpy as np
a = np.array([[1,2,3],[4,5,6]])
b = np.sum(a)
b_m1 = np.sum(a,axis=-1)
b_None = np.sum(a,axis=None)
b_p1 = np.sum(a,axis=1)
c = np.mean(a)
c_m1 = np.mean(a,axis=-1)
c_None = np.mean(a,axis=None)
c_p1 = np.mean(a,axis=1)
---> . Numpy treats -1 the same as +1.   Therefore, if you specify "None" or nothing, you get a sum over all the entries.  If you use -1, you get a sum over dimension 1 (same as if you said axis=1).  In other words, axis=-1 is the same as axis=1.  When axis=-1, you should get back an array, and when axis=None, you should get back a single number.  Is that what you are seeing?  Thanks.

Than you very much.
I understand the function of axis=-1 in sum & mean. My issues are:

When we define a loss function in keras, dose it return a  Tensor whose shape is (bath_size, ?) or just a scalar summing or averaging the whole batch?
The defined losses in keras/losses.py only get a sum over one dimension (axis=-1 in these source code) while didn't get a sum over all bath size examples.

There is apparently a function called before the tensor gets paased to TensorFlow:  axis = _normalize_axis(axis, ndim(x)) which is in the backend interface https://github.com/fchollet/keras/blob/master/keras/backend/tensorflow_backend.py
def _normalize_axis(axis, ndim):
"""Converts negative axes to positive values.
# Arguments
axis: Integer axis (possibly negative).
ndim: Rank of the tensor considered.
# Returns
Positive integer axis.
"""
if isinstance(axis, tuple):
axis = list(axis)
if isinstance(axis, list):
for i, a in enumerate(axis):
if a is not None and a < 0:
axis[i] = a % ndim
else:
if axis is not None and axis < 0:
axis %= ndim
return axis
If you look at the very last "if" statement, it does a modulo operation with ndim.  So, if ndim=1, then -1%1 = 0, which means the operation will be over the entire batch and give you a single number, if I understand correctly.

Thank you for you replying, but I'm afraid we didn't understand correctly. Take the mean_absolute_error loss function which is in [https://github.com/fchollet/keras/blob/master/keras/losses.py] for example:
def mean_absolute_error(y_true, y_pred):
return K.mean(K.abs(y_pred - y_true), axis=-1)
Supposing y_pred has the shape of (batch_size, dimension_per_sample), the axis=-1 was passed to _normalize_axis(axis, ndim(x)) and it will return 1  (-1%2=1, noticing that the ndim(y_pred) = 2).
So K.mean(K.abs(y_pred - y_true), axis=-1) will calculate over axis=1 not over the whole batch in which case axis=1.

OK, we can find the mechanism in  https://github.com/fchollet/keras/blob/master/keras/engine/training.py
model.compile :
sample_weight_mode: if you need to do timestep-wise
sample weighting (2D weights), set this to "temporal".
None defaults to sample-wise weights (1D).
If the model has multiple outputs, you can use a different
sample_weight_mode on each output by passing a
dictionary or a list of modes.
So, in my opinion, the engine will calculate over the whole batch for us. Although, I'm not quite sure.

Yes, I agree.  I did some more exploration, and if you look at the details of what model.compile does during set-up for loss calculation, it ends up calling the function (in training.py):  _weighted_masked_objective(fn):
The last two lines are:
return K.mean(score_array)
return weighted
Therefore, this function will compute the mean loss over the score_array (which is 1-dimensional, just the batch dimension) and return that.  Thanks.

Thank you for your help.
Best wishes!     : )

Thanks for bringing up an interesting exercise to work through.  Best wishes to you too!

good discussion.It solve my puzzle.

Thanks for your discussion.


webpack + react/redux scaffolding

set up webpack with: react, es2015, stage-1, and env presets
set up redux store, root component (with react router), and basic App component
modified server to serve newly created index.html

Looks like you should rebase off master first for those conflicts?

I just went through a rebase and it should be good to go now. Sorry it took a while.

rre


Danger plugins use of methods instead of classes

While this looks great today, it might be something we run into later on. Looking at an example plugin the actual implementation is a method, not a class.
This might have a few disadvantages, e.g. we can't provide extra methods in action for metadata of the plugin, or internal helper methods.
For example in fastlane here are some of the methods available for an action: https://github.com/fastlane/fastlane/blob/master/fastlane/lib/fastlane/action.rb
My question is: How about in this example we use:
module Danger
  module Files < Plugin # note that this is a module
    class ProtectFiles
      def run(path: nil, message: nil, fail_build: true)
        # code here
      end
    end
  end
end

Calling the action can be done the exact same way using
files.protect_files(path: "danger.gemspec")

by mapping files.protect_files to Danger::Files::ProtectFiles.run(...)

I think treating it as a scoped instance offers a lot more expressive API, and that we can use yard to enforce harder standards without requiring making extra class methods, consider how danger-proselint works:
module Danger

  # Lint markdown files inside your projects.
  # This is done using the [proselint](http://proselint.com) python egg.
  # Results are passed out as a table in markdown.
  #
  # @example Specifying custom CocoaPods installation options
  #
  #          # Runs a linter with comma style disabled
  #          proselint.disable_linters = [“misc.scare_quotes”, "misc.tense_present"]
  #          proselint.lint_files “_posts/*.md”
  #
  #          # Runs a linter with all styles, on modified and added markpown files in this PR
  #          proselint.lint_files
  #
  # @see: artsy/artsy.github.io
  # @tags: blogging, blog, writing, jekyll, middleman, hugo, metalsmith, gatsby, express
  #
  class DangerProselint < Plugin

    # Allows you to disable a collection of linters from being ran.
    # You can get a list of [them here](https://github.com/amperser/proselint#checks)
    attr_writer :disable_linters

    # Lints the globbed files, which can fail your build if
    #
    # @param   [String] files
    #          A globbed string which should return the files that you want to lint, defaults to nil.
    #          if nil, modified and added files will be used.
    # @return  [void]
    #
    def lint_files(files=nil)
      # Installs a prose checker if needed
      system "pip install --user proselint" unless proselint_installed?

      # Check that this is in the user's PATH
      if `which proselint`.strip.empty?
        fail "proselint is not in the user's PATH, or it failed to install"
        return
      end

      # Either use files provided, or use the modified + added
      markdown_files = files ? Dir.glob(files) : (modified_files + added_files)
      markdown_files.select! do |line| (line.end_with?(".markdown") || line.end_with?(".md")) end

      # TODO create the disabled linters JSON in ~/.proselintrc
      # using @disable_linter

      # Convert paths to proselint results
      require 'json'
      result_jsons = Hash[markdown_files.uniq.collect { |v| [v, JSON.parse(`proselint #{v} --json`.strip) ] }]
      proses = result_jsons.select { |path, prose| prose['data']['errors'].count }

      # Get some metadata about the local setup
      current_branch = env.request_source.pr_json["head"]["ref"]
      current_slug = env.ci_source.repo_slug

      # We got some error reports back from proselint
      if proses.count > 0
        message = "### Proselint found issues\n\n"
        proses.each do |path, prose|
          github_loc = "/#{current_slug}/tree/#{current_branch}/#{path}"
          message << "#### [#{path}](#{github_loc})\n\n"

          message << "Line | Message | Severity |\n"
          message << "| --- | ----- | ----- |\n"

          prose["data"]["errors"].each do |error|
            message << "#{error['line']} | #{error['message']} | #{error['severity']}\n"
          end
        end

        markdown message
      end

      # Determine if proselint is currently installed in the system paths.
      # @return  [Bool]
      #
      def proselint_installed?
        `which proselint`.strip.empty?
      end
    end

  end
end

Those inline comments can generate much richer documentation, both in ruby-docs and on the Danger website, without the need for custom class functions.

It would take multiple classes, and a lot of interclass communication to be able to provide a pretty standard way to offer useful APIs.
Another current upside here is that the code from the Dangerfile is copied by directly into the plugin, through that also could also be done inside the module'd classes ( I don't know too much about how they work.)
I guess feel like it allows for the plugins to look like real code, that's not built for one specific thing.

Great response, I love the sample code + screenshot, this will help people when they start building their first danger plugin

👍


Date.now() lacks milliseconds on Mac

Timer resolution on Macs is always "000". Maybe this line is the culprit:
https://github.com/ccxvii/mujs/blob/41625ec2d007c65bb39e89d4b4a49236a16be558/jsdate.c#L25-L27
Result:
$ mujs
> Date.now()
1512947603000
> Date.now()
1512947607000
> Date.now()
1512947608000
> Date.now()
1512947608000
> Date.now()
1512947609000
> Date.now()
1512947610000
> Date.now()
1512947610000
> Date.now()
1512947610000
> Date.now()
1512947611000

I would have expected MacOSX to set the unix macro, so that we can use gettimeofday() but I guess not...

Yeah, it should probably set that macro since macOS is based on FreeBSD... Hmm, but the results indicate that it's not doing that. Since the output is using the "* 1000" fallback...
I did see that macOS has gettimeofday() so hopefully it's just a matter of using another macro to detect Macs.

It's also possible, if less likely, that gettimeofday returns in seconds resolution.

That's probably not it...
https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man2/gettimeofday.2.html
The time is expressed in seconds and
microseconds since midnight (0 hour), January 1, 1970.

@ccxvii Not sure if true, but wm4: __unix__ sounds like something non-standard (he's the main dev of mpv so if he says that he doesn't know what it is then it is probably something non-standard) ;-)

The __unix__ macro catches all the main Linux and BSD variants. Adding a check for __APPLE__ should do the trick. Let me know if it doesn't work.

@ccxvii Thanks, I wrote a small test:
#include <stdio.h>
#include <math.h>
#include <sys/time.h>

int main()
{
    printf("Hello World\n");
#if defined(__unix__)
    printf("unix\n");
#endif
#if defined(__APPLE__)
    printf("apple\n");
#endif

    struct timeval tv;
	gettimeofday(&tv, NULL);
	double tx = floor(tv.tv_sec * 1000.0 + tv.tv_usec / 1000.0);
    printf("%.f\n", tx);
}

Result on a Mac:
+ $ ./a.out
Hello World
apple
1512999085793

+ $ ./a.out
Hello World
apple
1512999086631

+ $ ./a.out
Hello World
apple
1512999087257

Thank you. That concludes that the new version will work.
Could you please consider tagging v1.0.2 so that distros pick it up with all these array sort and Mac fixes? <3


Update microsoft365-maturity-model--intro.md

Category

[X] Content fix
Adjusted content order in MM4M365 intro article

Docs Build status updates of commit 5c1421e:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

Community/microsoft365-maturity-model--intro.md
:white_check_mark:Succeeded
View

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


Fix assignment of default provsioner

Signed-off-by: Rohit-PX<EMAIL_ADDRESS>

Successful run:  https://jenkins.portworx.co/job/Torpedo/job/tp-dev-test/316/


[Question] Are fast parallel writes in Delta Tables on S3 possible?

Are fast parallel writes in Delta Tables on S3 possible?
Which Delta project/connector is this regarding?

[x] Spark
[ ] Standalone
[ ] Flink
[ ] Kernel
[x] Other (Spark Connect)

Overview
I have set up a Spark Connect kubernetes cluster (Spark v3.5.0) that reads from and writes to a set of Delta Tables (using Delta 3.0.0). I am using AWS S3 as storage, AWS Glue as metastore, and have configured S3DynamoDBLogStore for concurrent writes.
I have also carefully partitioned the tables, and I'm trying to operate concurrently and in parallel for different partitions. The problem is that I see the performance of the system degrade very quickly (in terms of Spark computations) as the parallel requests increase in number.
If one job alone requires 2 minutes to complete, two jobs slow down to 3 minutes, 10 jobs slow down to 15-18 minutes, even though the Spark cluster utilization is quite low. Increasing resources/executors does virtually nothing.
I believe the slowdown is due to the locking mechanism of the delta tables.
I even tried the S3SingleDriverLogStore but no improvements.
I also tried disabling the snapshotCache (setting spark.databricks.delta.snapshotCache.storageLevel to NONE) to no avail.
Question
Are fast parallel writes in Delta Tables possible at all on S3? Are there other configurations that I can explore that could help me in my quest?

Perhaps multi-cluster writes will help here: https://delta.io/blog/2022-05-18-multi-cluster-writes-to-delta-lake-storage-in-s3/
Let me know if you find that blog useful!


Inconsistent warnings for correlation functions in scipy.stats

My issue is about scipy.stats.spearmanr() function handling constant input(s).
Reproducing code example:
from scipy import stats
sequence_1 = [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]
sequence_2 = [0, 0.009783728115345005, 0, 0, 0.0019759230121848587, 0.0007535430349118562, 0.0002661781514710257, 0, 0, 0.0007835762419683435]
myspearman = stats.spearmanr(sequence_1,sequence_2)

throws a RuntimeWarning but provides no informative output. While pearsonr() throws a
PearsonRConstantInputWarning which was added in a PR of @WarrenWeckesser in the 1.3.X release, here is the original PR:
https://github.com/scipy/scipy/pull/9562
Error message:
>>> myspearman = stats.spearmanr(sequence_1,sequence_2)
/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/numpy/lib/function_base.py:2530: RuntimeWarning: invalid value encountered in true_divide
  c /= stddev[:, None]
/Users/rlucas/anaconda3/envs/scipy-dev/lib/python3.6/site-packages/numpy/lib/function_base.py:2531: RuntimeWarning: invalid value encountered in true_divide
  c /= stddev[None, :]
/Users/rlucas/scipy-dev/scipy/scipy/stats/_distn_infrastructure.py:903: RuntimeWarning: invalid value encountered in greater
  return (a < x) & (x < b)
/Users/rlucas/scipy-dev/scipy/scipy/stats/_distn_infrastructure.py:903: RuntimeWarning: invalid value encountered in less
  return (a < x) & (x < b)
/Users/rlucas/scipy-dev/scipy/scipy/stats/_distn_infrastructure.py:1912: RuntimeWarning: invalid value encountered in less_equal
  cond2 = cond0 & (x <= _a)
# vs...
>>> myspearman = stats.pearsonr(sequence_1,sequence_2)
/Users/rlucas/scipy-dev/scipy/scipy/stats/stats.py:3508: PearsonRConstantInputWarning: An input array is constant; the correlation coefficent is not defined.
  warnings.warn(PearsonRConstantInputWarning())

Scipy/Numpy/Python version information:
>>> import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)
1.5.0.dev0+634d0c0 1.16.4 sys.version_info(major=3, minor=6, micro=7, releaselevel='final', serial=0)

I'm proposing to have a similar, informative warning message for spearmanr().
Interestingly, kendalltau() does not throw a warning or error on the input but does also produce nan in the namedtuple results.
This was originally found by EmJ and asked about on stackoverflow, link:
https://stackoverflow.com/questions/59002624/why-i-get-nan-in-spearman-correlation-in-python?noredirect=1#comment104258321_59002624

Reading back over the thread in #9562 now I see the response from @WarrenWeckesser

@chrisb83 wrote
should we replace PearsonRConstantInputWarning by ConstantInputWarning, I think this could >be a generic warning whereas PearsonRNearConstantInputWarning might be indeed a specific >warning for PearsonR

There are probably other functions that could use a similar pattern, but currently, it is specific to >pearsonr. I'd rather not try to generalize this without concrete use-cases. And if/when we >implement a similar behavior for other functions, I don't think there would be anything wrong with >another function, say foo(), having its own FooConstantInputWarning.
do we want to show the warnings in the overview generated by init.py?
I debated this, too. I figured they are part of the public API of scipy.stats, so they should be there. >But I don't mind taking them out. They are still documented in the pearsonr docstring, and maybe >that's enough. Any other opinions out there?

Based on that back and forth, provided we all still agree, I'd say the fix for this PR would be to have a separate constant input warning for the spearmanr() that provides a similar informative warning and is specialized to the function.
The only open question that I'd have here is whether we want to have this warning in a hierarchy? I can see e.g. a kendalltau constant input warning potentially in the future and maybe something for the regression functions and other interpolations as well. Thoughts?

Based on that back and forth, provided we all still agree, I'd say the fix for this PR would be to have a separate constant input warning for the spearmanr() that provides a similar informative warning and is specialized to the function.

Agree

The only open question that I'd have here is whether we want to have this warning in a hierarchy?

Can you explain?

I meant if we wanted a parent warning class of constant input and have the different correlation warnings inherit.
Alternate approach would be separate warnings for each that are single inheritance.
@chrisb83 Does that make sense?

On Dec 10, 2019, at 4:07 PM, Christoph Baumgarten<EMAIL_ADDRESS>wrote:

Based on that back and forth, provided we all still agree, I'd say the fix for this PR would be to have a separate constant input warning for the spearmanr() that provides a similar informative warning and is specialized to the function.
Agree
The only open question that I'd have here is whether we want to have this warning in a hierarchy?
Can you explain?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

So I thought about this a bit more and closely checked the source in warren’s PR. The Pearson warning inherits from a runtime warning. From rereading again the comments in the other PR, it sounds like the approach is to create a custom warning for spearman Have inherit from runtime. The benefit there is a simpler hierarchy and the trade off is you need to create a new warning class for each function.
I’ll create a new warning class following Warren’s approach, unless consensus changed.

On Dec 10, 2019, at 5:30 PM<EMAIL_ADDRESS>wrote:
I meant if we wanted a parent warning class of constant input and have the different correlation warnings inherit.
Alternate approach would be separate warnings for each that are single inheritance.
@chrisb83 Does that make sense?

On Dec 10, 2019, at 4:07 PM, Christoph Baumgarten<EMAIL_ADDRESS>wrote:

Based on that back and forth, provided we all still agree, I'd say the fix for this PR would be to have a separate constant input warning for the spearmanr() that provides a similar informative warning and is specialized to the function.
Agree
The only open question that I'd have here is whether we want to have this warning in a hierarchy?
Can you explain?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


Fix broken link in README

Hi Johann! Thanks for building Cacao Kit—I'm a recent Kirby convert and I'm excited to go headless with it. Just came across this broken link to the catch-all route as I was reading over your documentation. ✌🏼

Thanks a lot and have fun! 🙌


Blank page after build

Hi,
I made a small test of this package and when developing, I don't have any trouble with it.
The problem is each time after the build, when starting the .exe that is generated, I still have a blank page, and it seems CSS and JS files are not loading. It's remembering me the old baseHref trouble with electron, but I can't figure how to fix it.
It's searching for files in c:\ and not in the app directory

I made it with the quick start example in the repo here.
cd ./examples/quick-start
npm install --save-dev nuxt-electron vite-plugin-electron vite-plugin-electron-renderer electron electron-builder
npm run build

And then starting the .exe ./release/0.0.0/win-unpacked/nuxt-electron-quick-start.exe
I didn't worked with electron from a long time, and maybe I am missing something.
Thank you in advance for your help.

This is because Nuxt is trying to load CSS and JS from the absolute root path /. Take a look at .output/public/index.html:
<!DOCTYPE html>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/entry.3c4ebcd6.css">
<link rel="modulepreload" as="script" crossorigin href="/entry.f4ecee44.js">

In the production build Electron will load the file .output/public/index.html using the file:// URL protocol, the CSS and JS assets are relative to the index.html since they are in the same folder .output/public.
From what I researched Nuxt 3 does not support Static Site Generation which can be accessed from a disk folder using the file:// URL. It always require the site to be served by a webserver (i.e. http:// or https:// URL).

If anyone is facing the same issue, check out this repository; the build works well: https://github.com/gurvancampion/nuxt-electron-trpc-prisma

@hafsalm, i don't understand well how you resolve this problem in your project. Can you explain?

If anyone is facing the same issue, check out this repository; the build works well: https://github.com/gurvancampion/nuxt-electron-trpc-prisma

It can build but you can't run the production build, it works only in dev mode aka yarn run dev. I built myself that project, installed the electron app and tried to use it, it won't load the page, the screen will stay blank.

Please see my solution in this comment:

I have made a PR for this issue: #60
Meanwhile, the solution will be to add this to your nuxt.config.ts:
nitro: {
  runtimeConfig: {
    app: {
      baseURL: './',
    }
  }
}

Thank you @OlaAlsaker
It fixed at least the frontend part.
But all the /api/... routes seems to not work, or I don't know how I should write URL in useFetch.


The id of the namespace is declared twice in the html

Is there an existing issue for this?

[X] I have searched the existing issues

Version of Corteza
2024.9.0
Current Behavior
Namespaces have an ID, which is similar to the short name of the namespace. This ID is used in the CSS to target elements in a single namespace. It allows us to, for example, set a different background.
But, the same ID appears twice in a single namespace's HTML. This is not valid HTML (there can only be 1 ID) and it causes the background to be placed twice (one partly over the other one).

Expected Behavior
The second id = "clean_water_3c5z5"should be removed.
Steps To Reproduce
Inspect the HTML and you'll find 2 ID's in a single namespace.
Environment and versions
No response
Anything else?
No response

https://github.com/cortezaproject/corteza/commit/26270f215f02622a167deea8c4d0b2af18192757


fix(steps): provide functions args in function conditions values

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

What is the current behavior? (You can also link to an open issue here)
Currently, we don't have the function args values available in functions conditions (skip and check).

What is the new behavior (if this is a feature change)?
Now, the function args are available in functions conditions (skip and check).

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
No breaking change.

Other information:

CDS Report test#1310.0 ✘

tests and lint

golangci-lint ✔
unit-test and integration-tests ✘

CDS Report test#1309.0 ✘

tests and lint

golangci-lint ✔
unit-test and integration-tests ✘

CDS Report test#1310.1 ✘

tests and lint

golangci-lint ✔
unit-test and integration-tests ✘

LGTM.
Need to check why the build is failing

LGTM. Need to check why the build is failing

I guess as I cloned the values, the changes made by the condition wasn't saved in the DB. I think we have to alter the original Values with the FunctionArgs.
What do you think?

I added a test to verify my work

CDS Report test#1326.0 ✘

tests and lint

golangci-lint ✘
unit-test and integration-tests ✘

CDS Report test#1327.0 ✘

tests and lint

golangci-lint ✘
unit-test and integration-tests ✔

CDS Report test#1327.1 ✘

tests and lint

golangci-lint ✘
unit-test and integration-tests ✘

CDS Report test#1327.2 ✘

tests and lint

golangci-lint ✘
unit-test and integration-tests ✔

CDS Report test#1327.3 ✘

tests and lint

golangci-lint ✘
unit-test and integration-tests ✔

CDS Report test#1327.4 ✘

tests and lint

golangci-lint ✘
unit-test and integration-tests ✔

CDS Report test#1327.5 ✘

tests and lint

golangci-lint ✘
unit-test and integration-tests ✘

CDS Report test#1333.0 ✘

tests and lint

golangci-lint ✘
unit-test and integration-tests ✔

CDS Report test#1332.0 ✘

tests and lint

golangci-lint ✘
unit-test and integration-tests ✔

CDS Report test#1334.0 ✘

tests and lint

golangci-lint ✘
unit-test and integration-tests ✘

CDS Report test#1335.0 ✘

tests and lint

golangci-lint ✘
unit-test and integration-tests ✘


Update owners.json

High-level description
Adding a dcos-owner for helping with the train process

@mesosphere-mergebot bump-ee

@cprovencher Same request that I pasted on 1.9 PR

@mesosphere-mergebot bump-ee

@mesosphere-mergebot bump-ee

@mesosphere-mergebot bump-ee

@mesosphere-mergebot Ready For Review

@mesosphere-mergebot label Ready For Review

@mesosphere-mergebot label ship-it

Applying ship-it label since it is an owners file change, and has the required approvals.


Test against php 7.0

We should/could start testing against PHP 7.0.

StyleCI seems to fail. It has nothing to do with this PR since it doesn't have any syntax changes.


[Web] RenderRepaintBoundary.toImage cannot draw the image in CustomPainter

The image obtained on the web platform is blank, but it looks normal on the ios platform
It`s my code:
/// widget
...
return RepaintBoundary(
      key: repaintBoundaryKey,
      child: SizedBox(
        child: CustomPaint(
            painter: DoodlePainter(),
        ),
      ),
);
...

/// DoodlePainter
class DoodlePainter extends CustomPainter{
  paint(Canvas canvas, Size size){
      canvas.drawImage(someImage, ....);
  }
}

/// to image
final RenderRepaintBoundary boundary = repaintBoundaryKey.currentContext!
          .findRenderObject() as RenderRepaintBoundary;
final ui.Image image = await boundary.toImage(pixelRatio: ui.window.devicePixelRatio);
return await image.toByteData(format: ui.ImageByteFormat.png); // the image is blank

Hi @wilhantian, please provide a completed and minimal reproducible code sample so that we may verify this. Also, please provide the output of flutter doctor -v as well. Thank you!


Document Image release process

provide more information how Lagoon Images are created, released and used by services:

Upstream Image update Process
Lagoon Image Publish Process
Individual Projects/Environments update process

this is a WIP elsewhere