Call weave attach-router

Fixes #1249

This might also work using some kind of
if weave.running?
    attach_router
else
    launch_router
end

logic?

Would the attach-router call do any undesired side-effects if there's already properly running weave?

Would the attach-router call do any undesired side-effects if there's already properly running weave?

Dunno... Looking at the attach-router implementation, it most does exactly the same stuff that launch-router does, but there's an additional fetch_router_args that does some command-line parsing for the -ipalloc-range... as long as that works correctly and it doesn't try and do any ipam_reclaim stuff?

Yeah no, the fetch_router_args parsing is broken for the ['--ipalloc-range', ''] used by the kontena agent:
+ fetch_router_args
+ docker inspect -f {{.Args}} weave
+ CONTAINER_ARGS=[--port 6783 --name ba:7a:6c:b1:e8:55 --nickname coreos-dev-02 --datapath datapath --ipalloc-range  --dns-effective-listen-address <IP_ADDRESS> --dns-listen-address <IP_ADDRESS>:53 --http-addr <IP_ADDRESS>:6784 --resolv-conf /var/run/weave/etc/resolv.conf --dns-domain kontena.local <IP_ADDRESS>]
+ grep -o -e -ipalloc-range [^ ]*
+ echo [--port 6783 --name ba:7a:6c:b1:e8:55 --nickname coreos-dev-02 --datapath datapath --ipalloc-range --dns-effective-listen-address <IP_ADDRESS> --dns-listen-address <IP_ADDRESS>:53 --http-addr <IP_ADDRESS>:6784 --resolv-conf /var/run/weave/etc/resolv.conf --dns-domain kontena.local <IP_ADDRESS>]
+ IPRANGE=-ipalloc-range --dns-effective-listen-address
+ grep -o -e --no-dns
+ echo [--port 6783 --name ba:7a:6c:b1:e8:55 --nickname coreos-dev-02 --datapath datapath --ipalloc-range --dns-effective-listen-address <IP_ADDRESS> --dns-listen-address <IP_ADDRESS>:53 --http-addr <IP_ADDRESS>:6784 --resolv-conf /var/run/weave/etc/resolv.conf --dns-domain kontena.local <IP_ADDRESS>]
+ NO_DNS_OPT=
+ true
+ wait_for_status weave http_call <IP_ADDRESS>:6784
+ container=weave
+ shift
+ true
+ http_call <IP_ADDRESS>:6784 GET /status
+ return 0
+ setup_awsvpc
+ [ -n  ]
+ populate_router
+ [ -n -ipalloc-range --dns-effective-listen-address ]
+ [ -n  ]
+ with_container_addresses ipam_reclaim_no_check_alive weave:expose

Is this harmful?

Bad idea

It messes up the IPRANGE=-ipalloc-range --dns-effective-listen-address bit and then proceeds to the ipam_reclaim stuff.

Reported upstream: https://github.com/weaveworks/weave/issues/2567
It doesn't seem like the spurious ipam_reclaim stuff would necessarily be harmful. It appears to do some HTTP requests against the Weave API, which just return HTTP 404 with the IPAM disabled.


WIP: re-solve side-heated circular cavity with Taylor-Hood

This follows overnight discussion of Taylor-Hood on Gitter.
Indeed, P2-P1 is much easier than Q2-P1 since then both variables share the same mesh.
So far only the pressure is plotted; being scalar and P1 this is easy with current facilities.  The exact answer is that the isobars should be rectangular hyperbolae, i.e. level-sets of xy.  This looks about right.
For further details of exact solution, see

G. D. McBain 2016 Creeping convection in a horizontally heated ellipsoid. In Proceedings of the Twentieth Australasian Fluid Mechanics Conference, Paper 548. (PDF)

Still thinking about how to postprocess the P2 vector velocity.

Nice job.
For visualising the flow field a simple approach would be
ux = velocity[basis['u'].nodal_dofs[0, :]]
uy = velocity[basis['u'].nodal_dofs[1, :]]
plt.quiver(mesh.p[0, :], mesh.p[1, :], ux, uy, np.sqrt(ux^2 + uy^2))

I didn't test it, but the idea is to simply discard the edge dofs and use only nodal data in the visual.

Thanks, yes, the .nodal_dofs attribute is just the ticket.  There's no problem in discarding the nonnodal arrows; vector fields usually need to be thinned out anyway for quiver-plots, as in ex18.

This seems to be complete? I'll check it out asap.

O. K. the point-pressures look O. K.; the exact solution is xy / 2.

I'm renaming and adding this to docs.


Integrate Searchlight Alerts

Alert if pod missing
Alert if disk free < x%
Define DB specific alerts, eg, for postgres master-slave replication if slave falls behind more than X bytes of master.
Elastic search shard not green.

This issue was moved to k8sdb/operator#18


Downloads very slow or don't finish properly

Steps to reproduce
1)go to an anime from Library (gogoanime source frequently does this issue)
2) Bulk Download more than 1 episode
3)wait 20 minutes for a single 100MB episode despite internet having a 100mbps speed
4) watch episode and realise only 2 out 24 minutes downloaded
Expected behavior
The episode finishes is 3-4 minutes (like it used to)
The episode should be viewable in full
Actual behavior
Partial episode downloaded
3-4 minute download time
Crash logs
No response
Aniyomi version
<IP_ADDRESS>
Android version
Android 12
Device
Samsung S10e
Other details
No response
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] If this is an issue with an extension, I should be opening an issue in the extensions repository.
[X] I have tried the troubleshooting guide.
[X] I have updated the app to version <IP_ADDRESS>.
[X] I have updated all installed extensions.
[X] I will fill out all of the requested information in this form.

The slow download issue is likely server throttling due to excessive bandwidth usage. I've noticed speeds slowing as well.
I have also experienced broken downloads and video corruption.
Sometimes redownloading vids will fix.


Inputs' dynamic attributes are translated in dev and SSR but not in SSG

I'm using @intlify/nuxt3  to internationalize a website. I build and deployed the site in ssr: true and target: server (default) and hosted it on vercel and It works good in dev, preview and production.
Now I'm trying to build the app with SSG (ssr: true and target: static) using the following steps:

Added target: static to the nuxt.config.ts
Runned nuxt generate instead of nuxt build

The complete app is translated correctly in dev upon choosing a locale. However, after running nuxt generate and nuxt preview, the app is almost completely translated except of buttons having dynamic placeholder and aria-label atrributes.
my component snippet:
<form>
  <input
    type="number"
    name="flight-no"
    :aria-label="$t('sections.flight_request.form.flight_no')"
    :placeholder="$t('sections.flight_request.form.flight_no')"
  />

  <input
    type="text"
    name="full-name"
    :aria-label="$t('sections.flight_request.form.full_name')"
    :placeholder="$t('sections.flight_request.form.full_name')"
  />
</form>

The project repo on GitHub: https://github.com/MuhammadM1998/EGSA

lucky man, translations in my project not work in ssr, ssg i not try


Fixed first mx link

Huh, why would you change this? My github profile is indeed at https://github.com/zhiayang, not requimrar...

Sry, but then why is the second link to mx pointing to requimrar ? Moreover, the first link is broken.

My mistake, the second link is the wrong one. I did notice the first link is broken, but I suspect it's because it was being treated as a relative link, and the https:// bit fixes that problem.

So it should be OK now :+1:


Ask for user confirmation in registerBeforeSendCallback

As mentioned in this issue: https://github.com/bugsnag/bugsnag-react-native/issues/422 there will be soon a new version with async options.
When will it come out?
In the meantime, how can i ask for user confirmation before sending the crash report?
configuration.registerBeforeSendCallback(function(report, error) {
        Alert.alert(
            'Send crash report',
            'Can the crash report be sent?',
            [
                {
                    text: 'Cancel',
                    onPress: () => console.log('Cancel Pressed'),
                    style: 'cancel'
                },
                { text: 'OK', onPress: () => console.log('OK Pressed') }
            ],
            { cancelable: false }
        );
        return false; // no error report will be sent
    });

How can i make this work?

Hey @djschilling, we don't have a timeline for this for public release, but it's in the works and should be here soon!
You can use the before send callback to reject a report by using return false; based on whatever criteria you deem necessary as long as the function remains synchronous. This could be a really poor UX for an end-user if multiple reports are getting thrown, though.
There's more info in our docs here: https://docs.bugsnag.com/platforms/react-native/react-native/configuration-options/#beforesendcallbacks.


Variant Spells result in "cannot read properties of undefined reading 0" error

Trying to cast a spell with at least one variant listed (eg. Heal, Needle Darts,..) will result in an error and no entry posted in chat as usual.
Foundry, system etc is up to date and already reinstalled, modules are deactivated.
Deleting the variants makes the error go away.²

This is typically a symptom of installing V11 on top of V10 (that is, without uninstalling V10 first). Might that be the case here?
See, e.g., https://github.com/foundryvtt/foundryvtt/issues/9330.

Yeah i thought so too, but i reinstalled foundry on my server and nothing changed...

