Add update extension link

The API endpoint for that is ready, but it's not implemented in the UI.
Add a button in the dropdown to update an extension.
Also add a visual indicator that an update is available.

In addition, based on our chat. This should:

Allow updating Bazaar.
Set Flarum to maintenance based on a property of our Extension object from Flagrow.io. Flagrow.io will then have a property for extensions maintenance_preferred with default false which we we enable on Bazaar.
Make sure to flush the Flarum cache on updating/installing/deleting any extension.

Maintenance mode is not really necessary for the composer update itself, because it's a simple folder switch and requests usually finish with the old version and start with the new version afterwards.
Maintenance mode might be useful while migrations and extensions events are run

Given Flarum has no update capability at the moment, we need to choose which actions / events we do upon extension updates.
For instance we should attempt to run migrations and clear cache. An extension updated event might also be very useful, but it should really be registered in core so you don't need code specific for Bazaar in your extension

Until core has all what we need, I suggest we will implement it ourselves. We can start contributing/moving stuff from Bazaar (and other extensions) to core once our code has become more settled and beta 7 is released (not much will be added to that release anyway and after beta 7 a complete overhaul will take place in preparation of the stable version).
For now we need to run:

php flarum migrate
php flarum cache:clear

Triggering an event to listen on makes sense. I'd still suggest setting Flarum to maintenance mode by default or allowing this to be a setting the webmaster can decide on.

updating of an extension that is restricted by its current version, eg 0.1.0 to 0.2.0 will not work without upping the constraint

Moved update to use require command, but it does not accept the version select yet.


Added doc for debug merge-logs command

Closes #4187

This change is

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/bf72bd131ed901e17cf26ab7df5ba5990fbdef49/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/e34b54ec1dcc55a05768b0a8179b5632c0f286c1/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/e34b54ec1dcc55a05768b0a8179b5632c0f286c1/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/52b5a934b69ff73a7547137430920b26808cf91a/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/d60e5323d286a1ec22c075a51c9e29a4341ca84d/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/0540bff24e136924d3573e3570c5d7a1274c1acf/

@Amruta-Ranade, looks like there are still some 2.2 pages in here, and the team city build failed. Can you clean this up and let me know?

@Amruta-Ranade, do you need some help figuring out why the build is failing?

@jseldess Yes..this is the issue I pinged you about on Monday. I need help figuring out the best (safest) way to get rid of the 2.2 docs.

Got it. Can you please schedule time for us to look together then?

Done.

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/9602c8e7c44a7f7c863cc429c31c53f652d994be/

http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/29985aed443502f37a36efc6ef388c04f9db105d/


[AutoRelease] t2-hdinsight-2023-06-28-06244(can only be merged by SDK owner)

https://github.com/Azure/sdk-release-request/issues/4297
Live test success
https://dev.azure.com/azure-sdk/internal/_build?definitionId=997

issue link:https://github.com/Azure/sdk-release-request/issues/4297


test: fix and refactor kafka integration tests to work with rhsso

Description
Refactor and fix any issues found when running integration tests with both MAS SSO and RHSSO clients.
Please note that when redhat_sso is set as the selected SSO provider, this will call to the actual sso instance whether the environment selected is integration or development. Because of this, we will need to get an actual token from rhsso within our tests. If mas_sso is selected, we can continue on using the mock token.
There are also a few differences in the responses between these two clients. Any assertions that has different results between the two have been commented out for now.
Note that this PR only fixes kafka related tests
Verification Steps

Ensure CI is passing (Runs the tests with OCM_ENV=integration AND SelectSSOProvider=MAS_SSO  configuration)
Run the kafka test with the following configurations:

OCM_ENV=integration and SelectSSOProvider: REDHAT_SSO
OCM_ENV=development and SelectSSOProvider: MAS_SSO

See results here: mas_sso_dev_env_test_results

OCM_ENV=development and SelectSSOProvider: REDHAT_SSO

See results here: rhsso_dev_env_test_results
Note that connector tests are still failing when using rhsso provider. This will be fixed in a separate PR

When running with 'redhat_sso' + OCM_ENV=integration, please update any references of sso.redhat.com to sso.qa.redhat.com in the keycloakConfig and serverConfig. Do not modify the mas-sso-base-url as this is still use for configuration of osd idp. A valid rhsso service account client id and secret is required to run this, please message me for that information when verifying these changes.
Checklist (Definition of Done)

[ ] All acceptance criteria specified in JIRA have been completed
[ ] Unit and integration tests added that prove the fix is effective or the feature works (tested against emulated and non-emulated OCM environment)
[ ] Documentation added for the feature
[ ] CI and all relevant tests are passing
[ ] Code Review completed
[ ] Verified independently by reviewer
[ ] All PR comments are resolved either by addressing them or creating follow up tasks
[ ] Required metrics/dashboards/alerts have been added (or PR created).
[ ] Required Standard Operating Procedure (SOP) is added.
[ ] JIRA has been created for changes required on the client side

@ziccardi i've addressed your comments, please have a look again when you get the chance.

@ziccardi got latest changes from master and addressed your comments there :)
I also re-added the check for verifying the service account created by field since the service account sdk version has been bumped. cc @akoserwal


Suicide Awareness: check everyone has done the prep work

Checked the doc, scheduled an email to everyone who hasn't done it


Ag grid theme column menu is not scrollable depending on bundler

Package name(s)
AG Grid Theme (@salt-ds/ag-grid-theme)
Package version(s)
v1.4.1
Description
Column menu (click triple dot menu on column header, third column tab) is not scrollable, columns tool panel columns can not be scrolled to the bottom

Bundler
Dev
Prod

StackBlitz
ok
n/a

Salt site
-
bug

CRA v5
bug
bug

Vite v5
ok
ok

The problem is due to CSS minification, where flex 0px is being minified away.
/* ag-grid.css */
.ag-column-select-list {
  -webkit-box-flex: 1;
          flex: 1 1 0px;
  overflow: hidden;
}

Minified to:
.ag-column-select-list {
    flex: 1 1;
    overflow: hidden;
}

Potential fix
Remove below 2 sets of CSS. Additional vertical spacing needs to be adjusted before the search input and after the list.
.ag-theme-salt-high-compact-light .ag-column-select-list {
    overflow: initial;
}

.ag-theme-salt-high-compact-light .ag-menu-column-select-wrapper {
    height: 100%;
}

Operating system

[X] macOS
[X] Windows
[ ] Linux
[ ] iOS
[ ] Android

Browser

[X] Chrome
[ ] Safari
[ ] Firefox
[ ] Edge

Are you a JPMorgan Chase & Co. employee?

[X] I am an employee of JPMorgan Chase & Co.

Hotfix released -<EMAIL_ADDRESS>Confirmed not impacting v2


Requirements for being a reviewer with write access

Description of the new feature/enhancement

Proposed technical implementation details (optional)

Can anyone tell me what requirements do I need to meet to be a reviewer with write access?

To keep it simple: By contributing more than 2 packages that required correction.

Oh, thanks

To keep it simple: By contributing more than 2 packages that required correction.

Please name some packages so that I can make manifest files for them 🙏🏻

@vedantmgoyal2009 the moderators have each submitted more than 800 manifests personally and contributed over a period of many consecutive months. This includes helping others submit good quality manifests and working through challenges related to the upgrade scenario and other shortcomings of the client. You can take a look at the "Help Wanted" issues as a starting point to learn what is and isn't supported by the product, and look at the discussions across many of the "Moderator-Approved" PRs to get a sense for common issues and challenges. I'd suggest reading and learning about the product and watching the process. Try crafting a few more manifests based on the Help Wanted issues. Once you get a solid handle on how to build good manifests, and your submissions merely require a moderator to approve, then you can start helping others by making constructive suggestions on their PRs. You could also help by looking at new issues as they come in. We often have duplicates, and it helps to have someone who is familiar with the backlog deduplicate. Remember the Code of Conduct when interacting with others. There are many different ways to contribute, and we welcome your help.

@denelon Please also tell what is ARP and where I can find it?

@denelon Please also tell what is ARP and where I can find it?

https://github.com/microsoft/winget-pkgs/blob/master/doc/manifest/schema/1.0.0/defaultLocale.md#publisher

Where do I get this? This screenshot.

Where do I get this? This screenshot.

This type of screenshot, I have seen many times. I googled about ARP but I only get info about Address Resolution Protocol.

This specific screenshot is from a program called Revo Uninstaller. You don't need to use this program, you can find this information in the control panel where you uninstall programs.

Okay thanks for telling.

What is the full form of ARP here, on Google, it shows Address Resolution Protocol but that doesn't fit here

Add or Remove Programs.

What is the full form of ARP here, on Google, it shows Address Resolution Protocol but that doesn't fit here

https://github.com/microsoft/winget-pkgs/blob/master/doc/manifest/schema/1.0.0/defaultLocale.md#publisher

Thanks a lot.


[FEA] Support data type org.apache.spark.mllib.linalg.VectorUDT

I wish we can support data type org.apache.spark.mllib.linalg.VectorUDT.
Mini repro:
import org.apache.spark.sql.types._

val rows = spark.sparkContext.parallelize(
  List(
    Row(0.0, 1.2, org.apache.spark.mllib.linalg.Vectors.dense(1.0, 2.0))
  )
)

val schema = List(
  StructField("label", DoubleType, true),
  StructField("feature", DoubleType, true),
  StructField("a_vector", new org.apache.spark.mllib.linalg.VectorUDT, true)
)

val df = spark.createDataFrame(
  rows,
  StructType(schema)
)
df.write.mode("overwrite").format("parquet").save("/tmp/testparquet")
val df2=spark.read.parquet("/tmp/testparquet")
df2.createOrReplaceTempView("df2")

spark.sql("select * from df2").collect()

