TypeTransformers for PyTorch Tensor and Module

Signed-off-by: Samhita Alla<EMAIL_ADDRESS>TL;DR
This PR adds support for:

torch.Tensor as a native type.
saving and loading PyTorch modules (models & layers) using state_dict. PyTorchStateDict is the custom type defined to handle serialization and deserialization of state_dict. torch.nn.Module (base class for all neural network modules) isn't considered a native type here; this is per the docs: "Instead of saving a module directly, for compatibility reasons it is recommended to instead save only its state dict." Subclassing torch.nn.Module in a TypeTransfomer might mislead the users into thinking that a PyTorch model is being serialized and deserialized when instead the model's state_dict is being considered.

Type

[ ] Bug Fix
[ ] Feature
[x] Plugin

Are all requirements met?

[x] Code completed
[ ] Smoke tested
[x] Unit tests added
[ ] Code documentation added
[ ] Any pending items have an associated Issue

Complete description
Module/Model serialization example:
@task
def generate_model() -> PyTorchStateDict:
    bn = MyModel()
    return PyTorchStateDict(module=bn)

@task
def t2(state_dict: PyTorchStateDict):
    new_bn = MyModel()
    new_bn.load_state_dict(state_dict)

Tensor serialization example:
@task
def generate_tensor_1d() -> torch.Tensor:
    return torch.zeros(5, dtype=torch.int32)

@task
def t1(tensor: torch.Tensor) -> torch.Tensor:
    assert tensor.dtype == torch.int32
    tensor[0] = 1
    return tensor

Tracking Issue
https://github.com/flyteorg/flyte/issues/2544
Follow-up issue
NA
OR
https://github.com/flyteorg/flyte/issues/

@cosmicBboy, I don't think this can be a standalone plugin because having so will require users to install torch which might not have the version that the user has already installed or may want to install. If a user wants to use torch.Tensor or any other native type as such, the library might have already been installed to construct the models; so providing it with Flyte type doesn't look right.

In the to_python_value function, I think the nn.Module.load_state_dict method should be automatically called so that the user doesn't have to worry about loading it in the task function body.

How should we serialize and deserialize a PyTorch model? How do we construct the model and apply load_state_dict to it?

we don't know ahead of time what hyperparameters to initialize the nn.Module subclass, which is an issue because often times one can't simply instantiate a model with MyModel().
we could do something like Annotated[MyModel, dict(...)] to capture hyperparameters, but it's not ideal since in most use cases the hyperparameters are part of the task arguments and so we don't know that ahead of time.

Can we not store hyperparameters when the user returns a module with PyTorchStateDict as the attached type? The module must have already been initialized with the hyperparameters in case the architecture isn't hard-coded. WDYT?
@task
def generate_model() -> PyTorchStateDict:
    bn = MyModel(...)
    return PyTorchStateDict(module=bn)

Does it make sense to support nn.Module via torch.save and torch.load (i.e. using pickle)? Back-pedaling on my previous comment, I wonder if it's okay to support this and referencing the pytorch docs to highlight potential issues with doing this (I just have a feeling that this would be a welcome convenience for the lazy pytorch dev 🙃).

Yeah! torch.save on nn.Module stores the path to the file containing the class. The disadvantage with this approach as per their doc is that the code can break in various ways when the module is loaded in other projects or after refactors. Reference.
But isn't this the approach we'll have to follow in case we want to support applying load_state_dict on the model within the plugin because that's how we could store the subclass? If it's a module or a single network layer, we'd have to store what it is, say, BatchNorm1D. Please let me know if you disagree.

I think the "right way" using a PytorchStateDict dataclass is the way to go, although I'd propose extending this to PytorchCheckpoint such that it includes additional metadata, going off of this guide.:

I love this! We can have PyTorchCheckpoint rather than PyTorchStateDict to handle additional metadata.

do we want to support nn.Module as a type that uses torch.save/load, with documentation of the risks and encouraging use of PyTorchCheckpoint? I'm inclined to say yes because (i) pytorch supports it and (ii) in certain circumstances Flyte actually reduces the risk of incompatibilities since tasks are hardened via containerization.

Do you mean to say that we support:

nn.Module as a native type where we use torch.save and torch.load on the entire module under the hood, and
PyTorchStateDict to serialize checkpoint and let users run load_state_dict on the deserialized checkpoint?

I've dynamically created transformers for torch.nn.Module and torch.Tensor because they use the same logic under the hood. To eliminate code duplication, I opted for dynamic class creation, and the two transformers are present in the native.py file.
On the whole, the following are the types enclosed in this PR:

PyTorch Tensor (torch.Tensor) native type
Pytorch Module (torch.nn.Module) native type
PyTorchCheckpoint

All the examples are available in the PR description.
Note: PyTorchCheckpoint supports serializing hyperparamters of type dict, NamedTuple, and dataclass.

@cosmicBboy, I'm trying to generate a failure when training a model on GPU and loading the checkpoint on CPU in two different tasks. However, the execution's always a success. I ran the following code (I'll have to check if "cuda" is being set):
import torch

from flytekit import task, workflow, Resources
from dataclasses import dataclass

import torch.nn as nn
import torch.nn.functional as F
from dataclasses_json import dataclass_json

from flytekit import task, workflow
from flytekit.types.pytorch import PyTorchCheckpoint

from sklearn.datasets import load_iris
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler

import numpy as np
from typing import Tuple
from torch.autograd import Variable

class Model(nn.Module):
    def __init__(self, input_dim):
        super(Model, self).__init__()
        self.layer1 = nn.Linear(input_dim, 50)
        self.layer2 = nn.Linear(50, 50)
        self.layer3 = nn.Linear(50, 3)

    def forward(self, x):
        x = F.relu(self.layer1(x))
        x = F.relu(self.layer2(x))
        x = F.softmax(self.layer3(x), dim=1)
        return x

@task(requests=Resources(gpu="1"))
def generate_model() -> Tuple[
    PyTorchCheckpoint, torch.Tensor, torch.Tensor, torch.Tensor
]:
    iris = load_iris()
    X = iris["data"]
    y = iris["target"]
    names = iris["target_names"]
    feature_names = iris["feature_names"]

    # Scale data to have mean 0 and variance 1
    # which is importance for convergence of the neural network
    scaler = StandardScaler()
    X_scaled = scaler.fit_transform(X)

    # Split the data set into training and testing
    X_train, X_test, y_train, y_test = train_test_split(
        X_scaled, y, test_size=0.2, random_state=2
    )
    device = torch.device("cuda" if torch.cuda.is_available() else "cpu")

    model = Model(X_train.shape[1])
    model.to(device)
    optimizer = torch.optim.Adam(model.parameters(), lr=0.001)
    loss_fn = nn.CrossEntropyLoss()

    EPOCHS = 5
    X_train = Variable(torch.from_numpy(X_train)).float()
    y_train = Variable(torch.from_numpy(y_train)).long()
    X_test = Variable(torch.from_numpy(X_test)).float()
    y_test = Variable(torch.from_numpy(y_test)).long()

    X_train, X_test = X_train.to(device), X_test.to(device)
    y_train, y_test = y_train.to(device), y_test.to(device)

    loss_list = np.zeros((EPOCHS,))

    for epoch in range(EPOCHS):
        y_pred = model(X_train)
        loss = loss_fn(y_pred, y_train)
        loss_list[epoch] = loss.item()

        # Zero gradients
        optimizer.zero_grad()
        loss.backward()
        optimizer.step()

    return (
        PyTorchCheckpoint(
            module=model,
            # hyperparameters=Hyperparameters(epochs=3, loss=0.4),
            optimizer=optimizer,
        ),
        X_train,
        X_test,
        y_test,
    )

@task
def t1(
    checkpoint: PyTorchCheckpoint,
    X_train: torch.Tensor,
    X_test: torch.Tensor,
    y_test: torch.Tensor,
):
    new_bn = Model(X_train.shape[1])
    new_bn.load_state_dict(checkpoint["module_state_dict"])

    accuracy_list = np.zeros((5,))

    with torch.no_grad():
        y_pred = new_bn(X_test)
        correct = (torch.argmax(y_pred, dim=1) == y_test).type(torch.FloatTensor)
        accuracy_list = correct.mean()

@workflow
def wf():
    checkpoint, x_train, x_test, y_test = generate_model()
    t1(checkpoint=checkpoint, X_train=x_train, X_test=x_test, y_test=y_test)

Could you share a PyTorch code snippet if you've encountered the failure before? And, should the above code fail or succeed in your opinion?

@cosmicBboy, so map_location is required in all the three types: torch.nn.Module, torch.Tensor, and PyTorchCheckpoint (state_dict needs it, too!). Previously, I missed adding the pytorch-cuda image to the dockerfile, and hence, the code worked; however, now it fails during the GPU -> CPU conversion.
Here's the code I've added to handle device conversion:
if torch.cuda.is_available():
    map_location = "cuda:0"
else:
    map_location = torch.device("cpu")

Amazing! Let's merge this @samhita-alla @eapolinario

+1, please. @cosmicBboy

should we make this part of pip install flytekitplugins-ml plugin -> cc @cosmicBboy / @wild-endeavor

just for the paper trail:

@Yee and I chatted and we’re okay with the current approach on the PR. I think we figured it makes sense to have pytorch (and other “core” ML types) in flytekit.extras Our general heuristic is that: if it’s part of the “core” ML stack (i.e. it’s super popular, e.g. pytorch, tensorflow, keras, etc) then it can be in flytekit.extras but if not it goes into flytekitplugins … acknowledging that what is considered “core” will change over time.


docs(Props): fix uniqueness

Before

After

Why?
SUI.WIDTHS contains both numbers and strings (example: 1 and '1'), but it does not matter for the docs. Also, as we use value as key and React converts key to string, we have duplicate, but invisible elements.

Codecov Report

Merging #1780 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1780   +/-   ##
=======================================
  Coverage   99.75%   99.75%
=======================================
  Files         142      142
  Lines        2459     2459
=======================================
  Hits         2453     2453
  Misses          6        6

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 04ea612...a78fd20. Read the comment docs.

Thank ya!

Released in<EMAIL_ADDRESS>


Retrieve metadata.drd info via SegmentMetadataQuery

Addresses issue #1749
Pending on resolution of pull request #1728
--
Reopening of pull request #1752

@jon-wei can we resolve merge conflicts here?

@fjy I guess this is blocked on #1728 which is ready to be merged from my side.

@jon-wei there's some merge conflicts here


Sign requests for NOTIFY_START_URL and NOTIFY_STOP_URL

closed in https://github.com/oceanprotocol/operator-engine/commit/ad2186e664f9aba0716daefae2863846162306b1

closed in https://github.com/oceanprotocol/operator-engine/commit/ad2186e664f9aba0716daefae2863846162306b1


Added BitLocker updates from Carlos

@alkohli @dansisson

Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.

#assign: @dansisson
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team


Cleanup some of the documentation

Cleaned up some of the Installation documentation to

Improve clarity
Emphasize key points

@dieswaytoofast thanks for your feedback. Could you be more specific on what parts/content should be improved？

Sorry - I meant   I cleaned up some of the documentation (thats what it is in the PR)

Thanks @dieswaytoofast


Fixed popup background event handler

Fixes https://github.com/medplum/medplum/issues/957

Coverage increased (+0.002%) to 94.404% when pulling af7c8a3d3e252d9c7980b26b75016841242ac3a0 on cody-fix-popup-background-event-handler into b99f812d25a2d711e6005497d62abdac7ee7b68e on main.


Documenting the event system

Is your feature request related to a problem? Please describe.
The documentation on how the eventing system functions is confusing and poorly documented.
For example, for Pointer interactions,

What parameter(s) the functions take for the handleDownEvent, etc. is not mentioned.
How does stopDown work? Does it return a value or does it only accept a value?
Why is there not a matching handleUpEvent for each handleDownEvent?

I have a few SO related questions to help fill out missing information from the documentation.

[OpenLayers: How can I stop the click selection from passing through a higher layer?](https://stackoverflow.com/questions/75940663/openlayers-how-can-i-stop-the-click-selection-from-passing-through-a-higher-lay)
OpenLayers: How can I stop a click from causing a selection when it shouldn't be?
How can I fix a click incorrectly invoking a Select interaction when autopan'ing an Overlay?

Describe the solution you'd like
It would be useful to develop a guide discussing how events propagate through the system and include advice on how to properly manage them.
The answers to the SO questions could be included in such a guide which helps to explain how the eventing system works.

The function types should be better documented ...
but you can have a look at the source code to get the type information you are seeking:


Deploy with Concourse

descriptions to come.
much of the history is located in https://github.com/alphagov/govwifi-admin/pull/610

Blocked until Monday


platypus setup should be included in setup.sh

(same as above)

I think users must register to Platypus downloads page for manual download.
(Platypus download)
I wonder if there is a method for automatic download, such as using FTP. Any ideas?

@alexbmp
An automatic download may violate author's policy. So I think we should ask them (as you said).

@xenigmax
I got this reply e-mail from a Platypus developer.

We can include Platypus in our pipeline; it's distributed under a GPL license.
About his "preferences", I think we can notice of him the total download counts.
However, I think downloaders should decide whether they want update notices on Platypus. (Should make a configuration file about this.)
How do you think?

Dear Seongmin,
Thank you for your email.  Since Platypus is distributed under the GPL license it is fine to re-distribute as long as the original license is in place, so yes, you may include it in another open-source package.
Having said that, we would prefer to keep a tally of the downloads of Platypus, as well as a list of emails of users who would like to be informed about version updates.  If there is any way for you to collect this information, we would very much appreciate a regular update of this list, so that we can let grant bodies know of download numbers, and let users know of (infrequent) updates.
Would this be possible?
Best wishes
Gerton

@alexbmp
I think you should not post your emails to a public space.
So I deleted that part.

Good. Let's do it.
2/3
We do not collect personal information including emails.
So..there is no way to do that..

Maybe we can let users know that there is a mailingl list for Platypus. Just simply add that to readme or something. Then they can register if they want..
And.. you and I should register that mailing list.

Shoot... I just found out others can also view our posts here. I'm sorry for that;; Thanks for deleting the part.

Updated my pull request
2), 3)
Updated README.rst in the pull request.
While downloading Platypus, I was automatically included in the mailing list, so okay.
I also think users should enlist on the mailing list if they want to. I shared the current situation, very politely and thankfully, with Gerton about this.