Unfortunately this isn't enough information to speculate on (besides the common issue). If you come to the system's foundry server (https://discord.gg/pf2e), we can help you troubleshoot.


Bad Artifactory Build Info Url in the Artifactory tab

Describe the bug
Url to go to Build Info in Artifactory is bad : [Artifactory connection Url]//webapp/builds/.....
To Reproduce
Publish build info from Azure devops pipeline to Artifactory V7.12.6
Expected behavior
Urlé to go to Build info in Artifactory should be [Artifactory connection Url]//ui/builds/.....
Screenshots
N/A
Versions

Artifactory Azure DevOps extension version: 1.11.2
Agent operating system: Windows / Linux
JFrog Artifactory version: 7.12.6

Additional context
N/A

Hi @ygo74 ,
The redirection to the correct path is done by Artifactory when logged in.
If you are logged in and the redirection does not work please provide some more details and possibly the relevant Artifactory logs to allow us to investigate this further.
Thanks


Can we execute gsUtil commands inside c# program

Can we execute gsUtil commands inside a c# program?

We don't provide any specific means to do so - and wouldn't intend to. But you could use the PATH environment variable, then find gcloud.cmd and create a new process with UseShellExecute=true to run it.


Option to set public URL for specifications that are going to be published

Public or base URL for a specification that other specifications will use to reference it.
There is also a question of when to use relative/absolute IRIs that should be answered before the issue.

related to #310

Also, when such URL is specified, a JSON Schema should start to enforce the presence of the JSON-LD @context fixed to the URL where it should be published.


we want to get the user_pseudo_id (bigquery) in the client SDK

We want to find a method to get the user_pseudo_id of bigquery table in the client-side.

Hi @armnotstrong,
The Firebase Games SDK suite doesn't provide APIs access Google Cloud BigQuery.  If I'm understanding your request correctly then please investigate the BigQuery SDKs from Google Cloud, or if that's not what you're looking for then please feel free to re-open this issue and @ me.
Thanks!


Run apt-get update before installing packages

This helps prevent the missing packages problem. Still not a perfect
solution, of course, but hey, it builds now.

For @tie-rack in case it's helpful.

It may build, but it doesn't run.
exec: "/run.sh": stat /run.sh: no such file or directoryFATA[0000] Error respons
e from daemon: Cannot start container a72fa7ea42998e6384f3039345f63af62e6bd55cf1
d7d1841d28f274b726e9ee: exec: "/run.sh": stat /run.sh: no such file or directory

You didn't say anything about running it, sheesh. That's probably just good old fashioned bit rot. I don't think anyone has used this Dockerfile until you tried.

Maybe I'm missing something, but it doesn't look like this docker container was ever runnable. The Dockerfile has always referenced a run.sh file which has never existed.
And if no one's used this Dockerfile before, why is it here? Why is it at the top of the README? To what end has it been maintained? Should it be removed? Or fixed? Or started over?

Honestly it's been so long since I've touched it I don't remember the relevant details. I would say we should fix it.

To address your other questions about why there's a Dockerfile at all: At some point we do want to run this and any other VIP services under a similar Docker hosting infrastructure as the one we settle on for TurboVote, Ballot Scout, etc.
The README stuff seems to have been added prematurely. I'm horrified that past me could have put that in there without actually trying it. But I guess I did. Mea culpa.

You know, I've got this working. Part of it, I guess, is that we just need to update our base image (and then the intermediate images up to this one (which will also help papertrail).
I'll open a PR that gets this running in Docker. Closing for now.


OIDC login is not being re-imported after tokens expire

Describe the bug
We log into our clusters via OIDC + dex. After adding our cluster in lens everything seems OK. However eventually that token expires.. So the next day, after that token expired we get:
Connecting ...
2020/08/06 09:02:38 http: proxy error: failed to refresh token: oauth2: cannot fetch token: 400 Bad Request
Response: {"error":"invalid_request","error_description":"Refresh token is invalid or has already been claimed by another client."}

This is after the user has refreshed their token and pulled a new one into their KUBECONFIG.
I'm using a version of this to update the KUBECONFIG: https://github.com/pusher/k8s-auth-example
Expected behavior
When we "add a server" in Lens it appears to import settings from the KUBECONFIG, ideally it should examine the token's refresh time, if it has expired then it would be great if it tried re-imported the settings from KUBECONFIG (or just prompted users to re-auth?)
Screenshot

Environment (please complete the following information):

Lens Version: 3.5.2
OS: Linux
Installation method: AppImage

Logs:
error: Failed to connect to cluster main.eu-staging: {"name":"StatusCodeError","statusCode":502,"message":"502 - \"Refresh token is invalid or has already been claimed by another client.\"","error":"Refresh token is invalid or has already been claimed by another client.","options":{"json":true,"timeout":10000,"headers":{"host":"9482819f-0a1f-4fed-9d0c-6bb4baf94ae4.localhost:46251"},"uri":"http://<IP_ADDRESS>:46251/api-kube/version","simple":true,"resolveWithFullResponse":false,"transform2xxOnly":false},"response":{"statusCode":502,"body":"Refresh token is invalid or has already been claimed by another client.","headers":{"content-type":"text/plain","date":"Thu, 06 Aug 2020 07:57:38 GMT","connection":"close","transfer-encoding":"chunked"},"request":{"uri":{"protocol":"http:","slashes":true,"auth":null,"host":"<IP_ADDRESS>:46251","port":"46251","hostname":"<IP_ADDRESS>","hash":null,"search":null,"query":null,"pathname":"/api-kube/version","path":"/api-kube/version","href":"http://<IP_ADDRESS>:46251/api-kube/version"},"method":"GET","headers":{"host":"9482819f-0a1f-4fed-9d0c-6bb4baf94ae4.localhost:46251","accept":"application/json"}}}}

Kubeconfig:
Kubeconfig's look like this (but with more servers typically)..
apiVersion: v1
clusters:
- cluster:
    certificate-authority-data: REDACTED
    server: https://api.main.eu-staging.acmecorp.org
  name: main.eu-staging
contexts:
- context:
    cluster: main.eu-staging
    namespace: default
    user<EMAIL_ADDRESS>  name: main.eu-staging
current-context: main.eu-staging
kind: Config
preferences: {}
users:
- name<EMAIL_ADDRESS>  user:
    auth-provider:
      config:
        client-id: kubernetes
        client-secret: REDACTED
        id-token: REDACTED
        idp-issuer-url: https://dex.acmecorp.org
        refresh-token: REDACTED
      name: oidc

I'm using an Azure AD connected AKS cluster which has a similar issue, the but I am not seeing any token refresh, just start getting 401 failures after the token expires. The annoying thing in this situation is the tokens only last an hour so I need to remove the cluster from Lens, use kubectl on a command line to manually refresh the token and then re-add it to Lens.
I had a look at the code to see if I can fix it, but unfortunately the cluster management code is written in Vue and I think the copying of cluster config into a private copy means this won't be easy to solve, especially as I know nothing about this codebase.
Given the kubectl tools work nicely, it would be nice if we could run our own external proxy that Lens could use.

FWIW I actually followed the instructions on the welcome screen and for my scenerio used https://github.com/Azure/kubelogin to solve the refresh token issue (hopefully - need to check back in an hour). I didn't think this was an option but it appears their download includes binaries for all platforms in a single zip file, which confused me initially.

I'm in the same situation here, but with on prem cluster. Is there any solution or workaround to solve this problem? Thx!

This behaviour should be fixed in the upcoming 3.6 release where Lens does not import kubeconfig from a filesystem. First beta should be out within couple of days.

Thank you so much! :)

Please could you test 3.6.0-beta.1 which is out now.

@nevalla thank you very much, we tested it in the weekend and it seems working! thanks for the help and the feature! :)

Thanks!

Hi!
Up until v3.6.4 this feature was working well (re-importing after token expiration), but now with v3.6.4 it seems to be broken again, at least for me (both on my Windows and Ubuntu machine).
We are using the exact same OIDC+dex as before (we are working together with @chriske ) and for me/us at least, the "400 Bad Response" error message about the token problems came back:

Is there anyone else who is experiencing the same or is it just me/us somehow? :)

I too think 3.6.4 is broken with respect to this issue. I've been fine as I am using the external azure kubelogin, however a colleague who is using the AzureAD auth started having this issue happen again.


cloud deployment/hosting for OpenDP App

decide platform
[x] azure credit information

[x] docker images

[x] vue prod files

[ ] k8s spec
[ ] postgres image w/ persistent data
[ ] env secrets

Looks like the Azure app engine is an option: https://docs.microsoft.com/en-us/azure/app-service/tutorial-python-postgresql-app

[ ] csrf issues after login

https://docs.djangoproject.com/en/3.2/ref/csrf/#ajax

^ Was a custom cookie issue....

serve nginx static files

[ ] STATIC_ROOT

Dockerfile, set new DEFAULT_STATIC_ROOT

Have the same thing for npm build
-[ ] nginx setup

[ ] serve from new DEFAULT_STATIC_ROOT
[ ] max upload size
[ ] proxy to app

moving db link and https to new issue


Lombok added

This PR adds Lombok, which gets rid of a lot of boilerplate code such as getters, setters and some constructors.

@maximAtanasov please have a look at the failing travis build

It seems that lombok broke with the new gradle version. I've fixed it now

@maximAtanasov  one last change (see open comment)

@maximAtanasov  please resolve the conflicts with master due the merge of the Spring Boot 2 Branch

@thombergs ,
I have  merged this PR with master


Fixes for PHP 7.3

Re: #2884

I think that we don't need to run composer dump-autoload anymore, because autoload_classmap.php wouldn't change. (FYI, if I try, I get the same programmatic differences in ClassLoader.php as before.)

@nitriques: I added a commit with the requirements change. This might cause some headache for extension developers. Unfortunately, we never officially added the PHP compatibility attributes to the extension meta XML schema.
However, my big system (on PHP 7.3) uses a lot of extensions, and I have only found a few issues (and sent PRs). And the more important point is: Symphony LTS should officially run on the current PHP version. I'd rather risk a bug than make Symphony look "discontinued".

Unfortunately, we never officially added the PHP compatibility attributes to the extension meta XML schema.

We did it ;) it is not released yet...

Symphony LTS should officially run on the current PHP version.

Yes, but we can't drop anything!

@nitriques

Yes, but we can't drop anything!

Sure you can! Or does someone pay you to support the dead PHP versions?
And it is a wrong signal to the users of the CMS, because if you support the old PHP versions the user believes he does not have to do anything. But it is a security risk!
As a (open source) project without charge, it should not be responsible for problems with unsupported PHP versions.

Look also at semantic versioning: "What should I do if I update my own dependencies without changing the public API?"


Inaccurate displayed output in Example 1 in README

I think the output of the Example 1 is the following one.
// Output:
// {
//   user: {
//     userId: 1,
//     userName: 'John Doe',
//     street: {
//       userStreet: '123 Main St',
//       userCity: 'Anytown'
//     }
//   }
// }

Yes the transformation will take place into the subobject according to the given schema. Maybe it was misleading a little bit. Thank you I have changed it

I think it is correct as it is. I will update the test to give more details. Thank you for checking George. The schema is describing what needs to be changed so it will ignore intermediatery values. For example if I need to transform address as well this schema will work
const apiResponse: JsonStructure = {
        user: {
          id: 1,
          name: "John Doe",
          address: {
            street: "123 Main St",
            city: "Anytown",
          },
        },
      };

      const schema = {
        "user.id": "userId",
        "user.name": "userName",
        "user.address": "street",
        "user.address.street": "userStreet",
        "user.address.city": "userCity",
      };

      const transformedResponse = transformJsonKeys(apiResponse, schema);

      const expectedTransformed = {
        user: {
          userId: 1,
          userName: "John Doe",
          street: {
            userStreet: "123 Main St",
            userCity: "Anytown",
          },
        },
      };


New release into Rolling

Hello!
It looks like novatel_gps_driver is failing to build in Rolling: https://build.ros2.org/view/Rbin_uN64/job/Rbin_uN64__novatel_gps_driver__ubuntu_noble_amd64__binary/ .
The good news is that it looks like this is already fixed in the sources by #116 .  Could you please do a new release of this package into at least Rolling, which will fix the error?  Thank you!

@clalancette Thanks, I released 4.1.2 for Humble, Iron, and Rolling.
https://github.com/ros/rosdistro/pull/40246
https://github.com/ros/rosdistro/pull/40247
https://github.com/ros/rosdistro/pull/40248

@clalancette Thanks, I released 4.1.2 for Humble, Iron, and Rolling.

Thank you!


[SD CHANGE] Hardware components listing

On behalf of the CCCS
SD page 69 para 319 mentions "The developer shall provide documentation identifying the list of software and hardware components that compose the TOE. Hardware components should identify at a minimum the processors used by the TOE. "

Should hardware components be in the scope of AVA activities in the Application Software cPP?
The scope of developer disclosure in context of AVA is especially important since FPT_LIB_EXT.1 Use of Third Party Libraries have been removed, leaving AVA_VAN as the only requirement mandating disclosing third-party libraries. Please further clarify what is considered “software … components that compose the TOE” and how to identify them.

We have removed hardware documentation requirements from the SD.
The ITC believes that this cPP targets applications that are capable of executing on general purpose compute hardware with general purpose operating systems and therefore such detail is unnecessary at the hardware level.


Does this estimate depth from image to enhance AR effects?

Like AR Core and other framework that estimates depth from single image. Does this do the same? If yes, is it enabled by default?

Does the current version of this library has option of using depth data to improve the AR effect. If yes, then basically I have depth camera that gives real depth. Can I pass the depth map data somewhere in your framework to improve accuracy ar effects? https://github.com/intel/depth-camera-web-demo

We don't use depth camera and there is nothing planned to support it since depth camera video stream is not standardized in the web browser.

To be a bit more accurate, if this stuff was validated it would be great: https://www.w3.org/TR/mediacapture-depth/
Currently intel realsense camera depth stream is available in the web browser, but it is a bit a hack and it is not standardized (the 16 bits are mapped to red and green channels).
Then it would be possible to do background removal using jeeliz facefilter (we take the depth of the face and we remove stuffs farther away). But I won't work on it if there is no standard, and if mobile phones do not make the depth video stream available in the web browser.


mkdocs 1.2 replaced DEFAULT_SCHEMA with defaults.get_schema()