Unsupported messages:
!Exec <FileSourceScanExec> cannot run on GPU because unsupported data types in output: org.apache.spark.mllib.linalg.VectorUDT@f71b0bce [a_vector#93]; unsupported data types org.apache.spark.mllib.linalg.VectorUDT@f71b0bce [a_vector] in read for Parquet

It should be a use case from ML side. Currently our 2 supported ML case are XGBoost and PCA, both of them are using VectorUDT in their CPU version. The entry point of this could be VectorAssember(merge multiple columns into one) or customized UDF(cast ArrayType to VectorUDT) like:
import org.apache.spark.ml.linalg.Vectors
val convertToVector = udf((array: Seq[Double]) => {
  Vectors.dense(array.map(_.toDouble).toArray)
})

For the first case, XGBoost added support for multiple columns as input. For the second case, PCA also support ArrayType column directly.

Do you have an example full workflow/query that you want to have optimized? Adding in support for UDTs is possibly a lot of work and it would be nice to know what areas we should concentrate on first.  Looking at VectorUDT there are two implementations. One for sparse and another for dense vectors. Each line could be one or the other depending on the data in it. So reading out that data from parquet should not be too difficult, but how is it going to be used?  Are we going to have to support user defined functions that take user defined types? I am just concerned that this is the first layer of an onion and we can add in what you are asking, but I don't think it is going to help in terms of performance until we do a lot of follow on work too.

@revans2 I could share more details offline.
Here are some of the needed operators on vector type based on logs:

input for CollectLimitExec
output for ProjectExec
AttributeReference produces vector
input&output for ScalaUDF UDF
reading/writing vector to/from parquet

All of those except CollectLimitExec look to be doable.  CollectLimitExec we do not currently support because of a performance optimization in Spark that we just have not felt the need to support. If you have a real use case that is not just show, then we should talk about an issue to add in support for that generally too.


Updated bench tests to push nil instead of an int; stack tests to use…

… push/pop front

Codecov Report

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

@@          Coverage Diff          @@
##           master    #18   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           1      1
  Lines         139    139
=====================================
  Hits          139    139

Continue to review full report at Codecov.

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


keytree: new package for key derivation scheme with Ristretto and Merlin

This adds a draft of a spec. It's a good new-to-Rust issue to implement (in a separate PR).

@oleganza can I assign myself to this?

@oleganza can I assign myself to this?


Fix status code of batch operation

Proposed changes
This PR fixes status code of batch operation (upsert, delete).
Types of changes
What types of changes does your code introduce to the project: Put an x in the boxes that apply

[X] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Update only documentation, not any source code.

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

[X] I have read the CONTRIBUTING doc
[X] I have signed the CLA
[X] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)
[ ] Any dependent changes have been merged and published in downstream modules

Further comments
N/A

Coverage remained the same at 100.0% when pulling cd48106d8d7e31920b20fb5f3067b9a26748063c on fisuda:fix/batch_status into 40016229a214e57eb68367ddd4ac191694f77ca5 on lets-fiware:main.


Empty line between tags when writing xml

Hi,
When running below code I get an empty scape line between row tags:
data = [(1, "John"), (2, "Jane"), (3, "Jim")]
schema = StructType([
StructField("id", IntegerType(), True),
StructField("name", StringType(), True)
])
df = spark.createDataFrame(data, schema)
df.coalesce(1).write
.mode('overwrite')
.format('com.databricks.spark.xml')
.option('rootTag', 'root')
.option('rowTag', 'row')
.save(xmlFile)
Output file:

Version is com.databricks:spark-xml_2.12:0.18.0
Am I missing a writing option to avoid this behavior?

Just saw your comment on issue: https://github.com/databricks/spark-xml/issues/676 I agree it shouldnt be a big problem but it sure ringed a bell. Thanks for the explanation. I will close the issue for now.


Adds Razorpay

Adds the following events or companies:

Razorpay

Checklist

[X] I have updated the event or company counts
[X] I have put the most recent relevant date in the "Last Update" column
[X] I have linked to the article about the change, not the company's website

Closing temporarily.


Night CI 2023-04-27: Failed

action url: https://github.com/spidernet-io/spiderpool/actions/runs/4816470223

It looks like the github workflows issue.
https://github.com/helm/chart-testing-action/issues/123

the bug same as #1717


Manifest creation fails

Hello.
Thank you for your workaround with docker containers merging with manifest.
Lately it start fail when trying to create manifest. Example output can be found here: https://github.com/PurpleI2P/i2pd/actions/runs/4001302421/jobs/6867928655
/usr/bin/docker manifest create --amend purplei2p/i2pd:latest purplei2p/i2pd:latest-amd64 purplei2p/i2pd:latest-i386 purplei2p/i2pd:latest-arm64 purplei2p/i2pd:latest-armv7
docker.io/purplei2p/i2pd:latest-amd64 is a manifest list

How can we fix this?

I can try modify workflow and add amend: false manually if needed.

Please do! If it still continues to error, please tell so I can try to find some solutions!

The action actually forces amend: true in the docker manifest create command and doesn't amend: true in docker manifest push, I'll need to fix that in a few hours (and maybe you can try again when it is pushed?)

Just tested with amend: false, and looks like it is ignored: https://github.com/PurpleI2P/i2pd/actions/runs/4018882640/jobs/6905044176#step:7:5

The action actually forces amend: true in the docker manifest create command and doesn't amend: true in docker manifest push, I'll need to fix that in a few hours (and maybe you can try again when it is pushed?)

Ok, I'm waiting.

https://github.com/Noelware/docker-manifest-action/commit/daf8cd4752cff9aec8e0e84d6cfa323ab06b82f6#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R53

I just got the issue right now:
I'll need to dive more into this

Not easier for me because linux/arm64  amd linux/armv7 platforms build takes too much time, that's why I build them in separate runner for each platform...
Look at workflow graph to understand: https://github.com/PurpleI2P/i2pd/actions/runs/4001302421

Untill last week everything works this way:

Workflow build every platform in separate runner
Uploads them as latest-<arch> tag
When all builders finished one more step started, which creates updated tag latest

btw, I think that docker.io make some changes which broken everything...

And one more link: https://docs.docker.com/engine/reference/commandline/manifest/#create-and-push-a-manifest-list
Example shows that we must use different containers, not tags. But somehow merging of tags worked earlier? Hm...

Hello. I have also encountered this problem and have found a tentative solution, which I will share with you.
The solution is to add provenance: false to docker/build-push-action as follows:
      - name: Build and push Docker image
        uses<EMAIL_ADDRESS>        with:
          context: .
          push: true
          platforms: ${{ matrix.platform }}
          tags: ${{ steps.meta.outputs.tags }}
          labels: ${{ steps.meta.outputs.labels }}
          provenance: false

Related issues may be found here: https://github.com/docker/build-push-action/issues/771
For specific fixes, see the following Pull requests: https://github.com/tomacheese/twitter-dm-memo/pull/31
Action log before modification: https://github.com/tomacheese/twitter-dm-memo/actions/runs/4001345210
Action log after modification: https://github.com/tomacheese/twitter-dm-memo/actions/runs/4002014080

Thank you for a solution! I'll add it to the README and keep this issue open (or not? I don't know in this case)

@book000 thank you for solution, I'll try it soon.
@auguwu I have question about options names, I agree with extra-images -> images change, but why calling output image tag as inputs?

images
Comma-seperated list of images that will be applied in the merged manifest from the inputs.

Isn't docker manifest create creates new one manifest? I don't think it applies changes to existing, and can read only one output per execution. Current action code supports execution for each target image in list?

@r4sas

add: One more, https://github.com/Noelware/docker-manifest-action#inputs - incorrect warning:

extra-images has been renamed to output

Please see #134 and #136

Please see #134 and #136

Oops, haven't seen them before, thanks.
In that case, I think this issue can be closed for now.

The solution is to add provenance: false to docker/build-push-action as follows:

It works. Thank you again.


update the pattern does not chanage the value correctly.

let't say the value is 123456 and the pattern is 111111.
the input mask will show all the numbers and it works perfectly!
if I change mask to 111 the input mask will show 123 which is correct. but if I change the mask back to 11111 it will show 123__ !!!!!!
However the value is not changed and even I provide the correct value (123456) again but since the value has not changed it ignores it!!!
you can see it here: http://insin.github.io/react-maskedinput/
I would appreciate any help

I think something is failing to note that the value has actually changed in this case...

the value has not changed. I only change the pattern, but when I change the pattern back to the original it does not update the input mask

the value changes, when the new mask causes the value to be truncated, does amount to a change in the underlying value, masks specific exist to place hard requirement on the shape of the value, so it wouldn't make sense to allow the value to be something non-conforming to its mask.
In my opinion the bug here is that the input mistakening thinks the value didn't change and so you cannot reset it to the original one.

Could be! thanks! the weird thing is it is returning same value for getRawValue and getValue!!
and both are the display value

Check this out, it may help you with your requirements: RxInput demo

Use a regular expression to both create the mask and match the input (as you type)

Auto complete (you cane see that in the demo)

Support alternative patterns (basic regular expression capability)

Show a list of available option (hints on what you can enter)

Support huge regular expression (hopefully generated programmatically rather than by hand)

Implements almost everything that normat javascript regular expressions support (does not support look back and peek forward, but for input processing that is rarely useful)

Can use it as an alternative to radio buttons and dropdown list
I have very happy with the result

incr-regex-package

react-rxinput

You may remember I mentioned earlier I was working on a version of maskeinput that uses regular expressions to define the mask and matching rules. I have not figured out if it is possible to use the normal regular expression matcher to do this. I actually do not think so. I implement a version of incremental (match as you type) regular expression.

Hi,
If you need flexible pattern, try react-rxinput demo
int the first input box ( label: Enter a Regular expression: where you can enter your own regular expression)

enter the  following:  \d{3} \d{2,4}
that will allow you to enter 3 digits followed by a space and then 2-4 digits

If  you want to enter only upper case letters  [A-Z]{2,5}
will let you enter both upper or lower case letters , but lowercase will be translated to uppercase

Tab to the next input box (label: Regex Tester:) you can try out how the regular expression you entered affects the mask and what you can type. Note: you will also see a suggestion box.
The demo page has a a few sample regular expression you can try.


Invalid format sorting on "-x"

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm asking a question and not reporting a bug or requesting a feature
[X] I've looked through the README
[X] I've verified that I have updated yt-dlp to nightly or master (update instructions)
[X] I've searched known issues and the bugtracker for similar questions including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Please make sure the question is worded well enough to be understood
Hello can someone help me with a format sorting issue I am having with yt-dlp. I am having an issue with '-x' being flagged as an invalid format sorting on ytdlp command. I have looked in the 'README' to figure out where to properly have '-x' although i always see it behind '--audio-quality' in the documentation. What am i doing wrong?
❯ ytmd -vU https://www.youtube.com/watch\?v\=...

