HWP-373: API Request Logger

Description
This PR includes the following proposed change(s):

Logs api requests to console.
logger.js in /app/server/functions handles the logging functions.
logger.README.md in app/server/functions explains how to use the logger.
initLogger.js middleware in /app/server/middleware initializes the logger for each request.

Example logs:
Successful Login
Successful Get Communities
ResponseError Create Community
Error Create Community
Adds package: ansi-colors
Requires
Add 'Requires Attention' label if appropriate.

[x] Requires an update to the .env file
[ ] Requires adding a file listed in the .gitignore
[ ] Requires an opinion or answer to a question, see comments.
[ ] Requires other attention, see below.

If there are any requirements for the developer to make after this PR is merged please list them here.
Add ENABLE_API_REQUEST_LOGS=true under the "Backend uses" comment header of .env.
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Refactoring / Documentation
[ ] Version change

if your change is a breaking change, please add breaking change label to this PR
How Has This Been Tested?
Tested multiple endpoints in swagger.
For pull requests that are not just a simple fix, please check that the branch works on your local machine.

[ ] Tested by Zach.
[ ] Tested by Brandon.
[x] Tested by Brady.

Does the change impact or break the Docker build?

[x] Yes
[ ] No

If Yes: Has Docker been updated accordingly?

[x] Yes
[ ] No

Enabled coloured console text for API.
Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have made corresponding changes to the documentation
[ ] New and existing unit tests pass locally with my changes
[x] If attention is required by the developer such as updating the .env file, these requirements have been listed.

@akroon3r Added Jira ticket HWP-393 in Sprint 10 to add new env variable.


DevTools CPU profiler doesn't sample the thread use by compute

Steps to reproduce
in my app, I have this code:
        _reallyExpensiveValue = compute(reallyExpensiveFunction, argument);

but when using DevTools CPU profiler, I see no sign of reallyExpensiveFunction
DevTools CPU profiler doesn't sample the thread use by compute
I'm on MacOS using VScode
Expected results
I should see reallyExpensiveFunction in my report
Actual results
I don't see it
Code sample
Code sample
 _reallyExpensiveValue = compute(reallyExpensiveFunction, argument);

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.3, on macOS 14.6.1 23G93 darwin-x64, locale en-GB)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/to/macos-android-setup for more details.
[!] Xcode - develop for iOS and macOS (Xcode 16.0)
    ✗ Unable to get list of installed Simulator runtimes.
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.93.1)
[✓] Connected device (2 available)
[✓] Network resources

! Doctor found issues in 2 categories.

It will be in another isolate at the bottom of the screen. the profiler just does one isolate at a time, by default the main isolate. however the isolate is only alive for the duration of the compute(), it will be hard to switch to it and start profiling.

The isolate run for something like 10 seconds on large images, how to select another isolate than the main one? I don't see any option on the screen to select witch isolate to sample

the profiler takes a long time to detect the isolate so I can select it, worst, when the isolate stops the recording stops without showing any data... and if I close the recording before the end of the isolate I can see the data briefly before the isolate stop, then the data disappear again... what a terrible experience... you can't profile temporary isolate with this tool...

sure. we can keep this issue open to improve it.

@moffatman I would love to see this improve. thank you for your guidance!

@darshankawar can you link "the similar issue is open in devtools repo"?

follow the link .... https://github.com/flutter/devtools/issues/3363

Closing as duplicate.


Error when generate quote for an sgx based application.

I am trying to run my own sgx-based application in pod, it fails since it cannot get quote.
I have pccs service running on my host and I found "Error: No cache data for this platform." in pccs.service log.
But my application works well on the host, the pccs.service didn't show any error.
Is it related to sgx plugin? could you please kindly help?
device plugin version: v0.26.0

I am trying to run my own sgx-based application in pod, it fails since it cannot get quote.

in-proc or out-of-proc quotes. Are you sure your pod ends up using the same PCCS as the app on the host

I am trying to run my own sgx-based application in pod, it fails since it cannot get quote.

in-proc or out-of-proc quotes? Are you sure your pod ends up using the same PCCS as the app on the host?

in proc, i have a config map as the following:
apiVersion: v1
data:
  sgx_default_qcnl.conf: "{\n  // *** ATTENTION : This file is in JSON format so the
    keys are case sensitive. Don't change them.\n\n  // This sample is a typical config
    file for a development environment which has a local PCCS setup\n  // QPL will
    get PCK certificates as well as quote verification collateral from the local PCCS
    service\n  // The PCCS service uses self-signed certificates\n  // You should
    choose the correct PCCS API version. \"3.1\" will return CRL in raw DER format
    \n  // It is recommended to use \"3.1\" for DCAP 1.12 release and later\n\n  //PCCS
    server address\n  \"pccs_url\": \"https://myip:8081/sgx/certification/v4/\",\n\n
    \ // To accept insecure HTTPS certificate, set this option to false\n  \"use_secure_cert\":
    false,\n\n  \"pccs_api_version\": \"3.1\"\n}\n"
kind: ConfigMap
metadata:
  annotations:
    sgx.intel.com/quote-provider: httpa-pod
  name: inproc-sgx-attestation-conf

in proc, i have a config map as the following:

and the host has the exact same /etc/sgx_default_qcnl.conf?

in proc, i have a config map as the following:

and the host has the exact same /etc/sgx_default_qcnl.conf?

Not exactly the same, but it has same service address.  I have remove all the commented line in my host's configuration.
{
  "pccs_url": "https://<IP_ADDRESS>:8081/sgx/certification/v4/",
  "use_secure_cert": false,
  "pccs_api_version": "3.1",
  "retry_times": 6,
  "retry_delay": 10,
  "pck_cache_expire_hours": 168
}


Support for modular mod structure

Project Zomboid supports modular mod structures for Steam workshop mods.
Each mod uploaded to the workshop can contain other mods that can then be toggled on and off in the game mod menu.
Currently zmod does not support this modular structure and some features will not work.

To reiterate mod structure: OS > Users > Workshop > Main-Mod-Folder > Contents > mods > Modular-Mod-Folder
workshop.txt and a preview.png (has to be named preview, 216x216, and in png format) are in Main-Mod-Folder alongside Contents. Note: workshop.txt is sometimes modified by the uploading process.

We should start off with implementing support for simple features.
@ChuckTheSheep Do you know how is the mod.info handled? Does each modular mod directory contain it's own mod.info or is there a single master info file in the main mod directory. Currently the writeModInfo task updates the mod.info file in the project root directory and would need to be configured if there are mod info files.

Each modular mod directory has it's own poster.png, mod.info, and of course media folder.

For reference, here is the modular mod structure example you provided on Discord:

Do you by any chance know exactly what files from Workshop/<mod> does Steam uploads to workshop? Is it just Contents, preview.png and workshop.txt or does it upload anything it finds in root directory?
We would want to avoid deploying project build files to workshop.

This is the error I get when I try to upload my current directory. (There are similar errors if any of the files have an issue.)

This is the error I get when I try to upload my current directory. (There are similar errors if any of the files have an issue.)

I don't follow, what are you trying to upload and where?

@ChuckTheSheep Are we still going to work on this now that we agreed we are moving away from Steam?

Modular mod structure is still needed for mods which have optional features. I assume the modloader will make this less of a headache to implement?

Modular mod structure is still needed for mods which have optional features

Isn't this strictly a feature offered by Steam workshop, or the PZ integration with workshop?

I assume the modloader will make this less of a headache to implement?

We would need to think about the details of how we want to implement that feature with modloader.

I would have to double check how the local directory functions, but I believe there is still a <mod>/mods/<option1> structure even locally. I know steam downloads simply replaces the name of <mod> with the steam workshop ID. In any case, "support for modular mod structure" should still be something worth looking into I imagine.


Only add links in selection when there is one

It'd be nice if when you have text selected the 'add links...' command only adds links within the selection

Just added a new command with this behaviour. Will be available in the next version in a few days.


String is fallback to default lang for a second under slow network

I'm submitting a ...  (check one with "x")
[x] bug report => check the FAQ and search github for a similar issue or PR before submitting
[x] support request => check the FAQ and search github for a similar issue before submitting
[ ] feature request