The following line needs to be updated to support mkdocs 1.2:
https://github.com/timothycrosley/portray/blob/cd60f2a22d18ec025fb341c0010de31b2523a1a2/portray/render.py#L172
https://github.com/mkdocs/mkdocs/blob/master/docs/about/release-notes.md#backward-incompatible-changes-in-12

The mkdocs.config.DEFAULT_SCHEMA global variable has been replaced with the function mkdocs.config.defaults.get_schema(), which ensures that each instance of the configuration is unique (mkdocs/mkdocs#2289).

I was going to report this, but you were faster and there's a fix already... yay for portray 🎉

Hi @Peter200lx thanks for reporting and @myedibleenso thanks for your fix! portray 1.7.0 has been released with the compatibility fix in place.

Oh yeah, my docs CI is green again ᕕ( ᐛ )ᕗ


Do you still use Flow?

Hi,
I started reading your code, and the first thing I noticed was that your readme states that you use Flow and not TypeScript, but all the code I've seen so far is TS.

Hello @alcuadrado.
The codebase was migrated to TS a while ago, the readme is quite outdated.
I'm closing this as it's kind of a duplicate of https://github.com/gnosis/safe-react/issues/1157
Feel free to re-open or ask anything else.


Traefik-consul failed to get the key and values with docker swarm

Do you want to request a feature or report a bug?
Bug
What did you do?
I'm trying to deploy a traefik stack on docker with consul as a key / value store. My cluster is made of three nodes (three masters) :
Following this documentation, traefik works perfectly for docker swarm https://docs.traefik.io/user-guide/cluster-docker-consul/ Certificates are created and I can route to different services also. No issues at all. But in consul , I could not find any key values and it is empty as seen below. When I click the docker option as below, I can see all services being listed.
Kindly let me know if there any additions configs that I have to perfrom.

What did you expect to see?
The values get stored in the consul
What did you see instead?
Empty values at the consul
https://stackoverflow.com/questions/53667041/traefik-consul-failed-to-get-the-key-and-values-with-docker-swarm
Output of traefik version: (What version of Traefik are you using?)
1.5

What is your environment & configuration (arguments, toml, provider, platform, ...)?
# version: "3.2"
services:
  traefik_init:
    image: traefik:1.5
    command:
      - "storeconfig"
      - "--api"
      - "--entrypoints=Name:http Address::80 Redirect.EntryPoint:https"
      - "--entrypoints=Name:https Address::443 TLS"
      - "--defaultentrypoints=http,https"
      - "--acme"
      - "--acme.storage=traefik/acme/account"
      - "--acme.entryPoint=https"
      - "--acme.httpChallenge.entryPoint=http"
      - "--acme.onHostRule=true"
      - "--acme.onDemand=false"
      -<EMAIL_ADDRESS>      - "--docker"
      - "--docker.swarmMode"
      - "--docker.domain=mycompany.com"
      - "--docker.watch"
      - "--consul"
      - "--consul.endpoint=consul:8500"
      - "--consul.prefix=traefik"
    networks:
      - traefik
    deploy:
      restart_policy:
        condition: on-failure
    depends_on:
      - consul
  traefik:
    image: traefik:1.5
    depends_on:
      - traefik_init
      - consul
    command:
      - "--consul"
      - "--consul.endpoint=consul:8500"
      - "--consul.prefix=traefik"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    networks:
      - webgateway
      - traefik
    ports:
      - target: 80
        published: 80
        mode: host
      - target: 443
        published: 443
        mode: host
      - target: 8080
        published: 8080
        mode: host
    deploy:
      mode: global
      placement:
        constraints:
          - node.role == manager
      update_config:
        parallelism: 1
        delay: 10s
      restart_policy:
        condition: on-failure
  consul:
    image: consul
    command: agent -server -bootstrap-expect=1
    volumes:
      - consul-data:/consul/data
    environment:
      - CONSUL_LOCAL_CONFIG={"datacenter":"us_east2","server":true}
      - CONSUL_BIND_INTERFACE=eth0
      - CONSUL_CLIENT_INTERFACE=eth0
    deploy:
      replicas: 1
      placement:
        constraints:
          - node.role == manager
      restart_policy:
        condition: on-failure
    networks:
      - traefik

networks:
  webgateway:
    driver: overlay
    external: true
  traefik:
    driver: overlay

volumes:
  consul-data:
      driver: local

If applicable, please paste the log output in DEBUG level (--logLevel=DEBUG switch)
traefik_consul.1.q7egi9lzz6e9@example1099    |     2018/12/07 09:28:58 [INFO] serf: EventMemberJoin: 636badc2c448 <IP_ADDRESS>
traefik_consul.1.vx3sp9vvv5zc@example1100    |     2018/12/05 10:54:36 [INFO] raft: Node at <IP_ADDRESS>:8300 [Leader] entering Leader state
traefik_consul.1.vx3sp9vvv5zc@example1100    |     2018/12/05 10:54:36 [INFO] consul: cluster leadership acquired
traefik_consul.1.vx3sp9vvv5zc@example1100    |     2018/12/05 10:54:36 [INFO] consul: New leader elected: 053068134e4b
traefik_consul.1.q7egi9lzz6e9@example1099    |     2018/12/07 09:28:58 [INFO] consul: Handled member-join event for server "636badc2c448.us_east2" in area "wan"
traefik_consul.1.q7egi9lzz6e9@example1099    |     2018/12/07 09:28:58 [INFO] consul: Adding LAN server 636badc2c448 (Addr: tcp/<IP_ADDRESS>:8300) (DC: us_east2)
traefik_consul.1.vx3sp9vvv5zc@example1100    |     2018/12/05 10:54:36 [INFO] consul: member '053068134e4b' joined, marking health alive
traefik_consul.1.q7egi9lzz6e9@example1099    |     2018/12/07 09:28:58 [INFO] agent: Started DNS server <IP_ADDRESS>:8600 (udp)
traefik_consul.1.q7egi9lzz6e9@example1099    |     2018/12/07 09:28:58 [INFO] agent: Started DNS server <IP_ADDRESS>:8600 (tcp)
traefik_consul.1.vx3sp9vvv5zc@example1100    |     2018/12/05 10:54:37 [INFO] agent: Synced node info
traefik_consul.1.vx3sp9vvv5zc@example1100    | ==> Failed to check for updates: Get https://checkpoint-api.hashicorp.com/v1/check/consul?arch=amd64&os=linux&signature=40feeaea-1ebd-e2a2-009d-312ad3acd2aa&version=1.4.0: dial tcp: lookup checkpoint-api.hashicorp.com on <IP_ADDRESS>:53: no such host
traefik_consul.1.vx3sp9vvv5zc@example1100    | ==> Failed to check for updates: Get https://checkpoint-api.hashicorp.com/v1/check/consul?arch=amd64&os=linux&signature=40feeaea-1ebd-e2a2-009d-312ad3acd2aa&version=1.4.0: dial tcp: lookup checkpoint-api.hashicorp.com on <IP_ADDRESS>:53: no such host
traefik_consul.1.q7egi9lzz6e9@example1099    |     2018/12/07 09:28:58 [INFO] agent: Started HTTP server on <IP_ADDRESS>:8500 (tcp)
traefik_consul.1.vx3sp9vvv5zc@example1100    |     2018/12/07 09:28:47 [INFO] agent: Caught signal:  terminated
traefik_consul.1.q7egi9lzz6e9@example1099    |     2018/12/07 09:28:58 [INFO] agent: started state syncer
traefik_consul.1.q7egi9lzz6e9@example1099    |     2018/12/07 09:29:06 [ERR] agent: failed to sync remote state: No cluster leader
traefik_consul.1.vx3sp9vvv5zc@example1100    |     2018/12/07 09:28:47 [INFO] agent: Graceful shutdown disabled. Exiting
traefik_consul.1.q7egi9lzz6e9@example1099    |     2018/12/07 09:29:07 [WARN] raft: Heartbeat timeout from "" reached, starting election
traefik_consul.1.vx3sp9vvv5zc@example1100    |     2018/12/07 09:28:47 [INFO] agent: Requesting shutdown
traefik_consul.1.vx3sp9vvv5zc@example1100    |     2018/12/07 09:28:47 [INFO] consul: shutting down server
traefik_consul.1.q7egi9lzz6e9@example1099    |     2018/12/07 09:29:07 [INFO] raft: Node at <IP_ADDRESS>:8300 [Candidate] entering Candidate state in term 2
traefik_consul.1.vx3sp9vvv5zc@example1100    |     2018/12/07 09:28:47 [WARN] serf: Shutdown without a Leave
traefik_consul.1.vx3sp9vvv5zc@example1100    |     2018/12/07 09:28:47 [WARN] serf: Shutdown without a Leave
traefik_consul.1.q7egi9lzz6e9@example1099    |     2018/12/07 09:29:07 [INFO] raft: Election won. Tally: 1
traefik_consul.1.vx3sp9vvv5zc@example1100    |     2018/12/07 09:28:47 [INFO] manager: shutting down
traefik_consul.1.q7egi9lzz6e9@example1099    |     2018/12/07 09:29:07 [INFO] raft: Node at <IP_ADDRESS>:8300 [Leader] entering Leader state
traefik_consul.1.vx3sp9vvv5zc@example1100    |     2018/12/07 09:28:47 [INFO] agent: consul server down
traefik_consul.1.vx3sp9vvv5zc@example1100    |     2018/12/07 09:28:47 [INFO] agent: shutdown complete
traefik_consul.1.q7egi9lzz6e9@example1099    |     2018/12/07 09:29:07 [INFO] consul: cluster leadership acquired
traefik_consul.1.vx3sp9vvv5zc@example1100    |     2018/12/07 09:28:47 [INFO] agent: Stopping DNS server <IP_ADDRESS>:8600 (tcp)
traefik_consul.1.q7egi9lzz6e9@example1099    |     2018/12/07 09:29:07 [INFO] consul: New leader elected: 636badc2c448
traefik_consul.1.q7egi9lzz6e9@example1099    |     2018/12/07 09:29:07 [INFO] consul: member '636badc2c448' joined, marking health alive
traefik_consul.1.vx3sp9vvv5zc@example1100    |     2018/12/07 09:28:47 [INFO] agent: Stopping DNS server <IP_ADDRESS>:8600 (udp)
traefik_consul.1.vx3sp9vvv5zc@example1100    |     2018/12/07 09:28:47 [INFO] agent: Stopping HTTP server <IP_ADDRESS>:8500 (tcp)
traefik_consul.1.q7egi9lzz6e9@example1099    |     2018/12/07 09:29:08 [INFO] agent: Synced node info
traefik_consul.1.vx3sp9vvv5zc@example1100    |     2018/12/07 09:28:48 [WARN] agent: Timeout stopping HTTP server <IP_ADDRESS>:8500 (tcp)
traefik_consul.1.vx3sp9vvv5zc@example1100    |     2018/12/07 09:28:48 [INFO] agent: Waiting for endpoints to shut down
traefik_consul.1.q7egi9lzz6e9@example1099    | ==> Failed to check for updates: Get https://checkpoint-api.hashicorp.com/v1/check/consul?arch=amd64&os=linux&signature=6568c199-30b7-ba60-5c35-470a72c434ba&version=1.4.0: dial tcp: lookup checkpoint-api.hashicorp.com on <IP_ADDRESS>:53: no such host
traefik_consul.1.vx3sp9vvv5zc@example1100    |     2018/12/07 09:28:48 [INFO] agent: Endpoints down
traefik_consul.1.vx3sp9vvv5zc@example1100    |     2018/12/07 09:28:48 [INFO] agent: Exit code: 1

Do we have any update on this??

That screenshot of the dashboard looks normal. The consul config will be empty because you didn't add any endpoints during the init container run, which is fine. You're in docker swarm mode which means it's dynamic based on future services you create with the right labels, which will then show in the dashboard under the docker tab.

@BretFisher  At docker tab I can see all the frontend rules and backend rules configured in the labels.
Its only empty at the consul tab, could you tell me what endpoints has to be added during the init container run?

@BretFisher @ldez  could you look into this issue..  Please.
https://stackoverflow.com/questions/53809319/swagger-ui-adds-a-80-to-the-request-url-when-used-with-https-with-traefik-as-re

I have a similar question. I have the same configuration and although I can deploy services and getting certificates and routes, on traefik web frontend consul tab is empty (traefik tab has frontends and backends configurations)   and also on consul UI I can see only traefik/acme/account key and nothing else. Should routes and certificates been visible as key/values on consul UI?


Allow users to filter faculty mentors opportunities

I'm a fan of the Pubmed layout, which has drop down menu options:

Under drop down options for Sort by, we should include "Most recent" and "Alphabetical"

To make the number of items underneath the search bar more streamlined, we could put the degree checkboxes (#73) in a dropdown menu format as well, with the title "Mentor Degrees." Another feature that would be great to add as a drop down format is to allow sorting by mentorship opportunities. This way, students can search for something like "Dermatology" in the search bar, and then sort by MD and shadowing.
Here's what the headings/ drop down options could look like:
Search bar ________________________________________
Mentor Degrees: [Checked option(s)] Sort By: [Checked option] Opportunities: [Checked option]
Options for "Mentor Degrees": See #73
Options for "Sort By":
[ ] Most recent
[ ] Alphabetical
Options for "Opportunities":
[ ] Shadowing
[ ] Networking
[ ] Goal setting
[ ] Discuss personal life
[ ] Career guidance
[ ] Student group support
[ ] Show all opportunities

See #59 for sorting by opportunities.

One more sorting option, to include next to "Opportunities":
Hospital affiliations:
[ ] Beth Israel Deaconess Medical Center
[ ] Boston Children's Hospital
[ ] Brigham and Women's Hospital
[ ] Broad Institute
[ ] Cambridge Health Alliance
[ ] Dana-Farber Cancer Institute
[ ] Forsyth Institute
[ ] Harvard Pilgrim Health Care
[ ] Hebrew SeniorLife
[ ] Joslin Diabetes Center
[ ] Judge Baker Children’s Center
[ ] Massachusetts Eye and Ear Infirmary
[ ] Massachusetts General Hospital
[ ] McLean Hospital
[ ] Mount Auburn Hospital
[ ] Schepens Eye Research Institute
[ ] Spaulding Rehabilitation Hospital
[ ] Veterans Affairs Boston Healthcare System
[ ] Wyss Institute

Changed the title to narrow down the scope. As is it might still be worth splitting this into multiple issues.

Splitting into multiple issues.


Does it support cuda11.8 and H100?

Does it support cuda11.8 and H100? If does, then what is the fgemm_gpu version and torch version they use?

Please check this https://fburl.com/u8rap45h


Vagrant is out-of-date (2.2.3 -> 2.2.5)

I'm creating this issue in case anyone wants to take a look.
In the expression there is written:
  # NOTE: bumping the version and updating the hash is insufficient;
  # you must use bundix to generate a new gemset.nix in the Vagrant source.

I've already used bundix to update a gem, but I don't see a Gemfile in the vagrant folder (only a gemset.nix), so I'm lost 😔

cc @aneeshusa

Context + update script: https://github.com/NixOS/nixpkgs/pull/47519#issuecomment-425645412
I'll give it a try


State not included in Particle Encoder

Hi, I was looking at the training script and noticed for all tasks that model_config[state_dim] is set to zero always. Is this intended? I was under the impression that past state information is used to train the particle encoder from the paper. Are there advantages/disadvantages to using state information in the particle encoder? Any clarification would be appreciated. Thank you!

Hi, thanks for the question.
State information is necessary for training the dynamics model. In our tasks, they are added to the relation encoder instead of the particle encoder. As mentioned in the 'translation equivariance' paragraph in the paper, we pass the relative position difference between the receiver and sender particles, in the current frame and history frames, to the relation encoder, instead of passing absolute positions to the particle encoder in order to achieve translation equivariance. This is by setting model_config[rel_distance_dim] to 3 and model_config[state_dim] to 0.
If model_config[state_dim] is set to 3 and model_config[rel_distance_dim] is set to 0, then the particle encoder will use past state information. This will reduce some computation (as the number of relations is typically larger than the number of vertices), but loses the translation equivariance.

This makes sense, thank you!


Get vulnerability information from guac

The case:

Advisory RHSA-2023:0946

CVE-2022-4203
CVE-2022-4304
CVE-2022-4450
CVE-2023-0215
CVE-2023-0216
CVE-2023-0217
CVE-2023-0286
CVE-2023-0401

Fixed in: e.g. openssl-1:3.0.1-47.el9_1.ppc64le

SBOM: https://access.redhat.com/security/data/sbom/beta/spdx/ubi9-9.1.0-1750.json.bz2
Contains:

pkg:rpm/redhat/openssl-libs@3.0.1-43.el9_0?arch=x86_64
pkg:rpm/redhat/openssl-libs@3.0.1-43.el9_0?arch=ppc64le&epoch=1
pkg:rpm/redhat/openssl-libs@3.0.1-43.el9_0?arch=s390x&epoch=1
pkg:rpm/redhat/openssl-libs@3.0.1-43.el9_0?arch=aarch64&epoch=1
pkg:rpm/redhat/openssl@3.0.1-43.el9_0?arch=s390x&epoch=1
pkg:rpm/redhat/openssl@3.0.1-43.el9_0?arch=ppc64le&epoch=1
pkg:rpm/redhat/openssl@3.0.1-43.el9_0?arch=aarch64&epoch=1
pkg:rpm/redhat/openssl@3.0.1-43.el9_0?arch=x86_64

Querying quac (example) - [] indicates "no results":
[2023-10-13T15:35:59.695Z DEBUG spog_api::sbom::vuln] Cert (pkg:rpm/redhat/openssl-libs@3.0.1-43.el9_0?arch=x86_64): []

Expecation: package gets flagged with vulnerability, as 3.0.1-43 comes before the fixed version 3.0.1-47.

Investing, it seems that neither Snyk nor OSV think these packages have any vulnerabilities.
When debugging into the Snyk collector, it seems to indicate a few issues (dunno if its ours or theirs)

"redhat" is not a valid vendor. Expected "rhel"
missing distribution. https://docs.snyk.io/scan-applications/snyk-container/how-snyk-container-works/supported-operating-system-distributions#red-hat-enterprise-linux-rhel -- I'm unsure how that's supposed to be encoded in the pURL.

Okay, valid pURL that snyk will accept to scan:
pkg:rpm/rhel/openssl-libs@3.0.1-43.el9_0?arch=x86_64&distro=9

I suspect our collector-snyk will need some purl rewriting rules perhaps.

@mrizzi so, in the fix from #683 should enable Snyk/OSV to sort out "known affected" at least at the base (possibly ProdSec-angering) level.
Then the VEX info can be used to subtract it back out, if we've otherwise remediated it?

@mrizzi so, in the fix from #683 should enable Snyk/OSV to sort out "known affected" at least at the base (possibly ProdSec-angering) level.
Then the VEX info can be used to subtract it back out, if we've otherwise remediated it?

thanks for the info @bobmcwhirter.
I'll give it a try ASAP to understand the full workflow (and being able to check some vulns will be returned to SPoG API)

I tried this case again today. Yesterday, I saw all kinds of vulnerabilities for a container. Presumably the version was ignored when searching packages.
Today, I again get nothing.


added c# recursion algorithm sample (#788)

Assigned Issue Number ?
#788
Language Opted ?
c#
Number of files added or updated ?
1
Name of these files ?
Algorithms => Recursion_Algorithm => Fibonacci.cs
example :
Algorithm => Search_Algorithm => Linear_Search => Linear_Search.py
Checklist

[x] I've read the contribution guidelines.
[x] I've referred the correct issue number.
[x] I've fill up this entire template correctly.

Invalid PR :warning:


Update c.c

This is just better...

👎 unistd.h is part of the C POSIX library, which isn't as portable as the C Standard Library.

Agreed :-1:
In addition the current version is also valid K&R C and very close to the variant that appeared in the first edition of "THE BOOK"


feat: introduce support for automatic retries

Fixes arf/planning-sdk-squad#2229
This commit includes:

support for automatic retries of api invocations
a new basic logger capability
introduction of build tags in the unit tests to enable
running various subsets of tests

In order to get a good overall view of what's going on during the tests, I suggest that reviewers pull the feature branch and then run the retry-related tests with cd v4/core; go test -ginkgo.v -tags=retries.  That will show the various retries being performed and the resulting status code for each request.
Re: the logger, my intent was to provide a basic logger that supports various logging levels that in turn uses the underlying log.Logger facility provided by the Go engine.   I define the core.Logger interface so that anyone could implement their own and supply that as the Logger instance used by the core.   This might be useful in CLI and/or Terraform contexts.

cc: @smikulc please provide feedback if you want :)

This looks good. Though I pulled the branch and ran the tests locally and got the following test failure:

  Expected
      <string>: Get http://notahost:12345: dial tcp <IP_ADDRESS>:12345: connect: connection refused
  to contain substring
      <string>: no such host

Aha! It looks like I was being too specific in the error message returned for an "invalid hostname" situation.   This is likely just differences in the TCP/IP implementations on linux vs MacOS.
I'll just relax the checks a bit in the unit tests.

We should also close https://github.ibm.com/arf/planning-sdk-squad/issues/2079 if we feel like this PR satisfied the requirements for adding a logger to go.

While I've added a basic logging capability to the Go core to support the retryable request processing stuff, I think we want to keep that issue open so that we can add logging steps where needed throughout the Go core code to log errors and perhaps some debug or info messages at strategic places.

Greetings.. what is this <IP_ADDRESS> Akamai host and what is p 22 being used for?

Greetings.. what is this <IP_ADDRESS> Akamai host and what is p 22 being used for?

Hi @ambron60, not sure what this question is pertaining to. Could you be more specific?

Hi @padamstx and thanks for taking my question.. one of our hosts was resolving to this particular IP and I can't find any info/reference to it except for its mapping to Akamai- I saw you guys post above making reference to it, so I was inclined to ask.. it also looks like it has ports 22 and 80 open, not sure why.
Ex IBM-er here btw.. 👍

Hi @padamstx and thanks for taking my question.. one of our hosts was resolving to this particular IP and I can't find any info/reference to it except for its mapping to Akamai- I saw you guys post above making reference to it, so I was inclined to ask.. it also looks like it has ports 22 and 80 open, not sure why.

Ah, now I see the connection.   I think it was just a coincidence that one of our testcases uses hostname "notahost" in a negative test, and that apparently resolved to the IP address, but I'm not sure how that happened to be honest.   This PR really has no connection to Akamai at all.

Hi @padamstx and thanks for taking my question.. one of our hosts was resolving to this particular IP and I can't find any info/reference to it except for its mapping to Akamai- I saw you guys post above making reference to it, so I was inclined to ask.. it also looks like it has ports 22 and 80 open, not sure why.

Ah, now I see the connection. I think it was just a coincidence that one of our testcases uses hostname "notahost" in a negative test, and that apparently resolved to the IP address, but I'm not sure how that happened to be honest. This PR really has no connection to Akamai at all.

Thanks!!

:tada: This PR is included in version 4.8.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Rename functions in PluginType to comply with design guidelines

willSendRequest renamed to willSend.
didReceiveResponse renamed to didReceive.
prepareRequest  renamed to prepare.
processResponse renamed to process.

Current coverage is 83.34% (diff: 90.32%)

Merging #824 into master will increase coverage by 0.02%

@@             master       #824   diff @@
==========================================
  Files            34         34
  Lines          2782       2780     -2
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
- Hits           2318       2317     -1
+ Misses          464        463     -1
  Partials          0          0

Powered by Codecov. Last update e55bcec...c7af17b

Totally unrelated, by why is the testing class for the NetworkLoggerPlugin called NetworkLogginPluginSpec? Seems like a pretty strange typo 😬. Or am I missing something there?

It's common in Ruby to call them Spec, probably from there. Either way is fine, most of my projects have both 😆

Was actually referring to the Pluggin part. ;)

