Mention Serde in rustc-serialize docs

New Rust users often use rustc-serialize simply because it's the official package and they never heard of Serde. Mentioning Serde in rustc-serialize docs will allow them to consider a more efficient and feature-wise package.
One use case is people coming to test Rust performance and seeing it as a slow language because they're using an older JSON package (cf. http://www.reddit.com/r/rust/comments/38s1n3/why_is_rust_much_slower_and_memory_consuming_than/).

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon.
If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. The way Github handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.
Please see the contribution instructions for more information.

@erickt Do you think this is a good idea?

Yes, I, too, am curious what @erickt thinks of this.

New Rust users often use rustc-serialize simply because it's the official package and they never heard of Serde. Mentioning Serde in rustc-serialize docs will allow them to consider a more efficient and feature-wise package.

I have heard of Serde but have no idea which one I should be using. Both serde and rustc-serialize are on crates.io, both are visibly actively developed, and I just don't know.
@erickt: seems we're waiting on your opinion :smile:

Oops, I missed this. I am very much in favor of people using serde. This comment is appropriate in my opinion.

Thanks @ArtemGr!


⚠ Jenkins Plugins Artifactory has degraded performance

In 61ebffa, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 2722 ms

Resolved: Jenkins Plugins Artifactory performance has improved in 9987f13 after 12 minutes.


Solution added

I have added my solution to Leetcode problem 191_Reverse Integer.
Problem link: https://leetcode.com/problems/reverse-integer/
Language used : c++ 14

Please Merge

Not accepting CPP/C DSA codes
Alternative ->
1)Create a page using HTML & CSS Add DSA problem statement and solution in that
2)You can contribute in python and java OR
Ask for an issue assign
3)Contribute to Web Project


XSS via DOM

The method success() in jquery.pjax.js sends unvalidated data to a web browser on line 160, which can result in the browser executing malicious code.
In jquery-pjax.js, line 160, the success method doesn't properly validate the malicious input returned from making the hash.  Mind you, it is only as strong as the client protections enabled on the browser.

$.pjax functions the same way as $.ajax. Since it only allows same origin resources, its always coming from your server.


Use afero for os so we can mock more easily

When using the os package, creating unit-tests becomes harder. Use afero as the filesystem layer so we can easily mock where needed.
Some of this is already done.

completed


Fix bug of locate command when the person is not in the list

Fixed bug in the locate command, return a message when no relevant person can be found in the list.
Issue #133 #137

Resolved with #159


Consider writing glory to log file

not sure if its possible, but it would be fun to see the glory of each run in the splits file. not sure if this messes up integration with common split programs, i dont do speedruns normally.
Thanks! plugin is great, and helps me a lot

oh and again if its not too much trouble for the format, if you could write modifiers/invocations chosen each wave to file as well, it would be cool to see


Fix: Work around flaky test

This PR

[x] attempts to work around flaky tests related to loading an image file from an external API

@localheinz think we can drop this right since we skipped the test in the 1.9.0 release in total


Update dependency

What does renovate.json do?

What does renovate.json do?

What does renovate.json do?

Renovate.json is used for dependency updates and is now deprecated.

And if it is deprecated shouldn't it be removed?

And if it is deprecated shouldn't it be removed?

okay


[AppService] Fix #13907: az webapp config ssl import: Change command to also import App Service Certificate

Description

I am enabling az webapp config ssl import to also import an app service certificate to a webapp. At the moment, it just allows importing a KeyVault cert. With this change, it can be used for both types of certificate. There will be no breaking change, as we are reusing the paramater names
Testing Guide

Parameters remain the same, as show below: the only difference is that now key-vault-certificate-name can also be an ASC
az webapp config ssl import --name webappName --resource-group rgName --key-vault-certificate-name certName --key-vault keyVaultNameOrId
History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.

This checklist is used to make sure that common guidelines for a pull request are followed.

[x] The PR title and description has followed the guideline in Submitting Pull Requests.

[x] I adhere to the Command Guidelines.

[x] I adhere to the Error Handling Guidelines.

AppService

hi @qwordy , could you pls have a look? thanks

hi @singlessis could you pls help to fix CI failure so that we can merge the PR? thanks.


Adds the new output flag to SSR config examples

What kind of changes does this PR include?

Minor content fixes (broken links, typos, etc.)
New or updated content

Description

Updates SSR and deploy examples to include the new output: "server" Astro config option

Gotta move fast around here, @tony-sull ! I've had to update this branch TWICE to keep up with the times.  😅  It's good to merge whenever you're ready!


Check for 'offline' key in state before trying to send actions

This helps address #66 and perhaps #57 by letting the middleware just skip processing if the state hasn’t been initialized with the ‘offline’ reducer. This can happen if you have another enhancer that tries to do tricky things with the store (like devtools) :)

This does help, but digging into the devtools and redux-offline code, it looks like the two are just incompatible. Basically, devtools manages a separate state and passes a subset of that to all other reducers (this his how they hold the stat history/etc). The offline middleware runs on this state, but the reducer (or "updater") runs on the internal state. So the metadata/enqueue process runs on the inner (app) state, but the middleware/effectReconciler run on the outer (devtools) state, so effects are never triggered.
One possible solution is to move much of the current updater code to the middleware, and have some way for the reducer to pull the offline state from a centralized location. It's not ideal, but at least it would mean that you can use the package with devtools…

Actually, hold off on this. I'm investigating some better options.

Any news on this?


Integration of a WYSIWYG editor

An WYSIWYG editor is quite often needed in a Symfony application where things has to be administrated. I had hard times to integrate tinymce (in a clean way) into a Symfony application.
First I tried to use stfalcon/tinymce-bundle but it isn't maintained anymore and I think nowadays the way of the integration is not optimal anymore. So i used Encore to achieve that. I think this was a good decision, but it was very tricky. It took some time for me to get it working (here's a small how-to that I have written down: https://github.com/stfalcon/TinymceBundle/issues/221#issuecomment-723973417).
Of course tinymce is very heavy and there are other editors, which may be enough for most of the projects. I think of

Quill or
Summernote
there may be many alternatives

Would be great if at least one editor would be integrated.

friendsofsymfony/ckeditor-bundle works pretty well
maybe adding a flex recipe for that would be sufficient
or maybe by adding a thin package to bridge it

This is such a loaded question. One thing i like to as is what happens when we paste an image in the text. Also, WYSIWYG , markdown, or one of 24.000 other questions come in mind.
I also was playing with a markdown editor in a project of mine, maybe when i have more i can mangle this in a bundle and share.
https://simplemde.com

Hi! Thanks for your idea, I agree we should investigate on integrating a content editor in Symfony.
My general point of view regarding the addition of packages to Symfony UX is that:
1/ We should have ideally only one core option for each library in a given category. In this case, we should choose one editor and go with it. Having an opinionated take here matters: it helps people to choose a tool, it reduces our workload and it incentivizes us to make a conscious choice about which library to rely on.
2/ We should almost always go for the most popular/mature library available in a given category. In the editors category, several of them are reaching the popularity and maturity threshold IMO, but in other categories, there are many small libraries: we should always ensure a library won't change a lot in the coming years, as it would have a big impact on our reliability.
3/ Finally, we should always try to provide a package in a way that will make Backward Compatibility feasible. That's one of the reason why the current packages rely on events and not on inheritance: they help ensure the application code using these packages won't break if they upgrade, as we provide a small public API.
Other than that, I'm very open to adding new packages to Symfony UX. We should consider how generic something can be, but in the case of editors, that's definitely something very nice we could do.
Regarding this specific idea, I also have some thoughts:

we are going to need to think about file/image upload, so that the editor can use it
there is a topic to discuss about XSS/sanitizing so that it's safe to use the result of the editor by default
IMO we should aim for a usage similar to the Dropzone component: a plug-and-play replacement for the TextareaType

I worked with it a bit already in the past, and unfortunately it still has some important limitations (the inability to add target=_blank on links comes to mind first but I remember there were others I noted). Not sure it's mature enough but I do like its approach indeed.

CKeditor is no longer free for commercial use and CKeditor4 is no longer supported.
Suneditor is a very powerful editor and is actively maintained. It is also easy to configure through their interactive configuration.
http://suneditor.com/sample/index.html

friendsofsymfony/ckeditor-bundle works pretty well
maybe updating the flex recipe for that would be sufficient or maybe by adding a thin package to bridge it

Yeah but I hardly display the content! Can you help me?

With the release of Symfony 7 there is currently no supported wysiwg editor bundle for Symfony projects.
The FOSCKEditor bundle is still using CKEditor 4 which was EoL back in June 2023 and the bundle itself seems to have been abandoned shortly after Symfony 6 support was added https://github.com/FriendsOfSymfony/FOSCKEditorBundle/issues/254
I'm currently working on a project rebuilding a Symfony 3 site to the latest version and I've been using some of the new UX components and they are working great. I was looking to see if a new wysiwyg editor integration was part of the UX initiative and found this issue. My new site rebuild is stuck on Symfony 6 until I can remove the dependency on the FOSCKeditor package so I'm highly anticipating a new official UX wysiwyg component that will be supported for many versions to come!

The FOSCKEditor bundle recently issued a new release adding Symfony 7 support. It's still using CKEditor 4 though so adding a modern WYSIWYG editor as part of the Symfony UX initiative is still an open issue.

Hi !
I've a problem with Turbo and wysiwyg editors (tried FOSCKEditor bundle & Quill).
After removing cache, on first load, I've an error "Uncaught ReferenceError: CKEDITOR is not defined".
The editor only loads on page refreshes.
Has anyone ever encountered this issue before? Thx.
Uncaught ReferenceError: CKEDITOR is not defined
    renderElement https://***.wip/assets/vendor/@hotwired/turbo/turbo.index-810f44ef1a202a441e4866b7a4c72d11.js:21
    assignNewBody https://***.wip/assets/vendor/@hotwired/turbo/turbo.index-810f44ef1a202a441e4866b7a4c72d11.js:21
    replaceBody https://***.wip/assets/vendor/@hotwired/turbo/turbo.index-810f44ef1a202a441e4866b7a4c72d11.js:21
    ...

I've had success with ProseMirror https://prosemirror.net/ which is a cousin of CodeMirror https://codemirror.net/. Pretty modular and configurable. And it's all open source... I have not tried implementing it with anything ux ||  asset_map, but did have a lot of success w/ WebpackEncore

@carsonbot Please leave this issue open, I think a UX component for WYSIWYG would be great.

@carsonbot Please leave this issue open, I think a UX component for WYSIWYG would be great.

+1

@carsonbot Please leave this issue open, I think a UX component for WYSIWYG would be great.

+1

In the PR people also mention:

Lexical
Trix
Tiptap

Looks like too many options. Maybe we need a common interface and choice like in the Notifier services or Mailer services?
Such a choice already exists in the UX Map.

Maybe we need a common interface and choice like in the Notifier services or Mailer services

