Update ECMPS to Import daily backstop [GNP] (emissions) data

Context
As apart of the scope of this ticket ensure users can import the new schema for  daily backstop (emissions) data into the system
BETA Web Client MATS 2.0 MP Reporting Instructions June 2023.docx
BETA Web Client MATS 2.0 EM Reporting Instructions June
BETA Web Client MATS 2.0 EM Reporting Instructions June 2023.docx
Schema
    "DailyBackstop": {
      "title": "DailyBackstop",
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "unitId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 6
        },
        "date": {
          "type": "string",
          "format": "date"
        },
        "dailyNOxEmissions": {
          "type": "number",
          "multipleOf": 0.1,
          "minimum": -999999999.9,
          "maximum": 999999999.9
        },
        "dailyHeatInput": {
          "type": "number",
          "multipleOf": 0.1,
          "minimum": -999999999.9,
          "maximum": 999999999.9
        },
        "dailyAverageNOxRate": {
          "type": [
            "number",
            "null"
          ],
          "multipleOf": 0.001,
          "minimum": -9999.999,
          "maximum": 9999.999
        },
        "dailyNOxExceedence": {
          "type": "number",
          "multipleOf": 0.1,
          "minimum": -999999999.9,
          "maximum": 999999999.9
        },
        "cumulativeOSNOxExceedence": {
          "type": [
            "number",
            "null"
          ],
          "multipleOf": 0.1,
          "minimum": -999999999999.9,
          "maximum":<PHONE_NUMBER>99.9
        }
      },
      "required": [
        "unitId",
        "date",
        "dailyNOxEmissions",
        "dailyHeatImput",
        "dailyAverageNOxRate",
        "dailyNOxExceedence",
        "cumulativeOSNOxExceedence"
      ]
    },

Import JSON
{
        "unitId": "1A",
        "date": "2023-07-15",
        "dailyNOxEmissions": 999999999.9,
        "dailyHeatInput": 999999999.9,
        "dailyAverageNOxRate": 9999.999,
        "dailyNOxExceedence": 999999999.9,
        "cumulativeOSNOxExceedence":<PHONE_NUMBER>99.9,
    },

Export JSON
{
        "id": 1,
        "unitId": "1A",
        "monitoringLocationId": "6",
        "reportingPeriodId": 120,
        "date": "2023-07-15",
        "dailyNOxEmissions": 999999999.9,
        "dailyHeatInput": 999999999.9,
        "dailyAverageNOxRate": 9999.999,
        "dailyNOxExceedence": 999999999.9,
        "cumulativeOSNOxExceedence":<PHONE_NUMBER>99.9,
        "userId": "bvick",
        "addDate": "2023-01-20T22:40:24.000Z",
        "updateDate": "2023-01-20T22:40:24.000Z",
    },

DB Table
CREATE TABLE IF NOT EXISTS camdecmps.daily_backstop(
	daily_backstop_id bigint GENERATED ALWAYS AS IDENTITY (start 1 increment 1) NOT NULL,
	unit_id numeric(38,0) NOT NULL,
	op_date date NOT NULL,
	daily_noxm numeric(10,1) NOT NULL,
	daily_hit numeric(10,1) NOT NULL,
	daily_avg_noxr numeric(7,3),
	daily_noxm_exceed numeric(10,1) NOT NULL,
	cumulative_os_noxm_exceed numeric(13,1),
	mon_loc_id character varying(45) NOT NULL,
	rpt_period_id numeric(38,0) NOT NULL,
	userid character varying(25) NOT NULL,
	add_date timestamp without time zone NOT NULL,
	update_date timestamp without time zone,
	CONSTRAINT pk_daily_backstop PRIMARY KEY (daily_backstop_id),
	CONSTRAINT fk_daily_backstop_unit FOREIGN KEY (unit_id)
		REFERENCES camd.unit (unit_id) MATCH SIMPLE,
	CONSTRAINT fk_daily_backstop_monitor_location FOREIGN KEY (mon_loc_id)
		REFERENCES camdecmps.monitor_location (mon_loc_id) MATCH SIMPLE
    ON DELETE CASCADE,
	CONSTRAINT fk_daily_backstop_reporting_period FOREIGN KEY (rpt_period_id)
		REFERENCES camdecmpsmd.reporting_period (rpt_period_id) MATCH SIMPLE
);

Communications
Also as part of this task, can you create one ticket to create the structures, and another ticket to update the beta to accept the import of these versions?
From: Worley, Christopher
Sent: Friday, June 23, 2023 11:10 AM
To<EMAIL_ADDRESS>Kyle Herceg<EMAIL_ADDRESS>Whitten, Dwayne<EMAIL_ADDRESS>Cc: Alex Collado<EMAIL_ADDRESS>janell coleman<EMAIL_ADDRESS>Heese, Michael<EMAIL_ADDRESS>Ibarra, Michelle<EMAIL_ADDRESS>Subject: FW: Updated Instructions
Jason,
The updated instructions for MP and EM are posted and complete.  Let me know what else you need to create the updated JSON schema documentation.
Thanks.
Chris Worley
202-816-2670
From: Sarah Downes<EMAIL_ADDRESS>Sent: Thursday, June 22, 2023 5:03 PM
To: Worley, Christopher<EMAIL_ADDRESS>Frushour, Charles<EMAIL_ADDRESS>Cc: Scott Aber<EMAIL_ADDRESS>Ann Albrecht<EMAIL_ADDRESS>Dwayne Whitten<EMAIL_ADDRESS>Lane Giannini<EMAIL_ADDRESS>Schreifels, Jeremy<EMAIL_ADDRESS>Subject: RE: Updated Instructions
Chris,
The update for Daily Backstop has been added to the Emissions instructions on CAMD’s SharePoint.
BETA Web Client MATS 2.0 EM Reporting Instructions June 2023.docx
Sarah Downes
508.340.0198
From: Worley, Christopher<EMAIL_ADDRESS>Sent: Thursday, June 1, 2023 3:58 PM
To: Sarah Downes<EMAIL_ADDRESS>Frushour, Charles<EMAIL_ADDRESS>Cc: Scott Aber<EMAIL_ADDRESS>Ann Albrecht<EMAIL_ADDRESS>Dwayne Whitten<EMAIL_ADDRESS>Lane Giannini<EMAIL_ADDRESS>Schreifels, Jeremy<EMAIL_ADDRESS>Subject: RE: Updated Instructions
CAUTION: Don't open links or attachments unless you recognize the sender and know they are safe.
Thanks Sarah,  I appreciate all the hard work you and others at ERG have done.
From: Sarah Downes<EMAIL_ADDRESS>Sent: Thursday, June 1, 2023 5:50 PM
To: Worley, Christopher<EMAIL_ADDRESS>Frushour, Charles<EMAIL_ADDRESS>Cc: Scott Aber<EMAIL_ADDRESS>Ann Albrecht<EMAIL_ADDRESS>Dwayne Whitten<EMAIL_ADDRESS>Lane Giannini<EMAIL_ADDRESS>Subject: Updated Instructions
Chris,
The Monitoring Plan and Emissions reporting instructions have been posted to CAMD’s SharePoint:
BETA Web Client MATS 2.0 MP Reporting Instructions June 2023.docx
BETA Web Client MATS 2.0 EM Reporting Instructions June 2023.docx
Thanks,
Sarah
Sarah Downes
Eastern Research Group, Inc.
508.340.0198
<EMAIL_ADDRESS>

The following JSON can be used for testing:
{
	"orisCode": 1915,
	"monitorPlanId": "MDC-048B9BC304774A0BADA8E13D111424FF",
	"reportingPeriodId": 117,
	"year": 2022,
	"quarter": 1,
	"submissionComment": null,
	"lastUpdated": "2022-04-12T08:34:40.000Z",
	"updatedStatusFlg": null,
	"needsEvalFlag": null,
	"chkSessionId": null,
	"submissionId": 1495782,
	"submissionAvailabilityCd": "UPDATED",
	"dailyBackstopData": [
		{
			"reportingPeriodId": 117,
			"monitoringLocationId": "988",
			"unitId": "1",
			"date": "2022-01-04T00:00:00.000Z",
			"dailyNOxEmissions":12,
			"dailyHeatInput":122,
			"dailyAverageNOxRate":0.123,
			"dailyNOxExceedence":111,
			"cumulativeOSNOxExceedence":12
		}
	]
}

Daily Backstop imports successfully


Translation

Add a configuration option to choose a different language.
Options should be the same as blob8108.github.io/scratchblocks2/

Solved since #6 enables all languages by default.


Date filtering issue

app crashes when user select "to date" less then "from date"
supposed sollution:
Disable dates in "To dates" popup less then "from date"
Disable dates in "From dates" popup greater then "To date"

Nice observation @HavitOngit.
Thank you for raising this issue. If you want you can add PR.


⚠ Bofrost.at has degraded performance

In 7d59869, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1463 ms

Resolved: Bofrost.at performance has improved in 13b3dfd after 13 minutes.


Returning Promise in older browsers

