Need MRIF information in sbi_covi_init_tvm_aia() ?

In section 7.4.2 TVM external interrupts
**tvm_vhart_aia_init**

Initializes the AIA state for a virtual hart. Must be called after the virtual hart has been added but
before the TVM is run for the first time.

The OS/VMM supplies: (1) The guest physical address of the IMSIC for the virtual hart. (2) The
supervisor physical address of a page of confidential memory that is to be used as an MRIF for the
virtual hart. The page is available to be reclaimed upon destruction of the virtual hart. (3) An MSI
address + data pair that is to be signaled when an MSI is delivered to a virtual hart’s MRIF.

However, in section 11.1 Function: COVE Interrupt Init TVM AIA (FID #0),
there is no MRIF information in struct tvm_aia_params.

The current PoC doesn't support MRIF at this point. The above text is bit stale w.r.t implementation. The function names and functionality has been changed . The COVI part describes it correctly. The The absence of MRIF support has been clarified in the above though.
While it is possible to support execution of a TVM virtual hart using either a guest interrupt file or an MRIF, the architecture describes below constraints for the TVM virtual harts to only use guest interrupt files while they are actively executing in order to simplify the duties of the TSM.
Are you planning to add support for MRIF to CoVE ? We should clarify the above text for now either way.

The current PoC doesn't support MRIF at this point. The above text is bit stale w.r.t implementation. The function names and functionality has been changed . The COVI part describes it correctly. The The absence of MRIF support has been clarified in the above though.
While it is possible to support execution of a TVM virtual hart using either a guest interrupt file or an MRIF, the architecture describes below constraints for the TVM virtual harts to only use guest interrupt files while they are actively executing in order to simplify the duties of the TSM.

Oh OK! If the spec has clarified it somewhere, it should be fine.

Are you planning to add support for MRIF to CoVE ? We should clarify the above text for now either way.

No~ I just found some inconsistency when I read the CoVE spec, and tried to raise my doubt.
If CoVE's recommendation and PoC use guest interrupt file, that's fine.
Though the spec should cover everything it mentioned before.
Thanks!

Oh OK! If the spec has clarified it somewhere, it should be fine.

The current PoC doesn't support MRIF at this point. The above text is bit stale w.r.t implementation. The function names and functionality has been changed . The COVI part describes it correctly. The The absence of MRIF support has been clarified in the above though.
While it is possible to support execution of a TVM virtual hart using either a guest interrupt file or an MRIF, the architecture describes below constraints for the TVM virtual harts to only use guest interrupt files while they are actively executing in order to simplify the duties of the TSM.

Oh OK! If the spec has clarified it somewhere, it should be fine.

Are you planning to add support for MRIF to CoVE ? We should clarify the above text for now either way.

No~ I just found some inconsistency when I read the CoVE spec, and tried to raise my doubt. If CoVE's recommendation and PoC use guest interrupt file, that's fine. Though the spec should cover everything it mentioned before. Thanks!

Yes. The RISC-V IOMMU support patches are being worked in RISC-V community. Once that is matured, this section will be revisited and necessary MRIF support will be added.

Yes. The RISC-V IOMMU support patches are being worked in RISC-V community. Once that is matured, this section will be revisited and necessary MRIF support will be added.

Sounds great! Thanks.


Active text on tab heading not working

react-native, react and native-base version:
rn: 0.42.3
react: 15.4.2
nb: 2.1.0
Expected behaviour:
active text should change colour, matching with tab heading bottom border colour
Actual behaviour:
active text not changing colour but tab heading bottom border colour is changing
Steps to reproduce (code snippet or screenshot)
    <Container>
        <Header hasTabs={hasTabs}>
           <Title style={style}>{title}</Title>
        </Header>
        <Tabs>
          <Tab heading="To mobile">
            <Tab2 />
          </Tab>
          <Tab heading="To card">
            <Tab1 />
          </Tab>
        </Tabs>
    </Container>

Is the bug present in both ios and android or in any one of them?
only tested on android

Check with the latest of NativeBase


space getting trimmed in the generated comments from triple quoted comment

Describe the bug

The generated comments from a triple-quoted comment in the final output come with trimmed beginning space. We like to have space not trimmed when our comments are multi-lined.
To Reproduce
Steps to reproduce the behavior:

My GraphQL schema:

"""
 @title - name
 @description - name of the object
"""
type name

My generated output

/** @title - contributes.colors
@description -  name of the object
**/

Expected behavior

It should not trim the space, so it would appear as below.
/**
@title - contributes.colors
@description -  name of the object
**/

Environment:

OS:
@graphql-codegen/...:  1.3.1

Fixed in 1.5.0 🎉


[Review] [Knowledge Base] e-Internationalization

Correct use of "e-Internationalization". In DoA and deliverables there is used a form of e-Internationalisation. Should be consistent use.
"Wit this new functionality" --> "With this new functionality"
"a HTML file" -->  "an HTML file"
use of "he" :) should be used any form of "it",  "s/he" or "he or she". Multiple occurrences: "he doesn’t have", "he should be aware"
use of "itsrdf" in regular text without any clarification. itsrdf is nor standard nor abbreviation. It is commonly used technical prefix in RDF for namespace http://www.w3.org/2005/11/its/rdf describing ITS 2.0 / RDF Ontology.

Round-tripping: how does it work?
6. Hard to understand this sentence: "When converting a HTML file to NIF a second NIF file is produced, containing a context that also includes markups." First was original "HTML" or something else? Maybe better say first that "In HTML to NIF conversion two NIF files are created.... ".
7. "Anyway it is not relevant for new lines don’t affect the HTML file appearance in the browser." Something missing in the middle of sentence?
8. Not clear about ODT files - do it support ITS categories?

@andish valid comments! thank you.
@ArneBinder please update the article

Not clear about ODT files - do it support ITS categories?

good question. unfortunately i cannot answer this. I raised https://github.com/freme-project/e-Internationalization/issues/36

finished points 2 to 7.

finished points 2 to 7.

finished point 1.
@jnehring can we close this?

thank you


Further documentation on how to retrieve 'serial' and 'datalog' values

This is partly a question and partly a suggestion to improve the documentation. I am not sure where to find the 'serial' and 'datalog' values of the inverter setups. It isn't in the Wiki (as far as I can see).

👍 I thought I had documented this but to be honest maybe this is the kick I need to write a proper Getting Started wiki page. It'll slim down the README a bit as well hopefully.
I'll pick it up soon :)

Well effectively the warning message was added to make it easier; its telling you that the serial being sent out by the inverter doesn't match the serial in your configuration. So replace the 5555555 in your config with the number shown in your logline and should all be good.
I was hoping to automate this by replacing the in-memory serial the first time we see the inverter send its true serial but it got difficult for various technical Rust reasons and it was low-reward so I abandoned it for now.
Note that its only important to have the correct serial/datalog in the configuration if you want to control the inverter. If you're only monitoring it then its irrelevant. I'll put this in the wiki page :)

Found some time to start the wiki ;)
https://github.com/celsworth/lxp-bridge/wiki/Configuration#serial-numbers :)
I'll do more as time permits but hopefully this is a good start..

HOLD_SERIAL_NUM spits out the serial number. Its needed for lots of reads/writes.

Yeah, but in order to send the inverter a command to read that register, you need to know the serial number as far as I'm aware.
I'm planning to middle-man-attack the app while its interrogating my inverter to see how they do it at some point :)
Because you can use the phone apps without the app knowing your serial numbers in advance.

I think it does it from the "plantId"


column name "ctid" conflicts with a system column name

I tried to get prestogres working on out presto cluster, I followed the install instructions but got problems when running "SELECT * FROM sys.node";
Error log:
< 2014-12-28 15:26:47.526 CST >LOG:  database system is ready to accept connections
< 2014-12-28 15:26:47.526 CST >LOG:  autovacuum launcher started
< 2014-12-28 15:29:18.971 CST >LOG:  statement: create database "hive"
< 2014-12-28 15:29:19.212 CST >LOG:  statement: create role "hadp" with login
< 2014-12-28 15:29:19.212 CST >ERROR:  role "hadp" already exists
< 2014-12-28 15:29:19.212 CST >STATEMENT:  create role "hadp" with login
< 2014-12-28 15:29:19.213 CST >LOG:  statement: select prestogres_init_database('hadp', 'hive', E'host='<IP_ADDRESS>' port=5432 dbname='hive' user='prestogres' password=''')
< 2014-12-28 15:29:19.230 CST >LOG:  statement: do $INIT$ begin
if not exists (select * from pg_language where lanname = 'plpythonu') then
create language plpythonu;
end if;
        if not exists (select * from pg_namespace where nspname = 'prestogres_catalog') then
            create schema prestogres_catalog;
        end if;

        create or replace function prestogres_catalog.start_presto_query(
            presto_server text, presto_user text, presto_catalog text, presto_schema text,
            function_name text, query text)
        returns void as $$
            import prestogres
            prestogres.start_presto_query(
                presto_server, presto_user, presto_catalog, presto_schema, function_name, query)
        $$ language plpythonu
        security definer;

        drop function if exists prestogres_catalog.setup_system_catalog(text, text, text, text);

        create or replace function prestogres_catalog.setup_system_catalog(
            presto_server text, presto_user text, presto_catalog text, presto_schema text,
            access_role text)
        returns void as $$
            import prestogres
            prestogres.setup_system_catalog(
                presto_server, presto_user, presto_catalog, presto_schema, access_role)
        $$ language plpythonu
        security definer;

        revoke temporary on database "hive" from public;  -- reject CREATE TEMPORARY TABLE
        grant usage on schema prestogres_catalog to "hadp";
        grant execute on all functions in schema prestogres_catalog to "hadp";

    end $INIT$ language plpgsql

NOTICE:  function prestogres_catalog.setup_system_catalog(text,text,text,text) does not exist, skipping
CONTEXT:  SQL statement "drop function if exists prestogres_catalog.setup_system_catalog(text, text, text, text)"
PL/pgSQL function inline_code_block line 20 at SQL statement
< 2014-12-28 15:29:27.372 CST >LOG:  statement: select 1 from (select prestogres_catalog.setup_system_catalog(E'<IP_ADDRESS>:8089', E'hadp', E'hive', E'hive', E'hadp')) s;
< 2014-12-28 15:29:41.244 CST >ERROR:  spiexceptions.DuplicateColumn: column name "ctid" conflicts with a system column name
< 2014-12-28 15:29:41.244 CST >CONTEXT:  Traceback (most recent call last):
PL/Python function "setup_system_catalog", line 4, in
presto_server, presto_user, presto_catalog, presto_schema, access_role)
PL/Python function "setup_system_catalog", line 300, in setup_system_catalog
PL/Python function "setup_system_catalog"
My environment is as follows:
System Version: Linux Centos 6.5
Python Version: 2.6
Presto Version: 0.89
PostgreSQL Version: 9.3.5
Do you have any idea what causes the problem?

