Video capture with Android not working as expected.

Hi, I use react-native-camera with Android, Now I can take a photo as excepted, But the example code doesn't work when I try to record a video.
this is my code:
startRecording(){
    console.log('start rec');

    this.camera.capture({mode: Camera.constants.CaptureMode.video})
      .then((data)=>{
        console.log('capturing...');
        this.setState({
          isRecording : true,
          path : data.path,
        });
        console.log(data.path);
      }).catch(err => alert(err));

  }

  stopRecording(){
    console.log('stop rec');
    this.camera.stopCapture();
    this.setState({ isRecording : false});
  }

when I startRecording,there is no callback so I can not get into next step. I also found a wired thing that when I run startRecording() and press the home button to the desktop of my phone to make it run in background and then resume the app to frontground. then the callback is resolved, and the mp4 was stored in my phone. but an 'Cannot read property 'stopCapture' of null 'error occured .
Please how can I fix this ? Thanks.

Well, it's a misunderstaning of the sample code, the mistake I have made is that I put this.setState(isRecording : true) into the callback of capture,it's wrong. If we want catch the returned promise of the capture(),we must invoke stopCapture first.


[Bug - next-pwa]: how to test offline fallback feature

Provide environment information
same version as this example
Link to reproduction - Issues with a link to complete (but minimal) reproduction code help us address them faster
https://github.com/DuCanhGH/next-pwa/tree/master/examples/offline-fallback-v2
To reproduce
Hello, thank you for forking this project, it help me a lot
I want to test offline fallback feature as described here
After running local server, open browser go to localhost:3000
the site work properly and I let my network offline, reload the page
the site still work properly (this is expected, since the route has been cached)
my question is how to let the site fallback to /_offline when network offline
I guess I need to use buildExcludes option to achieve, but I am not sure what files I can exclude
in my project, I don't want to use pre-cache feature, so my buildExcludes config is buildExcludes: [() => true]
but for the offline fallback feature work, I think I need to include the fallback page files.
thank you !
Describe the bug
as described above
Expected behavior
as described above
Screenshots (if relevant)
No response
Additional information (if relevant)
No response

Workbox needs to precache those pages for this feature to work. If you exclude everything from precaching, it is not guaranteed that your fallback page would work. Perhaps you should opt certain assets out of precaching instead. But if you are absolutely certain, maybe you can try this:
const withPWA = require("@ducanh2912/next-pwa").default({
  buildExcludes: [({ asset }) => !/(.*)\/~offline(.*)/.test(asset.name)],
  fallbacks: {
    document: "/~offline",
  },
});

I'm not sure if it works, but yeah.

@DuCanhGH
After testing, it still doesn't work
I guess I need to pre-cache first load JS shared by all

I will continue testing when I have free time.
Thank you for your response

@aNyMoRe0505 you need to precache those assets for your offline fallback page to work, but I don't really see it being so related. You would also need to precache /~offline's .js files as well, so I suggest precaching every asset starting with /_next/static/chunks using buildExcludes: [({ asset }) => !/\/_next\/static\/chunks\/(.*).js/.test(asset.name)]. Maybe try doing that to see if it works? Thanks!
Oh and sorry for the late reply, I've been quite busy lately :)

@DuCanhGH
Thank you for your response !
everyone has a lot of work to do, so don't worry about it
I have other things to handle at the moment, but I will reply after I have some free time to test. Thank you.

@DuCanhGH
I just found that we still can use buildExcludes: [() => true]
the key is if we want to test offline fallback, we need to use next product build (since dev build is on-demand)
and we need to set cacheStartUrl & dynamicStartUrl to false
if we cache start url, when user offline, the start url in cache so we will not be redirected to offline page
the following is the final config I use
const withPWA = require("@ducanh2912/next-pwa").default({
  dest: "public",
  disable: false,
  buildExcludes: [() => true],
  cacheStartUrl: false,
  dynamicStartUrl: false,
});

Thanks for your help ! I think we can close this issue now

@aNyMoRe0505 alright, let's close it :)


How to retrieve continuation token in API 7.0 and above?

Hi, in earlier versions of the API (until  6.0.0b4), when making a request on some items (e.g. WorkItems, Test Suites, ...), you had a response object with a value and a continuation_token that you could use to make a new request and continue parsing.
For example, here is the prototype of such function:
    def get_test_suites_for_plan(self, project, plan_id, expand=None, continuation_token=None, as_tree_view=None):
        """GetTestSuitesForPlan.
        [Preview API] Get test suites for plan.
        :param str project: Project ID or project name
        :param int plan_id: ID of the test plan for which suites are requested.
        :param str expand: Include the children suites and testers details.
        :param str continuation_token: If the list of suites returned is not complete, a continuation token to query next batch of suites is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test suites.
        :param bool as_tree_view: If the suites returned should be in a tree structure.
        :rtype: :class:`<GetTestSuitesForPlanResponseValue>`

So you could do something like:
resp = client.get_test_suites_for_plan(project, my_plan_id)
suites = resp.value
while resp.continuation_token:
    resp = client.get_test_suites_for_plan(project, my_plan_id)
    suites += resp.value

With more recent versions (in particular 7.0), you now get a list returned (but with the limit of size imposed by the API).
For example, a version of similar function would be:
    def get_test_suites_for_plan(self, project, plan_id, expand=None, continuation_token=None, as_tree_view=None):
        """GetTestSuitesForPlan.
        [Preview API] Get test suites for plan.
        :param str project: Project ID or project name
        :param int plan_id: ID of the test plan for which suites are requested.
        :param str expand: Include the children suites and testers details.
        :param str continuation_token: If the list of suites returned is not complete, a continuation token to query next batch of suites is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test suites.
        :param bool as_tree_view: If the suites returned should be in a tree structure.
        :rtype: :class:`<[TestSuite]> <azure.devops.v6_0.test_plan.models.[TestSuite]>`
        """

How to retrieve the continuation token to continue parsing the other results?

An idea of how to proceed would be to patch the _send method of the base Client (in client.py) by storing the continuation token of the last request.
Something like:
class Client(object):
    """Client.
    :param str base_url: Service URL
    :param Authentication creds: Authenticated credentials.
    """

    def __init__(self, base_url=None, creds=None):
        ...
        self.continuation_token_last_request = None

    def _send(self, http_method, location_id, version, route_values=None,
              query_parameters=None, content=None, media_type='application/json', accept_media_type='application/json',
              additional_headers=None):
        ...
        response = self._send_request(request=request, headers=headers, content=content, media_type=media_type)
        ...
        # Patch: Workaround to be able to see the continuation token of the response
        self.continuation_token_last_request = response.headers.get("x-ms-continuationtoken")

        return response

Any better idea?

FYI... I have done a function to temporarily patch as I described above:
"""Patching ADO Client to retrieve continuation token