[debug] Command-line config: ['-S', '-x', '--audio-quality', '0', '--audio-format', 'mp3', '--embed-thumbnail', '-o', '/Users/usr_name/Music/ytmd/%(title)s.%(ext)s', '-vU']

Usage: yt-dlp [OPTIONS] URL [URL...]

yt-dlp: error: invalid format sorting "-x" given
❯ ccat ~/.zshrc | grep ytmd
alias ytmd='function _ytmd() {
yt-dlp -S -x --audio-quality 0 --audio-format mp3 --embed-thumbnail -o "$HOME/Music/ytmd/%(title)s.%(ext)s" "$1" && rm "$HOME/Music/ytmd/*.webm" "$HOME/Music/ytmd/*.jpg"; }; _ytmd'

Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[ ] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
No response

remove -S

remove -S

Thank you that worked!


Use the new socket creation api in udp_server.c

@jcanizales backporting changes

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok to test.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok to test.

Duped and merged in #7371 , closing this PR.


After loading 50 trajectories, the terminal shows killed

Hello,
Thanks for you code. And after reading readme-atari.md, I have set the env and downloaded the dataset, then I tried to run the follows:
（--block_size 90 There is no block_size args, so I removed it ）
python -m atari.run_dt_atari.py --seed 123 --epochs 5 --model_type 'reward_conditioned' --num_steps 500000 --num_buffers 50 --game 'Breakout' --batch_size 64 --data_dir_prefix /home/shy/decision-transformer/atari/dqn_replay/

Then it shows:
loading from buffer 45 which has 0 already loaded
this buffer has 2196 loaded transitions and there are now 2196 transitions total divided into 1 trajectories
loading from buffer 2 which has 0 already loaded
this buffer has 1234 loaded transitions and there are now 3430 transitions total divided into 2 trajectories
loading from buffer 28 which has 0 already loaded
this buffer has 2413 loaded transitions and there are now 5843 transitions total divided into 3 trajectories
loading from buffer 34 which has 0 already loaded
this buffer has 2718 loaded transitions and there are now 8561 transitions total divided into 4 trajectories
loading from buffer 38 which has 0 already loaded
this buffer has 2326 loaded transitions and there are now 10887 transitions total divided into 5 trajectories
loading from buffer 17 which has 0 already loaded
this buffer has 2425 loaded transitions and there are now 13312 transitions total divided into 6 trajectories
loading from buffer 19 which has 0 already loaded
this buffer has 3063 loaded transitions and there are now 16375 transitions total divided into 7 trajectories
loading from buffer 42 which has 0 already loaded
this buffer has 1190 loaded transitions and there are now 17565 transitions total divided into 8 trajectories
loading from buffer 22 which has 0 already loaded
this buffer has 1002 loaded transitions and there are now 18567 transitions total divided into 9 trajectories
loading from buffer 33 which has 0 already loaded
this buffer has 1473 loaded transitions and there are now 20040 transitions total divided into 10 trajectories
loading from buffer 32 which has 0 already loaded
this buffer has 4009 loaded transitions and there are now 24049 transitions total divided into 11 trajectories
loading from buffer 49 which has 0 already loaded
this buffer has 2006 loaded transitions and there are now 26055 transitions total divided into 12 trajectories
loading from buffer 47 which has 0 already loaded
this buffer has 1935 loaded transitions and there are now 27990 transitions total divided into 13 trajectories
loading from buffer 9 which has 0 already loaded
this buffer has 1750 loaded transitions and there are now 29740 transitions total divided into 14 trajectories
loading from buffer 32 which has 4009 already loaded
this buffer has 7451 loaded transitions and there are now 33182 transitions total divided into 15 trajectories
loading from buffer 46 which has 0 already loaded
this buffer has 2137 loaded transitions and there are now 35319 transitions total divided into 16 trajectories
loading from buffer 32 which has 7451 already loaded
this buffer has 10311 loaded transitions and there are now 38179 transitions total divided into 17 trajectories
loading from buffer 47 which has 1935 already loaded
this buffer has 5165 loaded transitions and there are now 41409 transitions total divided into 18 trajectories
loading from buffer 25 which has 0 already loaded
this buffer has 2124 loaded transitions and there are now 43533 transitions total divided into 19 trajectories
loading from buffer 19 which has 3063 already loaded
this buffer has 5660 loaded transitions and there are now 46130 transitions total divided into 20 trajectories
loading from buffer 14 which has 0 already loaded
this buffer has 1462 loaded transitions and there are now 47592 transitions total divided into 21 trajectories
loading from buffer 36 which has 0 already loaded
this buffer has 1173 loaded transitions and there are now 48765 transitions total divided into 22 trajectories
loading from buffer 32 which has 10311 already loaded
this buffer has 13460 loaded transitions and there are now 51914 transitions total divided into 23 trajectories
loading from buffer 16 which has 0 already loaded
this buffer has 2148 loaded transitions and there are now 54062 transitions total divided into 24 trajectories
loading from buffer 4 which has 0 already loaded
this buffer has 1754 loaded transitions and there are now 55816 transitions total divided into 25 trajectories
loading from buffer 49 which has 2006 already loaded
this buffer has 4612 loaded transitions and there are now 58422 transitions total divided into 26 trajectories
loading from buffer 3 which has 0 already loaded
this buffer has 1200 loaded transitions and there are now 59622 transitions total divided into 27 trajectories
loading from buffer 2 which has 1234 already loaded
this buffer has 2192 loaded transitions and there are now 60580 transitions total divided into 28 trajectories
loading from buffer 20 which has 0 already loaded
this buffer has 1644 loaded transitions and there are now 62224 transitions total divided into 29 trajectories
loading from buffer 39 which has 0 already loaded
this buffer has 1473 loaded transitions and there are now 63697 transitions total divided into 30 trajectories
loading from buffer 2 which has 2192 already loaded
this buffer has 3244 loaded transitions and there are now 64749 transitions total divided into 31 trajectories
loading from buffer 20 which has 1644 already loaded
this buffer has 4785 loaded transitions and there are now 67890 transitions total divided into 32 trajectories
loading from buffer 47 which has 5165 already loaded
this buffer has 7681 loaded transitions and there are now 70406 transitions total divided into 33 trajectories
loading from buffer 48 which has 0 already loaded
this buffer has 2836 loaded transitions and there are now 73242 transitions total divided into 34 trajectories
loading from buffer 7 which has 0 already loaded
this buffer has 2135 loaded transitions and there are now 75377 transitions total divided into 35 trajectories
loading from buffer 41 which has 0 already loaded
this buffer has 933 loaded transitions and there are now 76310 transitions total divided into 36 trajectories
loading from buffer 35 which has 0 already loaded
this buffer has 1973 loaded transitions and there are now 78283 transitions total divided into 37 trajectories
loading from buffer 28 which has 2413 already loaded
this buffer has 4864 loaded transitions and there are now 80734 transitions total divided into 38 trajectories
loading from buffer 38 which has 2326 already loaded
this buffer has 5358 loaded transitions and there are now 83766 transitions total divided into 39 trajectories
loading from buffer 33 which has 1473 already loaded
this buffer has 3457 loaded transitions and there are now 85750 transitions total divided into 40 trajectories
loading from buffer 21 which has 0 already loaded
this buffer has 2198 loaded transitions and there are now 87948 transitions total divided into 41 trajectories
loading from buffer 30 which has 0 already loaded
this buffer has 2916 loaded transitions and there are now 90864 transitions total divided into 42 trajectories
loading from buffer 27 which has 0 already loaded
this buffer has 2128 loaded transitions and there are now 92992 transitions total divided into 43 trajectories
loading from buffer 34 which has 2718 already loaded
this buffer has 4650 loaded transitions and there are now 94924 transitions total divided into 44 trajectories
loading from buffer 33 which has 3457 already loaded
this buffer has 6102 loaded transitions and there are now 97569 transitions total divided into 45 trajectories
loading from buffer 12 which has 0 already loaded
this buffer has 3207 loaded transitions and there are now 100776 transitions total divided into 46 trajectories
loading from buffer 40 which has 0 already loaded
this buffer has 1369 loaded transitions and there are now 102145 transitions total divided into 47 trajectories
loading from buffer 3 which has 1200 already loaded
this buffer has 3316 loaded transitions and there are now 104261 transitions total divided into 48 trajectories
loading from buffer 42 which has 1190 already loaded
this buffer has 2969 loaded transitions and there are now 106040 transitions total divided into 49 trajectories
loading from buffer 5 which has 0 already loaded
this buffer has 2499 loaded transitions and there are now 108539 transitions total divided into 50 trajectories
loading from buffer 0 which has 0 already loaded
killed
(decision-transformer-atari) shy@user:~/decision-transformer$

Then it shows killed and I guess when loading the dataset，this problem is due to excessive memory usage and how to fix it？Thanks a lot.

Yes I have had this issue before, but unfortunately I am not sure how to fix it. It only happened for me on some machines when other jobs were running. It is possible that reducing to replay_capacity=100000 here https://github.com/kzl/decision-transformer/blob/c9e6ac0b75895cef3e7c06cd309fd398ec9ceef5/atari/create_dataset.py#L45 could help resolve the issue, but I have not tried this yet. Let me know if that works!

Yes I have had this issue before, but unfortunately I am not sure how to fix it. It only happened for me on some machines when other jobs were running. It is possible that reducing to replay_capacity=100000 here
https://github.com/kzl/decision-transformer/blob/c9e6ac0b75895cef3e7c06cd309fd398ec9ceef5/atari/create_dataset.py#L45
could help resolve the issue, but I have not tried this yet. Let me know if that works!

Thanks for your reply. It is just the CPU memory problem. And I have changed the replay_capacity=100,000 and then changed the num_steps=100,000also changed the follows:
line 65:  if i >= 100,000:

