mmul with row vector view array incorrect

Reported in gitter earlier:
public static void main(String[] args) throws Exception {

    INDArray a = Nd4j.zeros(3,3);
    a.put(0,0, 1);
    a.put(1,0, 1);
    a.put(2,0, 1);
    INDArray b = Nd4j.rand(1,5);
    System.out.println(b);
    INDArray c = a.get(NDArrayIndex.all(),NDArrayIndex.interval(0, 1)).mmul(b);
    System.out.print(c);
}

I checked earlier on 0.8.0, and a.get(...).dup().mmul(b) gives different (expected) results.

Indexing is the first suspect I guess?

2 июня 2017 г., в 08:06, Alex Black<EMAIL_ADDRESS>написал(а):
Reported in gitter earlier:
public static void main(String[] args) throws Exception {
INDArray a = Nd4j.zeros(3,3);
a.put(0,0, 1);
a.put(1,0, 1);
a.put(2,0, 1);
INDArray b = Nd4j.rand(1,5);
System.out.println(b);
INDArray c = a.get(NDArrayIndex.all(),NDArrayIndex.interval(0, 1)).mmul(b);
System.out.print(c);

}
I checked earlier on 0.8.0, and a.get(...).dup().mmul(b) gives different (expected) results.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@raver119 Thinking about this again: indexing probably wouldn't be my first guess.
I'm thinking strides or 'need to dup' check in gemvParameters
https://github.com/deeplearning4j/nd4j/blob/master/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/blas/params/GemvParameters.java


leading zeros in text fields are removed if text appears numeric

Not sure if this is sqlpad or middleware. My sql output includes an id which is a 9 character string, eg.
'123456789',
'012345678',
'001234567',
'000123456', etc
This is tabulated as
123456789,
12345678,
1234567,
123456, etc
The problem extends to charting where, for example, line charts convert text labels to numbers when they appear numeric.
MS Excel does the same with csv files. My current 'fix' is concat(':',id) and then tabulate or chart using the concat variable.

Hi @freevryheid  - thanks for reporting this. This is something sqlpad is doing. Sometimes the database drivers encode bigint values as text, so I was trying to reverse that and missed this case.
This will be fixed in next release.


Refs #33216 -- Made @deconstructible do not change path for subclasses.

@AllenJonathan Thanks :+1: A regression test is missing.

@AllenJonathan Thanks 👍 A regression test is missing.

Yeah, on it.

@AllenJonathan Thanks :+1: Welcome aboard :boat:
I made edits to tests, and pushed unrelated tests to a separate commit.


Update metric normalization

https://develop-git-statsd-unicode-escapes.sentry.dev/sdk/metrics/#normalization

@stayallive When you look at the linked docs, regarding Line Feed, Carriage Return and Tab.
I don't think you can use these characters in PHP. Or can you?

You can right... "\n\r\t" (only inside ")?
So technically you can, but it's a stretch anyone would do it on purpose. But should also be easy to replace right? Something like str_replace(["\n", "\r", ...], ['\n', '\r', ...], $item) I'm thinking?


Jupyter Notebook Testing Improvements

This is for internal use only; if you'd like to open an issue or request a new feature, please open a bug or enhancement issue
Instructions
This document should be filled out prior to embarking on any project that will take more than a couple hours to complete. The goal is to make sure that everyone is on the same page for the functionality and requirements of new features. Therefore, it's important that this is detailed enough to catch any misunderstandings beforehand. For larger projects, it can be useful to first give a high-level sketch, and then go back and fill in the details. For smaller ones, filling the entire thing out at once can be sufficient.
Relevant background
The Jupyter Notebook tests are currently rather inflexible and complex. It makes adjusting the notebooks themselves quite difficult as the tests also need to be updated in conjunction.
Design overview
Utilize a class based testing implementation with one class per notebook. pytest has special _setup() functions which behave like __init__() methods in regular python classes, therefore we can setup any variables necessary for each notebook (like precomputed data, etc...). For each class we should have a function per tagged Jupyter Notebook cell, which runs that cell.
If we utilize pytest-order we can order the tests the same way as the user would run the cells.
In addition we can create a temporary path utilized by the all the notebook tests, so all of their outputs can be sent there, and discarded once the tests are finished.
Here are some guidelines:

We should test the jupyter notebooks for completeness (i.e. the notebooks run without crashing / halting)
Only create a small testing dataset if necessary.
Use testbook.inject sparingly

Code mockup
import pytest
from testbook import testbook
from typing import Iterator
import pathlib
import os

# Sets the notebook testing session directory. Saves all notebook related files
# in a temporary directory.

@pytest.fixture(scope="session")
def base_dir_generator(tmp_path_factory) -> Iterator[pathlib.Path]:
    """
    A Fixture which creates the directory where the all notebook test inputs and outputs are
    saved.
    Sets the path once for all notebook related tests.

    Args:
        tmp_path_factory (pytest.TempPathFactory): Factory for temporary directories under the
            common base temp directory.

    Yields:
        Iterator[pathlib.Path]: The iterable path containing the path of the `notebook_tests`
        inputs and outputs.
    """
    notebook_test_output_dir = tmp_path_factory.mktemp("notebook_tests")
    yield notebook_test_output_dir

SEGMENT_IMAGE_DATA_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)),
                                       '..', '..', 'templates', '1_Segment_Image_Data.ipynb')

@testbook(SEGMENT_IMAGE_DATA_PATH, timeout=60000, execute=False)
class Test_1_Segment_Image_Data(tb, base_dir_generator):
    @pytest.fixture(autouse=True)
    def _setup(self):
        """
        Sets up necessary data and paths to run the notebooks.
        """
        # Create any simulated / fake / testing data necessary here
        self._image_data = ... # Create the tiffs
        self._paths = ... # Set any paths relative to the `setup_temp_path_factory` (a.k.a base_dir)

    @pytest.mark.order(0)
    def test_imports(self):
        self.tb.execute_cell("import")

    @pytest.mark.order(1)
    def test_create_dirs(self):
        self.tb.execute_cell("create_dirs")

    # Skip downloading the example dataset cell
    @pytest.mark.skip(reason="Either don't download the example dataset (therefore generating all data necessary), or create a small dataset used only for notebook testing.")
    @pytest.mark.order(2)
    def test_download_example_dataset(self):
        self.tb.execute_cell("download_dataset")

    @pytest.mark.order(3)
    def test_validate_path(self):
        self.tb.execute_cell("validate_path")

    # Here we run a cell, and then test the value of on a object in that cell.
    @pytest.mark.order(4)
    def test_load_fovs(self):
        self.tb.execute_cell("load_fovs")

        nb_fovs = tb.ref("fovs")
        expected_fovs = ["fov0", "fov1", "fov2"]
        assert set(nb_fovs) == set(expected_fovs)

    ...

    # Here we run a cell and then test STDOUT. This runs the `create_deepcell_output` cell
    # Test to make sure that the output is printing
    @pytest.mark.order(5)
    def test_create_output(self):
        self.tb.execute_cell("create_output")

        assert "Extracting tif files from DeepCell response" in tb.cell_output_text

Required inputs

A temporary directory to get all the notebook outputs in one place.

Including creating any data used by the notebooks.

Each notebook should have appropriately tagged cells.

Output files

All output files should output to the temporary directory, there are no outputs otherwise.

Timeline
Give a rough estimate for how long you think the project will take. In general, it's better to be too conservative rather than too optimistic.
About 1 week.
Estimated date when a fully implemented version will be ready for review: 10/17, post example dataset PRs.
Estimated date when the finalized project will be merged in: 10/20.

@ngreenwald

Great, lets discuss today at standup

Before getting started on this, I think it would be useful to decide which code that injects/tests a particular cell should be kept and migrated over to this framework, and which should be removed. Given that our goal is only to do integration testing in the noteobooks, there will likely be some cells whose custom code can be deleted, but others where we think it's worthwhile.  What's the thinking behind injecting for things like the list of populations? Do we expect the test data to be different?

@ngreenwald It's mainly cause the test FOVs that get made have generic channel names like chan_0, chan_1, etc.

This looks good.

Got it, so if we have a small test dataset of real data that we use instead, we could get rid of some of those modifications and just run the cells as is?

Yeah that would work as well. And it could also be cached locally + on travis.


Contributing APIs

I'd like to contribute the SkyPilot API. What's the best way to add it to Gorilla?

Hi @romilbhardwaj Thank you for your interest! Yes, we would love to have SkyPilot integrated into Gorilla! In #9 we detail how to submit APIs. The walk through in the data/README.md should be helpful. In case you run into any issues, or have any suggestions - let us know!
Excited to welcome SkyPilot API 🚀

@ShishirPatil Is it possible to train Gorilla myself to use non-public internal APIs? How would I best go about doing that?

Hey @gottlike @CrustyCode and @AldiRvn. Yes, indeed. Step 1 would be to create data in the following (format)[https://github.com/ShishirPatil/gorilla/tree/main/data#option-1-api-json-preferred]. Once you have this, you would then train Gorilla using the classical perplexity loss for the zero shot setting. In case you want the model to be robust to frequent changes to API, then you would also throw in a retriever and adopt Retriever Aware Training (RAT). Hope this helps, happy to answer any questions!

@ShishirPatil from the demo video on YouTube you show an example of calling AWS services like s3. Where in the repo is AWS? I only see models?

Thanks for your interest @joemccann ! Yes, for the latest batch of models which includes the AWS, GCP, Azure, K8S, etc, we are in the process of releasing the data. You can use our models today, though. In case you haven't come across, the CLI tool is at https://github.com/gorilla-llm/gorilla-cli


How are transforms handled?

I was never able to tell how the data was being transformed with the old wms_view extension because there was no base layer. Now, I see that it is offset (for one source slightly, for another it would appear so badly that I see no data in the image).
Example:
https://smartlane.io/dataset/different-geo-visualizations/resource/045d88a8-6a1e-4f41-b23c-fa5efa549d34?view_id=1a3ce747-e55d-4383-b29c-e8ea70f8d70e
(Select Hamburger Autobahn...ohne Verkehrslagedaten) as that should line up with the motorways)

I managed to solve my problem by commenting out this line:
https://github.com/ckan/ckanext-geoview/blob/master/ckanext/geoview/public/js/vendor/ol-helpers/ol-helpers.js#L371
Perhaps because we're not using OSM base layer but rather MapQuest...???

A slightly more intelligent approach that is allowing me to use two different WMS sources is to set projection: Mercator only when the layer states that srs.EPSG:3857 = True, otherwise set it to null.

Hey Matt, you may be interested in a recent feature (not yet merged, still in pduchesne/ckanext-geoview) where you can define basemaps with arbitrary projections, provide a list of basemaps and switch between them while in the view.
Not completely tested yet, but you can already give it a go using the master of pduchesne/ckanext-geoview


Register Email Credential for a given DigitalTwin

