Feat: add pivot table

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

Project coverage is 99.80%. Comparing base (9d010cc) to head (d7b380a).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #134      +/-   ##
==========================================
+ Coverage   96.73%   99.80%   +3.07%
==========================================
  Files          23       20       -3
  Lines        2664     2077     -587
==========================================
- Hits         2577     2073     -504
+ Misses         64        4      -60
+ Partials       23        0      -23

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Exception in ArmoredOutputStream caused by missing version info in NuGet package

The 2.2.1 release file that is downloaded by the Visual Studio NuGet manager is missing version information, which causes the constructor of the ArmouredOutputStream class to generate a null reference exception due to the GetVersion() method trying to access Assembly information.
It would be great to get a new dll pushed to NuGet to correct this. 1.9.0 does not have this issue.

I'm also running into this, issue
System.NullReferenceException: Object reference not set to an instance of an object.
   at Org.BouncyCastle.Bcpg.ArmoredOutputStream.CreateVersion()
   at Org.BouncyCastle.Bcpg.ArmoredOutputStream..cctor()

private static string CreateVersion()
   {
     Assembly executingAssembly = Assembly.GetExecutingAssembly();
     return executingAssembly.GetCustomAttribute<AssemblyTitleAttribute>().Title + " v" + executingAssembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>().InformationalVersion;
   }

I don't even know why this version information would be required.

@peterdettman I don't see how this is ever going to work. That's the current executing assembly from nuget.. /bin/Debug/net6.0/BouncyCastle.Crypto.dll

@niemyjski  What NuGet package are you referencing? Our official NuGet package is here: https://www.nuget.org/packages/BouncyCastle.Cryptography . I would guess maybe you are using BouncyCastle.NetCore?
In particular the DLL name in our NuGet is BouncyCastle.Cryptography.dll (not BouncyCastle.Crypto.dll), and the assembly contains 16 custom attributes (including the ones we rely on here). FYI, this information is used to add a header indicating which software generated a given file. In a test project (net6.0) using the official package, the CreateVersion function finds both attributes and returns "BouncyCastle.NET Cryptography (net6.0) v2.2.1+b9c0074fb1".
The assembly attributes are added at build time for us (Nerdbank.GitVersioning), so perhaps this is an oversight in a third party build. I am trying to release 2.3.0 at the moment; I have changed the code to at least not crash if the attributes aren't found and use a default value instead ("BouncyCastle (unknown version)").

Addressed in 2.3.0.


NPZ object has no attribute 'zip'"

hello there, i have some problem, and i 'did not know how to solve it,please help me. i have no idea

Error

Exception AttributeError: "'NpzFile' object has no attribute 'zip'" in <bound method NpzFile.del of <numpy.lib.npyio.NpzFile object at 0x000000000DDBBB70>> ignored
Traceback (most recent call last):
File "", line 1, in
(x_train, y_train), (x_test, y_test) = mnist.load_data()
File "C:\Users\dycAS\Anaconda2\lib\site-packages\keras\datasets\mnist.py", line 16, in load_data
f = np.load(path)
File "C:\Users\dycAS\Anaconda2\lib\site-packages\numpy\lib\npyio.py", line 399, in load
pickle_kwargs=pickle_kwargs)
File "C:\Users\dycAS\Anaconda2\lib\site-packages\numpy\lib\npyio.py", line 162, in init
_zip = zipfile_factory(fid)
File "C:\Users\dycAS\Anaconda2\lib\site-packages\numpy\lib\npyio.py", line 92, in zipfile_factory
return zipfile.ZipFile(*args, **kwargs)
File "C:\Users\dycAS\Anaconda2\lib\zipfile.py", line 770, in init
self._RealGetContents()
File "C:\Users\dycAS\Anaconda2\lib\zipfile.py", line 813, in _RealGetContents
raise BadZipfile, "File is not a zip file"
BadZipfile: File is not a zip file

I meet the same problem, have you solved it?

any solution?

i have solved it. just delete your dataset in root folder, and run again
2017-06-01 14:57 GMT+07:00 awenhu<EMAIL_ADDRESS>
any solution?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/fchollet/keras/issues/6526#issuecomment-305418689,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMd1jOLStdgqeq1xK0p3a_hDyC-YxQdBks5r_m70gaJpZM4NSwqM
.

Alhamdulillah, done and solved.
just remove your database downloaded at ur root folder. and run again. make sure ur connection, because this problem caused by the database you downloaded is failed

thank you very much! Solved!

Solved!  thank you ,dycasxe101

excellent！

can you plz help me, where  is the root folder here ??