I'm not sure if I made the right changes, but the program works fine and shows as follows:
this buffer has 3207 loaded transitions and there are now 100776 transitions total divided into 46 trajectories
max rtg is 84
max timestep is 2632
epoch 1 iter 1573: train loss 0.67590. lr 5.600293e-04: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████| 1574/1574 [03:40<00:00,  7.14it/s]
target return: 90, eval return: 13
epoch 2 iter 1573: train loss 0.57056. lr 4.503075e-04: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████| 1574/1574 [03:51<00:00,  6.80it/s]
target return: 90, eval return: 14
epoch 3 iter 1573: train loss 0.38198. lr 3.002664e-04: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████| 1574/1574 [03:46<00:00,  6.96it/s]
target return: 90, eval return: 37
epoch 4 iter 1573: train loss 0.36018. lr 1.501538e-04: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████| 1574/1574 [03:47<00:00,  6.93it/s]
target return: 90, eval return: 26
epoch 5 iter 1573: train loss 0.22186. lr 6.000000e-05: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████| 1574/1574 [03:51<00:00,  6.79it/s]
target return: 90, eval return: 22

And it seems that the data is not enough, the eval return is less than the target, so do you have any suggestions? Thanks a lot.

Could you try keeping the original num_steps=500000 but using the reduced replay_capacity=100000? (I think the replay_capacity there can be smaller than num_steps since it is referring to the number of samples loaded from each of the 50 checkpoints).

Could you try keeping the original num_steps=500000 but using the reduced replay_capacity=100000? (I think the replay_capacity there can be smaller than num_steps since it is referring to the number of samples loaded from each of the 50 checkpoints).

Thanks for your quick reply. I have tried the original num_steps=500000 and the reduced replay_capacity=100000again, it still showskilled. And after checking $ top, I found the KiB Swap shows 0 free.

Hm, I'm not sure then. (As a last resort, does setting --trajectories_per_buffer 10 work?) I have been thinking about saving the 1% replay dataset which should fix this problem but that will take some time. Sorry I don't have a better fix at the moment!

Hm, I'm not sure then. (As a last resort, does setting --trajectories_per_buffer 10 work?) I have been thinking about saving the 1% replay dataset which should fix this problem but that will take some time. Sorry I don't have a better fix at the moment!

Great! It works well! And now it is about 380trajectories with max rtg = 98,max time step=2654. Then after training, I will paste the result here. Thanks again!

Yes that looks right! I will change the default trajectories_per_buffer in the scripts in case others have similar issues.

Hi I was facing the same issue and thus tried with the following config replay_capacity=100000 and trajectories_per_buffer=10, Max eval return I got is 65.
this buffer has 31057 loaded transitions and there are now 510358 transitions total divided into 380 trajectories
max rtg is 98
max timestep is 2654
  0%|                                                                                | 0/3987 [00:00<?, ?it/s]/home/pushkalkatara/mrd/conda/envs/decision-transfor-transformer-atari/lib/python3.7/site-packages/torch/nn/parallel/_functions.py:61: UserWarning: Was asked to gather along dimension 0, but all input tensors were scalars; will instead unsqueeze and return a vector.
  warnings.warn('Was asked to gather along dimension 0, but all '
epoch 1 iter 3986: train loss 0.82629. lr 5.598514e-04: 100%|████████████████████████████████████████████████████████████████████████████████| 3987/3987 [31:37<00:00,  2.10it/s]
target return: 90, eval return: 25
epoch 2 iter 3986: train loss 0.69285. lr 4.500607e-04: 100%|████████████████████████████████████████████████████████████████████████████████| 3987/3987 [28:00<00:00,  2.37it/s]
target return: 90, eval return: 65
epoch 3 iter 3986: train loss 0.54726. lr 3.000525e-04: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3987/3987 [29:35<00:00,  2.25it/s]
target return: 90, eval return: 32
epoch 4 iter 3986: train loss 0.49444. lr 1.500303e-04: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3987/3987 [31:52<00:00,  2.09it/s]
target return: 90, eval return: 49
epoch 5 iter 3986: train loss 0.44959. lr 6.000000e-05: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3987/3987 [27:16<00:00,  2.44it/s]
target return: 90, eval return: 65


Issue with including part query in macro

I have a TextArea in a part configuration.
This textArea can have macroes inside it.
Lets say the field is text
Then the query for the part needs to include:
text (processHtml:{}) {
    processedHtml
    macros {
                    ref
                    name
                    descriptor
                    <Insert the config for every macro in the system>
                }
    }
}

Now this will be too much to handle manually. Especially since the system can have any macro number of TextArea s or macroes.
Luckely the src\_enonicAdapter\guillotine\getMetaData.ts includes a function for getting them: RichTextQuery.
Now the does not work to include it a part query? It looks like the ComponentRegistry (defined in _mapping) is not include the macroes at the same stage?
So the RichTextQuery cant be used inside querys that get registered to the ComponentRegistry?
I would assume the ComponentRegistry was available when the macroes are defined higher up then the parts, but they don't seem to be registred at all?

To make sure that macros are available in the queries 2 things need to be satisfied:

Macros need to be registered first (There is a comment about that in _mappings.ts)
queries that use use richTextQuery need to be converted to functions to control when they are invoked (There is a comment about that in getMetaData.ts next to richTextQuery). It may actually work without that, but it's safer this way.

So to use macros in part config you need to register your macros first and then use richTextQuery:
ComponentRegistry.addMacro(`${APP_NAME}:panel2`, macroPanelConfig);

const childListConfig = () => `{
        sorting
        ${richTextQuery('desc')}
    }`

ComponentRegistry.addPart(`${APP_NAME}:child-list`, {
    query: getChildList,
    processor: childListProcessor,
    view: ChildList,
    configQuery: childListConfig()
});

@pmi I did this, but i thought it was a hacky way of doing it.
And when applying a change to the part config they show up as missing components.

@poi33 Those are not hacks, those are foundations of javascript 😆
The change showed missing because of lacking mappings import in _component.ts file that I fixed today, so that should not be an issue any more !

Nice, I'll check if it works today 🎉


Plug oldIE hacks wherever needed

We should plug IE hacks along with Ov-h and D-ib:
.D-ib {
    display: inline-block;
    *display: inline;
    zoom: 1;
}
.Ov-h {
    overflow: hidden;
    zoom: 1;
}

I've removed the Bfc helper classes as it will be meaningless to most users and also because it maps to overflow:hidden, so I think it's better people know what they are dealing with.

Do we need this for the 2.0.0 release?

It depends how we want to treat IE7? Not having this in will break that browser.

I believe this duplicates issue #38, so I'll close that one out in favor of this one, since this one covers Ov-h as well.

@thierryk Is this issue limited in scope to those two classes, or do you mean to track all cases where oldIE support is needed?  If the latter, I'm thinking we should target this for a 2.x release, and not hold up 2.0 waiting on it.  Thoughts?

Yes, those 2 are the only ones that come to mind.

@thierryk Talking to @renatoi, we're thinking this belongs in a post-processing step, which would be outside of Atomizer.  We could, however, create an "atomizer-examples" repo to demo various things (grids, grunt, workflows, etc) and post-processing for IE could be one of those examples we offer.  Thoughts?

@renatoi @src-code I like the idea but I don't think we can go this route. We are a library that pretends to help people build whatever they want, but right there we'd need to tell people things would fail in old IE unless they use a post-processor or add rules themselves (rules we would have to tell them about).
Can't we simply dump these extra declarations when needed?


Add pnpm support

pnpm package manager has unique feature and used by big projects (Vue, PostCSS, etc).
It uses the same package.scripts. Seems like we just need to add pnpm … prefix.
Can we have pnpm support in this script for the glory of package manager diversity?

That's a good idea also to add the pnpm package manager, and it seems like the basic implementation is not hard to do, but I just noticed that they already have their own completion script, which also supports package.scripts (docs here https://pnpm.io/completion). And they also have an awesome package (https://github.com/pnpm/tabtab) that makes such autocompletion easier to make. So, it seems like these two shell extensions are going to conflict with each other, and I don't know if the integration (between my plugin and theirs) is worth it.
But sure, I'll add a basic integration.


explicit labeling gets appended when a  run with a search is executed

Hi - Currently when one preforms a grid search over parameters  guild automatically inserts the run's parameters into the label.  This was desired behavior before all the parameters had there own columns.

Desired Behaviour
guild run pretrain --label pretrain encoder_lr=[0.001:1.0]

Ideally the default for label would be the operation i.e. . /code/damsm: pretrain

Yeah, this sounds right - if you specify a label for the run, it should override the default completely.
Look for this fix in the next pre-release.

Teed up for 0.6.4 in d80853b.

This is generally available now so closing. Thanks again for the report!


Suggest Reforges - Not Working

Bug Description:
I've been using the Suggest Reforge feature via the Sim Options > Show Experimental check box. This has worked amazingly until today. Now, all I get is a spinner inside the Suggest Reforge button. I've tried clearing, refreshing, and changing things, but I have the same result.
This just started happening today.

This is fantastic work; thank you for creating this!

@DevinDyer24 Can you provide the following:

Export Link so we can reproduce it
Which browser you are using (Operating System as well)

I deleted cache and reset everything. It's now good and working. Thanks for the quick reply. I am using Chrome.


Persisting nipost state is done inefficiently

Description
NiPoST state persistence can be optimised to avoid coping data when writing or reading state from disk. The general process should be:
writing:

create a new temporary file
write CRC (as zeroes) to file
use a io.MultiWriter to write to the file and calculate CRC simultaneously
seek back to the beginning of the file and update CRC
use atomic.ReplaceFile to replace existing file with new file

reading:

read CRC
use a io.TeeReader to calculate CRC while reading the file
decode data by reading from io.TeeReader
compare calculated CRC with CRC read from file
check if all data has been read from file while decoding (i.e. did read end in io.EOF?)

Affected code

Functions in activation/nipost_state.go
Possibly other places where data is persisted to disk
Discussion can be found here: https://github.com/spacemeshos/go-spacemesh/pull/4493/files#r1226351812

@fasmat , IMO, it's not required for genesis.

@poszu  Changing the file layout will make it more difficult to change it later


stopPlayer() not workin

Version of react-native-audio-recorder-player
react-native-audio-recorder-player": "^2.5.2
Platforms you faced the error (IOS or Android or both?)
iOS - simulator
Expected behavior
Stop audio
Actual behavior
Audio keeps playing
Steps to reproduce the behavior

Signup
Press microphone icon
click next till you get to recording screen
Press listen to question button
Press Stop question -- Question won't stop

Hi,
I'm trying to stop the audio which I'm playing from a URL linked to my s3 bucket. Playing the audio works fine but when I go to stop it for some reason it doesn't work. See below code. Any help would be appreciated.
I've double checked if everything was referencing and if the pauseAudio function was being called, which all was.