Current behavior
When the network is slow (by setting chrome's network throttling), the page is rendered with default language first, and then quickly switched to desired language.
For example, the default language is EN, and the desired language is same as browser (CN here). When the network is slow, the page is shown as EN first, and then auto switched to CN in a second.
Expected/desired behavior
Show the desired language without switching under slow network
ngx-translate version: 6.0.1
Angular version: 2.x.x & 4.0.0
export class AppComponent implements OnInit {
  private _defaultLang: string;
  private _browserLang: string;

  constructor(private _translate: TranslateService) { }

  ngOnInit() {
    this._defaultLang = 'en-us';
    this._browserLang = this._translate.getBrowserCultureLang().toLocaleLowerCase();

    this._translate.setDefaultLang(this._defaultLang);
    this._translate.use(this._browserLang);
  }
}

Thanks.

You don't have a language set.
You set the default - which gets loaded - and since nothing else is set becomes the visible language
You switch to the browser language - which gets loaded and displayed

Try switching .use() and .setDefaultLang().


Config to specify conan path

Hello!
I would like to request we add a configurable conan path.
I am running into the issue that the spawned shell cannot find my conan command when it tries to execute a command.

Hello! I was able to successfully specify a conan path with the branch I just pushed.
I  added a future functionality to specify profiles directory as well, but I currently does nothing.

#25

Hi clxyder,
thanks for your pull request https://github.com/disroop/vs-code-conan/pull/25
we will have review it as soon as possible

This is solved in version 0.8.2

Hi Michael do you have documentation on how to specify the path to conan?

Hi Michael do you have documentation on how to specify the path to conan?

How to configure the plugin. its written here: https://github.com/disroop/vs-code-conan/blob/master/docs/configure.adoc
Does that help?

I believe what I worked on for this PR was to specify the path to a specific conan executable. I am not sure if I am not seeing that configuration and/or documentation.

Ahh I understand what you mean.. instead having the Conan executable in the path you would like to configure it?

I will reopen this issue. I had to refactor a lot of the code and I changed the concept a little bit. But if that is your request this should be an easy change.

I should have been more specific when I submitted the PR. Thank you very much!

Could this be a similar issue to the one about the plugin not working when conan is in a virtual environment (https://github.com/disroop/vs-code-conan/issues/159)?

when I have conan in a virtual environment, I just get the error message "conan not found" - which suggests that this plugin isn't looking at the selected virtual environment to do the path search to find conan?


[Question]: CPE detection/generation for manually added components

We're planning to scan our docker images with syft and providing the result via cyclonedx SBOM to dependency-track.
Our images include manually added zip's of jdk and tomcat. Syft detects this components but a proper cpe is missing to match against the nvd by dependency-track.
My question is, how to achieve the cpe generation? Can this be done by adding a special file(generated by us) with these information which gets picked up by syft? Is it possible to configure content detection of such files via glob patterns or something else?
Thanks in advanced!

Hey @bahrb we do generate CPEs for packages for the json format, however as of today the CycloneDX format does not show these generated CPEs. We almost added support for this but noticed a couple of things that made us hesitate:

There is a deprecation warning with the use of CPEs in the CycloneDX spec.
Only one CPE can be provided, however, we generate multiple CPE candidates based on the discovered package information. It isn't clear which CPE is "better" than another among the generated candidates, so opted to not include any CPEs for the mean time.

That being said, nothing is technically preventing this feature from being added (to here and here). The only risk is that the CPE selected to be placed in the document may not be the best candidate for matching against NVD.

Thank you for the clarification @wagoodman.
I totally understand the reservation to support or implement a deprecated feature. When cpe is out of the game, there are just swid or purl left over to achieve what we want. According to the cycloneDX doc, just these three fields can be used for identifying known vulnerabilities.
Is there a way to make a parser pickup such information(purl/swid) from a file or something else?

We support pURL today, but not SWID. pURLs are generated from any data discovered about a package, which is different for each ecosystem. For instance:

https://github.com/anchore/syft/blob/v0.19.1/syft/pkg/rpmdb_metadata.go#L49
https://github.com/anchore/syft/blob/v0.19.1/syft/pkg/java_metadata.go#L54
https://github.com/anchore/syft/blob/main/syft/pkg/dpkg_metadata.go#L37

...these examples show that the pURL is crafted from different underlying metadata.
Just to clarify, I have two interpretations for what you're asking for:

you are looking for a way to have a "hints" file where you can supply manually-crafted pURLs (or CPEs / SWIDs) for a package already discovered by syft today.
you are looking for a way to have a "hints" file where you can supply additional packages that syft is not discovering today, and additionally provide information about these package hints such as pURLs/CPEs/SWIDs?

Which is closest to your ask?
There have been some discussions around allowing something like this: https://github.com/anchore/syft/issues/31, about supporting detection of SBOMs within an image and incorporate the contents into the generated SBOM.

@wagoodman thank you for your detailed answer!
My question tends more to interpretation 1, to provide a hint for already discovered packages but without valid CPEs or pURLs.
Meanwhile I found a solution for tomcat. The binary distribution is already available on maven, so a valid/working pURL is the result.
Another thing I was stumbling across is the JDK and the different vendor implementations. It is a similar problem like tomcat above. We added a manual jdk(azul zulu) from zip to our docker image, which was recognized by syft but due to missing pURL, SWID or CPE, dependency-track didn't match against any database.
Instead of using an extracted zip, I changed it to use the official azul docker image as foundation which result in a valid pURL for the zulu JDK as well, because it's retrieved from azul's own deb-repo.
The interesting part here is, since most of CVE's for the JDK are vendor specific to Oracle or OpenJDK you wont get a match for zulu JDK though it is build on OpenJDK and the fixes also apply to their JDK.
So one could miss a security issue in zulu JDK because it is not issued for this vendor but instead for Oracle or OpenJDK.
Hence, a hint to pickup another CPE for Oracle or OpenJDK would bring the benefit of discovering such gaps. But it's still an edge case.

Glad to see the initial issue was solved @bahrb!
Meanwhile I found a solution for tomcat.
The binary distribution is already available on maven, so a valid/working pURL is the result.

As to your follow up question about
"to provide a hint for already discovered packages but without valid CPEs or pURLs"

This current feature is not planned, but we'd be happy to review PR from anyone who is looking for this kind of corrective feature for fine tuning CPE generation.
The rough part is if it's an append of the corrective cpe, which works for spdx/syft raw, or a replace, which would be the case for cyclonedx.


feat: check bitcoin status, don't let guardian start until synced

Builds on Tabs PR (plz review that if you're reading this) #560
Stops the UI from progressing past the first page until the node is synced to prevent DKG failing from disagreeing on blockheight.

Summary by CodeRabbit
Release Notes

New Features

Introduced a Bitcoin status check feature in the application, providing real-time feedback on the Bitcoin connection status.
Added a tabbed interface in the Gateway component for better organization of wallet, lightning, and federation information.
New components for displaying balance sheets and federation information have been added to enhance the dashboard experience.

Bug Fixes

Improved layout and responsiveness of various components, ensuring a more user-friendly interface.

Documentation

Updated language files for improved clarity and consistency across multiple languages.

Chores

Removed outdated components that are no longer needed, streamlining the codebase.

closing in favor of 0.4.4


Allow the month view cells to expand automatically in height

Got a solution working for this that works via flexbox, probably best to make it opt in though for older browser support

Can't port this over easily, abandoning it


oiiotool --ch did not honor allsubimages=1 modifier

It worked with the global -a, but not the customary :allsubimages=1
modifier to that individual command. Either is supposed to make it
apply the channel shuffling to all subimages of a multi-subimage file
(for example, a multipart exr file).

LGTM!


 The repository should contain the following:

A high-level overview of the current architecture, including all major components and how they fit together.
Detailed documentation for each component, including its purpose, any relevant configuration, and any dependencies on other components.
Any scripts or infrastructure as code (IaC) needed to provision and manage the infrastructure.
This repository will be the central point of reference for anyone working on the AWS architecture, and will help ensure that everyone is working from the same set of up-to-date information.

├── gitops-infrastructure
│   ├── accounts
│   │   └── 123435789
│   ├── apps *
│   │   ├── argocd
│   │   └── grafana
│   └── platforms
│       ├── cicd
│       ├── controlplane
│       ├── observability
│       ├── mainnet
│       └── testnet

*example of apps

* Detailed documentation for each component, including its purpose, any relevant configuration, and any dependencies on other components.

For documentation I would suggest we structure it based on Diátaxis technical documentation framework.


Login page customization

This is to polish the login page according to the designer's prototype.
It can be found https://bitbucket.org/portalqualis/vigilancia-frontend/src/master/
Bring CSS and logo HTML tags from this bitbucket repo and apply here.
Attention to background image adjustments, and labels in buttons and messages in the footer if any.

@tiagoandresvaz  o login indicado na issue Login page customization #2 não é aberto, portanto não consigo acessa-lo. Você pode enviar o material de referencia de alguma outra maneira?

For reference use and comparison, follows a link with the approved layout.
http://<IP_ADDRESS>


iPhone5c(iOS7) iPhone4s(iOS7) Example problems

iPhone5c(iOS7) iPhone4s(iOS7) Example problems
The Simulator is well, but problems with real device.
Unable to get the latitude and longitude
Debug Infomation:
2015-02-07 15:39:18.164 LocationManagerExample[766:4207] readValue0 = 1
2015-02-07 15:39:18.166 LocationManagerExample[766:4207] latitude = 30.679545 longitude = 111.308235
2015-02-07 15:39:18.168 LocationManagerExample[766:60b] not respondsToSelector
2015-02-07 15:39:19.171 LocationManagerExample[766:4207] readValue0 = 1
2015-02-07 15:39:19.173 LocationManagerExample[766:4207] latitude = 30.679545 longitude = 111.308235
2015-02-07 15:39:19.175 LocationManagerExample[766:60b] not respondsToSelector
2015-02-07 15:39:20.178 LocationManagerExample[766:4207] readValue0 = 1
2015-02-07 15:39:20.180 LocationManagerExample[766:4207] latitude = 30.679545 longitude = 111.308235
2015-02-07 15:39:20.182 LocationManagerExample[766:60b] not respondsToSelector

Hi @daheli, you'll need to provide more information on what code you have tried and be more specific on what is not working to get help on this.
Thanks!

i am just runing LocationManagerExample.
:)

I got a reason of this problem. The device was jailbreak. Permission prompt alert doesn't appear.
It's really frustrating.
:)

I see, unfortunately this library does not support and is not tested on jailbroken devices. If you find a simple fix, feel free to open a pull request however.


removed redundant default yaml output and adjusted docs to reflect new changes

In relation to #75 .
What:

removed redundant default yaml output and adjusted docs to reflect new changes

Verify:
To verify, compile binary from root directory on this branch using go build and run the following commands:
./kuadrantctl generate gatewayapi httproute --help
./kuadrantctl generate kuadrant authpolicy --help
./kuadrantctl generate kuadrant ratelimitpolicy --help

Verify that there is no longer any redundant yaml output as mentioned in #75 . Also verify that the docs changed don't mention the redundant default yaml ouput anymore.

@eguzki feel free to review when you have the chance :)


#420: Added some prints to report time it takes for router QDR.A to c…

…onnect to the other routers. This is not a fix for the issue

This is useful to have in case of future failures in this test


"Migration" documentation for 0.95.0 is outdated

First paragraph in Performing a Migration section is outdated. There should be migrationBlock from RLMRealmConfiguration instead of setSchemaVersion:... method.

You define a migration and the associated schema version by calling +[RLMRealm setSchemaVersion:forRealmAtPath:withMigrationBlock:]. Your migration block provides all the logic for converting data models from previous schemas to the new schema. After calling +[RLMRealm setSchemaVersion:forRealmAtPath:withMigrationBlock:], any Realms which require migration will automatically apply the migration block provided and be updated to the provided version.

Thanks for pointing this out, @dvor !


Various small fixes