Created by: @marvinkite Sep 21 2020 at 20:21 CET
Last updated: Jul 05 2021 at 16:22 CET
ClickUp ID: IK-241
This is handled by the linked task
Checklist

[ ] Create the cypher query
[ ] Implement and apply the cypher query

Commented by: @marvinkite Sep 21 2020 at 20:21 CET
@yetizer Detko I copied the params from my code for you to test. This is a must have for RIOT. The expire_time is a time value but I don't know what's the right syntax in params.

Commented by: @yetizer Sep 22 2020 at 07:52 CET
why email is unique?


r.text can make calls to chardet which are very slow

We have a lot of code in Juriscraper that looks like this:
r = request.get(some_link)
if "some phrase" in r.text:
    # throw an error

The thing is, when we have large PDFs that we're downloading, r.text is pretty hard to produce. To do so, requests calls out to chardet, which is slow and uses a lot of memory on big files.
From models.py in the requests library, here's r.text:
@property
    def text(self):
        """Content of the response, in unicode.

        If Response.encoding is None, encoding will be guessed using
        ``charset_normalizer`` or ``chardet``.

        The encoding of the response content is determined based solely on HTTP
        headers, following RFC 2616 to the letter. If you can take advantage of
        non-HTTP knowledge to make a better guess at the encoding, you should
        set ``r.encoding`` appropriately before accessing this property.
        """

        # Try charset from content-type
        content = None
        encoding = self.encoding

        if not self.content:
            return ""

        # Fallback to auto-detected encoding.
        if self.encoding is None:
            encoding = self.apparent_encoding  # <----  HERE'S THE CALL

        # Decode unicode from given encoding.
        try:
            content = str(self.content, encoding, errors="replace")
        except (LookupError, TypeError):
            # A LookupError is raised if the encoding was not found which could
            # indicate a misspelling or similar mistake.
            #
            # A TypeError can be raised if encoding is None
            #
            # So we try blindly encoding.
            content = str(self.content, errors="replace")

        return content

apparent_encoding is NOT cached (but probably should be, and thus each time we call r.text we're hitting the CPU and memory pretty hard.

This came up because a client is trying to use the Fetch API to get a 36MB PDF. It's crashing the maintenance pod I'm using to debug the issue!


Warning job fails

See https://travis-ci.org/crate-ci/example-warn/jobs/342635007
$ cargo check --tests
error: failed to run `rustc` to learn about target-specific information
Caused by:
  process didn't exit successfully: `rustc - --crate-name ___ --print=file-names -D --target x86_64-unknown-linux-gnu --crate-type bin --crate-type rlib` (exit code: 101)
--- stderr
error: multiple input filenames provided

Running it locally doesn't have any problems.

Fixed by #3


Are there any a initial goal in this proj?

@joneskm hey bro, im so excited to see this cosmos rust sdk.
What is the current progress of this project, or what aspects of SDK work are currently being done? Is there a list that I am very interested in and would like to contribute some code to do this Rust SDK together which will be completely consistent with Cosmos go sdk

Hi @VegeBun-csj, thanks  for your message!
The core functionality is mostly there (tx processing, query handling, state storage etc. along with the core modules, bank, auth and params). There's still some tidying up work to do and there's a lack of documentation and testing and so far there's been no focus on performance. I have a stripped down version of the golang SDK + gaia which reaches the same state hash as gears!
I've recently been working on making it into an actual SDK, which is mostly done for now. This means additional modules can be plugged in relatively easily which will allow work to start on the other core modules: staking, governance, slashing etc. This will be a good opportunity for others to contribute.
I'm currently spending about half my time on this project. The other half I spend working with the guys at Aragon ZK Research where we're using Gears on a PoC that we're working on https://github.com/aragonzkresearch/tlcs-chain/tree/main
As I said, there's a good opportunity for others to contribute by implementing other Cosmos SDK modules e.g. staking, ibc, governance etc.

Thank you for your reply. Excellent idea and implementation!


iter mut

This change is

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#953  👈 (View in Graphite)
#952
#948 : 1 other dependent PR (#946 )
#945
dev

This stack of pull requests is managed by Graphite. Learn more about stacking.

Codecov Report
Attention: Patch coverage is 97.06745% with 10 lines in your changes missing coverage. Please review.

Project coverage is 92.12%. Comparing base (f8823ac) to head (9c559c7).

Files with missing lines
Patch %
Lines

crates/air_utils_derive/src/iterable_field.rs
95.34%
5 Missing and 1 partial :warning:

crates/air_utils/src/lookup_data/mod.rs
96.77%
3 Missing :warning:

crates/air_utils_derive/src/lib.rs
87.50%
1 Missing :warning:

Additional details and impacted files
@@                        Coverage Diff                        @@
##           ohad/witness_framework/uninit     #953      +/-   ##
=================================================================
+ Coverage                          91.92%   92.12%   +0.19%
=================================================================
  Files                                103      104       +1
  Lines                              13613    13950     +337
  Branches                           13613    13950     +337
=================================================================
+ Hits                               12514    12851     +337
  Misses                              1026     1026
  Partials                              73       73

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Modularize test workflows

Currently, the CI workflow contains 4 different tests:

unit tests
integ tests agains multi-node cluster (no security)
integ tests against docker image (with security if exists, else no security)
BWC tests

This poses many problems:

extremely long workflow times close to 1 hr
longer time to narrow down failures due to all of the different scenarios captured in this one workflow
possible duplicate/unnecessary integ test runs if no security (2 and 3 listed above)

I see a few solns:

Split these into different workflows
Provide reusable workflow(s) that can be called by other workflows to run tests. For example, a reusable workflow that pulls the github repos and builds them, can then be called by different workflows to kick off unit tests or integ tests, to reduce duplicate setup code. As an example, see this Dashboards functional-test PR.

I made some progress on splitting up the workflows into bwc, tests against docker image (w/security) and a build workflow (unit, integ and multi node). The last build workflow could be split up more I guess but also means a lot more runners/bigger test matrix. I am not closing this issue yet, but if we are okay with not splitting the unit and integ tests than I can close it with this PR (https://github.com/opensearch-project/anomaly-detection/pull/710)


Remove ansible-lint < 5 restriction

This was added in #1675 and no longer seems to be necessary. Version 5 of ansible-lint is stable and not incompatible with molecule.
Since ansible-lint must be installed with the [community] extra in version 5, this makes version 5 the new minimum version, to ensure the [community] extra is not applied to version 4.
PR Type

Bugfix Pull Request

Please don't merge this yet. I'm discovering several significant bugs with ansible-lint version 5. I don't think it's ready to be the default.

Closing as master already used version v5. If you have bugs you can avoid using lint extra and manually specify requirements. Also be sure you report problems to the linter, preferably with pull-requests too.


Add support for mattermost threading

This is untested, as I don't have access to a mattermost instance.

@patcon thanks for the initiative :-) I'll test asap on an instance

Almost works. You need to actually set the ParentID though :)
Add ParentID: message.Post.ParentId, below:
https://github.com/42wim/matterbridge/blob/a2754f15fc2bc2eede94e2e41712f9f0585f2426/bridge/mattermost/handlers.go#L101-L108

@patcon are you going to fix this PR with the mattermost issue or should I open a new one for this?


bug: Missing grammar rules

Did you check existing issues?

[X] I have read all the tree-sitter docs if it relates to using the parser
[X] I have searched the existing issues of tree-sitter-PARSER_NAME

Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)
No response
Describe the bug
Heyo, i was investigating whether this parser would be capable of processing the scripts i have written. Here’s a list of grammar rules that would have to be implemented for that to happen. I’m aware this parser is described as »rudimentary«, so view this as a kind of To-Do list towards eventual feature completeness.

Title page:

[ ] Built-in properties like Title:.
[ ] Single- and multi-line property grammar. Basically inline or indented multi-line action text, styling and all.
[ ] Custom or future properties Prop name:, which are to be ignored by document processors if unknown.

Scene headings:

[ ] INT/EXT.
[ ] I/E.
[ ] .A CUSTOM. Heading
[ ] .Forced heading
[ ] Lowercase or mixed-case headings. They must be rendered as uppercase, but can be all lower or mixed case within the document.
[ ] No special semantics for INT/EXT. LOCATION - TIME - EVEN MORE METADATA #7# which would be useful for editors.

Synopses:

[ ] = This scene’s purpose.

Actions:

[ ] !Forced action
[ ] >Centred Action Text<

Transitions:

[ ] Incorrect grammar.
[ ] ANYTHING TO: or TO:, surrounded by empty lines.
[ ] > Forced transition text

Characters:

[ ] @McFORCED CHARACTER
[ ] CHARACTER (EXTENSION) special semantics, useful for editors.
[ ] DUAL DIALOG MARKER ^
[ ] Uppercase text rule is not Unicode-compliant.

Dialogue:

[ ] ~Lyrics special semantics.

Text emphasising:

[ ] _underscored_
[ ] *italicised*
[ ] **bold**
[ ] Mixed.
[ ] Escaped \* \_ emphasis characters

Page breaks:

[ ] === or =========…

Nice to haves:

Actions & Dialog:

Special grammar for ALL CAPS WORDS or @McWORDS, useful for document processors to link up mentioned characters or locations.

Scene headings:

Special-case well-known time markers DAY, NIGHT, CONTINUOUS.

Steps To Reproduce/Bad Parse Tree
Example structure for the scripts i’m writing:
Title:
	_**MY SCRIPT**_
Credit: Written by
Author: Me
Source: Based on That Thing
        by These Guys
Draft date: 1997-01-31

.PAGE. Location, Sublocation - NIGHT #1#

= Introduces this or that concept.

!**PANEL 1 - FULL ROW, NO BORDER**

Abusing action text as panel headings, scene headings as page headings, turning this into a comic book script. The `!` above should not appear as action text, for it’s a forced-action marker character.

SFX
poof

CHARACTER (V.O.)
Stuff happened.

> TO DOUBLE:

===

.PAGES①. Location, Sublocation - CONTINUOUS #2#

Custom scene transition with `>`, explicit page break.

> CONT:

===

>(CONTINUE)<
.PAGES②. Location, Sublocation - CONTINUOUS #3#

TO:

===

Expected Behavior/Parse Tree
Semantics of title page metadata, custom transitions, forced actions, etc. should’ve been recognised and preserved.
Repro
No response

#3 meets Most of these tasks, I wrote a tree-sitter test based on the example. Text emphasis left out, and a few rules here and there

Hi, awesome, thanks! I’ll take a look.


DevSite Import: OAuth 2.0

Notice: This DevSite page will soon be deleted per b/133171590. Please add this sample to GitHub if it is relevant still:
https://developers.google.com/api-client-library/python/guide/aaa_oauth

OAuth 2.0

    This document describes OAuth 2.0,
    when to use it,
    how to acquire client IDs,
    and how to use it with the Google APIs Client Library for Python.

