Implement Alibaba icons

https://www.alibabacloud.com/help/doc-detail/67830.htm

So is there any alicloud icon implemented? Thanks

No, nobody has linked to a set.

I love this and I am hoping to use Alibaba icons in draw.io as soon as possible.

Same

I collected a complete set of Alibaba Cloud vector icons and generated the draw.io icon library:
https://blog.heylinux.com/en/2024/01/alibaba-cloud-official-vector-icons-and-draw.io-custom-libraries/

@davidjgraph why changing the status to declined?

The related in progress issue: #4086

ic thanks for the reply

I collected a complete set of Alibaba Cloud vector icons and generated the draw.io icon library: https://blog.heylinux.com/en/2024/01/alibaba-cloud-official-vector-icons-and-draw.io-custom-libraries/

@mcsrainbow When I download the .xml file from the above link and try to open it as a stencil in Draw.io, I get a message "Error - Invalid File Data".  Are you perhaps able to advise the correct method to load your stencil into Draw.IO please?  Many thanks.

@Roger0011 Open draw.io - File - Open Library - Choose "alibaba-cloud-icons/2022-orange/drawio/en/Alibaba Cloud.xml"

Many thanks @mcsrainbow - that is the method I was using; I ended up re-downloading your file and it has now worked.


use correct builder pattern

the extension configuration should not be altered after the extension was created ... so I would vote against setters for config, resources, ...
You already provided a builder() method. Shouldn't this return a ProcessEngineExtensionBuilder then, that is used to configure and create the extension instance?

Note: as this is already released, removing the setters will be a breaking change ... but maybe since this extension is not used by many projects, it is still time to just do it.

Hi @jangalinski,

the extension configuration should not be altered after the extension was created

you are right.
I've created a branch for this: https://github.com/camunda/camunda-bpm-junit5/commit/8c870a77414f06de680f0fc8d3c4ffd5d4c8a2b2
If you agree, I could publish this as version 1.0.1. Or would you like a different version (2.0.0) as it is a breaking change?
What do you think?

Hi @jangalinski,

the extension configuration should not be altered after the extension was created

you are right.
I've created a branch for this: https://github.com/camunda/camunda-bpm-junit5/commit/8c870a77414f06de680f0fc8d3c4ffd5d4c8a2b2
If you agree, I could publish this as version 1.0.1. Or would you like a different version (2.0.0) as it is a breaking change?
What do you think?

As I said ... it would be an incompatible version change ... but I don't think that. (considerung the low amount of users) that this is worth a 2.0.0 ... I would have gone with 1.1.0, but 1.0.1 is ok for me as well.
BTW: When you set the next DEV version, use the patch version, not the minor version ... now it could be that there are 1.1.0-SNAPSHOT releases out in the open when you release 1.0.1 ...
Might be an indicator to use 1.1.0 for the release and 1.1.1-SNAPSHOT for the next dev

As I said ... it would be an incompatible version change ... but I don't think that. (considerung the low amount of users) that this is worth a 2.0.0 ... I would have gone with 1.1.0, but 1.0.1 is ok for me as well.
BTW: When you set the next DEV version, use the patch version, not the minor version ... now it could be that there are 1.1.0-SNAPSHOT releases out in the open when you release 1.0.1 ...
Might be an indicator to use 1.1.0 for the release and 1.1.1-SNAPSHOT for the next dev

And: the configuration resource and the process engine can still be changed on the extension object ... I meant making them immutable in the extension and use the builder to set them in the constructor of the extensuin.

And: the configuration resource and the process engine can still be changed on the extension object ... I meant making them immutable in the extension and use the builder to set them in the constructor of the extensuin.


fix: apply proper class for active doc item on mobiles + avoid duplicated classes

Breaking Changes

Remove activeSidebarClassName config, as it was probably never used by anyone and is confusing to use with Infima. Please let us know if you have a use-case for it, and we'll figure out a better api.

Motivation
First of all, currently CSS class for active navbar item is duplicated, for example:

Result
Current HTML
Expected HTML

Docs
Docs

In addition to that, in mobile sidebar uses wrong navbar__link--active class instead of menu__link--active for active doc item.

Result
Current HTML
Expected HTML

Docs
Docs

The duplication of CSS class occurs because option for adding custom class activeSidebarClassName is set by default in navbar__link--active . Although it's quite strange, because this option, as I understand it, is intended to add custom class to active doc item. So adding custom class via activeSidebarClassName option should not remove built-in Infima's active CSS classes.
BTW I'm not sure this option activeSidebarClassName  is needed at all at this moment. If you browse public repositories, you'll find that no one uses it -- default Infima class is set in all available repos.  Well, maybe we should remove it?
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
Preview.
On /docs page:

Before
After

Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)

Agree, like the current navigation, and apparently so do our users. So let's remove activeSidebarClassName as well.

👍


CARDS-2000 - Patient portal: "Sign out" in the header looks confusing to patients when only token auth is enabled and the patient has not actively signed in

Removed the "Sign out" link when the patient wasn't required to enter their mrn&dob in the identification form before proceeding
When the patient closes the page, automatically send a call to logout

Testing:

check that Sign out is no longer displayed for PREMs
check that the header layout looks ok without that link

Regression testing:

ensure the PROMs workflow (where the patient must sign in with mrn&dob) is not affected
ensure the Sign Out link is still displayed for PROMs

In PREMS mode the only way to logout is after completing the survey, which is OK.
In PROMS mode after completing the last survey instead of getting the REVIEW YOUR RESPONSES I get this:

The new logout request makes this a bit ugly.

in prems, set up a new CPES visit, connect as a patient with the token, start filling in the form but don't get to the end
try to close the page
due to the multiple requests being sent, sometimes the browser's native login dialog shows up on top of the browser's "are you sure you want to leave" dialog

Only in Firefox.

it's also possible that if the user says no to the "are you sure you want to leave" question, continuing to fill in the form will bring up the login dialog since the user is logged out
it's also possible, due to the multiple requests, that the logout failed and the patient will still be logged in

How do you want to handle this? Since the logout is kind of broken anyway, I would remove the new logout code from this PR, and try to handle it properly when we fix the multiple requests issue.

Ok.


Refactor variant merge strategy.

The former merge strategy has moved per https://github.com/googlegenomics/utils-java/pull/94
Sending this to a branch for now.  Travis CI will turn green after the next release of utils-java.

LGTM


dcc.Store Support