Mmmm, yeah that's probably just a typo ¯\(ツ)/¯

Renaming the file makes sense 👍
Can we make the change in another PR?

Sure, will do!

BTW, do we need anything else done in this PR? Or can it be merged?

Should be good to go! Thanks @pedrovereza 🙌

👊


Fastnlight: Watch freelancerosim.com

Fastnlight requests the watch of the watch_keyword freelancerosim\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

freelancerosim\.com has been seen in 0 true positives, 0 false positives, and 0 NAAs.

Approved by Jeff Schaller in Charcoal HQ


Kinesis source stalls on startup

Describe the bug
Kinesis source function appears to just stall on startup.
To Reproduce
Steps to reproduce the behavior:

Create kinesis source, tied to actual kinesis stream
Write records to kinesis stream
Notice kinesis source pulsar function attempts to read from source kinesis stream, and stalls indefinitely.

Expected behavior
Kinesis source pulsar function should process records from kinesis stream and write them to target topic.
Additional context
See #3784 where kinesis source functionality was introduced.

Hey @david-streamlio / @addisonj , here is the issue report for the problem I am seeing with the kinesis source.


[engine] Stopwatch Visualizer checks refresh rate every frame.

on Android this method calls into Java to query the current frame rate, which is extremely slow and can end up causing the performance overlay to dominate the LayerTree::Paint/Preroll CPu profiles.
Instead of doing this, we should query and cache at some more limited frequency (once a second?) or use some notification based system so we're only told when it changes.