The error message indicates that one of tables has 2 columns with the same name.
"setup_system_catalog " function gets all table information by running "SELECT * FROM information_schema.columns" query on Presto. Then it creates empty tables on PostgreSQL so that clients can get metadata of the tables. If a table has invalid schema such as duplicated column names, setup_system_catalog function fails.

I added a small workaround to avoid this issue: https://github.com/treasure-data/prestogres/commit/5fe0d534c5e9ad2994222e69c15af088886186ea
It adds "_" at the end of duplicated column names.
The latest Prestogres v0.6.5 includes the improvement.

Thanks, I updated the code, but still face the same problem.
I reinstalled postgresql but it doesn't make any difference.
Do I miss something?

Could you paste stacktrace shown by Prestogres v0.6.5? At least line number (like "setup_system_catalog", line 300) should be changed.

< 2015-01-05 11:00:39.763 CST >LOG:  statement: select 1 from (select prestogres_catalog.setup_system_catalog(E'<IP_ADDRESS>:8089', E'hadp', E'hive', E'hive', E'hadp')) s;
< 2015-01-05 11:00:53.062 CST >ERROR:  spiexceptions.DuplicateColumn: column name "ctid" conflicts with a system column name
< 2015-01-05 11:00:53.062 CST >CONTEXT:  Traceback (most recent call last):
PL/Python function "setup_system_catalog", line 4, in
presto_server, presto_user, presto_catalog, presto_schema, access_role)
PL/Python function "setup_system_catalog", line 302, in setup_system_catalog
PL/Python function "setup_system_catalog"
< 2015-01-05 11:00:53.062 CST >STATEMENT:  select 1 from (select prestogres_catalog.setup_system_catalog(E'<IP_ADDRESS>:8089', E'hadp', E'hive', E'hive', E'hadp')) s;
< 2015-01-05 11:00:53.065 CST >LOG:  statement: create database "hive"
< 2015-01-05 11:00:53.066 CST >ERROR:  database "hive" already exists
< 2015-01-05 11:00:53.066 CST >STATEMENT:  create database "hive"
< 2015-01-05 11:00:53.066 CST >LOG:  statement: create role "hadp" with login
< 2015-01-05 11:00:53.066 CST >ERROR:  role "hadp" already exists
< 2015-01-05 11:00:53.066 CST >STATEMENT:  create role "hadp" with login
< 2015-01-05 11:00:53.067 CST >LOG:  statement: select prestogres_init_database('hadp', 'hive', E'host='<IP_ADDRESS>' port=5432 dbname='hive' user='prestogres' password=''')

I found the cause...it's tricky. PostgreSQL reserves some column names for system columns. We can't use them in a table definition.
http://www.postgresql.org/docs/9.3/static/ddl-system-columns.html
I added this change to avoid the error: https://github.com/treasure-data/prestogres/compare/730ff825e60f8642ef0e67c31119dba9dc0b0edc...76e710439b3ff7b88509f581fc104d677857b421
With this change, when a table has reserved column names (such as ctid), we can access them with _ at the end of column names (such as ctid_)
I released Prestogres v0.6.6 with the change. Please try it :+1:

It works fine now! Great job!
Thanks!

For me exchanging it to CTID_ did not worked but NON_CTID name has worked.


Commit Hours and Times

This issue is for tracking progress on the metric developed here:
https://docs.google.com/document/d/12jRzEN3SIdXxPZnpX8-lWIqZL2AFswwH_q7v2ZhQl08/edit

Do we have a visualization for this metric in GrimoireLab?
Here is what I came up with:

I'm not happy with this visualization. I would like to aggregate the commits across days for each hour of the day.
Maybe we could discuss during one of our Tuesday GL meetings, how to add a field in the index to that calculates the time of day and would allow the kind of visualization that I envision.
/cc @alpgarcia @dicortazar @sduenas @valeriocos

The information is already in grimoire_creation_date field. I think it's a matter of extracting day and time of such date. Perhaps with Painless, that would require some web browser processing, or during enrichment phase with Grimoire-ELK.
An step beyond would be to produce such metric/information during enrichment phase, and to make it a common field for all data sources, not just commits. Some information that might be derived from such field could be:

Day of the week for a contribution
Time of the day for a contribution

And for visualization, I would recommend a heat map, with days of the week range in the x-axis, and day hours in the y-axis

If it's for commits, with just Perceval you could get such info as shown in this example using Python dateutil:
...
from dateutil import parser
...

commit_date = parser.parse(commit['data']['AuthorDate'])
...
  'weekday': commit_date.isoweekday(),
  'hour': commit_date.hour,
...

I'd say adding those fields to the enricher would be the best option in terms of performance. As this is not going to be recalculated (others, like time opened needs to be calculated on the fly) I'll avoid to use painless.
I guess it would be easy to add these fields on GELK, @valeriocos wdyt?
On the other hand, for a quick PoC, we could try with painless. We would need the right function to convert the date, though.

I guess it would be easy to add these fields on GELK, @valeriocos wdyt?
yes

@GeorgLink if you want this feature to be included in GL, please create an issue in the Grimoirelab repository. With @sduenas we will plan the work to be done, thanks.

@valeriocos I created issue https://github.com/chaoss/wg-common/issues/29 and hope that maybe we can work on it together during today's CHAOSS GL call ... maybe even create a PR together :D

Thank you @alpgarcia for the PoC for the visualization. This is what I was trying to explain:

During the CHAOSS GrimoireLab call, we built the visualization.
@valeriocos shared:
https://github.com/chaoss/grimoirelab-elk/pull/691
We built a painless implementation and created a histogram:

Also of note is the heatmap shared above: https://github.com/chaoss/wg-common/issues/29#issuecomment-534626883


⚠ Bofrost.de has degraded performance

In 58f7ad2, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1811 ms

Resolved: Bofrost.de performance has improved in c6b39df after 1 hour, 16 minutes.


tokio hangs up with hyper 0.12

