retain state of port expander from bootloader

Problem Description
I have a setup with a bootloader and a firmware, both using zephyr. The bootloader configures a port expander (to be specific: a PCAL6416) and set a few of the pins as output. The state of these pins as outputs now should be retained during the boot into the firmware. As by default the firmware initializes the same port expander again and triggers a reset the configuration gets lost.
Solution Proposals

no-reset: Introducing something as a no-reset flag in the devicetree for the port expander would allow the driver to react correctly. In case it is set (for instance in the app.overlay of the firmware) the reset won't be triggered, but instead the current state (in/out confiugrations, out pin states, ...) read and stored.
power management: One could consider the switch from bootloader to firmware similar to a wakeup from a very deep sleep state of the SoC. This could mean that a reset of the port expander is only triggered in PM_DEVICE_ACTION_TURN_ON and the switch from bootloader to firmware only triggers a PM_DEVICE_ACTION_RESUME.

Especially regarding the power management I am uncertain if such a thing is possible currently. On the other hand, the no-reset approach feels a little bit hacky. Therefore I would like to check which approach would be considered as acceptable for an upstream push. And maybe somebody has an even better idea?

I could see this working if init of GPIO could be "skipped" by the application, though both bootloader and application would need to have the exact same GPIO configuration, maybe by use of retention subsystem so that the bootloader can indicate to the application if GPIO should be initialised or not.

I could see this working if init of GPIO could be "skipped" by the application, though both bootloader and application would need to have the exact same GPIO configuration, maybe by use of retention subsystem so that the bootloader can indicate to the application if GPIO should be initialised or not.

Yes, something along this line. Although skipping alone won't be sufficient, as it is also necessary to get the current state of the expander. Information, which could either be read out by the firmware or taken from the bootloader via the retention subsystem.

@benediktibk doesn't something like this exist already. I remember that some user needed a pwm pin output to be retained to avoid a voltage regulator to be powered down (or something similar).
I guess this could be added by looking if the compilation is done for a bootloader or not: if it is a bootloader: reset, if not read and keep the setup. This of course supposes that the bootloader will always set it up.

@benediktibk doesn't something like this exist already. I remember that some user needed a pwm pin output to be retained to avoid a voltage regulator to be powered down (or something similar).
I guess this could be added by looking if the compilation is done for a bootloader or not: if it is a bootloader: reset, if not read and keep the setup. This of course supposes that the bootloader will always set it up.

The detection if it is a bootloader or not is not the big issue. The question is, if such a change of the GPIO driver would be accetable upstream? Because I am trying to stick with vanilla zephyr as close as possible, therefore I would like to avoid to maintain a custom driver version of the port expander.

@henrikbrixandersen @gmarull

The detection if it is a bootloader or not is not the big issue. The question is, if such a change of the GPIO driver would be accetable upstream? Because I am trying to stick with vanilla zephyr as close as possible, therefore I would like to avoid to maintain a custom driver version of the port expander.

To me this seems a genuine request. The need to keep pin state retained/pwm output retained/.. during the switch from bootloader to application is something that should be possible. A no-reset flag or something similar seems the simplest solution.

Thinking about it I am more and more in favor of the approach with the power management. In combination with the retention subsystem the current state could be stored in RAM and read out again during wakeup. This would then solve two issues at once:

Switch from Bootloader to Firmware
Wakeup from a very deep sleep state

It would also represent a minimal performance hit during runtime.

Thinking about it I am more and more in favor of the approach with the power management. In combination with the retention subsystem the current state could be stored in RAM and read out again during wakeup. This would then solve two issues at once:

Switch from Bootloader to Firmware
Wakeup from a very deep sleep state

It would also represent a minimal performance hit during runtime.

@benediktibk, I am not in favor of that approach:
a. When this method needs to be extended for other devices it would be needed to be able to uniquely link between the device and the stored state,
b. When retention is used with the prefix to identify the device it is not possible to write firmware that could cover different prefixes: once the prefix is set in the bootloader all applications that are using this should use the same prefix. An application supporting two different prefixes is not supported (at least not at the moment).

b. When retention is used with the prefix to identify the device it is not possible to write firmware that could cover different prefixes: once the prefix is set in the bootloader all applications that are using this should use the same prefix. An application supporting two different prefixes is not supported (at least not at the moment).

How lucky that prefixes aren't picked by a random number generator each time the firmware boots then isn't it!

I'm uncertain which prefix you are referring to, maybe the device ordinals?
But you are right, there would have to be a mapping between the stored state which would have to be stable not only between reboots of the firmware (deep sleep -> run), but as well from a bootloader to a firmware. I could think of maybe using the string device names, as they should be the same as long as the bootloader and the firmware are using the same devicetree.
@nordicjm It feels like I'm missing a discussion on this topic which went on previously? Maybe you could link, so that I understand the context?

Thanks for the clarification, I am already aware of the retention system prefix. I just was confused and thought you meant a prefix in the context of the device. And also thanks for the wrap up of the previous discussion, this helps me a lot.
Anyway, I don't want to delve to deep into the history of the retention system and would like to take its current state as given.

a. When this method needs to be extended for other devices it would be needed to be able to uniquely link between the device and the stored state,

This unique link between the device and the stored data should be achievable, for instance via the device name. Which has to be unique, as far as I understood it. Otherwise device_get_binding wouldn't make much sense.

When retention is used with the prefix to identify the device it is not possible to write firmware that could cover different prefixes: once the prefix is set in the bootloader all applications that are using this should use the same prefix. An application supporting two different prefixes is not supported (at least not at the moment).

Yes, there has to be a common ground between a bootloader and a firmware about how the device state should be communicated. Having a single prefix given in the devicetree seems to be reasonable to me. But besides this, just taking the retention system as the current state-of-the-art approach to communicate between the bootloader and the firmware, this possible problem is separate from the current issue at hand. I will just be a user of the retention system, and how the retention system is implemented internally should not matter that much in this case.

Retention subsystem is safe for use however you want to use it, including for implementing this function.

The discussion moved to the PR #71336


customizing pool parameters

hi everyone
since i am new to puppet i have a hard time understanding what i need to write inside my manifest file in order to change the pool listen parameter to unix:/var/run/php5-fpm.sock, user to nginx and group to nginx?
thanks

We originally intended that you use hiera for creating php-fpm pools. You would basically write this in your hiera config:
php::fpm::pools:
  mypool:
    listen: 'unix:/var/run/php5-fpm.sock'

You can find out which parameters are supported in our new documention: http://php.puppet.mayflower.de/php/fpm/pool.html
We will have support to create php::fpm::pool resource in the next release. See the linked commit that I pushed to master.


Support for Valibot types

Are there any plans to support Valibot for parameter types in the future?
It's a Zod alternative and is much more light weight - the same goal as itty-router

Hey @henrytoone there are no plans to support any other validation framework other than Zod


The demo project will eat lots of memory up to 1.5G+

When I run the demo project, zoom in and scroll , the app wouldn't response anymore.
Here's the screenshot

Sorry , I post this issue to the wrong repo


Base path to reverse proxy

It will be great if we could specify a base path through the docker environment, like this : -e BASE_PATH=/speedtest

If you search the issues, there are many discussions on reverse proxies setup, Traefik etc.

I've read many discusssions about this, but not really that issue.
It's about subfolder nginx for reverse proxy.
APP_URL in .env it's not for that, right ?

the app is listening on 80 and 443, you should be able to address this with NGINX without requiring modifications.
What exactly are you trying to achieve?

I try to have https://myowndomain/speedtracker

With Traefik I can do that using a prefix after the domain. I guess it's doable also with NGINX if that's what you use, you don't need basepath on the app.

With Traefik I can do that using a prefix after the domain. I guess it's doable also with NGINX if that's what you use, you don't need basepath on the app.

How you do this in Traefik?
When using with nginx /speedtracker path shows 404 and docker logs show this:
 "GET /speedtracker/ HTTP/1.0" 404 6603 "
If I put this to nginx (basically rewriting /speedtracker/ to /)
rewrite /speedtracker/(.*) /$1 break;
It will try to redirect to mydomain.com/admin after that, which is also incorrect behaviour as it should redirect to mydomain.com/speedtracker/admin.
With older speedtest-tracker using environment key APP_URL=/speedtracker this worked perfectly.
I also tried to use same env config with this one without success. Same thing when trying to use APP_URL=mydomain.com/speedtracker.

Same for me, it doesn't work.
For example, with the older henrywhitaker's repo, this nginx configuration work like a charm.
@alexdelprete could you unclose this issue, it seem real

how you do this in Traefik?

https://doc.traefik.io/traefik/middlewares/http/stripprefix/

Same for me, it doesn't work.

what exactly doesn't work? Speedtest-Tracker is not a proxy, nor a webserver, it's a webapp.
you can say something doesn't work when its documentation describes a feature, a configuration, and that doesn't work. this is not the case. your expectations about an app is not a bug.
this webapp is listening on http/https ports, no path/subpaths, but on root. it's up to your reverse proxy to be configured like you want it to behave, in order to proxy correctly this webapp on root path. On Traefik StripPrefix can be used, on NGINX I have no idea because I never used it. Check NGINX documentation on how to achieve this and don't blame it on the webapp.
Furthermore, I'm not the maintainer/dev, that would be @alexjustesen and he already closed the case because it's not a bug, it's something the reverse proxy has to manage.

how you do this in Traefik?

https://doc.traefik.io/traefik/middlewares/http/stripprefix/

This doesn't work, same redirect problem with traefik when using

It tries to redirect mydomain/admin when it should be redirecting mydomain/speedtest-tracker/admin
Base url has to be programmed into application, middleware/reverse proxy cannot fix this as far as I know.
If you have working configuration, feel free to share.

Same for me, it doesn't work.

what exactly doesn't work? Speedtest-Tracker is not a proxy, nor a webserver, it's a webapp.
you can say something doesn't work when its documentation describes a feature, a configuration, and that doesn't work. this is not the case. your expectations about an app is not a bug.
this webapp is listening on http/https ports, no path/subpaths, but on root. it's up to your reverse proxy to be configured like you want it to behave, in order to proxy correctly this webapp on root path. On Traefik StripPrefix can be used, on NGINX I have no idea because I never used it. Check NGINX documentation on how to achieve this and don't blame it on the webapp.
Furthermore, I'm not the maintainer/dev, that would be @alexjustesen and he already closed the case because it's not a bug, it's something the reverse proxy has to manage.

