Ethanol amount correlates linearly with heating time -> auto heating time determination?

This is already implemented in https://github.com/CederGroupHub/alab_control/blob/e48ff2169b6043e4d62d0e02128360a929f7e5ca/alab_control/labman/components.py#L55. We can update the heating time when you have an estimate.

Implemented. However, might be better if there is a lower bound for minimum heating time if it is not explicitly defined.


Unit-test for RAP Event handler class

Dear colleagues,
I am working in Concur integration team in same company.
I had to implement custom event receiver, but as you know, it is not possible to release my task because unit test coverage is too low.
Could you please enhance the cheat-sheet for it as well?

More details:
when in unit-test class this instance is generated:
f_cut = NEW lcl_abap_behv_event_handler(  ).
then there is an error:
Instances of the abstract class "LCL_ABAP_BEHV_EVENT_HANDLER" cannot be generated.

Refer to the documentation for more information:

https://help.sap.com/docs/abap-cloud/abap-rap/agency-scenario-refining-test-class-structure
CREATE OBJECT, FOR TESTING


When TLS is not enabled, library tying to connect to local host

I'm not sure whether this is a bug or not. I have spun up a docker Redis cluster (No TLS) in my local Docker environment. I'm trying to connect to the cluster with the following configurations in my Node application (another container). But, what I can see in my node application logs is,
"Redis Cluster Error Error: connect ECONNREFUSED <IP_ADDRESS>:6379".
It seems this library is trying to connect to the localhost. But I have tried with a different library and it worked for the Redis Clustor.
Here are my configs.
const cluster = createCluster({
            rootNodes: [
                { url: 'redis://<IP_ADDRESS>:6379' },
                { url: 'redis://<IP_ADDRESS>:6379' },
                { url: 'redis://<IP_ADDRESS>:6379' }
            ],
            nodeAddressMap: {
                'redis://<IP_ADDRESS>:6379': { host: 'redis_1', port: 6379 },
                'redis://<IP_ADDRESS>:6379': { host: 'redis_2', port: 6379 },
                'redis://<IP_ADDRESS>:6379': { host: 'redis_3', port: 6379 }
            },
            defaults: {
                socket: {
                    host: 'redis',
                    connectTimeout: 5000,
                    tls: false
                },
                password: ''
            },
            useReplicas: true
        });

Am I missing any config here? Why does it try to connect to localhost?

Remove the "redis://" from nodeAddressMap keys:
const cluster = createCluster({
  rootNodes: [
    { url: 'redis://<IP_ADDRESS>:6379' },
    { url: 'redis://<IP_ADDRESS>:6379' },
    { url: 'redis://<IP_ADDRESS>:6379' }
  ],
  nodeAddressMap: {
    '<IP_ADDRESS>:6379': { host: 'redis_1', port: 6379 },
    '<IP_ADDRESS>:6379': { host: 'redis_2', port: 6379 },
    '<IP_ADDRESS>:6379': { host: 'redis_3', port: 6379 }
  },
  defaults: {
    socket: {
      host: 'redis',
      connectTimeout: 5000,
      tls: false
    },
    password: ''
  },
  useReplicas: true
});

Thank you for the quick response.
I tried your solution. But I got the same error message. Then I tried the following solution and it gives
"Invalid URL: <IP_ADDRESS>" error message. Any idea?
const cluster = createCluster({
            rootNodes: [
                { url: '<IP_ADDRESS>' },
                { url: '<IP_ADDRESS>' },
                { url: '<IP_ADDRESS>' }
            ],
            nodeAddressMap: {
                '<IP_ADDRESS>:6379': { host: 'redis_1', port: 6379 },
                '<IP_ADDRESS>:6379': { host: 'redis_2', port: 6379 },
                '<IP_ADDRESS>:6379': { host: 'redis_3', port: 6379 }
            },
            defaults: {
                socket: {
                    host: 'redis',
                    connectTimeout: 5000,
                    tls: false
                },
                password: ''
            },
            useReplicas: true
        });

And I checked the network info of "<IP_ADDRESS>" container. This is how it looks like.
"Networks": {
    "wel-sdl-platform_app-network": {
        "IPAMConfig": {
            "IPv4Address": "<IP_ADDRESS>"
        },
        "Links": null,
        "Aliases": [
            "redis_1",
            "redis_1",
            "9a19f7111547"
        ],
        "NetworkID": "dc3ee2556a94db2031385cc01f8fe1f17c549c6331d26da7cded6f678a4091fa",
        "EndpointID": "58106bd4d1265f4e34fabae8703f49b41276dc54cacc55b558cd2b75404e5e03",
        "Gateway": "<IP_ADDRESS>",
        "IPAddress": "<IP_ADDRESS>",
        "IPPrefixLen": 16,
        "IPv6Gateway": "",
        "GlobalIPv6Address": "",
        "GlobalIPv6PrefixLen": 0,
        "MacAddress": "02:42:ad:12:00:02",
        "DriverOpts": null
    }
}

@leibale
I tried this too ... But it gives "Connection timeout app | at TLSSocket" even I have turned off TLS in configs.
Redis Cluster Error ConnectionTimeoutError: Connection timeout
app |  at TLSSocket. (/home/node/app/node_modules/@node-redis/client/dist/lib/client/socket.js:169:124)
const cluster = createCluster({
    rootNodes: [
        { url: 'rediss://<IP_ADDRESS>:6379' },
        { url: 'rediss://<IP_ADDRESS>:6379' },
        { url: 'rediss://<IP_ADDRESS>:6379' }
    ],
    nodeAddressMap: {
        '<IP_ADDRESS>:6379': { host: 'redis_1', port: 6379 },
        '<IP_ADDRESS>:6379': { host: 'redis_2', port: 6379 },
        '<IP_ADDRESS>:6379': { host: 'redis_3', port: 6379 }
    },
    defaults: {
        socket: {
            host: 'redis',
            connectTimeout: 5000,
            tls: false
        },
        password: ''
    },
    useReplicas: true
});

@tudugampala please run CLUSTER NODES using redis-cli and share the reply

@leibale  I will let you know the result. Also, I want to mention that the Redis-commander UI is being run as a separate container and it is also able to connect to the cluster. As I mentioned I was able to connect to the cluster with the library that uses redis-commander UI.


Feedback on subdomain for ucsb.edu webguide

On June 01, 2015 the WSG received permission from UCSB NOC to place the WSG webguide within a newly created subdomain of ucsb.edu
In my communications outlining the request to the UCSB Hostmaster I requested:

The ucsb web standards group would like to request that the existing UCSB webguide URL at:
http://www.ucsb.edu/webguide/
Be given a 3rd level domain name such as webguide.ucsb.edu whose content is hosted via Github.

I am opening up a small discussion to those WSG attendees that are using Github currently to offer feedback on what they think the domain name should be. Is everyone ok with a name such as webguide.ucsb.edu ?
The approval message read (redacting minor details):

While this is quite unusual in that it does not adhere to the org chart
there's no doubt you've been working -- with James, of course -- to
create a valuable community around web development and associated best
practices, so we'll make this happen.  This request is approved; please
continue to coordinate with hostmaste regarding appropriate DNS configuration.

Is "webguide" a clear enough name? Is there perhaps something more concrete we can use as the site name. If I google webguide I guess I feel it's a little unclear what kind of site this is:
http://lmgtfy.com/?q=webguide
For example Stanford has Identity.stanford.edu and related subpages:
https://identity.stanford.edu/web-toolkit/
Thoughts? Feedback? Both are appreciated! I'll be sending an email next week on DNS and subdomain name choice. I dont want to raise this at a meeting as an order of expediancy and not have it get lost or buried by NOC.

I personally like "webguide": "Web Standards Guide" and the shortened, "Web Guide," have been familiar, long-standing terms used on campus (IMO).
I think it also has a slight technical bent, which I think is important for the future for the Web Guide: Public Affairs is better equipped to deal with issues of "Identity" and "Brand," whereas we're better equipped to advise on technical matters.

I too like webguide.ucsb.edu

I think webguide.ucsb.edu is the right choice. I think it is generic enough and specific enough.

All right, I'm going to call this a consesus around webguide.ucsb.edu and will be requesting that subdomain. I'll be configuring the repositories to work with that CNAME. So for now I will lock this issue  until either technical difficulties block this subdomain from occuring, or the matter is resolved as webguide.ucsb.edu.

On June 17, 2015 the UCSB Hostmaster made webguide.ucsb.edu and www.webguide.ucsb.edu live to the public.
Now we just need to deal with redirecting the old site traffic to the new URL.


Create account

Once we merge my next PRs we will need to have Christina pull from staging and accept all incoming, commit, and push before we merge this so that we have no conflicts.


incorrect module name hangs request (case sensitive error)

app\ctl.js
components\page\controller.js
define(['l!app/Ctl']) causes the request to hang and server becomes unresponsive.

Fixed in v2.x.x-alpha.


is it possible to use Caishen components separately

I have different design from what Caishen provide right now and I wanna check if I can use the textFields separately and take advantage of the current component because it provides complete solution regarding the validation, support different card types... etc
Thank you!