Do predefined templates in dash_labs support using the dcc.Store component
(https://dash.plotly.com/dash-core-components/store)?
If so, what might be the best way to use them in conjunction with a predefined template? When I attempt to have them as an output:
app = dash.Dash(__name__, plugins=[dl.plugins.FlexibleCallbacks()])
tpl = dl.templates.DbcRow(
    app, title="Select Correct Contours")

store = dcc.Store(id='store')
tpl.add_component(store, location='left')
@app.callback(
    args=dict(good=tpl.new_button("Good", label=None, id='GOOD'),
              bad=tpl.new_button('Bad', label=None, id='BAD')),
    output=[tpl.new_div(), tpl.new_div(), store],
    template=tpl)
def callback(good, bad, store):
     pass

app.layout = dbc.Container(fluid=True, children=tpl.children)
if __name__ == "__main__":
    app.run_server(debug=True)

I get this error:
Traceback (most recent call last):
  File "E:\kjans\Anaconda\coordinates\AI_Project\select_dashboard\main.py", line 59, in <module>
    @app.callback(
  File "C:\Users\KyleJanson\.conda\envs\py39\lib\site-packages\dash_labs\_callback.py", line 278, in _callback
    all_outputs, output_form = _normalize_output(output, template)
  File "C:\Users\KyleJanson\.conda\envs\py39\lib\site-packages\dash_labs\_callback.py", line 152, in _normalize_output
    raise ValueError("Invalid dependency: {}".format(dep))
ValueError: Invalid dependency: Store(id='store')

I've tried a few different approaches, but so far, the above error has been consistent across all of them.

Hi @kjans123
Currently there is no predefined helper function for dcc.Store()  (like there is for tpl.new_div() etc)  but it's still possible to use this component with a template.
Below is MWE based on  your sample code.  You can also find a few more examples using dcc.Store in this discussion on the forum.
import dash
import dash_core_components as dcc
import dash_labs as dl
import dash_bootstrap_components as dbc

app = dash.Dash(__name__, plugins=[dl.plugins.FlexibleCallbacks()])
tpl = dl.templates.DbcRow(app, title="Select Correct Contours")

store = dcc.Store(id="store")

@app.callback(
    args=dict(
        good=tpl.new_button("Good", label=None, id="GOOD"),
        bad=tpl.new_button("Bad", label=None, id="BAD"),
    ),
    output=[tpl.new_div(), tpl.new_div(), dl.Output(store, "data")],
    template=tpl,
)
def callback(good, bad):
    return (
        f"Good clicked {good} times",
        f"Bad clicked {bad} times",
        {"good": good, "bad": bad},
    )

@app.callback(dl.Input("store", "data"), template=tpl)
def display_store(stored_data):
    return f"store={stored_data}"

app.layout = dbc.Container(fluid=True, children=tpl.children)

if __name__ == "__main__":
    app.run_server(debug=True)

Thank you very much! This solves the issue,


merge package template from arlac77/npm-package-template

package.json

chore(scripts): update prepare@rollup -c from template
chore(scripts): update semantic-release@semantic-release from template
chore(devDependencies): update<EMAIL_ADDRESS>from template
chore(devDependencies): update<EMAIL_ADDRESS>from template
chore(devDependencies): update<EMAIL_ADDRESS>from template
chore(devDependencies): update<EMAIL_ADDRESS>from template
chore(devDependencies): update<EMAIL_ADDRESS>from template
chore(devDependencies): update<EMAIL_ADDRESS>from template
chore(engines): update<EMAIL_ADDRESS>from template

.travis.yml

chore(travis): merge from template .travis.yml

doc/README.hbs

docs(README): update from template

rollup.config.js

chore(rollup): update from template

tests/rollup.config.js

chore(rollup): update from template

.npmignore

chore(npm): update .npmignore from template

Coverage remained the same at 92.135% when pulling 57a8c41cb15f94b91d214f7af4108f983cba5f49 on template-sync-1 into db1cfd9ea8675fd3b80cc615c0bf597b667204c0 on master.

Codecov Report

Merging #34 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #34   +/-   ##
=======================================
  Coverage   89.55%   89.55%
=======================================
  Files          18       18
  Lines          67       67
=======================================
  Hits           60       60
  Misses          7        7

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 db1cfd9...57a8c41. Read the comment docs.


Make labels clickable on product page

One of the killer things on Open Food Facts web version is being able to browse all products of a same label by clicking on the label field on the product page (eg: Organic)
It would be great to make the brand field clickable
https://world.openfoodfacts.org/product/3560070575855/tofu-a-l-indienne-riz-basmati-et-lentilles-bio-carrefour-bio
Example with Organic
https://world.openfoodfacts.org/label/organic
https://world.openfoodfacts.org/label/organic.json

I would like to work on this issue

Working on it.

@shivanshsoni  I am already working on it.

@PrajwalM2212 Ok

@shivanshsoni  Thanks .

@shivanshsoni I opened another one for labels: https://github.com/openfoodfacts/openfoodfacts-androidapp/issues/1108

@shivanshsoni also another one for countries, since labels was taken: https://github.com/openfoodfacts/openfoodfacts-androidapp/issues/1109

@teolemon That one is also taken :-(


What are the pretrained-language-model that is obviously better than BERT and RoBERTa?

The BERT is described in the paper 《BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding》.
The RoBERTa is described in the paper 《RoBERTa: A Robustly Optimized BERT Pretraining Approach》.
Now 3 years past. Are there any pretrained-language-model that surpass them in most of the tasks? (Under the same or nearby resources)
Speedup without accuracy decreasing is also considered as a better one.

you should use Albert xlarge
https://mlcom.github.io/Create-Language-Model/


Uploaded IPA to apple via Flutter platform return with Missing Purpose reject

NSContactsUsageDescription, NSCalendarsUsageDescription, NSAppleMusicUsageDescription, NSMotionUsageDescription, NSSpeechRecognitionUsageDescription,Missing Push Notification Entitlement
I don't ask for this.
I don't use library that need permissions like that
dio moor_flutter provider intl alice encrypt flutter_launcher_icons
what should I do?
thanks

Add this strings in Info.plist with text like "App doesn't use this permission" or any other text. As long as your app don't request this permissions Apple will accept your app.

@Dorshitrit use this mentioned workaround or find which plugin which permissions requires and file an issue in the plugin's repository about this.
Closing since it seems to be not an issue with flutter,
if you disagree please write in the comments and I will reopen it


Feature Implementation : Player Voting for Future Features in Tic-Tac-Toe Game

Description:
Introducing a Player Voting System allows users to actively participate in shaping the future of your Tic-Tac-Toe game. This feature gives players a voice to suggest new ideas, vote on upcoming features, and influence game mechanics or design updates. Regular voting rounds will keep the community engaged and ensure that the game evolves in line with player preferences.

Suggestion Box for New Features
Voting on Suggestions
Voting Rounds for Feature Releases
Rewarding Players for Participation
Transparency and Updates on Progress
Community Feedback Polls
@iamparas0 I would love to work on this task, could you please assign this task to me?

please donot create multiple issues solve it in one

@iamparas0 Thank you!


Datetimepicker Needed

It will help in many use cases like meeting timing
I show this type of widget for datetimepicker. Is there any way to achieve this using flutter?

@KunjKanani
You can search for community plugins on pub.dev to check if there are any plugins already which offers this feature. See https://pub.dev/packages/flutter_datetime_picker as one such example.
Closing from here. You may ask the same question on support channels like StackOverflow for existing solutions too.


Provide a suppression mechanism for @typespec/http/no-routes

The #suppress directive does not work on some kinds of diagnostics, e.g. @typespec/http/no-routes.
Playground Link
It should either be made to work or some other mechanism provided to suppress these messages.

do not emit the warning if there is @service

est: 3


Add python3-sshtunnel

Please add the following dependency to the rosdep database.
Package name:
sshtunnel
Package Upstream Source:
https://github.com/pahaz/sshtunnel
Purpose of using this:
sshtunnel offers pure python way to ssh on different machines. The following use case is copied from https://github.com/pahaz/sshtunnel/#usage-scenarios

One of the typical scenarios where sshtunnel is helpful is depicted in the figure below. User may need to connect a port of a remote server (i.e. 8080) where only SSH port (usually port 22) is reachable.

    ----------------------------------------------------------------------

                                |
    -------------+              |    +----------+
        LOCAL    |              |    |  REMOTE  | :22 SSH
        CLIENT   | <== SSH ========> |  SERVER  | :8080 web service
    -------------+              |    +----------+
                                |
                             FIREWALL (only port 22 is open)

    ----------------------------------------------------------------------

Fig1: How to connect to a service blocked by a firewall through SSH tunnel.

In my use case it is used to access ROS logs/bags saved in mongo DBs on different machines via a mongo client with help of the sshtunnel's SSHTunnelForwarder class.
Distro packaging links:
Links to Distribution Packages

Debian: https://packages.debian.org/

https://packages.debian.org/unstable/python3-sshtunnel

Ubuntu: https://packages.ubuntu.com/

https://packages.ubuntu.com/focal/python3-sshtunnel

Fedora: https://packages.fedoraproject.org/

https://packages.fedoraproject.org/pkgs/python-sshtunnel/python3-sshtunnel/

Arch: https://www.archlinux.org/packages/

not available

Gentoo: https://packages.gentoo.org/

not available

macOS: https://formulae.brew.sh/

not available

Alpine: https://pkgs.alpinelinux.org/packages

not available

NixOS/nixpkgs: https://search.nixos.org/packages

not available

openSUSE: https://software.opensuse.org/package/

not available

Please fill in your TODO fields -- why is this a draft? Is there something more you wish to do before this is reviewed?

Hey @SteveMacenski I hoped that the draft is not directly publicly visible, but now everything is filled out and I changed the state into 'ready to review'.

Nope, drafts are the exact same as normal PRs, just without the ability for me to mergei t

CI: Error: Package 'python3-sshtunnel' could not be found for ubuntu bionic on amd64, Warning: Key 'python3-sshtunnel' might be satisifed by opensuse package named 'python3-sshtunnel': https://software.opensuse.org/package/python-sshtunnel

CI: Error: Package 'python3-sshtunnel' could not be found for ubuntu bionic on amd64, Warning: Key 'python3-sshtunnel' might be satisifed by opensuse package named 'python3-sshtunnel': https://software.opensuse.org/package/python-sshtunnel

Please see https://github.com/ros/rosdistro/pull/36071#discussion_r1102402076


chore(repo): Feature request updates

Description
Removes the feature request template from GitHub issues and points people to https://feedback.clerk.com/roadmap - also updates the PR template order (to align with folder order).
Also found an old link to jobs board that wasn't active anymore.
Fixes SDK-877
Checklist

[ ] npm test runs as expected.
[ ] npm run build runs as expected.
[ ] (If applicable) JSDoc comments have been added or updated for any package exports
[ ] (If applicable) Documentation has been updated

Type of change

[ ] 🐛 Bug fix
[ ] 🌟 New feature
[ ] 🔨 Breaking change
[x] 📖 Refactoring / dependency upgrade / documentation
[ ] other:

Packages affected

[ ] @clerk/clerk-js
[ ] @clerk/clerk-react
[ ] @clerk/nextjs
[ ] @clerk/remix
[ ] @clerk/types
[ ] @clerk/themes
[ ] @clerk/localizations
[ ] @clerk/clerk-expo
[ ] @clerk/backend
[ ] @clerk/clerk-sdk-node
[ ] @clerk/shared
[ ] @clerk/fastify
[ ] @clerk/chrome-extension
[ ] gatsby-plugin-clerk
[x] build/tooling/chore

This PR has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.


[GodotPhysics] Raycasts don't reliably collide with HeightMapShape3D

Godot version
v4.0.beta.custom_build.01ae26d31
System information
Pop!_OS 22.04, 5.19.0-76051900-generic, Intel(R) UHD Graphics (CML GT2)
Issue description
When casting rays from the camera in the direction of the mouse position, I found that in some camera positions and orientations, the result of the result of PhysicsDirectSpaceState3D.intersect_ray is empty where it ought to have found a collision.
When this occurs, there is generally a contiguous region of the heightmap through which rays cast from a given camera position won't produce a result. Different camera transforms produce different non-colliding regions (and some camera transforms result in no such regions). When I originally encountered this issue with non-flat heightmaps, I found non-colliding regions could occur anywhere in the heightmap, not necessarily touching edges, in non-rectangular shapes, and often multiple such regions would exist.
In the simplified reproduction project I've only observed rectangular non-colliding regions, usually at the +X edge but sometimes at +Z.
Steps to reproduce
I haven't isolated exact conditions for when this occurs. I've observed it to be sensitive to the following:

heightmap size: I've only been able to reproduce this with heightmaps of 20x20 and larger
raycast length: I've only been able to reproduce this with rays >20 length
camera transform (ray origin / direction): changes which regions of the heightmap don't collide, and in some cases prevent the issue. Directions closer to -Y seem much less likely to reproduce the issue.
heightmap shape: the flat heightmap in the repro project only seems to produce rectangular non-colliding regions at the edge of the heightmap, but for non-flat (specifically, simplex noise) maps I've seen multiple not-necessarily rectangular regions not necessarily touching edges.

The reproduction project sets a camera transform where the issue is apparent (and will cast rays to mouse position and position a sphere at the intersect location when detected). It also includes a script that casts an example ray that ought to collide but doesn't, and also draws a line corresponding to that ray to demonstrate visually that it ought to have collided.
Minimal reproduction project
heightmap_raycast_repro.zip

Can you reproduce this on 3.5.1 (with both Bullet and GodotPhysics)?

This reproduces on 3.5.1 with GodotPhysics but not with Bullet.

I can confirm this is still occurring on Godot 4.0 beta 16, with a flat (map_data nothing but zeroes) HeightMapShape3D of size 64x64.

What works *

Using a BoxShape3D works.
Using create_trimesh_collision() on the MeshInstance3D representing the terrain works.
Enabling Debug -> Visible Collision Shapes shows a correct looking wireframe for HeightMapShape3D.

What doesn't*

When using a HeightMapShape3D, manual raycasting with PhysicsDirectSpaceState3D.intersect_ray() returns an empty Dictionary for some regions of the shape.
When using a HeightMapShape3D, CollisionObject3D.input_event() does not receive any InputEvents for the same regions as previous point.

I can also reproduce this (v4.1.dev.custom_build [5860b02b6])
I have a hunch that this may happen at the borders between the collision shape triangles as seen with Visible Collision Shapes enabled.

using
heightmap_raycast_repro.zip
Raycast with issue seems to fall under this case here ray is long so it does query on higher level grid first
https://github.com/godotengine/godot/blob/f7c567e2f56d6e63f4749387a67e5ea4903c4696/modules/godot_physics_3d/godot_shape_3d.cpp#L1998
Stepping thru code, it looks like the loop here exit before it got to the chunk where the ray actually intersect
https://github.com/godotengine/godot/blob/f7c567e2f56d6e63f4749387a67e5ea4903c4696/modules/godot_physics_3d/godot_shape_3d.cpp#L1940
p_width and p_depth is the grid's width and depth (ceil(21/16) = 2 in the case of heightmap_raycast_repro.zip)
Think the fix is to change the logic to be if ((x < 0) || (z < 0) || (x >= p_width) || (z >= p_depth))
because x = 1 or z = 1 should still be valid chunk, but it will exit here.
tested this fix on this MVP and it seems to work heightmap_raycast_repro.zip
There's parts I still don't quite understand in this code, so looking more before I raise the PR to make sure it's the correct fix.
And also test fix on this MVP when i have time:
raycastHeightmapBug.zip


REQUEST: New membership for

GitHub Username
@falser101
Requirements

[x] I have reviewed the community membership guidelines
[x] I have enabled 2FA on my GitHub account. See https://github.com/settings/security
[x] I am contributing (any of the following apply: issues, discussions, PRs, reviews) to 1 or more Apollo repositories

List of contributions to the Apollo community

PRs reviewed/authored

https://github.com/apolloconfig/apollo/pull/4437
https://github.com/apolloconfig/apollo/pull/4459

+1

+1

@falser101 You have been added to the Apollo organization, please check the invitation from GitHub.


Update LICENSE

Let’s just change it to 2015–present.

@gaearon Do you want me to Squash this commit or fresh commit with new branch?

It’s fine, Github now squashes them 😄

Oh really, Good to hear that.
Thanks for merging my pull request.


Weather display can now show pressure in inHg as well as hPa

Default is hPa. Pushing the button toggles between hPa and inHg

@calibx : I have had this PR standing for three weeks now. Do you want me to abandon it?

Hi, sorry for that, I was working on the custom input. I will merge your PR today

Hi @calibx : I have pulled the latest code from the develop branch, but cannot compile it due to a missing file:


Replace emberAfCurrentCommand by commandObj in OnOff cluster

Problem
What is being fixed?  Examples:

OnOff Cluster was using emberAfCurrentCommand to get groups info

Change overview

Replace emberAfCurrentCommand by commandObj

Testing

Automated testing

fast track: small delta for equivalent code, created by domain owner.


Mount root

Implemented support for custom mount root using WSLGIT_MOUNT_ROOT environment variable as mentioned in this comment.

Perfect, thank you very much.


Publish all reports (WIP or not) so Brennan can access in Metabase

@popkinj  any update on this ticket please?  REALLY need this done this week!!!

Will make this a priority @CrystalChadburn


Serving of files is broken

Since the HTML encoders enablement, serving of HTML, images etc. has been broken.  Only javascript is being served. Are encoders being demanded even when none are desired?

The middleware is returning 206 Partial Content instead of the usual 200 OK.

Can you clarify what's broken?

I seem to only manage to serve JS files.

Which server are you using? (Kestrel, IIS, WebListener, etc.) Anything else interesting about the app? I want to make sure we have enough info to try to reproduce the issue.

I am using Nowin on Mono.


'module' object has no attribute 'float16'

Hi, after install the mxnet package, I tried to run the train_mnist.py, but there are some problems:
sudo python example/image-classification/train_mnist.py --network lenet --gpus 0
Traceback (most recent call last):
  File "example/image-classification/train_mnist.py", line 1, in <module>
    import find_mxnet
  File "/home/PPeiMi/mxnet-ssd2/mxnet/example/image-classification/find_mxnet.py", line 2, in <module>
    import mxnet as mx
  File "/home/PPeiMi/mxnet-ssd2/mxnet/python/mxnet/__init__.py", line 9, in <module>
    from . import ndarray
  File "/home/PPeiMi/mxnet-ssd2/mxnet/python/mxnet/ndarray.py", line 25, in <module>
    np.float16 : 2,
AttributeError: 'module' object has no attribute 'float16'

My python version is 2.6.

Be sure to follow the installation guide, BTW, use official repo for the mnist example


fix Issue 14276 - DWARF debug info for SIMD broken

subrange needs to follow vector type as child
bast type is encoded separately

Disable linux-32 tests, because core.simd.int4 isn't available.
Now should pass all tests.

Disable linux-32 tests, because core.simd.int4 isn't available.

Using new gdb testability and replaced int4 with int[4] on non X86_64 platforms.


Docs for using docker-compose for testing failing

The documentation at: http://bigchaindb.readthedocs.io/en/master/running-unit-tests.html
describes testing with the docker-compose run bigchaindb py.test -v command. However this just returns:
$ docker-compose run bigchaindb py.test -v
Creating bigchaindb_rethinkdb-data_1
Creating bigchaindb_rethinkdb_1
usage: bigchaindb [-h] [-c CONFIG] [-y] [-v] [--experimental-start-rethinkdb]
                  {configure,show-config,export-my-pubkey,init,drop,start,load}
                  ...
bigchaindb: error: argument command: invalid choice: 'py.test' (choose from 'configure', 'show-config', 'export-my-pubkey', 'init', 'drop', 'start', 'load')

Thanks for reporting this
can you try:
$ docker-compose run py.test -v

Thanks for the quick followup! Same result it seems:
docker-compose run --rm bigchaindb py.test -v
Creating bigchaindb_rethinkdb-data_1
Creating bigchaindb_rethinkdb_1
usage: bigchaindb [-h] [-c CONFIG] [-y] [-v] [--experimental-start-rethinkdb]
                  {configure,show-config,export-my-pubkey,init,drop,start,load}
                  ...
bigchaindb: error: argument command: invalid choice: 'py.test' (choose from 'configure', 'show-config', 'export-my-pubkey', 'init', 'drop', 'start', 'load')

hi @Latrasis
The documentation in the link is old. It shouldn't even be there.
For the latest documentation check the latest tag.
We refactored our docker setup recently an currently there is no way to run tests with docker.
I will create an issue to bring that functionality back.
In the meantime you could try to run the tests without docker http://bigchaindb.readthedocs.io/en/latest/running-unit-tests.html

Resolved by PR #313
The documentation was updated too:  http://bigchaindb.readthedocs.io/en/latest/running-unit-tests.html


Deploy consul as a stateful set as alternative to etcd

Is your feature request related to a problem? Please describe.
The etcd operator is basically abandoned and isn't very resilient.  Most of the issues we have had with the bank-vaults operator have been down to etcd under the hood.
Describe the solution you'd like
The operator should optionally deploy a conul statefulset as an alternative to using the etcd operator to deploy and etcd cluster.
Describe alternatives you've considered
We could manually deploy the consul helm charts, but I think one of the benefits of the etcd set up is that it's integrated with the operator and can set up all of the tls secrets.  It would be nice to do the same thing with a consul backend.

Yeah, I agree, the etcd-operator is archived, we should probably deprecate the feature entirely of configuring etcd via the operator.
We suggest users to use the Raft backend, it became stable in Vault 1.4, and offers HA storage without an external entity like Consul in this case. Wouldn't that work for you @dbason ?

I wasn't aware the raft storage had gone stable.  That being the case I think that will be perfect.

We are going to check Vault 1.4 in the coming days, I think Bank-Vaults should work fine with it, but we need to test it.

Anyhow, I'm not against Consul as a supported backend.


fix: license getter to handle deprecated formats

Follow up of #7
Now we should safely handle the different (deprecated) formats.

 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.:x: emmenko sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

Published 0.0.9 with your changes. Thank you!

Awesome 🙌


Native Federation and lib sharing: is it supposed to work like Module Federation ?

Hello,
I am trying to use the same configuration as MF for lib sharing, namely:
const {withNativeFederation, shareAll} = require('@angular-architects/native-federation/config');

module.exports = withNativeFederation({
  name: 'remote1',

  exposes: {
    './web-components': './src/bootstrap.ts',
  },

  shared: {
    'useless-lib': {
      singleton: true,
      strictVersion: true,
    },
  },

  skip: [
    'rxjs/ajax',
    'rxjs/fetch',
    'rxjs/testing',
    'rxjs/webSocket',
    // Add further packages you don't need at runtime
  ],
});

But the "singleton", "strictVersion", etc... seem to have no effect.
The only thing I can see happening is this:

If the host and the remote use the same version, useless-lib will be downloaded once
If the versions are different, the host and the remote use their own versions of useless-lib

This is already nice but how can I make singleton, strictVersion, etc... work like in Module Federation ? Is it even implemented ?
My configuration:

1 host (Angular 17.1.1)
1 remote (Angular 17.3.1)
The remote is a web component
I'm using dynamic module federation to load my microfrontends

Thank you

Try adding this and it should do the trick:
sharedMappings: ['useless-lib'],

for development I normally use the shareAll
module.exports = withNativeFederation({
  ...
  shared: {
      ...shareAll({ singleton: true, strictVersion: true, requiredVersion: 'auto' })
  },

  sharedMappings: ['useless-lib'],
  ...
});

But the "singleton", "strictVersion", etc... seem to have no effect.

Yes, that's right. We are going to implement this with one of the next versions.
The current behavior is the one that makes most sense for Angular applications:
a) If two or more MFEs have the very same Angular version (down to the patch version), the lib is shared
b) Otherwise, the different version is loaded
a) makes sense because the very same Angular version the app was compiled with is expected at runtime as the compiled version is using Angular's private API that does not (have to) align with semver.
In the case of b), you need to bootstrap the different Angular apps, e.g., by wrapping them into web components.