I'm willing to be that some other component of the engine already knows the frame rate and we could use that instead.

"willing to bet"


Usage message

When invoking the script without arguments or with a variation of the help command (-h or --help), they should be presented with information about how to use the CLI.

This message should also appear in the README.


Generic Prompt Type

Sometimes we want to asynchronously update the prompt. For example, if we are using rustyline as a remote terminal, we want to display the connection info in the prompt. When disconnected, it is nicer to show a message and change the prompt to a ready state. With a Generic prompt type, it is possible to do that.
Performance overhead: in order to display the prompt, it should implement ToString trait. Therefore, it has a little performance overhead because it calls to_string every time it needs the prompt as a string (printing the prompt or calculating the cursor position). However, it is negligible as the whole system is a human interface that does not affect functionality.

Prompt related stuff:
#208
https://github.com/kkawakam/rustyline/pull/372
https://github.com/kkawakam/rustyline/pull/369
#417
#598
https://github.com/kkawakam/rustyline/commit/4ec26e824e0f94b7f8f763d201093052805770c6


chore: bootstrap releases for path: .

Configuring release-please for path: .

Welcome to Codecov :tada:
Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.
Thanks for integrating Codecov - We've got you covered :open_umbrella:


Using css-modules crate results in macro-error but compiles and works.

Example
src/app.css
.something {
   background: red
}

src/main.rs
use css_modules::include_css_module;

fn main() {
  let css = include_css_module!("app.css");
  println!("{}", css["something"]);
}

./build.rs :
use css_modules::CssModules;

fn main() {
    let mut css_modules = CssModules::default();

    // Include all CSS files in the src dir:
    css_modules.add_modules("src/**/*.css").unwrap();

    // Compile all modules and export CSS into one file:
    css_modules.compile("./app.css");
}

./Cargo.toml
# ...
[dependencies]
css-modules = "0.5"
[build-dependencies]
css-modules = "0.5"

Error
message: called `Result::unwrap()` on an `Err` value: StripPrefixError(())

Maybe Rust-analyzer does not find the file that Rust does.

This panics for me at https://github.com/rust-analyzer/rust-analyzer/blob/ae9201431922fc7a705437df6d11153dd265f7eb/crates/proc_macro_srv/src/rustc_server.rs#L678.

the root issue here seems to be that Rust-Analyzer does not set the env variables that Cargo sets when building crates when expanding proc macros (or doesn't pass these to proc-macro-server? Not familiar with Rust-Analyzer / rustc internals).
any proc-macro that tries to access those env vars will fail so you get false positive errors like these in Rust-Analyzer diagnostics:

even though the crate compiles fine with cargo check and cargo build
$ cargo r
krate

Minimal-ish repro example:
Steps to Reproduce
$ bat my-macro/src/lib.rs

use proc_macro::TokenStream;

#[proc_macro]
pub fn my_macro(_: TokenStream) -> TokenStream {
    let crate_name = std::env::var("CARGO_CRATE_NAME").expect("Cargo env var not set");
    let double_quoted = format!("{:?}", crate_name);
    double_quoted.parse().expect("parse error")
}

$ bat Cargo.toml

[dependencies]
my-macro = { path = "my-macro" }

$ bat src/main.rs

fn main() {
    let crate_name = my_macro::my_macro!();
    println!("{}", crate_name);
}

The test case in https://github.com/rust-analyzer/rust-analyzer/issues/8149#issuecomment-877252913 now works:

The original test case still crashes with not implemented.


Change README's link from github.com/bbatsov to github.com/rubocop-hq

tl:dr
As a similar topic, Is it possible to transfer the followings to rubocop-hq?

AppVeyor
Code Climate
Inch CI
Gitter

Before submitting the PR make sure the following are checked:

[x] Wrote good commit messages.
[ ] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[ ] Added tests.
[ ] Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
[x] The PR relates to only one subject with a clear title
and description in grammatically correct, complete sentences.
[ ] Run rake default or rake parallel. It executes all tests and RuboCop for itself, and generates the documentation.

Thanks!

As a similar topic, Is it possible to transfer the followings to rubocop-hq?

I think I already did this for AppVeyor, have to check the others. I haven't used Inch CI and Gitter in ages, so I can just remove them as well. Not sure if the other contributors find them useful.


KAFKA-2773: Fixed broken vagrant provision scripts for static zk/broker cluster

LGTM -- tested that this brings up a small test cluster properly. @granders can you mark this as patch available in JIRA and figure out which committer makes sense to have review this?

@gwenshap This is the corresponding patch to the one you merged into 0.9.0 already, can you take a look?

LGTM


initializing from VGG pretrained model

Hey,
In the model.py file, the  self.init_vgg_weigts() function has initialization of weights of 21,24,26th layer for the last 3 convolution layers, shouldn't it be 24,26,28th layer.
Kindly correct me if i'm wrong.
Thank you

Hey, @deepakksingh thanks for catching this!
It's fixed now. :)

i have a question ,
for a random test image, how will i interpret the tensor, it's in the shape [batchsize,22,224,224], where 22 is the number of possible class labels and 224 is image width and height.
In the forward pass, I'm doing softmax after the decoder output.
what next?
Thank you.

In the task of semantic image segmentation, each pixel is assigned a class
label. So, doing softmax + argmax on the n x n x c tensor will help you
get the pixel-wise class labels.
On Sat, 13 Apr, 2019, 18:33 Deepak Kumar Singh<EMAIL_ADDRESS>wrote:

i have a question ,
for a random test image, how will i interpret the tensor, it's in the
shape [batchsize,22,224,224], where 22 is the number of possible class
labels and 224 is image width and height.
In the forward pass, I'm doing softmax after the decoder output.
what next?
Thank you.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/Sayan98/pytorch-segnet/issues/3#issuecomment-482807347,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACDOCUHVZV2HP7NXMGATWSDPQHKYHANCNFSM4HFNWX5A
.

In the task of semantic image segmentation, each pixel is assigned a class
label. So, doing softmax + argmax on the n x n x c tensor will help you
get the pixel-wise class labels.

In your inference.py file at line 80:
predicted_mx = predicted_mx.argmax(axis=0)
shouldn't it be predicted_mx = predicted_mx[predicted_mx.argmax(axis=0)]
so that we choose the max predictions from each channel.

In your inference.py file at line 80:
predicted_mx = predicted_mx.argmax(axis=0)
shouldn't it be predicted_mx = predicted_mx[predicted_mx.argmax(axis=0)]
(or something similar to the above..so that we can fetch the maximum values)
so that we choose the max predictions from each channel.

No worries, I solved that.
thank you


Fix girder build

Turns out my previous PR didn't work :) This fixes up a few things and make the plugin work a bit more like the osumo plugin by serving a directory, which lets us split out the index.html file.

@alex-r-bigelow can you take a look at this?

Forgot this was a dependency of #100 - it got merged just now. @alex-r-bigelow please check out this functionality regardless.

Yes, grunt by itself seems to work, but grunt watch doesn't seem to notice any changes (even if you force a webpack build while it's watching). I imagine it's not supposed to?

Right I did not work to get grunt watch working. Glad it is working for you.


Java: allow to inject skill store

https://github.com/Bryan-Roe/semantic-kernel/blob/3a7c96cd6021c6ad7ad0adf441ecaed8061d872d/java/extensions/semantickernel-planners/src/main/java/com/microsoft/semantickernel/planner/actionplanner/Untitled-1.md#L3

Please open your SK Java issue here: https://github.com/microsoft/semantic-kernel-java/issues


Extend annotation tool

In GitLab by @PhilippKemkes on Jan 28, 2021, 19:11
Francesca BIANCHI<EMAIL_ADDRESS>requested:

One colleague asked whether it would be possible to implement the highlight and tagging system currently applying to TED transcripts to txt files uploaded by the teacher. That would indeed be very useful for me too, Would that be possible?

#336 is an implementation of this issue


Include DCU as submodule

We can get rid of cloning DCU in tests.
We also gain confidence on which version of DCU is used with the given test revision.

Ongoing work in this PR https://github.com/Dasharo/open-source-firmware-validation/pull/611


MM-37862: Update product registration

Summary
Per the conversation and resulting decision summarized here, this PR updates the Product registration api to follow this type:
export type ProductComponent = {
    id: string;
    pluginId: string;
    switcherIcon: TIconGlyph;
    switcherText: string;
    baseURL: string;
    switcherLinkURL: string;
    mainComponent: React.ReactNode;
    headerCentreComponent: React.ReactNode;
    headerRightComponent: React.ReactNode;
};

Specifically, it:

updates switcherText to accept a string
renames headerComponent to headerCentreComponent
adds new headerRightComponent
makes both headerCentreComponent & headerRightComponent optional
renders anything passed to headerRightComponent in the RightControls container component

There is also a small styling tweak to help ensure the GH sits on top of the UI of each product.
Ticket Link
https://mattermost.atlassian.net/browse/MM-37862
Release Note
NONE

@deanwhillier
I was able to upgrade one of my test cloud server with this PR commit and manually install boards and playbook plugins to test
Looks good. I got 2 screenshots right before my server crashed

Crash happened right as I switched to Boards, menus opened there fine, over boards
I saw few errors on the console... something about  "unable to get channel membership" unfortunately I failed to capture the screenshot 😞

@jgilliam17, I just installed the boards plugin alongside the playbook plugin and I'm able to switch back and forth between them without apparent issue.
There is an ASSERT log coming from boards that seems to have something to do with the websocket not being available, but that doesn't seem to prevent it from loading for me. @jespino, I'm assuming you're on top of that websocket assert in the console?