OAuth 2.0 explained

    OAuth 2.0 is the authorization protocol used by Google APIs.
    It is summarized on the
    Authentication
    page of this library's documentation, and there are other good references as well:

The OAuth 2.0 Authorization Protocol
Using OAuth 2.0 to Access Google APIs

    The protocol is solving a complex problem, so it can be difficult to understand.
    This presentation explains the important concepts of the protocol,
    and introduces you to how the library is used at each step.

Acquiring  client IDs and secrets

    You can get client IDs and secrets on the
    API Access pane
    of the Google APIs Console.
    There are different types of client IDs,
    so be sure to get the correct type for your application:

Web application client IDs
Installed application client IDs
Service Account client IDs

Warning:
    Keep your client secret private.
    If someone obtains your client secret,
    they could use it to consume your quota,
    incur charges against your Google APIs Console project,
    and request access to user data.

The oauth2client library

    The
    oauth2client
    library is included with the Google APIs Client Library for Python.
    It handles all steps of the OAuth 2.0 protocol required for making API calls.
    It is available as a separate
    package
    if you only need an OAuth 2.0 library.
    The sections below describe important modules, classes, and functions of this library.

Flows

    The purpose of a Flow class is to acquire credentials
    that authorize your application access to user data.
    In order for a user to grant access,
    OAuth 2.0 steps require your application to potentially redirect their browser multiple times.
    A Flow object has functions that help your application take these steps and acquire credentials.
    Flow objects are only temporary and can be discarded once they have produced credentials,
    but they can also be
    pickled
    and stored.
    This section describes the various methods to create and use Flow objects.

Note:
    See the
    Using Google App Engine
    and
    Using Django
    pages for platform-specific Flows.

flow_from_clientsecrets()

    The
    oauth2client.client.flow_from_clientsecrets()
    method creates a Flow object
    from a client_secrets.json file.
    This
    JSON
    formatted file stores your client ID, client secret, and other OAuth 2.0 parameters.

    The following shows how you can use flow_from_clientsecrets()
    to create a Flow object:

from oauth2client.client import flow_from_clientsecrets...flow = flow_from_clientsecrets('path_to_directory/client_secrets.json',                               scope='https://www.googleapis.com/auth/calendar',                               redirect_uri='http://example.com/auth_return')
OAuth2WebServerFlow

    Despite its name, the
    oauth2client.client.OAuth2WebServerFlow
    class is used for both installed and web applications.
    It is created by passing the client ID, client secret, and scope to its constructor:
    You provide the constructor with a redirect_uri parameter.
    This must be a URI handled by your application.

from oauth2client.client import OAuth2WebServerFlow...flow = OAuth2WebServerFlow(client_id='your_client_id',                           client_secret='your_client_secret',                           scope='https://www.googleapis.com/auth/calendar',                           redirect_uri='http://example.com/auth_return')
step1_get_authorize_url()

    The
    step1_get_authorize_url()
    function of the Flow class is used to generate the authorization server URI.
    Once you have the authorization server URI,
    redirect the user to it.
    The following is an example call to this function:

auth_uri = flow.step1_get_authorize_url()# Redirect the user to auth_uri on your platform.

    If the user has previously granted your application access,
    the authorization server immediately redirects again to redirect_uri.
    If the user has not yet granted access,
    the authorization server asks them to grant your application access.
    If they grant access,
    they get redirected to redirect_uri with a
    code query string parameter similar to the following:

http://example.com/auth_return/?code=kACAH-1Ng1MImB...AA7acjdY9pTD9M

    If they deny access,
    they get redirected to redirect_uri with an
    error query string parameter similar to the following:

http://example.com/auth_return/?error=access_denied
step2_exchange()

    The
    step2_exchange()
    function of the Flow class exchanges an authorization code for a Credentials object.
    Pass the code provided by the authorization server redirection to this function:

credentials = flow.step2_exchange(code)

Credentials

    A Credentials object holds refresh and access tokens that authorize access to a single user's data.
    These objects are applied to httplib2.Http objects to authorize access.
    They only need to be applied once and can be stored.
    This section describes the various methods to create and use Credentials objects.

Note:
    See the
    Using Google App Engine
    and
    Using Django
    pages for platform-specific Credentials.

OAuth2Credentials

    The
    oauth2client.client.OAuth2Credentials
    class holds OAuth 2.0 credentials that authorize access to a user's data.
    Normally, you do not create this object by calling its constructor.
    A Flow object can create one for you.

ServiceAccountCredentials

    The
    oauth2client.service_account.ServiceAccountCredentials
    class is only used with
    OAuth 2.0 Service Accounts.
    No end-user is involved for these server-to-server API calls,
    so you can create this object directly without using a Flow object.

AccessTokenCredentials

    The
    oauth2client.client.AccessTokenCredentials
    class is used when you have already obtained an access token by some other means.
    You can create this object directly without using a Flow object.

authorize()

    Use the
    authorize()
    function of the Credentials class to apply necessary credential headers to all requests made by an
    httplib2.Http
    instance:

import httplib2...http = httplib2.Http()http = credentials.authorize(http)

    Once an httplib2.Http object has been authorized,
    it is typically passed to the build function:

from apiclient.discovery import build...service = build('calendar', 'v3', http=http)

Storage

    A
    oauth2client.client.Storage
    object stores and retrieves Credentials objects.
    This section describes the various methods to create and use Storage objects.

Note:
    See the
    Using Google App Engine
    and
    Using Django
    pages for platform-specific Storage.

file.Storage

    The
    oauth2client.file.Storage
    class stores and retrieves a single Credentials object.
    The class supports locking such that multiple processes and threads can operate on a single store.
    The following shows how to open a file,
    save Credentials to it,
    and retrieve those credentials:

from oauth2client.file import Storage...storage = Storage('a_credentials_file')storage.put(credentials)...credentials = storage.get()
multistore_file

    The
    oauth2client.contrib.multistore_file
    module allows multiple credentials to be stored.
    The credentials are keyed off of:

client ID
user agent
scope

keyring_storage

    The
    oauth2client.contrib.keyring_storage
    module allows a single Credentials object to be stored in a password manager if one is available.
The credentials are keyed off of:

Name of the client application
User name

from oauth2client.contrib.keyring_storage import Storage...storage = Storage('application name', 'user name')storage.put(credentials)...credentials = storage.get()

Command-line tools

    The
    oauth2client.tools.run_flow()
    function can be used by command-line applications to acquire credentials.
    It takes a Flow argument and attempts to open an authorization server page in the user's default web browser.
    The server asks the user to grant your application access to the user's data.
    If the user grants access, the run() function returns new credentials.
    The new credentials are also stored in the Storage argument,
    which updates the file associated with the Storage object.

  The oauth2client.tools.run_flow()
  function is controlled by command-line flags, and the Python standard library argparse module
  must be initialized at the start of your program.  Argparse is included in Python 2.7+, and is available as a
  separate package for older versions. The following shows an example of how to use this function:

import argparsefrom oauth2client import toolsparser = argparse.ArgumentParser(parents=[tools.argparser])flags = parser.parse_args()...credentials = tools.run_flow(flow, storage, flags)

The docs are now added to the docs/ folder.
Fixed with #706.


Updated test for step 19

Checklist:

[x] I have read and followed the contribution guidelines.
[ ] I have read and followed the how to open a pull request guide.
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #53755

As a new contributor, we encourage you to read our contributing guidelines.
We expect our contributors to be aware of the process specific to this project. Following the guidelines religiously earns you the respect of fellow maintainers and saves everyone time.
Some examples of this are:

Do not edit files directly through GitHub – while you can, it's not a good idea.
Make sure you follow the PR checklist and not just tick things off; otherwise, we won't take you seriously.
Use the correct way to link issues in the description of the PR by updating the XXXXXX. Do not just add issue numbers everywhere and anywhere you feel like.
Keep mentions and review requests to a minimum. We understand you are excited about contributing, and our maintainers will get back to you as soon as they get a chance.
Do not work directly off your main branch - create a new branch for the changes you are working on.

We appreciate you taking the time to help us, and we hope to see more contributions from you.
Happy Contributing.


Greybel interpreter/debugger hangs and is unkillable

Sadly don't have an exact cause as to what is causing this. I'm throwing out a guess here because I don't think I have any cycles, but, could cyclic //include blow it up?
Anyway, not having much to go on, other than knowing that my code doesn't do this in-game - when this happens, the interpreter goes zombie mode. You can hit the stop button in VS, and after a few seconds, VSCode will exit the debugging state.
However, you cannot start any more debug sessions without a full restart of VSCode. CPU Usage remains pegged at a full core, too, so it's definitely still running.

Well I think it might be related to my recent change which is about batching iterations to improve script execution speed. It could be that the event loop is filling up too much blocking any interaction.
Could you check if you have the same experience when using version 1.9.3?

Yep, 1.9.3 is able to successfully start the application, no observable issues.

I'll revert the changes with the next update. Sorry for the inconvinience.

1.9.5 - https://github.com/ayecue/greybel-vs/pull/118 just got merged and should be soon available. So the issue should be fixed.

'tis indeed. Another one closed out!

Reopening this sadly. I've done it again - same issue as before, and still not sure where.
For reference, I'm now on 1.9.6