Fix regression from
https://github.com/envoyproxy/protoc-gen-validate/pull/529. The
code needs to handle enums at file scope and in a message. At the
same time also handle arbitrary nesting.
Fix regression from https://github.com/envoyproxy/protoc-gen-validate/pull/537
when dealing with single element string oneofs (and possibly other
types being returned as pointer types vs. value types and breaking in
queries. This fixes that for both C++ and Go. It's possible this fix
shoudl be in PG* but doing it here for simplicity.
Modify the C++ validator registry to have polymorphic lookup
capability which I want to use in Envoy.

Signed-off-by: Matt Klein<EMAIL_ADDRESS>

Oops just saw this. https://github.com/envoyproxy/protoc-gen-validate/pull/567 @daemonl

@rodaine I think this should be ready, thanks.

Hey @mattklein123, thanks for the fix on the enum import, and sorry for the regression.


Datadog Deployment Version Tracking

User Story - Business Need
The value of version tracking is that with each deployment we will be able to automatically detect anamolous errors or metrics between version of our application.  This will also prove useful to track/prove application adjustments intended for scalability and reliability.
In anticipation of upcoming enhancements to our application, implementation of version deployment tracking in Datadog is a priority, especially in regard to scalability and reliability. This carries great value as it enables rapid and effective assessment of the impact of our upgrades. By comparing the metrics with those of previous versions, we can accurately determine whether these improvements are introducing new errors or reducing them.  Datadog automatically begins detecting anomilies between versions via Watchdog, but it takes time for it to get a history of our application, which will only begin once we have implemented this; thus its important to implement this asap.

[ ] Ticket is understood, and QA has been contacted (if the ticket has a QA label).

User Story(ies)
As a Engineer and Product stakeholder
I want to set up Datadog deployment tracking for our ECS Fargate setup
So that I can monitor, analyze, and detect anomolies in the metrics and logs between different versions of our application
Additional Info and Resources
This Datadog Blog explains how DD_VERSION sets the version label in Datadog, which is used in deployment tracking.
Context:
Our ECS Fargate setup is configured via environment variables in our task definitions.
The trick of this will likely be in how we are able to dynamically update the DD_VERSION env variable.
Adding DD_VERSION is enough to get version tracking to work; but the trick is to dynamically update this value.  This may involve using something other than the task_definition variables.  If implementing a solution proves more complex, then creating a SPIKE will be necessary.
The below resources as a refresher on our ecs setup (via ddtrace-run and ENV variables):

Datadog AWS Fargate Monitoring
Integrating Datadog Agent in ECS Fargate
Monitor ECS Applications on AWS Fargate With Datadog

Here is documentation specific to Deployment Tracking
Engineering Checklist

[ ] Contact ddog team to ask how to dynamically update the DD_VERSION variable
[ ] Find examples online of similar situations and how they were resolved (our fargate-ecs + github Actions is the peculiarity to our setup)
[ ] Experiment with methods to update DD_VERSION via application.py, task_definition, or some other potential solution. Record attempts in comments of this ticket.
[ ] Determine how to test/prove that version is being successfully updated; hopefully just appearing in the apm dashboard is sufficient.
[ ] Make sure this update will apply to all environments.

Acceptance Criteria

dd_version successfully shows up on the apm dashboard:
determine that dd_version successfully showing up in apm dashboard is sufficient as a POC
update all environments

Potential Dependencies

Access to AWS Fargate and Datadog accounts

Potential Solution:

Store DD_VERSION as an AWS SSM parameter
Use that parameter in the task definition for each environment
Update that parameter in deployment.yml, in a step before Render migration task definition, where it updates SSM according to the latest version of our Github repo.
Make sure that every environment uses this value, and can clearly be distinguished by environment in the datadog APM dashboard.

@ldraney Got a question from @cris-oddball "Is this tracking our app version, or some version of Datadog?  If we are tracking the app version, I don't think the env var should be DD_VERSION? We have releases that are versioned, shouldn't we leverage something about that?"

I added this comment to the additional resources:
This Datadog Blog explains how DD_VERSION sets the version label in Datadog, which is used in deployment tracking.

Based on the blog, this looks the service of our API service. We only 'version' (in the real sense of the word) when we deploy to staging and prod (example: v1.6.6) and Infra is versioned separately (but we would want to see that, too, in DD).
I think as a team we need to discuss what this looks like or turn this into a Spike to decide which way to do this.
Examples:

do we just track the tag version for releases?  (ex 1.6.6)
or do we track the tags I cut to send things to perf?  (ex v1.6.6-1035-some-feature)
we don't version anything when we deploy to dev right now, will that change?

@k-macmillan @mjones-oddball @ldraney

I'd like to automate it. Possibly utilizing the year_revision to set the version for datadog. We should be able to pluck that information from aws with the CLI in our Action.

Keeping ticket as is based on Kyle's feedback above

Hey team! Please add your planning poker estimate with Zenhub @cris-oddball @justaskdavidb2 @k-macmillan @kalbfled @ldraney @nikolai-efimov @EvanParish

This might be a way to test before deploying - ddtrace integration testing. I'm not sure if DD_VERSION appears but it seems like it should.


Add WinHTTP Transport support to the SDK for windows clients as another HTTP Transport.

Fixes https://github.com/Azure/azure-sdk-for-cpp/issues/354

The handles are copied to the bodyStream. Add a destructor for the bodyStream to clean the handles. Only the Send() method is caring about CleanupHandlesAndThrow, but if Read() fails or if the bodyStream is disposed, are we leaking?

That is already happening :)
See:
https://github.com/Azure/azure-sdk-for-cpp/blob/16bef106dad8695c4927fb660dcf9c0964796924/sdk/core/azure-core/inc/azure/core/http/winhttp/win_http_client.hpp#L60-L65

/azp run cpp - storage

/azp run cpp - storage

/azp run cpp - storage

The DataLakeFileClientTest.ConstructorsWorks test is failing because of https://github.com/Azure/azure-sdk-for-cpp/pull/1095
108: [ RUN      ] DataLakeFileClientTest.ConstructorsWorks
108: D:\a\1\s\sdk\storage\azure-storage-files-datalake\test\datalake_file_client_test.cpp(573): error: Expected: anonymousClient.Read() doesn't throw an exception.
108:   Actual: it throws.
108: [  FAILED  ] DataLakeFileClientTest.ConstructorsWorks (958 ms)

I am unable to repro the DataLakeFileSystemClientTest.DataLakeSasTest failure locally:
https://github.com/Azure/azure-sdk-for-cpp/issues/1096

/azp run cpp - storage

/azp run cpp - storage

/azp run cpp - storage

/azp run cpp - storage

/azp run cpp - storage

The intermittent DataLakeFileSystemClientTest.DataLakeSasTest failure is outside the scope of this PR and needs investigation. It's being commented out for now by @Jinming-Hu in https://github.com/Azure/azure-sdk-for-cpp/pull/1109

/azp run cpp - storage

/azp run cpp - storage

/azp run cpp - storage

/azp run cpp - storage

Thanks for the great and detailed feedback @vhvb1989. Appreciate it!
If anyone else has any other pressing feedback or wants me to change something, please review it and let me know and I will address it separately. In the interest of time, given the duration and size of this PR and conversation, I am going to merge this as-is, once CI is green (again).

@Jinming-Hu can't wait for you to share the performance numbers on Windows. I have some optimizations in mind that I suspect can get us some improvements, but wanted to see the change first to get a sense of order-of-magnitude. Thanks!


Need Help on existing HTTP server conversion (on docker-compose)

Guys, i am new to web dev and of course web deployment. I have recently deployed a Flask web app on AWS linux 2 on docker. I have also pointed my domain name to an Elastic IP (static). So far ... my web would work on HTTP. But i wanted to make it SSL encrypted, so i tried to follow this guide
I am stucked for 2 days now, i really had been searching up solution .... so here i am, please help T_T
I followed the guide up until where i need to use the init-letsencrypt.sh part, where i ran into problem.
`[ec2-user@ip-172-31-22-95 FlaskWebapp]$ sudo ./init-letsencrypt.sh
Existing data found for myDomain.com. Continue and replace existing certificate? (y/N) y
Creating dummy certificate for myDomain.com ...
Creating network "flaskwebapp_flask_network" with the default driver
Creating network "flaskwebapp_default" with the default driver
Creating flaskwebapp_certbot_run ... done
Generating a RSA private key
..........................................................++++
....++++
writing new private key to '/etc/letsencrypt/live/myDomain.com/privkey.pem'
Starting nginx ...
Creating flaskwebapp_proxy_1 ... done
Deleting dummy certificate for myDomain.com ...
Creating flaskwebapp_certbot_run ... done
Requesting Let's Encrypt certificate for myDomain.com ...
Creating flaskwebapp_certbot_run ... done
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Requesting a certificate for myDomain.com and www.myDomain.com
Performing the following challenges:
http-01 challenge for myDomain.com
http-01 challenge for www.myDomain.com
Using the webroot path /var/www/certbot for all unmatched domains.
Waiting for verification...
Challenge failed for domain myDomain.com
Challenge failed for domain www.myDomain.com
http-01 challenge for myDomain.com
http-01 challenge for www.myDomain.com
Certbot failed to authenticate some domains (authenticator: webroot). The Certificate Authority reported these problems:
Domain: myDomain.com
Type:   connection
Detail: Fetching http://www.myDomain.com/.well-known/acme-challenge/M6BFdnhcEStqhn0oXAB125ZK29z3vbRfyJR-BaTHs30: Connection refused
Domain: www.myDomain.com
Type:   connection
Detail: Fetching http://www.myDomain.com/.well-known/acme-challenge/vogXpAFZSjJAudjK-C11EMB23AdJkW3FicLl3d2qA9U: Connection refused
Hint: The Certificate Authority failed to download the temporary challenge files created by Certbot. Ensure that the listed domains serve their content from the provided --webroot-path/-w and that files created there can be downloaded from the internet.
Cleaning up challenges
Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
ERROR: 1
Reloading nginx ...`
Below is my docker-compose.yml file
`version: "3.7"
services:
web:
build: web
restart: always
environment:
- DEBUG=0
networks:
- flask_network
volumes:
- /etc/localtime:/etc/localtime:ro
proxy:
build: proxy
restart: always
ports:
- "80:80"
- "443:443"
networks:
- flask_network
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
certbot:
image: certbot/certbot
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
db:
image: postgres:13
restart: always
networks:
- flask_network
environment:
- POSTGRES_USER=**
- POSTGRES_PASSWORD=**
- POSTGRES_DB=myDB
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
flask_network:
volumes:
postgres_data:`
And this is my Proxy (nginx) configuration.
`server {
listen           80;
server_name      myDomain.com www.myDomain.com;

location /.well-known/acme-challenge/ {
    root /var/www/certbot;
}

location / {
    return 301 https://$host$request_uri;
}

}
server {
listen           443 ssl;
server_name      myDomain.com www.myDomain.com;

ssl_certificate        /etc/letsencrypt/live/myDomain.com/fullchain.pem;
ssl_certificate_key    /etc/letsencrypt/live/myDomain.com/privkey.pem;
include                /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam            /etc/letsencrypt/ssl-dhparams.pem;

location / {
    proxy_pass         http://web:5000;
    proxy_set_header   Host                 $host;
    proxy_set_header   X-Real-IP            $remote_addr;
    proxy_set_header   X-Forwarded-For      $proxy_add_x_forwarded_for;
    proxy_set_header   X-Forwarded-Proto    $scheme;d-Proto    $scheme;
}

}`
Below is my Directory Structure
Flask_Webapp/
├─ web/
│  ├─ Dockerfile
│  ├─ Bunch of other backend (not related)
├─ proxy/
│  ├─ conf
│  ├─ Dockerfile
├─ db/
docker-compose.yml