Parent Component: StoryRecordingScreen

 const audioRecorderPlayer = new AudioRecorderPlayer();

  // Pause Audio
  const pauseAudio = async () => {
    audioRecorderPlayer.stopPlayer();
    audioRecorderPlayer.removePlayBackListener();
    return setRecordingStatus("IDLE");
  };

        <StoryQuestionSectionComponent
          questionTitle={questions ? questions[questionIndex].title : null}
          questionAudioURL={questions ? questions[questionIndex].audioFileURL : null}
          questionID={questions ? questions[questionIndex].id : null}
          isAudioPlaying={recordingStatus}
          playAudio={(audioFile) => playAudio(audioFile)}
          pauseAudio={() => pauseAudio()}
          questionAudioPlaying={(isAudioPlaying) => setRecordingStatus(isAudioPlaying)}
          capturedAudio={recordedAudioFile}
        />

Child Component
        return (
          <TouchableOpacity onPress={() => pauseAudio()} style={styles.touchableOpacityContainer}>
            <MaterialCommunityIcons
              name="stop-circle"
              size={ICON_SIZE.iconSizeLarge}
              color={COLOR.white}
            />
            <Text> Stop question </Text>
          </TouchableOpacity>
        );

Hopefully, this would fix in 2.5.3 related to #220. Feel free to reopen if there is still a problem.


Automatically roll Deployment when ConfigMap change

Hi @robsonpeixoto,
Thank you for your contribution! We really value the time you've taken to put this together.
Before we proceed with reviewing this pull request, please sign the Lightbend Contributors License Agreement:
https://www.lightbend.com/contribute/cla

Interesting.  IIUC this will recreate the replicaset any time the configmap is changed (via helm or otherwise).
For reference: https://medium.com/flant-com/configmaps-in-kubernetes-f9f6d0081dcb


Parameterized unload throws an error

Driver version
2.0.877
Redshift version
PostgreSQL 8.0.2 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3), Redshift 1.0.25109
Client Operating System
Ubuntu 20.04
Python version
3.8.5
Table schema
N/A
Problem description

Expected behaviour: An unload is executed successfully when a parameterized expression is used.
Actual behaviour: An error is thrown.
Error message/stack trace:

> python3 test_unload.py
Traceback (most recent call last):
  File "test_unload.py", line 16, in <module>
    cursor.execute(f"""
  File ".../lib/python3.8/site-packages/redshift_connector/cursor.py", line 162, in execute
    self._c.execute(self, operation, args)
  File ".../lib/python3.8/site-packages/redshift_connector/core.py", line 1016, in execute
    self.handle_messages(cursor)
  File ".../lib/python3.8/site-packages/redshift_connector/core.py", line 1172, in handle_messages
    raise self.error
redshift_connector.error.ProgrammingError: {'S': 'ERROR', 'C': '42601', 'M': 'syntax error at or near "$1"', 'P': '14', 'F': '/home/ec2-user/padb/src/pg/src/backend/parser/parser_scan.l', 'L': '718', 'R': 'yyerror'}

Any other details that can be helpful: the test code works when all parameters are hardcoded.

Python Driver trace logs
N/A
Reproduction code
test_unload.py:
import os

import redshift_connector

conn = redshift_connector.connect(
    host=os.getenv("REDSHIFT_HOST"),
    database=os.getenv("REDSHIFT_DATABASE"),
    user=os.getenv("REDSHIFT_USER"),
    password=os.getenv("REDSHIFT_PASSWORD"),
)

destination = os.getenv("REDSHIFT_UNLOAD_DESTINATION")
role = os.getenv("REDSHIFT_UNLOAD_ROLE")

cursor = conn.cursor()
cursor.execute(f"""
    UNLOAD (%s)
    TO '{destination}'
    IAM_ROLE '{role}'
    PARALLEL OFF
""", ['SELECT id FROM mydb.accounts WHERE id = 0'])
print(cursor.fetchall())

Hi @GergelyKalmar ,
Thank you for reaching out. I was able to reproduce the behavior you saw using the code snippet included.
Amazon Redshift does not support prepared statements for UNLOAD, and therefore redshift_connector does not support this functionality.
Amazon Redshift supports prepared statements for SELECT, INSERT, UPDATE, and DELETE. See Amazon Redshift Database Developer Guide for more information.

Hi @Brooke-white, thank you for the response!
Hm, this is interesting because sqlalchemy-redshift does in fact use bound parameters for its unload statements and it works just fine (although it uses the PostgreSQL driver under the hood). The unload statement there produces the following SQL:
UNLOAD (%(select)s) TO %(unload_location)s
CREDENTIALS %(credentials)s

It is a little bit of a problem that we can't use parameters at all in unload statements with this driver – escaping all parameters properly is much harder to do securely than using bound parameters. This opens up a pretty large target area for SQL injection attacks when using user-provided parameters in analytical applications.

Hey @GergelyKalmar ,
Yes, this is a strange issue. I've verified our Amazon Redshift JDBC driver does not support using bound parameters for unload statements, which along with the reference I included above ref makes me wonder if psycopg2, the PostgeSQL driver used for sqlachemy-redshift, is doing something differently than redshift_connector when it comes to passing parameters to the server.
I've gone ahead and reached out to our Amazon Redshift server team to gain some clarity on this issue and will report back with our findings. I definitely see benefit in providing end-users the increased security and flexibility to use bound parameters in as many cases as possible :)

Hey @GergelyKalmar ,
The Amazon Redshift server team has confirmed that this functionality is not supported. The content in () must be a single quote string that contains a query. See UNLOAD - Amazon Redshift for more details.
UNLOAD ('select-statement')
TO 's3://object-path/name-prefix'
authorization
[ option [ ... ] ]

where option is
{ [ FORMAT [ AS ] ] CSV | PARQUET
| PARTITION BY ( column_name [, ... ] ) [ INCLUDE ]
| MANIFEST [ VERBOSE ]
| HEADER
| DELIMITER [ AS ] 'delimiter-char'
| FIXEDWIDTH [ AS ] 'fixedwidth-spec'
| ENCRYPTED [ AUTO ]
| BZIP2
| GZIP
| ZSTD
| ADDQUOTES
| NULL [ AS ] 'null-string'
| ESCAPE
| ALLOWOVERWRITE
| CLEANPATH
| PARALLEL [ { ON | TRUE } | { OFF | FALSE } ]
| MAXFILESIZE [AS] max-size [ MB | GB ]
| REGION [AS] 'aws-region' }

As for how psycopg2 is supporting bound parameters here -- I am unsure, but would assume the server receives the UNLOAD statement with a single quote string within the ().
I'll discuss with the Amazon Redshift driver team and see what we can do here.

Hi @Brooke-white, the best solution would be if UNLOAD would allow us to use a sub-query (just like a CREATE TABLE AS expression does) instead of expecting the query as a string (while allowing us to bind parameters too, of course). Right now it would be difficult to avoid SQL injection attacks even if we could bind parameters like sqlalchemy-redshift does (at least in cases where the 'select-statement' query needs to be built during runtime).
See for example this line: https://github.com/sqlalchemy-redshift/sqlalchemy-redshift/blob/master/sqlalchemy_redshift/commands.py#L428, which uses literal_binds to parse the query into a string, however, literal_binds is actually not safe to use on expressions with untrusted input (see docs). If sub-queries were allowed this problem would not arise.

``Hello everyone,
this is my first GitHub post, so bare with me. I think I found a solution.
For context, I'm using RedShift with MacOS.
I ran into similar error where I'm trying to enter variables/parameters into a formatted string to create an SQL query, and with that string of text I use Redshift Connector for Python to execute those queries.
I think I found a solution in my case:
so rather than using this syntax:
`
startDate = '2022-01-01'
endDate = '2022-02-01'
string = f""" select * from table where time between {startDate} and {endDate}"""
connector.cursor().execute(string)`
I used:
`
startDate = '2022-01-01'
endDate = '2022-02-01'
string = """ select * from table where time between {} and {}""".format(startDate, endDate)
connector.cursor().execute(string)`
the difference here is that we're using the .format method to construct our query-string rather than the conventional f-strings.

Hey @djciregethigher ,
Thank you for sharing your findings and congrats on your first post :). When comparing the output from the two code blocks, it seems to be identical. Could you please help me understand?
startDate = '2022-01-01'
endDate = '2022-02-01'

string1 = f""" select * from table where time between {startDate} and {endDate}"""
print(string1)

startDate = '2022-01-01'
endDate = '2022-02-01'

string2 = """ select * from table where time between {0} and {1}""".format(startDate, endDate)
print(string2)

print(string1 == string2)

>>> select * from table where time between 2022-01-01 and 2022-02-01
>>> select * from table where time between 2022-01-01 and 2022-02-01
>>>True

Not sure if this applies to your use case, but redshift_connector supports parameterization without needing to use format strings which can be a bit cleaner and provide protection against sql injection. I've put an example of how to do this below using Redshift MONTHS_BETWEEN function.
with redshift_connector.connect(...) as conn:
    with conn.cursor() as cursor:
        cursor.execute("select months_between(%s,%s);", (endDate, startDate))

>>> ([1.0],)

If you continue to experience issue with this or any other redshift_connector functionality feel free to open a new issue and we can work to debug/fix any issue at hand :).

HI @Brooke-white . I've encountered this same issue with the Redshift's UNLOAD statement lacking support for binding parameters into the SELECT query. This represents a significant limitation and opens up a potential SQL injection attack vector for anyone trying to parametrise their UNLOAD statement's queries with user-supplied parameters and values.
Would appreciate an update on this, and especially on what would be the AWS Redshift team's recommended, security risk-free alternative to this functionality?
Thanks.

Hi @dschiavu , I have re-raised this request with the Redshift server team. I agree, adding bind parameter support for UNLOAD statements is a great opportunity for improving security and usability.
At this time, my personal recommendation would be to use what we have available to protect against SQL injection. This doc notes many defensive actions we can take. But I do understand best practices and the linked doc prefer bind parameters as a primary defense against SQL injection.

Thanks for your quick reply @Brooke-white , and thanks for re-raising this issue with the Redshift server team.
While trying to devise a workaround for this, a colleague of mine has thought up a workaround: instead of binding the parameters into the UNLOAD query itself (which is not supported by Redshift), we could simply bind them to the inner sub-query inside the UNLOAD's ( ) first (which happens to be a SELECT query - which is probably the most common subquery used within UNLOAD statements by most Redshift users, I'd say) and run this sub-query first, perhaps with a LIMIT 1 or 1=0 condition, to limit its running time. This would let us use Redshift's prepared statement support (which is indeed supported for SELECT queries) to bind and validate the potentially risky, user-supplied parameters first.
Subsequently, if the sub-query executed successfully without any errors or exceptions, we could assume that the sub-query is safe, thus allowing us to wrap the sub-query back into the UNLOAD parent statement, but this time replacing the bind parameters with actual user-supplied parameters (simply concatenating them), which have now been validated in the previously run SELECT query.
Of course, this workaround assumes that no other parameters would be bound outside of the UNLOAD's query inside the ( ).
To give an example, say we need to run this query:
UNLOAD ('SELECT * FROM students WHERE surname = :surname')
TO 's3://some-bucket/students/'
IAM_ROLE 'arn:aws:iam::1234567890123:role/MyRedshiftRole'

As is, we can't bind :surname into this query, this is unsupported for UNLOAD statements. But we can extract the inner query:
SELECT * FROM students WHERE surname = :surname LIMIT 1

... bind the :surname parameter, and execute it.
If the query succeeds, we could then wrap it up back into the parent UNLOAD statement, this time removing the bind parameter and replacing it with the user-supplied input directly, knowing that we just validated it successfully:
UNLOAD ('SELECT * FROM students WHERE surname = "Smith"')
TO 's3://some-bucket/students/'
IAM_ROLE 'arn:aws:iam::1234567890123:role/MyRedshiftRole'

What is your (and the Redshift server team's) opinion on this workaround? Would you see any potential risks with this two-phased approach?


Music (of a sort)

Replacing the old drum'n'bass soundtrack

LOL
On Sun, 1 Oct 2023 at 19:45, Adrian McMenamin @.***>
wrote:

@.**** approved this pull request.
wow
—
Reply to this email directly, view it on GitHub
https://github.com/ConorMcPersonal/Toaster/pull/34#pullrequestreview-1651946354,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BBJUJTZNJ5RSSSJVZX7HSATX5G24LANCNFSM6AAAAAA5OPH76E
.
You are receiving this because you authored the thread.Message ID:
@.***>


[W5.4b][W13-A1]Dominic Kenn Lim

Change parseCommand in Parser class to static.
Add Person creation sequence number feature.

@dominickenn
Some comments added. Please ack & close the PR after reading comments.

Acknowledged.


Makefile,scripts: Introduce additional verification checks

Introduce the scripts/check-staging-vendor.sh bash script that's
responsible for ensuring the API, operator-registry, and
operator-lifecycle-manager staging repositories have up-to-date go.sum
and go.mod files. This is namely helpful for validating that
cherrypicked commits have updated the nesting module dependencies when
pulling changes downstream.
Update the verify target in the root Makefile and add additional targets
responsible for ensuring that the CVO manifests (the root manifest
directory) have been properly rendered after changes made to the helm
chart(s), verifying the nested vendor contains an updated go.sum and
go.mod when pulling down changes.

/retest

/retest

/retest

/lgtm
/hold

Verification check passed - no need to take e2e leases for a non-code PR.
/override ci/prow/e2e-aws-console-olm
/override ci/prow/e2e-aws-olm
/override ci/prow/e2e-gcp
/override ci/prow/e2e-upgrade

/retest
/hold cancel

/retest

/override ci/prow/unit-olm


Bonner Cohort Selection

When we create a Bonner Scholars Event, we can invite Bonner cohort or cohorts, using the checkbox. Once the cohort is selected, it creates a Bonner Scholars Event with volunteers that were in the Bonner cohort selected. However, if we start editing that event, the checkbox is unchecked, which allows us to select the exact same cohort, even though the volunteers would still be the same. The checkbox doesn't keep consistency when we check it, which makes it confusing. The checkbox should keep being checked when we check it, even after we go into editing the event.

Excellent issue creation but this is a duplicate issue of issue #1295. This is being worked on in PR https://github.com/BCStudentSoftwareDevTeam/celts/pull/1297. Therefore, I shall close this issue and delete the trello card.


ALSA Problems

Thanks for your supports.
I have another problems.
I can get the angle from Mic  Array by running "python kws_doa.py"
But, three is ALSA problems.
Could you recommend how to fix?
jaehoon@jaehoon-UP:~/Workspace/ReSpeaker/mic_array$ ls /usr/bin | grep alsa
alsabat
alsaloop
alsamixer
alsamixergui
alsatplg
alsaucm
jaehoon@jaehoon-UP:~/Workspace/ReSpeaker/mic_array$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: Array [ReSpeaker Microphone Array], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
jaehoon@jaehoon-UP:~/Workspace/ReSpeaker/mic_array$ python kws_doa.py
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
...............
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for<PHONE_NUMBER>, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for<PHONE_NUMBER>, skipping unlock
(0, 'ReSpeaker Microphone Array: USB Audio (hw:1,0)', 8L, 2L)
Use ReSpeaker Microphone Array: USB Audio (hw:1,0)
120
60

It seems not a problem. Are you trying to avoid the following output message?
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
...............
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for<PHONE_NUMBER>, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for<PHONE_NUMBER>, skipping unlock

Will close this issue, please open a new issue if you have further questions.


Fix for setting values directly in array subscripts in ODocument

This fixes an issue where it is currently impossible to set the value at a position in an embedded list using the ODocument.field(String, Object) method.  The details of the issue are outlined in issue #4727.

Close.  Will resubmit to fix some issues.


🐛 BUG: warning always received about multiple bind addresses

Which Cloudflare product(s) does this pertain to?
Wrangler core
What version(s) of the tool(s) are you using?
3.8.0
What version of Node are you using?
18.17.1
What operating system are you using?
Windows 10
Describe the Bug
Every time that you start wrangler dev, you get a large red error like so (from workerd it would seem):

kj/async-io-win32.c++:982: warning: Bind address resolved to multiple addresses.  Only the first address will be used.  If this is incorrect, specify the address numerically.  This may be fixed in the future.; addrs[0].toString() = <IP_ADDRESS>:59208

It's possible that this only occurs in Windows, or when a machine has multiple network adapters. Hitting b still works fine, and opening up http://<IP_ADDRESS>:8787/ is fine too, so perhaps the error should just be hidden?
Reproduction steps

npm create cloudflare@latest
use all defaults
cd into worker dir and run npm start

I was installing PartyKit.io that uses cf and got the same error.

Same error
Windows 11

Same here.

Windows 10
Multiple ips provided, but no one seems to be working.

This also appears every single time the server reloads too.

Found a quick fix of the above for win10.
Use wrangler with parameter: --ip=<IP_ADDRESS> to specify exact ip to bind.

I still get the error, but its acting like there is only one address, so rebuilds work now. Thanks 👍


Add missing changelog for 6.2.5

Q
A

Bug fix?
no

New feature?
no

Doc update?
no

BC breaks?
no

Deprecations?
no

Fixed tickets
---

License
MIT

This is based on the commits:
698a6a9 bug #1317 Don't trust properties at destruct time (nicolas-grekas)
59935da minor #1315 Remove invalid PHPDocs param in EventDispatcher interface (michal...
0ce398a Bump license year
99d6207 Remove invalid PHPDocs param in EventDispatcher interface
a5261eb minor #1314 Fix CS for variable names (fabpot)
79efd15 Fix CS for variable names
636117b minor #1313 fix typos in tests files (abdounikarim)
1047591 fix typos in tests files
7de4089 minor #1311 Removes PHP version from README (derrabus)
a07dabf Removes PHP version from README.

Thank you @OskarStark.

Thank you @OskarStark.


Latest version (1.0.*) not released to Bower

Make sure these boxes are checked before submitting your issue -- thank you!

[x] Check FAQ and Caveats
[x] Search if there's already one reported in Issues
[ ] Prepare a JSFiddle reproducing the issue

perfect-scrollbar JSFiddle

[ ] Provide a page or source code where the issue can be checked

Ok sorry found this https://github.com/utatti/perfect-scrollbar-bower deprecation warning.


The identity provider configurations will be removed onced we configure App Service to return a usable access token

When configure App Service to return a usable access token as documented here. The frontend identity provider will be deleted from the azure portal as follow:
Executing the following command:

Then, in the azure portal the authentication configuration will be removed as follow:

Which will cause the app to crash!

Is this expected behavior and if so? Is it possible to highlight this in the doc.

Also, the frontend app Issuer URL must match this doc  in-order to make this tutorial works correctly.

And finally, due to the above mentioned identity provider configurations removal, the scopes registered in this step  must be reconfigured as well.
To fix this, I had to either use MSAL library to add the scopes or manually add the missing scope via Azure Resource Explorer as follow:

At the top of the page, select Read/Write.
In the left browser, navigate to subscriptions > <subscription_name > resourceGroups > <resource_group_name> > providers > Microsoft.Web > sites > <frontend_app_name> > config > authsettingsV2.
Then add the add the scope parameter to identityProviders.azureActiveDirectory.login.loginParameters as follow:

Now, if we navigate o the frontend we should see the new scope available as follow:

Can you check and confirm if this tutorial needs to be updated to address the highlighted points above.
Thanks!

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

ID: 28fe407c-980d-6dfc-305c-63202534bf48
Version Independent ID: 09bed06c-ca37-a511-b4a4-0028e76f8919
Content: Tutorial: Authenticate users E2E - Azure App Service
Content Source: articles/app-service/tutorial-auth-aad.md
Service: app-service
GitHub Login: @cephalin
Microsoft Alias: cephalin

Thanks for the feedback! We are currently investigating and will update you shortly. @blackadi, could you further elaborate on the experience you see when you say
> Which will cause the app to crash!
Can you describe the experience? In you last screen shot, I couldn't see the response information, too fuzzy.

@RyanHill-MSFT, the app will crash since the identity provider will be deleted for the frontend app, and 401 Unauthorized will be thrown when navigate to it, as shown below:

After re-configuring the frontend app identity provider authentication and authorization it will work, and also the scopes registered in this step  and the Issuer URL  must be reconfigured as well due to the same issue.
Before reconfigured:

After reconfigured:

The last screen shot shared is just to show the site working without 401 Unauthorized error code, as follow:

Thanks for the info @blackadi. I was looking at the authV2 code and it looks like the set and update commands initiate a PUT against the authsettingsV2 REST API method which could overwrite the settings. You can verify this using --debug at the end of the command. I'll discuss with the content author about updating the doc to reflect this or if something can be done on the CLI side of things.

@RyanHill-MSFT thanks for highlighting the authV2 code behavior.

@blackadi Sorry about that. There's indeed a bug in the steps. I've added a fix.

@blackadi Thank you so much for raising this issue! I've been blocked on getting this flow working, and I suspected that something was off with the tutorial that was provided :).


Subscription links add colour and tracking

Adds colour branding options and the ability to add tracking to the subscription links component.
Component guide: https://govuk-publishing-compon-pr-299.herokuapp.com/component-guide/subscription-links
Trello card: https://trello.com/c/NjgS3vym/55-modify-component-subscription-links

Also possibly out of scope of this PR, but the component guide page for this component now errors because of a duplicate ID.

@vanitabarrett have fixed the duplicate id problem, I'd spotted it but was being lazy :)


No longer working for Vue component

Was working fine for Vue.js single file components up until recently.

I'm not sure if this is the right place for this. If not, sorry, and I'm happy to be pointed in the right direction.

Here, the vue syntax reports the script/js content wrong.

Pro-tip: use eslint with the vue plugin.
With some work you can get the selector to work most of the times, but the syntax is just completely broken. They can't expect any plugin to work with the vue syntax in its current state.

So is there no way to make this work with jshint? eslint is too agro for our codebase... but we need support for single-file *.vue components.

Sure, there is. As I said, the root cause is:

the syntax is just completely broken

If the vue syntax cleans up its act to properly delineate the different embedded syntaxes, both eslint and jshint can be made to deal with it without plugins. Someone just needs to put a little effort into the vue syntax. It's not hard, and probably not even more than a few hours work. If you care about this combo for your team, perhaps you can give it a try.

This tells us what’s what: https://packagecontrol.io/packages/Vue Syntax Highlight.

Just wanted to give my 2 cents as I ran into the same issue. Here's a quick example:

I have the Vue Syntax Highlight plugin installed as well, which does highlight my code correctly. But the linter doesn't understand what's in the <script> element. So if I fix according to what Sublime tells me, it doesn't match what the actually linting config wants:

Anyway, I did what @kevin611003 suggested and added this to my SublimeLinter.sublime-settings file:
{
  "linters": { "eslint": { "disable": false, "args": [], "excludes": ["*/*.vue"] } }
}

Hope this helps anyone.

Just wanted to give my 2 cents as I ran into the same issue. Here's a quick example:

I have the Vue Syntax Highlight plugin installed as well, which does highlight my code correctly. But the linter doesn't understand what's in the <script> element. So if I fix according to what Sublime tells me, it doesn't match what the actually linting config wants:

Anyway, I did what @kevin611003 suggested and added this to my SublimeLinter.sublime-settings file:
{
  "linters": { "eslint": { "disable": false, "args": [], "excludes": ["*/*.vue"] } }
}

Hope this helps anyone.


integration: Fix overflowing display name on open collective page.

Removed extra text to stop display name from flowing out of logo
container.

discussion: https://chat.zulip.org/#narrow/stream/9-issues/topic/integration.20name.20doesn't.20fit

Merged, thanks for catching this @amanagr!


"Clip created!" message not picked up by filter

Describe the bug
Filter picks up "Creating clip..." message, but not "Clip created! Copy link to clipboard or edit it in browser. "
Weirdly enough it picks it up as a system message without message.content filter, but not with it.
To reproduce
(flags.system_message) && (message.content) contains ("clip")
or
(flags.system_message) && (message.content) contains ("created")
Screenshots

Chatterino version
Chatterino Nightly 2.2.3-beta2 (commit 277289db5, )
Operating system
Win 10

I also noticed that basically all the messages built with MessageBuilder functions are not "findable", example: https://github.com/Chatterino/chatterino2/tree/master/src/providers/twitch/IrcMessageHandler.cpp#L699

Why was this closed?


visual problem with drag and drop

Regression?
No
System Info and Version
 System/Version info
Hyprland, built from branch main at commit 8f9887b0c9443d6c2559feeec411daecb9780a97  ().
Date: Mon Sep 02 08:09:44 2024
Tag: , commits: 5181

flags: (if any)

System Information:
System name: Linux
Node name: fedora
Release: 6.10.6-200.fc40.x86_64
Version: #1 SMP PREEMPT_DYNAMIC Mon Aug 19 14:09:30 UTC 2024

GPU information:
00:02.0 VGA compatible controller [0300]: Intel Corporation Iris Plus Graphics G1 (Ice Lake) [8086:8a56] (rev 07) (prog-if 00 [VGA controller])

os-release: NAME="Fedora Linux"
VERSION="40 (KDE Plasma)"
ID=fedora
VERSION_ID=40
VERSION_CODENAME=""
PLATFORM_ID="platform:f40"
PRETTY_NAME="Fedora Linux 40 (KDE Plasma)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:40"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f40/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=40
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=40
SUPPORT_END=2025-05-13
VARIANT="KDE Plasma"
VARIANT_ID=kde

plugins:

======Config-Start======

Config File: /home/daniele/.config/hypr/hyprland.conf: Read Succeeded

# #######################################################################################
# AUTOGENERATED HYPR CONFIG.
# PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hypr.conf AND EDIT IT,
# OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS.
# #######################################################################################

# This is an example Hyprland config file.
# Refer to the wiki for more information.
# https://wiki.hyprland.org/Configuring/Configuring-Hyprland/

# Please note not all available settings / options are set here.
# For a full list, see the wiki

# You can split this configuration into multiple files
# Create your files separately and then link them to this file like this:
# source = ~/.config/hypr/myColors.conf

################
### MONITORS ###
################

# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=,preferred,auto,1

###################
### MY PROGRAMS ###
###################

# See https://wiki.hyprland.org/Configuring/Keywords/

# Set programs that you use
$terminal = kitty
$fileManager = dolphin
$menu = wofi --show drun

#################
### AUTOSTART ###
#################

# Autostart necessary processes (like notifications daemons, status bars, etc.)
# Or execute your favorite apps at launch like this:

# exec-once = $terminal
# exec-once = nm-applet &
# exec-once = waybar & hyprpaper & firefox

#############################
### ENVIRONMENT VARIABLES ###
#############################

# See https://wiki.hyprland.org/Configuring/Environment-variables/

env = XCURSOR_SIZE,24
env = HYPRCURSOR_SIZE,24

#####################
### LOOK AND FEEL ###
#####################

# Refer to https://wiki.hyprland.org/Configuring/Variables/

# https://wiki.hyprland.org/Configuring/Variables/#general
general {
    gaps_in = 5
    gaps_out = 20

    border_size = 2

    # https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
    col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
    col.inactive_border = rgba(595959aa)

    # Set to true enable resizing windows by clicking and dragging on borders and gaps
    resize_on_border = false

    # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
    allow_tearing = false

    layout = dwindle
}

# https://wiki.hyprland.org/Configuring/Variables/#decoration
decoration {
    rounding = 10

    # Change transparency of focused and unfocused windows
    active_opacity = 1.0
    inactive_opacity = 1.0

    drop_shadow = true
    shadow_range = 4
    shadow_render_power = 3
    col.shadow = rgba(1a1a1aee)

    # https://wiki.hyprland.org/Configuring/Variables/#blur
    blur {
        enabled = true
        size = 3
        passes = 1

        vibrancy = 0.1696
    }
}

# https://wiki.hyprland.org/Configuring/Variables/#animations
animations {
    enabled = true

    # Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more

    bezier = myBezier, 0.05, 0.9, 0.1, 1.05

    animation = windows, 1, 7, myBezier
    animation = windowsOut, 1, 7, default, popin 80%
    animation = border, 1, 10, default
    animation = borderangle, 1, 8, default
    animation = fade, 1, 7, default
    animation = workspaces, 1, 6, default
}

# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
dwindle {
    pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
    preserve_split = true # You probably want this
}

# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
master {
    new_status = master
}

# https://wiki.hyprland.org/Configuring/Variables/#misc
misc {
    force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
    disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :(
}

#############
### INPUT ###
#############

# https://wiki.hyprland.org/Configuring/Variables/#input
input {
    kb_layout = us
    kb_variant =
    kb_model =
    kb_options =
    kb_rules =

    follow_mouse = 1

    sensitivity = 0 # -1.0 - 1.0, 0 means no modification.

    touchpad {
        natural_scroll = false
    }
}

# https://wiki.hyprland.org/Configuring/Variables/#gestures
gestures {
    workspace_swipe = false
}

# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
device {
    name = epic-mouse-v1
    sensitivity = -0.5
}

###################
### KEYBINDINGS ###
###################

# See https://wiki.hyprland.org/Configuring/Keywords/
$mainMod = SUPER # Sets "Windows" key as main modifier

# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, Q, exec, $terminal
bind = $mainMod, C, killactive,
bind = $mainMod, M, exit,
bind = $mainMod, E, exec, $fileManager
bind = $mainMod, V, togglefloating,
bind = $mainMod, R, exec, $menu
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle

# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d

# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10

# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10

# Example special workspace (scratchpad)
bind = $mainMod, S, togglespecialworkspace, magic
bind = $mainMod SHIFT, S, movetoworkspace, special:magic

# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1

# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow

##############################
### WINDOWS AND WORKSPACES ###
##############################

# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules

# Example windowrule v1
# windowrule = float, ^(kitty)$

# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$

windowrulev2 = suppressevent maximize, class:.* # You'll probably like this.

======Config-End========

Description
when dragging things around, it leaves lines around.
How to reproduce
The easiest way to reproduce is using dolphin. I have tested and the problem also persist in other apps, but i will explain how to reproduce it on dolphin.

open dolphin
get in a directory with some file
drag around a file
the lines are shown until the file is dropped

Crash reports, logs, images, videos
https://github.com/user-attachments/assets/f9a65ed9-3079-4ece-9512-c5faf2af10f4
Note: i tried recording the screen with obs, but obs wasn't able to capture the problem. I had to record the screen with my phone to show the issue. I am sorry for the poor video quality

it also show lines when pseudo window resize,  but it's not a big deal for me.

Not sure if related problem, but resizing tiled windows (resizeactive [,-]20 0) also has buggy borders / background color. It gets fix when I move the focus to another window.


TEST from outside branch

Signed-off-by: Sebastien Boeuf<EMAIL_ADDRESS>

Jenkins is ready, this PR can be closed.


Vue3 + Vite ， Cannot read properties of null (reading 'isCE')

Hi,
I use<EMAIL_ADDRESS>and Vue3 with Vite, but I got error when excute vite  command:
'runtime-core.cjs.js:6504 Uncaught TypeError: Cannot read properties of null (reading 'isCE')'

thx

According to this answer this issue is caused by having Vue imported from multiple packages instead of using just one singleton. Persumably you are building your consumer application using Vite, so in that case addign following to the Vite's config should help.
resolve: {
  dedupe: [
    'vue'
  ]
},

解决了吗


Submit new Library  GU140X32F_7703A

Adafruit_GFX driver for the GU140X32F-7703A display. There's loads of them on AliExpress.

@ArduinoBot Added tag and release


Allow a publisher to reconnect without disconnecting readers

Describe the feature
When a publisher has not connected yet or has disconnected, a blank stream or a fallback stream should be shown to readers. As soon as the publisher reconnects, its stream is routed to readers again.
The original stream, the fallback stream and the blank screen screen must have the same number of tracks and the same codecs, therefore this feature requires some kind of configuration:
paths:
  mypath:
    alwaysAvailable: yes
    alwaysAvailableTracks:
    - codec: h264
    - codec: opus

All streams (main one and fallback) are checked for codecs before being activated.

This feature could be very useful to me. Is its implementation in progress?
At the moment, with the latest release (builded from main branch code), i get alwaysAvailable field not existing.
Thank you.

It would also be good if there is an option to wait until a timeout is reached to check if the publisher reconnects and continue sending frame. Currently all the readers are disconnected immediately.

any news on this feature?

Also curious if there are any plans to make it happen anytime soon :)

Are there any updates regarding this feature?

If I understand this correct, this would give the user the ability to have a stream and insert a "No Video.' or "No Input Available" type message into the stream itself?

This would be an incredibly good feature, currently the only thing I need to get my gold standard home RTSP server

I would like to implement this feature, because I am looking for a way how to acheive exactly this behavior for RTMP ingest. While my research I found out that liquidsoap has already something experimental like this issue and there is a way how to acheive it with gstreamer in rust.
@aler9 is there any idea / hints from your side how to implement this freatue? Some information that would be beneficial for me to know before I fork this repository and start tinkering with possible solutions? Thanks.

mistserver , have failover streaming feature.


feat: expose more Theme props

Summary by Sourcery
Expose additional theme properties in the Theme class and refactor the ChipTheme class for improved clarity.
New Features:

Expose additional theme properties such as splash_color, highlight_color, hover_color, focus_color, and others in the Theme class.

Enhancements:

Refactor the ChipTheme class to rename delete_icon_constraints to delete_icon_size_constraints for clarity.

@sourcery-ai review


Update actions/checkout action to v4 - autoclosed - abandoned

This PR contains the following updates:

Package
Type
Update
Change

actions/checkout
action
major
v2 -> v4

Release Notes

actions/checkout (actions/checkout)
v4
Compare Source

Add support for partial checkout filters

v3
Compare Source

Fix: Mark test scripts with Bash'isms to be run via Bash
Add option to fetch tags even if fetch-depth > 0

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

Autoclosing Skipped
This PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error.


docs: add tutorial to nav

This PR adds the tutorial to the nav side-bar

Could you also add deployment to nav bar? then the tests will be fixed

Thanks for adding this!  Looks like we need to fix a couple of links and then this PR will be good-to-go!

@MrPowers - this should be gtg now


type-datapatches to fix values actually belonging to other fields as well as the field at issue

Is your feature request related to a problem? Please describe.
Sometimes values are mixed to the wrong fields at the source very occasionally without a nice way to parse them out
Describe the solution you'd like
I'd like type datapatches to be able to map values to more than one prop
Describe alternatives you've considered
writing code to try and parse it out conditionally, but that's a bit of a sledgehammer for a handful of issues in hundreds of items
Additional context
How about
type.address:
  options:
    - match: Branch Office 6: Shop number 237, Shah Zada Market (also known as Sarai Shahzada), Puli Khishti area, Police District 1, Kabul, Afghanistan, Telephone: +93-202-103386, +93-202-101714, 0202-104748, Mobile: +93-797-059059, +93-702-222222, e-mail<EMAIL_ADDRESS>      - value: Shop number 237, Shah Zada Market (also known as Sarai Shahzada), Puli Khishti area, Police District 1, Kabul, Afghanistan
        props:
          phone:
            - +93-202-103386
            - +93-202-101714
            - 0202-104748
            - +93-797-059059
            - +93-702-222222
         email<EMAIL_ADDRESS>

This is really funny, I was just chatting with @nvmbrasserie yesterday about how we should do this. Very +1.


gpxsee: 11.12 → 12.2

Description of changes
Changelog
Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 220628 run on x86_64-darwin 1

1 package marked as broken and skipped:

gpxsee-qt6

1 package built:

gpxsee

Result of nixpkgs-review pr 220628 run on x86_64-linux 1

2 packages built:

gpxsee
gpxsee-qt6


Use Unit.Idx as repo unit index

Fix Index values in RepoUnit. ~#2601 has to be merged first.~
Edit: #2601 or #2603 can fix problems with accessing repo pages with this changes.

Codecov Report

Merging #2621 into master will not change coverage.
The diff coverage is 0%.

@@          Coverage Diff           @@
##           master   #2621   +/-   ##
======================================
  Coverage    27.3%   27.3%
======================================
  Files          86      86
  Lines       17139   17139
======================================
  Hits         4680    4680
  Misses      11781   11781
  Partials      678     678

Impacted Files
Coverage Δ

models/repo.go
13.5% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

@Morlinest In the future, could you not create PRs than depend on other, unmerged PRs? If you don't create the PR until the things it depends on are finished, that would make things a lot simpler for reviewers.

@ethantkoenig It doesn't "need" anything, I want to merge another PR only because there is another bug that will pop up after merge. I know it only because I've tested it and also know, there is already fix for it. I think #2603 will also fix it. I am writing comments about merges as bug prevention...

@Morlinest So this PR fixes a bug that does not currently exist, will exist after #2601 is merged?

@ethantkoenig It is a bug, that has no impact currently, but the Index of RepoUnits is indeed set to a wrong value.

@ethantkoenig Please look at files changed. Do you see 2 different ways of setting Index value (first time as index from range -> 0 to x, second time as int value of UnitType)? Read comments in #2603. None of the current ways is correct. So this PR fixes 3 bugs at once in code + set correct values in DB.

 It is never read in the code (only populated in struct declarations), and it doesn't seem to be used anywhere in the HTML templates.
Also, if the index should be uniquely determined by the RepoUnit.Type field (as it is in this PR), do we even need to store in the database at all?

@ethantkoenig That's not a stupid question. As I wrote before in #2603

We can improve it later. And then we can just remove Index from DB as it will be useless.

it can be removed. But first we need to check code and rewrite Home handler at least. I was focused on making quick fix of bug instead. But maybe I can rewrite #2601 to fix UnitTypeCode check and also to use Unit.Idx for rest. This should be just fast fix, but now I have time to work on it.

@ethantkoenig Changed this PR to completly remove RepoUnit.Index instead of fixing it as #2601 is rewriten and it's not needed for anything.
@daviian With this two changes (if aprooved and merged) will not be #2603 needed anymore. Right?

LGTM

LGTM

conflicted

@lunny fixed


Remove public mongodb dependency

[x] Remove dependency of public mongoDB
[x] Implement call back API's for status updates from VM's

This feature has been implemented and tested


Revive WordPress Plugin

Our WordPress plugin hasn't been updated in 2 years. This is because we could just update a JSON file on the origin and not have to make any commits to the plugin. That ends today. From now on @petarpetrovic will be taking charge and updating the plugin any time Bootstrap or Font Awesome updates.
Tasks (@petarpetrovic):

[ ] Semver bump to 1.0.0
[ ] Update plugin to pull from local json file

[ ] Update Bootstrap version numbers (including 4-alpha releases)
[ ] Update Font Awesome version numbers (including)

[ ] Update branding to StackPath
[ ] Update readme (e.g. remove "Auto-update to latest Bootstrap version")

Other tasks (blockers)

[x] @jimaek add petarpetrovic as a WordPress Plugin author
[ ] talk to @jmervine about adding the plugin to the repo (or create new one)

Welcome to the team @petarpetrovic 🤘

petarpetrovic now has commit abilities. To change the authors you need to edit a file in the repo https://plugins.svn.wordpress.org/bootstrapcdn/trunk/readme.txt

@petarpetrovic any interest? If not I'll close it.

@jdorfman I've started working on this a couple of months ago but had to make a month long hiatus because stuff, but anyway, this shouldn't be closed for the time being.

@petarpetrovic I feel you. If you want to take another stab, just let me know. No pressure either way.

@jdorfman I'll continue working on this in a few days for sure, no worries.


Reorganize svd2rust

I have made a few minor cosmetic changes:

Break generate.rs into a module, with each of the major components living as a file inside of it
Each major component has a function called render(), which all return Result<Vec<Tokens>> (as before some did that, and some took a &mut Vec<Tokens> as an argument they only pushed to)
I moved some util components into modules, when they were only used by that module

I expect NO functional changes to the output. Please let me know if I can run a full regression test locally.
In the future, I think some more work could be done to break up generate::register::render(), as it is a very large function, but I wanted to make this PR in manageable pieces.
Please let me know if you would like me to squash my changes. I have kept them separate in case you would like to inspect them.

@japaric or @emilgardis could I trouble you to review and possibly merge this? Or at least provide some positive or negative feedback (sorry, I know you are both busy)

This LGTM. Eventually we want to add unit tests at each codegen level (enumeratedValue, register, peripheral, etc.) so it makes sense to split the generate.rs file this.
bors r+

Build failed

One build timed out. Testing locally.

Testing locally.

Test passed. Merging manually.