Hi, I've been using hyper 0.12 to talk to my local docker daemon and observed my program gets stuck during start up at a very low probability. I managed to minimize the reproducing code to the following piece but had no idea at all why this happens. The phenomenon is that running the following code after setting up the docker daemon to talk via tcp instead of unix socket, which is default, eventually makes the whole program stuck after a certain period of time. (In my Ubuntu on VMware on MacBookPro 2020 it takes less than a minute) I know that my software stack is quite outdated, but to make sure this problem is entirely fixed I think I need find out the actual cause. Is this a bug in hyper or is my usage simply incorrect?
How to reproduce
Before running the code one needs to set up the docker daemon to talk tcp. (I found this instruction https://gist.github.com/styblope/dc55e0ad2a9848f2cc3307d4819d819f helpful).
// [dependencies]
// futures = "0.1"
// hyper = "0.12"
// tokio = "0.1"

use futures::{Future, Stream};

fn main() {
    let client = hyper::Client::new();

    let mut runtime = tokio::runtime::Runtime::new().unwrap();

    for i in 0.. {
        println!("{}", i);

        let client = client.clone();

        let future = client
            .get("http://localhost:2375//events".parse().unwrap()) // get 301 response and discard it; appearently meaningless code but removing this line changes the behavior.
            .and_then(move |_resp| client.get("http://localhost:2375/events".parse().unwrap()));

        let res = runtime.block_on(future).unwrap(); // this doesn't return at a low probability

        let future = res.into_body().for_each(|_| Ok(()));

        runtime.spawn(future.map_err(|_| ()));
    }
}

What do the logs look like, if you enable them? Are you able to upgrade to 0.13?

Here are the logs. In this run the above program stopped emitting logs at the 19th iteration.
https://gist.github.com/nyuichi/3bda7ee7a95b94e0214a04fbd6dd4db5
Upgrading the above particular code to 0.13 seems get rid of the hangup, but I was unable to figure out whether this means the issue was gone by upgrading hyper (and tokio) or it just lowered the probability the bug appears.

The logs do seem to show that right before the 19th iteration, it stores a new idle connection, whereas previous iterations it marked the connection dead since its chunked-encoding and you don't consume the body. I can't say why exactly it does that, but if it's fixed in 0.13, I wouldn't spend time trying to debug 0.12.

Well, I am using 0.12 in an embedded system and its codebase is not that small. What is worse is it is already deployed in production and this may affect many running devices. In this kind of situation merely upgrading dependencies can be a risk, so, if possible, I would first like to understand the exact reason this is caused and then wish to evaluate how to fix (of course the best option at the moment is to migrate the codebase to 0.13, unless the cause gets revealed).

So many smaller details changed, I don't know what would be the issue. Is it simply just the usage pattern of calling block_on on individual futures instead of letting the runtime constantly run?
Since this is fixed in 0.13, I'm going to close the issue at least.


How to export decoder for mobile net model?

I've exported a mobile net model using the export_encoder script using mobilenet weights for mobilenet model. Now how do I export decoder for this?
I cannot see a mobile type in export_decoder script, also should I pass the same mobile_sam.pt or vit_h.pth model as the check point for decoder?
Any help is appreciated.

def run_export(
    model_type: str,
    checkpoint: str,
    output: str,
    use_preprocess: bool,
    opset: int,
    gelu_approximate: bool = False,
):
    print("Loading model...")
    if model_type == "mobile":
        checkpoint = torch.load(checkpoint, map_location="cpu")
        sam = setup_model()
        sam.load_state_dict(checkpoint, strict=True)
    else:
        sam = sam_model_registry[model_type](checkpoint=checkpoint)

I copied this code from export_encoder.py to export_decoder.py, and ran export_decoder.py with --model-type mobile successfully, but I did not check if the result is correct.


Intergration overwrites device when adding mutiple cameras

Dear Ladies or Gentleman,
I'm using an RLN8-410-E NVR alongside with 4 PoE powered cameras.
Adding the cameras throughout the UI works flawlessly
After entering the host (of the nvr), credentials, and selecting the channel (in my case 1 to 4) the camera is added and works as expected.
If I add the integration again (for the 2nd channel / camera) everything works fine, expect the issue that the 2nd (3rd, 4th, ...) add-process overwrites the "device" of the preceding operation.
In my case I'd expect 4 devices, but there's just one.

Same here, did you fix your problem ?

It is "okay" to have only one device (the NVR).
But the config flow should allow to add multiple channels add once after entering the host data.
If having multiple Channels the Names should be generated in form of
device name = model_name*
entity name = model_name* + "" + channel_name* + "" suffix**

don't forget to normalize
** entity specific suffiix for motion detection etc.

I do not own a NVR, so fixing is not so easy to me. Would you mind creating a fix and pull request for this?

Hi, Sasa1983.
Any chance to help me how to add the camera after adding the host?
and also,how do I find the ip's for the other cameras?
cheers

If you are using an NVR, the camera is not reachable via an own IP. Only
via the channel. Thus you should create a device with a distinct identifier
like
 as device name entity_id
MihaiRachita @.***> schrieb am Mi., 26. Jan. 2022,
18:04:

Hi, Sasa1983.
Any chance to help me how to add the camera after adding the host?
and also,how do I find the ip's for the other cameras?
cheers
—
Reply to this email directly, view it on GitHub
https://github.com/fwestenberg/reolink_dev/issues/153#issuecomment-1022402662,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AALM6PHTME5V4VQNJ2ZLZJDUYASSTANCNFSM4XX7IDGA
.
You are receiving this because you authored the thread.Message ID:
@.***>

Awesome. It worked.
So, for people who don't understand this language:
After you installed the reolink integration , you will be asked for host,port, user and password.
●Host: your NVR IP address ( the easiest way for me going to Internet provider ip( in my case EE) and I've looked for the NVR camera connected through Ethernet cable to the router.
● port 433
● user: if you don't recall that, by default is admin
● password : if you have set up that through nvr+tv/monitor/ usually are only lower cases
Thanks so much to the people that work so hard  for thinks extremely hard for people who don't understand programming and editing so well,like me.


Using freq.freqstr, since freq is not hashable anymore.

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

We are using pandas==1.0.x for now, which doesn't require this change.


rand_num_cheatcode

Closes #2353
Introduced changes
Implemented a new cheatcode to generate a random number
Checklist

[x] Linked relevant issue
[ ] Updated relevant documentation
[ ] Added relevant tests
[ ] Performed self-review of the code
[ ] Added changes to CHANGELOG.md

Documentation, tests, CHANGELOG .md update are missing, also you need to add relevant function on snforge_std side. Function you added should be exposed via cheatcode api (see other cheatcodes for reference) so it can be used with cheatcode in cairo.

Hey @Oshioke-Salaki, what's the status of this?

Gm ser. I'm still on it. But I'm having troubles integrating it into the snforge_std. Please can I have your telegram so I can message you

Gm ser. I'm still on it. But I'm having troubles integrating it into the snforge_std. Please can I have your telegram so I can message you

You can ask in the Starknet Foundry tg group https://t.me/starknet_foundry
Please note this contribution can only be accepted once it integrates with other cheatcodes and in snforge_std

Closing due to lack of activity


[MXNET-681] Add retry mechanism for the docker build stage

Description
This PR adds retry mechanisms to the docker build stage. The setting is controlled as an environment variable in Jenkins to ensure that user systems are not getting this retry mechanism applied.
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.

[x] The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
[x] Changes are complete (i.e. I finished coding on this PR)
[x] All changes have test coverage:
Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
[x] Code is well-documented:
For user-facing API changes, API doc string has been updated.
For new C++ functions in header files, their functionalities and arguments are documented.
For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
Check the API doc at http://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
[x] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

Add retry mechanism
Set high number of retries for Docker cache generation job

Comments

LGTM

Currently running in test CI here (ignore deploy stage failures) http://jenkins.mxnet-ci-dev.amazon-ml.com/job/mxnet-pedro/job/master/

Looks good in the test env.  This should address a lot of the false negatives in CI.  Would appreciate a merge @szha or @nswamy.


chore: revert #10196 until Vite 4

This reverts commit f328f613cccc6dda261849f4fbf1ce6041a2682b.
Description
Marko is failing after #10196
@PengBoUESTC we can do this change in Vite 4 in a month, so we don't introduce a breaking change (even if it is just types) in a minor.
Error: src/__tests__/main.test.ts(156,36): error TS2345: Argument of type 'Server | Http2SecureServer' is not assignable to parameter of type 'Server'.
  Type 'Http2SecureServer' is missing the following properties from type 'Server': maxHeadersCount, maxRequestsPerSocket, timeout, headersTimeout, and 2 more.

The error is strange, why Http2SecureServer is missing properties from Server?

What is the purpose of this pull request?

[x] Bug fix
[ ] New Feature
[ ] Documentation update
[ ] Other

in https://github.com/marko-js/vite/blob/main/src/tests/main.test.ts, this function shown below accepts a param server with a type  http.Server.
async function testPage(dir: string, steps: Step[], server: http.Server) {
I don't think that will be a problem..

@PengBoUESTC Marko is failing here https://github.com/vitejs/vite-ecosystem-ci/actions/runs/3295058377/jobs/5433215758, Http2SecureServer doesn't extends Server

@PengBoUESTC Marko is failing here https://github.com/vitejs/vite-ecosystem-ci/actions/runs/3295058377/jobs/5433215758, Http2SecureServer doesn't extends Server

import type { Http2SecureServer } from 'node:http2'
http.Server
I think it means that http2.Http2SecureServer is not assignable to http.Server, that's correct,
in Marko-js/vite testPage function, the server parameter is declared as http.Server
async function testPage(dir: string, steps: Step[], server: http.Server) {
I think Marko-js/vite should update the server type when they want to update the vite version

I think Marko-js/vite should update the server type when they want to update the vite version

Yes, this is why we think it is better to move this PR to Vite 4. There weren't enough requests to justify having marko deal with this breaking change in their types in a minor version.

I think Marko-js/vite should update the server type when they want to update the vite version

Yes, this is why we think it is better to move this PR to Vite 4. There weren't enough requests to justify having marko deal with this breaking change in their types in a minor version.

Ok that maybe a better choice !


styles not working for content

Could you show an example of how to get styles working with content rendered in contentView? I've tried importing scss/css files in the react typescript files but they don't seem to be getting loaded. I also tried to mimic your runtime bundling by manually inserting a link tag to the public contentStyle.css file generated, but that did't work either

im my case, i create a single style.scss file in content folder,
@import "./styles/xxxx.scss";
@include echo;
// ....

then configure it in vite.config.ts
 rollupOptions: {
      input: {
        // ....
        contentStyle: resolve(pagesDir, "content", "style.scss"),
      },
      output: {
        assetFileNames: "assets/[ext]/[name].chunk.[ext]",
      }
    },

finally, update manifest.ts
content_scripts: [ { css: assets/css/contentStyle.css, /*...*/ } ]
web_accessible_resources: [ { resources: [ "assets/css/*.css", /*...*/ ] } ]

of cource , u can set css by chrome API
chrome.scripting.insertCSS({
          files: ["assets/css/contentStyle.chunk.css"],
          target: {
            tabId,
          },
        })

awesome thank you! I got it working by manually compiling into contentStyle.css but wanted to make better use of vite, which this seems to take full advantage of. I'll try this out

maybe this will help

https://github.com/Jonghakseo/chrome-extension-boilerplate-react-vite/pull/16

@all-contributors please add @spencerc99 for bug


[Fix] MessageFormatter makes the response body empty

Issue #2863

Im 👎
https://github.com/guzzle/guzzle/issues/2863#issuecomment-792247910


Near-identical weights when performing subsequent min-semivar optimisations

Hi Robert (and all others of course too! :) ),
First of all, thanks for your amazing work. It's amazing that you took the effort to develop a package that is of great use to others.
I'm checking how the length of an estimation window (training set) would affect portfolio allocations using different allocation methods and I'm using PyPortfolioOpt for the min-semivariance allocation.
The issue also arises in this code snippet:
windows = [t1, t2, t3] for window in windows:     sample = prices[window:]     exp = expected_returns.mean_historical_return(sample)     s = EfficientSemivariance(exp, sample.pct_change(), benchmark=0)     s.min_semivariance()     used_weights = [(ticker, weight) for ticker, weight in zip(s.tickers, s.weights) if weight > 0.001]     print(used_weights)     used_tickers = [ticker for ticker, weight in used_weights]     print(risk_models.semicovariance(sample[used_tickers], benchmark=0).head())
prices is a pd.DataFrame with adjusted closing prices of most S&P500 firms from jan 2006 - jan 2021. t1= 2006, t2 = 2011 and t3  = 2014 (all dates are january first).
The last four lines are just to be sure that the semicovariance matrices are not identical (which they aren't).
The first time I ran that loop, I got slightly different weights and they converged to be identical after three or so loops.
I tried putting del s in the end of the loop but that wouldn't make a difference.
Stay awesome!
Mark.
edit: my data can be found here! :)

Hi @tuffah12,
I have replicated your code and the issue is that the price dataframe contains NaN values.
You should see the warning UserWarning: Removing NaNs from returns while running your code. Essentially, all rows are thrown out which do contain any NaN value.
The first row where this is true is "2020-03-19" -> No matter the start date, all optimizations are run on the same inputs.
Hope this helps :)

P.S.: when posting multi-line code snippets, it's better to use triple backticks, as one can otherwise not see the line breaks. You can even add
'''python
your code
'''
to make it look even nicer (of course with backticks).
E.g. something like this:
windows = [t1,t2,t3]
for window in windows:
    sample = prices[window:]
    exp = expected_returns.mean_historical_return(sample)
    s = EfficientSemivariance(exp, sample.pct_change(), benchmark=0)
    s.min_semivariance()
    used_weights = [(ticker, weight) for ticker, weight in zip(s.tickers, s.weights) if weight > 0.001]
    print(used_weights)
    used_tickers = [ticker for ticker, weight in used_weights]
    print(risk_models.semicovariance(sample[used_tickers], benchmark=0).head())

Thanks for the quick response @phschiele. It was my first post so thanks for letting me know!
I ignored that warning as I assumed that for min-semivariance optimisation the only variable that matters would be the semicovariance matrix, isn't it? Anyways, I've adjusted my sampling method and works like a charm now, so thanks a lot! I do notice it takes a lot longer now as it is taking a whole longer sample to work with.


Cypress/E2E: Fix test related to channel switcher and bot display name

Summary
For channel switcher, it's due to the malformed aria-label - MM-35081. But updated the test here instead of waiting for the fix since it's affecting several tests.
For bot display name, it's intermittently failing in prod. Fix here is a potential fix.
Screenshots

/release-note-none


Multibroker implementation + fixes, improvements

I recently spent a lot of time trying to get MoP working, and was digging into other people's forks. I'm wondering if you guys are actively still using MoP or ever even managed to get it to work properly in clustered Pulsar.

I recently spent a lot of time trying to get MoP working, and was digging into other people's forks. I'm wondering if you guys are actively still using MoP or ever even managed to get it to work properly in clustered Pulsar.

@tsturzl - Yes, it works well together with pulsar. If you need to run it locally then:

Download Pulsar of desired version https://pulsar.apache.org/download/
clone git project https://github.com/streamnative/mop, checkout to your version.
add <packaging>nar</packaging> to mqtt-impl/pom.xml, run mvn clean install
copy the nar file to /protocols folder
configure standalone.conf and run bin/pulsar standalone

@dlazarenko-macrometa Our issue hasn't been running in standalone. We've been trying to run Pulsar clustered with MoP, where they require you to configure and run the MoP proxy component. I saw you had also forked it MoP, and had made changes to MQTTProxyProtocolMethodProcessor.java which pertains to the MoP proxy. When running the proxy we have a really unreliable connection, and see really weird things like multiple PINGRESP for every PINGREQ sent by an MQTT client. The developers of MoP haven't responded about this issue. I'd tried for about a month to get MoP working on cluster Pulsar with no luck, including making a variety of patches, still no luck. I'm just not sure how others have been running with the MoP proxy in cluster Pulsar, it seems like the proxy is just fundamentally flawed.


⚠ TorrentLeech has degraded performance

In 9aa2279, TorrentLeech ($TL) experienced degraded performance:

HTTP code: 200
Response time: 7607 ms

Resolved: TorrentLeech performance has improved in 1372877 after 7 minutes.


Stop pushing json podspecs to cpdc

We don't remember why json podspecs were needed in cpdc and they expose a bug with CocoaPods 1.6.1 running pod spec lint on test specs.

See https://github.com/CocoaPods/CocoaPods/issues/8776

CocoaPods will have the underlying issues with podspec.json files and test_specs fixed in the upcoming 1.6.2 patch.


Error located on () complains about expecting unit and getting … * …

Here's a concrete example:
module A

open FStar.List

let rec memP_append #a (x: a) (l: list a) :
  Lemma (List.memP x l ==>
         (exists (l1 l2: list a). l == l1 @ (x :: l2))) =
    match l with
    | [] -> ()
    | h :: t ->
      FStar.Classical.or_elim
        #(x == h)
        #(memP x t)
        #(fun _ -> exists (l1 l2: list a). l == l1 @ (x :: l2))
        (fun _ -> assert (l == [] @ (x :: t)))
        (fun _ -> let (l1, l2) = memP_append x t in ())

The error is located on the very last (); the message says this:
Expected type "Prims.unit"; got type "uu___unification_ 98884 a x l h t uu___43679 uu___43716 *
uu___unification_ 98888 a x l h t uu___43679 uu___43716"

Where does the … * … come from? And why is F* complaining about ()?

This is an ill-positioned error message. Here is a minimal example illustrating this:
let foo () : int =
    let (l1, l2) = "haha" in 42

produces the error:
Expected type "Prims.string"; got type "uu___unification_ 73566 uu___740442 uu___740451 * uu___unification_ 73569 uu___740442 uu___740451"

Which is fine if it pointed at the "haha" but it's actually pointing at the 42! Strange stuff :)
Your original code has the same error, since memP_append returns unit not a pair, but again the error message is ill-positioned.
If I change the destructuring let to the corresponding match
let foo () : int =
    match "haha" with
    | (l1, l2) -> 42

the whole match gets blamed, which is already better but still not ideal.

Fixed in https://github.com/FStarLang/FStar/commit/7cb8fb8286bb8a40014238f9b8d5e0f3d08495f4


Upgrade vinyl 0.5.0 => 1.1.1

Hello!
Is there a chance to update vinyl dependency to latest version?

Nope.  gulp-util is being deprecated and you should rely on the vinyl module directly.

okay :disappointed_relieved:


Upgrade Arrow and Datafusion

Is there any plan to upgrade arrow to 48.0 and datafusion to 33.0?
Willing to submit a PR for the same.

Yes, we'd be glad to. Feel free to open a PR.

Awesome! I will open a PR soon :)


The default branch has been renamed from dev to main

Due to the ALX checker’s requirements, we no longer need the current main branch as a stable branch or the dev branch as a nightly branch. Here’s what has been done:

The old main branch has been deleted. This change will remain until the end of the ALX project, after which we can decide on future development.
The dev branch has been renamed to main to align with the traditional default branch naming.

Please update your local repositories with the following steps:

Switch to the dev branch:git switch dev

Delete the current local main branch:git branch -D main

Rename the dev branch to main:git branch -m main

Fetch the latest changes from the remote and remove any obsolete branches:git fetch origin --prune

Set the local main branch to track the remote main branch:git branch -u origin/main main

Update the remote HEAD reference to point to the new default branch:git remote set-head origin -a

This guide ensures your local repository is in sync with the updated branch structure.

@M1-Elmasry


[Tools] Bugfix duplicate macros

Description
While compiling for IAR for platforms:

NRF51822::IAR
NRF51_DONGLE::IAR
HRM1017::IAR
ARCH_BLE::IAR
SEEED_TINY_BLE::IAR

we've got duplicated macros definitions in IAR compiler command line calls.
Fix & Test
Compiler was fed with few identical -D macro definitions. In toolchains, function returning symbols should return unique set of values.
After patch compilation for IAR passes fine:
$ build.py -t IAR -m NRF51822,NRF51_DONGLE,HRM1017,ARCH_BLE,SEEED_TINY_BLE -j 8

Building library CMSIS (NRF51822, IAR)
Building library MBED (NRF51822, IAR)
Building library CMSIS (NRF51_DONGLE, IAR)
Building library MBED (NRF51_DONGLE, IAR)
Building library CMSIS (HRM1017, IAR)
Building library MBED (HRM1017, IAR)
Building library CMSIS (ARCH_BLE, IAR)
Building library MBED (ARCH_BLE, IAR)
Building library CMSIS (SEEED_TINY_BLE, IAR)
Building library MBED (SEEED_TINY_BLE, IAR)

Completed in: (1.01)s

Build successes:
  * IAR::NRF51822
  * IAR::NRF51_DONGLE
  * IAR::HRM1017
  * IAR::ARCH_BLE
  * IAR::SEEED_TINY_BLE

Impact on other toolchains
$ build.py -t GCC_ARM,ARM -m NRF51822,NRF51_DONGLE,HRM1017,ARCH_BLE,SEEED_TINY_BLE -j 8
Building library CMSIS (NRF51822, GCC_ARM)
Building library MBED (NRF51822, GCC_ARM)
Building library CMSIS (NRF51_DONGLE, GCC_ARM)
Building library MBED (NRF51_DONGLE, GCC_ARM)
Building library CMSIS (HRM1017, GCC_ARM)
Building library MBED (HRM1017, GCC_ARM)
Building library CMSIS (ARCH_BLE, GCC_ARM)
Building library MBED (ARCH_BLE, GCC_ARM)
Building library CMSIS (SEEED_TINY_BLE, GCC_ARM)
Building library MBED (SEEED_TINY_BLE, GCC_ARM)
Building library CMSIS (NRF51822, ARM)
Building library MBED (NRF51822, ARM)
Building library CMSIS (NRF51_DONGLE, ARM)
Building library MBED (NRF51_DONGLE, ARM)
Building library CMSIS (HRM1017, ARM)
Building library MBED (HRM1017, ARM)
Building library CMSIS (ARCH_BLE, ARM)
Building library MBED (ARCH_BLE, ARM)
Building library CMSIS (SEEED_TINY_BLE, ARM)
Building library MBED (SEEED_TINY_BLE, ARM)

Completed in: (1.45)s

Build successes:
  * GCC_ARM::NRF51822
  * GCC_ARM::NRF51_DONGLE
  * GCC_ARM::HRM1017
  * GCC_ARM::ARCH_BLE
  * GCC_ARM::SEEED_TINY_BLE
  * ARM::NRF51822
  * ARM::NRF51_DONGLE
  * ARM::HRM1017
  * ARM::ARCH_BLE
  * ARM::SEEED_TINY_BLE

Merged manually, it's already on master. Thanks

https://github.com/mbedmicro/mbed/commit/0c7ec777f9879379aa923b8cf11c55def5712445


PersistentVolumeRecycler controller

Adds new controller that handles recycling.  Last commit has the interesting bits.
e2e test that creates an NFS server, a PV using NFS, a claim that matches the PV, and tests that the content of the volume is gone after recycling.
The test is marked Skipped due to the requirement of privileged containers.  The output of a local run is here:  https://gist.github.com/jsafrane/6dc167d752a70a570b7e
5 of 5 PRs from #8334
@thockin

Thank you very much for the pull request - we sincerely appreciate the work that goes into sending us a change.
We are currently in a feature-freeze and general code slush as we work toward our 1.0 release. Our initial triage indicates that this is a non-critical change at this time, so we'd like to leave it open and revisit it after 1.0. We expect the freeze to wrap up in early to mid July.
If you feel that this triage is incorrect, please respond and let us know why. We're currently accepting changes that meet any of the following criteria:
Changes directly related to v1.0 issues: https://github.com/GoogleCloudPlatform/kubernetes/issues?q=is%3Aopen+is%3Aissue+milestone%3Av1.0
Changes addressing P0 bugs: https://github.com/GoogleCloudPlatform/kubernetes/issues?q=is%3Aopen+is%3Aissue+label%3Apriority%2FP0
Changes to supported platforms to bring them up to par with the primary development platforms
Docs, user experience, and test related fixes
Thanks again for your contribution! The community is really what has made this project so exciting.

LGTM deec5f2

Added watches in place of sleeps and used GenerateName.
The NFS scrub works well in the e2e test.  The second pod in the test has a bug I need to squash.
This is in a commit separate from the one you've LGTM'd.

LGTM b9d7b27

I'll be creating a subsequent PR to adjust the scrubs a bit.  It needs to account for hidden files, too.
something more like this:    "ls -A /scrub/ | xargs rm -rf"

And the e2e to conclusion, run locally:   https://gist.github.com/jsafrane/e115e0f0e528d7d8a4cf

LGTM 542034d

Still needs gofmt.  Please please please install the presubmit hooks so it checks this at commit time.
It's explained in docs/devel/development.md

LGTM 57d8b30
Assuming we get a green shippable, good to go.  Oncall, it's in your hands.  Mark is on standby for any issues.

Hi Oncall Person,
All commits from the linked PRs are present and accounted for in this PR.  Each commit has LGTM from @thockin along the way to this final PR.  This is the one Tim and I agreed to merge.

Woot!  All green :)

