Question re filename

Sorry, I don't have a hashnode account and don't particularly want to create one so thought I'd ask here. It's just a really simple question, what does the abs in your filenames stand for? E.g. view_model.abs.dart

Hi there, @andye2004, not a problem. As described in the README, .abs is a naming convention I created to identify files that only contain abstract classes (interfaces), so we can remove them from code coverage. Hope that helps, thanks


Improve markdown docu

Nowhere in the documentation of "Markdown edition" is mentioned how to suppress the removal of trailing whitespace, which is necessary to create a simple line break. Considering the size of the docu, it would be very, very helpful to mention it somewhere on page instead of expecting users to know by heart that there is a "files" available for that.
Please mention it somewhere, here is a suggestion:
Removing trailing white space in markdown files only
In order to create a simple line break, markdown requires you to add two empty spaces at the and of the line. Usually, VSCode removes trailing whitespace. In order to tell VSCode to not remove trailing whitespace in markdown files ony, you can add these lines to your settings.json:
{
  "[markdown]": {
    "files.trimTrailingWhitespace": false
  }
}

Our markdown docs are all hosted here. Do you want to submit addition as a PR against that repo?

@mjbvz Thanks! PR done.


= 0.14.0 version run failed

Hi @beiliubei
It seems like it's happening due to version constraints we put in place to avoid enforcing newer compileSdk versions (inherited from the OTel Android SDK) on host projects as part of the switch from OTel Java to OTel Android.
It's been a while since that switch took place, so I believe we can remove the version constraints now without causing issues to several projects. Thank you for your feedback. I'm planning to release a new version this week with the constraints removed.

Hi @beiliubei
Version 0.16.0 is now available. It should contain a fix for the version constraint. Please feel free to reopen this issue if you still see it there!
Thank you for your patience.

@LikeTheSalad
It's working. Thank you for the timely handling.
By the way, when upgrade from 0.13.0 to 0.16.0, I have to enable the isCoreLibraryDesugaringEnabled in the compileOptions and add the dependecy coreLibraryDesugaring(libs.desugar.jdk.libs)
https://developer.android.com/studio/write/java8-support.html

Hi @beiliubei
The enabling of desugaring requirement has been present for apps with minSdk < 26 since the beginning, however, in version 0.14.0 we made the requirement more explicit after extending OTel Android, which enables it transitively.
The reason desugaring is needed is because OTel Java, which is the core of this project, uses Java 8 tools that aren't available in Android versions below 8, so if your app targets those versions of Android, not enabling desugaring can cause your app to crash in those old versions due to classes or methods not found at runtime.


refactor: remove styles from slidem-slide-base

Users that extend slidem-slide-base should be able to apply their own styles and DOM without having to cascade over slidem's styles.
There are different ways to accomplish content scaling than the one used in slidem-slide, so let's give users the choice by moving the constructed stylesheet from base to slidem-slide

I originally designed the separation between slidem-slide-base and slidem-slide based on this reasoning;
Slidem-slide
Should contain only things that are additional features to style text and make basic slides using HTML only. The main functionality is enabling basic layout and styling through attributes of specific child elements. It is meant to provide an "easy" way to quickly make a slide without having to touch any CSS, so a user can quickly make a deck with nothing but an HTML file.
Slidem-slide-base
Contains all the fundamental things that are required to make slides work. This includes slide-specific behaviours like steps. The main reason it contains some styles, is that the zoom animation is really difficult to implement from the slidem-deck, and it relies on some HTML structure and layout in slidem-slide-base. Another reason is that it was difficult to implement the automatic scaling of slides without having some sort of container for the slide content. Currently this container is created in slidem-slide-base, and the relevant styles also live there. If I remember correctly the main issue is that if a slide doesn't have a container for the content like it does currently, you cannot simultaneously have a fullscreen background while scaling the content.

I consider the zoom animation and the automatic scaling of content to be core functionalities of Slidem, and unfortunately the only way I was able to implement them is by enforcing a bit of structure in slidem-slide-base. If you can find a way to implement the zoom animation and the scaling in slidem-deck, and make it work completely agnostic of the html structure of the slides, then that opens a possibility of removing the styles from slidem-slide-base.

it's not that slidem's solution is bad, it's just that sometimes an author wants to bring their own. So i'm not advocating to remove the current solution, just to give authors an escape hatch in case they have special needs.

to clarify the intent here: for regular users nothing should change they would still import deck and slide and get the same behavior that they have now.
But "advanced" or "escape hatch" users would get a DOM-less experience, at least as far as slide is concerned. We should consider the possibility of providing a DOM-less base deck as well.
Wherever the base class is coupled to the DOM, we can provide overridable getters, or some default configuration.

I understand, and I think we're in agreement here. I just don't have an idea on how to facilitate this from a technical point of view, other than just exposing more internals.
If you have a proposal on how to implement this change I'm happy to take a look


Longest Bitonic Subsequence (Java, DP)

💥 Proposal
In Longest Bitonic Subsequence problem we have given an array containing n positive integers, a subsequence of array is called Bitonic if it is first increasing, then decreasing. We have to write a function that takes an array as argument and returns the length of the longest bitonic subsequence.
I will implement this subsequence problem by following dynamic approach with java.
Have you read the Contributing Guidelines on Pull Requests?
Yes,  I have read the guidelines.

/assign


Link Home Route to Company Logo Click

https://github.com/RutikKulkarni/ReferralNetworkHub/assets/128450641/6bd1a13e-d4cd-4147-8a55-9363601a9aca
In our project, we currently lack the functionality to navigate to the home page ("/ route") when users click on the company logo. This feature is crucial for improving user experience and ensuring consistent navigation throughout the application. By linking the home route to the company logo, users can easily return to the main page from any part of the application, enhancing usability and intuitiveness.
To address this issue, we need to implement a mechanism that detects clicks on the company logo and redirects users to the home route ("/"). This enhancement will streamline navigation and provide a more cohesive user experience across the application.

Screen.Recording.2024-06-16.at.3.08.53.PM.mov
In our project, we currently lack the functionality to navigate to the home page ("/ route") when users click on the company logo. This feature is crucial for improving user experience and ensuring consistent navigation throughout the application. By linking the home route to the company logo, users can easily return to the main page from any part of the application, enhancing usability and intuitiveness.
To address this issue, we need to implement a mechanism that detects clicks on the company logo and redirects users to the home route ("/"). This enhancement will streamline navigation and provide a more cohesive user experience across the application.

Hi, Thank you for highlighting this important aspect of navigation in our project. We understand the significance of linking the company logo to the home page to enhance user experience and ensure consistent navigation.
We are planning to implement this feature in a slightly different way. For logged-in users, the home page will be an "Explore" page, providing a personalized experience. For users who are not logged in, the current home page will remain as it is.
We are currently working on the Figma design for the Explore page, and once that is finalized, we will begin development. This is the reason why the navigation to the home page via the company logo has not been implemented yet.
Thank you for your understanding and patience as we work on these enhancements.

ok no issue


[set_openstack_containers] filter os containers based on prefix

Openstack operators got the support for disconnected environment. It changes the openstack services container url to use sha instead of tag.
It breaks the set_openstack_containers role as we were filtering the containers based on tags.
With this pr, it removes the filter var and replace it with image prefix and also allow user to use the image prefix in the image name.
As a pull request owner and reviewers, I checked that:

[x] Appropriate testing is done and actually running

/approve

testprooject results:
https://logserver.rdoproject.org/11/50511/3/check/periodic-podified-multinode-edpm-deployment-antelope-ocp-crc-cs9/cb68e32/controller/ci-framework-data/artifacts/operator_env.txt

/lgtm
thanks Chandan


data/ucf/frames.json missing?

Prerequisite

[X] I have searched the existing and past issues but cannot get the expected help.
[X] I have read the FAQ documentation but cannot get the expected help.
[X] The bug has not been fixed in the latest version.

🐞 Describe the bug
Many thanks for releasing the annotations in CCTV-Gun, this is very realistic data with high-quality labels. Unfortunately, I am having trouble with the instructions for the UCF dataset:
following the instructions for downloading the UCF dataset and running python3 scripts/copy_images_ucf.py produces the error
FileNotFoundError: [Errno 2] No such file or directory: 'data/ucf/frames.json'
frames.json appears to be missing from the repository. What is the correct way to obtain it?
Environment
------------------- --------
contourpy           1.0.7
cycler              0.11.0
fonttools           4.39.2
importlib-resources 5.12.0
kiwisolver          1.4.4
matplotlib          3.7.1
numpy               1.24.2
opencv-python       <IP_ADDRESS>
packaging           23.0
Pillow              9.4.0
pip                 22.0.4
pyparsing           3.0.9
python-dateutil     2.8.2
setuptools          58.1.0
six                 1.16.0
zipp                3.15.0

Additional information
No response

Hi Paul, the file should be available now

Thanks! It's working now.


Flame comics HTTP 404

Source information
Flame comics 1.4.34
Source language
English
Source new URL
https://flamecomics.xyz/
Other details
No response
Acknowledgements

[X] I have updated all installed extensions.
[X] I have opened WebView and checked that the source URL has not changed yet.
[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] I will fill out all of the requested information in this form.

Add a :+1: reaction to issues you find important.

The error is still there. The chapters are not present in the application.


Add examples and update the documentation for reading and writing data directly from Hbase.

Recently many users are asked about how to read/write the data in Hbase if the data is handled through Astro.The below two examples with documentation should solve this issue.

How to write data directly to Hbase and read from Astro.
How to read the data from Hbase if data is inserted from Astro.

Please give your comments

thanks for your summarizing it

Added new PR https://github.com/HuaweiBigData/astro/pull/15


TF-8903/add-m-prefix-to-calc-pages

Ticket(s)

8903

Type of change