This would be the best option indeed, but this would require a lot of work to create a small abstraction of an "editor" ..  that different editors would implement (like Notifier or Mailer "bridges"... and indeed what was started with Maps)
And many features would be out of the scope of first versions, because they would require additional code that should not be imho in an Editor packages (ex: uploads).
In particular, data format should be taken in account as some editor use pure HTML, some other some specific intermediary syntax, some other use some JSON nodes format.. and in the server side too.
So this is really on the Form / DataTransformer / HtmlSanitizer that a lot of work should probably be done to create a secure and smooth DX... while creating way to use it in a generic way.  This is for me where this potential package could really be usefull.
Because in the end, if every editor require specific code, i'm not sure a component could be very useful.. and if the PHP part is just a 1:1 mapping of the JS code i'm not sure either it brings real value to the table.
And i'm not even talking of all the differences in the HTML and/or JS code required on the front-end..
So in my mind this is a very interesting idea, but not an easy one at all..  it would require a lot of work that I personnaly cannot invest at the moment... (but i'd be glad to help / have a look / answer questions if asked to :) )

A markdown editor would also be a good alternative imo.
There is already a markdown_to_html filter in twig/markdown-extra package, and with another opinionated php markdown package like the one from thephpleague or erusev/parsedown along with some stimulus/turbo thingy should do the trick.

I would like to suggest Lexical, an extensible text editor framework from Meta (Facebook), it sounds very very pleasant to use and custom, while being enough performant.


Discuss: disable react/style-prop-object by default and deprecate

If users want to catch type errors they should be using a type checker. This limits the ability for components in the ecosystem to use the style prop name even when it is the most reasonable choice.

My mistake, this is not part of the recommended preset

Bear in mind, that type systems are nowhere near as powerful as propTypes (although there's a few things they can check that propTypes can't), and you should always use propTypes, especially when using a type system.


Getters instead of magic __get in Hal\Entity

In the Hal\Collection class the magic __get for collection has been deprecated and now the getCollection method has to be called instead.
For consistency  would it not be better to also use similar solution for the Hal\Entity class.
So getEntity and getId methods
This pull request is related to https://github.com/zfcampus/zf-rest/pull/70

I realize now that the magic __get in Hal\Entity is by reference:
    public function &__get($name)
    {
        ...
    }

So I am not sure if changing this to a getter like I proposed will be possible at all. But @weierophinney  can maybe shed some light on this.

We return by reference so that if the entity is an array and you make changes to it, you don't need to re-inject. Not ideal, but changing that behavior now would break BC.

@weierophinney I synched this branch with master. Will it still be merged?

Merged to develop for release with 1.4.0.


pull request for e2e test at 12/11/2016 18:56:02

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Update List-AllProperties.ps1

Passing through EdgeRCFile to the functions (List-Groups, List-Properties) called within List-AllProperties
(I guess you'll need to update the signature on this\0

Thanks for this @K-a-r-l. I just updated this file for a different reason, so can you re-pull the repo and recreate your changes? Or I can include it in the next release. Sadly getting the files signed takes a lot of effort so it can take a while


find a way to make create's super glue unbreakable

 autistic.sack.of.friends on Discord says

the basic approaches of just giving it the "unbreakable" tag and setting it's durability to a really big negative number didn't work very well, requiring a normal super glue somewhere in the inventory to drain glue from.

 yarden.zamir on Discord says

What about right click intercept that sets durability to max?

 yarden.zamir on Discord says

That should work

 autistic.sack.of.friends on Discord says

yeah, that should work

 engineersmith_4628 on Discord says

Wouldn't something like

ItemEvents.modification((event) => {
  event.modify("creatre glue"), (item) => {
    item.maxDamage = 0
  })
})
``` Doesn't that make it so it can't die?

 engineersmith_4628 on Discord says

rather than having another event listening for input

 yarden.zamir on Discord says

Can someone test that maybe? Would be cool if it's just that

 engineersmith_4628 on Discord says

I think it should be -1 actually

 engineersmith_4628 on Discord says

Tsk of cause it isn't so simple. It doesn't use right click events or anything like that. Glue is checked each tick. I found the code which collects the durability
https://github.com/Creators-of-Create/Create/blob/mc1.18/dev/src/main/java/com/simibubi/create/content/contraptions/glue/SuperGlueSelectionHelper.java#L65

Called @ https://github.com/Creators-of-Create/Create/blob/mc1.19/dev/src/main/java/com/simibubi/create/content/contraptions/glue/SuperGlueSelectionHandler.java#L135
It's possible to override the function with ptdplus - but that isn't a quick fix

 yarden.zamir on Discord says

but a right click event does fire no? we can set durability to full on right click

 autistic.sack.of.friends on Discord says

what's the "instabuild" ability

 autistic.sack.of.friends on Discord says

is that just when pasting a blueprint

 engineersmith_4628 on Discord says

I tried that - it's it basically testing creative mode - by enabling it, it causes issues like duplicating tracks when you try to place them as it is used in other parts of create's code base


Secure logs

Removes user/pass from db urls

@garethbowen, updated with your great review. thank you.


fix(database-change): The task details cannot be viewed when creating a scheduled database change task in personal space and checking the option to generate rollback plan

What type of PR is this?
type-bug
module-database-change
What this PR does / why we need it:
after creating a scheduled database change task in personal space, the task details cannot be viewed after checking the option to generate a rollback plan.
The cause is FlowInstanceService#buildWithoutApprovalNode method incorrectly constructs FlowInstance when rollbackPlanInstance is added before the service task.
Which issue(s) this PR fixes:
Fixes #414
Special notes for your reviewer:

Additional documentation e.g., usage docs, etc.:

fix(database-change): The task details cannot be viewed when creating a scheduled database change task in personal space and checking the option to generate rollback plan

this title is too long, may 'fix(database-change): failed to view a scheduled database change task with rollback plan in personal space'


Finish serde_derive impl

Finish up the work on the serde branch, which mostly involves writing a few custom deserializers: https://github.com/zeyla/serenity/tree/serde

I hereby claim this territory in the name of open source.

Due to incoming changes, I'll do this issue instead.

Okey doke.

Closed by 8946e39.


Refactoring & documentation implementation

This PR bring documentation inside the VSCode editor, by the way some refactoring have been done.
List of changes:

Extracting code in multiples files for more readability and reusability
Now storing API URL in settings, this way when the user want to download the schema or get the documentation, we don't ask it everytime (except when token is expired, a new prompt is displayed)
New button to open embedded documentation :+1:
Maybe @Nico-Kestra you can suggest us a more beautiful icon ? (note that if necessary it can be different for light/dark theme)

New page for documentation

By default, we open the task one, at first it show a small information about how it works (clicking on a task) and a recall of every common properties for tasks, and when you click on a task, same as the actual kestra editor :

There is also a basic page that will explains the basics of a flow
@anna-geller files are the markdown in the documentation folder so very easy if you wanna improve it!

@rldorado I've assign you if you want to take a look at what is our vs code extension and maybe you could give some advice!

For me, the icon is okay since it's the same one used in the Help section for documentation.

@rldorado I've assign you if you want to take a look at what is our vs code extension and maybe you could give some advice!

Thank you for adding me and let me learn about VSCode extensions are working. I've just added some minor tweak comments.

I get a 2023-12-11 09:50:15,693 WARN  default-nioEventLoopGroup-1-31 io.kestra.webserver.access [Date: 2023-12-11T09:50:15.683714709+01:00] [Duration: 9 ms] [Method: GET] [Url: /api/v1/plugins/null] [Status: 404] [Length: 103] [Ip: <IP_ADDRESS>] [Port: 8080] call on every file change (on web only, standalone vscode seems not to do it)


Split Logger surface area

Feature Request
Split the logger surface area based on what customers use vs internal usage

Move some content from internal back to azcore.  Do we want to move logging to log package or keep in azcore?

Fixed


Write backpressure

This issue intends to discuss how would backpressure be implemented on writes to a Connection
Key considerations

How would it look like in case there is a single write.
How would it look like in case there are multiple concurrent writes.
How would we calculate demand i.e. how much to request from a write stream.

There have been some discussions around the same in issue #21 specifically in comments here and here

@smaldini and I were discussing backpressure with merge the other day and I agreed to share some details of what I've learned while implementing the beast in RxJava.
A concern brought up was the default behavior of RxJava merge to allow unbounded horizontal growth. This is not accidental and is permitted by default to prevent deadlock. Here are use cases and options we have considered:
Vertical vs Horizontal Bounded Buffers
I think of buffers in a streaming system in two directions, vertical and horizontal.
The vertical buffering is the pub/sub relationship and the one we generally think of. For example:
Observable.range(0, 10000).observeOn(Schedulers.io()).subscribe(observer);

This goes from "top" to "bottom" and has a "vertical" buffer inside observeOn.
All "vertical" buffers in RxJava are bounded. This is the Reactive Streams backpressure semantics. No producer can overwhelm a consumer.
Horizontal buffering comes when composing multiple streams. For example:
Observable s1 = Observable.range(0, 10000);
Observable s2 = Observable.range(0, 10000);

Observable.merge(s1, s2).observeOn(Schedulers.io()).subscribe(observer);

In this case we have bounded vertical buffering on both s1 and s2 and 2 streams buffered "horizontally".
Deadlock
If I artificially bound the horizontal buffering a system can deadlock. Here is an example showing how:
Observable s1 = Observable.never(); // simulate a very latent or empty stream that never completes
Observable s2 = Observable.never();
...
Observable s10 = Observable.just(1);

Observable.merge(s1, s2, ..., s10).take(1).observeOn(Schedulers.io()).subscribe(observer);

If merge limits the number of concurrent subscriptions to 8 (such as number of cores) then this will deadlock because:

it will subscribe to the first 8 and fill the horizontal buffer
the last 2 will not be subscribed to
the first 8 never complete so merge will never request from the next 2
nothing will ever be emitted and thus nothing will complete, even though it's only waiting for a single value

This behaves the same if I structure it as an Observable<Observable<T>> as under the covers it all becomes an Observable<Observable<T>> with request(n) semantics:
Observable s1 = Observable.never(); // simulate a very latent or empty stream that never completes
Observable s2 = Observable.never();
...
Observable s10 = Observable.just(1);

Observable<Observable<?>> os = Observable.from(s1, s2, ..., s10);

Observable.merge(os).take(1).observeOn(Schedulers.io()).subscribe(observer);

Even though we can use request(n) semantics on this Observable<Observable<?>> it is not approprate to do so for the merge case unless we know for sure that all of them are emitting data equally and completing.
Starvation
A similar issue is with long-lived streams, fairness and starvation.
Observable s1 = Observable.interval(1, TimeUnit.SECONDS).map(i -> a());
Observable s2 = Observable.interval(1, TimeUnit.SECONDS).map(i -> b());
...
Observable s10 = Observable.interval(1, TimeUnit.SECONDS).map(i -> j());

Observable.merge(s1, s2, ..., s10).take(1).observeOn(Schedulers.io()).subscribe(observer);

If concurrency is limited to 8, we will receive data from functions a() through h() but never from i() or j() since they are infinite streams and the first 8 never complete.
Developer Choice
For these 2 reasons we can not artificially limit the horizontal buffering. If a developer merges n streams, we must subscribe to all n streams.
There are however use cases where this results in horizontal buffer bloat, primarily when trying to do computationally driven parallel processing such as this:
Observable.range(0, 50000000)
    .window(500)
    .flatMap(work -> {
         return work.observeOn(Schedulers.computation()).map(item -> {
             // simulate computational work
                 try {
                     Thread.sleep(1);
                 } catch (Exception e) {
                 }
                 return item + " processed " + Thread.currentThread();
             });
}).toBlocking().forEach(System.out::println);

In this example it will horizontally buffer bloat and subscribe to 1000s of windowed Observables concurrently and start queueing it all up on the computation Scheduler. Not at all what is wanted.
It will run through 50,000,000 items very quickly and turn this into 10,000 windows and all of them will be enqueued. An infinite stream would be far worse.
In this case we leave it to the developer to specify that they want to limit concurrency using mergeMaxConcurrent or flatmap(o, maxConcurrent) by adding a parameter like this:
Observable.range(0, 50000000)
    .window(500)
    .flatMap(work -> {
         return work.observeOn(Schedulers.computation()).map(item -> {
             // simulate computational work
                 try {
                     Thread.sleep(1);
                 } catch (Exception e) {
                 }
                 return item + " processed " + Thread.currentThread();
             });
}, 8).toBlocking().forEach(System.out::println);

This will now only process 8 windowed Observables at a time and correctly emit backpressure upstream so the 50,000,000 will emit only when downstream has processed and the next chunk is wanted.
The upside is that backpressure all composes here and does what is wanted. The downside is that the backpressure only really composes vertically, not horizontally. The horizontal backpressure needs to be decided upon by the developer.
I am not aware of an approach to automatically solve horizontal backpressure in stream composition use cases without risking deadlock or starvation. We determined that deadlock (especially the silent async variety) and starvation are far more damaging and difficult to debug that the rare time when manual concurrency limits are needed and thus we have chosen what we consider the safest default behavior.
Application to IO Writes
The context above is shared as I see IO writes as the same. We have to subscribe to all of them and allow buffering per Publisher. Backpressure will still exist vertically, but horizontal backpressure likely needs to be done by the developer if they are doing one of the edge cases where it is needed. This is because a Publisher given to a write does not necessarily need to emit and complete and thus deadlock and starvation are both possible.


Upgrade kotlin version to 1.8.0

As of expo 49, expo modules use Gradle 8. Which makes the library fail to try to build an Android app. Check: #18

Thanks, LGTM


Redirect to calling app on destination reach

Hi, nice package, thank u. Do you plan to add the ability to redirect to the calling app when destination is reached on the Google Maps app (or waze), much like Uber?

I don't think this is possible with the way the plugin launches the maps application at the moment. But I do admit it would be cool. Can you think of a way? I'll close for now.


The Ward Field should only have top 6 fields.

The help label already states to select the ward number if patient is admitted to General Surgery.

#60


Bundling assets only on a specific platform (and remove assets on another platform)

Steps to Reproduce
Hi thanks for the wonderful Flutter! I have some images (1.1MB) that should only be used in Android, not iOS. Therefore, I want to remove those images from the IPA file in iOS. I have read the official doc, but it did not mention things like this :/
Expected results:
Give some options, such as (pubspec.yaml):
flutter:
  assets:
    android:
      - some_images_only_in_android/
    ios:
      - some_images_only_in_ios/
   all:
      - some_images_for_both/

Actual results: No such feature

Logs

@jonahwilliams Sorry IMHO that is not a duplicate... I want to bundle those 1MB photos only in Android. Thus, in the final .ipa file of iOS, there are no such photos taking space. Thanks!


Tag descriptions don't show up

For example, the us tag has a description:
https://github.com/UBICenter/ubicenter.github.io/blob/3f2842b72920b51bc36880401489cd7ae89b2bae/_data/tags.yml#L5-L7
Yet it doesn't show up, it just says A collection of 18 posts: https://ubicenter.github.io/tag/us/
Something's not working here:
https://github.com/UBICenter/ubicenter.github.io/blob/3f2842b72920b51bc36880401489cd7ae89b2bae/_layouts/tag.html#L23-L27

Wrapping the description text in quotes didn't work.


url helper after update to 3.0.3

after updated to 3.0.3 url helper. return value of localhost with IPv6 ???

#4217


Confusions about COCO_val2017_detections_AP_H_56_person.json

"COCO_val2017_detections_AP_H_56_person.json" is not for training. It is only used for evaluation. The boxes (det boxes) are generated by a detector. person_keypoints_val2017.json also contains bboxes, but boxes (gt boxes) are manually labeled. During inference, one can choose to evaluate by gt or det boxes, by setting use_gt_bbox=True or False (https://github.com/open-mmlab/mmpose/blob/a82dd486853a8a471522ac06b8b9356db61f8547/configs/top_down/resnet/coco/res50_coco_256x192.py#L70)

Your comments are right. What are your problems?
In our paper, we report the validation results without gt boxes. In general, the published papers report the validation results with the boxes generated by a detector, not the gt boxes.


Math magicians: Add events

I have added a click event that fires a function based on the operator type.
A user can add, subtract, multiply, divide, and clear.

Thanks for your feedback @peterrobert, I have now fixed the two issues above.


Display symbol names and a hex dump in "compile -D"

Another one in the series to improve the debuggability quality of life: display the symbol name in the "compile -D" command, as well as change the byte dump at the beginning with a crude hexdump.
No tests seems to expect anything with the string "Disassembly of {num} bytes", so no tests have been updated.
Here's an output sample (excerpt from compile -D cranelift/filetests/filetests/wasm/f64-arith.clif):
Hex dump of 44 bytes <%f64_copysign>:
55 48 89 e5 48 b9 00 00 00 00 00 00 00 80 66 48   UH··H·········fH
0f 6e f9 66 0f 6f d0 66 0f 6f c7 66 0f 55 c2 66   ·n·f·o·f·o·f·U·f
0f 54 f9 66 0f 56 c7 48 89 ec 5d c3               ·T·f·V·H··]·

Byte dump of 44 bytes <%f64_copysign>:
.byte 0x55, 0x48, 0x89, 0xe5, 0x48, 0xb9, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x66, 0x48
.byte 0x0f, 0x6e, 0xf9, 0x66, 0x0f, 0x6f, 0xd0, 0x66, 0x0f, 0x6f, 0xc7, 0x66, 0x0f, 0x55, 0xc2, 0x66
.byte 0x0f, 0x54, 0xf9, 0x66, 0x0f, 0x56, 0xc7, 0x48, 0x89, 0xec, 0x5d, 0xc3

Disassembly of 44 bytes <%f64_copysign>:
   0:	55                   	pushq	%rbp
   1:	48 89 e5             	movq	%rsp, %rbp
   4:	48 b9 00 00 00 00 00 00 00 80
				movabsq	$9223372036854775808, %rcx
   e:	66 48 0f 6e f9       	movq	%rcx, %xmm7
  13:	66 0f 6f d0          	movdqa	%xmm0, %xmm2
  17:	66 0f 6f c7          	movdqa	%xmm7, %xmm0
  1b:	66 0f 55 c2          	andnpd	%xmm2, %xmm0
  1f:	66 0f 54 f9          	andpd	%xmm1, %xmm7
  23:	66 0f 56 c7          	orpd	%xmm7, %xmm0
  27:	48 89 ec             	movq	%rbp, %rsp
  2a:	5d                   	popq	%rbp
  2b:	c3                   	retq

Adding the name seems like a really nice improvement, but I'm not sure about the additional hex and byte dumps, given that Capstone is already printing out the hex bytes of the instructions. Was there a specific case that you had in mind where they were improving debugging?

Rebased and force-pushed with only the change to show the function name.


Why there will use the blob when do the ingest using IngestFromStreamAsync, the connection string to blob is leaked during this process

I want to use the var ingestClient = KustoIngestFactory.CreateDirectIngestClient(kcsb); var ingestionProperties = new KustoIngestionProperties(databaseName, tableName) { Format = DataSourceFormat.multijson }; await ingestClient.IngestFromStreamAsync(stream, ingestionProperties);
But I found in this process, ther will be a put operation to blob storage, which contains the SAS token, https://xxxxxxxxxxxxxxxxxxxxxxxxx.blob.core.windows.net/xxxxxxxxxxxxxxxxxx-temp-xxxxxxxxxxx/3066_Upload_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.multijson.gz?sv=2022-11-02&st=2024-03-20T23%3A10%3A01Z&se=2024-03-21T23%3A15%3A01Z&sr=c&sp=rwd&sig=xxxxxxxxxxxxxxxxxxw%3D, Will this leak the information of the connected blob, which poses a security risk. I was reported this problem in the code while using it
Thanks！

We answered you in the nuget email, next time please choose only one channel for communication, unless you see a long time without a response.


Guild push fails if venv/.guild does not exist yet

guild push crashes when venv/.guild does not exist on the remote due to no prior guild op having been run. It fails on rsync mkdir with No such file or directory.

Thanks for the report! A fix for this is committed and will land in the next release.

This is fixed in 0.7.2.

This is fixed in 0.7.2.


ADD : Ability for upstream to request volunteers to maintain their flatpak versions !!!

It would be really nice to have a section on this store where upstream's who are short of resources can ... request for flatpak maintainers to package their apps to be added to the store
I certainly know of one such upstream with a slew of great applications but are thin on resources ... but are  open to providing assistance to a 3rd party maintainer/packager ... as posted HERE

I fail to see how this is within scope of the website...

There are few "third party" maintainers like @Alexander-Wilms and @bilelmoussaoui who could be interested, you can also just ask on IRC. We don't want requests here because we consider all applications "wanted" so it's matter of interest of upstream or downstream packagers.

The issue with Deepin apps is that they need a proper runtime or at least a baseApp. As I don't follow the Deepin dev closely I have no idea what they use and what not. If there are any specific app requests, you can always ping me and I will see what I can do when I have some free time to kill.

@barthalion ... thanks for talking the time to at least present an argument !!!
You need to understand that when one takes time to suggest / share a feature request ... he would be doing with a macro intention ... its not about how 'I' can get something done ... if that was the case your suggestion to contact @Alexander-Wilms ... and ... @bilelmoussaoui ... is bang on !
Consider this scenario/workflow ... (around the suggestion i have raised here which unfortunately have been shutdown due to lack of seeing the macro picture behind the same !!!)
after installing flatpak at the CLI ... Flathub is the de facto face of 'Flatpak project' ... the single and only point of entry ... its frontend !!!
users come here looking for apps ...

they find something they like ... they install ...
they don't find something but really want it ... (no avenue to address this scenario)

Now imagine Upstream Devs ... they already have successful linux apps for their supported distro's
We the flatpak project ... our success is determined by the number of users who adopt it, use it, like it , refer others to use it ... and we grow ... our ultimate goal ... every project's ultimate goal !!!
@barthalion  ...  like you rightly said 'ALL APPLICATIONS ARE/have to be of the 'WANTED' TAG !!! ... hence my thread to be more encouraging (again shutdown) ...
remember attitude is everything ... with the right kind you propel something high in the sky ... with the wrong kind you drive something into the ground
many linux dev's may not know of the flatpak system at all ... some may know but don't know if they need to dig deeper to find out ... we know there is BIG incentive in the concept of Flatpak ... but these Dev's who are already satisfied with their linux apps may not have the resources or aren't sold to this idea, or may simple not know it exists ... this GREAT concept ... what we are doing ... NOTHING !!!
Now If the above ... user scenario 2 ... which has been wasted(for the lack of an avenue to address it was) on the Flathub store website ... was to suddenly start hosting a section where he/she could just raise a 'Request for App' ... the subsequent user's are provided with an option to up vote the favorite app already present there ...
We have ended up creating a completely 'alive system' ... one that could be cited to the upstream devs of those apps ... the upstream may still not be interested ...
In the meantime ... this same 'Request for Apps' section along with our 'encouraging attitude' towards 3rd party maintainers ... will enable volunteers to take on these requested apps ... at least until the upstream are sold to the idea of participating in it themselves ...
Now Imagine we also have created a system where the install / usage app stat data(for unofficially maintained apps) is displaed ... one hand and  ... users 'requests for app vote count' ... on the other hand
... Wont these numbers improve our chances of getting the upstream to turn ... to make the cut to officially supporting their apps ???
Until this point ... the 'encouraging attitude' from the current 'discouraging' one ... is all that could make the difference
If i was to really manage and drive this whole ecosystem ...
I would look forward to volunteers ... 3rd party maintainers (college under grad individuals or freshly graduated individuals) to help me build the above data ... the numbers to get upstream to involve to participate officially.
End result an increase in our 'Officially supported app count' on our store ... our other objective a pretty important one at that ... which will enable timely updates directly from the upstream devs and better response times to issues and their resolution !!!
;
;
;
Again i may be an upstream with limited resources ... i have a section on the flathub store (remember flathub is the ONLY face for flatpak  where i can request for volunteers to help maintain / package flatpaks for ME ...
now Imagin this section of 'Request for maintainers/packagers' on flathub ... along with the section 'Requests for apps' will be the feeding points for volunteers who are willing to adopt apps and maintain it for us ... in the eventuality that some app loses its 3rd party maintainer ... that app can go back on the adoption list another list for orphaned apps ... and this section too will serve as feeding point for volunteers to adopt and continue maintaining them !
so you see how these various sections/systems/ processes ... call it whatever you want ... it helps drive our ultimate goal ... INCREASE APPS ON FLATHUB ... ENABLE and INCREASE USE OF FLATPAK APPS ... ENABLE AND INCREASE 'OFFICIALLY SUPPORTED APPS' ...
ALL BY just creating this separate sections no the Flathub store website !!!
I believe in this concept of Flatpak ... hence i am persistent ... some members out of haste call it spamming ... well what can one say to ... other than ... that they are myopic views !!!
SO IF THE TEAM SEES WHAT I AM TRYING TO SHOW ... THEN IT CERTAINLY A WIN-WIN FOR EVERYONE !!!


Feat:  stochastics -- time dependent parameters

This PR closes #145 and abstracts over some of the constant/time-dependent functionality of the stochastic processes.

The end user API should be unchanged.
There are potential slowdowns by adding assertions, but these should not be too large.

I had issues with cargo test as I am getting some issues with the macros in the time module. E.g., I get this error:
error: cannot determine resolution for the macro `datetime`
   --> src/time/calendars/united_states.rs:130:28
    |
130 |         let regular_day3 = datetime!(2023-10-25 12:00:00 UTC);
    |                            ^^^^^^^^
    |
    = note: import resolution is stuck, try simplifying macro imports

I cannot currently report that all tests pass now and I could use some assistance here!

We have a fix for the build issue. We'll submit a PR for that.


coco dataset usage

why do you extract 5k imgaes from val set instead of using all the val set images for novel fine-tuning?

Hi Thanks for sharing the  code, I just need a little help to understand the whole pipeline for the proposed fewshot learning: Is the pipeline as follow : 1- train on base, 2- run randinit  ckpt surgery 2- make a balance kshot of base+novel, 3- finetune only last layers on kshot all data?
or based on the train.doc I should first fine tune on novel, then combine surgery, then finetune on all kshot balance data?
I was not able to get fewshot coco results, my current result is the same as finetuing, and appreciate your help. Best


made cert manager certificate's commonName optional

Making certificate.commonName default to null. It should not default to admin-app as this field is optional. It can be set according to specific needs but it should not default to an irrelevant value.
https://cert-manager.io/docs/usage/certificate/#:~:text=%23 Avoid using commonName,%3A example.com
The main reason for making this change is that whenever we try to create Certificate, its commonName field defaults to admin-app which is unexpected behavior in default scenario. Setting it to nil will make more sense.

also according to the documentation it seems one doesn't need to set the commonName for the leaf certificates which belong to the applications


Sort dragged files so images are written first, then js, then css, then html for BlobUtils caching

I forgot to think about CSS also using image files when I did the sort order on dragged files.  We have to write them to the fs in the right order, or external resources won't be found when needed.  This fixes it.

r+, w/ minor nit


Refactor setup and testing

Some refactoring to setup.py and flake8-print added.

Thanks. I kinda prefer to have the dev requirements in requirements.txt.


[Request] Food statistics

Would it be possible to integrate also food statistics?
I have my food diary in the application and would be nice to see intake calories with macronutrients (Carb/Fat/Protein) to compare the days and the different intake.
Also adding weight and fat mass would be nice.

Here are the available API endpoints from the Fitbit official documentation : https://dev.fitbit.com/build/reference/web-api/nutrition/
Here is a web interface for testing their output structure (please check #28 on how to run this) : https://dev.fitbit.com/build/reference/web-api/explore/#/Nutrition
I personally do not have any food log, so can't test out the cases in the endpoints. So I would like to have someone make a pull request on this if they are interested based on the above hints.


Multi Version - Direct serial interface

HI
On the latest version, installed this morning (Sunsynk Inverter Add-on (multi): Current version: 2023.04.20b-0.3.2 (Changelog)) I get the below errors as reported in the log.  The application then crash.  Any ideas on a possible fix and the reason for these?

The actual value of the port below you can get from the DEBUG_DEVICE field in the UI (at the bottom of the settings)

Direct Serial + pymodbus
DRIVER: pymodbus
INVERTERS:
  - PORT: /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A9007CPR-if00-port0

Direct serial + umodbus
DRIVER: umodbus
INVERTERS:
  - PORT: /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A9007CPR-if00-port0

umodbus via mbusd (and mbusd to serial)
This will work, but won't help me to test the serial implementation

I had the exact same issue after migrating to the new release. I am glad I came across this thread as, touch wood, Direct Serial + pymodbus seemed to have resolved it.
There was a thread on powerforum with a user with the same issue, I will link them here for resolution.
PS. thanks for your work on this addon!

Same failure on my side since upgrading to HassOS 10.1. I've tried all 3 methods above to no avail.

When using Direct Serial + pymodbus I get no errors, but also no sensors available:
2023-05-01 17:01:07,796 INFO    ############################################################
2023-05-01 17:01:07,796 INFO                Inverter serial number '2209272082'
2023-05-01 17:01:07,796 INFO    ############################################################
2023-05-01 17:01:07,798 INFO    MQTT: Connecting to mqtt@<IP_ADDRESS>:1883

When using Direct serial + umodbus I get similar error as above:
2023-05-01 17:06:40,723 ERROR   Read Error: <class 'Exception'>: (1,16,2) 'Serial' object has no attribute 'host'
2023-05-01 17:06:40,744 INFO    ############################################################
2023-05-01 17:06:40,744 INFO    No response on the Modbus interface serial:///dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller-if00-port0, try checking the wiring to the Inverter, the USB-to-RS485 converter, etc

Any help would be appreciated. Thnx

When using Direct Serial + pymodbus I get no errors, but also no sensors available:
2023-05-01 17:01:07,796 INFO    ############################################################
2023-05-01 17:01:07,796 INFO                Inverter serial number '2209272082'
2023-05-01 17:01:07,796 INFO    ############################################################
2023-05-01 17:01:07,798 INFO    MQTT: Connecting to mqtt@<IP_ADDRESS>:1883

This is good. You either have no sensors in the addon config, or no auto-discovery enabled in HA

Thnx for responding. I definitely haven't turned off auto-discovery in HA and my addon config lists the following sensors:

total_pv_energy
total_battery_charge
total_battery_discharge
total_grid_export
total_grid_import
battery_soc
However on starting the addon with pymodbus, show me:
2023-05-01 20:30:08,423 INFO    Filter *last used for battery_soc, total_battery_charge, total_battery_discharge, total_grid_export, total_grid_import, total_pv_energy

I'm not a complete newb, but I must admit, this has had me pulling my hair out the last week! Any help would be appreciated. Thnx

DRIVER: pymodbus
INVERTERS:
  - PORT: ""

Thanks so much, This one worked for me "pymodbus - Using the device selected in DEBUG_DEVICE (at the bottom of the settings)".
All time out errors experienced on the original version is also gone now.  Using the NOW sensors, it also updates almost instantly by the second.  AWESOMENESS

Thnx for responding. I definitely haven't turned off auto-discovery in HA and my addon config lists the following sensors:

total_pv_energy
total_battery_charge
total_battery_discharge
total_grid_export
total_grid_import
battery_soc
However on starting the addon with pymodbus, show me:
2023-05-01 20:30:08,423 INFO    Filter *last used for battery_soc, total_battery_charge, total_battery_discharge, total_grid_export, total_grid_import, total_pv_energy

I'm not a complete newb, but I must admit, this has had me pulling my hair out the last week! Any help would be appreciated. Thnx

Best to open your own issue, as the driver seems to only be one of your problems. Please include all detail there including your mqtt server info

Thnx guys. After much struggling, the problem was the connection to the MQTT server! Prior to HassOS 10.1, connecting to HA internal MQTT server on <IP_ADDRESS> was working fine, but fails for some reason in 10.1.
FINALLY working again. Thanks for a great addon!

@cakuhn can you try these options?

pymodbus - Using the device selected in DEBUG_DEVICE (at the bottom of the settings)DRIVER: pymodbus
INVERTERS:
  - PORT: ""

Direct Serial + pymodbusDRIVER: pymodbus
INVERTERS:
  - PORT: /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A9007CPR-if00-port0

Direct serial + umodbusDRIVER: umodbus
INVERTERS:
  - PORT: serial:///dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A9007CPR-if00-port0

umodbus via mbusd (and mbusd to serial)
This will work, but won't help me to test the serial implementation.

I have a similar issue as reported at the opening of the issue. All pymodbus options give me the following error:
2023-08-15 19:28:56,497 INFO    Loading HASS OS configuration
2023-08-15 19:28:56,736 INFO    Using Single phase sensor definitions.
2023-08-15 19:28:56,740 INFO    Connecting to /dev/serial/by-id/usb-Exar_Corp._XR21B1411_E5019832061-if00
2023-08-15 19:28:56,741 INFO    PyModbus 3.2.2 Serial: /dev/serial/by-id/usb-Exar_Corp._XR21B1411_E5019832061-if00
2023-08-15 19:28:56,745 INFO    Serial connected.
2023-08-15 19:28:56,747 INFO    Connected to /dev/serial/by-id/usb-Exar_Corp._XR21B1411_E5019832061-if00
2023-08-15 19:28:56,747 INFO    Reading startup sensors rated_power, serial
2023-08-15 19:28:59,756 INFO    Serial lost connection.
2023-08-15 19:28:59,758 INFO    Serial lost connection.
2023-08-15 19:28:59,759 WARNING Ignoring launch of delayed reconnection, another is in progress
2023-08-15 19:28:59,766 ERROR   timeout reading register 3 (5)
2023-08-15 19:28:59,767 INFO    ############################################################
2023-08-15 19:28:59,768 INFO    No response on the Modbus interface /dev/serial/by-id/usb-Exar_Corp._XR21B1411_E5019832061-if00, try checking the wiring to the Inverter, the USB-to-RS485 converter, etc
2023-08-15 19:28:59,768 INFO    ############################################################
2023-08-15 19:28:59,769 CRITICAL This Add-On will terminate in 30 seconds, use the Supervisor Watchdog to restart automatically.
2023-08-15 19:28:59,869 INFO    Serial connected.
2023-08-15 19:28:59,871 INFO    Connected to /dev/serial/by-id/usb-Exar_Corp._XR21B1411_E5019832061-if00

The umodbus options gives me the same error: 'Serial' object has no attribute 'host'
The cable should work as I have tested it with a SolarAssitant setup, however, that was on a Deye 5kw inverter. I'm trying to install this add-on on a Sunsynk 8kW,
mbusb does not seem to connect.
Any ideas?

Try the faul finding guide & make sure you plug it into the correct port - see the adaptors & wiring page. Maybe this is a newer model with a shared port?
https://kellerza.github.io/sunsynk/guide/fault-finding

I've tried both ports to test whether it is a combined port. I've also checked everything on the fault finding page.
As stated previously the cable wiring is definitely correct as it work on a previous SolarAssistant setup. Is there a way to check the port on the Inverter, i.e. that it is actually working.

Try from your laptop with modbuspoll/modbus CLI
If still not working ~R100 will get you a different RS485 adaptor & run a short wire while standing next to the inverter.
Personally, I would just redo the wire since you changed the Inverter

Ok I preserved ( 11hrs solid lol ) .
I got a connection after entering the inverter serial number and changing port to “ “.
So the log went further than before but stopped at seemingly waiting for mqtt ? So I added mqtt broker and now it works except I’m missing some data like pv2 and total solar ( pv1+pv2 ). How can I add the sensor ?
also power flow card doesn’t show data.
09:10:04 INFO                 Inverter serial number '****6757'
09:10:04 INFO    ############################################################
09:10:04 INFO    MQTT: Connecting to Home@core-mosquitto:1883
Then
09:10:08 INFO    MQTT: Connection successful
09:10:08 INFO    Read every (inverter 1)
+-----+---------------------------------------------------------------------------------+
|  s  |                                     Sensors                                     |
+-----+---------------------------------------------------------------------------------+
|  2  | grid_ct_power, inverter_power, grid_power, pv1_power, battery_power, aux_power, |
|     |                       non_essential_power, essential_power                      |
|  5  |      prog1_power, prog5_capacity, prog3_charge, prog3_time, prog4_capacity,     |
|     |   prog1_time, prog1_charge, prog6_capacity, use_timer, load_limit, prog5_time,  |
|     |  prog3_capacity, prog6_power, prog2_time, battery_low_capacity, prog2_capacity, |
|     |     prog4_charge, priority_load, prog5_charge, prog1_capacity, prog2_power,     |
|     |  prog6_time, prog5_power, prog2_charge, prog4_power, prog6_charge, prog4_time,  |
|     |                                   prog3_power                                   |
|  15 |    grid_frequency, overall_state, battery_soc, battery_voltage, grid_voltage,   |
|     |   pv1_current, grid_connected, battery_current, inverter_current, pv1_voltage,  |
|     |                                  load_frequency                                 |
| 300 |            total_grid_import, day_battery_discharge, total_pv_energy,           |
|     |        total_battery_discharge, day_battery_charge, total_battery_charge,       |
|     |       day_pv_energy, day_grid_export, total_grid_export, day_grid_import,       |
|     |                                 day_load_energy                                 |
+-----+---------------------------------------------------------------------------------+
09:10:09 INFO    Report every (inverter 1)
+-----+----------------------------------------------------------------------------------+
|  s  |                                     Sensors                                      |
+-----+----------------------------------------------------------------------------------+
|  2  | grid_ct_power, inverter_power, grid_power, pv1_power, battery_power, aux_power,  |
|     |                       non_essential_power, essential_power                       |
| 300 |      overall_state, prog1_power, day_pv_energy, battery_soc, prog3_charge,       |
|     |     prog3_time, prog4_capacity, prog5_capacity, prog1_time, day_grid_import,     |
|     |      prog1_charge, day_load_energy, prog6_capacity, use_timer, load_limit,       |
|     |        total_battery_charge, prog5_time, day_grid_export, load_frequency,        |
|     |         prog3_capacity, prog6_power, day_battery_discharge, prog2_time,          |
|     |    battery_low_capacity, total_pv_energy, prog2_capacity, day_battery_charge,    |
|     |   priority_load, prog4_charge, battery_voltage, prog5_charge, prog1_capacity,    |
|     | battery_current, inverter_current, total_grid_export, pv1_voltage, prog2_power,  |
|     |    prog6_time, prog5_power, prog2_charge, total_grid_import, grid_frequency,     |
|     | total_battery_discharge, grid_voltage, pv1_current, grid_connected, prog4_power, |
|     |                      prog6_charge, prog4_time, prog3_power                       |
+-----+----------------------------------------------------------------------------------+

@Leecavturbo nice!
The docs will show you that pv2_power is another sensor. There is no combined sensor for pv1+pv2 today, but you can build one with mysensors or a template (mysensors is probably more accurate)
If power flow card shows nothing you probably have incorrect entity names. Check these under devices/dev tools- state

@Leecavturbo nice!
The docs will show you that pv2_power is another sensor. There is no combined sensor for pv1+pv2 today, but you can build one with mysensors or a template (mysensors is probably more accurate)
If power flow card shows nothing you probably have incorrect entity names. Check these under devices/dev tools- state

Thanks any / all help pointers appreciated for a novice 👍

You can use total PV energy sensor for the flow chart .
System do the calcul automatically and show only the day prod .

You can use total PV energy sensor for the flow chart .
System do the calcul automatically and show only the day prod .

Does that give Pv1+Pv2 power ? Not Kwh

Yes kWh but the HA flow chart only use kWh or you talking about other flow
chart?
Le dim. 3 sept. 2023 à 17:23, Leecavturbo @.***> a
écrit :

You can use total PV energy sensor for the flow chart .
System do the calcul automatically and show only the day prod .
Does that give Pv1+Pv2 power ? Not Kwh
—
Reply to this email directly, view it on GitHub
https://github.com/kellerza/sunsynk/issues/131#issuecomment-1704333233,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AYDJ6M3QMDU5QIIKLKFYWQ3XYSOHLANCNFSM6AAAAAAXGM3XVI
.
You are receiving this because you commented.Message ID:
@.***>

Yes kWh but the HA flow chart only use kWh or you talking about other flow chart? Le dim. 3 sept. 2023 à 17:23, Leecavturbo @.***> a écrit :
…

Pv1 power shows the instantaneous KW if that mppt ( string ) pv2 and the combined is what I’m after in kw

You can use total PV energy sensor for the flow chart .
System do the calcul automatically and show only the day prod .

Does that give Pv1+Pv2 power ? Not Kwh

SENSORS += MathSensor((186, 187), "PV power sum", WATT, factors=(1, 1))
That works for me, in case you wanna sum of pv1+pv2 in a single sensor

You can use total PV energy sensor for the flow chart .
System do the calcul automatically and show only the day prod .

Does that give Pv1+Pv2 power ? Not Kwh

SENSORS += MathSensor((186, 187), "PV power sum", WATT, factors=(1, 1)) That works for me, in case you wanna sum of pv1+pv2 in a single sensor (see this for details, it requires a some hand work)

Wouldn’t even know where to start and I’ve never seen pv2 (187) as a sensor so suspect move work before your math sensor 👍

I've been wondering if I should not simply add an all group? (especially for people not reading the docs :wink:)
pv2_power is now part of the defaults just to show people you can add other sensors. here - do we need to add more defaults?

SENSORS += MathSensor((186, 187), "PV power sum", WATT, factors=(1, 1)) That works for me, in case you wanna sum of pv1+pv2 in a single sensor (see this for details, it requires a some hand work)

Nice solution.
If you use the power flow card you can also visualize two separate sensors and see the total in the UI -

You can use total PV energy sensor for the flow chart .
System do the calcul automatically and show only the day prod .

Does that give Pv1+Pv2 power ? Not Kwh

SENSORS += MathSensor((186, 187), "PV power sum", WATT, factors=(1, 1)) That works for me, in case you wanna sum of pv1+pv2 in a single sensor (see this for details, it requires a some hand work)

got samba working and established i can create the .py from windows as notepad save as > in the share/hass-addon . but the code from 'here' link doesn't give your example. just add text below to the code ?

to update pv1 +pv2 sum is now working with SS add-on. Sensor = pv lowercase.

Anyone know what the sensor for UPS load is load_2 or output_2 eg ?

Anyone know what the sensor for UPS load is ? load_2 or output_2 eg ?

If you meant backup power output I guess you should read issues about all that sensors ("essentials" is a load on backup output):
https://github.com/kellerza/sunsynk/blob/main/src/sunsynk/definitions.py#L91-L104


Update Release date to match Work Item

Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
Only release date update
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:

[ ] The pull request does not introduce [breaking changes]
[X ] CHANGELOG is updated for new features, bug fixes or other significant changes.
[ ] I have read the contribution guidelines.

General Guidelines and Best Practices

[ ] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

API change check
API changes are not detected in this pull request.


Fix mariadb drivers

Motivation for this change
The mariadb unixODBC drivers fail to load with an unhelpful error message - https://github.com/NixOS/nixpkgs/issues/73258
I haven't been able to pin down what exactly is wrong, but I've found that building against the subrepo rather than against the system libmysqlclient leads to working drivers.
I've tested this PR against mariadb on NixOS and OS X Mojave.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[x] macOS
[ ] other Linux distributions

[x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Notify maintainers
cc @

jamie@machine:~/nixpkgs$ nix-shell -p nix-review --run "nix-review wip"
these paths will be fetched (0.03 MiB download, 0.10 MiB unpacked):
  /nix/store/wvrisx65diwaf934clcx7gld33j7b5bg-nix-review-2.0.1
copying path '/nix/store/wvrisx65diwaf934clcx7gld33j7b5bg-nix-review-2.0.1' from 'https://cache.nixos.org'...
$ git fetch --force https://github.com/NixOS/nixpkgs master:refs/nix-review/0
remote: Enumerating objects: 1216, done.
remote: Counting objects: 100% (1216/1216), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 2489 (delta 1212), reused 1214 (delta 1212), pack-reused 1273
Receiving objects: 100% (2489/2489), 1.19 MiB | 2.63 MiB/s, done.
Resolving deltas: 100% (1786/1786), completed with 568 local objects.
From https://github.com/NixOS/nixpkgs
 * [new branch]              master     -> refs/nix-review/0
$ git worktree add /home/jamie/.cache/nix-review/rev-053d2dc590afd23d9ca7f2d354666ff3c6ea628e-dirty/nixpkgs 8960509fc5308dd4ab500f537c30ada256695d7a
Preparing worktree (detached HEAD 8960509fc53)
Updating files: 100% (20343/20343), done.
HEAD is now at 8960509fc53 cargo-make: 0.23.0 -> 0.24.0
$ nix-env -f /home/jamie/.cache/nix-review/rev-053d2dc590afd23d9ca7f2d354666ff3c6ea628e-dirty/nixpkgs -qaP --xml --out-path --show-trace
Applying `nixpkgs` diff...
$ nix-env -f /home/jamie/.cache/nix-review/rev-053d2dc590afd23d9ca7f2d354666ff3c6ea628e-dirty/nixpkgs -qaP --xml --out-path --show-trace --meta
Nothing changed
No packages were successfully build, skip nix-shell
$ git worktree prune

There don't appear to be any tests.

@aanderse

libmysqlclient is no longer being referenced so you should remove it. This will also make the backport to 19.09 easier.

Thank you very much @jamii! Are you going to open a backport PR?

Not soon. I was asked to spend less time working on nix stuff :man_shrugging:

I'll grab it then. Thanks again... and sorry to hear :-(


timewall: init at 1.2.0

Adding timewall - a program for using Apple's dynamic HEIF wallpaper files on Linux.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

(checked: the functionality doesn't depend on specific program, thus not linux only)


Startup crash with 1.3.5+

Hey I'm getting startup crashes with the latest releases, going back to 1.3.4 resolves it:
Jun 30 08:16:32 chip matterbridge[6899]: [08:16:32.575] [Matterbridge] Matter server started
Jun 30 08:16:32 chip matterbridge[6899]: [08:16:32.576] [Matterbridge] The commissioning server on port 5541 for matterbridge-zigbee2mqtt is already commissioned. Waiting for controllers to connect ...
Jun 30 08:16:32 chip matterbridge[6899]: [08:16:32.576] [Matterbridge] Commissioned fabric information:
Jun 30 08:16:32 chip matterbridge[6899]: [08:16:32.576] [Matterbridge] - fabric index 1 id <snip> vendor 4631 (Alexa) Alexa-1
Jun 30 08:16:32 chip matterbridge[6899]: /usr/lib/node_modules/matterbridge/node_modules/node-persist/src/local-storage.js:449
Jun 30 08:16:32 chip matterbridge[6899]: 		return this.options.stringify(obj);
Jun 30 08:16:32 chip matterbridge[6899]: 		                    ^
Jun 30 08:16:32 chip matterbridge[6899]: TypeError: Do not know how to serialize a BigInt
Jun 30 08:16:32 chip matterbridge[6899]:     at Object.stringify (<anonymous>)
Jun 30 08:16:32 chip matterbridge[6899]:     at LocalStorage.stringify (/usr/lib/node_modules/matterbridge/node_modules/node-persist/src/local-storage.js:449:23)
Jun 30 08:16:32 chip matterbridge[6899]:     at LocalStorage.copy (/usr/lib/node_modules/matterbridge/node_modules/node-persist/src/local-storage.js:469:26)
Jun 30 08:16:32 chip matterbridge[6899]:     at LocalStorage.setItem (/usr/lib/node_modules/matterbridge/node_modules/node-persist/src/local-storage.js:179:20)
Jun 30 08:16:32 chip matterbridge[6899]:     at NodeStorage.set (file:///usr/lib/node_modules/matterbridge/node_modules/node-persist-manager/dist/nodeStorage.js:148:35)
Jun 30 08:16:32 chip matterbridge[6899]:     at Matterbridge.showCommissioningQRCode (file:///usr/lib/node_modules/matterbridge/dist/matterbridge.js:1969:37)
Jun 30 08:16:32 chip matterbridge[6899]:     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Jun 30 08:16:32 chip matterbridge[6899]:     at async Timeout.<anonymous> (file:///usr/lib/node_modules/matterbridge/dist/matterbridge.js:1799:21)

After getting that it then can't restart at all:
Jun 30 08:17:23 chip matterbridge[7099]: CLI: Matterbridge.loadInstance() failed with error: Error: [node-persist][readFile] /home/mb/.matterbridge/storage/.matterbridge/c6724947ca70506d3d4794dd710813af1a1ef8e646852dba3fe0dea6a2aa7911 does not look like a valid storage file!

The file is 0 bytes, after deleting it and going back to 1.3.4 it contains:
{"key":"matterbridgeLatestVersion","value":"1.3.7"}

I'm running in childbridge mode with the latest matterbridge-zigbee2mqtt (2.1.4) and matterbridge-home-assistant (1.3.6) plugins.  I don't see any obvious BigInt changes, let me know any other info you need.

Interesting ... but yes bigint is not handled by JSON.stringify by default ... @Luligu We have extra stiff in matter,js to stringify correctly including bigint

Hi,
thanks for letting me kno.
Fixed with
[1.3.8] - 2024-07-01
Fixed

[matterbridge]: Fixed crash in childbridge mode

@Apollon77 thanks me too of course but the problem is express. I will sanitize fabricInfo.

All good here again with 1.3.8, thx!

Great!
Thanks again.


issue with accessing created VM

Description
Outline the issue here:
I'm using Azure CLI 2.0.
I've installed it under Bash on Ubuntu on Windows according to https://docs.microsoft.com/en-us/cli/azure/install-azure-cli#windows
I have a VHD-image in Azure and I try to create VM from it.
I have issue with accessing to created VM if I use the command:
az vm create ... --attach-os-disk ... --admin-password Azure1234567890+ --admin-username azureuser --authentication-type password --os-type linux
when I try to connect to VM using
ssh azureuser@VM-IP-address
I get an error message about authentication failure.
If I reset password of 'azureuser' with
az vm extension set --name VMAccessForLinux --publisher Microsoft.OSTCExtensions --protected-settings '{"username":"azureuser","password":"Azure1234567890+"}'
I can connect to the VM.
I don't have authentication failure issue, i.e. I can successfully connect to created VM if I use the following commands:
az vm create ... --attach-os-disk ... --os-type linux
az vm extension set --name VMAccessForLinux --publisher Microsoft.OSTCExtensions --protected-settings '{"username":"azureuser","password":"Azure1234567890+"}'
Environment summary
Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Answer here:
Bash on Ubuntu on Windows according to https://docs.microsoft.com/en-us/cli/azure/install-azure-cli#windows
CLI Version: What version of the CLI and modules are installed? (Use az --version)
Answer here:
D:>az --version
azure-cli (2.0.6)
D:>bash
root@ALEXEY-HP:/mnt/d# az --version
azure-cli (2.0.6)
OS Version: What OS and version are you using?
Answer here:
Windows 10 Pro 64-bit
Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here:
cmd.exe, Bash on Windows

The pertinent issue is when attach to an existing OS disk, the creds provided in the command line are not picked up by server, probably by design. We should either error out on unused args or make it work
az vm create ... --attach-os-disk ... --admin-password Azure1234567890+ --admin-username azureuser --authentication-type password --os-type linux

+1 for raising an error. If you are attaching an existing OS disk, you have to know that disk's credentials.

ok, I see.
Frankly I don't understand the difference for creating new VM's OS user:

either during creating VM
or after it
Compare it with VM creation using OS image:
az vm create ... --image CentOS ... --admin-password Azure1234567890+ --admin-username azureuser --authentication-type password --os-disk-name myosdisk
It works fine, no authentication failure at all.
Why?

Another point is about VM's OS user existing in VHD image - I cannot change its password via 'az' commands (see above).
I looked through waagent log files and found out an error message similar to 'cannot change password for system user'.
Is it by design as well? If so is it documented somewhere?
Many thanks!

If you were using a generalized image, you would be able to create a VM from that image and supply the credentials at create time. That is essentially what happens when you specify --image CentOS.
https://www.tech-coffee.net/deploy-azure-vm-from-a-generalized-image/
Using an existing (non-generalized) disk you can still log in to it (assuming you know the credentials) and then set up additional accounts.

that's the issue: in both cases I provide the same '--admin-password Azure1234567890+ --admin-username azureuser --authentication-type password' but in case of VHD-image I cannot login to VM after creation with these credentials.
Am I alone?

Was your VHD generalized beforehand?  If not, this is the expected behavior.

existing VHD image has credentials, but I try to create new user 'azureuser' which doesn't exist in VHD image.
at the same time I can add it in separate command after creating VM - that's odd a bit.

Yes, you cannot create a new user in that VHD during the VM create process.

ok, got it!
what I have is:

clear case
create new user credentials works fine
az vm create ... --image ... --admin-password Azure1234567890+ --admin-username azureuser --authentication-type password

needs to be fixed/documented case, but at least with known solution
create new user credentials doesn't work with
az vm create ... --attach-os-disk ... --admin-password Azure1234567890+ --admin-username azureuser --authentication-type password
new user credentials have to be created with additional command
az vm extension set ... --name VMAccessForLinux --publisher Microsoft.OSTCExtensions --protected-settings '{"username":"azureuser","password":"Azure1234567890+"}'

needs to be clarified case
reset password of the user existing in VHD image doesn't work either with
az vm create ... --attach-os-disk ... --admin-password <NEW_PASSWORD_FOR_EXISTING_USER> --admin-username <EXISTING_USER> --authentication-type password
or with
az vm extension set ... --name VMAccessForLinux --publisher Microsoft.OSTCExtensions --protected-settings '{"username":"<EXISTING_USER>","password":"<NEW_PASSWORD_FOR_EXISTING_USER>"}'

thanks in advance!


PLOT overlay uses wrong time range, spills outside plot bounds

Reported by andrew wittenberg on 28 Dec 2015 23:01 UTC
Why don't the time series have the same time-axis scaling in the following two plots?
 	NOAA/PMEL TMAP
 	FERRET v6.961 (beta)
 	Linux 2.6.32-573.8.1.el6.x86_64 64-bit - 12/09/15
 	28-Dec-15 17:52

yes? use a.nc
yes? set v upper; plot precip[set v lower; shade precip; plot/ov precip[y=0](y=0]
yes?)

(My actual application is to plot the position of the y-maximum, but this is a simpler illustration of the plotting bug.)
I also tried using ncatted to copy the units and calendar attributes from TIME to TIME_bnds in a.nc, but that didn't help.
Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/2344

Comment by ansley.b.manke on 5 Jan 2016 17:20 UTC
This is not new; it goes back at least several years.

Comment by ansley.b.manke on 5 Jan 2016 20:43 UTC
This issue is a "feature" of PPLUS time handling, described here:
http://ferret.pmel.noaa.gov/Ferret/faq/overlaying-a-time-series-on-a-2d-plot

For sure we should do better than this; I'll investigate what it will take.
(edit to make sure the link works)

Comment by ansley.b.manke on 7 Jan 2016 00:43 UTC
This is fixed.  For 2D plots with a time axis, I convert the time information that Ferret sends to PPLUS to units of hours.  This way the logic in PPLUS which handles the scaling and time-axis drawing remains unchanged.

Comment by ansley.b.manke on 11 Jan 2016 19:17 UTC
Reopening this. My fix causes problems with other overlays, as in the example in the FAQ,
http://ferret.pmel.noaa.gov/Ferret/faq/overlaying-on-a-time-axis-plot
I have restored the previous versions of the code, in plt/disp_set_up.F, plt/axis_format.F, utl/box_bounds.F, and ppl/plot/box_centers.F

Comment by ansley.b.manke on 12 Jan 2016 00:45 UTC
This is fixed. Save the time scaling when making a 2D time plot, and then use that when drawing a time series plot overlay. Reinitialize the saved scale factor on each new plot or on clearing the plot window.  See dt_save in setax.F, pplldx.F, and resetting in disp_init.F and disp_reset.F.

Attachment from andrew.wittenberg on 28 Dec 2015 23:02 UTC
The input file.
REPLACE THIS TEXT WITH UPLOADED FILE ./attachments/TRAC_2344_GIT_1616/a.nc

Attachment from andrew.wittenberg on 28 Dec 2015 23:02 UTC
The resulting plot.
REPLACE THIS TEXT WITH UPLOADED FILE ./attachments/TRAC_2344_GIT_1616/plot.gif


Need mysql shell-client for JSP

Hi guys! First off, thanks for your page.
I'm looking mysql shell-client for jsp. (I just want browse tables,columns)
I've founded mysql client in one of your shell's but there i can do just simple sql commands, that doesn't enough for me. Any help?

hi can you  use other tools ??
like： https://github.com/antoor/antSword/tree/v1.3-dev
i think you will love this it~


Migrate Application store to the global/static one

fixes https://github.com/okfn/opendataeditor/issues/369
connects https://github.com/okfn/opendataeditor/issues/430

Historically, the application was started as a set of independent components (to be shared for Frictionless Universe), and the modular pattern was used consistently for even high-level components like applications/controllers. Now we have some time to refactor it, so using a global/static store will bring many pros:

state isolation behind actions
simplified action writing (plain functions)
ability to group actions by function (perceivable file lenghts)
reduction duplication between application/controllers (in the following PR, I will merge controllers into the global store)
proper debugging with time travel
isolated store testing

Untitled_ Jun 28, 2024 11_13 AM.webm
It's a massive change that would be totally dangerous to do in JavaScript without tests in-place but in TypeScripe we can be 98% sure that it's properly migrated as it won't pass type checking otherwise.
Anyway, I added an example of testing for the store -- it will be good to write tests ASAP.

Interestingly, why rollup is not catching the import config from Vite. I'll investigate

Looks good @roll ! A lot cleaner :)
Agree that we need to have tests ASAP. Now that we are finishing the workflows we could start implementing them.

Thanks! I use this approach in new projects, and I think it's more readable/maintainable compared to the default Zustand patterns. Also immer allows stop thinking about the way state was changed (like creating new copies of array/object to trigger re-renders) and just program the changes itself


OP-18516 : Token based authentication mechanism supporting changes

Jira - https://devopsmx.atlassian.net/browse/OP-18516
We prefer small, well tested pull requests.
Please refer to Contributing to Spinnaker.
When filling out a pull request, please consider the following:

Follow the commit message conventions found here.
Provide a descriptive summary for your changes.
If it fixes a bug or resolves a feature request, be sure to link to that issue.
Add inline code comments to changes that might not be obvious.
Squash your commits as you keep adding changes.
Add a comment to @spinnaker/reviewers for review if your issue has been outstanding for more than 3 days.

Note that we are unlikely to accept pull requests that add features without prior discussion. The best way to propose a feature is to open an issue first and discuss your ideas there before implementing them.

This PR successfully triggered this build https://jenkins.opsmx.net:8181/jenkins/job/Dev-gate-forargo/19/

This PR successfully triggered this build https://jenkins.opsmx.net:8181/jenkins/job/Dev-gate-forargo/21/

This PR successfully triggered this build https://jenkins.opsmx.net:8181/jenkins/job/Dev-gate-forargo/23/


IDEA: CLI tool

Would be nice if we could have some kind of CLI tool that can:

[ ] Install the boilerplate
[ ] Perform upgrades/migration
[ ] Simple code mods (flow => typescript migration)

(these are just ideas. feel free to comment your own ideas)

For CLI commander js can be used.
https://github.com/tj/commander.js
But how ? In main or renderer process ? Would it work after packaging ?

This would be an npm package

@amilajack Consider to use electron-webpack under the hood. electron-vue will soon move to electron-webpack for easy update. e.g. there is preset https://www.npmjs.com/package/electron-webpack-vue and this project can also move all code from user project to some preset like electron-webpack-react.


Expose parameter management function

The parameter command line interface requires users to use bash. However, there are some python functions defined in parameters_cli.py that we could expose so that e.g. instead of
%%bash
pybamm_edit_parameter lithium_ion

you can just do
pybamm.edit_parameter(["lithium_ion"])

directly in python.

Update this notebook too

Working on this issue

@Saransh-cpp @tinosulzer ,I will have to edit the edit_parameter function in the cli_parameter.py

You can already do
from pybamm.parameters_cli import edit_parameter
edit_parameter(["lithium_ion"])

so it's just a matter of importing edit_parameter in the  __init__.py in the pybamm directory.
We should also add captions to the training videos where we talk about the CLI showing the new method (which will be useful for windows users).

edit_parameter function will be removed now that all parameters are specified by single python files, which makes it pretty intuitive how to specify your own


Useless on Android 14 (black screen)

Please read the prerequisites to run scrcpy.
Also read the FAQ and check if your issue already exists.
Environment

OS: Windows 10
Scrcpy version: 3.1
Installation method: Windows release
Device model: Galaxy M35
Android version: 14

Describe the bug
On Android 14, no protected screen allows screen capture anymore; the screen just goes black. Now there's no difference compared to using the native screen capture mechanism. I know this must be very difficult to work around, but life finds a way — life always finds a way.

#2129 #36


Use available indexes when in CaseTransformFunction

We are seeing various cases where auto generated SQL from visualization tools perform a lot of transforms/filtering using CASE WHEN from within aggregation functions. However, if the original predicate in the where clause had low selectivity, we end up scanning a lot of data to perform the CaseTransform evaluation. It would be good to see if we can utilize available indexes (when possible) for evaluating these as well.
cc: @atris @kishoreg

Let's just promote the use of FILTER clauses instead of Case When, since it will be able to use the relevant index

Sure, but that would mean we re-write the query internally, as many a times users may not directly control the query generated for Pinot.

Yes, good point. Let's rewrite all case queries to use the filter plan instead

Are we going to run multiple queries corresponding to each condition inside the CaseTransform? @atris

No, a single scan with multiple predicate evaluations along the way. Please see:
https://github.com/apache/pinot/pull/7830

I see. This is used to reduce the data set for aggregation. My use case is:
select case
when timeStamp IS NULL then now()
else timestamp
end
from meetupRsvp
https://github.com/apache/pinot/issues/7835 is different that there might be no aggregation in my use case. It will generate one column. it will generate different columns inside the resultset.


[Bug][PermissionSet] Using security filter on table containing parenthesis in the caption

Hello,
I would report an issue we encounter on table containing ( or ) characters in their caption when using Security Filter.
This is valid from all versions starting with at least 19.5.

Go into the permission sets page
Create a permission set and go into the objects permissions page
Add a permission on an object containing the character ( or ) (for example, let's use the tabledata 5896 - "Inventory Adjmt. Entry (Order)"
Grant full access to Read, Insert, Modify and Delete permissions (it does not matter)
Attempt to add a security filter on field Order No. with value *TEST*

=> You'll get the following error message

The filter "@Inventory Adjmt. Entry (Order)" is not valid for the Object Name field on the AllObj table. An error occured while interpreting the filter: Did not expect '('. For more information, see https://go.microsoft.com/fwlink/?linkid=2158058.

I'm sorry but our team cannot process and fix bug reports here. We have technical support who is dedicated for that.
This repository is only for extensibility requests for Dynamics 365 Business Central. We suggest that you open a support case or file a bug to ensure that all Business Central users benefit from your catch as soon as possible:
•	On premises - https://support.microsoft.com/en-us/supportforbusiness/productselection?sapId=93d37907-ad94-d591-22e9-593cfa09dd3f
•	On line – contact your partner, or if you are a partner open a support incident through Partner Center - https://partner.microsoft.com/en-us/pcv/dashboard/overview


Tests fails with RN 0.59

If a test has the tsx extension and contains JSX code, the tests fails with this error message :
Jest encountered an unexpected token

However, if the tests does not contain JSX, it works perfectly.

However, with this configuration, it works perfectly:
module.exports = {
  "preset": "react-native",
  "moduleDirectories": [
    "node_modules",
    "src"
  ],
  "transform": {
    "^.+\\.ts?$": "ts-jest",
    "^.+\\.tsx?$": "ts-jest",
    "^.+\\.js$": "<rootDir>/node_modules/react-native/jest/preprocessor.js"
  },
  "moduleFileExtensions": [
    "ts",
    "tsx",
    "js",
    "jsx",
    "json",
    "node"
  ],
  "moduleNameMapper": {
    "^.+\\.(css|less|scss)$": "identity-obj-proxy"
  },
  "transformIgnorePatterns": []
}

Hi @victorlevasseur,
Thanks for creating the issue. Unfortunately I cannot reproduce the issue. Which version of React Native are you using? Is there a jest.config.js in your project folder?
Try creating a new project (react-native init MyApp --template typescript) and please check if the issue also happens there. If it doesn't, try to find out what's the difference to your project.

I'll close this issue for now. Let me know if you think it should be re-opened.


Collection of small code cleanups

Miscellaneous patches I've gathered over time.. Should not change much from a user perspective.

/retest

CI is failing with
22:26:07     When checking that CRC is running                                                              # crcsuite.go:221 -> github.com/code-ready/crc/test/e2e/crcsuite.CheckCRCStatus
22:26:07     output did not match. Expected: '^OpenShift: .*Running \(v\d+\.\d+\.\d+.*\).*', Actual: 'CRC VM:          Running
22:26:07 OpenShift:       Running (v4.7.0)
22:26:07 Disk Usage:      11.3GB of 32.74GB (Inside the CRC VM)
22:26:07 Cache Usage:     10.78GB
22:26:07 Cache Directory: /home/crc_ci/.crc/cache'

CI is failing with
22:26:07     When checking that CRC is running                                                              # crcsuite.go:221 -> github.com/code-ready/crc/test/e2e/crcsuite.CheckCRCStatus
22:26:07     output did not match. Expected: '^OpenShift: .*Running \(v\d+\.\d+\.\d+.*\).*', Actual: 'CRC VM:          Running
22:26:07 OpenShift:       Running (v4.7.0)
22:26:07 Disk Usage:      11.3GB of 32.74GB (Inside the CRC VM)
22:26:07 Cache Usage:     10.78GB
22:26:07 Cache Directory: /home/crc_ci/.crc/cache'

I think that's because 'OpenShift' isn't at the beginning of the string (it's a multi-line string). I wasn't paying much attention to this, but I think ^OpenShift was only added recently. The (v\d+\.\d+\.\d+.*\).* already uniquely identified the line with OpenShift status, so ^OpenShift shouldn't be needed?

I think that's because 'OpenShift' isn't at the beginning of the string (it's a multi-line string). The (v\d+\.\d+\.\d+.*\).* already uniquely identified the line with OpenShift status, so ^OpenShift shouldn't be needed (or we don't need to check that it's at the beginning of string)?

Ah good point, must be because it's multi-line! The test is working without the 'OpenShift' line, however, I feel it makes things clearer on failures.
Expected: '.*Running \(v\d+\.\d+\.\d+.*\).*', Actual: 'CRC VM:          Running
22:26:07 OpenShift:       Unknown

When seeing such a message, it's not clear if it's the CRC VM: line which is unexpected, or the OpenShift line. Adding OpenShift to the regexp removes this ambiguity.


Invalid device function dropout

I get the following error when running main.lua
stack traceback:
[C]: in function 'copy'
...iavash/torch-distro/install/share/lua/5.1/nn/Dropout.lua:16: in function 'func'
...h/torch-distro/install/share/lua/5.1/nngraph/gmodule.lua:169: in function 'neteval'
...h/torch-distro/install/share/lua/5.1/nngraph/gmodule.lua:199: in function 'forward'
main.lua:148: in function 'fp'
main.lua:224: in function 'main'
main.lua:259: in main chunk
[C]: in function 'f'
[string "local f = function() return dofile 'main.lua'..."]:1: in main chunk
[C]: in function 'xpcall'
...iavash/torch-distro/install/share/lua/5.1/trepl/init.lua:583: in function 'repl'
...rch-distro/install/lib/luarocks/rocks/trepl/scm-1/bin/th:185: in main chunk
[C]: at 0x00406170

Probably you have an old version of torch. I have looked on few machines, and I do not experience this problem.
I am suggesting to install facebook version of torch. It's very recent and stable. https://github.com/facebook/fblualib

I'm seeing this as well. I've followed the instructions on a completely fresh machine for installing fbcunn exactly here: https://github.com/facebook/fbcunn/blob/master/INSTALL.md.
I then install nngraph like so:
luarocks install nngraph

I'm running the script like so:
th main.lua

The output is:
Loading ./data/ptb.train.txt, size of data = 929589
Loading ./data/ptb.valid.txt, size of data = 73760
Loading ./data/ptb.test.txt, size of data = 82430
Using 1-th gpu
Network parameters:
{
  layers : 2
  lr : 1
  max_max_epoch : 13
  max_grad_norm : 5
  max_epoch : 4
  init_weight : 0.1
  decay : 2
  vocab_size : 10000
  seq_length : 20
  batch_size : 20
  dropout : 0
  rnn_size : 200
}
Creating a RNN LSTM network.
Starting training.
/root/torch/install/bin/luajit: /root/torch/install/share/lua/5.1/nn/Dropout.lua:16: invalid device function
stack traceback:
	[C]: in function 'copy'
	/root/torch/install/share/lua/5.1/nn/Dropout.lua:16: in function 'func'
	/root/torch/install/share/lua/5.1/nngraph/gmodule.lua:169: in function 'neteval'
	/root/torch/install/share/lua/5.1/nngraph/gmodule.lua:199: in function 'forward'
	main.lua:148: in function 'fp'
	main.lua:224: in function 'main'
	main.lua:259: in main chunk
	[C]: in function 'dofile'
	/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:131: in main chunk
	[C]: at 0x00406170

(pardon the use of root user, I just got the fbcunn install working on root, and need to transfer it to a non-superuser).

I will solve this issue. However, I am not experiencing this bug.

Could you check if everything works when you remove nn.Dropout layer. It's enough to modify line 85 to:
local dropped        = i[layer_idx - 1]

Could you turn on debuger or error (i.e. export LUA_DEBUG_ON_ERROR=1 ), and print out some more information about what is going on in line 16 in Dropout.

oh, i think i might know the issue. What graphics card are you guys running this on?

My graphic card is NVIDIA Geforce GTX 770M on a gaming laptop.
On Sat, Feb 21, 2015 at 11:13 AM, Soumith Chintala<EMAIL_ADDRESS>
wrote:

oh, i think i might know the issue. What graphics card are you guys
running this on?
--
Reply to this email directly or view it on GitHub
https://github.com/wojzaremba/lstm/issues/1#issuecomment-75353023.

that's it. fbcunn is built for CUDA capability 3.5 or higher ONLY. the cards that you are running this repo are CUDA capable 3.0 (or less)

let's see if there can be a work-around. if cuda-capability 3.5 then use fbcunn's LookupTableGPU, if not use a slower version, i.e. nn's LookupTable

Yep ...mine is 3.0. Thanks
On Sat, Feb 21, 2015 at 1:40 PM, Soumith Chintala<EMAIL_ADDRESS>wrote:

let's see if there can be a work-around. if cuda-capability 3.5 then use
fbcunn's LookupTableGPU, if not use a slower version, i.e. nn's LookupTable
--
Reply to this email directly or view it on GitHub
https://github.com/wojzaremba/lstm/issues/1#issuecomment-75357254.

I'm using the g2.2xlarge, unsure of the CUDA compute capability but will
check soon.
On Sat, Feb 21, 2015 at 3:43 AM Siavash Sakhavi<EMAIL_ADDRESS>wrote:

Yep ...mine is 3.0. Thanks
On Sat, Feb 21, 2015 at 1:40 PM, Soumith Chintala <
<EMAIL_ADDRESS>wrote:

let's see if there can be a work-around. if cuda-capability 3.5 then use
fbcunn's LookupTableGPU, if not use a slower version, i.e. nn's
LookupTable
--
Reply to this email directly or view it on GitHub
https://github.com/wojzaremba/lstm/issues/1#issuecomment-75357254.

—
Reply to this email directly or view it on GitHub
https://github.com/wojzaremba/lstm/issues/1#issuecomment-75362439.

And yes, changing LookupTableGPU to LookupTable worked! Thanks @soumith and @wojzaremba!
Curious what performance is with LookupTableGPU on a modern card. I'm assuming wps is the overall average words-per-second. A g2.2xlarge instance is producing wps = 3495.

The default config took me 29 mins in all.

On gtx980


add 1.4B config

As discussed offline, we want to add a "comparatively small" variant (1.4B) in the configs.

close as https://github.com/foundation-model-stack/fms-fsdp/pull/40


Query: Caching: Added test coverage for more parameterization scenarios....

... Fixed corresponding bugs.

:shipit:


Navigating via arrow keys should update the caret like native code

See https://developer.mozilla.org/en-US/docs/Web/API/Document/caretPositionFromPoint and the polyfill opportunities at the bottom.

Update is that clicking at any point is supported, now using caretPositionFromPoint. Left and right carets work also. Up/down carets do not yet. I'm not clear on what this should look like, but I expect it to be something like:

Up key is pressed
Special client side logic detects up/down (this is disappointing, since no other key commands should invoke bespoke code on the client; so far they're all handled exclusively in Rust)
With the up/down logic, we pass along an additional field to the Rust client about the caret 14px (or whatever 1em is equal to) above and below it. Then the Rust client will see if it's an up or down command and choose that caret.

It's possible a simpler mechanism of implementing this exists.


how to fix this?

why i can't run script? pls help sry for bad english
my phone Xiaomi Redmi Note 4

why i can't run script? pls help sry for bad english
my phone Xiaomi Redmi Note 4          Android 7

I am not 100% sure about that since I don't use JP myself. I will give it a test when I get a chance but considering how much Overtime I am getting at work, I am unsure when I will get a chance. It may be tomorrow, or 2 weeks from now. I'll inform you if I figure it out. Meanwhile, maybe someone else could see about the issue?
Also, is this the only part that doesn't seem to run correctly?

ya that right Thanks for info Bane if you figure it out pls tell me

maybe 1080 x 1920 doesn't work?

i have the  same problem
my phone xiaomi mi max 2

I also have the same problem, using Xiaomi Redmi Note 4x

https://www.dropbox.com/s/d3825j7x9ldh1d7/Screenshot_2019-07-10-18-54-27-283_com.android.settings.png?dl=0
I turned  usb debugging security setting on and fixed.

Its work!!! TY

Sorry I wasn't able to provide a solution myself. I honestly had no idea as to why it might've been having problems. I am glad someone was able to find a solution!
Just to be clear, the apparent solution is to turn USB Debugging Security option on. I will close this now and if people are still having trouble we can reopen it at that time.

what version of the app ur using guys? is it trial or pro?


nginx: apply canary only for enabled rule groups

What type of PR is this?

/kind bug
What this PR does / why we need it:
Fixes #174 by applying canary only for entitled nginx rule groups, and fix canary evaluation when enabled.
Which issue(s) this PR fixes:

Fixes #174
Does this PR introduce a user-facing change?:

Fix nginx canary annotation conversion

/lgtm
/approve