[Feature] 精简托盘后右键的菜单

Checklist

[X] I have already read docs/Tips.md, but my feature is not implemented.
[X] My suggested feature was not mentioned by others, and it is not a duplicate feature.

Summary
请问能否精简一下进入托盘后右键打开的菜单？今天更新了0.10.7-preview 2后，该菜单强制增加了原神和星铁的哔哩哔哩服选项。作为不玩b服的玩家，感觉不如之前简洁，因为对我来说是无关且冗余选项。
Solution or Design
请加一个开关可以自行选择显示B服与否，或者智能识别如果没有登录过B服就不显示？感谢大佬！

两种办法解决

删除B服的游戏定位

修复官服的游戏资源

已通过修复官服解决


https-proxy-agent

https://www.npmjs.com/advisories/1184

just reinstall local-web-server, that should pick up the latest version of https-proxy-agent.


Generate RHEL-94 and RHEL-810 manifests + update

This pull request includes:

[ ] adequate testing for the new functionality or fixed issue
[ ] adequate documentation informing people about the change such as

[ ] submit a PR for the guides repository if this PR changed any behavior described there: https://www.osbuild.org/guides/

I just ran the cmd/gen-manifests after adding the new repos, should be fine this way, right?


[BUG] - Camera-related NRE after using undo

Whenever I use the undo feature after deleting something, it seems to cause an exception when exiting delete mode.
Reproduction steps:

Place a building
Delete the building
Press ctrl+Z
Exit delete mode (or activate it and exit it if you exited it before pressing ctrl+Z)

The Unity log shows:
(Filename: D:\unity\Runtime/Export/Debug.bindings.h Line: 45)

bad query

(Filename: D:\unity\Runtime/Export/Debug.bindings.h Line: 45)

Look rotation viewing vector is zero

(Filename:  Line: 84)