Calling hasTask from a BuildResult gives confusing behavior

Gradle 6.4.
In BuildListener::buildFinished, calling buildResult.gradle.taskGraph.hasTask(':mytask') returns false, even when :mytask is run.
Calling gradle.taskGraph.whenReady { it.hasTask(':mytask') } returns true, which is what I expect.
Interestingly, in both of those TaskExecutionGraph instances, allTask does contain :mytask.
Expected Behavior
I expect hasTask to return true for tasks that were executed in the build, regardless of how I retrieve the task graph.
Current Behavior
hasTask returns false when called on the task graph returned by buildResult.gradle.taskGraph.
Steps to Reproduce
Sample project
Your Environment
Build scan URL: https://scans.gradle.com/s/uq37eswchggum

I think this has been this way for a long time.  I think the task graph is intended to be used just before it's executed or while it's being executed.  The task graph gets cleared by the time buildFinished is called.
What would you like to do with this check? There might be another way to accomplish the same thing.

What would you like to do with this check? There might be another way to accomplish the same thing.

I'm checking to see what tasks were executed in a build. There is indeed another way to accomplish that: the whenReady approach. That's why I called it "confusing behavior" and not necessarily a bug.
With buildResult.gradle.taskGraph, you have this situation:

allTasks - Docs say "Returns the tasks which are included in the execution plan."
allTasks does contain :mytask.
hasTask - Docs say "Determines whether the given task is included in the execution plan.".
But, hasTask(':mytask') returns false.

We're not likely to do anything about this as we're trying to minimize the use of buildFinished for configuration caching.


Add logging framework

Allow storing log files on the SD-Card during runtime to get offline system debug data.

[x] ESP_LOG() should print on STDOUT & write to logfile on SD card.
[x] Option to enable/disable sd card logging via config
[x] Option to enable/disable sd card logging via command
[x] log file on SD card should be limited in size
[x] possibility to rotate log file on sd card for having multiple files

Some random crashes have been occured during testing in the following scenarios:

high log rate within main loop
BT command interaction: turning sd card log on & off

Reasons are not yet understood. This could be either

[ ] a multithreading issue. Which should have been avoided by the used Mutex, but should be checked anyway
[ ] a stack overflow issue during fclose/fsync: should be checked with CONFIG_COMPILER_STACK_CHECK_MODE

Impact evaluation is still open:

[ ] performance impact
[ ] power consumption impact


Cherry Pick: Track lifecycle and skip terminating already terminating instances

Merge pull request #5411 from alam0rt/fix-issue-where-terminating-instances-scale-down-asg-to-min
Track lifecycle and skip terminating already terminating instances

ptal #sev15513 @tomwans


License file in npm package v1.0.0

@sindresorhus Hi Sindre, thank you for this package. Would you mind adding the license file to the npm package of v1.0.0? Without it we're not really able to use it, because it makes the npm package a distribution of proprietary code.
Additionally I noticed the license file does not include the date, which makes it invalid. I'd greatly appreciate it if you could add the dates to the license files in GH repo as well.
Many thanks for your consideration.

npm used to have a bug where it didn't include a licence file. That's why it's missing. Unfortunately, I don't have time or interest to update old versions. Just use the latest version which correctly includes the license file.

Additionally I noticed the license file does not include the date, which makes it invalid.

The year is not required.


Fix travis builds

See https://github.com/travis-ci/travis-ci/issues/3531
and https://github.com/bundler/bundler/issues/3558

The ruby 2.3 failures are legit, not a travis issue. We don't have ruby 2.3 support at the moment.

:+1:

What is different with ruby 2.3? The socket libraries?

I haven't investigated much yet, but it appears the method signatures for the stubbed *_nonblock methods have changed


fix(select): handle corner case of adding options via a custom directive