/update-branch

@deanwhillier Is this a requirement for v6.0? If yes, can you help cherry-pick to the cloud branch? https://community.mattermost.com/core/pl/cmqefh9ue7dnxgfm1cirbcj9se

/cherry-pick cloud

Cherry pick is scheduled.

Thanks @amyblais!


Remove python3.4

Such as the title. Python 3.4 is currently in EOL state, so remove it.

Sorry, it's the same work as #505 , I'll close it.


Improve left nav for Tasks.

Partially addresses #8398.
This PR sets weights for Task topics in these folders:

Install Tools
Configure Pods and Containers

Preview: https://deploy-preview-8582--kubernetes-io-master-staging.netlify.com/docs/tasks/tools/install-kubectl/
The Tasks section and left nav needs a lot of attention. But in the interest of keeping my PRs small, I'm doing only one stage of the work here. I'll do the rest in other PRs.

/assign @bradtopol

/cc @chenopis
/cc @heckj
/cc @Bradamant3

/cc @kubernetes/sig-docs-pr-reviews

/approve
/lgtm


JSX Icon Alignment

First off, I miss the old react icon for .jsx files and I can't tell where that was done/discussed, but the new icon is also not quite horizontally aligned:

Sigh... I was going to wait until v2 to change the icons, but since there's still blockage on its release (waiting on me/my fault), I may as well action this now.

Don't forget, you can always adjust the size and choice of icon with your user stylesheet. =)


Threadmarks menu on single page threads

Fixes issues #4
Note: Currently contains remove-template-hooks branch. View changes for just this branch: https://github.com/Sidane/xenforo-threadmarks/compare/remove-template-hooks...threadmarks-menu-on-single-page-threads

Otherwise looks good.


pb + expo (react-native) + react-native-sse : EventSource connect took too long

At this point I've tried using any polyfill I can get my hands on, the most success I've had is getting to EventSource connect took too long.
try {
  result = await db.ctx?.collection("users").authWithOAuth2({
    provider: this.props.provider,
    urlCallback: (url)=>{
      console.log("URL", url);

      Linking.openURL(url).catch((err)=>{
        console.error("Failed to open oauth url", err);
      });
    }
  });
} catch (ex: any) {
  let keys = Object.keys(ex);
  let obj = {} as any;
  for (let key of keys) {
    obj[key] = ex[key];
  }

  console.log(obj);

  if (this.props.onIssue) {
    this.props.onIssue(`Couldn't perform OAuth: ${ex}`);
    // return;
  }
  throw ex;
}

LOG  {"isAbort": false, "name": "ClientResponseError 0", "originalError": [Error: EventSource connect took too long.], "response": {}, "status": 0, "url": ""}
 WARN  Couldn't perform OAuth: ClientResponseError 0: Something went wrong while processing your request.

As other similar issues, urlCallback doesn't seem to get called at all and doesn't console log.
Assuming this is a facebook Flipper thing:
I do not have the ability to change any java code as I'd have to eject the expo app to be raw react-native android project,
which kind of defeats the reason for using expo in the first place.
I tried expo's --no-dev flag hoping it would resemble react-native's --variant=release to no avail
I don't know why react-native has such a huge problem with EventSource, but it seems like its WAY more trouble than it's worth.
I'm not even trying to do realtime yet, I can't even fetch users full list but I'm installing server side events related polyfills.
Is there still a plan to migrate away from EventSource as a dependency?
I don't think I have any more options at this point other than just writing my own JS SDK or EventSource system dependency, and even then I'm not sure I wouldn't have the exact same issues other libs are having.

Update, I ran eas build to generate an android build and viewed it from expo snack on my android device, and the OAuth does redirect to my browser properly, though I do have device_id and device_name not setup for private IP redirect URI, but I can fix that later in the google dev console.
urlCallback does get fired properly in this state of things.
I think that probably confirms it as a flipper issue..?
I tried running NO_FLIPPER=1 && expo start before this to no effect.
Unfortunately creating a build every time is not a valid workaround (even just due to time it takes to build in the cloud).
I will continue to work on this and update here.

I don't fully understand the above description but you can check the discussion in https://github.com/pocketbase/pocketbase/discussions/2484 as it seems similar to your error.
I'm closing the issue for now as I don't think this is JS SDK related but fill to let me know if you stumble on something else.

I managed to run expo metro (hot module reloading) in prod mode via:
npx expo start --no-dev
And this does not have the issue of EventSource timing out.
Not idea for debugging, but I'll take what I can get for now.
Thanks for your time even looking at this! I'll leave this answer here for anyone else trying to use expo with pocketbase.

@RepComm Did you check the above linked discussion and at the stackoverflow suggestion in https://stackoverflow.com/questions/69235694/react-native-cant-connect-to-sse-in-android/69235695#answer-69235695?
Several users reported that it works for them.
Note that technically the JS SDK doesn't have any dependencies. It relies only on native interfaces like fetch and EventSource. There are plans to reimplement eventually the EventSource interface with raw fetch streams to avoid the need of a polyfill for node-like environments but it is left aside for now because the last time I checked the fetch implementation in React Native didn't support streams.


Where do I generate the application roles & permissions?

Where are people creating their roles and permissions?
For example, the following creates a new admin role and adds a permission in the database, and only needs to be run once -
$admin = new Role();
$admin->name  = 'admin';
$admin->save();

$createPost = new Permission();
$createPost->name = 'create-post';
$createPost->save();

$admin->attachPermission($createPost);

Presumably there is somewhere I can be defining my roles and permissions once? What is the recommended procedure here?

To clarify, I want to assign a predefined role to a user on signup. Obviously I don't want to place the code to define roles/permissions in my signup logic, and as far as I can tell the code to define the roles/procedures only needs to be run once. Should I create an event?

I've gone with creating a seeder to define the roles and permissions...
class RolesTableSeeder extends Seeder
{
    public function run()
    {
        DB::table('roles')->delete();

        $admin = new Role();
        $admin->name  = 'admin';
        $admin->save();
        ...

If there's a better way to do this i'm keen to know it.

It would be better to create roles and permissions in migrations. Because it's not good for you to add db seeds for production environment.

I've gone with a seeder instead of migrations as I personally use migrations for schema.
For anyone who's interested, i've created a Seeder class that will allow you to manage your Roles & Permissions in one place. From here you can add/update/remove roles and assign permissions to them. The seeder will re-etablish relationships between users, roles and permissions.
RolesAndPermissionsSeeder
https://github.com/thomasfw/RolesAndPermissionsSeeder

Just had a look at your seeder class... it looks very useful... Thanks.

Thanks for answering this. A seeder was my idea also, nice to see it is the way to go.
Migrations shouldn't contain data to insert, migrations are in charge of modifying schemas, not content.


Allow disabling animations

Currently, there is no way to shorten or disable the animations in the game. This would be desirable both to speed-up gameplay for experienced players, and for accessibility for people that request low motion.

This was suggested by Monomino from the Discord


What fork is actively maintained?

What fork is actively maintained?

Is Ektorp abandoned?

I found https://github.com/triplem/Ektorp/tree/v1.6
@triplem , I can't contact with you. How to use your fork? Is it in maven? What plans?

Yeah, well, the latest incarnation is not in maven central. You could build it yourself though.
Take a look at https://github.com/triplem/Ektorp/tree/v1.6?files=1.

@triplem I used jitpack to use your fork. All works btw.
I didn't understand ?files=1 Without this result is the same, what do you want to show to me?


Authentication and Database Parity

On Auth create user, create user in db
On Auth delete user, delete user in db
On Auth login, get user from db

Solved in social-backend


upgrade: umount to v1.1.4

This new version passes force to diskutil unmountDisk

Change-Type: patch
Changelog-Entry: Fix at least one volume could not be unmounted error in OS X.
Signed-off-by: Juan Cruz Viotti<EMAIL_ADDRESS>

From a quick google I found http://apple.stackexchange.com/questions/235161/difference-between-diskutil-unmount-and-diskutil-unmountdisk/235162#235162
I wonder if it'd be better to try unmountDisk first, and only use force if the previous attempt didn't work?

@lurch diskutil unmountDisk force should be exactly the same as diskutil unmountDisk if there were no processes making the drive busy, so there should be no harm in passing force in the first try.

Fair enough :-)


feature/conditional-install

With this PR the pull cmd only installs packages if the corresponding manifest file changes.
E.g. yarn install is only executed when yarn.lock file changes.
Additionally i've added some logik to cd to the manifest file directory so it also works if we do a pull in some nested directory.
And i've added composer to the install checks.

Whenever it's good for @sapegin it's good for me! Cool patch, thanks for the contribution.
We'll add you to the contributors list post-merge too, unless you don't want that

Thanks :)
I'd be honored to join the contributors list 🎉

Updated my PR
Hope it's a bit less magic now ;)
It now also allows local installed yarn, bower and composer
/cc @sapegin @jamiew

Look cool now, thanks!

just need to fix this:
fatal: ambiguous argument 'ORIG_HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:

@bezoerb should I merge it? :shipit:

@sapegin yes :)

\o/


Capability to add songs after server starts

If this is added I have a semi solution to "stream" Pandora. https://github.com/BluGeni/Pandora-Record will record and label songs played through pianobar. Tested and works with Ubuntu server.


Compile error

I am using vs 2017 15.3. I get this repo and try to compile the solution. but there are some bugs:
for example :
1-public class InitializeAuthenticationSchemeOptions : InitializeOptions
2-return AuthenticateResult.None();
and so on.
Visual studio message shows there are some missing assembly.

For the first one, make sure you have the assembly Microsoft.Extensions.Options.  InitializeOptions is also generic, so you will need to consider that too. The second one requires Microsoft.AspNetCore.Authentication. Also, I  believe AuthenticateResult.None is a property on Authenticate Result, meaning you need an object in order to reference it. Try AuthenticateResult.NoResult() if you are calling it statically.

We recommend you compile from the command line first (build.cmd), it pulls the right versions of all the dependencies. VS has a hard time keeping up with dev.

I check the references. projects have the right references !!!
I download the full solution from this repo ant I think it must be compilable !!!

@mirshahreza can you run build from the command line? Also make sure all your NuGet caches are cleared.

I test the command line and the problem exist yet. but when I downloaded the newest version I saw new problems : sample projects failed for load in the solution !!! and the rest of issues are exist yet.

Can you show the exact output of the build? Maybe upload the whole output file to GitHub?

Closing because there is not enough information to reproduce this problem.


DPMS does not turn on again

Hyprland Version
 System/Version info
Hyprland, built from branch  at commit 791e1b96b3cd12d56648b3ce7ffb0832eba2b37d  ().
Date: 2024-01-23
Tag:

flags: (if any)

Bug or Regression?
 I also checked the versions v0.33.0 and v0.34.0 and the problem is there as well.
My current preferred monitor config is:
monitor=eDP-1,1920x1080@60,0x0,1
monitor=, preferred, auto, 1

But this config results in the mentioned problem.
When changing the monitor config to just monitor=, preferred, auto, 1 or to
monitor=eDP-1, preferred, auto, 1.333333
monitor=, preferred, auto, 1

the problem only occurs after some time, i.e., dpms off and on again turn off and on all monitors. I usually notice it again during lid-switching during a normal workday.
The default resolution of eDP-1 is 2560x1440 but I want to use 1920x1080 without scaling to prevent scaling issues with some programs.
How to reproduce
Set a custom resolution and run hyprctl dispatch dpms off and hyprctl dispatch dpms on.
Crash reports, logs, images, videos
No response

I need a log