Hey!
Thank you for the issue! Right now, some of the properties to make this work are marked as internal. I created a PR ( #70 ) to change these and added a very basic example to the Readme to show how this can be done.
Please let me know if the readme is descriptive enough or if you are missing any details in it!
Thanks,
Daniel

@DannyVancura hey! any updates? check my comment on PR #70.


Reset all SSO config and set new SSO url

Hello,
I try, with no success, to change my SSO information : we restructure all our organizations schema and, after that, our SSO url has changed (not in same account).
I try to login into new URL but I have this error :
No Identity Center instance matched https://d-aaaaaa.awsapps.com/start[None] from https://d-bbbbbb.awsapps.com/start

I try to change the global configuration with :
aws-sso-util configure populate --existing-config-action overwrite -u https://d-aaaaaa.awsapps.com/start --region eu-west-1

But I have the same error.
Have you a function like reset to reset all configuration and start from zero ?

Hi @throrin19. I don't know any any reset function.
aws-sso-util writes to the standard AWS CLI config file.
By default it is located in your home folder at .aws/config.
If it's not there then check the AWS_CONFIG_FILE environment variable. You can set that to override the location.
If you have that file, and it still refers to the old instance, then make a backup copy of the file and then delete the original.
Then run the configure populate command again. It should now work as you expect.

I found how to do this :
aws-sso-util configure populate --existing-config-action overwrite -u https://new_id.awsapps.com/start --region eu-west-1 --sso-region eu-west-1

That command override latest known sso url and you can connect again. You don't need to remove .aws/config with it, the command override all config with new login informations

Thanks for coming back with your solution. It's neater than my suggestion.


Add phpunit to dev depencies

Would be useful to add phpunit to the project's dev dependencies

I'm not against the idea, but if you do that you have to use this PHPUnit for testing on Travis as well.

Thank you @andrewjt71


Add acr tasks (build) and scopemap specs to latest (package-2019-12-preview) package tag

Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[ ] I have reviewed the documentation for the workflow.
[ ] Validation tools were run on swagger spec(s) and have all been fixed in this PR.
[ ] The OpenAPI Hub was used for checking validation status and next steps.

ARM API Review Checklist

[ ] Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.
adding/removing APIs.
adding/removing properties.
adding/removing API-version.
adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

[ ] If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
Please follow the link to find more details on API review process.

/azp run automation - sdk

Can one of the admins verify this patch?

@yungezz can this be merged?


[bug] formAction$ behaves differently on redirect than globalAction$

When you submit with a formAction$, the routeLoader$ fires and then fires again after the redirect.  But, if you redirect from within qwik's globalAction$ instead, routeLoader correctly only fires once (after the redirect).
I think the problem is formAction$ shouldn't fire all loaders again before the redirect.
steps to reproduce:
https://github.com/tuurbo/qwik-form-actions
qwik form (correct behavior)

click login link
click "login (qwik)" button
should see below in server console

loader /
loader /login/
formLoader
action (qwik)
loader /q-data.json

modular form (bad behavior)

clear server console
click login link
click "login (modular)" button
should see below in server console

loader /
loader /login/
formLoader
action (modular)
RedirectMessage {}             <----- not sure why this is logged
loader /login/q-data.json      <----- this should not be called
formLoader                     <----- this should not be called
loader /q-data.json

Thank you very much for your attention. Do you have any idea what I can do differently? formAction$ builds on globalAction$ and adds nothing in this regard. Here is the code: https://github.com/fabian-hiller/modular-forms/blob/main/packages/qwik/src/actions/formAction%24.ts

I found the culprit, but I'm not exactly sure how to fix it.
When you redirect in qwik, you prepend the event.redirect() with throw. (eg: throw event.redirect(302, '/')).
The throw is being caught by this try/catch statement. Which explains why RedirectMessage {} is logged to the console.
https://github.com/fabian-hiller/modular-forms/blob/main/packages/qwik/src/actions/formAction%24.ts#L117
Maybe in the catch we could rethrow the error, eg:
if (error instanceof AbortMessage) {
  throw error;
}

Here are the AbortMessage and RedirectMessage Qwik classes. They don't seem to be public though.
https://github.com/BuilderIO/qwik/blob/main/packages/qwik-city/middleware/request-handler/redirect-handler.ts
Maybe you know another way to go about it?

Thanks a lot for your research! I will look into it and fix it in the next few days.

As soon as I get feedback from Qwik on my issue, I will work out a solution to this problem.

I created a PR to speed up the process: https://github.com/BuilderIO/qwik/pull/4077

My PR has been merged. As soon as the new Qwik version is available, I will add the if statement.

The new version is available. 🎉

Thanks!
Note: It doesn't work in dev but does work in prod. If I manually edit the modular form code in node_modules and insert console.log(error instanceof AbortMessage); it returns false but in prod it returns true. Not sure anything can be done about that but I wanted to note it in case someone else runs into this issue.

I have the problem in dev too. However, I assume that this is not a technical problem with the code, but with the package manager. I assume that the AbortMessage class exists multiple times and is not obtained from the same source in each case. Because of this instanceof AbortMessage does not work.

@fabian-hiller is there a way to make this work on dev? I'm not being able to do redirections

It is failling with latest version of qwik, v1.2.5
Both in dev and prod

Thank you for the hint. I will investigate this.

@juanpmarin in Qwik v.1.1.5 both works for me. Dev and preview. In Qwik v1.2.5 only dev works. With preview I get an error in the console. If I upgrade Modular Forms Qwik to v1.2.5 it behaves the same, except that I get a different error in the console. I recommend downgrading your Qwik version until we find a solution for the problem. I suspect it is a Qwik issue and not a Modular Forms issue. Feel free to create an issue in the Qwik repo with the errors you are getting and link this issue.

@fabian-hiller do you know about a workaround for this?

Downgrade to Qwik v1.1.5

I have the problem. That's why I created this issue. Until this is fixed, I recommend downgrading to v1.1.5.

It occurs when you use the formAction$ API of Modular Forms. However, I strongly believe that Qwik is the problem and that we as a library cannot do anything.

Problem with Qwik 1.2.X should be fixed in v0.20.0 of Modular Forms. Make sure, this two imports are imported in the following order in entry.preview.tsx:
import qwikCityPlan from "@qwik-city-plan";
import render from "./entry.ssr";

@fabian-hiller are you sure that fix is for this issue? I've upgraded qwik and modular forms and redirection still does not work

@juanpmarin my comment was related to the previous comments on the Qwik 1.2.6 problem. I will fix the problem you describe soon. In production it should work normally.

Hi @fabian-hiller !
I would love to upgrade qwik to the latest version, do you have any clues about why redirection is not working? Maybe I can do some research

Does it not work in production either? This could be a possible fix for dev: https://github.com/fabian-hiller/modular-forms/pull/66

@fabian-hiller that fix makes sense to me, it could even stay enabled in production, what do you think?

I would only activate it in dev. In prod it has no use. I will release a new version with the change in the next weeks. If you want to speed up the process, you can revise the PR or create a new one.

@fabian-hiller redirects are not working for me in production either, I suspect of qwik-speak, because it duplicates de bundle for every language, does that make sense to you?

Does it work for your without qwik-speak? Which Qwik version are you using?

Hi @fabian-hiller I did some more tests, I tried to upgrade my project to the latest Qwik and modular forms version again, redirect still does not work but for a different reason I think, look:
I found that when I submit the form, a 404 status code is received:

I tried to look for that action id in the server bundle and I found a similar one, only the prefix changes from id_ to s_
If I fix the id in the URL, and try to execute the same request with curl, I get a success response
Original path: /quotes/new/q-data.json?qaction=id_AW14dmUcJXw
Modified path: /quotes/new/q-data.json?qaction=s_AW14dmUcJXw
Do you have any idea of why is not the right id being sent?

If you don't need any of the new features, I recommend downgrading Qwik. Currently I have very little time, so I don't know when I can look at the problem. Probably it is a problem on the Qwik's side. Feel free to create an issue there and link me.

I understand. As long as the problem can be solved by changes to Modular Forms, I am very interested in implementing those changes directly. Since formAction$ is not extremely complicated and basically just builds on globalAction$, it should be quick once I know what to do.


storage controller: background reconcile, graceful shutdown, better logging

Problem
Now that the storage controller is working end to end, we start burning down the robustness aspects.
Summary of changes

Add a background task that periodically calls reconcile_all.  This ensures that if earlier operations couldn't succeed (e.g. because a node was unavailable), we will eventually retry.  This is a naive initial implementation can start an unlimited number of reconcile tasks: limiting reconcile concurrency is a later item in #6342
Add a number of tracing spans in key locations: each background task, each reconciler task.
Add a top level CancellationToken and Gate, and use these to implement a graceful shutdown that waits for tasks to shut down.  This is not bulletproof yet, because within these tasks we have remote HTTP calls that aren't wrapped in cancellation/timeouts, but it creates the structure, and if we don't shutdown promptly then k8s will kill us.

Checklist before requesting a review

[ ] I have performed a self-review of my code.
[ ] If it is a core feature, I have added thorough tests.
[ ] Do we need to implement analytics? if so did you add the relevant metrics to the dashboard?
[ ] If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section.

Checklist before merging

[ ] Do not forget to reformat commit message to not include the above checklist

This change is making test_cannot_create_endpoint_on_non_uploaded_timeline unstable, because it interferes with tests that create their own tenants (not via neon_local) and then call attach_hook: that is leaving the attachment_service in a state where it thinks there is reconciliation work to do, and when it does the reconcile that causes a blip in the availability of the tenant.

Added a commit to stabilize tests that were using phony pageserver IDs and thereby tripping panics.


[QUAD] Enhancement: Properly complete the pyblish_function.pyi

File does not exist anymore in AYON. PR is hence irrelevant.
There is no more .pyi file next to this file in AYON


Fixed bug with creating multiple dashboards.

/assign @maorfr

@mischenkovn
Could you sign DCO and bump chart version to latest please? Thank you.

this PR has been cover by other PRs.
/close


How to set the typescript settings file?

What problem does this feature solve?
Support for other typescript configuration files.
For example, I want to use tsconfig.prod.json again when mode = production.
What does the proposed API look like?
Can be configured in vue.config.js or babel.config.js

you can change the ts-loader settings through the webpack APIs.
https://cli.vuejs.org/guide/webpack.html#simple-configuration
You can visit us on forum.vuejs.org if you need help with the config.


A domain name should be all lowercase

Newer version of Sawyer automatically convert domain names to lowercase, but this confuses the logic to strip the domain name and protocol off of a URL to get a path.

I think we need to run a round of rubocop on this


[Help] How to set image, colors or icons in plutocell

Hi,
I want to know how to set images, text colors or icons in a plutocell. Thanks.

I'm just a random guy passing by and evaluating this package for potential future use.
I've quickly checked the source code and it looks like you may be able to do what you want if you give a PlutoColumnRenderer to your PlutoColumn. There's a nice example in the code:
https://github.com/bosskmk/pluto_grid/blob/4d30d579c975a99900ca585757f1d03cd554acb2/lib/src/model/pluto_column.dart#L120


Change default port for Vite

This is my proposed change to differentiate port used by Vite. Thank you for the review as this is my first contribution to public repo 🙂

Thank you for your help!


I can't run fuzzilli when import create a tmpfs

this commit https://github.com/googleprojectzero/fuzzilli/commit/ed1d68b392eb7e0e9cf18482aa279fda99dd629a
my env is docker, and I can't run fuzzilli now.
is there any other way to resolve it? I revert that commit currently.

Hi!
Thanks for filing the issue and sorry for breaking your setup.
I reverted the relevant commits, they also did not really work for us! :)


group_required not working with custom user model