These error is found in letsencrypt.log
`2021-12-31 07:10:01,745:ERROR:certbot._internal.log:Error while running apachectl restart.
httpd not running, trying to start
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address <IP_ADDRESS>:80`

@iumyidol I have the same error did you find the solution?

I fixed this by adding these two rules to the security group of my ec2.

I fixed mine by following this guide https://mindsers.blog/post/https-using-nginx-certbot-docker/

I fixed this by adding these two rules to the security group of my ec2.

My AWS already had those opened up last time, so i believe my problem is not related to this.
Since this matter had been awhile i cannot recall exactly what was the problem but i roughly remember that it was because tried to execute some of the process outside of docker (tho not intended, but by accident due to inexperience)


Image not working

Hi! Great work so far so keep it on.
I found an error with the images. If a load online an image into a note - its fine and will be shown up in the offline-editor. But if iam inserting an image in the offline-editor it will not be shown up in the online editor. So images online -> offline OK
images offline -> Online Not working!
THX!

Will have a look at that, thanks for the catch

Here is why: if you add an image in the offline editor only the "file" is added bit instead the "data" should be added as in the web editor. Should (hopefully) not be too hard to fix...

I have added a fix in branch Issue-#31. Could you please check and verify?
Also, I tried to support the same for drag & drop but didn't succeed. The Webview in JavaFX does some complicated things that I don't want to disturb :-)

Working perfect - great! THX! Now i can use it for daily business. Drag & Drop would be great but not necesarry. Did u start working to make size-changing possible? btw: great open-source-project :+1:

One issue at a time :-)
Thanks for the flowers. After using other peoples open source stuff for so long I decided its time to provide something as well.


SF2.7 - Twig Functions in Layout

Hi there
Since upgrading to symfony 2.7 (beta 2), twig functions such as {{ asset('path/to/file') }) and {{absolute_url('path/to/file')}} don't seem to work when included in the base layout.
The specific error is the twig function "asset" does not exist".
There does not seem to be a problem when twig functions are included in the email content.
Kind regards
Matt

Hi I'v not tested the bundle with SF 2.7 yet, but did you try that ?
# app/config/config.yml
lexik_mailer:
    templating_extensions:
        - 'twig.extension.trans'
        - 'twig.extension.assets'

Thanks. That fixed it. Sorry I missed that option.


chore: fix breadrumbs overflow

 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.


[iOS #430] Create StaffView

Issue

close #430

Overview (Required)

Create StaffFeature target
Create StaffView
Fix AboutView to be able to see staff view
only UI ( fetched data from fakes function )

Links

Figma

Screenshot
https://user-images.githubusercontent.com/52638834/190849190-152e6729-bfb8-469b-984c-778f673c9d18.mov

Hello, @ry-itto !
Sorry for late reply.
I'm having a conflict, do you want it to be displayed in Modal or in NavigationView ?


Geometric sketching

Pull Request Test Coverage Report for Build<PHONE_NUMBER>7
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

0 of 0   changed or added relevant lines in 0 files are covered.
68 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.2%) to 9.42%

Files with Coverage Reduction
New Missed Lines
%

.tox/default/lib/python3.11/site-packages/polygraph/embedding.py
34
0.0%

.tox/default/lib/python3.8/site-packages/polygraph/embedding.py
34
0.0%

Totals

Change from base Build<PHONE_NUMBER>6:
-0.2%

Covered Lines:
156

Relevant Lines:
1656

💛  - Coveralls


Conversion of KMDF(String Code) into UMDF

Hello,
I have created the KMDF project to print the string and built it, I am about to convert this KMDF project to UMDF version . These are the procedures I have followed :

Created the UMDF v2 , empty project in Visual Studio.
Copied the source and header file of KMDF and pasted it in UMDF v2.
While Building the solution I got errors regarding header files
After excluding the header shows new errors.

Attached the KMDF code and Converted UMDFV2 code for reference
#include "ntddk.h"
VOID Unload(IN PDRIVER_OBJECT DriverObject)
{
DbgPrint("Driver unload \r\n");
}
NTSTATUS DriverEntry(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath)
{
UNICODE_STRING string = RTL_CONSTANT_STRING(L"HELLO DRIVER \r\n");
//ANSI_STRING
DriverObject->DriverUnload = Unload;
DbgPrint("Hello world\r\n");
DbgPrint("%wZ",&string);
return STATUS_SUCCESS;
}
Converted UMDF code as below
#include "ntddk.h"
#include <windows.h>
#include <wdf.h>
VOID Unload(IN PDRIVER_OBJECT DriverObject)
{
DbgPrint("Driver unload \r\n");
}
NTSTATUS DriverEntry(IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegistryPath)
{
UNICODE_STRING string = RTL_CONSTANT_STRING(L"HELLO DRIVER \r\n");
//ANSI_STRING
DriverObject->DriverUnload = Unload;
DbgPrint("Hello world\r\n");
DbgPrint("%wZ",&string);
return STATUS_SUCCESS;
}
Errors images are:

After excluding the #include"ntddk.h" from the UMDF Code, could see the below errors:

Questions:
1)Should I add the ntddk.h header into the code?
2)If so, how to rectify the errors
3)If not, could you suggest with some usermode print statements
Thanks in advance
Ranjani N

DECLARE_CONST_UNICODE_STRING


Snapps Txn Testing

Sequencing
change a non-snapp account to snapp account
Parties using protocol state predicate
Parties using account predicate (fields other than nonce)
Update account data(delegate)
Parties using full commitment
Expired transactions are rejected (using protocol state predicate for snapps)
Transaction with multiple snapps
Transaction with one snapp calling the other

closing in favor of tickets for specific tests


In step 2 of the On-behalf-of authentication part, what is the accessToken?

[Enter feedback here]
In step 2 of the On-behalf-of authentication part, what is the accessToken?

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

ID: ee89d0d7-becd-83f4-b862-f39b1c1ad6d4
Version Independent ID: d40d3446-9677-dbdc-faa9-f04a30ffb042
Content: Authenticate with Azure AD for access - Azure Data Explorer
Content Source: data-explorer/kusto/management/access-control/how-to-authenticate-with-aad.md
Service: data-explorer
GitHub Login: @shsagir
Microsoft Alias: shsagir

Thanks for the feedback! We are currently investigating and will update you shortly.

@v-weijiexu Thanks for your question. As stated in step 2, it's "the access token acquired in the first step as a proof of identity to Azure Data Explorer". So it refers to the access token created in step 1c. Hope that answers your question. In the meantime, I'm closing this issue. You can @comment me if you have any further questions relating to this issue. Thanks again.
#please-close


Create a Harvester Manager plugin

Summary
Fixes #6790, #7256
This PR moves code related to importing or 'managing' harvester clusters into an extension, to be bundled with the rancher dashboard. There should be no changes to functionality here, just code moving.
Areas or cases that should be tested
Importing harvester clusters, navigating into a harvester cluster ie loading the Harvester pkg/extension:

harvester cluster without bundled extension (pre 1.1.0 harvester) offline-preferred and remote-preferred
harvester cluster that does support extension (1.1.0) offline-preferred and remote-preferred

At some point we need to tackle providing machine configs via plugins. I think @aalves08 might even have this working. If this is straight forward it would be good to do it here, if not then we should capture it in a PR
There's some linting errors, probably worth a rebase to capture the new linting rules

Once these are all resolved i'll come back and give it a proper test

That is done here: https://github.com/rancher/elemental-ui/blob/main/pkg/elemental/edit/provisioning.cattle.io.cluster/MachinePool.vue#L113-L115
but it's not the proper way of doing it because it's overriding the MachinePool file on rancher/dashboard once the extension installed, which may lead to problems like these which we are trying to avoid (and I still need to fix those on Elemental):
https://suse.slack.com/archives/C02DE1LRG65/p1668706876100059

At some point we need to tackle providing machine configs via plugins. I think @aalves08 might even have this working. If this is straight forward it would be good to do it here, if not then we should capture it in a PR
There's some linting errors, probably worth a rebase to capture the new linting rules

Once these are all resolved i'll come back and give it a proper test

That is done here: https://github.com/rancher/elemental-ui/blob/main/pkg/elemental/edit/provisioning.cattle.io.cluster/MachinePool.vue#L113-L115
but it's not the proper way of doing it because it's overriding the MachinePool file on rancher/dashboard once the extension installed, which may lead to problems like these which we are trying to avoid (and I still need to fix those on Elemental): https://suse.slack.com/archives/C02DE1LRG65/p1668706876100059

@aalves08 is there a gh issue to track this? Plugins should be able to use their own machine-config (and cloud-credential) folders but it looks like we'll need to update these getters to account for that (somehow): https://github.com/rancher/dashboard/blob/master/shell/store/plugins.js#L160-L167

@mantis-toboggan-md I don't have a gh issue to track this

@mantis-toboggan-md This PR needs some TLC

The updates to machine-config and credentials don't breaking anything non-harvester side, but noticed HarvesterServiceAddOnConfig. Couldn't see how this code wise links in, but i think it relates to rke2 cluster add on config... couldn't test this though. If it does relate, we'd probably should make it generic too as per machine-config

I'll look into this today and see if it can be implemented in a more generic way. HarvesterServiceAddonConfig is an...unusual component. It's used within the explorer's service edit page when the cluster being explored is provisioned on a harvester cluster.

Per teams conversation @aalves08 will be working on a mechanism to allow plugins to provide their own tabs within ResourceTabs; this should allow us to pull the HarvesterAddonConfig out of /shell but there's no need to delay this PR in order to leverage that. I've made an issue to track this work here https://github.com/rancher/dashboard/issues/7774

@WuJun2016 or @n313893254 could one (or both) of you take a look at this PR and verify that it doesn't break the Harvester cluster import functionality? Thank you

@mantis-toboggan-md   LGTM,   I tested it with v1.1.0, latest, and v1.0.3, and everything is as expected.  thanks

