[Power Toys-Fancy zones>Launch Zones Editor>Canvas]: The new added canvas zone is not accessible with keyboard.

Microsoft PowerToys version
v0.79.0
Installation method
PowerToys auto-update
Running as admin
None
Area(s) with issue?
FancyZones Editor
Steps to reproduce
Test environment:
OS Build: Windows 11 Enterprise insider preview 23H2 (22631.3296)
Power toys version: v0.79.0
Repro Steps:

Open the Power Toys app in the desktop.
Select the Fancy zones option from left navigation pane.
Now activate the editor using shortcut key or by mouse click.
Now navigate to the create new layout and activate it.
Select canvas radio button and enter create.
Now observe whether added zone is keyboard accessible or not.

User Experience:
Lack of keyboard accessibility prevents users who rely on keyboard navigation from accessing and interacting with the added zone, impacting accessibility.
Guideline reference:
https://www.w3.org/WAI/WCAG22/Understanding/keyboard
Attachments:
https://github.com/microsoft/PowerToys/assets/117908911/f9d35239-29c9-4749-a213-0f24f6cf0ff2
✔ Expected Behavior
All interactive elements within the software interface, including the added zone, should be keyboard accessible. Users should be able to navigate to and interact with them using keyboard controls.
❌ Actual Behavior
The added zone is not keyboard accessible, meaning users cannot navigate to it or interact with it using keyboard controls.
Other Software
No response

Ctrl+Tab can be used to switch focus from Add-zone dialog to zones. This is stated in the docs https://learn.microsoft.com/en-us/windows/powertoys/fancyzones#keyboard

I'll put the shortcuts in UI as we do for Grid

This was fixed in the 0.81.0 release.

Closing this as fixed at latest release 0.81


Add edge warnings

Either the parent commit or repository url can be specified. Not both. If both are entered the create button is disabled and an error message is displayed.
This is based on #1244

Whichever field is entered second will display the error.

Love this!

@jkozol, all green already!


onChangeText calls after onSubmitEditing if auto complete has a highlighted option

Description
When autocomplete is enabled and has a valid option, the onChangeText callback fires with the autocomplete suggestion after onSubmitEditing has already been called. In this case, the onChangeText can overwrite any clearing that was done as a result of the onSubmitEditing. Any actions that are used as a part of onSubmitEditing are not up to date because the onChangeText with the autocorrect is called after.
React Native version:
System:
    OS: macOS 10.15.5
    CPU: (8) x64 Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz
    Memory: 1.24 GB / 16.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 12.13.0 - /usr/local/bin/node
    Yarn: 1.21.1 - ~/.yarn/bin/yarn
    npm: 6.12.0 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 12.4, macOS 10.14, tvOS 12.4, watchOS 5.3
  IDEs:
    Xcode: 10.3/10G8 - /usr/bin/xcodebuild
  npmGlobalPackages:
    react-native-cli: 2.0.1

Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.