[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Description
This PR updates the results.tsx component by changing the slug names for the current calculator pages to include 'm' for misdemeanor. I had updated all of the slug names except for the 'head' in Sanity, and those changes are live @ https://review.clearviction.org, and also in the preview deploy. However I did not run the CURL command to deploy the changes to main because the Download Results component needed to be simultaneously changed.
Those changes WILL go live the next time main is re-deployed, and that should work out to be the next time staging is merged into main, including this PR.
Screenshots

Checklist:

[x] I have performed a self-review of my own code
[x] My changes generate no new warnings in the console
[x] There are no new linting errors/problems in my code
[x] I have filled this PR out fully, and cleaned up any extraneous items so that it is clear and easy to understand

@LeoFuna to be honest, I am not sure that this entire component is done in the best way possible. This content is ALREADY in Sanity, each as part of a calculator page, in the block content section, or the name is the slug. It feels redundant to copy it into a content file, because it won't be moved into Sanity in duplicate either. This entire results component will need to be redone anyways when the felony calculator is implemented, since this is only coded for the misdemeanor, and I think at that time it might be more appropriate to consider a fully more thought out and dynamic approach.

@LeoFuna to be honest, I am not sure that this entire component is done in the best way possible. This content is ALREADY in Sanity, each as part of a calculator page, in the block content section, or the name is the slug. It feels redundant to copy it into a content file, because it won't be moved into Sanity in duplicate either. This entire results component will need to be redone anyways when the felony calculator is implemented, since this is only coded for the misdemeanor, and I think at that time it might be more appropriate to consider a fully more thought out and dynamic approach.

Hum, got this! Yeah, so makes no sense add this in a content file.
Thx for that clarification @e-papanicolas


Won't work if component properties are in camelCase

Just change the name of any property in your demo application, for example, replace first ->>> firstR, and that property will not be bound to the DOM properly.

Solved it.
The problem is in lit-html templating library.
In order to bind to property, you need to prefix it with ..
Example:
[13:09] Vladimir Jovanovic
    example
[13:09] Vladimir Jovanovic
    const Template = (
  {
    modifier,
    firstR,
    middle,
    last,
    hex,
  }) => html`
  <my-component
    style="color:${hex}"
    modifier="${modifier}"
    .firstR="${firstR}"
    middle="${middle}"
    last="${last}">
  </my-component>
  ${action('my-component', costumEvents)}
`;


Clean facebook attributes

As a...
As a member of the data analysis team
Wants to...
Have cleaned and standardized scraped data
So that...
Focus on the data analysis models instead of cleaning the data
Acceptance Criteria

[ ] Figure out all possible attribute fields
[ ] Use regex to extract the useful info and standardize its format

Resources
This website could be useful in figuring out possible attributes

[ ] body style
[x] condition
[x] exterior color
[x] interior color
[x] fuel type
[x] mileage(odometer)
[x] transmission
[ ] vin
[x] safety rating
[x] mpg

[x] city
[x] highway
[x] combined

[x] title


Change Log for 1.2

@sascala Can you have a look? This will be the release notes for 1.2

I made some light edits, @aquamatthias

@sascala Thank you!

Two comments, even though this is already merged:

We also added support for Docker USER networking.
The "service ports must be unique" validation fix could be seen as a breaking change.


Improvecentrality should be aware of system resources

The script currently consumes about 400 MB per CPU core, on high-core systems this may exceed available memory.
The script should check the available memory and cores and make an intelligent choice about how much to use.

Can now specify [Other] threads = n in the configuration file


Add HeadStart International School Phuket to JetBrains SWOT

This pull request adds HeadStart International School Phuket to the JetBrains SWOT repository to enable students and faculty members to request free JetBrains licenses.
Institution/School Name: HeadStart International School Phuket
Institution/School Website: https://headstartphuket.com
Proof of Official Email Domain: URL or attachment showing @headstartphuket.com is an official email domain for enrolled students
HeadStart International School Phuket offers a curriculum that includes IT-related classes, qualifying it for inclusion in the JetBrains SWOT repository. This addition will support the educational efforts of students and staff by providing access to JetBrains' suite of development tools.

@JuliaMoon1 First stage of verification passed, official domain is headstartphuket.com as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@JuliaMoon1 I have to close this request without merging, because you requested to add a non-existent domain to this repository: Host headstartphuket.edu not found: 3(NXDOMAIN) Please ensure that you are familiar with this repository rules located at the bottom of this page and submit a new request with the correct information. Thank you for your understanding!

@philipto thank you for your review and comments above, the wrong subdomain eduwas deleted and a new pr #20354 was created with the correct information, please have a look. Thank you


isFeatureEnabled API

Feature flag & Rollout models parsing & Feature flag & rollout bucket decision
commits will be removed once their PRs approved

P.R. #207 is for OASIS-1842 [Objective-C] isFeatureEnabled API .

37 XCODE ANALYZE WARNINGS DETECTED
Xcode Clean / Build / Analyze the OptimizelySDKiOS / "iPhone X" .
The "master" branch currently generates ZERO compiler warnings (green check mark,
"No Issues"). However, P.R. #205 branch "oakbani:arafay/feature-flag-&-rollout-parsing"
is currently generating 37 Xcode Analyze warnings.
We ought to keep Xcode Clean / Build / Analyze the OptimizelySDKiOS / "iPhone X"
at ZERO Xcode Analyze warnings if possible. Can you take a look and fix these warnings?
A similar more detailed comment was put on P.R. #205 (https://github.com/optimizely/objective-c-sdk/pull/205).

P.R. #207 depends on P.R. #205 and P.R. #206
P.R. #205 = OASIS-1847 Feature variable APIs
"Feature flags & rollout parsing" commit (poorly named?)
P.R. #206 = OASIS-1838 Feature flags and rollouts (includes P.R. #205 commit)
+ "Feature flag & rollout bucketing decision" commit
P.R. #207 = OASIS-1842 isFeatureEnabled (includes P.R. #205 and P.R. #206 commits)
+ "isFeatureEnabled API" commit
+ "Fixed crash with nil check of completion block" commit
Therefore, P.R. #205 and P.R. #206 will need approval first.


Does LIBSPDM supports Key schedule process?

I see it supports KEY_EXCHANGE, KEY_UPDATE etc. What about Key schedule?

It does support the DMTF key schedule, which is modeled on TLS 1.3.

Does Key exchange process covers the key schedule?

Yes that is how all the symmetric keys are derived from the shared secret.


doc: boards: Fix typo in Arduino Giga R1 note directive

Fix a minor typo causing Sphinx note to not render.
Note now shows correctly as per https://builds.zephyrproject.io/zephyr/pr/63163/docs/boards/arm/arduino_giga_r1/doc/index.html#fetch-binary-blobs

Thanks!


Fix button debounce code.

Fixes a small omission which was making the button debounce code non-functional.

Good catch. I think this is good to merge.


zerotierone: 1.8.4 -> 1.8.9

Description of changes
ZerotierOne hasn't been refreshed in Nixpkgs for quite a while, and the updates since then promise some serious connection stability improvements.
Note that meanwhile ZerotierOne also grew SSO support written in Rust, so the change has to reflect that. I also took this opportunity to get rid of rec in the derivation.
Things done

Built on platform(s)

[v ] 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

[ ] 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
[ v] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 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

[ ] Fits CONTRIBUTING.md.

Thanks for cleaning this up a bit as well :)

Ofborg is complaining about missing passthru tests (or something like it). Could you check that?

Ofborg is indeed correct that nobody bothered to write unit tests for this package yet, and deems that worthy of a warning :man_shrugging:

Oh it's unfree, never mind :)


updated sm-development tutorial

changed scripts
moved uploading topics from files.
added publishing to SM Hub.

bors r+


Generate all contact bindings automatically

Previously, only Autonity and Liquid contracts had bindings that were manually maintained. With the new pyabigen tool, we can now generate bindings for all contracts starting from the Tiber upgrade.
This will add new bindings for:

Accountability
ACU
Inflation Controller
Liquid Logic
Omission Accountability
Oracle
Stabilization
Supply Control
Upgrade Manager

However, this will break the interface for the Autonity bindings.

Resolved by #59.


Introduction of concepts for next-generation call resolving

This PR tries to implement the initial concepts described in #704 and also migrates the resolving of regular function calls to the new system.
Fixes #406
Fixes #1498
Fixes #1497

Did you check if this PR fixes #1045?

Did you check if this PR fixes #1045?

I theory yes, in practice this still fails because of #194, which we probably should fix first then.

Did you check if this PR fixes #1045?

I theory yes, in practice this still fails because of #194 because the function definition and declaration are not connected and both end up as candidates and we therefore think this is a problematic result :(

After #1484, this now also fixes #1045, at least for the case where the stdlib is included. Otherwise we cannot know that size_t is an integer and it will not match.

@KuechA I will wait until next week to merge this after @maximiliankaul  and @konradweiss are back for some more discussions. It is important to get the concepts correct this time.


Fix bugs, codebase improvements, misc

This pull request does a lot of things, such as:

Fix crash caused by togglewin() in awesomebar patch
Fix crash in alt tab functions caused by invalid colormap
Remove object files and dwm binary and add them along with config.h to .gitignore (good practice!)
Move shiftview to dwm.c
Move all separate layouts to layouts.c
Include layouts.c in dwm.c and not config.def.h
Remove dmenumon array

Now merged with upstream. Will also add .gitignore on other folders.


[incubator-kie-issues-1131] test migration from V7 to code generation-5

In addition to previous changes associated,
migrated some BPMN processes which are being compiled using legacy v7 to code generation approach, using new branch incubator-kie-issues-1131-5
The tests can be identified by referring to Activitytest.java:
https://github.com/apache/incubator-kie-kogito-runtimes/blob/main/jbpm/jbpm-tests/src/test/java/org/jbpm/bpmn2/ActivityTest.java
Closes https://github.com/apache/incubator-kie-issues/issues/1131.