Hello together,
I'm using fetch-mock to create a fake-backend for development. That's why every request fails with a specific probability and gets resolved after x ms. In chrome this works fine, but in IE and Firefox, it doesn't. I searched through the fetch-mock source a bit and noticed, that this line:
if (response instanceof Promise) {
is always returning false in Firefox and in IE.
Update: I investigated some more and i found out that Promise in the fetchMocks source is not the same as Promise in my source... I guess some Babel or webpack vodoo is going on there :x
Update 2: I could fix this by removing the babel-runtime plugin from my webpack config. Still not sure what is really causing this...
Update 3: Okay I think I understand this now: babel-plugin-transform-runtime replaces every call to built in ES6 types (like Promise) with a reference to the babel-core polyfill, so it does NOT polyfill the globals. Since babel should not convert node_modules/ it cannot convert the Promise inside of fetchMock, so that this Promise and babel promise don't share the same identity.

That's really annoying. Could you try adding {polyfill: false} (or it might be {polyfills: flase}) as an option to the babel runtime plugin and see if it fixes the problem? Though I wouldn't want fetch-mock to be opinionated about your babel setup, so will probably have to a dumber check for 'thenability' of the object

Or come to think of it, this https://github.com/wheresrhys/fetch-mock/pull/131 (just released as 5.1.3) may have fixed the problem. Please give it a go and let me know if fixed

Many other libraries are using
if (typeof action.then !== 'function') {
    return next(action)
  }

This could be used here.
I try the newest version later today and submit a PR if this it does not fix it.

Submitted the Pull Request, some additions:
You should add babel-polyfill as a Peer Dependency in the commonJS version, since you need this for the library to work in older browsers.

If you want to add a note to that effect in the troubleshooting guide
please do, but I don't like peer dependencies - they can cause annoying
install problems for people
On Sat, 17 Sep 2016 at 5:38 pm, Andreas<EMAIL_ADDRESS>wrote:

Submitted the Pull Request, some additions:
You should add babel-polyfill as a Peer Dependency in the commonJS
version, since you need this for the library to work in older browsers.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/wheresrhys/fetch-mock/issues/132#issuecomment-247787110,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAbUR-dsceLpwC2mMYvrEwaRebootBFKks5qrBeggaJpZM4J_lLe
.

And there are many ways a user can decide to polyfill promises - the
troubleshooting guide seems like a good place to suggest some, but I
don't think a testing utility should be opinionated about this
On Sat, 17 Sep 2016 at 7:04 pm, Rhys Evans<EMAIL_ADDRESS>wrote:

If you want to add a note to that effect in the troubleshooting guide
please do, but I don't like peer dependencies - they can cause annoying
install problems for people
On Sat, 17 Sep 2016 at 5:38 pm, Andreas<EMAIL_ADDRESS>wrote:

Submitted the Pull Request, some additions:
You should add babel-polyfill as a Peer Dependency in the commonJS
version, since you need this for the library to work in older browsers.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/wheresrhys/fetch-mock/issues/132#issuecomment-247787110,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAbUR-dsceLpwC2mMYvrEwaRebootBFKks5qrBeggaJpZM4J_lLe
.


ICRC-25: Version negotiation

Currently ICRC-25 specifies version fields in both requests and responses. If the signer does not have the exact matching version, it is supposed to send an error back to the relying party.
As it currently stands, this makes it hard for relying party to find out which version is actually supported by the signer.
Let's use this issue to discuss how we want to proceed with the version field.
Options (as I currently see them):

Option
Description
Versioning Mechanism

1
Drop the version field
New versions will have a new ICRC number with a new method, discoverable using icrc25_supported_standards

2
Allow the relying party to send an array of versions
The relying party sends the list of all versions it supports, the signer picks the highest from the list it supports (or sends version_not_supported if there is none)

3
Allow the relying party to send the highest supported version
The relying party sends only the highest supported version. It is expected to support all lower versions. The signer picks the highest version it supports that is equal or lower to the relying party highest version (or sends version_not_supported if there is none)

Personally, I'm in favor of option 1 because it simplifies our standards. Using the icrc25_supported_standards method we can easily provide improved versions of existing methods. This also aligns better with the standardization process that does not really allow to publish new versions of existing standards. On top of that, given every method has its own standard, this allows signers to drop support for the old version by simply not including it in the list of supported standards.
@plitzenberger, @sea-snake: What is your opinion on that?

@frederikrothenberger I'm voting for option 1 and introducing versioned methods.

introducing versioned methods

Could you elaborate on that? I.e. you would do icrc31_get_principals_v2? Although icrc31_get_principals_v2 would be specified in some other ICRC? We could also simply offer icrcXX_get_principals, where XX is > 31 indicating that it is a later standard?

My vote would be for option 1, it simplifies the method signature by keeping it constant (no versions = no changes) while allowing for new methods (for e.g. new versions) with new icrc standards analogues to how icrc canister standards are currently evolving (new or extending standards over versioning within a standard).

As discussed in the working group meeting on February 06, 2024 the version field will be dropped. If there is a need for an improved version of an existing method, a new ICRC standard should be made to describe the method.
Given ICRC numbers are part of the method name, we can then name the method the same, except for that number.
Example: icrc31_get_principals could eventually be superseded by icrcXX_get_principals.
I will close this issue, once all the existing drafts have been updated.

All drafts have been updated.


hasChanged always false on 'updated' event

Not sure if this is intentional, but when I listen to the 'updated' event and check whether the model.hasChanged(), it is always false. I have to use 'updating' instead.
Same goes for the _previousAttributes, seems like they are always equal to attributes upon being 'updated'.

The updated event is fired after the model is updated, so that will reset any changes, which means that it will no longer be considered changed. When the updating event fires, the model is about to be updated, but hasn't yet, so it can still have changed attributes.

Makes sense, but it would be useful to have the changed attributes after a save so that you know whether the save actually occurred, and can take some action accordingly based on what attributes have changed. For example say you have a remote database accessed over HTTP that you need to keep in sync with the local one, but you only need to update it if certain attributes have changed. If you do the remote update when updating fires there is a chance the local update fails/gets rolled back after changing the remote database.

Hi @blah238. You can access the old previousAttributes via options.previousAttributes. See here.

Reopening as a reminder to add this to the documentation for the event.

Super useful info!


Support for TLS encrypted connections to Rserve

Description
This is not an issue report. This is initially a query.
Does the SSE R Plugin support encrypted connections to Rserve?
From the conf file it appears it only supports encrypted connections to Qlik.
Steps to Reproduce
Rserve is configured to use TLS as per:
tls.key /tmp/Rserv/CA/Rserve.key
tls.cert /tmp/Rserv/CA/Rserve.crt
tls.port 6311
https://github.com/s-u/Rserve/wiki/rserve.conf
Expected behavior
SSE R Plugin establishes a TLS encrypted connection to Rserve
Actual behavior
SSE R Plugin console shows connection established to Rserve.
Error is displayed on console (apologies I don't have access to this presently can provide this error if necessary)
Environment
Operating system where the SSE plugin is deployed
Windows Server 2016
Qlik Sense
Server
Versions

sse-r-plugin: 1.2.1
Qlik Sense: February 2018
Operating system: Windows Server 2016
Rserve: 1.7-3

Hi, and sorry for a very late response.
The library/package we use for communicating between SSEToRserve and RServe , called RserveCLI2 (https://github.com/konne/RserveCLI2), does not have TLS support (not to my knowledge at least). Only username and password protection.
So one thing you could do is to ask them if they want to add TLS support in their lib.
Maybe you can protect the communication in another way or even run the SSEToRserve plugin on the same machine as the RServe process is running (only localhost communication).
You can also ask the community if they have some tips for you in the following slack channel: https://qlik-branch.slack.com/messages/C2J190P5M


nft does not  resolve scoped packages with subpath exports

I have a private package @myNamespace/package that has exports logging and errors defined in the package.json.
When using the package, you can import the logging or errors modules with require('@myNamespace/package/logging) and require(@myNamespace/package/errors).  This works as expected locally.
It looks like nft is looking for an npm module named @myNamespace/package/logging and not stripping off the trailing /logging

@microsoftly I attempted to replicate the case you described in https://github.com/guybedford/nft-scoped-replication-attempt but am unable to see this behaviour.
Can you perhaps take a look at that and let me know what changes are necessary to see the issue?


Brussel sprouts!

@ldecicco-USGS review?

reference: https://www.w3.org/TR/SVG/paths.html path w/ a specified for the arcs

OK, I didn't see your link when I made the line comment.
I'll merge...but I'd like do a bunch of putzing (of course...only if I can master whisker in the next hour...so probably won't actually putz). Others in the room liked it, I'd like to get some whitespace back though, it just seems really busy now.

Oh, @ldecicco-USGS I wasn't thinking those would all be "on" (visible) at the same time.

Gotcha, that makes more sense


Microservices data streaming and batch processing using Spring Cloud Data flow

Topic Suggestion
Microservices data streaming and batch processing using Spring Cloud Data flow
Writing sample(s):
Include any links or writing samples to help our team gauge your writing quality better.
Proposal Submission
Proposed title of the article
Your title should be descriptive of the article/tutorial. Be Specific.
Use keyword research to improve your article's SEO.
Proposed article introduction
Spring Boot Cloud Data flow provides a set of tools that makes it possible to create stream data pipelines and process large data sets in batches in a microservice architecture. In addition, Spring Boot Cloud Data flow makes it possible to build data pipelines between Spring Boot applications built with Spring Boot Cloud stream or Spring Boot Cloud task microservice architecture frameworks.
Spring Cloud Deployer enable the Spring Cloud Data flow server to deploy the data stream pipelines to data platforms such as cloud foundry or Kubernetes engine.
Spring Cloud Data flow provides a web-based dashboard that makes it easier to create data pipelines interactively and monitor them using monitoring tools like Prometheus.
Batch processing is collected for a given period or volume and then processed. This reduces resource usage. For example, if the application is deployed to the cloud, the batch processing service is scaled-down when not processing and scaled up when processing to reduce the cost of operation.
The article will explain how to build microservice applications using Spring Boot Cloud stream and build a data pipeline between the microservices applications. Finally, I will explain how to set up batch processing between the microservices.
Key takeaways

Building Microservice applications using Spring Cloud data stream.
Building data pipelines between microservice applications using Spring Cloud data flow.
Setting up batch processing in a Spring Cloud data flow microservice application.

Article quality
In most cases, tutorials always explain how to set up batch processing in monolith applications. Similarly, data streaming articles tend to explain the most common data streaming options available like the Apache Kafka and Nifi, leaving the other options supported by Spring Boot, such as Spring Cloud data flow, a little bit hard to implement some use cases.
References
Please list links to any published content/research you intend to use to support/guide this article.
N/A

@LinusMuema Can you check this topic suggestion? Thank you.

Hi @elizabeth962
Sorry for the delayed review.
The article description and key takeaways are well written and it shows the article would be of great value. However, on a google search of your topic, it seems we have official docs and YouTube videos explaining the same. Is there anything new your article offers to readers that isn't covered in said resources?

Hello @LinusMuema none of the articles list in the search explains on how to integrate Spring Cloud Deployer, Spring Cloud Dataflow and Cloud Foundry. In the article I will explain how to integrate the 3 to build a complete Data Streaming platform.

@elizabeth962 noted.

Hey! @LinusMuema  Is this topic suggestion approved?

Closing due to inactivity - can be reopened when article is ready to be linked.


Add FreeRTOS support for CH59x

Hi, this PR add the support for FreeRTOS in platformio-ch32v.
Added SDK here: https://github.com/Community-PIO-CH32V/framework-wch-freertos/pull/1

Merged and CI checked successfully!


Pass input by ref

to_string does not need to take the serialization input by value, changing it to pass by reference
aligns with how most other serde crates work.
Also adds a serde test that is an example of the use case that spurred this change.

The test will pass even without this change, because T: Serialize already implies &T: Serialize

That's a breaking change, I'll keep it in mind next time I feel like doing a breaking bump.


Create unittests with pytest for "risk" module

You can base yourself on the following if needed: https://github.com/Fernando-Urbano/efficient-frontier-regularization/blob/main/tests/test_portfolio.py
GenAI can be very useful for this: you can ask it to read the module and generate some tests, after, you should try to make the tests better. For instance, try to create a situation in which you know the answer and check if the function returns the correct answer. It is also useful to create unit tests for situations in which there should be a problem and the function should not work.
If you deem that some changes are necessary in the module of the functions, feel free to change it.

I have created a simulated returns dataframe that can be helpful. In this way, there is no need to get real data to do the tests:
https://github.com/Fernando-Urbano/portfolio-management/tree/main/tests/utils.py
I believe it is worth to use it, if needed :)


cleanup(deps): Remove unused fpe dependency and cleanup references

Motivation

When we removed unused orchard code we also remove our use of the fpe crate. However, we forgot to also remove this from Cargo.toml
Solution

This change removes fpe from Cargo.toml and also from the list of dependencies that should not be audited
Reviewer Checklist

[x] Will the PR name make sense to users?

[ ] Does it need extra CHANGELOG info? (new features, breaking changes, large changes)

[x] Are the PR labels correct?
[x] Does the code do what the ticket and PR says?
[x] How do you know it works? Does it have tests?

@mergifyio update

Why did this even fail?

Why did this even fail?

Can you please link to the error line in the failing job?

This looks like #5069, @gustavovalverde has asked us add a comment to that ticket linking to the error logs.

@mergifyio update


Scheduler: allow selecting multiple "Special Topics" lectures

For "Special Topics" lectures, change the radio buttons to checkboxes and allow selecting more than one.

The new Berkeleytime rewrite will address this issue.


Avoid no viable conversion warning in yabloc

Checklist

[X] I've read the contribution guidelines.
[X] I've searched other issues and no duplicate issues were found.
[X] I've agreed with the maintainers that I can plan this task.

Description
Clang-tidy warns yabloc with the following in 7 modules:
no viable conversion from 'yabloc::common::Color' to 'std_msgs::msg::ColorRGBA_<std::allocator<void>>'

or
no viable conversion from 'common::Color' to 'std_msgs::msg::ColorRGBA_<std::allocator<void>>'

https://github.com/autowarefoundation/autoware.universe/blob/6fe9fc648eaa3c1c36dc75fb8800212bd075bbfe/localization/yabloc/yabloc_particle_filter/src/common/particle_visualize_node.cpp#L96
https://github.com/autowarefoundation/autoware.universe/blob/6fe9fc648eaa3c1c36dc75fb8800212bd075bbfe/localization/yabloc/yabloc_particle_filter/src/common/visualize.cpp#L48
https://github.com/autowarefoundation/autoware.universe/blob/6fe9fc648eaa3c1c36dc75fb8800212bd075bbfe/localization/yabloc/yabloc_particle_filter/src/gnss_corrector/gnss_corrector_core.cpp#L139
https://github.com/autowarefoundation/autoware.universe/blob/6fe9fc648eaa3c1c36dc75fb8800212bd075bbfe/localization/yabloc/yabloc_pose_initializer/src/camera/marker_module.cpp#L45
https://github.com/autowarefoundation/autoware.universe/blob/6fe9fc648eaa3c1c36dc75fb8800212bd075bbfe/localization/yabloc/yabloc_common/src/ll2_decomposer/ll2_decomposer_core.cpp#L201
https://github.com/autowarefoundation/autoware.universe/blob/6fe9fc648eaa3c1c36dc75fb8800212bd075bbfe/localization/yabloc/yabloc_common/src/ll2_decomposer/ll2_decomposer_core.cpp#L231
https://github.com/autowarefoundation/autoware.universe/blob/6fe9fc648eaa3c1c36dc75fb8800212bd075bbfe/localization/yabloc/yabloc_particle_filter/src/ll2_cost_map/hierarchical_cost_map.cpp#L172

Could you fix the codes to avoid these warnings?
If possible, could you add proper assignees? I'm not sure who is responsible for them.
Purpose
To reduce clang-tidy CRITICAL level warnings
Possible approaches
nothing
Definition of done
The warnings are reduced

@veqcc Thank you for reporting the issue. I will try to fix it :+1:

@veqcc  I have fixed the warning by  https://github.com/autowarefoundation/autoware.universe/pull/7299


Can't reproduce pretraining results for Wav2vec2 using LibriSpeech recipe

Describe the bug
Hello, I am pretraining Wav2vec2 following the instructions on this page. The pretraining went very smoothly (thank you for that!!), however, when I compared the training logs with the one published here, I found that my model finished the 400K steps in only 25 epochs (used 8 A100 gpus) with lower accuray (~60%) as opposed to 700 epochs and accuracy of around 68% as in the example checkpoint. Also, my training finished within 2 days only which is confusing.
Expected behaviour
I expect similar training performance when looking at the training logs.
To Reproduce
Below is the training log for my model which is different from the example one here:
epoch: 1, steps: 18223, lr: 3.04e-04 - train loss: 2.13e+04 - valid loss: 2.37e+03, valid accuracy: 0.35966309905052185
epoch: 2, steps: 36446, lr: 4.51e-04 - train loss: 1.66e+04 - valid loss: 2.07e+03, valid accuracy: 0.4265761077404022
epoch: 3, steps: 54669, lr: 4.28e-04 - train loss: 1.53e+04 - valid loss: 1.91e+03, valid accuracy: 0.46357864141464233
epoch: 4, steps: 72892, lr: 4.05e-04 - train loss: 1.47e+04 - valid loss: 1.83e+03, valid accuracy: 0.485844224691391
epoch: 5, steps: 91115, lr: 3.83e-04 - train loss: 1.43e+04 - valid loss: 1.77e+03, valid accuracy: 0.4983205795288086
epoch: 6, steps: 109338, lr: 3.60e-04 - train loss: 1.39e+04 - valid loss: 1.73e+03, valid accuracy: 0.5098890066146851
epoch: 7, steps: 127561, lr: 3.38e-04 - train loss: 1.36e+04 - valid loss: 1.68e+03, valid accuracy: 0.5208209753036499
epoch: 8, steps: 145784, lr: 3.15e-04 - train loss: 1.33e+04 - valid loss: 1.63e+03, valid accuracy: 0.5316717028617859
epoch: 9, steps: 164007, lr: 2.93e-04 - train loss: 1.30e+04 - valid loss: 1.59e+03, valid accuracy: 0.5391503572463989
epoch: 10, steps: 182230, lr: 2.70e-04 - train loss: 1.26e+04 - valid loss: 1.56e+03, valid accuracy: 0.5474251508712769
epoch: 11, steps: 200453, lr: 2.47e-04 - train loss: 1.23e+04 - valid loss: 1.52e+03, valid accuracy: 0.5530011653900146
epoch: 12, steps: 218676, lr: 2.25e-04 - train loss: 1.21e+04 - valid loss: 1.49e+03, valid accuracy: 0.5636028051376343
epoch: 13, steps: 236899, lr: 2.02e-04 - train loss: 1.18e+04 - valid loss: 1.46e+03, valid accuracy: 0.5687620639801025
epoch: 14, steps: 255122, lr: 1.80e-04 - train loss: 1.17e+04 - valid loss: 1.45e+03, valid accuracy: 0.5734390020370483
epoch: 15, steps: 273345, lr: 1.57e-04 - train loss: 1.15e+04 - valid loss: 1.43e+03, valid accuracy: 0.5788331031799316
epoch: 16, steps: 291568, lr: 1.34e-04 - train loss: 1.13e+04 - valid loss: 1.42e+03, valid accuracy: 0.5822480916976929
epoch: 17, steps: 309791, lr: 1.12e-04 - train loss: 1.12e+04 - valid loss: 1.40e+03, valid accuracy: 0.586252748966217
epoch: 18, steps: 328014, lr: 8.92e-05 - train loss: 1.11e+04 - valid loss: 1.39e+03, valid accuracy: 0.5907050967216492
epoch: 19, steps: 346237, lr: 6.66e-05 - train loss: 1.10e+04 - valid loss: 1.37e+03, valid accuracy: 0.596407413482666
epoch: 20, steps: 364460, lr: 4.41e-05 - train loss: 1.08e+04 - valid loss: 1.36e+03, valid accuracy: 0.5983026623725891
epoch: 21, steps: 382683, lr: 2.15e-05 - train loss: 1.08e+04 - valid loss: 1.34e+03, valid accuracy: 0.6026105880737305
epoch: 22, steps: 400000, lr: 0.00e+00 - train loss: 1.07e+04 - valid loss: 1.34e+03, valid accuracy: 0.6060941815376282
epoch: 23, steps: 400000, lr: 0.00e+00 - train loss: 0.00e+00 - valid loss: 1.33e+03, valid accuracy: 0.6060227155685425
epoch: 24, steps: 400000, lr: 0.00e+00 - train loss: 0.00e+00 - valid loss: 1.33e+03, valid accuracy: 0.6051703691482544
epoch: 25, steps: 400000, lr: 0.00e+00 - train loss: 0.00e+00 - valid loss: 1.33e+03, valid accuracy: 0.6063333749771118
Environment Details
I am using python 3.11 and speechbrain 1.0
Relevant Log Output
No response
Additional Context
No response

Hello @GasserElbanna, thanks a lot for opening this issue!
Could you please @TParcollet and/or @salah-zaiem have a look? Thanks a lot :)

Hi, it's important that the total batch size corresponds to roughly 1.6h. By changing the gradient accumulation factor your can adjust this.

@Adel-Moumen i see that the gradient accumulation factor is missing on this recipe. Could you add it? (No need to PR imho push directly to develop).
@GasserElbanna have a look at any other yaml for asr in the libri folder, you will find the gradient accumulation factor param. Just copy and past it in this yaml, anywhere. Then play with grad accum / max batch len to make sure that you have 1.2-1.6h of speech per batch. Grad_accum * max_batch_len * nb gpu = 1.6h.
Also, your A100 must certainly be able to accommodate more than 200s.

@Adel-Moumen i see that the gradient accumulation factor is missing on this recipe. Could you add it? (No need to PR imho push directly to develop).

Why would it be missing? By default, grad_accumulation_factor is set to 1 (see: https://github.com/speechbrain/speechbrain/blob/develop/speechbrain/core.py#L84). The var is called in each fit_batch call (see: https://github.com/speechbrain/speechbrain/blob/develop/speechbrain/core.py#L1199). As grad_accumulation_factor can also be set through a flag (see: https://github.com/speechbrain/speechbrain/blob/develop/speechbrain/core.py#L422-L426) the recipe is technically not missing from this feature. You just need to play with --grad_accumulation_factor=N where N is the grad acc steps.

Hi, thanks @TParcollet for the explanation, it's clearer now.
Thanks @Adel-Moumen for pointing out the flag.
I am currently pretraining with --grad_accumulation_factor=2 and max_batch_length=400 on 8 gpus yielding 2 * 400 * 8 = 6400 (~1.8h).
Here's the logs for the first epoch:
epoch: 1, steps: 4611, lr: 7.68e-05 - train loss: 4.84e+04 - valid loss: 2.86e+03, valid accuracy: 0.26230588555336

Hi, thanks @TParcollet for the explanation, it's clearer now. Thanks @Adel-Moumen for pointing out the flag.
I am currently pretraining with --grad_accumulation_factor=2 and max_batch_length=400 on 8 gpus yielding 2 * 400 * 8 = 6400 (~1.8h).
Here's the logs for the first epoch: epoch: 1, steps: 4611, lr: 7.68e-05 - train loss: 4.84e+04 - valid loss: 2.86e+03, valid accuracy: 0.26230588555336

Seems to be similar to our model checkpoint. Note that now you have done during your first epoch "only" 4611 steps meaning that the training will go for much longer. I do expect that you'll get better results.
BTW, are you using --precision=fp16 for the pre-training?

BTW, are you using --precision=fp16 for the pre-training?

I am using fp32 now.

fp16 or bf16 would make the training much faster if you have a compatible GPU.

Hi @TParcollet @Adel-Moumen, I am just following up with an issue posted here related to training Wav2Vec 2.0 with multiple GPUs using torchrun. I was wondering if you have any inputs.


Start using babel-plugin-external-helpers

Adresses https://github.com/Daniel15/babel-standalone/issues/61. @Daniel15 what do you think?

Sounds good to me. Thanks!


Feautre/ovmtypes

After merged : shttps://github.com/staketechnologies/Plasm/pull/172

todo: publish the updated package to NPM after merge


support for :extra-namespaces

This adds support for an :extra-namespaces option for dev-launcher/start.
TODO: support :extra-namespaces in release builds

One thing I'm only now realising that will need fixing still is the viewer resource hashing, e.g.
https://github.com/nextjournal/clerk/blob/cda88db3944820f6c2800d7ce11a95b27ef5572f/bb/viewer_resources_hashing.clj#L27
The purpose of this is generating a hash under which to look up the built js bundle and only triggering a build when needed. Maybe we can also simplify things by using the git sha as a lookup key and always run the js build, it only takes ~20s on my air.
Also bb release:js seems to error for me:
bb release:js
yarn install v1.22.19
[1/4] 🔍  Resolving packages...
success Already up-to-date.
✨  Done in 0.07s.
Checking out: https://github.com/babashka/sci.configs.git at b5335b79c237344d003f16358321197a0b0a2ac6
Execution error (NullPointerException) at clojure.main/main (main.java:40).
Cannot invoke "clojure.lang.IFn.applyTo(clojure.lang.ISeq)" because "f" is null

Full report at:
/var/folders/bn/d52n4q5j577gm8mw0c47s6900000gn/T/clojure-611168137127363888.edn
Error while executing task: build:js

Getting this failure locally after the merge on bb dev:
FileNotFoundException: /js/cljs-runtime/cljs_env.js (No such file or directory)
	java.io.FileOutputStream.open0 (FileOutputStream.java:-2)
	java.io.FileOutputStream.open (FileOutputStream.java:293)
	java.io.FileOutputStream.<init> (FileOutputStream.java:235)
	clojure.java.io/fn--11522 (io.clj:230)
	clojure.java.io/fn--11522 (io.clj:230)
	clojure.java.io/fn--11459/G--11428--11466 (io.clj:69)
	clojure.java.io/fn--11496 (io.clj:166)
	clojure.java.io/fn--11496 (io.clj:166)
	clojure.java.io/fn--11472/G--11424--11479 (io.clj:69)
	clojure.java.io/writer (io.clj:119)
	clojure.java.io/writer (io.clj:104)
	clojure.core/apply (core.clj:669)
	clojure.core/spit (core.clj:6956)
	clojure.core/spit (core.clj:6956)
	shadow.build.targets.esm/flush-dev/fn--36704 (esm.clj:415)
	shadow.build.targets.esm/flush-dev (esm.clj:410)
	shadow.build.targets.esm/flush-dev (esm.clj:406)
	shadow.build.targets.esm/process (esm.clj:530)
	shadow.build.targets.esm/process (esm.clj:511)
	clojure.lang.Var.invoke (Var.java:384)
	shadow.build/process-stage/fn--17445 (build.clj:163)
	shadow.build/process-stage (build.clj:160)
	shadow.build/process-stage (build.clj:152)
	shadow.build/flush (build.clj:543)
	shadow.build/flush (build.clj:537)
	shadow.cljs.devtools.server.worker.impl/build-compile (impl.clj:369)
	shadow.cljs.devtools.server.worker.impl/build-compile (impl.clj:349)
	shadow.cljs.devtools.server.worker.impl/eval19004/fn--19006 (impl.clj:448)
	clojure.lang.MultiFn.invoke (MultiFn.java:234)
	shadow.cljs.devtools.server.util/server-thread/fn--18762/fn--18763/fn--18771 (util.clj:283)
	shadow.cljs.devtools.server.util/server-thread/fn--18762/fn--18763 (util.clj:282)
	shadow.cljs.devtools.server.util/server-thread/fn--18762 (util.clj:255)
	java.lang.Thread.run (Thread.java:833)

I'm experimenting with this for local development and it seems great.
It looks like shadow-cljs has its file watcher enabled when this command runs: https://github.com/mhuebert/inside-out/blob/main/dev/user.clj#L11-L16
what files does this watch? If I add some entry to :extra-namespaces that depends on code in src, say, will shadow recompile when it sees changes there?
I THINK what happened before was that shadow watched :src-paths. here does it only watch extra-namespaces? It might be great to take filepaths or globs to watch so that I can do development against a local copy of a cljs library, for example.

what files does this watch? If I add some entry to :extra-namespaces that depends on code in src, say, will shadow recompile when it sees changes there?

AFAIK when used in embedded mode, shadow will use the classpath of your running JVM instance, so it respects whatever sources you've put in your own deps.edn, and shadow then watches files based on crawling the module-entries (where your :extra-namespaces are added).

so that I can do development against a local copy of a cljs library

for inside-out I was doing this with an extra alias that would add a local copy of this repo:
https://github.com/mhuebert/inside-out/blob/2f1cc36b343fa3b0f2531ce6799c3f1319b81c35/deps.edn#L21

Getting this failure locally after the merge on bb dev:

Fixed in f18afd7.
Breaking change: renamed release! to release.
@mk re: structure, I moved the viewer build into nextjournal.clerk.builder.cljs and put both release + watch there, & left the dev-launcher ns for compatibility.

This has been supported by the :cljs-namespaces option in https://github.com/mentat-collective/clerk-utils, see https://clerk-utils.mentat.org/#static-build.


[GLUTEN-2498] Remove FileScan in HiveTableScanExecTransformer

What changes were proposed in this pull request?
Currently, We  use CatalogFileIndex to list files, it eventually use InMemoryFileIndex which could create spark job. It is much slower than vanilla spark's implemation which uses FileInputFormat.getSplits()
This PR simulates  FileInputFormat.getSplits(),  but only use one thread. We can support mutiple threads latter.
(Fixes: #2498)
How was this patch tested?


Missing k2

Current the DB is missing a table entry. This is needed for the titanomagnetite models

Requested K values have been added to the database.


Issue #25, dont warn if file is missing

Only audit if file exists, inform if it doesn't
https://github.com/docker/docker-bench-security/issues/25#issuecomment-110942967
Signed-off-by: Thomas Sjögren<EMAIL_ADDRESS>

@diogomonica, ah yes. I missed to update the instructions. OK if I fix or what's your take on the file/dir existence checks?
@ajohnstone, I think that's overly complicated compared to just adding another volume. And you're right about the function, and there's probably more places with duplicated code that can be refactored.

@konstruktoid if you fix the instructions I think it will be fine.
The only other problem is that there seems to be no package for auditctl in Alpine linux, so you can't really run "auditctl" inside of the container.

Looks like we would not be able to merge this PR because of merge conflicts. Please rebase, fix conflicts, and force push to your branch.


Validation stops after it said it's valid number

Hi there,
I have one issue with phone numbers which are longer for example Serbian numbers if we have number like
+381642000901 plugin said  that number +38164200090 is valid and it cut off anything at the end in this case it's number 1,
Is there a way to somehow allow longer number formats?
I'm using most recent version of plugin.

this seems to be same experience as https://github.com/iamstevendao/vue-tel-input/issues/393


Don't close on enter

Writing a function with multi-line parameters, pressing enter always closes the signature preview, forcing me to re-open it. Is there a way to unmap Return from closing the preview?

facing the same issue, anyone have any insight?


Primitive tests

Support tests about Primitive:

[x] BodyBoolean
[ ] BodyByte
[ ] BodyDate
[ ] BodyDateTime
[x] BodyDateTimeRfc1123
[x] BodyDuration
[x] BodyInteger
[x] BodyNumber
[ ] BodyString
[ ] Header
[ ] Http
[ ] Url
[ ] UrlMultiCollectionFormat

Http blocked by https://github.com/Azure/autorest.modelerfour/issues/59

Url blocked by https://github.com/Azure/autorest.modelerfour/issues/60

BodyByte blocked by https://github.com/Azure/autorest.modelerfour/issues/63

BodyString blocked by https://github.com/Azure/autorest.modelerfour/issues/64

All passing now


KCL: Ability to reuse variable names in different scopes

Variables declared within a specific scope should be considered independent of variables with the same name in different scopes. Therefore a variable declared inside a function should not conflict with a variable of the same name defined outside the function.
Currently, this is not valid KCL:
fn rect = (x, y, w, h) => {
  startSketchOn('XY')
    |> startProfileAt([x, y], %)
    |> xLine(w, %)
    |> yLine(h, %)
    |> xLine(-w, %)
    |> close(%)
}

fn two_rects = (x, y, w, h, p) => {
  rect(x, y, w, h)
  rect(x + w + p, y, w, h)
}

So I have to do this:
fn rect = (x1, y1, w1, h1) => {
  startSketchOn('XY')
    |> startProfileAt([x1, y1], %)
    |> xLine(w1, %)
    |> yLine(h1, %)
    |> xLine(-w1, %)
    |> close(%)
}

fn two_rects = (x, y, w, h, p) => {
  rect(x, y, w, h)
  rect(x + w + p, y, w, h)
}

dupe of https://github.com/KittyCAD/modeling-app/issues/1285


Gumchu girl

New Port for { GUMCHU GIRL }
Game Information

Title: { GUMCHU GIRL }
URL: { https://caseportman.itch.io/gumchu-girl-demo }

Submission Requirements
CFW Tests
Ensure your game has been tested on all major CFWs:

[x] AmberELEC
[x] ArkOS
[x] ROCKNIX
[x] muOS

Resolution Tests
Test all major resolutions:

[x] 480x320
[x] 640x480
[x] 720x720 (RGB30)
[x] Higher resolutions (e.g., 1280x720)

File Structure

Your port should have the following structure:

portname/

port.json
README.md
screenshot.jpg
cover.jpg
gameinfo.xml
Port Name.sh
portname/

Additional Resources
For an in-depth guide on creating a pull request, refer to: PortMaster Game Packaging Guide

Closing to fix it. Will reopen soon


check/pylint sometimes doesn't check imports

An unused import (Optional) passed CI here: https://github.com/quantumlib/Cirq/blame/master/cirq/ops/pauli_gates.py#L15
Now I'm getting an error for that on Travis: https://travis-ci.com/quantumlib/Cirq/jobs/225990740#L253
When I run pylint locally, I don't catch this or other import errors.  This has happened during my last few PRs: https://travis-ci.com/quantumlib/Cirq/jobs/225990740#L251
I updated my local pylint to pylint==2.3.1, astroid==2.1.0 and still don't get the errors that Travis shows.
Can anyone else reproduce this?

Could it be that the errors have nothing to do with the unused import? What you linked has
cirq/optimizers/eject_phased_paulis_test.py:42:0: C0301: Line too long (83/80) (line-too-long)

cirq/optimizers/eject_phased_paulis_test.py:18:0: C0411: third party import "import numpy as np" should be placed before "import sympy" (wrong-import-order)

Alongside the unused import error.

The same thing happened in #1963 (last commit on Apr 15).  I got an unused import error on Travis but no errors locally.

I just ran your cduck:eject-pauli branch localy on my machine and i received lots on unsued imports.
vtomole@vtomole:~/Cirq$ check/pylint
************* Module cirq.neutral_atoms.neutral_atom_devices
cirq/neutral_atoms/neutral_atom_devices.py:18:0: W0611: Unused DefaultDict imported from typing (unused-import)
************* Module cirq.optimizers.eject_z
cirq/optimizers/eject_z.py:17:0: W0611: Unused Dict imported from typing (unused-import)
cirq/optimizers/eject_z.py:17:0: W0611: Unused List imported from typing (unused-import)
cirq/optimizers/eject_z.py:17:0: W0611: Unused Tuple imported from typing (unused-import)
************* Module cirq.work.pauli_sum_collector
cirq/work/pauli_sum_collector.py:16:0: W0611: Unused MutableMapping imported from typing (unused-import)
************* Module cirq.value.linear_dict
cirq/value/linear_dict.py:17:0: W0611: Unused Dict imported from typing (unused-import)
************* Module cirq.sim.simulator
cirq/sim/simulator.py:30:0: W0611: Unused Hashable imported from typing (unused-import)
cirq/sim/simulator.py:30:0: W0611: Unused Tuple imported from typing (unused-import)
************* Module cirq.sim.wave_function_simulator
cirq/sim/wave_function_simulator.py:19:0: W0611: Unused Hashable imported from typing (unused-import)
************* Module cirq.ops.linear_combinations
cirq/ops/linear_combinations.py:15:0: W0611: Unused DefaultDict imported from typing (unused-import)
************* Module cirq.ops.op_tree
cirq/ops/op_tree.py:20:0: W0611: Unused Dict imported from typing (unused-import)
************* Module cirq.ops.pauli_gates
cirq/ops/pauli_gates.py:15:0: W0611: Unused Optional imported from typing (unused-import)
************* Module cirq.experiments.qubit_characterizations
cirq/experiments/qubit_characterizations.py:8:0: W0611: Unused Axes3D imported from mpl_toolkits.mplot3d (unused-import)
************* Module cirq.google.serializable_gate_set
cirq/google/serializable_gate_set.py:18:0: W0611: Unused List imported from typing (unused-import)
cirq/google/serializable_gate_set.py:18:0: W0611: Unused Type imported from typing (unused-import)
************* Module cirq.google.engine.engine
cirq/google/engine/engine.py:33:0: W0611: Unused Tuple imported from typing (unused-import)
************* Module cirq.protocols.has_unitary
cirq/protocols/has_unitary.py:15:0: W0611: Unused Dict imported from typing (unused-import)
************* Module cirq.contrib.acquaintance.optimizers
cirq/contrib/acquaintance/optimizers.py:15:0: W0611: Unused FrozenSet imported from typing (unused-import)
cirq/contrib/acquaintance/optimizers.py:15:0: W0611: Unused List imported from typing (unused-import)
cirq/contrib/acquaintance/optimizers.py:15:0: W0611: Unused Set imported from typing (unused-import)
************* Module cirq.contrib.acquaintance.executor
cirq/contrib/acquaintance/executor.py:15:0: W0611: Unused List imported from typing (unused-import)
************* Module cirq.contrib.qasm_import._parser
cirq/contrib/qasm_import/_parser.py:16:0: W0611: Unused Dict imported from typing (unused-import)
cirq/contrib/qasm_import/_parser.py:16:0: W0611: Unused Optional imported from typing (unused-import)
************* Module cirq.contrib.paulistring.convert_to_pauli_string_phasors
cirq/contrib/paulistring/convert_to_pauli_string_phasors.py:15:0: W0611: Unused List imported from typing (unused-import)
************* Module cirq.vis.heatmap
cirq/vis/heatmap.py:29:0: W0611: Unused List imported from typing (unused-import)

I also have pylint==2.3.1, astroid==2.1.0. I always get these but i ignore them and they pass on Travis.

At least some of those are imports only used in a type comment.  The latest pylint version should handle that.

We are on the latest version on pylint, what we are not on the lastest version of is astroid because this bug has not been fixed https://github.com/PyCQA/astroid/issues/650.

This is growing stale and we probably need someone to repo again to make progress.

I still notice pylint checks returning more results on my machine than in ci.

I noticed that the pylintrc has a weird configuration - it used [config] instead of [MASTER] section - not sure how it was working at all - I think we were running pylint with default settings everywhere.
https://github.com/quantumlib/Cirq/pull/3387 is fixing this + upgrades to the latest pylint.
I believe that #3387 should fix this issue.


GA release

[Enter feedback here]
Hi,  When can we expect GA release for this API since the current 1.0 version does not provide the 'isPrivileged=true' flag in JSON response.
Thank you.

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

ID: 99f1ee9b-84ea-c3ea-c0cf-85e29af8eefe
Version Independent ID: 8825363c-e462-5503-0ba5-d83698251af4
Content: List roleDefinitions - Microsoft Graph beta
Content Source: api-reference/beta/api/rbacapplication-list-roledefinitions.md
Product: directory-management
Technology: microsoft-graph
GitHub Login: @DougKirschner
Microsoft Alias: MSGraphDocsVteam

Thank you @medhabhatt for asking this question. Unfortunately, we don't have an ETA for general availability of the privileged roles feature. You can monitor the Microsoft Graph changelog for updates to the feature. Closing this issue here because it's not a doc-related issue.


error using mime.load(path.join(__dirname, 'types/mime.types'));

I noticed this pattern in a node module -
mime.load(path.join(__dirname, 'types/mime.types'));
Is there an easy fix I can recommend?
Thanks.

Can you provide more information? Based on the code I would say it's trying to do something with the file system. It might be hard to get that working in the browser.


Support team-stack permissions

Hello!

Vote on this issue by adding a 👍 reaction
If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling, etc.)

Issue details
@MitchellGerdisch commented on the initial request to create the pulumi service provider to add team-stack permissions:

The provider should support team-stack permissions assignment management

https://github.com/pulumi/service-requests/issues/18#issuecomment-1017599144

Hello,
I will be interested to implement this feature :)


As a User I want to see the dashboard So i can use the dashboard

HashaniPabasara text

@snpla test this


Diplomat incite revolt

Add support for diplomat inciting a revolt
Fix background on bribe menu

Thank you for your contribution. The code looks perfect.


[DOC BUG] Fix doc about pretrain model setting

Motivation
I follow the doc to set the pretrain  model will get this error
TypeError: init_cfg={'type': 'Pretrained', 'checkpoint': 'https://download.openmmlab.com/mmclassification/v0/resnet/resnet50_8xb32_in1k_20210831-ea4938fc.pth', 'prefix': 'backbone'} in child config cannot inherit from base because init_cfg is a dict in the child config but is of type <class 'list'> in base config. You may set `_delete_=True` to ignore the base config.

Modification
Fix the doc about pretrain model setting
Checklist
Before PR:

[x] Pre-commit or other linting tools are used to fix the potential lint issues.
[x] Bug fixes are fully covered by unit tests, the case that causes the bug should be added in the unit tests.
[x] The modification is covered by complete unit tests. If not, please add more unit test to ensure the correctness.
[x] The documentation has been modified accordingly, like docstring or example tutorials.

After PR:

[x] If the modification has potential influence on downstream or other related projects, this PR should be tested with those projects, like MMDet or MMSeg.
[x] CLA has been signed and all committers have signed the CLA in this PR.

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

Hi @mzr1996 , pls take a look 😄

Is it a bug? I think the init_cfg should accept both dict and list of dict.

Oh I think I know why, cuz the init_cfg of my training model config is a list, so if I don't add it in a list then I will got this error. Should I add some note in the tutorial doc?

Oh I think I know why, cuz the init_cfg of my training model config is a list, so if I don't add it in a list then I will got this error. Should I add some note in the tutorial doc?

I think you can try to add _delete_=True in your init_cfg. Because the inherited config may have some unexpected keys.


Wondering if you can help debugging with WebStorm?

Wondering if you can help debugging with WebStorm?
As per WebStorm they require that we debug against a dist directory as specified in: https://blog.jetbrains.com/webstorm/2015/09/debugging-webpack-applications-in-webstorm/
however, as per your scripts, when running webpack-dev-server, it is all in memory as in:
"server": "webpack-dev-server --inline --progress --colors --display-error-details --display-cached --hot --port=3000",

is it possible to run webpack-dev-server in a dist directory so we can have source maps so we can insert into WebStorm mapping for debugging?
tx
Sean

Yes it's possible, you should use the npm run watch command, it will output files in the dist folder and you have to use your own local server (like live-server for example)

tx will give it a shot!


[BUG]  loading feedback lacks during iCloud synchronization image loading

Version information (版本信息)

Device: All devices.
OS: iOS
Package Version: Til newest
Flutter Version: Til newest

Is your feature request related to a problem?  (功能是否与已有问题关联)
No
Describe the solution you'd like (描述你期望的解决方案)
loading feedback lacks during iCloud synchronization image loading
Describe alternatives you've considered (其他解决方案或疑虑)
loading feedback lacks during iCloud synchronization image loading
Additional context (附加内容)
nil,I will figure it out,and make pull request later.

内容与模板不符，请按照 #28 提出issue。


Change enum syntax

When Ash changed the function call syntax to C-style function calls, he forgot to do the same to enum variants in enum declarations and patterns. We should probably change that:
type maybe[t] =
	| none
	| yes(t)

type myType = new(str, int, float)

// Enum pattern can be used here because there's only one variant
let new(a, b, c) = new("hi", 3, 3.14)

if let yes(value) = yes("sir") {
  assert value value == "sir"
}

To clarify, you can't do let new(a)(b, c) =. For now you also can't do let new(..tuple) = to get a tuple from the fields, though maybe that can be added in the future
Also, I think we probably should just prohibit doing if let <none> = ... { since it's pretty useless and Yoda-like (the better way would be to do if ... == none {). This is because if let none = ... { should probably be true all the time (assigning the value to a new variable named none will always succeed), and if let none() = ... { would be a bit misleading since you can't do none() to create a maybe value


Fixes #1376 new error on multivalued vs. derived

This PR is actually from changes made by @Emmacho
Add new error 83 when creating a derived attribute that is also flagged as being a list.

The core of PR has passed. Waiting for @Emmacho to add a user manual page before merging to fix #1376


[8.x] Fix registering and renaming custom Doctrine columns

Summary
This PR ensures that custom Doctrine types and their mappings are registered properly, to make it possible to rename database columns using them with Laravel's $blueprint->renameColumn() method.
Instead of Type::addType(), it uses Schema::registerCustomDoctrineType() to register custom Doctrine types, which calls Type::addType() internally but additionally registers the type "mapping."
Fixes #39682.
Background
The documentation on Modifying Columns demonstrates how to add custom Doctrine types in config/database.php:
use Illuminate\Database\DBAL\TimestampType;

'dbal' => [
    'types' => [
        'timestamp' => TimestampType::class,
    ],
],

However the code that registers these types with Doctrine, in the DatabaseServiceProvider, registers just the "types" but not the "type mappings", so columns using custom types registered in this way still can't be renamed with Laravel's ->renameColumn() method.
When the ability to use custom types like this was originally added to Laravel it actually used Schema::registerCustomDoctrineType() and wouldn't have had this issue, but then it was changed to just register the type directly (see https://github.com/laravel/framework/commit/382445f8487de45a05ebe121837f917b92560a97#diff-6122e442c6d761f6a9c1cfcc5f14af3306fccea75d8eb94fecbd399660e72c54).
The existing test for this behaviour actually still just calls Schema::registerCustomDoctrineType() directly.
Testing

The test only runs on Postgres because Postgres's xml type was the simplest one I could find that wasn't already built into Laravel.
I'm overriding resolveApplicationConfiguration() because that was the only way I could figure out how to set configuration values before Laravel's core service providers are registered, if there's a better way to do this I'm all ears!
Test run showing failing test: https://github.com/bakerkretzmar/framework/runs/4247267107?check_suite_focus=true#step:6:24
Test run showing passing test after changes in this PR: https://github.com/bakerkretzmar/framework/actions/runs/1474946027

Ping @TomHAnderson can you check in on this since you did the original changes in https://github.com/laravel/framework/commit/382445f8487de45a05ebe121837f917b92560a97#diff-6122e442c6d761f6a9c1cfcc5f14af3306fccea75d8eb94fecbd399660e72c54

This whole feature (before your PR) seems pretty half baked to me. I probably shouldn't have merged it. This PR also only calls this method on the default database connection. What if you need to do this logic on other connections?

Honestly I suggest just doing whatever you need to do in your own service provider. I don't really think this should be a framework feature we spend time on.

@bakerkretzmar When I created these type registrations the intent was to solve the problem of being completely unable to rename a datetime column.  I took  into consideration other types, specifically enum which is why I created the config mapping instead of just fixing the datetime changes.
I used the Type::addType because it was the simplest/smallest way to implement the fix I was targeting.  I think your proposal here to change to registerCustomDoctrineType is a good change.  I think in order to put forward that change you'll have to provide better unit tests including MySQL specific ones.


corrected smarti result handling in the widget

Summary
Closes #265

Please don't merge at this point of time.


Fix vue warn htmlText

Issue:
When using #noResultsInfo template the console is flooded with vue warn errors.

Defining to resolve.

@P3rk1ns I'll merge it, but I was wondering: Should we then also define htmlText as a prop on its parent component?


MNIST example

Put together a MNIST example for keras-vis here: https://gist.github.com/agodatt/70cb02b7172ffe2ed36020f5787daf18 , but I am not getting intuitive results. Could you point out why this is not working? Thanks!

I added notebooks for MNIST in examples/ using your network architecture. Hope that clarifies how to debug such issues.
Feel free to reopen if you have more questions.


Feature/demo page

Adds a demo page showcasing the various components using https://github.com/rpominov/react-demo
@learykara @ripleyaffect check it! script/bootstrap and then hit :5029

lookin' good. few comments, mostly :+1:

@tholex let me know if you want this deployed somewhere?

@diezguerra As cool as it is, I don't think we need to deploy it... maybe it could replace styleguide.thinkful.com by copy-pasting the templates from there (part of the reason I did this in ejs). The main benefit is just being able to see and play w/ the ui element without hacking node_modules in another app...

I'll send another PR to fill in the Loader shortly, don't wanna pry it out of this PR.


Remove gulp-load-plugins dependency

Simplify the gulpfile by removing gulp-load-plugins dependency. Some
whitespace cleanup and formatting to match normal NPM conventions.

https://travis-ci.org/roots/sage/jobs/60721031#L264

+1 for removing gulp-load-plugins dependency but I'm a fan of the space-alignment personally - seems much more readable.

https://github.com/joemaller/sage/pull/1

:dart:

squash then looks good to go!

:point_right:  :red_circle:

squashed!

tyvm!

:tada:


[T3A3][W09-A1] Cai Deshun

Ready for review.

Good effort @unusep
Some comments added. Please close the PR after reading comments.


Not working with HX8357

Initialization appears to be fine. It will draw fine if I set the display with to 320. It doesn't like it when I set the display to a width of 480. It won't draw at all. Setting it to a width of 400 causes a diagonal line to appear, so the issue is likely in the code that draws to the display itself, but possibly in the tilegrid drawing function.

Ok, the issue is definitely in the display drawing code. I saved the buffer to disk using pillow and the image appears like it should on the display. I think I understand the nature of the issue better. It's likely due to an off by one error.


Clean up the skeleton

I have:

[x] Based work on latest develop branch
[x] Looked for lint in my changes with hlint . (lint found code you did not write can be left alone)
[ ] Run the test suite: $(nix-build -A selftest --no-out-link)
[ ] (Optional) Run CI tests locally: nix-build release.nix -A build.x86_64-linux --no-out-link (or x86_64-darwin on macOS)

@3noch Why was skeleton/shell.nix removed?


[BEAM-6627] Add size reporting to JdbcIOIT

I added size checking to JdbcIOIT only for PostgreSQL because the test is based on this dialect and I don't think adding more makes sense.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Choose reviewer(s) and mention them in a comment (R: @username).
[x] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

R: @lgajowy wdyt?

@lgajowy WDYT now? I changed the methods to use Optional - it really helped, thanks!

Run Java JdbcIO Performance Test


[Addition]:  Bobcatcluster is trying to fool us

Hotspot b58 Addresses
112gmDp7PAdnD66TczPtMevy85m46hpRyVELLvJyCDbXQfirFDio
Discord Handle
No response
Reason(s)
Same manufacturer

Needs more data. The hotspot listed has been offline for 4 days. Additional hotspots in the owner's wallets seem to not be witnessing.


are there some methods to prevent  support RecyclerView?

always, this feature is useful, however, sometimes it makes some difficulties. For example, if one <cell> has more than 30 images (or other things be added by ajax), it may be rerendered when it reenters to visual area, then it will make the page be blocked in a short time.

I will close this issue as it seems like solved. Feel free to reopen if there is still problem.


Make CodeCoverage configuration build portable PDBs

PR Summary
Change the PDB style of the CodeCoverage configuration to portable.
PR Context
We will be using Coverlet for colllection code coverage data. It needs portable PDBs.
PR Checklist

[x] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[x] Change is not breaking
[x] Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[x] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.

User-facing changes

[x] Not Applicable
OR
[ ] Documentation needed

[ ] Issue filed:

Testing - New and feature

[x] N/A or can only be tested interactively
OR
[ ] Make sure you've added a new test if existing tests do not effectively test the code changed

@adityapatwardhan, your last commit had 4 failures in PowerShell-CI-macos
Open a text file with NativeCommandProcessor.Should open text file without error
Expected 1, but got 0.
at <ScriptBlock>, /Users/vsts/agent/2.149.2/work/1/s/test/powershell/Language/Scripting/NativeExecution/NativeCommandProcessor.Tests.ps1: line 200
200:             $afterCount | Should -Be ($beforeCount + 1)

Invoke-Item basic tests.Invoke a text file on Unix.Should invoke text file '/tmp/62be541a-70ce-4343-b460-b65a5c4e6a47/text1.txt' without error on Mac
Expected 1, but got 0.
at <ScriptBlock>, /Users/vsts/agent/2.149.2/work/1/s/test/powershell/Modules/Microsoft.PowerShell.Utility/Invoke-Item.Tests.ps1: line 48
48:             $afterCount | Should -Be ($beforeCount + 1)

Invoke-Item basic tests.Invoke a text file on Unix.Should invoke text file '/tmp/62be541a-70ce-4343-b460-b65a5c4e6a47/My Folder/text2.txt' without error on Mac
Expected 1, but got 0.
at <ScriptBlock>, /Users/vsts/agent/2.149.2/work/1/s/test/powershell/Modules/Microsoft.PowerShell.Utility/Invoke-Item.Tests.ps1: line 48
48:             $afterCount | Should -Be ($beforeCount + 1)

Invoke-Item basic tests.Invoke a folder.Should invoke a folder without error
Expected 1, but got 0.
at <ScriptBlock>, /Users/vsts/agent/2.149.2/work/1/s/test/powershell/Modules/Microsoft.PowerShell.Utility/Invoke-Item.Tests.ps1: line 165
165:                 $afterCount | Should -Be ($beforeCount + 1)

@adityapatwardhan, your last commit had 4 failures in PowerShell-CI-macos
Open a text file with NativeCommandProcessor.Should open text file without error
Expected 1, but got 0.
at <ScriptBlock>, /Users/vsts/agent/2.149.2/work/1/s/test/powershell/Language/Scripting/NativeExecution/NativeCommandProcessor.Tests.ps1: line 200
200:             $afterCount | Should -Be ($beforeCount + 1)

Invoke-Item basic tests.Invoke a text file on Unix.Should invoke text file '/tmp/f36b7fca-489b-4cc6-9899-996779edce28/text1.txt' without error on Mac
Expected 1, but got 0.
at <ScriptBlock>, /Users/vsts/agent/2.149.2/work/1/s/test/powershell/Modules/Microsoft.PowerShell.Utility/Invoke-Item.Tests.ps1: line 48
48:             $afterCount | Should -Be ($beforeCount + 1)

Invoke-Item basic tests.Invoke a text file on Unix.Should invoke text file '/tmp/f36b7fca-489b-4cc6-9899-996779edce28/My Folder/text2.txt' without error on Mac
Expected 1, but got 0.
at <ScriptBlock>, /Users/vsts/agent/2.149.2/work/1/s/test/powershell/Modules/Microsoft.PowerShell.Utility/Invoke-Item.Tests.ps1: line 48
48:             $afterCount | Should -Be ($beforeCount + 1)

Invoke-Item basic tests.Invoke a folder.Should invoke a folder without error
Expected 1, but got 0.
at <ScriptBlock>, /Users/vsts/agent/2.149.2/work/1/s/test/powershell/Modules/Microsoft.PowerShell.Utility/Invoke-Item.Tests.ps1: line 165
165:                 $afterCount | Should -Be ($beforeCount + 1)


error when run run.sh stage of train llm

env:
win11 + wsl2 + ubuntu22.04
log:
2024-07-14 10:15:10,023 DEBUG TRAIN Batch 0/49100 loss 1.675823 acc 0.226168 lr 0.00031911 grad_norm 3.311060 rank 0
WARNING:torch.distributed.elastic.rendezvous.dynamic_rendezvous:The node 'CA-ITX._27453_0' has failed to send a keep-alive heartbeat to the rendezvous '1986' due to an error of type RendezvousTimeoutError.
Traceback (most recent call last):
File "/root/cosyvoice_git/examples/libritts/cosyvoice/cosyvoice/bin/train.py", line 136, in
main()
File "/usr/local/lib/python3.10/dist-packages/torch/distributed/elastic/multiprocessing/errors/init.py", line 346, in wrapper
return f(*args, **kwargs)
File "/root/cosyvoice_git/examples/libritts/cosyvoice/cosyvoice/bin/train.py", line 132, in main
executor.train_one_epoc(model, optimizer, scheduler, train_data_loader, cv_data_loader, writer, info_dict, group_join)
File "/root/cosyvoice_git/cosyvoice/utils/executor.py", line 68, in train_one_epoc
info_dict = batch_backward(model, info_dict)
File "/root/cosyvoice_git/cosyvoice/utils/train_utils.py", line 222, in batch_backward
scaled_loss.backward()
File "/usr/local/lib/python3.10/dist-packages/torch/_tensor.py", line 487, in backward
torch.autograd.backward(
File "/usr/local/lib/python3.10/dist-packages/torch/autograd/init.py", line 200, in backward
Variable._execution_engine.run_backward(  # Calls into the C++ engine to run the backward pass
File "/usr/local/lib/python3.10/dist-packages/torch/utils/data/_utils/signal_handling.py", line 66, in handler
_error_if_any_worker_fails()
RuntimeError: DataLoader worker (pid 27567) is killed by signal: Killed.
2024-07-14 10:15:39,199 DEBUG Attempting to acquire lock<PHONE_NUMBER>90496 on /root/.triton/autotune/Fp16Matmul_2d_kernel.pickle.lock
2024-07-14 10:15:39,199 DEBUG Lock<PHONE_NUMBER>90496 acquired on /root/.triton/autotune/Fp16Matmul_2d_kernel.pickle.lock
2024-07-14 10:15:39,200 DEBUG Attempting to release lock<PHONE_NUMBER>90496 on /root/.triton/autotune/Fp16Matmul_2d_kernel.pickle.lock
2024-07-14 10:15:39,200 DEBUG Lock<PHONE_NUMBER>90496 released on /root/.triton/autotune/Fp16Matmul_2d_kernel.pickle.lock
2024-07-14 10:15:39,202 DEBUG Attempting to acquire lock<PHONE_NUMBER>90448 on /root/.triton/autotune/Fp16Matmul_4d_kernel.pickle.lock
2024-07-14 10:15:39,202 DEBUG Lock<PHONE_NUMBER>90448 acquired on /root/.triton/autotune/Fp16Matmul_4d_kernel.pickle.lock
2024-07-14 10:15:39,202 DEBUG Attempting to release lock<PHONE_NUMBER>90448 on /root/.triton/autotune/Fp16Matmul_4d_kernel.pickle.lock
2024-07-14 10:15:39,202 DEBUG Lock<PHONE_NUMBER>90448 released on /root/.triton/autotune/Fp16Matmul_4d_kernel.pickle.lock
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 27476) of binary: /usr/bin/python3
ERROR:torch.distributed.elastic.multiprocessing.errors.error_handler:no error file defined for parent, to copy child error file (/tmp/torchelastic_gr56s5uf/1986_1pbeu24j/attempt_0/0/error.json)
Traceback (most recent call last):
File "/usr/local/bin/torchrun", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/torch/distributed/elastic/multiprocessing/errors/init.py", line 346, in wrapper
return f(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/torch/distributed/run.py", line 794, in main
run(args)
File "/usr/local/lib/python3.10/dist-packages/torch/distributed/run.py", line 785, in run
elastic_launch(
File "/usr/local/lib/python3.10/dist-packages/torch/distributed/launcher/api.py", line 134, in call
return launch_agent(self._config, self._entrypoint, list(args))
File "/usr/local/lib/python3.10/dist-packages/torch/distributed/launcher/api.py", line 250, in launch_agent
raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
cosyvoice/bin/train.py FAILED
Failures:
<NO_OTHER_FAILURES>
Root Cause (first observed failure):
[0]:
time      : 2024-07-14_10:15:39
host      : CA-ITX.
rank      : 0 (local_rank: 0)
exitcode  : 1 (pid: 27476)
error_file: /tmp/torchelastic_gr56s5uf/1986_1pbeu24j/attempt_0/0/error.json
traceback : Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/torch/distributed/elastic/multiprocessing/errors/init.py", line 346, in wrapper
return f(*args, **kwargs)
File "/root/cosyvoice_git/examples/libritts/cosyvoice/cosyvoice/bin/train.py", line 132, in main
executor.train_one_epoc(model, optimizer, scheduler, train_data_loader, cv_data_loader, writer, info_dict, group_join)
File "/root/cosyvoice_git/cosyvoice/utils/executor.py", line 68, in train_one_epoc
info_dict = batch_backward(model, info_dict)
File "/root/cosyvoice_git/cosyvoice/utils/train_utils.py", line 222, in batch_backward
scaled_loss.backward()
File "/usr/local/lib/python3.10/dist-packages/torch/_tensor.py", line 487, in backward
torch.autograd.backward(
File "/usr/local/lib/python3.10/dist-packages/torch/autograd/init.py", line 200, in backward
Variable._execution_engine.run_backward(  # Calls into the C++ engine to run the backward pass
File "/usr/local/lib/python3.10/dist-packages/torch/utils/data/_utils/signal_handling.py", line 66, in handler
_error_if_any_worker_fails()
RuntimeError: DataLoader worker (pid 27567) is killed by signal: Killed.
============================================================

looks like your memory is not enough. Try reduce num_worker to 1

looks like your memory is not enough. Try reduce num_worker to 1

yes, I tried before see your answer, it's work!


feat: update approval check for self approval

Proton Pr: https://github.com/goto/proton/pull/123

logic looks good to me.


Two questions about dark mode

Hello!
1.The title bar in dark mode is not black, so it is not very coordinated.

2.The color scheme of the editor does not seem to follow the system.

Can u fix it in the next version? Thanks!

That's up to your OS. Looks like you are not setting the title bar to follow any accent color.

That's a separated color scheme. It was left like that so you can pick any color not being bound to the current theme. Another option called "Follow system" could be created for this.

When doing the dark theme, I wasn't sure about the editor as the colors there are hand picked (as far as I could see) and not based on themes but @NickeManarin please assign me to the ticket, I will add "Follow the system" in the editor too".

@shenzhiming88 I'm working on the "Follow the system" for the grid and as for explorer, it might be doing full custom rendering of the Window but it strange it doesn't respect user settings. If you want ScreenToGif's title bar follow the color just set the option in Windows as @NickeManarin suggested

@pawlos
Hello!
There are many third-party applications that customize the title bar, such as IDM and VMWare. But I don't know how they are implemented.

@pawlos
Hello!
There are many third-party applications that customize the title bar, such as IDM and VMWare. But I don't know how they are implemented.

That often requires a custom window, which in turn as a tradeoff reduces the performance.
ScreenToGif has custom windows (the recorders).

That's up to your OS. Looks like you are not setting the title bar to follow any accent color.

So if i am not setting the title bar to follow any accent color, it would be always white? Shouldn't it follow the OS color theme (default app mode)? Chrome ’s title bar would be dark when default app mode is dark and users not setting the title bar to follow any accent color.

@NickeManarin

Browsers such as Chrome rewrite the title bar (because they add support for tabs and other elements). ScreenToGif doesn't do that, so it follows the default settings.

Browsers such as Chrome rewrite the title bar (because they add support for tabs and other elements). ScreenToGif doesn't do that, so it follows the default settings.

So is there any consideration that ScreenToGif doesn't do that? Or actually https://github.com/NickeManarin/ScreenToGif/issues/910#issuecomment-855304303 has already explained it.

Nevermind, I found one way to manually set the title bar color, without having to deal with a manual assembly of the title bar.
Looks easy, but it looks a hack.
I'm going to open another task for that feature.

I found one way to manually set the title bar color, without having to deal with a manual assembly of the title bar.
It is a hack and it needs to be applied for each window, so it may not be a good solution.

Fine.


implement mahan kosh lookup

[x] Add data to database
[x] Add endpoint to API

Implemented the following routes:
/kosh/:Letter
An index of words that begin with that single letter.
/kosh/word/:Word
Words and definitions starting with the given string. e.g. aus can return ausqq (us returning ustat)
/kosh/search/:query
searches all words and definitions for the query.


Improved startmenu icons/buttons

Made the app icon buttons in the startmenu be clickable in the whole icon area and made the app name text unselectable.

Thanks. That's really awesome of you.


Telegram Bot posts in channel not returned in getUpdate query

Question

I'm posting Tradingview triggers into Telegram channel, I then want to retrieve them using https://api.telegram.org/botxxxxxxxxx/getUpdates to be able to place a trade in Bybit.
I find that the entries made by the TelegramBot are not retrieved with this command, only message from users.
My question is what do I need to do to be able to have the bot channel posts in my getupdates?

Hi, you use the event bot.on('channel_post', (msg) => {})?


Update the product README.txt in RC1

In the readme, the prodcut is mentioned as
"WSO2 IoT Server 3.1.0-SNAPSHOT"

So as the bin/README.txt
"${product.name} v${product.version}"

So as the bin/version.txt
"WSO2 IoT Server v3.1.0-SNAPSHOT"


Can't list

In my vim , the "m?" commond only can show marker !@#$%^&*(), it can't show mark 'x' at all.Anyone has meet this question?

Hi, m? displays only the markers. Use m/ for a list of the marks.
From the help:
m/           Open location list and display marks from current buffer
m?           Open location list and display markers from current buffer

Hope this helps

Thanks😙
2016-06-02 11:10 GMT+08:00 Kartik Shenoy<EMAIL_ADDRESS>
Hi, m? displays only the markers. Use m/ for a list of the marks.
From the help
https://github.com/kshenoy/vim-signature/blob/f89c3d433c83fabea91a56cf95030de4c2a6d91d/doc/signature.txt#L44-L52
:
m/           Open location list and display marks from current buffer
m?           Open location list and display markers from current buffer
Hope this helps
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/kshenoy/vim-signature/issues/118#issuecomment-223184511,
or mute the thread
https://github.com/notifications/unsubscribe/AM_lAbripg9GKzgb69PbyriDQvA1NDzUks5qHkmWgaJpZM4IsKEH
.


internal/file: virtualFSRoot and dir don't implement fs.ReadDirFile correctly

Operating System

[ ] Windows
[ ] macOS
[ ] Linux
[ ] FreeBSD
[ ] OpenBSD
[ ] Android
[ ] iOS
[ ] Nintendo Switch
[ ] PlayStation 5
[ ] Xbox
[ ] Web Browsers

What feature would you like to be added?
fs.ReadDir(ebiten.DroppedFiles) returns a slice of all the files that have been dropped so far, but calling fs.ReadDir() again (within the same update tick) returns an empty slice.
Why is this needed?
It is useful to be able to get back the list of files in the DroppedFiles filesystem without having to cache the results manually.
fs.ReadDir() passes -1 for the count to root.ReadDir(int). Both file_js.go and file_notjs.go keep track of the number of files that ReadDir() has returned in the offset field. If count < 0 then the offset could remain the same.
file_notjs.go
ents := make([]fs.DirEntry, n)
for i := range ents {
  ...
}
// propose to add this if condition here
if count > 0 {
  v.offset += n
}

And a similar change in file_js.go

Unfortunately I cannot change this for backward compatibility. I might revisit this for v3 later.

within the same update tick

Hmm, on second thought, this sounds a bug. Which platform did you try this?

Apparently everyplatform has this issue, right? I'll take a look. Thanks,

https://pkg.go.dev/io/fs#ReadDirFile
type ReadDirFile interface {
	[File](https://pkg.go.dev/io/fs#File)

	// ReadDir reads the contents of the directory and returns
	// a slice of up to n DirEntry values in directory order.
	// Subsequent calls on the same file will yield further DirEntry values.
	//
	// If n > 0, ReadDir returns at most n DirEntry structures.
	// In this case, if ReadDir returns an empty slice, it will return
	// a non-nil error explaining why.
	// At the end of a directory, the error is io.EOF.
	// (ReadDir must return io.EOF itself, not an error wrapping io.EOF.)
	//
	// If n <= 0, ReadDir returns all the DirEntry values from the directory
	// in a single slice. In this case, if ReadDir succeeds (reads all the way
	// to the end of the directory), it returns the slice and a nil error.
	// If it encounters an error before the end of the directory,
	// ReadDir returns the DirEntry list read until that point and a non-nil error.
	ReadDir(n [int](https://pkg.go.dev/builtin#int)) ([][DirEntry](https://pkg.go.dev/io/fs#DirEntry), [error](https://pkg.go.dev/builtin#error))
}

So, if n <= 0, all the entries must be returned whatever the internal offset is.

I tested on linux and in the browser, so that covers the two possible implementations in ebiten. I agree with your interpretation of ReadDir when n <= 0. I'm not quite sure what the designers of fs intended if the user did this
// suppose there are 8 total entries
r.ReadDir(2)
r.ReadDir(3)
r.ReadDir(-1) // should return all 8?
r.ReadDir(4) // should return 3, since there are 3 left as a result of the previous read of 2 and 3?

https://go.dev/play/p/PqKzzuemepx
Interestingly, os.DirFS's entry doesn't follow fs.ReadDirFile...???

I reported this. https://github.com/golang/go/issues/69301 IIUC, either the implementation or the documentation is wrong.

Also the golang File.readdir implementation specifically mentions this behavior, but that means some other code in their implementation fails to account for it.
https://cs.opensource.google/go/go/+/refs/tags/go1.23.0:src/os/dir_unix.go;l=103
 // Change the meaning of n for the implementation below.
    //
    // The n above was for the public interface of "if n <= 0,
    // Readdir returns all the FileInfo from the directory in a
    // single slice".
    //
    // But below, we use only negative to mean looping until the
    // end and positive to mean bounded, with positive
    // terminating at 0.
    if n == 0 {
        n = -1
    }

I interpret this to mean 'if the public interface ReadDir(n) is passed an n value <= 0 then the public method shall return all entries in a single slice, but the low level implementation of File.readdir is under no such constraint to treat n that way.'

all the FileInfo

So this can be interpreted as 1) all the entries from the first whatever the offset is, or 2) all the remaining entries after the offset. Thought the actual os.DirFS adopts 2), IMHO the natural interpretation is 1). I hope the documentation would be improved. Let's wait for the Go team's response anyway.

Back to the original issue, this should always returns 4. This is a bug in Ebitengine
diff --git a/examples/dropfile/main.go b/examples/dropfile/main.go
index f78c27dab..cce148047 100644
--- a/examples/dropfile/main.go
+++ b/examples/dropfile/main.go
@@ -79,6 +79,14 @@ func (g *Game) Update() error {
                                }
                                g.m.Unlock()
                        }
+
+                       for i := 0; i < 3; i++ {
+                               ents, err := fs.ReadDir(files, ".")
+                               if err != nil {
+                                       panic(err)
+                               }
+                               println(len(ents)) // This should always returns the number of dropped files, not 0
+                       }
                }()
        }
        return nil

Doesn't file_js.go need a similar fix?

Doesn't file_js.go need a similar fix?

No. This should already work. fs.ReadDir calls the file system's Open, and before the fix, the desktop version's Open didn't return a new entry. The browser version always returned a new entry.


Error Handling

Microscope-metrics does not currently raise error exceptions. At the moment the module solely logs activity. Implementing error handling also entails identifying possible errors and their meaning to users.
An example of a possible error in this project  is a saturation error when the saturation present on an image does not permit deducting viable metrics.

Yes, We need to implement metrics specific errors that can be raised.
For the moment we are thinking about

SaturationError
Any other kind of error that might be worth implementing because it is a common error and is not already implemented in the standard library?

Note we can 'raise' warnings with
import warnings
warnings.warn("Warning...........Message")

Concerning the saturation, it might be worth implementing an utility function check_saturation(image) that will raise this exception when image is saturated.


Add production section to newrelic config

Disables new relic in production in on-prem installations.

See also https://github.com/chef/chef-manage/pull/734

Please update RELEASE_NOTES.md with a note about this and the versions impacted.  The versions appear to be 12.1.0, 12.1.1, 12.1.2

To the best of my understanding, based on testing in vms, prior to this change, the newrelic gem still attempts to contact the newrelic servers (in a misconfigured state where it has no license key, so no real data is sent, but still) when in "production mode", which will happen on on-premises installs.
I'd really like to have @raskchanky's input on this when he gets back from leave next week.

@smith do you have any information about this? I think the main question I have is "should I be surprised  that it seemed necessary to add a production section at all", i.e. was it just an oversight on @raskchanky's part, or is there something else about this setup that I'm not understading?

Newrelic's config docs say:

The Ruby agent's newrelic.yml is a standard yaml configuration file. It includes a defaults section at the top, plus sections below for each environment; for example, Development, Testing, and Production.

And the default for monitor mode says it's a Boolean and the default is "(Dynamic)", whatever that means, but in our case it must have meant true.
So since there was no production section, it just used the default I guess. Not the behavior I would expect, but I suppose it makes sense.
From looking at https://github.com/chef/chef-server/blob/e26feb3f377a03c5f404845942755b6fd5fb1850/omnibus/files/private-chef-cookbooks/private-chef/recipes/oc_id.rb, it doesn't look like we ever overwrite the newrelic.yml, so it looks like we don't currently support using your own Newrelic accound for on-premises oc-id, but I think we write out the file in the cookbook we use for hosted.
:+1:


Create Site does not initialize flybuy client

Suggested fix, add @client = Flybuy.client
def self.create(hash)
     @client = Flybuy.client
      response = @client.post(
        'sites/',
        {
          data: hash
        }
      )
      Flybuy::Site.new(@client, response)
    end

closed by #20


Intellisense in object initializers is unaware of context

Environment data
dotnet --info output:
.NET Core SDK (reflecting any global.json):
 Version:   2.1.301
 Commit:    59524873d6

Runtime Environment:
 OS Name:     arch
 OS Version:
 OS Platform: Linux
 RID:         arch-x64
 Base Path:   /opt/dotnet/sdk/2.1.301/

Host (useful for support):
  Version: 2.1.1
  Commit:  6985b9f684

.NET Core SDKs installed:
  2.1.301 [/opt/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.NETCore.App 2.1.1 [/opt/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

VS Code version:
Version 1.24.1
Commit 24f62626b222e9a8313213fb64b10d741a326288
Date 2018-06-13T17:47:35.732Z
Shell 1.7.12
Renderer 58.0.3029.110
Node 7.9.0
Architecture x64

C# Extension version: 1.15.2
Steps to reproduce
Instantiate an object with an enum property and in the RHS of the property initializer for said property use Ctrl + Space to get intellisense suggestions.
Expected  behavior
Enum type's name is suggested on RHS of equals expression.
Actual behavior
Lots of things are displayed that would not type check if inserted into the current position and the enum is not in the list.

@masaeedu I suspect the OmniSharp process is not running for you. Do you see any "OmniSharp" or "C#" log in the Output  pane(View--> Output --> The small drop down on the right side)

@akshita31 Seems to be running fine (from my experience the hover hint shown wouldn't appear if Omnisharp wasn't running). Go to reference, hovering types, etc. all seems to be working.


Successful compilation
What is the actual behavior?
/opentelemetry-cpp-contrib/instrumentation/boost_log/src/sink.cc: In function 'bool opentelemetry::instrumentation::boost_log::ToTimestampDefault(const boost::log::v2_mt_posix::record_view&, std::chrono::_V2::system_clock::time_point&)':
/opentelemetry-cpp-contrib/instrumentation/boost_log/src/sink.cc:29:15: error: possibly dangling reference to a temporary [-Werror=dangling-reference]
   29 |   const auto &timestamp =
      |               ^~~~~~~~~
/opentelemetry-cpp-contrib/instrumentation/boost_log/src/sink.cc:30:63: note: the temporary was destroyed at the end of the full expression 'boost::log::v2_mt_posix::extract_or_default<boost::posix_time::ptime>(boost::log::v2_mt_posix::record_view::operator[](boost::log::v2_mt_posix::attribute_value_set::key_type) const(boost::log::v2_mt_posix::attribute_name(((const char*)"TimeStamp"))), kInvalid)'
   30 |       boost::log::extract_or_default<boost::posix_time::ptime>(record["TimeStamp"], kInvalid);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opentelemetry-cpp-contrib/instrumentation/boost_log/src/sink.cc: In function 'bool opentelemetry::instrumentation::boost_log::ToThreadIdDefault(const boost::log::v2_mt_posix::record_view&, std::string&)':
/opentelemetry-cpp-contrib/instrumentation/boost_log/src/sink.cc:39:15: error: possibly dangling reference to a temporary [-Werror=dangling-reference]
   39 |   const auto &thread_id =
      |               ^~~~~~~~~
/opentelemetry-cpp-contrib/instrumentation/boost_log/src/sink.cc:40:66: note: the temporary was destroyed at the end of the full expression 'boost::log::v2_mt_posix::extract_or_default<aux::id<aux::thread> >(boost::log::v2_mt_posix::record_view::operator[](boost::log::v2_mt_posix::attribute_value_set::key_type) const(boost::log::v2_mt_posix::attribute_name(((const char*)"ThreadID"))), kInvalid)'
   40 |       boost::log::extract_or_default<boost::log::aux::thread::id>(record["ThreadID"], kInvalid);
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[2]: *** [CMakeFiles/opentelemetry_boost_log_sink.dir/build.make:76: CMakeFiles/opentelemetry_boost_log_sink.dir/src/sink.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/opentelemetry_boost_log_sink.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

Additional context
Note from https://www.boost.org/doc/libs/1_83_0/libs/log/doc/html/boost/log/extract_or_defaul_idm26363.html
Caution must be exercised if the default value is a temporary object. Because the function returns a reference, if the temporary object is destroyed, the reference may become dangling.
But afaict the default value is not a temporary object: https://github.com/open-telemetry/opentelemetry-cpp-contrib/blob/main/instrumentation/boost_log/src/sink.cc#L27
Is GCC wrong here?

Thanks for the report.
I don't have the proper setup locally, could you try this simple change:
  auto timestamp =
      boost::log::extract_or_default<boost::posix_time::ptime>(record["TimeStamp"], kInvalid);

and report if this fixes the build error ?
Thanks.

Yes, if I save both timestamp and thread_id by value it compiles successfully.


[ui] Make "Expand All" the default view for a trace

Transferring one of our internal tickets. Many users have asked for trace to be fully expanded by default, unless it exceeds a certain N of spans. Especially new users often get confused by seeing incomplete traces by default.

Maybe this could be a configuration option, just like default query limit?
The UI refactoring is pretty much done now, so people can send patches.

Yes, definitely should be a config option, like maxSpanCountForExpandAll
I haven't seen the new config mechanism yet, do we have docs on how one can change config options at deployment?

No, unfortunately we're lagging behind on that part :-/ You'll have to hard-code it into the config.json handler for now. (There is one handler in zipkin-query and one in zipkin-web, of course it's temporary that it's duplicated)

weird.. I thought we had another issue on this same topic (of expand-all). can't find it .. shrug!
I prefer expand-all, too, but maybe the trace detail was designed for query (where you had selected a specific service). go to trace probably should default to expand all, regardless.

https://github.com/openzipkin/zipkin/pull/1326


nav ui: overlays disappear if first reroute attempt fails

Easy to hit by going from home wifi -> LTE

Have this working, but there's a few clean ups I will make first
https://github.com/commaai/openpilot/assets/25857203/c7066fe0-a31e-4dca-8598-09d7aaa133b5


Bucket Sorting Added

Proposed changes
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. Your PR title can be also used here.
Types of changes
What types of changes does your content introduce to this project?
Put an x in the boxes that apply (without "`")

[ ] Proofreading (fix spelling, grammar, punctuation, accuracy) Proofreading
[x] New content (new section, new readme, etc.)
[x] Modifications (modifying existing content)
[ ] Other (please describe)

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. Don't hesitate to ask if you're unsure about any of them. We're here to help! This simply reminds us of what we will look for before merging your code.
Note: If you submit code make sure to test it

[x] Tested any code that was added/modified in this PR
[ ] Added external links
[ ] Added internal links
[ ] Added images
[ ] Added videos
[ ] Added code snippets

Further comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...
Adding your name to the contributor's list
Comment "@all-contributors please add @your_username for content" to add your name to the contributor's list.
You can change the "content" with any of this
Reviewers:

[ ] @username

Please ensure that you are not adding any sensitive information like API keys, secrets, passwords, tokens, usernames, or other credentials. Refrain from adding your name, email, or other personal information.

@Saurav-IIITU fix the errors.
(5, 'Algorithms/Sorting/Bucket Sort/readme.md | python code execution error in  54')
(5, 'Traceback (most recent call last):\n  File "f74111c4.py", line 23, in <module>\n    sorted_arr = bucket_sort(arr)\n  File "f74111c4.py", line 12, in bucket_sort\n    buckets[index].append(num)\nIndexError: list index out of range\n')
(5, 'README.md | python code execution error in  436')
(5, '  File "c6fa60c3.py", line 3\n    ```\n      ^\nIndentationError: unindent does not match any outer indentation level\n')
(5, 'Algorithms/Sorting/Bucket Sort/readme.md | go code execution error in  69')
Error: (5, '# command-line-arguments\n./a7[83](https://github.com/shhossain/computer_science/actions/runs/6598942253/job/17937596546?pr=687#step:10:84)4b10.go:5:2: imported and not used: "math"\n')
(5, 'Algorithms/Sorting/Bucket Sort/readme.md | ruby code execution error in  72')
(5, "9d1036ed.rb:2: syntax error, unexpected constant, expecting '}'\n    // Find the minimum and maximum valu...\n       ^~~~\n9d1036ed.rb:2: syntax error, unexpected `in', expecting end-of-input\n...e minimum and maximum values in the array\n...                             ^~\n")
(5, 'Algorithms/Sorting/Bucket Sort/readme.md | javascript code execution error in  66')
(5, "/home/runner/work/computer_science/computer_science/6ba031e9.js:25\n        buckets[index].push(arr[i]);\n                       ^\n\nTypeError: Cannot read properties of undefined (reading 'push')\n    at bucketSort (/home/runner/work/computer_science/computer_science/6ba031e9.js:25:24)\n    at Object.<anonymous> (/home/runner/work/computer_science/computer_science/6ba031e9.js:53:21)\n    at Module._compile (node:internal/modules/cjs/loader:1198:14)\n    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)\n    at Module.load (node:internal/modules/cjs/loader:1076:32)\n    at Function.Module._load (node:internal/modules/cjs/loader:[91](https://github.com/shhossain/computer_science/actions/runs/6598942253/job/17937596546?pr=687#step:10:92)1:12)\n    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)\n    at node:internal/main/run_main_module:22:47\n")
(5, 'Algorithms/Sorting/Bucket Sort/readme.md | c code execution error in  60')
(5, 'Segmentation fault (core dumped)\n')
(5, 'Algorithms/Sorting/Bucket Sort/readme.md | java code execution error in  63')
(5, 'Exception in thread "main" java.lang.IndexOutOfBoundsException: Index 6 out of bounds for length 6\n\tat java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)\n\tat java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)\n\tat java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)\n\tat java.base/java.util.Objects.checkIndex(Objects.java:361)\n\tat java.base/java.util.ArrayList.get(ArrayList.java:427)\n\tat BucketSort.bucketSort(BucketSort.java:23)\n\tat BucketSort.main(BucketSort.java:38)\n')
(5, 'Algorithms/Sorting/Bucket Sort/readme.md | cpp code execution error in  57')
(5, 'Segmentation fault (core dumped)\n')

done please review

There are errors in the code
82
(5, 'Algorithms/Sorting/Bucket Sort/readme.md | c code execution error in  60')
83
(5, 'Segmentation fault (core dumped)\n')