NullReferenceException: Object reference not set to an instance of an object
  at BuildTool_BlueprintPaste.OnCameraPostRender (UnityEngine.Camera cam) [0x0004d] in <41b85be4a4694276afce9cdc6f3b0564>:0
  at (wrapper delegate-invoke) System.Action`1[UnityEngine.Camera].invoke_void_T(UnityEngine.Camera)
  at MainCamera.OnPostRender () [0x00007] in <41b85be4a4694276afce9cdc6f3b0564>:0

(Filename: <41b85be4a4694276afce9cdc6f3b0564> Line: 0)

NullReferenceException: Object reference not set to an instance of an object
  at BuildTool_BlueprintPaste.OnCameraPostRender (UnityEngine.Camera cam) [0x0004d] in <41b85be4a4694276afce9cdc6f3b0564>:0
  at (wrapper delegate-invoke) System.Action`1[UnityEngine.Camera].invoke_void_T(UnityEngine.Camera)
  at MainCamera.OnPostRender () [0x00007] in <41b85be4a4694276afce9cdc6f3b0564>:0

The last exception then repeats many times per second and is shown in-game.
The BepInEx log has nothing related to the error.

Fixed in v1.5.7


gradient (and gradient!) fails on basic example

In the following least squares objective, it does not seems like calling gradient! (or gradient) is doing anything?
MWE:
using Enzyme
using LinearAlgebra

# objective = 0.5 || y - X*beta ||^2
function ols(y, X, beta, storage=zeros(size(X, 1)))
    mul!(storage, X, beta)
    storage .= y .- storage
    return 0.5 * sum(abs2, storage)
end
ols(beta::AbstractVector) = ols(y, X, beta, storage)

# simulate data
n = 100
p = 50
X = randn(n, p)
y = randn(n)
beta = randn(p)
storage = zeros(n)
ols(y, X, beta, storage)

# autodiff grad
grad_storage = zeros(length(beta))
Enzyme.gradient!(Reverse, grad_storage, ols, beta)

# analytical grad
true_grad = X' * (y - X*beta);

Compare answers:
julia> [true_grad grad_storage]
50×2 Matrix{Float64}:
  -14.636    0.0
  -15.0858   0.0
 -184.264    0.0
    8.70142  0.0
  -71.4575   0.0
 -165.231    0.0
  -93.2602   0.0
  -49.404    0.0
  -62.5627   0.0
    ⋮
  136.334    0.0
   81.2353   0.0
  152.26     0.0
 -198.541    0.0
   41.5824   0.0
  -13.3246   0.0
  319.853    0.0
 -180.376    0.0

This is on Julia v1.9.1 with Enzyme v0.11.19

After reading Zygote.jl documentation I realized array mutation is hard for AD packages. Thus, I changed the objective slightly, and Enzyme.jl worked.
using Enzyme
using LinearAlgebra

# objective = 0.5 || y - X*beta ||^2
function ols(y, X, beta)
    storage = X * beta # avoid mul!
    obj = zero(eltype(beta))
    for i in eachindex(y)
        obj += abs2(y[i] - storage[i])
    end
    return 0.5obj
end
ols(beta::AbstractVector) = ols(y, X, beta)

# simulate data
n = 100
p = 50
X = randn(n, p)
y = randn(n)
beta = randn(p)
ols(y, X, beta)

# autodiff grad
grad1 = zeros(length(beta))
Enzyme.gradient!(Reverse, grad1, ols, beta) # method 1
grad2 = Enzyme.gradient(Reverse, ols, beta) # method 2
grad3 = zeros(length(beta))
Enzyme.autodiff(Reverse, ols, Active, Duplicated(beta, grad3)) # method 3

# analytical grad
true_grad = -X' * (y - X*beta)

# compare answers
[true_grad grad1 grad2 grad3]
50×4 Matrix{Float64}:
  223.421      223.421      223.421      223.421
   56.115       56.115       56.115       56.115
  162.285      162.285      162.285      162.285
  -58.6251     -58.6251     -58.6251     -58.6251
  109.732      109.732      109.732      109.732
 -152.867     -152.867     -152.867     -152.867
   51.7608      51.7608      51.7608      51.7608
  -64.8512     -64.8512     -64.8512     -64.8512
   38.8877      38.8877      38.8877      38.8877
  -62.3895     -62.3895     -62.3895     -62.3895
   92.2303      92.2303      92.2303      92.2303
  208.785      208.785      208.785      208.785
   47.6175      47.6175      47.6175      47.6175
    ⋮
  -26.5664     -26.5664     -26.5664     -26.5664
   65.8905      65.8905      65.8905      65.8905
  279.925      279.925      279.925      279.925
  -18.8817     -18.8817     -18.8817     -18.8817
 -169.649     -169.649     -169.649     -169.649
 -134.628     -134.628     -134.628     -134.628
  273.975      273.975      273.975      273.975
    0.220214     0.220214     0.220214     0.220214
 -130.344     -130.344     -130.344     -130.344
   -3.59516     -3.59516     -3.59516     -3.59516
  204.023      204.023      204.023      204.023
 -268.678     -268.678     -268.678     -268.678

But of course I would prefer mul!(storage, X, beta) over storage = X * beta. I'm not sure whether Enzyme.jl supports this operation.

I'm not an Enzyme expert or anything, but this case is discussed pretty clearly in the doucmentation.
You need to explicitly tell Enzyme about your storage array, e.g:
Enzyme.autodiff(Reverse, ols, Active, Const(y), Const(X), Duplicated(beta, grad_storage), Duplicated(storage, zero(storage)))

will produce the correct gradient:
maximum(abs.(true_grad .- grad_storage))
# output: 0.0

It might also be possible to pre-wrap the variables with Duplicated in the closure... but I'm not sure.

@bgroenks96 thank you very much. I actually saw that example, but its meaning somehow did not register with me when I first saw it. Closing this now.
using Enzyme
using LinearAlgebra

# objective = 0.5 || y - X*beta ||^2
function ols(y, X, beta, storage=zeros(size(X, 1)))
    mul!(storage, X, beta)
    storage .= y .- storage
    return 0.5 * sum(abs2, storage)
end
ols(beta::AbstractVector) = ols(y, X, beta, storage)

# simulate data
n = 100
p = 50
X = randn(n, p)
y = randn(n)
beta = randn(p)
storage = zeros(n)
ols(y, X, beta, storage)

# analytical grad
true_grad = -X' * (y - X*beta)

# Enzyme grad with inplace mul!
grad_storage = zeros(length(beta))
Enzyme.autodiff(Reverse, ols, Active, Const(y), Const(X), Duplicated(beta, grad_storage), Duplicated(storage, zero(storage)))

julia> [true_grad grad_storage]
50×2 Matrix{Float64}:
  191.052      191.052
  117.039      117.039
  -46.2872     -46.2872
  -59.5048     -59.5048
 -162.259     -162.259
 -241.862     -241.862
 -118.645     -118.645
    8.81539      8.81539
   32.7351      32.7351
   -4.78171     -4.78171
    ⋮
  219.782      219.782
  137.305      137.305
    0.131725     0.131725
  -38.0468     -38.0468
 -107.653     -107.653
  141.702      141.702
  138.302      138.302
  107.221      107.221
   59.7225      59.7225


invalid ELF header

Running ./bin/bootstrap results into
aws: error while loading shared libraries: /usr/local/aws-cli/v2/2.4.20/dist/libz.so.1: invalid ELF header

full log:
./bin/bootstrap                                                                       SIG(124) ↵  10007  H:M:S
== Building containers ==
WARNING: The AWS_ACCESS_KEY_ID variable is not set. Defaulting to a blank string.
WARNING: The AWS_SECRET_ACCESS_KEY variable is not set. Defaulting to a blank string.
WARNING: The CI variable is not set. Defaulting to a blank string.
Building google-ads-api-lambda
[+] Building 1.0s (8/8) FINISHED
 => [internal] load build definition from Dockerfile-build                                                                                0.0s
 => => transferring dockerfile: 43B                                                                                0.0s
 => [internal] load .dockerignore                                                                                0.0s
 => => transferring context: 2B                                                                                0.0s
 => [internal] load metadata for public.ecr.aws/sam/build-ruby2.7:latest                                                                                0.9s
 => [1/4] FROM public.ecr.aws/sam/build-ruby2.7@sha256:caed6d5ed272c6a9973965a909d0d0a0447447698dfed45                                                       0.0s
 => CACHED [2/4] RUN mkdir /lamby     && /usr/sbin/groupadd --gid 0 --system --force lamby     && /usr/sbin/useradd --uid 0 --gid 0 --non-unique --home-dir /lamby --shell /  0.0s
 => CACHED [3/4] RUN curl -sL https://rpm.nodesource.com/setup_14.x | bash - &&     yum install -y nodejs &&     curl --silent --location https://dl.yarnpkg.com/rpm/yarn.re  0.0s
 => CACHED [4/4] WORKDIR /var/task                                                                                0.0s
 => exporting to image                                                                                0.0s
 => => exporting layers                                                                                0.0s
 => => writing image sha256:81240fa31cfd3f25ae649da5b1b03200847f6091b20a0b1c4                                                                                0.0s
 => => naming to docker.io/library/google_ads_api_service_google-ads-api-lambda                                                                                0.0s

Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them
WARNING: The AWS_ACCESS_KEY_ID variable is not set. Defaulting to a blank string.
WARNING: The AWS_SECRET_ACCESS_KEY variable is not set. Defaulting to a blank string.
WARNING: The CI variable is not set. Defaulting to a blank string.
Creating google_ads_api_service_google-ads-api-lambda_run ... done
== Creating ECR repository, if needed. ==
== Ignore any RepositoryAlreadyExistsException errors ==
aws: error while loading shared libraries: /usr/local/aws-cli/v2/2.4.20/dist/libz.so.1: invalid ELF header

Any idea?

After investigating this issue, it occurs upon installation of wrong/non-compatible version on the local OS, I reinstalled the aws cli inside the docker image, and it worked fine then.

Any resolution fixing WARNING: The AWS_ACCESS_KEY_ID variable is not set. Defaulting to a blank string.?

So that is just a warning and what I would like to do is completely overhaul and split up the local development and CI/CD pipeline which would avoid this warning. Basically I'd like to use the .devcontainer spec.

I recently refactored the Lamby Cookiecutter to follow this pattern and outlined all the changes. It actually simplifies a lot. Review here:

https://github.com/customink/lamby-cookiecutter/pull/21
https://github.com/customink/lamby-cookiecutter/commit/4945ed2ef3ccc276763aa43c32714bc4bb9251bc


Support for image types other than qcow2, such as iso, ami, ovf, vdi

There is a missing info about that in docs, but .iso or other raw data types should work out of the box (image is just passed by libvirt to qemu - anything what qemu can handle - should work without any additional code).
Other mentioned image types will require use of qemu-img or even something more (ami is afair not recognizable by qemu-img). That could lead to additional time needed by our machinery during download phase, but should be quite easy to code.
Anyway - any patches welcomed ;)