I don't tag it as a bug, tag was FEATURE and i think it's a real feature.
So if you can't have any idea because you never use it, why did you close this ?
I have checked NGINX documentation, i have a lot of app in my nginx configuration.
I gave you an example with the older repo, which have added a APP_PATH or PATH_URL in the .env, that's why i asked if this feature will be implemented, nothing more

I don't tag it as a bug, tag was FEATURE and i think it's a real feature.

Sorry, I tought you opened it as an issue, my bad.

So if you can't have any idea because you never use it, why did you close this ?

I'm not the maintainer, you are confusing names.

I gave you an example with the older repo

This is not the old project, it's a new one. You can achieve what you want if you configure properly your reverse proxy, if your reverse proxy doesn't allow to do it, change proxy.

Base url has to be programmed into application, middleware/reverse proxy cannot fix this as far as I know.

Quote from traefik docs:

Use a StripPrefix middleware if your backend listens on the root path (/) but should be exposed on a specific prefix.

Feel free to look for working configs in Traefik community forums, there are a lot of threads, here's one: https://community.traefik.io/t/traefik-v2-6-pathprefix-wont-work/13398/2

Use a StripPrefix middleware if your backend listens on the root path (/) but should be exposed on a specific prefix.

@alexdelprete and that's the issue, this applies to backend.  I see how you would think this would work in situation like this when it doesn't
If I had an API which calls mydomain/api, I could redirect that with mydomain/speedtracker/api and it would work just fine as backend usually doesn't try to redirect user to another address.
When connecting to speedtest-tracker frontend tries to redirect to /admin path and you cannot change how that works with middleware, you have to change that in code.
It also hardcodes assets path to /, so even when I could load page without redirecting, assets aren't loading correctly.
And even on your stackoverflow link it's stated that it will only work if your application works like that:

This will only work as long as the app you are trying to start does NOT set a custom html  to something hardcoded like root /.

Traefik isn't the solution here. Code changes are required to set correct base path.

@alexdelprete i'm sorry, i misconfusing yours nicks
@alexjustesen could you unclose this feature demand ?
Thanks both for your time

and that's the issue, this applies to backend. I see how you would think this would work in situation like this when it doesn't

It does...and that's the only way to make it work with Laravel, Laravel still doesn't officially support serving an app through subdirs.

Luckily they merged this PR, which leverages X-Forwarded-Prefix. And Traefik's StripPrefix also creates that header exactly for these use-cases.

When connecting to speedtest-tracker frontend tries to redirect to /admin path and you cannot change how that works with middleware, you have to change that in code.

Sure you can, because Traefik sets X-Forwarded-Prefix header, and the backend (Laravel in this specific case) should use that to build the relative URLs, prepending the Prefix:

Now I found out that the configuration of Laravel in Speedtest-Tracker didn't include the support of X-Forwarded-Prefix, so I'll try to include it and do some tests.

i'm sorry, i misconfusing yours nicks

our names...these are our real names, not nicknames. :)

@alexjustesen could you unclose this feature demand ?
Thanks both for your time

check my reply above to Racle, with some technical details.

@alexdelprete the bulk of the questions you seem to target are proxy related, espcially when dealing with Traefix. Would you be up for writing a section in the docs in extreme detail on how to setup reverse proxies and then how they can be used with Speedtest Tracker? Thinking we can eliminate a lot of these questions and issues if we get some good docs written.
If you're interested we can connect on Telegram or Discord.

Would you be up for writing a section in the docs in extreme detail on how to setup reverse proxies and then how they can be used with Speedtest Tracker? Thinking we can eliminate a lot of these questions and issues if we get some good docs written.

Sure, I'd love to contribute, but first I need to address some issues in order to find the proper configuration of the project. Let's connect on Discord: @alexdelprete#5566.

Base url has to be programmed into application, middleware/reverse proxy cannot fix this as far as I know.

Quote from traefik docs:

Use a StripPrefix middleware if your backend listens on the root path (/) but should be exposed on a specific prefix.

That is exactly what you're trying to achieve, that's the use case.
Feel free to look for working configs in Traefik community forums, there are a lot of threads, here's one: https://community.traefik.io/t/traefik-v2-6-pathprefix-wont-work/13398/2
Also:

https://community.traefik.io/t/pathprefix-and-strip/2122/3?u=alexdelprete
https://community.traefik.io/t/traefik-is-unable-to-strip-prefix-before-forwarding-request-to-a-
https://stackoverflow.com/questions/73680522/traefik-proxypass-using-stripprefix-i-get-a-404-for-sub-queries
https://medium.com/predictly-on-tech/using-traefik-in-docker-compose-abc1c327d7f7
https://www.reddit.com/r/Traefik/comments/lss1ie/cannot_make_stripprefix_work_help/

I don't use this config, I use speedtest.mydomain.dom.

I don't understand why you refuse to accept a valid argument and a true problem.
Not everyone uses traefik, and reverse proxies are not magic.
Most of the web runs on Javascript (webapps included). When you reverse-proxy a webapp, the JS still contains the incorrect paths. Even if you rewrite the server's response (aka the javascript), which I think you are referring to some posts above, it's almost certain that you will run into trouble.
Finally, not everyone can use a subdomain. I can't (at home).

I don't understand why you refuse to accept a valid argument and a true problem.

Because you don't read carefully, or you didn't understand what you read, so I'll be even more clear:

Laravel does NOT support subfolders. Full stop. They merged only recently a PR that allows to circumvent the issue, and that's what I'm thinking to follow in order to make it work.
In order to make it work, Laravel (Simfony actually) leverages specific headers to build the path of resources, so when you say "the JS still contains the incorrect path" it's clear you don't understand what we're talking about. I'm not rewriting the server's response, it's Laravel through headers building paths dynamically. And this works not only for Traefik but with all reverse proxies that support X-Forwarded-Prefix. NGINX supports it, and I bet others too.
Finally, I didn't say USE SUBDOMAINS, I said: "I use subdomains", I hope you understand the difference. Furthermore, Laravel devs official reply is: "use subdomains, subfolders ARE NOT SUPPORTED".

Got it now? Hope so.

Any news on this?

X-Forwarded-Prefix has been implemented in Januray: PR #342

Any news on this?

X-Forwarded-Prefix has been implemented in January: PR #342

For me it still doesn't work correctly.
Most urls works. But all urls under /livewire remains at / instead of the configured prefix.
Nginx.
location ^~ /speedtest-tracker/ {
    proxy_pass http://speedtest-tracker:80/;
    proxy_set_header Host "localhost";
    proxy_set_header X-Forwarded-Prefix /speedtest-tracker;
    proxy_set_header X-Forwarded-Proto $scheme;
    access_log off;
}


Load Multiple Files into the ADAM Variant schema

I have managed to load a single vcf file into the ADAM Variant schema using
adam-submit transformVariants inputpath outputpath
Now I want to load multiple files into the outputpath
I can't just use the same command with different inputpaths since the output directory already exists after loading the first sample
How can I load multiple samples into the same ADAM variant schema?