OK, I have a bit more for you to work with, this is happening when including the JSON source code (linked here: https://gist.github.com/Olipro/8e323425d6018f18c0791c71606406da )
Now, here's the interesting bit: At the end of the file, you'll see it calls __scope then does __scope = null.
If I change that to:
if not globals.hasIndex("JSON") then __scope
globals.remove("__scope")

Then it works fine.
Sadly, this still isn't the full picture, something special is happening in the source file where I include JSON, but I don't know what. Creating a trivial file that just includes the JSON source executes and returns without issue - but hopefully this gives you something to go on.

Do you have an example payload for your parser that causes the hang up?

I'll send it to you on Discord since it's a few files


Remove custom fields in tls.Config

quic-go uses qtls which requires a match between its data structures and the standard library to match. This includes tls.Config, tls.ConnectionState, tls.ClientHelloInfos, and some others. See https://github.com/quic-go/qtls-go1-20/blob/master/unsafe.go
It would be nice if we can reduce custom fields unless there is no other way. This can be done through contexts.
In commit 01665a5fc87dec7a34c36c7f75fb0f87c42f6cc4 ("crypto/tls: add CFControl parameter to Config"), we add a tls.Config#CFControl field to propagate information from the TLS handshake (tls.Config#GetConfigForClient) to a HTTP request handler (http.Request#TLS.CFControl). To replace this with contexts:

Set http.Server#ConnContext to add an empty structure to the context of the connection.
In tls.Config#GetConfigForClient, extract the previous structure pointer from the context through tls.ClientHelloInfos#Context and initialize it. Note that while modifications to the context itself are not propagated, any changes to the context value (a pointer to a structure) will be preserved. This is a crucial detail.
In a HTTP handler, extract the structure pointer again from the context through http.Request#Context.

To demonstrate the above conversion:
type contextKey struct{ name string }

var controlContextKey = &contextKey{"connection-metadata"}

type ConnState struct {
	ExampleValue []byte
}

func main() {
	srv := http.Server{
		ConnContext: func(ctx context.Context, c net.Conn) context.Context {
			// 1. allocate context value in the connection context
			return context.WithValue(ctx, controlContextKey, &ConnState{})
		},
	}
	cert, err := tls.LoadX509KeyPair("example-cert.pem", "example-key.pem")
	if err != nil {
		log.Fatal(err)
	}
	tlsConfig := &tls.Config{
		GetConfigForClient: func(chi *tls.ClientHelloInfo) (*tls.Config, error) {
			// 2. initialize state in context value
			cs := chi.Context().Value(controlContextKey).(*ConnState)
			cs.ExampleValue = []byte("hello world\n")
			return &tls.Config{Certificates: []tls.Certificate{cert}}, nil
		},
	}

	http.HandleFunc("/", func(rw http.ResponseWriter, req *http.Request) {
		// 3. extract value from context
		cs := req.Context().Value(controlContextKey).(*ConnState)
		rw.Write(cs.ExampleValue)
	})

	// Setup HTTPS server
	netListener, err := net.Listen("tcp", "localhost:4433")
	if err != nil {
		log.Fatal(err)
	}
	ln := tls.NewListener(netListener, tlsConfig)
	if err := srv.Serve(ln); err != http.ErrServerClosed {
		log.Fatal(err)
	}
}

I'll work on changes to the cf branch to remove the CFControl field and investigate how other fields can similarly be removed.

tls.Config#CFControl was removed and tls.Config#CFEventHandler was moved into tls.CFEventHandlerContextKey via PR #147


Add min_time and max_time parameters to hotspot challenge query

We need to be able to query https://developer.helium.com/blockchain/api/api-hotspots#hotspot-challenges by time periods to create charts for the mobile app.
The idea is to show challenge pass rate per day for last 7, 14, 30 days and per hour for the 24 hours.
I know we have also talked about this extensively but adding it here for discussion. Does it make sense to add a successful attribute to challenges on the backend?
UI:

oh this is more than min/max_time for challenges, this is actually bucketed stats for challenges.


proposed Italian translation of Home and Getting Started

I want to propose me as an Italian translator for your website. I'm Italian mother-language with tech background (B.S. in Computer Science).
Please accept this initial contribution in Web Fundamentals Homepage and Getting started pages.

Hey @lucab85 - sorry this is taking so long. Before we can merge, I need to get a someone who speaks Italian to verify and proof it, and I haven't been able to line anyone up yet.

I perfectly understand your company policy but, if is not a problem for you, I'll continue to give my contribution.

Deprecated PR


Generate xcode project failed with tulsi

How to pass that flag in tulsi when add package?

diff --git a/src/TulsiGenerator/BazelQueryInfoExtractor.swift b/src/TulsiGenerator/BazelQueryInfoExtractor.swift
index 6ae4033..5dfef0d 100644
--- a/src/TulsiGenerator/BazelQueryInfoExtractor.swift
+++ b/src/TulsiGenerator/BazelQueryInfoExtractor.swift
@@ -159,6 +159,7 @@ final class BazelQueryInfoExtractor: QueuedLogging {
         "--order_output=no",
         "--noshow_loading_progress",
         "--noshow_progress",
+        "--experimental_repo_remote_exec",
         query
     ])
     arguments.append(contentsOf: additionalArguments)

Finally find the source code location to execute this command and add '--experimental_repo_remote_exec' flag into it. Running sh build_and_run cmd again! it works! But i do not like this way.

Glad to know you resolved from above comment. We are closing this issue now. Thanks!


test: make getBrowserVersion safe to use

makes getBrowserVersion safe to use on non-linux.
Currently breaks for both Edge and Safari.
It is amazing how long the issue has existed and we didn't notice because () was missing :-/

Hmm interesting indeed. LGTM


operators opentelemetry-operator (0.42.0)

Signed-off-by: Pavol Loffay<EMAIL_ADDRESS>Thanks submitting your Operator. Please check below list before you create your Pull Request.
This is basically a copy of https://github.com/open-telemetry/opentelemetry-operator/tree/v0.42.0/bundle
New Submissions

[] Are you familiar with our contribution guidelines?
[ ] Have you packaged and deployed your Operator for Operator Framework?

[ ] Have you tested your Operator in all supported installation modes?
[ ] Have you considered whether you want use semantic versioning order?
[ ] Is your submission signed?
[ ] Is operator icon set?

Updates to existing Operators

[ ] Did you create a ci.yaml file according to the update instructions?
[ ] Is your new CSV pointing to the previous version with the replaces property if you chose replaces-mode via the updateGraph property in ci.yaml?
[ ] Is your new CSV referenced in the appropriate channel defined in the package.yaml or annotations.yaml ?
[ ] Have you tested an update to your Operator when deployed via OLM?
[ ] Is your submission signed?

Your submission should not

[ ] Modify more than one operator
[ ] Modify an Operator you don't own
[ ] Rename an operator - please remove and add with a different name instead
[ ] Modify any files outside the above mentioned folders
[ ] Contain more than one commit. Please squash your commits.

Operator Description must contain (in order)

[ ] Description about the managed Application and where to find more information
[ ] Features and capabilities of your Operator and how to use it
[ ] Any manual steps about potential pre-requisites for using your Operator

Operator Metadata should contain

[ ] Human readable name and 1-liner description about your Operator
[ ] Valid category name1
[ ] One of the pre-defined capability levels2
[ ] Links to the maintainer, source code and documentation
[ ] Example templates for all Custom Resource Definitions intended to be used
[ ] A quadratic logo

Remember that you can preview your CSV here.
--
1 If you feel your Operator does not fit any of the pre-defined categories, file an issue against this repo and explain your need
2 For more information see here

/merge possible

/merge possible

/merge possible


Onscroll videos are not playing efficiently

Hello,
I am using jPlayer  and its amazing to use . i have an page where all the videos are displayed in a list view(3 in a row). i wants to auto  play the video (3 videos in a row ) when user is close to that video, My problem is that its playing 1st row (3 videos properly) if i am scrolling down on a second row then the second row videos are not playing properly(its starting to play but not moving forward).below is the code i m using for on scroll event .
var lastScrollTop = 0;
var vid_id="";
var str_vidup=str_viddown="";
$(window).scroll(function() {
var winTop = $(this).scrollTop();
$('myul li').each(function(item,element) {
if($(this).position().top <= winTop  )
{
$(this).find(".jp-play").click();
}
}
})
i have Google it but not got anything related with Right now i am stuck on this any help will move me forward on this.
Thanks in advance

I'm sorry but what is jPlayer?

sorry, i got the solution and thank you for the reply.


could not get the value of document.querySelector in splash.

In the next HTML, I would like to click the button whose class value is "btn login-button btn-submit btn-small" with scrapy-splash.

  <form class="login-form">
  <button class="btn login-button btn-submit btn-small" type="submit" autocomplete="off" tabindex="0" data-
  reactid="25">login</button>
  </form>

  <form class="login-form" action="" method="post" data-reactid="40">

<button class="btn minimal-login
  btn-submit btn-small" type="submit" autocomplete="off" tabindex="0" data-reactid="44">Facebook Login</form>

my lua source is as follows.
function main(splash, args)
  splash:autoload([[
    function get_document_button(){
      return document.querySelector('.btn.login-button.btn-submit.btn-small');
    }
  ]])
  assert(splash:go(args.url))
  assert(splash:wait(0.5))

local search_input = splash:select('input[name=email]')
search_input:send_text("xx")
local search_input = splash:select('input[name=password]')
search_input:send_text("xx")
assert(splash:wait(5))
splash:runjs("document.querySelector('.btn.login-button.btn-submit.btn-small').click()")

return {
local title = splash:evaljs("document.title")
button = splash:evaljs("get_document_button()")

}

The following error appears when executed.
result:
 error happened while executing Lua script
'main' returned bad result. Lua function objects are not allowed.
{
    "description": "Error happened while executing Lua script",
    "error": 400,
    "info": {
        "message": "'main' returned bad result. Lua function objects are not allowed.",
        "type": "BAD_MAIN_ERROR"
    },
    "type": "ScriptError"
}

I don't know why couldn't get the result of "get_document_button".
I got the value of the title. but it could not take the value of a button
firstly, I'd like to check with lua script of splash to see if it is getting correctly or console.log.
any idea?
Finally, I would like to do is to log in to "netflix.com/login" and press the user select button created with javascript.
Please let me know if there is something other than the way I am going to do.
Thank you for reading my question.

The problem is that you're returning an Element object, which is currently not supported. Use something like splash:evaljs("get_document_button()").outerHTML.
See https://github.com/scrapinghub/splash/issues/564 and https://github.com/scrapinghub/splash/issues/557#issuecomment-273245797.

@kmike Thank you for your commenting.
I solved this problem.


dist/css is not in npm package

Running npm i -S react-quill will not provide you the CSS

My bad dup of #70

It's a proper issue, I'm reopening this one.

It seems NPM won't publish symbolic links, which I'm using to provide a shortcut to quill's stylesheets.
I would prefer not to make an explicit copy of them, though. I'm looking for a solution to this.

Since it depends on quill package as well, I have imported the styles from the quill package :)

This specific issue has broken the install for a project that I've been watching. I vote to maintain a copy of the quill styles in dist/ until a better solution is found.

In the meantime, I suggest changing the doc where it references the CSS paths. Change them from pointing at react-quill/dist to just quill/dist.

I thought I should mention that this is also an issue on cdnjs. I don't know if you publish there manually, but both of these files are empty:
https://cdnjs.cloudflare.com/ajax/libs/react-quill/0.4.1/quill.base.css
https://cdnjs.cloudflare.com/ajax/libs/react-quill/0.4.1/quill.snow.css

I used npm i -S react-quill and there are no css files in dist/


Add buttons

Proposed Changes

Added KakoaTalk - Closes #174
Added Line - Closes #175
Added Design By Humans Closes #93

Screenshot:

Checklist

[x] Tested locally
[x] Ran yarn ci to test my code
[x] Did not add any unnecessary changes
[x] All my changes appear after other changes in each file
[x] Included a screenshot (if adding a new button)
[x] 🚀

Thank you!

@KieranRobson on the Design By Humans. I just noticed this, not sure why there is a ! point that's programmed in. Also on their u in humans they have it using an alt letter ü - Alt 0252
Example:

If you could update/fix that to match that would be awesome 😄 please and thank you.

@KieranRobson on the Design By Humans. I just noticed this, not sure why there is a ! point that's programmed in. Also on their u in humans they have it using an alt letter ü - Alt 0252
Example:
If you could update/fix that to match that would be awesome 😄 please and thank you.