@Abhitocode plz fix the conflict

PR job #5 was: UNSTABLE
Possible explanation: This should be test failures

Reproducer
build-chain build full_downstream  -f 'https://raw.githubusercontent.com/${AUTHOR:apache}/incubator-kie-kogito-pipelines/${BRANCH:main}/.ci/buildchain-config-pr-cdb.yaml' -o 'bc' -p apache/incubator-kie-kogito-runtimes -u https://github.com/apache/incubator-kie-kogito-runtimes/pull/3559 --skipParallelCheckout
NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution

Please look here: https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest_jobs/job/kogito-runtimes-pr/job/PR-3559/5/display/redirect
Test results:

PASSED: 2853
FAILED: 1

Those are the test failures:

io.quarkus.it.kogito.devmode.DevMojoIT.testDRLHotReload
Condition with io.quarkus.it.kogito.devmode.DevMojoIT was not fulfilled within 2 minutes.

@martinweiler or @pefernan do you mind to have a look


site: fix kubectl command of tasks example

What type of PR is this?
/kind documentation

What this PR does / why we need it:
The example pod yaml in running plain pod has a generated name, which should use kubectl create instead of kubectl apply to execute.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?

NONE

/cherry-pick website


compatibility with non-standard zip formats

I have an old zip file that may not have been created following the standard specifications. When I use SharpCompress to decompress it, the backslash character is merged with the file name, causing the extracted files to have incorrect paths, such as "/home/test/storage\first\error.jpg". I need to use code like this to solve the problem. I wonder if there has been any consideration for compatibility with non-standard zip formats.

    var opts = new ReaderOptions();
    var encoding = Encoding.GetEncoding(936);
    opts.ArchiveEncoding = new ArchiveEncoding
    {
        CustomDecoder = (data, x, y) =>
    {
        return encoding.GetString(data);
    }
    };
    var archive = ZipArchive.Open(archiveFilePath, opts);
    foreach (var entry in archive.Entries.Where(entry => !entry.IsDirectory))
    {
        string? fileName = entry.Key;
        string updatedPath = fileName.Replace('\\', '/');
        string filePath = Path.Combine(outputDirectoryPath, updatedPath);
        if (!Directory.Exists(Path.GetDirectoryName(filePath)))
        {
            Directory.CreateDirectory(Path.GetDirectoryName(filePath));
        }
        entry.WriteToFile(filePath);
    }

the slashes are just the key name and is OS independent really.  The Path.Separator should be OS specific and could be used to figure that out but not everyone wants the keys to be automatically converted.

In Linux, the 'storage\first\error.jpg' in a non-standard zip file is considered to be a filename without a path. Even if you use Path.Combine to combine entry.Key with the path, it will not correct this error.


Old screen transitions are used on Android API 28

Here's what a slowed down version of an activity transition looks like on Android API 27. It's a slide up + fade in animation:

After #13736 is fixed (or using MaterialPageRoute.debugEnableFadingRoutes = true), this should match Flutter's current behavior.
However, API 28 uses a different transition. It's a reveal + more subtle slide up animation:

MaterialPageRoute should use a transition that is consistent with the API level.

Please add the output of flutter doctor -v.

Here's the output:
[✓] Flutter (Channel beta, v0.6.0, on Mac OS X 10.13.6 17G65, locale en-CA)
    • Flutter version 0.6.0 at /Users/noel/dev/flutter
    • Framework revision 9299c02cf7 (2 weeks ago), 2018-08-16 00:35:12 +0200
    • Engine revision e3687f70c7
    • Dart version 2.1.0-dev.0.0.flutter-be6309690f

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.2)
    • Android SDK at /usr/local/share/android-sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.2
    • ANDROID_HOME = /usr/local/share/android-sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.4.1, Build version 9F2000
    • ios-deploy 1.9.2
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 27.1.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] IntelliJ IDEA Ultimate Edition (version 2018.2.2)
    • IntelliJ at /Users/noel/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 27.1.3
    • Dart plugin version 182.4129.13

[✓] Connected devices (1 available)
    • Android SDK built for x86 64 • emulator-5554 • android-x64 • Android 9 (API 28) (emulator)

• No issues found!

Though, these gifs are screen recordings of the vanilla messaging app from the Android emulator.

Should be this closed as a result of #21715?

@HansMuller ?

@zeochi: thanks for the reminder. Support for Android P transitions was added in #21715.
I'm going to close this issue.


Have an alternative "buy me a coffee" service

I tried yours and it said my VISA card is "Not Supported"...
Perhaps buymeacoffee.com which works with PayPal, or something else that does.

Thank you for trying to buy me a coffee. Sorry the Monzo option didn't work (I didn't realise it only works with cards from certain countries).
I've switched the link to buymeacoffee.com now.
Thanks again :raised_hands:


Compilation error building elm/core 1.0.5

I've found that elm/core 1.0.5 does not compile on my machine running NixOS. I have to rollback to 1.0.4 every time, due to this issue. It doesn't seem to matter where elm is installed from, the nix package manager or downloading the binary directly.
Here are the logs of an attempt to compile:
$ elm make src/Main.elm
Dependency problem!
-- PROBLEM BUILDING DEPENDENCIES -----------------------------------------------

I ran into a compilation error when trying to build the following package:

    elm/core 1.0.5

This probably means it has package constraints that are too wide. It may be
possible to tweak your elm.json to avoid the root problem as a stopgap. Head
over to https://elm-lang.org/community to get help figuring out how to take this
path!

Note: To help with the root problem, please report this to the package author
along with the following information:

If you want to help out even more, try building the package locally. That should
give you much more specific information about why this package is failing to
build, which will in turn make it easier for the package author to fix it!

How to reproduce:
Just the standard elm project setup -

Make new directory
elm init and type Y to create elm.json
Add src/Main.elm with quick sample code in elm guide.
Compile failes on elm make or via elm reactor etc.

Please let me know any more information I can provide.

I tried nix-shell -p elmPackages.elm, following the instructions you gave, and get
[nix-shell:~/elm-test]$ elm make src/Main.elm
Success! Compiled 1 module.

    Main ───> index.html

I had to add module Main exposing(..) at the top of the Main.elm as it was missing from the example code, but that's all.
This is on a fairly recent nixos-unstable commit.

It does fail in elm repl as well. The repl loads fine, but also shows the above elm-core compilation error when attempting something like 1+2 etc, and after changing back to 1.0.4 everything seems to work as expected.

My setup:

➜ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.32, NixOS, 22.05 (Quokka), 22.05pre367572.b6966d911da`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.7.0`
 - channels(sri): `"nixos"`
 - channels(root): `"nixos-22.05pre367572.b6966d911da"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`


MSAL Angular 1.0 beta

PR to merge my work so far for MSAL Angular. Future PRs will be done to dev.
Includes work done in:

#1255
#1251
#1232
#1291

Coverage increased (+0.2%) to 73.02% when pulling c06c8606cadcda782c8b9ab71e9e2ba515efa6ba on dev-angular-1.0 into b6b80bfc2369040424d7475bec8c6c323dfa093d on dev.

Very large pr, can you point out the pieces you need review on?

LGTM<


[suggestion] Make the plugin work without needing transparent background

First of, I love this plugin. It's amazing. The only issue for me is that due to eyesight, I struggle a bit to properly read the chat when it's not a static background.
I would love it it could work without needing it as well if possible :)
Thanks for your time!

Will be implemented with https://github.com/runelite/plugin-hub/pull/6248


Unicorn: UniSize improvements

The UniSize class should probably implement IEquatable<UniSize>
The extension methods Unicorn.Writer.Extensions.UniSizeExtensions.ToPdfRectangle() can be made more efficient by caching its results.

Closed without implementing caching for ToPdfRectangle() - no real evidence what the best course of action would be


Authentication/Authorization for default resolvers

Hi,
I read the description on how to use @login_required and other decorators with resolvers. However, if one is not using explicit resolvers (instead using default ones), how can one enforce similar access controls?
In my case, I am using graphene with the Django User model. I have the following:
class UserNode(DjangoObjectType):
    class Meta:
        model = User
        filter_fields = ['first_name', 'last_name', 'id', 'email']
        interfaces = (Node, )

class Query(object):
    userNode = relay.Node.Field(UserNode)
    all_users = DjangoConnectionField(UserNode)

If I explicitly define a 'resolve_all_users' method and use the @login_required decorator on it, it works fine. But this (and other objects) in my schema are relying on default resolvers. How can I protect them without having to define resolvers explicitly?
I admit to being a novice in the use of graphene/graphql......and any help pointing me in the right direction is much appreciated.

@amreshprasad ask in https://stackoverflow.com/. I'm also interested.

@amreshprasad done: https://stackoverflow.com/questions/52523234/authentication-authorization-for-default-resolvers

@AlonsoEnrique Thanks.

@mongkok The fact that you added the enhancement label - does it mean that there is no way to achieve this currently other than by explicitly defining the resolvers?

One way to bundle your resolvers is to protect the Type by the parent:
class Container:
  def __init__(self, **kwargs):
    for k, v in kwargs.items():
      setattr(self, k, v)

class BType(graphene.ObjectType)
  a = graphene.String()
  b = graphene.String()

class AType(graphene.ObjectType):
  c = graphene.Field(BType)

  @login_required
  def resolve_c(self, info, **kwargs):
    return Container(a="a", b="b")

class Query(graphene.ObjectType):
  protected = graphene.Field(AType)
  unprotected = graphene.Field(BType)

  def resolve_protected(self, info, **kwargs):
    return Container()

  def resolve_unprotected(self, info, **kwargs):
    return Container(a="a", b="b")

The idea is, to generate only through parents access to child resolvers
This will raise if the user is not authenticated: {protected { c {a b} }}
But this will work: {unprotected { a b } }