Have a TextInput with autocorrect enabled
Add onChangeText and onSubmitEditing listeners
Type something on iOS that has an autocorrect option highlighted (don't manually select it)
Hit return

Expected Results
The onChangeText fires before onSubmitEditing with the autocorrect suggestion. This would make clearing the text input work and also make the onChangeText accurate for submitting with changed autocorrect text.
Snack, code example, screenshot, or link to a repository:
https://snack.expo.io/@notatrojanhorse/adequate-cake

We're also affected by this - in our case, we have a chat text input box which "sometimes" does not clear text properly. This happens exactly in the scenario where an autocorrect is suggested, but not accepted by the user before submitting, as noted here.
There seems to be no way to detect whether an onChange event was caused by autocorrect or the user typing, so there doesn't seem to be any way of working around this for now.

For anyone else looking at this, I also confirmed today that I see the same thing in in expo 38 (RN 62.2).

I can confirm the bug, and it gets worth when you submit through a button because onChange is not even called.
In the case of OP, you can use state to ignore the edit after submitting
In my case with a button, I rely on a timeout on iOS to clear the input again after 100ms.
Those are just workarounds and hopefully this gets fixed.

I can also confirm its happening for me. I am using expo version 40. The work around that I am currently using is, when I submit my text,
setTimeout(() => setText(''), 50);

wait 50ms before I clear the text input text.

any updates on this one?

I am also having this issue and want to avoid having a delay on submit to wait for the state to update

I am experiencing this issue today.


how to handler visible each fragment in ViewPager

Hi @YoKeyword
I have a ViewPager that consists of 4 Fragment.
When I start App, onSupportVisible is called in 4 Fragment
How to handler visible each fragment in ViewPager

Hi, @ngochuu90
onSupportVisible() is callback when the Fragment visible to the user。
（onSupportVisible() is a combination of onHiddenChanged() and setUserVisibleHint()）

Thanks for your answer.
But onSupportVisible() was called four fragments at the same time.
I want to handler visible each fragment in ViewPager.
For example: Viewpager include: Fragment A, B, C, D
When viewpager setCurrentItem(A). onSupportVisible() is not called in B, C, D
When viewpager setCurrentItem(B). onSupportVisible() is not called in B
When viewpager setCurrentItem(C). onSupportVisible() is not called in C
....
Looking forward to receiving your help. Thank you

Which version do you use?
v0.10.1:  As you would expect:

When viewpager setCurrentItem(A). onSupportVisible() is called in A, is not called in B, C, D
When viewpager setCurrentItem(B). onSupportVisible() is called in B
When viewpager setCurrentItem(C). onSupportVisible() is called in C
....

It seems I have some confusion. Thanks for your support. Great Library

My problem:
D is blank fragment.  In D, I loadRootFragment(Fragment E) in onCreateview()
onSupportVisible() is not called in D, but is called in E

Thx！
I got it and fix it.


Move domain to Cloudflare

Is your feature request related to a problem? Please describe.
Want to move domain to Cloudflare for DDoS and Analytics.
Additional context
Site will have better security and want to enable Cloudflare analytics

All done ✅


Text.Gigaparsec.Combinator and Text.Gigaparsec.Expr

We still need support for the suite of expression parsing combinators ported from DPfPC/thesis, and the remaining combinators from parsley.combinator to be ported over. These need documentation and tests as well.

Partially completed via #10


Alternative way to get genomic positions

Description of feature
Currently the only way to get genomic positions is through reading a GTF file. This is (a) slow and (b) gtfparse repeatedly makes problems.
It could be more conveniente to retrieve this information from online sources such as biomart or Bioconductor AnnotationHub.
Then gtfparse could become an optional dependency.

This works very well for me as well
https://scanpy.readthedocs.io/en/stable/generated/scanpy.queries.biomart_annotations.html

very nice 🤩


Add/fix nice badges

Will you release this plugin as a Composer package?

Looks great!

Will you release this plugin as a Composer package?

@szepeviktor - yes. Just pushed WP2Static out as package last week and will follow with this and any other repos. Doesn't look like any/many have pulled it from Packagist yet, but I'll add some notes for users on Composer-based WP. Any such provisioning methods you like?

Any such provisioning methods you like?

You can stuff a whole WP installation into one composer.json

Packagist
WPackagist
GitHub repos
ZIP files
Composer plugins

and so on...

e.g. https://github.com/szepeviktor/debian-server-tools/blob/master/webserver/wp-install/roots-composer.json

e.g. https://github.com/szepeviktor/debian-server-tools/blob/master/webserver/wp-install/roots-composer.json

Perfect, thanks!


Show sub options of freeform types

Motivation for this change
Previously if you set the freeform type (as introduced in https://github.com/NixOS/nixpkgs/pull/82743) to e.g. attrsOf (submodule ..), those submodule options wouldn't be shown in the manual.
Originally this problem was brought to my attention by @alexarice
With an option declaration like
{ lib, ... }: {
  options.foofoofoo = lib.mkOption {
    type = lib.types.submodule {
      freeformType = lib.types.attrsOf (lib.types.submodule {
        options.bar = lib.mkOption {
          description = "Freeform bar";
        };
      });
      options.qux.bar = lib.mkOption {
        description = "Qux bar";
      };
      options.bar = lib.mkOption {
        description = "Submodule bar";
      };
    };
  };
}

The manual now correctly shows

Ping @roberth
Things done

[x] Checked that the manual still builds
[x] Checked that even more complex cases like freeformType = attrsOf (attrsOf (submodule { freeformType = attrsOf ... work

Just checked out the change on my code and seems to work well. Thanks @Infinisil
Only nitpick is the following:

Is there a way to stop this top level package appearing in the documentation?

@roberth Added a test for that
@alexarice Not possible as of now, but I'll keep this use case in mind if I happen to touch the relevant code for it :)


Time travel support

Allow users to go back in time and show the UI as it was at any given point in the past.
Note that this is related but different to #1619

I envisage video player like controls here.
Scope controls - terminals, logs, etc - won't work, but that's ok.

@fbarl has developed some mockups and there's a prototype in #2524


404 at /config/container-networking

I found a broken link : https://docs.docker.com/config/container-networking

Hey @andrevieira2018
Thanks for reporting the broken link issue. Could you let us know how you arrived at the broken link?

Thanks for sharing the issue. We are unable to reproduce the issue and are closing it due to insufficient information. If you still encounter the issue, please respond with the requested details.


Create a built in translator for SelfQueryRetriever for Elasticsearch

Feature request
Inferring query filters from natural language is powerful. The SelfQuery retriever is a great implementation but is not yet compatible with Elasticseach.
Motivation
Choosing Elasticsearch as a vector store is interesting in terms of hybrid search.
It also makes sense when you have an established infrastructure and technical expertise.
 Waiting for release.


PR#322 IOSXE/show chassis rmi

Description
Parser crated for show chassis rmi
Motivation and Context
Takes returned unstructured data and converts it to structured data
Screenshots:

Checklist:

[x] I have updated the changelog.
[x] All new and existing tests passed.
[x] All new code passed compilation.

Cisco PR


How to start 'bash' for Ubuntu 16.04 and Ubuntu 18.04 respectively

Microsoft Windows [Version 10.0.17134.48]
I install both Ubuntu 16.04 and Ubuntu 18.04 from the Microsoft Store.  They can start from icon in the menu. But type 'bash' in the Windows PowerShell can start the 16.04 version (first install one).
Is there another 'bash' point to 'bash' of '18.04' and i modified the setting in VS Code like this "terminal.integrated.shell.windows": "C:\Windows\sysnative\bash.exe" to start WSL in VS Code.
How to start bash for Ubuntu 16.04 and Ubuntu 18.04 respectively ans use Ubuntu 16.04 and Ubuntu 18.04 in the VS Code.

Bash.exe launches /bin/bash in your default distribution. You can configure this via wslconfig.exe

Alternatively, you could run wsl.exe instead of bash (which is the supported way) or call the executibles directly. So ubuntu.exe or ubuntu1804.exe.


Summary and Data are not matching for Search Term View - Report

Describe the bug:
Summary and Data are not matching for Search Term View - Report
Steps to Reproduce:
Generate 2 reports as below with Summary Row and Without Summary Row (data)
Full Data:
googleAdsService.SearchStream(googleAPIDetails.CustomerId, query,
delegate (SearchGoogleAdsStreamResponse resp)
{
var result = resp.ToString();
System.IO.File.WriteAllText(@"D:\Downloads-sdk\SearchTermJun01-Data.json", result);
         }
Summary Data:
googleAdsService.SearchStream(googleAPIDetails.CustomerId, query,
delegate (SearchGoogleAdsStreamResponse resp)
{
var result = resp.ToString();
System.IO.File.WriteAllText(@"D:\Downloads-sdk\SearchTermJun01-Summary.json", result);
}
, Google.Ads.GoogleAds.V12.Enums.SummaryRowSettingEnum.Types.SummaryRowSetting.SummaryRowOnly
);
Expected behavior:
Clicks, costMicros and Impressions should match in both Json files.
Client library version and API version:
Client library version: 12
Google Ads API version: 12
.NET version:
Operating system Windows 10
Request/Response Logs:

@VishwanathKri this is not a library-specific issue, but I located the issue in the support queue and I can follow up from there.


[Note] Event-driven consumption & writing to delta tables

What concept do you need more clarity on?
Event-driven architecture using Event Hub as the source
Any reference explaining that concept
Event Hub integration: using Spark to ingest Event Hub payloads into Delta tables, using Spark to create Event Hub messages
Have you checked the list of issues to see if there is a similar suggestion?

[X] Yes, I have checked (please check this box)

Hi @robcube,
Thanks for your suggestion! Do you absolutely want to use Spark for the ingestion? With Synapse Realtime within Fabric, there are simpler options (assuming you don't need specifc transformations)

Hi @robcube, Thanks for your suggestion! Do you absolutely want to use Spark for the ingestion? With Synapse Realtime within Fabric, there are simpler options (assuming you don't need specifc transformations)

Include the different options. Perhaps something like "Event driven architecture combining Event hub and low-code options <Synapse Realtime, X, Y, Z>" and "Able to use Spark for <custom | complex transformations, other use cases> by leveraging <Spark feature | function | plug-in | etc.>"


feat: Update dependencies

#__
Checklist

[ ] I didn't over-scope my PR
[ ] My PR title matches the commit convention
[ ] I did not include breaking changes
[ ] I included unit tests that cover my changes
[ ] I added/updated the documentation about my changes
[ ] I made my own code-review before requesting one

Description of the changes

Technical highlight/advice

:tada: This PR is included in version 1.0.0-beta.99 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.0.0-alpha.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Long term fix for executeSelect's table_not_found issue

b/241134681 's short term fix https://github.com/googleapis/java-bigquery/pull/2222 uses polling to fix the issue.
As a long term cleaner solution we can explore:

Providing an API Future based async implementation which can offer more control to the users (in terms of cancelling the operation and checking the status)
Removing patch of logic related with queryDryRun which wont be necessary after this fix
See if we can optimise the fast and slow query paths. The current flow is a bit convoluted
A similar error can probably occur in the fast query path if we get an incomplete job id from the backend and Read API is initialised on the basis of the response from useReadAPI
Exploring a JDBCish overloaded method [if we redesign executeSelect to return APIFuture, then we may want to have a synchronous counterpart like executeQuery as well to comply with JDBC standards]
Add user configurable timeout for getQueryResults RPC (it can be in the range 1 - 200 secs . Ref https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/getQueryResults)

These seem reasonable.  The async design provides for some interesting permutations:

return a future that returns the tableresult on completion, and optionally make it easy to wire job cancellation in.
refactor TableResult so that it becomes the future

The thing to keep in mind when designing is what you want for queries that return no results, and for queries (scripts) that may return multiple result sets.
RE: 5 -  The original design was for there to be three components:  executeSelect, executeUpdate, and execute.  My expectation is that JDBC would map to the third method, as it represents the query method where the content is ambiguous.

These seem reasonable. The async design provides for some interesting permutations:

return a future that returns the tableresult on completion, and optionally make it easy to wire job cancellation in.
refactor TableResult so that it becomes the future

The thing to keep in mind when designing is what you want for queries that return no results, and for queries (scripts) that may return multiple result sets.
RE: 5 - The original design was for there to be three components: executeSelect, executeUpdate, and execute. My expectation is that JDBC would map to the third method, as it represents the query method where the content is ambiguous.

Thanks for taking a look @shollyman . I will put together the async design while trying to accommodate the mentioned permutations and get back.
Regarding point#5 my initial thought was to have one synchronous method executeQuery which will return ResultSet as our current executeSelect does. We can then modify executeSelect to return a Future. This reason for this is executeQuery is a commonly used method in JDBC. WDYT?


FAQ inconsistent navigation using breadcrumbs

Where to find the issue
https://www.coronawarn.app/en/faq/results/
Describe the issue
If the https://www.coronawarn.app/en/faq/results/ page is opened through a topic selection on a wide-screen desktop browser, then clicking on a section in the displayed breadcrumbs does not display the full section selected.

This issue is related to https://github.com/corona-warn-app/cwa-website/issues/2748.

Steps to reproduce

Open https://www.coronawarn.app/en/faq/ in Google Chrome wide desktop browser
In column "What to do, if?" click on "Positive test"

In breadcrumbs, click on "What to do, if?"

Note that only "Positive test" is shown. This is not desired.

The link which was followed was https://www.coronawarn.app/en/faq/results/?search=&topic=stories#undefined

Now compare to:

Open https://www.coronawarn.app/en/faq/results/ in Google Chrome wide desktop browser

In left-hand menu scroll down to "What to do, if?", click on "Positive test"

In breadcrumbs, click on "What to do, if?"

Note that "What to do, if?" then "Red Card", "Positive test" and "Vaccination recommendation" are shown. This would be the desired behaviour.

The link which was followed was https://www.coronawarn.app/en/faq/results/?search=&topic=stories

Expected behaviour
Clicking on a topic section name in the breadcrumbs should show that full section. In the above "Steps to reproduce", after clicking on "What to do, if?" (step 3.) then "Red Card", "Positive test" and "Vaccination recommendation" should be shown.

This issue is addressed by PR #2802


Positions element

If I have many sliders one after another, then when zooming in, the bottom slider overlays on top of the zoomed image

Thanks for reporting @K073!
I will take a look at it this week

Fixed in 1.4.0

If you want an alternative for this, I recommend checking out this Instagram carousel downloader


Added Profile Page

Fixes #75 .
Profile Page has been added.

@hashirshoaeb Please check and tell if any more changes are required.

@hashirshoaeb Please check and tell if any more changes are required.

Revert the changes for home_page.dart. You can add button for yourself to test the profile page but you do not need to push those changes for PR.
Use variable to set name, see User model in models director.
make a separate widget for stats, in the same file.

Note: you do not  need to close this PR. just made the above changes in the same branch and it will be good to  go.
Also try using cupertino dynamic colors. Not necessary for now. but it will be good for your learning.

Revert the changes for home_page.dart. You can add button for yourself to test the profile page but you do not need to push those changes for PR.
Use variable to set name, see User model in models director.
make a separate widget for stats, in the same file.

Note: you do not  need to close this PR. just made the above changes in the same branch and it will be good to  go.
Also try using cupertino dynamic colors. Not necessary for now. but it will be good for your learning.

Ok sure.

Ok sure.

@hashirshoaeb Check for requested changes in latest commit.

@hashirshoaeb Check for requested changes in latest commit.


No effect of fetching latest data from blockchain 100%

Description

Expected Behavior

Actual Behavior

Possible Fix

Steps to Reproduce

Context

Your Environment

Zap version:
Operating System and version:

I've got the same issue (50% vs 100%) after I sent my funds out to an on-chain wallet address. Help!

The fetching latest data from the Blockchain screen is not chainging. According to the "Commitment Filter", Zap should be insync but no shreen change happens. Also tried shutting down and restarting Zap several times. Does someone can help? Thx.

Please can you try with the latest release, https://github.com/LN-Zap/zap-desktop/releases/tag/v0.7.7-beta. Thanks.

Hallo mrfelton, thanks, Zap v0.7.7-beta fixes the issue. Zap Wallet opens up without any issues after the synch with the Chain is done.


Add current active file to context by default

Working added current file context - Delete not working well yet. Although the boolean of useActiveFileFinal becomes false, for some reason it still adds it to the chat when pressing enter (can see it under Context).

Need to test the following:

[x] - Changing files
[x] - Writing something and changing files (should keep changing)
[x] - CMD+L with portion of code or slash command then changing files
[ ] - Same file, deleting current file context, pressing file and going back to chat should not re-add.
[x] - Same file, deleting current context, going to different ifle and coming back should re-add.
[x] - Chatting in current, then subsequent chats should not tag anymore.
[x] - New chat: should have context
[x] - Opening previous chats from history, should not have context
[x] - putting a slash command
[ ] - if an error, does it remove prompt? should not remove

@Fryingpannn
A couple things that aren't working for me:

Clicking Enter removes the file and it doesn't go to context.
Clicking inside the text editor on the active file does not add it as context if you deleted the file - you have to physically switch files to get it to add the file back.  Clicking inside the text editor does not add files at all.
If you type text, then delete that text, switching files to change the current file no longer works.  In fact, deleting the current file causes all sorts of issues, to the point that I have to reload the entire window to get things working again.

Still really buggy.
Pros:

The chat input box text and context does not get deleted when there is an error.
The UI for this is great and I like it.

@Fryingpannn - There seems to be some UX issues here that are not being accounted for. While my PR may have seemed overly complicated, it accounted for many different user interactions with the chat box.   Many of these interactions are not handled by this PR.

@Fryingpannn I updated my PR with some of your code changes. https://github.com/trypear/pearai-submodule/pull/127

@Fryingpannn I updated my PR with some of your code changes. https://github.com/trypear/pearai-submodule/pull/127

Added PR for an issue with displaying non-file context from other extensions. https://github.com/trypear/pearai-submodule/pull/159


GUI for trivy-operator

Add a Web UI that makes it easy to consume the CRD that the operator generates

@nublarsec trivy-operator-lens-extension available

@itaysk @chen-keinan that's really amazing to know that a native GUI is prioritized by you ;) .. just wanted to ask is there a known target release date for that GUI already? .. We are in desperate need for it at the moment.

Hello, after some further consideration we have decided de-prioritize investing in a full fledged web UI for Trivy. We prefer to focus on delivering more value and features to the scanning.

It's possible to build a UI on top of Trivy Operator in a different repository, so anyone is welcome to work on that.
For a quick and easy solution, we've seen some nice Grafana dashboards for Trivy Operator out there. We will likely highlight these in the docs at some point.
And finally there's the paid Aqua platform that's built on top of Trivy Operator and provides additional functionality including a management console.

kubeclarity has a cool UI. wondering why trivy doesn't have a one

another good option by @fjogeleit : https://github.com/fjogeleit/trivy-operator-polr-adapter

Hi there,
I know that this is an old post, but I think it is ok to post here.
We are a small team of enthusiasts that created a dashboard application for Trivy Operator. Link on github.
For now, the app has support for

Vulnerability Reports
Config Audit Reports
Cluster RBAC Assessment Reports
Exposed Secret Reports

In the near future, we plan to implement also the others.
We are glad to share it with the community. And we hope it will be useful, as it is for us. :-)
Cheers


Swagger UI headers

Current Implementation
In current implementation, it is not possible to send calls from Swagger UI because one can't provide authentication headers: X-SSL-Client-SHA256 and X-SSL-Client-DN
Suggested Enhancement
Add possibility to specify in Swagger UI these headers
Expected Benefits
Swagger UI becomes more useful.
Who should do it
I am happy to create PR if you believe it is a useful feature

Hi @iliecirciumaru,
yes this currently a "pain point". I do not want to add these headers to the swagger document because it could/would lead other developers to always send these headers (even in real deployed instance)
As long as the Swagger Doc is created programmatically we maybe could find a way to add these headers only when a specific profile (e.g. "dev") is active.
This would enable the usage of Try-Out feature on local deployments.

I have found another way to realize this. Please check the branch swagger-ui-auth-header and activate the Spring-Profile local then a "authorize" field should appear which accepts the two headers.

I've created a PR for this branch. This ticket will be closed as soon as the PR is merged.


protocol: add option to specify bearer token

This PR adds an option to send a bearer token in the authorization
header.

Current dependencies on/for this PR:

main

PR #23   👈

This comment was auto-generated by Graphite.

⏳ This pull request is set to merge as part of a Graphite merge job
Job ID: h4OapcrAr7BENYgmmKPB.
See details on graphite.dev


added example to recursion.html

I thought an example of recursion would help others to understand about it better

Please check if this PR fulfills these

[x] The commit message is descriptive of changes
[x] You have tried at least one local test (this includes viewing the changes on your local fork)
[x] Docs have been added / updated as needed (for bug fixes / features)

What kind of change does this PR introduce?

[x] Typo / Doc Update
[ ] Bug Fix
[x] Feature / New Item

What is the new behavior (if this is a feature change)?

[ ] Added Interview Technical Question
[ ] Added Interview Whiteboard Question
[x] Corrected existing items
[ ] Other

Other information:

Thanks! I like the example, but it should probably be moved out of the footer. Could you make that change?

I did not understand what you want.Can you explain me please

Sure! It looks like the tag added was added inside the footer tag? I'd like to keep the footer tag the same throughout the entire project, so I think the code snippet here should be moved up and out of the footer. Right now it looks like this:

An
            Approachable Open Source project from
            Approachable IO

Here is an example code to calculate the power of a number provided with the exponent

          def power(base,exp):
              if(exp==1):
                  return(base)
              if(exp!=1):
                  return(base*power(base,exp-1))
          base=int(input("Enter base: "))
          exp=int(input("Enter exponential value: ")
          print("Result:",power(base,exp))

Fixed in another PR!


Support latest channels

This PR adds support for channels 2. Django Channels now supports groups right out of the box. No need to import Group as the model has been removed

Thanks for the contribution. I'm closing this in favor of just-merged #16, which supports Django Channels 2.4 and updates documentation.


Update encrypted credentials

This pull request updates the encrypted credentials for use with Travis.

Codecov Report

Merging #659 into master will increase coverage by 8.78%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #659      +/-   ##
==========================================
+ Coverage   53.68%   62.46%   +8.78%
==========================================
  Files         258      258
  Lines       19072    19072
==========================================
+ Hits        10238    11914    +1676
+ Misses       8834     7158    -1676

Impacted Files
Coverage Δ

...ageTranslatorV2Tests/LanguageTranslatorTests.swift
80.31% <0%> (-5.86%)
:arrow_down:

...urce/LanguageTranslatorV2/LanguageTranslator.swift
81.55% <0%> (-0.98%)
:arrow_down:

Source/SpeechToTextV1/SpeechToTextRecorder.swift
13.33% <0%> (+13.33%)
:arrow_up:

Source/SpeechToTextV1/SpeechToTextSession.swift
23.63% <0%> (+23.63%)
:arrow_up:

Source/SpeechToTextV1/SpeechToTextEncoder.swift
48.05% <0%> (+48.05%)
:arrow_up:

...rtingFiles/Dependencies/Starscream/WebSocket.swift
59.76% <0%> (+59.76%)
:arrow_up:

Source/SpeechToTextV1/SpeechToText.swift
63.8% <0%> (+63.8%)
:arrow_up:

Source/SpeechToTextV1/SpeechToTextSocket.swift
65.31% <0%> (+65.31%)
:arrow_up:

...eechToTextV1/Models/SpeechRecognitionResults.swift
70% <0%> (+70%)
:arrow_up:

Tests/SpeechToTextV1Tests/SpeechToTextTests.swift
72.82% <0%> (+72.82%)
:arrow_up:

... and 17 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 ee7e2ad...46071ac. Read the comment docs.


Allow updating the version of PNPM itself

This is just an experiment, no tests yet.
It's the first example of us updating the version of a package manager, I think it would be a good practice to start doing this more, since it helps ecosystems move forward and makes it easier for us to drop support for old versions.

Would love to see this, also for other package managers!

pnpm v9 still does not work at all. ✨
It has been months now, with only minimal interest or response.  We need something like your solution @deivid-rodriguez  so the community is not dependent on non-existent dependabot maintenance.
Related Issues:

https://github.com/dependabot/dependabot-core/issues/9684#issuecomment-2137899341
https://github.com/dependabot/dependabot-core/issues/9682
https://github.com/dependabot/dependabot-core/issues/9684
https://github.com/dependabot/dependabot-core/issues/9321

Related PRs

https://github.com/dependabot/dependabot-core/pull/7298
https://github.com/dependabot/dependabot-core/pull/8936
https://github.com/dependabot/dependabot-core/pull/9006
https://github.com/dependabot/dependabot-core/pull/9687#issuecomment-2139150623
https://github.com/dependabot/dependabot-core/pull/9668
https://github.com/dependabot/dependabot-core/pull/9808

I'm not sure if the almost identical message you posted in most of those other linked issues is relevant there, but I don't think it's relevant here at all. I don't think this PR will fix any of those issues.
You're welcome you to try for yourself and verify though, and also to contribute a fix for the problem with PNPM 9. That would be helpful.

I am too overloaded by other work to be able to help support a marketing bullet point for Microsoft.  My hope in posting a summary of the issue is to get Microsoft to become aware of the mess and cleanup the house, but that isn't working.
This is an excellent example of why we can't allow this space to become monopolized. I will instead switch to Depfu, which supports pnpm.


Web documentation missing, though it is referenced

You reference a web documentation API here and the ability to use it with this package, but you fail to mention how.  Only RTM is mentioned.

#193

Closing as a duplicate of #193


We have a IsEmbeddingsVector in InputListType, TCGC does not

our definition of InputListType is:
internal record InputListType(InputType ValueType, bool IsEmbeddingsVector, bool IsNullable) : InputType("Array", IsNullable);

which has a boolean IsEmbeddingsVector. TCGC does not have this property on its SdkArrayType.

We have this data structure in Azure Core template: https://azure.github.io/typespec-azure/docs/libraries/azure-core/reference/data-types#Azure.Core.EmbeddingVector
But currently TCGC and our emitter are doing nothing about it. We need to fix this.

Pending on https://github.com/Azure/typespec-azure/pull/1000


Add support for Affinity Designer

Added support for icons to be used as an asset in Affinity Designer

Hey thanks for this! Unfortunately we won't be able to keep this up to date or maintain it so I don't want to offer it officially. Hope that's understandable, thanks again.


Fixes sizing issue with Project Decription overlapping the native mobile screens

Before:

After:

Thank you! Looks great


ENYO-6286: Try IntersectionObserver

Experiment using IntersectionObserver to add the fade class without a re-render.
Note: Required a fair amount of CSS reworking to calc correctly which is currently affecting layout. Just an experiment to aid perf investigations.

Note: Need to remove fade after first block of text leaves so it doesn't fade the second block.


Fix type spec in brod_transaction

brod:transaction spec is:
-spec transaction(client(), transactional_id(), transaction_config()) -> {ok, transaction()}.

and brod_transaction:init also has:
init({Client, TxId, PropListConfig}) ->
  ClientPid = pid(Client),

but new and start_link were expecting only a pid. The client() spec itself is:
-type client() :: client_id() | pid().

Thank you for the PR @indrekj

thank you. this is included in 4.1.0


Change he or she to they to make it more inclusive

Why:
The use of "he or she" is not inclusive of non-binary individuals

What's being changed (if available, include any code snippets, screenshots, or gifs):

Check off the following:

[x] I have reviewed my changes in staging (look for the "Automatically generated comment" and click the links in the "Preview" column to view your latest changes).
[x] For content changes, I have completed the self-review checklist.

Writer impact (This section is for GitHub staff members only):

[ ] This pull request impacts the contribution experience

[ ] I have added the 'writer impact' label
[ ] I have added a description and/or a video demo of the changes below (e.g. a "before and after video")

@laralove143 Thanks for catching this and opening a PR wit this fix! 💖
I'll get this merged once all the checks have passed ✅


[Backport 2.x] Upload remote paths during index creation or full cluster upload

Backport https://github.com/opensearch-project/OpenSearch/commit/3ea0a31f6f613ddd5b7bde0053195d5b212c813d from https://github.com/opensearch-project/OpenSearch/pull/13150.

❌ Gradle check result for 60916bf: FAILURE
Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Flaky test - https://github.com/opensearch-project/OpenSearch/issues/10785


ImportError: /lib/x86_64-linux-gnu/libOpenGL.so.0: undefined symbol: _glapi_tls_Current

❓ Questions and Help
Hello all;
I was getting following error while running : python setup.py install --headless
-- Could NOT find EGL (missing: EGL_INCLUDE_DIR)
CMake Error at deps/magnum/src/Magnum/Platform/CMakeLists.txt:796 (message):
EGL library, required by some contexts, was not found. Set
WITH_*APPLICATION and/or WITH_EGLCONTEXT to OFF to skip building them.
-- Configuring incomplete, errors occurred!
Then I tried solution given in: https://github.com/facebookresearch/habitat-sim/issues/256
Hence, installed libgl1-mesa-dev and libegl1-mesa-dev
sudo apt-get install libgl1-mesa-dev
sudo apt-get install libegl1-mesa-dev
Now, I got following error while running python examples/example.py:
(habitat1) hemnani1@boss8:~/DIR1/habitat-lab$ python examples/example.py
2020-12-12 18:49:48,396 Initializing dataset PointNav-v1
Traceback (most recent call last):
File "examples/example.py", line 28, in
example()
File "examples/example.py", line 14, in example
config=habitat.get_config("configs/tasks/pointnav.yaml")
File "/home/hemnani1/DIR1/habitat-lab/habitat/core/env.py", line 78, in _init                                                          _
id_dataset=config.DATASET.TYPE, config=config.DATASET
File "/home/hemnani1/DIR1/habitat-lab/habitat/datasets/registration.py", line 2                                                          0, in make_dataset
return _dataset(**kwargs)
File "/home/hemnani1/DIR1/habitat-lab/habitat/datasets/pointnav/init.py", l                                                          ine 30, in init
raise pointnav_import_error
File "/home/hemnani1/DIR1/habitat-lab/habitat/datasets/pointnav/init.py", l                                                          ine 20, in _try_register_pointnavdatasetv1
from habitat.datasets.pointnav.pointnav_dataset import (  # noqa: F401
File "/home/hemnani1/DIR1/habitat-lab/habitat/datasets/pointnav/pointnav_datase                                                          t.py", line 15, in
from habitat.tasks.nav.nav import (
File "/home/hemnani1/DIR1/habitat-lab/habitat/tasks/nav/nav.py", line 31, in
from habitat.sims.habitat_simulator.actions import HabitatSimActions
File "/home/hemnani1/DIR1/habitat-lab/habitat/sims/habitat_simulator/actions.py                                                          ", line 12, in
import habitat_sim
File "/home/hemnani1/anaconda3/envs/habitat1/lib/python3.6/site-packages/habita                                                          t_sim-0.1.6-py3.6-linux-x86_64.egg/habitat_sim/init.py", line 13, in
from habitat_sim import (  # noqa: F401
File "/home/hemnani1/anaconda3/envs/habitat1/lib/python3.6/site-packages/habita                                                          t_sim-0.1.6-py3.6-linux-x86_64.egg/habitat_sim/agent/init.py", line 7, in
from .agent import *  # noqa: F401,F403
File "/home/hemnani1/anaconda3/envs/habitat1/lib/python3.6/site-packages/habita                                                          t_sim-0.1.6-py3.6-linux-x86_64.egg/habitat_sim/agent/agent.py", line 10, in
import magnum as mn
File "/home/hemnani1/anaconda3/envs/habitat1/lib/python3.6/site-packages/magnum                                                          /init.py", line 28, in
from _magnum import *
ImportError: /lib/x86_64-linux-gnu/libOpenGL.so.0: undefined symbol: _glapi_tls_C                                                          urrent
Can anyone please help me resolve this error.

Hi @KenaHemnani
I had the same problem. In my case, I was configuring the server from scratch (to run the habitat).
STEPS TO REPRODUCE:
I installed the nvidia-driver and cuda first.
Then I installed the habitat dependencies listed here by running:
sudo apt-get update || true
# These are fairly ubiquitous packages and your system likely has them already,
# but if not, let's get the essentials for EGL support:
sudo apt-get install -y --no-install-recommends \
     libjpeg-dev libglm-dev libgl1-mesa-glx libegl1-mesa-dev mesa-utils xorg-dev freeglut3-dev

And got the same error message as you attached above.
The root cause is:

Note: Installing Mesa may overwrite the /usr/lib/libGL.so that was previously installed by the NVIDIA driver, so a reinstallation of the NVIDIA driver might be required after installing these libraries.

Source: cuda installation guide.
SOLUTION: reinstallation of the NVIDIA driver solved the issue for me.

Hi there,
I came across the same problem, and I found a more convenient solution by reinstalling libglvnd.
I solved the problem by running (on CentOS7):
sudo yum reinstall libglvnd

For your reference: https://github.com/openai/mujoco-py/issues/513

Looks like this is resolved.


Adding missing }

Pull Request Test Coverage Report for Build 226

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 225:
0.0%

Covered Lines:
125

Relevant Lines:
125

💛  - Coveralls


[DOCS]: Spin up docs site

Build docs site with:

Project overview
Install instructions
Contributing
Sponsoring

Options

Docusaurus
Hand-rolled
Other?

It will be hosted on analogjs.org

I'm happy to help with Docusaurus and GitHub Pages.

I'm on board with using Docusaurus and GitHub pages to start. May move deployment to Netlify later for PR previews and such

Suggestions for the Sponsoring page, @brandonroberts?

My suggestions would.
You can sponsor this project through GitHub sponsors with a link to that.
Sponsorships of at least $50/month will get their logo added to the GitHub README.
Sponsorships of at least $100/month will get their logo added to the GitHub README and the homepage of the website. Thanks will also be mentioned in blog posts about the project.
Sponsorships over and above these amounts can be discussed further about sponsorship opportunities.


Remove Safari warnings once Selenium fully supports it again

On my mac it's not possible to do my tests with safari. This is my command line:
wct --browsers safari --persistent

And this is the error:
Unable to establish a connection with the SafariDriver extension

My testing environment:
OS: 10.10 Yosemite
WCT: v1.1.4

The SafariDriver manual installation no longer works (at least with OS X El Capitan, Safari 9.1.2, SafariDriver 2.48), so the instructions that WCT emits aren't helpful anymore. 😦

Bump, now that Apple use a new driver for safari in sierra+ this fails to start now.


 DO NOT EDIT - 2018-05-29T08:42:54",
"version": "eosio::abi/1.0",
"types": [],
"structs": [{
"name": "hi",
"base": "",
"fields": [{
"name": "user",
"type": "name"
}
]
}
],
"actions": [{
"name": "hi",
"type": "hi",
"ricardian_contract": ""
}
],
"tables": [],
"ricardian_clauses": [],
"error_messages": [],
"abi_extensions": []
}
cleos call  run well
cleos push action eosio hi '["2222"]' -p eosio
executed transaction: 5795a63f6568e336b788099f4392188263b08fa353a8041ab931bbd13040d346  104 bytes  293 us
eosio <= eosio::hi                    {"user":"2222"}
warning: transaction executed locally, but may not be confirmed by the network yet
➜  hello git:(00c786974) ✗

i'm also looking for something like this

What account did you deploy the contract too?  Unlikely that you deployed it to eosio .. I used inita .. it works like this:
bash$ cleos set contract inita contracts/hello -p inita@active
node$ eos.contract('inita').then(inita => { inita.hi('jim', {authorization: 'inita'}) })

yes ,i  deployed it to eosio ,this account can't deploy contract ??? but it can run well at cleos

My understanding is that the eosio.system contract gets deployed to eosio and the eosio.token gets deployed to the eosio.token account (or another account of your choosing).

@healthwallet how did you resolve this? Experiencing the same issue.


EmmentalModel has no attribute 'save_preds_to_numpy'

Dear Sarah,
Nice paper you worked on!
I had a question, I came across some previous issues, which i fixed by changing the setup.py file to the following, and made some changes in the code itself:
setup(
name="Medallion",
version="3.0.0",
description=(
"Training segmentation models with less labeled data."
),
install_requires=[
"emmental==0.1.1",
"torch==1.9.0",
"torchvision==0.10.0",
"matplotlib>=3.3.4",
"scikit-image>=0.17.2",
"seaborn>=0.11.1",
"urllib3==1.26.12",
"pyyaml==5.3.1",
"setuptools==59.5.0"
],
python_requires=">=3.8",
scripts=["bin/image_segmentation"],
packages=find_packages(),
)
Now i come accross the issue that save_preds_to_numpy is not present in the current emmentalmodel class. Is there an easy way to fix this issue.
Traceback (most recent call last):
File "\medallion\dauphin\image_segmentation\image_segmentation.py", line 124, in main
model.save_preds_to_numpy(dl,res_filename,KEY_DELIMITER)
AttributeError: 'EmmentalModel' object has no attribute 'save_preds_to_numpy'
By keeping the setup.py file as it was, it gave lots of issues with versioning, so that is the reason why I am trying to work around that.
Thank you in advance!

Hi, thanks for your comment. Emmental is maintained by a different author (Sen Wu), and all of this was written at least a few years ago, so I'm not surprised there are versioning issues---thanks for trying to work through it.
For the specific function you're asking about, I think it is due to the version of Emmental you are installing in your modified code. This Medallion codebase needs to run off a specific branch of Emmental called online_score, found here: https://github.com/senwu/emmental/tree/sen/online_score. I still see save_preds_to_numpy in the model class of the online_score branch (here: https://github.com/senwu/emmental/blob/sen/online_score/src/emmental/model.py#L565), so if you get the right version of Emmental installed, I think it should solve this issue.

I encountered some unsolvable issues with the 'online_score' branch due to versioning conflicts. However, I managed to find a workaround. Thank you for your quick response, though!


Manufacturers page fails to load with v2.x

Environment

Nautobot version (Docker tag too if applicable): 2.0.1
Python version: 3.9.2
Database platform, version: Postgres 13.11
Middleware(s): N/A / None

Steps to Reproduce

Login into nautobot, using standard UI, not new UI.
Go to Devices menu and select Manufacturers
Watch 500 error appear.

Expected Behavior
I expected the list of manufacturers to load.

Observed Behavior
 Server Error
A database programming error was detected while processing this request. Common causes include the following:

 Database migrations missing - When upgrading to a new Nautobot release, the upgrade script must be run to apply any new database migrations. You can run migrations manually by executing nautobot-server migrate from the command line.

 Unsupported PostgreSQL version - Ensure that PostgreSQL version 9.6 or higher is in use. You can check this by connecting to the database using Nautobot's credentials and issuing a query for SELECT VERSION().

The complete exception is provided below:

<class 'django.db.utils.ProgrammingError'>

more than one row returned by a subquery used as an expression

Python version: 3.9.2
Nautobot version: 2.0.1

The trigger appears to be the existence of a parent/child InventoryItem pair that both belong to the same Manufacturer; the error is occurring when trying to count_related(InventoryItem, "manufacturer") in ManufacturerListView. If the two InventoryItems belong to different Manufacturers, or if the child InventoryItem is deleted, no error is seen.

Actually it appears that two InventoryItems on the same Device for the same Manufacturer is sufficient - they don't have to be parent/child.


net/url: Why make struct Userinfo's username and password immutable?

https://github.com/golang/go/blob/b41eee4c8a2fe692c1d9fb46972b9047b5dc02b7/src/net/url/url.go#L374
I need to hide username and password of an url when log it.
So, I use u, err := url.Parse(rawurl), and want to change u.User.
But url.Userinfo username and password is not exported.

solution: https://github.com/golang/go/issues/24572


[release/v1.4] Add changelog for 1.4.12

What this PR does / why we need it:
Add changelog for 1.4.12.
What type of PR is this?
/kind documentation
Does this PR introduce a user-facing change? Then add your Release Note here:
NONE

Documentation:
NONE

/hold
Until the release date (Monday).

/hold cancel

/hold

/hold cancel

/lgtm
/approve


page-object-1.2.2 still has dependencies to watir-webdriver

hi, I've followed the instructions according to commits from Nov 20th 2016. (i.e removing all references to watir-webdriver)
However, there still looks like there is a reference to  watir-webdriver-0.9.3 somewhere in page-object gem that I can't source.
Steps to reproduce:
1.Force uninstall watir-webdriver and page-object
gem uninstall watir-webdriver
Continue with Uninstall? [yN]  y
gem uninstall page-object
Successfully uninstalled page-object-1.2.2

Install page-object

 gem install page-object

output:
Fetching: watir-webdriver-0.9.3.gem (100%)
Successfully installed watir-webdriver-0.9.3
Fetching: page-object-1.2.2.gem (100%)
Successfully installed page-object-1.2.2
Parsing documentation for watir-webdriver-0.9.3
Installing ri documentation for watir-webdriver-0.9.3
Parsing documentation for page-object-1.2.2
Installing ri documentation for page-object-1.2.2
Done installing documentation for watir-webdriver, page-object after 4 seconds
2 gems installed

Please help! Having watir and watir-webdriver in our eco-system is causing lots of runtime issues and preventing us from running our tests.
Thanks in advance.

Try to run your tests with bundle exec and make sure you dont have watir-webdriver in your gemfile. if youll search for watir-webdriver in source code - you'll not find anything.

Aha! Your edited suggestion did the trick!
Much appreciated.


Feature Request: Filtering for Small and Invisible Text

Currently, there is filtering for small, invisible, or irrelevant images. However, implementing similar filtering for small or invisible text is equally important, as such text can significantly impact content quality by introducing noise or misleading information.
I would like to know if there is any plan to implement this feature. If not, I’d be happy to contribute by working on a pull request. Could someone provide pointers to the relevant parts of the codebase that would need modification to add this functionality?

@nelzomal Thank you so much for the suggestion, and I do agree with that. Please go ahead and create the pull request and also share your email address with me. I will send you a Discord invitation. I would love to see if you can help us and also proceed with this suggestion. And the part of the code check content_scraping_strategy.py::WebScrapingStrategy.score_image_for_usefulness(). Also wait until I release the new version, then refer to that version from the main branch; as of now, this function is at line 244. Appreciate your collaboration.

@unclecode I have created a PR #332
As mentioned in the PR, I am open to discuss how to implement a better solution.

Currently, the layout-related logic is implemented within the async_crawler_strategy, as layout details are best retrieved during the crawling phase when the web driver renders the page. This allows for efficient detection since the page is already fully rendered.
However, I propose saving the layout information during the crawling phase. This approach would enable us to leverage this data to implement more advanced heuristics during the subsequent scrape phase, providing greater flexibility and scalability.
I’m open to discussing this approach further before proceeding with the extended implementation.

@nelzomal Amazing, I will check it soon, appreciate the help.

@unclecode hi, any update?

Hi @unclecode!
I hope the review is going well!
I’m really interested in contributing more to this repository, and I’d love the opportunity to join the Discord you mentioned earlier.

@nelzomal hi again, The past few years, I focused on updating website documents, which led to a new library feature: generating LLM.txt files. It’s much better than the standard I’ve seen and will be improved incrementally.
This goes beyond crawling, it creates LLM.txt content or markdown for websites, helping developers ask better response from LLMs chat by attaching these markdowns. I’ll work on this today and tomorrow.
Next week, I’ll address pull requests, including yours. Please share your email so I can send you an invite.
Thanks for your help! The library is growing, and we need all the collaboration we can get.

@unclecode my email is<EMAIL_ADDRESS>I feel LLM.txt feature is quite useful. Would like to contribute if possible.

@nelzomal  Sending the link, also this week will handle the PR.

@unclecode great news!
However, I haven't received any invitation link in my email<EMAIL_ADDRESS>

@nelzomal I sent again, please check.


Remove pip install six where it should not be necessary

Followup for https://github.com/grpc/grpc/pull/5167.

Distributions tests are still passing.
https://grpc-testing.appspot.com/view/Artifacts/job/gRPC_distribtest/65/architecture=x64,language=python,platform=linux/console
Fedora21 problem is unrelated.

Actually, no. It's breaking the distrib tests:
pkg_resources.VersionConflict: (six 1.9.0 (/usr/lib/python2.7/site-packages), Requirement.parse('six>=1.10'))
https://grpc-testing.appspot.com/job/gRPC_distribtest/66/architecture=x64,language=python,platform=linux/console

https://grpc-testing.appspot.com/job/gRPC_distribtest/66/architecture=x64,language=python,platform=linux/console

for some reason, if you don't manually do pip install --upgrade six before installing, the distribtests fail (despite six>=1.10 being mentioned in requirements.txt).

friendly ping, any opinions on this?

Maybe six is already installed and without the --upgrade flag the python distribution gets confused because it's owned by the system (although then that'd mean --ignore-installed would be required? except I'm not sure if that's required or not for certain versions of pip?)?
My basic diagnosis is that six is not owned by pip, so pip can't upgrade it. I just don't understand why it was then working with the --upgrade flag as opposed to the --ignore-installed flag.


Fix S3BucketName constant throughout project. Update JTS method name...

Three changes:

Fix s3bucket name constant throughout the project
Add auth role arn or else the project would fail to build (this also means I needed to make a default role on my cognito)
Needed to update from JTS method name ( pod install downloaded JTSImageViewController 1.4)

Thank you for the pull request.


Helm Chart distribution

I became interested in this tool but I'd have to setup lots of things in-house like CICD for building it, some container registry for storing it, and Kubernetes manifests (Helm Chart?) to manage the installation in my cluster.
I'd like to contribute on such features myself and I'd appreciate some guidance to do it.

I would love to see a pre-built image and helm chart for this.

Folks, we currently do not have a specific Helm chart for it, but Grafana Agent has one and you can instantiate this exporter using it.


Typo in Getting Started

val presenter = kodein.newInstance { Presenter(instance(), instance()) }
should be
val presenter by kodein.newInstance { Presenter(instance(), instance()) }

:+1:


Bot not responding to any input

Hey, we've been using your bot for a while. But today it isn't recognising anyone's scores or any commands.
I'm not actually sure how to give you any debug or logs around this. Maybe I need to host my own? I've been using the one linked in the readme https://discord.com/api/oauth2/authorize?client_id=929646986125250601&permissions=84032&scope=bot

Seems to have resolved itself already.


captor.capture() must not be null

I'm trying to use argumentCaptor for inline function. Every time I run the test I'm getting captor.capture() must not be null.  Any suggestion?
 val captor = argumentCaptor<(Boolean) -> Unit>()

   @Before
  fun setUp() {
    MockitoAnnotations.openMocks(this)
   ...
  }

@Test
  fun shouldTestSomething() {
    val captor = argumentCaptor<(Boolean) -> Unit>()
    viewModel.doSomething(stringParam, captor.capture())
  }

you need to use a matcher at your stringParam. But then you get the issue that the matcher returns null.

i am trying to use check {} instead because i could not make it happen


Implement Python xDS interop client.

I discovered a couple of existing shortcomings while implementing this
client that mean this is not yet ready for inclusion in CI. I
nonetheless want to get an early review and integrate this to the master
branch, in the interest of small easily reviewable code changes.
The first problem was that the bazel build has apparently never pulled
roots.pem in as a data dependency. This appears not to have been a
problem until XDS enters into the mix. This has been added into the
Bazel build with a small change to the pyx_library rule.
The larger problem is that there is currently no public Python API to
get a peer's identity from the client side. This is crucial to
determining the correctness of an interaction of a client-server pair
under XDS. I intend to add such an method to the RpcContext interface in
an upcoming PR and use it in the interop client. For the moment, I
simply fake the peer details.
Finally, I add a knob to run_xds_tests.py allowing multiple instances of
this test to exist at once. Multiple instances forwarding to the same
port cannot exist on GCE, so this enables multiple people to run tests
at the same time.

Failures:

https://github.com/grpc/grpc/issues/22409
https://github.com/grpc/grpc/issues/22341


Mutually exclusive vs. last one wins

Assume I have some mutually exclusive boolean options like
--device-time
--local-time
--utc
A customer had the following request:
he has a rather long list of commandline options for my program stored in a batch file. One of them might be --device-time. At times he would like to override it by appending another option like --local-time. That is, the options would not be mutually exclusive anymore but the last one wins.
Since the library of course doesn't know about this I would have to implement this myself. The question is how? I would need to know the order in which the options were specified. Is something like this possible?

I believe this might be default behavior.
Your Options class should probably detect this situation and Log a warning of which value is actually in effect.

It seems to me that all I can detect from the ParserResult is, that both flags are set. Without knowing the order of specification I can neither implement "last one wins" nor can I log a warning of which value is actually in effect. Or did I miss something?

I believe you're correct.  (Sorry I'm not 100% familiar with the internals without looking)
This certainly looks like a good scenario that needs to be addressed...
I'm seeing a few issues being registered here that can be solved with a similar solution of having the ParserResult include a list of the parsed options and values (and potentially how each individual item was handled... error, type conversion failure/success, or otherwise

Yes, that sounds good. I haven't looked at the code myself but I imagine something like a dictionary instead of a list, keyed by the option and giving the value an object with the details as you say, including the index. That way I could do something like:
if(whatever[--local-time].Index > whatever[--device-time].Index)
   //--local-time wins

The application could then or course decide whether the first or the last option wins, or reject it.
Just a sponanteous idea though.

Perhaps theres a more generic way, being able to specify that both options are mutually exclusive.  I believe theres a way in the Option attribute that will influence the parser

Yes, but let me rephrase my scenario: not the specification of the options is mutually exclusive but only the application. If multiple options of the same group are specified, this is resolved by last-one-wins or whatever custom logic. I think there is not even a need for an actual group. I just need to be able to inject my custom code somehow and be able to manipulate the parser result.
Actual Mutual Exclusion to me means that the parser itself generates an error when you specify two options of the same group and that is a good feature to have!

use three different setname as below:
class Options
{
	[Option("device-time",SetName="device",Required=true)]
	public DateTime DeviceTime {get;set;}
	[Option("local-time",SetName="local",Required=true)]
	public DateTime LocalTime {get;set;}
	[Option("utc",SetName="utc",Required=true)]
	public DateTime Utc {get;set;}
}

more examples

Hmm, Sets are definitely a great feature but I don't understand how that solves my problem??? As I emphasized my user wants to be able to overwrite an option occasionally. That rules out mutually exlusivity as provided by CommandLineParser. I have to write my own code that manipulates the parser result to make "last one wins" work but for that I need the order of the passed options.

The "last one wins" is  a new feature in the next v2.9. you can try it using the package in CI server, and set parser as:
var parser= new Parser(settings => settings.AllowMultiInstance = true);

Just, to coorect:

Actual Mutual Exclusion to me means that the parser itself generates an error when you specify two options of the same group

Actual Mutual Exclusive means that the parser itself generates an error when you specify options in two or more different SetName,  i.e only one set at a time is allowed, plus the common options that is not included in a Set.


Custom keyboard shortcut to move window between zones

Description of the new feature / enhancement
Users should be able to set their own keyboard shortcut to move windows between zones without overriding Windows snap.
This would allow users the option of using a keyboard shortcut for Windows snap and FancyZones rather than having to choose one over the other.
Scenario when this would be used?

When users wish to make use of Windows snap and FancyZones without using the mouse

Supporting information
No response

@oliverjane Isn't this an existing feature?

going to /dup #13972 as that has seraphima on it already


Error when running

Hello,
When I try to run app.py from Visual Studio I get the errors:
C:\Users\test.wunjo\deepfake\custom_diffusion.json already exists!
C:\Users\test.wunjo\user_trained_voice\INSTRUCTION.md already exists!
C:\Users\test.wunjo\user_trained_voice\custom_user.json already exists!
Press any key to continue . . .
The app never starts. Can I run this from Visual Studio?
Thanks!

Hello. You can run only using briefcase command, to launch outside the briefcase, all library imports would have to be rewritten.

Could you please specify where exactly I should initiate the startup process? Additionally, is there a specific command or method to use, such as the briefcase command mentioned in the comments?

When I use the command briefcase dev via SSH, it seems that no window is appearing. How can I resolve this issue?

When I use the command briefcase dev via SSH, it seems that no window is appearing. How can I resolve this issue?

Hello. Yes, you will not see any windows because inside using FlaskUI witch run random free port and browser. Firstly you need to in app.py set DEBUG True (47 line) to use as flask app by ip:port or remove lines from 1341 to 1349. Secondly in app.run you need to set localhost as <IP_ADDRESS>.
After you can setting your machine for your specific open port to access via internet, ip, using Nginx, Gunicorn, etc.

Thank you for your guidance! Issue resolved successfully.


Fall back to just audio or just video if simultaneous audio & video unavailable

I haven't tested that it's the case here, but in other libraries I've written, getting audio & video at the same time can result in people with just a mic on their device (or just a camera) being unable to participate.
I'll probably be playing around with media-devices a bit more here (nice lib!) but I just wanted to see if you'd considered this case already, or if you're looking for / would consider a PR.

Oh, that's a good point. The apps I've worked on in the past have had strict requirements on mics/cameras so I've never encountered that in practice, but you're right, that's definitely an edge case. I'd be open to extending the API with graceful fallbacks, or maybe we could always execute those requests in parallel? That would avoid the fallback scenario. It could always follow the same code path:
const stream = new MediaStream()

// query audio/video separately, join both responses into a single stream.
const gumRequests = Object.keys(mediaConstraints).map(async mediaKind => {
  const mediaResponse = await getUserMedia({ [mediaKind]: mediaConstraints[mediaKind] })
  mediaResponse.getTracks().forEach(track => stream.addTrack(track))
})

await Promise.allSettled(gumRequests)

What do you think?

I like the parallel method, however, it has an unfortunate side-effect of making the user click through two permission dialogs instead of one (maybe on just some browsers? I've tested Chrome & Firefox).
So the general flow that seems to work is:

Try requesting both (video & audio)
If (1) succeeds, great! We have two tracks.
If (1) fails, try requesting just (video) & just (audio) in parallel

For #3:

if both succeeds: this is a weird condition that shouldn't happen, but accept it(?) & join the responses into a single stream
if audio succeeds but video fails: we have just an audio track
if video succeeds but audio fails: we have just a video track
if both fail: throw an error

A simplifying assumption could be that the "weird condition that shouldn't happen", won't. If that's the case, this could be a reasonable method:
  async function ask({ audio = true, video = true }) {
    try {
      return await MediaDevices.getUserMedia({ audio, video });
    } catch (err) {
      if (audio && video) {
        return await ask({ audio: true, video: false });
      } else if (audio) {
        return await ask({ video: true, audio: false });
      } else {
        return null;
      }
    }
  }

it has an unfortunate side-effect of making the user click through two permission dialogs instead of one

Ah, you're right! In that case, I really like the fallback plan you outlined in step 3. The only hesitation would be loss of error information from step 3, bullets 2 & 3: there's no way to determine why a track is missing (e.g. no camera, facingMode not satisfiable, camera already in use) and hence no way to report it to the user. Maybe it could be implemented as a new method? Or perhaps the method with fallbacks is the default, and the stricter implementation has a different name? (just thinking aloud)
await MediaDevices.withLibraryFallbacks({ audio: true, video: true }) // MediaStream [Audio]
await MediaDevices.withBrowserBehavior({ audio: true, video: true }) // NotFoundError!
//                 ^^^^^^^^^^^^^^^^^^^  terrible placeholder names

Eh, I don't know. If ask(...) throws the error given only audio OR video, then the information is still available to the developer, it just requires you query them separately. I could go either way 🤷
Would you be down to create a PR?

I ended up using that ask function I outlined, and it seemed like a reasonable thing for the user of media-devices to have to do, so now I'm a bit split on whether a PR would be needed. It might be a nice "best practice" to embed in the library. OTOH, it isn't strictly necessary (since it can be achieved as outlined, separate from the library).

it seemed like a reasonable thing for the user of media-devices to have to do

Yeah, I'm leaning that way myself.

I'm a bit split on whether a PR would be needed

Let's leave it for now. I'm realizing that a fallback path could create a triple GUM prompt, which would be pretty surprising unless you knew the context. For a feature that's relatively small, I think it makes sense to leave it to the developer.
I'm gonna close this. Thanks for posing the question though, it was interesting to think about.


Update release tags for AO8/J9 and AO9/J9

Fixes https://github.com/AdoptOpenJDK/openjdk-build/issues/351

@pshipton As per the comment I added to 351 I've made a change in the jenkins job to cover 10 which is currently done differently.

I'm still not happy with the way that we are hard coding tags but this will have to do for now


ApiController: Problems with Parameter Validation

The new [ApiController] attribute is supposed to enable automatic modelstate validation, but it does not work as I would expect for the following controller.
[ApiController]
[Route("api/test")]
public class RequiredController : Controller
{
    [HttpGet]
    [Route("NotRequired/{value:guid}")]
    public IActionResult NotRequired(Guid value)
    {
        return Ok($"Hello World from {value}");
    }

    [HttpGet]
    [Route("Required/{value:guid}")]
    public IActionResult Required([Required] Guid value)
    {
        return Ok($"Hello World from {value}");
    }

    [HttpGet]
    [Route("BindRequired/{value:guid}")]
    public IActionResult BindRequired([BindRequired] Guid value)
    {
        return Ok($"Hello World from {value}");
    }

    [HttpGet]
    [Route("StringLength/{value}")]
    public IActionResult StringLength([Required, StringLength(2)] string value)
    {
        return Ok($"Hello World from {value}");
    }
}

Examples:

Invoke: https://localhost:44370/api/test/BindRequired/00000000-0000-0000-0000-000000000000 - StatusCode: Ok - Output is Hello World from 00000000-0000-0000-0000-000000000000
Invoke: https://localhost:44370/api/test/StringLength/Tornhoof - StatusCode: Ok - Output is Hello World from Tornhoof

I would have expected a validation error from both of the above calls.
Repro:
RequiredAttributeRepro.zip

Unpack
Build & Run
Invoke the methods above.

I think you need to make value type parameters nullable in order for the Required/BindRequired attributes to kick in.

Yes for the value types you might be right. My assumption that [BindRequired] rejects default too was mainly based on @filipw post https://www.strathweb.com/2017/12/required-and-bindrequired-in-asp-net-core-mvc.
But since I can't even get StringLength to work or any custom validationAttribute (like a custom NotDefaultAttribute to make certain my GUIDs are not default), I think the ParameterValidation is currently broken with ApiController.

Tagging @mkArtakMSFT as this is probably again a binding issue.

@khellang Isn't the absence of the field in the request enough to trigger an error? Making it nullable and checking for null is trivial to do even without having an attribute for it.

No, because validation and deserialization are two distinct things. The former runs after the latter, with no information about "missing fields". It just gets an object with some properties with attributes on them.
If you have an int property that's missing from the payload, it'll be initialized to its default value 0. How would validation know if that represents a missing value or actual user input? It can't.

Making it nullable and checking for null is trivial to do even without having an attribute for it.

Sure, most validation is trivial to do. It's just much nicer to have a declarative way of expressing it, with consistent validation messages and composabilit 😊

Oh, I guess you might be referring to the BindRequired case? That's probably true.

Yeah I'm referring to the BindRequired case. There are situations where it would be useful to enforce that a client has explicitly set a parameter.

I think this is another instance of the same issue (please point out if it isn't). I have this code:
[Route("{id}/online")]
[Consumes("application/json")]
[Produces("application/json")]
public async Task<IActionResult> SetOnline(uint id, [FromBody] SetOnlineData data)
{
    return Json(new { test = "ok " + id + " " + data.Online, ModelState.IsValid });
}

public class SetOnlineData
{
    [Required]
    [BindRequired]
    [JsonProperty("online")]
    public bool Online { get; private set; }
}

I would expect that ModelState.IsValid is false when an empty JSON object ({})is passed as a body, but it is still true. The output is:
{
	"test": "ok 3 False",
	"isValid": true
}

@dougbu, can you please look into this one?
Specifically, the case with StringLength restriction in place is what seems to be a bug.

@Tornhoof what version of MVC are you testing? Validation of "top-level" nodes such as action parameters is a new feature in 2.1 Preview 1.
Separately,

I would expect that ModelState.IsValid is false when an empty JSON object ({})is passed as a body,

MVC's model binding system supports [BindRequired]. But, Json.NET's deserializers take over when the model binding system encounters [FromBody]. MVC no longer has information about whether Online was in the request.

@dougbu Imo this is still a design flaw. It's a technical detail reducing usability of the platform. Could MVC use a custom deserializer to fix this?

Could MVC use a custom deserializer to fix this?

Recreating a system as complex as Json.NET is not in our plans. You could file a bug in https://github.com/JamesNK/Newtonsoft.Json/issues about supporting [BindRequired].
However I suggest testing [JsonRequired] to confirm it affects deserialization as well. If it does, apply both [BindRequired] and [JsonRequired] to properties that are both model bound and input formatted.

@dougbu [JsonRequired] seems to work.

Recreating a system as complex as Json.NET is not in our plans.

I think you misunderstood me. I was asking if Json.NET supported some interface we could implement (like IContractResolver, but I'm not too familiar with all of Json.NET's features) which would check [BindRequired] attributes for us.

@Tornhoof your original RequiredAttributeRepro application is simply not configured to support anything from System.ComponentModel.DataAnnotations. AddMvcCore() only turns on the bare minimum. Change your Startup to use
services
    .AddMvcCore()
    .AddDataAnnotations()
    .AddJsonFormatters();

and you'll see the expected validation error. (Probably best to use AddMvc() since your controller is a Controller subclass, not a ControllerBase subclass.)

Separately, the other actions in RequiredController do not test [BindRequired] or [Required]. The route template ({value:guid}) requires value and ensures its format matches a Guid. Change the template to {value:guid?} and value will be optional. At that point, [Required] will do nothing because Guid is a simple type. But, MVC will enforce [BindRequired].

Thanks for the clarification. Closing this.


Firebase Auth - Google Sign In - Oauth consent screen not appearing

I am trying to get Google Sign in Working. Has any developer tried to follow the steps here? It is probably time to do so...
There are issues with 22k views on stackoverflow https://stackoverflow.com/questions/54557479/flutter-and-google-sign-in-plugin-platformexceptionsign-in-failed-com-google
I accidentally uploaded a logo here for the Oauth consent screen, and now I must get verification which takes weeks? WTF
https://pub.dev/packages/flutter_facebook_login#-readme-tab-
"If you're using Google Sign-in with Firebase auth, be sure to include all required fields in the OAuth consent screen. If you don't, you may encounter an ApiException."
To Reproduce
Steps to reproduce the behavior:

Go to '...'
'...'
See error or incorrect behavior

Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.

PS it turned out to be an issue with my SHA1 key. I added the wrong varian . Here is the way to do it properly... https://stackoverflow.com/questions/51845559/generate-sha-1-for-flutter-app
You need to use this one
Variant: debugAndroidTest
Config: debug
Store: C:\Users\.....\.android\debug.keystore
Alias: AndroidDebugKey


Add support for maven install

Simply allows to install artifatcts to a local repo.

LGTM. Thanks!

Seems the build is failing on both Java 7 and 8. Have you tested building this locally?


Fix link to customizing-gitea

The link to customizing-gitea in the label documentation is broken. This PR should adjust the relative path to fix the link

@kodermho can you also fix the same link in docs/content/doc/usage/labels.zh-cn.md?

Actually I think this may need this format:
{{< relref "doc/administration/customizing-gitea.en-us.md" >}}

At least I see that format used in various docs files, but not consistently.

The problem is the explicit section label.
That's probably why it isn't a relref yet.
I initially wanted to note that as well, then I noticed.

I wonder what's the point of these relref. Is this some custom processing that we do?

AFAIK, it's a function we've

Ah, this is https://gohugo.io/functions/relref/, but we are not actually using it in the recommended way.

For normal links, we can never be sure as they might point at an external URL outside our control.

Anything that starts with ./ can be statically analyzed and I think writing a linter for this "standard" format would be quite trivial actually.


provider.sh: Call prepare_config in the build funtion.

Set up the configuration before starting the
code and manifest build.
Signed-off-by: Nitesh Konkar<EMAIL_ADDRESS>
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Release note:

Hello contributor, thanks for submitting a PR for this project!
I am the bot who triggers "standard-CI" builds for this project.
As a security measure, I will not run automated tests on PRs that are not from white-listed contributors.
In order to allow automated tests to run, please ask one of the project maintainers to review the code and then do one of the following:

Type ci test please on this PR to trigger automated tests for it.
Type ci add to whitelist on this PR to trigger automated tests for it and also add you to the contributor white-list so that your future PRs will be tested automatically. ( keep in mind this list might be overwritten if the job XML is refreshed, for permanent whitelisting, please follow #3 option )
If you are planning to contribute to more than one project, maybe it's better to ask them to add you to the project organization, so you'll be able to run tests for all the organization's projects.

@nitkon thanks!
/release-note-none
/cc @j-griffith can you have a look please, afaik you are using the external provider? This fixes a small problem when you run make cluster-build without make cluster-up before.

ci test please


Update 4239

On the 2018 page, there should be no name displayed (currently displays 2017 name of Aluminum Grasshopper)
On the 2012 page, the robot pictures do not appear at the top of the page, could you put them up there.
Could you add the following to our 2016 robot?
Robot name is Steel Cricket
Could you add the following to our 2017 robot?
Robot name is Aluminum Grasshopper

Done.
There is technically no way to remove a robot name, so I set the 2018 robot name to " " a space character.


Broken source distribution

$ pip install flash-attn
Collecting flash-attn
  Using cached flash_attn-2.5.5.tar.gz (2.5 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [16 lines of output]
      /usr/local/lib/python3.11/dist-packages/torch/cuda/__init__.py:141: UserWarning: CUDA initialization: Unexpected error from cudaGetDeviceCount(). Did you run some cuda functions before calling NumCudaDevices() that might have already set an error? Error 803: system has unsupported display driver / cuda driver combination (Triggered internally at ../c10/cuda/CUDAFunctions.cpp:108.)
        return torch._C._cuda_getDeviceCount() > 0
      No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-_r7mirpt/flash-attn_3f111d47f5e3417ebc70520d09308640/setup.py", line 94, in <module>
          subprocess.run(["git", "submodule", "update", "--init", "csrc/cutlass"])
        File "/usr/lib/python3.11/subprocess.py", line 548, in run
          with Popen(*popenargs, **kwargs) as process:
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
          self._execute_child(args, executable, preexec_fn, close_fds,
        File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
          raise child_exception_type(errno_num, err_msg, err_filename)
      FileNotFoundError: [Errno 2] No such file or directory: 'git'
      [end of output]

me either


Copy up release channel and CRDs

This artifacts need to be pushed for 1-19

/dog

/woof

/meow

/bark


add Transitland API

this PR fixes #69

This looks like a global API rather than just bay area?

Thanks for noticing, @toddmotto. Transitland has been expanding to cover other parts of the world, listed at https://transit.land/feed-registry/

Done!

👍 thanks, @jbrooksuk!


Add the Security portal URL to the article

[Enter feedback here]
In "Required permissions to access items in content explore" section [https://docs.microsoft.com/en-us/microsoft-365/compliance/data-classification-content-explorer?view=o365-worldwide#required-permissions-to-access-items-in-content-explorer]
Please add the Security Portal URL: https://protection.office.com/permissions
In order to grant Content Explorer List viewer or Content Explorer Content viewer permissions.
Customers that are using Azure PIM are not aware to the Security portal URL.

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

ID: 334e743d-c929-c74a-c996-2b8e0b68a46b
Version Independent ID: 91c4563c-72c1-4655-72f7-d467b6098540
Content: Get started with content explorer - Microsoft 365 Compliance
Content Source: microsoft-365/compliance/data-classification-content-explorer.md
Service: o365-seccomp
GitHub Login: @chrfox
Microsoft Alias: chrfox

@Inbalsas Thank you for you feedback. We have made changes to the document via PR#https://github.com/MicrosoftDocs/microsoft-365-docs/pull/3863
Thanks
Sri

@Inbalsas Thank you for you feedback. We have made changes to the document via PR#https://github.com/MicrosoftDocs/microsoft-365-docs/pull/3863
Thanks
Sri


Fingerprint

How does this library implement fingerprint scanning? Is the API implemented?

Hello @creativetrendsapps
Yeah we implemented the google fingerprint api.
You need a phone with a fingerprint scanner compatible of course.
Cheers

Yes, I looked at the lib and realized it. Thanks!


sed: * No space left on device (apply.sh)

sed: couldn't write 80 items to /mnt/system/system/sedv8dMt1: No space left on device
sed: couldn't write 80 items to /mnt/system/system/sed9uR3ya: No space left on device
sed: couldn't write 80 items to /mnt/system/system/sedP0Qa7k: No space left on device
sed: couldn't write 80 items to /mnt/system/system/sed3qWBiv: No space left on device
sed: couldn't write 80 items to /mnt/system/system/sed6SyMKE: No space left on device
sed: couldn't write 80 items to /mnt/system/system/sedqX1x0L: No space left on device
sed: couldn't write 80 items to /mnt/system/system/sedzb7zYx: No space left on device
sed: couldn't write 101 items to /mnt/system/system/seddGQgQG: No space left on device
sed: couldn't write 80 items to /mnt/system/system/sedZ1IsPO: No space left on device
...
sed: couldn't flush /mnt/vendor/sedbsFly0: No space left on device
sed: couldn't flush /mnt/vendor/sedn5Hyt8: No space left on device
sed: couldn't flush /mnt/vendor/sed5q3Omi: No space left on device
sed: couldn't flush /mnt/vendor/sedh0w8Yp: No space left on device
sed: couldn't flush /mnt/vendor/sedDU6KEz: No space left on device
sed: couldn't flush /mnt/vendor/sedePI5Jy: No space left on device

after editing the resized size in ./extend_and_mount_images.sh, the error disappear

and after running all the step listed, when I open play store and try to log in, it still says "The device isn't Play Protect certified"

Same errors here.  Got the Google Play apps on here after seeing the 'No space left on device' errors, but when signing into any of them it always says, 'This device isn't Play Protect certified'.

This is caused by the file size set by extend_and_mount_images.sh, which is smaller than the original size of the two files, leaving no space left for editing operations after mounting.
Just edit extend_and_mount_images.sh and set the file size properly.

For the benefit of everyone experiencing this issue, what size did you set?

I set the values to 140M for the system_ext.img and 400M for the vendor.img. I checked the file sizes in windows before and left a little buffer.

I set the values to 140M for the system_ext.img and 400M for the vendor.img. I checked the file sizes in windows before and left a little buffer. I didn´t get the error after the adjustment

thanks, fixed the problem for me too


winpanda setup state files

High-level description
Add atomic writes of files in Windows to bootstrap.py and winpanda. We use different methods for each. In bootstrap.py we use our hand-rolled version that does not fsync. In winpanda, we use a third-party library that always fsyncs.
Use this to provide winpanda with a safe implementation of files to save in-progress state. This is basically a one-word database on the filesystem, hence the need for fsync.
Make winpanda setup store and detect state file, and fail if a state file exists. This means that winpanda setup only works when the installation was not in an intermediate state previously.
Later, we plan to recover from intermediate states,  to allow installation to proceed safely.
Corresponding DC/OS tickets (required)

D2IQ-65526 Create winpanda state file code

Related tickets (optional)

https://jira.d2iq.com/browse/D2IQ-65527 Handle winpanda setup from INSTALLING state

Checklist for component/package updates:
If you are changing components or packages in DC/OS (e.g. you are bumping the sha or ref of anything underneath packages), then in addition to the above please also include:

[ ] Change log from the last version integrated (this should be a link to commits for easy verification and review): example
[ ] Included a test which will fail if code is reverted but test is not. If there is no test please explain.
[ ] Test Results: [link to CI job test results for component]
[ ] Code Coverage (if available): [link to code coverage report]

@mesosphere-mergebot changelog-not-required change to unreleased code

@mesosphere-mergebot label Ready For Review

@mesosphere-mergebot request-review @DominikDary


feat(ci): automate docker hub container description

Docker hub container description is not being updated on docker pulls. This PR uses dockerhub-description GHA to keep the docker hub container description in sync with this repo's README.md.

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


Document that ConfigFiles can use any file extension

The file extension given to a ConfigFile has no impact on its formatting or behavior.
See https://github.com/godotengine/godot/pull/39212 for background. I'd still lean towards recommending .ini, but I kept .cfg here to make the change less intrusive.

Cherry-picked for 3.4.

Cherry-picked for 3.3.4.


added ipad support

As #12 is not being updated I've created a new PR with the addition of setting the X and Y position of the required popover on iPads.

Awesome, if we get somebody to test it i'll merge asap

Who are you thinking of for testing? I've already used my branch in our app and it's working on the simulator.
Happy to ask around if anyone else is willing to test.


should we use rust-tls instead of open-ssl

I was thinking of adding windows compilation to cdrs 'appvoyer' but since we need open ssl we have to do customizations on top of base windows image. If instead of using open ssl crate; if we were to use rust tls which is wrapper for OpenSSL on Linux machines and wrapper for native tls implementations in windows and OS X environment it would be natively supported on all platforms. What do you think ?

And adding on we might need to add examples on how use private key to do the authentication with the server. The example currently is only using cafile alone; which means we are speaking tls but not doing client authentication using certificates

@harrydevnull Sounds reasonable. It would be great to have Rust native support of SSL as well.

There is a feature that allows using rust-tls. #321
So, closing this issue


Name confusion with react-sortable npm package

Since there's another project in npm called react-sortable, and this project's name in npm is react-sortablejs, I think it would make sense to rename this GitHub repo and all documentation to always refer to this project as react-sortablejs.

This has been solved with commit https://github.com/SortableJS/react-sortablejs/commit/191f263e690107084b7caf6a435955af0edf4798


lib: Pretty-print PanicInfo

instead of relying solely on the Debug trait for printing. Also add
some more space to the output, so the Panic is easily recognized between
application text and the backtrace.
Currently, accessing the panic message is an unstable feature in core, see this tracking issue: https://github.com/rust-lang/rust/issues/66745
So unless this lands, the current debug print actually contains more useful information than this PR...

@bjoernQ I learned another trick yesterday, apparently "{:#?}" pretty-prints sturcts in rust, so the output of this PR now looks like this:
======================================
Self-built SX128x example code, no-std
Features:
  - UART

!! A panic occured in 'src/main.rs', at line 77, column 5

PanicInfo {
    payload: Any { .. },
    message: Some(
        Hallo,
    ),
    location: Location {
        file: "src/main.rs",
        line: 77,
        col: 5,
    },
    can_unwind: true,
}

Backtrace:

0x400d495e [sx128x_demo::__xtensa_lx_rt_main:/var/home/ahartmann/repos/mt/playground/sx128x-demo/src/main.rs:77]
0x400d752c [Reset:/usr/local/share/cargo/registry/src/github.com-1ecc6299db9ec823/xtensa-lx-rt-0.13.0/src/lib.rs:77]
0x400d5a41 [ESP32Reset:/usr/local/share/cargo/git/checkouts/esp-hal-33cf057932915da5/d1a2b98/esp32-hal/src/lib.rs:77]

What do you think about it?

@bjoernQ I learned another trick yesterday, apparently "{:#?}" pretty-prints sturcts in rust, so the output of this PR now looks like this:
======================================
Self-built SX128x example code, no-std
Features:
  - UART

!! A panic occured in 'src/main.rs', at line 77, column 5

PanicInfo {
    payload: Any { .. },
    message: Some(
        Hallo,
    ),
    location: Location {
        file: "src/main.rs",
        line: 77,
        col: 5,
    },
    can_unwind: true,
}

Backtrace:

0x400d495e [sx128x_demo::__xtensa_lx_rt_main:/var/home/ahartmann/repos/mt/playground/sx128x-demo/src/main.rs:77]
0x400d752c [Reset:/usr/local/share/cargo/registry/src/github.com-1ecc6299db9ec823/xtensa-lx-rt-0.13.0/src/lib.rs:77]
0x400d5a41 [ESP32Reset:/usr/local/share/cargo/git/checkouts/esp-hal-33cf057932915da5/d1a2b98/esp32-hal/src/lib.rs:77]

What do you think about it?

Good idea!

@jessebraham what do you think?


[Support Job Resource] Add related helm chart

What this PR does / why we need it:
For supporting Job Resource in kube-batch.
NOTE: Those files are just been added into this project, neither the build, test or release flow has changed. In order to make the whole Job feature to work, additional patches are required.

/lgtm
/approve


Feature: Refactoring Sealos to Support k3s, k0s Runtime

Problem Description
Sealos currently does not support the k3s runtime and requires the redesign of the runtime interface to avoid excessive coupling with the Processor and to add verification.
Here is a record of testing various k3s installation methods. If you're curious about k3s, be sure to read this note, as well as k3s • official and documentation, and its GitHub • open source address.

Solution
Design a new runtime interface
Redesign the runtime interface to avoid excessive coupling with the Processor and add verification.
Design ideas for the k3s runtime module
To support the k3s runtime, we need to add a new runtime module. This module needs to support the following functions:

Execute k3s installation commands
Execute k3s upgrade commands
Execute k3s uninstall commands

Design the k3s directory and filesystem distribution using Sealos' image distribution logic
To support the k3s runtime, we need to use Sealos' image distribution logic to design the k3s directory and filesystem distribution of the k3s image.
Optimize the packaging of kubeadm and k3s binaries
To support the k3s runtime, we need to optimize the packaging of kubeadm and k3s binaries.
Provide unit test and CI flow to ensure code quality
To ensure code quality, we need to provide unit testing and CI flow.

Tasks

Type
Improvements
Issue
PR
Status

🚀 Feature
Design a new runtime interface to avoid excessive coupling with the Processor and add verification
#1943, #2037

✅

🔨 Enhancement
Implement the k3s runtime module to support k3s installation, upgrade, and uninstall commands

❌

🔧 Maintenance
Design the k3s directory and filesystem distribution using Sealos' image distribution logic

❌

👌 Refactoring
Optimize the packaging of kubeadm and k3s binaries

❌

🧪 Testing
Provide unit testing and CI flow to ensure code quality

❌

📈 Metrics
Compare k3s and k0s, as well as Kubernetes for various changes in sealos, for users to choose according to their scenarios

❌

🎯 Fix
The current logic of sealos run will parse the environment variable $, which inevitably needs to be fixed.
#2861
#2862
✅

repen

type serviceType int

const (
	openRC serviceType = iota
	systemd
)

const systemdTpl = `
[Unit]
Description=Lightweight Kubernetes
Documentation=https://k3s.io
Wants=network-online.target
After=network-online.target

[Install]
WantedBy=multi-user.target

[Service]
Type=notify
EnvironmentFile=-/etc/default/%N
EnvironmentFile=-/etc/sysconfig/%N
EnvironmentFile=-{{ .envFile }}
KillMode=process
Delegate=yes
# Having non-zero Limit*s causes performance problems due to accounting overhead
# in the kernel. We recommend using cgroups to do container-local accounting.
LimitNOFILE=1048576
LimitNPROC=infinity
LimitCORE=infinity
TasksMax=infinity
TimeoutStartSec=0
Restart=always
RestartSec=5s
ExecStartPre=/bin/sh -xc '! /usr/bin/systemctl is-enabled --quiet nm-cloud-setup.service'
ExecStartPre=-/sbin/modprobe br_netfilter
ExecStartPre=-/sbin/modprobe overlay
ExecStart={{ .binDir }}/k3s {{ .exec }}
`

const openRCTpl = `
#!/sbin/openrc-run

LOG_FILE=/var/log/k3s.log

depend() {
    after network-online
    want cgroups
}

start_pre() {
    rm -f /tmp/k3s.*
}

supervisor=supervise-daemon
name=k3s
command="{{ .binDir }}/k3s"
command_args={{ .exec }}

output_log=${LOG_FILE}
error_log=${LOG_FILE}

pidfile="/var/run/k3s.pid"
respawn_delay=5
respawn_max=0

set -o allexport
if [ -f /etc/environment ]; then . /etc/environment; fi
if [ -f {{ .envFile }} ]; then . {{ .envFile }}; fi
set +o allexport
`

using sealos v4.4.0+


EMA keeps changing

Dear Developer,
Let me first express my gratitude for your project. I believe this is one of the best technical indicator library for python.
However, over the past couple of weeks, I have been having trouble with regression test. At first, the library had "ema_fast" and "ema_slow" functions, which were then replaced by a single "ema." This ema function had the default period of 14. However, the default value was removed as of version 2.
This results in code breaking down everytime the library is upgraded. This would make it difficult to use this library for a production code. I would like to suggest that you should not change the function signature outright, but rather show "deprecation warning" for a few versions first. So, people can migrate their codes.
Thank you very much.

Hi @palmbook , thank you for your advice!
However, for the version 2 had changed the implementation of ema exclusively. So, you can use the "ema_fast" and "ema_slow" functions because the wrapper (API for users -> https://github.com/bukosabino/ta/blob/master/ta/wrapper.py) is not changed.
After, we use this to implement ema:
series.ewm(n).mean()

Now, we use a new ema function:
def ema(series, periods):
    sma = series.rolling(window=periods, min_periods=periods).mean()[:periods]
    rest = series[periods:]
    return pd.concat([sma, rest]).ewm(span=periods, adjust=False).mean()

This change should be "transparent" for the library users.
Regards.


Issue with leading 0's

I have small question. Because the return type is int, the leading 0's are being dropped. This is being an issue for in the long run as the otp that is being shown is only 5 digits.
Now, can the return type be an String so that the user does not worry about the leading 0's. Personally, we had to waste a lot of time only to come to this conculsion.

java-otp deliberately avoids making any decisions about the presentation of one-time passwords. This is, in large part, to allow callers to support locales that don't use Arabic numerals (0-9). One consequence is that callers will need to format numbers to account for leading zeroes.
We can consider expanding documentation, FAQs, and examples, but I don't think returning one-time passwords as Strings is the right way to go.

Hi there,
I completely understand your point on returning an integer. It makes sense.
But why don't adding just an helper function generateOneTimePasswordString which would be embedded in the class and do the conversion, for the ones that want to use it?
Thanks,


leo-editor: drop ramkromberg from maintainer

per https://github.com/NixOS/nixpkgs/pull/103444#issuecomment-727590668

Motivation for this change
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

:+1:
thanks :)