harvester-manager imports are broken in the extensions starter: https://github.com/rancher/dashboard/issues/8008


feat(cue): add context support for CUE

Please update the README.

I updated the README, and also fixed minor typos I noticed in the check list.

Thanks


Fix hyprland error hyprfocus::* not found in readme getting started

Hey,
Thank you for fixing this plugin.
When i tried to use it in hyprland-git as of 14-4-2024 i got an error saying some hyprfocus: fields are not known. Problem was missing plugin: before hyprfocus config.

Hmm, I'm also using hyprland-git and have been using the same config in the README without any issues.
Would you mind sharing your hyprland config and the output of hyprctl version so I can test with the same commit you are on?


Remove version: VirtualGL.TurboVNC version 3.0

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

Close with reason: Package tested in sandbox and was still available;


Issues in volume claim template for statefulsets

On master-head - commit id: 33f755f18

Navigate to Dashboard --> Workload --> Overview --> Create Statefulset --> Volume claim templates --> Add claim

Issue#1

There are no options like how we have in the Ember UI to define a template using Storage class OR a  Persistent Volume. Only a dropdown listen the persistent volume claims is available

Expected:
User should be able to create a volume claimtemplate from a Storage class or a PV
Issue#2

Click on the drop down and select a value
Value selected is NOT listed

On master-head - commit id: 27000be

Dashboard --> Workload --> Overview -->Create a stateful set
Scenario#1
Using storage class
Select Volume claim templates  --> Give in details of storage class
Replicas - 3. Stateful set is created successfully

Scenario#2
Using persistent volumes:

Create a PV ( EBS Disk) (on a EKS HA cluster)

Select Volume claim templates  --> Give in details

Request sent contains:

name: "vol1"
namespace: "default"
spec: {accessModes: ["ReadWriteOnce"], resources: {requests: {storage: "10Gi"}}, volumeName: "test-2"}
accessModes: ["ReadWriteOnce"]
resources: {requests: {storage: "10Gi"}}
requests: {storage: "10Gi"}
storage: "10Gi"
volumeName: "test-2"
type: "persistentvolumeclaim"

Workload is stuck in In progress state.
PVC that got created:

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  creationTimestamp: "2020-09-27T17:36:43Z"
  finalizers:
  - kubernetes.io/pvc-protection
  labels:
    workload.user.cattle.io/workloadselector: deployment-default-test-2-pv
  name: vol1-test-2-pv-0
  namespace: default
....
spec:
  accessModes:
  - ReadWriteOnce
  resources:
    requests:
      storage: 10Gi
  storageClassName: gp2
  volumeMode: Filesystem
  volumeName: test-2
status:
  phase: Pending

Error seen in Ember UI on the PVC is : Cannot bind to requested volume "test-2": storageClassName does not match

Reopening the issue

On master-head - commit id: ec04f7878c

Dashboard --> Workload --> Overview -->Create a stateful set
Volume Claim templates --> Select "Use an existing persistent volume"
The dropdown does NOT change to available "Persistent Volumes". It still lists available "Storage classes."

Reopening because of ^^^ issue

Stateful set using Storage class in Volume claim template works.

Verified on the latest dashboard.
On creating a stateful set with a volume claim template using longhorn class, the stateful set is stuck in in progress state.
The VolumeClaimTemplate is missing in the YAML and the name of the volume mount is empty.
The YAML generated:
spec:
      containers:
      - image: ubuntu
        imagePullPolicy: Always
        name: wk-3
        resources: {}
        stdin: true
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        tty: true
        volumeMounts:
        - mountPath: /data
          name: ""
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      terminationGracePeriodSeconds: 30

The expected YAML should be:
spec:
      containers:
      - image: ubuntu
        imagePullPolicy: Always
        name: wk-3
        resources: {}
        stdin: true
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        tty: true
        volumeMounts:
        - mountPath: /data
          name: ""
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      terminationGracePeriodSeconds: 30
volumeClaimTemplates:
  - metadata:
      name: www
    spec:
      accessModes: [ "ReadWriteOnce" ]
      storageClassName: "longhorn"
      resources:
        requests:
          storage: 1Gi

Verified with latest dashboard master - head
Validation - Pass
Scenarios validated:

Stateful set with 1 replica, volumeClaimtemplate with longhorn storageClass.
Stateful set with 2 replica, volumeClaimtemplate with longhorn storageClass.
Stateful set with 1 replica, volumeClaimtemplate with existing PV with longhorn-static class and without class.


way to make hivemind 1000s of times more efficient.

https://github.com/BumblebeeBat/FlyingFox/blob/master/docs/cheaper_alternative_to_reputation_truthcoin.md

Keeping money in reputation is expensive by the interest rate. If your money is invested in rep, you can't also invest it elsewhere.

This is correct, but what's the point? These two sentences are true for all investments / projects to ever exist.
Zack, your technical writing would probably be easier to understand, if you used the "scientific organization". In Bitcoin, BIPs typically run something like: Abstract, Motivation, Problem, Definitions, Solution, Code, Example, Notes, Attribution, Copyright.
As it stands, I can't even tell what problem you are trying to solve.
For example, you say:

This paper improves on Bitcoin Hivemind's protocol by heavily reducing the amount of money that needs to be locked up.

But that is not necessarily an improvement. I could rewrite your sentence as "this paper damages Bitcoin Hivemind by making it cheaper to execute a 51% REP attack".

The problem I am trying to solve is making truthcoin more affordable to operate.
The point of those 2 sentences is to quantify how much it costs truthcoin to operate.
As you can see from the example, $30,000 are used as a security deposit to secure $10,000 of gambling, so the protocol I suggest is cryptoeconomically secure against 51% rep attacks.
For an outcome to be valid at least 2/3rds of reporters need to report to it. If 2 different outcomes both have 2/3rds, then at least 1/3rd of reporters double-report.
That is why the security deposit is 3x bigger than what it secures.

My mistake, it doesn't work.


Check performance from China and improve if it is slow

I hear it is slow to access from China mainland to the foreign websites.
Genshin Dictionary is hosted by Cloudflare and it provides free global CDN, but the China data center is not available unless I bought the most expensive Enterprise plan.
Therefore, the Dictionary is probably served for users in China mainland from the foreign data centers. (Maybe Hong Kong or South Korea?)
Prerequisite
#6
Steps

[ ] 1. Check performance (pagespeed) on access from China

Check Largest Contentful Paint using real-user monitoring (RUM).

[ ] 2. Consider how can I resolve the performance problem.

Option 1. Serve from a server or CDN in China

⚠ Is there any free or cheap static server or CDN?
❌ Can I register ICP Beian?

Option 2. set up PWA to cache everything

It should be slow on first access, but faster from next access.

https://user-images.githubusercontent.com/48173350/182012360-bd088589-1db2-4564-b790-c49ece45888f.mp4
Maybe this screen record can be helpful.
I seldom access this site on my iPhone and it should not have loaded it from the cache. Of course, I didn't use VPN. My ISP is China Telecom.

Therefore, the Dictionary is probably served for users in China mainland from the foreign data centers. (Maybe Hong Kong or South Korea?)

I tried a trace route tool and found that maybe it's provided by data centers at Los Angles😂

@Bill-Haku Thanks for your investigation!
Oh, the Dictionary is served from California? Maybe Cloudflare's routing does not work properly in China without purchasing the China Network option :sob:
According to your screen record, it seems to take about 4s for Visually Complete (The time when the browser completes rendering Above the Fold) and about 6s for Load.
Hmm, it's not terrible, but still slow.
Since it is probably not possible to serve from China, we can't provide the best performance for Chinese users, but hopefully, we need a bit faster performance.

I think the performance now is acceptable. You don't need to worry too much about it.

@Bill-Haku You are right, I will consider the performance when I have time.

There are some servers like Aliyun and Tencent Cloud. Chinese government has strict restrictions on Internet services. You can try, but I don't think it's a good choice.
You know there is something called "Beian"（ICP备案）。It's not easy to get as you are an Japanese. Besides, it's a must for internal website but not a must for foreign ones.
If you really want to apply for ICP Beian, you can read this.（Chinese page）
And I'm sorry to tell you that owing ICP won't boost Internet connection.

In fact foreigners can also apply for an ICP beian, and then a CDN server can be deployed in China. But as it may take a lot time, it is really not something should be done with a high priority.

@iamPorter Thanks for the information!
I want to make the Dictionary as fast as the websites hosted in China mainland because slow pagespeed causes higher bounce rates, but as you pointed out, it is difficult because of the problem in my Chinese language skill.
As you mentioned, loading in 4 to 6 seconds are normal for people in China mainland, so maybe we can accept current pagespeed for now.

And I'm sorry to tell you that owing ICP won't boost Internet connection.

Yes, you are right. I meant I wanted to sign up with ICP Baian to host Genshin Dictionary on the server in China mainland. Hosting on the China server should improve the pagespeed.


Pin dind version for KubeRay CI

Not sure if it is possible to trigger KubeRay CI against this PR before merging, but if it's possible, that would be ideal.
This PR updates the version of the dind plugin in order to get the changes from https://github.com/ray-project/dind-buildkite-plugin/pull/1 which pins the dind version to fix KubeRay CI.
Reference for the pinning syntax: https://buildkite.com/docs/plugins/using#pinning-plugin-versions
Closes https://github.com/ray-project/kuberay/issues/1859

Test run here, we might as well wait for it to pass before merging this PR:

Test run here, we might as well wait for it to pass before merging this PR.

The offending line kind load passed on all six of the tests, so we are good to merge.  @aslonnie I don't have merge privileges but feel free to merge whenever buildkite/rayci passes

The breaking change was just fixed upstream in Docker 25.0.1, but we should merge this change anyway because it's more stable to have the version pinned.

The breaking change was just fixed upstream in Docker 25.0.1, but we should merge this change anyway because it's more stable to have the version pinned.

maybe consider pinning to the newer working version.


[RELEASE-1.7] Use 1.28 SO branch to test for serving 1.7

Use 1.28 SO branch to test for serving 1.7

/cc @nak3, @skonto

/lgtm
Thank you!


Allow scheduled query shard to be set to empty in frontend

Fixes #1452

IMO we really ought to move towards an API where the frontend sends the entire updated object. I think there's a lot of potential tricky situations with trying to use the update style where the frontend only sends the values to be updated, and I don't believe the small savings in network traffic is worth it.


gnomeExtensions.arcmenu: 55 -> 63

