Test waiting room

Addresses https://jira.cfops.it/browse/PCX-1639.
Preview image for ease of reviewing:

Here are my suggestions:

In the "Before you begin" section you might add a little more explanation as to why you might have to modify the sample script if they don't use the default responses like: "If you use a custom response template, you might have to update the sample script to ensure it picks up on when a "simulated user" is in the waiting room, and when they are released to the origin site."
In the "Download sample script" section, since "Phase 1" is as load increases, you might change the order and say "It divides traffic into two phases (Phase 1 and Phase 2) so you can test wait times as the load increases and then decreases.
In the Run sample script section, for the "-s" option explanation, there is either a missing "(" or an extra ")" at the end.
After the example run, the first sentence needs to be rewritten. Maybe something like "As the script runs, it will output characters. Each character represents a user session that advanced past the waiting room. Each letter corresponds to the amount of time the user waited in the wait room."
Also, the letters don't actually represent a range of time. It is: a = 10 seconds, b = 20 seconds, since the script only checks to see if the user can be passed through every 10 seconds. Also, you might include "0 = 530 seconds, 1 = 540 seconds ..."
In the Analyze results section. For "job:" Maybe change the second sentence to "The fixed string will be either main for phase 1 or post for phase 2."
My final suggestion might be to get of the graph at the bottom, since it clearly shows a problem with the Waiting Room in that it releases people earlier than it should. I'll run my test again and see if I get a better result.

slightly revised screenshot for PCX. Note, still need the updated screenshot from Keith.


Getting "Address already in use" error

Bug description
Since Prisma 2.15, queries (reads and writes) fail from time to time on Heroku with the following stacktrace:
Error Query engine exited with code 1
 in    0: user_facing_errors::Error::new_non_panic_with_current_backtrace
   1: query_engine::error::<impl core::convert::From<query_engine::error::PrismaError> for user_facing_errors::Error>::from
   2: query_engine::error::PrismaError::render_as_json
   3: query_engine::main::main::{{closure}}::{{closure}}
   4: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
   5: std::thread::local::LocalKey<T>::with
   6: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
   7: async_io::driver::block_on
   8: async_global_executor::reactor::block_on
   9: std::thread::local::LocalKey<T>::with
  10: async_std::task::builder::Builder::blocking
  11: query_engine::main
  12: std::sys_common::backtrace::__rust_begin_short_backtrace
  13: std::rt::lang_start::{{closure}}
  14: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
             at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/core/src/ops/function.rs:259:13
      std::panicking::try::do_call
             at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/std/src/panicking.rs:381:40
      std::panicking::try
             at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/std/src/panicking.rs:345:19
      std::panic::catch_unwind
             at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/std/src/panic.rs:396:14
      std::rt::lang_start_internal
             at /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/std/src/rt.rs:51:25
  15: main
  16: __libc_start_main
  17: <unknown>
Address already in use (os error 98)
    /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/core/src/ops/function.rs:259:13
    /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/std/src/panicking.rs:381:40
    /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/std/src/panicking.rs:345:19
    /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/std/src/panic.rs:396:14
    /rustc/e1884a8e3c3e813aada8254edfa120e85bf5ffca/library/std/src/rt.rs:51:25
    node_modules/@prisma/client/runtime/index.js:78469:15 PrismaClientFetcher.request
    internal/process/task_queues.js:93:5 processTicksAndRejections

How to reproduce
Unfortunately I don't have a proper reproduction pattern. I expect it happens on production environment with high traffic. I also saw the error once on staging environment though,
Prisma information
DB connection URL params used:
postgresql://....?sslmode=verify-full&sslrootcert=db/rds-ca-2019-root.pem&connection_limit=15

Environment & setup

OS: Debian (on Heroku)
Database: PostgreSQL 11 (with AWS Aurora)
Node.js version: v14.15.4
Prisma version:

@prisma/cli          : 2.16.0
@prisma/client       : 2.16.0
Current platform     : debian-openssl-1.1.x
Query Engine         : query-engine a973e24a4e5194f8fe3301bfa7ff982b24f97c05 (at<EMAIL_ADDRESS>Migration Engine     : migration-engine-cli a973e24a4e5194f8fe3301bfa7ff982b24f97c05 (at<EMAIL_ADDRESS>Introspection Engine : introspection-core a973e24a4e5194f8fe3301bfa7ff982b24f97c05 (at<EMAIL_ADDRESS>Format Binary        : prisma-fmt a973e24a4e5194f8fe3301bfa7ff982b24f97c05 (at<EMAIL_ADDRESS>Studio               : 0.346.0

Repost from Slack
Maybe try enabling unix domain socket transport. Here is how you can do that:
const prisma = new PrismaClient({
  __internal:{
    useUds: true
  }
} as any); // remove as any if you are using js

Address already in use (os error 98) makes me think it's related to https://github.com/prisma/prisma/issues/5533

We also saw this starting yesterday in our Heroku deploy. It is a little strange because we had been in 2.15 for about a week now without any problem and it starting failing yesterday. In 3 of our deploys (out of ~6 we did), we saw this error pop up 5 times in 3 of them.
For what it's worth, we are doing node clustering with 5 workers per dyno, and each worker gets its own Prisma client.

Seems related to https://github.com/prisma/prisma/issues/5538

Thanks @Jolg42, I just enabled useUds: true in production, I'll monitor and let you know if it fixes.

Follow-up after 5 days with useUds: true, the error does not appear anymore

Closing in favour of #5533


Issue with year selection ?

NR Version: 3.1.3
Node Info: Version: 1.1.7 - Updated 1 month ago
Hi,
Honnestly thanks a lot for this pluggin !
Today I saw an issue with the plugin that help me to manage my covers. ^^
Thats seems to be an issue with Year selection.
I get on debug mode :
02/01/2024 12:51:43noeud: debug 7
topic1 : msg.payload : Object
object
day: 2
isPublicHoliday: false
isTomorrowPublicHoliday: false
publicHolidayName: null
nextPublicHolidayName: "Lundi de Pâques"
nextPublicHolidayDate: "01/04/2024"
isSchoolHolidays: false
isTomorrowSchoolHolidays: false
schoolHolidaysName: null
nextSchoolHolidaysCoutdownInDays: 290
nextSchoolHolidaysName: "Vacances de la Toussaint"
nextSchoolHolidaysStartDate: "19/10/2024"
nextSchoolHolidaysEndDate: "04/11/2024"
year: 2024
When I take a look on my rednode console I get :
current>>>2024
nextYear>>>2025
2 Jan 12:51:41 - [info] [mqtt-broker:MQTT] Connected to broker: ws://<IP_ADDRESS>:8083/mqtt
2 Jan 12:51:41 - [info] [server:HomeAssistant] Connected to https://<IP_ADDRESS>:8123
nhits=7 parameters={"dataset":"fr-en-calendrier-scolaire","rows":100,"start":0,"facet":["description","start_date","end_date","location","zones"],"refine":{"annee_scolaire":"2024-2025"},"format":"json","timezone":"UTC"} records=[{"datasetid":"fr-en-calendrier-scolaire","recordid":"352b8d70aaec0f03aaef8960fe81731a81174467","fields":{"end_date":"2025-05-30T22:00:00+00:00","start_date":"2025-05-29T22:00:00+00:00","location":"Paris","annee_scolaire":"2024-2025","description":"Pont de l'Ascension","zones":"Zone C","population":"-"},"record_timestamp":"2023-10-10T14:00:14.676Z"},{"datasetid":"fr-en-calendrier-scolaire","recordid":"573dd2c2481e199111c18c1df5c3d32ee557b086","fields":{"end_date":"2025-01-05T23:00:00+00:00","start_date":"2024-12-20T23:00:00+00:00","location":"Paris","annee_scolaire":"2024-2025","description":"Vacances de Noël","zones":"Zone C","population":"-"},"record_timestamp":"2023-10-10T14:00:14.676Z"},{"datasetid":"fr-en-calendrier-scolaire","recordid":"e03ccfcd7d15ce712d6e4c2e1367fe5303f71d66","fields":{"end_date":"2025-04-27T22:00:00+00:00","start_date":"2025-04-11T22:00:00+00:00","location":"Paris","annee_scolaire":"2024-2025","description":"Vacances de Printemps","zones":"Zone C","population":"-"},"record_timestamp":"2023-10-10T14:00:14.676Z"},{"datasetid":"fr-en-calendrier-scolaire","recordid":"e75c2723d67e2446b92ce732326518b3293d2730","fields":{"end_date":"2024-11-03T23:00:00+00:00","start_date":"2024-10-18T22:00:00+00:00","location":"Paris","annee_scolaire":"2024-2025","description":"Vacances de la Toussaint","zones":"Zone C","population":"-"},"record_timestamp":"2023-10-10T14:00:14.676Z"},{"datasetid":"fr-en-calendrier-scolaire","recordid":"bdb00dd42516a971b80b969b4fe0b99f2266a2eb","fields":{"end_date":"2025-03-02T23:00:00+00:00","start_date":"2025-02-14T23:00:00+00:00","location":"Paris","annee_scolaire":"2024-2025","description":"Vacances d'Hiver","zones":"Zone C","population":"-"},"record_timestamp":"2023-10-10T14:00:14.676Z"},{"datasetid":"fr-en-calendrier-scolaire","recordid":"12777440bb56e63addee9fa6bcf2fef7aa5211a1","fields":{"end_date":"2025-08-31T22:00:00+00:00","start_date":"2025-07-04T22:00:00+00:00","location":"Paris","annee_scolaire":"2024-2025","description":"Vacances d'Été","zones":"Zone C","population":"Élèves"},"record_timestamp":"2023-10-10T14:00:14.676Z"},{"datasetid":"fr-en-calendrier-scolaire","recordid":"a3e1db6d029597225f5545ee2e4f03e7ccbd9b5b","fields":{"end_date":"2025-08-28T22:00:00+00:00","start_date":"2025-07-04T22:00:00+00:00","location":"Paris","annee_scolaire":"2024-2025","description":"Vacances d'Été","zones":"Zone C","population":"Enseignants"},"record_timestamp":"2023-10-10T14:00:14.676Z"}] facet_groups=[{"name":"description","facets":[{"name":"Vacances d'Été","count":2,"state":"displayed","path":"Vacances d'Été"},{"name":"Pont de l'Ascension","count":1,"state":"displayed","path":"Pont de l'Ascension"},{"name":"Vacances d'Hiver","count":1,"state":"displayed","path":"Vacances d'Hiver"},{"name":"Vacances de Noël","count":1,"state":"displayed","path":"Vacances de Noël"},{"name":"Vacances de Printemps","count":1,"state":"displayed","path":"Vacances de Printemps"},{"name":"Vacances de la Toussaint","count":1,"state":"displayed","path":"Vacances de la Toussaint"}]},{"name":"start_date","facets":[{"name":"2024","count":2,"state":"displayed","path":"2024"},{"name":"2025","count":5,"state":"displayed","path":"2025"}]},{"name":"end_date","facets":[{"name":"2024","count":1,"state":"displayed","path":"2024"},{"name":"2025","count":6,"state":"displayed","path":"2025"}]},{"name":"location","facets":[{"name":"Paris","count":7,"state":"refined","path":"Paris"}]},{"name":"zones","facets":[{"name":"Zone C","count":7,"state":"displayed","path":"Zone C"}]},{"name":"annee_scolaire","facets":[{"name":"2024-2025","count":7,"state":"refined","path":"2024-2025"}]}]
daysDifference: 290
holiday  : Vacances de la Toussaint
current>>>2024
nextYear>>>2025
nhits=7 parameters={"dataset":"fr-en-calendrier-scolaire","rows":100,"start":0,"facet":["description","start_date","end_date","location","zones"],"refine":{"annee_scolaire":"2024-2025"},"format":"json","timezone":"UTC"} records=[{"datasetid":"fr-en-calendrier-scolaire","recordid":"352b8d70aaec0f03aaef8960fe81731a81174467","fields":{"end_date":"2025-05-30T22:00:00+00:00","start_date":"2025-05-29T22:00:00+00:00","location":"Paris","annee_scolaire":"2024-2025","description":"Pont de l'Ascension","zones":"Zone C","population":"-"},"record_timestamp":"2023-10-10T14:00:14.676Z"},{"datasetid":"fr-en-calendrier-scolaire","recordid":"573dd2c2481e199111c18c1df5c3d32ee557b086","fields":{"end_date":"2025-01-05T23:00:00+00:00","start_date":"2024-12-20T23:00:00+00:00","location":"Paris","annee_scolaire":"2024-2025","description":"Vacances de Noël","zones":"Zone C","population":"-"},"record_timestamp":"2023-10-10T14:00:14.676Z"},{"datasetid":"fr-en-calendrier-scolaire","recordid":"e03ccfcd7d15ce712d6e4c2e1367fe5303f71d66","fields":{"end_date":"2025-04-27T22:00:00+00:00","start_date":"2025-04-11T22:00:00+00:00","location":"Paris","annee_scolaire":"2024-2025","description":"Vacances de Printemps","zones":"Zone C","population":"-"},"record_timestamp":"2023-10-10T14:00:14.676Z"},{"datasetid":"fr-en-calendrier-scolaire","recordid":"e75c2723d67e2446b92ce732326518b3293d2730","fields":{"end_date":"2024-11-03T23:00:00+00:00","start_date":"2024-10-18T22:00:00+00:00","location":"Paris","annee_scolaire":"2024-2025","description":"Vacances de la Toussaint","zones":"Zone C","population":"-"},"record_timestamp":"2023-10-10T14:00:14.676Z"},{"datasetid":"fr-en-calendrier-scolaire","recordid":"bdb00dd42516a971b80b969b4fe0b99f2266a2eb","fields":{"end_date":"2025-03-02T23:00:00+00:00","start_date":"2025-02-14T23:00:00+00:00","location":"Paris","annee_scolaire":"2024-2025","description":"Vacances d'Hiver","zones":"Zone C","population":"-"},"record_timestamp":"2023-10-10T14:00:14.676Z"},{"datasetid":"fr-en-calendrier-scolaire","recordid":"12777440bb56e63addee9fa6bcf2fef7aa5211a1","fields":{"end_date":"2025-08-31T22:00:00+00:00","start_date":"2025-07-04T22:00:00+00:00","location":"Paris","annee_scolaire":"2024-2025","description":"Vacances d'Été","zones":"Zone C","population":"Élèves"},"record_timestamp":"2023-10-10T14:00:14.676Z"},{"datasetid":"fr-en-calendrier-scolaire","recordid":"a3e1db6d029597225f5545ee2e4f03e7ccbd9b5b","fields":{"end_date":"2025-08-28T22:00:00+00:00","start_date":"2025-07-04T22:00:00+00:00","location":"Paris","annee_scolaire":"2024-2025","description":"Vacances d'Été","zones":"Zone C","population":"Enseignants"},"record_timestamp":"2023-10-10T14:00:14.676Z"}] facet_groups=[{"name":"description","facets":[{"name":"Vacances d'Été","count":2,"state":"displayed","path":"Vacances d'Été"},{"name":"Pont de l'Ascension","count":1,"state":"displayed","path":"Pont de l'Ascension"},{"name":"Vacances d'Hiver","count":1,"state":"displayed","path":"Vacances d'Hiver"},{"name":"Vacances de Noël","count":1,"state":"displayed","path":"Vacances de Noël"},{"name":"Vacances de Printemps","count":1,"state":"displayed","path":"Vacances de Printemps"},{"name":"Vacances de la Toussaint","count":1,"state":"displayed","path":"Vacances de la Toussaint"}]},{"name":"start_date","facets":[{"name":"2024","count":2,"state":"displayed","path":"2024"},{"name":"2025","count":5,"state":"displayed","path":"2025"}]},{"name":"end_date","facets":[{"name":"2024","count":1,"state":"displayed","path":"2024"},{"name":"2025","count":6,"state":"displayed","path":"2025"}]},{"name":"location","facets":[{"name":"Paris","count":7,"state":"refined","path":"Paris"}]},{"name":"zones","facets":[{"name":"Zone C","count":7,"state":"displayed","path":"Zone C"}]},{"name":"annee_scolaire","facets":[{"name":"2024-2025","count":7,"state":"refined","path":"2024-2025"}]}]
daysDifference: 290
holiday  : Vacances de la Toussaint

Arf!
I see the issue. In your code, when you are in 2/1/2024 it will take the 2024/2025 period because you take the current year...
  var currentYear = today.getFullYear()
  ...
  var schoolHolidaysApi =
    'https://data.education.gouv.fr/api/records/1.0/search/?dataset=fr-en-calendrier-scolaire&q=&rows=100&facet=description&facet=start_date&facet=end_date&facet=zones&facet=annee_scolaire&refine.start_date='+currentYear+'&refine.location='+this.academy
  var entireSchoolHolidaysCalendarApi =
  'https://data.education.gouv.fr/api/records/1.0/search/?dataset=fr-en-calendrier-scolaire&q=&rows=100&facet=description&facet=start_date&facet=end_date&facet=location&facet=zones&refine.location='+this.academy+'&refine.annee_scolaire='+currentYear+'-'+nextYear

@francois-le-ko4la , please check with new version 1.1.8 and let me know in the comments. I will close issue.

Hello,
Fixes the issue on my side.
Thanks for this plugin.


[Discussion] Shared seems to wake up the same waker that was polling it

If I've not mistaken then Shared::poll will wake up the very same waker that was actually polling it, and return a Poll::Ready at the same time.
https://github.com/rust-lang/futures-rs/blob/bb63c376ca2d3f277f7bfb2b178c913faa00b947/futures-util/src/future/future/shared.rs#L347-L352
Which is confusing considering what std doc was saying about Waker::wake protocol.

https://doc.rust-lang.org/std/future/trait.Future.html#tymethod.poll

Once a task has been woken up, it should attempt to poll the future again

https://doc.rust-lang.org/std/task/struct.Waker.html#method.wake

it is guaranteed that each invocation of wake() (or wake_by_ref()) will be followed by at least one poll() of the task to which this Waker belongs

According to std doc, when implementing an executor, I should call poll at least once whenever wake was called. But this is not the case for Shared: it can return a Poll::Ready and call wake at the same time. If I follow a poll afterwards, it will return Poll::Ready again. It seems the most correct thing to do then is to not poll at all and ignore this wake, which contradicts with the doc.
This behavior itself may not be a problem, but the doc is quite confusing.

Frankly, this line in the std docs appears wrong to me:

As long as the executor keeps running and the task is not finished, it is guaranteed that each invocation of wake() (or wake_by_ref()) will be followed by at least one poll() of the task to which this Waker belongs.

There's no way Waker can guarantee that. An executor probably would do that, but the strength of the sentence should reflect that level of certainty (read: not much).
Source: have implemented and maintained serious executors.


Fix issue with select(0)

Fixes #2658.
I looked through other builders to find similar cases but couldn't find any at first glance.

Thanks for the fix! Not trying to be pedantic but this seems to add a specific check for the 0 case. Are there other similar cases that should also be fixed, or is this the only one? (for example, should false be a literal? what about null?)

@tgriesser I personally haven't had the opportunity of working on a project using TypeScript yet, but I'm curious to learn. So would you mind clarifying how TypeScript would have helped in this case?
From my albeit very brief understanding is that you'd do something like
columns(column: string | number | IRaw) {
    if(!column) {
        return this;
    }
}

But TypeScript would not pick up on the if-statement in this case, would it?
//Column === 0
if(!column) {
    return this;
}

@wubzz just by verifying that only String and raw would have been valid parameters for calling that method.


Rails 5 support

[x] fixes issue with Virtus and Rails5 strong_parameters

@loed-idzinga plz put other deprecation warnings and issues here

Tested it and can confirm that this fixes the issue in Rails 5.


I got one issue from shopware backend default configuration, Normal z-index issue from colorPicker and switch field. I hope you will fix it in next relase version.

Description: I got one issue from shopware backend default configuration, Normal z-index issue from colorPicker and switch field. I hope you will fix it in next relase version.
Environment: Shopware <IP_ADDRESS>
Steps to reproduce: create config.xml and add the fields 2 two switch field and another is the color picker component. After that you can get the issue.
Expected result: while open the color picker the switch fields are in back of the colorpicker box.
Actual result: For now it will looks on the colorpicker box.

[public] Automated response: This issue is linked to the internal issue https://shopware.atlassian.net/browse/NEXT-32352.
[created from NEXT-32352, comment 485412]

[public] Hello,
Within our company roadmap and work capacity, we try to address each bug or improvement request but admit that not each one will be resolved. To continue our culture of honesty and openness, we are closing this issue to focus on our roadmap on behalf of all Shopware users.
If you feel like this issue is still impacting you, please create a new issue and let us know. Thank you again for your valuable feedback.
[created from NEXT-32352, comment 492305]


Remove TreePointer in favor of Option

This makes it easier for new contributors to understand the code by
reducing the number of abstractions that need to be learned.

This seems like the better design. Thanks for making the changes!

No problem!


Sort installed apps alphabetically

It will be easier to find apps.
Currently their order seems random.

Done in latest release

Done


Migration script does not always migrate app/views/includes/{head, scripts}.html

Description of the issue

When running npx<EMAIL_ADDRESS>migrate in a prototype which has modified app/views/layout.html, the migration script won't try and migrate the file app/views/includes/head.html or app/views/includes/scripts.html. This could lead users who try to complete the migration on their own to not realise that they also need to update those files.
Steps to reproduce the issue

Create a new v12 prototype
Change app/views/layout.html, app/views/includes/head.html, and app/views/includes/scripts.html
Run npx<EMAIL_ADDRESS>migrate

Actual vs expected behaviour

I expect to see app/views/layout.html, app/views/includes/head.html, and app/views/includes/scripts.html mentioned in the output of the migration script, however only app/views/layout.html is mentioned.
Environment (where applicable)

GOV.UK Prototype Kit version: 13.0.0

I have run this migrate several times and the output when the script.html and head.html are changed is as follows:
Migrating your prototype to v13

added 796 packages in 10s

27 packages are looking for funding
  run `npm fund` for details
Succeeded [Migrate config.js to config.json]
Succeeded [Delete /home/ben/GDS/govuk-prototype-kit-12.3.0/start.js]
Succeeded [Delete /home/ben/GDS/govuk-prototype-kit-12.3.0/VERSION.txt]
Succeeded [Delete /home/ben/GDS/govuk-prototype-kit-12.3.0/Procfile]
Succeeded [Delete /home/ben/GDS/govuk-prototype-kit-12.3.0/server.js]
Succeeded [Delete /home/ben/GDS/govuk-prototype-kit-12.3.0/listen-on-port.js]
Succeeded [Delete /home/ben/GDS/govuk-prototype-kit-12.3.0/app/assets/sass/application-ie8.scss]
Succeeded [Delete /home/ben/GDS/govuk-prototype-kit-12.3.0/app/assets/sass/unbranded-ie8.scss]
Succeeded [Deleted files that are no longer needed]
Succeeded [Delete app/assets/images/separator-2x.png]
Succeeded [Delete app/assets/images/unbranded.ico]
Succeeded [Delete app/assets/images/separator.png]
Succeeded [Delete app/views/includes/breadcrumb_examples.html]
Succeeded [Delete app/assets/sass/patterns/_contents-list.scss]
Succeeded [Delete app/assets/sass/unbranded.scss]
Succeeded [Delete app/assets/sass/patterns/_mainstream-guide.scss]
Succeeded [Delete app/assets/javascripts/jquery-1.11.3.js]
Succeeded [Delete app/assets/sass/patterns/_pagination.scss]
Succeeded [Delete app/assets/sass/patterns/_related-items.scss]
Succeeded [Delete app/assets/sass/patterns/_task-list.scss]
Succeeded [Delete app/assets/javascripts/auto-store-data.js]
Succeeded [Delete app/views/layout_unbranded.html]
Succeeded [Update application SCSS file]
Succeeded [Overwrite app/filters.js]
Succeeded [Remove unused directory lib]
Succeeded [Overwrite app/assets/javascripts/application.js]
Succeeded [Update routes file]
Succeeded [Remove unused directory docs]
Succeeded [Deleted directories that are no longer needed]
Failed [Delete app/views/includes/head.html]
Failed [Delete app/views/includes/scripts.html]
Succeeded [Remove old pattern includes from application SCSS file]
Succeeded [Remove empty directory /app/assets/sass/patterns]
Succeeded [Remove empty directory /app/assets/images]

The script is unable to fully migrate your prototype to version 13.

Contact the GOV.UK Prototype team for support.

https://prototype-kit.service.gov.uk/docs/support

The following messages in the above clearly state that the files have failed to be deleted.  Is this not enough of a message?:
Failed [Delete app/views/includes/head.html]
Failed [Delete app/views/includes/scripts.html]

This has now been fixed in the case where changes have been made to layout.html and the includes head.html and script.html.
Result is now as follows:
npx --package=alphagov/govuk-prototype-kit#migration-script-will-now-report-head-and-script-failures govuk-prototype-kit migrate
Need to install the following packages:
  github:alphagov/govuk-prototype-kit#migration-script-will-now-report-head-and-script-failures
Ok to proceed? (y)
Succeeded [Check migration is being applied to a pre v13 prototype]
Migrating your prototype to v13

added 796 packages in 11s

27 packages are looking for funding
  run `npm fund` for details
Succeeded [Migrate config.js to config.json]
Succeeded [Delete server.js]
Succeeded [Delete start.js]
Succeeded [Delete VERSION.txt]
Succeeded [Delete listen-on-port.js]
Succeeded [Delete Procfile]
Succeeded [Delete app/assets/sass/application-ie8.scss]
Succeeded [Delete app/assets/sass/unbranded-ie8.scss]
Failed [Overwrite app/views/layout.html]
Succeeded [Deleted files that are no longer needed]
Succeeded [Delete app/assets/images/separator-2x.png]
Succeeded [Delete app/assets/images/separator.png]
Succeeded [Delete app/assets/images/unbranded.ico]
Succeeded [Delete app/assets/sass/unbranded.scss]
Succeeded [Delete app/views/includes/breadcrumb_examples.html]
Succeeded [Delete app/assets/sass/patterns/_mainstream-guide.scss]
Succeeded [Delete app/assets/javascripts/auto-store-data.js]
Succeeded [Delete app/assets/javascripts/jquery-1.11.3.js]
Succeeded [Delete app/assets/sass/patterns/_pagination.scss]
Succeeded [Delete app/assets/sass/patterns/_related-items.scss]
Succeeded [Delete app/assets/sass/patterns/_task-list.scss]
Succeeded [Delete app/assets/sass/patterns/_contents-list.scss]
Succeeded [Delete app/views/layout_unbranded.html]
Succeeded [Update application SCSS file]
Failed [Delete app/views/includes/scripts.html]
Failed [Delete app/views/includes/head.html]
Succeeded [Overwrite app/filters.js]
Succeeded [Remove unused directory lib]
Succeeded [Overwrite app/assets/javascripts/application.js]
Succeeded [Remove unused directory docs]
Succeeded [Deleted directories that are no longer needed]
Succeeded [Update routes file]
Succeeded [Remove old pattern includes from application SCSS file]
Succeeded [Remove empty directory app/assets/sass/patterns]
Succeeded [Remove empty directory app/assets/images]

The script is unable to fully migrate your prototype to version 13.

Contact the GOV.UK Prototype team for support.

https://prototype-kit.service.gov.uk/docs/support

Please note that now all three files are reported:
Failed [Overwrite app/views/layout.html]
Failed [Delete app/views/includes/scripts.html]
Failed [Delete app/views/includes/head.html]


page.goto() hangs with timeout option set

Environment:

Node version: 8.9.1
Puppeteer version: 0.13.0
Platform / OS version: Windows 8 (6.3 - Build 9600)

This snippet works fine:
const puppeteer = require('puppeteer');

(async () => {
    const browser = await puppeteer.launch({
        waitUntil: 'networkidle2',
        ignoreHTTPSErrors: true,
        args: ['--disable-setuid-sandbox', '--no-sandbox'],
        headless: false
    });

    const page = await browser.newPage();
    console.log('page opened, going to url');

    await page.goto('file://C:\\testing\\index.html', { timeout: 0 });
    console.log('page loaded');

    await page.screenshot({path: 'example.png'});
    console.log('screenhot saved!');

    await browser.close();
})();

But without the { timeout: 0 } or even setting it to  { timeout: 30000 }, it just dosen't finish, and just times out.
The file / URL does not matter, this happens no matter what. It happens both in headless and non-headless mode.

timeout:0 had a bug in 0.13.0, but timeout:30000 should work normally (and it sets timeout:30000 as default if you don't)

But I used v ´0.13.0´ and it's the latest version - so are you sure that it was not the 0.12.0 version?
@vonGameTheory @aslushnikov

The bug that causes timeout:0 to fail definitely in 0.13.0 .  (Again, any positive number should work normally.  The bug only affected timeout:0)  I believe it has been fixed now if you install the current tip-of-the-tree version and it will be in the next official release.


Update documentation for explicitly Django 1.11.x

Turns out Django 2.x makes a bunch of things required that were optional in Django 1.11.x, so current version of django-helpdesk doesn't support it. Update documentation to say this. Plan on next release to address this.

Codecov Report

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

@@           Coverage Diff           @@
##           master     #550   +/-   ##
=======================================
  Coverage   63.31%   63.31%
=======================================
  Files          35       35
  Lines        3309     3309
  Branches      504      504
=======================================
  Hits         2095     2095
  Misses       1075     1075
  Partials      139      139

Impacted Files
Coverage Δ

helpdesk/models.py
78.92% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


[WIP] Update for grammer using interning.

See https://github.com/lykenware/grammer/pull/4.
Sadly, the last commit isn't done yet. I fixed the errors up to borrow-checking, which is pretty bad given how I access the cx: &mut Context in Continuation from generate_parse.
We might need that CPS IR refactor I was discussing with @qmx, or maybe a slight rearrangement.

https://gist.github.com/CAD97/5c0dfb1861216b674e6ea0b557f0018b fixes borrow-checking issues in src/generate/rust.rs (revision e8ee9533433d026b16db6ab82e21c9b531c6fd3b)

(wrong button, sorry)


Missing flag.Parse() in main.go (Chapter 6)

Minor correction suggested: The book in chapter 6 (p 172) states

...with some sensible defaults and ask the flag package to parse them

However, there is no call to flag.Parse() in the code.

Well spotted.


Created index.html

Created base html file for the index page. No CSS or JS has been linked.

This is approved, congrats you can write html


Made disabling Authereum notifications optional

I've had some feedback wanting Authereum notifications when using Onboard. I've added an optional initialisation value to set this behaviour by copying those for Torus.
Note: This PR switches the default to allowing notifications. If you don't want this I can add a little logic to swap this.

@TomAFrench This is great! Yeah I agree it should default to having notifications.


zetacore : Add import data to the e2e test

Add an option to the end to end to end test to use data exported from a mainnet or testnet node.

I tried it out on the current mainnet data, and it works as expected.
I will raise a pr after the mainnet is upgraded to v15 , and I am able to run through the test with a v15 export , which adds a new module and so the state export is data is slightly different

@kingpinXD v16 you mean?

which adds a new module
There are 2 modules added authority and lightclient

Not sure, the v15 upgrade handler already adds the two modules
https://github.com/zeta-chain/node/blob/93c12e0d5fe88f7a883b6f33e6edc8402add8334/app/setup_handlers.go#L31-L34
If in case  the handler needs to be changed, then yes, it would make sense to to wait till v16

Because the version has not been updated for the new version. We need to set v16 in the v16.0.0-rc branch


Error on using skill points to assasin on rogue and passion on warrior.

Using skill points to assasin on rogue and passion on warrior

Can you explain this one a little more? What was the error (perhaps link the issue number) and why is commenting out this piece of code a good fix?

On Human or Karus Rogue, when you have skill points to use, you cant use them for Assasin Tab Skills which iValue = 6 referenced. This means, you cant even have 1 skill point on assasin.
Same goes for Warrior (Human or Karus), when you have skill points to use, you cant use them for Passion Tab Skills which iValue = 7 referenced. This means, you cant event have 1 skill point on passion.
I didnt understand what is the purpose of this code.

Ok I can see where you're coming from. For now we can keep it commented out, especially if it doesn't serve an obvious purpose, and perhaps we can consider removing it once the skill system is fully fleshed out.


Python wrapper API has changed; python examples are not working

The python examples in the repository aren't working. As an example, here's me running read_way.py.
$ python python/examples/read_way.py washington.osmx 761811137
Traceback (most recent call last):
  File "/Users/jake/Code/FOSS/protomaps/OSMExpress/python/examples/read_way.py", line 18, in <module>
    for node_id in way.nodes:
                   ^^^^^^^^^
AttributeError: '_GeneratorContextManager' object has no attribute 'nodes'

The augmented_diff.py script fails similarly:
python python/examples/augmented_diff.py washington.osmx 155421965.osc 155421965.adiff
No old loc found for tagless node<PHONE_NUMBER>
Traceback (most recent call last):
  File "/Users/jake/Code/FOSS/protomaps/OSMExpress/python/examples/augmented_diff.py", line 138, in <module>
    set_old_metadata(prev_version)
  File "/Users/jake/Code/FOSS/protomaps/OSMExpress/python/examples/augmented_diff.py", line 74, in set_old_metadata
    elem.set('version',str(o.metadata.version))
                           ^^^^^^^^^^
AttributeError: '_GeneratorContextManager' object has no attribute 'metadata'

The root cause is that pycapnp from_bytes() now returns a context manager, requiring callers to change from this:
way = messages_capnp.Way.from_bytes(msg)
# do stuff with way

...to this:
with messages_capnp.Way.from_bytes(msg) as way:
    # do stuff with way

This change was introduced in pycapnp 1.1.1. It looks like the Python examples were developed against an older version of OSMX that used pycapnp 0.6.4, but #46 bumped the pycapnp version to 2.0.0. This effectively changed the API of nodes.get(), ways.get(), etc by making them return context managers rather than return nodes/ways/etc directly, but I assume this wasn't noticed at the time and the examples weren't updated to match.
I think there are two possible fixes: either downgrade the Python osmx wrapper to use pycapnp <= 1.1.0, or change the Python examples to use with. I'm not sure which is more appropriate. It's worth noting that if pycapnp ~= 2.0.0 is kept, the next release of osmx will be a breaking API change for any users of the Python wrapper.
EDIT: Actually it looks like a version with the new context-manager API has already been published, though as a 0.0.x release I think most users would know not to expect a stable API 😉
I might be able to work on a PR for this at some point soon, but wanted to open this issue for now in case I don't end up having time to.

maybe it was this that wasn't merged yet: https://github.com/protomaps/OSMExpress/commits/python-api-enhancements/


Replace util::Range with std::ops::RangeBounds

The util::Range trait was written before std::ops::RangeBounds existed. No reason not to use the standard library trait in this case, I think.

Looks like CI is becoming increasingly broken... I'm going to merge the PRs that seem very safe, like this one, but we'll probably need to figure out what's going on.

Looks like CI is becoming increasingly broken

Yeah, I posted some info in the other PR #81. I can't find any other good sources for FFmpeg prebuilts though, so might need to build it ourselves. Meh.


Error after reloading bot Skript.

Skript Version?

2.7.3 sir

It appears to me that the issue at hand could be attributed to a disruption in your server’s connectivity. Perhaps you are attempting to execute an operation on Discord subsequent to the disconnection of your bot? The problem could also originate from your host. Intriguingly, I could hypothesize endlessly about the nature of your difficulties, given the absence of additional information pertaining to your server or the code in use, how exciting!


compat(graphene): force upgrade to segmentation_with_graph

Not a fan of this, but it makes existing links that are floating around work with the new segmentation_user_layer_with_graph.
Hopefully we can keep this a temporary change...

Seems fine, tho maybe the browser should just reload on its own? location.reload()?

I thought it's a good way to tell the users that it's an issue on their side and they need to act, rather than rely on our hacks.


Build iOS failure

We need your Apple ID/password to manage certificates and provisioning profiles
from your Apple Developer account.
? What's your Apple ID? xxxxxxxx
? Password? ********
? What is your Apple Team ID (you can find that on this page: https://developer
.apple.com/account/#/membership)? Personal Team
[exp] Validating Apple credentials...
[exp] Error validating credentials. You may need to clear them (with -c) and t
ry again.
[exp] Unable to validate credentials. Request ID 19785750-b406-11e7-9fca-971d4d9
2d8d8, message: Internal error occurred. Please try again in a few minutes or co
ntact support.
Has anyone had this problem?

Hi! Per the issue template please post to our forums or the issue tracker at https://github.com/expo/expo
We're seeing this error from fastlane: No teams available on the Developer Portal You must accept an invitation to a team for it to be available To learn more about teams and how to use them visit https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/ManagingYourTeam/ManagingYourTeam.html Your account is in no teams


Add a Gitter chat badge to README.md

tmrts/boilr now has a Chat Room on Gitter
@tmrts has just created a chat room. You can visit it here: https://gitter.im/tmrts/boilr.
This pull-request adds this badge to your README.md:

If my aim is a little off, please let me know.
Happy chatting.
PS: Click here if you would prefer not to receive automatic pull-requests from Gitter in future.

It's already integrated


feat: massive pivot progress

WIP

@harlan-zw have you abandoned the project? It seemed like a very interesting project!

Hey, thanks for checking in.
I decided to put this on pause for a couple of reasons:

Finishing off my projects. I have a few outstanding projects that are smaller in scope, I figured I should finish them off as they will actual help me launch this project properly (Nuxt SEO).
The underlying infrastructure needed by the project isn't there just yet. I use NuxtHub for on CloudFlare and it's missing some key features (durable objects, cron), I was spending too much time trying to implement this myself so better to wait. Also, Nuxt UI v3 and Nuxt Content v3 are needed.

I plan to return to this in December and getting it in a state where people can start usingit.

Understood! Thanks for the update!


Increase VM symbol table load factor without impacting performance

The change here:
https://github.com/dart-lang/sdk/commit/c4b821cc813cd48e0584da7d5afffa74629025c6
Increased the VM isolate's symbol table load factor from 0.375 to 0.9. This saved ~100KB in memory footprint, but regressed Flutter hot restart performance:
https://github.com/dart-lang/sdk/issues/30371
It would be good to figure out how to increase the load factor of UnorderedHashSet in //runtime/vm/hash_table.h without hurting performance so much.

Obsolete after https://dart-review.googlesource.com/c/sdk/+/93962


How to align Area_5a and Area_5b?

Hi,
Thanks for your great work. However, I was confused about the split mesh of Area_5.

These 2 meshes seem not to be aligned in the same coordinate system. If I sample some points from two mesh and stack them together. Obviously, it's not recovered to complete Area_5 as expected.
In the Area_5a, and Area_5b, some of the rooms has been split into two meshes. But for one side, it might be a single wall, while it would contain the most part of the room. This is to say we can't use the mesh separately as they're not complete if we don't stitch them together. However, it's not aligned.

Area_5a + Area_5b :

Office_5 in Area_5a + Office_5 in Area_5b:

Best,
ZD

Hi @ZhengdiYu,
Did you find any solution to align Area_5a and Area_5b? I also have the same problem. I would appreciate it if you could provide me with some ideas to solve this problem.
Best wishes,
Heming

same problem

Hi Guys @ZhengdiYu @xiaobaishu0097,
I found a solution.  (For Vertices in Area_5b)

How did you find the offsets? Did you use ICP?

Hi @ZhengdiYu:
Actually, I noticed that "point_cloud.mat" in Area_5a and Area_5b both saved all data of Area_5, but the coords saved in Area_5a's "point_cloud.mat" correspond with S3DIS Dataset, but all the coords saved in Area_5b's "point_cloud.mat" can not match correctly. I assume that coords in Area_5b are sampled in the coordinate system of Area_5b's mesh file (actually not, exist a matching) and points in both files are matched. I computed the offset by exploring the relation of points saved in the mat files of Area_5a and Area_5b.


IE window.Event.prototype.stopPropagation.bind is broken

I have tried IE9 and IE10 and for some reason window.Event.prototype.stopPropagation.bind is broken on both. "Unable to get value of the property 'bind': object is null or undefined"
Anyone else seeing this?

Since IE9 and IE10 support addEventListener, there is not any polyfilling of stopPropagation going on that I know of. Would you please setup a test page so I can recreate this myself?

@jonathantneal I made a JSFiddle that just includes the polyfill script and attempts to console.log(window.Event.prototype.stopPropagation). Please check it out in IE9 and notice the error https://jsfiddle.net/0yo7eejL/

@jonathantneal can you please confirm you see the error?

There is no polyfill for stopPropagation in IE9 because IE9 already supports stopPropagation, but it does not expose it to Event.prototype. This is not an error in polyfill.io, it’s just how IE implements stopPropagation. I’m not certain what you are asking for.

@jonathantneal this is definitely a polyfill error. Please look at the JSFiddle I posted. If you run it in IE9, the console.log(window.Event.prototype.stopPropagation) will be undefined when you have included the polyfill script. Then, if you remove the polyfill and run again, console.log(window.Event.prototype.stopPropagation) returns this:
function stopPropagation() {
    [native code]
}

This tells me that the polyfill is incorrectly blowing away the native handler from IE. Do you see what I mean?

For simplicity of your testing, just open up IE9 and load https://jsfiddle.net/0yo7eejL/3/ to see window.Event.prototype.stopPropagation work correctly, and then open the original fiddle to see it blow up with the polyfill included. https://jsfiddle.net/0yo7eejL/

Any updates on this? I assume you were able to see the error?

@jonathantneal only dips into the project intermittently so may not get to this for some time.  If you have a suggested fix I'm happy to review.

@triblondon and @jonathantneal any updates?

sorry, Jake and I are not looking at this at the moment. Contributions always welcomed though.

@jonathantneal any plans of looking into this or is it a won't fix?

@jonathantneal @triblondon is there any intent to investigate this at all? Please respond. If there is no intent to fix it, let's close this issue as won't fix. Anyone who uses window.Event.prototype.stopPropagation.bind will just have to not use this service.

@rwwagner90 I've updated this issue several times in response to your chasing, and reminded you each time that you are very welcome to work on this.  If you can't solve the problem yourself you might also consider paying for a qualified developer to investigate and solve the problem for you.  This is one of the great advantages of open source software - anyone can be involved.
Meanwhile, it seems none of the core team is able or willing to help with this.  Personally, I simply don't have enough knowledge of the way event propagation is supposed to work, and my team is not affected by this problem.

@triblondon I am not familiar with the repo at all or I would dig into it. I am certainly not going to pay a third party to do it.
Please do not misunderstand my intent, I am perfectly fine with you closing as a won't fix, although it is inconvenient, since the whole point of a polyfill service is to get older and problem browsers working.
What I am not okay with, is this sitting open for years, and eventually being closed way later as a won't fix.
I'm just looking for a straight answer, and if there is not the manpower to fix it, I'd just like to know that, so we can look for alternative polyfills.

OK, good luck.


import: accept more file paths

Given a lot of microscope output has very long names, I think a deep TIFF stack would quickly hit shell limitations on command length. Two ways round this:

Accept input from stdin
Accept a directory and discover files within it (sorting them) - probably better handled by piping fd | sort into option 1, but might be convenient for simple cases

Here's a repo which takes Vec<OsString>, where those OsStrings represent a mixture of file paths, directory paths, and - for stdin, and produces Vec<PathBuf> to files. Recursion into directories is optional and configurable.
https://github.com/clbarnes/filelist

Good issue. One mitigation and otherwise complementary, useful feature would just be to have a block offset to import into a (potentially pre-existing) dataset, with manually specified total dimension. This would make it easier to distribute parallel imports and limit the number of files given to any one command.
Eventually I see import going away in its current form once ndgest succeeds n5gest, because image stacks will just be another chunknd-implementing backend which can be "imported" via convert, and it will be easy to specify arbitrary sources via stdin streaming or autodiscovery like you suggest.


New action request: tvdias/github-tagger

Action name
uses: tvdias/github-tagger
Reasons
tvdias/github-tagger

Intended usage
tvdias/github-tagger

I have checked the internal marketplace for similar actions and couldn't find one that works for us.

[X] I have checked the internal marketplace first

:robot: Check completed with result: ⚠
Found 23 Dependabot security vulnerabilities:
12 where high and 11 where moderate.
Use this link to verify the alerts.

:robot: Check completed with result: ⚠
Found 23 Dependabot security vulnerabilities:
12 where high and 11 where moderate.
Use this link to verify the alerts.

:robot: Found these results:

Check
Results
Links

CodeQL on the forked repo
:white_check_mark:
CodeQL run

Security scan:

Check
Result

No Dependabot configuration found
⛔

No CodeQL Init found
⛔

No CodeQL Analyze found
⛔

:robot: Check completed with result: ⚠
Found 23 Dependabot security vulnerabilities:
12 where high and 11 where moderate.
Use this link to verify the alerts.


implement String() method. closes #7

Hi @valyala.
I've implemented requested method. Can you review and merge it?

@valyala any objections?

@kirillDanshin , thanks!


Only allow merge if CI is green

I suggest to protect the master branch in the GH-Settings and only alow PRs to be merged if all GH Actions are green.

@ppuetsch
Is there a way I can run those action manually on a branch before a PR is approved.
Or will setting change force the user create the PR to run those actions first?

@ppuetsch maybe you know this?


🐛 [BUG] - Copy button doesn't work in Safari

Description
There is a copy button on code snippets, which should insert the snippet's content into the user's clipboard. It doesn't work properly in Safari (inserts a few spaces).
Reproduction steps
1. Go to 'https://opentofu.org/docs/language/state/encryption/#configuration' in Safari
2. Click on 'Copy button' (right upper corner of the snippet)
3. Try to paste it somewhere

Screenshots
No response
Logs
No response
Browsers
Safari
OS
Mac

I can reproduce the issue on Safari and it looks like copy-text-to-clipboard package is having some issues there. We could try switching to Clipboard API which has pretty good support and would fix this issue.


kvengine: refine table format

What is changed and how it works?

What's Changed:

Make the table format more extensible for future change.

Please make format @coocood
[2022-05-11T07:14:43.681Z] --- a/components/kvengine/src/table/sstable/builder.rs

[2022-05-11T07:14:43.681Z] +++ b/components/kvengine/src/table/sstable/builder.rs

[2022-05-11T07:14:43.681Z] @@ -235,7 +235,7 @@ impl Builder {

[2022-05-11T07:14:43.681Z]          }

[2022-05-11T07:14:43.681Z]      }

[2022-05-11T07:14:43.681Z]

[2022-05-11T07:14:43.681Z] -    fn build_aux_index(&self, buf: &mut BytesMut, fuse8: &[u8] ) {

[2022-05-11T07:14:43.681Z] +    fn build_aux_index(&self, buf: &mut BytesMut, fuse8: &[u8]) {

[2022-05-11T07:14:43.681Z]          let origin_len = buf.len();

[2022-05-11T07:14:43.681Z]          buf.put_u32_le(0);

[2022-05-11T07:14:43.681Z]          buf.put_u32_le(AUX_INDEX_BINARY_FUSE8);

[2022-05-11T07:14:43.681Z] diff --git a/components/kvengine/src/table/sstable/iterator.rs b/components/kvengine/src/table/sstable/iterator.rs

[2022-05-11T07:14:43.681Z] index 3b8ab39b3..c3e6598d9 100644

[2022-05-11T07:14:43.681Z] --- a/components/kvengine/src/table/sstable/iterator.rs

[2022-05-11T07:14:43.681Z] +++ b/components/kvengine/src/table/sstable/iterator.rs

[2022-05-11T07:14:43.681Z] @@ -6,8 +6,7 @@ use byteorder::{ByteOrder, LittleEndian};

[2022-05-11T07:14:43.681Z]  use bytes::{Buf, Bytes, BytesMut};

[2022-05-11T07:14:43.681Z]

[2022-05-11T07:14:43.681Z]  use super::{builder::META_HAS_OLD, SSTable};

[2022-05-11T07:14:43.681Z] -use crate::table::{search, table, LocalAddr};

[2022-05-11T07:14:43.681Z] -use crate::table::sstable::BLOCK_FORMAT_V1;

[2022-05-11T07:14:43.681Z] +use crate::table::{search, sstable::BLOCK_FORMAT_V1, table, LocalAddr};

[2022-05-11T07:14:43.681Z]

[2022-05-11T07:14:43.681Z]  pub struct BlockIterator {

[2022-05-11T07:14:43.681Z]      b: Bytes,

[2022-05-11T07:14:43.681Z] diff --git a/components/kvengine/src/table/sstable/sstable.rs b/components/kvengine/src/table/sstable/sstable.rs

[2022-05-11T07:14:43.681Z] index c5e902148..cec35fec7 100644

[2022-05-11T07:14:43.681Z] --- a/components/kvengine/src/table/sstable/sstable.rs

[2022-05-11T07:14:43.681Z] +++ b/components/kvengine/src/table/sstable/sstable.rs

[2022-05-11T07:14:43.681Z] @@ -163,7 +163,10 @@ impl SSTableCore {

[2022-05-11T07:14:43.681Z]              let mut aux_idx_slice = aux_idx_data.chunk();

[2022-05-11T07:14:43.681Z]              validate_checksum(aux_idx_slice, footer.checksum_type)?;

[2022-05-11T07:14:43.681Z]              aux_idx_slice = &aux_idx_slice[4..];

[2022-05-11T07:14:43.681Z] -            assert_eq!(LittleEndian::read_u32(aux_idx_slice), AUX_INDEX_BINARY_FUSE8);

[2022-05-11T07:14:43.681Z] +            assert_eq!(

[2022-05-11T07:14:43.681Z] +                LittleEndian::read_u32(aux_idx_slice),

[2022-05-11T07:14:43.681Z] +                AUX_INDEX_BINARY_FUSE8

[2022-05-11T07:14:43.681Z] +            );

[2022-05-11T07:14:43.681Z]              aux_idx_slice = &aux_idx_slice[4..];

[2022-05-11T07:14:43.681Z]              let fuse8_len = LittleEndian::read_u32(aux_idx_slice) as usize;

[2022-05-11T07:14:43.681Z]              aux_idx_slice = &aux_idx_slice[4..];

[2022-05-11T07:14:43.681Z] + echo Please make format and run tests before creating a PR

[2022-05-11T07:14:43.681Z] Please make format and run tests before creating a PR

[2022-05-11T07:14:43.681Z] + exit 1


[Question] Why training with answer?

Question
We print the input_ids and labels before calculate losses, and we found that the input_ids with answer same as labels, it means that the answer would be predicted are in input_ids to the LLaMA,  please kindly correct me if I am wrong.

Hi, thanks for your question.
This is expected, as the model is trained with "causal masking", meaning that the tokens only attend to the tokens before itself, without seeing itself and tokens after that.  Please let me know if there are other questions, thanks!

Thanks for your reply!
I have understand it, this is the attibute of decode transformer.


Add boyuanzz as a owner of powermock deps

powermock deps was introduced by https://github.com/apache/beam/pull/6261
r: @yifanzou @pabloem

@pabloem This is PR is ready to merge. Thanks for your help!

Run Gradle Publish


Resized images are somehow corrupted.

Hi. Let me start off by saying this is a great library. I just encountered some problems when resizing on a mac. Images are somehow chopped. See sample image below.

Did I miss something?

Hello, this looks like it could be a corrupt input image. Are you able to share the original image? Are you using Stream-based input that could have been truncated?

Yeah the thing is the image isn't corrupt. I'm not using steam-based input. The way the app works is it watches for new files on a certain folder on a pc/laptop (I'm using chokidar). And when new files are added, each of them gets resized and uploaded to s3. Funny thing is that most of the time it works perfectly, but sometimes it does this awkward resize.

The resize part is pretty straight forward. Here is is:
sharp(filePath)
        .rotate()
        .resize(700, 700)
        .max()
        .quality(80)
        .withMetadata()
        .toFile(outputFilePath)
        .then((resized)=> resolve(resized))
        .catch((error) => {
          console.log(error)
          reject({ resizeImage: error.stack })
        })

Has chokidar been configured via awaitWriteFinish to wait for the file to be complete before the event is fired?

"By default, the add event will fire when a file first appears on disk, before the entire file has been written" https://github.com/paulmillr/chokidar#performance

Thanks @lovell! So far not getting this on a ubuntu. But will cross test. Will close this after. Thanks


Add terms for (in)dependent variables of outputs of simulations

@fbergmann @matthiaskoenig I'm building up a list of necessary terms here

kinetic (e.g., SBML)

[x] time (urn:sedml:symbol:time)
[x] concentration
[x] amount
[x] particle number
[x] rate
[x] particle number rate

flux balance (e.g., SBML-fbc)

[x] (objective) value
[x] flux
[x] reduced costs
[x] shadow prices
[x] min flux
[x] max flux

logical (e.g., SBML-qual)

[x] step?
[x] level

Here's the proposed organization:

that looks fine to me. (I might have chosen the names lower / upper bound for the flux for fbc problems, but it is fine to me).

I can add those as synonyms -- another benefit of organizing this
information as an ontology.
On Fri, Mar 26, 2021, 6:18 AM Frank Bergmann @.***>
wrote:

that looks fine to me. (I might have chosen the names lower / upper bound
for the flux for fbc problems, but it is fine to me).
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/SED-ML/KiSAO/issues/85#issuecomment-808097472, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAVXMKLXTAB2DI56CD4H4JTTFRNPBANCNFSM4ZZZNSTA
.

Within the Jacobian matrix, there should also be reduced and full Jacobian
matrix. Also in the sensitivities we need:
Concentration Control Coefficients (scaled and unscaled)
Flux Control Coefficients (scaled and unscaled)
Response Coefficient (scaled and unscaled)
Elasticities (scaled and unscaled)
Also don't forget eigenvalues and eigenvectors.
To make it complete we should also add (possibly under a different heading
such as 'Structural' or similar.
Stoichiometry matix
Reduced stoichiometry matrix
Link matrix
Conservation Matrix
Herbert
On Thu, Mar 25, 2021 at 12:19 PM Jonathan Karr @.***>
wrote:

Here's the proposed organization:
[image: Screenshot from 2021-03-25 15-16-53]
https://user-images.githubusercontent.com/2848297/112530894-53b91900-8d7d-11eb-8e5b-71e227b0c02c.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/SED-ML/KiSAO/issues/85#issuecomment-807319065, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAIBSDWFYW53ASBSKURTM7TTFOECVANCNFSM4ZZZNSTA
.

--
Herbert Sauro, Professor
University of Washington, Bioengineering
206-685-2119, www.sys-bio.org
@.***
Books: http://books.analogmachine.org/

It would be great if we could have amount and concentration on the same level. A concentration is not really an amount, so it would be great to have a more general term. E.g. extent so the tree would look like this

extent

amount
concentration
level
particle number

What is propensity in this context?
The variable dimension slice seems not to fit in there. I think we need some more discussion on this part before deciding this. E.g. what is the difference between start/initial and end/final. I am not sure the slicing operations belong in the ontology.

Extent/amount is easy to change.
Happy remove slicing and merge this into the variable branch with a combinatorial number of terms. Let's discuss slicing at the next SED-ML meeting to make sure we all align on 1 design.

I feel like the two things you would need are 'current' and 'initial' (i.e.
not 'end', per se.)  However, if you queried the 'current' condition of a
variable before simulation, that would give you the 'initial', too, so
potentially would we only need 'current'?  It could easily be that I'm not
envisioning the same scenarios that the rest of you are.
-Lucian
On Fri, Mar 26, 2021 at 3:17 PM Jonathan Karr @.***>
wrote:

Extent/amount is easy to change.
Happy remove slicing and merge this into the variable branch with a
combinatorial number of terms. Let's discuss slicing at the next SED-ML
meeting to make sure we all align on 1 design.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/SED-ML/KiSAO/issues/85#issuecomment-808556693, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AANH3VXRDFFAFANSRUAUJHLTFUBVHANCNFSM4ZZZNSTA
.

I wanted to chime in here because it looks like many of the terms that are slated to be added to KiSAO in this thread are already represented and organized in the Ontology of Physics for Biology (OPB). For example, the OPB represents the concepts of time, concentration, particle number, and concentration/particle rates. In the interest of integrating knowledge resources across the COMBINE community and not duplicating content across these resources, it would probably be a good idea to ensure that KiSAO and the OPB are appropriately integrated. For example, OPB terms could be used directly within the KiSAO hierarchy where appropriate, or KiSAO terms could be mapped to their related OPB terms. Additionally, you could leverage the OPB's hierarchical organization to address issues such as the one Matthias raised in his most recent comment about classifying amount and concentration (see  OPB:Amount property and its descendants). The OPB is intended to serve the community as a core ontology that represents - among other things - the physical properties simulated in biosimulation models (for example, it is the recommended ontology for representing physical properties in the OMEX metadata specification), and many of the terms slated for addition to KiSAO here are in the physical property tree of the OPB. We are happy to collaborate further on this to ensure useful integration between KiSAO and the OPB.
@jhgennari @dcookUW

This is one of the reasons I pushed to organize this information into an ontology -- to link all of the terms introduced into KiSAO to other ontologies, in particular OPB and SIO. In contrast, SED-ML's current approach of URNs doesn't provide a clear path to achieving something similar.
I thought about using OPB, SIO, or another ontology directly in SED-ML documents. In the context of SED-ML, these terms would be used to define the computational execution of SED-ML documents. To use OPB or other terms directly in SED-ML documents, their mathematical meaning would need to be captured inside the ontology and there would need to be a standard way for simulation tools to translate each term into computational operations. For example, the OPB term for concentration would need to define the meaning of concentration as a mathematical expression of amount divided by volume and Avogadro's number. As I understand, the OPB doesn't capture this.
Instead, I thought a good way to manage this is to create a relatively small list of terms in KiSAO for which is there a significant degree of overlapping support among simulation tools (that can execute similar models). Essentially, this list of terms could be a subset of those in OPB and/or SIO, where KiSAO is used to track the supported subset for which simulation tools have a shared understanding of their computational meaning. Embracing all of the terms in OPB seems hard because this would likely lead to SED-ML documents that can only be interpreted by specific tools that recognize specific terms.
Adding mathematical meaning to OPB would be very useful. This would help solve this problem. I would be interested to discuss how to apply this to SED-ML.

Jonathan - could you provide a use case example that illustrates how attaching a mathematical meaning to an OPB term would be useful? I'm not super familiar with the end goals here nor how classifying model variables as concentrations, etc. would be used to support the computational execution of SED-ML docs. I'm trying to figure out whether it would make sense to add mathematical definitions to the OPB to support these efforts. Or maybe it would make more sense to include those definitions on the KiSAO terms and just link them to OPB terms via equivalent class or subclass-of statements.

Moved to dependent-variables branch


Created READMEs for observers and checkpointing

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

Comparison is base (bd19c6a) 91.53% compared to head (20234da) 91.53%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #463   +/-   ##
=======================================
  Coverage   91.53%   91.53%
=======================================
  Files         162      162
  Lines       21738    21738
=======================================
  Hits        19897    19897
  Misses       1841     1841

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


[staging-next] Revert "Merge pull request #150236 from r-ryantm/auto-update/boehm-gc"

Closing as a duplicate of #152205


Request for model Helsinki-NLP/opus-mt-en-ko

Hello! I came across the model Helsinki-NLP/opus-mt-ko-en on the Huggingface and its quality is surprisingly great! May I ask if you have a model for the opposite direction, Helsinki-NLP/opus-mt-en-ko? Thank you very much.

I have a new model running at the moment. I have surprisingly big trouble in training en-ko for some strange reason. The approach with a shared vocabulary does not work at all and results in some weird model behavior. I now train with separate source and target vocabularies, which probably makes sense anyway. It may, however cause some trouble with the huggingface integration. I don't know yet ....

I see. Thank you very much for working on it. Looking forward to the good news!


Godot 4.0 port

Feel free to comment in this pull request if you have found any bugs.
Know issues:

[ ] Error “res://addons/ui_design_tool/scenes/Toolbar.gd:40 - Got a freed object as a result of the call.”

Nice to see this is being ported to 4.0! I've just started working with 4.0 and I'll be sure to add this to my project as soon as it's ported.
I haven't looked into making plugins myself, but finding this makes me think that could be an option for this proposal I've added in the same spirit: 2D editor tools for align and distribute Maybe something you could be interested in as well?

Interesting idea, and it is a good idea to prototype it as a plugin, faster and easier.
While for UIDesignTool, I doubted I would be adding new features in the near future as I am too busy with my own game project.


[WebToolsE2E][Aspire][Document]Some more updates are needed to "Use .NET Aspire messaging components in ASP.NET Core" instructions using VS with aspire

Describe the issue or suggestion
Issue description
In "Use .NET Aspire messaging components in ASP.NET Core" doc, we need to make some updates to the instructions for Preview 6.
Issue 1: For Add the .NET Aspire component to the API section, document lets add below code,

after add this code "builder.AddAzureServiceBus("serviceBusConnection");"  will meet below error. change to this code "builder.AddAzureServiceBusClient("serviceBusConnection");" will resolve this issue, so need update the document.

Issue 2; For Add the .NET Aspire component to the API section, when copy below code to machine ,

It will meet below issue as below screenshot, so need update the document.

Issue 3 For Create the API endpoint section, document  lets copy below codes,

After add below code, it will show an error, when add ";" in line 38, this error will disappear, so the document. need update.

Closing as duplicate of #489 - and being addressed as part of #1043


Updated version labels to v1.13.6 in RBAC and Deployment for litmus.

Signed-off-by: Jonsy13<EMAIL_ADDRESS>
Proposed changes
This PR will update the version labels to v1.13.6 in rbac and deployment for litmus.
Summarize your changes here to communicate with the maintainers and make sure to put the link of that issue
Types of changes
What types of changes does your code introduce to Litmus? Put an x in the boxes that apply

[ ] New feature (non-breaking change which adds functionality)
[ ] Bugfix (non-breaking change which fixes an issue)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation Update (if none of the other choices applies)

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[ ] I have read the CONTRIBUTING doc
[ ] I have signed the commit for DCO to be passed.
[ ] Lint and unit tests pass locally with my changes
[ ] I have added tests that prove my fix is effective or that my feature works (if appropriate)
[ ] I have added necessary documentation (if appropriate)

Dependency

Please add the links to the dependent PR need to be merged before this (if any).

Special notes for your reviewer:

Can we pass it using an env @Jonsy13 ? Because image names are being passed as env then substituted.

We can take this env change after this release.


static gen

love the youtube vid. feel free to take it or leave it, but i feel like one of the cool things about the nextjs sell is that you can do static site generation really easily, and this seems like an almost perfect fit for that vs. having to server side render on every request. I also wasn't sure whether you really wanted the fallback page handler for a specific reason, but it felt like we could just enumerate the card id routes and route via pages/tech/[cardId]. and with that i feel like we should put in a more fun 404 image on the not found response (vs erroring previously) when an id doesn't work

oh yeah I took the use of the base url out too here since we should just use a relative url instead (so things like the spawned vercel env branches would work right)


SoundFont sample data has a 12 bytes offset

In NAudio.SoundFont.SampleDataChunk constructor, only the id of the "sdta" chunk header is read before calling the GetData function. This is wrong because the size of that chunk is still unread, as long as the next "smpl" sub-chunk header! Because of this, the sample data is read from the file 12 bytes before it really starts (4 bytes for "sdta" chunk size + 4 bytes for "smpl" chunk id + 4 bytes for "smpl" chunk size). The total size of the sample data is also wrong because it's set to the size of the "LIST" chunk.
As a side note, there seems to be some confusion with ReadChunkID. This is sometimes called on a chunk created by GetNextSubChunk and this function already calls ReadChunkID. The result of that call is that it will read the next chunk ID!  In the SoundFont constructor, this line is commented:
//RiffChunk r = list.GetNextSubChunk();
This kind of confirms that whoever changed that did not fully understand what he was doing.

The SoundFont support was a very early part of NAudio and is only really experimental. I have considered removing it, but I am also happy to accept PRs to fix this

Are there any news on soundfonts progress? I'd be really happy to be able to use them.

@sinshu  thanks for sharing, looks like a great project

@oggy22
I've implemented a SoundFont parser and synthesizer which can work with NAudio.
Please check this out if you are interested.
https://github.com/sinshu/meltysynth

Hello @sinshu !  I'm having trouble figuring out how to pass rendered audio from MeltySynth to NAudio. Can you help?
Thanks,
Rob

@rjjaret
This is NAudio's issue page, and it's not suitable for asking about MeltySynth.
For questions about MeltySynth, please check the issue page below, and create a new issue if necessary.
https://github.com/sinshu/meltysynth/issues


Fixing deprecated keyword lr by new learning_rate

There are deprecated warning when running examples of udacity course, because the keyword was deprecated, running examples with default learning rate (0.01) do not give expected results, confusing the course attendants.

done
live
ok
go
production
go-live
database
dbms
sql
dart

Thanks!

@JosBecker please, could you provide review?


Align naming of object super classes

ZCL_ABAPGIT_OBJECT_SAXX_SUPER for SAMC & SAPC
ZCL_ABAPGIT_OBJECT_W3XX_SUPER for W3HT & W3MI

any deletions missing in the commits? this PR currently adds 1000 lines of code

of course :)


How to define taint propagation with lists

I wonder how it is possible to configure MarianaTrench to also report taint propageted trough lists, for example like this:
List<String> taintList= new ArrayList<String>();
taintList.add(source()); // Add a tainted variable to the list
sink(taintList); // Hand the list as argument to a function defined as sink

I guess I would need a propagation model generator that looks something like this
{
  "find": "methods",
  "where": [
    {
      "constraint": "signature_match",
      "parent": "Ljava/util/List",
      "name": "add"
    }
  ],
  "model": {
    "propagation": [
      {
        "input": "Argument(0)",
        "output": "Return"
      }
    ]
  }
}

But this doesn't work as the taint isn't propagated to the return value but to the list itself. So it would need another argument at model.propagation[0].output but I couldn't find the correct option in the Documentation.

Hi @draftyfrog, thanks for reaching out.
In Mariana Trench, the implicit this is actually Argument(0). This is mentioned here https://mariana-tren.ch/docs/models/#method-name-format
So you would want a propagation from Argument(1) to Argument(0).
Also note that you are missing the final ; in the parent name (it should be "parent": "Ljava/util/List;").
We actually have models for List but they aren't open source, unfortunately. This is what we use internally:
    {
      "find": "methods",
      "where": [
        {
          "constraint": "any_of",
          "inners": [
            {
              "constraint": "signature_pattern",
              "pattern": "Ljava/util/List;\\.add:\\(Ljava/lang/Object;\\)Z"
            },
            {
              "constraint": "signature_pattern",
              "pattern": "Ljava/util/Queue;\\.add:\\(Ljava/lang/Object;\\)Z"
            },
            {
              "constraint": "signature_pattern",
              "pattern": "Ljava/util/Queue;\\.offer:\\(Ljava/lang/Object;\\)Z"
            }
          ]
        }
      ],
      "model": {
        "modes": [
          "skip-analysis",
          "taint-in-taint-this",
          "no-join-virtual-overrides"
        ]
      }
    }

Hi @arthaud, thanks for the fast response. That does exactly what I was looking for!


Help please

help please, i'm interested for your plugin, it's awesome how change the color in the screen but i can´t take a picture like your screenshots and video. Can you help me please?

please share your code so i can understand your problem

ok i use your example from git hub

but when i take a photo i have this

and when i try to take other photo i have a new error

i will resolve this issue ASAP

problem is solved in latest version, I'm closing this issue if you face any problem again you can reopen this issue or file an another issue.. Thanks for using this package..


New Git Manager options and changes

Description
What?
Adds new Git Manager options.
Why?
Git Manager doesn't host the exercises anymore, so we need a way to specify where the exercises are. unprotected_paths option is also required on some courses.
Testing
What type of test did you run?

[ ] Accessibility test using the WAVE extension.
[ ] Django unit tests.
[ ] Selenium tests.
[ ] Other test. (Add a description below)
[X] Manual testing.

Exercises and chapters seem to work.
Did you test the changes in

[ ] Chrome
[ ] Firefox
[ ] This pull request cannot be tested in the browser.

Think of what is affected by these changes and could become broken
Programming style

[X] Did you follow our style guides?

Have you updated the README or other relevant documentation?

[ ] documents inside the doc directory.
[X] README.md.
[ ] Aplus Manual.
[ ] Other documentation (mention below which documentation).

Is it Done?

[ ] Reviewer has finished the code review
[ ] After the review, the developer has made changes accordingly
[ ] Customer/Teacher has accepted the implementation of the feature

Clean up your git commit history before submitting the pull request!

History cleaned


Unable to see this addon in autoloads

For some reason, cant see this addon in autoload list.

Hi @durdenk, it should be visible on the plugins tab of project settings, not the autoload tab.

Thanks


如何同时or方便的同步多个project到不同的页面呢

Search first

[X] I searched and no similar issues were found

What Happened?
rt
Reproduce the Bug
要么是同步所有任务到一个页面,但是无法区分project
要么只能一次同步一个project
Screenshots
No response
Environment Information
No response
Additional Context
No response
Are you willing to submit a PR? If you know how to fix the bug.

[ ] I'm willing to submit a PR (Thank you!)

你是想查询今天的所有任务吗？或许可以看看侧边栏功能


Angular Material does not work on Child component

I do not know whether it is a bug or not but when i try to import Material Input box in my child component only html input box appears styling does not work.
What is the expected behavior?
It should have a look and feel of material
What is the current behavior?
No material stylings are applied
What are the steps to reproduce?
Providing a StackBlitz reproduction is the best way to share your issue.
StackBlitz starter: https://goo.gl/wwnhMV
What is the use-case or motivation for changing an existing behavior?
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Is there anything else we should know?

Did you import a theme?
@import<EMAIL_ADDRESS>

yes in styles.css i have imported the above file.

@smahu Did you import MatFormFieldModule / MatInputModule? What's your code? Screenshot? Ideally, this should be posted on StackOverflow.

https://stackoverflow.com/questions/49749028/angular-material-styles-not-applying-on-child-component
Can you follow this link it has code in it.

Closing since this seems to be more a request for debugging help than an issue.


Last Modified Date

Feature Request
As a product manager
I would like to know what triggers a change in last modified date
so that I know if we are communicating changes appropriately to our user
Acceptance Criteria
Constraints on this acceptance criteria:
Notes
This is in reference to the last modified date that is reflected in the space modals on the dashboard.

Once PR to update currentTimeStamp is merged, all of these actions update the space last modified:

Add/Edit/Delete Product
Add/Delete/Edit Person
Add/Edit/Delete Role
Edit/Delete Product Tag (NOT Add)
Add/Edit/Delete Location
-Add/Cancel Assignments


clang-tidy complains: initialization with static duration may throw an exception

Using the latest Catch master (and clang-tidy bundled with CLion EAP 2017.2), a simplest example yield clang-tidy warning:
TEST_CASE("whatever") {
    REQUIRE(1 + 2 == 3);
}

clang-tidy lint:
Initialization of 'autoRegistrar1' with static storage duration may throw an exception that cannot be caught.

This can happen because TEST_CASE's tags are checked for validity and if not, exception is thrown. This is not particularly great when the error happens in statically registered test cases (ie standard usage), but the alternative is to just exit, which is quite a lot worse for users that supply their own main and register test cases dynamically.
There is no proper way to fix it in C++98, but since the next major version drops C++98 support, it is fixed* in the dev-modernize branch.

Potential for std::bad_alloc to happen will still be there, there is no good way to get rid of that without serious rework of how test cases are registered

I've added some judicious /* NOLINT */s to the appropriate places in the source (for this and another one about use of inline assembler on every assertion!). That seems to fix it all.
That's not in the single include yet but I think we'll do a release quite soon to get this fix out.

@philsquared Thanks! Hopefully those pesky warnings in CLion will go away.


Allow quotes around TableName in COPY

Sometimes pg_dump will add quotes around the TableName, which results in a Regex doesn't match: ... error from gonymyzer.

Thanks for adding this @Miouge1


Multi-task learning network structure design

Hi everyone, I'm trying to do text classification using CNN. Here's some of my label: dog, cat, bird, football, basketball... As these classes are somehow too fine-grained to have good precision, plus the relatively small amount of training data, I group them into animal, sports.
Then I design a simple multi-task learning structure as below but it doesn't improve final performance on my fine-grained label.
 18     data = mx.symbol.Variable('data')
 19     softmax_label = mx.symbol.Variable('softmax_label')
 20     softmax_label_finegrained = mx.symbol.Variable('softmax_label_finegrained')
 21
 22     # embedding layer
 23     if not with_embedding:
 24         word_embed = mx.symbol.Embedding(data=data, input_dim=vocab_size,
 25                                       output_dim=embedding_size, name='word_embedding')
 26         conv_input = mx.symbol.Reshape(data=word_embed, target_shape=(batch_size, 1, sentence_size, embedding_size))  # convolution layer needs 4D input.
 27     else:
 28         logging.info('with pretrained embedding.')
 29         conv_input = data
 30
 31     # convolution and pooling layer
 32     pooled_outputs = []
 33     for i, filter_size in enumerate(filter_list):
 34         convi = mx.symbol.Convolution(data=conv_input, kernel=(filter_size, embedding_size), num_filter=num_filter)
 35         acti  = mx.symbol.Activation(data=convi, act_type='relu')
 36         pooli = mx.symbol.Pooling(data=acti, pool_type='max', kernel=(sentence_size - filter_size + 1, 1), stride=(1,1))  # max pooling on entire sentence feature ma    p.
 37         pooled_outputs.append(pooli)
 38
 39     # combine all pooled outputs
 40     num_feature_maps = num_filter * len(filter_list)
 41     concat = mx.symbol.Concat(*pooled_outputs, dim=1)  # max-overtime pooling. concat all feature maps into a long feature before feeding into final dropout and full    y connected layer.
 42     h_pool = mx.symbol.Reshape(data=concat, shape=(batch_size, num_feature_maps))  # make it flat/horizontal
 43
 44     # dropout
 45     if dropout > 0.0:
 46         logging.info('use dropout.')
 47         drop = mx.symbol.Dropout(data=h_pool, p=dropout)
 48     else:
 49         logging.info('Do not use dropout.')
 50         drop = h_pool
 51
 52     # fully connected and softmax output.
 53     logging.info('num_classes: %d', num_classes)
 54     logging.info('num_fine_classes: %d', num_fine_classes)
 55     fc = mx.symbol.FullyConnected(data=drop, num_hidden= num_classes, name='fc')
 56     fc_fine = mx.symbol.FullyConnected(data=drop, num_hidden= num_fine_classes, name='fc_fine')
 57     softmax = mx.symbol.SoftmaxOutput(data= fc, label= softmax_label)
 58     softmax_fine = mx.symbol.SoftmaxOutput(data= fc_fine, label= softmax_label_finegrained)
 59
 60     return mx.symbol.Group([softmax, softmax_fine])

I've also tried incorporating more information by adding an internal SoftmaxActivation layer after fc and didn't work:
 52     # fully connected and softmax output.
 53     logging.info('num_classes: %d', num_classes)
 54     logging.info('num_fine_classes: %d', num_fine_classes)
 55     fc = mx.symbol.FullyConnected(data=drop, num_hidden= num_classes, name='fc')
 56     softmax = mx.symbol.SoftmaxOutput(data=fc, label= softmax_label)
 57     softmax_act = mx.symbol.SoftmaxActivation(data=fc)
 58     # make softmax_domain a internal layer for emitting activation, which we take it as a input into downstream task.
 59     drop_act = mx.symbol.Concat(drop, softmax_act, dim=1)
 60     fc_fine = mx.symbol.FullyConnected(data=drop_act, num_hidden= num_fine_classes, name='fc_fine')
 61     softmax_fine = mx.symbol.SoftmaxOutput(data=fc_fine, label= softmax_label_finegrained)
 62
 63     return mx.symbol.Group([softmax, softmax_fine])
 64

So do you guys have any idea or experience in design such network? Any ideas are welcomed, thank you~

Follow the suggestion of @jonbakerfish , moved this question to http://stackoverflow.com/questions/39179308/multi-task-learning-network-structure-design and close this issue.


Bug: Passive mobs spawning inside blocks and dying

Seems to only happen with bo3s and bo4s but since passive mobs have a very low chance to respawn in already generated chunks (based on the info on the wiki) it's likely to impact the number of passive mobs a player sees as well as causing small amounts of unnecessary lag:

Thanks for reporting this, will have to look at spawn order, mobs should be spawned after BO3's/BO4's so they should be able to see their blocks.

Need to create a test setup for this and figure out what's going on. Moving to backlog for now.

Need to confirm if this happens for 1.16, otherwise move back to 1.12 backlog.

Have not yet seen this for 1.16.5, mob spawning seems ok, closing this for now. If we find issues with mobs choking for 1.16.5, feel free to reopen this issue. For 1.12.2, don't think we'll fix this, unless someone would like to make a PR.


dcp error

import cvxpy as cp
import numpy as np

# Given input values
A = np.array([1, 3, 4, 6, 7, 9, 11, 12, 13, 13, 10, 12])
D = np.array([6, 13, 10, 10, 10, 13, 14, 16, 16, 17, 17, 17])
theta = np.array([[1, 0.375, 0.5, 1.5, 3, 0.75, 1, 0.25, 1, 1.75, 0.125, 1.25]])
W = np.array([5, 3.75, 3, 6, 9, 3, 3, 1, 3, 7, 0.875, 6.25])
s_min = 1
s_max = 6
T = 16
n = 12

# Define variables
theta_var = cp.Variable((T, n))  # Theta matrix
s_var = cp.Variable(T)  # Processor speed

# Define the objective function: minimize total energy consumption
objective = cp.Minimize(cp.sum_squares(s_var) * T)

# Define constraints
constraints = [
    s_min <= s_var, #minimum processor speed
    s_var <= s_max, #maximum processor speed

    theta_var >= 0, #must be positive
    cp.sum(theta_var, axis=1) == 1, # Sum of theta per time period equals 1
    ]

# Constraints for each job
for i in range(n):
    for t in range(A[i], D[i] -1):
        sum_theta_st = cp.sum([theta_var[t, i] * s_var[t] ])
        constraints += [sum_theta_st >= W[i]]

# Define problem
problem = cp.Problem(objective, constraints)

# Solve problem
problem.solve()

# Check if problem is solved successfully
if problem.status == cp.OPTIMAL:
    print("Optimal solution found.")
    print("Minimum energy:", problem.value)

    # Retrieve optimal values
    optimal_theta = theta_var.value
    optimal_s = s_var.value
else:
    print("Problem could not be solved.")

# Print optimal values
print("Optimal Theta:")
print(optimal_theta)
print("Optimal Processor Speeds:")
print(optimal_s)

I'm getting:
DCPError: Problem does not follow DCP rules. Specifically:
The following constraints are not DCP:
5.0 <= var6116[1, 0] @ var6117[1] , because the following subexpressions are not:
|--  var6116[1, 0] @ var6117[1],....
3- Convex Problems.pdf
I also attached a file of my problem (till slide4) any help is appreciated!

@JreigeF Check the change of variables on page 3 of the PDF that you attached.
As written, this problem is not DCP, as you are multiplying variables.
Instead, you need to work with $S_{ti} = \theta_{ti}s_t$.

Am I not doing it here:
for i in range(n):
for t in range(A[i], D[i] -1):
sum_theta_st = cp.sum([theta_var[t, i] * s_var[t] ])
constraints += [sum_theta_st >= W[i]]

To make the problem convex you need to optimize over $S$ instead of $\theta$ explicitly.
Even though both optimization problems are equivalent, only one of them is convex.
Find below the updated code.
A few comments:

I had to introduce the constraint $S_{it} \geq 0$. It is not obvious to me why we have $\theta_{it} \geq 0$ otherwise.
You should double-check the indexing, specifically range(A[i], D[i] - 1). Maybe this example was translated from a one-indexed language? This is just a suspicion because the entries of A started at 1 and not 0.
Moved the printing to the if arm, as it was trying to access undefined values otherwise.

Two small unrelated hints:

You can highlight Python code in Markdown by adding three backticks followed by py, then the code, then again three backticks. See the GitHub docs (need to replace ruby by py).
If you suspect your question is a usage question and not a bug or a missing feature, the GitHub discussion page or our Discord server are better places to ask.

import cvxpy as cp
import numpy as np

# Given input values
A = np.array([1, 3, 4, 6, 7, 9, 11, 12, 13, 13, 10, 12])
D = np.array([6, 13, 10, 10, 10, 13, 14, 16, 16, 17, 17, 17])
theta = np.array([[1, 0.375, 0.5, 1.5, 3, 0.75, 1, 0.25, 1, 1.75, 0.125, 1.25]])
W = np.array([5, 3.75, 3, 6, 9, 3, 3, 1, 3, 7, 0.875, 6.25])
s_min = 1
s_max = 6
T = 16
n = 12

# Define variables
S = cp.Variable((T, n))  # Theta matrix
s_var = cp.Variable(T)  # Processor speed

# Define the objective function: minimize total energy consumption
objective = cp.Minimize(cp.sum_squares(s_var) * T)

# Define constraints
constraints = [
    s_min <= s_var, #minimum processor speed
    s_var <= s_max, #maximum processor speed
    s_var == cp.sum(S, axis=1),
    S >= 0
    ]

# Constraints for each job
for i in range(n):
    constraints += [cp.sum([S[t,i] for t in range(A[i], D[i] - 1)]) >= W[i]]

# Define problem
problem = cp.Problem(objective, constraints)

# Solve problem
problem.solve()

# Check if problem is solved successfully
if problem.status == cp.OPTIMAL:

    print("Optimal solution found.")
    print("Minimum energy:", problem.value)

    # Retrieve optimal values
    optimal_theta = S.value / s_var.value.reshape((-1,1))
    optimal_s = s_var.value

    # Print optimal values
    print("Optimal Theta:")
    print(optimal_theta.round(2))
    print("Optimal Processor Speeds:")
    print(optimal_s.round(2))
else:
    print("Problem could not be solved.")

This gives:

@JreigeF I hope my answer above was helpful. Closing this issue for now.


Google Calendar api issue

I'm closing this because I think this kind of question fits better in stackoverflow.
This project was intended to be a simple guide to start using the google calendar API.


[How to] Check if current user has authorized this application

Check if current user has authorized this application
Google Drive APIs
function checkAuth() {
        gapi.auth.authorize(
          {
            'client_id': CLIENT_ID,
            'scope': SCOPES.join(' '),
            'immediate': true
          }, handleAuthResult);
      }

and how to use Load Drive API client library.

That is a question for Stack Overflow, not the issue tracker.  If you're receiving an access token, then this plugin is working.
Best,


Communities work

I don't think this is ideal, open to suggestions!

I don't think this is ideal, open to suggestions!


Read json/geojson files

Added ability for t-route to read network information from json and geojson files. These changes have only been implemented for input files that contain network and nexus information, not waterbody or data assimilation info.
Additions

Removals

Changes
network_topology_parameters.py

Made waterbody:, alt:, and gages: parameters under columns: optional
Added optional flowpath_edge_list: parameter

HYFeaturesNetwork.py

Updated read_json() function to be flexible in handling the names of id and toid
Added read_geojson() function
Updated read_geo_file() function to choose between reading .gpkg, .json, or .geojson files
Moved renaming of self._dataframe columns to before any other dataframe manipulation happens

Testing

Tested on sample geojson and json input files.
Tested on existing geopackage file.

Screenshots
Notes

This will work if running channel routing only (no reservoir routing or data assimilation). A new PR can be made if these features are needed.

Todos

Checklist

[ ] PR has an informative and human-readable title
[ ] Changes are limited to a single goal (no scope creep)
[ ] Code can be automatically merged (no conflicts)
[ ] Code follows project standards (link if applicable)
[ ] Passes all existing automated tests
[ ] Any change in functionality is tested
[ ] New functions are documented (with a description, list of inputs, and expected output)
[ ] Placeholder code is flagged / future todos are captured in comments
[ ] Visually tested in supported browsers and devices (see checklist below :point_down:)
[ ] Project documentation has been updated (including the "Unreleased" section of the CHANGELOG)
[ ] Reviewers requested with the Reviewers tool :arrow_right:

Testing checklist
Target Environment support

[ ] Windows
[ ] Linux
[ ] Browser

Accessibility

[ ] Keyboard friendly
[ ] Screen reader friendly

Other

[ ] Is useable without CSS
[ ] Is useable without JS
[ ] Flexible from small to large screens
[ ] No linting errors or warnings
[ ] JavaScript tests are passing

@shorvath-noaa I encountered an issue while running 'LoweColorado_TX_v4.' It appears to give an error because there is no folder named 'lakeout.' Would it be possible for you to add a 'lakeout' folder to 'LoweColorado_TX_v4'?

@AminTorabi-NOAA I added those directories

I added those directories.
On Wed, Nov 15, 2023 at 12:40 PM Amin Torabi @.***>
wrote:

@shorvath-noaa https://github.com/shorvath-noaa I encountered an issue
while running 'LoweColorado_TX_v4.' It appears to give an error because
there is no folder named 'lakeout.' Would it be possible for you to add a
'lakeout' folder to 'LoweColorado_TX_v4'?
—
Reply to this email directly, view it on GitHub
https://github.com/NOAA-OWP/t-route/pull/699#issuecomment-1813153698,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AYSH2PMEE7G5VDYGQQXADSDYEULCHAVCNFSM6AAAAAA7M4QZFOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJTGE2TGNRZHA
.
You are receiving this because you were mentioned.Message ID:
@.***>


fix logs and modularisation leftovers from #3638

@pavanaravapalli creating this issue, please deal with the comments left in #3638 there.
ISSUE TYPE

Improvement Request
Other

COMPONENT NAME

CLOUDSTACK VERSION

CONFIGURATION

OS / ENVIRONMENT

SUMMARY

STEPS TO REPRODUCE

EXPECTED RESULTS

ACTUAL RESULTS

@DaanHoogland @pavanaravapalli not following on this issue, can you please advise what is missing or if has been fixed by other PR?


Allow more cases to fall through to CHUNKMEMSET/CHUNKCOPY

For AVX2 specifically, our chunkmemset call chain allows for safely dealing with half sized chunks. Because this doesn't alter the code size in any meaningful way, we may as well use macros to define the constant we use for comparison in the "safe" variety of functions.

Summary by CodeRabbit

New Features

Introduced a new macro MIN_CHUNKSIZE to standardize minimum chunk sizes across various architectures.
Updated memory operation functions to utilize the new MIN_CHUNKSIZE for improved safety and consistency.

Bug Fixes

Enhanced error handling in memory operations to prevent exceeding buffer limits.

Documentation

Minor adjustments to comments for clarity regarding memory operations.

Hmm, actually I see one case where this may not be true...I could remedy it but the cure might be worse than the disease.


Apikey modal updates

Contributes to #954
moves APIKeyDownloader to the APIKeyModal folder and adds various updates based on feedback from the release review

LGTM


Document that the ThenInclude VS Intellisense bug has been fixed in VS2019

VS bug referenced in this article has been closed: https://github.com/dotnet/roslyn/issues/8237
I've not tested this in the current release of VS though.

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

ID: bbd36f35-e257-d0ed-8f28-f539ddcb71ec
Version Independent ID: 093903d5-f7c7-5a78-c0e5-0e2662dcedef
Content: Loading Related Data - EF Core
Content Source: entity-framework/core/querying/related-data.md
Product: entity-framework
Technology: entity-framework-core
GitHub Login: @rowanmiller
Microsoft Alias: divega

Confirmed that the issue is resolved, will remove the doc warning.


issue in orders page in velocity in arabic language

Bagisto Version

[ ] master branch

Steps To Reproduce

go to order page in velocity

Actual Result

same issue found in downloadable page in velocity


Initial kmyth enclave 'retrieve key' ECDH key agreement implementation

Add initial kmyth enclave 'retrieve key' functionality:

adds an ECALL to invoke from untrusted space
ECALL calls a 'wrapper' function that provides an API call from within the enclave
Currently only implements an ECDH key agreement between the enclave and a remote peer

OCALL facilitates exchange of ephemeral 'public key' contributions between enclave and remote peer
OCALL currently calls simply dummy_ecdh_server() function - to be replaced by code to integrate with a real server

Attempted to modularize with functionality in common/src/ecdh_util.c

I added a line to the test key/cert generation bash script to write a ~/.rnd file before generating test keys/certs. This fixes the "Can't load ~/.rnd into RNG" warnings that were previously generated.
I fixed the Makefile so that 'make' now is equivalent to 'make all'. I revised the top-level build targets as follows:

pre: creates the ./bin directory, generates the enclave signing key, runs the 'indent' utility on source files, and cleans up automatic backup files.
all: builds the ./bin/kmyth_sgx_retrieve_key_demo binary
test-keys-certs: generates the .pem test key and certificate files in the ./data director
demo: builds the code (all target), generates the test keys/certs (test-keys-certs target), and runs the demo binary

In the original submission, most "length" variables were of type int (signed integer). The OpenSSL API, however, appropriately expects either size_t (unsigned long int) or unsigned int. The latest commit implements variable type changes to make this code more consistent.
When doing this, I also came across a redundant definition of the "dummy_server" function in sgx/common/include/ecdh_util.h that I removed and two wrongly named variables in the compute_ecdh_shared_secret() function definition that I corrected.

Needs to be merged with main to Incorporated all of the latest merges.


Ability for scraper to push errors down the pipeline without throwing

A couple ways this could work:

Scraper called with errors array as an argument that can be pushed to (feels weird man)
Scraper called with this = { errors: [] } (breaks a lot of scrapers)
Scraper called with region array as an argument you can push data to, can throw at any time (i.e. throw at the end of the scraper to indicate a non-fatal error)
Other ways?

@qgolsteyn @ryanblock thoughts?

What's an example of when this would be useful?
To me, idea 1 errors array isn't bad, it's a collector parameter.  Have used such things in the past.  Could even be a stream or a logger they push to.

Other possibility: global logging, potentially.  Scrapers could instantiate a ScraperError(this, err) and give it to a global logger routine.  If scrapers know they can continue despite the error, great.