Hello @kattttttt!
Spark uses Hadoop file system glob syntax for multiple input files; see
https://hadoop.apache.org/docs/r2.4.1/api/org/apache/hadoop/fs/FileSystem.html#globStatus(org.apache.hadoop.fs.Path)
E.g.
$ adam-submit transformVariants data/*.vcf outputpath

In adam-shell you can union multiple variant datasets together explicitly
import org.bdgenomics.adam.rdd.ADAMContext._
val variants1 = sc.loadVariants("inputpath1")
val variants2 = sc.loadVariants("inputpath2")
variants1.union(variants2).saveAsParquet("outputpath")

Hope this helps!

yes, thank you!

No problem, thank you!

Actually, I continue to have problems with loading multiple files:
I keep getting the error message 'Too many arguments: nameOfFileToBeLoaded'
What could be my problem?

Actually, I continue to have problems with loading multiple files:
I keep getting the error message 'Too many arguments: nameOfFileToBeLoaded'
What could be my problem?

I am sorry, I gave you bad advice above! The example I gave will fail with Too many arguments error due to shell path expansion
$ adam-submit transformVariants data/*.vcf all.variants.adam
Too many arguments: data/bqsr1.vcf

When specifying a glob from the command line, it needs to be in quotes
$ adam-submit transformVariants "data/*.vcf" all.variants.adam
  ...
$ du -h *.adam
80G	all.variants.adam

Closing as resolved, please reopen if I can help further.


How to add a callback to authorize streams

Thank for this library!
This is not a real issue but a question: How can I add authorization using this library?
I got it working using C but the SRT C API has a callback to pass to the listen function.
https://github.com/Haivision/srt/blob/master/docs/AccessControl.md#example

Hi!
I am sorry for late response.
I just added code for AccessControl to an example program.
https://github.com/openfresh/gosrt/pull/8/files

Thank you @thmatuza
have a nice day!

@mauricioabreu I am sorry my previous code was not enough for AccessControl.
It could get streamid but cannot set passphrase before establishing connection.
I just fixed it on this pull request.
https://github.com/openfresh/gosrt/pull/9


Heading links

Hugo automatically generates IDs for header elements via the functionality in the BlackFriday markdown parser, and it is a somewhat common feature to create <a> elements next to these headers (or appearing on hover) which link to these IDs for ease of copying links to specific headings on a blog post. Monochrome currently does not have any such link present, on hover or otherwise. Could this be added?

I think this feature can be done by regular expression replacement for the .Content rendered from hugo. I'll add this to TODO, thanks for the suggestion.

Implemented in v3.1.0


refactor: move heartbeat response handler to common

I hereby agree to the terms of the GreptimeDB CLA
What's changed and what's your intention?
Move the heartbeat response handlers to common
Checklist

[ ]  I have written the necessary rustdoc comments.
[ ]  I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)
#1126

PTAL @MichaelScofield


primitive_types4 passes by default

Looks like #278 may have deleted some lines that make this exercise pass by default. Not sure if this is intentional, or if I am missing something - as since I'm doing the exercises, I'm still new to all of this! Just wanted to make sure the team was aware of it.

:woman_facepalming: Thanks, my bad.


Issue 14989 - Overload merge sometimes doesn't work

https://issues.dlang.org/show_bug.cgi?id=14989
I found this bud during fixing issue 13203 (#4816).

The code refactoring on AliasDeclaration is necessary to fix other overloading bugs, e.g.:
https://issues.dlang.org/show_bug.cgi?id=15225

Auto-merge toggled on

I ack'd this in #2130

Thanks a lot!


provide a simple example how to add an external

Hi,
I would really like to use cpm in my project, but I can't figure out how to most simply add an external project. For example in my app I need an (iOS tuned version of) freetype:
https://github.com/cdave1/freetype2-ios.git
I was hoping I can just get this directly, but I feel I have to clone it and make it cpm ready? what about these json files you demonstrate for google test, can I just write one of those instead and place it in my own project?

Ya it will be a little bit more complicated than using the repository as-is. It generally depends on the build system being used for the repository in-question.
For the linked repo, it looks like it is an xcode project. I assume you could do something like execute xcodebuild from an ExternalProject_Add CMake command. I have https://github.com/iauns/cpm-libuv which builds a project that doesn't require CMake but instead uses autconf. That's probably better to look at than the google-test repo since google-test uses CMake. Also, freetype2-ios may have a CMake repo laying around somewhere which could potentially make things easier.

ok, but I always have to make a repo for an external, right?

I cannot specify it "inline"? With ExternalProject I sadly loose the caching :(

how about adding an external that already uses cmake? do I still have to set up a repo with the cpm makefile, or can I specify directly?

ah, or I can just put it inside the repo itself, right? a tutorial for these things wold e cool :)


deploying-django-application-heroku-server

Article checklist
Pre-submission checks

Please ensure that you have only one open topic suggestion (issue) + in-review article (linked pull request) at a time. This will ensure that we complete the review process in a timely manner from inception to publishing

If you have not already, please go over our Resources Page for more tips and tricks on how to improve your overall technical writing so reviews are swifter, increase the chance of a payout and provide more value to our readers.

For first-time contributors and for more details on our submission guidelines, see our Contributing Guidelines.

Formatting and structure checks

[x] Have you used the correct folder and file structure? - see Contribution Guidelines

[x] Is your article properly formatted in Markdown? - see Github Markdown guide

[x] Have you used our preferred heading structure? - H3 (###) and up

[x] Does your article follow any of the suggested structure formats? - see example formats

[x] Is your article over 750 words? - Tool: Wordcounter.net

[x] Is the article you are submitting an in-depth and unique article? Does it go beyond what is in the official docs and what is covered in other blog sites. See these articles as examples.

[x] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.

[x] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.

[x] Have you included a hero image that is 600x400 pixels and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images

Grammar & plagiarism checks

[x] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid - Grammarly
[x] Please place your article through a 3rd party plagiarism checker. We suggest using Quetext, this tool is free and has a daily limit. We typically accept articles with 10% or less.
[x] Have you checked your article for readability? - Tool: Hemmingway
-[*] Have you added sources for quotes and images that aren't yours?

Technical checks

[x] Are your code snippets properly formatted for syntax highlighting - see Syntax guide
[x] Have you checked your code runs correctly and you've highlighted all necessary dependencies for installation?
[x] Are the software programs and packages you're highlighting in your article up to date, using current versions and not deprecated?

Topic suggestion this closes

Remove the backticks and add the issue number below to link and close your Topic Suggestion (issue) when your article has been published (PR has been merged). See this video for more details.

This closes #issue-number

Finally, delete the article checklist notes in blockquotes and submit your PR. We look forward to reviewing your article.
This fixes issue #2637

Good afternoon and thank you for submitting your article for publishing. @Horlawhumy-dev
Your article has been entered into our queue and should be reviewed (and published pending any changes) as soon as a peer reviewer is finished with the ones in the queue before it. :rocket:
Thank you.

My author page is under the author's folder with the name "arafat-olayiwola".

I'm so confused, your topic is mentioned in 4 PRs. Here, here, here, and here@Horlawhumy-dev
@hectorkambow already closed your last PR and asked you to suggest an alternate topic to explore. You can't open a new PR for the same topic and re-submit the same article.
I'm closing this PR. Please suggest an alternate topic with a new topic suggestion to explore.
cc @adrianmurage


Unclear error while deploying a micro vm on qanet weblets

Description
Unclear error while deploying a micro vm on qanet weblets.
Error: Error: Failed to deploy the deployment on node 2 due to Error: Failed to send request to twinId 9 with command: zos.deployment.deploy, payload: {"version":0,"metadata":"{\"type\":\"network\",\"name\":\"NW8f6bad24\",\"projectName\":\"VM\"}","description":"","twin_id":38,"expiration":0,"workloads":[{"version":0,"name":"NW8f6bad24","type":"network","data":{"subnet":"<IP_ADDRESS>/24","ip_range":"<IP_ADDRESS>/16","wireguard_private_key":"f+WS8Pw0OoSfO7gVgA0F7XFHJrl9sOPhRMwyiqG6eCc=","wireguard_listen_port":7793,"node_id":2,"peers":[]},"metadata":"{\"type\":\"network\",\"name\":\"NW8f6bad24\",\"projectName\":\"VM\"}","description":""}],"signature_requirement":{"requests":[{"twin_id":38,"weight":1,"required":false}],"signatures":[{"twin_id":38,"signature":"12733328e67c4881f4acf5f260e42d9b09e1146848bc7b6463f8f82aeb5abb1a3e9d3b669f873e999707ce9f16e48c47f8c6d90d6265becd8802eeb2ff9de688","signature_type":"sr25519"}],"weight_required":1},"contract_id":12878} due to 255 unexpected end of JSON input

Screencast from 01-06-23 12:04:43.webm
Steps to reproduce
List of steps to reproduce the problem if it's a bug
Environment

Network: qanet
Weblets version: 2.0.0-rc11
Grid_proxy version: v0.8.0
twin_id: 38

logs
Console logs: https://gist.github.com/mohamedamer453/6f7e01eda062ca5d4f732164aa3de864

Verified on devnet.
I created a new twin from the dashboard and after i selected the relay it was created successfully and once i added the mnemonic to the profile manager in the playground and it loaded i checked the grid proxy and the pk was added successfully.

and i was able to deploy a vm from this twin without any issues.


feat: add eslint/prettier and cleanup issues

Adds eslint/prettier and cleans up all identified issues.

Thanks again for your work on this!


Two similar custom environment, PPO learns on both but SAC only on one

Describe the bug
I have two custom environments, one with a hand and one with a humanoid with hands. In the past, I trained the humanoid with just PPO and the hand with both PPO and SAC.
I am currently trying to train the humanoid with SAC by adapting the training script I used for the hand. However, it does not converge at all. I am trying several hyperparams combinations, but I always get the same results no matter the combination. The maximum reward per step is 1 and the cumulative reward I am getting after 2000 steps is always 1. However, if I use the exact same environment but train using PPO instead of SAC, it works. Also, if I use the exact same training script with the hand environment, it works.
Any idea about what could be wrong?
Code example
Repository with code
System Info
Describe the characteristic of your environment:

GPU model: RTX 2080Ti
Python version 3.9.12
Versions of any other relevant libraries: all indicated in requirements.txt file

To add more info, I am currently running a hyperparameters search over 5M steps on the following parameters
parameters:
  learning_rate:
    values: [0.003, 0.001, 0.0003, 0.0001, 0.00003]
  buffer_size:
    values: [1000000, 2000000]
  learning_starts:
    values: [100, 5000, 10000]
  batch_size:
    values: [256, 512]
  tau:
    values: [0.0, 0.1, 0.25, 0.5]
  ent_coef:
    values: ["auto", "auto_0.1", "0.25", "0.5", "1.0"]
  target_entropy:
    values: ["auto", 0.1, 0.2]
  log_std_init:
    values: [-1.0, -3.0, -5.0]


Updated code to Swift 3 and Added Vertical scrolling support.

Updated project to support xCode 8.3.2, Swift 3.
Added code to support vertical scrolling.

Thanks for contributing @ArunK001


Settable number of subplots in feature grid view

@nsteinme would that be of any use? (i.e. having3 or 5 columns/rows instead of 4)
if we go ahead with your suggestions about the dimensions in the grid view, the number of subplots will be determined by the number of features per channel

Sure, although I doubt anyone would commonly want to go above 4x4 - it is already a lot! I'd say it's not a critical feature.

Well, thinking about it slightly differently, if you can choose any features including custom things, then the feature grid could easily become a "scatter plot matrix" - not for spike sorting but for later analyses - in which case you would for sure want to be able to select a custom number of subplots.


Extremely weird behavior of the MDBDataTable component

Env
$ npm --version
7.9.0

Steps To Reproduce:
Create the base app:
$ mkdir test-table && cd test-table
$ create-react-app --template=typescript ./
$ npm i --save mdbreact --legacy-peer-deps

Change the App.tsx to:
import './App.css';
import {MDBDataTable} from 'mdbreact';

function App() {
    return (
        <MDBDataTable
            data={{
                columns:[{
                    label: 'temp',
                    field: 'key2'
                }],
                rows: [{
                    key1: "value1",
                    key2: "value2",
                    message: "the-message"
                }]
            }}
        />
    );
}

export default App;

Start app:
$ npm start

Observed Behavior
The table displays "the-message"
Expected Behavior
The table should display "value2"
Questions:
Is there some magic field in MDBDataTable called message ? Is this just a bug that should have surfaced up by now, but somehow, hasn't ?

Is this documented somewhere ?

Nope, that's our oversight. We'll add a description to it before the next release (22.11) :)

Great. Thanks.


Upgrading GetOptionKit to 2.7.1 version

Changed log

Using the php ~/composer.phar update corneltek/getoptionkit command to upgrade the corneltek/getoptionkit to 2.7.1 version.
Since upgrading above dependency, using the substr function to check $arg variable is extra argument.
Fix extension installing option searching and parsing.
It's related to the #1316.

Closed.

Closed.


Since the first challenge containing the tags  the page is going crazy
I believe your code is reloading every time you make an edit ? well with those script tags it is reloading constantly! and after a few seconds it says I completed this challange and to go to the next one
using Firefox 40.0.2
don't know what else I should include in this
maybe my windows ? 8.1 Pro

I think this issue is fixed

Yes @zWarMob it looks like this is a duplicate of #2729 which has been fixed.
Thanks@


Tuning needed to fix premature disengagement with pedal on Honda Passport 2019

This is to document the issue and working fix so far.. not necessarily ready for merging as I'm not sure these changes are ok for Pilots.
Since the Passport is recognized as a Pilot 2019 not sure if it's possible to distinguish them with signatures.

This should be two separate PRs. One for your panda changes in the panda repo, and one in the opendbc repo for DBC changes


Bug in PSD Plotting: Incorrect dB Scaling for Amplitude in MNE

Description
When plotting the Power Spectral Density (PSD) using mne.time_frequency.Spectrum.plot() or related functions with dB=True and amplitude=True, the decibel scaling appears to be incorrect. This issue arises because the conversion between power and amplitude dB follows different logarithmic relationships, and amplitude requires a factor of 20 in the scaling, whereas power uses a factor of 10 (implement here).
Example to reproduce
import mne
import numpy as np

# Generate sample data
sfreq = 1000  # Sampling frequency
times = np.linspace(0, 2, 2 * sfreq)
data = np.sin(2 * np.pi * 10 * times)  # 10 Hz sine wave
info = mne.create_info(ch_names=['sin_wave'], sfreq=sfreq, ch_types='eeg')
raw = mne.io.RawArray([data], info).load_data()

# Plot PSD with dB=True
raw.plot_psd(dB=True, amplitude=True)

Expected result
The peak at 10Hz is expected to be $120=20 * log(10^6)$, but the plot returns 60.

thanks for the very clear example @DingkunLiu! Fix is in #13036


build ERROR

Describe this problem
error: failed to run custom build command for generated_types v0.1.0 (https://github.com/CeresDB/influxql.git?rev=acbd3ad7651f2deb74857155bea892f88926da57#acbd3ad7)
Server version
da7c5a126949fc385fd78e57e4f2ce3fb3d19c2f
Steps to reproduce
cargo build --release
Expected behavior
No response
Additional Information
No response

please solve this problem

It seems you haven't installed protobuf-compiler?

Yes,thank you!
---- Replied Message ----
| From | Jiacai @.> |
| Date | 12/07/2023 11:40 |
| To | @.> |
| Cc |<EMAIL_ADDRESS>|
| Subject | Re: [CeresDB/horaedb] build ERROR (Issue #1350) |
It seems you haven't installed protobuf-compiler?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

Closing, feel free to open new issue if you still have questions.


Lower log level of trace info stats to debug

What does this PR do?
Lowers the log level of trace info stats from info to debug.
Motivation
Around two out of three of the info logs from the Datadog agents are these trace info stats. They are handy for debugging, but are not always needed. Also the ingestion of these logs is not free.
Additional Notes
These changes still allow for debugging trace stats by putting the agent in debug mode.
Describe how to test your changes
Running the Datadog agent in debug mode shows the logs. They are not shown when running the agent with a log level of info or higher.

Fair enough. Changing the log level to WARN helped reducing the logs. I just hope there isn't any other useful info logging that we're missing now..

Nothing to worry about. INFO is meant to be purely informational. The only time INFO may come in handy is if one wishes to check status or get information about what's going on at a specific time (by looking at logs) or for debugging issues. In those cases, it can always be switched back. Furthermore, we're working on allowing the change of logging levels without restarting.


Supported languages

Hi!
May I ask for the list of supported languages?
Thanks for this awesome project!

It's Shiki's default ones. I think you can load more custom ones as well though, it's documented on the docs website

Oh, Thanks.
I found the list from https://github.com/shikijs/shiki/blob/main/docs/languages.md


Fix avro-c build failing on new cmake and MacOs

@thiru-mg ping on this?

@thiru-mg ping on this?

Guess it's not happening.


LeftTurnReportPreCheck:

tempDate: The tempDates are picking up datetime input from input and adding peak hour time to it. So if someone puts in StartDate = 01/09/2020 06:00:00, the peak hour (AM) will turn into 06:00:00 + 7:30 = 13:30:00. We want the peak hour to be 07:30:00.
Solution: Nuzhat is working on finding a solution

non-issue, thanks Morgan


SoundFile bug

WW_SOUNDFILE_HUH and WW_SOUNDFILE_WEE don't work
fix?????? or just leave out??????

For betarelease we just deleted these from the plist--> not a permanent solution though


Doesn't run on CPUs when accelerator="ddp_cpu" on TPUs

🐛 Bug
Doesn't run on CPUs when accelerator="ddp_cpu" is selected for Trainer on TPUs

To Reproduce
    model = BoringModel()
    trainer = Trainer(
        accelerator="ddp_cpu",
        tpu_cores=8,
        max_epochs=5,
    )

@awaelchli An update on this issue, ddp_cpu works on TPUs when num_processes is default. But I pass values for it (2, 3, etc), it throws an Error.
https://symbolize.stripped_domain/r/?trace=7f8c85b0ff24,7f8c85a4520f,6c65636300316c64&map=
*** SIGTERM received by PID 120425 (TID 120425) on cpu 7 from PID 118970; stack trace: ***
PC: @     0x7f8c85b0ff24  (unknown)  open
    @     0x7f8a124b21e0        976  (unknown)
    @     0x7f8c85a45210  (unknown)  (unknown)
    @ 0x6c65636300316c65  (unknown)  (unknown)
https://symbolize.stripped_domain/r/?trace=7f8c85b0ff24,7f8a124b21df,7f8c85a4520f,6c65636300316c64&map=ca1b7ab241ee28147b3d590cadb5dc1b:7f8a057b3000-7f8a127e5b20
E0707 12:33:03.001385  120425 coredump_hook.cc:250] RAW: Remote crash gathering disabled for SIGTERM.
E0707 12:33:03.015446  120425 process_state.cc:771] RAW: Raising signal 15 with default behavior

Is there any known difference of a CPU inside a TPU machine? make sure to omit tpu_cores when running this plugin. We should probably make this an error.
So you are saying
    model = BoringModel()
    trainer = Trainer(
        accelerator="ddp_cpu",
        num_processes=2
        max_epochs=5,
    )

does not work on a TPU machine, but on a regular CPU machine all is good right?

It fails even after omitting the tpu_cores flag.
    model = BoringModel()
    trainer = Trainer(
        default_root_dir=os.getcwd(),
        limit_train_batches=30,
        limit_val_batches=30,
        accelerator="ddp_cpu",
        # tpu_cores=8,
        num_processes=2,
        num_sanity_val_steps=0,
        max_epochs=3,
        weights_summary=None,
    )

Yes, it works as expected on my CPU machine. No worries, I will dig more into it.

Update on this, I commented the XLA interactions in the Lightning code, but still, it was raising issues. Seems like this would be an issue on the tpuvm side if you are running ddp_cpu directly on TPU host machines.

@kaushikb11 I would recommend removing the P0 here, since ddp_cpu is really just meant for debugging. It's not recommended over just regular training with accelerator=cpu, as there are not performance benefits.
What is your recommendation regarding the issue. Do we want to handle it in the accelerator connector with a error message, that this combination is not supported?

Yup, let's add an error message in the Accelerator Connector that this combination as we are sure it is not supported, rather than the Users being bombarded with some alien error.
Will do a PR for this.


Boosts vs Dragons from Dragonbane weaponry

🚀 Feature Proposal
Metallic and Chromatic dragons are weak to dragonbane weapons in osrs, as are skeletal and fossil island wyverns, and should also receive a benefit in OSB.

this already exists


print startup time in version upload

What this PR solves / how to test
Fixes version upload missing from version upload. Similar to https://github.com/cloudflare/workers-sdk/pull/6318
Removes bundle-size warning.
Author has addressed the following

[x] Wait for API release with field

Tests

[ ] TODO (before merge)
[x] Included
[ ] Not necessary because:

E2E Tests CI Job required? (Use "e2e" label or ask maintainer to run separately)

[x] I don't know
[ ] Required / Maybe required
[ ] Not required because:

Changeset (Changeset guidelines)

[ ] TODO (before merge)
[x] Included
[ ] Not necessary because:

Public documentation

[ ] TODO (before merge)
[ ] Cloudflare docs PR(s):
[x] Not necessary because: already documented at https://developers.cloudflare.com/workers/platform/limits/#worker-startup-time
API docs at api.cloudflare.com already have startup_time_ms field added

There are some e2e tests that need their snapshots updating: See https://github.com/cloudflare/workers-sdk/actions/runs/10176257471/job/28145228623?pr=6385

Also there are some formatting issues, which can be addressed by running pnpm fix in the root.

moving to #6392 for CI

There are some e2e tests that need their snapshots updating: See https://github.com/cloudflare/workers-sdk/actions/runs/10176257471/job/28145228623?pr=6385

I think the snapshots were updated, I believe the run failed as expected due to API fields not yet being released.


Persistent high CPU load while editing LaTeX files

See: https://github.com/emacs-lsp/lsp-mode/issues/2417

See: https://github.com/emacs-lsp/lsp-mode/issues/2417


Question: How to use gremlin as a storage-driver

Description
I've recently moved to using ent however am seeing issues with the generated client.go, specifically Open. While trying to follow the CRUD example:
import (
    "log"

    "<project>/ent"
)

func main() {
    client, err := ent.Open("gremlin", "http://localhost:8182")
    if err != nil {
        log.Fatal(err)
    }
}

Following this I receive the error unsupported driver: "gremlin" and when inspecting my generated client.go it seems that dialect.Gremlin is missing from the switch statement:
// Open opens a database/sql.DB specified by the driver name and
// the data source name, and returns a new client attached to it.
// Optional parameters can be added for configuring the client.
func Open(driverName, dataSourceName string, options ...Option) (*Client, error) {
	switch driverName {
	case dialect.MySQL, dialect.Postgres, dialect.SQLite:
		drv, err := sql.Open(driverName, dataSourceName)
		if err != nil {
			return nil, err
		}
		return NewClient(append(options, Driver(drv))...), nil
	default:
		return nil, fmt.Errorf("unsupported driver: %q", driverName)
	}
}

Versions

Go: 1.15
Ent 0.4.3

Steps to reproduce

entc init Foo
go generate ./ent
check ./ent/client.go

Hey @jhole89,
The default storage driver for ent is SQL, if you want to use Gremlin, you can configure it using the --storage flag. See this example.
Please note that as mentioned in the website, Gremlin is experimental atm.

@a8m thanks. Can I suggest adding more info the page linked, maybe pointing to https://entgo.io/docs/code-gen/#code-generation-options with an explicit example? Requiring users to find at example listed in the source code (and one not listed under ./examples) isn't a great introduction.

Sure, we can add this. Thanks for the feedback
(mentioning here #832, to not forget it when I'll update the website)

@a8m Another suggested addition for the site: it would be good to add that if running standard gremlin-server (which uses int64 types for ID rather than Neptune's string ID type), the go generate command should be //go:generate go run github.com/facebook/ent/cmd/entc generate --target . --storage=gremlin ./schema.


CMYK colors are not correct

Hey there. I'm trying to convert a hex to cmyk and the cmyk that is returned is not correct. For example #41835C converts to cmyk(50,0,30,49) which are 2 different colors. Any ideas has to what might be happening? If you test on your side do you get the same value? Thanks in advance.

Hi, I will check it. I'll let you know when it is solved. Regards!


fix(selftest): kern_version logic

Context: https://github.com/aquasecurity/libbpfgo/pull/346#discussion_r1286824212

@javierhonduco would you mind testing? Thanks.

Works fine on my machine! Thanks for the prompt fix!


Move libn veth to netns

Initial attempt to move veth processing from libnetwork code into netns.  This does not quite fully do that, so worth an initial review before completing.  Also need to write UTs.

Is your initial PR comment above wrong?

I've finished looking at this for now. Assign it back to me when you want me to take another look

OK, just one comment tweak then LGTM


model output directory management

delete failed model runs
ignore metrics in directory name

65f682627eb408f3f70c0abbfcee836a22d8ae27 fixes the second issue

Could have drain --clean delete any step output that is missing a target file

Could have drain --keep delete anything that's not not in the specified workflow(s).


Enable automation to remove inactive users on AP GitHub org

Background

There are potentially lots of stale AP GH Org accounts. To ensure we are effectively managing a shared pool of seats we need to enable the automation that removes inactive users to this org.
Approach

Same as MoJ Org i.e. email to users followed by removing them after a given date.
Acceptance Criteria

[ ] Automation enabled.

Reference
How to write good user stories

W/C 12th December

Repo created https://github.com/moj-analytical-services/inactive-users

Script up and running


chore!: upgrade h3 to v1

updated h3 to version 1.01 in peer and dev dependencies
changed deprecated event.req to event.node.req in src/handler.ts
fixed mock events in utils.test.ts to use the same event structure

Codecov Report

Merging #7 (8830efc) into main (b6a2ec4) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main       #7   +/-   ##
=======================================
  Coverage   98.12%   98.12%
=======================================
  Files           1        1
  Lines         160      160
  Branches       43       43
=======================================
  Hits          157      157
  Misses          2        2
  Partials        1        1

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

@genechk
v0.2.0 published!
https://www.npmjs.com/package/@nozomuikuta/h3-cors
Again, thank you for your contribution ❤


Questions about the algorithm of ekf2 in Px4 firmware

I have a question about the ekf2 algorithm in Px4 firmware, that is, what measurement is used to fuse pitch and roll attitude in ekf2. For example, the previous EKF can use accelerometer and gyroscope fusion to output pitch roll attitude, but there is no accelerometer involved in the fusion in ekf2.

Hi!
The IMU data is considered inputs in EKF2 so you are right, accelerometer and gyroscope data is not fused as measurements, but it is still used to infer the attitude of the vehicle (in combination with all other sensors)
If you have any more questions don't hesitate to ask on the forum


Clamp rotation for up/down orbiting shortcuts.

This prevents the viewport from going upside-down.
@Calinou suggested this in
https://github.com/godotengine/godot/pull/51984#issuecomment-948614191:

For 3.4, I think we can just clamp the angle value when using the
camera orbiting shortcuts. We can investigate what to do with panning
and freelook in 3.5 and 4.0.

This should be submitted to the 3.x branch so it can be cherry-picked to 3.4 later on.

Heh, done. I didn't think of that :laughing:

Thanks!

Cherry-picked for 3.5.

Cherry-picked for 3.4.1.


bug(mat-slide-toggle): Use confirm dialog with slide toggle, if cancel the dialog, should not change the state

Reproduction
Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/angular-dchf74
Steps to reproduce:

Click the slide toggle and select cancel the confirm dialog
The state of the toggle still gets changed

After some research, (ngModelChange)="onHide()" will have the old value before toggling. Resetting value in the function body does NOT work. The implementation of slide-toggle is not something like slideToggleValue = !slideToggleValue?
event.stopPropogation() does NOT work also.
Wondering if there could be a workaround. Many thanks.
Expected Behavior
If click cancel, the state of the toggle should remain the old value.
Actual Behavior
If click cancel, the state of the toggle still gets changed
Environment

Angular:
CDK/Material:^9.0.0
Browser(s): Chrome
Operating System (e.g. Windows, macOS, Ubuntu): macOS

The NgModel behaves as expected. It will always emit the new/current value.
To achieve what you want, best would be to just prevent the click and keydown#space event. Angular has nice syntactic sugar to listen to the space keypress.
See my updated StackBlitz: https://stackblitz.com/edit/angular-dchf74?file=src%2Fapp%2Fslide-toggle-overview-example.ts

The NgModel behaves as expected. It will always emit the new/current value.
To achieve what you want, best would be to just prevent the click and keydown#space event. Angular has nice syntactic sugar to listen to the space keypress.
See my updated StackBlitz: https://stackblitz.com/edit/angular-dchf74?file=src%2Fapp%2Fslide-toggle-overview-example.ts

Thanks for the reply.
If someone click "cancel" in the confirm dialog, the state should not be change. The updated repo does not solve the problems.
Users may not want to press space to switch the content.

Looks like I didn't share the right StackBlitz. https://stackblitz.com/edit/comp-18950?file=src%2Fapp%2Fslide-toggle-overview-example.ts.
Does that work better for you?

Thank you Paul. This is exacty what I want.


GEODE-8337: Rename Version->KnownVersion, VersionOrdinal->Version

GEODE-8337
This PR completes the work started in GEODE-8240, and continued in GEODE-8330.
The main focus of this PR is renaming:
Version -> KnownVersion
VersionOrdinal -> Version
After this change, the versioning hierarchy will be:

In the first try at a PR, Git didn't notice that these two important source files moved. Instead they showed up as delete+create.
For this PR I'm starting with explicit git mv and then IntelliJ refactoring to rename the class inside the moved file, for each of the two source files. I'm putting each of those two git mv into a separate commit. After that I'm doing all the tidying up of related names (methods, fields, parameters, variables) and the minor substantive changes needed for upgrade tests that are looking for renamed classes/methods via reflection.
I intend to not squash when I merge this PR. Instead I'll edit the history so there are two commits: one with the git mv Version.java KnownVersion.java and a second one with any other git mvs and other changes.
Details
git mvs:

[x] Version.java -> KnownVersion.java
[x] VersionOrdinal.java -> Version.java
[x] VersionJUnitTest.java -> KnownVersionJUnitTest.java

Versioning

[x] getVersionOrdinal() -> getVersion()

KnownVersion

[x] getKnownVersion(final short ordinal, final KnownVersion returnWhenUnknown) -> getKnownVersionOrDefault(final short ordinal, final KnownVersion defaultKnownVersion)

MemberIdentifier

[x] getVersionOrdinalObject() -> getVersion()
[x] setVersionObjectForTest() -> setVersionForTest()

MemberData

[x] getVersionOrdinalObject() -> getVersion()

VersionManager

[x] findVersionClass() add a third class search option for KnownVersion

LuceneSearchWithRollingUpgradeTestBase

[x]  in assertVersion() add third method search option for "getVersion" method

Scour Javadoc for "VersionOrdinal" and friends and make sure they are up to date and use {@link xx} and {@code xx} where needed

[x] Versioning
[x] KnownVersion
[x] Version
[x] AbstractVersion
[x]  UnknownVersion
[x] VersioningJUnitTest
[x] KnownVersionJUnitTest

Dev Testing
run RollingUpgradeDUnitTest, LuceneSearchWithRollingUpgradeTests
PR Checklist

[x] Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?

[x] Has your PR been rebased against the latest commit within the target branch (typically develop)?

[ ] Is your initial contribution a single, squashed commit?

[x] Does gradlew build run cleanly?

[x] Have you written or updated unit tests to verify your changes?

@albertogpz for some reason I can't add you as a reviewer, but thought you might be interested in this, the "last" PR associated with GEODE-8240. This one finalizing the renaming of the types in the new versioning hierarchy (and the associated Versioning factory) etc.

@albertogpz for some reason I can't add you as a reviewer, but thought you might be interested in this, the "last" PR associated with GEODE-8240. This one finalizing the renaming of the types in the new versioning hierarchy (and the associated Versioning factory) etc.

@Bill it might be because I am not a committer. Thanks for taking me into account because I am definitely interested.

Thanks for the review @bschuchardt. I'm rewriting history on this PR now to get it down to the minimal number of commits (2). After CI runs on that I'll merge it!

Acceptance test failed with:
> Task :geode-assembly:docker

free(): invalid pointer

SIGABRT: abort

PC=0x7fb44f973e97 m=0 sigcode=18446744073709551610

signal arrived during cgo execution

goroutine 1 [syscall, locked to thread]:

runtime.cgocall(0x4afd50, 0xc420051cc0, 0xc420051ce8)

	/usr/lib/go-1.8/src/runtime/cgocall.go:131 +0xe2 fp=0xc420051c90 sp=0xc420051c50

I'm assuming this is due to a bug in Docker or a resource issue in the CI infrastructure. I'm re-triggering this suite…

Distributed test failure is due to GEODE-8191 so I'm calling that test ok ✓


Add plugin browser interface

Add a plugin browsing interface to the Portal interface stack.  Permit users to drill down into individual plugin interfaces and details

support added in b6f0a2f; passed all devel tests


https://dry-rb.org/gems/dry-types/ not at latest version

Describe the bug
When viewing the documentation at https://dry-rb.org/gems/dry-types/, it only shows version 1.2 and below.
To Reproduce

Navigate to the documentation at https://dry-rb.org/gems/dry-types/
Look at the version select

Expected behavior

Would expect to see versions 1.3 - 1.5.1

This doesn't seem to be the case anymore.


Does not build

Does not build. After i download and restore I get below error every time i try to build :(
Error	CS0017	Program has more than one entry point defined. Compile with /main to specify the type that contains the entry point.	Events-TenantUserApp	D:\VSRubbishProjects\WingtipTicketsSaaS-DbPerTenant-master\App\src\Events-TenantUserApp\Program.cs
I am using the most up to date vs 2017 as of this post

Mine also happened this, have no solution?

Same with mine.  No solution??????

Same here anyone resolve this issue?


Console spaming with saving player data

1.18.2 fabric console gets spammed by thonkutil save player data:false texts, I suppose this is a bug(?)

This issue should not have been closed. The updated versions is unusable....


UI-Tab and API for getting images by engine

Have a tab to list images by engine. Each docker daemon/engine can be queried to see which images are local to it. It would be great to have a tab for this in the UI as well as a corresponding 'Images' API to get at that data.

Shipyard v3 has been released and is a major refactor. Could you please check to see if this is still an issue? If so, please re-open. Thanks!


how to calibrate lidar l515 and how to use pointcloud in python

Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

Consider checking out SDK examples.
Have you looked in our documentations?
Is you question a frequently asked one?
Try searching our GitHub Issues (open and closed) for a similar issue.

All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)

Required Info

Camera Model
{ L515}

Firmware Version
(Open RealSense Viewer --> 2.50

Operating System & Version
{Linux (Ubuntu 18)

Kernel Version (Linux Only)
(5.4)

Platform
PC

SDK Version
{ legacy / 2.0 }

Language
{python }

Segment
{Robot/Smartphone/VR/AR/others }

Issue Description
Hai, I am using L515 lidar camera. In my case, I need to measure the distance between two points in an object and I need to measure the angle of the bending object. suggest some links to solve my issue. i think I want to use the point cloud to detect the particular pixel point is correct? and how to calibarate my camera to measure the accurate result.

Hi @saisatheesh5  A Python script for measuring the distance between two points is provided at the link below.
https://github.com/soarwing52/RealsensePython/blob/master/separate functions/measure_new.py
For measuring the angle of a bending object, a discussion at https://github.com/IntelRealSense/librealsense/issues/9297 about measuring the angle of an object's height from the ground may be a helpful reference.
In regard to calibration, the L515 camera model does not have a calibration tool for its depth and RGB sensors.

Thank you so much MartyG. How do I get a particular pixel value in an object automatically using the point cloud?

def calculate_distance(self,x,y):
color_intrin = self.color_intrin
ix,iy = self.ix, self.iy
udist = self.depth_frame.get_distance(ix,iy)
vdist = self.depth_frame.get_distance(x, y)
#print udist,vdist
    point1 = rs.rs2_deproject_pixel_to_point(color_intrin, [ix, iy], udist)
    point2 = rs.rs2_deproject_pixel_to_point(color_intrin, [x, y], vdist)
    #print str(point1)+str(point2)

    dist = math.sqrt(
        math.pow(point1[0] - point2[0], 2) + math.pow(point1[1] - point2[1],2) + math.pow(
            point1[2] - point2[2], 2))
    #print 'distance: '+ str(dist)
    return dist

In this program it will return the distance in mm or inches?

The RealSense SDK's get_distance() instruction returns distance in meters.
https://intelrealsense.github.io/librealsense/doxygen/classrs2_1_1depth__frame.html#a5090d69d04ade6dd67175cae9b6bee9c

Hi @saisatheesh5  Do you require further assistance with this case, please?  Thanks!

Thanks very much @saisatheesh5 for the update!


Image loading in dataloader code

Hello, and thank you very much for the contribution of the code.
While running your I have noticed that only the first page of a PDF file is loaded (as image). Indeed, in your class PregeneratedDatasetBase, the add_images() routine features the line
 im = convert_from_path(im_path)[0]
While in the original DUE code the _get_page_img() routine uses the page_no field to fetch the relevant page.
Can you please explain this situation?
Thank you!

Hello, I also busy with it! I'm curious about how can we get the images and corresponding Q-A pairs. Do you have any experience?

Well, I just took the DUE repo as reference, and brute force fixed the
dataloader to fetch the relevant page.
On Wed, 6 Sep 2023, 20:04 Coobiw, @.***> wrote:

Hello, I also busy with it! I'm curious about how can we get the images
and corresponding Q-A pairs. Do you have any experience?
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/i-Code/issues/108#issuecomment-1708777915,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACOBU6UTZVAHSHOWE5GQ5RDXZCUKPANCNFSM6AAAAAA4NJXH7A
.
You are receiving this because you authored the thread.Message ID:
@.***>

Thanks for your reply! So I thought that you first generate the memmaps. After that, you use the memmaps to build the dataloader, and save the results(image-QA pairs) into a format file just like json?

Yes, I used the DUE-baselines repo to generate the memmaps, then did
the finetuning, and then the --evaluate option in the train config saves
the predictions. Please notice you need to convert these predictions to
another format (back in the   DUE-baselines) in order to run them against
the GT annotations in the DUE-evaluator repo. Then, finally, you get the
performance numbers.
On Thu, Sep 7, 2023 at 10:39 AM Coobiw @.***> wrote:

Thanks for your reply! So I thought that you first generate the memmaps.
After that, you use the memmaps to build the dataloader, and save the
results(image-QA pairs) into a format file just like json?
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/i-Code/issues/108#issuecomment-1709633828,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACOBU6QUD5RCALMVOLQKP63XZF24BANCNFSM6AAAAAA4NJXH7A
.
You are receiving this because you authored the thread.Message ID:
@.***>

Thank you very much!!! I want convert the memmaps into png files because I want to use the images as inputs. I want to ask that what process repo did you use? The benchmarker in UDOP repo or the original one in DUEBenchmark/baselines?


Support ESBuild in serve mode

When esbuild runs in serve mode it builds and references the main index.html in memory.
this means the relative files it refers to don’t work properly.
here is an example of an error:
✘ [ERROR] [plugin html] Build failed with 1 error:
src/2.js:1:7: ERROR: Could not resolve "./ui-assets/1-7YBC7F6V.js"

  This error came from the "onLoad" callback registered here:

    ../node_modules/esbuild/lib/main.js:845:22:
      845 │         let promise = setup({
          ╵                       ^

    at onTransform (file:///../node_modules/@chialab/esbuild-rna/lib/index.js:469:20)
    at setup (file:///../node_modules/@chialab/esbuild-plugin-html/dist/index.js:61:162844)
    at handlePlugins (/../node_modules/esbuild/lib/main.js:845:23)
    at Object.buildOrServe (/../node_modules/esbuild/lib/main.js:1139:7)
    at /../node_modules/esbuild/lib/main.js:2080:17
    at new Promise (<anonymous>)
    at Object.build (/../node_modules/esbuild/lib/main.js:2079:14)
    at Object.build (/../node_modules/esbuild/lib/main.js:1929:51)
    at file:///../cms/build.mjs:97:9

Error: Build failed with 1 error:
error: Build failed with 1 error:
src/2.js:1:7: ERROR: Could not resolve "./ui-assets/1-7YBC7F6V.js"
    at failureErrorWithLog (/../node_modules/esbuild/lib/main.js:1605:15)
    at /../node_modules/esbuild/lib/main.js:1251:28
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  errors: [
    {
      detail: [Error],
      location: null,
      notes: [Array],
      pluginName: 'html',
      text: 'Build failed with 1 error:\n' +
        'src/2.js:1:7: ERROR: Could not resolve "./ui-assets/1-7YBC7F6V.js"'
    }
  ],
  warnings: []
}

one solution I’ve seen is to accept a new option serve, which will use data URLs for assets instead of generating files.
This may be a workaround until esbuild provides better support.
More info:

https://github.com/evanw/esbuild/issues/690#issuecomment-870221045
https://github.com/evanw/esbuild/issues/1402

Latest version of the plugin works with esbuild.serve through the servedir option:
import esbuild from 'esbuild';
import htmlPlugin from '@chialab/esbuild-plugin-html';

await esbuild.serve({
    port: 8000,
    servedir: 'public',
}, {
    entryPoints: ['src/index.html'],
    outdir: 'public',
    plugins: [htmlPlugin()],
    sourcemap: true,
    bundle: true,
});


OUs not loading in Approver Policy

Describe the bug

OUs never load when creating a new Approver Policy.
v1.1.2
Additional context
OUs load successfully when creating an Eligibility policy.

@iankyslytsya  thanks for reporting this


Update alpine version

The bash installation was not successful, so I proceeded with the alpine versionup.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


jwt implementation

What's this PR do?
Adds implementation for jwt tokens
Where should the reviewer start?
modified:
new file:    server/config/jwt.js  ==> this checks passed in token on the server side
modified:   server/config/router.js ==> jwtauth, requireAuth, added as middleware to routes:
/api/game, /api/game/create
modified:   server/config/utils.js  ==> utils to encrypt passwd, compare to saved passwd,
get User with findOne
modified:   server/server.js  ==> set jwt Secret string
modified:   server/users/users.js  ==> no change
modified: client/app/app.js   ==>no change
modified:   client/app/services.js  ==> added Auth factory
modified:   client/controllers/auth.js ==> added getting and setting of token on client side
modified:   package.json  ==> added jwt-simple
How should this be manually tested?
not fully functional
Any background context you want to provide?
Used https://www.sitepoint.com/using-json-web-tokens-node-js/
as well as shortly-angular sprint
What are the relevant tickets?
Authentication
Screenshots (if appropriate)
Questions:

 Authentication


associated_collection_scope works only once after starting the application

Hello,
I have a problem with associated_collection_scope which seems to work only when the page is loaded the first time after starting the application.
I used binding.pry to check, if the code inside configuration is executed:
associated_collection_scope do
  associated_collection_cache_all false
  Proc.new { |scope|
    binding.pry
    scope = scope.without_erased
  }
end

And turns out, that the code is executed only when the page is loaded first time after starting the application. On each subsequent request on the page with this model, this code is skipped, which results in the use of default scope.
Any idea?
Spec:
rails -> <IP_ADDRESS>
rails_admin -> 2.0.2

@bartosz-michalak could you fix the problem?


Depth buffers not merged properly after the DVR framebuffer draw

This is due to the fact that it is not possible to have depth buffer reads disabled and writes enabled at the same time in OpenGL. This can cause depth buffer problems in the situation where you have an isosurface, dvr, and something else, and all three intersect.

How is this bug reproduced? How does it manifest itself in a way the user would notice?

In the scenario described below, notice the slice renderer is see-through:


Remove fingerprint

fingerprint is an opaque and redundant data element.
It can be calculated automatically be the Spec consumer by making a hash of the relevant issue contents. Its inclusion in the specification is an implementation detail of the Code Climate consumer. It should be removed.

Note: Structured Acceptance Test Output includes repeatability guarantees which is a stronger concept than fingerprints. It is discussed at https://github.com/fulldecent/structured-acceptance-test/blob/master/Stat-Output.md

@fulldecent Thanks for your feedback here - for the time being, our system relies heavily on fingerprints. We'll keep a more flexible approach in mind if we need to reconsider.


[tool_crash] FormatException

Command
flutter pub get --no-example

Steps to Reproduce

...
...
...

Logs
FormatException
#0      _ChunkedJsonParser.fail (dart:convert-patch/convert_patch.dart:1465:5)
#1      _ChunkedJsonParser.close (dart:convert-patch/convert_patch.dart:499:7)
#2      _parseJson (dart:convert-patch/convert_patch.dart:37:10)
#3      JsonDecoder.convert (dart:convert/json.dart:610:36)
#4      JsonCodec.decode (dart:convert/json.dart:216:41)
#5      createPluginSymlinks (package:flutter_tools/src/flutter_plugins.dart:901:51)
#6      refreshPluginsList (package:flutter_tools/src/flutter_plugins.dart:1022:5)
<asynchronous suspension>
#7      FlutterProject.ensureReadyForPlatformSpecificTooling (package:flutter_tools/src/project.dart:379:5)
<asynchronous suspension>
#8      PackagesGetCommand.runCommand (package:flutter_tools/src/commands/packages.dart:383:7)
<asynchronous suspension>
#9      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1408:27)
<asynchronous suspension>
#10     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#11     CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#12     FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:420:9)
<asynchronous suspension>
#13     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#14     FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:364:5)
<asynchronous suspension>
#15     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:130:9)

[✓] Flutter (Channel stable, 3.24.5, on Microsoft Windows [Version 10.0.22631.4460], locale en-IN)
    • Flutter version 3.24.5 on channel stable at C:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision dec2ee5c1f (3 weeks ago), 2024-11-13 11:13:06 -0800
    • Engine revision a18df97ca5
    • Dart version 3.5.4
    • DevTools version 2.37.3

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at C:\Users\mhdal\AppData\Local\Android\sdk
    • Platform android-34, build-tools 35.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 21.0.3+-12282718-b509.11)
    • All Android licenses accepted.

[✗] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✗] Visual Studio - develop Windows apps
    ✗ Visual Studio not installed; this is necessary to develop Windows apps.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[✓] Android Studio (version 2024.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = C:\Program Files\Android\Android Studio
    • Java version OpenJDK Runtime Environment (build 21.0.3+-12282718-b509.11)

[✓] VS Code (version 1.95.3)
    • VS Code at C:\Users\mhdal\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.102.0

[✓] Connected device (3 available)
    • sdk gphone x86 (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
    • Windows (desktop)       • windows       • windows-x64    • Microsoft Windows [Version 10.0.22631.4460]
    • Edge (web)              • edge          • web-javascript • Microsoft Edge 131.0.2903.70

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.

Flutter Application Metadata
Type: app
Version: 1.0.0+1
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: stable
Creation framework version: 603104015dd692ea3403755b55d07813d5cf8965
Plugins
cloud_firestore-4.17.5
cloud_firestore_web-3.12.5
firebase_analytics-10.10.7
firebase_analytics_web-0.5.7+7
firebase_auth-4.16.0
firebase_auth_web-5.8.13
firebase_core-2.32.0
firebase_core_web-2.18.1
firebase_messaging-14.7.10
firebase_messaging_web-3.5.18
flutter_native_splash-2.4.3
geolocator-10.1.1
geolocator_android-4.6.1
geolocator_apple-2.3.8+1
geolocator_web-2.2.1
geolocator_windows-0.2.3
libphonenumber_plugin-0.3.3
libphonenumber_web-0.3.2
path_provider-2.1.5
path_provider_android-2.2.14
path_provider_foundation-2.4.0
path_provider_linux-2.2.1
path_provider_windows-2.3.0
shared_preferences-2.3.3
shared_preferences_android-2.3.4
shared_preferences_foundation-2.5.3
shared_preferences_linux-2.4.1
shared_preferences_web-2.4.2
shared_preferences_windows-2.4.1
smart_auth-1.1.1
url_launcher-6.3.1
url_launcher_android-6.3.14
url_launcher_ios-6.3.1
url_launcher_linux-3.2.1
url_launcher_macos-3.2.1
url_launcher_web-2.3.3
url_launcher_windows-3.1.3

Closing this as a duplicate of https://github.com/flutter/flutter/issues/98905


Connect BA - An error message appears if the entered address contains a digit

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.4.9-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by:  Applause - Internal Team
Slack conversation:
Action Performed:

Go to URL https://staging.new.expensify.com/
Login with any account
Go to Settings -> Workspaces -> Open any WS -> Connect bank account -> Plaid or manually
Continue the process to the Company information page
In the company address field enter some address that contains any digit or choose it from drop-down -> Save

Expected Result:
The input field allows you to enter both letters and digits
Actual Result:
An error message appears
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

https://github.com/Expensify/App/assets/78819774/32512408-71ad-414e-bbcd-d2f1d90ed217

View all open jobs on GitHub

https://github.com/Expensify/App/pull/32609


php: enable imap extension by default

This PR:

Fix #190514

Description of changes

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

@GrahamcOfBorg build php80 php81

So this breaks eval since the imap extension doesn't exist on darwin: https://github.com/NixOS/nixpkgs/blob/master/pkgs/top-level/php-packages.nix#L347-L348

Then we have the next problem... which is the platform support for uwimap which is marked as Linux only... which I don't know if it's actually the case or not: https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/networking/uwimap/default.nix#L50
This would have to be investigated.

@GrahamcOfBorg php80 php81 uwimap

Looks like the uw-imap doesn't build on darwin:
If you get No such file error messages for files x509.h, ssl.h,
pem.h, buffer.h, bio.h, and crypto.h, that means that OpenSSL
is not installed on your system. Either install OpenSSL first
or build with command: make osx SSLTYPE=none
`cat CCTYPE` -c `cat CFLAGS` `cat OSCFLAGS` -c osdep.c
In file included from osdep.c:49:
In file included from ./env_unix.c:260:
In file included from ./auths.c:1:
./kerb_mit.c:30:10: fatal error: 'gssapi/gssapi_generic.h' file not found
#include <gssapi/gssapi_generic.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[3]: *** [Makefile:926: osdep.o] Error 1
make[3]: Leaving directory '/private/tmp/nix-build-uw-imap-2007f.drv-0/imap-2007f/c-client'
make[2]: *** [Makefile:591: osx] Error 2
make[2]: Leaving directory '/private/tmp/nix-build-uw-imap-2007f.drv-0/imap-2007f/c-client'
make[1]: *** [Makefile:688: OSTYPE] Error 2
make[1]: Leaving directory '/private/tmp/nix-build-uw-imap-2007f.drv-0/imap-2007f'
make: *** [Makefile:427: osx] Error 2
error: builder for '/nix/store/wkif89sa6zbz001pv78i0zph687dd5iv-uw-imap-2007f.drv' failed with exit code 2;
       last 10 log lines:
       > #include <gssapi/gssapi_generic.h>
       >          ^~~~~~~~~~~~~~~~~~~~~~~~~
       > 1 error generated.
       > make[3]: *** [Makefile:926: osdep.o] Error 1
       > make[3]: Leaving directory '/private/tmp/nix-build-uw-imap-2007f.drv-0/imap-2007f/c-client'
       > make[2]: *** [Makefile:591: osx] Error 2
       > make[2]: Leaving directory '/private/tmp/nix-build-uw-imap-2007f.drv-0/imap-2007f/c-client'
       > make[1]: *** [Makefile:688: OSTYPE] Error 2
       > make[1]: Leaving directory '/private/tmp/nix-build-uw-imap-2007f.drv-0/imap-2007f'
       > make: *** [Makefile:427: osx] Error 2
       For full logs, run 'nix log /nix/store/wkif89sa6zbz001pv78i0zph687dd5iv-uw-imap-2007f.drv'.
error: 1 dependencies of derivation '/nix/store/lkp364krmw1wksmb720lxs46xhawvrgx-php-imap-8.1.11.drv' failed to build

We could get some inspiration from the brew formulae, WDYT ?

For sure, if you get it to build on darwin and make a commit for that, that will be great.
And Brew is probably a very good source for finding inspiration on how to build things on darwin.

@GrahamcOfBorg uwimap

That is going to be very painful without any Mac OS X computer. Relying on Github CI/CD is too slow and resourceful.

This PR now depends on #194109 since @stephank helped us on this issue (he's using a Mac).

So feel free to rebase on master so we can let the builds run here as well :slightly_smiling_face:

@ofborg eval
@ofborg build php80 php81

So now we... got a new error: https://logs.nix.ci/?key=nixos/nixpkgs.193925&attempt_id=333fe806-498e-45bc-813a-9b7cce1697b2

@ofborg eval
@ofborg build php80 php81

@ofborg eval
@ofborg build php80 php81

Thank you very much @drupol @etu and @stephank for the combined effort of enabling php imap on darwin,
I just launched it on my M1 macbook

❤


Upgrade to java 11

Should we raise the requirement to Java 11?
If there are no objections, I'd say let's go! My computer is already full of different JDKs, this is the last project that keeps me on Java 8.

Is there any pressing reason to upgrade to JDK 11? Any gained functionality which can not be used with JDK 8?
I'm developing other projects which are partly on JDK 8 with JDK 17 without problems. I rely on IntellJ IDEA and build bots to notify me about JDK API usage violations. For some projects I know that I can not upgrade to anything beyond JDK 8, as there are consumers of this project which use IKVM.net to integrate that into their .NET landscape. Yes, IKVM.net is deprecated, outdated and unmaintained. But in big companies you have some departments which just use .NET and you can't do anything about it.
So as long as there is no functionality reason for going to JDK 11 I would really advise against requiring it.

And of course in later versions there are some nice features that could be good for performance. Not in Java 11 alone though.

@johantiden I know of no feature which would help the pngencoder - beside JVM Hotspot/GC improvements which are of course everywhere for JDK 11 and JDK 17. But you get this automatically when you run your application with newer JDKs, you don't need to target Java 11 bytecode for that.
We've have all our webapps on JDK11 (one big very slow moving customer, which just got migrated to JDK11 on Linux after being over a decade on AIX JDK 6 and then 8...) and JDK17 (two other customers, which can move way faster with technology ...), but some of our modules are used outside our webapps, and there we need to support Java 8...
Some big companies are moving very slow to new technology :(

Making it possible to use this library in a modularized application would be a reason for moving to Java 9+ (see #59).


Create wpsstudents

For the record: the domain eligibility can be obtained from its WHOIS data: http://who.godaddy.com/whoischeck.aspx?domain=WPSSTUDENTS.ORG

@LTSENG01 Pull request merged. Please notice that free educational license for JetBrains tools is for high and higher schools students, i.e. those who are over 13 of age. Thank you!

@philipto Noticed, thanks.


Visible Collision Shapes debug in HTML5

[Proposal] Visible Collision Shapes debug in HTML5.
I needed to see collision shapes in my game after export (not working) but don't have this feature.

What would be the added value of debugging this after export instead of doing it directly in the editor? If in this specific case the issue is that collisions behave weirdly in HTML5, it's a platform bug that needs to be fixed, and though making the collision shapes visible might help show visually that something is broken, it won't solve the bug.

The collision shape (Area2D with collisionShape) follow the mouse position on _fixed_process() and check collisions on mouse click, and works in the editor, but in HTML5 export don't, and is difficult to say where is the bug. But probably is in the exporter. Any hint?

You might use get_tree().set_debug_collisions_hint(true), no?

Is displaying collision shapes in exported projects supported on platforms other than HTML5? If not, this issue should be closed.

Closing due to lack of response.


Add packages to fake data

Reticketed from #4305.

Moving to a PR in https://github.com/gratipay/gratipay.com/pull/4433.


Update Path to Checksums on the Website

Describe the bug
There is an issue with downloading checksums after moving over to the upstream ISO generator.
What did you expect to happen?
Be able to download a checksum
Output of rpm-ostree status
No response
Extra information or context
bluefin-latest-CHECKSUM should point to bluefin-latest.iso-CHECKSUM now.

When we switch Bazzite to upstream ISO generator, this will also have to happen there too!

https://github.com/castrojo/bluefin-website/commit/6c0d10f217182b924ff7bd1a926cff2418243efd


replace get_tasks as default filtering.

The intention here is to:

move complexity away from the MTEB object
ensure that the filters are applied in the same way across the benchmark (currently MTEB filters slightly differently due to not handling the new language codes)
deprecate filtering in MTEB going forward (only with a warning atm.)
doing it in a two step fashion ensure that users are able to inspect the tasks before they are run (also allow for much more custom filtering on the user end)

Could you please get the tests passing first? I have no issues with the intentions described in the PR description.


Structural typing with #[]

I want a duck type for hash-like things, anything that responds to #[](String), but it gives a parse error:
require "rdl"

class A
  extend RDL::Annotate

  type("([[]: (String) -> %any]) -> %any")
  def b(arg)
    arg.fetch("str")
  end
end

puts A.new.b({"str" => 1})

Output:
$ ruby rdl_test.rb
rdl_test.rb:3:in `<main>':  (Racc::ParseError)
parse error on value ":" (COLON)

But, switching for fetch works:
require "rdl"

class A
  extend RDL::Annotate

  type("([fetch: (String) -> %any]) -> %any")
  def b(arg)
    arg.fetch("str")
  end
end

puts A.new.b({"str" => 1})

Output:
$ ruby rdl_test.rb
1

Is there a better way to define a type who responds to #[]?

Judging by lib/rdl/types/lexer.rex, method name can only be a word. You can directly get the types and construct it like this:
require "rdl"
require "types/core"

class A
  extend RDL::Annotate

  st = RDL::Globals.types[:string]
  at = RDL::Globals.types[:top]
  mt = RDL::Type::MethodType.new([at], nil, at)
  stt = RDL::Type::StructuralType.new({ :[] => mt })
  smt = RDL::Type::MethodType.new([stt], nil, at)

  type smt # ([[]: (String) -> %any]) -> %any
  def b(arg)
    arg["str"]
  end
end

Except that your code below the class won't typecheck:
Method type:
        ([ []: (%any) -> %any ]) -> %any
Actual argument type:
        (Hash)
Actual argument values (one per line):
        {"str"=>1}

I'd recommend using something like this instead:
  type "(Hash<String, %any>) -> %any"
  def b(arg)
    arg["str"]
  end

:+1: Thanks for the details, and for the suggested work-around!
For now, I used
Hash<String, %any> or ActionController::Parameters

Thanks for the bug report, this should be fixed in the dev branch now.

Thanks, I'll give it a try soon!


Integration Test - Release - 2022/01/04 10:34:56

Auto create for integration test. IssueCommandFlow

#pri1

Just type '#pri3'

#pri2

#pri3

#assign PRMergerTest1

#assign NonAllowedUser

The following users don't have valid GitHub IDs, or are not collaborators on this repo: nonalloweduser

#reassign PRMergerTest2

#reassign NonAllowedUser

#please-close

The following users don't have valid GitHub IDs, or are not collaborators on this repo: nonalloweduser

GitHub user PRMergerTest1 has been removed from the MicrosoftDocs organization, so they were automatically removed as an assignee.

#unassign NonAllowedUser

#unassign PRMergerTest1


snappyjava version embedded in pathname

The unifi package includes a version of snappyjava that we have to replace with our own. The name of the bundled snappyjava file includes a version string, but the name of the file we need to swap in does not. We should automate detecting the name of the file we need to replace and renaming our file to match, so that upstream changes in that file don't break our script.

See #67
Tested on 2.3.3-RELEASE with physical access point hardware.


Fix: close banner only for the session; shift sidebar drawer

What it solves
The sidebar needs to shift down when the banner is open.
Also store the closed state in the session storage, not in the local storage.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

4 of 6 (66.67%)  changed or added relevant lines in 2 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.02%) to 41.921%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/components/PsaBanner/index.tsx
0
2
0.0%

Files with Coverage Reduction
New Missed Lines
%

src/components/SafeListSidebar/style.ts
1
0%

Totals

Change from base Build<PHONE_NUMBER>:
0.02%

Covered Lines:
4777

Relevant Lines:
10403

💛  - Coveralls


Hermes crashes on MacOS Sierra 10.12.

Its
HermesLog_2016-06-26_22:00:15_-0700.txt
rather simple. It'll sometimes crash upon start-up, without a song playing for more than a minute. Audio becomes sort of choppy at times to signal that the application will crash. Other times, the application crashes after one skip, or upon a click to switch to a different station. This is seen with Hermes 1.2.8, with MacOS Sierra 10.12.

Apologies for the log file getting in the way of the description of the issue. I was not aware it would do that.

Thank you for attaching Hermes’ log. Everything looks good in there. I imagine that from the frequency and severity of the crashes that you were noticing that anyone who tries to test Hermes on 10.12 will have these problems. Unfortunately, I am unlikely to have a working 10.12 installation for the next few weeks as I need to install a new drive in one of my Macs.  If anyone else is running 10.12 and can do some debugging in the meantime, that would be great!

I have started fixing up Hermes to work on 10.12 and haven't been able to duplicate this.  Give this test version a shot:
https://sabi.net/temp/Hermes-1.2.9d1.zip
and let me know if it still is being flaky/crashing.  Thanks!

There's now a beta, with some more 10.12 specific changes:
https://github.com/HermesApp/Hermes/releases/tag/v1.2.9b1

1.2.9b2 is now out: https://github.com/HermesApp/Hermes/releases/tag/v1.2.9b2
If you are still interested, please test!  Thanks.

Seems as though Hermes works fine under MacOS Sierra 10.12. I am running the GM of it, and hermes 1.2.9 beta 2.

Awesome. Hope to have a final out in the next couple days.


Adding QA notebook for style transfer

Working on QA

I don't think we need this PR now that #235 has landed.


OpenMP updates

@ronlieb Could you please review these changes? I don't know JP's id, hence requesting you to run it by the team for confirmation.

@samjwu The links to ROCProfilerV1 User Manual are not rendering correctly. I can't spot the problem. Could you please take a look.

The syntax that you used was correct. The only issue was that the rocprofiler 5.6.0 docs did not have that page. I have added it to that branch and rebuilt those docs as well as the docs for this PR.
The link is now visible at https://advanced-micro-devices-demo--2404.com.readthedocs.build/en/2404/reference/openmp/openmp.html


python3Packages.python-engineio: 4.0.0 -> 4.2.0

Motivation for this change
Update to latest upstream release 4.2.0
Change log: https://github.com/miguelgrinberg/python-engineio/blob/main/CHANGES.md
Things done

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

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes

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

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 126186 at 237490eb run on aarch64-linux 1

5 packages failed to build:

home-assistant
python38Packages.aioambient
python38Packages.simplisafe-python
python39Packages.aioambient
python39Packages.simplisafe-python

9 packages built successfully:

appdaemon
onionshare
onionshare-gui
python38Packages.flask-socketio
python38Packages.python-engineio
python38Packages.python-socketio
python39Packages.flask-socketio
python39Packages.python-engineio
python39Packages.python-socketio

1 suggestion:

warning: unused-argument
Unused argument: six.
Near pkgs/development/python-modules/python-engineio/default.nix:10:3:
   |
10 | , six
   |   ^

Note that build failures may predate this PR, and could be nondeterministic or hardware dependent.
Please exercise your independent judgement. Does something look off? Please file an issue or reach out on IRC.

a373431 removes the websockets dependency of simplisafe-python.


⚠ Bofrost.fr has degraded performance

In cef7758, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1019 ms

Resolved: Bofrost.fr performance has improved in 5d2f482 after 6 minutes.