This PR has been grandfathered in to v1.0 as it:

provides a significantly improved user experience
was essentially complete (barring final review) before the code freeze.


CI: Investigate ci-gke failure with 1.24.7-gke and remove workaround

With GKE cluster version 1.24.7-gke the encryption connectivity test started failing (https://github.com/cilium/cilium/actions/runs/3738583649). Downgrading to 1.24.5-gke seems to solve the issue (https://github.com/cilium/cilium/pull/22798).
Investigate why the new version causes reliable test failure, fix the issue and remove the pin.

Failures seem to always happen in the IPsec section, so it's either related to IPsec or caused by the uninstall/reinstall we perform in between the two sections.
Also note the k8s change may come with COS and kernel changes so it may not be specific to k8s v1.24.7.

@brlbil Do we need to update this issue to actually mention the IPsec aspect, and unassign @nbusseneau?


Fix error output of mdx-test.py

Call read() on process.stderr file object

Codecov Report

Merging #1310 (8316d76) into unstable (c43e0b5) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##           unstable    #1310      +/-   ##
============================================
- Coverage     74.29%   74.28%   -0.01%
============================================
  Files           334      334
  Lines         10891    10891
  Branches        524      524
============================================
- Hits           8091     8090       -1
- Misses         2800     2801       +1

Impacted Files
Coverage Δ

...he/io/annotations/parser/CommentPreprocessor.scala
92.77% <0.00%> (-1.21%)
:arrow_down:

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 c43e0b5...8316d76. Read the comment docs.

Nice. Thanks!


Can I do 'all the way' docker development meaning the nodejs app also in docker-compose?

Here is my docker-compose file for local development
version: "3"
services:
  app:
    build: .
    ports:
      - "4000:4000"
    volumes:
      - ./:/usr/src/app
      - /usr/src/app/node_modules/
  prisma:
    image: prismagraphql/prisma:1.18
    restart: always
    ports:
      - "4466:4466"
    environment:
      PRISMA_CONFIG: |
        port: 4466
        databases:
          default:
            connector: postgres
            host: postgres
            port: 5432
            user: prisma
            password: prisma
            migrations: true
  postgres:
    image: postgres:10.5
    restart: always
    environment:
      POSTGRES_USER: prisma
      POSTGRES_PASSWORD: prisma
    volumes:
      - postgres:/var/lib/postgresql/data
volumes:
  ? postgres

In the prisma.yml file, I have
endpoint: http://localhost:4466
datamodel: datamodel.prisma

when I run prisma deploy, I want the endpoint to be  http://localhost:4466.
However, I want the nodejs app to point to http://prisma:4466 since it is run inside docker.
Can I do that? or it needs a feature request?

I think you can do that, here is my stack with graphql yoga
version: "3.3"
services:
  prisma:
    image: prismagraphql/prisma:1.18
    ports:
      - "4466:4466"
    restart: always
    environment:
      PRISMA_CONFIG: |
        port: 4466
        managementApiSecret: hello
        databases:
          default:
            connector: postgres
            host: postgres
            port: 5432
            user: prisma
            password: prisma
            migrations: true

  postgres:
    image: postgres:10.5
    environment:
      POSTGRES_USER: prisma
      POSTGRES_PASSWORD: prisma
    ports:
      - "5432:5432"
    restart: always
    volumes:
      - database:/var/lib/postgresql/data

  app:
    build:
      context: ./app
      dockerfile: Dockerfile.local
    ports:
      - "4000:4000"
    restart: always
    depends_on:
      - prisma
    volumes:
      - ./senator:/usr/src/app
    environment:
      - HOME=/usr/src/app
      - NODE_ENV=development

volumes:
  ? database

@thanatchakromsang what does your prisma.yml look like?
Are you able to run prisma deploy and then go to the http://localhost:4000 and do some query without prompting out "message": "request to http://localhost:4466/ failed, reason: connect ECONNREFUSED <IP_ADDRESS>:4466" ? Thanks

This discussion is outside the scope of this repository, but feel free to continue it in our Forum https://www.prisma.io/forum/.


[FEAT]: Implement a OAuth2 scheme through FastAPI

Usage of OAuth2, will allow users to connect via Google Mail and simplify usage complexity

@cool-pants I think we need to revaluate this

@cool-pants and @aylmerbritto This issue's patch should be implemented for Authentication purposes, I'm taking this as its a priority issue.

okay !!


docs: multiple go modules rfc

Description
Add RFC to propose a new project structure which splits the main module into multiple modules to allow us to version modules separately and reduce dependencies.
Type of Change
[ ] Bug Fix
[ ] New Feature
[ ] Breaking Change
[ ] Refactor
[x] Documentation
[ ] Other (please describe)
Checklist

[ ] I have read the contributing guidelines
[ ] Existing issues have been referenced (where applicable)
[ ] I have verified this change is not present in other open pull requests
[ ] Functionality is documented
[ ] All code style checks pass
[ ] New code contribution is covered by automated tests
[ ] All new and existing tests pass

@ramizpolic @lgecse thank you so much for reviewing 😄


How to convert the .png format image to .jpeg or .jpg

I have used the following code example to export custom widget as image. While converting the widget as image, I could export as .png format or raw image format(rawRgba or rawUnmodified). Is there any direct support to convert as .jpeg or .jpeg or is there any other to achieve the same?
import 'dart:async';
import 'dart:ui' as dart_ui;
import 'package:flutter/rendering.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);
  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  MyContainer _container = MyContainer();
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        // Center is a layout widget. It takes a single child and positions it
        // in the middle of the parent.
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            _container,
            RaisedButton(
              child: Text(
                'To Image',
              ),
              onPressed: _renderImage,
              shape: RoundedRectangleBorder(
                  borderRadius: BorderRadius.circular(20)),
            ),
          ],
        ),
      ),
    );
  }

  Future<void> _renderImage() async {
    final dart_ui.Image data = await _container._toImage();
    final bytes = await data.toByteData(format: dart_ui.ImageByteFormat.png);
    if (data != null) {
      await Navigator.of(context).push(
        MaterialPageRoute(
          builder: (BuildContext context) {
            return Scaffold(
              appBar: AppBar(),
              body: Center(
                child: Container(
                  color: Colors.white,
                  child: Image.memory(bytes.buffer.asUint8List()),
                ),
              ),
            );
          },
        ),
      );
    }
  }
}