I updated the package to the newest version on their GitLab, released a week ago. I have tested this against the current unstable GNOME and I now have my desired menu back. I hope this is helpful to others, but I personally have this in an overlay of mine so this is just contributing back to upstream.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

ArcMenu 55 didn't work on then new stable 24.11

Thank you for the contribution. This has been superseded by #355126, and the 24.11 backport is open on #361703.


docs test is failing

I noticed that the docs test started failing recently for some reason.  It fails during make html when it is working on the contrib.flask_util part.
I reran the test in a case that it previously passed, but it failed this time.  This makes me think that the problem is external to oauth2client.  On PyPI, Flask was last updated on 2016-06-07.
The last tests that passed are from 3 days ago (July 12).
Here is the output I get when running it.

sphinx-build -b html -d _build/doctrees  -W . _build/html
Running Sphinx v1.4.5
making output directory...
loading pickled environment... not yet created
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 29 source files that are out of date
updating environment: 29 added, 0 changed, 0 removed
reading sources... [  3%] index
reading sources... [  6%] source/oauth2client
reading sources... [ 10%] source/oauth2client.client
reading sources... [ 13%] source/oauth2client.clientsecrets
reading sources... [ 17%] source/oauth2client.contrib
reading sources... [ 20%] source/oauth2client.contrib.appengine
reading sources... [ 24%] source/oauth2client.contrib.devshell
reading sources... [ 27%] source/oauth2client.contrib.dictionary_storage
reading sources... [ 31%] source/oauth2client.contrib.django_orm
reading sources... [ 34%] source/oauth2client.contrib.django_util
reading sources... [ 37%] source/oauth2client.contrib.django_util.apps
reading sources... [ 41%] source/oauth2client.contrib.django_util.decorators
reading sources... [ 44%] source/oauth2client.contrib.django_util.signals
reading sources... [ 48%] source/oauth2client.contrib.django_util.site
reading sources... [ 51%] source/oauth2client.contrib.django_util.storage
reading sources... [ 55%] source/oauth2client.contrib.django_util.views
reading sources... [ 58%] source/oauth2client.contrib.flask_util
Exception occurred:
File "/home/pferate/Projects/oauth2client/.tox/docs/local/lib/python2.7/site-packages/flask/globals.py", line 51, in _find_app
raise RuntimeError(_app_ctx_err_msg)
RuntimeError: Working outside of application context.
This typically means that you attempted to use functionality that needed
to interface with the current application object in a way.  To solve
this set up an application context with app.app_context().  See the
documentation for more information.
The full traceback has been saved in /tmp/sphinx-err-6Wkj68.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at https://github.com/sphinx-doc/sphinx/issues. Thanks!
Makefile:53: recipe for target 'html' failed
make: *** [html] Error 1

Fixed by #551.


Need (images, annotations) but dataset.getitem() return {'image': img, 'bboxes': bbox, 'category_id': labels}

will this work?

@AlexLuya  Your question is not clear, yes, voc or coco has images and anotations. And I have read it to return {'image': img, 'bboxes': bbox, 'category_id': labels}

@toandaominh1997 sorry,haven't noticed  collate_fn provided@toandaominh1997 sorry,haven't noticed  collate_fn provided


Add developers page

Create a page to list out all the contributors of the website

The  Git-hub id of the first contributor on the developers page is not reachable. Also the link to the id of the last contributor is connected only with the name not the photo. This can be corrected.


Simply not installing

I've dropped the Spring folder into my project, with copying and groups enabled. when I import spring it says "No such module 'Spring'".

There's no "Spring" module in Charts.

@danielgindi Sorry about this, posted in the wrong tab!


⚠ SceneTime has degraded performance

In 3f142c4, SceneTime ($ST) experienced degraded performance:

HTTP code: 200
Response time: 1131 ms

Resolved: SceneTime performance has improved in 76e96b5 after 6 minutes.


feat: cors proxy

Current dependencies on/for this PR:

master

PR #21

PR #22   👈

This comment was auto-generated by Graphite.

@istaiti started a stack merge that includes this pull request via Graphite.

Graphite rebased this pull request as part of a merge.

@istaiti merged this pull request with Graphite.


OSX Finder: duplicated entries

Strange behavior of OS X Finder is observed as duplicating entries in a file listing. This lasts for a second: folders and files are duplicated, and then they disappear. I have not seen this in any of the WebDAV clients. Windows Explorer also works fine, this issue concerns only the Finder.

I'm seeing this as well. Any ideas?

Hello,
I am investigating, but I found no clue why this is happening yet.

Thanks for looking into this.

any update on this?

besides the duplicated entries, the size of files are zero and the Finder fails to copy files from webdav to local machine.

I found the duplicated entries and zero size are caused by the "location" of the propfind response.
Please advise whether it can be omitted ?

Hello,
Indeed, the tag <DAV:location> is causing trouble in Finder of OS X. It is (v2.3.20) disabled the time to find if the implementation is not correct. In meantime, you can enable it with the server's option enableLocationTag if you want to have it in the responses (more info).
Thank you very much for your contribution.


Feature: WASM Build

Describe what you are looking for
I would like to run this off-line in the browser have you considered adding a WASM build?
Can you contribute to the implementation?

[ ] I can contribute

Is your feature request specific to a certain interface?
Other
Contact Details
<EMAIL_ADDRESS>Is there an existing issue for this?

[X] I have searched the existing issues

Code of Conduct

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

Sure, we have been discussing it with @syrusakbary. Haven’t built it yet, but happy to try if you have an application 🤗

Yeah - I'm working on a chrome extension for personal knowledge management / research. It uses SQLite for offline data. There is a big gap in the space that SQLite occupies for a solid vector search database. Perhaps I should have asked about the possibility of a SQLite extension instead. Either one would be fantastic and I think widely useful.

I'm also highly interested in this, in order to build it into an iOS app via WKWebView running user scripts.

@aehlke You can use it in both Swift and Objective C even without WebKit.

I'll do that but would also like to let users have it run in the frontend of statically-deployed sites the users can deploy from my app. Thanks

Hey, @aehlke ! Not only the WASM builds are available for a couple of releases now, but we have also based Emscripten-based WASM bindings on top of our C99 interface. They are already available on wasmer.io/unum/usearch, and we are already working on next-gen WAI interfaces!
Let us know about your experience and please share if you have a cool application in mind 🤗


failed install - debian empty config file crowdsec-firewall-bouncer.yaml

os: debian buster
on a fresh install the systemd crowdsec-firewall-bouncer.service fails to start because the default config file is empty
Aug 25 23:11:41 textxc crowdsec-firewall-bouncer[6138]: time="2021-08-25T23:11:41Z" level=info msg="crowdsec-firewall-bouncer v0.0.13-debian-pragmatic-cc236a78ee262cf4a34bb953c62cbde3350eb4fb"
Aug 25 23:11:41 textxc crowdsec-firewall-bouncer[6138]: time="2021-08-25T23:11:41Z" level=warning msg="missing 'pid_dir' directive in '/etc/crowdsec/bouncers/crowdsec-firewall-bouncer.yaml', using defaul
t: '/var/run/'"
Aug 25 23:11:41 textxc crowdsec-firewall-bouncer[6138]: time="2021-08-25T23:11:41Z" level=fatal msg="unable to load configuration: invalid configuration in /etc/crowdsec/bouncers/crowdsec-firewall-bounce
r.yaml"
Aug 25 23:11:41 textxc systemd[1]: crowdsec-firewall-bouncer.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStart= process belonging to unit crowdsec-firewall-bouncer.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Aug 25 23:11:41 textxc systemd[1]: crowdsec-firewall-bouncer.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit crowdsec-firewall-bouncer.service has entered the 'failed' state with result 'exit-code'.
Aug 25 23:11:41 textxc systemd[1]: Failed to start The firewall bouncer for CrowdSec.

as this is not handled gracefully it results in an installation error with the package manager
dpkg: error processing package crowdsec-firewall-bouncer (--configure):
 installed crowdsec-firewall-bouncer package post-installation script subprocess returned error exit status 1

this error prompt will persist for all future package installations on the os.

Hello,
since last version, there is only one package crowdsec-firewall-bouncer-{iptables,nftables}, so this issue should be avoided :+1:

This is the same issue I am having but I can not do your solution it says the old version nolonger is available replaced with iptables and


Why restrict A?

Why are you using the directive as an attribute? I think the same uibPager it would be logical to make the component or component directive, and its parameters of its attributes. And would like to see @ngdoc=) Thanks.

@kollors because that's how it was developed.  we are targeting 3.0 for forcing angular 1.5+ support and can talk about conversion to components then (and then restricting to elements).

I should mention that we would do this for ALL UIBS components, not just pager....if it wasn't clear before.

The reason it is restrict 'A' is to avoid potentially larger breaking changes due to the prior usage of replace: true. restrict: 'A' allows parity to be maintained, but restrict: 'E' adds an extra DOM element, which affects CSS.

Thanks


runtime: fatal "cannot allocate memory" throw in bgsweep goroutine (windows)

#!stacks
"runtime.bgsweep" && "runtime.newArenaMayUnlock:+6" && "runtime.throw"

Issue created by stacks.
I suspect this is another manifestation of #70445, but I thought I should report it since the call stack is completely different.
This stack F860lA was reported by telemetry:

crash/crash
runtime.throw:+9
runtime.newArenaMayUnlock:+6
runtime.newMarkBits:+22
runtime.(*sweepLocked).sweep:+185
runtime.sweepone:+37
runtime.bgsweep:+28
runtime.gcenable.gowrap1:+0
runtime.goexit:+0

<EMAIL_ADDRESS>go1.23.4 windows/amd64 vscode (1)

Related Issues

x/tools/gopls: OOM reported by fatal in runtime.mallocgc (windows) #70445 (closed)
runtime: fatal error: sweep increased allocation count go 1.10.1 windows/amd64 #24881 (closed)
runtime: sweep increased allocation count #19473 (closed)
runtime: fatal error: MSpanList_Remove #14831 (closed)
runtime: fatal: cannot map pages in arena address space #19514 (closed)
runtime/race: windows race out of memory allocating heap arena map #28497
runtime: fatal error: sweep increased allocation count #15762 (closed)
runtime: fatal error: sweep increased allocation count in go1.7 #16778 (closed)
runtime: "sweep increased allocation count" when using reflect.Call #21717 (closed)
runtime: an application using DLL crashes on windows #9885 (closed)

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)