#184


ci/fix(test-using-pytest): ensure hatch is always installed when needed

Sometime in test-using-pytest CI workflow the previous job failed, for example
here,
and this line with if: always() won't be able to run because hatch is
installed in the previous step but this step might get skipped.
Self proofreading checklist

[x] The new code clear, easy to read and well commented.
[x] All new code is covered by relevant tests.

Changes
Always install hatch in this always step of the job.
How to test
Make a PR that will fail this job, for example by not respecting black or use
act to test that locally.

@hoh this is related to your #689 PR


Case insensitive deserialization?

It's just odd, that this can't be done with serde?
I simply want a way to deserialize a json to a struct in a case insensitive manner. A struct may have child struct or deeper. I do not mind to have a derive attribute to each struct involved.
But it seems impossible? Any work around?
Thanks.

Also, I simply can't get rename_all work. I am not sure if I under stand the doc wrong. The following code keep failing, complaining missing field "Title". This is really ODD.
#[derive(serde::Deserialize)]
#[serde(rename_all = "lowercase")]
pub struct YYY
{
pub Title: String
}
    let ss = r#"
    {
        "title": "dsd"
    }
    "#;
    let x: YYY = serde_json::from_str(ss).unwrap();
    assert_eq!(x.Title, "dsd");

you can use https://docs.rs/serde-aux/latest/serde_aux/container_attributes/fn.deserialize_struct_case_insensitive.html for case insensitive deserialization.

The following code keep failing, complaining missing field "Title"

the lowercase attribute assumes your field name is lowercase but your json has uppercase letters, not the other way around

you can use https://docs.rs/serde-aux/latest/serde_aux/container_attributes/fn.deserialize_struct_case_insensitive.html for case insensitive deserialization.

What about enum?


configurable local_cmd & remote_cmd in favor of using ssh by default

Just saw the opened issues. I believe this fixes #9 and #5.

Thanks for the PR. I'll take a closer look in the next few days.

awesome, thanks.
On Fri, Apr 15, 2016 at 6:44 AM, Andrew Hallagan<EMAIL_ADDRESS>wrote:

Merged #10 https://github.com/ahw/vim-pbcopy/pull/10.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/ahw/vim-pbcopy/pull/10#event-628940709


Changes in survey dashboard and map for survey Wave 11

Survey Dashboard

Mask Use "In the past 7 days, when you were in public places where social distancing is not possible, did most or all other people wear masks?" to switch from using smoothed_wothers_masked to smoothed_wothers_masked_public. Meaning is the same.
Vaccines "Have you already received a COVID vaccine, or if a vaccine were offered to you today, would you definitely or probably choose to get vaccinated?" to switch from smoothed_wvaccinated_or_accept to smoothed_wvaccinated_appointment_or_accept. This now includes people who are vaccinated, who have an appointment to be vaccinated, or who say they would get vaccinated if offered today.
Mental Health "In the past 7 days, did you feel isolated most or all of the time?": smoothed_wfelt_isolated_7d discontinued, no replacement
Mental Health "Do you feel very or somewhat worried about becoming seriously ill from COVID-19?": smoothed_wworried_become_ill discontinued, no replacement

COVIDcast Map

Vaccine Acceptance "Percentage of people who either have already received a COVID vaccine or would definitely or probably choose to receive one if it were offered to them today, based on surveys of Facebook users" to switch from smoothed_wvaccinated_or_accept to smoothed_wvaccinated_appointment_or_accept. This now includes people who are vaccinated, who have an appointment to be vaccinated, or who say they would get vaccinated if offered today. Technical description link is still valid.

@sgratzl I'm not able to assign anyone, but I believe you're the correct person for this. Let me know otherwise/if you need more info for any of these changes.

can you suggest the changes in the google docs describing those aspects: https://docs.google.com/document/d/1llv6xh8jMlmVv7WpyDSv4VgUpFAZQ6QjFUeRxxOinmk/edit and https://docs.google.com/document/d/1J36nedP6eufeRE3TbyT_BK-ofE5d18kLif2UmORkYDU/edit#heading=h.oxebzdy7nl8w

Suggestions are added.

@capnrefsmmat can you take a look at the changes, please and accept them if they are ok.

smoothed_covid_vaccinated_appointment_or_accept will have no history before Wave 11, correct? So the public map will show vaccine acceptance data as only starting today, which seems unfortunate.

That's correct. Is it possible to display the signals together on the map? Or keep the old smoothed_covid_vaccinated_or_accept map up in an archive location and have an alert pop up that links to it when people look at the new smoothed_covid_vaccinated_appointment_or_accept?


Cant edit task titile

So far, there is no option to edit task title. You'll see it unchecked  in roadmap.
I am converting this issue to a feature request. And yes, it's going to be available in next release inshallah.


get AD users per group.

Hello everyone,
I'm trying to perform a search in the AD to list users who belong to a particular group in AD .
How should I proceed?
It would be that way?
$search = Adldap::search()->where('group', '=', 'Administrators')->get();

Find group called 'Commissions
$groups = Adldap::groups()->find('Commissions');
If you dd out:
dd($groups)
You get all information about the group.
Group {#509 ▼
  +exists: true
  +dateFormat: "Y-m-d H:i:s"
  #query: Builder {#512 ▶}
  #attributes: array:35 [▼
    "objectclass" => array:2 [▶]
    0 => "objectclass"
    "cn" => array:1 [▶]
    1 => "cn"
    "member" => array:5 [▶]
    2 => "member"
    "distinguishedname" => array:1 [▶]
    3 => "distinguishedname"
    "instancetype" => array:1 [▶]
    4 => "instancetype"
    "whencreated" => array:1 [▶]
    5 => "whencreated"
    "whenchanged" => array:1 [▶]
    6 => "whenchanged"
    "usncreated" => array:1 [▶]
    7 => "usncreated"
    "usnchanged" => array:1 [▶]
    8 => "usnchanged"
    "name" => array:1 [▶]
    9 => "name"
    "objectguid" => array:1 [▶]
    10 => "objectguid"
    "objectsid" => array:1 [▶]
    11 => "objectsid"
    "samaccountname" => array:1 [▶]
    12 => "samaccountname"
    "samaccounttype" => array:1 [▶]
    13 => "samaccounttype"
    "grouptype" => array:1 [▶]
    14 => "grouptype"
    "objectcategory" => array:1 [▶]
    15 => "objectcategory"
    "dscorepropagationdata" => array:1 [▶]
    16 => "dscorepropagationdata"
    "dn" => "CN=Commissions,CN=Users,DC=server,DC=mydc,DC=com"
  ]
  #original: array:35 [▶]
  #modifications: []
}

If you dd out the specific members subarray, you get all members:
dd($groups->member);
Now you can do a foreach loop or something similar to list out the members.

Thanks @ParthSarth!
In addition to his guide, you can also retrieve users who are a member of a particular group by including a raw filter in your user search:
// Search for users in the group named 'MyGroup'.
$filter = '(memberof:1.2.840.1135<IP_ADDRESS>1:=CN=MyGroup,DC=example,DC=com)';

$users = Adldap::users()->search()->rawFilter($filter)->get();

dd($users);

Steve, thanks bro.
$filter = '(memberof:1.2.840.1135<IP_ADDRESS>1:=CN=Gestores,OU=SGVC,OU=ADINF,OU=Livre,DC=fiero,DC=org)';

        $users = Adldap::users()->search()->rawFilter($filter)->select(['cn','displayname'])->get();

Great!

@netopvh No problem! Glad you've found Adldap useful :).


Feature dev

This is the first pull request and we have worked on the following elements:
Navigation bar
It has an embedded image that represents a logo.
The logo is aligned to the leftmost part of the navbar.
It has an input tag that represents a search bar.
The search bar is aligned to the middle of the navbar.
It has a button tag that represents the search button.
The search button is at the end (rightmost part) of the search bar.
It has at least three embedded images on the rightmost part of the navbar that represent icons and/or an avatar.
Video
It is displayed.
It shows the video title.
It shows the number of views.
It has like and dislike icons.
It has a share button.
It shows the avatar of the user who uploaded the video.
It has a subscribe button.
Sidebar Recommended videos
It shows the recommended video’s thumbnail preview (as image not as an actual video).
It shows the title of the video.
It shows the number of views.

Congratulations on your first project!


When a job fails or is canceled, update the large image item to reflect that.

Send a file to the processing job rather than an item.  This allows processing an image from an item that has more than one file.
This change was prompted by trying to convert a file with a name that differed from its containing item in a non-filesystem assetstore.

This addresses issue #49.

@zachmullen (or anyone else), I'd love to see this reviewed and merged.
The switch in the tests to use rabbitmq as the broker should allow all tests to pass in the vagrant development environment.

LGTM other than the one nit


Incorect start value on call expr in class

Code to reproduce: class x extends feh(await) { }
The callexpression start value is 0, but should be 16.
cc / @fkleuver Do you handle this?

Thanks for this issue. This repository and project will no longer be maintained, please consider its successor: https://github.com/meriyah/meriyah
Thanks for understanding and we apologize for any inconvenience!


Impossible to correct a wrong entered information in CardField - iOS only bug

Describe the bug
Using CardField component, if user enters a wrong information, for example a wrong card number, then tries to go back to the card number from expiration date to correct the card number, the keyboard disappears and no matter how many times he touches the card number the keyboard does not come back. At this moment, touching the CardField produces a placeholders glitch.
The only was to unlock it is to submit the wrong or uncompleted CardField and then touching the card number makes the keyboard appear again.
To Reproduce

Go to the screen where CardField appears
Enter a card number
Enter the expiration date
Try to come back to the card number to change it

Expected behavior
The keyboard should appear and the card number field should act like a normal text field.
Screenshots

Smartphone

Device: iPhone12 simulator and iPhone 11 pro max real device
OS: 14.4

Additional context
@stripe/stripe-react-native: "^0.1.4",

@magicmove can you record a video what exactly happens on your end? I haven't noticed anything unexpected
https://user-images.githubusercontent.com/18654447/132491883-8dff8768-ad1b-4ee1-b47f-e7876110199f.mov

the same with enabled postal code:
https://user-images.githubusercontent.com/18654447/132492216-c00a0a6e-004d-4864-a6e0-c31ee9bb2d00.mov

Thank you for the fast replay. There is the video.
https://user-images.githubusercontent.com/79968676/132510239-b2634f39-5d32-4d13-9c3a-205a76ce7caf.mov
And this is how I added it.
    <View>
      <CardField
        postalCodeEnabled={true}
        placeholder={{
          expiration: 'Expire le',
          postalCode: 'Code postal',
        }}
        cardStyle={{
          backgroundColor: Colors.whiteLighter,
          textColor: Colors.black,
        }}
        style={{
          width: '100%',
          height: 50,
          marginVertical: 30,
        }}
        onCardChange={(card: any) => card.complete && setCardComplete(card.complete)}
      />

      <ButtonFit
        disabled={!cardComplete}
        title="Ajouter une carte"
        style={Colors.black}
        onPress={() => {
          saveCard().catch((err: any) => {
            cardError(err);
          });
        }}
      />
    </View>

