Cache a specific page / Conditional Caching (Next.js)

Library Affected:
workbox-build v4.3.1
Browser & Platform:
all browsers
Issue or Feature Request Description:
Using WorkBox, is it possible to only cache a specific page on user action? (i.e button click)
The below config caches everything, but is there any option that will only execute this runtime caching for a specific page? (or better yet, on user action) I don't need any other pages cached.
const offlineConfig = {
...
    runtimeCaching: [
      {
        urlPattern: /^https?.*/,
        handler: "NetworkFirst",
        options: {
          cacheName: "everything",
          expiration: {
            maxEntries: 200,
          },
        },
      }
    ],
...
};

NOTE: caching a specific page being everything needed for that page to run in offline mode.

@beazo Not shore what you wont to do. But, if you use ganarateSW you can use this plugin for filter by specific header. Just add him to your`s request. Check this for configuration this plugin in ganarateSW.

Since you need some custom behaviour, I would suggest moving away from a fully generated SW to a handmade one, you can start from the generated code and customize from there.
Then you could call registerRoute() inside an event. Subsequent request will be captured and cached accordingly. If you want to cache the entire current page, whose requests had already been fulfilled for the time you registered your route, you'll need to reload the page.
Perhaps, calling precacheAndRoute() might be a better choice here, it populates the cache with the listed files immediately, instead of doing it "live" for every request. You'll need to understand how it works to use it properly. You won't need to reload the page this way.
Note that in any case, the "caching has been enabled" flag will have to be consistent between page reloads, so you'll need to use some permanent storage to store it, perhaps IndexedDB, that Workbox uses too. Client<->Service Worker communication is done through messages.
I've seen you're not using the latest stable Workbox version. If you're working on an already existing project where you can't switch to a custom SW, you'll have to turn to more imaginative solutions. You could register the sw at the push of a button (remember to make the action permanent like in the case above), with skipWaiting: true, then reload the page.

There's nothing "built in" to Workbox that would accomplish this. I can suggest something that used a custom handlerCallback, but honestly, unless you want any other additional functionality beyond what you describe, it would probably be easier to do this as a "vanilla" service worker and not use Workbox at all. Here's how.
First, in your web app, call the following function in response to whatever user interaction you'd like, and it will add the current page's HTML and all of the subresources it has loaded to the Cache Storage API (in a cache named 'page-cache'):
async function cacheCurrentPageAndSubresources() {
  const urlsToCache = [
    location.href,
    ...performance.getEntriesByType('resource').map((r) => r.name),
  ];

  const cache = await caches.open('page-cache');
  await cache.addAll(urlsToCache);
}

Then, your service worker would just need to be something along the lines of (make sure you use the same 'page-cache' name):
self.addEventListener('fetch', (event) => {
  const networkThenCache = async () => {
    try {
      // Always go to the network first.
      return await fetch(event.request);
    } catch (error) {
      // If there was a network error, attempt to go to the cache.
      // Note that this will never *update* the cache, just read from it.
      const cache = await caches.open('page-cache');
      const cachedResponse = await cache.match(event.request);
      if (cachedResponse) {
        return cachedResponse;
      }

      // If there was a cache miss, we can't do much.
      // Just re-throw the network error.
      throw error;
    }
  };

  event.respondWith(networkThenCache());
});

Cache management is up to you—the entries that you added to the cache via the main page will never get purged, or updated automatically. But that's the basic functionality you asked for.

Thanks @jeffposnick!
Sorry for late reply, I'm still working on this but if I find a solution I'll be sure to add it here for any others who are interested in the solution.


Update libraries

Current coverage is 79.24%

Merging #36 into master will not affect coverage as of 9002120

@@            master     #36   diff @@
======================================
  Files            5       5
  Stmts          159     159
  Branches        20      20
  Methods          0       0
======================================
  Hit            126     126
  Partial          2       2
  Missed          31      31

Review entire Coverage Diff as of 9002120

Powered by Codecov. Updated on successful CI builds.


fixing databse for database - no just my typos!

Type of Change

[x] Bug fix (non-breaking change, fixes #)
[ ] New feature (non-breaking change, adds functionality)
[ ] Breaking change (effects multiple commands or functionality)
[ ] Ran manual Pester test and has passed (`.\tests\manual.pester.ps1)
[ ] Adding code coverage to existing functionality
[ ] Pester test is included
[ ] Nunit test is included
[ ] Documentation
[ ] Build system

Purpose
spotted I'd typoed databse for database in a recent PR. Then spotted I wasn't the only one, so fixed those up as well.

thanks so much!


DoughDoge emote

DoughDoge replacing animegirlpepe (Sorry whoever added that but I had to replace something randomly.)
Had to convert the doughdoge jpeg to a png with transparent background but without the background its hard to tell that its Dough Doge and could also be interpreted as Twinkie Doge so its multi purpose.
This is DoughDoge with transparent background that is being used in this commit.

Why did you have to replace anime girl Pepe?