No network access from container with 1.7 and Linux 4.0.5

Since I upgraded to 1.7.0, none of my containers can access the network.  I haven't modified any of my Docker configuration files, so I'm not sure what else to do.
I have rebooted the box to ensure that it wasn't iptables related.
I'll attach the requested Docker info in a second comment.
-> ping -c2 <IP_ADDRESS>
PING <IP_ADDRESS> (<IP_ADDRESS>) 56(84) bytes of data.
64 bytes from <IP_ADDRESS>: icmp_seq=1 ttl=54 time=24.0 ms
64 bytes from <IP_ADDRESS>: icmp_seq=2 ttl=54 time=23.9 ms

--- <IP_ADDRESS> ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 23.938/23.971/24.004/0.033 ms

-> docker run -it debian /bin/bash
root@37992e4fc610:/# ping -c2 <IP_ADDRESS>
PING <IP_ADDRESS> (<IP_ADDRESS>): 56 data bytes
--- <IP_ADDRESS> ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss

-> ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet <IP_ADDRESS>/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
11: eth0: <BROADCAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
    link/ether 02:42:c0:a8:32:05 brd ff:ff:ff:ff:ff:ff
    inet <IP_ADDRESS>/24 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::42:c0ff:fea8:3205/64 scope link
       valid_lft forever preferred_lft forever

Hi!
Please read this important information about creating issues.
If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
This is an automated, informational response.
Thank you.
For more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues

BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
docker version:
docker info:
uname -a:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
1.
2.
3.
 Also lsmod output would be helpful

iptables output
-> sudo iptables -L -t nat                                                          master!
  All works fine after a reboot.

:+1:
@dpgeekzero Having exactly the same problem. Reverted to both 1.6.2 (1.5 on my older machines) and everything started working.
Host can access every container and their services but I'm not able to ping any linked containers from another.

probably duplicate of #14073
WDYT @mrjana ?

@LK4D4 not sure at the moment. I did try Arch Linux with 4.0.5 kernel and did a simple test and everything seems to work fine. So it doesn't look like as simple as Arch Linux on 4.0.5 is fundamentally broken. Could be something to do with the user's other configurations. Will keep investigating

FYI: @mrjana Exact same behavior with Docker 1.7.1 on Linux 4.1.2-2-ARCH
Any further suggestions?

just dropping by because I had this exact same problem and just figured it out, maybe it's the same situation and I can help:
systemd-network has started setting forwarding to off for specific interfaces configured on it since 219/220, so setting sysctl net.ipv4.conf.all.forwarding=1 is not enough anymore, it will not work.
check sysctl net.ipv4.conf..forwarding, mine was set to 0
if you want systemd-network to keeps its paws off it, add IPForward=kernel on the interface.network definition file at /etc/systemd/network/
If it wasn't that... oh well, I guess it was just me, sorry!

@cles That seems to have fixed it!
Not sure why it matters what version of Docker I have installed, but when I set that value in my network definition file, docker 1.7 works!!
So, this appears to be a combination of Docker + systemd-networkd.

@dpgeekzero @cles I'm not very familiar with Systemd, but is this something that you think should be documented? Is this something that people might/will run into after a clean install of Docker?

I'd say so, yes, since this behavior it's the new default for systemd-network apparently. Whoever uses it and is on the bleeding edge (which is quite a good description for arch incidentally...) is going to get bit I think.
A note at https://docs.docker.com/installation/archlinux/ would've helped me quite, it was the first place I went to I'd say (outside of arch docs, that is)
I feel in an ideal world, docker would've set the flag for the specific ethernet interface... but as to how it finds out which interface that is, I've no clue, so perhaps competely unfeasible.