Ups. That (.iso, .raw) was working up to last changes in image store usage, so above comment is partially incorrect.


[Feature] Supporting historical sync source alternative to RPC

Hi there!
I've been doing some experimenting with using an alternative data source (as opposed to the RPC) for the default friend-tech ponder indexer created in the pnpm create ponder flow.
Its an interesting case as there more than 6 million events to be indexed and from what I can tell it will take more than 15hours to sync using a paid RPC service. My experimentation goal was to try and populate the ponder_sync.db >100x faster (than using an RPC) and then being able to start the ponder service and allow it to index using this inserted data.
So far I've found some pretty interesting results:
1 - I am able to fetch all the required log, block and transaction data for the ponder_sync.db in this case (+6m events, blocks and txs) in around 12minutes from scratch.
2 - Writing to the sqlite db is currently the bottleneck, and seems to take in the order of 24minutes for the fetched data to be written and persisted to the db.
The experimental approach essentially opens a connection to the ponder_sync.db and continually batch inserts required data into the blocks, logs, logFilterIntervals and transactions tables. It runs completely independently of the ponder core code and no ponder core code is modified. Following this alternative historical sync, running the main ponder process successfully starts indexing from this data.
The alternative to the RPC enabling this speed up is hypersync (disclaimer: I am part of the team). Its a fast flexible alternative to the RPC catered for data heavy use-cases such as indexing.
A deeper integration of hypersync as an additional alternative to RPC in the historical sync service in ponder core might allow Ponder users to  achieve much quicker (>100x) historical sync times. This opt-in alternative could be useful for Ponder users who value or require this performance for their specific use-case. I completely understand this increases code complexity and maintenance. I was wondering if it might be worth it given the advantages it unlocks and curious to hear your thoughts and considerations.
Here is an example repo for you to try it out too: https://github.com/enviodev/friendtech-ponder-hypersync/tree/main
(keep in mind its currently bottlenecked by being a single thread process frequently blocked by sqlite inserts - this would change)

This is super interesting!


Invalid csv file

These changes help to detect files that aren't csv in order to ensure importing the file is possible.

It looks like your eclipse settings are changing the indentation levels. Can you do the following

Download the file at https://github.com/cinchapi/dev-tools/blob/master/CinchapiFormatter.xml
In Eclipse go to Preferences > Java > Code Style > Formatter and Import the file you downloaded
For each file you changed, press SHIFT + CMD + F to reformat the code

I updated the classes based on your feedback let me know if it's good.


Le Quang Liem currently have two separate names

Search for "Liem" returned 2 names

Since there's only one video under the name "Le Quang Liem" it's easier to change to "Quang Liem Le" (and keep using it going forward).
BUT, Liem is a Vietnamese and the proper way to write his name in Vietnamese is "Le Quang Liem" (family name before name).


How to add size mapping and force it to some specific size?

Yes I tried, but it fixed some standard sizes. I want to overwrite the default size and set it to some specific size for different browsers.

I am little bit confused. with dimensions you can set what do you want for each AD. It will completely override default dimensions.