Under specific circumstances (e.g. adding options via a directive with replace: true and a structural directive in its template), an error occurred when trying to call hasAttribute() on a comment node (which doesn't support that method).
This commit fixes it by first checking if hasAttribute() is available.
Fixes #13874

@Narretz, I made the suggested changes. PTAL

small suggestion, otherwise LGTM

Backported to v1.4.x as df6e731.
Thx for the review, @Narretz.


🐛 [Bug] sonic only supports Go1.16~1.20 && CPU amd64, but your environment is not suitable

Before feedback (在反馈之前)

[X] I've searched the existing Issues, Discussions and Google (我已经搜索了现有的 Issues, Discussions 和 Google)
[X] The problem can be stably reproduced (这个问题可以被稳定复现)
[ ] The problem is generated after upgrading (问题是在升级之后产生的)

Operating System (操作系统)
MacOS
Golang Version (Go 版本)
1.21.x
Goravel Version (Goravel 版本)
1.13.7
Describe The Problem (描述问题)
I am following the instructions which is divided in the "Installation" section
https://www.goravel.dev/getting-started/installation.html
My configuration is for macOS Sonoma 14.2.1 and M1 Pro.
I receive the following notification after generating
crystal@Pavels-MacBook-Pro goravel-test % go run . artisan key: generate
WARNING: sonic only supports Go1.16~1.20 && CPU amd64, but your environment is not suitable

Reproduction Code (复现代码或截图)
No response

This question seems a bit strange because the framework only uses sonic on x86 architecture, see: https://github.com/goravel/framework/blob/master/support/json/json_x86.go
Is there any direct use of sonic in your code?

on x86 architecture
This is actually the reason.
Is there nothing to replace this package within the framework of ARM processors on macOS?

This is actually the reason.

The //go:build amd64 condition in the file will only compile sonic on x86, so I'm wondering about this behavior, can you run the following command and reply with the results?
github.com/bytedance/sonic

Is there nothing to replace this package within the framework of ARM processors on macOS?

sonic will automatically fallback to the encoding/json implementation when it is unavailable, so the warning message will not affect use.

However this still should be fixed and conditionally supported ARM platforms
if kind go:build amd64 is hardcoded is this shouldn't fixed?

Este problema se ve presente al ejecutar cualquier acción en la línea de comandos, pero no afecta para nada el desarrollo.


Webpack 2 ES2015 config import – best practices

I'm submitting a bug report
Webpack version:
2.1.0-beta.20
I'm running into what seems like a bit of a Catch-22 when trying to use ES6 Modules within my webpack.config.babel.js file.
Webpack 2 introduces native support for ES6 modules. As such, I've followed the recommendations found in What's new in webpack 2 and replaced my es2015 babel preset with es2015-webpack in my .babelrc file. This prevents babel from transpiling ES6 imports/exports, allowing Webpack to handle them instead.
Unfortunately, this causes the webpack command to throw SyntaxError: Unexpected token import. This makes intuitive sense; Webpack doesn't process its own config file, and babel hasn't been asked to transpile import/export statements, so node gets passed a file with import and errors.
The obvious workaround seems to be including the es2015 plugin in .babelrc and then overriding it with es2015-webpack in webpack.config.babel.js. However, this feels a bit hacky. Is this currently considered best practice? Or is there another better solution? (I'm assuming that the babel config defined in .babelrc will be merged with the babel config defined in webpack.config.babel.js, with the latter overriding the former. However, I haven't confirmed that. Is this actually the case?)
Also, it took quite a bit of head-scratching to realize what exactly was happening here. It would be great if the solution to using ES6 modules in webpack.config.babel.js was documented somewhere. I'm more than happy to write that documentation if that would be helpful.
Thanks for such an incredible tool!

A structure like this could help if your web source code is in an app folder.
+- .babelrc
+- webpack.config.babel.js
+-+ app
  +- .babelrc
  +- ...

Gosh, took me almost an hour to find even a single mention of using webpack@2 with ES6 config-file.
@sokra thanks for the hint, is this the 'final and official' way of doing it? Or are you planning on processing the config file with webpack itself in future?
@mover96 how is this a node issue? Suppose I have a working setup with webpack@1 and webpack.config.babel.js file. I upgrade to webpack@2, change the preset to {"modules": false} and now it fails. Well, of course adding ES6 native support to Node will solve the issue, but still this is not something to address right now for Node

Actually, you can config it like this.
{
  "presets": ["./preset-es2015", "react", "stage-0"],
  ...
}

module.exports = {
  presets: [
    [require('babel-preset-es2015').buildPreset, {
      modules: process.env.RUN_MODE === 'es' ? false : 'commonjs',
    }],
  ],
};

See example at https://github.com/hung-phan/koa-react-isomorphic. You can set the environment based on your requirement

@sokra for your suggestion (thanks) do we need to do anything special to wire that up? i've got the two files but still not getting treesaking going :(

I resolved this issue by moving webpack configs to a separate webpack folder and then creating a simple .babelrc there:
{
	"presets":
	[
		"es2015"
	]
}


Aurora Feedback

Any chance we could use Aurora PostgreSQL (that's currently being tested) instead of Posgres?
Or could we define our own resources amongst AWS products?
To rephrase, how could we add our own resources as a Convox Resource?

Hi @seivan, sorry we missed this. You could use Aurora PostgreSQL instead of Postgres, but you'd need to manage it yourself in AWS for now. We'd need a patch to be able to add such things as a Convox resource, but that probably wouldn't be too hard (if one were so inclined!).


mopidy-spotify integration still working on jasper?

as the title suggests, does mopidy-spotify integration still work on jasper? and if not, can anyone please propose an altenative for a voice controlled player for raspberry pi?

sorry for this very late reply, i already forgot almost everything that i did, i do remember though that when the error was gone and i managed to connect to spotify, it also need another app(forgot the name though), i believe it is a media player for Rpi which support the voice commands. just search for those apps, i think they were a variant of the mpc
On Friday, February 1, 2019, 1:47:56 AM GMT+8, Nikos Zisop<EMAIL_ADDRESS>wrote:

For me it doesn't. I followed the steps in the official documentation but, managed to make Mopidy to work (after several frustrating hours) but when I am using the "spotify" or "music" command, I get an error. If you want I can provide details. In the meantime, I guess Kalliope is an alternative but I still haven't tried it out.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

I don't think this is can work anymore since libspotify is dead...


Elements should be able to attach and unattach themselves from being called on mousemoved events

I forgot exactly why I wanted this, but I already had a use case in mind.
NOTE: If I can't figure out why I want it, don't do it.

I think it was for non-focused elements to be able to react to the mouse hovering over them, and that I wanted them to be alerted to movement instead of constantly checking for where the mouse is during an update() method.

I have made it so that there is a pop.hovered element now. I should make onhover events a thing instead of this.


Add support for jdbc ElasticSearch

Hi @serge-rider
Can you please add support for jdbc ElasticSearch? According to doc(https://www.elastic.co/blog/elasticsearch-6-3-0-released) since 6.3.0 it supports jdbc (https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-jdbc.html)
Thanks

Good point, thank for noticing their new driver.
Will add it in the next version.

I know this is an old request but is there a non-jdbc implementation for Elastic? I am just using the open source ES container but can't connect via DBeaver since it requires the paid, licensed version. :(


Implementing FullScreen Functionality In these project.

Discussed in https://github.com/PierfrancescoSoffritti/android-youtube-player/discussions/975

Originally posted by iammaulik1 May  1, 2023
I tried to implement it by help of your source code but i am continuously getting errors. so , can anybody give me code with fullscreen implementation in it. and add its functionality inside Quick Start code which is provided by owner.

You can have a look in the sample app, it contains a complete example.


Create new Click Counter Android App

Please describe about your Androapp

A Click Counter app stores the no. of times a user clicks on the button. It has a reset functionality too.
Kotlin
.

Additional context

@aadityamp01 request you to assign this issue to me.

Hello flutter similar type of app is given defaulty when we create project. I think that creating such very basic app is not a good idea.

Hey @satyacasm
Your application is good but we've already added, apps in kotlin which uses these concepts of android.
If you have more ideas, feel free to raise a new issue, will assign it to you!
Thank you!


Upload checkpoint to s3 directly

What problem does this PR solve?
Issue Number: close #8354
Problem Summary:
What is changed and how it works?
Check List
Tests

[ ] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Documentation

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Changes MySQL compatibility

Release note

None

/run-build-release

/run-all-tests

/run-all-tests

/run-all-tests

/run-all-tests

/run-unit-test

/run-build-release

/run-build-release

/rebuild

/run-build-release


Application Insights source map with Azure blob only uses root folder

According to this: https://docs.microsoft.com/en-us/azure/azure-monitor/app/source-map-support#push-your-source-maps-to-your-blob-container it says we should not add sourcemaps in a subfolder to the storage account but put them in the root folder
I was wondering if it is on the roadmap to support atleast, telling the application insights UI, which folder in blob to look for the sourcemaps
The scenario is that our frontend application has many versions, all pushing to the same application insights instance, and pushing all sourcemaps into subfolders tagged by their version number into blob. Thus we need subfolders since we have different sourcemaps for each version of our app
Thank you, let me know if you need more clarification

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

ID: 0c820ae7-4107-902c-7458-a7cfe17e6bc1
Version Independent ID: 631e0cbe-d72e-76bb-cb6f-05b42490f03b
Content: Source map support for JavaScript applications - Azure Monitor Application Insights - Azure Monitor
Content Source: articles/azure-monitor/app/source-map-support.md
Service: azure-monitor
Sub-service: application-insights
GitHub Login: @markwolff
Microsoft Alias: marwolff

@thoo1 Thanks for the question! We're investigating this and will get back to you shortly.

Hi @thoo1 uploading source maps to subfolders as you've described should work as expected. The documentation reflects the original state of the feature, and the feature has since been updated to support scenarios exactly like yours.
I'll update the documentation to match the true behavior -- thanks for the report!

@markwolff Thanks for the inputs and updates.
@thoo1 Thanks for the feedback. I have submitted a PR to fix the issue, the change is merged internally and will go-live in the public docs shortly.


[test] Update hdf5 test to include prgenv nvidia

Codecov Report

Merging #2044 (a9e07da) into master (c5f59fa) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #2044   +/-   ##
=======================================
  Coverage   87.48%   87.48%
=======================================
  Files          50       50
  Lines        8853     8853
=======================================
  Hits         7745     7745
  Misses       1108     1108

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 c5f59fa...a9e07da. Read the comment docs.

@rsarm I have updated that on #2024

This check was already updated in #2024


Various random crashes

Godot version
v4.3.stable.mono.official (77dcf97d82cbfe4e4615475fa52ca03da645dbd8)
LimboAI version
v1.2.2 [d3d3295]
LimboAI variant
GDExtension / AssetLib
Issue description
Hi there, thanks for maintaining the lib, lovely system and nice to use.
I'm seeing a lot of crashes, which always seem to happen around clicking or saving near LimboAI,
Using macOS.
This one happened when I clicked on the LimboAI tab after opening the project:
================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.3.stable.mono.official (77dcf97d82cbfe4e4615475fa52ca03da645dbd8)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] invoke_previous_action(sigaction*, int, __siginfo*, void*, bool)
[2] 2   libsystem_platform.dylib            0x000000019c212584 _sigtramp + 56
[3] GLTFLight::from_dictionary(Dictionary)
[4] 4   liblimboai.macos.editor             0x000000010bf55774 limboai_init + 1505944
[5] 5   liblimboai.macos.editor             0x000000010bf1a60c limboai_init + 1263920
[6] ScriptInstanceExtension::_add_property_with_state(void const*, void const*, void*)
[7] Color::blend(Color const&) const
[8] 8   liblimboai.macos.editor             0x000000010bf23824 limboai_init + 1301320
[9] 9   liblimboai.macos.editor             0x000000010be41ef0 limboai_init + 377364
[10] 10  liblimboai.macos.editor             0x000000010be41bb0 limboai_init + 376532
[11] 11  liblimboai.macos.editor             0x000000010bdf2d10 limboai_init + 53300
[12] Object::get_property_list(List<PropertyInfo, DefaultAllocator>*, bool) const (in Godot) + 616
[13] Resource::hash_edited_version_for_preview() const (in Godot) + 148
[14] EditorResourcePreview::_iterate() (in Godot) + 692
[15] EditorResourcePreview::_thread() (in Godot) + 92
[16] Thread::callback(unsigned long long, Thread::Settings const&, void (*)(void*), void*) (in Godot) + 120
[17] Thread::~Thread()
[18] 18  libsystem_pthread.dylib             0x000000019c1e1f94 _pthread_start + 136
[19] 19  libsystem_pthread.dylib             0x000000019c1dcd34 thread_start + 8
-- END OF BACKTRACE --
================================================================
zsh: abort      /Applications/Godot_mono.app/Contents/MacOS/Godot --editor ./project.godot |
zsh: done       tee godot_logs

How to reproduce
No precise steps at the moment,
Is there a way to enable more logging and share more precise details?

I have seen this error after changing a BTAction code in vscode then clicking back on the LimboAI panel:
ERROR: Condition "!p_keep_state && has_instances" is true. Returning: ERR_ALREADY_IN_USE
   at: reload (modules/gdscript/gdscript.cpp:745)

Another case: editing a file in vscode, moving back to the limboAI editor, and saving:
Unloading assembly load context...
Assembly load context unloaded successfully.

================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.3.stable.mono.official (77dcf97d82cbfe4e4615475fa52ca03da645dbd8)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] invoke_previous_action(sigaction*, int, __siginfo*, void*, bool)
[2] 2   libsystem_platform.dylib            0x000000019c212584 _sigtramp + 56
[3] GLTFLight::from_dictionary(Dictionary)
[4] 4   liblimboai.macos.editor             0x000000010d179774 limboai_init + 1505944
[5] 5   liblimboai.macos.editor             0x000000010d13e60c limboai_init + 1263920
[6] ScriptInstanceExtension::_add_property_with_state(void const*, void const*, void*)
[7] Color::blend(Color const&) const
[8] 8   liblimboai.macos.editor             0x000000010d147824 limboai_init + 1301320
[9] 9   liblimboai.macos.editor             0x000000010d065ef0 limboai_init + 377364
[10] 10  liblimboai.macos.editor             0x000000010d065bb0 limboai_init + 376532
[11] 11  liblimboai.macos.editor             0x000000010d016d10 limboai_init + 53300
[12] Object::get_property_list(List<PropertyInfo, DefaultAllocator>*, bool) const (in Godot) + 616
[13] ResourceFormatSaverTextInstance::_find_resources(Variant const&, bool) (in Godot) + 448
[14] ResourceFormatSaverTextInstance::_find_resources(Variant const&, bool) (in Godot) + 820
[15] ResourceFormatSaverTextInstance::_find_resources(Variant const&, bool) (in Godot) + 624
[16] ResourceFormatSaverTextInstance::_find_resources(Variant const&, bool) (in Godot) + 1184
[17] ResourceFormatSaverTextInstance::save(String const&, Ref<Resource> const&, unsigned int) (in Godot) + 408
[18] ResourceFormatSaverText::save(Ref<Resource> const&, String const&, unsigned int) (in Godot) + 260
[19] ResourceSaver::save(Ref<Resource> const&, String const&, unsigned int) (in Godot) + 624
[20] EditorNode::_save_scene(String, int) (in Godot) + 1344
[21] EditorNode::_save_scene_with_preview(String, int) (in Godot) + 3268
[22] EditorNode::_menu_option_confirm(int, bool) (in Godot) + 13884
[23] Object::emit_signalp(StringName const&, Variant const**, int) (in Godot) + 616
[24] PopupMenu::activate_item(int) (in Godot) + 452
[25] PopupMenu::activate_item_by_event(Ref<InputEvent> const&, bool) (in Godot) + 592
[26] MenuBar::shortcut_input(Ref<InputEvent> const&) (in Godot) + 328
[27] Node::_call_shortcut_input(Ref<InputEvent> const&) (in Godot) + 496
[28] SceneTree::_call_input_pause(StringName const&, SceneTree::CallInputType, Ref<InputEvent> const&, Viewport*) (in Godot) + 1188
[29] Viewport::_push_unhandled_input_internal(Ref<InputEvent> const&) (in Godot) + 168
[30] Viewport::push_input(Ref<InputEvent> const&, bool) (in Godot) + 824
[31] Window::_window_input(Ref<InputEvent> const&) (in Godot) + 756
[32] GridMapEditorPlugin::~GridMapEditorPlugin()
[33] DisplayServerMacOS::_dispatch_input_event(Ref<InputEvent> const&)
[34] DisplayServerMacOS::_dispatch_input_event(Ref<InputEvent> const&) (in Godot) + 572
[35] Input::_parse_input_event_impl(Ref<InputEvent> const&, bool) (in Godot) + 2828
[36] Input::flush_buffered_events() (in Godot) + 136
[37] DisplayServerMacOS::process_events() (in Godot) + 692
[38] OS_MacOS::run() (in Godot) + 156
[39] main (in Godot) + 392
[40] 40  dyld                                0x000000019be57154 start + 2476
-- END OF BACKTRACE --
================================================================
zsh: abort      /Applications/Godot_mono.app/Contents/MacOS/Godot --editor ./project.godot |
zsh: done       tee godot_logs

The stack traces look very similar, but happy to share more as they happen.

I got the latest gdextension from https://github.com/limbonaut/limboai/actions/runs/12109251884
then built the repository (current master, 6644f191ca3dbd29a37ae009e6052ffce9a0acca)
with scons target=editor dev_build=yes and replaced the addons/limboai/bin folder with what was built.
I got the following crash when I ran my project:
================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.3.stable.mono.official (77dcf97d82cbfe4e4615475fa52ca03da645dbd8)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] invoke_previous_action(sigaction*, int, __siginfo*, void*, bool)
[2] 2   libsystem_platform.dylib            0x000000019c212584 _sigtramp + 56
[3] GLTFLight::from_dictionary(Dictionary)
[4] unsigned long long godot::internal::_call_native_mb_ret<unsigned long long>(void const*, void*)
[5] godot::Object::get_instance_id() const
[6] godot::CallableCustomMethodPointerRetC<LimboState, godot::Ref<BlackboardPlan>>::get_object() const
[7] godot::custom_callable_mp_is_valid(void*)
[8] ScriptInstanceExtension::_add_property_with_state(void const*, void const*, void*)
[9] Color::blend(Color const&) const
[10] signed char godot::internal::_call_builtin_method_ptr_ret<signed char>(void (*)(void*, void const* const*, void*, int), void*)
[11] godot::Callable::is_valid() const
[12] BlackboardPlan::is_mapping_enabled() const
[13] BlackboardPlan::_get_property_list(godot::List<godot::PropertyInfo, godot::DefaultAllocator>*) const
[14] BlackboardPlan::get_property_list_bind(void*, unsigned int*)
[15] Object::get_property_list(List<PropertyInfo, DefaultAllocator>*, bool) const (in Godot) + 616
[16] ResourceFormatSaverTextInstance::_find_resources(Variant const&, bool) (in Godot) + 448
[17] ResourceFormatSaverTextInstance::_find_resources(Variant const&, bool) (in Godot) + 820
[18] ResourceFormatSaverTextInstance::_find_resources(Variant const&, bool) (in Godot) + 624
[19] ResourceFormatSaverTextInstance::_find_resources(Variant const&, bool) (in Godot) + 1184
[20] ResourceFormatSaverTextInstance::save(String const&, Ref<Resource> const&, unsigned int) (in Godot) + 408
[21] ResourceFormatSaverText::save(Ref<Resource> const&, String const&, unsigned int) (in Godot) + 260
[22] ResourceSaver::save(Ref<Resource> const&, String const&, unsigned int) (in Godot) + 624
[23] EditorNode::_save_scene(String, int) (in Godot) + 1344
[24] EditorNode::_save_scene_with_preview(String, int) (in Godot) + 3268
[25] EditorNode::_save_all_scenes() (in Godot) + 332
[26] EditorNode::try_autosave() (in Godot) + 308
[27] EditorRunBar::_run_scene(String const&) (in Godot) + 2216
[28] EditorRunBar::play_main_scene(bool) (in Godot) + 88
[29] CallableCustomBind::call(Variant const**, int, Variant&, Callable::CallError&) const (in Godot) + 376
[30] Object::emit_signalp(StringName const&, Variant const**, int) (in Godot) + 616
[31] BaseButton::_pressed() (in Godot) + 268
[32] BaseButton::on_action_event(Ref<InputEvent>) (in Godot) + 376
[33] BaseButton::gui_input(Ref<InputEvent> const&) (in Godot) + 312
[34] Control::_call_gui_input(Ref<InputEvent> const&) (in Godot) + 704
[35] Viewport::_gui_call_input(Control*, Ref<InputEvent> const&) (in Godot) + 448
[36] Viewport::_gui_input_event(Ref<InputEvent>) (in Godot) + 684
[37] Viewport::push_input(Ref<InputEvent> const&, bool) (in Godot) + 720
[38] Window::_window_input(Ref<InputEvent> const&) (in Godot) + 756
[39] GridMapEditorPlugin::~GridMapEditorPlugin()
[40] DisplayServerMacOS::_dispatch_input_event(Ref<InputEvent> const&)
[41] DisplayServerMacOS::_dispatch_input_event(Ref<InputEvent> const&) (in Godot) + 572
[42] Input::_parse_input_event_impl(Ref<InputEvent> const&, bool) (in Godot) + 2828
[43] Input::flush_buffered_events() (in Godot) + 136
[44] DisplayServerMacOS::process_events() (in Godot) + 692
[45] OS_MacOS::run() (in Godot) + 156
[46] main (in Godot) + 392
[47] 47  dyld                                0x000000019be57154 start + 2476
-- END OF BACKTRACE --
================================================================
zsh: abort      /Applications/Godot_mono.app/Contents/MacOS/Godot --editor ./project.godot |
zsh: done       tee godot_logs