Related to question in following issue:
https://github.com/microsoft/azure-devops-python-api/issues/461
"""
import logging
from typing import Optional, cast

from azure.devops import _models
from azure.devops.client import Client
from azure.devops.client_configuration import ClientConfiguration
from msrest import Deserializer, Serializer
from msrest.service_client import ServiceClient

logger = logging.getLogger("azure.devops.client")

# pylint: disable=super-init-not-called

class ClientPatch(Client):
    """Client.
    :param str base_url: Service URL
    :param Authentication creds: Authenticated credentials.
    """

    def __init__(self, base_url=None, creds=None):
        self.config = ClientConfiguration(base_url)
        self.config.credentials = creds
        self._client = ServiceClient(creds, config=self.config)
        _base_client_models = {
            k: v for k, v in _models.__dict__.items() if isinstance(v, type)
        }
        self._base_deserialize = Deserializer(_base_client_models)
        self._base_serialize = Serializer(_base_client_models)
        self._all_host_types_locations = {}
        self._locations = {}
        self._suppress_fedauth_redirect = True
        self._force_msa_pass_through = True
        self.normalized_url = Client._normalize_url(base_url)
        self.continuation_token_last_request: Optional[str] = None

    def _send(
        self,
        http_method,
        location_id,
        version,
        route_values=None,
        query_parameters=None,
        content=None,
        media_type="application/json",
        accept_media_type="application/json",
        additional_headers=None,
    ):
        request = self._create_request_message(
            http_method=http_method,
            location_id=location_id,
            route_values=route_values,
            query_parameters=query_parameters,
        )
        negotiated_version = self._negotiate_request_version(
            self._get_resource_location(self.normalized_url, location_id), version
        )
        negotiated_version = cast(str, negotiated_version)

        if version != negotiated_version:
            logger.info(
                "Negotiated api version from '%s' down to '%s'."
                " This means the client is newer than the server.",
                version,
                negotiated_version,
            )
        else:
            logger.debug("Api version '%s'", negotiated_version)

        # Construct headers
        headers = {
            "Content-Type": media_type + "; charset=utf-8",
            "Accept": accept_media_type + ";api-version=" + negotiated_version,
        }
        if additional_headers is not None:
            for key in additional_headers:
                headers[key] = str(additional_headers[key])
        if self.config.additional_headers is not None:
            for key in self.config.additional_headers:
                headers[key] = self.config.additional_headers[key]
        if self._suppress_fedauth_redirect:
            headers["X-TFS-FedAuthRedirect"] = "Suppress"
        if self._force_msa_pass_through:
            headers["X-VSS-ForceMsaPassThrough"] = "true"
        if (
            Client._session_header_key in Client._session_data
            and Client._session_header_key not in headers
        ):
            headers[Client._session_header_key] = Client._session_data[
                Client._session_header_key
            ]
        response = self._send_request(
            request=request, headers=headers, content=content, media_type=media_type
        )
        if Client._session_header_key in response.headers:
            Client._session_data[Client._session_header_key] = response.headers[
                Client._session_header_key
            ]

        # Patch: Workaround to be able to see the continuation token of the response
        self.continuation_token_last_request = self._get_continuation_token(response)

        return response

def patch_azure_devops_client():
    """Patch the Azure DevOps client to see the continuation token of the response"""
    # pylint: disable=protected-access
    Client.__init__ = ClientPatch.__init__  # type: ignore
    Client._send = ClientPatch._send  # type: ignore

Just importing and calling the patch_azure_devops_client before creating a client will add a continuation_token_last_request  to the client. Not ideal but at least it works for me.
I'm really curious to know the real way to find the token though...

Maybe it is related to an old and closed issue:
https://github.com/microsoft/azure-devops-python-api/issues/152

The fact that the sample code in the project README does not run due to this issue and there has been no response here from the team does not instill a lot of confidence, does it?

I just tried updating my team's stack and ran into the same issue.  I'm confused how it's been this way for so long.  Either we're both missing something, or this has in fact been a problem in v6.0.0 for a long time, but you can bypass it by using 6.0.0b4 and specify the v5.1.  But that gets back to sanity checking - has it really been broken for about 4 years since 6.0.0 came out and everyone is collectively just working around it by using the v5.1 API?
I'm guessing v6.0.0b4 will work for at least a couple of more years, so we're just planning on checking on this later.

Worth mentioning that you now have the choose between using Python 3.12 OR having functional pagination as only 7.1.0b4 works on Python 3.12.
Would love to see some TLC from Microsoft on this. Contemplating just using the azure cli's devops extension via subprocess.run since this project appears to be more or less broken and unmaintained.

The continuation 'token' is just the pagination results. "200;0"  "400;0" "600;0" so you can just loop till the returned results are not == 200 to gather all the items. No need to mess about with the internals.
Super un-intuitive I know and only discovered it by going in to patch things.

Thanks for this thread.  For anybody else that lands here...  I  tried the @elfgirl  call sequence above, but it did not work as the continuation token returned for me was an ID not an item count and hence not predictable.  However the @jfthuong  solution did work for me.  Although instructions were clear, as a Python noob it took me a while to get there.  So commenting to provide   example usage of the proposed patch solution.  I agree this needs fixing, would prefer a class returned containing the continuation-token and the list - or an additional alternate method that hides the pagination complexity from the caller.
Added a file called PatchedAzureClient.py to project - with code as provided @jfthuong  above.
Changed my azure interaction class to use it e.g.
import PatchedAzureClient as patchingClient`
...
def getChildTestSuites(a_context : SimpleNamespace, a_testPlanId : str) -> List[TestSuite]:
    #set up override behaviour to add continuation token feature
    patchingClient.patch_azure_devops_client()

    #create patched version of client
    testPlanClient : TestPlanClient = a_context.connection.clients.get_test_plan_client()

    retVal : List[TestSuite] = list()

    #Pagination means max 200 records a go - keep calling until got all results
    results : List[TestSuite] = testPlanClient.get_test_suites_for_plan(project="Foo", plan_id=a_testPlanId)
    retVal = retVal + results

    while(testPlanClient.continuation_token_last_request):
        results : List[TestSuite] = testPlanClient.get_test_suites_for_plan(project="Foo", plan_id=a_testPlanId, continuation_token=testPlanClient.continuation_token_last_request)
        retVal = retVal + results

    return retVal


Commands that don't use profiles error out if an invalid profile is set with AWS_PROFILE

A command like aws-sso-util login does not depend on using a specific config profile. And when we're creating the botocore clients, we're not causing the credential search that would expose an invalid profile. But certain aspects of botocore do that search anyway; creating a client searchs for ca_store.
We could prevent all config lookups in these functions from accessing profiles, but I'm not sure that's a good idea.

This is released in CLI v4.26


feat(postgres): add commands configs

right now setup-postgres and start-postgres are added to the user's dev shell, but there's little documentation about even the existence of these utilities. since they're non-standard utilities (that is, they aren't defined by pkgs.postgresql), it's non-ideal leaving them undocumented
this solution isn't ideal because the categories are subjective to my own categorization method, but this greatly improves ux
an even better solution would be to refactor the commands option to accept and attrset of <name> = <command config>, which would allow the user to respec the categories

thanks!


Package deps into lambda and update path

Unless I'm mistaken, this is the quickest way to get the dependencies in place for the lambda; I just took the deps from requirements.txt and installed them to a folder, then updated the path before all the action starts (I stole the handler from someone else's test lambda; I have no real opinion on what it should look like in the long run)

I agree, I think we should use actions for that. I wanted to do that but I'm tied down with other stuff over the weekend.

k - I'll close it out.  I didn't know if gh actions supported it, and was looking to remove this as a barrier if people were looking to test their stuff.


QueryDSL-SQL addBatch() with null values

QueryDsl classes generated from this:
CREATE TABLE FOO(ID INT IDENTITY(1,1), c1 int null,c2 int null)

Code snippets:
QFoo f= QFoo.foo;
SQLInsertClause sic = new SQLInsertClause(c, new H2Templates(), f);
sic.columns(f.c1,f.c2).values(null,null).addBatch();
sic.columns(f.c1,f.c2).values(null,1).addBatch();
sic.execute();

or
QFoo f= QFoo.foo;
SQLInsertClause sic = new SQLInsertClause(c, new H2Templates(), f);
Foo f1=new Foo();
sic.populate(f1).addBatch();
f1=new Foo();
f1.setC1(1);
sic.populate(f1).addBatch();
sic.execute();

Result:
Exception in thread "main" java.lang.IllegalArgumentException: org.h2.jdbc.JdbcSQLException: Invalid value "1" for parameter "parameterIndex" [90008-161]
	at com.mysema.query.sql.dml.AbstractSQLClause.setParameters(AbstractSQLClause.java:66)
	at com.mysema.query.sql.dml.SQLInsertClause.createStatement(SQLInsertClause.java:239)
	at com.mysema.query.sql.dml.SQLInsertClause.execute(SQLInsertClause.java:292)
	at querydsl.bug.BugTest.main(BugTest.java:59)
Caused by: org.h2.jdbc.JdbcSQLException: Invalid value "1" for parameter "parameterIndex" [90008-161]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)
	at org.h2.message.DbException.get(DbException.java:169)
	at org.h2.message.DbException.getInvalidValueException(DbException.java:215)
	at org.h2.jdbc.JdbcPreparedStatement.setParameter(JdbcPreparedStatement.java:1270)
	at org.h2.jdbc.JdbcPreparedStatement.setInt(JdbcPreparedStatement.java:308)
	at com.mysema.query.sql.types.IntegerType.setValue(IntegerType.java:41)
	at com.mysema.query.sql.types.IntegerType.setValue(IntegerType.java:24)
	at com.mysema.query.sql.Configuration.set(Configuration.java:93)
	at com.mysema.query.sql.dml.AbstractSQLClause.setParameters(AbstractSQLClause.java:64)
	... 3 more

Seems that engine not recognizing nulls as necessary to be included(as "NULL") in prepared stmt, this behavoir is not valid in cases like above.

@H0 Could you verify that it works now for you?

@timowest
With 2.3.1.BUILD-SNAPSHOT from mvn repo source.mysema.com/maven2/snapshots/, first code snippet runs w/o errors, second(using beans) fails with same error.
NB: Using artifacts from git is tricky: "cd querydsl-root && mvn install -P sql -DskipTests=true".

The second issue is a bit more difficult to fix. I can either use an INSERT statements with parameter slots for all columns or do some normalization of the batches to make sure that all columns are covered.

@H0 You need an easier way to build without tests?

I'll close it when it's released.

I found now a way to support the second issue. You can use an alterantive Mapper in the populate call to bind also the null values explicitly :
Mapper<Object> mapper = DefaultMapper.WITH_NULL_BINDINGS;
...
sic.populate(f1, mapper).addBatch();

When you use the default mapper then there is a risk of an error if the binding columns don't match in a batch insert. Using the null bindings enabled mapper all binding columns are always used.

You need an easier way to build without tests?
@timowest Just looking for nicer way to use sources without installing them in local mvn repo, but looks like it SHOULD be done that way: so, mvn install or use mysema snapshots repo, they both not so scary after all :)

I found now a way to support the second issue
It works, thanks!
Just interesting: this is most elegant way from this project architecture pov? Idea: maintaining fields mask and finally constructing prepared statement field list based on that mask.

I'll close this when it's released
Just interesting: this is most elegant way from this project architecture pov? Idea: maintaining fields mask and finally constructing prepared statement field list based on that mask.
This could definitely be improved and supplying a field mask might work. You can open a new ticket for it, if you like.

Sorry for inattention, actual situation is like this:
CREATE TABLE BAR(ID INT IDENTITY(1,1), c1 int null,c2 int default 1 not null)
```sql
But i cant handle assigning default value even with PreparedStatement:
```java
PreparedStatement ps = c.prepareStatement("INSERT INTO BAR (c1,c2) values (?, ?)");
ps.setInt(1, 2);
//ps.setDefaultValue();
ps.addBatch();
//...
ps.executeBatch();
```java
Maybe this can be done via setObject(), but i don know how.

Maybe the default value can be retrieved via JDBC parameter metadata. But that might be a bit fragile and probably not portable.

released in 2.3.2


MSID: 92831 Version: 1 DOI: 10.1101/2<IP_ADDRESS>6396

MSID: 92831
Version: 1
Preprint DOI: https://doi.org/10.1101/2<IP_ADDRESS>6396
Step 1. Awaiting reviews
Editorial to post reviews via hypothesis
Useful links:

DocMap: https://data-hub-api.elifesciences.org/enhanced-preprints/docmaps/v2/by-publisher/elife/get-by-manuscript-id?manuscript_id=92831
New model tracking: https://docs.google.com/spreadsheets/d/1_fHaoOy7hjyocptKtVJRijeNpUY4hBS7Ck_aVmx6ZJk/
Reviews on sciety: https://sciety.org/articles/activity/10.1101/2<IP_ADDRESS>6396

For trouble shooting (e.g. no Docmaps available):

DocMap issue addressing: https://miro.com/app/board/uXjVNCwK6EI=/
Explore DataHub DocMaps API: https://lookerstudio.google.com/reporting/4c2f0368-babb-4beb-b5b3-497e7e7b0f08/page/ejphD
Unmatched submissions and preprints: https://lookerstudio.google.com/u/0/reporting/9f86204f-3bf7-477c-9b18-5c5ef141bf69/page/p_gxi57ha93c
Unmatched manuscripts spreadsheet: https://docs.google.com/spreadsheets/d/15QcK8w-ssB7109RQEDtFpJPZ0J5HTGxoHa_2TtpMBbg/edit#gid=1336081641

Step 2. Preview reviewed preprint
Production QC content ahead of publication
Instructions:

QC preview: https://prod--epp.elifesciences.org/previews/92831v1
Update ticket with any problems (add blocked label)
When QC OK, add QC OK label to ticket and add publication date and time to https://docs.google.com/spreadsheets/d/1amAlKvdLcaDp5W8Z8g77NmkwbMF5n_u89ArSqPMO8jg
Move card to next column
(At end of the day post link in #enhanced-preprint and ask for PDF to be generated)

Useful links:

Preprint DOI :  https://doi.org/10.1101/2<IP_ADDRESS>6396
Confirm reviews returned by EPP: https://prod--epp.elifesciences.org/api/reviewed-preprints/92831/v1/reviews
To update the MECA path in the docmap: https://docs.google.com/spreadsheets/d/1mctCQuNFBjSn97Lihy7_vBO6z7-N-oqyLv4clyi6zHg

Step 3: Awaiting search reindex
This step adds the reviewed preprint to the homepage: https://elifesciences.org
The search reindex is triggered once an hour. We need the reviewed preprint to be indexed as the search application serves the journal homepage.
Useful links:

Jenkins pipeline to reindex search can be triggered sooner or monitored here: https://alfred.elifesciences.org/job/process/job/process-reindex-reviewed-preprints/

Step 4: Published! PDF requested
Waiting for PDF to be generated
Useful links:

PDF tracking: https://docs.google.com/spreadsheets/d/106_XeDjmuBae7gexOTNzg60lapeqjl2aRn9DzupGyS8/

Step 5: Introduce PDF to data folder and git repo
Upload PDF to relevent folder in git repo https://github.com/elifesciences/enhanced-preprints-data/
Step 6: Done!

[ ] Kettle is on!

@acollings this Reviewing Editor is missing their affiliation?

@fred-atherden for the below reference the author's initial M' has been captured as the title?

@rkcook312 fixed!

@rkcook312 (about the reference), yes you are right. I've uploaded a fixed package to s3://prod-elife-epp-meca/92831-v1-meca.zip, which I'd expect EPP to load in the next couple of hours.


Mention the global_allocator trait

I don't know much about the organization of this book, but this seems an ok place to put it.
cc https://github.com/rust-lang/rust/pull/51974

I didn't know how to link GlobalAlloc.

This should be on hold until https://github.com/rust-lang/rust/pull/51974#issuecomment-401678445

I don't see how that comment relates to the contents of this PR. It doesn't mention what the default allocator is either.

Given that global_alloc is stable, better to have at least a stub of documentation vs. no documentation at all. We want the list to at least be complete.


Upgrade to wasmtime 8.0.1

This brings spin much further forward with regards to its usage of upstream wasm libraries which enables a lot more experimentation with new standards around the component model. For users this should effectively be a noop.

This PR might resolve issue #1437

The failing test is due to the fact that we're defining our spin world in two different ways (due to the fact that our SDKs use old versions of wit-bindgen - fixed in #1424 - while our host implementation uses newer style wit documents). The config interface is called "spin-config" in the SDK while the host expects just "config". spin-componentize is smoothing this out for older modules which is why this wasn't an issue before, but we updated the failing test to use wit-bindgen 0.6 which thus skips over the spin-componentize world massaging.
For now, we can merge https://github.com/fermyon/spin-componentize/pull/7 and revert the broken test to use wit-bindgen 0.4, but we'll eventually want to fix the issue of our world definitions not aligning. When #1424 is merged we can move to using the same wit definitions for both guest and host.

Superseded by #1439.


[WIP]: Remove active gateway

Work in progress to remove the "active gateway" concept from the client. Higher level wallets can implement caching of the gateway if they please.
The approach I'm taking requires the wallet (i.e the cli or load tool) to pass in a LightningGateway. This certainly breaks CLI backwards compatibility for the rust SDK....open to ideas if this is acceptable or not.

I think this closes https://github.com/fedimint/fedimint/issues/3844

Two problems make this a tad difficult:

Devimint tests need to be made backwards compatible.
Removing "active gateway" effectively removes caching of the Lightning Gateways, which regresses the latency tests. Perhaps a better approach is to change "active gateway" into a gateway cache, but still force the cli to pass a gateway id.


Error: Unable to Get supported metric groups

I run this command with MIG on A100,  and got this ERROR.

@xichie,
Which version have you used before?
dcgmi -v should show both dcgmi (client) and nv-hostengine (server) versions.
For MIG-enabled systems, you may use dcgmi discovery -c to get information about the MIG topology.


pr.cu treats cusLb as a struct rather than pointer to struct

cout << "The number of non zeros is : " << cusLB.currArrayLen << endl;
should be
cout << "The number of non zeros is : " << cusLB->currArrayLen << endl;

Relevant lines:
https://github.com/cuStinger/cuStingerAlg/blob/master/src/static_page_rank/pr.cu#L73
and
https://github.com/cuStinger/cuStingerAlg/blob/master/src/static_page_rank/pr.cu#L73


Missing or incomplete links in Slack notifications

Bug description
Links to details in slack notifications are empty or incomplete.
Steps to reproduce
Steps to reproduce the behavior:

Set up Slack integration
Upload a new test, such as a Bandit output
When receiving the results in Slack, the url is incomplete

A similar issue happens when SLAs are due. In this case, no link at all is shown. I suspect the same goes with other reports too.

Expected behavior
The URLs in Slack notifications should be complete, including the domain.
Deployment method (select with an X)

[ ] Kubernetes
[X] Docker
[ ] setup.bash / legacy-setup.bash

Environment information

Operating System: MacOS Catalina 10.15.7

Seems url is used instead of full_url in templates.

@marcosValle the full_url is relatively new and not used everywhere yet. Are you able to take a stab at creating a PR?

Sure, let me give it a try.

fixed by #3538


added stack-overflow badge

Pull Request Description
This pull request closes #1507
Acceptance Test

[x] Building the code with mvn clean install -Dintegration.tests still works.
[x] Running mvn spring-boot:run in the strongbox-web-core still starts up the application correctly.
[x] Building the code and running the strongbox-distribution from a zip or tar.gz still works.
[x] The tests in the strongbox-web-integration-tests still run properly.

Questions

Does this pull request break backward compatibility?

[ ] Yes
[x] No

Does this pull request require other pull requests to be merged first?

[ ] Yes, please see #...
[x] No

Does this require an update of the documentation?

[ ] Yes, please see strongbox/strongbox-docs#{PR_NUMBER}
[x] No

Closing in favour of #1508. Sorry about the duplication.


Refactor column definer module

Tidy up ColumnMethodDefiner - extract some methods and other changes.

I am generally skeptical about merging pure refactoring PRs, unless they serve a specific purpose.  But this refactoring is looking good, and makes the code a lot more readable.
@brendon Unless you have any objections, we can merge this.

Thanks @swanandp, @ledestin does some work for me as a contractor and is using this gem in his blog about refactoring. I think this is just continuing on from his work last year around splitting out the acts_as_list mega-method into more logical blocks. I'm happy to merge it too. :)


Return diff count between input images

ImageDiff currently does not return the number of different pixels between the two input images.
This value returned as the process exit code is valuable for any consuming process.
Both MetalDiffer and SoftwareDiffer are capable of tracking this value within a single pass. CoreImageDiffer however is not, due to the restrictions of the CoreImage signatures. This will require a CPU bound pass of the output image, which almost certainly means a buffer copy, slowing down that Differ.
This is still a valuable trade off for consuming processes.

Added in commit 2a2f7b278f5826fcfbcaf6224725997bdb96a380


Misc grammar fixes

[x] Verify the basics seem to work (types, functions, operators, branches and loops).
[x] Add some minimal error-handling with pins and recovery rules for the sake of understanding.

No recovery rule required so far, it seems. An external rule was used to disambiguate dereference and multiplication expressions, though.


chore(ci): enable release workflow for graphql-toolkit-writer crate

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 90.00%. Comparing base (bc2ee07) to head (3f880a8).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #52   +/-   ##
=======================================
  Coverage   90.00%   90.00%
=======================================
  Files           8        8
  Lines        1400     1400
=======================================
  Hits         1260     1260
  Misses        140      140

Flag
Coverage Δ

integration
92.64% <ø> (ø)

unit
0.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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


tools: add security  key support  for  n6010 smart NIC

-read PMCI security  keys from sysfs path to “dfl/**/security/”
Signed-off-by: anandaravuri<EMAIL_ADDRESS>

Coverage decreased (-0.2%) to 63.71% when pulling 92d4e8600f8cb70e3660f1926fcce1333185b084 on aravuri/n6010_sec into 2756b3d83d497edb6c6b41127d9d6b7e30ff91db on master.


[Bug] Canonical URL for some licenses returns 403

Description

The canonical URL for the following licenses returns a 403 error instead of redirecting to the deed.

List of URLs

https://creativecommons.org/licenses/by/3.0/am/
https://creativecommons.org/licenses/by/3.0/ge/
https://creativecommons.org/licenses/by/3.0/hk/
https://creativecommons.org/licenses/by/3.0/ie/
https://creativecommons.org/licenses/by/3.0/sg/
https://creativecommons.org/licenses/by/3.0/za/
https://creativecommons.org/licenses/by/3.0/th/
https://creativecommons.org/licenses/by/3.0/vn/
https://creativecommons.org/licenses/by/2.5/in/
https://creativecommons.org/licenses/by/2.5/il/
https://creativecommons.org/licenses/by/2.5/mk/
https://creativecommons.org/licenses/by/2.5/za/
https://creativecommons.org/licenses/by/2.5/scotland/
https://creativecommons.org/licenses/by/2.0/za/
https://creativecommons.org/licenses/by/2.0/uk/
https://creativecommons.org/licenses/by/1.0/il/
https://creativecommons.org/licenses/by-sa/3.0/am/
https://creativecommons.org/licenses/by-sa/3.0/ge/
https://creativecommons.org/licenses/by-sa/3.0/hk/
https://creativecommons.org/licenses/by-sa/3.0/ie/
https://creativecommons.org/licenses/by-sa/3.0/sg/
https://creativecommons.org/licenses/by-sa/3.0/za/
https://creativecommons.org/licenses/by-sa/3.0/th/
https://creativecommons.org/licenses/by-sa/3.0/vn/
https://creativecommons.org/licenses/by-sa/2.5/in/
https://creativecommons.org/licenses/by-sa/2.5/il/
https://creativecommons.org/licenses/by-sa/2.5/mk/
https://creativecommons.org/licenses/by-sa/2.5/za/
https://creativecommons.org/licenses/by-sa/2.5/scotland/
https://creativecommons.org/licenses/by-sa/2.0/za/
https://creativecommons.org/licenses/by-sa/2.0/uk/
https://creativecommons.org/licenses/by-sa/1.0/il/
https://creativecommons.org/licenses/by-nc/3.0/am/
https://creativecommons.org/licenses/by-nc/3.0/ge/
https://creativecommons.org/licenses/by-nc/3.0/hk/
https://creativecommons.org/licenses/by-nc/3.0/ie/
https://creativecommons.org/licenses/by-nc/3.0/sg/
https://creativecommons.org/licenses/by-nc/3.0/za/
https://creativecommons.org/licenses/by-nc/3.0/th/
https://creativecommons.org/licenses/by-nc/3.0/vn/
https://creativecommons.org/licenses/by-nc/2.5/in/
https://creativecommons.org/licenses/by-nc/2.5/il/
https://creativecommons.org/licenses/by-nc/2.5/mk/
https://creativecommons.org/licenses/by-nc/2.5/za/
https://creativecommons.org/licenses/by-nc/2.5/scotland/
https://creativecommons.org/licenses/by-nc/2.0/za/
https://creativecommons.org/licenses/by-nc/2.0/uk/
https://creativecommons.org/licenses/by-nc/1.0/il/
https://creativecommons.org/licenses/by-nd/3.0/am/
https://creativecommons.org/licenses/by-nd/3.0/ge/
https://creativecommons.org/licenses/by-nd/3.0/hk/
https://creativecommons.org/licenses/by-nd/3.0/ie/
https://creativecommons.org/licenses/by-nd/3.0/sg/
https://creativecommons.org/licenses/by-nd/3.0/za/
https://creativecommons.org/licenses/by-nd/3.0/th/
https://creativecommons.org/licenses/by-nd/3.0/vn/
https://creativecommons.org/licenses/by-nd/2.5/in/
https://creativecommons.org/licenses/by-nd/2.5/il/
https://creativecommons.org/licenses/by-nd/2.5/mk/
https://creativecommons.org/licenses/by-nd/2.5/za/
https://creativecommons.org/licenses/by-nd/2.5/scotland/
https://creativecommons.org/licenses/by-nd/2.0/za/
https://creativecommons.org/licenses/by-nd/2.0/uk/
https://creativecommons.org/licenses/by-nd/1.0/il/
https://creativecommons.org/licenses/by-nc-sa/3.0/am/
https://creativecommons.org/licenses/by-nc-sa/3.0/ge/
https://creativecommons.org/licenses/by-nc-sa/3.0/hk/
https://creativecommons.org/licenses/by-nc-sa/3.0/ie/
https://creativecommons.org/licenses/by-nc-sa/3.0/sg/
https://creativecommons.org/licenses/by-nc-sa/3.0/za/
https://creativecommons.org/licenses/by-nc-sa/3.0/th/
https://creativecommons.org/licenses/by-nc-sa/3.0/vn/
https://creativecommons.org/licenses/by-nc-sa/2.5/in/
https://creativecommons.org/licenses/by-nc-sa/2.5/il/
https://creativecommons.org/licenses/by-nc-sa/2.5/mk/
https://creativecommons.org/licenses/by-nc-sa/2.5/za/
https://creativecommons.org/licenses/by-nc-sa/2.5/scotland/
https://creativecommons.org/licenses/by-nc-sa/2.0/za/
https://creativecommons.org/licenses/by-nc-sa/2.0/uk/
https://creativecommons.org/licenses/by-nc-sa/1.0/il/
https://creativecommons.org/licenses/by-nc-nd/3.0/am/
https://creativecommons.org/licenses/by-nc-nd/3.0/ge/
https://creativecommons.org/licenses/by-nc-nd/3.0/hk/
https://creativecommons.org/licenses/by-nc-nd/3.0/ie/
https://creativecommons.org/licenses/by-nc-nd/3.0/sg/
https://creativecommons.org/licenses/by-nc-nd/3.0/za/
https://creativecommons.org/licenses/by-nc-nd/3.0/th/
https://creativecommons.org/licenses/by-nc-nd/3.0/vn/
https://creativecommons.org/licenses/by-nc-nd/2.5/in/
https://creativecommons.org/licenses/by-nc-nd/2.5/il/
https://creativecommons.org/licenses/by-nc-nd/2.5/mk/
https://creativecommons.org/licenses/by-nc-nd/2.5/za/
https://creativecommons.org/licenses/by-nc-nd/2.5/scotland/
https://creativecommons.org/licenses/by-nc-nd/2.0/za/
https://creativecommons.org/licenses/by-nc-nd/2.0/uk/
https://creativecommons.org/licenses/by-nd-nc/1.0/il/

Reproduction
Visit any of the URLs listed above to see the 403 error. Visit these URLs with deed.en appended to see the actual deed.
Expectation

These pages should automatically redirect to the deeds page as happens for other licenses not listed above.
Additional context

This affects 96 of 580 licenses (including 3 public domain toots).
Resolution

[ ] I would be interested in resolving this bug.

I looked into this a little bit and it seems like the issue is not with this repo but rather https://github.com/creativecommons/cc-legal-tools-data. Transforming any of the above URLs to look at the files in the legal-tools-data repo[^1] shows that these folders do not contain the following symlinks:

index.html
deed.html

The lack of index.html and deed.html might be why these URLs are not automatically redirecting.
This points to an even deeper issue. It's that these particular licenses do not contain a localised deed so the redirect will probably have to be to their English deeds (deeds.en which I checked is present for all licenses). This is not unprecedented, the current list of licenses already points to the English deed for these.
[^1]: Replace "creativecommons.org/" with "github.com/creativecommons/cc-legal-tools-data/tree/main/docs/" in the list of URLs in the issue.


Add an option so that strinfigy to JSON.stringify objects

Current behavior
If the value is an object or array, [object Object] will be put into the template. This might not be very helpful for debugging (and sometimes this is exactly what you would want, which forces you to write a transformation).
Expected behavior
Add an option like stringifyObjectValues or equivalent in the stringify options and let it put a nicer presentation of objects in the output.
Out of scope
One may want to give special treatment to arrays or set the indentation as well but I'm not aware of any strong use case so let's not add that now.

@userpixel have you found any template library that will stringify your object like this?

I haven't seen something like that. This is how Mucromustache used to work
before but it changed to improve performance.
As a user, it's easy to add that behavior by passing a function to renderFn
that stringifies the target object.
On Tue, Jul 27, 2021, 06:40 Shawn Mclean @.***> wrote:

@userpixel https://github.com/userpixel have you found any template
library that will stringify your object like this?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/userpixel/micromustache/issues/86#issuecomment-887202992,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAGMBJW4F4AOXMG27SMSMQDTZY2CDANCNFSM4QBONK3A
.


update DataDefinitions and SingleValueTiles and fix tests

Component disappears at 575px width. Is this intended?

It was originally but doesn't make sense now - thanks - I will update


thunderbird-bin: 38.7.2 -> 45.0

Things done

[X] Tested using sandboxing (nix-build --option build-use-chroot true or nix.useChroot on NixOS)
Built on platform(s)

[X] NixOS
[ ] OS X
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[X] Tested execution of all binary files (usually in ./result/bin/)
[X] Fits CONTRIBUTING.md.

Add a Correspondents column combining Sender and Recipient
Much better support for XMPP chatrooms and commands.
Remote content exceptions: Improved options to add exceptions.
Implement option to always use HTML formatting to prevent unexpected format loss when converting messages to plain text.
Use OpenStreetmap for maps (even allow the user to choose from list of map services)
Allow spell checking and dictionary selection in the subject line
Add dropdown in compose to allow specific setting of font size.
Return/Enter in composer will now insert a new paragraph by default (shift-Enter will insert a line break)
Mail.ru supports OAuth authentication.
Allow copying of name and email address from the message header of an email
Allow editing of From when composing a message.
Bug fixes.

https://www.mozilla.org/en-US/thunderbird/45.0/releasenotes/

A suggestion for future commits (no need updating this one): could you add the release info to the commit message, for the benefit of people only reading the git log?

That may be challenging because I'm semi-automating update process (it is still experimental): checks Mozilla periodically, updates the nix expression, commits it, and pushs it. I will try to extract release notes from Mozilla.

@taku0 ah, if it's difficult to do, then don't bother


Add "errors" keyword argument to drop() and drop_dims() (#2994)

[x] Closes #2994
[x] Tests added
[x] Fully documented, including whats-new.rst for all changes and api.rst for new API

This addresses #2994 by adding an "errors" keyword argument to Dataset.drop(), Dataset.drop_dims(), and DataArray.drop().
I stuck with pandas' convention of using either errors='raise', now the default that maintains previous behavior by raising an error if any passed label is not found in the dataset/array, or errors='ignore' in which case any missing labels are silently ignored.
This seems like a pretty straightforward change; mainly it is just skipping checks for missing labels when errors == 'ignore' and passing the errors keyword over to the pandas method when using index.drop(). Hopefully there are no subtleties that I've missed.
I added documentation to the appropriate methods, although I have been struggling to build the docs locally and am unsure if they look right.
Also this is my first attempt to contribute to any project, so suggestions and feedback are welcome.

This looks great, thank you!
One design question: should we stick with errors='ignore' like pandas, or would it be better to use a more self-descriptive argument name like missing='ignore'/missing='raise'?

One design question: should we stick with errors='ignore' like pandas, or would it be better to use a more self-descriptive argument name like missing='ignore'/missing='raise'?

I'm ambivalent. I prefer the missing=, but I'm more 'in it' than the average user, who would probably prefer consistency. If people / @shoyer vote that missing= is materially better, let's change

I have to say as someone who is probably an average user, inconsistencies between related projects, like xarray/pandas or matplotlib/seaborn, drive me nuts. But I also agree that missing= is more descriptive, and if we were starting from scratch I would totally support that. So I will defer to the maintainers here.

OK, I'm going to go ahead and merge after tests pass!

Sounds great. Thanks for making this a smooth and well documented process for new contributors


Can't use comma to create float

Steps to reproduce:
var p = 3.14  # This is ok
var e = 2,71  # Syntax error
print(float("2,71"))  # 2

It would be nice to be able to use both separators if engine doesn't have any special plans on comma in numbers :)

No, that's not possible and if it were, it would be a bad idea. How would you know if foo(3,14) is actually foo(float) or foo(int, int)?

This is not possible, simply because it would make the following code ambiguous:
var list = [3,14, 2] # How many elements this array contains?


Refactoring action

Changes

Split actions into 2: one to test scala code and another to test transactions
This was made to run in parallel
Refactoring actions to use templates and be more easy to add/remove instances on each layer
We will add more test scenarios as new actions to run in parallel, this new action should test the rewards

Great job @IPadawans, looks really solid :clap:
Can you squash the failing commits and/or rename them? (as "More updates" does not describe what you did)

Also, please add a missing label

Hey @marcinwadon I will haha still testing some points, that's the reason I've some failures yet, I'll normalize everything yet


Set navigation item title on a TableViewController child of UISideMenuNavigationController not working

New Issue Checklist

I have read the guidelines for contributing and I understand:

[x] My issue is happening in the latest version of SideMenu.
[x] My issue was not solved in the README.
[x] My issue can not be answered on stackoverflow.com.
[x] My issue is not a request for new functionality that I am unwilling to build and contribute with a pull request.
[x] My issue is reproducible in the demo project.

Issue Description

I am trying to set a title to my rootViewController programmatically but it is not working.
func configurarMenuRightNavigationController() {

        SideMenuManager.menuFadeStatusBar = false

        let menuRightNavigationController = storyboard!.instantiateViewController(withIdentifier: "RightMenuNavigationController") as! UISideMenuNavigationController

        //let menuRightNavigationController = UISideMenuNavigationController(rootViewController: YourViewController)
        // UISideMenuNavigationController is a subclass of UINavigationController, so do any additional configuration
        // of it here like setting its viewControllers. If you're using storyboards, you'll want to do something like:

        SideMenuManager.menuRightNavigationController = menuRightNavigationController

        SideMenuManager.menuRightNavigationController?.viewControllers[0].navigationItem.title = "Teste"

        SideMenuManager.menuPresentMode = .viewSlideOut
    }

The title doesn't change.
It works when I try in another project without Side Menu on a regular UINavigationController.

This is a question for stackoverflow.com.

I'm having the same problem. I think this is related to the library, as the standard UINavigationController displays title as expected


encode (json) into a predefined byte array

@narayaruna mentioned offline that it would be nice to encode into an existing byte array as opposed to allocating one.
While he didn't use this example, such a change would make this drop-in reusable with okio UnsafeCursor. In doing so, writing json can use pooled buffers with ideally near zero array allocation.

We experimented with this in an unrelated project and it has proven to be quite beneficial.  Another thing we did, and I even half-did in Zipkin, was change the JsonEncoder to write to an OutputStream instead of a ByteBuffer.  In doing so, you can just stream data directly out and not have to worry so much about buffering/reallocating.  It was also a pretty straightforward change at the time (not exactly pull-requestable at the moment though).
This is just food for thought though as I'm not sure where you were intending to make this change.

ya both ways make sense, but thanks for being explicit about the tip!


Key Bindings: Wrong escape sequence sent, if it starts with ^[[r...

Environment

Microsoft Windows [Version 10.0.18363.476]
Alacritty 0.4.0

Relevant configuration
key_bindings:
  - { key: Back, mods: Control, chars: "\x1b[rC;BS~" }

Expected behavior
When pressing CTRL-Backspace, ^[[rC;BS~ is emitted (which is bound in most applications I use to backward-kill-word).
Actual behavior
Alacritty emits the following escape sequence: ^[[1;5BC;BS~, the full output of showkeys looks like this:
^[[1;5BC;BS~     27 0033 0x1b
         91 0133 0x5b
         49 0061 0x31
         59 0073 0x3b
         53 0065 0x35
         66 0102 0x42
         67 0103 0x43
         59 0073 0x3b
         66 0102 0x42
         83 0123 0x53
        126 0176 0x7e

More info

xterm (Linux) and Terminal.app (macOS) behave as expected with a comparable configuration.
Changing the escape sequence to  ^[[zC;BS~ or ^[[+C;BS~ or ^[[_C;BS~ does work, while ^[[aC;BS~ or ^[[bC;BS~ are broken, too.

Have you verified that your configuration file is loaded correctly? Also which result do you get without any binding?
Also could you test with ctrl+v instead of showkeys?

Yes, I'm sure the config is loaded correctly
I'm using WinPTY (as ConPTY has loads of other issues for me).
With ConPTY this is broken, too, but the emitted sequence is C;BS~.
Without binding the Backspace key is emitted, as if Control would not be pressed: 0x7f

Using WinPTY will give you a terrible experience with poor support for conventional unix terminal emulators, there's just no way around it.
WinPTY is outdated and left to die from Microsoft as far as I know. There's no way for Alacritty to fix the plethora of issues it has and I don't think there's much that can be done with WinPTY. However I'm happy to help troubleshoot all the existing ConPTY issues, since those can be reported upstream to Microsoft and might eventually get resolved when they feel like it.
Getting the output C;BS~ definitely looks more promising, I'd assume this is the output of ctrl+v?

Pressing Ctrl-V followed by Ctrl-Backspace consistently reports the same escape sequence as showkeys: ^[[1;5BC;BS~ with WinPTY, and C;BS~ with ConPTY. So, it's wrong in both cases and in both cases it can be worked around by using a different escape sequence (like ^[[zC;BS~).
I reported the ConPTY issue already to Microsoft (and having no workaround in Windows Terminal is the reason I gave Alacritty a try). Essentially the issue is that its impossible to use a color scheme with a light background color. As soon as I switch to ConPTY, Alacritty has the same issues. If you want to dive into that rabbit hole a bit deeper, feel free to start here: https://github.com/microsoft/terminal/issues/3781, https://github.com/microsoft/terminal/issues/2661, https://github.com/microsoft/terminal/issues/293

Which keyboard layout do you use? Is it a standard QWERTY keyboard using the standard Windows QWERTY layout?

It's a standard QWERTY keyboard with ANSI US Layout. The Windows layout is called "English (USA, International)".

Hmm, okay. So to summarize the key binding is definitely getting triggered, but WinPTY/ConPTY are probably interfering with it somehow (this is not uncommon on Windows unfortunately).
Additionally the original escape does not work, because Windows is, according to winit upstream, not always sending what you would expect when pressing control + key (see #2908).
Just to maybe work around your specific issue, could you try mapping to \x08?

Get a good old Backspace in that case. :)

Backspace didn't work for me in 0.4.1, it now works in 0.4.2. Could this be the same problem? And so could it have been fixed already?

No, the issue persists in 0.4.2. :(


Subscriptions

Let customers connect to trainers. IMO: we do not need to implement the actualy sharing part, we just need to allow customers to add trainers; however; if we need more queries this is a good place to add them. Something like: check subscription table for user = user and trainer = trainer and then insert into the routine table with a r_status = 0; and user = user.

right now we do not include trainer: t_reputation, hovwever we could order by t_rep. If we add this tho, we need to drop the table and change the schema

Have two tables: one for subscribed, one for not subscribed: might be easier


Eduboom- les jobbs on validator than on its company website

ENVIRONMENT: production
URL: https://admin.peviitor.ro/
Browser: Chrome
Device: PC
OS: Linux
STEPS TO REPRODUCE:
1 .Open the URL in the browser and login
2. Search for Eduboom company
3. Click on the button "Vizualizeaza joburi"
4. Verify if the jobs number of Eduboom on admin.peviitor.ro corresponds with the number of jobs from the website company.
EXPECTED RESULTS:
The numbers of jobs are the same on both websites.
ACTUAL RESULTS:
On Eduboom from admin.peviitor.ro are less jobs (1) than the Eduboom website (2)

acest issues nu este pentru validator. Te rog sa-l transferi in repozitoriul din care face parte scraperul.

Fixed


chore: update all dependencies

License: MIT
Signed-off-by: Victor Bjelkholm<EMAIL_ADDRESS>

This works! Managed to release aegir-test-repo with these changes, and aegir spawns even faster now (and webpack builds seems faster, but I have not measured to YMMV)
@diasdavid @dignifiedquire can I have some reviews?

@VictorBjelkholm before merging, you might want to give it a spin on js-ipfs and its examples. Just to triple check that the bundle is sound.

I don't know what the observable polyfill is needed for, but the rest looks good. Though I'd like to have a look from someone second :)

Pulled in and required because listr requires observables to exists before loading the module, new change in the module, hence added in this commit.

before merging, you might want to give it a spin on js-ipfs and its examples. Just to triple check that the bundle is sound.

Good point, will do! Thanks

I am using this branch against the js-ipfs node 10 fixes, https://github.com/ipfs/js-ipfs/pull/1358.  The jenkins builds look good in node 8, 9 and 10.
This branch looks good from my end. Can we get it merged and released?

Will do! I just need to test js-ipfs + examples, then I'll merge if everything looks good.

Can you merge #231 first?  This PR has a few dep version changes that violate our dep policy - #231 will flag those up during the linting step.

@VictorBjelkholm Can you rebase this one? There's lots of "npm audit" noise due to AEgir, I'd really love to see this merged.

Will submit new PR as this is outdated by now...


Update width on center column

What should this PR do?
Resolves DEVED-203 by making the center column in the standard page layout larger across the site.
Why are we making this change?

It would be great to display more of our larger code blocks in tutorials. Also, we are not using all of the white space.

What are the acceptance criteria?

Styles look reasonable on desktop and mobile.

How should this PR be tested?

Check out the branch and test the above.

Pull request process
Reviewers:

Test functionality using the criteria above.
Offer tips for efficiency, feedback on best practices, and possible alternative approaches and things that may not have been considered.
For shorter, "quick" PRs, use your best judgement on #2.
Use a collaborative approach and provide resources and/or context where appropriate.
Provide screenshots/grabs where appropriate to show findings during review.

Reviewees:

Prefer incremental and appropriately-scoped changes.
Leave a comment on things you want explicit feedback on.
Respond clearly to comments and questions.

Before:

After:


Fixed yarn.lock generation

Fixed yarn.lock generation -- tested with node 8 & 10.

Locked versions in package.json -- ensures pkgs remain compatible with node 8/10
Removed react-merlin dependency, which pulls in<EMAIL_ADDRESS>Moved unused onboarding modal to archive dir, which depends on react-merlin
Moved unused login session code to archive dir -- we use Insights to login
Fixed tests by adding testURL to jest config
Added a couple types, which allows building/running with node 10

Note: All changes above were required to install, build, and run tests properly with node 8 & 10.
To test, delete the yarn.lock file and run yarn install
https://github.com/project-koku/koku-ui/issues/1300

LGTM :+1:


Potentially invalid escape sequence

Hi, when using this library under Python 3.12, I am getting the following warning:
/opt/project-venv/lib/python3.12/site-packages/durationpy/duration.py:39: SyntaxWarning: invalid escape sequence '\d'
  pattern = re.compile('([\d\.]+)([a-zµμ]+)')

Maybe worth looking into.

Not sure how you're getting that error because that line should be a raw string:
pattern = re.compile(r'([\d\.]+)([a-zµμ]+)')

Sorry, it looks like the version we were using is much older than I thought. All good!


Added 3 to the cursor position to match the actual selected index

Simon please fix

It is preferable to use a constant instead of the hardcoded value 3. Add a constant HEADER_HEIGHT in the type of ListPage.cs with the value 3 and add the constant instead.

It is meant to push the cursor 3 down not 3 to the right


backend: Allow admin to perform various tasks

I want to add accessibility to admin to perform various tasks, like deleteUser, updateUser and so on.

@himanshujaidka already implemented.

@himanshujaidka already implemented.

Are you sure that all the actions are allowed?

Yes


TiKV GcKeys task doesn't work when called with multiple keys (at least in 5.1 but I think for everything)

Bug Report
In gc worker, https://github.com/tikv/tikv/blob/master/src/server/gc_worker/gc_worker.rs#L340 the GcKeys GC task when called with multiple keys tries to get the list of regions overlapping the key range for the task and then do a sorted merge of the keys and the space encompassed by the regions. However, it fails to prepend the keys with the data prefix ('z') when passing them to get_regions_in_range, get_regions_in_range doesn't prepend the keys, and so the keys form an invalid range and no regions are ever returned. This makes garbage collection of delete markers not happen.
To verify the issue I added some logging statements in a branch: https://github.com/frew/tikv/pull/1/files#diff-fad0fef4b49a4159243096a9212032ae40e8b88cd0deb3c60df42a3dbdc639dfR385 - an example line from the first logging statement showing the issue in our cluster:
[2021/11/03 06:46:28.397 +00:00] [INFO] [region_info_accessor.rs:385] ["gc get_regions_in_range"] [start_key="[116, 128, 0, 0, 0, 0, 0, 0, 255, 159, 95, 114, 128, 0, 0, 12, 81, 255, 152, 74, 144, 0, 0, 0, 0, 0, 250]"] [first_region="Some(([122, 116, 128, 0, 0, 0, 0, 0, 0, 255, 19, 0, 0, 0, 0, 0, 0, 0, 248], 53))"] [regions_size=126845]

(note the prefix 122 on the first_region but not on the start_key)
I suggest adding data_key() to https://github.com/tikv/tikv/blob/master/src/server/gc_worker/gc_worker.rs#L338 and the following line, but defer to your expertise.
What version of TiKV are you using?
5.1.2
What operating system and CPU are you using?
Linux on GCP n2d

Tagging @hicqu @Connor1996 @MyonKeminta from https://github.com/tikv/tikv/pull/9959

Nice catch! It does have the problem. Would you like to file a PR to fix it?

Thanks for your reporting and digging so deep to find the cause.

I suggest adding data_key() to https://github.com/tikv/tikv/blob/master/src/server/gc_worker/gc_worker.rs#L338 and the following line, but defer to your expertise.

Your suggested change should work, but I suggest adding the data_key conversion here so that all interfaces of the RegionInfoAccessor are consistent, which means they all accepts normal encoded keys instead of 'z'-prefixed keys.

Oh, good point in making RegionInfoAccessor consistent. Will cut a PR

Added PR - going to backport to 5.1.2 locally and test on our cluster. Could somebody on the PingCAP side take adding whatever tests you think appropriate?

Posted this as a comment on the PR as well but as-written, doesn't work: Actually this has a problem - get_regions_in_range is also called from CompactionGuardGenerator, where we already have a data key. I think that function is also busted because it then calls data_end_key(&region.end_key) where I think region end_key is already data encoded? This is starting to seem like it really needs an actual implementation in the type system for data encoded keys vs. non data encoded keys or something and I'm not convinced I have enough context to pursue.

Okay, here's a version (with logging as well) that's working locally: https://github.com/frew/tikv/pull/1/files
Ran into two additional issues:

get_regions_in_range isn't really what we want here - we need the regions encompassing the range (i.e. including a region that has an endpoint outside of the range), so added a function to do that (haven't checked the other callsite for get_regions_in_range to see if it's using it effectively
There was another encoding issue around data_key, so fixed that

Posted this as a comment on the PR as well but as-written, doesn't work: Actually this has a problem - get_regions_in_range is also called from CompactionGuardGenerator, where we already have a data key. I think that function is also busted because it then calls data_end_key(&region.end_key) where I think region end_key is already data encoded? This is starting to seem like it really needs an actual implementation in the type system for data encoded keys vs. non data encoded keys or something and I'm not convinced I have enough context to pursue.

CompactionGuardGenerator code looks fine. it is applying data_end_key on region.end_key, which is unencoded.

CompactionGuardGenerator code looks fine. it is applying data_end_key on region.end_key, which is unencoded.

The problem is the other way - self.smallest_key and self.largest_key appear to already have the 'z' prefix, so following @MyonKeminta 's suggestion of making the function prepend internally doesn't work.

Added PR - going to backport to 5.1.2 locally and test on our cluster. Could somebody on the PingCAP side take adding whatever tests you think appropriate?

okay, I’ll add a test and fix it

@Connor1996 okay, the current version (+logging) which seems to be working when applied to our 5.1.2 cluster is at: https://github.com/frew/tikv/pull/1/files
Please let me know (+ feel free to ping me in Slack) if you have any questions. The logging is probably more verbose than you'd want to merge into mainline, but I think everything else is reasonable to merge. One thing I haven't checked is whether the other users of get_regions_in_range should also be using get_regions_encompassing_range or if the logic is right for them

(deleted one comment that misunderstood something)
One proposal to make code simpler: https://github.com/Connor1996/tikv/pull/2
Other than that, looks good to me as far as I understand it.


Wrap deserialize errors in lookup errros

We had the task name included in deserialize errors. But the serializer should not care nor know what the name of the resource is.
Still, we want to have the name of the resource show up in the logs if a cache corruption happens. This should be added higher in the stack, consumers of the serializer API should catch the DeserializeError and wrap it in a contextual error that adds things the the resource name.

Still valid, if a worker fails to load a task input, the actual full hash is nowhere to be found. Does not happen that much though.


linted service/admin

Issue described here

[ ] CHANGELOG.md updated
[ ] Rebased/mergable
[ ] Tests pass
[ ] Sign CLA (if not already signed)

CircleCI blew up on folders that I did not modify. I'm going to have a look before reopening my PR.

We have some known issues with Circle and some tests. If you re-open this I will merge.

Am I entitled to a t-shirt now? =D
I'll be linting more stuff in the future also

Sure are @nii236 -- e-mail me your address.

CLA confirmed signed, comment-changes only. Merging now.

Thanks @nii236


Feature/duckdb support

Addresses #6
Just initial draft code.

Closing this PR due to too many conflicts and stale structure.


"Error during client.getEvents()"

Describe the bug
Getting no state change events from certain nodes, I do seem to be able to run the all events node without problem.
To Reproduce
Steps to reproduce the behavior:
Create state change node, hook it up to debug node.  Get "Error during client.getEvents()" in debug window
Expected behavior
Should be getting event payload
Environment (please complete the following information):

NR Version: 0.18.4
NR Home Assistant Plugin Version: 0.3.1
Is Node Red running in Docker: yes but not on HASS.io

Closing this as I have found a couple of poroblems with my install, will re-open if I clear those up and error still remains.

Re-opening as configent issue is with node-red-contrib-home-assistant

Also getting these at the homeassistant end:
Error fetching description at http://<IP_ADDRESS>:33721/upnp/amazon-ha-bridge/setup.xml

No-one else getting this?


Add it to Arch Linux AUR

I just made the AUR package as I happened to install it on my system 5 minutes ago (and refuse to install things outside of pacman).
I can transfer you the ownership of the package if you want :)

Thanks.
My AUR username is artur9010.

It would be great to also have a link to the AUR package in the README, instead of just saying it's there. I've submitted a PR (#9) which does exactly that.

New repository without fork status:
https://github.com/artur9010/lightdm-webkit-material


Add direct_io mount option, max_readahead default

This reduces the number of FUSE read requests significantly by using
a default max_readahead value of 128 KB, which is the default readahead
used by libfuse and also the maximum request size for buffered I/O used
by the FUSE implementation in the Linux kernel.
We need to set a default, because the bazil.org/fuse package otherwise
defaults to max_readahead=0, which disables readahead completely causing
FUSE to request only 4 KB (one page) per request.
The direct_io option allows to force all files to be opened with the
O_DIRECT flag, bypassing kernel cache, I/O reordering and alignment.
Depending on the apps I/O patterns this can be benefitial, because
it avoids double-buffering of data in both the storage chunk cache
and kernel memory leading to reduced memory usage and CPU usage for
moving data in and out of kernel caches.
It will also theoretically allow FUSE requests of up to 1 MB instead
of the maximum of 128 KB, which FUSE enforces for buffered I/O, because
it splits larger requests into multiple 128 KB chunks that it requests
asynchronously.
Currently the maximum with Direct (unbuffered) I/O will still be 128 KB,
because the bazil.org/fuse package does not yet support the required
FUSE version and max_pages capability required for larger I/Os.
IMPORTANT: Must be merged after #350 to avoid short reads with unaligned offsets.
ToDo:

[x] Document direct_io in README

Btw. even when Direct-IO is not used, Plexdrive should default to setting max_readahead=131072, because if it is not set, read ahead is disabled by the fuse pkg.
IMHO that doesn't even make sense to be configurable as a mount option, since it should always use the kernel maximum of 128 KB to reduce overhead.
The documation for mount.fuse says that the default should indeed be 128 KB, but that does not seem to be the case with the bazil fuse package, because it has no default and always passes MaxReadahead: conf.maxReadahead during init, which is 0, so read ahead gets disabled and the kernel uses the page size of 4 KB.
I think that is actually a bug in the bazil fuse pkg, since it fail to set a default value for read ahead.

I think I'll make this a mount option instead of the default and raise the readahead default to 128 KB.
One reason fot that is that using Direct-IO Plex Media Server requests 64 KB chunks, but using buffered I/O with a readahead of 128KB or bigger we get requests in 128 KB chunk and they are guaranteed to be sequential, since the kernel does I/O reordering.

I've tried to build this locally by using current master and pulling felixbuenemann/fix-reads-across-chunk-boundaries and felixbuenemann/use-direct-io on top, however, I can't figure out how to actually build this correctly.
According to https://github.com/plexdrive/plexdrive#contribute I should just need to go build to get a working binary, however, after running go get (which should probably be added to the instructions there) and go build afterwards I end up with a binary that doesn't reflect the code I'm expecting it to be built from.
I have verified this by adding a logging statement in mount/mount.go at for _, option := range mountOptions { which I'm not seeing in the output.
Running plexdrive with direct_io mount option results in Fuse option direct_io is not supported, yet.
Do you have a hint for me what I may be doing wrong?
I'm testing on debian stable + backports with go 1.14.

I just figured it out, I needed to change the reference to github.com/dweidenfeld/plexdrive to the name of my local copy instead in the imports.

@Nothing4You Could you share your testing results? How did it work out for you?

@felixbuenemann do we need to specify direct-io flags to fuse? Any reason not to enable by default?

You can enable it with -o direct_io.
There are multiple reasons it is not enabled by default:

It emulates the libfuse mount option by the same name and you couldn't disable it, if it was on by default.
Direct-IO is primarily a Linux thing, I'm not sure how it behaves in other platforms like FreeBSD
With the new default of 128 KB for max_readahead, overhead for buffered reads is greatly reduced and triggers 128 KBreads instead of the 64 KB reads the Plex Media Server would usually use.
On macOS osxfuse uses up to 16 MB for buffered reads.

That said I have been running with direct_io enabled on Linux for many months without problems.
To do a real side by side benchmark against 128 KB buffered IO, I would need a very high bitrate stream (around 100 MBits) with an almost completely constant bitrate, because bitrate fluctuations cause huge differences in CPU load, making comparisons hard.
I am currently using a 4K stream with up to 180 MBits peak bitrate for testing on a single core Xeon Gold VM with 2GB RAM, but is has pretty heavy bitrate fluctuation.


Increase hdfs space for densified tob-wgs script

I changed the main.py script for the wrong folder (variant_selection rather than hgdp1kg_tobwgs_densified_pca). As stated in the PR cf2fd4c, my script failed with the error "File could only be replicated to 0 nodes instead of minReplication (=1)", and the GCP metrics explorer confirmed this was due to running out of HDFS space. I now increased this to 200.

Do you want to revert the previous change?

Yes, I'll revert the previous change in the other script. Will send you a PR for that soon


Mount caching not invalidating on new container

Describe the bug
When using docker compose run, mounted files seemed to be cached too aggressively under certain circumstances. I would expect when starting a new container that the files mounted in the container are consistent with the files on the host.
To Reproduce
I've attempted to make a simple example that showcases the behaviour that resembles our actual use case as closely as possible.

Clone https://github.com/shark404/docker-mount-example
docker compose build test
echo 'Test' > ./data/test.txt && ls -la ./data/test.txt && docker compose run --rm test bash -c 'ls -la /app/data/test.txt'

Expected behavior
I would expect that the timestamps of the files would be consistent between the host and the container. Note that this works when using docker desktop with VirtioFS so it appears to be related to the "additional tuning" in Orbstack.
Note if you change the command to
echo 'Test' > ./data/test.txt && ls -la ./data/test.txt && docker compose run --rm test bash -c 'head -1 /app/data/test.txt && ls -la /app/data/test.txt'
the timestamps will be correct.
Diagnostic report (REQUIRED)
OrbStack info:
Version: 1.4.3
Commit: 75d38a2c2d9a2b42d64378a8f50f31d4d566df10 (v1.4.3)
System info:
macOS: 12.5.1 (21G83)
CPU: amd64, 16 cores
CPU model: Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
Model: MacBookPro16,4
Memory: 32 GiB
Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2024-02-29T23-57-56.065368Z.zip
Screenshots and additional context (optional)
To try to give a little additional context around my actual use case, we have a django project that we run in a container. We mount the project dir in the container for hot reload purposes (which works perfectly fine). We use docker compose run --rm web make makemigrations to generate data migrations and this is where we are seeing issues with files being cached. If we make changes to our models file and attempt to make migrations, Django doesn't see the changes. However Django is reading files in this scenario isn't triggering Orbstack to invalidate it's caching.
Something to note is that if I force reading the file in the command by using docker compose run --rm web bash -c 'head -1 /the-models-file && make makemigrations' the file will be refreshed inside the container and things will work correctly.
I've also tried changing the mount to use :consistent but I believe that is the default anyway? And doesn't change the results.

This will probably be fixed by some upcoming changes.

Thanks @kdrag0n, do you have any rough time frames on when those changes might land? And until those changes land is there any workaround that would change the current behaviour? Either something I can set in an Orbstack config or through docker compose?

Not right now.

@shark404 Can you try v1.6.0 Canary? Settings > Update channel

Should be fixed in v1.6.2. If not, let me know and I'll ropen.

Released in v1.6.2.

Thanks for fixing this @kdrag0n . Sorry I haven't had a chance to test it out. I'll let know if I run into any issues when I get back to testing out Orbstack.


[GHSA-x9vc-6hfv-hg8c] Npgsql vulnerable to SQL Injection via Protocol Message Size Overflow

Updates

Affected products

Comments
NPGSQL lists many more patched versions than this does, see https://github.com/npgsql/npgsql/security/advisories/GHSA-x9vc-6hfv-hg8c
I'm not sure how to update the "Affected products" to cover this appropriately.

Hi there @paul-gerste-sonarsource and @NinoFloris! A community member has suggested an improvement to your security advisory. If approved, this change will affect the global advisory listed at github.com/advisories. It will not affect the version listed in your project repository.
This change will be reviewed by our Security Curation Team. If you have thoughts or feedback, please share them in a comment here! If this PR has already been closed, you can start a new community contribution for this advisory


Develop frontend code for quiz results display page

Create frontend code for quiz results page to display score and appropriate badges

interested

Interested


Publish informative events about lifecycle from most important models using AMQP

The small snippet demonstrating work with event API message:
require "jwt-multisig"
require "securerandom"

jwt_payload = {
  iss: "peatio",
  jti: SecureRandom.uuid,
  data: {
    event_name: "deposit.updated",
    event_data: {
      tid:      "TID2A14A6D8CA",
      uid:      "ID2DE642BB1C",
      currency: "BTC",
      amount:   "0.38",
      state:    "accepted"
    }
  }
}

require "openssl"
private_key = OpenSSL::PKey::RSA.generate(2048)
public_key  = private_key.public_key

generated_jwt = JWT::Multisig.generate_jwt(jwt_payload, { peatio: private_key }, { peatio: 'RS256' })

Kernel.puts "GENERATED JWT", generated_jwt.to_json, "\n"

verification_result = JWT::Multisig.verify_jwt generated_jwt.deep_stringify_keys, \
  { peatio: public_key }, { verify_iss: true, iss: 'peatio', verify_jti: true }

decoded_jwt_payload = verification_result[:payload]

Kernel.puts "MATCH AFTER VERIFICATION: #{jwt_payload == decoded_jwt_payload}."

@mod having the data before and data after is near impossible and has the next disadvantages:

It is fine for events like «update», «renew». What about events which are not related to models? Logging, failures, trading events and so on.
It is very hard to build such payloads. In Peatio we are going to publish this type of events outside of «save-commit» hell of ActiveRecord, in some async worker which can access final data of the model. It doesn't make much sense for consumers to have this feature and I have almost never seen this similar APIs, ever in JS SPA apps where it is simple ot handle.

We publish the state of the object before update and after saving was successful.
This is not going to be so easy.

Snippet of code from chat:
q1 = ch.queue("", :auto_delete => true).bind(x, :routing_key => "resize")
q1.subscribe do |delivery_info, properties, payload|
  puts "[consumer] #{q1.name} received a 'resize' message"
end

We would have an exchange per model, for example "events.accounts"
We need to specify the messages to ensure we can cover the following business cases:

email verification (from barong, token, callback URL)
login notification (date, IP, geo-location ?)
2FA enabled
deposit received (amount, currency, status)
withdrawal completed (amount, currency, status)
trade completed
password reset
KyC approved
Transaction limit reached notification
Transaction limit changed

Consuming events:
require "bunny"

Bunny.run host: "localhost", port: 5672, username: "guest", password: "guest" do |session|
  channel  = session.channel
  exchange = channel.direct("peatio.events.deposit")
  queue    = channel.queue("", auto_delete: true, durable: true, exclusive: true)
                    .bind(exchange, routing_key: "update")
  queue.subscribe manual_ack: true do |delivery_info, metadata, payload|
    channel.ack(delivery_info.delivery_tag)
  rescue => e
    channel.nack(delivery_info.delivery_tag, false, true)
  end
  channel.work_pool.join
end

Publishing events:
require "bunny"

Bunny.run host: "localhost", port: 5672, username: "guest", password: "guest" do |session|
  channel  = session.channel
  exchange = channel.direct("peatio.events")
  exchange.publish("{}", routing_key: "deposit.update")
end

DRAFT RabbitMQ Peatio Event API
Overview of RabbitMQ details
Peatio submits all events into single exchange called peatio.events.
The routing key (same as event name) consists of two parts:

category of events or subject, like deposit, withdraw, system.

event name, like create, update, destroy, low_hot_wallet_balance.

Overview of RabbitMQ message
Each produced message in Event API is JWT (complete format).
This is very similar to Management API.
The example below demonstrates both generation and verification of JWT:
require "jwt-multisig"
require "securerandom"

jwt_payload = {
  iss:  "peatio",
  jti:  SecureRandom.uuid,
  iat:  Time.now.to_i,
  exp:  Time.now.to_i + 60,
  data: {}
}

require "openssl"
private_key = OpenSSL::PKey::RSA.generate(2048)
public_key  = private_key.public_key

generated_jwt = JWT::Multisig.generate_jwt(jwt_payload, { peatio: private_key }, { peatio: "RS256" })

Kernel.puts "GENERATED JWT", generated_jwt.to_json, "\n"

verification_result = JWT::Multisig.verify_jwt generated_jwt.deep_stringify_keys, \
  { peatio: public_key }, { verify_iss: true, iss: "peatio", verify_jti: true }

decoded_jwt_payload = verification_result[:payload]

Kernel.puts "MATCH AFTER VERIFICATION: #{jwt_payload == decoded_jwt_payload}."

The RabbitMQ message is stored in JWT field called data.

Closed via #914.


Can i use it with android 2.3 or what polyfill to support it

This is a nice and fast, i love the ui. Can i use it for android 2.3 and above, If cannot is there any polyfill to support it?

Yes, you can use for Web, Android, IOs, Windows phone (and others platforms) because Phonon is a UI framework, so is allowed for all.

Ok i will use it, i ask this because at phonon site, it says it will compatible with android 4.1

Well, is the version of Android 'in use' actually (Android 4) :wink:

@anaksinar : I think you can try Phonon on Android 2.3, BUT versions < 4.0 are known to be slower than the recent versions of Android.
Furthermore, Android < 4 concern 3.2% of androphones only.(http://developer.android.com/about/dashboards/index.html)[http://developer.android.com/about/dashboards/index.html]


[MB-15339] adds a migration for movehq UAT cert to stg

Adds a secure migration to enable MoveHQ UAT testing in Staging

Messages

:book:
:link: MB-15339

  Generated by :no_entry_sign: dangerJS against 5b68281a728eaa6e2ec63081f6763787c5569f84


Label size is different in different elements

Six Webcomponents version
4.0.2
Steps to reproduce
e.g. for six-input label size seems to be 14px for small size and for six-select 12px for small size.
Also the placeholder has some left-padding in six-input but not anymore in six-select
What is expected?
Same size
What is actually happening?
Different Size
System Info
No response
Any additional comments?
No response

Just verified that this problem is actually already fixed:


Shadows: Fix CSM in infinite far plane mode

See https://forum.babylonjs.com/t/csm-and-infinite-far-plane/41064

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.


Integration Test - Release - 2021/10/12 01:41:30

Auto create for integration test. IssueCommandFlow

#pri1

#pri2

#pri3

#assign PRMergerTest1

#assign NonAllowedUser

#please-close

The following users don't have valid GitHub IDs, or are not collaborators on this repo: nonalloweduser

GitHub user PRMergerTest2 has been removed from the MicrosoftDocs organization, so they were automatically removed as an assignee.


Create a basic Project Skeleton

User story

As a developer
I need a basic file structure of our project
So that we can organize our project efficiently

Acceptance criteria

Have a basic functional teams app setup inside the repository see #4
Have our frontend files and node server inside the repository for displaying our pages later for teams

Definition of done

Added only after week 5
The same for all features

Its implemented


How to record a video in coral dev board using hardware codec ?

I have coral dev kit and coral camera with me..
I want my inference pipelining running as it as while recording input (raw format is also acceptable ) camera frames in file parallely  .How do i achieve that ? gsteramer pipeline ?
If i use cv2.videowriter , its very bottleneck & low fps

Responded at https://github.com/google-coral/pycoral/issues/20#issuecomment-791781536


Test CleanerVersion migration support for Django =< 1.6 (e.g. with South)

Django 1.7 introduced migrations. CleanerVersion has been adapted to support these (in PR #24).
However, has not been tested whether CleanerVersion on Django 1.6 supports migrations with South.
If it does not, the according fixes should be applied if possible.
Initial note by @jczulian:
"Since Django migration is inherited from South (migration system used before 1.7) I wonder what is happening when using Django 1.6.X together with South? Does South do something similar to Django 1.7? Therefore should we test alongside the Django's version number if South is present and act in the same way as we do when running under Django 1.7"

Should we drop this issue?  Django 1.6 is no longer supported by the Django project.

Agree.


Randomly getting module undefined

Expected behaviour
Every time I run Karma Runner and include angular-mocks the global module variable should be defined so I can do beforeEach('example').
Actual behaviour
On my project (which is fairly complex) about 1/2 the time module resolves to undefined. I outputed the file list using...
test-main.js
for (var file in window.__karma__.files) {
  console.log(file)
}

And the order looks correct. If I try to debug on the spot using a conditional of typeof module == 'undefined' then it will start but if I issue the command in the console it will show me the proper object. Upon continuing after debug I do not see the error.
Environment Details

Karma 1.3.0
Using Karma-Webpack to load the dependencies and application files

I will try to make a simpler project that recreates the issue for now here is my Karma conf
// Karma configuration
// Generated on Mon Sep 26 2016 11:52:49 GMT-0400 (EDT)
var webpackConfig = require('./webpack.config.js');
webpackConfig.entry = {};
webpackConfig.plugins = [];
var globFlat = require('glob-flat');

// TODO: These are redundant with the webpack plugin...
var appFiles = globFlat.sync([
  './src/main/coffee/**/*Module.coffee',
  './src/main/coffee/**/*.coffee'
]);
var styleFiles = globFlat.sync([
  './src/main/less/my.less'
]);
var dependencyFiles = [
  'test-main.js',
  // './src/main/typescripts/polyfills.ts',
  './src/main/typescripts/deps.ts',
  'node_modules/angular-mocks/angular-mocks.js'
];
var testFiles = globFlat.sync([
  'src/test/**/*.test.coffee'
]);

var files = dependencyFiles.concat(appFiles, styleFiles, testFiles);

module.exports = function(config) {
  config.set({

    // base path that will be used to resolve all patterns (eg. files, exclude)
    basePath: '',

    // frameworks to use
    // available frameworks: https://npmjs.org/browse/keyword/karma-adapter
    frameworks: ['mocha', 'requirejs', 'chai-spies', 'chai'],

    // list of files / patterns to load in the browser
    files: files,

    // list of files to exclude
    exclude: [
    ],

    // preprocess matching files before serving them to the browser
    // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
    preprocessors: {
      './src/main/coffee/**/*.coffee': ['webpack'],
      './src/main/less/paxata.less': ['webpack'],
      './src/main/typescripts/deps.ts': ['webpack'],
      './src/main/typescripts/polyfills.ts': ['webpack'],
      './src/test/**/*.test.coffee': ['coffee']
    },

    webpack: webpackConfig,
    reporters: ['progress'],
    port: 9876,
    colors: true,
    logLevel: config.LOG_INFO,
    autoWatch: true,
    browsers: ['Chrome'],
    singleRun: false,
    concurrency: Infinity
  })
};

@jrgleason looks like you code rewrite global variable module try use angular.mock.module instead module
Thanks!

No response in a year, closing.


Automated cherry pick of #9302: fix(region): optimized qcloud prepaid instance delete

Cherry pick of #9302 on release/3.5.
#9302: fix(region): optimized qcloud prepaid instance delete

Codecov Report

Merging #9304 (0288f76) into release/3.5 (6a15e02) will increase coverage by 7.40%.
The diff coverage is 12.58%.

@@               Coverage Diff               @@
##           release/3.5    #9304      +/-   ##
===============================================
+ Coverage         5.98%   13.39%   +7.40%
===============================================
  Files              796      252     -544
  Lines           125693    26302   -99391
===============================================
- Hits              7522     3522    -4000
+ Misses          117504    22441   -95063
+ Partials           667      339     -328

Flag
Coverage Δ

aFlag
13.39% <12.58%> (+7.40%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

pkg/apigateway/handler/auth.go
0.00% <0.00%> (ø)

pkg/compute/guestdrivers/managedvirtual.go
0.00% <0.00%> (ø)

pkg/compute/guestdrivers/qcloud.go
2.43% <0.00%> (ø)

pkg/keystone/models/identity_provider.go
0.90% <0.00%> (-0.01%)
:arrow_down:

pkg/mcclient/options/cloudaccounts.go
0.00% <ø> (ø)

pkg/mcclient/options/dbinstance_account.go
0.00% <0.00%> (ø)

pkg/mcclient/options/dbinstance_database.go
0.00% <0.00%> (ø)

pkg/mcclient/options/schedtags.go
0.00% <0.00%> (ø)

pkg/mcclient/options/servers.go
0.00% <0.00%> (ø)

pkg/mcclient/options/vpc.go
0.00% <0.00%> (ø)

... and 508 more

Continue to review full report at Codecov.

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


Envoy-enforcer with External Auth and SDS.

Description
Changes proposed in this pull request.
Test plan
Outline the test plan used to test this change before merging it.

Fixes #.

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0
[
  {
    "project": "",
    "component": "trireme-lib",
    "pr-id": "885",
    "commit-sha": "a8ddefefb2e3cf27259b95f35614e53d1183eee9"
  }
]

/build

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0
[
  {
    "project": "envoy-auth-sds",
    "component": "trireme-lib",
    "pr-id": "885",
    "commit-sha": "f265b02544543efebe559a866702e818f4c67bf5"
  },
  {
    "project": "envoy-auth-sds",
    "component": "enforcerd",
    "pr-id": "1430",
    "commit-sha": "48af913cb0b9505d3b50c26c8be22f4ea0393715"
  }
]

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0
[
  {
    "project": "envoy-auth-sds",
    "component": "trireme-lib",
    "pr-id": "885",
    "commit-sha": "ae23830ae76721c449c7c747b64564d5402dff42"
  },
  {
    "project": "envoy-auth-sds",
    "component": "enforcerd",
    "pr-id": "1430",
    "commit-sha": "48af913cb0b9505d3b50c26c8be22f4ea0393715"
  }
]

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0
[
  {
    "project": "envoy-auth-sds",
    "component": "trireme-lib",
    "pr-id": "885",
    "commit-sha": "ae23830ae76721c449c7c747b64564d5402dff42"
  },
  {
    "project": "envoy-auth-sds",
    "component": "enforcerd",
    "pr-id": "1430",
    "commit-sha": "48af913cb0b9505d3b50c26c8be22f4ea0393715"
  }
]

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0
[
  {
    "project": "envoy-auth-sds",
    "component": "enforcerd",
    "pr-id": "1430",
    "commit-sha": "48af913cb0b9505d3b50c26c8be22f4ea0393715"
  },
  {
    "project": "envoy-auth-sds",
    "component": "trireme-lib",
    "pr-id": "885",
    "commit-sha": "3cd3e946ccaa1e13f84563786dab2531f66945b7"
  }
]

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0
[
  {
    "project": "envoy-auth-sds",
    "component": "trireme-lib",
    "pr-id": "885",
    "commit-sha": "511a7f7d14a8d2b91a7f90fc30111755779385fe"
  },
  {
    "project": "envoy-auth-sds",
    "component": "enforcerd",
    "pr-id": "1430",
    "commit-sha": "a9bcb45e16ad47c938ffcb8bed6029ed0d81f72c"
  }
]

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0
[
  {
    "project": "envoy-auth-sds",
    "component": "trireme-lib",
    "pr-id": "885",
    "commit-sha": "fcbdbb41cfb251e4f34f6c2711ab4dae40b2e455"
  },
  {
    "project": "envoy-auth-sds",
    "component": "enforcerd",
    "pr-id": "1430",
    "commit-sha": "a9bcb45e16ad47c938ffcb8bed6029ed0d81f72c"
  }
]

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0
[
  {
    "project": "envoy-auth-sds",
    "component": "trireme-lib",
    "pr-id": "885",
    "commit-sha": "fcbdbb41cfb251e4f34f6c2711ab4dae40b2e455"
  },
  {
    "project": "envoy-auth-sds",
    "component": "enforcerd",
    "pr-id": "1430",
    "commit-sha": "bd24ec943b0343b484bfbd78a9c4846bf7379fef"
  }
]

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0
[
  {
    "project": "envoy-auth-sds",
    "component": "trireme-lib",
    "pr-id": "885",
    "commit-sha": "d7115aa6973506b0c67173e9df0b9240bfe74dd2"
  },
  {
    "project": "envoy-auth-sds",
    "component": "enforcerd",
    "pr-id": "1430",
    "commit-sha": "35d61e4fae6ddc42b7194d4ffec978eb7fc4c6e3"
  }
]

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0
[
  {
    "project": "envoy-auth-sds",
    "component": "trireme-lib",
    "pr-id": "885",
    "commit-sha": "9deb85e2fe2a069464989d0f7f02ed26df9e9efe"
  },
  {
    "project": "envoy-auth-sds",
    "component": "enforcerd",
    "pr-id": "1430",
    "commit-sha": "35d61e4fae6ddc42b7194d4ffec978eb7fc4c6e3"
  }
]

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0
[
  {
    "project": "envoy-auth-sds",
    "component": "trireme-lib",
    "pr-id": "885",
    "commit-sha": "05795b418a1a84c5ee1e7dbbc2254eb0151bb5fd"
  },
  {
    "project": "envoy-auth-sds",
    "component": "enforcerd",
    "pr-id": "1430",
    "commit-sha": "35d61e4fae6ddc42b7194d4ffec978eb7fc4c6e3"
  }
]

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0
[
  {
    "project": "envoy-auth-sds",
    "component": "trireme-lib",
    "pr-id": "885",
    "commit-sha": "05795b418a1a84c5ee1e7dbbc2254eb0151bb5fd"
  },
  {
    "project": "envoy-auth-sds",
    "component": "enforcerd",
    "pr-id": "1430",
    "commit-sha": "35d61e4fae6ddc42b7194d4ffec978eb7fc4c6e3"
  }
]

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0
[
  {
    "project": "envoy-auth-sds",
    "component": "trireme-lib",
    "pr-id": "885",
    "commit-sha": "844a961f0056ce7eeb78ee025ea9104c592041a7"
  },
  {
    "project": "envoy-auth-sds",
    "component": "enforcerd",
    "pr-id": "1430",
    "commit-sha": "35d61e4fae6ddc42b7194d4ffec978eb7fc4c6e3"
  }
]

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0
[
  {
    "project": "envoy-auth-sds",
    "component": "trireme-lib",
    "pr-id": "885",
    "commit-sha": "2c5a88bca2885ebccfdc74330b89490594c3b54f"
  },
  {
    "project": "envoy-auth-sds",
    "component": "enforcerd",
    "pr-id": "1430",
    "commit-sha": "35d61e4fae6ddc42b7194d4ffec978eb7fc4c6e3"
  }
]

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0
[
  {
    "project": "envoy-auth-sds",
    "component": "enforcerd",
    "pr-id": "1430",
    "commit-sha": "35d61e4fae6ddc42b7194d4ffec978eb7fc4c6e3"
  },
  {
    "project": "envoy-auth-sds",
    "component": "trireme-lib",
    "pr-id": "885",
    "commit-sha": "ed84bb0c2df993c85624c261d0f887054fcacf96"
  }
]

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0
[
  {
    "project": "envoy-auth-sds",
    "component": "trireme-lib",
    "pr-id": "885",
    "commit-sha": "5ef8699ef5e7205bab0411d7659c7386a20fc91e"
  },
  {
    "project": "envoy-auth-sds",
    "component": "enforcerd",
    "pr-id": "1430",
    "commit-sha": "35d61e4fae6ddc42b7194d4ffec978eb7fc4c6e3"
  }
]

/build - automatically fired by gogo with following PRs and commit SHAs v1.0.0
[
  {
    "project": "envoy-auth-sds",
    "component": "trireme-lib",
    "pr-id": "885",
    "commit-sha": "b14cb80e4fdf5aa22eacd7a0310d69e51087c696"
  },
  {
    "project": "envoy-auth-sds",
    "component": "enforcerd",
    "pr-id": "1430",
    "commit-sha": "35d61e4fae6ddc42b7194d4ffec978eb7fc4c6e3"
  }
]


Campus Buildings: ImageView in ScrollView

Name of Tester: Seth
Feature: Campus Buildings
How to produce error:
Not necessarily an error, but we could consider putting the Building image with the building description inside of the ScrollView on the building detail tab
Expected Result:
The imageView would scroll offscreen with the text

I think this one is good for now. Maybe we'll look at changing it if other users point it out during the BETA test