Here is such an log file, where I killed the session using the TTY because I was unable to do anything without the external monitor.
 Log
--------------------------------------------
   Hyprland Crash Report
--------------------------------------------
"stable"

Hyprland received signal 6 (Aborted)

Version: 4d403dac3244aab217fb9bf17a68e9a009fcadd8
Tag:

System info:
	System name: Linux
	Node name: peasec
	Release: 6.7.0
	Version: #1-NixOS SMP PREEMPT_DYNAMIC Sun Jan  7 20:18:38 UTC 2024

GPU:
	00:02.0 VGA compatible controller [0300]: Intel Corporation WhiskeyLake-U GT2 [UHD Graphics 620] [8086:3ea0] (rev 02) (prog-if 00 [VGA controller])

os-release:
	BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
	BUILD_ID="24.05.20240119.bbe7d8f"
	DOCUMENTATION_URL="https://nixos.org/learn.html"
	HOME_URL="https://nixos.org/"
	ID=nixos
	IMAGE_ID=""
	IMAGE_VERSION=""
	LOGO="nix-snowflake"
	NAME=NixOS
	PRETTY_NAME="NixOS 24.05 (Uakari)"
	SUPPORT_URL="https://nixos.org/community.html"
	VERSION="24.05 (Uakari)"
	VERSION_CODENAME=uakari
	VERSION_ID="24.05"

Backtrace:
	#0 | /home/phil/.nix-profile/bin/Hyprland(_Z12getBacktracev+0x48) [0x57ca28]
		_Z12getBacktracev
		??:?
	#1 | /home/phil/.nix-profile/bin/Hyprland(_ZN13CrashReporter18createAndSaveCrashEi+0x659) [0x533f19]
		_ZN13CrashReporter18createAndSaveCrashEi
		??:?
	#2 | /home/phil/.nix-profile/bin/Hyprland(_Z25handleUnrecoverableSignali+0x44) [0x4a4564]
		_Z25handleUnrecoverableSignali
		??:?
	#3 | /nix/store/p3jshbwxiwifm1py0yq544fmdyy98j8a-glibc-2.38-27/lib/libc.so.6(+0x3deb0) [0x7fd5c2572eb0]
		??
		??:0
	#4 | /nix/store/p3jshbwxiwifm1py0yq544fmdyy98j8a-glibc-2.38-27/lib/libc.so.6(+0x8d02c) [0x7fd5c25c202c]
		??
		??:0
	#5 | /nix/store/p3jshbwxiwifm1py0yq544fmdyy98j8a-glibc-2.38-27/lib/libc.so.6(raise+0x16) [0x7fd5c2572e06]
		??
		??:0
	#6 | /nix/store/p3jshbwxiwifm1py0yq544fmdyy98j8a-glibc-2.38-27/lib/libc.so.6(abort+0xd7) [0x7fd5c255b8f5]
		??
		??:0
	#7 | /nix/store/p3jshbwxiwifm1py0yq544fmdyy98j8a-glibc-2.38-27/lib/libc.so.6(+0x277a1) [0x7fd5c255c7a1]
		??
		??:0
	#8 | /nix/store/p3jshbwxiwifm1py0yq544fmdyy98j8a-glibc-2.38-27/lib/libc.so.6(+0x96d05) [0x7fd5c25cbd05]
		??
		??:0
	#9 | /nix/store/p3jshbwxiwifm1py0yq544fmdyy98j8a-glibc-2.38-27/lib/libc.so.6(+0x98c3c) [0x7fd5c25cdc3c]
		??
		??:0
	#10 | /nix/store/p3jshbwxiwifm1py0yq544fmdyy98j8a-glibc-2.38-27/lib/libc.so.6(+0x98f39) [0x7fd5c25cdf39]
		??
		??:0
	#11 | /nix/store/p3jshbwxiwifm1py0yq544fmdyy98j8a-glibc-2.38-27/lib/libc.so.6(free+0x73) [0x7fd5c25d0703]
		??
		??:0
	#12 | /nix/store/p3jshbwxiwifm1py0yq544fmdyy98j8a-glibc-2.38-27/lib/libc.so.6(+0x9b7f2) [0x7fd5c25d07f2]
		??
		??:0
	#13 | /nix/store/p3jshbwxiwifm1py0yq544fmdyy98j8a-glibc-2.38-27/lib/libc.so.6(+0x8b1c4) [0x7fd5c25c01c4]
		??
		??:0
	#14 | /nix/store/p3jshbwxiwifm1py0yq544fmdyy98j8a-glibc-2.38-27/lib/libc.so.6(+0x10defc) [0x7fd5c2642efc]
		??
		??:0

Log tail:
[LOG] Callback 251e020 -> 251e018, layerSurface removed.
[LOG] Callback 251e0f0 -> 251e0e8, layerSurface removed.
[LOG] Removed monitor HEADLESS-1!
[LOG] moveWorkspaceToMonitor: Moving 5 to monitor 0
[LOG] moveWorkspaceToMonitor: Moving 2 to monitor 0
[LOG] moveWorkspaceToMonitor: Moving 1 to monitor 0
[LOG] moveWorkspaceToMonitor: Moving 3 to monitor 0
[LOG] moveWorkspaceToMonitor: Moving 4 to monitor 0
[LOG] moveWorkspaceToMonitor: Moving 6 to monitor 0
[LOG] moveWorkspaceToMonitor: Plugging gap with new 8
[LOG] moveWorkspaceToMonitor: Plugging gap with existing 8
[LOG] Disallowing setting focus to a window due to there being an active input inhibitor layer.
[LOG] LayerSurface 1d070a0 mapped
[LOG] Registered signal for owner 1c38b40: 15720f0 -> 1c38b68 (owner: CWLSurface)
[LOG] CWLSurface 1c38b40 called init()
[LOG] SessionLockSurface 1393d10 destroyed
[LOG] Callback 1393e18 -> 1393e10, SSessionLockSurface removed.
[LOG] Callback 1393db0 -> 1393da8, SSessionLockSurface removed.
[LOG] Callback 1393d48 -> 1393d40, SSessionLockSurface removed.
[LOG] Registered signal for owner 251de60: 13869d0 -> 251e060 (owner: layerSurface)
[LOG] Registered signal for owner 251de60: 250bec8 -> 251df28 (owner: layerSurface)
[LOG] Registered signal for owner 251de60: 13869e0 -> 251df90 (owner: layerSurface)
[LOG] Registered signal for owner 251de60: 13869f0 -> 251dff8 (owner: layerSurface)
[LOG] Registered signal for owner 251de60: 250bed8 -> 251e0c8 (owner: layerSurface)
[LOG] LayerSurface 250be00 (namespace waybar layer 2) created on monitor eDP-1
[WARN] Orphaned wlr_surface 13866e0 in setPreferredScaleForSurface
[WARN] Orphaned wlr_surface 13866e0 in setPreferredTransformForSurface
[LOG] LayerSurface 250be00 mapped
[LOG] Registered signal for owner 251de80: 1386a10 -> 251dea8 (owner: CWLSurface)
[LOG] CWLSurface 251de80 called init()
[types/output/swapchain.c:109] Swapchain for output 'eDP-1' failed test
[ERR] Couldn't commit output eDP-1
[LOG] Hyprctl: dispatcher dpms : on
[types/output/swapchain.c:109] Swapchain for output 'eDP-1' failed test
[ERR] Couldn't commit output eDP-1
[LOG] Hyprctl: dispatcher dpms : on
[LOG] Keybind handling only locked (inhibitor)
[LOG] Keybind handling only locked (inhibitor)
[LOG] Switching from VT 1 to VT 2
[LOG] Switched to VT 2, destroyed all render data, frames to skip for each: 2
[LOG] Callback 15baaa8 -> 15baaa0, Keyboard removed.
[LOG] Callback 15ba970 -> 15ba968, Keyboard removed.
[LOG] Callback 15ba9d8 -> 15ba9d0, Keyboard removed.
[LOG] Callback 15baa40 -> 15baa38, Keyboard removed.
[LOG] Destroyed keyboard 15ba940
[LOG] Callback 136d8d8 -> 136d8d0, Keyboard removed.
[LOG] Callback 136d7a0 -> 136d798, Keyboard removed.
[LOG] Callback 136d808 -> 136d800, Keyboard removed.
[LOG] Callback 136d870 -> 136d868, Keyboard removed.
[LOG] Destroyed keyboard 136d770
[LOG] Callback 12296d0 -> 12296c8, SwitchDevice removed.
[LOG] Callback 1229668 -> 1229660, SwitchDevice removed.
[LOG] Callback 12ffa08 -> 12ffa00, Keyboard removed.
[LOG] Callback 12ff8d0 -> 12ff8c8, Keyboard removed.
[LOG] Callback 12ff938 -> 12ff930, Keyboard removed.
[LOG] Callback 12ff9a0 -> 12ff998, Keyboard removed.
[LOG] Destroyed keyboard 12ff8a0
[LOG] Callback 15bbdc8 -> 15bbdc0, Mouse removed.
[LOG] Callback 9e5738 -> 9e5730, Keyboard removed.
[LOG] Callback 9e5600 -> 9e55f8, Keyboard removed.
[LOG] Callback 9e5668 -> 9e5660, Keyboard removed.
[LOG] Callback 9e56d0 -> 9e56c8, Keyboard removed.
[LOG] Destroyed keyboard 9e55d0
[LOG] Callback 16025e8 -> 16025e0, Keyboard removed.
[LOG] Callback 16024b0 -> 16024a8, Keyboard removed.
[LOG] Callback 1602518 -> 1602510, Keyboard removed.
[LOG] Callback 1602580 -> 1602578, Keyboard removed.
[LOG] Destroyed keyboard 1602480
[LOG] Callback 12e6638 -> 12e6630, Keyboard removed.
[LOG] Callback 12e6500 -> 12e64f8, Keyboard removed.
[LOG] Callback 12e6568 -> 12e6560, Keyboard removed.
[LOG] Callback 12e65d0 -> 12e65c8, Keyboard removed.
[LOG] Destroyed keyboard 12e64d0
[LOG] Callback 157f8d8 -> 157f8d0, Mouse removed.
[LOG] Session got activated!
[LOG] Hyprland received signal 15

[ERR] Couldn't commit output eDP-1
[LOG] Hyprctl: dispatcher dpms : on
[types/output/swapchain.c:109] Swapchain for output 'eDP-1' failed test
[ERR] Couldn't commit output eDP-1

looks like a wlroots issue tbh... sucks that wlr doesn't log why the test fails

Okay, then feel free to close the issue here.

Keep it open it's definitely an Issue with hyprland dependency or not the users will find it here and know it's a known issue and not be frustrated trying to fix it.

I just got permanent burn in on my LCD screen due to this problem.  This bug is literally destroying screens and it should be a priority to fix DPMS mgmt for the sake of the environment and the LCD of the users.

bullshitting is not a way to get issues to be fixed. If it's of such importance to you then clone the codebase and fix it yourself.

firstly, LCD does not get permanent burn in.
secondly, burn in from 2 weeks of anything is laughable and if it is there you should rather refund your monitor and not cry online.
thirdly, this issue is about monitors being unable to wake up, so you got burn in from your screen being off?
lastly, your entitled attitude as if you're paying for hyprland is out of place.
I have never encountered this and neither has anyone from the active hyprland users I have constant contact with.
You are not an authority, you are not entitled to any bugfixes whatsoever, and I will continue to lead the project as I deem fitting. Claiming this bug is "destroying screens" is laughable.

I just got permanent burn in on my LCD screen due to this problem. This bug is literally destroying screens and it should be a priority to fix DPMS mgmt for the sake of the environment and the LCD of the users.