@amreshprasad @AlonsoEnrique, Heres one way to ensure all fields for a given ObjectType are restricted to authenticated users.
If you take a look at where DjangoObjectType is defined in the source code you see that DjangoObjectType inherits from ObjectType. One of the Meta attributes for ObjectType is default_resolver.
Just so you know, here's how Graphene defines its default resolver:
def attr_resolver(attname, default_value, root, info, **args):
     return getattr(root, attname, default_value)

Reading the decorator docs explains that login_required just checks that the current user is logged in (or authenticated).
Also, important to note: info.context is our Django request object.
Putting that all together we can define a custom resolver and apply it to our DjangoObjectType.
from graphql_jwt.exceptions import PermissionDenied

def auth_resolver(attname, default_value, root, info, **args):
    if info.context.user.is_authenticated:
        return getattr(root, attname, default_value)
    raise PermissionDenied()

class UserNode(DjangoObjectType):
    class Meta:
        model = User
        filter_fields = ['first_name', 'last_name', 'id', 'email']
        interfaces = (Node, )
        default_resolver = auth_resolver

As long as you set up django-graphql-jwt correctly, passing in a valid token will set the user object in info.context, and this method should work.

I think this is a good proposal:
https://github.com/graphql-python/graphene/pull/846
I close the issue.


[Enhancement] Support query dump for materialized view

To support query dump which query's table may contain mv, I did the changes:

Add "``" for output columns of Materialized View because mv's column may contain complex expressions (eg, bitmap_union();
Only add dump info into QueryDumpInfo only when it's from HTTP query dump or enable_query_dump is true;
When adding mv into dump info,  optimize the mv again because tables in query may be only a part of mv, and mv may contain other unique/foreign constraints in its properties.
Make the tableMap   in QueryDumpInfo ordered by the insert time because MV's replay needs the basic tables are created.
Mock some places to support MVs with external tables.

To support dump mv on mv queries, I added two invisible session variables:

query_excluding_mv_names indicates Query's candidate mvs should exculde.
query_including_mv_names indicates Query's candidate mvs should include.

I added three cases:

normal SR tables with MV;

normal SR tables with MV on MV;

external Hive Tables with MV;

What type of PR is this:

[ ] BugFix
[ ] Feature
[x] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Checklist:

[x] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto-backported to the target branch

[x] 3.1
[ ] 3.0
[ ] 2.5
[ ] 2.4