class MyContainer extends StatefulWidget {
  MyContainer({
    Key key,
  }) : super(key: key);

  _MyContainerState _currentState;
  @override
  _MyContainerState createState() {
    _currentState = _MyContainerState();
    return _currentState;
  }

  Future<dart_ui.Image> _toImage() async {
    return _currentState._toImage();
  }
}

class _MyContainerState extends State<MyContainer> {
  BuildContext _currentContext;
  @override
  Widget build(BuildContext context) {
    _currentContext = context;
    return RepaintBoundary(
      child: Container(
        height: 200,
        width: 200,
        color: Colors.blue,
      ),
    );
  }

  Future<dart_ui.Image> _toImage() async {
    final RenderRepaintBoundary boundary = _currentContext.findRenderObject();
    final dart_ui.Image data = await boundary.toImage(pixelRatio: 3.0);
    return data;
  }
}

Regards,
Devi

Hi @DeviArunaMurugan
It seems you are asking for assistance on personal code. Please see https://flutter.dev/community for resources and asking questions like this,
you may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you

how to create png image to jpg, please suggest. Thanks.


Isue2814

Changelog category (leave one):

Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
...

checking for checkable and python unittest

Documentation entry for user-facing changes

[ ] Documentation is written (mandatory for new features)

Information about CI checks: https://clickhouse.com/docs/en/development/continuous-integration/

This is an automated comment for commit de9013b29b4e963977bb48c5f03cbce8860ad36c with description of existing statuses. It's updated for the latest CI running
The full report is available here
The overall status of the commit is 🔴 failure
Check nameDescriptionStatus
CI runningA meta-check that indicates the running CI. Normally, it's in success or pending state. The failed status indicates some problems with the PR🔴 failure


Tests/Adhoc Domain/Account Creation and Test Isolation

Issue #, if available:
N/A
Description of changes:
Adds Domain/Account/User creation and cleanup on unit test runs.
The unit tests now still only take about 15 seconds, but now they run in a domain with UUID that is cleaned up afterwards. This allows test isolation and helps to guarantee failed test cleanup.
In doing so I've also managed to turn enable about 40+ unit tests that were skipped in the pipeline previously.
This PR also moves unit tests to their own module/folder. This allows tools like dep check to consider our go.mod and go.sum without additional back bending to remove test only requirements.
Testing performed:
More than before!
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/test all

/test all

/test capi-provider-cloudstack-presubmit-unit-test

/test capi-provider-cloudstack-presubmit-unit-test

/easycla


[hero] how to move content to left

[hero] how to move content to left

@workingxx92  pls post snipet of you, or
you can use CSS - Positioning like left:0 with postition: absolute;

@workingxx92 It's CSS grid, you can justify it by adding justify-items-start to hero.
Example: https://play.tailwindcss.com/n2H77uIxac


[ILVerify] Implement verification of initonly fields

As described in ECMA II.16.1.2 Field contract attributes, initonly fields should only be mutable in their corresponding constructor. This implements this rule.
As mentioned in #4911 and noted in ECMA, a ldflda of an initonly field should always be unverifiable. However, PEVerify does not report an error for ldflda instructions in ctors. I was not sure how to deal with this case for ILVerify and have stuck to the way PEVerify does it for now, since this rule should be revisited after the proposed spec changes anyway.
This fixes #4911.

cc @jcouv @VSadov


Japanese Hiragana to Kanji converting not works in Android

Steps to Reproduce

Input Hiragana to TextField
Separate the range to convert one to two using arrow key on IME (Also caret should move but doesn't move. IME changes the range.)
Convert first range's Hiragana to Kanji and choose one, then list of candidate for conversion will disappear and we can't select second range's Kanji.

Here is the code to reproduce.
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: TextField(),
      ),
    );
  }
}

There are no problems on other Android native apps (e.g. PlayStore)

Target Platform: Android
Target OS version/browser: Android 8 / Android 9
Devices: Sony SO-01J(XperiaXZ) / Sony SO-01K(XperiaXZ1)
Logs
$ flutter analyze
Analyzing textfieldcjk...
No issues found! (ran in 1.9s)

$ flutter doctor -v
[✓] Flutter (Channel stable, v1.9.1+hotfix.6, on Mac OS X 10.15.1 19B88, locale ja-JP)
    • Flutter version 1.9.1+hotfix.6 at /Users/kikuchy/SDK/flutter
    • Framework revision 68587a0916 (8 weeks ago), 2019-09-13 19:46:58 -0700
    • Engine revision b863200c37
    • Dart version 2.5.0

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/kikuchy/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.2, Build version 11B52
    • CocoaPods version 1.7.5

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 40.2.2
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)

[✓] IntelliJ IDEA Ultimate Edition (version 2019.2.4)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 41.0.4
    • Dart plugin version 192.7402