that's super weird and cannot reproduce it, are you able to update library to the latest version?

just to make sure, can you try to remove all of your code from this specific screen and leave only CardField then check how it behave?

I just updated the package, but it didn't help. Removing everything from the component makes it work so the problem is coming from our code.
Sorry for the wasted time and thank you for the reactivity! That's all for me :)


fixes a big with obj nonetype detected

obj should be persist_obj, see previous version of scene.py:
https://github.com/arenaxr/arena-py/blob/8e4fc359157e47a3c67e03e044a03cee58f91f02/arena/scene.py#L448
(This causes obj is nonetype bug if otherwise.)

@johnchoi313 @nampereira I added a little more to this, since it fixes the bug, but functionally we would still lose the found persist_obj. I hope this completes the thought from https://github.com/arenaxr/arena-py/pull/170/files#diff-8242eb9a0ceba29484c4d45f1a0bddfda0ffa81d6045706c8f226079594e684cL438.

Removing merged.


Adding QueryParam matching to HTTPRoute

What type of PR is this?
/kind feature
/kind api-change
What this PR does / why we need it:
This adds query param matching to HTTPRoute
Which issue(s) this PR fixes:
Fixes #259
Does this PR introduce a user-facing change?:
HTTPRoute now supports matching query parameters

/cc @bowei @danehans @hbagdi @jpeach @youngnick

Looks good to me.
We should merge with one or two more +1 given how core this is.


Wait for SPIRE server pod & service after post-install config

After #27 merged we started seeing failures in the federation
integration test:
cofidectl workload discover
Error: failed to stream exec: Internal error occurred: unable to upgrade connection: container not found ("spire-server")
error: Recipe integration-test failed on line 20 with exit code 1
In #27 the Helm configuration was changed to only enable federation in
SPIRE server when there is a federation relationship that has a bundle
endpoint available. On the initial Helm install this would not be the
case, so federation would be disabled. On the post-install configure
Helm install, we would have bundle endpoints and so federation would be
enabled and SPIRE server would be restarted. This caused any commands
running immediately after cofidectl up that rely on SPIRE server being
up (in this case cofidectl workload discover) to fail.
This change addresses the issue by waiting for the SPIRE server pod and
service to be ready after the post-install configuration step.
Fixes: #36

Working a beaut
+ echo 'Success!'
Success!


Add ddev auth composer command

ddev has has a already built in command for adding your maschines ssh keys to the containers (ddev auth ssh)
When using a private composer repository generated by satis which is behind a basic auth it would be awesome to copy credentials to the container using ddev auth composer
ddev auth composer need to copy /Users/USERNAME/.composer/auth.json to /home/.composer/auth.json in the web container.

Thanks for this request. #926, which is on the roadmap, will allow bashrc and related config to be copied over, and it seems reasonable to try the composer auth as well. Note though that many people are running composer only in the container these days, especially on Windows, so there may not be auth in ~/.composer.

Note though that many people are running composer only in the container these days, especially on Windows, so there may not be auth in ~/.composer.

Just wondering how they manage their composer credentials.

Maybe you can mention why use simple credentials instead of ssh auth. I guess I'm surprised at at the local storage of credentials, but not familiar with satis.

We have some private composer packages which we create using satis. Satis only supports basic auth with credentials.
Couldn't find another way to authenticate a user against satis. Is there a way to use ssh auth for satis? haven't seen any docs regarding this.

It looks like kind of a standard use case, see https://getcomposer.org/doc/articles/handling-private-packages-with-satis.md

Note that if your private packages are hosted on GitHub, your server should have an ssh key that gives it access to those packages, and then you should add the --no-interaction (or -n) flag to the command to make sure it falls back to ssh key authentication instead of prompting for a password. This is also a good trick for continuous integration servers.

Yep, but we use Satis to generate the JSON file + archives for each package and version which are stored in a dist-Folder.
See: https://satis.knallimall.org/
So the download-path of the packages is something like this:
https://satis.knallimall.org/dist/joro/desktop/joro-desktop-dcf98a95c6f94545327c0acbfac9292170c521a9-zip-ad3ed6.tar
(except for branches)

Thanks for helping me understand.
I do think if you can figure out how to use ssh auth, which should absolutely be possible, your situation will be much more secure. Plain-text credentials in files, even on a dev machine, are always questionable. Of course, they may make you question why you use a private repository too.

Yep, plain-text passwords are not good at all.
i doubt its possible to use ssh auth.
Quickly tried to create an additional command for this (just wanted to see the command to show up):

How about a ddev auth composer that took the user/pass?
But I imagine it's possible to have many user/pass combinations in one composer auth right?

How about a ddev auth composer that took the user/pass?

You mean ddev auth composer and ask the user for username and password?

But I imagine it's possible to have many user/pass combinations in one composer auth right?
YES

One way to do this right now (from https://getcomposer.org/doc/articles/handling-private-packages-with-satis.md) is to just use ddev composer config http-basic.example.org username password; that article does suggest ssh as a better option.
So you could easily create a post-start hook or (in v1.9 a post-composer hook) to set the username and password. I think this is probably a better option in general.

There is a much easier way to provide composer access data within ddev. Just create a file named auth.json in your project root (same level as .ddev folder) and add your credentials there.
Make sure not to commit this file ;-)

A couple of notes:

v1.11 will have ddev composer commands with a live tty, so it's possible to respond to user/password prompts
v1.10 has the nice .ddev/homeadditions directory; anything there gets copied into the user's home directory, so an auth.json will automatically be copied into the in-web-container home directory.

Is it reasonable to close this issue now that ddev composer runs with a tty and prompts for username and password (and saves them in homedir)?

yes :-) Thank you

@rfay I just came across this while trying to figure out this issue and .ddev/homeadditions worked perfectly. Thanks! Is this better documented somewhere on the DDEV docs? I can't seem to find it.


Improve Google Slides Add on Menu

Google Slides Add On can be improves

[ ] Make it look more pleasing

Current look:

[ ] Add feature of getting public circuit's of a user, given email id. User can then choose from the options.
@tachyons do you think this is a good idea? we will need to expose an API to get user id given email id.

something like:

Add feature of getting public circuit's of a user, given email id. User can then choose from the options.

Any reason for not using users id field instead? because it is already exposed in the url

And api is already available

User Id is something we developers know, but not necessarily users. We can ask them to enter dashboard URL or profile page URL and we can extract from there?

Yeah, entering user profile link is also an option

Can I work on this?


Receptive field of VMamba is similar to criss-cross attention.

Can you compare VMamba with CCNet?

Thank you for your advice, we may do this in the future.


Docs: Final UG Edits

Codecov Report

Merging #286 (a6d5747) into master (60748aa) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #286   +/-   ##
=========================================
  Coverage     38.50%   38.50%
  Complexity      558      558
=========================================
  Files           178      178
  Lines          3301     3301
  Branches        397      397
=========================================
  Hits           1271     1271
  Misses         1888     1888
  Partials        142      142

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 60748aa...a6d5747. Read the comment docs.


Keep getting EKF High Bias error

Log is here: https://review.px4.io/plot_app?log=0e28f7f8-65c7-44c2-a8ff-fcdbd2ca2c4b
I was getting this intermittently both inside and outside at boot. I tried recalibrating outside. No difference. Recalibrating inside,. no difference. It's raining now so I can't go outside and I can't seem to make it happen any longer inside.
I'm running a modified master on a new hexacopter+. The modifications are due to running an old pixhawk but I need new mag support. Don't know if that is affecting things since I can run regular master on this vehcle:
diff --git a/ROMFS/px4fmu_common/init.d/rc.sensors b/ROMFS/px4fmu_common/init.d/rc.sensors
index 7cac355f2..041f4afc0 100644
--- a/ROMFS/px4fmu_common/init.d/rc.sensors
+++ b/ROMFS/px4fmu_common/init.d/rc.sensors
@@ -76,6 +76,8 @@ then
# External I2C bus
hmc5883 -C -T -X start
lis3mdl -X start
+        ist8310 -C -b 1 start
+        ist8310 -C -b 2 start