rm ~/.keras/datasets/*

In my case, I downloaded datasets manually: [https://s3.amazonaws.com/img-datasets/mnist.npz]  and modified the mnist.py file located under \keras\datasets\  basically change the path to path = 'N:\Deep_Learning\envs\py_36\Lib\site-packages\keras\datasets\mnist.npz'; and it works obviously. However, for different datasets, you may want to save a copy mnist.py so you can revert the code.


[Bug] SWCK 0.7.0 start failed with error "no matches for kind Ingress in version networking.k8s.io/v1" before k8s v1.18.3

Search before asking

[X] I had searched in the issues and found no similar issues.

Apache SkyWalking Component
SWCK (apache/skywalking-swck)
What happened
env:
k8s version: 1.18.3
SWCK version: 0.7.0
Question:
When we deploy SWCK 0.7.0 in k8s v1.18.3, the swck-controller-manager pod start failed and crash with the error "no matches for kind Ingress in version networking.k8s.io/v1".
SWCK pod log:
1.668760847966308e+09	ERROR	controller-runtime.source	if kind is a CRD, it should be installed before calling Start	{"kind": "Ingress.networking.k8s.io", "error": "no matches for kind "Ingress" in version "networking.k8s.io/v1""}
sigs.k8s.io/controller-runtime/pkg/source.(*Kind).Start.func1.1
/Users/caoye/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.12.3/pkg/source/source.go:139
k8s.io/apimachinery/pkg/util/wait.runConditionWithCrashProtectionWithContext
/Users/caoye/go/pkg/mod/k8s.io/apimachinery@v0.24.2/pkg/util/wait/wait.go:233
k8s.io/apimachinery/pkg/util/wait.poll
/Users/caoye/go/pkg/mod/k8s.io/apimachinery@v0.24.2/pkg/util/wait/wait.go:580
k8s.io/apimachinery/pkg/util/wait.PollImmediateUntilWithContext
/Users/caoye/go/pkg/mod/k8s.io/apimachinery@v0.24.2/pkg/util/wait/wait.go:545
sigs.k8s.io/controller-runtime/pkg/source.(*Kind).Start.func1
/Users/caoye/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.12.3/pkg/source/source.go:132
What you expected to happen
NO
How to reproduce
NO
Anything else
NO
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

K8s 1.18 is EOL 2021-05-12, ref https://kubernetes.io/releases/patch-releases/
There is no point to support that.


first draft of the templates

Closes #160.
Let's focus on the content first for the review.
I will later convert the new module template into a form
See example here:
https://github.com/brainhackorg/global2022/blob/main/.github/ISSUE_TEMPLATE/project-submission-template.yml

LGTM!

@PeerHerholz @edickie
If you both can review the content here that would be fantastic!

@clarkenj @complexbrains I have implemented the suggestions. Feel free to merge!


Allowing measurement of multiple time slots

@Yi-Zhou thanks, but don't forget to cover functionality with tests 😉


Deploy from master

Update production automatically when master is pushed.

I have added a Workflow to push this project to the AWS server using Github Actions.  This is a new tool by Github and it is still a bit fiddly and it is having a few teething problems like jobs getting stuck.  Let's see how it goes in actual use.


Changed core version (pom.xml) and version message to 0.3.1

Other minor improvements made were needed by the mobile wallet

Sorry I'm still trying to learn this stuff but what's happening with commit ebd6026.
It looks like you would rather be fetching from upstream and merging over master instead of what's happening in that commit?
I few similar looking commits as well that could probably be squashed (1416b08 and af04bcf)?

ebd6026 seems to be for the changes I pulled from PaycoinFoundation so its for my repository (https://github.com/brenzosa/paycoinj/commit/ebd602616e161c3bc564fb6dd39a08fdea9ab222).
The actual changes in this pull request can be seen here (1416b08 and af04bcf):  https://github.com/PaycoinFoundation/paycoinj/pull/16/files

I think I should teach you some git tricks for cleaner commits and pulls. For example you shouldn't pull the changes from paycoinfoundation like you did but rather doing a clean merge etc. I can chat on slack. We should clean this up before merging

@brenzosa we should be splitting these up into their own pull requests and this still needs a bit of a clean up. I might do it to at least get the protocol change in the wallet.

@brenzosa can you please review the pull request splits I've made above (I just cherry-picked your commits so you'll still get the credit).
Let me know if any need merging etc.

Sure go ahead, that's really the only important change so it should be easy to add.  I'll re-open another PR for the stuff, thanks


Allow matches to be approved on the facility list detail page / show match results

Overview
When a FacilityListItem has the status of POSSIBLE_MATCH, show the related FacilityMatch rows and allow the user to select one or reject them all. If they are all rejected, create a new Facility.
Describe the solution you'd like

On the list detail page, show rows with POSSIBLE_MATCH status in an "expanded" state. List the possible match(s) underneath with "Accept" and "Reject" buttons.

If "Accept" is clicked, POST to an endpoint. Update state to show other matches as rejected.
If "Reject" is clicked on all options, POST to an endpoint and create a new Facility.

Allow any row that is not in process to be "expanded."

If the item is matched, show the Facility row to which it is matched.
If the item is in the error state, show the error.

Additional Context
The previous matching UI

https://docs.google.com/presentation/d/1vfEb1QnVD-9bvfQyMtYUpXQT3ogJvkQvURI7QoK4z7s/edit#slide=id.g4c5179bf71_0_5

Blocked by #190

API side is mostly done for #206, aside from figuring out how to generate some non-automatic matches using the existing naive matching algorithm.
Frontend's partly done, although I'll need to make some adjustments to the UI:

Some remaining stuff on #206:

[ ] create row components for displaying errors
[ ] create row components for displaying automatic matches
[ ] clean up confirm/match UI
[ ] interleave confirm/reject API response data back into Redux facilityDetails data


Ability to select and interact with subtrees of panes

Description of the new feature/enhancement
There are a number of features that exist or are being made that allows one to manipulate the tree of panes from the leaves, e.g. resize-pane, split-pane, move-pane, toggle-split, etc. It would be helpful if this functionality could be extended such that a user can select a particular subtree and interact with it directly.
Some examples
Suppose you have the following grids
1
---------------------
|    1    |    3    |
----------+----------
|    2    |    4    |
---------------------

2
-----------
|    1    |
|---------|
|    2    |
|---------|
|    3    |
|---------|
|    4    |
-----------

where the tree for each is
  /\
/\  /\
1 2 3 4

currently there is no way to:

For the 2nd grid to resize the split between panes 2/3 (because resize will only work on the 1/2 or 3/4 parent)
For either, add a split on a parent, e.g. create the tree where an existing subtree is made into the child of a new parent

  / \
/\   /\
5 /\ 3 4
 1 2

Once the base features are added for move-panes, swap-panes, etc, it would be nice to be able to take an entire subtree and swap it with another pane/subtree, move it to another tab, etc in one action
For toggle-split once it is added because there is no way to select a parent of a pane, there is no way to turn grid 1 into grid 2 because only parents of leaves can be modified.

Proposed technical implementation details (optional)
One possible solution to this would be to have a hotkey (or other mechanism) to select the parent of the currently focused pane. This parent would then itself be focused and some of the existing set of actions could be applied to it. This might require giving IDs to non-leaf panes so that they can be addressed individually.

Out of curiosity, is there any sort of similar functionality in tmux? They've got one of the best pane implementations out there. It's a pretty reliable source of good prior art.

There is support for this in the i3 window manager, which is excellent. You can select panes or groups of panes at any level.

Most of what I'm familiar with in terms of window managers is xmonad, and a lot of my thoughts on what features I want come from there. This particular request just seemed like the logical progression of functionality given what I've tried to do using this terminal since it has an explicit tree structure.


Running "setup.py"

I tried using python setup.py install on the terminal. However, it is giving me the error in the photo. I've installed setuptools, so I'm not sure what the problem is...

Hi,
Could you resolve this issue?


Add launch option to submit

@ogrisel Is this what you expect?
I am not sure that I like this option as it requires to add 3 parameters to the submit function.

Link to #31

@ogrisel What is your opinion on this?


Bump @github/relative-time-element to 4.3.1

Fixes https://github.com/go-gitea/gitea/issues/28747

Before

After

I was unable to create a backport for 1.21. @yardenshoham, please send one manually. :tea:
go run ./contrib/backport 28819
...  // fix git conflicts if any
go run ./contrib/backport --continue


Bot make action to new messages in all channels from conversations_list()

I have an app
from slack import RTMClient

@RTMClient.run_on(event="message")
def say_hello(**payload):
  print('hello')

token = ''
rtm_client = RTMClient(token=token)

What I want it to do is to print ('hello') to every new message in every channel available by:
client = slack.WebClient(token=token)
channels = client.conversations_list()

However at the moment I am able to print only new messages in the channels my bot have joined. Is there a way to do so?
Copy of the question on SO:
https://stackoverflow.com/questions/59190444/slack-python-bot-make-action-to-new-messages-in-all-channels-from-conversations
What type of issue is this? (place an x in one of the [ ])

[ ] bug
[ ] enhancement (feature request)
[x] question
[ ] documentation related
[ ] testing related
[ ] discussion

Requirements (place an x in each of the [ ])

[x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
[x] I've read and agree to the Code of Conduct.
[x] I've searched for any related issues and avoided creating a duplicate issue.

Hi @trthhrtz 👋
Before I answer your question it’s important to understand how a token gives your app permission to perform certain operations. There are mainly 2 types of tokens that apps use, bot tokens and user tokens. Given the fact that the code you shared using the RTM client and you mentioned you’re receiving messages in channels where your bot joined, I’ll assume you’re working with a bot token (these begin with xoxb-).
Bot tokens only allow you to subscribe to events from from places where the bot user is present. Bot users can only be invited into channels by regular users. This is by design and allows members of a workspace to control how much data they want to expose to an app.
When you use a WebClient to call the conversations.list Web API method with a bot token, you’ll receive a list that includes all public channels in the workspace (and possibly any non-public conversations where the bot user is a member). This is similar to how any human user in a workspace can see the whole list of public channels and the channels where they are a member.
But you still cannot post messages to channels where your bot is not a member.
Can you describe what you’re trying to accomplish with this bot? I might be able to suggest alternatives or workarounds.

👋 Let us know if you have further questions here. Otherwise, I'll close this issue soon.


[placeholder] Implement more placeholders

Is this a BUG REPORT or FEATURE REQUEST?:
bug | feature
What happened:
Currently we started with {uri} as the first placeholder.
What you expected to happen:
Implement more placeholders. Might need a few thoughts especially around encoding.
{~cookie} | The value of a cookie, where "cookie" is the cookie name
{dir} | The directory of the requested file (from request URI)
{file} | The name of the requested file (from request URI)
{fragment} | The last part of the URL starting with "#"
{>Header} | Any request header, where "Header" is the header field name
{host} | The host value on the request
{hostonly} | Same as {host} but without port information
{method} | The request method (GET, POST, etc.)
{path} | The path portion of the original request URI (does not include query string or fragment)
{path_escaped} | Query-escaped variant of {path}
{port} | The client's port
{query} | The query string portion of the URL, without leading "?"
{query_escaped} | The query-escaped variant of {query}
{?key} | The value of the "key" argument from the query string
{uri} | The request URI (includes path, query string, and fragment)
{uri_escaped} | The query-escaped variant of {uri}
{user} | The username authorized by basicauth (HTTP Basic Authentication)

Do we only need these placeholders in rec.To for now till we work on #91?

I would say this would only be necessary in rec.To, if I haven't missed anything. They are provided/extracted by caddy and rec.To can work with them.


Fix dismiss on outside click

Fix dismiss on outside click by ignoring clicks that had mousedown on the popup but mouseup on the container, this can happen when the user drags a slider.
This fix is inspired by bootstrap:
https://github.com/twbs/bootstrap/blob/6f1e746d70649e17956b0db03f5cd127e5012fab/js/src/modal.js#L352

Very nice, thanks a lot for this PR @andreeib!
What do you think about the opposite case - mousedown on container and mouseup inside the popup? IMO in this case modal shouldn't be closed as well. What do you think?

Not sure about use cases but I agree, we shouldn't close the modal if we are not sure if this is what the user intended.

Many thanks @andreeib for the great PR. I will cover this functionality with tests by myself and make a new release later.

Release in https://github.com/limonte/sweetalert2/releases/tag/v7.1.1 :tada:

Awesome, thank you for the quick response and for the work you do on this library.


adds generic training functions for trainer

This allows to pass a custom training function when creating a Trainer, this could be useful for:

Custom sampling of the dataset for specific training loops
Custom training loop (seems like TF.js fitDataset mostly expect gradient-based optimizers)

This enables users of the lib to write a client with completely custom training, and this allows us to eventually define more training loops that could be used in later tasks.
Currently only the default training is proposed by the lib (TF.js fitDataset), but it can be freely extended by users
Some info about the training function:

The training function is the function that will be called to train the model.
The model is trained locally with the given dataset, which means that it will only have access to the data of the user local machine.
This all happens in the client, so this data is not sent to the server, only the resulting model is.
Every few batches, represented by the round duration ('onRoundEnd' trainer function), the model will be sent to the server and then updated with the new aggregated weights (in the case of the distributed trainer). The following trainings will be done with the updated model.
You need to be aware that the model is subject to regular changes in your training functions.

thanks, looks nice
tiny things: in the PR description and training function docstring, could you add a comment describing the job of the training function? like saying which data and info it accesses etc. for instance, say that it doesn't see the global distributed dataset but only the local data on a worker.
also say that onRoundEnd which is every few onBatchEnd, the model is actually replaced with the model from the communication step (federated or decentralized). so the optimizer should be warned that its model gets swapped out regularly (which might slightly confuse adam for example. no prob for SGD)
also now that you made it modular on the training function level, is the trainer builder even needed or a bit overkill? maybe the learning_rate access hack there could also be removed, as the training function (or the optimizer) could access it directly maybe? i don't know

I added a bit of doc to the training function regarding your comment.
For the trainer builder, I'm not really sure right now, I guess we could consider refactoring that in another issue, to keep this one self contained


Correction of section name.

The OpenType Layout tables are described in more detail in the “Font File tables” section of the OpenType specification.

“Font File tables” section is incorrect.

The OpenType Layout tables are described in more detail in the “Font Tables” section of the OpenType specification.

"Font Tables" section is correct .

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

ID: 5b15ab9e-86c5-f6e0-0145-f9de77c60141
Version Independent ID: 0ebe3dec-cc24-b6a4-01b8-73bfdb79a71a
Content: Advanced typographic tables - OpenType Layout - Typography
Content Source: typographydocs/opentype/spec/ttochap1.md
Product: typography
GitHub Login: @PeterCon
Microsoft Alias: PeterCon

Hi, Thank you for letting us know. I will have this corrected.
Ali

Thanks!


Add privacy permissions

Adds privacy permissions for users to the backend. Fields are as follows:

profileVisible (default: true)
usernameVisible (default: true)
emailVisible (default: false)
phoneVisible (default: false)
addressVisible (default: false)
attendanceVisible (default: false)

Checklist

[x] I have written tests
[ ] I have provided documentation

look at him work

OG MED TESTER

Although most of the content is satisfactory, it remains uncertain whether we require all of the changes. It primarily depends on whether we plan to still implement the profile search and which data we will still store.
One important consideration is placing the privacy permission within the user table instead of a separate table. This change would simplify the process by reducing the number of joins required in certain scenarios, given that the user data is already stored in an external service like Clerk. Overall this change would perhaps allow the User table to be used for something, rather than it being a table with a single ID column.


Nav bar does not auto scroll when not on main page

Go to main page
Find and click on a game mode
On nav bar click on a game mode

Page does not scroll to correct mode on main page.

I found a way to handle this


Version 3.46 broken repository checkout

With version 3.46 there are failing checkouts exhausting all retries like Warning: Checkout failed! exit status 128 (Attempt 1/3 Retrying in 2s). Before the warning, the following output appears:
$ git clean -ffxdq
# Checking to see if Git data needs to be sent to Buildkite
$ buildkite-agent meta-data exists buildkite:git:commit
# Sending Git commit information back to Buildkite

It seems Sending Git commit information back to Buildkite is causing an exit status of 128, which in turn causes to enter a retry-loop.

hey @hfp! we've spent a little time looking into this (thanks for sending me the link btw), and it appears to be an issue with the version of git that you're using (which appears to be CentOS 7's security-updated version of Git v1.8.3) doesn't support the use of the --no-patch flag we added in #2054. --no-patch is just a synonym for -s though, so we're gonna change it back to using -s.
we don't provide a compatibility promise for git, so we have to do our best to support legacy versions of git for use with the agent, but most of our testing uses more modern versions, so we're biased towards using those in the agent. this means that sometimes things might break on older versions of git, but we'll do our best to address these as they come up.

Clean diagnostic, thank you!  I am closing the issue since it seems to be resolved with the change subsequently released.


Try autocommiting knapsack report updates

replaced with https://github.com/Energy-Sparks/energy-sparks/pull/3282


Custom Mode menu displays The Construct as The Ironclad

The character selection icons in the custom mode menu have a second copy of the icon for the ironclad(with the ironclad's mouseover text) instead of the construct's.
Selecting the duplicate ironclad does start the game as the construct without any noticable problems so it seems to only be visual.

Fixed in the latest version. Thanks for the report!


"Let's make a map" clarification and bubble map typo.

On Let's make a map, it's not entirely clear where path.pointRadius should be added.  I ended up finding it in the step-6.html, but I couldn't figure it out from the linked documentation.  Just starting out though, so it may be that I'm just doing things in the wrong order.  I first tried doing it with CSS, and then I tried adding it various places near the creation of the points.  Either way, great tutorial.  It's so wonderful to have such a powerful library as d3.
There is also a typo on http://bost.ocks.org/mike/bubble-map/.
The Makefile has a space between -- and countries:
		-- counties=$<

it should be
		--counties=$<

Once again, thanks so much for making the web a better place, a place where it is easier to tell the truth and harder to deceive.  It's easy for me to mis missing justification in text, but it's harder when it's in a picture.

I ran across this same problem. Topojson is perturbed by backslash-newlines that make passes due to the multi-line single-quoted string for the projection options. To resolve the trouble, join the projection options into a long single-quoted line:
    --projection='width = 960, height = 600, d3.geo.albersUsa() .scale(1280) .translate([width / 2, height / 2])' \

or wrap it in double quotes instead:
    --projection="width = 960, height = 600, d3.geo.albersUsa() \
            .scale(1280) \
            .translate([width / 2, height / 2])" \

or put the single-quoted, multi-line projection string into a make variable and then use the variable in the recipe as discussed in Splitting Recipe Lines  with GNU Make.

Thanks for that @roderickm!


fix(upgradelog): support log archive pvc alt name

IMPORTANT: Please do not create a Pull Request without creating an issue first.
Problem:

After upgrading from v1.3.2 to v1.4-head (or master-head), users is unable to download the upgrade log. This is because the previous fix #6349 is not backward-compatible.
Solution:

The log archive PVC alt name will be saved in the upgradelog object's annotation. If such an annotation exists, the downloader and packager pods will refer to that PVC instead of the default one. That is to say, the name of the PVC spawned by the Logging CR will be recorded in the UpgradeLog CR's annotation.
Related Issue:
#6272
Test plan:

Test the following two upgrade scenario (both with the upgradelog feature enabled):

Upgrade a Harvester cluster from v1.3.2 to master (to make sure we don't break anything)
Upgrade a Harvester cluster from master to master (to make sure the fix is effective)

For both scenario, please try to download the upgradelog at the following time point:

During the upgrade
After the upgrade success (or failed, either should work)

@mergify backport v1.4


UI elements are broken when navigated with "Tab" button

Try to press Tab button several times and UI elements will move to different directions

Can confirm, we should definitely look into this! Thanks @mike1808

I'm going to close this, since the v2 rewrite has now been released and this bug is not present there. Please file a new issue for any new bugs you notice in v2!

I'm going to close this, since the v2 rewrite has now been released and this bug is not present there. Please file a new issue for any new bugs you notice in v2!


Islamic State in a SoI doesn't make sense

ISIS should be "unspherable" IMHO. In my game Japan sphered them, which means that no neighbour country would ever attack them. Actually Japan even helped them once, which doesn't really make sense.
Perhaps an event that happens whenever a great power gets to friendly. Like "beheading heathens" or "destroying ancient artifacts". It would add -200 relations and -400 influence.

Well, that depends how the Islamic state would develop - they could tone down the most extreme elements, evolve to something of a "Sunni-Iraq and Syria. I am a little bit hesitant to add special treatment with regards to sphering. However if you or anyone want to mod please do. It will get into the mod. .

Closing, no action. See my previous comment


PR: Explorer "New" actions now depend on selected files

Description of Changes

[x] Wrote at least one-line docstrings (for any new functions)
[ ] Added unit test(s) covering the changes (if testable)

[x] Included a screenshot or animation (if affecting the UI, see Licecap)

Add support for adding new files/folders/etc in the selected directory on the explorer tree

Issue(s) Resolved

Fixes #13444
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct: Steff456

/show binder


Fix/dashboard issue

I did not get any popup muhammad?

Hmm, confusing in my local it show up
Check local storage try to clear and try to refresh again


Allow to use subclasses of DBusError

Also mark the translated to dbus Exceptions as handled.

:+1:


Arn 1795 tba summary page

In summary page '[subject]' is being pulled through and not the PoP's name. Probably due to it being hard coded in the template file.
Here are a couple of ways i tried to fix it:
From debugging to render the hint message you can use option.hint.html
e.g
{{ option.hint }}
or
{{ option.hint.html }}
Or create a macro specifically for the warning text
{%- macro renderWarningText(fields, answers) -%}

   {% for option in fields["thinking_behaviours_attitudes_risk_sexual_harm"].options %}
       {% if option.checked %}

         {{ option.hint }}

     {% endif %}
   {% endfor %}

{%- endmacro -%}

i looked into importing the warming text component in the fields file so it could be used in the template
{% from "fields/thinking-behaviours-attitudes.ts" import sexualHarmWarningText %}

If there is a way to fix this, lmk!

Regarding the above issue, we could use `fields["thinking_behaviours_attitudes_risk_sexual_harm"].hint.html, this should be updated with the placeholder values 🤔


Armor Zone Encumbrance calculation not working.

Line 43 of armorzones.js is  if (this.type == "character"... but should be  if (actorData.type == "character" so this returns false and skips all your code:
which then has a copy paste error in line 57 where it is using "a.damageToolTip = EquipmentDamage.damageTooltip(a)". instead of armor.damageToolTip = EquipmentDamage.damageTooltip(armor)
Additionally the inbetween steps of lets say enc 2 and additional -1gs/-1INI do not seem to be applied. (the .mod of calcEncumbrance does not seem to be used?)
Enhancement -> Ignore Effect field of Armor when Zone Armor is enabled. (Might be to simple; is there armor with other effects than -1GS?)
I would do a pull request, but this is non public code :)

Additionally the code at prepareDerivedData in actor-dsa5.js still does it's own Encumbrance cheks.
Might be a good idea to disable that?

Enhancement -> Ignore Effect field of Armor when Zone Armor is enabled. (Might be to simple; is there armor with other effects than -1GS?)

This could probably solved by checking for game.settings.get("dsa5-armory2", "enableArmorZones")
in actor-dsa5.js _addGearAndAbilityModifiers
in this if:
if (compensation && i.data.type == "armor" && [game.i18n.localize('CHARAbbrev.INI').toLowerCase(), game.i18n.localize('CHARAbbrev.GS').toLowerCase()].includes(vals[1].toLowerCase())) {

I added a pull request to ignore the old calculation and to ignore armor GS and INI mali in case of zone armor
https://github.com/Plushtoast/dsa5-foundryVTT/pull/823

Ok I fixed The -GS/INI somewhat for me.
However since getArmorEncumbrance is called in prepareItems(sheetInfo) it is too late for just editing gearmodifer
This I worked around by modifiying value/max directly but it feels a bit hacky.
Additionally this is too late to be recognized by the foundry variable for movement speed
So this would have also be set manually (haven't found the right variable yet)
It might be cleaner to move the whole code to prepareDerivedData
but that is for you to decide. But since a check wether armory2 is installed would be needed anyway (see above)
the override of getArmorEncumbrance could be replaced by a simple
if(amory2) { call the code vrom armory2 } and the opposite for the getArmorEncumbrance call in prepareItems(sheetInfo)
Anyway this is my replaceArmorEncumbranceCalculation() code which would need to be slightly edited depending on the solution
static replaceArmorEncumbranceCalculation() {
        let totalEncumbrance = 0
        game.dsa5.entities.Actordsa5.prototype.getArmorEncumbrance = (actorData, wornArmors) => {
            if (actorData.type == "character" || (actorData.type == "npc" && game.settings.get("dsa5-armory2", "enableArmorZonesNPC"))) {

                const armorZones = duplicate(ArmorZones.armorZones)
                const factors = duplicate(ArmorZones.factors)
                const armorEncumbranceModifiers = [0]
                for (let armor of wornArmors) {
                    for (let key of Object.keys(armorZones)) {
                        if (armor.data.protection[key] != 0) {
                            totalEncumbrance += armor.data.protection[key] * factors[key]
                        }
                    }
                    const encMod = EquipmentDamage.armorEncumbranceModifier(armor)
                    armorEncumbranceModifiers.push(encMod)
                    armor.calculatedEncumbrance = Number(armor.data.encumbrance.value) + encMod
                    armor.damageToolTip = EquipmentDamage.damageTooltip(armor)
                }
                let encStruct = ArmorZones.calcEncumbrance(totalEncumbrance)
                totalEncumbrance = encStruct.enc + Math.max(...armorEncumbranceModifiers)
                if (encStruct.mod > 0) {
                    let shortCutGS = game.dsa5.config.knownShortcuts[game.i18n.localize('CHARAbbrev.GS').toLowerCase()]
                    let shortCutINI = game.dsa5.config.knownShortcuts[game.i18n.localize('CHARAbbrev.INI').toLowerCase()]
                    actorData.data[shortCutGS[0]][shortCutGS[1]][shortCutGS[2]] -= 1
                    actorData.data[shortCutINI[0]][shortCutINI[1]][shortCutINI[2]] -= 1
                    actorData.data.status.initiative.value -= 1
                    actorData.data.status.speed.max -= 1
                    actorData.itemModifiers[game.i18n.localize('CHARAbbrev.GS')] = {
                            value: -1,
                            sources: [game.i18n.localize('encumbrance')]
                    }
                    actorData.itemModifiers[game.i18n.localize('CHARAbbrev.INI')] = {
                        value: -1,
                        sources: [game.i18n.localize('initiative')]
                    }
                }
            } else {
                totalEncumbrance = wornArmors.reduce((sum, a) => {
                    a.calculatedEncumbrance = Number(a.data.encumbrance.value) + EquipmentDamage.armorEncumbranceModifier(a)
                    a.damageToolTip = EquipmentDamage.damageTooltip(a)
                    return sum += a.calculatedEncumbrance
                }, 0)
            }
            return Math.max(0, totalEncumbrance - game.dsa5.apps.SpecialabilityRulesDSA5.abilityStep(actorData, game.i18n.localize('LocalizedIDs.inuredToEncumbrance')))
        }

Ok there now is an updated Pull request Improve Zone Encumbrance
The remaining issue is that replacement of functiuon prototypes is too late for the initial foundry initialization, i will think about this further.
But once the actor gets recalculated everything should work fine now.
Some testing might be prudent. Especially interplay with armor damage.
The necessary armorzone.js code i sent you personally

Any particular reason why this is still not implemented?
I'm not too bothered by it, i have my own branch and just merge that after updates. But maybe more people want to benefit from it.
I can provide updated Pull Requests that work with the current code, if needed.

I might have forgotten to push this to foundry but as i remember this is fixed a long time ago. Ill check later today

Are you talking about the -1GS -1 INI thing?
The rest is done afaik. But this one is missing because I dared to do 10000 other things in the meantime.

The rest is done afaik. But this one is missing because I dared to do 10000 other things in the meantime.

Bold choice daring to do other stuff ;)
Like I said I'm not bothered by it.
I was just asking before I take a look at it again, in case it is right next in the pipeline or something.
I will check again which parts are done. I think increased encumbrance with damaged armor is also missing.

No that should already be part of the solution. But as far as I know there are also no rules damage & armor parts in DSA5

Yes you are right while armor damage is never explicitly stated with zone armor in the rules, it seems to work correctly.
From what I can see it really should just be the correct Encumbrance calculation:
(You probably know all this already I am just updating the issue for the interested readers benefit :) )
Current (With zone armor):
Character with "Belastungsgewöhnung 1" equipps a an Armor with Chest Armor value 3 and Effect -1gs/-1ini
He correctly receives no Encumbrance, however the effect of -1gs etc is still applied, which is wrong (he is only at "15")
This could be fixed by simply removing the -1INI effect from the item as GM
now he equips armor 3 legguards and Armguards.
He is now at "39" and should receive 1 Encumbrance and -1INI/-1GS.
The Encumbrance is correctly removed by Belastungsgewöhnung but the -1INI/-1GS is missing.
I updated the attached pull request to the current foundry9 branch
The following is the code needed in armory2
        game.dsa5.entities.Actordsa5.prototype.getArmorEncumbranceZone = (actorData, wornArmors, itemModifiers) => {
            let totalEncumbrance = 0
            if (actorData.type == "character" || (actorData.type == "npc" && game.settings.get("dsa5-armory2", "enableArmorZonesNPC"))) {

                const armorZones = duplicate(ArmorZones.armorZones)
                const factors = duplicate(ArmorZones.factors)
                const armorEncumbranceModifiers = [0]
                for (let armor of wornArmors) {
                    for (let key of Object.keys(armorZones)) {
                        if (armor.data.protection[key] != 0) {
                            totalEncumbrance += armor.data.protection[key] * factors[key]
                        }
                    }
                    const encMod = EquipmentDamage.armorEncumbranceModifier(armor)
                    armorEncumbranceModifiers.push(encMod)
                    armor.calculatedEncumbrance = Number(armor.data.encumbrance.value) + encMod
                    armor.damageToolTip = EquipmentDamage.damageTooltip(armor)
                }
                if (ArmorZones.calcEncumbrance(totalEncumbrance).mod > 0) {
                    itemModifiers[game.i18n.localize('CHARAbbrev.GS')] = {
                            value: -1,
                            sources: [game.i18n.localize('Equipment.armor')]
                    }
                    itemModifiers[game.i18n.localize('CHARAbbrev.INI')] = {
                        value: -1,
                        sources: [game.i18n.localize('Equipment.armor')]
                    }
                }
            }
        }

thanks for your help, this is included in the next update


feat: merge proxy and implementation abis

Without merging abis, we only get the implementation and lack any valid methods/events from the proxy itself.
Related issue # (if applicable):
What I did:
When querying a proxy, include the abi from both the proxy and the implemenation contract.
How I did it:
abi = abi1 + abi2
How to verify it:
Can test against this proxy 0xE95A203B1a91a908F9B9CE46459d101078c2c3cb and it's implementation: 0xE95A203B1a91a908F9B9CE46459d101078c2c3cb
Checklist:

[x] I have tested it locally and it works
[x] I have included any relevant documentation for the repo maintainers
[ ] (If fixing a bug) I have added a test to the test suite to test for this particular bug

Adding a Network
If the purpose of your PR is to add support for a new network, please copy the checklist from here into this PR conversation, and use it to track your changes.

lgtm! I've just added some deduplication here:
https://github.com/wavey0x/yearn-exporter/pull/1


rdf4store: remove pkg and service modules

Motivation for this change
As of today the 4store pkg (rdf4store attribute) :

has been marked as broken since April 2018 #39312
has no pending issue in our tracker asking to revive it
has lost its former website (see https://github.com/4store/4store/issues/137) although there is a GitHub repo
there has been talks of a new release upstream back in 2017 (see https://github.com/4store/4store/issues/117) but it's pretty much inactive since

Things done

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

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

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

Notify maintainers
cc @7c6f434c

@7c6f434c > are you ok with this removal?

Yes, Apache Jena is enough for whenever I need RDF. Somehow missed the original mention, sorry.

No problem, thanks


Multiplex state should have timeouts

As a result of the Tokio reform RFC. tokio-proto is going to be significantly simplified and focus more on getting started than provide a full blown solution to all cases. As such, this is out of scope.


[AppService] Remove tab completion from 'appservice plan create' plan parameter

Fixes #1286.

Codecov Report

Merging #2404 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master    #2404   +/-   ##
=======================================
  Coverage   72.33%   72.33%
=======================================
  Files         323      323
  Lines       18273    18273
  Branches     2701     2701
=======================================
  Hits        13217    13217
  Misses       4223     4223
  Partials      833      833

Impacted Files
Coverage Δ

...ce/azure/cli/command_modules/appservice/_params.py
93.75% <100%> (ø)
:white_check_mark:

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 4c0fdcf...322ec39. Read the comment docs.


fix(webpack): webpack4 optimize filter *

fixes:  #1401  #1417

This actually could solve this two issues.
But I found that, it will be infinite compile when I run pnpm run dev in project example/vue-cli, simile #856.Then I create new project with the latest vue-cli, test the different unocss's version. It get the same result.
Although it does not seem to be caused by this change, I need to look again.Or create a new issue about that.

yes. I cloned your minimal reproduction, and it works by my test.


Remove dependencies from clippy checks in Rust workflow

Seems we can't
https://stackoverflow.com/a/40523177/1872181


custom element doesnt exist: bubble-pop-up

hi
thanks for the bubble card
issue is i have done the configuration.yaml addition :
frontend:
extra_module_url:
- /hacsfiles/Bubble-Card/bubble-pop-up.js
but there is an error
i have looked for the bubble-pop-up.js file in my home assistant and found it is in this folder but i cant get the bubble card top work even after changing the url ?
location : /volume1/docker/homeassistant/config/www/community/Bubble-Card/bubble-pop-up.js
what should i change the url to please?
the error i get is : custom element doesnt exist: bubble-pop-up
thanks

I reverted to 1.4.4, updated all my bubble cards with - type: custom:bubble-pop-up and then upgraded to 1.5.0 and it worked

This is explained in the release notes at https://github.com/Clooos/Bubble-Card/releases/tag/v1.5.0
You need to add js-file, like described there.

This is explained in the release notes at https://github.com/Clooos/Bubble-Card/releases/tag/v1.5.0
You need to add js-file, like described there.

yes - as i said i put the js url into the configuration.yaml
this is a different issue - but thanks for the comment

URL described from plugin author is correct. Have you tried to restart HA?

This is explained in the release notes at https://github.com/Clooos/Bubble-Card/releases/tag/v1.5.0
You need to add js-file, like described there.

yes - as i said i put the js url into the configuration.yaml
this is a different issue - but thanks for the comment

Hi,
Did you get this resolved? I am having the same issue.

URL described from plugin author is correct. Have you tried to restart HA?

hi
have tried the following:

remove the js url from config - restart
revert to 1.4.4 - restart
change the bubble-card to bubble-pop-up in all instances in the yaml - restart
upgrade via hacs to 1.5.0 - restart
add js url to config - restart

none of this has helped - i get the error "custom element doesnt exist: bubble-pop-up" if i revert to 1.4.4 and a blank screen if 1.5.0
not sure what to do other than

remove js url
revert to 1.4.4
change all bubble-pop-up  back to bubble-card

my HA is hosted in a container on a synology NAS if that makes a difference?
thanks for any help?

This is explained in the release notes at https://github.com/Clooos/Bubble-Card/releases/tag/v1.5.0
You need to add js-file, like described there.

yes - as i said i put the js url into the configuration.yaml
this is a different issue - but thanks for the comment

Hi,
Did you get this resolved? I am having the same issue.

to get back to prev just revert to 1.4.4 and change the button-pop-up to button-card and it works again as a temp solution

I'm also having this issue. I suppose I'll just be reverting back.
I'm curious to know if it's working just fine for everyone else.

Similar issue here, have tried all steps as mentioned above, but no succes

I reverted to 1.4.4, updated all my bubble cards with - type: custom:bubble-pop-up and then upgraded to 1.5.0 and it worked

This actually worked for me.

What i did last night:
Added on Configuration.yaml
frontend:
extra_module_url:

/hacsfiles/Bubble-Card/bubble-pop-up.js

Upgraded to 1.5.0 ~ got the errors
Reverted back to 1.4.4 - still got the errors and updated the bubble cards to - type: custom:bubble-pop-up ~ errors disappeared
Updated to 1.5.0 again and working

I fixed this issue by removing the module from the configuration.yaml and instead going to Dashboard > edit Dashboard > manage resources > and I added /hacsfiles/Bubble-Card/bubble-pop-up.js as a Javascript Resource

For me it works on browser. But not in the android app. Even clearing cache didn't help.

How did you cleared the cache on the Android app? Because it should work.

How did you cleared the cache on the Android app? Because it should work.

I'd long press on the app. Clicked on App-Info. Stopped the app. Then I'd click on Storage & Cache -> Clear Cache. Reopen the app but bubble-pop-up is still missing.
(Sry for translations. I use another language on my phone (Pixel 7))

Have you tried to restart HA again? I had this issue on my setup, restarting HA worked for me on Android.
But with all your comments I will try to find a better step-by-step instructions.

Workaround for reloading the App-Cache: In your HA-App, go to HACS and install any lovelace-card you want. After installation say yes on reload cache. Uninstall the new installed card. This way, bubble-cards started working on my android app.

Here is another possible solution:
https://github.com/Clooos/Bubble-Card/issues/188#issuecomment-1817976022

Workaround for reloading the App-Cache: In your HA-App, go to HACS and install any lovelace-card you want. After installation say yes on reload cache. Uninstall the new installed card. This way, bubble-cards started working on my android app.

Normally you can force it by clicking the 3 dots on your lovelave dashboard in browser and simply click reload. That forces a refresh popup on mobile / companon app. But still doesn't work.

Here is another possible solution: #188 (comment)

I'd rollback to 1.4 today, did a reboot and update to 1.5, rebooted again without success on mobile. Only works on my browser.

Have you tried to restart HA again? I had this issue on my setup, restarting HA worked for me on Android.
But with all your comments I will try to find a better step-by-step instructions.

Several times.

Same problem for me, somehow have the resource defined in configuration.yaml does not work on the mobile version. Tried reinstalling bubble-card but still the same. Restarted a few times also the same.
The only way it works now on mobile is from the resource tab in the dashboard. Once I add it there, it works fine.
Must be something native to HA that is not loading the resource correctly.

I'm on it but I really don't understand why I did not had that issue on mobile.

Thanks @Clooos, I havent tried that yet but would like to avoid that as I have tracking sensors and other configuration done on the mobile app that will have to be redone. Hoping for an alternative. Force stop and clearing cache doesnt work.
I wonder how it is not impacting some. Must be a way to force it to take the configuration.yaml value

clearing the cache worked for me... adding it as a dashboard resource had performance implications

clearing the cache worked for me... adding it as a dashboard resource had performance implications

Do you use yaml or ui mode?

the browser that i use is Chrome so i cleared the cache there ...and this worked instantly on my PC.
Now my issue is on the HA mobile app ...i even tried to reinstall the APP ...cleared storage but im still seeing errors

clearing the cache worked for me... adding it as a dashboard resource had performance implications

Do you use yaml or ui mode?

the browser that i use is Chrome so i cleared the cache there ...and this worked instantly on my PC.
Now my issue is on the HA mobile app ...i even tried to reinstall the APP ...cleared storage but im still seeing errors

Same for me, on chrome browser on computer works fine, on android app got the same error.
Same dashboard.

Suggestion made by Razora (Installing card from HACS + Reload) works for me!

It only works for if i add /hacsfiles/Bubble-Card/bubble-pop-up.js under ressources from the dashboard. After a restart it doesn´t work again, because it reloads the js from the configuration,yaml. So i removed the entry there and added it manually again. Now it works after a restart. Once you upgrades to 1.5 you have to reinstall it once in order for it to work. Just updating does not install the new module.

I fixed this issue by removing the module from the configuration.yaml and instead going to Dashboard > edit Dashboard > manage resources > and I added /hacsfiles/Bubble-Card/bubble-pop-up.js as a Javascript Resource

This worked for me!

This has been the only working method for me, too. Tested with several different browsers and devices.

This works for me, too. Don't forget to clear app cache!

Not sure if it was mentioned, didn't see - but also had this issue and went through all troubleshooting steps.  It was only happening on mobile clients.  Logout/login didn't work.  Clear app cache didnt' work.  ////restart the device//// worked.  Same issue on multiple android devices - all worked after device reboot.

For me non of the above mentioned methods works to fix the issue on Android.
Following the release note details worked just fine for desktop in browder.
On my Samsung Galaxy S22+ however it does not work.
I tried forced stopping the companion app, then clearing its cache and restarting the phone in this order to no avail. After the restart the card still won't load.
Please note that this is the first time I'm dealing with bubble card. I installed it via HACS a few hours ago the very first time on my instance so I haven't migrated anything from previouse versions. It is as clear as it gets.

 I am too tired atm. xD

Unless you have a big board, it should be okay, so far me its the only solution that works unfortunately and I dont see any slowness yet

Reinstalling app again without backup functionality isn't a solution for me. I changed many things in options and you even can't even see what is the default is. Widgets, Quick Toggles ect. will be deleted, too.

Reinstalling app again without backup functionality isn't a solution for me. I changed many things in options and you even can't even see what is the default is. Widgets, Quick Toggles ect. will be deleted, too.

Thanks for pointing this out. I have none of the listed things so I didn't notice.

For those who wonder, I'm pretty sure it is a HA issue in general and not a bubble card related one. I found many discussions about the same error message for various frontend elements which require a new module being added.

Could you share some linkt to the discussions. Just interested in. ;)

Reinstalling app again without backup functionality isn't a solution for me. I changed many things in options and you even can't even see what is the default is. Widgets, Quick Toggles ect. will be deleted, too.

Thanks for pointing this out. I have none of the listed things so I didn't notice.
But I think my statement that this error is not directly caused by the bubble-card project but it is an issue with how HA works is still correct so searching for alternative solution in other repos might help.

More like an issue with the HA companion app, but I'm still looking for a workaround.

Hey all wanted to share a few troubleshooting steps with you guys with regards to the android app.
The android app respects the caching level set by the HA frontend which actually uses very heavy caching techniques, you can't for example use the same file name for images. This we do not work around as there is a lot of frontend logic around loading things quickly.
The android app uses WebView and we have discovered that cache from WebView does not work the same as cache from Chrome on Android installed on the same device. Clearing cache for the app is not enough due to the service worker not being cleared out. Clearing data seem to be the only way to clear out all WebView cached data. Even using Webviews own clear cache methods does not clear out the service worker, its a known issue with webview IIRC. Important to note that if you decided to uninstall and reinstall the app that means you have potentially restored the cached data that we want to avoid which is why you should only need to clear data.
Now in terms of really troubleshooting the issue make sure to look at things using Chrome Remote debugging. In the app first enable remote debugging.
Settings > Companion app > Troubleshooting > WebView Remote debugging
From there connect to Chrome and you can inspect elements and service workers just like you can on the desktop
https://developer.chrome.com/docs/devtools/remote-debugging/
hope this is helpful

Same issue here.  Works fine on desktop Chrome, but the issue persists on the companion app as well as Fully Kiosk Browser tablets.  I did see this issue before with Mushroom card and WebView, which was resolved by the developer.  I'll dig around to see what the fix was.

I had to change the path to the following: /config/www/community/Bubble-Card/bubble-pop-up.js

Workaround for reloading the App-Cache: In your HA-App, go to HACS and install any lovelace-card you want. After installation say yes on reload cache. Uninstall the new installed card. This way, bubble-cards started working on my android app.

Thanks, this worked for me

Hi! I apologize for the delay, but I have finally corrected (🤞) the issue in the new version. From now on, bubble-pop-up.js will automatically install as a frontend resource. This means that there is no longer a need to modify the configuration for it to work ‘out of the box’.
It would be really helpful if you could try downloading Bubble Card again, this time selecting ‘main’ as the version to access v1.5.1.
For those who prefer to install it as a module, this remains the best method and it significantly improves the initialization of the pop-up when the page is loading. You can proceed as before by adding bubble-pop-up.js to your configuration.yaml, like this:
frontend:
  extra_module_url:
    - /hacsfiles/lovelace-card-mod/bubble-pop-up.js

After restarting Home Assistant, you can then incorporate the following code into any Bubble Card of your choice (it is sufficient to add it to just one card):
type: custom:bubble-card
card_type: button
entity: your.entity
module_installed: true

You can now refresh your page or restart your HA Companion App, and the cache will automatically update.
I’m really looking forward for your feedback (as always)!

I downloaded main version using hacs. Deleted extra module in frontend section and cleaned it in my resource section.
This doesn't work. Maybe there is some misunderstanding on my side.
Do I need to add this button card since I only use your popup functionality.

Add the extra module back, reboot HA, then you can add this card with module_installed: true on your dashboard, then refresh all your browsers / device then you can remove it if you want.
Try also to clear your cache if it's still not working.

Still no success. Have to stay with frontend resource.

Just a question, have you tried module_installed: true from the local page of HA (http) or from the distant page (https)? Because it seems that the cache is not cleared correctly in https.

Yes, Https only. I also use self signed certificates in my LAN.

It's probably why you have this issue, your local instance should be http. But can you also try to add ?v=1.5.1 at the end of this line then reboot? It will maybe try to catch the new version. If not... well I don't know 😅
frontend:
  extra_module_url:
    - /hacsfiles/lovelace-card-mod/bubble-pop-up.js?v=1.5.1

Works now here, too. BUT I had to modify the path according to my setup (docker on Synology NAS), so instead of

/hacsfiles/lovelace-card-mod/bubble-pop-up.js
-->
/www/community/Bubble-Card/lovelace-card-mod/bubble-pop-up.js

Which didn't make any difference earlier (tried it first), but now does. Thanks for the help and Bubble card, it's so cool!

I've edited that path, this was a terrible copy/paste 😅
And still I don't know why this is so inconsistent on some setups, it's working perfectly for me. But I don't give up.

Works now. I removed the line from configuration.yaml, restarted, redownloaded from HACS, added the line (unmodified) to configuration.yaml and restarted again. Don't really know what I did differently.

L4p3K's fix worked for my Fully Kiosk tablets on a restart of the Fully Kiosk app, Shift + F5 in Chrome got the required refresh done in web.

I'm also receiving this error, but only on mobile (HA Companion on Android). I tried L4p3K's fix, but it did not work for me.
The same dashboard works great in a desktop browser, it's only the mobile app.
I have the resource line in my configuration.yaml, and I can see in my browser's console that Bubble Card - Pop Up is loading.
I tried adding module_installed: true to one of my other bubble cards on the same dashboard.
I also delete the app's cache every time I make a change.

And it work when you reinstall 1.5.2? But my guess is that this is a cache issue.

Probably worth noting I had to clear all data and cache for the HA android app and totally re set it up to get bubble working on mobile.
Sent From Mobile

From: Cloos @.>
Sent: Thursday, November 30, 2023 10:58:07 AM
To: Clooos/Bubble-Card @.>
Cc: clutch70 @.>; Comment @.>
Subject: Re: [Clooos/Bubble-Card] custom element doesnt exist: bubble-pop-up (Issue #189)
And it work when you reinstall 1.5.2? But my guess is that this is a cache issue.
—
Reply to this email directly, view it on GitHubhttps://github.com/Clooos/Bubble-Card/issues/189#issuecomment-1834166239, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQGLOIU62CHCZGII6MNGUETYHC3J7AVCNFSM6AAAAAA7R7TU2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZUGE3DMMRTHE.
You are receiving this because you commented.Message ID: @.***>

Probably worth noting I had to clear all data and cache for the HA android app and totally re set it up to get bubble working on mobile. Sent From Mobile
…
________________________________ From: Cloos @.> Sent: Thursday, November 30, 2023 10:58:07 AM To: Clooos/Bubble-Card @.> Cc: clutch70 @.>; Comment @.> Subject: Re: [Clooos/Bubble-Card] custom element doesnt exist: bubble-pop-up (Issue #189) And it work when you reinstall 1.5.2? But my guess is that this is a cache issue. — Reply to this email directly, view it on GitHub<#189 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQGLOIU62CHCZGII6MNGUETYHC3J7AVCNFSM6AAAAAA7R7TU2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZUGE3DMMRTHE.  Thank you so much!

And it work when you reinstall 1.5.2? But my guess is that this is a cache issue.

Uninstalled the android app and set it again. You were right!

This is why I've changed everything in v1.5.2 and made the Optimized mode optional, it was a bit too complicated for some users to install it.
And I still don't have a better solution than what is already discussed here sadly 😅 I don't understand why it is so complicated to clear the cache on the companion app for some users, on my side it worked right after a reboot of HA.
But I still hope that I'm missing something obvious to automatize/document that.

This is why I've changed everything in v1.5.2 and made the Optimized mode optional, it was a bit too complicated for some users to install it.
And I still don't have a better solution than what is already discussed here sadly 😅 I don't understand why it is so complicated to clear the cache on the companion app for some users, on my side it worked right after a reboot of HA.
But I still hope that I'm missing something obvious to automatize/document that.

Never mind, your work is amazing, keep up the the effort!
Just to note for others, in my yaml configuration I used
frontend:
extra_module_url:
- /hacsfiles/Bubble-Card/bubble-pop-up.js?v=1.5.3
Guess that we have to change it we every update?
Anyway, je te remercie pour l' interet et ton aide!

Merciii! 🍻
I'm not even sure that modifying ?v=1.5.3 after every update really change something, I thought it would force HA to catch the new .js file after each reboot but I'm not even sure of that. If someone can confirm that this is really doing something, he would help me a lot!

Fwiw mine is working without the ?v tag, it did not seem that adding/removing this tag had any effect.
Brennan Custard
214-415-5068
Sent From Mobile

From: Cloos @.>
Sent: Thursday, November 30, 2023 1:58:12 PM
To: Clooos/Bubble-Card @.>
Cc: clutch70 @.>; Comment @.>
Subject: Re: [Clooos/Bubble-Card] custom element doesnt exist: bubble-pop-up (Issue #189)
Merciii! 🍻
I'm not even sure that modifying ?v=1.5.3 after every update really change something, I thought it would force HA to catch the new .js file after each reboot but I'm not even sure of that. If someone can confirm that this is really doing something, he would help me a lot!
—
Reply to this email directly, view it on GitHubhttps://github.com/Clooos/Bubble-Card/issues/189#issuecomment-1834456914, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AQGLOITDX7KRGTDHAML6XHLYHDQNJAVCNFSM6AAAAAA7R7TU2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZUGQ2TMOJRGQ.
You are receiving this because you commented.Message ID: @.***>

After your recommendation, I tried without it, too. Well, it seems redundant after all...

If you remove it right now it should not change anything indeed, but this can change something after an update, still not sure.

On my android it keeps showing this error. Even if K add it to resource, after I reboot the HA it resource is removed.
On desktop it works fine just with configuration.yaml extra_module line.

Revert to version 1.5.1, this one works without problems with add .js to resources.

Revert to version 1.5.1, this one works without problems with add .js to resources.

If more people can confirm this, I will probably change that in 1.6.0.

Revert to version 1.5.1, this one works without problems with add .js to resources.

If more people can confirm this, I will probably change that in 1.6.0.
I also had this issue in 1.5.3 but restarting the HA companion app multiple times fixed it definitely for me, it's a cache issue.

I think I have probably restarted the app up to 50 times when I gave up today and reverted back to 1.5.1. I had during these times re-added the resource in the dashboard panel in home assistant about 10 times, but it was removed on random occasions.  Now everything works as intended when downgrading :D

is issue in 1.5.3 but restarting the HA companion app multiple times fixed it definitely for me, it's a cache issue.

same here 1.5.1 with the resource added works

Revert to version 1.5.1, this one works without problems with add .js to resources.

If more people can confirm this, I will probably change that in 1.6.0.
I also had this issue in 1.5.3 but restarting the HA companion app multiple times fixed it definitely for me, it's a cache issue.

I think I have probably restarted the app up to 50 times when I gave up today and reverted back to 1.5.1. I had during these times re-added the resource in the dashboard panel in home assistant about 10 times, but it was removed on random occasions. Now everything works as intended when downgrading :D

Adding bubble-pop-up.js as a resource in the dashboard panel is similar to using it in regular mode in 1.5.3, there are no optimizations by adding it like that. You need to add it in your configuration.yaml to get the initialization optimization, this is explained here.
This is why it’s automatically removed from the dashboard resources in 1.5.3 if it detects an incorrect installation.

I've had this issue since today, downgraded to 1.5.1, upgraded to 1.6 and added the line in my conf.yaml but it still doesn't work on any of my Android devices, except for my desktop browser. What should i do?

On Android you can close the app then clear the app cache, then if it's still not working you can close then restart the app again.
On iOS you can go to your HA settings, then on the Companion app > Debug > Clear frontend cache (or something like that), then refresh the page or restart the app.

Thank you all for your feedback, I will release a new beta soon that should fixes that cache issue for good!
And Merry Christmas to everyone! 🍻


A Mod quality of life change :)

The first attempt at making the API handle a bot's roles upon accepting.

this actually broke the while site and we had to revert it so


ModularRocketSystemsLITE stuck in indexer

@techman83 no install issue that I see and I pushed https://github.com/KSP-CKAN/NetKAN/commit/ae89e756e684071aa88a2c16cbcb2a71d7883400 to make sure it wasn't a one-time deal.

Cache cleared https://github.com/KSP-CKAN/CKAN-meta/compare/7653897c8a54...583c6632c7e6


std.file: Fix building documentation on Windows

This fixes the error:
safe function 'std.file.timeLastModified' cannot call system function 'std.file.getTimesWin!(const(char)[]).getTimesWin'

Is this to fix the "git master is not buildable" error that's affecting all PRs?

No, that one seems to be caused by a local git repository corruption. Will look into that soon

Is this to fix the "git master is not buildable" error that's affecting all PRs?

Fixed for now, hopefully it won't recur

Changed to empty body

Auto-merge toggled on


Browser test

I know there are a few bugs, including:

[ ] logo stretched in IE

Tested OK in Edge

Logo was the big problem in IE11.


Matplotlib import problem with simple coregionalization notebook

In the notebook "A simple demonstration of coregionalization", Matplotlib is imported in a way that looks like it should work, but doesn't:
import matplotlib
plt = matplotlib.pyplot

In version 3.1.3 of Matplotlib, that second line, plt = matplotlib.pyplot, leads to an error with the message "AttributeError: module 'matplotlib' has no attribute 'pyplot'."
However, changing the import statement to the following (and of course, getting rid of the assignment to plt) does work:
import matplotlib.pyplot as plt

However, for the notebook in question, matplotlib.rcParams["figure.figsize"] = (12, 6) has to be changed to plt.rcParams["figure.figsize"] = (12, 6).
After the notebook is tweaked with the changes described above, it runs just fine.

Thanks for bringing this to our attention! Sounds like you found not just the bug, but already the solution - so I'd encourage you to simply make these changes in your own fork of GPflow, and then to open a pull request into the GPflow develop branch - it's quite simple (easier than writing up an issue report, I find...), happy to help you out if you want:)


[nemo-qml-plugin-email] Don't set URL in attachment list model if the file does not exist. Fixes JB#56042

… file does not exist.
@pvuorela, I'm trying to solve https://forum.sailfishos.org/t/email-attachment-opening-attachment-display-inode-error/4805/6
The reproducer is the following:

use POP
get an email with at least two attached files
tap on the first one : it is opened
tap on the second, a banner will complain about the impossibility to open inode mime type

and bug path is:

in attachmentlistmodel, after the first file has been copied from QMF internal storage to the file structure in Download, the QFileSystemWatcher callback line 298 in triggered. But for other attachment, the files have not been copied yet. So attachmentPath() is return an empty string,
then onAttachmentPathChanged() is creating an URL with just the directory.

I think the onAttachmentPathChanged() should not mangle the path. It is called from the email agent that is getting the path from QMF only and thus guaranteed to be valid. The fact that we are using this callback by hand in the file watcher with a wrong path is the problem.
The PR here is fixing the problem, but I would consider two better possibilities for medium term :

get the filename for a part directly from QMF instead of mimicking its behaviour with .remove('/') statements,
remove the directory watcher completely, since the email agent will signal anyway when a file has been downloaded and copied to a valid URL.

Pekka is correct: this change was intended to catch nefarious attachment names coming from QMF (sourcePart.displayName() isn't safe as it comes from the email). The key aim is to ensure that whatever comes from QMF, the file is never saved outside the Downloads folder. Making this reversion at this point in time would be problematic unfortunately.
This should also be fixed in QMF (i.e. to prevent it passing nefarious paths), but for various reasons (defence in depth, QMF's plugin structure), I'd argue it still makes sense to sanitise the path here as well.
Could we use some mangling like this instead, to catch the empty case?
QString mangled = !path.isEmpty() ? downloads + QDir::separator() + QUrl(path).fileName() : QString();

Just to add, I just realised that mangling has to match up with the mangling in QMF, which won't be the case for my suggestion. But hopefully the idea is clear.

I think that in QMF, all '/' characters are removed from the path, see qmailmessage.cpp#6349. Thus, displayName, even if malicious could not lead to a path outside the intented directory for saving. That's from reading the code, I didn't test to create such a situation, so I may be wrong.
I'm sorry, but I still don't see how the part I reverted is correcting a bug. The only places this function is called from are:

the callbacks from the agent signaling, thus coming with a path that has been sanitized by QMF (assuming that the sanitizing there is strong enough),
a local callback triggered by directory changes where the file is supposed to be saved, and in this callback, the path is forged by ::attachmentUrl() that is also removing '/' characters like in QMF.

So as far as I understand it, all code path arriving to the reverted code cannot contain something like "../../".
Maybe I'm missing something. Anyway, I can amend the PR here not to touch this part, as I mentioned on IRC with @pvuorela, the only relevant part if the added if (!path.isEmpty()) in the directory callback.

I'm sorry, but I still don't see how the part I reverted is correcting a bug

Yea the question being whether ::attachmentUrl() part is enough.

Perhaps I'm misreading the code, but when the attachment is saved, EmailAgent::saveAttachmentToDownloads() will trigger a call to AttachmentListModel::onAttachmentPathChanged() with path set to attachmentDownloadFolder + "/" + attachmentPart.displayName().

Thus, displayName, even if malicious could not lead to a path outside the intented directory for saving.

That's correct, but it can lead to a path outside the intended directory for reading, which is also a security problem.

thus coming with a path that has been sanitized by QMF

True, but this is relying on an undocumented assumption about how the QMF library behaves, so there's also an element of defence in depth here too.

trigger a call to AttachmentListModel::onAttachmentPathChanged() with path set to attachmentDownloadFolder + "/" + attachmentPart.displayName().

Ah, I see, it's the code path where file exist in emailagent that is problematic, on line 1452. Well I may argue that it's not really an issue since in that case, nothing is written since the file is assumed to exists already. So there is no security issue of overwriting a system file or something. But the display attachment will be rubbish. Thank you for pointing my error.

True, but this is relying on an undocumented assumption about how the QMF library behaves,

This is a very valid concern in my opinion. The solution would be to expose the naming scheme from QMF. So let's keep this for another PR.
I'm amending the PR here just to keep the added if (!path.isEmpty()).

But the display attachment will be rubbish.

Unfortunately it could be worse than rubbish: it might be a privileged file that the user could then be tricked into forwarding. It's not the most likely scenario, but still one I think better not to expose.
It's a bit frustrating, I agree, and I also agree with your original point that it would be better to get the file name directly from QMF, rather than trying to reconstruct it.


Doesn't build on Ubuntu 18.04

cmake version: 3.10.2
gcc version: 7.5.0

Hello @cscrimge , can you check new release on Ubuntu 18.04

Thanks! It builds successfully now.


Grok New Version of OpenStack

https://iujetstream.atlassian.net/wiki/display/JWT/After+API+access+has+been+granted
Assess impact of OpenStack Version upgrade.
Make changes to OpenStack related script, where necessary.

closed by #79


SingleThreadedEventLoop: add read-only iterator of channels

Motivation:
For servers there is a need for per eventloop "watchdog" timer that ticks for all eventloop channels. For moderately high number of connections, It is cheaper cpu-wise than per channel scheduling.
Now this requires additional data structure to hold active channels - which is wasteful as It duplicates the one from SingleThreadedEventLoop (its practically useful impls - epoll, kqueue, nio).
Modification:
Add read-only iterator of eventloop channels exposed on SingleThreadedEventLoop as
Iterator<Channel> registeredChannelsIterator().
Result:
SingleThreadedEventLoop channels may be iterated without additional redundant data structures.
Fixes #12595.

We also have AbstractSingleThreadEventLoopTest which covers epoll and kqueue. I don't know why nio hasn't been migrated to using that.

I don't know why nio hasn't been migrated to using that.
Me neither. Regardless, I updated & moved tests to AbstractSingleThreadEventLoopTest so they are run for other related eventloop impls. Hope that change makes sense.

Thanks!

@normanmaurer any ETA for 4.1.80 release? Looks like well overdue for 1 month release cadence.

sometime this week


Tweak CI Image

Overview

Remove non-root user from CI image.
Pin virtualenv for tox to detect Python 2.7.

Codecov Report

Merging #839 (6692d12) into main (4da4612) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #839   +/-   ##
=======================================
  Coverage   74.75%   74.75%
=======================================
  Files         198      198
  Lines       19324    19324
  Branches     3307     3307
=======================================
  Hits        14446    14446
  Misses       3999     3999
  Partials      879      879

see 2 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Rethink earned stars calculation

After #4 we might want to rethink how many stars a user gets for each of their contributions. It should be something like
earned stars = share * func(total repo stars)

share is what portion (0-100%) of the project you have built, or what portion of the total effort has been done by you (more about this below).
func() can be:

id(): the idea here is that stars are github's currency and if a project has earned 1000 stars and you've made 20% of the effort, you should get 20% of that money, i.e. 200 stars. @AurelienLourot has a strong preference for this.
logish(): a function that behaves like log() in a sense that the higher the input the more difficult it is to increase the output. But it can still be very different from log(). @brillout has a slight preference for this.

The difficulty lies in determining share and can be done as:

percentage of total commits, or percentage of total bytes, etc. @AurelienLourot has a slight preference for this
depending on your contributor level: @brillout has a strong preference for this

occasional contributor: share could be about 1%
collaborator: share could be about 20%
co-maintainer: share would be 100%

The contributor level could be determined by a combination of 2 techniques:

heuristics based on commits (size and amount) and code (and other?)
declared in the repo-settings

Note that with the contributor level system, all shares can add up to more than 100%.

@brillout we can close this one now after https://github.com/ghuser-io/ghuser.io/pull/158, right?


Changes to sites folders and dat.json handling

After some QA, we've hit on some improvements that this PR should make:

[x] Save all sites to a ~/Sites/{title} folder by default, rather than always prompting the user where to save
[x] Show the site's folder more prominently in the library, and give a more prominent "Open folder" button/link
[x] Include a tool in the library to change the folder after the initial creation/save
[x] Don't allow special OS folders to be used as the location of sites (eg ~/Documents, ~/Music, etc)
[x] Allow the sites folder to be overridden by an environment variable
[x] Don't read/write the dat.json in the staging; instead, just read/write it directly to the archive
[x] Update tests
[x] Restore old create/fork tests, now that a file-picker modal isnt required (yay!)

[ ] Automatically publish changes when forking
[ ] Change folder should open sites folder
[ ] Empty state for file listing


Search Lockup

I am currently running wpdir with the -fresh flag, which queues every theme/plugin for update. It is midway through (about 30,000 done) and after a search was started it has locked up....
It seems that a search started while updates are occurring can potentially result in lockup. The search is stuck on In Progress not able to finish, the Repos page cannot load and the updates have stopped too.
My first instinct is that it is possible for updates and searches to compete for the same locks (whether repo, extension or both I am not yet certain), resulting in neither being able to progress.
I am looking into this now and hope to have a fix shortly, as it currently breaks proper functioning of the site.

I believe this has been resolved now. I stopped the repo.Summary() func from looping through every plugin/theme with locks, which would clash with searches. I also added a repo.RLock() while searching, which should prevent updates during searches.
I tested by running wpdir with the -fresh flag to get lots of updates queued and then queued 5 searches. All the searches completed without problem. I will consider this fixed for now.


Z gate error

[Enter feedback here]
In this page you have in the last formula Z^(f(0)−f(1)) when I think this should be Z^(f(1)−f(0)).

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

ID: 4a4959bf-caf5-9030-73a2-3910b8a0788e
Version Independent ID: 3a6ff78b-19a7-f824-5783-8015c047b6bc
Content: Quantum oracles - Microsoft Quantum
Content Source: articles/concepts/oracles.md
Product: quantum
GitHub Login: @cgranade
Microsoft Alias: chgranad

I believe it should work either way, since 𝑍⁻¹ = 𝑍⁺ = 𝑍 (that is, Adjoint Z is the same operation as Z). Nonetheless, we definitely appreciate the feedback as to readability of the article. I'll go on and flag this to the docs team for awareness. Thanks for raising the issue!

I'll keep this issue open for our new tech writers joining this week  @cgranade ;)

Thanks for the explanation @cgranade !

I agree to @cgranade. Notice that f(x) is a Boolean function, so $f(0)-f(1) \in {0,1,-1}$. Since Pauli Z is an orthogonal matrix  $Z^(-1) = Z^(T) = Z$ in this case it works either way.


[TapSwap] There is no access_token in response

Since today I have the error below on TapSwap python app.py
INFO     | 2024-06-20 10:57:46 | TapSwap | User: 1 | [~] ByPass CHQ:  False
WARNING  | 2024-06-20 10:57:46 | TapSwap | User: 1 | [!] There is no access_token in response
WARNING  | 2024-06-20 10:57:50 | TapSwap | User: 1 | [!] There is no access_token in response
WARNING  | 2024-06-20 10:57:53 | TapSwap | User: 1 | [!] There is no access_token in response
WARNING  | 2024-06-20 10:57:56 | TapSwap | User: 1 | [!] There is no access_token in response
WARNING  | 2024-06-20 10:57:59 | TapSwap | User: 1 | [!] There is no access_token in response
WARNING  | 2024-06-20 10:58:00 | mainapp | [!] Error in click all: 'TapSwap' object has no attribute '_time_to_recharge'

Same

yes same

same

same

Same here

@Poryaei  heyy  hello

Hi
Wait pls

Cache-Id

Say my name (Lamo)

Update tapswap.py
https://github.com/Poryaei/All-In-One/blob/main/scripts/tapswap.py

There shouldn't be any problem anymore.

It's working, thx you 🌮


Cant dump details in array

PHP 7.3.4 (cli)
<?
$t=array('a','b','c');
?>

php -dvld.active=1 -dvld.execute=0 -r "$t=array('a','b','c');"
C:\Users\Administrator>php -dvld.active=1 -dvld.execute=0 -r "$t=array('a','b','c');"
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       Command line code
function name:  (null)
number of ops:  2
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ASSIGN                                                   !0, <array>
          1      > RETURN                                                   null

branch: #  0; line:     1-    1; sop:     0; eop:     1; out0:  -2
path #1: 0,

There is just have "ASSIGN" opcode and "",and have no details about array.

PHP's parser creates an internal AST structure here for static arrays. I don't really want to show all the array values, because specifically for very large arrays, it won't (easily) fit on one line.


How to save params so that I can decode the file in another projects?

How to save params so that I can decode the file in another projects?
I see the important thing that can decode and encode file is the params, so how to save it so that I can encode file in one projects and decode it in another?
Thanks.

Could you be more specific about the parameters you wish to save for encryption/decryption across projects? What kind of parameters would you like to save?

@kulkarniamit Let me put is this way. I want encrypr one file using the password, I sent the encrypted file to my friends and he has the password to decrypt it.
So how to save the password, which is the params *key, *iv.
 typedef struct _cipher_params_t{
    unsigned char *key;
    unsigned char *iv;
    unsigned int encrypt;
    const EVP_CIPHER *cipher_type;
}cipher_params_t;

The program is primarily intended to demonstrate the use of EVP functions and hence uses a randomly generated key and IV.
In order to use the program for your use case, I think you should use a password based derivation routine like PKCS5_PBKDF2_HMAC. Depending on the OpenSSL version, you can choose from these EVP Key Derivation functions. Your program can take this passphrase as a command line argument. The program needs to be modified to accept a passphrase and an argument to encrypt/decrypt using the passphrase.
One way of sharing your passphrase is by using public key cryptography. Your passphrase can be used to encrypt the file and your passphrase can be encrypted using your friend's public key. If your encrypted passphrase and encrypted file are shared, your friend can use his/her corresponding private key to decrypt the passphrase and use it as input to the program and decrypt the file.

Friend creates a public-private key pair using ssh-keygen

$ ssh-keygen -m pem -f /tmp/id_rsa -t rsa -N ""
Generating public/private rsa key pair.
Your identification has been saved in /tmp/id_rsa.
Your public key has been saved in /tmp/id_rsa.pub.
The key fingerprint is:
...

Friend exports public key to pkcs8 format (required by openssl)

$ ssh-keygen -e -f /tmp/id_rsa.pub -m pkcs8 > /tmp/id_rsa.pub.pkcs8

/tmp/id_rsa.pub.pkcs8 is shared with you
Encrypt the file using a passphrase and encrypt the passphrase using friend's public key

$ ./program --encrypt -p passphrase.txt -i <input-file> -o <encrypted-file>
$ openssl rsautl -encrypt -pubin -inkey /tmp/id_rsa.pub.pkcs8 -in passphrase.txt -out encrypted-passphrase

Share encrypted-passphrase and <encrypted-file> with friend
Friend will use private key to decrypt the encrypted passphrase and use the passphrase to decrypt the file

$ openssl rsautl -decrypt -ssl -inkey /tmp/id_rsa -in encrypted-passphrase -out decrypted-passphrase -pkcs

$ ./program --decrypt -p decrypted-passphrase -i <encrypted-file> -o <decrypted-file>

@kulkarniamit Thanks. It really helps.
Best,
Edward.


Make upload ui errors look good

(extracted from #22 - this deals solely with the UI/looks)
Package version (if known): 0.12.X
Describe the bug

[ ] AccordionField's warning sign is missing left padding. It should be inside the blue rectangle, not on the edge.
[x] Error texts should be in red

We don't have the warning sign on the accordion anymore (as far as I can tell). So we can close this.


delete deprecated babel option

delete deprecated babel option if we are using babel 6, so not error will be thrown by babel anymore
https://github.com/stealjs/steal/issues/772
@matthewp i think we can merge that without release steal 1.0. steal 0.16 will be work with that PR also

Sounds good!


Not possible to set temperature

Hi,
I used a Slider in my Sitemap to change the tempature, but it's not working. The temperature is shown as Text.
Any Idea?

The temperature item can be used with Number items which return float values, like temperature sensors: Number Temp_Outside "Outside [%.1f °C]"  <temperature> (Weather) { onewire="deviceId=xxxx;propertyName=temperature" }
The homekit sitemap should export them as Text items: Text item=Temp_Outside label="Outside".
The unit is always Celsius.

this doesn't really explain how to configure the the homekit bridge to be able to set a temperature. is it possible?

Actually you are right. Its not possible right now. The TextItems taken from the sitemap are read only at the moment. Are you trying to control a thermostat?

Yes I am. I have been looking into this today but my biggest hurdle is that I would need to translate multiple openHAB sitemap elements (currentTemperature, targetTemperature, currentHumidity; i.e. switch, text, setpoint) into a single homekit accessory.
right now i'm trying to understand your code to try and add something that would make this possible (probably using a group element in openHAB), but I'm not super familiar with nodeJS.

I started creating a Thermostat subtype, but I don't yet fully understand how the AccessoryProvider and the element factory work.
https://github.com/marconett/OpenHAB-HomeKit-Bridge/blob/c7a3f810f9be03a9e11edbabae840cf818d5a918/lib/subtypes/ThermostatItem.js
Do you mind opening this issue again?

Not at all. This plays into the same direction as #29.

your thermostat subtype looks okay for the first draft. the interfacing to openhab now needs to connect to the different urls of the groups items. another thing will be to recognise/detect the given group as a thermostat. This may be done using special strings or by analysing the grouped item types.

see my commits here: https://github.com/marconett/OpenHAB-HomeKit-Bridge/commits/master
to properly implement group support (evaluation of all elements inside of every group), i would need to change something more fundamental. the way it currently works, only a single openhab element can be a single accessory.
The elements inside a group are just elements from ElementType.js. but because of the way those are instantiated right now (openHABBridge.js -> AccessoryProvider.js -> ElementType.js -> element), I can't just let my group element instantiated, for example, two unique SwitchItems. The AccessoryProvider.js would need to do that. I'm not quite sure how to solve this in the most elegant way.
So for now, i'm sticking with the "if there's a group, then it's a thermostat"-approach.
still got to solve problems with the update listener, as it's no use to put an it onto a group.

Sorry, I already gave up in this.. I implemented my own: https://github.com/marconett/openHAB-433-HomeKit-Bridge
I'm Not working on this anymore. You might want to close the issue again.

I will simplement the basics in the next weeks and will ping you for input then. good luck with the go implementation!

sure, i'll test it with my thermostat if wou want


Adds transactions from reverted blocks to mempool

Motivation
This PR adds the transactions from the blocks reverted by revert_to_block_height to the transaction memory pool.
Test Plan
A test (test_mempool_transactions_from_removed_block) has been added to ensure that this feature is working correctly.

Admin: Please respond with "build this" in order to build this PR.

Closing, as the applicable features no longer exist.


Base ga patch

Change the  structure of BaseGa to align with removal of fitness cache mechanism.
#22
Remove random_device instance from functions. It's now a class member instead.
#11
Fix naming convention in ga module
Reduce debug message and add a training log export function.
Backup a trained model, currently in root directory.
[TODO]: Add a timer to record total selection time.

Ready for merge


Add command to check if the lock file is up to date with the project metadata

e.g. as in poetry check --lock (not yet sure why they deprecated poetry lock --check)

Some discussion about the poetry lock --check change at https://github.com/python-poetry/poetry/pull/8015 and https://github.com/python-poetry/poetry/issues/6756
We ought to have a top-level uv check command eventually too but should it do this?

hi
I have the same need here which basically consist to assert that the current uv.lock respects the project metadata without forcing to update the uv.lock file is new version of the dependencies has been released. It should block if it is missing dependencies or it there are none necessary dependencies.
Let me give a concret example of where it could help to assert that the project metadata match to uv.lock file.
main project
pyproject.toml (example) dependencies = [ "shared_lib", # this is a local lib - monorepo project "pydantic>=2.4.0,<3.0.0" # it could be any lib ]
uv.lock is for example locked to pydantic in version 2.5.0
shared lib (local project)
pyproject.toml dependencies = []
someone on the project add a dependencies to the shared_lib, let's foo-lib but forget to update the uv.lock file of the main project. In the same time, a new version of pydantic has been released (let's say 2.6.0).
The fact that uv.lock does not integrate foo-lib is blocking and the main project will be broken. The fact that a new pydantic version has been released is not a blocking issue. By the way, there could be a lot of other dependencies that have been updated and it could be hard to upgrade all these libraries at the same time... we are a bit force to handle all update currently withe uv sync command.
In my mind, it would be therefore great to have such command that only check that the project metadata are respected by the uv.lock file without forcing to update all other librairies. The purpose of the command will consist to check that it is no missing dependencies or that there is no necessary dependencies (removal of dep in the shared_lib for example)
Right now, the idea could be to use this command :
uv sync --frozen --locked
It would consist to assert without trying to update the uv.lock file, but this is not supported.

It's a bit silly, but uv lock --locked does that.

I didn't saw initially that uv lock does not upgrade the dependencies by default.
So, this usage of the command is a good solution to check that there is no "breaking" changes in the dep (missing dep for example...) and it does not try to upgrade the existing dep.

Yeah the locked flag is the intended solution here.


Click + Drag bug

Selection box created through click and drag is off set and the off set is directly prepositional to how far you have scrolled over on your map. So if you haven't moved the scroll bar to the right at all then your selection is in point, scrolling to the far right creates an huge offset dis-allowing you to select any systems.

A screen shot of the problem

This is not fixed in #544. The bug still happens on the head of dev right now.


feature enhancement : message for no movies available for particular city

There are cities where not a single movie is available.
For that case :
bookmyshow movies kolkata returns a empty table rather could have a good message like "Sorry kolkata is running out of movies rightnow 😞 "

@rishavanand can you look into this once

@rohanprasadofficial This is another enhancement that can be added. Thanks!


Improve locking granularity

Fate transactions like merges and imports lock a particular table.  This makes it difficult to run several such operations concurrently.  If the locking mechanism were more granular, perhaps over ranges of tablets, it would be possible to make progress with more operations at once and improve performance.

The new Bulk Import for 2.0 is more granular.  If you use something like map reduce to inspect the files to create the load plan before performing the bulk import, then that should greatly reduce time spent holding a table lock.  You can also bulk import to a table offline.

That is perhaps true for the imports.  However the merge operation could still use some work in this regard, at least in the 1.9.x codebase

That is perhaps true for the imports. However the merge operation could still use some work in this regard, at least in the 1.9.x codebase

Agreed.  I don't know anything about merges so I couldn't even comment on them haha.

premise: full table locks would not be an issue as long as they are very short (sub-second).
Hence if we were to solve https://issues.apache.org/jira/browse/ACCUMULO-3235, then merging would not require long locks.  Basically if we keep track of the valid range within an rfile for every entry in the metadata, then we can avoid having to pre-chop the files when merging and avoid long table locks.

more discussion / related ticket here: https://github.com/apache/accumulo/issues/1050


vundefined on theme and plugin updatedialog

yesterday i upgraded grav from 1.6.0-rc.3 to 1.6.0-rc.4
today i updated my Quark to v2.0.0-rc.2 and all test release plugins (Admin Panel, Email, Form and Login)
The Update dialog showerd:
upgrading Quark from vundefined to vundefined,
upgrading AdminPanel from vundefined to vundefined,
...
no isues after the upgrade, just the dialog/info seems broken

This was actually fixed in rc.4 admin, so it should work fine going to the next update. Purely visual but disconcerting I know.