Was told to kill an emote if I was to put one in. ( #1842 )

Survival of the fittest 🤣


Update MySQL GIS function names to OpenGIS standard

Fixed #26134
Fix deprecation warnings such as:
.../django/db/backends/mysql/base.py:112:
Warning: 'GEOMFROMTEXT' is deprecated and will be removed in a future release.
Please use ST_GEOMFROMTEXT instead

Are all the new names available in MySQL 5.5 (minimum supported version for Django 1.10)?

buildbot, add to whitelist.

The GIS aliases exist from 5.6. GIS features can be either exception from the minimum supported MySQL version or increase this to 5.6 (5.5 GA was released end of 2010). MySQL GIS users should be encouraged to use MySQL 5.7 > as there are spatial indexes available for InnoDB.
For reference docs updates would be needed here:
https://docs.djangoproject.com/en/1.9/ref/contrib/gis/install/#installation
and here:
https://docs.djangoproject.com/en/1.9/ref/databases/#mysql-notes

Thanks, have left a comment on the ticket.

I guess we'll close this for now as fmalina indicated he doesn't want to work on an approach that maintains support for MySQL 5.5.


proposal: embed: embed and expose also media/mime type

Proposal Details
I think this is a common use case: we use embed to embed some files at compile time and then we serve them at runtime using HTTP. But to serve files at runtime, one has to also know the media/mime type of the file, to set Content-Type correctly. One way to do that is to use standard mime.TypeByExtension on the embedded filenames. This works well if filenames have known file extensions and developer can generally predict the outcome if they notice a file extension is missing or if the file extension is an obscure one.
But what is hard to observe by a developer is that mime.TypeByExtension requires system installation of a corresponding database. If that database is missing, then behavior on their local machine might differ from the production machine. Even worse, the behavior might be different if the database is different (e.g., locally one uses Ubuntu and production uses Alpine).
To make production deployment work well, we use static builds. But sadly, because of the dependency on this database, even static build can behave differently.
Proposal
I propose that embedded files with embed.FS detect the media/mime type at compile time and expose it in some way to the developer (I am open to how exactly this is implemented). The critical point here is that this is done at compile where developer has easier time controlling the environment, so that the behavior is the same wherever the binary is later on deployed/ran.
Alternative proposal
Maybe there should be a way to embed currently available mime/media type database into the binary at compile time.

What happen if I build a program using this feature on two different machine with two different databases ? Does that means theses builds are not byte for byte reproducible anymore ?
That sounds like this could be solved by vendoring a generic enough database in the std, however then if we do that, there is no particular reason why this has to be done at build time for the usecase you describe to work.

What happen if I build a program using this feature on two different machine with two different databases ? Does that means theses builds are not byte for byte reproducible anymore ?

Yes, the database becomes then your compilation time dependency. So they are reproducible if you have all dependencies the same.

That sounds like this could be solved by vendoring a generic enough database in the std and using that for builds, however then if we do that, there is no particular reason why this has to be done at build time for the usecase you describe to work.

That could work. In a similar way time/tzdata is done.

I think this is a better solution, after checking there already exists a small table:
https://github.com/golang/go/blob/e8b5bc63be22e2bebffabcfccaf54d4c19822fe6/src/mime/type.go#L60-L77
I think you should make a new proposal to extend this one (maybe seed it from some existing third party authority like the unicode tables are found).

Maybe. I think you need an argument to why one more configuration knob is needed.

/etc/mime.types is 24 KB on my machine. I think including that in all builds might be disliked by some?


SpdyHttpEncoder should support chunks larger than SPDY_MAX_LENGTH

Let me close this as we not do any changes for SPDY anymore as HTTP/2 is out


Automatic CI Doc Build

Description
Enable automatic CI doc build once the main is updated. Propose a better version control solution.
Output is available at https://aepanchi.github.io/scikit-learn-intelex/2024.3/
Changes proposed in this pull request:

Introduce:

.github/workflows/publish.yml to enable automatic CI doc build
doc/index.html to redirect user to the latest doc version
doc/set_version.sh to set the doc version
doc/sources/_static/version_switcher.js and doc/sources/_templates/versions.html to switch versions
doc/versions.json to specify the doc versions to build

Rename doc/sources/_static/style.css to doc/sources/_static/custom.css to align with conf.py; update the file with the version dropdown button configurations
Update conf.py to include new configurations

Signed-off-by: Alexandra Epanchinzeva<EMAIL_ADDRESS>

Doc build CI fail: FileNotFoundError: [Errno 2] No such file or directory: 'doc_version.json'

The relative file paths seem to be adding some instability - is there an advantage to creating a json file over setting an environment variable or something like that? ie remove doc_version.json creation and instead get the environment variable here https://github.com/aepanchi/scikit-learn-intelex/blob/docs-ci/doc/sources/conf.py#L40

@ethanglaser @napetrov CI passes all checks except the doc one. The error is:
FileNotFoundError: [Errno 2] No such file or directory: 'sources/doc_version.json'
make: *** [Makefile:36: html] Error 2

But the script creates the file on the next line.

publish.yml is not being triggered from anywhere - the failing step is from .ci/pipeline/docs.yml which does not include any of the necessary logic

@aepanchi who will continue to work on this PR?
@ethanglaser @emmwalsh

@aepanchi who will continue to work on this PR? @ethanglaser @emmwalsh

Hi @samir-nasibli I don't support scikit learn. Only oneDAL and daal4py

@aepanchi who will continue to work on this PR? @ethanglaser @emmwalsh

Hi @samir-nasibli I don't support scikit learn. Only oneDAL and daal4py

Thank you! I would like to clarify, is that mean that you are only support scikit-learn-intelex/daal4py documentation?

@aepanchi who will continue to work on this PR? @ethanglaser @emmwalsh

Hi @samir-nasibli I don't support scikit learn. Only oneDAL and daal4py

Thank you! I would like to clarify, is that mean that you are only support scikit-learn-intelex/daal4py documentation?

so I will be approving PRs and customer-reported bugs at the moment

Hi @samir-nasibli, I double-checked my support, and it says that I cover sci-kit-learn for PR reviews, so I think Ethan might be the best person to take over this PR. Then I can review it


Filter and Sort do not work together

Section : Update the Razor page
Both links in the code below should also have
<EMAIL_ADDRESS>

<a asp-page="./Index"<EMAIL_ADDRESS>@Html.DisplayNameFor(model => model.Students[0].LastName)

@Html.DisplayNameFor(model => model.Students[0].FirstMidName)

<a asp-page="./Index"<EMAIL_ADDRESS>@Html.DisplayNameFor(model => model.Students[0].EnrollmentDate)

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

ID: 877f0457-37d9-9a34-e2ce-beb41d717086
Version Independent ID: e9b0d4d1-e98c-fb96-415f-0ff4e37d3658
Content: Razor Pages with EF Core in ASP.NET Core - Sort, Filter, Paging - 3 of 8
Content Source: aspnetcore/data/ef-rp/sort-filter-page.md
Product: aspnet-core
Technology: aspnetcore-data
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

Sort and filter and independent and aren't meant to work together.


Doc update for RFC 13199988

Via RFC 13199988, we confirmed that executing a backup on the primary at the same time a backup is occurring on the secondary, is not supported. https://sqlbuvsts01:8443/web/wi.aspx?pcguid=86a4a1ca-bfe6-4329-be8d-f5c4a2420c67&id=13199988

@troymoen1 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@Dongcao was the dev helping on this one

thanks Troy! #sign-off


docs: export_project tutorial

TODO:

[x] add hidden cells to create the project with the assets, so that the notebook runs end-to-end
[x] add project delete at the end of the notebook (hidden cell)
[x] make sure tqdm doesn't show in the doc
[x] wait for #882 to be merged, rebase this branch on master, and convert the notebook to markdown
[x] make sure the tutorial is rendered properly in mkdocs
[x] add link to google colab

@xczuba I made a lot of modifications in this notebook. It would be nice if you could check if it's still ok with what we want to show in the documentation

we can merge


User reported issue building imp

I couldn't get the imp tool to build:
onqtam@onqtam-ThinkPad-X1-Extreme:~/imp$ make release
cargo build --release
    Updating git repository `https://github.com/jrhea/lighthouse`
    Updating git repository `https://github.com/sigp/rust-libp2p`
    Updating crates.io index
    Updating git repository `https://github.com/prrkl/mothra`
error: failed to get `mothra` as a dependency of package `imp-p2p v0.1.0 (/home/onqtam/imp/network/p2p)`
    ... which is depended on by `imp v0.1.0 (/home/onqtam/imp)`

Caused by:
  failed to load source for dependency `mothra`

Caused by:
  Unable to update /home/onqtam/mothra/core

Caused by:
  failed to read `/home/onqtam/mothra/core/Cargo.toml`

Caused by:
  No such file or directory (os error 2)
make: *** [Makefile:22: release] Error 101

resolved by #27


Add Pickle Reader/Writer Support

Summary
Simple wrapper support for calling Thicket.to_pickle() and Thicket.from_pickle(). This introduces our first functionality for writing Thicket objects to a file, which becomes useful when working with large Thickets.
Writing & Reading
Thicket.to_pickle() and Thicket.from_pickle() accept keyword arguments, so any arguments to pickle.dump() and pickle.load(), respectively. This will especially be important if the user wants to change the pickling protocol version. Thicket.from_pickle() will be able to detect protocol verison automatically, as long as the python version supports the protocol.
Potential Compatibility Issues
The pickle serialization format is guaranteed to be backwards compatible across Python releases provided a compatible pickle protocol is chosen.
Pickle by default writes using the pickle.DEFAULT_PROTOCOL version. The default protocol for python>=3.8 is version 4, which is supported by all python>=3.4. Since we have pinned python_requires=">=3.6.1", we should not run into any pickle backwards compatibility issues in Thicket as long as users do not mess with the pickling protocol when writing with Thicket.to_pickle().
The only compatibility issue case as of now is if a user wrote a pickled Thicket using Thicket.to_pickle(..., protocol=5) with python>=3.8 and attempted to unpickle with python==3.6 or python==3.7, since these do not support protocol version 5. This is a niche case since protocol version 5 is not a default version for any python and would need to manually be specified. It could also be avoided by using Thicket.to_pickle() with default protocol version 4 or Thicket.to_pickle(..., protocol=4).
Performance
On protocol version 4, python==3.11.7

Metric
Thicket A
Thicket B
Thicket C
LBANN Thicket

Profiles
16874
12099
991
16

Nodes
156
95
19
7106

Dataframe Shape
(2632344, 16) (2509582 NA rows)
(122762, 16) (0 NA rows)
(18829, 8) (? NA rows)
(113696, 11) (6799 NA rows)

Metadata Shape
(16872, 65)
(12099, 65)
(991, 33)
(16, 32)

---
---
---
---
---

Pickling Time
0.5s
0.1s
>0.1s
>0.1s

Unpickling Time
0.4s
0.1s
>0.1s
>0.1s

pkl File Size
362MB
56MB
4MB
12MB

Thicket Reader Time
200 minutes
N/A
27s
12 minutes

Thicket B is a filtered version of Thicket A (mostly NaNs in the dataframe). You can see the impact on resulting pickle file size.  Additionally, see how much faster unpickling is than Thicket reader from_caliperreader.

The code for this PR looks good, so I will approve.
However, there are two things I want to bring up for discussion before we make a decision about whether to merge.
First, given how simple the to_pickle and from_pickle methods are, I need to ask whether we even need these functions in the first place. Pickle can serialize any Python object, so, even without these functions, users can always just do the following:
Serialization:
with open(filename, "wb") as f:
    pickle.dump(thicket, f)

Deserialization:
with open(filename, "rb") as f:
    thicket = pickle.load(f)

Second, I want to bring up the performance table in the initial PR comment. In particular, I want bring up the reader time and file size. Even with serialization, 12 minutes for 12 MB and 200 minutes for 362 MB is extremely slow. Even 27 seconds for 4 MB is a bit slow. I don't think this should have any impact on this PR, but, to me, it does suggest that we might need to look into Thicket's performance sooner rather than later.

The Thicket performance is quite bad for thousands of profiles, which is why I started using pickle in the first place. I have some ideas like turning off _fill_perfdata(), which is the cause of there being 2,509,582 NA rows in Thicket A. I also want to look into creating Thickets in parallel and concatenating the results.
In terms of the pickle interface, I thought we would be needing to pin a specific pickle version when writing before I looked into the backwards compatibility of the default version. Since Thicket python requirements are compatible with the default protocol, the only thing this PR does right now is provide a thin pickle interface.
Serialization:
thicket.to_pickle(f)

Deserialization:
Thicket.from_pickle(f)

Still, I don't see the harm in this existing.


Add chart dependency support to the team label

Tested here but it is my first time with Python and regex :D
We are in dire need of this because we use subcharts a lot and if the annotation is not set on the subchart, the value is empty
@piontec can you take a look pretty please?

I'm not sure the issue in the tests is from my change TBH

Not really, the use case is that in atlas, we use chart dependencies to manage app upgrades to "only" have to upgrade the dependency, adapt the values file and not use the subtree which causes a lot of conflicts for us:
Here is an example PR https://github.com/giantswarm/prometheus-operator-app/pull/207/files
The issue with this approach is that the annotation application.giantswarm.io/team is not set on the subchart (here kube-prometheus-stack) and helm is then setting the value for the subchart templates to "" and it's not taking the value from the root chart.
Being able to configure it also as a default would ensure we take the value from the chart if it exits but are able to override it if necessary (i.e. for subcharts that do not have the annotation set).
FYI: In the linked PR we are shadowing the kube-prometheus-stack.labels in the helpers.
With this change we can have:
root:
Chart.yaml with annotation with default of atlas in helpers
charts/
chart1:
Chart.yaml with atlas team annotation (team will be set to atlas as the default would not apply)
chart2:
Chart.yaml with honeybadger team annotation (team will be set to honeybadger as the default would not apply)
chart3:
Chart.yaml with no team annotation (team will be set to the default value, a.k.a. atlas)
Does that make sense?


Option to fix Rect ratio when resizing

eg. holding shift while dragging the resize handle will keep the Rect ratio constant, or even holding ctrl+shift will force it to be square.
ps: i might implement this

@zhiayang sure, feel free to ignore snapping while implementing that feature. Because I think the structure of the responsible for snapping will change a lot in the nearest future.

actually i think i'll do it after tonight's stream, cos i'm scared of merge conflicts :tsodinFeels:

Resolved by #1158

unfixed by #1170 PepeHands


Added docs for the commands list

Added a docs directory for displaying documentation in github pages.  Uses just-the-docs.  Has plenty of room for expansion.  Might make sense to move some stuff from the readme to the docs?
Closes #25

I think it's fine to leave things in the readme for now so that people who come to the repo can see an overview.
We can revisit as we pull this into the main repo and / or add more commands.


imageSizeRestrictions works only with readAs as a DataURL

Hello, imageSizeRestrictions is taken into account only when readAs is set as DataURL. If this is an intention it should be mentioned in documentation or in types. If not then I'm reporting this as a bug.

Hi @kxmatejka
It is intentional, as You can see in the code of the ImageDimensionsValidator it is explicitly checked for readAs to be DataURL:

This check is there because if you use other readAs value than 'DataURL', then the browser built-in Image reader can't correctly load an image, and it throws an error, so we can't extract the image dimensions from it.
If you want this functionality of checking image dimensions with readAs set to other values, then you need to create a custom validator and probably use some 3rd party package for extracting image dimensions from a buffer or something like that.

Hello, thank you for your response. Fortunately, this is not a problem for me. But it took me some time to figure out what's wrong so I would suggest at least mentioning this in the documentation.
Have a nice day!


Bump dependencies

Main change is socket2 upstreamed some functions

@howardjohn: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

test_ztunnel
ee0ed63b7c158a70692c87fad4075fa2a2c936eb
link
true
/test test

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


Stop leaking state-lock when journal is closed

Fix https://github.com/Alluxio/alluxio/issues/13904

Codecov Report

Merging #13913 (a4a693e) into master (0504933) will decrease coverage by 26.20%.
The diff coverage is 40.74%.

@@              Coverage Diff              @@
##             master   #13913       +/-   ##
=============================================
- Coverage     43.62%   17.42%   -26.21%
+ Complexity     9106     2675     -6431
=============================================
  Files          1386     1395        +9
  Lines         80673    81164      +491
  Branches       9817     9872       +55
=============================================
- Hits          35193    14140    -21053
- Misses        42537    65778    +23241
+ Partials       2943     1246     -1697

Impacted Files
Coverage Δ

...uxio/client/file/cache/LocalCacheFileInStream.java
0.00% <0.00%> (-68.58%)
:arrow_down:

...rc/main/java/alluxio/client/file/CacheContext.java
0.00% <0.00%> (-48.28%)
:arrow_down:

...n/src/main/java/alluxio/master/AbstractMaster.java
64.28% <25.00%> (-4.95%)
:arrow_down:

...ommon/src/main/java/alluxio/metrics/MetricKey.java
97.30% <100.00%> (-0.40%)
:arrow_down:

...mon/src/main/java/alluxio/shell/CommandReturn.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...mon/src/main/java/alluxio/util/ExceptionUtils.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...n/src/main/java/alluxio/wire/AlluxioProxyInfo.java
0.00% <0.00%> (-100.00%)
:arrow_down:

.../src/main/java/alluxio/wire/AlluxioMasterInfo.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...src/main/java/alluxio/job/meta/JobIdGenerator.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...n/src/main/java/alluxio/stress/BaseParameters.java
0.00% <0.00%> (-100.00%)
:arrow_down:

... and 687 more

Continue to review full report at Codecov.

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

alluxio-bot, merge this please

alluxio-bot, cherry-pick this to branch-2.6 please

alluxio-bot, cherry-pick this to branch-2.5 please

alluxio-bot, cherry-pick this to branch-2.64 please

alluxio-bot, cherry-pick this to branch-2.4 please


Package Initialization Error

Diagnostics
Request: GET https://api.teletype.atom.io/protocol-version
Status Code: 200
Body:

Versions
Teletype version: v0.13.3
Atom version: 1.32.2
Platform: win32

Thanks for the report! I'm going to go ahead and close as a duplicate of #372 so you can subscribe there for updates if you'd like. If you can, please let us know if you're consistently seeing this error or if you saw it just once. It would also be useful to know if you access the internet via a proxy.

I see it constantly
On Tue, Nov 27, 2018, 08:41 Robert Sese<EMAIL_ADDRESS>wrote:

Thanks for the report! I'm going to go ahead and close as a duplicate of
#372 https://github.com/atom/teletype/issues/372 so you can subscribe
there for updates if you'd like. If you can, please let us know if you're
consistently seeing this error or if you saw it just once. It would also be
useful to know if you access the internet via a proxy.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/atom/teletype/issues/427#issuecomment-441946233, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ApHKJM-LVZoOih54AVRrGRdKB8DyZPqBks5uzN62gaJpZM4YwLn1
.

Thanks 👍
Do you use a proxy to access the internet?

I was connected to the internet when the error occurred
On Wed, Nov 28, 2018, 22:57 Robert Sese<EMAIL_ADDRESS>wrote:

Thanks 👍
Do you use a proxy to access the internet?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/atom/teletype/issues/427#issuecomment-442601807, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ApHKJF7Q8gpxMyrJd7O8cKCxdwzkYAdOks5uzvirgaJpZM4YwLn1
.

Thanks so much for the extra details, I'll copy your comments over to the main issue.


Crs 1835

Are you doing AC 3 in another PR? So the calc of active TUSED + 14 days?

Are you doing AC 3 in another PR? So the calc of active TUSED + 14 days?

AC3 (of CRS-1835) doesn't return dates, it's handled by the ValidationService

Apologies

Are you doing AC 3 in another PR? So the calc of active TUSED + 14 days?

AC3 (of CRS-1835) doesn't return dates, it's handled by the ValidationService

Apologies what I was talking about is in CRS-1852, not sure why I thought it was AC3

APPLICATION FAILED TO START
***************************

Description:

Failed to bind properties under 'feature-toggles.botus' to boolean:

    Property: feature-toggles.botus
    Value: "${BOTUS_FEATURE_TOGGLE}"
    Origin: class path resource [application.yml] - 130:10
    Reason: failed to convert java.lang.String to boolean (caused by java.lang.IllegalArgumentException: Invalid boolean value '${BOTUS_FEATURE_TOGGLE}')```

You may need to either provide the env var, OR set a fallback for spring in the properties file `:false`


Timeout isn't respected in any EdgeX Service

🐞 Bug Report
Affected Services

 The issue is located in: All Services
Is this a regression?

 Not that i'm aware of.
Description and Minimal Reproduction
Using core-data as an example:

Set

[Service]
Timeout = 1

in configuration.toml
2) Set a sleep (larger than that timeout set in your configuration) in any http handler (i.e. pingHandler) for core-data:
time.Sleep(time.Millisecond * time.Duration(5000))
3) Make the rest request. (i.e. /api/v1/ping) should give you a "Response Timed out" response, but instead you will get pong after however long you put a sleep in the handler for.
The timeout is ignored
	http.TimeoutHandler(nil, time.Millisecond*time.Duration(data.Configuration.Service.Timeout), "Request timed out")

in main.go since the handler returned from the timeoutHandler is simply not used, and nil is passed to the TimeoutHandler so it doesn't have any routes to build on. It's basically a no-op.
🔥 Exception or Error

🌍  Your Environment
Deployment Environment:
Native, Windows 10
EdgeX Version:
Master Branch
Anything else relevant?
the timeoutHandler should be moved into startHttpServer(). Something like:
r := data.LoadRestRoutes()
tr := http.TimeoutHandler(r, time.Millisecond*time.Duration(data.Configuration.Service.Timeout), "Request timed out")
errChan <- http.ListenAndServe(":"+strconv.Itoa(port), context.ClearHandler(tr))

@brandonforster Please validate and provide a fix if verified.

Are these not 2 separate things? The sleep determines when the request is made, the timeout is how long the client is willing to wait
Sent from VMware Boxer
On August 26, 2019 at 12:17:00 PM PDT, Brandon Forster<EMAIL_ADDRESS>wrote:
Reproduced on my Mac with the ping scenario described above. Will get to work.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fedgexfoundry%2Fedgex-go%2Fissues%2F1702%3Femail_source%3Dnotifications%26email_token%3DAAUTXVNFRME6EYC5HIMW433QGQT2LA5CNFSM4IPB6WCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5FMBCY%23issuecomment-524992651&data=02|01|mbhandaru%40vmware.com|50a55fa4fea34424872c08d72a59f441|b39138ca3cee4b4aa4d6cd83d9dd62f0|0|0|637024438193528872&sdata=ViZrV6tFc0iBey7sED0QhBdAHhDHVWTHJstY15XbZmg%3D&reserved=0, or mute the threadhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAUTXVP6IUBTJTTOWFXZBXDQGQT2LANCNFSM4IPB6WCA&data=02|01|mbhandaru%40vmware.com|50a55fa4fea34424872c08d72a59f441|b39138ca3cee4b4aa4d6cd83d9dd62f0|0|0|637024438193528872&sdata=dG4xPoK48PtFaB0u6jJmGQUy3miqeiR3wcKDU85JXa8%3D&reserved=0.


Incoporate Python-Hunter?

Some days ago I came across a cool tracing tool for python:
https://python-hunter.readthedocs.io/en/latest/
It would be very cool if I could trace django requests via django debug toolbar.
But maybe there is already a way to trace via DDT.
My use case:  show all lines of the module name "foo" which get executed during the request.
In most cases I don't want to see lines from stdlib or django. Bugs are usually in my code :-)
What do you think?

Did you try enabling the ProfilingPanel? I believe a third party panel would have to be created that would integrate python-hunter into DDT.

Sounds good. I hope some young and talented dev has time to implement this.

Opening back up for a third party request idea.

Closing in favor of #1460


XFAIL SwiftLint for IUO change.

https://github.com/apple/swift/pull/14299 is going to break this project until the dependency on SourceKitten is updated to a newer version.

Actually if you give me a few minutes, I can probably give you a commit sha for SwiftLint which includes a newer SourceKitten release.

@jpsim Happy to wait. Do you want to just open a PR for the source compatibility suite and then after that PR goes through I'll close this out and merge my change?

Could you see if #130 passes compatibility with your IUO PR?

Trying it out now.

Looks good with a toolchain I built yesterday with my changes:
PASS: SwiftLint, 4.0, 549d4c, Swift Package
========================================
Action Summary:
     Passed: 1
     Failed: 0
    XFailed: 0
    UPassed: 0
      Total: 1
========================================
Repository Summary:
      Total: 1
========================================
Result: PASS
========================================

Closing since we can just merge https://github.com/apple/swift-source-compat-suite/pull/130.


Performance: Reduce joins to one node to improve performance

Create a rule to transform the LogicalPlan, getting joins between git tables and transforming them to only one node. Doing this we only need to iterate once per repository per join, instead of doing a join between all the repositories (like we are doing on engine project).
As in engine, we should only support Projects, Filter and Table nodes below Joins. If another node type is there, the Join node cannot be optimized.

Proposal (WIP)
The SquashedTable (name TBD) would be like a regular gitquery table, only its internal iterator is composed of several potentially chained primitive iterators.
Filters would need to be translated into something that can use the raw go-git objects and executed directly inside the primitive iterators.
Primitive iterators
We could have a primitive iterator for each kind of object (and table) we need. That way we would end up with:

RepositoryIter
RemotesIter(RepositoryIter)
RefsIter(RepositoryIter)
CommitsIter(RefsIter)
TreeEntriesIter(CommitsIter)
BlobsIter(TreeEntriesIter)

Those primitive iterators return the go-git object instead of a sql.Row.
Filters for Raw objects

commit_has_blob would be translated to give me all blobs from this commit.
commit_has_tree would be translated to give me all trees from this commit.
tree_entries.entry_hash = blobs.hash would be translated to give me blobs for these tree entries.
repositories.id = refs.repository_id would be translated to give me this repo from the pool, then all its references.
repositories.id = remotes.repository_id would be translated to give me this repo from the pool, then all its remotes.
refs.hash = commits.hash will be translated to give me the commit with this reference hash.
history_idx(refs.hash, commits.hash) $OP $N would be translated to given the previous reference, the idx in the history of this commit if it satisfies $IDX $OP $N where $OP needs to be an integer comparison operator, $N needs to be an integer and $IDX is the index in the history.
repositories.id = $LITERAL instead of using all repositories, we'll get the one with the $LITERAL id from the pool and pass it along.
{refs.hash,refs.name} = $LITERAL instead of using all references, we'll go looking for the one with the hash/name equal to $LITERAL and pass it along.
commit.hash = $LITERAL instead of using all commits we'll go looking for the one with the hash equal to $LITERAL and pass it along. If it's chained with references it will be checked that it's in the history of the reference.
tree_entries.tree_hash = $LITERAL instead of using all tree entries, we'll go looking for one with the given tree hash and pass it along. If it's chained with commits, it will be checked that such tree is in the commit.
blobs.hash = $LITERAL instead of using all blobs, we'll go looking for one with the given blob hash and pass it along. If it's chained with tree entries we'll check before that tree entry hash matches the blob.
commit.tree_hash = tree_entries.tree_hash will be translated to give me the tree entries for this commit tree.

All other filters would just be translated to our own filters that will be evaluated against raw objects. That could lead to a lot of repeated logic if we want to implement all expressions that can potentially appear there. Another option is to just wait until the final row is ready, fix the indexes (if there is a need to do it) and just filter against the final row.
What if a join does not have any of the previous conditions as a join condition?
Then we should not squash it. You can do history_idx(refs.hash, blobs.hash), but that does not make sense and will yield 0 rows. We could optimize things like that and automatically return an EOFIter.
Iterator composition
Imagine we want the following queries:
SELECT *
FROM refs
INNER JOIN commits
  ON history_idx(refs.hash, commits.hash) >= 0

SELECT blobs.*
FROM refs
INNER JOIN commits
  ON history_idx(refs.hash, commits.hash) >= 0
INNER JOIN blobs
  ON commit_has_blob(commit.hash, blob.hash)

The two joins in the first query would be squashed into something like:
CommitsIter(RefsIter(AllReposIter))

The three joins in the first query would be squashed into something like:
BlobsIter(TreeEntriesIter(CommitsIter(RefsIter(AllReposIter))))

Note that we did not select tree entries, but it's needed to perform the join, since the blob is on the tree entry.
That way, all the missing steps are filled depending on what's missing and what we have using the following graph:
REPOS --> REFS --> COMMITS --> TREE ENTRIES --> BLOBS
           \--> REMOTES

Note that only missing iterators between the joined tables are added. If the join is between Commits and Blobs, TreeEntries will be added, but Repos and Refs will not, it will just iterate over all commit objects.
Row composition

SquashedTable might be, indeed, be a good name. I've tried looking for a name used in other databases for this kind of join optimization. The most similar is merge join, but it is different enough to prefer a name that does not match this or any other common join optimization.

...just my 2 cents - maybe ZipTable?
zip operation is very popular in FP., e.g.:
zipWith (+) [1, 2, 3] [4, 5, 6]

[(1, 4), (2, 5), (3, 6)]

So maybe it makes sense here - WDYT?


Add futures data portal to test fixtures

@ehebert @yankees714 Look reasonable to you?

Coverage decreased (-0.05%) to 87.359% when pulling c0db5ff20987dc83617baa65b498773caefd3ed6 on futures-test-data-portal into fcfc06ef0af97d8944412e562976f7774d8a3cba on master.

Coverage remained the same at 87.413% when pulling 170e14dab0d1c48124499c0c8a23cda811e9fb78 on futures-test-data-portal into 153f6636c7abea5cae11385da4d2fcdb63de93a1 on master.

Is this intended for creating multiple DataPortals in the same suite?
If not, setting TRADING_CALENDAR_PRIMARY_CAL = 'us_futures' on the test suite class would set self.trading_calendar appropriately.


add plain and cholesky rank updates

fixes #4385 and prepares ground for a linear regression with bias update

Eigen3 can also do this, but it only updates the lower or upper part of a matrix. We might want to think about introducing types link symmetric matrices where only half of the memory is effectively used and the rest can be used a temp storage by algorithms, like eigen does

@OXPHOS btw is there a reason why we don't define the methods in linalg using a type trait
template <typename T, typename T2 = typename std::enable_if_t<std::is_arithmetic<T>::value>>
template <typename T, typename T2 = typename std::enable_if_t<std::is_floating_point<T>::value>>
template <typename T, typename T2 = typename std::enable_if_t<std::is_integral<T>::value>>

etc
Could this replace the macros to define things for certain ptypes?

I can not recall any reason for not using enable_if. We actually used it
for one scenario. I can look into it soon. Just finished my defense ;D
On Tue, Jul 31, 2018 at 7:30 AM Heiko Strathmann<EMAIL_ADDRESS>wrote:

@OXPHOS https://github.com/OXPHOS btw is there a reason why we don't
define the methods in linalg using a type trait
template <typename T, typename T2 = typename std::enable_if_t<std::is_arithmetic::value>>
template <typename T, typename T2 = typename std::enable_if_t<std::is_floating_point::value>>
template <typename T, typename T2 = typename std::enable_if_t<std::is_integral::value>>
etc
Could this replace the macros to define things for certain ptypes?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/shogun-toolbox/shogun/pull/4387#issuecomment-409188025,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIaEMJ-AQkwbm1wnkl4qKOaW4ss3OMalks5uMD-2gaJpZM4VoEXW
.

wow congrats! :)


error python high version

turbo-tunnel
Traceback (most recent call last):
File "/usr/local/bin/turbo-tunnel", line 5, in
from turbo_tunnel.main import main
File "/usr/local/lib/python3.10/dist-packages/turbo_tunnel/init.py", line 27, in
from . import ssh
File "/usr/local/lib/python3.10/dist-packages/turbo_tunnel/ssh.py", line 15, in
import asyncssh
File "/usr/local/lib/python3.10/dist-packages/asyncssh/init.py", line 31, in
from .agent import SSHAgentClient, SSHAgentKeyPair, connect_agent
File "/usr/local/lib/python3.10/dist-packages/asyncssh/agent.py", line 30, in
from .public_key import SSHKeyPair, load_default_keypairs, load_keypairs
File "/usr/local/lib/python3.10/dist-packages/asyncssh/public_key.py", line 32, in
from .crypto import ed25519_available, ed448_available
File "/usr/local/lib/python3.10/dist-packages/asyncssh/crypto/init.py", line 50, in
from .x509 import X509Name, X509NamePattern
File "/usr/local/lib/python3.10/dist-packages/asyncssh/crypto/x509.py", line 33, in
from OpenSSL import crypto
File "/usr/local/lib/python3.10/dist-packages/OpenSSL/init.py", line 8, in
from OpenSSL import SSL, crypto
File "/usr/local/lib/python3.10/dist-packages/OpenSSL/SSL.py", line 34, in
from OpenSSL.crypto import (
File "/usr/local/lib/python3.10/dist-packages/OpenSSL/crypto.py", line 945, in
utils.deprecated(
TypeError: deprecated() got an unexpected keyword argument 'name'
root@direk-fra1-3:~# python3 -V
Python 3.10.12

It looks like the dependency library has conflict, i test python 3.11 is ok, can you test in virtual python environment?

yes its working perfectly with venv


python3Packages.leather: fix build

Broken in 2f4ea0c6dfb067551bff9f04c10d7c9e8eb70dcf.
Upstream changed from nose to pytest. Previously, the setuptoolsCheckHook would run and execute the ./test.py file, but that is not part of upstream’s build process and doesn’t work. Including pytestCheckHook means that does not run—just pytest.
Description of changes

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
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 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.

Result of nixpkgs-review pr 298046 run on x86_64-linux 1

14 packages failed to build:

csvkit
csvkit.dist
dbt (python311Packages.dbt-core)
dbt.dist (python311Packages.dbt-core.dist)
python311Packages.agate-dbf
python311Packages.agate-dbf.dist
python311Packages.dbt-bigquery
python311Packages.dbt-bigquery.dist
python311Packages.dbt-postgres
python311Packages.dbt-postgres.dist
python311Packages.dbt-redshift
python311Packages.dbt-redshift.dist
python311Packages.dbt-snowflake
python311Packages.dbt-snowflake.dist

10 packages built:

python311Packages.agate
python311Packages.agate-excel
python311Packages.agate-excel.dist
python311Packages.agate-sql
python311Packages.agate-sql.dist
python311Packages.agate.dist
python311Packages.leather
python311Packages.leather.dist
python312Packages.leather
python312Packages.leather.dist


Adding sign verification to the preflight flow

This PR add the sign verification stage to the preflight: in case image verification has failed and either build section is not defined or build verification was successful, preflight will now verify sign , if it was defined in the Module
Upstream-Commit: f37a1c03e1becf47fc99a810dfe1fb43665405f7
Fixes #283

/assign @qbarrand

/lgtm


best way to troubleshoot {"error":"Unable to load cars."}

The setup has worked so far. For the queries
/api/v1/
{
	"message": "TeslaMateApi v1 runnnig..",
	"path": "/api/v1"
}

/api/ping
{
	"message": "pong"
}

/api/v1/globalsettings
{
	"data": {
		"settings": {
			"setting_id": 1,
			"account_info": {
				"inserted_at": "2022-11-18T11:12:11+01:00",
				"updated_at": "2023-09-12T14:34:54+02: 00"
			},
			"teslamate_units": {
				"unit_of_length": "km",
				"unit_of_temperature": "C"
			},
			"teslamate_webgui": {
				"preferred_range": "rated",
				"language": "en"
			},
			"teslamate_urls": {
				"base_url": "http://192. 168.178.181:4000",
				"grafana_url": "http://<IP_ADDRESS>:3000"
			}
		}
	}
}

i get correct values back. But as soon as I use e.g. /api/v1/cars as query, I get only following response:
{
	"error": "Unable to load cars."
}

What is the best way to find the error? Can I check the communication to the database somehow? Thanks in advance!

Docker logs:
2023/09/12 15:29:41.839985 [info] TeslaMateAPIGlobalsettingsV1 - (/api/v1/globalsettings) executed successfully.
[GIN] 2023/09/12 - 15:29:41 | 200 |     978.406µs | <IP_ADDRESS> | GET      "/api/v1/globalsettings"
2023/09/12 15:30:07.480008 [error] TeslaMateAPICarsV1 - (/api/v1/cars). Unable to load cars.; sql: Scan error on column index 8, name "name": converting NULL to string is unsupported
[GIN] 2023/09/12 - 15:30:07 | 200 |    1.658839ms | <IP_ADDRESS> | GET      "/api/v1/cars"

hello @GERLion76,
Have you set the name of your car or is it brand new?
If so, this could be fixed with #226 that resolves NullString.
Regards,
Tobias

Hello @tobiasehlert ,
thank you for your answer! You were right, I had not yet set a name for my car. To test I have now set a name, but the behavior is still identical. Can I do something myself to fix the problem or do I have to wait for a fix for #226? Thanks a lot already.

hi @GERLion76,
Please try to restart your teslamateapi container to see, if the issue is resolved.
If not;
You could try the docker image with tag feature-address-details and see if the error is disappearing.
If not;
Please run following psql query to see what's in the database so that we can see that the name is populated:
select id, model, name from cars;

Regards,
Tobias

Hi @tobiasehlert,
you were right again. Restarted all containers again and now it works like a charm. Thanks for your work and support!


Low voltage on external lipo battery connected to the JST port

Board: t-display-s3 non-touch v1.2
I'm trying to power the board with a fully charged 3.7V lipo battery but it does not power on. I am aware of pulling pin 15 high for the display to work so I have the code bring up pin 15 and 38 for the screen. I've modified the GetBatteryVoltage demo code to add some sleep before powering the backlight on and it worked but I am seeing only 2.6-2.7v (Battery is at 4.18v as measured using multimeter). Measuring the 5v pin shows the same low voltage as well. Tried other known working li-ion it cannot work as well.
I have tried another of the same board and it is the same issue. There is no problem with using the usb-c to power the board. I have also updated the firmware but still seeing the same behaviour.
What could be the problem? Faulty board (both???)?

If you are new to LilyGO T-Display S3 you might try reading through my self-help repository :
https://github.com/teastainGit/LilyGO-T-display-S3-setup-and-examples
The ESP32 has a terrible ADC and it is not stable or particularly linear.
You 'updated the firmware'
What firmware did you update? I'm not sure what that means, the bootloader is in ROM, any sketch you may upload is also technically 'firmware'!
-cheers, -Terry

I encountered the same problem. Is there any solution?


panel

I change the configuration in the panel. But nothing changes. Why? I tried manually changing the configuration for each PC, but it didn't change. I've been trying to change it through the panel all day. Even now, the settings in the pastebin are different, but miners come to the panel with the first configuration.

Is the web panel configuration or "Remote Configuration" correct? It will only change it if the pool configuration is valid.


README: add dev setup troubleshooting to Contributing section

In setting up my local environment to run the marathon-lb tests I ran into two issues. This PR adds a small troubleshooting section that lists the issues along with the confirmed fixes.
Fixes https://jira.mesosphere.com/browse/DCOS_OSS-1513

@nlsun @jdef @gpaul can we merge these changes?

I already approved...
On Tue, Aug 29, 2017 at 10:14 PM, Nicholas Sun<EMAIL_ADDRESS>wrote:

@nlsun approved this pull request.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/mesosphere/marathon-lb/pull/486#pullrequestreview-59429822,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACPVLF7oatmqWB11ex6QyU85GYFcQF1Wks5sdMVygaJpZM4Owj-a
.

Merged.


Hundreds of Android Vitals crash reports

Hi,
I got hundreds of crash reports linked to cordova-admob-pro from Android vitals.
I am using:
cordova 7.0.1
cordova-android 6.2.3
cordova-admob-pro 2.29.21
I am not using crosswalk webview.
Here are the reports (all are the same, but happen on different devices and android version 4.4 to 7+):

java.lang.NullPointerException:
at com.rjfun.cordova.admob.AdMobPlugin.getAdViewSize (AdMobPlugin.java:185)
at com.rjfun.cordova.admob.AdMobPlugin.__getAdViewWidth (AdMobPlugin.java:191)
at com.rjfun.cordova.ad.GenericAdPlugin$5.run (GenericAdPlugin.java:582)
at android.os.Handler.handleCallback (Handler.java:739)
at android.os.Handler.dispatchMessage (Handler.java:95)
at android.os.Looper.loop (Looper.java:158)
at android.app.ActivityThread.main (ActivityThread.java:7225)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1120)

Thank you in advance.

Here is the source code:
https://github.com/floatinghotpot/cordova-admob-pro/blob/master/src/android/AdMobPlugin.java#L185
  protected AdSize getAdViewSize(View view) {
    if(view instanceof PublisherAdView) {
      PublisherAdView dfpView = (PublisherAdView) view;
      return dfpView.getAdSize();
    } else {
      AdView admobView = (AdView) view;
      return admobView.getAdSize();
    }
  }

NullPointerException means adview is NULL, it seems the adview is not created for some unknown reasons.
In normal cases, it won't happen. Unless, system error, like out of memory, etc.

Thank you for your answer.
Then isn't it possible to check if adview is NULL or not to avoid the crashes?

Nothing can be done if out of memory.

I am not sure that is the issue.
It occurs on many phones with 4gb ram or more. Users report that it happens a few seconds after launching the app.
What would happen if i call AdMob.removeBanner, AdMob.showBanner or AdMob.hideBanner before the banner is created? Could it be the source of the crashes?

calling removeBanner() too soon after createBanner() might cause the issue. As it will take some time to load the ad resource from ad server, need give the app a little time to process. hideBanner() won't cause the issue, as the ad view is not deleted, it's just make invisible.


cliquer: init at 1.21

Motivation for this change
Package cliquer.
Things done

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

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

[ ] 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 nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Success on x86_64-linux (full log)
Attempted: cliquer
Partial log (click to expand)
make[1]: Leaving directory '/build/source'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/52cr58xkzncvlgjhgrmj95772d94may6-cliquer-1.21
shrinking /nix/store/52cr58xkzncvlgjhgrmj95772d94may6-cliquer-1.21/lib/libcliquer.so.1.0.21
shrinking /nix/store/52cr58xkzncvlgjhgrmj95772d94may6-cliquer-1.21/bin/cl
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/52cr58xkzncvlgjhgrmj95772d94may6-cliquer-1.21/lib  /nix/store/52cr58xkzncvlgjhgrmj95772d94may6-cliquer-1.21/bin
patching script interpreter paths in /nix/store/52cr58xkzncvlgjhgrmj95772d94may6-cliquer-1.21
checking for references to /build in /nix/store/52cr58xkzncvlgjhgrmj95772d94may6-cliquer-1.21...
/nix/store/52cr58xkzncvlgjhgrmj95772d94may6-cliquer-1.21

Success on aarch64-linux (full log)
Attempted: cliquer
Partial log (click to expand)
make[1]: Leaving directory '/build/source'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/49ipw2yk5gj5gf6n2p8lcgr9sms2cjnn-cliquer-1.21
shrinking /nix/store/49ipw2yk5gj5gf6n2p8lcgr9sms2cjnn-cliquer-1.21/bin/cl
shrinking /nix/store/49ipw2yk5gj5gf6n2p8lcgr9sms2cjnn-cliquer-1.21/lib/libcliquer.so.1.0.21
strip is /nix/store/j7d4mr0ikv974ig7yzhknpsq288js4bs-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/49ipw2yk5gj5gf6n2p8lcgr9sms2cjnn-cliquer-1.21/lib  /nix/store/49ipw2yk5gj5gf6n2p8lcgr9sms2cjnn-cliquer-1.21/bin
patching script interpreter paths in /nix/store/49ipw2yk5gj5gf6n2p8lcgr9sms2cjnn-cliquer-1.21
checking for references to /build in /nix/store/49ipw2yk5gj5gf6n2p8lcgr9sms2cjnn-cliquer-1.21...
/nix/store/49ipw2yk5gj5gf6n2p8lcgr9sms2cjnn-cliquer-1.21


Use gcloud emulators to be able to run integration tests on CI

See https://cloud.google.com/sdk/gcloud/reference/beta/emulators
No all services can be emulated but this will allow some tests to be run on CI

An example can be found for Firestore.
It could also be done for PubSub and Spanner as they also provides emulators

It has been done for all services that have emulator except Pub/Sub.

Pub/Sub test with emulator just landing, closing this one.


Add descriptive text to photo/vid model deserialization

Photo/video descriptions weren't being added to our models before. This fixes that.

:+1: :100: :8ball:


Error: Error setting up environment

I've never seen this error before when using this action, I've copied the bit at the end:
   Transaction finished

  To activate this environment, use:

      $ [micro]mamba activate <environment>

  Or to execute a single command in this environment, use:

      $ [micro]mamba run -n <environment> mycommand

  --- Contents of /root/.bash_profile ---
  # .bash_profile

  # Get the aliases and functions
  if [ -f ~/.bashrc ]; then
  	. ~/.bashrc
  fi

  # User specific environment and startup programs

  PATH=$PATH:$HOME/bin

  export PATH

  # >>> mamba initialize >>>
  # !! Contents within this block are managed by 'mamba init' !!
  export MAMBA_EXE="/root/micromamba-bin/micromamba";
  export MAMBA_ROOT_PREFIX="/root/micromamba-root";
  __mamba_setup="$("$MAMBA_EXE" shell hook --shell bash --prefix "$MAMBA_ROOT_PREFIX" 2> /dev/null)"
  if [ $? -eq 0 ]; then
      eval "$__mamba_setup"
  else
      if [ -f "/root/micromamba-root/etc/profile.d/micromamba.sh" ]; then
          . "/root/micromamba-root/etc/profile.d/micromamba.sh"
      else
          export  PATH="/root/micromamba-root/bin:$PATH"  # extra space after export prevents interference from conda init
      fi
  fi
  unset __mamba_setup
  # <<< mamba initialize <<<

  set -eo pipefail; micromamba activate nnpops;
  --- End contents of /root/.bash_profile ---
  /usr/bin/bash -eo pipefail -l -c micromamba info --json
  {
      "base environment": "/root/micromamba-root",
      "channels": null,
      "curl version": "libcurl/7.88.1 OpenSSL/3.1.0 zlib/1.2.13 zstd/1.5.2 libssh2/1.10.0 nghttp2/1.52.0",
      "env location": "-",
      "environment": "None (not found)",
      "libarchive version": "libarchive 3.6.2 zlib/1.2.13 bz2lib/1.0.8 libzstd/1.5.2",
      "libmamba version": "1.4.2",
      "micromamba version": "1.4.2",
      "platform": "linux-64",
      "populated config files": null,
      "user config files": [
          "undefined/.mambarc"
      ],
      "virtual packages": [
          "__unix=0=0",
          "__linux=4.14.304=0",
          "__glibc=2.26=0",
          "__archspec=1=x86_64",
          "__cuda=11.7=0"
      ]
  }
  Error: Error setting up environment
  /actions-runner/_work/_actions/mamba-org/provision-with-micromamba/main/dist/main/index.js:67337
      throw Error('Error setting up environment')
            ^

  Error: Error setting up environment
      at installEnvironment (/actions-runner/_work/_actions/mamba-org/provision-with-micromamba/main/dist/main/index.js:67337:11)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)
      at async main (/actions-runner/_work/_actions/mamba-org/provision-with-micromamba/main/dist/main/index.js:67400:3)
      at async run (/actions-runner/_work/_actions/mamba-org/provision-with-micromamba/main/dist/main/index.js:67419:5)

This is how I am using the action: https://github.com/openmm/NNPOps/pull/100/files#diff-bd64c4de8527b7011b64ffef8a82f8ab32dae8c0ac01c59a71d4f3b28f05cfddR57-R67
And her is a link to the full build log: https://github.com/openmm/NNPOps/actions/runs/4751059677/jobs/8439836701#step:3:1
I am sure I am doing something really silly but I can't quite catch where the error is.
The output of micromamba info has me sus, I think that $HOME isn't being resolved correctly.

That's exactly what it was, sorry for the noise!


Add missing multipart/related function call.

Also added a go.mod file.

Hi, nice work. Could you maybe also provide a test case for this? :)

Also fixes #15


Define an intermediate configuration file to describe engine builds

Engine builds can be represented as a combination of gn, ninja, tests, archives and generators. The end goal is to consolidate all these build configurations in the .ci.yaml file but trying to split recipes and land the changes to .ci.yaml at the same time is challenging and potentially disruptive for the development workflows.
We are proposing to create a json configuration that can be modified along the way when splitting the recipes and creating the initial configurations and once that is complete consolidate the configuration language into the .ci.yaml proto file to finally integrate it with the workflows.

\cc @yjbanov @CaseyHillers @iskakaushik @zanderso

Next step document the configuration files.

https://flutter.dev/go/engine-build-definition-language


Event calender

In the month calender component, Is there a way display one or more events in a day ?
If not is there a plan to add.

there is no such functionality in the current version, but in the future it will most likely be implemented.

In 4.4.3 I added the attribute data-events - to display events inside days. Showing only counts events for the specified day.
Example: https://codepen.io/olton/pen/MWeNvxy?editors=1010


FibRetracement Documentation missing

No content available at FibRetracement section.
URL - https://nardew.github.io/talipp/latest/reference/talipp/indicators/FibRetracement/

Hi, you are right, I will add some description. FibRetracement is just a class with constants, was your point just to add doc or are you looking for something specific?

Yes, please add some description in doc. It will be of great help.

The documentation has been updated.


Incorporate jsdom

Once jsdom supports the web components specs, we'll probably want to change scram to support using only jsdom. The user should be able to specify whether they want to use electron or jsdom. Using only jsdom will allow the Electron dependency to be dropped, allowing hardware web components to run on less powerful devices.

Should be obsolete in lieu of basicHTML: https://github.com/WebReflection/basicHTML


Add tautomer query to the substructlibrary

TODO:
Still need to build the java wrappers.
Note contains the fixes from #3798

@greglandrum  I'm ready to go back to this one :). I'll let you know when I have fixed the conflicts.

WIth the template change I'll need to fix the java api.

@greglandrum java should be fixed now


feat: remove loom implementation from the revert PR

Motivation: The loom implementation contributes complexity to an already large PR for critical code. I'll happily reopen a standalone PR re-adding loom after the core behavior in the revert PR has been merged.

Thanks!


⚠ Bofrost.at has degraded performance

In 447b5bd, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2758 ms

Resolved: Bofrost.at performance has improved in 4b5e5c6 after 313 days, 10 hours, 36 minutes.


How to implement tf.split() in keras?

Hi,
Could somebody help me how to implement tf.split() in keras?
Thanks for your help.

tensor_list = keras.layers.Lambda(lambda tensor: tf.split(tensor, ...))(...)


Mark tests

@davidt0x updated the branch as discussed.

Though I didn't change setup.py for [test] because I think it should remain in the dev installation as to test locally one doesn't need to install the entire list of optional packages.
As discussed with @pgleeson, we wanted to have PyTorch as core dependencies as we provide specifically high functionalities and examples for it, so we might want to think about that.

Note sure what is causing the CI fails on linux and windows. Might be tricky to debug, looks like an out of memory error maybe.

Note sure what is causing the CI fails on linux and windows. Might be tricky to debug, looks like an out of memory error maybe.

yes, I ran the "not core" tests locally and it was crashing there as well after few minutes.

I think this is being because modelspec 0.2.4 is being installed in place of the github repo version when optional dependencies are installed. There was a bug fix after 0.2.4 (not sure if its in 0.2.5 or later). The bug was that the evaluate function was causing all the tensors to be formatted to strings regardless of whether they were actually printing or not. Anyway, the root cause is that somewhere pip thinks it needs 0.2.4 when in should be pinned higher.

@parikshit14 Try pulling in the latest changes from the development branch to yours, some of the issues with getting the correct version of modelspec/psyneulink are resolved there.

@parikshit14 This PR contains a lot of extra files related to the updates for integrating the readmes into the docs. These have already been selectively integrated into the docs (many image/py/json files are not yet required), so could you open a fresh PR with just the changes for marking the tests (ci.yml, setup.py etc)?


[PORT] Update Constant Expression ToString method

closes https://github.com/microsoft/botbuilder-js/issues/1854

Pull Request Test Coverage Report for Build 111246

10 of 10 (100.0%)  changed or added relevant lines in 1 file are covered.
9 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.05%) to 83.101%

Files with Coverage Reduction
New Missed Lines
%

libraries/botframework-streaming/src/webSocket/webSocketTransport.ts
2
80.65%

libraries/botframework-streaming/src/webSocket/webSocketServer.ts
7
66.67%

Totals

Change from base Build 111212:
-0.05%

Covered Lines:
9349

Relevant Lines:
10829

💛  - Coveralls


Honor the default trait

Neither clients or servers are honoring the default trait from IDL v2. This trait affects serialization behavior of clients and servers.
Note that as far as I know, awslabs/smithy does not yet provide protocol tests exercising this trait, so we may have to write our own and contribute them upstream.

I think only the server needs to implement this. The clients aren't supposed to send the default value since changing the default is not a backwards breaking change.

PR failing pending more info on https://github.com/awslabs/smithy/issues/1456

I believe the client does this correctly now.


[Slider] Narrow onChange value type

Change value and onChange value param type from number | number[] to generic Value

[x] I have followed (at least) the PR section of the contributing guide.

Closes #37854
Inspired by #38753

What's different from PR #38753

Removed component field from SliderType -> props
No work was done on the code snippets in the docs.
Solved every typescript error (not really sure but as far as I tested, it worked)

Thanks for your specific comment! @ZeeshanTamboli
I'll ensure that all the necessary changes are applied to the demos. I'll go ahead and add the type test in the Slider.spec.tsx as well.

Thanks for working on this @good-jinu. This is a difficult problem, we've tried to solve it a couple of times in the past, so expect more back and forth than usual PRs.
As additional context, Base UI has not implemented this: https://github.com/mui/base-ui/blob/master/packages/react/src/slider/root/useSliderRoot.ts. It makes me wonder if we should do it, given that we're going to use Base UI soon. @aarongarciah what do you think?

Thank you @DiegoAndai for providing the context!
This issue turned out to be more complex and challenging than I initially thought. As you mentioned, if we resolve this problem using Base UI, I hope a better solution will emerge in the future instead of this PR.

@DiegoAndai I've added the issue (https://github.com/mui/material-ui/issues/37854) to the Base UI milestone. I think we should wait to act on this since we'll adopt Base UI eventually.
@good-jinu I've created this issue on the Base UI repo: https://github.com/mui/base-ui/issues/1230

@aarongarciah @DiegoAndai @good-jinu What do you think about the recent changes I pushed for v6? It seems to work well.

@ZeeshanTamboli seems to work fine. I'll let @DiegoAndai have a go.

The solution seems to work.
Before we can approve it. I would like to understand the rationale behind using intersection for the SliderType. An intersection is supposed to represent a combination of types, so how and why combining SliderComponent<number> & SliderComponent<number[]> & SliderComponent<number | number[]>; work in this scenario? I would like to understand this before proceeding with the change @ZeeshanTamboli.

I would like to understand the rationale behind using intersection for the SliderType. An intersection is supposed to represent a combination of types, so how and why combining SliderComponent<number> & SliderComponent<number[]> & SliderComponent<number | number[]>; work in this scenario? I would like to understand this before proceeding with the change @ZeeshanTamboli.

We use an intersection type here to simplify function type overloading. The SliderComponent is a React function type because it leverages OverridableComponent, which describes a callable structure representing a React component that can be invoked like a function.
We can also explicitly define overloading for each case like:
type SliderTypeMapNumber<
  RootComponent extends React.ElementType = 'span',
  AdditionalProps = {},
> = SliderTypeMap<RootComponent, AdditionalProps, number>;

type SliderTypeMapNumberArray<
  RootComponent extends React.ElementType = 'span',
  AdditionalProps = {},
> = SliderTypeMap<RootComponent, AdditionalProps, number[]>;

interface SliderType {
  <RootComponent extends React.ElementType>(
    props: {
      /**
       * The component used for the root node.
       * Either a string to use an HTML element or a component.
       */
      component: RootComponent;
    } & OverrideProps<SliderTypeMapNumber, RootComponent>,
  ): React.JSX.Element | null;
  (props: DefaultComponentProps<SliderTypeMapNumber>): React.JSX.Element | null;

  <RootComponent extends React.ElementType>(
    props: {
      /**
       * The component used for the root node.
       * Either a string to use an HTML element or a component.
       */
      component: RootComponent;
    } & OverrideProps<SliderTypeMapNumberArray, RootComponent>,
  ): React.JSX.Element | null;
  (props: DefaultComponentProps<SliderTypeMapNumberArray>): React.JSX.Element | null;

  <RootComponent extends React.ElementType>(
    props: {
      /**
       * The component used for the root node.
       * Either a string to use an HTML element or a component.
       */
      component: RootComponent;
    } & OverrideProps<SliderTypeMap, RootComponent>,
  ): React.JSX.Element | null;
  (props: DefaultComponentProps<SliderTypeMap>): React.JSX.Element | null;
}

While this works, it is verbose and requires repeating similar patterns for each case. Using intersection simplifies the type definition:
type SliderType =
  SliderComponent<number> &
  SliderComponent<number[]> &
  SliderComponent<number | number[]>;

An intersection of function types is treated as overloaded signatures in TypeScript. For example:

A call with value as number resolves to the first signature (SliderComponent<number>).
A call with value as number[] resolves to the second signature (SliderComponent<number[]>).
TypeScript ensures the correct props and return types are enforced for each case.

Function overloading is particularly useful when:

A specific subset of inputs maps directly to a subset of outputs, ensuring type safety.
It improves code readability by clearly defining distinct cases.

While you are correct that intersection is supposed to represent a combination of types, but this case is for function type.
For more on function overloading, refer to https://www.typescriptlang.org/docs/handbook/2/functions.html#function-overloads
So in conclusion intersections for same function but different types are considered a form of overloading in TypeScript. I also found this https://github.com/microsoft/TypeScript/issues/53777#issuecomment-1508324096, if it helps for understanding.

I attempted to resolve this issue without a deep understanding of how the changes to the Slider type would affect the entire repository, and I greatly appreciate your help. @ZeeshanTamboli
type SliderType =
  SliderComponent<number> &
  SliderComponent<number[]> &
  SliderComponent<number | number[]>;

The clearer and more readable definition of SliderType is excellent. 👍

The component prop is no longer available on Slider after removing OverridableComponent type from the Slider type. It should be available.

One concern I have is that the official API documentation does not mention the component prop. Should we add it? I initially thought the component prop should not be used since it was not included in the official documentation.
Actually, component was added to the docs in #38753.
@@ -12,6 +12,9 @@
     "color": {
       "description": "The color of the component. It supports both default and custom theme colors, which can be added as shown in the palette customization guide."
     },
+    "component": {
+      "description": "The component used for the root node. Either a string to use a HTML element or a component."
+    },
     "components": {
       "description": "The components used for each slot inside.
This prop is an alias for the slots prop. It's recommended to use the slots prop instead."
     },


Possible to run packaged Windows app?

I was playing around with spectron and I noticed you can specify a path directly to the Mac app. Seen in the example code from the README:
beforeEach(function () {
    this.app = new Application({
      path: '/Applications/MyApp.app/Contents/MacOS/MyApp'
    })
    return this.app.start()
  })

Can the same thing be done for a packaged Windows app as well? I have tried pointing spectron to the app's .exe file but it doesn't seem to work. It doesn't seem to be able to open the app and the tests just timeout. All the examples I've seen for Windows point spectron to electron itself and then specify the app path via the args param. Like here for example: https://github.com/electron/spectron/issues/127. Is this the only way it can be ran for Windows?

@achrist Have you solved this issue?

@pri2si17-1997 I never did. I just ended up running it via pointing to the electron itself and then specified the app path.

Ohh.. ok. That works. @achrist


Issue 3586 - Split file reference store interface into queries and updates

Make sure you have checked all steps below.
Issue

[x] My PR addresses the following issues and references them in the PR title. For example, "Issue 1234 - My Sleeper
PR"

Resolves https://github.com/gchq/sleeper/issues/3586

Tests

[x] My PR adds the following tests OR does not need testing for this extremely good reason:

Covered by existing tests

Documentation

[x] In case of new functionality, my PR adds documentation that describes how to use it, or I have linked to a
separate issue for that below.

I'm not sure this change adds any value. Any implementation of file reference store needs to support both updates and queries. The hard part is making sure that updates and queries can happen at the same time whilst giving consistent results. Even if we had a state store where queries ran against a different store, that was effectively a cache of the main store, which was updated from the other store that was used for updates, the hard part is still making that correct, and splitting the functionality up so that it is in separate classes implementing separate interfaces seems to me to not be helpful.


Calling setState() with the value of switch not working

I'm calling setState on the value of the switch when it's changed. In this example, I'm trying to prevent anything from happening. However, if the user manually slides the switch back, _attemptChange is still called yet the switch does not go back to the true position.
bool _toggleState = true;

@override
Widget build(BuildContext context){
  return Switch(
    value: _toggleState,
    onChanged: _attemptChange,
  );
}

void _attemptChange(bool newState){
  setState(() {
    _toggleState = true;
  });
}

The code you've included does not contain enough information to diagnose any errors. Please include a minimal reproducible example of the error and the output of flutter doctor -v.

Maybe your code must like below
void _attemptChange(bool newState){
  setState(() {
    _toggleState = !_toggleState ;
  });
}

import 'package:camera/camera.dart';
import 'package:firebase_admob/firebase_admob.dart';
import 'package:flutter/material.dart';
import 'package:quick_learners_dictionary/main.dart';
import 'package:quick_learners_dictionary/widgets/text_style.dart';

CameraController cameraController;

AnimationController backDropAnimationController;

var cameraPreviewWords = '';

class CameraPage extends StatefulWidget {
  @override
  _CameraPageState createState() {
    return _CameraPageState();
  }
}

class _CameraPageState extends State<CameraPage> with TickerProviderStateMixin, WidgetsBindingObserver {
  final GlobalKey _backdropKey = GlobalKey(debugLabel: 'Backdrop');

  bool _resolutionPreset = prefs.getBool('ResolutionPreset');

  @override
  Widget build(BuildContext context) {
    return LayoutBuilder(
      builder: _displayWordsWithWrap,
    );
  }

  Widget _displayWordsWithWrap(BuildContext context, BoxConstraints constraints) {
    return SafeArea(
      child: Container(
        key: _backdropKey,
        child: Stack(
          children: <Widget>[
            new Column(
              mainAxisAlignment: MainAxisAlignment.start,
              mainAxisSize: MainAxisSize.max,
              crossAxisAlignment: CrossAxisAlignment.center,
              children: <Widget>[
                Flexible(
                  child: Container(
//                  padding: EdgeInsets.all(10),
                    child: Stack(
                      alignment: AlignmentDirectional.center,
                      children: <Widget>[
                        Stack(
                          alignment: AlignmentDirectional.topEnd,
                          children: <Widget>[
                            Padding(
                              padding: const EdgeInsets.only(top: 1),
                              child: PopupMenuButton(
                                offset: Offset(0, AdSize.banner.height.toDouble()),
                                icon: Icon(
                                  Icons.menu,
                                  color: Colors.white,
                                ),
                                itemBuilder: (BuildContext context) {
                                  return <PopupMenuItem<String>>[
                                    PopupMenuItem<String>(
                                      child: SwitchListTile(
                                        title: Text(
                                          'High Sensitivity',
                                          style: RegularTextStyle(
                                            fontSize: 16,
                                            color: Theme.of(context).primaryColorDark,
                                          ),
                                        ),
                                        value: _resolutionPreset,
                                        onChanged: (value) {
                                          setState(() {
                                            if (value) {
                                              _resolutionPreset = true;
//                                              prefs.setBool('ResolutionPreset', _resolutionPreset);
                                            } else {
                                              _resolutionPreset = false;
//                                              prefs.setBool('ResolutionPreset', _resolutionPreset);
                                            }
                                          });
                                        },
                                      ),
                                      value: 'High Sensitivity',
                                    ),
                                  ];
                                },
                              ),
                            ),
                          ],
                        ),
                      ],
                    ),
                  ),
                ),
              ],
            ),
          ],
        ),
      ),
    );
  }
}

I can slide the switch button, but when I click the switch button, nothing happens.
flutter doctor output:
[✓] Flutter (Channel stable, v1.2.1, on Linux, locale en_US.UTF-8)
    • Flutter version 1.2.1 at /home/zhangyuzhou/flutter
    • Framework revision 8661d8aecd (2 months ago), 2019-02-14 19:19:53 -0800
    • Engine revision 3757390fa4
    • Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /home/zhangyuzhou/Android/Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /home/zhangyuzhou/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[✓] Android Studio (version 3.3)
    • Android Studio at /home/zhangyuzhou/android-studio
    • Flutter plugin version 34.0.1
    • Dart plugin version 182.5215
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[!] IntelliJ IDEA Community Edition (version 2018.1)
    • IntelliJ at /home/zhangyuzhou/Downloads/idea-IC-181.4892.42
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.io/intellij-setup/#installing-the-plugins

[✓] VS Code (version 1.33.1)
    • VS Code at /usr/share/code
    • Flutter extension version 2.25.1

[✓] Connected device (1 available)
    • Pixel 2 XL • 805KPYR1822994 • android-arm64 • Android 9 (API 28)

! Doctor found issues in 1 category.

Here's a simpler main.dart that you can copy in to a fresh project. Notice that if you click on the toggle, nothing happens (which is intended), but the toggle's state changes when you slide it (which shouldn't happen).
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Issue #31290',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Flutter Issue #31290 Demo'),
    );
  }
}

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

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

class _MyHomePageState extends State<MyHomePage> {
  Widget build(BuildContext context){
    return Scaffold(
      appBar: AppBar(title: Text(widget.title),),
      body: Center(
        child: Switch(
          value: false,
          onChanged: (bool b){},
        ),
      ),
    );
  }
}

Also, here's the output of flutter doctor -v
[✓] Flutter (Channel stable, v1.2.1, on Mac OS X 10.14.4 18E226, locale
    en-US)
    • Flutter version 1.2.1 at /Users/akshath/Library/flutter
    • Framework revision 8661d8aecd (3 months ago), 2019-02-14 19:19:53
      -0800
    • Engine revision 3757390fa4
    • Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

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

[✓] iOS toolchain - develop for iOS devices (Xcode 10.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.2.1, Build version 10E1001
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.3

[!] Android Studio (version 3.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    ✗ Flutter plugin not installed; this adds Flutter specific
      functionality.
    • Dart plugin version 182.5215
    • Java version OpenJDK Runtime Environment (build
      1.8.0_152-release-1248-b01)

[✓] VS Code (version 1.33.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 2.26.0

[✓] Connected device (1 available)
    • iPhone Xs • 03FF088A-3DB4-425D-8B15-827534D700F8 • ios •
      com.apple.CoreSimulator.SimRuntime.iOS-12-2 (simulator)

! Doctor found issues in 1 category.

is there any update on this I am facing a similar issue ?

Any update on this issue facing the same issue. Looks like Switch is not properly. Please Help

same for me

ok, no idea why but it starts working when you move the setState invocation outside of the build method

I'm calling setState on the value of the switch when it's changed. In this example, I'm trying to prevent anything from happening. However, if the user manually slides the switch back, _attemptChange is still called yet the switch does not go back to the true position.
bool _toggleState = true;

@override
Widget build(BuildContext context){
  return Switch(
    value: _toggleState,
    onChanged: _attemptChange,
  );
}

void _attemptChange(bool newState){
  setState(() {
    _toggleState = true;
  });
}

From my understanding the bool value assigned during the creation of switch is considered to be final.
In your case, during the creation of switch, the _toggleState=true. If the switch is toggled manually to false, the _toggleState is mismatch with the current state of the switch. This will trigger the "onChanged", which will call your function "_attemptChange".  Here your function pro-grammatically changes your variable _toggleState=true again. This will not create the switch again because it was already built.
Now again you toggle the switch to true, but the _toggleState is already true. So there is no change, which in turn will not trigger the "onChanged".

So just a suggestion I got this to work but in a really hoky way.
What I think we really want is a beforeChange callback that lets us designate if the change should be allowed or not.
This would be useful in multiple situations where you want a user to confirm they want to enable a feature or any other validation you might want to do on a form.
What works but sucks for UI resonsivness:
bool _toggleState = true;

  @override
  Widget build(BuildContext context) {
    return Switch(
      value: _toggleState,
      onChanged: _attemptChange,
    );
  }

  void _attemptChange(bool newState) {
    setState(() {
      _toggleState = newState;
    });
    compute(sleep, Duration(microseconds: 0)).then((_) {
      setState(() {
        _toggleState = !newState;
      });
    });
  }

fixed in #51606

Hi @akshathjain
Calling setState is working fine on latest dev channel and also works with drag

Code Sample
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Issue #31290',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Flutter Issue #31290 Demo'),
    );
  }
}

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

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

class _MyHomePageState extends State<MyHomePage> {
  bool _toggleState = false;

  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Switch(
          value: _toggleState,
          onChanged: _attemptChange,
        ),
      ),
    );
  }

  void _attemptChange(bool newState) {
    setState(() {
      _toggleState = newState;
    });
  }
}

flutter doctor -v
[✓] Flutter (Channel dev, 1.19.0-3.0.pre, on Mac OS X 10.15.5 19F101, locale
    en-GB)
    • Flutter version 1.19.0-3.0.pre at /Users/tahatesser/Code/flutter_dev
    • Framework revision 6135091de9 (3 days ago), 2020-06-01 17:17:03 -0700
    • Engine revision e39301f23f
    • Dart version 2.9.0 (build 2.9.0-13.0.dev 6489a0c68d)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/tahatesser/Code/sdk
    • Platform android-29, build-tools 29.0.3
    • ANDROID_HOME = /Users/tahatesser/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

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

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 46.0.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.45.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.11.0

[✓] Connected device (5 available)
    • SM M305F      • 32003c30dc19668f          • android-arm64  • Android 10
      (API 29)
    • Taha’s iPhone • 00008020-001059882212002E • ios            • iOS 13.5.1
    • macOS         • macOS                     • darwin-x64     • Mac OS X
      10.15.5 19F101
    • Web Server    • web-server                • web-javascript • Flutter Tools
    • Chrome        • chrome                    • web-javascript • Google Chrome
      83.0.4103.97

• No issues found!

Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you

Weird, still facing the same issue today. My initial boolean is declared outside of the build widget and I've used the usual setState(){initialBool = newVal;} ... Will drop my solution here when I find it

Flutter Switch elements are constantly a frigging let down.  YEARS this has been going on. Pathetic.


Added Slider knowDown and knobOver drawable

This PR adds ability to set knowDown and knobOver drawable for Slider. Those are both optional so it does not affect existing sliders.
I added protected method getKnobDrawable in ProgressBar and Slider overrides it, I'm not sure if there is some better way to do it.
Also fixed small Javadoc mistake.

Re getKnobDrawable, we don't do it for backgrounds, we just have the same logic everywhere. Either way is probably fine.
Thanks!


Manually specify the domain

Is your feature request related to a problem? Please describe.
The Gen2 method to determine the domain of the relays (i.e. light vs switch) seems to be related to what's specified in Appliance Type. As mentioned in the instructions, this is broken in firmware 0.13.
Not sure how it used to be in firmware 0.12, but in 0.13 it looks like it's badly broken:

on a Shelly Plus 1 PM, it always reports it as a light, no matter the selection on the UI
on a Shelly Plus 2 PM, it always reports it as a switch, no matter the selection on the UI
the field ui_data where this information is provided in the MQTT payload does not seem to be associated to the specific relay, but rather to the device as whole. This means that on a Shelly Plus 2 PM, it would be impossible to configure one relay as a light and another as a switch...

Describe the solution you'd like
Since it seems we can't rely on this info any time soon, why not allow the manual specification of the domain like in Gen1?
We already have to specify the device_id of each one, since there is no auto-discovery - it would be easy to specify next to each one the desired domain.
Additional context
This is not as nice as getting this info automatically from the device, but even if the firmware issues get sorted out in the future, this feature could still be useful to override the domain anyway. In the meantime, we would have a working solution

Sooner or later Shelly will fix this bug so IMO it doesn’t make sense is to implement a new feature that won’t be needed in the future. If you want to speed things up you can ask Shelly support for a fix.
BTW currently, you can use SwitchToX helper to change the switch to the light platform.

Ok - ticket submitted with Shelly Support :)
Also, SwitchToX could be used to turn a Switch into a Light, but not a Light into a Switch, and that's what is happening with a Shelly Plus 1 PM (it's always a light)

You can reset old consumption type by rest API.

I don't understand what you mean

You can use http://device_ip/rpc/Shelly.SetConfig service to change consumption_types.

https://github.com/home-assistant/core/issues/84815#issuecomment-1431577597

I got a reply from Shelly about this - it seems we are looking in the wrong place...
https://github.com/home-assistant/core/issues/84815#issuecomment-1440084207

No, they're trying to pretend the problem isn't on their end, and it definitely is.


Azure Backup service doesn't considerate as 'Microsoft Services'

I'm using Storage account to backup my code with Azure Backup service. After enabling "Selected networks" and even after enabling "Allow trusted Microsoft services to access this storage account" backup getting failed. It works only when setting the option to "All Networks" in "Firewall and virtual Network" configuration.

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

Version Independent ID: * 6ecf71b6-77c4-3ab6-8ec9-353ea407d70f
Content: * Configure Azure Storage firewalls and virtual networks
Service: storage
GitHub Login: @bhanu7755

@bhanu7755 Thanks for the feedback! We are currently investigating and will update you shortly.

@bhanu7755 , Did you register the required resource providers name “Microsoft.SiteRecovery/ Microsoft.Networking” in your subscription level?
If not, you can run the below PowerShell command to register the resource provider “Microsoft.Backup” and check if still the backup jobs are failing
Login-Azaccount Select-azsubscription -Subscriptionname “your subscription name” Register-AzResourceProvider -ProviderNamespace Microsoft.SiteRecovery Register-AzResourceProvider -ProviderNamespace Microsoft.Networking
You can also register the specific resource provider using Azure portal by following the below guide.
Ref:- https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-supported-services
For more information, I would recommend you to refer the following document to get more info on this.
Ref:- https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/storage/common/storage-network-security.md#exceptions
Note:-  To apply a virtual network rule to a storage account, the user must have the appropriate permissions for the subnets being added. The permission needed is Join Service to a Subnet and is included in the Storage Account Contributor built-in role. It can also be added to custom role definitions.
Storage account and the virtual networks granted access may be in different subscriptions, but those subscriptions must be part of the same Azure AD tenant.

@YASWANTHM-MSFT Sure.. I'll give it a try.

@bhanu7755, Any update on this?
Let us know if you want any further assistance on this.

@bhanu7755, Any update on this?
Let us know if you want any further assistance on this.

@bhanu7755, Since we have not heard back from you we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly reopen the issue and continue the discussion


Allow running add-type twice

At the moment it messes up the index files as it doesn't check

solved by #30


The import org.apache.http cannot be resolved

I am trying to communicate with a REST API using org.apache.http.HttpResponse. I am getting Utils.java:3: The import org.apache.http cannot be resolved.

j2objc doesn't include support for org.apache.http. You're welcome to try porting it yourself, but it's not a small job.


REGISTRY-3214- Fix for Typo in comments section in Lifecycle tab

Merged PR: https://github.com/wso2/carbon-store/pull/312
This PR was sent first but I did not see this when merging above


add ProbeInterface ContentTypes

check out: https://readthedocs.org/projects/probeinterface/

https://probeinterface.readthedocs.io/en/main/format_spec.html


idk why i can`t do "pull request" but... Create micorosoft login to even older launcher, to get old bin file system

https://s3.amazonaws.com/MinecraftDownload/launcher/Minecraft.exe
here is download, i hope this help

cnat


Allow IdentityBlocker partial coverage

About the PR

You can now hide your identity using a combination of items, like sunglasses + sterile mask, instead of needing something like a gas mask to cover everything at once.
Resolves #24390
I didn't add a ton of partial eye/mouth coverage to existing items, since I wanted to avoid a scenario like secoffs being disguised due to their sunglasses + security gas mask. I started small and we can add some more if wanted after this PR. #24597 in particular will add face bandanas, which would introduce a supply of mouth coverage.
Why / Balance

This allows different combinations of clothing to be worn to hide your identity. This makes logical sense, allows different style/drip while going incognito, and might shake up the standard gas mask disguise.
Technical details

I just added an enum for coverage, and the relay event adds up the coverage of each item. If it reaches full coverage, it blocks the identity, otherwise not.  Also, I saw there was a bug with WearerMaskToggledEvent since we weren't passing the right ID, so I fixed that.
Media

[x] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

https://github.com/space-wizards/space-station-14/assets/89101928/af4c96c6-1466-4ffa-a490-b12653f55474
Changelog

:cl:

tweak: Some glasses and masks can be worn together to hide your identity.

looks good just want identity woman to look at it