# Internal I2C bus
hmc5883 -C -T -I -R 4 start
diff --git a/cmake/configs/nuttx_px4fmu-v2_default.cmake b/cmake/configs/nuttx_px4fmu-v2_default.cmake
index 369fc5568..9838b5251 100644
--- a/cmake/configs/nuttx_px4fmu-v2_default.cmake
+++ b/cmake/configs/nuttx_px4fmu-v2_default.cmake
@@ -31,6 +31,7 @@ set(config_module_list
drivers/imu/lsm303d
drivers/magnetometer/hmc5883
drivers/magnetometer/lis3mdl
+        drivers/magnetometer/ist8310
#drivers/mb12xx
#drivers/mkblctrl
drivers/imu/mpu6000
@@ -39,7 +40,7 @@ set(config_module_list
#drivers/protocol_splitter
drivers/pwm_input
#drivers/pwm_out_sim
-        drivers/px4flow
+        #drivers/px4flow
drivers/px4fmu
drivers/px4io
drivers/rgbled
@@ -50,14 +51,14 @@ set(config_module_list
drivers/vmount

# distance sensors
-        drivers/distance_sensor/ll40ls
-        drivers/distance_sensor/mb12xx
-        drivers/distance_sensor/sf0x
-        drivers/distance_sensor/sf1xx
-        drivers/distance_sensor/srf02
-        drivers/distance_sensor/srf02_i2c
-        drivers/distance_sensor/teraranger
-        drivers/distance_sensor/tfmini
+        #drivers/distance_sensor/ll40ls
+        #drivers/distance_sensor/mb12xx
+        #drivers/distance_sensor/sf0x
+        #drivers/distance_sensor/sf1xx
+        #drivers/distance_sensor/srf02
+        #drivers/distance_sensor/srf02_i2c
+        #drivers/distance_sensor/teraranger
+        #drivers/distance_sensor/tfmini
#drivers/distance_sensor/ulanding
modules/sensors

If I calibrate the mag on my pixracer with usb cable connected, the calibration is invalid and it will not pass arming checks when the cable is disconnected or vice versa due to proximity of usb connector to sensor.

Which I have done like 10 times. I have only ever calibrated while plugged in to battery.

Looking at the data your accelerometer is out of calibration.

So how do I get it calibrated correctly?

So I flashed this same vehicle with regular master. Disconnected the I2C so the new compasses on my GPS wouldn't show up. Recalibrated everthing. Same result. 10 m/s/s vertical accel:

Nope, wrong. Gravity is correct in that case. So something with my setup which is adding newer compass support to older fmu-v2 build (described above) is causing things to go off. Does that make any sense? Is this not a supported configuration?

Let me sanity check the initial problem again. I'll flash my custom build again, recal everything and get a new log just to be safe.

Ok, I tried my changes on v1.7.3 and master all over again. And now the logs look fine in the vertical axis. Daniel had originally mentioned possibly a temperature differential problem. Could that be it? Log with bad vertical accel was taken outside.

@DonLakeFlyer it's a real error.
1st log (ist8310) - https://review.px4.io/plot_app?log=0e28f7f8-65c7-44c2-a8ff-fcdbd2ca2c4b
Learned accel bias.

Commander error threshold (COM_ARM_EKF_AB) is 0.0024

In order to try to verify that this is a temp problem I did this:

Full calibration indoors
Left vehicle in cold garage overnight
Brought in this morning, booted up
Got EKF Bias error right away
Left the vehicle to come to room temp

Log here: https://logs.px4.io/plot_app?log=318c288b-b9b6-461d-b09e-9d434db8a5a1

Z accel straight from each sensor.

Temperature from each over the same period.

This is what the EKF learned accel bias looks like. Again, the threshold for the "PREFLIGHT FAIL: EKF HIGH IMU ACCEL BIAS" is only 0.0024 (COM_ARM_EKF_AB).

The EKF uses units of delta velocity (m/s) instead of acceleration (m/s/s)for its inertial nav.
the EKF runs its internal updates using a 8 msec average frame time (outputs are predicted forward at the full IMU rate of 4 msec). Therefore a bias state of 0.0024 m/s is equivalent to a sensor bias of 0.0024/0.008 = 0.35 m/s/s

Your board has excessive temperature sensitivity. It happens with a small percentage of boards because the board manufacturer does not screen boards and the sensor manufacturer does not screen individual sensors. We do provide  a thermal calibration and compensation function.

Thanks everyone. I'm going to move into the current century and go to a PixRacer instead.

@DonLakeFlyer we've been doing temp calibrations for a while now in our lab and on our engineering test vehicles.  I think we are going to start doing it on our production vehicles soon (once we figure out how to do a better curve fit on the Baro).  Ping us if you want to try it.  The documentation is okay.

@Antiheavy I think one of the problems with calibrating the Baro could be that we are applying our polynomial compensation in series with the piecewise continuous correction performed in the driver. It would be interesting to do a thermal calibration with the driver correction turned off.

I dont mean to highjack this thread, but here is an example of the (IMHO) bad baro curve fits we are getting using the "offline" scripts.  I worry that if the curve fit is extrapolated to colder temperatures it will be vastly diverged from the actual bias.

@Antiheavy The whole temp thing has me a bit concerned with respect to the Phoenix Pro in Kenya. I ran into problems because I didn't deal with Temp correctly in Zimbabwe last time as well with my multi-rotor. My fault I think, but still concerning. So my guess is that it would be best to do the temp cal thing with the Grevy's Zebra Phoenix somehow. Lot's of temp differential in Africa.

I'll probably start another issue to discuss possible improvements to Baro calibration.

On the original issue topic here, I recently started getting occasional high IMU bias erros in SITL.  Is this a new(ish) warning/error which might be why @DonLakeFlyer is seeing this only recently on his hardware?


Build a rich text editor for email drafts

As an alternative to using a GMail draft, we will allow users to build their own HTML emails.

This is nearly done. I'll just fix the link functionality.


chore(master): release 1.1.43

:robot: I have created a release beep boop
1.1.43 (2023-08-22)
Bug Fixes

deps: update dependency wayofdev/laravel-webhook-client to v1.1.33 (e769276)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/wayofdev/laravel-stripe-webhooks/releases/tag/v1.1.43 :sunflower:


feat: add XDEFI Wallet

Description
Added XDEFI Wallet as an option to show up on the modal, and upon clicking it navigate to XDEFI's website.
Not sure about the package version, I have set it with 2.0.0, please let me know if that needs to be changed.
Checklist

[ ] The version field in package.json of the package you have made changes in is incremented following semantic versioning and using alpha release tagging
[ ] The box that allows repo maintainers to update this PR is checked
[x] I tested locally to make sure this feature/fix works
[x] I have run yarn file-check, yarn type-check & yarn build to confirm there are not any associated errors
[ ] This PR passes the Circle CI checks

If this PR includes changes to add an injected wallet or SDK wallet module:
Please complete the following using the internal demo package.
To run this demo use the command yarn && yarn dev to get the project running at http://localhost:8080/
Tests with demo app (SDK)

[x] send transaction
[x] switch chains
[x] sign message
[x] sign typed message
[x] disconnect

@loxator a few comments around versioning but looks good!
Can you also complete the PR checklist for SDK/Wallet Modules wallets using the internal demo package?

@Adamj1232 tried to test with injected

[ ] send transaction - fails with Uncaught Error: 0xxxx-xxx-xxx-xxx-d9 is not a valid API key, tried it with MM as well, same result
[x] switch chains
[x] sign message - had to change chain to polygon as 0x4 goerli isn't supported by us
[x] sign typed message - had to change chain to polygon as 0x4 goerli isn't supported by us
[x] disconnect

Regarding Tests with demo app (SDK), how do I go about doing this? using the window.xfi.ethereum object once its injected or is there some other way?

@Adamj1232 Thanks for the review! I have committed your suggestions and tested the Send Transaction bit as well which worked. It should be good to merge now 👍


Reviewed eslint rules to close #58

\cc @inikulin
Added set of old default rules according to migration guide.
Rules no-mixed-spaces-and-tabs  and comma-dangle have been removed, because they are in eslint:recommended, check this and this.

@AndreyBelym please, squash commits and I'll merge this. @inikulin is on vacation. It's important to merge it ASAP for development

FPR

lgtm


update gisce/commitlint-rules to v1.0.5

Automated changes by create-pull-request GitHub action

:tada: This PR is included in version 1.0.8 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


tests: thread: refine the thread abort test case

Refine the thread abort test case and add one extra condition.
There is a problem of original test case test_abort_from_isr():  The child thread abort itself in ISR might not release the offload_sem when the thread was aborted. So we add a k_sem_give for offload_sem at end of this test case.
And we also add another condition of test case, which is also going to abort child thread,  but call irq_offload from main thread.
Signed-off-by: Enjia Mai<EMAIL_ADDRESS>

Hi @enjiamai , it looks good for me.

Hi @enjiamai , it looks good for me.


Dragging an image to window while editing files causes progress loss of unsaved changes

Description
While editing a html file, i added an image view, rendered live preview and added an image tag, then i tried resizing the browser window and the i accidentally dragged the image from the browser window (chrome)  into brackets window and my project closed and i lost all my unsaved changes.
Steps to Reproduce

Create a new project and add atleast an html file and add a image tag with an image.
Render live preview.
drag the image to brackets and drop it.
ops! you just lost all your project progress.

Expected behavior: [At Least should have opened it in a new file window or prompt me to save my changes or a warning that i will loose my progress]
Actual behavior: [It just opened the image a a new project dropping all my previous progress]
Versions
Release 1.8 build 1.8.0-17108 (alf_localization_release_1.8 3af64fae4)
build timestamp: Wed Nov 02 2016 12:07:29 GMT+0000
Windows 10 Version 1607(OS Build 14393.222)

Hi @NixonNixus,
pretty sure this is fixed with https://github.com/adobe/brackets/pull/12946, or the PR could be updated to address that too.

Just saw it am taking it down

Let's keep it open until it's properly fixes so we can track the issue.
Thanks for the bug report @NixonNixus 👍

Fixed in #12946


Add topics management

Add the ability to list topics, add topics and remove topics from repositories.
Usage
./bin/asari.js repos list-topics <github-url>

# List all topics.

./bin/asari.js repos <add-topics|remove-topics> <github-url> --topic new-app

# Add/Remove a topic

./bin/asari.js repos <add-topics|remove-topics> <github-url> --topic new-app --topic good-one
./bin/asari.js repos <add-topics|remove-topics> <github-url> --topics new-app,good-one
./bin/asari.js repos <add-topics|remove-topics> <github-url> --topics "new-app,  good-one"

# Add/Remove multiple topics

Reference
For doing this https://github.com/Financial-Times/next/issues/386

I'd suggest that we add any topics command as a subcommand under a repo command.
That way the main commands of this CLI line up with the high level resources listed by the v3 GitHub API, i.e. issues, repos, projects, pulls, apps, gists, etc.

I'd suggest that we add any topics command as a subcommand under a repo command.

Good point :+1:

@adambraimbridge @sjparkinson - have updated with the changes to using repos subcommand and other general tidy ups. Good for another review 👀

Partially does this: https://github.com/Financial-Times/asari/issues/30


TypeError: analyze_entities() got an unexpected keyword argument 'request'

I'm trying this task https://github.com/googleapis/python-language/blob/master/samples/v1/language_entities_text.py
but script returns exception: 'google.cloud.language_v1' has no attribute 'Document'.
I fixed it by
language_v1 => 'from google.cloud.language import enums', 'from google.cloud.language import types'
But now I have next exception:
TypeError: analyze_entities() got an unexpected keyword argument 'request'.
Where I can find actual/updated example of entity extraction code using Natural Language API?

@Grinnbob Did you make sure you are using the latest version of library?

https://googleapis.dev/python/language/latest/UPGRADING.html#enums-and-types

I think the problem is in library - I've installed it
python3 -m pip install google-cloud-language
but code execution returns errors as if I have installed old version.. How to install latest version?

Can u share your pip versions?

Please make sure run the following command to make sure you have installed latest:
pip install -r ..[this repo]/samples/snippets/api/requirements.txt

Yes, I've installed all requirements from this file and got error:
AttributeError: module 'google.cloud.language_v1' has no attribute 'Document'
pip version:
pip 19.3.1 from /usr/local/lib/python3.6/dist-packages/pip (python 3.6)
code I'm trying to execute:
from google.cloud import language_v1

from google.cloud import language

def sample_analyze_entities(text_content):
    client = language_v1.LanguageServiceClient()

    type_ = language_v1.Document.Type.PLAIN_TEXT
    language = "en"
    document = {"content": text_content, "type_": type_, "language": language}
    #document = language_v1.Document(content=text, type_=language_v1.Document.Type.PLAIN_TEXT)

    encoding_type = language_v1.EncodingType.UTF8

    response = client.analyze_entities(request = {'document': document, 'encoding_type': encoding_type})

    for entity in response.entities:
        print(u"Representative name for the entity: {}".format(entity.name))

        print(u"Entity type: {}".format(enums.Entity.Type(entity.type_).name))

        print(u"Salience score: {}".format(entity.salience))

        for metadata_name, metadata_value in entity.metadata.items():
            print(u"{}: {}".format(metadata_name, metadata_value))

        # Loop over the mentions of this entity in the input document.
        # The API currently supports proper noun mentions.
        for mention in entity.mentions:
            print(u"Mention text: {}".format(mention.text.content))

            # Get the mention type, e.g. PROPER for proper noun
            print(
                u"Mention type: {}".format(language_v1.EntityMention.Type(mention.type_).name)
            )

    print(u"Language of the text: {}".format(response.language))

sample_analyze_entities("California is a state.")

Share this info please
(1) Python version. python --version
(2) OS
(3) Open SSL version. python -c "import ssl; print ssl.OPENSSL_VERSION"
(4) Versions of the following packages. (A full pip freeze is also fine.)
google-cloud-language
google-api-core

(1) Python 3.6.9
(2) linux
(3) OpenSSL 1.1.1  11 Sep 2018
(4) google-cloud-language==1.2.0
google-api-core==1.16.0
(I execute it in Google Colab)

(4)  google-cloud-language==1.2.0
4 should be:
(4)  google-cloud-language==2.0.0

https://github.com/googleapis/python-language/releases/tag/v2.0.0

Thanks!


Generate API docs

What this PR does / why we need it:
Adds Scripts to generate API documentation for the site and makes sure it's up to date in CI.
Special notes for your reviewer:
Many API type definitions violated the generators validations so have been changed to follow convention.
Generate API documentation in site

/hold
/assign

/unassign
/assign @simonswine
Waiting on https://github.com/jetstack/testing/pull/87

Added a comment to the testing PR - didn't notice that yesterday sorry!
On Wed, 19 Sep 2018 at 09:06, Joshua Van Leeuwen<EMAIL_ADDRESS>wrote:

/unassign
/assign @simonswine https://github.com/simonswine
Waiting on jetstack/testing#87
https://github.com/jetstack/testing/pull/87
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/jetstack/tarmak/pull/529#issuecomment-422700826, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAMbP89GSLg5a9AY16SDGqTP8-x-EQhsks5ucfr-gaJpZM4WtzuG
.

/test verify docs

/assign @JoshVanL
/unassign
needs rebase

/hold cancel

/unassign
/assign @simonswine
@simonswine Not using the new image? nodejs should install npm

/clos

/close

/open

/close cancel

/open

/reopen

/close


service account not showing up in portal

I"m following the instructions to setup a service account with a secret.  But when I attempt to add the new account the Read role to my subscription, I can't find the user.  This is on an offline ASDK installation with ADFS.

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

ID: 193ec77a-b7dc-7807-cb42-fb1c8ad4a3c7
Version Independent ID: 389dc440-613b-88ad-c1e9-e4b6fe6db8c6
Content: Give an app access to Azure Stack Hub resources - Azure Stack Hub
Content Source: azure-stack/operator/give-app-access-to-resources.md
Service: azure-stack
Sub-service: azure-stack-hub
GitHub Login: @BryanLa
Microsoft Alias: bryanla

@drloring - I'm assuming where you said "user", you meant the name of the Application you registered (the service account)? If so, make sure you search for the application name using the syntax mentioned in the article (see step 6 under assign a role).
If this still doesn't work, I'm not sure what the problem would be. You might want to open a support request in the admin portal. See Help and support for more details.
Hope this helps.

@BryanLa Thanks for sharing the details.
@drloring Hope the provided information is helpful.

@drloring
Hope the provided information is helpful.
We will now close this issue. If there are further questions regarding this, please tag me in a comment. I will reopen it and we will continue the discussion.


Move to monolithic activity component

Task/Issue URL: https://app.asana.com/0/488551667048375/1206793506985940/f
Description
Move to monolithic Activity component.
This reduces the DaggerAppComponent from 20+MB to 1MB
Steps to test this PR
Smoke test the app

#4280  👈
develop

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @aitorvs and the rest of your teammates on  Graphite


Custom catalog 'There are no compatible templates.'

Rancher versions:
rancher/server: 1.6.5
rancher/agent: 1.2.5
Infrastructure Stack versions:
healthcheck: 0.3.1
ipsec: 0.11.3
network-services: 0.7.4
scheduler: 0.8.2
kubernetes (if applicable): n/a
Docker version: (docker version,docker info preferred)
# docker info
Containers: 18
 Running: 18
 Paused: 0
 Stopped: 0
Images: 18
Server Version: 17.06.0-ce
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 183
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: cfb82a876ecc11b5ca0977d1733adbe58599088a
runc version: 2d41c047c83e09a6d61d464906feb2a2f3c52aa4
init version: 949e6fa
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 4.4.0-89-generic
Operating System: Ubuntu 16.04.3 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.691GiB
Name: nuc
ID: NON4:EGP4:JIRL:VORA:DR7V:N7Q3:T2QK:NP4B:U5LV:CL7D:YV7O:7DJI
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
 <IP_ADDRESS>/8
Live Restore Enabled: false

WARNING: No swap limit support

Operating system and kernel: (cat /etc/os-release, uname -r preferred)
# cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.3 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.3 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
VERSION_CODENAME=xenial
UBUNTU_CODENAME=xenial

# uname -r
4.4.0-89-generic

Type/provider of hosts: (VirtualBox/Bare-metal/AWS/GCE/DO)
Bare-metal (Intel NUC)
Setup details: (single node rancher vs. HA rancher, internal DB vs. external DB)
single node rancher
Environment Template: (Cattle/Kubernetes/Swarm/Mesos)
Cattle
Steps to Reproduce:

Add a new custom catalog
Add the following:

Name: Cowdog
URL: https://github.com/chriskacerguis/rancher-catalog.git
Branch: master

Go to the custom catalog

Results:
Seeing the following error message:
There are no compatible templates.
(tried refreshing and waiting to no luck)

You are missing the catalog key in rancher-compose.yml: https://github.com/superseb/rancher-catalog-1/commit/f16bb03d1ad19599d03a1795487e54d573a30614
And the config file should be called config.yml.
Let me know if this fixes the problem for you.

@superseb thanks for responding so quickly.  I made the changes you suggested, and still no luck.

Did you manually refresh the catalog by hitting the update button on top?

That fixed it...I clearly need more coffee :)
Thanks for your help @superseb I really appreciate it.


Build fails with new version of Xcode (XCode 14)

Hello there,
My builds (CapacitorJS project) now fail (they used to work a few weeks ago with the same Github pipeline) with the following error:
[13:56:06]: Generated plist file with the following values:
[13:56:06]: ▸ -----------------------------------------
[13:56:06]: ▸ {
[13:56:06]: ▸   "provisioningProfiles": {
[13:56:06]: ▸     "***********": "match AppStore ***********"
[13:56:06]: ▸   },
[13:56:06]: ▸   "method": "app-store",
[13:56:06]: ▸   "uploadBitcode": true,
[13:56:06]: ▸   "signingStyle": "manual",
[13:56:06]: ▸   "teamID": "***"
[13:56:06]: ▸ }
[13:56:06]: ▸ -----------------------------------------
+ xcodebuild -exportArchive -exportOptionsPlist /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/gym_config20221018-3547-kilva.plist -archivePath '/Users/runner/Library/Developer/Xcode/Archives/2022-10-18/output 2022-10-18 13.53.42.xcarchive' -exportPath /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/gym_output20221018-3547-ijrhmz
2022-10-18 13:56:08.429 xcodebuild[10073:26398] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path "/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/App_2022-10-18_13-56-08.427.xcdistributionlogs".
error: exportArchive: exportOptionsPlist error for key "uploadBitcode": cannot upload bitcode because bitcode is imbalanced

Error Domain=IDEFoundationErrorDomain Code=1 "exportOptionsPlist error for key "uploadBitcode": cannot upload bitcode because bitcode is imbalanced" UserInfo={NSLocalizedDescription=exportOptionsPlist error for key "uploadBitcode": cannot upload bitcode because bitcode is imbalanced}

After some research here and there it looks like the MacOS platform is now using XCode 14, which deprecates that "bitcode" stuff that I know absolutely nothing about.
It seems that uploadBitcode should actually be set to false but it looks like I don't have access to that setting.
As a temporary fix, I added this in my Github workflow file:
- name: Enforce XCode version
  uses: maxim-lobanov/setup-xcode@v1
  with:
    xcode-version: '13.4.1'

So that the previous version of Xcode can be used, and it succeeds.
I don't know if there's something you can do about that bitcode thing, but if you have a clue of what this is about and know how to solve it...
Thanks!
Ben

@bpolaszek maybe I could enforce the xcode-version on the action, what do you think?

I don't think it's a long-term solution, but it's up to you!

Ok, will need some more investigation here

Hi @bpolaszek, we released version 2.1.0 of this action with some fixes, can you please try again and report if you still get this error?

Hi @edodusi,
We just gave it a try but it didn't work either. Our pipeline only works when doing this:
- name: Enforce XCode version
   uses: maxim-lobanov/setup-xcode@v1
     with:
       xcode-version: '13.4.1'

Without enforcing XCode version, GA yells something like this:
+ xcodebuild -exportArchive -exportOptionsPlist /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/gym_config20230208-6840-jzab1x.plist -archivePath '/Users/runner/Library/Developer/Xcode/Archives/2023-02-08/output 2023-02-08 15.04.17.xcarchive' -exportPath /var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/gym_output20230208-6840-jye6a2
2023-02-08 15:07:00.999 xcodebuild[13207:35328] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path "/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/App_2023-02-08_15-07-00.994.xcdistributionlogs".
error: exportArchive: exportOptionsPlist error for key "uploadBitcode": cannot upload bitcode because bitcode is imbalanced

Error Domain=IDEFoundationErrorDomain Code=1 "exportOptionsPlist error for key "uploadBitcode": cannot upload bitcode because bitcode is imbalanced" UserInfo={NSLocalizedDescription=exportOptionsPlist error for key "uploadBitcode": cannot upload bitcode because bitcode is imbalanced}

** EXPORT FAILED **
[15:07:03]: Exit status: 70

+---------------+------------------------------+
|              Build environment               |
+---------------+------------------------------+
| xcode_path    | /Applications/Xcode_14.2.app |
| gym_version   | 2.211.0                      |
| export_method | app-store                    |
| sdk           | iPhoneOS16.2.sdk             |
+---------------+------------------------------+

Ok @bpolaszek I think this issue is related to your build settings, because you're trying to upload bitcode and Xcode 14 no longer supports this:

Starting with Xcode 14, bitcode is no longer required for watchOS and tvOS applications, and the App Store no longer accepts bitcode submissions from Xcode 14.

https://developer.apple.com/documentation/xcode-release-notes/xcode-14-release-notes#Deprecations
So maybe disabling it will fix this, let me know.

@bpolaszek please try the latest 2.2.0 release that should fix this issue

Hi @edodusi,
I (@bpolaszek's teammate) confirm the latest 2.2.0 release has resolved this issue :+1:

Thanks @misaert !