Hi - I see in the documentation that if I'm using a custom user model, and it's not providing groups as a many-to-many relationship, I'd need to override check_membership.
However, I don't think this is the case for my situation and group_required isn't being used/enforced by my django app.
I have a views file which contains this kind of code:
from braces.views import GroupRequiredMixin
class CompanyListView(GroupRequiredMixin, ListView):
group_required = [u"owner", u"auditor", u"administrator"]
and my user model looks like this (users are defined in the models file for a 'companies' app for this application:
class User(AbstractBaseUser):
groups   = models.ManyToManyField(Group, blank=True, default=1, related_name='group')

I've got 4 groups: owner, auditor, vendor, and administrator. All are able to be selected in the application for a user and I can query for the users' groups and see the user belongs to the various groups.
but if I create a user, assign them to the 'vendor" group, they are STILL able to see the CompanyListView here, which they should not be, according to the group_required stanza.
Can someone point me in the right direction?
Thanks much in advance.

Please close this issue. The problem is that my custom user--when created--defaults to being a "superuser", therefore, any group_required stanza is rendered null anyway. I'm fixing the situation so the users are not "superuser"s.


Prevent greenkeeper from updating nodemailer

See https://github.com/porygonco/porybox/pull/624

Oh for goodness sake.
I really hate this nonsense. I am really against GPLd stuff because it restricts us (stupid pretend "open") but I'm tempted to switch to GPL just so we don't have to bloody care about it.

Also, just a quick thing that this will disable it for minor/patch version updates as well. So if there are security fixes, we'll miss them. I suggest we enable it again and just delete any 3.x ones. I looked to see if there's a solution, but there isn't :-\
I guess we could update the dependency in package.json to be ^ rather than hard coded, but meh.


Duplicated token seqs are used for rescoring

While implementing rescoring with conformer lm, I find that there are duplicated token seqs.
The reason is that the following code
https://github.com/k2-fsa/icefall/blob/810b193dcc3ad3f7a65bc3def63493711c9a084e/icefall/decode.py#L222-L237
does not remove 0s from word_seq.
Previous versions remove 0s from word_seq, see
https://github.com/k2-fsa/icefall/blob/abadc714157b81770dcc9b65801d9c87663a7507/icefall/decode.py#L218-L227
It does not affect the final WER, but it incurs extra unncessary computations.

One consequence after the fix is that we can use a larger value for num_paths, which could potentially affect the WER.


user address space writes

Perhaps we should have a way to call BPF_FUNC_probe_write_user()
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=96ae52279594470622ff0585621a13e96b700600
This could either be a call, eg, write(), or it could just happen if you write to a user address. As an example of the latter, imagine if this worked (needs #4):
./src/bpftrace -e 'uprobe:/bin/bash:readline { *uaddr("ps1_prompt") = "BPF-says-hi> "; }'

So your bash prompt becomes "BPF-says-hi> " the text time you hit enter.

We need this feature.

@Delta-in-hub Mind describing your use case for this feature?

Hello @jordalgo
As far as i know, bpftrace now doesn't have the function like probe_write_user , which severely limits the use of bpftrace for more complex purposes like doing hotfix for user programe or something like https://github.com/pathtofile/bad-bpf.
bpftrace is a wonderful tool with a very clean syntax.
But I'm curious why something like probe_write_user was intentionally not provided?  If this is to prevent bpftrace from being used for malicious purposes, I don't find it convincing; after all, there is the system() function, which can actually do anything.

Agreed that it would be a useful feature to have. It's just a lack of time/desire that's meant that it hasn't been implemented yet.
We'd lock this feature behind bpftrace's "unsafe mode", which would help prevent accidental use and alleviate security risks from running other people's unreviewed scripts. Since bpftrace can only be run as root, users are assumed to be trusted and we won't try to prevent anyone from deliberately using a feature like this.

@ajor I got that.Thank you guys for maintaining bpftrace!


405 Response When URL Parameter is empty

There is a problem with the tree insertion, where if a user-agent requests a url that has an empty url parameter, a 405 response status code occurs.
example:
router.Get("/v:version/test/:testid", f)

curl -XGET http://localhost/v3/test/ -D -
HTTP/1.1 405 Method Not Allowed
Allow: GET
Date: Wed, 23 Sep 2015 21:51:12 GMT
Content-Length: 18
Content-Type: text/plain; charset=utf-8

Believe the issue is happening due to the split node in the insertion.

https://github.com/husobee/vestigo/commit/c1193e00eb9b9357d466ab9dc24cc0f380cc65a3 <- this commit fixes this bug, implemented a "clean" mechanism on the resource which cleans up the allowMethods string artifact from split nodes.  Also added in a flag to AllowTrace.


Symfony Error Page should disable turbo

When getting on a symfony error page over turbo:

Some JS error happens:

After clicking on history back turbo loading the page and the page looks broken:

After hard refresh page looks correctly again.
I'm using nothing special just turbo was enabled on symfony application (no turbo frames yet).
Think it would nice if the default turbo would not break on error pages.

I wonder what on the error page causes the error in Turbo?


Reflect: Allow to override the type name

What problem does this solve or what need does it fill?
As a plugin author I publish components and implement Reflect for them so that the consumers of my plugin can use them in serialized scenes.
Theses components may live in private modules and be re-exported from a parent module like this:
mod my_private_module {
  #[derive(Debug, Copy, Clone, Default, Component, Reflect]
  #[reflect(Component)]
  pub struct AwesomeComponent;
}

// Expose the component without the user knowing about `my_private_module`
pub use my_private_module::AwesomeComponent;

This as the advantage that moving the component to another module or rename/move the module is not a breaking change for the consumers of my library.
But  when serialized via bevy's reflection system, it exposes the real path of the component. So moving my Component is now a breaking change. And that's annoying.
What solution would you like?
I would like to be able to choose (hard-code) the path of my components. Maybe like this:
#[derive(Debug, Copy, Clone, Default, Component, Reflect]
#[reflect(Component)]
#[reflect(rename = "myplugin::AwesomeComponent")] // <-- Choose a type name
pub struct AwesomeComponent;;

What alternative(s) have you considered?
I could not move my components (annoying for me). Or I could publish a breaking change (annoying for my users).
Additional context
Serde has a somewhat similar feature:

https://serde.rs/container-attrs.html#rename,
https://serde.rs/variant-attrs.html#rename

Would this be resolved by either #5805 or #5830?

Yes, I think #5805 would solve it. (If I understood well 😄)

@alice-i-cecile I think this is solved now?

Agreed.


snap lxd won't start - failed to create dqlite connection

Required information

Distribution: Ubuntu
Distribution version: 16.04.5 LTS (Xenial Xerus)
The output of "lxc info" or if that fails:

Kernel version: 4.4.0-135-generic #161-Ubuntu
LXC version: 3.5
LXD version: 3.5
Storage backend in use: btrfs

fstab
# Mount Storage RAID
/dev/sdb        /storage		btrfs   defaults        0       1
# Bind mount
/storage/lxd /var/snap/lxd	none	defaults,bind	0	0

Issue description
lxd.daemon[5204]: lvl=warn msg="Failed connecting to global database (attempt 60): failed to create dqlite connection: no available dqlite leader server found" t=2018-09-27T08:46:58-0400
Steps to reproduce

I'm not sure how this happened. first, I couldn't lxc list. After reboot, lxc wouldn't start.

Attached:

dmesg
lxd.log/var/snap/lxd/common/lxd/logs/lxd.log
/var/log/lxd/lxd.log
lxd-lxd.log
lxd.log
dmesg.txt

Please run (as root):

systemctl stop snap.lxd.daemon
pkill -9 lxd
lxd --debug --group lxd

Also, install the sqlite3 package and run:

sqlite3 /var/snap/lxd/common/lxd/database/local.db .dump

root@R510-LXD6-Backup:/var/log/lxd# systemctl stop snap.lxd.daemon
root@R510-LXD6-Backup:/var/log/lxd# pkill -9 lxd
root@R510-LXD6-Backup:/var/log/lxd# lxd --debug --group lxd
DBUG[09-27|13:08:35] Connecting to a local LXD over a Unix socket
DBUG[09-27|13:08:35] Sending request to LXD                   etag= method=GET url=http://unix.socket/1.0
INFO[09-27|13:08:35] LXD 3.5 is starting in normal mode       path=/var/snap/lxd/common/lxd
INFO[09-27|13:08:35] Kernel uid/gid map:
INFO[09-27|13:08:35]  - u 0 0<PHONE_NUMBER>
INFO[09-27|13:08:35]  - g 0 0<PHONE_NUMBER>
INFO[09-27|13:08:35] Configured LXD uid/gid map:
INFO[09-27|13:08:35]  - u 0 1000000<PHONE_NUMBER>
INFO[09-27|13:08:35]  - g 0 1000000<PHONE_NUMBER>
WARN[09-27|13:08:35] CGroup memory swap accounting is disabled, swap limits will be ignored.
DBUG[09-27|13:08:35] Running kernel does not support netnsid-based network retrieval
INFO[09-27|13:08:35] Initializing local database
INFO[09-27|13:08:35] Initializing database gateway
INFO[09-27|13:08:35] LXD isn't socket activated
DBUG[09-27|13:08:35] Connecting to a local LXD over a Unix socket
DBUG[09-27|13:08:35] Sending request to LXD                   etag= method=GET url=http://unix.socket/1.0
DBUG[09-27|13:08:35] Detected stale unix socket, deleting
DBUG[09-27|13:08:35] Detected stale unix socket, deleting
INFO[09-27|13:08:35] Starting /dev/lxd handler:
INFO[09-27|13:08:35]  - binding devlxd socket                 socket=/var/snap/lxd/common/lxd/devlxd/sock
INFO[09-27|13:08:35] REST API daemon:
INFO[09-27|13:08:35]  - binding Unix socket                   socket=/var/snap/lxd/common/lxd/unix.socket
INFO[09-27|13:08:35]  - binding TCP socket                    socket=[::]:8443
INFO[09-27|13:08:35] Initializing global database
DBUG[09-27|13:08:35] Found cert                               k=0
DBUG[09-27|13:08:35] Dqlite: server connection failed err=failed to establish network connection: some nodes are behind this node's version address=<IP_ADDRESS>:8443 attempt=0
DBUG[09-27|13:08:35] Dqlite: connection failed err=no available dqlite leader server found attempt=0
DBUG[09-27|13:08:35] Found cert                               k=0
DBUG[09-27|13:08:35] Dqlite: server connection failed err=failed to establish network connection: some nodes are behind this node's version address=<IP_ADDRESS>:8443 attempt=1
DBUG[09-27|13:08:35] Dqlite: connection failed err=no available dqlite leader server found attempt=1
DBUG[09-27|13:08:35] Found cert                               k=0
DBUG[09-27|13:08:35] Dqlite: server connection failed err=failed to establish network connection: some nodes are behind this node's version address=<IP_ADDRESS>:8443 attempt=2
DBUG[09-27|13:08:35] Dqlite: connection failed err=no available dqlite leader server found attempt=2
DBUG[09-27|13:08:36] Found cert                               k=0
DBUG[09-27|13:08:36] Dqlite: server connection failed err=failed to establish network connection: some nodes are behind this node's version address=<IP_ADDRESS>:8443 attempt=3
DBUG[09-27|13:08:36] Dqlite: connection failed err=no available dqlite leader server found attempt=3
DBUG[09-27|13:08:37] Found cert                               k=0
DBUG[09-27|13:08:37] Dqlite: server connection failed err=failed to establish network connection: some nodes are behind this node's version address=<IP_ADDRESS>:8443 attempt=4
DBUG[09-27|13:08:37] Dqlite: connection failed err=no available dqlite leader server found attempt=4
DBUG[09-27|13:08:38] Found cert                               k=0
DBUG[09-27|13:08:38] Dqlite: server connection failed err=failed to establish network connection: some nodes are behind this node's version address=<IP_ADDRESS>:8443 attempt=5
DBUG[09-27|13:08:38] Dqlite: connection failed err=no available dqlite leader server found attempt=5
DBUG[09-27|13:08:39] Found cert                               k=0
DBUG[09-27|13:08:39] Dqlite: server connection failed err=failed to establish network connection: some nodes are behind this node's version address=<IP_ADDRESS>:8443 attempt=6
DBUG[09-27|13:08:39] Dqlite: connection failed err=no available dqlite leader server found attempt=6
DBUG[09-27|13:08:40] Found cert                               k=0
DBUG[09-27|13:08:40] Dqlite: server connection failed err=failed to establish network connection: some nodes are behind this node's version address=<IP_ADDRESS>:8443 attempt=7
DBUG[09-27|13:08:40] Dqlite: connection failed err=no available dqlite leader server found attempt=7
DBUG[09-27|13:08:41] Found cert                               k=0
DBUG[09-27|13:08:41] Dqlite: server connection failed err=failed to establish network connection: some nodes are behind this node's version address=<IP_ADDRESS>:8443 attempt=8
DBUG[09-27|13:08:41] Dqlite: connection failed err=no available dqlite leader server found attempt=8
DBUG[09-27|13:08:42] Found cert                               k=0
DBUG[09-27|13:08:42] Dqlite: server connection failed err=failed to establish network connection: some nodes are behind this node's version address=<IP_ADDRESS>:8443 attempt=9
DBUG[09-27|13:08:42] Dqlite: connection failed err=no available dqlite leader server found attempt=9
DBUG[09-27|13:08:43] Found cert                               k=0
DBUG[09-27|13:08:43] Dqlite: server connection failed err=failed to establish network connection: some nodes are behind this node's version address=<IP_ADDRESS>:8443 attempt=10
DBUG[09-27|13:08:43] Dqlite: connection failed err=no available dqlite leader server found attempt=10
DBUG[09-27|13:08:44] Found cert                               k=0
DBUG[09-27|13:08:44] Dqlite: server connection failed err=failed to establish network connection: some nodes are behind this node's version address=<IP_ADDRESS>:8443 attempt=11
DBUG[09-27|13:08:44] Dqlite: connection failed err=no available dqlite leader server found attempt=11
DBUG[09-27|13:08:45] Failed connecting to global database (attempt 0): failed to create dqlite connection: no available dqlite leader server found
DBUG[09-27|13:08:47] Found cert                               k=0
DBUG[09-27|13:08:47] Dqlite: server connection failed err=failed to establish network connection: some nodes are behind this node's version address=<IP_ADDRESS>:8443 attempt=0
DBUG[09-27|13:08:47] Dqlite: connection failed err=no available dqlite leader server found attempt=0
DBUG[09-27|13:08:48] Found cert                               k=0
DBUG[09-27|13:08:48] Dqlite: server connection failed err=failed to establish network connection: some nodes are behind this node's version address=<IP_ADDRESS>:8443 attempt=1
DBUG[09-27|13:08:48] Dqlite: connection failed err=no available dqlite leader server found attempt=1
DBUG[09-27|13:08:48] Found cert                               k=0
DBUG[09-27|13:08:48] Dqlite: server connection failed err=failed to establish network connection: some nodes are behind this node's version address=<IP_ADDRESS>:8443 attempt=2
DBUG[09-27|13:08:48] Dqlite: connection failed err=no available dqlite leader server found attempt=2
DBUG[09-27|13:08:48] Found cert                               k=0
DBUG[09-27|13:08:48] Dqlite: server connection failed err=failed to establish network connection: some nodes are behind this node's version address=<IP_ADDRESS>:8443 attempt=3
DBUG[09-27|13:08:48] Dqlite: connection failed err=no available dqlite leader server found attempt=3
DBUG[09-27|13:08:49] Found cert                               k=0
DBUG[09-27|13:08:49] Dqlite: server connection failed err=failed to establish network connection: some nodes are behind this node's version address=<IP_ADDRESS>:8443 attempt=4
DBUG[09-27|13:08:49] Dqlite: connection failed err=no available dqlite leader server found attempt=4
DBUG[09-27|13:08:50] Found cert                               k=0
DBUG[09-27|13:08:50] Dqlite: server connection failed err=failed to establish network connection: some nodes are behind this node's version address=<IP_ADDRESS>:8443 attempt=5
DBUG[09-27|13:08:50] Dqlite: connection failed err=no available dqlite leader server found attempt=5
DBUG[09-27|13:08:51] Found cert                               k=0
DBUG[09-27|13:08:51] Dqlite: server connection failed err=failed to establish network connection: some nodes are behind this node's version address=<IP_ADDRESS>:8443 attempt=6
DBUG[09-27|13:08:51] Dqlite: connection failed err=no available dqlite leader server found attempt=6
DBUG[09-27|13:08:52] Found cert                               k=0
DBUG[09-27|13:08:52] Dqlite: server connection failed err=failed to establish network connection: some nodes are behind this node's version address=<IP_ADDRESS>:8443 attempt=7
DBUG[09-27|13:08:52] Dqlite: connection failed err=no available dqlite leader server found attempt=7
DBUG[09-27|13:08:53] Found cert                               k=0
DBUG[09-27|13:08:53] Dqlite: server connection failed err=failed to establish network connection: some nodes are behind this node's version address=<IP_ADDRESS>:8443 attempt=8
DBUG[09-27|13:08:53] Dqlite: connection failed err=no available dqlite leader server found attempt=8
DBUG[09-27|13:08:55] Found cert                               k=0
DBUG[09-27|13:08:55] Dqlite: server connection failed err=failed to establish network connection: some nodes are behind this node's version address=<IP_ADDRESS>:8443 attempt=9
DBUG[09-27|13:08:55] Dqlite: connection failed err=no available dqlite leader server found attempt=9
DBUG[09-27|13:08:56] Found cert                               k=0
DBUG[09-27|13:08:56] Dqlite: server connection failed err=failed to establish network connection: some nodes are behind this node's version address=<IP_ADDRESS>:8443 attempt=10
DBUG[09-27|13:08:56] Dqlite: connection failed err=no available dqlite leader server found attempt=10

root@R510-LXD6-Backup:~# sqlite3 /var/snap/lxd/common/lxd/database/local.db .dump
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE schema (
    id         INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
    version    INTEGER NOT NULL,
    updated_at DATETIME NOT NULL,
    UNIQUE (version)
);
INSERT INTO "schema" VALUES(1,36,1511307143);
INSERT INTO "schema" VALUES(2,37,1522741883);
CREATE TABLE config (
    id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
    key VARCHAR(255) NOT NULL,
    value TEXT,
    UNIQUE (key)
);
INSERT INTO "config" VALUES(4,'core.https_address','[::]:8443');
CREATE TABLE patches (
    id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
    name VARCHAR(255) NOT NULL,
    applied_at DATETIME NOT NULL,
    UNIQUE (name)
);
INSERT INTO "patches" VALUES(1,'invalid_profile_names',1511307143);
INSERT INTO "patches" VALUES(2,'leftover_profile_config',1511307143);
INSERT INTO "patches" VALUES(3,'network_permissions',1511307143);
INSERT INTO "patches" VALUES(4,'storage_api',1511307143);
INSERT INTO "patches" VALUES(5,'storage_api_v1',1511307143);
INSERT INTO "patches" VALUES(6,'storage_api_dir_cleanup',1511307143);
INSERT INTO "patches" VALUES(7,'storage_api_lvm_keys',1511307143);
INSERT INTO "patches" VALUES(8,'storage_api_keys',1511307143);
INSERT INTO "patches" VALUES(9,'storage_api_update_storage_configs',1511307143);
INSERT INTO "patches" VALUES(10,'storage_api_lxd_on_btrfs',1511307143);
INSERT INTO "patches" VALUES(11,'storage_api_lvm_detect_lv_size',1511307143);
INSERT INTO "patches" VALUES(12,'storage_api_insert_zfs_driver',1511307143);
INSERT INTO "patches" VALUES(13,'storage_zfs_noauto',1511307143);
INSERT INTO "patches" VALUES(14,'storage_zfs_volume_size',1511307143);
INSERT INTO "patches" VALUES(15,'network_dnsmasq_hosts',1511307143);
INSERT INTO "patches" VALUES(16,'storage_api_dir_bind_mount',1511307143);
INSERT INTO "patches" VALUES(17,'fix_uploaded_at',1511307143);
INSERT INTO "patches" VALUES(18,'storage_api_ceph_size_remove',1511307143);
INSERT INTO "patches" VALUES(19,'devices_new_naming_scheme',1513875991);
INSERT INTO "patches" VALUES(20,'storage_api_permissions',1524064149);
INSERT INTO "patches" VALUES(21,'container_config_regen',1531504253);
INSERT INTO "patches" VALUES(22,'lvm_node_specific_config_keys',1532962241);
INSERT INTO "patches" VALUES(23,'candid_rename_config_key',1534470958);
CREATE TABLE raft_nodes (
    id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
    address TEXT NOT NULL,
    UNIQUE (address)
);
INSERT INTO "raft_nodes" VALUES(1,'<IP_ADDRESS>:8443');
DELETE FROM sqlite_sequence;
INSERT INTO "sqlite_sequence" VALUES('schema',2);
INSERT INTO "sqlite_sequence" VALUES('patches',23);
INSERT INTO "sqlite_sequence" VALUES('config',4);
INSERT INTO "sqlite_sequence" VALUES('raft_nodes',1);
COMMIT;

After starting lxd:
root@R510-LXD6-Backup:/var/log/lxd# systemctl status snap.lxd.daemon
● snap.lxd.daemon.service - Service for snap application lxd.daemon
   Loaded: loaded (/etc/systemd/system/snap.lxd.daemon.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2018-09-27 13:11:43 EDT; 6s ago
  Process: 12115 ExecStop=/usr/bin/snap run --command=stop lxd.daemon (code=exited, status=0/SUCCESS)
 Main PID: 12746 (daemon.start)
    Tasks: 0
   Memory: 9.1M
      CPU: 186ms
   CGroup: /system.slice/snap.lxd.daemon.service
           ‣ 12746 /bin/sh /snap/lxd/8882/commands/daemon.start

Sep 27 13:11:43 R510-LXD6-Backup lxd.daemon[12746]: ==> Preparing a clean copy of /etc
Sep 27 13:11:43 R510-LXD6-Backup lxd.daemon[12746]: ==> Setting up ceph configuration
Sep 27 13:11:43 R510-LXD6-Backup lxd.daemon[12746]: ==> Setting up LVM configuration
Sep 27 13:11:43 R510-LXD6-Backup lxd.daemon[12746]: ==> Rotating logs
Sep 27 13:11:43 R510-LXD6-Backup lxd.daemon[12746]: ==> Setting up ZFS (0.6)
Sep 27 13:11:43 R510-LXD6-Backup lxd.daemon[12746]: ==> Escaping the systemd cgroups
Sep 27 13:11:43 R510-LXD6-Backup lxd.daemon[12746]: ==> Escaping the systemd process resource limits
Sep 27 13:11:43 R510-LXD6-Backup lxd.daemon[12746]: => Re-using existing LXCFS
Sep 27 13:11:43 R510-LXD6-Backup lxd.daemon[12746]: => Starting LXD
Sep 27 13:11:43 R510-LXD6-Backup lxd.daemon[12746]: lvl=warn msg="CGroup memory swap accounting is disabled, swap limits will be ignored." t=2018-09-27T13:11:43-0400
root@R510-LXD6-Backup:/var/log/lxd# lxc list

Then it just hangs.

 Things likely worked fine until the current schema update where a cluster consistency check is now running and failing.
I suspect you can get things back online by doing:

sqlite3 /var/snap/lxd/common/lxd/database/local.db "UPDATE config SET value='<IP_ADDRESS>:8443' WHERE key='core.https_address';"
systemctl restart snap.lxd.daemon

Glad it worked!

Phew, i just found this and it fixed mine!  :D


Using tfa.layers.InstanceNormalization()(x) in @tf.function decorated function fails

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
TensorFlow installed from (source or binary): tensorflow-gpu==2.0.0-alpha0 colab
TensorFlow version (use command below): tensorflow-gpu==2.0.0-alpha0
TensorFlow Addons installed from (source, PyPi):
TensorFlow Addons version:
Python version and type (eg. Anaconda Python, Stock Python as in Mac, or homebrew installed Python etc):
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
Is GPU used? (yes/no):
GPU model (if used):

Describe the bug
When using tensorflow functional API with tfa.layers.InstanceNormalization()(x) in a generator model which is called from inside a @tf.function decorated train function like in DCGAN https://colab.research.google.com/github/tensorflow/docs/blob/master/site/en/r2/tutorials/generative/dcgan.ipynb#scrollTo=6bpTcDqoLWjY   then it fails with :
tf.function-decorated function tried to create variables on non-first call
CODE:
Add tfa.layers.InstanceNormalization()(x) into the code inside this colab notebook https://colab.research.google.com/github/tensorflow/docs/blob/master/site/en/r2/tutorials/generative/dcgan.ipynb#scrollTo=6bpTcDqoLWjY to test

Hey there.
Thank you for the feedback. I will take a look at this

i wrote the code for the dcgan example:
def myfunc(l8):
  l8 = tfa.layers.InstanceNormalization()(l8)
  return l8

def make_generator_model():
  inputs = tf.keras.Input(shape=(100,))

  l = layers.Dense(7*7*256, use_bias=False)(inputs)
  l1 = layers.BatchNormalization()(l)
  l2 = layers.LeakyReLU()(l1)
  l3 = layers.Reshape((7, 7, 256))(l2)
  l4 = layers.Conv2DTranspose(128, (5, 5), strides=(1, 1), padding='same', use_bias=False)(l3)
  l5 = layers.BatchNormalization()(l4)
  l6 = layers.LeakyReLU()(l5)
  l7 = layers.Conv2DTranspose(64, (5, 5), strides=(2, 2), padding='same', use_bias=False)(l6)
  l8 = layers.BatchNormalization()(l7)
  l8 = myfunc(l8)
  l9 = layers.LeakyReLU()(l8)
  l10 = layers.Conv2DTranspose(1, (5, 5), strides=(2, 2), padding='same', use_bias=False, activation='tanh')(l9)
  return tf.keras.Model(inputs=inputs, outputs=l10)

but it works, it gets more than one training epoch done?  But in my code, there is only this tfa.layers.InstanceNormalization()(x) and it fails, if i out-comment this one statement, the code works ?
My code is here (github has now jupyter notebook view support, you can directly watch it there)
https://github.com/flobotics/colab/blob/master/tf2_ganimorph.ipynb
what could cause this?

thats it, if its used as activation function it fails, here is the code for the dcgan example
def myfunc(l8):
  l8 = tfa.layers.InstanceNormalization()(l8)
  return l8

def make_generator_model():
  inputs = tf.keras.Input(shape=(100,))

  l = layers.Dense(7*7*256, use_bias=False)(inputs)
  l1 = layers.BatchNormalization()(l)
  l2 = layers.LeakyReLU()(l1)
  l3 = layers.Reshape((7, 7, 256))(l2)
  l4 = layers.Conv2DTranspose(128, (5, 5), strides=(1, 1), padding='same', use_bias=False)(l3)
  l5 = layers.BatchNormalization()(l4)
  l6 = layers.LeakyReLU()(l5)
  l7 = layers.Conv2DTranspose(64, (5, 5), strides=(2, 2), padding='same', use_bias=False, activation=myfunc)(l6)
  l8 = layers.BatchNormalization()(l7)
  l9 = layers.LeakyReLU()(l8)
  l10 = layers.Conv2DTranspose(1, (5, 5), strides=(2, 2), padding='same', use_bias=False, activation='tanh')(l9)
  return tf.keras.Model(inputs=inputs, outputs=l10)

thats the error output:
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-26-3bfe38106dd7> in <module>()
----> 1 get_ipython().run_cell_magic('time', '', 'train(train_dataset, EPOCHS)')

31 frames
</usr/local/lib/python3.6/dist-packages/decorator.py:decorator-gen-60> in time(self, line, cell, local_ns)

<timed eval> in <module>()

/usr/local/lib/python3.6/dist-packages/tensorflow/python/eager/def_function.py in invalid_creator_scope(*unused_args, **unused_kwds)
    373       """Disables variable creation."""
    374       raise ValueError(
--> 375           "tf.function-decorated function tried to create "
    376           "variables on non-first call.")
    377

ValueError: tf.function-decorated function tried to create variables on non-first call.

@Smokrow Any update, Moritz? Or could anyone provide a minimal example, so we both can reproduce it and look into the issue :-) Thank you.

hi @facaiy ,
code to reproduce is here: https://colab.research.google.com/github/tensorflow/docs/blob/master/site/en/r2/tutorials/generative/dcgan.ipynb#scrollTo=6bpTcDqoLWjY
you just need to replace the def make_generator_model(): as in the above posting is described

Sorry for the late reply. I had quite a busy week :grimacing:
Looks like this is a problem with the state of the layer. tf.function throws an error when a function inside the decorator tries to create new state after the second call.  the whole thing is discussed here:
https://github.com/tensorflow/community/blob/master/rfcs/20180918-functions-not-sessions-20.md#functions-that-create-state
@seanpmorgan @facaiy do you guys know how to handle this problem with keras layers? Are there any guidelines?

is it such a bíg error ? What is e.g. tf.keras.layers.ReLU()(x) doing what tfa.layers.InstanceNormalization()(x) does not?

Hi @flobotics sorry for the delay in looking into this. So I think there might be some confusion. tfa.layers.InstanceNormalization() is a normalization method meant to improve training, which is quite different than a ReLU layer which is an activation layer that enables non-linear mappings.
In your example it would make sense to replace BatchNormalization with InstanceNormalization which have the same desired goal. I did not run into an issue when running your DCGAN example with instance norm:
https://colab.research.google.com/drive/1SECuoh7q4Zy9nHkEOq_U3tiuNfMw_PtC
There is a WIP PR that'll provide more information but in short you can see the difference in normalization methods from this image:

Source: (https://arxiv.org/pdf/1803.08494.pdf)
And here you can see the activation layer mappings:

Eh, sorry so I read through your report a little closer and it looks like you're trying to create a custom activation function and feed it as a parameter to Conv2DTranspose? I'm not sure I'm following why your activation function would include a normalization step and I believe they should be two separate layers?

@seanpmorgan  yeah, if i use the layers separate instead as in a activation function it works. dumb that i didnt thought about that, thanks alot

@flobotics Anytime! The error you ran into is what @Smokrow was describing, but I didn't think you needed to run into that stateful tf.function problem... glad you're up and running.


[WIP] Grouping API

grouping api.
I am now working.
This PR includes #10 for preparation.

this branch now includes #9 and #10
now working

I implemented followings.

func plot(_ x: [Double], _ y: [Double])
func scatter(_ x: [Double], _ y: [Double])
func hold(f: () throws -> Void) rethrows

and backward compatibility are presented with below.
public func addLine(
    x: [Double], y: [Double])
{
    hold {
        plot(x, y)
    }
}

public func addLine2(
    x: [Double], y: [Double],
    x2: [Double], y2: [Double])
{
    hold {
        plot(x, y)
        scatter(x2, y2)
    }
}

it tells API clearly for us.
After update Contents.swift(preinstalled presentation example code in book),
I remove addLine and addLine2.
Ofcourse, if you call plot directly, it runs as hold { plot(x, y) }.

it ready to merge


React native linking with react native fbsdk

After debugging, I found out why my app isn't receving the deep links.
It's because of the fb code:
- (BOOL)application:(UIApplication *)application
        openURL:(NSURL *)url
        options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {

BOOL handled = [[FBSDKApplicationDelegate sharedInstance] application:application
                                                            openURL:url
                                                  sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey]
                                                         annotation:options[UIApplicationOpenURLOptionsAnnotationKey]
              ];
// Add any custom logic here.
return handled;
}

How do you suppose to combine these for the rn-linking code, since this is also required:
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url
  sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
  return [RCTLinkingManager application:application openURL:url
                      sourceApplication:sourceApplication annotation:annotation];
}

What I did was used a if statement as follows:
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {

  NSString * scheme = (NSString*)url.scheme;
  NSString * fbScheme = @"fb123456789";

  if ([fbScheme isEqualToString:scheme]) {
    return [[FBSDKApplicationDelegate sharedInstance]
            application:application openURL:url sourceApplication:sourceApplication annotation:annotation];
  } else {
    //Your other stuff here
  }
}

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url
  sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {

  return [[FBSDKApplicationDelegate sharedInstance] application:application
                                                        openURL:url
                                              sourceApplication:sourceApplication
                                                     annotation:annotation
          ]
  || [RNGoogleSignin application:application
                         openURL:url
               sourceApplication:sourceApplication
                      annotation:annotation
      ]
  || [RCTLinkingManager application:application openURL:url
                  sourceApplication:sourceApplication annotation:annotation
      ];

}


SAK-43339 Added group picker to permissions component

https://jira.sakaiproject.org/browse/SAK-43339

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 4
- Added 7

Complexity increasing per file
==============================
- webcomponents/tool/src/main/frontend/sakai-permissions.js  1

Complexity decreasing per file
==============================
+ gradebookng/tool/src/java/org/sakaiproject/gradebookng/rest/GradebookNgEntityProvider.java  -4

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 4
- Added 7

Complexity increasing per file
==============================
- webcomponents/tool/src/main/frontend/sakai-permissions.js  1

Complexity decreasing per file
==============================
+ gradebookng/tool/src/java/org/sakaiproject/gradebookng/rest/GradebookNgEntityProvider.java  -4

See the complete overview on Codacy


please    provide support for scoop  download

when  I  use  scoop  install httpie  on powershell7

maybe this solution will solve your problem click


When mute button is clicked

I can't seem to capture the event when the mute button is clicked. I've looked at the demo app and see the event example:
this._videoPlayer = this.page.getViewById('video');
this._videoPlayer.on(Video.mutedEvent, args => {
console.log('Video.mutedEvent');
});
      this._videoPlayer.on(Video.unmutedEvent, args => {
        console.log('Video.unmutedEvent');
      });

However, when I click the button I don't get anything logged to the console. I do get it logged to the console when the page initializes, I logs "Video.unmutedEvent"
How can I capture the click even on the mute button? I want to mute other videos and audios if it is clicked by setting state and reading it in when a page turns in my app.

which mute button are we talking about?

When you hover over the videoplayer, it shows a mute button in the top right of the video.

iOS I'm guessing, don't recall what controls get shown on the different platforms right now.
Mute event from that might not be wired up or it isn't correct in this case. Have to see if the video player controls emit something we can expose 👍

Also it would be awesome if you could expose not only mute button but all, if they emit something.


feat: scaling down pods before starting the Longhorn to OpenEBS/Rook migration.

What this PR does / why we need it:
This PR introduces a new command flag to the Kurl binary, allowing us to gracefully scale down pods using Longhorn volumes prior to migration (before running pvmigrate). By incorporating this flag into the Rook and OpenEBS pre-init process, we aim to scale down Pods using a more stable cluster (before start to bump things around and generate Longhorn instability). My testing has shown a noticeable improvement, as there have been no instances of Pods stuck in the "Terminating" state anymore.
However, in the event that some pods do become stuck during pre-flight, the migration will fail and may leave the cluster with some Pods down and Longhorn volumes scaled down. This is by design as it allows us to take action and manually restart Kubelet in the affected nodes. In case of failure a helpful message is also displayed with instructions on how to bring the scaled-down Pods and Volumes back up using another flag (also introduced by this PR) in the Kurl binary.
Migrations from Longhorn to Rook have been SUSPENDED due to failures encountered during testing on a single node cluster with 8 CPUs and 32GB of RAM. The failures were characterized by issues with etcd and the controller manager, which have been linked to a specific Kernel parameter (as previously discussed on Slack).
Which issue(s) this PR fixes:
Fixes #65977

This one is going to be replaced by other two PRs I am raising.


CFFL

CFFL

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_1c1orjdnx_/clone/recipe/meta.yaml:15: pip_install_args: pip install should be run with --no-deps.
ERROR: /tmp/abs_1c1orjdnx_/clone/recipe/meta.yaml:20: missing_wheel: For pypi packages, wheel should be present in the host section
ERROR: /tmp/abs_1c1orjdnx_/clone/recipe/meta.yaml:43: missing_license_family: The recipe is missing the about/license_family key.
WARNING: /tmp/abs_1c1orjdnx_/clone/recipe/meta.yaml:43: missing_description: The recipe is missing a description
ERROR: /tmp/abs_1c1orjdnx_/clone/recipe/meta.yaml:43: missing_dev_url: The recipe is missing a dev_url
ERROR: /tmp/abs_1c1orjdnx_/clone/recipe/meta.yaml:43: missing_documentation: The recipe is missing a doc_url or doc_source_url
Errors were found


multiple SimpleElastix instances/runs ignore RandomSeed in ParameterFile

It seems SimpleElastix ignores RandomSeed set in ParameterFile.
Even though I set RandomSeed in the ParameterFile, and initialize each selx instance with the very same ParameterFile (pM), selx seems not to (re-) set its random seed accordingly.  See e.g. these test results: https://github.com/romangrothausmann/elastix_scripts/commit/d2d6d04cfa9aaf6121f35d01e601b8cb65284b96?diff=split#diff-2e0a2595b81a2453a02093ffede7ec7dL1
The first metric value (107.81864) stays the same but the second run of selx yields 99.225277 even though both run with "NoInitialTransform" and the same ParameterFile. It also changes the metric values for all following runs.
Note that the metric value for the second image pair (L2) changes back to its original value (60.185559) if the first image pair only uses one selx run: https://github.com/romangrothausmann/elastix_scripts/commit/d06bd99f8066c5d1429149412895d3046e35d0a9#diff-2e0a2595b81a2453a02093ffede7ec7dR2
So it seems to me that selx initializes its RNG with a fixed random seed (121212 by default or that given by RandomSeed in ParameterFile) only once but not for every new instance/run even if the ParameterFile stays the same (and one would expect the RandomSeed to be reset again).

Thank you for catching this issue! SimpleElastix just hands images and parameter files to elastix so this is probably more of an elastix issue. Would you consider opening an issue with your description in the elastix repository?


fixed cpu cores and threads count

This output is generated by the benchmark.js script where Threads indicates the actual threads used by the benchmark, not the total threads available. In this example, it's only using 4 threads out of 8 cores (after hyperthreading) available.


mask of task-se3-equality

Hello,
I have a problem about the task-se3-equality
I am controlling a gripper position and orientation of a robot with a full se3 reference and it works
But  if I put a x and y mask and then pass highly abnormal references for the x and y (ie -10000 and 800) :
The solver output is weird or doesn't find a solution
With a mask on the x and y, I would have expected the task to ignore the false references and proceed as if I had not given those
I think that there is some variable coupling somewhere which makes the mask at the end inefficient for high abnormal references. Maybe with  errorInSE3(oMi, m_M_ref, m_p_error)  ?
I also have tried to apply the following mask before the errorInSE3(oMi, m_M_ref, m_p_error); line :
  for (int i=0; i<3; i++)
  {
    if (m_mask[i] == 0.)
      m_M_ref.translation()(i) = oMi.translation()(i);
  }

  double roll = m_M_ref.rotation().eulerAngles(0,1,2)(0);
  if (m_mask[3] == 0.)
    roll = oMi.rotation().eulerAngles(0,1,2)(0);
  double pitch = m_M_ref.rotation().eulerAngles(0,1,2)(1);
  if (m_mask[4] == 0.)
    pitch = oMi.rotation().eulerAngles(0,1,2)(1);
  double yaw = m_M_ref.rotation().eulerAngles(0,1,2)(2);
  if (m_mask[5] == 0.)
    yaw = oMi.rotation().eulerAngles(0,1,2)(2);

  Eigen::Quaterniond quat = Eigen::AngleAxisd(roll, Eigen::Vector3d::UnitX()) * Eigen::AngleAxisd(pitch, Eigen::Vector3d::UnitY()) * Eigen::AngleAxisd(yaw, Eigen::Vector3d::UnitZ());
  m_M_ref = pinocchio::SE3(quat, m_M_ref.translation());

When I do that with the abnormal x and y references (and mask), the solver finds a solution and the z, roll pitch and yaw error is next to zero
Do you have any hints or ideas about what is going on ?

My guess is that you're expressing the task in local frame, so also the mask is applied in local frame. As the local frame is probably not aligned with the world frame (which is the one used for expressing the reference) things don't work as you expect. Try to switch the task to the global frame by using the method useLocalFrame.

I have the problem with m_local_frame to true or false
If the value of x and y are good enough (even if wrong) the mask seems to work.
But when I put highly abnormal values it fails

Maybe there could be some numerical error due to the fact that the error is first computed in local frame (using errorInSE3) and then projected in world frame (using m_wMl.toActionMatrix()). Could you try to print the values of m_p_error_vec, m_p_error and m_a_des in this line?
Having large values of the reference only in xy, you should get large values only in the first two entries of m_p_error_vec and m_a_des, but possibly in all the first 3 entries of m_p_error. Could you check that's the case?

At the same time step I have :
with correct reference (xref = 0.0779931, yref = -0.315164, zref = 0.92661)
frame 81: m_p_error_vec -5.61677e-06  2.36178e-05 -2.51817e-05  3.31814e-05 -0.000384383 -3.36401e-05
frame 81: m_a_des   0.105764 -0.0628411   0.170859  -0.101975  0.0721051   0.351831
frame 81: m_p_error
  v = -2.36797e-06  2.36622e-05 -2.56507e-05
  w =  4.56884e-05 -0.000383419 -2.97537e-05

with highly abnormal reference on x and y  : (xref = -100000, yref = 800, zref = 0.92661)
frame 81: m_p_error_vec      99999.9     -802.363      18.3816  2.77719e-05 -0.000367955 -3.97583e-05
frame 81: m_a_des      -3e+08 2.40709e+06    -55144.5  -0.0858434   0.0226373    0.370224
frame 81: m_p_error
  v = 98920.4 1196.29 14626.6
  w =  4.08942e-05 -0.000367063  -3.6541e-05

It should be fixed by the last commit. I'll come back later with an explanation of what was wrong with the code.

Thank you, I have tested and it works now

There were two problems with the code.
The first one was simply a bug. The position error was expressed in the reference frame, and when converting it to the world frame I was instead assuming it was expressed in the actual local frame.
The second one was not a bug, but was simply the fact of using the log6 function for computing the error. This function indeed computes the error in a way that couples translation and orientation, so when the orientation error was not null, then the large errors of the xy components was also affecting the z component. To avoid this, I've switched to the log3 function to compute the orientation error, whereas I use a simple difference for the translation error.

At the same time step I have
with a correct reference :
right_hand_reference
  R =
   0.999732   0.0231463 1.82246e-06
 -0.0231415    0.999533   0.0200125
0.000461517  -0.0200072      0.9998
  p = 0.0534311 -0.204592  0.914049

frame 81 m_p_error_vec=  0.118956  -0.079308 -0.0123425
frame 81 oMi-m_M_ref  =  0.118956 -0.0793079 -0.0123425

with a wrong reference:
right_hand_reference
  R =
   0.999732   0.0231463 1.82246e-06
 -0.0231415    0.999533   0.0200125
0.000461517  -0.0200072      0.9998
  p =    10000     -800 0.914049

frame 81 m_p_error_vec=  -9999.83    799.715 -0.0135848
frame 81 oMi-m_M_ref  =  -9999.83    799.716 -0.0123425

with a very wrong reference:
right_hand_reference
  R =
   0.999732   0.0231463 1.82246e-06
 -0.0231415    0.999533   0.0200125
0.000461517  -0.0200072      0.9998
  p =  8.09836e+18 -1.01865e+19     0.914049

frame 81 m_p_error_vec=-8.09836e+18  1.01865e+19 -1.15365e+12
frame 81 oMi-m_M_ref  =-8.09836e+18  1.01865e+19   -0.0123425

I see. I've carried out some tests, and it seems that these errors are simply numerical, and indeed they only become significant if you input veeeery large values. Even with a reference of 1e10 I get very small errors, which do not affect the robot behavior:
m_p_error_vec=5.85318e-05       1e+10 2.14577e-06
oMi-m_M_ref  =5.81238e-05       1e+10 2.45136e-06

Of course I could change the code such that this specific numerical error doesn't occur anymore, but there're always gonna be countless lines in the code where numerical errors would occur if you start using crazy large numbers. This is rather philosophical, but I don't think it's important that TSID gives perfect results for crazy references, unless of course there's a good reason for using crazy references in robotics that I'm not seeing. So before trying to avoid this numerical issue I'd like to know the motivation behind this.

Hello,
One question about the "local frame = true" case.
You stated above that "The position error was expressed in the reference frame, and when converting it to the world frame I was instead assuming it was expressed in the actual local frame."
But in the local_frame case, m_p_error_vec (which is in the reference frame if I am correct) is used as is. Whereas the velocity and acceleration error terms are converted using "m_wMl.rotation(oMi.rotation())" (l. 187), so they are converted from the world to the actual local frame. Does that mean position error is in the reference frame and velocity/acc errors are in the actual local frame? Or am I missing something? Thanks.

About the difference between
cout<<"m_p_error_vec="<<m_p_error_vec.head<3>().transpose()<<endl;
cout<<"oMi-m_M_ref  ="<<(oMi.translation()-m_M_ref.translation()).transpose()<<endl;
I copy-pasted that as you suggested, and I tried on my humanoid model (origin in (0,0,0)) with a task on the right hand. I do observe difference between the 2 results, even though the reference is not totally crazy (end reference is (0.5, 20, 0.8) which is close to the start position except for the Y coordinate). I have a mask in order to control only the position in Z (no control of the orientation).
Examples of the values I observe are:
m_p_error_vec=    0.128302     -2.46898    -0.000202907
oMi-m_M_ref  =  0.125921   -2.47089    0.00236986
R
0.856283 -0.227082  0.460507
0.124388   0.96216  0.240721
-0.498157 -0.147826    0.8525
p
-0.186367
1.98838
0.800009

Hello,
One question about the "local frame = true" case.
You stated above that "The position error was expressed in the reference frame, and when converting it to the world frame I was instead assuming it was expressed in the actual local frame."
But in the local_frame case, m_p_error_vec (which is in the reference frame if I am correct) is used as is. Whereas the velocity and acceleration error terms are converted using "m_wMl.rotation(oMi.rotation())" (l. 187), so they are converted from the world to the actual local frame. Does that mean position error is in the reference frame and velocity/acc errors are in the actual local frame? Or am I missing something? Thanks.

You are right. I had noticed that as well the other day, but I could only fix it today for lack of time. It has been fixed 5 hours ago in my last commit on the devel branch.

About the difference between
cout<<"m_p_error_vec="<<m_p_error_vec.head<3>().transpose()<<endl;
cout<<"oMi-m_M_ref ="<<(oMi.translation()-m_M_ref.translation()).transpose()<<endl;
I copy-pasted that as you suggested, and I tried on my humanoid model (origin in (0,0,0)) with a task on the right hand. I do observe difference between the 2 results, even though the reference is not totally crazy (end reference is (0.5, 20, 0.8) which is close to the start position except for the Y coordinate). I have a mask in order to control only the position in Z (no control of the orientation).
Examples of the values I observe are:
m_p_error_vec= 0.128302 -2.46898 -0.000202907
oMi-m_M_ref = 0.125921 -2.47089 0.00236986
R
0.856283 -0.227082 0.460507
0.124388 0.96216 0.240721
-0.498157 -0.147826 0.8525
p
-0.186367
1.98838
0.800009

These differences are too large. There seems to be a problem. First, are you using the latest devel branch? If not, could you make sure you still see these differences with the latest version of the code?
If so, could you provide me with a script to reproduce the problem? If you can reproduce it with one of the standard robots that come with TSID or example-robot-data that would ease everything.

I was indeed using the devel branch, but only with the first fix (the one from 2 days ago). With your commit from yesterday, now it's working all fine! Thanks!

I knew that @paulinejmaurice had the same kind of problem which was not a numerical issue
Now that everything is fine I also think this is good to leave it like this
Thanks a lot for the commits !

Great, I'm glad everything is working now. Thanks to you for pointing out this problem!


NavMap Fix polygons being treated like triangle strips instead of triangle fans

Seems like NavMap's polygons always (not actually sure if always): are convex and their points are ordered in a triangle fan layout. However, the code was assuming triangle strip layout instead. This PR makes the code assume triangle fan layout.
As far as I've checked when generating navigation from mesh / baking the navigation every triangle is added as a seperate polygon so in such cases it doesn't really matter as for a single triangle both triangle fan and triangle strip layouts are the same.
In case of NavigationPolygon::make_polygons_from_outlines (which is used by NavigationPolygonEditor) it seems to generate polygons with points in triangle fan layout.
Fixes #57995 (needs cherry-pick).
Besides changing NavMap::get_closest_* methods it also changes NavMap::get_path() so it may be fixing some other issues, haven't checked that.
For MRP from #57995:

Separate polygons:

Triangles considered before the fix (semitransparent to show the overlapping parts):

Triangles considered after the fix (also semitransparent but there are no overlaps):

CC @Scony

virtually the same implementation in a few places (which is perfectly visible in your fix).

but what do you think about (2)? @kleonc do you think it would be a good idea for this PR to extract some generic function to simplify the parts you modified as well?

Yeah, I noticed that too but decided to keep this PR bugfix only. Adding (and exposing to the servers) a method like get_closest_point_info returning point, normal and owner at once in a struct (dict) can be done in another PR.
Or I guess I can do it in another commit in this PR for the sake of keeping things separated.


Updates for rust 1.50

AllocRef renamed to Allocator, use linked_list_allocator 0.8.11, which also has those renames done.

Perfect, thanks!


Feature : ability to define a speechbox image

It would be convenient to have the ability to define a speechbox like we define a background (ie : .SPEECHBOX:cinematic_speech.png)
My user case is that i would like to set a different speechbox for "cinematic" mode.

There's now a .SETSPEECHBOX command, the syntax is:
.SETSPEECHBOX:(filename for image):(duration of switch from old image to new image)
The duration parameter is optional, and has a default value of 0 seconds (meaning it's instant unless specified otherwise). Also, you should make sure that the images are the same size, or things will look very strange.

Thanks you as always for your prompt response and work !


open-webui: Use makeWrapperArgs; Use env to disable hatch custom hook

Description of changes
For more info, see:

Disable hatch custom hook: https://github.com/NixOS/nixpkgs/pull/316248#discussion_r1636468561
why makeWrapperArgs?: https://github.com/NixOS/nixpkgs/pull/316248#discussion_r1636483491
pythonRelaxDepsHook is a nativeBuildInput: https://github.com/NixOS/nixpkgs/pull/316248#discussion_r1636477762

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

Thanks!


Disable mute on click

Describe the issue
I have spent the last hour looking for a way to disable the mute on click functionality of the volume and alsa modules. I don't need it to ever be muted via the bar so I would like to disable it while still maintaining the ability to click on the workspace icons.
Expected behavior:
I click on the volume modules bar and nothing happens, or if possible it moves the volume level to the approximate point in the bar, though I doubt that is possible.
Actual behavior:
It mutes my master volume and requires manual unmuting.
To Reproduce
A minimal but complete config with which the problem occurs:
[module/alsa]
    type = internal/alsa
    master-mixer = Master
    master-soundcard = hw:1
    ;click-left = ?
    interval = 5
    mapped = true

    format-volume = <bar-volume> <label-volume>
    label-muted = Muted
    label-muted-foreground = #689d6a
    label-volume-foreground = #689d6a

    bar-volume-width = 10
    bar-volume-foreground-0 = #aaff77
    bar-volume-foreground-1 = #aaff77
    bar-volume-foreground-2 = #fba922
    bar-volume-foreground-3 = #ff5555
    bar-volume-indicator = |
    bar-volume-indicator-foreground = #ff
    bar-volume-indicator-font = 3
    bar-volume-fill = ─
    bar-volume-fill-font = 3
    bar-volume-empty = ─
    bar-volume-empty-font = 3
    bar-volume-empty-foreground = #444444

Environment:

WM: i3-gaps
Output of polybar -vvv:

polybar 3.1.0-161-g028b141
Features: +alsa +curl +i3 +mpd +network +pulseaudio +xkeyboard
X extensions: +randr (+monitors) -render -damage -sync -composite +xkb +xrm +xcursor
Build type: RelWithDebInfo
Compiler: /usr/bin/c++
Compiler flags:  -Wall -Wextra -Werror -Wno-noexcept-type -O2 -pedantic -pedantic-errors
Linker flags:

There is no way to disable the built-in click actions of modules.
As for the unmuting issue, make sure you have set speaker-mixer correctly (and headphone-mixer if you use headphones). Polybar will mute/unmute the master and speaker mixers on click. If you don't specify speaker-mixer, polybar will mute only master, which also mutes most other mixers (this seems to be a pulse and alsa interaction issue: bug report). If you set speaker-mixer correctly, polybar will unmute that mixer as well fixing the issue.
I have openend an issue with a concept to clean up click actions in modules. If we implement it, it would also allow you to disable specific click actions. This is something I wanted to propose anyway and this gave me a reason.

I love how responsive and forthcoming you all are. I appreciate that and look very much forward to this hopefully being implemented!

Indeed, it would be nice to be able to disable specific default click-left|right|middle or even best to override them :)


Runs each command on all panes

Installed latest version of itermocil (0.1.8) and iTerm2 (2.1.4) with following project
windows:
  - name: sample
    root: ~
    layout: main-vertical-flipped
    panes:
       - echo "1"
       - echo "2"
       - echo "3"

Here is output, notice all commands are executed on all panes:

I have no problems with your config on iTerm2(Build 2.9.20160206) and itermocil (0.1.8)

You have "broadcast input" on.  Either turn off broadcast or limit broadcast to the current tab.
shift+command+i   Toggle broadcast to all tabs
option+command+i   Toggle broadcast to current tab


Add support for using different emoji icon sets like EmojiOne and Twemoji.

This PR is currently based on the emoji sprites PR.
Fixes: #209.

Update: Now supports changing emoji set without refresh.

@HarshitOnGitHub awesome work on this!  I was merging part of #3895 and grabbed the fetching part of this as part of that process, to avoid needing to bump PROVISION_VERSION too many times :).

If you have time to work on rebasing the UI stuff and fixing the lint errors with it, I think we could easily merge it with just the section of the frontend template disabled in the handlebars template like we did for retention policy.  Then, you wouldn't need to keep resolving merge conflicts related to the UI parts of the code you've written in the future.  After that, the parts of this branch that we'd need to maintain unmerged would I think be very small.

Nice, I merged this (disabled) UI code, after a few tweaks to strings.  Now we just need to finish the main emoji sprite sheet changes!


initial request

@marcovicente Please rename lib/domains/pt/ipleiria to lib/domains/pt/ipleiria.txt
Thank you.

@marcovicente You might miss my previous comment. Please react.


Atom API. Bug with parameter page greater than 2024

Hello,
we are trying to work with National Archives API, with service Atom.
We got the data by requests like this:
https://caselaw.nationalarchives.gov.uk/atom.xml?page=1&order=-date
All work fine with parameter "page" since 1 to 2024, but when page became greater 2024, service return HTTP 504.
For example,
GET https://caselaw.nationalarchives.gov.uk/atom.xml?page=2025&order=-date
response with http 504.
If it is possible, to fix this bug.
With best regards. Alex Kononenko

We had in fact scheduled today to look at that, and we've got a fix on staging, which should go live some day soon. You should also note significantly faster load times for the atom feed pages.

That should be fixed on the live site now. Thank you for letting us know about the problem -- whilst we did know about it, it gives us confidence that we're working on fixing things that people care about!

Hi, thank you very much.
I tested it, paging above 2024  work fine.
Alex Kononenko


AutoSequenceDNA Crash

System.NullReferenceException: Object reference not set to an instance of an object
  at CheatAutoSequenceDNA.Plugin.HandleIncubators () [0x00262] in <079d96526a914bcbb46e5d75e9a406a9>:0
  at CheatAutoSequenceDNA.Plugin+<SequencerCheckLoop>d__25.MoveNext () [0x000a2] in <079d96526a914bcbb46e5d75e9a406a9>:0

Okay, this was caused by an outdated Lathrey's performance tweaks mod.


Use the 'magick convert' command, not 'convert'

On Windows, the name of ImageMagick's convert utility clashes with Microsoft's C:\Windows\System32\convert.exe utility. Using magick convert avoids the conflict.
For consistency, references to 'convert' are changed to 'magick', throughout.
I have done some testing of these proposed changes on Windows 10 version 2004 and WSL 2 with Ubuntu 20.04. The testing is limited because I have other problems with reanimate, but I think those problems are to do with FFmpeg and not the ImageMagick part.

I thought the legacy version of ImageMagick (version 6) came with magick (because of this page: https://legacy.imagemagick.org/script/command-line-tools.php), but that may be wrong. If so, this proposed change would need a bump to the minimum ImageMagick version.

On my system, imagemagick-6 doesn't come with 'magick'. And is not easy to install imagemagick-7 on Ubuntu. How about we use 'magick' when it is available and fall back on 'convert' when it is not? We would need a wrapper that encaptulates the differences between imagemagick-6 and imagemagick-7.
Also, feel free to open an issue regarding the other problems you're having with reanimate. I very much want the library to work on Windows.

I have made a revised pull request which, I think, implements what you have suggested. I have tested it on Windows 10 (where the magick command is present) and WSL 2 with Ubuntu 20.04 (where only the 'convert' command is present).
To test, I am using a very simple executable named ra-test. On WSL 2/Ubuntu 20.04 it works (imagemagick, for SVG -> PNG), and then fails (FFmpeg, for PNG -> GIF), with:
stack exec -- ra-test render --format gif --raster imagemagick -o test.gif
Animation options:
  fps:    25
  width:  320
  height: 180
  fmt:    gif
  target: /home/mpilgrem/code/haskell/ra-test/test.gif
  raster: RasterMagick
Starting render of animation: 2.0
Frames generated: 50/50, time spent: 0s
Frames rastered: 50/50, time spent: 1s
ra-test: /usr/bin/ffmpeg -framerate 25 -i '/tmp/reanimate-7d89e6c99225f8b1/render-%05d.png' -y -i /tmp/reanimate1346-1.png -progress /tmp/reanimate1346-0.txt -filter_complex 'fps=25,scale=320:180:flags=lanczos[x];[x][1:v]paletteuse' -t 2.0 /home/mpilgrem/code/haskell/ra-test/test.gif:
ffmpeg version 4.2.2-1ubuntu1 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.3.0-3ubuntu1)
  configuration: --prefix=/usr --extra-version=1ubuntu1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Input #0, image2, from '/tmp/reanimate-7d89e6c99225f8b1/render-%05d.png':
  Duration: 00:00:02.00, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: png, gray16be(pc), 320x180, 25 fps, 25 tbr, 25 tbn, 25 tbc
Input #1, png_pipe, from '/tmp/reanimate1346-1.png':
  Duration: N/A, bitrate: N/A
    Stream #1:0: Video: png, rgba(pc), 16x16 [SAR 1:1 DAR 1:1], 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 (png) -> fps
  Stream #1:0 (png) -> paletteuse:palette
  paletteuse -> Stream #0:0 (gif)
Press [q] to stop, [?] for help
[image2 @ 0x560e6cd99c80] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
Output #0, gif, to '/home/mpilgrem/code/haskell/ra-test/test.gif':
  Metadata:
    encoder         : Lavf58.29.100
    Stream #0:0: Video: gif, pal8, 320x180, q=2-31, 200 kb/s, 25 fps, 100 tbn, 25 tbc (default)
    Metadata:
      encoder         : Lavc58.54.100 gif
Error while filtering: Internal bug, should not have happened
Failed to inject frame into filter network: Internal bug, should not have happened
Error while processing the decoded data for stream #0:0
Conversion failed!

CallStack (from HasCallStack):
  error, called at src/Reanimate/Misc.hs:38:17 in reanimate-<IP_ADDRESS>-L7UeJyI4hQI2I5TY2eRRIA:Reanimate.Misc

I will create a separate issue with my Windows/WSL 2 experiences. One challenge on Windows, is that it is currently more difficult to obtain FFmpeg pre-built with the --enable-librsvg option (https://github.com/Zeranoe/ffmpeg-builds-page/issues/7).

Looks good.


escape docstring

Fixes https://github.com/run-llama/llama_index/issues/14187

No idea, something about the URL? But a user was complaining it gives a syntax warning 🤷🏻♂


Project not configured to use Airbnb linter

The contribution guide mentions using these styling guides:

Airbnb JavaScript Style Guide
Airbnb React/JSX Style Guide

However, the .eslintrc file is not configured to use their configurations. It seems that only rules set are these:
  "rules": {
    "comma-dangle": [1, "always-multiline"],
    "no-underscore-dangle": 0,
    "quotes": [1, "single", "avoid-escape"]
  },

The linter config file needs to extend the Airbnb configuration file as shown:
{
  "extends": "airbnb",
  "parser": "babel-eslint",          // https://github.com/babel/babel-eslint
  "plugins": [
    "react"                          // https://github.com/yannickcr/eslint-plugin-react
  ],

The linter extension can be found on npm. Install instructions can be found there as well.
I'm using Atom as my editor and below is a screen shot of the linter before and after the Airbnb configurations were enabled.

If not including the Airbnb configurations is intentional feel free to close out this issue.

Thank you, I'll make the modification


Migration to the latest Swift 3.0 syntax and macOS Cocoa API

I'm excited! Can't wait for this to merge in!

@pawlowskialex what commit hash did you base this PR request on? Have you merged the latest feature/0.40.0 branch in? Looks like a lot of the changes have already been done in that branch like lowercasing enums etc…

@robertjpayne the top of feature/0.40.0 branch, that's 8355410.
A lot of changes has been already done, but only for iOS/tvOS. I've made the same for macOS.

@pawlowskialex thanks for this 👍


Snap upgraded and extended

Fixes #...n/a
Changes Introduced

core22 upgrade from core20
ssh key access included for server feature of slides

Hey! Do you mind rebasing this PR on main and making it 1 commit.


QDevil: Correct typo in init file

@jpsecher

Python files are only packaged if you include a __init__.py file in the folder not a __init_.py file
Do you want the yaml files to be part of the package or Are they only indended to be there for running tests from source.

If you want to include the files then then should be included as pacakge data in setup.cfg
Compare https://github.com/QCoDeS/Qcodes_contrib_drivers/blob/master/setup.cfg to
https://github.com/QCoDeS/Qcodes/blob/master/setup.cfg#L55

Ahh, a typo, thanks!
I don't think the simulation needs to be included.

Ok I will tag a new release asap

@jpsecher 0.13.1 is released to pypi https://pypi.org/project/qcodes-contrib-drivers/ can you check that it works correctly


How would one add fast serve to an MS Teams Toolkit project?

I'm building many Teams apps at the moment using:

VSC
Teams Toolkit extension
SPFx
WebParts

I have used fast-serve in the past and it saves me hours a month.
How would I apply it to a Teams Toolkit project? I haven't attempted it as I don't want to mess up any existing projects.

fast-serve works for SPFx solutions, so you could follow the README and add it to your SPFx projects. You won't mess up anything, because fast-serve adds only a small footprint to the projects and doesn't break the default build process, so you could always come back to what you had before.
If you have any further questions, please ask.

Hi @s-KaiNet I too have been trying to integrate fast-serve in to a teams toolkit project. I imported an SPFx project I had working with fast-serve. teams toolkit seems to ignore the fast-serve configs. Do you have any updated recommendation? Thanks for any insight.

I will take a closer look what might be wrong there.

Is there any update on this issue? I don't think it's simply a case of installing it on a Teams Toolkit project. Something to do with the gulp.js file?

sorry, didn't have a chance to take a look at this one for a while. Now I'm returning to normal operation and will be able to take a look.

Could you tell me a little bit more where the problem is? If you use SPFx web parts with MS teams project, then it's just a folders with SPFx solution where you can add fast-serve and it works (at least on SharePoint workbench).
Do you have troubles running and debugging it as a Teams tab? What is your normal development flow, which commands do you execute and how?

@s-KaiNet I use:

Visual Studio Code
Teams Toolkit extension

Development flow:

Open Visual Studio Code
Click Teams Toolkit extension to the left in VSC
Click Create a New App
Click Tab (a tab in Teams)
Click SPFx - Works in Teams, Outlook and M365 app (Build UI with SPFx)
Click Create New SPFx Solution (Create Teams tab application using SPFx web parts)

Once built, the app is run by:
8. Clicking debug local button in Teams toolkit extension:

@cardinalpipkin thanks for the info. When click debug, do you select Teams workbench?

@cardinalpipkin thanks for the info. When click debug, do you select Teams workbench?

Yes, I use Teams workbench (Edge)

I created this guide on how you can configure MS Teams TK with fast-serve. Also, there is a working repository where you can try it (I used react-retail-dashboard sample as a base). Basically this commit adds fast-serve support, you can see the diff to figure out what was changed. But as mentioned, all the steps also documented in the guide.
Currently it's manual configuration, but I will think about a way of adding it to the fast-serve cli, i.e. you will be able to run something like npx fast-serve teams configure and it will created everything for you automatically.
Please try this guide and tell me if it works for you.

Hi - I've tried to install spfx-fast-serve on an existing teams toolkit proj.
I'm getting an error.
I can install npm install spfx-fast-serve -g with no problems.
Then when I try to run spfx-fast-serve it shows error:
node:internal/modules/cjs/loader:1031

  throw err;

  ^

Error: Cannot find module 'D:\Develop\myapp\myapp\.yo-rc.json'

Require stack:

- C:\Users\me\AppData\Roaming\npm\node_modules\spfx-fast-serve\lib\common\utils.js

- C:\Users\me\AppData\Roaming\npm\node_modules\spfx-fast-serve\lib\commands\PatchGulpFile.js

- C:\Users\me\AppData\Roaming\npm\node_modules\spfx-fast-serve\lib\commands\index.js

- C:\Users\me\AppData\Roaming\npm\node_modules\spfx-fast-serve\lib\index.js

    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)

    at Function.Module._load (node:internal/modules/cjs/loader:873:27)

    at Module.require (node:internal/modules/cjs/loader:1100:19)

    at getSpfxVersionString (C:\Users\me\AppData\Roaming\npm\node_modules\spfx-fast-serve\lib\common\utils.js:91:24)

    at getSpfxMinorVersion (C:\Users\me\AppData\Roaming\npm\node_modules\spfx-fast-serve\lib\common\utils.js:47:19)

    at Object.<anonymous> (C:\Users\me\AppData\Roaming\npm\node_modules\spfx-fast-serve\lib\index.js:23:54)

    at Module._compile (node:internal/modules/cjs/loader:1198:14)

    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)

    at Module.load (node:internal/modules/cjs/loader:1076:32) {

  code: 'MODULE_NOT_FOUND',

  requireStack: [

    'C:\\Users\\me\\AppData\\Roaming\\npm\\node_modules\\spfx-fast-serve\\lib\\common\\utils.js',

    'C:\\Users\\me\\AppData\\Roaming\\npm\\node_modules\\spfx-fast-serve\\lib\\commands\\PatchGulpFile.js',

    'C:\\Users\\me\\AppData\\Roaming\\npm\\node_modules\\spfx-fast-serve\\lib\\commands\\index.js',

    'C:\\Users\\me\\AppData\\Roaming\\npm\\node_modules\\spfx-fast-serve\\lib\\index.js'

  ]

}```

Here is the ```.yo-rc.json``` file:

{
"@microsoft/generator-sharepoint": {
"whichFolder": "subdir",

"solutionName": "myapp",

"environment": "spo",

"skipFeatureDeployment": true,

"isDomainIsolated": false,

"componentType": "webpart",

"template": "react",

"componentName": "myapp",

"plusBeta": false,

"isCreatingSolution": true,

"nodeVersion": "16.20.2",

"sdksVersions": {

  "@microsoft/microsoft-graph-client": "3.0.2",

  "@microsoft/teams-js": "2.9.1"

},

"version": "1.17.4",

"libraryName": "my-app",

"libraryId": "886da771-593e-489a-87e9-fcddbee1ab10",

"packageManager": "npm",

"solutionShortDescription": "myapp description"

}
}
I'm able to install fast serve on SPFx projects that don't use Teams Toolkit and are scaffolded the 'normal' way.

@cardinalpipkin thanks for the info! I updated the guide with your details.


Added support for options page + default_popup

I needed support for options page + default_popup. So I added them :-)

@fersman Hi, can you write some README and how to use that? I am not sure if I understand it correctly.
(sorry for delay 👎 )


Using GPCLK2  results in broken putty and vncviewer

Hi,
context RPI 3

gpiod v 60
uname -a : Linux raspberrypi 4.4.50-v7+ #970

Using simple program (see below) results in broken putty connection (not possible to recover) and also nvncviewer is loosing the connection.
Some ideas?
Johan
#include <stdlib.h>
#include <stdio.h>
#include <pigpio.h>
int main(int argc, char **argv)
{
if (gpioInitialise() < 0) {
fprintf(stderr,"gpio could not be initialized. \n");
exit(-1);
}
gpioSetMode(6, PI_ALT0);

int result = gpioHardwareClock(6, 10000000);

gpioTerminate();

}

result >= 0?
Does it work on other RPi (except model A, B)?

Hi
result =0.
Both wifi and ethernet connections are gone.
Using mouse and keyboard and screen, raspberry can be controlled.
i do have a pi 2 but did not try it yet

RPI 2 it is working.
Same linux version and pigpio .

Please retest with the latest version.

Solved


Change pallet dependencies to polkadot branch

We're currently pointing to the pallet repository master branch
https://github.com/integritee-network/worker/blob/cc5b5e3b97e42d61306c9f827cdbd34181e2956b/service/Cargo.toml#L64
But this prevents us to update the pallets master without breaking the update of the worker. We could simply switch to the polkadot-v0.9.x branch

Closing this as outdated. Sometimes it is necessary to include the newest changes of master, without generating a new branch.