.```
addSize([1300, 1024], [[728, 90]])
.addSize([1025, 768], [[728, 90]])
.addSize([916, 690], [[728, 90]])
.addSize([768, 1024], [[728, 90]])
.addSize([580, 480], [[234, 60], [300, 250], [300, 100]])
.addSize([480, 768], [[234, 60], [300, 250], [300, 100]])
.addSize([360, 640], [[234, 60], [300, 250], [300, 100]])
.addSize([320, 560], [[234, 60]])
.addSize([0, 0], [[234, 60], [300, 250], [300, 100]])

These are all the size which I wanted to set for different devices/dimensions.

You can use
<Ad dimensions=[[1300, 1024], [[728, 90]]] slot... />


throwing syntax sugar

Also added a test.

I think this can be formulated without expand:
class VariantInjTagged a b | a -> b where
  injTagged :: Record a -> Variant b

instance variantInjTagged ::
  ( RowToList r1 (RL.Cons sym a RL.Nil)
  , R.Cons sym a () r1
  , R.Cons sym a rx r2
  , IsSymbol sym
  ) =>
  VariantInjTagged r1 r2 where
  injTagged = inj (SProxy :: SProxy sym) <<< get (SProxy :: SProxy sym)

This would allow you to just write throw as:
throw :: forall m r1 r2 a.
  VariantInjTagged r1 r2 =>
  MonadThrow (Variant r2) m =>
  Record r1 ->
  m a
throw = throwError <<< injTagged

I know I originally said that I didn't really want this sugar in Variant core, but I might reconsider. It does seem a but weird to stick this here.

https://github.com/natefaubion/purescript-variant/pull/44


Failure to compile on Windows/MSVC

E:\Home\dev\ext-repos\abseil-cpp
λ bazel.exe test absl/...:all
____Loading package: @local_config_cc//
____Loading complete.  Analyzing...
____Found 40 targets and 54 test targets...
____Building...

This is using Visual Studio Community 2017.
It seems that the error "invalid numeric argument /Wextra" comes from the fact that it's a gcc / clang exclusive that's being applied to cl.exe.

Please try bazel.exe test --action_env=TMP=C:\Windows\Temp --cpu=x64_windows_msvc absl/...:all. This worked when I last tried.
The --cpu option is to fix your particular error.
The --action_env is for any death_test which requires creating file in temporary directory and bazel doesn't inherit environment variables.

Why not use vcpkg install abseil, see vcpkg commit:
https://github.com/Microsoft/vcpkg/commit/c9573312516172f095046e2fe7e9a1ae3a2631b8
https://github.com/Microsoft/vcpkg/commit/9f9b4bc5c85755af8eb5c2f74bec1d3b840eb781

@zhangxy988 this is fixed by cc4bed2d74f7c8717e31f9579214ab52a9c9c610, correct?

Yes, the --cpu option should no longer be needed.
The --action_env option is probably still needed for death_test to pass, but that's really a bazel-related issue.


Package upgrade: firebase

Summary
Package upgrade: firebase #1924
Changelog
[General] [Change] - upgrade firebase dependencies to the below versions
firebase_analytics: 10.1.0
firebase_core: 2.4.1
firebase_crashlytics: 3.0.11
firebase_messaging: 14.2.1
Upgrading Notes
Test Plan
The app is expected to work as usual.

Blocked by Google Play failed to upload artefacts#1931. Closing to revisit at a later time.


Mark region background color

The background for the mark region is a very ugly grey on my system, which looks terrible with solarized and other dark themes. Is there, or can there be a command to change that color?

Hi, can you give it a try now. This should at least fix the different color background between's Signature's sign and the rest of the SignColumn itself. Both should now be the same color.
If by grey, you're referring to the column that is present to the left of the number column, then that is decided by the colorscheme you've loaded. See the output of :highlight SignColumn. It'll match the grey column.
If you want to change the color of just the background of the sign, then take a look at :help g:SignatureMarkTextHL

I was able to fix the color of the leftmost column by putting this line in my vimrc:
hi SignColumn guibg=#002b36

But after messing around with some other colors, it did not seem like the background of the mark itself was updating appropriately. I'm not too worried, because the mark background seems to default to the text field background color, and that's what I set that column to.

the mark background seems to default to the text field background color

Right, that was a bug I fixed. If the sign column and text field colors are different then the sign would look ugly. The new behavior is that the background of the mark will match the background of the sign column.

No, but the background of the mark should match the sign column, not the text field, right?

That's right. At least, that's what I'm trying to do when I donated a fix after you opened this bug.
Is this not what you're seeing?

Well, after I updated to your fix, the column was still grey. Unfortunately, I didn't take a screenshot, but it was the same as in the first screenshot. Then I added the line above to the vimrc to change the color of that column manually. After commenting it out and reloading the vimrc, this is what I got:

So it appears that it's not a latent setting, but that it's actually actively changing the color to that nasty gray.

@Samcfuchs instead of changing the highlight colors to hex value, I think what you're looking for is setting them to 'none' which will make them follow the background.
I added this to my .vimrc
hi SignColumn guibg=none
hi SignColumn ctermbg=none
hi SignatureMarkText ctermbg=none

@Samcfuchs Let me reuse your screenshot.

I've marked the SignColumn with two different colored rectangles. The green box is the portion of the SignColumn over which Signature has control over to decide the color of the foreground and the background. The red box is the portion of the SignColumn over which Signature does not have any control. This is controlled by your colorscheme.
If you want to change the color of the area inside the red box then you have to modify your colorscheme or do what @Portersson suggested.


Close button icons do not have an accessible name

Description
When using VoiceOver/Safari/iOS 12.1.4 and swiping to the "X"  icon in the .top right corner of  the "we are hiring"  container, the user hears this control announced as the word "button".  Screen reader users will not know what this button does without providing an accessible name.
Location
Mobile iOS home page
Priority
High
Recommended fix
I recommend using aria-label to add an accessible name for this button as seen below.
<button aria-label="close we are hiring" class="header-hamburger-trigger" type="button"></button>
LOE
fast

This one is strange, our code for alerts clearly shows we add the "Close" text to the icon. Not sure why it's not working anymore. This could be a problem for every single one of our icons, if it stopped working.


Does HuggingFace use GPUDirectStorage?

System Info
- `Accelerate` version: 0.17.1
- Platform: Linux-5.4.0-42-generic-x86_64-with-glibc2.10
- Python version: 3.8.13
- Numpy version: 1.24.2
- PyTorch version (GPU?): 2.0.1+cu117 (True)
- `Accelerate` default config:
        - compute_environment: LOCAL_MACHINE
        - distributed_type: DEEPSPEED
        - mixed_precision: bf16
        - use_cpu: False
        - num_processes: 1
        - machine_rank: 0
        - num_machines: 1
        - rdzv_backend: static
        - same_network: True
        - main_training_function: main
        - deepspeed_config: {'gradient_accumulation_steps': 0, 'gradient_clipping': 0.0, 'offload_optimizer_device': 'cpu', 'offload_param_device': 'cpu', 'zero3_init_flag': True, 'zero3_save_16bit_model': True, 'zero_stage': 3}
        - fsdp_config: {}
        - megatron_lm_config: {}
        - downcast_bf16: no
        - tpu_use_cluster: False
        - tpu_use_sudo: False
        - tpu_env: []
        - dynamo_config: {'dynamo_backend': 'ONNXRT', 'dynamo_mode': 'default', 'dynamo_use_dynamic': True, 'dynamo_use_fullgraph': True}

Information

[ ] The official example scripts
[X] My own modified scripts

Tasks

[ ] One of the scripts in the examples/ folder of Accelerate or an officially supported no_trainer script in the examples folder of the transformers repo (such as run_no_trainer_glue.py)
[X] My own task or dataset (give details below)

Reproduction
It's not about the bug report.
Expected behavior
Hi, all.
Before going on, it's not about bug reporting but more about feature requests.
I'm using HuggingFace's Accelerate for offloading the parameters to SSD.
But when doing it, it always occupies the CPU thread blocking other commands from being conducted in parallel.
And I found that there's a Nvidia GPUDirectStorage that uses NVMe's DMA enabling the CPU to do other commands in parallel.
Does Accelerate already include this kind of function?
If not can I use it by customizing Accelerate source code?

No Accelerate does not support this/


Add: FlexSpacer

Useful when there is a flex container that has
leftover space that needs to still continue borders.
(like an adjustable sized grid inside a fixed height flex container)

Current coverage is 100.00%

Merging #99 into master will not affect coverage as of a9ce5da

@@            master     #99   diff @@
======================================
  Files           15      16     +1
  Stmts          131     134     +3
  Branches        16      16
  Methods          0       0
======================================
+ Hit            131     134     +3
  Partial          0       0
  Missed           0       0

Review entire Coverage Diff as of a9ce5da

Powered by Codecov. Updated on successful CI builds.

LGTM, think Flex is adding anything to the name? Why not just call it <Spacer />

@omgaz This only does anything useful when within a display: flex; container, so I want to make that more obvious than just calling it spacer.

Mergin' :ru:


Project Pupa: Stakeholder Interviews

Objectives
To reach out to project stakeholders to understand the target user and which teams and individuals would benefit the most from the Carbon for IBM.com redesign plan.
Tasks

[x] Set up a call to meet with Linda, Adopter SME and Product owner

Learn more about the primary end user and understand who the adopter teams are and how they are organized. (Ex. tiers)

Understand the vision of what the website should be from the perspective of the product owner

Learn more about our project objectives

Get recommendations of target users and potential interviewees

[x] Set up a call to meet with Jeff, Developer, Development SME and Tech Lead

Understand the user from a developer's perspective

Learn more about how developers use the Carbon for IBM.com website

Understand how the Carbon for IBM.com Dev Team connects and works with adopter teams.

Acceptance Criteria

[x] Get a list of 12 potential users/interviewees from Linda

[x] Understand the type of users that would benefit from the Carbon for IBM.com redesign

[x] Align on next steps and tasks necessary to ensure project success

User Interviewee list has been completed and can be viewed here.
@JennySanchez


NOISSUE - Add Requirements File

What does this do?
Adds a requirement file to be able to install a specific version of mkdocs that runs well. When the version isn't set mkdocs fails as the latest jinja version breaks serving docs locally.
Which issue(s) does this PR fix/relate to?
NOISSUE
List any changes that modify/break current functionality
Introduces a requirements file to be able to install a specific version of mkdocs and jinja that works
Have you included tests for your changes?
No
Did you document any new/modified functionality?
No
Notes
References https://github.com/mkdocs/mkdocs/issues/2799

Why all of this? Isn't pip supposed to pull and install all the dependencies for mkdocs?

We aren't changing from pip. We will still be using pip. Since the jinja2 3.1.0 release mkdocs does not work. If you have previous version of jinja it will work. Moving to a requirements files makes have the specific version of mkdocs and jinja that work.

@rodneyosodo please update this one and address the comments if needed.

Closing this because of https://github.com/mainflux/docs/pull/137#discussion_r1242385976


Fix "This container does not reference a native unsigned integer"

The value one assigns to a uint array slot must be unsigned. This did not throw
an error before, because Rakudo treated int and uint mostly the same. Now that
this is fixed in Rakudo, the bug in PDF::IO::Filter::RunLength surfaced. The fix
is backwards compatible (again because old Rakudo didn't care about int/uint).

Thanks


feature: build deb package for pouch

Signed-off-by: Zhanchun Zhang<EMAIL_ADDRESS>1.Describe what this PR did
This pr added a way to build rpm package
2.Does this pull request fix one issue?
fixes part of #67
3.Describe how you did it

Build pouch:deb image
cd pouch
docker build -t pouch:deb -f hack/package/deb/ubuntu-xenial/Dockerfile.x86_64 .
Mount a directory which contains gpg keys, eg
$ tree /root/deb/
deb
├── keys
│   ├── gpg
│   └── secretkey
run pouch:deb to generate deb package
docker run -it -e VERSION="0.1.0" -v /root/deb/:/root/deb pouch:deb bash -c hack/package/deb/build.sh
In this example, rpm package will be output in '/root/deb/package/' directory

4.Describe how to verify it
NONE
5.Special notes for reviews
NONE

Codecov Report

Merging #674 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #674   +/-   ##
=======================================
  Coverage   10.16%   10.16%
=======================================
  Files          71       71
  Lines        3422     3422
=======================================
  Hits          348      348
  Misses       3035     3035
  Partials       39       39

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 d4b0838...5ef56c9. Read the comment docs.

LGTM


highlight issue on TypeScript with higher order function

VSCode Version: 1.8.1
tsc: 2.2.0-dev.20170103

interface Foo {
  do(): (() => any)
  someProps: string
}

Notice string is not colored properly.

This issue was moved to Microsoft/TypeScript-TmLanguage#399


[BUG] Databricks 10.4 aggregations can fail when partially replaced

While implementing the shim for Databricks 10.4, I encountered test failures when hash aggregates were only partially replaced and contained counts and distinct counts.  It appears Databricks 10.4 is using a different intermediate buffer layout and intermediate values are not aligning properly between the GPU and CPU aggregation halves.


[BUG]  TypeError: expected string or bytes-like object on  pkg_resources/_vendor/packaging/version.py file

setuptools version
62.6.0
Python version
3.9.12
OS
Ubuntu 18
Additional environment information
No response
Description
While trying to install a package from source (pytorch-quantization), using python setup.py install, on a conda environment, I got the following error:
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/_distutils/command/install_lib.py", line 107, in build
    self.run_command('build_ext')
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/dist.py", line 1214, in run_command
    super().run_command(command)
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
    cmd_obj.run()
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 79, in run
    _build_ext.run(self)
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 410, in build_extensions
    self._check_cuda_version()
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 783, in _check_cuda_version
    torch_cuda_version = packaging.version.parse(torch.version.cuda)
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/version.py", line 49, in parse
    return Version(version)
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/version.py", line 264, in __init__
    match = self._regex.search(version)
TypeError: expected string or bytes-like object

Expected behavior
Not crashing with an error :)
How to Reproduce
Follow this README file to build from source
Output
python setup.py install
No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda'
/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
  warnings.warn(
running install
/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running bdist_egg
running egg_info
writing pytorch_quantization.egg-info/PKG-INFO
writing dependency_links to pytorch_quantization.egg-info/dependency_links.txt
writing requirements to pytorch_quantization.egg-info/requires.txt
writing top-level names to pytorch_quantization.egg-info/top_level.txt
/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/torch/utils/cpp_extension.py:387: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
  warnings.warn(msg.format('we could not find ninja.'))
reading manifest file 'pytorch_quantization.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'pytorch_quantization.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build/lib.linux-x86_64-3.9
creating build/lib.linux-x86_64-3.9/pytorch_quantization
copying pytorch_quantization/version.py -> build/lib.linux-x86_64-3.9/pytorch_quantization
copying pytorch_quantization/__init__.py -> build/lib.linux-x86_64-3.9/pytorch_quantization
copying pytorch_quantization/tensor_quant.py -> build/lib.linux-x86_64-3.9/pytorch_quantization
copying pytorch_quantization/quant_modules.py -> build/lib.linux-x86_64-3.9/pytorch_quantization
creating build/lib.linux-x86_64-3.9/pytorch_quantization/calib
copying pytorch_quantization/calib/__init__.py -> build/lib.linux-x86_64-3.9/pytorch_quantization/calib
copying pytorch_quantization/calib/histogram.py -> build/lib.linux-x86_64-3.9/pytorch_quantization/calib
copying pytorch_quantization/calib/max.py -> build/lib.linux-x86_64-3.9/pytorch_quantization/calib
copying pytorch_quantization/calib/calibrator.py -> build/lib.linux-x86_64-3.9/pytorch_quantization/calib
creating build/lib.linux-x86_64-3.9/pytorch_quantization/nn
copying pytorch_quantization/nn/__init__.py -> build/lib.linux-x86_64-3.9/pytorch_quantization/nn
copying pytorch_quantization/nn/functional.py -> build/lib.linux-x86_64-3.9/pytorch_quantization/nn
creating build/lib.linux-x86_64-3.9/pytorch_quantization/optim
copying pytorch_quantization/optim/__init__.py -> build/lib.linux-x86_64-3.9/pytorch_quantization/optim
copying pytorch_quantization/optim/helper.py -> build/lib.linux-x86_64-3.9/pytorch_quantization/optim
creating build/lib.linux-x86_64-3.9/pytorch_quantization/utils
copying pytorch_quantization/utils/__init__.py -> build/lib.linux-x86_64-3.9/pytorch_quantization/utils
copying pytorch_quantization/utils/quant_logging.py -> build/lib.linux-x86_64-3.9/pytorch_quantization/utils
copying pytorch_quantization/utils/reduce_amax.py -> build/lib.linux-x86_64-3.9/pytorch_quantization/utils
creating build/lib.linux-x86_64-3.9/pytorch_quantization/nn/_functions
copying pytorch_quantization/nn/_functions/__init__.py -> build/lib.linux-x86_64-3.9/pytorch_quantization/nn/_functions
copying pytorch_quantization/nn/_functions/quant_rnn.py -> build/lib.linux-x86_64-3.9/pytorch_quantization/nn/_functions
creating build/lib.linux-x86_64-3.9/pytorch_quantization/nn/modules
copying pytorch_quantization/nn/modules/__init__.py -> build/lib.linux-x86_64-3.9/pytorch_quantization/nn/modules
copying pytorch_quantization/nn/modules/tensor_quantizer.py -> build/lib.linux-x86_64-3.9/pytorch_quantization/nn/modules
copying pytorch_quantization/nn/modules/quant_rnn.py -> build/lib.linux-x86_64-3.9/pytorch_quantization/nn/modules
copying pytorch_quantization/nn/modules/quant_pooling.py -> build/lib.linux-x86_64-3.9/pytorch_quantization/nn/modules
copying pytorch_quantization/nn/modules/quant_instancenorm.py -> build/lib.linux-x86_64-3.9/pytorch_quantization/nn/modules
copying pytorch_quantization/nn/modules/quant_conv.py -> build/lib.linux-x86_64-3.9/pytorch_quantization/nn/modules
copying pytorch_quantization/nn/modules/_utils.py -> build/lib.linux-x86_64-3.9/pytorch_quantization/nn/modules
copying pytorch_quantization/nn/modules/clip.py -> build/lib.linux-x86_64-3.9/pytorch_quantization/nn/modules
copying pytorch_quantization/nn/modules/quant_linear.py -> build/lib.linux-x86_64-3.9/pytorch_quantization/nn/modules
running build_ext
Traceback (most recent call last):
  File "/home/anaconda/TensorRT/tools/pytorch-quantization/setup.py", line 55, in <module>
    setup(
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/__init__.py", line 87, in setup
    return distutils.core.setup(**attrs)
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 148, in setup
    return run_commands(dist)
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 163, in run_commands
    dist.run_commands()
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
    self.run_command(cmd)
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/dist.py", line 1214, in run_command
    super().run_command(command)
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
    cmd_obj.run()
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/command/install.py", line 74, in run
    self.do_egg_install()
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/command/install.py", line 123, in do_egg_install
    self.run_command('bdist_egg')
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/dist.py", line 1214, in run_command
    super().run_command(command)
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
    cmd_obj.run()
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/command/bdist_egg.py", line 165, in run
    cmd = self.call_command('install_lib', warn_dir=0)
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/command/bdist_egg.py", line 151, in call_command
    self.run_command(cmdname)
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/dist.py", line 1214, in run_command
    super().run_command(command)
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
    cmd_obj.run()
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/command/install_lib.py", line 11, in run
    self.build()
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/_distutils/command/install_lib.py", line 107, in build
    self.run_command('build_ext')
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/dist.py", line 1214, in run_command
    super().run_command(command)
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
    cmd_obj.run()
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 79, in run
    _build_ext.run(self)
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 410, in build_extensions
    self._check_cuda_version()
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 783, in _check_cuda_version
    torch_cuda_version = packaging.version.parse(torch.version.cuda)
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/version.py", line 49, in parse
    return Version(version)
  File "/apps/conda/anaconda/envs/trt84-base/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/version.py", line 264, in __init__
    match = self._regex.search(version)
TypeError: expected string or bytes-like object

Hi @ranrubin, thank you very much for pointing this out.
Just a quick question, is there any chance the version variable in your setup.py maybe be having a None value?
(I had a very quick look at your repo, maybe the VERSION file is missing in the MANIFEST.in?)

Ah, I see. sorry for the confusion!

I'm not a contributer to that repository, so I'm not that familiar with the code. It seems like setup.py uses VERSION file in order to get the version.

Yeah that is the part that I found very curious. In theory the default behaviour of open should be to open files in the text more/read-only (r), so version should already be a string... I have to investigate this issue more deeply.

This problem is crazy difficult to track down.
I tried to follow the instructions for building the package, but it is very difficult and I suspect it depends on the hardware you have available in your machine. The C code simply does not compile in my machine (probably because it requires you to have the correct hardware and drivers).
If I comment out the ext_modules=[...] part o setup.py things build correctly and the version seems to be recognized fine...
@ranrubin can you try this again with the latest version of setuptools + making sure to use a conda environment instead of relying on the global Python provided by conda?

I think pytorch-nightly besides possibility to use cuda 12.1 it not have specified version (i.e. auto-generated like 'pytorch-nightly_commit_'

This problem is crazy difficult to track down. I tried to follow the instructions for building the package, but it is very difficult and I suspect it depends on the hardware you have available in your machine. The C code simply does not compile in my machine (probably because it requires you to have the correct hardware and drivers).

> If I comment out the ext_modules=[...] part o setup.py things build correctly and the version seems to be recognized fine...

@ranrubin can you try this again with the latest version of setuptools + making sure to use a conda environment instead of relying on the global Python provided by conda?

works!!! genies!!!


Recieve "Real HTTP connections are disabled" on :put requests

I am testing put requests with Webmock and keep recieving "Real HTTP connections are disabled" errors. I am attempting to pass json in the body.
The requests are made via HTTParty, and are successful for actual requests.
The error suggestions keep failing.
The inital request:
@update_data = {:id => 1, :data => "something new"}
        @url = "http://mocksite/mock_route/1"
        stub_request(:put, @url)
          .with(:headers => {'Content-Type' =>	'application/json'}, :body => @update_data.to_json).
          to_return(:status => 200, :body => @update_data.to_json, :headers => {'Content-Type' =>	'application/json'})

Throws the following error:
Received error: Real HTTP connections are disabled. Unregistered request: PUT http://mocksite/mock_route/1 with body 'model_stub[id]=1&model_stub[data]=something%20new' with headers {'Content-Type'=>'application/json'}

You can stub this request with the following snippet:

stub_request(:put, "http://mocksite/mock_route/1").
  with(:body => "model_stub[id]=1&model_stub[data]=something%20new",
       :headers => {'Content-Type'=>'application/json'}).
  to_return(:status => 200, :body => "", :headers => {})

registered request stubs:

stub_request(:put, "http://mocksite/mock_route/1").
  with(:body => "{\"id\":1,\"data\":\"something new\"}",
       :headers => {'Content-Type'=>'application/json'})

Using the suggested stub:
stub_request(:put, "http://mocksite/mock_route/1").
  with(:body => "model_stub[id]=1&model_stub[data]=something%20new",
       :headers => {'Content-Type'=>'application/json'}).
  to_return(:status => 200, :body => "", :headers => {})

Throws the following:
Received error: Real HTTP connections are disabled. Unregistered request: GET http://mocksite/mock_route/1

You can stub this request with the following snippet:

stub_request(:get, "http://mocksite/mock_route/1").
  to_return(:status => 200, :body => "", :headers => {})

registered request stubs:

stub_request(:put, "http://mocksite/mock_route/1").
  with(:body => "model_stub[id]=1&model_stub[data]=something%20new",
       :headers => {'Content-Type'=>'application/json'})

Where it is telling me to use :get rather than :put which defeats the purpose of the mock.
The HTTParty call is:
response = HTTParty.put(url, :body => body, :headers => {"Content-Type" => "application/json"})

Where body is a Hash.

@eggmatters is body the issue or put method? Can you please test if put doesn't with empty body either? Can you check if that body works if you use post request instead of put?

The body with is primarily the issue here, I'm thinking. Using :post has the same issue:
Received error: Real HTTP connections are disabled. Unregistered request: POST http://mocksite/mock_route with body 'model_stub[id]=1&model_stub[data]=something%20new'

You can stub this request with the following snippet:

stub_request(:post, "http://mocksite/mock_route").
  with(:body => "model_stub[id]=1&model_stub[data]=something%20new").
  to_return(:status => 200, :body => "", :headers => {})

registered request stubs:

stub_request(:post, "http://mocksite/mock_route/1").
  with(:body => "{\"id\":1,\"data\":\"something new\"}",
       :headers => {'Content-Type'=>'application/json'})

But I've successfully used :post and :put elsewhere.

It looks like I ran up against a couple of conventions here based on a not-so-great understanding of things.

Stubbing with provided little value to my tests. Additionaly, it looks like NET::HTTP is actually re-encoding the request as a query string. Removing the with method helped.
Received error: Real HTTP connections are disabled. Unregistered request: GET http://mocksite/mock_route/1 was a valid error as I am calling GET on successful update.
The tested class simply inspects the status, and calls GET if success. So, a valid, successful stub that works and provides the coverage I need is:

stub_request(:put, "http://mocksite/mock_route/update/1.json").
          to_return(:status => 200)

Sorry for the commotion. You may close this issue. Thanks for your time. This is a great gem by the way.

closing this since it was resolved.


fix: update CI/CD process to enable auto-release workflow

Description

add new hook to pre-commit to fix eof lines
add new release.yml workflow. this workflow will automatically:

create and push new tag for next semver based on conventional-commits
create GitHub release with notes
update Changelog with release notes
this workflow will also automatically notify PRs that are included in the release, mimicking the manual behavior but now its automated https://github.com/clowdhaus/terraform-aws-rds/pull/1#issuecomment-952097291

remove old chglog configs and Makefile

Motivation and Context

automate release process in a standardized manner
standardize new CI workflow (copying from RDS Aurora)

Breaking Changes

No

How Has This Been Tested?

[x] https://github.com/terraform-aws-modules/terraform-aws-rds/pull/361

Hi @bryantbiggs !
Could you please make a fix for this bug (I hate JS and everything around it) - https://github.com/terraform-aws-modules/terraform-aws-atlantis/actions/runs/1480493754 ?
After this fix I am going to merge similar PRs in other repositories because I didn't make it as code (yet).

@antonbabenko its the custom release message - is there any harm just sticking with the default message/behavior? https://github.com/terraform-aws-modules/terraform-aws-atlantis/pull/239

I just wanted to have a link to the release but #239 looks great. Thank you for it!


PHOENIX-4688 Kerberize python phoenixdb

Lets rip out httplib and replace with requests and use requests kerberos
Notes

This PR mirrors requests kerberos until such time that the maintainers of reuests-kerberos can merge https://github.com/requests/requests-kerberos/pull/115
This is trivial comparing to the integration test required
Will not work out of the box, since requires virtualenv on anaconda
Excluded the IT from list, needs to be invoked manually
mvn -Dit.test=org.apache.phoenix.end2end.SecureQueryServerPhoenixDBIT verify
Supports both virtualenv and conda install now via this hack
conda create -y -p $PY_ENV_PATH || virtualenv $PY_ENV_PATH

Standalone install
This is currently a manual procedure with a few steps due to the current version not being in a public pipy and also the fact that we had to fork requests-kerberos

Create a python virtual environment by calling conda create or virtual env
. activate the virtual environment
pip install phoenix/python/requests-kerberos
pip install phoenix/python/phoenixdv-module
You need kerberos credentials run kinit
Profit

Example script
import phoenixdb
import phoenixdb.cursor
import sys

if __name__ == '__main__':
    pqs_port = sys.argv[1]
    database_url = 'http://localhost:' + str(pqs_port) + '/'

    print "CREATING PQS CONNECTION"
    conn = phoenixdb.connect(database_url, autocommit=True, auth="SPNEGO")
    cursor = conn.cursor()

    cursor.execute("CREATE TABLE users (id INTEGER PRIMARY KEY, username VARCHAR)")
    cursor.execute("UPSERT INTO users VALUES (?, ?)", (1, 'admin'))
    cursor.execute("UPSERT INTO users VALUES (?, ?)", (2, 'user'))
    cursor.execute("SELECT * FROM users")
    print cursor.fetchall()

How do we make sure requests-kerberos is built in a way that phoenixdb will grab it? (e.g. 0.13.0.dev0-phoenixdb)

Ah, I see this is updated in python/requests-kerberos/requests_kerberos/init.py. We should update python/phoenixdb/requirements.txt to make sure we pull that 0.13.0.dev0-phoenixdb, right?

Tried to run the test, but it failed with:
2018-07-10 13:43:55,599 ERROR [main] end2end.SecureQueryServerPhoenixDBIT(359): + . deactivate ''
2018-07-10 13:43:55,599 ERROR [main] end2end.SecureQueryServerPhoenixDBIT(359): /Users/jelser/projects/phoenix.git/phoenix-queryserver/./src/it/bin/test_phoenixdb.sh: line 12: deactivate: No such file or directory

Might have been me hacking on things... digging more.

@joshelser If you are still unable to get .deactivate to work, remove it from the shell script for now and we can revisit it.  Again I am being overly pedantic here, but a the shell exits, we really do not need to clean up any environment.

If you are still unable to get .deactivate to work, remove it from the shell script for now and we can revisit it. Again I am being overly pedantic here, but a the shell exits, we really do not need to clean up any environment.

Ok. I'm looking at this again today. Thanks for the feedback so far.
The test/code looks good to me. I think we just need to update documentation to explain what we're doing (maybe a README.md in python/?)

Ugh, I'm getting frustrated:
I have MIT kerberos on my Mac, so I unblocked myself first by just forcing the minikdc config file to be made instead of the if-branch you added, Lev.
The next thing, I get a failure trying to launch python from the virtualenv:
/Users/jelser/projects/phoenix.git/phoenix-queryserver/./src/it/bin/test_phoenixdb.sh: line 59: 66933 Illegal instruction: 4  python $PYTHON_SCRIPT $PQS_PORT

This was reproducible doing it by hand, so I thought maybe it was related to me using python-2.7.14 (old).
So, I switched over to Python-3.6.4, reinstalled everything, and I got this.
Traceback (most recent call last):
  File "/private/var/folders/4q/q02ykc2j5l1fg8nbs_sczskh0000gp/T/tmp.iUMwkyIZ/lib/python3.6/site-packages/requests_kerberos/kerberos_.py", line 2, in <module>
    import kerberos
ImportError: dlopen(/private/var/folders/4q/q02ykc2j5l1fg8nbs_sczskh0000gp/T/tmp.iUMwkyIZ/lib/python3.6/site-packages/kerberos.cpython-36m-darwin.so, 2): Symbol not found: _mempcpy
  Referenced from: /private/var/folders/4q/q02ykc2j5l1fg8nbs_sczskh0000gp/T/tmp.iUMwkyIZ/lib/python3.6/site-packages/kerberos.cpython-36m-darwin.so
  Expected in: flat namespace
 in /private/var/folders/4q/q02ykc2j5l1fg8nbs_sczskh0000gp/T/tmp.iUMwkyIZ/lib/python3.6/site-packages/kerberos.cpython-36m-darwin.so

I ran into another GH issue saying that pykerberos==1.1.14 fixed it for them, but I'm not seeing a difference locally.
How do you feel about requiring Docker, @pu239ppy? ;)

@joshelser Not sure how you got MIT on Mac OS X, is it in some ports package?  I can try this later on ubuntu perhaps, if you want a test with MIT.  I suppose integrating docker into the mix would make things interesting.  I'll try it over the weekend if I get the time

Not sure how you got MIT on Mac OS X, is it in some ports package

Yeah, homebrew has a krb5 package which I use for running stuff locally (e.g. I put it on the PATH before the Heimdal, osx-provided variant)

I suppose integrating docker into the mix would make things interesting. I'll try it over the weekend if I get the time.

I'm playing with different versions of python now, but am just worried about the feasibility of this actually working on the general person's machine given how much I'm struggling :\

Ah, I think my issue might have been cruft sitting in python/requests-kerberos/, the build dir and the .egg-info dir.
Getting a straightforward HTTP/401 error now. That I know how to deal with :)

Ok, where I'm at now:

Python 2.7.15 (installed via pyenv)
Using virtualenv to circumvent the .sh script
Modified the junit test to just leave it running
Modified the junit test to just use the minikdc's kdc.conf
Pulled back the pykerberos dependency to 1.1.14 to get past an "illegal instruction error" that I get with pykerberos-1.2.1 (or whatever pip found)

This gets the phoenixdb client to actually submit the initial POST and get the WWW-Authenticate: Negotiate header back. However, my client seems to be unable to generate its challenge data from our mini kdc:
DEBUG:phoenixdb.avatica.client:POST http://localhost:60358/<EMAIL_ADDRESS>{'content-type': 'application/x-google-protobuf'}
DEBUG:urllib3.connectionpool:Starting new HTTP connection (1): localhost:60358
send: 'POST / HTTP/1.1\r\nHost: localhost:60358\r\nConnection: keep-alive\r\nAccept-Encoding: gzip, deflate\r\nAccept: */*\r\nUser-Agent: python-requests/2.19.1\r\ncontent-type: application/x-google-protobuf\r\nContent-Length<EMAIL_ADDRESS>reply: 'HTTP/1.1 401 Unauthorized\r\n'
header: Date: Fri, 13 Jul 2018 17:06:02 GMT
header: WWW-Authenticate: Negotiate
header: Cache-Control: must-revalidate,no-cache,no-store
header: Content-Type: text/html; charset=ISO-8859-1
header: Content-Length: 281
header: Server: Jetty(9.2.19.v20160908)
DEBUG:urllib3.connectionpool:http://localhost:60358 "POST / HTTP/1.1" 401 281
DEBUG:requests_kerberos.kerberos_:handle_401(): Handling: 401
ERROR:requests_kerberos.kerberos_:generate_request_header(): authGSSClientStep() failed:
Traceback (most recent call last):
  File "/Users/jelser/projects/phoenix.git/python/requests-kerberos/requests_kerberos/kerberos_.py", line 235, in generate_request_header
    negotiate_resp_value)
GSSError: (('Unspecified GSS failure.  Minor code may provide more information', 851968), ('Message stream modified', 100001))
ERROR:requests_kerberos.kerberos_:(('Unspecified GSS failure.  Minor code may provide more information', 851968), ('Message stream modified', 100001))
Traceback (most recent call last):
  File "/Users/jelser/projects/phoenix.git/python/requests-kerberos/requests_kerberos/kerberos_.py", line 235, in generate_request_header
    negotiate_resp_value)
GSSError: (('Unspecified GSS failure.  Minor code may provide more information', 851968), ('Message stream modified', 100001))

I can't seem to unwrap what's wrong with the request to the KDC which is preventing that from happening. Need to find more debug...

If there's a bright-side, it's something in my environment. Spinning up the JDBC thin client against this setup works:
$ PHOENIX_OPTS="$PHOENIX_OPTS -Dsun.security.krb5.debug=true -Djava.security.krb5.conf=/Users/jelser/projects/phoenix.git/phoenix-queryserver/target/test-data/8bc1abb8-79fa-4beb-aa56-fe3ae4edff64/kdc/1531499757782/krb5.conf " /usr/local/lib/phoenix-4.14.0-HBase-1.4/bin/sqlline-thin.py http://localhost:60358 -a SPNEGO

On the note about docker, trying to think about this, I feel like a docker environment that can spin up all of the necessary stuff to run both of the python tests as well as this new one will be best.
Essentially, in the docker container, we have PQS up with all of the necessary environment stuff which will make all of our current tests (and any future test) that much easier to automate.
I'm also happy to try to help with that.  I think you got bit by 5.x moving over to master. Any chance you could throw a rebase on here? Holler if it's ready for me to look at, too. I see your new jar for testing.

Hi pu239ppy, I have some questions, can you help me.
Questions are as follows：
1、In the fourth step, pip install phoenix/python/phoenixdv-module does not mean to install phoenixdb?  I run: pip install phoenixdb
2、In the last setp, Profit: What is the operation to perform?
3、I have executed kinit in the virtual environment, but the code in the Example script is reported incorrectly. The detailed error message is as follows:
HTTP ERROR: 401
Problem accessing /. Reason:
Unauthorized
Am I wrong, please guide me, thank you very much.

@zhouwei0914 This PR is no longer active, please see #344
However here is a quick recap of the issue:  It has been relatively easy to rewrite python-phoenixdb to use requests, however we found out that during authentication requests-kerberos sends a kerberos OID rather then a SPNEGO OID for mechanism.  There were two workarounds

Patch requests-kerberos (was never merged requests-kerberos#115 )
A new SPNEGO handler for Avatica that would override Jetty's default handler (CALCITE-1922)

It turned out that 2 Produced the desired effect that I abandoned the path of attempting to path requests-kerberos.  However in the current PR #344 on top of Phoenix 5 it appears that this strategy no longer works. See additional details in later comments in PHOENIX-4688


Fix typo in readme.md

<!--
Thank you for submitting a pull request!

Please verify that:
* [ ] There is an associated issue in the `Backlog` milestone (**required**)
* [x] Code is up-to-date with the `main` branch
* [ ] You've successfully run `gulp runtests` locally
* [ ] There are new or updated unit tests validating the change
--!>
A small grammatical error with preposition used: at -> on

Related: https://github.com/microsoft/TypeScript/pull/45834#issuecomment-919606286

Agreed, this is grammatical in American English. No change necessary.


deepActiveElement added to dom API

According to the current spec, http://w3c.github.io/webcomponents/spec/shadow/#active-element Document.activeElement returns "adjusted" element, i.e. when the real focused element is within a shadow tree, it returns the top-most shadow host in the Document treescope.
(w3c/webcomponents#104)

Can you rebase this against master, I fixed a bunch of whitespace lines in dom-api.hml and it will be easier to look at :)
From what I can see, if you change https://github.com/MartinMoizard/polymer/blob/deepActiveElement/src/lib/dom-api.html#L899 to be wrap(document).activeElement, then you can make https://github.com/MartinMoizard/polymer/blob/deepActiveElement/src/lib/dom-api.html#L905 just be return node.

@sorvell for style review

@azakus I rebased, that's now easy to read :). I also made the changes you suggested but a unit test is failing on Firefox 41. I will check on Monday what's happening.

@azakus I fixed the unit tests. I had to return wrap(node) instead of node like you suggested. Tell me if I'm missing something. Thanks.

:+1:

@sorvell did you have time to check this pull request? Thanks!

Sorry for the delay. Is there an issue filed that this is intending to solve? We'll need to discuss why this type of API is necessary before accepting this PR. Thanks.

@sorvell There's no issue filed regarding this fix (for now).
Here is a use case that needs this new API: we are building a pivot widget, and we need to store the focused element (in our case this is a cell of the pivot) in order to restore the focus later in a specific scenario.
Let me know if you need more details. Thanks

We're trying to enforce a policy that every PR has an issue, so that'd be best.
We're disinclined to add this feature to Polymer. Strictly speaking this API is breaking encapsulation since it exposes a node available in a scoped tree. While the platform explicitly allows users to look inside scoped trees (via this.shadowRoot), it's probably not a pattern we want to codify within Polymer itself.
This is definitely something your pivot widget can, itself, do; alternatively, you could expose this information more directly within the elements you're using. Of course, that is likely only feasible if the set of elements that can be inside the pivot widget is known and under your control.
In general, focus treatment in Shadow DOM is an area that we think needs more work so it would be helpful to know more about the details of your use case.

@sorvell Thank you for your insights, we managed to use js events to capture the currently focused dom element.