@cles would you be interested in contributing, and creating a pull request? The documentation is part of this repository (the page you referred to is here; https://github.com/docker/docker/blob/master/docs/installation/archlinux.md). That would be really great (and I'm afraid I'll mess up trying to describe what the steps are :wink:)

@thaJeztah oh didn't realize the docs were right here! Sure, I'll give it a shot tomorrow :smile:

@cles awesome, thanks in advance!

I'm getting this on the latest stable CoreOS 766.3.0.  But in my case, all the interfaces are set to forward.  I checked them.
And the networking is now otherwise working.

my docker container is not able to access internet with docker version 1.7 on redhat 6 and I try all IP forward rules and check all think it work fine the error is on aws redhat image.
[devops_admin@UAT-Matrix-DevOps-AP-1a ui]$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet <IP_ADDRESS>/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9001 qdisc pfifo_fast state UP qlen 1000
link/ether 02:79:f8:ad:dc:b2 brd ff:ff:ff:ff:ff:ff
inet <IP_ADDRESS>/24 brd <IP_ADDRESS> scope global eth0
inet6 fe80::79:f8ff:fead:dcb2/64 scope link
valid_lft forever preferred_lft forever
3: docker0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
link/ether 72:97:55:49:c6:ff brd ff:ff:ff:ff:ff:ff
inet <IP_ADDRESS>/16 scope global docker0
inet6 fe80::7097:55ff:fe49:c6ff/64 scope link
valid_lft forever preferred_lft forever
my docker0  setting is not up and i try to set all the thinks the ip forwarding rule is set to 1 but unable to get internet on my container not abel to ping
this is iptable rule for docker
sudo iptables -L -n
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
DOCKER     all  --  <IP_ADDRESS>/0            <IP_ADDRESS>/0
ACCEPT     all  --  <IP_ADDRESS>/0            <IP_ADDRESS>/0           ctstate RELATED,ESTABLISHED
ACCEPT     all  --  <IP_ADDRESS>/0            <IP_ADDRESS>/0
ACCEPT     all  --  <IP_ADDRESS>/0            <IP_ADDRESS>/0
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
Chain DOCKER (1 references)
target     prot opt source               destination
I am try on redhat 6  and docker version 1.7

my iptabels for nat
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
DOCKER     all  --  anywhere             anywhere            ADDRTYPE match dst-type LOCAL
Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
MASQUERADE  all  --  ip-172-17-0-0.ap-south-1.compute.internal/16  anywhere
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
DOCKER     all  --  anywhere            !loopback/8          ADDRTYPE match dst-type LOCAL
Chain DOCKER (2 references)
target     prot opt source               destination


add det+rec ckpt prediction pipeline

add dbnet+crnn ckpt inference
add ckpt predict pytest
Thank you for your contribution to the MindOCR repo.
Before submitting this PR, please make sure:

[x] You have read the Contributing Guidelines on pull requests
[x] Your code builds clean without any errors or warnings
[x] You are using approved terminology
[x] You have added unit tests

Motivation
Add detection+recognition end2end ckpt prediction pipeline. Documents will be added by another PR.
Test Plan
tests/st/test_predict.py will be improved later. Don't merge now.
Related Issues and PRs
(Is this PR part of a group of changes? Link the other relevant PRs and Issues here. Use https://help.github.com/en/articles/closing-issues-using-keywords for help on GitHub syntax)

test


Constant Contact API

Ideally, the script could interact with the Constant Contact API and automatically upload the new contacts instead of having to manually copy from the new workbook.
There is no official Python wrapper.

Whenever you decide to tackle this, highly recommend http://docs.python-requests.org/en/master/ - it'll cut down a lot of the boilerplate you have to deal with using Python's native libraries

Thanks, @jmr0. This is a generic wrapper for the Python HTTP libraries? I've seen it mentioned elsewhere so I'll definitely make use of it.
My desire to switch to MailChimp grows, though, because they have an official Python wrapper.

Correct. MailChimp seems like a solid product, but having a Python API shouldn't be the main reason to switch :)

https://community.constantcontact.com/t5/Documentation/Authentication-using-OAuth-2-0-Server-and-Client-Flows/ba-p/38313


Close method is not working

Hi !!!, i just started to use your module, everything is okey but when i try to close the server connection nothing happens, no error menssajes or output logs..., is this a bug ??
Here's an example of my code:
import asyncio
import websockets

async def echo(websocket):
    async for message in websocket:
        print(message)

        # if the message is equals to 'some' (it's just and example : D) we close the server
        if message == "some":
            await websocket.close()

async def main():
    async with websockets.serve(echo, "localhost", 8000):
        await asyncio.Future()  # run forever

asyncio.run(main())

Can you enable debug logs? https://websockets.readthedocs.io/en/stable/topics/logging.html?highlight=debug logs#configure-logging
Then you should get logs.

I don't have enough information to take action on this issue. Given the lack of updates in two months, I will close it.


can't install react-native-contacts-wrapper with pods

Hi,
I can't install react-native-contacts-wrapper with pods what other options I have to install this library in my project?
Thanks,
Lucas

feel free to install from my repo until merged
https://github.com/LynxITDigital/react-native-contacts-wrapper/pull/49

great working fine now ! thanks


Re-route views to the requested video

Is there an existing issue for this?

[X] I have searched the existing issues

I'm submitting a ...

[ ] bug report
[X] feature request
[ ] support request --> Contact me over mail for support https://github.com/MShawon

Description
Hello Monirul Shawon,
Firstly, really impressive project you have here. Thank you for sharing it with the community.
I was testing out the bot on some number of proxies and realized that sometimes it watches videos that aren't the requested one in the Search.txt or Url.txt
So, I was wondering if you could add a functionality, when a selected video doesn't have the same title of the requested one, then it would just search for the requested video title in the recommended section to the right, or just enter the Url from the Url.txt file.
This would solve the issue that many views are being lost on videos that aren't requested. Thank you very much kind sir.
Environment
- OS : Windows 10
- Python : 3.9.19
- Script version : 1.7.4

config.json
not applicable

Well from my testing it doesn't watch wrong videos and if it does in case it just closes the browser which can only happen after watching a given video playing successfully. Also it will play a random video from channel which may seem to you it's playing wrong video.


Playbook that simplifies data transfer using PDUU

Playbook request.
CICS customers often use PDUU to transfer large chunks of data sets to IBM to use for problem determination in cases of issues. This would be a great enhancement to the collection as it ensures the data is transferred correctly and it is hassle free for our customers.
User story
As an Ansible user, I am able to easily transfer large data sets to IBM for problem determination without worrying about how to split the data, compression or the transfer

This originally was requested of the IBM z/OS Core collection, in this issue.
After consideration and evaluation it was determined that this is better suited as a playbook demonstrating PDUU focusing on simplicity and streamlining the traditional terse --> upload --> unterse workflow.
There should be some time allocated to researching the playbook design so that it does simplify the usage of PDUU, please review the original git issue comments for added details.


[Issue] Inflating Codebase

In lib/constants.rb your comment about 0x00-1F in CP437 is not helpful not constructive.  The sheer disk space that this comment consumed is too much for most users to handle. Please, on behalf of the entire code golf community, remove this comment.

Look at v2 branch.


[BUG] Can not connect.

Everything was working until the computer was restarted. Nothing works after restart.

debug.log
2021-10-16T10:17:25.848 wallet wallet                     : INFO     Reconnecting to peer {'host': '<IP_ADDRESS>', 'port': 6888}
2021-10-16T10:17:25.864 daemon main                   : INFO     Register service {'service': 'flax_wallet'}
2021-10-16T10:17:25.864 daemon main                   : INFO     registered for service flax_wallet
2021-10-16T10:17:25.864 daemon main                   : INFO     {'success': True}
2021-10-16T10:17:26.294 farmer farmer_server              : INFO     Started listening on port: 6885
2021-10-16T10:17:26.295 farmer farmer                     : INFO     Started farmer service on network_id: mainnet
2021-10-16T10:17:26.295 farmer farmer                     : INFO     Reconnecting to peer {'host': '<IP_ADDRESS>', 'port': 6888}
2021-10-16T10:17:26.311 daemon main                   : INFO     Register service {'service': 'flax_farmer'}
2021-10-16T10:17:26.311 daemon main                   : INFO     registered for service flax_farmer
2021-10-16T10:17:26.311 daemon main                   : INFO     {'success': True}
2021-10-16T10:17:27.939 harvester harvester               : INFO     Reconnecting to peer {'host': '<IP_ADDRESS>', 'port': 6885}
2021-10-16T10:17:27.948 harvester harvester_server        : INFO     Connected with farmer {'host': '<IP_ADDRESS>', 'port': 6885}
2021-10-16T10:17:27.991 harvester flax.harvester.harvester: INFO     refresh_batch: loaded_plots 0, loaded_size 0.00 TiB, removed_plots 0, processed_plots 0, remaining_plots 0, duration: 0.00 seconds
2021-10-16T10:17:29.125 full_node flax.server.upnp        : INFO     UPnP failed. This is not required to run flax, it allows incoming connections from other peers.
2021-10-16T10:17:29.126 full_node flax.server.upnp        : INFO     Success
2021-10-16T10:17:46.831 wallet flax.wallet.wallet_node    : INFO     self._close
2021-10-16T10:17:46.831 wallet flax.wallet.wallet_node    : INFO     self._await_closed
2021-10-16T10:17:47.461 wallet flax.wallet.wallet_blockchain: INFO     Started 46 processes for block validation
2021-10-16T10:17:47.463 wallet flax.wallet.wallet_node    : INFO     Loop start in sync job
2021-10-16T10:17:58.888 wallet wallet                     : INFO     Reconnecting to peer {'host': '<IP_ADDRESS>', 'port': 6888}
2021-10-16T10:17:59.879 farmer farmer                     : INFO     Reconnecting to peer {'host': '<IP_ADDRESS>', 'port': 6888}
2021-10-16T10:18:32.908 wallet wallet                     : INFO     Reconnecting to peer {'host': '<IP_ADDRESS>', 'port': 6888}
2021-10-16T10:18:33.878 farmer farmer                     : INFO     Reconnecting to peer {'host': '<IP_ADDRESS>', 'port': 6888}
2021-10-16T10:19:06.896 wallet wallet                     : INFO     Reconnecting to peer {'host': '<IP_ADDRESS>', 'port': 6888}
2021-10-16T10:19:07.879 farmer farmer                     : INFO     Reconnecting to peer {'host': '<IP_ADDRESS>', 'port': 6888}
2021-10-16T10:19:28.143 harvester flax.harvester.harvester: INFO     refresh_batch: loaded_plots 0, loaded_size 0.00 TiB, removed_plots 0, processed_plots 0, remaining_plots 0, duration: 0.00 seconds
2021-10-16T10:19:40.908 wallet wallet                     : INFO     Reconnecting to peer {'host': '<IP_ADDRESS>', 'port': 6888}
2021-10-16T10:19:41.879 farmer farmer                     : INFO     Reconnecting to peer {'host': '<IP_ADDRESS>', 'port': 6888}
2021-10-16T10:20:14.900 wallet wallet                     : INFO     Reconnecting to peer {'host': '<IP_ADDRESS>', 'port': 6888}
2021-10-16T10:20:15.879 farmer farmer                     : INFO     Reconnecting to peer {'host': '<IP_ADDRESS>', 'port': 6888}

I have exactly the same problem. The Flex does not start.


HIVE-26949: Backport HIVE-26071 to branch-3

What changes were proposed in this pull request?

This PR backports HIVE-26071 pr https://github.com/apache/hive/pull/3233 to branch-3. No noticeable changes involved in the backports.
Why are the changes needed?

Does this PR introduce any user-facing change?

How was this patch tested?

new ut added as the original backport

The test failure looks unrelated. I triggered http://ci.hive.apache.org/job/hive-flaky-check/629/ to check if it is a flaky test.

I confirmed with the original PR and the backport looks good to me. +1 (pending tests)

Thanks @junlinzeng-db. Merged the PR.


Add region to bam.iobio

Discussion with Omicia led to the suggestion that we should be able to define chromosome and region and include in URL.

This already possible
http://bam.iobio.io/?bam=http://s3.amazonaws.com/iobio/NA12878/NA12878.autsome.bam&region=3:19584347-39646301


matrix-appservice-slack: 1.11.0 -> 2.0.1

Description of changes

Includes https://github.com/NixOS/nixpkgs/pull/194365
Supercedes #194622
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Waiting on https://github.com/NixOS/nixpkgs/pull/191129, since that makes packaging this a lot easier.

That's annoying, since I'm setting the pname and version myself anyway... but anyhow, fixed.

Please rebase, as the matrix-sdk-crypto-nodejs PR has been merged.


Installation instructions are outdated and incomplete

Installation instructions are incomplete in README.md. For example, there are no instructions on how to set up .env or the Slack app inside of Slack. These need updating. Could potentially put in INSTALL.md?

Closing because a PR was merged for this issue


[GSSoC'23] Memory Game ✔

Title - Memory Card Game
Issue Number - 696
Closes #696

@Shreyaar12 @admindebu @panwar8279 please review this pr. I have re-created the pr

Conflict problem not solved yet. Please resolve it


Apparent memory leak when calling python from rust

Nature of the bug: Values returned from python functions called from rust are not freed (refcount goes up but does not come down).
🌍 Environment

Your operating system and version: ubuntu 18.04
Your python version: 3.7
How did you install python (e.g. apt or pyenv)? Did you use a virtualenv?: pyenv
Your Rust version (rustc --version): rustc 1.50.0-nightly (349b3b324 2020-11-29)
Your PyO3 version: 0.13.2
Have you tried using latest PyO3 main (replace version = "0.x.y" with git = "https://github.com/PyO3/pyo3")?: no. I have rust-numpy in my dependencies and it turns on default-features including auto-initialize which prevents me from compiling.

💥 Reproducing
python code:
def get_py_obj():
    return object()

rust code:
pub fn leaks() -> PyResult<()> {
    let gil = Python::acquire_gil();
    let py = gil.python();
    let module = py.import("module")?;
    module.call_method1("get_py_obj", ())?;
    Ok(())
}

Calling leaks in a loop will grow memory usage unboundedly (the values I'm working with are much larger than empty objects so this becomes a problem very quickly). This example does nothing with the returned values because I found it wasn't necessary to reproduce the leak, but it also leaks if you use the value for something (e.g. return some property of it).
this formulation also leaks.
pub fn leaks() -> PyResult<()> {
    Python::with_gil(|py| {
        let module = py.import("module")?;
        module.call_method1("get_py_obj", ())?;
        Ok(())
    })
}

this too, along with a few other variations I tried just in case.
module.getattr("get_py_obj")?.call0()?;

a python variation that prints the refcount before and after the rust call (requires that you call leaks multiple times)
import sys
prev = None
def get_py_obj():
    global prev
    obj = object()
    if prev is not None:
        # subtract one for the argument to getrefcount per the documentation
        print("after passing through rust:", sys.getrefcount(prev) - 1) # should be 1 for the variable prev but is 2
    print("before passing through rust:", sys.getrefcount(obj) - 1) # 1 for the variable obj
    prev = obj
    return obj

I cannot reproduce this bug with Python 3.7.10 / pyo3 0.13.2 / rustc 1.53.0-nightly (07e0e2ec2 2021-03-24).  I also tried with your specific rustc nightly and that did not reproduce either.
I used only code from the issue (except for a fn main() that just calls leaks() in a a loop).
Are you sure you've minimized your test case properly?

One possible difference is that the entry point to my program is python.
Tomorrow I'll put together and end to end repro and test a rust entry point.
On Sun, Apr 11, 2021, 2:09 AM Georg Brandl @.***> wrote:

I cannot reproduce this bug with Python 3.7.10 / pyo3 0.13.2 / rustc
1.53.0-nightly (07e0e2ec2 2021-03-24). I also tried with your specific
rustc nightly and that did not reproduce either.
I used only code from the issue (except for a fn main() that just calls
leaks() in a a loop).
Are you sure you've minimized your test case properly?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/PyO3/pyo3/issues/1547#issuecomment-817275094, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAPCTEABIXHFHGMJ7LKNPBLTIFRMRANCNFSM42NV2MGQ
.

If your entry point is Python then #1556 sounds very similar. The repro would be very helpful, thank you!

Ok, I think #1556 does explain the issue. Ultimately it comes down to an oversight on my part (that a #[pyfunction] acquires the GIL even if it's not explicitly using it, a thing which I should have known since I use allow_threads in other places to avoid blocking other python code but didn't think about).
What was happening was, I was acquiring the GIL on crossing from python into rust, then inside the rust calling back into python in a loop. In each pass of the loop I was apparently acquiring and dropping the GIL, but those were no-ops because it was already acquired and therefor the reference counts were not decremented (because the GIL and its pool were still held) causing the apparent leak. Adding allow_threads seems to fix the issue.
I will say, it's a bit of a gotcha that reference counts aren't decremented until the GIL is properly dropped even if it appears dropped locally, and also that a pyfunction acquires the GIL even if it isn't using it.

You're right, it is definitely unexpected.  The guide kind-of mentions it in "Advanced topics", but it is far from obvious.