Get the correct type of elements with querySelector

Suggestion

🔍 Search Terms

document query selector elements type
✅ Viability Checklist

My suggestion meets these guidelines:

[x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
[x] This wouldn't change the runtime behavior of existing JavaScript code
[x] This could be implemented without emitting different JS based on the types of the expressions
[x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
[x] This feature would agree with the rest of TypeScript's Design Goals.

⭐ Suggestion

When we use document.querySelector and querySelectorAll I suggest getting the correct element type instead of Element if it starts with a valid HTML tag
📃 Motivating Example

const ul = document.querySelector('ul.list');
const input = document.querySelector('.container input[type=text]');

The inferred type of ul should be HTMLUListElement instead of Element
and for input it should be HTMLInputElement not Element
💻 Use Cases

With this feature we will not need to write something like this
const input = document.querySelector('.container input[type=text]') as HTMLInputElement;

Note
In some cases, it is obviously an item type, but in other cases cannot be discovered like querySelector('.menu')

Duplicate of https://github.com/microsoft/TypeScript/issues/29037


Raw data required

My client want raw data, so how can i get the raw data in my mysql database

I am using traccar for only listening and inserting values to my server.

You can use database.saveOriginal config parameter to save original raw data.

Entry key is **database.saveOriginal ** Ok.
How i can identify the key name for raw data , and device id to insert database

Internal device id can be accessed using :deviceId parameter. Raw data is in JSON in :attributes parameter.

i am storing attributes in positions table its like {"alarm":true,"ignition":true,"status":0,"ip":"<IP_ADDRESS>"}.
But i need actual value from device.

What version of Traccar are you using?

I am using traccar-other-3.4
On 4 May 2016 at 04:16, Anton Tananaev<EMAIL_ADDRESS>wrote:

What version of Traccar are you using?
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/tananaev/traccar/issues/1914#issuecomment-216687734

--
Regards,
Kaliyugaraja M,
Software Developer,

You need to update to the latest version.

Hi , I have one doubt about traccar ., Did traccar implements
multithreading or asynchronous .,
On 5 May 2016 at 11:27, Anton Tananaev<EMAIL_ADDRESS>wrote:

You need to update to the latest version.
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/tananaev/traccar/issues/1914#issuecomment-217081799

--
Regards,
Kaliyugaraja M,
Software Developer,

I'm guessing that the question you are trying to ask is whether Traccar uses asynchronous or synchronous network calls. It uses asynchronous calls.

Is multi threading different from asynchronous or same?
If yes ,
Why traccar not implemented by multi threading ?
On 8 May 2016 at 03:19, Anton Tananaev<EMAIL_ADDRESS>wrote:

I'm guessing that the question you are trying to ask is whether Traccar
uses asynchronous or synchronous network calls. It uses asynchronous calls.
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/tananaev/traccar/issues/1914#issuecomment-217670801

--
Regards,
Kaliyugaraja M,
Software Developer,

First you asking a question, and now you are asking what your own question means. It's two different things. Traccar uses both.

Hi sir,
I have one query about traccar3.5
I   downloaded   * traccar-other-3.5 *and installed manually , In manual
installation, I created Mysql database as from the instructions , In manual
installation , traccar does not create tables automatiically.

Like this ,
Whether traccar create tables automatically in MYSQL , Or we need to create
tablees? If we need to create tables means where i will get the .sql file .
On 9 May 2016 at 15:44, Anton Tananaev<EMAIL_ADDRESS>wrote:

First you asking a question, and now you are asking what your own question
means. It's two different things. Traccar uses both.
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/tananaev/traccar/issues/1914#issuecomment-217827032

--
Regards,
Kaliyugaraja M,
Software Developer,

Traccar creates database tables automatically. I guess your config is incorrect if it doesn't.

This is my Mysql config ,
com.mysql.jdbc.Driver
jdbc:mysql://[MYIP]:3306/[MYDB]
?allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=ANSI_QUOTES
[MYUSERNAME]
[MYPASSWORD]
What i want to change , to create tables automatically
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
Virus-free.
www.avast.com
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
<#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On 26 May 2016 at 22:17, Anton Tananaev<EMAIL_ADDRESS>wrote:

Traccar creates database tables automatically. I guess your config is
incorrect if it doesn't.
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/tananaev/traccar/issues/1914#issuecomment-221928171

--
Regards,
Kaliyugaraja M,
Software Developer,

It's not full config
Instead of your ip address in the database URL, you should use localhost (unless database is on different server)
Please answer through GitHub so config can be properly formatted

##########################################################################

<!-- SERVER CONFIG -->

<entry key='web.enable'>true</entry>
<entry key='web.port'>8082</entry>
<entry key='web.path'>[WEB]</entry>

<entry key='geocoder.enable'>true</entry>
<entry key='geocoder.type'>google</entry>

<entry key='logger.enable'>true</entry>
<entry key='logger.level'>all</entry>
<entry key='logger.file'>[LOG]</entry>

<!--  PROTOCOL CONFIG -->

<!-- edited here -->

22223

############################################################################
This is my full config., And i have used localhost , But tables not created automatically..

Why have you commented out database.changelog parameter?

Hi ,
Thanks for your response , It is very  usefull for us ,
I found my mistake about create tables automatically ,
Now it create tables automatically ,
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
Virus-free.
www.avast.com
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
<#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On 27 May 2016 at 21:43, Anton Tananaev<EMAIL_ADDRESS>wrote:

Why have you commented out database.changelog parameter?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tananaev/traccar/issues/1914#issuecomment-222188639,
or mute the thread
https://github.com/notifications/unsubscribe/ASR1IrUmtJ4-jpn44mAzFIsQ3F0p-rZyks5qFxgzgaJpZM4IS6M7
.

--
Regards,
Kaliyugaraja M,
Software Developer,

Hi sir ,
I have another issue
Web ui not working , How to run it on my browsers ,
I am using centos 6 , and mysql database
Here i attached my we configuration text for web ,
<!-- SERVER CONFIG -->

<entry key='web.enable'>true</entry>
<entry key='web.port'>8082</entry>
<entry key='web.path'>/var/www/html/javaports3.5/web</entry>

<entry key='geocoder.enable'>true</entry>
<entry key='geocoder.type'>google</entry>

<entry key='logger.enable'>true</entry>
<entry key='logger.level'>all</entry>
<entry key='logger.file'>[LOG]</entry>

I extracted *traccar-other-3.5.zip *, in inside the javaports3.5 folder ,
And how config my  static IP , and run it using MY IP in browser
On 28 May 2016 at 15:56, Raja MK<EMAIL_ADDRESS>wrote:

Hi ,
Thanks for your response , It is very  usefull for us ,
I found my mistake about create tables automatically ,
Now it create tables automatically ,
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Virus-free.
www.avast.com
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
<#m_-2924198831640296341_DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On 27 May 2016 at 21:43, Anton Tananaev<EMAIL_ADDRESS>wrote:

Why have you commented out database.changelog parameter?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tananaev/traccar/issues/1914#issuecomment-222188639,
or mute the thread
https://github.com/notifications/unsubscribe/ASR1IrUmtJ4-jpn44mAzFIsQ3F0p-rZyks5qFxgzgaJpZM4IS6M7
.

--
Regards,
Kaliyugaraja M,
Software Developer,

--
Regards,
Kaliyugaraja M,
Software Developer,

Why are you not using Linux installer? Also, please reply through GitHub.

I need to customise the traccar , If i will use installer means how i will change . Manual installation means I can customise . So that i am using traccar-other-3.5.zip

What exactly do you need to customize? You can just replace files after installation same as with "other" version.

Hi sir ,
Can you tell me what is the maximum number of vehicles i can connect to a
single port using TRACCAR.
On 30 May 2016 at 16:49, Anton Tananaev<EMAIL_ADDRESS>wrote:

What exactly do you need to customize? You can just replace files after
installation same as with "other" version.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/tananaev/traccar/issues/1914#issuecomment-222471051,
or mute the thread
https://github.com/notifications/unsubscribe/ASR1IpY-AfckBHMRL_Y_Vxlu-BlM69hUks5qGsfFgaJpZM4IS6M7
.

--
Regards,
Kaliyugaraja M,
Software Developer,

There is no limit. Traccar has been tested with 100k devices and more.

All questions answered. Issue can be closed.


Screen shot link in the readme is broken

I'd like to add this to awesome-zsh-plugins, but I prefer to add themes with screen shots so that users can see what they look like without having to install them, and the screen shot link in this repo is 404.
Thanks!

Thanks for this. Yes, the documentation is in a very poor state. I’ll try to get to that in the coming weeks and I’ll let you know when I do.


causes link type not getting mapped in ADO

How should we map causes and is caused by link types in tool v3.0.328 ?
tried mapping:
{
"source": "causes",
"target": "System.LinkTypes.Related"
},
{
"source": "is caused by",
"target": "System.LinkTypes.Related"
}
but not getting mapped as Related in ADO. No links are established in ADO with the above mapping. @Alexander-Hjelm please give a check.

You can find link type references for Azure DevOps here: https://learn.microsoft.com/en-us/azure/devops/boards/queries/link-type-reference?view=azure-devops
Causes/Is Caused By seem to be custom link types? In that case you need to specify the Link type Name. Check the spelling/casing maybe.


Disable logfile / different logfile-path

It is possible to prevent writing a logfile (/log) or to set a different path to the actually path?
Problem: mustang is called from different subdirectories and is writing in each directory /log.
Kind regards!

hi, duplicate of #215 , so far I failed to implement at least the possibility to disable file log output, help is very much appreciated.


parse GOAWAY error responses from Apple

Thanks to @bradfitz for his work on  x/net/http2.
https://github.com/golang/go/issues/14627
fixes #33.

[ ] waiting for this CL: https://go-review.googlesource.com/#/c/24600/
(though it seems to be only getting one GOAWAY with these changes)

need latest http2: go get -u golang.org/x/net/http2

Nice looks good, Could you add a test for the GOAWAY case to service_test.go ? other than that LGTM

This is the GoAwayError from actually hitting Apple:
http2.GoAwayError{LastStreamID:0x0, ErrCode:0x0, DebugData:"{\"reason\":\"BadCertificateEnvironment\"}"}

I'm not sure how to get that to return from an http handler though. Any ideas?

I'm looking at https://github.com/golang/net/blob/master/http2/transport_test.go#L2028 to see if I can write a test for this.

Right now httptest.NewServer reports HTTP/1.1 for handlers.

my comment on the PR assumed you could use httptest one of my favorite features of go. I now see it’s so much more then I thought to be able to test this. If the Framer.WriteGoAway approach becomes to cumbersome, I’m okay with logging a issue and revisiting once httptest supports http/2


xlnet for Quora Questions Dataset

Hello,
I saw in Papers with code website, xlnet accuracy on Quora question pairs is 90.3%.
Any has the code of apply xlnet on Quora dataset?
https://paperswithcode.com/paper/xlnet-generalized-autoregressive-pretraining
Thanks,

This is similar to MNLI. You can just write a QQP processor similar to the MNLI processor with custom data loading. See run_classifier.py.


[4.0][Possible BUG] upload_multiple - not clearing deleted images

Bug report
$files_to_clear = request()->get('clear_'.$attribute_name);
returns null when you remove uploaded file.

Does it happen in 4.1 too? I know I tacked this or merged something about this at some point...

Going to test it. I am sure we merged something for browse_multiple #2400 , not sure about upload_multiple. I will give it a go in a second, just installing clean branches of 4.1 :)

maybe i'm mistaken but Laravel returns it as null with when an item is returned emptied. I believe that was intentional with Backpack so you can write code to delete a file from storage (from whatever provider used?) Maybe I missed something? but that seems logical based on past information from Laravel and Backpack.

@AbbyJanke thanks for pitching.
I don't think in this scenario that is the case. The clear_attribute should be populated with the image name you deleted.
From HasUploadFields.php trait:
$files_to_clear = request()->get('clear_'.$attribute_name);

        // if a file has been marked for removal,
        // delete it from the disk and from the db
        if ($files_to_clear) {
            foreach ($files_to_clear as $key => $filename) {
                \Storage::disk($disk)->delete($filename);
                $attribute_value = Arr::where($attribute_value, function ($value, $key) use ($filename) {
                    return $value != $filename;
                });
            }
        }

I ** COULD NOT ** reproduce this in 4.1
Going to close AFAIK it's not a bug.

Yeah don't worry about it @pxpm . Sometimes people post bug reports that aren't actually bugs, but implementation problems - happens to us all, easier to shift the blade on the software. Who is this @pxpm guy anyway, who posted the bug report?! Screw him.

I also hate this guys that open "possible bug reports" too .. they are just ... meh! hehehe :smile:
Cheers \o


Update EntryForm.tsx

fixes #1495
Auto Saving timesheet data to localstorage

added saveFormDataToLocalStorage  and loadFormDataFromLocalStorage functions
on reload get form data from localstorage (using useEffect)

@Labhk Please watch the loom video to understand the exact requirements of this feature.
https://www.loom.com/share/bb2907fec1264066ba38299aa46c9a39
cc @prasanthchaduvula

@Labhk Are you still working on this? Let me know if you need any help.

Closing this PR. @supriya3105


How to use jfrog cli set properties with filename include #

Sorry.
I have a problem with jfrog cli set properties with filename include #.
My command is:
jfrog rt sp "snapshot/feature/abcd/efg#_8.90_ddd.apk" "zone=zone"
but it return 400 bad request.
Can anyone help,thanks a lot.

Following the official document, I can't find answer.

Hi @Tizeen ,
Thank you for reporting this issue.
Version 1.38.0 was recently and includes a fix for this issue.
We'd appreciate your feedback for it.

@RobiNino
Thx~


retriever is racy

That is when you have a listview where for each item you are trying to fetch album art, if queries are done simulatniously, multiple items will eventaually receive same data.
I created a repro for this, see #10

well that's quite a duplicate of #4


coordinator: ensure hijickRoute's gw is from hostIPRouteForPod

Thanks for contributing!

What type of PR is this?

release/bug

What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes https://github.com/spidernet-io/spiderpool/issues/3362
Special notes for your reviewer:

fix the CI

https://github.com/spidernet-io/spiderpool/actions/runs/8735757494/job/24019520013?pr=3365 is an unexpected fail, Please merge this by force.


Using this for Next JS app and costs?

Hi, I'm wondering if using this to deploy next js apps entirely on lambda will incur more costs than deploying static on s3 then using only lambda for server functions. It's much more difficult to do so the other way, but in my case I need the cost to be on the lower side. Thanks.

Hosting Next.js apps on Lambda (with function url or api gateway) is the bare minimum setup.
Most of the time, you will put a CDN (such as CloudFront) in front of the Lambda function, and setup a cache behavior to cache the static assets. CDN will reduce the requests to the lambda function by caching the static files.
Furthur more, you could copy the static assets to a s3 bucket using CI/CD pipeline when you deploy new versions, and configure the CDN to serve static assets from the s3 bucket. In this setup, all requests for static assets won't hit the lambda function.
You can choose the most suitable setup/architecture for your application.

Thank you for the advice. It sounds like a good idea to use s3 for static assets. If you're familiar with Next JS, if I deploy my app with lambda, and upload the static folder to s3, I'm assuming that if there's something that's not statically generated, it will access the lambda resource? Like if a server component doesn't exist in the static build, it will automatically use the lambda because the page or api route doesn't exist on the static? I'm essentially thinking deploy static to s3 and the entire app to lambda, and whatever doesn't exist on s3 will go to the lambda.

Here is an example of that solution.

That seems like a great example, thank you for showing me that. I'm trying to use this to deploy from GitHub automatically, and as a learning experience.


[doc] v1.4.0 build doc outdated

make returns error: make: *** No targets specified and no makefile found.  Stop.

Hi @elvizlai, thank you for pointing that out. Can you try what is in https://github.com/tembo-io/pgmq/pull/292 and see if that resolves the problem?

Opps, that not work.
maybe should following ci:
https://github.com/tembo-io/pgmq/blob/main/.github/workflows/extension_ci.yml#L60-L80

Do you still get the same error make: *** No targets specified and no makefile found.  Stop. when you run from within pgmq/pgmq-extension ?
There are a few ways to install the extension (make, trunk, pgxn) but IMO make is the most straight forward.

make result:
cp sql/pgmq.sql sql/pgmq--1.4.0.sql
sed 's/@@VERSION@@/1.4.0/g' Trunk.toml.in > Trunk.toml

is this correct?

that is correct!

thanks


break with textField

When I use the TextField, it seems bottomNavigation break and does not move.
any solution?

solution: dont use context in the tree , for example
Container(
width: MediaQuery.of(context).size.width
),


Ambiguous error

If I set
const options = {
  url: "http://example.com"
}
request(options, callback)

it fails with (from url.parse):
TypeError: Parameter "url" must be a string, not undefined

Which is a little bit confusing at the beginning (if you don't read the docs 😛)
Do you think it can support options.uri || options.url to avoid confusions?

I can't remember the exact reason I didn't support both, possibly trying to emulate how another library works... either way it doesn't seem that important anymore, I'd definitely consider a PR that added the url alias to options ;P


Add pre-commit hook to enforce file mode permissions

It's common when working in a collaborative environment to have individuals who have not configured their editors to save files with appropriate default file permissions. Usually this manifests itself as source files being committed that have unnecessary execute permissions.
It would be nice to have a FileMode pre-commit hook that allows you to enforce certain permissions for files matching specified glob patterns, e.g.
PreCommit:
  FileMode:
    enabled: true
    mode:
      0644: '**/*rb'
      0755: 'bin/*'

Some unknowns here are how to deal with overlapping globs (is the first match the one that is enforced?), and how this plays out on Windows (which IIRC all files are executable). Leaving this here for comments.

Not sure what to do here for Windows, but I think enforcing the first match makes sense. That said, won't the config be parsed into a hash? Is key order preserved here?

Yes, Ruby uses an ordered hash implementation so that insertion order of keys is preserved. https://www.igvita.com/2009/02/04/ruby-19-internals-ordered-hash/
Digging a bit deeper, it looks like the only permissions git actually tracks is execute permissions (http://blog.lesc.se/2011/11/how-to-change-file-premissions-in-git.html). Your system's umask determines the default file permissions otherwise.
Thus a better name for such a hook is probably ExecutePermissions, since git doesn't actually control any other permissions.
This also presents an interesting question: since (I assume) configuring default file permissions for Windows is a pain, would it make sense for this hook to manually update the permissions based on your settings? For example, git update-index --chmod=+x <file> sets the execute permission in git's index, so we could run that on pre-commit and stage those changes before committing. This would be the first pre-commit hook to stage additional files on your behalf, but I think in this case it would make sense.

Could be useful, though we'd have to make it painfully clear that the hook actually modifies file permissions in the index, rather than just checking them.

would it make sense for this hook to manually update the permissions based on your settings?

I'm not a big fan of hooks making changes automatically. It seems safest to just tell people what is wrong and let them decide how to resolve it.

Implemented in 526a3709e6e667eef3f328493401e6ec7d9bf309. This will not touch the index (since that's not yet possible with pre-commit hooks), and is not enabled by default.


Support for Library Override Control rigs

There is a workaround for now but would be great to have direct support:
The ability to use the retargeter on a Linked Rig that is set to Library override.
Thanks.

Ouch, it feels I never worked with Library override yet. So, would you mind explain what you mean a bit further by providing your example and/or link to a tutorial or so.
Actually, I'm not an experienced Blender user. I'm just loving linear algebra and such a stuff)


Implement strategy for assessing the quality of the model during lifelong training

As we are adding more contrasts and re-training the model overtime (see eg: #83, #74, https://github.com/ivadomed/canproco/issues/46), we need to put in place a quality check assessment of model performance shift across various data domains (ie: monitor catastrophic forgetting).

one idea of validation is to compute the CSA variation across contrasts from the test set of the spine generic data

with each new release adding more contrasts and datasets, we observed a disturbing upward trend in absolute csa error across all the deployed models, suggesting that the drift is way too high and the model is losing in "contrast-agnostic"-ness in some sense.

 abs. csa error drift across deployed models

The no. 1 suspicion is the dataset imbalance created by an unusually high number of T2w and T2star images in the training set of the later models (i.e. v2.4, v2.5 etc)
Next step:

[ ] create a balanced dataset with similar number of images for each contrast

I created a balanced version of the aggregated dataset. Below are the details and the splits. Each contrast now has approximately 150 images (a hard-coded value after looking at how many total number of images each contrast has). Except for a few contrasts (e.g. STIR) all contrasts have at least 150 images.

 balanced dataset statistics
SPLITS ACROSS DIFFERENT CONTRASTS (n=11):

| contrast   |   train |   validation |   test |   #images_per_contrast |
|:-----------|--------:|-------------:|-------:|-----------------------:|
| dwi        |     150 |          102 |      0 |                    252 |
| mt-off     |     146 |           97 |      0 |                    243 |
| mt-on      |     150 |           98 |      0 |                    248 |
| part-mag   |     122 |           54 |      0 |                    176 |
| psir       |     150 |           96 |      0 |                    246 |
| stir       |      57 |           32 |      0 |                     89 |
| t1map      |      61 |           27 |      0 |                     88 |
| t1w        |     150 |          127 |      0 |                    277 |
| t2star     |     150 |          150 |    116 |                    416 |
| t2w        |     150 |          150 |    150 |                    450 |
| unit1      |     132 |           59 |      0 |                    191 |
| TOTAL      |    1418 |          992 |    266 |                   2676 |

CONTRAST-WISE PATHOLOGY SPLIT (a subject can have multiple contrasts):
includes train/val/test images

|          |   MS |   HC |   RIS |   RRMS |   PPMS |   DCM |   SPMS |   SCI |   ALS |   SYR |   NMO |   #total_per_contrast |
|:---------|-----:|-----:|------:|-------:|-------:|------:|-------:|------:|------:|------:|------:|----------------------:|
| dwi      |    1 |  173 |     0 |      0 |      0 |    68 |      0 |     4 |     5 |     1 |     0 |                   252 |
| mt-off   |    0 |  184 |     0 |      0 |      0 |    59 |      0 |     0 |     0 |     0 |     0 |                   243 |
| mt-on    |    0 |  179 |     0 |      0 |      0 |    65 |      0 |     0 |     4 |     0 |     0 |                   248 |
| part-mag |    0 |    0 |     0 |    138 |     10 |     0 |     28 |     0 |     0 |     0 |     0 |                   176 |
| psir     |    0 |   29 |    40 |    146 |     31 |     0 |      0 |     0 |     0 |     0 |     0 |                   246 |
| stir     |    0 |   10 |     7 |     56 |     16 |     0 |      0 |     0 |     0 |     0 |     0 |                    89 |
| t1map    |    0 |    0 |     0 |     69 |      5 |     0 |     14 |     0 |     0 |     0 |     0 |                    88 |
| t1w      |   17 |  204 |     0 |      0 |      0 |    43 |      0 |     0 |     0 |     1 |    12 |                   277 |
| t2star   |  207 |  125 |     0 |      0 |      0 |    67 |      0 |     2 |    14 |     1 |     0 |                   416 |
| t2w      |  119 |   75 |    12 |     54 |     14 |   109 |      0 |    62 |     5 |     0 |     0 |                   450 |
| unit1    |   50 |   53 |     0 |     69 |      5 |     0 |     14 |     0 |     0 |     0 |     0 |                   191 |
| TOTAL    |  394 | 1032 |    59 |    532 |     81 |   411 |     56 |    68 |    28 |     3 |    12 |                  2676 |

Next step:

[ ] train a model on the balanced dataset, compute abs. csa error, compare with deployed models

Something interesting happened -- it seems that an imbalance in the no. of images per contrast in the aggregated dataset is not causing the CSA drift.

 abs. csa error plot deployed models vs balanced model

 csa error per contrast for the balanced model

Note the per-contrast CSA errors are high for T2star, DWI and MToff (GRE-T1w) contrasts, but in the previous comment, we see from the dataset statistics these contrasts have 150 images each in the training set.
I am wondering if any of the new contrasts added to the training set (after the original 6 contrasts in contrast-agnostic v2.0) are negatively impacting the performance on the remaining contrasts.

interesting investigation! Do you have the aboslute CSA error per contrast for each model version?

yes!

 csa error per contrast for the balanced model

 csa error per contrast for the v20 model

 csa error per contrast for the v21 model

 csa error per contrast for the v23 model

 csa error per contrast for the v24 model

 csa error per contrast for the v25 model

nice! why in v2.5 DWI has a lower error than in the balanced? (3.39 mm2 vs 12.34)

Figuring that the "dataset imbalancement" is not the only problem, I trained another model with only DCM pathology data and 1 new contrast (more like how model v2.3 was trained).

 csa error per contrast for the balanced model trained on spine-generic, UNIT1, dcm datasets

 abs csa error plot

It turns out that the per contrast error is still high for a few contrast despite not seeing several new contrasts. This makes me wonder if adding new contrasts is not the problem but maybe, in this case, too much compressed cords in the data is a problem?


[Rendering] Adaptive Card Image Not opening for the First time

Target Platforms
Other
SDK Version
1.2
Application Name
Microsoft Teams
Problem Description
I'm Sending an Adaptive Image over the Adaptive Card

Our Images are stored in Azure Blob Storage(Hot access)
Image Size is Less than 1 Mb
Before initializing the Adaptive Card we sent Images using Attachment

The issue is once the user clicks on the enlarge option on the adaptive card bot is not responding, the user has to go to another chat/app again come back and click on the adaptive card.
Screenshots
No response
Card JSON
{
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.2",
    "body": [
        {
            "type": "Image",
            "msTeams": {
                "allowExpand": true
            },
            "horizontalAlignment": "Center",
            "spacing": "Padding",
            "url": ""
        }
    ]
}

Sample Code Language
C#
Sample Code
public  static Attachment ImageCard(string pathURL)
{
var imageCard = new AdaptiveCard("1.5");
        var msteamsProp = new MsTeamsObject()
        {
            AllowExpand = true
        };
        SerializableDictionary<string, object> msteams = new SerializableDictionary<string, object>();
        msteams.Add("msteams", msteamsProp);

        imageCard.Body.Add(new AdaptiveImage()
        {
            Url = new Uri(pathURL),

            AdditionalProperties = msteams
        });
        return  new Attachment()
        {
            ContentType = AdaptiveCard.ContentType,
            Content = imageCard
        };
    }

This issue has been copied over to Microsoft Teams repo here: https://github.com/MicrosoftDocs/msteams-docs/issues/4736


Care set command family

Coverage remained the same when pulling 53f9b1bf16c4932a7c303f1d00cb0c93e56016cb on care-setlocal into 92a6bc2e6882de719b99ae8a280a97586325cdc4 on master.


Update canary response

Making this more specific means that it's quicker for us to diagnose where this response is coming from compared to if it's just "OK".
We were seeing this response recently and nobody knew immediately that it was coming from the mirrors. We'd have a much better chance of figuring that out if this was the response.
I don't know of anywhere that we monitoring this response (maybe Pingdom?) but that will need updating when this is deployed.

:+1:


Update README, Multi-GPU params

The param should rather be 1 than True for hparams distributed_run and fp16_run
since parse_bool from tensorflow returns return bool(int(value))
int("True") raises a Value error

This was resolved in TensorFlow v1.3.0: https://github.com/tensorflow/tensorflow/commit/1f818986756529517340e9b8896022c07640150b


WIP: update console to support creating new prompts after executing a cell.

This PR:

updates the output cell style for the console
allows execution of a line to result in output and then creation of a new prompt
fixes a bug that caused an error when trying to run an empty code cell

cc: @ellisonbg @jasongrout @blink1073 @sccolbert @dwillmer
re: https://github.com/jupyter/jupyter-js-notebook/issues/170

LGTM.


dzsave_buffer Question

* @method string dzsave_buffer(array $options = []) Save image to dz buffer.
This intrigues me! I simply do not know what to do with it tho.
$blob = $image->dzsave_buffer(['layout' => 'zoomify'])
Can I do that? If I do, what really ends up in the blob? All the individual tiles?
It would be downright epic and awesome if I could do something such as:
$this->tarStream = new TarStreamer(
  | ['outstream' => fopen('s3://my-bucket/zoomify.tar', 'w')]
  | );

$this->tarStream->fromBuffer($image->dzsave_buffer(['layout' => 'zoomify']) );

Ofcourse TarStreamer does not have a fromBuffer() method, so I would need to figure out how to read directories and files from the dzsave_buffer and add them to the TarStream if possible.

That's right, though it builds a zip rather than a tar. Just write that string to a file and you should be able to unzip it.

Does it stream the output? Or does it simply pass back one big blob?

Just a big blob at the end. But that's a problem with zip, it's not really a streamable container format.

Oh yes, that is right Zips and PDFs pft. Thanks!

This works:
$image->dzsave('/tmp/zoomified.zip', ['layout' => 'zoomify', 'container' => 'zip']);
and I get a nice zipfile.
$sourceBlob = $image->dzsave_buffer(['layout' => 'zoomify', 'container' => 'zip']);
This, however, fails with the following exception:
2017-07-06T16:58:28+0000  priority=INFO, channel="filecabinet-lambda", httpHost="CLI", transactionID="595e6c316c814", message="VipsOperation: class "dzsave_buffer" not found
"
2017-07-06T16:58:28+0000  priority=INFO, channel="filecabinet-lambda", httpHost="CLI", transactionID="595e6c316c814", message="#0 /Users/bubba/dev/stechstudio/FileCabinet-Lambda/project/vendor/jcupitt/vips/src/Image.php(685): Jcupitt\Vips\Image::errorVips()
#1 /Users/bubba/dev/stechstudio/FileCabinet-Lambda/project/vendor/jcupitt/vips/src/Image.php(1052): Jcupitt\Vips\Image::errorIsArray(-1)
#2 /Users/bubba/dev/stechstudio/FileCabinet-Lambda/project/vendor/jcupitt/vips/src/Image.php(1130): Jcupitt\Vips\Image::callBase('dzsave_buffer', Object(Jcupitt\Vips\Image), Array)
#3 /Users/bubba/dev/stechstudio/FileCabinet-Lambda/project/app/Pipeline/Pipes/ConvertImage.php(57): Jcupitt\Vips\Image->__call('dzsave_buffer', Array)
#4 /Users/bubba/dev/stechstudio/FileCabinet-Lambda/project/app/Pipeline/Pipes/ConvertImage.php(18): App\Pipeline\Pipes\ConvertImage->zoomifySource(Object(App\Models\SnsEvent))

I am not sure if I am doing it wrong, or if it is a legitimate bug. VipsOperation: class "dzsave_buffer" not found appears to indicate that it is missing from the extension? Should I open a separate bug report if it is a bug?

Which libvips are you using? It's a fairly new feature.

╰─ brew info vips
vips: stable 8.5.6 (bottled)
Image processing library
https://github.com/jcupitt/libvips
/usr/local/Cellar/vips/8.4.5 (175 files, 12.5MB) *
Poured from bottle on 2017-04-04 at 10:36:20
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/vips.rb

Well pft ... I suppose I just assumed my brew was up to date. That was definitely the issue.


Add non-modal mode for CoreBottomSheetLayout.

Sometimes you need non-modal bottom sheets, for example to interact with Google Maps while the bottom sheet is opened. Like in this library.

Cool! Thanks for the contribution!

Sorry but are there some further updates for the problems we discussed above?

Sorry but are there some further updates for the problems we discussed above?

Are we discussed any? My last message in this thread is "Cool! Thanks for the contribution" :)

Are you on the GitHub Web? I am not sure if you can see the review comments somewhere else.

Are you on the GitHub Web? I am not sure if you can see the review comments somewhere else.

Yes, I'm on GitHub web, and i literraly have zero review comments.

So sorry, I didn't hit the finish review button.

Landed in v0.6.0-alpha05!
https://github.com/dokar3/sheets/releases/tag/v0.6.0-alpha05


Change URL length documentation, to max 17 bytes

UriBeacons supported an 18 byte payloads for uri length, but the EddyStone-URL frame type supports 17.
The documentation currently mentions URL length should be in the 0-18 range, implying 18 is inclusive.  Change the docs to say 0-17.

Out of curiosity, what's the reason for the length limitation in URLs? I understand that very long URLs could cause issues and that URL shorteners are available to sidestep this. But the length today feels rather short.

This is entirely motivated by the fixed size of the BLE ad packet. We just don't have any more room than that. BLE 5.0 has  much larger ad packets so we hope when that lands (in about a year) that will give the flexibility you'd like.

Very exciting, and thanks for the quick reply!
When BLE 5.0 arrives, will a firmware update allow today's beacons to
update to the longer BLA ad packet?
On Mon, Nov 23, 2015 at 4:28 PM, scottjenson<EMAIL_ADDRESS>wrote:

This is entirely motivated by the fixed size of the BLE ad packet. We just
don't have any more room than that. BLE 5.0 has much larger ad packets so
we hope when that lands (in about a year) that will give the flexibility
you'd like.
—
Reply to this email directly or view it on GitHub
https://github.com/google/eddystone/pull/10#issuecomment-159113165.

--
Caleb
571-228-8011

Not clear. My guess is that there are range of things that are just firmware and some that are hardware. Hopefully the the update only features will be a viable subset.


Add bson::UtcDateTime support

Simple support for bson::UtcDateTime as scalar.

Thank you very much for you PR.


Add sample code to playground and README with build directions

Suggestions welcome to make the code even more horrible/interesting/exercise more of dejavu's features. I hope to keep the birbs though.

:+1: I went ahead and expanded the README a bit and merged this, not sure how tell this PR about that other than to close it. :)


[Epic] OSS solution for benchmarking infra

Can someone add more context to this issue? We already have several forms of benchmarking infrastructure, all "OSS" (that's redundant on GitHub).


Fix for "GVRScene.clear() removes the camera rig's scene objects"

Should fix https://github.com/Samsung/GearVRf/issues/511; verified using the remote-scripting sample; added a cursor, cleared, added a cursor back.

Looks good.

We'll have to discuss this in person tomorrow as I can't quite formulate an answer. What I did in the remote scripting sample testing-wise was: add the cursor, call clear, add the cursor again. Without this fix the cursor would never show up, with this fix it shows up.

yeah, I think talking in person will be faster.  sounds like it accomplishes what I was looking for.

took a closer look.  calling clear() is only removing the camera rig owner object, which you add back in afterwards.  ok, this looks good and is also cleaner than looking for specially named objects.


O365CompatibilityChecker & MFA?

Are there any plans to update the O365CompatibilityChecker to support MFA?

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

ID: 66ace7ce-d26f-68d0-2206-525acc513322
Version Independent ID: 19e8d325-8074-2878-b864-cf0802e23cb0
Content: Determine if Centralized Deployment of add-ins works for your organization - Microsoft 365 admin
Content Source: microsoft-365/admin/manage/centralized-deployment-of-add-ins.md
Service: o365-administration
GitHub Login: @Sirkkuw
Microsoft Alias: sirkkuw

@PiKappZ746 - Thank you for submitting feedback.
I will get this issue over to the Microsoft 365 writing team for investigation.
Thank you for reporting and making the docs better. Much appreciated.
I made a note to request the team to update this when the work is complete.

@Sirkkuw - Can you please share your insights on this issue?
Thank you.
cc: @kenwith

I just attempted to use this module and also noticed that MFA is not supported.  It appears to only allow basic authentication.

I am following up with PG.

The answer from the product group is: MFA is not currently supported.
The plan to implement the support is added to the product backlog pipeline


[question] not support set dictionary in last version?

after update to last version, set dictionary+=xx.dict  can't work, set dict file in setup can work.
Is this a bug? Or will it only support write in setup?

All settings have been moved to setup.


spyder light crashes

From<EMAIL_ADDRESS>on 2011-04-18T07:27:15Z
What steps will reproduce the problem?
1.open the python(x,y) home dialog
2.select Spyder --light
3.press the button to start it What is the expected output? What do you see instead? The dialog "Spyder crashed during last session" appears.
Please provide any additional information below
. spyder_crash.log contains:
Traceback (most recent call last):
File "C:\Python26\lib\site-packages\spyderlib\spyder.py", line 1525, in main
mainwindow = run_spyder(app, options)
File "C:\Python26\lib\site-packages\spyderlib\spyder.py", line 1461, in run_spyder
main.setup()
File "C:\Python26\lib\site-packages\spyderlib\spyder.py", line 773, in setup
self.setup_layout(default=False)
File "C:\Python26\lib\site-packages\spyderlib\spyder.py", line 799, in setup_layout
is_maximized =  get_func('main', prefix+'is_maximized')
File "C:\Python26\lib\site-packages\spyderlib\userconfig.py", line 238, in get
raise RuntimeError("Unknown option %r" % option)
RuntimeError: Unknown option 'lightwindow/is_maximized'
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=630

From pierre.raybaut on 2011-04-20T13:21:14Z
This issue was closed by revision 81349f7afd69 .
Status: Fixed

From pierre.raybaut on 2011-04-24T07:38:52Z
This issue was closed by revision d559253cf944 .

From pierre.raybaut on 2011-04-20T13:21:14Z
This issue was closed by revision d559253cf944 .


Add sessions middleware for Hertz

Hi~I want to try this!

Hi~ I am wondering how it's going? Do you encounter any difficulties? You may join our Feishu Chat Group to discuss more details about this task.

The assignee of this issue has been reset.

I want to continue the left work. could you assign it to me ?

@brotherlu-xcq well done!

Hi~ I am wondering how it's going? Do you encounter any difficulties? You may join our Feishu Chat Group to discuss more details about this task. @brotherlu-xcq


add support for ad-hoc "eval" transforms

Please prioritize, @jmakeig

From https://github.com/marklogic/data-movement/issues/75

@sammefford, do you remember any more details on this? Is it the ability to specify a transformation at runtime and not have to pre-load it?

yeah, that's all it is


Add prodigy_to_tsv command

Similar to https://github.com/wellcometrust/WellcomeML/pull/12 (though not depending on it) this PR adds the  prodigy_to_tsv command which allows you to convert prodigy format jsonl files into tab separated values (tsv) files with each token and annotation represented on one line: e.g.:
11	o
.	o
	o
Betel	b-r
-	i-r
quid	i-r
and	i-r
areca	i-r
-	i-r
nut	i-r

Moved to https://github.com/wellcometrust/deep_reference_parser/pull/5


Compiler assertion failure with intrinsic structs

While it's reasonable to disallow types like Pointer and MaybePointer from being embedded in something, it currently causes a failed assertion rather than an error in the compiler. It might be worth making this sort of limitation clearer with an error message for those who might be exploring the language.
Example code which reproduces the assertion crash:
struct Ok

class Whoops
  embed ok: Ok = Ok
  embed not_ok: Pointer[None] = Pointer[None]
  embed also_not_ok: MaybePointer[Ok] = MaybePointer[Ok](Ok)

actor Main
  new create(env: Env) =>
    Whoops

This should indeed result in a compiler error. In pass_flatten in pass/flatten.c, instead of accepting all embedded structs, we should check whether the struct is Pointer or MaybePointer and reject accordingly. Checking the name of the type is sufficient, as user packages cannot contain types with names identical to builtin types.

First time contributor 🙂
Could you please tell me the api to use which could be used to find the type of the embed ?
I tried the following
-ast_type(type)
-ast_type(ast)
-ast_name(type)
-ast_name(ast)
but it asserts out
I tried to find the filed which would have the type info using lldb
Following is the output for field embed not_ok
(lldb) p *$17
(ast_t) $18 = {
t = 0x000000010b192f80
symtab = 0x0000000000000000
data = 0x000000010b601b40
parent = 0x000000010b192ec0
child = 0x000000010b0a9a40
sibling = 0x000000010b18e600
annotation_type = 0x0000000000000000 <--- since null ast_type asserts
flags = 6
frozen = false
}
(lldb) p $18.t
(token_t *) $19 = 0x000000010b192f80
(lldb) p *$19
(token_t) $20 = {
id = TK_NOMINAL
source = 0x000000010b194120
line = 5
pos = 17
printed = 0x0000000000000000  ast_name asserts for this one
= {
= (string = , str_length = 0)
real = 0
integer = (low = 0, high = 0)
}
frozen = false
}
Maybe i am not doing it right 🙂
Any hints ? 🙂

@aravind-kumar For reference, you can use the ast_print function in a debugger to print an AST in a human-readable form. The function takes an AST to print and a maximum width for the printed text.
A nominal AST has the following structure:

Base node (TK_NOMINAL)

Package ID
Type name
Type arguments
Capability

The name is the child node at index 1, which you can access with the ast_childidx function. You then need to retrieve the string associated to the AST with ast_name function, and compare that string to "Pointer" and "MaybePointer".
These are the detailed steps to give you an idea of what the AST looks like and how to examine it, but there are some convenience functions to do these checks, is_pointer and is_maybe. So the most straightforward check would be to error if either is_pointer(type) or is_maybe(type) return true.

Thank you so much 👍
Works like a charm 🙂


Group Report Tab improvements

Polish and add more features to the group report tab
Closes #32
Closes #31
Closes #328
Closes #284

Closes #83
Closes #268


Improve client-side error messaging

Play with the code, break the code. Assess the error messaging that comes out. Improve the error messages. Try- except at high level; pre-validation of input. Pre-validation of input means that we protect the backend from undefined behaviour.

Related - when launch_fluent fails, we should notify the launch path and launcher arguments with which Fluent was attempted to launch

Another example is solver.rpvar()
We could add allowed_values method for this


[Report Page] Fix bugs in validate names

Description
Discovered a typo and a null error bug in validate_names when switching to older pipeline runs for a sample.
The new report page should no longer error if the sample contains a species without a name; it should now display Non-Species-Specific Reads In Genus >genus name/taxid< as expected.
Tests

Verified that report page does not error if a species has a missing name.

I'll make a note to add test cases for missing names!


Homepage post

#71
Added post widget in home page
Add caption and image works ,
but i didn't do the post handling when
Screenshots

Hey, @Rohitha-pudu  Please fix this deployment issue :

Hey @Rohitha-pudu  none of the features are not working i think this feature is not useful so I am closing this pr please work on other issue if you found


Cannot start React Server website

This was introduced by a change in Asini version. It's not clear to me if it's an Asini bug or if we need to update the instructions to start the service.
Reproduction

Follow the instructions in the react-server-website README:

$ git clone git@github.com:redfin/react-server.git
$ cd react-server
$ npm run bootstrap
$ cd packages/react-server-website
$ npm run build-assets

Bug
$ npm run build-assets

><EMAIL_ADDRESS>build-assets /Users/david.alber/tmp/rstest/react-server/packages/react-server-we$
site
> npm run docs && NODE_ENV=production react-server compile

><EMAIL_ADDRESS>docs /Users/david.alber/tmp/rstest/react-server/packages/react-server-website
> docco -o docs ./components/*.js ./lib/*.js ./middleware/*.js ./pages/*.js *.js && node build-dir-contents.js

sh: docco: command not found

npm ERR! Darwin 15.6.0
npm ERR! argv "/Users/david.alber/.nvm/versions/node/v6.9.4/bin/node" "/Users/david.alber/.nvm/versions/node/v6.9.4/bin/npm" "run" "docs"
npm ERR! node v6.9.4
npm ERR! npm  v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR<EMAIL_ADDRESS>docs: `docco -o docs ./components/*.js ./lib/*.js ./middleware/*.js ./pages/*.js *.js && node build-dir-contents.js`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>docs script 'docco -o docs ./components/*.js ./lib/*.js ./middleware/*.js ./pages/*.js *.js && node build-dir-contents.js'.

This was introduced in 7f11ef17d6acd7d2fc1fba960f28b2d7c1f70447.

As a workaround, if you run asini bootstrap again, it will link the hoisted docco package.

@davidalber I submitted a PR to asini (https://github.com/asini/asini/pull/80) which fixes this issue.  Once a new version of asini is published, we can upgrade our dependency to use that and you'll be good.

Thanks, @drewpc!


Keep Caret in same line as the last selected item instead of pushing to the next line

Pushing the caret to the next line after making a selection cause space to be wasted.

this is a duplicate of https://github.com/valor-software/ng2-select/issues/746


Atom won't launch from the terminal in OSX 10.9.3.

Atom won't launch from the terminal in OSX 10.9.3. Here is the output:

@hminaya Thanks for reporting this issue: unfortunately it hasn't received attention for a while; have you experienced this issue again or it works for you now?
Thank you :smile_cat:

Gonna close this out now - please feel free to reopen / comment if you can reproduce this with the latest version of Atom (0.210.0)


fix resolve hostname in DNS cache before passing to brpc

Proposed changes
Currently brpc does not support resloving IPv6 hostnames, errors will be returned on brpc::Channel::Init.
The brpc client cache may return nullptr on its get_client or get_new_client_no_cache APIs.
This PR made the following changes:

Resolve hostnames from DNS cache before passing it to brpc.


Workflow.png not needed anymore?

Since the 'community workflow' doc has been deleted, shouldn't we also delete the workflow png?

@jhepkema Yes 👍 please do this in your PR #11.

Will do after I'm back from work :)


First launch crash when clicking on Release tab (reported by Bartlomiej Gorny)

Report:
In preferences, an attempt to switch to "Releases" tab immediately terminates the application (this is true only at the beginning, once the tab has been accessed through "Download and install release" then it works).

closing out - pending confirmation


fix for issue #164

fix for: resize doesn't work for IE11 on win10 and win7

@xieziyu can you merge this fix please ?

@LiorSaadon
Thanks. Did you test the case if we don't handle the event when 'mouseout' or 'mouseleave' in IE?

The problem was as i started to drag for resize on IE11 "mouseleave" was triggered and canceled my resize attempt.
After my fix it works very good, as i tested it on IE11 with windows 10 and IE11 with windows 7.
The resize stops when "mouseup" event is triggered.


copr: add instr

Signed-off-by: wangggong<EMAIL_ADDRESS>
What problem does this PR solve?
Issue Number: #9016
Problem Summary:
What is changed and how it works?
What's Changed:
Related changes

PR to update pingcap/docs/pingcap/docs-cn:
PR to update pingcap/tidb-ansible:
Need to cherry-pick to the release branch

Check List
Tests

Unit test

Side effects
Release note
No release note.

/cc @Xuanwo @skyzh

By the way, I think implementation of instr_utf8 is wrong. It always convert string to lowercase. If you are interested in that, you may also help propose a fix. FYI, https://github.com/pingcap/tidb/blob/master/expression/builtin_string.go#L3758

/merge

/merge

/merge

/merge

/merge

You only need to trigger /merge once, and if the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.


UMX with flac output

🐛 Bug

To Reproduce
Steps to reproduce the behavior:

Expected behavior

Environment
Please add some information about your environment

PyTorch Version (e.g., 1.2):
OS (e.g., Linux):
torchaudio loader (y/n):
Python version:
CUDA/cuDNN version:
Any other relevant information:

If unsure you can paste the output from the pytorch environment collection script
(or fill out the checklist below manually).
You can get that script and run it with:
wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py

Additional context

I had asked previously about flac output options & you said ---
"this is already supported in the stempeg backend. E.g. run
umx --ext .flac --audio-backend stempeg input.wav "
I did this & it runs but the stems are not the same separation quality as the UMX 32 bit wav version & only take 1/2 the time to produce. Looking at the flac stem spectrums, they are not cutoff at 16khz also so I think this is running the older version of open-unmix with this command instead of the new UMX with larger training tables. Is this "umx --ext .flac --audio-backend stempeg input.wav " the correct command line for the new stems version as the stem separations are the same as the older Open-Unmix which I also have on my computer using Windows 10?
Thanks for your help on this, Rog

@Mixerrog I don't understand what you mean by "versions". Each version of the python package produces identical results. it all depends on the pre-trained model you are using.
umx --ext .flac --audio-backend stempeg input.wav

uses umxhq by default
you can changes this to umxl using umx --model umxl --ext .flac --audio-backend stempeg input.wav

Faroit,
I should have referred to my question about a flac output to my # 91 issue question. Since my heading at that #91 issue was "UMX-L 1.2 installation",  I thought the answer you gave me at that time "umx --ext .flac --audio-backend stempeg input.wav" was for a output from the new UMX version & that is why I used it.
Thanks for the correction.
One more thing, for the new UMX version, how do you trigger the GPU use instead of CPU use?
Rog

@Mixerrog i just released a new version of the python package.  This version will use umxl by default :-)

One more thing, for the new UMX version, how do you trigger the GPU use instead of CPU use?

GPU is used automatically when available. If its not used, you need to check your python environment and maybe install a pytorch version with gpu support (see pytorch guides)

pip install openunmix --update  did not work, got error saying "no such update: --update"
Thanks for your help, Rog

pip install openunmix --update did not work, got error saying "no such update: --update"
Thanks for your help, Rog

sorry, its upgrade not update

That installed version 1.2.1 & runs but still getting a errors of    No module named 'pywin32_bootstrap'
This is my dos command line when I run my bat file for umx --model umxl --ext .flac "audio input file" --audio-backend stempeg --outdir "output file location"
I did notice you added a progress bar but it just sets at 0% till the program ends & then jumps to 100% instead of jumping in 25% steps like the old Open-Unmix did -- could this be updated to show true progress of the program?
Here are the DOS lines I am getting below
B:\Audio Files(0000) Artists Music (Flacs)\Beatles\2009 Stereo re-masters(01) Please Please Me (2009 Stereo Remaster)>REM @echo off
B:\Audio Files(0000) Artists Music (Flacs)\Beatles\2009 Stereo re-masters(01) Please Please Me (2009 Stereo Remaster)>call C:\Users\User\Anaconda3\Scripts\activate.bat C:\Users\User\Anaconda3
Error processing line 7 of C:\Users\User\Anaconda3\lib\site-packages\pywin32.pth:
Traceback (most recent call last):
File "C:\Users\User\Anaconda3\lib\site.py", line 168, in addpackage
exec(line)
File "", line 1, in
ModuleNotFoundError: No module named 'pywin32_bootstrap'
Remainder of file ignored
(base) B:\Audio Files(0000) Artists Music (Flacs)\Beatles\2009 Stereo re-masters(01) Please Please Me (2009 Stereo Remaster)>umx --model umxl --ext .flac "B:\Audio Files(0000) Artists Music (Flacs)\Beatles\2009 Stereo re-masters(01) Please Please Me (2009 Stereo Remaster)\08 Love Me Do.flac" --audio-backend stempeg --outdir "E:\Open-Unmix UMX"
Error processing line 7 of c:\users\user\anaconda3\lib\site-packages\pywin32.pth:
Traceback (most recent call last):
File "c:\users\user\anaconda3\lib\site.py", line 168, in addpackage
exec(line)
File "", line 1, in
ModuleNotFoundError: No module named 'pywin32_bootstrap'
Remainder of file ignored
0%|                                                                                | 0/1 [00:00<?, ?it/s]Error processing line 7 of c:\users\user\anaconda3\lib\site-packages\pywin32.pth:
Traceback (most recent call last):
File "c:\users\user\anaconda3\lib\site.py", line 168, in addpackage
exec(line)
File "", line 1, in
ModuleNotFoundError: No module named 'pywin32_bootstrap'
Remainder of file ignored
Error processing line 7 of c:\users\user\anaconda3\lib\site-packages\pywin32.pth:
Error processing line 7 of c:\users\user\anaconda3\lib\site-packages\pywin32.pth:
Traceback (most recent call last):
File "c:\users\user\anaconda3\lib\site.py", line 168, in addpackage
exec(line)
File "", line 1, in
ModuleNotFoundError: No module named 'pywin32_bootstrap'
Remainder of file ignored
Traceback (most recent call last):
File "c:\users\user\anaconda3\lib\site.py", line 168, in addpackage
exec(line)
File "", line 1, in
ModuleNotFoundError: No module named 'pywin32_bootstrap'
Remainder of file ignored
Error processing line 7 of c:\users\user\anaconda3\lib\site-packages\pywin32.pth:
Traceback (most recent call last):
File "c:\users\user\anaconda3\lib\site.py", line 168, in addpackage
exec(line)
File "", line 1, in
ModuleNotFoundError: No module named 'pywin32_bootstrap'
Remainder of file ignored
100%|███████████████████████████████████████████████████████████████████████████████████| 1/1 [03:36<00:00, 216.43s/it]
Thanks for your help, Rog

@Mixerrog For your windows related error, i can't provide help... See https://stackoverflow.com/questions/58989806/anaconda-terminal-error-pywin32-bootstrap
The progress bar in the new version is one step per file now, not one per source. This is because since version 1.1.0, the model is end-to-end and we don't want to add a progress bar inside the model.forward path


Internalization of title and message

Is there any way to add internationalisation to the rendered notifications?
I was thinking something like a {key, value} bundle to be passed to the init function and this bundle should be used like a mini template to render the localized title and message.

@pinturic you are better off finding out what the preferred language of your users are and when you send out push messages you send one to all the English users then one to all the French users for instance.
You can look it up using:
var language = window.navigator.userLanguage || window.navigator.language;

You are right this could be one of the options. Bu the logic in our system that sends the notification should remain is language-agnostic delegating the rendering to the client (since already contains our language bundle).

I was thinking something like:
var push = PushNotification.init({
android: {
senderID: GCM_SENDER_ID,
forceShow: true:
messages: {
"RECEIVED": "You have received",
"NEW_ALERT: "new alert"
}
}
});
and when a message with a title: "RECEIVED 1 NEW_ALERT" is received it is rendered like "You have received 1 new alert".


Javascript heap out of memory

Steps to reproduce:

install packages required for build as described on https://github.com/influxdata/influxdb/blob/master/CONTRIBUTING.md#building-from-source in a fresh/latest ubuntu 20.04 container
git clone https://github.com/influxdata/influxdb
cd influxdb
git checkout v2.0.2
make GO111MODULE=on

Expected behavior:
Successfully compiled influx DB binaries, with default worker memory limits sufficient to compile the latest tagged release without hitting out-of-memory errors.
Actual behavior:
I get a JavaScript heap out of memory error thrown, which prevents successful make of the influxdb v2.0.2 tag.
Logfile reports that 1 worker is used with a 2048MB memory limit. It is not clear to me how/where this limit would be increased.
Environment info:

System info: Linux 5.4.0-54-generic x86_64
InfluxDB version: Attempting to compile the v2.0.2 tag
Other relevant environment details: ubuntu:20.04 container build environment with sha256:f643c72bc25212974c16f3348b3a898b1ec1eb13ec1539e10a103e6e217eb2f1

The build environment itself has plenty of free memory:
$ free
              total        used        free      shared  buff/cache   available
Mem:       65839756    14229780    32923692       11808    18686284    50895164
Swap:        999420           0      999420

Config:
None applied, trying to do a compile with default settings.
Logs:
# Using 1 worker with 2048MB memory limit
...
<s> [webpack.Progress] 93% after chunk asset optimization SourceMapDevToolPlugin 2.d6aca44244.js generate SourceMap
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

<--- Last few GCs --->

[5838:0x9a6ab0]    91559 ms: Mark-sweep 1375.7 (1434.0) -> 1371.2 (1427.1) MB, 515.3 / 0.0 ms  (+ 0.0 ms in 1 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 525 ms) (average mu = 0.048, current mu = 0.020) allocation fa

<--- JS stacktrace --->

==== JS stack trace =========================================

    0: ExitFrame [pc: 0xf8e1bf5452b]
Security context: 0x3f4f0c5aee11 <JSObject>
    1: /* anonymous */ [0xbc4fc2efa19] [/root/influxdb/ui/node_modules/source-map/lib/source-node.js:~174] [pc=0xf8e1be9525c](this=0x13d37cf0d071 <SourceNode map = 0x3a38c4706df9>,chunk=0x33b7e37b3711 <SourceNode map = 0x3a38c4706df9>)
    2: arguments adaptor frame: 3->1
    3: SourceNode_add [0x3f13db03a339] [/root/influxdb/ui/node_modules/source-map/lib/so...

 1: 0x7f9dd2f9f46c node::Abort() [/lib/x86_64-linux-gnu/libnode.so.64]
 2: 0x7f9dd2f9f4b5  [/lib/x86_64-linux-gnu/libnode.so.64]
 3: 0x7f9dd31cbe6a v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/lib/x86_64-linux-gnu/libnode.so.64]
 4: 0x7f9dd31cc0e1 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/lib/x86_64-linux-gnu/libnode.so.64]
 5: 0x7f9dd3566c66  [/lib/x86_64-linux-gnu/libnode.so.64]
 6: 0x7f9dd3578043 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/lib/x86_64-linux-gnu/libnode.so.64]
 7: 0x7f9dd3578930 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/lib/x86_64-linux-gnu/libnode.so.64]
 8: 0x7f9dd357a91d v8::internal::Heap::AllocateRawWithLigthRetry(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [/lib/x86_64-linux-gnu/libnode.so.64]
 9: 0x7f9dd357a975 v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [/lib/x86_64-linux-gnu/libnode.so.64]
10: 0x7f9dd3546bfb v8::internal::Factory::AllocateRawArray(int, v8::internal::PretenureFlag) [/lib/x86_64-linux-gnu/libnode.so.64]
11: 0x7f9dd3547098 v8::internal::Factory::NewFixedArrayWithFiller(v8::internal::Heap::RootListIndex, int, v8::internal::Object*, v8::internal::PretenureFlag) [/lib/x86_64-linux-gnu/libnode.so.64]
12: 0x7f9dd350fa30  [/lib/x86_64-linux-gnu/libnode.so.64]
13: 0x7f9dd3786479 v8::internal::Runtime_GrowArrayElements(int, v8::internal::Object**, v8::internal::Isolate*) [/lib/x86_64-linux-gnu/libnode.so.64]
14: 0xf8e1bf5452b
Aborted (core dumped)
error Command failed with exit code 134.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 134.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
make[1]: *** [Makefile:16: build] Error 134
make[1]: Leaving directory '/root/influxdb/ui'
make: *** [Makefile:80: ui] Error 2
The command 'make GO111MODULE=on"' returned a non-zero code: 2

I was able to workaround this by building the dockerized makefile targets, e.g. docker-image-influx and docker-image-ui.
The "building from source" documentation may need to be updated to reflect changes to the build process, to prevent others from running into the same issue.

I ran into the same problem today, with InfluxDB 2.0.4, Ubuntu 20.0.4, 16GB RAM.
I worked around using ( export NODE_OPTIONS='--max_old_space_size=4096' ; make ).
Disclaimer: I lack any experience with nodejs, npm and yarn.


Is It Possible to Preserve Object Key Order?

I am parsing a Swagger file (paths) and it is not preserving the order of the keys. Is there a setting I could use to preserve the order?
From the docs and issues I haven't seen any mention of it.

Could you provide minimal example?

Embarrassing. Apparently Object.getOwnPropertyNames(paths) isn't preserving the order.

You can control the output, however.  See the "sortKeys" property (which can take in either a boolean for true/false (alphabetical) or a function):  https://github.com/nodeca/js-yaml/blob/master/README.md
Example where you can see it used:  https://github.com/nodeca/js-yaml/blob/c76b837cacc69de6b86a0781db31a9bb7a193875/test/units/sort-keys.js

@puzrin Is it possible to access the object being sorted in sortKeys()? e.g. The keys don't needed to be sorted if parent has a flag noSort set to true.


Chat Command not working

If you type anything with the chat it will say You can have a great chat at www.cleverbot.com. Please remove this command i tried both big and small text and still didnt work

Fixed in the latest commit


[BUG] not return 0 at midnight

Hi,
i don't understand why my production not restart to 0 at midnight. each day start with 1,5kwH

Account type
-Envoy-S Metered (with CT)
par Enphase
Micrologiciel : D7.6.168
Home Assistant Core
par Home Assistant
Version : 2024.1.5
thank's a lot

Hi @berserk14350, do you see the same in your Enphase app?

no just in HA......

Is the number correct at the end of the day or also 1,5 kwh higher?

always 1.5 kWh more

Hi,
This IS my log, i think i have a problem with the var whtoday?
``
temperature': 0, 'dc_voltage': 0.0, 'dc_current': 0.0, 'ac_voltage': 0.0, 'ac_power': 0.0}]
2024-01-31 07:17:05.007 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Resolving jsonpath endpoint_inventory_results.[?(@.type=='PCU')].devices[?(@.dev_type==1)]
2024-01-31 07:17:05.199 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] EnvoyData.get(inverters_info) -> {'482324127480': {'part_num': '800-01396-r03', 'installed': '1703246243', 'serial_num': '482324127480', 'device_status': ['envoy.cond_flags.obs_strs.failure'], 'last_rpt_date': '1706634162', 'admin_state': 2, 'dev_type': 1, 'created_date': '1703246243', 'img_load_date': '0', 'img_pnum_running': '521-00005-r05-v06.05.02', 'ptpn': '549-00072-r01-v06.05.05', 'chaneid':<PHONE_NUMBER>, 'device_control': [{'gficlearset': False}], 'producing': False, 'communicating': False, 'provisioned': False, 'operating': False}, '482324127628': {'part_num': '800-01396-r03', 'installed': '1703246243', 'serial_num': '482324127628', 'device_status': ['envoy.cond_flags.obs_strs.failure'], 'last_rpt_date': '1706633980', 'admin_state': 2, 'dev_type': 1, 'created_date': '1703246243', 'img_load_date': '0', 'img_pnum_running': '521-00005-r05-v06.05.02', 'ptpn': '549-00072-r01-v06.05.05', 'chaneid':<PHONE_NUMBER>, 'device_control': [{'gficlearset': False}], 'producing': False, 'communicating': False, 'provisioned': False, 'operating': False}, '482324127726': {'part_num': '800-01396-r03', 'installed': '1703246245', 'serial_num': '482324127726', 'device_status': ['envoy.cond_flags.obs_strs.failure'], 'last_rpt_date': '1706633919', 'admin_state': 2, 'dev_type': 1, 'created_date': '1703246245', 'img_load_date': '0', 'img_pnum_running': '521-00005-r05-v06.05.02', 'ptpn': '549-00072-r01-v06.05.05', 'chaneid':<PHONE_NUMBER>, 'device_control': [{'gficlearset': False}], 'producing': False, 'communicating': False, 'provisioned': False, 'operating': False}, '482324127284': {'part_num': '800-01396-r03', 'installed': '1703246245', 'serial_num': '482324127284', 'device_status': ['envoy.cond_flags.obs_strs.failure'], 'last_rpt_date': '1706634010', 'admin_state': 2, 'dev_type': 1, 'created_date': '1703246245', 'img_load_date': '0', 'img_pnum_running': '521-00005-r05-v06.05.02', 'ptpn': '549-00072-r01-v06.05.05', 'chaneid':<PHONE_NUMBER>, 'device_control': [{'gficlearset': False}], 'producing': False, 'communicating': False, 'provisioned': False, 'operating': False}, '482324127383': {'part_num': '800-01396-r03', 'installed': '1703246245', 'serial_num': '482324127383', 'device_status': ['envoy.cond_flags.obs_strs.failure'], 'last_rpt_date': '1706633949', 'admin_state': 2, 'dev_type': 1, 'created_date': '1703246245', 'img_load_date': '0', 'img_pnum_running': '521-00005-r05-v06.05.02', 'ptpn': '549-00072-r01-v06.05.05', 'chaneid':<PHONE_NUMBER>, 'device_control': [{'gficlearset': False}], 'producing': False, 'communicating': False, 'provisioned': False, 'operating': False}, '482324128130': {'part_num': '800-01396-r03', 'installed': '1703246245', 'serial_num': '482324128130', 'device_status': ['envoy.cond_flags.obs_strs.failure'], 'last_rpt_date': '1706634041', 'admin_state': 2, 'dev_type': 1, 'created_date': '1703246245', 'img_load_date': '0', 'img_pnum_running': '521-00005-r05-v06.05.02', 'ptpn': '549-00072-r01-v06.05.05', 'chaneid':<PHONE_NUMBER>, 'device_control': [{'gficlearset': False}], 'producing': False, 'communicating': False, 'provisioned': False, 'operating': False}, '482324128107': {'part_num': '800-01396-r03', 'installed': '1703246245', 'serial_num': '482324128107', 'device_status': ['envoy.cond_flags.obs_strs.failure'], 'last_rpt_date': '0', 'admin_state': 2, 'dev_type': 1, 'created_date': '1703246245', 'img_load_date': '0', 'img_pnum_running': 'undetermined', 'ptpn': 'undetermined', 'chaneid':<PHONE_NUMBER>, 'device_control': [{'gficlearset': False}], 'producing': False, 'communicating': False, 'provisioned': False, 'operating': False}, '482324128129': {'part_num': '800-01396-r03', 'installed': '1703246246', 'serial_num': '482324128129', 'device_status': ['envoy.cond_flags.obs_strs.failure'], 'last_rpt_date': '1706634073', 'admin_state': 2, 'dev_type': 1, 'created_date': '1703246246', 'img_load_date': '0', 'img_pnum_running': '521-00005-r05-v06.05.02', 'ptpn': '549-00072-r01-v06.05.05', 'chaneid':<PHONE_NUMBER>, 'device_control': [{'gficlearset': False}], 'producing': False, 'communicating': False, 'provisioned': False, 'operating': False}, '482324128126': {'part_num': '800-01396-r03', 'installed': '1703246247', 'serial_num': '482324128126', 'device_status': ['envoy.cond_flags.pcu_chan.dcvoltagetoolow', 'envoy.cond_flags.obs_strs.failure'], 'last_rpt_date': '1706634196', 'admin_state': 2, 'dev_type': 1, 'created_date': '1703246247', 'img_load_date': '0', 'img_pnum_running': '521-00005-r05-v06.05.02', 'ptpn': '549-00072-r01-v06.05.05', 'chaneid':<PHONE_NUMBER>, 'device_control': [{'gficlearset': False}], 'producing': False, 'communicating': False, 'provisioned': False, 'operating': False}, '482324127285': {'part_num': '800-01396-r03', 'installed': '1703246247', 'serial_num': '482324127285', 'device_status': ['envoy.cond_flags.pcu_chan.dcvoltagetoolow', 'envoy.cond_flags.obs_strs.failure'], 'last_rpt_date': '1706634165', 'admin_state': 2, 'dev_type': 1, 'created_date': '1703246247', 'img_load_date': '0', 'img_pnum_running': '521-00005-r05-v06.05.02', 'ptpn': '549-00072-r01-v06.05.05', 'chaneid':<PHONE_NUMBER>, 'device_control': [{'gficlearset': False}], 'producing': False, 'communicating': False, 'provisioned': False, 'operating': False}}
2024-01-31 07:17:05.201 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Resolving jsonpath endpoint_devstatus.pcu[?(@.devType==1)]
2024-01-31 07:17:05.211 DEBUG (
Thank s

Hi @berserk14350, your log output is clipped and doesn't contain whtoday.

So i'm a loser......
i'm a beginner in HA and my english is poor.....
this is a log :
2024-01-31 07:17:01.647 DEBUG (MainThread) [custom_components.enphase_envoy.envoy_reader] Fetched from https://<IP_ADDRESS>/production.json?details=1: <Response [200 OK]>: {"production":[{"type":"inverters","activeCount":10,"readingTime":1706681808,"wNow":0,"whLifetime":129936},{"type":"eim","activeCount":1,"measurementType":"production","readingTime":1706681831,"wNow":-3.171,"whLifetime":128604.343,"varhLeadLifetime":41758.145,"varhLagLifetime":103673.09,"vahLifetime":253384.132,"rmsCurrent":0.703,"rmsVoltage":237.632,"reactPwr":165.074,"apprntPwr":166.877,"pwrFactor":-0.03,"whToday":1421.343,"whLastSevenDays":35309.343,"vahToday":1207.132,"varhLeadToday":0.145,"varhLagToday":1196.09,"lines":[{"wNow":-3.171,"whLifetime":128604.343,"varhLeadLifetime":41758.145,"varhLagLifetime":103673.09,"vahLifetime":253384.132,"rmsCurrent":0.703,"rmsVoltage":237.632,"reactPwr":165.074,"apprntPwr":166.877,"pwrFactor":-0.03,"whToday":1421.343,"whLastSevenDays":35309.343,"vahToday":1207.132,"varhLeadToday":0.145,"varhLagToday":1196.09}]}],"consumption":[{"type":"eim","activeCount":1,"measurementType":"total-consumption","readingTime":1706681831,"wNow":946.268,"whLifetime":1460902.752,"varhLeadLifetime":253425.372,"varhLagLifetime":-58232.017,"vahLifetime":1496893.137,"rmsCurrent":5.379,"rmsVoltage":237.723,"reactPwr":-356.136,"apprntPwr":1278.706,"pwrFactor":0.74,"whToday":8660.752,"whLastSevenDays":31.752,"vahToday":9895.137,"varhLeadToday":2989.372,"varhLagToday":0.0,"lines":[{"wNow":946.268,"whLifetime":1460902.752,"varhLeadLifetime":253425.372,"varhLagLifetime":-58232.017,"vahLifetime":1496893.137,"rmsCurrent":5.379,"rmsVoltage":237.723,"reactPwr":-356.136,"apprntPwr":1278.706,"pwrFactor":0.74,"whToday":8660.752,"whLastSevenDays":31.752,"vahToday":9895.137,"varhLeadToday":2989.372,"varhLagToday":0.0}]},{"type":"eim","activeCount":1,"measurementType":"net-consumption","readingTime":1706681831,"wNow":949.439,"whLifetime":1332576.779,"varhLeadLifetime":295183.517,"varhLagLifetime":45441.073,"vahLifetime":1496893.137,"rmsCurrent":4.676,"rmsVoltage":237.723,"reactPwr":-521.21,"apprntPwr":1111.572,"pwrFactor":0.85,"whToday":0,"whLastSevenDays":0,"vahToday":0,"varhLeadToday":0,"varhLagToday":0,"lines":[{"wNow":949.439,"whLifetime":1332576.779,"varhLeadLifetime":295183.517,"varhLagLifetime":45441.073,"vahLifetime":1496893.137,"rmsCurrent":4.676,"rmsVoltage":237.723,"reactPwr":-521.21,"apprntPwr":1111.572,"pwrFactor":0.85,"whToday":0,"whLastSevenDays":0,"vahToday":0,"varhLeadToday":0,"varhLagToday":0}]}],"storage":[{"type":"acb","activeCount":0,"readingTime":0,"wNow":0,"whNow":0,"state":"idle"}]}

when i turn off the metered and turn on, my production return a 1426wh
EnvoyData.get(daily_production_l1) -> 1426.56

Weird. The values in the debug log are coming directly from the Envoy. Could it be your CT clamp is mounted wrong and the app/enlighten somehow compensates for this? In the morning try to visit the Envoy web interface (via the button in HA) and check the value there.

my clamp is mounted correctly, it's not a problem with a clamp, i think metered send not the good value .....

hi, for you're information:
i tri to get the information directly on metered in the same time by three url:
https://envoy.local/api/v1/production
{   "wattHoursToday": 1857,   "wattHoursSevenDays": 37478,   "wattHoursLifetime": 137125,   "wattsNow": 603 }
https://<IP_ADDRESS>/ivp/pdm/energy
{     "production": {         "pcu": {             "wattHoursToday": 1907,             "wattHoursSevenDays": 38390,             "wattHoursLifetime": 140125,             "wattsNow": 557         },         "rgm": {             "wattHoursToday": 0,             "wattHoursSevenDays": 0,             "wattHoursLifetime": 0,             "wattsNow": 0         },         "eim": {             "wattHoursToday": 1857,             "wattHoursSevenDays": 37478,             "wattHoursLifetime": 137125,             "wattsNow": 603         }     },     "consumption": {         "eim": {             "wattHoursToday": 8557,             "wattHoursSevenDays": 0,             "wattHoursLifetime": 1489462,             "wattsNow": 708         }     } }
https://envoy.local/production.json?details=1
{"production":[{"type":"inverters","activeCount":10,"readingTime":1706796736,"wNow":596,"whLifetime":140198},{"type":"eim","activeCount":1,"measurementType":"production","readingTime":1706796771,"wNow":527.394,"whLifetime":138712.313,"varhLeadLifetime":45127.336,"varhLagLifetime":106475.779,"vahLifetime":267303.396,"rmsCurrent":2.374,"rmsVoltage":241.019,"reactPwr":-166.512,"apprntPwr":572.316,"pwrFactor":0.92,"whToday":3444.313,"whLastSevenDays":39065.313,"vahToday":3855.396,"varhLeadToday":597.336,"varhLagToday":1521.779,"lines":[{"wNow":527.394,"whLifetime":138712.313,"varhLeadLifetime":45127.336,"varhLagLifetime":106475.779,"vahLifetime":267303.396,"rmsCurrent":2.374,"rmsVoltage":241.019,"reactPwr":-166.512,"apprntPwr":572.316,"pwrFactor":0.92,"whToday":3444.313,"whLastSevenDays":39065.313,"vahToday":3855.396,"varhLeadToday":597.336,"varhLagToday":1521.779}]}],"consumption":[{"type":"eim","activeCount":1,"measurementType":"total-consumption","readingTime":1706796771,"wNow":663.426,"whLifetime":1489634.447,"varhLeadLifetime":258363.385,"varhLagLifetime":-56313.397,"vahLifetime":1526667.361,"rmsCurrent":5.284,"rmsVoltage":240.956,"reactPwr":319.184,"apprntPwr":1273.273,"pwrFactor":0.52,"whToday":8729.447,"whLastSevenDays":172.447,"vahToday":10896.361,"varhLeadToday":3794.0,"varhLagToday":0.0,"lines":[{"wNow":663.426,"whLifetime":1489634.447,"varhLeadLifetime":258363.385,"varhLagLifetime":-56313.397,"vahLifetime":1526667.361,"rmsCurrent":5.284,"rmsVoltage":240.956,"reactPwr":319.184,"apprntPwr":1273.273,"pwrFactor":0.52,"whToday":8729.447,"whLastSevenDays":172.447,"vahToday":10896.361,"varhLeadToday":3794.0,"varhLagToday":0.0}]},{"type":"eim","activeCount":1,"measurementType":"net-consumption","readingTime":1706796771,"wNow":136.032,"whLifetime":1351200.504,"varhLeadLifetime":303490.721,"varhLagLifetime":50162.382,"vahLifetime":1526667.361,"rmsCurrent":2.91,"rmsVoltage":240.956,"reactPwr":485.696,"apprntPwr":701.298,"pwrFactor":0.19,"whToday":0,"whLastSevenDays":0,"vahToday":0,"varhLeadToday":0,"varhLagToday":0,"lines":[{"wNow":136.032,"whLifetime":1351200.504,"varhLeadLifetime":303490.721,"varhLagLifetime":50162.382,"vahLifetime":1526667.361,"rmsCurrent":2.91,"rmsVoltage":240.956,"reactPwr":485.696,"apprntPwr":701.298,"pwrFactor":0.19,"whToday":0,"whLastSevenDays":0,"vahToday":0,"varhLeadToday":0,"varhLagToday":0}]}],"storage":[{"type":"acb","activeCount":0,"readingTime":0,"wNow":0,"whNow":0,"state":"idle"}]}
The Json is out....... whtoday
wait for update metered, it's a better idea?
thank's a lot

You could open a ticket at Enphase support. Maybe they can correct/find the cause of this incorrect output.

hi this is the answer:
https://support.enphase.com/s/question/0D5Ps00000Axen2KAB/metered-api-wrong-value
and i'm not understand......

I have the same issue. My installation is a bit more than a month old, and the reset value of whToday is slowly growing over time. Every day the value is drifting a bit more.
I'm not sure what they tried to explain on the community support, but they suggest to use another endpoint.

Unfortunately I do not see any answer to this issue in the thread. They are talking about the difference between realtime data and data generated every 5 min. The issues here is that apparently the Envoy fails to calculate the whToday value correctly.
I will take a look at potentially using a different endpoint for this value. Although every endpoint on the Envoy has its quirks, and also not all of them are available for home owners.  Or homeowner?

@berserk14350 @Calyhre Are you both using an Installer/DIY login? Or homeowner?

I'm using a homeowner login

I'm not sur for the good answer:
The installation is make by mylself

Could both of you please paste the output of https://envoy.local/ivp/meters and https://envoy.local/ivp/meters/readings (after logging in)?

 But I haven't found an alternative endpoint yet for the daily energy usage per phase. If the two potentially return different values that will be very confusing.

This issue of not returning to zero is reported in other Envoy integrations as well.  For energy dashboard best use lifetime values. To get a daily value you can opt to configure a HA utility meter sourced from lifetime value to work around this issue.

I'm thinking about adding a configuration option to use the alternative daily endpoint. As a result you will lose the daily phase readings, but the daily total reading will be correct.

A solution with the utility meter @catsmanac mentioned I previously described here: https://github.com/vincentwolsink/home_assistant_enphase_envoy_installer/issues/40#issuecomment-1633879122
This is also a perfectly working solution. And indeed, for the Energy dashboard use lifetime values.


New MSAL v0.8.0 breaks AZ Identity v1.2.0 in sdk for go

Bug Report
This is similar to #19823 but appears to be caused by a new release of MSAL.  Here is what I'm seeing, and my analysis / workaround.
Last night MSAL for go v0.8.0 was released.  Since that time, when I build my application, I get the following errors (see below).
If I force use of MSAL v0.7.0 by adding go mod edit -require<EMAIL_ADDRESS>to my makefile, the problem goes away.  And my project builds as it always has.
So the work-around works.  But it appears that there is an incompatibility between<EMAIL_ADDRESS>and<EMAIL_ADDRESS>I'm using go v1.19.5 -- but I also tried with v1.18 with the same results.
Errors when built with MSAL v0.8.0:
# github.com/Azure/azure-sdk-for-go/sdk/azidentity
/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/azidentity@v1.2.0/client_assertion_credential.go:52:44: cannot use c (variable of type confidential.Client) as type confidentialClient in struct literal:
        confidential.Client does not implement confidentialClient (wrong type for AcquireTokenByAuthCode method)
                have AcquireTokenByAuthCode(ctx context.Context, code string, redirectURI string, scopes []string, opts ...confidential.AcquireByAuthCodeOption) (base.AuthResult, error)
                want AcquireTokenByAuthCode(ctx context.Context, code string, redirectURI string, scopes []string, options ...confidential.AcquireTokenByAuthCodeOption) (base.AuthResult, error)
/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/azidentity@v1.2.0/client_certificate_credential.go:59:46: cannot use c (variable of type confidential.Client) as type confidentialClient in struct literal:
        confidential.Client does not implement confidentialClient (wrong type for AcquireTokenByAuthCode method)
                have AcquireTokenByAuthCode(ctx context.Context, code string, redirectURI string, scopes []string, opts ...confidential.AcquireByAuthCodeOption) (base.AuthResult, error)
                want AcquireTokenByAuthCode(ctx context.Context, code string, redirectURI string, scopes []string, options ...confidential.AcquireTokenByAuthCodeOption) (base.AuthResult, error)
/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/azidentity@v1.2.0/client_secret_credential.go:43:41: cannot use c (variable of type confidential.Client) as type confidentialClient in struct literal:
        confidential.Client does not implement confidentialClient (wrong type for AcquireTokenByAuthCode method)
                have AcquireTokenByAuthCode(ctx context.Context, code string, redirectURI string, scopes []string, opts ...confidential.AcquireByAuthCodeOption) (base.AuthResult, error)
                want AcquireTokenByAuthCode(ctx context.Context, code string, redirectURI string, scopes []string, options ...confidential.AcquireTokenByAuthCodeOption) (base.AuthResult, error)
/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/azidentity@v1.2.0/device_code_credential.go:85:66: cannot use c (variable of type public.Client) as type publicClient in struct literal:
        public.Client does not implement publicClient (wrong type for AcquireTokenByAuthCode method)
                have AcquireTokenByAuthCode(ctx context.Context, code string, redirectURI string, scopes []string, opts ...public.AcquireByAuthCodeOption) (base.AuthResult, error)
                want AcquireTokenByAuthCode(ctx context.Context, code string, redirectURI string, scopes []string, options ...public.AcquireTokenByAuthCodeOption) (base.AuthResult, error)
/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/azidentity@v1.2.0/device_code_credential.go:94:59: cannot use public.WithSilentAccount(c.account) (value of type interface{public.AcquireSilentOption; options.CallOption}) as type public.AcquireTokenSilentOption in argument to c.client.AcquireTokenSilent
/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/azidentity@v1.2.0/interactive_browser_credential.go:62:60: cannot use c (variable of type public.Client) as type publicClient in struct literal:
        public.Client does not implement publicClient (wrong type for AcquireTokenByAuthCode method)
                have AcquireTokenByAuthCode(ctx context.Context, code string, redirectURI string, scopes []string, opts ...public.AcquireByAuthCodeOption) (base.AuthResult, error)
                want AcquireTokenByAuthCode(ctx context.Context, code string, redirectURI string, scopes []string, options ...public.AcquireTokenByAuthCodeOption) (base.AuthResult, error)
/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/azidentity@v1.2.0/interactive_browser_credential.go:70:59: cannot use public.WithSilentAccount(c.account) (value of type interface{public.AcquireSilentOption; options.CallOption}) as type public.AcquireTokenSilentOption in argument to c.client.AcquireTokenSilent
/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/azidentity@v1.2.0/interactive_browser_credential.go:78:17: cannot use public.WithRedirectURI(c.options.RedirectURL) (value of type interface{public.AcquireInteractiveOption; options.CallOption}) as type public.InteractiveAuthOption in argument to append
/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/azidentity@v1.2.0/managed_identity_credential.go:101:44: cannot use c (variable of type confidential.Client) as type confidentialClient in struct literal:
        confidential.Client does not implement confidentialClient (wrong type for AcquireTokenByAuthCode method)
                have AcquireTokenByAuthCode(ctx context.Context, code string, redirectURI string, scopes []string, opts ...confidential.AcquireByAuthCodeOption) (base.AuthResult, error)
                want AcquireTokenByAuthCode(ctx context.Context, code string, redirectURI string, scopes []string, options ...confidential.AcquireTokenByAuthCodeOption) (base.AuthResult, error)
/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/azidentity@v1.2.0/username_password_credential.go:46:85: cannot use c (variable of type public.Client) as type publicClient in struct literal:
        public.Client does not implement publicClient (wrong type for AcquireTokenByAuthCode method)
                have AcquireTokenByAuthCode(ctx context.Context, code string, redirectURI string, scopes []string, opts ...public.AcquireByAuthCodeOption) (base.AuthResult, error)
                want AcquireTokenByAuthCode(ctx context.Context, code string, redirectURI string, scopes []string, options ...public.AcquireTokenByAuthCodeOption) (base.AuthResult, error)
/go/pkg/mod/github.com/!azure/azure-sdk-for-go/sdk/azidentity@v1.2.0/username_password_credential.go:46:85: too many errors

This is due to the test fakes I mentioned in #19823. The next azidentity release will upgrade to the latest MSAL and update these fakes. In the meantime, continuing to use the prior github.com/AzureAD/microsoft-authentication-library-for-go version, v0.7.0, is the easiest workaround. If your application needs v0.8.0, this commit shows how to make the azidentity test fakes compatible.

Thanks for opening this issue! I'm closing it because we published azidentity v1.2.1 today, which is simply v1.2.0 with an upgrade to MSAL v0.8.1. For anyone using an azidentity v1.3.0 beta, the next beta release (coming soon) will include the same upgrade; you can get it sooner from our main branch: go get -u github.com/Azure/azure-sdk-for-go/sdk/azidentity@main.


增加量词

处、台、架、枚、趟、幅、平、方、堵、间、床、株、批、项、例、列、篇、栋、注、亩

PR types

PR changes

Describe

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@xiaofeicn 请解决下冲突，同时签署CLA


Installation fails on Ubuntu 24.04

Hello @costashatz, here is an issue linked to the Joss review https://github.com/openjournals/joss-reviews/issues/6771
I tried the installation script on an Ubuntu Virtual Machine 24.04 with arm64 architecture, and it looks to have a problem in the apt dependencies. I attached the terminal log here: https://gist.github.com/c-joly/3d68d729b40c51aa6b11231771941435 (note: I changed the script to make it stop at the first error)
Note: the install script passed flawlessly on Ubuntu 22.04 arm64
It looks like the apt dependencies are not satisfied on the last version of Ubuntu (at least for arm64 architecture, I can't test for amd64 with my Mac M2). Maybe you should consider to limit the versions of Ubuntu that are fine, >= 20.04 may be too optimistic.

Hey @c-joly! Thanks for testing.
Interesting that the DART developers have pre-built binaries for 22.04 and not for 24.04 (at least for arm64). I will test on 24.04 on an amd64 arch and see what I get. Then I'll update the script or the docs accordingly.
Good to know that Ubuntu 22.04 worked easily (even on arm64)!
Thanks again!

Hi @costashatz!
AFAICT, I the same issue also exists for x86, see below ; that makes sense, the 24.04 release is still rather new. So the title of this issue could be updated.
Small nitpicking : could you modify the install_ubuntu.sh script so that it stop as soon as an error is met?
(see for example Unofficial bash strict mode).
Cheers,
Sébastien
boisgera@box:~/robot_dart$ ./scripts/install_ubuntu.sh
[sudo] password for boisgera:
PPA publishes dbgsym, you may need to include 'main/debug' component
Repository: 'Types: deb
URIs: https://ppa.launchpadcontent.net/dartsim/ppa/ubuntu/
Suites: noble
Components: main
'
More info: https://launchpad.net/~dartsim/+archive/ubuntu/ppa
Adding repository.
Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease
Get:2 http://archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
Hit:3 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:4 https://ppa.launchpadcontent.net/dartsim/ppa/ubuntu noble InRelease
Err:5 https://ppa.launchpadcontent.net/dartsim/ppa/ubuntu noble Release
  404  Not Found [IP: <IP_ADDRESS> 443]
Hit:6 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Reading package lists... Done
E: The repository 'https://ppa.launchpadcontent.net/dartsim/ppa/ubuntu noble Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Ign:1 https://ppa.launchpadcontent.net/dartsim/ppa/ubuntu noble InRelease
Err:2 https://ppa.launchpadcontent.net/dartsim/ppa/ubuntu noble Release
  404  Not Found [IP: <IP_ADDRESS> 443]
Hit:3 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:4 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:5 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:6 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Reading package lists... Done
E: The repository 'https://ppa.launchpadcontent.net/dartsim/ppa/ubuntu noble Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

@boisgera good to know! I'll inform the DART developers and update the docs until they are up to date. I know they are being very meticulous for the ROS supported Ubuntu versions. So I guess ROS is not on 24.04 yet..

@c-joly @boisgera can you both try again? It seems that DART is now available in 24.04 (see here).

On buntu 22.04, I do have an unexpected end of file error message.
The same error will appear (faster) if I only check the syntax of the install script, without running it
~/tmp/robot_dart$ bash -n ./scripts/install_ubuntu.sh
./scripts/install_ubuntu.sh: line 106: syntax error: unexpected end of file

There is a missing fi in the script; when it's added, it passes the syntax check. I am trying the install again right now.

There is a missing fi in the script; when it's added, it passes the syntax check. I am trying the install again right now.

I just pushed in the master branch, the corrected script (putting the fi in the correct place as it could be ambiguous).
Thank you for your effort :)

I have this error quite late in the build:
Cloning into 'magnum-bindings'...
remote: Enumerating objects: 5937, done.
remote: Counting objects: 100% (1328/1328), done.
remote: Compressing objects: 100% (466/466), done.
remote: Total 5937 (delta 970), reused 1186 (delta 862), pack-reused 4609 (from 1)
Receiving objects: 100% (5937/5937), 1.64 MiB | 1.46 MiB/s, done.
Resolving deltas: 100% (4459/4459), done.
-- The CXX compiler identification is GNU 13.2.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Corrade (missing: CORRADE_INCLUDE_DIR
  _CORRADE_CONFIGURE_FILE)
Call Stack (most recent call first):
  /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
  modules/FindCorrade.cmake:312 (find_package_handle_standard_args)
  modules/FindMagnum.cmake:262 (find_package)
  CMakeLists.txt:59 (find_package)

-- Configuring incomplete, errors occurred!

I have this error quite late in the build:

OK! Let me have a deeper look and come back to it. At least it seems that the Ubuntu 24.04 issue is gone. I'll fix the rest! Thanks! I'll ping you once I have this ready.

@boisgera @c-joly the master branch now contains an install_ubuntu.sh script that should work for >=20.04. I just tried in clean docker images.
Can you please try again and confirm this?
Thanks again!

However, I noticed some problems with some examples. I experienced errors due to setScale, for examples with all examples with Talos and Tiago. @boisgera , @costashatz : can you check on x64 architecture?

I checked and it appears that this is coming from DART (it also happens in x64). They have tightened their checks for mesh scaling. Imho, they should allow negative ones (this just mirrors the mesh; very common practice in graphics community to put negative scale). I will contact them and see how we can solve this. Not very important, but annoying to not be able to use the basic examples. Thanks for catching this.

I think this is ready to be closed! @c-joly let me know if you find something else that needs fixing. Thanks again!


Update the README in Russian

Updated the README in Russian.
Changes:

Updated translation into Russian.
Added a link to https://onefetch.dev .

Thanks a lot! @AndreyKozhev 🎉


Recursive manifests (import other manifests)

In Zephyr West it is possible to import other manifests (see docs).
This could help in having separate manifests for different parts of the code.

In #99 child-manifests were introduced, this issue refers to explicitly imported other manifests


Non-Steamcmd Version: Is it mandatory to subscribe to mods?

Hi, guys. Is it mandatory to subscribe to mods with this version? Or can I just download them and log into the servers? I prefer not to do it with steamcmd.

@Thv1337
There are only two modes of operation, and they are described in the documentation

either you subscribe to mods yourself by following the links
or you use steamcmd and it installs the missing mods without making a subscription


This project should live in the nxpm/nxpm monorepo

The cli is built with oclif and I haven't tried running it in an Nx Workspace yet, so in order to ship I created a separate repo.
Ideally it consists of a cli app in the monorepo, and uses the libs for plugins.

Just stumbled upon this issue/PR/repo via https://nrwl.community/support/2020/07/04/How-would-bNuNRXrV6THrZJM2UPp91g.html and was wondering what state your PR got to in the end, and how much work you feel it would take to get it to a finished version?

How would I get started …
How would I get started if i wanted to create an nx-plugin that adds support for https://oclif.io/|oclif ? oclif: The Open CLI Framework · Create command line tools your users love
Responses:Permalink
If you like you can start looking at some work that I’ve done around it
I built some prototype but never finished it (story of my life :joy: )
https://github.com/nxpm/nxpm/commits/beeman/nx-oclif
It’s in this branch, feel free to use any of it - I’d also happily review and accept a PR if you’re interested in that

I've been recently looking into both oclif and nx for my own side projects, and was hoping there would be an nx plugin that already supported it out of the box. I haven't read through all the code in your PR yet to try and evaluate what state it's in.
In my googling, I also came across this article, which seems to describe using oclif and nx together, though I haven't deeply tried to follow it yet:

https://dev.to/digikare/oclif-on-nx-monorepo-33bo


hooo_dual_imply is too strong (c^(a => b) => ¬(c^b => c^a))

pub fn proof<A: Prop, B: Prop>(
    pow_ba: Pow<B, A>,
    pow_bna: Pow<B, Not<A>>
) -> False {
    pow_rev_not(pow_bna)(pow_ba)
}

pub fn proof2() -> False {
    fn f(_: Or<True, Not<True>>) -> True {True}
    let (a, b) = hooo_dual_or(f);
    proof(a, b)
}

Here, hooo_dual_or has a trusted proof:
/// `c^(a ⋁ b) => (c^a ⋀ c^b)`.
pub fn hooo_dual_or<A: Prop, B: Prop, C: Prop>(
    x: Pow<C, Or<A, B>>
) -> And<Pow<C, A>, Pow<C, B>> {
    (pow_transitivity(Left, x.clone()), pow_transitivity(Right, x))
}

The only weakness is hooo_dual_imply, used in pow_rev_not:
/// `a^(¬b) => ¬a^b`.
pub fn pow_rev_not<A: Prop, B: Prop>(x: Pow<A, Not<B>>) -> Not<Pow<A, B>> {
    let y = hooo_dual_imply(x);
    Rc::new(move |pow_a_b| {
        y(pow_a_b.map_any())
    })
}

This also implies tauto_hooo_dual_imply is too strong, since tauto_hooo_dual_imply implies hooo_dual_imply.