Thanks for the stack trace. From what I can read, it happens on "Run Scene" command, while auto-saving the scenes, and saving some particular BlackboardPlan in the process. Somehow it crashes inside GLTFLight::from_dictionary() call. Hmm, it might be a pointer corruption, though. Do you store such a resource in a blackboard plan? If so, can you post a screenshot of the BlackboardPlan?

I experince this a lot, exit signal 11. Usually when i am editing blackboard and coding some task or state script. It ruins the experience. I will provide debug info after i compile editor with debug symbols. I am having issues with latest microsoft compiler.
I highly doubt this issue is also related.

I have exactly the same problem. And I don't have any GLTFLight resource in blackboard plan.
It seems occur when I open project with Godot Editor along with vscode.
And thank you for your creation of LimboAI.

You need to build Godot and extension library using the same toolchain, I think. Anyways, I've managed to reproduce the issue - I'll make a draft PR with a potential fix.

I opened a PR with a potential fix.
@TuysuzTavsan
Can you check if this build does not cause crashes with VSCode?

I did same steps and some more messing around with code, scene etc... (GDExtension). I have been experiencing crash issues for some time, so i am not sure if all of them was this (I am sure most of them, if not all was due to potentially fixed issue.). Anyway i cant reproduce crash with same steps on build you linked. What was the issue anyway ? @limbonaut

callable_mp macro causing issues in some cases in GDExtension. Curiously, same code is not causing trouble if built as module.


Linux Syscall Definitions as a Library

https://github.com/andrew-johnson-4/lm-sys-linux

Unfortunately the portable way to do this is to link with a C library.

This can be a goal to link with C. The library then would just be an interface to that.


Are we allowed to access the PE nodes outside the lab times?

Tried it, did not work.

If that was possible one could not attend lab sessions and still get full attendance

@zuoshihua True, true...

Learnt the hard way: it is a BIG FAT NO


Allow users to update / add emails

@tzarebczan commented on Mon Jul 15 2019

The Issue
In the next release, we are adding a link to the FAQ on how to clear the token.
Users should be able to add/edit their emails during initial setup, while verification is in progress, and even after the email has been verified. The user would make a call tot the user_new api with the same auth token, see https://github.com/lbryio/lbryinc/blob/4f2d4a50986bffab0b05d9f6cd7c2f0a856a0e02/src/redux/actions/user.js#L227
This would then merge their current account with the newly entered email upon email verification.
The common scenario where this is needed is when someone types in the incorrect email during signup and wants to change it.
We don't have an API to remove emails yet.
System Configuration

LBRY Daemon version:
LBRY App version:
LBRY Installation ID:
Operating system:

Anything Else

Screenshots

@tzarebczan commented on Tue Nov 26 2019
something to consider: merging will fail if 2 users have synced wallets. Currently, these would need to be handled manually.

@tzarebczan commented on Thu Oct 28 2021
There are apis to add and remove emails currently. So if a user wanted to change, they would first add and then remove the other one.
We do this manually for multiple users a day, so we should consider adding soon.
If a user's email is already in use, then they would have to contact us (the add api would error).

This will happen with the new OAUTH flow.


BUGFIX: Flow 5.3 compatibility