[✓] IntelliJ IDEA Community Edition (version 2019.2.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 40.2.4
    • Dart plugin version 192.7402

[!] VS Code (version 1.40.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    ✗ Flutter extension not installed; install from
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (1 available)
    • SO 01K • QV702GL410 • android-arm64 • Android 9 (API 28)

! Doctor found issues in 1 category.

/cc @cbracken
I believe this replacement is happening in the TextInputPlugin on the engine side.

I checked it with Flutter v1.10.7, it works.
However, the display of the conversion range was still not displayed due to the change.

I checked it with Flutter v1.10.7 on XperiaXZ. but it doesn't work yet.

It may depend on the IME or device. I checked Google Japanese Input, Gboard and iWnn IME on Huawei P20 Pro.

I change the keyboard to Google Japanese Input on the same device, and it works!
Thanks so much!

Please try it now, we have since added getExtractedText() (https://github.com/flutter/engine/pull/17426) to the InputConnectionAdaptor, which has resolved many keyboard issues involving composing regions.

It works using Flutter (Channel master, 1.18.0-9.0.pre.76, on Mac OS X 10.15.4 19E287, locale ja-JP) except moving the calet!

Thank you very much @GaryQian !

Awesome! Thanks for verifying!


Selecting the "core32' option from cmd line gui appears to not work

Choosing the "core32" option from the cmd line GUI does not seem to submit the job to the "core32" queue, but instead submits the job to the default "run" queue.
GUI selection:
"
What queue do you want to go in?
DEFAULT = run :
core32
"
results in PBS queue:
"
?????.earth0      ??201401         ts551             00:00:00 R run
"

Fixed in devel now I think.
If it fails try to see happens if you change DEBUG=True in the script at the start. It should print out "queue name    = ####" where #### is what it should be.
I forgot to push back a temp variable


feat: support Github Enterprise

Add support for running against github enterprise installations, both showing installations and getting tokens works.
Had to remove the pretty print library as it wasn't getting installed in darwin arm64 for some reason, feel free to modify that back.
Thank you for your work on this tool.

@alozanoff Thank you for your contribution!
I've made some adjustments in https://github.com/nabeken/go-github-apps/pull/11 and released as v0.1.7.


Should interrupt speech synthesis after microphone button is clicked

Fixes #2428.

(Will add new tests)
Changelog Entry
Fixed

Fix #2428. Should interrupt speech synthesis after microphone button is clicked, by @compulim in PR #2429

Description
Today, the microphone button does not stop synthesizing. And since synthesizing is still ongoing, microphone will not turn on to prevent echo.
Tomorrow, the microphone button will stop synthesizing. And this should immediately turn on the microphone.
Specific Changes

Add a new saga to stop synthesis when the user want to open the microphone
Modify speech samples to use authorization token instead of secret

[ ] Testing Added

Coverage increased (+0.007%) to 68.007% when pulling f34ea6c9a5aa787ed7c7a51df39b3398a20fdccb on compulim:fix-2428 into 7de0a8454d68636bafbe043240c7365c69c36f82 on microsoft:master.


Correctly handle HTTP conflict status on updateRoot

The code in fetch.js and http_batch_store.js weren't really
agreeing on how HTTP failures were reported up the stack. Now,
they agree, and this allows HttpBatchStore.updateRoot() to
correctly detect a conflict response and return false.
This means that the merge logic in Database.commit() works right,
now.
Fixes #2699

PTAL

yay
On Mon, Oct 17, 2016 at 11:53 AM, cmasone-attic<EMAIL_ADDRESS>wrote:

Merged #2721 https://github.com/attic-labs/noms/pull/2721.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/attic-labs/noms/pull/2721#event-826405847, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAE6BKoc3Gr-awBhZm8PWD9ljCzUNPwWks5q08RHgaJpZM4KY8Sf
.


Add automatic detection for release version

During the latest deployment, I noticed that we might run into issues with identifying the release information. Therefore, I changed the process to automatically grab the git hash used to build the binary. We can still specify a manual release version, e.g., to be used during development.

We could think about adding behavior for the  vcs.modified=true setting 🤷♂

I also thought about this. Potentially, we could just append "-modified", as we've done before. However, as we currently build during our GitLab CI pipeline, we rarely have those "modified" builds.

I agree - not really important. But if we spot the prepended "modified", we might discover a new error..

I agree - not really important. But if we spot the prepended "modified", we might discover a new error..

Indeed. I changed the code accordingly.


Dynamic PHP versions

It would be amazing to be able to dynamically switch PHP versions on the fly to test PHP 7.4 or 8.0.3 or 8.1 etc

7.1 also


Resolve semantics of invoking Object members on JS objects and implement

An internal user hit the following trace when interoperating with non-Dart JS:
TypeError: obj[$toString] is not a function
    at Object.dart_library.library.dart.str
    ...

It looks like DDC is crashing here because there is no [$toString] on the prototype.  What should the behavior be (and it should be consistent)?
@jmesserly @natebosch @rakudrama

To clarify a bit, they caught an exception thrown by GWT, which is not a Dart exception.
It looks like DDC thought that the object had a Dart $toString method (it did not).

I think this is a duplicate of https://github.com/dart-lang/sdk/issues/35951 (and https://github.com/dart-lang/sdk/issues/35952) ... going to merge this into those because I saw them first and added comments.
TL;DR -- we will likely want to fall back to JS toString(). That may be enough in this case, assuming GWT exposes a toString method on the prototype. Note that some JS objects do not support toString, and throw a TypeError if it is called.


New Gesture Dataset

I added my custom data set and trained the model also but when i add new lines in ContinuousGesturePredictor.py , it gives an error.
def getPredictedClass():
# Predict
image = cv2.imread('Temp.png')
gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
prediction = model.predict([gray_image.reshape(89, 100, 1)])
return np.argmax(prediction), (np.amax(prediction) / (prediction[0][0] + prediction[0][1] + prediction[0][2] + prediction[0][3]))
def showStatistics(predictedClass, confidence):
textImage = np.zeros((300,512,3), np.uint8)
className = ""

if predictedClass == 0:
    className = "Swing"
elif predictedClass == 1:
    className = "Palm"
elif predictedClass == 2:
    className = "Fist"
elif predictedClass == 3:
    className = "One"

Help pls!!

Please share the error screenshot
Sparsha
On Mon, 12 Oct, 2020, 6:23 pm Surya Narayan Sharma, <
<EMAIL_ADDRESS>wrote:

I added my custom data set and trained the model also but when i add new
lines in ContinuousGesturePredictor.py , it gives an error.
def getPredictedClass():
Predict
image = cv2.imread('Temp.png')
gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
prediction = model.predict([gray_image.reshape(89, 100, 1)])
return np.argmax(prediction), (np.amax(prediction) / (prediction[0][0] +
prediction[0][1] + prediction[0][2] + prediction[0][3]))
def showStatistics(predictedClass, confidence):
textImage = np.zeros((300,512,3), np.uint8)
className = ""
if predictedClass == 0:
className = "Swing"
elif predictedClass == 1:
className = "Palm"
elif predictedClass == 2:
className = "Fist"
elif predictedClass == 3:
className = "One"
Help pls!!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/SparshaSaha/Hand-Gesture-Recognition-Using-Background-Elllimination-and-Convolution-Neural-Network/issues/11,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFI75JMF422JT5ZOVL5EMHTSKL36NANCNFSM4SMYRCTQ
.

return np.argmax(prediction), (np.amax(prediction) / (prediction[0][0] + prediction[0][1] + prediction[0][2] + prediction[0][3]))
IndexError: index 3 is out of bounds for axis 0 with size 3
getting this error

As mentioned in the error,you have an array with size 3. but you are trying
to access the fourth element . i.e. prediction[0][2]..
Please follow README to check how to add custom dataset..
Also look for comments in .ipynb file.. I have marked places where you need
to change
On Mon, Oct 12, 2020 at 9:33 PM Surya Narayan Sharma <
<EMAIL_ADDRESS>wrote:

return np.argmax(prediction), (np.amax(prediction) / (prediction[0][0] +
prediction[0][1] + prediction[0][2] + prediction[0][3]))
IndexError: index 3 is out of bounds for axis 0 with size 3
getting this error
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/SparshaSaha/Hand-Gesture-Recognition-Using-Background-Elllimination-and-Convolution-Neural-Network/issues/11#issuecomment-707208243,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFI75JN4PQJ2HWISXTGTSD3SKMSFFANCNFSM4SMYRCTQ
.

--
Sparsha Saha

Which lines to change/add to add a new gesture in ContinuousGesturePredictor.py file.I have created my custom data set changed lines in .ipynb file also.

Try to understand the code.. it's not hard to figure out what to change..
Please understand the coode step-by-step
On Tue, Oct 13, 2020 at 10:03 AM Surya Narayan Sharma <
<EMAIL_ADDRESS>wrote:

Which lines to change/add to add a new gesture in
ContinuousGesturePredictor.py file.I have created my custom data set
changed lines in .ipynb file also.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/SparshaSaha/Hand-Gesture-Recognition-Using-Background-Elllimination-and-Convolution-Neural-Network/issues/11#issuecomment-707479914,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFI75JKINKNRL7JDRHN2GRTSKPKBRANCNFSM4SMYRCTQ
.

--
Sparsha Saha


Add analytics

GA can be added to have a better view of usage

GA for extension is different with GA for web. Moreover those data is not so beneficial for the moment. Closing for further consideration.


Why is autoencoder with tensorflow 2.0 is performing very bad compared to the same code in keras?

I am training an autoencoder on the mnist data With keras the validation loss is great (starting from 0.2687 to .1) While with tensorflow(version 2.0).keras validation loss is stuck at (.6) Even though I am using the same code.
Below is the code with keras (you can test it in colab) and followed by the code with tf.keras (you can test it in colab)
from keras.layers import Input, Dense
from keras.models import Model, Sequential
from keras.datasets import mnist
import numpy as np

#Import the MNIST data, only take the images since we don't need the targets
(x_train, y_train), (x_test, y_test) = mnist.load_data()
#Normalize and reshape images to vectors
x_train = x_train.astype('float32') / 255.
x_test = x_test.astype('float32') / 255.
x_train = x_train.reshape((len(x_train), np.prod(x_train.shape[1:])))
x_test = x_test.reshape((len(x_test), np.prod(x_test.shape[1:])))
print (x_train.shape)
print (x_test.shape)

input = Input(shape=(784,))
y = Dense(64, activation='relu')(input)
z = Dense(784, activation='sigmoid')(y)
ae = Model(input, z)
encoder = Model(input, y)
input_decoder = Input(shape = (64,))
decoder_layer = ae.layers[-1]
decoder = Model(input_decoder, decoder_layer(input_decoder))
ae.compile(optimizer='adadelta', loss = 'binary_crossentropy')
ae.fit(x_train, x_train, epochs = 50, batch_size=256, shuffle=False, validation_data=(x_test, x_test))

60000/60000 [==============================] - 5s 88us/step - loss: 0.3494 - val_loss: 0.2688 Epoch 2/50 60000/60000 [==============================] - 4s 74us/step - loss: 0.2578 - val_loss: 0.2445 Epoch 3/50
from tensorflow.keras.layers import Input, Dense
from tensorflow.keras.models import Model, Sequential
from tensorflow.keras.datasets import mnist
import numpy as np

#Import the MNIST data, only take the images since we don't need the targets
(x_train, y_train), (x_test, y_test) = mnist.load_data()
#Normalize and reshape images to vectors
x_train = x_train.astype('float32') / 255.
x_test = x_test.astype('float32') / 255.
x_train = x_train.reshape((len(x_train), np.prod(x_train.shape[1:])))
x_test = x_test.reshape((len(x_test), np.prod(x_test.shape[1:])))
print (x_train.shape)
print (x_test.shape)

input = Input(shape=(784,))
y = Dense(64, activation='relu')(input)
z = Dense(784, activation='sigmoid')(y)
ae = Model(input, z)
encoder = Model(input, y)
input_decoder = Input(shape = (64,))
decoder_layer = ae.layers[-1]
decoder = Model(input_decoder, decoder_layer(input_decoder))
ae.compile(optimizer='adadelta', loss = 'binary_crossentropy')
ae.fit(x_train, x_train, epochs = 50, batch_size=256, shuffle=False, validation_data=(x_test, x_test))

Train on 60000 samples, validate on 10000 samples Epoch 1/50 60000/60000 [==============================] - 4s 59us/sample - loss: 0.6941 - val_loss: 0.6939 Epoch 2/50 60000/60000 [==============================] - 3s 47us/sample - loss: 0.6937 - val_loss: 0.6936

It turns out it's a behaviour from the optimizer. Could it be a bug? or just different initialization parameters
with tf.keras it works very well and reaches val_loss less than 1 with adam optimizer

#from keras import backend as K
from tensorflow.keras.layers import Input, Dense, Dropout
from tensorflow.keras.utils import plot_model, to_categorical
from tensorflow.keras.callbacks import EarlyStopping
from tensorflow.keras.models import Model, Sequential
from tensorflow.keras.datasets import mnist
from tensorflow.keras import regularizers
import tensorflow.keras as keras
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import tensorflow as tf

#Import the MNIST data, only take the images since we don't need the targets
(x_train, y_train), (x_test, y_test) = mnist.load_data()
#Normalize and reshape images to vectors
x_train = x_train.astype('float32') / 255.
x_test = x_test.astype('float32') / 255.
x_train = x_train.reshape((len(x_train), np.prod(x_train.shape[1:])))
x_test = x_test.reshape((len(x_test), np.prod(x_test.shape[1:])))
print (x_train.shape)
print (x_test.shape)

input = Input(shape=(784,))
y = Dense(64, activation='relu')(input)
z = Dense(784, activation='sigmoid')(y)
ae = Model(input, z)
encoder = Model(input, y)
input_decoder = Input(shape = (encoding_size,))
decoder_layer = ae.layers[-1]
decoder = Model(input_decoder, decoder_layer(input_decoder))
ae.compile(optimizer='adam', loss = 'binary_crossentropy')
ae.fit(x_train, x_train, epochs = 50, batch_size=256, shuffle=False, validation_data=(x_test, x_test))

Train on 60000 samples, validate on 10000 samples
Epoch 1/50
60000/60000 [==============================] - 2s 28us/sample - loss: 0.2540 - val_loss: 0.1771
Epoch 2/50
60000/60000 [==============================] - 1s 20us/sample - loss: 0.1578 - val_loss: 0.1418

@ahmedelmahy
I tried the code with keras using TF 1.15 and validation loss is converging  (starting from 0.2687 to .1). However in TF 2.0 using keras gives the below error.
RuntimeError: It looks like you are trying to use a version of multi-backend Keras that does not support TensorFlow 2.0. We recommend using tf.keras, or alternatively, downgrading to TensorFlow 1.14.
I tried the given code using tf.keras using TF 2.0 against adadelta and adam and yes 'adadelta' has much worse performance compared to adam (as you can see here and this can be explained here.Please correct me if you think otherwise.Thanks!

@ahmedelmahy
Any update on this issue please?. Thanks!

@ravikyram  thanks for the mention. That seems correct that adam could be faster than adadelta
reddit
But I still kind of don't understand why "adadelta" is behaving in a different way in tf.keras as compared to the separate keras  package.
For now I am using Adam and things are working fine.

@ahmedelmahy I think this is probably due to we changed the default learning rate (unfortunately) from 1.0 to 0.001. Can you try it and let us know if it fixes for you?

That works like a charm @tanzhenyu  . Setting the learning rate  to 1.0 produces the same results as with keras.


enable broadcast traffic relay

together with changes from core-network#bcast to enable broadcast traffic relay to drivers' and apps' networks
another helper service databox-broadcast-relay will be started together with core-network, the host docker network is attached to this new service's container, this way all the interfaces from the host will be mapped into that container,  the relay utility within the container will choose the interface whose IP matches the value given to -h command line option to listen, and only relay link local broadcast traffic to the fifo, given by -f.
tested by installing tcpdump into a driver, then capturing and comparing the broadcast traffic with those captured from host network

Could you please check the arbiter availability test? That seems to fail in travis

I was looking at this,
I think the test is failing because of the recently introduced authentication on the container manager UI, not these changes.
I will take a look and report back here when I get a chance tomorrow.

sure, though perhaps that's a good thing. Perhaps you can liaise also with @ktg

seems like the requests need to add an authorization header: https://github.com/me-box/core-container-manager/blob/master/src/server.js#L30
and together with some cookies: https://github.com/me-box/core-container-manager/blob/master/src/server.js#L26
to pass the authentication check: https://github.com/me-box/core-container-manager/blob/master/src/server.js#L109
This is what I got atm...

is there a clean way to test this PR together with #241 , in the sense that it won't pollute the commit history if get merged later?

closed to rebase against #241


Display number of rows and columns for a dataset in the dataset list page

Currently only the size of the dataset is shown  for each dataset in the list page. Show additional details like the number of rows and columns

wrongly added this


PyLance does not seem to understand subpackage imports

 Environment data

Language Server version: 2022.10.20
OS and version: win32 x64
Python version (and distribution if applicable, e.g. Anaconda):
python.analysis.indexing: false
python.analysis.typeCheckingMode: off

 Code Snippet
site-packages/kubernetes/__init__.py:
import kubernetes.client

main.py:

import kubernetes

kubernetes.client  # PyLance does not know what `client` is

 Expected behavior
I expect PyRight to understand the implications of the import kubernetes.client imports (client attribute being added to the kubernetes module).
 Actual behavior

Thank you for the information. I've inferred the first workaround and proposed a patch https://github.com/kubernetes-client/python/pull/1935
Just curious: Why is the first form not possible to analyze?
import kubernetes.client

vs.
from . import client

At the first glance the first form seems more predictable: client attribute becomes available on top-level kubernetes module. The module path is rooted. With the second form we are not 100% sure which module paths the client would be added to.


download fMoW dataset and run fMoW baseline

https://github.com/fMoW/dataset
https://github.com/fMoW

downloaded the RGB dataset which took around 6 hours. Will try to get to it once done with supervised training on BE dataset or set up new machine for testing.

forked baseline repo for modification https://github.com/Berkeley-Data/fMoW-baseline

some issues with keras. did bunch of code change to make it work.

failed to run training and test. hold on for now since it is not critical for us to run this baseline.


Add Dad Jokes API

Description
This PR adds the icanhazdadjoke API which fetches a really funny random dad joke.
Screenshot
Optional

Checklist

[x] API used in this PR was not used in just-calling-random-api before.
[x] API used in this PR is Public or I have permission to use it.
[x] My contribution is working.
[x] My contribution doesn't expose any API keys.
[x] My changes don't generate any new warnings.
[x] My changes don't affect any work done by other developers.

To tick a box, replace [ ] with [x].

Awesome! Thanks


fixed variable declaration of custId

This could be a possible fix for #42 , at least in my setup after this change the placement of orders works again.

Thanks @dirkwall!
I've asked @errordeveloper to review this, as he was also looking at this.

I've added myself as a reviewer. I had exactly the same fix in https://github.com/microservices-demo/front-end/pull/51


Get_list_items method in websvc not available to SPWSClient (and query passing doesnt seem to work)

ruby 2.2.5p319
viewpoint-spws 0.5.5
I'm a relative ruby novice.
I would like to take advantage of the get_list_items method call in the SPWS::Websvc module, but its marked as a private method. To this end I added the following lines of code to my installed viewpoint-spws GEM spws_client.rb file:
<
def get_list_items(list, opts = {})
lists_ws.get_list_items(list, opts = {})
end
>
Doing this allows me to call get_list_items from within a SPWSClient connection. Is there a reason why this isnt included in the release viewpoint-spws-0.5.0 ?
The main problem I have is when trying to pass a builder query to get_list_items as shown in the example code at rubydoc
<
myitems = scli.get_list_items('Some Valid Sharepoint Page') do |b|
b.Query {
b.Where {
b.Eq {
b.FieldRef(:Name => 'Release')
b.Value('foo', :Type => Text)
}
}
}
end
/>
When i look at a tcpdump output of the XML being submitted to sharepoint, I'm not seeing the CAML query being submitted as part of the get_list_items:
<

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Header/>
  <soap:Body>
    <GetListItems xmlns="http://schemas.microsoft.com/sharepoint/soap/">
      <listName>Some Valid Sharepoint Page</listName>
      <viewName/>
      <rowLimit/>
      <queryOptions>
        <QueryOptions>
          <Folder/>
          <ViewAttributes Scope="Recursive"/>
          <DateInUtc>True</DateInUtc>
          <IncludeAttachmentUrls>True</IncludeAttachmentUrls>
        </QueryOptions>
      </queryOptions>
    </GetListItems>
  </soap:Body>
</soap:Envelope>`

/>
Any thoughts on what might be going wrong?
Cheers

I've resolved the not being able to see the opts{} hash being passed by changing the spws/lists.rb edit to be:
<
def get_list_items(list, opts = {})
lists_ws.get_list_items(list, opts)
end
/>
Options passed are seen now. However my 'new' problem is that I dont know how to properly pass the yield block into the private method call to lists_ws.get_list_items(list, opts) in the above code block.
ideas?


Client generation for Content-Type: application/x-www-form-urlencoded

Hey,
I've encountered an issue when trying to create the API Client and data models from my swagger file. This is happening when the Content-Type of my API is application/x-www-form-urlencoded. Currently, it is being created as Json or form data when a query string is needed as the body and for this reason, when using the client it is failing.
Here is the definition of that specific endpoint in my swagger.json file:
"/auth/login": {
    "post": {
        "responses": {
            "500": {
                "description": "Internal server error."
            },
            "400": {
                "description": "Validation error."
            },
            "401": {
                "description": "Email or password does not match"
            },
            "200": {
                "description": "Login succeeded."
            }
        },
        "summary": "Authenticate an existing user and return an access token",
        "operationId": "post_auth_api",
        "parameters": [
            {
                "name": "email",
                "in": "formData",
                "type": "string",
                "format": "email",
                "required": true
            },
            {
                "name": "password",
                "in": "formData",
                "type": "string",
                "required": true
            }
        ],
        "security": [],
        "consumes": [
            "application/x-www-form-urlencoded",
            "multipart/form-data"
        ],
        "tags": [
            "auth"
        ]
    }
}

And the code generated:
export class Auth extends HttpClient {
  postAuthApi = (data: { email: string; password: string }, params?: RequestParams) =>
    this.request<any, any>(`/auth/login`, "POST", params, data, BodyType.FormData, true);
    ...
    }

I'm using this command for generating the models and Is there a configuration I am missing for this case?
npx swagger-typescript-api -p https://myapi.com/v1/swagger.json -o ./src/apiClient --modular

Hello @Larox !
Thanks for this issue, will fix it in next release!

@Larox what's happening when you create a request with this method postAuthApi ?
HttpClient try to convert FormData to json ?

Hey @js2me, when I create a request with postAuthApi the FormData is being generated correctly, the issue is that the API requires Content-Type=application/x-www-form-urlencoded and expects to receive a Query String, not a FormData.
I tried editing the swagger.json file:
"consumes": [
            "application/x-www-form-urlencoded",
-            "multipart/form-data"
        ],

With this update, the postAuthApi method uses BodyType.JSON. Formating the request body to JSON. Meanwhile, I was expecting a request body formatted like a Query String.
Let me know if extra information is needed.

Hello @Larox !
This problem should be fixed in 4.3.0
Please reopen issue if you still got this bug

Hey, @js2me Thanks for fixing this. I just tried it out and I'm still having some issues:

When generating the client, using:

npx<EMAIL_ADDRESS>-p https://myapi.com/v1/swagger.json -o ./src/apiClient --modular

It is still taking the form-data body type. The swagger.json is the same I posted above.
I tried it again with a testSwagger.json file where I removed manually the "multipart/form-data" and it worked, but using a static file is not an option since the API I'm using changes continuously.

The request is being generated with a query string now which is great! But it is being passed as a query parameter, not as a body request.

This is the cUrl request swagger provides:
curl -X POST "https://myapi.com/v1/auth/login" -H "accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" -d "email=foo%40bar.com&password=strongpassword"

And this is how it is currently being created:
curl 'https://myapi.com/v1/auth/login?email=foo%40bar.com&password=strongpassword' -H 'Content-Type: application/x-www-form-urlencoded'

I'm not able to reopen the issue, please re-open it when you can.

Hello @Larox!
It is my mistake, try to quick fix that now

https://github.com/acacode/swagger-typescript-api/blob/next/tests/schemas/v2.0/another-example.json#L266
https://github.com/acacode/swagger-typescript-api/blob/next/tests/generated/v2.0/another-example.ts#L364

Hello @Larox!
Thank you for issue, should be fixed in 4.4.0

@js2me Thanks for fixing this so fast. I'll try it out again!

@js2me same issue with axios


Pin Python<3.11 in conda's environment.yml

Closes #47
Python versions 3.8, 3.9 and 3.10 are now valid. 3.11 is too new still (dependencies have to update first).
Tested on Windows, conda env creation went fine, and PyStemmusScope was importable.
Note: PR includes commits of #45.

Something went wrong with the commits 🤷♂. I made a new branch, see #51


Bump kind to v0.11.1

Took the versions from https://github.com/kubernetes-sigs/kind/releases/tag/v0.11.1
Tested in https://github.com/kubernetes-csi/csi-driver-host-path/pull/330
/cc @pohly

/release-note-none


CNV-23418: Validate jsonpatch annotation + add condition on wrong patch

What this PR does / why we need it

validate the jsonpatch annotation in webhook. Make sure the jsonpatch string is a valid standard jsonpatch
If the creation of a kubevirt machine template fails, add a new condition to the node pool to reflect this error.

Which issue(s) this PR fixes
Fixes #CNV-23418
Checklist

[x] Subject and description added to both, commit and PR.
[x] Relevant issues have been referenced.
[ ] This change includes docs.
[x] This change includes unit tests.

/retest

/retest

/retest


Max attribute's values array's length is 101 in metadata.json

hi, @ericfischer - After I use tile-join(tippecanoe version: v1.27.1) to generate single mbtile from multi mbtiles, I checked the the metadata.json, and found vector_layers - >attributes ->attribute ->values array's length, max length is 101, is it a bug?
For example, I have four mbtiles: 0.mbtiles, 1.mbtiles, 3.mbtiles, 4.mbtiles
0.mbtiles: there is a attribute: idx, and it's values(from 0 - 29): [0,1,10,11,12,13,14,15,16,17,18,19,2,20,21,22,23,24,25,26,27,28,29,3,4,5,6,7,8,9]
1.mbtiles: there is a attribute: idx, and it's values(from 30 - 59): [30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59]
2.mbtiles: there is a attribute: idx, and it's values(from 60 - 89): [60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89]
3.mbtiles: there is a attribute: idx, and it's values(from 90 - 111): [100,101,102,103,104,105,106,107,108,109,110,111,90,91,92,93,94,95,96,97,98,99]
After I use tile-join to generate a single mbtile:
there is a attribute: idx, and it's values: [0,1,10,100,101,102,103,104,105,106,107,108,109,11,110,111,12,13,14,15,16,17,18,19,2,20,21,22,23,24,25,26,27,28,29,3,30,31,32,33,34,35,36,37,38,39,4,40,41,42,43,44,45,46,47,48,49,5,50,51,52,53,54,55,56,57,58,59,6,60,61,62,63,64,65,66,67,68,69,7,70,71,72,73,74,75,76,77,78,79,8,80,81,82,83,84,85,86,87,88]
values array's max length is 101(from 0 - 88, and 100-111, not contain 89-99) instead of containing all values. So is it a bug? If so, could we contain all values, or set max length to 201?
Thanks.

The size of the values array is limited to match the behavior of https://github.com/mapbox/mapbox-geostats. That said, it specifies that there should be at most 100 values, so if I am passing through 101, that is a bug, and I'll look into what's going wrong.
The 100 is specified in https://github.com/mapbox/tippecanoe/blob/d64ac19f115bef509f34cfc685ff27644e033e3c/mbtiles.cpp#L386 so you can change that to a different number if you need something different.

There are 100 elements there, not 101 (9 is also not present), so I think I am following the specified behavior for tilestats.
I admit it is not particularly intuitive which elements survive into the output and which don't. They are ordered lexically instead of numerically so that it works the same whether the values are numbers or strings. But maybe I should revisit that and add a specifically numeric comparison for numeric values.

@ericfischer - Thanks, got it.


Blender 2.93 Bake doesn't work correctly: all the textures are black.

I tried using Bake on both the release and development versions and this is the result... both the model in blender and the texture files in the project directory are black (as in, the have no colour whatsoever other than black).
Baking to Quest, by the way. I have a similar issue when baking for desktop though.

This is likely a baking issue in general rather than CATS, but I used the "fix model" option for the textures/materials and haven't touched anything else.

Are you on the dev version? There's been some major improvements since the last release, including some extra warnings about things that could be going wrong


No-response bot isn't removing the label when the reporter responds

The primary triagers have noticed that waiting for customer response isn't being removed as expected when the reporter responds to the issue again. This is causing problems for triage, because the triage process filters out issues that are waiting for response.
At first I thought this was a regression from our fix to https://github.com/flutter/flutter/issues/89057, but looking at the details the mechanism for removing the label is unrelated to the scheduled sweep. Is it possible we broke something about the permissions that was triggering it on comment changes?
/cc @godofredoc

In case we need them for debugging, examples include:

https://github.com/flutter/flutter/issues/100683
https://github.com/flutter/flutter/issues/100445


Failed to build Llama-2-13b-hf engine with Lora adapter

Running with release 0.6.1.
hitting assertion error:
AssertionError: The value updated is not the same shape as the original. Updated: (32000, 5120), original: (0, 5120)
Build command:

Callstack:

It looks the vocab size does not be passed in model successfully, you could check the vocab size in build.py before passing in model.
Do you use the checkpoint we use in document?

Indeed, the vocab size is overridden by LoraConfig vocab size, value is 0 since the adapter config file doesn't contain a value for vocab size.
Can you give more clarity over what you mean with checkpoint in document?

Indeed, the vocab size is overridden by LoraConfig vocab size, value is 0 since the adapter config file doesn't contain a value for vocab size. Can you give more clarity over what you mean with checkpoint in document?

I mentioned
https://huggingface.co/meta-llama/Llama-2-13b-hf
https://huggingface.co/hfl/chinese-llama-2-lora-13b

For different checkpoint, we don't verifiy and it might not work because they have different settings.
You could try removing
args.vocab_size = lora_config.vocab_size

in llama/build.py.

The issue should be fixed in the latest main branch, please see https://github.com/NVIDIA/TensorRT-LLM/pull/754.
Closing. Please feel free to comment if you have any question, thanks!


supports_bool.py:23: Перенести классы в отдельные файлы 16

The puzzle 899-7ce8d453 from #899 has to be resolved:
https://github.com/blablatdinov/tg-quranbot/blob/3c83a562066717543817037d6f58540869e1060f/src/app_types/supports_bool.py#L23-L23
The puzzle was created by Ilaletdinov Almaz on 20-Jun-24.
role: DEV.
If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

The puzzle 899-7ce8d453 has disappeared from the source code, that's why I closed this issue.


Add input-group and button-group

As suggested in issue #159 . The code needs his own file because margin-bottom of inputs is set in the input file, which is parsed after the _button.scss

With the way that the buttons currently handle border-radius, you end up with funny-looking buttons side-by-side:
https://jsfiddle.net/leoherzog/arux1js6/

Thanks for your Feedback ✌ and your friendly recommendation but for me it works fine when i use "SCSS" als styling language.

maybe consider to use role=group

@reinerBa,
Thank you for this new contribution, and sorry for the delay.
role="group"
As suggested by @yus-ham, I would prefer to use role="group" instead of class="button-group".
It seems to fit perfectly in our case (documentation).

  <button>Option 1</button>
  <button>Option 2</button>
  <button>Option 3</button>

It would also allow us not to have 2 different classes  .button-group and .input-group.
aria-current
With version 1.5.0 we added the aria-current support.
Nothing to do here as it's already working if you rebase your branch from master.

  <button aria-current="page">Option 1</button>
  <button>Option 2</button>
  <button>Option 3</button>

Architecture
I would suggest components/group instead of content/form-input-group.

Sorry, closed by mistake

@reinerBa, I'm closing this PR because this feature has been added to the v2 (#261).