I have the same problem, but my LCD display was not broken. So I think your destroying LCD is not related to the problem, maybe another reasons.

I had outlines of the buttons and status bars on the screen. Ofc it does not matter what the maintainer thinks or not, his poor people skills aside, things are what they are. Luckily, the error was not permanent in the end. It still looks like shit to have button imprints on the screen that only goes away after turning the screen off for a long time.
I do not mind that the maintainer has poor people skills. I do however mind that he leaves poor code. Sway has the same problem with community mgmt. so I think it is just a fact of the kind of people that are capable of developing this kind of software that I use will be lacking in how they deal with criticism of their work.

I also have the same problem. Thanks to WuG978 for a workaround! I have this issue on my Dell Laptop with a 4k screen. I was setting the resolution of the eDP-1 display to monitor=eDP-1,1920x1080@60,0x0,1 changing it back to native resolution: monitor=eDP-1,3840x2160@60,0x0,2 prevents the issue.
As long as I have the monitor set to 1920x1080, hyprctl dispatch dpms off will permanently turn off the monitor on that tty until Hyprland is killed, with no way to turn it on as hyprctl dispatch dpms on does nothing.

Just a heads up. I tested it in sway, where turning it off and on again works. I try to look deeper into it.

I'm running into the same issue on my Tuxedo Infinnitybook Pro 14.
Display does not turn back on with hyprctl dispatch dpms on with my monitor configuration:
monitor = eDP-1, 1920x1200@90, 0x0, 1

It does however work, when I set the monitor to full resolution, using this fallback setting:
monitor = , preferred, auto, 1

Are there any more workarounds or fixes for getting this working with custom screen resolution?

I have the same issue, I haven't experimented with any different settings for eDP-1, but when I execute wdisplays (I can still interact normally on the external monitor while eDP-1 remains turned off after dpms on), it shows eDP-1 as not enabled. Simply checking the Enabled box brings the monitor back up again...
Could that mean that the things that hyprctl dispatch dpms on does are missing (a possibly in most cases optional) command/flag/whatever which amount to the same effect?

I had the same issue, setting the monitor to the preferred solved the issue.
Then I moved to the scaling solution as @IrrerPolterer suggests https://github.com/hyprwm/Hyprland/issues/4522#issuecomment-2070004862 but I had the major issue that, for me, Wezterm crashes when executed on a scaled window using Hyprland.
eventually this is what works for me:
setting it to preferred BEFORE any operation (disabling it or enabling it) and then setting it to my desired state.
monitor=eDP-1,1368x768,0x0,1

# Laptop lid:
bindl=,switch:on:Lid Switch,exec,hyprctl keyword monitor "eDP-1,prefered,0x0,1" && hyprctl keyword monitor "eDP-1, disable"
bindl=,switch:off:Lid Switch,exec,hyprctl keyword monitor "eDP-1,prefered,0x0,1" && hyprctl keyword monitor "eDP-1,1368x768,0x0,1"

Good evening, I am sorry for possibly creating some noise and repetition, but I wanted to share my experience.
I use 2 exact same DELL G2524H monitors (perhaps even from the same batch) and experienced the issue when hyprlock executed hyprctl dispatch dpms off -> hyprctl dispatch dpms on. Unfortunately afterwards only the "primary" monitor turned on.
I managed to fix it by changing the resolution, which  (for same strange reason (my stupidity)) was in the opposite order, back to native.
# Original
monitor = DP-1, 1920x1080@240, 0x0, 1
monitor = DP-3, 1920x1080@60, 1920x-540, 1, transform, 3
monitor = , preferred, auto, 1

# Working
monitor = DP-1, 1920x1080@240, 0x0, 1
monitor = DP-3, 1920x1080@60, 1920x-540, 1, transform, 3
monitor = , preferred, auto, 1

It seems like this issue I have here #7320 is strongly related to this. The same monitors that do not turn on when logging into hyprland (but were were before in GDM) sometimes (!) have this issue that the do turn on after logging in but when I turn them off with hyprctl dispatcher dpms off the  do not turn on again with hyprctl dispatcher dpms on.
But they all are at their native resolution and setting the resolutions of all monitors to preferred does not help.

Ok, after rebooting for 10 times I can differentiate a bit more. So, those two monitors do not switch on after logging in (but working in tty/gdm) happens only with hyprland it seems.
But when they work, switching them off and then switching them on with dpms and those same two monitors do not came back, happens with sway and hyprland. It seems like the first thing is a hyprland/aquamarine issue, and the first is a driver issue as it happens in both, hyprland and sway. (But not in xmonad though. But maybe X is handling dpms a bit different)


All options should be in options-list in all tools

This zoom-feature is not listed under options.

Need to make a new component which looks at which options are in buttonlist and put those options in the option list

@arthurcamara1 put your name on it. can you please make a sketch? or if you like we can make it together?

@angieskazka @jheeffer It shouldn't just look at buttonlist because there are things that are not in buttonlist that should be in more options.
I suggest we have possible configurations for each button, making it simple to add anything to more-options. This way we can also use more-options in a more generic way, for all charts (it currently only works well for bubble chart).
Something like:
buttons: ['find', 'color', ... 'more-options']
config: {
    'more-options': {
        sections: ['size-advanced', 'color-advanced']
    }
}

Such settings could be part of default options or could also be injected by the tool itself (in tools/bubblechart/bubblechart.js for instance).
And about the fact that the list becomes too long, we should go with @angieskazka's idea of having accordions in options. Having a long list of unpredictable height is causing problems with the animation and breaking the page.
Here's a mock:

Related: https://github.com/Gapminder/vizabi/issues/968

postponing until #1065 is done

There is more:
the dialog elements should have 3 profiles: popup, sidebar, moreoptions
(classes applied to different divs in every dialog html)
these should allow to use the same dialog but display different parts of it in respective situations
the moreoptions dialog should then be generated for every tool automatically
we can have a config that would tell which dialogs to put in more options
also the buttons which didn't fit in the buttonlist should appear in more options on the top
the questions is: how do we deal with small things like bubble speed slider or presentation checkbox, which are not dialogs on their own, there will be many of these i guess..


ENH: Support generating events from a stochastic model.

Is your feature request related to a problem? Please describe.
While ACN-Sim currently supports trace based simulation from ACN-Data, it should also support generating events from a stochastic model, i.e. Gaussian Mixture Model as proposed in ACN-Data: Analysis and Application of an Open EV Charging Dataset.
Describe the solution you'd like
Implement a StochasticSessionModel class to describe the stochastic model.
This base class can be extended for additional models such as GaussianMixtureModels, etc.
class StochasticEvents:
    """ Base class for generating events from a stochastic model. """
    def fit(self, data: List[Dict[str, Any]]) -> None:
        """ Fit StochasticEvents model to data from ACN-Data.

        Args:
            data (List[Dict[str, Any]]): List of session dictionaries. See DataClient.get_sessions().

        Returns:
            None
        """
        pass

    def sample(self, n_samples: int) -> np.ndarray:
        """ Generate random samples from the fitted model.

        Args:
            n_samples (int): Number of samples to generate.

        Returns:
            np.ndarray: shape (n_samples, 3), randomly generated samples. Column 1 is the arrival time in hours
                since midnight, column 2 is the sojourn time in hours, and column 3 is the energy demand in kWh.
        """
        pass

    def generate_events(self, sessions_per_day: List[int], period: float, voltage: float, max_battery_power: float,
                        max_len: int = None, battery_params: Dict[str, Any] = None, force_feasible: bool = False
                        ) -> EventQueue:
        """ Return EventQueue from random generated samples.

            Args:
                sessions_per_day (List[int]): Number of sessions to sample for each day of the simulation.
                period (int): Length of each time interval. (minutes)
                voltage (float): Voltage of the network.
                max_battery_power (float): Default maximum charging power for batteries.
                max_len (int): Maximum length of a session. (periods) Default None.
                battery_params (Dict[str, object]): Dictionary containing parameters for the EV's battery. Three keys are
                    supported. If none, Battery type is used with default configuration. Default None.
                    - 'type' maps to a Battery-like class. (required)
                    - 'capacity_fn' maps to a function which takes in the the energy delivered to the car, the length of the
                        session, the period of the simulation, and the voltage of the system. It should return a tuple with
                        the capacity of the battery and the initial charge of the battery both in A*periods.
                    - 'kwargs' maps to a dictionary of keyword arguments which will be based to the Battery constructor.
                force_feasible (bool): If True, the requested_energy of each session will be reduced if it exceeds the amount
                    of energy which could be delivered at maximum rate during the duration of the charging session.
                    Default False.
            Returns:
                EventQueue: Queue of plugin events for the samples charging sessions.
        """
        pass

Issue handed by PR #84


usb-monitor hanges up the program when stop_monitoring is called

Hello!
I needed to stop USB devices monitoring if not needed. But if I call stop_monitoring after start_monitoring, then main program is blocked with stop_monitoring
Python 3.10 is used and Ubuntu Linux 22.04

Hi! Thanks a lot @dmitrij9992905.
I have been able to reproduce and fix the bug!
If you pip install --upgrade usb-monitor it should be solved.
Sorry for the inconvenience and thanks again!! ^~^


Q: does joblib memoization works across python versions?

or we would need to make caches python version specific?

It appears that joblib uses pickle with the default protocol version, which is either version 3 or version 4, depending on Python version, but both versions have been available since Python 3.4, so the memoization should work across all Python versions fscacher supports.

Great, thank you @jwodder!


[Bug] automaticLayout doesnt shrink to container

Reproducible in vscode.dev or in VS Code Desktop?

[X] Not reproducible in vscode.dev or VS Code Desktop

Reproducible in the monaco editor playground?

[X] Not reproducible in the monaco editor playground

Monaco Editor Playground Code
No response
Actual Behavior
No response
Expected Behavior
No response
Additional Context
monaco editor only resizes when container's size grew with automaticLayout set to true

Thanks for reporting this! However, it will take us much longer to fix this without a minimum reproducible example.


Updated ReadMe

Hi, please remove the demo link from the README. I think that is all. Also update your fork.


Show appropriate error message on login and register screens

Tyler,
Thank you so much for updating this to use the new react-router. I had used your code in my app last summer without understanding it very well, and after upgrading my app to react 0.14 I had to upgrade the router code. When I tried to follow the react-router upgrade docs I was totally lost (I seem to have a real mental block about routers). Then I decided to see if you had upgraded (the last time I looked, you just had a warning that it wouldn't work with the new stuff), and you have saved me a ton of time. It might have taken me days to figure it out!
Anyway, I'd like to offer this enhancement which prints an error message to the user if she flubs up.
Cheers.

🎉🎉🎉🎉 Awesome! Thanks for the kind words and the PR!


projectileGoalTargetsDeadEntitiesFix stops snow golems from shooting completely

Snow golems do not throw snowballs at mobs when projectileGoalTargetsDeadEntitiesFix is set to true
Steps to reproduce the behavior:

Set projectileGoalTargetsDeadEntitiesFix to true
Place a zombie next to a snow golem
It wont throw snowballs

Minecraft Version:

1.19
Carpet-Fixes Version:
v1.10.0
Carpet Version:
1.4.79+v22060

I think that rule was fixed in 1.19. So either I missed it or it broke due to something else. I'll check it once I get the time


Added GET.UNWATCH command support and fix watch related issues

Closes #998
Changes

Implemented GET.UNWATCH command in RESP server with integration tests.
Updated Dice SDK version to fix a minor bug

Bug Fixes

Fixed panic in GET.WATCH command when called without arguments
Fixed premature fingerprint deletion in handleUnsubscription function (watch_manager.go). This prevented execution of the next cleanup block.

@JyotinderSingh - Please reivew.