[FE PR Coverage Check]
:heart_eyes: pass : 79 / 97 (81.44%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/connector/hudi/HudiMetadata.java
0
4
00.00%
[173, 174, 175, 176]

:large_blue_circle:
com/starrocks/http/rest/QueryDumpAction.java
0
1
00.00%
[92]

:large_blue_circle:
com/starrocks/sql/optimizer/rule/transformation/materialization/MvUtils.java
0
1
00.00%
[329]

:large_blue_circle:
com/starrocks/http/HttpServerHandler.java
0
2
00.00%
[119, 120]

:large_blue_circle:
com/starrocks/qe/StmtExecutor.java
3
8
37.50%
[404, 405, 407, 409, 696]

:large_blue_circle:
com/starrocks/qe/ConnectContext.java
3
7
42.86%
[249, 553, 554, 557]

:large_blue_circle:
com/starrocks/sql/optimizer/rule/transformation/materialization/MaterializedViewRewriter.java
5
6
83.33%
[680]

:large_blue_circle:
com/starrocks/catalog/MaterializedView.java
3
3
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/MvRewritePreprocessor.java
18
18
100.00%
[]

:large_blue_circle:
com/starrocks/connector/hive/HiveMetadata.java
7
7
100.00%
[]

:large_blue_circle:
com/starrocks/sql/analyzer/InsertAnalyzer.java
2
2
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/rewrite/OptExternalPartitionPruner.java
3
3
100.00%
[]

:large_blue_circle:
com/starrocks/server/CatalogMgr.java
6
6
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/statistics/StatisticsCalculator.java
2
2
100.00%
[]

:large_blue_circle:
com/starrocks/sql/analyzer/QueryAnalyzer.java
17
17
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/statistics/StatisticsCalcUtils.java
3
3
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/dump/QueryDumpInfo.java
4
4
100.00%
[]

:large_blue_circle:
com/starrocks/server/GlobalStateMgr.java
1
1
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/MaterializedViewOptimizer.java
1
1
100.00%
[]

:large_blue_circle:
com/starrocks/sql/analyzer/MaterializedViewAnalyzer.java
1
1
100.00%
[]

[FE PR Coverage Check]
:disappointed: fail : 81 / 104 (77.88%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/connector/hudi/HudiMetadata.java
0
4
00.00%
[173, 174, 175, 176]

:large_blue_circle:
com/starrocks/http/rest/QueryDumpAction.java
0
1
00.00%
[92]

:large_blue_circle:
com/starrocks/sql/optimizer/rule/transformation/materialization/MvUtils.java
0
1
00.00%
[329]

:large_blue_circle:
com/starrocks/http/HttpServerHandler.java
0
5
00.00%
[122, 123, 124, 125, 127]

:large_blue_circle:
com/starrocks/qe/StmtExecutor.java
3
8
37.50%
[404, 405, 407, 409, 696]

:large_blue_circle:
com/starrocks/qe/ConnectContext.java
3
7
42.86%
[249, 553, 554, 557]

:large_blue_circle:
com/starrocks/sql/optimizer/dump/HiveTableDumpInfo.java
2
4
50.00%
[158, 159]

:large_blue_circle:
com/starrocks/sql/optimizer/rule/transformation/materialization/MaterializedViewRewriter.java
5
6
83.33%
[680]

:large_blue_circle:
com/starrocks/catalog/MaterializedView.java
3
3
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/MvRewritePreprocessor.java
18
18
100.00%
[]

:large_blue_circle:
com/starrocks/connector/hive/HiveMetadata.java
7
7
100.00%
[]

:large_blue_circle:
com/starrocks/sql/analyzer/InsertAnalyzer.java
2
2
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/rewrite/OptExternalPartitionPruner.java
3
3
100.00%
[]

:large_blue_circle:
com/starrocks/server/CatalogMgr.java
6
6
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/statistics/StatisticsCalculator.java
2
2
100.00%
[]

:large_blue_circle:
com/starrocks/sql/analyzer/QueryAnalyzer.java
17
17
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/statistics/StatisticsCalcUtils.java
3
3
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/dump/QueryDumpInfo.java
4
4
100.00%
[]

:large_blue_circle:
com/starrocks/server/GlobalStateMgr.java
1
1
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/MaterializedViewOptimizer.java
1
1
100.00%
[]

:large_blue_circle:
com/starrocks/sql/analyzer/MaterializedViewAnalyzer.java
1
1
100.00%
[]

[FE PR Coverage Check]
:heart_eyes: pass : 106 / 126 (84.13%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/connector/hudi/HudiMetadata.java
0
4
00.00%
[173, 174, 175, 176]

:large_blue_circle:
com/starrocks/http/rest/QueryDumpAction.java
0
1
00.00%
[92]

:large_blue_circle:
com/starrocks/sql/optimizer/rule/transformation/materialization/MvUtils.java
0
1
00.00%
[329]

:large_blue_circle:
com/starrocks/http/HttpServerHandler.java
0
2
00.00%
[119, 120]

:large_blue_circle:
com/starrocks/qe/StmtExecutor.java
3
8
37.50%
[404, 405, 407, 409, 696]

:large_blue_circle:
com/starrocks/qe/ConnectContext.java
3
7
42.86%
[249, 553, 554, 557]

:large_blue_circle:
com/starrocks/qe/SessionVariable.java
6
8
75.00%
[2079, 2080]

:large_blue_circle:
com/starrocks/sql/optimizer/rule/transformation/materialization/MaterializedViewRewriter.java
5
6
83.33%
[680]

:large_blue_circle:
com/starrocks/catalog/MaterializedView.java
3
3
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/MvRewritePreprocessor.java
23
23
100.00%
[]

:large_blue_circle:
com/starrocks/connector/hive/HiveMetadata.java
7
7
100.00%
[]

:large_blue_circle:
com/starrocks/sql/analyzer/InsertAnalyzer.java
2
2
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/rewrite/OptExternalPartitionPruner.java
3
3
100.00%
[]

:large_blue_circle:
com/starrocks/server/CatalogMgr.java
6
6
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/statistics/StatisticsCalculator.java
2
2
100.00%
[]

:large_blue_circle:
com/starrocks/sql/analyzer/QueryAnalyzer.java
17
17
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/statistics/StatisticsCalcUtils.java
3
3
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/dump/QueryDumpInfo.java
20
20
100.00%
[]

:large_blue_circle:
com/starrocks/server/GlobalStateMgr.java
1
1
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/MaterializedViewOptimizer.java
1
1
100.00%
[]

:large_blue_circle:
com/starrocks/sql/analyzer/MaterializedViewAnalyzer.java
1
1
100.00%
[]

[FE PR Coverage Check]
:heart_eyes: pass : 107 / 127 (84.25%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/connector/hudi/HudiMetadata.java
0
4
00.00%
[173, 174, 175, 176]

:large_blue_circle:
com/starrocks/http/rest/QueryDumpAction.java
0
1
00.00%
[92]

:large_blue_circle:
com/starrocks/sql/optimizer/rule/transformation/materialization/MvUtils.java
0
1
00.00%
[329]

:large_blue_circle:
com/starrocks/http/HttpServerHandler.java
0
2
00.00%
[119, 120]

:large_blue_circle:
com/starrocks/qe/StmtExecutor.java
3
8
37.50%
[404, 405, 407, 409, 696]

:large_blue_circle:
com/starrocks/qe/ConnectContext.java
3
7
42.86%
[249, 553, 554, 557]

:large_blue_circle:
com/starrocks/qe/SessionVariable.java
6
8
75.00%
[2079, 2080]

:large_blue_circle:
com/starrocks/sql/optimizer/rule/transformation/materialization/MaterializedViewRewriter.java
5
6
83.33%
[680]

:large_blue_circle:
com/starrocks/catalog/MaterializedView.java
3
3
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/MvRewritePreprocessor.java
23
23
100.00%
[]

:large_blue_circle:
com/starrocks/connector/hive/HiveMetadata.java
7
7
100.00%
[]

:large_blue_circle:
com/starrocks/sql/analyzer/InsertAnalyzer.java
2
2
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/rewrite/OptExternalPartitionPruner.java
4
4
100.00%
[]

:large_blue_circle:
com/starrocks/server/CatalogMgr.java
6
6
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/statistics/StatisticsCalculator.java
2
2
100.00%
[]

:large_blue_circle:
com/starrocks/sql/analyzer/QueryAnalyzer.java
17
17
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/statistics/StatisticsCalcUtils.java
3
3
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/dump/QueryDumpInfo.java
20
20
100.00%
[]

:large_blue_circle:
com/starrocks/server/GlobalStateMgr.java
1
1
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/MaterializedViewOptimizer.java
1
1
100.00%
[]

:large_blue_circle:
com/starrocks/sql/analyzer/MaterializedViewAnalyzer.java
1
1
100.00%
[]

@Mergifyio backport branch-3.1


runtime/cgo: dlopen shared library cause bus error in pthread_create with raspberry pi (Arch Linux)

What version of Go are you using (go version)?

$ go version
go version go1.20.1 linux/arm

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="arm"
GOBIN=""
GOCACHE="$HOME/.cache/go-build"
GOENV="$HOME/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="$HOME/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="$HOME/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/mnt/share/go1.20.1"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/mnt/share/go1.20.1/pkg/tool/linux_arm"
GOVCS=""
GOVERSION="go1.20.1"
GCCGO="gccgo"
GOARM="6"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -marm -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build3555080228=/tmp/go-build -gno-record-gcc-switches"

What did you do?
The system is running on a raspberry pi model 3b+, with up to date Arch Linux ARM (32bit)
Create main.go
package main

func main() {

}

Create main.c
#include <stdio.h>
#include <stdlib.h>
#include <dlfcn.h>

int main(int argc, char** argv)
{
    void *handle = dlopen("./libtest.so", RTLD_LAZY);
    if (!handle) {
        fprintf(stderr, "Error: %s\n", dlerror());
        return EXIT_FAILURE;
    }

    dlclose(handle);
    return EXIT_SUCCESS;
}

Build libtest.so and executable, and run the program
$ go build -buildmode=c-shared -o libtest.so main.go
$ gcc -g main.c -o main
$ ./main
Bus error (core dumped)

What did you expect to see?
The program should exit normally
What did you see instead?
The program failed with Bus error
$ gdb --args ./main
(gdb) run
Program received signal SIGBUS, Bus error.
(gdb) bt
#0  0xb6e9be08 in create_thread (pd=pd@entry=0xb6d1f3a0, attr=attr@entry=0xbefff1a8, stopped_start=0xbefff1a6, stopped_start@entry=0xbefff19e, stackaddr=stackaddr@entry=0xb651f000,
    stacksize=<optimized out>, stacksize@entry=8388128, thread_ran=<optimized out>, thread_ran@entry=0xbefff19f) at pthread_create.c:295
#1  0xb6e9cae8 in __pthread_create_2_1 (newthread=0xb6d89414 <_rt0_arm_lib_go>, newthread@entry=0xbefff2c0, attr=0xbefff1a7, attr@entry=0x0, start_routine=0x0,
    start_routine@entry=0xb6d89414 <_rt0_arm_lib_go>, arg=0x0, arg@entry=0xb6d8c0f8 <_cgo_try_pthread_create+68>) at pthread_create.c:828
#2  0xb6d8c0f8 in _cgo_try_pthread_create (thread=0xbefff2c0, thread@entry=0xbefff2b8, attr=attr@entry=0x0, pfn=0xb6d89414 <_rt0_arm_lib_go>, arg=0xb6d8c0f8 <_cgo_try_pthread_create+68>)
    at gcc_libinit.c:100
#3  0xb6d8c16c in x_cgo_sys_thread_create (func=<optimized out>, arg=<optimized out>) at gcc_libinit.c:27
#4  0xb6d89574 in _rt0_arm_lib () at /usr/lib/go/src/runtime/asm_arm.s:70
#5  0xb6fc83d4 in call_init (env=0xbefffb5c, argv=0xae, argc=1, l=<optimized out>) at dl-init.c:70
#6  call_init (l=<optimized out>, argc=1, argv=0xae, env=0xbefffb5c) at dl-init.c:26
#7  0xb6fc84e0 in _dl_init (main_map=0x4121a8, argc=1, argv=0xbefffb54, env=0xbefffb5c) at dl-init.c:117
#8  0xb6f6d718 in __GI__dl_catch_exception (exception=0x0, operate=0x0, args=0xbefff578) at dl-error-skeleton.c:182
#9  0xb6fcfb10 in dl_open_worker (a=0xbefff730) at dl-open.c:808
#10 0xb6f6d6b8 in __GI__dl_catch_exception (exception=0x400760, operate=0xbefff724, args=0xbefff7a8) at dl-error-skeleton.c:208
#11 0xb6fcfecc in _dl_open (file=0x400760 "./libtest.so", mode=-2147483647, caller_dlopen=0x400658 <main+48>, nsid=-2, argc=<optimized out>, argv=<optimized out>, env=<optimized out>)
    at dl-open.c:883
#12 0xb6e9762c in dlopen_doit (a=0xbefff9a4) at dlopen.c:56
#13 0xb6f6d6b8 in __GI__dl_catch_exception (exception=0xb6ff91a0, exception@entry=0xbefff948, operate=0xbefff950, args=0x0, args@entry=0xb6ffed00 <_rtld_global_ro>)
    at dl-error-skeleton.c:208
#14 0xb6f6d7a8 in __GI__dl_catch_error (objname=0xbefff97c, errstring=0xbefff980, mallocedp=0xbefff97b, operate=<optimized out>, args=<optimized out>) at dl-error-skeleton.c:227
#15 0xb6e96fc0 in _dlerror_run (operate=0xb6e97598 <dlopen_doit>, args=0xbefff9a4, args@entry=0xbefff99c) at dlerror.c:138
#16 0xb6e97738 in dlopen_implementation (dl_caller=<optimized out>, mode=<optimized out>, file=<optimized out>) at dlopen.c:71
#17 ___dlopen (file=<optimized out>, mode=<optimized out>) at dlopen.c:81
#18 0x00400658 in main (argc=0, argv=0x0) at main.c:7
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb) x/i $pc-4
   0xb6e9be04 <create_thread+228>:      vst1.8  {d16-d17}, [r2 :64]
(gdb) p/x $r2
$2 = 0xbefff114
(gdb) p/x $sp
$3 = 0xbefff0ec

$ dmesg | tail
[14017413.131684] Alignment trap: not handling instruction f4420a1f at [<b6e9be04>]
[14017413.131720] 8<--- cut here ---
[14017413.131729] Unhandled fault: alignment exception (0xa21) at 0xbefff114
[14017413.131742] pgd = ff224ad3
[14017413.131755] [befff114] *pgd=0d951003, *pmd=05314003, *pte=e00000093cbf5f

I suspect the problem is caused by the stack is misaligned, so I trace back the stack pointer and find the misalignment happens at
https://github.com/golang/go/blob/40ed3591829f67e7a116180aec543dd15bfcf5f9/src/runtime/asm_arm.s#L31
where the function _rt0_arm_lib applied for a stack size of 104. I changed it to 108 and this solves the issue.
I don't have much knowledge in assembly and processor architecture, so I'm not sure why the misalignment happens here and what should be the correct way to solve this issue.

CC @golang/arm @golang/runtime
In triage now, it looks like it's an unaligned 8 byte store, but it's not clear why this doesn't happen consistently on all Raspberry Pis. One theory is that it's this particular implementation of pthreads (which libc is this? glibc? musl?) expecting an aligned stack pointer. But it could just be a general issue on our side in failing to follow the C ABI fully.

@randall77 points out that we do 8-byte align the stack on arm (regardless of what the CPU actually requires, if it requires less).

I'm using the official build of arch linux arm (32bit). The glibc link is here.

FWIW, I'm experiencing this issue using go1.19. And it was working fine previously when using go1.17

Can confirm that changing $104 to $108 fixes the SIGBUS

This issue is not specific to golang. Close and seek help from arch linux.

Can confirm that changing $104 to $108 fixes the SIGBUS

@tmm1 How did you make that change?

I did hit the same issue also with golang 1.19.4 + glibc 2.35. Fix is to patch go-runtime in following (as stated in original issue):
From 5551b0fbcbd5d715a5ac2b142fd45cdf38e62aa7 Mon Sep 17 00:00:00 2001
From: Marek Belisko<EMAIL_ADDRESS>Date: Fri, 2 Feb 2024 08:02:44 +0100
Subject: [PATCH] Fix bus error issue

See https://github.com/golang/go/issues/58548
---
 src/runtime/asm_arm.s | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/runtime/asm_arm.s b/src/runtime/asm_arm.s
index 591ef2a..f5d62ba 100644
--- a/src/runtime/asm_arm.s
+++ b/src/runtime/asm_arm.s
@@ -28,7 +28,7 @@ TEXT main(SB),NOSPLIT|NOFRAME,$0
 // c-archive) or when the shared library is loaded (for c-shared).
 // We expect argc and argv to be passed in the usual C ABI registers
 // R0 and R1.
-TEXT _rt0_arm_lib(SB),NOSPLIT,$104
+TEXT _rt0_arm_lib(SB),NOSPLIT,$108
        // Preserve callee-save registers. Raspberry Pi's dlopen(), for example,
        // actually cares that R11 is preserved.
        MOVW    R4, 12(R13)
--
2.34.1

@dong-zeyu I've tried same code with glibc 2.35 and 2.36 and issue was still present until go-runtime was patched.

I think it may be that the original frame size was 104, but we add 4 byte for the stack slot to save the LR, which makes it not a multiple of 8. Changing to 108 makes it a multiple of 8 after adding the LR slot. (If you send a patch, a comment would be helpful. Thanks.)


Electron app filechooser not seeing available directories

Installed playground-electron from snap
snap install --dangerous graphql-playground-electron_1.8.2_amd64.snap
	graphql-playground-electron 1.8.2 installed

snap list graphql-playground-electron
	Name                         Version  Rev  Tracking  Publisher  Notes
	graphql-playground-electron  1.8.2    x1   -         -          -

I want to point playground to a folder, "/data/project1" on my system
These are my dirs in "/".  Notice "/data/"
ls -ald /* | head -n 15
	drwxr-xr-x   2 root    root  4.0K Nov 15 17:50 /bin/
	drwxr-xr-x   5 root    root   12K Nov 15 18:16 /boot/
	drwxr-xr-x  11 root    root  4.0K Sep  6  2016 /data/
!!	drwxr-xr-x  21 root    root  5.7K Nov 16 13:35 /dev/
	drwxrwxr-x   3 root    root  4.0K Feb 10  2014 /doc/
	drwxr-xr-x 234 root    root   20K Nov 18 17:41 /etc/
	...

launch playground
select a folder to open for a new workspace, there's NO "/data" folder available/visible in the file/folder chooser.
This is what you see:

Notice NO "/data".

Could be possible that its problem with your rights? For example bad user group or something? Because right now its really hard to debug stuff like this from our end.

Doubtful.  I see the same behavior whether I'm
(1) logged in as 'user', launching as 'user'
(2) logged in as 'user', launching as 'root' via kdesu
(3) logged in as 'root', launching as 'root'
And, there's not a single other app on this box -- snap installed or not -- that has this "can't see dirs' issue.
I understand it's tough to debug.  I'll provide what debug info is helpful.  I just don't know what that info is.

@olspanner Ye, this is kind of hard for us to debug sadly :( Because I think we would need your system settings etc.


Add more abbreviations

Codecov Report

Merging #48 (4a41a3b) into master (d0df5fa) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master       #48   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            7         7
  Lines          292       292
=========================================
  Hits           292       292

Continue to review full report at Codecov.

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


_button.scss

need a basic shadow in term of visibility ....outline looks odd

@satyajit11 please propose style changes on the upstream: twbs/bootstrap


Change back to existing identity design

Fixes #20972

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.003%) to 41.938%

Files with Coverage Reduction
New Missed Lines
%

extensions/sql-bindings/src/common/azureFunctionsUtils.ts
1
80.65%

Totals

Change from base Build<PHONE_NUMBER>:
-0.003%

Covered Lines:
28864

Relevant Lines:
63927

💛  - Coveralls

@cheenamalhotra I'm going to get this in since it has a pretty big impact. I'll follow up with the test changes I suggested in a separate PR since I wanted to add some stuff there anyways


Feature/simplify component build

PR to add a single build image script that builds all the images for a certain pipeline (or a single image if a flag is passed)

change registry to a public artifact registry on docker hub (cloud agnostic image build) + add missing metadata to manifest and

Add missing metadata to docker variables and fetch them when creating the manifest

Still TODO: Decide on a public docker repo to push the images (right now it's on my personal one)
Ensure that all future components dockerfile have the following commands to register the metadata:
ARG GIT_BRANCH
ARG COMMIT_SHA
ARG BUILD_TIMESTAMP
ENV GIT_BRANCH $GIT_BRANCH
ENV COMMIT_SHA $COMMIT_SHA
ENV BUILD_TIMESTAMP $BUILD_TIMESTAMP

Thanks @PhilippeMoussalli.
I would propose to use Github for the docker images, what do you think?

Thanks @PhilippeMoussalli.
I would propose to use Github for the docker images, what do you think?

You mean publishing to the container registry (under packages)  of the ml6-team org account? That might make it easier indeed to integrate later on with Github workflows.
https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry

Thanks @PhilippeMoussalli.
I would propose to use Github for the docker images, what do you think?

@RobbeSneyders I did the switch over
Put some notes in a doc on the setup instructions
https://docs.google.com/document/d/1ZaTEui_n3TBb4Ex8eueENK0sk9hq0Q7va2WXNvgun88/edit

Thanks @PhilippeMoussalli ! As a follow-up, we can update the HF dataset pipeline as well to leverage a single build_image.sh script: https://github.com/ml6team/express/tree/main/examples/pipelines/hf_dataset_pipeline


Build enclaves on Windows using clang cross compilation (phase 1)

All the enclave libraries are built in this changelist.
The tests will be built in phase 2.

Pass -DBUILD_ENCLAVES=1 on windows to turn on the feature.
Introduces clangw (clang-wrapper) to handle mix of msvc and gcc/clang options generated by cmake.
Uses ld.lld to link enclaves. llvm-ar to create libraries.
Launches git-bash as needed to do necessary configurations for some targets (especially 3rdparty).

@andschwa I have addressed all your feedback.
Can you take another pass at reviewing this?

bors try

bors try

bors r-

@andschwa I am going to wait for @gupta-ak 's PR to go in, since that is a bigger PR.
I will fix up any conflicts in this branch tomorrow.

bors try


Add last_sign_in_at and last_sign_out_at to users

Why: One of the STIG requirements is to log the last time a user
signed in and out. Adding these 2 fields prepares us to implement that
feature.
I don't believe the STIG specifically requires that this be tracked in
the DB, but from past experience, using a DB is more useful than
logging to CloudWatch, for example, because it makes it easier to
run queries.
Reviewer Notes
Verify I used the proper syntax and column type.
Verify you can run the migration
Setup
make db_dev_run
make db_dev_migrate

Code Review Verification Steps

Any new migrations/schema changes:

[x] Follow our guidelines for zero-downtime deploys (see Zero-Downtime Deploys)
[ ] Have been communicated to #dp3-engineering
[ ] Secure migrations have been tested using scripts/run-prod-migrations

[X] Request review from a member of a different team.

[X] Have the Jira acceptance criteria been met for this change?

References

Jira story

@reggieriser Updated. How does it look now?

@reggieriser Updated. How does it look now?

The migration looks good now to me.  It ran fine and I was able to login in dev.  I assume there will be a follow-up story at some point to add it to the Pop Users model?
I'm approving from the migration standpoint -- but I defer to @akostibas to approve from the functional standpoint since it's his story.


Add generic Prometheus query measurement

Basic version of a measurement allowing user to pass a custom Prometheus query via config, with the following limitations:

only latency metrics are supported,
the query must be parametrized by test duration,
no checks/assertions available at this point.

Unit tests and documentation update pending.

Regarding unit tests - I'd rather add them in a separate PR, if that's OK.
Regarding latency metric - I believe it might require changes in perfdash (which relies on the specific data format generated by NewLatencyMetricPrometheus). Is this a blocker?

/lgtm
/approve

I would prefer to have tests in this PR, but given time constraints I think it's fine if this will happen as follow up PR.


Bug: OpenJDK: Add Support for Alpine Linux

Bug report
I am trying out sdkman in a (custom) container image based on alpine linux.
When I tried installing Java with sdkman, then trying to initialize those programs, I get no such file or directory error.
Specifically, when running java or java -version or /root/.sdkman/candidates/java/current/bin/java I get the error:
bash: /root/.sdkman/candidates/java/current/bin/java: No such file or directory

Similar error for running spring for spring CLI (which I also installed through sdkman):
/root/.sdkman/candidates/springboot/current/bin/spring: line 118: /root/.sdkman/candidates/java/current/bin/java: No such file or directory

when looking to see the file root/.sdkman/candidates/java/current/bin/java, I can see it does indeed exist and has execution permissions:
# ls -l root/.sdkman/candidates/java/current/bin/java
-rwxr-xr-x    1 root     root         16320 Aug 17 11:55 root/.sdkman/candidates/java/current/bin/java

To reproduce
The container image below:
FROM alpine:3.16

ARG JDK_VERSION="<IP_ADDRESS>"
ARG MAVEN_VERSION="3.8.6"

RUN apk update \
    && apk upgrade \
    && apk add --no-cache bash curl zip \
    && curl "https://get.sdkman.io" | bash \
    && bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && sdk install java $JDK_VERSION-tem && sdk install maven $MAVEN_VERSION && sdk install springboot"

CMD ["bash"]

I saved this in a Containerfile file
make sure to have podman installed.
run podman build -t spring-temurin-maven-alpine -f Containerfile
run podman run -dt spring-temurin-maven-alpine
run podman attach -l
you should now be inside the container.
run source $HOME/.sdkman/bin/sdkman-init.sh
try running java -version to see the error I got.

System info

OS: Arch Linux (Host OS not container OS)
bash version inside the container: GNU bash, version 5.1.16(1)-release (x86_64-alpine-linux-musl)
sdk version: 5.16.0

Hope I can get help with this please; thanks!

Hi @nezartarbin!
Have you tried running the containing with as an unprivileged user? SDKMAN! is not intended to be run as root.

Hi @helpermethod !
Thanks for the advice. I tried doing this with a non-root user, but it does not work still. I followed similar steps to the above, but with a different containerfile.
FROM alpine:3.16

ARG JDK_VERSION="<IP_ADDRESS>"
ARG MAVEN_VERSION="3.8.6"

RUN apk update \
    && apk upgrade \
    && apk add --no-cache bash curl zip \
    && adduser -D oat

USER oat
SHELL ["/bin/bash", "-c"]

RUN curl "https://get.sdkman.io" | bash \
  && source $HOME/.sdkman/bin/sdkman-init.sh \
  && sdk install java $JDK_VERSION-tem \
  && sdk install maven $MAVEN_VERSION \
  && sdk install springboot

CMD ["bash"]

again, I:

saved this in a Containerfile
podman build -f Containerfile -t spring-temurin-maven-alpine
podman run -dt spring-temurin-maven-alpine
podman attach -l
verify running user:

# whoami
oat

try running java, but still getting error

# java --version
bash: /home/oat/.sdkman/candidates/java/current/bin/java: No such file or directory

Does SDKMAN! have any hard dependency on glibc or GNU coreutils? I suppose this may be one reason that it would have issues with alpine linux, as it is unique as a linux distro in using musl instead of glibc ans busybox instead of coreutils?

Hi @nezartarbin,
thanks for providing the containerfile. It seems even with glibc installed the OpenJDKs provided by SDKMAN! don't work, but we are using Foojay's DiscoAPI, which provides special OpenJDK versions for Alpine.
I'll speak with the team to see how much effort this is (doesn't look too hard from a first glance).

any progress ?
I have the same problem, the installation via SDKMan succeeds but running a java program fails (with the errors already mentioned by @nezartarbin )

The problem might be related to https://gitlab.alpinelinux.org/alpine/aports/-/issues/12981

@eddumelendez any ideas regarding this?

I can reproduce the problem with Docker (for Desktop) on my MacOS 13 as well.
Looks like the java binary is linked to a shared library which is missing some symbols:
$ ldd /root/.sdkman/candidates/java/current/bin/java
        /lib64/ld-linux-x86-64.so.2 (0x7f8439027000)
        libz.so.1 => /lib/libz.so.1 (0x7f8439008000)
        libjli.so => /root/.sdkman/candidates/java/current/bin/../lib/libjli.so (0x7f8438ff5000)
        libpthread.so.0 => /lib64/ld-linux-x86-64.so.2 (0x7f8439027000)
        libdl.so.2 => /lib64/ld-linux-x86-64.so.2 (0x7f8439027000)
        libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7f8439027000)
Error relocating /root/.sdkman/candidates/java/current/bin/../lib/libjli.so: __strdup: symbol not found
Error relocating /root/.sdkman/candidates/java/current/bin/../lib/libjli.so: __rawmemchr: symbol not found

Where can I find more information, how the Temurin builds are provided for sdkman (on Alpine)?
@nezartarbin you probably want to make use of an official Temurin build for your Alpine JDK installation by following the instructions here: https://adoptium.net/en-GB/installation/linux/#_alpine_linux_instructions?
I only tested the java -version by now, but it works though the java binary also lacks some symbols here:
# ldd /usr/bin/java
        /lib/ld-musl-x86_64.so.1 (0x7f3c8d37f000)
Error loading shared library libjli.so: No such file or directory (needed by /usr/bin/java)
        libc.musl-x86_64.so.1 => /lib/ld-musl-x86_64.so.1 (0x7f3c8d37f000)
Error relocating /usr/bin/java: JLI_Launch: symbol not found
Error relocating /usr/bin/java: JLI_PreprocessArg: symbol not found
Error relocating /usr/bin/java: JLI_ReportMessage: symbol not found
Error relocating /usr/bin/java: JLI_StringDup: symbol not found
Error relocating /usr/bin/java: JLI_MemFree: symbol not found
Error relocating /usr/bin/java: JLI_InitArgProcessing: symbol not found
Error relocating /usr/bin/java: JLI_AddArgsFromEnvVar: symbol not found
Error relocating /usr/bin/java: JLI_List_add: symbol not found
Error relocating /usr/bin/java: JLI_List_new: symbol not found

However, as @eddumelendez mentioned in the respective Slack discussion, the problem seems to be related to the usage of glibc vs. musl. The Temurin package as provided by Adoptium is using musl.

Nevertheless, latest Temurin JDK builds were never (automatically) tested for the current Alpine releases in a clean way (only the edge version) -> adoptium/installer#590.

Currently there is no way for SDKMAN! to detect if the currently running Linux is an Alpine.
So as a first step, SDKMAN! would need to detect this, e.g. by checking the existence of  /etc/alpine-release
[[ -f [[ -f /etc/alpine-release ]]

Then we would need to pass this information to the SDKMAN! backend (the SDKMAN! candidates service), which then needs to incorporate this information to only return JDK versions which work for Alpine.
And we would also need to add support for musl-based JDKs to our Disco API importer.
Wdyt @eddumelendez @marc0der? I've probably forgotten a few steps :D.

@helpermethod I think the problem might be related to Alpine's use of the musl C library instead of glibc. I would suggest checking for that instead, like maybe via checking if the output of ldd /bin/usr/env includes musl (via grep maybe?)

I have the same issue trying to install sdkman and Java on Alpine:
For example, with the following Dockerfile:
FROM alpine:3.18.4

RUN apk update
RUN apk add bash curl zip

RUN addgroup -S my-group && adduser -S my-user -G my-group -s bash
USER my-user
WORKDIR /home/my-user

RUN curl -s "https://get.sdkman.io" | bash
RUN bash -c "export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$JAVA_HOME/lib/server" && source $HOME/.sdkman/bin/sdkman-init.sh"

The image is created via  docker build -t sdkman-example .. When I run the container via docker container run --rm -it sdkman-example bash I get errors depending on the command I run:
>sdk list
# Ok, This returns a list of candidates
>sdk version
bash: /home/my-user/.sdkman/libexec/version: cannot execute: required file not found

From the previous comments I assumed it was related to the missing glibc. I then added in the dockerfile:
# https://wiki.alpinelinux.org/wiki/Running_glibc_programs
RUN apk add gcompat libstdc++

then I could get the version and install Java:
> sdk version
SDKMAN!
script: 5.18.2
native: 0.4.2
> sdk install  java  17.0.8-tem && sdk use java 17.0.8-tem
[...]
Using java version 17.0.8-tem in this shell.

But this fails:
java --version
Error occurred during initialization of VM
Unable to load jimage library: /home/my-user/.sdkman/candidates/java/17.0.8-tem/lib/libjimage.so

I could make it work manually by setting the  LD_LIBRARY_PATH :
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JAVA_HOME/lib/server
> java --version
openjdk 17.0.8 2023-07-18
[...]

I don't understand the missing path though and how to set it automatically.


Regenerate database for replayer test

Replayer test verifies if replayer show no errors on artificially created database using mina-local-network.
Chain hashes update broke compatibility betweent replayer and content of database, so we need to regenerate new data. Additinally we need to document process

Is closed by #15156


OK

https://github.com/Microsoft/RTVS/commit/333d10287a8d7cebdbec9b2da4824a2727027054


keyscount 命令慢

在约500W+ 数据量情况下使用keyscount * 统计key数据量，速度相当慢，而且也极占用CPU。请问keyscount原理是扫描全库吗？有其他办法可以快速统计key数据量吗？
引擎：wiredtiger

keyscount have  O(N) complexity like  keys command.   there is no faster way to get the count.

是否会在下一版本考虑在info加入keys等参数呢？

@xiquan-wu I believe there is already keys count in INFO but its value looks incorrect to me. Perhaps @yinqiwen can comment. I use RocksDB engine.
As per your initial question I recommend having separate counter. I have ~78M hashes and getting count is also slow.


make document-store error: pymongo.errors.InvalidURI

I tried to install it with no luck.
I progressed a bit and found some errors I the guide.
I will open a PR for the errors I already overcome, but now I am stuck on

make document-store

ExecutionError: Could not deserialize remote exception due to local error:
No module named 'pymongo'
This can happen if your local environment does not have the remote exception definitions.
Here is the remote traceback:
Traceback (most recent call last):
File "/pkg/modal/_container_entrypoint.py", line 330, in handle_input_exception
yield
File "/pkg/modal/_container_entrypoint.py", line 403, in call_function_sync
res = fun(*args, **kwargs)
File "/root/app.py", line 176, in drop_docs
docstore.drop(collection, db)
File "/pkg/docstore.py", line 17, in drop
collection = get_collection(collection, db, client)
File "/pkg/docstore.py", line 44, in get_collection
db = get_database(db, client)
File "/pkg/docstore.py", line 59, in get_database
client = client or connect()
File "/pkg/docstore.py", line 81, in connect
client = pymongo.MongoClient(connection_string, connect=True, appname="ask-fsdl")
File "/usr/local/lib/python3.10/site-packages/pymongo/mongo_client.py", line 639, in init
res = uri_parser.parse_uri(
File "/usr/local/lib/python3.10/site-packages/pymongo/uri_parser.py", line 461, in parse_uri
raise InvalidURI('Bad database name "%s"' % dbase)
pymongo.errors.InvalidURI: Bad database name "/<my_user>:@fsdl"

Hmm, I haven't been able to reproduce this exact error. It is triggered when the connection string contains certain characters. Some combination of them triggers that parsing failure, rather than the friendlier error here.
If you didn't expect for your MongoDB username or password to have those characters, then there's a bug elsewhere. I haven't been testing this in different shells.
Meanwhile, I've added url quoting to the connection string construction, so if you did expect it, the connection should work.

believed closed by 773d2f0, reopen if not!

Nothing changed

word, if you would be comfortable sharing the connection info for the database you're using over Discord DM, then i can test this behavior more effectively

I am  comfortable sharing the connection info for the database you're
using over Discord DM
BUT
I found my mistake (learned what is modal on the way)
SO
I will open 2 clean PR, one to avoid others do the same mistake, and the
other to debug Mongo connection (and to use python instead of sh).

On Mon, Jun 19, 2023 at 1:45 AM Charles Frye @.***>
wrote:

word, if you would be comfortable sharing the connection info for the
database you're using over Discord DM, then i can test this behavior more
effectively
—
Reply to this email directly, view it on GitHub
https://github.com/the-full-stack/ask-fsdl/issues/57#issuecomment-1596293974,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABSAFJNPGLY5WSGQHKSXEX3XL6AJRANCNFSM6AAAAAAZCO3XXA
.
You are receiving this because you authored the thread.Message ID:
@.***>


New npe2 release 0.7.0 broke our typing action

🐛 Bug
Failed run link: https://github.com/napari/napari/actions/runs/4700373164/jobs/8335070666#step:5:12
Failure text:
mypy napari/settings napari/types.py napari/plugins
/opt/hostedtoolcache/Python/3.9.16/x64/lib/python3.9/site-packages/npe2/plugin_manager.py:1: error: disable_error_code: Invalid error code(s): empty-body  [misc]
Found 1 error in 1 file (checked 22 source files)
make: *** [Makefile:10: typecheck] Error 1
Error: Process completed with exit code 2.

CC @tlambert03 @Czaki as I know nothing about this action 😂

that specific error is caused by napari using a pretty outdated version of mypy in the typing action (mypy==0.982 specified in resources/requirements_mypy.txt).   ([misc] is not an invalid error code for current versions of mypy.)
unless @Czaki want's to pick up maintenance of keeping napari type checks working, I'd say you might just consider dropping it

Bugfix ready for review


Cristianvnica 1677

I can see that all my previous changes sum up in this commit. Sry for
that, still newbie.

if all your commits are summed up here, please close the previous PR's

Done

Thanks for spotting these issues and fixing them!

Note that due to significant changes, I'm making these changes manually on my side but I'll credit you in the commit.

@BerkeleyTrue @QuincyLarson we thank you!


(RF)RFC: certificate propagation

We made our first pass of this in https://github.com/concourse/concourse/issues/1027 and its approach has been pretty contentious.
I think we got a lot right, for certain use cases. For folks who are managing certs on a VM basis, the current approach works pretty well. For example BOSH supports installing certs across all VMs it deploys, which folks use to trust their own CA. For them, Concourse will automatically pick it up.
There are two distinct downsides though:

It broke some resources, since they had their own certs pre-installed that were necessary for openjdk. See https://github.com/concourse/concourse/issues/2042 (there's a lot of interesting discussion in there too).
If you have a pipeline that you know needs a particular cert, you currently have to reconfigure the workers, which goes against our "worker state" anti-pattern. The thought was that most customers would be talking to their own internal CA and they'd just configure it once across their cluster. But that's not always true, and working around it is very painful.

I'm not married to our current approach and could see us moving away from it in the future. Probably in favor of explicitly communicating certificates to resources as part of the interface and expecting each resource author to know how to "trust" the given certs. This still requires work from all resource authors ("contributor-burden" anti-pattern) but it would at least be an explicit interface, and it would be the same across all resources (rather than relying on source which has already proven to be inconsistent).
We could then support defining those CA certs on each resource and then support globally configuring certs on the ATC, to support the use case of having one CA common to all of your pipelines. We would communicate the sum of (global certs) + (resource-configured certs) to the resource.

Latest on this: concourse/rfcs#24 has certificate config as an explicit part of the protocol. There's still work to be done to figure out how and where users configure those certs, so that's why this RFRFC is still open.


make REPL parse compound statements

Currently the REPL reads until it sees a blank line, then parses those lines as a file. This means that you must hit return twice after an expression:
Welcome to Starlark (java.starlark.net)
>> 1+1
..
2
>>

It also means it doesn't correctly parse unclosed expressions containing blank lines:
>> (1 +
..
<stdin>:1:6: syntax error at 'newline': expected expression
<stdin>:1:1: contains syntax errors
>>

Instead, it should parse a compound statement form, like Python and the Go implementation do:
Welcome to Starlark (go.starlark.net)
>>> 1+1
2
>>> (1+
...
...
... 1)
2
>>>

This requires API changes: a stream-based input to the scanner.

Moved to https://github.com/bazelbuild/bazel/issues/12474, as this is about the Java implementation.


KAFKA-18283: Add StreamsGroupDescribe RPC definitions

Adds a new RPC StreamsGroupDescribe that returns, given the group ID, all metadata related to the streams group, such as

The topology metadata of the group.
The topology epoch of the group.
The latest member metadata that each member provided through the StreamsGroupHeartbeat API.
The current target assignment generated by the assignor.

This just adds the JSON as defined in KIP-1071, together with some plumbing.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

There are test failures, but they don't seem related to this PR


Pipify project

Context
The proximity matcher webservice shall be easy to use and to be installable via pip.
Changes

Poetry is introduced
relevant scripts are added to be accessible via cli after installation

How to test

Build Python wheel via

 poetry build

Install the wheel (e.g. in some test virtualenv) via

pip install --force-reinstall $PATH_ON_YOUR_MACHINE/proximity_matcher_webservice/dist/proximity_matcher_webservice-0.0.1-py3-none-any.whl

Try running the scripts from terminal. E.g.

create-vpt-pickle -i /tmp/tlsh-hashes.txt -o /tmp/licenses-tlsh.pickle

Greetings from @maxhbr

potential next target: https://github.com/nix-community/poetry2nix

Thanks for the quick review! I modified the copyright.

@armijnhemel are there some open points left to improve?


Implement Versioning Code Rules

@rapidray12 , @nickviola - let's schedule some time to discuss. Have additional information to review as possible standards.


Error with binance lib

Hello,
I'm trying to run the bot with binance and I have an error

Details

Python Crypto Bot

Market : BTCDOGE

Granularity : 1h

|          Bot Mode : TEST - test trades using dummy funds :)                  |
|       Bot Started : 2021-04-20 15:42:03.872121                               |
Traceback (most recent call last):
File "/Users/jeremmm/pycryptobot/pycryptobot.py", line 870, in
executeJob(s, app)
File "/Users/jeremmm/pycryptobot/pycryptobot.py", line 89, in executeJob
trading_data = app.getHistoricalData(app.getMarket(), app.getGranularity())
File "/Users/jeremmm/pycryptobot/models/PyCryptoBot.py", line 790, in getHistoricalData
return api.getHistoricalData(market, granularity)
File "/Users/jeremmm/pycryptobot/models/Binance.py", line 224, in getHistoricalData
resp = self.client.get_historical_klines(market, granularity, '13 days ago UTC')
File "/Users/jeremmm/pycryptobot/env/lib/python3.9/site-packages/binance/client.py", line 873, in get_historical_klines
return self._historical_klines(symbol, interval, start_str, end_str=None, limit=500, spot=True)
File "/Users/jeremmm/pycryptobot/env/lib/python3.9/site-packages/binance/client.py", line 917, in _historical_klines
first_valid_ts = self._get_earliest_valid_timestamp(symbol, interval, spot)
File "/Users/jeremmm/pycryptobot/env/lib/python3.9/site-packages/binance/client.py", line 846, in _get_earliest_valid_timestamp
kline = self._klines(spot=spot,
File "/Users/jeremmm/pycryptobot/env/lib/python3.9/site-packages/binance/client.py", line 829, in _klines
return self.get_klines(**params)
File "/Users/jeremmm/pycryptobot/env/lib/python3.9/site-packages/binance/client.py", line 817, in get_klines
return self._get('klines', data=params, version=self.PRIVATE_API_VERSION)
File "/Users/jeremmm/pycryptobot/env/lib/python3.9/site-packages/binance/client.py", line 320, in _get
return self._request_api('get', path, signed, version, **kwargs)
File "/Users/jeremmm/pycryptobot/env/lib/python3.9/site-packages/binance/client.py", line 265, in _request_api
return self._request(method, uri, signed, **kwargs)
File "/Users/jeremmm/pycryptobot/env/lib/python3.9/site-packages/binance/client.py", line 260, in _request
return self._handle_response()
File "/Users/jeremmm/pycryptobot/env/lib/python3.9/site-packages/binance/client.py", line 313, in _handle_response
raise BinanceAPIException(self.response)
binance.exceptions.BinanceAPIException: APIError(code=-1121): Invalid symbol.

{
  "binance": {
    "api_url": "https://api.binance.com",
    "api_key": "<truncate>",
    "api_secret": "<truncate>",
    "config": {
      "base_currency": "BTC",
      "quote_currency": "DOGE",
      "granularity": "1h",
      "live": 0,
      "verbose": 1
    }
  }
}

Have you an idea about this?
Thanks

Binance Testnet have limited symbols, there is not any BTC-DOGE, so try DOGE-USDT instead:
{
"binance": {
"api_url": "https://api.binance.com",
"api_key": "",
"api_secret": "",
"config": {
"base_currency": "DOGE",
"quote_currency": "USDT",
"granularity": "1h",
"live": 0,
"verbose": 1
}
}
}

Just had a look at:
https://www.binance.com/en/markets
I think you have it the wrong way around...
base_currency is "DOGE"
quote_currency is "BTC"
There is no "BTCDOGE" market, only "DOGEBTC".


Can't find Snapmaker Artisan in "non-networked printer" menu

Hey, thank you very much for this plugin. I just assembled my Artisan yesterday and I'm looking at the different tooling available in the community. I got a few recommendations for Cura and wanted to check this out.
After installing the SnapmakerCuraPlugin (I tried 0.61.0 and the 0.7.0 pre-release) I can't find any Snapmaker Artisan (or J1 for that matter) in the list of non-networked printer.

I haven't tried the networked mode yet, as the printer is currently busy and I don't want to mess with the current job.
Any help would be greatly appreciated

Found the issue after playing around a little more. I downloaded the curapackage from the release and added this to the plugins folder. After doing a Drag&Drop to the Cura UI it installed it correctly and the Artisan showed up. Sorry for the noise


animate repeat

i have implement one animate, and i want to repeat execute this animate,how can i implement it?

@jackyzonewen this is a feature that has been requested in issue #11 so I am going to close this as a duplicate. Look for this feature in v2.0!