Closing because those breaking changes should not have been in 5.3 to begin with (see https://github.com/neos/flow-welcome/commit/bee3aebc66ceb9b33bcc91a21914865d3c7151df#diff-8fde63ef97b0237ef3225413a95a7dc5)


What does Neomake! default to?

I'm currrently using Neomake with Go. When working on a project with multiple files :Neomake doesn't seem to detect structs and functions in other files than the current file. Neomake! however does, but it builds a binary each time. I'd like to customize the Neomake! command for Go, but I can't seem to find where it's defined in this repo.

@dani-h you can use set makeprg= to use different makers. my example for django set makeprg=django-admin\ test and I can run Neomake! to run tests for django

Sorry for the wait. @aliev is correct. You can also do let g:neomake_enabled_makers = ['whatever', 'you', 'want'].


Code coverage

We be nice if our CI would report code coverage. This should ideally use the new LLVM-based code coverage that rustc now supports and should combine the coverage of both test runs (kafka and redpanda) together.

https://github.com/taiki-e/cargo-llvm-cov might be helpful for this.


Override Uri of an Endpoint

Feature Request
Crates
tonic::transport
Motivation
Endpoint is a builder for Channel. I want to reuse an Endpoint to make multiple Channels with different Uris. In using balance_channel we usually want to add an Endpoint with the same config but only with difference in uri.
We can clone Endpoint but we don't have a method to alter Uri at the moment because origin only changes scheme and the authority but except port number.
Proposal
Add a method to override Uri. Is this not safe?
Alternatives
Creating Endpoint instance with different Uri for each channel makes it but it is expensive than only cloning.

I realize I misinterpreted the Uri spec. As the Authority actually includes host and port (cf. https://docs.rs/http/latest/http/uri/struct.Authority.html), Endpoint::origin is able to satisfy my requirement.


mod_pagespeed incompatible with .htaccess

So I have this situation. I want to use mod-pagespeed to optimize images, css, js etc and so far everything was performing well. However, I'm testing some htaccess directives to redirect an image request to a smaller version based on user agent. Here's an example of what I'm doing.
RewriteCond %{HTTP_USER_AGENT}  ^(.)iphone(.)$ [NC]
RewriteCond %{REQUEST_URI} ^(.)homepage10.jpg$ [NC]
RewriteRule ^(.)$ /homepage10.small.jpg [R=302,L]
If user agent contains iphone, then redirect any request for "homepage10.jpg" to "homepage10.small.jpg".
It appears however, that mod_pagespeed essentially kills any htacess directives on those image files, even though I have these configurations set in pagespeed.conf  to prevent the filenames getting munged into some random string.
ModPagespeedJsPreserveURLs on
ModPagespeedImagePreserveURLs on
ModPagespeedCssPreserveURLs on

Why can't mod_pagespeed just behave like everything else in apache?
A request is made, any mod_rewrite directives or other directives are processed, either in httpd.conf or in .htaccess, and ONLY when the final filename / resource has been resolved, does mod_pagespeed process that request and serve an optimized resource?
Right now, all he's doing is seeing a request for "homepage10.jpg", and serving an optimized version immediately - completely IGNORING the htaccess directives that say a different image should be served under certain conditions.
It's a real shame, this module has such potential, but has now been rendered effectively useless as it doesn't respect the function of other apache modules, specifically mod_rewrite.
mod_pagespeed should be executed LAST, not FIRST, in the apache module processing order, and using the FINAL resolved resource name, not the initially requested one.
I also reference Issue #397, where it is stated "However, this does not work in mod_pagespeed because we grab the URL prior to mod_rewrite running". This is patently incorrect behaviour - all modules should respect changes made to the requested resource by other modules.
Or at least, give us a configuration option to "UseInitialRequest" or "UseFinalResolvedRequest" and let us choose our own destiny.

Actually, mod_pagespeed should be running last in your module hierarchy.  I suspect there may be other things going on here.  Can you send a pointer to your page, and a clear description of the behavior you're seeing?  Are you using in-place resource optimization to serve these particular images?
What headers occur on these files when they're served?  I'm wondering if they have the appropriate vary: headers – otherwise mod_pagespeed may in fact cache the rewritten version of one image and rewrite urls to point to that one.

Sorry for the delay getting back to you. Okay, so here's the relevant info and debugging I've done ...
pagespeed.conf
ModPagespeed on

ModPagespeedInheritVHostConfig on
AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER text/html
ModPagespeedFileCachePath            "/var/cache/mod_pagespeed/"
ModPagespeedLogDir "/var/log/pagespeed"

ModPagespeedDisableFilters add_head,inline_import_to_link
ModPagespeedDisableFilters combine_css,fallback_rewrite_css_urls,rewrite_style_attributes_with_url,flatten_css_imports
ModPagespeedDisableFilters rewrite_javascript_inline,combine_javascript
ModPagespeedDisableFilters inline_css,inline_javascript

ModPagespeedForbidFilters add_head,inline_import_to_link
ModPagespeedForbidFilters combine_css,fallback_rewrite_css_urls,rewrite_style_attributes_with_url,flatten_css_imports
ModPagespeedForbidFilters rewrite_javascript_inline,combine_javascript
ModPagespeedForbidFilters inline_css,inline_javascript

ModPagespeedJsPreserveURLs on
ModPagespeedImagePreserveURLs on
ModPagespeedCssPreserveURLs on

ModPagespeedStatisticsLogging on
ModPagespeedMessageBufferSize 100000

.htaccess
RewriteCond %{HTTP_USER_AGENT}  ^(.*)iphone(.*)$ [NC]
RewriteCond %{REQUEST_URI} ^(.*)\.jpg$ [NC]
RewriteCond %{REQUEST_URI} !^(.*)\.small\.jpg$ [NC]
RewriteRule ^(.*)$ /iphonejpg.php?source=$1 [L]

The iphonejpg.php script checks to see if "small" image is on filesystem, creates if necessary, and then finally sends a 302 redirect header to the correct resource.
With pagespeed disabled, the headers are thus (domain name suppressed) ...
http://[MYDOMAIN.COM]/images/homepage10.jpg
GET /images/homepage10.jpg HTTP/1.1
Host: [MYDOMAIN.COM]
User-Agent: TEST iPhone TEST
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
HTTP/1.1 302 Moved Temporarily
Date: Mon, 20 Apr 2015 03:47:06 GMT
Server: Apache/2.2.25 (Unix) mod_ssl/2.2.25 OpenSSL/1.0.0-fips DAV/2 mod_bwlimited/1.4
X-Powered-By: PHP/5.3.26
Location: http://[MYDOMAIN.COM]/images/homepage10.small.jpg
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 20
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html
With pagespeed enabled, the headers are thus ...
http://[MYDOMAIN.COM]/images/homepage10.jpg
GET /images/homepage10.jpg HTTP/1.1
Host: [MYDOMAIN.COM]
User-Agent: TEST iPhone TEST
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
HTTP/1.1 200 OK
Date: Mon, 20 Apr 2015 03:49:46 GMT
Server: Apache/2.2.25 (Unix) mod_ssl/2.2.25 OpenSSL/1.0.0-fips DAV/2 mod_bwlimited/1.4
Vary: User-Agent
Content-Length: 205183
Etag: "1e073d-3217f-513fb6faed0c0"
Accept-Ranges: bytes
Cache-Control: max-age=300
Expires: Mon, 20 Apr 2015 03:54:30 GMT
Last-Modified: Mon, 20 Apr 2015 03:49:46 GMT
X-Content-Type-Options: nosniff
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: image/jpeg
So it appears that pagespeed ignores the htaccess completely, and never sends the 302 redirect back to the client for him to fetch the correct "small" resource - the original big image is served right away with a 200 header.
To me this indicates that the htaccess is being ignored, I assume because pagespeed (as started by yourselves) works on the original requested resource i.e. homepage10.jpg and just serves it, and the rewrite portions in the htacces never get to execute (is apache saying "I'm done" and terminating early because of pagespeed already sending the image from his cache?)
Looking forward to any ideas you can suggest.

On Mon, Apr 20, 2015 at 7:02 AM, daveime<EMAIL_ADDRESS>wrote:

Sorry for the delay getting back to you. Okay, so here's the relevant info
and debugging I've done ...

That's quite all right.  I'm traveling myself, so my connectivity is a bit
sporadic for which I apologize in advance.

pagespeed.conf
ModPagespeed on
ModPagespeedInheritVHostConfig on
AddOutputFilterByType MOD_PAGESPEED_OUTPUT_FILTER text/html
ModPagespeedFileCachePath            "/var/cache/mod_pagespeed/"
ModPagespeedLogDir "/var/log/pagespeed"
ModPagespeedDisableFilters add_head,inline_import_to_link
ModPagespeedDisableFilters combine_css,fallback_rewrite_css_urls,rewrite_style_attributes_with_url,flatten_css_imports
ModPagespeedDisableFilters rewrite_javascript_inline,combine_javascript
ModPagespeedDisableFilters inline_css,inline_javascript
ModPagespeedForbidFilters add_head,inline_import_to_link
ModPagespeedForbidFilters combine_css,fallback_rewrite_css_urls,rewrite_style_attributes_with_url,flatten_css_imports
ModPagespeedForbidFilters rewrite_javascript_inline,combine_javascript
ModPagespeedForbidFilters inline_css,inline_javascript
ModPagespeedJsPreserveURLs on
ModPagespeedImagePreserveURLs on
ModPagespeedCssPreserveURLs on
ModPagespeedStatisticsLogging on
ModPagespeedMessageBufferSize 100000
.htaccess
RewriteCond %{HTTP_USER_AGENT}  ^(.)iphone(.)$ [NC]
RewriteCond %{REQUEST_URI} ^(.).jpg$ [NC]
RewriteCond %{REQUEST_URI} !^(.).small.jpg$ [NC]
RewriteRule ^(.*)$ /iphonejpg.php?source=$1 [L]
The iphonejpg.php script checks to see if "small" image is on filesystem,
creates if necessary, and then finally sends a 302 redirect header to the
correct resource.
With pagespeed disabled, the headers are thus (domain name suppressed) ...
http://[MYDOMAIN.COM]/images/homepage10.jpg
GET /images/homepage10.jpg HTTP/1.1
Host: [MYDOMAIN.COM]
User-Agent: TEST iPhone TEST
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
HTTP/1.1 302 Moved Temporarily
Date: Mon, 20 Apr 2015 03:47:06 GMT
Server: Apache/2.2.25 (Unix) mod_ssl/2.2.25 OpenSSL/1.0.0-fips DAV/2
mod_bwlimited/1.4
X-Powered-By: PHP/5.3.26
Location: http://[MYDOMAIN.COM]/images/homepage10.small.jpg
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 20
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/html

I note that the redirect isn't served with Vary: User-Agent, which I'm
guessing also means that the non-small image is also being served without
vary: User-Agent.  That means that an intermediate proxy cache (and
mod_pagespeed acts like a proxy cache in cases like this) is free to serve
either result to all browsers.  I'm guessing that's probably not what you
mean to do?
-Jan

With pagespeed enabled, the headers are thus ...
http://[MYDOMAIN.COM]/images/homepage10.jpg
GET /images/homepage10.jpg HTTP/1.1
Host: [MYDOMAIN.COM]
User-Agent: TEST iPhone TEST
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
HTTP/1.1 200 OK
Date: Mon, 20 Apr 2015 03:49:46 GMT
Server: Apache/2.2.25 (Unix) mod_ssl/2.2.25 OpenSSL/1.0.0-fips DAV/2
mod_bwlimited/1.4
Vary: User-Agent
Content-Length: 205183
Etag: "1e073d-3217f-513fb6faed0c0"
Accept-Ranges: bytes
Cache-Control: max-age=300
Expires: Mon, 20 Apr 2015 03:54:30 GMT
Last-Modified: Mon, 20 Apr 2015 03:49:46 GMT
X-Content-Type-Options: nosniff
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: image/jpeg
So it appears that pagespeed ignores the htaccess completely, and never
sends the 302 redirect back to the client for him to fetch the correct
"small" resource - the original big image is served right away with a 200
header.
To me this indicates that the htaccess is being ignored, I assume because
pagespeed (as started by yourselves) works on the original requested
resource i.e. homepage10.jpg and just serves it, and the rewrite portions
in the htacces never get to execute (is apache saying "I'm done" and
terminating early because of pagespeed already sending the image from his
cache?)
Looking forward to any ideas you can suggest.
—
Reply to this email directly or view it on GitHub
https://github.com/pagespeed/mod_pagespeed/issues/1067#issuecomment-94350894
.

Regarding Vary: User-Agent, it's not something I've ever used, and I'm a little confused as to the purpose. Even if the header is sent with the response, surely whatever mod_rewrite / mod_pagespeed is doing is going to happen first anyway?
I'm not trying to send a different resource with the same URL based on device, I'm trying to send either the requested resource OR a redirect to a different resource URL based on device.
I simply need these two flows to work.
Client Request == homepage10.jpg AND User-Agent != iPhone ->
Server replies with 200 status homepage10.jpg (suitably optimized by mod_pagespeed)
Client Request == homepage10.jpg AND User-Agent == IPhone ->
Server replies with 302 status redirect to homepage10.small.jpg.
And as a 2nd step, Client will follow the redirect
Client Request == homepage10.small.jpg -> Server replies with 200 status homepage10.small.jpg (suitably optimized by mod_pagespeed)
I've tried completely clearing history and cached files on both Client and Server, restarting apache so each test is a fresh run - but the mod_rewrite refuses to work, mod_pagespeed kicks in and serves exactly what was requested. It's so frustrating.

I need to keep control on what mod_rewrite is doing, and if mod_pagespeed is stealing that control or doing unexpecting things, it'll have to go.
Thanks for you help anyway.

On Wed, Apr 22, 2015 at 7:56 AM, daveime<EMAIL_ADDRESS>wrote:

Regarding Vary: User-Agent, it's not something I've ever used, and I'm a
little confused as to the purpose. Even if the header is sent with the
response, surely whatever mod_rewrite / mod_pagespeed is doing is going to
happen first anyway?

That depends on when mod_headers runs, which should happen before
mod_pagespeed in normal operation.

I'm not trying to send a different resource with the same URL based on
device, I'm trying to send either the requested resource OR a redirect to a
different resource URL based on device.

The redirect counts as a different resource.  Think about this from the
perspective of a proxy cache (something like mod_pagespeed or varnish).  It
sees the 200 you serve without vary: user-agent.  That tells it to serve
this value to every browser that goes through the proxy.
It's very likely that some of your users (if you site faces the internet)
are behind such proxies and are being served the wrong content.  By turning
on mod_pagespeed you're simply seeing this behavior for yourself.

I simply need these two flows to work.
Client Request == homepage10.jpg AND User-Agent != iPhone ->
Server replies with 200 status homepage10.jpg (suitably optimized by
mod_pagespeed)
Client Request == homepage10.jpg AND User-Agent == IPhone ->
Server replies with 302 status redirect to homepage10.small.jpg.
And as a 2nd step, Client will follow the redirect
Client Request == homepage10.small.jpg -> Server replies with 200 status
homepage10.small.jpg (suitably optimized by mod_pagespeed)
I've tried completely clearing history and cached files on both Client and
Server, restarting apache so each test is a fresh run - but the mod_rewrite
refuses to work, mod_pagespeed kicks in and serves exactly what was
requested. It's so frustrating.

Try adding:
Header append Vary User-Agent
to your .htaccess file.  This ought to fix the problem, but is too
specific.  You should really make it jpeg-sensitive something like:
SetEnvIf Request_URI ".jpg$" object_is_jpg=true
Header append Vary User-Agent env=object_is_jpg

I guess I'm just going to have to suck it up, put on my C++ hat, and see
if I can build a standalone program for Centos to optimize images based on
the pagespeed libraries, and optimize as a regular cronjob instead.
I need to keep control on what mod_rewrite is doing, and if mod_pagespeed
is stealing that control or doing unexpecting things, it'll have to go.

As I note above, I suspect it's not that we're stealing control here, but
that you're setting the wrong headers.  And that this is likely to be
hurting your users, but in a way that will be difficult for them to notice.
-Jan

Thanks for you help anyway.
—
Reply to this email directly or view it on GitHub
https://github.com/pagespeed/mod_pagespeed/issues/1067#issuecomment-95034466
.

As @jmaessen points out above, the problem here isn't what order PageSpeed runs in compared to the rest of your directives but that PageSpeed is a caching proxy.  You're intentionally serving one thing (a redirect) to some user agents and something else (a jpeg) to other user agents, which means you need to set Vary: User-Agent in your response.
Because there are many sites out there with invalid Vary headers on resources, PageSpeed ignores these headers by default, so you'll also need to tell PageSpeed to RespectVary:
ModPagespeedRespectVary on


[chip-test] SiVal test plan updates for KMAC

Added list of features supported by the KMAC to the specification.
Moved KMAC chip tests to chip_kmac_testplan.hjson.
Added si_stage: SV3 test cases to cover functionality listed in the list of features.
Update pre-silicon test cases with relevant SV1, SV2, or SV3 labels.

Better yet, can you open an issue for "features" mentioning these points? Otherwise it can be lost in the fray...

CHANGE AUTHORIZED: hw/ip/kmac/data/kmac.hjson

CHANGE AUTHORIZED: hw/ip/kmac/data/kmac.hjson


Asset licenses?

This game has several assets (most notably, the fonts and the skybox). Are those conveyed under the same license as the code, or a different one?

They are under MIT see #161


pull-request doesn't recognize new GitHub Pull Request templates

issuing git pull-request -o doesn't pre-fill the editor with present PULL_REQUEST_TEMPLATE.md

Yes this is known! https://github.com/github/hub/issues/1118 Thanks for asking.


Discord

The readme mentions that there is a discord server that we can use to ask questions. Would it be possible to add a link to that server?

This is actually a really good idea, thanks! I'll add this to our README.md.

Forgot to create a message in the PR to automatically close this issue when merged... :grimacing:


Enable dark mode

Add support for dark mode of the map.

its better to have  server tile that support dark mode because we're using  raster tile system
but in vector tile we can have dark mode very easily
I see how i can do that

@liodali  Do you have any progress on this?


+"CLI Tools Show ANSI Character Sequences"

I've added a section on what ANSI sequence clutter look like, and how to configure Windows to display colors, rather than gobbledygook.
The contribution guidelines said to offer "why" for a contribution, so here's my why:
The reason is I want to save people the trouble of seeing something really strange (ANSI escape sequences), wondering why they are seeing it, getting discouraged, figuring out how to formulate what they are seeing in such a way that they can find the issue on the Internet, digging through bug trackers, seeing that the "bug" is fixed (?), wondering why it was "fixed" in 2019 but they're still seeing it, searching further, finding articles on ANSI escape sequences and how they relate to PowerShell, studying the mitigations, applying the mitigations, and then feeling guilty that they haven't saved others the effort themselves because it was something really annoying and not really anything to do with... ...using and enjoying RabbitMQ.
That a reason why to include this pull request.
I accidentally included a blank line at the start.  If you could chop off that one part of the changeset, it'll be a cleaner commit.  Not sure how to do that within github website interface.

Thank you so much, I had no idea there was a solution for Windows, at least for PowerShell!
Merged manually with a slightly different formatting.

A third solution is to use Windows Terminal instead of the old console host - https://github.com/microsoft/terminal


v4.0.0 bump

Bump for v4 release

There is something I need to check first tomorrow. See for this issue, looks like we are breaking a typings issue right now.
#10865

There is something I need to check first tomorrow. See for this issue, looks like we are breaking a typings issue right now.
#10865

Added that bug to the milestone. We can always move it ahead, if it's not a blocker.

The underlying issue for that issue is not blocking, it picks the wrong ts type, that is not blocking, you can cast it to the correct one, would be nice if this bug fix does get merged since it prevents users from creating charts with different types without a main type now: https://github.com/chartjs/Chart.js/pull/10869


select2 won't bind to ids with underscores

As the title says: Select2 3.5.1 won't bind itself to any id which contains an underscore. Is this intended behaviour?

Can somebody check if this is still relevant? I don't have the needed setup right now.

Sorry, the 3.x version is not maintained anymore. But feel free to fork the repo and fixes what you need. But if this bug still appears in 4.x version, reopen the issue and send us a JSFiddle example simulating this scenario. PR's are welcome too. We can help much more with a example code :+1:


creates a derivation from AsyncOptions that does not forward all consecutive input event to the fetcher lambda, but only those that occur outside of a specific time interval

Hi Martin,
appreciate your work. Thank you
would you accept the following pull request for coping with high i/o fetching asyncselectoptions
Summary
creates a derivation from AsyncOptions that does not forward all consecutive input event to the fetcher lambda, but only those that occur outside of a specific time interval. This helps to mitigate performance problems due to heavy I/O
consider the following example of events [A..E]

A..100ms..B..150ms..C..300ms..D..50ms..E

with a default threshhold of 250ms only Event

A..C..E

are considered

Thanks for this @gixxi - I'll definitely take a look and consider merging it. It might be that there is a way to directly integrate it into the existing helper.
Just to note: this project was submitted as part of the Solid Hackathon (https://hack.solidjs.com/) and so I can't make changes to the main branch for the next 20 days as part of the competition rules.

Hi Martin,
do you still consider the merge - we work with this now for half a year in large production contexts

Just a note that I haven't forgotten about releasing this - will likely do that in the next few weeks :)


Improve AsyncInserter error handling

Currently, only row-level errors are exposed by the batching for streaming data provided by AsyncInserter. Because AsyncInserter uses a background thread, any top-level error returned by TableData.insertAll will not be raised in the main thread. Here is the example (which should probably be updated to show error handling):
dataset = bigquery.dataset "my_dataset"
table = dataset.table "my_table"
inserter = table.insert_async do |response|
  log_insert "inserted #{response.insert_count} rows " \
    "with #{response.error_count} errors"
end

rows = [
  { "first_name" => "Alice", "age" => 21 },
  { "first_name" => "Bob", "age" => 22 }
]
inserter.insert rows

inserter.stop.wait!

AsyncInserter needs to somehow expose RPC errors in the callback provided to Table#insert_async.

This will become even more important when BigQuery objects support the skip_lookup optional argument.

@blowmage I was thinking this should be done before #1785, what do you think?

I think it could be done before. Or both changes could be made in the same pull request.


pull request for e2e test at 12/31/2016 08:45:07

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


CI was here...:fire:

pr to check if the image build job is now triggered/live

merging... built of images went well ...


{Match.Time:HH:mm} on {Match.Time:ddd dd/MM}

After upgrading to version 1.6.1, formatting the time with a colon no longer works:
    class Program
    {
        class Example
        {
            public Example()
            {
                Time = DateTime.UtcNow;
            }

            public DateTime Time { get; set; }
        }

        static void Main( string[] args )
        {
            var template = "Time: {Time:HH:mm} Date: {Time:ddd dd/MM}.";

            var text = Smart.Format( template, new Example() );

            // outputs: Time:  Date: Sun 21/06.

            Console.WriteLine( text );

            Console.ReadLine();
        }
    }

Should be solved with #65

Will be closed in upcoming version 1.7.x shortly:
When the parser comes across a formatter name, this does not exist in the registered extensions, it will treat this part as a format, which will be processed by DefaultFormatter.

Updated version committed, where test with the issues mentioned have passed: https://github.com/scottrippey/SmartFormat.NET/commit/46bbae26b6c34582887b60fc0488cd134514fde7


Add peer dependency for React 18 [Bug]

Describe the bug
A clear and concise description of what the bug is.
Steps to reproduce the behavior

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
peer dependency for React 18
A clear and concise description of what you expected to happen.
Screenshots and/or logs
If applicable, add screenshots and/or logs to help explain your problem.
Environment

Node.js version: 16
NPM version: [e.g. 6.14.4]
Browser any
Browser version any
Device command line error

Additional context
At the moment this bug is causing our library of react components to still be reactc17.
This is a breaking issue for us!
Add any other context about the problem here.

I believe this was fixed in #48


fix(interactive): Fix memory leak when reopening rocksdb instance

Fixes memory leak when reopening rocksdb instance.

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

Project coverage is 31.01%. Comparing base (4eadc2e) to head (20cbaeb).
Report is 77 commits behind head on main.

Additional details and impacted files

@@             Coverage Diff             @@
##             main    #4250       +/-   ##
===========================================
- Coverage   46.45%   31.01%   -15.44%
===========================================
  Files         173      126       -47
  Lines       16171    13252     -2919
===========================================
- Hits         7512     4110     -3402
- Misses       8659     9142      +483

see 162 files with indirect coverage changes

Continue to review full report in Codecov by Sentry.

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


Likely race conditions when using local dependency with a build script more than once

Problem
I am using a local crate as a dependency in my main project's Cargo.toml using the path specifier. The local crate has a build script in it. When I add the local crate as a dependency and a build-dependency in the main project's Cargo.toml and I add a build.rs to the main project, it seems that when building Cargo starts the build.rs script of the dependency two times in parallel, which leads to general confusion if there is some file mangling going on.
Steps

Create a main project in a workspace with a build.rs
Create a dependency with a build.rs and in there with some file operations
Run cargo build in the main project
Due to parallel execution of the dependencies build.rs, there will likely be some read/write file errors

Possible Solution(s)
I would expect that Cargo runs the build.rs script of the dependency only once and never in parallel.
Notes
No response
Version
cargo 1.66.1 (ad779e08b 2023-01-10)
release: 1.66.1
commit-hash: ad779e08be893e57a9e17a810223a3e966f8c0d8
commit-date: 2023-01-10
host: x86_64-apple-darwin
libgit2: 1.5.0 (sys:0.16.0 vendored)
libcurl: 7.79.1 (sys:0.4.55+curl-7.83.1 system ssl:(SecureTransport) LibreSSL/3.3.5)
os: Mac OS 12.3.0 [64-bit]

I added some simple file-based locking to the build script of the dependency. Now the build of the main project works fine. This supports my hypothesis about the parallel execution.

It's hard to say without seeing a complete example what is going on. Usually a workspace dependency will only ever be built once (with a small caveat around proc-macros).
Also, build-scripts are only intended to write to the OUT_DIR directory, which should be unique per package and set of features. Writing outside of that directory is not supported.

Also, build-scripts are only intended to write to the OUT_DIR directory, which should be unique per package and set of features. Writing outside of that directory is not supported.

Ok, I did not know that. Thanks.


2022.6.1 - 'HiveAuthAsync' object has no attribute 'get_device_data'

Home Assistant: 2022.7.0
Hive component: 2022.6.1
Had some issues after upgrading, so removed integration from HA and restarted.
Then enabled 2FA in Hive app, deleted the 'Home Assistant' device listed in the hive account settings.
Finally tried adding the integration back... UI requested 2FA code, then showed the word 'Home Assistant' in a text input box..
UI - Unknown error occurred.
Logs:
File "/usr/src/homeassistant/homeassistant/components/hive/config_flow.py", line 113, in async_step_configuration
    self.data["device_data"] = await self.hive_auth.get_device_data()
AttributeError: 'HiveAuthAsync' object has no attribute 'get_device_data'

At this stage, I can see a Home Assistant device shown in the Hive app under:
Account -> Account Security -> Trusted Devices

@gricey this indicates the new version of pyhiveapi hasn’t been installed

Hi,
I was prompted for the latest upgrade in HACS after the refresh token error. I noted it referred to fixing Auth. I upgraded but the error persisted. I tried downgrading, same thing. I then went into hive and enabled 2fa, and tried to add both old and new integrations back in. No dice (and now the HiveAuthSync error rather than the refresh_token one...

Yep that all makes sense. Can I confirm your also on home assistant version 2022.6.6 or higher
this error still prompts me to believe that your instance doesn’t have the library required for some reason.
If that method get_device_data didn’t exist in the library then this would be an issue for all users.
If you run HA OS I would advise a host restart

Hi @KJonline I am on 2022.7 as I was offered that at the same time, I updated everything!
I didn't realise that the host OS was relevant (thought the library would live in a container somewhere), still new to the internals of HA but I am indeed running HAOS so shall give it a restart.

Unfortunately a host reboot didn't do anything. When trying to re-add the integration, it prompts me for my OTP (2fa from hive), asks me to create a name and then when I click continue it says Unknown Error. The 'name' I created shows as a trusted device in my hive app from that point, but the integration isn't created.
The log shows:
`Logger: aiohttp.server
Source: components/hive/config_flow.py:113
First occurred: 11:12:50 (1 occurrences)
Last logged: 11:12:50
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 79, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 177, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 62, in wrapper
result = await method(view, request, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 109, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 277, in async_configure
result = await self._async_handle_step(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 359, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/usr/src/homeassistant/homeassistant/components/hive/config_flow.py", line 113, in async_step_configuration
self.data["device_data"] = await self.hive_auth.get_device_data()
AttributeError: 'HiveAuthAsync' object has no attribute 'get_device_data'
`

@KJonline - Is there a way to easily validate version of pyhiveapi via ssh to HA?

Tried rolling back to 2022.5.4... Saw pyhiveapi 0.4.2 installed... Then receive the following error:
AttributeError: 'HiveAuthAsync' object has no attribute 'device_registration'

Re-installed 2022.6.1 - see pyhiveapi 0.5.10 being installed... but then we are back to error:
AttributeError: 'HiveAuthAsync' object has no attribute 'get_device_data'

Are there any suggested troubleshooting/diagnostic steps I should be following? Thankyouplease.

I'm getting the same issue. Running HA core-2022.7.1 in Docker, hive component 2022.6.1. On configuration of the component after entering 2FA code, clicking submit on the next page with "Home Assistant" in the text box presents the same error message in the logs. I see "Home Assistant" as a trusted device in the Hive app, but the integration doesn't get added to HA as its not possible to finish the configuration

Can you integrate the installed library can look for get_device_data method. I have released an update please can you test with that and feedback?

Back in the game! It works!
thanks!!

Fixed for me also, thankyou!


Allow Resizing of the Sidebar

1.It is seems like searching button isn't displaying properly.

2.The interface of Setting and Explorer have different style. I mean Fluent Design...Perhaps we should ensure the consistency of the design language.

3.You can adjust the width of left TAB so that the TAB headers are easier to read.
4.The whole interface gives me the feeling that there is no focus, especially TAB. You can enlarge the "HOME" text ,as in the case of "Drive".
Thks for your reading.

Search is not yet enabled.
Files UWP uses fluent design which is why it looks different then File Explorer.
Can you give a little more detail which tabs you are talking about?
Do you think making the selected item in the sidebar have bold text would improve the design?

Thank you for checking my feedback. I'm sorry I didn't make it clear

@Lusician Thank you for reporting this. We're working on allowing users to resize the sidebar.

Duplicate of #672


Corner pop-up

Show pop-up on a side/corner without overlay.

Implemented in 5788303, will be published in 1.3


DRAFT: Cleanup tests

Pull Request Test Coverage Report for Build<PHONE_NUMBER>0
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 78.326%

Totals

Change from base Build<PHONE_NUMBER>0:
0.0%

Covered Lines:
4362

Relevant Lines:
5569

💛  - Coveralls

Why is this a draft? 😁
In all seriousness: if you're only changing tests, you're free to commit to main (or merge your PRs yourself). I want to avoid having huge PRs at this stage, so I'd say merge this one, and then move on to the next thing

Primarily because I knew actions would be failing and need fixing. That said, it might give you more stream material. 🙃
Sounds like a plan.

Closing in favor of #383.


Send DC balance to channels (#611)

This PR adds DC balance and nonce (integers, both) to channel messages.  The added fields look like this:
   "dc" : {
      "dc_balance": 42,
      "nonce": 123456
   }

Fix for #655


pkgs/stdenv/freebsd: update x86_64-unknown-freebsd bootstrap-files

@rhelmot told me to upload new tarballs so they include fixes not present in the current version.
sha256sum of files to be uploaded:
$ sha256sum /nix/store/yy36y5s9i4wl768imwfn112sb7w3pyk8-build/on-server/* a072dd769596c1efe2c58b9fde141f986ac6ba2c45dfe1bc1c29be07b8370b36  /nix/store/yy36y5s9i4wl768imwfn112sb7w3pyk8-build/on-server/bootstrap-tools.tar.xz 71ff3ba54f0741355948f403db95f2c54ae3b69dd39f991fdad17ae5ab623a77  /nix/store/yy36y5s9i4wl768imwfn112sb7w3pyk8-build/on-server/unpack.nar.xz
Suggested commands to upload files to 'tarballs.nixos.org':
$ nix-store --realize /nix/store/yy36y5s9i4wl768imwfn112sb7w3pyk8-build
$ aws s3 cp --recursive --acl public-read /nix/store/yy36y5s9i4wl768imwfn112sb7w3pyk8-build/on-server/ s3://nixpkgs-tarballs/stdenv/x86_64-unknown-freebsd/b92edf1104c47016385e85c87c2d953cf5cd2f98
$ aws s3 cp --recursive s3://nixpkgs-tarballs/stdenv/x86_64-unknown-freebsd/b92edf1104c47016385e85c87c2d953cf5cd2f98 ./
$ sha256sum bootstrap-tools.tar.xz unpack.nar.xz
$ sha256sum /nix/store/yy36y5s9i4wl768imwfn112sb7w3pyk8-build/on-server/*

Things done

Built on platform(s)

[ ] 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.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

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

[ ] Fits CONTRIBUTING.md.

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

@rhelmot is currently doing a rebuild. Will upload and merge afterwards.

I built rustc native and it worked, so I think this is good to go :)


This fixes the 'train_mnist_data_parallel.py' example when using shape placeholder in MLP.

Use deep copy for slave models in ParallelUpdater. Zero parameter gradients just before backward computation (to allow for parameters initialized on first call).
In ParallelUpdater, each of the main model and the slave models needed to have its own version of _uninitialized_params. In the previous code that was a set shared between the models (because of the shallow copy). When one model has the delayed parameters initialized at call time, the set became empty and no other models could have their parameters initialized. So I used deep copy.
The change also means that the parameters initialized at call time (using parameter shape place holder) will not be the same across the main and the slave models.
Additionally, the gradients are zeroed only once all the parameters have been initialized.

Thank you for your PR!


Python UDF Table API

This PR introduces a new API for processing data as a table, introducing a new UDFTableOperator interface in pytexera:
class UDFTableOperator(TableOperator):
    def open(self) -> None:
        pass

    @abstractmethod
    def process_table(self, table: Table, input_: int) -> Iterator[Optional[TableLike]]:
        pass

    def close(self) -> None:
        pass

In pyamber, TableOperator is introduced. The TableOperator will accumulate all Tuple from upstream (using process_tuple API), and then invoke process_table on each input link. So a Python UDF joining two inputs will have two tables to be processed.
The set of Table and TableLike are mimicking Tuple and TupleLike so that we can replace the implementation in the future. Right now Table is a thin wrap for mutable pandas.DataFrame.
Users are prohibited to override the process_tuple on a TableOperator.

Looks good, left 2 minor comments


iOS Swift Project - Some barcodes are not detected (sample project)

Hello everyone.
i took the example BarcodeScanner from the project and scanning the following barcode (just one example) worked perfectly: https://www.activebarcode.de/codes/code128.html
When i take the ViewController from the sample project and move it to a brand new swift project (bridging header etc) the barcode is not detected at all. See sample project:
https://www.dropbox.com/s/ubf254eoyui5z3z/TestZXing.zip?dl=0
It would be great if some can help out who has more experience with this project. It's quite hard to find the right direction here. I brought everything to the most simple use case, so i hope it is easier to find the issue.
Thank you!
Best,
Tobias

Not sure if you're still having this problem but I hit one like this too.
I had similar problems and found it to be related to the default camera resolution and the scaling factor the codes were not being scanned from the correct location in the video. The calculation in the applyRectOfInterest() was wrong because it depended on a couple of things that weren't true. I changed mine to this and got it to work pretty quickly. I'm having a few scanning problems now with the default very LOW resolution selected for the camera.
Here's my applyRectOfInterest() function. It contains changes related to:

Use self.capture.captureDevice.activeFormat.formatDescription to retrieve the real resolution of the video instead of hardcoding some presets. This code requires that the to scan be active/started
Got rid of the landscape orientation, my app doesn't allow that
Got rid off the offset calculation, that was overly complex and wrong in ways that I couldn't determine, my self.scanRectView object had the correct offset after the scaling and transformation was done.
I left some NSLog entries in for you hope that helps.

    - (void)applyRectOfInterest:(UIInterfaceOrientation)orientation {
         NSLog(@"%s %ld", __PRETTY_FUNCTION__, (long)orientation);
        CGFloat /*scaleVideo,*/ scaleVideoX, scaleVideoY;
        CGFloat videoSizeX, videoSizeY;
        NSLog(@"%s Main frame: at %f, %f size %f x %f", __PRETTY_FUNCTION__,
              self.view.frame.origin.x, self.view.frame.origin.y,
              self.view.frame.size.width, self.view.frame.size.height);
        CGRect transformedVideoRect = self.scanRectView.frame;
        NSLog(@"%s Starting video frame: at %f, %f size %f x %f", __PRETTY_FUNCTION__,
              transformedVideoRect.origin.x, transformedVideoRect.origin.y,
              transformedVideoRect.size.width, transformedVideoRect.size.height);
        NSLog(@"%s Center of video frame is at %f, %f", __PRETTY_FUNCTION__,
              self.scanRectView.center.x, self.scanRectView.center.y);
        CMFormatDescriptionRef format = self.capture.captureDevice.activeFormat.formatDescription;
        CMVideoDimensions dim = CMVideoFormatDescriptionGetDimensions(format);
        videoSizeX = dim.width;
        videoSizeY = dim.height;
        NSLog(@"%s Video size:%f x %f", __PRETTY_FUNCTION__, videoSizeX, videoSizeY);
        if(UIInterfaceOrientationIsPortrait(orientation)) {
            scaleVideoX = self.view.frame.size.width / videoSizeX;
            scaleVideoY = self.view.frame.size.height / videoSizeY;
        } else {
            NSLog(@"%s We don't run in landscape yet", __PRETTY_FUNCTION__);
            abort();
        }
        NSLog(@"%s scaling capture size by %f %f", __PRETTY_FUNCTION__, 1/scaleVideoX, 1/scaleVideoY);
        _captureSizeTransform = CGAffineTransformMakeScale(1/scaleVideoX, 1/scaleVideoY);
        CGRect scanRect = CGRectApplyAffineTransform(transformedVideoRect, _captureSizeTransform);
        self.capture.scanRect = scanRect;
        NSLog(@"%s Final scanRect: at %f, %f size %f x %f within video %f x %f", __PRETTY_FUNCTION__,
              scanRect.origin.x, scanRect.origin.y,
              scanRect.size.width, scanRect.size.height,
              videoSizeX, videoSizeY);
    }


Refactor next-auth adapter to not use next-auth-http-adapter library

Currently I am using next-auth-http-adapter which does not have a great design and looks like it's not being maintained.  Especially error handling is bad, but it's also just to much work.  The adapter from the auth.js interfaces into the FastAPI router-to-SQLAlchemy should be easier.
One better starting point is python-adapter-for-auth.js](https://github.com/mr-raccoon-97/python-adapter-for-auth.js), which I discovered after I was well down the path with the next-auth-http-adapter library.  But Mr. Raccoon looks intent at making his initial structure much more complex, with API Gateway, RabbitMQ, etc., which seems like more than what I want/need, at least for the moment.  Maybe I should stick to the earlier commit I looked at: https://github.com/mr-raccoon-97/python-adapter-for-auth.js/commit/f36c408761f16dc55c85dcb33b4f83b647827f52. Unfortunately, this repo has been deleted!
But, also can look around for other solutions.  It would be nice to have something auto-magic for the python-side HTTP wrapper, and then just have a type-script side transforming adapter.
I'm not in a huge hurry for this refacter.  So planning to nurse the investigation along.

Given that the cited library in the description seems to have been deleted, I think I'll lower priority of this again, and wait and see if another library comes along.  Or wait until the itch strikes me, (maybe #122 and #123 will trigger), and just create something for myself that is relatively thin, and can be generated with CoPilot.


found that the ""normal"" double layer in the md file

Describe the bug
Open a database file again, an error will be reported, and it is found that the ""normal"" double layer in the md file.
To Reproduce
config:
remove_field_when_delete_column: "true"
cell_size: ""normal""
sticky_first_column: "false"
group_folder_column: ""
show_metadata_created: "true"
show_metadata_modified: "false"
show_metadata_tasks: "false"
source_data: ""current_folder""
source_form_result: ""root""
frontmatter_quote_wrap: "true"
row_templates_folder: ""/""
current_row_template: ""
Screenshots

Desktop (please complete the following information):
OS: All
Version 2.2.2

When I in database setting select tag in this:
source_form_result: ""[[功能]]""
Obsidian 0.15.9
OS: Ubuntu 22.04

I select this then :cell_size: ""normal"" ,
and many item changed :
config:
remove_field_when_delete_column: "false"
cell_size: ""normal""
sticky_first_column: "false"
group_folder_column: ""
show_metadata_created: "true"
show_metadata_modified: "true"
show_metadata_tasks: "false"
source_data: ""tag""
source_form_result: ""Markdown""
frontmatter_quote_wrap: "true"
row_templates_folder: ""/""
current_row_template: ""
pagination_size: ""10""

Obsidian 0.15.9
OS: Ubuntu 22.04

with 2.3.1 version I am trying wit a new ddbb modifying the cell size, source with tags and source with queries and is saved correctly:
source_data: "query"
source_form_result: "FROM \"[[sdasdas]]\""

or
source_data: "tag"
source_form_result: "3D"

The plugins saves internal quotes with "

Hi @RafaelGB!
I've been having the same issue here! I find out the issue is not related to cell_size setting. It occurs when you set frontmatter_quote_wrap: "true" in database settings.
When you set it to "false", the problem is gone!

I will control properly that condition just for frontmatters, thank you!

fixed! ready with next version


Error: List column type "checkbox" could not be found.

Hi,
Last version of the plugin which I installed from the plugin market display error:
...List column type "checkbox" could not be found.
...
/.../modules/backend/widgets/Lists.php line 900

It happens when I click Edit slide or Save Slide form.

Hey,
Yep, I have to take a look at this,
Unfortunately, I will not be able to work on that before November 16th ;
If you know how to handle it and can create a Pull-Request, I could accept it though.
Otherwise, I'll have a look next week.
Thanks!

Yes having the issue when updating a slideshow.

Thanks to @Jeime for the fix, I have released a 1.0.8 version which should be available for you right now, with the corrections.
Fixed by #9.


fix(helm): suprress info message for 'helm inspect'

There was an informational message being printed that is unnecessary,
but prevented shell scripting the results of inspect calls.
Closes #1574

Backported to release-2.1